>>1;n[i][1]i&&(this._approxInterval=i);var o=$y.length,l=Math.min(_ae($y,this._approxInterval,0,o),o-1);this._interval=$y[l][1],this._minLevelUnit=$y[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return un(t)?t:+Qo(t)},e.prototype.contain=function(t){return xS(this.parse(t),this._extent)},e.prototype.normalize=function(t){return bS(this.parse(t),this._extent)},e.prototype.scale=function(t){return SS(t,this._extent)},e.type="time",e}(pc),$y=[["second",$P],["minute",jP],["hour",am],["quarter-day",am*6],["half-day",am*12],["day",Ts*1.2],["half-week",Ts*3.5],["week",Ts*7],["month",Ts*31],["quarter",Ts*95],["half-year",YI/2],["year",YI]];function xae(n,e,t,r){var i=Qo(e),a=Qo(t),s=function(p){return ZI(i,p,r)===ZI(a,p,r)},o=function(){return s("year")},l=function(){return o()&&s("month")},u=function(){return l()&&s("day")},c=function(){return u()&&s("hour")},h=function(){return c()&&s("minute")},f=function(){return h()&&s("second")},d=function(){return f()&&s("millisecond")};switch(n){case"year":return o();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return f();case"millisecond":return d()}}function bae(n,e){return n/=Ts,n>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function Sae(n){var e=30*Ts;return n/=e,n>6?6:n>3?3:n>2?2:1}function wae(n){return n/=am,n>12?12:n>6?6:n>3.5?4:n>2?2:1}function o4(n,e){return n/=e?jP:$P,n>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function Aae(n){return pU(n,!0)}function Mae(n,e,t){var r=new Date(n);switch(ip(e)){case"year":case"month":r[C7(t)](0);case"day":r[E7(t)](1);case"hour":r[P7(t)](0);case"minute":r[L7(t)](0);case"second":r[R7(t)](0),r[D7(t)](0)}return r.getTime()}function Tae(n,e,t,r){var i=1e4,a=M7,s=0;function o(A,M,P,D,L,R,N){for(var F=new Date(M),O=M,H=F[D]();O1&&R===0&&P.unshift({value:P[0].value-O})}}for(var R=0;R=r[0]&&y<=r[1]&&h++)}var _=(r[1]-r[0])/e;if(h>_*1.5&&f>_/1.5||(u.push(v),h>_||n===a[d]))break}c=[]}}}for(var x=_n(Ne(u,function(A){return _n(A,function(M){return M.value>=r[0]&&M.value<=r[1]&&!M.notAdd})}),function(A){return A.length>0}),b=[],S=x.length-1,d=0;d0;)a*=10;var o=[xr(Pae(r[0]/a)*a),xr(Eae(r[1]/a)*a)];this._interval=a,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){um.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=$s(t)/$s(this.base),xS(t,this._extent)},e.prototype.normalize=function(t){return t=$s(t)/$s(this.base),bS(t,this._extent)},e.prototype.scale=function(t){return t=SS(t,this._extent),jy(this.base,t)},e.type="log",e}(Kl),g9=pL.prototype;g9.getMinorTicks=um.getMinorTicks;g9.getLabel=um.getLabel;function qy(n,e){return Cae(n,Go(e))}Kl.registerClass(pL);const Lae=pL;var Rae=function(){function n(e,t,r){this._prepareParams(e,t,r)}return n.prototype._prepareParams=function(e,t,r){r[1]0&&l>0&&!u&&(o=0),o<0&&l<0&&!c&&(l=0));var f=this._determinedMin,d=this._determinedMax;return f!=null&&(o=f,u=!0),d!=null&&(l=d,c=!0),{min:o,max:l,minFixed:u,maxFixed:c,isBlank:h}},n.prototype.modifyDataMinMax=function(e,t){this[Iae[e]]=t},n.prototype.setDeterminedMinMax=function(e,t){var r=Dae[e];this[r]=t},n.prototype.freeze=function(){this.frozen=!0},n}(),Dae={min:"_determinedMin",max:"_determinedMax"},Iae={min:"_dataMin",max:"_dataMax"};function m9(n,e,t){var r=n.rawExtentInfo;return r||(r=new Rae(n,e,t),n.rawExtentInfo=r,r)}function Xy(n,e){return e==null?null:Im(e)?NaN:n.parse(e)}function y9(n,e){var t=n.type,r=m9(n,e,n.getExtent()).calculate();n.setBlank(r.isBlank);var i=r.min,a=r.max,s=e.ecModel;if(s&&t==="time"){var o=o9("bar",s),l=!1;if(z(o,function(h){l=l||h.getBaseAxis()===e.axis}),l){var u=l9(o),c=Nae(i,a,e,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function Nae(n,e,t,r){var i=t.axis.getExtent(),a=Math.abs(i[1]-i[0]),s=mae(r,t.axis);if(s===void 0)return{min:n,max:e};var o=1/0;z(s,function(d){o=Math.min(d.offset,o)});var l=-1/0;z(s,function(d){l=Math.max(d.offset+d.width,l)}),o=Math.abs(o),l=Math.abs(l);var u=o+l,c=e-n,h=1-(o+l)/a,f=c/h-c;return e+=f*(l/u),n-=f*(o/u),{min:n,max:e}}function Ap(n,e){var t=e,r=y9(n,t),i=r.extent,a=t.get("splitNumber");n instanceof Lae&&(n.base=t.get("logBase"));var s=n.type,o=t.get("interval"),l=s==="interval"||s==="time";n.setExtent(i[0],i[1]),n.calcNiceExtent({splitNumber:a,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),o!=null&&n.setInterval&&n.setInterval(o)}function wS(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new hL({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new v9({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(Kl.getClass(e)||pc)}}function kae(n){var e=n.scale.getExtent(),t=e[0],r=e[1];return!(t>0&&r>0||t<0&&r<0)}function av(n){var e=n.getLabelModel().get("formatter"),t=n.type==="category"?n.scale.getExtent()[0]:null;return n.scale.type==="time"?function(r){return function(i,a){return n.scale.getFormattedLabel(i,a,r)}}(e):Ke(e)?function(r){return function(i){var a=n.scale.getLabel(i),s=r.replace("{value}",a!=null?a:"");return s}}(e):ct(e)?function(r){return function(i,a){return t!=null&&(a=i.value-t),r(vL(n,i),a,i.level!=null?{level:i.level}:null)}}(e):function(r){return n.scale.getLabel(r)}}function vL(n,e){return n.type==="category"?n.scale.getLabel(e):e.value}function Oae(n){var e=n.model,t=n.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var r,i,a=t.getExtent();t instanceof hL?i=t.count():(r=t.getTicks(),i=r.length);var s=n.getLabelModel(),o=av(n),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;cn[1]&&(n[1]=i[1])})}var B0=function(){function n(){}return n.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},n.prototype.getCoordSysModel=function(){},n}(),Gae=1e-8;function u4(n,e){return Math.abs(n-e)i&&(r=s,i=l)}if(r)return Uae(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var r=this._rect;if(r&&!t)return r;var i=[1/0,1/0],a=[-1/0,-1/0],s=this.geometries;return z(s,function(o){o.type==="polygon"?c4(o.exterior,i,a,t):z(o.points,function(l){c4(l,i,a,t)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),r=new Ot(i[0],i[1],a[0]-i[0],a[1]-i[1]),t||(this._rect=r),r},e.prototype.contain=function(t){var r=this.getBoundingRect(),i=this.geometries;if(!r.contain(t[0],t[1]))return!1;e:for(var a=0,s=i.length;a>1^-(o&1),l=l>>1^-(l&1),o+=i,l+=a,i=o,a=l,r.push([o/t,l/t])}return r}function Wae(n,e){return n=Hae(n),Ne(_n(n.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var r=t.properties,i=t.geometry,a=[];switch(i.type){case"Polygon":var s=i.coordinates;a.push(new h4(s[0],s.slice(1)));break;case"MultiPolygon":z(i.coordinates,function(l){l[0]&&a.push(new h4(l[0],l.slice(1)))});break;case"LineString":a.push(new f4([i.coordinates]));break;case"MultiLineString":a.push(new f4(i.coordinates))}var o=new b9(r[e||"name"],a,r.cp);return o.properties=r,o})}var Km=en();function w9(n,e){var t=Ne(e,function(r){return n.scale.parse(r)});return n.type==="time"&&t.length>0&&(t.sort(),t.unshift(t[0]),t.push(t[t.length-1])),t}function $ae(n){var e=n.getLabelModel().get("customValues");if(e){var t=av(n),r=n.scale.getExtent(),i=w9(n,e),a=_n(i,function(s){return s>=r[0]&&s<=r[1]});return{labels:Ne(a,function(s){var o={value:s};return{formattedLabel:t(o),rawLabel:n.scale.getLabel(o),tickValue:s}})}}return n.type==="category"?qae(n):Yae(n)}function jae(n,e){var t=n.getTickModel().get("customValues");if(t){var r=n.scale.getExtent(),i=w9(n,t);return{ticks:_n(i,function(a){return a>=r[0]&&a<=r[1]})}}return n.type==="category"?Xae(n,e):{ticks:Ne(n.scale.getTicks(),function(a){return a.value})}}function qae(n){var e=n.getLabelModel(),t=A9(n,e);return!e.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function A9(n,e){var t=M9(n,"labels"),r=gL(e),i=T9(t,r);if(i)return i;var a,s;return ct(r)?a=P9(n,r):(s=r==="auto"?Kae(n):r,a=E9(n,s)),C9(t,r,{labels:a,labelCategoryInterval:s})}function Xae(n,e){var t=M9(n,"ticks"),r=gL(e),i=T9(t,r);if(i)return i;var a,s;if((!e.get("show")||n.scale.isBlank())&&(a=[]),ct(r))a=P9(n,r,!0);else if(r==="auto"){var o=A9(n,n.getLabelModel());s=o.labelCategoryInterval,a=Ne(o.labels,function(l){return l.tickValue})}else s=r,a=E9(n,s,!0);return C9(t,r,{ticks:a,tickCategoryInterval:s})}function Yae(n){var e=n.scale.getTicks(),t=av(n);return{labels:Ne(e,function(r,i){return{level:r.level,formattedLabel:t(r,i),rawLabel:n.scale.getLabel(r),tickValue:r.value}})}}function M9(n,e){return Km(n)[e]||(Km(n)[e]=[])}function T9(n,e){for(var t=0;t40&&(o=Math.max(1,Math.floor(s/40)));for(var l=a[0],u=n.dataToCoord(l+1)-n.dataToCoord(l),c=Math.abs(u*Math.cos(r)),h=Math.abs(u*Math.sin(r)),f=0,d=0;l<=a[1];l+=o){var p=0,g=0,v=L0(t({value:l}),e.font,"center","top");p=v.width*1.3,g=v.height*1.3,f=Math.max(f,p,7),d=Math.max(d,g,7)}var m=f/c,y=d/h;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),x=Km(n.model),b=n.getExtent(),S=x.lastAutoInterval,w=x.lastTickCount;return S!=null&&w!=null&&Math.abs(S-_)<=1&&Math.abs(w-s)<=1&&S>_&&x.axisExtent0===b[0]&&x.axisExtent1===b[1]?_=S:(x.lastTickCount=s,x.lastAutoInterval=_,x.axisExtent0=b[0],x.axisExtent1=b[1]),_}function Qae(n){var e=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function E9(n,e,t){var r=av(n),i=n.scale,a=i.getExtent(),s=n.getLabelModel(),o=[],l=Math.max((e||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=_9(n),f=s.get("showMinLabel")||h,d=s.get("showMaxLabel")||h;f&&u!==a[0]&&g(a[0]);for(var p=u;p<=a[1];p+=l)g(p);d&&p-l!==a[1]&&g(a[1]);function g(v){var m={value:v};o.push(t?v:{formattedLabel:r(m),rawLabel:i.getLabel(m),tickValue:v})}return o}function P9(n,e,t){var r=n.scale,i=av(n),a=[];return z(r.getTicks(),function(s){var o=r.getLabel(s),l=s.value;e(s.value,o)&&a.push(t?l:{formattedLabel:i(s),rawLabel:o,tickValue:l})}),a}var d4=[0,1],Jae=function(){function n(e,t,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=r||[0,0]}return n.prototype.contain=function(e){var t=this._extent,r=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=r&&e<=i},n.prototype.containData=function(e){return this.scale.contain(e)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(e){return fU(e||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(e,t){var r=this._extent;r[0]=e,r[1]=t},n.prototype.dataToCoord=function(e,t){var r=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&i.type==="ordinal"&&(r=r.slice(),p4(r,i.count())),Sn(e,d4,r,t)},n.prototype.coordToData=function(e,t){var r=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(r=r.slice(),p4(r,i.count()));var a=Sn(e,r,d4,t);return this.scale.scale(a)},n.prototype.pointToData=function(e,t){},n.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),r=jae(this,t),i=r.ticks,a=Ne(i,function(o){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(o):o),tickValue:o}},this),s=t.get("alignWithLabel");return ese(this,a,s,e.clamp),a},n.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var r=this.scale.getMinorTicks(t),i=Ne(r,function(a){return Ne(a,function(s){return{coord:this.dataToCoord(s),tickValue:s}},this)},this);return i},n.prototype.getViewLabels=function(){return $ae(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),r=t[1]-t[0]+(this.onBand?1:0);r===0&&(r=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/r},n.prototype.calculateCategoryInterval=function(){return Zae(this)},n}();function p4(n,e){var t=n[1]-n[0],r=e,i=t/r/2;n[0]+=i,n[1]-=i}function ese(n,e,t,r){var i=e.length;if(!n.onBand||t||!i)return;var a=n.getExtent(),s,o;if(i===1)e[0].coord=a[0],s=e[1]={coord:a[1],tickValue:e[0].tickValue};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;z(e,function(d){d.coord-=u/2});var c=n.scale.getExtent();o=1+c[1]-e[i-1].tickValue,s={coord:e[i-1].coord+u*o,tickValue:c[1]+1},e.push(s)}var h=a[0]>a[1];f(e[0].coord,a[0])&&(r?e[0].coord=a[0]:e.shift()),r&&f(a[0],e[0].coord)&&e.unshift({coord:a[0]}),f(a[1],s.coord)&&(r?s.coord=a[1]:e.pop()),r&&f(s.coord,a[1])&&e.push({coord:a[1]});function f(d,p){return d=xr(d),p=xr(p),h?d>p:di&&(i+=eg);var d=Math.atan2(o,s);if(d<0&&(d+=eg),d>=r&&d<=i||d+eg>=r&&d+eg<=i)return l[0]=c,l[1]=h,u-t;var p=t*Math.cos(r)+n,g=t*Math.sin(r)+e,v=t*Math.cos(i)+n,m=t*Math.sin(i)+e,y=(p-s)*(p-s)+(g-o)*(g-o),_=(v-s)*(v-s)+(m-o)*(m-o);return y<_?(l[0]=p,l[1]=g,Math.sqrt(y)):(l[0]=v,l[1]=m,Math.sqrt(_))}function Ux(n,e,t,r,i,a,s,o){var l=i-n,u=a-e,c=t-n,h=r-e,f=Math.sqrt(c*c+h*h);c/=f,h/=f;var d=l*c+u*h,p=d/f;o&&(p=Math.min(Math.max(p,0),1)),p*=f;var g=s[0]=n+p*c,v=s[1]=e+p*h;return Math.sqrt((g-i)*(g-i)+(v-a)*(v-a))}function L9(n,e,t,r,i,a,s){t<0&&(n=n+t,t=-t),r<0&&(e=e+r,r=-r);var o=n+t,l=e+r,u=s[0]=Math.min(Math.max(i,n),o),c=s[1]=Math.min(Math.max(a,e),l);return Math.sqrt((u-i)*(u-i)+(c-a)*(c-a))}var Qs=[];function ise(n,e,t){var r=L9(e.x,e.y,e.width,e.height,n.x,n.y,Qs);return t.set(Qs[0],Qs[1]),r}function ase(n,e,t){for(var r=0,i=0,a=0,s=0,o,l,u=1/0,c=e.data,h=n.x,f=n.y,d=0;d0){e=e/180*Math.PI,ro.fromArray(n[0]),Un.fromArray(n[1]),Ar.fromArray(n[2]),Nt.sub(Vo,ro,Un),Nt.sub(No,Ar,Un);var t=Vo.len(),r=No.len();if(!(t<.001||r<.001)){Vo.scale(1/t),No.scale(1/r);var i=Vo.dot(No),a=Math.cos(e);if(a1&&Nt.copy(ta,Ar),ta.toArray(n[1])}}}}function sse(n,e,t){if(t<=180&&t>0){t=t/180*Math.PI,ro.fromArray(n[0]),Un.fromArray(n[1]),Ar.fromArray(n[2]),Nt.sub(Vo,Un,ro),Nt.sub(No,Ar,Un);var r=Vo.len(),i=No.len();if(!(r<.001||i<.001)){Vo.scale(1/r),No.scale(1/i);var a=Vo.dot(e),s=Math.cos(t);if(a=l)Nt.copy(ta,Ar);else{ta.scaleAndAdd(No,o/Math.tan(Math.PI/2-c));var h=Ar.x!==Un.x?(ta.x-Un.x)/(Ar.x-Un.x):(ta.y-Un.y)/(Ar.y-Un.y);if(isNaN(h))return;h<0?Nt.copy(ta,Un):h>1&&Nt.copy(ta,Ar)}ta.toArray(n[1])}}}}function NA(n,e,t,r){var i=t==="normal",a=i?n:n.ensureState(t);a.ignore=e;var s=r.get("smooth");s&&s===!0&&(s=.3),a.shape=a.shape||{},s>0&&(a.shape.smooth=s);var o=r.getModel("lineStyle").getLineStyle();i?n.useStyle(o):a.style=o}function ose(n,e){var t=e.smooth,r=e.points;if(r)if(n.moveTo(r[0][0],r[0][1]),t>0&&r.length>=3){var i=Ou(r[0],r[1]),a=Ou(r[1],r[2]);if(!i||!a){n.lineTo(r[1][0],r[1][1]),n.lineTo(r[2][0],r[2][1]);return}var s=Math.min(i,a)*t,o=E1([],r[1],r[0],s/i),l=E1([],r[1],r[2],s/a),u=E1([],o,l,.5);n.bezierCurveTo(o[0],o[1],o[0],o[1],u[0],u[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c0&&a&&b(-c/s,0,s);var g=n[0],v=n[s-1],m,y;_(),m<0&&S(-m,.8),y<0&&S(y,.8),_(),x(m,y,1),x(y,m,-1),_(),m<0&&w(-m),y<0&&w(y);function _(){m=g.rect[e]-r,y=i-v.rect[e]-v.rect[t]}function x(T,C,A){if(T<0){var M=Math.min(C,-T);if(M>0){b(M*A,0,s);var P=M+T;P<0&&S(-P*A,1)}else S(-T*A,1)}}function b(T,C,A){T!==0&&(u=!0);for(var M=C;M0)for(var P=0;P0;P--){var N=A[P-1]*R;b(-N,P,s)}}}function w(T){var C=T<0?-1:1;T=Math.abs(T);for(var A=Math.ceil(T/(s-1)),M=0;M0?b(A,0,M+1):b(-A,s-M-1,s),T-=A,T<=0)return}return u}function lse(n,e,t,r){return I9(n,"x","width",e,t,r)}function N9(n,e,t,r){return I9(n,"y","height",e,t,r)}function k9(n){var e=[];n.sort(function(g,v){return v.priority-g.priority});var t=new Ot(0,0,0,0);function r(g){if(!g.ignore){var v=g.ensureState("emphasis");v.ignore==null&&(v.ignore=!1)}g.ignore=!0}for(var i=0;i=0&&r.attr(a.oldLayoutSelect),Ft(f,"emphasis")>=0&&r.attr(a.oldLayoutEmphasis)),cn(r,u,t,l)}else if(r.attr(u),!Kp(r).valueAnimation){var h=Et(r.style.opacity,1);r.style.opacity=0,Jn(r,{style:{opacity:h}},t,l)}if(a.oldLayout=u,r.states.select){var d=a.oldLayoutSelect={};Yy(d,u,Ky),Yy(d,r.states.select,Ky)}if(r.states.emphasis){var p=a.oldLayoutEmphasis={};Yy(p,u,Ky),Yy(p,r.states.emphasis,Ky)}x7(r,l,c,t,t)}if(i&&!i.ignore&&!i.invisible){var a=hse(i),s=a.oldLayout,g={points:i.shape.points};s?(i.attr({shape:s}),cn(i,{shape:g},t)):(i.setShape(g),i.style.strokePercent=0,Jn(i,{style:{strokePercent:1}},t)),a.oldLayout=g}},n}();const dse=fse;var OA=en();function pse(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){var i=OA(t).labelManager;i||(i=OA(t).labelManager=new dse),i.clearLabels()}),n.registerUpdateLifecycle("series:layoutlabels",function(e,t,r){var i=OA(t).labelManager;r.updatedSeries.forEach(function(a){i.addLabelsOfSeries(t.getViewOfSeriesModel(a))}),i.updateLayoutConfig(t),i.layout(t),i.processLabelsOverall()})}var FA=Math.sin,BA=Math.cos,O9=Math.PI,Qc=Math.PI*2,vse=180/O9,gse=function(){function n(){}return n.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},n.prototype.moveTo=function(e,t){this._add("M",e,t)},n.prototype.lineTo=function(e,t){this._add("L",e,t)},n.prototype.bezierCurveTo=function(e,t,r,i,a,s){this._add("C",e,t,r,i,a,s)},n.prototype.quadraticCurveTo=function(e,t,r,i){this._add("Q",e,t,r,i)},n.prototype.arc=function(e,t,r,i,a,s){this.ellipse(e,t,r,r,0,i,a,s)},n.prototype.ellipse=function(e,t,r,i,a,s,o,l){var u=o-s,c=!l,h=Math.abs(u),f=Uu(h-Qc)||(c?u>=Qc:-u>=Qc),d=u>0?u%Qc:u%Qc+Qc,p=!1;f?p=!0:Uu(h)?p=!1:p=d>=O9==!!c;var g=e+r*BA(s),v=t+i*FA(s);this._start&&this._add("M",g,v);var m=Math.round(a*vse);if(f){var y=1/this._p,_=(c?1:-1)*(Qc-y);this._add("A",r,i,m,1,+c,e+r*BA(s+_),t+i*FA(s+_)),y>.01&&this._add("A",r,i,m,0,+c,g,v)}else{var x=e+r*BA(o),b=t+i*FA(o);this._add("A",r,i,m,+p,+c,x,b)}},n.prototype.rect=function(e,t,r,i){this._add("M",e,t),this._add("l",r,0),this._add("l",0,i),this._add("l",-r,0),this._add("Z")},n.prototype.closePath=function(){this._d.length>0&&this._add("Z")},n.prototype._add=function(e,t,r,i,a,s,o,l,u){for(var c=[],h=this._p,f=1;f"}function Mse(n){return""+n+">"}function _L(n,e){e=e||{};var t=e.newline?`
+`:"";function r(i){var a=i.children,s=i.tag,o=i.attrs,l=i.text;return Ase(s,o)+(s!=="style"?Bi(l):l||"")+(a?""+t+Ne(a,function(u){return r(u)}).join(t)+t:"")+Mse(s)}return r(n)}function Tse(n,e,t){t=t||{};var r=t.newline?`
+`:"",i=" {"+r,a=r+"}",s=Ne(Yt(n),function(l){return l+i+Ne(Yt(n[l]),function(u){return u+":"+n[l][u]+";"}).join(r)+a}).join(r),o=Ne(Yt(e),function(l){return"@keyframes "+l+i+Ne(Yt(e[l]),function(u){return u+i+Ne(Yt(e[l][u]),function(c){var h=e[l][u][c];return c==="d"&&(h='path("'+h+'")'),c+":"+h+";"}).join(r)+a}).join(r)+a}).join(r);return!s&&!o?"":[""].join(r)}function xC(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function y4(n,e,t,r){return ti("svg","root",{width:n,height:e,xmlns:B9,"xmlns:xlink":G9,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+n+" "+e:!1},t)}var Cse=0;function U9(){return Cse++}var _4={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"},ch="transform-origin";function Ese(n,e,t){var r=Pe({},n.shape);Pe(r,e),n.buildPath(t,r);var i=new F9;return i.reset(tU(n)),t.rebuildPath(i,1),i.generateStr(),i.getStr()}function Pse(n,e){var t=e.originX,r=e.originY;(t||r)&&(n[ch]=t+"px "+r+"px")}var Lse={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function V9(n,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=n,t}function Rse(n,e,t){var r=n.shape.paths,i={},a,s;if(z(r,function(l){var u=xC(t.zrId);u.animation=!0,AS(l,{},u,!0);var c=u.cssAnims,h=u.cssNodes,f=Yt(c),d=f.length;if(d){s=f[d-1];var p=c[s];for(var g in p){var v=p[g];i[g]=i[g]||{d:""},i[g].d+=v.d||""}for(var m in h){var y=h[m].animation;y.indexOf(s)>=0&&(a=y)}}}),!!a){e.d=!1;var o=V9(i,t);return a.replace(s,o)}}function x4(n){return Ke(n)?_4[n]?"cubic-bezier("+_4[n]+")":bP(n)?n:"":""}function AS(n,e,t,r){var i=n.animators,a=i.length,s=[];if(n instanceof GP){var o=Rse(n,e,t);if(o)s.push(o);else if(!a)return}else if(!a)return;for(var l={},u=0;u0}).length){var Fe=V9(w,t);return Fe+" "+y[0]+" both"}}for(var v in l){var o=g(l[v]);o&&s.push(o)}if(s.length){var m=t.zrId+"-cls-"+U9();t.cssNodes["."+m]={animation:s.join(",")},e.class=m}}function Dse(n,e,t){if(!n.ignore)if(n.isSilent()){var r={"pointer-events":"none"};b4(r,e,t,!0)}else{var i=n.states.emphasis&&n.states.emphasis.style?n.states.emphasis.style:{},a=i.fill;if(!a){var s=n.style&&n.style.fill,o=n.states.select&&n.states.select.style&&n.states.select.style.fill,l=n.currentStates.indexOf("select")>=0&&o||s;l&&(a=DT(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&n.transform?n.transform[0]:1;u=u/c}var r={cursor:"pointer"};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),u&&(r["stroke-width"]=u),b4(r,e,t,!0)}}function b4(n,e,t,r){var i=JSON.stringify(n),a=t.cssStyleCache[i];a||(a=t.zrId+"-cls-"+U9(),t.cssStyleCache[i]=a,t.cssNodes["."+a+(r?":hover":"")]=n),e.class=e.class?e.class+" "+a:a}var Zm=Math.round;function H9(n){return n&&Ke(n.src)}function W9(n){return n&&ct(n.toDataURL)}function xL(n,e,t,r){bse(function(i,a){var s=i==="fill"||i==="stroke";s&&eU(a)?j9(e,n,i,r):s&&SP(a)?q9(t,n,i,r):n[i]=a,s&&r.ssr&&a==="none"&&(n["pointer-events"]="visible")},e,t,!1),Gse(t,n,r)}function bL(n,e){var t=aJ(e);t&&(t.each(function(r,i){r!=null&&(n[(m4+i).toLowerCase()]=r+"")}),e.isSilent()&&(n[m4+"silent"]="true"))}function S4(n){return Uu(n[0]-1)&&Uu(n[1])&&Uu(n[2])&&Uu(n[3]-1)}function Ise(n){return Uu(n[4])&&Uu(n[5])}function SL(n,e,t){if(e&&!(Ise(e)&&S4(e))){var r=t?10:1e4;n.transform=S4(e)?"translate("+Zm(e[4]*r)/r+" "+Zm(e[5]*r)/r+")":MQ(e)}}function w4(n,e,t){for(var r=n.points,i=[],a=0;aa?(p=t[l+1]==null?null:t[l+1].elm,K9(n,p,t,i,l)):Hx(n,e,r,a))}function Pd(n,e){var t=e.elm=n.elm,r=n.children,i=e.children;n!==e&&(wL(n,e),bC(e.text)?Ro(r)&&Ro(i)?r!==i&&Wse(t,r,i):Ro(i)?(Ro(n.text)&&GA(t,""),K9(t,null,i,0,i.length-1)):Ro(r)?Hx(t,r,0,r.length-1):Ro(n.text)&&GA(t,""):n.text!==e.text&&(Ro(r)&&Hx(t,r,0,r.length-1),GA(t,e.text)))}function $se(n,e){if(Fg(n,e))Pd(n,e);else{var t=n.elm,r=X9(t);Qm(e),r!==null&&(Sh(r,e.elm,Y9(t)),Hx(r,[n],0,0))}return e}var jse=0,qse=function(){function n(e,t,r){if(this.type="svg",this.refreshHover=L4(),this.configLayer=L4(),this.storage=t,this._opts=r=Pe({},r),this.root=e,this._id="zr"+jse++,this._oldVNode=y4(r.width,r.height),e&&!r.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=z9("svg");wL(null,this._oldVNode),i.appendChild(a),e.appendChild(i)}this.resize(r.width,r.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",$se(this._oldVNode,e),this._oldVNode=e}},n.prototype.renderOneToVNode=function(e){return M4(e,xC(this._id))},n.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),r=this._width,i=this._height,a=xC(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress,a.emphasis=e.emphasis,a.ssr=this._opts.ssr;var s=[],o=this._bgVNode=Xse(r,i,this._backgroundColor,a);o&&s.push(o);var l=e.compress?null:this._mainVNode=ti("g","main",{},[]);this._paintList(t,a,l?l.children:s),l&&s.push(l);var u=Ne(Yt(a.defs),function(f){return a.defs[f]});if(u.length&&s.push(ti("defs","defs",{},u)),e.animation){var c=Tse(a.cssNodes,a.cssAnims,{newline:!0});if(c){var h=ti("style","stl",{},[],c);s.push(h)}}return y4(r,i,s,e.useViewBox)},n.prototype.renderToString=function(e){return e=e||{},_L(this.renderToVNode({animation:Et(e.cssAnimation,!0),emphasis:Et(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Et(e.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(e,t,r){for(var i=e.length,a=[],s=0,o,l,u=0,c=0;c=0&&!(f&&l&&f[g]===l[g]);g--);for(var v=p-1;v>g;v--)s--,o=a[s-1];for(var m=g+1;m=o)}}for(var h=this.__startIndex;h15)break}}L.prevElClipPaths&&m.restore()};if(y)if(y.length===0)T=v.__endIndex;else for(var A=d.dpr,M=0;M0&&e>i[0]){for(l=0;le);l++);o=r[i[l]]}if(i.splice(l+1,0,e),r[e]=t,!t.virtual)if(o){var u=o.dom;u.nextSibling?s.insertBefore(t.dom,u.nextSibling):s.appendChild(t.dom)}else s.firstChild?s.insertBefore(t.dom,s.firstChild):s.appendChild(t.dom);t.painter||(t.painter=this)}},n.prototype.eachLayer=function(e,t){for(var r=this._zlevelList,i=0;i0?Zy:0),this._needsManuallyCompositing),c.__builtin__||pP("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,t(l),a=c),i.__dirty&Wa&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(h,f){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(e){e.clear()},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e,z(this._layers,function(t){t.setUnpainted()})},n.prototype.configLayer=function(e,t){if(t){var r=this._layerConfig;r[e]?It(r[e],t,!0):r[e]=t;for(var i=0;i-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},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}(rr);const aoe=ioe;function Mp(n,e){var t=n.mapDimensionsAll("defaultedLabel"),r=t.length;if(r===1){var i=Sp(n,e,t[0]);return i!=null?i+"":null}else if(r){for(var a=[],s=0;s=0&&r.push(e[a])}return r.join(" ")}var soe=function(n){ve(e,n);function e(t,r,i,a){var s=n.call(this)||this;return s.updateData(t,r,i,a),s}return e.prototype._createSymbol=function(t,r,i,a,s){this.removeAll();var o=Br(t,-1,-1,2,2,null,s);o.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),o.drift=ooe,this._symbolType=t,this.add(o)},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(){zl(this.childAt(0))},e.prototype.downplay=function(){Ul(this.childAt(0))},e.prototype.setZ=function(t,r){var i=this.childAt(0);i.zlevel=t,i.z=r},e.prototype.setDraggable=function(t,r){var i=this.childAt(0);i.draggable=t,i.cursor=!r&&t?"move":i.cursor},e.prototype.updateData=function(t,r,i,a){this.silent=!1;var s=t.getItemVisual(r,"symbol")||"circle",o=t.hostModel,l=e.getSymbolSize(t,r),u=s!==this._symbolType,c=a&&a.disableAnimation;if(u){var h=t.getItemVisual(r,"symbolKeepAspect");this._createSymbol(s,t,r,l,h)}else{var f=this.childAt(0);f.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?f.attr(d):cn(f,d,o,r),co(f)}if(this._updateCommon(t,r,l,i,a),u){var f=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,Jn(f,d,o,r)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,r,i,a,s){var o=this.childAt(0),l=t.hostModel,u,c,h,f,d,p,g,v,m;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,h=a.selectItemStyle,f=a.focus,d=a.blurScope,g=a.labelStatesModels,v=a.hoverScale,m=a.cursorStyle,p=a.emphasisDisabled),!a||t.hasItemOption){var y=a&&a.itemModel?a.itemModel:t.getItemModel(r),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),f=_.get("focus"),d=_.get("blurScope"),p=_.get("disabled"),g=ri(y),v=_.getShallow("scale"),m=y.getShallow("cursor")}var x=t.getItemVisual(r,"symbolRotate");o.attr("rotation",(x||0)*Math.PI/180||0);var b=Tf(t.getItemVisual(r,"symbolOffset"),i);b&&(o.x=b[0],o.y=b[1]),m&&o.attr("cursor",m);var S=t.getItemVisual(r,"style"),w=S.fill;if(o instanceof Pi){var T=o.style;o.useStyle(Pe({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},S))}else o.__isEmptyBrush?o.useStyle(Pe({},S)):o.useStyle(S),o.style.decal=null,o.setColor(w,s&&s.symbolInnerColor),o.style.strokeNoScale=!0;var C=t.getItemVisual(r,"liftZ"),A=this._z2;C!=null?A==null&&(this._z2=o.z2,o.z2+=C):A!=null&&(o.z2=A,this._z2=null);var M=s&&s.useNameLabel;Ei(o,g,{labelFetcher:l,labelDataIndex:r,defaultText:P,inheritColor:w,defaultOpacity:S.opacity});function P(R){return M?t.getName(R):Mp(t,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var D=o.ensureState("emphasis");D.style=u,o.ensureState("select").style=h,o.ensureState("blur").style=c;var L=v==null||v===!0?Math.max(1.1,3/this._sizeY):isFinite(v)&&v>0?+v:1;D.scaleX=this._sizeX*L,D.scaleY=this._sizeY*L,this.setSymbolScale(1),lr(this,f,d,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,r,i){var a=this.childAt(0),s=St(this).dataIndex,o=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&hc(l,{style:{opacity:0}},r,{dataIndex:s,removeOpt:o,cb:function(){a.removeTextContent()}})}else a.removeTextContent();hc(a,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:s,cb:t,removeOpt:o})},e.getSymbolSize=function(t,r){return iv(t.getItemVisual(r,"symbolSize"))},e}(bt);function ooe(n,e){this.parent.drift(n,e)}const G0=soe;function UA(n,e,t,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(t))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&n.getItemVisual(t,"symbol")!=="none"}function I4(n){return n!=null&&!gt(n)&&(n={isIgnore:n}),n||{}}function N4(n){var e=n.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:ri(e),cursorStyle:e.get("cursor")}}var loe=function(){function n(e){this.group=new bt,this._SymbolCtor=e||G0}return n.prototype.updateData=function(e,t){this._progressiveEls=null,t=I4(t);var r=this.group,i=e.hostModel,a=this._data,s=this._SymbolCtor,o=t.disableAnimation,l=N4(e),u={disableAnimation:o},c=t.getSymbolPoint||function(h){return e.getItemLayout(h)};a||r.removeAll(),e.diff(a).add(function(h){var f=c(h);if(UA(e,f,h,t)){var d=new s(e,h,l,u);d.setPosition(f),e.setItemGraphicEl(h,d),r.add(d)}}).update(function(h,f){var d=a.getItemGraphicEl(f),p=c(h);if(!UA(e,p,h,t)){r.remove(d);return}var g=e.getItemVisual(h,"symbol")||"circle",v=d&&d.getSymbolType&&d.getSymbolType();if(!d||v&&v!==g)r.remove(d),d=new s(e,h,l,u),d.setPosition(p);else{d.updateData(e,h,l,u);var m={x:p[0],y:p[1]};o?d.attr(m):cn(d,m,i)}r.add(d),e.setItemGraphicEl(h,d)}).remove(function(h){var f=a.getItemGraphicEl(h);f&&f.fadeOut(function(){r.remove(f)},i)}).execute(),this._getSymbolPoint=c,this._data=e},n.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(r,i){var a=e._getSymbolPoint(i);r.setPosition(a),r.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=N4(e),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t,r){this._progressiveEls=[],r=I4(r);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a0?t=r[0]:r[1]<0&&(t=r[1]),t}function J9(n,e,t,r){var i=NaN;n.stacked&&(i=t.get(t.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=n.valueStart);var a=n.baseDataOffset,s=[];return s[a]=t.get(n.baseDim,r),s[1-a]=i,e.dataToPoint(s)}function coe(n,e){var t=[];return e.diff(n).add(function(r){t.push({cmd:"+",idx:r})}).update(function(r,i){t.push({cmd:"=",idx:i,idx1:r})}).remove(function(r){t.push({cmd:"-",idx:r})}).execute(),t}function hoe(n,e,t,r,i,a,s,o){for(var l=coe(n,e),u=[],c=[],h=[],f=[],d=[],p=[],g=[],v=Q9(i,e,s),m=n.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_=i||g<0)break;if(Yh(m,y)){if(l){g+=a;continue}break}if(g===t)n[a>0?"moveTo":"lineTo"](m,y),h=m,f=y;else{var _=m-u,x=y-c;if(_*_+x*x<.5){g+=a;continue}if(s>0){for(var b=g+a,S=e[b*2],w=e[b*2+1];S===m&&w===y&&v=r||Yh(S,w))d=m,p=y;else{A=S-u,M=w-c;var L=m-u,R=S-m,N=y-c,F=w-y,O=void 0,H=void 0;if(o==="x"){O=Math.abs(L),H=Math.abs(R);var U=A>0?1:-1;d=m-U*O*s,p=y,P=m+U*H*s,D=y}else if(o==="y"){O=Math.abs(N),H=Math.abs(F);var $=M>0?1:-1;d=m,p=y-$*O*s,P=m,D=y+$*H*s}else O=Math.sqrt(L*L+N*N),H=Math.sqrt(R*R+F*F),C=H/(H+O),d=m-A*s*(1-C),p=y-M*s*(1-C),P=m+A*s*C,D=y+M*s*C,P=lu(P,uu(S,m)),D=lu(D,uu(w,y)),P=uu(P,lu(S,m)),D=uu(D,lu(w,y)),A=P-m,M=D-y,d=m-A*O/H,p=y-M*O/H,d=lu(d,uu(u,m)),p=lu(p,uu(c,y)),d=uu(d,lu(u,m)),p=uu(p,lu(c,y)),A=m-d,M=y-p,P=m+A*H/O,D=y+M*H/O}n.bezierCurveTo(h,f,d,p,m,y),h=P,f=D}else n.lineTo(m,y)}u=m,c=y,g+=a}return v}var eH=function(){function n(){this.smooth=0,this.smoothConstraint=!0}return n}(),foe=function(n){ve(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new eH},e.prototype.buildPath=function(t,r){var i=r.points,a=0,s=i.length/2;if(r.connectNulls){for(;s>0&&Yh(i[s*2-2],i[s*2-1]);s--);for(;a=0){var x=u?(p-l)*_+l:(d-o)*_+o;return u?[t,x]:[x,t]}o=d,l=p;break;case s.C:d=a[h++],p=a[h++],g=a[h++],v=a[h++],m=a[h++],y=a[h++];var b=u?mx(o,d,g,m,t,c):mx(l,p,v,y,t,c);if(b>0)for(var S=0;S=0){var x=u?Qr(l,p,v,y,w):Qr(o,d,g,m,w);return u?[t,x]:[x,t]}}o=m,l=y;break}}},e}(Ht),doe=function(n){ve(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(eH),tH=function(n){ve(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new doe},e.prototype.buildPath=function(t,r){var i=r.points,a=r.stackedOnPoints,s=0,o=i.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;o>0&&Yh(i[o*2-2],i[o*2-1]);o--);for(;se){a?t.push(s(a,l,e)):i&&t.push(s(i,l,0),s(i,l,e));break}else i&&(t.push(s(i,l,0)),i=null),t.push(l),a=l}return t}function goe(n,e,t){var r=n.getVisual("visualMeta");if(!(!r||!r.length||!n.count())&&e.type==="cartesian2d"){for(var i,a,s=r.length-1;s>=0;s--){var o=n.getDimensionInfo(r[s].dimension);if(i=o&&o.coordDim,i==="x"||i==="y"){a=r[s];break}}if(a){var l=e.getAxis(i),u=Ne(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,h=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var f=voe(u,i==="x"?t.getWidth():t.getHeight()),d=f.length;if(!d&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var p=10,g=f[0].coord-p,v=f[d-1].coord+p,m=v-g;if(m<.001)return"transparent";z(f,function(_){_.offset=(_.coord-g)/m}),f.push({offset:d?f[d-1].offset:.5,color:h[1]||"transparent"}),f.unshift({offset:d?f[0].offset:.5,color:h[0]||"transparent"});var y=new Zr(0,0,0,0,f,!0);return y[i]=g,y[i+"2"]=v,y}}}function moe(n,e,t){var r=n.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var a=t.getAxesByScale("ordinal")[0];if(a&&!(i&&yoe(a,e))){var s=e.mapDimension(a.dim),o={};return z(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);o[u]=1}),function(l){return!o.hasOwnProperty(e.get(s,l))}}}}function yoe(n,e){var t=n.getExtent(),r=Math.abs(t[1]-t[0])/n.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),s=0;sr)return!1;return!0}function _oe(n,e){return isNaN(n)||isNaN(e)}function xoe(n){for(var e=n.length/2;e>0&&_oe(n[e*2-2],n[e*2-1]);e--);return e-1}function G4(n,e){return[n[e*2],n[e*2+1]]}function boe(n,e,t){for(var r=n.length/2,i=t==="x"?0:1,a,s,o=0,l=-1,u=0;u=e||a>=e&&s<=e){l=u;break}o=u,a=s}return{range:[o,l],t:(e-a)/(s-a)}}function iH(n){if(n.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var H=p.getState("emphasis").style;H.lineWidth=+p.style.lineWidth+1}St(p).seriesIndex=t.seriesIndex,lr(p,N,F,O);var U=B4(t.get("smooth")),$=t.get("smoothMonotone");if(p.setShape({smooth:U,smoothMonotone:$,connectNulls:w}),g){var Y=o.getCalculationInfo("stackedOnSeries"),oe=0;g.useStyle(dt(u.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),Y&&(oe=B4(Y.get("smooth"))),g.setShape({smooth:U,stackedOnSmooth:oe,smoothMonotone:$,connectNulls:w}),Ci(g,t,"areaStyle"),St(g).seriesIndex=t.seriesIndex,lr(g,N,F,O)}var X=this._changePolyState;o.eachItemGraphicEl(function(re){re&&(re.onHoverStateChange=X)}),this._polyline.onHoverStateChange=X,this._data=o,this._coordSys=a,this._stackedOnPoints=b,this._points=c,this._step=A,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,p),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,r){St(r).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,r,i,a){var s=t.getData(),o=lf(s,a);if(this._changePolyState("emphasis"),!(o instanceof Array)&&o!=null&&o>=0){var l=s.getLayout("points"),u=s.getItemGraphicEl(o);if(!u){var c=l[o*2],h=l[o*2+1];if(isNaN(c)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,h))return;var f=t.get("zlevel")||0,d=t.get("z")||0;u=new G0(s,o),u.x=c,u.y=h,u.setZ(f,d);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=f,p.z=d,p.z2=this._polyline.z2+1),u.__temp=!0,s.setItemGraphicEl(o,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else $n.prototype.highlight.call(this,t,r,i,a)},e.prototype.downplay=function(t,r,i,a){var s=t.getData(),o=lf(s,a);if(this._changePolyState("normal"),o!=null&&o>=0){var l=s.getItemGraphicEl(o);l&&(l.__temp?(s.setItemGraphicEl(o,null),this.group.remove(l)):l.downplay())}else $n.prototype.downplay.call(this,t,r,i,a)},e.prototype._changePolyState=function(t){var r=this._polygon;Mx(this._polyline,t),r&&Mx(r,t)},e.prototype._newPolyline=function(t){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new foe({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(t,r){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new tH({shape:{points:t,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(t,r,i){var a,s,o=r.getBaseAxis(),l=o.inverse;r.type==="cartesian2d"?(a=o.isHorizontal(),s=!1):r.type==="polar"&&(a=o.dim==="angle",s=!0);var u=t.hostModel,c=u.get("animationDuration");ct(c)&&(c=c(null));var h=u.get("animationDelay")||0,f=ct(h)?h(null):h;t.eachItemGraphicEl(function(d,p){var g=d;if(g){var v=[d.x,d.y],m=void 0,y=void 0,_=void 0;if(i)if(s){var x=i,b=r.pointToCoord(v);a?(m=x.startAngle,y=x.endAngle,_=-b[1]/180*Math.PI):(m=x.r0,y=x.r,_=b[0])}else{var S=i;a?(m=S.x,y=S.x+S.width,_=d.x):(m=S.y+S.height,y=S.y,_=d.y)}var w=y===m?0:(_-m)/(y-m);l&&(w=1-w);var T=ct(h)?h(p):c*w+f,C=g.getSymbolPath(),A=C.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,r,i){var a=t.getModel("endLabel");if(iH(t)){var s=t.getData(),o=this._polyline,l=s.getLayout("points");if(!l){o.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new ln({z2:200}),u.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var c=xoe(l);c>=0&&(Ei(o,ri(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:c,defaultText:function(h,f,d){return d!=null?Z9(s,d):Mp(s,h)},enableTextSetter:!0},Soe(a,r)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,r,i,a,s,o,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var h=i.getLayout("points"),f=i.hostModel,d=f.get("connectNulls"),p=o.get("precision"),g=o.get("distance")||0,v=l.getBaseAxis(),m=v.isHorizontal(),y=v.inverse,_=r.shape,x=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,b=(m?g:0)*(y?-1:1),S=(m?0:-g)*(y?-1:1),w=m?"x":"y",T=boe(h,x,w),C=T.range,A=C[1]-C[0],M=void 0;if(A>=1){if(A>1&&!d){var P=G4(h,C[0]);u.attr({x:P[0]+b,y:P[1]+S}),s&&(M=f.getRawValue(C[0]))}else{var P=c.getPointOn(x,w);P&&u.attr({x:P[0]+b,y:P[1]+S});var D=f.getRawValue(C[0]),L=f.getRawValue(C[1]);s&&(M=wU(i,p,D,L,T.t))}a.lastFrameIndex=C[0]}else{var R=t===1||a.lastFrameIndex>0?C[0]:0,P=G4(h,R);s&&(M=f.getRawValue(R)),u.attr({x:P[0]+b,y:P[1]+S})}if(s){var N=Kp(u);typeof N.setLabelText=="function"&&N.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,r,i,a,s,o,l){var u=this._polyline,c=this._polygon,h=t.hostModel,f=hoe(this._data,t,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin),d=f.current,p=f.stackedOnCurrent,g=f.next,v=f.stackedOnNext;if(s&&(p=cu(f.stackedOnCurrent,f.current,i,s,l),d=cu(f.current,null,i,s,l),v=cu(f.stackedOnNext,f.next,i,s,l),g=cu(f.next,null,i,s,l)),F4(d,g)>3e3||c&&F4(p,v)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:v}));return}u.shape.__points=f.current,u.shape.points=d;var m={shape:{points:g}};f.current!==d&&(m.shape.__points=f.next),u.stopAnimation(),cn(u,m,h),c&&(c.setShape({points:d,stackedOnPoints:p}),c.stopAnimation(),cn(c,{shape:{stackedOnPoints:v}},h),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var y=[],_=f.status,x=0;x<_.length;x++){var b=_[x].cmd;if(b==="="){var S=t.getItemGraphicEl(_[x].idx1);S&&y.push({el:S,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var w=u.shape.__points,T=0;Te&&(e=n[t]);return isFinite(e)?e:NaN},min:function(n){for(var e=1/0,t=0;t10&&s.type==="cartesian2d"&&a){var l=s.getBaseAxis(),u=s.getOtherAxis(l),c=l.getExtent(),h=r.getDevicePixelRatio(),f=Math.abs(c[1]-c[0])*(h||1),d=Math.round(o/f);if(isFinite(d)&&d>1){a==="lttb"?e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/d)):a==="minmax"&&e.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/d));var p=void 0;Ke(a)?p=Moe[a]:ct(a)&&(p=a),p&&e.setData(i.downSample(i.mapDimension(u.dim),1/d,p,Toe))}}}}}function Coe(n){n.registerChartView(Aoe),n.registerSeriesModel(aoe),n.registerLayout(V0("line",!0)),n.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",r)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,aH("line"))}var sH=function(n){ve(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return Yl(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,r,i){var a=this.coordinateSystem;if(a&&a.clampData){var s=a.clampData(t),o=a.dataToPoint(s);if(i)z(a.getAxes(),function(f,d){if(f.type==="category"&&r!=null){var p=f.getTicksCoords(),g=f.getTickModel().get("alignWithLabel"),v=s[d],m=r[d]==="x1"||r[d]==="y1";if(m&&!g&&(v+=1),p.length<2)return;if(p.length===2){o[d]=f.toGlobalCoord(f.getExtent()[m?1:0]);return}for(var y=void 0,_=void 0,x=1,b=0;bv){_=(S+y)/2;break}b===1&&(x=w-p[0].tickValue)}_==null&&(y?y&&(_=p[p.length-1].coord):_=p[0].coord),o[d]=f.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;o[h]+=u+c/2}return o}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}(rr);rr.registerClass(sH);const Wx=sH;var Eoe=function(n){ve(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return Yl(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>t&&(t=r),t},e.prototype.brushSelector=function(t,r,i){return i.rect(r.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=wc(Wx.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}(Wx);const Poe=Eoe;var Loe=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),Roe=function(n){ve(e,n);function e(t){var r=n.call(this,t)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new Loe},e.prototype.buildPath=function(t,r){var i=r.cx,a=r.cy,s=Math.max(r.r0||0,0),o=Math.max(r.r,0),l=(o-s)*.5,u=s+l,c=r.startAngle,h=r.endAngle,f=r.clockwise,d=Math.PI*2,p=f?h-cMath.PI/2&&co)return!0;o=h}return!1},e.prototype._isOrderDifferentInView=function(t,r){for(var i=r.scale,a=i.getExtent(),s=Math.max(0,a[0]),o=Math.min(a[1],i.getOrdinalMeta().categories.length-1);s<=o;++s)if(t.ordinalNumbers[s]!==i.getRawOrdinalNumber(s))return!0},e.prototype._updateSortWithinSameData=function(t,r,i,a){if(this._isOrderChangedWithinSameData(t,r,i)){var s=this._dataSort(t,i,r);this._isOrderDifferentInView(s,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:s}))}},e.prototype._dispatchInitSort=function(t,r,i){var a=r.baseAxis,s=this._dataSort(t,a,function(o){return t.get(t.mapDimension(r.otherAxis.dim),o)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:s})},e.prototype.remove=function(t,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(t,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var r=this.group,i=this._data;t&&t.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Hm(a,t,St(a).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}($n),z4={cartesian2d:function(n,e){var t=e.width<0?-1:1,r=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var i=n.x+n.width,a=n.y+n.height,s=HA(e.x,n.x),o=WA(e.x+e.width,i),l=HA(e.y,n.y),u=WA(e.y+e.height,a),c=oi?o:s,e.y=h&&l>a?u:l,e.width=c?0:o-s,e.height=h?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(n,e){var t=e.r0<=e.r?1:-1;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}var i=WA(e.r,n.r),a=HA(e.r0,n.r0);e.r=i,e.r0=a;var s=i-a<0;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}return s}},U4={cartesian2d:function(n,e,t,r,i,a,s,o,l){var u=new nn({shape:Pe({},r),z2:1});if(u.__dataIndex=t,u.name="item",a){var c=u.shape,h=i?"height":"width";c[h]=0}return u},polar:function(n,e,t,r,i,a,s,o,l){var u=!i&&l?$x:La,c=new u({shape:r,z2:1});c.name="item";var h=oH(i);if(c.calculateTextPosition=Doe(h,{isRoundCap:u===$x}),a){var f=c.shape,d=i?"r":"endAngle",p={};f[d]=i?r.r0:r.startAngle,p[d]=r[d],(o?cn:Jn)(c,{shape:p},a)}return c}};function Ooe(n,e){var t=n.get("realtimeSort",!0),r=e.getBaseAxis();if(t&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function V4(n,e,t,r,i,a,s,o){var l,u;a?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),o||(s?cn:Jn)(t,{shape:l},e,i,null);var c=e?n.baseAxis.model:null;(s?cn:Jn)(t,{shape:u},c,i)}function H4(n,e){for(var t=0;t0?1:-1,s=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+s*i/2,width:r.width-a*i,height:r.height-s*i}},polar:function(n,e,t){var r=n.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function Goe(n){return n.startAngle!=null&&n.endAngle!=null&&n.startAngle===n.endAngle}function oH(n){return function(e){var t=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+t;default:return r}}}(n)}function $4(n,e,t,r,i,a,s,o){var l=e.getItemVisual(t,"style");if(o){if(!a.get("roundCap")){var c=n.shape,h=Nh(r.getModel("itemStyle"),c,!0);Pe(c,h),n.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;n.setShape("r",u)}n.useStyle(l);var f=r.getShallow("cursor");f&&n.attr("cursor",f);var d=o?s?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":s?i.height>=0?"bottom":"top":i.width>=0?"right":"left",p=ri(r);Ei(n,p,{labelFetcher:a,labelDataIndex:t,defaultText:Mp(a.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var g=n.getTextContent();if(o&&g){var v=r.get(["label","position"]);n.textConfig.inside=v==="middle"?!0:null,Ioe(n,v==="outside"?d:v,oH(s),r.get(["label","rotate"]))}_7(g,p,a.getRawValue(t),function(y){return Z9(e,y)});var m=r.getModel(["emphasis"]);lr(n,m.get("focus"),m.get("blurScope"),m.get("disabled")),Ci(n,r),Goe(i)&&(n.style.fill="none",n.style.stroke="none",z(n.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function zoe(n,e){var t=n.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var r=n.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,a)}var Uoe=function(){function n(){}return n}(),j4=function(n){ve(e,n);function e(t){var r=n.call(this,t)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new Uoe},e.prototype.buildPath=function(t,r){for(var i=r.points,a=this.baseDimIdx,s=1-this.baseDimIdx,o=[],l=[],u=this.barWidth,c=0;c=0?t:null},30,!1);function Voe(n,e,t){for(var r=n.baseDimIdx,i=1-r,a=n.shape.points,s=n.largeDataIndices,o=[],l=[],u=n.barWidth,c=0,h=a.length/3;c=o[0]&&e<=o[0]+l[0]&&t>=o[1]&&t<=o[1]+l[1])return s[c]}return-1}function lH(n,e,t){if(Ef(t,"cartesian2d")){var r=e,i=t.getArea();return{x:n?r.x:i.x,y:n?i.y:r.y,width:n?r.width:i.width,height:n?i.height:r.height}}else{var i=t.getArea(),a=e;return{cx:i.cx,cy:i.cy,r0:n?i.r0:a.r0,r:n?i.r:a.r,startAngle:n?a.startAngle:0,endAngle:n?a.endAngle:Math.PI*2}}}function Hoe(n,e,t){var r=n.type==="polar"?La:nn;return new r({shape:lH(e,t,n),silent:!0,z2:0})}const Woe=koe;function $oe(n){n.registerChartView(Woe),n.registerSeriesModel(Poe),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Rt(c9,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,h9("bar")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,aH("bar")),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})})}var Y4=Math.PI*2,t_=Math.PI/180;function uH(n,e){return Kr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function cH(n,e){var t=uH(n,e),r=n.get("center"),i=n.get("radius");Ie(i)||(i=[0,i]);var a=Xe(t.width,e.getWidth()),s=Xe(t.height,e.getHeight()),o=Math.min(a,s),l=Xe(i[0],o/2),u=Xe(i[1],o/2),c,h,f=n.coordinateSystem;if(f){var d=f.dataToPoint(r);c=d[0]||0,h=d[1]||0}else Ie(r)||(r=[r,r]),c=Xe(r[0],a)+t.x,h=Xe(r[1],s)+t.y;return{cx:c,cy:h,r0:l,r:u}}function joe(n,e,t){e.eachSeriesByType(n,function(r){var i=r.getData(),a=i.mapDimension("value"),s=uH(r,t),o=cH(r,t),l=o.cx,u=o.cy,c=o.r,h=o.r0,f=-r.get("startAngle")*t_,d=r.get("endAngle"),p=r.get("padAngle")*t_;d=d==="auto"?f-Y4:-d*t_;var g=r.get("minAngle")*t_,v=g+p,m=0;i.each(a,function(F){!isNaN(F)&&m++});var y=i.getSum(a),_=Math.PI/(y||m)*2,x=r.get("clockwise"),b=r.get("roseType"),S=r.get("stillShowZeroSum"),w=i.getDataExtent(a);w[0]=0;var T=x?1:-1,C=[f,d],A=T*p/2;LP(C,!x),f=C[0],d=C[1];var M=hH(r);M.startAngle=f,M.endAngle=d,M.clockwise=x;var P=Math.abs(d-f),D=P,L=0,R=f;if(i.setLayout({viewRect:s,r:c}),i.each(a,function(F,O){var H;if(isNaN(F)){i.setItemLayout(O,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:l,cy:u,r0:h,r:b?NaN:c});return}b!=="area"?H=y===0&&S?_:F*_:H=P/m,HH?($=R+T*H/2,Y=$):($=R+A,Y=U-A),i.setItemLayout(O,{angle:H,startAngle:$,endAngle:Y,clockwise:x,cx:l,cy:u,r0:h,r:b?Sn(F,w,[h,c]):c}),R=U}),Dt?m:v,b=Math.abs(_.label.y-t);if(b>=x.maxY){var S=_.label.x-e-_.len2*i,w=r+_.len,T=Math.abs(S)n.unconstrainedWidth?null:d:null;r.setStyle("width",p)}var g=r.getBoundingRect();a.width=g.width;var v=(r.style.margin||0)+2.1;a.height=g.height+v,a.y-=(a.height-h)/2}}}function $A(n){return n.position==="center"}function Yoe(n){var e=n.getData(),t=[],r,i,a=!1,s=(n.get("minShowLabelAngle")||0)*qoe,o=e.getLayout("viewRect"),l=e.getLayout("r"),u=o.width,c=o.x,h=o.y,f=o.height;function d(S){S.ignore=!0}function p(S){if(!S.ignore)return!0;for(var w in S.states)if(S.states[w].ignore===!1)return!0;return!1}e.each(function(S){var w=e.getItemGraphicEl(S),T=w.shape,C=w.getTextContent(),A=w.getTextGuideLine(),M=e.getItemModel(S),P=M.getModel("label"),D=P.get("position")||M.get(["emphasis","label","position"]),L=P.get("distanceToLabelLine"),R=P.get("alignTo"),N=Xe(P.get("edgeDistance"),u),F=P.get("bleedMargin"),O=M.getModel("labelLine"),H=O.get("length");H=Xe(H,u);var U=O.get("length2");if(U=Xe(U,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":Y>0?"left":"right"}var we=Math.PI,V=0,ee=P.get("rotate");if(un(ee))V=ee*(we/180);else if(D==="center")V=0;else if(ee==="radial"||ee===!0){var ae=Y<0?-$+we:-$;V=ae}else if(ee==="tangential"&&D!=="outside"&&D!=="outer"){var I=Math.atan2(Y,oe);I<0&&(I=we*2+I);var G=oe>0;G&&(I=we+I),V=I-we}if(a=!!V,C.x=X,C.y=re,C.rotation=V,C.setStyle({verticalAlign:"middle"}),Ce){C.setStyle({align:Fe});var Ee=C.states.select;Ee&&(Ee.x+=C.x,Ee.y+=C.y)}else{var K=C.getBoundingRect().clone();K.applyTransform(C.getComputedTransform());var ge=(C.style.margin||0)+2.1;K.y-=ge/2,K.height+=ge,t.push({label:C,labelLine:A,position:D,len:H,len2:U,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new Nt(Y,oe),linePoints:_e,textAlign:Fe,labelDistance:L,labelAlignTo:R,edgeDistance:N,bleedMargin:F,rect:K,unconstrainedWidth:K.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:Ce})}}),!a&&n.get("avoidLabelOverlap")&&Xoe(t,r,i,l,u,f,c,h);for(var g=0;g0){for(var c=s.getItemLayout(0),h=1;isNaN(c&&c.startAngle)&&h=a.r0}},e.type="pie",e}($n);const Qoe=Zoe;function sv(n,e,t){e=Ie(e)&&{coordDimensions:e}||Pe({encodeDefine:n.getEncode()},e);var r=n.getSource(),i=F0(r,e).dimensions,a=new ia(i,n);return a.initData(r,t),a}var Joe=function(){function n(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return n.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},n.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},n.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},n.prototype.getItemVisual=function(e,t){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,t)},n}();const W0=Joe;var ele=en(),tle=function(n){ve(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new W0(Qe(this.getData,this),Qe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return sv(this,{coordDimensions:["value"],encodeDefaulter:Rt(YP,this)})},e.prototype.getDataParams=function(t){var r=this.getData(),i=ele(r),a=i.seats;if(!a){var s=[];r.each(r.mapDimension("value"),function(l){s.push(l)}),a=i.seats=uJ(s,r.hostModel.get("percentPrecision"))}var o=n.prototype.getDataParams.call(this,t);return o.percent=a[t]||0,o.$vars.push("percent"),o},e.prototype._defaultLabelLine=function(t){of(t,"labelLine",["show"]);var r=t.labelLine,i=t.emphasis.labelLine;r.show=r.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(rr);const nle=tle;function rle(n){return{seriesType:n,reset:function(e,t){var r=e.getData();r.filterSelf(function(i){var a=r.mapDimension("value"),s=r.get(a,i);return!(un(s)&&!isNaN(s)&&s<0)})}}}function ile(n){n.registerChartView(Qoe),n.registerSeriesModel(nle),CV("pie",n.registerAction),n.registerLayout(Rt(joe,"pie")),n.registerProcessor(H0("pie")),n.registerProcessor(rle("pie"))}var ale=function(n){ve(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,r){return Yl(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,r,i){return i.point(r.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}(rr);const sle=ale;var dH=4,ole=function(){function n(){}return n}(),lle=function(n){ve(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new ole},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,r){var i=r.points,a=r.size,s=this.symbolProxy,o=s.shape,l=t.getContext?t.getContext():t,u=l&&a[0]=0;u--){var c=u*2,h=a[c]-o/2,f=a[c+1]-l/2;if(t>=h&&r>=f&&t<=h+o&&r<=f+l)return u}return-1},e.prototype.contain=function(t,r){var i=this.transformCoordToLocal(t,r),a=this.getBoundingRect();if(t=i[0],r=i[1],a.contain(t,r)){var s=this.hoverDataIdx=this.findDataIndex(t,r);return s>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,i=r.points,a=r.size,s=a[0],o=a[1],l=1/0,u=1/0,c=-1/0,h=-1/0,f=0;f=0&&(u.dataIndex=h+(e.startIndex||0))})},n.prototype.remove=function(){this._clear()},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const cle=ule;var hle=function(n){ve(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var a=t.getData(),s=this._updateSymbolDraw(a,t);s.updateData(a,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,i){var a=t.getData(),s=this._updateSymbolDraw(a,t);s.incrementalPrepareUpdate(a),this._finished=!1},e.prototype.incrementalRender=function(t,r,i){this._symbolDraw.incrementalUpdate(t,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=t.end===r.getData().count()},e.prototype.updateTransform=function(t,r,i){var a=t.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var s=V0("").reset(t,r,i);s.progress&&s.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var r=t.coordinateSystem;return r&&r.getArea&&r.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,r){var i=this._symbolDraw,a=r.pipelineContext,s=a.large;return(!i||s!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=s?new cle:new z0,this._isLargeDraw=s,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}($n);const fle=hle;var dle=function(n){ve(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(sn);const ple=dle;var wC=function(n){ve(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Fr).models[0]},e.type="cartesian2dAxis",e}(sn);zr(wC,B0);var pH={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,showMinLine:!0,showMaxLine:!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)"]}}},vle=It({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},pH),AL=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}}},pH),gle=It({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},AL),mle=dt({logBase:10},AL);const vH={category:vle,value:AL,time:gle,log:mle};var yle={value:1,category:1,time:1,log:1};function Tp(n,e,t,r){z(yle,function(i,a){var s=It(It({},vH[a],!0),r,!0),o=function(l){ve(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,h){var f=$m(this),d=f?Jp(c):{},p=h.getTheme();It(c,p.get(a+"Axis")),It(c,this.getDefaultOption()),c.type=Z4(c),f&&fc(c,d,f)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=gC.createByAxisModel(this))},u.prototype.getCategories=function(c){var h=this.option;if(h.type==="category")return c?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+a,u.defaultOption=s,u}(t);n.registerComponentModel(o)}),n.registerSubTypeDefaulter(e+"Axis",Z4)}function Z4(n){return n.type||(n.data?"category":"value")}var _le=function(){function n(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return n.prototype.getAxis=function(e){return this._axes[e]},n.prototype.getAxes=function(){return Ne(this._dimList,function(e){return this._axes[e]},this)},n.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),_n(this.getAxes(),function(t){return t.scale.type===e})},n.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},n}();const xle=_le;var AC=["x","y"];function Q4(n){return n.type==="interval"||n.type==="time"}var ble=function(n){ve(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=AC,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!Q4(t)||!Q4(r))){var i=t.getExtent(),a=r.getExtent(),s=this.dataToPoint([i[0],a[0]]),o=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var c=(o[0]-s[0])/l,h=(o[1]-s[1])/u,f=s[0]-i[0]*c,d=s[1]-a[0]*h,p=this._transform=[c,0,0,h,f,d];this._invTransform=jp([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var r=this.getAxis("x"),i=this.getAxis("y");return r.contain(r.toLocalCoord(t[0]))&&i.contain(i.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,r){var i=this.dataToPoint(t),a=this.dataToPoint(r),s=this.getArea(),o=new Ot(i[0],i[1],a[0]-i[0],a[1]-i[1]);return s.intersect(o)},e.prototype.dataToPoint=function(t,r,i){i=i||[];var a=t[0],s=t[1];if(this._transform&&a!=null&&isFinite(a)&&s!=null&&isFinite(s))return Mi(i,t,this._transform);var o=this.getAxis("x"),l=this.getAxis("y");return i[0]=o.toGlobalCoord(o.dataToCoord(a,r)),i[1]=l.toGlobalCoord(l.dataToCoord(s,r)),i},e.prototype.clampData=function(t,r){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,s=i.getExtent(),o=a.getExtent(),l=i.parse(t[0]),u=a.parse(t[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(s[0],s[1]),l),Math.max(s[0],s[1])),r[1]=Math.min(Math.max(Math.min(o[0],o[1]),u),Math.max(o[0],o[1])),r},e.prototype.pointToData=function(t,r){var i=[];if(this._invTransform)return Mi(i,t,this._invTransform);var a=this.getAxis("x"),s=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(t[0]),r),i[1]=s.coordToData(s.toLocalCoord(t[1]),r),i},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var r=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(r[0],r[1])-t,s=Math.min(i[0],i[1])-t,o=Math.max(r[0],r[1])-a+t,l=Math.max(i[0],i[1])-s+t;return new Ot(a,s,o,l)},e}(xle),Sle=function(n){ve(e,n);function e(t,r,i,a,s){var o=n.call(this,t,r,i)||this;return o.index=0,o.type=a||"value",o.position=s||"bottom",o}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),t&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(t,r){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(po);const wle=Sle;function MC(n,e,t){t=t||{};var r=n.coordinateSystem,i=e.axis,a={},s=i.getAxesOnZeroOf()[0],o=i.position,l=s?"onZero":o,u=i.dim,c=r.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,p=u==="x"?[h[2]-d,h[3]+d]:[h[0]-d,h[1]+d];if(s){var g=s.toGlobalCoord(s.dataToCoord(0));p[f.onZero]=Math.max(Math.min(g,p[1]),p[0])}a.position=[u==="y"?p[f[l]]:h[0],u==="x"?p[f[l]]:h[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var v={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=v[o],a.labelOffset=s?p[f[o]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),di(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=e.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-m:m,a.z2=1,a}function J4(n){return n.get("coordinateSystem")==="cartesian2d"}function ek(n){var e={xAxisModel:null,yAxisModel:null};return z(e,function(t,r){var i=r.replace(/Model$/,""),a=n.getReferringComponents(i,Fr).models[0];e[r]=a}),e}var jA=Math.log;function gH(n,e,t){var r=pc.prototype,i=r.getTicks.call(t),a=r.getTicks.call(t,!0),s=i.length-1,o=r.getInterval.call(t),l=y9(n,e),u=l.extent,c=l.fixMin,h=l.fixMax;if(n.type==="log"){var f=jA(n.base);u=[jA(u[0])/f,jA(u[1])/f]}n.setExtent(u[0],u[1]),n.calcNiceExtent({splitNumber:s,fixMin:c,fixMax:h});var d=r.getExtent.call(n);c&&(u[0]=d[0]),h&&(u[1]=d[1]);var p=r.getInterval.call(n),g=u[0],v=u[1];if(c&&h)p=(v-g)/s;else if(c)for(v=u[0]+p*s;vu[0]&&isFinite(g)&&isFinite(u[0]);)p=RA(p),g=u[1]-p*s;else{var m=n.getTicks().length-1;m>s&&(p=RA(p));var y=p*s;v=Math.ceil(u[1]/p)*p,g=xr(v-y),g<0&&u[0]>=0?(g=0,v=xr(y)):v>0&&u[1]<=0&&(v=0,g=-xr(y))}var _=(i[0].value-a[0].value)/o,x=(i[s].value-a[s].value)/o;r.setExtent.call(n,g+p*_,v+p*x),r.setInterval.call(n,p),(_||x)&&r.setNiceExtent.call(n,g+p,v-p)}var Ale=function(){function n(e,t,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=AC,this._initCartesian(e,t,r),this.model=e}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(e,t){var r=this._axesMap;this._updateScale(e,this.model);function i(s){var o,l=Yt(s),u=l.length;if(u){for(var c=[],h=u-1;h>=0;h--){var f=+l[h],d=s[f],p=d.model,g=d.scale;mC(g)&&p.get("alignTicks")&&p.get("interval")==null?c.push(d):(Ap(g,p),mC(g)&&(o=d))}c.length&&(o||(o=c.pop(),Ap(o.scale,o.model)),z(c,function(v){gH(v.scale,v.model,o.scale)}))}}i(r.x),i(r.y);var a={};z(r.x,function(s){tk(r,"y",s,a)}),z(r.y,function(s){tk(r,"x",s,a)}),this.resize(this.model,t)},n.prototype.resize=function(e,t,r){var i=e.getBoxLayoutParams(),a=!r&&e.get("containLabel"),s=Kr(i,{width:t.getWidth(),height:t.getHeight()});this._rect=s;var o=this._axesList;l(),a&&(z(o,function(u){if(!u.model.get(["axisLabel","inside"])){var c=Oae(u);if(c){var h=u.isHorizontal()?"height":"width",f=u.model.get(["axisLabel","margin"]);s[h]-=c[h]+f,u.position==="top"?s.y+=c.height+f:u.position==="left"&&(s.x+=c.width+f)}}}),l()),z(this._coordsList,function(u){u.calcAffineTransform()});function l(){z(o,function(u){var c=u.isHorizontal(),h=c?[0,s.width]:[0,s.height],f=u.inverse?1:0;u.setExtent(h[f],h[1-f]),Mle(u,c?s.x:s.y)})}},n.prototype.getAxis=function(e,t){var r=this._axesMap[e];if(r!=null)return r[t||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var r="x"+e+"y"+t;return this._coordsMap[r]}gt(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):Bm(i-Vu)?(s=r>0?"bottom":"top",a="center"):(s="middle",i>0&&i0?"right":"left":a=r>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:s}},n.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},n.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},n}(),rk={axisLine:function(n,e,t,r){var i=e.get(["axisLine","show"]);if(i==="auto"&&n.handleAutoShown&&(i=n.handleAutoShown("axisLine")),!!i){var a=e.axis.getExtent(),s=r.transform,o=[a[0],0],l=[a[1],0],u=o[0]>l[0];s&&(Mi(o,o,s),Mi(l,l,s));var c=Pe({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new pi({shape:{x1:o[0],y1:o[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});bp(h.shape,h.style.lineWidth),h.anid="line",t.add(h);var f=e.get(["axisLine","symbol"]);if(f!=null){var d=e.get(["axisLine","symbolSize"]);Ke(f)&&(f=[f,f]),(Ke(d)||un(d))&&(d=[d,d]);var p=Tf(e.get(["axisLine","symbolOffset"])||0,d),g=d[0],v=d[1];z([{rotate:n.rotation+Math.PI/2,offset:p[0],r:0},{rotate:n.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((o[0]-l[0])*(o[0]-l[0])+(o[1]-l[1])*(o[1]-l[1]))}],function(m,y){if(f[y]!=="none"&&f[y]!=null){var _=Br(f[y],-g/2,-v/2,g,v,c.stroke,!0),x=m.r+m.offset,b=u?l:o;_.attr({rotation:m.rotate,x:b[0]+x*Math.cos(n.rotation),y:b[1]-x*Math.sin(n.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(n,e,t,r){var i=Ple(t,r,e,n),a=Rle(t,r,e,n);if(Ele(e,a,i),Lle(t,r,e,n.tickDirection),e.get(["axisLabel","hideOverlap"])){var s=D9(Ne(a,function(o){return{label:o,priority:o.z2,defaultAttr:{ignore:o.ignore}}}));k9(s)}},axisName:function(n,e,t,r){var i=di(n.axisName,e.get("name"));if(i){var a=e.get("nameLocation"),s=n.nameDirection,o=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,h=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,ak(a)?n.labelOffset+s*l:0],f,d=e.get("nameRotate");d!=null&&(d=d*Vu/180);var p;ak(a)?f=Kh.innerTextLayout(n.rotation,d!=null?d:n.rotation,s):(f=Cle(n.rotation,a,d||0,u),p=n.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(f.rotation)),!isFinite(p)&&(p=null)));var g=o.getFont(),v=e.get("nameTruncate",!0)||{},m=v.ellipsis,y=di(n.nameTruncateMaxWidth,v.maxWidth,p),_=new ln({x:h[0],y:h[1],rotation:f.rotation,silent:Kh.isLabelSilent(e),style:Hn(o,{text:i,font:g,overflow:"truncate",width:y,ellipsis:m,fill:o.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:o.get("align")||f.textAlign,verticalAlign:o.get("verticalAlign")||f.textVerticalAlign}),z2:1});if(wf({el:_,componentModel:e,itemName:i}),_.__fullText=i,_.anid="name",e.get("triggerEvent")){var x=Kh.makeAxisEventDataBase(e);x.targetType="axisName",x.name=i,St(_).eventData=x}r.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function Cle(n,e,t,r){var i=dU(t-n),a,s,o=r[0]>r[1],l=e==="start"&&!o||e!=="start"&&o;return Bm(i-Vu/2)?(s=l?"bottom":"top",a="center"):Bm(i-Vu*1.5)?(s=l?"top":"bottom",a="center"):(s="middle",iVu/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:s}}function Ele(n,e,t){if(!_9(n.axis)){var r=n.get(["axisLabel","showMinLabel"]),i=n.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var a=e[0],s=e[1],o=e[e.length-1],l=e[e.length-2],u=t[0],c=t[1],h=t[t.length-1],f=t[t.length-2];r===!1?(ss(a),ss(u)):ik(a,s)&&(r?(ss(s),ss(c)):(ss(a),ss(u))),i===!1?(ss(o),ss(h)):ik(l,o)&&(i?(ss(l),ss(f)):(ss(o),ss(h)))}}function ss(n){n&&(n.ignore=!0)}function ik(n,e){var t=n&&n.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!t||!r)){var i=Xb([]);return Sf(i,i,-n.rotation),t.applyTransform(Dl([],i,n.getLocalTransform())),r.applyTransform(Dl([],i,e.getLocalTransform())),t.intersect(r)}}function ak(n){return n==="middle"||n==="center"}function mH(n,e,t,r,i){for(var a=[],s=[],o=[],l=0;l