>1^-(1&s),l=l>>1^-(1&l),n=s+=n,i=l+=i,a.push([s/t,l/t])}return a}function Od(r,e){return r=function UB(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;return null==t&&(t=1024),A(e.features,function(n){var i=n.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case\"LineString\":i.coordinates=Tw(s,o,t);break;case\"Polygon\":case\"MultiLineString\":kd(s,o,t);break;case\"MultiPolygon\":A(s,function(l,u){return kd(l,o[u],t)})}}),e.UTF8Encoding=!1,e}(r),G(It(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var a=t.properties,n=t.geometry,i=[];switch(n.type){case\"Polygon\":var o=n.coordinates;i.push(new xw(o[0],o.slice(1)));break;case\"MultiPolygon\":A(n.coordinates,function(l){l[0]&&i.push(new xw(l[0],l.slice(1)))});break;case\"LineString\":i.push(new bw([n.coordinates]));break;case\"MultiLineString\":i.push(new bw(n.coordinates))}var s=new ww(a[e||\"name\"],i,a.cp);return s.properties=a,s})}function YB(r,e,t,a,n,i,o,s){return new xt({style:{text:r,font:e,align:t,verticalAlign:a,padding:n,rich:i,overflow:o?\"truncate\":null,lineHeight:s}}).getBoundingRect()}var al=Tt();function Cw(r,e){var i,o,t=Aw(r,\"labels\"),a=Rd(e);return Mw(t,a)||(j(a)?i=Iw(r,a):(o=\"auto\"===a?function QB(r){var e=al(r).autoInterval;return null!=e?e:al(r).autoInterval=r.calculateCategoryInterval()}(r):a,i=Lw(r,o)),Dw(t,a,{labels:i,labelCategoryInterval:o}))}function Aw(r,e){return al(r)[e]||(al(r)[e]=[])}function Mw(r,e){for(var t=0;t1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=yw(r),v=o.get(\"showMinLabel\")||h,c=o.get(\"showMaxLabel\")||h;v&&u!==i[0]&&d(i[0]);for(var p=u;p<=i[1];p+=l)d(p);function d(g){var y={value:g};s.push(t?g:{formattedLabel:a(y),rawLabel:n.getLabel(y),tickValue:g})}return c&&p-l!==i[1]&&d(i[1]),s}function Iw(r,e,t){var a=r.scale,n=rl(r),i=[];return A(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),i}var Pw=[0,1],tz=function(){function r(e,t,a){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=a||[0,0]}return r.prototype.contain=function(e){var t=this._extent,a=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return e>=a&&e<=n},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return vc(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var a=this._extent;a[0]=e,a[1]=t},r.prototype.dataToCoord=function(e,t){var a=this._extent,n=this.scale;return e=n.normalize(e),this.onBand&&\"ordinal\"===n.type&&Rw(a=a.slice(),n.count()),Dt(e,Pw,a,t)},r.prototype.coordToData=function(e,t){var a=this._extent,n=this.scale;this.onBand&&\"ordinal\"===n.type&&Rw(a=a.slice(),n.count());var i=Dt(e,a,Pw,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){var t=(e=e||{}).tickModel||this.getTickModel(),i=G(function XB(r,e){return\"category\"===r.type?function KB(r,e){var i,o,t=Aw(r,\"ticks\"),a=Rd(e),n=Mw(t,a);if(n)return n;if((!e.get(\"show\")||r.scale.isBlank())&&(i=[]),j(a))i=Iw(r,a,!0);else if(\"auto\"===a){var s=Cw(r,r.getLabelModel());o=s.labelCategoryInterval,i=G(s.labels,function(l){return l.tickValue})}else i=Lw(r,o=a,!0);return Dw(t,a,{ticks:i,tickCategoryInterval:o})}(r,e):{ticks:G(r.scale.getTicks(),function(t){return t.value})}}(this,t).ticks,function(s){return{coord:this.dataToCoord(\"ordinal\"===this.scale.type?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this);return function ez(r,e,t,a){var n=e.length;if(r.onBand&&!t&&n){var o,i=r.getExtent();if(1===n)e[0].coord=i[0],o=e[1]={coord:i[0]};else{var u=(e[n-1].coord-e[0].coord)/(e[n-1].tickValue-e[0].tickValue);A(e,function(c){c.coord-=u/2});var f=r.scale.getExtent();e.push(o={coord:e[n-1].coord+u*(1+f[1]-e[n-1].tickValue)})}var h=i[0]>i[1];v(e[0].coord,i[0])&&(a?e[0].coord=i[0]:e.shift()),a&&v(i[0],e[0].coord)&&e.unshift({coord:i[0]}),v(i[1],o.coord)&&(a?o.coord=i[1]:e.pop()),a&&v(o.coord,i[1])&&e.push({coord:i[1]})}function v(c,p){return c=Wt(c),p=Wt(p),h?c>p:c0&&t<100||(t=5),G(this.scale.getMinorTicks(t),function(i){return G(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this)},r.prototype.getViewLabels=function(){return function ZB(r){return\"category\"===r.type?function qB(r){var e=r.getLabelModel(),t=Cw(r,e);return!e.get(\"show\")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}(r):function jB(r){var e=r.scale.getTicks(),t=rl(r);return{labels:G(e,function(a,n){return{level:a.level,formattedLabel:t(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}(r)}(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel(\"axisLabel\")},r.prototype.getTickModel=function(){return this.model.getModel(\"axisTick\")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),a=t[1]-t[0]+(this.onBand?1:0);0===a&&(a=1);var n=Math.abs(e[1]-e[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(){return function JB(r){var e=function $B(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get(\"rotate\")||0,font:e.getFont()}}(r),t=rl(r),a=(e.axisRotate-e.labelRotate)/180*Math.PI,n=r.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(a)),h=Math.abs(u*Math.sin(a)),v=0,c=0;l<=i[1];l+=s){var d,g=is(t({value:l}),e.font,\"center\",\"top\");d=1.3*g.height,v=Math.max(v,1.3*g.width,7),c=Math.max(c,d,7)}var y=v/f,m=c/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=al(r.model),b=r.getExtent(),x=S.lastAutoInterval,w=S.lastTickCount;return null!=x&&null!=w&&Math.abs(x-_)<=1&&Math.abs(w-o)<=1&&x>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}(this)},r}();function Rw(r,e){var n=(r[1]-r[0])/e/2;r[0]+=n,r[1]-=n}const ur=tz;function rz(r){var e=mt.extend(r);return mt.registerClass(e),e}function az(r){var e=Gt.extend(r);return Gt.registerClass(e),e}function nz(r){var e=Ot.extend(r);return Ot.registerClass(e),e}function iz(r){var e=Et.extend(r);return Et.registerClass(e),e}var nl=2*Math.PI,Jn=Hr.CMD,oz=[\"top\",\"right\",\"bottom\",\"left\"];function sz(r,e,t,a,n){var i=t.width,o=t.height;switch(r){case\"top\":a.set(t.x+i/2,t.y-e),n.set(0,-1);break;case\"bottom\":a.set(t.x+i/2,t.y+o+e),n.set(0,1);break;case\"left\":a.set(t.x-e,t.y+o/2),n.set(-1,0);break;case\"right\":a.set(t.x+i+e,t.y+o/2),n.set(1,0)}}function lz(r,e,t,a,n,i,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s),f=(o/=u)*t+r,h=(s/=u)*t+e;if(Math.abs(a-n)%nl<1e-4)return l[0]=f,l[1]=h,u-t;if(i){var v=a;a=Na(n),n=Na(v)}else a=Na(a),n=Na(n);a>n&&(n+=nl);var c=Math.atan2(s,o);if(c<0&&(c+=nl),c>=a&&c<=n||c+nl>=a&&c+nl<=n)return l[0]=f,l[1]=h,u-t;var p=t*Math.cos(a)+r,d=t*Math.sin(a)+e,g=t*Math.cos(n)+r,y=t*Math.sin(n)+e,m=(p-o)*(p-o)+(d-s)*(d-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=p,l[1]=d,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function qf(r,e,t,a,n,i,o,s){var l=n-r,u=i-e,f=t-r,h=a-e,v=Math.sqrt(f*f+h*h),p=(l*(f/=v)+u*(h/=v))/v;s&&(p=Math.min(Math.max(p,0),1));var d=o[0]=r+(p*=v)*f,g=o[1]=e+p*h;return Math.sqrt((d-n)*(d-n)+(g-i)*(g-i))}function Ew(r,e,t,a,n,i,o){t<0&&(r+=t,t=-t),a<0&&(e+=a,a=-a);var s=r+t,l=e+a,u=o[0]=Math.min(Math.max(n,r),s),f=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-n)*(u-n)+(f-i)*(f-i))}var Ir=[];function uz(r,e,t){var a=Ew(e.x,e.y,e.width,e.height,r.x,r.y,Ir);return t.set(Ir[0],Ir[1]),a}function fz(r,e,t){for(var s,l,a=0,n=0,i=0,o=0,u=1/0,f=e.data,h=r.x,v=r.y,c=0;c0){e=e/180*Math.PI,Pr.fromArray(r[0]),Nt.fromArray(r[1]),jt.fromArray(r[2]),ot.sub(qr,Pr,Nt),ot.sub(Kr,jt,Nt);var t=qr.len(),a=Kr.len();if(!(t<.001||a<.001)){qr.scale(1/t),Kr.scale(1/a);var n=qr.dot(Kr);if(Math.cos(e)1&&ot.copy(Ie,jt),Ie.toArray(r[1])}}}}function hz(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Pr.fromArray(r[0]),Nt.fromArray(r[1]),jt.fromArray(r[2]),ot.sub(qr,Nt,Pr),ot.sub(Kr,jt,Nt);var a=qr.len(),n=Kr.len();if(!(a<.001||n<.001)&&(qr.scale(1/a),Kr.scale(1/n),qr.dot(e)=l)ot.copy(Ie,jt);else{Ie.scaleAndAdd(Kr,s/Math.tan(Math.PI/2-f));var h=jt.x!==Nt.x?(Ie.x-Nt.x)/(jt.x-Nt.x):(Ie.y-Nt.y)/(jt.y-Nt.y);if(isNaN(h))return;h<0?ot.copy(Ie,Nt):h>1&&ot.copy(Ie,jt)}Ie.toArray(r[1])}}}function Nw(r,e,t,a){var n=\"normal\"===t,i=n?r:r.ensureState(t);i.ignore=e;var o=a.get(\"smooth\");o&&!0===o&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel(\"lineStyle\").getLineStyle();n?r.useStyle(s):i.style=s}function vz(r,e){var t=e.smooth,a=e.points;if(a)if(r.moveTo(a[0][0],a[0][1]),t>0&&a.length>=3){var n=ta(a[0],a[1]),i=ta(a[1],a[2]);if(!n||!i)return r.lineTo(a[1][0],a[1][1]),void r.lineTo(a[2][0],a[2][1]);var o=Math.min(n,i)*t,s=Ho([],a[1],a[0],o/n),l=Ho([],a[1],a[2],o/i),u=Ho([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var f=1;f0&&i&&x(-h/o,0,o);var m,_,g=r[0],y=r[o-1];return S(),m<0&&w(-m,.8),_<0&&w(_,.8),S(),b(m,_,1),b(_,m,-1),S(),m<0&&T(-m),_<0&&T(_),u}function S(){m=g.rect[e]-a,_=n-y.rect[e]-y.rect[t]}function b(C,D,M){if(C<0){var L=Math.min(D,-C);if(L>0){x(L*M,0,o);var I=L+C;I<0&&w(-I*M,1)}else w(-C*M,1)}}function x(C,D,M){0!==C&&(u=!0);for(var L=D;L0)for(I=0;I0;I--)x(-M[I-1]*E,I,o)}}function T(C){var D=C<0?-1:1;C=Math.abs(C);for(var M=Math.ceil(C/(o-1)),L=0;L0?x(M,0,L+1):x(-M,o-L-1,o),(C-=M)<=0)return}}function zw(r,e,t,a){return Bw(r,\"y\",\"height\",e,t,a)}function Gw(r){var e=[];r.sort(function(d,g){return g.priority-d.priority});var t=new ut(0,0,0,0);function a(d){if(!d.ignore){var g=d.ensureState(\"emphasis\");null==g.ignore&&(g.ignore=!1)}d.ignore=!0}for(var n=0;n=0&&a.attr(i.oldLayoutSelect),lt(v,\"emphasis\")>=0&&a.attr(i.oldLayoutEmphasis)),bt(a,u,t,l)}else if(a.attr(u),!Fi(a).valueAnimation){var h=ht(a.style.opacity,1);a.style.opacity=0,Bt(a,{style:{opacity:h}},t,l)}if(i.oldLayout=u,a.states.select){var c=i.oldLayoutSelect={};jf(c,u,Qf),jf(c,a.states.select,Qf)}if(a.states.emphasis){var p=i.oldLayoutEmphasis={};jf(p,u,Qf),jf(p,a.states.emphasis,Qf)}CS(a,l,f,t,t)}if(n&&!n.ignore&&!n.invisible){var i=gz(n),d={points:n.shape.points};(o=i.oldLayout)?(n.attr({shape:o}),bt(n,{shape:d},t)):(n.setShape(d),n.style.strokePercent=0,Bt(n,{style:{strokePercent:1}},t)),i.oldLayout=d}},r}();const mz=yz;var zd=Tt();function Hw(r){r.registerUpdateLifecycle(\"series:beforeupdate\",function(e,t,a){var n=zd(t).labelManager;n||(n=zd(t).labelManager=new mz),n.clearLabels()}),r.registerUpdateLifecycle(\"series:layoutlabels\",function(e,t,a){var n=zd(t).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),n.updateLayoutConfig(t),n.layout(t),n.processLabelsOverall()})}function Ww(r,e,t){var a=gr.createCanvas(),n=e.getWidth(),i=e.getHeight(),o=a.style;return o&&(o.position=\"absolute\",o.left=\"0\",o.top=\"0\",o.width=n+\"px\",o.height=i+\"px\",a.setAttribute(\"data-zr-dom-id\",r)),a.width=n*t,a.height=i*t,a}vt(Hw);var _z=function(r){function e(t,a,n){var o,i=r.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null,n=n||gu,\"string\"==typeof t?o=Ww(t,a,n):J(t)&&(t=(o=t).id),i.id=t,i.dom=o;var s=o.style;return s&&(Sv(o),o.onselectstart=function(){return!1},s.padding=\"0\",s.margin=\"0\",s.borderWidth=\"0\"),i.painter=a,i.dpr=n,i}return Vt(e,r),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext(\"2d\"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Ww(\"back-\"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext(\"2d\"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,a,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var g,o=[],s=this.maxRepaintRectCount,l=!1,u=new ut(0,0,0,0);function f(m){if(m.isFinite()&&!m.isZero())if(0===o.length)(_=new ut(0,0,0,0)).copy(m),o.push(_);else{for(var S=!1,b=1/0,x=0,w=0;w=s)}}for(var h=this.__startIndex;h15)break}P.prevElClipPaths&&y.restore()};if(m)if(0===m.length)T=g.__endIndex;else for(var D=c.dpr,M=0;M0&&e>n[0]){for(l=0;le);l++);s=a[n[l]]}if(n.splice(l+1,0,e),a[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},r.prototype.eachLayer=function(e,t){for(var a=this._zlevelList,n=0;n0?.01:0),this._needsManuallyCompositing),f.__builtin__||Yl(\"ZLevel \"+u+\" has been used by unkown layer \"+f.id),f!==i&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.__drawIndex=f.incremental?-1:l,t(l),i=f),1&n.__dirty&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(h,v){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,A(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var a=this._layerConfig;a[e]?it(a[e],t,!0):a[e]=t;for(var n=0;n=ti:-u>=ti),c=u>0?u%ti:u%ti+ti;p=!!v||!Pa(h)&&c>=Yw==!!f;var d=e+a*Hd(o),g=t+n*Fd(o);this._start&&this._add(\"M\",d,g);var y=Math.round(i*Az);if(v){var m=1/this._p,_=(f?1:-1)*(ti-m);this._add(\"A\",a,n,y,1,+f,e+a*Hd(o+_),t+n*Fd(o+_)),m>.01&&this._add(\"A\",a,n,y,0,+f,d,g)}else{var S=e+a*Hd(s),b=t+n*Fd(s);this._add(\"A\",a,n,y,+p,+f,S,b)}},r.prototype.rect=function(e,t,a,n){this._add(\"M\",e,t),this._add(\"l\",a,0),this._add(\"l\",0,n),this._add(\"l\",-a,0),this._add(\"Z\")},r.prototype.closePath=function(){this._d.length>0&&this._add(\"Z\")},r.prototype._add=function(e,t,a,n,i,o,s,l,u){for(var f=[],h=this._p,v=1;v\"}(o,n.attrs)+(n.text||\"\")+(i?\"\"+t+G(i,function(l){return a(l)}).join(t)+t:\"\")+function Nz(r){return\"\"+r+\">\"}(o)}(r)}function Yd(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function jw(r,e,t,a){return ie(\"svg\",\"root\",{width:r,height:e,xmlns:Xw,\"xmlns:xlink\":qw,version:\"1.1\",baseProfile:\"full\",viewBox:!!a&&\"0 0 \"+r+\" \"+e},t)}var Qw={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\"},ei=\"transform-origin\";function Bz(r,e,t){var a=B({},r.shape);B(a,e),r.buildPath(t,a);var n=new Zw;return n.reset(O0(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function zz(r,e){var t=e.originX,a=e.originY;(t||a)&&(r[ei]=t+\"px \"+a+\"px\")}var Gz={fill:\"fill\",opacity:\"opacity\",lineWidth:\"stroke-width\",lineDashOffset:\"stroke-dashoffset\"};function Jw(r,e){var t=e.zrId+\"-ani-\"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function $w(r){return W(r)?Qw[r]?\"cubic-bezier(\"+Qw[r]+\")\":Vv(r)?r:\"\":\"\"}function $f(r,e,t,a){var n=r.animators,i=n.length,o=[];if(r instanceof ff){var s=function Fz(r,e,t){var i,o,n={};if(A(r.shape.paths,function(l){var u=Yd(t.zrId);u.animation=!0,$f(l,{},u,!0);var f=u.cssAnims,h=u.cssNodes,v=yt(f),c=v.length;if(c){var p=f[o=v[c-1]];for(var d in p){var g=p[d];n[d]=n[d]||{d:\"\"},n[d].d+=g.d||\"\"}for(var y in h){var m=h[y].animation;m.indexOf(o)>=0&&(i=m)}}}),i){e.d=!1;var s=Jw(n,t);return i.replace(o,s)}}(r,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length)return Jw(w,t)+\" \"+m[0]+\" both\"}for(var g in l)(s=d(l[g]))&&o.push(s);if(o.length){var y=t.zrId+\"-cls-\"+t.cssClassIdx++;t.cssNodes[\".\"+y]={animation:o.join(\",\")},e.class=y}}var ol=Math.round;function tT(r){return r&&W(r.src)}function eT(r){return r&&j(r.toDataURL)}function Zd(r,e,t,a){(function Rz(r,e,t,a){var n=null==e.opacity?1:e.opacity;if(t instanceof le)r(\"opacity\",n);else{if(function Lz(r){var e=r.fill;return null!=e&&e!==il}(e)){var i=Ii(e.fill);r(\"fill\",i.color);var o=null!=e.fillOpacity?e.fillOpacity*i.opacity*n:i.opacity*n;(a||o<1)&&r(\"fill-opacity\",o)}else r(\"fill\",il);if(function Iz(r){var e=r.stroke;return null!=e&&e!==il}(e)){var s=Ii(e.stroke);r(\"stroke\",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,f=null!=e.strokeOpacity?e.strokeOpacity*s.opacity*n:s.opacity*n,h=e.strokeFirst;if((a||1!==u)&&r(\"stroke-width\",u),(a||h)&&r(\"paint-order\",h?\"stroke\":\"fill\"),(a||f<1)&&r(\"stroke-opacity\",f),e.lineDash){var v=jp(t),c=v[0],p=v[1];c&&(p=Dz(p||0),r(\"stroke-dasharray\",c.join(\",\")),(p||a)&&r(\"stroke-dashoffset\",p))}else a&&r(\"stroke-dasharray\",il);for(var d=0;di?cT(r,null==t[l+1]?null:t[l+1].elm,t,n,l):th(r,e,a,i))}(t,a,n):jr(n)?(jr(r.text)&&qd(t,\"\"),cT(t,null,n,0,n.length-1)):jr(a)?th(t,a,0,a.length-1):jr(r.text)&&qd(t,\"\"):r.text!==e.text&&(jr(a)&&th(t,a,0,a.length-1),qd(t,e.text)))}var a5=0,n5=function(){function r(e,t,a){if(this.type=\"svg\",this.refreshHover=function(){},this.configLayer=function(){},this.storage=t,this._opts=a=B({},a),this.root=e,this._id=\"zr\"+a5++,this._oldVNode=jw(a.width,a.height),e&&!a.ssr){var n=this._viewport=document.createElement(\"div\");n.style.cssText=\"position:relative;overflow:hidden\";var i=this._svgDom=this._oldVNode.elm=Kw(\"svg\");jd(null,this._oldVNode),n.appendChild(i),e.appendChild(n)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=\"position:absolute;left:0;top:0;user-select:none\",function r5(r,e){if(sl(r,e))po(r,e);else{var t=r.elm,a=fT(t);ll(e),null!==a&&(ri(a,e.elm,hT(t)),th(a,[r],0,0))}}(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return oT(e,Yd(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),a=this._backgroundColor,n=this._width,i=this._height,o=Yd(this._id);o.animation=e.animation,o.willUpdate=e.willUpdate,o.compress=e.compress;var s=[];if(a&&\"none\"!==a){var l=Ii(a);this._bgVNode=ie(\"rect\",\"bg\",{width:n,height:i,x:\"0\",y:\"0\",id:\"0\",fill:l.color,\"fill-opacity\":l.opacity}),s.push(this._bgVNode)}else this._bgVNode=null;var h=e.compress?null:this._mainVNode=ie(\"g\",\"main\",{},[]);this._paintList(t,o,h?h.children:s),h&&s.push(h);var v=G(yt(o.defs),function(d){return o.defs[d]});if(v.length&&s.push(ie(\"defs\",\"defs\",{},v)),e.animation){var c=function Vz(r,e,t){var a=(t=t||{}).newline?\"\\n\":\"\",n=\" {\"+a,i=a+\"}\",o=G(yt(r),function(l){return l+n+G(yt(r[l]),function(u){return u+\":\"+r[l][u]+\";\"}).join(a)+i}).join(a),s=G(yt(e),function(l){return\"@keyframes \"+l+n+G(yt(e[l]),function(u){return u+n+G(yt(e[l][u]),function(f){var h=e[l][u][f];return\"d\"===f&&(h='path(\"'+h+'\")'),f+\":\"+h+\";\"}).join(a)+i}).join(a)+i}).join(a);return o||s?[\"\"].join(a):\"\"}(o.cssNodes,o.cssAnims,{newline:!0});if(c){var p=ie(\"style\",\"stl\",{},[],c);s.push(p)}}return jw(n,i,s,e.useViewBox)},r.prototype.renderToString=function(e){return Ud(this.renderToVNode({animation:ht((e=e||{}).cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:ht(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e;var t=this._bgVNode;if(t&&t.elm){var a=Ii(e),i=a.opacity;t.elm.setAttribute(\"fill\",a.color),i<1&&t.elm.setAttribute(\"fill-opacity\",i)}},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,a){for(var s,l,n=e.length,i=[],o=0,u=0,f=0;f=0&&(!v||!l||v[d]!==l[d]);d--);for(var g=p-1;g>d;g--)s=i[--o-1];for(var y=d+1;y-1&&(u.style.stroke=u.style.fill,u.style.fill=\"#fff\",u.style.lineWidth=2),a},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}(Ot);const l5=s5;function go(r,e){var t=r.mapDimensionsAll(\"defaultedLabel\"),a=t.length;if(1===a){var n=ji(r,e,t[0]);return null!=n?n+\"\":null}if(a){for(var i=[],o=0;o=0&&a.push(e[i])}return a.join(\" \")}var u5=function(r){function e(t,a,n,i){var o=r.call(this)||this;return o.updateData(t,a,n,i),o}return O(e,r),e.prototype._createSymbol=function(t,a,n,i,o){this.removeAll();var s=Kt(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=f5,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(){ua(this.childAt(0))},e.prototype.downplay=function(){fa(this.childAt(0))},e.prototype.setZ=function(t,a){var n=this.childAt(0);n.zlevel=t,n.z=a},e.prototype.setDraggable=function(t,a){var n=this.childAt(0);n.draggable=t,n.cursor=!a&&t?\"move\":n.cursor},e.prototype.updateData=function(t,a,n,i){this.silent=!1;var o=t.getItemVisual(a,\"symbol\")||\"circle\",s=t.hostModel,l=e.getSymbolSize(t,a),u=o!==this._symbolType,f=i&&i.disableAnimation;if(u){var h=t.getItemVisual(a,\"symbolKeepAspect\");this._createSymbol(o,t,a,l,h)}else{(v=this.childAt(0)).silent=!1;var c={scaleX:l[0]/2,scaleY:l[1]/2};f?v.attr(c):bt(v,c,s,a),wr(v)}if(this._updateCommon(t,a,l,n,i),u){var v=this.childAt(0);f||(c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}},v.scaleX=v.scaleY=0,v.style.opacity=0,Bt(v,c,s,a))}f&&this.childAt(0).stopAnimation(\"leave\")},e.prototype._updateCommon=function(t,a,n,i,o){var u,f,h,v,c,p,d,g,y,s=this.childAt(0),l=t.hostModel;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,h=i.selectItemStyle,v=i.focus,c=i.blurScope,d=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(a),_=m.getModel(\"emphasis\");u=_.getModel(\"itemStyle\").getItemStyle(),h=m.getModel([\"select\",\"itemStyle\"]).getItemStyle(),f=m.getModel([\"blur\",\"itemStyle\"]).getItemStyle(),v=_.get(\"focus\"),c=_.get(\"blurScope\"),p=_.get(\"disabled\"),d=ue(m),g=_.getShallow(\"scale\"),y=m.getShallow(\"cursor\")}var S=t.getItemVisual(a,\"symbolRotate\");s.attr(\"rotation\",(S||0)*Math.PI/180||0);var b=so(t.getItemVisual(a,\"symbolOffset\"),n);b&&(s.x=b[0],s.y=b[1]),y&&s.attr(\"cursor\",y);var x=t.getItemVisual(a,\"style\"),w=x.fill;if(s instanceof le){var T=s.style;s.useStyle(B({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.useStyle(s.__isEmptyBrush?B({},x):x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=t.getItemVisual(a,\"liftZ\"),D=this._z2;null!=C?null==D&&(this._z2=s.z2,s.z2+=C):null!=D&&(s.z2=D,this._z2=null);var M=o&&o.useNameLabel;ge(s,d,{labelFetcher:l,labelDataIndex:a,defaultText:function L(R){return M?t.getName(R):go(t,R)},inheritColor:w,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var I=s.ensureState(\"emphasis\");if(I.style=u,s.ensureState(\"select\").style=h,s.ensureState(\"blur\").style=f,g){var P=Math.max(St(g)?g:1.1,3/this._sizeY);I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P}this.setSymbolScale(1),Zt(this,v,c,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,a,n){var i=this.childAt(0),o=at(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&za(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();za(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,a){return Ys(t.getItemVisual(a,\"symbolSize\"))},e}(tt);function f5(r,e){this.parent.drift(r,e)}const ul=u5;function Qd(r,e,t,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a.isIgnore&&a.isIgnore(t))&&!(a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&\"none\"!==r.getItemVisual(t,\"symbol\")}function gT(r){return null!=r&&!J(r)&&(r={isIgnore:r}),r||{}}function yT(r){var e=r.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:ue(e),cursorStyle:e.get(\"cursor\")}}var h5=function(){function r(e){this.group=new tt,this._SymbolCtor=e||ul}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=gT(t);var a=this.group,n=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=yT(e),u={disableAnimation:s},f=t.getSymbolPoint||function(h){return e.getItemLayout(h)};i||a.removeAll(),e.diff(i).add(function(h){var v=f(h);if(Qd(e,v,h,t)){var c=new o(e,h,l,u);c.setPosition(v),e.setItemGraphicEl(h,c),a.add(c)}}).update(function(h,v){var c=i.getItemGraphicEl(v),p=f(h);if(Qd(e,p,h,t)){var d=e.getItemVisual(h,\"symbol\")||\"circle\",g=c&&c.getSymbolType&&c.getSymbolType();if(!c||g&&g!==d)a.remove(c),(c=new o(e,h,l,u)).setPosition(p);else{c.updateData(e,h,l,u);var y={x:p[0],y:p[1]};s?c.attr(y):bt(c,y,n)}a.add(c),e.setItemGraphicEl(h,c)}else a.remove(c)}).remove(function(h){var v=i.getItemGraphicEl(h);v&&v.fadeOut(function(){a.remove(v)},n)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(a,n){var i=e._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=yT(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){function n(l){l.isGroup||(l.incremental=!0,l.ensureState(\"emphasis\").hoverLayer=!0)}this._progressiveEls=[],a=gT(a);for(var i=e.start;i0?t=a[0]:a[1]<0&&(t=a[1]),t}(n,t),o=a.dim,s=n.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=\"x\"===s||\"radius\"===s?1:0,h=G(r.dimensions,function(p){return e.mapDimension(p)}),v=!1,c=e.getCalculationInfo(\"stackResultDimension\");return pa(e,h[0])&&(v=!0,h[0]=c),pa(e,h[1])&&(v=!0,h[1]=c),{dataDimsForPoint:h,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo(\"stackedOverDimension\")}}function _T(r,e,t,a){var n=NaN;r.stacked&&(n=t.get(t.getCalculationInfo(\"stackedOverDimension\"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,a),o[1-i]=n,e.dataToPoint(o)}var ja=Math.min,Qa=Math.max;function ai(r,e){return isNaN(r)||isNaN(e)}function Jd(r,e,t,a,n,i,o,s,l){for(var u,f,h,v,c,p,d=t,g=0;g=n||d<0)break;if(ai(y,m)){if(l){d+=i;continue}break}if(d===t)r[i>0?\"moveTo\":\"lineTo\"](y,m),h=y,v=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){d+=i;continue}if(o>0){for(var b=d+i,x=e[2*b],w=e[2*b+1];x===y&&w===m&&g=a||ai(x,w))c=y,p=m;else{D=x-u,M=w-f;var P=y-u,R=x-y,E=m-f,N=w-m,k=void 0,V=void 0;if(\"x\"===s){var F=D>0?1:-1;c=y-F*(k=Math.abs(P))*o,p=m,L=y+F*(V=Math.abs(R))*o,I=m}else if(\"y\"===s){var U=M>0?1:-1;c=y,p=m-U*(k=Math.abs(E))*o,L=y,I=m+U*(V=Math.abs(N))*o}else k=Math.sqrt(P*P+E*E),c=y-D*o*(1-(C=(V=Math.sqrt(R*R+N*N))/(V+k))),p=m-M*o*(1-C),I=m+M*o*C,L=ja(L=y+D*o*C,Qa(x,y)),I=ja(I,Qa(w,m)),L=Qa(L,ja(x,y)),p=m-(M=(I=Qa(I,ja(w,m)))-m)*k/V,c=ja(c=y-(D=L-y)*k/V,Qa(u,y)),p=ja(p,Qa(f,m)),L=y+(D=y-(c=Qa(c,ja(u,y))))*V/k,I=m+(M=m-(p=Qa(p,ja(f,m))))*V/k}r.bezierCurveTo(h,v,c,p,y,m),h=L,v=I}else r.lineTo(y,m)}u=y,f=m,d+=i}return g}var ST=function r(){this.smooth=0,this.smoothConstraint=!0},d5=function(r){function e(t){var a=r.call(this,t)||this;return a.type=\"ec-polyline\",a}return O(e,r),e.prototype.getDefaultStyle=function(){return{stroke:\"#000\",fill:null}},e.prototype.getDefaultShape=function(){return new ST},e.prototype.buildPath=function(t,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&ai(n[2*o-2],n[2*o-1]);o--);for(;i=0){var S=u?(p-l)*_+l:(c-s)*_+s;return u?[t,S]:[S,t]}s=c,l=p;break;case o.C:c=i[h++],p=i[h++],d=i[h++],g=i[h++],y=i[h++],m=i[h++];var b=u?iu(s,c,d,y,t,f):iu(l,p,g,m,t,f);if(b>0)for(var x=0;x=0)return S=u?re(l,p,g,m,w):re(s,c,d,y,w),u?[t,S]:[S,t]}s=y,l=m}}},e}(pt),g5=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e}(ST),xT=function(r){function e(t){var a=r.call(this,t)||this;return a.type=\"ec-polygon\",a}return O(e,r),e.prototype.getDefaultShape=function(){return new g5},e.prototype.buildPath=function(t,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&ai(n[2*s-2],n[2*s-1]);s--);for(;oa)return!1;return!0}(i,e))){var o=e.mapDimension(i.dim),s={};return A(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}(t,l,o),D=this._data;D&&D.eachItemGraphicEl(function(Mt,dt){Mt.__temp&&(s.remove(Mt),D.setItemGraphicEl(dt,null))}),w||p.remove(),s.add(y);var L,M=!v&&t.get(\"step\");o&&o.getArea&&t.get(\"clip\",!0)&&(null!=(L=o.getArea()).width?(L.x-=.1,L.y-=.1,L.width+=.2,L.height+=.2):L.r0&&(L.r0-=.5,L.r+=.5)),this._clipShapeForSymbol=L;var I=function _5(r,e,t){var a=r.getVisual(\"visualMeta\");if(a&&a.length&&r.count()&&\"cartesian2d\"===e.type){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(\"x\"===(n=s&&s.coordDim)||\"y\"===n){i=a[o];break}}if(i){var l=e.getAxis(n),u=G(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var v=function m5(r,e){var n,i,t=[],a=r.length;function o(f,h,v){var c=f.coord;return{coord:v,color:Hv((v-c)/(h.coord-c),[f.color,h.color])}}for(var s=0;se){i?t.push(o(i,l,e)):n&&t.push(o(n,l,0),o(n,l,e));break}n&&(t.push(o(n,l,0)),n=null),t.push(l),i=l}}return t}(u,\"x\"===n?t.getWidth():t.getHeight()),c=v.length;if(!c&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var d=v[0].coord-10,g=v[c-1].coord+10,y=g-d;if(y<.001)return\"transparent\";A(v,function(_){_.offset=(_.coord-d)/y}),v.push({offset:c?v[c-1].offset:.5,color:h[1]||\"transparent\"}),v.unshift({offset:c?v[0].offset:.5,color:h[0]||\"transparent\"});var m=new eo(0,0,0,0,v,!0);return m[n]=d,m[n+\"2\"]=g,m}}}(l,o,n)||l.getVisual(\"style\")[l.getVisual(\"drawType\")];if(d&&c.type===o.type&&M===this._step){_&&!g?g=this._newPolygon(h,x):g&&!_&&(y.remove(g),g=this._polygon=null),v||this._initOrUpdateEndLabel(t,o,Vn(I));var P=y.getClipPath();P?Bt(P,{shape:$d(this,o,!1,t).shape},t):y.setClipPath($d(this,o,!0,t)),w&&p.updateData(l,{isIgnore:C,clipShape:L,disableAnimation:!0,getSymbolPoint:function(Mt){return[h[2*Mt],h[2*Mt+1]]}}),(!TT(this._stackedOnPoints,x)||!TT(this._points,h))&&(m?this._doUpdateAnimation(l,x,o,n,M,S,T):(M&&(h=Ja(h,o,M,T),x&&(x=Ja(x,o,M,T))),d.setShape({points:h}),g&&g.setShape({points:h,stackedOnPoints:x})))}else w&&p.updateData(l,{isIgnore:C,clipShape:L,disableAnimation:!0,getSymbolPoint:function(Mt){return[h[2*Mt],h[2*Mt+1]]}}),m&&this._initSymbolLabelAnimation(l,o,L),M&&(h=Ja(h,o,M,T),x&&(x=Ja(x,o,M,T))),d=this._newPolyline(h),_?g=this._newPolygon(h,x):g&&(y.remove(g),g=this._polygon=null),v||this._initOrUpdateEndLabel(t,o,Vn(I)),y.setClipPath($d(this,o,!0,t));var E=t.getModel(\"emphasis\"),N=E.get(\"focus\"),k=E.get(\"blurScope\"),V=E.get(\"disabled\");d.useStyle(Q(u.getLineStyle(),{fill:\"none\",stroke:I,lineJoin:\"bevel\"})),he(d,t,\"lineStyle\"),d.style.lineWidth>0&&\"bolder\"===t.get([\"emphasis\",\"lineStyle\",\"width\"])&&(d.getState(\"emphasis\").style.lineWidth=+d.style.lineWidth+1),at(d).seriesIndex=t.seriesIndex,Zt(d,N,k,V);var U=MT(t.get(\"smooth\")),X=t.get(\"smoothMonotone\");if(d.setShape({smooth:U,smoothMonotone:X,connectNulls:T}),g){var et=l.getCalculationInfo(\"stackedOnSeries\"),ct=0;g.useStyle(Q(f.getAreaStyle(),{fill:I,opacity:.7,lineJoin:\"bevel\",decal:l.getVisual(\"style\").decal})),et&&(ct=MT(et.get(\"smooth\"))),g.setShape({smooth:U,stackedOnSmooth:ct,smoothMonotone:X,connectNulls:T}),he(g,t,\"areaStyle\"),at(g).seriesIndex=t.seriesIndex,Zt(g,N,k,V)}var Lt=function(Mt){i._changePolyState(Mt)};l.eachItemGraphicEl(function(Mt){Mt&&(Mt.onHoverStateChange=Lt)}),this._polyline.onHoverStateChange=Lt,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=h,this._step=M,this._valueOrigin=S,t.get(\"triggerLineEvent\")&&(this.packEventData(t,d),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,a){at(a).eventData={componentType:\"series\",componentSubType:\"line\",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:\"line\"}},e.prototype.highlight=function(t,a,n,i){var o=t.getData(),s=xn(o,i);if(this._changePolyState(\"emphasis\"),!(s instanceof Array)&&null!=s&&s>=0){var l=o.getLayout(\"points\"),u=o.getItemGraphicEl(s);if(!u){var f=l[2*s],h=l[2*s+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var v=t.get(\"zlevel\"),c=t.get(\"z\");(u=new ul(o,s)).x=f,u.y=h,u.setZ(v,c);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=v,p.z=c,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Et.prototype.highlight.call(this,t,a,n,i)},e.prototype.downplay=function(t,a,n,i){var o=t.getData(),s=xn(o,i);if(this._changePolyState(\"normal\"),null!=s&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Et.prototype.downplay.call(this,t,a,n,i)},e.prototype._changePolyState=function(t){var a=this._polygon;Bu(this._polyline,t),a&&Bu(a,t)},e.prototype._newPolyline=function(t){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new d5({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},e.prototype._newPolygon=function(t,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new xT({shape:{points:t,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;\"cartesian2d\"===a.type?(i=s.isHorizontal(),o=!1):\"polar\"===a.type&&(i=\"angle\"===s.dim,o=!0);var u=t.hostModel,f=u.get(\"animationDuration\");j(f)&&(f=f(null));var h=u.get(\"animationDelay\")||0,v=j(h)?h(null):h;t.eachItemGraphicEl(function(c,p){var d=c;if(d){var y=void 0,m=void 0,_=void 0;if(n)if(o){var S=n,b=a.pointToCoord([c.x,c.y]);i?(y=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,m=S.r,_=b[0])}else i?(y=n.x,m=n.x+n.width,_=c.x):(y=n.y+n.height,m=n.y,_=c.y);var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var T=j(h)?h(p):f*w+v,C=d.getSymbolPath(),D=C.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,a,n){var i=t.getModel(\"endLabel\");if(LT(t)){var o=t.getData(),s=this._polyline,l=o.getLayout(\"points\");if(!l)return s.removeTextContent(),void(this._endLabel=null);var u=this._endLabel;u||((u=this._endLabel=new xt({z2:200})).ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=function w5(r){for(var e=r.length/2;e>0&&b5(r[2*e-2],r[2*e-1]);e--);return e-1}(l);f>=0&&(ge(s,ue(t,\"endLabel\"),{inheritColor:n,labelFetcher:t,labelDataIndex:f,defaultText:function(h,v,c){return null!=c?dT(o,c):go(o,h)},enableTextSetter:!0},function C5(r,e){var t=e.getBaseAxis(),a=t.isHorizontal(),n=t.inverse,i=a?n?\"right\":\"left\":\"center\",o=a?\"middle\":n?\"top\":\"bottom\";return{normal:{align:r.get(\"align\")||i,verticalAlign:r.get(\"verticalAlign\")||o}}}(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,a,n,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&null==i.originalX&&(i.originalX=u.x,i.originalY=u.y);var h=n.getLayout(\"points\"),v=n.hostModel,c=v.get(\"connectNulls\"),p=s.get(\"precision\"),d=s.get(\"distance\")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=a.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?d:0)*(m?-1:1),x=(y?0:-d)*(m?-1:1),w=y?\"x\":\"y\",T=function T5(r,e,t){for(var i,o,a=r.length/2,n=\"x\"===t?0:1,s=0,l=-1,u=0;u=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}(h,S,w),C=T.range,D=C[1]-C[0],M=void 0;if(D>=1){if(D>1&&!c){var L=DT(h,C[0]);u.attr({x:L[0]+b,y:L[1]+x}),o&&(M=v.getRawValue(C[0]))}else{(L=f.getPointOn(S,w))&&u.attr({x:L[0]+b,y:L[1]+x});var I=v.getRawValue(C[0]),P=v.getRawValue(C[1]);o&&(M=y_(n,p,I,P,T.t))}i.lastFrameIndex=C[0]}else{var R=1===t||i.lastFrameIndex>0?C[0]:0;L=DT(h,R),o&&(M=v.getRawValue(R)),u.attr({x:L[0]+b,y:L[1]+x})}o&&Fi(u).setLabelText(M)}},e.prototype._doUpdateAnimation=function(t,a,n,i,o,s,l){var u=this._polyline,f=this._polygon,h=t.hostModel,v=function p5(r,e,t,a,n,i,o,s){for(var l=function c5(r,e){var t=[];return e.diff(r).add(function(a){t.push({cmd:\"+\",idx:a})}).update(function(a,n){t.push({cmd:\"=\",idx:n,idx1:a})}).remove(function(a){t.push({cmd:\"-\",idx:a})}).execute(),t}(r,e),u=[],f=[],h=[],v=[],c=[],p=[],d=[],g=mT(n,e,o),y=r.getLayout(\"points\")||[],m=e.getLayout(\"points\")||[],_=0;_3e3||f&&AT(p,g)>3e3)return u.stopAnimation(),u.setShape({points:d}),void(f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:g})));u.shape.__points=v.current,u.shape.points=c;var y={shape:{points:d}};v.current!==c&&(y.shape.__points=v.next),u.stopAnimation(),bt(u,y,h),f&&(f.setShape({points:c,stackedOnPoints:p}),f.stopAnimation(),bt(f,{shape:{stackedOnPoints:g}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=v.status,S=0;S<_.length;S++)if(\"=\"===_[S].cmd){var x=t.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,T=0;Te&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t10&&\"cartesian2d\"===o.type&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=a.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(h||1),c=Math.round(s/v);if(isFinite(c)&&c>1){\"lttb\"===i&&e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/c));var p=void 0;W(i)?p=D5[i]:j(i)&&(p=i),p&&e.setData(n.downSample(n.mapDimension(u.dim),1/c,p,L5))}}}}}var PT=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.getInitialData=function(t,a){return Zr(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t){var a=this.coordinateSystem;if(a&&a.clampData){var n=a.dataToPoint(a.clampData(t)),i=this.getData(),o=i.getLayout(\"offset\"),s=i.getLayout(\"size\");return n[a.getBaseAxis().isHorizontal()?0:1]+=o+s/2,n}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}(Ot);Ot.registerClass(PT);const rh=PT;var P5=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.getInitialData=function(){return Zr(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(\"realtimeSort\",!0)||null})},e.prototype.getProgressive=function(){return!!this.get(\"large\")&&this.get(\"progressive\")},e.prototype.getProgressiveThreshold=function(){var t=this.get(\"progressiveThreshold\"),a=this.get(\"largeThreshold\");return a>t&&(t=a),t},e.prototype.brushSelector=function(t,a,n){return n.rect(a.getItemLayout(t))},e.type=\"series.bar\",e.dependencies=[\"grid\",\"polar\"],e.defaultOption=Ga(rh.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}(rh);const R5=P5;var E5=function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},k5=function(r){function e(t){var a=r.call(this,t)||this;return a.type=\"sausage\",a}return O(e,r),e.prototype.getDefaultShape=function(){return new E5},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=.5*(s-o),u=o+l,f=a.startAngle,h=a.endAngle,v=a.clockwise,c=2*Math.PI,p=v?h-fs)return!0;s=h}return!1},e.prototype._isOrderDifferentInView=function(t,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,a,n,i){if(this._isOrderChangedWithinSameData(t,a,n)){var o=this._dataSort(t,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:\"changeAxisOrder\",componentType:n.dim+\"Axis\",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,a,n){var i=a.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:\"changeAxisOrder\",componentType:i.dim+\"Axis\",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,a){this._clear(this._model),this._removeOnRenderedListener(a)},e.prototype.dispose=function(t,a){this._removeOnRenderedListener(a)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off(\"rendered\",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var a=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){Ss(i,t,at(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=\"bar\",e}(Et),RT={cartesian2d:function(r,e){var t=e.width<0?-1:1,a=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height);var n=r.x+r.width,i=r.y+r.height,o=tg(e.x,r.x),s=eg(e.x+e.width,n),l=tg(e.y,r.y),u=eg(e.y+e.height,i),f=sn?s:o,e.y=h&&l>i?u:l,e.width=f?0:s-o,e.height=h?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height),f||h},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}var n=eg(e.r,r.r),i=tg(e.r0,r.r0);e.r=n,e.r0=i;var o=n-i<0;return t<0&&(a=e.r,e.r=e.r0,e.r0=a),o}},ET={cartesian2d:function(r,e,t,a,n,i,o,s,l){var u=new _t({shape:B({},a),z2:1});return u.__dataIndex=t,u.name=\"item\",i&&(u.shape[n?\"height\":\"width\"]=0),u},polar:function(r,e,t,a,n,i,o,s,l){var u=!n&&l?ah:Ae,f=new u({shape:a,z2:1});f.name=\"item\";var h=VT(n);if(f.calculateTextPosition=function O5(r,e){var t=(e=e||{}).isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return bu(a,n,i);var s=r(o),l=null!=n.distance?n.distance:5,u=this.shape,f=u.cx,h=u.cy,v=u.r,c=u.r0,p=(v+c)/2,d=u.startAngle,g=u.endAngle,y=(d+g)/2,m=t?Math.abs(v-c)/2:0,_=Math.cos,S=Math.sin,b=f+v*_(d),x=h+v*S(d),w=\"left\",T=\"top\";switch(s){case\"startArc\":b=f+(c-l)*_(y),x=h+(c-l)*S(y),w=\"center\",T=\"top\";break;case\"insideStartArc\":b=f+(c+l)*_(y),x=h+(c+l)*S(y),w=\"center\",T=\"bottom\";break;case\"startAngle\":b=f+p*_(d)+nh(d,l+m,!1),x=h+p*S(d)+ih(d,l+m,!1),w=\"right\",T=\"middle\";break;case\"insideStartAngle\":b=f+p*_(d)+nh(d,-l+m,!1),x=h+p*S(d)+ih(d,-l+m,!1),w=\"left\",T=\"middle\";break;case\"middle\":b=f+p*_(y),x=h+p*S(y),w=\"center\",T=\"middle\";break;case\"endArc\":b=f+(v+l)*_(y),x=h+(v+l)*S(y),w=\"center\",T=\"bottom\";break;case\"insideEndArc\":b=f+(v-l)*_(y),x=h+(v-l)*S(y),w=\"center\",T=\"top\";break;case\"endAngle\":b=f+p*_(g)+nh(g,l+m,!0),x=h+p*S(g)+ih(g,l+m,!0),w=\"left\",T=\"middle\";break;case\"insideEndAngle\":b=f+p*_(g)+nh(g,-l+m,!0),x=h+p*S(g)+ih(g,-l+m,!0),w=\"right\",T=\"middle\";break;default:return bu(a,n,i)}return(a=a||{}).x=b,a.y=x,a.align=w,a.verticalAlign=T,a}}(h,{isRoundCap:u===ah}),i){var c=n?\"r\":\"endAngle\",p={};f.shape[c]=n?0:a.startAngle,p[c]=a[c],(s?bt:Bt)(f,{shape:p},i)}return f}};function kT(r,e,t,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?bt:Bt)(t,{shape:l},e,n,null),(o?bt:Bt)(t,{shape:u},e?r.baseAxis.model:null,n)}function OT(r,e){for(var t=0;t0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,e,t){var a=r.getItemLayout(e);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function VT(r){return function(e){var t=e?\"Arc\":\"Angle\";return function(a){switch(a){case\"start\":case\"insideStart\":case\"end\":case\"insideEnd\":return a+t;default:return a}}}(r)}function BT(r,e,t,a,n,i,o,s){var l=e.getItemVisual(t,\"style\");s||r.setShape(\"r\",a.get([\"itemStyle\",\"borderRadius\"])||0),r.useStyle(l);var u=a.getShallow(\"cursor\");u&&r.attr(\"cursor\",u);var f=s?o?n.r>=n.r0?\"endArc\":\"startArc\":n.endAngle>=n.startAngle?\"endAngle\":\"startAngle\":o?n.height>=0?\"bottom\":\"top\":n.width>=0?\"right\":\"left\",h=ue(a);ge(r,h,{labelFetcher:i,labelDataIndex:t,defaultText:go(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var v=r.getTextContent();if(s&&v){var c=a.get([\"label\",\"position\"]);r.textConfig.inside=\"middle\"===c||null,function N5(r,e,t,a){if(St(a))r.setTextConfig({rotation:a});else if(z(e))r.setTextConfig({rotation:0});else{var l,n=r.shape,i=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(i+o)/2,u=t(e);switch(u){case\"startArc\":case\"insideStartArc\":case\"middle\":case\"insideEndArc\":case\"endArc\":l=s;break;case\"startAngle\":case\"insideStartAngle\":l=i;break;case\"endAngle\":case\"insideEndAngle\":l=o;break;default:return void r.setTextConfig({rotation:0})}var f=1.5*Math.PI-l;\"middle\"===u&&f>Math.PI/2&&f<1.5*Math.PI&&(f-=Math.PI),r.setTextConfig({rotation:f})}}(r,\"outside\"===c?f:c,VT(o),a.get([\"label\",\"rotate\"]))}TS(v,h,i.getRawValue(t),function(d){return dT(e,d)});var p=a.getModel([\"emphasis\"]);Zt(r,p.get(\"focus\"),p.get(\"blurScope\"),p.get(\"disabled\")),he(r,a),function H5(r){return null!=r.startAngle&&null!=r.endAngle&&r.startAngle===r.endAngle}(n)&&(r.style.fill=\"none\",r.style.stroke=\"none\",A(r.states,function(d){d.style&&(d.style.fill=d.style.stroke=\"none\")}))}var U5=function r(){},zT=function(r){function e(t){var a=r.call(this,t)||this;return a.type=\"largeBar\",a}return O(e,r),e.prototype.getDefaultShape=function(){return new U5},e.prototype.buildPath=function(t,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}(this,r.offsetX,r.offsetY);at(this).dataIndex=t>=0?t:null},30,!1);function HT(r,e,t){if(ni(t,\"cartesian2d\")){var a=e,n=t.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}return{cx:(n=t.getArea()).cx,cy:n.cy,r0:r?n.r0:e.r0,r:r?n.r:e.r,startAngle:r?e.startAngle:0,endAngle:r?e.endAngle:2*Math.PI}}const X5=B5;var sh=2*Math.PI,WT=Math.PI/180;function UT(r,e){return Jt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function YT(r,e){var t=UT(r,e),a=r.get(\"center\"),n=r.get(\"radius\");z(n)||(n=[0,n]),z(a)||(a=[a,a]);var i=H(t.width,e.getWidth()),o=H(t.height,e.getHeight()),s=Math.min(i,o);return{cx:H(a[0],i)+t.x,cy:H(a[1],o)+t.y,r0:H(n[0],s/2),r:H(n[1],s/2)}}function K5(r,e,t){e.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension(\"value\"),o=UT(a,t),s=YT(a,t),l=s.cx,u=s.cy,f=s.r,h=s.r0,v=-a.get(\"startAngle\")*WT,c=a.get(\"minAngle\")*WT,p=0;n.each(i,function(D){!isNaN(D)&&p++});var d=n.getSum(i),g=Math.PI/(d||p)*2,y=a.get(\"clockwise\"),m=a.get(\"roseType\"),_=a.get(\"stillShowZeroSum\"),S=n.getDataExtent(i);S[0]=0;var b=sh,x=0,w=v,T=y?1:-1;if(n.setLayout({viewRect:o,r:f}),n.each(i,function(D,M){var L;if(isNaN(D))n.setItemLayout(M,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:h,r:m?NaN:f});else{(L=\"area\"!==m?0===d&&_?g:D*g:sh/p)t?y:g,b=Math.abs(_.label.y-t);if(b>=S.maxY){var x=_.label.x-e-_.len2*n,w=a+_.len,T=Math.abs(x)r.unconstrainedWidth?null:c:null)}var d=a.getBoundingRect();i.width=d.width,i.height=d.height+((a.style.margin||0)+2.1),i.y-=(i.height-h)/2}}}function rg(r){return\"center\"===r.position}function yo(r,e,t){var a=r.get(\"borderRadius\");if(null==a)return t?{cornerRadius:0}:null;z(a)||(a=[a,a,a,a]);var n=Math.abs(e.r||0-e.r0||0);return{cornerRadius:G(a,function(i){return xr(i,n)})}}var $5=function(r){function e(t,a,n){var i=r.call(this)||this;i.z2=2;var o=new xt;return i.setTextContent(o),i.updateData(t,a,n,!0),i}return O(e,r),e.prototype.updateData=function(t,a,n,i){var o=this,s=t.hostModel,l=t.getItemModel(a),u=l.getModel(\"emphasis\"),f=t.getItemLayout(a),h=B(yo(l.getModel(\"itemStyle\"),f,!0),f);if(isNaN(h.startAngle))o.setShape(h);else{if(i){o.setShape(h);var v=s.getShallow(\"animationType\");s.ecModel.ssr?(Bt(o,{scaleX:0,scaleY:0},s,{dataIndex:a,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):\"scale\"===v?(o.shape.r=f.r0,Bt(o,{shape:{r:f.r}},s,a)):null!=n?(o.setShape({startAngle:n,endAngle:n}),Bt(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,a)):(o.shape.endAngle=f.startAngle,bt(o,{shape:{endAngle:f.endAngle}},s,a))}else wr(o),bt(o,{shape:h},s,a);o.useStyle(t.getItemVisual(a,\"style\")),he(o,l);var c=(f.startAngle+f.endAngle)/2,p=s.get(\"selectedOffset\"),d=Math.cos(c)*p,g=Math.sin(c)*p,y=l.getShallow(\"cursor\");y&&o.attr(\"cursor\",y),this._updateLabel(s,t,a),o.ensureState(\"emphasis\").shape=B({r:f.r+(u.get(\"scale\")&&u.get(\"scaleSize\")||0)},yo(u.getModel(\"itemStyle\"),f)),B(o.ensureState(\"select\"),{x:d,y:g,shape:yo(l.getModel([\"select\",\"itemStyle\"]),f)}),B(o.ensureState(\"blur\"),{shape:yo(l.getModel([\"blur\",\"itemStyle\"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&B(m.ensureState(\"select\"),{x:d,y:g}),B(_.ensureState(\"select\"),{x:d,y:g}),Zt(this,u.get(\"focus\"),u.get(\"blurScope\"),u.get(\"disabled\"))}},e.prototype._updateLabel=function(t,a,n){var i=this,o=a.getItemModel(n),s=o.getModel(\"labelLine\"),l=a.getItemVisual(n,\"style\"),u=l&&l.fill,f=l&&l.opacity;ge(i,ue(o),{labelFetcher:a.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:f,defaultText:t.getFormattedLabel(n,\"normal\")||a.getName(n)});var h=i.getTextContent();i.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var v=t.get([\"label\",\"position\"]);if(\"outside\"!==v&&\"outer\"!==v)i.removeTextGuideLine();else{var c=this.getTextGuideLine();c||(c=new De,this.setTextGuideLine(c)),Nd(this,Vd(o),{stroke:u,opacity:Rr(s.get([\"lineStyle\",\"opacity\"]),f,1)})}},e}(Ae),tG=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return O(e,r),e.prototype.render=function(t,a,n,i){var u,o=t.getData(),s=this._data,l=this.group;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h0?\"right\":\"left\":X>0?\"left\":\"right\"}var Xt=Math.PI,Ut=0,be=L.get(\"rotate\");if(St(be))Ut=be*(Xt/180);else if(\"center\"===I)Ut=0;else if(\"radial\"===be||!0===be)Ut=X<0?-U+Xt:-U;else if(\"tangential\"===be&&\"outside\"!==I&&\"outer\"!==I){var ze=Math.atan2(X,et);ze<0&&(ze=2*Xt+ze),et>0&&(ze=Xt+ze),Ut=ze-Xt}if(i=!!Ut,C.x=ct,C.y=Lt,C.rotation=Ut,C.setStyle({verticalAlign:\"middle\"}),rt){C.setStyle({align:dt});var Vm=C.states.select;Vm&&(Vm.x+=C.x,Vm.y+=C.y)}else{var un=C.getBoundingRect().clone();un.applyTransform(C.getComputedTransform());var eP=(C.style.margin||0)+2.1;un.y-=eP/2,un.height+=eP,t.push({label:C,labelLine:D,position:I,len:V,len2:F,minTurnAngle:k.get(\"minTurnAngle\"),maxSurfaceAngle:k.get(\"maxSurfaceAngle\"),surfaceNormal:new ot(X,et),linePoints:Mt,textAlign:dt,labelDistance:P,labelAlignTo:R,edgeDistance:E,bleedMargin:N,rect:un,unconstrainedWidth:un.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:rt})}}),!i&&r.get(\"avoidLabelOverlap\")&&function Q5(r,e,t,a,n,i,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,h=-Number.MAX_VALUE,v=0;v=i.r0}},e.type=\"pie\",e}(Et);const eG=tG;function mo(r,e,t){e=z(e)&&{coordDimensions:e}||B({encodeDefine:r.getEncode()},e);var a=r.getSource(),n=ho(a,e).dimensions,i=new xe(n,r);return i.initData(a,t),i}var rG=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},r.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},r.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},r}();const cl=rG;var aG=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new cl(Y(this.getData,this),Y(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return mo(this,{coordDimensions:[\"value\"],encodeDefaulter:nt(cp,this)})},e.prototype.getDataParams=function(t){var a=this.getData(),n=r.prototype.getDataParams.call(this,t),i=[];return a.each(a.mapDimension(\"value\"),function(o){i.push(o)}),n.percent=i_(i,t,a.hostModel.get(\"percentPrecision\")),n.$vars.push(\"percent\"),n},e.prototype._defaultLabelLine=function(t){Sn(t,\"labelLine\",[\"show\"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.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,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}(Ot);const nG=aG;var sG=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return O(e,r),e.prototype.getInitialData=function(t,a){return Zr(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get(\"progressive\"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get(\"progressiveThreshold\"):t},e.prototype.brushSelector=function(t,a,n){return n.point(a.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}(Ot);const lG=sG;var uG=function r(){},fG=function(r){function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return O(e,r),e.prototype.getDefaultShape=function(){return new uG},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,a){var h,n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,f=this.softClipShape;if(l&&i[0]<4)this._ctx=l;else{for(this._ctx=null,h=this._off;h=0;u--){var f=2*u,h=i[f]-s/2,v=i[f+1]-l/2;if(t>=h&&a>=v&&t<=h+s&&a<=v+l)return u}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a);return this.getBoundingRect().contain(t=n[0],a=n[1])?(this.hoverDataIdx=this.findDataIndex(t,a))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,h=-1/0,v=0;v=0&&(u.dataIndex=h+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const vG=hG;var cG=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._symbolDraw.incrementalUpdate(t,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=t.end===a.getData().count()},e.prototype.updateTransform=function(t,a,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=hl(\"\").reset(t,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var a=t.coordinateSystem,n=a&&a.getArea&&a.getArea();return t.get(\"clip\",!0)?n:null},e.prototype._updateSymbolDraw=function(t,a){var n=this._symbolDraw,o=a.pipelineContext.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new vG:new fl,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type=\"scatter\",e}(Et);const pG=cG;var dG=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),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}(mt);const gG=dG;var ag=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.prototype.getCoordSysModel=function(){return this.getReferringComponents(\"grid\",Qt).models[0]},e.type=\"cartesian2dAxis\",e}(mt);Yt(ag,co);var KT={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)\"]}}},yG=it({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:\"auto\"},axisLabel:{interval:\"auto\"}},KT),ng=it({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}}},KT);const jT={category:yG,value:ng,time:it({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:\"bold\"}}},splitLine:{show:!1}},ng),log:Q({logBase:10},ng)};var SG={value:1,category:1,time:1,log:1};function _o(r,e,t,a){A(SG,function(n,i){var o=it(it({},jT[i],!0),a,!0),s=function(l){function u(){var f=null!==l&&l.apply(this,arguments)||this;return f.type=e+\"Axis.\"+i,f}return O(u,l),u.prototype.mergeDefaultAndTheme=function(f,h){var v=As(this),c=v?Yi(f):{};it(f,h.getTheme().get(i+\"Axis\")),it(f,this.getDefaultOption()),f.type=QT(f),v&&Fa(f,c,v)},u.prototype.optionUpdated=function(){\"category\"===this.option.type&&(this.__ordinalMeta=wd.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(\"category\"===h.type)return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+\"Axis.\"+i,u.defaultOption=o,u}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+\"Axis\",QT)}function QT(r){return r.type||(r.data?\"category\":\"value\")}var xG=function(){function r(e){this.type=\"cartesian\",this._dimList=[],this._axes={},this.name=e||\"\"}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return G(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),It(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r}(),ig=[\"x\",\"y\"];function JT(r){return\"interval\"===r.type||\"time\"===r.type}var wG=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=\"cartesian2d\",t.dimensions=ig,t}return O(e,r),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis(\"x\").scale,a=this.getAxis(\"y\").scale;if(JT(t)&&JT(a)){var n=t.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(l&&u){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,p=this._transform=[f,0,0,h,o[0]-n[0]*f,o[1]-i[0]*h];this._invTransform=vn([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale(\"ordinal\")[0]||this.getAxesByScale(\"time\")[0]||this.getAxis(\"x\")},e.prototype.containPoint=function(t){var a=this.getAxis(\"x\"),n=this.getAxis(\"y\");return a.contain(a.toLocalCoord(t[0]))&&n.contain(n.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,a){var n=this.dataToPoint(t),i=this.dataToPoint(a),o=this.getArea(),s=new ut(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,a,n){n=n||[];var i=t[0],o=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=o&&isFinite(o))return oe(n,t,this._transform);var s=this.getAxis(\"x\"),l=this.getAxis(\"y\");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},e.prototype.clampData=function(t,a){var n=this.getAxis(\"x\").scale,i=this.getAxis(\"y\").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(t[0]),u=i.parse(t[1]);return(a=a||[])[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},e.prototype.pointToData=function(t,a){var n=[];if(this._invTransform)return oe(n,t,this._invTransform);var i=this.getAxis(\"x\"),o=this.getAxis(\"y\");return n[0]=i.coordToData(i.toLocalCoord(t[0]),a),n[1]=o.coordToData(o.toLocalCoord(t[1]),a),n},e.prototype.getOtherAxis=function(t){return this.getAxis(\"x\"===t.dim?\"y\":\"x\")},e.prototype.getArea=function(){var t=this.getAxis(\"x\").getGlobalExtent(),a=this.getAxis(\"y\").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(a[0],a[1]),o=Math.max(t[0],t[1])-n,s=Math.max(a[0],a[1])-i;return new ut(n,i,o,s)},e}(xG);const TG=wG;var CG=function(r){function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.index=0,s.type=i||\"value\",s.position=o||\"bottom\",s}return O(e,r),e.prototype.isHorizontal=function(){var t=this.position;return\"top\"===t||\"bottom\"===t},e.prototype.getGlobalExtent=function(t){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),t&&a[0]>a[1]&&a.reverse(),a},e.prototype.pointToData=function(t,a){return this.coordToData(this.toLocalCoord(t[\"x\"===this.dim?0:1]),a)},e.prototype.setCategorySortInfo=function(t){if(\"category\"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(ur);const AG=CG;function og(r,e,t){t=t||{};var a=r.coordinateSystem,n=e.axis,i={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?\"onZero\":s,u=n.dim,f=a.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],v={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get(\"offset\")||0,p=\"x\"===u?[h[2]-c,h[3]+c]:[h[0]-c,h[1]+c];if(o){var d=o.toGlobalCoord(o.dataToCoord(0));p[v.onZero]=Math.max(Math.min(d,p[1]),p[0])}i.position=[\"y\"===u?p[v[l]]:h[0],\"x\"===u?p[v[l]]:h[3]],i.rotation=Math.PI/2*(\"x\"===u?0:1),i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],i.labelOffset=o?p[v[s]]-p[v.onZero]:0,e.get([\"axisTick\",\"inside\"])&&(i.tickDirection=-i.tickDirection),ee(t.labelInside,e.get([\"axisLabel\",\"inside\"]))&&(i.labelDirection=-i.labelDirection);var y=e.get([\"axisLabel\",\"rotate\"]);return i.labelRotate=\"top\"===l?-y:y,i.z2=1,i}function $T(r){return\"cartesian2d\"===r.get(\"coordinateSystem\")}function tC(r){var e={xAxisModel:null,yAxisModel:null};return A(e,function(t,a){var n=a.replace(/Model$/,\"\"),i=r.getReferringComponents(n,Qt).models[0];e[a]=i}),e}var sg=Math.log;function eC(r,e,t){var a=Ka.prototype,n=a.getTicks.call(t),i=a.getTicks.call(t,!0),o=n.length-1,s=a.getInterval.call(t),l=gw(r,e),u=l.extent,f=l.fixMin,h=l.fixMax;if(\"log\"===r.type){var v=sg(r.base);u=[sg(u[0])/v,sg(u[1])/v]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var c=a.getExtent.call(r);f&&(u[0]=c[0]),h&&(u[1]=c[1]);var p=a.getInterval.call(r),d=u[0],g=u[1];if(f&&h)p=(g-d)/o;else if(f)for(g=u[0]+p*o;gu[0]&&isFinite(d)&&isFinite(u[0]);)p=Cd(p),d=u[1]-p*o;else{r.getTicks().length-1>o&&(p=Cd(p));var m=p*o;(d=Wt((g=Math.ceil(u[1]/p)*p)-m))<0&&u[0]>=0?(d=0,g=Wt(m)):g>0&&u[1]<=0&&(g=0,d=-Wt(m))}var _=(n[0].value-i[0].value)/s,S=(n[o].value-i[o].value)/s;a.setExtent.call(r,d+p*_,g+p*S),a.setInterval.call(r,p),(_||S)&&a.setNiceExtent.call(r,d+p,g-p)}var MG=function(){function r(e,t,a){this.type=\"grid\",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ig,this._initCartesian(e,t,a),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var a=this._axesMap;function n(o){var s,l=yt(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var c=o[+l[h]],p=c.model,d=c.scale;Td(d)&&p.get(\"alignTicks\")&&null==p.get(\"interval\")?f.push(c):(jn(d,p),Td(d)&&(s=c))}f.length&&(s||jn((s=f.pop()).scale,s.model),A(f,function(g){eC(g.scale,g.model,s.scale)}))}}this._updateScale(e,this.model),n(a.x),n(a.y);var i={};A(a.x,function(o){rC(a,\"y\",o,i)}),A(a.y,function(o){rC(a,\"x\",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,a){var n=e.getBoxLayoutParams(),i=!a&&e.get(\"containLabel\"),o=Jt(n,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;function l(){A(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(h[v],h[1-v]),function DG(r,e){var t=r.getExtent(),a=t[0]+t[1];r.toGlobalCoord=\"x\"===r.dim?function(n){return n+e}:function(n){return a-n+e},r.toLocalCoord=\"x\"===r.dim?function(n){return n-e}:function(n){return a-n+e}}(u,f?o.x:o.y)})}l(),i&&(A(s,function(u){if(!u.model.get([\"axisLabel\",\"inside\"])){var f=function RB(r){var t=r.scale;if(r.model.get([\"axisLabel\",\"show\"])&&!t.isBlank()){var a,n,i=t.getExtent();n=t instanceof Ad?t.count():(a=t.getTicks()).length;var l,o=r.getLabelModel(),s=rl(r),u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;f0&&a>0||t<0&&a<0)}(r)}const LG=MG;var $a=Math.PI,ii=function(){function r(e,t){this.group=new tt,this.opt=t,this.axisModel=e,Q(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var a=new tt({x:t.position[0],y:t.position[1],rotation:t.rotation});a.updateTransform(),this._transformGroup=a}return r.prototype.hasBuilder=function(e){return!!nC[e]},r.prototype.add=function(e){nC[e](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(e,t,a){var i,o,n=pc(t-e);return ss(n)?(o=a>0?\"top\":\"bottom\",i=\"center\"):ss(n-$a)?(o=a>0?\"bottom\":\"top\",i=\"center\"):(o=\"middle\",i=n>0&&n<$a?a>0?\"right\":\"left\":a>0?\"left\":\"right\"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+\"Index\"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get(\"tooltip\");return e.get(\"silent\")||!(e.get(\"triggerEvent\")||t&&t.show)},r}(),nC={axisLine:function(r,e,t,a){var n=e.get([\"axisLine\",\"show\"]);if(\"auto\"===n&&r.handleAutoShown&&(n=r.handleAutoShown(\"axisLine\")),n){var i=e.axis.getExtent(),o=a.transform,s=[i[0],0],l=[i[1],0];o&&(oe(s,s,o),oe(l,l,o));var u=B({lineCap:\"round\"},e.getModel([\"axisLine\",\"lineStyle\"]).getLineStyle()),f=new ne({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});f.anid=\"line\",t.add(f);var h=e.get([\"axisLine\",\"symbol\"]);if(null!=h){var v=e.get([\"axisLine\",\"symbolSize\"]);W(h)&&(h=[h,h]),(W(v)||St(v))&&(v=[v,v]);var c=so(e.get([\"axisLine\",\"symbolOffset\"])||0,v),p=v[0],d=v[1];A([{rotate:r.rotation+Math.PI/2,offset:c[0],r:0},{rotate:r.rotation-Math.PI/2,offset:c[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(g,y){if(\"none\"!==h[y]&&null!=h[y]){var m=Kt(h[y],-p/2,-d/2,p,d,u.stroke,!0),_=g.r+g.offset;m.attr({rotation:g.rotate,x:s[0]+_*Math.cos(r.rotation),y:s[1]-_*Math.sin(r.rotation),silent:!0,z2:11}),t.add(m)}})}}},axisTickLabel:function(r,e,t,a){var n=function RG(r,e,t,a){var n=t.axis,i=t.getModel(\"axisTick\"),o=i.get(\"show\");if(\"auto\"===o&&a.handleAutoShown&&(o=a.handleAutoShown(\"axisTick\")),o&&!n.scale.isBlank()){for(var s=i.getModel(\"lineStyle\"),l=a.tickDirection*i.get(\"length\"),f=sC(n.getTicksCoords(),e.transform,l,Q(s.getLineStyle(),{stroke:t.get([\"axisLine\",\"lineStyle\",\"color\"])}),\"ticks\"),h=0;hu[1]?-1:1,h=[\"start\"===i?u[0]-f*l:\"end\"===i?u[1]+f*l:(u[0]+u[1])/2,oC(i)?r.labelOffset+o*l:0],c=e.get(\"nameRotate\");null!=c&&(c=c*$a/180),oC(i)?v=ii.innerTextLayout(r.rotation,null!=c?c:r.rotation,o):(v=function IG(r,e,t,a){var i,o,n=pc(t-r),s=a[0]>a[1],l=\"start\"===e&&!s||\"start\"!==e&&s;return ss(n-$a/2)?(o=l?\"bottom\":\"top\",i=\"center\"):ss(n-1.5*$a)?(o=l?\"top\":\"bottom\",i=\"center\"):(o=\"middle\",i=n<1.5*$a&&n>$a/2?l?\"left\":\"right\":l?\"right\":\"left\"),{rotation:n,textAlign:i,textVerticalAlign:o}}(r.rotation,i,c||0,u),null!=(p=r.axisNameAvailableWidth)&&(p=Math.abs(p/Math.sin(v.rotation)),!isFinite(p)&&(p=null)));var d=s.getFont(),g=e.get(\"nameTruncate\",!0)||{},y=g.ellipsis,m=ee(r.nameTruncateMaxWidth,g.maxWidth,p),_=new xt({x:h[0],y:h[1],rotation:v.rotation,silent:ii.isLabelSilent(e),style:zt(s,{text:n,font:d,overflow:\"truncate\",width:m,ellipsis:y,fill:s.getTextColor()||e.get([\"axisLine\",\"lineStyle\",\"color\"]),align:s.get(\"align\")||v.textAlign,verticalAlign:s.get(\"verticalAlign\")||v.textVerticalAlign}),z2:1});if(ao({el:_,componentModel:e,itemName:n}),_.__fullText=n,_.anid=\"name\",e.get(\"triggerEvent\")){var S=ii.makeAxisEventDataBase(e);S.targetType=\"axisName\",S.name=n,at(_).eventData=S}a.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function fr(r){r&&(r.ignore=!0)}function iC(r,e){var t=r&&r.getBoundingRect().clone(),a=e&&e.getBoundingRect().clone();if(t&&a){var n=rs([]);return Ra(n,n,-r.rotation),t.applyTransform(Or([],n,r.getLocalTransform())),a.applyTransform(Or([],n,e.getLocalTransform())),t.intersect(a)}}function oC(r){return\"middle\"===r||\"center\"===r}function sC(r,e,t,a,n){for(var i=[],o=[],s=[],l=0;l=0||r===e}function GG(r){var e=fg(r);if(e){var t=e.axisPointerModel,a=e.axis.scale,n=t.option,i=t.get(\"status\"),o=t.get(\"value\");null!=o&&(o=a.parse(o));var s=hg(t);null==i&&(n.status=s?\"show\":\"hide\");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==o||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:null!=p.min&&p.min<0&&!p.max&&(p.max=0);var d=l;null!=p.color&&(d=Q({color:p.color},l));var g=it($(p),{boundaryGap:t,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:\"end\",nameGap:h,nameTextStyle:d,triggerEvent:v},!1);if(W(f)){var y=g.name;g.name=f.replace(\"{value}\",null!=y?y:\"\")}else j(f)&&(g.name=f(g.name,g));var m=new Rt(g,null,this.ecModel);return Yt(m,co.prototype),m.mainType=\"radar\",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=c},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:it({lineStyle:{color:\"#bbb\"}},dl.axisLine),axisLabel:lh(dl.axisLabel,!1),axisTick:lh(dl.axisTick,!1),splitLine:lh(dl.splitLine,!0),splitArea:lh(dl.splitArea,!0),indicator:[]},e}(mt);const rF=eF;var aF=[\"axisLine\",\"axisTickLabel\",\"axisName\"],nF=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var a=t.coordinateSystem;A(G(a.getIndicatorAxes(),function(o){var s=o.model.get(\"showName\")?o.name:\"\";return new ga(o.model,{axisName:s,position:[a.cx,a.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(o){A(aF,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes();if(n.length){var i=t.get(\"shape\"),o=t.getModel(\"splitLine\"),s=t.getModel(\"splitArea\"),l=o.getModel(\"lineStyle\"),u=s.getModel(\"areaStyle\"),f=o.get(\"show\"),h=s.get(\"show\"),v=l.get(\"color\"),c=u.get(\"color\"),p=z(v)?v:[v],d=z(c)?c:[c],g=[],y=[];if(\"circle\"===i)for(var _=n[0].getTicksCoords(),S=a.cx,b=a.cy,x=0;x<_.length;x++)f&&g[m(g,p,x)].push(new Cr({shape:{cx:S,cy:b,r:_[x].coord}})),h&&x<_.length-1&&y[m(y,d,x)].push(new Ns({shape:{cx:S,cy:b,r0:_[x].coord,r:_[x+1].coord}}));else{var T,C=G(n,function(R,E){var N=R.getTicksCoords();return T=null==T?N.length-1:Math.min(N.length-1,T),G(N,function(k){return a.coordToPoint(k.coord,E)})}),D=[];for(x=0;x<=T;x++){for(var M=[],L=0;L3?1.4:o>1?1.2:1.1;pg(this,\"zoom\",\"zoomOnMouseWheel\",t,{scale:i>0?u:1/u,originX:s,originY:l,isAvailableBehavior:null})}if(n){var h=Math.abs(i);pg(this,\"scrollMove\",\"moveOnMouseWheel\",t,{scrollDelta:(i>0?1:-1)*(h>3?.4:h>1?.15:.05),originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){mC(this._zr,\"globalPan\")||pg(this,\"zoom\",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(je);function pg(r,e,t,a,n){r.pointerChecker&&r.pointerChecker(a,n.originX,n.originY)&&(aa(a.event),_C(r,e,t,a,n))}function _C(r,e,t,a,n){n.isAvailableBehavior=Y(uh,null,t,a),r.trigger(e,n)}function uh(r,e,t){var a=t[r];return!r||a&&(!W(a)||e.event[a+\"Key\"])}const gl=pF;function dg(r,e,t){var a=r.target;a.x+=e,a.y+=t,a.dirty()}function gg(r,e,t,a){var n=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=e,i){var s=i.min||0;o=Math.max(Math.min(i.max||1/0,o),s)}var u=o/r.zoom;r.zoom=o,n.x-=(t-n.x)*(u-1),n.y-=(a-n.y)*(u-1),n.scaleX*=u,n.scaleY*=u,n.dirty()}var dF={axisPointer:1,tooltip:1,brush:1};function fh(r,e,t){var a=e.getComponentByElement(r.topTarget),n=a&&a.coordinateSystem;return a&&a!==t&&!dF.hasOwnProperty(a.mainType)&&n&&n.model!==t}function SC(r){W(r)&&(r=(new DOMParser).parseFromString(r,\"text/xml\"));var t=r;for(9===t.nodeType&&(t=t.firstChild);\"svg\"!==t.nodeName.toLowerCase()||1!==t.nodeType;)t=t.nextSibling;return t}var yg,hh={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\"},xC=yt(hh),vh={\"alignment-baseline\":\"textBaseline\",\"stop-color\":\"stopColor\"},bC=yt(vh),gF=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var a=SC(e);this._defsUsePending=[];var n=new tt;this._root=n;var f,h,i=[],o=a.getAttribute(\"viewBox\")||\"\",s=parseFloat(a.getAttribute(\"width\")||t.width),l=parseFloat(a.getAttribute(\"height\")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Xe(a,n,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;if(function _F(r,e){for(var t=0;t=4&&(f={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(f&&null!=s&&null!=l&&(h=IC(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var c=n;(n=new tt).add(c),c.scaleX=c.scaleY=h.scale,c.x=h.x,c.y=h.y}return!t.ignoreRootClip&&null!=s&&null!=l&&n.setClipPath(new _t({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:f,viewBoxTransform:h,named:i}},r.prototype._parseNode=function(e,t,a,n,i,o){var l,s=e.nodeName.toLowerCase(),u=n;if(\"defs\"===s&&(i=!0),\"text\"===s&&(o=!0),\"defs\"===s||\"switch\"===s)l=t;else{if(!i){var f=yg[s];if(f&&Z(yg,s)){l=f.call(this,e,t);var h=e.getAttribute(\"name\");if(h){var v={name:h,namedFrom:null,svgNodeTagLower:s,el:l};a.push(v),\"g\"===s&&(u=v)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});t.add(l)}}var c=wC[s];if(c&&Z(wC,s)){var p=c.call(this,e),d=e.getAttribute(\"id\");d&&(this._defs[d]=p)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)1===g.nodeType?this._parseNode(g,l,a,u,i,o):3===g.nodeType&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(e,t){var a=new ps({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});hr(t,a),Xe(e,a,this._defsUsePending,!1,!1),function yF(r,e){var t=e.__selfStyle;if(t){var a=t.textBaseline,n=a;a&&\"auto\"!==a&&\"baseline\"!==a?\"before-edge\"===a||\"text-before-edge\"===a?n=\"top\":\"after-edge\"===a||\"text-after-edge\"===a?n=\"bottom\":(\"central\"===a||\"mathematical\"===a)&&(n=\"middle\"):n=\"alphabetic\",r.style.textBaseline=n}var i=e.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(\"middle\"===o&&(s=\"center\"),r.style.textAlign=s)}}(a,t);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+\"px\",n.fontFamily||\"sans-serif\"].join(\" \");n.font=o;var s=a.getBoundingRect();return this._textX+=s.width,t.add(a),a},r.internalField=void(yg={g:function(e,t){var a=new tt;return hr(t,a),Xe(e,a,this._defsUsePending,!1,!1),a},rect:function(e,t){var a=new _t;return hr(t,a),Xe(e,a,this._defsUsePending,!1,!1),a.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\")}),a.silent=!0,a},circle:function(e,t){var a=new Cr;return hr(t,a),Xe(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute(\"cx\")||\"0\"),cy:parseFloat(e.getAttribute(\"cy\")||\"0\"),r:parseFloat(e.getAttribute(\"r\")||\"0\")}),a.silent=!0,a},line:function(e,t){var a=new ne;return hr(t,a),Xe(e,a,this._defsUsePending,!1,!1),a.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\")}),a.silent=!0,a},ellipse:function(e,t){var a=new sf;return hr(t,a),Xe(e,a,this._defsUsePending,!1,!1),a.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\")}),a.silent=!0,a},polygon:function(e,t){var n,a=e.getAttribute(\"points\");a&&(n=AC(a));var i=new Me({shape:{points:n||[]},silent:!0});return hr(t,i),Xe(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n,a=e.getAttribute(\"points\");a&&(n=AC(a));var i=new De({shape:{points:n||[]},silent:!0});return hr(t,i),Xe(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var a=new le;return hr(t,a),Xe(e,a,this._defsUsePending,!1,!1),a.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\")}),a.silent=!0,a},text:function(e,t){var a=e.getAttribute(\"x\")||\"0\",n=e.getAttribute(\"y\")||\"0\",i=e.getAttribute(\"dx\")||\"0\",o=e.getAttribute(\"dy\")||\"0\";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new tt;return hr(t,s),Xe(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var a=e.getAttribute(\"x\"),n=e.getAttribute(\"y\");null!=a&&(this._textX=parseFloat(a)),null!=n&&(this._textY=parseFloat(n));var i=e.getAttribute(\"dx\")||\"0\",o=e.getAttribute(\"dy\")||\"0\",s=new tt;return hr(t,s),Xe(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var n=ox(e.getAttribute(\"d\")||\"\");return hr(t,n),Xe(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),r}(),wC={lineargradient:function(r){var e=parseInt(r.getAttribute(\"x1\")||\"0\",10),t=parseInt(r.getAttribute(\"y1\")||\"0\",10),a=parseInt(r.getAttribute(\"x2\")||\"10\",10),n=parseInt(r.getAttribute(\"y2\")||\"0\",10),i=new eo(e,t,a,n);return TC(r,i),CC(r,i),i},radialgradient:function(r){var e=parseInt(r.getAttribute(\"cx\")||\"0\",10),t=parseInt(r.getAttribute(\"cy\")||\"0\",10),a=parseInt(r.getAttribute(\"r\")||\"0\",10),n=new Gp(e,t,a);return TC(r,n),CC(r,n),n}};function TC(r,e){\"userSpaceOnUse\"===r.getAttribute(\"gradientUnits\")&&(e.global=!0)}function CC(r,e){for(var t=r.firstChild;t;){if(1===t.nodeType&&\"stop\"===t.nodeName.toLocaleLowerCase()){var n,a=t.getAttribute(\"offset\");n=a&&a.indexOf(\"%\")>0?parseInt(a,10)/100:a?parseFloat(a):0;var i={};LC(t,i,i);var o=i.stopColor||t.getAttribute(\"stop-color\")||\"#000000\";e.colorStops.push({offset:n,color:o})}t=t.nextSibling}}function hr(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Q(e.__inheritedStyle,r.__inheritedStyle))}function AC(r){for(var e=ch(r),t=[],a=0;a0;i-=2){var s=a[i-1],l=ch(a[i]);switch(n=n||[1,0,0,1,0,0],s){case\"translate\":Sr(n,n,[parseFloat(l[0]),parseFloat(l[1]||\"0\")]);break;case\"scale\":mu(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case\"rotate\":Ra(n,n,-parseFloat(l[0])*mg);break;case\"skewX\":Or(n,[1,0,Math.tan(parseFloat(l[0])*mg),1,0,0],n);break;case\"skewY\":Or(n,[1,Math.tan(parseFloat(l[0])*mg),0,1,0,0],n);break;case\"matrix\":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5])}}e.setLocalTransform(n)}}(r,e),LC(r,o,s),a||function wF(r,e,t){for(var a=0;a0,g={api:a,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:v};\"geoJSON\"===l.resourceType?this._buildGeoJSON(g):\"geoSVG\"===l.resourceType&&this._buildSVG(g),this._updateController(e,t,a),this._updateMapSelectHandler(e,u,a,n)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=q(),a=q(),n=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(c,p){return p&&(c=p(c)),c&&[c[0]*i.scaleX+i.x,c[1]*i.scaleY+i.y]}function h(c){for(var p=[],d=!u&&l&&l.project,g=0;g=0)&&(v=n);var c=o?{normal:{align:\"center\",verticalAlign:\"middle\"}}:null;ge(e,ue(a),{labelFetcher:v,labelDataIndex:h,defaultText:t},c);var p=e.getTextContent();if(p&&(RC(p).ignore=p.ignore,e.textConfig&&o)){var d=e.getBoundingRect().clone();e.textConfig.layoutRect=d,e.textConfig.position=[(o[0]-d.x)/d.width*100+\"%\",(o[1]-d.y)/d.height*100+\"%\"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function NC(r,e,t,a,n,i){r.data?r.data.setItemGraphicEl(i,e):at(e).eventData={componentType:\"geo\",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:t,region:a&&a.option||{}}}function VC(r,e,t,a,n){r.data||ao({el:e,componentModel:n,itemName:t,itemTooltipOption:a.get(\"tooltip\")})}function BC(r,e,t,a,n){e.highDownSilentOnTouch=!!n.get(\"selectedMode\");var i=a.getModel(\"emphasis\"),o=i.get(\"focus\");return Zt(e,o,i.get(\"blurScope\"),i.get(\"disabled\")),r.isGeo&&function AE(r,e,t){var a=at(r);a.componentMainType=e.mainType,a.componentIndex=e.componentIndex,a.componentHighDownName=t}(e,n,t),o}function zC(r,e,t){var n,a=[];function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),A(r,function(l){s.lineStart();for(var u=0;u-1&&(n.style.stroke=n.style.fill,n.style.fill=\"#fff\",n.style.lineWidth=2),n},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}(Ot);const YF=UF;function XF(r){var e={};r.eachSeriesByType(\"map\",function(t){var a=t.getHostGeoModel(),n=a?\"o\"+a.id:\"i\"+t.getMapType();(e[n]=e[n]||[]).push(t)}),A(e,function(t,a){for(var n=function ZF(r,e){var t={};return A(r,function(a){a.each(a.mapDimension(\"value\"),function(n,i){var o=\"ec-\"+a.getName(i);t[o]=t[o]||[],isNaN(n)||t[o].push(n)})}),r[0].map(r[0].mapDimension(\"value\"),function(a,n){for(var i=\"ec-\"+r[0].getName(n),o=0,s=1/0,l=-1/0,u=t[i].length,f=0;f1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var b=r.getBoxLayoutParams();b.aspect=g,S=Jt(b,{width:p,height:d})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get(\"center\"),e),this.setZoom(r.get(\"zoom\"))}var JF=function(){function r(){this.dimensions=WC}return r.prototype.create=function(e,t){var a=[];function n(o){return{nameProperty:o.get(\"nameProperty\"),aspectScale:o.get(\"aspectScale\"),projection:o.get(\"projection\")}}e.eachComponent(\"geo\",function(o,s){var l=o.get(\"map\"),u=new ZC(l+s,l,B({nameMap:o.get(\"nameMap\")},n(o)));u.zoomLimit=o.get(\"scaleLimit\"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=XC,u.resize(o,t)}),e.eachSeries(function(o){if(\"geo\"===o.get(\"coordinateSystem\")){var l=o.get(\"geoIndex\")||0;o.coordinateSystem=a[l]}});var i={};return e.eachSeriesByType(\"map\",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),A(i,function(o,s){var l=G(o,function(f){return f.get(\"nameMap\")}),u=new ZC(s,s,B({nameMap:Zl(l)},n(o[0])));u.zoomLimit=ee.apply(null,G(o,function(f){return f.get(\"scaleLimit\")})),a.push(u),u.resize=XC,u.resize(o[0],t),A(o,function(f){f.coordinateSystem=u,function QF(r,e){A(e.get(\"geoCoord\"),function(t,a){r.addGeoCoord(a,t)})}(u,f)})}),a},r.prototype.getFilledRegions=function(e,t,a,n){for(var i=(e||[]).slice(),o=q(),s=0;s=0;){var i=e[t];i.hierNode.prelim+=a,i.hierNode.modifier+=a,a+=i.hierNode.shift+(n+=i.hierNode.change)}}(r);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+e(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+e(r,n));r.parentNode.hierNode.defaultAncestor=function h3(r,e,t,a){if(e){for(var n=r,i=r,o=i.parentNode.children[0],s=e,l=n.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,h=s.hierNode.modifier;s=bg(s),i=wg(i),s&&i;){n=bg(n),o=wg(o),n.hierNode.ancestor=r;var v=s.hierNode.prelim+h-i.hierNode.prelim-u+a(s,i);v>0&&(c3(v3(s,r,t),r,v),u+=v,l+=v),h+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,f+=o.hierNode.modifier}s&&!bg(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=h-l),i&&!wg(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,t=r)}return t}(r,n,r.parentNode.hierNode.defaultAncestor||a[0],e)}function l3(r){r.setLayout({x:r.hierNode.prelim+r.parentNode.hierNode.modifier},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function QC(r){return arguments.length?r:p3}function _l(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function bg(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function wg(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function v3(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function c3(r,e,t){var a=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=a,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=a}function p3(r,e){return r.parentNode===e.parentNode?1:2}var d3=function r(){this.parentPoint=[],this.childPoints=[]},g3=function(r){function e(t){return r.call(this,t)||this}return O(e,r),e.prototype.getDefaultStyle=function(){return{stroke:\"#000\",fill:null}},e.prototype.getDefaultShape=function(){return new d3},e.prototype.buildPath=function(t,a){var n=a.childPoints,i=n.length,o=a.parentPoint,s=n[0],l=n[i-1];if(1===i)return t.moveTo(o[0],o[1]),void t.lineTo(s[0],s[1]);var u=a.orient,f=\"TB\"===u||\"BT\"===u?0:1,h=1-f,v=H(a.forkPosition,1),c=[];c[f]=o[f],c[h]=o[h]+(l[h]-o[h])*v,t.moveTo(o[0],o[1]),t.lineTo(c[0],c[1]),t.moveTo(s[0],s[1]),c[f]=s[f],t.lineTo(c[0],c[1]),c[f]=l[f],t.lineTo(c[0],c[1]),t.lineTo(l[0],l[1]);for(var p=1;pm.x)||(S-=Math.PI);var w=b?\"left\":\"right\",T=s.getModel(\"label\"),C=T.get(\"rotate\"),D=C*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:T.get(\"position\")||w,rotation:null==C?-S:D,origin:\"center\"}),M.setStyle(\"verticalAlign\",\"middle\"))}var L=s.get([\"emphasis\",\"focus\"]),I=\"relative\"===L?Bo(o.getAncestorsIndices(),o.getDescendantIndices()):\"ancestor\"===L?o.getAncestorsIndices():\"descendant\"===L?o.getDescendantIndices():null;I&&(at(t).focus=I),function m3(r,e,t,a,n,i,o,s){var l=e.getModel(),u=r.get(\"edgeShape\"),f=r.get(\"layout\"),h=r.getOrient(),v=r.get([\"lineStyle\",\"curveness\"]),c=r.get(\"edgeForkPosition\"),p=l.getModel(\"lineStyle\").getLineStyle(),d=a.__edge;if(\"curve\"===u)e.parentNode&&e.parentNode!==t&&(d||(d=a.__edge=new Vs({shape:Tg(f,h,v,n,n)})),bt(d,{shape:Tg(f,h,v,i,o)},r));else if(\"polyline\"===u&&\"orthogonal\"===f&&e!==t&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var g=e.children,y=[],m=0;mt&&(t=n.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,a=this.children,n=a.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(e)},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var a=t.getData().tree.root,n=r.targetNode;if(W(n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=r.targetNodeId;if(null!=i&&(n=a.getNodeById(i)))return{node:n}}}function iA(r){for(var e=[];r;)(r=r.parentNode)&&e.push(r);return e.reverse()}function Mg(r,e){return lt(iA(r),e)>=0}function dh(r,e){for(var t=[];r;){var a=r.dataIndex;t.push({name:r.name,dataIndex:a,value:e.getRawValue(a)}),r=r.parentNode}return t.reverse(),t}var I3=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return O(e,r),e.prototype.getInitialData=function(t){var a={name:t.name,children:t.data},i=new Rt(t.leaves||{},this,this.ecModel),o=Ag.createTree(a,this,function s(h){h.wrapMethod(\"getItemModel\",function(v,c){var p=o.getNodeByDataIndex(c);return p&&p.children.length&&p.isExpand||(v.parentModel=i),v})}),l=0;o.eachNode(\"preorder\",function(h){h.depth>l&&(l=h.depth)});var f=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode(\"preorder\",function(h){var v=h.hostTree.data.getRawDataItem(h.dataIndex);h.isExpand=v&&null!=v.collapsed?!v.collapsed:h.depth<=f}),o.data},e.prototype.getOrient=function(){var t=this.get(\"orient\");return\"horizontal\"===t?t=\"LR\":\"vertical\"===t&&(t=\"TB\"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,a,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+\".\"+u,s=s.parentNode;return ae(\"nameValue\",{name:u,value:l,noValue:isNaN(l)||null==l})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=dh(n,this),a.collapsed=!n.isExpand,a},e.type=\"series.tree\",e.layoutMode=\"box\",e.defaultOption={z:2,coordinateSystem:\"view\",left:\"12%\",top:\"12%\",right:\"12%\",bottom:\"12%\",layout:\"orthogonal\",edgeShape:\"curve\",edgeForkPosition:\"50%\",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:\"LR\",symbol:\"emptyCircle\",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:\"#ccc\",width:1.5,curveness:.5},itemStyle:{color:\"lightsteelblue\",borderWidth:1.5},label:{show:!0},animationEasing:\"linear\",animationDuration:700,animationDurationUpdate:500},e}(Ot);const P3=I3;function xl(r,e){for(var a,t=[r];a=t.pop();)if(e(a),a.isExpand){var n=a.children;if(n.length)for(var i=n.length-1;i>=0;i--)t.push(n[i])}}function E3(r,e){r.eachSeriesByType(\"tree\",function(t){!function k3(r,e){var t=function u3(r,e){return Jt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(r,e);r.layoutInfo=t;var a=r.get(\"layout\"),n=0,i=0,o=null;\"radial\"===a?(n=2*Math.PI,i=Math.min(t.height,t.width)/2,o=QC(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(n=t.width,i=t.height,o=QC());var s=r.getData().tree.root,l=s.children[0];if(l){(function o3(r){var e=r;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var a,n,t=[e];a=t.pop();)if(n=a.children,a.isExpand&&n.length)for(var o=n.length-1;o>=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}})(s),function R3(r,e,t){for(var i,a=[r],n=[];i=a.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;sf.getLayout().x&&(f=_),_.depth>h.depth&&(h=_)});var v=u===f?1:o(u,f)/2,c=v-u.getLayout().x,p=0,d=0,g=0,y=0;if(\"radial\"===a)p=n/(f.getLayout().x+v+c),d=i/(h.depth-1||1),xl(l,function(_){var S=_l(g=(_.getLayout().x+c)*p,y=(_.depth-1)*d);_.setLayout({x:S.x,y:S.y,rawX:g,rawY:y},!0)});else{var m=r.getOrient();\"RL\"===m||\"LR\"===m?(d=i/(f.getLayout().x+v+c),p=n/(h.depth-1||1),xl(l,function(_){y=(_.getLayout().x+c)*d,_.setLayout({x:g=\"LR\"===m?(_.depth-1)*p:n-(_.depth-1)*p,y},!0)})):(\"TB\"===m||\"BT\"===m)&&(p=n/(f.getLayout().x+v+c),d=i/(h.depth-1||1),xl(l,function(_){g=(_.getLayout().x+c)*p,_.setLayout({x:g,y:y=\"TB\"===m?(_.depth-1)*d:i-(_.depth-1)*d},!0)}))}}}(t,e)})}function O3(r){r.eachSeriesByType(\"tree\",function(e){var t=e.getData();t.tree.eachNode(function(n){var o=n.getModel().getModel(\"itemStyle\").getItemStyle();B(t.ensureUniqueItemVisual(n.dataIndex,\"style\"),o)})})}var oA=[\"treemapZoomToNode\",\"treemapRender\",\"treemapMove\"];function sA(r){var e=r.getData(),a={};e.tree.eachNode(function(n){for(var i=n;i&&i.depth>1;)i=i.parentNode;var o=yp(r.ecModel,i.name||i.dataIndex+\"\",a);n.setVisual(\"decal\",o)})}var z3=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return O(e,r),e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};lA(n);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Rt({itemStyle:o},this,a);i=t.levels=function G3(r,e){var t=Pt(e.get(\"color\")),a=Pt(e.get([\"aria\",\"decal\",\"decals\"]));if(t){var n,i;A(r=r||[],function(s){var l=new Rt(s),u=l.get(\"color\"),f=l.get(\"decal\");(l.get([\"itemStyle\",\"color\"])||u&&\"none\"!==u)&&(n=!0),(l.get([\"itemStyle\",\"decal\"])||f&&\"none\"!==f)&&(i=!0)});var o=r[0]||(r[0]={});return n||(o.color=t.slice()),!i&&a&&(o.decal=a.slice()),r}}(i,a);var l=G(i||[],function(h){return new Rt(h,s,a)},this),u=Ag.createTree(n,this,function f(h){h.wrapMethod(\"getItemModel\",function(v,c){var p=u.getNodeByDataIndex(c);return v.parentModel=(p?l[p.depth]:null)||s,v})});return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t);return ae(\"nameValue\",{name:i.getName(t),value:o})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=dh(n,this),a.treePathInfo=a.treeAncestors,a},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},B(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var a=this._idIndexMap;a||(a=this._idIndexMap=q(),this._idIndexMapCount=0);var n=a.get(t);return null==n&&a.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){sA(this)},e.type=\"series.treemap\",e.layoutMode=\"box\",e.defaultOption={progressive:0,left:\"center\",top:\"middle\",width:\"80%\",height:\"80%\",sort:!0,clipWindow:\"origin\",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:\"\\u25b6\",zoomToNodeRatio:.1024,roam:!0,nodeClick:\"zoomToNode\",animation:!0,animationDurationUpdate:900,animationEasing:\"quinticInOut\",breadcrumb:{show:!0,height:22,left:\"center\",top:\"bottom\",emptyItemWidth:25,itemStyle:{color:\"rgba(0,0,0,0.7)\",textStyle:{color:\"#fff\"}}},label:{show:!0,distance:0,padding:5,position:\"inside\",color:\"#fff\",overflow:\"truncate\"},upperLabel:{show:!1,position:[0,\"50%\"],height:20,overflow:\"truncate\",verticalAlign:\"middle\"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:\"#fff\",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,\"50%\"],overflow:\"truncate\",verticalAlign:\"middle\"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:\"index\",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Ot);function lA(r){var e=0;A(r.children,function(a){lA(a);var n=a.value;z(n)&&(n=n[0]),e+=n});var t=r.value;z(t)&&(t=t[0]),(null==t||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}const F3=z3;var W3=function(){function r(e){this.group=new tt,e.add(this.group)}return r.prototype.render=function(e,t,a,n){var i=e.getModel(\"breadcrumb\"),o=this.group;if(o.removeAll(),i.get(\"show\")&&a){var s=i.getModel(\"itemStyle\"),l=s.getModel(\"textStyle\"),u={pos:{left:i.get(\"left\"),right:i.get(\"right\"),top:i.get(\"top\"),bottom:i.get(\"bottom\")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get(\"emptyItemWidth\"),totalWidth:0,renderList:[]};this._prepare(a,u,l),this._renderContent(e,u,s,l,n),ju(o,u.pos,u.box)}},r.prototype._prepare=function(e,t,a){for(var n=e;n;n=n.parentNode){var i=te(n.getModel().get(\"name\"),\"\"),o=a.getTextRect(i),s=Math.max(o.width+16,t.emptyItemWidth);t.totalWidth+=s+8,t.renderList.push({node:n,text:i,width:s})}},r.prototype._renderContent=function(e,t,a,n,i){for(var o=0,s=t.emptyItemWidth,l=e.get([\"breadcrumb\",\"height\"]),u=function ek(r,e,t){var a=e.width,n=e.height,i=H(r.left,a),o=H(r.top,n),s=H(r.right,a),l=H(r.bottom,n);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=a),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=n),t=Nn(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}(t.pos,t.box),f=t.totalWidth,h=t.renderList,v=h.length-1;v>=0;v--){var c=h[v],p=c.node,d=c.width,g=c.text;f>u.width&&(f-=d-s,d=s,g=null);var y=new Me({shape:{points:U3(o,0,d,l,v===h.length-1,0===v)},style:Q(a.getItemStyle(),{lineJoin:\"bevel\"}),textContent:new xt({style:{text:g,fill:n.getTextColor(),font:n.getFont()}}),textConfig:{position:\"inside\"},z2:1e5,onclick:nt(i,p)});y.disableLabelAnimation=!0,this.group.add(y),Y3(y,e,p),o+=d+8}},r.prototype.remove=function(){this.group.removeAll()},r}();function U3(r,e,t,a,n,i){var o=[[n?r:r-5,e],[r+t,e],[r+t,e+a],[n?r:r-5,e+a]];return!i&&o.splice(2,0,[r+t+5,e+a/2]),!n&&o.push([r,e+a/2]),o}function Y3(r,e,t){at(r).eventData={componentType:\"series\",componentSubType:\"treemap\",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:\"treemap\",selfType:\"breadcrumb\",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&dh(t,e)}}const Z3=W3;var X3=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,a,n,i){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:a,delay:n,easing:i}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,a=function(){--t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},n=0,i=this._storage.length;n3||Math.abs(t.dy)>3)){var a=this.seriesModel.getData().tree.root;if(!a)return;var n=a.getLayout();if(!n)return;this.api.dispatchAction({type:\"treemapMove\",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var a=t.originX,n=t.originY;if(\"animating\"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new ut(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo,u=[1,0,0,1,0,0];Sr(u,u,[-(a-=l.x),-(n-=l.y)]),mu(u,u,[t.scale,t.scale]),Sr(u,u,[a,n]),s.applyTransform(u),this.api.dispatchAction({type:\"treemapRender\",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var a=this;t.on(\"click\",function(n){if(\"ready\"===a._state){var i=a.seriesModel.get(\"nodeClick\",!0);if(i){var o=a.findTarget(n.offsetX,n.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if(\"zoomToNode\"===i)a._zoomToNode(o);else if(\"link\"===i){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get(\"link\",!0),f=l.get(\"target\",!0)||\"blank\";u&&qu(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(t,a,n){var i=this;n||(n=null!=t.get(\"leafDepth\",!0)?{node:t.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new Z3(this.group))).render(t,a,n.node,function(o){\"animating\"!==i._state&&(Mg(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state=\"ready\",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:\"treemapZoomToNode\",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:\"treemapRootToNode\",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,a){var n;return this.seriesModel.getViewRoot().eachNode({attr:\"viewChildren\",order:\"preorder\"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,a),u=s.shape;if(!(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height))return!1;n={node:o,offsetX:l[0],offsetY:l[1]}}},this),n},e.type=\"treemap\",e}(Et);const eH=J3;var wl=A,rH=J,Ig=function(){function r(e){var t=e.mappingMethod,a=e.type,n=this.option=$(e);this.type=a,this.mappingMethod=t,this._normalizeData=iH[t];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],\"piecewise\"===t?(Pg(n),function aH(r){var e=r.pieceList;r.hasSpecialVisual=!1,A(e,function(t,a){t.originIndex=a,null!=t.visual&&(r.hasSpecialVisual=!0)})}(n)):\"category\"===t?n.categories?function nH(r){var e=r.categories,t=r.categoryMap={},a=r.visual;if(wl(e,function(o,s){t[o]=s}),!z(a)){var n=[];J(a)?wl(a,function(o,s){var l=t[s];n[null!=l?l:-1]=o}):n[-1]=a,a=gA(r,n)}for(var i=e.length-1;i>=0;i--)null==a[i]&&(delete t[e[i]],e.pop())}(n):Pg(n,!0):(pe(\"linear\"!==t||n.dataExtent),Pg(n))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return Y(this._normalizeData,this)},r.listVisualTypes=function(){return yt(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,a){J(e)?A(e,t,a):t.call(a,e)},r.mapVisual=function(e,t,a){var n,i=z(e)?[]:J(e)?{}:(n=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(e){var a,t={};return e&&wl(r.visualHandlers,function(n,i){e.hasOwnProperty(i)&&(t[i]=e[i],a=!0)}),a?t:null},r.prepareVisualTypes=function(e){if(z(e))e=e.slice();else{if(!rH(e))return[];var t=[];wl(e,function(a,n){t.push(n)}),e=t}return e.sort(function(a,n){return\"color\"===n&&\"color\"!==a&&0===a.indexOf(\"color\")?1:-1}),e},r.dependsOn=function(e,t){return\"color\"===t?!(!e||0!==e.indexOf(t)):e===t},r.findPieceIndex=function(e,t,a){for(var n,i=1/0,o=0,s=t.length;ou[1]&&(u[1]=l);var f=e.get(\"colorMappingBy\"),h={type:o.name,dataExtent:u,visual:o.range};\"color\"!==h.type||\"index\"!==f&&\"id\"!==f?h.mappingMethod=\"linear\":(h.mappingMethod=\"category\",h.loop=!0);var v=new ce(h);return yA(v).drColorMappingBy=f,v}}}(0,n,i,0,l,c);A(c,function(d,g){if(d.depth>=t.length||d===t[d.depth]){var y=function hH(r,e,t,a,n,i){var o=B({},e);if(n){var s=n.type,l=\"color\"===s&&yA(n).drColorMappingBy,u=\"index\"===l?a:\"id\"===l?i.mapIdToIndex(t.getId()):t.getValue(r.get(\"visualDimension\"));o[s]=n.mapValueToVisual(u)}return o}(n,l,d,g,p,a);mA(d,y,t,a)}})}else v=_A(l),u.fill=v}}function _A(r){var e=kg(r,\"color\");if(e){var t=kg(r,\"colorAlpha\"),a=kg(r,\"colorSaturation\");return a&&(e=Li(e,null,null,a)),t&&(e=jo(e,t)),e}}function kg(r,e){var t=r[e];if(null!=t&&\"none\"!==t)return t}function Og(r,e){var t=r.get(e);return z(t)&&t.length?{name:e,range:t}:null}var Al=Math.max,Sh=Math.min,SA=ee,Ng=A,xA=[\"itemStyle\",\"borderWidth\"],vH=[\"itemStyle\",\"gapWidth\"],cH=[\"upperLabel\",\"show\"],pH=[\"upperLabel\",\"height\"];const dH={seriesType:\"treemap\",reset:function(r,e,t,a){var n=t.getWidth(),i=t.getHeight(),o=r.option,s=Jt(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=H(SA(s.width,l[0]),n),f=H(SA(s.height,l[1]),i),h=a&&a.type,c=Sl(a,[\"treemapZoomToNode\",\"treemapRootToNode\"],r),p=\"treemapRender\"===h||\"treemapMove\"===h?a.rootRect:null,d=r.getViewRoot(),g=iA(d);if(\"treemapMove\"!==h){var y=\"treemapZoomToNode\"===h?function xH(r,e,t,a,n){var i=(e||{}).node,o=[a,n];if(!i||i===t)return o;for(var s,l=a*n,u=l*r.option.zoomToNodeRatio;s=i.parentNode;){for(var f=0,h=s.children,v=0,c=h.length;vcc&&(u=cc),i=s}us[1]&&(s[1]=u)})):s=[NaN,NaN],{sum:a,dataExtent:s}}(e,o,s);if(0===u.sum)return r.viewChildren=[];if(u.sum=function yH(r,e,t,a,n){if(!a)return t;for(var i=r.get(\"visibleMin\"),o=n.length,s=o,l=o-1;l>=0;l--){var u=n[\"asc\"===a?o-l-1:l].getValue();u/t*ea&&(a=o));var l=r.area*r.area,u=e*e*t;return l?Al(u*a/l,l/(u*n)):1/0}function wA(r,e,t,a,n){var i=e===t.width?0:1,o=1-i,s=[\"x\",\"y\"],l=[\"width\",\"height\"],u=t[s[i]],f=e?r.area/e:0;(n||f>t[l[o]])&&(f=t[l[o]]);for(var h=0,v=r.length;ha&&(a=e);var i=a%2?a+2:a+3;n=[];for(var o=0;o0&&(b[0]=-b[0],b[1]=-b[1]);var w=S[0]<0?-1:1;if(\"start\"!==i.__position&&\"end\"!==i.__position){var T=-Math.atan2(S[1],S[0]);h[0].8?\"left\":v[0]<-.8?\"right\":\"center\",d=v[1]>.8?\"top\":v[1]<-.8?\"bottom\":\"middle\";break;case\"start\":i.x=-v[0]*y+f[0],i.y=-v[1]*m+f[1],p=v[0]>.8?\"right\":v[0]<-.8?\"left\":\"center\",d=v[1]>.8?\"bottom\":v[1]<-.8?\"top\":\"middle\";break;case\"insideStartTop\":case\"insideStart\":case\"insideStartBottom\":i.x=y*w+f[0],i.y=f[1]+C,p=S[0]<0?\"right\":\"left\",i.originX=-y*w,i.originY=-C;break;case\"insideMiddleTop\":case\"insideMiddle\":case\"insideMiddleBottom\":case\"middle\":i.x=x[0],i.y=x[1]+C,p=\"center\",i.originY=-C;break;case\"insideEndTop\":case\"insideEnd\":case\"insideEndBottom\":i.x=-y*w+h[0],i.y=h[1]+C,p=S[0]>=0?\"right\":\"left\",i.originX=y*w,i.originY=-C}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||p})}}}function c(D,M){var L=D.__specifiedRotation;if(null==L){var I=l.tangentAt(M);D.attr(\"rotation\",(1===M?-1:1)*Math.PI/2-Math.atan2(I[1],I[0]))}else D.attr(\"rotation\",L)}},e}(tt);const Yg=FH;var HH=function(){function r(e){this.group=new tt,this._LineCtor=e||Yg}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=e,i||n.removeAll();var o=NA(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;!e||e.eachItemGraphicEl(function(t,a){t.updateLayout(e,a)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=NA(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){function a(s){!s.isGroup&&!function WH(r){return r.animators&&r.animators.length>0}(s)&&(s.incremental=!0,s.ensureState(\"emphasis\").hoverLayer=!0)}this._progressiveEls=[];for(var n=e.start;n=0?s+=u:s-=u:p>=0?s-=u:s+=u}return s}function Jg(r,e){var t=[],a=Zo,n=[[],[],[]],i=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual(\"fromSymbol\"),h=s.getVisual(\"toSymbol\");u.__original||(u.__original=[Er(u[0]),Er(u[1])],u[2]&&u.__original.push(Er(u[2])));var v=u.__original;if(null!=u[2]){if(de(n[0],v[0]),de(n[1],v[2]),de(n[2],v[1]),f&&\"none\"!==f){var c=Ll(s.node1),p=zA(n,v[0],c*e);a(n[0][0],n[1][0],n[2][0],p,t),n[0][0]=t[3],n[1][0]=t[4],a(n[0][1],n[1][1],n[2][1],p,t),n[0][1]=t[3],n[1][1]=t[4]}h&&\"none\"!==h&&(c=Ll(s.node2),p=zA(n,v[1],c*e),a(n[0][0],n[1][0],n[2][0],p,t),n[1][0]=t[1],n[2][0]=t[2],a(n[0][1],n[1][1],n[2][1],p,t),n[1][1]=t[1],n[2][1]=t[2]),de(u[0],n[0]),de(u[1],n[2]),de(u[2],n[1])}else de(i[0],v[0]),de(i[1],v[1]),Ca(o,i[1],i[0]),wi(o,o),f&&\"none\"!==f&&(c=Ll(s.node1),Ql(i[0],i[0],o,c*e)),h&&\"none\"!==h&&(c=Ll(s.node2),Ql(i[1],i[1],o,-c*e)),de(u[0],i[0]),de(u[1],i[1])})}function GA(r){return\"view\"===r.type}var UH=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.init=function(t,a){var n=new fl,i=new Xg,o=this.group;this._controller=new gl(a.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,a,n){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(GA(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):bt(u,f,t)}Jg(t.getGraph(),Dl(t));var h=t.getData();s.updateData(h);var v=t.getEdgeData();l.updateData(v),this._updateNodeAndLinkScale(),this._updateController(t,a,n),clearTimeout(this._layoutTimeout);var c=t.forceLayout,p=t.get([\"force\",\"layoutAnimation\"]);c&&this._startForceLayoutIteration(c,p),h.graph.eachNode(function(m){var _=m.dataIndex,S=m.getGraphicEl(),b=m.getModel();if(S){S.off(\"drag\").off(\"dragend\");var x=b.get(\"draggable\");x&&S.on(\"drag\",function(){c&&(c.warmUp(),!i._layouting&&i._startForceLayoutIteration(c,p),c.setFixed(_),h.setItemLayout(_,[S.x,S.y]))}).on(\"dragend\",function(){c&&c.setUnfixed(_)}),S.setDraggable(x&&!!c,!!b.get(\"cursor\")),\"adjacency\"===b.get([\"emphasis\",\"focus\"])&&(at(S).focus=m.getAdjacentDataIndices())}}),h.graph.eachEdge(function(m){var _=m.getGraphicEl(),S=m.getModel().get([\"emphasis\",\"focus\"]);!_||\"adjacency\"===S&&(at(_).focus={edge:[m.dataIndex],node:[m.node1.dataIndex,m.node2.dataIndex]})});var d=\"circular\"===t.get(\"layout\")&&t.get([\"circular\",\"rotateLabel\"]),g=h.getLayout(\"cx\"),y=h.getLayout(\"cy\");h.eachItemGraphicEl(function(m,_){var b=h.getItemModel(_).get([\"label\",\"rotate\"])||0,x=m.getSymbolPath();if(d){var w=h.getItemLayout(_),T=Math.atan2(w[1]-y,w[0]-g);T<0&&(T=2*Math.PI+T);var C=w[0]=0&&e.call(t,a[i],i)},r.prototype.eachEdge=function(e,t){for(var a=this.edges,n=a.length,i=0;i=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&e.call(t,a[i],i)},r.prototype.breadthFirstTraverse=function(e,t,a,n){if(t instanceof hi||(t=this._nodesMap[wo(t)]),t){for(var i=\"out\"===a?\"outEdges\":\"in\"===a?\"inEdges\":\"edges\",o=0;o=0&&l.node2.dataIndex>=0}),i=0,o=n.length;i=0&&this[r][e].setItemVisual(this.dataIndex,t,a)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,a){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,a)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}Yt(hi,HA(\"hostGraph\",\"data\")),Yt(FA,HA(\"hostGraph\",\"edgeData\"));const XH=ZH;function WA(r,e,t,a,n){for(var i=new XH(a),o=0;o \"+v)),u++)}var p,c=t.get(\"coordinateSystem\");if(\"cartesian2d\"===c||\"polar\"===c)p=Zr(r,t);else{var d=Ki.get(c),g=d&&d.dimensions||[];lt(g,\"value\")<0&&g.concat([\"value\"]);var y=ho(r,{coordDimensions:g,encodeDefine:t.getEncode()}).dimensions;(p=new xe(y,t)).initData(r)}var m=new xe([\"value\"],t);return m.initData(l,s),n&&n(p,m),nA({mainData:p,struct:i,structAttr:\"graph\",datas:{node:p,edge:m},datasAttr:{node:\"data\",edge:\"edgeData\"}}),i.update(),i}var qH=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return O(e,r),e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new cl(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),Sn(t,\"edgeLabel\",[\"show\"])},e.prototype.getInitialData=function(t,a){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&n){!function LH(r){!bh(r)||(r.__curvenessList=[],r.__edgeMap={},AA(r))}(this);var s=WA(i,n,this,!0,function l(u,f){u.wrapMethod(\"getItemModel\",function(p){var y=o._categoriesModels[p.getShallow(\"category\")];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var h=Rt.prototype.getModel;function v(p,d){var g=h.call(this,p,d);return g.resolveParentPath=c,g}function c(p){if(p&&(\"label\"===p[0]||\"label\"===p[1])){var d=p.slice();return\"label\"===p[0]?d[0]=\"edgeLabel\":\"label\"===p[1]&&(d[1]=\"edgeLabel\"),d}return p}f.wrapMethod(\"getItemModel\",function(p){return p.resolveParentPath=c,p.getModel=v,p})});return A(s.edges,function(u){!function IH(r,e,t,a){if(bh(t)){var n=Ml(r,e,t),i=t.__edgeMap,o=i[MA(n)];i[n]&&!o?i[n].isForward=!0:o&&i[n]&&(o.isForward=!0,i[n].isForward=!1),i[n]=i[n]||[],i[n].push(a)}}(u.node1,u.node2,this,u.dataIndex)},this),s.data}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,a,n){if(\"edge\"===n){var i=this.getData(),o=this.getDataParams(t,n),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return null!=l&&f.push(l),null!=u&&f.push(u),ae(\"nameValue\",{name:f.join(\" > \"),value:o.value,noValue:null==o.value})}return K1({series:this,dataIndex:t,multipleSeries:a})},e.prototype._updateCategoriesData=function(){var t=G(this.option.categories||[],function(n){return null!=n.value?n:B({value:0},n)}),a=new xe([\"value\"],this);a.initData(t),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(\"force\"===this.get(\"layout\")&&this.get([\"force\",\"layoutAnimation\"]))},e.type=\"series.graph\",e.dependencies=[\"grid\",\"polar\",\"geo\",\"singleAxis\",\"calendar\"],e.defaultOption={z:2,coordinateSystem:\"view\",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:\"center\",top:\"center\",symbol:\"circle\",symbolSize:10,edgeSymbol:[\"none\",\"none\"],edgeSymbolSize:10,edgeLabel:{position:\"middle\",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:\"{b}\"},itemStyle:{},lineStyle:{color:\"#aaa\",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:\"#212121\"}}},e}(Ot);const KH=qH;var jH={type:\"graphRoam\",event:\"graphRoam\",update:\"none\"},JH=function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},$H=function(r){function e(t){var a=r.call(this,t)||this;return a.type=\"pointer\",a}return O(e,r),e.prototype.getDefaultShape=function(){return new JH},e.prototype.buildPath=function(t,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),f=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,t.moveTo(u,f),t.lineTo(a.x+n(l)*s,a.y+i(l)*s),t.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),t.lineTo(a.x-n(l)*s,a.y-i(l)*s),t.lineTo(u,f)},e}(pt);const t4=$H;function wh(r,e){var t=null==r?\"\":r+\"\";return e&&(W(e)?t=e.replace(\"{value}\",t):j(e)&&(t=e(r))),t}var r4=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){this.group.removeAll();var i=t.get([\"axisLine\",\"lineStyle\",\"color\"]),o=function e4(r,e){var t=r.get(\"center\"),a=e.getWidth(),n=e.getHeight(),i=Math.min(a,n);return{cx:H(t[0],e.getWidth()),cy:H(t[1],e.getHeight()),r:H(r.get(\"radius\"),i/2)}}(t,n);this._renderMain(t,a,n,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,a,n,i,o){var s=this.group,l=t.get(\"clockwise\"),u=-t.get(\"startAngle\")/180*Math.PI,f=-t.get(\"endAngle\")/180*Math.PI,h=t.getModel(\"axisLine\"),c=h.get(\"roundCap\")?ah:Ae,p=h.get(\"show\"),d=h.getModel(\"lineStyle\"),g=d.get(\"width\"),y=[u,f];I_(y,!l);for(var m=(f=y[1])-(u=y[0]),_=u,S=0;p&&S=T&&(0===C?0:i[C-1][0]).8?\"bottom\":\"middle\",align:P<-.4?\"left\":P>.4?\"right\":\"center\"},{inheritColor:F}),silent:!0}))}if(m.get(\"show\")&&E!==S){N=(N=m.get(\"distance\"))?N+f:f;for(var U=0;U<=b;U++){P=Math.cos(T),R=Math.sin(T);var X=new ne({shape:{x1:P*(p-N)+v,y1:R*(p-N)+c,x2:P*(p-w-N)+v,y2:R*(p-w-N)+c},silent:!0,style:L});\"auto\"===L.stroke&&X.setStyle({stroke:i((E+U/b)/S)}),h.add(X),T+=D}T-=D}else T+=C}},e.prototype._renderPointer=function(t,a,n,i,o,s,l,u,f){var h=this.group,v=this._data,c=this._progressEls,p=[],d=t.get([\"pointer\",\"show\"]),g=t.getModel(\"progress\"),y=g.get(\"show\"),m=t.getData(),_=m.mapDimension(\"value\"),S=+t.get(\"min\"),b=+t.get(\"max\"),x=[S,b],w=[s,l];function T(D,M){var U,I=m.getItemModel(D).getModel(\"pointer\"),P=H(I.get(\"width\"),o.r),R=H(I.get(\"length\"),o.r),E=t.get([\"pointer\",\"icon\"]),N=I.get(\"offsetCenter\"),k=H(N[0],o.r),V=H(N[1],o.r),F=I.get(\"keepAspect\");return(U=E?Kt(E,k-P/2,V-R,P,R,null,F):new t4({shape:{angle:-Math.PI/2,width:P,r:R,x:k,y:V}})).rotation=-(M+Math.PI/2),U.x=o.cx,U.y=o.cy,U}function C(D,M){var I=g.get(\"roundCap\")?ah:Ae,P=g.get(\"overlap\"),R=P?g.get(\"width\"):f/m.count(),k=new I({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:P?o.r-R:o.r-(D+1)*R,r:P?o.r:o.r-D*R}});return P&&(k.z2=b-m.get(_,D)%b),k}(y||d)&&(m.diff(v).add(function(D){var M=m.get(_,D);if(d){var L=T(D,s);Bt(L,{rotation:-((isNaN(+M)?w[0]:Dt(M,x,w,!0))+Math.PI/2)},t),h.add(L),m.setItemGraphicEl(D,L)}if(y){var I=C(D,s),P=g.get(\"clip\");Bt(I,{shape:{endAngle:Dt(M,x,w,P)}},t),h.add(I),Bc(t.seriesIndex,m.dataType,D,I),p[D]=I}}).update(function(D,M){var L=m.get(_,D);if(d){var I=v.getItemGraphicEl(M),P=I?I.rotation:s,R=T(D,P);R.rotation=P,bt(R,{rotation:-((isNaN(+L)?w[0]:Dt(L,x,w,!0))+Math.PI/2)},t),h.add(R),m.setItemGraphicEl(D,R)}if(y){var E=c[M],k=C(D,E?E.shape.endAngle:s),V=g.get(\"clip\");bt(k,{shape:{endAngle:Dt(L,x,w,V)}},t),h.add(k),Bc(t.seriesIndex,m.dataType,D,k),p[D]=k}}).execute(),m.each(function(D){var M=m.getItemModel(D),L=M.getModel(\"emphasis\"),I=L.get(\"focus\"),P=L.get(\"blurScope\"),R=L.get(\"disabled\");if(d){var E=m.getItemGraphicEl(D),N=m.getItemVisual(D,\"style\"),k=N.fill;if(E instanceof le){var V=E.style;E.useStyle(B({image:V.image,x:V.x,y:V.y,width:V.width,height:V.height},N))}else E.useStyle(N),\"pointer\"!==E.type&&E.setColor(k);E.setStyle(M.getModel([\"pointer\",\"itemStyle\"]).getItemStyle()),\"auto\"===E.style.fill&&E.setStyle(\"fill\",i(Dt(m.get(_,D),x,[0,1],!0))),E.z2EmphasisLift=0,he(E,M),Zt(E,I,P,R)}if(y){var F=p[D];F.useStyle(m.getItemVisual(D,\"style\")),F.setStyle(M.getModel([\"progress\",\"itemStyle\"]).getItemStyle()),F.z2EmphasisLift=0,he(F,M),Zt(F,I,P,R)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,a){var n=t.getModel(\"anchor\");if(n.get(\"show\")){var o=n.get(\"size\"),s=n.get(\"icon\"),l=n.get(\"offsetCenter\"),u=n.get(\"keepAspect\"),f=Kt(s,a.cx-o/2+H(l[0],a.r),a.cy-o/2+H(l[1],a.r),o,o,null,u);f.z2=n.get(\"showAbove\")?1:0,f.setStyle(n.getModel(\"itemStyle\").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(t,a,n,i,o){var s=this,l=t.getData(),u=l.mapDimension(\"value\"),f=+t.get(\"min\"),h=+t.get(\"max\"),v=new tt,c=[],p=[],d=t.isAnimationEnabled(),g=t.get([\"pointer\",\"showAbove\"]);l.diff(this._data).add(function(y){c[y]=new xt({silent:!0}),p[y]=new xt({silent:!0})}).update(function(y,m){c[y]=s._titleEls[m],p[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new tt,b=i(Dt(_,[f,h],[0,1],!0)),x=m.getModel(\"title\");if(x.get(\"show\")){var w=x.get(\"offsetCenter\"),T=o.cx+H(w[0],o.r),C=o.cy+H(w[1],o.r);(D=c[y]).attr({z2:g?0:2,style:zt(x,{x:T,y:C,text:l.getName(y),align:\"center\",verticalAlign:\"middle\"},{inheritColor:b})}),S.add(D)}var M=m.getModel(\"detail\");if(M.get(\"show\")){var L=M.get(\"offsetCenter\"),I=o.cx+H(L[0],o.r),P=o.cy+H(L[1],o.r),R=H(M.get(\"width\"),o.r),E=H(M.get(\"height\"),o.r),N=t.get([\"progress\",\"show\"])?l.getItemVisual(y,\"style\").fill:b,D=p[y],k=M.get(\"formatter\");D.attr({z2:g?0:2,style:zt(M,{x:I,y:P,text:wh(_,k),width:isNaN(R)?null:R,height:isNaN(E)?null:E,align:\"center\",verticalAlign:\"middle\"},{inheritColor:N})}),TS(D,{normal:M},_,function(F){return wh(F,k)}),d&&CS(D,y,l,t,{getFormattedLabel:function(F,U,X,et,ct,Lt){return wh(Lt?Lt.interpolatedValue:_,k)}}),S.add(D)}v.add(S)}),this.group.add(v),this._titleEls=c,this._detailEls=p},e.type=\"gauge\",e}(Et);const a4=r4;var n4=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath=\"itemStyle\",t}return O(e,r),e.prototype.getInitialData=function(t,a){return mo(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},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}(Ot);const i4=n4;var s4=[\"itemStyle\",\"opacity\"],l4=function(r){function e(t,a){var n=r.call(this)||this,i=n,o=new De,s=new xt;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(t,a,!0),n}return O(e,r),e.prototype.updateData=function(t,a,n){var i=this,o=t.hostModel,s=t.getItemModel(a),l=t.getItemLayout(a),u=s.getModel(\"emphasis\"),f=s.get(s4);f=null==f?1:f,n||wr(i),i.useStyle(t.getItemVisual(a,\"style\")),i.style.lineJoin=\"round\",n?(i.setShape({points:l.points}),i.style.opacity=0,Bt(i,{style:{opacity:f}},o,a)):bt(i,{style:{opacity:f},shape:{points:l.points}},o,a),he(i,s),this._updateLabel(t,a),Zt(this,u.get(\"focus\"),u.get(\"blurScope\"),u.get(\"disabled\"))},e.prototype._updateLabel=function(t,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=t.hostModel,l=t.getItemModel(a),f=t.getItemLayout(a).label,h=t.getItemVisual(a,\"style\"),v=h.fill;ge(o,ue(l),{labelFetcher:t.hostModel,labelDataIndex:a,defaultOpacity:h.opacity,defaultText:t.getName(a)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}}),n.setTextConfig({local:!0,inside:!!f.inside,insideStroke:v,outsideFill:v});var c=f.linePoints;i.setShape({points:c}),n.textGuideLineConfig={anchor:c?new ot(c[0][0],c[0][1]):null},bt(o,{style:{x:f.x,y:f.y}},s,a),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),Nd(n,Vd(l),{stroke:v})},e}(Me),u4=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return O(e,r),e.prototype.render=function(t,a,n){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new l4(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(i,l),s.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){Ss(o.getItemGraphicEl(l),t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type=\"funnel\",e}(Et);const f4=u4;var h4=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new cl(Y(this.getData,this),Y(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,a){return mo(this,{coordDimensions:[\"value\"],encodeDefaulter:nt(cp,this)})},e.prototype._defaultLabelLine=function(t){Sn(t,\"labelLine\",[\"show\"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var a=this.getData(),n=r.prototype.getDataParams.call(this,t),i=a.mapDimension(\"value\"),o=a.getSum(i);return n.percent=o?+(a.get(i,t)/o*100).toFixed(2):0,n.$vars.push(\"percent\"),n},e.type=\"series.funnel\",e.defaultOption={z:2,legendHoverLink:!0,colorBy:\"data\",left:80,top:60,right:80,bottom:60,minSize:\"0%\",maxSize:\"100%\",sort:\"descending\",orient:\"vertical\",gap:0,funnelAlign:\"center\",label:{show:!0,position:\"outer\"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:\"#fff\",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:\"#212121\"}}},e}(Ot);const v4=h4;function g4(r,e){r.eachSeriesByType(\"funnel\",function(t){var a=t.getData(),n=a.mapDimension(\"value\"),i=t.get(\"sort\"),o=function c4(r,e){return Jt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),s=t.get(\"orient\"),l=o.width,u=o.height,f=function p4(r,e){for(var t=r.mapDimension(\"value\"),a=r.mapArray(t,function(l){return l}),n=[],i=\"ascending\"===e,o=0,s=r.count();o5)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);\"none\"!==n.behavior&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!this._mouseDownPoint&&ty(this,\"mousemove\")){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=t.behavior;\"jump\"===a&&this._throttledDispatchExpand.debounceNextCall(e.get(\"axisExpandDebounce\")),this._throttledDispatchExpand(\"none\"===a?null:{axisExpandWindow:t.axisExpandWindow,animation:\"jump\"===a?null:{duration:0}})}}};function ty(r,e){var t=r._model;return t.get(\"axisExpandable\")&&t.get(\"axisExpandTriggerOn\")===e}const N4=k4;var V4=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){t&&it(this.option,t,!0),this._initDimensions()},e.prototype.contains=function(t,a){var n=t.get(\"parallelIndex\");return null!=n&&a.getComponent(\"parallel\",n)===this},e.prototype.setAxisExpand=function(t){A([\"axisExpandable\",\"axisExpandCenter\",\"axisExpandCount\",\"axisExpandWidth\",\"axisExpandWindow\"],function(a){t.hasOwnProperty(a)&&(this.option[a]=t[a])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],a=this.parallelAxisIndex=[];A(It(this.ecModel.queryComponents({mainType:\"parallelAxis\"}),function(i){return(i.get(\"parallelIndex\")||0)===this.componentIndex},this),function(i){t.push(\"dim\"+i.get(\"dim\")),a.push(i.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}(mt);const B4=V4;var z4=function(r){function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.type=i||\"value\",s.axisIndex=o,s}return O(e,r),e.prototype.isHorizontal=function(){return\"horizontal\"!==this.coordinateSystem.getModel().get(\"layout\")},e}(ur);const G4=z4;function vi(r,e,t,a,n,i){r=r||0;var o=t[1]-t[0];if(null!=n&&(n=To(n,[0,o])),null!=i&&(i=Math.max(i,null!=n?n:0)),\"all\"===a){var s=Math.abs(e[1]-e[0]);s=To(s,[0,o]),n=i=To(s,[n,i]),a=0}e[0]=To(e[0],t),e[1]=To(e[1],t);var l=ey(e,a);e[a]+=r;var h,u=n||0,f=t.slice();return l.sign<0?f[0]+=u:f[1]-=u,e[a]=To(e[a],f),h=ey(e,a),null!=n&&(h.sign!==l.sign||h.spani&&(e[1-a]=e[a]+h.sign*i),e}function ey(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function To(r,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,r))}var ry=A,XA=Math.min,qA=Math.max,KA=Math.floor,F4=Math.ceil,jA=Wt,H4=Math.PI,W4=function(){function r(e,t,a){this.type=\"parallel\",this._axesMap=q(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var i=e.parallelAxisIndex;ry(e.dimensions,function(o,s){var l=i[s],u=t.getComponent(\"parallelAxis\",l),f=this._axesMap.set(o,new G4(o,el(u),[0,0],u.get(\"type\"),l));f.onBand=\"category\"===f.type&&u.get(\"boundaryGap\"),f.inverse=u.get(\"inverse\"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),a=t.axisBase,n=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=a&&o<=a+t.axisLength&&s>=n&&s<=n+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(a){if(e.contains(a,t)){var n=a.getData();ry(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),jn(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=Jt(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var p,e=this._model,t=this._rect,a=[\"x\",\"y\"],n=[\"width\",\"height\"],i=e.get(\"layout\"),o=\"horizontal\"===i?0:1,s=t[n[o]],l=[0,s],u=this.dimensions.length,f=Th(e.get(\"axisExpandWidth\"),l),h=Th(e.get(\"axisExpandCount\")||0,[0,u]),v=e.get(\"axisExpandable\")&&u>3&&u>h&&h>1&&f>0&&s>0,c=e.get(\"axisExpandWindow\");c?(p=Th(c[1]-c[0],l),c[1]=c[0]+p):(p=Th(f*(h-1),l),(c=[f*(e.get(\"axisExpandCenter\")||KA(u/2))-p/2])[1]=c[0]+p);var g=(s-p)/(u-h);g<3&&(g=0);var y=[KA(jA(c[0]/f,1))+1,F4(jA(c[1]/f,1))-1];return{layout:i,pixelDimIndex:o,layoutBase:t[a[o]],layoutLength:s,axisBase:t[a[1-o]],axisLength:t[n[1-o]],axisExpandable:v,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:c,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:g/f*c[0]}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;t.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),ry(a,function(o,s){var l=(n.axisExpandable?Y4:U4)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},h=[u[i].x+e.x,u[i].y+e.y],v={horizontal:H4/2,vertical:0}[i],c=[1,0,0,1,0,0];Ra(c,c,v),Sr(c,c,h),this._axesLayout[o]={position:h,rotation:v,transform:c,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,a,n){null==a&&(a=0),null==n&&(n=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];A(o,function(g){s.push(e.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=a;fi*(1-h[0])?(u=\"jump\",l=s-i*(1-h[2])):(l=s-i*h[1])>=0&&(l=s-i*(1-h[1]))<=0&&(l=0),(l*=t.axisExpandWidth/f)?vi(l,n,o,\"all\"):u=\"none\";else{var c=n[1]-n[0];(n=[qA(0,o[1]*s/c-c/2)])[1]=XA(o[1],n[0]+c),n[0]=n[1]-c}return{axisExpandWindow:n,behavior:u}},r}();function Th(r,e){return XA(qA(r,e[0]),e[1])}function U4(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function Y4(r,e){var s,f,a=e.axisExpandWidth,i=e.axisCollapseWidth,o=e.winInnerIndices,l=i,u=!1;return r=0;n--)We(a[n])},e.prototype.getActiveState=function(t){var a=this.activeIntervals;if(!a.length)return\"normal\";if(null==t||isNaN(+t))return\"inactive\";if(1===a.length){var n=a[0];if(n[0]<=t&&t<=n[1])return\"active\"}else for(var i=0,o=a.length;i6}(r)||n){if(i&&!n){\"single\"===o.brushMode&&oy(r);var l=$(o);l.brushType=cM(l.brushType,i),l.panelId=i===ci?null:i.panelId,n=r._creatingCover=eM(r,l),r._covers.push(n)}if(n){var u=Ch[cM(r._brushType,i)];n.__brushOption.range=u.getCreatingRange(fy(r,n,r._track)),a&&(rM(r,n),u.updateCommon(r,n)),aM(r,n),s={isEnd:a}}}else a&&\"single\"===o.brushMode&&o.removeOnClick&&iy(r,e,t)&&oy(r)&&(s={isEnd:a,removeOnClick:!0});return s}function cM(r,e){return\"auto\"===r?e.defaultBrushType:r}var fW={mousedown:function(r){if(this._dragging)pM(this,r);else if(!r.target||!r.target.draggable){hy(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null,(this._creatingPanel=iy(this,r,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var a=this.group.transformCoordToLocal(r.offsetX,r.offsetY);if(function uW(r,e,t){if(r._brushType&&!function hW(r,e,t){var a=r._zr;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}(r,e.offsetX,e.offsetY)){var a=r._zr,n=r._covers,i=iy(r,e,t);if(!r._dragging)for(var o=0;o=0&&(s[o[l].depth]=new Rt(o[l],this,a));if(i&&n)return WA(i,n,this,!0,function f(h,v){h.wrapMethod(\"getItemModel\",function(c,p){var d=c.parentModel,g=d.getData().getItemLayout(p);if(g){var m=d.levelModels[g.depth];m&&(c.parentModel=m)}return c}),v.wrapMethod(\"getItemModel\",function(c,p){var d=c.parentModel,y=d.getGraph().getEdgeByIndex(p).node1.getLayout();if(y){var _=d.levelModels[y.depth];_&&(c.parentModel=_)}return c})}).data},e.prototype.setNodePosition=function(t,a){var i=(this.option.data||this.option.nodes)[t];i.localX=a[0],i.localY=a[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,a,n){function i(c){return isNaN(c)||null==c}if(\"edge\"===n){var o=this.getDataParams(t,n),s=o.data,l=o.value;return ae(\"nameValue\",{name:s.source+\" -- \"+s.target,value:l,noValue:i(l)})}var h=this.getGraph().getNodeByIndex(t).getLayout().value,v=this.getDataParams(t,n).data.name;return ae(\"nameValue\",{name:null!=v?v+\"\":null,value:h,noValue:i(h)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,a){var n=r.prototype.getDataParams.call(this,t,a);if(null==n.value&&\"node\"===a){var o=this.getGraph().getNodeByIndex(t).getLayout().value;n.value=o}return n},e.type=\"series.sankey\",e.defaultOption={z:2,coordinateSystem:\"view\",left:\"5%\",top:\"5%\",right:\"20%\",bottom:\"5%\",orient:\"horizontal\",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:\"right\",fontSize:12},levels:[],nodeAlign:\"justify\",lineStyle:{color:\"#314656\",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:\"#212121\"}},animationEasing:\"linear\",animationDuration:1e3},e}(Ot);const DW=MW;function LW(r,e){r.eachSeriesByType(\"sankey\",function(t){var a=t.get(\"nodeWidth\"),n=t.get(\"nodeGap\"),i=function IW(r,e){return Jt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,f=l.edges;!function RW(r){A(r,function(e){var t=en(e.outEdges,Ah),a=en(e.inEdges,Ah),n=e.getValue()||0,i=Math.max(t,a,n);e.setLayout({value:i},!0)})}(u),function PW(r,e,t,a,n,i,o,s,l){(function EW(r,e,t,a,n,i,o){for(var s=[],l=[],u=[],f=[],h=0,v=0;v=0;y&&g.depth>c&&(c=g.depth),d.setLayout({depth:y?g.depth:h},!0),d.setLayout(\"vertical\"===i?{dy:t}:{dx:t},!0);for(var m=0;mh-1?c:h-1;o&&\"left\"!==o&&function kW(r,e,t,a){if(\"right\"===e){for(var n=[],i=r,o=0;i.length;){for(var s=0;s0;i--)GW(s,l*=.99,o),dy(s,n,t,a,o),YW(s,l,o),dy(s,n,t,a,o)}(r,e,i,n,a,o,s),function ZW(r,e){var t=\"vertical\"===e?\"x\":\"y\";A(r,function(a){a.outEdges.sort(function(n,i){return n.node2.getLayout()[t]-i.node2.getLayout()[t]}),a.inEdges.sort(function(n,i){return n.node1.getLayout()[t]-i.node1.getLayout()[t]})}),A(r,function(a){var n=0,i=0;A(a.outEdges,function(o){o.setLayout({sy:n},!0),n+=o.getLayout().dy}),A(a.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}(r,s)}(u,f,a,n,o,s,0!==It(u,function(d){return 0===d.getLayout().value}).length?0:t.get(\"layoutIterations\"),t.get(\"orient\"),t.get(\"nodeAlign\"))})}function SM(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return null!=e.depth&&e.depth>=0}function dy(r,e,t,a,n){var i=\"vertical\"===n?\"x\":\"y\";A(r,function(o){o.sort(function(d,g){return d.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,f=0,h=o.length,v=\"vertical\"===n?\"dx\":\"dy\",c=0;c0&&(s=l.getLayout()[i]+u,l.setLayout(\"vertical\"===n?{x:s}:{y:s},!0)),f=l.getLayout()[i]+l.getLayout()[v]+e;if((u=f-e-(\"vertical\"===n?a:t))>0)for(s=l.getLayout()[i]-u,l.setLayout(\"vertical\"===n?{x:s}:{y:s},!0),f=s,c=h-2;c>=0;--c)(u=(l=o[c]).getLayout()[i]+l.getLayout()[v]+e-f)>0&&(s=l.getLayout()[i]-u,l.setLayout(\"vertical\"===n?{x:s}:{y:s},!0)),f=l.getLayout()[i]})}function GW(r,e,t){A(r.slice().reverse(),function(a){A(a,function(n){if(n.outEdges.length){var i=en(n.outEdges,FW,t)/en(n.outEdges,Ah);if(isNaN(i)){var o=n.outEdges.length;i=o?en(n.outEdges,HW,t)/o:0}if(\"vertical\"===t){var s=n.getLayout().x+(i-tn(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-tn(n,t))*e;n.setLayout({y:l},!0)}}})})}function FW(r,e){return tn(r.node2,e)*r.getValue()}function HW(r,e){return tn(r.node2,e)}function WW(r,e){return tn(r.node1,e)*r.getValue()}function UW(r,e){return tn(r.node1,e)}function tn(r,e){return\"vertical\"===e?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Ah(r){return r.getValue()}function en(r,e,t){for(var a=0,n=r.length,i=-1;++ii&&(i=s)}),A(a,function(o){var l=new ce({type:\"color\",mappingMethod:\"linear\",dataExtent:[n,i],visual:e.get(\"color\")}).mapValueToVisual(o.getLayout().value),u=o.getModel().get([\"itemStyle\",\"color\"]);null!=u?(o.setVisual(\"color\",u),o.setVisual(\"style\",{fill:u})):(o.setVisual(\"color\",l),o.setVisual(\"style\",{fill:l}))})}})}var xM=function(){function r(){}return r.prototype.getInitialData=function(e,t){var a,l,n=t.getComponent(\"xAxis\",this.get(\"xAxisIndex\")),i=t.getComponent(\"yAxis\",this.get(\"yAxisIndex\")),o=n.get(\"type\"),s=i.get(\"type\");\"category\"===o?(e.layout=\"horizontal\",a=n.getOrdinalMeta(),l=!0):\"category\"===s?(e.layout=\"vertical\",a=i.getOrdinalMeta(),l=!0):e.layout=e.layout||\"horizontal\";var u=[\"x\",\"y\"],f=\"horizontal\"===e.layout?0:1,h=this._baseAxisDim=u[f],v=u[1-f],c=[n,i],p=c[f].get(\"type\"),d=c[1-f].get(\"type\"),g=e.data;if(g&&l){var y=[];A(g,function(S,b){var x;z(S)?(x=S.slice(),S.unshift(b)):z(S.value)?((x=B({},S)).value=x.value.slice(),S.value.unshift(b)):x=S,y.push(x)}),e.data=y}var m=this.defaultValueDimensions,_=[{name:h,type:Nf(p),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:[\"base\"]},{name:v,type:Nf(d),dimsDef:m.slice()}];return mo(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:nt(qS,_,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+\"Axis\",this.get(e+\"AxisIndex\")).axis},r}(),bM=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:\"min\",defaultTooltip:!0},{name:\"Q1\",defaultTooltip:!0},{name:\"median\",defaultTooltip:!0},{name:\"Q3\",defaultTooltip:!0},{name:\"max\",defaultTooltip:!0}],t.visualDrawType=\"stroke\",t}return O(e,r),e.type=\"series.boxplot\",e.dependencies=[\"xAxis\",\"yAxis\",\"grid\"],e.defaultOption={z:2,coordinateSystem:\"cartesian2d\",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:\"#fff\",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:\"rgba(0,0,0,0.2)\"}},animationDuration:800},e}(Ot);Yt(bM,xM,!0);const KW=bM;var jW=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=\"horizontal\"===t.get(\"layout\")?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var h=wM(i.getItemLayout(u),i,u,l,!0);i.setItemGraphicEl(u,h),o.add(h)}}).update(function(u,f){var h=s.getItemGraphicEl(f);if(i.hasValue(u)){var v=i.getItemLayout(u);h?(wr(h),TM(v,h,i,u)):h=wM(v,i,u,l),o.add(h),i.setItemGraphicEl(u,h)}else o.remove(h)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=i},e.prototype.remove=function(t){var a=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&a.remove(i)})},e.type=\"boxplot\",e}(Et),QW=function r(){},JW=function(r){function e(t){var a=r.call(this,t)||this;return a.type=\"boxplotBoxPath\",a}return O(e,r),e.prototype.getDefaultShape=function(){return new QW},e.prototype.buildPath=function(t,a){var n=a.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();id)&&a.push([y,_])}}return{boxData:t,outliers:a}}(t.getRawData(),e.config);return[{dimensions:[\"ItemName\",\"Low\",\"Q1\",\"Q2\",\"Q3\",\"High\"],data:n.boxData},{data:n.outliers}]}},u6=[\"color\",\"borderColor\"],f6=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,a,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,a,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,a):this._incrementalRenderNormal(t,a)},e.prototype.eachRendered=function(t){Ya(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(null==this._isLargeDraw||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t){var a=t.getData(),n=this._data,i=this.group,o=a.getLayout(\"isSimpleBox\"),s=t.get(\"clip\",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),a.diff(n).add(function(f){if(a.hasValue(f)){var h=a.getItemLayout(f);if(s&&CM(u,h))return;var v=gy(h,0,!0);Bt(v,{shape:{points:h.ends}},t,f),yy(v,a,f,o),i.add(v),a.setItemGraphicEl(f,v)}}).update(function(f,h){var v=n.getItemGraphicEl(h);if(a.hasValue(f)){var c=a.getItemLayout(f);s&&CM(u,c)?i.remove(v):(v?(bt(v,{shape:{points:c.ends}},t,f),wr(v)):v=gy(c),yy(v,a,f,o),i.add(v),a.setItemGraphicEl(f,v))}else i.remove(v)}).remove(function(f){var h=n.getItemGraphicEl(f);h&&i.remove(h)}).execute(),this._data=a},e.prototype._renderLarge=function(t){this._clear(),MM(t,this.group);var a=t.get(\"clip\",!0)?eh(t.coordinateSystem,!1,t):null;a?this.group.setClipPath(a):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,a){for(var o,n=a.getData(),i=n.getLayout(\"isSimpleBox\");null!=(o=t.next());){var l=gy(n.getItemLayout(o));yy(l,n,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,a){MM(a,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type=\"candlestick\",e}(Et),h6=function r(){},v6=function(r){function e(t){var a=r.call(this,t)||this;return a.type=\"normalCandlestickBox\",a}return O(e,r),e.prototype.getDefaultShape=function(){return new h6},e.prototype.buildPath=function(t,a){var n=a.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(pt);function gy(r,e,t){var a=r.ends;return new v6({shape:{points:t?c6(a,r):a},z2:100})}function CM(r,e){for(var t=!0,a=0;a0?\"borderColor\":\"borderColor0\"])||t.get([\"itemStyle\",r>0?\"color\":\"color0\"]),i=t.getModel(\"itemStyle\").getItemStyle(u6);e.useStyle(i),e.style.fill=null,e.style.stroke=n}const d6=f6;var LM=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:\"open\",defaultTooltip:!0},{name:\"close\",defaultTooltip:!0},{name:\"lowest\",defaultTooltip:!0},{name:\"highest\",defaultTooltip:!0}],t}return O(e,r),e.prototype.getShadowDim=function(){return\"open\"},e.prototype.brushSelector=function(t,a,n){var i=a.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type=\"series.candlestick\",e.dependencies=[\"xAxis\",\"yAxis\",\"grid\"],e.defaultOption={z:2,coordinateSystem:\"cartesian2d\",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:\"#eb5454\",color0:\"#47b262\",borderColor:\"#eb5454\",borderColor0:\"#47b262\",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:\"mod\",animationEasing:\"linear\",animationDuration:300},e}(Ot);Yt(LM,xM,!0);const g6=LM;function y6(r){!r||!z(r.series)||A(r.series,function(e){J(e)&&\"k\"===e.type&&(e.type=\"candlestick\")})}var m6=[\"itemStyle\",\"borderColor\"],_6=[\"itemStyle\",\"borderColor0\"],S6=[\"itemStyle\",\"color\"],x6=[\"itemStyle\",\"color0\"],b6={seriesType:\"candlestick\",plan:Ji(),performRawSeries:!0,reset:function(r,e){function t(i,o){return o.get(i>0?S6:x6)}function a(i,o){return o.get(i>0?m6:_6)}if(!e.isSeriesFiltered(r))return!r.pipelineContext.large&&{progress:function(i,o){for(var s;null!=(s=i.next());){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,f=l.getItemStyle();f.fill=t(u,l),f.stroke=a(u,l)||f.fill,B(o.ensureUniqueItemVisual(s,\"style\"),f)}}}}};const w6=b6;var T6={seriesType:\"candlestick\",plan:Ji(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),a=function C6(r,e){var a,t=r.getBaseAxis(),n=\"category\"===t.type?t.getBandWidth():(a=t.getExtent(),Math.abs(a[1]-a[0])/e.count()),i=H(ht(r.get(\"barMaxWidth\"),n),n),o=H(ht(r.get(\"barMinWidth\"),1),n),s=r.get(\"barWidth\");return null!=s?H(s,n):Math.max(Math.min(n/2,i),o)}(r,t),o=[\"x\",\"y\"],s=t.getDimensionIndex(t.mapDimension(o[0])),l=G(t.mapDimensionsAll(o[1]),t.getDimensionIndex,t),u=l[0],f=l[1],h=l[2],v=l[3];if(t.setLayout({candleWidth:a,isSimpleBox:a<=1.3}),!(s<0||l.length<4))return{progress:r.pipelineContext.large?function p(d,g){for(var _,x,y=Xr(4*d.count),m=0,S=[],b=[],w=g.getStore();null!=(x=d.next());){var T=w.get(s,x),C=w.get(u,x),D=w.get(f,x),M=w.get(h,x),L=w.get(v,x);isNaN(T)||isNaN(M)||isNaN(L)?(y[m++]=NaN,m+=3):(y[m++]=IM(w,x,C,D,f),S[0]=T,S[1]=M,_=e.dataToPoint(S,null,b),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[1]=L,_=e.dataToPoint(S,null,b),y[m++]=_?_[1]:NaN)}g.setLayout(\"largePoints\",y)}:function c(d,g){for(var y,m=g.getStore();null!=(y=d.next());){var _=m.get(s,y),S=m.get(u,y),b=m.get(f,y),x=m.get(h,y),w=m.get(v,y),T=Math.min(S,b),C=Math.max(S,b),D=R(T,_),M=R(C,_),L=R(x,_),I=R(w,_),P=[];E(P,M,0),E(P,D,1),P.push(k(I),k(M),k(L),k(D)),g.setItemLayout(y,{sign:IM(m,y,S,b,f),initBaseline:S>b?M[1]:D[1],ends:P,brushRect:(V=x,F=w,U=_,X=void 0,et=void 0,X=R(V,U),et=R(F,U),X[0]-=a/2,et[0]-=a/2,{x:X[0],y:X[1],width:a,height:et[1]-X[1]})})}var V,F,U,X,et;function R(V,F){var U=[];return U[0]=F,U[1]=V,isNaN(F)||isNaN(V)?[NaN,NaN]:e.dataToPoint(U)}function E(V,F,U){var X=F.slice(),et=F.slice();X[0]=yf(X[0]+a/2,1,!1),et[0]=yf(et[0]-a/2,1,!0),U?V.push(X,et):V.push(et,X)}function k(V){return V[0]=yf(V[0],1),V}}}}};function IM(r,e,t,a,n){return t>a?-1:t0?r.get(n,e-1)<=a?1:-1:1}const A6=T6;function PM(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(a){a.attr({z:e.z,zlevel:e.zlevel,style:{stroke:\"stroke\"===e.brushType?t:null,fill:\"fill\"===e.brushType?t:null}})})}var D6=function(r){function e(t,a){var n=r.call(this)||this,i=new ul(t,a),o=new tt;return n.add(i),n.add(o),n.updateData(t,a),n}return O(e,r),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var a=t.symbolType,n=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/u*1e3),s!==this._period||l!==this._loop){i.stopAnimation();var h=void 0;h=j(f)?f(n):f,i.__t>0&&(h=-s*i.__t),this._animateSymbol(i,s,h,l)}this._period=s,this._loop=l}},e.prototype._animateSymbol=function(t,a,n,i){if(a>0){t.__t=0;var o=this,s=t.animate(\"\",i).when(a,{__t:1}).delay(n).during(function(){o._updateSymbolPosition(t)});i||s.done(function(){o.remove(t)}),s.start()}},e.prototype._getLineLength=function(t){return ta(t.__p1,t.__cp1)+ta(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,a){t.__p1=a[0],t.__p2=a[1],t.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},e.prototype.updateData=function(t,a,n){this.childAt(0).updateData(t,a,n),this._updateEffectSymbol(t,a)},e.prototype._updateSymbolPosition=function(t){var a=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t,s=[t.x,t.y],l=s.slice(),u=se,f=Nv;s[0]=u(a[0],i[0],n[0],o),s[1]=u(a[1],i[1],n[1],o);var h=f(a[0],i[0],n[0],o),v=f(a[1],i[1],n[1],o);t.rotation=-Math.atan2(v,h)-Math.PI/2,(\"line\"===this._symbolType||\"rect\"===this._symbolType||\"roundRect\"===this._symbolType)&&(void 0!==t.__lastT&&t.__lastT=0&&!(i[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;la);l++);l=Math.min(l-1,o-2)}var f=(a-i[l])/(i[l+1]-i[l]),h=n[l],v=n[l+1];t.x=h[0]*(1-f)+f*v[0],t.y=h[1]*(1-f)+f*v[1],t.rotation=-Math.atan2(v[1]-h[1],v[0]-h[0])-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,t.ignore=!1}},e}(RM);const B6=V6;var z6=function r(){this.polyline=!1,this.curveness=0,this.segs=[]},G6=function(r){function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return O(e,r),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:\"#000\",fill:null}},e.prototype.getDefaultShape=function(){return new z6},e.prototype.buildPath=function(t,a){var o,n=a.segs,i=a.curveness;if(a.polyline)for(o=this._off;o0){t.moveTo(n[o++],n[o++]);for(var l=1;l0?t.quadraticCurveTo((u+h)/2-(f-v)*i,(f+v)/2-(h-u)*i,h,v):t.lineTo(h,v)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,a){var n=this.shape,i=n.segs,o=n.curveness,s=this.style.lineWidth;if(n.polyline)for(var l=0,u=0;u0)for(var h=i[u++],v=i[u++],c=1;c0){if(P_(h,v,(h+p)/2-(v-d)*o,(v+d)/2-(p-h)*o,p,d,s,t,a))return l}else if(Oa(h,v,p,d,s,t,a))return l;l++}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a);return this.getBoundingRect().contain(t=n[0],a=n[1])?(this.hoverDataIdx=this.findDataIndex(t,a))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var n=this.shape.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u