unisi 0.3.18__py3-none-any.whl → 0.3.20__py3-none-any.whl
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.
- unisi/common.py +5 -5
- unisi/llmrag.py +70 -6
- unisi/server.py +5 -5
- unisi/units.py +6 -5
- unisi/users.py +3 -1
- unisi/web/css/565.f35d8840.css +1 -0
- unisi/web/css/72.9393078c.css +1 -0
- unisi/web/css/{vendor.f7e3cefe.css → app.36cc37f3.css} +3 -3
- unisi/web/css/app.36cc37f3.css.gz +0 -0
- unisi/web/fonts/KFOMCnqEu92Fr1ME7kSn66aGLdTylUAMQXC89YmC2DPNWuYjalmUiAw.2cafd699.woff +0 -0
- unisi/web/fonts/KFOMCnqEu92Fr1ME7kSn66aGLdTylUAMQXC89YmC2DPNWuZtalmUiAw.7f471697.woff +0 -0
- unisi/web/fonts/KFOMCnqEu92Fr1ME7kSn66aGLdTylUAMQXC89YmC2DPNWuaabVmUiAw.b69d1cce.woff +0 -0
- unisi/web/fonts/KFOMCnqEu92Fr1ME7kSn66aGLdTylUAMQXC89YmC2DPNWub2bVmUiAw.2115c3bd.woff +0 -0
- unisi/web/fonts/KFOMCnqEu92Fr1ME7kSn66aGLdTylUAMQXC89YmC2DPNWubEbFmUiAw.bb8ee9ee.woff +0 -0
- unisi/web/fonts/KFOMCnqEu92Fr1ME7kSn66aGLdTylUAMQXC89YmC2DPNWubEbVmUiAw.eb9d7304.woff +0 -0
- unisi/web/index.html +1 -1
- unisi/web/js/260.1d50abd6.js +1 -0
- unisi/web/js/565.437dc595.js +3 -0
- unisi/web/js/565.437dc595.js.gz +0 -0
- unisi/web/js/609.a5c4177e.js +1 -0
- unisi/web/js/72.f1673470.js +1 -0
- unisi/web/js/935.a10cb1a0.js +1 -0
- unisi/web/js/app.aa62bd3c.js +1 -0
- unisi/web/js/echart.8f773fb7.js +1 -0
- unisi/web/js/echart.8f773fb7.js.gz +0 -0
- unisi/web/js/sigma.ce21336a.js +1 -0
- unisi/web/js/sigma.ce21336a.js.gz +0 -0
- unisi/web/js/vendor.6a64dcc5.js +57 -0
- unisi/web/js/vendor.6a64dcc5.js.gz +0 -0
- {unisi-0.3.18.dist-info → unisi-0.3.20.dist-info}/METADATA +1 -1
- unisi-0.3.20.dist-info/RECORD +58 -0
- unisi/web/css/131.703d8f36.css +0 -1
- unisi/web/css/app.31d6cfe0.css +0 -0
- unisi/web/fonts/KFOkCnqEu92Fr1MmgVxIIzQ.68bb21d0.woff +0 -0
- unisi/web/fonts/KFOlCnqEu92Fr1MmEU9fBBc-.48af7707.woff +0 -0
- unisi/web/fonts/KFOlCnqEu92Fr1MmSU5fBBc-.c2f7ab22.woff +0 -0
- unisi/web/fonts/KFOlCnqEu92Fr1MmWUlfBBc-.77ecb942.woff +0 -0
- unisi/web/fonts/KFOlCnqEu92Fr1MmYUtfBBc-.f5677eb2.woff +0 -0
- unisi/web/fonts/KFOmCnqEu92Fr1Mu4mxM.f1e2a767.woff +0 -0
- unisi/web/js/131.76c61515.js +0 -3
- unisi/web/js/609.35dc13d3.js +0 -1
- unisi/web/js/935.cc0c012c.js +0 -1
- unisi/web/js/app.6f20f926.js +0 -1
- unisi/web/js/vendor.1bb14e9d.js +0 -45
- unisi-0.3.18.dist-info/RECORD +0 -49
- {unisi-0.3.18.dist-info → unisi-0.3.20.dist-info}/WHEEL +0 -0
- {unisi-0.3.18.dist-info → unisi-0.3.20.dist-info}/entry_points.txt +0 -0
- {unisi-0.3.18.dist-info → unisi-0.3.20.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";(globalThis["webpackChunkuniqua"]=globalThis["webpackChunkuniqua"]||[]).push([[464],{1879:(e,t,n)=>{n.r(t),n.d(t,{Axis:()=>Ai,ChartView:()=>h.A,ComponentModel:()=>d.A,ComponentView:()=>c.A,List:()=>ae,Model:()=>_.A,PRIORITY:()=>u.FQ,SeriesModel:()=>p.A,color:()=>ue,connect:()=>u.Ng,dataTool:()=>u.p5,dependencies:()=>u.El,disConnect:()=>u.zm,disconnect:()=>u.Zf,dispose:()=>u.AS,env:()=>ri.A,extendChartView:()=>Li,extendComponentModel:()=>Ci,extendComponentView:()=>Ti,extendSeriesModel:()=>Di,format:()=>s,getCoordinateSystemDimensions:()=>u.Bo,getInstanceByDom:()=>u.FP,getInstanceById:()=>u.aQ,getMap:()=>u.ZB,graphic:()=>a,helper:()=>i,init:()=>u.Ts,innerDrawElementOnCanvas:()=>Ii.Xi,matrix:()=>se,number:()=>r,parseGeoJSON:()=>Rn,parseGeoJson:()=>Rn,registerAction:()=>u.OH,registerCoordinateSystem:()=>u.pX,registerLayout:()=>u.Oh,registerLoading:()=>u.Ej,registerLocale:()=>u.E,registerMap:()=>u.mz,registerPostInit:()=>u.cf,registerPostUpdate:()=>u.tb,registerPreprocessor:()=>u.lP,registerProcessor:()=>u.qg,registerTheme:()=>u.bf,registerTransform:()=>u.iY,registerUpdateLifecycle:()=>u.xV,registerVisual:()=>u.AF,setCanvasCreator:()=>u.vV,setPlatformAPI:()=>bn.Gs,throttle:()=>ce.nF,time:()=>o,use:()=>x,util:()=>l,vector:()=>le,version:()=>u.rE,zrUtil:()=>f,zrender:()=>y});var i={};n.r(i),n.d(i,{createDimensions:()=>de,createList:()=>yn,createScale:()=>vn,createSymbol:()=>fn.v5,createTextStyle:()=>_n,dataStack:()=>mn,enableHoverEmphasis:()=>gn.iJ,getECData:()=>R.z,getLayoutRect:()=>dn.dV,mixinAxisModelCommonMethods:()=>xn});var r={};n.r(r),n.d(r,{MAX_SAFE_INTEGER:()=>Ge.Is,asc:()=>Ge.Y6,getPercentWithPrecision:()=>Ge.wp,getPixelPrecision:()=>Ge.hb,getPrecision:()=>Ge.XV,getPrecisionSafe:()=>Ge.y6,isNumeric:()=>Ge.kf,isRadianAroundZero:()=>Ge.dh,linearMap:()=>Ge.Cb,nice:()=>Ge.Cm,numericToNumber:()=>Ge.Sm,parseDate:()=>Ge._U,quantile:()=>Ge.YV,quantity:()=>Ge.au,quantityExponent:()=>Ge.NX,reformIntervals:()=>Ge.sL,remRadian:()=>Ge._7,round:()=>Ge.LI});var o={};n.r(o),n.d(o,{format:()=>bt.GP,parse:()=>Ge._U});var a={};n.r(a),n.d(a,{Arc:()=>$n.A,BezierCurve:()=>qn.A,BoundingRect:()=>_t.A,Circle:()=>Fn.A,CompoundPath:()=>Jn.A,Ellipse:()=>Hn.A,Group:()=>zn.A,Image:()=>Bn.Ay,IncrementalDisplayable:()=>Kn.A,Line:()=>jn.A,LinearGradient:()=>Qn.A,Polygon:()=>Yn.A,Polyline:()=>Xn.A,RadialGradient:()=>ei.A,Rect:()=>Zn.A,Ring:()=>Un.A,Sector:()=>Wn.A,Text:()=>Gn.Ay,clipPointsByRect:()=>En.clipPointsByRect,clipRectByRect:()=>En.clipRectByRect,createIcon:()=>En.createIcon,extendPath:()=>En.extendPath,extendShape:()=>En.extendShape,getShapeClass:()=>En.getShapeClass,getTransform:()=>En.getTransform,initProps:()=>Vn.LW,makeImage:()=>En.makeImage,makePath:()=>En.makePath,mergePath:()=>En.mergePath,registerShape:()=>En.registerShape,resizePath:()=>En.resizePath,updateProps:()=>Vn.oi});var s={};n.r(s),n.d(s,{addCommas:()=>Je.ob,capitalFirst:()=>Je.x5,encodeHTML:()=>ti.Me,formatTime:()=>Je.fU,formatTpl:()=>Je.YK,getTextRect:()=>ii,getTooltipMarker:()=>Je.qg,normalizeCssArray:()=>Je.QX,toCamelCase:()=>Je.Cb,truncateText:()=>ni.EJ});var l={};n.r(l),n.d(l,{bind:()=>f.bind,clone:()=>f.clone,curry:()=>f.curry,defaults:()=>f.defaults,each:()=>f.each,extend:()=>f.extend,filter:()=>f.filter,indexOf:()=>f.indexOf,inherits:()=>f.inherits,isArray:()=>f.isArray,isFunction:()=>f.isFunction,isObject:()=>f.isObject,isString:()=>f.isString,map:()=>f.map,merge:()=>f.merge,reduce:()=>f.reduce});var u=n(8938),c=n(126),h=n(1829),d=n(8898),p=n(6840),f=n(5279),g=n(8933),y=n(7187),m=[],v={registerPreprocessor:u.lP,registerProcessor:u.qg,registerPostInit:u.cf,registerPostUpdate:u.tb,registerUpdateLifecycle:u.xV,registerAction:u.OH,registerCoordinateSystem:u.pX,registerLayout:u.Oh,registerVisual:u.AF,registerTransform:u.iY,registerLoading:u.Ej,registerMap:u.mz,registerImpl:g.m,PRIORITY:u.FQ,ComponentModel:d.A,ComponentView:c.A,SeriesModel:p.A,ChartView:h.A,registerComponentModel:function(e){d.A.registerClass(e)},registerComponentView:function(e){c.A.registerClass(e)},registerSeriesModel:function(e){p.A.registerClass(e)},registerChartView:function(e){h.A.registerClass(e)},registerSubTypeDefaulter:function(e,t){d.A.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){(0,y.registerPainter)(e,t)}};function x(e){(0,f.isArray)(e)?(0,f.each)(e,(function(e){x(e)})):(0,f.indexOf)(m,e)>=0||(m.push(e),(0,f.isFunction)(e)&&(e={install:e}),e.install(v))}var _=n(9338);function b(e){return null==e?0:e.length||1}function S(e){return e}var w=function(){function e(e,t,n,i,r,o){this._old=e,this._new=t,this._oldKeyGetter=n||S,this._newKeyGetter=i||S,this.context=r,this._diffModeMultiple="multiple"===o}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},i=new Array(e.length),r=new Array(t.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(t,n,r,"_newKeyGetter");for(var o=0;o<e.length;o++){var a=i[o],s=n[a],l=b(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},i={},r=[],o=[];this._initIndexMap(e,n,r,"_oldKeyGetter"),this._initIndexMap(t,i,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=n[s],u=i[s],c=b(l),h=b(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),i[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(c>1)for(var d=0;d<c;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var i=e[n],r=t[i],o=b(r);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);t[i]=null}},e.prototype._initIndexMap=function(e,t,n,i){for(var r=this._diffModeMultiple,o=0;o<e.length;o++){var a="_ec_"+this[i](e[o],o);if(r||(n[o]=a),t){var s=t[a],l=b(s);0===l?(t[a]=o,r&&n.push(a)):1===l?t[a]=[s,o]:s.push(o)}}},e}();const M=w;var A=n(2612),I=n(1533),C=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function T(e,t){var n={},i=n.encode={},r=(0,f.createHashMap)(),o=[],a=[],s={};(0,f.each)(e.dimensions,(function(t){var n=e.getDimensionInfo(t),l=n.coordDim;if(l){0;var u=n.coordDimIndex;D(i,l)[u]=t,n.isExtraCoord||(r.set(l,1),k(n.type)&&(o[0]=t),D(s,l)[u]=e.getDimensionIndex(n.name)),n.defaultTooltip&&a.push(t)}I.Pe.each((function(e,t){var r=D(i,t),o=n.otherDims[t];null!=o&&!1!==o&&(r[o]=n.name)}))}));var l=[],u={};r.each((function(e,t){var n=i[t];u[t]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=(0,f.map)(l,(function(t){return e.getDimensionInfo(t).storeDimIndex})),n.encodeFirstDimNotExtra=u;var c=i.label;c&&c.length&&(o=c.slice());var h=i.tooltip;return h&&h.length?a=h.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new C(s,t),n}function D(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function L(e){return"category"===e?"ordinal":"time"===e?"time":"float"}function k(e){return!("ordinal"===e||"time"===e)}var O=function(){function e(e){this.otherDims={},null!=e&&f.extend(this,e)}return e}();const P=O;var N=n(7045),R=n(39),E=n(6627),V=n(5253),z=(0,N.$r)(),B={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},G=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=W(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return(0,f.retrieve2)(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=(0,E.O0)(this.source),n=!U(e),i="",r=[],o=0,a=0;o<e;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=t?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var h=this.getSourceDimension(o);h&&(s=t?h.name:null,l=h.type)}r.push({property:s,type:l,ordinalMeta:u}),!t||null==s||c&&c.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=B[l]||"f",u&&(i+=u.uid),i+="$"}var d=this.source,p=[d.seriesLayoutBy,d.startIndex,i].join("$$");return{dimensions:r,hash:p}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===t)r.isCalculationCoord||(i=r.name),n++;else{var o=this.getSourceDimension(t);o&&(i=o.name)}e.push(i)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function F(e){return e instanceof G}function H(e){for(var t=(0,f.createHashMap)(),n=0;n<(e||[]).length;n++){var i=e[n],r=(0,f.isObject)(i)?i.name:i;null!=r&&null==t.get(r)&&t.set(r,n)}return t}function W(e){var t=z(e);return t.dimNameMap||(t.dimNameMap=H(e.dimensionsDefine))}function U(e){return e>30}var Y,X,Z,j,q,$,K,J=f.isObject,Q=f.map,ee="undefined"===typeof Int32Array?Array:Int32Array,te="e\0\0",ne=-1,ie=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],re=["_approximateExtent"],oe=function(){function e(e,t){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i=!1;F(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],h=f.isString(c)?new P({name:c}):c instanceof P?c:new P(c),d=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=d,h.coordDimIndex=0);var p=h.otherDims=h.otherDims||{};o.push(d),r[d]=h,null!=l[d]&&(s=!0),h.createInvertedIndices&&(a[d]=[]),0===p.itemName&&(this._nameDimIdx=u),0===p.itemId&&(this._idDimIdx=u),i&&(h.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=a,this._dimOmitted){var g=this._dimIdxToName=f.createHashMap();f.each(o,(function(e){g.set(r[e].storeDimIndex,e)}))}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(null!=n)return n;var i=this._schema.getSourceDimension(t);return i?i.name:void 0},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(f.isNumber(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[t]:null},e.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,n=t.encode[e];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var i,r=this;if(e instanceof V.Ay&&(i=e),!i){var o=this.dimensions,a=(0,E.tP)(e)||f.isArrayLike(e)?new A.d1(e,o.length):e;i=new V.Ay;var s=Q(o,(function(e){return{type:r._dimInfos[e].type,property:e}}));i.initData(a,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=T(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var a=i;a<r;a++){var s=a-i;this._nameList[a]=t[s],o&&K(this,a)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var i=this._dimInfos[t[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==I.XO&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList,a=i.getSource().sourceFormat,s=a===I.mK;if(s&&!i.pure)for(var l=[],u=e;u<t;u++){var c=i.getItem(u,l);if(!this.hasItemOption&&(0,N.zu)(c)&&(this.hasItemOption=!0),c){var h=c.name;null==r[u]&&null!=h&&(r[u]=(0,N.vS)(h,null));var d=c.id;null==o[u]&&null!=d&&(o[u]=(0,N.vS)(d,null))}}if(this._shouldMakeIdFromName())for(u=e;u<t;u++)K(this,u);Y(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){J(e)?f.extend(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=Z(this,this._nameDimIdx,t)),null==n&&(n=""),n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},e.prototype.getId=function(e){return X(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,i=this._store;return f.isArray(e)?i.getValues(Q(e,(function(e){return n._getStoreDimIndex(e)})),t):i.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,i=t.length;n<i;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e];var i=n&&n[t];return null==i||isNaN(i)?ne:i},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){f.isFunction(e)&&(n=t,t=e,e=[]);var i=n||this,r=Q(j(e),this._getStoreDimIndex,this);this._store.each(r,i?f.bind(t,i):t)},e.prototype.filterSelf=function(e,t,n){f.isFunction(e)&&(n=t,t=e,e=[]);var i=n||this,r=Q(j(e),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?f.bind(t,i):t),this},e.prototype.selectRange=function(e){var t=this,n={},i=f.keys(e),r=[];return f.each(i,(function(i){var o=t._getStoreDimIndex(i);n[o]=e[i],r.push(o)})),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){f.isFunction(e)&&(n=t,t=e,e=[]),n=n||this;var i=[];return this.each(e,(function(){i.push(t&&t.apply(this,arguments))}),n),i},e.prototype.map=function(e,t,n,i){var r=n||i||this,o=Q(j(e),this._getStoreDimIndex,this),a=$(this);return a._store=this._store.map(o,r?f.bind(t,r):t),a},e.prototype.modify=function(e,t,n,i){var r=n||i||this;var o=Q(j(e),this._getStoreDimIndex,this);this._store.modify(o,r?f.bind(t,r):t)},e.prototype.downSample=function(e,t,n,i){var r=$(this);return r._store=this._store.downSample(this._getStoreDimIndex(e),t,n,i),r},e.prototype.minmaxDownSample=function(e,t){var n=$(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=$(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new _.A(n,t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new M(e?e.getStore().getIndices():[],this.getStore().getIndices(),(function(t){return X(e,t)}),(function(e){return X(t,e)}))},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},J(e)?f.extend(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],i=n&&n[t];return null==i?this.getVisual(t):i},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var r=i[t];return null==r&&(r=this.getVisual(t),f.isArray(r)?r=r.slice():J(r)&&(r=f.extend({},r)),i[t]=r),r},e.prototype.setItemVisual=function(e,t,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,J(t)?f.extend(i,t):i[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){J(e)?f.extend(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?f.extend(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;(0,R.a)(n,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){f.each(this._graphicEls,(function(n,i){n&&e&&e.call(t,n,i)}))},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Q(this.dimensions,this._getDimInfo,this),this.hostModel)),q(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];f.isFunction(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(f.slice(arguments)))})},e.internalField=function(){Y=function(e){var t=e._invertedIndicesMap;f.each(t,(function(n,i){var r=e._dimInfos[i],o=r.ordinalMeta,a=e._store;if(o){n=t[i]=new ee(o.categories.length);for(var s=0;s<n.length;s++)n[s]=ne;for(s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}}))},Z=function(e,t,n){return(0,N.vS)(e._getCategory(t,n),null)},X=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=Z(e,e._idDimIdx,t)),null==n&&(n=te+t),n},j=function(e){return f.isArray(e)||(e=null!=e?[e]:[]),e},$=function(t){var n=new e(t._schema?t._schema:Q(t.dimensions,t._getDimInfo,t),t.hostModel);return q(n,t),n},q=function(e,t){f.each(ie.concat(t.__wrappedMethods||[]),(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e.__wrappedMethods=t.__wrappedMethods,f.each(re,(function(n){e[n]=f.clone(t[n])})),e._calculationInfo=f.extend({},t._calculationInfo)},K=function(e,t){var n=e._nameList,i=e._idList,r=e._nameDimIdx,o=e._idDimIdx,a=n[t],s=i[t];if(null==a&&null!=r&&(n[t]=a=Z(e,r,t)),null==s&&null!=o&&(i[t]=s=Z(e,o,t)),null==s&&null!=a){var l=e._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),i[t]=s}}}(),e}();const ae=oe;var se=n(7454),le=n(392),ue=n(2485),ce=n(5750),he=n(4408);function de(e,t){return pe(e,t).dimensions}function pe(e,t){(0,E.tP)(e)||(e=(0,E.AF)(e)),t=t||{};var n=t.coordDimensions||[],i=t.dimensionsDefine||e.dimensionsDefine||[],r=(0,f.createHashMap)(),o=[],a=ge(e,n,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&U(a),l=i===e.dimensionsDefine,u=l?W(e):H(i),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var h=(0,f.createHashMap)(c),d=new V.A_(a),p=0;p<d.length;p++)d[p]=-1;function g(e){var t=d[e];if(t<0){var n=i[e],r=(0,f.isObject)(n)?n:{name:n},a=new P,s=r.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=r.type&&(a.type=r.type),null!=r.displayName&&(a.displayName=r.displayName);var l=o.length;return d[e]=l,a.storeDimIndex=e,o.push(a),a}return o[t]}if(!s)for(p=0;p<a;p++)g(p);h.each((function(e,t){var n=(0,N.qB)(e).slice();if(1===n.length&&!(0,f.isString)(n[0])&&n[0]<0)h.set(t,!1);else{var i=h.set(t,[]);(0,f.each)(n,(function(e,n){var r=(0,f.isString)(e)?u.get(e):e;null!=r&&r<a&&(i[n]=r,m(g(r),t,n))}))}}));var y=0;function m(e,t,n){null!=I.Pe.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,r.set(t,!0))}(0,f.each)(n,(function(e){var t,n,i,r;if((0,f.isString)(e))t=e,r={};else{r=e,t=r.name;var o=r.ordinalMeta;r.ordinalMeta=null,r=(0,f.extend)({},r),r.ordinalMeta=o,n=r.dimsDef,i=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var s=h.get(t);if(!1!==s){if(s=(0,N.qB)(s),!s.length)for(var u=0;u<(n&&n.length||1);u++){while(y<a&&null!=g(y).coordDim)y++;y<a&&s.push(y++)}(0,f.each)(s,(function(e,o){var a=g(e);if(l&&null!=r.type&&(a.type=r.type),m((0,f.defaults)(a,r),t,o),null==a.name&&n){var s=n[o];!(0,f.isObject)(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}i&&(0,f.defaults)(a.otherDims,i)}))}}));var v=t.generateCoord,x=t.generateCoordCount,_=null!=x;x=v?x||1:0;var b=v||"value";function S(e){null==e.name&&(e.name=e.coordDim)}if(s)(0,f.each)(o,(function(e){S(e)})),o.sort((function(e,t){return e.storeDimIndex-t.storeDimIndex}));else for(var w=0;w<a;w++){var M=g(w),A=M.coordDim;null==A&&(M.coordDim=ye(b,r,_),M.coordDimIndex=0,(!v||x<=0)&&(M.isExtraCoord=!0),x--),S(M),null!=M.type||(0,he.PU)(e,w)!==he.sc.Must&&(!M.isExtraCoord||null==M.otherDims.itemName&&null==M.otherDims.seriesName)||(M.type="ordinal")}return fe(o),new G({source:e,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function fe(e){for(var t=(0,f.createHashMap)(),n=0;n<e.length;n++){var i=e[n],r=i.name,o=t.get(r)||0;o>0&&(i.name=r+(o-1)),o++,t.set(r,o)}}function ge(e,t,n,i){var r=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,i||0);return(0,f.each)(t,(function(e){var t;(0,f.isObject)(e)&&(t=e.dimsDef)&&(r=Math.max(r,t.length))})),r}function ye(e,t,n){if(n||t.hasKey(e)){var i=0;while(t.hasKey(e+i))i++;e+=i}return t.set(e,!0),e}var me=n(8384),ve=function(){function e(e){this.coordSysDims=[],this.axisMap=(0,f.createHashMap)(),this.categoryAxisMap=(0,f.createHashMap)(),this.coordSysName=e}return e}();function xe(e){var t=e.get("coordinateSystem"),n=new ve(t),i=_e[t];if(i)return i(e,n,n.axisMap,n.categoryAxisMap),n}var _e={cartesian2d:function(e,t,n,i){var r=e.getReferringComponents("xAxis",N.US).models[0],o=e.getReferringComponents("yAxis",N.US).models[0];t.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),be(r)&&(i.set("x",r),t.firstCategoryDimIndex=0),be(o)&&(i.set("y",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,i){var r=e.getReferringComponents("singleAxis",N.US).models[0];t.coordSysDims=["single"],n.set("single",r),be(r)&&(i.set("single",r),t.firstCategoryDimIndex=0)},polar:function(e,t,n,i){var r=e.getReferringComponents("polar",N.US).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),be(o)&&(i.set("radius",o),t.firstCategoryDimIndex=0),be(a)&&(i.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,i){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,i){var r=e.ecModel,o=r.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();(0,f.each)(o.parallelAxisIndex,(function(e,o){var s=r.getComponent("parallelAxis",e),l=a[o];n.set(l,s),be(s)&&(i.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=o))}))}};function be(e){return"category"===e.get("type")}function Se(e,t,n){n=n||{};var i,r,o,a=n.byIndex,s=n.stackedCoordDimension;we(t)?i=t:(r=t.schema,i=r.dimensions,o=t.store);var l,u,c,h,d=!(!e||!e.get("stack"));if((0,f.each)(i,(function(e,t){(0,f.isString)(e)&&(i[t]=e={name:e}),d&&!e.isExtraCoord&&(a||l||!e.ordinalMeta||(l=e),u||"ordinal"===e.type||"time"===e.type||s&&s!==e.coordDim||(u=e))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+e.id,h="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,g=u.type,y=0;(0,f.each)(i,(function(e){e.coordDim===p&&y++}));var m={name:c,coordDim:p,coordDimIndex:y,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},v={name:h,coordDim:h,coordDimIndex:y+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(m.storeDimIndex=o.ensureCalculationDimension(h,g),v.storeDimIndex=o.ensureCalculationDimension(c,g)),r.appendCalculationDimension(m),r.appendCalculationDimension(v)):(i.push(m),i.push(v))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function we(e){return!F(e.schema)}function Me(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function Ae(e,t){return Me(e,t)?e.getCalculationInfo("stackResultDimension"):t}function Ie(e,t){var n,i=e.get("coordinateSystem"),r=me.A.get(i);return t&&t.coordSysDims&&(n=f.map(t.coordSysDims,(function(e){var n={name:e},i=t.axisMap.get(e);if(i){var r=i.get("type");n.type=L(r)}return n}))),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}function Ce(e,t,n){var i,r;return n&&f.each(e,(function(e,o){var a=e.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(r=!0)})),r||null==i||(e[i].otherDims.itemName=0),i}function Te(e,t,n){n=n||{};var i,r=t.getSourceManager(),o=!1;e?(o=!0,i=(0,E.AF)(e)):(i=r.getSource(),o=i.sourceFormat===I.mK);var a=xe(t),s=Ie(t,a),l=n.useEncodeDefaulter,u=f.isFunction(l)?l:l?f.curry(he.OC,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},h=pe(i,c),d=Ce(h.dimensions,n.createInvertedIndices,a),p=o?null:r.getSharedDataStore(h),g=Se(t,{schema:h,store:p}),y=new ae(h,t);y.setCalculationInfo(g);var m=null!=d&&De(i)?function(e,t,n,i){return i===d?n:this.defaultDimValueGetter(e,t,n,i)}:null;return y.hasItemOption=!1,y.initData(o?i:p,null,m),y}function De(e){if(e.sourceFormat===I.mK){var t=Le(e.data||[]);return!f.isArray((0,N.vj)(t))}}function Le(e){var t=0;while(t<e.length&&null==e[t])t++;return e[t]}const ke=Te;var Oe=n(8948),Pe=n(6706),Ne=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();Pe.tQ(Ne);const Re=Ne;var Ee=0,Ve=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++Ee}return e.createByAxisModel=function(t){var n=t.option,i=n.data,r=i&&(0,f.map)(i,ze);return new e({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!(0,f.isString)(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var i=this._getOrCreateMap();return t=i.get(e),null==t&&(n?(t=this.categories.length,this.categories[t]=e,i.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=(0,f.createHashMap)(this.categories))},e}();function ze(e){return(0,f.isObject)(e)&&null!=e.value?e.value:e+""}const Be=Ve;var Ge=n(6471);function Fe(e){return"interval"===e.type||"log"===e.type}function He(e,t,n,i){var r={},o=e[1]-e[0],a=r.interval=(0,Ge.Cm)(o/t,!0);null!=n&&a<n&&(a=r.interval=n),null!=i&&a>i&&(a=r.interval=i);var s=r.intervalPrecision=Ue(a),l=r.niceTickExtent=[(0,Ge.LI)(Math.ceil(e[0]/a)*a,s),(0,Ge.LI)(Math.floor(e[1]/a)*a,s)];return Xe(l,e),r}function We(e){var t=Math.pow(10,(0,Ge.NX)(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,(0,Ge.LI)(n*t)}function Ue(e){return(0,Ge.XV)(e)+2}function Ye(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function Xe(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Ye(e,0,t),Ye(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Ze(e,t){return e>=t[0]&&e<=t[1]}function je(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function qe(e,t){return e*(t[1]-t[0])+t[0]}var $e=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Be({})),(0,f.isArray)(i)&&(i=new Be({categories:(0,f.map)(i,(function(e){return(0,f.isObject)(e)?e.value:e}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return(0,Oe.C6)(t,e),t.prototype.parse=function(e){return null==e?NaN:(0,f.isString)(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Ze(e,this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),je(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(qe(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){var e=[],t=this._extent,n=t[0];while(n<=t[1])e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,t.length);r<a;++r){var s=t[r];n[r]=s,i[s]=r}for(var l=0;r<o;++r){while(null!=i[l])l++;n.push(l),i[l]=r}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Re);Re.registerClass($e);const Ke=$e;var Je=n(8269),Qe=Ge.LI,et=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return(0,Oe.C6)(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Ze(e,this._extent)},t.prototype.normalize=function(e){return je(e,this._extent)},t.prototype.scale=function(e){return qe(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=Ue(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!t)return o;var a=1e4;n[0]<i[0]&&(e?o.push({value:Qe(i[0]-t,r)}):o.push({value:n[0]}));var s=i[0];while(s<=i[1]){if(o.push({value:s}),s=Qe(s+t,r),s===o[o.length-1].value)break;if(o.length>a)return[]}var l=o.length?o[o.length-1].value:i[1];return n[1]>l&&(e?o.push({value:Qe(l+t,r)}):o.push({value:n[1]})),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<t.length;r++){var o=t[r],a=t[r-1],s=0,l=[],u=o.value-a.value,c=u/e;while(s<e-1){var h=Qe(a.value+(s+1)*c);h>i[0]&&h<i[1]&&l.push(h),s++}n.push(l)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;null==n?n=Ge.XV(e.value)||0:"auto"===n&&(n=this._intervalPrecision);var i=Qe(e.value,n,!0);return Je.ob(i)},t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var o=He(i,e,t,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=Math.abs(t[0]);e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var i=t[1]-t[0];isFinite(i)||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var r=this._interval;e.fixMin||(t[0]=Qe(Math.floor(t[0]/r)*r)),e.fixMax||(t[1]=Qe(Math.ceil(t[1]/r)*r))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(Re);Re.registerClass(et);const tt=et;var nt=n(1057),it="undefined"!==typeof Float32Array,rt=it?Float32Array:Array;function ot(e){return(0,f.isArray)(e)?it?new Float32Array(e):e:new rt(e)}var at="__ec_stack_";function st(e){return e.get("stack")||at+e.seriesIndex}function lt(e){return e.dim+e.index}function ut(e){var t=[],n=e.axis,i="axis0";if("category"===n.type){for(var r=n.getBandWidth(),o=0;o<e.count;o++)t.push((0,f.defaults)({bandWidth:r,axisKey:i,stackId:at+o},e));var a=pt(t),s=[];for(o=0;o<e.count;o++){var l=a[i][at+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function ct(e,t){var n=[];return t.eachSeriesByType(e,(function(e){mt(e)&&n.push(e)})),n}function ht(e){var t={};(0,f.each)(e,(function(e){var n=e.coordinateSystem,i=n.getBaseAxis();if("time"===i.type||"value"===i.type)for(var r=e.getData(),o=i.dim+"_"+i.index,a=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getStore(),l=0,u=s.count();l<u;++l){var c=s.get(a,l);t[o]?t[o].push(c):t[o]=[c]}}));var n={};for(var i in t)if(t.hasOwnProperty(i)){var r=t[i];if(r){r.sort((function(e,t){return e-t}));for(var o=null,a=1;a<r.length;++a){var s=r[a]-r[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}function dt(e){var t=ht(e),n=[];return(0,f.each)(e,(function(e){var i,r=e.coordinateSystem,o=r.getBaseAxis(),a=o.getExtent();if("category"===o.type)i=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=t[s],u=Math.abs(a[1]-a[0]),c=o.scale.getExtent(),h=Math.abs(c[1]-c[0]);i=l?u/h*l:u}else{var d=e.getData();i=Math.abs(a[1]-a[0])/d.count()}var p=(0,Ge.lo)(e.get("barWidth"),i),f=(0,Ge.lo)(e.get("barMaxWidth"),i),g=(0,Ge.lo)(e.get("barMinWidth")||(vt(e)?.5:1),i),y=e.get("barGap"),m=e.get("barCategoryGap");n.push({bandWidth:i,barWidth:p,barMaxWidth:f,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:lt(o),stackId:st(e)})})),pt(n)}function pt(e){var t={};(0,f.each)(e,(function(e,n){var i=e.axisKey,r=e.bandWidth,o=t[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;t[i]=o;var s=e.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=e.barMaxWidth;u&&(a[s].maxWidth=u);var c=e.barMinWidth;c&&(a[s].minWidth=c);var h=e.barGap;null!=h&&(o.gap=h);var d=e.barCategoryGap;null!=d&&(o.categoryGap=d)}));var n={};return(0,f.each)(t,(function(e,t){n[t]={};var i=e.stacks,r=e.bandWidth,o=e.categoryGap;if(null==o){var a=(0,f.keys)(i).length;o=Math.max(35-4*a,15)+"%"}var s=(0,Ge.lo)(o,r),l=(0,Ge.lo)(e.gap,1),u=e.remainedWidth,c=e.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),(0,f.each)(i,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){i=e.width;t&&(i=Math.min(i,t)),n&&(i=Math.max(i,n)),e.width=i,u-=i+l*i,c--}else{var i=h;t&&t<i&&(i=Math.min(t,u)),n&&n>i&&(i=n),i!==h&&(e.width=i,u-=i+l*i,c--)}})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var d,p=0;(0,f.each)(i,(function(e,t){e.width||(e.width=h),d=e,p+=e.width*(1+l)})),d&&(p-=d.width*l);var g=-p/2;(0,f.each)(i,(function(e,i){n[t][i]=n[t][i]||{bandWidth:r,offset:g,width:e.width},g+=e.width*(1+l)}))})),n}function ft(e,t,n){if(e&&t){var i=e[lt(t)];return null!=i&&null!=n?i[st(n)]:i}}function gt(e,t){var n=ct(e,t),i=dt(n);(0,f.each)(n,(function(e){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),o=st(e),a=i[lt(r)][o],s=a.offset,l=a.width;t.setLayout({bandWidth:a.bandWidth,offset:s,size:l})}))}function yt(e){return{seriesType:e,plan:(0,nt.A)(),reset:function(e){if(mt(e)){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=t.getDimensionIndex(t.mapDimension(r.dim)),a=t.getDimensionIndex(t.mapDimension(i.dim)),s=e.get("showBackground",!0),l=t.mapDimension(r.dim),u=t.getCalculationInfo("stackResultDimension"),c=Me(t,l)&&!!t.getCalculationInfo("stackedOnSeries"),h=r.isHorizontal(),d=xt(i,r),p=vt(e),f=e.get("barMinHeight")||0,g=u&&t.getDimensionIndex(u),y=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(e,t){var i,r=e.count,l=p&&ot(3*r),u=p&&s&&ot(3*r),v=p&&ot(r),x=n.master.getRect(),_=h?x.width:x.height,b=t.getStore(),S=0;while(null!=(i=e.next())){var w=b.get(c?g:o,i),M=b.get(a,i),A=d,I=void 0;c&&(I=+w-b.get(o,i));var C=void 0,T=void 0,D=void 0,L=void 0;if(h){var k=n.dataToPoint([w,M]);if(c){var O=n.dataToPoint([I,M]);A=O[0]}C=A,T=k[1]+m,D=k[0]-A,L=y,Math.abs(D)<f&&(D=(D<0?-1:1)*f)}else{k=n.dataToPoint([M,w]);if(c){O=n.dataToPoint([M,I]);A=O[1]}C=k[0]+m,T=A,D=y,L=k[1]-A,Math.abs(L)<f&&(L=(L<=0?-1:1)*f)}p?(l[S]=C,l[S+1]=T,l[S+2]=h?D:L,u&&(u[S]=h?x.x:C,u[S+1]=h?T:x.y,u[S+2]=_),v[i]=i):t.setItemLayout(i,{x:C,y:T,width:D,height:L}),S+=3}p&&t.setLayout({largePoints:l,largeDataIndices:v,largeBackgroundPoints:u,valueAxisHorizontal:h})}}}}}}function mt(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function vt(e){return e.pipelineContext&&e.pipelineContext.large}function xt(e,t){var n=t.model.get("startValue");return n||(n=0),t.toGlobalCoord(t.dataToCoord("log"===t.type?n>0?n:1:n))}var _t=n(4277),bt=n(155),St=function(e,t,n,i){while(n<i){var r=n+i>>>1;e[r][1]<t?n=r+1:i=r}return n},wt=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return(0,Oe.C6)(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return(0,bt.GP)(e.value,bt.Lm[(0,bt.$9)((0,bt.ym)(this._minLevelUnit))]||bt.Lm.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var i=this.getSetting("useUTC"),r=this.getSetting("locale");return(0,bt.X_)(e,t,n,r,i)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var i=this.getSetting("useUTC"),r=Ot(this._minLevelUnit,this._approxInterval,i,t);return n=n.concat(r),n.push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=bt.CZ,t[1]+=bt.CZ),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-bt.CZ}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=Mt.length,a=Math.min(St(Mt,this._approxInterval,0,o),o-1);this._interval=Mt[a][1],this._minLevelUnit=Mt[Math.max(a-1,0)][0]},t.prototype.parse=function(e){return(0,f.isNumber)(e)?e:+Ge._U(e)},t.prototype.contain=function(e){return Ze(this.parse(e),this._extent)},t.prototype.normalize=function(e){return je(this.parse(e),this._extent)},t.prototype.scale=function(e){return qe(e,this._extent)},t.type="time",t}(tt),Mt=[["second",bt.OY],["minute",bt.iW],["hour",bt.MA],["quarter-day",6*bt.MA],["half-day",12*bt.MA],["day",1.2*bt.CZ],["half-week",3.5*bt.CZ],["week",7*bt.CZ],["month",31*bt.CZ],["quarter",95*bt.CZ],["half-year",bt.$H/2],["year",bt.$H]];function At(e,t,n,i){var r=Ge._U(t),o=Ge._U(n),a=function(e){return(0,bt.g0)(r,e,i)===(0,bt.g0)(o,e,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},d=function(){return h()&&a("second")},p=function(){return d()&&a("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return d();case"millisecond":return p()}}function It(e,t){return e/=bt.CZ,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Ct(e){var t=30*bt.CZ;return e/=t,e>6?6:e>3?3:e>2?2:1}function Tt(e){return e/=bt.MA,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Dt(e,t){return e/=t?bt.iW:bt.OY,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Lt(e){return Ge.Cm(e,!0)}function kt(e,t,n){var i=new Date(e);switch((0,bt.ym)(t)){case"year":case"month":i[(0,bt.xu)(n)](0);case"day":i[(0,bt.ti)(n)](1);case"hour":i[(0,bt.Yd)(n)](0);case"minute":i[(0,bt.KF)(n)](0);case"second":i[(0,bt.ww)(n)](0),i[(0,bt.FP)(n)](0)}return i.getTime()}function Ot(e,t,n,i){var r=1e4,o=bt.F7,a=0;function s(e,t,n,r,o,a,s){var l=new Date(t),u=t,c=l[r]();while(u<n&&u<=i[1])s.push({value:u}),c+=e,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function l(e,r,o){var a=[],l=!r.length;if(!At((0,bt.ym)(e),i[0],i[1],n)){l&&(r=[{value:kt(new Date(i[0]),e,n)},{value:i[1]}]);for(var u=0;u<r.length-1;u++){var c=r[u].value,h=r[u+1].value;if(c!==h){var d=void 0,p=void 0,f=void 0,g=!1;switch(e){case"year":d=Math.max(1,Math.round(t/bt.CZ/365)),p=(0,bt.hY)(n),f=(0,bt.tM)(n);break;case"half-year":case"quarter":case"month":d=Ct(t),p=(0,bt.jJ)(n),f=(0,bt.xu)(n);break;case"week":case"half-week":case"day":d=It(t,31),p=(0,bt.bP)(n),f=(0,bt.ti)(n),g=!0;break;case"half-day":case"quarter-day":case"hour":d=Tt(t),p=(0,bt.iC)(n),f=(0,bt.Yd)(n);break;case"minute":d=Dt(t,!0),p=(0,bt.yB)(n),f=(0,bt.KF)(n);break;case"second":d=Dt(t,!1),p=(0,bt.Wf)(n),f=(0,bt.ww)(n);break;case"millisecond":d=Lt(t),p=(0,bt.Zz)(n),f=(0,bt.FP)(n);break}s(d,c,h,p,f,g,a),"year"===e&&o.length>1&&0===u&&o.unshift({value:o[0].value-d})}}for(u=0;u<a.length;u++)o.push(a[u]);return a}}for(var u=[],c=[],h=0,d=0,p=0;p<o.length&&a++<r;++p){var g=(0,bt.ym)(o[p]);if((0,bt.ce)(o[p])){l(o[p],u[u.length-1]||[],c);var y=o[p+1]?(0,bt.ym)(o[p+1]):null;if(g!==y){if(c.length){d=h,c.sort((function(e,t){return e.value-t.value}));for(var m=[],v=0;v<c.length;++v){var x=c[v].value;0!==v&&c[v-1].value===x||(m.push(c[v]),x>=i[0]&&x<=i[1]&&h++)}var _=(i[1]-i[0])/t;if(h>1.5*_&&d>_/1.5)break;if(u.push(m),h>_||e===o[p])break}c=[]}}}var b=(0,f.filter)((0,f.map)(u,(function(e){return(0,f.filter)(e,(function(e){return e.value>=i[0]&&e.value<=i[1]&&!e.notAdd}))})),(function(e){return e.length>0})),S=[],w=b.length-1;for(p=0;p<b.length;++p)for(var M=b[p],A=0;A<M.length;++A)S.push({value:M[A].value,level:w-p});S.sort((function(e,t){return e.value-t.value}));var I=[];for(p=0;p<S.length;++p)0!==p&&S[p].value===S[p-1].value||I.push(S[p]);return I}Re.registerClass(wt);const Pt=wt;var Nt=Re.prototype,Rt=tt.prototype,Et=Ge.LI,Vt=Math.floor,zt=Math.ceil,Bt=Math.pow,Gt=Math.log,Ft=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new tt,t._interval=0,t}return(0,Oe.C6)(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,i=t.getExtent(),r=Rt.getTicks.call(this,e);return f.map(r,(function(e){var t=e.value,r=Ge.LI(Bt(this.base,t));return r=t===n[0]&&this._fixMin?Wt(r,i[0]):r,r=t===n[1]&&this._fixMax?Wt(r,i[1]):r,{value:r}}),this)},t.prototype.setExtent=function(e,t){var n=Gt(this.base);e=Gt(Math.max(0,e))/n,t=Gt(Math.max(0,t))/n,Rt.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e=this.base,t=Nt.getExtent.call(this);t[0]=Bt(e,t[0]),t[1]=Bt(e,t[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(t[0]=Wt(t[0],i[0])),this._fixMax&&(t[1]=Wt(t[1],i[1])),t},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=Gt(e[0])/Gt(t),e[1]=Gt(e[1])/Gt(t),Nt.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var i=Ge.au(n),r=e/n*i;r<=.5&&(i*=10);while(!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0)i*=10;var o=[Ge.LI(zt(t[0]/i)*i),Ge.LI(Vt(t[1]/i)*i)];this._interval=i,this._niceExtent=o}},t.prototype.calcNiceExtent=function(e){Rt.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=Gt(e)/Gt(this.base),Ze(e,this._extent)},t.prototype.normalize=function(e){return e=Gt(e)/Gt(this.base),je(e,this._extent)},t.prototype.scale=function(e){return e=qe(e,this._extent),Bt(this.base,e)},t.type="log",t}(Re),Ht=Ft.prototype;function Wt(e,t){return Et(e,Ge.XV(t))}Ht.getMinorTicks=Rt.getMinorTicks,Ht.getLabel=Rt.getLabel,Re.registerClass(Ft);const Ut=Ft;var Yt=n(8826),Xt=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var r=t.get("min",!0);null==r&&(r=t.get("startValue",!0));var o=this._modelMinRaw=r;(0,f.isFunction)(o)?this._modelMinNum=$t(e,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=$t(e,o));var a=this._modelMaxRaw=t.get("max",!0);if((0,f.isFunction)(a)?this._modelMaxNum=$t(e,a({min:n[0],max:n[1]})):"dataMax"!==a&&(this._modelMaxNum=$t(e,a)),i)this._axisDataLen=t.getCategories().length;else{var s=t.get("boundaryGap"),l=(0,f.isArray)(s)?s:[s||0,s||0];"boolean"===typeof l[0]||"boolean"===typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[(0,Yt.lo)(l[0],1),(0,Yt.lo)(l[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,i=this._axisDataLen,r=this._boundaryGapInner,o=e?null:n-t||Math.abs(t),a="dataMin"===this._modelMinRaw?t:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=e?i?0:NaN:t-r[0]*o),null==s&&(s=e?i?i-1:NaN:n+r[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=(0,f.eqNaN)(a)||(0,f.eqNaN)(s)||e&&!i;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=this._determinedMin,d=this._determinedMax;return null!=h&&(a=h,l=!0),null!=d&&(s=d,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},e.prototype.modifyDataMinMax=function(e,t){this[jt[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=Zt[e];this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),Zt={min:"_determinedMin",max:"_determinedMax"},jt={min:"_dataMin",max:"_dataMax"};function qt(e,t,n){var i=e.rawExtentInfo;return i||(i=new Xt(e,t,n),e.rawExtentInfo=i,i)}function $t(e,t){return null==t?null:(0,f.eqNaN)(t)?NaN:e.parse(t)}function Kt(e,t){var n=e.type,i=qt(e,t,e.getExtent()).calculate();e.setBlank(i.isBlank);var r=i.min,o=i.max,a=t.ecModel;if(a&&"time"===n){var s=ct("bar",a),l=!1;if(f.each(s,(function(e){l=l||e.getBaseAxis()===t.axis})),l){var u=dt(s),c=Jt(r,o,t,u);r=c.min,o=c.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function Jt(e,t,n,i){var r=n.axis.getExtent(),o=Math.abs(r[1]-r[0]),a=ft(i,n.axis);if(void 0===a)return{min:e,max:t};var s=1/0;f.each(a,(function(e){s=Math.min(e.offset,s)}));var l=-1/0;f.each(a,(function(e){l=Math.max(e.offset+e.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,h=1-(s+l)/o,d=c/h-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function Qt(e,t){var n=t,i=Kt(e,n),r=i.extent,o=n.get("splitNumber");e instanceof Ut&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l="interval"===a||"time"===a;e.setExtent(r[0],r[1]),e.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function en(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Ke({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new Pt({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Re.getClass(t)||tt)}}function tn(e){var t=e.scale.getExtent(),n=t[0],i=t[1];return!(n>0&&i>0||n<0&&i<0)}function nn(e){var t=e.getLabelModel().get("formatter"),n="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?function(t){return function(n,i){return e.scale.getFormattedLabel(n,i,t)}}(t):f.isString(t)?function(t){return function(n){var i=e.scale.getLabel(n),r=t.replace("{value}",null!=i?i:"");return r}}(t):f.isFunction(t)?function(t){return function(i,r){return null!=n&&(r=i.value-n),t(rn(e,i),r,null!=i.level?{level:i.level}:null)}}(t):function(t){return e.scale.getLabel(t)}}function rn(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function on(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent();n instanceof Ke?r=n.count():(i=n.getTicks(),r=i.length);var a,s=e.getLabelModel(),l=nn(e),u=1;r>40&&(u=Math.ceil(r/40));for(var c=0;c<r;c+=u){var h=i?i[c]:{value:o[0]+c},d=l(h,c),p=s.getTextRect(d),f=an(p,s.get("rotate")||0);a?a.union(f):a=f}return a}}function an(e,t){var n=t*Math.PI/180,i=e.width,r=e.height,o=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n)),s=new _t.A(e.x,e.y,o,a);return s}function sn(e){var t=e.get("interval");return null==t?"auto":t}function ln(e){return"category"===e.type&&0===sn(e.getLabelModel())}function un(e,t){var n={};return f.each(e.mapDimensionsAll(t),(function(t){n[Ae(e,t)]=!0})),f.keys(n)}function cn(e,t,n){t&&f.each(un(t,n),(function(n){var i=t.getApproximateExtent(n);i[0]<e[0]&&(e[0]=i[0]),i[1]>e[1]&&(e[1]=i[1])}))}var hn=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},e.prototype.getCoordSysModel=function(){},e}(),dn=n(308),pn=n(3519),fn=n(2842),gn=n(5724);function yn(e){return ke(null,e)}var mn={isDimensionStacked:Me,enableDataStack:Se,getStackedDimension:Ae};function vn(e,t){var n=t;t instanceof _.A||(n=new _.A(t));var i=en(n);return i.setExtent(e[0],e[1]),Qt(i,n),i}function xn(e){f.mixin(e,hn)}function _n(e,t){return t=t||{},(0,pn.VB)(e,null,null,"normal"!==t.state)}var bn=n(4124),Sn=n(3222),wn=[];function Mn(e,t){for(var n=0;n<e.length;n++)le.applyTransform(e[n],e[n],t)}function An(e,t,n,i){for(var r=0;r<e.length;r++){var o=e[r];i&&(o=i.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(le.min(t,t,o),le.max(n,n,o))}}function In(e){for(var t=0,n=0,i=0,r=e.length,o=e[r-1][0],a=e[r-1][1],s=0;s<r;s++){var l=e[s][0],u=e[s][1],c=o*u-l*a;t+=c,n+=(o+l)*c,i+=(a+u)*c,o=l,a=u}return t?[n/t/3,i/t/3,t]:[e[0][0]||0,e[0][1]||0]}var Cn=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},e}(),Tn=function(){function e(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return e}(),Dn=function(){function e(e){this.type="linestring",this.points=e}return e}(),Ln=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.type="geoJSON",r.geometries=n,r._center=i&&[i[0],i[1]],r}return(0,Oe.C6)(t,e),t.prototype.calcCenter=function(){for(var e,t=this.geometries,n=0,i=0;i<t.length;i++){var r=t[i],o=r.exterior,a=o&&o.length;a>n&&(e=r,n=a)}if(e)return In(e.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],i=[-1/0,-1/0],r=this.geometries;return(0,f.each)(r,(function(t){"polygon"===t.type?An(t.exterior,n,i,e):(0,f.each)(t.points,(function(t){An(t,n,i,e)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),t=new _t.A(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var i=0,r=n.length;i<r;i++){var o=n[i];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(Sn.l(a,e[0],e[1])){for(var l=0;l<(s?s.length:0);l++)if(Sn.l(s[l],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,i){var r=this.getBoundingRect(),o=r.width/r.height;n?i||(i=n/o):n=o*i;for(var a=new _t.A(e,t,n,i),s=r.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var c=l[u];"polygon"===c.type?(Mn(c.exterior,s),(0,f.each)(c.interiors,(function(e){Mn(e,s)}))):(0,f.each)(c.points,(function(e){Mn(e,s)}))}r=this._rect,r.copy(a),this._center=[r.x+r.width/2,r.y+r.height/2]},t.prototype.cloneShallow=function(e){null==e&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(Cn),kn=function(e){function t(t,n){var i=e.call(this,t)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return(0,Oe.C6)(t,e),t.prototype.calcCenter=function(){var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],i=se.identity(wn),r=e;while(r&&!r.isGeoSVGGraphicRoot)se.mul(i,r.getLocalTransform(),i),r=r.parent;return se.invert(i,i),le.applyTransform(n,n,i),n},t}(Cn);function On(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;null==n&&(n=1024);var i=t.features;return f.each(i,(function(e){var t=e.geometry,i=t.encodeOffsets,r=t.coordinates;if(i)switch(t.type){case"LineString":t.coordinates=Nn(r,i,n);break;case"Polygon":Pn(r,i,n);break;case"MultiLineString":Pn(r,i,n);break;case"MultiPolygon":f.each(r,(function(e,t){return Pn(e,i[t],n)}))}})),t.UTF8Encoding=!1,t}function Pn(e,t,n){for(var i=0;i<e.length;i++)e[i]=Nn(e[i],t[i],n)}function Nn(e,t,n){for(var i=[],r=t[0],o=t[1],a=0;a<e.length;a+=2){var s=e.charCodeAt(a)-64,l=e.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=o,r=s,o=l,i.push([s/n,l/n])}return i}function Rn(e,t){return e=On(e),f.map(f.filter(e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,i=e.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new Tn(o[0],o.slice(1)));break;case"MultiPolygon":f.each(i.coordinates,(function(e){e[0]&&r.push(new Tn(e[0],e.slice(1)))}));break;case"LineString":r.push(new Dn([i.coordinates]));break;case"MultiLineString":r.push(new Dn(i.coordinates))}var a=new Ln(n[t||"name"],r,n.cp);return a.properties=n,a}))}var En=n(4312),Vn=n(2575),zn=n(3947),Bn=n(4325),Gn=n(9225),Fn=n(896),Hn=n(7639),Wn=n(4551),Un=n(118),Yn=n(3848),Xn=n(5536),Zn=n(6686),jn=n(3482),qn=n(3200),$n=n(5910),Kn=n(6767),Jn=n(9616),Qn=n(9463),ei=n(7357),ti=n(2225),ni=n(4725);function ii(e,t,n,i,r,o,a,s){var l=new Gn.Ay({style:{text:e,font:t,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}var ri=n(1688),oi=(0,N.$r)();function ai(e,t){var n=f.map(t,(function(t){return e.scale.parse(t)}));return"time"===e.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function si(e){var t=e.getLabelModel().get("customValues");if(t){var n=nn(e),i=e.scale.getExtent(),r=ai(e,t),o=f.filter(r,(function(e){return e>=i[0]&&e<=i[1]}));return{labels:f.map(o,(function(t){var i={value:t};return{formattedLabel:n(i),rawLabel:e.scale.getLabel(i),tickValue:t}}))}}return"category"===e.type?ui(e):di(e)}function li(e,t){var n=e.getTickModel().get("customValues");if(n){var i=e.scale.getExtent(),r=ai(e,n);return{ticks:f.filter(r,(function(e){return e>=i[0]&&e<=i[1]}))}}return"category"===e.type?hi(e,t):{ticks:f.map(e.scale.getTicks(),(function(e){return e.value}))}}function ui(e){var t=e.getLabelModel(),n=ci(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function ci(e,t){var n,i,r=pi(e,"labels"),o=sn(t),a=fi(r,o);return a||(f.isFunction(o)?n=_i(e,o):(i="auto"===o?yi(e):o,n=xi(e,i)),gi(r,o,{labels:n,labelCategoryInterval:i}))}function hi(e,t){var n,i,r=pi(e,"ticks"),o=sn(t),a=fi(r,o);if(a)return a;if(t.get("show")&&!e.scale.isBlank()||(n=[]),f.isFunction(o))n=_i(e,o,!0);else if("auto"===o){var s=ci(e,e.getLabelModel());i=s.labelCategoryInterval,n=f.map(s.labels,(function(e){return e.tickValue}))}else i=o,n=xi(e,i,!0);return gi(r,o,{ticks:n,tickCategoryInterval:i})}function di(e){var t=e.scale.getTicks(),n=nn(e);return{labels:f.map(t,(function(t,i){return{level:t.level,formattedLabel:n(t,i),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}function pi(e,t){return oi(e)[t]||(oi(e)[t]=[])}function fi(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function gi(e,t,n){return e.push({key:t,value:n}),n}function yi(e){var t=oi(e).autoInterval;return null!=t?t:oi(e).autoInterval=e.calculateCategoryInterval()}function mi(e){var t=vi(e),n=nn(e),i=(t.axisRotate-t.labelRotate)/180*Math.PI,r=e.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(i)),h=Math.abs(u*Math.sin(i)),d=0,p=0;l<=o[1];l+=s){var f=0,g=0,y=Yt.NO(n({value:l}),t.font,"center","top");f=1.3*y.width,g=1.3*y.height,d=Math.max(d,f,7),p=Math.max(p,g,7)}var m=d/c,v=p/h;isNaN(m)&&(m=1/0),isNaN(v)&&(v=1/0);var x=Math.max(0,Math.floor(Math.min(m,v))),_=oi(e.model),b=e.getExtent(),S=_.lastAutoInterval,w=_.lastTickCount;return null!=S&&null!=w&&Math.abs(S-x)<=1&&Math.abs(w-a)<=1&&S>x&&_.axisExtent0===b[0]&&_.axisExtent1===b[1]?x=S:(_.lastTickCount=a,_.lastAutoInterval=x,_.axisExtent0=b[0],_.axisExtent1=b[1]),x}function vi(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function xi(e,t,n){var i=nn(e),r=e.scale,o=r.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],c=r.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=ln(e),d=a.get("showMinLabel")||h,p=a.get("showMaxLabel")||h;d&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(e){var t={value:e};s.push(n?e:{formattedLabel:i(t),rawLabel:r.getLabel(t),tickValue:e})}return p&&f-l!==o[1]&&g(o[1]),s}function _i(e,t,n){var i=e.scale,r=nn(e),o=[];return f.each(i.getTicks(),(function(e){var a=i.getLabel(e),s=e.value;t(e.value,a)&&o.push(n?s:{formattedLabel:r(e),rawLabel:a,tickValue:s})})),o}var bi=[0,1],Si=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=n&&e<=i},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return(0,Ge.hb)(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&"ordinal"===i.type&&(n=n.slice(),wi(n,i.count())),(0,Ge.Cb)(e,bi,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),wi(n,i.count()));var r=(0,Ge.Cb)(e,n,bi,t);return this.scale.scale(r)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=li(this,t),i=n.ticks,r=(0,f.map)(i,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this),o=t.get("alignWithLabel");return Mi(this,r,o,e.clamp),r},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),i=(0,f.map)(n,(function(e){return(0,f.map)(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this);return i},e.prototype.getViewLabels=function(){return si(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return mi(this)},e}();function wi(e,t){var n=e[1]-e[0],i=t,r=n/i/2;e[0]+=r,e[1]-=r}function Mi(e,t,n,i){var r=t.length;if(e.onBand&&!n&&r){var o,a,s=e.getExtent();if(1===r)t[0].coord=s[0],o=t[1]={coord:s[1],tickValue:t[0].tickValue};else{var l=t[r-1].tickValue-t[0].tickValue,u=(t[r-1].coord-t[0].coord)/l;(0,f.each)(t,(function(e){e.coord-=u/2}));var c=e.scale.getExtent();a=1+c[1]-t[r-1].tickValue,o={coord:t[r-1].coord+u*a,tickValue:c[1]+1},t.push(o)}var h=s[0]>s[1];d(t[0].coord,s[0])&&(i?t[0].coord=s[0]:t.shift()),i&&d(s[0],t[0].coord)&&t.unshift({coord:s[0]}),d(s[1],o.coord)&&(i?o.coord=s[1]:t.pop()),i&&d(o.coord,s[1])&&t.push({coord:s[1]})}function d(e,t){return e=(0,Ge.LI)(e),t=(0,Ge.LI)(t),h?e>t:e<t}}const Ai=Si;var Ii=n(1768);function Ci(e){var t=d.A.extend(e);return d.A.registerClass(t),t}function Ti(e){var t=c.A.extend(e);return c.A.registerClass(t),t}function Di(e){var t=p.A.extend(e);return p.A.registerClass(t),t}function Li(e){var t=h.A.extend(e);return h.A.registerClass(t),t}var ki=n(4151),Oi=n(9773),Pi=n(7537),Ni=n(3286),Ri=n(4390),Ei=n(1964),Vi=2*Math.PI,zi=Ni.A.CMD,Bi=["top","right","bottom","left"];function Gi(e,t,n,i,r){var o=n.width,a=n.height;switch(e){case"top":i.set(n.x+o/2,n.y-t),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+t),r.set(0,1);break;case"left":i.set(n.x-t,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+t,n.y+a/2),r.set(1,0);break}}function Fi(e,t,n,i,r,o,a,s,l){a-=e,s-=t;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var c=a*n+e,h=s*n+t;if(Math.abs(i-r)%Vi<1e-4)return l[0]=c,l[1]=h,u-n;if(o){var d=i;i=(0,Ri.n)(r),r=(0,Ri.n)(d)}else i=(0,Ri.n)(i),r=(0,Ri.n)(r);i>r&&(r+=Vi);var p=Math.atan2(s,a);if(p<0&&(p+=Vi),p>=i&&p<=r||p+Vi>=i&&p+Vi<=r)return l[0]=c,l[1]=h,u-n;var f=n*Math.cos(i)+e,g=n*Math.sin(i)+t,y=n*Math.cos(r)+e,m=n*Math.sin(r)+t,v=(f-a)*(f-a)+(g-s)*(g-s),x=(y-a)*(y-a)+(m-s)*(m-s);return v<x?(l[0]=f,l[1]=g,Math.sqrt(v)):(l[0]=y,l[1]=m,Math.sqrt(x))}function Hi(e,t,n,i,r,o,a,s){var l=r-e,u=o-t,c=n-e,h=i-t,d=Math.sqrt(c*c+h*h);c/=d,h/=d;var p=l*c+u*h,f=p/d;s&&(f=Math.min(Math.max(f,0),1)),f*=d;var g=a[0]=e+f*c,y=a[1]=t+f*h;return Math.sqrt((g-r)*(g-r)+(y-o)*(y-o))}function Wi(e,t,n,i,r,o,a){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i);var s=e+n,l=t+i,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 Ui=[];function Yi(e,t,n){var i=Wi(t.x,t.y,t.width,t.height,e.x,e.y,Ui);return n.set(Ui[0],Ui[1]),i}function Xi(e,t,n){for(var i,r,o=0,a=0,s=0,l=0,u=1/0,c=t.data,h=e.x,d=e.y,p=0;p<c.length;){var f=c[p++];1===p&&(o=c[p],a=c[p+1],s=o,l=a);var g=u;switch(f){case zi.M:s=c[p++],l=c[p++],o=s,a=l;break;case zi.L:g=Hi(o,a,c[p],c[p+1],h,d,Ui,!0),o=c[p++],a=c[p++];break;case zi.C:g=(0,Ei.Et)(o,a,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],h,d,Ui),o=c[p++],a=c[p++];break;case zi.Q:g=(0,Ei.kh)(o,a,c[p++],c[p++],c[p],c[p+1],h,d,Ui),o=c[p++],a=c[p++];break;case zi.A:var y=c[p++],m=c[p++],v=c[p++],x=c[p++],_=c[p++],b=c[p++];p+=1;var S=!!(1-c[p++]);i=Math.cos(_)*v+y,r=Math.sin(_)*x+m,p<=1&&(s=i,l=r);var w=(h-y)*x/v+y;g=Fi(y,m,x,_,_+b,S,w,d,Ui),o=Math.cos(_+b)*v+y,a=Math.sin(_+b)*x+m;break;case zi.R:s=o=c[p++],l=a=c[p++];var M=c[p++],A=c[p++];g=Wi(s,l,M,A,h,d,Ui);break;case zi.Z:g=Hi(o,a,s,l,h,d,Ui,!0),o=s,a=l;break}g<u&&(u=g,n.set(Ui[0],Ui[1]))}return u}var Zi=new Oi.A,ji=new Oi.A,qi=new Oi.A,$i=new Oi.A,Ki=new Oi.A;function Ji(e,t){if(e){var n=e.getTextGuideLine(),i=e.getTextContent();if(i&&n){var r=e.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||Bi,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=r.anchor,c=e.getComputedTransform(),h=c&&(0,se.invert)([],c),d=t.get("length2")||0;u&&qi.copy(u);for(var p=0;p<a.length;p++){var f=a[p];Gi(f,0,s,Zi,$i),Oi.A.scaleAndAdd(ji,Zi,$i,d),ji.transform(h);var g=e.getBoundingRect(),y=u?u.distance(ji):e instanceof Pi.Ay?Xi(ji,e.path,qi):Yi(ji,g,qi);y<l&&(l=y,ji.transform(c),qi.transform(c),qi.toArray(o[0]),ji.toArray(o[1]),Zi.toArray(o[2]))}tr(o,t.get("minTurnAngle")),n.setShape({points:o})}}}var Qi=[],er=new Oi.A;function tr(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Zi.fromArray(e[0]),ji.fromArray(e[1]),qi.fromArray(e[2]),Oi.A.sub($i,Zi,ji),Oi.A.sub(Ki,qi,ji);var n=$i.len(),i=Ki.len();if(!(n<.001||i<.001)){$i.scale(1/n),Ki.scale(1/i);var r=$i.dot(Ki),o=Math.cos(t);if(o<r){var a=Hi(ji.x,ji.y,qi.x,qi.y,Zi.x,Zi.y,Qi,!1);er.fromArray(Qi),er.scaleAndAdd(Ki,a/Math.tan(Math.PI-t));var s=qi.x!==ji.x?(er.x-ji.x)/(qi.x-ji.x):(er.y-ji.y)/(qi.y-ji.y);if(isNaN(s))return;s<0?Oi.A.copy(er,ji):s>1&&Oi.A.copy(er,qi),er.toArray(e[1])}}}}function nr(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,Zi.fromArray(e[0]),ji.fromArray(e[1]),qi.fromArray(e[2]),Oi.A.sub($i,ji,Zi),Oi.A.sub(Ki,qi,ji);var i=$i.len(),r=Ki.len();if(!(i<.001||r<.001)){$i.scale(1/i),Ki.scale(1/r);var o=$i.dot(t),a=Math.cos(n);if(o<a){var s=Hi(ji.x,ji.y,qi.x,qi.y,Zi.x,Zi.y,Qi,!1);er.fromArray(Qi);var l=Math.PI/2,u=Math.acos(Ki.dot(t)),c=l+u-n;if(c>=l)Oi.A.copy(er,qi);else{er.scaleAndAdd(Ki,s/Math.tan(Math.PI/2-c));var h=qi.x!==ji.x?(er.x-ji.x)/(qi.x-ji.x):(er.y-ji.y)/(qi.y-ji.y);if(isNaN(h))return;h<0?Oi.A.copy(er,ji):h>1&&Oi.A.copy(er,qi)}er.toArray(e[1])}}}}function ir(e,t,n,i){var r="normal"===n,o=r?e:e.ensureState(n);o.ignore=t;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?e.useStyle(s):o.style=s}function rr(e,t){var n=t.smooth,i=t.points;if(i)if(e.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=le.dist(i[0],i[1]),o=le.dist(i[1],i[2]);if(!r||!o)return e.lineTo(i[1][0],i[1][1]),void e.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=le.lerp([],i[1],i[0],a/r),l=le.lerp([],i[1],i[2],a/o),u=le.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],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)e.lineTo(i[c][0],i[c][1])}function or(e,t,n){var i=e.getTextGuideLine(),r=e.getTextContent();if(r){for(var o=t.normal,a=o.get("show"),s=r.ignore,l=0;l<gn.wV.length;l++){var u=gn.wV[l],c=t[u],h="normal"===u;if(c){var d=c.get("show"),p=h?s:(0,f.retrieve2)(r.states[u]&&r.states[u].ignore,s);if(p||!(0,f.retrieve2)(d,a)){var g=h?i:i&&i.states[u];g&&(g.ignore=!0),i&&ir(i,!0,u,c);continue}i||(i=new Xn.A,e.setTextGuideLine(i),h||!s&&a||ir(i,!0,"normal",t.normal),e.stateProxy&&(i.stateProxy=e.stateProxy)),ir(i,!1,u,c)}}if(i){(0,f.defaults)(i.style,n),i.style.fill=null;var y=o.get("showAbove"),m=e.textGuideLineConfig=e.textGuideLineConfig||{};m.showAbove=y||!1,i.buildPath=rr}}else i&&e.removeTextGuideLine()}function ar(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},i=0;i<gn.BV.length;i++){var r=gn.BV[i];n[r]=e.getModel([r,t])}return n}var sr=n(1693);function lr(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];if(!i.defaultAttr.ignore){var r=i.label,o=r.getComputedTransform(),a=r.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=r.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new sr.A(a,o):null;t.push({label:r,labelLine:i.labelLine,rect:u,localRect:a,obb:c,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:o})}}return t}function ur(e,t,n,i,r,o){var a=e.length;if(!(a<2)){e.sort((function(e,n){return e.rect[t]-n.rect[t]}));for(var s,l=0,u=!1,c=[],h=0,d=0;d<a;d++){var p=e[d],f=p.rect;s=f[t]-l,s<0&&(f[t]-=s,p.label[t]-=s,u=!0);var g=Math.max(-s,0);c.push(g),h+=g,l=f[t]+f[n]}h>0&&o&&S(-h/a,0,a);var y,m,v=e[0],x=e[a-1];return _(),y<0&&w(-y,.8),m<0&&w(m,.8),_(),b(y,m,1),b(m,y,-1),_(),y<0&&M(-y),m<0&&M(m),u}function _(){y=v.rect[t]-i,m=r-x.rect[t]-x.rect[n]}function b(e,t,n){if(e<0){var i=Math.min(t,-e);if(i>0){S(i*n,0,a);var r=i+e;r<0&&w(-r*n,1)}else w(-e*n,1)}}function S(n,i,r){0!==n&&(u=!0);for(var o=i;o<r;o++){var a=e[o],s=a.rect;s[t]+=n,a.label[t]+=n}}function w(i,r){for(var o=[],s=0,l=1;l<a;l++){var u=e[l-1].rect,c=Math.max(e[l].rect[t]-u[t]-u[n],0);o.push(c),s+=c}if(s){var h=Math.min(Math.abs(i)/s,r);if(i>0)for(l=0;l<a-1;l++){var d=o[l]*h;S(d,0,l+1)}else for(l=a-1;l>0;l--){d=o[l-1]*h;S(-d,l,a)}}}function M(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),i=0;i<a-1;i++)if(t>0?S(n,0,i+1):S(-n,a-i-1,a),e-=n,e<=0)return}}function cr(e,t,n,i){return ur(e,"x","width",t,n,i)}function hr(e,t,n,i){return ur(e,"y","height",t,n,i)}function dr(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var n=new _t.A(0,0,0,0);function i(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var r=0;r<e.length;r++){var o=e[r],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var h=o.obb,d=!1,p=0;p<t.length;p++){var f=t[p];if(n.intersect(f.rect)){if(a&&f.axisAligned){d=!0;break}if(f.obb||(f.obb=new sr.A(f.localRect,f.transform)),h||(h=new sr.A(s,l)),h.intersect(f.obb)){d=!0;break}}}d?(i(u),c&&i(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}function pr(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function fr(e,t){var n=e.label,i=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:pr(i&&i.shape.points)}}var gr=["align","verticalAlign","width","height","fontSize"],yr=new ki.Ay,mr=(0,N.$r)(),vr=(0,N.$r)();function xr(e,t,n){for(var i=0;i<n.length;i++){var r=n[i];null!=t[r]&&(e[r]=t[r])}}var _r=["x","y","rotation"],br=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,i,r){var o=i.style,a=i.__hostTarget,s=a.textConfig||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain();_t.A.applyTransform(u,u,l),l?yr.setLocalTransform(l):(yr.x=yr.y=yr.rotation=yr.originX=yr.originY=0,yr.scaleX=yr.scaleY=1),yr.rotation=(0,Ri.n)(yr.rotation);var c,h=i.__hostTarget;if(h){c=h.getBoundingRect().plain();var d=h.getComputedTransform();_t.A.applyTransform(c,c,d)}var p=c&&h.getTextGuideLine();this._labelList.push({label:i,labelLine:p,seriesModel:n,dataIndex:e,dataType:t,layoutOption:r,computedLayoutOption:null,rect:u,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:p&&p.ignore,x:yr.x,y:yr.y,scaleX:yr.scaleX,scaleY:yr.scaleY,rotation:yr.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,i=n.get("labelLayout");((0,f.isFunction)(i)||(0,f.keys)(i).length)&&e.group.traverse((function(e){if(e.ignore)return!0;var r=e.getTextContent(),o=(0,R.z)(e);r&&!r.disableLabelLayout&&t._addLabel(o.dataIndex,o.dataType,n,r,i)}))},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function i(e,t){return function(){Ji(e,t)}}for(var r=0;r<this._labelList.length;r++){var o=this._labelList[r],a=o.label,s=a.__hostTarget,l=o.defaultAttr,u=void 0;u=(0,f.isFunction)(o.layoutOption)?o.layoutOption(fr(o,s)):o.layoutOption,u=u||{},o.computedLayoutOption=u;var c=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=u.x||null!=u.y?null:l.attachedPos,rotation:null!=u.rotate?u.rotate*c:l.attachedRot,offset:[u.dx||0,u.dy||0]});var h=!1;if(null!=u.x?(a.x=(0,Ge.lo)(u.x,t),a.setStyle("x",0),h=!0):(a.x=l.x,a.setStyle("x",l.style.x)),null!=u.y?(a.y=(0,Ge.lo)(u.y,n),a.setStyle("y",0),h=!0):(a.y=l.y,a.setStyle("y",l.style.y)),u.labelLinePoints){var d=s.getTextGuideLine();d&&(d.setShape({points:u.labelLinePoints}),h=!1)}var p=mr(a);p.needsUpdateLabelLine=h,a.rotation=null!=u.rotate?u.rotate*c:l.rotation,a.scaleX=l.scaleX,a.scaleY=l.scaleY;for(var g=0;g<gr.length;g++){var y=gr[g];a.setStyle(y,null!=u[y]?u[y]:l.style[y])}if(u.draggable){if(a.draggable=!0,a.cursor="move",s){var m=o.seriesModel;if(null!=o.dataIndex){var v=o.seriesModel.getData(o.dataType);m=v.getItemModel(o.dataIndex)}a.on("drag",i(s,m.getModel("labelLine")))}}else a.off("drag"),a.cursor=l.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),i=lr(this._labelList),r=(0,f.filter)(i,(function(e){return"shiftX"===e.layoutOption.moveOverlap})),o=(0,f.filter)(i,(function(e){return"shiftY"===e.layoutOption.moveOverlap}));cr(r,0,t),hr(o,0,n);var a=(0,f.filter)(i,(function(e){return e.layoutOption.hideOverlap}));dr(a)},e.prototype.processLabelsOverall=function(){var e=this;(0,f.each)(this._chartViewList,(function(t){var n=t.__model,i=t.ignoreLabelLineUpdate,r=n.isAnimationEnabled();t.group.traverse((function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var o=!i,a=t.getTextContent();!o&&a&&(o=mr(a).needsUpdateLabelLine),o&&e._updateLabelLine(t,n),r&&e._animateLabels(t,n)}))}))},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),i=(0,R.z)(e),r=i.dataIndex;if(n&&null!=r){var o=t.getData(i.dataType),a=o.getItemModel(r),s={},l=o.getItemVisual(r,"style");if(l){var u=o.getVisual("drawType");s.stroke=l[u]}var c=a.getModel("labelLine");or(e,ar(a),s),Ji(e,c)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),i=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!(0,Vn.LR)(e))){var r=mr(n),o=r.oldLayout,a=(0,R.z)(e),s=a.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},u=t.getData(a.dataType);if(o){n.attr(o);var c=e.prevStates;c&&((0,f.indexOf)(c,"select")>=0&&n.attr(r.oldLayoutSelect),(0,f.indexOf)(c,"emphasis")>=0&&n.attr(r.oldLayoutEmphasis)),(0,Vn.oi)(n,l,t,s)}else if(n.attr(l),!(0,pn.Lu)(n).valueAnimation){var h=(0,f.retrieve2)(n.style.opacity,1);n.style.opacity=0,(0,Vn.LW)(n,{style:{opacity:h}},t,s)}if(r.oldLayout=l,n.states.select){var d=r.oldLayoutSelect={};xr(d,l,_r),xr(d,n.states.select,_r)}if(n.states.emphasis){var p=r.oldLayoutEmphasis={};xr(p,l,_r),xr(p,n.states.emphasis,_r)}(0,pn.xb)(n,s,u,t,t)}if(i&&!i.ignore&&!i.invisible){r=vr(i),o=r.oldLayout;var g={points:i.shape.points};o?(i.attr({shape:o}),(0,Vn.oi)(i,{shape:g},t)):(i.setShape(g),i.style.strokePercent=0,(0,Vn.LW)(i,{style:{strokePercent:1}},t)),r.oldLayout=g}},e}();const Sr=br;var wr=(0,N.$r)();function Mr(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){var i=wr(t).labelManager;i||(i=wr(t).labelManager=new Sr),i.clearLabels()})),e.registerUpdateLifecycle("series:layoutlabels",(function(e,t,n){var i=wr(t).labelManager;n.updatedSeries.forEach((function(e){i.addLabelsOfSeries(t.getViewOfSeriesModel(e))})),i.updateLayoutConfig(t),i.layout(t),i.processLabelsOverall()}))}x(Mr);var Ar=n(9236);function Ir(e){e.registerPainter("canvas",Ar.A)}var Cr=n(1934);function Tr(e){e.registerPainter("svg",Cr.A)}var Dr=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return(0,Oe.C6)(t,e),t.prototype.getInitialData=function(e){return ke(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new zn.A,n=(0,fn.v5)("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,a=.8*e.itemHeight,s=(0,fn.v5)(o,(e.itemWidth-a)/2,(e.itemHeight-a)/2,a,a,e.itemStyle.fill);t.add(s),s.setStyle(e.itemStyle);var l="inherit"===e.iconRotate?r:e.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(p.A);const Lr=Dr;function kr(e,t){var n=e.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=(0,A.QE)(e,t,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push((0,A.QE)(e,t,n[a]));return o.join(" ")}}function Or(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!(0,f.isArray)(t))return t+"";for(var i=[],r=0;r<n.length;r++){var o=e.getDimensionIndex(n[r]);o>=0&&i.push(t[o])}return i.join(" ")}var Pr=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o.updateData(t,n,i,r),o}return(0,Oe.C6)(t,e),t.prototype._createSymbol=function(e,t,n,i,r){this.removeAll();var o=(0,fn.v5)(e,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=Nr,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){(0,gn.HY)(this.childAt(0))},t.prototype.downplay=function(){(0,gn.SD)(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?"move":n.cursor},t.prototype.updateData=function(e,n,i,r){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",a=e.hostModel,s=t.getSymbolSize(e,n),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var c=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,s,c)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:s[0]/2,scaleY:s[1]/2};u?h.attr(d):Vn.oi(h,d,a,n),(0,Vn.ap)(h)}if(this._updateCommon(e,n,s,i,r),l){h=this.childAt(0);if(!u){d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Vn.LW(h,d,a,n)}}u&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,i,r){var o,a,s,l,u,c,h,d,p,g=this.childAt(0),y=e.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,h=i.labelStatesModels,d=i.hoverScale,p=i.cursorStyle,c=i.emphasisDisabled),!i||e.hasItemOption){var m=i&&i.itemModel?i.itemModel:e.getItemModel(t),v=m.getModel("emphasis");o=v.getModel("itemStyle").getItemStyle(),s=m.getModel(["select","itemStyle"]).getItemStyle(),a=m.getModel(["blur","itemStyle"]).getItemStyle(),l=v.get("focus"),u=v.get("blurScope"),c=v.get("disabled"),h=(0,pn.lx)(m),d=v.getShallow("scale"),p=m.getShallow("cursor")}var x=e.getItemVisual(t,"symbolRotate");g.attr("rotation",(x||0)*Math.PI/180||0);var _=(0,fn.hV)(e.getItemVisual(t,"symbolOffset"),n);_&&(g.x=_[0],g.y=_[1]),p&&g.attr("cursor",p);var b=e.getItemVisual(t,"style"),S=b.fill;if(g instanceof Bn.Ay){var w=g.style;g.useStyle((0,f.extend)({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},b))}else g.__isEmptyBrush?g.useStyle((0,f.extend)({},b)):g.useStyle(b),g.style.decal=null,g.setColor(S,r&&r.symbolInnerColor),g.style.strokeNoScale=!0;var M=e.getItemVisual(t,"liftZ"),A=this._z2;null!=M?null==A&&(this._z2=g.z2,g.z2+=M):null!=A&&(g.z2=A,this._z2=null);var I=r&&r.useNameLabel;function C(t){return I?e.getName(t):kr(e,t)}(0,pn.qM)(g,h,{labelFetcher:y,labelDataIndex:t,defaultText:C,inheritColor:S,defaultOpacity:b.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var T=g.ensureState("emphasis");T.style=o,g.ensureState("select").style=s,g.ensureState("blur").style=a;var D=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;T.scaleX=this._sizeX*D,T.scaleY=this._sizeY*D,this.setSymbolScale(1),(0,gn.Lm)(this,l,u,c)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var i=this.childAt(0),r=(0,R.z)(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&Vn.Nz(a,{style:{opacity:0}},t,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Vn.Nz(i,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:r,cb:e,removeOpt:o})},t.getSymbolSize=function(e,t){return(0,fn.xU)(e.getItemVisual(t,"symbolSize"))},t}(zn.A);function Nr(e,t){this.parent.drift(e,t)}const Rr=Pr;function Er(e,t,n,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function Vr(e){return null==e||(0,f.isObject)(e)||(e={isIgnore:e}),e||{}}function zr(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:(0,pn.lx)(t),cursorStyle:t.get("cursor")}}var Br=function(){function e(e){this.group=new zn.A,this._SymbolCtor=e||Rr}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=Vr(t);var n=this.group,i=e.hostModel,r=this._data,o=this._SymbolCtor,a=t.disableAnimation,s=zr(e),l={disableAnimation:a},u=t.getSymbolPoint||function(t){return e.getItemLayout(t)};r||n.removeAll(),e.diff(r).add((function(i){var r=u(i);if(Er(e,r,i,t)){var a=new o(e,i,s,l);a.setPosition(r),e.setItemGraphicEl(i,a),n.add(a)}})).update((function(c,h){var d=r.getItemGraphicEl(h),p=u(c);if(Er(e,p,c,t)){var f=e.getItemVisual(c,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==f)n.remove(d),d=new o(e,c,s,l),d.setPosition(p);else{d.updateData(e,c,s,l);var y={x:p[0],y:p[1]};a?d.attr(y):Vn.oi(d,y,i)}n.add(d),e.setItemGraphicEl(c,d)}else n.remove(d)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}),i)})).execute(),this._getSymbolPoint=u,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){var i=e._getSymbolPoint(n);t.setPosition(i),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=zr(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function i(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=Vr(n);for(var r=e.start;r<e.end;r++){var o=t.getItemLayout(r);if(Er(t,o,r,n)){var a=new this._SymbolCtor(t,r,this._seriesScope);a.traverse(i),a.setPosition(o),this.group.add(a),t.setItemGraphicEl(r,a),this._progressiveEls.push(a)}}},e.prototype.eachRendered=function(e){En.traverseElements(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}),n.hostModel)})):t.removeAll()},e}();const Gr=Br;function Fr(e,t,n){var i=e.getBaseAxis(),r=e.getOtherAxis(i),o=Hr(r,n),a=i.dim,s=r.dim,l=t.mapDimension(s),u=t.mapDimension(a),c="x"===s||"radius"===s?1:0,h=(0,f.map)(e.dimensions,(function(e){return t.mapDimension(e)})),d=!1,p=t.getCalculationInfo("stackResultDimension");return Me(t,h[0])&&(d=!0,h[0]=p),Me(t,h[1])&&(d=!0,h[1]=p),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Hr(e,t){var n=0,i=e.scale.getExtent();return"start"===t?n=i[0]:"end"===t?n=i[1]:(0,f.isNumber)(t)&&!isNaN(t)?n=t:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function Wr(e,t,n,i){var r=NaN;e.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,i),a[1-o]=r,t.dataToPoint(a)}function Ur(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}function Yr(e,t,n,i,r,o,a,s){for(var l=Ur(e,t),u=[],c=[],h=[],d=[],p=[],f=[],g=[],y=Fr(r,t,a),m=e.getLayout("points")||[],v=t.getLayout("points")||[],x=0;x<l.length;x++){var _=l[x],b=!0,S=void 0,w=void 0;switch(_.cmd){case"=":S=2*_.idx,w=2*_.idx1;var M=m[S],A=m[S+1],I=v[w],C=v[w+1];(isNaN(M)||isNaN(A))&&(M=I,A=C),u.push(M,A),c.push(I,C),h.push(n[S],n[S+1]),d.push(i[w],i[w+1]),g.push(t.getRawIndex(_.idx1));break;case"+":var T=_.idx,D=y.dataDimsForPoint,L=r.dataToPoint([t.get(D[0],T),t.get(D[1],T)]);w=2*T,u.push(L[0],L[1]),c.push(v[w],v[w+1]);var k=Wr(y,r,t,T);h.push(k[0],k[1]),d.push(i[w],i[w+1]),g.push(t.getRawIndex(T));break;case"-":b=!1}b&&(p.push(_),f.push(f.length))}f.sort((function(e,t){return g[e]-g[t]}));var O=u.length,P=ot(O),N=ot(O),R=ot(O),E=ot(O),V=[];for(x=0;x<f.length;x++){var z=f[x],B=2*x,G=2*z;P[B]=u[G],P[B+1]=u[G+1],N[B]=c[G],N[B+1]=c[G+1],R[B]=h[G],R[B+1]=h[G+1],E[B]=d[G],E[B+1]=d[G+1],V[x]=p[z]}return{current:P,next:N,stackedOnCurrent:R,stackedOnNext:E,status:V}}var Xr=Math.min,Zr=Math.max;function jr(e,t){return isNaN(e)||isNaN(t)}function qr(e,t,n,i,r,o,a,s,l){for(var u,c,h,d,p,f,g=n,y=0;y<i;y++){var m=t[2*g],v=t[2*g+1];if(g>=r||g<0)break;if(jr(m,v)){if(l){g+=o;continue}break}if(g===n)e[o>0?"moveTo":"lineTo"](m,v),h=m,d=v;else{var x=m-u,_=v-c;if(x*x+_*_<.5){g+=o;continue}if(a>0){var b=g+o,S=t[2*b],w=t[2*b+1];while(S===m&&w===v&&y<i)y++,b+=o,g+=o,S=t[2*b],w=t[2*b+1],m=t[2*g],v=t[2*g+1],x=m-u,_=v-c;var M=y+1;if(l)while(jr(S,w)&&M<i)M++,b+=o,S=t[2*b],w=t[2*b+1];var A=.5,I=0,C=0,T=void 0,D=void 0;if(M>=i||jr(S,w))p=m,f=v;else{I=S-u,C=w-c;var L=m-u,k=S-m,O=v-c,P=w-v,N=void 0,R=void 0;if("x"===s){N=Math.abs(L),R=Math.abs(k);var E=I>0?1:-1;p=m-E*N*a,f=v,T=m+E*R*a,D=v}else if("y"===s){N=Math.abs(O),R=Math.abs(P);var V=C>0?1:-1;p=m,f=v-V*N*a,T=m,D=v+V*R*a}else N=Math.sqrt(L*L+O*O),R=Math.sqrt(k*k+P*P),A=R/(R+N),p=m-I*a*(1-A),f=v-C*a*(1-A),T=m+I*a*A,D=v+C*a*A,T=Xr(T,Zr(S,m)),D=Xr(D,Zr(w,v)),T=Zr(T,Xr(S,m)),D=Zr(D,Xr(w,v)),I=T-m,C=D-v,p=m-I*N/R,f=v-C*N/R,p=Xr(p,Zr(u,m)),f=Xr(f,Zr(c,v)),p=Zr(p,Xr(u,m)),f=Zr(f,Xr(c,v)),I=m-p,C=v-f,T=m+I*R/N,D=v+C*R/N}e.bezierCurveTo(h,d,p,f,m,v),h=T,d=D}else e.lineTo(m,v)}u=m,c=v,g+=o}return y}var $r=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),Kr=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return(0,Oe.C6)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new $r},t.prototype.buildPath=function(e,t){var n=t.points,i=0,r=n.length/2;if(t.connectNulls){for(;r>0;r--)if(!jr(n[2*r-2],n[2*r-1]))break;for(;i<r;i++)if(!jr(n[2*i],n[2*i+1]))break}while(i<r)i+=qr(e,n,i,r,r,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path,o=r.data,a=Ni.A.CMD,s="x"===t,l=[],u=0;u<o.length;){var c=o[u++],h=void 0,d=void 0,p=void 0,f=void 0,g=void 0,y=void 0,m=void 0;switch(c){case a.M:n=o[u++],i=o[u++];break;case a.L:if(h=o[u++],d=o[u++],m=s?(e-n)/(h-n):(e-i)/(d-i),m<=1&&m>=0){var v=s?(d-i)*m+i:(h-n)*m+n;return s?[e,v]:[v,e]}n=h,i=d;break;case a.C:h=o[u++],d=o[u++],p=o[u++],f=o[u++],g=o[u++],y=o[u++];var x=s?(0,Ei._E)(n,h,p,g,e,l):(0,Ei._E)(i,d,f,y,e,l);if(x>0)for(var _=0;_<x;_++){var b=l[_];if(b<=1&&b>=0){v=s?(0,Ei.Yb)(i,d,f,y,b):(0,Ei.Yb)(n,h,p,g,b);return s?[e,v]:[v,e]}}n=g,i=y;break}}},t}(Pi.Ay),Jr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Oe.C6)(t,e),t}($r),Qr=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return(0,Oe.C6)(t,e),t.prototype.getDefaultShape=function(){return new Jr},t.prototype.buildPath=function(e,t){var n=t.points,i=t.stackedOnPoints,r=0,o=n.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;o>0;o--)if(!jr(n[2*o-2],n[2*o-1]))break;for(;r<o;r++)if(!jr(n[2*r],n[2*r+1]))break}while(r<o){var s=qr(e,n,r,o,o,1,t.smooth,a,t.connectNulls);qr(e,i,r+s-1,s,o,-1,t.stackedOnSmooth,a,t.connectNulls),r+=s+1,e.closePath()}},t}(Pi.Ay);function eo(e,t,n,i,r){var o=e.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||0;a-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var h=new Zn.A({shape:{x:a,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),p=d.isHorizontal(),g=d.inverse;p?(g&&(h.shape.x+=l),h.shape.width=0):(g||(h.shape.y+=u),h.shape.height=0);var y=(0,f.isFunction)(r)?function(e){r(e,h)}:null;Vn.LW(h,{shape:{width:l,height:u,x:a,y:s}},n,null,i,y)}return h}function to(e,t,n){var i=e.getArea(),r=(0,Ge.LI)(i.r0,1),o=(0,Ge.LI)(i.r,1),a=new Wn.A({shape:{cx:(0,Ge.LI)(e.cx,1),cy:(0,Ge.LI)(e.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(t){var s="angle"===e.getBaseAxis().dim;s?a.shape.endAngle=i.startAngle:a.shape.r=r,Vn.LW(a,{shape:{endAngle:i.endAngle,r:o}},n)}return a}function no(e,t,n,i,r){return e?"polar"===e.type?to(e,t,n):"cartesian2d"===e.type?eo(e,t,n,i,r):null:null}function io(e,t){return e.type===t}function ro(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function oo(e){for(var t=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<e.length;){var a=e[o++],s=e[o++];isNaN(a)||(t=Math.min(a,t),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[t,n],[i,r]]}function ao(e,t){var n=oo(e),i=n[0],r=n[1],o=oo(t),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function so(e){return f.isNumber(e)?e:e?.5:0}function lo(e,t,n){if(!n.valueDim)return[];for(var i=t.count(),r=ot(2*i),o=0;o<i;o++){var a=Wr(n,e,t,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}function uo(e,t,n,i,r){var o=n.getBaseAxis(),a="x"===o.dim||"radius"===o.dim?0:1,s=[],l=0,u=[],c=[],h=[],d=[];if(r){for(l=0;l<e.length;l+=2){var p=t||e;isNaN(p[l])||isNaN(p[l+1])||d.push(e[l],e[l+1])}e=d}for(l=0;l<e.length-2;l+=2)switch(h[0]=e[l+2],h[1]=e[l+3],c[0]=e[l],c[1]=e[l+1],s.push(c[0],c[1]),i){case"end":u[a]=h[a],u[1-a]=c[1-a],s.push(u[0],u[1]);break;case"middle":var f=(c[a]+h[a])/2,g=[];u[a]=g[a]=f,u[1-a]=c[1-a],g[1-a]=h[1-a],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[a]=c[a],u[1-a]=h[1-a],s.push(u[0],u[1])}return s.push(e[l++],e[l++]),s}function co(e,t){var n,i,r=[],o=e.length;function a(e,t,n){var i=e.coord,r=(n-i)/(t.coord-i),o=(0,ue.lerp)(r,[e.color,t.color]);return{coord:n,color:o}}for(var s=0;s<o;s++){var l=e[s],u=l.coord;if(u<0)n=l;else{if(u>t){i?r.push(a(i,l,t)):n&&r.push(a(n,l,0),a(n,l,t));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}function ho(e,t,n){var i=e.getVisual("visualMeta");if(i&&i.length&&e.count()&&"cartesian2d"===t.type){for(var r,o,a=i.length-1;a>=0;a--){var s=e.getDimensionInfo(i[a].dimension);if(r=s&&s.coordDim,"x"===r||"y"===r){o=i[a];break}}if(o){var l=t.getAxis(r),u=f.map(o.stops,(function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}})),c=u.length,h=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var d=co(u,"x"===r?n.getWidth():n.getHeight()),p=d.length;if(!p&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var g=10,y=d[0].coord-g,m=d[p-1].coord+g,v=m-y;if(v<.001)return"transparent";f.each(d,(function(e){e.offset=(e.coord-y)/v})),d.push({offset:p?d[p-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:h[0]||"transparent"});var x=new Qn.A(0,0,0,0,d,!0);return x[r]=y,x[r+"2"]=m,x}}}function po(e,t,n){var i=e.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!fo(o,t))){var a=t.mapDimension(o.dim),s={};return f.each(o.getViewLabels(),(function(e){var t=o.scale.getRawOrdinalNumber(e.tickValue);s[t]=1})),function(e){return!s.hasOwnProperty(t.get(a,e))}}}}function fo(e,t){var n=e.getExtent(),i=Math.abs(n[1]-n[0])/e.scale.count();isNaN(i)&&(i=0);for(var r=t.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*Rr.getSymbolSize(t,a)[e.isHorizontal()?1:0]>i)return!1;return!0}function go(e,t){return isNaN(e)||isNaN(t)}function yo(e){for(var t=e.length/2;t>0;t--)if(!go(e[2*t-2],e[2*t-1]))break;return t-1}function mo(e,t){return[e[2*t],e[2*t+1]]}function vo(e,t,n){for(var i,r,o=e.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(r=e[2*u+a],!isNaN(r)&&!isNaN(e[2*u+1-a]))if(0!==u){if(i<=t&&r>=t||i>=t&&r<=t){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(t-i)/(r-i)}}function xo(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<gn.BV.length;t++)if(e.get([gn.BV[t],"endLabel","show"]))return!0;return!1}function _o(e,t,n,i){if(io(t,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=xo(i)?function(n,i){e._endLabelOnDuring(n,i,a,s,o,r,t)}:null,u=t.getBaseAxis().isHorizontal(),c=eo(t,n,i,(function(){var t=e._endLabel;t&&n&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})}),l);if(!i.get("clip",!0)){var h=c.shape,d=Math.max(h.width,h.height);u?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)}return l&&l(1,c),c}return to(t,n,i)}function bo(e,t){var n=t.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||a}}}var So=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Oe.C6)(t,e),t.prototype.init=function(){var e=new zn.A,t=new Gr;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e,this._changePolyState=f.bind(this._changePolyState,this)},t.prototype.render=function(e,t,n){var i=e.coordinateSystem,r=this.group,o=e.getData(),a=e.getModel("lineStyle"),s=e.getModel("areaStyle"),l=o.getLayout("points")||[],u="polar"===i.type,c=this._coordSys,h=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,y=!t.ssr&&e.get("animation"),m=!s.isEmpty(),v=s.get("origin"),x=Fr(i,o,v),_=m&&lo(i,o,x),b=e.get("showSymbol"),S=e.get("connectNulls"),w=b&&!u&&po(e,o,i),M=this._data;M&&M.eachItemGraphicEl((function(e,t){e.__temp&&(r.remove(e),M.setItemGraphicEl(t,null))})),b||h.remove(),r.add(g);var A,I=!u&&e.get("step");i&&i.getArea&&e.get("clip",!0)&&(A=i.getArea(),null!=A.width?(A.x-=.1,A.y-=.1,A.width+=.2,A.height+=.2):A.r0&&(A.r0-=.5,A.r+=.5)),this._clipShapeForSymbol=A;var C=ho(o,i,n)||o.getVisual("style")[o.getVisual("drawType")];if(d&&c.type===i.type&&I===this._step){m&&!p?p=this._newPolygon(l,_):p&&!m&&(g.remove(p),p=this._polygon=null),u||this._initOrUpdateEndLabel(e,i,(0,Je.he)(C));var T=g.getClipPath();if(T){var D=_o(this,i,!1,e);Vn.LW(T,{shape:D.shape},e)}else g.setClipPath(_o(this,i,!0,e));b&&h.updateData(o,{isIgnore:w,clipShape:A,disableAnimation:!0,getSymbolPoint:function(e){return[l[2*e],l[2*e+1]]}}),ro(this._stackedOnPoints,_)&&ro(this._points,l)||(y?this._doUpdateAnimation(o,_,i,n,I,v,S):(I&&(_&&(_=uo(_,l,i,I,S)),l=uo(l,null,i,I,S)),d.setShape({points:l}),p&&p.setShape({points:l,stackedOnPoints:_})))}else b&&h.updateData(o,{isIgnore:w,clipShape:A,disableAnimation:!0,getSymbolPoint:function(e){return[l[2*e],l[2*e+1]]}}),y&&this._initSymbolLabelAnimation(o,i,A),I&&(_&&(_=uo(_,l,i,I,S)),l=uo(l,null,i,I,S)),d=this._newPolyline(l),m?p=this._newPolygon(l,_):p&&(g.remove(p),p=this._polygon=null),u||this._initOrUpdateEndLabel(e,i,(0,Je.he)(C)),g.setClipPath(_o(this,i,!0,e));var L=e.getModel("emphasis"),k=L.get("focus"),O=L.get("blurScope"),P=L.get("disabled");if(d.useStyle(f.defaults(a.getLineStyle(),{fill:"none",stroke:C,lineJoin:"bevel"})),(0,gn.Mx)(d,e,"lineStyle"),d.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"])){var N=d.getState("emphasis").style;N.lineWidth=+d.style.lineWidth+1}(0,R.z)(d).seriesIndex=e.seriesIndex,(0,gn.Lm)(d,k,O,P);var E=so(e.get("smooth")),V=e.get("smoothMonotone");if(d.setShape({smooth:E,smoothMonotone:V,connectNulls:S}),p){var z=o.getCalculationInfo("stackedOnSeries"),B=0;p.useStyle(f.defaults(s.getAreaStyle(),{fill:C,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),z&&(B=so(z.get("smooth"))),p.setShape({smooth:E,stackedOnSmooth:B,smoothMonotone:V,connectNulls:S}),(0,gn.Mx)(p,e,"areaStyle"),(0,R.z)(p).seriesIndex=e.seriesIndex,(0,gn.Lm)(p,k,O,P)}var G=this._changePolyState;o.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=G)})),this._polyline.onHoverStateChange=G,this._data=o,this._coordSys=i,this._stackedOnPoints=_,this._points=l,this._step=I,this._valueOrigin=v,e.get("triggerLineEvent")&&(this.packEventData(e,d),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,t){(0,R.z)(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,i){var r=e.getData(),o=N.le(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=e.get("zlevel")||0,d=e.get("z")||0;s=new Rr(r,o),s.x=l,s.y=u,s.setZ(c,d);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=c,p.z=d,p.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else h.A.prototype.highlight.call(this,e,t,n,i)},t.prototype.downplay=function(e,t,n,i){var r=e.getData(),o=N.le(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else h.A.prototype.downplay.call(this,e,t,n,i)},t.prototype._changePolyState=function(e){var t=this._polygon;(0,gn.Pk)(this._polyline,e),t&&(0,gn.Pk)(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new Kr({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Qr({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var i,r,o=t.getBaseAxis(),a=o.inverse;"cartesian2d"===t.type?(i=o.isHorizontal(),r=!1):"polar"===t.type&&(i="angle"===o.dim,r=!0);var s=e.hostModel,l=s.get("animationDuration");f.isFunction(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=f.isFunction(u)?u(null):u;e.eachItemGraphicEl((function(e,o){var s=e;if(s){var h=[e.x,e.y],d=void 0,p=void 0,g=void 0;if(n)if(r){var y=n,m=t.pointToCoord(h);i?(d=y.startAngle,p=y.endAngle,g=-m[1]/180*Math.PI):(d=y.r0,p=y.r,g=m[0])}else{var v=n;i?(d=v.x,p=v.x+v.width,g=e.x):(d=v.y+v.height,p=v.y,g=e.y)}var x=p===d?0:(g-d)/(p-d);a&&(x=1-x);var _=f.isFunction(u)?u(o):l*x+c,b=s.getSymbolPath(),S=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),S&&S.animateFrom({style:{opacity:0}},{duration:300,delay:_}),b.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,n){var i=e.getModel("endLabel");if(xo(e)){var r=e.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new Gn.Ay({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=yo(a);l>=0&&((0,pn.qM)(o,(0,pn.lx)(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?Or(r,n):kr(r,e)},enableTextSetter:!0},bo(i,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),y=f.inverse,m=t.shape,v=y?g?m.x:m.y+m.height:g?m.x+m.width:m.y,x=(g?p:0)*(y?-1:1),_=(g?0:-p)*(y?-1:1),b=g?"x":"y",S=vo(u,v,b),w=S.range,M=w[1]-w[0],A=void 0;if(M>=1){if(M>1&&!h){var I=mo(u,w[0]);s.attr({x:I[0]+x,y:I[1]+_}),r&&(A=c.getRawValue(w[0]))}else{I=l.getPointOn(v,b);I&&s.attr({x:I[0]+x,y:I[1]+_});var C=c.getRawValue(w[0]),T=c.getRawValue(w[1]);r&&(A=N.Il(n,d,C,T,S.t))}i.lastFrameIndex=w[0]}else{var D=1===e||i.lastFrameIndex>0?w[0]:0;I=mo(u,D);r&&(A=c.getRawValue(D)),s.attr({x:I[0]+x,y:I[1]+_})}if(r){var L=(0,pn.Lu)(s);"function"===typeof L.setLabelText&&L.setLabelText(A)}}},t.prototype._doUpdateAnimation=function(e,t,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=e.hostModel,c=Yr(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,o),h=c.current,d=c.stackedOnCurrent,p=c.next,f=c.stackedOnNext;if(r&&(d=uo(c.stackedOnCurrent,c.current,n,r,a),h=uo(c.current,null,n,r,a),f=uo(c.stackedOnNext,c.next,n,r,a),p=uo(c.next,null,n,r,a)),ao(h,p)>3e3||l&&ao(d,f)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=h;var g={shape:{points:p}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),Vn.oi(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),Vn.oi(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var y=[],m=c.status,v=0;v<m.length;v++){var x=m[v].cmd;if("="===x){var _=e.getItemGraphicEl(m[v].idx1);_&&y.push({el:_,ptIdx:v})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var e=s.shape.__points,t=0;t<y.length;t++){var n=y[t].el,i=2*y[t].ptIdx;n.x=e[i],n.y=e[i+1],n.markRedraw()}}))},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(e,i){e.__temp&&(t.remove(e),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(h.A);const wo=So;function Mo(e,t){return{seriesType:e,plan:(0,nt.A)(),reset:function(e){var n=e.getData(),i=e.coordinateSystem,r=e.pipelineContext,o=t||r.large;if(i){var a=(0,f.map)(i.dimensions,(function(e){return n.mapDimension(e)})).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");Me(n,a[0])&&(a[0]=l),Me(n,a[1])&&(a[1]=l);var u=n.getStore(),c=n.getDimensionIndex(a[0]),h=n.getDimensionIndex(a[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,r=o&&ot(n*s),a=[],l=[],d=e.start,p=0;d<e.end;d++){var f=void 0;if(1===s){var g=u.get(c,d);f=i.dataToPoint(g,null,l)}else a[0]=u.get(c,d),a[1]=u.get(h,d),f=i.dataToPoint(a,null,l);o?(r[p++]=f[0],r[p++]=f[1]):t.setItemLayout(d,f.slice())}o&&t.setLayout("points",r)}}}}}}var Ao={average:function(e){for(var t=0,n=0,i=0;i<e.length;i++)isNaN(e[i])||(t+=e[i],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},Io=function(e){return Math.round(e.length/2)};function Co(e){return{seriesType:e,reset:function(e,t,n){var i=e.getData(),r=e.get("sampling"),o=e.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),d=Math.round(a/h);if(isFinite(d)&&d>1){"lttb"===r?e.setData(i.lttbDownSample(i.mapDimension(l.dim),1/d)):"minmax"===r&&e.setData(i.minmaxDownSample(i.mapDimension(l.dim),1/d));var p=void 0;(0,f.isString)(r)?p=Ao[r]:(0,f.isFunction)(r)&&(p=r),p&&e.setData(i.downSample(i.mapDimension(l.dim),1/d,p,Io))}}}}}function To(e){e.registerChartView(wo),e.registerSeriesModel(Lr),e.registerLayout(Mo("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Co("line"))}var Do=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.getInitialData=function(e,t){return ke(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var i=this.coordinateSystem;if(i&&i.clampData){var r=i.clampData(e),o=i.dataToPoint(r);if(n)(0,f.each)(i.getAxes(),(function(e,n){if("category"===e.type&&null!=t){var i=e.getTicksCoords(),a=e.getTickModel().get("alignWithLabel"),s=r[n],l="x1"===t[n]||"y1"===t[n];if(l&&!a&&(s+=1),i.length<2)return;if(2===i.length)return void(o[n]=e.toGlobalCoord(e.getExtent()[l?1:0]));for(var u=void 0,c=void 0,h=1,d=0;d<i.length;d++){var p=i[d].coord,f=d===i.length-1?i[d-1].tickValue+h:i[d].tickValue;if(f===s){c=p;break}if(f<s)u=p;else if(null!=u&&f>s){c=(p+u)/2;break}1===d&&(h=f-i[0].tickValue)}null==c&&(u?u&&(c=i[i.length-1].coord):c=i[0].coord),o[n]=e.toGlobalCoord(c)}}));else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),u=i.getBaseAxis().isHorizontal()?0:1;o[u]+=s+l/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}(p.A);p.A.registerClass(Do);const Lo=Do;var ko=n(4839),Oo=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.getInitialData=function(){return ke(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,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=(0,ko.G_)(Lo.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}(Lo);const Po=Oo;var No=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return e}(),Ro=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return(0,Oe.C6)(t,e),t.prototype.getDefaultShape=function(){return new No},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r0||0,0),o=Math.max(t.r,0),a=.5*(o-r),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),f=Math.sin(l),g=Math.cos(u),y=Math.sin(u);d?(e.moveTo(p*r+n,f*r+i),e.arc(p*s+n,f*s+i,a,-Math.PI+l,l,!c)):e.moveTo(p*o+n,f*o+i),e.arc(n,i,o,l,u,!c),e.arc(g*s+n,y*s+i,a,u-2*Math.PI,u-Math.PI,!c),0!==r&&e.arc(n,i,r,u,l,c)},t}(Pi.Ay);const Eo=Ro;function Vo(e,t){t=t||{};var n=t.isRoundCap;return function(t,i,r){var o=i.position;if(!o||o instanceof Array)return(0,Yt.X4)(t,i,r);var a=e(o),s=null!=i.distance?i.distance:5,l=this.shape,u=l.cx,c=l.cy,h=l.r,d=l.r0,p=(h+d)/2,f=l.startAngle,g=l.endAngle,y=(f+g)/2,m=n?Math.abs(h-d)/2:0,v=Math.cos,x=Math.sin,_=u+h*v(f),b=c+h*x(f),S="left",w="top";switch(a){case"startArc":_=u+(d-s)*v(y),b=c+(d-s)*x(y),S="center",w="top";break;case"insideStartArc":_=u+(d+s)*v(y),b=c+(d+s)*x(y),S="center",w="bottom";break;case"startAngle":_=u+p*v(f)+Bo(f,s+m,!1),b=c+p*x(f)+Go(f,s+m,!1),S="right",w="middle";break;case"insideStartAngle":_=u+p*v(f)+Bo(f,-s+m,!1),b=c+p*x(f)+Go(f,-s+m,!1),S="left",w="middle";break;case"middle":_=u+p*v(y),b=c+p*x(y),S="center",w="middle";break;case"endArc":_=u+(h+s)*v(y),b=c+(h+s)*x(y),S="center",w="bottom";break;case"insideEndArc":_=u+(h-s)*v(y),b=c+(h-s)*x(y),S="center",w="top";break;case"endAngle":_=u+p*v(g)+Bo(g,s+m,!0),b=c+p*x(g)+Go(g,s+m,!0),S="left",w="middle";break;case"insideEndAngle":_=u+p*v(g)+Bo(g,-s+m,!0),b=c+p*x(g)+Go(g,-s+m,!0),S="right",w="middle";break;default:return(0,Yt.X4)(t,i,r)}return t=t||{},t.x=_,t.y=b,t.align=S,t.verticalAlign=w,t}}function zo(e,t,n,i){if((0,f.isNumber)(i))e.setTextConfig({rotation:i});else if((0,f.isArray)(t))e.setTextConfig({rotation:0});else{var r,o=e.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=l;break;case"startAngle":case"insideStartAngle":r=a;break;case"endAngle":case"insideEndAngle":r=s;break;default:return void e.setTextConfig({rotation:0})}var c=1.5*Math.PI-r;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),e.setTextConfig({rotation:c})}}function Bo(e,t,n){return t*Math.sin(e)*(n?-1:1)}function Go(e,t,n){return t*Math.cos(e)*(n?1:-1)}function Fo(e,t,n){var i=e.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;(0,f.isArray)(i)||(i=[i,i,i,i]);var r=Math.abs(t.r||0-t.r0||0);return{cornerRadius:(0,f.map)(i,(function(e){return(0,Yt.lo)(e,r)}))}}var Ho=Math.max,Wo=Math.min;function Uo(e,t){var n=e.getArea&&e.getArea();if(io(e,"cartesian2d")){var i=e.getBaseAxis();if("category"!==i.type||!i.onBand){var r=t.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}var Yo=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return(0,Oe.C6)(t,e),t.prototype.render=function(e,t,n,i){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var r=e.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,i))},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,En.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,n,i){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=jo(e,l);h&&this._enableRealtimeSort(h,a,n);var d=e.get("clip",!0)||h,p=Uo(l,a);o.removeClipPath();var f=e.get("roundCap",!0),g=e.get("showBackground",!0),y=e.getModel("backgroundStyle"),m=y.get("borderRadius")||0,v=[],x=this._backgroundEls,_=i&&i.isInitSort,b=i&&"changeAxisOrder"===i.type;function S(e){var t=ea[l.type](a,e),n=ha(l,r,t);return n.useStyle(y.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",m):n.setShape("cornerRadius",m),v[e]=n,n}a.diff(s).add((function(t){var n=a.getItemModel(t),i=ea[l.type](a,t,n);if(g&&S(t),a.hasValue(t)&&Qo[l.type](i)){var s=!1;d&&(s=Xo[l.type](p,i));var y=Zo[l.type](e,a,t,i,r,c,u.model,!1,f);h&&(y.forceLabelAnimation=!0),ia(y,a,t,n,i,e,r,"polar"===l.type),_?y.attr({shape:i}):h?qo(h,c,y,i,t,r,!1,!1):(0,Vn.LW)(y,{shape:i},e,t),a.setItemGraphicEl(t,y),o.add(y),y.ignore=s}})).update((function(t,n){var i=a.getItemModel(t),w=ea[l.type](a,t,i);if(g){var M=void 0;0===x.length?M=S(n):(M=x[n],M.useStyle(y.getItemStyle()),"cartesian2d"===l.type?M.setShape("r",m):M.setShape("cornerRadius",m),v[t]=M);var A=ea[l.type](a,t),I=ca(r,A,l);(0,Vn.oi)(M,{shape:I},c,t)}var C=s.getItemGraphicEl(n);if(a.hasValue(t)&&Qo[l.type](w)){var T=!1;if(d&&(T=Xo[l.type](p,w),T&&o.remove(C)),C?(0,Vn.ap)(C):C=Zo[l.type](e,a,t,w,r,c,u.model,!!C,f),h&&(C.forceLabelAnimation=!0),b){var D=C.getTextContent();if(D){var L=(0,pn.Lu)(D);null!=L.prevValue&&(L.prevValue=L.value)}}else ia(C,a,t,i,w,e,r,"polar"===l.type);_?C.attr({shape:w}):h?qo(h,c,C,w,t,r,!0,b):(0,Vn.oi)(C,{shape:w},e,t,null),a.setItemGraphicEl(t,C),C.ignore=T,o.add(C)}else o.remove(C)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&(0,Vn.t5)(n,e,t)})).execute();var w=this._backgroundGroup||(this._backgroundGroup=new zn.A);w.removeAll();for(var M=0;M<v.length;++M)w.add(v[M]);o.add(w),this._backgroundEls=v,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),sa(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),sa(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)&&no(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var i=this;if(t.count()){var r=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var o=function(e){var n=t.getItemGraphicEl(e),i=n&&n.shape;return i&&Math.abs(r.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(t,o,r,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var i=[];return e.each(e.mapDimension(t.dim),(function(e,t){var r=n(t);r=null==r?NaN:r,i.push({dataIndex:t,mappedValue:r,ordinalNumber:e})})),i.sort((function(e,t){return t.mappedValue-e.mappedValue})),{ordinalNumbers:(0,f.map)(i,(function(e){return e.ordinalNumber}))}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var i=n.scale,r=e.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=e.rawIndexOf(r,i.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 n=t.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(e.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,i){if(this._isOrderChangedWithinSameData(e,t,n)){var r=this._dataSort(e,n,t);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},t.prototype._dispatchInitSort=function(e,t,n){var i=t.baseAxis,r=this._dataSort(e,i,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.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,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){(0,Vn.t5)(t,e,(0,R.z)(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}(h.A),Xo={cartesian2d:function(e,t){var n=t.width<0?-1:1,i=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var r=e.x+e.width,o=e.y+e.height,a=Ho(t.x,e.x),s=Wo(t.x+t.width,r),l=Ho(t.y,e.y),u=Wo(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,n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),c||h},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var i=t.r;t.r=t.r0,t.r0=i}var r=Wo(t.r,e.r),o=Ho(t.r0,e.r0);t.r=r,t.r0=o;var a=r-o<0;if(n<0){i=t.r;t.r=t.r0,t.r0=i}return a}},Zo={cartesian2d:function(e,t,n,i,r,o,a,s,l){var u=new Zn.A({shape:(0,f.extend)({},i),z2:1});if(u.__dataIndex=n,u.name="item",o){var c=u.shape,h=r?"height":"width";c[h]=0}return u},polar:function(e,t,n,i,r,o,a,s,l){var u=!r&&l?Eo:Wn.A,c=new u({shape:i,z2:1});c.name="item";var h=na(r);if(c.calculateTextPosition=Vo(h,{isRoundCap:u===Eo}),o){var d=c.shape,p=r?"r":"endAngle",f={};d[p]=r?i.r0:i.startAngle,f[p]=i[p],(s?Vn.oi:Vn.LW)(c,{shape:f},o)}return c}};function jo(e,t){var n=e.get("realtimeSort",!0),i=t.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===t.type)return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}function qo(e,t,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?Vn.oi:Vn.LW)(n,{shape:l},t,r,null);var c=t?e.baseAxis.model:null;(a?Vn.oi:Vn.LW)(n,{shape:u},c,r)}function $o(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var Ko=["x","y","width","height"],Jo=["cx","cy","r","startAngle","endAngle"],Qo={cartesian2d:function(e){return!$o(e,Ko)},polar:function(e){return!$o(e,Jo)}},ea={cartesian2d:function(e,t,n){var i=e.getItemLayout(t),r=n?ra(n,i):0,o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(e,t,n){var i=e.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function ta(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function na(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function ia(e,t,n,i,r,o,a,s){var l=t.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var u=e.shape,c=Fo(i.getModel("itemStyle"),u,!0);(0,f.extend)(u,c),e.setShape(u)}}else{var h=i.get(["itemStyle","borderRadius"])||0;e.setShape("r",h)}e.useStyle(l);var d=i.getShallow("cursor");d&&e.attr("cursor",d);var p=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",g=(0,pn.lx)(i);(0,pn.qM)(e,g,{labelFetcher:o,labelDataIndex:n,defaultText:kr(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var y=e.getTextContent();if(s&&y){var m=i.get(["label","position"]);e.textConfig.inside="middle"===m||null,zo(e,"outside"===m?p:m,na(a),i.get(["label","rotate"]))}(0,pn.Oh)(y,g,o.getRawValue(n),(function(e){return Or(t,e)}));var v=i.getModel(["emphasis"]);(0,gn.Lm)(e,v.get("focus"),v.get("blurScope"),v.get("disabled")),(0,gn.Mx)(e,i),ta(r)&&(e.style.fill="none",e.style.stroke="none",(0,f.each)(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}function ra(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=e.get(["itemStyle","borderWidth"])||0,r=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,r,o)}var oa=function(){function e(){}return e}(),aa=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return(0,Oe.C6)(t,e),t.prototype.getDefaultShape=function(){return new oa},t.prototype.buildPath=function(e,t){for(var n=t.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[i]=s,a[r]=n[l+2],o[i]=n[l+i],o[r]=n[l+r],e.rect(o[0],o[1],a[0],a[1])},t}(Pi.Ay);function sa(e,t,n,i){var r=e.getData(),o=r.getLayout("valueAxisHorizontal")?1:0,a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=e.getModel("backgroundStyle"),u=r.getLayout("largeBackgroundPoints");if(u){var c=new aa({shape:{points:u},incremental:!!i,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),n&&n.push(c)}var h=new aa({shape:{points:r.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,t.add(h),h.useStyle(r.getVisual("style")),h.style.stroke=null,(0,R.z)(h).seriesIndex=e.seriesIndex,e.get("silent")||(h.on("mousedown",la),h.on("mousemove",la)),n&&n.push(h)}var la=(0,ce.nF)((function(e){var t=this,n=ua(t,e.offsetX,e.offsetY);(0,R.z)(t).dataIndex=n>=0?n:null}),30,!1);function ua(e,t,n){for(var i=e.baseDimIdx,r=1-i,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[i]=u,l[r]=o[d+2],s[i]=o[d+i],s[r]=o[d+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),t>=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}function ca(e,t,n){if(io(n,"cartesian2d")){var i=t,r=n.getArea();return{x:e?i.x:r.x,y:e?r.y:i.y,width:e?i.width:r.width,height:e?r.height:i.height}}r=n.getArea();var o=t;return{cx:r.cx,cy:r.cy,r0:e?r.r0:o.r0,r:e?r.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:2*Math.PI}}function ha(e,t,n){var i="polar"===e.type?Wn.A:Zn.A;return new i({shape:ca(t,n,e),silent:!0,z2:0})}const da=Yo;function pa(e){e.registerChartView(da),e.registerSeriesModel(Po),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,f.curry(gt,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,yt("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Co("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))}var fa=n(9808),ga=2*Math.PI,ya=Math.PI/180;function ma(e,t){return dn.dV(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function va(e,t){var n=ma(e,t),i=e.get("center"),r=e.get("radius");f.isArray(r)||(r=[0,r]);var o,a,s=(0,Ge.lo)(n.width,t.getWidth()),l=(0,Ge.lo)(n.height,t.getHeight()),u=Math.min(s,l),c=(0,Ge.lo)(r[0],u/2),h=(0,Ge.lo)(r[1],u/2),d=e.coordinateSystem;if(d){var p=d.dataToPoint(i);o=p[0]||0,a=p[1]||0}else f.isArray(i)||(i=[i,i]),o=(0,Ge.lo)(i[0],s)+n.x,a=(0,Ge.lo)(i[1],l)+n.y;return{cx:o,cy:a,r0:c,r:h}}function xa(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),i=t.mapDimension("value"),r=ma(e,n),o=va(e,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-e.get("startAngle")*ya,h=e.get("endAngle"),d=e.get("padAngle")*ya;h="auto"===h?c-ga:-h*ya;var p=e.get("minAngle")*ya,f=p+d,g=0;t.each(i,(function(e){!isNaN(e)&&g++}));var y=t.getSum(i),m=Math.PI/(y||g)*2,v=e.get("clockwise"),x=e.get("roseType"),_=e.get("stillShowZeroSum"),b=t.getDataExtent(i);b[0]=0;var S=v?1:-1,w=[c,h],M=S*d/2;(0,Ni.q)(w,!v),c=w[0],h=w[1];var A=_a(e);A.startAngle=c,A.endAngle=h,A.clockwise=v;var I=Math.abs(h-c),C=I,T=0,D=c;if(t.setLayout({viewRect:r,r:l}),t.each(i,(function(e,n){var i;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:v,cx:a,cy:s,r0:u,r:x?NaN:l});else{i="area"!==x?0===y&&_?m:e*m:I/g,i<f?(i=f,C-=f):T+=e;var r=D+S*i,o=0,c=0;d>i?(o=D+S*i/2,c=o):(o=D+M,c=r-M),t.setItemLayout(n,{angle:i,startAngle:o,endAngle:c,clockwise:v,cx:a,cy:s,r0:u,r:x?(0,Ge.Cb)(e,b,[u,l]):l}),D=r}})),C<ga&&g)if(C<=.001){var L=I/g;t.each(i,(function(e,n){if(!isNaN(e)){var i=t.getItemLayout(n);i.angle=L;var r=0,o=0;L<d?(r=c+S*(n+.5)*L,o=r):(r=c+S*n*L+M,o=c+S*(n+1)*L-M),i.startAngle=r,i.endAngle=o}}))}else m=C/T,D=c,t.each(i,(function(e,n){if(!isNaN(e)){var i=t.getItemLayout(n),r=i.angle===f?f:e*m,o=0,a=0;r<d?(o=D+S*r/2,a=o):(o=D+M,a=D+S*r-M),i.startAngle=o,i.endAngle=a,D+=S*r}}))}))}var _a=(0,N.$r)();function ba(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var i=e.getData();i.filterSelf((function(e){for(var t=i.getName(e),r=0;r<n.length;r++)if(!n[r].isSelected(t))return!1;return!0}))}}}}var Sa=Math.PI/180;function wa(e,t,n,i,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}hr(e,l,l+a)&&f(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-n),c=i+l.len,h=c*c,d=Math.sqrt(Math.abs((1-u*u/a)*h)),p=t+(d+l.len2)*r,f=p-l.label.x,g=l.targetTextWidth-f*r;Aa(l,g,!0),l.label.x=p}}function f(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>n?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var h=l.label.x-t-l.len2*r,d=i+l.len,f=Math.abs(h)<d?Math.sqrt(c*c/(1-h*h/d/d)):d;u.rB=f,u.maxY=c}u.list.push(l)}p(o),p(a)}}function Ma(e,t,n,i,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;Ia(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(d=0;d<e.length;d++){var f=e[d];if(!Ia(f)&&f.linePoints){if(null!=f.labelStyleWidth)continue;p=f.label;var g=f.linePoints,y=void 0;y="edge"===f.labelAlignTo?p.x<t?g[2][0]-f.labelDistance-a-f.edgeDistance:a+r-f.edgeDistance-g[2][0]-f.labelDistance:"labelLine"===f.labelAlignTo?p.x<t?c-a-f.bleedMargin:a+r-h-f.bleedMargin:p.x<t?p.x-a-f.bleedMargin:a+r-p.x-f.bleedMargin,f.targetTextWidth=y,Aa(f,y)}}wa(u,t,n,i,1,r,o,a,s,h),wa(l,t,n,i,-1,r,o,a,s,c);for(d=0;d<e.length;d++){f=e[d];if(!Ia(f)&&f.linePoints){p=f.label,g=f.linePoints;var m="edge"===f.labelAlignTo,v=p.style.padding,x=v?v[1]+v[3]:0,_=p.style.backgroundColor?0:x,b=f.rect.width+_,S=g[1][0]-g[2][0];m?p.x<t?g[2][0]=a+f.edgeDistance+b+f.labelDistance:g[2][0]=a+r-f.edgeDistance-b-f.labelDistance:(p.x<t?g[2][0]=p.x+f.labelDistance:g[2][0]=p.x-f.labelDistance,g[1][0]=g[2][0]+S),g[1][1]=g[2][1]=p.y}}}function Aa(e,t,n){if(void 0===n&&(n=!1),null==e.labelStyleWidth){var i=e.label,r=i.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||n){var h=o.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",t-l);var d=i.getBoundingRect();i.setStyle("width",Math.ceil(d.width)),i.setStyle("backgroundColor",a)}else{var p=t-l,f=t<c?p:n?p>e.unconstrainedWidth?null:p:null;i.setStyle("width",f)}var g=i.getBoundingRect();o.width=g.width;var y=(i.style.margin||0)+2.1;o.height=g.height+y,o.y-=(o.height-h)/2}}}function Ia(e){return"center"===e.position}function Ca(e){var t,n,i=e.getData(),r=[],o=!1,a=(e.get("minShowLabelAngle")||0)*Sa,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,c=s.x,h=s.y,d=s.height;function p(e){e.ignore=!0}function g(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}i.each((function(e){var s=i.getItemGraphicEl(e),h=s.shape,d=s.getTextContent(),y=s.getTextGuideLine(),m=i.getItemModel(e),v=m.getModel("label"),x=v.get("position")||m.get(["emphasis","label","position"]),_=v.get("distanceToLabelLine"),b=v.get("alignTo"),S=(0,Ge.lo)(v.get("edgeDistance"),u),w=v.get("bleedMargin"),M=m.getModel("labelLine"),A=M.get("length");A=(0,Ge.lo)(A,u);var I=M.get("length2");if(I=(0,Ge.lo)(I,u),Math.abs(h.endAngle-h.startAngle)<a)return(0,f.each)(d.states,p),d.ignore=!0,void(y&&((0,f.each)(y.states,p),y.ignore=!0));if(g(d)){var C,T,D,L,k=(h.startAngle+h.endAngle)/2,O=Math.cos(k),P=Math.sin(k);t=h.cx,n=h.cy;var N="inside"===x||"inner"===x;if("center"===x)C=h.cx,T=h.cy,L="center";else{var R=(N?(h.r+h.r0)/2*O:h.r*O)+t,E=(N?(h.r+h.r0)/2*P:h.r*P)+n;if(C=R+3*O,T=E+3*P,!N){var V=R+O*(A+l-h.r),z=E+P*(A+l-h.r),B=V+(O<0?-1:1)*I,G=z;C="edge"===b?O<0?c+S:c+u-S:B+(O<0?-_:_),T=G,D=[[R,E],[V,z],[B,G]]}L=N?"center":"edge"===b?O>0?"right":"left":O>0?"left":"right"}var F=Math.PI,H=0,W=v.get("rotate");if((0,f.isNumber)(W))H=W*(F/180);else if("center"===x)H=0;else if("radial"===W||!0===W){var U=O<0?-k+F:-k;H=U}else if("tangential"===W&&"outside"!==x&&"outer"!==x){var Y=Math.atan2(O,P);Y<0&&(Y=2*F+Y);var X=P>0;X&&(Y=F+Y),H=Y-F}if(o=!!H,d.x=C,d.y=T,d.rotation=H,d.setStyle({verticalAlign:"middle"}),N){d.setStyle({align:L});var Z=d.states.select;Z&&(Z.x+=d.x,Z.y+=d.y)}else{var j=d.getBoundingRect().clone();j.applyTransform(d.getComputedTransform());var q=(d.style.margin||0)+2.1;j.y-=q/2,j.height+=q,r.push({label:d,labelLine:y,position:x,len:A,len2:I,minTurnAngle:M.get("minTurnAngle"),maxSurfaceAngle:M.get("maxSurfaceAngle"),surfaceNormal:new Oi.A(O,P),linePoints:D,textAlign:L,labelDistance:_,labelAlignTo:b,edgeDistance:S,bleedMargin:w,rect:j,unconstrainedWidth:j.width,labelStyleWidth:d.style.width})}s.setTextConfig({inside:N})}})),!o&&e.get("avoidLabelOverlap")&&Ma(r,t,n,l,u,d,c,h);for(var y=0;y<r.length;y++){var m=r[y],v=m.label,x=m.labelLine,_=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:m.textAlign}),_&&((0,f.each)(v.states,p),v.ignore=!0);var b=v.states.select;b&&(b.x+=v.x,b.y+=v.y)}if(x){var S=m.linePoints;_||!S?((0,f.each)(x.states,p),x.ignore=!0):(tr(S,m.minTurnAngle),nr(S,m.surfaceNormal,m.maxSurfaceAngle),x.setShape({points:S}),v.__hostTarget.textGuideLineConfig={anchor:new Oi.A(S[0][0],S[0][1])})}}}var Ta=function(e){function t(t,n,i){var r=e.call(this)||this;r.z2=2;var o=new Gn.Ay;return r.setTextContent(o),r.updateData(t,n,i,!0),r}return(0,Oe.C6)(t,e),t.prototype.updateData=function(e,t,n,i){var r=this,o=e.hostModel,a=e.getItemModel(t),s=a.getModel("emphasis"),l=e.getItemLayout(t),u=(0,f.extend)(Fo(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))r.setShape(u);else{if(i){r.setShape(u);var c=o.getShallow("animationType");o.ecModel.ssr?(Vn.LW(r,{scaleX:0,scaleY:0},o,{dataIndex:t,isFrom:!0}),r.originX=u.cx,r.originY=u.cy):"scale"===c?(r.shape.r=l.r0,Vn.LW(r,{shape:{r:l.r}},o,t)):null!=n?(r.setShape({startAngle:n,endAngle:n}),Vn.LW(r,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,t)):(r.shape.endAngle=l.startAngle,Vn.oi(r,{shape:{endAngle:l.endAngle}},o,t))}else(0,Vn.ap)(r),Vn.oi(r,{shape:u},o,t);r.useStyle(e.getItemVisual(t,"style")),(0,gn.Mx)(r,a);var h=(l.startAngle+l.endAngle)/2,d=o.get("selectedOffset"),p=Math.cos(h)*d,g=Math.sin(h)*d,y=a.getShallow("cursor");y&&r.attr("cursor",y),this._updateLabel(o,e,t),r.ensureState("emphasis").shape=(0,f.extend)({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},Fo(s.getModel("itemStyle"),l)),(0,f.extend)(r.ensureState("select"),{x:p,y:g,shape:Fo(a.getModel(["select","itemStyle"]),l)}),(0,f.extend)(r.ensureState("blur"),{shape:Fo(a.getModel(["blur","itemStyle"]),l)});var m=r.getTextGuideLine(),v=r.getTextContent();m&&(0,f.extend)(m.ensureState("select"),{x:p,y:g}),(0,f.extend)(v.ensureState("select"),{x:p,y:g}),(0,gn.Lm)(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},t.prototype._updateLabel=function(e,t,n){var i=this,r=t.getItemModel(n),o=r.getModel("labelLine"),a=t.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;(0,pn.qM)(i,(0,pn.lx)(r),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:e.getFormattedLabel(n,"normal")||t.getName(n)});var u=i.getTextContent();i.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=e.get(["label","position"]);if("outside"!==c&&"outer"!==c)i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Xn.A,this.setTextGuideLine(h)),or(this,ar(r),{stroke:s,opacity:(0,f.retrieve3)(o.get(["lineStyle","opacity"]),l,1)})}},t}(Wn.A),Da=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return(0,Oe.C6)(t,e),t.prototype.render=function(e,t,n,i){var r,o=e.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(r=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&e.get("showEmptyCircle")){var c=_a(e),h=new Wn.A({shape:(0,f.extend)(va(e,n),c)});h.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,s.add(h)}o.diff(a).add((function(e){var t=new Ta(o,e,r);o.setItemGraphicEl(e,t),s.add(t)})).update((function(e,t){var n=a.getItemGraphicEl(t);n.updateData(o,e,r),n.off("click"),s.add(n),o.setItemGraphicEl(e,n)})).remove((function(t){var n=a.getItemGraphicEl(t);Vn.t5(n,e,t)})).execute(),Ca(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData(),i=n.getItemLayout(0);if(i){var r=e[0]-i.cx,o=e[1]-i.cy,a=Math.sqrt(r*r+o*o);return a<=i.r&&a>=i.r0}},t.type="pie",t}(h.A);const La=Da;function ka(e,t,n){t=(0,f.isArray)(t)&&{coordDimensions:t}||(0,f.extend)({encodeDefine:e.getEncode()},t);var i=e.getSource(),r=pe(i,t).dimensions,o=new ae(r,e);return o.initData(i,n),o}var Oa=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){var t=this._getRawData();return t.indexOfName(e)>=0},e.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},e.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},e}();const Pa=Oa;var Na=N.$r(),Ra=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Oe.C6)(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Pa(f.bind(this.getData,this),f.bind(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return ka(this,{coordDimensions:["value"],encodeDefaulter:f.curry(he.ln,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),i=Na(n),r=i.seats;if(!r){var o=[];n.each(n.mapDimension("value"),(function(e){o.push(e)})),r=i.seats=(0,Ge.kM)(o,n.hostModel.get("percentPrecision"))}var a=e.prototype.getDataParams.call(this,t);return a.percent=r[t]||0,a.$vars.push("percent"),a},t.prototype._defaultLabelLine=function(e){N.M5(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.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}(p.A);const Ea=Ra;function Va(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf((function(e){var t=n.mapDimension("value"),i=n.get(t,e);return!((0,f.isNumber)(i)&&!isNaN(i)&&i<0)}))}}}function za(e){e.registerChartView(La),e.registerSeriesModel(Ea),(0,fa.I)("pie",e.registerAction),e.registerLayout((0,f.curry)(xa,"pie")),e.registerProcessor(ba("pie")),e.registerProcessor(Va("pie"))}var Ba=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return(0,Oe.C6)(t,e),t.prototype.getInitialData=function(e,t){return ke(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,n){return n.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}(p.A);const Ga=Ba;var Fa=4,Ha=function(){function e(){}return e}(),Wa=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return(0,Oe.C6)(t,e),t.prototype.getDefaultShape=function(){return new Ha},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n,i=t.points,r=t.size,o=this.symbolProxy,a=o.shape,s=e.getContext?e.getContext():e,l=s&&r[0]<Fa,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<i.length;){var c=i[n++],h=i[n++];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=n,this.notClear=!0)}},t.prototype.afterBrush=function(){var e,t=this.shape,n=t.points,i=t.size,r=this._ctx,o=this.softClipShape;if(r){for(e=this._off;e<n.length;){var a=n[e++],s=n[e++];isNaN(a)||isNaN(s)||(o&&!o.contain(a,s)||r.fillRect(a-i[0]/2,s-i[1]/2,i[0],i[1]))}this.incremental&&(this._off=e,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,i=n.points,r=n.size,o=Math.max(r[0],4),a=Math.max(r[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,u=i[l]-o/2,c=i[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 n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();if(e=n[0],t=n[1],i.contain(e,t)){var r=this.hoverDataIdx=this.findDataIndex(e,t);return r>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,i=t.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c<n.length;){var h=n[c++],d=n[c++];a=Math.min(h,a),l=Math.max(h,l),s=Math.min(d,s),u=Math.max(d,u)}e=this._rect=new _t.A(a-r/2,s-o/2,l-a+r,u-s+o)}return e},t}(Pi.Ay),Ua=function(){function e(){this.group=new zn.A}return e.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},e.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild((function(e){if(null!=e.startIndex){var n=2*(e.endIndex-e.startIndex),i=4*e.startIndex*2;t=new Float32Array(t.buffer,i,n)}e.setShape("points",t),e.reset()}))},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,n){var i=this._newAdded[0],r=t.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+r.length);s.set(o),s.set(r,a),i.endIndex=e.end,i.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,n)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new Wa({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,n){var i=t.hostModel;n=n||{};var r=t.getVisual("symbolSize");e.setShape("size",r instanceof Array?r:[r,r]),e.softClipShape=n.clipShape||null,e.symbolProxy=(0,fn.v5)(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<Fa;e.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=t.getVisual("style"),s=a&&a.fill;s&&e.setColor(s);var l=(0,R.z)(e);l.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){l.dataIndex=null;var n=e.hoverDataIdx;n>=0&&(l.dataIndex=n+(e.startIndex||0))}))},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const Ya=Ua;var Xa=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._updateSymbolDraw(i,e);r.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData(),r=this._updateSymbolDraw(i,e);r.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=Mo("").reset(e,t,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},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 n=this._symbolDraw,i=t.pipelineContext,r=i.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new Ya:new Gr,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(h.A);const Za=Xa;var ja=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Oe.C6)(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(d.A);const qa=ja;var $a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Oe.C6)(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",N.US).models[0]},t.type="cartesian2dAxis",t}(d.A);f.mixin($a,hn);var Ka={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Ja=f.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Ka),Qa=f.merge({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Ka),es=f.merge({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Qa),ts=f.defaults({logBase:10},Qa);const ns={category:Ja,value:Qa,time:es,log:ts};var is={value:1,category:1,time:1,log:1};function rs(e,t,n,i){(0,f.each)(is,(function(r,o){var a=(0,f.merge)((0,f.merge)({},ns[o],!0),i,!0),s=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+o,n}return(0,Oe.C6)(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=(0,dn.ad)(this),i=n?(0,dn.vs)(e):{},r=t.getTheme();(0,f.merge)(e,r.get(o+"Axis")),(0,f.merge)(e,this.getDefaultOption()),e.type=os(e),n&&(0,dn.YA)(e,i,n)},n.prototype.optionUpdated=function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=Be.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+o,n.defaultOption=a,n}(n);e.registerComponentModel(s)})),e.registerSubTypeDefaulter(t+"Axis",os)}function os(e){return e.type||(e.data?"category":"value")}var as=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return f.map(this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),f.filter(this.getAxes(),(function(t){return t.scale.type===e}))},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}();const ss=as;var ls=["x","y"];function us(e){return"interval"===e.type||"time"===e.type}var cs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=ls,t}return(0,Oe.C6)(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(us(e)&&us(t)){var n=e.getExtent(),i=t.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,c=r[0]-n[0]*l,h=r[1]-i[0]*u,d=this._transform=[l,0,0,u,c,h];this._invTransform=(0,se.invert)([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),i=this.dataToPoint(t),r=this.getArea(),o=new _t.A(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var i=e[0],r=e[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return(0,le.applyTransform)(n,e,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,t)),n[1]=a.toGlobalCoord(a.dataToCoord(r,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(e[0]),s=i.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return(0,le.applyTransform)(n,e,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),t),n[1]=r.coordToData(r.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(e){e=e||0;var t=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(t[0],t[1])-e,r=Math.min(n[0],n[1])-e,o=Math.max(t[0],t[1])-i+e,a=Math.max(n[0],n[1])-r+e;return new _t.A(i,r,o,a)},t}(ss);const hs=cs;var ds=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return(0,Oe.C6)(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(Ai);const ps=ds;function fs(e,t,n){n=n||{};var i=e.coordinateSystem,r=t.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,c=i.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=t.get("offset")||0,g="x"===u?[h[2]-p,h[3]+p]:[h[0]-p,h[1]+p];if(a){var y=a.toGlobalCoord(a.dataToCoord(0));g[d.onZero]=Math.max(Math.min(y,g[1]),g[0])}o.position=["y"===u?g[d[l]]:h[0],"x"===u?g[d[l]]:h[3]],o.rotation=Math.PI/2*("x"===u?0:1);var m={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=m[s],o.labelOffset=a?g[d[s]]-g[d.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),f.retrieve(n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var v=t.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-v:v,o.z2=1,o}function gs(e){return"cartesian2d"===e.get("coordinateSystem")}function ys(e){var t={xAxisModel:null,yAxisModel:null};return f.each(t,(function(n,i){var r=i.replace(/Model$/,""),o=e.getReferringComponents(r,N.US).models[0];t[i]=o})),t}var ms=Math.log;function vs(e,t,n){var i=tt.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=Kt(e,t),u=l.extent,c=l.fixMin,h=l.fixMax;if("log"===e.type){var d=ms(e.base);u=[ms(u[0])/d,ms(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var p=i.getExtent.call(e);c&&(u[0]=p[0]),h&&(u[1]=p[1]);var f=i.getInterval.call(e),g=u[0],y=u[1];if(c&&h)f=(y-g)/a;else if(c){y=u[0]+f*a;while(y<u[1]&&isFinite(y)&&isFinite(u[1]))f=We(f),y=u[0]+f*a}else if(h){g=u[1]-f*a;while(g>u[0]&&isFinite(g)&&isFinite(u[0]))f=We(f),g=u[1]-f*a}else{var m=e.getTicks().length-1;m>a&&(f=We(f));var v=f*a;y=Math.ceil(u[1]/f)*f,g=(0,Ge.LI)(y-v),g<0&&u[0]>=0?(g=0,y=(0,Ge.LI)(v)):y>0&&u[1]<=0&&(y=0,g=-(0,Ge.LI)(v))}var x=(r[0].value-o[0].value)/s,_=(r[a].value-o[a].value)/s;i.setExtent.call(e,g+f*x,y+f*_),i.setInterval.call(e,f),(x||_)&&i.setNiceExtent.call(e,g+f,y-f)}var xs=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ls,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function i(e){var t,n=(0,f.keys)(e),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=+n[o],s=e[a],l=s.model,u=s.scale;Fe(u)&&l.get("alignTicks")&&null==l.get("interval")?r.push(s):(Qt(u,l),Fe(u)&&(t=s))}r.length&&(t||(t=r.pop(),Qt(t.scale,t.model)),(0,f.each)(r,(function(e){vs(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),i(n.x),i(n.y);var r={};(0,f.each)(n.x,(function(e){bs(n,"y",e,r)})),(0,f.each)(n.y,(function(e){bs(n,"x",e,r)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var i=e.getBoxLayoutParams(),r=!n&&e.get("containLabel"),o=(0,dn.dV)(i,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var a=this._axesList;function s(){(0,f.each)(a,(function(e){var t=e.isHorizontal(),n=t?[0,o.width]:[0,o.height],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),ws(e,t?o.x:o.y)}))}s(),r&&((0,f.each)(a,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=on(e);if(t){var n=e.isHorizontal()?"height":"width",i=e.model.get(["axisLabel","margin"]);o[n]-=t[n]+i,"top"===e.position?o.y+=t.height+i:"left"===e.position&&(o.x+=t.width+i)}}})),s()),(0,f.each)(this._coordsList,(function(e){e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}(0,f.isObject)(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===e||r[i].getAxis("y").index===t)return r[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,i=e.seriesModel,r=e.xAxisModel||i&&i.getReferringComponents("xAxis",N.US).models[0],o=e.yAxisModel||i&&i.getReferringComponents("yAxis",N.US).models[0],a=e.gridModel,s=this._coordsList;if(i)t=i.coordinateSystem,(0,f.indexOf)(s,t)<0&&(t=null);else if(r&&o)t=this.getCartesian(r.componentIndex,o.componentIndex);else if(r)n=this.getAxis("x",r.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){var l=a.coordinateSystem;l===this&&(t=this._coordsList[0])}return{cartesian:t,axis:n}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var i=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(t.eachComponent("xAxis",l("x"),this),t.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(t){return function(n,i){if(_s(n,e)){var l=n.get("position");"x"===t?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new ps(t,en(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=r,u.index=i,r._axesList.push(u),a[t][i]=u,s[t]++}}}this._axesMap=a,(0,f.each)(a.x,(function(t,n){(0,f.each)(a.y,(function(r,o){var a="x"+n+"y"+o,s=new hs(a);s.master=i,s.model=e,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(t),s.addAxis(r)}))}))},e.prototype._updateScale=function(e,t){function n(e,t){(0,f.each)(un(e,t.dim),(function(n){t.scale.unionExtentFromData(e,n)}))}(0,f.each)(this._axesList,(function(e){if(e.scale.setExtent(1/0,-1/0),"category"===e.type){var t=e.model.get("categorySortInfo");e.scale.setSortInfo(t)}})),e.eachSeries((function(e){if(gs(e)){var i=ys(e),r=i.xAxisModel,o=i.yAxisModel;if(!_s(r,t)||!_s(o,t))return;var a=this.getCartesian(r.componentIndex,o.componentIndex),s=e.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}}),this)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return(0,f.each)(this.getCartesians(),(function(i){var r=null!=e&&"auto"!==e?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(r);(0,f.indexOf)(t,r)<0&&t.push(r),(0,f.indexOf)(n,o)<0&&n.push(o)})),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var i=[];return t.eachComponent("grid",(function(r,o){var a=new e(r,t,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)})),t.eachSeries((function(e){if(gs(e)){var t=ys(e),n=t.xAxisModel,i=t.yAxisModel,r=n.getCoordSysModel();0;var o=r.coordinateSystem;e.coordinateSystem=o.getCartesian(n.componentIndex,i.componentIndex)}})),i},e.dimensions=ls,e}();function _s(e,t){return e.getCoordSysModel()===t}function bs(e,t,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=e[t],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)Ss(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&Ss(o[u])&&!i[c(o[u])]){r=o[u];break}r&&(i[c(r)]=!0)}function c(e){return e.dim+"_"+e.index}}function Ss(e){return e&&"category"!==e.type&&"time"!==e.type&&tn(e)}function ws(e,t){var n=e.getExtent(),i=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return i-e+t}}const Ms=xs;var As=Math.PI,Is=function(){function e(e,t){this.group=new zn.A,this.opt=t,this.axisModel=e,(0,f.defaults)(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new zn.A({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!Cs[e]},e.prototype.add=function(e){Cs[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var i,r,o=(0,Ge._7)(t-e);return(0,Ge.dh)(o)?(r=n>0?"top":"bottom",i="center"):(0,Ge.dh)(o-As)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<As?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),Cs={axisLine:function(e,t,n,i){var r=t.get(["axisLine","show"]);if("auto"===r&&e.handleAutoShown&&(r=e.handleAutoShown("axisLine")),r){var o=t.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&((0,le.applyTransform)(s,s,a),(0,le.applyTransform)(l,l,a));var c=(0,f.extend)({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new jn.A({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});En.subPixelOptimizeLine(h.shape,h.style.lineWidth),h.anid="line",n.add(h);var d=t.get(["axisLine","symbol"]);if(null!=d){var p=t.get(["axisLine","symbolSize"]);(0,f.isString)(d)&&(d=[d,d]),((0,f.isString)(p)||(0,f.isNumber)(p))&&(p=[p,p]);var g=(0,fn.hV)(t.get(["axisLine","symbolOffset"])||0,p),y=p[0],m=p[1];(0,f.each)([{rotate:e.rotation+Math.PI/2,offset:g[0],r:0},{rotate:e.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(t,i){if("none"!==d[i]&&null!=d[i]){var r=(0,fn.v5)(d[i],-y/2,-m/2,y,m,c.stroke,!0),o=t.r+t.offset,a=u?l:s;r.attr({rotation:t.rotate,x:a[0]+o*Math.cos(e.rotation),y:a[1]-o*Math.sin(e.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(e,t,n,i){var r=Ns(n,i,t,e),o=Es(n,i,t,e);if(Ds(t,o,r),Rs(n,i,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=lr((0,f.map)(o,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})));dr(a)}},axisName:function(e,t,n,i){var r=(0,f.retrieve)(e.axisName,t.get("name"));if(r){var o,a,s=t.get("nameLocation"),l=e.nameDirection,u=t.getModel("nameTextStyle"),c=t.get("nameGap")||0,h=t.axis.getExtent(),d=h[0]>h[1]?-1:1,p=["start"===s?h[0]-d*c:"end"===s?h[1]+d*c:(h[0]+h[1])/2,Os(s)?e.labelOffset+l*c:0],g=t.get("nameRotate");null!=g&&(g=g*As/180),Os(s)?o=Is.innerTextLayout(e.rotation,null!=g?g:e.rotation,l):(o=Ts(e.rotation,s,g||0,h),a=e.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var y=u.getFont(),m=t.get("nameTruncate",!0)||{},v=m.ellipsis,x=(0,f.retrieve)(e.nameTruncateMaxWidth,m.maxWidth,a),_=new Gn.Ay({x:p[0],y:p[1],rotation:o.rotation,silent:Is.isLabelSilent(t),style:(0,pn.VB)(u,{text:r,font:y,overflow:"truncate",width:x,ellipsis:v,fill:u.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(En.setTooltipConfig({el:_,componentModel:t,itemName:r}),_.__fullText=r,_.anid="name",t.get("triggerEvent")){var b=Is.makeAxisEventDataBase(t);b.targetType="axisName",b.name=r,(0,R.z)(_).eventData=b}i.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function Ts(e,t,n,i){var r,o,a=(0,Ge._7)(n-e),s=i[0]>i[1],l="start"===t&&!s||"start"!==t&&s;return(0,Ge.dh)(a-As/2)?(o=l?"bottom":"top",r="center"):(0,Ge.dh)(a-1.5*As)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*As&&a>As/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function Ds(e,t,n){if(!ln(e.axis)){var i=e.get(["axisLabel","showMinLabel"]),r=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var o=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],h=n[n.length-1],d=n[n.length-2];!1===i?(Ls(o),Ls(u)):ks(o,a)&&(i?(Ls(a),Ls(c)):(Ls(o),Ls(u))),!1===r?(Ls(s),Ls(h)):ks(l,s)&&(r?(Ls(l),Ls(d)):(Ls(s),Ls(h)))}}function Ls(e){e&&(e.ignore=!0)}function ks(e,t){var n=e&&e.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(n&&i){var r=se.identity([]);return se.rotate(r,r,-e.rotation),n.applyTransform(se.mul([],r,e.getLocalTransform())),i.applyTransform(se.mul([],r,t.getLocalTransform())),n.intersect(i)}}function Os(e){return"middle"===e||"center"===e}function Ps(e,t,n,i,r){for(var o=[],a=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,t&&((0,le.applyTransform)(a,a,t),(0,le.applyTransform)(s,s,t));var c=new jn.A({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});En.subPixelOptimizeLine(c.shape,c.style.lineWidth),c.anid=r+"_"+e[l].tickValue,o.push(c)}return o}function Ns(e,t,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick")),a&&!r.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),u=r.getTicksCoords(),c=Ps(u,t.transform,l,(0,f.defaults)(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<c.length;h++)e.add(c[h]);return c}}function Rs(e,t,n,i){var r=n.axis,o=n.getModel("minorTick");if(o.get("show")&&!r.scale.isBlank()){var a=r.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=i*o.get("length"),u=(0,f.defaults)(s.getLineStyle(),(0,f.defaults)(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var h=Ps(a[c],t.transform,l,u,"minorticks_"+c),d=0;d<h.length;d++)e.add(h[d])}}function Es(e,t,n,i){var r=n.axis,o=(0,f.retrieve)(i.axisLabelShow,n.get(["axisLabel","show"]));if(o&&!r.scale.isBlank()){var a=n.getModel("axisLabel"),s=a.get("margin"),l=r.getViewLabels(),u=((0,f.retrieve)(i.labelRotate,a.get("rotate"))||0)*As/180,c=Is.innerTextLayout(i.rotation,u,i.labelDirection),h=n.getCategories&&n.getCategories(!0),d=[],p=Is.isLabelSilent(n),g=n.get("triggerEvent");return(0,f.each)(l,(function(o,u){var y="ordinal"===r.scale.type?r.scale.getRawOrdinalNumber(o.tickValue):o.tickValue,m=o.formattedLabel,v=o.rawLabel,x=a;if(h&&h[y]){var b=h[y];(0,f.isObject)(b)&&b.textStyle&&(x=new _.A(b.textStyle,a,n.ecModel))}var S=x.getTextColor()||n.get(["axisLine","lineStyle","color"]),w=r.dataToCoord(y),M=x.getShallow("align",!0)||c.textAlign,A=(0,f.retrieve2)(x.getShallow("alignMinLabel",!0),M),I=(0,f.retrieve2)(x.getShallow("alignMaxLabel",!0),M),C=x.getShallow("verticalAlign",!0)||x.getShallow("baseline",!0)||c.textVerticalAlign,T=(0,f.retrieve2)(x.getShallow("verticalAlignMinLabel",!0),C),D=(0,f.retrieve2)(x.getShallow("verticalAlignMaxLabel",!0),C),L=new Gn.Ay({x:w,y:i.labelOffset+i.labelDirection*s,rotation:c.rotation,silent:p,z2:10+(o.level||0),style:(0,pn.VB)(x,{text:m,align:0===u?A:u===l.length-1?I:M,verticalAlign:0===u?T:u===l.length-1?D:C,fill:(0,f.isFunction)(S)?S("category"===r.type?v:"value"===r.type?y+"":y,u):S})});if(L.anid="label_"+y,En.setTooltipConfig({el:L,componentModel:n,itemName:m,formatterParamsExtra:{isTruncated:function(){return L.isTruncated},value:v,tickIndex:u}}),g){var k=Is.makeAxisEventDataBase(n);k.targetType="axisLabel",k.value=v,k.tickIndex=u,"category"===r.type&&(k.dataIndex=y),(0,R.z)(L).eventData=k}t.add(L),L.updateTransform(),d.push(L),e.add(L),L.decomposeTransform()})),d}}const Vs=Is;function zs(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Bs(n,e,t),n.seriesInvolved&&Fs(n,e),n}function Bs(e,t,n){var i=t.getComponent("tooltip"),r=t.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];(0,f.each)(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=js(n.model),l=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var u=n.model,c=u.getModel("tooltip",i);if((0,f.each)(n.getAxes(),(0,f.curry)(g,!1,null)),n.getTooltipAxes&&i&&c.get("show")){var h="axis"===c.get("trigger"),d="cross"===c.get(["axisPointer","type"]),p=n.getTooltipAxes(c.get(["axisPointer","axis"]));(h||d)&&(0,f.each)(p.baseAxes,(0,f.curry)(g,!d||"cross",h)),d&&(0,f.each)(p.otherAxes,(0,f.curry)(g,"cross",!1))}}function g(i,s,u){var h=u.model.getModel("axisPointer",r),d=h.get("show");if(d&&("auto"!==d||i||Zs(h))){null==s&&(s=h.get("triggerTooltip")),h=i?Gs(u,c,r,t,i,s):h;var p=h.get("snap"),f=h.get("triggerEmphasis"),g=js(u.model),y=s||p||"category"===u.type,m=e.axesInfo[g]={key:g,axis:u,coordSys:n,axisPointerModel:h,triggerTooltip:s,triggerEmphasis:f,involveSeries:y,snap:p,useHandle:Zs(h),seriesModels:[],linkGroup:null};l[g]=m,e.seriesInvolved=e.seriesInvolved||y;var v=Hs(o,u);if(null!=v){var x=a[v]||(a[v]={axesInfo:{}});x.axesInfo[g]=m,x.mapper=o[v].mapper,m.linkGroup=x}}}}))}function Gs(e,t,n,i,r,o){var a=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};(0,f.each)(s,(function(e){l[e]=(0,f.clone)(a.get(e))})),l.snap="category"!==e.type&&!!o,"cross"===a.get("type")&&(l.type="line");var u=l.label||(l.label={});if(null==u.show&&(u.show=!1),"cross"===r){var c=a.get(["label","show"]);if(u.show=null==c||c,!o){var h=l.lineStyle=a.get("crossStyle");h&&(0,f.defaults)(u,h.textStyle)}}return e.model.getModel("axisPointer",new _.A(l,n,i))}function Fs(e,t){t.eachSeries((function(t){var n=t.coordinateSystem,i=t.get(["tooltip","trigger"],!0),r=t.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==t.get(["axisPointer","show"],!0)&&(0,f.each)(e.coordSysAxesInfo[js(n.model)],(function(e){var i=e.axis;n.getAxis(i.dim)===i&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())}))}))}function Hs(e,t){for(var n=t.model,i=t.dim,r=0;r<e.length;r++){var o=e[r]||{};if(Ws(o[i+"AxisId"],n.id)||Ws(o[i+"AxisIndex"],n.componentIndex)||Ws(o[i+"AxisName"],n.name))return r}}function Ws(e,t){return"all"===e||(0,f.isArray)(e)&&(0,f.indexOf)(e,t)>=0||e===t}function Us(e){var t=Ys(e);if(t){var n=t.axisPointerModel,i=t.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=Zs(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=t.axis.scale.isBlank()?"hide":"show")}}function Ys(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[js(e)]}function Xs(e){var t=Ys(e);return t&&t.axisPointerModel}function Zs(e){return!!e.get(["handle","show"])}function js(e){return e.type+"||"+e.id}var qs={},$s=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.render=function(t,n,i,r){this.axisPointerClass&&Us(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,i,!0)},t.prototype.updateAxisPointer=function(e,t,n,i){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,i){var r=t.getAxisPointerClass(this.axisPointerClass);if(r){var o=Xs(e);o?(this._axisPointer||(this._axisPointer=new r)).render(e,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){qs[e]=t},t.getAxisPointerClass=function(e){return e&&qs[e]},t.type="axis",t}(c.A);const Ks=$s;var Js=(0,N.$r)();function Qs(e,t,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,h=Js(e).splitAreaColors,d=f.createHashMap(),p=0;if(h)for(var g=0;g<u.length;g++){var y=h.get(u[g].tickValue);if(null!=y){p=(y+(c-1)*g)%c;break}}var m=r.toGlobalCoord(u[0].coord),v=a.getAreaStyle();s=f.isArray(s)?s:[s];for(g=1;g<u.length;g++){var x=r.toGlobalCoord(u[g].coord),_=void 0,b=void 0,S=void 0,w=void 0;r.isHorizontal()?(_=m,b=l.y,S=x-_,w=l.height,m=_+S):(_=l.x,b=m,S=l.width,w=x-b,m=b+w);var M=u[g-1].tickValue;null!=M&&d.set(M,p),t.add(new Zn.A({anid:null!=M?"area_"+M:null,shape:{x:_,y:b,width:S,height:w},style:f.defaults({fill:s[p]},v),autoBatch:!0,silent:!0})),p=(p+1)%c}Js(e).splitAreaColors=d}}}function el(e){Js(e).splitAreaColors=null}var tl=["axisLine","axisTickLabel","axisName"],nl=["splitArea","splitLine","minorSplitLine"],il=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return(0,Oe.C6)(t,e),t.prototype.render=function(t,n,i,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new zn.A,this.group.add(this._axisGroup),t.get("show")){var a=t.getCoordSysModel(),s=fs(a,t),l=new Vs(t,f.extend({handleAutoShown:function(e){for(var n=a.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if(Fe(n[i].getOtherAxis(t.axis).scale))return!0;return!1}},s));f.each(tl,l.add,l),this._axisGroup.add(l.getGroup()),f.each(nl,(function(e){t.get([e,"show"])&&rl[e](this,this._axisGroup,t,a)}),this);var u=r&&"changeAxisOrder"===r.type&&r.isInitSort;u||En.groupTransition(o,this._axisGroup,t),e.prototype.render.call(this,t,n,i,r)}},t.prototype.remove=function(){el(this)},t.type="cartesianAxis",t}(Ks),rl={splitLine:function(e,t,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color"),l=!1!==o.get("showMinLine"),u=!1!==o.get("showMaxLine");s=f.isArray(s)?s:[s];for(var c=i.coordinateSystem.getRect(),h=r.isHorizontal(),d=0,p=r.getTicksCoords({tickModel:o}),g=[],y=[],m=a.getLineStyle(),v=0;v<p.length;v++){var x=r.toGlobalCoord(p[v].coord);if((0!==v||l)&&(v!==p.length-1||u)){var _=p[v].tickValue;h?(g[0]=x,g[1]=c.y,y[0]=x,y[1]=c.y+c.height):(g[0]=c.x,g[1]=x,y[0]=c.x+c.width,y[1]=x);var b=d++%s.length,S=new jn.A({anid:null!=_?"line_"+_:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:y[0],y2:y[1]},style:f.defaults({stroke:s[b]},m),silent:!0});En.subPixelOptimizeLine(S.shape,m.lineWidth),t.add(S)}}}},minorSplitLine:function(e,t,n,i){var r=n.axis,o=n.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=r.isHorizontal(),u=r.getMinorTicksCoords();if(u.length)for(var c=[],h=[],d=a.getLineStyle(),p=0;p<u.length;p++)for(var f=0;f<u[p].length;f++){var g=r.toGlobalCoord(u[p][f].coord);l?(c[0]=g,c[1]=s.y,h[0]=g,h[1]=s.y+s.height):(c[0]=s.x,c[1]=g,h[0]=s.x+s.width,h[1]=g);var y=new jn.A({anid:"minor_line_"+u[p][f].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:d,silent:!0});En.subPixelOptimizeLine(y.shape,d.lineWidth),t.add(y)}},splitArea:function(e,t,n,i){Qs(e,t,n,i)}},ol=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.type="xAxis",t}(il),al=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=ol.type,t}return(0,Oe.C6)(t,e),t.type="yAxis",t}(il);var sl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return(0,Oe.C6)(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new Zn.A({shape:e.coordinateSystem.getRect(),style:(0,f.defaults)({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(c.A),ll={offset:0};function ul(e){e.registerComponentView(sl),e.registerComponentModel(qa),e.registerCoordinateSystem("cartesian2d",Ms),rs(e,"x",$a,ll),rs(e,"y",$a,ll),e.registerComponentView(ol),e.registerComponentView(al),e.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))}function cl(e){x(ul),e.registerSeriesModel(Ga),e.registerChartView(Za),e.registerLayout(Mo("scatter"))}function hl(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),n=[],i=e.coordinateSystem;if(i){var r=i.getIndicatorAxes();f.each(r,(function(e,o){t.each(t.mapDimension(r[o].dim),(function(e,t){n[t]=n[t]||[];var r=i.dataToPoint(e,o);n[t][o]=dl(r)?r:pl(i)}))})),t.each((function(e){var r=f.find(n[e],(function(e){return dl(e)}))||pl(i);n[e].push(r.slice()),t.setItemLayout(e,n[e])}))}}))}function dl(e){return!isNaN(e[0])&&!isNaN(e[1])}function pl(e){return[e.cx,e.cy]}function fl(e){var t=e.polar;if(t){f.isArray(t)||(t=[t]);var n=[];f.each(t,(function(t,i){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],f.isArray(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)})),e.polar=n}f.each(e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}var gl=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.render=function(e,t,n){var i=e.coordinateSystem,r=this.group,o=e.getData(),a=this._data;function s(e,t){var n=e.getItemVisual(t,"symbol")||"circle";if("none"!==n){var i=fn.xU(e.getItemVisual(t,"symbolSize")),r=fn.v5(n,-1,-1,2,2),o=e.getItemVisual(t,"symbolRotate")||0;return r.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:o*Math.PI/180||0}),r}}function l(t,n,i,r,o,a){i.removeAll();for(var l=0;l<n.length-1;l++){var u=s(r,o);u&&(u.__dimIdx=l,t[l]?(u.setPosition(t[l]),En[a?"initProps":"updateProps"](u,{x:n[l][0],y:n[l][1]},e,o)):u.setPosition(n[l]),i.add(u))}}function u(e){return f.map(e,(function(e){return[i.cx,i.cy]}))}o.diff(a).add((function(t){var n=o.getItemLayout(t);if(n){var i=new Yn.A,r=new Xn.A,a={shape:{points:n}};i.shape.points=u(n),r.shape.points=u(n),Vn.LW(i,a,e,t),Vn.LW(r,a,e,t);var s=new zn.A,c=new zn.A;s.add(r),s.add(i),s.add(c),l(r.shape.points,n,c,o,t,!0),o.setItemGraphicEl(t,s)}})).update((function(t,n){var i=a.getItemGraphicEl(n),r=i.childAt(0),s=i.childAt(1),u=i.childAt(2),c={shape:{points:o.getItemLayout(t)}};c.shape.points&&(l(r.shape.points,c.shape.points,u,o,t,!1),(0,Vn.ap)(s),(0,Vn.ap)(r),Vn.oi(r,c,e),Vn.oi(s,c,e),o.setItemGraphicEl(t,i))})).remove((function(e){r.remove(a.getItemGraphicEl(e))})).execute(),o.eachItemGraphicEl((function(e,t){var n=o.getItemModel(t),i=e.childAt(0),a=e.childAt(1),s=e.childAt(2),l=o.getItemVisual(t,"style"),u=l.fill;r.add(e),i.useStyle(f.defaults(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),(0,gn.Mx)(i,n,"lineStyle"),(0,gn.Mx)(a,n,"areaStyle");var c=n.getModel("areaStyle"),h=c.isEmpty()&&c.parentModel.isEmpty();a.ignore=h,f.each(["emphasis","select","blur"],(function(e){var t=n.getModel([e,"areaStyle"]),i=t.isEmpty()&&t.parentModel.isEmpty();a.ensureState(e).ignore=i&&h})),a.useStyle(f.defaults(c.getAreaStyle(),{fill:u,opacity:.7,decal:l.decal}));var d=n.getModel("emphasis"),p=d.getModel("itemStyle").getItemStyle();s.eachChild((function(e){if(e instanceof Bn.Ay){var i=e.style;e.useStyle(f.extend({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},l))}else e.useStyle(l),e.setColor(u),e.style.strokeNoScale=!0;var r=e.ensureState("emphasis");r.style=f.clone(p);var a=o.getStore().get(o.getDimensionIndex(e.__dimIdx),t);(null==a||isNaN(a))&&(a=""),(0,pn.qM)(e,(0,pn.lx)(n),{labelFetcher:o.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:a,inheritColor:u,defaultOpacity:l.opacity})})),(0,gn.Lm)(e,d.get("focus"),d.get("blurScope"),d.get("disabled"))})),this._data=o},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(h.A);const yl=gl;var ml=n(8424),vl=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return(0,Oe.C6)(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Pa(f.bind(this.getData,this),f.bind(this.getRawData,this))},t.prototype.getInitialData=function(e,t){return ka(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.coordinateSystem,o=r.getIndicatorAxes(),a=this.getData().getName(e),s=""===a?this.name:a,l=(0,ml.aw)(this,e);return(0,ml.Qx)("section",{header:s,sortBlocks:!0,blocks:f.map(o,(function(t){var n=i.get(i.mapDimension(t.dim),e);return(0,ml.Qx)("nameValue",{markerType:"subItem",markerColor:l,name:t.name,value:n,sortParam:n})}))})},t.prototype.getTooltipPosition=function(e){if(null!=e)for(var t=this.getData(),n=this.coordinateSystem,i=t.getValues(f.map(n.dimensions,(function(e){return t.mapDimension(e)})),e),r=0,o=i.length;r<o;r++)if(!isNaN(i[r])){var a=n.getIndicatorAxes();return n.coordToPoint(a[r].dataToCoord(i[r]),r)}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(p.A);const xl=vl;var _l=ns.value;function bl(e,t){return f.defaults({show:t},e)}var Sl=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),r=this.get("axisTick"),o=this.get("axisLabel"),a=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),u=this.get("axisNameGap"),c=this.get("triggerEvent"),h=f.map(this.get("indicator")||[],(function(h){null!=h.max&&h.max>0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var d=a;null!=h.color&&(d=f.defaults({color:h.color},a));var p=f.merge(f.clone(h),{boundaryGap:e,splitNumber:t,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:h.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:d,triggerEvent:c},!1);if(f.isString(l)){var g=p.name;p.name=l.replace("{value}",null!=g?g:"")}else f.isFunction(l)&&(p.name=l(p.name,p));var y=new _.A(p,null,this.ecModel);return f.mixin(y,hn.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y}),this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:f.merge({lineStyle:{color:"#bbb"}},_l.axisLine),axisLabel:bl(_l.axisLabel,!1),axisTick:bl(_l.axisTick,!1),splitLine:bl(_l.splitLine,!0),splitArea:bl(_l.splitArea,!0),indicator:[]},t}(d.A);const wl=Sl;var Ml=["axisLine","axisTickLabel","axisName"],Al=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),i=f.map(n,(function(e){var n=e.model.get("showName")?e.name:"",i=new Vs(e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i}));f.each(i,(function(e){f.each(Ml,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var i=e.get("shape"),r=e.getModel("splitLine"),o=e.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),u=o.get("show"),c=a.get("color"),h=s.get("color"),d=f.isArray(c)?c:[c],p=f.isArray(h)?h:[h],g=[],y=[];if("circle"===i)for(var m=n[0].getTicksCoords(),v=t.cx,x=t.cy,_=0;_<m.length;_++){if(l){var b=D(g,d,_);g[b].push(new Fn.A({shape:{cx:v,cy:x,r:m[_].coord}}))}if(u&&_<m.length-1){b=D(y,p,_);y[b].push(new Un.A({shape:{cx:v,cy:x,r0:m[_].coord,r:m[_+1].coord}}))}}else{var S,w=f.map(n,(function(e,n){var i=e.getTicksCoords();return S=null==S?i.length-1:Math.min(i.length-1,S),f.map(i,(function(e){return t.coordToPoint(e.coord,n)}))})),M=[];for(_=0;_<=S;_++){for(var A=[],I=0;I<n.length;I++)A.push(w[I][_]);if(A[0]&&A.push(A[0].slice()),l){b=D(g,d,_);g[b].push(new Xn.A({shape:{points:A}}))}if(u&&M){b=D(y,p,_-1);y[b].push(new Yn.A({shape:{points:A.concat(M)}}))}M=A.slice().reverse()}}var C=a.getLineStyle(),T=s.getAreaStyle();f.each(y,(function(e,t){this.group.add(En.mergePath(e,{style:f.defaults({stroke:"none",fill:p[t%p.length]},T),silent:!0}))}),this),f.each(g,(function(e,t){this.group.add(En.mergePath(e,{style:f.defaults({fill:"none",stroke:d[t%d.length]},C),silent:!0}))}),this)}function D(e,t,n){var i=n%t.length;return e[i]=e[i]||[],i}},t.type="radar",t}(c.A);const Il=Al;var Cl=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.type="value",r.angle=0,r.name="",r}return(0,Oe.C6)(t,e),t}(Ai);const Tl=Cl;var Dl=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=(0,f.map)(e.getIndicatorModels(),(function(e,t){var n="indicator_"+t,i=new Tl(n,new tt);return i.name=e.get("name"),i.model=e,e.axis=i,this.dimensions.push(n),i}),this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],i=n.angle,r=this.cx+e*Math.cos(i),o=this.cy-e*Math.sin(i);return[r,o]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=Math.sqrt(t*t+n*n);t/=i,n/=i;for(var r,o=Math.atan2(-n,t),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(o-u.angle);c<a&&(r=u,s=l,a=c)}return[s,+(r&&r.coordToData(i))]},e.prototype.resize=function(e,t){var n=e.get("center"),i=t.getWidth(),r=t.getHeight(),o=Math.min(i,r)/2;this.cx=Ge.lo(n[0],i),this.cy=Ge.lo(n[1],r),this.startAngle=e.get("startAngle")*Math.PI/180;var a=e.get("radius");((0,f.isString)(a)||(0,f.isNumber)(a))&&(a=[0,a]),this.r0=Ge.lo(a[0],o),this.r=Ge.lo(a[1],o),(0,f.each)(this._indicatorAxes,(function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n}),this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,i=this._model;(0,f.each)(n,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeriesByType("radar",(function(t,r){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===i){var o=t.getData();(0,f.each)(n,(function(e){e.scale.unionExtentFromData(o,o.mapDimension(e.dim))}))}}),this);var r=i.get("splitNumber"),o=new tt;o.setExtent(0,r),o.setInterval(1),(0,f.each)(n,(function(e,t){vs(e.scale,e.model,o)}))},e.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.create=function(t,n){var i=[];return t.eachComponent("radar",(function(r){var o=new e(r,t,n);i.push(o),r.coordinateSystem=o})),t.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("radarIndex")||0])})),i},e.dimensions=[],e}();const Ll=Dl;function kl(e){e.registerCoordinateSystem("radar",Ll),e.registerComponentModel(wl),e.registerComponentView(Il),e.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each((function(e){t.setItemVisual(e,"legendIcon","roundRect")})),t.setVisual("legendIcon","roundRect")}})}function Ol(e){x(kl),e.registerChartView(yl),e.registerSeriesModel(xl),e.registerLayout(hl),e.registerProcessor(ba("radar")),e.registerPreprocessor(fl)}var Pl=n(6740),Nl=n(7427),Rl="\0_ec_interaction_mutex";function El(e,t,n){var i=Bl(e);i[t]=n}function Vl(e,t,n){var i=Bl(e),r=i[t];r===n&&(i[t]=null)}function zl(e,t){return!!Bl(e)[t]}function Bl(e){return e[Rl]||(e[Rl]={})}u.OH({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},f.noop);var Gl=function(e){function t(t){var n=e.call(this)||this;n._zr=t;var i=(0,f.bind)(n._mousedownHandler,n),r=(0,f.bind)(n._mousemoveHandler,n),o=(0,f.bind)(n._mouseupHandler,n),a=(0,f.bind)(n._mousewheelHandler,n),s=(0,f.bind)(n._pinchHandler,n);return n.enable=function(e,n){this.disable(),this._opt=(0,f.defaults)((0,f.clone)(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",i),t.on("mousemove",r),t.on("mouseup",o)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",a),t.on("pinch",s))},n.disable=function(){t.off("mousedown",i),t.off("mousemove",r),t.off("mouseup",o),t.off("mousewheel",a),t.off("pinch",s)},n}return(0,Oe.C6)(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(!Nl.W5(e)){var t=e.target;while(t){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,i=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(this._dragging&&Wl("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!zl(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,i=this._x,r=this._y,o=t-i,a=n-r;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&Nl.ds(e.event),Hl(this,"pan","moveOnMouseMove",e,{dx:o,dy:a,oldX:i,oldY:r,newX:t,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){Nl.W5(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=Wl("zoomOnMouseWheel",e,this._opt),n=Wl("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,r=Math.abs(i),o=e.offsetX,a=e.offsetY;if(0!==i&&(t||n)){if(t){var s=r>3?1.4:r>1?1.2:1.1,l=i>0?s:1/s;Fl(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:o,originY:a,isAvailableBehavior:null})}if(n){var u=Math.abs(i),c=(i>0?1:-1)*(u>3?.4:u>1?.15:.05);Fl(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:o,originY:a,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!zl(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;Fl(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(Pl.A);function Fl(e,t,n,i,r){e.pointerChecker&&e.pointerChecker(i,r.originX,r.originY)&&(Nl.ds(i.event),Hl(e,t,n,i,r))}function Hl(e,t,n,i,r){r.isAvailableBehavior=(0,f.bind)(Wl,null,n,i),e.trigger(t,r)}function Wl(e,t,n){var i=n[e];return!e||i&&(!(0,f.isString)(i)||t.event[i+"Key"])}const Ul=Gl;function Yl(e,t,n){var i=e.target;i.x+=t,i.y+=n,i.dirty()}function Xl(e,t,n,i){var r=e.target,o=e.zoomLimit,a=e.zoom=e.zoom||1;if(a*=t,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/e.zoom;e.zoom=a,r.x-=(n-r.x)*(u-1),r.y-=(i-r.y)*(u-1),r.scaleX*=u,r.scaleY*=u,r.dirty()}var Zl={axisPointer:1,tooltip:1,brush:1};function jl(e,t,n){var i=t.getComponentByElement(e.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!Zl.hasOwnProperty(i.mainType)&&r&&r.model!==n}var ql=n(643),$l=n(1656),Kl=(0,f.createHashMap)(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Jl=function(){function e(e,t){this.type="geoSVG",this._usedGraphicMap=(0,f.createHashMap)(),this._freedGraphics=[],this._mapName=e,this._parsedXML=(0,$l.h)(t)}return e.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=eu(e.named),n=t.regions,i=t.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n;try{t=e&&(0,ql.cM)(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,(0,f.assert)(null!=n)}catch(e){throw new Error("Invalid svg format\n"+e.message)}var i=new zn.A;i.add(n),i.isGeoSVGGraphicRoot=!0;var r=t.width,o=t.height,a=t.viewBoxRect,s=this._boundingRect;if(!s){var l=void 0,u=void 0,c=void 0,h=void 0;if(null!=r?(l=0,c=r):a&&(l=a.x,c=a.width),null!=o?(u=0,h=o):a&&(u=a.y,h=a.height),null==l||null==u){var d=n.getBoundingRect();null==l&&(l=d.x,c=d.width),null==u&&(u=d.y,h=d.height)}s=this._boundingRect=new _t.A(l,u,c,h)}if(a){var p=(0,ql.ps)(a,s);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}i.setClipPath(new Zn.A({shape:s.plain()}));var g=[];return(0,f.each)(t.named,(function(e){null!=Kl.get(e.svgNodeTagLower)&&(g.push(e),Ql(e.el))})),{root:i,boundingRect:s,named:g}},e.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}();function Ql(e){e.silent=!1,e.isGroup&&e.traverse((function(e){e.silent=!1}))}function eu(e){var t=[],n=(0,f.createHashMap)();return(0,f.each)(e,(function(e){if(null==e.namedFrom){var i=new kn(e.name,e.el);t.push(i),n.set(e.name,i)}})),{regions:t,regionsMap:n}}for(var tu=[126,25],nu="南海诸岛",iu=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],ru=0;ru<iu.length;ru++)for(var ou=0;ou<iu[ru].length;ou++)iu[ru][ou][0]/=10.5,iu[ru][ou][1]/=-14,iu[ru][ou][0]+=tu[0],iu[ru][ou][1]+=tu[1];function au(e,t){if("china"===e){for(var n=0;n<t.length;n++)if(t[n].name===nu)return;t.push(new Ln(nu,f.map(iu,(function(e){return{type:"polygon",exterior:e}})),tu))}}var su={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function lu(e,t){if("china"===e){var n=su[t.name];if(n){var i=t.getCenter();i[0]+=n[0]/10.5,i[1]+=-n[1]/14,t.setCenter(i)}}}var uu=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function cu(e,t){"china"===e&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:uu[0]})}var hu="name",du=function(){function e(e,t,n){this.type="geoJSON",this._parsedMap=(0,f.createHashMap)(),this._mapName=e,this._specialAreas=n,this._geoJSON=fu(t)}return e.prototype.load=function(e,t){t=t||hu;var n=this._parsedMap.get(t);if(!n){var i=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:i,boundingRect:pu(i)})}var r=(0,f.createHashMap)(),o=[];return(0,f.each)(n.regions,(function(t){var n=t.name;e&&(0,f.hasOwn)(e,n)&&(t=t.cloneShallow(n=e[n])),o.push(t),r.set(n,t)})),{regions:o,boundingRect:n.boundingRect||new _t.A(0,0,0,0),regionsMap:r}},e.prototype._parseToRegions=function(e){var t,n=this._mapName,i=this._geoJSON;try{t=i?Rn(i,e):[]}catch(e){throw new Error("Invalid geoJson format\n"+e.message)}return au(n,t),(0,f.each)(t,(function(e){var t=e.name;lu(n,e),cu(n,e);var i=this._specialAreas&&this._specialAreas[t];i&&e.transformTo(i.left,i.top,i.width,i.height)}),this),t},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function pu(e){for(var t,n=0;n<e.length;n++){var i=e[n].getBoundingRect();t=t||i.clone(),t.union(i)}return t}function fu(e){return(0,f.isString)(e)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var gu=(0,f.createHashMap)();const yu={registerMap:function(e,t,n){if(t.svg){var i=new Jl(e,t.svg);gu.set(e,i)}else{var r=t.geoJson||t.geoJSON;r&&!t.features?n=t.specialAreas:r=t;i=new du(e,r,n);gu.set(e,i)}},getGeoResource:function(e){return gu.get(e)},getMapForUser:function(e){var t=gu.get(e);return t&&"geoJSON"===t.type&&t.getMapForUser()},load:function(e,t,n){var i=gu.get(e);if(i)return i.load(t,n)}};var mu=n(2766),vu=n(1638),xu=["rect","circle","line","ellipse","polygon","polyline","path"],_u=f.createHashMap(xu),bu=f.createHashMap(xu.concat(["g"])),Su=f.createHashMap(xu.concat(["g"])),wu=(0,N.$r)();function Mu(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}function Au(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var Iu=function(){function e(e){var t=new zn.A;this.uid=(0,ko.$Q)("ec_map_draw"),this._controller=new Ul(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new zn.A),t.add(this._svgGroup=new zn.A)}return e.prototype.draw=function(e,t,n,i,r){var o="geo"===e.mainType,a=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},(function(t){a||t.getHostGeoModel()!==e||(a=t.getData())}));var s=e.coordinateSystem,l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),h=c.raw,d=c.roam,p=!l.childAt(0)||r;p?(u.x=d.x,u.y=d.y,u.scaleX=d.scaleX,u.scaleY=d.scaleY,u.dirty()):Vn.oi(u,d,e);var f=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,g={api:n,geo:s,mapOrGeoModel:e,data:a,isVisualEncodedByVisualMap:f,isGeo:o,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(g):"geoSVG"===s.resourceType&&this._buildSVG(g),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,i)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=f.createHashMap(),n=f.createHashMap(),i=this._regionsGroup,r=e.transformInfoRaw,o=e.mapOrGeoModel,a=e.data,s=e.geo.projection,l=s&&s.stream;function u(e,t){return t&&(e=t(e)),e&&[e[0]*r.scaleX+r.x,e[1]*r.scaleY+r.y]}function c(e){for(var t=[],n=!l&&s&&s.project,i=0;i<e.length;++i){var r=u(e[i],n);r&&t.push(r)}return t}function h(e){return{shape:{points:c(e)}}}i.removeAll(),f.each(e.geo.regions,(function(r){var c=r.name,d=t.get(c),p=n.get(c)||{},g=p.dataIdx,y=p.regionModel;if(!d){d=t.set(c,new zn.A),i.add(d),g=a?a.indexOfName(c):null,y=e.isGeo?o.getRegionModel(c):a?a.getItemModel(g):null;var m=y.get("silent",!0);null!=m&&(d.silent=m),n.set(c,{dataIdx:g,regionModel:y})}var v=[],x=[];f.each(r.geometries,(function(e){if("polygon"===e.type){var t=[e.exterior].concat(e.interiors||[]);l&&(t=Ou(t,l)),f.each(t,(function(e){v.push(new Yn.A(h(e)))}))}else{var n=e.points;l&&(n=Ou(n,l,!0)),f.each(n,(function(e){x.push(new Xn.A(h(e)))}))}}));var _=u(r.getCenter(),s&&s.project);function b(t,n){if(t.length){var i=new Jn.A({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});d.add(i),Cu(e,i,g,y),Tu(e,i,c,y,o,g,_),n&&(Au(i),f.each(i.states,Au))}}b(v),b(x,!0)})),t.each((function(t,i){var r=n.get(i),a=r.dataIdx,s=r.regionModel;Du(e,t,i,s,o,a),Lu(e,t,i,s,o),ku(e,t,i,s,o)}),this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var i=this._svgDispatcherMap=f.createHashMap(),r=!1;f.each(this._svgGraphicRecord.named,(function(t){var n=t.name,o=e.mapOrGeoModel,a=e.data,s=t.svgNodeTagLower,l=t.el,u=a?a.indexOfName(n):null,c=o.getRegionModel(n);null!=_u.get(s)&&l instanceof vu.Ay&&Cu(e,l,u,c),l instanceof vu.Ay&&(l.culling=!0);var h=c.get("silent",!0);if(null!=h&&(l.silent=h),l.z2EmphasisLift=0,!t.namedFrom&&(null!=Su.get(s)&&Tu(e,l,n,c,o,u,null),Du(e,l,n,c,o,u),Lu(e,l,n,c,o),null!=bu.get(s))){var d=ku(e,l,n,c,o);"self"===d&&(r=!0);var p=i.get(n)||i.set(n,[]);p.push(l)}}),this),this._enableBlurEntireSVG(r,e)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=n.opacity;this._svgGraphicRecord.root.traverse((function(e){if(!e.isGroup){(0,gn.DW)(e);var t=e.ensureState("blur").style||{};null==t.opacity&&null!=i&&(t.opacity=i),e.ensureState("emphasis")}}))}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(e,t){if(null==e)return[];var n=t.coordinateSystem;if("geoJSON"===n.resourceType){var i=this._regionsGroupByName;if(i){var r=i.get(e);return r?[r]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=yu.getGeoResource(e);if(t&&"geoSVG"===t.type){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(null!=e){var t=yu.getGeoResource(e);t&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(e,t,n){var i=e.coordinateSystem,r=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=i.getZoom(),r.enable(e.get("roam")||!1);var a=e.mainType;function s(){var t={type:"geoRoam",componentType:a};return t[a+"Id"]=e.id,t}r.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,Yl(o,e.dx,e.dy),n.dispatchAction(f.extend(s(),{dx:e.dx,dy:e.dy,animation:{duration:0}}))}),this),r.off("zoom").on("zoom",(function(e){this._mouseDownFlag=!1,Xl(o,e.scale,e.originX,e.originY),n.dispatchAction(f.extend(s(),{totalZoom:o.zoom,zoom:e.scale,originX:e.originX,originY:e.originY,animation:{duration:0}}))}),this),r.setPointerChecker((function(t,r,o){return i.containPoint([r,o])&&!jl(t,n,e)}))},e.prototype.resetForLabelLayout=function(){this.group.traverse((function(e){var t=e.getTextContent();t&&(t.ignore=wu(t).ignore)}))},e.prototype._updateMapSelectHandler=function(e,t,n,i){var r=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",(function(){r._mouseDownFlag=!0})),t.on("click",(function(e){r._mouseDownFlag&&(r._mouseDownFlag=!1)})))},e}();function Cu(e,t,n,i){var r=i.getModel("itemStyle"),o=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=Mu(r),u=Mu(o),c=Mu(s),h=Mu(a),d=e.data;if(d){var p=d.getItemVisual(n,"style"),f=d.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),f&&(l.decal=(0,mu.w)(f,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=h,(0,gn.DW)(t)}function Tu(e,t,n,i,r,o,a){var s=e.data,l=e.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var h=l?n:o,d=void 0;(!s||o>=0)&&(d=r);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;(0,pn.qM)(t,(0,pn.lx)(i),{labelFetcher:d,labelDataIndex:h,defaultText:n},p);var f=t.getTextContent();if(f&&(wu(f).ignore=f.ignore,t.textConfig&&a)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function Du(e,t,n,i,r,o){e.data?e.data.setItemGraphicEl(o,t):(0,R.z)(t).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function Lu(e,t,n,i,r){e.data||En.setTooltipConfig({el:t,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function ku(e,t,n,i,r){t.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return(0,gn.Lm)(t,a,o.get("blurScope"),o.get("disabled")),e.isGeo&&(0,gn.ml)(t,r,n),a}function Ou(e,t,n){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=t({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(e,t){isFinite(e)&&isFinite(t)&&i.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),f.each(e,(function(e){s.lineStart();for(var t=0;t<e.length;t++)s.point(e[t][0],e[t][1]);s.lineEnd()})),!n&&s.polygonEnd(),r}const Pu=Iu;var Nu=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.render=function(e,t,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===e.id){o=this._mapDraw;o&&r.add(o.group)}else if(e.needsDrawMap){var o=this._mapDraw||new Pu(n);r.add(o.group),o.draw(e,t,n,this,i),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var i=e.originalData,r=this.group;i.each(i.mapDimension("value"),(function(t,n){if(!isNaN(t)){var o=i.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new Fn.A({style:{fill:e.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:gn.CA+1)});if(!s){var u=e.mainSeries.getData(),c=i.getName(n),h=u.indexOfName(c),d=i.getItemModel(n),p=d.getModel("label"),f=u.getItemGraphicEl(h);(0,pn.qM)(l,(0,pn.lx)(d),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(h,n)}},defaultText:c}),l.disableLabelAnimation=!0,p.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(e){(0,gn.Pk)(l,e)}}r.add(l)}}}))},t.type="map",t}(h.A);const Ru=Nu;var Eu=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,i=n.getRegion(t);return i&&n.dataToPoint(i.getCenter())}},n}return(0,Oe.C6)(t,e),t.prototype.getInitialData=function(e){for(var t=ka(this,{coordDimensions:["value"],encodeDefaulter:f.curry(he.ln,this)}),n=f.createHashMap(),i=[],r=0,o=t.count();r<o;r++){var a=t.getName(r);n.set(a,r)}var s=yu.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return f.each(s.regions,(function(e){var r,o=e.name,a=n.get(o),s=e.properties&&e.properties.echartsStyle;null==a?(r={name:o},i.push(r)):r=t.getRawDataItem(a),s&&f.merge(r,s)})),t.appendData(i),t},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return null!=e?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){for(var i=this.getData(),r=this.getRawValue(e),o=i.getName(e),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(o),c=i.mapDimension("value");isNaN(a[l].originalData.get(c,u))||s.push(a[l].name)}return(0,ml.Qx)("section",{header:s.join(", "),noHeader:!s.length,blocks:[(0,ml.Qx)("nameValue",{name:o,value:r})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var t=e.icon||"roundRect",n=(0,fn.v5)(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(p.A);const Vu=Eu;function zu(e,t){var n={};return f.each(e,(function(e){e.each(e.mapDimension("value"),(function(t,i){var r="ec-"+e.getName(i);n[r]=n[r]||[],isNaN(t)||n[r].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(i,r){for(var o,a="ec-"+e[0].getName(r),s=0,l=1/0,u=-1/0,c=n[a].length,h=0;h<c;h++)l=Math.min(l,n[a][h]),u=Math.max(u,n[a][h]),s+=n[a][h];return o="min"===t?l:"max"===t?u:"average"===t?s/c:s,0===c?NaN:o}))}function Bu(e){var t={};e.eachSeriesByType("map",(function(e){var n=e.getHostGeoModel(),i=n?"o"+n.id:"i"+e.getMapType();(t[i]=t[i]||[]).push(e)})),f.each(t,(function(e,t){for(var n=zu(f.map(e,(function(e){return e.getData()})),e[0].get("mapValueCalculation")),i=0;i<e.length;i++)e[i].originalData=e[i].getData();for(i=0;i<e.length;i++)e[i].seriesGroup=e,e[i].needsDrawMap=0===i&&!e[i].getHostGeoModel(),e[i].setData(n.cloneShallow()),e[i].mainSeries=e[0]}))}function Gu(e){var t={};e.eachSeriesByType("map",(function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!t[i]){var r={};f.each(n.seriesGroup,(function(t){var n=t.coordinateSystem,i=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&i.each(i.mapDimension("value"),(function(e,t){var o=i.getName(t),a=n.getRegion(o);if(a&&!isNaN(e)){var s=r[o]||0,l=n.dataToPoint(a.getCenter());r[o]=s+1,i.setItemLayout(t,{point:l,offset:s})}}))}));var o=n.getData();o.each((function(e){var t=o.getName(e),n=o.getItemLayout(e)||{};n.showLabel=!r[t],o.setItemLayout(e,n)})),t[i]=!0}}))}var Fu=le.applyTransform,Hu=function(e){function t(t){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new ki.Ay,n._rawTransformable=new ki.Ay,n.name=t,n}return(0,Oe.C6)(t,e),t.prototype.setBoundingRect=function(e,t,n,i){return this._rect=new _t.A(e,t,n,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,i){this._transformTo(e,t,n,i),this._viewRect=new _t.A(e,t,n,i)},t.prototype._transformTo=function(e,t,n,i){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new _t.A(e,t,n,i));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},t.prototype.setCenter=function(e,t){e&&(this._center=[(0,Ge.lo)(e[0],t.getWidth()),(0,Ge.lo)(e[1],t.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),t=e.x+e.width/2,n=e.y+e.height/2;return[t,n]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),r=this.getZoom();i=le.applyTransform([],i,e),n=le.applyTransform([],n,e),t.originX=i[0],t.originY=i[1],t.x=n[0]-i[0],t.y=n[1]-i[1],t.scaleX=t.scaleY=r,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),se.copy(this.transform||(this.transform=[]),t.transform||se.create()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],se.invert(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new ki.Ay;return n.transform=t.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,t,n){var i=t?this._rawTransform:this.transform;return n=n||[],i?Fu(n,e,i):le.copy(n,e)},t.prototype.pointToData=function(e){var t=this.invTransform;return t?Fu([],e,t):[e[0],e[1]]},t.prototype.convertToPixel=function(e,t,n){var i=Wu(t);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var i=Wu(t);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(ki.Ay);function Wu(e){var t=e.seriesModel;return t?t.coordinateSystem:null}const Uu=Hu;var Yu={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Xu=["lng","lat"],Zu=function(e){function t(t,n,i){var r=e.call(this,t)||this;r.dimensions=Xu,r.type="geo",r._nameCoordMap=f.createHashMap(),r.map=n;var o,a=i.projection,s=yu.load(n,i.nameMap,i.nameProperty),l=yu.getGeoResource(n),u=(r.resourceType=l?l.type:null,r.regions=s.regions),c=Yu[l.type];if(r._regionsMap=s.regionsMap,r.regions=s.regions,r.projection=a,a)for(var h=0;h<u.length;h++){var d=u[h].getBoundingRect(a);o=o||d.clone(),o.union(d)}else o=s.boundingRect;return r.setBoundingRect(o.x,o.y,o.width,o.height),r.aspectScale=a?1:f.retrieve2(i.aspectScale,c.aspectScale),r._invertLongitute=!a&&c.invertLongitute,r}return(0,Oe.C6)(t,e),t.prototype._transformTo=function(e,t,n,i){var r=this.getBoundingRect(),o=this._invertLongitute;r=r.clone(),o&&(r.y=-r.y-r.height);var a=this._rawTransformable;a.transform=r.calculateTransform(new _t.A(e,t,n,i));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var i=t[n];if("geoJSON"===i.type&&i.contain(e))return t[n]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if(f.isString(e)&&(e=this.getGeoCoord(e)),e){var i=this.projection;return i&&(e=i.project(e)),e&&this.projectedToPoint(e,t,n)}},t.prototype.pointToData=function(e){var t=this.projection;return t&&(e=t.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(t){return e.prototype.pointToData.call(this,t)},t.prototype.projectedToPoint=function(t,n,i){return e.prototype.dataToPoint.call(this,t,n,i)},t.prototype.convertToPixel=function(e,t,n){var i=ju(t);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var i=ju(t);return i===this?i.pointToData(n):null},t}(Uu);function ju(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",N.US).models[0]||{}).coordinateSystem:null}f.mixin(Zu,Uu);const qu=Zu;function $u(e,t){var n=e.get("boundingCoords");if(null!=n){var i=n[0],r=n[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(r[0])&&isFinite(r[1])){var o=this.projection;if(o){var a=i[0],s=i[1],l=r[0],u=r[1];i=[1/0,1/0],r=[-1/0,-1/0];var c=function(e,t,n,a){for(var s=n-e,l=a-t,u=0;u<=100;u++){var c=u/100,h=o.project([e+s*c,t+l*c]);le.min(i,i,h),le.max(r,r,h)}};c(a,s,l,s),c(l,s,l,u),c(l,u,a,u),c(a,u,l,s)}this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}else 0}var h,d,p,f=this.getBoundingRect(),g=e.get("layoutCenter"),y=e.get("layoutSize"),m=t.getWidth(),v=t.getHeight(),x=f.width/f.height*this.aspectScale,_=!1;if(g&&y&&(h=[Ge.lo(g[0],m),Ge.lo(g[1],v)],d=Ge.lo(y,Math.min(m,v)),isNaN(h[0])||isNaN(h[1])||isNaN(d)||(_=!0)),_)p={},x>1?(p.width=d,p.height=d/x):(p.height=d,p.width=d*x),p.y=h[1]-p.height/2,p.x=h[0]-p.width/2;else{var b=e.getBoxLayoutParams();b.aspect=x,p=dn.dV(b,{width:m,height:v})}this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function Ku(e,t){f.each(t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}var Ju=function(){function e(){this.dimensions=Xu}return e.prototype.create=function(e,t){var n=[];function i(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",(function(e,r){var o=e.get("map"),a=new qu(o+r,o,f.extend({nameMap:e.get("nameMap")},i(e)));a.zoomLimit=e.get("scaleLimit"),n.push(a),e.coordinateSystem=a,a.model=e,a.resize=$u,a.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var i=e.get("geoIndex")||0;e.coordinateSystem=n[i]}}));var r={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();r[t]=r[t]||[],r[t].push(e)}})),f.each(r,(function(e,r){var o=f.map(e,(function(e){return e.get("nameMap")})),a=new qu(r,r,f.extend({nameMap:f.mergeAll(o)},i(e[0])));a.zoomLimit=f.retrieve.apply(null,f.map(e,(function(e){return e.get("scaleLimit")}))),n.push(a),a.resize=$u,a.resize(e[0],t),f.each(e,(function(e){e.coordinateSystem=a,Ku(a,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,i){for(var r=(e||[]).slice(),o=f.createHashMap(),a=0;a<r.length;a++)o.set(r[a].name,r[a]);var s=yu.load(t,n,i);return f.each(s.regions,(function(e){var t=e.name,n=o.get(t),i=e.properties&&e.properties.echartsStyle;n||(n={name:t},r.push(n)),i&&f.merge(n,i)})),r},e}(),Qu=new Ju;const ec=Qu;var tc=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.init=function(e,t,n){var i=yu.getGeoResource(e.map);if(i&&"geoJSON"===i.type){var r=e.itemStyle=e.itemStyle||{};"color"in r||(r.color="#eee")}this.mergeDefaultAndTheme(e,n),N.M5(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=ec.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=f.reduce(t.regions||[],(function(t,i){var r=i.name;return r&&(t.set(r,new _.A(i,e,e.ecModel)),i.selected&&(n[r]=!0)),t}),f.createHashMap()),t.selectedMap||(t.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new _.A(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),i="normal"===t?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),r={name:e};return f.isFunction(i)?(r.status=t,i(r)):f.isString(i)?i.replace("{a}",null!=e?e:""):void 0},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var t=this.option,n=t.selectedMode;if(n){"multiple"!==n&&(t.selectedMap=null);var i=t.selectedMap||(t.selectedMap={});i[e]=!0}},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!(!t||!t[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(d.A);const nc=tc;function ic(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function rc(e,t,n,i){var r=e.getZoom(),o=e.getCenter(),a=t.zoom,s=e.projectedToPoint?e.projectedToPoint(o):e.dataToPoint(o);if(null!=t.dx&&null!=t.dy&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(ic(e,s),i)),null!=a){if(n){var l=n.min||0,u=n.max||1/0;a=Math.max(Math.min(r*a,u),l)/r}e.scaleX*=a,e.scaleY*=a;var c=(t.originX-e.x)*(a-1),h=(t.originY-e.y)*(a-1);e.x-=c,e.y-=h,e.updateTransform(),e.setCenter(ic(e,s),i),e.setZoom(a*r)}return{center:e.getCenter(),zoom:e.getZoom()}}var oc=n(2628),ac=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return(0,Oe.C6)(t,e),t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,i){if(this._model=e,!e.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new Pu(n));var r=this._mapDraw;r.draw(e,t,n,this,i),r.group.on("click",this._handleRegionClick,this),r.group.silent=e.get("silent"),this.group.add(r.group),this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t;(0,oc.R)(e.target,(function(e){return null!=(t=(0,R.z)(e).eventData)}),!0),t&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var i=this;this._mapDraw.group.traverse((function(e){var t=(0,R.z)(e).eventData;if(t)return i._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0}))},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(c.A);const sc=ac;function lc(e,t,n){yu.registerMap(e,t,n)}function uc(e){function t(t,n){n.update="geo:updateSelectStatus",e.registerAction(n,(function(e,n){var i={},r=[];return n.eachComponent({mainType:"geo",query:e},(function(n){n[t](e.name);var o=n.coordinateSystem;(0,f.each)(o.regions,(function(e){i[e.name]=n.isSelected(e.name)||!1}));var a=[];(0,f.each)(i,(function(e,t){i[t]&&a.push(t)})),r.push({geoIndex:n.componentIndex,name:a})})),{selected:i,allSelected:r,name:e.name}}))}e.registerCoordinateSystem("geo",ec),e.registerComponentModel(nc),e.registerComponentView(sc),e.registerImpl("registerMap",lc),e.registerImpl("getMap",(function(e){return yu.getMapForUser(e)})),t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(e,t,n){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},(function(t){var r=t.coordinateSystem;if("geo"===r.type){var o=rc(r,e,t.get("scaleLimit"),n);t.setCenter&&t.setCenter(o.center),t.setZoom&&t.setZoom(o.zoom),"series"===i&&(0,f.each)(t.seriesGroup,(function(e){e.setCenter(o.center),e.setZoom(o.zoom)}))}}))}))}function cc(e){x(uc),e.registerChartView(Ru),e.registerSeriesModel(Vu),e.registerLayout(Gu),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Bu),(0,fa.I)("map",e.registerAction)}function hc(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var n,i,r=[t];while(n=r.pop())if(i=n.children,n.isExpand&&i.length)for(var o=i.length,a=o-1;a>=0;a--){var s=i[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},r.push(s)}}function dc(e,t){var n=e.isExpand?e.children:[],i=e.parentNode.children,r=e.hierNode.i?i[e.hierNode.i-1]:null;if(n.length){mc(e);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(e.hierNode.prelim=r.hierNode.prelim+t(e,r),e.hierNode.modifier=e.hierNode.prelim-o):e.hierNode.prelim=o}else r&&(e.hierNode.prelim=r.hierNode.prelim+t(e,r));e.parentNode.hierNode.defaultAncestor=vc(e,r,e.parentNode.hierNode.defaultAncestor||i[0],t)}function pc(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function fc(e){return arguments.length?e:wc}function gc(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function yc(e,t){return dn.dV(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function mc(e){var t=e.children,n=t.length,i=0,r=0;while(--n>=0){var o=t[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}function vc(e,t,n,i){if(t){var r=e,o=e,a=o.parentNode.children[0],s=t,l=r.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,h=s.hierNode.modifier;while(s=xc(s),o=_c(o),s&&o){r=xc(r),a=_c(a),r.hierNode.ancestor=e;var d=s.hierNode.prelim+h-o.hierNode.prelim-u+i(s,o);d>0&&(Sc(bc(s,e,n),e,d),u+=d,l+=d),h+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,c+=a.hierNode.modifier}s&&!xc(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=h-l),o&&!_c(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=e)}return n}function xc(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function _c(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function bc(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function Sc(e,t,n){var i=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=i,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=i}function wc(e,t){return e.parentNode===t.parentNode?1:2}var Mc=n(8516),Ac=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),Ic=function(e){function t(t){return e.call(this,t)||this}return(0,Oe.C6)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Ac},t.prototype.buildPath=function(e,t){var n=t.childPoints,i=n.length,r=t.parentPoint,o=n[0],a=n[i-1];if(1===i)return e.moveTo(r[0],r[1]),void e.lineTo(o[0],o[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=(0,Ge.lo)(t.forkPosition,1),h=[];h[l]=r[l],h[u]=r[u]+(a[u]-r[u])*c,e.moveTo(r[0],r[1]),e.lineTo(h[0],h[1]),e.moveTo(o[0],o[1]),h[l]=o[l],e.lineTo(h[0],h[1]),h[l]=a[l],e.lineTo(h[0],h[1]),e.lineTo(a[0],a[1]);for(var d=1;d<i-1;d++){var p=n[d];e.moveTo(p[0],p[1]),h[l]=p[l],e.lineTo(h[0],h[1])}},t}(Pi.Ay),Cc=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new zn.A,n}return(0,Oe.C6)(t,e),t.prototype.init=function(e,t){this._controller=new Ul(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var i=e.getData(),r=e.layoutInfo,o=this._mainGroup,a=e.get("layout");"radial"===a?(o.x=r.x+r.width/2,o.y=r.y+r.height/2):(o.x=r.x,o.y=r.y),this._updateViewCoordSys(e,n),this._updateController(e,t,n);var s=this._data;i.diff(s).add((function(t){Tc(i,t)&&Dc(i,t,null,o,e)})).update((function(t,n){var r=s.getItemGraphicEl(n);Tc(i,t)?Dc(i,t,r,o,e):r&&Pc(s,n,r,o,e)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&Pc(s,t,n,o,e)})).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===e.get("expandAndCollapse")&&i.eachItemGraphicEl((function(t,i){t.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:i})}))})),this._data=i},t.prototype._updateViewCoordSys=function(e,t){var n=e.getData(),i=[];n.each((function(e){var t=n.getItemLayout(e);!t||isNaN(t.x)||isNaN(t.y)||i.push([+t.x,+t.y])}));var r=[],o=[];Mc.Cr(i,r,o);var a=this._min,s=this._max;o[0]-r[0]===0&&(r[0]=a?a[0]:r[0]-1,o[0]=s?s[0]:o[0]+1),o[1]-r[1]===0&&(r[1]=a?a[1]:r[1]-1,o[1]=s?s[1]:o[1]+1);var l=e.coordinateSystem=new Uu;l.zoomLimit=e.get("scaleLimit"),l.setBoundingRect(r[0],r[1],o[0]-r[0],o[1]-r[1]),l.setCenter(e.get("center"),t),l.setZoom(e.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=r,this._max=o},t.prototype._updateController=function(e,t,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(t,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!jl(t,n,e)})),r.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(t){Yl(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){Xl(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(e),n.updateLabelLayout()}))},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=this._getNodeGlobalScale(e);t.eachItemGraphicEl((function(e,t){e.setSymbolScale(n)}))},t.prototype._getNodeGlobalScale=function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,i=t.scaleX||1,r=t.getZoom(),o=(r-1)*n+1;return o/i},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(h.A);function Tc(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function Dc(e,t,n,i,r){var o=!n,a=e.tree.getNodeByDataIndex(t),s=a.getModel(),l=a.getVisual("style").fill,u=!1===a.isExpand&&0!==a.children.length?l:"#fff",c=e.tree.root,h=a.parentNode===c?a:a.parentNode||a,d=e.getItemGraphicEl(h.dataIndex),p=h.getLayout(),g=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:p,y=a.getLayout();o?(n=new Rr(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.x=g.x,n.y=g.y):n.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=y.rawX,n.__radialRawY=y.rawY,i.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,Vn.oi(n,{x:y.x,y:y.y},r);var m=n.getSymbolPath();if("radial"===r.get("layout")){var v=c.children[0],x=v.getLayout(),_=v.children.length,b=void 0,S=void 0;if(y.x===x.x&&!0===a.isExpand&&v.children.length){var w={x:(v.children[0].getLayout().x+v.children[_-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[_-1].getLayout().y)/2};b=Math.atan2(w.y-x.y,w.x-x.x),b<0&&(b=2*Math.PI+b),S=w.x<x.x,S&&(b-=Math.PI)}else b=Math.atan2(y.y-x.y,y.x-x.x),b<0&&(b=2*Math.PI+b),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(S=y.x<x.x,S&&(b-=Math.PI)):(S=y.x>x.x,S||(b-=Math.PI));var M=S?"left":"right",A=s.getModel("label"),I=A.get("rotate"),C=I*(Math.PI/180),T=m.getTextContent();T&&(m.setTextConfig({position:A.get("position")||M,rotation:null==I?-b:C,origin:"center"}),T.setStyle("verticalAlign","middle"))}var D=s.get(["emphasis","focus"]),L="relative"===D?f.concatArray(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===D?a.getAncestorsIndices():"descendant"===D?a.getDescendantIndices():null;L&&((0,R.z)(n).focus=L),Lc(r,a,c,n,g,p,y,i),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var i=a.parentNode&&e.getItemGraphicEl(a.parentNode.dataIndex);i&&i.hoverState===gn.zX||(0,gn.Pk)(n.__edge,t)}})}function Lc(e,t,n,i,r,o,a,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),h=e.getOrient(),d=e.get(["lineStyle","curveness"]),p=e.get("edgeForkPosition"),g=l.getModel("lineStyle").getLineStyle(),y=i.__edge;if("curve"===u)t.parentNode&&t.parentNode!==n&&(y||(y=i.__edge=new qn.A({shape:Nc(c,h,d,r,r)})),Vn.oi(y,{shape:Nc(c,h,d,o,a)},e));else if("polyline"===u)if("orthogonal"===c){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var m=t.children,v=[],x=0;x<m.length;x++){var _=m[x].getLayout();v.push([_.x,_.y])}y||(y=i.__edge=new Ic({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:h,forkPosition:p}})),Vn.oi(y,{shape:{parentPoint:[a.x,a.y],childPoints:v}},e)}}else 0;y&&("polyline"!==u||t.isExpand)&&(y.useStyle(f.defaults({strokeNoScale:!0,fill:null},g)),(0,gn.Mx)(y,l,"lineStyle"),(0,gn.DW)(y),s.add(y))}function kc(e,t,n,i,r){var o=t.tree.root,a=Oc(o,e),s=a.source,l=a.sourceLayout,u=t.getItemGraphicEl(e.dataIndex);if(u){var c=t.getItemGraphicEl(s.dataIndex),h=c.__edge,d=u.__edge||(!1===s.isExpand||1===s.children.length?h:void 0),p=i.get("edgeShape"),f=i.get("layout"),g=i.get("orient"),y=i.get(["lineStyle","curveness"]);d&&("curve"===p?Vn.Nz(d,{shape:Nc(f,g,y,l,l),style:{opacity:0}},i,{cb:function(){n.remove(d)},removeOpt:r}):"polyline"===p&&"orthogonal"===i.get("layout")&&Vn.Nz(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},i,{cb:function(){n.remove(d)},removeOpt:r}))}}function Oc(e,t){var n,i=t.parentNode===e?t:t.parentNode||t;while(n=i.getLayout(),null==n)i=i.parentNode===e?i:i.parentNode||i;return{source:i,sourceLayout:n}}function Pc(e,t,n,i,r){var o=e.tree.getNodeByDataIndex(t),a=e.tree.root,s=Oc(a,o).sourceLayout,l={duration:r.get("animationDurationUpdate"),easing:r.get("animationEasingUpdate")};Vn.Nz(n,{x:s.x+1,y:s.y+1},r,{cb:function(){i.remove(n),e.setItemGraphicEl(t,null)},removeOpt:l}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),o.children.forEach((function(t){kc(t,e,i,r,l)})),kc(o,e,i,r,l)}function Nc(e,t,n,i,r){var o,a,s,l,u,c,h,d;if("radial"===e){u=i.rawX,h=i.rawY,c=r.rawX,d=r.rawY;var p=gc(u,h),f=gc(u,h+(d-h)*n),g=gc(c,d+(h-d)*n),y=gc(c,d);return{x1:p.x||0,y1:p.y||0,x2:y.x||0,y2:y.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}}return u=i.x,h=i.y,c=r.x,d=r.y,"LR"!==t&&"RL"!==t||(o=u+(c-u)*n,a=h,s=c+(u-c)*n,l=d),"TB"!==t&&"BT"!==t||(o=u,a=h+(d-h)*n,s=c,l=d+(h-d)*n),{x1:u,y1:h,x2:c,y2:d,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}const Rc=Cc;var Ec=(0,N.$r)();function Vc(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,Uc(t,n,e),(0,f.each)(n,(function(n){(0,f.each)(t.TRANSFERABLE_METHODS,(function(t){n.wrapMethod(t,(0,f.curry)(zc,e))}))})),t.wrapMethod("cloneShallow",(0,f.curry)(Gc,e)),(0,f.each)(t.CHANGABLE_METHODS,(function(n){t.wrapMethod(n,(0,f.curry)(Bc,e))})),(0,f.assert)(n[t.dataType]===t)}function zc(e,t){if(Wc(this)){var n=(0,f.extend)({},Ec(this).datas);n[this.dataType]=t,Uc(t,n,e)}else Yc(t,this.dataType,Ec(this).mainData,e);return t}function Bc(e,t){return e.struct&&e.struct.update(),t}function Gc(e,t){return(0,f.each)(Ec(t).datas,(function(n,i){n!==t&&Yc(n.cloneShallow(),i,t,e)})),t}function Fc(e){var t=Ec(this).mainData;return null==e||null==t?t:Ec(t).datas[e]}function Hc(){var e=Ec(this).mainData;return null==e?[{data:e}]:(0,f.map)((0,f.keys)(Ec(e).datas),(function(t){return{type:t,data:Ec(e).datas[t]}}))}function Wc(e){return Ec(e).mainData===e}function Uc(e,t,n){Ec(e).datas={},(0,f.each)(t,(function(t,i){Yc(t,i,e,n)}))}function Yc(e,t,n,i){Ec(n).datas[t]=e,Ec(e).mainData=n,e.dataType=t,i.struct&&(e[i.structAttr]=i.struct,i.struct[i.datasAttr[t]]=e),e.getLinkedData=Fc,e.getLinkedDataAll=Hc}const Xc=Vc;var Zc=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){f.isFunction(e)&&(n=t,t=e,e=null),e=e||{},f.isString(e)&&(e={order:e});var i,r=e.order||"preorder",o=this[e.attr||"children"];"preorder"===r&&(i=t.call(n,this));for(var a=0;!i&&a<o.length;a++)o[a].eachNode(e,t,n);"postorder"===r&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(e+1),i.height>t&&(t=i.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,i=n.length;t<i;t++){var r=n[t].getNodeById(e);if(r)return r}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,i=n.length;t<i;t++){var r=n[t].contains(e);if(r)return r}},e.prototype.getAncestors=function(e){var t=[],n=e?this:this.parentNode;while(n)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){var e=[],t=this;while(t)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode((function(t){e.push(t.dataIndex)})),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},e.prototype.isAncestorOf=function(e){var t=e.parentNode;while(t){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}(),jc=function(){function e(e){this.type="tree",this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,i=t.length;n<i;n++)t[n].dataIndex=-1;for(n=0,i=e.count();n<i;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,i){var r=new e(n),o=[],a=1;function s(e,t){var n=e.value;a=Math.max(a,f.isArray(n)?n.length:1),o.push(e);var i=new Zc((0,N.vS)(e.name,""),r);t?qc(i,t):r.root=i,r._nodes.push(i);var l=e.children;if(l)for(var u=0;u<l.length;u++)s(l[u],i)}s(t),r.root.updateDepthAndHeight(0);var l=pe(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,u=new ae(l,n);return u.initData(o),i&&i(u),Xc({mainData:u,struct:r,structAttr:"tree"}),r.update(),r},e}();function qc(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}const $c=jc;function Kc(e,t,n){if(e&&f.indexOf(t,e.type)>=0){var i=n.getData().tree.root,r=e.targetNode;if(f.isString(r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=e.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function Jc(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function Qc(e,t){var n=Jc(e);return f.indexOf(n,t)>=0}function eh(e,t){var n=[];while(e){var i=e.dataIndex;n.push({name:e.name,dataIndex:i,value:t.getRawValue(i)}),e=e.parentNode}return n.reverse(),n}var th=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return(0,Oe.C6)(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},i=new _.A(n,this,this.ecModel),r=$c.createTree(t,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=r.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=i),e}))}var a=0;r.eachNode("preorder",(function(e){e.depth>a&&(a=e.depth)}));var s=e.expandAndCollapse,l=s&&e.initialTreeDepth>=0?e.initialTreeDepth:a;return r.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=l})),r.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(e),a=o.getValue(),s=o.name;while(o&&o!==r)s=o.parentNode.name+"."+s,o=o.parentNode;return(0,ml.Qx)("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=eh(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(p.A);const nh=th;function ih(e,t,n){var i,r=[e],o=[];while(i=r.pop())if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s<a.length;s++)r.push(a[s])}while(i=o.pop())t(i,n)}function rh(e,t){var n,i=[e];while(n=i.pop())if(t(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function oh(e,t){e.eachSeriesByType("tree",(function(e){ah(e,t)}))}function ah(e,t){var n=yc(e,t);e.layoutInfo=n;var i=e.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=fc((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(r=n.width,o=n.height,a=fc());var s=e.getData().tree.root,l=s.children[0];if(l){hc(s),ih(l,dc,a),s.hierNode.modifier=-l.hierNode.prelim,rh(l,pc);var u=l,c=l,h=l;rh(l,(function(e){var t=e.getLayout().x;t<u.getLayout().x&&(u=e),t>c.getLayout().x&&(c=e),e.depth>h.depth&&(h=e)}));var d=u===c?1:a(u,c)/2,p=d-u.getLayout().x,f=0,g=0,y=0,m=0;if("radial"===i)f=r/(c.getLayout().x+d+p),g=o/(h.depth-1||1),rh(l,(function(e){y=(e.getLayout().x+p)*f,m=(e.depth-1)*g;var t=gc(y,m);e.setLayout({x:t.x,y:t.y,rawX:y,rawY:m},!0)}));else{var v=e.getOrient();"RL"===v||"LR"===v?(g=o/(c.getLayout().x+d+p),f=r/(h.depth-1||1),rh(l,(function(e){m=(e.getLayout().x+p)*g,y="LR"===v?(e.depth-1)*f:r-(e.depth-1)*f,e.setLayout({x:y,y:m},!0)}))):"TB"!==v&&"BT"!==v||(f=r/(c.getLayout().x+d+p),g=o/(h.depth-1||1),rh(l,(function(e){y=(e.getLayout().x+p)*f,m="TB"===v?(e.depth-1)*g:o-(e.depth-1)*g,e.setLayout({x:y,y:m},!0)})))}}}function sh(e){e.eachSeriesByType("tree",(function(e){var t=e.getData(),n=t.tree;n.eachNode((function(e){var n=e.getModel(),i=n.getModel("itemStyle").getItemStyle(),r=t.ensureUniqueItemVisual(e.dataIndex,"style");(0,f.extend)(r,i)}))}))}function lh(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,i=t.getData().tree,r=i.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var i=t.coordinateSystem,r=rc(i,e,void 0,n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))}function uh(e){e.registerChartView(Rc),e.registerSeriesModel(nh),e.registerLayout(oh),e.registerVisual(sh),lh(e)}var ch=["treemapZoomToNode","treemapRender","treemapMove"];function hh(e){for(var t=0;t<ch.length;t++)e.registerAction({type:ch[t],update:"updateView"},f.noop);e.registerAction({type:"treemapRootToNode",update:"updateView"},(function(e,t){function n(t,n){var i=["treemapZoomToNode","treemapRootToNode"],r=Kc(e,i,t);if(r){var o=t.getViewRoot();o&&(e.direction=Qc(o,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}}t.eachComponent({mainType:"series",subType:"treemap",query:e},n)}))}var dh=n(3480);function ph(e){var t=e.getData(),n=t.tree,i={};n.eachNode((function(t){var n=t;while(n&&n.depth>1)n=n.parentNode;var r=(0,dh.x)(e.ecModel,n.name||n.dataIndex+"",i);t.setVisual("decal",r)}))}var fh=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return(0,Oe.C6)(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};gh(n);var i=e.levels||[],r=this.designatedVisualItemStyle={},o=new _.A({itemStyle:r},this,t);i=e.levels=yh(i,t);var a=f.map(i||[],(function(e){return new _.A(e,o,t)}),this),s=$c.createTree(n,this,l);function l(e){e.wrapMethod("getItemModel",(function(e,t){var n=s.getNodeByDataIndex(t),i=n?a[n.depth]:null;return e.parentModel=i||o,e}))}return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.getRawValue(e),o=i.getName(e);return(0,ml.Qx)("nameValue",{name:o,value:r})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=eh(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},f.extend(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=f.createHashMap(),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){ph(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(p.A);function gh(e){var t=0;f.each(e.children,(function(e){gh(e);var n=e.value;f.isArray(n)&&(n=n[0]),t+=n}));var n=e.value;f.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),f.isArray(e.value)?e.value[0]=n:e.value=n}function yh(e,t){var n=(0,N.qB)(t.get("color")),i=(0,N.qB)(t.get(["aria","decal","decals"]));if(n){var r,o;e=e||[],f.each(e,(function(e){var t=new _.A(e),n=t.get("color"),i=t.get("decal");(t.get(["itemStyle","color"])||n&&"none"!==n)&&(r=!0),(t.get(["itemStyle","decal"])||i&&"none"!==i)&&(o=!0)}));var a=e[0]||(e[0]={});return r||(a.color=n.slice()),!o&&i&&(a.decal=i.slice()),e}}const mh=fh;var vh=8,xh=8,_h=5,bh=function(){function e(e){this.group=new zn.A,e.add(this.group)}return e.prototype.render=function(e,t,n,i){var r=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=r.getModel("emphasis"),l=a.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),c={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,l),this._renderContent(e,c,a,s,l,u,i),dn.m$(o,c.pos,c.box)}},e.prototype._prepare=function(e,t,n){for(var i=e;i;i=i.parentNode){var r=(0,N.vS)(i.getModel().get("name"),""),o=n.getTextRect(r),a=Math.max(o.width+2*vh,t.emptyItemWidth);t.totalWidth+=a+xh,t.renderList.push({node:i,text:r,width:a})}},e.prototype._renderContent=function(e,t,n,i,r,o,a){for(var s=0,l=t.emptyItemWidth,u=e.get(["breadcrumb","height"]),c=dn.HU(t.pos,t.box),h=t.totalWidth,d=t.renderList,p=i.getModel("itemStyle").getItemStyle(),g=d.length-1;g>=0;g--){var y=d[g],m=y.node,v=y.width,x=y.text;h>c.width&&(h-=v-l,v=l,x=null);var _=new Yn.A({shape:{points:Sh(s,0,v,u,g===d.length-1,0===g)},style:(0,f.defaults)(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Gn.Ay({style:(0,pn.VB)(r,{text:x})}),textConfig:{position:"inside"},z2:1e4*gn.CA,onclick:(0,f.curry)(a,m)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=(0,pn.VB)(o,{text:x}),_.ensureState("emphasis").style=p,(0,gn.Lm)(_,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(_),wh(_,e,m),s+=v+xh}},e.prototype.remove=function(){this.group.removeAll()},e}();function Sh(e,t,n,i,r,o){var a=[[r?e:e-_h,t],[e+n,t],[e+n,t+i],[r?e:e-_h,t+i]];return!o&&a.splice(2,0,[e+n+_h,t+i/2]),!r&&a.push([e,t+i/2]),a}function wh(e,t,n){(0,R.z)(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&eh(n,t)}}const Mh=bh;var Ah=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,i,r){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:i,easing:r}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,r=this._storage.length;i<r;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function Ih(){return new Ah}var Ch=n(3029),Th=zn.A,Dh=Zn.A,Lh=3,kh="label",Oh="upperLabel",Ph=10*gn.CA,Nh=2*gn.CA,Rh=3*gn.CA,Eh=(0,Ch.A)([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Vh=function(e){var t=Eh(e);return t.stroke=t.fill=t.lineWidth=null,t},zh=(0,N.$r)(),Bh=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage=Gh(),n}return(0,Oe.C6)(t,e),t.prototype.render=function(e,t,n,i){var r=t.findComponents({mainType:"series",subType:"treemap",query:i});if(!((0,f.indexOf)(r,e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var o=["treemapZoomToNode","treemapRootToNode"],a=Kc(i,o,e),s=i&&i.type,l=e.layoutInfo,u=!this._oldTree,c=this._storage,h="treemapRootToNode"===s&&a&&c?{rootNodeGroup:c.nodeGroup[a.node.getRawIndex()],direction:i.direction}:null,d=this._giveContainerGroup(l),p=e.get("animation"),g=this._doRender(d,e,h);!p||u||s&&"treemapZoomToNode"!==s&&"treemapRootToNode"!==s?g.renderFinally():this._doAnimation(d,g,e,h),this._resetController(n),this._renderBreadcrumb(e,n,a)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new Th,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var i=t.getData().tree,r=this._oldTree,o=Gh(),a=Gh(),s=this._storage,l=[];function u(e,i,r,u){return Fh(t,a,s,n,o,l,e,i,r,u)}p(i.root?[i.root]:[],r&&r.root?[r.root]:[],e,i===r||!r,0);var c=g(s);if(this._oldTree=i,this._storage=a,this._controllerHost){var h=this.seriesModel.layoutInfo,d=i.root.getLayout();d.width===h.width&&d.height===h.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:o,willDeleteEls:c,renderFinally:y};function p(e,t,n,i,r){function o(e){return e.getId()}function a(o,a){var s=null!=o?e[o]:null,l=null!=a?t[a]:null,c=u(s,l,n,r);c&&p(s&&s.viewChildren||[],l&&l.viewChildren||[],c,i,r+1)}i?(t=e,(0,f.each)(e,(function(e,t){!e.isRemoved()&&a(t,t)}))):new M(t,e,o,o).add(a).update(a).remove((0,f.curry)(a,null)).execute()}function g(e){var t=Gh();return e&&(0,f.each)(e,(function(e,n){var i=t[n];(0,f.each)(e,(function(e){e&&(i.push(e),zh(e).willDelete=!0)}))})),t}function y(){(0,f.each)(c,(function(e){(0,f.each)(e,(function(e){e.parent&&e.parent.remove(e)}))})),(0,f.each)(l,(function(e){e.invisible=!0,e.dirty()}))}},t.prototype._doAnimation=function(e,t,n,i){var r=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=((0,f.isFunction)(r)?0:r)||0,s=((0,f.isFunction)(o)?null:o)||"cubicOut",l=Ih();(0,f.each)(t.willDeleteEls,(function(e,t){(0,f.each)(e,(function(e,n){if(!e.invisible){var r,o=e.parent,u=zh(o);if(i&&"drillDown"===i.direction)r=o===i.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,h=0;u.willDelete||(c=u.nodeWidth/2,h=u.nodeHeight/2),r="nodeGroup"===t?{x:c,y:h,style:{opacity:0}}:{shape:{x:c,y:h,width:0,height:0},style:{opacity:0}}}r&&l.add(e,r,a,0,s)}}))})),(0,f.each)(this._storage,(function(e,n){(0,f.each)(e,(function(e,i){var r=t.lastsForAnimation[n][i],o={};r&&(e instanceof zn.A?null!=r.oldX&&(o.x=e.x,o.y=e.y,e.x=r.oldX,e.y=r.oldY):(r.oldShape&&(o.shape=(0,f.extend)({},e.shape),e.setShape(r.oldShape)),r.fadein?(e.setStyle("opacity",0),o.style={opacity:1}):1!==e.style.opacity&&(o.style={opacity:1})),l.add(e,o,a,0,s))}))}),this),this._state="animating",l.finished((0,f.bind)((function(){this._state="ready",t.renderFinally()}),this)).start()},t.prototype._resetController=function(e){var t=this._controller,n=this._controllerHost;n||(this._controllerHost={target:this.group},n=this._controllerHost),t||(t=this._controller=new Ul(e.getZr()),t.enable(this.seriesModel.get("roam")),n.zoomLimit=this.seriesModel.get("scaleLimit"),n.zoom=this.seriesModel.get("zoom"),t.on("pan",(0,f.bind)(this._onPan,this)),t.on("zoom",(0,f.bind)(this._onZoom,this)));var i=new _t.A(0,0,e.getWidth(),e.getHeight());t.setPointerChecker((function(e,t,n){return i.contain(t,n)}))},t.prototype._clearController=function(){var e=this._controller;this._controllerHost=null,e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if("animating"!==this._state&&(Math.abs(e.dx)>Lh||Math.abs(e.dy)>Lh)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY,i=e.scale;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var o=r.getLayout();if(!o)return;var a=new _t.A(o.x,o.y,o.width,o.height),s=null,l=this._controllerHost;s=l.zoomLimit;var u=l.zoom=l.zoom||1;if(u*=i,s){var c=s.min||0,h=s.max||1/0;u=Math.max(Math.min(h,u),c)}var d=u/l.zoom;l.zoom=u;var p=this.seriesModel.layoutInfo;t-=p.x,n-=p.y;var f=se.create();se.translate(f,f,[-t,-n]),se.scale(f,f,[d,d]),se.translate(f,f,[t,n]),a.applyTransform(f),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x,y:a.y,width:a.width,height:a.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var i=t.findTarget(e.offsetX,e.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)t._rootToNode(i);else if("zoomToNode"===n)t._zoomToNode(i);else if("link"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&(0,Je.JW)(a,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var i=this;n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Mh(this.group))).render(e,t,n.node,(function(t){"animating"!==i._state&&(Qc(e.getViewRoot(),t)?i._rootToNode({node:t}):i._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Gh(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(e,t),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}}),this),n},t.type="treemap",t}(h.A);function Gh(){return{nodeGroup:[],background:[],content:[]}}function Fh(e,t,n,i,r,o,a,s,l,u){if(a){var c=a.getLayout(),h=e.getData(),d=a.getModel();if(h.setItemGraphicEl(a.dataIndex,null),c&&c.isInView){var p=c.width,g=c.height,y=c.borderWidth,m=c.invisible,v=a.getRawIndex(),x=s&&s.getRawIndex(),_=a.viewChildren,b=c.upperHeight,S=_&&_.length,w=d.getModel("itemStyle"),M=d.getModel(["emphasis","itemStyle"]),A=d.getModel(["blur","itemStyle"]),I=d.getModel(["select","itemStyle"]),C=w.get("borderRadius")||0,T=U("nodeGroup",Th);if(T){if(l.add(T),T.x=c.x||0,T.y=c.y||0,T.markRedraw(),zh(T).nodeWidth=p,zh(T).nodeHeight=g,c.isAboveViewRoot)return T;var D=U("background",Dh,u,Nh);D&&B(T,D,S&&c.upperLabelHeight);var L=d.getModel("emphasis"),k=L.get("focus"),O=L.get("blurScope"),P=L.get("disabled"),E="ancestor"===k?a.getAncestorsIndices():"descendant"===k?a.getDescendantIndices():k;if(S)(0,gn.u6)(T)&&(0,gn.ix)(T,!1),D&&((0,gn.ix)(D,!P),h.setItemGraphicEl(a.dataIndex,D),(0,gn.gR)(D,E,O));else{var V=U("content",Dh,u,Rh);V&&G(T,V),D.disableMorphing=!0,D&&(0,gn.u6)(D)&&(0,gn.ix)(D,!1),(0,gn.ix)(T,!P),h.setItemGraphicEl(a.dataIndex,T);var z=d.getShallow("cursor");z&&V.attr("cursor",z),(0,gn.gR)(T,E,O)}return T}}}function B(t,n,i){var r=(0,R.z)(n);if(r.dataIndex=a.dataIndex,r.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:g,r:C}),m)F(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=Vh(w);l.fill=s;var u=Eh(M);u.fill=M.get("borderColor");var c=Eh(A);c.fill=A.get("borderColor");var h=Eh(I);if(h.fill=I.get("borderColor"),i){var d=p-2*y;H(n,s,o.opacity,{x:y,y:0,width:d,height:b})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=h,(0,gn.DW)(n)}t.add(n)}function G(t,n){var i=(0,R.z)(n);i.dataIndex=a.dataIndex,i.seriesIndex=e.seriesIndex;var r=Math.max(p-2*y,0),o=Math.max(g-2*y,0);if(n.culling=!0,n.setShape({x:y,y,width:r,height:o,r:C}),m)F(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=Vh(w);u.fill=l,u.decal=s.decal;var c=Eh(M),h=Eh(A),d=Eh(I);H(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=h,n.ensureState("select").style=d,(0,gn.DW)(n)}t.add(n)}function F(e){!e.invisible&&o.push(e)}function H(t,n,i,r){var o=d.getModel(r?Oh:kh),s=(0,N.vS)(d.get("name"),null),l=o.getShallow("show");(0,pn.qM)(t,(0,pn.lx)(d,r?Oh:kh),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:e,labelDataIndex:a.dataIndex});var u=t.getTextContent();if(u){var h=u.style,p=(0,f.normalizeCssArray)(h.padding||0);r&&(t.setTextConfig({layoutRect:r}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var e=Math.max((r?r.width:t.shape.width)-p[1]-p[3],0),n=Math.max((r?r.height:t.shape.height)-p[0]-p[2],0);h.width===e&&h.height===n||u.setStyle({width:e,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",W(h,r,c);var g=u.getState("emphasis");W(g?g.style:null,r,c)}}function W(t,n,i){var r=t?t.text:null;if(!n&&i.isLeafRoot&&null!=r){var o=e.get("drillDownIcon",!0);t.text=o?o+" "+r:r}}function U(e,i,o,a){var s=null!=x&&n[e][x],l=r[e];return s?(n[e][x]=null,Y(l,s)):m||(s=new i,s instanceof vu.Ay&&(s.z2=Hh(o,a)),X(l,s)),t[e][v]=s}function Y(e,t){var n=e[v]={};t instanceof Th?(n.oldX=t.x,n.oldY=t.y):n.oldShape=(0,f.extend)({},t.shape)}function X(e,t){var n=e[v]={},o=a.parentNode,s=t instanceof zn.A;if(o&&(!i||"drillDown"===i.direction)){var l=0,u=0,c=r.background[o.getRawIndex()];!i&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}}function Hh(e,t){return e*Ph+t}const Wh=Bh;var Uh=f.each,Yh=f.isObject,Xh=-1,Zh=function(){function e(t){var n=t.mappingMethod,i=t.type,r=this.option=f.clone(t);this.type=i,this.mappingMethod=n,this._normalizeData=od[n];var o=e.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?($h(r),jh(r)):"category"===n?r.categories?qh(r):$h(r,!0):(f.assert("linear"!==n||r.dataExtent),$h(r))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return f.bind(this._normalizeData,this)},e.listVisualTypes=function(){return f.keys(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){f.isObject(e)?f.each(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,i){var r,o=f.isArray(t)?[]:f.isObject(t)?{}:(r=!0,null);return e.eachVisual(t,(function(e,t){var a=n.call(i,e,t);r?o=a:o[t]=a})),o},e.retrieveVisuals=function(t){var n,i={};return t&&Uh(e.visualHandlers,(function(e,r){t.hasOwnProperty(r)&&(i[r]=t[r],n=!0)})),n?i:null},e.prepareVisualTypes=function(e){if(f.isArray(e))e=e.slice();else{if(!Yh(e))return[];var t=[];Uh(e,(function(e,n){t.push(n)})),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,n){for(var i,r=1/0,o=0,a=t.length;o<a;o++){var s=t[o].value;if(null!=s){if(s===e||f.isString(s)&&s===e+"")return o;n&&h(s,o)}}for(o=0,a=t.length;o<a;o++){var l=t[o],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(ad(c[1],e,u[1]))return o}else if(u[1]===1/0){if(ad(c[0],u[0],e))return o}else if(ad(c[0],u[0],e)&&ad(c[1],e,u[1]))return o;n&&h(u[0],o),n&&h(u[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:i;function h(t,n){var o=Math.abs(t-e);o<r&&(r=o,i=n)}},e.visualHandlers={color:{applyVisual:Qh("color"),getColorMapper:function(){var e=this.option;return f.bind("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),ed.call(this,e)}:function(t,n,i){var r=!!i;return!n&&(t=this._normalizeData(t)),i=ue.fastLerp(t,e.parsedVisual,i),r?i:ue.stringify(i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return ue.stringify(ue.fastLerp(e,this.option.parsedVisual),"rgba")},category:ed,piecewise:function(e,t){var n=id.call(this,t);return null==n&&(n=ue.stringify(ue.fastLerp(e,this.option.parsedVisual),"rgba")),n},fixed:td}},colorHue:Kh((function(e,t){return ue.modifyHSL(e,t)})),colorSaturation:Kh((function(e,t){return ue.modifyHSL(e,null,t)})),colorLightness:Kh((function(e,t){return ue.modifyHSL(e,null,null,t)})),colorAlpha:Kh((function(e,t){return ue.modifyAlpha(e,t)})),decal:{applyVisual:Qh("decal"),_normalizedToVisual:{linear:null,category:ed,piecewise:null,fixed:null}},opacity:{applyVisual:Qh("opacity"),_normalizedToVisual:nd([0,1])},liftZ:{applyVisual:Qh("liftZ"),_normalizedToVisual:{linear:td,category:td,piecewise:td,fixed:td}},symbol:{applyVisual:function(e,t,n){var i=this.mapValueToVisual(e);n("symbol",i)},_normalizedToVisual:{linear:Jh,category:ed,piecewise:function(e,t){var n=id.call(this,t);return null==n&&(n=Jh.call(this,e)),n},fixed:td}},symbolSize:{applyVisual:Qh("symbolSize"),_normalizedToVisual:nd([0,1])}},e}();function jh(e){var t=e.pieceList;e.hasSpecialVisual=!1,f.each(t,(function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)}))}function qh(e){var t=e.categories,n=e.categoryMap={},i=e.visual;if(Uh(t,(function(e,t){n[e]=t})),!f.isArray(i)){var r=[];f.isObject(i)?Uh(i,(function(e,t){var i=n[t];r[null!=i?i:Xh]=e})):r[Xh]=i,i=rd(e,r)}for(var o=t.length-1;o>=0;o--)null==i[o]&&(delete n[t[o]],t.pop())}function $h(e,t){var n=e.visual,i=[];f.isObject(n)?Uh(n,(function(e){i.push(e)})):null!=n&&i.push(n);var r={color:1,symbol:1};t||1!==i.length||r.hasOwnProperty(e.type)||(i[1]=i[0]),rd(e,i)}function Kh(e){return{applyVisual:function(t,n,i){var r=this.mapValueToVisual(t);i("color",e(n("color"),r))},_normalizedToVisual:nd([0,1])}}function Jh(e){var t=this.option.visual;return t[Math.round((0,Ge.Cb)(e,[0,1],[0,t.length-1],!0))]||{}}function Qh(e){return function(t,n,i){i(e,this.mapValueToVisual(t))}}function ed(e){var t=this.option.visual;return t[this.option.loop&&e!==Xh?e%t.length:e]}function td(){return this.option.visual[0]}function nd(e){return{linear:function(t){return(0,Ge.Cb)(t,e,this.option.visual,!0)},category:ed,piecewise:function(t,n){var i=id.call(this,n);return null==i&&(i=(0,Ge.Cb)(t,e,this.option.visual,!0)),i},fixed:td}}function id(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var i=Zh.findPieceIndex(e,n),r=n[i];if(r&&r.visual)return r.visual[this.type]}}function rd(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=f.map(t,(function(e){var t=ue.parse(e);return t||[0,0,0,1]}))),t}var od={linear:function(e){return(0,Ge.Cb)(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=Zh.findPieceIndex(e,t,!0);if(null!=n)return(0,Ge.Cb)(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?Xh:t},fixed:f.noop};function ad(e,t,n){return e?t<=n:t<n}const sd=Zh;var ld="itemStyle",ud=(0,N.$r)();const cd={seriesType:"treemap",reset:function(e){var t=e.getData().tree,n=t.root;n.isRemoved()||hd(n,{},e.getViewRoot().getAncestors(),e)}};function hd(e,t,n,i){var r=e.getModel(),o=e.getLayout(),a=e.hostTree.data;if(o&&!o.invisible&&o.isInView){var s,l=r.getModel(ld),u=dd(l,t,i),c=a.ensureUniqueItemVisual(e.dataIndex,"style"),h=l.get("borderColor"),d=l.get("borderColorSaturation");null!=d&&(s=pd(u),h=fd(d,s)),c.stroke=h;var p=e.viewChildren;if(p&&p.length){var g=yd(e,r,o,l,u,p);(0,f.each)(p,(function(e,t){if(e.depth>=n.length||e===n[e.depth]){var o=vd(r,u,e,t,g,i);hd(e,o,n,i)}}))}else s=pd(u),c.fill=s}}function dd(e,t,n){var i=(0,f.extend)({},t),r=n.designatedVisualItemStyle;return(0,f.each)(["color","colorAlpha","colorSaturation"],(function(n){r[n]=t[n];var o=e.get(n);r[n]=null,null!=o&&(i[n]=o)})),i}function pd(e){var t=gd(e,"color");if(t){var n=gd(e,"colorAlpha"),i=gd(e,"colorSaturation");return i&&(t=(0,ue.modifyHSL)(t,null,null,i)),n&&(t=(0,ue.modifyAlpha)(t,n)),t}}function fd(e,t){return null!=t?(0,ue.modifyHSL)(t,null,null,e):null}function gd(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function yd(e,t,n,i,r,o){if(o&&o.length){var a=md(t,"color")||null!=r.color&&"none"!==r.color&&(md(t,"colorAlpha")||md(t,"colorSaturation"));if(a){var s=t.get("visualMin"),l=t.get("visualMax"),u=n.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),h={type:a.name,dataExtent:u,visual:a.range};"color"!==h.type||"index"!==c&&"id"!==c?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new sd(h);return ud(d).drColorMappingBy=c,d}}}function md(e,t){var n=e.get(t);return(0,f.isArray)(n)&&n.length?{name:t,range:n}:null}function vd(e,t,n,i,r,o){var a=(0,f.extend)({},t);if(r){var s=r.type,l="color"===s&&ud(r).drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));a[s]=r.mapValueToVisual(u)}return a}var xd=Math.max,_d=Math.min,bd=f.retrieve,Sd=f.each,wd=["itemStyle","borderWidth"],Md=["itemStyle","gapWidth"],Ad=["upperLabel","show"],Id=["upperLabel","height"];const Cd={seriesType:"treemap",reset:function(e,t,n,i){var r=n.getWidth(),o=n.getHeight(),a=e.option,s=dn.dV(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=(0,Ge.lo)(bd(s.width,l[0]),r),c=(0,Ge.lo)(bd(s.height,l[1]),o),h=i&&i.type,d=["treemapZoomToNode","treemapRootToNode"],p=Kc(i,d,e),g="treemapRender"===h||"treemapMove"===h?i.rootRect:null,y=e.getViewRoot(),m=Jc(y);if("treemapMove"!==h){var v="treemapZoomToNode"===h?Rd(e,p,y,u,c):g?[g.width,g.height]:[u,c],x=a.sort;x&&"asc"!==x&&"desc"!==x&&(x="desc");var _={squareRatio:a.squareRatio,sort:x,leafDepth:a.leafDepth};y.hostTree.clearLayouts();var b={x:0,y:0,width:v[0],height:v[1],area:v[0]*v[1]};y.setLayout(b),Td(y,_,!1,0),b=y.getLayout(),Sd(m,(function(e,t){var n=(m[t+1]||y).getValue();e.setLayout(f.extend({dataExtent:[n,n],borderWidth:0,upperHeight:0},b))}))}var S=e.getData().tree.root;S.setLayout(Ed(s,g,p),!0),e.setLayoutInfo(s),Vd(S,new _t.A(-s.x,-s.y,r,o),m,y,0)}};function Td(e,t,n,i){var r,o;if(!e.isRemoved()){var a=e.getLayout();r=a.width,o=a.height;var s=e.getModel(),l=s.get(wd),u=s.get(Md)/2,c=zd(s),h=Math.max(l,c),d=l-u,p=h-u;e.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0),r=xd(r-2*d,0),o=xd(o-d-p,0);var f=r*o,g=Dd(e,s,f,t,n,i);if(g.length){var y={x:d,y:p,width:r,height:o},m=_d(r,o),v=1/0,x=[];x.area=0;for(var _=0,b=g.length;_<b;){var S=g[_];x.push(S),x.area+=S.getLayout().area;var w=Pd(x,m,t.squareRatio);w<=v?(_++,v=w):(x.area-=x.pop().getLayout().area,Nd(x,m,y,u,!1),m=_d(y.width,y.height),x.length=x.area=0,v=1/0)}if(x.length&&Nd(x,m,y,u,!0),!n){var M=s.get("childrenVisibleMin");null!=M&&f<M&&(n=!0)}for(_=0,b=g.length;_<b;_++)Td(g[_],t,n,i+1)}}}function Dd(e,t,n,i,r,o){var a=e.children||[],s=i.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=i.leafDepth&&i.leafDepth<=o;if(r&&!l)return e.viewChildren=[];a=f.filter(a,(function(e){return!e.isRemoved()})),kd(a,s);var u=Od(t,a,s);if(0===u.sum)return e.viewChildren=[];if(u.sum=Ld(t,n,u.sum,s,a),0===u.sum)return e.viewChildren=[];for(var c=0,h=a.length;c<h;c++){var d=a[c].getValue()/u.sum*n;a[c].setLayout({area:d})}return l&&(a.length&&e.setLayout({isLeafRoot:!0},!0),a.length=0),e.viewChildren=a,e.setLayout({dataExtent:u.dataExtent},!0),a}function Ld(e,t,n,i,r){if(!i)return n;for(var o=e.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*t<o&&(s=l,n-=u)}return"asc"===i?r.splice(0,a-s):r.splice(s,a-s),n}function kd(e,t){return t&&e.sort((function(e,n){var i="asc"===t?e.getValue()-n.getValue():n.getValue()-e.getValue();return 0===i?"asc"===t?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:i})),e}function Od(e,t,n){for(var i=0,r=0,o=t.length;r<o;r++)i+=t[r].getValue();var a,s=e.get("visualDimension");return t&&t.length?"value"===s&&n?(a=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],Sd(t,(function(e){var t=e.getValue(s);t<a[0]&&(a[0]=t),t>a[1]&&(a[1]=t)}))):a=[NaN,NaN],{sum:i,dataExtent:a}}function Pd(e,t,n){for(var i=0,r=1/0,o=0,a=void 0,s=e.length;o<s;o++)a=e[o].getLayout().area,a&&(a<r&&(r=a),a>i&&(i=a));var l=e.area*e.area,u=t*t*n;return l?xd(u*i/l,l/(u*r)):1/0}function Nd(e,t,n,i,r){var o=t===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=t?e.area/t:0;(r||c>n[l[a]])&&(c=n[l[a]]);for(var h=0,d=e.length;h<d;h++){var p=e[h],f={},g=c?p.getLayout().area/c:0,y=f[l[a]]=xd(c-2*i,0),m=n[s[o]]+n[l[o]]-u,v=h===d-1||m<g?m:g,x=f[l[o]]=xd(v-2*i,0);f[s[a]]=n[s[a]]+_d(i,y/2),f[s[o]]=u+_d(i,x/2),u+=v,p.setLayout(f,!0)}n[s[a]]+=c,n[l[a]]-=c}function Rd(e,t,n,i,r){var o,a=(t||{}).node,s=[i,r];if(!a||a===n)return s;var l=i*r,u=l*e.option.zoomToNodeRatio;while(o=a.parentNode){for(var c=0,h=o.children,d=0,p=h.length;d<p;d++)c+=h[d].getValue();var f=a.getValue();if(0===f)return s;u*=c/f;var g=o.getModel(),y=g.get(wd),m=Math.max(y,zd(g));u+=4*y*y+(3*y+m)*Math.pow(u,.5),u>Ge.Is&&(u=Ge.Is),a=o}u<l&&(u=l);var v=Math.pow(u/l,.5);return[i*v,r*v]}function Ed(e,t,n){if(t)return{x:t.x,y:t.y};var i={x:0,y:0};if(!n)return i;var r=n.node,o=r.getLayout();if(!o)return i;var a=[o.width/2,o.height/2],s=r;while(s){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:e.width/2-a[0],y:e.height/2-a[1]}}function Vd(e,t,n,i,r){var o=e.getLayout(),a=n[r],s=a&&a===e;if(!(a&&!s||r===n.length&&e!==i)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(o),isAboveViewRoot:s},!0);var l=new _t.A(t.x-o.x,t.y-o.y,t.width,t.height);Sd(e.viewChildren||[],(function(e){Vd(e,l,n,i,r+1)}))}}function zd(e){return e.get(Ad)?e.get(Id):0}function Bd(e){e.registerSeriesModel(mh),e.registerChartView(Wh),e.registerVisual(cd),e.registerLayout(Cd),hh(e)}function Gd(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),i=e.getGraph(),r=i.data,o=n.mapArray(n.getName);r.filterSelf((function(e){var n=r.getItemModel(e),i=n.getShallow("category");if(null!=i){(0,f.isNumber)(i)&&(i=o[i]);for(var a=0;a<t.length;a++)if(!t[a].isSelected(i))return!1}return!0}))}))}function Fd(e){var t={};e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),i=e.getData(),r={};n.each((function(i){var o=n.getName(i);r["ec-"+o]=i;var a=n.getItemModel(i),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e.getColorFromPalette(o,t)),n.setItemVisual(i,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=a.getShallow(l[u],!0);null!=c&&n.setItemVisual(i,l[u],c)}})),n.count()&&i.each((function(e){var t=i.getItemModel(e),o=t.getShallow("category");if(null!=o){(0,f.isString)(o)&&(o=r["ec-"+o]);var a=n.getItemVisual(o,"style"),s=i.ensureUniqueItemVisual(e,"style");(0,f.extend)(s,a);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++)i.setItemVisual(e,l[u],n.getItemVisual(o,l[u]))}}))}))}function Hd(e){return e instanceof Array||(e=[e,e]),e}function Wd(e){e.eachSeriesByType("graph",(function(e){var t=e.getGraph(),n=e.getEdgeData(),i=Hd(e.get("edgeSymbol")),r=Hd(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each((function(e){var i=n.getItemModel(e),r=t.getEdgeByIndex(e),o=Hd(i.getShallow("symbol",!0)),a=Hd(i.getShallow("symbolSize",!0)),s=i.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(e,"style");switch((0,f.extend)(l,s),l.stroke){case"source":var u=r.node1.getVisual("style");l.stroke=u&&u.fill;break;case"target":u=r.node2.getVisual("style");l.stroke=u&&u.fill;break}o[0]&&r.setVisual("fromSymbol",o[0]),o[1]&&r.setVisual("toSymbol",o[1]),a[0]&&r.setVisual("fromSymbolSize",a[0]),a[1]&&r.setVisual("toSymbolSize",a[1])}))}))}var Ud="--\x3e",Yd=function(e){return e.get("autoCurveness")||null},Xd=function(e,t){var n=Yd(e),i=20,r=[];if(f.isNumber(n))i=n;else if(f.isArray(n))return void(e.__curvenessList=n);t>i&&(i=t);var o=i%2?i+2:i+3;r=[];for(var a=0;a<o;a++)r.push((a%2?a+1:a)/10*(a%2?-1:1));e.__curvenessList=r},Zd=function(e,t,n){var i=[e.id,e.dataIndex].join("."),r=[t.id,t.dataIndex].join(".");return[n.uid,i,r].join(Ud)},jd=function(e){var t=e.split(Ud);return[t[0],t[2],t[1]].join(Ud)},qd=function(e,t){var n=Zd(e.node1,e.node2,t);return t.__edgeMap[n]},$d=function(e,t){var n=Kd(Zd(e.node1,e.node2,t),t),i=Kd(Zd(e.node2,e.node1,t),t);return n+i},Kd=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function Jd(e){Yd(e)&&(e.__curvenessList=[],e.__edgeMap={},Xd(e))}function Qd(e,t,n,i){if(Yd(n)){var r=Zd(e,t,n),o=n.__edgeMap,a=o[jd(r)];o[r]&&!a?o[r].isForward=!0:a&&o[r]&&(a.isForward=!0,o[r].isForward=!1),o[r]=o[r]||[],o[r].push(i)}}function ep(e,t,n,i){var r=Yd(t),o=f.isArray(r);if(!r)return null;var a=qd(e,t);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var u=$d(e,t);Xd(t,u),e.lineStyle=e.lineStyle||{};var c=Zd(e.node1,e.node2,t),h=t.__curvenessList,d=o||u%2?0:1;if(a.isForward)return h[d+s];var p=jd(c),g=Kd(p,t),y=h[s+g+d];return i?o?r&&0===r[0]?(g+d)%2?y:-y:((g%2?0:1)+d)%2?y:-y:(g+d)%2?y:-y:h[s+g+d]}function tp(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var n=e.getGraph();n.eachNode((function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])})),np(n,e)}}function np(e,t){e.eachEdge((function(e,n){var i=f.retrieve3(e.getModel().get(["lineStyle","curveness"]),-ep(e,t,n,!0),0),r=le.clone(e.node1.getLayout()),o=le.clone(e.node2.getLayout()),a=[r,o];+i&&a.push([(r[0]+o[0])/2-(r[1]-o[1])*i,(r[1]+o[1])/2-(o[0]-r[0])*i]),e.setLayout(a)}))}function ip(e,t){e.eachSeriesByType("graph",(function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var i=e.getData(),r=[];(0,f.each)(n.dimensions,(function(e){r=r.concat(i.mapDimensionsAll(e))}));for(var o=0;o<i.count();o++){for(var a=[],s=!1,l=0;l<r.length;l++){var u=i.get(r[l],o);isNaN(u)||(s=!0),a.push(u)}s?i.setItemLayout(o,n.dataToPoint(a)):i.setItemLayout(o,[NaN,NaN])}np(i.graph,e)}else t&&"none"!==t||tp(e)}))}function rp(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,i=t.scaleX,r=t.getZoom(),o=(r-1)*n+1;return o/i}function op(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var ap=Math.PI,sp=[];function lp(e,t,n,i){var r=e.coordinateSystem;if(!r||"view"===r.type){var o=r.getBoundingRect(),a=e.getData(),s=a.graph,l=o.width/2+o.x,u=o.height/2+o.y,c=Math.min(o.width,o.height)/2,h=a.count();if(a.setLayout({cx:l,cy:u}),h){if(n){var d=r.pointToData(i),p=d[0],g=d[1],y=[p-l,g-u];le.normalize(y,y),le.scale(y,y,c),n.setLayout([l+y[0],u+y[1]],!0);var m=e.get(["circular","rotateLabel"]);cp(n,m,l,u)}up[t](e,s,a,c,l,u,h),s.eachEdge((function(t,n){var i,r=f.retrieve3(t.getModel().get(["lineStyle","curveness"]),ep(t,e,n),0),o=le.clone(t.node1.getLayout()),a=le.clone(t.node2.getLayout()),s=(o[0]+a[0])/2,c=(o[1]+a[1])/2;+r&&(r*=3,i=[l*r+s*(1-r),u*r+c*(1-r)]),t.setLayout([o,a,i])}))}}}var up={value:function(e,t,n,i,r,o,a){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||a);t.eachNode((function(e){var t=e.getValue("value"),n=u*(l?t:1)/2;s+=n,e.setLayout([i*Math.cos(s)+r,i*Math.sin(s)+o]),s+=n}))},symbolSize:function(e,t,n,i,r,o,a){var s=0;sp.length=a;var l=rp(e);t.eachNode((function(e){var t=op(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=l;var n=Math.asin(t/2/i);isNaN(n)&&(n=ap/2),sp[e.dataIndex]=n,s+=2*n}));var u=(2*ap-s)/a/2,c=0;t.eachNode((function(e){var t=u+sp[e.dataIndex];c+=t,(!e.getLayout()||!e.getLayout().fixed)&&e.setLayout([i*Math.cos(c)+r,i*Math.sin(c)+o]),c+=t}))}};function cp(e,t,n,i){var r=e.getGraphicEl();if(r){var o=e.getModel(),a=o.get(["label","rotate"])||0,s=r.getSymbolPath();if(t){var l=e.getLayout(),u=Math.atan2(l[1]-i,l[0]-n);u<0&&(u=2*Math.PI+u);var c=l[0]<n;c&&(u-=Math.PI);var h=c?"left":"right";s.setTextConfig({rotation:-u,position:h,origin:"center"});var d=s.ensureState("emphasis");f.extend(d.textConfig||(d.textConfig={}),{position:h})}else s.setTextConfig({rotation:a*=Math.PI/180})}}function hp(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&lp(e,"symbolSize")}))}var dp=le.scaleAndAdd;function pp(e,t,n){for(var i=e,r=t,o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<i.length;c++){var h=i[c];h.p||(h.p=le.create(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=le.clone(h.p),h.edges=null}var d,p,f=null==n.friction?.6:n.friction,g=f;return{warmUp:function(){g=.8*f},setFixed:function(e){i[e].fixed=!0},setUnfixed:function(e){i[e].fixed=!1},beforeStep:function(e){d=e},afterStep:function(e){p=e},step:function(e){d&&d(i,r);for(var t=[],n=i.length,o=0;o<r.length;o++){var a=r[o];if(!a.ignoreForceLayout){var s=a.n1,c=a.n2;le.sub(t,c.p,s.p);var h=le.len(t)-a.d,f=c.w/(s.w+c.w);isNaN(f)&&(f=0),le.normalize(t,t),!s.fixed&&dp(s.p,s.p,t,f*h*g),!c.fixed&&dp(c.p,c.p,t,-(1-f)*h*g)}}for(o=0;o<n;o++){var y=i[o];y.fixed||(le.sub(t,l,y.p),dp(y.p,y.p,t,u*g))}for(o=0;o<n;o++){s=i[o];for(var m=o+1;m<n;m++){c=i[m];le.sub(t,c.p,s.p);h=le.len(t);0===h&&(le.set(t,Math.random()-.5,Math.random()-.5),h=1);var v=(s.rep+c.rep)/h/h;!s.fixed&&dp(s.pp,s.pp,t,v),!c.fixed&&dp(c.pp,c.pp,t,-v)}}var x=[];for(o=0;o<n;o++){y=i[o];y.fixed||(le.sub(x,y.p,y.pp),dp(y.p,y.p,x,g),le.copy(y.pp,y.p))}g*=.992;var _=g<.01;p&&p(i,r,_),e&&e(_)}}}function fp(e){e.eachSeriesByType("graph",(function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},i=e.getGraph(),r=i.data,o=i.edgeData,a=e.getModel("force"),s=a.get("initLayout");e.preservedPoints?r.each((function(e){var t=r.getId(e);r.setItemLayout(e,n[t]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&lp(e,"value"):tp(e);var l=r.getDataExtent("value"),u=o.getDataExtent("value"),c=a.get("repulsion"),h=a.get("edgeLength"),d=f.isArray(c)?c:[c,c],p=f.isArray(h)?h:[h,h];p=[p[1],p[0]];var g=r.mapArray("value",(function(e,t){var n=r.getItemLayout(t),i=(0,Ge.Cb)(e,l,d);return isNaN(i)&&(i=(d[0]+d[1])/2),{w:i,rep:i,fixed:r.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),y=o.mapArray("value",(function(t,n){var r=i.getEdgeByIndex(n),o=(0,Ge.Cb)(t,u,p);isNaN(o)&&(o=(p[0]+p[1])/2);var a=r.getModel(),s=f.retrieve3(r.getModel().get(["lineStyle","curveness"]),-ep(r,e,n,!0),0);return{n1:g[r.node1.dataIndex],n2:g[r.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}})),m=t.getBoundingRect(),v=pp(g,y,{rect:m,gravity:a.get("gravity"),friction:a.get("friction")});v.beforeStep((function(e,t){for(var n=0,r=e.length;n<r;n++)e[n].fixed&&le.copy(e[n].p,i.getNodeByIndex(n).getLayout())})),v.afterStep((function(e,t,o){for(var a=0,s=e.length;a<s;a++)e[a].fixed||i.getNodeByIndex(a).setLayout(e[a].p),n[r.getId(a)]=e[a].p;for(a=0,s=t.length;a<s;a++){var l=t[a],u=i.getEdgeByIndex(a),c=l.n1.p,h=l.n2.p,d=u.getLayout();d=d?d.slice():[],d[0]=d[0]||[],d[1]=d[1]||[],le.copy(d[0],c),le.copy(d[1],h),+l.curveness&&(d[2]=[(c[0]+h[0])/2-(c[1]-h[1])*l.curveness,(c[1]+h[1])/2-(h[0]-c[0])*l.curveness]),u.setLayout(d)}})),e.forceLayout=v,e.preservedPoints=n,v.step()}else e.forceLayout=null}))}function gp(e,t,n){var i=(0,f.extend)(e.getBoxLayoutParams(),{aspect:n});return(0,dn.dV)(i,{width:t.getWidth(),height:t.getHeight()})}function yp(e,t){var n=[];return e.eachSeriesByType("graph",(function(e){var i=e.get("coordinateSystem");if(!i||"view"===i){var r=e.getData(),o=r.mapArray((function(e){var t=r.getItemModel(e);return[+t.get("x"),+t.get("y")]})),a=[],s=[];Mc.Cr(o,a,s),s[0]-a[0]===0&&(s[0]+=1,a[0]-=1),s[1]-a[1]===0&&(s[1]+=1,a[1]-=1);var l=(s[0]-a[0])/(s[1]-a[1]),u=gp(e,t,l);isNaN(l)&&(a=[u.x,u.y],s=[u.x+u.width,u.y+u.height]);var c=s[0]-a[0],h=s[1]-a[1],d=u.width,p=u.height,f=e.coordinateSystem=new Uu;f.zoomLimit=e.get("scaleLimit"),f.setBoundingRect(a[0],a[1],c,h),f.setViewRect(u.x,u.y,d,p),f.setCenter(e.get("center"),t),f.setZoom(e.get("zoom")),n.push(f)}})),n}var mp=jn.A.prototype,vp=qn.A.prototype,xp=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}(0,Oe.C6)(t,e)})(xp);function _p(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var bp=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-line",n}return(0,Oe.C6)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new xp},t.prototype.buildPath=function(e,t){_p(t)?mp.buildPath.call(this,e,t):vp.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return _p(this.shape)?mp.pointAt.call(this,e):vp.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=_p(t)?[t.x2-t.x1,t.y2-t.y1]:vp.tangentAt.call(this,e);return le.normalize(n,n)},t}(Pi.Ay);const Sp=bp;var wp=["fromSymbol","toSymbol"];function Mp(e){return"_"+e+"Type"}function Ap(e,t,n){var i=t.getItemVisual(n,e);if(!i||"none"===i)return i;var r=t.getItemVisual(n,e+"Size"),o=t.getItemVisual(n,e+"Rotate"),a=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=fn.xU(r),u=fn.hV(a||0,l);return i+l+u+(o||"")+(s||"")}function Ip(e,t,n){var i=t.getItemVisual(n,e);if(i&&"none"!==i){var r=t.getItemVisual(n,e+"Size"),o=t.getItemVisual(n,e+"Rotate"),a=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=fn.xU(r),u=fn.hV(a||0,l),c=fn.v5(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=e,c}}function Cp(e){var t=new Sp({name:"line",subPixelOptimize:!0});return Tp(t.shape,e),t}function Tp(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 n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var Dp=function(e){function t(t,n,i){var r=e.call(this)||this;return r._createLine(t,n,i),r}return(0,Oe.C6)(t,e),t.prototype._createLine=function(e,t,n){var i=e.hostModel,r=e.getItemLayout(t),o=Cp(r);o.shape.percent=0,Vn.LW(o,{shape:{percent:1}},i,t),this.add(o),(0,f.each)(wp,(function(n){var i=Ip(n,e,t);this.add(i),this[Mp(n)]=Ap(n,e,t)}),this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var i=e.hostModel,r=this.childOfName("line"),o=e.getItemLayout(t),a={shape:{}};Tp(a.shape,o),Vn.oi(r,a,i,t),(0,f.each)(wp,(function(n){var i=Ap(n,e,t),r=Mp(n);if(this[r]!==i){this.remove(this.childOfName(n));var o=Ip(n,e,t);this.add(o)}this[r]=i}),this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var i=e.hostModel,r=this.childOfName("line"),o=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,u=n&&n.emphasisDisabled,c=n&&n.focus,h=n&&n.blurScope;if(!n||e.hasItemOption){var d=e.getItemModel(t),p=d.getModel("emphasis");o=p.getModel("lineStyle").getLineStyle(),a=d.getModel(["blur","lineStyle"]).getLineStyle(),s=d.getModel(["select","lineStyle"]).getLineStyle(),u=p.get("disabled"),c=p.get("focus"),h=p.get("blurScope"),l=(0,pn.lx)(d)}var g=e.getItemVisual(t,"style"),y=g.stroke;r.useStyle(g),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,r.ensureState("blur").style=a,r.ensureState("select").style=s,(0,f.each)(wp,(function(e){var t=this.childOfName(e);if(t){t.setColor(y),t.style.opacity=g.opacity;for(var n=0;n<gn.BV.length;n++){var i=gn.BV[n],o=r.getState(i);if(o){var a=o.style||{},s=t.ensureState(i),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 m=i.getRawValue(t);(0,pn.qM)(this,l,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return i.getFormattedLabel(t,n,e.dataType)}},inheritColor:y||"#000",defaultOpacity:g.opacity,defaultText:(null==m?e.getName(t):isFinite(m)?(0,Ge.LI)(m):m)+""});var v=this.getTextContent();if(v){var x=l.normal;v.__align=v.style.align,v.__verticalAlign=v.style.verticalAlign,v.__position=x.get("position")||"middle";var _=x.get("distance");(0,f.isArray)(_)||(_=[_,_]),v.__labelDistance=_}this.setTextConfig({position:null,local:!0,inside:!1}),(0,gn.Lm)(this,c,h,u)},t.prototype.highlight=function(){(0,gn.HY)(this)},t.prototype.downplay=function(){(0,gn.SD)(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName("line");Tp(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this,t=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),i=e.getTextContent();if(t||n||i&&!i.ignore){var r=1,o=this.parent;while(o)o.scaleX&&(r/=o.scaleX),o=o.parent;var a=e.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),u=a.pointAt(s),c=le.sub([],u,l);if(le.normalize(c,c),t&&(t.setPosition(l),w(t,0),t.scaleX=t.scaleY=r*s,t.markRedraw()),n&&(n.setPosition(u),w(n,1),n.scaleX=n.scaleY=r*s,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var h=void 0,d=void 0,p=i.__labelDistance,f=p[0]*r,g=p[1]*r,y=s/2,m=a.tangentAt(y),v=[m[1],-m[0]],x=a.pointAt(y);v[1]>0&&(v[0]=-v[0],v[1]=-v[1]);var _=m[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var b=-Math.atan2(m[1],m[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=-g,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":S=g,d="top";break;default:S=0,d="middle"}switch(i.__position){case"end":i.x=c[0]*f+u[0],i.y=c[1]*g+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]*f+l[0],i.y=-c[1]*g+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=f*_+l[0],i.y=l[1]+S,h=m[0]<0?"right":"left",i.originX=-f*_,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=-f*_+u[0],i.y=u[1]+S,h=m[0]>=0?"right":"left",i.originX=f*_,i.originY=-S;break}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||h})}}}function w(e,t){var n=e.__specifiedRotation;if(null==n){var i=a.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else e.attr("rotation",n)}},t}(zn.A);const Lp=Dp;var kp=function(){function e(e){this.group=new zn.A,this._LineCtor=e||Lp}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=e,r||i.removeAll();var o=Pp(e);e.diff(r).add((function(n){t._doAdd(e,n,o)})).update((function(n,i){t._doUpdate(r,e,i,n,o)})).remove((function(e){i.remove(r.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Pp(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||Op(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=e.start;i<e.end;i++){var r=t.getItemLayout(i);if(Rp(r)){var o=new this._LineCtor(t,i,this._seriesScope);o.traverse(n),this.group.add(o),t.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){En.traverseElements(this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){var i=e.getItemLayout(t);if(Rp(i)){var r=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,r),this.group.add(r)}},e.prototype._doUpdate=function(e,t,n,i,r){var o=e.getItemGraphicEl(n);Rp(t.getItemLayout(i))?(o?o.updateData(t,i,r):o=new this._LineCtor(t,i,r),t.setItemGraphicEl(i,o),this.group.add(o)):this.group.remove(o)},e}();function Op(e){return e.animators&&e.animators.length>0}function Pp(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:(0,pn.lx)(t)}}function Np(e){return isNaN(e[0])||isNaN(e[1])}function Rp(e){return e&&!Np(e[0])&&!Np(e[1])}const Ep=kp;var Vp=[],zp=[],Bp=[],Gp=Ei.k3,Fp=le.distSquare,Hp=Math.abs;function Wp(e,t,n){for(var i,r=e[0],o=e[1],a=e[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){Vp[0]=Gp(r[0],o[0],a[0],c),Vp[1]=Gp(r[1],o[1],a[1],c);var h=Hp(Fp(Vp,t)-l);h<s&&(s=h,i=c)}for(var d=0;d<32;d++){var p=i+u;zp[0]=Gp(r[0],o[0],a[0],i),zp[1]=Gp(r[1],o[1],a[1],i),Bp[0]=Gp(r[0],o[0],a[0],p),Bp[1]=Gp(r[1],o[1],a[1],p);h=Fp(zp,t)-l;if(Hp(h)<.01)break;var f=Fp(Bp,t)-l;u/=2,h<0?f>=0?i+=u:i-=u:f>=0?i-=u:i+=u}return i}function Up(e,t){var n=[],i=Ei.kx,r=[[],[],[]],o=[[],[]],a=[];t/=2,e.eachEdge((function(e,s){var l=e.getLayout(),u=e.getVisual("fromSymbol"),c=e.getVisual("toSymbol");l.__original||(l.__original=[le.clone(l[0]),le.clone(l[1])],l[2]&&l.__original.push(le.clone(l[2])));var h=l.__original;if(null!=l[2]){if(le.copy(r[0],h[0]),le.copy(r[1],h[2]),le.copy(r[2],h[1]),u&&"none"!==u){var d=op(e.node1),p=Wp(r,h[0],d*t);i(r[0][0],r[1][0],r[2][0],p,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],p,n),r[0][1]=n[3],r[1][1]=n[4]}if(c&&"none"!==c){d=op(e.node2),p=Wp(r,h[1],d*t);i(r[0][0],r[1][0],r[2][0],p,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],p,n),r[1][1]=n[1],r[2][1]=n[2]}le.copy(l[0],r[0]),le.copy(l[1],r[2]),le.copy(l[2],r[1])}else{if(le.copy(o[0],h[0]),le.copy(o[1],h[1]),le.sub(a,o[1],o[0]),le.normalize(a,a),u&&"none"!==u){d=op(e.node1);le.scaleAndAdd(o[0],o[0],a,d*t)}if(c&&"none"!==c){d=op(e.node2);le.scaleAndAdd(o[1],o[1],a,-d*t)}le.copy(l[0],o[0]),le.copy(l[1],o[1])}}))}function Yp(e){return"view"===e.type}var Xp=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.init=function(e,t){var n=new Gr,i=new Ep,r=this.group;this._controller=new Ul(t.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,t,n){var i=this,r=e.coordinateSystem;this._model=e;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(Yp(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):Vn.oi(s,l,e)}Up(e.getGraph(),rp(e));var u=e.getData();o.updateData(u);var c=e.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var h=e.forceLayout,d=e.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,d);var p=e.get("layout");u.graph.eachNode((function(t){var n=t.dataIndex,r=t.getGraphicEl(),o=t.getModel();if(r){r.off("drag").off("dragend");var a=o.get("draggable");a&&r.on("drag",(function(o){switch(p){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,d),h.setFixed(n),u.setItemLayout(n,[r.x,r.y]);break;case"circular":u.setItemLayout(n,[r.x,r.y]),t.setLayout({fixed:!0},!0),lp(e,"symbolSize",t,[o.offsetX,o.offsetY]),i.updateLayout(e);break;case"none":default:u.setItemLayout(n,[r.x,r.y]),np(e.getGraph(),e),i.updateLayout(e);break}})).on("dragend",(function(){h&&h.setUnfixed(n)})),r.setDraggable(a,!!o.get("cursor"));var s=o.get(["emphasis","focus"]);"adjacency"===s&&((0,R.z)(r).focus=t.getAdjacentDataIndices())}})),u.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===n&&((0,R.z)(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var f="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),g=u.getLayout("cx"),y=u.getLayout("cy");u.graph.eachNode((function(e){cp(e,f,g,y)})),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;(function i(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(i,16):i())}))})()},t.prototype._updateController=function(e,t,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(t,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!jl(t,n,e)})),Yp(e.coordinateSystem)?(r.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(t){Yl(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){Xl(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(),Up(e.getGraph(),rp(e)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):r.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=rp(e);t.eachItemGraphicEl((function(e,t){e&&e.setSymbolScale(n)}))},t.prototype.updateLayout=function(e){Up(e.getGraph(),rp(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(h.A);const Zp=Xp;function jp(e){return"_EC_"+e}var qp=function(){function e(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[jp(e)]){var i=new $p(e,t);return i.hostGraph=this,this.nodes.push(i),n[jp(e)]=i,i}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[jp(e)]},e.prototype.addEdge=function(e,t,n){var i=this._nodesMap,r=this._edgesMap;if(f.isNumber(e)&&(e=this.nodes[e]),f.isNumber(t)&&(t=this.nodes[t]),e instanceof $p||(e=i[jp(e)]),t instanceof $p||(t=i[jp(t)]),e&&t){var o=e.id+"-"+t.id,a=new Kp(e,t,n);return a.hostGraph=this,this._directed&&(e.outEdges.push(a),t.inEdges.push(a)),e.edges.push(a),e!==t&&t.edges.push(a),this.edges.push(a),r[o]=a,a}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof $p&&(e=e.id),t instanceof $p&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&e.call(t,n[r],r)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&e.call(t,n[r],r)},e.prototype.breadthFirstTraverse=function(e,t,n,i){if(t instanceof $p||(t=this._nodesMap[jp(t)]),t){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(i,t,null)){var a=[t];while(a.length){var s=a.shift(),l=s[r];for(o=0;o<l.length;o++){var u=l[o],c=u.node1===s?u.node2:u.node1;if(!c.__visited){if(e.call(i,c,s))return;a.push(c),c.__visited=!0}}}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,i=this.edges,r=0,o=n.length;r<o;r++)n[r].dataIndex=-1;for(r=0,o=e.count();r<o;r++)n[e.getRawIndex(r)].dataIndex=r;t.filterSelf((function(e){var n=i[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(r=0,o=i.length;r<o;r++)i[r].dataIndex=-1;for(r=0,o=t.count();r<o;r++)i[t.getRawIndex(r)].dataIndex=r},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,i=this.edges,r=0;r<n.length;r++)t.addNode(n[r].id,n[r].dataIndex);for(r=0;r<i.length;r++){var o=i[r];t.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return t},e}(),$p=function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==e?"":e,this.dataIndex=null==t?-1:t}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},e.prototype.getTrajectoryDataIndices=function(){for(var e=f.createHashMap(),t=f.createHashMap(),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){e.set(i.dataIndex,!0);var r=[i.node1],o=[i.node2],a=0;while(a<r.length){var s=r[a];a++,t.set(s.dataIndex,!0);for(var l=0;l<s.inEdges.length;l++)e.set(s.inEdges[l].dataIndex,!0),r.push(s.inEdges[l].node1)}a=0;while(a<o.length){var u=o[a];a++,t.set(u.dataIndex,!0);for(l=0;l<u.outEdges.length;l++)e.set(u.outEdges[l].dataIndex,!0),o.push(u.outEdges[l].node2)}}}return{edge:e.keys(),node:t.keys()}},e}(),Kp=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}return e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var e=f.createHashMap(),t=f.createHashMap();e.set(this.dataIndex,!0);var n=[this.node1],i=[this.node2],r=0;while(r<n.length){var o=n[r];r++,t.set(o.dataIndex,!0);for(var a=0;a<o.inEdges.length;a++)e.set(o.inEdges[a].dataIndex,!0),n.push(o.inEdges[a].node1)}r=0;while(r<i.length){var s=i[r];r++,t.set(s.dataIndex,!0);for(a=0;a<s.outEdges.length;a++)e.set(s.outEdges[a].dataIndex,!0),i.push(s.outEdges[a].node2)}return{edge:e.keys(),node:t.keys()}},e}();function Jp(e,t){return{getValue:function(n){var i=this[e][t];return i.getStore().get(i.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}f.mixin($p,Jp("hostGraph","data")),f.mixin(Kp,Jp("hostGraph","edgeData"));const Qp=qp;function ef(e,t,n,i,r){for(var o=new Qp(i),a=0;a<e.length;a++)o.addNode(f.retrieve(e[a].id,e[a].name,a),a);var s=[],l=[],u=0;for(a=0;a<t.length;a++){var c=t[a],h=c.source,d=c.target;o.addEdge(h,d,u)&&(l.push(c),s.push(f.retrieve((0,N.vS)(c.id,null),h+" > "+d)),u++)}var p,g=n.get("coordinateSystem");if("cartesian2d"===g||"polar"===g)p=ke(e,n);else{var y=me.A.get(g),m=y&&y.dimensions||[];f.indexOf(m,"value")<0&&m.concat(["value"]);var v=pe(e,{coordDimensions:m,encodeDefine:n.getEncode()}).dimensions;p=new ae(v,n),p.initData(e)}var x=new ae(["value"],n);return x.initData(l,s),r&&r(p,x),Xc({mainData:p,struct:o,structAttr:"graph",datas:{node:p,edge:x},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var tf=n(7626),nf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return(0,Oe.C6)(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new Pa(i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),(0,N.M5)(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],i=e.data||e.nodes||[],r=this;if(i&&n){Jd(this);var o=ef(i,n,this,!0,a);return f.each(o.edges,(function(e){Qd(e.node1,e.node2,this,e.dataIndex)}),this),o.data}function a(e,t){e.wrapMethod("getItemModel",(function(e){var t=r._categoriesModels,n=e.getShallow("category"),i=t[n];return i&&(i.parentModel=e.parentModel,e.parentModel=i),e}));var n=_.A.prototype.getModel;function i(e,t){var i=n.call(this,e,t);return i.resolveParentPath=o,i}function o(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=o,e.getModel=i,e}))}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(e,n),o=i.graph.getEdgeByIndex(e),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),(0,ml.Qx)("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}var u=(0,tf.J)({series:this,dataIndex:e,multipleSeries:t});return u},t.prototype._updateCategoriesData=function(){var e=f.map(this.option.categories||[],(function(e){return null!=e.value?e:f.extend({value:0},e)})),t=new ae(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e)}))},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(p.A);const rf=nf;var of={type:"graphRoam",event:"graphRoam",update:"none"};function af(e){e.registerChartView(Zp),e.registerSeriesModel(rf),e.registerProcessor(Gd),e.registerVisual(Fd),e.registerVisual(Wd),e.registerLayout(ip),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,hp),e.registerLayout(fp),e.registerCoordinateSystem("graphView",{dimensions:Uu.dimensions,create:yp}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},f.noop),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},f.noop),e.registerAction(of,(function(e,t,n){t.eachComponent({mainType:"series",query:e},(function(t){var i=t.coordinateSystem,r=rc(i,e,void 0,n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))}var sf=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),lf=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return(0,Oe.C6)(t,e),t.prototype.getDefaultShape=function(){return new sf},t.prototype.buildPath=function(e,t){var n=Math.cos,i=Math.sin,r=t.r,o=t.width,a=t.angle,s=t.x-n(a)*o*(o>=r/3?1:2),l=t.y-i(a)*o*(o>=r/3?1:2);a=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(a)*o,t.y+i(a)*o),e.lineTo(t.x+n(t.angle)*r,t.y+i(t.angle)*r),e.lineTo(t.x-n(a)*o,t.y-i(a)*o),e.lineTo(s,l)},t}(Pi.Ay);const uf=lf;function cf(e,t){var n=e.get("center"),i=t.getWidth(),r=t.getHeight(),o=Math.min(i,r),a=(0,Ge.lo)(n[0],t.getWidth()),s=(0,Ge.lo)(n[1],t.getHeight()),l=(0,Ge.lo)(e.get("radius"),o/2);return{cx:a,cy:s,r:l}}function hf(e,t){var n=null==e?"":e+"";return t&&((0,f.isString)(t)?n=t.replace("{value}",n):(0,f.isFunction)(t)&&(n=t(e))),n}var df=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),r=cf(e,n);this._renderMain(e,t,n,i,r),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,i,r){var o=this.group,a=e.get("clockwise"),s=-e.get("startAngle")/180*Math.PI,l=-e.get("endAngle")/180*Math.PI,u=e.getModel("axisLine"),c=u.get("roundCap"),h=c?Eo:Wn.A,d=u.get("show"),p=u.getModel("lineStyle"),g=p.get("width"),y=[s,l];(0,Ni.q)(y,!a),s=y[0],l=y[1];for(var m=l-s,v=s,x=[],_=0;d&&_<i.length;_++){var b=Math.min(Math.max(i[_][0],0),1);l=s+m*b;var S=new h({shape:{startAngle:v,endAngle:l,cx:r.cx,cy:r.cy,clockwise:a,r0:r.r-g,r:r.r},silent:!0});S.setStyle({fill:i[_][1]}),S.setStyle(p.getLineStyle(["color","width"])),x.push(S),v=l}x.reverse(),(0,f.each)(x,(function(e){return o.add(e)}));var w=function(e){if(e<=0)return i[0][1];var t;for(t=0;t<i.length;t++)if(i[t][0]>=e&&(0===t?0:i[t-1][0])<e)return i[t][1];return i[t-1][1]};this._renderTicks(e,t,n,w,r,s,l,a,g),this._renderTitleAndDetail(e,t,n,w,r),this._renderAnchor(e,r),this._renderPointer(e,t,n,w,r,s,l,a,g)},t.prototype._renderTicks=function(e,t,n,i,r,o,a,s,l){for(var u,c,h=this.group,d=r.cx,p=r.cy,g=r.r,y=+e.get("min"),m=+e.get("max"),v=e.getModel("splitLine"),x=e.getModel("axisTick"),_=e.getModel("axisLabel"),b=e.get("splitNumber"),S=x.get("splitNumber"),w=(0,Ge.lo)(v.get("length"),g),M=(0,Ge.lo)(x.get("length"),g),A=o,I=(a-o)/b,C=I/S,T=v.getModel("lineStyle").getLineStyle(),D=x.getModel("lineStyle").getLineStyle(),L=v.get("distance"),k=0;k<=b;k++){if(u=Math.cos(A),c=Math.sin(A),v.get("show")){var O=L?L+l:l,P=new jn.A({shape:{x1:u*(g-O)+d,y1:c*(g-O)+p,x2:u*(g-w-O)+d,y2:c*(g-w-O)+p},style:T,silent:!0});"auto"===T.stroke&&P.setStyle({stroke:i(k/b)}),h.add(P)}if(_.get("show")){O=_.get("distance")+L;var N=hf((0,Ge.LI)(k/b*(m-y)+y),_.get("formatter")),R=i(k/b),E=u*(g-w-O)+d,V=c*(g-w-O)+p,z=_.get("rotate"),B=0;"radial"===z?(B=-A+2*Math.PI,B>Math.PI/2&&(B+=Math.PI)):"tangential"===z?B=-A-Math.PI/2:(0,f.isNumber)(z)&&(B=z*Math.PI/180),0===B?h.add(new Gn.Ay({style:(0,pn.VB)(_,{text:N,x:E,y:V,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:R}),silent:!0})):h.add(new Gn.Ay({style:(0,pn.VB)(_,{text:N,x:E,y:V,verticalAlign:"middle",align:"center"},{inheritColor:R}),silent:!0,originX:E,originY:V,rotation:B}))}if(x.get("show")&&k!==b){O=x.get("distance");O=O?O+l:l;for(var G=0;G<=S;G++){u=Math.cos(A),c=Math.sin(A);var F=new jn.A({shape:{x1:u*(g-O)+d,y1:c*(g-O)+p,x2:u*(g-M-O)+d,y2:c*(g-M-O)+p},silent:!0,style:D});"auto"===D.stroke&&F.setStyle({stroke:i((k+G/S)/b)}),h.add(F),A+=C}A-=C}else A+=I}},t.prototype._renderPointer=function(e,t,n,i,r,o,a,s,l){var u=this.group,c=this._data,h=this._progressEls,d=[],p=e.get(["pointer","show"]),g=e.getModel("progress"),y=g.get("show"),m=e.getData(),v=m.mapDimension("value"),x=+e.get("min"),_=+e.get("max"),b=[x,_],S=[o,a];function w(t,n){var i,o=m.getItemModel(t),a=o.getModel("pointer"),s=(0,Ge.lo)(a.get("width"),r.r),l=(0,Ge.lo)(a.get("length"),r.r),u=e.get(["pointer","icon"]),c=a.get("offsetCenter"),h=(0,Ge.lo)(c[0],r.r),d=(0,Ge.lo)(c[1],r.r),p=a.get("keepAspect");return i=u?(0,fn.v5)(u,h-s/2,d-l,s,l,null,p):new uf({shape:{angle:-Math.PI/2,width:s,r:l,x:h,y:d}}),i.rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function M(e,t){var n=g.get("roundCap"),i=n?Eo:Wn.A,a=g.get("overlap"),u=a?g.get("width"):l/m.count(),c=a?r.r-u:r.r-(e+1)*u,h=a?r.r:r.r-e*u,d=new i({shape:{startAngle:o,endAngle:t,cx:r.cx,cy:r.cy,clockwise:s,r0:c,r:h}});return a&&(d.z2=(0,Ge.Cb)(m.get(v,e),[x,_],[100,0],!0)),d}(y||p)&&(m.diff(c).add((function(t){var n=m.get(v,t);if(p){var i=w(t,o);Vn.LW(i,{rotation:-((isNaN(+n)?S[0]:(0,Ge.Cb)(n,b,S,!0))+Math.PI/2)},e),u.add(i),m.setItemGraphicEl(t,i)}if(y){var r=M(t,o),a=g.get("clip");Vn.LW(r,{shape:{endAngle:(0,Ge.Cb)(n,b,S,a)}},e),u.add(r),(0,R.a)(e.seriesIndex,m.dataType,t,r),d[t]=r}})).update((function(t,n){var i=m.get(v,t);if(p){var r=c.getItemGraphicEl(n),a=r?r.rotation:o,s=w(t,a);s.rotation=a,Vn.oi(s,{rotation:-((isNaN(+i)?S[0]:(0,Ge.Cb)(i,b,S,!0))+Math.PI/2)},e),u.add(s),m.setItemGraphicEl(t,s)}if(y){var l=h[n],f=l?l.shape.endAngle:o,x=M(t,f),_=g.get("clip");Vn.oi(x,{shape:{endAngle:(0,Ge.Cb)(i,b,S,_)}},e),u.add(x),(0,R.a)(e.seriesIndex,m.dataType,t,x),d[t]=x}})).execute(),m.each((function(e){var t=m.getItemModel(e),n=t.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(p){var s=m.getItemGraphicEl(e),l=m.getItemVisual(e,"style"),u=l.fill;if(s instanceof Bn.Ay){var c=s.style;s.useStyle((0,f.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",i((0,Ge.Cb)(m.get(v,e),b,[0,1],!0))),s.z2EmphasisLift=0,(0,gn.Mx)(s,t),(0,gn.Lm)(s,r,o,a)}if(y){var h=d[e];h.useStyle(m.getItemVisual(e,"style")),h.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),h.z2EmphasisLift=0,(0,gn.Mx)(h,t),(0,gn.Lm)(h,r,o,a)}})),this._progressEls=d)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor"),i=n.get("show");if(i){var r=n.get("size"),o=n.get("icon"),a=n.get("offsetCenter"),s=n.get("keepAspect"),l=(0,fn.v5)(o,t.cx-r/2+(0,Ge.lo)(a[0],t.r),t.cy-r/2+(0,Ge.lo)(a[1],t.r),r,r,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},t.prototype._renderTitleAndDetail=function(e,t,n,i,r){var o=this,a=e.getData(),s=a.mapDimension("value"),l=+e.get("min"),u=+e.get("max"),c=new zn.A,h=[],d=[],p=e.isAnimationEnabled(),f=e.get(["pointer","showAbove"]);a.diff(this._data).add((function(e){h[e]=new Gn.Ay({silent:!0}),d[e]=new Gn.Ay({silent:!0})})).update((function(e,t){h[e]=o._titleEls[t],d[e]=o._detailEls[t]})).execute(),a.each((function(t){var n=a.getItemModel(t),o=a.get(s,t),g=new zn.A,y=i((0,Ge.Cb)(o,[l,u],[0,1],!0)),m=n.getModel("title");if(m.get("show")){var v=m.get("offsetCenter"),x=r.cx+(0,Ge.lo)(v[0],r.r),_=r.cy+(0,Ge.lo)(v[1],r.r),b=h[t];b.attr({z2:f?0:2,style:(0,pn.VB)(m,{x,y:_,text:a.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:y})}),g.add(b)}var S=n.getModel("detail");if(S.get("show")){var w=S.get("offsetCenter"),M=r.cx+(0,Ge.lo)(w[0],r.r),A=r.cy+(0,Ge.lo)(w[1],r.r),I=(0,Ge.lo)(S.get("width"),r.r),C=(0,Ge.lo)(S.get("height"),r.r),T=e.get(["progress","show"])?a.getItemVisual(t,"style").fill:y,D=(b=d[t],S.get("formatter"));b.attr({z2:f?0:2,style:(0,pn.VB)(S,{x:M,y:A,text:hf(o,D),width:isNaN(I)?null:I,height:isNaN(C)?null:C,align:"center",verticalAlign:"middle"},{inheritColor:T})}),(0,pn.Oh)(b,{normal:S},o,(function(e){return hf(e,D)})),p&&(0,pn.xb)(b,t,a,e,{getFormattedLabel:function(e,t,n,i,r,a){return hf(a?a.interpolatedValue:o,D)}}),g.add(b)}c.add(g)})),this.group.add(c),this._titleEls=h,this._detailEls=d},t.type="gauge",t}(h.A);const pf=df;var ff=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return(0,Oe.C6)(t,e),t.prototype.getInitialData=function(e,t){return ka(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}(p.A);const gf=ff;function yf(e){e.registerChartView(pf),e.registerSeriesModel(gf)}var mf=["itemStyle","opacity"],vf=function(e){function t(t,n){var i=e.call(this)||this,r=i,o=new Xn.A,a=new Gn.Ay;return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(t,n,!0),i}return(0,Oe.C6)(t,e),t.prototype.updateData=function(e,t,n){var i=this,r=e.hostModel,o=e.getItemModel(t),a=e.getItemLayout(t),s=o.getModel("emphasis"),l=o.get(mf);l=null==l?1:l,n||(0,Vn.ap)(i),i.useStyle(e.getItemVisual(t,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,Vn.LW(i,{style:{opacity:l}},r,t)):Vn.oi(i,{style:{opacity:l},shape:{points:a.points}},r,t),(0,gn.Mx)(i,o),this._updateLabel(e,t),(0,gn.Lm)(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e,t){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=e.hostModel,a=e.getItemModel(t),s=e.getItemLayout(t),l=s.label,u=e.getItemVisual(t,"style"),c=u.fill;(0,pn.qM)(r,(0,pn.lx)(a),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:u.opacity,defaultText:e.getName(t)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:c,outsideFill:c});var h=l.linePoints;i.setShape({points:h}),n.textGuideLineConfig={anchor:h?new Oi.A(h[0][0],h[0][1]):null},Vn.oi(r,{style:{x:l.x,y:l.y}},o,t),r.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),or(n,ar(a),{stroke:c})},t}(Yn.A),xf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return(0,Oe.C6)(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._data,o=this.group;i.diff(r).add((function(e){var t=new vf(i,e);i.setItemGraphicEl(e,t),o.add(t)})).update((function(e,t){var n=r.getItemGraphicEl(t);n.updateData(i,e),o.add(n),i.setItemGraphicEl(e,n)})).remove((function(t){var n=r.getItemGraphicEl(t);Vn.t5(n,e,t)})).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(h.A);const _f=xf;var bf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Pa(f.bind(this.getData,this),f.bind(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return ka(this,{coordDimensions:["value"],encodeDefaulter:f.curry(he.ln,this)})},t.prototype._defaultLabelLine=function(e){(0,N.M5)(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),i=e.prototype.getDataParams.call(this,t),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,t)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(p.A);const Sf=bf;function wf(e,t){return dn.dV(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Mf(e,t){for(var n=e.mapDimension("value"),i=e.mapArray(n,(function(e){return e})),r=[],o="ascending"===t,a=0,s=e.count();a<s;a++)r[a]=a;return(0,f.isFunction)(t)?r.sort(t):"none"!==t&&r.sort((function(e,t){return o?i[e]-i[t]:i[t]-i[e]})),r}function Af(e){var t=e.hostModel,n=t.get("orient");e.each((function(t){var i,r,o,a,s=e.getItemModel(t),l=s.getModel("label"),u=l.get("position"),c=s.getModel("labelLine"),h=e.getItemLayout(t),d=h.points,p="inner"===u||"inside"===u||"center"===u||"insideLeft"===u||"insideRight"===u;if(p)"insideLeft"===u?(r=(d[0][0]+d[3][0])/2+5,o=(d[0][1]+d[3][1])/2,i="left"):"insideRight"===u?(r=(d[1][0]+d[2][0])/2-5,o=(d[1][1]+d[2][1])/2,i="right"):(r=(d[0][0]+d[1][0]+d[2][0]+d[3][0])/4,o=(d[0][1]+d[1][1]+d[2][1]+d[3][1])/4,i="center"),a=[[r,o],[r,o]];else{var f=void 0,g=void 0,y=void 0,m=void 0,v=c.get("length");0,"left"===u?(f=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,y=f-v,r=y-5,i="right"):"right"===u?(f=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,y=f+v,r=y+5,i="left"):"top"===u?(f=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,m=g-v,o=m-5,i="center"):"bottom"===u?(f=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,m=g+v,o=m+5,i="center"):"rightTop"===u?(f="horizontal"===n?d[3][0]:d[1][0],g="horizontal"===n?d[3][1]:d[1][1],"horizontal"===n?(m=g-v,o=m-5,i="center"):(y=f+v,r=y+5,i="top")):"rightBottom"===u?(f=d[2][0],g=d[2][1],"horizontal"===n?(m=g+v,o=m+5,i="center"):(y=f+v,r=y+5,i="bottom")):"leftTop"===u?(f=d[0][0],g="horizontal"===n?d[0][1]:d[1][1],"horizontal"===n?(m=g-v,o=m-5,i="center"):(y=f-v,r=y-5,i="right")):"leftBottom"===u?(f="horizontal"===n?d[1][0]:d[3][0],g="horizontal"===n?d[1][1]:d[2][1],"horizontal"===n?(m=g+v,o=m+5,i="center"):(y=f-v,r=y-5,i="right")):(f=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,"horizontal"===n?(m=g+v,o=m+5,i="center"):(y=f+v,r=y+5,i="left")),"horizontal"===n?(y=f,r=y):(m=g,o=m),a=[[f,g],[y,m]]}h.label={linePoints:a,x:r,y:o,verticalAlign:"middle",textAlign:i,inside:p}}))}function If(e,t){e.eachSeriesByType("funnel",(function(e){var n=e.getData(),i=n.mapDimension("value"),r=e.get("sort"),o=wf(e,t),a=e.get("orient"),s=o.width,l=o.height,u=Mf(n,r),c=o.x,h=o.y,d="horizontal"===a?[(0,Ge.lo)(e.get("minSize"),l),(0,Ge.lo)(e.get("maxSize"),l)]:[(0,Ge.lo)(e.get("minSize"),s),(0,Ge.lo)(e.get("maxSize"),s)],p=n.getDataExtent(i),f=e.get("min"),g=e.get("max");null==f&&(f=Math.min(p[0],0)),null==g&&(g=p[1]);var y=e.get("funnelAlign"),m=e.get("gap"),v="horizontal"===a?s:l,x=(v-m*(n.count()-1))/n.count(),_=function(e,t){if("horizontal"===a){var r=n.get(i,e)||0,o=(0,Ge.Cb)(r,[f,g],d,!0),u=void 0;switch(y){case"top":u=h;break;case"center":u=h+(l-o)/2;break;case"bottom":u=h+(l-o);break}return[[t,u],[t,u+o]]}var p,m=n.get(i,e)||0,v=(0,Ge.Cb)(m,[f,g],d,!0);switch(y){case"left":p=c;break;case"center":p=c+(s-v)/2;break;case"right":p=c+s-v;break}return[[p,t],[p+v,t]]};"ascending"===r&&(x=-x,m=-m,"horizontal"===a?c+=s:h+=l,u=u.reverse());for(var b=0;b<u.length;b++){var S=u[b],w=u[b+1],M=n.getItemModel(S);if("horizontal"===a){var A=M.get(["itemStyle","width"]);null==A?A=x:(A=(0,Ge.lo)(A,s),"ascending"===r&&(A=-A));var I=_(S,c),C=_(w,c+A);c+=A+m,n.setItemLayout(S,{points:I.concat(C.slice().reverse())})}else{var T=M.get(["itemStyle","height"]);null==T?T=x:(T=(0,Ge.lo)(T,l),"ascending"===r&&(T=-T));I=_(S,h),C=_(w,h+T);h+=T+m,n.setItemLayout(S,{points:I.concat(C.slice().reverse())})}}Af(n)}))}function Cf(e){e.registerChartView(_f),e.registerSeriesModel(Sf),e.registerLayout(If),e.registerProcessor(ba("funnel"))}var Tf=.3,Df=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new zn.A,n._initialized=!1,n}return(0,Oe.C6)(t,e),t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,i){this._progressiveEls=null;var r=this._dataGroup,o=e.getData(),a=this._data,s=e.coordinateSystem,l=s.dimensions,u=Pf(e);function c(e){var t=Of(o,r,e,l,s);Nf(t,o,e,u)}function h(t,n){var i=a.getItemGraphicEl(n),r=kf(o,t,l,s);o.setItemGraphicEl(t,i),Vn.oi(i,{shape:{points:r}},e,t),(0,Vn.ap)(i),Nf(i,o,t,u)}function d(e){var t=a.getItemGraphicEl(e);r.remove(t)}if(o.diff(a).add(c).update(h).remove(d).execute(),!this._initialized){this._initialized=!0;var p=Lf(s,e,(function(){setTimeout((function(){r.removeClipPath()}))}));r.setClipPath(p)}this._data=o},t.prototype.incrementalPrepareRender=function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,n){for(var i=t.getData(),r=t.coordinateSystem,o=r.dimensions,a=Pf(t),s=this._progressiveEls=[],l=e.start;l<e.end;l++){var u=Of(i,this._dataGroup,l,o,r);u.incremental=!0,Nf(u,i,l,a),s.push(u)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(h.A);function Lf(e,t,n){var i=e.model,r=e.getRect(),o=new Zn.A({shape:{x:r.x,y:r.y,width:r.width,height:r.height}}),a="horizontal"===i.get("layout")?"width":"height";return o.setShape(a,0),Vn.LW(o,{shape:{width:r.width,height:r.height}},t,n),o}function kf(e,t,n,i){for(var r=[],o=0;o<n.length;o++){var a=n[o],s=e.get(e.mapDimension(a),t);Rf(s,i.getAxis(a).type)||r.push(i.dataToPoint(s,a))}return r}function Of(e,t,n,i,r){var o=kf(e,n,i,r),a=new Xn.A({shape:{points:o},z2:10});return t.add(a),e.setItemGraphicEl(n,a),a}function Pf(e){var t=e.get("smooth",!0);return!0===t&&(t=Tf),t=(0,Ge.Sm)(t),(0,f.eqNaN)(t)&&(t=0),{smooth:t}}function Nf(e,t,n,i){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",i.smooth);var r=t.getItemModel(n),o=r.getModel("emphasis");(0,gn.Mx)(e,r,"lineStyle"),(0,gn.Lm)(e,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function Rf(e,t){return"category"===t?null==e:null==e||isNaN(e)}const Ef=Df;var Vf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return(0,Oe.C6)(t,e),t.prototype.getInitialData=function(e,t){return ke(null,this,{useEncodeDefaulter:(0,f.bind)(zf,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,n=this.getData(),i=[];return t.eachActiveState(n,(function(t,r){e===t&&i.push(n.getRawIndex(r))})),i},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(p.A);function zf(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return(0,f.each)(t.dimensions,(function(e){var t=Bf(e);n[e]=t})),n}}function Bf(e){return+e.replace("dim","")}const Gf=Vf;var Ff=["lineStyle","opacity"],Hf={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,i={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(e,t){n.eachActiveState(t,(function(e,n){var r=i[e];if("normal"===e&&t.hasItemOption){var o=t.getItemModel(n).get(Ff,!0);null!=o&&(r=o)}var a=t.ensureUniqueItemVisual(n,"style");a.opacity=r}),e.start,e.end)}}}};const Wf=Hf;function Uf(e){Yf(e),Xf(e)}function Yf(e){if(!e.parallel){var t=!1;f.each(e.series,(function(e){e&&"parallel"===e.type&&(t=!0)})),t&&(e.parallel=[{}])}}function Xf(e){var t=N.qB(e.parallelAxis);f.each(t,(function(t){if(f.isObject(t)){var n=t.parallelIndex||0,i=N.qB(e.parallel)[n];i&&i.parallelAxisDefault&&f.merge(t,i.parallelAxisDefault,!1)}}))}var Zf=5,jf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},(0,f.each)(qf,(function(e,t){n.getZr().on(t,this._handlers[t]=(0,f.bind)(e,this))}),this)),(0,ce.N)(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,t){(0,ce.IU)(this,"_throttledDispatchExpand"),(0,f.each)(this._handlers,(function(e,n){t.getZr().off(n,e)})),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction((0,f.extend)({type:"parallelAxisExpand"},e))},t.type="parallel",t}(c.A),qf={mousedown:function(e){$f(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if($f(this,"click")&&t){var n=[e.offsetX,e.offsetY],i=Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2);if(i>Zf)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&$f(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function $f(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}const Kf=jf;var Jf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&f.merge(t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){f.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=f.filter(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);f.each(n,(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(d.A);const Qf=Jf;var eg=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return(0,Oe.C6)(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(Ai);const tg=eg;function ng(e,t,n,i,r,o){e=e||0;var a=n[1]-n[0];if(null!=r&&(r=rg(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(t[1]-t[0]);s=rg(s,[0,a]),r=o=rg(s,[r,o]),i=0}t[0]=rg(t[0],n),t[1]=rg(t[1],n);var l=ig(t,i);t[i]+=e;var u,c=r||0,h=n.slice();return l.sign<0?h[0]+=c:h[1]-=c,t[i]=rg(t[i],h),u=ig(t,i),null!=r&&(u.sign!==l.sign||u.span<r)&&(t[1-i]=t[i]+l.sign*r),u=ig(t,i),null!=o&&u.span>o&&(t[1-i]=t[i]+u.sign*o),t}function ig(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function rg(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var og=f.each,ag=Math.min,sg=Math.max,lg=Math.floor,ug=Math.ceil,cg=Ge.LI,hg=Math.PI,dg=function(){function e(e,t,n){this.type="parallel",this._axesMap=f.createHashMap(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=e.dimensions,r=e.parallelAxisIndex;og(i,(function(e,n){var i=r[n],o=t.getComponent("parallelAxis",i),a=this._axesMap.set(e,new tg(e,en(o),[0,0],o.get("type"),i)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this}),this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,i=t.layoutBase,r=t.pixelDimIndex,o=e[1-r],a=e[r];return o>=n&&o<=n+t.axisLength&&a>=i&&a<=i+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var i=n.getData();og(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(i,i.mapDimension(e)),Qt(t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=dn.dV(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=t.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],u=this.dimensions.length,c=pg(t.get("axisExpandWidth"),l),h=pg(t.get("axisExpandCount")||0,[0,u]),d=t.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,p=t.get("axisExpandWindow");if(p)e=pg(p[1]-p[0],l),p[1]=p[0]+e;else{e=pg(c*(h-1),l);var f=t.get("axisExpandCenter")||lg(u/2);p=[c*f-e/2],p[1]=p[0]+e}var g=(s-e)/(u-h);g<3&&(g=0);var y=[lg(cg(p[0]/c,1))+1,ug(cg(p[1]/c,1))-1],m=g/c*p[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:p,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;t.each((function(e){var t=[0,i.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),og(n,(function(t,n){var o=(i.axisExpandable?gg:fg)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:hg/2,vertical:0},l=[a[r].x+e.x,a[r].y+e.y],u=s[r],c=se.create();se.rotate(c,c,u),se.translate(c,c,l),this._axesLayout[t]={position:l,rotation:u,transform:c,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,i){null==n&&(n=0),null==i&&(i=e.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];f.each(o,(function(t){a.push(e.mapDimension(t)),s.push(r.get(t).model)}));for(var l=this.hasAxisBrushed(),u=n;u<i;u++){var c=void 0;if(l){c="active";for(var h=e.getValues(a,u),d=0,p=o.length;d<p;d++){var g=s[d].getActiveState(h[d]);if("inactive"===g){c="inactive";break}}}else c="normal";t(c,u)}},e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,i=0,r=e.length;i<r;i++)"normal"!==t.get(e[i]).model.getActiveState()&&(n=!0);return n},e.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return En.applyTransform([e,0],n.transform)},e.prototype.getAxisLayout=function(e){return f.clone(this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,i=t.axisExpandWindow.slice(),r=i[1]-i[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:i};var a,s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l="slide",u=t.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=null!=c[0];if(u)h&&u&&s<r*c[0]?(l="jump",a=s-r*c[2]):h&&u&&s>r*(1-c[0])?(l="jump",a=s-r*(1-c[2])):(a=s-r*c[1])>=0&&(a=s-r*(1-c[1]))<=0&&(a=0),a*=t.axisExpandWidth/u,a?ng(a,i,o,"all"):l="none";else{var d=i[1]-i[0],p=o[1]*s/d;i=[sg(0,p-d/2)],i[1]=ag(o[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:l}},e}();function pg(e,t){return ag(sg(e,t[0]),t[1])}function fg(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function gg(e,t){var n,i,r=t.layoutLength,o=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,u=s,c=!1;return e<l[0]?(n=e*s,i=s):e<=l[1]?(n=t.axisExpandWindow0Pos+e*o-t.axisExpandWindow[0],u=o,c=!0):(n=r-(a-1-e)*s,i=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:i}}const yg=dg;function mg(e,t){var n=[];return e.eachComponent("parallel",(function(i,r){var o=new yg(i,e,t);o.name="parallel_"+r,o.resize(i,t),i.coordinateSystem=o,o.model=i,n.push(o)})),e.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var t=e.getReferringComponents("parallel",N.US).models[0];e.coordinateSystem=t.coordinateSystem}})),n}var vg={create:mg};const xg=vg;var _g=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return(0,Oe.C6)(t,e),t.prototype.getAreaSelectStyle=function(){return(0,Ch.A)([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=f.clone(e);if(t)for(var n=t.length-1;n>=0;n--)Ge.Y6(t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,r=t.length;i<r;i++)if(t[i][0]<=e&&e<=t[i][1])return"active";return"inactive"},t}(d.A);f.mixin(_g,hn);const bg=_g;var Sg=!0,wg=Math.min,Mg=Math.max,Ag=Math.pow,Ig=1e4,Cg=6,Tg=6,Dg="globalPan",Lg={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},kg={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Og={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Pg=0,Ng=function(e){function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new zn.A,n._uid="brushController_"+Pg++,(0,f.each)(dy,(function(e,t){this._handlers[t]=(0,f.bind)(e,this)}),n),n}return(0,Oe.C6)(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||El(t,Dg,this._uid),(0,f.each)(this._handlers,(function(e,n){t.on(n,e)})),this._brushType=e.brushType,this._brushOption=(0,f.merge)((0,f.clone)(Og),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;Vl(e,Dg,this._uid),(0,f.each)(this._handlers,(function(t,n){e.off(n,t)})),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};(0,f.each)(e,(function(e){t[e.panelId]=(0,f.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,f.map)(e,(function(e){return(0,f.merge)((0,f.clone)(Og),e,!0)}));var t="\0-brush-index-",n=this._covers,i=this._covers=[],r=this,o=this._creatingCover;return new M(n,e,s,a).add(l).update(l).remove(u).execute(),this;function a(e,n){return(null!=e.id?e.id:t+n)+"-"+e.brushType}function s(e,t){return a(e.__brushOption,t)}function l(t,a){var s=e[t];if(null!=a&&n[a]===o)i[t]=n[a];else{var l=i[t]=null!=a?(n[a].__brushOption=s,n[a]):Eg(r,Rg(r,s));Bg(r,l)}}function u(e){n[e]!==o&&r.group.remove(n[e])}},t.prototype.unmount=function(){return this.enableBrush(!1),Wg(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Pl.A);function Rg(e,t){var n=gy[t.brushType].createCover(e,t);return n.__brushOption=t,zg(n,t),e.group.add(n),n}function Eg(e,t){var n=Gg(t);return n.endCreating&&(n.endCreating(e,t),zg(t,t.__brushOption)),t}function Vg(e,t){var n=t.__brushOption;Gg(t).updateCoverShape(e,t,n.range,n)}function zg(e,t){var n=t.z;null==n&&(n=Ig),e.traverse((function(e){e.z=n,e.z2=n}))}function Bg(e,t){Gg(t).updateCommon(e,t),Vg(e,t)}function Gg(e){return gy[e.__brushOption.brushType]}function Fg(e,t,n){var i,r=e._panels;if(!r)return Sg;var o=e._transform;return(0,f.each)(r,(function(e){e.isTargetByCursor(t,n,o)&&(i=e)})),i}function Hg(e,t){var n=e._panels;if(!n)return Sg;var i=t.__brushOption.panelId;return null!=i?n[i]:Sg}function Wg(e){var t=e._covers,n=t.length;return(0,f.each)(t,(function(t){e.group.remove(t)}),e),t.length=0,!!n}function Ug(e,t){var n=(0,f.map)(e._covers,(function(e){var t=e.__brushOption,n=(0,f.clone)(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}}));e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function Yg(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],i=t[0],r=n[0]-i[0],o=n[1]-i[1],a=Ag(r*r+o*o,.5);return a>Cg}function Xg(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function Zg(e,t,n,i){var r=new zn.A;return r.add(new Zn.A({name:"main",style:Kg(n),silent:!0,draggable:!0,cursor:"move",drift:(0,f.curry)(ny,e,t,r,["n","s","w","e"]),ondragend:(0,f.curry)(Ug,t,{isEnd:!0})})),(0,f.each)(i,(function(n){r.add(new Zn.A({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:(0,f.curry)(ny,e,t,r,n),ondragend:(0,f.curry)(Ug,t,{isEnd:!0})}))})),r}function jg(e,t,n,i){var r=i.brushStyle.lineWidth||0,o=Mg(r,Tg),a=n[0][0],s=n[1][0],l=a-r/2,u=s-r/2,c=n[0][1],h=n[1][1],d=c-o+r/2,p=h-o+r/2,f=c-a,g=h-s,y=f+r,m=g+r;$g(e,t,"main",a,s,f,g),i.transformable&&($g(e,t,"w",l,u,o,m),$g(e,t,"e",d,u,o,m),$g(e,t,"n",l,u,y,o),$g(e,t,"s",l,p,y,o),$g(e,t,"nw",l,u,o,o),$g(e,t,"ne",d,u,o,o),$g(e,t,"sw",l,p,o,o),$g(e,t,"se",d,p,o,o))}function qg(e,t){var n=t.__brushOption,i=n.transformable,r=t.childAt(0);r.useStyle(Kg(n)),r.attr({silent:!i,cursor:i?"move":"default"}),(0,f.each)([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var r=t.childOfName(n.join("")),o=1===n.length?ey(e,n[0]):ty(e,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?kg[o]+"-resize":null})}))}function $g(e,t,n,i,r,o,a){var s=t.childOfName(n);s&&s.setShape(ay(oy(e,t,[[i,r],[i+o,r+a]])))}function Kg(e){return(0,f.defaults)({strokeNoScale:!0},e.brushStyle)}function Jg(e,t,n,i){var r=[wg(e,n),wg(t,i)],o=[Mg(e,n),Mg(t,i)];return[[r[0],o[0]],[r[1],o[1]]]}function Qg(e){return En.getTransform(e.group)}function ey(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},r=En.transformDirection(n[t],Qg(e));return i[r]}function ty(e,t){var n=[ey(e,t[0]),ey(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function ny(e,t,n,i,r,o){var a=n.__brushOption,s=e.toRectRange(a.range),l=ry(t,r,o);(0,f.each)(i,(function(e){var t=Lg[e];s[t[0]][t[1]]+=l[t[0]]})),a.range=e.fromRectRange(Jg(s[0][0],s[1][0],s[0][1],s[1][1])),Bg(t,n),Ug(t,{isEnd:!1})}function iy(e,t,n,i){var r=t.__brushOption.range,o=ry(e,n,i);(0,f.each)(r,(function(e){e[0]+=o[0],e[1]+=o[1]})),Bg(e,t),Ug(e,{isEnd:!1})}function ry(e,t,n){var i=e.group,r=i.transformCoordToLocal(t,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function oy(e,t,n){var i=Hg(e,t);return i&&i!==Sg?i.clipPath(n,e._transform):(0,f.clone)(n)}function ay(e){var t=wg(e[0][0],e[1][0]),n=wg(e[0][1],e[1][1]),i=Mg(e[0][0],e[1][0]),r=Mg(e[0][1],e[1][1]);return{x:t,y:n,width:i-t,height:r-n}}function sy(e,t,n){if(e._brushType&&!fy(e,t.offsetX,t.offsetY)){var i=e._zr,r=e._covers,o=Fg(e,t,n);if(!e._dragging)for(var a=0;a<r.length;a++){var s=r[a].__brushOption;if(o&&(o===Sg||s.panelId===o.panelId)&&gy[s.brushType].contain(r[a],n[0],n[1]))return}o&&i.setCursorStyle("crosshair")}}function ly(e){var t=e.event;t.preventDefault&&t.preventDefault()}function uy(e,t,n){return e.childOfName("main").contain(t,n)}function cy(e,t,n,i){var r,o=e._creatingCover,a=e._creatingPanel,s=e._brushOption;if(e._track.push(n.slice()),Yg(e)||o){if(a&&!o){"single"===s.brushMode&&Wg(e);var l=(0,f.clone)(s);l.brushType=hy(l.brushType,a),l.panelId=a===Sg?null:a.panelId,o=e._creatingCover=Rg(e,l),e._covers.push(o)}if(o){var u=gy[hy(e._brushType,a)],c=o.__brushOption;c.range=u.getCreatingRange(oy(e,o,e._track)),i&&(Eg(e,o),u.updateCommon(e,o)),Vg(e,o),r={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&Fg(e,t,n)&&Wg(e)&&(r={isEnd:i,removeOnClick:!0});return r}function hy(e,t){return"auto"===e?t.defaultBrushType:e}var dy={mousedown:function(e){if(this._dragging)py(this,e);else if(!e.target||!e.target.draggable){ly(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var n=this._creatingPanel=Fg(this,e,t);n&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,i=this.group.transformCoordToLocal(t,n);if(sy(this,e,i),this._dragging){ly(e);var r=cy(this,e,i,!1);r&&Ug(this,r)}},mouseup:function(e){py(this,e)}};function py(e,t){if(e._dragging){ly(t);var n=t.offsetX,i=t.offsetY,r=e.group.transformCoordToLocal(n,i),o=cy(e,t,r,!0);e._dragging=!1,e._track=[],e._creatingCover=null,o&&Ug(e,o)}}function fy(e,t,n){var i=e._zr;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}var gy={lineX:yy(0),lineY:yy(1),rect:{createCover:function(e,t){function n(e){return e}return Zg({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=Xg(e);return Jg(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,i){jg(e,t,n,i)},updateCommon:qg,contain:uy},polygon:{createCover:function(e,t){var n=new zn.A;return n.add(new Xn.A({name:"main",style:Kg(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Yn.A({name:"main",draggable:!0,drift:(0,f.curry)(iy,e,t),ondragend:(0,f.curry)(Ug,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,i){t.childAt(0).setShape({points:oy(e,t,n)})},updateCommon:qg,contain:uy}};function yy(e){return{createCover:function(t,n){return Zg({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=Xg(t),i=wg(n[0][e],n[1][e]),r=Mg(n[0][e],n[1][e]);return[i,r]},updateCoverShape:function(t,n,i,r){var o,a=Hg(t,n);if(a!==Sg&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(e);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[i,o];e&&l.reverse(),jg(t,n,l,r)},updateCommon:qg,contain:uy}}const my=Ng;function vy(e){return e=by(e),function(t){return En.clipPointsByRect(t,e)}}function xy(e,t){return e=by(e),function(n){var i=null!=t?t:n,r=i?e.width:e.height,o=i?e.x:e.y;return[o,o+(r||0)]}}function _y(e,t,n){var i=by(e);return function(e,r){return i.contain(r[0],r[1])&&!jl(e,t,n)}}function by(e){return _t.A.create(e)}var Sy=["axisLine","axisTickLabel","axisName"],wy=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new my(n.getZr())).on("brush",f.bind(this._onBrush,this))},t.prototype.render=function(e,t,n,i){if(!My(e,t,i)){this.axisModel=e,this.api=n,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new zn.A,this.group.add(this._axisGroup),e.get("show")){var o=Iy(e,t),a=o.coordinateSystem,s=e.getAreaSelectStyle(),l=s.width,u=e.axis.dim,c=a.getAxisLayout(u),h=f.extend({strokeContainThreshold:l},c),d=new Vs(e,h);f.each(Sy,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(h,s,e,o,l,n),En.groupTransition(r,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,i,r,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=_t.A.create({x:a[0],y:-r/2,width:s,height:r});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:vy(u),isTargetByCursor:_y(u,o,i),getLinearBrushOtherExtent:xy(u,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(Ay(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,i=n.axis,r=f.map(t,(function(e){return[i.coordToData(e.range[0],!0),i.coordToData(e.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:r})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(c.A);function My(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function Ay(e){var t=e.axis;return f.map(e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function Iy(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const Cy=wy;var Ty={type:"axisAreaSelect",event:"axisAreaSelected"};function Dy(e){e.registerAction(Ty,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),e.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))}var Ly={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function ky(e){e.registerComponentView(Kf),e.registerComponentModel(Qf),e.registerCoordinateSystem("parallel",xg),e.registerPreprocessor(Uf),e.registerComponentModel(bg),e.registerComponentView(Cy),rs(e,"parallel",bg,Ly),Dy(e)}function Oy(e){x(ky),e.registerChartView(Ef),e.registerSeriesModel(Gf),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Wf)}var Py=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),Ny=function(e){function t(t){return e.call(this,t)||this}return(0,Oe.C6)(t,e),t.prototype.getDefaultShape=function(){return new Py},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){(0,gn.HY)(this)},t.prototype.downplay=function(){(0,gn.SD)(this)},t}(Pi.Ay),Ry=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return(0,Oe.C6)(t,e),t.prototype.render=function(e,t,n){var i=this,r=e.getGraph(),o=this.group,a=e.layoutInfo,s=a.width,l=a.height,u=e.getData(),c=e.getData("edge"),h=e.get("orient");this._model=e,o.removeAll(),o.x=a.x,o.y=a.y,r.eachEdge((function(t){var n=new Ny,i=(0,R.z)(n);i.dataIndex=t.dataIndex,i.seriesIndex=e.seriesIndex,i.dataType="edge";var r,a,u,d,p,g,y,m,v=t.getModel(),x=v.getModel("lineStyle"),_=x.get("curveness"),b=t.node1.getLayout(),S=t.node1.getModel(),w=S.get("localX"),M=S.get("localY"),A=t.node2.getLayout(),I=t.node2.getModel(),C=I.get("localX"),T=I.get("localY"),D=t.getLayout();n.shape.extent=Math.max(1,D.dy),n.shape.orient=h,"vertical"===h?(r=(null!=w?w*s:b.x)+D.sy,a=(null!=M?M*l:b.y)+b.dy,u=(null!=C?C*s:A.x)+D.ty,d=null!=T?T*l:A.y,p=r,g=a*(1-_)+d*_,y=u,m=a*_+d*(1-_)):(r=(null!=w?w*s:b.x)+b.dx,a=(null!=M?M*l:b.y)+D.sy,u=null!=C?C*s:A.x,d=(null!=T?T*l:A.y)+D.ty,p=r*(1-_)+u*_,g=a,y=r*_+u*(1-_),m=d),n.setShape({x1:r,y1:a,x2:u,y2:d,cpx1:p,cpy1:g,cpx2:y,cpy2:m}),n.useStyle(x.getItemStyle()),Ey(n.style,h,t);var L=""+v.get("value"),k=(0,pn.lx)(v,"edgeLabel");(0,pn.qM)(n,k,{labelFetcher:{getFormattedLabel:function(t,n,i,r,o,a){return e.getFormattedLabel(t,n,"edge",r,(0,f.retrieve3)(o,k.normal&&k.normal.get("formatter"),L),a)}},labelDataIndex:t.dataIndex,defaultText:L}),n.setTextConfig({position:"inside"});var O=v.getModel("emphasis");(0,gn.Mx)(n,v,"lineStyle",(function(e){var n=e.getItemStyle();return Ey(n,h,t),n})),o.add(n),c.setItemGraphicEl(t.dataIndex,n);var P=O.get("focus");(0,gn.Lm)(n,"adjacency"===P?t.getAdjacentDataIndices():"trajectory"===P?t.getTrajectoryDataIndices():P,O.get("blurScope"),O.get("disabled"))})),r.eachNode((function(t){var n=t.getLayout(),i=t.getModel(),r=i.get("localX"),a=i.get("localY"),c=i.getModel("emphasis"),h=i.get(["itemStyle","borderRadius"])||0,d=new Zn.A({shape:{x:null!=r?r*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy,r:h},style:i.getModel("itemStyle").getItemStyle(),z2:10});(0,pn.qM)(d,(0,pn.lx)(i),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,"node")}},labelDataIndex:t.dataIndex,defaultText:t.id}),d.disableLabelAnimation=!0,d.setStyle("fill",t.getVisual("color")),d.setStyle("decal",t.getVisual("style").decal),(0,gn.Mx)(d,i),o.add(d),u.setItemGraphicEl(t.dataIndex,d),(0,R.z)(d).dataType="node";var p=c.get("focus");(0,gn.Lm)(d,"adjacency"===p?t.getAdjacentDataIndices():"trajectory"===p?t.getTrajectoryDataIndices():p,c.get("blurScope"),c.get("disabled"))})),u.eachItemGraphicEl((function(t,r){var o=u.getItemModel(r);o.get("draggable")&&(t.drift=function(t,o){i._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:u.getRawIndex(r),localX:this.shape.x/s,localY:this.shape.y/l})},t.ondragend=function(){i._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&o.setClipPath(Vy(o.getBoundingRect(),e,(function(){o.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(h.A);function Ey(e,t,n){switch(e.fill){case"source":e.fill=n.node1.getVisual("color"),e.decal=n.node1.getVisual("style").decal;break;case"target":e.fill=n.node2.getVisual("color"),e.decal=n.node2.getVisual("style").decal;break;case"gradient":var i=n.node1.getVisual("color"),r=n.node2.getVisual("color");(0,f.isString)(i)&&(0,f.isString)(r)&&(e.fill=new Qn.A(0,0,+("horizontal"===t),+("vertical"===t),[{color:i,offset:0},{color:r,offset:1}]))}}function Vy(e,t,n){var i=new Zn.A({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Vn.LW(i,{shape:{width:e.width+20}},t,n),i}const zy=Ry;var By=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],i=e.data||e.nodes||[],r=e.levels||[];this.levelModels=[];for(var o=this.levelModels,a=0;a<r.length;a++)null!=r[a].depth&&r[a].depth>=0&&(o[r[a].depth]=new _.A(r[a],this,t));var s=ef(i,n,this,!0,l);return s.data;function l(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getData().getItemLayout(t);if(i){var r=i.depth,o=n.levelModels[r];o&&(e.parentModel=o)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getGraph().getEdgeByIndex(t),r=i.node1.getLayout();if(r){var o=r.depth,a=n.levelModels[o];a&&(e.parentModel=a)}return e}))}},t.prototype.setNodePosition=function(e,t){var n=this.option.data||this.option.nodes,i=n[e];i.localX=t[0],i.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function i(e){return isNaN(e)||null==e}if("edge"===n){var r=this.getDataParams(e,n),o=r.data,a=r.value,s=o.source+" -- "+o.target;return(0,ml.Qx)("nameValue",{name:s,value:a,noValue:i(a)})}var l=this.getGraph().getNodeByIndex(e),u=l.getLayout().value,c=this.getDataParams(e,n).data.name;return(0,ml.Qx)("nameValue",{name:null!=c?c+"":null,value:u,noValue:i(u)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var i=e.prototype.getDataParams.call(this,t,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(t),o=r.getLayout().value;i.value=o}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(p.A);const Gy=By;function Fy(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),i=e.get("nodeGap"),r=Hy(e,t);e.layoutInfo=r;var o=r.width,a=r.height,s=e.getGraph(),l=s.nodes,u=s.edges;Uy(l);var c=f.filter(l,(function(e){return 0===e.getLayout().value})),h=0!==c.length?0:e.get("layoutIterations"),d=e.get("orient"),p=e.get("nodeAlign");Wy(l,u,n,i,o,a,h,d,p)}))}function Hy(e,t){return dn.dV(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Wy(e,t,n,i,r,o,a,s,l){Yy(e,t,n,r,o,s,l),$y(e,t,o,r,i,a,s),um(e,s)}function Uy(e){f.each(e,(function(e){var t=sm(e.outEdges,am),n=sm(e.inEdges,am),i=e.getValue()||0,r=Math.max(t,n,i);e.setLayout({value:r},!0)}))}function Yy(e,t,n,i,r,o,a){for(var s=[],l=[],u=[],c=[],h=0,d=0;d<t.length;d++)s[d]=1;for(d=0;d<e.length;d++)l[d]=e[d].inEdges.length,0===l[d]&&u.push(e[d]);var p=-1;while(u.length){for(var f=0;f<u.length;f++){var g=u[f],y=g.hostGraph.data.getRawDataItem(g.dataIndex),m=null!=y.depth&&y.depth>=0;m&&y.depth>p&&(p=y.depth),g.setLayout({depth:m?y.depth:h},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var v=0;v<g.outEdges.length;v++){var x=g.outEdges[v],_=t.indexOf(x);s[_]=0;var b=x.node2,S=e.indexOf(b);0===--l[S]&&c.indexOf(b)<0&&c.push(b)}}++h,u=c,c=[]}for(d=0;d<s.length;d++)if(1===s[d])throw new Error("Sankey is a DAG, the original data has cycle!");var w=p>h-1?p:h-1;a&&"left"!==a&&Zy(e,a,o,w);var M="vertical"===o?(r-n)/w:(i-n)/w;qy(e,M,o)}function Xy(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function Zy(e,t,n,i){if("right"===t){var r=[],o=e,a=0;while(o.length){for(var s=0;s<o.length;s++){var l=o[s];l.setLayout({skNodeHeight:a},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];r.indexOf(c.node1)<0&&r.push(c.node1)}}o=r,r=[],++a}f.each(e,(function(e){Xy(e)||e.setLayout({depth:Math.max(0,i-e.getLayout().skNodeHeight)},!0)}))}else"justify"===t&&jy(e,i)}function jy(e,t){f.each(e,(function(e){Xy(e)||e.outEdges.length||e.setLayout({depth:t},!0)}))}function qy(e,t,n){f.each(e,(function(e){var i=e.getLayout().depth*t;"vertical"===n?e.setLayout({y:i},!0):e.setLayout({x:i},!0)}))}function $y(e,t,n,i,r,o,a){var s=Ky(e,a);Jy(s,t,n,i,r,a),Qy(s,r,n,i,a);for(var l=1;o>0;o--)l*=.99,em(s,l,a),Qy(s,r,n,i,a),lm(s,l,a),Qy(s,r,n,i,a)}function Ky(e,t){var n=[],i="vertical"===t?"y":"x",r=(0,N.Sq)(e,(function(e){return e.getLayout()[i]}));return r.keys.sort((function(e,t){return e-t})),f.each(r.keys,(function(e){n.push(r.buckets.get(e))})),n}function Jy(e,t,n,i,r,o){var a=1/0;f.each(e,(function(e){var t=e.length,s=0;f.each(e,(function(e){s+=e.getLayout().value}));var l="vertical"===o?(i-(t-1)*r)/s:(n-(t-1)*r)/s;l<a&&(a=l)})),f.each(e,(function(e){f.each(e,(function(e,t){var n=e.getLayout().value*a;"vertical"===o?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))}))})),f.each(t,(function(e){var t=+e.getValue()*a;e.setLayout({dy:t},!0)}))}function Qy(e,t,n,i,r){var o="vertical"===r?"x":"y";f.each(e,(function(e){var a,s,l;e.sort((function(e,t){return e.getLayout()[o]-t.getLayout()[o]}));for(var u=0,c=e.length,h="vertical"===r?"dx":"dy",d=0;d<c;d++)s=e[d],l=u-s.getLayout()[o],l>0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[h]+t;var p="vertical"===r?i:n;if(l=u-t-p,l>0){a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(d=c-2;d>=0;--d)s=e[d],l=s.getLayout()[o]+s.getLayout()[h]+t-u,l>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}}))}function em(e,t,n){f.each(e.slice().reverse(),(function(e){f.each(e,(function(e){if(e.outEdges.length){var i=sm(e.outEdges,tm,n)/sm(e.outEdges,am);if(isNaN(i)){var r=e.outEdges.length;i=r?sm(e.outEdges,nm,n)/r:0}if("vertical"===n){var o=e.getLayout().x+(i-om(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(i-om(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function tm(e,t){return om(e.node2,t)*e.getValue()}function nm(e,t){return om(e.node2,t)}function im(e,t){return om(e.node1,t)*e.getValue()}function rm(e,t){return om(e.node1,t)}function om(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function am(e){return e.getValue()}function sm(e,t,n){var i=0,r=e.length,o=-1;while(++o<r){var a=+t(e[o],n);isNaN(a)||(i+=a)}return i}function lm(e,t,n){f.each(e,(function(e){f.each(e,(function(e){if(e.inEdges.length){var i=sm(e.inEdges,im,n)/sm(e.inEdges,am);if(isNaN(i)){var r=e.inEdges.length;i=r?sm(e.inEdges,rm,n)/r:0}if("vertical"===n){var o=e.getLayout().x+(i-om(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(i-om(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function um(e,t){var n="vertical"===t?"x":"y";f.each(e,(function(e){e.outEdges.sort((function(e,t){return e.node2.getLayout()[n]-t.node2.getLayout()[n]})),e.inEdges.sort((function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]}))})),f.each(e,(function(e){var t=0,n=0;f.each(e.outEdges,(function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy})),f.each(e.inEdges,(function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy}))}))}function cm(e){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph(),n=t.nodes,i=t.edges;if(n.length){var r=1/0,o=-1/0;f.each(n,(function(e){var t=e.getLayout().value;t<r&&(r=t),t>o&&(o=t)})),f.each(n,(function(t){var n=new sd({type:"color",mappingMethod:"linear",dataExtent:[r,o],visual:e.get("color")}),i=n.mapValueToVisual(t.getLayout().value),a=t.getModel().get(["itemStyle","color"]);null!=a?(t.setVisual("color",a),t.setVisual("style",{fill:a})):(t.setVisual("color",i),t.setVisual("style",{fill:i}))}))}i.length&&f.each(i,(function(e){var t=e.getModel().get("lineStyle");e.setVisual("style",t)}))}))}function hm(e){e.registerChartView(zy),e.registerSeriesModel(Gy),e.registerLayout(Fy),e.registerVisual(cm),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))}var dm=function(){function e(){}return e.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&null!=t.get(e)},e.prototype.getInitialData=function(e,t){var n,i,r=t.getComponent("xAxis",this.get("xAxisIndex")),o=t.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(e.layout="horizontal",n=r.getOrdinalMeta(),i=!this._hasEncodeRule("x")):"category"===s?(e.layout="vertical",n=o.getOrdinalMeta(),i=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var l=["x","y"],u="horizontal"===e.layout?0:1,c=this._baseAxisDim=l[u],h=l[1-u],d=[r,o],p=d[u].get("type"),g=d[1-u].get("type"),y=e.data;if(y&&i){var m=[];f.each(y,(function(e,t){var n;f.isArray(e)?(n=e.slice(),e.unshift(t)):f.isArray(e.value)?(n=f.extend({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,m.push(n)})),e.data=m}var v=this.defaultValueDimensions,x=[{name:c,type:L(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:L(g),dimsDef:v.slice()}];return ka(this,{coordDimensions:x,dimensionsCount:v.length+1,encodeDefaulter:f.curry(he.OC,x,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),pm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return(0,Oe.C6)(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(p.A);(0,f.mixin)(pm,dm,!0);const fm=pm;var gm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===e.get("layout")?1:0;i.diff(o).add((function(e){if(i.hasValue(e)){var t=i.getItemLayout(e),n=vm(t,i,e,a,!0);i.setItemGraphicEl(e,n),r.add(n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(i.hasValue(e)){var s=i.getItemLayout(e);n?((0,Vn.ap)(n),xm(s,n,i,e)):n=vm(s,i,e,a),r.add(n),i.setItemGraphicEl(e,n)}else r.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&r.remove(t)})).execute(),this._data=i},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(h.A),ym=function(){function e(){}return e}(),mm=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return(0,Oe.C6)(t,e),t.prototype.getDefaultShape=function(){return new ym},t.prototype.buildPath=function(e,t){var n=t.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();i<n.length;i++)e.moveTo(n[i][0],n[i][1]),i++,e.lineTo(n[i][0],n[i][1])},t}(Pi.Ay);function vm(e,t,n,i,r){var o=e.ends,a=new mm({shape:{points:r?_m(o,i,e):o}});return xm(e,a,t,n,r),a}function xm(e,t,n,i,r){var o=n.hostModel,a=En[r?"initProps":"updateProps"];a(t,{shape:{points:e.ends}},o,i),t.useStyle(n.getItemVisual(i,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=n.getItemModel(i),l=s.getModel("emphasis");(0,gn.Mx)(t,s),(0,gn.Lm)(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function _m(e,t,n){return f.map(e,(function(e){return e=e.slice(),e[t]=n.initBaseline,e}))}const bm=gm;var Sm=f.each;function wm(e){var t=Mm(e);Sm(t,(function(e){var t=e.seriesModels;t.length&&(Am(e),Sm(t,(function(t,n){Im(t,e.boxOffsetList[n],e.boxWidthList[n])})))}))}function Mm(e){var t=[],n=[];return e.eachSeriesByType("boxplot",(function(e){var i=e.getBaseAxis(),r=f.indexOf(n,i);r<0&&(r=n.length,n[r]=i,t[r]={axis:i,seriesModels:[]}),t[r].seriesModels.push(e)})),t}function Am(e){var t,n=e.axis,i=e.seriesModels,r=i.length,o=e.boxWidthList=[],a=e.boxOffsetList=[],s=[];if("category"===n.type)t=n.getBandWidth();else{var l=0;Sm(i,(function(e){l=Math.max(l,e.getData().count())}));var u=n.getExtent();t=Math.abs(u[1]-u[0])/l}Sm(i,(function(e){var n=e.get("boxWidth");f.isArray(n)||(n=[n,n]),s.push([(0,Ge.lo)(n[0],t)||0,(0,Ge.lo)(n[1],t)||0])}));var c=.8*t-2,h=c/r*.3,d=(c-h*(r-1))/r,p=d/2-c/2;Sm(i,(function(e,t){a.push(p),p+=h+d,o.push(Math.min(Math.max(d,s[t][0]),s[t][1]))}))}function Im(e,t,n){var i=e.coordinateSystem,r=e.getData(),o=n/2,a="horizontal"===e.get("layout")?0:1,s=1-a,l=["x","y"],u=r.mapDimension(l[a]),c=r.mapDimensionsAll(l[s]);if(!(null==u||c.length<5))for(var h=0;h<r.count();h++){var d=r.get(u,h),p=x(d,c[2],h),f=x(d,c[0],h),g=x(d,c[1],h),y=x(d,c[3],h),m=x(d,c[4],h),v=[];_(v,g,!1),_(v,y,!0),v.push(f,g,m,y),b(v,f),b(v,m),b(v,p),r.setItemLayout(h,{initBaseline:p[s],ends:v})}function x(e,n,o){var l,u=r.get(n,o),c=[];return c[a]=e,c[s]=u,isNaN(e)||isNaN(u)?l=[NaN,NaN]:(l=i.dataToPoint(c),l[a]+=t),l}function _(e,t,n){var i=t.slice(),r=t.slice();i[a]+=o,r[a]-=o,n?e.push(i,r):e.push(r,i)}function b(e,t){var n=t.slice(),i=t.slice();n[a]-=o,i[a]+=o,e.push(n,i)}}function Cm(e,t){t=t||{};for(var n=[],i=[],r=t.boundIQR,o="none"===r||0===r,a=0;a<e.length;a++){var s=(0,Ge.Y6)(e[a].slice()),l=(0,Ge.YV)(s,.25),u=(0,Ge.YV)(s,.5),c=(0,Ge.YV)(s,.75),h=s[0],d=s[s.length-1],p=(null==r?1.5:r)*(c-l),g=o?h:Math.max(h,l-p),y=o?d:Math.min(d,c+p),m=t.itemNameFormatter,v=(0,f.isFunction)(m)?m({value:a}):(0,f.isString)(m)?m.replace("{value}",a+""):a+"";n.push([v,g,l,u,c,y]);for(var x=0;x<s.length;x++){var _=s[x];if(_<g||_>y){var b=[v,_];i.push(b)}}}return{boxData:n,outliers:i}}var Tm=n(3682),Dm={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==I.Km){var n="";0,(0,Tm.$8)(n)}var i=Cm(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function Lm(e){e.registerSeriesModel(fm),e.registerChartView(bm),e.registerLayout(wm),e.registerTransform(Dm)}var km=["itemStyle","borderColor"],Om=["itemStyle","borderColor0"],Pm=["itemStyle","borderColorDoji"],Nm=["itemStyle","color"],Rm=["itemStyle","color0"];function Em(e,t){return t.get(e>0?Nm:Rm)}function Vm(e,t){return t.get(0===e?Pm:e>0?km:Om)}var zm={seriesType:"candlestick",plan:(0,nt.A)(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e)){var n=e.pipelineContext.large;return!n&&{progress:function(e,t){var n;while(null!=(n=e.next())){var i=t.getItemModel(n),r=t.getItemLayout(n).sign,o=i.getItemStyle();o.fill=Em(r,i),o.stroke=Vm(r,i)||o.fill;var a=t.ensureUniqueItemVisual(n,"style");(0,f.extend)(a,o)}}}}}};const Bm=zm;var Gm=["color","borderColor"],Fm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){En.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){var t=e.getData(),n=this._data,i=this.group,r=t.getLayout("isSimpleBox"),o=e.get("clip",!0),a=e.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var a=t.getItemLayout(n);if(o&&Ym(s,a))return;var l=Um(a,n,!0);Vn.LW(l,{shape:{points:a.ends}},e,n),Xm(l,t,n,r),i.add(l),t.setItemGraphicEl(n,l)}})).update((function(a,l){var u=n.getItemGraphicEl(l);if(t.hasValue(a)){var c=t.getItemLayout(a);o&&Ym(s,c)?i.remove(u):(u?(Vn.oi(u,{shape:{points:c.ends}},e,a),(0,Vn.ap)(u)):u=Um(c,a),Xm(u,t,a,r),i.add(u),t.setItemGraphicEl(a,u))}else i.remove(u)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),$m(e,this.group);var t=e.get("clip",!0)?no(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){var n,i=t.getData(),r=i.getLayout("isSimpleBox");while(null!=(n=e.next())){var o=i.getItemLayout(n),a=Um(o,n);Xm(a,i,n,r),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},t.prototype._incrementalRenderLarge=function(e,t){$m(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(h.A),Hm=function(){function e(){}return e}(),Wm=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return(0,Oe.C6)(t,e),t.prototype.getDefaultShape=function(){return new Hm},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(Pi.Ay);function Um(e,t,n){var i=e.ends;return new Wm({shape:{points:n?Zm(i,e):i},z2:100})}function Ym(e,t){for(var n=!0,i=0;i<t.ends.length;i++)if(e.contain(t.ends[i][0],t.ends[i][1])){n=!1;break}return n}function Xm(e,t,n,i){var r=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=i,(0,gn.Mx)(e,r);var o=t.getItemLayout(n).sign;f.each(e.states,(function(e,t){var n=r.getModel(t),i=Em(o,n),a=Vm(o,n)||i,s=e.style||(e.style={});i&&(s.fill=i),a&&(s.stroke=a)}));var a=r.getModel("emphasis");(0,gn.Lm)(e,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function Zm(e,t){return f.map(e,(function(e){return e=e.slice(),e[1]=t.initBaseline,e}))}var jm=function(){function e(){}return e}(),qm=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeCandlestickBox",n}return(0,Oe.C6)(t,e),t.prototype.getDefaultShape=function(){return new jm},t.prototype.buildPath=function(e,t){for(var n=t.points,i=0;i<n.length;)if(this.__sign===n[i++]){var r=n[i++];e.moveTo(r,n[i++]),e.lineTo(r,n[i++])}else i+=3},t}(Pi.Ay);function $m(e,t,n,i){var r=e.getData(),o=r.getLayout("largePoints"),a=new qm({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});t.add(a);var s=new qm({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new qm({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});t.add(l),Km(1,a,e,r),Km(-1,s,e,r),Km(0,l,e,r),i&&(a.incremental=!0,s.incremental=!0),n&&n.push(a,s)}function Km(e,t,n,i){var r=Vm(e,n)||Em(e,n),o=n.getModel("itemStyle").getItemStyle(Gm);t.useStyle(o),t.style.fill=null,t.style.stroke=r}const Jm=Fm;var Qm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return(0,Oe.C6)(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var i=t.getItemLayout(e);return i&&n.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(p.A);(0,f.mixin)(Qm,dm,!0);const ev=Qm;function tv(e){e&&f.isArray(e.series)&&f.each(e.series,(function(e){f.isObject(e)&&"k"===e.type&&(e.type="candlestick")}))}var nv={seriesType:"candlestick",plan:(0,nt.A)(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),i=rv(e,n),r=0,o=1,a=["x","y"],s=n.getDimensionIndex(n.mapDimension(a[r])),l=(0,f.map)(n.mapDimensionsAll(a[o]),n.getDimensionIndex,n),u=l[0],c=l[1],h=l[2],d=l[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(s<0||l.length<4))return{progress:e.pipelineContext.large?g:p};function p(e,n){var a,l=n.getStore();while(null!=(a=e.next())){var p=l.get(s,a),f=l.get(u,a),g=l.get(c,a),y=l.get(h,a),m=l.get(d,a),v=Math.min(f,g),x=Math.max(f,g),_=C(v,p),b=C(x,p),S=C(y,p),w=C(m,p),M=[];T(M,b,0),T(M,_,1),M.push(L(w),L(b),L(S),L(_));var A=n.getItemModel(a),I=!!A.get(["itemStyle","borderColorDoji"]);n.setItemLayout(a,{sign:iv(l,a,f,g,c,I),initBaseline:f>g?b[o]:_[o],ends:M,brushRect:D(y,m,p)})}function C(e,n){var i=[];return i[r]=n,i[o]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(i)}function T(e,t,n){var o=t.slice(),a=t.slice();o[r]=(0,En.subPixelOptimize)(o[r]+i/2,1,!1),a[r]=(0,En.subPixelOptimize)(a[r]-i/2,1,!0),n?e.push(o,a):e.push(a,o)}function D(e,t,n){var a=C(e,n),s=C(t,n);return a[r]-=i/2,s[r]-=i/2,{x:a[0],y:a[1],width:o?i:s[0]-a[0],height:o?s[1]-a[1]:i}}function L(e){return e[r]=(0,En.subPixelOptimize)(e[r],1),e}}function g(n,i){var a,l,p=ot(4*n.count),f=0,g=[],y=[],m=i.getStore(),v=!!e.get(["itemStyle","borderColorDoji"]);while(null!=(l=n.next())){var x=m.get(s,l),_=m.get(u,l),b=m.get(c,l),S=m.get(h,l),w=m.get(d,l);isNaN(x)||isNaN(S)||isNaN(w)?(p[f++]=NaN,f+=3):(p[f++]=iv(m,l,_,b,c,v),g[r]=x,g[o]=S,a=t.dataToPoint(g,null,y),p[f++]=a?a[0]:NaN,p[f++]=a?a[1]:NaN,g[o]=w,a=t.dataToPoint(g,null,y),p[f++]=a?a[1]:NaN)}i.setLayout("largePoints",p)}}};function iv(e,t,n,i,r,o){var a;return a=n>i?-1:n<i?1:o?0:t>0?e.get(r,t-1)<=i?1:-1:1,a}function rv(e,t){var n,i=e.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/t.count()),o=(0,Ge.lo)((0,f.retrieve2)(e.get("barMaxWidth"),r),r),a=(0,Ge.lo)((0,f.retrieve2)(e.get("barMinWidth"),1),r),s=e.get("barWidth");return null!=s?(0,Ge.lo)(s,r):Math.max(Math.min(r/2,o),a)}const ov=nv;function av(e){e.registerChartView(Jm),e.registerSeriesModel(ev),e.registerPreprocessor(tv),e.registerVisual(Bm),e.registerLayout(ov)}function sv(e,t){var n=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})}))}var lv=function(e){function t(t,n){var i=e.call(this)||this,r=new Rr(t,n),o=new zn.A;return i.add(r),i.add(o),i.updateData(t,n),i}return(0,Oe.C6)(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,i=e.rippleNumber,r=this.childAt(1),o=0;o<i;o++){var a=(0,fn.v5)(t,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-o/i*e.period+e.effectOffset;a.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),r.add(a)}sv(r,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],r=0;r<i.length;r++){var o=i[r];if(t[o]!==e[o])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}sv(n,e)},t.prototype.highlight=function(){(0,gn.HY)(this)},t.prototype.downplay=function(){(0,gn.SD)(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,t){var n=this,i=e.hostModel;this.childAt(0).updateData(e,t);var r=this.childAt(1),o=e.getItemModel(t),a=e.getItemVisual(t,"symbol"),s=(0,fn.xU)(e.getItemVisual(t,"symbolSize")),l=e.getItemVisual(t,"style"),u=l&&l.fill,c=o.getModel("emphasis");r.setScale(s),r.traverse((function(e){e.setStyle("fill",u)}));var h=(0,fn.hV)(e.getItemVisual(t,"symbolOffset"),s);h&&(r.x=h[0],r.y=h[1]);var d=e.getItemVisual(t,"symbolRotate");r.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=o.get(["rippleEffect","scale"]),p.brushType=o.get(["rippleEffect","brushType"]),p.period=1e3*o.get(["rippleEffect","period"]),p.effectOffset=t/e.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=a,p.color=u,p.rippleEffectColor=o.get(["rippleEffect","color"]),p.rippleNumber=o.get(["rippleEffect","number"]),"render"===p.showEffectOn?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){"emphasis"===e?"render"!==p.showEffectOn&&n.startEffectAnimation(p):"normal"===e&&"render"!==p.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=p,(0,gn.Lm)(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(zn.A);const uv=lv;var cv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.init=function(){this._symbolDraw=new Gr(uv)},t.prototype.render=function(e,t,n){var i=e.getData(),r=this._symbolDraw;r.updateData(i,{clipShape:this._getClipShape(e)}),this.group.add(r.group)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype.updateTransform=function(e,t,n){var i=e.getData();this.group.dirty();var r=Mo("").reset(e,t,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=se.clone(t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(h.A);const hv=cv;var dv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return(0,Oe.C6)(t,e),t.prototype.getInitialData=function(e,t){return ke(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(p.A);const pv=dv;function fv(e){e.registerChartView(hv),e.registerSeriesModel(pv),e.registerLayout(Mo("effectScatter"))}var gv=function(e){function t(t,n,i){var r=e.call(this)||this;return r.add(r.createLine(t,n,i)),r._updateEffectSymbol(t,n),r}return(0,Oe.C6)(t,e),t.prototype.createLine=function(e,t,n){return new Lp(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t),i=n.getModel("effect"),r=i.get("symbolSize"),o=i.get("symbol");f.isArray(r)||(r=[r,r]);var a=e.getItemVisual(t,"style"),s=i.get("color")||a&&a.stroke,l=this.childAt(1);this._symbolType!==o&&(this.remove(l),l=(0,fn.v5)(o,-.5,-.5,1,1,s),l.z2=100,l.culling=!0,this.add(l)),l&&(l.setStyle("shadowColor",s),l.setStyle(i.getItemStyle(["color"])),l.scaleX=r[0],l.scaleY=r[1],l.setColor(s),this._symbolType=o,this._symbolScale=r,this._updateEffectAnimation(e,i,t))},t.prototype._updateEffectAnimation=function(e,t,n){var i=this.childAt(1);if(i){var r=e.getItemLayout(n),o=1e3*t.get("period"),a=t.get("loop"),s=t.get("roundTrip"),l=t.get("constantSpeed"),u=f.retrieve(t.get("delay"),(function(t){return t/e.count()*o/3}));if(i.ignore=!0,this._updateAnimationPoints(i,r),l>0&&(o=this._getLineLength(i)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){i.stopAnimation();var c=void 0;c=f.isFunction(u)?u(n):u,i.__t>0&&(c=-o*i.__t),this._animateSymbol(i,o,c,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,n,i,r){if(t>0){e.__t=0;var o=this,a=e.animate("",i).when(r?2*t:t,{__t:r?2:1}).delay(n).during((function(){o._updateSymbolPosition(e)}));i||a.done((function(){o.remove(e)})),a.start()}},t.prototype._getLineLength=function(e){return le.dist(e.__p1,e.__cp1)+le.dist(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,i=e.__cp1,r=e.__t<1?e.__t:2-e.__t,o=[e.x,e.y],a=o.slice(),s=Ei.k3,l=Ei.z7;o[0]=s(t[0],i[0],n[0],r),o[1]=s(t[1],i[1],n[1],r);var u=e.__t<1?l(t[0],i[0],n[0],r):l(n[0],i[0],t[0],1-r),c=e.__t<1?l(t[1],i[1],n[1],r):l(n[1],i[1],t[1],1-r);e.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT<e.__t?(e.scaleY=1.05*le.dist(a,o),1===r&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)):1===e.__lastT?e.scaleY=2*le.dist(t,o):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=o[0],e.y=o[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,n,t)},t}(zn.A);const yv=gv;var mv=function(e){function t(t,n,i){var r=e.call(this)||this;return r._createPolyline(t,n,i),r}return(0,Oe.C6)(t,e),t.prototype._createPolyline=function(e,t,n){var i=e.getItemLayout(t),r=new Xn.A({shape:{points:i}});this.add(r),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var i=e.hostModel,r=this.childAt(0),o={shape:{points:e.getItemLayout(t)}};Vn.oi(r,o,i,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var i=this.childAt(0),r=e.getItemModel(t),o=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var u=r.getModel("emphasis");o=u.getModel("lineStyle").getLineStyle(),l=u.get("disabled"),a=u.get("focus"),s=u.get("blurScope")}i.useStyle(e.getItemVisual(t,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var c=i.ensureState("emphasis");c.style=o,(0,gn.Lm)(this,a,s,l)},t.prototype.updateLayout=function(e,t){var n=this.childAt(0);n.setShape("points",e.getItemLayout(t))},t}(zn.A);const vv=mv;var xv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return(0,Oe.C6)(t,e),t.prototype.createLine=function(e,t,n){return new vv(e,t,n)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],i=0,r=1;r<t.length;r++){var o=t[r-1],a=t[r];i+=le.dist(o,a),n.push(i)}if(0!==i){for(r=0;r<n.length;r++)n[r]/=i;this._offsets=n,this._length=i}else this._length=0},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var t=e.__t<1?e.__t:2-e.__t,n=this._points,i=this._offsets,r=n.length;if(i){var o,a=this._lastFrame;if(t<this._lastFramePercent){var s=Math.min(a+1,r-1);for(o=s;o>=0;o--)if(i[o]<=t)break;o=Math.min(o,r-2)}else{for(o=a;o<r;o++)if(i[o]>t)break;o=Math.min(o-1,r-2)}var l=(t-i[o])/(i[o+1]-i[o]),u=n[o],c=n[o+1];e.x=u[0]*(1-l)+l*c[0],e.y=u[1]*(1-l)+l*c[1];var h=e.__t<1?c[0]-u[0]:u[0]-c[0],d=e.__t<1?c[1]-u[1]:u[1]-c[1];e.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=t,e.ignore=!1}},t}(yv);const _v=xv;var bv=n(5432),Sv=n(3214),wv=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),Mv=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return(0,Oe.C6)(t,e),t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new wv},t.prototype.buildPath=function(e,t){var n,i=t.segs,r=t.curveness;if(t.polyline)for(n=this._off;n<i.length;){var o=i[n++];if(o>0){e.moveTo(i[n++],i[n++]);for(var a=1;a<o;a++)e.lineTo(i[n++],i[n++])}}else for(n=this._off;n<i.length;){var s=i[n++],l=i[n++],u=i[n++],c=i[n++];if(e.moveTo(s,l),r>0){var h=(s+u)/2-(l-c)*r,d=(l+c)/2-(u-s)*r;e.quadraticCurveTo(h,d,u,c)}else e.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<i.length;){var l=i[s++];if(l>0)for(var u=i[s++],c=i[s++],h=1;h<l;h++){var d=i[s++],p=i[s++];if(bv.l(u,c,d,p,o,e,t))return a}a++}else for(a=0,s=0;s<i.length;){u=i[s++],c=i[s++],d=i[s++],p=i[s++];if(r>0){var f=(u+d)/2-(c-p)*r,g=(c+p)/2-(d-u)*r;if(Sv.l(u,c,f,g,d,p,o,e,t))return a}else if(bv.l(u,c,d,p,o,e,t))return a;a++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();if(e=n[0],t=n[1],i.contain(e,t)){var r=this.hoverDataIdx=this.findDataIndex(e,t);return r>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.segs,i=1/0,r=1/0,o=-1/0,a=-1/0,s=0;s<n.length;){var l=n[s++],u=n[s++];i=Math.min(l,i),o=Math.max(l,o),r=Math.min(u,r),a=Math.max(u,a)}e=this._rect=new _t.A(i,r,o,a)}return e},t}(Pi.Ay),Av=function(){function e(){this.group=new zn.A}return e.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],i=t.getLayout("linesPoints"),r=n&&n.shape.segs;if(r&&r.length<2e4){var o=r.length,a=new Float32Array(o+i.length);a.set(r),a.set(i,o),n.setShape({segs:a})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:i}),this._setCommon(s,t),s.__startIndex=e.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new Mv({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},e.prototype._setCommon=function(e,t,n){var i=t.hostModel;e.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),e.useStyle(i.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var r=t.getVisual("style");r&&r.stroke&&e.setStyle("stroke",r.stroke),e.setStyle("fill",null);var o=(0,R.z)(e);o.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){o.dataIndex=null;var n=e.hoverDataIdx;n>0&&(o.dataIndex=n+e.__startIndex)}))},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const Iv=Av;var Cv={seriesType:"lines",plan:(0,nt.A)(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),i=e.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,c=r.start;c<r.end;c++)u+=e.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var h=0,d=[];for(c=r.start;c<r.end;c++){var p=e.getLineCoords(c,a);n&&(s[h++]=p);for(var f=0;f<p;f++)d=t.dataToPoint(a[f],!1,d),s[h++]=d[0],s[h++]=d[1]}o.setLayout("linesPoints",s)}else for(c=r.start;c<r.end;c++){var g=o.getItemModel(c),y=(p=e.getLineCoords(c,a),[]);if(n)for(var m=0;m<p;m++)y.push(t.dataToPoint(a[m]));else{y[0]=t.dataToPoint(a[0]),y[1]=t.dataToPoint(a[1]);var v=g.get(["lineStyle","curveness"]);+v&&(y[2]=[(y[0][0]+y[1][0])/2-(y[0][1]-y[1][1])*v,(y[0][1]+y[1][1])/2-(y[1][0]-y[0][0])*v])}o.setItemLayout(c,y)}}}}}};const Tv=Cv;var Dv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._updateLineDraw(i,e),o=e.get("zlevel"),a=e.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&a>0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var u=e.get("clip",!0)&&no(e.coordinateSystem,!1,e);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData(),r=this._updateLineDraw(i,e);r.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var i=e.getData(),r=e.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=Tv.reset(e,t,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,i=this._showEffect(t),r=!!t.get("polyline"),o=t.pipelineContext,a=o.large;return n&&i===this._hasEffet&&r===this._isPolyline&&a===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=a?new Iv:new Ep(r?i?_v:vv:i?yv:Lp),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=a),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr(),n="svg"===t.painter.getType();n||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type="lines",t}(h.A);const Lv=Dv;var kv="undefined"===typeof Uint32Array?Array:Uint32Array,Ov="undefined"===typeof Float64Array?Array:Float64Array;function Pv(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=(0,f.map)(t,(function(e){var t=[e[0].coord,e[1].coord],n={coords:t};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),(0,f.mergeAll)([n,e[0],e[1]])})))}var Nv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return(0,Oe.C6)(t,e),t.prototype.init=function(t){t.data=t.data||[],Pv(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(Pv(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=(0,f.concatArray)(this._flatCoords,t.flatCoords),this._flatCoordsOffset=(0,f.concatArray)(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e),n=t.option instanceof Array?t.option:t.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],i=this._flatCoordsOffset[2*e+1],r=0;r<i;r++)t[r]=t[r]||[],t[r][0]=this._flatCoords[n+2*r],t[r][1]=this._flatCoords[n+2*r+1];return i}var o=this._getCoordsFromItemModel(e);for(r=0;r<o.length;r++)t[r]=t[r]||[],t[r][0]=o[r][0],t[r][1]=o[r][1];return o.length},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),(0,f.isNumber)(e[0])){for(var n=e.length,i=new kv(n),r=new Ov(n),o=0,a=0,s=0,l=0;l<n;){s++;var u=e[l++];i[a++]=o+t,i[a++]=u;for(var c=0;c<u;c++){var h=e[l++],d=e[l++];r[o++]=h,r[o++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){var n=new ae(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],(function(e,t,i,r){if(e instanceof Array)return NaN;n.hasItemOption=!0;var o=e.value;return null!=o?o instanceof Array?o[r]:o:void 0})),n},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=i.getItemModel(e),o=r.get("name");if(o)return o;var a=r.get("fromName"),s=r.get("toName"),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),(0,ml.Qx)("nameValue",{name:l.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),t=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&t>0?t+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(p.A);const Rv=Nv;function Ev(e){return e instanceof Array||(e=[e,e]),e}var Vv={seriesType:"lines",reset:function(e){var t=Ev(e.get("symbol")),n=Ev(e.get("symbolSize")),i=e.getData();function r(e,t){var n=e.getItemModel(t),i=Ev(n.getShallow("symbol",!0)),r=Ev(n.getShallow("symbolSize",!0));i[0]&&e.setItemVisual(t,"fromSymbol",i[0]),i[1]&&e.setItemVisual(t,"toSymbol",i[1]),r[0]&&e.setItemVisual(t,"fromSymbolSize",r[0]),r[1]&&e.setItemVisual(t,"toSymbolSize",r[1])}return i.setVisual("fromSymbol",t&&t[0]),i.setVisual("toSymbol",t&&t[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?r:null}}};const zv=Vv;function Bv(e){e.registerChartView(Lv),e.registerSeriesModel(Rv),e.registerLayout(Tv),e.registerVisual(zv)}var Gv=256,Fv=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=bn.yh.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,i,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=n;for(var p=0;p<d;++p){var f=e[p],g=f[0],y=f[1],m=f[2],v=i(m);h.globalAlpha=v,h.drawImage(a,g-u,y-u)}if(!c.width||!c.height)return c;var x=h.getImageData(0,0,c.width,c.height),_=x.data,b=0,S=_.length,w=this.minOpacity,M=this.maxOpacity,A=M-w;while(b<S){v=_[b+3]/256;var I=4*Math.floor(v*(Gv-1));if(v>0){var C=o(v)?s:l;v>0&&(v=v*A+w),_[b++]=C[I],_[b++]=C[I+1],_[b++]=C[I+2],_[b++]=C[I+3]*v*256}else b+=4}return h.putImageData(x,0,0),c},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=bn.yh.createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var i=e.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,i=n[t]||(n[t]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)e[t](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},e}();const Hv=Fv;function Wv(e,t,n){var i=e[1]-e[0];t=f.map(t,(function(t){return{interval:[(t.interval[0]-e[0])/i,(t.interval[1]-e[0])/i]}}));var r=t.length,o=0;return function(e){var i;for(i=o;i<r;i++){var a=t[i].interval;if(a[0]<=e&&e<=a[1]){o=i;break}}if(i===r)for(i=o-1;i>=0;i--){a=t[i].interval;if(a[0]<=e&&e<=a[1]){o=i;break}}return i>=0&&i<r&&n[i]}}function Uv(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}function Yv(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var Xv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.render=function(e,t,n){var i;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(i=t)}))})),this._progressiveEls=null,this.group.removeAll();var r=e.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):Yv(r)&&this._renderOnGeo(r,e,i,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,i){var r=t.coordinateSystem;r&&(Yv(r)?this.render(t,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){En.traverseElements(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,i,r){var o,a,s,l,u=e.coordinateSystem,c=io(u,"cartesian2d");if(c){var h=u.getAxis("x"),d=u.getAxis("y");0,o=h.getBandWidth()+.5,a=d.getBandWidth()+.5,s=h.scale.getExtent(),l=d.scale.getExtent()}for(var p=this.group,f=e.getData(),g=e.getModel(["emphasis","itemStyle"]).getItemStyle(),y=e.getModel(["blur","itemStyle"]).getItemStyle(),m=e.getModel(["select","itemStyle"]).getItemStyle(),v=e.get(["itemStyle","borderRadius"]),x=(0,pn.lx)(e),_=e.getModel("emphasis"),b=_.get("focus"),S=_.get("blurScope"),w=_.get("disabled"),M=c?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],A=n;A<i;A++){var I=void 0,C=f.getItemVisual(A,"style");if(c){var T=f.get(M[0],A),D=f.get(M[1],A);if(isNaN(f.get(M[2],A))||isNaN(T)||isNaN(D)||T<s[0]||T>s[1]||D<l[0]||D>l[1])continue;var L=u.dataToPoint([T,D]);I=new Zn.A({shape:{x:L[0]-o/2,y:L[1]-a/2,width:o,height:a},style:C})}else{if(isNaN(f.get(M[1],A)))continue;I=new Zn.A({z2:1,shape:u.dataToRect([f.get(M[0],A)]).contentShape,style:C})}if(f.hasItemOption){var k=f.getItemModel(A),O=k.getModel("emphasis");g=O.getModel("itemStyle").getItemStyle(),y=k.getModel(["blur","itemStyle"]).getItemStyle(),m=k.getModel(["select","itemStyle"]).getItemStyle(),v=k.get(["itemStyle","borderRadius"]),b=O.get("focus"),S=O.get("blurScope"),w=O.get("disabled"),x=(0,pn.lx)(k)}I.shape.r=v;var P=e.getRawValue(A),N="-";P&&null!=P[2]&&(N=P[2]+""),(0,pn.qM)(I,x,{labelFetcher:e,labelDataIndex:A,defaultOpacity:C.opacity,defaultText:N}),I.ensureState("emphasis").style=g,I.ensureState("blur").style=y,I.ensureState("select").style=m,(0,gn.Lm)(I,b,S,w),I.incremental=r,r&&(I.states.emphasis.hoverLayer=!0),p.add(I),f.setItemGraphicEl(A,I),this._progressiveEls&&this._progressiveEls.push(I)}},t.prototype._renderOnGeo=function(e,t,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=t.getData(),s=this._hmLayer||this._hmLayer||new Hv;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var l=e.getViewRect().clone(),u=e.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),h=Math.max(l.y,0),d=Math.min(l.width+l.x,i.getWidth()),p=Math.min(l.height+l.y,i.getHeight()),f=d-c,g=p-h,y=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],m=a.mapArray(y,(function(t,n,i){var r=e.dataToPoint([t,n]);return r[0]-=c,r[1]-=h,r.push(i),r})),v=n.getExtent(),x="visualMap.continuous"===n.type?Uv(v,n.option.range):Wv(v,n.getPieceList(),n.option.selected);s.update(m,f,g,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:o.color.getColorMapper()},x);var _=new Bn.Ay({style:{width:f,height:g,x:c,y:h,image:s.canvas},silent:!0});this.group.add(_)},t.type="heatmap",t}(h.A);const Zv=Xv;var jv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.getInitialData=function(e,t){return ke(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=me.A.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}(p.A);const qv=jv;function $v(e){e.registerChartView(Zv),e.registerSeriesModel(qv)}var Kv=["itemStyle","borderWidth"],Jv=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Qv=new Fn.A,ex=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.render=function(e,t,n){var i=this.group,r=e.getData(),o=this._data,a=e.coordinateSystem,s=a.getBaseAxis(),l=s.isHorizontal(),u=a.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:a,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:Jv[+l],categoryDim:Jv[1-+l]};r.diff(o).add((function(e){if(r.hasValue(e)){var t=dx(r,e),n=tx(r,e,t,c),o=gx(r,c,n);r.setItemGraphicEl(e,o),i.add(o),bx(o,c,n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(r.hasValue(e)){var a=dx(r,e),s=tx(r,e,a,c),l=vx(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(e,null),n=null),n?yx(n,c,s):n=gx(r,c,s,!0),r.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,i.add(n),bx(n,c,s)}else i.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&mx(o,e,t.__pictorialSymbolMeta.animationModel,t)})).execute();var h=e.get("clip",!0)?no(e.coordinateSystem,!1,e):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=r,this.group},t.prototype.remove=function(e,t){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl((function(t){mx(i,(0,R.z)(t).dataIndex,e,t)})):n.removeAll()},t.type="pictorialBar",t}(h.A);function tx(e,t,n,i){var r=e.getItemLayout(t),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,h=n.isAnimationEnabled(),d={dataIndex:t,layout:r,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:h?n:null,hoverScale:h&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};nx(n,o,r,i,d),rx(e,t,r,o,a,d.boundingLength,d.pxSign,c,i,d),ox(n,d.symbolScale,u,i,d);var p=d.symbolSize,f=(0,fn.hV)(n.get("symbolOffset"),p);return ax(n,p,r,o,a,f,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,i,d),d}function nx(e,t,n,i,r){var o,a=i.valueDim,s=e.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[a.wh]<=0);if(f.isArray(s)){var h=[ix(l,s[0])-u,ix(l,s[1])-u];h[1]<h[0]&&h.reverse(),o=h[c]}else o=null!=s?ix(l,s)-u:t?i.coordSysExtent[a.index][c]-u:n[a.wh];r.boundingLength=o,t&&(r.repeatCutLength=n[a.wh]);var d="x"===a.xy,p=l.inverse;r.pxSign=d&&!p||!d&&p?o>=0?1:-1:o>0?1:-1}function ix(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function rx(e,t,n,i,r,o,a,s,l,u){var c,h=l.valueDim,d=l.categoryDim,p=Math.abs(n[d.wh]),g=e.getItemVisual(t,"symbolSize");c=f.isArray(g)?g.slice():null==g?["100%","100%"]:[g,g],c[d.index]=(0,Ge.lo)(c[d.index],p),c[h.index]=(0,Ge.lo)(c[h.index],i?p:Math.abs(o)),u.symbolSize=c;var y=u.symbolScale=[c[0]/s,c[1]/s];y[h.index]*=(l.isHorizontal?-1:1)*a}function ox(e,t,n,i,r){var o=e.get(Kv)||0;o&&(Qv.attr({scaleX:t[0],scaleY:t[1],rotation:n}),Qv.updateTransform(),o/=Qv.getLineScale(),o*=t[i.valueDim.index]),r.valueLineWidth=o||0}function ax(e,t,n,i,r,o,a,s,l,u,c,h){var d=c.categoryDim,p=c.valueDim,g=h.pxSign,y=Math.max(t[p.index]+s,0),m=y;if(i){var v=Math.abs(l),x=f.retrieve(e.get("symbolMargin"),"15%")+"",_=!1;x.lastIndexOf("!")===x.length-1&&(_=!0,x=x.slice(0,x.length-1));var b=(0,Ge.lo)(x,t[p.index]),S=Math.max(y+2*b,0),w=_?0:2*b,M=(0,Ge.kf)(i),A=M?i:Sx((v+w)/S),I=v-A*y;b=I/2/(_?A:Math.max(A-1,1)),S=y+2*b,w=_?0:2*b,M||"fixed"===i||(A=u?Sx((Math.abs(u)+w)/S):0),m=A*S-w,h.repeatTimes=A,h.symbolMargin=b}var C=g*(m/2),T=h.pathPosition=[];T[d.index]=n[d.wh]/2,T[p.index]="start"===a?C:"end"===a?l-C:l/2,o&&(T[0]+=o[0],T[1]+=o[1]);var D=h.bundlePosition=[];D[d.index]=n[d.xy],D[p.index]=n[p.xy];var L=h.barRectShape=f.extend({},n);L[p.wh]=g*Math.max(Math.abs(n[p.wh]),Math.abs(T[p.index]+C)),L[d.wh]=n[d.wh];var k=h.clipShape={};k[d.xy]=-n[d.xy],k[d.wh]=c.ecSize[d.wh],k[p.xy]=0,k[p.wh]=n[p.wh]}function sx(e){var t=e.symbolPatternSize,n=(0,fn.v5)(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function lx(e,t,n,i){var r=e.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,u=n.repeatTimes||0,c=0,h=o[t.valueDim.index]+a+2*n.symbolMargin;for(xx(e,(function(e){e.__pictorialAnimationIndex=c,e.__pictorialRepeatTimes=u,c<u?_x(e,null,f(c),n,i):_x(e,null,{scaleX:0,scaleY:0},n,i,(function(){r.remove(e)})),c++}));c<u;c++){var d=sx(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,r.add(d);var p=f(c);_x(d,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,i)}function f(e){var t=s.slice(),i=n.pxSign,r=e;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(r=u-1-e),t[l.index]=h*(r-u/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function ux(e,t,n,i){var r=e.__pictorialBundle,o=e.__pictorialMainPath;o?_x(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=e.__pictorialMainPath=sx(n),r.add(o),_x(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function cx(e,t,n){var i=f.extend({},t.barRectShape),r=e.__pictorialBarRect;r?_x(r,null,{shape:i},t,n):(r=e.__pictorialBarRect=new Zn.A({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),r.disableMorphing=!0,e.add(r))}function hx(e,t,n,i){if(n.symbolClip){var r=e.__pictorialClipPath,o=f.extend({},n.clipShape),a=t.valueDim,s=n.animationModel,l=n.dataIndex;if(r)Vn.oi(r,{shape:o},s,l);else{o[a.wh]=0,r=new Zn.A({shape:o}),e.__pictorialBundle.setClipPath(r),e.__pictorialClipPath=r;var u={};u[a.wh]=n.clipShape[a.wh],En[i?"updateProps":"initProps"](r,{shape:u},s,l)}}}function dx(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=px,n.isAnimationEnabled=fx,n}function px(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function fx(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function gx(e,t,n,i){var r=new zn.A,o=new zn.A;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?lx(r,t,n):ux(r,t,n),cx(r,n,i),hx(r,t,n,i),r.__pictorialShapeStr=vx(e,n),r.__pictorialSymbolMeta=n,r}function yx(e,t,n){var i=n.animationModel,r=n.dataIndex,o=e.__pictorialBundle;Vn.oi(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,r),n.symbolRepeat?lx(e,t,n,!0):ux(e,t,n,!0),cx(e,n,!0),hx(e,t,n,!0)}function mx(e,t,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];xx(i,(function(e){o.push(e)})),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),f.each(o,(function(e){Vn.Nz(e,{scaleX:0,scaleY:0},n,t,(function(){i.parent&&i.parent.remove(i)}))})),e.setItemGraphicEl(t,null)}function vx(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function xx(e,t,n){f.each(e.__pictorialBundle.children(),(function(i){i!==e.__pictorialBarRect&&t.call(n,i)}))}function _x(e,t,n,i,r,o){t&&e.attr(t),i.symbolClip&&!r?n&&e.attr(n):n&&En[r?"updateProps":"initProps"](e,n,i.animationModel,i.dataIndex,o)}function bx(e,t,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),c=o.get("focus"),h=o.get("blurScope"),d=o.get("scale");xx(e,(function(e){if(e instanceof Bn.Ay){var t=e.style;e.useStyle(f.extend({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var i=e.ensureState("emphasis");i.style=a,d&&(i.scaleX=1.1*e.scaleX,i.scaleY=1.1*e.scaleY),e.ensureState("blur").style=s,e.ensureState("select").style=l,u&&(e.cursor=u),e.z2=n.z2}));var p=t.valueDim.posDesc[+(n.boundingLength>0)],g=e.__pictorialBarRect;g.ignoreClip=!0,(0,pn.qM)(g,(0,pn.lx)(r),{labelFetcher:t.seriesModel,labelDataIndex:i,defaultText:kr(t.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),(0,gn.Lm)(e,c,h,o.get("disabled"))}function Sx(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const wx=ex;var Mx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return(0,Oe.C6)(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=(0,ko.G_)(Lo.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(Lo);const Ax=Mx;function Ix(e){e.registerChartView(wx),e.registerSeriesModel(Ax),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,(0,f.curry)(gt,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,yt("pictorialBar"))}var Cx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return(0,Oe.C6)(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this,o=this.group,a=e.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(e){return e.name}o.x=0,o.y=l.y+u[0];var h=new M(this._layersSeries||[],a,c,c),d=[];function p(t,n,s){var l=r._layers;if("remove"!==t){for(var u,c,h=[],p=[],f=a[n].indices,g=0;g<f.length;g++){var y=i.getItemLayout(f[g]),m=y.x,v=y.y0,x=y.y;h.push(m,v),p.push(m,v+x),u=i.getItemVisual(f[g],"style")}var _=i.getItemLayout(f[0]),b=e.getModel("label"),S=b.get("margin"),w=e.getModel("emphasis");if("add"===t){var M=d[n]=new zn.A;c=new Qr({shape:{points:h,stackedOnPoints:p,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),M.add(c),o.add(M),e.isAnimationEnabled()&&c.setClipPath(Tx(c.getBoundingRect(),e,(function(){c.removeClipPath()})))}else{M=l[s];c=M.childAt(0),o.add(M),d[n]=M,Vn.oi(c,{shape:{points:h,stackedOnPoints:p}},e),(0,Vn.ap)(c)}(0,pn.qM)(c,(0,pn.lx)(e),{labelDataIndex:f[g-1],defaultText:i.getName(f[g-1]),inheritColor:u.fill},{normal:{verticalAlign:"middle"}}),c.setTextConfig({position:null,local:!0});var A=c.getTextContent();A&&(A.x=_.x-S,A.y=_.y0+_.y/2),c.useStyle(u),i.setItemGraphicEl(n,c),(0,gn.Mx)(c,e),(0,gn.Lm)(c,w.get("focus"),w.get("blurScope"),w.get("disabled"))}else o.remove(l[n])}h.add((0,f.bind)(p,this,"add")).update((0,f.bind)(p,this,"update")).remove((0,f.bind)(p,this,"remove")).execute(),this._layersSeries=a,this._layers=d},t.type="themeRiver",t}(h.A);function Tx(e,t,n){var i=new Zn.A({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Vn.LW(i,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),i}const Dx=Cx;var Lx=2,kx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Pa(f.bind(this.getData,this),f.bind(this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},i=(0,N.Sq)(e,(function(e){return n.hasOwnProperty(e[0]+"")||(n[e[0]+""]=-1),e[2]})),r=[];i.buckets.each((function(e,t){r.push({name:t,dataList:e})}));for(var o=r.length,a=0;a<o;++a){for(var s=r[a].name,l=0;l<r[a].dataList.length;++l){var u=r[a].dataList[l][0]+"";n[u]=a}for(var u in n)n.hasOwnProperty(u)&&n[u]!==a&&(n[u]=a,e[t]=[u,0,s],t++)}return e},t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents("singleAxis",N.US).models[0],i=n.get("type"),r=f.filter(e.data,(function(e){return void 0!==e[2]})),o=this.fixData(r||[]),a=[],s=this.nameMap=f.createHashMap(),l=0,u=0;u<o.length;++u)a.push(o[u][Lx]),s.get(o[u][Lx])||(s.set(o[u][Lx],l),l++);var c=pe(o,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:L(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new ae(c,this);return h.initData(o),h},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],i=0;i<t;++i)n[i]=i;var r=e.mapDimension("single"),o=(0,N.Sq)(n,(function(t){return e.get("name",t)})),a=[];return o.buckets.each((function(t,n){t.sort((function(t,n){return e.get(r,t)-e.get(r,n)})),a.push({name:n,indices:t})})),a},t.prototype.getAxisTooltipData=function(e,t,n){f.isArray(e)||(e=e?[e]:[]);for(var i,r=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,c=-1,h=o[l].indices.length,d=0;d<h;++d){var p=r.get(e[0],o[l].indices[d]),g=Math.abs(p-t);g<=u&&(i=p,u=g,c=o[l].indices[d])}a.push(c)}return{dataIndices:a,nestestValue:i}},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=i.getName(e),o=i.get(i.mapDimension("value"),e);return(0,ml.Qx)("nameValue",{name:r,value:o})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(p.A);const Ox=kx;function Px(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),n=e.coordinateSystem,i={},r=n.getRect();i.rect=r;var o=e.get("boundaryGap"),a=n.getAxis();if(i.boundaryGap=o,"horizontal"===a.orient){o[0]=Ge.lo(o[0],r.height),o[1]=Ge.lo(o[1],r.height);var s=r.height-o[0]-o[1];Nx(t,e,s)}else{o[0]=Ge.lo(o[0],r.width),o[1]=Ge.lo(o[1],r.width);var l=r.width-o[0]-o[1];Nx(t,e,l)}t.setLayout("layoutInfo",i)}))}function Nx(e,t,n){if(e.count())for(var i,r=t.coordinateSystem,o=t.getLayerSeries(),a=e.mapDimension("single"),s=e.mapDimension("value"),l=f.map(o,(function(t){return f.map(t.indices,(function(t){var n=r.dataToPoint(e.get(a,t));return n[1]=e.get(s,t),n}))})),u=Rx(l),c=u.y0,h=n/u.max,d=o.length,p=o[0].indices.length,g=0;g<p;++g){i=c[g]*h,e.setItemLayout(o[0].indices[g],{layerIndex:0,x:l[0][g][0],y0:i,y:l[0][g][1]*h});for(var y=1;y<d;++y)i+=l[y-1][g][1]*h,e.setItemLayout(o[y].indices[g],{layerIndex:y,x:l[y][g][0],y0:i,y:l[y][g][1]*h})}}function Rx(e){for(var t=e.length,n=e[0].length,i=[],r=[],o=0,a=0;a<n;++a){for(var s=0,l=0;l<t;++l)s+=e[l][a][1];s>o&&(o=s),i.push(s)}for(var u=0;u<n;++u)r[u]=(o-i[u])/2;o=0;for(var c=0;c<n;++c){var h=i[c]+r[c];h>o&&(o=h)}return{y0:r,max:o}}function Ex(e){e.registerChartView(Dx),e.registerSeriesModel(Ox),e.registerLayout(Px),e.registerProcessor(ba("themeRiver"))}var Vx=2,zx=4,Bx=function(e){function t(t,n,i,r){var o=e.call(this)||this;o.z2=Vx,o.textConfig={inside:!0},(0,R.z)(o).seriesIndex=n.seriesIndex;var a=new Gn.Ay({z2:zx,silent:t.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,t,n,i,r),o}return(0,Oe.C6)(t,e),t.prototype.updateData=function(e,t,n,i,r){this.node=t,t.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var o=this;(0,R.z)(o).dataIndex=t.dataIndex;var a=t.getModel(),s=a.getModel("emphasis"),l=t.getLayout(),u=f.extend({},l);u.label=null;var c=t.getVisual("style");c.lineJoin="bevel";var h=t.getVisual("decal");h&&(c.decal=(0,mu.w)(h,r));var d=Fo(a.getModel("itemStyle"),u,!0);f.extend(u,d),f.each(gn.BV,(function(e){var t=o.ensureState(e),n=a.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var i=Fo(n,u);i&&(t.shape=i)})),e?(o.setShape(u),o.shape.r=l.r0,Vn.LW(o,{shape:{r:l.r}},n,t.dataIndex)):(Vn.oi(o,{shape:u},n),(0,Vn.ap)(o)),o.useStyle(c),this._updateLabel(n);var p=a.getShallow("cursor");p&&o.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=s.get("focus"),y="relative"===g?f.concatArray(t.getAncestorsIndices(),t.getDescendantIndices()):"ancestor"===g?t.getAncestorsIndices():"descendant"===g?t.getDescendantIndices():g;(0,gn.Lm)(this,y,s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),i=n.getModel("label"),r=this.node.getLayout(),o=r.endAngle-r.startAngle,a=(r.startAngle+r.endAngle)/2,s=Math.cos(a),l=Math.sin(a),u=this,c=u.getTextContent(),h=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(null!=d&&Math.abs(o)<d);function g(e,t){var n=e.get(t);return null==n?i.get(t):n}c.ignore=!p,f.each(gn.wV,(function(i){var d="normal"===i?n.getModel("label"):n.getModel([i,"label"]),p="normal"===i,y=p?c:c.ensureState(i),m=e.getFormattedLabel(h,i);p&&(m=m||t.node.name),y.style=(0,pn.VB)(d,{},null,"normal"!==i,!0),m&&(y.style.text=m);var v=d.get("show");null==v||p||(y.ignore=!v);var x,_=g(d,"position"),b=p?u:u.states[i],S=b.style.fill;b.textConfig={outsideFill:"inherit"===d.get("color")?S:null,inside:"outside"!==_};var w=g(d,"distance")||0,M=g(d,"align"),A=g(d,"rotate"),I=.5*Math.PI,C=1.5*Math.PI,T=(0,Ri.n)("tangential"===A?Math.PI/2-a:a),D=T>I&&!(0,Ge.dh)(T-I)&&T<C;"outside"===_?(x=r.r+w,M=D?"right":"left"):M&&"center"!==M?"left"===M?(x=r.r0+w,M=D?"right":"left"):"right"===M&&(x=r.r-w,M=D?"left":"right"):(x=o===2*Math.PI&&0===r.r0?0:(r.r+r.r0)/2,M="center"),y.style.align=M,y.style.verticalAlign=g(d,"verticalAlign")||"middle",y.x=x*s+r.cx,y.y=x*l+r.cy;var L=0;"radial"===A?L=(0,Ri.n)(-a)+(D?Math.PI:0):"tangential"===A?L=(0,Ri.n)(Math.PI/2-a)+(D?Math.PI:0):f.isNumber(A)&&(L=A*Math.PI/180),y.rotation=(0,Ri.n)(L)})),c.dirtyStyle()},t}(Wn.A);const Gx=Bx;var Fx="sunburstRootToNode",Hx="sunburstHighlight",Wx="sunburstUnhighlight";function Ux(e){e.registerAction({type:Fx,update:"updateView"},(function(e,t){function n(t,n){var i=Kc(e,[Fx],t);if(i){var r=t.getViewRoot();r&&(e.direction=Qc(r,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)})),e.registerAction({type:Hx,update:"none"},(function(e,t,n){function i(t){var n=Kc(e,[Hx],t);n&&(e.dataIndex=n.node.dataIndex)}e=(0,f.extend)({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},i),n.dispatchAction((0,f.extend)(e,{type:"highlight"}))})),e.registerAction({type:Wx,update:"updateView"},(function(e,t,n){e=(0,f.extend)({},e),n.dispatchAction((0,f.extend)(e,{type:"downplay"}))}))}var Yx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.render=function(e,t,n,i){var r=this;this.seriesModel=e,this.api=n,this.ecModel=t;var o=e.getData(),a=o.tree.root,s=e.getViewRoot(),l=this.group,u=e.get("renderLabelForZeroData"),c=[];s.eachNode((function(e){c.push(e)}));var h=this._oldChildren||[];function d(e,t){function n(e){return e.getId()}function i(n,i){var r=null==n?null:e[n],o=null==i?null:t[i];p(r,o)}0===e.length&&0===t.length||new M(t,e,n,n).add(i).update(i).remove(f.curry(i,null)).execute()}function p(i,r){if(u||!i||i.getValue()||(i=null),i!==a&&r!==a)if(r&&r.piece)i?(r.piece.updateData(!1,i,e,t,n),o.setItemGraphicEl(i.dataIndex,r.piece)):g(r);else if(i){var s=new Gx(i,e,t,n);l.add(s),o.setItemGraphicEl(i.dataIndex,s)}}function g(e){e&&e.piece&&(l.remove(e.piece),e.piece=null)}function y(i,o){o.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,e,t,n):(r.virtualPiece=new Gx(i,e,t,n),l.add(r.virtualPiece)),o.piece.off("click"),r.virtualPiece.on("click",(function(e){r._rootToNode(o.parentNode)}))):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}d(c,h),y(a,s),this._initEvents(),this._oldChildren=c},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var n=!1,i=e.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece===t.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)e._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";(0,Je.JW)(a,s)}}n=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Fx,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData(),i=n.getItemLayout(0);if(i){var r=e[0]-i.cx,o=e[1]-i.cy,a=Math.sqrt(r*r+o*o);return a<=i.r&&a>=i.r0}},t.type="sunburst",t}(h.A);const Xx=Yx;var Zx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return(0,Oe.C6)(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};jx(n);var i=this._levelModels=f.map(e.levels||[],(function(e){return new _.A(e,this,t)}),this),r=$c.createTree(n,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=r.getNodeByDataIndex(t),o=i[n.depth];return o&&(e.parentModel=o),e}))}return r.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=eh(i,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){ph(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(p.A);function jx(e){var t=0;f.each(e.children,(function(e){jx(e);var n=e.value;f.isArray(n)&&(n=n[0]),t+=n}));var n=e.value;f.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),f.isArray(e.value)?e.value[0]=n:e.value=n}const qx=Zx;var $x=Math.PI/180;function Kx(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),i=e.get("radius");f.isArray(i)||(i=[0,i]),f.isArray(t)||(t=[t,t]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=(0,Ge.lo)(t[0],r),l=(0,Ge.lo)(t[1],o),u=(0,Ge.lo)(i[0],a/2),c=(0,Ge.lo)(i[1],a/2),h=-e.get("startAngle")*$x,d=e.get("minAngle")*$x,p=e.getData().tree.root,g=e.getViewRoot(),y=g.depth,m=e.get("sort");null!=m&&Jx(g,m);var v=0;f.each(g.children,(function(e){!isNaN(e.getValue())&&v++}));var x=g.getValue(),_=Math.PI/(x||v)*2,b=g.depth>0,S=g.height-(b?-1:1),w=(c-u)/(S||1),M=e.get("clockwise"),A=e.get("stillShowZeroSum"),I=M?1:-1,C=function(t,n){if(t){var i=n;if(t!==p){var r=t.getValue(),o=0===x&&A?_:r*_;o<d&&(o=d),i=n+I*o;var c=t.depth-y-(b?-1:1),h=u+w*c,g=u+w*(c+1),m=e.getLevelModel(t);if(m){var v=m.get("r0",!0),S=m.get("r",!0),T=m.get("radius",!0);null!=T&&(v=T[0],S=T[1]),null!=v&&(h=(0,Ge.lo)(v,a/2)),null!=S&&(g=(0,Ge.lo)(S,a/2))}t.setLayout({angle:o,startAngle:n,endAngle:i,clockwise:M,cx:s,cy:l,r0:h,r:g})}if(t.children&&t.children.length){var D=0;f.each(t.children,(function(e){D+=C(e,n+D)}))}return i-n}};if(b){var T=u,D=u+w,L=2*Math.PI;p.setLayout({angle:L,startAngle:h,endAngle:h+L,clockwise:M,cx:s,cy:l,r0:T,r:D})}C(g,h)}))}function Jx(e,t){var n=e.children||[];e.children=Qx(n,t),n.length&&f.each(e.children,(function(e){Jx(e,t)}))}function Qx(e,t){if(f.isFunction(t)){var n=f.map(e,(function(e,t){var n=e.getValue();return{params:{depth:e.depth,height:e.height,dataIndex:e.dataIndex,getValue:function(){return n}},index:t}}));return n.sort((function(e,n){return t(e.params,n.params)})),f.map(n,(function(t){return e[t.index]}))}var i="asc"===t;return e.sort((function(e,t){var n=(e.getValue()-t.getValue())*(i?1:-1);return 0===n?(e.dataIndex-t.dataIndex)*(i?-1:1):n}))}function e_(e){var t={};function n(e,n,i){var r=e;while(r&&r.depth>1)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",t);return e.depth>1&&(0,f.isString)(o)&&(o=(0,ue.lift)(o,(e.depth-1)/(i-1)*.5)),o}e.eachSeriesByType("sunburst",(function(e){var t=e.getData(),i=t.tree;i.eachNode((function(r){var o=r.getModel(),a=o.getModel("itemStyle").getItemStyle();a.fill||(a.fill=n(r,e,i.root.height));var s=t.ensureUniqueItemVisual(r.dataIndex,"style");(0,f.extend)(s,a)}))}))}function t_(e){e.registerChartView(Xx),e.registerSeriesModel(qx),e.registerLayout((0,f.curry)(Kx,"sunburst")),e.registerProcessor((0,f.curry)(ba,"sunburst")),e.registerVisual(e_),Ux(e)}var n_={color:"fill",borderColor:"stroke"},i_={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},r_=(0,N.$r)(),o_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return ke(null,this)},t.prototype.getDataParams=function(t,n,i){var r=e.prototype.getDataParams.call(this,t,n);return i&&(r.info=r_(i).info),r},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(p.A);const a_=o_;function s_(e,t){return t=t||[0,0],f.map(["x","y"],(function(n,i){var r=this.getAxis(n),o=t[i],a=e[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))}),this)}function l_(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:f.bind(s_,e)}}}function u_(e,t){return t=t||[0,0],f.map([0,1],(function(n){var i=t[n],r=e[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=t[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function c_(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:f.bind(u_,e)}}}function h_(e,t){var n=this.getAxis(),i=t instanceof Array?t[0]:t,r=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function d_(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:(0,f.bind)(h_,e)}}}function p_(e,t){return t=t||[0,0],f.map(["Radius","Angle"],(function(n,i){var r="get"+n+"Axis",o=this[r](),a=t[i],s=e[i]/2,l="category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(a-s)-o.dataToCoord(a+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function f_(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),i=t.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=t.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=e.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:f.bind(p_,e)}}}function g_(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}function y_(e,t,n,i){return e&&(e.legacy||!1!==e.legacy&&!n&&!i&&"tspan"!==t&&("text"===t||(0,f.hasOwn)(e,"text")))}function m_(e,t,n){var i,r,o,a=e;if("text"===t)o=a;else{o={},(0,f.hasOwn)(a,"text")&&(o.text=a.text),(0,f.hasOwn)(a,"rich")&&(o.rich=a.rich),(0,f.hasOwn)(a,"textFill")&&(o.fill=a.textFill),(0,f.hasOwn)(a,"textStroke")&&(o.stroke=a.textStroke),(0,f.hasOwn)(a,"fontFamily")&&(o.fontFamily=a.fontFamily),(0,f.hasOwn)(a,"fontSize")&&(o.fontSize=a.fontSize),(0,f.hasOwn)(a,"fontStyle")&&(o.fontStyle=a.fontStyle),(0,f.hasOwn)(a,"fontWeight")&&(o.fontWeight=a.fontWeight),r={type:"text",style:o,silent:!0},i={};var s=(0,f.hasOwn)(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),(0,f.hasOwn)(a,"textPosition")&&(i.position=a.textPosition),(0,f.hasOwn)(a,"textOffset")&&(i.offset=a.textOffset),(0,f.hasOwn)(a,"textRotation")&&(i.rotation=a.textRotation),(0,f.hasOwn)(a,"textDistance")&&(i.distance=a.textDistance)}return v_(o,e),(0,f.each)(o.rich,(function(e){v_(e,e)})),{textConfig:i,textContent:r}}function v_(e,t){t&&(t.font=t.textFont||t.font,(0,f.hasOwn)(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),(0,f.hasOwn)(t,"textAlign")&&(e.align=t.textAlign),(0,f.hasOwn)(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),(0,f.hasOwn)(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),(0,f.hasOwn)(t,"textWidth")&&(e.width=t.textWidth),(0,f.hasOwn)(t,"textHeight")&&(e.height=t.textHeight),(0,f.hasOwn)(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),(0,f.hasOwn)(t,"textPadding")&&(e.padding=t.textPadding),(0,f.hasOwn)(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),(0,f.hasOwn)(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),(0,f.hasOwn)(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),(0,f.hasOwn)(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),(0,f.hasOwn)(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),(0,f.hasOwn)(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),(0,f.hasOwn)(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function x_(e,t,n){var i=e;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,o=e.fill||"#000";__(i,t);var a=null==i.textFill;return r?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=e.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=t.text,i.rich=t.rich,(0,f.each)(t.rich,(function(e){__(e,e)})),i}function __(e,t){t&&((0,f.hasOwn)(t,"fill")&&(e.textFill=t.fill),(0,f.hasOwn)(t,"stroke")&&(e.textStroke=t.fill),(0,f.hasOwn)(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),(0,f.hasOwn)(t,"font")&&(e.font=t.font),(0,f.hasOwn)(t,"fontStyle")&&(e.fontStyle=t.fontStyle),(0,f.hasOwn)(t,"fontWeight")&&(e.fontWeight=t.fontWeight),(0,f.hasOwn)(t,"fontSize")&&(e.fontSize=t.fontSize),(0,f.hasOwn)(t,"fontFamily")&&(e.fontFamily=t.fontFamily),(0,f.hasOwn)(t,"align")&&(e.textAlign=t.align),(0,f.hasOwn)(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),(0,f.hasOwn)(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),(0,f.hasOwn)(t,"width")&&(e.textWidth=t.width),(0,f.hasOwn)(t,"height")&&(e.textHeight=t.height),(0,f.hasOwn)(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),(0,f.hasOwn)(t,"padding")&&(e.textPadding=t.padding),(0,f.hasOwn)(t,"borderColor")&&(e.textBorderColor=t.borderColor),(0,f.hasOwn)(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),(0,f.hasOwn)(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),(0,f.hasOwn)(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),(0,f.hasOwn)(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),(0,f.hasOwn)(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),(0,f.hasOwn)(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),(0,f.hasOwn)(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),(0,f.hasOwn)(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),(0,f.hasOwn)(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),(0,f.hasOwn)(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var b_=n(4098),S_={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},w_=(0,f.keys)(S_),M_=((0,f.reduce)(ki.Wx,(function(e,t){return e[t]=1,e}),{}),ki.Wx.join(", "),["","style","shape","extra"]),A_=(0,N.$r)();function I_(e,t,n,i,r){var o=e+"Animation",a=(0,Vn.Jw)(e,i,r)||{},s=A_(t).userDuring;return a.duration>0&&(a.during=s?(0,f.bind)(E_,{el:t,userDuring:s}):null,a.setToFinal=!0,a.scope=e),(0,f.extend)(a,n[o]),a}function C_(e,t,n,i){i=i||{};var r=i.dataIndex,o=i.isInit,a=i.clearStyle,s=n.isAnimationEnabled(),l=A_(e),u=t.style;l.userDuring=t.during;var c={},h={};if(G_(e,t,h),z_("shape",t,h),z_("extra",t,h),!o&&s&&(B_(e,t,c),V_("shape",e,t,c),V_("extra",e,t,c),F_(e,t,u,c)),h.style=u,k_(e,h,a),P_(e,t),s)if(o){var d={};(0,f.each)(M_,(function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(d[e]=d[e]||{}),(0,f.extend)(e?d[e]:d,n.enterFrom))}));var p=I_("enter",e,t,n,r);p.duration>0&&e.animateFrom(d,p)}else O_(e,t,r||0,n,c);T_(e,t),u?e.dirty():e.markRedraw()}function T_(e,t){for(var n=A_(e).leaveToProps,i=0;i<M_.length;i++){var r=M_[i],o=r?t[r]:t;o&&o.leaveTo&&(n||(n=A_(e).leaveToProps={}),r&&(n[r]=n[r]||{}),(0,f.extend)(r?n[r]:n,o.leaveTo))}}function D_(e,t,n,i){if(e){var r=e.parent,o=A_(e).leaveToProps;if(o){var a=I_("update",e,t,n,0);a.done=function(){r.remove(e),i&&i()},e.animateTo(o,a)}else r.remove(e),i&&i()}}function L_(e){return"all"===e}function k_(e,t,n){var i=t.style;if(!e.isGroup&&i){if(n){e.useStyle({});for(var r=e.animators,o=0;o<r.length;o++){var a=r[o];"style"===a.targetName&&a.changeTarget(e.style)}}e.setStyle(i)}t&&(t.style=null,t&&e.attr(t),t.style=i)}function O_(e,t,n,i,r){if(r){var o=I_("update",e,t,i,n);o.duration>0&&e.animateFrom(r,o)}}function P_(e,t){(0,f.hasOwn)(t,"silent")&&(e.silent=t.silent),(0,f.hasOwn)(t,"ignore")&&(e.ignore=t.ignore),e instanceof vu.Ay&&(0,f.hasOwn)(t,"invisible")&&(e.invisible=t.invisible),e instanceof Pi.Ay&&(0,f.hasOwn)(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var N_={},R_={setTransform:function(e,t){return N_.el[e]=t,this},getTransform:function(e){return N_.el[e]},setShape:function(e,t){var n=N_.el,i=n.shape||(n.shape={});return i[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=N_.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=N_.el,i=n.style;return i&&(i[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=N_.el.style;if(t)return t[e]},setExtra:function(e,t){var n=N_.el.extra||(N_.el.extra={});return n[e]=t,this},getExtra:function(e){var t=N_.el.extra;if(t)return t[e]}};function E_(){var e=this,t=e.el;if(t){var n=A_(t).userDuring,i=e.userDuring;n===i?(N_.el=t,i(R_)):e.el=e.userDuring=null}}function V_(e,t,n,i){var r=n[e];if(r){var o,a=t[e];if(a){var s=n.transition,l=r.transition;if(l)if(!o&&(o=i[e]={}),L_(l))(0,f.extend)(o,a);else for(var u=(0,N.qB)(l),c=0;c<u.length;c++){var h=u[c],d=a[h];o[h]=d}else if(L_(s)||(0,f.indexOf)(s,e)>=0){!o&&(o=i[e]={});var p=(0,f.keys)(a);for(c=0;c<p.length;c++){h=p[c],d=a[h];H_(r[h],d)&&(o[h]=d)}}}}}function z_(e,t,n){var i=t[e];if(i)for(var r=n[e]={},o=(0,f.keys)(i),a=0;a<o.length;a++){var s=o[a];r[s]=(0,b_.F)(i[s])}}function B_(e,t,n){for(var i=t.transition,r=L_(i)?ki.Wx:(0,N.qB)(i||[]),o=0;o<r.length;o++){var a=r[o];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=e[a];0,n[a]=s}}}function G_(e,t,n){for(var i=0;i<w_.length;i++){var r=w_[i],o=S_[r],a=t[r];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(i=0;i<ki.Wx.length;i++){var s=ki.Wx[i];null!=t[s]&&(n[s]=t[s])}}function F_(e,t,n,i){if(n){var r,o=e.style;if(o){var a=n.transition,s=t.transition;if(a&&!L_(a)){var l=(0,N.qB)(a);!r&&(r=i.style={});for(var u=0;u<l.length;u++){var c=l[u],h=o[c];r[c]=h}}else if(e.getAnimationStyleProps&&(L_(s)||L_(a)||(0,f.indexOf)(s,"style")>=0)){var d=e.getAnimationStyleProps(),p=d?d.style:null;if(p){!r&&(r=i.style={});var g=(0,f.keys)(n);for(u=0;u<g.length;u++){c=g[u];if(p[c]){h=o[c];r[c]=h}}}}}}}function H_(e,t){return(0,f.isArrayLike)(e)?e!==t:null!=e&&isFinite(e)}var W_=(0,N.$r)(),U_=["percent","easing","shape","style","extra"];function Y_(e){e.stopAnimation("keyframe"),e.attr(W_(e))}function X_(e,t,n){if(n.isAnimationEnabled()&&t)if((0,f.isArray)(t))(0,f.each)(t,(function(t){X_(e,t,n)}));else{var i=t.keyframes,r=t.duration;if(n&&null==r){var o=(0,Vn.Jw)("enter",n,0);r=o&&o.duration}if(i&&r){var a=W_(e);(0,f.each)(M_,(function(n){if(!n||e[n]){var o;i.sort((function(e,t){return e.percent-t.percent})),(0,f.each)(i,(function(i){var s=e.animators,l=n?i[n]:i;if(l){var u=(0,f.keys)(l);if(n||(u=(0,f.filter)(u,(function(e){return(0,f.indexOf)(U_,e)<0}))),u.length){o||(o=e.animate(n,t.loop,!0),o.scope="keyframe");for(var c=0;c<s.length;c++)s[c]!==o&&s[c].targetName===o.targetName&&s[c].stopTracks(u);n&&(a[n]=a[n]||{});var h=n?a[n]:a;(0,f.each)(u,(function(t){h[t]=((n?e[n]:e)||{})[t]})),o.whenWithKeys(r*i.percent,l,u,i.easing)}}})),o&&o.delay(t.delay||0).duration(r).start(t.easing)}}))}}}var Z_="emphasis",j_="normal",q_="blur",$_="select",K_=[j_,Z_,q_,$_],J_={normal:["itemStyle"],emphasis:[Z_,"itemStyle"],blur:[q_,"itemStyle"],select:[$_,"itemStyle"]},Q_={normal:["label"],emphasis:[Z_,"label"],blur:[q_,"label"],select:[$_,"label"]},eb=["x","y"],tb="e\0\0",nb={normal:{},emphasis:{},blur:{},select:{}},ib={cartesian2d:l_,geo:c_,single:d_,polar:f_,calendar:g_};function rb(e){return e instanceof Pi.Ay}function ob(e){return e instanceof vu.Ay}function ab(e,t){t.copyTransform(e),ob(t)&&ob(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,rb(t)&&rb(e)&&t.setShape(e.shape))}var sb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.render=function(e,t,n,i){this._progressiveEls=null;var r=this._data,o=e.getData(),a=this.group,s=fb(e,o,t,n);r||a.removeAll(),o.diff(r).add((function(t){yb(n,null,t,s(t,i),e,a,o)})).remove((function(t){var n=r.getItemGraphicEl(t);n&&D_(n,r_(n).option,e)})).update((function(t,l){var u=r.getItemGraphicEl(l);yb(n,u,t,s(t,i),e,a,o)})).execute();var l=e.get("clip",!0)?no(e.coordinateSystem,!1,e):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,i,r){var o=t.getData(),a=fb(t,o,n,i),s=this._progressiveEls=[];function l(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var u=e.start;u<e.end;u++){var c=yb(null,null,u,a(u,r),t,this.group,o);c&&(c.traverse(l),s.push(c))}},t.prototype.eachRendered=function(e){En.traverseElements(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,n,i){var r=t.element;if(null==r||n.name===r)return!0;while((n=n.__hostTarget||n.parent)&&n!==this.group)if(n.name===r)return!0;return!1},t.type="custom",t}(h.A);const lb=sb;function ub(e){var t,n=e.type;if("path"===n){var i=e.shape,r=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,o=Lb(i);t=En.makePath(o,null,r,i.layout||"center"),r_(t).customPathData=o}else if("image"===n)t=new Bn.Ay({}),r_(t).customImagePath=e.style.image;else if("text"===n)t=new Gn.Ay({});else if("group"===n)t=new zn.A;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=En.getShapeClass(n);if(!a){var s="";0,(0,Tm.$8)(s)}t=new a}return r_(t).customGraphicType=n,t.name=e.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function cb(e,t,n,i,r,o,a){Y_(t);var s=r&&r.normal.cfg;s&&t.setTextConfig(s),i&&null==i.transition&&(i.transition=eb);var l=i&&i.style;if(l){if("text"===t.type){var u=l;(0,f.hasOwn)(u,"textFill")&&(u.fill=u.textFill),(0,f.hasOwn)(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,h=rb(t)?l.decal:null;e&&h&&(h.dirty=!0,c=(0,mu.w)(h,e)),l.__decalPattern=c}if(ob(t)&&l){c=l.__decalPattern;c&&(l.decal=c)}C_(t,i,o,{dataIndex:n,isInit:a,clearStyle:!0}),X_(t,i.keyframeAnimation,o)}function hb(e,t,n,i,r){var o=t.isGroup?null:t,a=r&&r[e].cfg;if(o){var s=o.ensureState(e);if(!1===i){var l=o.getState(e);l&&(l.style=null)}else s.style=i||null;a&&(s.textConfig=a),(0,gn.DW)(o)}}function db(e,t,n){if(!e.isGroup){var i=e,r=n.currentZ,o=n.currentZLevel;i.z=r,i.zlevel=o;var a=t.z2;null!=a&&(i.z2=a||0);for(var s=0;s<K_.length;s++)pb(i,t,K_[s])}}function pb(e,t,n){var i,r=n===j_,o=r?t:Sb(t,n),a=o?o.z2:null;null!=a&&(i=r?e:e.ensureState(n),i.z2=a||0)}function fb(e,t,n,i){var r=e.get("renderItem"),o=e.coordinateSystem,a={};o&&(a=o.prepareCustoms?o.prepareCustoms(o):ib[o.type](o));for(var s,l,u=(0,f.defaults)({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:b,style:w,ordinalRawValue:S,styleEmphasis:M,visual:C,barLayout:T,currentSeriesIndices:D,font:L},a.api||{}),c={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:a.coordSys,dataInsideLength:t.count(),encode:gb(e.getData())},h={},d={},p={},g={},y=0;y<K_.length;y++){var m=K_[y];p[m]=e.getModel(J_[m]),g[m]=e.getModel(Q_[m])}function v(e){return e===s?l||(l=t.getItemModel(e)):t.getItemModel(e)}function x(e,n){return t.hasItemOption?e===s?h[n]||(h[n]=v(e).getModel(J_[n])):v(e).getModel(J_[n]):p[n]}function _(e,n){return t.hasItemOption?e===s?d[n]||(d[n]=v(e).getModel(Q_[n])):v(e).getModel(Q_[n]):g[n]}return function(e,n){return s=e,l=null,h={},d={},r&&r((0,f.defaults)({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},c),u)};function b(e,n){return null==n&&(n=s),t.getStore().get(t.getDimensionIndex(e||0),n)}function S(e,n){null==n&&(n=s),e=e||0;var i=t.getDimensionInfo(e);if(!i){var r=t.getDimensionIndex(e);return r>=0?t.getStore().get(r,n):void 0}var o=t.get(i.name,n),a=i&&i.ordinalMeta;return a?a.categories[o]:o}function w(n,i){null==i&&(i=s);var r=t.getItemVisual(i,"style"),o=r&&r.fill,a=r&&r.opacity,l=x(i,j_).getItemStyle();null!=o&&(l.fill=o),null!=a&&(l.opacity=a);var u={inheritColor:(0,f.isString)(o)?o:"#000"},c=_(i,j_),h=pn.VB(c,null,u,!1,!0);h.text=c.getShallow("show")?(0,f.retrieve2)(e.getFormattedLabel(i,j_),kr(t,i)):null;var d=pn.sD(c,u,!1);return I(n,l),l=x_(l,h,d),n&&A(l,n),l.legacy=!0,l}function M(n,i){null==i&&(i=s);var r=x(i,Z_).getItemStyle(),o=_(i,Z_),a=pn.VB(o,null,null,!0,!0);a.text=o.getShallow("show")?(0,f.retrieve3)(e.getFormattedLabel(i,Z_),e.getFormattedLabel(i,j_),kr(t,i)):null;var l=pn.sD(o,null,!0);return I(n,r),r=x_(r,a,l),n&&A(r,n),r.legacy=!0,r}function A(e,t){for(var n in t)(0,f.hasOwn)(t,n)&&(e[n]=t[n])}function I(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function C(e,n){if(null==n&&(n=s),(0,f.hasOwn)(n_,e)){var i=t.getItemVisual(n,"style");return i?i[n_[e]]:null}if((0,f.hasOwn)(i_,e))return t.getItemVisual(n,e)}function T(e){if("cartesian2d"===o.type){var t=o.getBaseAxis();return ut((0,f.defaults)({axis:t},e))}}function D(){return n.getCurrentSeriesIndices()}function L(e){return pn.c8(e,n)}}function gb(e){var t={};return(0,f.each)(e.dimensions,(function(n){var i=e.getDimensionInfo(n);if(!i.isExtraCoord){var r=i.coordDim,o=t[r]=t[r]||[];o[i.coordDimIndex]=e.getDimensionIndex(n)}})),t}function yb(e,t,n,i,r,o,a){if(i){var s=mb(e,t,n,i,r,o);return s&&a.setItemGraphicEl(n,s),s&&(0,gn.Lm)(s,i.focus,i.blurScope,i.emphasisDisabled),s}o.remove(t)}function mb(e,t,n,i,r,o){var a=-1,s=t;t&&vb(t,i,r)&&(a=(0,f.indexOf)(o.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=ub(i),s&&ab(s,u)),!1===i.morph?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),nb.normal.cfg=nb.normal.conOpt=nb.emphasis.cfg=nb.emphasis.conOpt=nb.blur.cfg=nb.blur.conOpt=nb.select.cfg=nb.select.conOpt=null,nb.isLegacy=!1,_b(u,n,i,r,l,nb),xb(u,n,i,r,l),cb(e,u,n,i,nb,r,l),(0,f.hasOwn)(i,"info")&&(r_(u).info=i.info);for(var c=0;c<K_.length;c++){var h=K_[c];if(h!==j_){var d=Sb(i,h),p=wb(i,d,h);hb(h,u,d,p,nb)}}return db(u,i,r),"group"===i.type&&Mb(e,u,n,i,r),a>=0?o.replaceAt(u,a):o.add(u),u}function vb(e,t,n){var i=r_(e),r=t.type,o=t.shape,a=t.style;return n.isUniversalTransitionEnabled()||null!=r&&r!==i.customGraphicType||"path"===r&&kb(o)&&Lb(o)!==i.customPathData||"image"===r&&(0,f.hasOwn)(a,"image")&&a.image!==i.customImagePath}function xb(e,t,n,i,r){var o=n.clipPath;if(!1===o)e&&e.getClipPath()&&e.removeClipPath();else if(o){var a=e.getClipPath();a&&vb(a,o,i)&&(a=null),a||(a=ub(o),e.setClipPath(a)),cb(null,a,t,o,null,i,r)}}function _b(e,t,n,i,r,o){if(!e.isGroup){bb(n,null,o),bb(n,Z_,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var c=e.getTextContent();if(!1===a)c&&e.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=ub(a),e.setTextContent(c)),cb(null,c,t,a,null,i,r);for(var h=a&&a.style,d=0;d<K_.length;d++){var p=K_[d];if(p!==j_){var f=o[p].conOpt;hb(p,c,f,wb(a,f,p),null)}}h?c.dirty():c.markRedraw()}}}}function bb(e,t,n){var i=t?Sb(e,t):e,r=t?wb(e,i,Z_):e.style,o=e.type,a=i?i.textConfig:null,s=e.textContent,l=s?t?Sb(s,t):s:null;if(r&&(n.isLegacy||y_(r,o,!!a,!!l))){n.isLegacy=!0;var u=m_(r,o,!t);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text")}var h=t?n[t]:n.normal;h.cfg=a,h.conOpt=l}function Sb(e,t){return t?e?e[t]:null:e}function wb(e,t,n){var i=t&&t.style;return null==i&&n===Z_&&e&&(i=e.styleEmphasis),i}function Mb(e,t,n,i,r){var o=i.children,a=o?o.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,u=!1===s;if(a||l||u)if(l)Ib({api:e,oldChildren:t.children()||[],newChildren:o||[],dataIndex:n,seriesModel:r,group:t});else{u&&t.removeAll();for(var c=0;c<a;c++){var h=o[c],d=t.childAt(c);h?(null==h.ignore&&(h.ignore=!1),mb(e,d,n,h,r,t)):d.ignore=!0}for(var p=t.childCount()-1;p>=c;p--){var f=t.childAt(p);Ab(t,f,r)}}}function Ab(e,t,n){t&&D_(t,r_(e).option,n)}function Ib(e){new M(e.oldChildren,e.newChildren,Cb,Cb,e).add(Tb).update(Tb).remove(Db).execute()}function Cb(e,t){var n=e&&e.name;return null!=n?n:tb+t}function Tb(e,t){var n=this.context,i=null!=e?n.newChildren[e]:null,r=null!=t?n.oldChildren[t]:null;mb(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function Db(e){var t=this.context,n=t.oldChildren[e];n&&D_(n,r_(n).option,t.seriesModel)}function Lb(e){return e&&(e.pathData||e.d)}function kb(e){return e&&((0,f.hasOwn)(e,"pathData")||(0,f.hasOwn)(e,"d"))}function Ob(e){e.registerChartView(lb),e.registerSeriesModel(a_)}var Pb=(0,N.$r)(),Nb=f.clone,Rb=f.bind,Eb=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,i){var r=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,e,t,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(e,t);if(a){var h=f.curry(Vb,t,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,t)}else a=this._group=new zn.A,this.createPointerEl(a,l,e,t),this.createLabelEl(a,l,e,t),n.getZr().add(a);Fb(a,t,!0),this._renderHandle(r)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),i=e.axis,r="category"===i.type,o=t.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=Ys(e).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,i,r){},e.prototype.createPointerEl=function(e,t,n,i){var r=t.pointer;if(r){var o=Pb(e).pointerEl=new En[r.type](Nb(t.pointer));e.add(o)}},e.prototype.createLabelEl=function(e,t,n,i){if(t.label){var r=Pb(e).labelEl=new Gn.Ay(Nb(t.label));e.add(r),Bb(r,i)}},e.prototype.updatePointerEl=function(e,t,n){var i=Pb(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),n(i,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,i){var r=Pb(e).labelEl;r&&(r.setStyle(t.label.style),n(r,{x:t.label.x,y:t.label.y}),Bb(r,i))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(t=!0,r=this._handle=En.createIcon(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){Nl.ds(e.event)},onmousedown:Rb(this._onHandleDragMove,this,0,0),drift:Rb(this._onHandleDragMove,this),ondragend:Rb(this._onHandleDragEnd,this)}),i.add(r)),Fb(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");f.isArray(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,ce.N(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){Vb(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Gb(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Gb(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Gb(i)),Pb(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,i=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),ce.IU(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function Vb(e,t,n,i){zb(Pb(n).lastProp,i)||(Pb(n).lastProp=i,t?Vn.oi(n,i,e):(n.stopAnimation(),n.attr(i)))}function zb(e,t){if(f.isObject(e)&&f.isObject(t)){var n=!0;return f.each(t,(function(t,i){n=n&&zb(e[i],t)})),!!n}return e===t}function Bb(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Gb(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Fb(e,t,n){var i=t.get("z"),r=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=i&&(e.z=i),null!=r&&(e.zlevel=r),e.silent=n)}))}const Hb=Eb;function Wb(e){var t,n=e.get("type"),i=e.getModel(n+"Style");return"line"===n?(t=i.getLineStyle(),t.fill=null):"shadow"===n&&(t=i.getAreaStyle(),t.stroke=null),t}function Ub(e,t,n,i,r){var o=n.get("value"),a=Xb(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Je.QX(s.get("padding")||0),u=s.getFont(),c=Yt.NO(a,u),h=r.position,d=c.width+l[1]+l[3],p=c.height+l[0]+l[2],f=r.align;"right"===f&&(h[0]-=d),"center"===f&&(h[0]-=d/2);var g=r.verticalAlign;"bottom"===g&&(h[1]-=p),"middle"===g&&(h[1]-=p/2),Yb(h,d,p,i);var y=s.get("backgroundColor");y&&"auto"!==y||(y=t.get(["axisLine","lineStyle","color"])),e.label={x:h[0],y:h[1],style:(0,pn.VB)(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function Yb(e,t,n,i){var r=i.getWidth(),o=i.getHeight();e[0]=Math.min(e[0]+t,r)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function Xb(e,t,n,i,r){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:r.precision}),a=r.formatter;if(a){var s={value:rn(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};f.each(i,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),i=e.dataIndexInside,r=t&&t.getDataParams(i);r&&s.seriesData.push(r)})),f.isString(a)?o=a.replace("{value}",o):f.isFunction(a)&&(o=a(s))}return o}function Zb(e,t,n){var i=se.create();return se.rotate(i,i,n.rotation),se.translate(i,i,n.position),En.applyTransform([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function jb(e,t,n,i,r,o){var a=Vs.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),Ub(t,i,r,o,{position:Zb(i.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function qb(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function $b(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function Kb(e,t,n,i,r,o){return{cx:e,cy:t,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var Jb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Oe.C6)(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=Qb(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(t,!0));if(s&&"none"!==s){var c=Wb(i),h=eS[s](o,u,l);h.style=c,e.graphicKey=h.type,e.pointer=h}var d=fs(a.model,n);jb(t,e,d,n,i,r)},t.prototype.getHandleTransform=function(e,t,n){var i=fs(t.axis.grid.model,t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=Zb(t.axis,e,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=Qb(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[e.x,e.y];u[l]+=t[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];h[l]=u[l];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:h,tooltipOption:d[l]}},t}(Hb);function Qb(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var eS={line:function(e,t,n){var i=qb([t,n[0]],[t,n[1]],tS(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,n){var i=Math.max(1,e.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:$b([t-i/2,n[0]],[i,r],tS(e))}}};function tS(e){return"x"===e.dim?0:1}const nS=Jb;var iS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(d.A);const rS=iS;var oS=(0,N.$r)(),aS=f.each;function sS(e,t,n){if(!ri.A.node){var i=t.getZr();oS(i).records||(oS(i).records={}),lS(i,t);var r=oS(i).records[e]||(oS(i).records[e]={});r.handler=n}}function lS(e,t){function n(n,i){e.on(n,(function(n){var r=dS(t);aS(oS(e).records,(function(e){e&&i(e,n,r.dispatchAction)})),uS(r.pendings,t)}))}oS(e).initialized||(oS(e).initialized=!0,n("click",f.curry(hS,"click")),n("mousemove",f.curry(hS,"mousemove")),n("globalout",cS))}function uS(e,t){var n,i=e.showTip.length,r=e.hideTip.length;i?n=e.showTip[i-1]:r&&(n=e.hideTip[r-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function cS(e,t,n){e.handler("leave",null,n)}function hS(e,t,n,i){t.handler(e,n,i)}function dS(e){var t={showTip:[],hideTip:[]},n=function(i){var r=t[i.type];r?r.push(i):(i.dispatchAction=n,e.dispatchAction(i))};return{dispatchAction:n,pendings:t}}function pS(e,t){if(!ri.A.node){var n=t.getZr(),i=(oS(n).records||{})[e];i&&(oS(n).records[e]=null)}}var fS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.render=function(e,t,n){var i=t.getComponent("tooltip"),r=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";sS("axisPointer",n,(function(e,t,n){"none"!==r&&("leave"===e||r.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){pS("axisPointer",t)},t.prototype.dispose=function(e,t){pS("axisPointer",t)},t.type="axisPointer",t}(c.A);const gS=fS;function yS(e,t){var n,i=[],r=e.seriesIndex;if(null==r||!(n=t.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=N.le(o,e);if(null==a||a<0||f.isArray(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),h=c.dim,d=u.dim,p="x"===h||"radius"===h?1:0,g=o.mapDimension(d),y=[];y[p]=o.get(g,a),y[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(y)||[]}else i=l.dataToPoint(o.getValues(f.map(l.dimensions,(function(e){return o.mapDimension(e)})),a))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),i=[m.x+m.width/2,m.y+m.height/2]}return{point:i,el:s}}var mS=(0,N.$r)();function vS(e,t,n){var i=e.currTrigger,r=[e.x,e.y],o=e,a=e.dispatchAction||(0,f.bind)(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){TS(r)&&(r=yS({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=TS(r),u=o.axesInfo,c=s.axesInfo,h="leave"===i||TS(r),d={},p={},g={list:[],map:{}},y={showPointer:(0,f.curry)(bS,p),showTooltip:(0,f.curry)(SS,g)};(0,f.each)(s.coordSysMap,(function(e,t){var n=l||e.containPoint(r);(0,f.each)(s.coordSysAxesInfo[t],(function(e,t){var i=e.axis,o=IS(u,e);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&xS(e,a,y,!1,d)}}))}));var m={};return(0,f.each)(c,(function(e,t){var n=e.linkGroup;n&&!p[t]&&(0,f.each)(n.axesInfo,(function(t,i){var r=p[i];if(t!==e&&r){var o=r.value;n.mapper&&(o=e.axis.scale.parse(n.mapper(o,CS(t),CS(e)))),m[e.key]=o}}))})),(0,f.each)(m,(function(e,t){xS(c[t],e,y,!0,d)})),wS(p,c,d),MS(g,r,e,a),AS(c,a,n),d}}function xS(e,t,n,i,r){var o=e.axis;if(!o.scale.isBlank()&&o.containData(t))if(e.involveSeries){var a=_S(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&(0,f.extend)(r,s[0]),!i&&e.snap&&o.containData(l)&&null!=l&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}else n.showPointer(e,t)}function _S(e,t){var n=t.axis,i=n.dim,r=e,o=[],a=Number.MAX_VALUE,s=-1;return(0,f.each)(t.seriesModels,(function(t,l){var u,c,h=t.getData().mapDimensionsAll(i);if(t.getAxisTooltipData){var d=t.getAxisTooltipData(h,e,n);c=d.dataIndices,u=d.nestestValue}else{if(c=t.getData().indicesOfNearest(h[0],e,"category"===n.type?.5:null),!c.length)return;u=t.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var p=e-u,g=Math.abs(p);g<=a&&((g<a||p>=0&&s<0)&&(a=g,s=p,r=u,o.length=0),(0,f.each)(c,(function(e){o.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:o,snapToValue:r}}function bS(e,t,n,i){e[t.key]={value:n,payloadBatch:i}}function SS(e,t,n,i){var r=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&r.length){var l=t.coordSys.model,u=js(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function wS(e,t,n){var i=n.axesInfo=[];(0,f.each)(t,(function(t,n){var r=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:r.value})}))}function MS(e,t,n,i){if(!TS(t)&&e.list.length){var r=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:e.list})}else i({type:"hideTip"})}function AS(e,t,n){var i=n.getZr(),r="axisPointerLastHighlights",o=mS(i)[r]||{},a=mS(i)[r]={};(0,f.each)(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&e.triggerEmphasis&&(0,f.each)(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;a[t]=e}))}));var s=[],l=[];(0,f.each)(o,(function(e,t){!a[t]&&l.push(e)})),(0,f.each)(a,(function(e,t){!o[t]&&s.push(e)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function IS(e,t){for(var n=0;n<(e||[]).length;n++){var i=e[n];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function CS(e){var t=e.axis.model,n={},i=n.axisDim=e.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=t.componentIndex,n.axisName=n[i+"AxisName"]=t.name,n.axisId=n[i+"AxisId"]=t.id,n}function TS(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function DS(e){Ks.registerAxisPointerClass("CartesianAxisPointer",nS),e.registerComponentModel(rS),e.registerComponentView(gS),e.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!(0,f.isArray)(t)&&(e.axisPointer.link=[t])}})),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=zs(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},vS)}function LS(e){x(ul),x(DS)}var kS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Oe.C6)(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o),l=s.getExtent(),u=o.dataToCoord(t),c=i.get("type");if(c&&"none"!==c){var h=Wb(i),d=PS[c](o,a,u,l);d.style=h,e.graphicKey=d.type,e.pointer=d}var p=i.get(["label","margin"]),f=OS(t,n,i,a,p);Ub(e,n,i,r,f)},t}(Hb);function OS(e,t,n,i,r){var o=t.axis,a=o.dataToCoord(e),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,h=i.getRadiusAxis().getExtent();if("radius"===o.dim){var d=se.create();se.rotate(d,d,s),se.translate(d,d,[i.cx,i.cy]),l=En.applyTransform([a,-r],d);var p=t.getModel("axisLabel").get("rotate")||0,f=Vs.innerTextLayout(s,p*Math.PI/180,-1);u=f.textAlign,c=f.textVerticalAlign}else{var g=h[1];l=i.coordToPoint([g+r,a]);var y=i.cx,m=i.cy;u=Math.abs(l[0]-y)/g<.3?"center":l[0]>y?"left":"right",c=Math.abs(l[1]-m)/g<.3?"middle":l[1]>m?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}var PS={line:function(e,t,n,i){return"angle"===e.dim?{type:"Line",shape:qb(t.coordToPoint([i[0],n]),t.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,i){var r=Math.max(1,e.getBandWidth()),o=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:Kb(t.cx,t.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:Kb(t.cx,t.cy,n-r/2,n+r/2,0,2*Math.PI)}}};const NS=kS;var RS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.findAxisModel=function(e){var t,n=this.ecModel;return n.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(d.A);const ES=RS;var VS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Oe.C6)(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",N.US).models[0]},t.type="polarAxis",t}(d.A);f.mixin(VS,hn);var zS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.type="angleAxis",t}(VS),BS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.type="radiusAxis",t}(VS),GS=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return(0,Oe.C6)(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(Ai);GS.prototype.dataToRadius=Ai.prototype.dataToCoord,GS.prototype.radiusToData=Ai.prototype.coordToData;const FS=GS;var HS=(0,N.$r)(),WS=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return(0,Oe.C6)(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],a=e.dataToCoord(o+1)-e.dataToCoord(o),s=Math.abs(a),l=Yt.NO(null==o?"":o+"",t.getFont(),"center","top"),u=Math.max(l.height,7),c=u/s;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),d=HS(e.model),p=d.lastAutoInterval,f=d.lastTickCount;return null!=p&&null!=f&&Math.abs(p-h)<=1&&Math.abs(f-r)<=1&&p>h?h=p:(d.lastTickCount=r,d.lastAutoInterval=h),h},t}(Ai);WS.prototype.dataToAngle=Ai.prototype.dataToCoord,WS.prototype.angleToData=Ai.prototype.coordToData;const US=WS;var YS=["radius","angle"],XS=function(){function e(e){this.dimensions=YS,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new FS,this._angleAxis=new US,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===e&&t.push(n),i.scale.type===e&&t.push(i),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;var l=Math.atan2(-n,t)/Math.PI*180,u=l<o?1:-1;while(l<o||l>a)l+=360*u;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI,i=Math.cos(n)*t+this.cx,r=-Math.sin(n)*t+this.cy;return[i,r]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var i=e.getExtent(),r=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*r,endAngle:-i[1]*r,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,i=t-this.cy,r=n*n+i*i,a=this.r,s=this.r0;return a!==s&&r-o<=a*a&&r+o>=s*s}}},e.prototype.convertToPixel=function(e,t,n){var i=ZS(t);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=ZS(t);return i===this?this.pointToData(n):null},e}();function ZS(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}const jS=XS;function qS(e,t,n){var i=t.get("center"),r=n.getWidth(),o=n.getHeight();e.cx=(0,Ge.lo)(i[0],r),e.cy=(0,Ge.lo)(i[1],o);var a=e.getRadiusAxis(),s=Math.min(r,o)/2,l=t.get("radius");null==l?l=[0,"100%"]:f.isArray(l)||(l=[0,l]);var u=[(0,Ge.lo)(l[0],s),(0,Ge.lo)(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function $S(e,t){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();f.each(un(t,"radius"),(function(e){r.scale.unionExtentFromData(t,e)})),f.each(un(t,"angle"),(function(e){i.scale.unionExtentFromData(t,e)}))}})),Qt(i.scale,i.model),Qt(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function KS(e){return"angleAxis"===e.mainType}function JS(e,t){var n;if(e.type=t.get("type"),e.scale=en(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),KS(t)){e.inverse=e.inverse!==t.get("clockwise");var i=t.get("startAngle"),r=null!==(n=t.get("endAngle"))&&void 0!==n?n:i+(e.inverse?-360:360);e.setExtent(i,r)}t.axis=e,e.model=t}var QS={dimensions:YS,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,i){var r=new jS(i+"");r.update=$S;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");JS(o,s),JS(a,l),qS(r,e,t),n.push(r),e.coordinateSystem=r,r.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",N.US).models[0];0,e.coordinateSystem=t.coordinateSystem}})),n}};const ew=QS;var tw=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function nw(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var i=e.coordToPoint([t[0],n]),r=e.coordToPoint([t[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function iw(e){var t=e.getRadiusAxis();return t.inverse?0:1}function rw(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var ow=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return(0,Oe.C6)(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=f.map(n.getViewLabels(),(function(e){e=f.clone(e);var t=n.scale,i="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(i),e}));rw(s),rw(o),f.each(tw,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||aw[t](this.group,e,i,o,a,r,s)}),this)}},t.type="angleAxis",t}(Ks),aw={axisLine:function(e,t,n,i,r,o){var a,s=t.getModel(["axisLine","lineStyle"]),l=n.getAngleAxis(),u=Math.PI/180,c=l.getExtent(),h=iw(n),d=h?0:1,p=360===Math.abs(c[1]-c[0])?"Circle":"Arc";a=0===o[d]?new En[p]({shape:{cx:n.cx,cy:n.cy,r:o[h],startAngle:-c[0]*u,endAngle:-c[1]*u,clockwise:l.inverse},style:s.getLineStyle(),z2:1,silent:!0}):new Un.A({shape:{cx:n.cx,cy:n.cy,r:o[h],r0:o[d]},style:s.getLineStyle(),z2:1,silent:!0}),a.style.fill=null,e.add(a)},axisTick:function(e,t,n,i,r,o){var a=t.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[iw(n)],u=f.map(i,(function(e){return new jn.A({shape:nw(n,[l,l+s],e.coord)})}));e.add(En.mergePath(u,{style:f.defaults(a.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,i,r,o){if(r.length){for(var a=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[iw(n)],c=[],h=0;h<r.length;h++)for(var d=0;d<r[h].length;d++)c.push(new jn.A({shape:nw(n,[u,u+l],r[h][d].coord)}));e.add(En.mergePath(c,{style:f.defaults(s.getModel("lineStyle").getLineStyle(),f.defaults(a.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,i,r,o,a){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");f.each(a,(function(i,r){var a=l,h=i.tickValue,d=o[iw(n)],p=n.coordToPoint([d+u,i.coord]),g=n.cx,y=n.cy,m=Math.abs(p[0]-g)/d<.3?"center":p[0]>g?"left":"right",v=Math.abs(p[1]-y)/d<.3?"middle":p[1]>y?"top":"bottom";if(s&&s[h]){var x=s[h];f.isObject(x)&&x.textStyle&&(a=new _.A(x.textStyle,l,l.ecModel))}var b=new Gn.Ay({silent:Vs.isLabelSilent(t),style:(0,pn.VB)(a,{x:p[0],y:p[1],fill:a.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:m,verticalAlign:v})});if(e.add(b),c){var S=Vs.makeAxisEventDataBase(t);S.targetType="axisLabel",S.value=i.rawLabel,(0,R.z)(b).eventData=S}}),this)},splitLine:function(e,t,n,i,r,o){var a=t.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=0;h<i.length;h++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new jn.A({shape:nw(n,o,i[h].coord)}))}for(h=0;h<c.length;h++)e.add(En.mergePath(c[h],{style:f.defaults({stroke:l[h%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,i,r,o){if(r.length){for(var a=t.getModel("minorSplitLine"),s=a.getModel("lineStyle"),l=[],u=0;u<r.length;u++)for(var c=0;c<r[u].length;c++)l.push(new jn.A({shape:nw(n,o,r[u][c].coord)}));e.add(En.mergePath(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,i,r,o){if(i.length){var a=t.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=Math.PI/180,d=-i[0].coord*h,p=Math.min(o[0],o[1]),g=Math.max(o[0],o[1]),y=t.get("clockwise"),m=1,v=i.length;m<=v;m++){var x=m===v?i[0].coord:i[m].coord,_=u++%l.length;c[_]=c[_]||[],c[_].push(new Wn.A({shape:{cx:n.cx,cy:n.cy,r0:p,r:g,startAngle:d,endAngle:-x*h,clockwise:y},silent:!0})),d=-x*h}for(m=0;m<c.length;m++)e.add(En.mergePath(c[m],{style:f.defaults({fill:l[m%l.length]},s.getAreaStyle()),silent:!0}))}}};const sw=ow;var lw=["axisLine","axisTickLabel","axisName"],uw=["splitLine","splitArea","minorSplitLine"],cw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return(0,Oe.C6)(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=this._axisGroup,i=this._axisGroup=new zn.A;this.group.add(i);var r=e.axis,o=r.polar,a=o.getAngleAxis(),s=r.getTicksCoords(),l=r.getMinorTicksCoords(),u=a.getExtent()[0],c=r.getExtent(),h=dw(o,e,u),d=new Vs(e,h);f.each(lw,d.add,d),i.add(d.getGroup()),En.groupTransition(n,i,e),f.each(uw,(function(t){e.get([t,"show"])&&!r.scale.isBlank()&&hw[t](this.group,e,o,u,c,s,l)}),this)}},t.type="radiusAxis",t}(Ks),hw={splitLine:function(e,t,n,i,r,o){var a=t.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0,c=n.getAngleAxis(),h=Math.PI/180,d=c.getExtent(),p=360===Math.abs(d[1]-d[0])?"Circle":"Arc";l=l instanceof Array?l:[l];for(var g=[],y=0;y<o.length;y++){var m=u++%l.length;g[m]=g[m]||[],g[m].push(new En[p]({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[y].coord,0),startAngle:-d[0]*h,endAngle:-d[1]*h,clockwise:c.inverse}}))}for(y=0;y<g.length;y++)e.add(En.mergePath(g[y],{style:f.defaults({stroke:l[y%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,i,r,o,a){if(a.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<a.length;c++)for(var h=0;h<a[c].length;h++)u.push(new Fn.A({shape:{cx:n.cx,cy:n.cy,r:a[c][h].coord}}));e.add(En.mergePath(u,{style:f.defaults({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,i,r,o){if(o.length){var a=t.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=o[0].coord,d=1;d<o.length;d++){var p=u++%l.length;c[p]=c[p]||[],c[p].push(new Wn.A({shape:{cx:n.cx,cy:n.cy,r0:h,r:o[d].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),h=o[d].coord}for(d=0;d<c.length;d++)e.add(En.mergePath(c[d],{style:f.defaults({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function dw(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}const pw=cw;function fw(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function gw(e,t){return t.dim+e.model.componentIndex}function yw(e,t,n){var i={},r=mw(f.filter(t.getSeriesByType(e),(function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type})));t.eachSeriesByType(e,(function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),n=e.coordinateSystem,o=n.getBaseAxis(),a=gw(n,o),s=fw(e),l=r[a][s],u=l.offset,c=l.width,h=n.getOtherAxis(o),d=e.coordinateSystem.cx,p=e.coordinateSystem.cy,f=e.get("barMinHeight")||0,g=e.get("barMinAngle")||0;i[s]=i[s]||[];for(var y=t.mapDimension(h.dim),m=t.mapDimension(o.dim),v=Me(t,y),x="radius"!==o.dim||!e.get("roundCap",!0),_=h.model,b=_.get("startValue"),S=h.dataToCoord(b||0),w=0,M=t.count();w<M;w++){var A=t.get(y,w),I=t.get(m,w),C=A>=0?"p":"n",T=S;v&&(i[s][I]||(i[s][I]={p:S,n:S}),T=i[s][I][C]);var D=void 0,L=void 0,k=void 0,O=void 0;if("radius"===h.dim){var P=h.dataToCoord(A)-S,N=o.dataToCoord(I);Math.abs(P)<f&&(P=(P<0?-1:1)*f),D=T,L=T+P,k=N-u,O=k-c,v&&(i[s][I][C]=L)}else{var R=h.dataToCoord(A,x)-S,E=o.dataToCoord(I);Math.abs(R)<g&&(R=(R<0?-1:1)*g),D=E+u,L=D+c,k=T,O=T+R,v&&(i[s][I][C]=O)}t.setItemLayout(w,{cx:d,cy:p,r0:D,r:L,startAngle:-k*Math.PI/180,endAngle:-O*Math.PI/180,clockwise:k>=O})}}}))}function mw(e){var t={};f.each(e,(function(e,n){var i=e.getData(),r=e.coordinateSystem,o=r.getBaseAxis(),a=gw(r,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/i.count(),u=t[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;t[a]=u;var h=fw(e);c[h]||u.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var d=(0,Ge.lo)(e.get("barWidth"),l),p=(0,Ge.lo)(e.get("barMaxWidth"),l),f=e.get("barGap"),g=e.get("barCategoryGap");d&&!c[h].width&&(d=Math.min(u.remainedWidth,d),c[h].width=d,u.remainedWidth-=d),p&&(c[h].maxWidth=p),null!=f&&(u.gap=f),null!=g&&(u.categoryGap=g)}));var n={};return f.each(t,(function(e,t){n[t]={};var i=e.stacks,r=e.bandWidth,o=(0,Ge.lo)(e.categoryGap,r),a=(0,Ge.lo)(e.gap,1),s=e.remainedWidth,l=e.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),f.each(i,(function(e,t){var n=e.maxWidth;n&&n<u&&(n=Math.min(n,s),e.width&&(n=Math.min(n,e.width)),s-=n,e.width=n,l--)})),u=(s-o)/(l+(l-1)*a),u=Math.max(u,0);var c,h=0;f.each(i,(function(e,t){e.width||(e.width=u),c=e,h+=e.width*(1+a)})),c&&(h-=c.width*a);var d=-h/2;f.each(i,(function(e,i){n[t][i]=n[t][i]||{offset:d,width:e.width},d+=e.width*(1+a)}))})),n}const vw=yw;var xw={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},_w={splitNumber:5},bw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.type="polar",t}(c.A);function Sw(e){x(DS),Ks.registerAxisPointerClass("PolarAxisPointer",NS),e.registerCoordinateSystem("polar",ew),e.registerComponentModel(ES),e.registerComponentView(bw),rs(e,"angle",zS,xw),rs(e,"radius",BS,_w),e.registerComponentView(sw),e.registerComponentView(pw),e.registerLayout((0,f.curry)(vw,"bar"))}function ww(e,t){t=t||{};var n=e.coordinateSystem,i=e.axis,r={},o=i.position,a=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]];var c={horizontal:0,vertical:1};r.rotation=Math.PI/2*c[a];var h={top:-1,bottom:1,right:1,left:-1};r.labelDirection=r.tickDirection=r.nameDirection=h[o],e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),f.retrieve(t.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var d=t.rotate;return null==d&&(d=e.get(["axisLabel","rotate"])),r.labelRotation="top"===o?-d:d,r.z2=1,r}var Mw=["axisLine","axisTickLabel","axisName"],Aw=["splitArea","splitLine"],Iw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return(0,Oe.C6)(t,e),t.prototype.render=function(t,n,i,r){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new zn.A;var s=ww(t),l=new Vs(t,s);f.each(Mw,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),f.each(Aw,(function(e){t.get([e,"show"])&&Cw[e](this,this.group,this._axisGroup,t)}),this),En.groupTransition(a,this._axisGroup,t),e.prototype.render.call(this,t,n,i,r)},t.prototype.remove=function(){el(this)},t.type="singleAxis",t}(Ks),Cw={splitLine:function(e,t,n,i){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=a.get("width"),u=i.coordinateSystem.getRect(),c=r.isHorizontal(),h=[],d=0,p=r.getTicksCoords({tickModel:o}),g=[],y=[],m=0;m<p.length;++m){var v=r.toGlobalCoord(p[m].coord);c?(g[0]=v,g[1]=u.y,y[0]=v,y[1]=u.y+u.height):(g[0]=u.x,g[1]=v,y[0]=u.x+u.width,y[1]=v);var x=new jn.A({shape:{x1:g[0],y1:g[1],x2:y[0],y2:y[1]},silent:!0});En.subPixelOptimizeLine(x.shape,l);var _=d++%s.length;h[_]=h[_]||[],h[_].push(x)}var b=a.getLineStyle(["color"]);for(m=0;m<h.length;++m)t.add(En.mergePath(h[m],{style:f.defaults({stroke:s[m%s.length]},b),silent:!0}))}},splitArea:function(e,t,n,i){Qs(e,n,i,i)}};const Tw=Iw;var Dw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(d.A);(0,f.mixin)(Dw,hn.prototype);const Lw=Dw;var kw=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.type=r||"value",a.position=o||"bottom",a}return(0,Oe.C6)(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.pointToData=function(e,t){return this.coordinateSystem.pointToData(e)[0]},t}(Ai);const Ow=kw;var Pw=["single"],Nw=function(){function e(e,t,n){this.type="single",this.dimension="single",this.dimensions=Pw,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=this.dimension,r=new Ow(i,en(e),[0,0],e.get("type"),e.get("position")),o="category"===r.type;r.onBand=o&&e.get("boundaryGap"),r.inverse=e.get("inverse"),r.orient=e.get("orient"),e.axis=r,r.model=e,r.coordinateSystem=this,this._axis=r},e.prototype.update=function(e,t){e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();(0,f.each)(t.mapDimensionsAll(this.dimension),(function(e){this._axis.scale.unionExtentFromData(t,e)}),this),Qt(this._axis.scale,this._axis.model)}}),this)},e.prototype.resize=function(e,t){this._rect=(0,dn.dV)({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),i=n?[0,e.width]:[0,e.height],r=t.inverse?1:0;t.setExtent(i[r],i[1-r]),this._updateAxisTransform(t,n?e.x:e.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),i=n[0]+n[1],r=e.isHorizontal();e.toGlobalCoord=r?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord=r?function(e){return e-t}:function(e){return i-e+t}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis(),i=n.orient;return"horizontal"===i?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),i[r]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(e,t,n){var i=Rw(t);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=Rw(t);return i===this?this.pointToData(n):null},e}();function Rw(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}const Ew=Nw;function Vw(e,t){var n=[];return e.eachComponent("singleAxis",(function(i,r){var o=new Ew(i,e,t);o.name="single_"+r,o.resize(i,t),i.coordinateSystem=o,n.push(o)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",N.US).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n}var zw={create:Vw,dimensions:Pw};const Bw=zw;var Gw=["x","y"],Fw=["width","height"],Hw=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Oe.C6)(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis,a=o.coordinateSystem,s=Yw(a,1-Uw(o)),l=a.dataToPoint(t)[0],u=i.get("type");if(u&&"none"!==u){var c=Wb(i),h=Ww[u](o,l,s);h.style=c,e.graphicKey=h.type,e.pointer=h}var d=ww(n);jb(t,e,d,n,i,r)},t.prototype.getHandleTransform=function(e,t,n){var i=ww(t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=Zb(t.axis,e,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var r=n.axis,o=r.coordinateSystem,a=Uw(r),s=Yw(o,a),l=[e.x,e.y];l[a]+=t[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=Yw(o,1-a),c=(u[1]+u[0])/2,h=[c,c];return h[a]=l[a],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(Hb),Ww={line:function(e,t,n){var i=qb([t,n[0]],[t,n[1]],Uw(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,n){var i=e.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:$b([t-i/2,n[0]],[i,r],Uw(e))}}};function Uw(e){return e.isHorizontal()?0:1}function Yw(e,t){var n=e.getRect();return[n[Gw[t]],n[Gw[t]]+n[Fw[t]]]}const Xw=Hw;var Zw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.type="single",t}(c.A);function jw(e){x(DS),Ks.registerAxisPointerClass("SingleAxisPointer",Xw),e.registerComponentView(Zw),e.registerComponentView(Tw),e.registerComponentModel(Lw),rs(e,"single",Lw,Lw.defaultOption),e.registerCoordinateSystem("single",Bw)}var qw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.init=function(t,n,i){var r=(0,dn.vs)(t);e.prototype.init.apply(this,arguments),$w(t,r)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),$w(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(d.A);function $w(e,t){var n,i=e.cellSize;n=f.isArray(i)?i:e.cellSize=[i,i],1===n.length&&(n[1]=n[0]);var r=f.map([0,1],(function(e){return(0,dn.Qf)(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));(0,dn.YA)(e,t,{type:"box",ignoreSize:r})}const Kw=qw;var Jw=n(8238),Qw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll();var r=e.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,o,i),this._renderLines(e,o,a,i),this._renderYearText(e,o,a,i),this._renderMonthText(e,s,a,i),this._renderWeekText(e,s,o,a,i)},t.prototype._renderDayRect=function(e,t,n){for(var i=e.coordinateSystem,r=e.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=t.start.time;s<=t.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new Zn.A({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(u)}},t.prototype._renderLines=function(e,t,n,i){var r=this,o=e.coordinateSystem,a=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=t.start,c=0;u.time<=t.end.time;c++){d(u.formatedDate),0===c&&(u=o.getDateInfo(t.start.y+"-"+t.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=o.getDateInfo(h)}function d(t){r._firstDayOfMonth.push(o.getDateInfo(t)),r._firstDayPoints.push(o.dataToRect([t],!1).tl);var l=r._getLinePointsOfOneWeek(e,t,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}d(o.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},t.prototype._getEdgesPoints=function(e,t,n){var i=[e[0].slice(),e[e.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-t/2,i[1][r]=i[1][r]+t/2,i},t.prototype._drawSplitline=function(e,t,n){var i=new Xn.A({z2:20,shape:{points:e},style:t});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var i=e.coordinateSystem,r=i.getDateInfo(t),o=[],a=0;a<7;a++){var s=i.getNextNDay(r.time,a),l=i.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},t.prototype._formatterLabel=function(e,t){return(0,f.isString)(e)&&e?(0,Je.io)(e,t):(0,f.isFunction)(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,i,r){var o=t[0],a=t[1],s=["center","bottom"];"bottom"===i?(a+=r,s=["center","top"]):"left"===i?o-=r:"right"===i?(o+=r,s=["center","top"]):a-=r;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,i){var r=e.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,h={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},d=t.start.y;+t.end.y>+t.start.y&&(d=d+"-"+t.end.y);var p=r.get("formatter"),f={start:t.start.y,end:t.end.y,nameMap:d},g=this._formatterLabel(p,f),y=new Gn.Ay({z2:30,style:(0,pn.VB)(r,{text:g}),silent:r.get("silent")});y.attr(this._yearTextPositionControl(y,h[a],n,a,o)),i.add(y)}},t.prototype._monthTextPositionControl=function(e,t,n,i,r){var o="left",a="top",s=e[0],l=e[1];return"horizontal"===n?(l+=r,t&&(o="center"),"start"===i&&(a="bottom")):(s+=r,t&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},t.prototype._renderMonthText=function(e,t,n,i){var r=e.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),a=r.get("margin"),s=r.get("position"),l=r.get("align"),u=[this._tlpoints,this._blpoints];o&&!(0,f.isString)(o)||(o&&(t=(0,Jw.A4)(o)||t),o=t.get(["time","monthAbbr"])||[]);var c="start"===s?0:1,h="horizontal"===n?0:1;a="start"===s?-a:a;for(var d="center"===l,p=r.get("silent"),g=0;g<u[c].length-1;g++){var y=u[c][g].slice(),m=this._firstDayOfMonth[g];if(d){var v=this._firstDayPoints[g];y[h]=(v[h]+u[0][g+1][h])/2}var x=r.get("formatter"),_=o[+m.m-1],b={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:_},S=this._formatterLabel(x,b),w=new Gn.Ay({z2:30,style:(0,f.extend)((0,pn.VB)(r,{text:S}),this._monthTextPositionControl(y,d,n,s,a)),silent:p});i.add(w)}}},t.prototype._weekTextPositionControl=function(e,t,n,i,r){var o="center",a="middle",s=e[0],l=e[1],u="start"===n;return"horizontal"===t?(s=s+i+(u?1:-1)*r[0]/2,o=u?"right":"left"):(l=l+i+(u?1:-1)*r[1]/2,a=u?"bottom":"top"),{x:s,y:l,align:o,verticalAlign:a}},t.prototype._renderWeekText=function(e,t,n,i,r){var o=e.getModel("dayLabel");if(o.get("show")){var a=e.coordinateSystem,s=o.get("position"),l=o.get("nameMap"),u=o.get("margin"),c=a.getFirstDayOfWeek();if(!l||(0,f.isString)(l)){l&&(t=(0,Jw.A4)(l)||t);var h=t.get(["time","dayOfWeekShort"]);l=h||(0,f.map)(t.get(["time","dayOfWeekAbbr"]),(function(e){return e[0]}))}var d=a.getNextNDay(n.end.time,7-n.lweek).time,p=[a.getCellWidth(),a.getCellHeight()];u=(0,Ge.lo)(u,Math.min(p[1],p[0])),"start"===s&&(d=a.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var g=o.get("silent"),y=0;y<7;y++){var m=a.getNextNDay(d,y),v=a.dataToRect([m.time],!1).center,x=y;x=Math.abs((y+c)%7);var _=new Gn.Ay({z2:30,style:(0,f.extend)((0,pn.VB)(o,{text:l[x]}),this._weekTextPositionControl(v,i,s,u,p)),silent:g});r.add(_)}}},t.type="calendar",t}(c.A);const eM=Qw;var tM=864e5,nM=function(){function e(t,n,i){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(e){e=Ge._U(e);var t=e.getFullYear(),n=e.getMonth()+1,i=n<10?"0"+n:""+n,r=e.getDate(),o=r<10?"0"+r:""+r,a=e.getDay();return a=Math.abs((a+7-this.getFirstDayOfWeek())%7),{y:t+"",m:i,d:o,day:a,time:e.getTime(),formatedDate:t+"-"+i+"-"+o,date:e}},e.prototype.getNextNDay=function(e,t){return t=t||0,0===t||(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t)),this.getDateInfo(e)},e.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],r=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];f.each([0,1],(function(e){u(r,e)&&(o[i[e]]=r[e]*a[e])}));var s={width:t.getWidth(),height:t.getHeight()},l=this._rect=dn.dV(o,s);function u(e,t){return null!=e[t]&&"auto"!==e[t]}f.each([0,1],(function(e){u(r,e)||(r[e]=l[i[e]]/a[e])})),this._sw=r[0],this._sh=r[1]},e.prototype.dataToPoint=function(e,t){f.isArray(e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),i=this._rangeInfo,r=n.formatedDate;if(t&&!(n.time>=i.start.time&&n.time<i.end.time+tM))return[NaN,NaN];var o=n.day,a=this._getRangeInfo([i.start.time,r]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]:[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},e.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},e.prototype.dataToRect=function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,i):this._getDateByWeeksAndDay(t,n-1,i)},e.prototype.convertToPixel=function(e,t,n){var i=iM(t);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=iM(t);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var e,t=this._model.get("range");if(f.isArray(t)&&1===t.length&&(t=t[0]),f.isArray(t))e=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),r=i.date;r.setMonth(r.getMonth()+1);var o=this.getNextNDay(r,-1);e=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return t;var a=this._getRangeInfo(e);return a.start.time>a.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var i=Math.floor(n[1].time/tM)-Math.floor(n[0].time/tM)+1,r=new Date(n[0].time),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a){var l=r.getTime()-n[1].time>0?1:-1;while((s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0)i-=l,r.setDate(s-l)}var u=Math.floor((i+n[0].day+6)/7),c=t?1-u:u-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var i=this._getRangeInfo(n);if(e>i.weeks||0===e&&t<i.fweek||e===i.weeks&&t>i.lweek)return null;var r=7*(e-1)-i.fweek+t,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},e.create=function(t,n){var i=[];return t.eachComponent("calendar",(function(r){var o=new e(r,t,n);i.push(o),r.coordinateSystem=o})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("calendarIndex")||0])})),i},e.dimensions=["time","value"],e}();function iM(e){var t=e.calendarModel,n=e.seriesModel,i=t?t.coordinateSystem:n?n.coordinateSystem:null;return i}const rM=nM;function oM(e){e.registerComponentModel(Kw),e.registerComponentView(eM),e.registerCoordinateSystem("calendar",rM)}function aM(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var i=t.parentOption;i?t.parentId=i.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function sM(e,t){var n;return f.each(t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}function lM(e,t,n){var i=f.extend({},n),r=e[t],o=n.$action||"merge";"merge"===o?r?(f.merge(r,i,!0),(0,dn.YA)(r,i,{ignoreSize:!0}),(0,dn.Ir)(n,r),hM(n,r),hM(n,r,"shape"),hM(n,r,"style"),hM(n,r,"extra"),n.clipPath=r.clipPath):e[t]=i:"replace"===o?e[t]=i:"remove"===o&&r&&(e[t]=null)}var uM=["transition","enterFrom","leaveTo"],cM=uM.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function hM(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var i=n?uM:cM,r=0;r<i.length;r++){var o=i[r];null==e[o]&&null!=t[o]&&(e[o]=t[o])}}function dM(e,t){if(e&&(e.hv=t.hv=[sM(t,["left","right"]),sM(t,["top","bottom"])],"group"===e.type)){var n=e,i=t;null==n.width&&(n.width=i.width=0),null==n.height&&(n.height=i.height=0)}}var pM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return(0,Oe.C6)(t,e),t.prototype.mergeOption=function(t,n){var i=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=i},t.prototype.optionUpdated=function(e,t){var n=this.option,i=(t?n:e).elements,r=n.elements=t?[]:n.elements,o=[];this._flatten(i,o,null);var a=N.O2(r,o,"normalMerge"),s=this._elOptionsToUpdate=[];f.each(a,(function(e,t){var n=e.newOption;n&&(s.push(n),aM(e,n),lM(r,t,n),dM(r[t],n))}),this),n.elements=f.filter(r,(function(e){return e&&delete e.$action,null!=e}))},t.prototype._flatten=function(e,t,n){f.each(e,(function(e){if(e){n&&(e.parentOption=n),t.push(e);var i=e.children;i&&i.length&&this._flatten(i,t,e),delete e.children}}),this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(d.A),fM={path:null,compoundPath:null,group:zn.A,image:Bn.Ay,text:Gn.Ay},gM=N.$r(),yM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.init=function(){this._elMap=f.createHashMap()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,i=this.group,r=e.get("z"),o=e.get("zlevel");f.each(t,(function(t){var a=N.vS(t.id,null),s=null!=a?n.get(a):null,l=N.vS(t.parentId,null),u=null!=l?n.get(l):i,c=t.type,h=t.style;"text"===c&&h&&t.hv&&t.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);var d=t.textContent,p=t.textConfig;if(h&&y_(h,c,!!p,!!d)){var f=m_(h,c,!0);!p&&f.textConfig&&(p=t.textConfig=f.textConfig),!d&&f.textContent&&(d=f.textContent)}var g=bM(t);var y=t.$action||"merge",m="merge"===y,v="replace"===y;if(m){var x=!s,_=s;x?_=vM(a,u,t.type,n):(_&&(gM(_).isNew=!1),Y_(_)),_&&(C_(_,g,e,{isInit:x}),_M(_,t,r,o))}else if(v){xM(s,t,n,e);var b=vM(a,u,t.type,n);b&&(C_(b,g,e,{isInit:!0}),_M(b,t,r,o))}else"remove"===y&&(T_(s,t),xM(s,t,n,e));var S=n.get(a);if(S&&d)if(m){var w=S.getTextContent();w?w.attr(d):S.setTextContent(new Gn.Ay(d))}else v&&S.setTextContent(new Gn.Ay(d));if(S){var M=t.clipPath;if(M){var A=M.type,I=void 0;x=!1;if(m){var C=S.getClipPath();x=!C||gM(C).type!==A,I=x?mM(A):C}else v&&(x=!0,I=mM(A));S.setClipPath(I),C_(I,M,e,{isInit:x}),X_(I,M.keyframeAnimation,e)}var T=gM(S);S.setTextConfig(p),T.option=t,SM(S,e,t),En.setTooltipConfig({el:S,componentModel:e,itemName:S.name,itemTooltipOption:t.tooltip}),X_(S,t.keyframeAnimation,e)}}))}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,i=this.group,r=this._elMap,o=t.getWidth(),a=t.getHeight(),s=["x","y"],l=0;l<n.length;l++){var u=n[l],c=N.vS(u.id,null),h=null!=c?r.get(c):null;if(h&&h.isGroup){var d=h.parent,p=d===i,g=gM(h),y=gM(d);g.width=(0,Ge.lo)(g.option.width,p?o:y.width)||0,g.height=(0,Ge.lo)(g.option.height,p?a:y.height)||0}}for(l=n.length-1;l>=0;l--){u=n[l],c=N.vS(u.id,null),h=null!=c?r.get(c):null;if(h){d=h.parent,y=gM(d);var m=d===i?{width:o,height:a}:{width:y.width,height:y.height},v={},x=dn.m$(h,u,m,null,{hv:u.hv,boundingMode:u.bounding},v);if(!gM(h).isNew&&x){for(var _=u.transition,b={},S=0;S<s.length;S++){var w=s[S],M=v[w];_&&(L_(_)||f.indexOf(_,w)>=0)?b[w]=M:h[w]=M}(0,Vn.oi)(h,b,e,0)}else h.attr(v)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(n){xM(n,gM(n).option,t,e._lastGraphicModel)})),this._elMap=f.createHashMap()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(c.A);function mM(e){var t=f.hasOwn(fM,e)?fM[e]:En.getShapeClass(e);var n=new t({});return gM(n).type=e,n}function vM(e,t,n,i){var r=mM(n);return t.add(r),i.set(e,r),gM(r).id=e,gM(r).isNew=!0,r}function xM(e,t,n,i){var r=e&&e.parent;r&&("group"===e.type&&e.traverse((function(e){xM(e,t,n,i)})),D_(e,t,i),n.removeKey(gM(e).id))}function _M(e,t,n,i){e.isGroup||f.each([["cursor",vu.Ay.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];f.hasOwn(t,i)?e[i]=f.retrieve2(t[i],n[1]):null==e[i]&&(e[i]=n[1])})),f.each(f.keys(t),(function(n){if(0===n.indexOf("on")){var i=t[n];e[n]=f.isFunction(i)?i:null}})),f.hasOwn(t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}function bM(e){return e=f.extend({},e),f.each(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(dn.Tj),(function(t){delete e[t]})),e}function SM(e,t,n){var i=(0,R.z)(e).eventData;e.silent||e.ignore||i||(i=(0,R.z)(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),i&&(i.info=n.info)}function wM(e){e.registerComponentModel(pM),e.registerComponentView(yM),e.registerPreprocessor((function(e){var t=e.graphic;(0,f.isArray)(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}))}var MM=["x","y","radius","angle","single"],AM=["cartesian2d","polar","singleAxis"];function IM(e){var t=e.get("coordinateSystem");return(0,f.indexOf)(AM,t)>=0}function CM(e){return e+"Axis"}function TM(e,t){var n,i=(0,f.createHashMap)(),r=[],o=(0,f.createHashMap)();e.eachComponent({mainType:"dataZoom",query:t},(function(e){o.get(e.uid)||s(e)}));do{n=!1,e.eachComponent("dataZoom",a)}while(n);function a(e){!o.get(e.uid)&&l(e)&&(s(e),n=!0)}function s(e){o.set(e.uid,!0),r.push(e),u(e)}function l(e){var t=!1;return e.eachTargetAxis((function(e,n){var r=i.get(e);r&&r[n]&&(t=!0)})),t}function u(e){e.eachTargetAxis((function(e,t){(i.get(e)||i.set(e,[]))[t]=!0}))}return r}function DM(e){var t=e.ecModel,n={infoList:[],infoMap:(0,f.createHashMap)()};return e.eachTargetAxis((function(e,i){var r=t.getComponent(CM(e),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(r)}}})),n}var LM=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}(),kM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return(0,Oe.C6)(t,e),t.prototype.init=function(e,t,n){var i=OM(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var t=OM(e);(0,f.merge)(this.option,e,!0),(0,f.merge)(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;(0,f.each)([["start","startValue"],["end","endValue"]],(function(e,i){"value"===this._rangePropMode[i]&&(t[e[0]]=n[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=(0,f.createHashMap)(),n=this._fillSpecifiedTargetAxis(t);n?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,f.each)(MM,(function(n){var i=this.getReferringComponents(CM(n),N.UW);if(i.specified){t=!0;var r=new LM;(0,f.each)(i.models,(function(e){r.add(e.componentIndex)})),e.set(n,r)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,i=!0;if(i){var r="vertical"===t?"y":"x",o=n.findComponents({mainType:r+"Axis"});a(o,r)}if(i){o=n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}});a(o,"single")}function a(t,n){var r=t[0];if(r){var o=new LM;if(o.add(r.componentIndex),e.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",N.US).models[0];a&&(0,f.each)(t,(function(e){r.componentIndex!==e.componentIndex&&a===e.getReferringComponents("grid",N.US).models[0]&&o.add(e.componentIndex)}))}}}i&&(0,f.each)(MM,(function(t){if(i){var r=n.findComponents({mainType:CM(t),filter:function(e){return"category"===e.get("type",!0)}});if(r[0]){var o=new LM;o.add(r[0].componentIndex),e.set(t,o),i=!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,n=this.get("rangeMode");(0,f.each)([["start","startValue"],["end","endValue"]],(function(i,r){var o=null!=e[i[0]],a=null!=e[i[1]];o&&!a?t[r]="percent":!o&&a?t[r]="value":n?t[r]=n[r]:o&&(t[r]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,n){null==e&&(e=this.ecModel.getComponent(CM(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,i){(0,f.each)(n.indexList,(function(n){e.call(t,i,n)}))}))},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(CM(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;(0,f.each)([["start","startValue"],["end","endValue"]],(function(i){null==e[i[0]]&&null==e[i[1]]||(t[i[0]]=n[i[0]]=e[i[0]],t[i[1]]=n[i[1]]=e[i[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;(0,f.each)(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},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 n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var r=n[i],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}(d.A);function OM(e){var t={};return(0,f.each)(["start","end","startValue","endValue","throttle"],(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}const PM=kM;var NM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.type="dataZoom.select",t}(PM);const RM=NM;var EM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.render=function(e,t,n,i){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type="dataZoom",t}(c.A);const VM=EM;var zM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.type="dataZoom.select",t}(VM);const BM=zM;var GM=f.each,FM=Ge.Y6,HM=function(){function e(e,t,n,i){this._dimName=e,this._axisIndex=t,this.ecModel=i,this._dataZoomModel=n}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(IM(t)){var n=CM(this._dimName),i=t.getReferringComponents(n,N.US).models[0];i&&this._axisIndex===i.componentIndex&&e.push(t)}}),this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return f.clone(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,n=this._dataExtent,i=this.getAxisModel(),r=i.axis.scale,o=this._dataZoomModel.getRangePropMode(),a=[0,100],s=[],l=[];GM(["start","end"],(function(i,u){var c=e[i],h=e[i+"Value"];"percent"===o[u]?(null==c&&(c=a[u]),h=r.parse(Ge.Cb(c,a,n))):(t=!0,h=null==h?n[u]:r.parse(h),c=Ge.Cb(h,n,a)),l[u]=null==h||isNaN(h)?n[u]:h,s[u]=null==c||isNaN(c)?a[u]:c})),FM(l),FM(s);var u=this._minMaxSpan;function c(e,t,n,i,o){var a=o?"Span":"ValueSpan";ng(0,e,n,"all",u["min"+a],u["max"+a]);for(var s=0;s<2;s++)t[s]=Ge.Cb(e[s],n,i,!0),o&&(t[s]=r.parse(t[s]))}return t?c(l,s,n,a,!1):c(s,l,a,n,!0),{valueWindow:l,percentWindow:s}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=WM(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=e.get("filterMode"),o=this._valueWindow;"none"!==r&&GM(i,(function(e){var t=e.getData(),i=t.mapDimensionsAll(n);if(i.length){if("weakFilter"===r){var s=t.getStore(),l=f.map(i,(function(e){return t.getDimensionIndex(e)}),t);t.filterSelf((function(e){for(var t,n,r,a=0;a<i.length;a++){var u=s.get(l[a],e),c=!isNaN(u),h=u<o[0],d=u>o[1];if(c&&!h&&!d)return!0;c&&(r=!0),h&&(t=!0),d&&(n=!0)}return r&&t&&n}))}else GM(i,(function(n){if("empty"===r)e.setData(t=t.map(n,(function(e){return a(e)?e:NaN})));else{var i={};i[n]=o,t.selectRange(i)}}));GM(i,(function(e){t.setApproximateExtent(o,e)}))}}))}function a(e){return e>=o[0]&&e<=o[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;GM(["min","max"],(function(i){var r=t.get(i+"Span"),o=t.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=Ge.Cb(n[0]+o,n,[0,100],!0):null!=r&&(o=Ge.Cb(r,[0,100],n,!0)-n[0]),e[i+"Span"]=r,e[i+"ValueSpan"]=o}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var i=Ge.hb(n,[0,500]);i=Math.min(i,20);var r=e.axis.scale.rawExtentInfo;0!==t[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==t[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},e}();function WM(e,t,n){var i=[1/0,-1/0];GM(n,(function(e){cn(i,e.getData(),t)}));var r=e.getAxisModel(),o=qt(r.axis.scale,r,i).calculate();return[o.min,o.max]}const UM=HM;var YM={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,r){var o=e.getComponent(CM(i),r);t(i,r,o,n)}))}))}t((function(e,t,n,i){n.__dzAxisProxy=null}));var n=[];t((function(t,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new UM(t,i,o,e),n.push(r.__dzAxisProxy))}));var i=(0,f.createHashMap)();return(0,f.each)(n,(function(e){(0,f.each)(e.getTargetSeriesModels(),(function(e){i.set(e.uid,e)}))})),i},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,n){e.getAxisProxy(t,n).reset(e)})),e.eachTargetAxis((function(n,i){e.getAxisProxy(n,i).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),i=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}};const XM=YM;function ZM(e){e.registerAction("dataZoom",(function(e,t){var n=TM(t,e);(0,f.each)(n,(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}var jM=!1;function qM(e){jM||(jM=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,XM),ZM(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function $M(e){e.registerComponentModel(RM),e.registerComponentView(BM),qM(e)}var KM=function(){function e(){}return e}(),JM={};function QM(e,t){JM[e]=t}function eA(e){return JM[e]}var tA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;f.each(this.option.feature,(function(e,n){var i=eA(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),f.merge(e,i.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}(d.A);const nA=tA;function iA(e,t,n){var i=t.getBoxLayoutParams(),r=t.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=(0,dn.dV)(i,o,r);(0,dn.aP)(t.get("orient"),e,t.get("itemGap"),a.width,a.height),(0,dn.m$)(e,i,o,r)}function rA(e,t){var n=Je.QX(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),e=new Zn.A({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1}),e}var oA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Oe.C6)(t,e),t.prototype.render=function(e,t,n,i){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={}),u=[];f.each(s,(function(e,t){u.push(t)})),new M(this._featureNames||[],u).add(c).update(c).remove(f.curry(c,null)).execute(),this._featureNames=u,iA(r,e,n),r.add(rA(r.getBoundingRect(),e)),a||r.eachChild((function(e){var t=e.__title,i=e.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=e.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!f.isFunction(l)&&t){var u=l.style||(l.style={}),c=Yt.NO(t,Gn.Ay.makeFont(u)),h=e.x+r.x,d=e.y+r.y+o,p=!1;d+c.height>n.getHeight()&&(a.position="top",p=!0);var g=p?-5-c.height:o+10;h+c.width/2>n.getWidth()?(a.position=["100%",g],u.align="right"):h-c.width/2<0&&(a.position=[0,g],u.align="left")}}))}function c(r,o){var a,c=u[r],d=u[o],p=s[c],f=new _.A(p,e,e.ecModel);if(i&&null!=i.newTitle&&i.featureName===c&&(p.title=i.newTitle),c&&!d){if(aA(c))a={onclick:f.option.onclick,featureName:c};else{var g=eA(c);if(!g)return;a=new g}l[c]=a}else if(a=l[d],!a)return;a.uid=(0,ko.$Q)("toolbox-feature"),a.model=f,a.ecModel=t,a.api=n;var y=a instanceof KM;c||!d?!f.get("show")||y&&a.unusable?y&&a.remove&&a.remove(t,n):(h(f,a,c),f.setIconStatus=function(e,t){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,i[e]&&("emphasis"===t?gn.HY:gn.SD)(i[e])},a instanceof KM&&a.render&&a.render(f,t,n,i)):y&&a.dispose&&a.dispose(t,n)}function h(i,s,l){var u,c,h=i.getModel("iconStyle"),d=i.getModel(["emphasis","iconStyle"]),p=s instanceof KM&&s.getIcons?s.getIcons():i.get("icon"),g=i.get("title")||{};f.isString(p)?(u={},u[l]=p):u=p,f.isString(g)?(c={},c[l]=g):c=g;var y=i.iconPaths={};f.each(u,(function(l,u){var p=En.createIcon(l,{},{x:-o/2,y:-o/2,width:o,height:o});p.setStyle(h.getItemStyle());var g=p.ensureState("emphasis");g.style=d.getItemStyle();var m=new Gn.Ay({style:{text:c[u],align:d.get("textAlign"),borderRadius:d.get("textBorderRadius"),padding:d.get("textPadding"),fill:null,font:(0,pn.c8)({fontStyle:d.get("textFontStyle"),fontFamily:d.get("textFontFamily"),fontSize:d.get("textFontSize"),fontWeight:d.get("textFontWeight")},t)},ignore:!0});p.setTextContent(m),En.setTooltipConfig({el:p,componentModel:e,itemName:u,formatterParamsExtra:{title:c[u]}}),p.__title=c[u],p.on("mouseover",(function(){var t=d.getItemStyle(),i=a?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";m.setStyle({fill:d.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:d.get("textBackgroundColor")}),p.setTextConfig({position:d.get("textPosition")||i}),m.ignore=!e.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",u])&&n.leaveEmphasis(this),m.hide()})),("emphasis"===i.get(["iconStatus",u])?gn.HY:gn.SD)(p),r.add(p),p.on("click",f.bind(s.onclick,s,t,n,u)),y[u]=p}))}},t.prototype.updateView=function(e,t,n,i){f.each(this._features,(function(e){e instanceof KM&&e.updateView&&e.updateView(e.model,t,n,i)}))},t.prototype.remove=function(e,t){f.each(this._features,(function(n){n instanceof KM&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){f.each(this._features,(function(n){n instanceof KM&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(c.A);function aA(e){return 0===e.indexOf("my")}const sA=oA;var lA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Oe.C6)(t,e),t.prototype.onclick=function(e,t){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",r="svg"===t.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",a=t.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=ri.A.browser;if("function"!==typeof MouseEvent||!s.newEdge&&(s.ie||s.edge))if(window.navigator.msSaveOrOpenBlob||r){var l=a.split(","),u=l[0].indexOf("base64")>-1,c=r?decodeURIComponent(l[1]):l[1];u&&(c=window.atob(c));var h=i+"."+o;if(window.navigator.msSaveOrOpenBlob){var d=c.length,p=new Uint8Array(d);while(d--)p[d]=c.charCodeAt(d);var f=new Blob([p]);window.navigator.msSaveOrOpenBlob(f,h)}else{var g=document.createElement("iframe");document.body.appendChild(g);var y=g.contentWindow,m=y.document;m.open("image/svg+xml","replace"),m.write(c),m.close(),y.focus(),m.execCommand("SaveAs",!0,h),document.body.removeChild(g)}}else{var v=n.get("lang"),x='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(v&&v[0]||"")+'" /></body>',_=window.open();_.document.write(x),_.document.title=i}else{var b=document.createElement("a");b.download=i+"."+o,b.target="_blank",b.href=a;var S=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});b.dispatchEvent(S)}},t.getDefaultOption=function(e){var t={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"])};return t},t}(KM);const uA=lA;var cA="__ec_magicType_stack__",hA=[["line","bar"],["stack"]],dA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Oe.C6)(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return f.each(e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n},t.getDefaultOption=function(e){var t={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:{}};return t},t.prototype.onclick=function(e,t,n){var i=this.model,r=i.get(["seriesIndex",n]);if(pA[n]){var o,a={series:[]},s=function(e){var t=e.subType,r=e.id,o=pA[n](t,r,e,i);o&&(f.defaults(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim,c=u+"Axis",h=e.getReferringComponents(c,N.US).models[0],d=h.componentIndex;a[c]=a[c]||[];for(var p=0;p<=d;p++)a[c][d]=a[c][d]||{};a[c][d].boundaryGap="bar"===n}}};f.each(hA,(function(e){f.indexOf(e,n)>=0&&f.each(e,(function(e){i.setIconStatus(e,"normal")}))})),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},s);var l=n;"stack"===n&&(o=f.merge({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(l="tiled")),t.dispatchAction({type:"changeMagicType",currentType:l,newOption:a,newTitle:o,featureName:"magicType"})}},t}(KM),pA={line:function(e,t,n,i){if("bar"===e)return f.merge({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(e,t,n,i){if("line"===e)return f.merge({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(e,t,n,i){var r=n.get("stack")===cA;if("line"===e||"bar"===e)return i.setIconStatus("stack",r?"normal":"emphasis"),f.merge({id:t,stack:r?"":cA},i.get(["option","stack"])||{},!0)}};u.OH({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));const fA=dA;var gA=new Array(60).join("-"),yA="\t";function mA(e){var t={},n=[],i=[];return e.eachRawSeries((function(e){var r=e.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(e);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;t[a]||(t[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),t[a].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:i}}function vA(e){var t=[];return f.each(e,(function(e,n){var i=e.categoryAxis,r=e.valueAxis,o=r.dim,a=[" "].concat(f.map(e.series,(function(e){return e.name}))),s=[i.model.getCategories()];f.each(e.series,(function(e){var t=e.getRawData();s.push(e.getRawData().mapArray(t.mapDimension(o),(function(e){return e})))}));for(var l=[a.join(yA)],u=0;u<s[0].length;u++){for(var c=[],h=0;h<s.length;h++)c.push(s[h][u]);l.push(c.join(yA))}t.push(l.join("\n"))})),t.join("\n\n"+gA+"\n\n")}function xA(e){return f.map(e,(function(e){var t=e.getRawData(),n=[e.name],i=[];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++)i[a]=arguments[a];n.push((o?o+yA:"")+i.join(yA))})),n.join("\n")})).join("\n\n"+gA+"\n\n")}function _A(e){var t=mA(e);return{value:f.filter([vA(t.seriesGroupByCategoryAxis),xA(t.other)],(function(e){return!!e.replace(/[\n\t\s]/g,"")})).join("\n\n"+gA+"\n\n"),meta:t.meta}}function bA(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function SA(e){var t=e.slice(0,e.indexOf("\n"));if(t.indexOf(yA)>=0)return!0}var wA=new RegExp("["+yA+"]+","g");function MA(e){for(var t=e.split(/\n+/g),n=bA(t.shift()).split(wA),i=[],r=f.map(n,(function(e){return{name:e,data:[]}})),o=0;o<t.length;o++){var a=bA(t[o]).split(wA);i.push(a.shift());for(var s=0;s<a.length;s++)r[s]&&(r[s].data[o]=a[s])}return{series:r,categories:i}}function AA(e){for(var t=e.split(/\n+/g),n=bA(t.shift()),i=[],r=0;r<t.length;r++){var o=bA(t[r]);if(o){var a=o.split(wA),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),i[r]={name:s,value:[]},l=i[r].value):l=i[r]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);1===l.length&&(u?i[r].value=l[0]:i[r]=l[0])}}return{name:n,data:i}}function IA(e,t){var n=e.split(new RegExp("\n*"+gA+"\n*","g")),i={series:[]};return f.each(n,(function(e,n){if(SA(e)){var r=MA(e),o=t[n],a=o.axisDim+"Axis";o&&(i[a]=i[a]||[],i[a][o.axisIndex]={data:r.categories},i.series=i.series.concat(r.series))}else{r=AA(e);i.series.push(r)}})),i}var CA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Oe.C6)(t,e),t.prototype.onclick=function(e,t){setTimeout((function(){t.dispatchAction({type:"hideTip"})}));var n=t.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var r=document.createElement("div");r.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",r.style.backgroundColor=i.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=i.get("lang")||[];o.innerHTML=a[0]||i.get("title"),o.style.cssText="margin:10px 20px",o.style.color=i.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var u=i.get("optionToContent"),c=i.get("contentToOption"),h=_A(e);if(f.isFunction(u)){var d=u(t.getOption());f.isString(d)?s.innerHTML=d:f.isDom(d)&&s.appendChild(d)}else{l.readOnly=i.get("readOnly");var p=l.style;p.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",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),l.value=h.value,s.appendChild(l)}var g=h.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",v=document.createElement("div"),x=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var _=this;function b(){n.removeChild(r),_._dom=null}(0,Nl.q2)(v,"click",b),(0,Nl.q2)(x,"click",(function(){if(null==c&&null!=u||null!=c&&null==u)b();else{var e;try{e=f.isFunction(c)?c(s,t.getOption()):IA(l.value,g)}catch(e){throw b(),new Error("Data view format error "+e)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),b()}})),v.innerHTML=a[1],x.innerHTML=a[2],x.style.cssText=v.style.cssText=m,!i.get("readOnly")&&y.appendChild(x),y.appendChild(v),r.appendChild(o),r.appendChild(s),r.appendChild(y),s.style.height=n.clientHeight-80+"px",n.appendChild(r),this._dom=r},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){var t={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"};return t},t}(KM);function TA(e,t){return f.map(e,(function(e,n){var i=t&&t[n];if(f.isObject(i)&&!f.isArray(i)){var r=f.isObject(e)&&!f.isArray(e);r||(e={value:e});var o=null!=i.name&&null==e.name;return e=f.defaults(e,i),o&&delete e.name,e}return e}))}u.OH({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(e,t){var n=[];f.each(e.newOption.series,(function(e){var i=t.getSeriesByName(e.name)[0];if(i){var r=i.get("data");n.push({name:e.name,data:TA(e.data,r)})}else n.push(f.extend({type:"scatter"},e))})),t.mergeOption(f.defaults({series:n},e.newOption))}));const DA=CA;var LA=f.each,kA=(0,N.$r)();function OA(e,t){var n=EA(e);LA(t,(function(t,i){for(var r=n.length-1;r>=0;r--){var o=n[r];if(o[i])break}if(r<0){var a=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(a){var s=a.getPercentRange();n[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}})),n.push(t)}function PA(e){var t=EA(e),n=t[t.length-1];t.length>1&&t.pop();var i={};return LA(n,(function(e,n){for(var r=t.length-1;r>=0;r--)if(e=t[r][n],e){i[n]=e;break}})),i}function NA(e){kA(e).snapshots=null}function RA(e){return EA(e).length}function EA(e){var t=kA(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var VA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Oe.C6)(t,e),t.prototype.onclick=function(e,t){NA(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var t={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"])};return t},t}(KM);u.OH({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));const zA=VA;var BA=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],GA=function(){function e(e,t,n){var i=this;this._targetInfoList=[];var r=HA(t,e);(0,f.each)(WA,(function(e,t){(!n||!n.include||(0,f.indexOf)(n.include,t)>=0)&&e(r,i._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var i=XA[e.brushType](0,n,t);e.__rangeOffset={offset:jA[e.brushType](i.values,e.range,[1,1]),xyMinMax:i.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){(0,f.each)(e,(function(e){var i=this.findTargetInfo(e,t);i&&!0!==i&&(0,f.each)(i.coordSyses,(function(i){var r=XA[e.brushType](1,i,e.range,!0);n(e,r.values,i,t)}))}),this)},e.prototype.setInputRanges=function(e,t){(0,f.each)(e,(function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&!0!==n){e.panelId=n.panelId;var i=XA[e.brushType](0,n.coordSys,e.coordRange),r=e.__rangeOffset;e.range=r?jA[e.brushType](i.values,r.offset,$A(i.xyMinMax,r.xyMinMax)):i.values}}),this)},e.prototype.makePanelOpts=function(e,t){return(0,f.map)(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:vy(i),isTargetByCursor:_y(i,e,n.coordSysModel),getLinearBrushOtherExtent:xy(i)}}))},e.prototype.controlSeries=function(e,t,n){var i=this.findTargetInfo(e,n);return!0===i||i&&(0,f.indexOf)(i.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,i=HA(t,e),r=0;r<n.length;r++){var o=n[r],a=e.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<UA.length;s++)if(UA[s](i,o))return o}return!0},e}();function FA(e){return e[0]>e[1]&&e.reverse(),e}function HA(e,t){return(0,N._e)(e,t,{includeMainTypes:BA})}var WA={grid:function(e,t){var n=e.xAxisModels,i=e.yAxisModels,r=e.gridModels,o=(0,f.createHashMap)(),a={},s={};(n||i||r)&&((0,f.each)(n,(function(e){var t=e.axis.grid.model;o.set(t.id,t),a[t.id]=!0})),(0,f.each)(i,(function(e){var t=e.axis.grid.model;o.set(t.id,t),s[t.id]=!0})),(0,f.each)(r,(function(e){o.set(e.id,e),a[e.id]=!0,s[e.id]=!0})),o.each((function(e){var r=e.coordinateSystem,o=[];(0,f.each)(r.getCartesians(),(function(e,t){((0,f.indexOf)(n,e.getAxis("x").model)>=0||(0,f.indexOf)(i,e.getAxis("y").model)>=0)&&o.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:o[0],coordSyses:o,getPanelRect:YA.grid,xAxisDeclared:a[e.id],yAxisDeclared:s[e.id]})})))},geo:function(e,t){(0,f.each)(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:YA.geo})}))}},UA=[function(e,t){var n=e.xAxisModel,i=e.yAxisModel,r=e.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],YA={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(En.getTransform(e)),t}},XA={lineX:(0,f.curry)(ZA,0),lineY:(0,f.curry)(ZA,1),rect:function(e,t,n,i){var r=e?t.pointToData([n[0][0],n[1][0]],i):t.dataToPoint([n[0][0],n[1][0]],i),o=e?t.pointToData([n[0][1],n[1][1]],i):t.dataToPoint([n[0][1],n[1][1]],i),a=[FA([r[0],o[0]]),FA([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,n,i){var r=[[1/0,-1/0],[1/0,-1/0]],o=(0,f.map)(n,(function(n){var o=e?t.pointToData(n,i):t.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o}));return{values:o,xyMinMax:r}}};function ZA(e,t,n,i){var r=n.getAxis(["x","y"][e]),o=FA((0,f.map)([0,1],(function(e){return t?r.coordToData(r.toLocalCoord(i[e]),!0):r.toGlobalCoord(r.dataToCoord(i[e]))}))),a=[];return a[e]=o,a[1-e]=[NaN,NaN],{values:o,xyMinMax:a}}var jA={lineX:(0,f.curry)(qA,0),lineY:(0,f.curry)(qA,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return(0,f.map)(e,(function(e,i){return[e[0]-n[0]*t[i][0],e[1]-n[1]*t[i][1]]}))}};function qA(e,t,n,i){return[t[0]-i[e]*n[0],t[1]-i[e]*n[1]]}function $A(e,t){var n=KA(e),i=KA(t),r=[n[0]/i[0],n[1]/i[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function KA(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const JA=GA;var QA=n(8609),eI=f.each,tI=(0,N.S_)("toolbox-dataZoom_"),nI=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Oe.C6)(t,e),t.prototype.render=function(e,t,n,i){this._brushController||(this._brushController=new my(n.getZr()),this._brushController.on("brush",f.bind(this._onBrush,this)).mount()),aI(e,t,this,i,n),oI(e,t)},t.prototype.onclick=function(e,t,n){iI[n].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=e.areas;if(e.isEnd&&t.length){var n={},i=this.ecModel;this._brushController.updateCovers([]);var r=new JA(rI(this.model),i,{include:["grid"]});r.matchOutputRanges(t,i,(function(e,t,n){if("cartesian2d"===n.type){var i=e.brushType;"rect"===i?(o("x",n,t[0]),o("y",n,t[1])):o({lineX:"x",lineY:"y"}[i],n,t)}})),OA(i,n),this._dispatchZoomAction(n)}function o(e,t,r){var o=t.getAxis(e),s=o.model,l=a(e,s,i),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(r=ng(0,r.slice(),o.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:r[0],endValue:r[1]})}function a(e,t,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var r=n.getAxisModel(e,t.componentIndex);r&&(i=n)})),i}},t.prototype._dispatchZoomAction=function(e){var t=[];eI(e,(function(e,n){t.push(f.clone(e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){var t={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)"}};return t},t}(KM),iI={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(PA(this.ecModel))}};function rI(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 oI(e,t){e.setIconStatus("back",RA(t)>1?"emphasis":"normal")}function aI(e,t,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var a=new JA(rI(e),t,{include:["grid"]}),s=a.makePanelOpts(r,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}(0,QA.S)("dataZoom",(function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var i=t.getModel(n),r=[],o=rI(i),a=(0,N._e)(e,o);return eI(a.xAxisModels,(function(e){return s(e,"xAxis","xAxisIndex")})),eI(a.yAxisModels,(function(e){return s(e,"yAxis","yAxisIndex")})),r}function s(e,t,n){var o=e.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:tI+t+o};a[n]=o,r.push(a)}}));const sI=nI;function lI(e){e.registerComponentModel(nA),e.registerComponentView(sA),QM("saveAsImage",uA),QM("magicType",fA),QM("dataView",DA),QM("dataZoom",sI),QM("restore",zA),x($M)}var uI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(d.A);const cI=uI;function hI(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function dI(e){if(ri.A.domSupported)for(var t=document.documentElement.style,n=0,i=e.length;n<i;n++)if(e[n]in t)return e[n]}var pI=dI(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),fI=dI(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function gI(e,t){if(!e)return t;t=(0,Je.Cb)(t,!0);var n=e.indexOf(t);return e=-1===n?t:"-"+e.slice(0,n)+"-"+t,e.toLowerCase()}function yI(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var mI=gI(fI,"transition"),vI=gI(pI,"transform"),xI="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ri.A.transform3dSupported?"will-change:transform;":"");function _I(e){return e="left"===e?"right":"right"===e?"left":"top"===e?"bottom":"top",e}function bI(e,t,n){if(!(0,f.isString)(n)||"inside"===n)return"";var i=e.get("backgroundColor"),r=e.get("borderWidth");t=(0,Je.he)(t);var o,a=_I(n),s=Math.max(1.5*Math.round(r),6),l="",u=vI+":";(0,f.indexOf)(["left","right"],a)>-1?(l+="top:50%",u+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var c=o*Math.PI/180,h=s+r,d=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),p=Math.round(100*((d-Math.SQRT2*r)/2+Math.SQRT2*r-(d-h)/2))/100;l+=";"+a+":-"+p+"px";var g=t+" solid "+r+"px;",y=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+u+";","border-bottom:"+g,"border-right:"+g,"background-color:"+i+";"];return'<div style="'+y.join("")+'"></div>'}function SI(e,t){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+e/2+"s "+n,r="opacity"+i+",visibility"+i;return t||(i=" "+e+"s "+n,r+=ri.A.transformSupported?","+vI+i:",left"+i+",top"+i),mI+":"+r}function wI(e,t,n){var i=e.toFixed(0)+"px",r=t.toFixed(0)+"px";if(!ri.A.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=ri.A.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+vI+":"+a+";":[["top",0],["left",0],[pI,a]]}function MI(e){var t=[],n=e.get("fontSize"),i=e.getTextColor();i&&t.push("color:"+i),t.push("font:"+e.getFont());var r=(0,f.retrieve2)(e.get("lineHeight"),Math.round(3*n/2));n&&t.push("line-height:"+r+"px");var o=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return o&&a&&t.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),(0,f.each)(["decoration","align"],(function(n){var i=e.get(n);i&&t.push("text-"+n+":"+i)})),t.join(";")}function AI(e,t,n){var i=[],r=e.get("transitionDuration"),o=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),h=(0,ml.CO)(e,"html"),d=l+"px "+u+"px "+a+"px "+s;return i.push("box-shadow:"+d),t&&r&&i.push(SI(r,n)),o&&i.push("background-color:"+o),(0,f.each)(["width","color","radius"],(function(t){var n="border-"+t,r=(0,Je.Cb)(n),o=e.get(r);null!=o&&i.push(n+":"+o+("color"===t?"":"px"))})),i.push(MI(c)),null!=h&&i.push("padding:"+(0,Je.QX)(h).join("px ")+"px"),i.join(";")+";"}function II(e,t,n,i,r){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&(0,ti.lJ)(e,a,n,i,r)}else{e[0]=i,e[1]=r;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var CI=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ri.A.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),r=t.appendTo,o=r&&((0,f.isString)(r)?document.querySelector(r):(0,f.isDom)(r)?r:(0,f.isFunction)(r)&&r(e.getDom()));II(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!a._enterable){var t=i.handler,n=i.painter.getViewportRoot();(0,Nl.e0)(n,e,!0),t.dispatch("mousemove",e)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=yI(t,"position"),i=t.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative")}var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r,this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=xI+AI(e,!this._firstShow,this._longHide)+wI(r[0],r[1],!0)+"border-color:"+(0,Je.he)(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,i,r){var o=this.el;if(null!=e){var a="";if((0,f.isString)(r)&&"item"===n.get("trigger")&&!hI(n)&&(a=bI(n,i,r)),(0,f.isString)(e))o.innerHTML=e+a;else if(e){o.innerHTML="",(0,f.isArray)(e)||(e=[e]);for(var s=0;s<e.length;s++)(0,f.isDom)(e[s])&&e[s].parentNode!==o&&o.appendChild(e[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},e.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(II(n,this._zr,this._container,e,t),null!=n[0]&&null!=n[1]){var i=this.el.style,r=wI(n[0],n[1]);(0,f.each)(r,(function(e){i[e[0]]=e[1]}))}}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",ri.A.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return e._longHide=!0}),500)},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout((0,f.bind)(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},e}();const TI=CI;var DI=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),OI(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,i,r){var o=this;f.isObject(e)&&(0,Tm.$8)(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new Gn.Ay({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:(0,ml.CO)(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),f.each(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(e){o.el.style[e]=n.get(e)})),f.each(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(e){o.el.style[e]=a.get(e)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=kI(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var i=this._styleCoord;OI(i,this._zr,e,t),e=i[0],t=i[1];var r=n.style,o=LI(r.borderWidth||0),a=kI(r);n.x=e+o+a.left,n.y=t+o+a.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(f.bind(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function LI(e){return Math.max(0,e)}function kI(e){var t=LI(e.shadowBlur||0),n=LI(e.shadowOffsetX||0),i=LI(e.shadowOffsetY||0);return{left:LI(t-n),right:LI(t+n),top:LI(t-i),bottom:LI(t+i)}}function OI(e,t,n,i){e[0]=n,e[1]=i,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}const PI=DI;var NI=n(9148),RI=new Zn.A({shape:{x:-1,y:-1,width:2,height:2}}),EI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.init=function(e,t){if(!ri.A.node&&t.getDom()){var n=e.getComponent("tooltip"),i=this._renderMode=(0,N.XJ)(n.get("renderMode"));this._tooltipContent="richText"===i?new PI(t):new TI(t,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(e,t,n){if(!ri.A.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&e.get("transitionDuration")?(0,ce.N)(this,"_updatePosition",50,"fixRate"):(0,ce.IU)(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,t=e.get("triggerOn");sS("itemTooltip",this._api,(0,f.bind)((function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,i=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(e,t,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,n,i){if(i.from!==this.uid&&!ri.A.node&&n.getDom()){var r=zI(i,n);this._ticket="";var o=i.dataByCoordSys,a=WI(i,t,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=RI;l.x=i.x,l.y=i.y,l.update(),(0,R.z)(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,i))return;var u=yS(i,t),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},t.prototype.manuallyHideTip=function(e,t,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(zI(i,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,i){var r=i.seriesIndex,o=i.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=t.getSeriesByIndex(r);if(s){var l=s.getData(),u=VI([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}}},t.prototype._tryShow=function(e,t){var n=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){var o,a,s=(0,R.z)(n);if("legend"===s.ssrType)return;this._lastDataByCoordSys=null,(0,oc.R)(n,(function(e){return null!=(0,R.z)(e).dataIndex?(o=e,!0):null!=(0,R.z)(e).tooltipConfig?(a=e,!0):void 0}),!0),o?this._showSeriesItemTooltip(e,o,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=(0,f.bind)(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,i=this._tooltipModel,r=[t.offsetX,t.offsetY],o=VI([t.tooltipOption],i),a=this._renderMode,s=[],l=(0,ml.Qx)("section",{blocks:[],noHeader:!0}),u=[],c=new ml.lb;(0,f.each)(e,(function(e){(0,f.each)(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),r=e.value;if(t&&null!=r){var o=Xb(r,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),h=(0,ml.Qx)("section",{header:o,noHeader:!(0,f.trim)(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),(0,f.each)(e.seriesDataIndices,(function(l){var d=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,g=d.getDataParams(p);if(!(g.dataIndex<0)){g.axisDim=e.axisDim,g.axisIndex=e.axisIndex,g.axisType=e.axisType,g.axisId=e.axisId,g.axisValue=rn(t.axis,{value:r}),g.axisValueLabel=o,g.marker=c.makeTooltipMarker("item",(0,Je.he)(g.color),a);var y=(0,NI.L)(d.formatTooltip(p,!0,null)),m=y.frag;if(m){var v=VI([d],i).get("valueFormatter");h.blocks.push(v?(0,f.extend)({valueFormatter:v},m):m)}y.text&&u.push(y.text),s.push(g)}}))}}))})),l.blocks.reverse(),u.reverse();var h=t.position,d=o.get("order"),p=(0,ml.Yu)(l,c,a,d,n.get("useUTC"),o.get("textStyle"));p&&u.unshift(p);var g="richText"===a?"\n\n":"<br/>",y=u.join(g);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(o,h,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,y,s,Math.random()+"",r[0],r[1],h,null,c)}))},t.prototype._showSeriesItemTooltip=function(e,t,n){var i=this._ecModel,r=(0,R.z)(t),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,c=s.getData(u),h=this._renderMode,d=e.positionDefault,p=VI([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(null==g||"item"===g){var y=s.getDataParams(l,u),m=new ml.lb;y.marker=m.makeTooltipMarker("item",(0,Je.he)(y.color),h);var v=(0,NI.L)(s.formatTooltip(l,!1,u)),x=p.get("order"),_=p.get("valueFormatter"),b=v.frag,S=b?(0,ml.Yu)(_?(0,f.extend)({valueFormatter:_},b):b,m,h,x,i.get("useUTC"),p.get("textStyle")):v.text,w="item_"+s.name+"_"+l;this._showOrMove(p,(function(){this._showTooltipContent(p,S,y,w,e.offsetX,e.offsetY,e.position,e.target,m)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var i="html"===this._renderMode,r=(0,R.z)(t),o=r.tooltipConfig,a=o.option||{},s=a.encodeHTMLContent;if((0,f.isString)(a)){var l=a;a={content:l,formatter:l},s=!0}s&&i&&a.content&&(a=(0,f.clone)(a),a.content=(0,ti.Me)(a.content));var u=[a],c=this._ecModel.getComponent(r.componentMainType,r.componentIndex);c&&u.push(c),u.push({formatter:a.content});var h=e.positionDefault,d=VI(u,this._tooltipModel,h?{position:h}:null),p=d.get("content"),g=Math.random()+"",y=new ml.lb;this._showOrMove(d,(function(){var n=(0,f.clone)(d.get("formatterParams")||{});this._showTooltipContent(d,p,n,g,e.offsetX,e.offsetY,e.position,t,y)})),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,i,r,o,a,s,l){if(this._ticket="",e.get("showContent")&&e.get("show")){var u=this._tooltipContent;u.setEnterable(e.get("enterable"));var c=e.get("formatter");a=a||e.get("position");var h=t,d=this._getNearestPoint([r,o],n,e.get("trigger"),e.get("borderColor")),p=d.color;if(c)if((0,f.isString)(c)){var g=e.ecModel.get("useUTC"),y=(0,f.isArray)(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=c,m&&(h=(0,bt.GP)(y.axisValue,h,g)),h=(0,Je.YK)(h,n,!0)}else if((0,f.isFunction)(c)){var v=(0,f.bind)((function(t,i){t===this._ticket&&(u.setContent(i,l,e,p,a),this._updatePosition(e,a,r,o,u,n,s))}),this);this._ticket=i,h=c(n,i,v)}else h=c;u.setContent(h,l,e,p,a),u.show(e,p),this._updatePosition(e,a,r,o,u,n,s)}},t.prototype._getNearestPoint=function(e,t,n,i){return"axis"===n||(0,f.isArray)(t)?{color:i||("html"===this._renderMode?"#fff":"none")}:(0,f.isArray)(t)?void 0:{color:i||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var u=r.getSize(),c=e.get("align"),h=e.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),(0,f.isFunction)(t)&&(t=t([n,i],o,r.el,d,{viewSize:[s,l],contentSize:u.slice()})),(0,f.isArray)(t))n=(0,Ge.lo)(t[0],s),i=(0,Ge.lo)(t[1],l);else if((0,f.isObject)(t)){var p=t;p.width=u[0],p.height=u[1];var g=(0,dn.dV)(p,{width:s,height:l});n=g.x,i=g.y,c=null,h=null}else if((0,f.isString)(t)&&a){var y=FI(t,d,u,e.get("borderWidth"));n=y[0],i=y[1]}else{y=BI(n,i,r,s,l,c?null:20,h?null:20);n=y[0],i=y[1]}if(c&&(n-=HI(c)?u[0]/2:"right"===c?u[0]:0),h&&(i-=HI(h)?u[1]/2:"bottom"===h?u[1]:0),hI(e)){y=GI(n,i,r,s,l);n=y[0],i=y[1]}r.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===e.length;return r&&(0,f.each)(n,(function(n,o){var a=n.dataByAxis||[],s=e[o]||{},l=s.dataByAxis||[];r=r&&a.length===l.length,r&&(0,f.each)(a,(function(e,n){var o=l[n]||{},a=e.seriesDataIndices||[],s=o.seriesDataIndices||[];r=r&&e.value===o.value&&e.axisType===o.axisType&&e.axisId===o.axisId&&a.length===s.length,r&&(0,f.each)(a,(function(e,t){var n=s[t];r=r&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex})),i&&(0,f.each)(e.seriesDataIndices,(function(e){var n=e.seriesIndex,o=t[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=e,this._cbParamsList=t,!!r},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!ri.A.node&&t.getDom()&&((0,ce.IU)(this,"_updatePosition"),this._tooltipContent.dispose(),pS("itemTooltip",t))},t.type="tooltip",t}(c.A);function VI(e,t,n){var i,r=t.ecModel;n?(i=new _.A(n,r,r),i=new _.A(t.option,i,r)):i=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof _.A&&(a=a.get("tooltip",!0)),(0,f.isString)(a)&&(a={formatter:a}),a&&(i=new _.A(a,i,r)))}return i}function zI(e,t){return e.dispatchAction||(0,f.bind)(t.dispatchAction,t)}function BI(e,t,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(e+l+o+2>i?e-=l+o:e+=o),null!=a&&(t+u+a>r?t-=u+a:t+=a),[e,t]}function GI(e,t,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,i)-a,t=Math.min(t+s,r)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function FI(e,t,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-r/2,l=t.y+c/2-o/2;break;case"top":s=t.x+u/2-r/2,l=t.y-o-a;break;case"bottom":s=t.x+u/2-r/2,l=t.y+c+a;break;case"left":s=t.x-r-a,l=t.y+c/2-o/2;break;case"right":s=t.x+u+a,l=t.y+c/2-o/2}return[s,l]}function HI(e){return"center"===e||"middle"===e}function WI(e,t,n){var i=(0,N.HB)(e).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o=(0,N.JO)(t,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(t){var n=(0,R.z)(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0})),s?{componentMainType:r,componentIndex:a.componentIndex,el:s}:void 0}}}const UI=EI;function YI(e){x(DS),e.registerComponentModel(cI),e.registerComponentView(UI),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},f.noop),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},f.noop)}var XI=["rect","polygon","keep","clear"];function ZI(e,t){var n=(0,N.qB)(e?e.brush:[]);if(n.length){var i=[];f.each(n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(i=i.concat(t))}));var r=e&&e.toolbox;f.isArray(r)&&(r=r[0]),r||(r={feature:{}},e.toolbox=[r]);var o=r.feature||(r.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,i),jI(s),t&&!s.length&&s.push.apply(s,XI)}}function jI(e){var t={};f.each(e,(function(e){t[e]=1})),e.length=0,f.each(t,(function(t,n){e.push(n)}))}var qI=n(7566),$I=f.each;function KI(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function JI(e,t,n){var i={};return $I(t,(function(t){var o=i[t]=r();$I(e[t],(function(e,i){if(sd.isValidType(i)){var r={type:i,visual:e};n&&n(r,t),o[i]=new sd(r),"opacity"===i&&(r=f.clone(r),r.type="colorAlpha",o.__hidden.__alphaForOpacity=new sd(r))}}))})),i;function r(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}}function QI(e,t,n){var i;f.each(n,(function(e){t.hasOwnProperty(e)&&KI(t[e])&&(i=!0)})),i&&f.each(n,(function(n){t.hasOwnProperty(n)&&KI(t[n])?e[n]=f.clone(t[n]):delete e[n]}))}function eC(e,t,n,i,r,o){var a,s={};function l(e){return(0,qI.Ez)(n,a,e)}function u(e,t){(0,qI.oZ)(n,a,e,t)}function c(e,c){a=null==o?e:c;var h=n.getRawDataItem(a);if(!h||!1!==h.visualMap)for(var d=i.call(r,e),p=t[d],f=s[d],g=0,y=f.length;g<y;g++){var m=f[g];p[m]&&p[m].applyVisual(e,l,u)}}f.each(e,(function(e){var n=sd.prepareVisualTypes(t[e]);s[e]=n})),null==o?n.each(c):n.each([o],c)}function tC(e,t,n,i){var r={};return f.each(e,(function(e){var n=sd.prepareVisualTypes(t[e]);r[e]=n})),{progress:function(e,o){var a,s;function l(e){return(0,qI.Ez)(o,s,e)}function u(e,t){(0,qI.oZ)(o,s,e,t)}null!=i&&(a=o.getDimensionIndex(i));var c=o.getStore();while(null!=(s=e.next())){var h=o.getRawDataItem(s);if(!h||!1!==h.visualMap)for(var d=null!=i?c.get(a,s):s,p=n(d),f=t[p],g=r[p],y=0,m=g.length;y<m;y++){var v=g[y];f[v]&&f[v].applyVisual(d,l,u)}}}}}function nC(e){var t=e.brushType,n={point:function(i){return iC[t].point(i,n,e)},rect:function(i){return iC[t].rect(i,n,e)}};return n}var iC={lineX:rC(0),lineY:rC(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&Sn.l(n.range,e[0],e[1])},rect:function(e,t,n){var i=n.range;if(!e||i.length<=1)return!1;var r=e.x,o=e.y,a=e.width,s=e.height,l=i[0];return!!(Sn.l(i,r,o)||Sn.l(i,r+a,o)||Sn.l(i,r,o+s)||Sn.l(i,r+a,o+s)||_t.A.create(e).contain(l[0],l[1])||(0,En.linePolygonIntersect)(r,o,r+a,o,i)||(0,En.linePolygonIntersect)(r,o,r,o+s,i)||(0,En.linePolygonIntersect)(r+a,o,r+a,o+s,i)||(0,En.linePolygonIntersect)(r,o+s,r+a,o+s,i))||void 0}}};function rC(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,i){if(t){var r=i.range,o=t[e];return oC(o,r)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[t[e]],i[t[e]]+i[n[e]]];return s[1]<s[0]&&s.reverse(),oC(s[0],a)||oC(s[1],a)||oC(a[0],s)||oC(a[1],s)}}}}function oC(e,t){return t[0]<=e&&e<=t[1]}var aC=["inBrush","outOfBrush"],sC="__ecBrushSelect",lC="__ecInBrushSelectEvent";function uC(e){e.eachComponent({mainType:"brush"},(function(t){var n=t.brushTargetManager=new JA(t.option,e);n.setInputRanges(t.areas,e)}))}function cC(e,t,n){var i,r,o=[];e.eachComponent({mainType:"brush"},(function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),uC(e),e.eachComponent({mainType:"brush"},(function(t,n){var a={brushId:t.id,brushIndex:n,brushName:t.name,areas:f.clone(t.areas),selected:[]};o.push(a);var s=t.option,l=s.brushLink,u=[],c=[],h=[],d=!1;n||(i=s.throttleType,r=s.throttleDelay);var p=f.map(t.areas,(function(e){var t=gC[e.brushType],n=f.defaults({boundingRect:t?t(e):void 0},e);return n.selectors=nC(n),n})),g=JI(t.option,aC,(function(e){e.mappingMethod="fixed"}));function y(e){return"all"===l||!!u[e]}function m(e){return!!e.length}function v(e,t){var n=e.coordinateSystem;d=d||n.hasAxisBrushed(),y(t)&&n.eachActiveState(e.getData(),(function(e,t){"active"===e&&(c[t]=1)}))}function x(n,i,r){if(n.brushSelector&&!fC(t,i)&&(f.each(p,(function(i){t.brushTargetManager.controlSeries(i,n,e)&&r.push(i),d=d||m(r)})),y(i)&&m(r))){var o=n.getData();o.each((function(e){pC(n,r,o,e)&&(c[e]=1)}))}}f.isArray(l)&&f.each(l,(function(e){u[e]=1})),e.eachSeries((function(e,t){var n=h[t]=[];"parallel"===e.subType?v(e,t):x(e,t,n)})),e.eachSeries((function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};a.selected.push(n);var i=h[t],r=e.getData(),o=y(t)?function(e){return c[e]?(n.dataIndex.push(r.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(t){return pC(e,i,r,t)?(n.dataIndex.push(r.getRawIndex(t)),"inBrush"):"outOfBrush"};(y(t)?d:m(i))&&eC(aC,g,r,o)}))})),hC(t,i,r,o,n)}function hC(e,t,n,i,r){if(r){var o=e.getZr();if(!o[lC]){o[sC]||(o[sC]=dC);var a=ce.N(o,sC,n,t);a(e,i)}}}function dC(e,t){if(!e.isDisposed()){var n=e.getZr();n[lC]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[lC]=!1}}function pC(e,t,n,i){for(var r=0,o=t.length;r<o;r++){var a=t[r];if(e.brushSelector(i,n,a.selectors,a))return!0}}function fC(e,t){var n=e.option.seriesIndex;return null!=n&&"all"!==n&&(f.isArray(n)?f.indexOf(n,t)<0:t!==n)}var gC={rect:function(e){return yC(e.range)},polygon:function(e){for(var t,n=e.range,i=0,r=n.length;i<r;i++){t=t||[[1/0,-1/0],[1/0,-1/0]];var o=n[i];o[0]<t[0][0]&&(t[0][0]=o[0]),o[0]>t[0][1]&&(t[0][1]=o[0]),o[1]<t[1][0]&&(t[1][0]=o[1]),o[1]>t[1][1]&&(t[1][1]=o[1])}return t&&yC(t)}};function yC(e){return new _t.A(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var mC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new my(t.getZr())).on("brush",f.bind(this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,i){this.model=e,this._updateController(e,t,n,i)},t.prototype.updateTransform=function(e,t,n,i){uC(t),this._updateController(e,t,n,i)},t.prototype.updateVisual=function(e,t,n,i){this.updateTransform(e,t,n,i)},t.prototype.updateView=function(e,t,n,i){this._updateController(e,t,n,i)},t.prototype._updateController=function(e,t,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:f.clone(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:f.clone(n),$from:t})},t.type="brush",t}(c.A);const vC=mC;var xC="#ddd",_C=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return(0,Oe.C6)(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&QI(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:xC},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=f.map(e,(function(e){return bC(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=bC(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(d.A);function bC(e,t){return f.merge({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new _.A(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}const SC=_C;var wC=["rect","polygon","lineX","lineY","keep","clear"],MC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Oe.C6)(t,e),t.prototype.render=function(e,t,n){var i,r,o;t.eachComponent({mainType:"brush"},(function(e){i=e.brushType,r=e.brushOption.brushMode||"single",o=o||!!e.areas.length})),this._brushType=i,this._brushMode=r,f.each(e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===r:"clear"===t?o:t===i)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return f.each(e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},t.prototype.onclick=function(e,t,n){var i=this._brushType,r=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},t.getDefaultOption=function(e){var t={show:!0,type:wC.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return t},t}(KM);const AC=MC;function IC(e){e.registerComponentView(vC),e.registerComponentModel(SC),e.registerPreprocessor(ZI),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,cC),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},f.noop),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},f.noop),QM("brush",AC)}var CC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return(0,Oe.C6)(t,e),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(d.A),TC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var i=this.group,r=e.getModel("textStyle"),o=e.getModel("subtextStyle"),a=e.get("textAlign"),s=f.retrieve2(e.get("textBaseline"),e.get("textVerticalAlign")),l=new Gn.Ay({style:(0,pn.VB)(r,{text:e.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=e.get("subtext"),h=new Gn.Ay({style:(0,pn.VB)(o,{text:c,fill:o.getTextColor(),y:u.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);l.silent=!d&&!g,h.silent=!p&&!g,d&&l.on("click",(function(){(0,Je.JW)(d,"_"+e.get("target"))})),p&&h.on("click",(function(){(0,Je.JW)(p,"_"+e.get("subtarget"))})),(0,R.z)(l).eventData=(0,R.z)(h).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(l),c&&i.add(h);var y=i.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var v=(0,dn.dV)(m,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));a||(a=e.get("left")||e.get("right"),"middle"===a&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),s||(s=e.get("top")||e.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),i.x=v.x,i.y=v.y,i.markRedraw();var x={align:a,verticalAlign:s};l.setStyle(x),h.setStyle(x),y=i.getBoundingRect();var _=v.margin,b=e.getItemStyle(["color","opacity"]);b.fill=e.get("backgroundColor");var S=new Zn.A({shape:{x:y.x-_[3],y:y.y-_[0],width:y.width+_[1]+_[3],height:y.height+_[0]+_[2],r:e.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});i.add(S)}},t.type="title",t}(c.A);function DC(e){e.registerComponentModel(CC),e.registerComponentView(TC)}var LC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return(0,Oe.C6)(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,n=t.data||[],i=t.axisType,r=this._names=[];"category"===i?(e=[],(0,f.each)(n,(function(t,n){var i,o=(0,N.vS)((0,N.vj)(t),"");(0,f.isObject)(t)?(i=(0,f.clone)(t),i.value=n):i=n,e.push(i),r.push(o)}))):e=n;var o={category:"ordinal",time:"time",value:"number"}[i]||"number",a=this._data=new ae([{name:"value",type:o}],this);a.initData(e,r)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(d.A);const kC=LC;var OC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.type="timeline.slider",t.defaultOption=(0,ko.G_)(kC.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(kC);(0,f.mixin)(OC,NI.J.prototype);const PC=OC;var NC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.type="timeline",t}(c.A);const RC=NC;var EC=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i)||this;return o.type=r||"value",o}return(0,Oe.C6)(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(Ai);const VC=EC;var zC=Math.PI,BC=(0,N.$r)(),GC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,e);e.formatTooltip=function(e){var t=a.scale.getLabel({value:e});return(0,ml.Qx)("nameValue",{noName:!0,value:t})},(0,f.each)(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](i,r,a,e)}),this),this._renderAxisLabel(i,o,a,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,i=e.get(["label","position"]),r=e.get("orient"),o=HC(e,t);n=null==i||"auto"===i?"horizontal"===r?o.y+o.height/2<t.getHeight()/2?"-":"+":o.x+o.width/2<t.getWidth()/2?"+":"-":(0,f.isString)(i)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[r][i]:i;var a,s,l,u={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:zC/2},d="vertical"===r?o.height:o.width,p=e.getModel("controlStyle"),g=p.get("show",!0),y=g?p.get("itemSize"):0,m=g?p.get("itemGap"):0,v=y+m,x=e.get(["label","rotate"])||0;x=x*zC/180;var _=p.get("position",!0),b=g&&p.get("showPlayBtn",!0),S=g&&p.get("showPrevBtn",!0),w=g&&p.get("showNextBtn",!0),M=0,A=d;"left"===_||"bottom"===_?(b&&(a=[0,0],M+=v),S&&(s=[M,0],M+=v),w&&(l=[A-y,0],A-=v)):(b&&(a=[A-y,0],A-=v),S&&(s=[0,0],M+=v),w&&(l=[A-y,0],A-=v));var I=[M,A];return e.get("inverse")&&I.reverse(),{viewRect:o,mainLength:d,orient:r,rotation:h[r],labelRotation:x,labelPosOpt:n,labelAlign:e.get(["label","align"])||u[r],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||c[r],playPosition:a,prevBtnPosition:s,nextBtnPosition:l,axisExtent:I,controlSize:y,controlGap:m}},t.prototype._position=function(e,t){var n=this._mainGroup,i=this._labelGroup,r=e.viewRect;if("vertical"===e.orient){var o=se.create(),a=r.x,s=r.y+r.height;se.translate(o,o,[-a,-s]),se.rotate(o,o,-zC/2),se.translate(o,o,[a,s]),r=r.clone(),r.applyTransform(o)}var l=m(r),u=m(n.getBoundingRect()),c=m(i.getBoundingRect()),h=[n.x,n.y],d=[i.x,i.y];d[0]=h[0]=l[0][0];var p=e.labelPosOpt;if(null==p||(0,f.isString)(p)){var g="+"===p?0:1;v(h,u,l,1,g),v(d,c,l,1,1-g)}else{g=p>=0?0:1;v(h,u,l,1,g),d[1]=h[1]+p}function y(e){e.originX=l[0][0]-e.x,e.originY=l[1][0]-e.y}function m(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function v(e,t,n,i,r){e[i]+=n[i][r]-t[i][r]}n.setPosition(h),i.setPosition(d),n.rotation=i.rotation=e.rotation,y(n),y(i)},t.prototype._createAxis=function(e,t){var n=t.getData(),i=t.get("axisType"),r=FC(t,i);r.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var a=new VC("value",r,e.axisExtent,i);return a.model=t,a},t.prototype._createGroup=function(e){var t=this[e]=new zn.A;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new jn.A({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:(0,f.extend)({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(o);var a=this._progressLine=new jn.A({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:(0,f.defaults)({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(a)}},t.prototype._renderAxisTick=function(e,t,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],(0,f.each)(a,(function(e){var a=n.dataToCoord(e.value),s=o.getItemModel(e.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),h={x:a,y:0,onclick:(0,f.bind)(r._changeTimeline,r,e.value)},d=UC(s,l,t,h);d.ensureState("emphasis").style=u.getItemStyle(),d.ensureState("progress").style=c.getItemStyle(),(0,gn.iJ)(d);var p=(0,R.z)(d);s.get("tooltip")?(p.dataIndex=e.value,p.dataModel=i):p.dataIndex=p.dataModel=null,r._tickSymbols.push(d)}))},t.prototype._renderAxisLabel=function(e,t,n,i){var r=this,o=n.getLabelModel();if(o.get("show")){var a=i.getData(),s=n.getViewLabels();this._tickLabels=[],(0,f.each)(s,(function(i){var o=i.tickValue,s=a.getItemModel(o),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),h=n.dataToCoord(i.tickValue),d=new Gn.Ay({x:h,y:0,rotation:e.labelRotation-e.rotation,onclick:(0,f.bind)(r._changeTimeline,r,o),silent:!1,style:(0,pn.VB)(l,{text:i.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});d.ensureState("emphasis").style=(0,pn.VB)(u),d.ensureState("progress").style=(0,pn.VB)(c),t.add(d),(0,gn.iJ)(d),BC(d).dataIndex=o,r._tickLabels.push(d)}))}},t.prototype._renderControl=function(e,t,n,i){var r=e.controlSize,o=e.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function c(e,n,l,u){if(e){var c=(0,Yt.lo)((0,f.retrieve2)(i.get(["controlStyle",n+"BtnSize"]),r),r),h=[0,-c/2,c,c],d=WC(i,n+"Icon",h,{x:e[0],y:e[1],originX:r/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});d.ensureState("emphasis").style=s,t.add(d),(0,gn.iJ)(d)}}c(e.nextBtnPosition,"next",(0,f.bind)(this._changeTimeline,this,u?"-":"+")),c(e.prevBtnPosition,"prev",(0,f.bind)(this._changeTimeline,this,u?"+":"-")),c(e.playPosition,l?"stop":"play",(0,f.bind)(this._handlePlayClick,this,!l),!0)},t.prototype._renderCurrentPointer=function(e,t,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(e){e.draggable=!0,e.drift=(0,f.bind)(s._handlePointerDrag,s),e.ondragend=(0,f.bind)(s._handlePointerDragend,s),YC(e,s._progressLine,o,n,i,!0)},onUpdate:function(e){YC(e,s._progressLine,o,n,i)}};this._currentPointer=UC(a,a,this._mainGroup,{},this._currentPointer,l)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],i=this._axis,r=Ge.Y6(i.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var o=this._progressLine;o&&(o.shape.x2=n,o.dirty());var a=this._findNearestTick(n),s=this.model;(t||a!==s.getCurrentIndex()&&s.get("realtime"))&&this._changeTimeline(a)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var t=this._mainGroup.getLocalTransform();return En.applyTransform(e,t,!0)},t.prototype._findNearestTick=function(e){var t,n=this.model.getData(),i=1/0,r=this._axis;return n.each(["value"],(function(n,o){var a=r.dataToCoord(n),s=Math.abs(a-e);s<i&&(i=s,t=o)})),t},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var i=0;i<t.length;i++)t&&t[i]&&t[i].toggleState("progress",i<e);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",BC(n[i]).dataIndex<=e)},t.type="timeline.slider",t}(RC);function FC(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Ke({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new Pt({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new tt}}function HC(e,t){return dn.dV(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function WC(e,t,n,i){var r=i.style,o=En.createIcon(e.get(["controlStyle",t]),i||{},new _t.A(n[0],n[1],n[2],n[3]));return r&&o.setStyle(r),o}function UC(e,t,n,i,r,o){var a=t.get("color");if(r)r.setColor(a),n.add(r),o&&o.onUpdate(r);else{var s=e.get("symbol");r=(0,fn.v5)(s,-1,-1,2,2,a),r.setStyle("strokeNoScale",!0),n.add(r),o&&o.onCreate(r)}var l=t.getItemStyle(["color"]);r.setStyle(l),i=(0,f.merge)({rectHover:!0,z2:100},i,!0);var u=(0,fn.xU)(e.get("symbolSize"));i.scaleX=u[0]/2,i.scaleY=u[1]/2;var c=(0,fn.hV)(e.get("symbolOffset"),u);c&&(i.x=(i.x||0)+c[0],i.y=(i.y||0)+c[1]);var h=e.get("symbolRotate");return i.rotation=(h||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function YC(e,t,n,i,r,o){if(!e.dragging){var a=r.getModel("checkpointStyle"),s=i.dataToCoord(r.getData().get("value",n));if(o||!a.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}const XC=GC;function ZC(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(e,t,n){var i=t.getComponent("timeline");return i&&null!=e.currentIndex&&(i.setCurrentIndex(e.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),(0,f.defaults)({currentIndex:i.option.currentIndex},e)})),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(e,t){var n=t.getComponent("timeline");n&&null!=e.playState&&n.setPlayState(e.playState)}))}function jC(e){var t=e&&e.timeline;f.isArray(t)||(t=t?[t]:[]),f.each(t,(function(e){e&&qC(e)}))}function qC(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),$C(e),KC(e,"controlPosition")){var i=e.controlStyle||(e.controlStyle={});KC(i,"position")||(i.position=e.controlPosition),"none"!==i.position||KC(i,"show")||(i.show=!1,delete i.position),delete e.controlPosition}f.each(e.data||[],(function(e){f.isObject(e)&&!f.isArray(e)&&(!KC(e,"value")&&KC(e,"name")&&(e.value=e.name),$C(e))}))}function $C(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),i=e.label||e.label||{},r=i.normal||(i.normal={}),o={normal:1,emphasis:1};f.each(i,(function(e,t){o[t]||KC(r,t)||(r[t]=e)})),n.label&&!KC(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function KC(e,t){return e.hasOwnProperty(t)}function JC(e){e.registerComponentModel(PC),e.registerComponentView(XC),e.registerSubTypeDefaulter("timeline",(function(){return"slider"})),ZC(e),e.registerPreprocessor(jC)}function QC(e,t){if(!e)return!1;for(var n=(0,f.isArray)(e)?e:[e],i=0;i<n.length;i++)if(n[i]&&n[i][t])return!0;return!1}function eT(e){(0,N.M5)(e,"label",["show"])}var tT=(0,N.$r)(),nT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return(0,Oe.C6)(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(ri.A.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,n,i){var r=this.mainType;n||t.eachSeries((function(e){var n=e.get(this.mainType,!0),o=tT(e)[r];n&&n.data?(o?o._mergeOption(n,t,!0):(i&&eT(n),f.each(n.data,(function(e){e instanceof Array?(eT(e[0]),eT(e[1])):eT(e)})),o=this.createMarkerModelFromSeries(n,this,t),f.extend(o,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),o.__hostSeries=e),tT(e)[r]=o):tT(e)[r]=null}),this)},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.getRawValue(e),o=i.getName(e);return(0,ml.Qx)("section",{header:this.name,blocks:[(0,ml.Qx)("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.prototype.getDataParams=function(e,t){var n=NI.J.prototype.getDataParams.call(this,e,t),i=this.__hostSeries;return i&&(n.seriesId=i.id,n.seriesName=i.name,n.seriesType=i.subType),n},t.getMarkerModelFromSeries=function(e,t){return tT(e)[t]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(d.A);f.mixin(nT,NI.J.prototype);const iT=nT;var rT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},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}(iT);const oT=rT;var aT=n(3492);function sT(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function lT(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function uT(e,t,n,i,r,o){var a=[],s=Me(t,i),l=s?t.getCalculationInfo("stackResultDimension"):i,u=mT(t,l,e),c=t.indicesOfNearest(l,u)[0];a[r]=t.get(n,c),a[o]=t.get(l,c);var h=t.get(i,c),d=Ge.XV(t.get(i,c));return d=Math.min(d,20),d>=0&&(a[o]=+a[o].toFixed(d)),[a,h]}var cT={min:(0,f.curry)(uT,"min"),max:(0,f.curry)(uT,"max"),average:(0,f.curry)(uT,"average"),median:(0,f.curry)(uT,"median")};function hT(e,t){if(t){var n=e.getData(),i=e.coordinateSystem,r=i&&i.dimensions;if(!lT(t)&&!(0,f.isArray)(t.coord)&&(0,f.isArray)(r)){var o=dT(t,n,i,e);if(t=(0,f.clone)(t),t.type&&cT[t.type]&&o.baseAxis&&o.valueAxis){var a=(0,f.indexOf)(r,o.baseAxis.dim),s=(0,f.indexOf)(r,o.valueAxis.dim),l=cT[t.type](n,o.baseDataDim,o.valueDataDim,a,s);t.coord=l[0],t.value=l[1]}else t.coord=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis]}if(null!=t.coord&&(0,f.isArray)(r))for(var u=t.coord,c=0;c<2;c++)cT[u[c]]&&(u[c]=mT(n,n.mapDimension(r[c]),u[c]));else t.coord=[];return t}}function dT(e,t,n,i){var r={};return null!=e.valueIndex||null!=e.valueDim?(r.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,r.valueAxis=n.getAxis(pT(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim),r.valueDataDim=t.mapDimension(r.valueAxis.dim)),r}function pT(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function fT(e,t){return!(e&&e.containData&&t.coord&&!sT(t))||e.containData(t.coord)}function gT(e,t,n){return!(e&&e.containZone&&t.coord&&n.coord&&!sT(t)&&!sT(n))||e.containZone(t.coord,n.coord)}function yT(e,t){return e?function(e,n,i,r){var o=r<2?e.coord&&e.coord[r]:e.value;return(0,aT.Pn)(o,t[r])}:function(e,n,i,r){return(0,aT.Pn)(e.value,t[r])}}function mT(e,t,n){if("average"===n){var i=0,r=0;return e.each(t,(function(e,t){isNaN(e)||(i+=e,r++)})),i/r}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var vT=(0,N.$r)(),xT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.init=function(){this.markerGroupMap=(0,f.createHashMap)()},t.prototype.render=function(e,t,n){var i=this,r=this.markerGroupMap;r.each((function(e){vT(e).keep=!1})),t.eachSeries((function(e){var r=iT.getMarkerModelFromSeries(e,i.type);r&&i.renderSeries(e,r,t,n)})),r.each((function(e){!vT(e).keep&&i.group.remove(e.group)}))},t.prototype.markKeep=function(e){vT(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;(0,f.each)(e,(function(e){var i=iT.getMarkerModelFromSeries(e,n.type);if(i){var r=i.getData();r.eachItemGraphicEl((function(e){e&&(t?(0,gn.QX)(e):(0,gn.JC)(e))}))}}))},t.type="marker",t}(c.A);const _T=xT;function bT(e,t,n){var i=t.coordinateSystem;e.each((function(r){var o,a=e.getItemModel(r),s=Ge.lo(a.get("x"),n.getWidth()),l=Ge.lo(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,r));else if(i){var u=e.get(i.dimensions[0],r),c=e.get(i.dimensions[1],r);o=i.dataToPoint([u,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(r,o)}))}var ST=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=iT.getMarkerModelFromSeries(e,"markPoint");t&&(bT(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new Gr),u=wT(r,e,t);t.setData(u),bT(t.getData(),e,i),u.each((function(e){var n=u.getItemModel(e),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if((0,f.isFunction)(i)||(0,f.isFunction)(r)||(0,f.isFunction)(o)||(0,f.isFunction)(s)){var c=t.getRawValue(e),h=t.getDataParams(e);(0,f.isFunction)(i)&&(i=i(c,h)),(0,f.isFunction)(r)&&(r=r(c,h)),(0,f.isFunction)(o)&&(o=o(c,h)),(0,f.isFunction)(s)&&(s=s(c,h))}var d=n.getModel("itemStyle").getItemStyle(),p=(0,qI.rI)(a,"color");d.fill||(d.fill=p),u.setItemVisual(e,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:d})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(e){e.traverse((function(e){(0,R.z)(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(_T);function wT(e,t,n){var i;i=e?(0,f.map)(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return(0,f.extend)((0,f.extend)({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new ae(i,n),o=(0,f.map)(n.get("data"),(0,f.curry)(hT,t));e&&(o=(0,f.filter)(o,(0,f.curry)(fT,e)));var a=yT(!!e,i);return r.initData(o,null,a),r}const MT=ST;function AT(e){e.registerComponentModel(oT),e.registerComponentView(MT),e.registerPreprocessor((function(e){QC(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))}var IT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},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}(iT);const CT=IT;var TT=(0,N.$r)(),DT=function(e,t,n,i){var r,o=e.getData();if((0,f.isArray)(i))r=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=t.getAxis(null!=i.yAxis?"y":"x"),l=(0,f.retrieve)(i.yAxis,i.xAxis);else{var u=dT(i,o,t,e);s=u.valueAxis;var c=Ae(o,u.valueDataDim);l=mT(o,c,a)}var h="x"===s.dim?0:1,d=1-h,p=(0,f.clone)(i),g={coord:[]};p.type=null,p.coord=[],p.coord[d]=-1/0,g.coord[d]=1/0;var y=n.get("precision");y>=0&&(0,f.isNumber)(l)&&(l=+l.toFixed(Math.min(y,20))),p.coord[h]=g.coord[h]=l,r=[p,g,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var m=[hT(e,r[0]),hT(e,r[1]),(0,f.extend)({},r[2])];return m[2].type=m[2].type||null,(0,f.merge)(m[2],m[0]),(0,f.merge)(m[2],m[1]),m};function LT(e){return!isNaN(e)&&!isFinite(e)}function kT(e,t,n,i){var r=1-e,o=i.dimensions[e];return LT(t[r])&<(n[r])&&t[e]===n[e]&&i.getAxis(o).containData(t[e])}function OT(e,t){if("cartesian2d"===e.type){var n=t[0].coord,i=t[1].coord;if(n&&i&&(kT(1,n,i,e)||kT(0,n,i,e)))return!0}return fT(e,t[0])&&fT(e,t[1])}function PT(e,t,n,i,r){var o,a=i.coordinateSystem,s=e.getItemModel(t),l=Ge.lo(s.get("x"),r.getWidth()),u=Ge.lo(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,h=e.get(c[0],t),d=e.get(c[1],t);o=a.dataToPoint([h,d])}if(io(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");c=a.dimensions;LT(e.get(c[0],t))?o[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):LT(e.get(c[1],t))&&(o[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];e.setItemLayout(t,o)}var NT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=iT.getMarkerModelFromSeries(e,"markLine");if(t){var i=t.getData(),r=TT(t).from,o=TT(t).to;r.each((function(t){PT(r,t,!0,e,n),PT(o,t,!1,e,n)})),i.each((function(e){i.setItemLayout(e,[r.getItemLayout(e),o.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new Ep);this.group.add(l.group);var u=RT(r,e,t),c=u.from,h=u.to,d=u.line;TT(t).from=c,TT(t).to=h,t.setData(d);var p=t.get("symbol"),g=t.get("symbolSize"),y=t.get("symbolRotate"),m=t.get("symbolOffset");function v(t,n,r){var o=t.getItemModel(n);PT(t,n,r,e,i);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=(0,qI.rI)(a,"color")),t.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:(0,f.retrieve2)(o.get("symbolOffset",!0),m[r?0:1]),symbolRotate:(0,f.retrieve2)(o.get("symbolRotate",!0),y[r?0:1]),symbolSize:(0,f.retrieve2)(o.get("symbolSize"),g[r?0:1]),symbol:(0,f.retrieve2)(o.get("symbol",!0),p[r?0:1]),style:s})}(0,f.isArray)(p)||(p=[p,p]),(0,f.isArray)(g)||(g=[g,g]),(0,f.isArray)(y)||(y=[y,y]),(0,f.isArray)(m)||(m=[m,m]),u.from.each((function(e){v(c,e,!0),v(h,e,!1)})),d.each((function(e){var t=d.getItemModel(e).getModel("lineStyle").getLineStyle();d.setItemLayout(e,[c.getItemLayout(e),h.getItemLayout(e)]),null==t.stroke&&(t.stroke=c.getItemVisual(e,"style").fill),d.setItemVisual(e,{fromSymbolKeepAspect:c.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(e,"symbolOffset"),fromSymbolRotate:c.getItemVisual(e,"symbolRotate"),fromSymbolSize:c.getItemVisual(e,"symbolSize"),fromSymbol:c.getItemVisual(e,"symbol"),toSymbolKeepAspect:h.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(e,"symbolOffset"),toSymbolRotate:h.getItemVisual(e,"symbolRotate"),toSymbolSize:h.getItemVisual(e,"symbolSize"),toSymbol:h.getItemVisual(e,"symbol"),style:t})})),l.updateData(d),u.line.eachItemGraphicEl((function(e){(0,R.z)(e).dataModel=t,e.traverse((function(e){(0,R.z)(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(_T);function RT(e,t,n){var i;i=e?(0,f.map)(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return(0,f.extend)((0,f.extend)({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new ae(i,n),o=new ae(i,n),a=new ae([],n),s=(0,f.map)(n.get("data"),(0,f.curry)(DT,t,e,n));e&&(s=(0,f.filter)(s,(0,f.curry)(OT,e)));var l=yT(!!e,i);return r.initData((0,f.map)(s,(function(e){return e[0]})),null,l),o.initData((0,f.map)(s,(function(e){return e[1]})),null,l),a.initData((0,f.map)(s,(function(e){return e[2]}))),a.hasItemOption=!0,{from:r,to:o,line:a}}const ET=NT;function VT(e){e.registerComponentModel(CT),e.registerComponentView(ET),e.registerPreprocessor((function(e){QC(e.series,"markLine")&&(e.markLine=e.markLine||{})}))}var zT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},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}(iT);const BT=zT;var GT=(0,N.$r)(),FT=function(e,t,n,i){var r=i[0],o=i[1];if(r&&o){var a=hT(e,r),s=hT(e,o),l=a.coord,u=s.coord;l[0]=(0,f.retrieve)(l[0],-1/0),l[1]=(0,f.retrieve)(l[1],-1/0),u[0]=(0,f.retrieve)(u[0],1/0),u[1]=(0,f.retrieve)(u[1],1/0);var c=(0,f.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 HT(e){return!isNaN(e)&&!isFinite(e)}function WT(e,t,n,i){var r=1-e;return HT(t[r])&&HT(n[r])}function UT(e,t){var n=t.coord[0],i=t.coord[1],r={coord:n,x:t.x0,y:t.y0},o={coord:i,x:t.x1,y:t.y1};return io(e,"cartesian2d")?!(!n||!i||!WT(1,n,i,e)&&!WT(0,n,i,e))||gT(e,r,o):fT(e,r)||fT(e,o)}function YT(e,t,n,i,r){var o,a=i.coordinateSystem,s=e.getItemModel(t),l=Ge.lo(s.get(n[0]),r.getWidth()),u=Ge.lo(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition){var c=e.getValues(["x0","y0"],t),h=e.getValues(["x1","y1"],t),d=a.clampData(c),p=a.clampData(h),f=[];"x0"===n[0]?f[0]=d[0]>p[0]?h[0]:c[0]:f[0]=d[0]>p[0]?c[0]:h[0],"y0"===n[1]?f[1]=d[1]>p[1]?h[1]:c[1]:f[1]=d[1]>p[1]?c[1]:h[1],o=i.getMarkerPosition(f,n,!0)}else{var g=e.get(n[0],t),y=e.get(n[1],t),m=[g,y];a.clampData&&a.clampData(m,m),o=a.dataToPoint(m,!0)}if(io(a,"cartesian2d")){var v=a.getAxis("x"),x=a.getAxis("y");g=e.get(n[0],t),y=e.get(n[1],t);HT(g)?o[0]=v.toGlobalCoord(v.getExtent()["x0"===n[0]?0:1]):HT(y)&&(o[1]=x.toGlobalCoord(x.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var XT=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],ZT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=iT.getMarkerModelFromSeries(e,"markArea");if(t){var i=t.getData();i.each((function(t){var r=(0,f.map)(XT,(function(r){return YT(i,t,r,e,n)}));i.setItemLayout(t,r);var o=i.getItemGraphicEl(t);o.setShape("points",r)}))}}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new zn.A});this.group.add(l.group),this.markKeep(l);var u=jT(r,e,t);t.setData(u),u.each((function(t){var n=(0,f.map)(XT,(function(n){return YT(u,t,n,e,i)})),o=r.getAxis("x").scale,s=r.getAxis("y").scale,l=o.getExtent(),c=s.getExtent(),h=[o.parse(u.get("x0",t)),o.parse(u.get("x1",t))],d=[s.parse(u.get("y0",t)),s.parse(u.get("y1",t))];Ge.Y6(h),Ge.Y6(d);var p=!(l[0]>h[1]||l[1]<h[0]||c[0]>d[1]||c[1]<d[0]),g=!p;u.setItemLayout(t,{points:n,allClipped:g});var y=u.getItemModel(t).getModel("itemStyle").getItemStyle(),m=(0,qI.rI)(a,"color");y.fill||(y.fill=m,(0,f.isString)(y.fill)&&(y.fill=ue.modifyAlpha(y.fill,.4))),y.stroke||(y.stroke=m),u.setItemVisual(t,"style",y)})),u.diff(GT(l).data).add((function(e){var t=u.getItemLayout(e);if(!t.allClipped){var n=new Yn.A({shape:{points:t.points}});u.setItemGraphicEl(e,n),l.group.add(n)}})).update((function(e,n){var i=GT(l).data.getItemGraphicEl(n),r=u.getItemLayout(e);r.allClipped?i&&l.group.remove(i):(i?Vn.oi(i,{shape:{points:r.points}},t,e):i=new Yn.A({shape:{points:r.points}}),u.setItemGraphicEl(e,i),l.group.add(i))})).remove((function(e){var t=GT(l).data.getItemGraphicEl(e);l.group.remove(t)})).execute(),u.eachItemGraphicEl((function(e,n){var i=u.getItemModel(n),r=u.getItemVisual(n,"style");e.useStyle(u.getItemVisual(n,"style")),(0,pn.qM)(e,(0,pn.lx)(i),{labelFetcher:t,labelDataIndex:n,defaultText:u.getName(n)||"",inheritColor:(0,f.isString)(r.fill)?ue.modifyAlpha(r.fill,1):"#000"}),(0,gn.Mx)(e,i),(0,gn.Lm)(e,null,null,i.get(["emphasis","disabled"])),(0,R.z)(e).dataModel=t})),GT(l).data=u,l.group.silent=t.get("silent")||e.get("silent")},t.type="markArea",t}(_T);function jT(e,t,n){var i,r,o=["x0","y0","x1","y1"];if(e){var a=(0,f.map)(e&&e.dimensions,(function(e){var n=t.getData(),i=n.getDimensionInfo(n.mapDimension(e))||{};return(0,f.extend)((0,f.extend)({},i),{name:e,ordinalMeta:null})}));r=(0,f.map)(o,(function(e,t){return{name:e,type:a[t%2].type}})),i=new ae(r,n)}else r=[{name:"value",type:"float"}],i=new ae(r,n);var s=(0,f.map)(n.get("data"),(0,f.curry)(FT,t,e,n));e&&(s=(0,f.filter)(s,(0,f.curry)(UT,e)));var l=e?function(e,t,n,i){var o=e.coord[Math.floor(i/2)][i%2];return(0,aT.Pn)(o,r[i])}:function(e,t,n,i){return(0,aT.Pn)(e.value,r[i])};return i.initData(s,null,l),i.hasItemOption=!0,i}const qT=ZT;function $T(e){e.registerComponentModel(BT),e.registerComponentView(qT),e.registerPreprocessor((function(e){QC(e.series,"markArea")&&(e.markArea=e.markArea||{})}))}var KT=function(e,t){return"all"===t?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0},JT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return(0,Oe.C6)(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;!0===t&&(t=e.selector=["all","inverse"]),f.isArray(t)&&f.each(t,(function(e,i){f.isString(e)&&(e={type:e}),t[i]=f.merge(e,KT(n,e.type))}))},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var i=e[n].get("name");if(this.isSelected(i)){this.select(i),t=!0;break}}!t&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries((function(i){var r,o=i.name;if(n.push(o),i.legendVisualProvider){var a=i.legendVisualProvider,s=a.getAllNames();e.isSeriesFiltered(i)||(n=n.concat(s)),s.length?t=t.concat(s):r=!0}else r=!0;r&&(0,N.O0)(i)&&t.push(i.name)})),this._availableNames=n;var i=this.get("data")||t,r=f.createHashMap(),o=f.map(i,(function(e){return(f.isString(e)||f.isNumber(e))&&(e={name:e}),r.get(e.name)?null:(r.set(e.name,!0),new _.A(e,this,this.ecModel))}),this);this._data=f.filter(o,(function(e){return!!e}))},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected,n=this.get("selectedMode");if("single"===n){var i=this._data;f.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;f.each(e,(function(e){t[e.get("name",!0)]=!0}))},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;f.each(e,(function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]}))},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&f.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}(d.A);const QT=JT;var eD=f.curry,tD=f.each,nD=zn.A,iD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return(0,Oe.C6)(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new nD),this.group.add(this._selectorGroup=new nD),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var r=e.get("align"),o=e.get("orient");r&&"auto"!==r||(r="right"===e.get("left")&&"vertical"===o?"right":"left");var a=e.get("selector",!0),s=e.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(r,e,t,n,a,o,s);var l=e.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=e.get("padding"),h=dn.dV(l,u,c),d=this.layoutInner(e,r,h,i,a,s),p=dn.dV(f.defaults({width:d.width,height:d.height},l),u,c);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=rA(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,i,r,o,a){var s=this.getContentGroup(),l=f.createHashMap(),u=t.get("selectedMode"),c=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&c.push(e.id)})),tD(t.getData(),(function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new nD;return h.newline=!0,void s.add(h)}var d=n.getSeriesByName(a)[0];if(!l.get(a)){if(d){var p=d.getData(),g=p.getVisual("legendLineStyle")||{},y=p.getVisual("legendIcon"),m=p.getVisual("style"),v=this._createItem(d,a,o,r,t,e,g,m,y,u,i);v.on("click",eD(aD,a,null,i,c)).on("mouseover",eD(lD,d.name,null,i,c)).on("mouseout",eD(uD,d.name,null,i,c)),n.ssr&&v.eachChild((function(e){var t=(0,R.z)(e);t.seriesIndex=d.seriesIndex,t.dataIndex=o,t.ssrType="legend"})),l.set(a,!0)}else n.eachRawSeries((function(s){if(!l.get(a)&&s.legendVisualProvider){var h=s.legendVisualProvider;if(!h.containName(a))return;var d=h.indexOfName(a),p=h.getItemVisual(d,"style"),g=h.getItemVisual(d,"legendIcon"),y=(0,ue.parse)(p.fill);y&&0===y[3]&&(y[3]=.2,p=f.extend(f.extend({},p),{fill:(0,ue.stringify)(y,"rgba")}));var m=this._createItem(s,a,o,r,t,e,{},p,g,u,i);m.on("click",eD(aD,null,a,i,c)).on("mouseover",eD(lD,null,a,i,c)).on("mouseout",eD(uD,null,a,i,c)),n.ssr&&m.eachChild((function(e){var t=(0,R.z)(e);t.seriesIndex=s.seriesIndex,t.dataIndex=o,t.ssrType="legend"})),l.set(a,!0)}}),this);0}}),this),r&&this._createSelector(r,t,i,o,a)},t.prototype._createSelector=function(e,t,n,i,r){var o=this.getSelectorGroup();tD(e,(function(e){var i=e.type,r=new Gn.Ay({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect",legendId:t.id})}});o.add(r);var a=t.getModel("selectorLabel"),s=t.getModel(["emphasis","selectorLabel"]);(0,pn.qM)(r,{normal:a,emphasis:s},{defaultText:e.title}),(0,gn.iJ)(r)}))},t.prototype._createItem=function(e,t,n,i,r,o,a,s,l,u,c){var h=e.visualDrawType,d=r.get("itemWidth"),p=r.get("itemHeight"),g=r.isSelected(t),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),v=i.get("icon");l=v||l||"roundRect";var x=rD(l,i,a,s,h,g,c),_=new nD,b=i.getModel("textStyle");if(!f.isFunction(e.getLegendIcon)||v&&"inherit"!==v){var S="inherit"===v&&e.getData().getVisual("symbol")?"inherit"===y?e.getData().getVisual("symbolRotate"):y:0;_.add(oD({itemWidth:d,itemHeight:p,icon:l,iconRotate:S,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:m}))}else _.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:l,iconRotate:y,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:m}));var w="left"===o?d+5:-5,M=o,A=r.get("formatter"),I=t;f.isString(A)&&A?I=A.replace("{name}",null!=t?t:""):f.isFunction(A)&&(I=A(t));var C=g?b.getTextColor():i.get("inactiveColor");_.add(new Gn.Ay({style:(0,pn.VB)(b,{text:I,x:w,y:p/2,fill:C,align:M,verticalAlign:"middle"},{inheritColor:C})}));var T=new Zn.A({shape:_.getBoundingRect(),style:{fill:"transparent"}}),D=i.getModel("tooltip");return D.get("show")&&En.setTooltipConfig({el:T,componentModel:r,itemName:t,itemTooltipOption:D.option}),_.add(T),_.eachChild((function(e){e.silent=!0})),T.silent=!u,this.getContentGroup().add(_),(0,gn.iJ)(_),_.__legendDataIndex=n,_},t.prototype.layoutInner=function(e,t,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();dn.aP(e.get("orient"),a,e.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){dn.aP("horizontal",s,e.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",y=0===p?"y":"x";"end"===o?h[p]+=l[f]+d:u[p]+=c[f]+d,h[1-p]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var m={x:0,y:0};return m[f]=l[f]+d+c[f],m[g]=Math.max(l[g],c[g]),m[y]=Math.min(0,c[y]+h[1-p]),m}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(c.A);function rD(e,t,n,i,r,o,a){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),tD(e,(function(n,i){"inherit"===e[i]&&(e[i]=t[i])}))}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,mu.w)(h,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]),"inherit"===u.stroke&&(u.stroke=i[c]),"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity),s(u,i);var d=t.getModel("lineStyle"),p=d.getLineStyle();if(s(p,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===p.stroke&&(p.stroke=i.fill),!o){var f=t.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===f?i.lineWidth>0&&g?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}}function oD(e){var t=e.icon||"roundRect",n=(0,fn.v5)(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function aD(e,t,n,i){uD(e,t,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),lD(e,t,n,i)}function sD(e){var t,n=e.getZr().storage.getDisplayList(),i=0,r=n.length;while(i<r&&!(t=n[i].states.emphasis))i++;return t&&t.hoverLayer}function lD(e,t,n,i){sD(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:i})}function uD(e,t,n,i){sD(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:i})}const cD=iD;function hD(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries((function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0}))}function dD(e,t,n){var i="allSelect"===e||"inverseSelect"===e,r={},o=[];n.eachComponent({mainType:"legend",query:t},(function(n){i?n[e]():n[e](t.name),pD(n,r),o.push(n.componentIndex)}));var a={};return n.eachComponent("legend",(function(e){(0,f.each)(r,(function(t,n){e[t?"select":"unSelect"](n)})),pD(e,a)})),i?{selected:a,legendIndex:o}:{name:t.name,selected:a}}function pD(e,t){var n=t||{};return(0,f.each)(e.getData(),(function(t){var i=t.get("name");if("\n"!==i&&""!==i){var r=e.isSelected(i);(0,f.hasOwn)(n,i)?n[i]=n[i]&&r:n[i]=r}})),n}function fD(e){e.registerAction("legendToggleSelect","legendselectchanged",(0,f.curry)(dD,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",(0,f.curry)(dD,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",(0,f.curry)(dD,"inverseSelect")),e.registerAction("legendSelect","legendselected",(0,f.curry)(dD,"select")),e.registerAction("legendUnSelect","legendunselected",(0,f.curry)(dD,"unSelect"))}function gD(e){e.registerComponentModel(QT),e.registerComponentView(cD),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,hD),e.registerSubTypeDefaulter("legend",(function(){return"plain"})),fD(e)}var yD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,i){var r=(0,dn.vs)(t);e.prototype.init.call(this,t,n,i),mD(this,t,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),mD(this,this.option,t)},t.type="legend.scroll",t.defaultOption=(0,ko.G_)(QT.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}(QT);function mD(e,t,n){var i=e.getOrient(),r=[1,1];r[i.index]=0,(0,dn.YA)(t,n,{type:"box",ignoreSize:!!r})}const vD=yD;var xD=zn.A,_D=["width","height"],bD=["x","y"],SD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return(0,Oe.C6)(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new xD),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new xD)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,i,r,o,a,s){var l=this;e.prototype.renderInner.call(this,t,n,i,r,o,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),h=f.isArray(c)?c:[c,c];p("pagePrev",0);var d=n.getModel("pageTextStyle");function p(e,t){var i=e+"DataIndex",o=En.createIcon(n.get("pageIcons",!0)[n.getOrient().name][t],{onclick:f.bind(l._pageGo,l,i,n,r)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});o.name=e,u.add(o)}u.add(new Gn.Ay({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1)},t.prototype.layoutInner=function(e,t,n,i,r,o){var a=this.getSelectorGroup(),s=e.getOrient().index,l=_D[s],u=bD[s],c=_D[1-s],h=bD[1-s];r&&dn.aP("horizontal",a,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=a.getBoundingRect(),g=[-p.x,-p.y],y=f.clone(n);r&&(y[l]=n[l]-p[l]-d);var m=this._layoutContentAndController(e,i,y,s,l,c,h,u);if(r){if("end"===o)g[s]+=m[l]+d;else{var v=p[l]+d;g[s]-=v,m[u]-=v}m[l]+=p[l]+d,g[1-s]+=m[h]+m[c]/2-p[c]/2,m[c]=Math.max(m[c],p[c]),m[h]=Math.min(m[h],p[h]+g[1-s]),a.x=g[0],a.y=g[1],a.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,t,n,i,r,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;dn.aP(e.get("orient"),l,e.get("itemGap"),i?n.width:null,i?null:n.height),dn.aP("horizontal",c,e.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),d=c.getBoundingRect(),p=this._showController=h[r]>n[r],g=[-h.x,-h.y];t||(g[i]=l[s]);var y=[0,0],m=[-d.x,-d.y],v=f.retrieve2(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var x=e.get("pageButtonPosition",!0);"end"===x?m[i]+=n[r]-d[r]:y[i]+=d[r]+v}m[1-i]+=h[o]/2-d[o]/2,l.setPosition(g),u.setPosition(y),c.setPosition(m);var _={x:0,y:0};if(_[r]=p?n[r]:h[r],_[o]=Math.max(h[o],d[o]),_[a]=Math.min(0,d[a]+m[1-i]),u.__rectSize=n[r],p){var b={x:0,y:0};b[r]=Math.max(n[r]-d[r]-v,0),b[o]=_[o],u.setClipPath(new Zn.A({shape:b})),u.__rectSize=b[r]}else c.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var S=this._getPageInfo(e);return null!=S.pageIndex&&Vn.oi(l,{x:S.contentPosition[0],y:S.contentPosition[1]},p?e:null),this._updatePageInfoView(e,S),_},t.prototype._pageGo=function(e,t,n){var i=this._getPageInfo(t)[e];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;f.each(["pagePrev","pageNext"],(function(i){var r=i+"DataIndex",o=null!=t[r],a=n.childOfName(i);a&&(a.setStyle("fill",o?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var i=n.childOfName("pageText"),r=e.get("pageFormatter"),o=t.pageIndex,a=null!=o?o+1:0,s=t.pageCount;i&&r&&i.setStyle("text",f.isString(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=e.getOrient().index,o=_D[r],a=bD[r],s=this._findTargetItemIndex(t),l=n.children(),u=l[s],c=l.length,h=c?1:0,d={contentPosition:[n.x,n.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 f=s+1,g=p,y=p,m=null;f<=c;++f)m=v(l[f]),(!m&&y.e>g.s+i||m&&!x(m,g.s))&&(g=y.i>g.i?y:m,g&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount)),y=m;for(f=s-1,g=p,y=p,m=null;f>=-1;--f)m=v(l[f]),m&&x(y,m.s)||!(g.i<y.i)||(y=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=m;return d;function v(e){if(e){var t=e.getBoundingRect(),n=t[a]+e[a];return{s:n,e:n+t[o],i:e.__legendDataIndex}}}function x(e,t){return e.e>=t&&e.s<=t+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n,i=this.getContentGroup();return i.eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===e&&(t=r)})),null!=t?t:n},t.type="legend.scroll",t}(cD);const wD=SD;function MD(e){e.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))}function AD(e){x(gD),e.registerComponentModel(vD),e.registerComponentView(wD),MD(e)}function ID(e){x(gD),x(AD)}var CD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.type="dataZoom.inside",t.defaultOption=(0,ko.G_)(PM.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(PM);const TD=CD;var DD=(0,N.$r)();function LD(e,t,n){DD(e).coordSysRecordMap.each((function(e){var i=e.dataZoomInfoMap.get(t.uid);i&&(i.getRange=n)}))}function kD(e,t){for(var n=DD(e).coordSysRecordMap,i=n.keys(),r=0;r<i.length;r++){var o=i[r],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||OD(n,a))}}}function OD(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function PD(e,t){var n={model:t,containsPoint:(0,f.curry)(RD,t),dispatchAction:(0,f.curry)(ND,e),dataZoomInfoMap:null,controller:null},i=n.controller=new Ul(e.getZr());return(0,f.each)(["pan","zoom","scrollMove"],(function(e){i.on(e,(function(t){var i=[];n.dataZoomInfoMap.each((function(r){if(t.isAvailableBehavior(r.model.option)){var o=(r.getRange||{})[e],a=o&&o(r.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!r.model.get("disabled",!0)&&a&&i.push({dataZoomId:r.model.id,start:a[0],end:a[1]})}})),i.length&&n.dispatchAction(i)}))})),n}function ND(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function RD(e,t,n,i){return e.coordinateSystem.containPoint([n,i])}function ED(e){var t,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return e.each((function(e){var o=e.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");i[n+a]>i[n+t]&&(t=a),r=r&&o.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}function VD(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var n=DD(t),i=n.coordSysRecordMap||(n.coordSysRecordMap=(0,f.createHashMap)());i.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){var n=DM(e);(0,f.each)(n.infoList,(function(n){var r=n.model.uid,o=i.get(r)||i.set(r,PD(t,n.model)),a=o.dataZoomInfoMap||(o.dataZoomInfoMap=(0,f.createHashMap)());a.set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})}))})),i.each((function(e){var t,n=e.controller,r=e.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(t=r.get(o))}if(t){var a=ED(r);n.enable(a.controlType,a.opt),n.setPointerChecker(e.containsPoint),ce.N(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else OD(i,e)}))}))}var zD=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return(0,Oe.C6)(t,e),t.prototype.render=function(t,n,i){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),LD(i,t,{pan:(0,f.bind)(BD.pan,this),zoom:(0,f.bind)(BD.zoom,this),scrollMove:(0,f.bind)(BD.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){kD(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(VM),BD={zoom:function(e,t,n,i){var r=this.range,o=r.slice(),a=e.axisModels[0];if(a){var s=FD[t](null,[i.originX,i.originY],a,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return ng(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:GD((function(e,t,n,i,r,o){var a=FD[i]([o.oldX,o.oldY],[o.newX,o.newY],t,r,n);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength})),scrollMove:GD((function(e,t,n,i,r,o){var a=FD[i]([0,0],[o.scrollDelta,o.scrollDelta],t,r,n);return a.signal*(e[1]-e[0])*o.scrollDelta}))};function GD(e){return function(t,n,i,r){var o=this.range,a=o.slice(),s=t.axisModels[0];if(s){var l=e(a,s,t,n,i,r);return ng(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}var FD={grid:function(e,t,n,i,r){var o=n.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,n,i,r){var o=n.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"===n.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,n,i,r){var o=n.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}};const HD=zD;function WD(e){qM(e),e.registerComponentModel(TD),e.registerComponentView(HD),VD(e)}var UD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=(0,ko.G_)(PM.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:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(PM);const YD=UD;var XD=Zn.A,ZD=7,jD=1,qD=30,$D=7,KD="horizontal",JD="vertical",QD=5,eL=["line","bar","candlestick","scatter"],tL={easing:"cubicOut",duration:100,delay:0},nL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return(0,Oe.C6)(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=(0,f.bind)(this._onBrush,this),this._onBrushEnd=(0,f.bind)(this._onBrushEnd,this)},t.prototype.render=function(t,n,i,r){if(e.prototype.render.apply(this,arguments),ce.N(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){ce.IU(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 zn.A;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get("brushSelect"),i=n?$D:0,r=this._findCoordRect(),o={width:t.getWidth(),height:t.getHeight()},a=this._orient===KD?{right:o.width-r.x-r.width,top:o.height-qD-ZD-i,width:r.width,height:qD}:{right:ZD,top:r.y,width:qD,height:r.height},s=dn.vs(e.option);(0,f.each)(["right","top","width","height"],(function(e){"ph"===s[e]&&(s[e]=a[e])}));var l=dn.dV(s,o);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===JD&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==KD||r?n===KD&&r?{scaleY:a?1:-1,scaleX:-1}:n!==JD||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,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new XD({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var r=new XD({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:(0,f.bind)(this._onClickPanel,this)}),o=this.api.getZr();i?(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)),n.add(r)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],i=e.series,r=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),a=o&&r.getDimensionInfo(o)?i.getShadowDim():e.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||a!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var u=r.getDataExtent(a),c=.3*(u[1]-u[0]);u=[u[0]-c,u[1]+c];var h,d=[0,t[1]],p=[0,t[0]],f=[[t[0],0],[0,0]],g=[],y=p[1]/(r.count()-1),m=0,v=Math.round(r.count()/t[0]);r.each([a],(function(e,t){if(v>0&&t%v)m+=y;else{var n=null==e||isNaN(e)||""===e,i=n?0:(0,Ge.Cb)(e,u,d,!0);n&&!h&&t?(f.push([f[f.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&h&&(f.push([m,0]),g.push([m,0])),f.push([m,i]),g.push([m,i]),m+=y,h=n}})),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=r,this._shadowDim=a,this._shadowSize=[t[0],t[1]];for(var x=this.dataZoomModel,_=0;_<3;_++){var b=S(1===_);this._displayables.sliderGroup.add(b),this._displayables.dataShadowSegs.push(b)}}}function S(e){var t=x.getModel(e?"selectedDataBackground":"dataBackground"),n=new zn.A,i=new Yn.A({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new Xn.A({shape:{points:l},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,i=this.ecModel;return e.eachTargetAxis((function(r,o){var a=e.getAxisProxy(r,o).getTargetSeriesModels();(0,f.each)(a,(function(e){if(!n&&!(!0!==t&&(0,f.indexOf)(eL,e.get("type"))<0)){var a,s=i.getComponent(CM(r),o).axis,l=iL(r),u=e.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=e.getData().mapDimension(l),n={thisAxis:s,series:e,thisDim:r,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],i=t.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=t.filler=new XD({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(c),r.add(new XD({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:jD,fill:"rgba(0,0,0,0)"}})),(0,f.each)([0,1],(function(t){var o=a.get("handleIcon");!fn.$V[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=(0,fn.v5)(o,-1,0,2,2,null,!0);s.attr({cursor:rL(this._orient),draggable:!0,drift:(0,f.bind)(this._onDragMove,this,t),ondragend:(0,f.bind)(this._onDragEnd,this),onmouseover:(0,f.bind)(this._showDataInfo,this,!0),onmouseout:(0,f.bind)(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=(0,Ge.lo)(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),(0,gn.iJ)(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),r.add(n[t]=s);var h=a.getModel("textStyle"),d=a.get("handleLabel")||{},p=d.show||!1;e.add(i[t]=new Gn.Ay({silent:!0,invisible:!p,style:(0,pn.VB)(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))}),this);var h=c;if(u){var d=(0,Ge.lo)(a.get("moveHandleSize"),o[1]),p=t.moveHandle=new Zn.A({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:d}}),g=.8*d,y=t.moveHandleIcon=(0,fn.v5)(a.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=o[1]+d/2-.5,p.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(o[1]/2,Math.max(d,10));h=t.moveZone=new Zn.A({invisible:!0,shape:{y:o[1]-m,height:d+m}}),h.on("mouseover",(function(){s.enterEmphasis(p)})).on("mouseout",(function(){s.leaveEmphasis(p)})),r.add(p),r.add(y),r.add(h)}h.attr({draggable:!0,cursor:rL(this._orient),drift:(0,f.bind)(this._onDragMove,this,"all"),ondragstart:(0,f.bind)(this._showDataInfo,this,!0),ondragend:(0,f.bind)(this._onDragEnd,this),onmouseover:(0,f.bind)(this._showDataInfo,this,!0),onmouseout:(0,f.bind)(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[(0,Ge.Cb)(e[0],[0,100],t,!0),(0,Ge.Cb)(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];ng(t,i,r,n.get("zoomLock")?"all":e,null!=o.minSpan?(0,Ge.Cb)(o.minSpan,a,r,!0):null,null!=o.maxSpan?(0,Ge.Cb)(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=(0,Ge.Y6)([(0,Ge.Cb)(i[0],r,a,!0),(0,Ge.Cb)(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,i=(0,Ge.Y6)(n.slice()),r=this._size;(0,f.each)([0,1],(function(e){var i=t.handles[e],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[e]+(e?-1:1),y:r[1]/2-o/2})}),this),t.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[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,s=[0,i[0],i[1],r[0]],l=0;l<a.length;l++){var u=a[l],c=u.getClipPath();c||(c=new Zn.A,u.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,i=n.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,Ge.Y6)(this._handleEnds.slice());function h(e){var t=En.getTransform(n.handles[e].parent,this.group),a=En.transformDirection(0===e?"right":"left",t),s=this._handleWidth/2+QD,l=En.applyTransform([c[e]+(0===e?-s:s),this._size[1]/2],t);i[e].setStyle({x:l[0],y:l[1],verticalAlign:r===KD?"middle":a,align:r===KD?a:"center",text:o[e]})}h.call(this,0),h.call(this,1)},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,i=n.get("labelFormatter"),r=n.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,f.isFunction)(i)?i(e,o):(0,f.isString)(i)?i.replace("{value}",o):o},t.prototype._showDataInfo=function(e){var t=this.dataZoomModel.get("handleLabel")||{},n=t.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),r=i.get("show")||!1,o=e||this._dragging?r:n,a=this._displayables,s=a.handleLabels;s[0].attr("invisible",!o),s[1].attr("invisible",!o),a.moveHandle&&this.api[o?"enterEmphasis":"leaveEmphasis"](a.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,i){this._dragging=!0,Nl.ds(i.event);var r=this._displayables.sliderGroup.getLocalTransform(),o=En.applyTransform([t,n],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);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new Oi.A(t,n),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 n=t.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),o=[0,100];this._range=(0,Ge.Y6)([(0,Ge.Cb)(n.x,r,o,!0),(0,Ge.Cb)(n.x+n.width,r,o,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Nl.ds(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new XD({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.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?tL:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=DM(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),r=this.api.getHeight();e={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return e},t.type="dataZoom.slider",t}(VM);function iL(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function rL(e){return"vertical"===e?"ns-resize":"ew-resize"}const oL=nL;function aL(e){e.registerComponentModel(YD),e.registerComponentView(oL),qM(e)}function sL(e){x(WD),x(aL)}var lL={get:function(e,t,n){var i=f.clone((uL[e]||{})[t]);return n&&f.isArray(i)?i[i.length-1]:i}},uL={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]}};const cL=lL;var hL=sd.mapVisual,dL=sd.eachVisual,pL=f.isArray,fL=f.each,gL=Ge.Y6,yL=Ge.Cb,mL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return(0,Oe.C6)(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&QI(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=f.bind(e,this),this.controllerVisuals=JI(this.option.controller,t,e),this.targetVisuals=JI(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,n){t.push(n)})):t=N.qB(e),t},t.prototype.eachTargetSeries=function(e,t){f.each(this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(t,i)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,n){var i,r=this.option,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],f.isArray(e)&&(e=e.slice(),i=!0);var l=t?e:i?[u(e[0]),u(e[1])]:u(e);return f.isString(s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):f.isFunction(s)?i?s(e[0],e[1]):s(e):i?e[0]===a[0]?n[0]+" "+l[1]:e[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(e){return e===a[0]?"min":e===a[1]?"max":(+e).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,t=gL([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 n=e.dimensions,i=n.length-1;i>=0;i--){var r=n[i],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,n={inRange:t.inRange,outOfRange:t.outOfRange},i=t.target||(t.target={}),r=t.controller||(t.controller={});f.merge(i,n),f.merge(r,n);var o=this.isCategory();function a(n){pL(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}function s(e,t,n){var i=e[t],r=e[n];i&&!r&&(r=e[n]={},fL(i,(function(e,t){if(sd.isValidType(t)){var n=cL.get(t,"inactive",o);null!=n&&(r[t]=n,"color"!==t||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}function l(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol(),a=r||"roundRect";fL(this.stateList,(function(r){var s=this.itemSize,l=e[r];l||(l=e[r]={color:o?i:[i]}),null==l.symbol&&(l.symbol=t&&f.clone(t)||(o?a:[a])),null==l.symbolSize&&(l.symbolSize=n&&f.clone(n)||(o?s[0]:[s[0],s[0]])),l.symbol=hL(l.symbol,(function(e){return"none"===e?a:e}));var u=l.symbolSize;if(null!=u){var c=-1/0;dL(u,(function(e){e>c&&(c=e)})),l.symbolSize=hL(u,(function(e){return yL(e,[0,c],[0,s[0]],!0)}))}}),this)}a.call(this,i),a.call(this,r),s.call(this,i,"inRange","outOfRange"),l.call(this,r)},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}(d.A);const vL=mL;var xL=[20,140],_L=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.optionUpdated=function(t,n){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]=xL[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=xL[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):f.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),f.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=Ge.Y6((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,n=this.getExtent();return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),(function(t,n){e[0]<=t&&t<=e[1]&&i.push(n)}),this),t.push({seriesId:n.id,dataIndex:i})}),this),t},t.prototype.getVisualMeta=function(e){var t=bL(this,"outOfRange",this.getExtent()),n=bL(this,"inRange",this.option.range.slice()),i=[];function r(t,n){i.push({value:t,color:e(t,n)})}for(var o=0,a=0,s=n.length,l=t.length;a<l&&(!n.length||t[a]<=n[0]);a++)t[a]<n[o]&&r(t[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&i.length&&r(n[o],"outOfRange"),r(n[o],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<t[a])&&(u&&(i.length&&r(i[i.length-1].value,"outOfRange"),u=0),r(t[a],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=(0,ko.G_)(vL.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}(vL);function bL(e,t,n){if(n[0]===n[1])return n.slice();for(var i=200,r=(n[1]-n[0])/i,o=n[0],a=[],s=0;s<=i&&o<n[1];s++)a.push(o),o+=r;return a.push(n[1]),a}const SL=_L;var wL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return(0,Oe.C6)(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,i){this.visualMapModel=e,!1!==e.get("show")?this.doRender(e,t,n,i):this.group.removeAll()},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=Je.QX(t.get("padding")||0),i=e.getBoundingRect();e.add(new Zn.A({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,t,n){n=n||{};var i=n.forceState,r=this.visualMapModel,o={};if("color"===t){var a=r.get("contentColor");o.color=a}function s(e){return o[e]}function l(e,t){o[e]=t}var u=r.controllerVisuals[i||r.getValueState(e)],c=sd.prepareVisualTypes(u);return f.each(c,(function(i){var r=u[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",r=u.__alphaForOpacity),sd.dependsOn(i,t)&&r&&r.applyVisual(e,s,l)})),o[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api;dn.m$(e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,t,n,i){},t.type="visualMap",t}(c.A);const ML=wL;var AL=[["left","right","width"],["top","bottom","height"]];function IL(e,t,n){var i=e.option,r=i.align;if(null!=r&&"auto"!==r)return r;for(var o={width:t.getWidth(),height:t.getHeight()},a="horizontal"===i.orient?1:0,s=AL[a],l=[0,null,10],u={},c=0;c<3;c++)u[AL[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:i[s[c]];var h=[["x","width",3],["y","height",0]][a],d=(0,dn.dV)(u,o,i.padding);return s[(d.margin[h[2]]||0)+d[h[0]]+.5*d[h[1]]<.5*o[h[1]]?0:1]}function CL(e,t){return f.each(e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}var TL=Ge.Cb,DL=f.each,LL=Math.min,kL=Math.max,OL=12,PL=6,NL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return(0,Oe.C6)(t,e),t.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=f.bind(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=f.bind(this._hideIndicator,this)},t.prototype.doRender=function(e,t,n,i){i&&"selectDataRange"===i.type&&i.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 n=e.get("text");this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var i=t[1-n];i=null!=i?i+"":"";var r=this.visualMapModel,o=r.get("textGap"),a=r.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new Gn.Ay({style:(0,pn.VB)(h,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:i})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,i=t.itemSize,r=this._orient,o=this._useHandle,a=IL(t,this.api,i),s=n.mainGroup=this._createBarGroup(a),l=new zn.A;s.add(l),l.add(n.outOfRange=RL()),l.add(n.inRange=RL(null,o?zL(this._orient):null,f.bind(this._dragHandle,this,"all",!1),f.bind(this._dragHandle,this,"all",!0))),l.setClipPath(new Zn.A({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var u=t.textStyleModel.getTextRect("国"),c=kL(u.width,u.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,i,c,r),this._createHandle(t,s,1,i,c,r)),this._createIndicator(t,s,i,c,r),e.add(s)},t.prototype._createHandle=function(e,t,n,i,r,o){var a=f.bind(this._dragHandle,this,n,!1),s=f.bind(this._dragHandle,this,n,!0),l=(0,Yt.lo)(e.get("handleSize"),i[0]),u=(0,fn.v5)(e.get("handleIcon"),-l/2,-l/2,l,l,null,!0),c=zL(this._orient);u.attr({cursor:c,draggable:!0,drift:a,ondragend:s,onmousemove:function(e){Nl.ds(e.event)}}),u.x=i[0]/2,u.useStyle(e.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),(0,gn.ix)(u,!0),t.add(u);var h=this.visualMapModel.textStyleModel,d=new Gn.Ay({cursor:c,draggable:!0,drift:a,onmousemove:function(e){Nl.ds(e.event)},ondragend:s,style:(0,pn.VB)(h,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[l,0],g=this._shapes;g.handleThumbs[n]=u,g.handleLabelPoints[n]=p,g.handleLabels[n]=d},t.prototype._createIndicator=function(e,t,n,i,r){var o=(0,Yt.lo)(e.get("indicatorSize"),n[0]),a=(0,fn.v5)(e.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel("indicatorStyle").getItemStyle();if(a instanceof Bn.Ay){var l=a.style;a.useStyle(f.extend({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else a.useStyle(s);t.add(a);var u=this.visualMapModel.textStyleModel,c=new Gn.Ay({silent:!0,invisible:!0,style:(0,pn.VB)(u,{x:0,y:0,text:""})});this.group.add(c);var h=[("horizontal"===r?i/2:PL)+n[0]/2,0],d=this._shapes;d.indicator=a,d.indicatorLabel=c,d.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,i){if(this._useHandle){if(this._dragging=!t,!t){var r=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(e,r[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():VL(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[TL(t[0],n,i,!0),TL(t[1],n,i,!0)]},t.prototype._updateInterval=function(e,t){t=t||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];ng(t,i,r,e,0);var o=n.getExtent();this._dataInterval=[TL(i[0],r,o,!0),TL(i[1],r,o,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),i=this._shapes,r=[0,t.itemSize[1]],o=e?r:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},t.prototype._createBarVisual=function(e,t,n,i){var r={forceState:i,convertOpacityToAlpha:!0},o=this._makeColorGradient(e,r),a=[this.getControllerVisual(e[0],"symbolSize",r),this.getControllerVisual(e[1],"symbolSize",r)],s=this._createBarPoints(n,a);return{barColor:new Qn.A(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=100,i=[],r=(e[1]-e[0])/n;i.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var o=1;o<n;o++){var a=e[0]+r*o;if(a>e[1])break;i.push({color:this.getControllerVisual(a,"color",t),offset:o/n})}return i.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),i},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new zn.A("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{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 n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent(),l=this._applyTransform("left",n.mainGroup);DL([0,1],(function(u){var c=r[u];c.setStyle("fill",t.handlesColor[u]),c.y=e[u];var h=TL(e[u],[0,a[1]],s,!0),d=this.getControllerVisual(h,"symbolSize");c.scaleX=c.scaleY=d/a[0],c.x=a[0]-d/2;var p=En.applyTransform(n.handleLabelPoints[u],En.getTransform(c,this.group));if("horizontal"===this._orient){var f="left"===l||"top"===l?(a[0]-d)/2:(a[0]-d)/-2;p[1]+=f}o[u].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,i){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={convertOpacityToAlpha:!0},h=this.getControllerVisual(e,"color",c),d=this.getControllerVisual(e,"symbolSize"),p=TL(e,o,s,!0),f=a[0]-d/2,g={x:u.x,y:u.y};u.y=p,u.x=f;var y=En.applyTransform(l.indicatorLabelPoint,En.getTransform(u,this.group)),m=l.indicatorLabel;m.attr("invisible",!1);var v=this._applyTransform("left",l.mainGroup),x=this._orient,_="horizontal"===x;m.setStyle({text:(n||"")+r.formatValueText(t),verticalAlign:_?v:"middle",align:_?"center":v});var b={x:f,y:p,style:{fill:h}},S={style:{x:y[0],y:y[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var w={duration:100,easing:"cubicInOut",additive:!0};u.x=g.x,u.y=g.y,u.animateTo(b,w),m.animateTo(S,w)}else u.attr(b),m.attr(S);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var A=0;A<M.length;A++)this.api.enterBlur(M[A])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",(function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,i=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);i[1]=LL(kL(0,i[1]),n[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[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 n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],o=n.getExtent();e=LL(kL(r[0],e),r[1]);var a=EL(n,o,r),s=[e-a,e+a],l=TL(e,r,o,!0),u=[TL(s[0],r,o,!0),TL(s[1],r,o,!0)];s[0]<r[0]&&(u[0]=-1/0),s[1]>r[1]&&(u[1]=1/0),t&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,h=[];(t||VL(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var d=N.D6(c,h);this._dispatchHighDown("downplay",CL(d[0],n)),this._dispatchHighDown("highlight",CL(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if((0,oc.R)(e.target,(function(e){var n=(0,R.z)(e);if(null!=n.dataIndex)return t=n,!0}),!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var r=n.getData(t.dataType),o=r.getStore().get(i.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 n=0;n<t.length;n++)this.api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",CL(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,n,i){var r=En.getTransform(t,i?null:this.group);return f.isArray(e)?En.applyTransform(e,r,n):En.transformDirection(e,r,n)},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}(ML);function RL(e,t,n,i){return new Yn.A({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){Nl.ds(e.event)},ondragend:i})}function EL(e,t,n){var i=OL/2,r=e.get("hoverLinkDataSize");return r&&(i=TL(r,t,n,!0)/2),i}function VL(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function zL(e){return"vertical"===e?"ns-resize":"ew-resize"}const BL=NL;var GL={type:"selectDataRange",event:"dataRangeSelected",update:"update"},FL=function(e,t){t.eachComponent({mainType:"visualMap",query:e},(function(t){t.setSelected(e.selected)}))},HL=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",(function(t){var i=e.pipelineContext;!t.isTargetSeries(e)||i&&i.large||n.push(tC(t.stateList,t.targetVisuals,f.bind(t.getValueState,t),t.getDataDimensionIndex(e.getData())))})),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),i=[];t.eachComponent("visualMap",(function(t){if(t.isTargetSeries(e)){var r=t.getVisualMeta(f.bind(WL,null,e,t))||{stops:[],outerColors:[]},o=t.getDataDimensionIndex(n);o>=0&&(r.dimension=o,i.push(r))}})),e.getData().setVisual("visualMeta",i)}}];function WL(e,t,n,i){for(var r=t.targetVisuals[i],o=sd.prepareVisualTypes(r),a={color:(0,qI.rI)(e.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],c=r["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,h,d)}return a.color;function h(e){return a[e]}function d(e,t){a[e]=t}}var UL=f.each;function YL(e){var t=e&&e.visualMap;f.isArray(t)||(t=t?[t]:[]),UL(t,(function(e){if(e){XL(e,"splitList")&&!XL(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&f.isArray(t)&&UL(t,(function(e){f.isObject(e)&&(XL(e,"start")&&!XL(e,"min")&&(e.min=e.start),XL(e,"end")&&!XL(e,"max")&&(e.max=e.end))}))}}))}function XL(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var ZL=!1;function jL(e){ZL||(ZL=!0,e.registerSubTypeDefaulter("visualMap",(function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(GL,FL),(0,f.each)(HL,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(YL))}function qL(e){e.registerComponentModel(SL),e.registerComponentView(BL),jL(e)}var $L=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return(0,Oe.C6)(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],KL[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var r=this.option.categories;this.resetVisual((function(e,t){"categories"===i?(e.mappingMethod="category",e.categories=f.clone(r)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=f.map(this._pieceList,(function(e){return e=f.clone(e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},i=sd.listVisualTypes(),r=this.isCategory();function o(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}f.each(t.pieces,(function(e){f.each(i,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),f.each(n,(function(e,n){var i=!1;f.each(this.stateList,(function(e){i=i||o(t,e,n)||o(t.target,e,n)}),this),!i&&f.each(this.stateList,(function(e){(t[e]||(t[e]={}))[n]=cL.get(n,"inRange"===e?"active":"inactive",r)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,i=this._pieceList,r=(t?n:e).selected||{};if(n.selected=r,f.each(i,(function(e,t){var n=this.getSelectedMapKey(e);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var o=!1;f.each(i,(function(e,t){var n=this.getSelectedMapKey(e);r[n]&&(o?r[n]=!1:o=!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=f.clone(e)},t.prototype.getValueState=function(e){var t=sd.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),(function(t,i){var o=sd.findPieceIndex(t,n);o===e&&r.push(i)}),this),t.push({seriesId:i.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 n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),o=r[r.length-1].interval[1],o!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return f.each(r,(function(e){var t=e.interval;t&&(t[0]>a&&s([a,t[0]],"outOfRange"),s(t.slice()),a=t[1])}),this),{stops:t,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=e(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:t.push({value:r[0],color:s},{value:r[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=(0,ko.G_)(vL.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}(vL),KL={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),i=this.getExtent(),r=t.splitNumber;r=Math.max(parseInt(r,10),1),t.splitNumber=r;var o=(i[1]-i[0])/r;while(+o.toFixed(n)!==o&&n<5)n++;t.precision=n,o=+o.toFixed(n),t.minOpen&&e.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<r;s+=o,a++){var l=a===r-1?i[1]:s+o;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[i[1],1/0],close:[0,0]}),(0,Ge.sL)(e),f.each(e,(function(e,t){e.index=t,e.text=this.formatValueText(e.interval)}),this)},categories:function(e){var t=this.option;f.each(t.categories,(function(t){e.push({text:this.formatValueText(t,!0),value:t})}),this),JL(t,e)},pieces:function(e){var t=this.option;f.each(t.pieces,(function(t,n){f.isObject(t)||(t={value:t});var i={text:"",index:n};if(null!=t.label&&(i.text=t.label),t.hasOwnProperty("value")){var r=i.value=t.value;i.interval=[r,r],i.close=[1,1]}else{for(var o=i.interval=[],a=i.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],d=0;d<3&&null==o[c];d++)o[c]=t[h[d]],a[c]=s[d],u[c]=2===d;null==o[c]&&(o[c]=l[c])}u[0]&&o[1]===1/0&&(a[0]=0),u[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(i.value=o[0])}i.visual=sd.retrieveVisuals(t),e.push(i)}),this),JL(t,e),(0,Ge.sL)(e),f.each(e,(function(e){var t=e.close,n=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function JL(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}const QL=$L;var ek=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,Oe.C6)(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),i=t.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=t.itemSize,l=this._getViewData(),u=l.endsText,c=f.retrieve(t.get("showLabel",!0),!u),h=!t.get("selectedMode");u&&this._renderEndsText(e,u[0],s,c,a),f.each(l.viewPieceList,(function(i){var l=i.piece,u=new zn.A;u.onclick=f.bind(this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var d=t.getRepresentValue(l);if(this._createItemSymbol(u,d,[0,0,s[0],s[1]],h),c){var p=this.visualMapModel.getValueState(d);u.add(new Gn.Ay({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===p?.5:1},silent:h}))}e.add(u)}),this),u&&this._renderEndsText(e,u[1],s,c,a),dn.aP(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(e){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:e,batch:CL(i.findTargetDataIndices(t),i)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return IL(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,i,r){if(t){var o=new zn.A,a=this.visualMapModel.textStyleModel;o.add(new Gn.Ay({style:(0,pn.VB)(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:t})})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=f.map(e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),i=e.get("orient"),r=e.get("inverse");return("horizontal"===i?r:!r)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,i){var r=(0,fn.v5)(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color"));r.silent=i,e.add(r)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,i=n.selectedMode;if(i){var r=f.clone(n.selected),o=t.getSelectedMapKey(e);"single"===i||!0===i?(r[o]=!0,f.each(r,(function(e,t){r[t]=t===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},t.type="visualMap.piecewise",t}(ML);const tk=ek;function nk(e){e.registerComponentModel(QL),e.registerComponentView(tk),jL(e)}function ik(e){x(qL),x(nk)}var rk={label:{enabled:!0},decal:{show:!1}},ok=(0,N.$r)(),ak={};function sk(e,t){var n=e.getModel("aria");if(n.get("enabled")){var i=f.clone(rk);f.merge(i.label,e.getLocaleModel().get("aria"),!1),f.merge(n.option,i,!1),r(),o()}function r(){var t=n.getModel("decal"),i=t.get("show");if(i){var r=f.createHashMap();e.eachSeries((function(e){if(!e.isColorBySeries()){var t=r.get(e.type);t||(t={},r.set(e.type,t)),ok(e).scope=t}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if(f.isFunction(t.enableAriaDecal))t.enableAriaDecal();else{var n=t.getData();if(t.isColorBySeries()){var i=(0,dh.x)(t.ecModel,t.name,ak,e.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",u(r,i))}else{var o=t.getRawData(),a={},s=ok(t).scope;n.each((function(e){var t=n.getRawIndex(e);a[t]=e}));var l=o.count();o.each((function(e){var i=a[e],r=o.getName(e)||e+"",c=(0,dh.x)(t.ecModel,r,s,l),h=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",u(h,c))}))}}function u(e,t){var n=e?f.extend(f.extend({},t),e):t;return n.dirty=!0,n}}))}}function o(){var i=t.getZr().dom;if(i){var r=e.getLocaleModel().get("aria"),o=n.getModel("label");if(o.option=f.defaults(o.option,r),o.get("enabled"))if(i.setAttribute("role","img"),o.get("description"))i.setAttribute("aria-label",o.get("description"));else{var u,c=e.getSeriesCount(),h=o.get(["data","maxCount"])||10,d=o.get(["series","maxCount"])||10,p=Math.min(c,d);if(!(c<1)){var g=s();if(g){var y=o.get(["general","withTitle"]);u=a(y,{title:g})}else u=o.get(["general","withoutTitle"]);var m=[],v=c>1?o.get(["series","multiple","prefix"]):o.get(["series","single","prefix"]);u+=a(v,{seriesCount:c}),e.eachSeries((function(e,t){if(t<p){var n=void 0,i=e.get("name"),r=i?"withName":"withoutName";n=c>1?o.get(["series","multiple",r]):o.get(["series","single",r]),n=a(n,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:l(e.subType)});var s=e.getData();if(s.count()>h){var u=o.get(["data","partialData"]);n+=a(u,{displayCnt:h})}else n+=o.get(["data","allData"]);for(var d=o.get(["data","separator","middle"]),g=o.get(["data","separator","end"]),y=o.get(["data","excludeDimensionId"]),v=[],x=0;x<s.count();x++)if(x<h){var _=s.getName(x),b=y?f.filter(s.getValues(x),(function(e,t){return-1===f.indexOf(y,t)})):s.getValues(x),S=o.get(["data",_?"withName":"withoutName"]);v.push(a(S,{name:_,value:b.join(d)}))}n+=v.join(d)+g,m.push(n)}}));var x=o.getModel(["series","multiple","separator"]),_=x.get("middle"),b=x.get("end");u+=m.join(_)+b,i.setAttribute("aria-label",u)}}}}function a(e,t){if(!f.isString(e))return e;var n=e;return f.each(t,(function(e,t){n=n.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)})),n}function s(){var t=e.get("title");return t&&t.length&&(t=t[0]),t&&t.text}function l(t){var n=e.getLocaleModel().get(["series","typeNames"]);return n[t]||n.chart}}function lk(e){if(e&&e.aria){var t=e.aria;null!=t.show&&(t.enabled=t.show),t.label=t.label||{},f.each(["description","general","series","data"],(function(e){null!=t[e]&&(t.label[e]=t[e])}))}}function uk(e){e.registerPreprocessor(lk),e.registerVisual(e.PRIORITY.VISUAL.ARIA,sk)}var ck={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},hk=function(){function e(e){var t=this._condVal=(0,f.isString)(e)?new RegExp(e):(0,f.isRegExp)(e)?e:null;if(null==t){var n="";0,(0,Tm.$8)(n)}}return e.prototype.evaluate=function(e){var t=typeof e;return(0,f.isString)(t)?this._condVal.test(e):!!(0,f.isNumber)(t)&&this._condVal.test(e+"")},e}(),dk=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),pk=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),fk=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),gk=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),yk=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),i=e?this.valueParser(n):null,r=0;r<this.subCondList.length;r++)if(!this.subCondList[r].evaluate(e?i:n))return!1;return!0},e}();function mk(e,t){if(!0===e||!1===e){var n=new dk;return n.value=e,n}var i="";return bk(e)||(0,Tm.$8)(i),e.and?vk("and",e,t):e.or?vk("or",e,t):e.not?xk(e,t):_k(e,t)}function vk(e,t,n){var i=t[e],r="";(0,f.isArray)(i)||(0,Tm.$8)(r),i.length||(0,Tm.$8)(r);var o="and"===e?new pk:new fk;return o.children=(0,f.map)(i,(function(e){return mk(e,n)})),o.children.length||(0,Tm.$8)(r),o}function xk(e,t){var n=e.not,i="";bk(n)||(0,Tm.$8)(i);var r=new gk;return r.child=mk(n,t),r.child||(0,Tm.$8)(i),r}function _k(e,t){for(var n="",i=t.prepareGetValue(e),r=[],o=(0,f.keys)(e),a=e.parser,s=a?(0,aT.zC)(a):null,l=0;l<o.length;l++){var u=o[l];if("parser"!==u&&!t.valueGetterAttrMap.get(u)){var c=(0,f.hasOwn)(ck,u)?ck[u]:u,h=e[u],d=s?s(h):h,p=(0,aT.zs)(c,d)||"reg"===c&&new hk(d);p||(0,Tm.$8)(n),r.push(p)}}r.length||(0,Tm.$8)(n);var g=new yk;return g.valueGetterParam=i,g.valueParser=s,g.getValue=t.getValue,g.subCondList=r,g}function bk(e){return(0,f.isObject)(e)&&!(0,f.isArrayLike)(e)}var Sk=function(){function e(e,t){this._cond=mk(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function wk(e,t){return new Sk(e,t)}var Mk={type:"echarts:filter",transform:function(e){for(var t,n=e.upstream,i=wk(e.config,{valueGetterAttrMap:(0,f.createHashMap)({dimension:!0}),prepareGetValue:function(e){var t="",i=e.dimension;(0,f.hasOwn)(e,"dimension")||(0,Tm.$8)(t);var r=n.getDimensionInfo(i);return r||(0,Tm.$8)(t),{dimIdx:r.index}},getValue:function(e){return n.retrieveValueFromItem(t,e.dimIdx)}}),r=[],o=0,a=n.count();o<a;o++)t=n.getRawDataItem(o),i.evaluate()&&r.push(t);return{data:r}}};var Ak={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,i="",r=(0,N.qB)(n);r.length||(0,Tm.$8)(i);var o=[];(0,f.each)(r,(function(e){var n=e.dimension,r=e.order,a=e.parser,s=e.incomparable;if(null==n&&(0,Tm.$8)(i),"asc"!==r&&"desc"!==r&&(0,Tm.$8)(i),s&&"min"!==s&&"max"!==s){var l="";0,(0,Tm.$8)(l)}if("asc"!==r&&"desc"!==r){var u="";0,(0,Tm.$8)(u)}var c=t.getDimensionInfo(n);c||(0,Tm.$8)(i);var h=a?(0,aT.zC)(a):null;a&&!h&&(0,Tm.$8)(i),o.push({dimIdx:c.index,parser:h,comparator:new aT.Fl(r,s)})}));var a=t.sourceFormat;a!==I.Km&&a!==I.Wk&&(0,Tm.$8)(i);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort((function(e,n){for(var i=0;i<o.length;i++){var r=o[i],a=t.retrieveValueFromItem(e,r.dimIdx),s=t.retrieveValueFromItem(n,r.dimIdx);r.parser&&(a=r.parser(a),s=r.parser(s));var l=r.comparator.evaluate(a,s);if(0!==l)return l}return 0})),{data:s}}};function Ik(e){e.registerTransform(Mk),e.registerTransform(Ak)}var Ck=n(7497),Tk=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return(0,Oe.C6)(t,e),t.prototype.init=function(t,n,i){e.prototype.init.call(this,t,n,i),this._sourceManager=new Ck.R(this),(0,Ck.A)(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),(0,Ck.A)(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:I.i_},t}(d.A),Dk=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return(0,Oe.C6)(t,e),t.type="dataset",t}(c.A);function Lk(e){e.registerComponentModel(Tk),e.registerComponentView(Dk)}var kk=n(8783),Ok=n(8215);function Pk(e){return(0,f.isArray)(e[0])}function Nk(e,t){for(var n=[],i=e.length,r=0;r<i;r++)n.push({one:e[r],many:[]});for(r=0;r<t.length;r++){var o=t[r].length,a=void 0;for(a=0;a<o;a++)n[a%i].many.push(t[r][a])}var s=0;for(r=i-1;r>=0;r--)if(!n[r].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[r].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var Rk={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),i=0;i<e.count;i++){var r=(0,Ok.rR)(e.path);r.setStyle("opacity",n),t.push(r)}return t},split:null};function Ek(e,t,n,i,r,o){if(e.length&&t.length){var a=(0,Vn.Jw)("update",i,r);if(a&&a.duration>0){var s,l,u=i.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},a);Pk(e)&&(s=e,l=t),Pk(t)&&(s=t,l=e);for(var h=s?s===e:e.length>t.length,d=s?Nk(l,s):Nk(h?t:e,[h?e:t]),p=0,g=0;g<d.length;g++)p+=d[g].many.length;var y=0;for(g=0;g<d.length;g++)m(d[g],h,y,p),y+=d[g].many.length}}function m(e,t,i,r,a){var s=e.many,l=e.one;if(1!==s.length||a)for(var h=(0,f.defaults)({dividePath:Rk[n],individualDelay:u&&function(e,t,n,o){return u(e+i,r)}},c),d=t?(0,kk.Gw)(s,l,h):(0,kk.AG)(l,s,h),p=d.fromIndividuals,g=d.toIndividuals,y=p.length,v=0;v<y;v++){b=u?(0,f.defaults)({delay:u(v,y)},c):c;o(p[v],g[v],t?s[v]:e.one,t?e.one:s[v],b)}else{var x=t?s[0]:l,_=t?l:s[0];if((0,kk.AN)(x))m({many:[x],one:_},!0,i,r,!0);else{var b=u?(0,f.defaults)({delay:u(i,r)},c):c;(0,kk.mz)(x,_,b),o(x,_,x,_,b)}}}}function Vk(e){if(!e)return[];if((0,f.isArray)(e)){for(var t=[],n=0;n<e.length;n++)t.push(Vk(e[n]));return t}var i=[];return e.traverse((function(e){e instanceof Pi.Ay&&!e.disableMorphing&&!e.invisible&&!e.ignore&&i.push(e)})),i}var zk=1e4,Bk=0,Gk=1,Fk=2,Hk=(0,N.$r)();function Wk(e,t){for(var n=e.dimensions,i=0;i<n.length;i++){var r=e.getDimensionInfo(n[i]);if(r&&0===r.otherDims[t])return n[i]}}function Uk(e,t,n){var i=e.getDimensionInfo(n),r=i&&i.ordinalMeta;if(i){var o=e.get(i.name,t);return r&&r.categories[o]||o+""}}function Yk(e,t,n,i){var r=i?"itemChildGroupId":"itemGroupId",o=Wk(e,r);if(o){var a=Uk(e,t,o);return a}var s=e.getRawDataItem(t),l=i?"childGroupId":"groupId";return s&&s[l]?s[l]+"":i?void 0:n||e.getId(t)}function Xk(e){var t=[];return(0,f.each)(e,(function(e){var n=e.data,i=e.dataGroupId;if(!(n.count()>zk))for(var r=n.getIndices(),o=0;o<r.length;o++)t.push({data:n,groupId:Yk(n,o,i,!1),childGroupId:Yk(n,o,i,!0),divide:e.divide,dataIndex:o})})),t}function Zk(e,t,n){e.traverse((function(e){e instanceof Pi.Ay&&(0,Vn.LW)(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})}))}function jk(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function qk(e){e.stopAnimation(),e.isGroup&&e.traverse((function(e){e.stopAnimation()}))}function $k(e,t,n){var i=(0,Vn.Jw)("update",n,t);i&&e.traverse((function(e){if(e instanceof vu.Ay){var t=(0,Vn.Xr)(e);t&&e.animateFrom({style:t},i)}}))}function Kk(e,t){var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++){var r=e[i],o=t[i];if(r.data.getId(r.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}function Jk(e,t,n){var i=Xk(e),r=Xk(t);function o(e,t,n,i,r){(n||e)&&t.animateFrom({style:n&&n!==e?(0,f.extend)((0,f.extend)({},n.style),e.style):e.style},r)}var a=!1,s=Bk,l=(0,f.createHashMap)(),u=(0,f.createHashMap)();i.forEach((function(e){e.groupId&&l.set(e.groupId,!0),e.childGroupId&&u.set(e.childGroupId,!0)}));for(var c=0;c<r.length;c++){var h=r[c].groupId;if(u.get(h)){s=Gk;break}var d=r[c].childGroupId;if(d&&l.get(d)){s=Fk;break}}function p(e,t){return function(n){var i=n.data,r=n.dataIndex;return t?i.getId(r):e?s===Gk?n.childGroupId:n.groupId:s===Fk?n.childGroupId:n.groupId}}var g=Kk(i,r),y={};if(!g)for(c=0;c<r.length;c++){var m=r[c],v=m.data.getItemGraphicEl(m.dataIndex);v&&(y[v.id]=!0)}function x(e,t){var n=i[t],s=r[e],l=s.data.hostModel,u=n.data.getItemGraphicEl(n.dataIndex),c=s.data.getItemGraphicEl(s.dataIndex);u!==c?u&&y[u.id]||c&&(qk(c),u?(qk(u),jk(u),a=!0,Ek(Vk(u),Vk(c),s.divide,l,e,o)):Zk(c,l,e)):c&&$k(c,s.dataIndex,l)}new M(i,r,p(!0,g),p(!1,g),null,"multiple").update(x).updateManyToOne((function(e,t){var n=r[e],s=n.data,l=s.hostModel,u=s.getItemGraphicEl(n.dataIndex),c=(0,f.filter)((0,f.map)(t,(function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)})),(function(e){return e&&e!==u&&!y[e.id]}));u&&(qk(u),c.length?((0,f.each)(c,(function(e){qk(e),jk(e)})),a=!0,Ek(Vk(c),Vk(u),n.divide,l,e,o)):Zk(u,l,n.dataIndex))})).updateOneToMany((function(e,t){var n=i[t],s=n.data.getItemGraphicEl(n.dataIndex);if(!s||!y[s.id]){var l=(0,f.filter)((0,f.map)(e,(function(e){return r[e].data.getItemGraphicEl(r[e].dataIndex)})),(function(e){return e&&e!==s})),u=r[e[0]].data.hostModel;l.length&&((0,f.each)(l,(function(e){return qk(e)})),s?(qk(s),jk(s),a=!0,Ek(Vk(s),Vk(l),n.divide,u,e[0],o)):(0,f.each)(l,(function(t){return Zk(t,u,e[0])})))}})).updateManyToMany((function(e,t){new M(t,e,(function(e){return i[e].data.getId(i[e].dataIndex)}),(function(e){return r[e].data.getId(r[e].dataIndex)})).update((function(n,i){x(e[n],t[i])})).execute()})).execute(),a&&(0,f.each)(t,(function(e){var t=e.data,i=t.hostModel,r=i&&n.getViewOfSeriesModel(i),o=(0,Vn.Jw)("update",i,0);r&&i.isAnimationEnabled()&&o&&o.duration>0&&r.group.traverse((function(e){e instanceof Pi.Ay&&!e.animators.length&&e.animateFrom({style:{opacity:0}},o)}))}))}function Qk(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function eO(e){return(0,f.isArray)(e)?e.sort().join(","):e}function tO(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function nO(e,t){var n=(0,f.createHashMap)(),i=(0,f.createHashMap)(),r=(0,f.createHashMap)();return(0,f.each)(e.oldSeries,(function(t,n){var o=e.oldDataGroupIds[n],a=e.oldData[n],s=Qk(t),l=eO(s);i.set(l,{dataGroupId:o,data:a}),(0,f.isArray)(s)&&(0,f.each)(s,(function(e){r.set(e,{key:l,dataGroupId:o,data:a})}))})),(0,f.each)(t.updatedSeries,(function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get("dataGroupId"),o=e.getData(),a=Qk(e),s=eO(a),l=i.get(s);if(l)n.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:tO(l.data),data:l.data}],newSeries:[{dataGroupId:t,divide:tO(o),data:o}]});else if((0,f.isArray)(a)){0;var u=[];(0,f.each)(a,(function(e){var t=i.get(e);t.data&&u.push({dataGroupId:t.dataGroupId,divide:tO(t.data),data:t.data})})),u.length&&n.set(s,{oldSeries:u,newSeries:[{dataGroupId:t,data:o,divide:tO(o)}]})}else{var c=r.get(a);if(c){var h=n.get(c.key);h||(h={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:tO(c.data)}],newSeries:[]},n.set(c.key,h)),h.newSeries.push({dataGroupId:t,data:o,divide:tO(o)})}}}})),n}function iO(e,t){for(var n=0;n<e.length;n++){var i=null!=t.seriesIndex&&t.seriesIndex===e[n].seriesIndex||null!=t.seriesId&&t.seriesId===e[n].id;if(i)return n}}function rO(e,t,n,i){var r=[],o=[];(0,f.each)((0,N.qB)(e.from),(function(e){var n=iO(t.oldSeries,e);n>=0&&r.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:tO(t.oldData[n]),groupIdDim:e.dimension})})),(0,f.each)((0,N.qB)(e.to),(function(e){var i=iO(n.updatedSeries,e);if(i>=0){var r=n.updatedSeries[i].getData();o.push({dataGroupId:t.oldDataGroupIds[i],data:r,divide:tO(r),groupIdDim:e.dimension})}})),r.length>0&&o.length>0&&Jk(r,o,i)}function oO(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){(0,f.each)((0,N.qB)(n.seriesTransition),(function(e){(0,f.each)((0,N.qB)(e.to),(function(e){for(var t=n.updatedSeries,i=0;i<t.length;i++)(null!=e.seriesIndex&&e.seriesIndex===t[i].seriesIndex||null!=e.seriesId&&e.seriesId===t[i].id)&&(t[i][p.U]=!0)}))}))})),e.registerUpdateLifecycle("series:transition",(function(e,t,n){var i=Hk(t);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var r=n.seriesTransition;if(r)(0,f.each)((0,N.qB)(r),(function(e){rO(e,i,n,t)}));else{var o=nO(i,n);(0,f.each)(o.keys(),(function(e){var n=o.get(e);Jk(n.oldSeries,n.newSeries,t)}))}(0,f.each)(n.updatedSeries,(function(e){e[p.U]&&(e[p.U]=!1)}))}for(var a=e.getSeries(),s=i.oldSeries=[],l=i.oldDataGroupIds=[],u=i.oldData=[],c=0;c<a.length;c++){var h=a[c].getData();h.count()<zk&&(s.push(a[c]),l.push(a[c].get("dataGroupId")),u.push(h))}}))}x([Ir]),x([Tr]),x([To,pa,za,cl,Ol,cc,uh,Bd,af,yf,Cf,Oy,hm,Lm,av,fv,Bv,$v,Ix,Ex,t_,Ob]),x(LS),x(Sw),x(uc),x(jw),x(ky),x(oM),x(wM),x(lI),x(YI),x(DS),x(IC),x(DC),x(JC),x(AT),x(VT),x($T),x(ID),x(sL),x(WD),x(aL),x(ik),x(qL),x(nk),x(uk),x(Ik),x(Lk),x(oO),x(Mr)},2575:(e,t,n)=>{n.d(t,{Jw:()=>a,LR:()=>c,LW:()=>u,Nz:()=>h,Xr:()=>g,ap:()=>f,oi:()=>l,t5:()=>p});var i=n(5279),r=n(7045),o=(0,r.$r)();function a(e,t,n,r,o){var a;if(t&&t.ecModel){var s=t.ecModel.getUpdatePayload();a=s&&s.animation}var l=t&&t.isAnimationEnabled(),u="update"===e;if(l){var c=void 0,h=void 0,d=void 0;r?(c=(0,i.retrieve2)(r.duration,200),h=(0,i.retrieve2)(r.easing,"cubicOut"),d=0):(c=t.getShallow(u?"animationDurationUpdate":"animationDuration"),h=t.getShallow(u?"animationEasingUpdate":"animationEasing"),d=t.getShallow(u?"animationDelayUpdate":"animationDelay")),a&&(null!=a.duration&&(c=a.duration),null!=a.easing&&(h=a.easing),null!=a.delay&&(d=a.delay)),(0,i.isFunction)(d)&&(d=d(n,o)),(0,i.isFunction)(c)&&(c=c(n));var p={duration:c||0,delay:d,easing:h};return p}return null}function s(e,t,n,r,o,s,l){var u,c=!1;(0,i.isFunction)(o)?(l=s,s=o,o=null):(0,i.isObject)(o)&&(s=o.cb,l=o.during,c=o.isFrom,u=o.removeOpt,o=o.dataIndex);var h="leave"===e;h||t.stopAnimation("leave");var d=a(e,r,o,h?u||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,o):null);if(d&&d.duration>0){var p=d.duration,f=d.delay,g=d.easing,y={duration:p,delay:f||0,easing:g,done:s,force:!!s||!!l,setToFinal:!h,scope:e,during:l};c?t.animateFrom(n,y):t.animateTo(n,y)}else t.stopAnimation(),!c&&t.attr(n),l&&l(1),s&&s()}function l(e,t,n,i,r,o){s("update",e,t,n,i,r,o)}function u(e,t,n,i,r,o){s("enter",e,t,n,i,r,o)}function c(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var n=e.animators[t];if("leave"===n.scope)return!0}return!1}function h(e,t,n,i,r,o){c(e)||s("leave",e,t,n,i,r,o)}function d(e,t,n,i){e.removeTextContent(),e.removeTextGuideLine(),h(e,{style:{opacity:0}},t,n,i)}function p(e,t,n){function i(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse((function(e){e.isGroup||d(e,t,n,i)})):d(e,t,n,i)}function f(e){o(e).oldStyle=e.style}function g(e){return o(e).oldStyle}},1057:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(7045);function r(){var e=(0,i.$r)();return function(t){var n=e(t),i=t.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}},7626:(e,t,n)=>{n.d(t,{J:()=>s});var i=n(5279),r=n(8424),o=n(2612),a=n(7045);function s(e){var t,n,s,u,c=e.series,h=e.dataIndex,d=e.multipleSeries,p=c.getData(),f=p.mapDimensionsAll("defaultedTooltip"),g=f.length,y=c.getRawValue(h),m=(0,i.isArray)(y),v=(0,r.aw)(c,h);if(g>1||m&&!g){var x=l(y,c,h,f,v);t=x.inlineValues,n=x.inlineValueTypes,s=x.blocks,u=x.inlineValues[0]}else if(g){var _=p.getDimensionInfo(f[0]);u=t=(0,o.QE)(p,h,f[0]),n=_.type}else u=t=m?y[0]:y;var b=(0,a.O0)(c),S=b&&c.name||"",w=p.getName(h),M=d?S:w;return(0,r.Qx)("section",{header:S,noHeader:d||!b,sortParam:u,blocks:[(0,r.Qx)("nameValue",{markerType:"item",markerColor:v,name:M,noName:!(0,i.trim)(M),value:t,valueType:n,dataIndex:h})].concat(s||[])})}function l(e,t,n,a,s){var l=t.getData(),u=(0,i.reduce)(e,(function(e,t,n){var i=l.getDimensionInfo(n);return e||i&&!1!==i.tooltip&&null!=i.displayName}),!1),c=[],h=[],d=[];function p(e,t){var n=l.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(u?d.push((0,r.Qx)("nameValue",{markerType:"subItem",markerColor:s,name:n.displayName,value:e,valueType:n.type})):(c.push(e),h.push(n.type)))}return a.length?(0,i.each)(a,(function(e){p((0,o.QE)(l,n,e),e)})):(0,i.each)(e,p),{inlineValues:c,inlineValueTypes:h,blocks:d}}},8424:(e,t,n)=>{n.d(t,{CO:()=>C,Qx:()=>p,Yu:()=>x,aw:()=>I,lb:()=>T});var i=n(2225),r=n(8269),o=n(5279),a=n(3492),s=n(6471),l="line-height:1";function u(e){var t=e.lineHeight;return null==t?l:"line-height:"+(0,i.Me)(t+"")+"px"}function c(e,t){var n=e.color||"#6e7079",r=e.fontSize||12,o=e.fontWeight||"400",a=e.color||"#464646",s=e.fontSize||14,l=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+(0,i.Me)(r+"")+"px;color:"+(0,i.Me)(n)+";font-weight:"+(0,i.Me)(o+""),valueStyle:"font-size:"+(0,i.Me)(s+"")+"px;color:"+(0,i.Me)(a)+";font-weight:"+(0,i.Me)(l+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:o},valueStyle:{fontSize:s,fill:a,fontWeight:l}}}var h=[0,10,20,30],d=["","\n","\n\n","\n\n\n"];function p(e,t){return t.type=e,t}function f(e){return"section"===e.type}function g(e){return f(e)?m:v}function y(e){if(f(e)){var t=0,n=e.blocks.length,i=n>1||n>0&&!e.noHeader;return(0,o.each)(e.blocks,(function(e){var n=y(e);n>=t&&(t=n+ +(i&&(!n||f(e)&&!e.noHeader)))})),t}return 0}function m(e,t,n,s){var l=t.noHeader,h=_(y(t)),d=[],p=t.blocks||[];(0,o.assert)(!p||(0,o.isArray)(p)),p=p||[];var f=e.orderMode;if(t.sortBlocks&&f){p=p.slice();var m={valueAsc:"asc",valueDesc:"desc"};if((0,o.hasOwn)(m,f)){var v=new a.Fl(m[f],null);p.sort((function(e,t){return v.evaluate(e.sortParam,t.sortParam)}))}else"seriesDesc"===f&&p.reverse()}(0,o.each)(p,(function(n,i){var r=t.valueFormatter,a=g(n)(r?(0,o.extend)((0,o.extend)({},e),{valueFormatter:r}):e,n,i>0?h.html:0,s);null!=a&&d.push(a)}));var x="richText"===e.renderMode?d.join(h.richText):b(s,d.join(""),l?n:h.html);if(l)return x;var S=(0,r.yC)(t.header,"ordinal",e.useUTC),w=c(s,e.renderMode).nameStyle,A=u(s);return"richText"===e.renderMode?M(e,S,w)+h.richText+x:b(s,'<div style="'+w+";"+A+';">'+(0,i.Me)(S)+"</div>"+x,n)}function v(e,t,n,i){var a=e.renderMode,s=t.noName,l=t.noValue,u=!t.markerType,h=t.name,d=e.useUTC,p=t.valueFormatter||e.valueFormatter||function(e){return e=(0,o.isArray)(e)?e:[e],(0,o.map)(e,(function(e,t){return(0,r.yC)(e,(0,o.isArray)(y)?y[t]:y,d)}))};if(!s||!l){var f=u?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),g=s?"":(0,r.yC)(h,"ordinal",d),y=t.valueType,m=l?[]:p(t.value,t.dataIndex),v=!u||!s,x=!u&&s,_=c(i,a),I=_.nameStyle,C=_.valueStyle;return"richText"===a?(u?"":f)+(s?"":M(e,g,I))+(l?"":A(e,m,v,x,C)):b(i,(u?"":f)+(s?"":S(g,!u,I))+(l?"":w(m,v,x,C)),n)}}function x(e,t,n,i,r,o){if(e){var a=g(e),s={useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function _(e){return{html:h[e],richText:d[e]}}function b(e,t,n){var i='<div style="clear:both"></div>',r="margin: "+n+"px 0 0",o=u(e);return'<div style="'+r+";"+o+';">'+t+i+"</div>"}function S(e,t,n){var r=t?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+(0,i.Me)(e)+"</span>"}function w(e,t,n,r){var a=n?"10px":"20px",s=t?"float:right;margin-left:"+a:"";return e=(0,o.isArray)(e)?e:[e],'<span style="'+s+";"+r+'">'+(0,o.map)(e,(function(e){return(0,i.Me)(e)})).join(" ")+"</span>"}function M(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function A(e,t,n,i,r){var a=[r],s=i?10:20;return n&&a.push({padding:[0,0,0,s],align:"right"}),e.markupStyleCreator.wrapRichTextStyle((0,o.isArray)(t)?t.join(" "):t,a)}function I(e,t){var n=e.getData().getItemVisual(t,"style"),i=n[e.visualDrawType];return(0,r.he)(i)}function C(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var T=function(){function e(){this.richTextStyles={},this._nextStyleNameId=(0,s.IH)()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var i="richText"===n?this._generateStyleName():null,a=(0,r.qg)({color:t,type:e,renderMode:n,markerId:i});return(0,o.isString)(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};(0,o.isArray)(t)?(0,o.each)(t,(function(e){return(0,o.extend)(n,e)})):(0,o.extend)(n,t);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},e}()},8384:(e,t,n)=>{n.d(t,{A:()=>a});var i=n(5279),r={},o=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];i.each(r,(function(i,r){var o=i.create(e,t);n=n.concat(o||[])})),this._coordinateSystems=n},e.prototype.update=function(e,t){i.each(this._coordinateSystems,(function(n){n.update&&n.update(e,t)}))},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){r[e]=t},e.get=function(e){return r[e]},e}();const a=o},8938:(e,t,n)=>{n.d(t,{FQ:()=>qt,Ng:()=>Yn,p5:()=>gi,El:()=>Ot,zm:()=>Zn,Zf:()=>Xn,AS:()=>jn,Bo:()=>oi,FP:()=>qn,aQ:()=>$n,ZB:()=>pi,Ts:()=>Un,OH:()=>ii,pX:()=>ri,Oh:()=>ai,Ej:()=>ci,E:()=>wt.E,mz:()=>di,cf:()=>ei,tb:()=>ti,lP:()=>Jn,qg:()=>Qn,bf:()=>Kn,iY:()=>fi,xV:()=>ni,AF:()=>si,vV:()=>hi,rE:()=>kt});var i=n(8948),r=n(7187),o=n(5279),a=n(1688),s=n(1389),l=n(6740),u=n(7045),c=n(9338),h=n(8898),d="";"undefined"!==typeof navigator&&(d=navigator.platform||"");var p="rgba(0, 0, 0, 0.2)";const f={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:p,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:p,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:p,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:p,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:p,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:p,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:d.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var g,y,m,v=n(4408),x=n(8609),_=n(3480),b="\0_ec_inner",S=1;var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t.prototype.init=function(e,t,n,i,r,o){i=i||{},this.option=null,this._theme=new c.A(i),this._locale=new c.A(r),this._optionManager=o},t.prototype.setOption=function(e,t,n){var i=T(t);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,t){return this._resetOption(e,T(t))},t.prototype._resetOption=function(e,t){var n=!1,i=this._optionManager;if(!e||"recreate"===e){var r=i.mountOption("recreate"===e);0,this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(r,t)):m(this,r),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var a=i.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||"recreate"===e||"media"===e){var s=i.getMediaOption(this);s.length&&(0,o.each)(s,(function(e){n=!0,this._mergeOption(e,t)}),this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,i=this._componentsMap,r=this._componentsCount,a=[],s=(0,o.createHashMap)(),l=t&&t.replaceMergeMainTypeMap;function c(t){var a=(0,x.a)(this,t,u.qB(e[t])),s=i.get(t),c=s?l&&l.get(t)?"replaceMerge":"normalMerge":"replaceAll",d=u.O2(s,a,c);u.GX(d,t,h.A),n[t]=null,i.set(t,null),r.set(t,0);var p,f=[],y=[],m=0;(0,o.each)(d,(function(e,n){var i=e.existing,r=e.newOption;if(r){var a="series"===t,s=h.A.getClass(t,e.keyInfo.subType,!a);if(!s)return;if("tooltip"===t){if(p)return void 0;p=!0}if(i&&i.constructor===s)i.name=e.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var l=(0,o.extend)({componentIndex:n},e.keyInfo);i=new s(r,this,this,l),(0,o.extend)(i,l),e.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(f.push(i.option),y.push(i),m++):(f.push(void 0),y.push(void 0))}),this),n[t]=f,i.set(t,y),r.set(t,m),"series"===t&&g(this)}(0,v.ps)(this),(0,o.each)(e,(function(e,t){null!=e&&(h.A.hasClass(t)?t&&(a.push(t),s.set(t,!0)):n[t]=null==n[t]?(0,o.clone)(e):(0,o.merge)(n[t],e,!0))})),l&&l.each((function(e,t){h.A.hasClass(t)&&!s.get(t)&&(a.push(t),s.set(t,!0))})),h.A.topologicalTravel(a,h.A.getAllClassMainTypes(),c,this),this._seriesIndices||g(this)},t.prototype.getOption=function(){var e=(0,o.clone)(this.option);return(0,o.each)(e,(function(t,n){if(h.A.hasClass(n)){for(var i=u.qB(t),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!u.oh(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,e[n]=i}})),delete e[b],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var i=n[t||0];if(i)return i;if(null==t)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n,i=e.index,r=e.id,a=e.name,s=this._componentsMap.get(t);return s&&s.length?(null!=i?(n=[],(0,o.each)(u.qB(i),(function(e){s[e]&&n.push(s[e])}))):n=null!=r?I("id",r,s):null!=a?I("name",a,s):(0,o.filter)(s,(function(e){return!!e})),C(n,e)):[]},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,i=a(t),r=i?this.queryComponents(i):(0,o.filter)(this._componentsMap.get(n),(function(e){return!!e}));return s(C(r,e));function a(e){var t=n+"Index",i=n+"Id",r=n+"Name";return!e||null==e[t]&&null==e[i]&&null==e[r]?null:{mainType:n,index:e[t],id:e[i],name:e[r]}}function s(t){return e.filter?(0,o.filter)(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var i=this._componentsMap;if((0,o.isFunction)(e)){var r=t,a=e;i.each((function(e,t){for(var n=0;e&&n<e.length;n++){var i=e[n];i&&a.call(r,t,i,i.componentIndex)}}))}else for(var s=(0,o.isString)(e)?i.get(e):(0,o.isObject)(e)?this.findComponents(e):null,l=0;s&&l<s.length;l++){var u=s[l];u&&t.call(n,u,u.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=u.vS(e,null);return(0,o.filter)(this._componentsMap.get("series"),(function(e){return!!e&&null!=t&&e.name===t}))},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return(0,o.filter)(this._componentsMap.get("series"),(function(t){return!!t&&t.subType===e}))},t.prototype.getSeries=function(){return(0,o.filter)(this._componentsMap.get("series"),(function(e){return!!e}))},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){y(this),(0,o.each)(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];e.call(t,i,n)}),this)},t.prototype.eachRawSeries=function(e,t){(0,o.each)(this._componentsMap.get("series"),(function(n){n&&e.call(t,n,n.componentIndex)}))},t.prototype.eachSeriesByType=function(e,t,n){y(this),(0,o.each)(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];r.subType===e&&t.call(n,r,i)}),this)},t.prototype.eachRawSeriesByType=function(e,t,n){return(0,o.each)(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return y(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){y(this);var n=[];(0,o.each)(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];e.call(t,r,i)&&n.push(i)}),this),this._seriesIndices=n,this._seriesIndicesMap=(0,o.createHashMap)(n)},t.prototype.restoreData=function(e){g(this);var t=this._componentsMap,n=[];t.each((function(e,t){h.A.hasClass(t)&&n.push(t)})),h.A.topologicalTravel(n,h.A.getAllClassMainTypes(),(function(n){(0,o.each)(t.get(n),(function(t){!t||"series"===n&&M(t,e)||t.restoreData()}))}))},t.internalField=function(){g=function(e){var t=e._seriesIndices=[];(0,o.each)(e._componentsMap.get("series"),(function(e){e&&t.push(e.componentIndex)})),e._seriesIndicesMap=(0,o.createHashMap)(t)},y=function(e){0},m=function(e,t){e.option={},e.option[b]=S,e._componentsMap=(0,o.createHashMap)({series:[]}),e._componentsCount=(0,o.createHashMap)();var n=t.aria;(0,o.isObject)(n)&&null==n.enabled&&(n.enabled=!0),A(t,e._theme.option),(0,o.merge)(t,f,!1),e._mergeOption(t,null)}}(),t}(c.A);function M(e,t){if(t){var n=t.seriesIndex,i=t.seriesId,r=t.seriesName;return null!=n&&e.componentIndex!==n||null!=i&&e.id!==i||null!=r&&e.name!==r}}function A(e,t){var n=e.color&&!e.colorLayer;(0,o.each)(t,(function(t,i){"colorLayer"===i&&n||h.A.hasClass(i)||("object"===typeof t?e[i]=e[i]?(0,o.merge)(e[i],t,!1):(0,o.clone)(t):null==e[i]&&(e[i]=t))}))}function I(e,t,n){if((0,o.isArray)(t)){var i=(0,o.createHashMap)();return(0,o.each)(t,(function(e){if(null!=e){var t=u.vS(e,null);null!=t&&i.set(e,!0)}})),(0,o.filter)(n,(function(t){return t&&i.get(t[e])}))}var r=u.vS(t,null);return(0,o.filter)(n,(function(t){return t&&null!=r&&t[e]===r}))}function C(e,t){return t.hasOwnProperty("subType")?(0,o.filter)(e,(function(e){return e&&e.subType===t.subType})):e}function T(e){var t=(0,o.createHashMap)();return e&&(0,o.each)(u.qB(e.replaceMerge),(function(e){t.set(e,!0)})),{replaceMergeMainTypeMap:t}}(0,o.mixin)(w,_.X);const D=w;var L=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],k=function(){function e(e){o.each(L,(function(t){this[t]=o.bind(e[t],e)}),this)}return e}();const O=k;var P=n(8384),N=/^(min|max)?(.+)$/,R=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&((0,o.each)((0,u.qB)(e.series),(function(e){e&&e.data&&(0,o.isTypedArray)(e.data)&&(0,o.setAsPrimitive)(e.data)})),(0,o.each)((0,u.qB)(e.dataset),(function(e){e&&e.source&&(0,o.isTypedArray)(e.source)&&(0,o.setAsPrimitive)(e.source)}))),e=(0,o.clone)(e);var i=this._optionBackup,r=E(e,t,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],(0,o.clone)(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(t=(0,o.clone)(n[i.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,r=this._mediaDefault,a=[],s=[];if(!i.length&&!r)return s;for(var l=0,u=i.length;l<u;l++)V(i[l].query,t,n)&&a.push(l);return!a.length&&r&&(a=[-1]),a.length&&!B(a,this._currentMediaIndices)&&(s=(0,o.map)(a,(function(e){return(0,o.clone)(-1===e?r.option:i[e].option)}))),this._currentMediaIndices=a,s},e}();function E(e,t,n){var i,r,a=[],s=e.baseOption,l=e.timeline,u=e.options,c=e.media,h=!!e.media,d=!!(u||l||s&&s.timeline);function p(e){(0,o.each)(t,(function(t){t(e,n)}))}return s?(r=s,r.timeline||(r.timeline=l)):((d||h)&&(e.options=e.media=null),r=e),h&&(0,o.isArray)(c)&&(0,o.each)(c,(function(e){e&&e.option&&(e.query?a.push(e):i||(i=e))})),p(r),(0,o.each)(u,(function(e){return p(e)})),(0,o.each)(a,(function(e){return p(e.option)})),{baseOption:r,timelineOptions:u||[],mediaDefault:i,mediaList:a}}function V(e,t,n){var i={width:t,height:n,aspectratio:t/n},r=!0;return(0,o.each)(e,(function(e,t){var n=t.match(N);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();z(i[a],e,o)||(r=!1)}})),r}function z(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t}function B(e,t){return e.join(",")===t.join(",")}const G=R;var F=o.each,H=o.isObject,W=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function U(e){var t=e&&e.itemStyle;if(t)for(var n=0,i=W.length;n<i;n++){var r=W[n],a=t.normal,s=t.emphasis;a&&a[r]&&(e[r]=e[r]||{},e[r].normal?o.merge(e[r].normal,a[r]):e[r].normal=a[r],a[r]=null),s&&s[r]&&(e[r]=e[r]||{},e[r].emphasis?o.merge(e[r].emphasis,s[r]):e[r].emphasis=s[r],s[r]=null)}}function Y(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var i=e[t].normal,r=e[t].emphasis;i&&(n?(e[t].normal=e[t].emphasis=null,o.defaults(e[t],i)):e[t]=i),r&&(e.emphasis=e.emphasis||{},e.emphasis[t]=r,r.focus&&(e.emphasis.focus=r.focus),r.blurScope&&(e.emphasis.blurScope=r.blurScope))}}function X(e){Y(e,"itemStyle"),Y(e,"lineStyle"),Y(e,"areaStyle"),Y(e,"label"),Y(e,"labelLine"),Y(e,"upperLabel"),Y(e,"edgeLabel")}function Z(e,t){var n=H(e)&&e[t],i=H(n)&&n.textStyle;if(i){0;for(var r=0,o=u.JS.length;r<o;r++){var a=u.JS[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}}function j(e){e&&(X(e),Z(e,"label"),e.emphasis&&Z(e.emphasis,"label"))}function q(e){if(H(e)){U(e),X(e),Z(e,"label"),Z(e,"upperLabel"),Z(e,"edgeLabel"),e.emphasis&&(Z(e.emphasis,"label"),Z(e.emphasis,"upperLabel"),Z(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(U(t),j(t));var n=e.markLine;n&&(U(n),j(n));var i=e.markArea;i&&j(i);var r=e.data;if("graph"===e.type){r=r||e.nodes;var a=e.links||e.edges;if(a&&!o.isTypedArray(a))for(var s=0;s<a.length;s++)j(a[s]);o.each(e.categories,(function(e){X(e)}))}if(r&&!o.isTypedArray(r))for(s=0;s<r.length;s++)j(r[s]);if(t=e.markPoint,t&&t.data){var l=t.data;for(s=0;s<l.length;s++)j(l[s])}if(n=e.markLine,n&&n.data){var u=n.data;for(s=0;s<u.length;s++)o.isArray(u[s])?(j(u[s][0]),j(u[s][1])):j(u[s])}"gauge"===e.type?(Z(e,"axisLabel"),Z(e,"title"),Z(e,"detail")):"treemap"===e.type?(Y(e.breadcrumb,"itemStyle"),o.each(e.levels,(function(e){X(e)}))):"tree"===e.type&&X(e.leaves)}}function $(e){return o.isArray(e)?e:e?[e]:[]}function K(e){return(o.isArray(e)?e[0]:e)||{}}function J(e,t){F($(e.series),(function(e){H(e)&&q(e)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),F(n,(function(t){F($(e[t]),(function(e){e&&(Z(e,"axisLabel"),Z(e.axisPointer,"label"))}))})),F($(e.parallel),(function(e){var t=e&&e.parallelAxisDefault;Z(t,"axisLabel"),Z(t&&t.axisPointer,"label")})),F($(e.calendar),(function(e){Y(e,"itemStyle"),Z(e,"dayLabel"),Z(e,"monthLabel"),Z(e,"yearLabel")})),F($(e.radar),(function(e){Z(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap)})),F($(e.geo),(function(e){H(e)&&(j(e),F($(e.regions),(function(e){j(e)})))})),F($(e.timeline),(function(e){j(e),Y(e,"label"),Y(e,"itemStyle"),Y(e,"controlStyle",!0);var t=e.data;o.isArray(t)&&o.each(t,(function(e){o.isObject(e)&&(Y(e,"label"),Y(e,"itemStyle"))}))})),F($(e.toolbox),(function(e){Y(e,"iconStyle"),F(e.feature,(function(e){Y(e,"iconStyle")}))})),Z(K(e.axisPointer),"label"),Z(K(e.tooltip).axisPointer,"label")}function Q(e,t){for(var n=t.split(","),i=e,r=0;r<n.length;r++)if(i=i&&i[n[r]],null==i)break;return i}function ee(e,t,n,i){for(var r,o=t.split(","),a=e,s=0;s<o.length-1;s++)r=o[s],null==a[r]&&(a[r]={}),a=a[r];(i||null==a[o[s]])&&(a[o[s]]=n)}function te(e){e&&(0,o.each)(ne,(function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])}))}var ne=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],ie=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],re=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function oe(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<re.length;n++){var i=re[n][1],r=re[n][0];null!=t[i]&&(t[r]=t[i])}}function ae(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function se(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function le(e){e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(e.emphasis.focus="adjacency"))}function ue(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&ue(e[n].children,t)}function ce(e,t){J(e,t),e.series=(0,u.qB)(e.series),(0,o.each)(e.series,(function(e){if((0,o.isObject)(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t){null!=e.clockWise&&(e.clockwise=e.clockWise),ae(e.label);var n=e.data;if(n&&!(0,o.isTypedArray)(n))for(var i=0;i<n.length;i++)ae(n[i]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if("gauge"===t){var r=Q(e,"pointer.color");null!=r&&ee(e,"itemStyle.color",r)}else if("bar"===t){oe(e),oe(e.backgroundStyle),oe(e.emphasis);n=e.data;if(n&&!(0,o.isTypedArray)(n))for(i=0;i<n.length;i++)"object"===typeof n[i]&&(oe(n[i]),oe(n[i]&&n[i].emphasis))}else if("sunburst"===t){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),se(e),ue(e.data,se)}else"graph"===t||"sankey"===t?le(e):"map"===t&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&(0,o.defaults)(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),te(e)}})),e.dataRange&&(e.visualMap=e.dataRange),(0,o.each)(ie,(function(t){var n=e[t];n&&((0,o.isArray)(n)||(n=[n]),(0,o.each)(n,(function(e){te(e)})))}))}var he=n(6471);function de(e){var t=(0,o.createHashMap)();e.eachSeries((function(e){var n=e.get("stack");if(n){var i=t.get(n)||t.set(n,[]),r=e.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:e};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}})),t.each(pe)}function pe(e){(0,o.each)(e,(function(t,n){var i=[],r=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,(function(o,u,c){var h,d,p=a.get(t.stackedDimension,c);if(isNaN(p))return r;s?d=a.getRawIndex(c):h=a.get(t.stackedByDimension,c);for(var f=NaN,g=n-1;g>=0;g--){var y=e[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,h)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if("all"===l||"positive"===l&&m>0||"negative"===l&&m<0||"samesign"===l&&p>=0&&m>0||"samesign"===l&&p<=0&&m<0){p=(0,he.Tr)(p,m),f=m;break}}}return i[0]=p,i[1]=f,i}))}))}var fe=n(6840),ge=n(126),ye=n(1829),me=n(6686),ve=n(4325),xe=n(2575),_e=n(7537),be=n(39),Se=n(5724),we=n(5750),Me=n(3029),Ae=n(7195),Ie=n(1256),Ce=(0,u.$r)(),Te={itemStyle:(0,Me.A)(Ae.L,!0),lineStyle:(0,Me.A)(Ie.m,!0)},De={lineStyle:"stroke",itemStyle:"fill"};function Le(e,t){var n=e.visualStyleMapper||Te[t];return n||(console.warn("Unknown style type '"+t+"'."),Te.itemStyle)}function ke(e,t){var n=e.visualDrawType||De[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var Oe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=e.getModel(i),a=Le(e,i),s=a(r),l=r.getShallow("decal");l&&(n.setVisual("decal",l),l.dirty=!0);var u=ke(e,i),c=s[u],h=(0,o.isFunction)(c)?c:null,d="auto"===s.fill||"auto"===s.stroke;if(!s[u]||h||d){var p=e.getColorFromPalette(e.name,null,t.getSeriesCount());s[u]||(s[u]=p,n.setVisual("colorFromPalette",!0)),s.fill="auto"===s.fill||(0,o.isFunction)(s.fill)?p:s.fill,s.stroke="auto"===s.stroke||(0,o.isFunction)(s.stroke)?p:s.stroke}if(n.setVisual("style",s),n.setVisual("drawType",u),!t.isSeriesFiltered(e)&&h)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var i=e.getDataParams(n),r=(0,o.extend)({},s);r[u]=h(i),t.setItemVisual(n,"style",r)}}}},Pe=new c.A,Ne={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=Le(e,i),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[i]){Pe.option=n[i];var s=r(Pe),l=e.ensureUniqueItemVisual(t,"style");(0,o.extend)(l,s),Pe.option.decal&&(e.setItemVisual(t,"decal",Pe.option.decal),Pe.option.decal.dirty=!0),a in s&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},Re={performRawSeries:!0,overallReset:function(e){var t=(0,o.createHashMap)();e.eachSeries((function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,r=t.get(i);r||(r={},t.set(i,r)),Ce(e).scope=r}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),i={},r=t.getData(),o=Ce(t).scope,a=t.visualStyleAccessPath||"itemStyle",s=ke(t,a);r.each((function(e){var t=r.getRawIndex(e);i[t]=e})),n.each((function(e){var a=i[e],l=r.getItemVisual(a,"colorFromPalette");if(l){var u=r.ensureUniqueItemVisual(a,"style"),c=n.getName(e)||e+"",h=n.count();u[s]=t.getColorFromPalette(c,o,h)}}))}}))}},Ee=n(3947),Ve=n(9225),ze=n(5910),Be=Math.PI;function Ge(e,t){t=t||{},o.defaults(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Ee.A,i=new me.A({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(i);var r,a=new Ve.Ay({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),s=new me.A({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(s),t.showSpinner&&(r=new ze.A({shape:{startAngle:-Be/2,endAngle:-Be/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),r.animateShape(!0).when(1e3,{endAngle:3*Be/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Be/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=a.getBoundingRect().width,o=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*o-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:o),u=e.getHeight()/2;t.showSpinner&&r.setShape({cx:l,cy:u}),s.setShape({x:l-o,y:u-o,width:2*o,height:2*o}),i.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var Fe=n(6962),He=n(4839),We=function(){function e(e,t,n,i){this._stageTaskMap=(0,o.createHashMap)(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,r=!t&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=r?n.step:null,a=i&&i.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),i=e.getData(),r=i.count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,a=e.get("large")&&r>=e.get("largeThreshold"),s="mod"===e.get("progressiveChunkMode")?r:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=(0,o.createHashMap)();e.eachSeries((function(e){var i=e.getProgressive(),r=e.uid;n.set(r,{id:r,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:i&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;(0,o.each)(this._allHandlers,(function(i){var r=e.get(i.uid)||e.set(i.uid,{}),a="";(0,o.assert)(!(i.reset&&i.overallReset),a),i.reset&&this._createSeriesStageTask(i,r,t,n),i.overallReset&&this._createOverallStageTask(i,r,t,n)}),this)},e.prototype.prepareView=function(e,t,n,i){var r=e.renderTask,o=r.context;o.model=t,o.ecModel=n,o.api=i,r.__block=!e.incrementalPrepareRender,this._pipe(t,r)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,i){i=i||{};var r=!1,a=this;function s(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}(0,o.each)(e,(function(e,o){if(!i.visualType||i.visualType===e.visualType){var l=a._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each((function(e){s(i,e)&&(e.dirty(),h=!0)})),h&&c.dirty(),a.updatePayload(c,n);var p=a.getPerformArgs(c,i.block);d.each((function(e){e.perform(p)})),c.perform(p)&&(r=!0)}else u&&u.each((function(o,l){s(i,o)&&o.dirty();var u=a.getPerformArgs(o,i.block);u.skip=!e.performRawSeries&&t.isSeriesFiltered(o.context.model),a.updatePayload(o,n),o.perform(u)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t=e.dataTask.perform()||t})),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,i){var r=this,a=t.seriesTaskMap,s=t.seriesTaskMap=(0,o.createHashMap)(),l=e.seriesType,u=e.getTargetSeries;function c(t){var o=t.uid,l=s.set(o,a&&a.get(o)||(0,Fe.U)({plan:je,reset:qe,count:Je}));l.context={model:t,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:r},r._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c)},e.prototype._createOverallStageTask=function(e,t,n,i){var r=this,a=t.overallTask=t.overallTask||(0,Fe.U)({reset:Ue});a.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:r};var s=a.agentStubMap,l=a.agentStubMap=(0,o.createHashMap)(),u=e.seriesType,c=e.getTargetSeries,h=!0,d=!1,p="";function f(e){var t=e.uid,n=l.set(t,s&&s.get(t)||(d=!0,(0,Fe.U)({reset:Ye,onDirty:Ze})));n.context={model:e,overallProgress:h},n.agent=a,n.__block=h,r._pipe(e,n)}(0,o.assert)(!e.createOnAllSeries,p),u?n.eachRawSeriesByType(u,f):c?c(n,i).each(f):(h=!1,(0,o.each)(n.getSeries(),f)),d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},e.wrapStageHandler=function(e,t){return(0,o.isFunction)(e)&&(e={overallReset:e,seriesType:Qe(e)}),e.uid=(0,He.$Q)("stageHandler"),t&&(e.visualType=t),e},e}();function Ue(e){e.overallReset(e.ecModel,e.api,e.payload)}function Ye(e){return e.overallProgress&&Xe}function Xe(){this.agent.dirty(),this.getDownstream().dirty()}function Ze(){this.agent&&this.agent.dirty()}function je(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function qe(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=(0,u.qB)(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?(0,o.map)(t,(function(e,t){return Ke(t)})):$e}var $e=Ke(0);function Ke(e){return function(t,n){var i=n.data,r=n.resetDefines[e];if(r&&r.dataEach)for(var o=t.start;o<t.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(t,i)}}function Je(e){return e.data.count()}function Qe(e){et=null;try{e(tt,nt)}catch(e){}return et}var et,tt={},nt={};function it(e,t){for(var n in t.prototype)e[n]=o.noop}it(tt,D),it(nt,O),tt.eachSeriesByType=tt.eachRawSeriesByType=function(e){et=e},tt.eachComponent=function(e){"series"===e.mainType&&e.subType&&(et=e.subType)};const rt=We;var ot=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const at={color:ot,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],ot]};var st="#B9B8CE",lt="#100C2A",ut=function(){return{axisLine:{lineStyle:{color:st}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},ct=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],ht={darkMode:!0,color:ct,backgroundColor:lt,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:st},pageTextStyle:{color:st}},textStyle:{color:st},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:st}},dataZoom:{borderColor:"#71708A",textStyle:{color:st},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:st}},timeline:{lineStyle:{color:st},label:{color:st},controlStyle:{color:st,borderColor:st}},calendar:{itemStyle:{color:lt},dayLabel:{color:st},monthLabel:{color:st},yearLabel:{color:st}},timeAxis:ut(),logAxis:ut(),valueAxis:ut(),categoryAxis:ut(),line:{symbol:"circle"},graph:{color:ct},gauge:{title:{color:st},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:st},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};ht.categoryAxis.splitLine.show=!1;const dt=ht;var pt=n(6706),ft=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},i={};if(o.isString(e)){var r=(0,pt.CC)(e);t.mainType=r.main||null,t.subType=r.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};o.each(e,(function(e,r){for(var o=!1,l=0;l<a.length;l++){var u=a[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(t.mainType=h,t[u.toLowerCase()]=e,o=!0)}}s.hasOwnProperty(r)&&(n[r]=e,o=!0),o||(i[r]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:i}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=t.cptQuery,l=t.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,i,r));function u(e,t,n,i){return null==e[n]||t[i||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),gt=["symbol","symbolSize","symbolRotate","symbolOffset"],yt=gt.concat(["symbolKeepAspect"]),mt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var i={},r={},a=!1,s=0;s<gt.length;s++){var l=gt[s],u=e.get(l);(0,o.isFunction)(u)?(a=!0,r[l]=u):i[l]=u}if(i.symbol=i.symbol||e.defaultSymbol,n.setVisual((0,o.extend)({legendIcon:e.legendIcon||i.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},i)),!t.isSeriesFiltered(e)){var c=(0,o.keys)(r);return{dataEach:a?h:null}}}function h(t,n){for(var i=e.getRawValue(n),o=e.getDataParams(n),a=0;a<c.length;a++){var s=c[a];t.setItemVisual(n,s,r[s](i,o))}}}},vt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e)){var n=e.getData();return{dataEach:n.hasItemOption?i:null}}function i(e,t){for(var n=e.getItemModel(t),i=0;i<yt.length;i++){var r=yt[i],o=n.getShallow(r,!0);null!=o&&e.setItemVisual(t,r,o)}}}},xt=n(7566),_t=n(3682),bt=n(9808),St=n(9093),wt=n(8238),Mt=n(2628),At=n(2766);function It(e,t){e.eachRawSeries((function(n){if(!e.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(e){var n=i.getItemVisual(e,"decal");if(n){var r=i.ensureUniqueItemVisual(e,"style");r.decal=(0,At.w)(n,t)}}));var r=i.getVisual("decal");if(r){var o=i.getVisual("style");o.decal=(0,At.w)(r,t)}}}))}var Ct=new l.A;const Tt=Ct;var Dt=n(4124),Lt=n(8933),kt="5.6.0",Ot={zrender:"5.6.1"},Pt=1,Nt=800,Rt=900,Et=1e3,Vt=2e3,zt=5e3,Bt=1e3,Gt=1100,Ft=2e3,Ht=3e3,Wt=4e3,Ut=4500,Yt=4600,Xt=5e3,Zt=6e3,jt=7e3,qt={PROCESSOR:{FILTER:Et,SERIES_FILTER:Nt,STATISTIC:zt},VISUAL:{LAYOUT:Bt,PROGRESSIVE_LAYOUT:Gt,GLOBAL:Ft,CHART:Ht,POST_CHART_LAYOUT:Yt,COMPONENT:Wt,BRUSH:Xt,CHART_ITEM:Ut,ARIA:Zt,DECAL:jt}},$t="__flagInMainProcess",Kt="__pendingUpdate",Jt="__needsUpdateStatus",Qt=/^[a-zA-Z0-9_]+$/,en="__connectUpdateStatus",tn=0,nn=1,rn=2;function on(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return sn(this,e,t);kn(this.id)}}function an(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return sn(this,e,t)}}function sn(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),l.A.prototype[t].apply(e,n)}var ln,un,cn,hn,dn,pn,fn,gn,yn,mn,vn,xn,_n,bn,Sn,wn,Mn,An,In=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t}(l.A),Cn=In.prototype;Cn.on=an("on"),Cn.off=an("off");var Tn=function(e){function t(t,n,i){var a=e.call(this,new ft)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},(0,o.isString)(n)&&(n=Vn[n]),a._dom=t;var l="canvas",u="auto",c=!1;i.ssr&&r.registerSSRDataGetter((function(e){var t=(0,be.z)(e),n=t.dataIndex;if(null!=n){var i=(0,o.createHashMap)();return i.set("series_index",t.seriesIndex),i.set("data_index",n),t.ssrType&&i.set("ssr_type",t.ssrType),i}}));var h=a._zr=r.init(t,{renderer:i.renderer||l,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:(0,o.retrieve2)(i.useDirtyRect,c),useCoarsePointer:(0,o.retrieve2)(i.useCoarsePointer,u),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=(0,we.nF)((0,o.bind)(h.flush,h),17),n=(0,o.clone)(n),n&&ce(n,!0),a._theme=n,a._locale=(0,wt.A$)(i.locale||wt.Lv),a._coordSysMgr=new P.A;var d=a._api=Sn(a);function p(e,t){return e.__prio-t.__prio}return(0,s.A)(En,p),(0,s.A)(Nn,p),a._scheduler=new rt(a,d,Nn,En),a._messageCenter=new In,a._initEvents(),a.resize=(0,o.bind)(a.resize,a),h.animation.on("frame",a._onframe,a),mn(h,a),vn(h,a),(0,o.setAsPrimitive)(a),a}return(0,i.C6)(t,e),t.prototype._onframe=function(){if(!this._disposed){An(this);var e=this._scheduler;if(this[Kt]){var t=this[Kt].silent;this[$t]=!0;try{ln(this),hn.update.call(this,null,this[Kt].updateParams)}catch(e){throw this[$t]=!1,this[Kt]=null,e}this._zr.flush(),this[$t]=!1,this[Kt]=null,gn.call(this,t),yn.call(this,t)}else if(e.unfinished){var n=Pt,i=this._model,r=this._api;e.unfinished=!1;do{var o=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),pn(this,i),e.performVisualTasks(i),bn(this,this._model,r,"remain",{}),n-=+new Date-o}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[$t])if(this._disposed)kn(this.id);else{var i,r,a;if((0,o.isObject)(t)&&(n=t.lazyUpdate,i=t.silent,r=t.replaceMerge,a=t.transition,t=t.notMerge),this[$t]=!0,!this._model||t){var s=new G(this._api),l=this._theme,u=this._model=new D;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,l,this._locale,s)}this._model.setOption(e,{replaceMerge:r},Rn);var c={seriesTransition:a,optionChanged:!0};if(n)this[Kt]={silent:i,updateParams:c},this[$t]=!1,this.getZr().wakeUp();else{try{ln(this),hn.update.call(this,null,c)}catch(e){throw this[Kt]=null,this[$t]=!1,e}this._ssr||this._zr.flush(),this[Kt]=null,this[$t]=!1,gn.call(this,i),yn.call(this,i)}}},t.prototype.setTheme=function(){(0,_t.aT)("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||a.A.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var t=this._zr.painter;return t.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var t=this._zr.painter;return t.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(a.A.svgSupported){var e=this._zr,t=e.storage.getDisplayList();return(0,o.each)(t,(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){e=e||{};var t=e.excludeComponents,n=this._model,i=[],r=this;(0,o.each)(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=r._componentsMap[e.__viewId];t.group.ignore||(i.push(t),t.group.ignore=!0)}))}));var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return(0,o.each)(i,(function(e){e.group.ignore=!1})),a}kn(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,i=Math.min,a=Math.max,s=1/0;if(Gn[n]){var l=s,u=s,c=-s,h=-s,d=[],p=e&&e.pixelRatio||this.getDevicePixelRatio();(0,o.each)(Bn,(function(r,s){if(r.group===n){var p=t?r.getZr().painter.getSvgDom().innerHTML:r.renderToCanvas((0,o.clone)(e)),f=r.getDom().getBoundingClientRect();l=i(f.left,l),u=i(f.top,u),c=a(f.right,c),h=a(f.bottom,h),d.push({dom:p,left:f.left,top:f.top})}})),l*=p,u*=p,c*=p,h*=p;var f=c-l,g=h-u,y=Dt.yh.createCanvas(),m=r.init(y,{renderer:t?"svg":"canvas"});if(m.resize({width:f,height:g}),t){var v="";return(0,o.each)(d,(function(e){var t=e.left-l,n=e.top-u;v+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"})),m.painter.getSvgRoot().innerHTML=v,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}return e.connectedBackgroundColor&&m.add(new me.A({shape:{x:0,y:0,width:f,height:g},style:{fill:e.connectedBackgroundColor}})),(0,o.each)(d,(function(e){var t=new ve.Ay({style:{x:e.left*p-l,y:e.top*p-u,image:e.dom}});m.add(t)})),m.refreshImmediately(),y.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}kn(this.id)},t.prototype.convertToPixel=function(e,t){return dn(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return dn(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){if(!this._disposed){var n,i=this._model,r=u._e(i,e);return(0,o.each)(r,(function(e,i){i.indexOf("Models")>=0&&(0,o.each)(e,(function(e){var r=e.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(t);else if("seriesModels"===i){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(n=n||o.containPoint(t,e))}else 0}),this)}),this),!!n}kn(this.id)},t.prototype.getVisual=function(e,t){var n=this._model,i=u._e(n,e,{defaultMainType:"series"}),r=i.seriesModel;var o=r.getData(),a=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?o.indexOfRawIndex(i.dataIndex):null;return null!=a?(0,xt.Ez)(o,a,t):(0,xt.rI)(o,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;(0,o.each)(Ln,(function(t){var n=function(n){var i,r=e.getModel(),a=n.target,s="globalout"===t;if(s?i={}:a&&(0,Mt.R)(a,(function(e){var t=(0,be.z)(e);if(t&&null!=t.dataIndex){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return i=n&&n.getDataParams(t.dataIndex,t.dataType,a)||{},!0}if(t.eventData)return i=(0,o.extend)({},t.eventData),!0}),!0),i){var l=i.componentType,u=i.componentIndex;"markLine"!==l&&"markPoint"!==l&&"markArea"!==l||(l="series",u=i.seriesIndex);var c=l&&null!=u&&r.getComponent(l,u),h=c&&e["series"===c.mainType?"_chartsMap":"_componentsMap"][c.__viewId];0,i.event=n,i.type=t,e._$eventProcessor.eventInfo={targetEl:a,packedEvent:i,model:c,view:h},e.trigger(t,i)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)})),(0,o.each)(Pn,(function(t,n){e._messageCenter.on(n,(function(e){this.trigger(n,e)}),e)})),(0,o.each)(["selectchanged"],(function(t){e._messageCenter.on(t,(function(e){this.trigger(t,e)}),e)})),(0,bt.l)(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?kn(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)kn(this.id);else{this._disposed=!0;var e=this.getDom();e&&u.Bq(this.getDom(),Wn,"");var t=this,n=t._api,i=t._model;(0,o.each)(t._componentsViews,(function(e){e.dispose(i,n)})),(0,o.each)(t._chartsViews,(function(e){e.dispose(i,n)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete Bn[t.id]}},t.prototype.resize=function(e){if(!this[$t])if(this._disposed)kn(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),i=e&&e.silent;this[Kt]&&(null==i&&(i=this[Kt].silent),n=!0,this[Kt]=null),this[$t]=!0;try{n&&ln(this),hn.update.call(this,{type:"resize",animation:(0,o.extend)({duration:0},e&&e.animation)})}catch(e){throw this[$t]=!1,e}this[$t]=!1,gn.call(this,i),yn.call(this,i)}}},t.prototype.showLoading=function(e,t){if(this._disposed)kn(this.id);else if((0,o.isObject)(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),zn[e]){var n=zn[e](this._api,t),i=this._zr;this._loadingFX=n,i.add(n)}},t.prototype.hideLoading=function(){this._disposed?kn(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=(0,o.extend)({},e);return t.type=Pn[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)kn(this.id);else if((0,o.isObject)(t)||(t={silent:!!t}),On[e.type]&&this._model)if(this[$t])this._pendingActions.push(e);else{var n=t.silent;fn.call(this,e,n);var i=t.flush;i?this._zr.flush():!1!==i&&a.A.browser.weChat&&this._throttledZrFlush(),gn.call(this,n),yn.call(this,n)}},t.prototype.updateLabelLayout=function(){Tt.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)kn(this.id);else{var t=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(t);0,i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function t(e){var t=[],n=[],i=!1;if(e.eachComponent((function(e,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===e?n:t).push({zlevel:o,z:a,idx:r.componentIndex,type:e,key:s})})),i){var r,a,l=t.concat(n);(0,s.A)(l,(function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel})),(0,o.each)(l,(function(t){var n=e.getComponent(t.type,t.idx),i=t.zlevel,o=t.key;null!=r&&(i=Math.max(r,i)),o?(i===r&&o!==a&&i++,a=o):a&&(i===r&&i++,a=""),r=i,n.setZLevel(i)}))}}function n(e){for(var t=[],n=e.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&t.push(r)}e.selected&&e.states.select&&t.push("select"),e.hoverState===Se.e3&&e.states.emphasis?t.push("emphasis"):e.hoverState===Se.zX&&e.states.blur&&t.push("blur"),e.useStates(t)}function r(e,t){var n=e._zr,i=n.storage,r=0;i.traverse((function(e){e.isGroup||r++})),r>t.get("hoverLayerThreshold")&&!a.A.node&&!a.A.worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}function l(e,t){var n=e.get("blendMode")||null;t.eachRendered((function(e){e.isGroup||(e.style.blend=n)}))}function c(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,i=e.get("zlevel")||0;t.eachRendered((function(e){return h(e,n,i,-1/0),!0}))}}function h(e,t,n,i){var r=e.getTextContent(),o=e.getTextGuideLine(),a=e.isGroup;if(a)for(var s=e.childrenRef(),l=0;l<s.length;l++)i=Math.max(h(s[l],t,n,i),i);else e.z=t,e.zlevel=n,i=Math.max(e.z2,i);if(r&&(r.z=t,r.zlevel=n,isFinite(i)&&(r.z2=i+2)),o){var u=e.textGuideLineConfig;o.z=t,o.zlevel=n,isFinite(i)&&(o.z2=i+(u&&u.showAbove?1:-1))}return i}function d(e,t){t.eachRendered((function(e){if(!xe.LR(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}}))}function p(e,t){var i=e.getModel("stateAnimation"),r=e.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;t.eachRendered((function(e){if(e.states&&e.states.emphasis){if(xe.LR(e))return;if(e instanceof _e.Ay&&(0,Se.fz)(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(r){e.stateTransition=a;var i=e.getTextContent(),o=e.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&n(e)}}))}ln=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),un(e,!0),un(e,!1),t.plan()},un=function(e,t){for(var n=e._model,i=e._scheduler,r=t?e._componentsViews:e._chartsViews,o=t?e._componentsMap:e._chartsMap,a=e._zr,s=e._api,l=0;l<r.length;l++)r[l].__alive=!1;function u(e){var l=e.__requireNewView;e.__requireNewView=!1;var u="_ec_"+e.id+"_"+e.type,c=!l&&o[u];if(!c){var h=(0,pt.CC)(e.type),d=t?ge.A.getClass(h.main,h.sub):ye.A.getClass(h.sub);0,c=new d,c.init(n,s),o[u]=c,r.push(c),a.add(c.group)}e.__viewId=c.__id=u,c.__alive=!0,c.__model=e,c.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&i.prepareView(c,e,n,s)}t?n.eachComponent((function(e,t){"series"!==e&&u(t)})):n.eachSeries(u);for(l=0;l<r.length;){var c=r[l];c.__alive?l++:(!t&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),r.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},cn=function(e,t,n,i,r){var a=e._model;if(a.setUpdatePayload(n),i){var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};r&&(l.subType=r);var c,h=n.excludeSeriesId;null!=h&&(c=(0,o.createHashMap)(),(0,o.each)(u.qB(h),(function(e){var t=u.vS(e,null);null!=t&&c.set(t,!0)}))),a&&a.eachComponent(l,(function(t){var i=c&&null!=c.get(t.id);if(!i)if((0,Se.T$)(n))if(t instanceof fe.A)n.type!==Se.h5||n.notBlur||t.get(["emphasis","disabled"])||(0,Se.lV)(t,n,e._api);else{var r=(0,Se.Tl)(t.mainType,t.componentIndex,n.name,e._api),a=r.focusSelf,s=r.dispatchers;n.type===Se.h5&&a&&!n.notBlur&&(0,Se.Du)(t.mainType,t.componentIndex,e._api),s&&(0,o.each)(s,(function(e){n.type===Se.h5?(0,Se.HY)(e):(0,Se.SD)(e)}))}else(0,Se.Lx)(n)&&t instanceof fe.A&&((0,Se.t6)(t,n,e._api),(0,Se.jA)(t),Mn(e))}),e),a&&a.eachComponent(l,(function(t){var n=c&&null!=c.get(t.id);n||d(e["series"===i?"_chartsMap":"_componentsMap"][t.__viewId])}),e)}else(0,o.each)([].concat(e._componentsViews).concat(e._chartsViews),d);function d(i){i&&i.__alive&&i[t]&&i[t](i.__model,a,e._api,n)}},hn={prepareAndUpdate:function(e){ln(this),hn.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(t,n){var i=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(t),s.restoreData(i,t),s.performSeriesTasks(i),a.create(i,r),s.performDataProcessorTasks(i,t),pn(this,i),a.update(i,r),e(i),s.performVisualTasks(i,t),xn(this,i,r,t,n);var l=i.get("backgroundColor")||"transparent",u=i.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),Tt.trigger("afterupdate",i,r)}},updateTransform:function(t){var n=this,i=this._model,r=this._api;if(i){i.setUpdatePayload(t);var a=[];i.eachComponent((function(e,o){if("series"!==e){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,i,r,t);l&&l.update&&a.push(s)}else a.push(s)}}));var s=(0,o.createHashMap)();i.eachSeries((function(e){var o=n._chartsMap[e.__viewId];if(o.updateTransform){var a=o.updateTransform(e,i,r,t);a&&a.update&&s.set(e.uid,1)}else s.set(e.uid,1)})),e(i),this._scheduler.performVisualTasks(i,t,{setDirty:!0,dirtyMap:s}),bn(this,i,r,t,{},s),Tt.trigger("afterupdate",i,r)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),ye.A.markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),xn(this,n,this._api,t,{}),Tt.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,i=this._model;i&&(i.setUpdatePayload(t),i.eachSeries((function(e){e.getData().clearAllVisual()})),ye.A.markUpdateMethod(t,"updateVisual"),e(i),this._scheduler.performVisualTasks(i,t,{visualType:"visual",setDirty:!0}),i.eachComponent((function(e,r){if("series"!==e){var o=n.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,n._api,t)}})),i.eachSeries((function(e){var r=n._chartsMap[e.__viewId];r.updateVisual(e,i,n._api,t)})),Tt.trigger("afterupdate",i,this._api))},updateLayout:function(e){hn.update.call(this,e)}},dn=function(e,t,n,i){if(e._disposed)kn(e.id);else{for(var r,o=e._model,a=e._coordSysMgr.getCoordinateSystems(),s=u._e(o,n),l=0;l<a.length;l++){var c=a[l];if(c[t]&&null!=(r=c[t](o,s,i)))return r}0}},pn=function(e,t){var n=e._chartsMap,i=e._scheduler;t.eachSeries((function(e){i.updateStreamModes(e,n[e.__viewId])}))},fn=function(e,t){var n=this,i=this.getModel(),r=e.type,a=e.escapeConnect,s=On[r],l=s.actionInfo,c=(l.update||"update").split(":"),h=c.pop(),d=null!=c[0]&&(0,pt.CC)(c[0]);this[$t]=!0;var p=[e],f=!1;e.batch&&(f=!0,p=(0,o.map)(e.batch,(function(t){return t=(0,o.defaults)((0,o.extend)({},t),e),t.batch=null,t})));var g,y=[],m=(0,Se.Lx)(e),v=(0,Se.T$)(e);if(v&&(0,Se.qR)(this._api),(0,o.each)(p,(function(t){if(g=s.action(t,n._model,n._api),g=g||(0,o.extend)({},t),g.type=l.event||g.type,y.push(g),v){var i=u.HB(e),r=i.queryOptionMap,a=i.mainTypeSpecified,c=a?r.keys()[0]:"series";cn(n,h,t,c),Mn(n)}else m?(cn(n,h,t,"series"),Mn(n)):d&&cn(n,h,t,d.main,d.sub)})),"none"!==h&&!v&&!m&&!d)try{this[Kt]?(ln(this),hn.update.call(this,e),this[Kt]=null):hn[h].call(this,e)}catch(e){throw this[$t]=!1,e}if(g=f?{type:l.event||r,escapeConnect:a,batch:y}:y[0],this[$t]=!1,!t){var x=this._messageCenter;if(x.trigger(g.type,g),m){var _={type:"selectchanged",escapeConnect:a,selected:(0,Se.mc)(i),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};x.trigger(_.type,_)}}},gn=function(e){var t=this._pendingActions;while(t.length){var n=t.shift();fn.call(this,n,e)}},yn=function(e){!e&&this.trigger("updated")},mn=function(e,t){e.on("rendered",(function(n){t.trigger("rendered",n),!e.animation.isFinished()||t[Kt]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))},vn=function(e,t){e.on("mouseover",(function(e){var n=e.target,i=(0,Mt.R)(n,Se.u6);i&&((0,Se._m)(i,e,t._api),Mn(t))})).on("mouseout",(function(e){var n=e.target,i=(0,Mt.R)(n,Se.u6);i&&((0,Se.Iz)(i,e,t._api),Mn(t))})).on("click",(function(e){var n=e.target,i=(0,Mt.R)(n,(function(e){return null!=(0,be.z)(e).dataIndex}),!0);if(i){var r=i.selected?"unselect":"select",o=(0,be.z)(i);t._api.dispatchAction({type:r,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}}))},xn=function(e,n,i,r,a){t(n),_n(e,n,i,r,a),(0,o.each)(e._chartsViews,(function(e){e.__alive=!1})),bn(e,n,i,r,a),(0,o.each)(e._chartsViews,(function(e){e.__alive||e.remove(n,i)}))},_n=function(e,t,n,i,r,a){(0,o.each)(a||e._componentsViews,(function(e){var r=e.__model;d(r,e),e.render(r,t,n,i),c(r,e),p(r,e)}))},bn=function(e,t,n,i,a,s){var u=e._scheduler;a=(0,o.extend)(a||{},{updatedSeries:t.getSeries()}),Tt.trigger("series:beforeupdate",t,n,a);var h=!1;t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var r=n.renderTask;u.updatePayload(r,i),d(t,n),s&&s.get(t.uid)&&r.dirty(),r.perform(u.getPerformArgs(r))&&(h=!0),n.group.silent=!!t.get("silent"),l(t,n),(0,Se.jA)(t)})),u.unfinished=h||u.unfinished,Tt.trigger("series:layoutlabels",t,n,a),Tt.trigger("series:transition",t,n,a),t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];c(t,n),p(t,n)})),r(e,t),Tt.trigger("series:afterupdate",t,n,a)},Mn=function(e){e[Jt]=!0,e.getZr().wakeUp()},An=function(e){e[Jt]&&(e.getZr().storage.traverse((function(e){xe.LR(e)||n(e)})),e[Jt]=!1)},Sn=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){while(t){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){(0,Se.HY)(t,n),Mn(e)},n.prototype.leaveEmphasis=function(t,n){(0,Se.SD)(t,n),Mn(e)},n.prototype.enterBlur=function(t){(0,Se.QX)(t),Mn(e)},n.prototype.leaveBlur=function(t){(0,Se.JC)(t),Mn(e)},n.prototype.enterSelect=function(t){(0,Se.JI)(t),Mn(e)},n.prototype.leaveSelect=function(t){(0,Se.gd)(t),Mn(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(O))(e)},wn=function(e){function t(e,t){for(var n=0;n<e.length;n++){var i=e[n];i[en]=t}}(0,o.each)(Pn,(function(n,i){e._messageCenter.on(i,(function(n){if(Gn[e.group]&&e[en]!==tn){if(n&&n.escapeConnect)return;var i=e.makeActionFromEvent(n),r=[];(0,o.each)(Bn,(function(t){t!==e&&t.group===e.group&&r.push(t)})),t(r,tn),(0,o.each)(r,(function(e){e[en]!==nn&&e.dispatchAction(i)})),t(r,rn)}}))}))}}(),t}(l.A),Dn=Tn.prototype;Dn.on=on("on"),Dn.off=on("off"),Dn.one=function(e,t,n){var i=this;function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];t&&t.apply&&t.apply(this,n),i.off(e,r)}(0,_t.aT)("ECharts#one is deprecated."),this.on.call(this,e,r,n)};var Ln=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function kn(e){0}var On={},Pn={},Nn=[],Rn=[],En=[],Vn={},zn={},Bn={},Gn={},Fn=+new Date-0,Hn=+new Date-0,Wn="_echarts_instance_";function Un(e,t,n){var i=!(n&&n.ssr);if(i){0;var r=qn(e);if(r)return r;0}var o=new Tn(e,t,n);return o.id="ec_"+Fn++,Bn[o.id]=o,i&&u.Bq(e,Wn,o.id),wn(o),Tt.trigger("afterinit",o),o}function Yn(e){if((0,o.isArray)(e)){var t=e;e=null,(0,o.each)(t,(function(t){null!=t.group&&(e=t.group)})),e=e||"g_"+Hn++,(0,o.each)(t,(function(t){t.group=e}))}return Gn[e]=!0,e}function Xn(e){Gn[e]=!1}var Zn=Xn;function jn(e){(0,o.isString)(e)?e=Bn[e]:e instanceof Tn||(e=qn(e)),e instanceof Tn&&!e.isDisposed()&&e.dispose()}function qn(e){return Bn[u.D$(e,Wn)]}function $n(e){return Bn[e]}function Kn(e,t){Vn[e]=t}function Jn(e){(0,o.indexOf)(Rn,e)<0&&Rn.push(e)}function Qn(e,t){ui(Nn,e,t,Vt)}function ei(e){ni("afterinit",e)}function ti(e){ni("afterupdate",e)}function ni(e,t){Tt.on(e,t)}function ii(e,t,n){(0,o.isFunction)(t)&&(n=t,t="");var i=(0,o.isObject)(e)?e.type:[e,e={event:t}][0];e.event=(e.event||i).toLowerCase(),t=e.event,Pn[t]||((0,o.assert)(Qt.test(i)&&Qt.test(t)),On[i]||(On[i]={action:n,actionInfo:e}),Pn[t]=i)}function ri(e,t){P.A.register(e,t)}function oi(e){var t=P.A.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function ai(e,t){ui(En,e,t,Bt,"layout")}function si(e,t){ui(En,e,t,Ht,"visual")}var li=[];function ui(e,t,n,i,r){if(((0,o.isFunction)(t)||(0,o.isObject)(t))&&(n=t,t=i),!((0,o.indexOf)(li,n)>=0)){li.push(n);var a=rt.wrapStageHandler(n,r);a.__prio=t,a.__raw=n,e.push(a)}}function ci(e,t){zn[e]=t}function hi(e){(0,Dt.Gs)({createCanvas:e})}function di(e,t,n){var i=(0,Lt.v)("registerMap");i&&i(e,t,n)}function pi(e){var t=(0,Lt.v)("getMap");return t&&t(e)}var fi=St.v5;si(Ft,Oe),si(Ut,Ne),si(Ut,Re),si(Ft,mt),si(Ut,vt),si(jt,It),Jn(ce),Qn(Rt,de),ci("default",Ge),ii({type:Se.h5,event:Se.h5,update:Se.h5},o.noop),ii({type:Se.PW,event:Se.PW,update:Se.PW},o.noop),ii({type:Se.Lv,event:Se.Lv,update:Se.Lv},o.noop),ii({type:Se.U2,event:Se.U2,update:Se.U2},o.noop),ii({type:Se.Q6,event:Se.Q6,update:Se.Q6},o.noop),Kn("light",at),Kn("dark",dt);var gi={}},8933:(e,t,n)=>{n.d(t,{m:()=>r,v:()=>o});var i={};function r(e,t){i[e]=t}function o(e){return i[e]}},8238:(e,t,n)=>{n.d(t,{Lv:()=>p,A$:()=>g,pr:()=>m,A4:()=>y,E:()=>f});var i=n(9338),r=n(1688);const o={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},a={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var s=n(5279),l="ZH",u="EN",c=u,h={},d={},p=r.A.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||c).toUpperCase();return e.indexOf(l)>-1?l:c}():c;function f(e,t){e=e.toUpperCase(),d[e]=new i.A(t),h[e]=t}function g(e){if((0,s.isString)(e)){var t=h[e.toUpperCase()]||{};return e===l||e===u?(0,s.clone)(t):(0,s.merge)((0,s.clone)(t),(0,s.clone)(h[c]),!1)}return(0,s.merge)((0,s.clone)(e),(0,s.clone)(h[c]),!1)}function y(e){return d[e]}function m(){return d[c]}f(u,o),f(l,a)},6962:(e,t,n)=>{n.d(t,{U:()=>r});var i=n(5279);function r(e){return new o(e)}var o=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var o=this.context;o.data=o.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(t=this._plan(this.context));var a,s=h(this._modBy),l=this._modDataCount||0,u=h(e&&e.modBy),c=e&&e.modDataCount||0;function h(e){return!(e>=1)&&(e=1),e}s===u&&l===c||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,a=this._doReset(r)),this._modBy=u,this._modDataCount=c;var d=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(a||p<f)){var g=this._progress;if((0,i.isArray)(g))for(var y=0;y<g.length;y++)this._doProgress(g[y],p,f,u,c);else this._doProgress(g,p,f,u,c)}this._dueIndex=f;var m=null!=this._settedOutputEnd?this._settedOutputEnd:f;0,this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,i,r){a.reset(t,n,i,r),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:a.next},this.context)},e.prototype._doReset=function(e){var t,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),(0,i.isArray)(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),a=function(){var e,t,n,i,r,o={reset:function(l,u,c,h){t=l,e=u,n=c,i=h,r=Math.ceil(i/n),o.next=n>1&&i>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var o=t%r*n+Math.ceil(t/r),a=t>=e?null:o<i?o:t;return t++,a}}()},5253:(e,t,n)=>{n.d(t,{A_:()=>c,Ay:()=>v});var i,r=n(5279),o=n(3492),a=n(6627),s="undefined",l=typeof Uint32Array===s?Array:Uint32Array,u=typeof Uint16Array===s?Array:Uint16Array,c=typeof Int32Array===s?Array:Int32Array,h=typeof Float64Array===s?Array:Float64Array,d={float:h,int:c,ordinal:Array,number:Array,time:h};function p(e){return e>65535?l:u}function f(){return[1/0,-1/0]}function g(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function y(e,t,n,i,r){var o=d[n||"float"];if(r){var a=e[t],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;u<s;u++)l[u]=a[u];e[t]=l}}else e[t]=new o(i)}var m=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=(0,r.createHashMap)()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var o=e.getSource(),s=this.defaultDimValueGetter=i[o.sourceFormat];this._dimValueGetter=n||s,this._rawExtent=[];(0,a.O0)(o);this._dimensions=(0,r.map)(t,(function(e){return{type:e.type,property:e.property}})),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(e);if(null!=r){if(i[r].type===t)return r}else r=i.length;return i[r]={type:t},n.set(e,r),this._chunks[r]=new d[t||"float"](this._rawCount),this._rawExtent[r]=f(),r},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],i=this._dimensions[e],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[e]=f());for(var s=r[e],l=o;l<a;l++){var u=n[l]=t.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=t,i.ordinalOffset=a,i.type="ordinal"},e.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],n=t.ordinalMeta;return n},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var i=t.count();return t.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,o=r.length,a=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<o;u++){var c=r[u];y(n,u,c.type,l,!0)}for(var h=[],d=s;d<l;d++)for(var p=d-s,f=0;f<o;f++){c=r[f];var g=i.arrayRows.call(this,e[p]||h,c.property,p,f);n[f][d]=g;var m=a[f];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(e,t,n){for(var i=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=(0,r.map)(a,(function(e){return e.property})),c=0;c<s;c++){var h=a[c];l[c]||(l[c]=f()),y(o,c,h.type,t,n)}if(i.fillStorage)i.fillStorage(e,t,o,l);else for(var d=[],p=e;p<t;p++){d=i.getItem(p,d);for(var g=0;g<s;g++){var m=o[g],v=this._dimValueGetter(d,u[g],p,g);m[p]=v;var x=l[g];v<x[0]&&(x[0]=v),v>x[1]&&(x[1]=v)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],i=[];if(null==t){t=e,e=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=e;r=0;for(var o=i.length;r<o;r++)n.push(this.get(i[r],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var i=0,r=this.count();i<r;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],(function(e){isNaN(e)||t.push(e)}));var n=t.sort((function(e,t){return e-t})),i=this.count();return 0===i?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;var i=0,r=this._count-1;while(i<=r){var o=(i+r)/2|0;if(t[o]<e)i=o+1;else{if(!(t[o]>e))return o;r=o-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var i=this._chunks,r=i[e],o=[];if(!r)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,c=this.count();u<c;u++){var h=this.getRawIndex(u),d=t-r[h],p=Math.abs(d);p<=n&&((p<a||p===a&&d>=0&&s<0)&&(a=p,s=d,l=0),d===s&&(o[l++]=u))}return o.length=l,o},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,i=this._count;if(n===Array){e=new n(i);for(var r=0;r<i;r++)e[r]=t[r]}else e=new n(t.buffer,0,i)}else{n=p(this._rawCount);e=new n(this.count());for(r=0;r<e.length;r++)e[r]=r}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=p(n._rawCount),o=new r(i),a=[],s=e.length,l=0,u=e[0],c=n._chunks,h=0;h<i;h++){var d=void 0,f=n.getRawIndex(h);if(0===s)d=t(h);else if(1===s){var g=c[u][f];d=t(g,h)}else{for(var y=0;y<s;y++)a[y]=c[e[y]][f];a[y]=h,d=t.apply(null,a)}d&&(o[l++]=f)}return l<i&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var i=(0,r.keys)(e),o=i.length;if(!o)return this;var a=t.count(),s=p(t._rawCount),l=new s(a),u=0,c=i[0],h=e[c][0],d=e[c][1],f=t._chunks,g=!1;if(!t._indices){var y=0;if(1===o){for(var m=f[i[0]],v=0;v<n;v++){var x=m[v];(x>=h&&x<=d||isNaN(x))&&(l[u++]=y),y++}g=!0}else if(2===o){m=f[i[0]];var _=f[i[1]],b=e[i[1]][0],S=e[i[1]][1];for(v=0;v<n;v++){x=m[v];var w=_[v];(x>=h&&x<=d||isNaN(x))&&(w>=b&&w<=S||isNaN(w))&&(l[u++]=y),y++}g=!0}}if(!g)if(1===o)for(v=0;v<a;v++){var M=t.getRawIndex(v);x=f[i[0]][M];(x>=h&&x<=d||isNaN(x))&&(l[u++]=M)}else for(v=0;v<a;v++){for(var A=!0,I=(M=t.getRawIndex(v),0);I<o;I++){var C=i[I];x=f[C][M];(x<e[C][0]||x>e[C][1])&&(A=!1)}A&&(l[u++]=t.getRawIndex(v))}return u<a&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var i=e._chunks,r=[],o=t.length,a=e.count(),s=[],l=e._rawExtent,u=0;u<t.length;u++)l[t[u]]=f();for(var c=0;c<a;c++){for(var h=e.getRawIndex(c),d=0;d<o;d++)s[d]=i[t[d]][h];s[o]=c;var p=n&&n.apply(null,s);if(null!=p){"object"!==typeof p&&(r[0]=p,p=r);for(u=0;u<p.length;u++){var g=t[u],y=p[u],m=l[g],v=i[g];v&&(v[h]=y),y<m[0]&&(m[0]=y),y>m[1]&&(m[1]=y)}}}},e.prototype.lttbDownSample=function(e,t){var n,i,r,o=this.clone([e],!0),a=o._chunks,s=a[e],l=this.count(),u=0,c=Math.floor(1/t),h=this.getRawIndex(0),d=new(p(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));d[u++]=h;for(var f=1;f<l-1;f+=c){for(var g=Math.min(f+c,l-1),y=Math.min(f+2*c,l),m=(y+g)/2,v=0,x=g;x<y;x++){var _=this.getRawIndex(x),b=s[_];isNaN(b)||(v+=b)}v/=y-g;var S=f,w=Math.min(f+c,l),M=f-1,A=s[h];n=-1,r=S;var I=-1,C=0;for(x=S;x<w;x++){_=this.getRawIndex(x),b=s[_];isNaN(b)?(C++,I<0&&(I=_)):(i=Math.abs((M-m)*(b-A)-(M-x)*(v-A)),i>n&&(n=i,r=_))}C>0&&C<w-S&&(d[u++]=Math.min(I,r),r=Math.max(I,r)),d[u++]=r,h=r}return d[u++]=this.getRawIndex(l-1),o._count=u,o._indices=d,o.getRawIndex=this._getRawIdx,o},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),i=n._chunks,r=Math.floor(1/t),o=i[e],a=this.count(),s=new(p(this._rawCount))(2*Math.ceil(a/r)),l=0,u=0;u<a;u+=r){var c=u,h=o[this.getRawIndex(c)],d=u,f=o[this.getRawIndex(d)],g=r;u+r>a&&(g=a-u);for(var y=0;y<g;y++){var m=this.getRawIndex(u+y),v=o[m];v<h&&(h=v,c=u+y),v>f&&(f=v,d=u+y)}var x=this.getRawIndex(c),_=this.getRawIndex(d);c<d?(s[l++]=x,s[l++]=_):(s[l++]=_,s[l++]=x)}return n._count=l,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,i){for(var r=this.clone([e],!0),o=r._chunks,a=[],s=Math.floor(1/t),l=o[e],u=this.count(),c=r._rawExtent[e]=f(),h=new(p(this._rawCount))(Math.ceil(u/s)),d=0,g=0;g<u;g+=s){s>u-g&&(s=u-g,a.length=s);for(var y=0;y<s;y++){var m=this.getRawIndex(g+y);a[y]=l[m]}var v=n(a),x=this.getRawIndex(Math.min(g+i(a,v)||0,u-1));l[x]=v,v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v),h[d++]=x}return r._count=d,r._indices=h,r._updateGetRawIdx(),r},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,i=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(n){case 0:t(r);break;case 1:t(i[e[0]][a],r);break;case 2:t(i[e[0]][a],i[e[1]][a],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[e[s]][a];l[s]=r,t.apply(null,l)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=f();if(!t)return n;var i,r=this.count(),o=!this._indices;if(o)return this._rawExtent[e].slice();if(i=this._extent[e],i)return i.slice();i=n;for(var a=i[0],s=i[1],l=0;l<r;l++){var u=this.getRawIndex(l),c=t[u];c<a&&(a=c),c>s&&(s=c)}return i=[a,s],this._extent[e]=i,i},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][t]);return n},e.prototype.clone=function(t,n){var i=new e,o=this._chunks,a=t&&(0,r.reduce)(t,(function(e,t){return e[t]=!0,e}),{});if(a)for(var s=0;s<o.length;s++)i._chunks[s]=a[s]?g(o[s]):o[s];else i._chunks=o;return this._copyCommonProps(i),n||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=(0,r.clone)(this._extent),e._rawExtent=(0,r.clone)(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var i=0;i<n;i++)t[i]=this._indices[i]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,i){return(0,o.Pn)(e[i],this._dimensions[i])}i={arrayRows:e,objectRows:function(e,t,n,i){return(0,o.Pn)(e[t],this._dimensions[i])},keyedColumns:e,original:function(e,t,n,i){var r=e&&(null==e.value?e:e.value);return(0,o.Pn)(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(e,t,n,i){return e[i]}}}(),e}();const v=m},6627:(e,t,n)=>{n.d(t,{AF:()=>c,BE:()=>h,O0:()=>m,gV:()=>u,tP:()=>l,wZ:()=>d});var i=n(5279),r=n(1533),o=n(7045),a=n(4408),s=function(){function e(e){this.data=e.data||(e.sourceFormat===r.t1?{}:[]),this.sourceFormat=e.sourceFormat||r.vm,this.seriesLayoutBy=e.seriesLayoutBy||r.i_,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var i=t[n];null==i.type&&(0,a.PU)(this,n)===a.sc.Must&&(i.type="ordinal")}}return e}();function l(e){return e instanceof s}function u(e,t,n){n=n||d(e);var r=t.seriesLayoutBy,o=p(e,n,r,t.sourceHeader,t.dimensions),a=new s({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,metaRawOption:(0,i.clone)(t)});return a}function c(e){return new s({data:e,sourceFormat:(0,i.isTypedArray)(e)?r.XO:r.mK})}function h(e){return new s({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:(0,i.clone)(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function d(e){var t=r.vm;if((0,i.isTypedArray)(e))t=r.XO;else if((0,i.isArray)(e)){0===e.length&&(t=r.Km);for(var n=0,o=e.length;n<o;n++){var a=e[n];if(null!=a){if((0,i.isArray)(a)||(0,i.isTypedArray)(a)){t=r.Km;break}if((0,i.isObject)(a)){t=r.Wk;break}}}}else if((0,i.isObject)(e))for(var s in e)if((0,i.hasOwn)(e,s)&&(0,i.isArrayLike)(e[s])){t=r.t1;break}return t}function p(e,t,n,a,s){var l,u;if(!e)return{dimensionsDefine:g(s),startIndex:u,dimensionsDetectedCount:l};if(t===r.Km){var c=e;"auto"===a||null==a?y((function(e){null!=e&&"-"!==e&&((0,i.isString)(e)?null==u&&(u=1):u=0)}),n,c,10):u=(0,i.isNumber)(a)?a:a?1:0,s||1!==u||(s=[],y((function(e,t){s[t]=null!=e?e+"":""}),n,c,1/0)),l=s?s.length:n===r.oC?c.length:c[0]?c[0].length:null}else if(t===r.Wk)s||(s=f(e));else if(t===r.t1)s||(s=[],(0,i.each)(e,(function(e,t){s.push(t)})));else if(t===r.mK){var h=(0,o.vj)(e[0]);l=(0,i.isArray)(h)&&h.length||1}else r.XO;return{startIndex:u,dimensionsDefine:g(s),dimensionsDetectedCount:l}}function f(e){var t,n=0;while(n<e.length&&!(t=e[n++]));if(t)return(0,i.keys)(t)}function g(e){if(e){var t=(0,i.createHashMap)();return(0,i.map)(e,(function(e,n){e=(0,i.isObject)(e)?e:{name:e};var r={name:e.name,displayName:e.displayName,type:e.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var o=t.get(r.name);return o?r.name+="-"+o.count++:t.set(r.name,{count:1}),r}))}}function y(e,t,n,i){if(t===r.oC)for(var o=0;o<n.length&&o<i;o++)e(n[o]?n[o][0]:null,o);else{var a=n[0]||[];for(o=0;o<a.length&&o<i;o++)e(a[o],o)}}function m(e){var t=e.sourceFormat;return t===r.Wk||t===r.t1}},2612:(e,t,n)=>{n.d(t,{Kd:()=>v,QE:()=>w,d1:()=>d,sC:()=>g,uQ:()=>b});var i,r,o,a,s,l=n(5279),u=n(7045),c=n(6627),h=n(1533),d=function(){function e(e,t){var n=(0,c.tP)(e)?e:(0,c.AF)(e);this._source=n;var i=this._data=n.data;n.sourceFormat===h.XO&&(this._offset=0,this._dimSize=t,this._data=i),s(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;s=function(e,r,o){var s=o.sourceFormat,u=o.seriesLayoutBy,c=o.startIndex,d=o.dimensionsDefine,p=a[S(s,u)];if((0,l.extend)(e,p),s===h.XO)e.getItem=t,e.count=i,e.fillStorage=n;else{var f=g(s,u);e.getItem=(0,l.bind)(f,null,r,c,d);var y=v(s,u);e.count=(0,l.bind)(y,null,r,c,d)}};var t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,i=this._dimSize,r=i*e,o=0;o<i;o++)t[o]=n[r+o];return t},n=function(e,t,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=t-e,h=n[a],d=0;d<c;d++){var p=r[d*o+a];h[e+d]=p,p<l&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}e={},e[h.Km+"_"+h.i_]={pure:!0,appendData:r},e[h.Km+"_"+h.oC]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[h.Wk]={pure:!0,appendData:r},e[h.t1]={pure:!0,appendData:function(e){var t=this._data;(0,l.each)(e,(function(e,n){for(var i=t[n]||(t[n]=[]),r=0;r<(e||[]).length;r++)i.push(e[r])}))}},e[h.mK]={appendData:r},e[h.XO]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},a=e}(),e}(),p=function(e,t,n,i){return e[i]},f=(i={},i[h.Km+"_"+h.i_]=function(e,t,n,i){return e[i+t]},i[h.Km+"_"+h.oC]=function(e,t,n,i,r){i+=t;for(var o=r||[],a=e,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},i[h.Wk]=p,i[h.t1]=function(e,t,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=n[a].name;0;var l=e[s];o[a]=l?l[i]:null}return o},i[h.mK]=p,i);function g(e,t){var n=f[S(e,t)];return n}var y=function(e,t,n){return e.length},m=(r={},r[h.Km+"_"+h.i_]=function(e,t,n){return Math.max(0,e.length-t)},r[h.Km+"_"+h.oC]=function(e,t,n){var i=e[0];return i?Math.max(0,i.length-t):0},r[h.Wk]=y,r[h.t1]=function(e,t,n){var i=n[0].name;var r=e[i];return r?r.length:0},r[h.mK]=y,r);function v(e,t){var n=m[S(e,t)];return n}var x=function(e,t,n){return e[t]},_=(o={},o[h.Km]=x,o[h.Wk]=function(e,t,n){return e[n]},o[h.t1]=x,o[h.mK]=function(e,t,n){var i=(0,u.vj)(e);return i instanceof Array?i[t]:i},o[h.XO]=x,o);function b(e){var t=_[e];return t}function S(e,t){return e===h.Km?e+"_"+t:e}function w(e,t,n){if(e){var i=e.getRawDataItem(t);if(null!=i){var r=e.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=e.getDimensionIndex(n),s=r.getDimensionProperty(a);return b(o)(i,a,s)}var l=i;return o===h.mK&&(l=(0,u.vj)(i)),l}}}},3492:(e,t,n)=>{n.d(t,{Fl:()=>h,Pn:()=>a,zC:()=>l,zs:()=>p});var i=n(6471),r=n(5279),o=n(3682);function a(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"!==n||(0,r.isNumber)(e)||null==e||"-"===e||(e=+(0,i._U)(e)),null==e||""===e?NaN:Number(e))}var s=(0,r.createHashMap)({number:function(e){return parseFloat(e)},time:function(e){return+(0,i._U)(e)},trim:function(e){return(0,r.isString)(e)?(0,r.trim)(e):e}});function l(e){return s.get(e)}var u={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},c=function(){function e(e,t){if(!(0,r.isNumber)(t)){var n="";0,(0,o.$8)(n)}this._opFn=u[e],this._rvalFloat=(0,i.Sm)(t)}return e.prototype.evaluate=function(e){return(0,r.isNumber)(e)?this._opFn(e,this._rvalFloat):this._opFn((0,i.Sm)(e),this._rvalFloat)},e}(),h=function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=(0,r.isNumber)(e)?e:(0,i.Sm)(e),o=(0,r.isNumber)(t)?t:(0,i.Sm)(t),a=isNaN(n),s=isNaN(o);if(a&&(n=this._incomparable),s&&(o=this._incomparable),a&&s){var l=(0,r.isString)(e),u=(0,r.isString)(t);l&&(n=u?e:0),u&&(o=l?t:0)}return n<o?this._resultLT:n>o?-this._resultLT:0},e}(),d=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=(0,i.Sm)(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(t=(0,i.Sm)(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function p(e,t){return"eq"===e||"ne"===e?new d("eq"===e,t):(0,r.hasOwn)(u,e)?new c(e,t):null}},4408:(e,t,n)=>{n.d(t,{G9:()=>h,Gt:()=>d,OC:()=>u,PU:()=>p,ln:()=>c,ps:()=>l,sc:()=>a});var i=n(7045),r=n(5279),o=n(1533),a={Must:1,Might:2,Not:3},s=(0,i.$r)();function l(e){s(e).datasetMap=(0,r.createHashMap)()}function u(e,t,n){var i={},o=h(t);if(!o||!e)return i;var a,l,u=[],c=[],d=t.ecModel,p=s(d).datasetMap,f=o.uid+"_"+n.seriesLayoutBy;e=e.slice(),(0,r.each)(e,(function(t,n){var o=(0,r.isObject)(t)?t:e[n]={name:t};"ordinal"===o.type&&null==a&&(a=n,l=m(o)),i[o.name]=[]}));var g=p.get(f)||p.set(f,{categoryWayDim:l,valueWayDim:0});function y(e,t,n){for(var i=0;i<n;i++)e.push(t+i)}function m(e){var t=e.dimsDef;return t?t.length:1}return(0,r.each)(e,(function(e,t){var n=e.name,r=m(e);if(null==a){var o=g.valueWayDim;y(i[n],o,r),y(c,o,r),g.valueWayDim+=r}else if(a===t)y(i[n],0,r),y(u,0,r);else{o=g.categoryWayDim;y(i[n],o,r),y(c,o,r),g.categoryWayDim+=r}})),u.length&&(i.itemName=u),c.length&&(i.seriesName=c),i}function c(e,t,n){var i={},s=h(e);if(!s)return i;var l,u=t.sourceFormat,c=t.dimensionsDefine;u!==o.Wk&&u!==o.t1||(0,r.each)(c,(function(e,t){"name"===((0,r.isObject)(e)?e.name:e)&&(l=t)}));var d=function(){for(var e={},i={},r=[],o=0,s=Math.min(5,n);o<s;o++){var h=f(t.data,u,t.seriesLayoutBy,c,t.startIndex,o);r.push(h);var d=h===a.Not;if(d&&null==e.v&&o!==l&&(e.v=o),(null==e.n||e.n===e.v||!d&&r[e.n]===a.Not)&&(e.n=o),p(e)&&r[e.n]!==a.Not)return e;d||(h===a.Might&&null==i.v&&o!==l&&(i.v=o),null!=i.n&&i.n!==i.v||(i.n=o))}function p(e){return null!=e.v&&null!=e.n}return p(e)?e:p(i)?i:null}();if(d){i.value=[d.v];var p=null!=l?l:d.n;i.itemName=[p],i.seriesName=[p]}return i}function h(e){var t=e.get("data",!0);if(!t)return(0,i.JO)(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},i.US).models[0]}function d(e){return e.get("transform",!0)||e.get("fromTransformResult",!0)?(0,i.JO)(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},i.US).models:[]}function p(e,t){return f(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function f(e,t,n,s,l,u){var c,h,d,p=5;if((0,r.isTypedArray)(e))return a.Not;if(s){var f=s[u];(0,r.isObject)(f)?(h=f.name,d=f.type):(0,r.isString)(f)&&(h=f)}if(null!=d)return"ordinal"===d?a.Must:a.Not;if(t===o.Km){var g=e;if(n===o.oC){for(var y=g[u],m=0;m<(y||[]).length&&m<p;m++)if(null!=(c=M(y[l+m])))return c}else for(m=0;m<g.length&&m<p;m++){var v=g[l+m];if(v&&null!=(c=M(v[u])))return c}}else if(t===o.Wk){var x=e;if(!h)return a.Not;for(m=0;m<x.length&&m<p;m++){var _=x[m];if(_&&null!=(c=M(_[h])))return c}}else if(t===o.t1){var b=e;if(!h)return a.Not;y=b[h];if(!y||(0,r.isTypedArray)(y))return a.Not;for(m=0;m<y.length&&m<p;m++)if(null!=(c=M(y[m])))return c}else if(t===o.mK){var S=e;for(m=0;m<S.length&&m<p;m++){_=S[m];var w=(0,i.vj)(_);if(!(0,r.isArray)(w))return a.Not;if(null!=(c=M(w[u])))return c}}function M(e){var t=(0,r.isString)(e);return null!=e&&Number.isFinite(Number(e))&&""!==e?t?a.Might:a.Not:t&&"-"!==e?a.Must:void 0}return a.Not}},7497:(e,t,n)=>{n.d(t,{A:()=>h,R:()=>c});var i=n(5279),r=n(6627),o=n(1533),a=n(4408),s=n(9093),l=n(5253),u=n(2612),c=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n=this._sourceHost,a=this._getUpstreamSourceManagers(),s=!!a.length;if(d(n)){var l=n,u=void 0,c=void 0,h=void 0;if(s){var p=a[0];p.prepareSource(),h=p.getSource(),u=h.data,c=h.sourceFormat,t=[p._getVersionSign()]}else u=l.get("data",!0),c=(0,i.isTypedArray)(u)?o.XO:o.mK,t=[];var f=this._getSourceMetaRawOption()||{},g=h&&h.metaRawOption||{},y=(0,i.retrieve2)(f.seriesLayoutBy,g.seriesLayoutBy)||null,m=(0,i.retrieve2)(f.sourceHeader,g.sourceHeader),v=(0,i.retrieve2)(f.dimensions,g.dimensions),x=y!==g.seriesLayoutBy||!!m!==!!g.sourceHeader||v;e=x?[(0,r.gV)(u,{seriesLayoutBy:y,sourceHeader:m,dimensions:v},c)]:[]}else{var _=n;if(s){var b=this._applyTransform(a);e=b.sourceList,t=b.upstreamSignList}else{var S=_.get("source",!0);e=[(0,r.gV)(S,this._getSourceMetaRawOption(),null)],t=[]}}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,o=n.get("transform",!0),a=n.get("fromTransformResult",!0);if(null!=a){var l="";1!==e.length&&p(l)}var u=[],c=[];return(0,i.each)(e,(function(e){e.prepareSource();var t=e.getSource(a||0),n="";null==a||t||p(n),u.push(t),c.push(e._getVersionSign())})),o?t=(0,s.py)(o,u,{datasetIndex:n.componentIndex}):null!=a&&(t=[(0,r.BE)(u[0])]),{sourceList:t,upstreamSignList:c}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var i=0,r=this._storeList,o=r[i];o||(o=r[i]={});var a=o[n];if(!a){var s=this._getUpstreamSourceManagers()[0];d(this._sourceHost)&&s?a=s._innerGetDataStore(e,t,n):(a=new l.Ay,a.initData(new u.d1(t,e.length),e)),o[n]=a}return a},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(d(e)){var t=(0,a.G9)(e);return t?[t.getSourceManager()]:[]}return(0,i.map)((0,a.Gt)(e),(function(e){return e.getSourceManager()}))},e.prototype._getSourceMetaRawOption=function(){var e,t,n,i=this._sourceHost;if(d(i))e=i.get("seriesLayoutBy",!0),t=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function h(e){var t=e.option.transform;t&&(0,i.setAsPrimitive)(e.option.transform)}function d(e){return"series"===e.mainType}function p(e){throw new Error(e)}},9093:(e,t,n)=>{n.d(t,{py:()=>v,v5:()=>m});var i=n(1533),r=n(7045),o=n(5279),a=n(2612),s=n(3492),l=n(3682),u=n(6627),c=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return(0,s.Pn)(e,t)},e}();function h(e,t){var n=new c,r=e.data,s=n.sourceFormat=e.sourceFormat,u=e.startIndex,h="";e.seriesLayoutBy!==i.i_&&(0,l.$8)(h);var y=[],m={},v=e.dimensionsDefine;if(v)(0,o.each)(v,(function(e,t){var n=e.name,i={index:t,name:n,displayName:e.displayName};if(y.push(i),null!=n){var r="";(0,o.hasOwn)(m,n)&&(0,l.$8)(r),m[n]=i}}));else for(var x=0;x<e.dimensionsDetectedCount;x++)y.push({index:x});var _=(0,a.sC)(s,i.i_);t.__isBuiltIn&&(n.getRawDataItem=function(e){return _(r,u,y,e)},n.getRawData=(0,o.bind)(d,null,e)),n.cloneRawData=(0,o.bind)(p,null,e);var b=(0,a.Kd)(s,i.i_);n.count=(0,o.bind)(b,null,r,u,y);var S=(0,a.uQ)(s);n.retrieveValue=function(e,t){var n=_(r,u,y,e);return w(n,t)};var w=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=y[t];return n?S(e,t,n.name):void 0}};return n.getDimensionInfo=(0,o.bind)(f,null,y,m),n.cloneAllDimensionInfo=(0,o.bind)(g,null,y),n}function d(e){var t=e.sourceFormat;if(!_(t)){var n="";0,(0,l.$8)(n)}return e.data}function p(e){var t=e.sourceFormat,n=e.data;if(!_(t)){var r="";0,(0,l.$8)(r)}if(t===i.Km){for(var a=[],s=0,u=n.length;s<u;s++)a.push(n[s].slice());return a}if(t===i.Wk){for(a=[],s=0,u=n.length;s<u;s++)a.push((0,o.extend)({},n[s]));return a}}function f(e,t,n){if(null!=n)return(0,o.isNumber)(n)||!isNaN(n)&&!(0,o.hasOwn)(t,n)?e[n]:(0,o.hasOwn)(t,n)?t[n]:void 0}function g(e){return(0,o.clone)(e)}var y=(0,o.createHashMap)();function m(e){e=(0,o.clone)(e);var t=e.type,n="";t||(0,l.$8)(n);var i=t.split(":");2!==i.length&&(0,l.$8)(n);var r=!1;"echarts"===i[0]&&(t=i[1],r=!0),e.__isBuiltIn=r,y.set(t,e)}function v(e,t,n){var i=(0,r.qB)(e),o=i.length,a="";o||(0,l.$8)(a);for(var s=0,u=o;s<u;s++){var c=i[s];t=x(c,t,n,1===o?null:s),s!==u-1&&(t.length=Math.max(t.length,1))}return t}function x(e,t,n,a){var s="";t.length||(0,l.$8)(s),(0,o.isObject)(e)||(0,l.$8)(s);var c=e.type,d=y.get(c);d||(0,l.$8)(s);var p=(0,o.map)(t,(function(e){return h(e,d)})),f=(0,r.qB)(d.transform({upstream:p[0],upstreamList:p,config:(0,o.clone)(e.config)}));return(0,o.map)(f,(function(e,n){var r="";(0,o.isObject)(e)||(0,l.$8)(r),e.data||(0,l.$8)(r);var a,s=(0,u.wZ)(e.data);_(s)||(0,l.$8)(r);var c=t[0];if(c&&0===n&&!e.dimensions){var h=c.startIndex;h&&(e.data=c.data.slice(0,h).concat(e.data)),a={seriesLayoutBy:i.i_,sourceHeader:h,dimensions:c.metaRawOption.dimensions}}else a={seriesLayoutBy:i.i_,sourceHeader:0,dimensions:e.dimensions};return(0,u.gV)(e.data,a,null)}))}function _(e){return e===i.Km||e===i.Wk}},3519:(e,t,n)=>{n.d(t,{Lu:()=>S,Oh:()=>w,VB:()=>p,c8:()=>b,lx:()=>d,qM:()=>h,sD:()=>f,xb:()=>M});var i=n(9225),r=n(5279),o=n(5724),a=n(7045),s=n(2575),l={};function u(e,t){for(var n=0;n<o.BV.length;n++){var i=o.BV[n],r=t[i],a=e.ensureState(i);a.style=a.style||{},a.style.text=r}var s=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(s,!0)}function c(e,t,n){var i,a=e.labelFetcher,s=e.labelDataIndex,l=e.labelDimIndex,u=t.normal;a&&(i=a.getFormattedLabel(s,"normal",null,l,u&&u.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=(0,r.isFunction)(e.defaultText)?e.defaultText(s,e,n):e.defaultText);for(var c={normal:i},h=0;h<o.BV.length;h++){var d=o.BV[h],p=t[d];c[d]=(0,r.retrieve2)(a?a.getFormattedLabel(s,d,null,l,p&&p.get("formatter")):null,i)}return c}function h(e,t,n,a){n=n||l;for(var s=e instanceof i.Ay,h=!1,d=0;d<o.wV.length;d++){var g=t[o.wV[d]];if(g&&g.getShallow("show")){h=!0;break}}var y=s?e:e.getTextContent();if(h){s||(y||(y=new i.Ay,e.setTextContent(y)),e.stateProxy&&(y.stateProxy=e.stateProxy));var m=c(n,t),v=t.normal,x=!!v.getShallow("show"),_=p(v,a&&a.normal,n,!1,!s);_.text=m.normal,s||e.setTextConfig(f(v,n,!1));for(d=0;d<o.BV.length;d++){var b=o.BV[d];g=t[b];if(g){var w=y.ensureState(b),M=!!(0,r.retrieve2)(g.getShallow("show"),x);if(M!==x&&(w.ignore=!M),w.style=p(g,a&&a[b],n,!0,!s),w.style.text=m[b],!s){var A=e.ensureState(b);A.textConfig=f(g,n,!0)}}}y.silent=!!v.getShallow("silent"),null!=y.style.x&&(_.x=y.style.x),null!=y.style.y&&(_.y=y.style.y),y.ignore=!x,y.useStyle(_),y.dirty(),n.enableTextSetter&&(S(y).setLabelText=function(e){var i=c(n,t,e);u(y,i)})}else y&&(y.ignore=!0);e.dirty()}function d(e,t){t=t||"label";for(var n={normal:e.getModel(t)},i=0;i<o.BV.length;i++){var r=o.BV[i];n[r]=e.getModel([r,t])}return n}function p(e,t,n,i,o){var a={};return g(a,e,n,i,o),t&&(0,r.extend)(a,t),a}function f(e,t,n){t=t||{};var i,o={},a=e.getShallow("rotate"),s=(0,r.retrieve2)(e.getShallow("distance"),n?null:5),l=e.getShallow("offset");return i=e.getShallow("position")||(n?null:"inside"),"outside"===i&&(i=t.defaultOutsidePosition||"top"),null!=i&&(o.position=i),null!=l&&(o.offset=l),null!=a&&(a*=Math.PI/180,o.rotation=a),null!=s&&(o.distance=s),o.outsideFill="inherit"===e.get("color")?t.inheritColor||null:"auto",o}function g(e,t,n,i,r){n=n||l;var o,a=t.ecModel,s=a&&a.option.textStyle,u=y(t);if(u)for(var c in o={},u)if(u.hasOwnProperty(c)){var h=t.getModel(["rich",c]);_(o[c]={},h,s,n,i,r,!1,!0)}o&&(e.rich=o);var d=t.get("overflow");d&&(e.overflow=d);var p=t.get("minMargin");null!=p&&(e.margin=p),_(e,t,s,n,i,r,!0,!1)}function y(e){var t;while(e&&e!==e.ecModel){var n=(e.option||l).rich;if(n){t=t||{};for(var i=(0,r.keys)(n),o=0;o<i.length;o++){var a=i[o];t[a]=1}}e=e.parentModel}return t}var m=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],v=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],x=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function _(e,t,n,i,o,a,s,u){n=!o&&n||l;var c=i&&i.inheritColor,h=t.getShallow("color"),d=t.getShallow("textBorderColor"),p=(0,r.retrieve2)(t.getShallow("opacity"),n.opacity);"inherit"!==h&&"auto"!==h||(h=c||null),"inherit"!==d&&"auto"!==d||(d=c||null),a||(h=h||n.color,d=d||n.textBorderColor),null!=h&&(e.fill=h),null!=d&&(e.stroke=d);var f=(0,r.retrieve2)(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=f&&(e.lineWidth=f);var g=(0,r.retrieve2)(t.getShallow("textBorderType"),n.textBorderType);null!=g&&(e.lineDash=g);var y=(0,r.retrieve2)(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=y&&(e.lineDashOffset=y),o||null!=p||u||(p=i&&i.defaultOpacity),null!=p&&(e.opacity=p),o||a||null==e.fill&&i.inheritColor&&(e.fill=i.inheritColor);for(var _=0;_<m.length;_++){var b=m[_],S=(0,r.retrieve2)(t.getShallow(b),n[b]);null!=S&&(e[b]=S)}for(_=0;_<v.length;_++){b=v[_],S=t.getShallow(b);null!=S&&(e[b]=S)}if(null==e.verticalAlign){var w=t.getShallow("baseline");null!=w&&(e.verticalAlign=w)}if(!s||!i.disableBox){for(_=0;_<x.length;_++){b=x[_],S=t.getShallow(b);null!=S&&(e[b]=S)}var M=t.getShallow("borderType");null!=M&&(e.borderDash=M),"auto"!==e.backgroundColor&&"inherit"!==e.backgroundColor||!c||(e.backgroundColor=c),"auto"!==e.borderColor&&"inherit"!==e.borderColor||!c||(e.borderColor=c)}}function b(e,t){var n=t&&t.getModel("textStyle");return(0,r.trim)([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var S=(0,a.$r)();function w(e,t,n,i){if(e){var r=S(e);r.prevValue=r.value,r.value=n;var o=t.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=i,r.statesModels=t)}}function M(e,t,n,i,o){var l=S(e);if(l.valueAnimation&&l.prevValue!==l.value){var h=l.defaultInterpolatedText,d=(0,r.retrieve2)(l.interpolatedValue,l.prevValue),p=l.value;e.percent=0,(null==l.prevValue?s.LW:s.oi)(e,{percent:1},i,t,null,f)}function f(i){var r=(0,a.Il)(n,l.precision,d,p,i);l.interpolatedValue=1===i?null:r;var s=c({labelDataIndex:t,labelFetcher:o,defaultText:h?h(r):r+""},l.statesModels,r);u(e,s)}}},9808:(e,t,n)=>{n.d(t,{I:()=>o,l:()=>s});var i=n(5279),r=n(7045);function o(e,t){function n(t,n){var i=[];return t.eachComponent({mainType:"series",subType:e,query:n},(function(e){i.push(e.seriesIndex)})),i}(0,i.each)([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],(function(e){t(e[0],(function(t,r,o){t=(0,i.extend)({},t),o.dispatchAction((0,i.extend)(t,{type:e[1],seriesIndex:n(r,t)}))}))}))}function a(e,t,n,o,a){var s=e+t;n.isSilent(s)||o.eachComponent({mainType:"series",subType:"pie"},(function(e){for(var t=e.seriesIndex,o=e.option.selectedMap,l=a.selected,u=0;u<l.length;u++)if(l[u].seriesIndex===t){var c=e.getData(),h=(0,r.le)(c,a.fromActionPayload);n.trigger(s,{type:s,seriesId:e.id,name:(0,i.isArray)(h)?c.getName(h[0]):c.getName(h),selected:(0,i.isString)(o)?o:(0,i.extend)({},o)})}}))}function s(e,t,n){e.on("selectchanged",(function(e){var i=n.getModel();e.isFromClick?(a("map","selectchanged",t,i,e),a("pie","selectchanged",t,i,e)):"select"===e.fromAction?(a("map","selected",t,i,e),a("pie","selected",t,i,e)):"unselect"===e.fromAction&&(a("map","unselected",t,i,e),a("pie","unselected",t,i,e))}))}},8898:(e,t,n)=>{n.d(t,{A:()=>p});var i=n(8948),r=n(5279),o=n(9338),a=n(4839),s=n(6706),l=n(7045),u=n(308),c=(0,l.$r)(),h=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.uid=a.$Q("ec_cpt_model"),r}return(0,i.C6)(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=u.ad(this),i=n?u.vs(e):{},o=t.getTheme();r.merge(e,o.get(this.mainType)),r.merge(e,this.getDefaultOption()),n&&u.YA(e,i,n)},t.prototype.mergeOption=function(e,t){r.merge(this.option,e,!0);var n=u.ad(this);n&&u.YA(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!(0,s._E)(e))return e.defaultOption;var t=c(this);if(!t.defaultOption){var n=[],i=e;while(i){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var a={},l=n.length-1;l>=0;l--)a=r.merge(a,n[l],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",i=e+"Id";return(0,l.JO)(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(o.A);function d(e){var t=[];return r.each(h.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=r.map(t,(function(e){return(0,s.CC)(e).main})),"dataset"!==e&&r.indexOf(t,"dataset")<=0&&t.unshift("dataset"),t}(0,s.q7)(h,o.A),(0,s.tQ)(h),a.A6(h),a.vf(h,d);const p=h},9338:(e,t,n)=>{n.d(t,{A:()=>_});var i=n(1688),r=n(6706),o=n(3029),a=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],s=(0,o.A)(a),l=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return s(this,e,t)},e}(),u=n(3519),c=n(9225),h=["textStyle","color"],d=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],p=new c.Ay,f=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(h):null)},e.prototype.getFont=function(){return(0,u.c8)({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<d.length;n++)t[d[n]]=this.getShallow(d[n]);return p.useStyle(t),p.update(),p.getBoundingRect()},e}();const g=f;var y=n(1256),m=n(7195),v=n(5279),x=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r]},e.prototype.mergeOption=function(e,t){(0,v.merge)(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,i=null==n?n:n[e];if(null==i&&!t){var r=this.parentModel;r&&(i=r.getShallow(e))}return i},e.prototype.getModel=function(t,n){var i=null!=t,r=i?this.parsePath(t):null,o=i?this._doGet(r):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),new e(o,n,this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e((0,v.clone)(this.option))},e.prototype.parsePath=function(e){return"string"===typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!i.A.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var i=0;i<e.length;i++)if(e[i]&&(n=n&&"object"===typeof n?n[e[i]]:null,null==n))break;return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();(0,r.gq)(x),(0,r.Od)(x),(0,v.mixin)(x,y.J),(0,v.mixin)(x,m.s),(0,v.mixin)(x,l),(0,v.mixin)(x,g);const _=x},6840:(e,t,n)=>{n.d(t,{A:()=>C,U:()=>m});var i=n(8948),r=n(5279),o=n(1688),a=n(7045),s=n(8898),l=n(3480),u=n(9148),c=n(308),h=n(6962),d=n(6706),p=n(7497),f=n(7626),g=a.$r();function y(e,t){return e.getName(t)||e.getId(t)}var m="__universalTransitionEnabled",v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return(0,i.C6)(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=(0,h.U)({count:b,reset:S}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=g(this).sourceManager=new p.R(this);i.prepareSource();var r=this.getInitialData(e,n);M(r,this),this.dataTask.context.data=r,g(this).dataBeforeProcessed=r,x(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=(0,c.ad)(this),i=n?(0,c.vs)(e):{},o=this.subType;s.A.hasClass(o)&&(o+="Series"),r.merge(e,t.getTheme().get(this.subType)),r.merge(e,this.getDefaultOption()),a.M5(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&(0,c.YA)(e,i,n)},t.prototype.mergeOption=function(e,t){e=r.merge(this.option,e,!0),this.fillDataTextStyle(e.data);var n=(0,c.ad)(this);n&&(0,c.YA)(this.option,e,n);var i=g(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,t);M(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,g(this).dataBeforeProcessed=o,x(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!r.isTypedArray(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&a.M5(e[n],"label",t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){var t=this.getRawData();t.appendData(e.data)},t.prototype.getData=function(e){var t=I(this);if(t){var n=t.context.data;return null!=e&&n.getLinkedData?n.getLinkedData(e):n}return g(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=I(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}g(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return r.createHashMap(e)},t.prototype.getSourceManager=function(){return g(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return g(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,t,n){return(0,f.J)({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(o.A.node&&(!e||!e.ssr))return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var i=this.ecModel,r=l.X.prototype.getColorFromPalette.call(this,e,t,n);return r||(r=i.getColorFromPalette(e,t,n)),r},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(t);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<e.length;o++){var a=e[o],s=y(r,a);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],i=0;i<e.length;i++)n[0]=e[i],this.isSelected(e[i],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=r.keys(e),n=[],i=0;i<t.length;i++){var o=e[t[i]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(t);return("all"===n||n[y(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[m])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,i,o=this.option,a=o.selectedMode,s=t.length;if(a&&s)if("series"===a)o.selectedMap="all";else if("multiple"===a){r.isObject(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,u=0;u<s;u++){var c=t[u],h=y(e,c);l[h]=!0,this._selectedDataIndicesMap[h]=e.getRawIndex(c)}}else if("single"===a||!0===a){var d=t[s-1];h=y(e,d);o.selectedMap=(n={},n[h]=!0,n),this._selectedDataIndicesMap=(i={},i[h]=e.getRawIndex(d),i)}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each((function(n){var i=e.getRawDataItem(n);i&&i.selected&&t.push(n)})),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return s.A.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(s.A);function x(e){var t=e.name;a.O0(e)||(e.name=_(e)||t)}function _(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),i=[];return r.each(n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&i.push(n.displayName)})),i.join(" ")}function b(e){return e.model.getRawData().count()}function S(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),w}function w(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function M(e,t){r.each(r.concatArray(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(n){e.wrapMethod(n,r.curry(A,t))}))}function A(e,t){var n=I(e);return n&&n.setOutputEnd((t||this).count()),t}function I(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(e.uid))}return i}}r.mixin(v,u.J),r.mixin(v,l.X),(0,d.q7)(v,s.A);const C=v},8609:(e,t,n)=>{n.d(t,{S:()=>o,a:()=>a});var i=n(5279),r=(0,i.createHashMap)();function o(e,t){(0,i.assert)(null==r.get(e)&&t),r.set(e,t)}function a(e,t,n){var i=r.get(t);if(!i)return n;var o=i(e);return o?n.concat(o):n}},9148:(e,t,n)=>{n.d(t,{J:()=>s,L:()=>l});var i=n(5279),r=n(2612),o=n(8269),a=/\{@(.+?)\}/g,s=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),i=this.getRawValue(e,t),r=n.getRawIndex(e),o=n.getName(e),a=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),l=s&&s[n.getItemVisual(e,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,d=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:r,data:a,dataType:t,value:i,color:l,borderColor:u,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,s,l,u){t=t||"normal";var c=this.getData(n),h=this.getDataParams(e,n);if(u&&(h.value=u.interpolatedValue),null!=s&&i.isArray(h.value)&&(h.value=h.value[s]),!l){var d=c.getItemModel(e);l=d.get("normal"===t?["label","formatter"]:[t,"label","formatter"])}if(i.isFunction(l))return h.status=t,h.dimensionIndex=s,l(h);if(i.isString(l)){var p=(0,o.YK)(l,h);return p.replace(a,(function(t,n){var o=n.length,a=n;"["===a.charAt(0)&&"]"===a.charAt(o-1)&&(a=+a.slice(1,o-1));var s=(0,r.QE)(c,e,a);if(u&&i.isArray(u.interpolatedValue)){var l=c.getDimensionIndex(a);l>=0&&(s=u.interpolatedValue[l])}return null!=s?s+"":""}))}},e.prototype.getRawValue=function(e,t){return(0,r.QE)(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function l(e){var t,n;return i.isObject(e)?e.type&&(n=e):t=e,{text:t,frag:n}}},7195:(e,t,n)=>{n.d(t,{L:()=>r,s:()=>a});var i=n(3029),r=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],o=(0,i.A)(r),a=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return o(this,e,t)},e}()},1256:(e,t,n)=>{n.d(t,{J:()=>a,m:()=>r});var i=n(3029),r=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],o=(0,i.A)(r),a=function(){function e(){}return e.prototype.getLineStyle=function(e){return o(this,e)},e}()},3029:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(5279);function r(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,r,o){for(var a={},s=0;s<e.length;s++){var l=e[s][1];if(!(r&&i.indexOf(r,l)>=0||o&&i.indexOf(o,l)<0)){var u=n.getShallow(l,t);null!=u&&(a[e[s][0]]=u)}}return a}}},3480:(e,t,n)=>{n.d(t,{X:()=>a,x:()=>s});var i=n(7045),r=(0,i.$r)(),o=(0,i.$r)(),a=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var o=(0,i.qB)(this.get("color",!0)),a=this.get("colorLayer",!0);return u(this,r,o,a,e,t,n)},e.prototype.clearColorPalette=function(){c(this,r)},e}();function s(e,t,n,r){var a=(0,i.qB)(e.get(["aria","decal","decals"]));return u(e,o,a,null,t,n,r)}function l(e,t){for(var n=e.length,i=0;i<n;i++)if(e[i].length>t)return e[i];return e[n-1]}function u(e,t,n,i,r,o,a){o=o||e;var s=t(o),u=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(r))return c[r];var h=null!=a&&i?l(i,a):n;if(h=h||n,h&&h.length){var d=h[u];return r&&(c[r]=d),s.paletteIdx=(u+1)%h.length,d}}function c(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}},6706:(e,t,n)=>{n.d(t,{CC:()=>l,Od:()=>g,_E:()=>c,gq:()=>h,q7:()=>p,tQ:()=>v});var i=n(8948),r=n(5279),o=".",a="___EC__COMPONENT__CONTAINER___",s="___EC__EXTENDED_CLASS___";function l(e){var t={main:"",sub:""};if(e){var n=e.split(o);t.main=n[0]||"",t.sub=n[1]||""}return t}function u(e){r.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function c(e){return!(!e||!e[s])}function h(e,t){e.$constructor=e,e.extend=function(e){var t,n=this;return d(n)?t=function(e){function t(){return e.apply(this,arguments)||this}return(0,i.C6)(t,e),t}(n):(t=function(){(e.$constructor||n).apply(this,arguments)},r.inherits(t,this)),r.extend(t.prototype,e),t[s]=!0,t.extend=this.extend,t.superCall=y,t.superApply=m,t.superClass=n,t}}function d(e){return r.isFunction(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function p(e,t){e.extend=t.extend}var f=Math.round(10*Math.random());function g(e){var t=["__\0is_clz",f++].join("_");e.prototype[t]=!0,e.isInstance=function(e){return!(!e||!e[t])}}function y(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[t].apply(e,n)}function m(e,t,n){return this.superClass.prototype[t].apply(e,n)}function v(e){var t={};function n(e){var n=t[e.main];return n&&n[a]||(n=t[e.main]={},n[a]=!0),n}e.registerClass=function(e){var i=e.type||e.prototype.type;if(i){u(i),e.prototype.type=i;var r=l(i);if(r.sub){if(r.sub!==a){var o=n(r);o[r.sub]=e}}else t[r.main]=e}return e},e.getClass=function(e,n,i){var r=t[e];if(r&&r[a]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return r},e.getClassesByMainType=function(e){var n=l(e),i=[],o=t[n.main];return o&&o[a]?r.each(o,(function(e,t){t!==a&&i.push(e)})):i.push(o),i},e.hasClass=function(e){var n=l(e);return!!t[n.main]},e.getAllClassMainTypes=function(){var e=[];return r.each(t,(function(t,n){e.push(n)})),e},e.hasSubTypes=function(e){var n=l(e),i=t[n.main];return i&&i[a]}}},4839:(e,t,n)=>{n.d(t,{$Q:()=>a,A6:()=>s,G_:()=>u,vf:()=>l});var i=n(5279),r=n(6706),o=Math.round(10*Math.random());function a(e){return[e||"",o++].join("_")}function s(e){var t={};e.registerSubTypeDefaulter=function(e,n){var i=(0,r.CC)(e);t[i.main]=n},e.determineSubType=function(n,i){var o=i.type;if(!o){var a=(0,r.CC)(n).main;e.hasSubTypes(n)&&t[a]&&(o=t[a](i))}return o}}function l(e,t){function n(e){var n={},a=[];return i.each(e,(function(s){var l=r(n,s),u=l.originalDeps=t(s),c=o(u,e);l.entryCount=c.length,0===l.entryCount&&a.push(s),i.each(c,(function(e){i.indexOf(l.predecessor,e)<0&&l.predecessor.push(e);var t=r(n,e);i.indexOf(t.successor,e)<0&&t.successor.push(s)}))})),{graph:n,noEntryList:a}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function o(e,t){var n=[];return i.each(e,(function(e){i.indexOf(t,e)>=0&&n.push(e)})),n}e.topologicalTravel=function(e,t,r,o){if(e.length){var a=n(t),s=a.graph,l=a.noEntryList,u={};i.each(e,(function(e){u[e]=!0}));while(l.length){var c=l.pop(),h=s[c],d=!!u[c];d&&(r.call(o,c,h.originalDeps.slice()),delete u[c]),i.each(h.successor,d?f:p)}i.each(u,(function(){var e="";throw new Error(e)}))}function p(e){s[e].entryCount--,0===s[e].entryCount&&l.push(e)}function f(e){u[e]=!0,p(e)}}}function u(e,t){return i.merge(i.merge({},e,!0),t,!0)}},2766:(e,t,n)=>{n.d(t,{w:()=>p});var i=n(8037),r=n(2594),o=n(5279),a=n(6471),s=n(2842),l=n(1768),u=n(4124),c=new i.A,h=new r.Ay(100),d=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function p(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),i=t.getZr(),r="svg"===i.painter.type;e.dirty&&c["delete"](e);var p=c.get(e);if(p)return p;var x=(0,o.defaults)(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===x.backgroundColor&&(x.backgroundColor=null);var _={repeat:"repeat"};return b(_),_.rotation=x.rotation,_.scaleX=_.scaleY=r?1:1/n,c.set(e,_),e.dirty=!1,_;function b(e){for(var t,c=[n],p=!0,_=0;_<d.length;++_){var b=x[d[_]];if(null!=b&&!(0,o.isArray)(b)&&!(0,o.isString)(b)&&!(0,o.isNumber)(b)&&"boolean"!==typeof b){p=!1;break}c.push(b)}if(p){t=c.join(",")+(r?"-svg":"");var S=h.get(t);S&&(r?e.svgElement=S:e.image=S)}var w,M=g(x.dashArrayX),A=y(x.dashArrayY),I=f(x.symbol),C=m(M),T=v(A),D=!r&&u.yh.createCanvas(),L=r&&{tag:"g",attrs:{},key:"dcl",children:[]},k=O();function O(){for(var e=1,t=0,n=C.length;t<n;++t)e=(0,a.lQ)(e,C[t]);var i=1;for(t=0,n=I.length;t<n;++t)i=(0,a.lQ)(i,I[t].length);e*=i;var r=T*C.length*I.length;return{width:Math.max(1,Math.min(e,x.maxTileWidth)),height:Math.max(1,Math.min(r,x.maxTileHeight))}}function P(){w&&(w.clearRect(0,0,D.width,D.height),x.backgroundColor&&(w.fillStyle=x.backgroundColor,w.fillRect(0,0,D.width,D.height)));for(var e=0,t=0;t<A.length;++t)e+=A[t];if(!(e<=0)){var o=-T,a=0,u=0,c=0;while(o<k.height){if(a%2===0){var h=u/2%I.length,d=0,p=0,f=0;while(d<2*k.width){var g=0;for(t=0;t<M[c].length;++t)g+=M[c][t];if(g<=0)break;if(p%2===0){var y=.5*(1-x.symbolSize),m=d+M[c][p]*y,v=o+A[a]*y,_=M[c][p]*x.symbolSize,b=A[a]*x.symbolSize,S=f/2%I[h].length;C(m,v,_,b,I[h][S])}d+=M[c][p],++f,++p,p===M[c].length&&(p=0)}++c,c===M.length&&(c=0)}o+=A[a],++u,++a,a===A.length&&(a=0)}}function C(e,t,o,a,u){var c=r?1:n,h=(0,s.v5)(u,e*c,t*c,o*c,a*c,x.color,x.symbolKeepAspect);if(r){var d=i.painter.renderOneToVNode(h);d&&L.children.push(d)}else(0,l.Xi)(w,h)}}D&&(D.width=k.width*n,D.height=k.height*n,w=D.getContext("2d")),P(),p&&h.put(t,D||L),e.image=D,e.svgElement=L,e.svgWidth=k.width,e.svgHeight=k.height}}function f(e){if(!e||0===e.length)return[["rect"]];if((0,o.isString)(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!(0,o.isString)(e[n])){t=!1;break}if(t)return f([e]);var i=[];for(n=0;n<e.length;++n)(0,o.isString)(e[n])?i.push([e[n]]):i.push(e[n]);return i}function g(e){if(!e||0===e.length)return[[0,0]];if((0,o.isNumber)(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,i=0;i<e.length;++i)if(!(0,o.isNumber)(e[i])){n=!1;break}if(n)return g([e]);var r=[];for(i=0;i<e.length;++i)if((0,o.isNumber)(e[i])){t=Math.ceil(e[i]);r.push([t,t])}else{t=(0,o.map)(e[i],(function(e){return Math.ceil(e)}));t.length%2===1?r.push(t.concat(t)):r.push(t)}return r}function y(e){if(!e||"object"===typeof e&&0===e.length)return[0,0];if((0,o.isNumber)(e)){var t=Math.ceil(e);return[t,t]}var n=(0,o.map)(e,(function(e){return Math.ceil(e)}));return e.length%2?n.concat(n):n}function m(e){return(0,o.map)(e,(function(e){return v(e)}))}function v(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2===1?2*t:t}},2628:(e,t,n)=>{function i(e,t,n){var i;while(e){if(t(e)&&(i=e,n))break;e=e.__hostTarget||e.parent}return i}n.d(t,{R:()=>i})},8269:(e,t,n)=>{n.d(t,{Cb:()=>l,JW:()=>x,QX:()=>u,YK:()=>p,fU:()=>y,he:()=>v,io:()=>f,ob:()=>s,qg:()=>g,x5:()=>m,yC:()=>c});var i=n(5279),r=n(2225),o=n(6471),a=n(155);function s(e){if(!(0,o.kf)(e))return i.isString(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function l(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var u=i.normalizeCssArray;function c(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function l(e){return e&&i.trim(e)?e:"-"}function u(e){return!(null==e||isNaN(e)||!isFinite(e))}var c="time"===t,h=e instanceof Date;if(c||h){var d=c?(0,o._U)(e):e;if(!isNaN(+d))return(0,a.GP)(d,r,n);if(h)return"-"}if("ordinal"===t)return i.isStringSafe(e)?l(e):i.isNumber(e)&&u(e)?e+"":"-";var p=(0,o.Sm)(e);return u(p)?s(p):i.isStringSafe(e)?l(e):"boolean"===typeof e?e+"":"-"}var h=["a","b","c","d","e","f","g"],d=function(e,t){return"{"+e+(null==t?"":t)+"}"};function p(e,t,n){i.isArray(t)||(t=[t]);var o=t.length;if(!o)return"";for(var a=t[0].$vars||[],s=0;s<a.length;s++){var l=h[s];e=e.replace(d(l),d(l,0))}for(var u=0;u<o;u++)for(var c=0;c<a.length;c++){var p=t[u][a[c]];e=e.replace(d(h[c],u),n?(0,r.Me)(p):p)}return e}function f(e,t,n){return i.each(t,(function(t,i){e=e.replace("{"+i+"}",n?(0,r.Me)(t):t)})),e}function g(e,t){var n=i.isString(e)?{color:e,extraCssText:t}:e||{},o=n.color,a=n.type;t=n.extraCssText;var s=n.renderMode||"html";if(!o)return"";if("html"===s)return"subItem"===a?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+(0,r.Me)(o)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+(0,r.Me)(o)+";"+(t||"")+'"></span>';var l=n.markerId||"markerX";return{renderMode:s,content:"{"+l+"|} ",style:"subItem"===a?{width:4,height:4,borderRadius:2,backgroundColor:o}:{width:10,height:10,borderRadius:5,backgroundColor:o}}}function y(e,t,n){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var i=(0,o._U)(t),r=n?"getUTC":"get",s=i[r+"FullYear"](),l=i[r+"Month"]()+1,u=i[r+"Date"](),c=i[r+"Hours"](),h=i[r+"Minutes"](),d=i[r+"Seconds"](),p=i[r+"Milliseconds"]();return e=e.replace("MM",(0,a.eV)(l,2)).replace("M",l).replace("yyyy",s).replace("yy",(0,a.eV)(s%100+"",2)).replace("dd",(0,a.eV)(u,2)).replace("d",u).replace("hh",(0,a.eV)(c,2)).replace("h",c).replace("mm",(0,a.eV)(h,2)).replace("m",h).replace("ss",(0,a.eV)(d,2)).replace("s",d).replace("SSS",(0,a.eV)(p,3)),e}function m(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e}function v(e,t){return t=t||"transparent",i.isString(e)?e:i.isObject(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function x(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}},4312:(e,t,n)=>{n.r(t),n.d(t,{Arc:()=>_.A,BezierCurve:()=>x.A,BoundingRect:()=>M.A,Circle:()=>h.A,CompoundPath:()=>b.A,Ellipse:()=>d.A,Group:()=>u.A,Image:()=>l.Ay,IncrementalDisplayable:()=>C.A,Line:()=>v.A,LinearGradient:()=>S.A,OrientedBoundingRect:()=>A.A,Path:()=>a.Ay,Point:()=>I.A,Polygon:()=>g.A,Polyline:()=>y.A,RadialGradient:()=>w.A,Rect:()=>m.A,Ring:()=>f.A,Sector:()=>p.A,Text:()=>c.Ay,applyTransform:()=>q,clipPointsByRect:()=>ee,clipRectByRect:()=>te,createIcon:()=>ne,extendPath:()=>V,extendShape:()=>R,getShapeClass:()=>B,getTransform:()=>j,groupTransition:()=>Q,initProps:()=>k.LW,isElementRemoved:()=>k.LR,lineLineIntersect:()=>re,linePolygonIntersect:()=>ie,makeImage:()=>F,makePath:()=>G,mergePath:()=>W,registerShape:()=>z,removeElement:()=>k.Nz,removeElementWithFadeOut:()=>k.t5,resizePath:()=>U,setTooltipConfig:()=>se,subPixelOptimize:()=>Z,subPixelOptimizeLine:()=>Y,subPixelOptimizeRect:()=>X,transformDirection:()=>$,traverseElements:()=>ue,updateProps:()=>k.oi});var i=n(8215),r=n(7454),o=n(392),a=n(7537),s=n(4151),l=n(4325),u=n(3947),c=n(9225),h=n(896),d=n(7639),p=n(4551),f=n(118),g=n(3848),y=n(5536),m=n(6686),v=n(3482),x=n(3200),_=n(5910),b=n(9616),S=n(9463),w=n(7357),M=n(4277),A=n(1693),I=n(9773),C=n(6767),T=n(6336),D=n(5279),L=n(39),k=n(2575),O=Math.max,P=Math.min,N={};function R(e){return a.Ay.extend(e)}var E=i.Qh;function V(e,t){return E(e,t)}function z(e,t){N[e]=t}function B(e){if(N.hasOwnProperty(e))return N[e]}function G(e,t,n,r){var o=i.UJ(e,t);return n&&("center"===r&&(n=H(n,o.getBoundingRect())),U(o,n)),o}function F(e,t,n){var i=new l.Ay({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var r={width:e.width,height:e.height};i.setStyle(H(t,r))}}});return i}function H(e,t){var n,i=t.width/t.height,r=e.height*i;r<=e.width?n=e.height:(r=e.width,n=r/i);var o=e.x+e.width/2,a=e.y+e.height/2;return{x:o-r/2,y:a-n/2,width:r,height:n}}var W=i.uc;function U(e,t){if(e.applyTransform){var n=e.getBoundingRect(),i=n.calculateTransform(t);e.applyTransform(i)}}function Y(e,t){return T.eB(e,e,{lineWidth:t}),e}function X(e){return T.Op(e.shape,e.shape,e.style),e}var Z=T.M7;function j(e,t){var n=r.identity([]);while(e&&e!==t)r.mul(n,e.getLocalTransform(),n),e=e.parent;return n}function q(e,t,n){return t&&!(0,D.isArrayLike)(t)&&(t=s.Ay.getLocalTransform(t)),n&&(t=r.invert([],t)),o.applyTransform([],e,t)}function $(e,t,n){var i=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),r=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),o=["left"===e?-i:"right"===e?i:0,"top"===e?-r:"bottom"===e?r:0];return o=q(o,t,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function K(e){return!e.isGroup}function J(e){return null!=e.shape}function Q(e,t,n){if(e&&t){var i=r(e);t.traverse((function(e){if(K(e)&&e.anid){var t=i[e.anid];if(t){var r=o(e);e.attr(o(t)),(0,k.oi)(e,r,n,(0,L.z)(e).dataIndex)}}}))}function r(e){var t={};return e.traverse((function(e){K(e)&&e.anid&&(t[e.anid]=e)})),t}function o(e){var t={x:e.x,y:e.y,rotation:e.rotation};return J(e)&&(t.shape=(0,D.extend)({},e.shape)),t}}function ee(e,t){return(0,D.map)(e,(function(e){var n=e[0];n=O(n,t.x),n=P(n,t.x+t.width);var i=e[1];return i=O(i,t.y),i=P(i,t.y+t.height),[n,i]}))}function te(e,t){var n=O(e.x,t.x),i=P(e.x+e.width,t.x+t.width),r=O(e.y,t.y),o=P(e.y+e.height,t.y+t.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function ne(e,t,n){var i=(0,D.extend)({rectHover:!0},t),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(r.image=e.slice(8),(0,D.defaults)(r,n),new l.Ay(i)):G(e.replace("path://",""),i,n,"center")}function ie(e,t,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(re(e,t,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function re(e,t,n,i,r,o,a,s){var l=n-e,u=i-t,c=a-r,h=s-o,d=oe(c,h,l,u);if(ae(d))return!1;var p=e-r,f=t-o,g=oe(p,f,l,u)/d;if(g<0||g>1)return!1;var y=oe(p,f,c,h)/d;return!(y<0||y>1)}function oe(e,t,n,i){return e*i-n*t}function ae(e){return e<=1e-6&&e>=-1e-6}function se(e){var t=e.itemTooltipOption,n=e.componentModel,i=e.itemName,r=(0,D.isString)(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=e.formatterParamsExtra;l&&(0,D.each)((0,D.keys)(l),(function(e){(0,D.hasOwn)(s,e)||(s[e]=l[e],s.$vars.push(e))}));var u=(0,L.z)(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:(0,D.defaults)({content:i,encodeHTMLContent:!0,formatterParams:s},r)}}function le(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function ue(e,t){if(e)if((0,D.isArray)(e))for(var n=0;n<e.length;n++)le(e[n],t);else le(e,t)}z("circle",h.A),z("ellipse",d.A),z("sector",p.A),z("ring",f.A),z("polygon",g.A),z("polyline",y.A),z("rect",m.A),z("line",v.A),z("bezierCurve",x.A),z("arc",_.A)},39:(e,t,n)=>{n.d(t,{a:()=>o,z:()=>r});var i=n(7045),r=(0,i.$r)(),o=function(e,t,n,i){if(i){var o=r(i);o.dataIndex=n,o.dataType=t,o.seriesIndex=e,o.ssrType="chart","group"===i.type&&i.traverse((function(i){var o=r(i);o.seriesIndex=e,o.dataIndex=n,o.dataType=t,o.ssrType="chart"}))}}},308:(e,t,n)=>{n.d(t,{HU:()=>d,Ir:()=>x,Qf:()=>g,Tj:()=>l,YA:()=>m,aP:()=>h,ad:()=>y,dV:()=>p,m$:()=>f,vs:()=>v});var i=n(5279),r=n(4277),o=n(6471),a=n(8269),s=i.each,l=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function c(e,t,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;t.eachChild((function(l,u){var c,h,d=l.getBoundingRect(),p=t.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===e){var g=d.width+(f?-f.x+d.x:0);c=o+g,c>i||l.newline?(o=0,c=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var y=d.height+(f?-f.y+d.y:0);h=a+y,h>r||l.newline?(o+=s+n,a=0,h=y,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===e?o=c+n:a=h+n)}))}var h=c;i.curry(c,"vertical"),i.curry(c,"horizontal");function d(e,t,n){var i=t.width,r=t.height,s=(0,o.lo)(e.left,i),l=(0,o.lo)(e.top,r),u=(0,o.lo)(e.right,i),c=(0,o.lo)(e.bottom,r);return(isNaN(s)||isNaN(parseFloat(e.left)))&&(s=0),(isNaN(u)||isNaN(parseFloat(e.right)))&&(u=i),(isNaN(l)||isNaN(parseFloat(e.top)))&&(l=0),(isNaN(c)||isNaN(parseFloat(e.bottom)))&&(c=r),n=a.QX(n||0),{width:Math.max(u-s-n[1]-n[3],0),height:Math.max(c-l-n[0]-n[2],0)}}function p(e,t,n){n=a.QX(n||0);var i=t.width,s=t.height,l=(0,o.lo)(e.left,i),u=(0,o.lo)(e.top,s),c=(0,o.lo)(e.right,i),h=(0,o.lo)(e.bottom,s),d=(0,o.lo)(e.width,i),p=(0,o.lo)(e.height,s),f=n[2]+n[0],g=n[1]+n[3],y=e.aspect;switch(isNaN(d)&&(d=i-c-g-l),isNaN(p)&&(p=s-h-f-u),null!=y&&(isNaN(d)&&isNaN(p)&&(y>i/s?d=.8*i:p=.8*s),isNaN(d)&&(d=y*p),isNaN(p)&&(p=d/y)),isNaN(l)&&(l=i-c-d-g),isNaN(u)&&(u=s-h-p-f),e.left||e.right){case"center":l=i/2-d/2-n[3];break;case"right":l=i-d-g;break}switch(e.top||e.bottom){case"middle":case"center":u=s/2-p/2-n[0];break;case"bottom":u=s-p-f;break}l=l||0,u=u||0,isNaN(d)&&(d=i-g-l-(c||0)),isNaN(p)&&(p=s-f-u-(h||0));var m=new r.A(l+n[3],u+n[0],d,p);return m.margin=n,m}function f(e,t,n,o,a,s){var l,u=!a||!a.hv||a.hv[0],c=!a||!a.hv||a.hv[1],h=a&&a.boundingMode||"all";if(s=s||e,s.x=e.x,s.y=e.y,!u&&!c)return!1;if("raw"===h)l="group"===e.type?new r.A(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var d=e.getLocalTransform();l=l.clone(),l.applyTransform(d)}var f=p(i.defaults({width:l.width,height:l.height},t),n,o),g=u?f.x-l.x:0,y=c?f.y-l.y:0;return"raw"===h?(s.x=g,s.y=y):(s.x+=g,s.y+=y),s===e&&e.markRedraw(),!0}function g(e,t){return null!=e[u[t][0]]||null!=e[u[t][1]]&&null!=e[u[t][2]]}function y(e){var t=e.layoutMode||e.constructor.layoutMode;return i.isObject(t)?t:t?{type:t}:null}function m(e,t,n){var r=n&&n.ignoreSize;!i.isArray(r)&&(r=[r,r]);var o=l(u[0],0),a=l(u[1],1);function l(n,i){var o={},a=0,l={},u=0,d=2;if(s(n,(function(t){l[t]=e[t]})),s(n,(function(e){c(t,e)&&(o[e]=l[e]=t[e]),h(o,e)&&a++,h(l,e)&&u++})),r[i])return h(t,n[1])?l[n[2]]=null:h(t,n[2])&&(l[n[1]]=null),l;if(u!==d&&a){if(a>=d)return o;for(var p=0;p<n.length;p++){var f=n[p];if(!c(o,f)&&c(e,f)){o[f]=e[f];break}}return o}return l}function c(e,t){return e.hasOwnProperty(t)}function h(e,t){return null!=e[t]&&"auto"!==e[t]}function d(e,t,n){s(e,(function(e){t[e]=n[e]}))}d(u[0],e,o),d(u[1],e,a)}function v(e){return x({},e)}function x(e,t){return t&&e&&s(l,(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}},3682:(e,t,n)=>{n.d(t,{$8:()=>u,R8:()=>s,aT:()=>l});var i="[ECharts] ",r={},o="undefined"!==typeof console&&console.warn&&console.log;function a(e,t,n){if(o){if(n){if(r[t])return;r[t]=!0}console[e](i+t)}}function s(e,t){a("warn",e,t)}function l(e){0}function u(e){throw new Error(e)}},7045:(e,t,n)=>{n.d(t,{$r:()=>k,Bq:()=>z,D$:()=>B,D6:()=>D,GX:()=>C,HB:()=>N,Il:()=>H,JO:()=>V,JS:()=>h,M5:()=>c,O0:()=>M,O2:()=>f,S_:()=>I,Sq:()=>F,US:()=>R,UW:()=>E,XJ:()=>G,_e:()=>P,le:()=>L,oh:()=>A,qB:()=>u,vS:()=>w,vj:()=>d,zu:()=>p});var i=n(5279),r=n(1688),o=n(6471);function a(e,t,n){return(t-e)*n+e}var s="series\0",l="\0_ec_\0";function u(e){return e instanceof Array?e:null==e?[]:[e]}function c(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var h=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function d(e){return!(0,i.isObject)(e)||(0,i.isArray)(e)||e instanceof Date?e:e.value}function p(e){return(0,i.isObject)(e)&&!(e instanceof Array)}function f(e,t,n){var r="normalMerge"===n,o="replaceMerge"===n,a="replaceAll"===n;e=e||[],t=(t||[]).slice();var s=(0,i.createHashMap)();(0,i.each)(t,(function(e,n){(0,i.isObject)(e)||(t[n]=null)}));var l=g(e,s,n);return(r||o)&&y(l,e,s,t),r&&m(l,t),r||o?v(l,t,o):a&&x(l,t),_(l),l}function g(e,t,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<e.length;r++){var o=e[r];o&&null!=o.id&&t.set(o.id,r),i.push({existing:"replaceMerge"===n||A(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}function y(e,t,n,r){(0,i.each)(r,(function(o,a){if(o&&null!=o.id){var s=S(o.id),l=n.get(s);if(null!=l){var u=e[l];(0,i.assert)(!u.newOption,'Duplicated option on id "'+s+'".'),u.newOption=o,u.existing=t[l],r[a]=null}}}))}function m(e,t){(0,i.each)(t,(function(n,i){if(n&&null!=n.name)for(var r=0;r<e.length;r++){var o=e[r].existing;if(!e[r].newOption&&o&&(null==o.id||null==n.id)&&!A(n)&&!A(o)&&b("name",o,n))return e[r].newOption=n,void(t[i]=null)}}))}function v(e,t,n){(0,i.each)(t,(function(t){if(t){var i,r=0;while((i=e[r])&&(i.newOption||A(i.existing)||i.existing&&null!=t.id&&!b("id",t,i.existing)))r++;i?(i.newOption=t,i.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),r++}}))}function x(e,t){(0,i.each)(t,(function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})}))}function _(e){var t=(0,i.createHashMap)();(0,i.each)(e,(function(e){var n=e.existing;n&&t.set(n.id,e)})),(0,i.each)(e,(function(e){var n=e.newOption;(0,i.assert)(!n||null==n.id||!t.get(n.id)||t.get(n.id)===e,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})})),(0,i.each)(e,(function(e,n){var r=e.existing,o=e.newOption,a=e.keyInfo;if((0,i.isObject)(o)){if(a.name=null!=o.name?S(o.name):r?r.name:s+n,r)a.id=S(r.id);else if(null!=o.id)a.id=S(o.id);else{var l=0;do{a.id="\0"+a.name+"\0"+l++}while(t.get(a.id))}t.set(a.id,e)}}))}function b(e,t,n){var i=w(t[e],null),r=w(n[e],null);return null!=i&&null!=r&&i===r}function S(e){return w(e,"")}function w(e,t){return null==e?t:(0,i.isString)(e)?e:(0,i.isNumber)(e)||(0,i.isStringSafe)(e)?e+"":t}function M(e){var t=e.name;return!(!t||!t.indexOf(s))}function A(e){return e&&null!=e.id&&0===S(e.id).indexOf(l)}function I(e){return l+e}function C(e,t,n){(0,i.each)(e,(function(e){var r=e.newOption;(0,i.isObject)(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=T(t,r,e.existing,n))}))}function T(e,t,n,i){var r=t.type?t.type:n?n.subType:i.determineSubType(e,t);return r}function D(e,t){var n={},i={};return r(e||[],n),r(t||[],i,n),[o(n),o(i)];function r(e,t,n){for(var i=0,r=e.length;i<r;i++){var o=w(e[i].seriesId,null);if(null==o)return;for(var a=u(e[i].dataIndex),s=n&&n[o],l=0,c=a.length;l<c;l++){var h=a[l];s&&s[h]?s[h]=null:(t[o]||(t[o]={}))[h]=1}}}function o(e,t){var n=[];for(var i in e)if(e.hasOwnProperty(i)&&null!=e[i])if(t)n.push(+i);else{var r=o(e[i],!0);r.length&&n.push({seriesId:i,dataIndex:r})}return n}}function L(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?(0,i.isArray)(t.dataIndex)?(0,i.map)(t.dataIndex,(function(t){return e.indexOfRawIndex(t)})):e.indexOfRawIndex(t.dataIndex):null!=t.name?(0,i.isArray)(t.name)?(0,i.map)(t.name,(function(t){return e.indexOfName(t)})):e.indexOfName(t.name):void 0}function k(){var e="__ec_inner_"+O++;return function(t){return t[e]||(t[e]={})}}var O=(0,o.IH)();function P(e,t,n){var i=N(t,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=a,l=n?n.defaultMainType:null;return!r&&l&&o.set(l,{}),o.each((function(t,i){var r=V(e,i,t,{useDefault:l===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});s[i+"Models"]=r.models,s[i+"Model"]=r.models[0]})),s}function N(e,t){var n;if((0,i.isString)(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var o=(0,i.createHashMap)(),a={},s=!1;return(0,i.each)(n,(function(e,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],l=r[1],u=(r[2]||"").toLowerCase();if(l&&u&&!(t&&t.includeMainTypes&&(0,i.indexOf)(t.includeMainTypes,l)<0)){s=s||!!l;var c=o.get(l)||o.set(l,{});c[u]=e}}else a[n]=e})),{mainTypeSpecified:s,queryOptionMap:o,others:a}}var R={useDefault:!0,enableAll:!1,enableNone:!1},E={useDefault:!1,enableAll:!0,enableNone:!0};function V(e,t,n,r){r=r||R;var o=n.index,a=n.id,s=n.name,l={models:null,specified:null!=o||null!=a||null!=s};if(!l.specified){var u=void 0;return l.models=r.useDefault&&(u=e.getComponent(t))?[u]:[],l}return"none"===o||!1===o?((0,i.assert)(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),l.models=[],l):("all"===o&&((0,i.assert)(r.enableAll,'`"all"` is not a valid value on index option.'),o=a=s=null),l.models=e.queryComponents({mainType:t,index:o,id:a,name:s}),l)}function z(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function B(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function G(e){return"auto"===e?r.A.domSupported?"html":"richText":e||"html"}function F(e,t){var n=(0,i.createHashMap)(),r=[];return(0,i.each)(e,(function(e){var i=t(e);(n.get(i)||(r.push(i),n.set(i,[]))).push(e)})),{keys:r,buckets:n}}function H(e,t,n,r,s){var l=null==t||"auto"===t;if(null==r)return r;if((0,i.isNumber)(r)){var u=a(n||0,r,s);return(0,o.LI)(u,l?Math.max((0,o.XV)(n||0),(0,o.XV)(r)):t)}if((0,i.isString)(r))return s<1?n:r;for(var c=[],h=n,d=r,p=Math.max(h?h.length:0,d.length),f=0;f<p;++f){var g=e.getDimensionInfo(f);if(g&&"ordinal"===g.type)c[f]=(s<1&&h?h:d)[f];else{var y=h&&h[f]?h[f]:0,m=d[f];u=a(y,m,s);c[f]=(0,o.LI)(u,l?Math.max((0,o.XV)(y),(0,o.XV)(m)):t)}}return c}},6471:(e,t,n)=>{n.d(t,{Cb:()=>s,Cm:()=>M,IH:()=>D,Is:()=>m,LI:()=>u,NX:()=>w,Sm:()=>C,Tr:()=>y,XV:()=>h,Y6:()=>c,YV:()=>A,_7:()=>v,_U:()=>b,au:()=>S,dh:()=>x,hb:()=>p,kM:()=>g,kf:()=>T,lQ:()=>k,lo:()=>l,sL:()=>I,wp:()=>f,y6:()=>d});var i=n(5279),r=1e-4,o=20;function a(e){return e.replace(/^\s+|\s+$/g,"")}function s(e,t,n,i){var r=t[0],o=t[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i)if(l>0){if(e<=r)return a;if(e>=o)return s}else{if(e>=r)return a;if(e<=o)return s}else{if(e===r)return a;if(e===o)return s}return(e-r)/l*u+a}function l(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return i.isString(e)?a(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function u(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),o),e=(+e).toFixed(t),n?e:+e}function c(e){return e.sort((function(e,t){return e-t})),e}function h(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return d(e)}function d(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),i=n>0?+t.slice(n+1):0,r=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function p(e,t){var n=Math.log,i=Math.LN10,r=Math.floor(n(e[1]-e[0])/i),o=Math.round(n(Math.abs(t[1]-t[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function f(e,t,n){if(!e[t])return 0;var i=g(e,n);return i[t]||0}function g(e,t){var n=i.reduce(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===n)return[];var r=Math.pow(10,t),o=i.map(e,(function(e){return(isNaN(e)?0:e)/n*r*100})),a=100*r,s=i.map(o,(function(e){return Math.floor(e)})),l=i.reduce(s,(function(e,t){return e+t}),0),u=i.map(o,(function(e,t){return e-s[t]}));while(l<a){for(var c=Number.NEGATIVE_INFINITY,h=null,d=0,p=u.length;d<p;++d)u[d]>c&&(c=u[d],h=d);++s[h],u[h]=0,++l}return i.map(s,(function(e){return e/r}))}function y(e,t){var n=Math.max(h(e),h(t)),i=e+t;return n>o?i:u(i,n)}var m=9007199254740991;function v(e){var t=2*Math.PI;return(e%t+t)%t}function x(e){return e>-r&&e<r}var _=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function b(e){if(e instanceof Date)return e;if(i.isString(e)){var t=_.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return null==e?new Date(NaN):new Date(Math.round(e))}function S(e){return Math.pow(10,w(e))}function w(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function M(e,t){var n,i=w(e),r=Math.pow(10,i),o=e/r;return n=t?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,e=n*r,i>=-20?+e.toFixed(i<0?-i:0):e}function A(e,t){var n=(e.length-1)*t+1,i=Math.floor(n),r=+e[i-1],o=n-i;return o?r+o*(e[i]-r):r}function I(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,n=1,i=0;i<e.length;){for(var r=e[i].interval,o=e[i].close,a=0;a<2;a++)r[a]<=t&&(r[a]=t,o[a]=a?1:1-n),t=r[a],n=o[a];r[0]===r[1]&&o[0]*o[1]!==1?e.splice(i,1):i++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&s(e,t,1))}}function C(e){var t=parseFloat(e);return t==e&&(0!==t||!i.isString(e)||e.indexOf("x")<=0)?t:NaN}function T(e){return!isNaN(C(e))}function D(){return Math.round(9*Math.random())}function L(e,t){return 0===t?e:L(t,e%t)}function k(e,t){return null==e?t:null==t?e:e*t/L(e,t)}},5724:(e,t,n)=>{n.d(t,{BV:()=>g,CA:()=>m,DW:()=>G,Du:()=>J,HY:()=>W,Iz:()=>ne,JC:()=>X,JI:()=>Z,Lm:()=>le,Lv:()=>b,Lx:()=>me,Mx:()=>de,PW:()=>_,Pk:()=>N,Q6:()=>w,QX:()=>Y,SD:()=>U,T$:()=>ve,Tl:()=>ee,U2:()=>S,_m:()=>te,_n:()=>ye,e3:()=>f,fz:()=>xe,gR:()=>ue,gd:()=>j,h5:()=>x,iJ:()=>ae,ix:()=>pe,jA:()=>re,lV:()=>Q,mc:()=>oe,ml:()=>ge,qR:()=>$,t6:()=>ie,u6:()=>fe,wV:()=>y,zX:()=>p});var i=n(5279),r=n(39),o=n(2485),a=n(7045),s=n(7537),l=1,u={},c=(0,a.$r)(),h=(0,a.$r)(),d=0,p=1,f=2,g=["emphasis","blur","select"],y=["normal","emphasis","blur","select"],m=10,v=9,x="highlight",_="downplay",b="select",S="unselect",w="toggleSelect";function M(e){return null!=e&&"none"!==e}function A(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function I(e){A(e,"emphasis",f)}function C(e){e.hoverState===f&&A(e,"normal",d)}function T(e){A(e,"blur",p)}function D(e){e.hoverState===p&&A(e,"normal",d)}function L(e){e.selected=!0}function k(e){e.selected=!1}function O(e,t,n){t(e,n)}function P(e,t,n){O(e,t,n),e.isGroup&&e.traverse((function(e){O(e,t,n)}))}function N(e,t){switch(t){case"emphasis":e.hoverState=f;break;case"normal":e.hoverState=d;break;case"blur":e.hoverState=p;break;case"select":e.selected=!0}}function R(e,t,n,i){for(var r=e.style,o={},a=0;a<t.length;a++){var s=t[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(a=0;a<e.animators.length;a++){var u=e.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,t)}return o}function E(e,t,n,r){var a=n&&(0,i.indexOf)(n,"select")>=0,l=!1;if(e instanceof s.Ay){var u=c(e),h=a&&u.selectFill||u.normalFill,d=a&&u.selectStroke||u.normalStroke;if(M(h)||M(d)){r=r||{};var p=r.style||{};"inherit"===p.fill?(l=!0,r=(0,i.extend)({},r),p=(0,i.extend)({},p),p.fill=h):!M(p.fill)&&M(h)?(l=!0,r=(0,i.extend)({},r),p=(0,i.extend)({},p),p.fill=(0,o.liftColor)(h)):!M(p.stroke)&&M(d)&&(l||(r=(0,i.extend)({},r),p=(0,i.extend)({},p)),p.stroke=(0,o.liftColor)(d)),r.style=p}}if(r&&null==r.z2){l||(r=(0,i.extend)({},r));var f=e.z2EmphasisLift;r.z2=e.z2+(null!=f?f:m)}return r}function V(e,t,n){if(n&&null==n.z2){n=(0,i.extend)({},n);var r=e.z2SelectLift;n.z2=e.z2+(null!=r?r:v)}return n}function z(e,t,n){var r=(0,i.indexOf)(e.currentStates,t)>=0,o=e.style.opacity,a=r?null:R(e,["opacity"],t,{opacity:1});n=n||{};var s=n.style||{};return null==s.opacity&&(n=(0,i.extend)({},n),s=(0,i.extend)({opacity:r?o:.1*a.opacity},s),n.style=s),n}function B(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return E(this,e,t,n);if("blur"===e)return z(this,e,n);if("select"===e)return V(this,e,n)}return n}function G(e){e.stateProxy=B;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=B),n&&(n.stateProxy=B)}function F(e,t){!q(e,t)&&!e.__highByOuter&&P(e,I)}function H(e,t){!q(e,t)&&!e.__highByOuter&&P(e,C)}function W(e,t){e.__highByOuter|=1<<(t||0),P(e,I)}function U(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&P(e,C)}function Y(e){P(e,T)}function X(e){P(e,D)}function Z(e){P(e,L)}function j(e){P(e,k)}function q(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function $(e){var t=e.getModel(),n=[],r=[];t.eachComponent((function(t,i){var o=h(i),a="series"===t,s=a?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse((function(e){D(e)})),a&&n.push(i)),o.isBlured=!1})),(0,i.each)(r,(function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)}))}function K(e,t,n,r){var o=r.getModel();function a(e,t){for(var n=0;n<t.length;n++){var i=e.getItemGraphicEl(t[n]);i&&X(i)}}if(n=n||"coordinateSystem",null!=e&&t&&"none"!==t){var s=o.getSeriesByIndex(e),l=s.coordinateSystem;l&&l.master&&(l=l.master);var u=[];o.eachSeries((function(e){var o=s===e,c=e.coordinateSystem;c&&c.master&&(c=c.master);var d=c&&l?c===l:o;if(!("series"===n&&!o||"coordinateSystem"===n&&!d||"series"===t&&o)){var p=r.getViewOfSeriesModel(e);if(p.group.traverse((function(e){e.__highByOuter&&o&&"self"===t||T(e)})),(0,i.isArrayLike)(t))a(e.getData(),t);else if((0,i.isObject)(t))for(var f=(0,i.keys)(t),g=0;g<f.length;g++)a(e.getData(f[g]),t[f[g]]);u.push(e),h(e).isBlured=!0}})),o.eachComponent((function(e,t){if("series"!==e){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(u,!0,o)}}))}}function J(e,t,n){if(null!=e&&null!=t){var i=n.getModel().getComponent(e,t);if(i){h(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse((function(e){T(e)}))}}}function Q(e,t,n){var o=e.seriesIndex,s=e.getData(t.dataType);if(s){var l=(0,a.le)(s,t);l=((0,i.isArray)(l)?l[0]:l)||0;var u=s.getItemGraphicEl(l);if(!u){var c=s.count(),h=0;while(!u&&h<c)u=s.getItemGraphicEl(h++)}if(u){var d=(0,r.z)(u);K(o,d.focus,d.blurScope,n)}else{var p=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);null!=p&&K(o,p,f,n)}}}function ee(e,t,n,i){var o={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return o;var a=i.getModel().getComponent(e,t);if(!a)return o;var s=i.getViewOfComponentModel(a);if(!s||!s.findHighDownDispatchers)return o;for(var l,u=s.findHighDownDispatchers(n),c=0;c<u.length;c++)if("self"===(0,r.z)(u[c]).focus){l=!0;break}return{focusSelf:l,dispatchers:u}}function te(e,t,n){var o=(0,r.z)(e),a=ee(o.componentMainType,o.componentIndex,o.componentHighDownName,n),s=a.dispatchers,l=a.focusSelf;s?(l&&J(o.componentMainType,o.componentIndex,n),(0,i.each)(s,(function(e){return F(e,t)}))):(K(o.seriesIndex,o.focus,o.blurScope,n),"self"===o.focus&&J(o.componentMainType,o.componentIndex,n),F(e,t))}function ne(e,t,n){$(n);var o=(0,r.z)(e),a=ee(o.componentMainType,o.componentIndex,o.componentHighDownName,n).dispatchers;a?(0,i.each)(a,(function(e){return H(e,t)})):H(e,t)}function ie(e,t,n){if(me(t)){var r=t.dataType,o=e.getData(r),s=(0,a.le)(o,t);(0,i.isArray)(s)||(s=[s]),e[t.type===w?"toggleSelect":t.type===b?"select":"unselect"](s,r)}}function re(e){var t=e.getAllData();(0,i.each)(t,(function(t){var n=t.data,i=t.type;n.eachItemGraphicEl((function(t,n){e.isSelected(n,i)?Z(t):j(t)}))}))}function oe(e){var t=[];return e.eachSeries((function(e){var n=e.getAllData();(0,i.each)(n,(function(n){n.data;var i=n.type,r=e.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:e.seriesIndex};null!=i&&(o.dataType=i),t.push(o)}}))})),t}function ae(e,t,n){pe(e,!0),P(e,G),ue(e,t,n)}function se(e){pe(e,!1)}function le(e,t,n,i){i?se(e):ae(e,t,n)}function ue(e,t,n){var i=(0,r.z)(e);null!=t?(i.focus=t,i.blurScope=n):i.focus&&(i.focus=null)}var ce=["emphasis","blur","select"],he={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function de(e,t,n,i){n=n||"itemStyle";for(var r=0;r<ce.length;r++){var o=ce[r],a=t.getModel([o,n]),s=e.ensureState(o);s.style=i?i(a):a[he[n]]()}}function pe(e,t){var n=!1===t,i=e;e.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=e.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function fe(e){return!(!e||!e.__highDownDispatcher)}function ge(e,t,n){var i=(0,r.z)(e);i.componentMainType=t.mainType,i.componentIndex=t.componentIndex,i.componentHighDownName=n}function ye(e){var t=u[e];return null==t&&l<=32&&(t=u[e]=l++),t}function me(e){var t=e.type;return t===b||t===S||t===w}function ve(e){var t=e.type;return t===x||t===_}function xe(e){var t=c(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}},2842:(e,t,n)=>{n.d(t,{$V:()=>v,hV:()=>w,v5:()=>b,xU:()=>S});var i=n(5279),r=n(7537),o=n(3482),a=n(6686),s=n(896),l=n(4312),u=n(4277),c=n(8826),h=n(6471),d=r.Ay.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,o=t.height/2;e.moveTo(n,i-o),e.lineTo(n+r,i+o),e.lineTo(n-r,i+o),e.closePath()}}),p=r.Ay.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,o=t.height/2;e.moveTo(n,i-o),e.lineTo(n+r,i),e.lineTo(n,i+o),e.lineTo(n-r,i),e.closePath()}}),f=r.Ay.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,i=t.y,r=t.width/5*3,o=Math.max(r,t.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),d=Math.cos(u),p=.6*a,f=.7*a;e.moveTo(n-c,l+s),e.arc(n,l,a,Math.PI-u,2*Math.PI+u),e.bezierCurveTo(n+c-h*p,l+s+d*p,n,i-f,n,i),e.bezierCurveTo(n,i-f,n-c+h*p,l+s+d*p,n-c,l+s),e.closePath()}}),g=r.Ay.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,i=t.width,r=t.x,o=t.y,a=i/3*2;e.moveTo(r,o),e.lineTo(r+a,o+n),e.lineTo(r,o+n/4*3),e.lineTo(r-a,o+n),e.lineTo(r,o),e.closePath()}}),y={line:o.A,rect:a.A,roundRect:a.A,square:a.A,circle:s.A,diamond:p,pin:f,arrow:g,triangle:d},m={line:function(e,t,n,i,r){r.x1=e,r.y1=t+i/2,r.x2=e+n,r.y2=t+i/2},rect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i},roundRect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(e,t,n,i,r){var o=Math.min(n,i);r.x=e,r.y=t,r.width=o,r.height=o},circle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.r=Math.min(n,i)/2},diamond:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i},pin:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},arrow:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},triangle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i}},v={};(0,i.each)(y,(function(e,t){v[t]=new e}));var x=r.Ay.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var i=(0,c.X4)(e,t,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===t.position&&(i.y=n.y+.4*n.height),i},buildPath:function(e,t,n){var i=t.symbolType;if("none"!==i){var r=v[i];r||(i="rect",r=v[i]),m[i](t.x,t.y,t.width,t.height,r.shape),r.buildPath(e,r.shape,n)}}});function _(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function b(e,t,n,i,r,o,a){var s,c=0===e.indexOf("empty");return c&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),s=0===e.indexOf("image://")?l.makeImage(e.slice(8),new u.A(t,n,i,r),a?"center":"cover"):0===e.indexOf("path://")?l.makePath(e.slice(7),{},new u.A(t,n,i,r),a?"center":"cover"):new x({shape:{symbolType:e,x:t,y:n,width:i,height:r}}),s.__isEmptyBrush=c,s.setColor=_,o&&s.setColor(o),s}function S(e){return(0,i.isArray)(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function w(e,t){if(null!=e)return(0,i.isArray)(e)||(e=[e,e]),[(0,h.lo)(e[0],t[0])||0,(0,h.lo)((0,i.retrieve2)(e[1],e[0]),t[1])||0]}},5750:(e,t,n)=>{n.d(t,{IU:()=>l,N:()=>s,nF:()=>a});var i="\0__throttleOriginMethod",r="\0__throttleRate",o="\0__throttleType";function a(e,t,n){var i,r,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,e.apply(o,a||[])}t=t||0;var d=function(){for(var e=[],d=0;d<arguments.length;d++)e[d]=arguments[d];i=(new Date).getTime(),o=this,a=e;var p=s||t,f=s||n;s=null,r=i-(f?l:u)-p,clearTimeout(c),f?c=setTimeout(h,p):r>=0?h():c=setTimeout(h,-r),l=i};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(e){s=e},d}function s(e,t,n,s){var l=e[t];if(l){var u=l[i]||l,c=l[o],h=l[r];if(h!==n||c!==s){if(null==n||!s)return e[t]=u;l=e[t]=a(u,n,"debounce"===s),l[i]=u,l[o]=s,l[r]=n}return l}}function l(e,t){var n=e[t];n&&n[i]&&(n.clear&&n.clear(),e[t]=n[i])}},155:(e,t,n)=>{n.d(t,{$9:()=>_,$H:()=>h,CZ:()=>c,F7:()=>y,FP:()=>z,GP:()=>b,KF:()=>E,Lm:()=>f,MA:()=>u,OY:()=>s,Wf:()=>L,X_:()=>S,Yd:()=>R,Zz:()=>k,bP:()=>C,ce:()=>x,eV:()=>m,g0:()=>M,hY:()=>A,iC:()=>T,iW:()=>l,jJ:()=>I,tM:()=>O,ti:()=>N,ww:()=>V,xu:()=>P,yB:()=>D,ym:()=>v});var i=n(5279),r=n(6471),o=n(8238),a=n(9338),s=1e3,l=60*s,u=60*l,c=24*u,h=365*c,d={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},p="{yyyy}-{MM}-{dd}",f={year:"{yyyy}",month:"{yyyy}-{MM}",day:p,hour:p+" "+d.hour,minute:p+" "+d.minute,second:p+" "+d.second,millisecond:d.none},g=["year","month","day","hour","minute","second","millisecond"],y=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function m(e,t){return e+="","0000".substr(0,t-e.length)+e}function v(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function x(e){return e===v(e)}function _(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function b(e,t,n,i){var s=r._U(e),l=s[A(n)](),u=s[I(n)]()+1,c=Math.floor((u-1)/3)+1,h=s[C(n)](),d=s["get"+(n?"UTC":"")+"Day"](),p=s[T(n)](),f=(p-1)%12+1,g=s[D(n)](),y=s[L(n)](),v=s[k(n)](),x=p>=12?"pm":"am",_=x.toUpperCase(),b=i instanceof a.A?i:(0,o.A4)(i||o.Lv)||(0,o.pr)(),S=b.getModel("time"),w=S.get("month"),M=S.get("monthAbbr"),O=S.get("dayOfWeek"),P=S.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,x+"").replace(/{A}/g,_+"").replace(/{yyyy}/g,l+"").replace(/{yy}/g,m(l%100+"",2)).replace(/{Q}/g,c+"").replace(/{MMMM}/g,w[u-1]).replace(/{MMM}/g,M[u-1]).replace(/{MM}/g,m(u,2)).replace(/{M}/g,u+"").replace(/{dd}/g,m(h,2)).replace(/{d}/g,h+"").replace(/{eeee}/g,O[d]).replace(/{ee}/g,P[d]).replace(/{e}/g,d+"").replace(/{HH}/g,m(p,2)).replace(/{H}/g,p+"").replace(/{hh}/g,m(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,m(g,2)).replace(/{m}/g,g+"").replace(/{ss}/g,m(y,2)).replace(/{s}/g,y+"").replace(/{SSS}/g,m(v,3)).replace(/{S}/g,v+"")}function S(e,t,n,r,o){var a=null;if(i.isString(n))a=n;else if(i.isFunction(n))a=n(e.value,t,{level:e.level});else{var s=i.extend({},d);if(e.level>0)for(var l=0;l<g.length;++l)s[g[l]]="{primary|"+s[g[l]]+"}";var u=n?!1===n.inherit?n:i.defaults(n,s):s,c=w(e.value,o);if(u[c])a=u[c];else if(u.inherit){var h=y.indexOf(c);for(l=h-1;l>=0;--l)if(u[c]){a=u[c];break}a=a||s.none}if(i.isArray(a)){var p=null==e.level?0:e.level>=0?e.level:a.length+e.level;p=Math.min(p,a.length-1),a=a[p]}}return b(new Date(e.value),a,o,r)}function w(e,t){var n=r._U(e),i=n[I(t)]()+1,o=n[C(t)](),a=n[T(t)](),s=n[D(t)](),l=n[L(t)](),u=n[k(t)](),c=0===u,h=c&&0===l,d=h&&0===s,p=d&&0===a,f=p&&1===o,g=f&&1===i;return g?"year":f?"month":p?"day":d?"hour":h?"minute":c?"second":"millisecond"}function M(e,t,n){var o=i.isNumber(e)?r._U(e):e;switch(t=t||w(e,n),t){case"year":return o[A(n)]();case"half-year":return o[I(n)]()>=6?1:0;case"quarter":return Math.floor((o[I(n)]()+1)/4);case"month":return o[I(n)]();case"day":return o[C(n)]();case"half-day":return o[T(n)]()/24;case"hour":return o[T(n)]();case"minute":return o[D(n)]();case"second":return o[L(n)]();case"millisecond":return o[k(n)]()}}function A(e){return e?"getUTCFullYear":"getFullYear"}function I(e){return e?"getUTCMonth":"getMonth"}function C(e){return e?"getUTCDate":"getDate"}function T(e){return e?"getUTCHours":"getHours"}function D(e){return e?"getUTCMinutes":"getMinutes"}function L(e){return e?"getUTCSeconds":"getSeconds"}function k(e){return e?"getUTCMilliseconds":"getMilliseconds"}function O(e){return e?"setUTCFullYear":"setFullYear"}function P(e){return e?"setUTCMonth":"setMonth"}function N(e){return e?"setUTCDate":"setDate"}function R(e){return e?"setUTCHours":"setHours"}function E(e){return e?"setUTCMinutes":"setMinutes"}function V(e){return e?"setUTCSeconds":"setSeconds"}function z(e){return e?"setUTCMilliseconds":"setMilliseconds"}},1533:(e,t,n)=>{n.d(t,{Km:()=>a,Pe:()=>r,Wk:()=>s,XO:()=>u,i_:()=>h,mK:()=>o,oC:()=>d,t1:()=>l,vm:()=>c});var i=n(5279),r=(0,i.createHashMap)(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),o="original",a="arrayRows",s="objectRows",l="keyedColumns",u="typedArray",c="unknown",h="column",d="row"},1829:(e,t,n)=>{n.d(t,{A:()=>_});var i=n(5279),r=n(3947),o=n(4839),a=n(6706),s=n(7045),l=n(5724),u=n(6962),c=n(1057),h=n(4312),d=s.$r(),p=(0,c.A)(),f=function(){function e(){this.group=new r.A,this.uid=o.$Q("viewChart"),this.renderTask=(0,u.U)({plan:m,reset:v}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,i){0},e.prototype.highlight=function(e,t,n,i){var r=e.getData(i&&i.dataType);r&&y(r,i,"emphasis")},e.prototype.downplay=function(e,t,n,i){var r=e.getData(i&&i.dataType);r&&y(r,i,"normal")},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.updateLayout=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.updateVisual=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.eachRendered=function(e){(0,h.traverseElements)(this.group,e)},e.markUpdateMethod=function(e,t){d(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function g(e,t,n){e&&(0,l.u6)(e)&&("emphasis"===t?l.HY:l.SD)(e,n)}function y(e,t,n){var r=s.le(e,t),o=t&&null!=t.highlightKey?(0,l._n)(t.highlightKey):null;null!=r?(0,i.each)(s.qB(r),(function(t){g(e.getItemGraphicEl(t),n,o)})):e.eachItemGraphicEl((function(e){g(e,n,o)}))}function m(e){return p(e.model)}function v(e){var t=e.model,n=e.ecModel,i=e.api,r=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=r&&d(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](t,n,i,r),x[l]}a.gq(f,["dispose"]),a.tQ(f);var x={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const _=f},126:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(3947),r=n(4839),o=n(6706),a=function(){function e(){this.group=new i.A,this.uid=r.$Q("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,i){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,i){},e.prototype.updateLayout=function(e,t,n,i){},e.prototype.updateVisual=function(e,t,n,i){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();o.gq(a),o.tQ(a);const s=a},7566:(e,t,n)=>{function i(e,t,n){switch(n){case"color":var i=e.getItemVisual(t,"style");return i[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n);default:0}}function r(e,t){switch(t){case"color":var n=e.getVisual("style");return n[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t);default:0}}function o(e,t,n,i){switch(n){case"color":var r=e.ensureUniqueItemVisual(t,"style");r[e.getVisual("drawType")]=i,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,i);break;default:0}}n.d(t,{Ez:()=>i,oZ:()=>o,rI:()=>r})},6581:(e,t,n)=>{n.r(t),n.d(t,{INIT_OPTIONS_KEY:()=>M,LOADING_OPTIONS_KEY:()=>y,THEME_KEY:()=>w,UPDATE_OPTIONS_KEY:()=>A,default:()=>C});var i=n(1758),r=n(8734),o=void 0;var a=n(5750),s=n(8938);const l=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function u(e){function t(t){return(...n)=>{if(!e.value)throw new Error("ECharts is not initialized yet.");return e.value[t].apply(e.value,n)}}function n(){const e=Object.create(null);return l.forEach((n=>{e[n]=t(n)})),e}return n()}function c(e,t,n){(0,i.wB)([n,e,t],(([e,t,n],i,r)=>{let o=null;if(e&&t&&n){const{offsetWidth:i,offsetHeight:r}=e,s=!0===n?{}:n,{throttle:l=100,onResize:u}=s;let c=!1;const h=()=>{t.resize(),u?.()},d=l?(0,a.nF)(h,l):h;o=new ResizeObserver((()=>{(c||(c=!0,e.offsetWidth!==i||e.offsetHeight!==r))&&d()})),o.observe(e)}r((()=>{o&&(o.disconnect(),o=null)}))}))}const h={autoresize:[Boolean,Object]},d=/^on[^a-z]/,p=e=>d.test(e);function f(e){const t={};for(const n in e)p(n)||(t[n]=e[n]);return t}function g(e,t){const n=(0,r.i9)(e)?(0,r.R1)(e):e;return n&&"object"===typeof n&&"value"in n?n.value||t:n||t}const y="ecLoadingOptions";function m(e,t,n){const r=(0,i.WQ)(y,{}),o=(0,i.EW)((()=>({...g(r,{}),...n?.value})));(0,i.nT)((()=>{const n=e.value;n&&(t.value?n.showLoading(o.value):n.hideLoading())}))}const v={loading:Boolean,loadingOptions:Object};let x=null;const _="x-vue-echarts";function b(){if(null!=x)return x;if("undefined"===typeof HTMLElement||"undefined"===typeof customElements)return x=!1;try{const e=new Function("tag","class EChartsElement extends HTMLElement{__dispose=null;disconnectedCallback(){this.__dispose&&(this.__dispose(),this.__dispose=null)}}customElements.get(tag)==null&&customElements.define(tag,EChartsElement);");e(_)}catch(e){return x=!1}return x=!0}document.head.appendChild(document.createElement("style")).textContent="x-vue-echarts{display:block;width:100%;height:100%;min-width:0}\n";const S=b();o&&o.config.ignoredElements.push(_);const w="ecTheme",M="ecInitOptions",A="ecUpdateOptions",I=/(^&?~?!?)native:/;var C=(0,i.pM)({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...h,...v},emits:{},inheritAttrs:!1,setup(e,{attrs:t}){const n=(0,r.IJ)(),o=(0,r.IJ)(),a=(0,r.IJ)(),l=(0,i.WQ)(w,null),h=(0,i.WQ)(M,null),d=(0,i.WQ)(A,null),{autoresize:y,manualUpdate:v,loading:x,loadingOptions:_}=(0,r.QW)(e),b=(0,i.EW)((()=>a.value||e.option||null)),C=(0,i.EW)((()=>e.theme||g(l,{}))),T=(0,i.EW)((()=>e.initOptions||g(h,{}))),D=(0,i.EW)((()=>e.updateOptions||g(d,{}))),L=(0,i.EW)((()=>f(t))),k={},O=(0,i.nI)().proxy.$listeners,P={};function N(t){if(!n.value)return;const r=o.value=(0,s.Ts)(n.value,C.value,T.value);function a(){r&&!r.isDisposed()&&r.resize()}function l(){const e=t||b.value;e&&r.setOption(e,D.value)}e.group&&(r.group=e.group),Object.keys(P).forEach((e=>{let t=P[e];if(!t)return;let n=e.toLowerCase();"~"===n.charAt(0)&&(n=n.substring(1),t.__once__=!0);let i=r;if(0===n.indexOf("zr:")&&(i=r.getZr(),n=n.substring(3)),t.__once__){delete t.__once__;const e=t;t=(...r)=>{e(...r),i.off(n,t)}}i.on(n,t)})),y.value?(0,i.dY)((()=>{a(),l()})):l()}function R(t,n){e.manualUpdate&&(a.value=t),o.value?o.value.setOption(t,n||{}):N(t)}function E(){o.value&&(o.value.dispose(),o.value=void 0)}O?Object.keys(O).forEach((e=>{I.test(e)?k[e.replace(I,"$1")]=O[e]:P[e]=O[e]})):Object.keys(t).filter((e=>p(e))).forEach((e=>{let n=e.charAt(2).toLowerCase()+e.slice(3);if(0!==n.indexOf("native:"))"Once"===n.substring(n.length-4)&&(n=`~${n.substring(0,n.length-4)}`),P[n]=t[e];else{const i=`on${n.charAt(7).toUpperCase()}${n.slice(8)}`;k[i]=t[e]}}));let V=null;(0,i.wB)(v,(t=>{"function"===typeof V&&(V(),V=null),t||(V=(0,i.wB)((()=>e.option),((e,t)=>{e&&(o.value?o.value.setOption(e,{notMerge:e!==t,...D.value}):N())}),{deep:!0}))}),{immediate:!0}),(0,i.wB)([C,T],(()=>{E(),N()}),{deep:!0}),(0,i.nT)((()=>{e.group&&o.value&&(o.value.group=e.group)}));const z=u(o);return m(o,x,_),c(o,y,n),(0,i.sV)((()=>{N()})),(0,i.xo)((()=>{S&&n.value?n.value.__dispose=E:E()})),{chart:o,root:n,setOption:R,nonEventAttrs:L,nativeListeners:k,...z}},render(){const e=o?{attrs:this.nonEventAttrs,on:this.nativeListeners}:{...this.nonEventAttrs,...this.nativeListeners};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",(0,i.h)(_,e)}})}}]);
|