@perses-dev/stat-chart-plugin 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/__mf/js/{435.0060dd2f.js → 435.ac85e468.js} +1 -1
  2. package/__mf/js/{StatChart.3d66ae68.js → StatChart.8f98fa61.js} +3 -3
  3. package/__mf/js/async/{331.faa6f9eb.js → 331.b9e6d0dd.js} +2 -2
  4. package/__mf/js/async/349.f7381131.js +1 -0
  5. package/__mf/js/async/{236.f47b54b8.js → 37.a33e38bf.js} +2 -2
  6. package/__mf/js/async/503.1f671bce.js +1 -0
  7. package/__mf/js/async/530.2c488ba4.js +7 -0
  8. package/__mf/js/async/530.2c488ba4.js.LICENSE.txt +21 -0
  9. package/__mf/js/async/845.e4f98502.js +73 -0
  10. package/__mf/js/async/{954.f8bb1788.js → 954.a9e2abee.js} +2 -2
  11. package/__mf/js/async/{__federation_expose_StatChart.60147471.js → __federation_expose_StatChart.e84c06b6.js} +1 -1
  12. package/__mf/js/main.b00958d4.js +1 -0
  13. package/lib/StatChartBase.d.ts.map +1 -1
  14. package/lib/StatChartBase.js +0 -1
  15. package/lib/StatChartBase.js.map +1 -1
  16. package/lib/cjs/StatChartBase.js +0 -1
  17. package/mf-manifest.json +27 -27
  18. package/mf-stats.json +27 -27
  19. package/package.json +4 -4
  20. package/__mf/js/async/162.6eaaf026.js +0 -73
  21. package/__mf/js/async/360.e3f25d30.js +0 -29
  22. package/__mf/js/async/360.e3f25d30.js.LICENSE.txt +0 -37
  23. package/__mf/js/async/610.e2fe79a3.js +0 -1
  24. package/__mf/js/async/83.0215bc58.js +0 -1
  25. package/__mf/js/main.0ffda506.js +0 -1
  26. /package/__mf/js/async/{331.faa6f9eb.js.LICENSE.txt → 331.b9e6d0dd.js.LICENSE.txt} +0 -0
  27. /package/__mf/js/async/{162.6eaaf026.js.LICENSE.txt → 845.e4f98502.js.LICENSE.txt} +0 -0
  28. /package/__mf/js/async/{954.f8bb1788.js.LICENSE.txt → 954.a9e2abee.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkStatChart=self.webpackChunkStatChart||[]).push([["83"],{93846:function(e,t,i){i.d(t,{Z:()=>l});var n=i(69988),r=i(2021),o=i(30984),a=i(67975),s=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.ZT)(t,e),t.prototype.getInitialData=function(e,t){return(0,o.Z)(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,i){var n=this.coordinateSystem;if(n&&n.clampData){var r=n.clampData(e),o=n.dataToPoint(r);if(i)(0,a.each)(n.getAxes(),function(e,i){if("category"===e.type&&null!=t){var n=e.getTicksCoords(),a=e.getTickModel().get("alignWithLabel"),s=r[i],l="x1"===t[i]||"y1"===t[i];if(l&&!a&&(s+=1),!(n.length<2)){if(2===n.length){o[i]=e.toGlobalCoord(e.getExtent()[+!!l]);return}for(var u=void 0,c=void 0,h=1,d=0;d<n.length;d++){var p=n[d].coord,g=d===n.length-1?n[d-1].tickValue+h:n[d].tickValue;if(g===s){c=p;break}if(g<s)u=p;else if(null!=u&&g>s){c=(p+u)/2;break}1===d&&(h=g-n[0].tickValue)}null==c&&(u?u&&(c=n[n.length-1].coord):c=n[0].coord),o[i]=e.toGlobalCoord(c)}}});else{var s=this.getData(),l=s.getLayout("offset"),u=s.getLayout("size"),c=+!n.getBaseAxis().isHorizontal();o[c]+=l+u/2}return o}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(r.Z);r.Z.registerClass(s);let l=s},508:function(e,t,i){i.d(t,{N:()=>K});var n=i(67975),r=i(58783),o=i(5719),a=i(69988),s=i(93846),l=i(30984),u=i(4587),c=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,a.ZT)(t,e),t.prototype.getInitialData=function(){return(0,l.Z)(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,i){return i.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=(0,u.ZL)(s.Z.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}),t}(s.Z),h=i(7185),d=i(37293),p=i(29790),g=i(99858),f=i(31969),m=i(53511),y=i(10428),v=i(98306),x=i(33361),_=i(19774),b=i(21730),S=i(2699),M=i(58050),w=i(82667),A=i(16072),I=i(12666);function C(e,t,i){return t*Math.sin(e)*(i?-1:1)}function T(e,t,i){return t*Math.cos(e)*(i?1:-1)}var D=i(10061),Z=Math.max,L=Math.min,k=function(e){function t(){var i=e.call(this)||this;return i.type=t.type,i._isFirstFrame=!0,i}return(0,a.ZT)(t,e),t.prototype.render=function(e,t,i,n){this._model=e,this._removeOnRenderedListener(i),this._updateDrawMode(e);var r=e.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,i):this._renderNormal(e,t,i,n))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){(0,p.traverseElements)(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(null==this._isLargeDraw||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,i,n){var r,o=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?r=u.isHorizontal():"polar"===l.type&&(r="angle"===u.dim);var c=e.isAnimationEnabled()?e:null,h=function(e,t){var i=e.get("realtimeSort",!0),n=t.getBaseAxis();if(i&&"category"===n.type&&"cartesian2d"===t.type)return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}(e,l);h&&this._enableRealtimeSort(h,a,i);var p=e.get("clip",!0)||h,y=function(e,t){var i=e.getArea&&e.getArea();if((0,w.H)(e,"cartesian2d")){var n=e.getBaseAxis();if("category"!==n.type||!n.onBand){var r=t.getLayout("bandWidth");n.isHorizontal()?(i.x-=r,i.width+=2*r):(i.y-=r,i.height+=2*r)}}return i}(l,a);o.removeClipPath();var v=e.get("roundCap",!0),_=e.get("showBackground",!0),b=e.getModel("backgroundStyle"),S=b.get("borderRadius")||0,M=[],A=this._backgroundEls,I=n&&n.isInitSort,C=n&&"changeAxisOrder"===n.type;function T(e){var t,i,n,o=G[l.type](a,e),s=(t=l,i=r,n=o,new("polar"===t.type?m.C:f.Z)({shape:X(i,n,t),silent:!0,z2:0}));return s.useStyle(b.getItemStyle()),"cartesian2d"===l.type?s.setShape("r",S):s.setShape("cornerRadius",S),M[e]=s,s}a.diff(s).add(function(t){var i=a.getItemModel(t),n=G[l.type](a,t,i);if(_&&T(t),a.hasValue(t)&&E[l.type](n)){var s=!1;p&&(s=O[l.type](y,n));var d=P[l.type](e,a,t,n,r,c,u.model,!1,v);h&&(d.forceLabelAnimation=!0),H(d,a,t,i,n,e,r,"polar"===l.type),I?d.attr({shape:n}):h?R(h,c,d,n,t,r,!1,!1):(0,g.KZ)(d,{shape:n},e,t),a.setItemGraphicEl(t,d),o.add(d),d.ignore=s}}).update(function(t,i){var n=a.getItemModel(t),d=G[l.type](a,t,n);if(_){var f=void 0;0===A.length?f=T(i):((f=A[i]).useStyle(b.getItemStyle()),"cartesian2d"===l.type?f.setShape("r",S):f.setShape("cornerRadius",S),M[t]=f);var m=G[l.type](a,t),w=X(r,m,l);(0,g.D)(f,{shape:w},c,t)}var D=s.getItemGraphicEl(i);if(!a.hasValue(t)||!E[l.type](d)){o.remove(D);return}var Z=!1;if(p&&(Z=O[l.type](y,d))&&o.remove(D),D?(0,g.Zi)(D):D=P[l.type](e,a,t,d,r,c,u.model,!!D,v),h&&(D.forceLabelAnimation=!0),C){var L=D.getTextContent();if(L){var k=(0,x.qA)(L);null!=k.prevValue&&(k.prevValue=k.value)}}else H(D,a,t,n,d,e,r,"polar"===l.type);I?D.attr({shape:d}):h?R(h,c,D,d,t,r,!0,C):(0,g.D)(D,{shape:d},e,t,null),a.setItemGraphicEl(t,D),D.ignore=Z,o.add(D)}).remove(function(t){var i=s.getItemGraphicEl(t);i&&(0,g.XD)(i,e,t)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new d.Z);D.removeAll();for(var Z=0;Z<M.length;++Z)D.add(M[Z]);o.add(D),this._backgroundEls=M,this._data=a},t.prototype._renderLarge=function(e,t,i){this._clear(),U(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),U(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)&&(0,b.lQ)(e.coordinateSystem,!1,e),i=this.group;t?i.setClipPath(t):i.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,i){var n=this;if(t.count()){var r=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,i),this._isFirstFrame=!1;else{var o=function(e){var i=t.getItemGraphicEl(e),n=i&&i.shape;return n&&Math.abs(r.isHorizontal()?n.height:n.width)||0};this._onRendered=function(){n._updateSortWithinSameData(t,o,r,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,i){var r=[];return e.each(e.mapDimension(t.dim),function(e,t){var n=i(t);n=null==n?NaN:n,r.push({dataIndex:t,mappedValue:n,ordinalNumber:e})}),r.sort(function(e,t){return t.mappedValue-e.mappedValue}),{ordinalNumbers:(0,n.map)(r,function(e){return e.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,t,i){for(var n=i.scale,r=e.mapDimension(i.dim),o=Number.MAX_VALUE,a=0,s=n.getOrdinalMeta().categories.length;a<s;++a){var l=e.rawIndexOf(r,n.getRawOrdinalNumber(a)),u=l<0?Number.MIN_VALUE:t(e.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var i=t.scale,n=i.getExtent(),r=Math.max(0,n[0]),o=Math.min(n[1],i.getOrdinalMeta().categories.length-1);r<=o;++r)if(e.ordinalNumbers[r]!==i.getRawOrdinalNumber(r))return!0},t.prototype._updateSortWithinSameData=function(e,t,i,n){if(this._isOrderChangedWithinSameData(e,t,i)){var r=this._dataSort(e,i,t);this._isOrderDifferentInView(r,i)&&(this._removeOnRenderedListener(n),n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:r}))}},t.prototype._dispatchInitSort=function(e,t,i){var n=t.baseAxis,r=this._dataSort(e,n,function(i){return e.get(e.mapDimension(t.otherAxis.dim),i)});i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.index,sortInfo:r})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,i=this._data;e&&e.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(t){(0,g.XD)(t,e,(0,y.A)(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(M.Z),O={cartesian2d:function(e,t){var i=t.width<0?-1:1,n=t.height<0?-1:1;i<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var r=e.x+e.width,o=e.y+e.height,a=Z(t.x,e.x),s=L(t.x+t.width,r),l=Z(t.y,e.y),u=L(t.y+t.height,o),c=s<a,h=u<l;return t.x=c&&a>r?s:a,t.y=h&&l>o?u:l,t.width=c?0:s-a,t.height=h?0:u-l,i<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||h},polar:function(e,t){var i=t.r0<=t.r?1:-1;if(i<0){var n=t.r;t.r=t.r0,t.r0=n}var r=L(t.r,e.r),o=Z(t.r0,e.r0);t.r=r,t.r0=o;var a=r-o<0;if(i<0){var n=t.r;t.r=t.r0,t.r0=n}return a}},P={cartesian2d:function(e,t,i,r,o,a,s,l,u){var c=new f.Z({shape:(0,n.extend)({},r),z2:1});return c.__dataIndex=i,c.name="item",a&&(c.shape[o?"height":"width"]=0),c},polar:function(e,t,i,n,r,o,a,s,l){var u,c,h=!r&&l?S.Z:m.C,d=new h({shape:n,z2:1});d.name="item";var p=B(r);if(d.calculateTextPosition=(c=({isRoundCap:h===S.Z}).isRoundCap,function(e,t,i){var n=t.position;if(!n||n instanceof Array)return(0,I.wI)(e,t,i);var r=p(n),o=null!=t.distance?t.distance:5,a=this.shape,s=a.cx,l=a.cy,u=a.r,h=a.r0,d=(u+h)/2,g=a.startAngle,f=a.endAngle,m=(g+f)/2,y=c?Math.abs(u-h)/2:0,v=Math.cos,x=Math.sin,_=s+u*v(g),b=l+u*x(g),S="left",M="top";switch(r){case"startArc":_=s+(h-o)*v(m),b=l+(h-o)*x(m),S="center",M="top";break;case"insideStartArc":_=s+(h+o)*v(m),b=l+(h+o)*x(m),S="center",M="bottom";break;case"startAngle":_=s+d*v(g)+C(g,o+y,!1),b=l+d*x(g)+T(g,o+y,!1),S="right",M="middle";break;case"insideStartAngle":_=s+d*v(g)+C(g,-o+y,!1),b=l+d*x(g)+T(g,-o+y,!1),S="left",M="middle";break;case"middle":_=s+d*v(m),b=l+d*x(m),S="center",M="middle";break;case"endArc":_=s+(u+o)*v(m),b=l+(u+o)*x(m),S="center",M="bottom";break;case"insideEndArc":_=s+(u-o)*v(m),b=l+(u-o)*x(m),S="center",M="top";break;case"endAngle":_=s+d*v(f)+C(f,o+y,!0),b=l+d*x(f)+T(f,o+y,!0),S="left",M="middle";break;case"insideEndAngle":_=s+d*v(f)+C(f,-o+y,!0),b=l+d*x(f)+T(f,-o+y,!0),S="right",M="middle";break;default:return(0,I.wI)(e,t,i)}return(e=e||{}).x=_,e.y=b,e.align=S,e.verticalAlign=M,e}),o){var f=d.shape,y=r?"r":"endAngle",v={};f[y]=r?n.r0:n.startAngle,v[y]=n[y],(s?g.D:g.KZ)(d,{shape:v},o)}return d}};function R(e,t,i,n,r,o,a,s){o?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(a?g.D:g.KZ)(i,{shape:l},t,r,null);var l,u,c=t?e.baseAxis.model:null;(a?g.D:g.KZ)(i,{shape:u},c,r)}function V(e,t){for(var i=0;i<t.length;i++)if(!isFinite(e[t[i]]))return!0;return!1}var N=["x","y","width","height"],z=["cx","cy","r","startAngle","endAngle"],E={cartesian2d:function(e){return!V(e,N)},polar:function(e){return!V(e,z)}},G={cartesian2d:function(e,t,i){var n,r,o,a=e.getItemLayout(t),s=i?(n=i,r=a,(o=n.get(["itemStyle","borderColor"]))&&"none"!==o?Math.min(n.get(["itemStyle","borderWidth"])||0,isNaN(r.width)?Number.MAX_VALUE:Math.abs(r.width),isNaN(r.height)?Number.MAX_VALUE:Math.abs(r.height)):0):0,l=a.width>0?1:-1,u=a.height>0?1:-1;return{x:a.x+l*s/2,y:a.y+u*s/2,width:a.width-l*s,height:a.height-u*s}},polar:function(e,t,i){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function B(e){var t;return t=e?"Arc":"Angle",function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}function H(e,t,i,r,o,a,s,l){var u=t.getItemVisual(i,"style");if(l){if(!a.get("roundCap")){var c=e.shape,h=(0,D.T)(r.getModel("itemStyle"),c,!0);(0,n.extend)(c,h),e.setShape(c)}}else{var d=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",d)}e.useStyle(u);var p=r.getShallow("cursor");p&&e.attr("cursor",p);var g=l?s?o.r>=o.r0?"endArc":"startArc":o.endAngle>=o.startAngle?"endAngle":"startAngle":s?o.height>=0?"bottom":"top":o.width>=0?"right":"left",f=(0,x.k3)(r);(0,x.ni)(e,f,{labelFetcher:a,labelDataIndex:i,defaultText:(0,A.H)(a.getData(),i),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:g});var m=e.getTextContent();if(l&&m){var y=r.get(["label","position"]);e.textConfig.inside="middle"===y||null,function(e,t,i,r){if((0,n.isNumber)(r)){e.setTextConfig({rotation:r});return}if((0,n.isArray)(t)){e.setTextConfig({rotation:0});return}var o,a=e.shape,s=a.clockwise?a.startAngle:a.endAngle,l=a.clockwise?a.endAngle:a.startAngle,u=i(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":o=(s+l)/2;break;case"startAngle":case"insideStartAngle":o=s;break;case"endAngle":case"insideEndAngle":o=l;break;default:e.setTextConfig({rotation:0});return}var c=1.5*Math.PI-o;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),e.setTextConfig({rotation:c})}(e,"outside"===y?g:y,B(s),r.get(["label","rotate"]))}(0,x.pe)(m,f,a.getRawValue(i),function(e){return(0,A.O)(t,e)});var _=r.getModel(["emphasis"]);(0,v.k5)(e,_.get("focus"),_.get("blurScope"),_.get("disabled")),(0,v.WO)(e,r),null!=o.startAngle&&null!=o.endAngle&&o.startAngle===o.endAngle&&(e.style.fill="none",e.style.stroke="none",(0,n.each)(e.states,function(e){e.style&&(e.style.fill=e.style.stroke="none")}))}var W=function(){},F=function(e){function t(t){var i=e.call(this,t)||this;return i.type="largeBar",i}return(0,a.ZT)(t,e),t.prototype.getDefaultShape=function(){return new W},t.prototype.buildPath=function(e,t){for(var i=t.points,n=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<i.length;l+=3)a[n]=s,a[r]=i[l+2],o[n]=i[l+n],o[r]=i[l+r],e.rect(o[0],o[1],a[0],a[1])},t}(h.ZP);function U(e,t,i,n){var r=e.getData(),o=+!!r.getLayout("valueAxisHorizontal"),a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=e.getModel("backgroundStyle"),u=r.getLayout("largeBackgroundPoints");if(u){var c=new F({shape:{points:u},incremental:!!n,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),i&&i.push(c)}var h=new F({shape:{points:r.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,t.add(h),h.useStyle(r.getVisual("style")),(0,y.A)(h).seriesIndex=e.seriesIndex,e.get("silent")||(h.on("mousedown",Y),h.on("mousemove",Y)),i&&i.push(h)}var Y=(0,_.P2)(function(e){var t=function(e,t,i){for(var n=e.baseDimIdx,r=1-n,o=e.shape.points,a=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,h=o.length/3;c<h;c++){var d=3*c;if(l[n]=u,l[r]=o[d+2],s[n]=o[d+n],s[r]=o[d+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),t>=s[0]&&t<=s[0]+l[0]&&i>=s[1]&&i<=s[1]+l[1])return a[c]}return -1}(this,e.offsetX,e.offsetY);(0,y.A)(this).dataIndex=t>=0?t:null},30,!1);function X(e,t,i){if((0,w.H)(i,"cartesian2d")){var n=i.getArea();return{x:e?t.x:n.x,y:e?n.y:t.y,width:e?t.width:n.width,height:e?n.height:t.height}}var n=i.getArea();return{cx:n.cx,cy:n.cy,r0:e?n.r0:t.r0,r:e?n.r:t.r,startAngle:e?t.startAngle:0,endAngle:e?t.endAngle:2*Math.PI}}function K(e){e.registerChartView(k),e.registerSeriesModel(c),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,n.curry(r.bK,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,(0,r.Bk)("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(0,o.Z)("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})})}},78846:function(e,t,i){i.d(t,{N:()=>I});var n=i(69988),r=i(7185),o=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},a=function(e){function t(t){var i=e.call(this,t)||this;return i.type="pointer",i}return(0,n.ZT)(t,e),t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){var i=Math.cos,n=Math.sin,r=t.r,o=t.width,a=t.angle,s=t.x-i(a)*o*(o>=r/3?1:2),l=t.y-n(a)*o*(o>=r/3?1:2);a=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+i(a)*o,t.y+n(a)*o),e.lineTo(t.x+i(t.angle)*r,t.y+n(t.angle)*r),e.lineTo(t.x-i(a)*o,t.y-n(a)*o),e.lineTo(s,l)},t}(r.ZP),s=i(53511),l=i(72859),u=i(76150),c=i(99858),h=i(37293),d=i(98306),p=i(33361),g=i(58050),f=i(82517),m=i(2699),y=i(5965),v=i(63287),x=i(67975),_=i(10428),b=i(97694);function S(e,t){var i=null==e?"":e+"";return t&&((0,x.isString)(t)?i=t.replace("{value}",i):(0,x.isFunction)(t)&&(i=t(e))),i}var M=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.ZT)(t,e),t.prototype.render=function(e,t,i){this.group.removeAll();var n,r,o=e.get(["axisLine","lineStyle","color"]),a=(n=e.get("center"),r=Math.min(i.getWidth(),i.getHeight()),{cx:(0,f.GM)(n[0],i.getWidth()),cy:(0,f.GM)(n[1],i.getHeight()),r:(0,f.GM)(e.get("radius"),r/2)});this._renderMain(e,t,i,o,a),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,i,n,r){var o=this.group,a=e.get("clockwise"),l=-e.get("startAngle")/180*Math.PI,u=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),h=c.get("roundCap")?m.Z:s.C,d=c.get("show"),p=c.getModel("lineStyle"),g=p.get("width"),f=[l,u];(0,b.L)(f,!a),l=f[0];for(var y=(u=f[1])-l,v=l,_=[],S=0;d&&S<n.length;S++){var M=new h({shape:{startAngle:v,endAngle:u=l+y*Math.min(Math.max(n[S][0],0),1),cx:r.cx,cy:r.cy,clockwise:a,r0:r.r-g,r:r.r},silent:!0});M.setStyle({fill:n[S][1]}),M.setStyle(p.getLineStyle(["color","width"])),_.push(M),v=u}_.reverse(),(0,x.each)(_,function(e){return o.add(e)});var w=function(e){var t;if(e<=0)return n[0][1];for(t=0;t<n.length;t++)if(n[t][0]>=e&&(0===t?0:n[t-1][0])<e)return n[t][1];return n[t-1][1]};this._renderTicks(e,t,i,w,r,l,u,a,g),this._renderTitleAndDetail(e,t,i,w,r),this._renderAnchor(e,r),this._renderPointer(e,t,i,w,r,l,u,a,g)},t.prototype._renderTicks=function(e,t,i,n,r,o,a,s,c){for(var h,d,g=this.group,m=r.cx,y=r.cy,v=r.r,_=+e.get("min"),b=+e.get("max"),M=e.getModel("splitLine"),w=e.getModel("axisTick"),A=e.getModel("axisLabel"),I=e.get("splitNumber"),C=w.get("splitNumber"),T=(0,f.GM)(M.get("length"),v),D=(0,f.GM)(w.get("length"),v),Z=o,L=(a-o)/I,k=L/C,O=M.getModel("lineStyle").getLineStyle(),P=w.getModel("lineStyle").getLineStyle(),R=M.get("distance"),V=0;V<=I;V++){if(h=Math.cos(Z),d=Math.sin(Z),M.get("show")){var N=R?R+c:c,z=new l.Z({shape:{x1:h*(v-N)+m,y1:d*(v-N)+y,x2:h*(v-T-N)+m,y2:d*(v-T-N)+y},style:O,silent:!0});"auto"===O.stroke&&z.setStyle({stroke:n(V/I)}),g.add(z)}if(A.get("show")){var N=A.get("distance")+R,E=S((0,f.NM)(V/I*(b-_)+_),A.get("formatter")),G=n(V/I),B=h*(v-T-N)+m,H=d*(v-T-N)+y,W=A.get("rotate"),F=0;"radial"===W?(F=-Z+2*Math.PI)>Math.PI/2&&(F+=Math.PI):"tangential"===W?F=-Z-Math.PI/2:(0,x.isNumber)(W)&&(F=W*Math.PI/180),0===F?g.add(new u.ZP({style:(0,p.Lr)(A,{text:E,x:B,y:H,verticalAlign:d<-.8?"top":d>.8?"bottom":"middle",align:h<-.4?"left":h>.4?"right":"center"},{inheritColor:G}),silent:!0})):g.add(new u.ZP({style:(0,p.Lr)(A,{text:E,x:B,y:H,verticalAlign:"middle",align:"center"},{inheritColor:G}),silent:!0,originX:B,originY:H,rotation:F}))}if(w.get("show")&&V!==I){var N=w.get("distance");N=N?N+c:c;for(var U=0;U<=C;U++){h=Math.cos(Z),d=Math.sin(Z);var Y=new l.Z({shape:{x1:h*(v-N)+m,y1:d*(v-N)+y,x2:h*(v-D-N)+m,y2:d*(v-D-N)+y},silent:!0,style:P});"auto"===P.stroke&&Y.setStyle({stroke:n((V+U/C)/I)}),g.add(Y),Z+=k}Z-=k}else Z+=L}},t.prototype._renderPointer=function(e,t,i,n,r,o,l,u,h){var p=this.group,g=this._data,b=this._progressEls,S=[],M=e.get(["pointer","show"]),w=e.getModel("progress"),A=w.get("show"),I=e.getData(),C=I.mapDimension("value"),T=+e.get("min"),D=+e.get("max"),Z=[T,D],L=[o,l];function k(t,i){var n,o=I.getItemModel(t).getModel("pointer"),s=(0,f.GM)(o.get("width"),r.r),l=(0,f.GM)(o.get("length"),r.r),u=e.get(["pointer","icon"]),c=o.get("offsetCenter"),h=(0,f.GM)(c[0],r.r),d=(0,f.GM)(c[1],r.r),p=o.get("keepAspect");return(n=u?(0,y.th)(u,h-s/2,d-l,s,l,null,p):new a({shape:{angle:-Math.PI/2,width:s,r:l,x:h,y:d}})).rotation=-(i+Math.PI/2),n.x=r.cx,n.y=r.cy,n}function O(e,t){var i=w.get("roundCap")?m.Z:s.C,n=w.get("overlap"),a=n?w.get("width"):h/I.count(),l=n?r.r-a:r.r-(e+1)*a,c=n?r.r:r.r-e*a,d=new i({shape:{startAngle:o,endAngle:t,cx:r.cx,cy:r.cy,clockwise:u,r0:l,r:c}});return n&&(d.z2=D-I.get(C,e)%D),d}(A||M)&&(I.diff(g).add(function(t){var i=I.get(C,t);if(M){var n=k(t,o);c.KZ(n,{rotation:-((isNaN(+i)?L[0]:(0,f.NU)(i,Z,L,!0))+Math.PI/2)},e),p.add(n),I.setItemGraphicEl(t,n)}if(A){var r=O(t,o),a=w.get("clip");c.KZ(r,{shape:{endAngle:(0,f.NU)(i,Z,L,a)}},e),p.add(r),(0,_.Q)(e.seriesIndex,I.dataType,t,r),S[t]=r}}).update(function(t,i){var n=I.get(C,t);if(M){var r=g.getItemGraphicEl(i),a=r?r.rotation:o,s=k(t,a);s.rotation=a,c.D(s,{rotation:-((isNaN(+n)?L[0]:(0,f.NU)(n,Z,L,!0))+Math.PI/2)},e),p.add(s),I.setItemGraphicEl(t,s)}if(A){var l=b[i],u=O(t,l?l.shape.endAngle:o),h=w.get("clip");c.D(u,{shape:{endAngle:(0,f.NU)(n,Z,L,h)}},e),p.add(u),(0,_.Q)(e.seriesIndex,I.dataType,t,u),S[t]=u}}).execute(),I.each(function(e){var t=I.getItemModel(e),i=t.getModel("emphasis"),r=i.get("focus"),o=i.get("blurScope"),a=i.get("disabled");if(M){var s=I.getItemGraphicEl(e),l=I.getItemVisual(e,"style"),u=l.fill;if(s instanceof v.ZP){var c=s.style;s.useStyle((0,x.extend)({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",n((0,f.NU)(I.get(C,e),Z,[0,1],!0))),s.z2EmphasisLift=0,(0,d.WO)(s,t),(0,d.k5)(s,r,o,a)}if(A){var h=S[e];h.useStyle(I.getItemVisual(e,"style")),h.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),h.z2EmphasisLift=0,(0,d.WO)(h,t),(0,d.k5)(h,r,o,a)}}),this._progressEls=S)},t.prototype._renderAnchor=function(e,t){var i=e.getModel("anchor");if(i.get("show")){var n=i.get("size"),r=i.get("icon"),o=i.get("offsetCenter"),a=i.get("keepAspect"),s=(0,y.th)(r,t.cx-n/2+(0,f.GM)(o[0],t.r),t.cy-n/2+(0,f.GM)(o[1],t.r),n,n,null,a);s.z2=+!!i.get("showAbove"),s.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(s)}},t.prototype._renderTitleAndDetail=function(e,t,i,n,r){var o=this,a=e.getData(),s=a.mapDimension("value"),l=+e.get("min"),c=+e.get("max"),d=new h.Z,g=[],m=[],y=e.isAnimationEnabled(),v=e.get(["pointer","showAbove"]);a.diff(this._data).add(function(e){g[e]=new u.ZP({silent:!0}),m[e]=new u.ZP({silent:!0})}).update(function(e,t){g[e]=o._titleEls[t],m[e]=o._detailEls[t]}).execute(),a.each(function(t){var i=a.getItemModel(t),o=a.get(s,t),u=new h.Z,x=n((0,f.NU)(o,[l,c],[0,1],!0)),_=i.getModel("title");if(_.get("show")){var b=_.get("offsetCenter"),M=r.cx+(0,f.GM)(b[0],r.r),w=r.cy+(0,f.GM)(b[1],r.r),A=g[t];A.attr({z2:2*!v,style:(0,p.Lr)(_,{x:M,y:w,text:a.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:x})}),u.add(A)}var I=i.getModel("detail");if(I.get("show")){var C=I.get("offsetCenter"),T=r.cx+(0,f.GM)(C[0],r.r),D=r.cy+(0,f.GM)(C[1],r.r),Z=(0,f.GM)(I.get("width"),r.r),L=(0,f.GM)(I.get("height"),r.r),k=e.get(["progress","show"])?a.getItemVisual(t,"style").fill:x,A=m[t],O=I.get("formatter");A.attr({z2:2*!v,style:(0,p.Lr)(I,{x:T,y:D,text:S(o,O),width:isNaN(Z)?null:Z,height:isNaN(L)?null:L,align:"center",verticalAlign:"middle"},{inheritColor:k})}),(0,p.pe)(A,{normal:I},o,function(e){return S(e,O)}),y&&(0,p.tD)(A,t,a,e,{getFormattedLabel:function(e,t,i,n,r,a){return S(a?a.interpolatedValue:o,O)}}),u.add(A)}d.add(u)}),this.group.add(d),this._titleEls=g,this._detailEls=m},t.type="gauge",t}(g.Z),w=i(78939),A=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i.visualStyleAccessPath="itemStyle",i}return(0,n.ZT)(t,e),t.prototype.getInitialData=function(e,t){return(0,w.Z)(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(i(2021).Z);function I(e){e.registerChartView(M),e.registerSeriesModel(A)}},27835:function(e,t,i){i.d(t,{N:()=>_});var n=i(69988),r=i(29790),o=i(31969),a=i(63287),s=i(98306),l=i(49906),u=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=l.qW.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,i,n,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),d=e.length;c.width=t,c.height=i;for(var p=0;p<d;++p){var g=e[p],f=g[0],m=g[1],y=n(g[2]);h.globalAlpha=y,h.drawImage(a,f-u,m-u)}if(!c.width||!c.height)return c;for(var v=h.getImageData(0,0,c.width,c.height),x=v.data,_=0,b=x.length,S=this.minOpacity,M=this.maxOpacity-S;_<b;){var y=x[_+3]/256,w=4*Math.floor(255*y);if(y>0){var A=o(y)?s:l;y>0&&(y=y*M+S),x[_++]=A[w],x[_++]=A[w+1],x[_++]=A[w+2],x[_++]=A[w+3]*y*256}else _+=4}return h.putImageData(v,0,0),c},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=l.qW.createCanvas()),t=this.pointSize+this.blurSize,i=2*t;e.width=i,e.height=i;var n=e.getContext("2d");return n.clearRect(0,0,i,i),n.shadowOffsetX=i,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-t,t,this.pointSize,0,2*Math.PI,!0),n.closePath(),n.fill(),e},e.prototype._getGradient=function(e,t){for(var i=this._gradientPixels,n=i[t]||(i[t]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)e[t](a/255,!0,r),n[o++]=r[0],n[o++]=r[1],n[o++]=r[2],n[o++]=r[3];return n},e}(),c=i(67975),h=i(58050),d=i(82667),p=i(33361);function g(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var f=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.ZT)(t,e),t.prototype.render=function(e,t,i){t.eachComponent("visualMap",function(t){t.eachTargetSeries(function(i){i===e&&(n=t)})}),this._progressiveEls=null,this.group.removeAll();var n,r=e.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(e,i,0,e.getData().count()):g(r)&&this._renderOnGeo(r,e,n,i)},t.prototype.incrementalPrepareRender=function(e,t,i){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,i,n){var r=t.coordinateSystem;r&&(g(r)?this.render(t,i,n):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,n,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){r.traverseElements(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,i,n,r){var a,l,u,c,h=e.coordinateSystem,g=(0,d.H)(h,"cartesian2d");if(g){var f=h.getAxis("x"),m=h.getAxis("y");a=f.getBandWidth()+.5,l=m.getBandWidth()+.5,u=f.scale.getExtent(),c=m.scale.getExtent()}for(var y=this.group,v=e.getData(),x=e.getModel(["emphasis","itemStyle"]).getItemStyle(),_=e.getModel(["blur","itemStyle"]).getItemStyle(),b=e.getModel(["select","itemStyle"]).getItemStyle(),S=e.get(["itemStyle","borderRadius"]),M=(0,p.k3)(e),w=e.getModel("emphasis"),A=w.get("focus"),I=w.get("blurScope"),C=w.get("disabled"),T=g?[v.mapDimension("x"),v.mapDimension("y"),v.mapDimension("value")]:[v.mapDimension("time"),v.mapDimension("value")],D=i;D<n;D++){var Z=void 0,L=v.getItemVisual(D,"style");if(g){var k=v.get(T[0],D),O=v.get(T[1],D);if(isNaN(v.get(T[2],D))||isNaN(k)||isNaN(O)||k<u[0]||k>u[1]||O<c[0]||O>c[1])continue;var P=h.dataToPoint([k,O]);Z=new o.Z({shape:{x:P[0]-a/2,y:P[1]-l/2,width:a,height:l},style:L})}else{if(isNaN(v.get(T[1],D)))continue;Z=new o.Z({z2:1,shape:h.dataToRect([v.get(T[0],D)]).contentShape,style:L})}if(v.hasItemOption){var R=v.getItemModel(D),V=R.getModel("emphasis");x=V.getModel("itemStyle").getItemStyle(),_=R.getModel(["blur","itemStyle"]).getItemStyle(),b=R.getModel(["select","itemStyle"]).getItemStyle(),S=R.get(["itemStyle","borderRadius"]),A=V.get("focus"),I=V.get("blurScope"),C=V.get("disabled"),M=(0,p.k3)(R)}Z.shape.r=S;var N=e.getRawValue(D),z="-";N&&null!=N[2]&&(z=N[2]+""),(0,p.ni)(Z,M,{labelFetcher:e,labelDataIndex:D,defaultOpacity:L.opacity,defaultText:z}),Z.ensureState("emphasis").style=x,Z.ensureState("blur").style=_,Z.ensureState("select").style=b,(0,s.k5)(Z,A,I,C),Z.incremental=r,r&&(Z.states.emphasis.hoverLayer=!0),y.add(Z),v.setItemGraphicEl(D,Z),this._progressiveEls&&this._progressiveEls.push(Z)}},t.prototype._renderOnGeo=function(e,t,i,n){var r,o,s,l,h,d,p,g=i.targetVisuals.inRange,f=i.targetVisuals.outOfRange,m=t.getData(),y=this._hmLayer||this._hmLayer||new u;y.blurSize=t.get("blurSize"),y.pointSize=t.get("pointSize"),y.minOpacity=t.get("minOpacity"),y.maxOpacity=t.get("maxOpacity");var v=e.getViewRect().clone(),x=e.getRoamTransform();v.applyTransform(x);var _=Math.max(v.x,0),b=Math.max(v.y,0),S=Math.min(v.width+v.x,n.getWidth()),M=Math.min(v.height+v.y,n.getHeight()),w=S-_,A=M-b,I=[m.mapDimension("lng"),m.mapDimension("lat"),m.mapDimension("value")],C=m.mapArray(I,function(t,i,n){var r=e.dataToPoint([t,i]);return r[0]-=_,r[1]-=b,r.push(n),r}),T=i.getExtent(),D="visualMap.continuous"===i.type?(r=i.option.range,o=T[1]-T[0],r=[(r[0]-T[0])/o,(r[1]-T[0])/o],function(e){return e>=r[0]&&e<=r[1]}):(s=i.getPieceList(),l=i.option.selected,h=T[1]-T[0],d=(s=c.map(s,function(e){return{interval:[(e.interval[0]-T[0])/h,(e.interval[1]-T[0])/h]}})).length,p=0,function(e){var t;for(t=p;t<d;t++){var i=s[t].interval;if(i[0]<=e&&e<=i[1]){p=t;break}}if(t===d)for(t=p-1;t>=0;t--){var i=s[t].interval;if(i[0]<=e&&e<=i[1]){p=t;break}}return t>=0&&t<d&&l[t]});y.update(C,w,A,g.color.getNormalizer(),{inRange:g.color.getColorMapper(),outOfRange:f.color.getColorMapper()},D);var Z=new a.ZP({style:{width:w,height:A,x:_,y:b,image:y.canvas},silent:!0});this.group.add(Z)},t.type="heatmap",t}(h.Z),m=i(2021),y=i(30984),v=i(49801),x=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.ZT)(t,e),t.prototype.getInitialData=function(e,t){return(0,y.Z)(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=v.Z.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(m.Z);function _(e){e.registerChartView(f),e.registerSeriesModel(x)}},2215:function(e,t,i){i.d(t,{Z:()=>A});var n=i(69988),r=i(67975),o=i(77605),a=i(5965),s=i(72859),l=i(20121),u=i(7185),c=s.Z.prototype,h=l.Z.prototype,d=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};function p(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}(0,n.ZT)(function(){return null!==d&&d.apply(this,arguments)||this},d);var g=function(e){function t(t){var i=e.call(this,t)||this;return i.type="ec-line",i}return(0,n.ZT)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new d},t.prototype.buildPath=function(e,t){p(t)?c.buildPath.call(this,e,t):h.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return p(this.shape)?c.pointAt.call(this,e):h.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,i=p(t)?[t.x2-t.x1,t.y2-t.y1]:h.tangentAt.call(this,e);return o.normalize(i,i)},t}(u.ZP),f=i(99858),m=i(37293),y=i(98306),v=i(33361),x=i(82517),_=["fromSymbol","toSymbol"];function b(e){return"_"+e+"Type"}function S(e,t,i){var n=t.getItemVisual(i,e);if(!n||"none"===n)return n;var r=t.getItemVisual(i,e+"Size"),o=t.getItemVisual(i,e+"Rotate"),s=t.getItemVisual(i,e+"Offset"),l=t.getItemVisual(i,e+"KeepAspect"),u=a.zp(r),c=a.Cq(s||0,u);return n+u+c+(o||"")+(l||"")}function M(e,t,i){var n=t.getItemVisual(i,e);if(n&&"none"!==n){var r=t.getItemVisual(i,e+"Size"),o=t.getItemVisual(i,e+"Rotate"),s=t.getItemVisual(i,e+"Offset"),l=t.getItemVisual(i,e+"KeepAspect"),u=a.zp(r),c=a.Cq(s||0,u),h=a.th(n,-u[0]/2+c[0],-u[1]/2+c[1],u[0],u[1],null,l);return h.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,h.name=e,h}}function w(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var i=t[2];i?(e.cpx1=i[0],e.cpy1=i[1]):(e.cpx1=NaN,e.cpy1=NaN)}let A=function(e){function t(t,i,n){var r=e.call(this)||this;return r._createLine(t,i,n),r}return(0,n.ZT)(t,e),t.prototype._createLine=function(e,t,i){var n,o,a=e.hostModel,s=(n=e.getItemLayout(t),w((o=new g({name:"line",subPixelOptimize:!0})).shape,n),o);s.shape.percent=0,f.KZ(s,{shape:{percent:1}},a,t),this.add(s),(0,r.each)(_,function(i){var n=M(i,e,t);this.add(n),this[b(i)]=S(i,e,t)},this),this._updateCommonStl(e,t,i)},t.prototype.updateData=function(e,t,i){var n=e.hostModel,o=this.childOfName("line"),a=e.getItemLayout(t),s={shape:{}};w(s.shape,a),f.D(o,s,n,t),(0,r.each)(_,function(i){var n=S(i,e,t),r=b(i);if(this[r]!==n){this.remove(this.childOfName(i));var o=M(i,e,t);this.add(o)}this[r]=n},this),this._updateCommonStl(e,t,i)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,i){var n=e.hostModel,o=this.childOfName("line"),a=i&&i.emphasisLineStyle,s=i&&i.blurLineStyle,l=i&&i.selectLineStyle,u=i&&i.labelStatesModels,c=i&&i.emphasisDisabled,h=i&&i.focus,d=i&&i.blurScope;if(!i||e.hasItemOption){var p=e.getItemModel(t),g=p.getModel("emphasis");a=g.getModel("lineStyle").getLineStyle(),s=p.getModel(["blur","lineStyle"]).getLineStyle(),l=p.getModel(["select","lineStyle"]).getLineStyle(),c=g.get("disabled"),h=g.get("focus"),d=g.get("blurScope"),u=(0,v.k3)(p)}var f=e.getItemVisual(t,"style"),m=f.stroke;o.useStyle(f),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=a,o.ensureState("blur").style=s,o.ensureState("select").style=l,(0,r.each)(_,function(e){var t=this.childOfName(e);if(t){t.setColor(m),t.style.opacity=f.opacity;for(var i=0;i<y.L1.length;i++){var n=y.L1[i],r=o.getState(n);if(r){var a=r.style||{},s=t.ensureState(n),l=s.style||(s.style={});null!=a.stroke&&(l[t.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}t.markRedraw()}},this);var b=n.getRawValue(t);(0,v.ni)(this,u,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,i){return n.getFormattedLabel(t,i,e.dataType)}},inheritColor:m||"#000",defaultOpacity:f.opacity,defaultText:(null==b?e.getName(t):isFinite(b)?(0,x.NM)(b):b)+""});var S=this.getTextContent();if(S){var M=u.normal;S.__align=S.style.align,S.__verticalAlign=S.style.verticalAlign,S.__position=M.get("position")||"middle";var w=M.get("distance");(0,r.isArray)(w)||(w=[w,w]),S.__labelDistance=w}this.setTextConfig({position:null,local:!0,inside:!1}),(0,y.k5)(this,h,d,c)},t.prototype.highlight=function(){(0,y.fD)(this)},t.prototype.downplay=function(){(0,y.Mh)(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName("line");w(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this.childOfName("fromSymbol"),t=this.childOfName("toSymbol"),i=this.getTextContent();if(e||t||i&&!i.ignore){for(var n=1,r=this.parent;r;)r.scaleX&&(n/=r.scaleX),r=r.parent;var a=this.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),u=a.pointAt(s),c=o.sub([],u,l);if(o.normalize(c,c),e&&(e.setPosition(l),M(e,0),e.scaleX=e.scaleY=n*s,e.markRedraw()),t&&(t.setPosition(u),M(t,1),t.scaleX=t.scaleY=n*s,t.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var h=void 0,d=void 0,p=i.__labelDistance,g=p[0]*n,f=p[1]*n,m=s/2,y=a.tangentAt(m),v=[y[1],-y[0]],x=a.pointAt(m);v[1]>0&&(v[0]=-v[0],v[1]=-v[1]);var _=y[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var b=-Math.atan2(y[1],y[0]);u[0]<l[0]&&(b=Math.PI+b),i.rotation=b}var S=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":S=-f,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":S=f,d="top";break;default:S=0,d="middle"}switch(i.__position){case"end":i.x=c[0]*g+u[0],i.y=c[1]*f+u[1],h=c[0]>.8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*g+l[0],i.y=-c[1]*f+l[1],h=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=g*_+l[0],i.y=l[1]+S,h=y[0]<0?"right":"left",i.originX=-g*_,i.originY=-S;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+S,h="center",i.originY=-S;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-g*_+u[0],i.y=u[1]+S,h=y[0]>=0?"right":"left",i.originX=g*_,i.originY=-S}i.scaleX=i.scaleY=n,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||h})}}}function M(e,t){var i=e.__specifiedRotation;if(null==i){var n=a.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(n[1],n[0]))}else e.attr("rotation",i)}},t}(m.Z)},9460:function(e,t,i){i.d(t,{Z:()=>c});var n=i(37293),r=i(29790),o=i(2215),a=i(33361);function s(e){var t=e.hostModel,i=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:i.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:i.get("disabled"),blurScope:i.get("blurScope"),focus:i.get("focus"),labelStatesModels:(0,a.k3)(t)}}function l(e){return isNaN(e[0])||isNaN(e[1])}function u(e){return e&&!l(e[0])&&!l(e[1])}let c=function(){function e(e){this.group=new n.Z,this._LineCtor=e||o.Z}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var i=this.group,n=this._lineData;this._lineData=e,n||i.removeAll();var r=s(e);e.diff(n).add(function(i){t._doAdd(e,i,r)}).update(function(i,o){t._doUpdate(n,e,o,i,r)}).remove(function(e){i.remove(n.getItemGraphicEl(e))}).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,i){t.updateLayout(e,i)},this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=s(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function i(e){var t;e.isGroup||(t=e).animators&&t.animators.length>0||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var n=e.start;n<e.end;n++)if(u(t.getItemLayout(n))){var r=new this._LineCtor(t,n,this._seriesScope);r.traverse(i),this.group.add(r),t.setItemGraphicEl(n,r),this._progressiveEls.push(r)}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){r.traverseElements(this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,i){if(u(e.getItemLayout(t))){var n=new this._LineCtor(e,t,i);e.setItemGraphicEl(t,n),this.group.add(n)}},e.prototype._doUpdate=function(e,t,i,n,r){var o=e.getItemGraphicEl(i);if(!u(t.getItemLayout(n))){this.group.remove(o);return}o?o.updateData(t,n,r):o=new this._LineCtor(t,n,r),t.setItemGraphicEl(n,o),this.group.add(o)},e}()},78939:function(e,t,i){i.d(t,{Z:()=>a});var n=i(56904),r=i(83208),o=i(67975);function a(e,t,i){t=(0,o.isArray)(t)&&{coordDimensions:t}||(0,o.extend)({encodeDefine:e.getEncode()},t);var a=e.getSource(),s=(0,n.Z)(a,t).dimensions,l=new r.Z(s,e);return l.initData(a,i),l}},10061:function(e,t,i){i.d(t,{T:()=>o});var n=i(67975),r=i(12666);function o(e,t,i){var o=e.get("borderRadius");if(null==o)return i?{cornerRadius:0}:null;(0,n.isArray)(o)||(o=[o,o,o,o]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:(0,n.map)(o,function(e){return(0,r.GM)(e,a)})}}},85731:function(e,t,i){i.d(t,{N:()=>E});var n=i(52914),r=i(82517),o=i(50651),a=i(67975),s=i(97694),l=2*Math.PI,u=Math.PI/180;function c(e,t){return o.ME(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function h(e,t){var i,n,o=c(e,t),s=e.get("center"),l=e.get("radius");a.isArray(l)||(l=[0,l]);var u=(0,r.GM)(o.width,t.getWidth()),h=(0,r.GM)(o.height,t.getHeight()),d=Math.min(u,h),p=(0,r.GM)(l[0],d/2),g=(0,r.GM)(l[1],d/2),f=e.coordinateSystem;if(f){var m=f.dataToPoint(s);i=m[0]||0,n=m[1]||0}else a.isArray(s)||(s=[s,s]),i=(0,r.GM)(s[0],u)+o.x,n=(0,r.GM)(s[1],h)+o.y;return{cx:i,cy:n,r0:p,r:g}}function d(e,t,i){t.eachSeriesByType(e,function(e){var t=e.getData(),n=t.mapDimension("value"),o=c(e,i),a=h(e,i),d=a.cx,p=a.cy,g=a.r,f=a.r0,m=-e.get("startAngle")*u,y=e.get("endAngle"),v=e.get("padAngle")*u;y="auto"===y?m-l:-y*u;var x=e.get("minAngle")*u+v,_=0;t.each(n,function(e){!isNaN(e)&&_++});var b=t.getSum(n),S=Math.PI/(b||_)*2,M=e.get("clockwise"),w=e.get("roseType"),A=e.get("stillShowZeroSum"),I=t.getDataExtent(n);I[0]=0;var C=M?1:-1,T=[m,y],D=C*v/2;(0,s.L)(T,!M),m=T[0];var Z=Math.abs((y=T[1])-m),L=Z,k=0,O=m;if(t.setLayout({viewRect:o,r:g}),t.each(n,function(e,i){if(isNaN(e)){t.setItemLayout(i,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:M,cx:d,cy:p,r0:f,r:w?NaN:g});return}(n="area"!==w?0===b&&A?S:e*S:Z/_)<x?(n=x,L-=x):k+=e;var n,o=O+C*n,a=0,s=0;v>n?s=a=O+C*n/2:(a=O+D,s=o-D),t.setItemLayout(i,{angle:n,startAngle:a,endAngle:s,clockwise:M,cx:d,cy:p,r0:f,r:w?(0,r.NU)(e,I,[f,g]):g}),O=o}),L<l&&_){if(L<=.001){var P=Z/_;t.each(n,function(e,i){if(!isNaN(e)){var n=t.getItemLayout(i);n.angle=P;var r=0,o=0;P<v?o=r=m+C*(i+.5)*P:(r=m+C*i*P+D,o=m+C*(i+1)*P-D),n.startAngle=r,n.endAngle=o}})}else S=L/k,O=m,t.each(n,function(e,i){if(!isNaN(e)){var n=t.getItemLayout(i),r=n.angle===x?x:e*S,o=0,a=0;r<v?a=o=O+C*r/2:(o=O+D,a=O+C*r-D),n.startAngle=o,n.endAngle=a,O+=C*r}})}})}var p=i(31260),g=i(69988),f=i(76150),m=i(99858),y=i(61099),v=i(53511),x=i(98306),_=i(58050),b=i(91145),S=i(9655),M=i(67285),w=Math.PI/180;function A(e,t,i,n,r,o,a,s,l,u){if(!(e.length<2)){for(var c=e.length,h=0;h<c;h++)if("outer"===e[h].position&&"labelLine"===e[h].labelAlignTo){var d=e[h].label.x-u;e[h].linePoints[1][0]+=d,e[h].label.x=u}(0,M.GI)(e,l,l+a)&&function(e){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<e.length;s++)if("none"===e[s].labelAlignTo){var l=e[s],u=l.label.y>i?a:o,c=Math.abs(l.label.y-i);if(c>=u.maxY){var h=l.label.x-t-l.len2*r,d=n+l.len,g=Math.abs(h)<d?Math.sqrt(c*c/(1-h*h/d/d)):d;u.rB=g,u.maxY=c}u.list.push(l)}p(o),p(a)}(e)}function p(e){for(var o=e.rB,a=o*o,s=0;s<e.list.length;s++){var l=e.list[s],u=Math.abs(l.label.y-i),c=n+l.len,h=t+(Math.sqrt(c*c*(1-Math.abs(u*u/a)))+l.len2)*r,d=h-l.label.x,p=l.targetTextWidth-d*r;I(l,p,!0),l.label.x=h}}}function I(e,t,i){if(void 0===i&&(i=!1),null==e.labelStyleWidth){var n=e.label,r=n.style,o=e.rect,a=r.backgroundColor,s=r.padding,l=s?s[1]+s[3]:0,u=r.overflow,c=o.width+(a?0:l);if(t<c||i){var h=o.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var d=n.getBoundingRect();n.setStyle("width",Math.ceil(d.width)),n.setStyle("backgroundColor",a)}else{var p=t-l,g=t<c?p:i?p>e.unconstrainedWidth?null:p:null;n.setStyle("width",g)}var f=n.getBoundingRect();o.width=f.width;var m=(n.style.margin||0)+2.1;o.height=f.height+m,o.y-=(o.height-h)/2}}}function C(e){return"center"===e.position}var T=i(33361),D=i(10061),Z=function(e){function t(t,i,n){var r=e.call(this)||this;r.z2=2;var o=new f.ZP;return r.setTextContent(o),r.updateData(t,i,n,!0),r}return(0,g.ZT)(t,e),t.prototype.updateData=function(e,t,i,n){var r=e.hostModel,o=e.getItemModel(t),s=o.getModel("emphasis"),l=e.getItemLayout(t),u=(0,a.extend)((0,D.T)(o.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle)){this.setShape(u);return}if(n){this.setShape(u);var c=r.getShallow("animationType");r.ecModel.ssr?(m.KZ(this,{scaleX:0,scaleY:0},r,{dataIndex:t,isFrom:!0}),this.originX=u.cx,this.originY=u.cy):"scale"===c?(this.shape.r=l.r0,m.KZ(this,{shape:{r:l.r}},r,t)):null!=i?(this.setShape({startAngle:i,endAngle:i}),m.KZ(this,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},r,t)):(this.shape.endAngle=l.startAngle,m.D(this,{shape:{endAngle:l.endAngle}},r,t))}else(0,m.Zi)(this),m.D(this,{shape:u},r,t);this.useStyle(e.getItemVisual(t,"style")),(0,x.WO)(this,o);var h=(l.startAngle+l.endAngle)/2,d=r.get("selectedOffset"),p=Math.cos(h)*d,g=Math.sin(h)*d,f=o.getShallow("cursor");f&&this.attr("cursor",f),this._updateLabel(r,e,t),this.ensureState("emphasis").shape=(0,a.extend)({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},(0,D.T)(s.getModel("itemStyle"),l)),(0,a.extend)(this.ensureState("select"),{x:p,y:g,shape:(0,D.T)(o.getModel(["select","itemStyle"]),l)}),(0,a.extend)(this.ensureState("blur"),{shape:(0,D.T)(o.getModel(["blur","itemStyle"]),l)});var y=this.getTextGuideLine(),v=this.getTextContent();y&&(0,a.extend)(y.ensureState("select"),{x:p,y:g}),(0,a.extend)(v.ensureState("select"),{x:p,y:g}),(0,x.k5)(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e,t,i){var n=t.getItemModel(i),r=n.getModel("labelLine"),o=t.getItemVisual(i,"style"),s=o&&o.fill,l=o&&o.opacity;(0,T.ni)(this,(0,T.k3)(n),{labelFetcher:t.hostModel,labelDataIndex:i,inheritColor:s,defaultOpacity:l,defaultText:e.getFormattedLabel(i,"normal")||t.getName(i)});var u=this.getTextContent();this.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=e.get(["label","position"]);if("outside"!==c&&"outer"!==c)this.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new y.Z,this.setTextGuideLine(h)),(0,S.Iu)(this,(0,S.$x)(n),{stroke:s,opacity:(0,a.retrieve3)(r.get(["lineStyle","opacity"]),l,1)})}},t}(v.C),L=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return(0,g.ZT)(t,e),t.prototype.render=function(e,t,i,n){var o,s=e.getData(),l=this._data,u=this.group;if(!l&&s.count()>0){for(var c=s.getItemLayout(0),d=1;isNaN(c&&c.startAngle)&&d<s.count();++d)c=s.getItemLayout(d);c&&(o=c.startAngle)}if(this._emptyCircleSector&&u.remove(this._emptyCircleSector),0===s.count()&&e.get("showEmptyCircle")){var p=new v.C({shape:h(e,i)});p.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=p,u.add(p)}s.diff(l).add(function(e){var t=new Z(s,e,o);s.setItemGraphicEl(e,t),u.add(t)}).update(function(e,t){var i=l.getItemGraphicEl(t);i.updateData(s,e,o),i.off("click"),u.add(i),s.setItemGraphicEl(e,i)}).remove(function(t){var i=l.getItemGraphicEl(t);m.XD(i,e,t)}).execute(),function(e){var t,i,n=e.getData(),o=[],s=!1,l=(e.get("minShowLabelAngle")||0)*w,u=n.getLayout("viewRect"),c=n.getLayout("r"),h=u.width,d=u.x,p=u.y,g=u.height;function f(e){e.ignore=!0}n.each(function(e){var u,p,g,m,y=n.getItemGraphicEl(e),v=y.shape,x=y.getTextContent(),_=y.getTextGuideLine(),S=n.getItemModel(e),M=S.getModel("label"),w=M.get("position")||S.get(["emphasis","label","position"]),A=M.get("distanceToLabelLine"),I=M.get("alignTo"),C=(0,r.GM)(M.get("edgeDistance"),h),T=M.get("bleedMargin"),D=S.getModel("labelLine"),Z=D.get("length");Z=(0,r.GM)(Z,h);var L=D.get("length2");if(L=(0,r.GM)(L,h),Math.abs(v.endAngle-v.startAngle)<l){(0,a.each)(x.states,f),x.ignore=!0,_&&((0,a.each)(_.states,f),_.ignore=!0);return}if(function(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}(x)){var k=(v.startAngle+v.endAngle)/2,O=Math.cos(k),P=Math.sin(k);t=v.cx,i=v.cy;var R="inside"===w||"inner"===w;if("center"===w)u=v.cx,p=v.cy,m="center";else{var V=(R?(v.r+v.r0)/2*O:v.r*O)+t,N=(R?(v.r+v.r0)/2*P:v.r*P)+i;if(u=V+3*O,p=N+3*P,!R){var z=V+O*(Z+c-v.r),E=N+P*(Z+c-v.r),G=z+(O<0?-1:1)*L;u="edge"===I?O<0?d+C:d+h-C:G+(O<0?-A:A),p=E,g=[[V,N],[z,E],[G,E]]}m=R?"center":"edge"===I?O>0?"right":"left":O>0?"left":"right"}var B=Math.PI,H=0,W=M.get("rotate");if((0,a.isNumber)(W))H=B/180*W;else if("center"===w)H=0;else if("radial"===W||!0===W)H=O<0?-k+B:-k;else if("tangential"===W&&"outside"!==w&&"outer"!==w){var F=Math.atan2(O,P);F<0&&(F=2*B+F),P>0&&(F=B+F),H=F-B}if(s=!!H,x.x=u,x.y=p,x.rotation=H,x.setStyle({verticalAlign:"middle"}),R){x.setStyle({align:m});var U=x.states.select;U&&(U.x+=x.x,U.y+=x.y)}else{var Y=x.getBoundingRect().clone();Y.applyTransform(x.getComputedTransform());var X=(x.style.margin||0)+2.1;Y.y-=X/2,Y.height+=X,o.push({label:x,labelLine:_,position:w,len:Z,len2:L,minTurnAngle:D.get("minTurnAngle"),maxSurfaceAngle:D.get("maxSurfaceAngle"),surfaceNormal:new b.Z(O,P),linePoints:g,textAlign:m,labelDistance:A,labelAlignTo:I,edgeDistance:C,bleedMargin:T,rect:Y,unconstrainedWidth:Y.width,labelStyleWidth:x.style.width})}y.setTextConfig({inside:R})}}),!s&&e.get("avoidLabelOverlap")&&function(e,t,i,n,r,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d<e.length;d++){var p=e[d].label;!C(e[d])&&(p.x<t?(c=Math.min(c,p.x),l.push(e[d])):(h=Math.max(h,p.x),u.push(e[d])))}for(var d=0;d<e.length;d++){var g=e[d];if(!C(g)&&g.linePoints){if(null!=g.labelStyleWidth)continue;var p=g.label,f=g.linePoints,m=void 0;m="edge"===g.labelAlignTo?p.x<t?f[2][0]-g.labelDistance-a-g.edgeDistance:a+r-g.edgeDistance-f[2][0]-g.labelDistance:"labelLine"===g.labelAlignTo?p.x<t?c-a-g.bleedMargin:a+r-h-g.bleedMargin:p.x<t?p.x-a-g.bleedMargin:a+r-p.x-g.bleedMargin,g.targetTextWidth=m,I(g,m)}}A(u,t,i,n,1,r,o,a,s,h),A(l,t,i,n,-1,r,o,a,s,c);for(var d=0;d<e.length;d++){var g=e[d];if(!C(g)&&g.linePoints){var p=g.label,f=g.linePoints,y="edge"===g.labelAlignTo,v=p.style.padding,x=v?v[1]+v[3]:0,_=p.style.backgroundColor?0:x,b=g.rect.width+_,S=f[1][0]-f[2][0];y?p.x<t?f[2][0]=a+g.edgeDistance+b+g.labelDistance:f[2][0]=a+r-g.edgeDistance-b-g.labelDistance:(p.x<t?f[2][0]=p.x+g.labelDistance:f[2][0]=p.x-g.labelDistance,f[1][0]=f[2][0]+S),f[1][1]=f[2][1]=p.y}}}(o,t,i,c,h,g,d,p);for(var m=0;m<o.length;m++){var y=o[m],v=y.label,x=y.labelLine,_=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:y.textAlign}),_&&((0,a.each)(v.states,f),v.ignore=!0);var M=v.states.select;M&&(M.x+=v.x,M.y+=v.y)}if(x){var T=y.linePoints;_||!T?((0,a.each)(x.states,f),x.ignore=!0):((0,S.qK)(T,y.minTurnAngle),(0,S._A)(T,y.surfaceNormal,y.maxSurfaceAngle),x.setShape({points:T}),v.__hostTarget.textGuideLineConfig={anchor:new b.Z(T[0][0],T[0][1])})}}}(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=s)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var i=t.getData().getItemLayout(0);if(i){var n=e[0]-i.cx,r=e[1]-i.cy,o=Math.sqrt(n*n+r*r);return o<=i.r&&o>=i.r0}},t.type="pie",t}(_.Z),k=i(78939),O=i(86571),P=i(86451),R=i(26435),V=i(2021),N=O.Yf(),z=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new R.Z(a.bind(this.getData,this),a.bind(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return(0,k.Z)(this,{coordDimensions:["value"],encodeDefaulter:a.curry(P.Ss,this)})},t.prototype.getDataParams=function(t){var i=this.getData(),n=N(i),o=n.seats;if(!o){var a=[];i.each(i.mapDimension("value"),function(e){a.push(e)}),o=n.seats=(0,r.HD)(a,i.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,t);return s.percent=o[t]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){O.Cc(e,"labelLine",["show"]);var t=e.labelLine,i=e.emphasis.labelLine;t.show=t.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},t.type="series.pie",t.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"},t}(V.Z);function E(e){e.registerChartView(L),e.registerSeriesModel(z),(0,n.y)("pie",e.registerAction),e.registerLayout((0,a.curry)(d,"pie")),e.registerProcessor((0,p.Z)("pie")),e.registerProcessor({seriesType:"pie",reset:function(e,t){var i=e.getData();i.filterSelf(function(e){var t=i.mapDimension("value"),n=i.get(t,e);return!(0,a.isNumber)(n)||!!isNaN(n)||!(n<0)})}})}},8890:function(e,t,i){i.d(t,{N:()=>x});var n=i(36232),r=i(69988),o=i(30984),a=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i.hasSymbolVisual=!0,i}return(0,r.ZT)(t,e),t.prototype.getInitialData=function(e,t){return(0,o.Z)(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,i){return i.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.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"}},t}(i(2021).Z),s=i(5434),l=i(9495),u=i(7185),c=i(37293),h=i(5965),d=i(10428),p=function(){},g=function(e){function t(t){var i=e.call(this,t)||this;return i._off=0,i.hoverDataIdx=-1,i}return(0,r.ZT)(t,e),t.prototype.getDefaultShape=function(){return new p},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var i,n=t.points,r=t.size,o=this.symbolProxy,a=o.shape,s=e.getContext?e.getContext():e,l=s&&r[0]<4,u=this.softClipShape;if(l){this._ctx=s;return}for(this._ctx=null,i=this._off;i<n.length;){var c=n[i++],h=n[i++];!(isNaN(c)||isNaN(h))&&(!u||u.contain(c,h))&&(a.x=c-r[0]/2,a.y=h-r[1]/2,a.width=r[0],a.height=r[1],o.buildPath(e,a,!0))}this.incremental&&(this._off=i,this.notClear=!0)},t.prototype.afterBrush=function(){var e,t=this.shape,i=t.points,n=t.size,r=this._ctx,o=this.softClipShape;if(r){for(e=this._off;e<i.length;){var a=i[e++],s=i[e++];!(isNaN(a)||isNaN(s))&&(!o||o.contain(a,s))&&r.fillRect(a-n[0]/2,s-n[1]/2,n[0],n[1])}this.incremental&&(this._off=e,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var i=this.shape,n=i.points,r=i.size,o=Math.max(r[0],4),a=Math.max(r[1],4),s=n.length/2-1;s>=0;s--){var l=2*s,u=n[l]-o/2,c=n[l+1]-a/2;if(e>=u&&t>=c&&e<=u+o&&t<=c+a)return s}return -1},t.prototype.contain=function(e,t){var i=this.transformCoordToLocal(e,t),n=this.getBoundingRect();return(e=i[0],t=i[1],n.contain(e,t))?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,i=t.points,n=t.size,r=n[0],o=n[1],a=1/0,s=1/0,u=-1/0,c=-1/0,h=0;h<i.length;){var d=i[h++],p=i[h++];a=Math.min(d,a),u=Math.max(d,u),s=Math.min(p,s),c=Math.max(p,c)}e=this._rect=new l.Z(a-r/2,s-o/2,u-a+r,c-s+o)}return e},t}(u.ZP),f=function(){function e(){this.group=new c.Z}return e.prototype.updateData=function(e,t){this._clear();var i=this._create();i.setShape({points:e.getLayout("points")}),this._setCommon(i,e,t)},e.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(e){if(null!=e.startIndex){var i=(e.endIndex-e.startIndex)*2,n=8*e.startIndex;t=new Float32Array(t.buffer,n,i)}e.setShape("points",t),e.reset()})},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,i){var n=this._newAdded[0],r=t.getLayout("points"),o=n&&n.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+r.length);s.set(o),s.set(r,a),n.endIndex=e.end,n.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=e.start,l.endIndex=e.end,l.incremental=!0,l.setShape({points:r}),this._setCommon(l,t,i)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new g({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,i){var n=t.hostModel;i=i||{};var r=t.getVisual("symbolSize");e.setShape("size",r instanceof Array?r:[r,r]),e.softClipShape=i.clipShape||null,e.symbolProxy=(0,h.th)(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<4;e.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=t.getVisual("style"),s=a&&a.fill;s&&e.setColor(s);var l=(0,d.A)(e);l.seriesIndex=n.seriesIndex,e.on("mousemove",function(t){l.dataIndex=null;var i=e.hoverDataIdx;i>=0&&(l.dataIndex=i+(e.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),m=i(13706),y=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,r.ZT)(t,e),t.prototype.render=function(e,t,i){var n=e.getData();this._updateSymbolDraw(n,e).updateData(n,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,i){var n=e.getData();this._updateSymbolDraw(n,e).incrementalPrepareUpdate(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,i){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,i){var n=e.getData();if(this.group.dirty(),!this._finished||n.count()>1e4)return{update:!0};var r=(0,m.Z)("").reset(e,t,i);r.progress&&r.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(n)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var t=e.coordinateSystem;return t&&t.getArea&&t.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,t){var i=this._symbolDraw,n=t.pipelineContext.large;return i&&n===this._isLargeDraw||(i&&i.remove(),i=this._symbolDraw=n?new f:new s.Z,this._isLargeDraw=n,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(i(58050).Z),v=i(28525);function x(e){(0,n.D)(v.N),e.registerSeriesModel(a),e.registerChartView(y),e.registerLayout((0,m.Z)("scatter"))}},84677:function(e,t,i){i.d(t,{Z:()=>c});var n=i(69988),r=i(67975),o=i(45352),a=i(46500),s=i(86571),l=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}();function u(e){var t={};return(0,r.each)(["start","end","startValue","endValue","throttle"],function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t}let c=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i._autoThrottle=!0,i._noTarget=!0,i._rangePropMode=["percent","percent"],i}return(0,n.ZT)(t,e),t.prototype.init=function(e,t,i){var n=u(e);this.settledOption=n,this.mergeDefaultAndTheme(e,i),this._doInit(n)},t.prototype.mergeOption=function(e){var t=u(e);(0,r.merge)(this.option,e,!0),(0,r.merge)(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var i=this.settledOption;(0,r.each)([["start","startValue"],["end","endValue"]],function(e,n){"value"===this._rangePropMode[n]&&(t[e[0]]=i[e[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=(0,r.createHashMap)();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each(function(e){e.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return(0,r.each)(a.I,function(i){var n=this.getReferringComponents((0,a.jQ)(i),s.iP);if(n.specified){t=!0;var o=new l;(0,r.each)(n.models,function(e){o.add(e.componentIndex)}),e.set(i,o)}},this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var i=this.ecModel,n=!0,o="vertical"===t?"y":"x",u=i.findComponents({mainType:o+"Axis"});if(c(u,o),n){var u=i.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}});c(u,"single")}function c(t,i){var o=t[0];if(o){var a=new l;if(a.add(o.componentIndex),e.set(i,a),n=!1,"x"===i||"y"===i){var u=o.getReferringComponents("grid",s.C6).models[0];u&&(0,r.each)(t,function(e){o.componentIndex!==e.componentIndex&&u===e.getReferringComponents("grid",s.C6).models[0]&&a.add(e.componentIndex)})}}}n&&(0,r.each)(a.I,function(t){if(n){var r=i.findComponents({mainType:(0,a.jQ)(t),filter:function(e){return"category"===e.get("type",!0)}});if(r[0]){var o=new l;o.add(r[0].componentIndex),e.set(t,o),n=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){e||(e=t)},this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,i=this.get("rangeMode");(0,r.each)([["start","startValue"],["end","endValue"]],function(n,r){var o=null!=e[n[0]],a=null!=e[n[1]];o&&!a?t[r]="percent":!o&&a?t[r]="value":i?t[r]=i[r]:o&&(t[r]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(t,i){null==e&&(e=this.ecModel.getComponent((0,a.jQ)(t),i))},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(i,n){(0,r.each)(i.indexList,function(i){e.call(t,n,i)})})},t.prototype.getAxisProxy=function(e,t){var i=this.getAxisModel(e,t);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var i=this._targetAxisInfoMap.get(e);if(i&&i.indexMap[t])return this.ecModel.getComponent((0,a.jQ)(e),t)},t.prototype.setRawRange=function(e){var t=this.option,i=this.settledOption;(0,r.each)([["start","startValue"],["end","endValue"]],function(n){(null!=e[n[0]]||null!=e[n[1]])&&(t[n[0]]=i[n[0]]=e[n[0]],t[n[1]]=i[n[1]]=e[n[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;(0,r.each)(["start","startValue","end","endValue"],function(i){t[i]=e[i]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,i=this._targetAxisInfoMap.keys(),n=0;n<i.length;n++)for(var r=i[n],o=this._targetAxisInfoMap.get(r),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(r,o.indexList[a]);if(s.hostedBy(this))return s;t||(t=s)}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(o.Z)},82877:function(e,t,i){i.d(t,{Z:()=>r});var n=i(69988);let r=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.ZT)(t,e),t.prototype.render=function(e,t,i,n){this.dataZoomModel=e,this.ecModel=t,this.api=i},t.type="dataZoom",t}(i(64292).Z)},46500:function(e,t,i){i.d(t,{BL:()=>l,I:()=>r,jQ:()=>s,kc:()=>a,rg:()=>u});var n=i(67975),r=["x","y","radius","angle","single"],o=["cartesian2d","polar","singleAxis"];function a(e){var t=e.get("coordinateSystem");return(0,n.indexOf)(o,t)>=0}function s(e){return e+"Axis"}function l(e,t){var i,r=(0,n.createHashMap)(),o=[],a=(0,n.createHashMap)();e.eachComponent({mainType:"dataZoom",query:t},function(e){a.get(e.uid)||l(e)});do i=!1,e.eachComponent("dataZoom",s);while(i);function s(e){var t;!a.get(e.uid)&&(t=!1,e.eachTargetAxis(function(e,i){var n=r.get(e);n&&n[i]&&(t=!0)}),t)&&(l(e),i=!0)}function l(e){a.set(e.uid,!0),o.push(e),function(e){e.eachTargetAxis(function(e,t){(r.get(e)||r.set(e,[]))[t]=!0})}(e)}return o}function u(e){var t=e.ecModel,i={infoList:[],infoMap:(0,n.createHashMap)()};return e.eachTargetAxis(function(e,n){var r=t.getComponent(s(e),n);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,l=i.infoMap.get(a);l||(l={model:o,axisModels:[]},i.infoList.push(l),i.infoMap.set(a,l)),l.axisModels.push(r)}}}),i}},48906:function(e,t,i){i.d(t,{N:()=>a});var n=i(36232),r=i(91739),o=i(7791);function a(e){(0,n.D)(r.N),(0,n.D)(o.N)}},88526:function(e,t,i){i.d(t,{Z:()=>f});var n=i(67975),r=i(46500),o=i(82517),a=i(12920),s=i(16035),l=i(14020),u=i(86571),c=n.each,h=o.dt,d=function(){function e(e,t,i,n){this._dimName=e,this._axisIndex=t,this.ecModel=n,this._dataZoomModel=i}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if((0,r.kc)(t)){var i=(0,r.jQ)(this._dimName),n=t.getReferringComponents(i,u.C6).models[0];n&&this._axisIndex===n.componentIndex&&e.push(t)}},this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return n.clone(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,i=this._dataExtent,n=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),s=[0,100],l=[],u=[];c(["start","end"],function(a,c){var h=e[a],d=e[a+"Value"];"percent"===r[c]?(null==h&&(h=s[c]),d=n.parse(o.NU(h,s,i))):(t=!0,d=null==d?i[c]:n.parse(d),h=o.NU(d,i,s)),u[c]=null==d||isNaN(d)?i[c]:d,l[c]=null==h||isNaN(h)?s[c]:h}),h(u),h(l);var d=this._minMaxSpan;function p(e,t,i,r,s){var l=s?"Span":"ValueSpan";(0,a.Z)(0,e,i,"all",d["min"+l],d["max"+l]);for(var u=0;u<2;u++)t[u]=o.NU(e[u],i,r,!0),s&&(t[u]=n.parse(t[u]))}return t?p(u,l,i,s,!1):p(l,u,s,i,!0),{valueWindow:u,percentWindow:l}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t,i,n,r,o,a=this.getTargetSeriesModels();this._dataExtent=(t=this,i=this._dimName,n=[1/0,-1/0],c(a,function(e){(0,s.AH)(n,e.getData(),i)}),r=t.getAxisModel(),[(o=(0,l.Qw)(r.axis.scale,r,n).calculate()).min,o.max]),this._updateMinMaxSpan();var u=this.calculateDataWindow(e.settledOption);this._valueWindow=u.valueWindow,this._percentWindow=u.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var i=this._dimName,r=this.getTargetSeriesModels(),o=e.get("filterMode"),a=this._valueWindow;"none"!==o&&c(r,function(e){var t=e.getData(),r=t.mapDimensionsAll(i);if(r.length){if("weakFilter"===o){var s=t.getStore(),l=n.map(r,function(e){return t.getDimensionIndex(e)},t);t.filterSelf(function(e){for(var t,i,n,o=0;o<r.length;o++){var u=s.get(l[o],e),c=!isNaN(u),h=u<a[0],d=u>a[1];if(c&&!h&&!d)return!0;c&&(n=!0),h&&(t=!0),d&&(i=!0)}return n&&t&&i})}else c(r,function(i){if("empty"===o)e.setData(t=t.map(i,function(e){var t;return(t=e)>=a[0]&&t<=a[1]?e:NaN}));else{var n={};n[i]=a,t.selectRange(n)}});c(r,function(e){t.setApproximateExtent(a,e)})}})}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,i=this._dataExtent;c(["min","max"],function(n){var r=t.get(n+"Span"),a=t.get(n+"ValueSpan");null!=a&&(a=this.getAxisModel().axis.scale.parse(a)),null!=a?r=o.NU(i[0]+a,i,[0,100],!0):null!=r&&(a=o.NU(r,[0,100],i,!0)-i[0]),e[n+"Span"]=r,e[n+"ValueSpan"]=a},this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,i=this._valueWindow;if(t){var n=o.M9(i,[0,500]);n=Math.min(n,20);var r=e.axis.scale.rawExtentInfo;0!==t[0]&&r.setDeterminedMinMax("min",+i[0].toFixed(n)),100!==t[1]&&r.setDeterminedMinMax("max",+i[1].toFixed(n)),r.freeze()}},e}();let p={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(n,o){var a=e.getComponent((0,r.jQ)(n),o);t(n,o,a,i)})})}t(function(e,t,i,n){i.__dzAxisProxy=null});var i=[];t(function(t,n,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new d(t,n,o,e),i.push(r.__dzAxisProxy))});var o=(0,n.createHashMap)();return(0,n.each)(i,function(e){(0,n.each)(e.getTargetSeriesModels(),function(e){o.set(e.uid,e)})}),o},overallReset:function(e,t){e.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(t,i){e.getAxisProxy(t,i).reset(e)}),e.eachTargetAxis(function(i,n){e.getAxisProxy(i,n).filterData(e,t)})}),e.eachComponent("dataZoom",function(e){var t=e.findRepresentativeAxisProxy();if(t){var i=t.getDataPercentWindow(),n=t.getDataValueWindow();e.setCalculatedRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]})}})}};var g=!1;function f(e){!g&&(g=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,p),function(e){e.registerAction("dataZoom",function(e,t){var i=(0,r.BL)(t,e);(0,n.each)(i,function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}},91739:function(e,t,i){i.d(t,{N:()=>M});var n=i(69988),r=i(84677),o=i(4587),a=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.ZT)(t,e),t.type="dataZoom.inside",t.defaultOption=(0,o.ZL)(r.Z.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(r.Z),s=i(82877),l=i(12920),u=i(37892),c=i(19774),h=i(86571),d=i(67975),p=i(46500),g=(0,h.Yf)();function f(e,t){if(t){e.removeKey(t.model.uid);var i=t.controller;i&&i.dispose()}}function m(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function y(e,t,i,n){return e.coordinateSystem.containPoint([i,n])}var v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return(0,n.ZT)(t,e),t.prototype.render=function(t,i,n){if(e.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),function(e,t,i){g(e).coordSysRecordMap.each(function(e){var n=e.dataZoomInfoMap.get(t.uid);n&&(n.getRange=i)})}(n,t,{pan:(0,d.bind)(x.pan,this),zoom:(0,d.bind)(x.zoom,this),scrollMove:(0,d.bind)(x.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){(function(e,t){for(var i=g(e).coordSysRecordMap,n=i.keys(),r=0;r<n.length;r++){var o=n[r],a=i.get(o),s=a.dataZoomInfoMap;if(s){var l=t.uid;s.get(l)&&(s.removeKey(l),s.keys().length||f(i,a))}}})(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(s.Z),x={zoom:function(e,t,i,n){var r=this.range,o=r.slice(),a=e.axisModels[0];if(a){var s=b[t](null,[n.originX,n.originY],a,i,e),u=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],c=Math.max(1/n.scale,0);o[0]=(o[0]-u)*c+u,o[1]=(o[1]-u)*c+u;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if((0,l.Z)(0,o,[0,100],0,h.minSpan,h.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1])return o}},pan:_(function(e,t,i,n,r,o){var a=b[n]([o.oldX,o.oldY],[o.newX,o.newY],t,r,i);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength}),scrollMove:_(function(e,t,i,n,r,o){return b[n]([0,0],[o.scrollDelta,o.scrollDelta],t,r,i).signal*(e[1]-e[0])*o.scrollDelta})};function _(e){return function(t,i,n,r){var o=this.range,a=o.slice(),s=t.axisModels[0];if(s){var u=e(a,s,t,i,n,r);if((0,l.Z)(u,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1])return a}}}var b={grid:function(e,t,i,n,r){var o=i.axis,a={},s=r.model.coordinateSystem.getRect();return e=e||[0,0],"x"===o.dim?(a.pixel=t[0]-e[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(e,t,i,n,r){var o=i.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===i.mainType?(a.pixel=t[0]-e[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(e,t,i,n,r){var o=i.axis,a=r.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===o.orient?(s.pixel=t[0]-e[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},S=i(88526);function M(e){(0,S.Z)(e),e.registerComponentModel(a),e.registerComponentView(v),function(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(e,t){var i=g(t),n=i.coordSysRecordMap||(i.coordSysRecordMap=(0,d.createHashMap)());n.each(function(e){e.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(e){var i=(0,p.rg)(e);(0,d.each)(i.infoList,function(i){var r,o,a,s=i.model.uid,l=n.get(s)||n.set(s,(a=(o={model:r=i.model,containsPoint:(0,d.curry)(y,r),dispatchAction:(0,d.curry)(m,t),dataZoomInfoMap:null,controller:null}).controller=new u.Z(t.getZr()),(0,d.each)(["pan","zoom","scrollMove"],function(e){a.on(e,function(t){var i=[];o.dataZoomInfoMap.each(function(n){if(t.isAvailableBehavior(n.model.option)){var r=(n.getRange||{})[e],a=r&&r(n.dzReferCoordSysInfo,o.model.mainType,o.controller,t);!n.model.get("disabled",!0)&&a&&i.push({dataZoomId:n.model.id,start:a[0],end:a[1]})}}),i.length&&o.dispatchAction(i)})}),o));(l.dataZoomInfoMap||(l.dataZoomInfoMap=(0,d.createHashMap)())).set(e.uid,{dzReferCoordSysInfo:i,model:e,getRange:null})})}),n.each(function(e){var t,i,r,o,a,s=e.controller,l=e.dataZoomInfoMap;if(l){var u=l.keys()[0];null!=u&&(a=l.get(u))}if(!a){f(n,e);return}var h=(i="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0,l.each(function(e){var n=e.model,a=!n.get("disabled",!0)&&(!n.get("zoomLock",!0)||"move");r[i+a]>r[i+t]&&(t=a),o=o&&n.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o}});s.enable(h.controlType,h.opt),s.setPointerChecker(e.containsPoint),c.T9(e,"dispatchAction",a.model.get("throttle",!0),"fixRate")})})}(e)}},7791:function(e,t,i){i.d(t,{N:()=>O});var n=i(69988),r=i(84677),o=i(4587),a=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.ZT)(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=(0,o.ZL)(r.Z.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(r.Z),s=i(67975),l=i(9474),u=i(31969),c=i(37293),h=i(24484),d=i(61099),p=i(76150),g=i(29790),f=i(91145),m=i(19774),y=i(82877),v=i(82517),x=i(50651),_=i(12920),b=i(46500),S=i(98306),M=i(5965),w=i(33361),A=u.Z,I="horizontal",C="vertical",T=["line","bar","candlestick","scatter"],D={easing:"cubicOut",duration:100,delay:0},Z=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i._displayables={},i}return(0,n.ZT)(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=(0,s.bind)(this._onBrush,this),this._onBrushEnd=(0,s.bind)(this._onBrushEnd,this)},t.prototype.render=function(t,i,n,r){if(e.prototype.render.apply(this,arguments),m.T9(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1===t.get("show")){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){m.ZH(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new c.Z;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,i=e.get("brushSelect"),n=this._findCoordRect(),r={width:t.getWidth(),height:t.getHeight()},o=this._orient===I?{right:r.width-n.x-n.width,top:r.height-30-7-7*!!i,width:n.width,height:30}:{right:7,top:n.y,width:30,height:n.height},a=x.tE(e.option);(0,s.each)(["right","top","width","height"],function(e){"ph"===a[e]&&(a[e]=o[e])});var l=x.ME(a,r);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===C&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),r=n&&n.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(i!==I||r?i===I&&r?{scaleY:a?1:-1,scaleX:-1}:i!==C||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=e.getBoundingRect([o]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,i=this._displayables.sliderGroup,n=e.get("brushSelect");i.add(new A({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var r=new A({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:(0,s.bind)(this._onClickPanel,this)}),o=this.api.getZr();n?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),i.add(r)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,i=this._shadowSize||[],n=e.series,r=n.getRawData(),o=n.getShadowDim&&n.getShadowDim(),a=o&&r.getDimensionInfo(o)?n.getShadowDim():e.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||a!==this._shadowDim||t[0]!==i[0]||t[1]!==i[1]){var u,p=r.getDataExtent(a),g=(p[1]-p[0])*.3;p=[p[0]-g,p[1]+g];var f=[0,t[1]],m=[0,t[0]],y=[[t[0],0],[0,0]],x=[],_=m[1]/(r.count()-1),b=0,S=Math.round(r.count()/t[0]);r.each([a],function(e,t){if(S>0&&t%S){b+=_;return}var i=null==e||isNaN(e)||""===e,n=i?0:(0,v.NU)(e,p,f,!0);i&&!u&&t?(y.push([y[y.length-1][0],0]),x.push([x[x.length-1][0],0])):!i&&u&&(y.push([b,0]),x.push([b,0])),y.push([b,n]),x.push([b,n]),b+=_,u=i}),s=this._shadowPolygonPts=y,l=this._shadowPolylinePts=x}this._shadowData=r,this._shadowDim=a,this._shadowSize=[t[0],t[1]];for(var M=this.dataZoomModel,w=0;w<3;w++){var A=function(e){var t=M.getModel(e?"selectedDataBackground":"dataBackground"),i=new c.Z,n=new h.Z({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new d.Z({shape:{points:l},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return i.add(n),i.add(r),i}(1===w);this._displayables.sliderGroup.add(A),this._displayables.dataShadowSegs.push(A)}}}},t.prototype._prepareDataShadowInfo=function(){var e,t=this.dataZoomModel,i=t.get("showDataShadow");if(!1!==i){var n=this.ecModel;return t.eachTargetAxis(function(r,o){var a=t.getAxisProxy(r,o).getTargetSeriesModels();(0,s.each)(a,function(t){if(!(e||!0!==i&&0>(0,s.indexOf)(T,t.get("type")))){var a,l=n.getComponent((0,b.jQ)(r),o).axis,u={x:"y",y:"x",radius:"angle",angle:"radius"}[r],c=t.coordinateSystem;null!=u&&c.getOtherAxis&&(a=c.getOtherAxis(l).inverse),u=t.getData().mapDimension(u),e={thisAxis:l,series:t,thisDim:r,otherDim:u,otherAxisInverse:a}}},this)},this),e}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,i=t.handles=[null,null],n=t.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,l=this.api,c=a.get("borderRadius")||0,h=a.get("brushSelect"),d=t.filler=new A({silent:h,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(d),r.add(new A({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:c},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),(0,s.each)([0,1],function(t){var o=a.get("handleIcon");!M.Pw[o]&&0>o.indexOf("path://")&&0>o.indexOf("image://")&&(o="path://"+o);var l=(0,M.th)(o,-1,0,2,2,null,!0);l.attr({cursor:L(this._orient),draggable:!0,drift:(0,s.bind)(this._onDragMove,this,t),ondragend:(0,s.bind)(this._onDragEnd,this),onmouseover:(0,s.bind)(this._showDataInfo,this,!0),onmouseout:(0,s.bind)(this._showDataInfo,this,!1),z2:5});var u=l.getBoundingRect(),c=a.get("handleSize");this._handleHeight=(0,v.GM)(c,this._size[1]),this._handleWidth=u.width/u.height*this._handleHeight,l.setStyle(a.getModel("handleStyle").getItemStyle()),l.style.strokeNoScale=!0,l.rectHover=!0,l.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),(0,S.vF)(l);var h=a.get("handleColor");null!=h&&(l.style.fill=h),r.add(i[t]=l);var d=a.getModel("textStyle");e.add(n[t]=new p.ZP({silent:!0,invisible:!0,style:(0,w.Lr)(d,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:d.getTextColor(),font:d.getFont()}),z2:10}))},this);var g=d;if(h){var f=(0,v.GM)(a.get("moveHandleSize"),o[1]),m=t.moveHandle=new u.Z({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:f}}),y=.8*f,x=t.moveHandleIcon=(0,M.th)(a.get("moveHandleIcon"),-y/2,-y/2,y,y,"#fff",!0);x.silent=!0,x.y=o[1]+f/2-.5,m.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var _=Math.min(o[1]/2,Math.max(f,10));(g=t.moveZone=new u.Z({invisible:!0,shape:{y:o[1]-_,height:f+_}})).on("mouseover",function(){l.enterEmphasis(m)}).on("mouseout",function(){l.leaveEmphasis(m)}),r.add(m),r.add(x),r.add(g)}g.attr({draggable:!0,cursor:L(this._orient),drift:(0,s.bind)(this._onDragMove,this,"all"),ondragstart:(0,s.bind)(this._showDataInfo,this,!0),ondragend:(0,s.bind)(this._onDragEnd,this),onmouseover:(0,s.bind)(this._showDataInfo,this,!0),onmouseout:(0,s.bind)(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[(0,v.NU)(e[0],[0,100],t,!0),(0,v.NU)(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var i=this.dataZoomModel,n=this._handleEnds,r=this._getViewExtent(),o=i.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];(0,_.Z)(t,n,r,i.get("zoomLock")?"all":e,null!=o.minSpan?(0,v.NU)(o.minSpan,a,r,!0):null,null!=o.maxSpan?(0,v.NU)(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=(0,v.dt)([(0,v.NU)(n[0],r,a,!0),(0,v.NU)(n[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,i=this._handleEnds,n=(0,v.dt)(i.slice()),r=this._size;(0,s.each)([0,1],function(e){var n=t.handles[e],o=this._handleHeight;n.attr({scaleX:o/2,scaleY:o/2,x:i[e]+(e?-1:1),y:r[1]/2-o/2})},this),t.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:r[1]});var o={x:n[0],width:n[1]-n[0]};t.moveHandle&&(t.moveHandle.setShape(o),t.moveZone.setShape(o),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=t.dataShadowSegs,l=[0,n[0],n[1],r[0]],c=0;c<a.length;c++){var h=a[c],d=h.getClipPath();d||(d=new u.Z,h.setClipPath(d)),d.setShape({x:l[c],y:0,width:l[c+1]-l[c],height:r[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,i=this._displayables,n=i.handleLabels,r=this._orient,o=["",""];if(t.get("showDetail")){var a=t.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=e?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=(0,v.dt)(this._handleEnds.slice());function h(e){var t=g.getTransform(i.handles[e].parent,this.group),a=g.transformDirection(0===e?"right":"left",t),s=this._handleWidth/2+5,l=g.applyTransform([c[e]+(0===e?-s:s),this._size[1]/2],t);n[e].setStyle({x:l[0],y:l[1],verticalAlign:r===I?"middle":a,align:r===I?a:"center",text:o[e]})}h.call(this,0),h.call(this,1)},t.prototype._formatLabel=function(e,t){var i=this.dataZoomModel,n=i.get("labelFormatter"),r=i.get("labelPrecision");(null==r||"auto"===r)&&(r=t.getPixelPrecision());var o=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(r,20));return(0,s.isFunction)(n)?n(e,o):(0,s.isString)(n)?n.replace("{value}",o):o},t.prototype._showDataInfo=function(e){e=this._dragging||e;var t=this._displayables,i=t.handleLabels;i[0].attr("invisible",!e),i[1].attr("invisible",!e),t.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](t.moveHandle,1)},t.prototype._onDragMove=function(e,t,i,n){this._dragging=!0,l.sT(n.event);var r=this._displayables.sliderGroup.getLocalTransform(),o=g.applyTransform([t,i],r,!0),a=this._updateInterval(e,o[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),a&&s&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),this.dataZoomModel.get("realtime")||this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(i[0]<0)&&!(i[0]>t[0])&&!(i[1]<0)&&!(i[1]>t[1])){var n=this._handleEnds,r=(n[0]+n[1])/2,o=this._updateInterval("all",i[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,i=e.offsetY;this._brushStart=new f.Z(t,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(!!this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var i=t.shape;if(!(+new Date-this._brushStartTime<200&&5>Math.abs(i.width))){var n=this._getViewExtent(),r=[0,100];this._range=(0,v.dt)([(0,v.NU)(i.x,n,r,!0),(0,v.NU)(i.x+i.width,n,r,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(l.sT(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var i=this._displayables,n=this.dataZoomModel,r=i.brushRect;r||(r=i.brushRect=new A({silent:!0,style:n.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(e,t),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?D:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=(0,b.rg)(this.dataZoomModel).infoList;if(!e&&t.length){var i=t[0].model.coordinateSystem;e=i.getRect&&i.getRect()}if(!e){var n=this.api.getWidth(),r=this.api.getHeight();e={x:.2*n,y:.2*r,width:.6*n,height:.6*r}}return e},t.type="dataZoom.slider",t}(y.Z);function L(e){return"vertical"===e?"ns-resize":"ew-resize"}var k=i(88526);function O(e){e.registerComponentModel(a),e.registerComponentView(Z),(0,k.Z)(e)}},10933:function(e,t,i){i.d(t,{Z:()=>$});var n=i(69988),r=i(67975),o=i(77654),a=i(37293),s=i(31969),l=i(29790),u=i(61099),c=i(24484),h=i(20619),d=i(82787),p=Math.min,g=Math.max,f=Math.pow,m="globalPan",y={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},v={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},x={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},_=0,b=function(e){function t(t){var i=e.call(this)||this;return i._track=[],i._covers=[],i._handlers={},i._zr=t,i.group=new a.Z,i._uid="brushController_"+_++,(0,r.each)(K,function(e,t){this._handlers[t]=(0,r.bind)(e,this)},i),i}return(0,n.ZT)(t,e),t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||h.qn(t,m,this._uid),(0,r.each)(this._handlers,function(e,i){t.on(i,e)}),this._brushType=e.brushType,this._brushOption=(0,r.merge)((0,r.clone)(x),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;h.Ar(e,m,this._uid),(0,r.each)(this._handlers,function(t,i){e.off(i,t)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};(0,r.each)(e,function(e){t[e.panelId]=(0,r.clone)(e)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=(0,r.map)(e,function(e){return(0,r.merge)((0,r.clone)(x),e,!0)});var t=this._covers,i=this._covers=[],n=this,o=this._creatingCover;return new d.Z(t,e,function(e,t){return a(e.__brushOption,t)},a).add(s).update(s).remove(function(e){t[e]!==o&&n.group.remove(t[e])}).execute(),this;function a(e,t){return(null!=e.id?e.id:"\0-brush-index-"+t)+"-"+e.brushType}function s(r,a){var s=e[r];if(null!=a&&t[a]===o)i[r]=t[a];else{var l=i[r]=null!=a?(t[a].__brushOption=s,t[a]):M(n,S(n,s));I(n,l)}}},t.prototype.unmount=function(){return this.enableBrush(!1),Z(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(o.Z);function S(e,t){var i=q[t.brushType].createCover(e,t);return i.__brushOption=t,A(i,t),e.group.add(i),i}function M(e,t){var i=C(t);return i.endCreating&&(i.endCreating(e,t),A(t,t.__brushOption)),t}function w(e,t){var i=t.__brushOption;C(t).updateCoverShape(e,t,i.range,i)}function A(e,t){var i=t.z;null==i&&(i=1e4),e.traverse(function(e){e.z=i,e.z2=i})}function I(e,t){C(t).updateCommon(e,t),w(e,t)}function C(e){return q[e.__brushOption.brushType]}function T(e,t,i){var n,o=e._panels;if(!o)return!0;var a=e._transform;return(0,r.each)(o,function(e){e.isTargetByCursor(t,i,a)&&(n=e)}),n}function D(e,t){var i=e._panels;if(!i)return!0;var n=t.__brushOption.panelId;return null==n||i[n]}function Z(e){var t=e._covers,i=t.length;return(0,r.each)(t,function(t){e.group.remove(t)},e),t.length=0,!!i}function L(e,t){var i=(0,r.map)(e._covers,function(e){var t=e.__brushOption,i=(0,r.clone)(t.range);return{brushType:t.brushType,panelId:t.panelId,range:i}});e.trigger("brush",{areas:i,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function k(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function O(e,t,i,n){var o=new a.Z;return o.add(new s.Z({name:"main",style:N(i),silent:!0,draggable:!0,cursor:"move",drift:(0,r.curry)(G,e,t,o,["n","s","w","e"]),ondragend:(0,r.curry)(L,t,{isEnd:!0})})),(0,r.each)(n,function(i){o.add(new s.Z({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:(0,r.curry)(G,e,t,o,i),ondragend:(0,r.curry)(L,t,{isEnd:!0})}))}),o}function P(e,t,i,n){var r=n.brushStyle.lineWidth||0,o=g(r,6),a=i[0][0],s=i[1][0],l=a-r/2,u=s-r/2,c=i[0][1],h=i[1][1],d=c-o+r/2,p=h-o+r/2,f=c-a,m=h-s,y=f+r,v=m+r;V(e,t,"main",a,s,f,m),n.transformable&&(V(e,t,"w",l,u,o,v),V(e,t,"e",d,u,o,v),V(e,t,"n",l,u,y,o),V(e,t,"s",l,p,y,o),V(e,t,"nw",l,u,o,o),V(e,t,"ne",d,u,o,o),V(e,t,"sw",l,p,o,o),V(e,t,"se",d,p,o,o))}function R(e,t){var i=t.__brushOption,n=i.transformable,o=t.childAt(0);o.useStyle(N(i)),o.attr({silent:!n,cursor:n?"move":"default"}),(0,r.each)([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var r,o,a,s=t.childOfName(i.join("")),l=1===i.length?E(e,i[0]):(("e"===(a=[E(r=e,(o=i)[0]),E(r,o[1])])[0]||"w"===a[0])&&a.reverse(),a.join(""));s&&s.attr({silent:!n,invisible:!n,cursor:n?v[l]+"-resize":null})})}function V(e,t,i,n,r,o,a){var s,l,u,c=t.childOfName(i);c&&c.setShape((l=p((s=W(e,t,[[n,r],[n+o,r+a]]))[0][0],s[1][0]),{x:l,y:u=p(s[0][1],s[1][1]),width:g(s[0][0],s[1][0])-l,height:g(s[0][1],s[1][1])-u}))}function N(e){return(0,r.defaults)({strokeNoScale:!0},e.brushStyle)}function z(e,t,i,n){var r=[p(e,i),p(t,n)],o=[g(e,i),g(t,n)];return[[r[0],o[0]],[r[1],o[1]]]}function E(e,t){return({left:"w",right:"e",top:"n",bottom:"s"})[l.transformDirection({w:"left",e:"right",n:"top",s:"bottom"}[t],l.getTransform(e.group))]}function G(e,t,i,n,o,a){var s=i.__brushOption,l=e.toRectRange(s.range),u=H(t,o,a);(0,r.each)(n,function(e){var t=y[e];l[t[0]][t[1]]+=u[t[0]]}),s.range=e.fromRectRange(z(l[0][0],l[1][0],l[0][1],l[1][1])),I(t,i),L(t,{isEnd:!1})}function B(e,t,i,n){var o=t.__brushOption.range,a=H(e,i,n);(0,r.each)(o,function(e){e[0]+=a[0],e[1]+=a[1]}),I(e,t),L(e,{isEnd:!1})}function H(e,t,i){var n=e.group,r=n.transformCoordToLocal(t,i),o=n.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function W(e,t,i){var n=D(e,t);return n&&!0!==n?n.clipPath(i,e._transform):(0,r.clone)(i)}function F(e){var t=e.event;t.preventDefault&&t.preventDefault()}function U(e,t,i){return e.childOfName("main").contain(t,i)}function Y(e,t,i,n){var o,a=e._creatingCover,s=e._creatingPanel,l=e._brushOption;if(e._track.push(i.slice()),function(e){var t=e._track;if(!t.length)return!1;var i=t[t.length-1],n=t[0],r=i[0]-n[0],o=i[1]-n[1];return f(r*r+o*o,.5)>6}(e)||a){if(s&&!a){"single"===l.brushMode&&Z(e);var u=(0,r.clone)(l);u.brushType=X(u.brushType,s),u.panelId=!0===s?null:s.panelId,a=e._creatingCover=S(e,u),e._covers.push(a)}if(a){var c=q[X(e._brushType,s)];a.__brushOption.range=c.getCreatingRange(W(e,a,e._track)),n&&(M(e,a),c.updateCommon(e,a)),w(e,a),o={isEnd:n}}}else n&&"single"===l.brushMode&&l.removeOnClick&&T(e,t,i)&&Z(e)&&(o={isEnd:n,removeOnClick:!0});return o}function X(e,t){return"auto"===e?t.defaultBrushType:e}var K={mousedown:function(e){if(this._dragging)j(this,e);else if(!e.target||!e.target.draggable){F(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=T(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,i=e.offsetY,n=this.group.transformCoordToLocal(t,i);if(!function(e,t,i){if(!(!e._brushType||(n=e,r=t.offsetX,o=t.offsetY,a=n._zr,r<0||r>a.getWidth()||o<0||o>a.getHeight()))){var n,r,o,a,s=e._zr,l=e._covers,u=T(e,t,i);if(!e._dragging)for(var c=0;c<l.length;c++){var h=l[c].__brushOption;if(u&&(!0===u||h.panelId===u.panelId)&&q[h.brushType].contain(l[c],i[0],i[1]))return}u&&s.setCursorStyle("crosshair")}}(this,e,n),this._dragging){F(e);var r=Y(this,e,n,!1);r&&L(this,r)}},mouseup:function(e){j(this,e)}};function j(e,t){if(e._dragging){F(t);var i=t.offsetX,n=t.offsetY,r=e.group.transformCoordToLocal(i,n),o=Y(e,t,r,!0);e._dragging=!1,e._track=[],e._creatingCover=null,o&&L(e,o)}}var q={lineX:Q(0),lineY:Q(1),rect:{createCover:function(e,t){function i(e){return e}return O({toRectRange:i,fromRectRange:i},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=k(e);return z(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,i,n){P(e,t,i,n)},updateCommon:R,contain:U},polygon:{createCover:function(e,t){var i=new a.Z;return i.add(new u.Z({name:"main",style:N(t),silent:!0})),i},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new c.Z({name:"main",draggable:!0,drift:(0,r.curry)(B,e,t),ondragend:(0,r.curry)(L,e,{isEnd:!0})}))},updateCoverShape:function(e,t,i,n){t.childAt(0).setShape({points:W(e,t,i)})},updateCommon:R,contain:U}};function Q(e){return{createCover:function(t,i){return O({toRectRange:function(t){var i=[t,[0,100]];return e&&i.reverse(),i},fromRectRange:function(t){return t[e]}},t,i,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var i=k(t);return[p(i[0][e],i[1][e]),g(i[0][e],i[1][e])]},updateCoverShape:function(t,i,n,r){var o,a=D(t,i);if(!0!==a&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(e);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,o];e&&l.reverse(),P(t,i,l,r)},updateCommon:R,contain:U}}let $=b},89262:function(e,t,i){i.d(t,{Z:()=>x});var n=i(67975),r=i(29790),o=i(34921),a=i(86571),s=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],l=function(){function e(e,t,i){var r=this;this._targetInfoList=[];var o=c(t,e);(0,n.each)(h,function(e,t){(!i||!i.include||(0,n.indexOf)(i.include,t)>=0)&&e(o,r._targetInfoList)})}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(e,t,i){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var n=g[e.brushType](0,i,t);e.__rangeOffset={offset:m[e.brushType](n.values,e.range,[1,1]),xyMinMax:n.xyMinMax}}}),e},e.prototype.matchOutputRanges=function(e,t,i){(0,n.each)(e,function(e){var r=this.findTargetInfo(e,t);r&&!0!==r&&(0,n.each)(r.coordSyses,function(n){var r=g[e.brushType](1,n,e.range,!0);i(e,r.values,n,t)})},this)},e.prototype.setInputRanges=function(e,t){(0,n.each)(e,function(e){var i=this.findTargetInfo(e,t);if(e.range=e.range||[],i&&!0!==i){e.panelId=i.panelId;var n,r,o,a,s,l=g[e.brushType](0,i.coordSys,e.coordRange),u=e.__rangeOffset;e.range=u?m[e.brushType](l.values,u.offset,(n=l.xyMinMax,r=u.xyMinMax,o=v(n),a=v(r),isNaN((s=[o[0]/a[0],o[1]/a[1]])[0])&&(s[0]=1),isNaN(s[1])&&(s[1]=1),s)):l.values}},this)},e.prototype.makePanelOpts=function(e,t){return(0,n.map)(this._targetInfoList,function(i){var n=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:t?t(i):null,clipPath:o.x0(n),isTargetByCursor:o.G(n,e,i.coordSysModel),getLinearBrushOtherExtent:o.VM(n)}})},e.prototype.controlSeries=function(e,t,i){var r=this.findTargetInfo(e,i);return!0===r||r&&(0,n.indexOf)(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var i=this._targetInfoList,n=c(t,e),r=0;r<i.length;r++){var o=i[r],a=e.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<d.length;s++)if(d[s](n,o))return o}return!0},e}();function u(e){return e[0]>e[1]&&e.reverse(),e}function c(e,t){return(0,a.pm)(e,t,{includeMainTypes:s})}var h={grid:function(e,t){var i=e.xAxisModels,r=e.yAxisModels,o=e.gridModels,a=(0,n.createHashMap)(),s={},l={};(i||r||o)&&((0,n.each)(i,function(e){var t=e.axis.grid.model;a.set(t.id,t),s[t.id]=!0}),(0,n.each)(r,function(e){var t=e.axis.grid.model;a.set(t.id,t),l[t.id]=!0}),(0,n.each)(o,function(e){a.set(e.id,e),s[e.id]=!0,l[e.id]=!0}),a.each(function(e){var o=e.coordinateSystem,a=[];(0,n.each)(o.getCartesians(),function(e,t){((0,n.indexOf)(i,e.getAxis("x").model)>=0||(0,n.indexOf)(r,e.getAxis("y").model)>=0)&&a.push(e)}),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:a[0],coordSyses:a,getPanelRect:p.grid,xAxisDeclared:s[e.id],yAxisDeclared:l[e.id]})}))},geo:function(e,t){(0,n.each)(e.geoModels,function(e){var i=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:i,coordSyses:[i],getPanelRect:p.geo})})}},d=[function(e,t){var i=e.xAxisModel,n=e.yAxisModel,r=e.gridModel;return!r&&i&&(r=i.axis.grid.model),!r&&n&&(r=n.axis.grid.model),r&&r===t.gridModel},function(e,t){var i=e.geoModel;return i&&i===t.geoModel}],p={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(r.getTransform(e)),t}},g={lineX:(0,n.curry)(f,0),lineY:(0,n.curry)(f,1),rect:function(e,t,i,n){var r=e?t.pointToData([i[0][0],i[1][0]],n):t.dataToPoint([i[0][0],i[1][0]],n),o=e?t.pointToData([i[0][1],i[1][1]],n):t.dataToPoint([i[0][1],i[1][1]],n),a=[u([r[0],o[0]]),u([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,i,r){var o=[[1/0,-1/0],[1/0,-1/0]];return{values:(0,n.map)(i,function(i){var n=e?t.pointToData(i,r):t.dataToPoint(i,r);return o[0][0]=Math.min(o[0][0],n[0]),o[1][0]=Math.min(o[1][0],n[1]),o[0][1]=Math.max(o[0][1],n[0]),o[1][1]=Math.max(o[1][1],n[1]),n}),xyMinMax:o}}};function f(e,t,i,r){var o=i.getAxis(["x","y"][e]),a=u((0,n.map)([0,1],function(e){return t?o.coordToData(o.toLocalCoord(r[e]),!0):o.toGlobalCoord(o.dataToCoord(r[e]))})),s=[];return s[e]=a,s[1-e]=[NaN,NaN],{values:a,xyMinMax:s}}var m={lineX:(0,n.curry)(y,0),lineY:(0,n.curry)(y,1),rect:function(e,t,i){return[[e[0][0]-i[0]*t[0][0],e[0][1]-i[0]*t[0][1]],[e[1][0]-i[1]*t[1][0],e[1][1]-i[1]*t[1][1]]]},polygon:function(e,t,i){return(0,n.map)(e,function(e,n){return[e[0]-i[0]*t[n][0],e[1]-i[1]*t[n][1]]})}};function y(e,t,i,n){return[t[0]-n[e]*i[0],t[1]-n[e]*i[1]]}function v(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}let x=l},37892:function(e,t,i){i.d(t,{Z:()=>h});var n=i(69988),r=i(77654),o=i(9474),a=i(20619),s=i(67975);function l(e,t,i,n,r){e.pointerChecker&&e.pointerChecker(n,r.originX,r.originY)&&(o.sT(n.event),u(e,t,i,n,r))}function u(e,t,i,n,r){r.isAvailableBehavior=(0,s.bind)(c,null,i,n),e.trigger(t,r)}function c(e,t,i){var n=i[e];return!e||n&&(!(0,s.isString)(n)||t.event[n+"Key"])}let h=function(e){function t(t){var i=e.call(this)||this;i._zr=t;var n=(0,s.bind)(i._mousedownHandler,i),r=(0,s.bind)(i._mousemoveHandler,i),o=(0,s.bind)(i._mouseupHandler,i),a=(0,s.bind)(i._mousewheelHandler,i),l=(0,s.bind)(i._pinchHandler,i);return i.enable=function(e,i){this.disable(),this._opt=(0,s.defaults)((0,s.clone)(i)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),(!0===e||"move"===e||"pan"===e)&&(t.on("mousedown",n),t.on("mousemove",r),t.on("mouseup",o)),(!0===e||"scale"===e||"zoom"===e)&&(t.on("mousewheel",a),t.on("pinch",l))},i.disable=function(){t.off("mousedown",n),t.off("mousemove",r),t.off("mouseup",o),t.off("mousewheel",a),t.off("pinch",l)},i}return(0,n.ZT)(t,e),t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!o.x1(e)){for(var t=e.target;t;){if(t.draggable)return;t=t.__hostTarget||t.parent}var i=e.offsetX,n=e.offsetY;this.pointerChecker&&this.pointerChecker(e,i,n)&&(this._x=i,this._y=n,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!c("moveOnMouseMove",e,this._opt)||"pinch"===e.gestureEvent||a.Tf(this._zr,"globalPan"))){var t=e.offsetX,i=e.offsetY,n=this._x,r=this._y;this._x=t,this._y=i,this._opt.preventDefaultMouseMove&&o.sT(e.event),u(this,"pan","moveOnMouseMove",e,{dx:t-n,dy:i-r,oldX:n,oldY:r,newX:t,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){o.x1(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=c("zoomOnMouseWheel",e,this._opt),i=c("moveOnMouseWheel",e,this._opt),n=e.wheelDelta,r=Math.abs(n),o=e.offsetX,a=e.offsetY;if(0!==n&&(t||i)){if(t){var s=r>3?1.4:r>1?1.2:1.1;l(this,"zoom","zoomOnMouseWheel",e,{scale:n>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(i){var u=Math.abs(n);l(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:(n>0?1:-1)*(u>3?.4:u>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!a.Tf(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;l(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(r.Z)},34921:function(e,t,i){i.d(t,{G:()=>l,VM:()=>s,x0:()=>a});var n=i(9495),r=i(70226),o=i(29790);function a(e){return e=u(e),function(t){return o.clipPointsByRect(t,e)}}function s(e,t){return e=u(e),function(i){var n=null!=t?t:i,r=n?e.width:e.height,o=n?e.x:e.y;return[o,o+(r||0)]}}function l(e,t,i){var n=u(e);return function(e,o){return n.contain(o[0],o[1])&&!(0,r.l)(e,t,i)}}function u(e){return n.Z.create(e)}},70226:function(e,t,i){i.d(t,{l:()=>r});var n={axisPointer:1,tooltip:1,brush:1};function r(e,t,i){var r=t.getComponentByElement(e.topTarget),o=r&&r.coordinateSystem;return r&&r!==i&&!n.hasOwnProperty(r.mainType)&&o&&o.model!==i}},20619:function(e,t,i){i.d(t,{Ar:()=>s,Tf:()=>l,qn:()=>a});var n=i(59161),r=i(67975),o="\0_ec_interaction_mutex";function a(e,t,i){u(e)[t]=i}function s(e,t,i){var n=u(e);n[t]===i&&(n[t]=null)}function l(e,t){return!!u(e)[t]}function u(e){return e[o]||(e[o]={})}n.zl({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},r.noop)},60630:function(e,t,i){i.d(t,{b:()=>a,l:()=>s});var n=i(50651),r=i(40814),o=i(31969);function a(e,t,i){var r=t.getBoxLayoutParams(),o=t.get("padding"),a={width:i.getWidth(),height:i.getHeight()},s=(0,n.ME)(r,a,o);(0,n.BZ)(t.get("orient"),e,t.get("itemGap"),s.width,s.height),(0,n.p$)(e,r,a,o)}function s(e,t){var i=r.MY(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new o.Z({shape:{x:e.x-i[3],y:e.y-i[0],width:e.width+i[1]+i[3],height:e.height+i[0]+i[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1})}},12920:function(e,t,i){function n(e,t,i,n,a,s){e=e||0;var l,u=i[1]-i[0];if(null!=a&&(a=o(a,[0,u])),null!=s&&(s=Math.max(s,null!=a?a:0)),"all"===n){var c=Math.abs(t[1]-t[0]);c=o(c,[0,u]),a=s=o(c,[a,s]),n=0}t[0]=o(t[0],i),t[1]=o(t[1],i);var h=r(t,n);t[n]+=e;var d=a||0,p=i.slice();return h.sign<0?p[0]+=d:p[1]-=d,t[n]=o(t[n],p),l=r(t,n),null!=a&&(l.sign!==h.sign||l.span<a)&&(t[1-n]=t[n]+h.sign*a),l=r(t,n),null!=s&&l.span>s&&(t[1-n]=t[n]+l.sign*s),t}function r(e,t){var i=e[t]-e[1-t];return{span:Math.abs(i),sign:i>0?-1:i<0?1:t?-1:1}}function o(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}i.d(t,{Z:()=>n})},27806:function(e,t,i){i.d(t,{N:()=>H});var n=i(36232),r=i(69988),o=i(67975),a=i(16505),s=i(86571),l=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i.layoutMode={type:"box",ignoreSize:!0},i}return(0,r.ZT)(t,e),t.prototype.init=function(e,t,i){this.mergeDefaultAndTheme(e,i),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,i){e.prototype.mergeOption.call(this,t,i),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,i=this.ecModel;!0===t&&(t=e.selector=["all","inverse"]),o.isArray(t)&&o.each(t,function(e,n){var r;o.isString(e)&&(e={type:e}),t[n]=o.merge(e,"all"===(r=e.type)?{type:"all",title:i.getLocaleModel().get(["legend","selector","all"])}:"inverse"===r?{type:"inverse",title:i.getLocaleModel().get(["legend","selector","inverse"])}:void 0)})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,i=0;i<e.length;i++){var n=e[i].get("name");if(this.isSelected(n)){this.select(n),t=!0;break}}t||this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],i=[];e.eachRawSeries(function(n){var r,o=n.name;if(i.push(o),n.legendVisualProvider){var a=n.legendVisualProvider.getAllNames();e.isSeriesFiltered(n)||(i=i.concat(a)),a.length?t=t.concat(a):r=!0}else r=!0;r&&(0,s.yu)(n)&&t.push(n.name)}),this._availableNames=i;var n=this.get("data")||t,r=o.createHashMap(),l=o.map(n,function(e){return((o.isString(e)||o.isNumber(e))&&(e={name:e}),r.get(e.name))?null:(r.set(e.name,!0),new a.Z(e,this,this.ecModel))},this);this._data=o.filter(l,function(e){return!!e})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;if("single"===this.get("selectedMode")){var i=this._data;o.each(i,function(e){t[e.get("name")]=!1})}t[e]=!0},t.prototype.unSelect=function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;o.each(e,function(e){t[e.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;o.each(e,function(e){var i=e.get("name",!0);t.hasOwnProperty(i)||(t[i]=!0),t[i]=!t[i]})},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&o.indexOf(this._availableNames,e)>=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(i(45352).Z),u=i(54411),c=i(37293),h=i(76150),d=i(31969),p=i(29790),g=i(98306),f=i(33361),m=i(60630),y=i(50651),v=i(64292),x=i(5965),_=i(96151),b=i(10428),S=o.curry,M=o.each,w=c.Z,A=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i.newlineDisabled=!1,i}return(0,r.ZT)(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new w),this.group.add(this._selectorGroup=new w),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,i){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var r=e.get("align"),a=e.get("orient");r&&"auto"!==r||(r="right"===e.get("left")&&"vertical"===a?"right":"left");var s=e.get("selector",!0),l=e.get("selectorPosition",!0);s&&(!l||"auto"===l)&&(l="horizontal"===a?"end":"start"),this.renderInner(r,e,t,i,s,a,l);var u=e.getBoxLayoutParams(),c={width:i.getWidth(),height:i.getHeight()},h=e.get("padding"),d=y.ME(u,c,h),p=this.layoutInner(e,r,d,n,s,l),g=y.ME(o.defaults({width:p.width,height:p.height},u),c,h);this.group.x=g.x-p.x,this.group.y=g.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=(0,m.l)(p,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,i,n,r,a,s){var l=this.getContentGroup(),c=o.createHashMap(),h=t.get("selectedMode"),d=[];i.eachRawSeries(function(e){e.get("legendHoverLink")||d.push(e.id)}),M(t.getData(),function(r,a){var s=r.get("name");if(!this.newlineDisabled&&(""===s||"\n"===s)){var p=new w;p.newline=!0,l.add(p);return}var g=i.getSeriesByName(s)[0];if(!c.get(s)){if(g){var f=g.getData(),m=f.getVisual("legendLineStyle")||{},y=f.getVisual("legendIcon"),v=f.getVisual("style"),x=this._createItem(g,s,a,r,t,e,m,v,y,h,n);x.on("click",S(I,s,null,n,d)).on("mouseover",S(T,g.name,null,n,d)).on("mouseout",S(D,g.name,null,n,d)),i.ssr&&x.eachChild(function(e){var t=(0,b.A)(e);t.seriesIndex=g.seriesIndex,t.dataIndex=a,t.ssrType="legend"}),c.set(s,!0)}else i.eachRawSeries(function(l){if(!c.get(s)&&l.legendVisualProvider){var p=l.legendVisualProvider;if(p.containName(s)){var g=p.indexOfName(s),f=p.getItemVisual(g,"style"),m=p.getItemVisual(g,"legendIcon"),y=(0,u.parse)(f.fill);y&&0===y[3]&&(y[3]=.2,f=o.extend(o.extend({},f),{fill:(0,u.stringify)(y,"rgba")}));var v=this._createItem(l,s,a,r,t,e,{},f,m,h,n);v.on("click",S(I,null,s,n,d)).on("mouseover",S(T,null,s,n,d)).on("mouseout",S(D,null,s,n,d)),i.ssr&&v.eachChild(function(e){var t=(0,b.A)(e);t.seriesIndex=l.seriesIndex,t.dataIndex=a,t.ssrType="legend"}),c.set(s,!0)}}},this)}},this),r&&this._createSelector(r,t,n,a,s)},t.prototype._createSelector=function(e,t,i,n,r){var o=this.getSelectorGroup();M(e,function(e){var n=e.type,r=new h.ZP({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:"all"===n?"legendAllSelect":"legendInverseSelect"})}});o.add(r);var a=t.getModel("selectorLabel"),s=t.getModel(["emphasis","selectorLabel"]);(0,f.ni)(r,{normal:a,emphasis:s},{defaultText:e.title}),(0,g.vF)(r)})},t.prototype._createItem=function(e,t,i,n,r,a,s,l,u,c,m){var y=e.visualDrawType,v=r.get("itemWidth"),b=r.get("itemHeight"),S=r.isSelected(t),A=n.get("symbolRotate"),I=n.get("symbolKeepAspect"),C=n.get("icon"),T=function(e,t,i,n,r,o,a){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=2*(t.lineWidth>0)),M(e,function(i,n){"inherit"===e[n]&&(e[n]=t[n])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=0===e.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?(0,_.I)(h,a):n.decal,"inherit"===u.fill&&(u.fill=n[r]),"inherit"===u.stroke&&(u.stroke=n[c]),"inherit"===u.opacity&&(u.opacity=("fill"===r?n:i).opacity),s(u,n);var d=t.getModel("lineStyle"),p=d.getLineStyle();if(s(p,i),"auto"===u.fill&&(u.fill=n.fill),"auto"===u.stroke&&(u.stroke=n.fill),"auto"===p.stroke&&(p.stroke=n.fill),!o){var g=t.get("inactiveBorderWidth"),f=u[c];u.lineWidth="auto"===g?n.lineWidth>0&&f?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}(u=C||u||"roundRect",n,s,l,y,S,m),D=new w,Z=n.getModel("textStyle");if(o.isFunction(e.getLegendIcon)&&(!C||"inherit"===C))D.add(e.getLegendIcon({itemWidth:v,itemHeight:b,icon:u,iconRotate:A,itemStyle:T.itemStyle,lineStyle:T.lineStyle,symbolKeepAspect:I}));else{var L,k,O,P="inherit"===C&&e.getData().getVisual("symbol")?"inherit"===A?e.getData().getVisual("symbolRotate"):A:0;D.add((k=(L={itemWidth:v,itemHeight:b,icon:u,iconRotate:P,itemStyle:T.itemStyle,lineStyle:T.lineStyle,symbolKeepAspect:I}).icon||"roundRect",(O=(0,x.th)(k,0,0,L.itemWidth,L.itemHeight,L.itemStyle.fill,L.symbolKeepAspect)).setStyle(L.itemStyle),O.rotation=(L.iconRotate||0)*Math.PI/180,O.setOrigin([L.itemWidth/2,L.itemHeight/2]),k.indexOf("empty")>-1&&(O.style.stroke=O.style.fill,O.style.fill="#fff",O.style.lineWidth=2),O))}var R=r.get("formatter"),V=t;o.isString(R)&&R?V=R.replace("{name}",null!=t?t:""):o.isFunction(R)&&(V=R(t));var N=S?Z.getTextColor():n.get("inactiveColor");D.add(new h.ZP({style:(0,f.Lr)(Z,{text:V,x:"left"===a?v+5:-5,y:b/2,fill:N,align:a,verticalAlign:"middle"},{inheritColor:N})}));var z=new d.Z({shape:D.getBoundingRect(),style:{fill:"transparent"}}),E=n.getModel("tooltip");return E.get("show")&&p.setTooltipConfig({el:z,componentModel:r,itemName:t,itemTooltipOption:E.option}),D.add(z),D.eachChild(function(e){e.silent=!0}),z.silent=!c,this.getContentGroup().add(D),(0,g.vF)(D),D.__legendDataIndex=i,D},t.prototype.layoutInner=function(e,t,i,n,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();y.BZ(e.get("orient"),a,e.get("itemGap"),i.width,i.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),!r)return a.x=u[0],a.y=u[1],this.group.getBoundingRect();y.BZ("horizontal",s,e.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=0===p?"width":"height",f=0===p?"height":"width",m=0===p?"y":"x";"end"===o?h[p]+=l[g]+d:u[p]+=c[g]+d,h[1-p]+=l[f]/2-c[f]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var v={x:0,y:0};return v[g]=l[g]+d+c[g],v[f]=Math.max(l[f],c[f]),v[m]=Math.min(0,c[m]+h[1-p]),v},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(v.Z);function I(e,t,i,n){D(e,t,i,n),i.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),T(e,t,i,n)}function C(e){for(var t,i=e.getZr().storage.getDisplayList(),n=0,r=i.length;n<r&&!(t=i[n].states.emphasis);)n++;return t&&t.hoverLayer}function T(e,t,i,n){C(i)||i.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function D(e,t,i,n){C(i)||i.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}function Z(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(e){for(var i=0;i<t.length;i++)if(!t[i].isSelected(e.name))return!1;return!0})}function L(e,t,i){var n,r={},a="toggleSelected"===e;return i.eachComponent("legend",function(i){a&&null!=n?i[n?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?i[e]():(i[e](t.name),n=i.isSelected(t.name));var s=i.getData();(0,o.each)(s,function(e){var t=e.get("name");if("\n"!==t&&""!==t){var n=i.isSelected(t);r.hasOwnProperty(t)?r[t]=r[t]&&n:r[t]=n}})}),"allSelect"===e||"inverseSelect"===e?{selected:r}:{name:t.name,selected:r}}function k(e){e.registerComponentModel(l),e.registerComponentView(A),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,Z),e.registerSubTypeDefaulter("legend",function(){return"plain"}),e.registerAction("legendToggleSelect","legendselectchanged",(0,o.curry)(L,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",(0,o.curry)(L,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",(0,o.curry)(L,"inverseSelect")),e.registerAction("legendSelect","legendselected",(0,o.curry)(L,"select")),e.registerAction("legendUnSelect","legendunselected",(0,o.curry)(L,"unSelect"))}var O=i(4587),P=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,r.ZT)(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,i,n){var r=(0,y.tE)(t);e.prototype.init.call(this,t,i,n),R(this,t,r)},t.prototype.mergeOption=function(t,i){e.prototype.mergeOption.call(this,t,i),R(this,this.option,t)},t.type="legend.scroll",t.defaultOption=(0,O.ZL)(l.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(l);function R(e,t,i){var n=e.getOrient(),r=[1,1];r[n.index]=0,(0,y.dt)(t,i,{type:"box",ignoreSize:!!r})}var V=i(99858),N=c.Z,z=["width","height"],E=["x","y"],G=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i.newlineDisabled=!0,i._currentIndex=0,i}return(0,r.ZT)(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new N),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new N)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,i,n,r,a,s,l){var u=this;e.prototype.renderInner.call(this,t,i,n,r,a,s,l);var c=this._controllerGroup,d=i.get("pageIconSize",!0),g=o.isArray(d)?d:[d,d];m("pagePrev",0);var f=i.getModel("pageTextStyle");function m(e,t){var n=p.createIcon(i.get("pageIcons",!0)[i.getOrient().name][t],{onclick:o.bind(u._pageGo,u,e+"DataIndex",i,r)},{x:-g[0]/2,y:-g[1]/2,width:g[0],height:g[1]});n.name=e,c.add(n)}c.add(new h.ZP({name:"pageText",style:{text:"xx/xx",fill:f.getTextColor(),font:f.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),m("pageNext",1)},t.prototype.layoutInner=function(e,t,i,n,r,a){var s=this.getSelectorGroup(),l=e.getOrient().index,u=z[l],c=E[l],h=z[1-l],d=E[1-l];r&&y.BZ("horizontal",s,e.get("selectorItemGap",!0));var p=e.get("selectorButtonGap",!0),g=s.getBoundingRect(),f=[-g.x,-g.y],m=o.clone(i);r&&(m[u]=i[u]-g[u]-p);var v=this._layoutContentAndController(e,n,m,l,u,h,d,c);if(r){if("end"===a)f[l]+=v[u]+p;else{var x=g[u]+p;f[l]-=x,v[c]-=x}v[u]+=g[u]+p,f[1-l]+=v[d]+v[h]/2-g[h]/2,v[h]=Math.max(v[h],g[h]),v[d]=Math.min(v[d],g[d]+f[1-l]),s.x=f[0],s.y=f[1],s.markRedraw()}return v},t.prototype._layoutContentAndController=function(e,t,i,n,r,a,s,l){var u=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;y.BZ(e.get("orient"),u,e.get("itemGap"),n?i.width:null,n?null:i.height),y.BZ("horizontal",h,e.get("pageButtonItemGap",!0));var p=u.getBoundingRect(),g=h.getBoundingRect(),f=this._showController=p[r]>i[r],m=[-p.x,-p.y];t||(m[n]=u[l]);var v=[0,0],x=[-g.x,-g.y],_=o.retrieve2(e.get("pageButtonGap",!0),e.get("itemGap",!0));f&&("end"===e.get("pageButtonPosition",!0)?x[n]+=i[r]-g[r]:v[n]+=g[r]+_),x[1-n]+=p[a]/2-g[a]/2,u.setPosition(m),c.setPosition(v),h.setPosition(x);var b={x:0,y:0};if(b[r]=f?i[r]:p[r],b[a]=Math.max(p[a],g[a]),b[s]=Math.min(0,g[s]+x[1-n]),c.__rectSize=i[r],f){var S={x:0,y:0};S[r]=Math.max(i[r]-g[r]-_,0),S[a]=b[a],c.setClipPath(new d.Z({shape:S})),c.__rectSize=S[r]}else h.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var M=this._getPageInfo(e);return null!=M.pageIndex&&V.D(u,{x:M.contentPosition[0],y:M.contentPosition[1]},f?e:null),this._updatePageInfoView(e,M),b},t.prototype._pageGo=function(e,t,i){var n=this._getPageInfo(t)[e];null!=n&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var i=this._controllerGroup;o.each(["pagePrev","pageNext"],function(n){var r=null!=t[n+"DataIndex"],o=i.childOfName(n);o&&(o.setStyle("fill",r?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")});var n=i.childOfName("pageText"),r=e.get("pageFormatter"),a=t.pageIndex,s=null!=a?a+1:0,l=t.pageCount;n&&r&&n.setStyle("text",o.isString(r)?r.replace("{current}",null==s?"":s+"").replace("{total}",null==l?"":l+""):r({current:s,total:l}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),i=this.getContentGroup(),n=this._containerGroup.__rectSize,r=e.getOrient().index,o=z[r],a=E[r],s=this._findTargetItemIndex(t),l=i.children(),u=l[s],c=l.length,h=+!!c,d={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var p=v(u);d.contentPosition[r]=-p.s;for(var g=s+1,f=p,m=p,y=null;g<=c;++g)(!(y=v(l[g]))&&m.e>f.s+n||y&&!x(y,f.s))&&(f=m.i>f.i?m:y)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=f.i),++d.pageCount),m=y;for(var g=s-1,f=p,m=p,y=null;g>=-1;--g)(!(y=v(l[g]))||!x(m,y.s))&&f.i<m.i&&(m=f,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=f.i),++d.pageCount,++d.pageIndex),f=y;return d;function v(e){if(e){var t=e.getBoundingRect(),i=t[a]+e[a];return{s:i,e:i+t[o],i:e.__legendDataIndex}}}function x(e,t){return e.e>=t&&e.s<=t+n}},t.prototype._findTargetItemIndex=function(e){var t,i;return this._showController?(this.getContentGroup().eachChild(function(n,r){var o=n.__legendDataIndex;null==i&&null!=o&&(i=r),o===e&&(t=r)}),null!=t?t:i):0},t.type="legend.scroll",t}(A);function B(e){(0,n.D)(k),e.registerComponentModel(P),e.registerComponentView(G),function(e){e.registerAction("legendScroll","legendscroll",function(e,t){var i=e.scrollDataIndex;null!=i&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(e){e.setScrollDataIndex(i)})})}(e)}function H(e){(0,n.D)(k),(0,n.D)(B)}},13737:function(e,t,i){i.d(t,{Z:()=>p});var n=i(69988),r=i(67975),o=i(4647),a=i(28780),s=i(45352),l=i(86571),u=i(31481);function c(e){(0,l.Cc)(e,"label",["show"])}var h=(0,l.Yf)(),d=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i.createdBySelf=!1,i}return(0,n.ZT)(t,e),t.prototype.init=function(e,t,i){this.mergeDefaultAndTheme(e,i),this._mergeOption(e,i,!1,!0)},t.prototype.isAnimationEnabled=function(){if(o.Z.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,i,n){var o=this.mainType;i||t.eachSeries(function(e){var i=e.get(this.mainType,!0),a=h(e)[o];if(!i||!i.data){h(e)[o]=null;return}a?a._mergeOption(i,t,!0):(n&&c(i),r.each(i.data,function(e){e instanceof Array?(c(e[0]),c(e[1])):c(e)}),a=this.createMarkerModelFromSeries(i,this,t),r.extend(a,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),a.__hostSeries=e),h(e)[o]=a},this)},t.prototype.formatTooltip=function(e,t,i){var n=this.getData(),r=this.getRawValue(e),o=n.getName(e);return(0,u.TX)("section",{header:this.name,blocks:[(0,u.TX)("nameValue",{name:o,value:r,noName:!o,noValue:null==r})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.getMarkerModelFromSeries=function(e,t){return h(e)[t]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(s.Z);r.mixin(d,a.X.prototype);let p=d},87309:function(e,t,i){i.d(t,{Z:()=>c});var n=i(69988),r=i(64292),o=i(67975),a=i(13737),s=i(86571),l=i(98306),u=(0,s.Yf)();let c=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.ZT)(t,e),t.prototype.init=function(){this.markerGroupMap=(0,o.createHashMap)()},t.prototype.render=function(e,t,i){var n=this,r=this.markerGroupMap;r.each(function(e){u(e).keep=!1}),t.eachSeries(function(e){var r=a.Z.getMarkerModelFromSeries(e,n.type);r&&n.renderSeries(e,r,t,i)}),r.each(function(e){u(e).keep||n.group.remove(e.group)})},t.prototype.markKeep=function(e){u(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var i=this;(0,o.each)(e,function(e){var n=a.Z.getMarkerModelFromSeries(e,i.type);n&&n.getData().eachItemGraphicEl(function(e){e&&(t?(0,l.SX)(e):(0,l.VP)(e))})})},t.type="marker",t}(r.Z)},25936:function(e,t,i){i.d(t,{Z:()=>r});var n=i(67975);function r(e,t){if(!e)return!1;for(var i=(0,n.isArray)(e)?e:[e],r=0;r<i.length;r++)if(i[r]&&i[r][t])return!0;return!1}},98857:function(e,t,i){i.d(t,{N:()=>L});var n=i(25936),r=i(69988),o=i(13737),a=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,r.ZT)(t,e),t.prototype.createMarkerModelFromSeries=function(e,i,n){return new t(e,i,n)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(o.Z),s=i(54411),l=i(83208),u=i(82517),c=i(37293),h=i(24484),d=i(99858),p=i(98306),g=i(14285),f=i(87309),m=i(67975),y=i(82667),v=i(86571),x=i(43928),_=i(33361),b=i(10428),S=i(54503),M=(0,v.Yf)(),w=function(e,t,i,n){var r=n[0],o=n[1];if(r&&o){var a=g.Z3(e,r),s=g.Z3(e,o),l=a.coord,u=s.coord;l[0]=(0,m.retrieve)(l[0],-1/0),l[1]=(0,m.retrieve)(l[1],-1/0),u[0]=(0,m.retrieve)(u[0],1/0),u[1]=(0,m.retrieve)(u[1],1/0);var c=(0,m.mergeAll)([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c}};function A(e){return!isNaN(e)&&!isFinite(e)}function I(e,t,i,n){var r=1-e;return A(t[r])&&A(i[r])}function C(e,t){var i=t.coord[0],n=t.coord[1],r={coord:i,x:t.x0,y:t.y0},o={coord:n,x:t.x1,y:t.y1};return(0,y.H)(e,"cartesian2d")?!!(i&&n&&(I(1,i,n,e)||I(0,i,n,e)))||g.i6(e,r,o):g.mQ(e,r)||g.mQ(e,o)}function T(e,t,i,n,r){var o,a=n.coordinateSystem,s=e.getItemModel(t),l=u.GM(s.get(i[0]),r.getWidth()),c=u.GM(s.get(i[1]),r.getHeight());if(isNaN(l)||isNaN(c)){if(n.getMarkerPosition){var h=e.getValues(["x0","y0"],t),d=e.getValues(["x1","y1"],t),p=a.clampData(h),g=a.clampData(d),f=[];"x0"===i[0]?f[0]=p[0]>g[0]?d[0]:h[0]:f[0]=p[0]>g[0]?h[0]:d[0],"y0"===i[1]?f[1]=p[1]>g[1]?d[1]:h[1]:f[1]=p[1]>g[1]?h[1]:d[1],o=n.getMarkerPosition(f,i,!0)}else{var m=e.get(i[0],t),v=e.get(i[1],t),x=[m,v];a.clampData&&a.clampData(x,x),o=a.dataToPoint(x,!0)}if((0,y.H)(a,"cartesian2d")){var _=a.getAxis("x"),b=a.getAxis("y"),m=e.get(i[0],t),v=e.get(i[1],t);A(m)?o[0]=_.toGlobalCoord(_.getExtent()[+("x0"!==i[0])]):A(v)&&(o[1]=b.toGlobalCoord(b.getExtent()[+("y0"!==i[1])]))}isNaN(l)||(o[0]=l),isNaN(c)||(o[1]=c)}else o=[l,c];return o}var D=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Z=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,r.ZT)(t,e),t.prototype.updateTransform=function(e,t,i){t.eachSeries(function(e){var t=o.Z.getMarkerModelFromSeries(e,"markArea");if(t){var n=t.getData();n.each(function(t){var r=(0,m.map)(D,function(r){return T(n,t,r,e,i)});n.setItemLayout(t,r),n.getItemGraphicEl(t).setShape("points",r)})}},this)},t.prototype.renderSeries=function(e,t,i,n){var r=e.coordinateSystem,o=e.id,a=e.getData(),g=this.markerGroupMap,f=g.get(o)||g.set(o,{group:new c.Z});this.group.add(f.group),this.markKeep(f);var y=function(e,t,i){if(e){var n,r,o=(0,m.map)(e&&e.dimensions,function(e){var i=t.getData(),n=i.getDimensionInfo(i.mapDimension(e))||{};return(0,m.extend)((0,m.extend)({},n),{name:e,ordinalMeta:null})});r=(0,m.map)(["x0","y0","x1","y1"],function(e,t){return{name:e,type:o[t%2].type}}),n=new l.Z(r,i)}else r=[{name:"value",type:"float"}],n=new l.Z(r,i);var a=(0,m.map)(i.get("data"),(0,m.curry)(w,t,e,i));e&&(a=(0,m.filter)(a,(0,m.curry)(C,e)));var s=e?function(e,t,i,n){var o=e.coord[Math.floor(n/2)][n%2];return(0,S.yQ)(o,r[n])}:function(e,t,i,n){return(0,S.yQ)(e.value,r[n])};return n.initData(a,null,s),n.hasItemOption=!0,n}(r,e,t);t.setData(y),y.each(function(t){var i=(0,m.map)(D,function(i){return T(y,t,i,e,n)}),o=r.getAxis("x").scale,l=r.getAxis("y").scale,c=o.getExtent(),h=l.getExtent(),d=[o.parse(y.get("x0",t)),o.parse(y.get("x1",t))],p=[l.parse(y.get("y0",t)),l.parse(y.get("y1",t))];u.dt(d),u.dt(p);var g=!(c[0]>d[1]||c[1]<d[0]||h[0]>p[1]||h[1]<p[0]);y.setItemLayout(t,{points:i,allClipped:!g});var f=y.getItemModel(t).getModel("itemStyle").getItemStyle(),v=(0,x.UL)(a,"color");!f.fill&&(f.fill=v,(0,m.isString)(f.fill)&&(f.fill=s.modifyAlpha(f.fill,.4))),f.stroke||(f.stroke=v),y.setItemVisual(t,"style",f)}),y.diff(M(f).data).add(function(e){var t=y.getItemLayout(e);if(!t.allClipped){var i=new h.Z({shape:{points:t.points}});y.setItemGraphicEl(e,i),f.group.add(i)}}).update(function(e,i){var n=M(f).data.getItemGraphicEl(i),r=y.getItemLayout(e);r.allClipped?n&&f.group.remove(n):(n?d.D(n,{shape:{points:r.points}},t,e):n=new h.Z({shape:{points:r.points}}),y.setItemGraphicEl(e,n),f.group.add(n))}).remove(function(e){var t=M(f).data.getItemGraphicEl(e);f.group.remove(t)}).execute(),y.eachItemGraphicEl(function(e,i){var n=y.getItemModel(i),r=y.getItemVisual(i,"style");e.useStyle(y.getItemVisual(i,"style")),(0,_.ni)(e,(0,_.k3)(n),{labelFetcher:t,labelDataIndex:i,defaultText:y.getName(i)||"",inheritColor:(0,m.isString)(r.fill)?s.modifyAlpha(r.fill,1):"#000"}),(0,p.WO)(e,n),(0,p.k5)(e,null,null,n.get(["emphasis","disabled"])),(0,b.A)(e).dataModel=t}),M(f).data=y,f.group.silent=t.get("silent")||e.get("silent")},t.type="markArea",t}(f.Z);function L(e){e.registerComponentModel(a),e.registerComponentView(Z),e.registerPreprocessor(function(e){(0,n.Z)(e.series,"markArea")&&(e.markArea=e.markArea||{})})}},219:function(e,t,i){i.d(t,{N:()=>A});var n=i(25936),r=i(69988),o=i(13737),a=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,r.ZT)(t,e),t.prototype.createMarkerModelFromSeries=function(e,i,n){return new t(e,i,n)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(o.Z),s=i(83208),l=i(82517),u=i(14285),c=i(9460),h=i(87309),d=i(97384),p=i(82667),g=i(10428),f=i(67975),m=i(86571),y=i(43928),v=(0,m.Yf)(),x=function(e,t,i,n){var r,o=e.getData();if((0,f.isArray)(n))r=n;else{var a=n.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=n.xAxis||null!=n.yAxis){var s=void 0,l=void 0;if(null!=n.yAxis||null!=n.xAxis)s=t.getAxis(null!=n.yAxis?"y":"x"),l=(0,f.retrieve)(n.yAxis,n.xAxis);else{var c=u.r(n,o,t,e);s=c.valueAxis;var h=(0,d.IR)(o,c.valueDataDim);l=u.Nn(o,h,a)}var p=+("x"!==s.dim),g=1-p,m=(0,f.clone)(n),y={coord:[]};m.type=null,m.coord=[],m.coord[g]=-1/0,y.coord[g]=1/0;var v=i.get("precision");v>=0&&(0,f.isNumber)(l)&&(l=+l.toFixed(Math.min(v,20))),m.coord[p]=y.coord[p]=l,r=[m,y,{type:a,valueIndex:n.valueIndex,value:l}]}else r=[]}var x=[u.Z3(e,r[0]),u.Z3(e,r[1]),(0,f.extend)({},r[2])];return x[2].type=x[2].type||null,(0,f.merge)(x[2],x[0]),(0,f.merge)(x[2],x[1]),x};function _(e){return!isNaN(e)&&!isFinite(e)}function b(e,t,i,n){var r=1-e,o=n.dimensions[e];return _(t[r])&&_(i[r])&&t[e]===i[e]&&n.getAxis(o).containData(t[e])}function S(e,t){if("cartesian2d"===e.type){var i=t[0].coord,n=t[1].coord;if(i&&n&&(b(1,i,n,e)||b(0,i,n,e)))return!0}return u.mQ(e,t[0])&&u.mQ(e,t[1])}function M(e,t,i,n,r){var o,a=n.coordinateSystem,s=e.getItemModel(t),u=l.GM(s.get("x"),r.getWidth()),c=l.GM(s.get("y"),r.getHeight());if(isNaN(u)||isNaN(c)){if(n.getMarkerPosition)o=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var h=a.dimensions,d=e.get(h[0],t),g=e.get(h[1],t);o=a.dataToPoint([d,g])}if((0,p.H)(a,"cartesian2d")){var f=a.getAxis("x"),m=a.getAxis("y"),h=a.dimensions;_(e.get(h[0],t))?o[0]=f.toGlobalCoord(f.getExtent()[+!i]):_(e.get(h[1],t))&&(o[1]=m.toGlobalCoord(m.getExtent()[+!i]))}isNaN(u)||(o[0]=u),isNaN(c)||(o[1]=c)}else o=[u,c];e.setItemLayout(t,o)}var w=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,r.ZT)(t,e),t.prototype.updateTransform=function(e,t,i){t.eachSeries(function(e){var t=o.Z.getMarkerModelFromSeries(e,"markLine");if(t){var n=t.getData(),r=v(t).from,a=v(t).to;r.each(function(t){M(r,t,!0,e,i),M(a,t,!1,e,i)}),n.each(function(e){n.setItemLayout(e,[r.getItemLayout(e),a.getItemLayout(e)])}),this.markerGroupMap.get(e.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,t,i,n){var r,o,a,l,h,d,p,m,_,b=e.coordinateSystem,w=e.id,A=e.getData(),I=this.markerGroupMap,C=I.get(w)||I.set(w,new c.Z);this.group.add(C.group);var T=(r=b,o=e,a=t,l=r?(0,f.map)(r&&r.dimensions,function(e){var t=o.getData().getDimensionInfo(o.getData().mapDimension(e))||{};return(0,f.extend)((0,f.extend)({},t),{name:e,ordinalMeta:null})}):[{name:"value",type:"float"}],h=new s.Z(l,a),d=new s.Z(l,a),p=new s.Z([],a),m=(0,f.map)(a.get("data"),(0,f.curry)(x,o,r,a)),r&&(m=(0,f.filter)(m,(0,f.curry)(S,r))),_=u.CS(!!r,l),h.initData((0,f.map)(m,function(e){return e[0]}),null,_),d.initData((0,f.map)(m,function(e){return e[1]}),null,_),p.initData((0,f.map)(m,function(e){return e[2]})),p.hasItemOption=!0,{from:h,to:d,line:p}),D=T.from,Z=T.to,L=T.line;v(t).from=D,v(t).to=Z,t.setData(L);var k=t.get("symbol"),O=t.get("symbolSize"),P=t.get("symbolRotate"),R=t.get("symbolOffset");function V(t,i,r){var o=t.getItemModel(i);M(t,i,r,e,n);var a=o.getModel("itemStyle").getItemStyle();null==a.fill&&(a.fill=(0,y.UL)(A,"color")),t.setItemVisual(i,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:(0,f.retrieve2)(o.get("symbolOffset",!0),R[+!r]),symbolRotate:(0,f.retrieve2)(o.get("symbolRotate",!0),P[+!r]),symbolSize:(0,f.retrieve2)(o.get("symbolSize"),O[+!r]),symbol:(0,f.retrieve2)(o.get("symbol",!0),k[+!r]),style:a})}(0,f.isArray)(k)||(k=[k,k]),(0,f.isArray)(O)||(O=[O,O]),(0,f.isArray)(P)||(P=[P,P]),(0,f.isArray)(R)||(R=[R,R]),T.from.each(function(e){V(D,e,!0),V(Z,e,!1)}),L.each(function(e){var t=L.getItemModel(e).getModel("lineStyle").getLineStyle();L.setItemLayout(e,[D.getItemLayout(e),Z.getItemLayout(e)]),null==t.stroke&&(t.stroke=D.getItemVisual(e,"style").fill),L.setItemVisual(e,{fromSymbolKeepAspect:D.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:D.getItemVisual(e,"symbolOffset"),fromSymbolRotate:D.getItemVisual(e,"symbolRotate"),fromSymbolSize:D.getItemVisual(e,"symbolSize"),fromSymbol:D.getItemVisual(e,"symbol"),toSymbolKeepAspect:Z.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:Z.getItemVisual(e,"symbolOffset"),toSymbolRotate:Z.getItemVisual(e,"symbolRotate"),toSymbolSize:Z.getItemVisual(e,"symbolSize"),toSymbol:Z.getItemVisual(e,"symbol"),style:t})}),C.updateData(L),T.line.eachItemGraphicEl(function(e){(0,g.A)(e).dataModel=t,e.traverse(function(e){(0,g.A)(e).dataModel=t})}),this.markKeep(C),C.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(h.Z);function A(e){e.registerComponentModel(a),e.registerComponentView(w),e.registerPreprocessor(function(e){(0,n.Z)(e.series,"markLine")&&(e.markLine=e.markLine||{})})}},17846:function(e,t,i){i.d(t,{N:()=>y});var n=i(25936),r=i(69988),o=i(13737),a=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,r.ZT)(t,e),t.prototype.createMarkerModelFromSeries=function(e,i,n){return new t(e,i,n)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(o.Z),s=i(5434),l=i(82517),u=i(83208),c=i(14285),h=i(87309),d=i(67975),p=i(10428),g=i(43928);function f(e,t,i){var n=t.coordinateSystem;e.each(function(r){var o,a=e.getItemModel(r),s=l.GM(a.get("x"),i.getWidth()),u=l.GM(a.get("y"),i.getHeight());if(isNaN(s)||isNaN(u)){if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,r));else if(n){var c=e.get(n.dimensions[0],r),h=e.get(n.dimensions[1],r);o=n.dataToPoint([c,h])}}else o=[s,u];isNaN(s)||(o[0]=s),isNaN(u)||(o[1]=u),e.setItemLayout(r,o)})}var m=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,r.ZT)(t,e),t.prototype.updateTransform=function(e,t,i){t.eachSeries(function(e){var t=o.Z.getMarkerModelFromSeries(e,"markPoint");t&&(f(t.getData(),e,i),this.markerGroupMap.get(e.id).updateLayout())},this)},t.prototype.renderSeries=function(e,t,i,n){var r,o,a,l,h,m,y,v=e.coordinateSystem,x=e.id,_=e.getData(),b=this.markerGroupMap,S=b.get(x)||b.set(x,new s.Z),M=(r=v,o=e,a=t,l=r?(0,d.map)(r&&r.dimensions,function(e){var t=o.getData().getDimensionInfo(o.getData().mapDimension(e))||{};return(0,d.extend)((0,d.extend)({},t),{name:e,ordinalMeta:null})}):[{name:"value",type:"float"}],h=new u.Z(l,a),m=(0,d.map)(a.get("data"),(0,d.curry)(c.Z3,o)),r&&(m=(0,d.filter)(m,(0,d.curry)(c.mQ,r))),y=c.CS(!!r,l),h.initData(m,null,y),h);t.setData(M),f(t.getData(),e,n),M.each(function(e){var i=M.getItemModel(e),n=i.getShallow("symbol"),r=i.getShallow("symbolSize"),o=i.getShallow("symbolRotate"),a=i.getShallow("symbolOffset"),s=i.getShallow("symbolKeepAspect");if((0,d.isFunction)(n)||(0,d.isFunction)(r)||(0,d.isFunction)(o)||(0,d.isFunction)(a)){var l=t.getRawValue(e),u=t.getDataParams(e);(0,d.isFunction)(n)&&(n=n(l,u)),(0,d.isFunction)(r)&&(r=r(l,u)),(0,d.isFunction)(o)&&(o=o(l,u)),(0,d.isFunction)(a)&&(a=a(l,u))}var c=i.getModel("itemStyle").getItemStyle(),h=(0,g.UL)(_,"color");c.fill||(c.fill=h),M.setItemVisual(e,{symbol:n,symbolSize:r,symbolRotate:o,symbolOffset:a,symbolKeepAspect:s,style:c})}),S.updateData(M),this.group.add(S.group),M.eachItemGraphicEl(function(e){e.traverse(function(e){(0,p.A)(e).dataModel=t})}),this.markKeep(S),S.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(h.Z);function y(e){e.registerComponentModel(a),e.registerComponentView(m),e.registerPreprocessor(function(e){(0,n.Z)(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}},14285:function(e,t,i){i.d(t,{CS:()=>g,Nn:()=>f,Z3:()=>c,i6:()=>p,mQ:()=>d,r:()=>h});var n=i(82517),r=i(97384),o=i(67975),a=i(54503);function s(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function l(e,t,i,o,a,s){var l=[],u=(0,r.M)(t,o)?t.getCalculationInfo("stackResultDimension"):o,c=f(t,u,e),h=t.indicesOfNearest(u,c)[0];l[a]=t.get(i,h),l[s]=t.get(u,h);var d=t.get(o,h),p=n.p8(t.get(o,h));return(p=Math.min(p,20))>=0&&(l[s]=+l[s].toFixed(p)),[l,d]}var u={min:(0,o.curry)(l,"min"),max:(0,o.curry)(l,"max"),average:(0,o.curry)(l,"average"),median:(0,o.curry)(l,"median")};function c(e,t){if(t){var i,n=e.getData(),r=e.coordinateSystem,a=r&&r.dimensions;if(!(!isNaN(parseFloat((i=t).x))&&!isNaN(parseFloat(i.y)))&&!(0,o.isArray)(t.coord)&&(0,o.isArray)(a)){var s=h(t,n,r,e);if((t=(0,o.clone)(t)).type&&u[t.type]&&s.baseAxis&&s.valueAxis){var l=(0,o.indexOf)(a,s.baseAxis.dim),c=(0,o.indexOf)(a,s.valueAxis.dim),d=u[t.type](n,s.baseDataDim,s.valueDataDim,l,c);t.coord=d[0],t.value=d[1]}else t.coord=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis]}if(null!=t.coord&&(0,o.isArray)(a))for(var p=t.coord,g=0;g<2;g++)u[p[g]]&&(p[g]=f(n,n.mapDimension(a[g]),p[g]));else t.coord=[];return t}}function h(e,t,i,n){var r,o,a,s={};return null!=e.valueIndex||null!=e.valueDim?(s.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,s.valueAxis=i.getAxis((r=n,o=s.valueDataDim,(a=r.getData().getDimensionInfo(o))&&a.coordDim)),s.baseAxis=i.getOtherAxis(s.valueAxis),s.baseDataDim=t.mapDimension(s.baseAxis.dim)):(s.baseAxis=n.getBaseAxis(),s.valueAxis=i.getOtherAxis(s.baseAxis),s.baseDataDim=t.mapDimension(s.baseAxis.dim),s.valueDataDim=t.mapDimension(s.valueAxis.dim)),s}function d(e,t){return!e||!e.containData||!t.coord||!!s(t)||e.containData(t.coord)}function p(e,t,i){return!e||!e.containZone||!t.coord||!i.coord||!!s(t)||!!s(i)||e.containZone(t.coord,i.coord)}function g(e,t){return e?function(e,i,n,r){var o=r<2?e.coord&&e.coord[r]:e.value;return(0,a.yQ)(o,t[r])}:function(e,i,n,r){return(0,a.yQ)(e.value,t[r])}}function f(e,t,i){if("average"===i){var n=0,r=0;return e.each(t,function(e,t){!isNaN(e)&&(n+=e,r++)}),n/r}return"median"===i?e.getMedian(t):e.getDataExtent(t)[+("max"===i)]}},91574:function(e,t,i){i.d(t,{Bm:()=>a,f1:()=>n,ls:()=>o});var n=function(){},r={};function o(e,t){r[e]=t}function a(e){return r[e]}},55328:function(e,t,i){i.d(t,{N:()=>j});var n=i(36232),r=i(69988),o=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,r.ZT)(t,e),t.type="dataZoom.select",t}(i(84677).Z),a=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,r.ZT)(t,e),t.type="dataZoom.select",t}(i(82877).Z),s=i(88526);function l(e){e.registerComponentModel(o),e.registerComponentView(a),(0,s.Z)(e)}var u=i(67975),c=i(91574),h=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,r.ZT)(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;u.each(this.option.feature,function(e,i){var n=c.Bm(i);n&&(n.getDefaultOption&&(n.defaultOption=n.getDefaultOption(t)),u.merge(e,n.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(i(45352).Z),d=i(12666),p=i(29790),g=i(98306),f=i(16505),m=i(82787),y=i(60630),v=i(64292),x=i(4587),_=i(76150),b=i(33361),S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.prototype.render=function(e,t,i,n){var r=this.group;if(r.removeAll(),e.get("show")){var o=+e.get("itemSize"),a="vertical"===e.get("orient"),s=e.get("feature")||{},l=this._features||(this._features={}),h=[];u.each(s,function(e,t){h.push(t)}),new m.Z(this._featureNames||[],h).add(v).update(v).remove(u.curry(v,null)).execute(),this._featureNames=h,y.b(r,e,i),r.add(y.l(r.getBoundingRect(),e)),a||r.eachChild(function(e){var t=e.__title,n=e.ensureState("emphasis"),a=n.textConfig||(n.textConfig={}),s=e.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!u.isFunction(l)&&t){var c=l.style||(l.style={}),h=d.lP(t,_.ZP.makeFont(c)),p=e.x+r.x,g=e.y+r.y+o,f=!1;g+h.height>i.getHeight()&&(a.position="top",f=!0);var m=f?-5-h.height:o+10;p+h.width/2>i.getWidth()?(a.position=["100%",m],c.align="right"):p-h.width/2<0&&(a.position=[0,m],c.align="left")}})}function v(d,m){var y,v,S,M,w,A,I,C,T,D,Z,L=h[d],k=h[m],O=s[L],P=new f.Z(O,e,e.ecModel);if(n&&null!=n.newTitle&&n.featureName===L&&(O.title=n.newTitle),L&&!k){if(0===L.indexOf("my"))Z={onclick:P.option.onclick,featureName:L};else{var R=(0,c.Bm)(L);if(!R)return;Z=new R}l[L]=Z}else if(!(Z=l[k]))return;Z.uid=(0,x.Kr)("toolbox-feature"),Z.model=P,Z.ecModel=t,Z.api=i;var V=Z instanceof c.f1;if(!L&&k){V&&Z.dispose&&Z.dispose(t,i);return}if(!P.get("show")||V&&Z.unusable){V&&Z.remove&&Z.remove(t,i);return}y=P,v=Z,S=L,A=y.getModel("iconStyle"),I=y.getModel(["emphasis","iconStyle"]),C=v instanceof c.f1&&v.getIcons?v.getIcons():y.get("icon"),T=y.get("title")||{},u.isString(C)?(M={})[S]=C:M=C,u.isString(T)?(w={})[S]=T:w=T,D=y.iconPaths={},u.each(M,function(n,s){var l=p.createIcon(n,{},{x:-o/2,y:-o/2,width:o,height:o});l.setStyle(A.getItemStyle()),l.ensureState("emphasis").style=I.getItemStyle();var c=new _.ZP({style:{text:w[s],align:I.get("textAlign"),borderRadius:I.get("textBorderRadius"),padding:I.get("textPadding"),fill:null,font:(0,b.qT)({fontStyle:I.get("textFontStyle"),fontFamily:I.get("textFontFamily"),fontSize:I.get("textFontSize"),fontWeight:I.get("textFontWeight")},t)},ignore:!0});l.setTextContent(c),p.setTooltipConfig({el:l,componentModel:e,itemName:s,formatterParamsExtra:{title:w[s]}}),l.__title=w[s],l.on("mouseover",function(){var t=I.getItemStyle(),n=a?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";c.setStyle({fill:I.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:I.get("textBackgroundColor")}),l.setTextConfig({position:I.get("textPosition")||n}),c.ignore=!e.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){"emphasis"!==y.get(["iconStatus",s])&&i.leaveEmphasis(this),c.hide()}),("emphasis"===y.get(["iconStatus",s])?g.fD:g.Mh)(l),r.add(l),l.on("click",u.bind(v.onclick,v,t,i,s)),D[s]=l}),P.setIconStatus=function(e,t){var i=this.option,n=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[e]=t,n[e]&&("emphasis"===t?g.fD:g.Mh)(n[e])},Z instanceof c.f1&&Z.render&&Z.render(P,t,i,n)}},t.prototype.updateView=function(e,t,i,n){u.each(this._features,function(e){e instanceof c.f1&&e.updateView&&e.updateView(e.model,t,i,n)})},t.prototype.remove=function(e,t){u.each(this._features,function(i){i instanceof c.f1&&i.remove&&i.remove(e,t)}),this.group.removeAll()},t.prototype.dispose=function(e,t){u.each(this._features,function(i){i instanceof c.f1&&i.dispose&&i.dispose(e,t)})},t.type="toolbox",t}(v.Z),M=i(4647),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.prototype.onclick=function(e,t){var i=this.model,n=i.get("name")||e.get("title.0.text")||"echarts",r="svg"===t.getZr().painter.getType(),o=r?"svg":i.get("type",!0)||"png",a=t.getConnectedDataURL({type:o,backgroundColor:i.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),s=M.Z.browser;if((0,u.isFunction)(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement("a");l.download=n+"."+o,l.target="_blank",l.href=a;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||r){var h=a.split(","),d=h[0].indexOf("base64")>-1,p=r?decodeURIComponent(h[1]):h[1];d&&(p=window.atob(p));var g=n+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var f=p.length,m=new Uint8Array(f);f--;)m[f]=p.charCodeAt(f);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,g)}else{var v=document.createElement("iframe");document.body.appendChild(v);var x=v.contentWindow,_=x.document;_.open("image/svg+xml","replace"),_.write(p),_.close(),x.focus(),_.execCommand("SaveAs",!0,g),document.body.removeChild(v)}}else{var b=i.get("lang"),S='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',w=window.open();w.document.write(S),w.document.title=n}},t.getDefaultOption=function(e){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},t}(c.f1),A=i(59161),I=i(86571),C="__ec_magicType_stack__",T=[["line","bar"],["stack"]],D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),i={};return u.each(e.get("type"),function(e){t[e]&&(i[e]=t[e])}),i},t.getDefaultOption=function(e){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,i){var n,r=this.model,o=r.get(["seriesIndex",i]);if(Z[i]){var a={series:[]};u.each(T,function(e){u.indexOf(e,i)>=0&&u.each(e,function(e){r.setIconStatus(e,"normal")})}),r.setIconStatus(i,"emphasis"),e.eachComponent({mainType:"series",query:null==o?null:{seriesIndex:o}},function(e){var t=e.subType,n=e.id,o=Z[i](t,n,e,r);o&&(u.defaults(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===i||"bar"===i)){var l=s.getAxesByScale("ordinal")[0];if(l){var c=l.dim+"Axis",h=e.getReferringComponents(c,I.C6).models[0].componentIndex;a[c]=a[c]||[];for(var d=0;d<=h;d++)a[c][h]=a[c][h]||{};a[c][h].boundaryGap="bar"===i}}});var s=i;"stack"===i&&(n=u.merge({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",i])&&(s="tiled")),t.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:n,featureName:"magicType"})}},t}(c.f1),Z={line:function(e,t,i,n){if("bar"===e)return u.merge({id:t,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(e,t,i,n){if("line"===e)return u.merge({id:t,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(e,t,i,n){var r=i.get("stack")===C;if("line"===e||"bar"===e)return n.setIconStatus("stack",r?"normal":"emphasis"),u.merge({id:t,stack:r?"":C},n.get(["option","stack"])||{},!0)}};A.zl({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var L=i(9474),k=Array(60).join("-");function O(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var P=RegExp("[ ]+","g"),R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.prototype.onclick=function(e,t){setTimeout(function(){t.dispatchAction({type:"hideTip"})});var i,n,r,o,a,s,l,c=t.getDom(),h=this.model;this._dom&&c.removeChild(this._dom);var d=document.createElement("div");d.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",d.style.backgroundColor=h.get("backgroundColor")||"#fff";var p=document.createElement("h4"),g=h.get("lang")||[];p.innerHTML=g[0]||h.get("title"),p.style.cssText="margin:10px 20px",p.style.color=h.get("textColor");var f=document.createElement("div"),m=document.createElement("textarea");f.style.cssText="overflow:auto";var y=h.get("optionToContent"),v=h.get("contentToOption"),x=(i={},n=[],r=[],e.eachRawSeries(function(e){var t=e.coordinateSystem;if(t&&("cartesian2d"===t.type||"polar"===t.type)){var o=t.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;i[a]||(i[a]={categoryAxis:o,valueAxis:t.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),i[a].series.push(e)}else n.push(e)}else n.push(e)}),o={seriesGroupByCategoryAxis:i,other:n,meta:r},{value:u.filter([(a=o.seriesGroupByCategoryAxis,s=[],u.each(a,function(e,t){var i=e.categoryAxis,n=e.valueAxis.dim,r=[" "].concat(u.map(e.series,function(e){return e.name})),o=[i.model.getCategories()];u.each(e.series,function(e){var t=e.getRawData();o.push(e.getRawData().mapArray(t.mapDimension(n),function(e){return e}))});for(var a=[r.join(" ")],l=0;l<o[0].length;l++){for(var c=[],h=0;h<o.length;h++)c.push(o[h][l]);a.push(c.join(" "))}s.push(a.join("\n"))}),s.join("\n\n"+k+"\n\n")),(l=o.other,u.map(l,function(e){var t=e.getRawData(),i=[e.name],n=[];return t.each(t.dimensions,function(){for(var e=arguments.length,r=arguments[e-1],o=t.getName(r),a=0;a<e-1;a++)n[a]=arguments[a];i.push((o?o+" ":"")+n.join(" "))}),i.join("\n")}).join("\n\n"+k+"\n\n"))],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join("\n\n"+k+"\n\n"),meta:o.meta});if(u.isFunction(y)){var _=y(t.getOption());u.isString(_)?f.innerHTML=_:u.isDom(_)&&f.appendChild(_)}else{m.readOnly=h.get("readOnly");var b=m.style;b.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",b.color=h.get("textColor"),b.borderColor=h.get("textareaBorderColor"),b.backgroundColor=h.get("textareaColor"),m.value=x.value,f.appendChild(m)}var S=x.meta,M=document.createElement("div");M.style.cssText="position:absolute;bottom:5px;left:0;right:0";var w="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",A=document.createElement("div"),I=document.createElement("div");w+=";background-color:"+h.get("buttonColor")+";color:"+h.get("buttonTextColor");var C=this;function T(){c.removeChild(d),C._dom=null}(0,L.Oo)(A,"click",T),(0,L.Oo)(I,"click",function(){var e,i,n;if(null==v&&null!=y||null!=v&&null==y){T();return}try{u.isFunction(v)?e=v(f,t.getOption()):(i=m.value.split(RegExp("\n*"+k+"\n*","g")),n={series:[]},u.each(i,function(e,t){if(function(e){if(e.slice(0,e.indexOf("\n")).indexOf(" ")>=0)return!0}(e)){var i=function(e){for(var t=e.split(/\n+/g),i=O(t.shift()).split(P),n=[],r=u.map(i,function(e){return{name:e,data:[]}}),o=0;o<t.length;o++){var a=O(t[o]).split(P);n.push(a.shift());for(var s=0;s<a.length;s++)r[s]&&(r[s].data[o]=a[s])}return{series:r,categories:n}}(e),r=S[t],o=r.axisDim+"Axis";r&&(n[o]=n[o]||[],n[o][r.axisIndex]={data:i.categories},n.series=n.series.concat(i.series))}else{var i=function(e){for(var t=e.split(/\n+/g),i=O(t.shift()),n=[],r=0;r<t.length;r++){var o=O(t[r]);if(o){var a=o.split(P),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),n[r]={name:s,value:[]},l=n[r].value):l=n[r]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);1===l.length&&(u?n[r].value=l[0]:n[r]=l[0])}}return{name:i,data:n}}(e);n.series.push(i)}}),e=n)}catch(e){throw T(),Error("Data view format error "+e)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),T()}),A.innerHTML=g[1],I.innerHTML=g[2],I.style.cssText=A.style.cssText=w,h.get("readOnly")||M.appendChild(I),M.appendChild(A),d.appendChild(p),d.appendChild(f),d.appendChild(M),f.style.height=c.clientHeight-80+"px",c.appendChild(d),this._dom=d},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},t}(c.f1);A.zl({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var i=[];u.each(e.newOption.series,function(e){var n=t.getSeriesByName(e.name)[0];if(n){var r,o=n.get("data");i.push({name:e.name,data:(r=e.data,u.map(r,function(e,t){var i=o&&o[t];if(!u.isObject(i)||u.isArray(i))return e;u.isObject(e)&&!u.isArray(e)||(e={value:e});var n=null!=i.name&&null==e.name;return e=u.defaults(e,i),n&&delete e.name,e}))})}else i.push(u.extend({type:"scatter"},e))}),t.mergeOption(u.defaults({series:i},e.newOption))});var V=u.each,N=(0,I.Yf)();function z(e){var t=N(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.prototype.onclick=function(e,t){N(e).snapshots=null,t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])}},t}(c.f1);A.zl({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var G=i(10933),B=i(89262),H=i(12920),W=i(33886),F=u.each,U=(0,I.g0)("toolbox-dataZoom_"),Y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.prototype.render=function(e,t,i,n){this._brushController||(this._brushController=new G.Z(i.getZr()),this._brushController.on("brush",u.bind(this._onBrush,this)).mount()),function(e,t,i,n,r){var o=i._isZoomActive;n&&"takeGlobalCursor"===n.type&&(o="dataZoomSelect"===n.key&&n.dataZoomSelectActive),i._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var a=new B.Z(K(e),t,{include:["grid"]}).makePanelOpts(r,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"});i._brushController.setPanels(a).enableBrush(!!o&&!!a.length&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}(e,t,this,n,i),function(e,t){e.setIconStatus("back",z(t).length>1?"emphasis":"normal")}(e,t)},t.prototype.onclick=function(e,t,i){X[i].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t,i,n,r=e.areas;if(e.isEnd&&r.length){var o={},a=this.ecModel;this._brushController.updateCovers([]),new B.Z(K(this.model),a,{include:["grid"]}).matchOutputRanges(r,a,function(e,t,i){if("cartesian2d"===i.type){var n=e.brushType;"rect"===n?(s("x",i,t[0]),s("y",i,t[1])):s({lineX:"x",lineY:"y"}[n],i,t)}}),t=a,i=o,n=z(t),V(i,function(e,i){for(var r=n.length-1;r>=0&&!n[r][i];r--);if(r<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var a=o.getPercentRange();n[0][i]={dataZoomId:i,start:a[0],end:a[1]}}}}),n.push(i),this._dispatchZoomAction(o)}function s(e,t,i){var n,r,s,l=t.getAxis(e),u=l.model,c=(n=e,r=u,a.eachComponent({mainType:"dataZoom",subType:"select"},function(e){e.getAxisModel(n,r.componentIndex)&&(s=e)}),s),h=c.findRepresentativeAxisProxy(u).getMinMaxSpan();(null!=h.minValueSpan||null!=h.maxValueSpan)&&(i=(0,H.Z)(0,i.slice(),l.scale.getExtent(),0,h.minValueSpan,h.maxValueSpan)),c&&(o[c.id]={dataZoomId:c.id,startValue:i[0],endValue:i[1]})}},t.prototype._dispatchZoomAction=function(e){var t=[];F(e,function(e,i){t.push(u.clone(e))}),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},t}(c.f1),X={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){var e,t,i;this._dispatchZoomAction((t=(e=z(this.ecModel))[e.length-1],e.length>1&&e.pop(),i={},V(t,function(t,n){for(var r=e.length-1;r>=0;r--)if(t=e[r][n]){i[n]=t;break}}),i))}};function K(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}function j(e){e.registerComponentModel(h),e.registerComponentView(S),(0,c.ls)("saveAsImage",w),(0,c.ls)("magicType",D),(0,c.ls)("dataView",R),(0,c.ls)("dataZoom",Y),(0,c.ls)("restore",E),(0,n.D)(l)}(0,W.f)("dataZoom",function(e){var t=e.getComponent("toolbox",0),i=["feature","dataZoom"];if(t&&null!=t.get(i)){var n=t.getModel(i),r=[],o=K(n),a=(0,I.pm)(e,o);return F(a.xAxisModels,function(e){return s(e,"xAxis","xAxisIndex")}),F(a.yAxisModels,function(e){return s(e,"yAxis","yAxisIndex")}),r}function s(e,t,i){var o=e.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:U+t+o};a[i]=o,r.push(a)}})},10946:function(e,t,i){i.d(t,{Z:()=>y});var n=i(69988),r=i(67975),o=i(53835),a=i(89125),s=i(86750),l=i(86571),u=i(82517),c=i(45352),h=a.Z.mapVisual,d=a.Z.eachVisual,p=r.isArray,g=r.each,f=u.dt,m=u.NU;let y=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i.stateList=["inRange","outOfRange"],i.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],i.layoutMode={type:"box",ignoreSize:!0},i.dataBound=[-1/0,1/0],i.targetVisuals={},i.controllerVisuals={},i}return(0,n.ZT)(t,e),t.prototype.init=function(e,t,i){this.mergeDefaultAndTheme(e,i)},t.prototype.optionUpdated=function(e,t){var i=this.option;t||s.jO(i,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=r.bind(e,this),this.controllerVisuals=s.qD(this.option.controller,t,e),this.targetVisuals=s.qD(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries(function(e,i){t.push(i)}):t=l.kF(e),t},t.prototype.eachTargetSeries=function(e,t){r.each(this.getTargetSeriesIndices(),function(i){var n=this.ecModel.getSeriesByIndex(i);n&&e.call(t,n)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(i){i===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,i){var n,o=this.option,a=o.precision,s=this.dataBound,l=o.formatter;i=i||["<",">"],r.isArray(e)&&(e=e.slice(),n=!0);var u=t?e:n?[c(e[0]),c(e[1])]:c(e);if(r.isString(l))return l.replace("{value}",n?u[0]:u).replace("{value2}",n?u[1]:u);if(r.isFunction(l))return n?l(e[0],e[1]):l(e);if(!n)return u;return e[0]===s[0]?i[0]+" "+u[1]:e[1]===s[1]?i[1]+" "+u[0]:u[0]+" - "+u[1];function c(e){return e===s[0]?"min":e===s[1]?"max":(+e).toFixed(Math.min(a,20))}},t.prototype.resetExtent=function(){var e=this.option,t=f([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var i=e.dimensions,n=i.length-1;n>=0;n--){var r=i[n],o=e.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,i={inRange:t.inRange,outOfRange:t.outOfRange},n=t.target||(t.target={}),s=t.controller||(t.controller={});r.merge(n,i),r.merge(s,i);var l=this.isCategory();function u(i){p(t.color)&&!i.inRange&&(i.inRange={color:t.color.slice().reverse()}),i.inRange=i.inRange||{color:e.get("gradientColor")}}u.call(this,n),u.call(this,s),(function(e,t,i){var n=e[t],r=e[i];n&&!r&&(r=e[i]={},g(n,function(e,t){if(a.Z.isValidType(t)){var i=o.Z.get(t,"inactive",l);null==i||(r[t]=i,"color"!==t||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}}))}).call(this,n,"inRange","outOfRange"),(function(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,i=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,n=this.get("inactiveColor"),o=this.getItemSymbol()||"roundRect";g(this.stateList,function(a){var s=this.itemSize,u=e[a];u||(u=e[a]={color:l?n:[n]}),null==u.symbol&&(u.symbol=t&&r.clone(t)||(l?o:[o])),null==u.symbolSize&&(u.symbolSize=i&&r.clone(i)||(l?s[0]:[s[0],s[0]])),u.symbol=h(u.symbol,function(e){return"none"===e?o:e});var c=u.symbolSize;if(null!=c){var p=-1/0;d(c,function(e){e>p&&(p=e)}),u.symbolSize=h(c,function(e){return m(e,[0,p],[0,s[0]],!0)})}},this)}).call(this,s)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(c.Z)},10959:function(e,t,i){i.d(t,{Z:()=>u});var n=i(69988),r=i(67975),o=i(31969),a=i(40814),s=i(50651),l=i(89125);let u=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i.autoPositionValues={left:1,right:1,top:1,bottom:1},i}return(0,n.ZT)(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,i,n){if(this.visualMapModel=e,!1===e.get("show")){this.group.removeAll();return}this.doRender(e,t,i,n)},t.prototype.renderBackground=function(e){var t=this.visualMapModel,i=a.MY(t.get("padding")||0),n=e.getBoundingRect();e.add(new o.Z({z2:-1,silent:!0,shape:{x:n.x-i[3],y:n.y-i[0],width:n.width+i[3]+i[1],height:n.height+i[0]+i[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,t,i){var n=(i=i||{}).forceState,o=this.visualMapModel,a={};if("color"===t){var s=o.get("contentColor");a.color=s}function u(e){return a[e]}function c(e,t){a[e]=t}var h=o.controllerVisuals[n||o.getValueState(e)],d=l.Z.prepareVisualTypes(h);return r.each(d,function(n){var r=h[n];i.convertOpacityToAlpha&&"opacity"===n&&(n="colorAlpha",r=h.__alphaForOpacity),l.Z.dependsOn(n,t)&&r&&r.applyVisual(e,u,c)}),a[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,i=this.api;s.p$(e,t.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},t.prototype.doRender=function(e,t,i,n){},t.type="visualMap",t}(i(64292).Z)},31215:function(e,t,i){i.d(t,{H:()=>s,X:()=>a});var n=i(67975),r=i(50651),o=[["left","right","width"],["top","bottom","height"]];function a(e,t,i){var n=e.option,a=n.align;if(null!=a&&"auto"!==a)return a;for(var s={width:t.getWidth(),height:t.getHeight()},l=+("horizontal"===n.orient),u=o[l],c=[0,null,10],h={},d=0;d<3;d++)h[o[1-l][d]]=c[d],h[u[d]]=2===d?i[0]:n[u[d]];var p=[["x","width",3],["y","height",0]][l],g=(0,r.ME)(h,s,n.padding);return u[(g.margin[p[2]]||0)+g[p[0]]+.5*g[p[1]]<.5*s[p[1]]?0:1]}function s(e,t){return n.each(e||[],function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}},943:function(e,t,i){i.d(t,{N:()=>a});var n=i(36232),r=i(32767),o=i(55828);function a(e){(0,n.D)(r.N),(0,n.D)(o.N)}},87145:function(e,t,i){i.d(t,{Z:()=>f});var n={type:"selectDataRange",event:"dataRangeSelected",update:"update"},r=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(t){t.setSelected(e.selected)})},o=i(67975),a=i(86750),s=i(89125),l=i(43928),u=[{createOnAllSeries:!0,reset:function(e,t){var i=[];return t.eachComponent("visualMap",function(t){var n=e.pipelineContext;t.isTargetSeries(e)&&(!n||!n.large)&&i.push(a.Z7(t.stateList,t.targetVisuals,o.bind(t.getValueState,t),t.getDataDimensionIndex(e.getData())))}),i}},{createOnAllSeries:!0,reset:function(e,t){var i=e.getData(),n=[];t.eachComponent("visualMap",function(t){if(t.isTargetSeries(e)){var r=t.getVisualMeta(o.bind(c,null,e,t))||{stops:[],outerColors:[]},a=t.getDataDimensionIndex(i);a>=0&&(r.dimension=a,n.push(r))}}),e.getData().setVisual("visualMeta",n)}}];function c(e,t,i,n){for(var r=t.targetVisuals[n],o=s.Z.prepareVisualTypes(r),a={color:(0,l.UL)(e.getData(),"color")},u=0,c=o.length;u<c;u++){var h=o[u],d=r["opacity"===h?"__alphaForOpacity":h];d&&d.applyVisual(i,p,g)}return a.color;function p(e){return a[e]}function g(e,t){a[e]=t}}var h=o.each;function d(e){var t=e&&e.visualMap;o.isArray(t)||(t=t?[t]:[]),h(t,function(e){if(e){p(e,"splitList")&&!p(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&o.isArray(t)&&h(t,function(e){o.isObject(e)&&(p(e,"start")&&!p(e,"min")&&(e.min=e.start),p(e,"end")&&!p(e,"max")&&(e.max=e.end))})}})}function p(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var g=!1;function f(e){!g&&(g=!0,e.registerSubTypeDefaulter("visualMap",function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"}),e.registerAction(n,r),(0,o.each)(u,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(d))}},32767:function(e,t,i){i.d(t,{N:()=>N});var n=i(69988),r=i(67975),o=i(10946),a=i(82517),s=i(4587),l=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.ZT)(t,e),t.prototype.optionUpdated=function(t,i){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=20),(null==t[1]||isNaN(t[1]))&&(t[1]=140)},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):r.isArray(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),r.each(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=a.dt((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,i=this.getExtent();return(t[0]<=i[0]||t[0]<=e)&&(t[1]>=i[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(i){var n=[],r=i.getData();r.each(this.getDataDimensionIndex(r),function(t,i){e[0]<=t&&t<=e[1]&&n.push(i)},this),t.push({seriesId:i.id,dataIndex:n})},this),t},t.prototype.getVisualMeta=function(e){var t=u(this,"outOfRange",this.getExtent()),i=u(this,"inRange",this.option.range.slice()),n=[];function r(t,i){n.push({value:t,color:e(t,i)})}for(var o=0,a=0,s=i.length,l=t.length;a<l&&(!i.length||t[a]<=i[0]);a++)t[a]<i[o]&&r(t[a],"outOfRange");for(var c=1;o<s;o++,c=0)c&&n.length&&r(i[o],"outOfRange"),r(i[o],"inRange");for(var c=1;a<l;a++)(!i.length||i[i.length-1]<t[a])&&(c&&(n.length&&r(n[n.length-1].value,"outOfRange"),c=0),r(t[a],"outOfRange"));var h=n.length;return{stops:n,outerColors:[h?n[0].color:"transparent",h?n[h-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=(0,s.ZL)(o.Z.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(o.Z);function u(e,t,i){if(i[0]===i[1])return i.slice();for(var n=(i[1]-i[0])/200,r=i[0],o=[],a=0;a<=200&&r<i[1];a++)o.push(r),r+=n;return o.push(i[1]),o}var c=i(44235),h=i(9474),d=i(10959),p=i(76150),g=i(37293),f=i(31969),m=i(29790),y=i(24484),v=i(12920),x=i(31215),_=i(86571),b=i(12666),S=i(98306),M=i(5965),w=i(63287),A=i(10428),I=i(33361),C=i(26501),T=a.NU,D=r.each,Z=Math.min,L=Math.max,k=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i._shapes={},i._dataInterval=[],i._handleEnds=[],i._hoverLinkDataIndices=[],i}return(0,n.ZT)(t,e),t.prototype.init=function(t,i){e.prototype.init.call(this,t,i),this._hoverLinkFromSeriesMouseOver=r.bind(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=r.bind(this._hideIndicator,this)},t.prototype.doRender=function(e,t,i,n){n&&"selectDataRange"===n.type&&n.from===this.uid||this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var i=e.get("text");this._renderEndsText(t,i,0),this._renderEndsText(t,i,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,i){if(t){var n=t[1-i];n=null!=n?n+"":"";var r=this.visualMapModel,o=r.get("textGap"),a=r.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===i?-o:a[1]+o],s),u=this._applyTransform(0===i?"bottom":"top",s),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new p.ZP({style:(0,I.Lr)(h,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:n})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,i=this._shapes,n=t.itemSize,o=this._orient,a=this._useHandle,s=x.X(t,this.api,n),l=i.mainGroup=this._createBarGroup(s),u=new g.Z;l.add(u),u.add(i.outOfRange=O()),u.add(i.inRange=O(null,a?R(this._orient):null,r.bind(this._dragHandle,this,"all",!1),r.bind(this._dragHandle,this,"all",!0))),u.setClipPath(new f.Z({shape:{x:0,y:0,width:n[0],height:n[1],r:3}}));var c=t.textStyleModel.getTextRect("国"),h=L(c.width,c.height);a&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(t,l,0,n,h,o),this._createHandle(t,l,1,n,h,o)),this._createIndicator(t,l,n,h,o),e.add(l)},t.prototype._createHandle=function(e,t,i,n,o,a){var s=r.bind(this._dragHandle,this,i,!1),l=r.bind(this._dragHandle,this,i,!0),u=(0,b.GM)(e.get("handleSize"),n[0]),c=(0,M.th)(e.get("handleIcon"),-u/2,-u/2,u,u,null,!0),d=R(this._orient);c.attr({cursor:d,draggable:!0,drift:s,ondragend:l,onmousemove:function(e){h.sT(e.event)}}),c.x=n[0]/2,c.useStyle(e.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),(0,S.Nj)(c,!0),t.add(c);var g=this.visualMapModel.textStyleModel,f=new p.ZP({cursor:d,draggable:!0,drift:s,onmousemove:function(e){h.sT(e.event)},ondragend:l,style:(0,I.Lr)(g,{x:0,y:0,text:""})});f.ensureState("blur").style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var m=[u,0],y=this._shapes;y.handleThumbs[i]=c,y.handleLabelPoints[i]=m,y.handleLabels[i]=f},t.prototype._createIndicator=function(e,t,i,n,o){var a=(0,b.GM)(e.get("indicatorSize"),i[0]),s=(0,M.th)(e.get("indicatorIcon"),-a/2,-a/2,a,a,null,!0);s.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var l=e.getModel("indicatorStyle").getItemStyle();if(s instanceof w.ZP){var u=s.style;s.useStyle(r.extend({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},l))}else s.useStyle(l);t.add(s);var c=this.visualMapModel.textStyleModel,h=new p.ZP({silent:!0,invisible:!0,style:(0,I.Lr)(c,{x:0,y:0,text:""})});this.group.add(h);var d=[("horizontal"===o?n/2:6)+i[0]/2,0],g=this._shapes;g.indicator=s,g.indicatorLabel=h,g.indicatorLabelPoint=d,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,i,n){if(this._useHandle){if(this._dragging=!t,!t){var r=this._applyTransform([i,n],this._shapes.mainGroup,!0);this._updateInterval(e,r[1]),this._hideIndicator(),this._updateView()}!this.visualMapModel.get("realtime")===t&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?this._hovering||this._clearHoverLinkToSeries():P(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),i=e.getExtent(),n=[0,e.itemSize[1]];this._handleEnds=[T(t[0],i,n,!0),T(t[1],i,n,!0)]},t.prototype._updateInterval=function(e,t){t=t||0;var i=this.visualMapModel,n=this._handleEnds,r=[0,i.itemSize[1]];(0,v.Z)(t,n,r,e,0);var o=i.getExtent();this._dataInterval=[T(n[0],r,o,!0),T(n[1],r,o,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,i=t.getExtent(),n=this._shapes,r=[0,t.itemSize[1]],o=e?r:this._handleEnds,a=this._createBarVisual(this._dataInterval,i,o,"inRange"),s=this._createBarVisual(i,i,r,"outOfRange");n.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),n.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},t.prototype._createBarVisual=function(e,t,i,n){var r={forceState:n,convertOpacityToAlpha:!0},o=this._makeColorGradient(e,r),a=[this.getControllerVisual(e[0],"symbolSize",r),this.getControllerVisual(e[1],"symbolSize",r)],s=this._createBarPoints(i,a);return{barColor:new c.Z(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var i=[],n=(e[1]-e[0])/100;i.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var r=1;r<100;r++){var o=e[0]+n*r;if(o>e[1])break;i.push({color:this.getControllerVisual(o,"color",t),offset:r/100})}return i.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),i},t.prototype._createBarPoints=function(e,t){var i=this.visualMapModel.itemSize;return[[i[0]-t[0],e[0]],[i[0],e[0]],[i[0],e[1]],[i[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,i=this.visualMapModel.get("inverse");return new g.Z("horizontal"!==t||i?"horizontal"===t&&i?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||i?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var i=this._shapes,n=this.visualMapModel,r=i.handleThumbs,o=i.handleLabels,a=n.itemSize,s=n.getExtent();D([0,1],function(l){var u=r[l];u.setStyle("fill",t.handlesColor[l]),u.y=e[l];var c=T(e[l],[0,a[1]],s,!0),h=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=h/a[0],u.x=a[0]-h/2;var d=m.applyTransform(i.handleLabelPoints[l],m.getTransform(u,this.group));o[l].setStyle({x:d[0],y:d[1],text:n.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,t,i,n){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c=this.getControllerVisual(e,"color",{convertOpacityToAlpha:!0}),h=this.getControllerVisual(e,"symbolSize"),d=T(e,o,s,!0),p=a[0]-h/2,g={x:u.x,y:u.y};u.y=d,u.x=p;var f=m.applyTransform(l.indicatorLabelPoint,m.getTransform(u,this.group)),y=l.indicatorLabel;y.attr("invisible",!1);var v=this._applyTransform("left",l.mainGroup),x="horizontal"===this._orient;y.setStyle({text:(i||"")+r.formatValueText(t),verticalAlign:x?v:"middle",align:x?"center":v});var _={x:p,y:d,style:{fill:c}},b={style:{x:f[0],y:f[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var S={duration:100,easing:"cubicInOut",additive:!0};u.x=g.x,u.y=g.y,u.animateTo(_,S),y.animateTo(b,S)}else u.attr(_),y.attr(b);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var w=0;w<M.length;w++)this.api.enterBlur(M[w])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(t){if(e._hovering=!0,!e._dragging){var i=e.visualMapModel.itemSize,n=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);n[1]=Z(L(0,n[1]),i[1]),e._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=i[0])}}).on("mouseout",function(){e._hovering=!1,e._dragging||e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var i=this.visualMapModel,n=i.itemSize;if(i.option.hoverLink){var r,o,a,s,l,u=[0,n[1]],c=i.getExtent();e=Z(L(u[0],e),u[1]);var h=(r=i,o=c,a=u,s=6,(l=r.get("hoverLinkDataSize"))&&(s=T(l,o,a,!0)/2),s),d=[e-h,e+h],p=T(e,u,c,!0),g=[T(d[0],u,c,!0),T(d[1],u,c,!0)];d[0]<u[0]&&(g[0]=-1/0),d[1]>u[1]&&(g[1]=1/0),t&&(g[0]===-1/0?this._showIndicator(p,g[1],"< ",h):g[1]===1/0?this._showIndicator(p,g[0],"> ",h):this._showIndicator(p,p,"≈ ",h));var f=this._hoverLinkDataIndices,m=[];(t||P(i))&&(m=this._hoverLinkDataIndices=i.findTargetDataIndices(g));var y=_.XI(f,m);this._dispatchHighDown("downplay",x.H(y[0],i)),this._dispatchHighDown("highlight",x.H(y[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){if((0,C.o)(e.target,function(e){var i=(0,A.A)(e);if(null!=i.dataIndex)return t=i,!0},!0),t){var t,i=this.ecModel.getSeriesByIndex(t.seriesIndex),n=this.visualMapModel;if(n.isTargetSeries(i)){var r=i.getData(t.dataType),o=r.getStore().get(n.getDataDimensionIndex(r),t.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var i=0;i<t.length;i++)this.api.leaveBlur(t[i])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",x.H(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,t,i,n){var o=m.getTransform(t,n?null:this.group);return r.isArray(e)?m.applyTransform(e,o,i):m.transformDirection(e,o,i)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(d.Z);function O(e,t,i,n){return new y.Z({shape:{points:e},draggable:!!i,cursor:t,drift:i,onmousemove:function(e){h.sT(e.event)},ondragend:n})}function P(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function R(e){return"vertical"===e?"ns-resize":"ew-resize"}var V=i(87145);function N(e){e.registerComponentModel(l),e.registerComponentView(k),(0,V.Z)(e)}},55828:function(e,t,i){i.d(t,{N:()=>S});var n=i(69988),r=i(67975),o=i(10946),a=i(89125),s=i(53835),l=i(82517),u=i(4587),c=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i._pieceList=[],i}return(0,n.ZT)(t,e),t.prototype.optionUpdated=function(t,i){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],h[this._mode].call(this,this._pieceList),this._resetSelected(t,i);var o=this.option.categories;this.resetVisual(function(e,t){"categories"===n?(e.mappingMethod="category",e.categories=r.clone(o)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=r.map(this._pieceList,function(e){return e=r.clone(e),"inRange"!==t&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,i={},n=a.Z.listVisualTypes(),o=this.isCategory();function l(e,t,i){return e&&e[t]&&e[t].hasOwnProperty(i)}r.each(t.pieces,function(e){r.each(n,function(t){e.hasOwnProperty(t)&&(i[t]=1)})}),r.each(i,function(e,i){var n=!1;r.each(this.stateList,function(e){n=n||l(t,e,i)||l(t.target,e,i)},this),n||r.each(this.stateList,function(e){(t[e]||(t[e]={}))[i]=s.Z.get(i,"inRange"===e?"active":"inactive",o)})},this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var i=this.option,n=this._pieceList,o=(t?i:e).selected||{};if(i.selected=o,r.each(n,function(e,t){var i=this.getSelectedMapKey(e);o.hasOwnProperty(i)||(o[i]=!0)},this),"single"===i.selectedMode){var a=!1;r.each(n,function(e,t){var i=this.getSelectedMapKey(e);o[i]&&(a?o[i]=!1:a=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=r.clone(e)},t.prototype.getValueState=function(e){var t=a.Z.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],i=this._pieceList;return this.eachTargetSeries(function(n){var r=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(t,n){a.Z.findPieceIndex(t,i)===e&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var i=e.interval||[];t=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],i=["",""],n=this,o=this._pieceList.slice();if(o.length){var a=o[0].interval[0];a!==-1/0&&o.unshift({interval:[-1/0,a]}),(a=o[o.length-1].interval[1])!==1/0&&o.push({interval:[a,1/0]})}else o.push({interval:[-1/0,1/0]});var s=-1/0;return r.each(o,function(e){var t=e.interval;t&&(t[0]>s&&l([s,t[0]],"outOfRange"),l(t.slice()),s=t[1])},this),{stops:t,outerColors:i}}function l(r,o){var a=n.getRepresentValue({interval:r});o||(o=n.getValueState(a));var s=e(a,o);r[0]===-1/0?i[0]=s:r[1]===1/0?i[1]=s:t.push({value:r[0],color:s},{value:r[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=(0,u.ZL)(o.Z.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(o.Z),h={splitNumber:function(e){var t=this.option,i=Math.min(t.precision,20),n=this.getExtent(),o=t.splitNumber;o=Math.max(parseInt(o,10),1),t.splitNumber=o;for(var a=(n[1]-n[0])/o;+a.toFixed(i)!==a&&i<5;)i++;t.precision=i,a=+a.toFixed(i),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var s=0,u=n[0];s<o;u+=a,s++){var c=s===o-1?n[1]:u+a;e.push({interval:[u,c],close:[1,1]})}t.maxOpen&&e.push({interval:[n[1],1/0],close:[0,0]}),(0,l.nR)(e),r.each(e,function(e,t){e.index=t,e.text=this.formatValueText(e.interval)},this)},categories:function(e){var t=this.option;r.each(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),d(t,e)},pieces:function(e){var t=this.option;r.each(t.pieces,function(t,i){r.isObject(t)||(t={value:t});var n={text:"",index:i};if(null!=t.label&&(n.text=t.label),t.hasOwnProperty("value")){var o=n.value=t.value;n.interval=[o,o],n.close=[1,1]}else{for(var s=n.interval=[],l=n.close=[0,0],u=[1,0,1],c=[-1/0,1/0],h=[],d=0;d<2;d++){for(var p=[["gte","gt","min"],["lte","lt","max"]][d],g=0;g<3&&null==s[d];g++)s[d]=t[p[g]],l[d]=u[g],h[d]=2===g;null==s[d]&&(s[d]=c[d])}h[0]&&s[1]===1/0&&(l[0]=0),h[1]&&s[0]===-1/0&&(l[1]=0),s[0]===s[1]&&l[0]&&l[1]&&(n.value=s[0])}n.visual=a.Z.retrieveVisuals(t),e.push(n)},this),d(t,e),(0,l.nR)(e),r.each(e,function(e){var t=e.close,i=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,i)},this)}};function d(e,t){var i=e.inverse;("vertical"===e.orient?!i:i)&&t.reverse()}var p=i(10959),g=i(37293),f=i(76150),m=i(5965),y=i(50651),v=i(31215),x=i(33361),_=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.ZT)(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,i=t.get("textGap"),n=t.textStyleModel,o=n.getFont(),a=n.getTextColor(),s=this._getItemAlign(),l=t.itemSize,u=this._getViewData(),c=u.endsText,h=r.retrieve(t.get("showLabel",!0),!c);c&&this._renderEndsText(e,c[0],l,h,s),r.each(u.viewPieceList,function(n){var u=n.piece,c=new g.Z;c.onclick=r.bind(this._onItemClick,this,u),this._enableHoverLink(c,n.indexInModelPieceList);var d=t.getRepresentValue(u);if(this._createItemSymbol(c,d,[0,0,l[0],l[1]]),h){var p=this.visualMapModel.getValueState(d);c.add(new f.ZP({style:{x:"right"===s?-i:l[0]+i,y:l[1]/2,text:u.text,verticalAlign:"middle",align:s,font:o,fill:a,opacity:"outOfRange"===p?.5:1}}))}e.add(c)},this),c&&this._renderEndsText(e,c[1],l,h,s),y.BZ(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var i=this;e.on("mouseover",function(){return n("highlight")}).on("mouseout",function(){return n("downplay")});var n=function(e){var n=i.visualMapModel;n.option.hoverLink&&i.api.dispatchAction({type:e,batch:v.H(n.findTargetDataIndices(t),n)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return v.X(e,this.api,e.itemSize);var i=t.align;return i&&"auto"!==i||(i="left"),i},t.prototype._renderEndsText=function(e,t,i,n,r){if(t){var o=new g.Z,a=this.visualMapModel.textStyleModel;o.add(new f.ZP({style:(0,x.Lr)(a,{x:n?"right"===r?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:n?r:"center",text:t})})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=r.map(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),i=e.get("text"),n=e.get("orient"),o=e.get("inverse");return("horizontal"===n?o:!o)?t.reverse():i&&(i=i.slice().reverse()),{viewPieceList:t,endsText:i}},t.prototype._createItemSymbol=function(e,t,i){e.add((0,m.th)(this.getControllerVisual(t,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(t,"color")))},t.prototype._onItemClick=function(e){var t=this.visualMapModel,i=t.option,n=i.selectedMode;if(n){var o=r.clone(i.selected),a=t.getSelectedMapKey(e);"single"===n||!0===n?(o[a]=!0,r.each(o,function(e,t){o[t]=t===a})):o[a]=!o[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(p.Z),b=i(87145);function S(e){e.registerComponentModel(c),e.registerComponentView(_),(0,b.Z)(e)}},9655:function(e,t,i){i.d(t,{$x:()=>k,Iu:()=>L,_A:()=>T,d:()=>w,qK:()=>C});var n=i(91145),r=i(7185),o=i(61099),a=i(97694),s=i(66790),l=i(99101),u=i(67975),c=i(49634),h=i(77605),d=i(98306),p=2*Math.PI,g=a.Z.CMD,f=["top","right","bottom","left"];function m(e,t,i,n,r,o,a,s){var l=i-e,u=n-t,c=Math.sqrt(l*l+u*u),h=((r-e)*(l/=c)+(o-t)*(u/=c))/c;s&&(h=Math.min(Math.max(h,0),1)),h*=c;var d=a[0]=e+h*l,p=a[1]=t+h*u;return Math.sqrt((d-r)*(d-r)+(p-o)*(p-o))}function y(e,t,i,n,r,o,a){i<0&&(e+=i,i=-i),n<0&&(t+=n,n=-n);var s=e+i,l=t+n,u=a[0]=Math.min(Math.max(r,e),s),c=a[1]=Math.min(Math.max(o,t),l);return Math.sqrt((u-r)*(u-r)+(c-o)*(c-o))}var v=[],x=new n.Z,_=new n.Z,b=new n.Z,S=new n.Z,M=new n.Z;function w(e,t){if(e){var i=e.getTextGuideLine(),o=e.getTextContent();if(o&&i){var a=e.textGuideLineConfig||{},u=[[0,0],[0,0],[0,0]],h=a.candidates||f,d=o.getBoundingRect().clone();d.applyTransform(o.getComputedTransform());var M=1/0,w=a.anchor,A=e.getComputedTransform(),I=A&&(0,c.invert)([],A),T=t.get("length2")||0;w&&b.copy(w);for(var D=0;D<h.length;D++){!function(e,t,i,n,r){var o=i.width,a=i.height;switch(e){case"top":n.set(i.x+o/2,i.y-0),r.set(0,-1);break;case"bottom":n.set(i.x+o/2,i.y+a+0),r.set(0,1);break;case"left":n.set(i.x-t,i.y+a/2),r.set(-1,0);break;case"right":n.set(i.x+o+t,i.y+a/2),r.set(1,0)}}(h[D],0,d,x,S),n.Z.scaleAndAdd(_,x,S,T),_.transform(I);var Z=e.getBoundingRect(),L=w?w.distance(_):e instanceof r.ZP?function(e,t,i){for(var n,r,o=0,a=0,u=0,c=0,h=1/0,d=t.data,f=e.x,x=e.y,_=0;_<d.length;){var b=d[_++];1===_&&(o=d[_],a=d[_+1],u=o,c=a);var S=h;switch(b){case g.M:u=d[_++],c=d[_++],o=u,a=c;break;case g.L:S=m(o,a,d[_],d[_+1],f,x,v,!0),o=d[_++],a=d[_++];break;case g.C:S=(0,l.t1)(o,a,d[_++],d[_++],d[_++],d[_++],d[_],d[_+1],f,x,v),o=d[_++],a=d[_++];break;case g.Q:S=(0,l.Wr)(o,a,d[_++],d[_++],d[_],d[_+1],f,x,v),o=d[_++],a=d[_++];break;case g.A:var M=d[_++],w=d[_++],A=d[_++],I=d[_++],C=d[_++],T=d[_++];_+=1;var D=!!(1-d[_++]);n=Math.cos(C)*A+M,r=Math.sin(C)*I+w,_<=1&&(u=n,c=r);var Z=(f-M)*I/A+M;S=function(e,t,i,n,r,o,a,l,u){var c=Math.sqrt((a-=e)*a+(l-=t)*l),h=(a/=c)*i+e,d=(l/=c)*i+t;if(Math.abs(n-r)%p<1e-4)return u[0]=h,u[1]=d,c-i;if(o){var g=n;n=(0,s.m)(r),r=(0,s.m)(g)}else n=(0,s.m)(n),r=(0,s.m)(r);n>r&&(r+=p);var f=Math.atan2(l,a);if(f<0&&(f+=p),f>=n&&f<=r||f+p>=n&&f+p<=r)return u[0]=h,u[1]=d,c-i;var m=i*Math.cos(n)+e,y=i*Math.sin(n)+t,v=i*Math.cos(r)+e,x=i*Math.sin(r)+t,_=(m-a)*(m-a)+(y-l)*(y-l),b=(v-a)*(v-a)+(x-l)*(x-l);return _<b?(u[0]=m,u[1]=y,Math.sqrt(_)):(u[0]=v,u[1]=x,Math.sqrt(b))}(M,w,I,C,C+T,D,Z,x,v),o=Math.cos(C+T)*A+M,a=Math.sin(C+T)*I+w;break;case g.R:S=y(u=o=d[_++],c=a=d[_++],d[_++],d[_++],f,x,v);break;case g.Z:S=m(o,a,u,c,f,x,v,!0),o=u,a=c}S<h&&(h=S,i.set(v[0],v[1]))}return h}(_,e.path,b):function(e,t,i){var n=y(t.x,t.y,t.width,t.height,e.x,e.y,v);return i.set(v[0],v[1]),n}(_,Z,b);L<M&&(M=L,_.transform(A),b.transform(A),b.toArray(u[0]),_.toArray(u[1]),x.toArray(u[2]))}C(u,t.get("minTurnAngle")),i.setShape({points:u})}}}var A=[],I=new n.Z;function C(e,t){if(t<=180&&t>0){t=t/180*Math.PI,x.fromArray(e[0]),_.fromArray(e[1]),b.fromArray(e[2]),n.Z.sub(S,x,_),n.Z.sub(M,b,_);var i=S.len(),r=M.len();if(!(i<.001)&&!(r<.001)&&(S.scale(1/i),M.scale(1/r),Math.cos(t)<S.dot(M))){var o=m(_.x,_.y,b.x,b.y,x.x,x.y,A,!1);I.fromArray(A),I.scaleAndAdd(M,o/Math.tan(Math.PI-t));var a=b.x!==_.x?(I.x-_.x)/(b.x-_.x):(I.y-_.y)/(b.y-_.y);if(isNaN(a))return;a<0?n.Z.copy(I,_):a>1&&n.Z.copy(I,b),I.toArray(e[1])}}}function T(e,t,i){if(i<=180&&i>0){i=i/180*Math.PI,x.fromArray(e[0]),_.fromArray(e[1]),b.fromArray(e[2]),n.Z.sub(S,_,x),n.Z.sub(M,b,_);var r=S.len(),o=M.len();if(!(r<.001)&&!(o<.001)&&(S.scale(1/r),M.scale(1/o),S.dot(t)<Math.cos(i))){var a=m(_.x,_.y,b.x,b.y,x.x,x.y,A,!1);I.fromArray(A);var s=Math.PI/2,l=s+Math.acos(M.dot(t))-i;if(l>=s)n.Z.copy(I,b);else{I.scaleAndAdd(M,a/Math.tan(Math.PI/2-l));var u=b.x!==_.x?(I.x-_.x)/(b.x-_.x):(I.y-_.y)/(b.y-_.y);if(isNaN(u))return;u<0?n.Z.copy(I,_):u>1&&n.Z.copy(I,b)}I.toArray(e[1])}}}function D(e,t,i,n){var r="normal"===i,o=r?e:e.ensureState(i);o.ignore=t;var a=n.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=n.getModel("lineStyle").getLineStyle();r?e.useStyle(s):o.style=s}function Z(e,t){var i=t.smooth,n=t.points;if(n){if(e.moveTo(n[0][0],n[0][1]),i>0&&n.length>=3){var r=h.dist(n[0],n[1]),o=h.dist(n[1],n[2]);if(!r||!o){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var a=Math.min(r,o)*i,s=h.lerp([],n[1],n[0],a/r),l=h.lerp([],n[1],n[2],a/o),u=h.lerp([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)e.lineTo(n[c][0],n[c][1])}}function L(e,t,i){var n=e.getTextGuideLine(),r=e.getTextContent();if(!r){n&&e.removeTextGuideLine();return}for(var a=t.normal,s=a.get("show"),l=r.ignore,c=0;c<d.qc.length;c++){var h=d.qc[c],p=t[h],g="normal"===h;if(p){var f=p.get("show");if((g?l:(0,u.retrieve2)(r.states[h]&&r.states[h].ignore,l))||!(0,u.retrieve2)(f,s)){var m=g?n:n&&n.states[h];m&&(m.ignore=!0),n&&D(n,!0,h,p);continue}!n&&(n=new o.Z,e.setTextGuideLine(n),g||!l&&s||D(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),D(n,!1,h,p)}}if(n){(0,u.defaults)(n.style,i),n.style.fill=null;var y=a.get("showAbove");(e.textGuideLineConfig=e.textGuideLineConfig||{}).showAbove=y||!1,n.buildPath=Z}}function k(e,t){t=t||"labelLine";for(var i={normal:e.getModel(t)},n=0;n<d.L1.length;n++){var r=d.L1[n];i[r]=e.getModel([r,t])}return i}},31260:function(e,t,i){i.d(t,{Z:()=>n});function n(e){return{seriesType:e,reset:function(e,t){var i=t.findComponents({mainType:"legend"});if(i&&i.length){var n=e.getData();n.filterSelf(function(e){for(var t=n.getName(e),r=0;r<i.length;r++)if(!i[r].isSelected(t))return!1;return!0})}}}}},2699:function(e,t,i){i.d(t,{Z:()=>a});var n=i(69988),r=i(7185),o=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0};let a=function(e){function t(t){var i=e.call(this,t)||this;return i.type="sausage",i}return(0,n.ZT)(t,e),t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){var i=t.cx,n=t.cy,r=Math.max(t.r0||0,0),o=Math.max(t.r,0),a=(o-r)*.5,s=r+a,l=t.startAngle,u=t.endAngle,c=t.clockwise,h=2*Math.PI,d=c?u-l<h:l-u<h;d||(l=u-(c?h:-h));var p=Math.cos(l),g=Math.sin(l),f=Math.cos(u),m=Math.sin(u);d?(e.moveTo(p*r+i,g*r+n),e.arc(p*s+i,g*s+n,a,-Math.PI+l,l,!c)):e.moveTo(p*o+i,g*o+n),e.arc(i,n,o,l,u,!c),e.arc(f*s+i,m*s+n,a,u-2*Math.PI,u-Math.PI,!c),0!==r&&e.arc(i,n,r,u,l,c)},t}(r.ZP)},26435:function(e,t,i){i.d(t,{Z:()=>n});let n=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}()},89125:function(e,t,i){i.d(t,{Z:()=>x});var n=i(67975),r=i(54411),o=i(82517),a=n.each,s=n.isObject,l=function(){function e(t){var i,r,o=t.mappingMethod,s=t.type,l=this.option=n.clone(t);this.type=s,this.mappingMethod=o,this._normalizeData=v[o];var c=e.visualHandlers[s];this.applyVisual=c.applyVisual,this.getColorMapper=c.getColorMapper,this._normalizedToVisual=c._normalizedToVisual[o],"piecewise"===o?(u(l),r=(i=l).pieceList,i.hasSpecialVisual=!1,n.each(r,function(e,t){e.originIndex=t,null!=e.visual&&(i.hasSpecialVisual=!0)})):"category"===o?l.categories?function(e){var t=e.categories,i=e.categoryMap={},r=e.visual;if(a(t,function(e,t){i[e]=t}),!n.isArray(r)){var o=[];n.isObject(r)?a(r,function(e,t){var n=i[t];o[null!=n?n:-1]=e}):o[-1]=r,r=y(e,o)}for(var s=t.length-1;s>=0;s--)null==r[s]&&(delete i[t[s]],t.pop())}(l):u(l,!0):(n.assert("linear"!==o||l.dataExtent),u(l))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return n.bind(this._normalizeData,this)},e.listVisualTypes=function(){return n.keys(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,i){n.isObject(e)?n.each(e,t,i):t.call(i,e)},e.mapVisual=function(t,i,r){var o,a=n.isArray(t)?[]:n.isObject(t)?{}:(o=!0,null);return e.eachVisual(t,function(e,t){var n=i.call(r,e,t);o?a=n:a[t]=n}),a},e.retrieveVisuals=function(t){var i,n={};return t&&a(e.visualHandlers,function(e,r){t.hasOwnProperty(r)&&(n[r]=t[r],i=!0)}),i?n:null},e.prepareVisualTypes=function(e){if(n.isArray(e))e=e.slice();else{if(!s(e))return[];var t=[];a(e,function(e,i){t.push(i)}),e=t}return e.sort(function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1}),e},e.dependsOn=function(e,t){return"color"===t?!!(e&&0===e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,i){for(var r,o=1/0,a=0,s=t.length;a<s;a++){var l=t[a].value;if(null!=l){if(l===e||n.isString(l)&&l===e+"")return a;i&&w(l,a)}}for(var a=0,s=t.length;a<s;a++){var u,c,h,d,p,g,f,m,y,v,x,_,b=t[a],S=b.interval,M=b.close;if(S){if(S[0]===-1/0){if(u=M[1],c=e,h=S[1],u?c<=h:c<h)return a}else if(S[1]===1/0){if(d=M[0],p=S[0],g=e,d?p<=g:p<g)return a}else{if(f=M[0],m=S[0],y=e,(f?m<=y:m<y)&&(v=M[1],x=e,_=S[1],v?x<=_:x<_))return a}i&&w(S[0],a),i&&w(S[1],a)}}if(i)return e===1/0?t.length-1:e===-1/0?0:r;function w(t,i){var n=Math.abs(t-e);n<o&&(o=n,r=i)}},e.visualHandlers={color:{applyVisual:d("color"),getColorMapper:function(){var e=this.option;return n.bind("category"===e.mappingMethod?function(e,t){return t||(e=this._normalizeData(e)),p.call(this,e)}:function(t,i,n){var o=!!n;return i||(t=this._normalizeData(t)),n=r.fastLerp(t,e.parsedVisual,n),o?n:r.stringify(n,"rgba")},this)},_normalizedToVisual:{linear:function(e){return r.stringify(r.fastLerp(e,this.option.parsedVisual),"rgba")},category:p,piecewise:function(e,t){var i=m.call(this,t);return null==i&&(i=r.stringify(r.fastLerp(e,this.option.parsedVisual),"rgba")),i},fixed:g}},colorHue:c(function(e,t){return r.modifyHSL(e,t)}),colorSaturation:c(function(e,t){return r.modifyHSL(e,null,t)}),colorLightness:c(function(e,t){return r.modifyHSL(e,null,null,t)}),colorAlpha:c(function(e,t){return r.modifyAlpha(e,t)}),decal:{applyVisual:d("decal"),_normalizedToVisual:{linear:null,category:p,piecewise:null,fixed:null}},opacity:{applyVisual:d("opacity"),_normalizedToVisual:f([0,1])},liftZ:{applyVisual:d("liftZ"),_normalizedToVisual:{linear:g,category:g,piecewise:g,fixed:g}},symbol:{applyVisual:function(e,t,i){i("symbol",this.mapValueToVisual(e))},_normalizedToVisual:{linear:h,category:p,piecewise:function(e,t){var i=m.call(this,t);return null==i&&(i=h.call(this,e)),i},fixed:g}},symbolSize:{applyVisual:d("symbolSize"),_normalizedToVisual:f([0,1])}},e}();function u(e,t){var i=e.visual,r=[];n.isObject(i)?a(i,function(e){r.push(e)}):null!=i&&r.push(i),t||1!==r.length||({color:1,symbol:1}).hasOwnProperty(e.type)||(r[1]=r[0]),y(e,r)}function c(e){return{applyVisual:function(t,i,n){var r=this.mapValueToVisual(t);n("color",e(i("color"),r))},_normalizedToVisual:f([0,1])}}function h(e){var t=this.option.visual;return t[Math.round((0,o.NU)(e,[0,1],[0,t.length-1],!0))]||{}}function d(e){return function(t,i,n){n(e,this.mapValueToVisual(t))}}function p(e){var t=this.option.visual;return t[this.option.loop&&-1!==e?e%t.length:e]}function g(){return this.option.visual[0]}function f(e){return{linear:function(t){return(0,o.NU)(t,e,this.option.visual,!0)},category:p,piecewise:function(t,i){var n=m.call(this,i);return null==n&&(n=(0,o.NU)(t,e,this.option.visual,!0)),n},fixed:g}}function m(e){var t=this.option,i=t.pieceList;if(t.hasSpecialVisual){var n=l.findPieceIndex(e,i),r=i[n];if(r&&r.visual)return r.visual[this.type]}}function y(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=n.map(t,function(e){return r.parse(e)||[0,0,0,1]})),t}var v={linear:function(e){return(0,o.NU)(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,i=l.findPieceIndex(e,t,!0);if(null!=i)return(0,o.NU)(i,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?-1:t},fixed:n.noop};let x=l},53835:function(e,t,i){i.d(t,{Z:()=>o});var n=i(67975),r={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};let o={get:function(e,t,i){var o=n.clone((r[e]||{})[t]);return i&&n.isArray(o)?o[o.length-1]:o}}},86750:function(e,t,i){i.d(t,{$p:()=>c,Z7:()=>h,jO:()=>u,qD:()=>l});var n=i(67975),r=i(89125),o=i(43928),a=n.each;function s(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function l(e,t,i){var o={};return a(t,function(t){var s,l=o[t]=((s=function(){}).prototype.__hidden=s.prototype,new s);a(e[t],function(e,o){if(r.Z.isValidType(o)){var a={type:o,visual:e};i&&i(a,t),l[o]=new r.Z(a),"opacity"===o&&((a=n.clone(a)).type="colorAlpha",l.__hidden.__alphaForOpacity=new r.Z(a))}})}),o}function u(e,t,i){var r;n.each(i,function(e){t.hasOwnProperty(e)&&s(t[e])&&(r=!0)}),r&&n.each(i,function(i){t.hasOwnProperty(i)&&s(t[i])?e[i]=n.clone(t[i]):delete e[i]})}function c(e,t,i,a,s,l){var u,c={};function h(e){return(0,o.Or)(i,u,e)}function d(e,t){(0,o.LZ)(i,u,e,t)}function p(e,n){u=null==l?e:n;var r=i.getRawDataItem(u);if(!r||!1!==r.visualMap)for(var o=a.call(s,e),p=t[o],g=c[o],f=0,m=g.length;f<m;f++){var y=g[f];p[y]&&p[y].applyVisual(e,h,d)}}n.each(e,function(e){var i=r.Z.prepareVisualTypes(t[e]);c[e]=i}),null==l?i.each(p):i.each([l],p)}function h(e,t,i,a){var s={};return n.each(e,function(e){var i=r.Z.prepareVisualTypes(t[e]);s[e]=i}),{progress:function(e,n){function r(e){return(0,o.Or)(n,c,e)}function l(e,t){(0,o.LZ)(n,c,e,t)}null!=a&&(u=n.getDimensionIndex(a));for(var u,c,h=n.getStore();null!=(c=e.next());){var d=n.getRawDataItem(c);if(!d||!1!==d.visualMap)for(var p=null!=a?h.get(u,c):c,g=i(p),f=t[g],m=s[g],y=0,v=m.length;y<v;y++){var x=m[y];f[x]&&f[x].applyVisual(p,r,l)}}}}}}}]);
@@ -1 +0,0 @@
1
- (()=>{var e={5311:function(e,r,t){Promise.all([t.e("677"),t.e("179"),t.e("620")]).then(t.bind(t,29161))}},r={};function t(n){var o=r[n];if(void 0!==o)return o.exports;var a=r[n]={id:n,loaded:!1,exports:{}};return e[n].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}t.m=e,t.c=r,t.federation||(t.federation={chunkMatcher:function(e){return!/^(1(57|61|79)|23|263|494|677|759|946)$/.test(e)}}),t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce((r,n)=>(t.f[n](e,r),r),[])),t.u=e=>"__mf/js/async/"+("118"===e?"lib-router":e)+"."+({118:"3a3f0205",162:"6eaaf026",173:"b6c742e7",214:"60d550e8",224:"978cad14",236:"f47b54b8",238:"6c65e7fc",292:"4573cfd2",331:"faa6f9eb",360:"e3f25d30",610:"e2fe79a3",620:"415051b8",651:"4eb924e1",656:"dbf72cfa",694:"5088b7d2",738:"5905ca00",740:"6ca05ea5",75:"fb6da1e8",770:"0eef8b15",83:"0215bc58",90:"defedb11",954:"f8bb1788",960:"b6b50cb1",964:"f3efac0a",981:"0942fcbb"})[e]+".js",t.miniCssF=e=>"__mf/css/async/"+e+"."+({263:"1ed8bb01",759:"1ed8bb01"})[e]+".css",t.h=()=>"337be35138bdf307",(()=>{t.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})()})(),t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={},r="StatChart:";t.l=function(n,o,a,i){if(e[n]){e[n].push(o);return}if(void 0!==a)for(var s,l,d=document.getElementsByTagName("script"),c=0;c<d.length;c++){var u=d[c];if(u.getAttribute("src")==n||u.getAttribute("data-webpack")==r+a){s=u;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,t.nc&&s.setAttribute("nonce",t.nc),s.setAttribute("data-webpack",r+a),s.src=n),e[n]=[o];var f=function(r,t){s.onerror=s.onload=null,clearTimeout(h);var o=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach(function(e){return e(t)}),r)return r(t)},h=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),l&&document.head.appendChild(s)}})(),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),t.nc=void 0,(()=>{var e=[];t.O=(r,n,o,a)=>{if(n){a=a||0;for(var i=e.length;i>0&&e[i-1][2]>a;i--)e[i]=e[i-1];e[i]=[n,o,a];return}for(var s=1/0,i=0;i<e.length;i++){for(var[n,o,a]=e[i],l=!0,d=0;d<n.length;d++)(!1&a||s>=a)&&Object.keys(t.O).every(e=>t.O[e](n[d]))?n.splice(d--,1):(l=!1,a<s&&(s=a));if(l){e.splice(i--,1);var c=o();void 0!==c&&(r=c)}}return r}})(),t.p="/plugins/StatChart/",t.rv=()=>"1.2.8",t.j="909",t.S={},t.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@emotion/react",version:"11.14.0",factory:()=>Promise.all([t.e("960"),t.e("677"),t.e("651")]).then(()=>()=>t(96434)),eager:0,singleton:1,requiredVersion:"^11.11.3"},{name:"@emotion/styled",version:"11.14.0",factory:()=>Promise.all([t.e("677"),t.e("157"),t.e("694")]).then(()=>()=>t(51958)),eager:0,singleton:1},{name:"@hookform/resolvers",version:"3.10.0",factory:()=>Promise.all([t.e("292"),t.e("677"),t.e("214")]).then(()=>()=>t(81228)),eager:0,singleton:1},{name:"@perses-dev/components",version:"0.51.0-beta.1",factory:()=>Promise.all([t.e("238"),t.e("224"),t.e("292"),t.e("954"),t.e("236"),t.e("83"),t.e("360"),t.e("90"),t.e("331"),t.e("677"),t.e("179"),t.e("161"),t.e("157"),t.e("946"),t.e("759")]).then(()=>()=>t(13425)),eager:0,singleton:1},{name:"@perses-dev/plugin-system",version:"0.51.0-beta.1",factory:()=>Promise.all([t.e("118"),t.e("292"),t.e("236"),t.e("90"),t.e("162"),t.e("677"),t.e("179"),t.e("161"),t.e("157"),t.e("946"),t.e("23"),t.e("656")]).then(()=>()=>t(57910)),eager:0,singleton:1},{name:"date-fns",version:"4.1.0",factory:()=>Promise.all([t.e("238"),t.e("224"),t.e("75")]).then(()=>()=>t(99657)),eager:0,singleton:1},{name:"echarts",version:"5.5.0",factory:()=>Promise.all([t.e("954"),t.e("83"),t.e("610")]).then(()=>()=>t(2138)),eager:0,singleton:1},{name:"lodash",version:"4.17.21",factory:()=>t.e("981").then(()=>()=>t(98784)),eager:0,singleton:1},{name:"react-dom",version:"18.3.1",factory:()=>Promise.all([t.e("173"),t.e("677")]).then(()=>()=>t(31542)),eager:0,singleton:1,requiredVersion:"18.2.0"},{name:"react",version:"18.3.1",factory:()=>t.e("964").then(()=>()=>t(27378)),eager:0,singleton:1,requiredVersion:"18.2.0"}]},uniqueName:"StatChart"},t.I=t.I||function(){throw Error("should have __webpack_require__.I")},t.consumesLoadingData={chunkMapping:{161:["4665","20461"],494:["57871"],946:["45913"],179:["6085"],157:["72116"],23:["84275","74614","30156","3553","55922","57751","68393"],677:["54538"]},moduleIdToConsumeDataMapping:{45913:{shareScope:"default",shareKey:"@emotion/styled",import:"@emotion/styled",requiredVersion:"^11.3.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>t.e("770").then(()=>()=>t(51958))},57751:{shareScope:"default",shareKey:"@perses-dev/plugin-system",import:"@perses-dev/plugin-system",requiredVersion:"*",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>()=>t(57910)},68393:{shareScope:"default",shareKey:"@perses-dev/components",import:"@perses-dev/components",requiredVersion:"0.51.0-beta.1",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([t.e("238"),t.e("224"),t.e("954"),t.e("83"),t.e("360"),t.e("331"),t.e("263")]).then(()=>()=>t(13425))},30156:{shareScope:"default",shareKey:"echarts",import:"echarts",requiredVersion:"*",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([t.e("954"),t.e("83"),t.e("610")]).then(()=>()=>t(2138))},6085:{shareScope:"default",shareKey:"react-dom",import:"react-dom",requiredVersion:"18.2.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>t.e("173").then(()=>()=>t(31542))},72116:{shareScope:"default",shareKey:"@emotion/react",import:"@emotion/react",requiredVersion:"^11.11.3",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>t.e("960").then(()=>()=>t(96434))},57871:{shareScope:"default",shareKey:"date-fns",import:"date-fns",requiredVersion:"^3.0.0 || ^4.0.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([t.e("238"),t.e("75")]).then(()=>()=>t(99657))},84275:{shareScope:"default",shareKey:"@hookform/resolvers",import:"@hookform/resolvers",requiredVersion:"^2.0.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>t.e("738").then(()=>()=>t(81228))},74614:{shareScope:"default",shareKey:"lodash",import:"lodash",requiredVersion:"*",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>t.e("981").then(()=>()=>t(98784))},4665:{shareScope:"default",shareKey:"date-fns-tz",import:"date-fns-tz",requiredVersion:"^3.2.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([t.e("224"),t.e("740"),t.e("494")]).then(()=>()=>t(48872))},54538:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"18.2.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>t.e("964").then(()=>()=>t(27378))},3553:{shareScope:"default",shareKey:"@perses-dev/plugin-system",import:"@perses-dev/plugin-system",requiredVersion:"0.51.0-beta.1",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>()=>t(57910)},55922:{shareScope:"default",shareKey:"@emotion/styled",import:"@emotion/styled",requiredVersion:"*",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>t.e("770").then(()=>()=>t(51958))},20461:{shareScope:"default",shareKey:"date-fns",import:"date-fns",requiredVersion:"^4.1.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([t.e("238"),t.e("224"),t.e("75")]).then(()=>()=>t(99657))}},initialConsumes:[]},t.f.consumes=t.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")},(()=>{if("undefined"!=typeof document){var e=function(e,r,n,o,a){var i=document.createElement("link");return i.rel="stylesheet",i.type="text/css",t.nc&&(i.nonce=t.nc),i.onerror=i.onload=function(t){if(i.onerror=i.onload=null,"load"===t.type)o();else{var n=t&&("load"===t.type?"missing":t.type),s=t&&t.target&&t.target.href||r,l=Error("Loading CSS chunk "+e+" failed.\\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=n,l.request=s,i.parentNode&&i.parentNode.removeChild(i),a(l)}},i.href=r,n?n.parentNode.insertBefore(i,n.nextSibling):document.head.appendChild(i),i},r=function(e,r){for(var t=document.getElementsByTagName("link"),n=0;n<t.length;n++){var o=t[n],a=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(a===e||a===r))return o}for(var i=document.getElementsByTagName("style"),n=0;n<i.length;n++){var o=i[n],a=o.getAttribute("data-href");if(a===e||a===r)return o}},n={909:0};t.f.miniCss=function(o,a){if(n[o])a.push(n[o]);else if(0!==n[o]&&({263:1,759:1})[o])a.push(n[o]=new Promise(function(n,a){var i=t.miniCssF(o),s=t.p+i;if(r(i,s))return n();e(o,s,null,n,a)}).then(function(){n[o]=0},function(e){throw delete n[o],e}))}}})(),(()=>{var e={909:0};t.f.j=function(r,n){var o=t.o(e,r)?e[r]:void 0;if(0!==o){if(o)n.push(o[2]);else if(/^(1(57|61|79)|23|263|494|677|759|946)$/.test(r))e[r]=0;else{var a=new Promise((t,n)=>o=e[r]=[t,n]);n.push(o[2]=a);var i=t.p+t.u(r),s=Error();t.l(i,function(n){if(t.o(e,r)&&(0!==(o=e[r])&&(e[r]=void 0),o)){var a=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+r+" failed.\n("+a+": "+i+")",s.name="ChunkLoadError",s.type=a,s.request=i,o[1](s)}},"chunk-"+r,r)}}},t.O.j=r=>0===e[r];var r=(r,n)=>{var o,a,[i,s,l]=n,d=0;if(i.some(r=>0!==e[r])){for(o in s)t.o(s,o)&&(t.m[o]=s[o]);if(l)var c=l(t)}for(r&&r(n);d<i.length;d++)a=i[d],t.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return t.O(c)},n=self.webpackChunkStatChart=self.webpackChunkStatChart||[];n.forEach(r.bind(null,0)),n.push=r.bind(null,n.push.bind(n))})(),t.ruid="bundler=rspack@1.2.8",t.O(void 0,["435"],function(){return t(82837)});var n=t.O(void 0,["435"],function(){return t(5311)});n=t.O(n)})();