(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["npm.echarts"],{"04f7":function(t,e,n){"use strict";n.d(e,"b",(function(){return m})),n.d(e,"a",(function(){return v}));var i=n("07fd"),r=n("e0d3"),o=n("6d8b"),a=n("2b17"),s=n("b7d9"),l=n("edae"),u=n("ec6f"),c=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return Object(s["d"])(t,e)},t}();function d(t,e){var n=new c,r=t.data,s=n.sourceFormat=t.sourceFormat,u=t.startIndex,d="";t.seriesLayoutBy!==i["a"]&&Object(l["c"])(d);var y=[],m={},v=t.dimensionsDefine;if(v)Object(o["k"])(v,(function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};if(y.push(i),null!=n){var r="";Object(o["q"])(m,n)&&Object(l["c"])(r),m[n]=i}}));else for(var b=0;b=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(r["a"]);r["a"].registerClass(l),e["a"]=l},"1be7":function(t,e,n){"use strict";n.d(e,"a",(function(){return Ye})),n.d(e,"b",(function(){return Gn})),n.d(e,"j",(function(){return Wn})),n.d(e,"k",(function(){return qn})),n.d(e,"h",(function(){return Un})),n.d(e,"i",(function(){return Yn})),n.d(e,"m",(function(){return Xn})),n.d(e,"c",(function(){return Zn})),n.d(e,"d",(function(){return Kn})),n.d(e,"e",(function(){return Jn})),n.d(e,"n",(function(){return $n})),n.d(e,"f",(function(){return ei})),n.d(e,"g",(function(){return ni})),n.d(e,"l",(function(){return ii}));var i=n("7fae"),r=n("697e7"),o=n("6d8b"),a=n("22d1"),s=n("04f6"),l=n("6fd3"),u=n("e0d3"),c=n("4319"),d=n("6cb7"),h="";"undefined"!==typeof navigator&&(h=navigator.platform||"");var p,f,g,y="rgba(0, 0, 0, 0.2)",m={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:y,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:y,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:y,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:y,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:y,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:y,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:h.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},v=n("0f99"),b=n("2f1f"),x=n("4041"),_=n("edae"),O="\0_ec_inner",w=1;var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["a"])(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new c["a"](i),this._locale=new c["a"](r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=T(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,T(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):g(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=i.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,e))}if(!t||"recreate"===t||"media"===t){var s=i.getMediaOption(this);s.length&&Object(o["k"])(s,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,a=[],s=Object(o["f"])(),l=e&&e.replaceMergeMainTypeMap;function c(e){var a=Object(b["a"])(this,e,u["r"](t[e])),s=i.get(e),c=s?l&&l.get(e)?"replaceMerge":"normalMerge":"replaceAll",h=u["q"](s,a,c);u["x"](h,e,d["a"]),n[e]=null,i.set(e,null),r.set(e,0);var f,g=[],y=[],m=0;Object(o["k"])(h,(function(t,n){var i=t.existing,r=t.newOption;if(r){var a="series"===e,s=d["a"].getClass(e,t.keyInfo.subType,!a);if(!s)return;if("tooltip"===e){if(f)return void 0;f=!0}if(i&&i.constructor===s)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var l=Object(o["m"])({componentIndex:n},t.keyInfo);i=new s(r,this,this,l),Object(o["m"])(i,l),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(g.push(i.option),y.push(i),m++):(g.push(void 0),y.push(void 0))}),this),n[e]=g,i.set(e,y),r.set(e,m),"series"===e&&p(this)}Object(v["g"])(this),Object(o["k"])(t,(function(t,e){null!=t&&(d["a"].hasClass(e)?e&&(a.push(e),s.set(e,!0)):n[e]=null==n[e]?Object(o["d"])(t):Object(o["I"])(n[e],t,!0))})),l&&l.each((function(t,e){d["a"].hasClass(e)&&!s.get(e)&&(a.push(e),s.set(e,!0))})),d["a"].topologicalTravel(a,d["a"].getAllClassMainTypes(),c,this),this._seriesIndices||p(this)},e.prototype.getOption=function(){var t=Object(o["d"])(this.option);return Object(o["k"])(t,(function(e,n){if(d["a"].hasClass(n)){for(var i=u["r"](e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!u["l"](i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}})),delete t[O],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r=e:"max"===n?t<=e:t===e}function B(t,e){return t.join(",")===e.join(",")}var G=R,H=o["k"],F=o["A"],W=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function q(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=W.length;n=0;g--){var y=t[g];if(s||(h=y.data.rawIndexOf(y.stackedByDimension,d)),h>=0){var m=y.data.getByRawIndex(y.stackResultDimension,h);if("all"===l||"positive"===l&&m>0||"negative"===l&&m<0||"samesign"===l&&p>=0&&m>0||"samesign"===l&&p<=0&&m<0){p=Object(ht["b"])(p,m),f=m;break}}}return i[0]=p,i[1]=f,i}))}))}var gt=n("4f85"),yt=n("b12f"),mt=n("e887"),vt=n("c7a2"),bt=n("0da8"),xt=n("deca"),_t=n("cbe5"),Ot=n("861c"),wt=n("7d6c"),St=n("88b3"),Mt=n("282b"),It=n("551f"),jt=n("3901"),Ct=Object(u["o"])(),Tt={itemStyle:Object(Mt["a"])(It["a"],!0),lineStyle:Object(Mt["a"])(jt["a"],!0)},Dt={lineStyle:"stroke",itemStyle:"fill"};function At(t,e){var n=t.visualStyleMapper||Tt[e];return n||(console.warn("Unknown style type '"+e+"'."),Tt.itemStyle)}function kt(t,e){var n=t.visualDrawType||Dt[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var Lt={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),a=At(t,i),s=a(r),l=r.getShallow("decal");l&&(n.setVisual("decal",l),l.dirty=!0);var u=kt(t,i),c=s[u],d=Object(o["w"])(c)?c:null,h="auto"===s.fill||"auto"===s.stroke;if(!s[u]||d||h){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());s[u]||(s[u]=p,n.setVisual("colorFromPalette",!0)),s.fill="auto"===s.fill||Object(o["w"])(s.fill)?p:s.fill,s.stroke="auto"===s.stroke||Object(o["w"])(s.stroke)?p:s.stroke}if(n.setVisual("style",s),n.setVisual("drawType",u),!e.isSeriesFiltered(t)&&d)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=Object(o["m"])({},s);r[u]=d(i),e.setItemVisual(n,"style",r)}}}},Pt=new c["a"],Nt={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=At(t,i),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){Pt.option=n[i];var s=r(Pt),l=t.ensureUniqueItemVisual(e,"style");Object(o["m"])(l,s),Pt.option.decal&&(t.setItemVisual(e,"decal",Pt.option.decal),Pt.option.decal.dirty=!0),a in s&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},Rt={performRawSeries:!0,overallReset:function(t){var e=Object(o["f"])();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),Ct(t).scope=r}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=Ct(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=kt(e,a);r.each((function(t){var e=r.getRawIndex(t);i[e]=t})),n.each((function(t){var a=i[t],l=r.getItemVisual(a,"colorFromPalette");if(l){var u=r.ensureUniqueItemVisual(a,"style"),c=n.getName(t)||t+"",d=n.count();u[s]=e.getColorFromPalette(c,o,d)}}))}}))}},Et=n("2dc5"),zt=n("76a5"),Vt=n("8d32"),Bt=Math.PI;function Gt(t,e){e=e||{},o["i"](e,{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 Et["a"],i=new vt["a"]({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,a=new zt["a"]({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),s=new vt["a"]({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(s),e.showSpinner&&(r=new Vt["a"]({shape:{startAngle:-Bt/2,endAngle:-Bt/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),r.animateShape(!0).when(1e3,{endAngle:3*Bt/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Bt/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=a.getBoundingRect().width,o=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*o-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:o),u=t.getHeight()/2;e.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:t.getWidth(),height:t.getHeight()})},n.resize(),n}var Ht=n("9fbc"),Ft=n("8918"),Wt=function(){function t(t,e,n,i){this._stageTaskMap=Object(o["f"])(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__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}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),r=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,a=t.get("large")&&r>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Object(o["f"])();t.eachSeries((function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Object(o["k"])(this._allHandlers,(function(i){var r=t.get(i.uid)||t.set(i.uid,{}),a="";Object(o["b"])(!(i.reset&&i.overallReset),a),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)}),this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var r=!1,a=this;function s(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Object(o["k"])(t,(function(t,o){if(!i.visualType||i.visualType===t.visualType){var l=a._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var d,h=c.agentStubMap;h.each((function(t){s(i,t)&&(t.dirty(),d=!0)})),d&&c.dirty(),a.updatePayload(c,n);var p=a.getPerformArgs(c,i.block);h.each((function(t){t.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=!t.performRawSeries&&e.isSeriesFiltered(o.context.model),a.updatePayload(o,n),o.perform(u)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var r=this,a=e.seriesTaskMap,s=e.seriesTaskMap=Object(o["f"])(),l=t.seriesType,u=t.getTargetSeries;function c(e){var o=e.uid,l=s.set(o,a&&a.get(o)||Object(Ht["a"])({plan:Zt,reset:Kt,count:Qt}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,a=e.overallTask=e.overallTask||Object(Ht["a"])({reset:qt});a.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var s=a.agentStubMap,l=a.agentStubMap=Object(o["f"])(),u=t.seriesType,c=t.getTargetSeries,d=!0,h=!1,p="";function f(t){var e=t.uid,n=l.set(e,s&&s.get(e)||(h=!0,Object(Ht["a"])({reset:Ut,onDirty:Xt})));n.context={model:t,overallProgress:d},n.agent=a,n.__block=d,r._pipe(t,n)}Object(o["b"])(!t.createOnAllSeries,p),u?n.eachRawSeriesByType(u,f):c?c(n,i).each(f):(d=!1,Object(o["k"])(n.getSeries(),f)),h&&a.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return Object(o["w"])(t)&&(t={overallReset:t,seriesType:te(t)}),t.uid=Object(Ft["c"])("stageHandler"),e&&(t.visualType=e),t},t}();function qt(t){t.overallReset(t.ecModel,t.api,t.payload)}function Ut(t){return t.overallProgress&&Yt}function Yt(){this.agent.dirty(),this.getDownstream().dirty()}function Xt(){this.agent&&this.agent.dirty()}function Zt(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Kt(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Object(u["r"])(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Object(o["H"])(e,(function(t,e){return $t(e)})):Jt}var Jt=$t(0);function $t(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o0&&c===r.length-u.length){var d=r.slice(0,c);"data"!==d&&(e.mainType=d,e[u.toLowerCase()]=t,o=!0)}}s.hasOwnProperty(r)&&(n[r]=t,o=!0),o||(i[r]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){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=e.cptQuery,l=e.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(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),ye=["symbol","symbolSize","symbolRotate","symbolOffset"],me=ye.concat(["symbolKeepAspect"]),ve={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},a=!1,s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[Xe])if(this._disposed)Tn(this.id);else{var i,r,a;if(Object(o["A"])(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,a=e.transition,e=e.notMerge),this[Xe]=!0,!this._model||e){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(t,{replaceMerge:r},Ln);var c={seriesTransition:a,optionChanged:!0};if(n)this[Ze]={silent:i,updateParams:c},this[Xe]=!1,this.getZr().wakeUp();else{try{an(this),un.update.call(this,null,c)}catch(d){throw this[Ze]=null,this[Xe]=!1,d}this._ssr||this._zr.flush(),this[Ze]=null,this[Xe]=!1,pn.call(this,i),fn.call(this,i)}}},e.prototype.setTheme=function(){Object(_["a"])("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||a["a"].hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(a["a"].svgSupported){var t=this._zr,e=t.storage.getDisplayList();return Object(o["k"])(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,i=[],r=this;Object(o["k"])(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)}))}));var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Object(o["k"])(i,(function(t){t.group.ignore=!1})),a}Tn(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,a=Math.max,s=1/0;if(zn[n]){var l=s,u=s,c=-s,d=-s,h=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();Object(o["k"])(En,(function(r,s){if(r.group===n){var p=e?r.getZr().painter.getSvgDom().innerHTML:r.renderToCanvas(Object(o["d"])(t)),f=r.getDom().getBoundingClientRect();l=i(f.left,l),u=i(f.top,u),c=a(f.right,c),d=a(f.bottom,d),h.push({dom:p,left:f.left,top:f.top})}})),l*=p,u*=p,c*=p,d*=p;var f=c-l,g=d-u,y=Te["d"].createCanvas(),m=r["a"](y,{renderer:e?"svg":"canvas"});if(m.resize({width:f,height:g}),e){var v="";return Object(o["k"])(h,(function(t){var e=t.left-l,n=t.top-u;v+=''+t.dom+""})),m.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&m.painter.setBackgroundColor(t.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}return t.connectedBackgroundColor&&m.add(new vt["a"]({shape:{x:0,y:0,width:f,height:g},style:{fill:t.connectedBackgroundColor}})),Object(o["k"])(h,(function(t){var e=new bt["a"]({style:{x:t.left*p-l,y:t.top*p-u,image:t.dom}});m.add(e)})),m.refreshImmediately(),y.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}Tn(this.id)},e.prototype.convertToPixel=function(t,e){return cn(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return cn(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,i=this._model,r=u["s"](i,t);return Object(o["k"])(r,(function(t,i){i.indexOf("Models")>=0&&Object(o["k"])(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}else 0}),this)}),this),!!n}Tn(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,i=u["s"](n,t,{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?Object(xe["a"])(o,a,e):Object(xe["b"])(o,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;Object(o["k"])(Cn,(function(e){var n=function(n){var i,r=t.getModel(),a=n.target,s="globalout"===e;if(s?i={}:a&&Object(Se["a"])(a,(function(t){var e=Object(Ot["a"])(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType,a)||{},!0}if(e.eventData)return i=Object(o["m"])({},e.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),d=c&&t["series"===c.mainType?"_chartsMap":"_componentsMap"][c.__viewId];0,i.event=n,i.type=e,t._$eventProcessor.eventInfo={targetEl:a,packedEvent:i,model:c,view:d},t.trigger(e,i)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)})),Object(o["k"])(An,(function(e,n){t._messageCenter.on(n,(function(t){this.trigger(n,t)}),t)})),Object(o["k"])(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),Object(_e["b"])(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?Tn(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)Tn(this.id);else{this._disposed=!0;var t=this.getDom();t&&u["w"](this.getDom(),Bn,"");var e=this,n=e._api,i=e._model;Object(o["k"])(e._componentsViews,(function(t){t.dispose(i,n)})),Object(o["k"])(e._chartsViews,(function(t){t.dispose(i,n)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete En[e.id]}},e.prototype.resize=function(t){if(!this[Xe])if(this._disposed)Tn(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[Ze]&&(null==i&&(i=this[Ze].silent),n=!0,this[Ze]=null),this[Xe]=!0;try{n&&an(this),un.update.call(this,{type:"resize",animation:Object(o["m"])({duration:0},t&&t.animation)})}catch(r){throw this[Xe]=!1,r}this[Xe]=!1,pn.call(this,i),fn.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)Tn(this.id);else if(Object(o["A"])(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Rn[t]){var n=Rn[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?Tn(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Object(o["m"])({},t);return e.type=An[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)Tn(this.id);else if(Object(o["A"])(e)||(e={silent:!!e}),Dn[t.type]&&this._model)if(this[Xe])this._pendingActions.push(t);else{var n=e.silent;hn.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&a["a"].browser.weChat&&this._throttledZrFlush(),pn.call(this,n),fn.call(this,n)}},e.prototype.updateLabelLayout=function(){Ce.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)Tn(this.id);else{var e=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(e);0,i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){var e=[],n=[],i=!1;if(t.eachComponent((function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})})),i){var r,a,l=e.concat(n);Object(s["a"])(l,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),Object(o["k"])(l,(function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,o=e.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(t){for(var e=[],n=t.currentStates,i=0;ie.get("hoverLayerThreshold")&&!a["a"].node&&!a["a"].worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}function l(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}function c(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,i=t.get("zlevel")||0;e.eachRendered((function(t){return d(t,n,i,-1/0),!0}))}}function d(t,e,n,i){var r=t.getTextContent(),o=t.getTextGuideLine(),a=t.isGroup;if(a)for(var s=t.childrenRef(),l=0;l0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;e.eachRendered((function(t){if(t.states&&t.states.emphasis){if(xt["d"](t))return;if(t instanceof _t["b"]&&Object(wt["E"])(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(r){t.stateTransition=a;var i=t.getTextContent(),o=t.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&n(t)}}))}an=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),sn(t,!0),sn(t,!1),e.plan()},sn=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l=0)){Qn.push(n);var a=oe.wrapStageHandler(n,r);a.__prio=e,a.__raw=n,t.push(a)}}function ei(t,e){Rn[t]=e}function ni(t,e,n){var i=Object(De["a"])("registerMap");i&&i(t,e,n)}var ii=Oe["b"];$n(Ve,Lt),$n(He,Nt),$n(He,Rt),$n(Ve,ve),$n(He,be),$n(Ue,Ie),Wn(dt),qn(Le,pt),ei("default",Gt),Zn({type:wt["c"],event:wt["c"],update:wt["c"]},o["L"]),Zn({type:wt["b"],event:wt["b"],update:wt["b"]},o["L"]),Zn({type:wt["f"],event:wt["f"],update:wt["f"]},o["L"]),Zn({type:wt["i"],event:wt["i"],update:wt["i"]},o["L"]),Zn({type:wt["h"],event:wt["h"],update:wt["h"]},o["L"]),Fn("light",se),Fn("dark",pe)},"1f39":function(t,e,n){"use strict";var i=n("6d8b"),r={},o=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];i["k"](r,(function(i,r){var o=i.create(t,e);n=n.concat(o||[])})),this._coordinateSystems=n},t.prototype.update=function(t,e){i["k"](this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){r[t]=e},t.get=function(t){return r[t]},t}();e["a"]=o},2023:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},t.prototype.getCoordSysModel=function(){},t}()},"216a":function(t,e,n){"use strict";var i=n("7fae"),r=n("3842"),o=n("f876"),a=n("944e"),s=n("89e3"),l=n("e0d8"),u=n("6d8b"),c=function(t,e,n,i){while(n>>1;t[r][1]n&&(this._approxInterval=n);var o=h.length,a=Math.min(c(h,this._approxInterval,0,o),o-1);this._interval=h[a][1],this._minLevelUnit=h[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return Object(u["z"])(t)?t:+r["p"](t)},e.prototype.contain=function(t){return a["a"](this.parse(t),this._extent)},e.prototype.normalize=function(t){return a["f"](this.parse(t),this._extent)},e.prototype.scale=function(t){return a["g"](t,this._extent)},e.type="time",e}(s["a"]),h=[["second",o["d"]],["minute",o["c"]],["hour",o["b"]],["quarter-day",6*o["b"]],["half-day",12*o["b"]],["day",1.2*o["a"]],["half-week",3.5*o["a"]],["week",7*o["a"]],["month",31*o["a"]],["quarter",95*o["a"]],["half-year",o["e"]/2],["year",o["e"]]];function p(t,e,n,i){var a=r["p"](e),s=r["p"](n),l=function(t){return Object(o["n"])(a,t,i)===Object(o["n"])(s,t,i)},u=function(){return l("year")},c=function(){return u()&&l("month")},d=function(){return c()&&l("day")},h=function(){return d()&&l("hour")},p=function(){return h()&&l("minute")},f=function(){return p()&&l("second")},g=function(){return f()&&l("millisecond")};switch(t){case"year":return u();case"month":return c();case"day":return d();case"hour":return h();case"minute":return p();case"second":return f();case"millisecond":return g()}}function f(t,e){return t/=o["a"],t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function g(t){var e=30*o["a"];return t/=e,t>6?6:t>3?3:t>2?2:1}function y(t){return t/=o["b"],t>12?12:t>6?6:t>3.5?4:t>2?2:1}function m(t,e){return t/=e?o["c"]:o["d"],t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function v(t){return r["n"](t,!0)}function b(t,e,n){var i=new Date(t);switch(Object(o["m"])(e)){case"year":case"month":i[Object(o["x"])(n)](0);case"day":i[Object(o["g"])(n)](1);case"hour":i[Object(o["p"])(n)](0);case"minute":i[Object(o["v"])(n)](0);case"second":i[Object(o["A"])(n)](0),i[Object(o["t"])(n)](0)}return i.getTime()}function x(t,e,n,i){var r=1e4,a=o["B"],s=0;function l(t,e,n,r,o,a,s){var l=new Date(e),u=e,c=l[r]();while(u1&&0===c&&a.unshift({value:a[0].value-x})}}for(c=0;c=i[0]&&j<=i[1]&&x++)}var C=(i[1]-i[0])/e;if(x>1.5*C&&_>C/1.5)break;if(d.push(M),x>C||t===a[O])break}h=[]}}}var T=Object(u["n"])(Object(u["H"])(d,(function(t){return Object(u["n"])(t,(function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return t.length>0})),D=[],A=T.length-1;for(O=0;O1||n>0&&!t.noHeader;return Object(o["k"])(t.blocks,(function(t){var n=g(t);n>=e&&(e=n+ +(i&&(!n||p(t)&&!t.noHeader)))})),e}return 0}function y(t,e,n,s){var c=e.noHeader,d=b(g(e)),h=[],p=e.blocks||[];Object(o["b"])(!p||Object(o["t"])(p)),p=p||[];var y=t.orderMode;if(e.sortBlocks&&y){p=p.slice();var m={valueAsc:"asc",valueDesc:"desc"};if(Object(o["q"])(m,y)){var v=new a["a"](m[y],null);p.sort((function(t,e){return v.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===y&&p.reverse()}Object(o["k"])(p,(function(n,i){var r=e.valueFormatter,a=f(n)(r?Object(o["m"])(Object(o["m"])({},t),{valueFormatter:r}):t,n,i>0?d.html:0,s);null!=a&&h.push(a)}));var _="richText"===t.renderMode?h.join(d.richText):x(h.join(""),c?n:d.html);if(c)return _;var O=Object(r["h"])(e.header,"ordinal",t.useUTC),S=u(s,t.renderMode).nameStyle;return"richText"===t.renderMode?w(t,O,S)+d.richText+_:x('
'+Object(i["a"])(O)+"
"+_,n)}function m(t,e,n,i){var a=t.renderMode,s=e.noName,l=e.noValue,c=!e.markerType,d=e.name,h=t.useUTC,p=e.valueFormatter||t.valueFormatter||function(t){return t=Object(o["t"])(t)?t:[t],Object(o["H"])(t,(function(t,e){return Object(r["h"])(t,Object(o["t"])(y)?y[e]:y,h)}))};if(!s||!l){var f=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),g=s?"":Object(r["h"])(d,"ordinal",h),y=e.valueType,m=l?[]:p(e.value),v=!c||!s,b=!c&&s,M=u(i,a),I=M.nameStyle,j=M.valueStyle;return"richText"===a?(c?"":f)+(s?"":w(t,g,I))+(l?"":S(t,m,v,b,j)):x((c?"":f)+(s?"":_(g,!c,I))+(l?"":O(m,v,b,j)),n)}}function v(t,e,n,i,r,o){if(t){var a=f(t),s={useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,o)}}function b(t){return{html:c[t],richText:d[t]}}function x(t,e){var n='
',i="margin: "+e+"px 0 0";return'
'+t+n+"
"}function _(t,e,n){var r=e?"margin-left:2px":"";return''+Object(i["a"])(t)+""}function O(t,e,n,r){var a=n?"10px":"20px",s=e?"float:right;margin-left:"+a:"";return t=Object(o["t"])(t)?t:[t],''+Object(o["H"])(t,(function(t){return Object(i["a"])(t)})).join("  ")+""}function w(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function S(t,e,n,i,r){var a=[r],s=i?10:20;return n&&a.push({padding:[0,0,0,s],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(o["t"])(e)?e.join(" "):e,a)}function M(t,e){var n=t.getData().getItemVisual(e,"style"),i=n[t.visualDrawType];return Object(r["c"])(i)}function I(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var j=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Object(s["j"])()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,a=Object(r["g"])({color:e,type:t,renderMode:n,markerId:i});return Object(o["C"])(a)?a:(this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Object(o["t"])(e)?Object(o["k"])(e,(function(t){return Object(o["m"])(n,t)})):Object(o["m"])(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}()},"22b4":function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var i=n("1be7"),r=n("b12f"),o=n("e887"),a=n("6cb7"),s=n("4f85"),l=n("6d8b"),u=n("58c9"),c=n("697e7"),d=[],h={registerPreprocessor:i["j"],registerProcessor:i["k"],registerPostInit:i["h"],registerPostUpdate:i["i"],registerUpdateLifecycle:i["m"],registerAction:i["c"],registerCoordinateSystem:i["d"],registerLayout:i["e"],registerVisual:i["n"],registerTransform:i["l"],registerLoading:i["f"],registerMap:i["g"],registerImpl:u["b"],PRIORITY:i["a"],ComponentModel:a["a"],ComponentView:r["a"],SeriesModel:s["b"],ChartView:o["a"],registerComponentModel:function(t){a["a"].registerClass(t)},registerComponentView:function(t){r["a"].registerClass(t)},registerSeriesModel:function(t){s["b"].registerClass(t)},registerChartView:function(t){o["a"].registerClass(t)},registerSubTypeDefaulter:function(t,e){a["a"].registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Object(c["b"])(t,e)}};function p(t){Object(l["t"])(t)?Object(l["k"])(t,(function(t){p(t)})):Object(l["r"])(d,t)>=0||(d.push(t),Object(l["w"])(t)&&(t={install:t}),t.install(h))}},2306:function(t,e,n){"use strict";n.r(e),n.d(e,"extendShape",(function(){return N})),n.d(e,"extendPath",(function(){return E})),n.d(e,"registerShape",(function(){return z})),n.d(e,"getShapeClass",(function(){return V})),n.d(e,"makePath",(function(){return B})),n.d(e,"makeImage",(function(){return G})),n.d(e,"mergePath",(function(){return F})),n.d(e,"resizePath",(function(){return W})),n.d(e,"subPixelOptimizeLine",(function(){return q})),n.d(e,"subPixelOptimizeRect",(function(){return U})),n.d(e,"subPixelOptimize",(function(){return Y})),n.d(e,"getTransform",(function(){return X})),n.d(e,"applyTransform",(function(){return Z})),n.d(e,"transformDirection",(function(){return K})),n.d(e,"groupTransition",(function(){return Q})),n.d(e,"clipPointsByRect",(function(){return tt})),n.d(e,"clipRectByRect",(function(){return et})),n.d(e,"createIcon",(function(){return nt})),n.d(e,"linePolygonIntersect",(function(){return it})),n.d(e,"lineLineIntersect",(function(){return rt})),n.d(e,"setTooltipConfig",(function(){return st})),n.d(e,"traverseElements",(function(){return ut}));var i=n("342d"),r=n("1687"),o=n("401b"),a=n("cbe5");n.d(e,"Path",(function(){return a["b"]}));var s=n("8582"),l=n("0da8");n.d(e,"Image",(function(){return l["a"]}));var u=n("2dc5");n.d(e,"Group",(function(){return u["a"]}));var c=n("76a5");n.d(e,"Text",(function(){return c["a"]}));var d=n("d9fc");n.d(e,"Circle",(function(){return d["a"]}));var h=n("ae69");n.d(e,"Ellipse",(function(){return h["a"]}));var p=n("4aa2");n.d(e,"Sector",(function(){return p["a"]}));var f=n("4573");n.d(e,"Ring",(function(){return f["a"]}));var g=n("87b1");n.d(e,"Polygon",(function(){return g["a"]}));var y=n("d498");n.d(e,"Polyline",(function(){return y["a"]}));var m=n("c7a2");n.d(e,"Rect",(function(){return m["a"]}));var v=n("cb11");n.d(e,"Line",(function(){return v["a"]}));var b=n("ac0f");n.d(e,"BezierCurve",(function(){return b["a"]}));var x=n("8d32");n.d(e,"Arc",(function(){return x["a"]}));var _=n("d4c6");n.d(e,"CompoundPath",(function(){return _["a"]}));var O=n("48a9");n.d(e,"LinearGradient",(function(){return O["a"]}));var w=n("dded");n.d(e,"RadialGradient",(function(){return w["a"]}));var S=n("9850");n.d(e,"BoundingRect",(function(){return S["a"]}));var M=n("ca80");n.d(e,"OrientedBoundingRect",(function(){return M["a"]}));var I=n("dce8");n.d(e,"Point",(function(){return I["a"]}));var j=n("392f");n.d(e,"IncrementalDisplayable",(function(){return j["a"]}));var C=n("9cf9"),T=n("6d8b"),D=n("861c"),A=n("deca");n.d(e,"updateProps",(function(){return A["h"]})),n.d(e,"initProps",(function(){return A["c"]})),n.d(e,"removeElement",(function(){return A["e"]})),n.d(e,"removeElementWithFadeOut",(function(){return A["f"]})),n.d(e,"isElementRemoved",(function(){return A["d"]}));var k=Math.max,L=Math.min,P={};function N(t){return a["b"].extend(t)}var R=i["c"];function E(t,e){return R(t,e)}function z(t,e){P[t]=e}function V(t){if(P.hasOwnProperty(t))return P[t]}function B(t,e,n,r){var o=i["b"](t,e);return n&&("center"===r&&(n=H(n,o.getBoundingRect())),W(o,n)),o}function G(t,e,n){var i=new l["a"]({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(H(e,r))}}});return i}function H(t,e){var n,i=e.width/e.height,r=t.height*i;r<=t.width?n=t.height:(r=t.width,n=r/i);var o=t.x+t.width/2,a=t.y+t.height/2;return{x:o-r/2,y:a-n/2,width:r,height:n}}var F=i["d"];function W(t,e){if(t.applyTransform){var n=t.getBoundingRect(),i=n.calculateTransform(e);t.applyTransform(i)}}function q(t,e){return C["b"](t,t,{lineWidth:e}),t}function U(t){return C["c"](t.shape,t.shape,t.style),t}var Y=C["a"];function X(t,e){var n=r["d"]([]);while(t&&t!==e)r["f"](n,t.getLocalTransform(),n),t=t.parent;return n}function Z(t,e,n){return e&&!Object(T["u"])(e)&&(e=s["c"].getLocalTransform(e)),n&&(e=r["e"]([],e)),o["b"]([],t,e)}function K(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return o=Z(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function J(t){return!t.isGroup}function $(t){return null!=t.shape}function Q(t,e,n){if(t&&e){var i=r(t);e.traverse((function(t){if(J(t)&&t.anid){var e=i[t.anid];if(e){var r=o(t);t.attr(o(e)),Object(A["h"])(t,r,n,Object(D["a"])(t).dataIndex)}}}))}function r(t){var e={};return t.traverse((function(t){J(t)&&t.anid&&(e[t.anid]=t)})),e}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return $(t)&&(e.shape=Object(T["m"])({},t.shape)),e}}function tt(t,e){return Object(T["H"])(t,(function(t){var n=t[0];n=k(n,e.x),n=L(n,e.x+e.width);var i=t[1];return i=k(i,e.y),i=L(i,e.y+e.height),[n,i]}))}function et(t,e){var n=k(t.x,e.x),i=L(t.x+t.width,e.x+e.width),r=k(t.y,e.y),o=L(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function nt(t,e,n){var i=Object(T["m"])({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),Object(T["i"])(r,n),new l["a"](i)):B(t.replace("path://",""),i,n,"center")}function it(t,e,n,i,r){for(var o=0,a=r[r.length-1];o1)return!1;var y=ot(p,f,c,d)/h;return!(y<0||y>1)}function ot(t,e,n,i){return t*i-n*e}function at(t){return t<=1e-6&&t>=-1e-6}function st(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=Object(T["C"])(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&Object(T["k"])(Object(T["F"])(l),(function(t){Object(T["q"])(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=Object(D["a"])(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:Object(T["i"])({content:i,formatterParams:s},r)}}function lt(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function ut(t,e){if(t)if(Object(T["t"])(t))for(var n=0;n0&&o&&O(-d/a,0,a);var y,m,v=t[0],b=t[a-1];return x(),y<0&&w(-y,.8),m<0&&w(m,.8),x(),_(y,m,1),_(m,y,-1),x(),y<0&&S(-y),m<0&&S(m),u}function x(){y=v.rect[e]-i,m=r-b.rect[e]-b.rect[n]}function _(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){O(i*n,0,a);var r=i+t;r<0&&w(-r*n,1)}else w(-t*n,1)}}function O(n,i,r){0!==n&&(u=!0);for(var o=i;o0)for(l=0;l0;l--){h=o[l-1]*d;O(-h,l,a)}}}function S(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),i=0;i0?O(n,0,i+1):O(-n,a-i-1,a),t-=n,t<=0)return}}function s(t,e,n,i){return a(t,"x","width",e,n,i)}function l(t,e,n,i){return a(t,"y","height",e,n,i)}function u(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new r["a"](0,0,0,0);function o(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var a=0;a=0||o&&i["r"](o,l)<0)){var u=n.getShallow(l,e);null!=u&&(a[t[s][0]]=u)}}return a}}},"2b17":function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"c",(function(){return g})),n.d(e,"b",(function(){return v})),n.d(e,"d",(function(){return _})),n.d(e,"e",(function(){return w}));var i,r,o,a,s,l=n("6d8b"),u=n("e0d3"),c=n("ec6f"),d=n("07fd"),h=function(){function t(t,e){var n=Object(c["e"])(t)?t:Object(c["c"])(t);this._source=n;var i=this._data=n.data;n.sourceFormat===d["g"]&&(this._offset=0,this._dimSize=e,this._data=i),s(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var t;s=function(t,r,o){var s=o.sourceFormat,u=o.seriesLayoutBy,c=o.startIndex,h=o.dimensionsDefine,p=a[O(s,u)];if(Object(l["m"])(t,p),s===d["g"])t.getItem=e,t.count=i,t.fillStorage=n;else{var f=g(s,u);t.getItem=Object(l["c"])(f,null,r,c,h);var y=v(s,u);t.count=Object(l["c"])(y,null,r,c,h)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;ou&&(u=p)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(c["b"]),f=p,g=n("6d8b"),y=n("deca"),m=n("2306"),v=n("861c"),b=n("7d6c"),x=n("2b17");function _(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=Object(x["e"])(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a=0&&i.push(e[o])}return i.join(" ")}var w=n("7837"),S=n("0da8"),M=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return Object(l["a"])(e,t),e.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var o=Object(d["a"])(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=I,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Object(b["r"])(this.childAt(0))},e.prototype.downplay=function(){Object(b["C"])(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,i,r){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,c)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:s[0]/2,scaleY:s[1]/2};u?d.attr(h):y["h"](d,h,a,n),Object(y["g"])(d)}if(this._updateCommon(t,n,s,i,r),l){d=this.childAt(0);if(!u){h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,y["c"](d,h,a,n)}}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,l,u,c,h,p,f,y=this.childAt(0),m=t.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,h=i.labelStatesModels,p=i.hoverScale,f=i.cursorStyle,c=i.emphasisDisabled),!i||t.hasItemOption){var v=i&&i.itemModel?i.itemModel:t.getItemModel(e),x=v.getModel("emphasis");o=x.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=x.get("focus"),u=x.get("blurScope"),c=x.get("disabled"),h=Object(w["e"])(v),p=x.getShallow("scale"),f=v.getShallow("cursor")}var O=t.getItemVisual(e,"symbolRotate");y.attr("rotation",(O||0)*Math.PI/180||0);var M=Object(d["b"])(t.getItemVisual(e,"symbolOffset"),n);M&&(y.x=M[0],y.y=M[1]),f&&y.attr("cursor",f);var I=t.getItemVisual(e,"style"),j=I.fill;if(y instanceof S["a"]){var C=y.style;y.useStyle(Object(g["m"])({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},I))}else y.__isEmptyBrush?y.useStyle(Object(g["m"])({},I)):y.useStyle(I),y.style.decal=null,y.setColor(j,r&&r.symbolInnerColor),y.style.strokeNoScale=!0;var T=t.getItemVisual(e,"liftZ"),D=this._z2;null!=T?null==D&&(this._z2=y.z2,y.z2+=T):null!=D&&(y.z2=D,this._z2=null);var A=r&&r.useNameLabel;function k(e){return A?t.getName(e):_(t,e)}Object(w["g"])(y,h,{labelFetcher:m,labelDataIndex:e,defaultText:k,inheritColor:j,defaultOpacity:I.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=y.ensureState("emphasis");L.style=o,y.ensureState("select").style=s,y.ensureState("blur").style=a;var P=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),Object(b["J"])(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=Object(v["a"])(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&y["e"](a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();y["e"](i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return Object(d["c"])(t.getItemVisual(e,"symbolSize"))},e}(h["a"]);function I(t,e){this.parent.drift(t,e)}var j=M;function C(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function T(t){return null==t||Object(g["A"])(t)||(t={isIgnore:t}),t||{}}function D(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Object(w["e"])(e),cursorStyle:e.get("cursor")}}var A=function(){function t(t){this.group=new h["a"],this._SymbolCtor=t||j}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=T(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=D(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add((function(i){var r=u(i);if(C(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}})).update((function(c,d){var h=r.getItemGraphicEl(d),p=u(c);if(C(t,p,c,e)){var f=t.getItemVisual(c,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==f)n.remove(h),h=new o(t,c,s,l),h.setPosition(p);else{h.updateData(t,c,s,l);var m={x:p[0],y:p[1]};a?h.attr(m):y["h"](h,m,i)}n.add(h),t.setItemGraphicEl(c,h)}else n.remove(h)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),i)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=D(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=T(n);for(var r=t.start;r0?n=i[0]:i[1]<0&&(n=i[1]),n}function R(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var E=n("f658");function z(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}function V(t,e,n,i,r,o,a,s){for(var l=z(t,e),u=[],c=[],d=[],h=[],p=[],f=[],g=[],y=P(r,e,a),m=t.getLayout("points")||[],v=e.getLayout("points")||[],b=0;b=r||g<0)break;if(X(m,v)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](m,v),d=m,h=v;else{var b=m-u,x=v-c;if(b*b+x*x<.5){g+=o;continue}if(a>0){var _=g+o,O=e[2*_],w=e[2*_+1];while(O===m&&w===v&&y=i||X(O,w))p=m,f=v;else{I=O-u,j=w-c;var D=m-u,A=O-m,k=v-c,L=w-v,P=void 0,N=void 0;if("x"===s){P=Math.abs(D),N=Math.abs(A);var R=I>0?1:-1;p=m-R*P*a,f=v,C=m+R*N*a,T=v}else if("y"===s){P=Math.abs(k),N=Math.abs(L);var E=j>0?1:-1;p=m,f=v-E*P*a,C=m,T=v+E*N*a}else P=Math.sqrt(D*D+k*k),N=Math.sqrt(A*A+L*L),M=N/(N+P),p=m-I*a*(1-M),f=v-j*a*(1-M),C=m+I*a*M,T=v+j*a*M,C=U(C,Y(O,m)),T=U(T,Y(w,v)),C=Y(C,U(O,m)),T=Y(T,U(w,v)),I=C-m,j=T-v,p=m-I*P/N,f=v-j*P/N,p=U(p,Y(u,m)),f=U(f,Y(c,v)),p=Y(p,U(u,m)),f=Y(f,U(c,v)),I=m-p,j=v-f,C=m+I*N/P,T=v+j*N/P}t.bezierCurveTo(d,h,p,f,m,v),d=C,h=T}else t.lineTo(m,v)}u=m,c=v,g+=o}return y}var K=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),J=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return Object(l["a"])(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new K},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0;r--)if(!X(n[2*r-2],n[2*r-1]))break;for(;i=0){var v=s?(h-i)*m+i:(d-n)*m+n;return s?[t,v]:[v,t]}n=d,i=h;break;case a.C:d=o[u++],h=o[u++],p=o[u++],f=o[u++],g=o[u++],y=o[u++];var b=s?Object(q["f"])(n,d,p,g,t,l):Object(q["f"])(i,h,f,y,t,l);if(b>0)for(var x=0;x=0){v=s?Object(q["a"])(i,h,f,y,_):Object(q["a"])(n,d,p,g,_);return s?[t,v]:[v,t]}}n=g,i=y;break}}},e}(F["b"]),$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["a"])(e,t),e}(K),Q=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return Object(l["a"])(e,t),e.prototype.getDefaultShape=function(){return new $},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0;o--)if(!X(n[2*o-2],n[2*o-1]))break;for(;re){i?r.push(a(i,l,e)):n&&r.push(a(n,l,0),a(n,l,e));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}function mt(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var r,o,a=i.length-1;a>=0;a--){var s=t.getDimensionInfo(i[a].dimension);if(r=s&&s.coordDim,"x"===r||"y"===r){o=i[a];break}}if(o){var l=e.getAxis(r),u=g["H"](o.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),c=u.length,d=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var h=yt(u,"x"===r?n.getWidth():n.getHeight()),p=h.length;if(!p&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var f=10,y=h[0].coord-f,m=h[p-1].coord+f,v=m-y;if(v<.001)return"transparent";g["k"](h,(function(t){t.offset=(t.coord-y)/v})),h.push({offset:p?h[p-1].offset:.5,color:d[1]||"transparent"}),h.unshift({offset:p?h[0].offset:.5,color:d[0]||"transparent"});var b=new B["a"](0,0,0,0,h,!0);return b[r]=y,b[r+"2"]=m,b}}}function vt(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!bt(o,e))){var a=e.mapDimension(o.dim),s={};return g["k"](o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function bt(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;ai)return!1;return!0}function xt(t,e){return isNaN(t)||isNaN(e)}function _t(t){for(var e=t.length/2;e>0;e--)if(!xt(t[2*e-2],t[2*e-1]))break;return e-1}function Ot(t,e){return[t[2*e],t[2*e+1]]}function wt(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u=e||i>=e&&r<=e){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}function St(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e0&&"bolder"===t.get(["emphasis","lineStyle","width"])){var V=p.getState("emphasis").style;V.lineWidth=+p.style.lineWidth+1}Object(v["a"])(p).seriesIndex=t.seriesIndex,Object(b["J"])(p,R,E,z);var B=pt(t.get("smooth")),G=t.get("smoothMonotone");if(p.setShape({smooth:B,smoothMonotone:G,connectNulls:I}),f){var H=a.getCalculationInfo("stackedOnSeries"),F=0;f.useStyle(g["i"](l.getAreaStyle(),{fill:A,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),H&&(F=pt(H.get("smooth"))),f.setShape({smooth:B,stackedOnSmooth:F,smoothMonotone:G,connectNulls:I}),Object(b["I"])(f,t,"areaStyle"),Object(v["a"])(f).seriesIndex=t.seriesIndex,Object(b["J"])(f,R,E,z)}var W=function(t){i._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=W)})),this._polyline.onHoverStateChange=W,this._data=a,this._coordSys=r,this._stackedOnPoints=S,this._points=u,this._step=D,this._valueOrigin=O,t.get("triggerLineEvent")&&(this.packEventData(t,p),f&&this.packEventData(t,f))},e.prototype.packEventData=function(t,e){Object(v["a"])(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=H["u"](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=t.get("zlevel")||0,d=t.get("z")||0;s=new j(r,o),s.x=l,s.y=u,s.setZ(c,d);var h=s.getSymbolPath().getTextContent();h&&(h.zlevel=c,h.z=d,h.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else tt["a"].prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=H["u"](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 tt["a"].prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;Object(b["H"])(this._polyline,t),e&&Object(b["H"])(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new J({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Q({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");g["w"](l)&&(l=l(null));var u=s.get("animationDelay")||0,c=g["w"](u)?u(null):u;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var d=[t.x,t.y],h=void 0,p=void 0,f=void 0;if(n)if(r){var y=n,m=e.pointToCoord(d);i?(h=y.startAngle,p=y.endAngle,f=-m[1]/180*Math.PI):(h=y.r0,p=y.r,f=m[0])}else{var v=n;i?(h=v.x,p=v.x+v.width,f=t.x):(h=v.y+v.height,p=v.y,f=t.y)}var b=p===h?0:(f-h)/(p-h);a&&(b=1-b);var x=g["w"](u)?u(o):l*b+c,_=s.getSymbolPath(),O=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),O&&O.animateFrom({style:{opacity:0}},{duration:300,delay:x}),_.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(St(t)){var r=t.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 G["a"]({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=_t(a);l>=0&&(Object(w["g"])(o,Object(w["e"])(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?O(r,n):_(r,t)},enableTextSetter:!0},It(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,d=c.get("connectNulls"),h=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),y=f.inverse,m=e.shape,v=y?g?m.x:m.y+m.height:g?m.x+m.width:m.y,b=(g?p:0)*(y?-1:1),x=(g?0:-p)*(y?-1:1),_=g?"x":"y",O=wt(u,v,_),S=O.range,M=S[1]-S[0],I=void 0;if(M>=1){if(M>1&&!d){var j=Ot(u,S[0]);s.attr({x:j[0]+b,y:j[1]+x}),r&&(I=c.getRawValue(S[0]))}else{j=l.getPointOn(v,_);j&&s.attr({x:j[0]+b,y:j[1]+x});var C=c.getRawValue(S[0]),T=c.getRawValue(S[1]);r&&(I=H["k"](n,h,C,T,O.t))}i.lastFrameIndex=S[0]}else{var D=1===t||i.lastFrameIndex>0?S[0]:0;j=Ot(u,D);r&&(I=c.getRawValue(D)),s.attr({x:j[0]+b,y:j[1]+x})}if(r){var A=Object(w["f"])(s);"function"===typeof A.setLabelText&&A.setLabelText(I)}}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=V(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,o),d=c.current,h=c.stackedOnCurrent,p=c.next,f=c.stackedOnNext;if(r&&(d=gt(c.current,n,r,a),h=gt(c.stackedOnCurrent,n,r,a),p=gt(c.next,n,r,a),f=gt(c.stackedOnNext,n,r,a)),ht(d,p)>3e3||l&&ht(h,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=d;var g={shape:{points:p}};c.current!==d&&(g.shape.__points=c.next),s.stopAnimation(),y["h"](s,g,u),l&&(l.setShape({points:d,stackedOnPoints:h}),l.stopAnimation(),y["h"](l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var m=[],v=c.status,b=0;be&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),d=Math.abs(u[1]-u[0])*(c||1),h=Math.round(a/d);if(isFinite(h)&&h>1){"lttb"===r&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/h));var p=void 0;Object(g["C"])(r)?p=At[r]:Object(g["w"])(r)&&(p=r),p&&t.setData(i.downSample(i.mapDimension(l.dim),1/h,p,kt))}}}}}function Pt(t){t.registerChartView(Ct),t.registerSeriesModel(f),t.registerLayout(Dt("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Lt("line"))}var Nt=n("9d57"),Rt=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.getInitialData=function(t,e){return Object(u["a"])(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,n){var i=this.coordinateSystem;if(i&&i.clampData){var r=i.clampData(t),o=i.dataToPoint(r);if(n)Object(g["k"])(i.getAxes(),(function(t,n){if("category"===t.type&&null!=e){var i=t.getTicksCoords(),a=r[n],s="x1"===e[n]||"y1"===e[n];if(s&&(a+=1),i.length<2)return;if(2===i.length)return void(o[n]=t.toGlobalCoord(t.getExtent()[s?1:0]));for(var l=void 0,u=void 0,c=1,d=0;da){u=(h+l)/2;break}1===d&&(c=p-i[0].tickValue)}null==u&&(l?l&&(u=i[i.length-1].coord):u=i[0].coord),o[n]=t.toGlobalCoord(u)}}));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]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(c["b"]);c["b"].registerClass(Rt);var Et=Rt,zt=n("8918"),Vt=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.getInitialData=function(){return Object(u["a"])(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Object(zt["d"])(Et.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(Et),Bt=Vt,Gt=n("88b3"),Ht=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),Ft=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return Object(l["a"])(e,t),e.prototype.getDefaultShape=function(){return new Ht},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,d=2*Math.PI,h=c?u-lMath.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),t.setTextConfig({rotation:c})}}function Xt(t,e,n){return e*Math.sin(t)*(n?-1:1)}function Zt(t,e,n){return e*Math.cos(t)*(n?1:-1)}function Kt(t,e,n){var i=t.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;Object(g["t"])(i)||(i=[i,i,i,i]);var r=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Object(g["H"])(i,(function(t){return Object(qt["g"])(t,r)}))}}var Jt=Math.max,$t=Math.min;function Qt(t,e){var n=t.getArea&&t.getArea();if(st(t,"cartesian2d")){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}var te=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var r=t.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){Object(m["traverseElements"])(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,i){var r,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?r=u.isHorizontal():"polar"===l.type&&(r="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,d=ie(t,l);d&&this._enableRealtimeSort(d,a,n);var p=t.get("clip",!0)||d,f=Qt(l,a);o.removeClipPath();var g=t.get("roundCap",!0),m=t.get("showBackground",!0),v=t.getModel("backgroundStyle"),b=v.get("borderRadius")||0,x=[],_=this._backgroundEls,O=i&&i.isInitSort,S=i&&"changeAxisOrder"===i.type;function M(t){var e=ue[l.type](a,t),n=xe(l,r,e);return n.useStyle(v.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",b):n.setShape("cornerRadius",b),x[t]=n,n}a.diff(s).add((function(e){var n=a.getItemModel(e),i=ue[l.type](a,e,n);if(m&&M(e),a.hasValue(e)&&le[l.type](i)){var s=!1;p&&(s=ee[l.type](f,i));var h=ne[l.type](t,a,e,i,r,c,u.model,!1,g);d&&(h.forceLabelAnimation=!0),he(h,a,e,n,i,t,r,"polar"===l.type),O?h.attr({shape:i}):d?re(d,c,h,i,e,r,!1,!1):Object(y["c"])(h,{shape:i},t,e),a.setItemGraphicEl(e,h),o.add(h),h.ignore=s}})).update((function(e,n){var i=a.getItemModel(e),h=ue[l.type](a,e,i);if(m){var I=void 0;0===_.length?I=M(n):(I=_[n],I.useStyle(v.getItemStyle()),"cartesian2d"===l.type?I.setShape("r",b):I.setShape("cornerRadius",b),x[e]=I);var j=ue[l.type](a,e),C=be(r,j,l);Object(y["h"])(I,{shape:C},c,e)}var T=s.getItemGraphicEl(n);if(a.hasValue(e)&&le[l.type](h)){var D=!1;if(p&&(D=ee[l.type](f,h),D&&o.remove(T)),T?Object(y["g"])(T):T=ne[l.type](t,a,e,h,r,c,u.model,!!T,g),d&&(T.forceLabelAnimation=!0),S){var A=T.getTextContent();if(A){var k=Object(w["f"])(A);null!=k.prevValue&&(k.prevValue=k.value)}}else he(T,a,e,i,h,t,r,"polar"===l.type);O?T.attr({shape:h}):d?re(d,c,T,h,e,r,!0,S):Object(y["h"])(T,{shape:h},t,e,null),a.setItemGraphicEl(e,T),T.ignore=D,o.add(T)}else o.remove(T)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&Object(y["f"])(n,t,e)})).execute();var I=this._backgroundGroup||(this._backgroundGroup=new h["a"]);I.removeAll();for(var j=0;jo)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){Object(y["f"])(e,t,Object(v["a"])(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(tt["a"]),ee={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=Jt(e.x,t.x),s=$t(e.x+e.width,r),l=Jt(e.y,t.y),u=$t(e.y+e.height,o),c=sr?s:a,e.y=d&&l>o?u:l,e.width=c?0:s-a,e.height=d?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),c||d},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var r=$t(e.r,t.r),o=Jt(e.r0,t.r0);e.r=r,e.r0=o;var a=r-o<0;if(n<0){i=e.r;e.r=e.r0,e.r0=i}return a}},ne={cartesian2d:function(t,e,n,i,r,o,a,s,l){var u=new et["a"]({shape:Object(g["m"])({},i),z2:1});if(u.__dataIndex=n,u.name="item",o){var c=u.shape,d=r?"height":"width";c[d]=0}return u},polar:function(t,e,n,i,r,o,a,s,l){var u=!r&&l?Wt:nt["a"],c=new u({shape:i,z2:1});c.name="item";var d=de(r);if(c.calculateTextPosition=Ut(d,{isRoundCap:u===Wt}),o){var h=c.shape,p=r?"r":"endAngle",f={};h[p]=r?i.r0:i.startAngle,f[p]=i[p],(s?y["h"]:y["c"])(c,{shape:f},o)}return c}};function ie(t,e){var n=t.get("realtimeSort",!0),i=e.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===e.type)return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function re(t,e,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?y["h"]:y["c"])(n,{shape:l},e,r,null);var c=e?t.baseAxis.model:null;(a?y["h"]:y["c"])(n,{shape:u},c,r)}function oe(t,e){for(var n=0;n0?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(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function ce(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function de(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function he(t,e,n,i,r,o,a,s){var l=e.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var u=t.shape,c=Kt(i.getModel("itemStyle"),u,!0);Object(g["m"])(u,c),t.setShape(u)}}else{var d=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",d)}t.useStyle(l);var h=i.getShallow("cursor");h&&t.attr("cursor",h);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",f=Object(w["e"])(i);Object(w["g"])(t,f,{labelFetcher:o,labelDataIndex:n,defaultText:_(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var y=t.getTextContent();if(s&&y){var m=i.get(["label","position"]);t.textConfig.inside="middle"===m||null,Yt(t,"outside"===m?p:m,de(a),i.get(["label","rotate"]))}Object(w["h"])(y,f,o.getRawValue(n),(function(t){return O(e,t)}));var v=i.getModel(["emphasis"]);Object(b["J"])(t,v.get("focus"),v.get("blurScope"),v.get("disabled")),Object(b["I"])(t,i),ce(r)&&(t.style.fill="none",t.style.stroke="none",Object(g["k"])(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}function pe(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=t.get(["itemStyle","borderWidth"])||0,r=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,r,o)}var fe=function(){function t(){}return t}(),ge=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return Object(l["a"])(e,t),e.prototype.getDefaultShape=function(){return new fe},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l=0?n:null}),30,!1);function ve(t,e,n){for(var i=t.baseDimIdx,r=1-i,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,d=o.length/3;c=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}function be(t,e,n){if(st(n,"cartesian2d")){var i=e,r=n.getArea();return{x:t?i.x:r.x,y:t?r.y:i.y,width:t?i.width:r.width,height:t?r.height:i.height}}r=n.getArea();var o=e;return{cx:r.cx,cy:r.cy,r0:t?r.r0:o.r0,r:t?r.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}function xe(t,e,n){var i="polar"===t.type?nt["a"]:et["a"];return new i({shape:be(e,n,t),silent:!0,z2:0})}var _e=te;function Oe(t){t.registerChartView(_e),t.registerSeriesModel(Bt),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,g["h"](Nt["c"],"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Object(Nt["a"])("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Lt("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))}var we=n("f3bb"),Se=n("f934"),Me=2*Math.PI,Ie=Math.PI/180;function je(t,e){return Se["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Ce(t,e){var n=je(t,e),i=t.get("center"),r=t.get("radius");g["t"](r)||(r=[0,r]);var o,a,s=Object(it["q"])(n.width,e.getWidth()),l=Object(it["q"])(n.height,e.getHeight()),u=Math.min(s,l),c=Object(it["q"])(r[0],u/2),d=Object(it["q"])(r[1],u/2),h=t.coordinateSystem;if(h){var p=h.dataToPoint(i);o=p[0]||0,a=p[1]||0}else g["t"](i)||(i=[i,i]),o=Object(it["q"])(i[0],s)+n.x,a=Object(it["q"])(i[1],l)+n.y;return{cx:o,cy:a,r0:c,r:d}}function Te(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),i=e.mapDimension("value"),r=je(t,n),o=Ce(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-t.get("startAngle")*Ie,d=t.get("minAngle")*Ie,h=0;e.each(i,(function(t){!isNaN(t)&&h++}));var p=e.getSum(i),f=Math.PI/(p||h)*2,g=t.get("clockwise"),y=t.get("roseType"),m=t.get("stillShowZeroSum"),v=e.getDataExtent(i);v[0]=0;var b=Me,x=0,_=c,O=g?1:-1;if(e.setLayout({viewRect:r,r:l}),e.each(i,(function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:a,cy:s,r0:u,r:y?NaN:l});else{i="area"!==y?0===p&&m?f:t*f:Me/h,in?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var d=l.label.x-e-l.len2*r,h=i+l.len,f=Math.abs(d)t.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-d)/2}}}function Ve(t){return"center"===t.position}function Be(t){var e,n,i=t.getData(),r=[],o=!1,a=(t.get("minShowLabelAngle")||0)*Ne,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,c=s.x,d=s.y,h=s.height;function p(t){t.ignore=!0}function f(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}i.each((function(t){var s=i.getItemGraphicEl(t),d=s.shape,h=s.getTextContent(),y=s.getTextGuideLine(),m=i.getItemModel(t),v=m.getModel("label"),b=v.get("position")||m.get(["emphasis","label","position"]),x=v.get("distanceToLabelLine"),_=v.get("alignTo"),O=Object(it["q"])(v.get("edgeDistance"),u),w=v.get("bleedMargin"),S=m.getModel("labelLine"),M=S.get("length");M=Object(it["q"])(M,u);var I=S.get("length2");if(I=Object(it["q"])(I,u),Math.abs(d.endAngle-d.startAngle)0?"right":"left":k>0?"left":"right"}var G=Math.PI,H=0,F=v.get("rotate");if(Object(g["z"])(F))H=F*(G/180);else if("center"===b)H=0;else if("radial"===F||!0===F){var W=k<0?-A+G:-A;H=W}else if("tangential"===F&&"outside"!==b&&"outer"!==b){var q=Math.atan2(k,L);q<0&&(q=2*G+q);var U=L>0;U&&(q=G+q),H=q-G}if(o=!!H,h.x=j,h.y=C,h.rotation=H,h.setStyle({verticalAlign:"middle"}),P){h.setStyle({align:D});var Y=h.states.select;Y&&(Y.x+=h.x,Y.y+=h.y)}else{var X=h.getBoundingRect().clone();X.applyTransform(h.getComputedTransform());var Z=(h.style.margin||0)+2.1;X.y-=Z/2,X.height+=Z,r.push({label:h,labelLine:y,position:b,len:M,len2:I,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new ke["a"](k,L),linePoints:T,textAlign:D,labelDistance:x,labelAlignTo:_,edgeDistance:O,bleedMargin:w,rect:X,unconstrainedWidth:X.width,labelStyleWidth:h.style.width})}s.setTextConfig({inside:P})}})),!o&&t.get("avoidLabelOverlap")&&Ee(r,e,n,l,u,h,c,d);for(var y=0;y0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u=i.r0}},e.type="pie",e}(tt["a"]),Fe=He,We=n("b1d4"),qe=n("b682");function Ue(t,e,n){e=Object(g["t"])(e)&&{coordDimensions:e}||Object(g["m"])({encodeDefine:t.getEncode()},e);var i=t.getSource(),r=Object(We["b"])(i,e).dimensions,o=new qe["a"](r,t);return o.initData(i,n),o}var Ye=n("0f99"),Xe=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},t.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},t.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},t}(),Ze=Xe,Ke=H["o"](),Je=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["a"])(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ze(g["c"](this.getData,this),g["c"](this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Ue(this,{coordDimensions:["value"],encodeDefaulter:g["h"](Ye["d"],this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=Ke(n),r=i.seats;if(!r){var o=[];n.each(n.mapDimension("value"),(function(t){o.push(t)})),r=i.seats=Object(it["e"])(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=r[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){H["f"](t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(c["b"]),$e=Je;function Qe(t){return{seriesType:t,reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),i=n.get(e,t);return!(Object(g["z"])(i)&&!isNaN(i)&&i<0)}))}}}function tn(t){t.registerChartView(Fe),t.registerSeriesModel($e),Object(we["a"])("pie",t.registerAction),t.registerLayout(Object(g["h"])(Te,"pie")),t.registerProcessor(De("pie")),t.registerProcessor(Qe("pie"))}var en=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Object(l["a"])(e,t),e.prototype.getInitialData=function(t,e){return Object(u["a"])(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(c["b"]),nn=en,rn=n("9850"),on=4,an=function(){function t(){}return t}(),sn=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return Object(l["a"])(e,t),e.prototype.getDefaultShape=function(){return new an},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,i=e.points,r=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&r[0]=0;s--){var l=2*s,u=i[l]-o/2,c=i[l+1]-a/2;if(t>=u&&e>=c&&t<=u+o&&e<=c+a)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(t=n[0],e=n[1],i.contain(t,e)){var r=this.hoverDataIdx=this.findDataIndex(t,e);return r>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,i=e.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c=0&&(l.dataIndex=n+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),un=ln,cn=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._updateSymbolDraw(i,t);r.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData(),r=this._updateSymbolDraw(i,t);r.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=Dt("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext,r=i.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new un:new k,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(tt["a"]),dn=cn,hn=n("b12f"),pn=n("6cb7"),fn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["a"])(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(pn["a"]),gn=fn,yn=n("2023"),mn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["a"])(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",H["b"]).models[0]},e.type="cartesian2dAxis",e}(pn["a"]);g["K"](mn,yn["a"]);var vn={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},bn=g["I"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},vn),xn=g["I"]({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}}},vn),_n=g["I"]({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},xn),On=g["i"]({logBase:10},xn),wn={category:bn,value:xn,time:_n,log:On},Sn=n("8e43"),Mn={value:1,category:1,time:1,log:1};function In(t,e,n,i){Object(g["k"])(Mn,(function(r,o){var a=Object(g["I"])(Object(g["I"])({},wn[o],!0),i,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return Object(l["a"])(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=Object(Se["d"])(this),i=n?Object(Se["f"])(t):{},r=e.getTheme();Object(g["I"])(t,r.get(o+"Axis")),Object(g["I"])(t,this.getDefaultOption()),t.type=jn(t),n&&Object(Se["h"])(t,i,n)},n.prototype.optionUpdated=function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=Sn["a"].createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",jn)}function jn(t){return t.type||(t.data?"category":"value")}var Cn=n("697e"),Tn=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return g["H"](this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),g["n"](this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),Dn=Tn,An=n("1687"),kn=n("401b"),Ln=["x","y"];function Pn(t){return"interval"===t.type||"time"===t.type}var Nn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Ln,e}return Object(l["a"])(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(Pn(t)&&Pn(e)){var n=t.getExtent(),i=e.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,d=r[1]-i[0]*u,h=this._transform=[l,0,0,u,c,d];this._invTransform=Object(An["e"])([],h)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),r=this.getArea(),o=new rn["a"](n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return Object(kn["b"])(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return Object(kn["b"])(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(e[0],e[1]),r=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-i;return new rn["a"](n,i,r,o)},e}(Dn),Rn=Nn,En=n("84ce"),zn=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return Object(l["a"])(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(En["a"]),Vn=zn;function Bn(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,c=i.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,f="x"===u?[d[2]-p,d[3]+p]:[d[0]-p,d[1]+p];if(a){var y=a.toGlobalCoord(a.dataToCoord(0));f[h.onZero]=Math.max(Math.min(y,f[1]),f[0])}o.position=["y"===u?f[h[l]]:d[0],"x"===u?f[h[l]]:d[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?f[h[s]]-f[h.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),g["O"](n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var v=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-v:v,o.z2=1,o}function Gn(t){return"cartesian2d"===t.get("coordinateSystem")}function Hn(t){var e={xAxisModel:null,yAxisModel:null};return g["k"](e,(function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,H["b"]).models[0];e[i]=o})),e}var Fn=n("944e"),Wn=n("89e3"),qn=Math.log;function Un(t,e,n){var i=Wn["a"].prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=Object(Cn["f"])(t,e),u=l.extent,c=l.fixMin,d=l.fixMax;if("log"===t.type){var h=qn(t.base);u=[qn(u[0])/h,qn(u[1])/h]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:d});var p=i.getExtent.call(t);c&&(u[0]=p[0]),d&&(u[1]=p[1]);var f=i.getInterval.call(t),g=u[0],y=u[1];if(c&&d)f=(y-g)/a;else if(c){y=u[0]+f*a;while(yu[0]&&isFinite(g)&&isFinite(u[0]))f=Object(Fn["c"])(f),g=u[1]-f*a}else{var m=t.getTicks().length-1;m>a&&(f=Object(Fn["c"])(f));var v=f*a;y=Math.ceil(u[1]/f)*f,g=Object(it["w"])(y-v),g<0&&u[0]>=0?(g=0,y=Object(it["w"])(v)):y>0&&u[1]<=0&&(y=0,g=-Object(it["w"])(v))}var b=(r[0].value-o[0].value)/s,x=(r[a].value-o[a].value)/s;i.setExtent.call(t,g+f*b,y+f*x),i.setInterval.call(t,f),(b||x)&&i.setNiceExtent.call(t,g+f,y-f)}var Yn=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Ln,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=Object(g["F"])(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=+n[o],s=t[a],l=s.model,u=s.scale;Object(Fn["e"])(u)&&l.get("alignTicks")&&null==l.get("interval")?r.push(s):(Object(Cn["i"])(u,l),Object(Fn["e"])(u)&&(e=s))}r.length&&(e||(e=r.pop(),Object(Cn["i"])(e.scale,e.model)),Object(g["k"])(r,(function(t){Un(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};Object(g["k"])(n.x,(function(t){Zn(n,"y",t,r)})),Object(g["k"])(n.y,(function(t){Zn(n,"x",t,r)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),r=!n&&t.get("containLabel"),o=Object(Se["g"])(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){Object(g["k"])(a,(function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),Jn(t,e?o.x:o.y)}))}s(),r&&(Object(g["k"])(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=Object(Cn["b"])(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);o[n]-=e[n]+i,"top"===t.position?o.y+=e.height+i:"left"===t.position&&(o.x+=e.width+i)}}})),s()),Object(g["k"])(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}Object(g["A"])(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i0?"top":"bottom",i="center"):Object(it["l"])(o-ei)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),ii={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(Object(kn["b"])(s,s,a),Object(kn["b"])(l,l,a));var c=Object(g["m"])({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Qn["a"]({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});m["subPixelOptimizeLine"](h.shape,h.style.lineWidth),h.anid="line",n.add(h);var p=e.get(["axisLine","symbol"]);if(null!=p){var f=e.get(["axisLine","symbolSize"]);Object(g["C"])(p)&&(p=[p,p]),(Object(g["C"])(f)||Object(g["z"])(f))&&(f=[f,f]);var y=Object(d["b"])(e.get(["axisLine","symbolOffset"])||0,f),v=f[0],b=f[1];Object(g["k"])([{rotate:t.rotation+Math.PI/2,offset:y[0],r:0},{rotate:t.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,i){if("none"!==p[i]&&null!=p[i]){var r=Object(d["a"])(p[i],-v/2,-b/2,v,b,c.stroke,!0),o=e.r+e.offset,a=u?l:s;r.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(t,e,n,i){var r=ci(n,i,e,t),o=hi(n,i,e,t);if(oi(e,o,r),di(n,i,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=Object(Pe["b"])(Object(g["H"])(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));Object(Pe["a"])(a)}},axisName:function(t,e,n,i){var r=Object(g["O"])(t.axisName,e.get("name"));if(r){var o,a,s=e.get("nameLocation"),l=t.nameDirection,u=e.getModel("nameTextStyle"),c=e.get("nameGap")||0,d=e.axis.getExtent(),h=d[0]>d[1]?-1:1,p=["start"===s?d[0]-h*c:"end"===s?d[1]+h*c:(d[0]+d[1])/2,li(s)?t.labelOffset+l*c:0],f=e.get("nameRotate");null!=f&&(f=f*ei/180),li(s)?o=ni.innerTextLayout(t.rotation,null!=f?f:t.rotation,l):(o=ri(t.rotation,s,f||0,d),a=t.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var y=u.getFont(),b=e.get("nameTruncate",!0)||{},x=b.ellipsis,_=Object(g["O"])(t.nameTruncateMaxWidth,b.maxWidth,a),O=new G["a"]({x:p[0],y:p[1],rotation:o.rotation,silent:ni.isLabelSilent(e),style:Object(w["c"])(u,{text:r,font:y,overflow:"truncate",width:_,ellipsis:x,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(m["setTooltipConfig"]({el:O,componentModel:e,itemName:r}),O.__fullText=r,O.anid="name",e.get("triggerEvent")){var S=ni.makeAxisEventDataBase(e);S.targetType="axisName",S.name=r,Object(v["a"])(O).eventData=S}i.add(O),O.updateTransform(),n.add(O),O.decomposeTransform()}}};function ri(t,e,n,i){var r,o,a=Object(it["v"])(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return Object(it["l"])(a-ei/2)?(o=l?"bottom":"top",r="center"):Object(it["l"])(a-1.5*ei)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*ei&&a>ei/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function oi(t,e,n){if(!Object(Cn["j"])(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],d=n[n.length-1],h=n[n.length-2];!1===i?(ai(o),ai(u)):si(o,a)&&(i?(ai(a),ai(c)):(ai(o),ai(u))),!1===r?(ai(s),ai(d)):si(l,s)&&(r?(ai(l),ai(h)):(ai(s),ai(d)))}}function ai(t){t&&(t.ignore=!0)}function si(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=An["d"]([]);return An["g"](r,r,-t.rotation),n.applyTransform(An["f"]([],r,t.getLocalTransform())),i.applyTransform(An["f"]([],r,e.getLocalTransform())),n.intersect(i)}}function li(t){return"middle"===t||"center"===t}function ui(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l=0||t===e}function xi(t){var e=_i(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=wi(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]),a0&&!d.min?d.min=0:null!=d.min&&d.min<0&&!d.max&&(d.max=0);var h=a;null!=d.color&&(h=g["i"]({color:d.color},a));var p=g["I"](g["d"](d),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:d.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:h,triggerEvent:c},!1);if(g["C"](l)){var f=p.name;p.name=l.replace("{value}",null!=f?f:"")}else g["w"](l)&&(p.name=l(p.name,p));var y=new ti["a"](p,null,this.ecModel);return g["K"](y,yn["a"].prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y}),this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:g["I"]({lineStyle:{color:"#bbb"}},Ji.axisLine),axisLabel:$i(Ji.axisLabel,!1),axisTick:$i(Ji.axisTick,!1),splitLine:$i(Ji.splitLine,!0),splitArea:$i(Ji.splitArea,!0),indicator:[]},e}(pn["a"]),tr=Qi,er=n("d9fc"),nr=n("4573"),ir=["axisLine","axisTickLabel","axisName"],rr=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),i=g["H"](n,(function(t){var n=t.model.get("showName")?t.name:"",i=new pi(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i}));g["k"](i,(function(t){g["k"](ir,t.add,t),this.group.add(t.getGroup())}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),r=t.getModel("splitLine"),o=t.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),u=o.get("show"),c=a.get("color"),d=s.get("color"),h=g["t"](c)?c:[c],p=g["t"](d)?d:[d],f=[],y=[];if("circle"===i)for(var v=n[0].getTicksCoords(),b=e.cx,x=e.cy,_=0;_3?1.4:r>1?1.2:1.1,l=i>0?s:1/s;_r(this,"zoom","zoomOnMouseWheel",t,{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);_r(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!vr(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;_r(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(hr["a"]);function _r(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(pr["g"](i.event),Or(t,e,n,i,r))}function Or(t,e,n,i,r){r.isAvailableBehavior=Object(g["c"])(wr,null,n,i),t.trigger(e,r)}function wr(t,e,n){var i=n[t];return!t||i&&(!Object(g["C"])(i)||e.event[i+"Key"])}var Sr=xr;function Mr(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function Ir(t,e,n,i){var r=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/t.zoom;t.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 jr={axisPointer:1,tooltip:1,brush:1};function Cr(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!jr.hasOwnProperty(i.mainType)&&r&&r.model!==n}var Tr=n("d4c6"),Dr=n("3041"),Ar=n("4a80"),kr=n("f279"),Lr=Object(g["f"])(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Pr=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=Object(g["f"])(),this._freedGraphics=[],this._mapName=t,this._parsedXML=Object(Ar["a"])(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=Rr(t.named),n=e.regions,i=e.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n;try{e=t&&Object(Dr["b"])(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=e.root,Object(g["b"])(null!=n)}catch(m){throw new Error("Invalid svg format\n"+m.message)}var i=new h["a"];i.add(n),i.isGeoSVGGraphicRoot=!0;var r=e.width,o=e.height,a=e.viewBoxRect,s=this._boundingRect;if(!s){var l=void 0,u=void 0,c=void 0,d=void 0;if(null!=r?(l=0,c=r):a&&(l=a.x,c=a.width),null!=o?(u=0,d=o):a&&(u=a.y,d=a.height),null==l||null==u){var p=n.getBoundingRect();null==l&&(l=p.x,c=p.width),null==u&&(u=p.y,d=p.height)}s=this._boundingRect=new rn["a"](l,u,c,d)}if(a){var f=Object(Dr["a"])(a,s);n.scaleX=n.scaleY=f.scale,n.x=f.x,n.y=f.y}i.setClipPath(new et["a"]({shape:s.plain()}));var y=[];return Object(g["k"])(e.named,(function(t){null!=Lr.get(t.svgNodeTagLower)&&(y.push(t),Nr(t.el))})),{root:i,boundingRect:s,named:y}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}();function Nr(t){t.silent=!1,t.isGroup&&t.traverse((function(t){t.silent=!1}))}function Rr(t){var e=[],n=Object(g["f"])();return Object(g["k"])(t,(function(t){if(null==t.namedFrom){var i=new kr["d"](t.name,t.el);e.push(i),n.set(t.name,i)}})),{regions:e,regionsMap:n}}for(var Er=n("bda7"),zr=[126,25],Vr="南海诸岛",Br=[[[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]]],Gr=0;Gr0,g={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:f,isGeo:o,transformInfoRaw:d};"geoJSON"===s.resourceType?this._buildGeoJSON(g):"geoSVG"===s.resourceType&&this._buildSVG(g),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,i)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=g["f"](),n=g["f"](),i=this._regionsGroup,r=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,s=t.geo.projection,l=s&&s.stream;function u(t,e){return e&&(t=e(t)),t&&[t[0]*r.scaleX+r.x,t[1]*r.scaleY+r.y]}function c(t){for(var e=[],n=!l&&s&&s.project,i=0;i=0)&&(h=r);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Object(w["g"])(e,Object(w["e"])(i),{labelFetcher:h,labelDataIndex:d,defaultText:n},p);var f=e.getTextContent();if(f&&(ao(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function po(t,e,n,i,r,o){t.data?t.data.setItemGraphicEl(o,e):Object(v["a"])(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function fo(t,e,n,i,r){t.data||m["setTooltipConfig"]({el:e,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function go(t,e,n,i,r){e.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return Object(b["J"])(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&Object(b["n"])(e,r,n),a}function yo(t,e,n){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),g["k"](t,(function(t){s.lineStart();for(var e=0;e-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(c["b"]),_o=xo;function Oo(t,e){var n={};return g["k"](t,(function(t){t.each(t.mapDimension("value"),(function(e,i){var r="ec-"+t.getName(i);n[r]=n[r]||[],isNaN(e)||n[r].push(e)}))})),t[0].map(t[0].mapDimension("value"),(function(i,r){for(var o,a="ec-"+t[0].getName(r),s=0,l=1/0,u=-1/0,c=n[a].length,d=0;d1?(p.width=h,p.height=h/b):(p.height=h,p.width=h*b),p.y=d[1]-p.height/2,p.x=d[0]-p.width/2;else{var _=t.getBoxLayoutParams();_.aspect=b,p=Se["g"](_,{width:m,height:v})}this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}function Ro(t,e){g["k"](e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}var Eo=function(){function t(){this.dimensions=Ao}return t.prototype.create=function(t,e){var n=[];function i(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,r){var o=t.get("map"),a=new Po(o+r,o,g["m"]({nameMap:t.get("nameMap")},i(t)));a.zoomLimit=t.get("scaleLimit"),n.push(a),t.coordinateSystem=a,a.model=t,a.resize=No,a.resize(t,e)})),t.eachSeries((function(t){var e=t.get("coordinateSystem");if("geo"===e){var i=t.get("geoIndex")||0;t.coordinateSystem=n[i]}}));var r={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();r[e]=r[e]||[],r[e].push(t)}})),g["k"](r,(function(t,r){var o=g["H"](t,(function(t){return t.get("nameMap")})),a=new Po(r,r,g["m"]({nameMap:g["J"](o)},i(t[0])));a.zoomLimit=g["O"].apply(null,g["H"](t,(function(t){return t.get("scaleLimit")}))),n.push(a),a.resize=No,a.resize(t[0],e),g["k"](t,(function(t){t.coordinateSystem=a,Ro(a,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var r=(t||[]).slice(),o=g["f"](),a=0;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 $o(t,e){var n=t.isExpand?t.children:[],i=t.parentNode.children,r=t.hierNode.i?i[t.hierNode.i-1]:null;if(n.length){ia(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=ra(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function Qo(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function ta(t){return arguments.length?t:ua}function ea(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function na(t,e){return Se["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function ia(t){var e=t.children,n=e.length,i=0,r=0;while(--n>=0){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}function ra(t,e,n,i){if(e){var r=t,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,d=s.hierNode.modifier;while(s=oa(s),o=aa(o),s&&o){r=oa(r),a=aa(a),r.hierNode.ancestor=t;var h=s.hierNode.prelim+d-o.hierNode.prelim-u+i(s,o);h>0&&(la(sa(s,t,n),t,h),u+=h,l+=h),d+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,c+=a.hierNode.modifier}s&&!oa(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=d-l),o&&!aa(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=t)}return n}function oa(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function aa(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function sa(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function la(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function ua(t,e){return t.parentNode===e.parentNode?1:2}var ca=n("e263"),da=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),ha=function(t){function e(e){return t.call(this,e)||this}return Object(l["a"])(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new da},e.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,o=n[0],a=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=Object(it["q"])(e.forkPosition,1),d=[];d[l]=r[l],d[u]=r[u]+(a[u]-r[u])*c,t.moveTo(r[0],r[1]),t.lineTo(d[0],d[1]),t.moveTo(o[0],o[1]),d[l]=o[l],t.lineTo(d[0],d[1]),d[l]=a[l],t.lineTo(d[0],d[1]),t.lineTo(a[0],a[1]);for(var h=1;hO.x,M||(S-=Math.PI));var C=M?"left":"right",T=s.getModel("label"),D=T.get("rotate"),A=D*(Math.PI/180),k=x.getTextContent();k&&(x.setTextConfig({position:T.get("position")||C,rotation:null==D?-S:A,origin:"center"}),k.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),P="relative"===L?g["e"](a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===L?a.getAncestorsIndices():"descendant"===L?a.getDescendantIndices():null;P&&(Object(v["a"])(n).focus=P),ya(r,a,c,n,f,p,m,i),n.__edge&&(n.onHoverStateChange=function(e){if("blur"!==e){var i=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex);i&&i.hoverState===b["d"]||Object(b["H"])(n.__edge,e)}})}function ya(t,e,n,i,r,o,a,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),d=t.getOrient(),h=t.get(["lineStyle","curveness"]),p=t.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),m=i.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&(m||(m=i.__edge=new Ko["a"]({shape:xa(c,d,h,r,r)})),y["h"](m,{shape:xa(c,d,h,o,a)},t));else if("polyline"===u)if("orthogonal"===c){if(e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var v=e.children,x=[],_=0;_e&&(e=i.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e=0){var i=n.getData().tree.root,r=t.targetNode;if(g["C"](r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function za(t){var e=[];while(t)t=t.parentNode,t&&e.push(t);return e.reverse()}function Va(t,e){var n=za(t);return g["r"](n,e)>=0}function Ba(t,e){var n=[];while(t){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}var Ga=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return Object(l["a"])(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i=new ti["a"](n,this,this.ecModel),r=Ra.createTree(e,this,o);function o(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=i),t}))}var a=0;r.eachNode("preorder",(function(t){t.depth>a&&(a=t.depth)}));var s=t.expandAndCollapse,l=s&&t.initialTreeDepth>=0?t.initialTreeDepth:a;return r.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=l})),r.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,n){var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(t),a=o.getValue(),s=o.name;while(o&&o!==r)s=o.parentNode.name+"."+s,o=o.parentNode;return Object(Xi["c"])("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=Ba(i,this),n.collapsed=!i.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(c["b"]),Ha=Ga;function Fa(t,e,n){var i,r=[t],o=[];while(i=r.pop())if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s=0;o--)i.push(r[o])}}function qa(t,e){t.eachSeriesByType("tree",(function(t){Ua(t,e)}))}function Ua(t,e){var n=na(t,e);t.layoutInfo=n;var i=t.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=ta((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(r=n.width,o=n.height,a=ta());var s=t.getData().tree.root,l=s.children[0];if(l){Jo(s),Fa(l,$o,a),s.hierNode.modifier=-l.hierNode.prelim,Wa(l,Qo);var u=l,c=l,d=l;Wa(l,(function(t){var e=t.getLayout().x;ec.getLayout().x&&(c=t),t.depth>d.depth&&(d=t)}));var h=u===c?1:a(u,c)/2,p=h-u.getLayout().x,f=0,g=0,y=0,m=0;if("radial"===i)f=r/(c.getLayout().x+h+p),g=o/(d.depth-1||1),Wa(l,(function(t){y=(t.getLayout().x+p)*f,m=(t.depth-1)*g;var e=ea(y,m);t.setLayout({x:e.x,y:e.y,rawX:y,rawY:m},!0)}));else{var v=t.getOrient();"RL"===v||"LR"===v?(g=o/(c.getLayout().x+h+p),f=r/(d.depth-1||1),Wa(l,(function(t){m=(t.getLayout().x+p)*g,y="LR"===v?(t.depth-1)*f:r-(t.depth-1)*f,t.setLayout({x:y,y:m},!0)}))):"TB"!==v&&"BT"!==v||(f=r/(c.getLayout().x+h+p),g=o/(d.depth-1||1),Wa(l,(function(t){y=(t.getLayout().x+p)*f,m="TB"===v?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:y,y:m},!0)})))}}}function Ya(t){t.eachSeriesByType("tree",(function(t){var e=t.getData(),n=e.tree;n.eachNode((function(t){var n=t.getModel(),i=n.getModel("itemStyle").getItemStyle(),r=e.ensureUniqueItemVisual(t.dataIndex,"style");Object(g["m"])(r,i)}))}))}function Xa(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=t.dataIndex,i=e.getData().tree,r=i.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var i=e.coordinateSystem,r=Fo(i,t,void 0,n);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)}))}))}function Za(t){t.registerChartView(_a),t.registerSeriesModel(Ha),t.registerLayout(qa),t.registerVisual(Ya),Xa(t)}var Ka=["treemapZoomToNode","treemapRender","treemapMove"];function Ja(t){for(var e=0;e1)n=n.parentNode;var r=Object($a["b"])(t.ecModel,n.name||n.dataIndex+"",i);e.setVisual("decal",r)}))}var ts=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return Object(l["a"])(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};es(n);var i=t.levels||[],r=this.designatedVisualItemStyle={},o=new ti["a"]({itemStyle:r},this,e);i=t.levels=ns(i,e);var a=g["H"](i||[],(function(t){return new ti["a"](t,o,e)}),this),s=Ra.createTree(n,this,l);function l(t){t.wrapMethod("getItemModel",(function(t,e){var n=s.getNodeByDataIndex(e),i=n?a[n.depth]:null;return t.parentModel=i||o,t}))}return s.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t),o=i.getName(t);return Object(Xi["c"])("nameValue",{name:o,value:r})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=Ba(i,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},g["m"](this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=g["f"](),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){Qa(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},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:[]},e}(c["b"]);function es(t){var e=0;g["k"](t.children,(function(t){es(t);var n=t.value;g["t"](n)&&(n=n[0]),e+=n}));var n=t.value;g["t"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),g["t"](t.value)?t.value[0]=n:t.value=n}function ns(t,e){var n=Object(H["r"])(e.get("color")),i=Object(H["r"])(e.get(["aria","decal","decals"]));if(n){var r,o;t=t||[],g["k"](t,(function(t){var e=new ti["a"](t),n=e.get("color"),i=e.get("decal");(e.get(["itemStyle","color"])||n&&"none"!==n)&&(r=!0),(e.get(["itemStyle","decal"])||i&&"none"!==i)&&(o=!0)}));var a=t[0]||(t[0]={});return r||(a.color=n.slice()),!o&&i&&(a.decal=i.slice()),t}}var is=ts,rs=n("80f0"),os=8,as=8,ss=5,ls=function(){function t(t){this.group=new h["a"],t.add(this.group)}return t.prototype.render=function(t,e,n,i){var r=t.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:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,l),this._renderContent(t,c,a,s,l,u,i),Se["i"](o,c.pos,c.box)}},t.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var r=Object(H["e"])(i.getModel().get("name"),""),o=n.getTextRect(r),a=Math.max(o.width+2*os,e.emptyItemWidth);e.totalWidth+=a+as,e.renderList.push({node:i,text:r,width:a})}},t.prototype._renderContent=function(t,e,n,i,r,o,a){for(var s=0,l=e.emptyItemWidth,u=t.get(["breadcrumb","height"]),c=Se["e"](e.pos,e.box),d=e.totalWidth,h=e.renderList,p=i.getModel("itemStyle").getItemStyle(),f=h.length-1;f>=0;f--){var y=h[f],m=y.node,v=y.width,x=y.text;d>c.width&&(d-=v-l,v=l,x=null);var _=new qi["a"]({shape:{points:us(s,0,v,u,f===h.length-1,0===f)},style:Object(g["i"])(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new G["a"]({style:Object(w["c"])(r,{text:x})}),textConfig:{position:"inside"},z2:1e4*b["j"],onclick:Object(g["h"])(a,m)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=Object(w["c"])(o,{text:x}),_.ensureState("emphasis").style=p,Object(b["J"])(_,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(_),cs(_,t,m),s+=v+as}},t.prototype.remove=function(){this.group.removeAll()},t}();function us(t,e,n,i,r,o){var a=[[r?t:t-ss,e],[t+n,e],[t+n,e+i],[r?t:t-ss,e+i]];return!o&&a.splice(2,0,[t+n+ss,e+i/2]),!r&&a.push([t,e+i/2]),a}function cs(t,e,n){Object(v["a"])(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&Ba(n,e)}}var ds=ls,hs=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,i,r){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:r}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,r=this._storage.length;ims||Math.abs(t.dy)>ms)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new rn["a"](r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;e-=a.x,n-=a.y;var s=An["c"]();An["i"](s,s,[-e,-n]),An["h"](s,s,[t.scale,t.scale]),An["i"](s,s,[e,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var i=e.findTarget(t.offsetX,t.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)e._rootToNode(i);else if("zoomToNode"===n)e._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&&Object(lt["k"])(a,s)}}}}}),this)},e.prototype._renderBreadcrumb=function(t,e,n){var i=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new ds(this.group))).render(t,e,n.node,(function(e){"animating"!==i._state&&(Va(t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=js(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){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(t,e),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},e.type="treemap",e}(tt["a"]);function js(){return{nodeGroup:[],background:[],content:[]}}function Cs(t,e,n,i,r,o,a,s,l,u){if(a){var c=a.getLayout(),d=t.getData(),p=a.getModel();if(d.setItemGraphicEl(a.dataIndex,null),c&&c.isInView){var f=c.width,y=c.height,m=c.borderWidth,x=c.invisible,_=a.getRawIndex(),O=s&&s.getRawIndex(),S=a.viewChildren,M=c.upperHeight,I=S&&S.length,j=p.getModel("itemStyle"),C=p.getModel(["emphasis","itemStyle"]),T=p.getModel(["blur","itemStyle"]),D=p.getModel(["select","itemStyle"]),A=j.get("borderRadius")||0,k=U("nodeGroup",gs);if(k){if(l.add(k),k.x=c.x||0,k.y=c.y||0,k.markRedraw(),Ms(k).nodeWidth=f,Ms(k).nodeHeight=y,c.isAboveViewRoot)return k;var L=U("background",ys,u,_s);L&&B(k,L,I&&c.upperLabelHeight);var P=p.getModel("emphasis"),N=P.get("focus"),R=P.get("blurScope"),E=P.get("disabled"),z="ancestor"===N?a.getAncestorsIndices():"descendant"===N?a.getDescendantIndices():N;if(I)Object(b["y"])(k)&&Object(b["F"])(k,!1),L&&(Object(b["F"])(L,!E),d.setItemGraphicEl(a.dataIndex,L),Object(b["p"])(L,z,R));else{var V=U("content",ys,u,Os);V&&G(k,V),L.disableMorphing=!0,L&&Object(b["y"])(L)&&Object(b["F"])(L,!1),Object(b["F"])(k,!E),d.setItemGraphicEl(a.dataIndex,k),Object(b["p"])(k,z,R)}return k}}}function B(e,n,i){var r=Object(v["a"])(n);if(r.dataIndex=a.dataIndex,r.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:f,height:y,r:A}),x)F(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=Ss(j);l.fill=s;var u=ws(C);u.fill=C.get("borderColor");var c=ws(T);c.fill=T.get("borderColor");var d=ws(D);if(d.fill=D.get("borderColor"),i){var h=f-2*m;W(n,s,o.opacity,{x:m,y:0,width:h,height:M})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=d,Object(b["G"])(n)}e.add(n)}function G(e,n){var i=Object(v["a"])(n);i.dataIndex=a.dataIndex,i.seriesIndex=t.seriesIndex;var r=Math.max(f-2*m,0),o=Math.max(y-2*m,0);if(n.culling=!0,n.setShape({x:m,y:m,width:r,height:o,r:A}),x)F(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=Ss(j);u.fill=l,u.decal=s.decal;var c=ws(C),d=ws(T),h=ws(D);W(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=d,n.ensureState("select").style=h,Object(b["G"])(n)}e.add(n)}function F(t){!t.invisible&&o.push(t)}function W(e,n,i,r){var o=p.getModel(r?bs:vs),s=Object(H["e"])(p.get("name"),null),l=o.getShallow("show");Object(w["g"])(e,Object(w["e"])(p,r?bs:vs),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:t,labelDataIndex:a.dataIndex});var u=e.getTextContent();if(u){var d=u.style,h=Object(g["M"])(d.padding||0);r&&(e.setTextConfig({layoutRect:r}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var t=Math.max((r?r.width:e.shape.width)-h[1]-h[3],0),n=Math.max((r?r.height:e.shape.height)-h[0]-h[2],0);d.width===t&&d.height===n||u.setStyle({width:t,height:n})},d.truncateMinChar=2,d.lineOverflow="truncate",q(d,r,c);var f=u.getState("emphasis");q(f?f.style:null,r,c)}}function q(e,n,i){var r=e?e.text:null;if(!n&&i.isLeafRoot&&null!=r){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+r:r}}function U(t,i,o,a){var s=null!=O&&n[t][O],l=r[t];return s?(n[t][O]=null,Y(l,s)):x||(s=new i,s instanceof eo["c"]&&(s.z2=Ts(o,a)),X(l,s)),e[t][_]=s}function Y(t,e){var n=t[_]={};e instanceof gs?(n.oldX=e.x,n.oldY=e.y):n.oldShape=Object(g["m"])({},e.shape)}function X(t,e){var n=t[_]={},o=a.parentNode,s=e instanceof h["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 Ts(t,e){return t*xs+e}var Ds=Is,As=n("edae"),ks=g["k"],Ls=g["A"],Ps=-1,Ns=function(){function t(e){var n=e.mappingMethod,i=e.type,r=this.option=g["d"](e);this.type=i,this.mappingMethod=n,this._normalizeData=Ys[n];var o=t.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(zs(r),Rs(r)):"category"===n?r.categories?Es(r):zs(r,!0):(g["b"]("linear"!==n||r.dataExtent),zs(r))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return g["c"](this._normalizeData,this)},t.listVisualTypes=function(){return g["F"](t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){g["A"](t)?g["k"](t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var r,o=g["t"](e)?[]:g["A"](e)?{}:(r=!0,null);return t.eachVisual(e,(function(t,e){var a=n.call(i,t,e);r?o=a:o[e]=a})),o},t.retrieveVisuals=function(e){var n,i={};return e&&ks(t.visualHandlers,(function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)})),n?i:null},t.prepareVisualTypes=function(t){if(g["t"](t))t=t.slice();else{if(!Ls(t))return[];var e=[];ks(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var i,r=1/0,o=0,a=e.length;o=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}function zs(t,e){var n=t.visual,i=[];g["A"](n)?ks(n,(function(t){i.push(t)})):null!=n&&i.push(n);var r={color:1,symbol:1};e||1!==i.length||r.hasOwnProperty(t.type)||(i[1]=i[0]),Us(t,i)}function Vs(t){return{applyVisual:function(e,n,i){var r=this.mapValueToVisual(e);i("color",t(n("color"),r))},_normalizedToVisual:Ws([0,1])}}function Bs(t){var e=this.option.visual;return e[Math.round(Object(it["m"])(t,[0,1],[0,e.length-1],!0))]||{}}function Gs(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function Hs(t){var e=this.option.visual;return e[this.option.loop&&t!==Ps?t%e.length:t]}function Fs(){return this.option.visual[0]}function Ws(t){return{linear:function(e){return Object(it["m"])(e,t,this.option.visual,!0)},category:Hs,piecewise:function(e,n){var i=qs.call(this,n);return null==i&&(i=Object(it["m"])(e,t,this.option.visual,!0)),i},fixed:Fs}}function qs(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=Ns.findPieceIndex(t,n),r=n[i];if(r&&r.visual)return r.visual[this.type]}}function Us(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=g["H"](e,(function(t){var e=ut["g"](t);return e||[0,0,0,1]}))),e}var Ys={linear:function(t){return Object(it["m"])(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=Ns.findPieceIndex(t,e,!0);if(null!=n)return Object(it["m"])(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?Ps:e},fixed:g["L"]};function Xs(t,e,n){return t?e<=n:e=n.length||t===n[t.depth]){var o=al(r,u,t,e,f,i);Qs(t,o,n,i)}}))}else s=el(u),c.fill=s}}function tl(t,e,n){var i=Object(g["m"])({},e),r=n.designatedVisualItemStyle;return Object(g["k"])(["color","colorAlpha","colorSaturation"],(function(n){r[n]=e[n];var o=t.get(n);r[n]=null,null!=o&&(i[n]=o)})),i}function el(t){var e=il(t,"color");if(e){var n=il(t,"colorAlpha"),i=il(t,"colorSaturation");return i&&(e=Object(ut["f"])(e,null,null,i)),n&&(e=Object(ut["e"])(e,n)),e}}function nl(t,e){return null!=e?Object(ut["f"])(e,null,null,t):null}function il(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function rl(t,e,n,i,r,o){if(o&&o.length){var a=ol(e,"color")||null!=r.color&&"none"!==r.color&&(ol(e,"colorAlpha")||ol(e,"colorSaturation"));if(a){var s=e.get("visualMin"),l=e.get("visualMax"),u=n.dataExtent.slice();null!=s&&su[1]&&(u[1]=l);var c=e.get("colorMappingBy"),d={type:a.name,dataExtent:u,visual:a.range};"color"!==d.type||"index"!==c&&"id"!==c?d.mappingMethod="linear":(d.mappingMethod="category",d.loop=!0);var h=new Zs(d);return Js(h).drColorMappingBy=c,h}}}function ol(t,e){var n=t.get(e);return Object(g["t"])(n)&&n.length?{name:e,range:n}:null}function al(t,e,n,i,r,o){var a=Object(g["m"])({},e);if(r){var s=r.type,l="color"===s&&Js(r).drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=r.mapValueToVisual(u)}return a}var sl=Math.max,ll=Math.min,ul=g["O"],cl=g["k"],dl=["itemStyle","borderWidth"],hl=["itemStyle","gapWidth"],pl=["upperLabel","show"],fl=["upperLabel","height"],gl={seriesType:"treemap",reset:function(t,e,n,i){var r=n.getWidth(),o=n.getHeight(),a=t.option,s=Se["g"](t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=Object(it["q"])(ul(s.width,l[0]),r),c=Object(it["q"])(ul(s.height,l[1]),o),d=i&&i.type,h=["treemapZoomToNode","treemapRootToNode"],p=Ea(i,h,t),f="treemapRender"===d||"treemapMove"===d?i.rootRect:null,y=t.getViewRoot(),m=za(y);if("treemapMove"!==d){var v="treemapZoomToNode"===d?wl(t,p,y,u,c):f?[f.width,f.height]:[u,c],b=a.sort;b&&"asc"!==b&&"desc"!==b&&(b="desc");var x={squareRatio:a.squareRatio,sort:b,leafDepth:a.leafDepth};y.hostTree.clearLayouts();var _={x:0,y:0,width:v[0],height:v[1],area:v[0]*v[1]};y.setLayout(_),yl(y,x,!1,0),_=y.getLayout(),cl(m,(function(t,e){var n=(m[e+1]||y).getValue();t.setLayout(g["m"]({dataExtent:[n,n],borderWidth:0,upperHeight:0},_))}))}var O=t.getData().tree.root;O.setLayout(Sl(s,f,p),!0),t.setLayoutInfo(s),Ml(O,new rn["a"](-s.x,-s.y,r,o),m,y,0)}};function yl(t,e,n,i){var r,o;if(!t.isRemoved()){var a=t.getLayout();r=a.width,o=a.height;var s=t.getModel(),l=s.get(dl),u=s.get(hl)/2,c=Il(s),d=Math.max(l,c),h=l-u,p=d-u;t.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),r=sl(r-2*h,0),o=sl(o-h-p,0);var f=r*o,g=ml(t,s,f,e,n,i);if(g.length){var y={x:h,y:p,width:r,height:o},m=ll(r,o),v=1/0,b=[];b.area=0;for(var x=0,_=g.length;x<_;){var O=g[x];b.push(O),b.area+=O.getLayout().area;var w=_l(b,m,e.squareRatio);w<=v?(x++,v=w):(b.area-=b.pop().getLayout().area,Ol(b,m,y,u,!1),m=ll(y.width,y.height),b.length=b.area=0,v=1/0)}if(b.length&&Ol(b,m,y,u,!0),!n){var S=s.get("childrenVisibleMin");null!=S&&f=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*ea[1]&&(a[1]=e)}))):a=[NaN,NaN],{sum:i,dataExtent:a}}function _l(t,e,n){for(var i=0,r=1/0,o=0,a=void 0,s=t.length;oi&&(i=a));var l=t.area*t.area,u=e*e*n;return l?sl(u*i/l,l/(u*r)):1/0}function Ol(t,e,n,i,r){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=e?t.area/e:0;(r||c>n[l[a]])&&(c=n[l[a]]);for(var d=0,h=t.length;dit["a"]&&(u=it["a"]),a=o}ui&&(i=e);var o=i%2?i+2:i+3;r=[];for(var a=0;a0&&(v[0]=-v[0],v[1]=-v[1]);var x=m[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var _=-Math.atan2(m[1],m[0]);u[0].8?"left":c[0]<-.8?"right":"center",h=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],d=c[0]>.8?"right":c[0]<-.8?"left":"center",h=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=f*x+l[0],i.y=l[1]+O,d=m[0]<0?"right":"left",i.originX=-f*x,i.originY=-O;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=b[0],i.y=b[1]+O,d="center",i.originY=-O;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-f*x+u[0],i.y=u[1]+O,d=m[0]>=0?"right":"left",i.originX=f*x,i.originY=-O;break}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||h,align:i.__align||d})}}}function w(t,e){var n=t.__specifiedRotation;if(null==n){var i=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else t.attr("rotation",n)}},e}(h["a"]),vu=mu,bu=function(){function t(t){this.group=new h["a"],this._LineCtor=t||vu}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=t,r||i.removeAll();var o=_u(t);t.diff(r).add((function(n){e._doAdd(t,n,o)})).update((function(n,i){e._doUpdate(r,t,i,n,o)})).remove((function(t){i.remove(r.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=_u(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||xu(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=t.start;i0}function _u(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:Object(w["e"])(e)}}function Ou(t){return isNaN(t[0])||isNaN(t[1])}function wu(t){return t&&!Ou(t[0])&&!Ou(t[1])}var Su=bu,Mu=[],Iu=[],ju=[],Cu=q["h"],Tu=kn["g"],Du=Math.abs;function Au(t,e,n){for(var i,r=t[0],o=t[1],a=t[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){Mu[0]=Cu(r[0],o[0],a[0],c),Mu[1]=Cu(r[1],o[1],a[1],c);var d=Du(Tu(Mu,e)-l);d=0?i+=u:i-=u:f>=0?i-=u:i+=u}return i}function ku(t,e){var n=[],i=q["n"],r=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),u=t.getVisual("fromSymbol"),c=t.getVisual("toSymbol");l.__original||(l.__original=[kn["c"](l[0]),kn["c"](l[1])],l[2]&&l.__original.push(kn["c"](l[2])));var d=l.__original;if(null!=l[2]){if(kn["d"](r[0],d[0]),kn["d"](r[1],d[2]),kn["d"](r[2],d[1]),u&&"none"!==u){var h=Yl(t.node1),p=Au(r,d[0],h*e);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){h=Yl(t.node2),p=Au(r,d[1],h*e);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]}kn["d"](l[0],r[0]),kn["d"](l[1],r[2]),kn["d"](l[2],r[1])}else{if(kn["d"](o[0],d[0]),kn["d"](o[1],d[1]),kn["q"](a,o[1],o[0]),kn["m"](a,a),u&&"none"!==u){h=Yl(t.node1);kn["o"](o[0],o[0],a,h*e)}if(c&&"none"!==c){h=Yl(t.node2);kn["o"](o[1],o[1],a,-h*e)}kn["d"](l[0],o[0]),kn["d"](l[1],o[1])}}))}function Lu(t){return"view"===t.type}var Pu=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.init=function(t,e){var n=new k,i=new Su,r=this.group;this._controller=new Sr(e.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(Lu(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):y["h"](s,l,t)}ku(t.getGraph(),Ul(t));var u=t.getData();o.updateData(u);var c=t.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var d=t.forceLayout,h=t.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,h);var p=t.get("layout");u.graph.eachNode((function(e){var n=e.dataIndex,r=e.getGraphicEl(),o=e.getModel();if(r){r.off("drag").off("dragend");var a=o.get("draggable");a&&r.on("drag",(function(o){switch(p){case"force":d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,h),d.setFixed(n),u.setItemLayout(n,[r.x,r.y]);break;case"circular":u.setItemLayout(n,[r.x,r.y]),e.setLayout({fixed:!0},!0),Kl(t,"symbolSize",e,[o.offsetX,o.offsetY]),i.updateLayout(t);break;case"none":default:u.setItemLayout(n,[r.x,r.y]),Wl(t.getGraph(),t),i.updateLayout(t);break}})).on("dragend",(function(){d&&d.setUnfixed(n)})),r.setDraggable(a,!!o.get("cursor"));var s=o.get(["emphasis","focus"]);"adjacency"===s&&(Object(v["a"])(r).focus=e.getAdjacentDataIndices())}})),u.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(Object(v["a"])(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var f="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),g=u.getLayout("cx"),m=u.getLayout("cy");u.graph.eachNode((function(t){$l(t,f,g,m)})),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e){var n=this;(function i(){t.step((function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(i,16):i())}))})()},e.prototype._updateController=function(t,e,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(e,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!Cr(e,n,t)})),Lu(t.coordinateSystem)?(r.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(e){Mr(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){Ir(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(),ku(t.getGraph(),Ul(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):r.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=Ul(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(n)}))},e.prototype.updateLayout=function(t){ku(t.getGraph(),Ul(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(tt["a"]),Nu=Pu;function Ru(t){return"_EC_"+t}var Eu=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[Ru(t)]){var i=new zu(t,e);return i.hostGraph=this,this.nodes.push(i),n[Ru(t)]=i,i}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[Ru(t)]},t.prototype.addEdge=function(t,e,n){var i=this._nodesMap,r=this._edgesMap;if(g["z"](t)&&(t=this.nodes[t]),g["z"](e)&&(e=this.nodes[e]),t instanceof zu||(t=i[Ru(t)]),e instanceof zu||(e=i[Ru(e)]),t&&e){var o=t.id+"-"+e.id,a=new Vu(t,e,n);return a.hostGraph=this,this._directed&&(t.outEdges.push(a),e.inEdges.push(a)),t.edges.push(a),t!==e&&e.edges.push(a),this.edges.push(a),r[o]=a,a}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof zu&&(t=t.id),e instanceof zu&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,r=0;r=0&&t.call(e,n[r],r)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},t.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof zu||(e=this._nodesMap[Ru(e)]),e){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o=0&&n.node2.dataIndex>=0}));for(r=0,o=i.length;r=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}g["K"](zu,Bu("hostGraph","data")),g["K"](Vu,Bu("hostGraph","edgeData"));var Gu=Eu,Hu=n("1f39");function Fu(t,e,n,i,r){for(var o=new Gu(i),a=0;a "+p)),c++)}var f,y=n.get("coordinateSystem");if("cartesian2d"===y||"polar"===y)f=Object(u["a"])(t,n);else{var m=Hu["a"].get(y),v=m&&m.dimensions||[];g["r"](v,"value")<0&&v.concat(["value"]);var b=Object(We["b"])(t,{coordDimensions:v,encodeDefine:n.getEncode()}).dimensions;f=new qe["a"](b,n),f.initData(t)}var x=new qe["a"](["value"],n);return x.initData(l,s),r&&r(f,x),ka({mainData:f,struct:o,structAttr:"graph",datas:{node:f,edge:x},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var Wu=n("f6d8"),qu=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Object(l["a"])(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new Ze(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),Object(H["f"])(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[],r=this;if(i&&n){Bl(this);var o=Fu(i,n,this,!0,a);return g["k"](o.edges,(function(t){Gl(t.node1,t.node2,this,t.dataIndex)}),this),o.data}function a(t,e){t.wrapMethod("getItemModel",(function(t){var e=r._categoriesModels,n=t.getShallow("category"),i=e[n];return i&&(i.parentModel=t.parentModel,t.parentModel=i),t}));var n=ti["a"].prototype.getModel;function i(t,e){var i=n.call(this,t,e);return i.resolveParentPath=o,i}function o(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=o,t.getModel=i,t}))}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),o=i.graph.getEdgeByIndex(t),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),Object(Xi["c"])("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}var u=Object(Wu["a"])({series:this,dataIndex:t,multipleSeries:e});return u},e.prototype._updateCategoriesData=function(){var t=g["H"](this.option.categories||[],(function(t){return null!=t.value?t:g["m"]({value:0},t)})),e=new qe["a"](["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(c["b"]),Uu=qu,Yu={type:"graphRoam",event:"graphRoam",update:"none"};function Xu(t){t.registerChartView(Nu),t.registerSeriesModel(Uu),t.registerProcessor(Cl),t.registerVisual(Tl),t.registerVisual(Al),t.registerLayout(ql),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,Ql),t.registerLayout(nu),t.registerCoordinateSystem("graphView",{dimensions:To.dimensions,create:ru}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},g["L"]),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},g["L"]),t.registerAction(Yu,(function(t,e,n){e.eachComponent({mainType:"series",query:t},(function(e){var i=e.coordinateSystem,r=Fo(i,t,void 0,n);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)}))}))}var Zu=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),Ku=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return Object(l["a"])(e,t),e.prototype.getDefaultShape=function(){return new Zu},e.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)},e}(F["b"]),Ju=Ku;function $u(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r),a=Object(it["q"])(n[0],e.getWidth()),s=Object(it["q"])(n[1],e.getHeight()),l=Object(it["q"])(t.get("radius"),o/2);return{cx:a,cy:s,r:l}}function Qu(t,e){var n=null==t?"":t+"";return e&&(Object(g["C"])(e)?n=e.replace("{value}",n):Object(g["w"])(e)&&(n=e(t))),n}var tc=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),r=$u(t,n);this._renderMain(t,e,n,i,r),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,i,r){var o=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),c=u.get("roundCap"),d=c?Wt:nt["a"],h=u.get("show"),p=u.getModel("lineStyle"),f=p.get("width"),y=[s,l];Object(W["b"])(y,!a),s=y[0],l=y[1];for(var m=l-s,v=s,b=[],x=0;h&&x=t&&(0===e?0:i[e-1][0])Math.PI/2&&(B+=Math.PI)):"tangential"===V?B=-I-Math.PI/2:Object(g["z"])(V)&&(B=V*Math.PI/180),0===B?d.add(new G["a"]({style:Object(w["c"])(x,{text:N,x:E,y:z,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:R}),silent:!0})):d.add(new G["a"]({style:Object(w["c"])(x,{text:N,x:E,y:z,verticalAlign:"middle",align:"center"},{inheritColor:R}),silent:!0,originX:E,originY:z,rotation:B}))}if(b.get("show")&&k!==_){L=b.get("distance");L=L?L+l:l;for(var H=0;H<=O;H++){u=Math.cos(I),c=Math.sin(I);var F=new Qn["a"]({shape:{x1:u*(f-L)+h,y1:c*(f-L)+p,x2:u*(f-M-L)+h,y2:c*(f-M-L)+p},silent:!0,style:D});"auto"===D.stroke&&F.setStyle({stroke:i((k+H/O)/_)}),d.add(F),I+=C}I-=C}else I+=j}},e.prototype._renderPointer=function(t,e,n,i,r,o,a,s,l){var u=this.group,c=this._data,h=this._progressEls,p=[],f=t.get(["pointer","show"]),m=t.getModel("progress"),x=m.get("show"),_=t.getData(),O=_.mapDimension("value"),w=+t.get("min"),M=+t.get("max"),I=[w,M],j=[o,a];function C(e,n){var i,o=_.getItemModel(e),a=o.getModel("pointer"),s=Object(it["q"])(a.get("width"),r.r),l=Object(it["q"])(a.get("length"),r.r),u=t.get(["pointer","icon"]),c=a.get("offsetCenter"),h=Object(it["q"])(c[0],r.r),p=Object(it["q"])(c[1],r.r),f=a.get("keepAspect");return i=u?Object(d["a"])(u,h-s/2,p-l,s,l,null,f):new Ju({shape:{angle:-Math.PI/2,width:s,r:l,x:h,y:p}}),i.rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function T(t,e){var n=m.get("roundCap"),i=n?Wt:nt["a"],a=m.get("overlap"),u=a?m.get("width"):l/_.count(),c=a?r.r-u:r.r-(t+1)*u,d=a?r.r:r.r-t*u,h=new i({shape:{startAngle:o,endAngle:e,cx:r.cx,cy:r.cy,clockwise:s,r0:c,r:d}});return a&&(h.z2=M-_.get(O,t)%M),h}(x||f)&&(_.diff(c).add((function(e){var n=_.get(O,e);if(f){var i=C(e,o);y["c"](i,{rotation:-((isNaN(+n)?j[0]:Object(it["m"])(n,I,j,!0))+Math.PI/2)},t),u.add(i),_.setItemGraphicEl(e,i)}if(x){var r=T(e,o),a=m.get("clip");y["c"](r,{shape:{endAngle:Object(it["m"])(n,I,j,a)}},t),u.add(r),Object(v["b"])(t.seriesIndex,_.dataType,e,r),p[e]=r}})).update((function(e,n){var i=_.get(O,e);if(f){var r=c.getItemGraphicEl(n),a=r?r.rotation:o,s=C(e,a);s.rotation=a,y["h"](s,{rotation:-((isNaN(+i)?j[0]:Object(it["m"])(i,I,j,!0))+Math.PI/2)},t),u.add(s),_.setItemGraphicEl(e,s)}if(x){var l=h[n],d=l?l.shape.endAngle:o,g=T(e,d),b=m.get("clip");y["h"](g,{shape:{endAngle:Object(it["m"])(i,I,j,b)}},t),u.add(g),Object(v["b"])(t.seriesIndex,_.dataType,e,g),p[e]=g}})).execute(),_.each((function(t){var e=_.getItemModel(t),n=e.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(f){var s=_.getItemGraphicEl(t),l=_.getItemVisual(t,"style"),u=l.fill;if(s instanceof S["a"]){var c=s.style;s.useStyle(Object(g["m"])({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(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i(Object(it["m"])(_.get(O,t),I,[0,1],!0))),s.z2EmphasisLift=0,Object(b["I"])(s,e),Object(b["J"])(s,r,o,a)}if(x){var d=p[t];d.useStyle(_.getItemVisual(t,"style")),d.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),d.z2EmphasisLift=0,Object(b["I"])(d,e),Object(b["J"])(d,r,o,a)}})),this._progressEls=p)},e.prototype._renderAnchor=function(t,e){var n=t.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=Object(d["a"])(o,e.cx-r/2+Object(it["q"])(a[0],e.r),e.cy-r/2+Object(it["q"])(a[1],e.r),r,r,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},e.prototype._renderTitleAndDetail=function(t,e,n,i,r){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),c=new h["a"],d=[],p=[],f=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);a.diff(this._data).add((function(t){d[t]=new G["a"]({silent:!0}),p[t]=new G["a"]({silent:!0})})).update((function(t,e){d[t]=o._titleEls[e],p[t]=o._detailEls[e]})).execute(),a.each((function(e){var n=a.getItemModel(e),o=a.get(s,e),y=new h["a"],m=i(Object(it["m"])(o,[l,u],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var b=v.get("offsetCenter"),x=r.cx+Object(it["q"])(b[0],r.r),_=r.cy+Object(it["q"])(b[1],r.r),O=d[e];O.attr({z2:g?0:2,style:Object(w["c"])(v,{x:x,y:_,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:m})}),y.add(O)}var S=n.getModel("detail");if(S.get("show")){var M=S.get("offsetCenter"),I=r.cx+Object(it["q"])(M[0],r.r),j=r.cy+Object(it["q"])(M[1],r.r),C=Object(it["q"])(S.get("width"),r.r),T=Object(it["q"])(S.get("height"),r.r),D=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:m,A=(O=p[e],S.get("formatter"));O.attr({z2:g?0:2,style:Object(w["c"])(S,{x:I,y:j,text:Qu(o,A),width:isNaN(C)?null:C,height:isNaN(T)?null:T,align:"center",verticalAlign:"middle"},{inheritColor:D})}),Object(w["h"])(O,{normal:S},o,(function(t){return Qu(t,A)})),f&&Object(w["a"])(O,e,a,t,{getFormattedLabel:function(t,e,n,i,r,a){return Qu(a?a.interpolatedValue:o,A)}}),y.add(O)}c.add(y)})),this.group.add(c),this._titleEls=d,this._detailEls=p},e.type="gauge",e}(tt["a"]),ec=tc,nc=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return Object(l["a"])(e,t),e.prototype.getInitialData=function(t,e){return Ue(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,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}},e}(c["b"]),ic=nc;function rc(t){t.registerChartView(ec),t.registerSeriesModel(ic)}var oc=["itemStyle","opacity"],ac=function(t){function e(e,n){var i=t.call(this)||this,r=i,o=new Ae["a"],a=new G["a"];return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(e,n,!0),i}return Object(l["a"])(e,t),e.prototype.updateData=function(t,e,n){var i=this,r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=o.getModel("emphasis"),l=o.get(oc);l=null==l?1:l,n||Object(y["g"])(i),i.useStyle(t.getItemVisual(e,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,y["c"](i,{style:{opacity:l}},r,e)):y["h"](i,{style:{opacity:l},shape:{points:a.points}},r,e),Object(b["I"])(i,o),this._updateLabel(t,e),Object(b["J"])(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e),l=s.label,u=t.getItemVisual(e,"style"),c=u.fill;Object(w["g"])(r,Object(w["e"])(a),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:u.opacity,defaultText:t.getName(e)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:c,outsideFill:c});var d=l.linePoints;i.setShape({points:d}),n.textGuideLineConfig={anchor:d?new ke["a"](d[0][0],d[0][1]):null},y["h"](r,{style:{x:l.x,y:l.y}},o,e),r.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),Object(Le["d"])(n,Object(Le["a"])(a),{stroke:c})},e}(qi["a"]),sc=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._data,o=this.group;i.diff(r).add((function(t){var e=new ac(i,t);i.setItemGraphicEl(t,e),o.add(e)})).update((function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),o.add(n),i.setItemGraphicEl(t,n)})).remove((function(e){var n=r.getItemGraphicEl(e);y["f"](n,t,e)})).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(tt["a"]),lc=sc,uc=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ze(g["c"](this.getData,this),g["c"](this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return Ue(this,{coordDimensions:["value"],encodeDefaulter:g["h"](Ye["d"],this)})},e.prototype._defaultLabelLine=function(t){Object(H["f"])(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(c["b"]),cc=uc;function dc(t,e){return Se["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function hc(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,(function(t){return t})),r=[],o="ascending"===e,a=0,s=t.count();aNc)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&zc(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function zc(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var Vc=Rc,Bc=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&g["I"](e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){g["k"](["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=g["n"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);g["k"](n,(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(pn["a"]),Gc=Bc,Hc=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return Object(l["a"])(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(En["a"]),Fc=Hc;function Wc(t,e,n,i,r,o){t=t||0;var a=n[1]-n[0];if(null!=r&&(r=Uc(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(e[1]-e[0]);s=Uc(s,[0,a]),r=o=Uc(s,[r,o]),i=0}e[0]=Uc(e[0],n),e[1]=Uc(e[1],n);var l=qc(e,i);e[i]+=t;var u,c=r||0,d=n.slice();return l.sign<0?d[0]+=c:d[1]-=c,e[i]=Uc(e[i],d),u=qc(e,i),null!=r&&(u.sign!==l.sign||u.spano&&(e[1-i]=e[i]+u.sign*o),e}function qc(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function Uc(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var Yc=g["k"],Xc=Math.min,Zc=Math.max,Kc=Math.floor,Jc=Math.ceil,$c=it["w"],Qc=Math.PI,td=function(){function t(t,e,n){this.type="parallel",this._axesMap=g["f"](),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=t.dimensions,r=t.parallelAxisIndex;Yc(i,(function(t,n){var i=r[n],o=e.getComponent("parallelAxis",i),a=this._axesMap.set(t,new Fc(t,Cn["a"](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)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,r=e.pixelDimIndex,o=t[1-r],a=t[r];return o>=n&&o<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var i=n.getData();Yc(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),Cn["i"](e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=Se["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],u=this.dimensions.length,c=ed(e.get("axisExpandWidth"),l),d=ed(e.get("axisExpandCount")||0,[0,u]),h=e.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,p=e.get("axisExpandWindow");if(p)t=ed(p[1]-p[0],l),p[1]=p[0]+t;else{t=ed(c*(d-1),l);var f=e.get("axisExpandCenter")||Kc(u/2);p=[c*f-t/2],p[1]=p[0]+t}var g=(s-t)/(u-d);g<3&&(g=0);var y=[Kc($c(p[0]/c,1))+1,Jc($c(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:h,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:p,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;e.each((function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),Yc(n,(function(e,n){var o=(i.axisExpandable?id:nd)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:Qc/2,vertical:0},l=[a[r].x+t.x,a[r].y+t.y],u=s[r],c=An["c"]();An["g"](c,c,u),An["i"](c,c,l),this._axesLayout[e]={position:l,rotation:u,transform:c,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];g["k"](o,(function(e){a.push(t.mapDimension(e)),s.push(r.get(e).model)}));for(var l=this.hasAxisBrushed(),u=n;ur*(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*=e.axisExpandWidth/u,a?Wc(a,i,o,"all"):l="none";else{var h=i[1]-i[0],p=o[1]*s/h;i=[Zc(0,p-h/2)],i[1]=Xc(o[1],i[0]+h),i[0]=i[1]-h}return{axisExpandWindow:i,behavior:l}},t}();function ed(t,e){return Xc(Zc(t,e[0]),e[1])}function nd(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function id(t,e){var n,i,r=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,c=!1;return t=0;n--)it["c"](e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;igd}function Pd(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function Nd(t,e,n,i){var r=new h["a"];return r.add(new et["a"]({name:"main",style:Vd(n),silent:!0,draggable:!0,cursor:"move",drift:Object(g["h"])(Wd,t,e,r,["n","s","w","e"]),ondragend:Object(g["h"])(kd,e,{isEnd:!0})})),Object(g["k"])(i,(function(n){r.add(new et["a"]({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(g["h"])(Wd,t,e,r,n),ondragend:Object(g["h"])(kd,e,{isEnd:!0})}))})),r}function Rd(t,e,n,i){var r=i.brushStyle.lineWidth||0,o=hd(r,yd),a=n[0][0],s=n[1][0],l=a-r/2,u=s-r/2,c=n[0][1],d=n[1][1],h=c-o+r/2,p=d-o+r/2,f=c-a,g=d-s,y=f+r,m=g+r;zd(t,e,"main",a,s,f,g),i.transformable&&(zd(t,e,"w",l,u,o,m),zd(t,e,"e",h,u,o,m),zd(t,e,"n",l,u,y,o),zd(t,e,"s",l,p,y,o),zd(t,e,"nw",l,u,o,o),zd(t,e,"ne",h,u,o,o),zd(t,e,"sw",l,p,o,o),zd(t,e,"se",h,p,o,o))}function Ed(t,e){var n=e.__brushOption,i=n.transformable,r=e.childAt(0);r.useStyle(Vd(n)),r.attr({silent:!i,cursor:i?"move":"default"}),Object(g["k"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var r=e.childOfName(n.join("")),o=1===n.length?Hd(t,n[0]):Fd(t,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?bd[o]+"-resize":null})}))}function zd(t,e,n,i,r,o,a){var s=e.childOfName(n);s&&s.setShape(Xd(Yd(t,e,[[i,r],[i+o,r+a]])))}function Vd(t){return Object(g["i"])({strokeNoScale:!0},t.brushStyle)}function Bd(t,e,n,i){var r=[dd(t,n),dd(e,i)],o=[hd(t,n),hd(e,i)];return[[r[0],o[0]],[r[1],o[1]]]}function Gd(t){return m["getTransform"](t.group)}function Hd(t,e){var n={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},r=m["transformDirection"](n[e],Gd(t));return i[r]}function Fd(t,e){var n=[Hd(t,e[0]),Hd(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function Wd(t,e,n,i,r,o){var a=n.__brushOption,s=t.toRectRange(a.range),l=Ud(e,r,o);Object(g["k"])(i,(function(t){var e=vd[t];s[e[0]][e[1]]+=l[e[0]]})),a.range=t.fromRectRange(Bd(s[0][0],s[1][0],s[0][1],s[1][1])),jd(e,n),kd(e,{isEnd:!1})}function qd(t,e,n,i){var r=e.__brushOption.range,o=Ud(t,n,i);Object(g["k"])(r,(function(t){t[0]+=o[0],t[1]+=o[1]})),jd(t,e),kd(t,{isEnd:!1})}function Ud(t,e,n){var i=t.group,r=i.transformCoordToLocal(e,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function Yd(t,e,n){var i=Dd(t,e);return i&&i!==cd?i.clipPath(n,t._transform):Object(g["d"])(n)}function Xd(t){var e=dd(t[0][0],t[1][0]),n=dd(t[0][1],t[1][1]),i=hd(t[0][0],t[1][0]),r=hd(t[0][1],t[1][1]);return{x:e,y:n,width:i-e,height:r-n}}function Zd(t,e,n){if(t._brushType&&!nh(t,e.offsetX,e.offsetY)){var i=t._zr,r=t._covers,o=Td(t,e,n);if(!t._dragging)for(var a=0;ai.getWidth()||n<0||n>i.getHeight()}var ih={lineX:rh(0),lineY:rh(1),rect:{createCover:function(t,e){function n(t){return t}return Nd({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=Pd(t);return Bd(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,i){Rd(t,e,n,i)},updateCommon:Ed,contain:Jd},polygon:{createCover:function(t,e){var n=new h["a"];return n.add(new Ae["a"]({name:"main",style:Vd(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new qi["a"]({name:"main",draggable:!0,drift:Object(g["h"])(qd,t,e),ondragend:Object(g["h"])(kd,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:Yd(t,e,n)})},updateCommon:Ed,contain:Jd}};function rh(t){return{createCover:function(e,n){return Nd({toRectRange:function(e){var n=[e,[0,100]];return t&&n.reverse(),n},fromRectRange:function(e){return e[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=Pd(e),i=dd(n[0][t],n[1][t]),r=hd(n[0][t],n[1][t]);return[i,r]},updateCoverShape:function(e,n,i,r){var o,a=Dd(e,n);if(a!==cd&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[i,o];t&&l.reverse(),Rd(e,n,l,r)},updateCommon:Ed,contain:Jd}}var oh=Od;function ah(t){return t=uh(t),function(e){return m["clipPointsByRect"](e,t)}}function sh(t,e){return t=uh(t),function(n){var i=null!=e?e:n,r=i?t.width:t.height,o=i?t.x:t.y;return[o,o+(r||0)]}}function lh(t,e,n){var i=uh(t);return function(t,r){return i.contain(r[0],r[1])&&!Cr(t,e,n)}}function uh(t){return rn["a"].create(t)}var ch=["axisLine","axisTickLabel","axisName"],dh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments),(this._brushController=new oh(n.getZr())).on("brush",g["c"](this._onBrush,this))},e.prototype.render=function(t,e,n,i){if(!hh(t,e,i)){this.axisModel=t,this.api=n,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new h["a"],this.group.add(this._axisGroup),t.get("show")){var o=fh(t,e),a=o.coordinateSystem,s=t.getAreaSelectStyle(),l=s.width,u=t.axis.dim,c=a.getAxisLayout(u),d=g["m"]({strokeContainThreshold:l},c),p=new pi(t,d);g["k"](ch,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(d,s,t,o,l,n),m["groupTransition"](r,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,n,i,r,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=rn["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:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:ah(u),isTargetByCursor:lh(u,o,i),getLinearBrushOtherExtent:sh(u,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(ph(n))},e.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,i=n.axis,r=g["H"](e,(function(t){return[i.coordToData(t.range[0],!0),i.coordToData(t.range[1],!0)]}));(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:r})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(hn["a"]);function hh(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}function ph(t){var e=t.axis;return g["H"](t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}function fh(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var gh=dh,yh={type:"axisAreaSelect",event:"axisAreaSelected"};function mh(t){t.registerAction(yh,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),t.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))}var vh={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function bh(t){t.registerComponentView(Vc),t.registerComponentModel(Gc),t.registerCoordinateSystem("parallel",sd),t.registerPreprocessor(kc),t.registerComponentModel(ud),t.registerComponentView(gh),In(t,"parallel",ud,vh),mh(t)}function xh(t){Object(i["a"])(bh),t.registerChartView(Sc),t.registerSeriesModel(Cc),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,Ac)}var _h=function(){function t(){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 t}(),Oh=function(t){function e(e){return t.call(this,e)||this}return Object(l["a"])(e,t),e.prototype.getDefaultShape=function(){return new _h},e.prototype.buildPath=function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},e.prototype.highlight=function(){Object(b["r"])(this)},e.prototype.downplay=function(){Object(b["C"])(this)},e}(F["b"]),wh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n){var i=this,r=t.getGraph(),o=this.group,a=t.layoutInfo,s=a.width,l=a.height,u=t.getData(),c=t.getData("edge"),d=t.get("orient");this._model=t,o.removeAll(),o.x=a.x,o.y=a.y,r.eachEdge((function(e){var n=new Oh,i=Object(v["a"])(n);i.dataIndex=e.dataIndex,i.seriesIndex=t.seriesIndex,i.dataType="edge";var r,a,u,h,p,f,y,m,x=e.getModel(),_=x.getModel("lineStyle"),O=_.get("curveness"),S=e.node1.getLayout(),M=e.node1.getModel(),I=M.get("localX"),j=M.get("localY"),C=e.node2.getLayout(),T=e.node2.getModel(),D=T.get("localX"),A=T.get("localY"),k=e.getLayout();n.shape.extent=Math.max(1,k.dy),n.shape.orient=d,"vertical"===d?(r=(null!=I?I*s:S.x)+k.sy,a=(null!=j?j*l:S.y)+S.dy,u=(null!=D?D*s:C.x)+k.ty,h=null!=A?A*l:C.y,p=r,f=a*(1-O)+h*O,y=u,m=a*O+h*(1-O)):(r=(null!=I?I*s:S.x)+S.dx,a=(null!=j?j*l:S.y)+k.sy,u=null!=D?D*s:C.x,h=(null!=A?A*l:C.y)+k.ty,p=r*(1-O)+u*O,f=a,y=r*O+u*(1-O),m=h),n.setShape({x1:r,y1:a,x2:u,y2:h,cpx1:p,cpy1:f,cpx2:y,cpy2:m}),n.useStyle(_.getItemStyle()),Sh(n.style,d,e);var L=""+x.get("value"),P=Object(w["e"])(x,"edgeLabel");Object(w["g"])(n,P,{labelFetcher:{getFormattedLabel:function(e,n,i,r,o,a){return t.getFormattedLabel(e,n,"edge",r,Object(g["Q"])(o,P.normal&&P.normal.get("formatter"),L),a)}},labelDataIndex:e.dataIndex,defaultText:L}),n.setTextConfig({position:"inside"});var N=x.getModel("emphasis");Object(b["I"])(n,x,"lineStyle",(function(t){var n=t.getItemStyle();return Sh(n,d,e),n})),o.add(n),c.setItemGraphicEl(e.dataIndex,n);var R=N.get("focus");Object(b["J"])(n,"adjacency"===R?e.getAdjacentDataIndices():"trajectory"===R?e.getTrajectoryDataIndices():R,N.get("blurScope"),N.get("disabled"))})),r.eachNode((function(e){var n=e.getLayout(),i=e.getModel(),r=i.get("localX"),a=i.get("localY"),c=i.getModel("emphasis"),d=new et["a"]({shape:{x:null!=r?r*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy},style:i.getModel("itemStyle").getItemStyle(),z2:10});Object(w["g"])(d,Object(w["e"])(i),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(e,n,"node")}},labelDataIndex:e.dataIndex,defaultText:e.id}),d.disableLabelAnimation=!0,d.setStyle("fill",e.getVisual("color")),d.setStyle("decal",e.getVisual("style").decal),Object(b["I"])(d,i),o.add(d),u.setItemGraphicEl(e.dataIndex,d),Object(v["a"])(d).dataType="node";var h=c.get("focus");Object(b["J"])(d,"adjacency"===h?e.getAdjacentDataIndices():"trajectory"===h?e.getTrajectoryDataIndices():h,c.get("blurScope"),c.get("disabled"))})),u.eachItemGraphicEl((function(e,r){var o=u.getItemModel(r);o.get("draggable")&&(e.drift=function(e,o){i._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:u.getRawIndex(r),localX:this.shape.x/s,localY:this.shape.y/l})},e.ondragend=function(){i._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move")})),!this._data&&t.isAnimationEnabled()&&o.setClipPath(Mh(o.getBoundingRect(),t,(function(){o.removeClipPath()}))),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(tt["a"]);function Sh(t,e,n){switch(t.fill){case"source":t.fill=n.node1.getVisual("color"),t.decal=n.node1.getVisual("style").decal;break;case"target":t.fill=n.node2.getVisual("color"),t.decal=n.node2.getVisual("style").decal;break;case"gradient":var i=n.node1.getVisual("color"),r=n.node2.getVisual("color");Object(g["C"])(i)&&Object(g["C"])(r)&&(t.fill=new B["a"](0,0,+("horizontal"===e),+("vertical"===e),[{color:i,offset:0},{color:r,offset:1}]))}}function Mh(t,e,n){var i=new et["a"]({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return y["c"](i,{shape:{width:t.width+20}},e,n),i}var Ih=wh,jh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.getInitialData=function(t,e){var n=t.edges||t.links,i=t.data||t.nodes,r=t.levels;this.levelModels=[];for(var o=this.levelModels,a=0;a=0&&(o[r[a].depth]=new ti["a"](r[a],this,e));if(i&&n){var s=Fu(i,n,this,!0,l);return s.data}function l(t,e){t.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getData().getItemLayout(e);if(i){var r=i.depth,o=n.levelModels[r];o&&(t.parentModel=o)}return t})),e.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getGraph().getEdgeByIndex(e),r=i.node1.getLayout();if(r){var o=r.depth,a=n.levelModels[o];a&&(t.parentModel=a)}return t}))}},e.prototype.setNodePosition=function(t,e){var n=this.option.data||this.option.nodes,i=n[t];i.localX=e[0],i.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}if("edge"===n){var r=this.getDataParams(t,n),o=r.data,a=r.value,s=o.source+" -- "+o.target;return Object(Xi["c"])("nameValue",{name:s,value:a,noValue:i(a)})}var l=this.getGraph().getNodeByIndex(t),u=l.getLayout().value,c=this.getDataParams(t,n).data.name;return Object(Xi["c"])("nameValue",{name:null!=c?c+"":null,value:u,noValue:i(u)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(e),o=r.getLayout().value;i.value=o}return i},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},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},e}(c["b"]),Ch=jh;function Th(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),i=t.get("nodeGap"),r=Dh(t,e);t.layoutInfo=r;var o=r.width,a=r.height,s=t.getGraph(),l=s.nodes,u=s.edges;kh(l);var c=g["n"](l,(function(t){return 0===t.getLayout().value})),d=0!==c.length?0:t.get("layoutIterations"),h=t.get("orient"),p=t.get("nodeAlign");Ah(l,u,n,i,o,a,d,h,p)}))}function Dh(t,e){return Se["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Ah(t,e,n,i,r,o,a,s,l){Lh(t,e,n,r,o,s,l),zh(t,e,o,r,i,a,s),Jh(t,s)}function kh(t){g["k"](t,(function(t){var e=Zh(t.outEdges,Xh),n=Zh(t.inEdges,Xh),i=t.getValue()||0,r=Math.max(e,n,i);t.setLayout({value:r},!0)}))}function Lh(t,e,n,i,r,o,a){for(var s=[],l=[],u=[],c=[],d=0,h=0;h=0;m&&y.depth>p&&(p=y.depth),g.setLayout({depth:m?y.depth:d},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var v=0;vd-1?p:d-1;a&&"left"!==a&&Nh(t,a,o,w);var S="vertical"===o?(r-n)/w:(i-n)/w;Eh(t,S,o)}function Ph(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function Nh(t,e,n,i){if("right"===e){var r=[],o=t,a=0;while(o.length){for(var s=0;s0;o--)l*=.99,Hh(s,l,a),Gh(s,r,n,i,a),Kh(s,l,a),Gh(s,r,n,i,a)}function Vh(t,e){var n=[],i="vertical"===e?"y":"x",r=Object(H["j"])(t,(function(t){return t.getLayout()[i]}));return r.keys.sort((function(t,e){return t-e})),g["k"](r.keys,(function(t){n.push(r.buckets.get(t))})),n}function Bh(t,e,n,i,r,o){var a=1/0;g["k"](t,(function(t){var e=t.length,s=0;g["k"](t,(function(t){s+=t.getLayout().value}));var l="vertical"===o?(i-(e-1)*r)/s:(n-(e-1)*r)/s;l0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[d]+e;var p="vertical"===r?i:n;if(l=u-e-p,l>0){a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(h=c-2;h>=0;--h)s=t[h],l=s.getLayout()[o]+s.getLayout()[d]+e-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 Hh(t,e,n){g["k"](t.slice().reverse(),(function(t){g["k"](t,(function(t){if(t.outEdges.length){var i=Zh(t.outEdges,Fh,n)/Zh(t.outEdges,Xh);if(isNaN(i)){var r=t.outEdges.length;i=r?Zh(t.outEdges,Wh,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-Yh(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-Yh(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function Fh(t,e){return Yh(t.node2,e)*t.getValue()}function Wh(t,e){return Yh(t.node2,e)}function qh(t,e){return Yh(t.node1,e)*t.getValue()}function Uh(t,e){return Yh(t.node1,e)}function Yh(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function Xh(t){return t.getValue()}function Zh(t,e,n){var i=0,r=t.length,o=-1;while(++oo&&(o=e)})),g["k"](n,(function(e){var n=new Zs({type:"color",mappingMethod:"linear",dataExtent:[r,o],visual:t.get("color")}),i=n.mapValueToVisual(e.getLayout().value),a=e.getModel().get(["itemStyle","color"]);null!=a?(e.setVisual("color",a),e.setVisual("style",{fill:a})):(e.setVisual("color",i),e.setVisual("style",{fill:i}))}))}i.length&&g["k"](i,(function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)}))}))}function Qh(t){t.registerChartView(Ih),t.registerSeriesModel(Ch),t.registerLayout(Th),t.registerVisual($h),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))}var tp=n("2f45"),ep=function(){function t(){}return t.prototype.getInitialData=function(t,e){var n,i,r=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(t.layout="horizontal",n=r.getOrdinalMeta(),i=!0):"category"===s?(t.layout="vertical",n=o.getOrdinalMeta(),i=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u="horizontal"===t.layout?0:1,c=this._baseAxisDim=l[u],d=l[1-u],h=[r,o],p=h[u].get("type"),f=h[1-u].get("type"),y=t.data;if(y&&i){var m=[];g["k"](y,(function(t,e){var n;g["t"](t)?(n=t.slice(),t.unshift(e)):g["t"](t.value)?(n=g["m"]({},t),n.value=n.value.slice(),t.value.unshift(e)):n=t,m.push(n)})),t.data=m}var v=this.defaultValueDimensions,b=[{name:c,type:Object(tp["a"])(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:Object(tp["a"])(f),dimsDef:v.slice()}];return Ue(this,{coordDimensions:b,dimensionsCount:v.length+1,encodeDefaulter:g["h"](Ye["c"],b,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),np=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.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 Object(l["a"])(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(c["b"]);Object(g["K"])(np,ep,!0);var ip=np,rp=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===t.get("layout")?1:0;i.diff(o).add((function(t){if(i.hasValue(t)){var e=i.getItemLayout(t),n=sp(e,i,t,a,!0);i.setItemGraphicEl(t,n),r.add(n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?(Object(y["g"])(n),lp(s,n,i,t)):n=sp(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=i},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},e.type="boxplot",e}(tt["a"]),op=function(){function t(){}return t}(),ap=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return Object(l["a"])(e,t),e.prototype.getDefaultShape=function(){return new op},e.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();iy){var _=[v,x];i.push(_)}}}return{boxData:n,outliers:i}}var mp=n("07fd"),vp={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==mp["c"]){var n="";0,Object(As["c"])(n)}var i=yp(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function bp(t){t.registerSeriesModel(ip),t.registerChartView(cp),t.registerLayout(hp),t.registerTransform(vp)}var xp=["color","borderColor"],_p=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){m["traverseElements"](this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,i=this.group,r=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),e.diff(n).add((function(n){if(e.hasValue(n)){var a=e.getItemLayout(n);if(o&&Mp(s,a))return;var l=Sp(a,n,!0);y["c"](l,{shape:{points:a.ends}},t,n),Ip(l,e,n,r),i.add(l),e.setItemGraphicEl(n,l)}})).update((function(a,l){var u=n.getItemGraphicEl(l);if(e.hasValue(a)){var c=e.getItemLayout(a);o&&Mp(s,c)?i.remove(u):(u?(y["h"](u,{shape:{points:c.ends}},t,a),Object(y["g"])(u)):u=Sp(c,a),Ip(u,e,a,r),i.add(u),e.setItemGraphicEl(a,u))}else i.remove(u)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),Dp(t,this.group);var e=t.get("clip",!0)?at(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){var n,i=e.getData(),r=i.getLayout("isSimpleBox");while(null!=(n=t.next())){var o=i.getItemLayout(n),a=Sp(o,n);Ip(a,i,n,r),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},e.prototype._incrementalRenderLarge=function(t,e){Dp(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(tt["a"]),Op=function(){function t(){}return t}(),wp=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return Object(l["a"])(e,t),e.prototype.getDefaultShape=function(){return new Op},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(F["b"]);function Sp(t,e,n){var i=t.ends;return new wp({shape:{points:n?jp(i,t):i},z2:100})}function Mp(t,e){for(var n=!0,i=0;i0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]);0===t&&(r=n.get(["itemStyle","borderColorDoji"]));var o=n.getModel("itemStyle").getItemStyle(xp);e.useStyle(o),e.style.fill=null,e.style.stroke=r}var kp=_p,Lp=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return Object(l["a"])(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var i=e.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(c["b"]);Object(g["K"])(Lp,ep,!0);var Pp=Lp;function Np(t){t&&g["t"](t.series)&&g["k"](t.series,(function(t){g["A"](t)&&"k"===t.type&&(t.type="candlestick")}))}var Rp=["itemStyle","borderColor"],Ep=["itemStyle","borderColor0"],zp=["itemStyle","borderColorDoji"],Vp=["itemStyle","color"],Bp=["itemStyle","color0"],Gp={seriesType:"candlestick",plan:Object(Tt["a"])(),performRawSeries:!0,reset:function(t,e){function n(t,e){return e.get(t>0?Vp:Bp)}function i(t,e){return e.get(0===t?zp:t>0?Rp:Ep)}if(!e.isSeriesFiltered(t)){var r=t.pipelineContext.large;return!r&&{progress:function(t,e){var r;while(null!=(r=t.next())){var o=e.getItemModel(r),a=e.getItemLayout(r).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=i(a,o)||s.fill;var l=e.ensureUniqueItemVisual(r,"style");Object(g["m"])(l,s)}}}}}},Hp=Gp,Fp={seriesType:"candlestick",plan:Object(Tt["a"])(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),i=qp(t,n),r=0,o=1,a=["x","y"],s=n.getDimensionIndex(n.mapDimension(a[r])),l=Object(g["H"])(n.mapDimensionsAll(a[o]),n.getDimensionIndex,n),u=l[0],c=l[1],d=l[2],h=l[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(s<0||l.length<4))return{progress:t.pipelineContext.large?f:p};function p(t,n){var a,l=n.getStore();while(null!=(a=t.next())){var p=l.get(s,a),f=l.get(u,a),g=l.get(c,a),y=l.get(d,a),v=l.get(h,a),b=Math.min(f,g),x=Math.max(f,g),_=C(b,p),O=C(x,p),w=C(y,p),S=C(v,p),M=[];T(M,O,0),T(M,_,1),M.push(A(S),A(O),A(w),A(_));var I=n.getItemModel(a),j=!!I.get(["itemStyle","borderColorDoji"]);n.setItemLayout(a,{sign:Wp(l,a,f,g,c,j),initBaseline:f>g?O[o]:_[o],ends:M,brushRect:D(y,v,p)})}function C(t,n){var i=[];return i[r]=n,i[o]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function T(t,e,n){var o=e.slice(),a=e.slice();o[r]=Object(m["subPixelOptimize"])(o[r]+i/2,1,!1),a[r]=Object(m["subPixelOptimize"])(a[r]-i/2,1,!0),n?t.push(o,a):t.push(a,o)}function D(t,e,n){var a=C(t,n),s=C(e,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 A(t){return t[r]=Object(m["subPixelOptimize"])(t[r],1),t}}function f(n,i){var a,l,p=Object(E["a"])(4*n.count),f=0,g=[],y=[],m=i.getStore(),v=!!t.get(["itemStyle","borderColorDoji"]);while(null!=(l=n.next())){var b=m.get(s,l),x=m.get(u,l),_=m.get(c,l),O=m.get(d,l),w=m.get(h,l);isNaN(b)||isNaN(O)||isNaN(w)?(p[f++]=NaN,f+=3):(p[f++]=Wp(m,l,x,_,c,v),g[r]=b,g[o]=O,a=e.dataToPoint(g,null,y),p[f++]=a?a[0]:NaN,p[f++]=a?a[1]:NaN,g[o]=w,a=e.dataToPoint(g,null,y),p[f++]=a?a[1]:NaN)}i.setLayout("largePoints",p)}}};function Wp(t,e,n,i,r,o){var a;return a=n>i?-1:n0?t.get(r,e-1)<=i?1:-1:1,a}function qp(t,e){var n,i=t.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=Object(it["q"])(Object(g["P"])(t.get("barMaxWidth"),r),r),a=Object(it["q"])(Object(g["P"])(t.get("barMinWidth"),1),r),s=t.get("barWidth");return null!=s?Object(it["q"])(s,r):Math.max(Math.min(r/2,o),a)}var Up=Fp;function Yp(t){t.registerChartView(kp),t.registerSeriesModel(Pp),t.registerPreprocessor(Np),t.registerVisual(Hp),t.registerLayout(Up)}function Xp(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}var Zp=function(t){function e(e,n){var i=t.call(this)||this,r=new j(e,n),o=new h["a"];return i.add(r),i.add(o),i.updateData(e,n),i}return Object(l["a"])(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=t.rippleNumber,r=this.childAt(1),o=0;o0&&(o=this._getLineLength(i)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){i.stopAnimation();var c=void 0;c=g["w"](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}},e.prototype._animateSymbol=function(t,e,n,i,r){if(e>0){t.__t=0;var o=this,a=t.animate("",i).when(r?2*e:e,{__t:r?2:1}).delay(n).during((function(){o._updateSymbolPosition(t)}));i||a.done((function(){o.remove(t)})),a.start()}},e.prototype._getLineLength=function(t){return kn["f"](t.__p1,t.__cp1)+kn["f"](t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t<1?t.__t:2-t.__t,o=[t.x,t.y],a=o.slice(),s=q["h"],l=q["i"];o[0]=s(e[0],i[0],n[0],r),o[1]=s(e[1],i[1],n[1],r);var u=t.__t<1?l(e[0],i[0],n[0],r):l(n[0],i[0],e[0],1-r),c=t.__t<1?l(e[1],i[1],n[1],r):l(n[1],i[1],e[1],1-r);t.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT=0;o--)if(i[o]<=e)break;o=Math.min(o,r-2)}else{for(o=a;oe)break;o=Math.min(o-1,r-2)}var l=(e-i[o])/(i[o+1]-i[o]),u=n[o],c=n[o+1];t.x=u[0]*(1-l)+l*c[0],t.y=u[1]*(1-l)+l*c[1];var d=t.__t<1?c[0]-u[0]:u[0]-c[0],h=t.__t<1?c[1]-u[1]:u[1]-c[1];t.rotation=-Math.atan2(h,d)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(rf),lf=sf,uf=n("9680"),cf=n("68ab"),df=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),hf=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return Object(l["a"])(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new df},e.prototype.buildPath=function(t,e){var n,i=e.segs,r=e.curveness;if(e.polyline)for(n=this._off;n0){t.moveTo(i[n++],i[n++]);for(var a=1;a0){var d=(s+u)/2-(l-c)*r,h=(l+c)/2-(u-s)*r;t.quadraticCurveTo(d,h,u,c)}else t.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s0)for(var u=i[s++],c=i[s++],d=1;d0){var f=(u+h)/2-(c-p)*r,g=(c+p)/2-(h-u)*r;if(cf["a"](u,c,f,g,h,p,o,t,e))return a}else if(uf["a"](u,c,h,p,o,t,e))return a;a++}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(t=n[0],e=n[1],i.contain(t,e)){var r=this.hoverDataIdx=this.findDataIndex(t,e);return r>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.segs,i=1/0,r=1/0,o=-1/0,a=-1/0,s=0;s0&&(o.dataIndex=n+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),ff=pf,gf={seriesType:"lines",plan:Object(Tt["a"])(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),i=t.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;c0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var u=t.get("clip",!0)&&at(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t);r.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,n){var i=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=yf.reset(t,e,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,i=this._showEffect(e),r=!!e.get("polyline"),o=e.pipelineContext,a=o.large;return n&&i===this._hasEffet&&r===this._isPolyline&&a===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=a?new ff:new Su(r?i?lf:af:i?rf:vu),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=a),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr(),n="svg"===e.painter.getType();n||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}(tt["a"]),vf=mf,bf="undefined"===typeof Uint32Array?Array:Uint32Array,xf="undefined"===typeof Float64Array?Array:Float64Array;function _f(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=Object(g["H"])(e,(function(t){var e=[t[0].coord,t[1].coord],n={coords:e};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),Object(g["J"])([n,t[0],t[1]])})))}var Of=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return Object(l["a"])(e,t),e.prototype.init=function(e){e.data=e.data||[],_f(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(_f(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=Object(g["e"])(this._flatCoords,e.flatCoords),this._flatCoordsOffset=Object(g["e"])(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t),n=e.option instanceof Array?e.option:e.getShallow("coords");return n},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;r ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.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}},e}(c["b"]),wf=Of;function Sf(t){return t instanceof Array||(t=[t,t]),t}var Mf={seriesType:"lines",reset:function(t){var e=Sf(t.get("symbol")),n=Sf(t.get("symbolSize")),i=t.getData();function r(t,e){var n=t.getItemModel(e),i=Sf(n.getShallow("symbol",!0)),r=Sf(n.getShallow("symbolSize",!0));i[0]&&t.setItemVisual(e,"fromSymbol",i[0]),i[1]&&t.setItemVisual(e,"toSymbol",i[1]),r[0]&&t.setItemVisual(e,"fromSymbolSize",r[0]),r[1]&&t.setItemVisual(e,"toSymbolSize",r[1])}return i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?r:null}}},If=Mf;function jf(t){t.registerChartView(vf),t.registerSeriesModel(wf),t.registerLayout(yf),t.registerVisual(If)}var Cf=n("726e"),Tf=256,Df=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Cf["d"].createCanvas();this.canvas=t}return t.prototype.update=function(t,e,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,d=c.getContext("2d"),h=t.length;c.width=e,c.height=n;for(var p=0;p0){var j=o(v)?s:l;v>0&&(v=v*M+w),x[_++]=j[I],x[_++]=j[I+1],x[_++]=j[I+2],x[_++]=j[I+3]*v*256}else _+=4}return d.putImageData(b,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Cf["d"].createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},t}(),Af=Df;function kf(t,e,n){var i=t[1]-t[0];e=g["H"](e,(function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}}));var r=e.length,o=0;return function(t){var i;for(i=o;i=0;i--){a=e[i].interval;if(a[0]<=t&&t<=a[1]){o=i;break}}return i>=0&&i=e[0]&&t<=e[1]}}function Pf(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var Nf=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n){var i;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(i=e)}))})),this._progressiveEls=null,this.group.removeAll();var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):Pf(r)&&this._renderOnGeo(r,t,i,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,i){var r=e.coordinateSystem;r&&(Pf(r)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){m["traverseElements"](this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,r){var o,a,s,l,u=t.coordinateSystem,c=st(u,"cartesian2d");if(c){var d=u.getAxis("x"),h=u.getAxis("y");0,o=d.getBandWidth()+.5,a=h.getBandWidth()+.5,s=d.scale.getExtent(),l=h.scale.getExtent()}for(var p=this.group,f=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),y=t.getModel(["blur","itemStyle"]).getItemStyle(),m=t.getModel(["select","itemStyle"]).getItemStyle(),v=t.get(["itemStyle","borderRadius"]),x=Object(w["e"])(t),_=t.getModel("emphasis"),O=_.get("focus"),S=_.get("blurScope"),M=_.get("disabled"),I=c?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],j=n;js[1]||Al[1])continue;var k=u.dataToPoint([D,A]);C=new et["a"]({shape:{x:k[0]-o/2,y:k[1]-a/2,width:o,height:a},style:T})}else{if(isNaN(f.get(I[1],j)))continue;C=new et["a"]({z2:1,shape:u.dataToRect([f.get(I[0],j)]).contentShape,style:T})}if(f.hasItemOption){var L=f.getItemModel(j),P=L.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),y=L.getModel(["blur","itemStyle"]).getItemStyle(),m=L.getModel(["select","itemStyle"]).getItemStyle(),v=L.get(["itemStyle","borderRadius"]),O=P.get("focus"),S=P.get("blurScope"),M=P.get("disabled"),x=Object(w["e"])(L)}C.shape.r=v;var N=t.getRawValue(j),R="-";N&&null!=N[2]&&(R=N[2]+""),Object(w["g"])(C,x,{labelFetcher:t,labelDataIndex:j,defaultOpacity:T.opacity,defaultText:R}),C.ensureState("emphasis").style=g,C.ensureState("blur").style=y,C.ensureState("select").style=m,Object(b["J"])(C,O,S,M),C.incremental=r,r&&(C.states.emphasis.hoverLayer=!0),p.add(C),f.setItemGraphicEl(j,C),this._progressiveEls&&this._progressiveEls.push(C)}},e.prototype._renderOnGeo=function(t,e,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new Af;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),u=t.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),d=Math.max(l.y,0),h=Math.min(l.width+l.x,i.getWidth()),p=Math.min(l.height+l.y,i.getHeight()),f=h-c,g=p-d,y=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],m=a.mapArray(y,(function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=c,r[1]-=d,r.push(i),r})),v=n.getExtent(),b="visualMap.continuous"===n.type?Lf(v,n.option.range):kf(v,n.getPieceList(),n.option.selected);s.update(m,f,g,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:o.color.getColorMapper()},b);var x=new S["a"]({style:{width:f,height:g,x:c,y:d,image:s.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(tt["a"]),Rf=Nf,Ef=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.getInitialData=function(t,e){return Object(u["a"])(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Hu["a"].get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(c["b"]),zf=Ef;function Vf(t){t.registerChartView(Rf),t.registerSeriesModel(zf)}var Bf=["itemStyle","borderWidth"],Gf=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Hf=new er["a"],Ff=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n){var i=this.group,r=t.getData(),o=this._data,a=t.coordinateSystem,s=a.getBaseAxis(),l=s.isHorizontal(),u=a.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:Gf[+l],categoryDim:Gf[1-+l]};return r.diff(o).add((function(t){if(r.hasValue(t)){var e=eg(r,t),n=Wf(r,t,e,c),o=rg(r,c,n);r.setItemGraphicEl(t,o),i.add(o),cg(o,c,n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(r.hasValue(t)){var a=eg(r,t),s=Wf(r,t,a,c),l=sg(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(t,null),n=null),n?og(n,c,s):n=rg(r,c,s,!0),r.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,i.add(n),cg(n,c,s)}else i.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&ag(o,t,e.__pictorialSymbolMeta.animationModel,e)})).execute(),this._data=r,this.group},e.prototype.remove=function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl((function(e){ag(i,Object(v["a"])(e).dataIndex,t,e)})):n.removeAll()},e.type="pictorialBar",e}(tt["a"]);function Wf(t,e,n,i){var r=t.getItemLayout(e),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(),p={dataIndex:e,layout:r,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"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};qf(n,o,r,i,p),Yf(t,e,r,o,a,p.boundingLength,p.pxSign,c,i,p),Xf(n,p.symbolScale,u,i,p);var f=p.symbolSize,g=Object(d["b"])(n.get("symbolOffset"),f);return Zf(n,f,r,o,a,g,s,p.valueLineWidth,p.boundingLength,p.repeatCutLength,i,p),p}function qf(t,e,n,i,r){var o,a=i.valueDim,s=t.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[a.wh]<=0);if(g["t"](s)){var d=[Uf(l,s[0])-u,Uf(l,s[1])-u];d[1]0?1:-1}function Uf(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function Yf(t,e,n,i,r,o,a,s,l,u){var c,d=l.valueDim,h=l.categoryDim,p=Math.abs(n[h.wh]),f=t.getItemVisual(e,"symbolSize");c=g["t"](f)?f.slice():null==f?["100%","100%"]:[f,f],c[h.index]=Object(it["q"])(c[h.index],p),c[d.index]=Object(it["q"])(c[d.index],i?p:Math.abs(o)),u.symbolSize=c;var y=u.symbolScale=[c[0]/s,c[1]/s];y[d.index]*=(l.isHorizontal?-1:1)*a}function Xf(t,e,n,i,r){var o=t.get(Bf)||0;o&&(Hf.attr({scaleX:e[0],scaleY:e[1],rotation:n}),Hf.updateTransform(),o/=Hf.getLineScale(),o*=e[i.valueDim.index]),r.valueLineWidth=o||0}function Zf(t,e,n,i,r,o,a,s,l,u,c,d){var h=c.categoryDim,p=c.valueDim,f=d.pxSign,y=Math.max(e[p.index]+s,0),m=y;if(i){var v=Math.abs(l),b=g["O"](t.get("symbolMargin"),"15%")+"",x=!1;b.lastIndexOf("!")===b.length-1&&(x=!0,b=b.slice(0,b.length-1));var _=Object(it["q"])(b,e[p.index]),O=Math.max(y+2*_,0),w=x?0:2*_,S=Object(it["k"])(i),M=S?i:dg((v+w)/O),I=v-M*y;_=I/2/(x?M:Math.max(M-1,1)),O=y+2*_,w=x?0:2*_,S||"fixed"===i||(M=u?dg((Math.abs(u)+w)/O):0),m=M*O-w,d.repeatTimes=M,d.symbolMargin=_}var j=f*(m/2),C=d.pathPosition=[];C[h.index]=n[h.wh]/2,C[p.index]="start"===a?j:"end"===a?l-j:l/2,o&&(C[0]+=o[0],C[1]+=o[1]);var T=d.bundlePosition=[];T[h.index]=n[h.xy],T[p.index]=n[p.xy];var D=d.barRectShape=g["m"]({},n);D[p.wh]=f*Math.max(Math.abs(n[p.wh]),Math.abs(C[p.index]+j)),D[h.wh]=n[h.wh];var A=d.clipShape={};A[h.xy]=-n[h.xy],A[h.wh]=c.ecSize[h.wh],A[p.xy]=0,A[p.wh]=n[p.wh]}function Kf(t){var e=t.symbolPatternSize,n=Object(d["a"])(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function Jf(t,e,n,i){var r=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,c=0,d=o[e.valueDim.index]+a+2*n.symbolMargin;for(lg(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c0:i<0)&&(r=u-1-t),e[l.index]=d*(r-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function $f(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?ug(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=t.__pictorialMainPath=Kf(n),r.add(o),ug(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 Qf(t,e,n){var i=g["m"]({},e.barRectShape),r=t.__pictorialBarRect;r?ug(r,null,{shape:i},e,n):(r=t.__pictorialBarRect=new et["a"]({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),r.disableMorphing=!0,t.add(r))}function tg(t,e,n,i){if(n.symbolClip){var r=t.__pictorialClipPath,o=g["m"]({},n.clipShape),a=e.valueDim,s=n.animationModel,l=n.dataIndex;if(r)y["h"](r,{shape:o},s,l);else{o[a.wh]=0,r=new et["a"]({shape:o}),t.__pictorialBundle.setClipPath(r),t.__pictorialClipPath=r;var u={};u[a.wh]=n.clipShape[a.wh],m[i?"updateProps":"initProps"](r,{shape:u},s,l)}}}function eg(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=ng,n.isAnimationEnabled=ig,n}function ng(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function ig(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function rg(t,e,n,i){var r=new h["a"],o=new h["a"];return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?Jf(r,e,n):$f(r,e,n),Qf(r,n,i),tg(r,e,n,i),r.__pictorialShapeStr=sg(t,n),r.__pictorialSymbolMeta=n,r}function og(t,e,n){var i=n.animationModel,r=n.dataIndex,o=t.__pictorialBundle;y["h"](o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,r),n.symbolRepeat?Jf(t,e,n,!0):$f(t,e,n,!0),Qf(t,n,!0),tg(t,e,n,!0)}function ag(t,e,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];lg(i,(function(t){o.push(t)})),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),g["k"](o,(function(t){y["e"](t,{scaleX:0,scaleY:0},n,e,(function(){i.parent&&i.parent.remove(i)}))})),t.setItemGraphicEl(e,null)}function sg(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function lg(t,e,n){g["k"](t.__pictorialBundle.children(),(function(i){i!==t.__pictorialBarRect&&e.call(n,i)}))}function ug(t,e,n,i,r,o){e&&t.attr(e),i.symbolClip&&!r?n&&t.attr(n):n&&m[r?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,o)}function cg(t,e,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"),d=o.get("blurScope"),h=o.get("scale");lg(t,(function(t){if(t instanceof S["a"]){var e=t.style;t.useStyle(g["m"]({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var i=t.ensureState("emphasis");i.style=a,h&&(i.scaleX=1.1*t.scaleX,i.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,u&&(t.cursor=u),t.z2=n.z2}));var p=e.valueDim.posDesc[+(n.boundingLength>0)],f=t.__pictorialBarRect;Object(w["g"])(f,Object(w["e"])(r),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:_(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),Object(b["J"])(t,c,d,o.get("disabled"))}function dg(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var hg=Ff,pg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return Object(l["a"])(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Object(zt["d"])(Et.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%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Et),fg=pg;function gg(t){t.registerChartView(hg),t.registerSeriesModel(fg),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Object(g["h"])(Nt["c"],"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Object(Nt["a"])("pictorialBar"))}var yg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this,o=this.group,a=t.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(t){return t.name}o.x=0,o.y=l.y+u[0];var d=new rs["a"](this._layersSeries||[],a,c,c),p=[];function f(e,n,s){var l=r._layers;if("remove"!==e){for(var u,c,d=[],f=[],g=a[n].indices,m=0;mo&&(o=s),i.push(s)}for(var u=0;uo&&(o=d)}return{y0:r,max:o}}function Mg(t){t.registerChartView(vg),t.registerSeriesModel(_g),t.registerLayout(Og),t.registerProcessor(De("themeRiver"))}var Ig=n("857d"),jg=2,Cg=4,Tg=function(t){function e(e,n,i,r){var o=t.call(this)||this;o.z2=jg,o.textConfig={inside:!0},Object(v["a"])(o).seriesIndex=n.seriesIndex;var a=new G["a"]({z2:Cg,silent:e.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,e,n,i,r),o}return Object(l["a"])(e,t),e.prototype.updateData=function(t,e,n,i,r){this.node=e,e.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var o=this;Object(v["a"])(o).dataIndex=e.dataIndex;var a=e.getModel(),s=a.getModel("emphasis"),l=e.getLayout(),u=g["m"]({},l);u.label=null;var c=e.getVisual("style");c.lineJoin="bevel";var d=e.getVisual("decal");d&&(c.decal=Object(to["a"])(d,r));var h=Kt(a.getModel("itemStyle"),u,!0);g["m"](u,h),g["k"](b["g"],(function(t){var e=o.ensureState(t),n=a.getModel([t,"itemStyle"]);e.style=n.getItemStyle();var i=Kt(n,u);i&&(e.shape=i)})),t?(o.setShape(u),o.shape.r=l.r0,y["c"](o,{shape:{r:l.r}},n,e.dataIndex)):(y["h"](o,{shape:u},n),Object(y["g"])(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 f=s.get("focus"),m="ancestor"===f?e.getAncestorsIndices():"descendant"===f?e.getDescendantIndices():f;Object(b["J"])(this,m,s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t){var e=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(),d=this.node.dataIndex,h=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(null!=h&&Math.abs(o)Math.PI/2?"right":"left"):M&&"center"!==M?"left"===M?(b=r.r0+S,a>Math.PI/2&&(M="right")):"right"===M&&(b=r.r-S,a>Math.PI/2&&(M="left")):(b=o===2*Math.PI&&0===r.r0?0:(r.r+r.r0)/2,M="center"),y.style.align=M,y.style.verticalAlign=f(h,"verticalAlign")||"middle",y.x=b*s+r.cx,y.y=b*l+r.cy;var I=f(h,"rotate"),j=0;"radial"===I?(j=Object(Ig["a"])(-a),j>Math.PI/2&&j<1.5*Math.PI&&(j+=Math.PI)):"tangential"===I?(j=Math.PI/2-a,j>Math.PI/2?j-=Math.PI:j<-Math.PI/2&&(j+=Math.PI)):g["z"](I)&&(j=I*Math.PI/180),y.rotation=Object(Ig["a"])(j)})),c.dirtyStyle()},e}(nt["a"]),Dg=Tg,Ag="sunburstRootToNode",kg="sunburstHighlight",Lg="sunburstUnhighlight";function Pg(t){t.registerAction({type:Ag,update:"updateView"},(function(t,e){function n(e,n){var i=Ea(t,[Ag],e);if(i){var r=e.getViewRoot();r&&(t.direction=Va(r,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}}e.eachComponent({mainType:"series",subType:"sunburst",query:t},n)})),t.registerAction({type:kg,update:"none"},(function(t,e,n){function i(e){var n=Ea(t,[kg],e);n&&(t.dataIndex=n.node.dataIndex)}t=Object(g["m"])({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},i),n.dispatchAction(Object(g["m"])(t,{type:"highlight"}))})),t.registerAction({type:Lg,update:"updateView"},(function(t,e,n){t=Object(g["m"])({},t),n.dispatchAction(Object(g["m"])(t,{type:"downplay"}))}))}var Ng=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n,i){var r=this;this.seriesModel=t,this.api=n,this.ecModel=e;var o=t.getData(),a=o.tree.root,s=t.getViewRoot(),l=this.group,u=t.get("renderLabelForZeroData"),c=[];s.eachNode((function(t){c.push(t)}));var d=this._oldChildren||[];function h(t,e){function n(t){return t.getId()}function i(n,i){var r=null==n?null:t[n],o=null==i?null:e[i];p(r,o)}0===t.length&&0===e.length||new rs["a"](e,t,n,n).add(i).update(i).remove(g["h"](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,t,e,n),o.setItemGraphicEl(i.dataIndex,r.piece)):f(r);else if(i){var s=new Dg(i,t,e,n);l.add(s),o.setItemGraphicEl(i.dataIndex,s)}}function f(t){t&&t.piece&&(l.remove(t.piece),t.piece=null)}function y(i,o){o.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,t,e,n):(r.virtualPiece=new Dg(i,t,e,n),l.add(r.virtualPiece)),o.piece.off("click"),r.virtualPiece.on("click",(function(t){r._rootToNode(o.parentNode)}))):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}h(c,d),y(a,s),this._initEvents(),this._oldChildren=c},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var n=!1,i=t.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece===e.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";Object(lt["k"])(a,s)}}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Ag,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var r=t[0]-i.cx,o=t[1]-i.cy,a=Math.sqrt(r*r+o*o);return a<=i.r&&a>=i.r0}},e.type="sunburst",e}(tt["a"]),Rg=Ng,Eg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return Object(l["a"])(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};zg(n);var i=this._levelModels=g["H"](t.levels||[],(function(t){return new ti["a"](t,this,e)}),this),r=Ra.createTree(n,this,o);function o(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e),o=i[n.depth];return o&&(t.parentModel=o),t}))}return r.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=Ba(i,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){Qa(this)},e.type="series.sunburst",e.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"},e}(c["b"]);function zg(t){var e=0;g["k"](t.children,(function(t){zg(t);var n=t.value;g["t"](n)&&(n=n[0]),e+=n}));var n=t.value;g["t"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),g["t"](t.value)?t.value[0]=n:t.value=n}var Vg=Eg,Bg=Math.PI/180;function Gg(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),i=t.get("radius");g["t"](i)||(i=[0,i]),g["t"](e)||(e=[e,e]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=Object(it["q"])(e[0],r),l=Object(it["q"])(e[1],o),u=Object(it["q"])(i[0],a/2),c=Object(it["q"])(i[1],a/2),d=-t.get("startAngle")*Bg,h=t.get("minAngle")*Bg,p=t.getData().tree.root,f=t.getViewRoot(),y=f.depth,m=t.get("sort");null!=m&&Hg(f,m);var v=0;g["k"](f.children,(function(t){!isNaN(t.getValue())&&v++}));var b=f.getValue(),x=Math.PI/(b||v)*2,_=f.depth>0,O=f.height-(_?-1:1),w=(c-u)/(O||1),S=t.get("clockwise"),M=t.get("stillShowZeroSum"),I=S?1:-1,j=function(e,n){if(e){var i=n;if(e!==p){var r=e.getValue(),o=0===b&&M?x:r*x;o1)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",e);return t.depth>1&&Object(g["C"])(o)&&(o=Object(ut["c"])(o,(t.depth-1)/(i-1)*.5)),o}t.eachSeriesByType("sunburst",(function(t){var e=t.getData(),i=e.tree;i.eachNode((function(r){var o=r.getModel(),a=o.getModel("itemStyle").getItemStyle();a.fill||(a.fill=n(r,t,i.root.height));var s=e.ensureUniqueItemVisual(r.dataIndex,"style");Object(g["m"])(s,a)}))}))}function qg(t){t.registerChartView(Rg),t.registerSeriesModel(Vg),t.registerLayout(Object(g["h"])(Gg,"sunburst")),t.registerProcessor(Object(g["h"])(De,"sunburst")),t.registerVisual(Wg),Pg(t)}var Ug={color:"fill",borderColor:"stroke"},Yg={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Xg=Object(H["o"])(),Zg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return Object(u["a"])(null,this)},e.prototype.getDataParams=function(e,n,i){var r=t.prototype.getDataParams.call(this,e,n);return i&&(r.info=Xg(i).info),r},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(c["b"]),Kg=Zg;function Jg(t,e){return e=e||[0,0],g["H"](["x","y"],(function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))}),this)}function $g(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:g["c"](Jg,t)}}}function Qg(t,e){return e=e||[0,0],g["H"]([0,1],(function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function ty(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:g["c"](Qg,t)}}}function ey(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function ny(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:Object(g["c"])(ey,t)}}}function iy(t,e){return e=e||[0,0],g["H"](["Radius","Angle"],(function(n,i){var r="get"+n+"Axis",o=this[r](),a=e[i],s=t[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 ry(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:g["c"](iy,t)}}}function oy(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}function ay(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||Object(g["q"])(t,"text")))}function sy(t,e,n){var i,r,o,a=t;if("text"===e)o=a;else{o={},Object(g["q"])(a,"text")&&(o.text=a.text),Object(g["q"])(a,"rich")&&(o.rich=a.rich),Object(g["q"])(a,"textFill")&&(o.fill=a.textFill),Object(g["q"])(a,"textStroke")&&(o.stroke=a.textStroke),Object(g["q"])(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Object(g["q"])(a,"fontSize")&&(o.fontSize=a.fontSize),Object(g["q"])(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Object(g["q"])(a,"fontWeight")&&(o.fontWeight=a.fontWeight),r={type:"text",style:o,silent:!0},i={};var s=Object(g["q"])(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),Object(g["q"])(a,"textPosition")&&(i.position=a.textPosition),Object(g["q"])(a,"textOffset")&&(i.offset=a.textOffset),Object(g["q"])(a,"textRotation")&&(i.rotation=a.textRotation),Object(g["q"])(a,"textDistance")&&(i.distance=a.textDistance)}return ly(o,t),Object(g["k"])(o.rich,(function(t){ly(t,t)})),{textConfig:i,textContent:r}}function ly(t,e){e&&(e.font=e.textFont||e.font,Object(g["q"])(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Object(g["q"])(e,"textAlign")&&(t.align=e.textAlign),Object(g["q"])(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Object(g["q"])(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Object(g["q"])(e,"textWidth")&&(t.width=e.textWidth),Object(g["q"])(e,"textHeight")&&(t.height=e.textHeight),Object(g["q"])(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),Object(g["q"])(e,"textPadding")&&(t.padding=e.textPadding),Object(g["q"])(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Object(g["q"])(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Object(g["q"])(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Object(g["q"])(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Object(g["q"])(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Object(g["q"])(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Object(g["q"])(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function uy(t,e,n){var i=t;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=t.fill||"#000";cy(i,e);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=t.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,Object(g["k"])(e.rich,(function(t){cy(t,t)})),i}function cy(t,e){e&&(Object(g["q"])(e,"fill")&&(t.textFill=e.fill),Object(g["q"])(e,"stroke")&&(t.textStroke=e.fill),Object(g["q"])(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Object(g["q"])(e,"font")&&(t.font=e.font),Object(g["q"])(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Object(g["q"])(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Object(g["q"])(e,"fontSize")&&(t.fontSize=e.fontSize),Object(g["q"])(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Object(g["q"])(e,"align")&&(t.textAlign=e.align),Object(g["q"])(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Object(g["q"])(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Object(g["q"])(e,"width")&&(t.textWidth=e.width),Object(g["q"])(e,"height")&&(t.textHeight=e.height),Object(g["q"])(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Object(g["q"])(e,"padding")&&(t.textPadding=e.padding),Object(g["q"])(e,"borderColor")&&(t.textBorderColor=e.borderColor),Object(g["q"])(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Object(g["q"])(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Object(g["q"])(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Object(g["q"])(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Object(g["q"])(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Object(g["q"])(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Object(g["q"])(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Object(g["q"])(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Object(g["q"])(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Object(g["q"])(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var dy=n("06ad"),hy={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},py=Object(g["F"])(hy),fy=(Object(g["N"])(Mo["a"],(function(t,e){return t[e]=1,t}),{}),Mo["a"].join(", "),["","style","shape","extra"]),gy=Object(H["o"])();function yy(t,e,n,i,r){var o=t+"Animation",a=Object(y["a"])(t,i,r)||{},s=gy(e).userDuring;return a.duration>0&&(a.during=s?Object(g["c"])(Iy,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),Object(g["m"])(a,n[o]),a}function my(t,e,n,i){i=i||{};var r=i.dataIndex,o=i.isInit,a=i.clearStyle,s=n.isAnimationEnabled(),l=gy(t),u=e.style;l.userDuring=e.during;var c={},d={};if(Dy(t,e,d),Cy("shape",e,d),Cy("extra",e,d),!o&&s&&(Ty(t,e,c),jy("shape",t,e,c),jy("extra",t,e,c),Ay(t,e,u,c)),d.style=u,_y(t,d,a),wy(t,e),s)if(o){var h={};Object(g["k"])(fy,(function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(h[t]=h[t]||{}),Object(g["m"])(t?h[t]:h,n.enterFrom))}));var p=yy("enter",t,e,n,r);p.duration>0&&t.animateFrom(h,p)}else Oy(t,e,r||0,n,c);vy(t,e),u?t.dirty():t.markRedraw()}function vy(t,e){for(var n=gy(t).leaveToProps,i=0;i0&&t.animateFrom(r,o)}}function wy(t,e){Object(g["q"])(e,"silent")&&(t.silent=e.silent),Object(g["q"])(e,"ignore")&&(t.ignore=e.ignore),t instanceof eo["c"]&&Object(g["q"])(e,"invisible")&&(t.invisible=e.invisible),t instanceof F["b"]&&Object(g["q"])(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var Sy={},My={setTransform:function(t,e){return Sy.el[t]=e,this},getTransform:function(t){return Sy.el[t]},setShape:function(t,e){var n=Sy.el,i=n.shape||(n.shape={});return i[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=Sy.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=Sy.el,i=n.style;return i&&(i[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=Sy.el.style;if(e)return e[t]},setExtra:function(t,e){var n=Sy.el.extra||(Sy.el.extra={});return n[t]=e,this},getExtra:function(t){var e=Sy.el.extra;if(e)return e[t]}};function Iy(){var t=this,e=t.el;if(e){var n=gy(e).userDuring,i=t.userDuring;n===i?(Sy.el=e,i(My)):t.el=t.userDuring=null}}function jy(t,e,n,i){var r=n[t];if(r){var o,a=e[t];if(a){var s=n.transition,l=r.transition;if(l)if(!o&&(o=i[t]={}),xy(l))Object(g["m"])(o,a);else for(var u=Object(H["r"])(l),c=0;c=0){!o&&(o=i[t]={});var p=Object(g["F"])(a);for(c=0;c=0)){var h=t.getAnimationStyleProps(),p=h?h.style:null;if(p){!r&&(r=i.style={});var f=Object(g["F"])(n);for(u=0;u=0?e.getStore().get(r,n):void 0}var o=e.get(i.name,n),a=i&&i.ordinalMeta;return a?a.categories[o]:o}function M(n,i){null==i&&(i=s);var r=e.getItemVisual(i,"style"),o=r&&r.fill,a=r&&r.opacity,l=b(i,zy).getItemStyle();null!=o&&(l.fill=o),null!=a&&(l.opacity=a);var u={inheritColor:Object(g["C"])(o)?o:"#000"},c=x(i,zy),d=w["c"](c,null,u,!1,!0);d.text=c.getShallow("show")?Object(g["P"])(t.getFormattedLabel(i,zy),_(e,i)):null;var h=w["b"](c,u,!1);return C(n,l),l=uy(l,d,h),n&&j(l,n),l.legacy=!0,l}function I(n,i){null==i&&(i=s);var r=b(i,Ey).getItemStyle(),o=x(i,Ey),a=w["c"](o,null,null,!0,!0);a.text=o.getShallow("show")?Object(g["Q"])(t.getFormattedLabel(i,Ey),t.getFormattedLabel(i,zy),_(e,i)):null;var l=w["b"](o,null,!0);return C(n,r),r=uy(r,a,l),n&&j(r,n),r.legacy=!0,r}function j(t,e){for(var n in e)Object(g["q"])(e,n)&&(t[n]=e[n])}function C(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}function T(t,n){if(null==n&&(n=s),Object(g["q"])(Ug,t)){var i=e.getItemVisual(n,"style");return i?i[Ug[t]]:null}if(Object(g["q"])(Yg,t))return e.getItemVisual(n,t)}function D(t){if("cartesian2d"===o.type){var e=o.getBaseAxis();return Object(Nt["b"])(Object(g["i"])({axis:e},t))}}function A(){return n.getCurrentSeriesIndices()}function k(t){return w["d"](t,n)}}function om(t){var e={};return Object(g["k"])(t.dimensions,(function(n){var i=t.getDimensionInfo(n);if(!i.isExtraCoord){var r=i.coordDim,o=e[r]=e[r]||[];o[i.coordDimIndex]=t.getDimensionIndex(n)}})),e}function am(t,e,n,i,r,o,a){if(i){var s=sm(t,e,n,i,r,o);return s&&a.setItemGraphicEl(n,s),s&&Object(b["J"])(s,i.focus,i.blurScope,i.emphasisDisabled),s}o.remove(e)}function sm(t,e,n,i,r,o){var a=-1,s=e;e&&lm(e,i,r)&&(a=Object(g["r"])(o.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=Qy(i),s&&Ky(s,u)),!1===i.morph?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Uy.normal.cfg=Uy.normal.conOpt=Uy.emphasis.cfg=Uy.emphasis.conOpt=Uy.blur.cfg=Uy.blur.conOpt=Uy.select.cfg=Uy.select.conOpt=null,Uy.isLegacy=!1,cm(u,n,i,r,l,Uy),um(u,n,i,r,l),tm(t,u,n,i,Uy,r,l),Object(g["q"])(i,"info")&&(Xg(u).info=i.info);for(var c=0;c=0?o.replaceAt(u,a):o.add(u),u}function lm(t,e,n){var i=Xg(t),r=e.type,o=e.shape,a=e.style;return n.isUniversalTransitionEnabled()||null!=r&&r!==i.customGraphicType||"path"===r&&_m(o)&&xm(o)!==i.customPathData||"image"===r&&Object(g["q"])(a,"image")&&a.image!==i.customImagePath}function um(t,e,n,i,r){var o=n.clipPath;if(!1===o)t&&t.getClipPath()&&t.removeClipPath();else if(o){var a=t.getClipPath();a&&lm(a,o,i)&&(a=null),a||(a=Qy(o),t.setClipPath(a)),tm(null,a,e,o,null,i,r)}}function cm(t,e,n,i,r,o){if(!t.isGroup){dm(n,null,o),dm(n,Ey,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=t.getTextContent();if(!1===a)c&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=Qy(a),t.setTextContent(c)),tm(null,c,e,a,null,i,r);for(var d=a&&a.style,h=0;h=c;p--){var f=e.childAt(p);gm(e,f,r)}}}function gm(t,e,n){e&&by(e,Xg(t).option,n)}function ym(t){new rs["a"](t.oldChildren,t.newChildren,mm,mm,t).add(vm).update(vm).remove(bm).execute()}function mm(t,e){var n=t&&t.name;return null!=n?n:qy+e}function vm(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,r=null!=e?n.oldChildren[e]:null;sm(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function bm(t){var e=this.context,n=e.oldChildren[t];n&&by(n,Xg(n).option,e.seriesModel)}function xm(t){return t&&(t.pathData||t.d)}function _m(t){return t&&(Object(g["q"])(t,"pathData")||Object(g["q"])(t,"d"))}function Om(t){t.registerChartView($y),t.registerSeriesModel(Kg)}var wm=Object(H["o"])(),Sm=g["d"],Mm=g["c"],Im=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,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,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var d=g["h"](jm,e,c);this.updatePointerEl(a,l,d),this.updateLabelEl(a,l,d,e)}else a=this._group=new h["a"],this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);Am(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.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=_i(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;if(r){var o=wm(t).pointerEl=new m[r.type](Sm(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=wm(t).labelEl=new G["a"](Sm(e.label));t.add(r),Tm(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=wm(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=wm(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),Tm(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,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||(e=!0,r=this._handle=m["createIcon"](o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){pr["g"](t.event)},onmousedown:Mm(this._onHandleDragMove,this,0,0),drift:Mm(this._onHandleDragMove,this),ondragend:Mm(this._onHandleDragEnd,this)}),i.add(r)),Am(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");g["t"](s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,Gt["b"](this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){jm(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Dm(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Dm(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Dm(i)),wm(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Gt["a"](this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}();function jm(t,e,n,i){Cm(wm(n).lastProp,i)||(wm(n).lastProp=i,e?y["h"](n,i,t):(n.stopAnimation(),n.attr(i)))}function Cm(t,e){if(g["A"](t)&&g["A"](e)){var n=!0;return g["k"](e,(function(e,i){n=n&&Cm(t[i],e)})),!!n}return t===e}function Tm(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Dm(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Am(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)}))}var km=Im;function Lm(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle(),e.fill=null):"shadow"===n&&(e=i.getAreaStyle(),e.stroke=null),e}function Pm(t,e,n,i,r){var o=n.get("value"),a=Rm(o,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=lt["i"](s.get("padding")||0),u=s.getFont(),c=qt["d"](a,u),d=r.position,h=c.width+l[1]+l[3],p=c.height+l[0]+l[2],f=r.align;"right"===f&&(d[0]-=h),"center"===f&&(d[0]-=h/2);var g=r.verticalAlign;"bottom"===g&&(d[1]-=p),"middle"===g&&(d[1]-=p/2),Nm(d,h,p,i);var y=s.get("backgroundColor");y&&"auto"!==y||(y=e.get(["axisLine","lineStyle","color"])),t.label={x:d[0],y:d[1],style:Object(w["c"])(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function Nm(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function Rm(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:Cn["c"](e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};g["k"](i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)})),g["C"](a)?o=a.replace("{value}",o):g["w"](a)&&(o=a(s))}return o}function Em(t,e,n){var i=An["c"]();return An["g"](i,i,n.rotation),An["i"](i,i,n.position),m["applyTransform"]([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function zm(t,e,n,i,r,o){var a=pi.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),Pm(e,i,r,o,{position:Em(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function Vm(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function Bm(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function Gm(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var Hm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["a"])(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=Fm(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=Lm(i),d=Wm[s](o,u,l);d.style=c,t.graphicKey=d.type,t.pointer=d}var h=Bn(a.model,n);zm(e,t,h,n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=Bn(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=Em(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=Fm(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,d=[c,c];d[l]=u[l];var h=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:d,tooltipOption:h[l]}},e}(km);function Fm(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var Wm={line:function(t,e,n){var i=Vm([e,n[0]],[e,n[1]],qm(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:Bm([e-i/2,n[0]],[i,r],qm(t))}}};function qm(t){return"x"===t.dim?0:1}var Um=Hm,Ym=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.type="axisPointer",e.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}},e}(pn["a"]),Xm=Ym,Zm=n("22d1"),Km=Object(H["o"])(),Jm=g["k"];function $m(t,e,n){if(!Zm["a"].node){var i=e.getZr();Km(i).records||(Km(i).records={}),Qm(i,e);var r=Km(i).records[t]||(Km(i).records[t]={});r.handler=n}}function Qm(t,e){function n(n,i){t.on(n,(function(n){var r=iv(e);Jm(Km(t).records,(function(t){t&&i(t,n,r.dispatchAction)})),tv(r.pendings,e)}))}Km(t).initialized||(Km(t).initialized=!0,n("click",g["h"](nv,"click")),n("mousemove",g["h"](nv,"mousemove")),n("globalout",ev))}function tv(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function ev(t,e,n){t.handler("leave",null,n)}function nv(t,e,n,i){e.handler(t,n,i)}function iv(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}function rv(t,e){if(!Zm["a"].node){var n=e.getZr(),i=(Km(n).records||{})[t];i&&(Km(n).records[t]=null)}}var ov=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";$m("axisPointer",n,(function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){rv("axisPointer",e)},e.prototype.dispose=function(t,e){rv("axisPointer",e)},e.type="axisPointer",e}(hn["a"]),av=ov;function sv(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=H["u"](o,t);if(null==a||a<0||g["t"](a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),d=c.dim,h=u.dim,p="x"===d||"radius"===d?1:0,f=o.mapDimension(h),y=[];y[p]=o.get(f,a),y[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(y)||[]}else i=l.dataToPoint(o.getValues(g["H"](l.dimensions,(function(t){return o.mapDimension(t)})),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 lv=Object(H["o"])();function uv(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||Object(g["c"])(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){bv(r)&&(r=sv({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=bv(r),u=o.axesInfo,c=s.axesInfo,d="leave"===i||bv(r),h={},p={},f={list:[],map:{}},y={showPointer:Object(g["h"])(hv,p),showTooltip:Object(g["h"])(pv,f)};Object(g["k"])(s.coordSysMap,(function(t,e){var n=l||t.containPoint(r);Object(g["k"])(s.coordSysAxesInfo[e],(function(t,e){var i=t.axis,o=mv(u,t);if(!d&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&cv(t,a,y,!1,h)}}))}));var m={};return Object(g["k"])(c,(function(t,e){var n=t.linkGroup;n&&!p[e]&&Object(g["k"])(n.axesInfo,(function(e,i){var r=p[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,vv(e),vv(t)))),m[t.key]=o}}))})),Object(g["k"])(m,(function(t,e){cv(c[e],t,y,!0,h)})),fv(p,c,h),gv(f,r,t,a),yv(c,a,n),h}}function cv(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=dv(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&Object(g["m"])(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function dv(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return Object(g["k"])(e.seriesModels,(function(e,l){var u,c,d=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var h=e.getAxisTooltipData(d,t,n);c=h.dataIndices,u=h.nestestValue}else{if(c=e.getData().indicesOfNearest(d[0],t,"category"===n.type?.5:null),!c.length)return;u=e.getData().get(d[0],c[0])}if(null!=u&&isFinite(u)){var p=t-u,f=Math.abs(p);f<=a&&((f=0&&s<0)&&(a=f,s=p,r=u,o.length=0),Object(g["k"])(c,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:r}}function hv(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function pv(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=Si(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.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 fv(t,e,n){var i=n.axesInfo=[];Object(g["k"])(e,(function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}function gv(t,e,n,i){if(!bv(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}function yv(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=lv(i)[r]||{},a=lv(i)[r]={};Object(g["k"])(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&Object(g["k"])(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];Object(g["k"])(o,(function(t,e){!a[e]&&l.push(t)})),Object(g["k"])(a,(function(t,e){!o[e]&&s.push(t)})),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 mv(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function vv(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function bv(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function xv(t){ji.registerAxisPointerClass("CartesianAxisPointer",Um),t.registerComponentModel(Xm),t.registerComponentView(av),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Object(g["t"])(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=fi(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},uv)}function _v(t){Object(i["a"])(Vi),Object(i["a"])(xv)}var Ov=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["a"])(e,t),e.prototype.makeElOption=function(t,e,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(e),c=i.get("type");if(c&&"none"!==c){var d=Lm(i),h=Sv[c](o,a,u,l);h.style=d,t.graphicKey=h.type,t.pointer=h}var p=i.get(["label","margin"]),f=wv(e,n,i,a,p);Pm(t,n,i,r,f)},e}(km);function wv(t,e,n,i,r){var o=e.axis,a=o.dataToCoord(t),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,d=i.getRadiusAxis().getExtent();if("radius"===o.dim){var h=An["c"]();An["g"](h,h,s),An["i"](h,h,[i.cx,i.cy]),l=m["applyTransform"]([a,-r],h);var p=e.getModel("axisLabel").get("rotate")||0,f=pi.innerTextLayout(s,p*Math.PI/180,-1);u=f.textAlign,c=f.textVerticalAlign}else{var g=d[1];l=i.coordToPoint([g+r,a]);var y=i.cx,v=i.cy;u=Math.abs(l[0]-y)/g<.3?"center":l[0]>y?"left":"right",c=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}var Sv={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:Vm(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var r=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:Gm(e.cx,e.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:Gm(e.cx,e.cy,n-r/2,n+r/2,0,2*Math.PI)}}},Mv=Ov,Iv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.findAxisModel=function(t){var e,n=this.ecModel;return n.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(pn["a"]),jv=Iv,Cv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["a"])(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",H["b"]).models[0]},e.type="polarAxis",e}(pn["a"]);g["K"](Cv,yn["a"]);var Tv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.type="angleAxis",e}(Cv),Dv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.type="radiusAxis",e}(Cv),Av=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return Object(l["a"])(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(En["a"]);Av.prototype.dataToRadius=En["a"].prototype.dataToCoord,Av.prototype.radiusToData=En["a"].prototype.coordToData;var kv=Av,Lv=Object(H["o"])(),Pv=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return Object(l["a"])(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),n=t.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],a=t.dataToCoord(o+1)-t.dataToCoord(o),s=Math.abs(a),l=qt["d"](null==o?"":o+"",e.getFont(),"center","top"),u=Math.max(l.height,7),c=u/s;isNaN(c)&&(c=1/0);var d=Math.max(0,Math.floor(c)),h=Lv(t.model),p=h.lastAutoInterval,f=h.lastTickCount;return null!=p&&null!=f&&Math.abs(p-d)<=1&&Math.abs(f-r)<=1&&p>d?d=p:(h.lastTickCount=r,h.lastAutoInterval=d),d},e}(En["a"]);Pv.prototype.dataToAngle=En["a"].prototype.dataToCoord,Pv.prototype.angleToData=En["a"].prototype.coordToData;var Nv=Pv,Rv=["radius","angle"],Ev=function(){function t(t){this.dimensions=Rv,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new kv,this._angleAxis=new Nv,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[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(e*e+n*n);e/=s,n/=s;var l=Math.atan2(-n,e)/Math.PI*180,u=la)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*e+this.cx,r=-Math.sin(n)*e+this.cy;return[i,r]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*r,endAngle:-i[1]*r,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,r=n*n+i*i-1e-4,o=this.r,a=this.r0;return r<=o*o&&r>=a*a}}},t.prototype.convertToPixel=function(t,e,n){var i=zv(e);return i===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=zv(e);return i===this?this.pointToData(n):null},t}();function zv(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var Vv=Ev;function Bv(t,e,n){var i=e.get("center"),r=n.getWidth(),o=n.getHeight();t.cx=Object(it["q"])(i[0],r),t.cy=Object(it["q"])(i[1],o);var a=t.getRadiusAxis(),s=Math.min(r,o)/2,l=e.get("radius");null==l?l=[0,"100%"]:g["t"](l)||(l=[0,l]);var u=[Object(it["q"])(l[0],s),Object(it["q"])(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function Gv(t,e){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var e=t.getData();g["k"](Object(Cn["d"])(e,"radius"),(function(t){r.scale.unionExtentFromData(e,t)})),g["k"](Object(Cn["d"])(e,"angle"),(function(t){i.scale.unionExtentFromData(e,t)}))}})),Object(Cn["i"])(i.scale,i.model),Object(Cn["i"])(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 Hv(t){return"angleAxis"===t.mainType}function Fv(t,e){if(t.type=e.get("type"),t.scale=Object(Cn["a"])(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),Hv(e)){t.inverse=t.inverse!==e.get("clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}var Wv={dimensions:Rv,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,i){var r=new Vv(i+"");r.update=Gv;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");Fv(o,s),Fv(a,l),Bv(r,t,e),n.push(r),t.coordinateSystem=r,r.model=t})),t.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",H["b"]).models[0];0,t.coordinateSystem=e.coordinateSystem}})),n}},qv=Wv,Uv=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Yv(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function Xv(t){var e=t.getRadiusAxis();return e.inverse?0:1}function Zv(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var Kv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return Object(l["a"])(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=g["H"](n.getViewLabels(),(function(t){t=g["d"](t);var e=n.scale,i="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(i),t}));Zv(s),Zv(o),g["k"](Uv,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||Jv[e](this.group,t,i,o,a,r,s)}),this)}},e.type="angleAxis",e}(ji),Jv={axisLine:function(t,e,n,i,r,o){var a,s=e.getModel(["axisLine","lineStyle"]),l=Xv(n),u=l?0:1;a=0===o[u]?new er["a"]({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new nr["a"]({shape:{cx:n.cx,cy:n.cy,r:o[l],r0:o[u]},style:s.getLineStyle(),z2:1,silent:!0}),a.style.fill=null,t.add(a)},axisTick:function(t,e,n,i,r,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[Xv(n)],u=g["H"](i,(function(t){return new Qn["a"]({shape:Yv(n,[l,l+s],t.coord)})}));t.add(m["mergePath"](u,{style:g["i"](a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[Xv(n)],c=[],d=0;df?"left":"right",b=Math.abs(p[1]-y)/h<.3?"middle":p[1]>y?"top":"bottom";if(s&&s[d]){var x=s[d];g["A"](x)&&x.textStyle&&(a=new ti["a"](x.textStyle,l,l.ecModel))}var _=new G["a"]({silent:pi.isLabelSilent(e),style:Object(w["c"])(a,{x:p[0],y:p[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:m,verticalAlign:b})});if(t.add(_),c){var O=pi.makeAxisEventDataBase(e);O.targetType="axisLabel",O.value=i.rawLabel,Object(v["a"])(_).eventData=O}}),this)},splitLine:function(t,e,n,i,r,o){var a=e.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d=0?"p":"n",I=x;v&&(i[s][S]||(i[s][S]={p:x,n:x}),I=i[s][S][M]);var j=void 0,C=void 0,T=void 0,D=void 0;if("radius"===d.dim){var A=d.dataToCoord(w)-x,k=o.dataToCoord(S);Math.abs(A)=D})}}}))}function lb(t){var e={};g["k"](t,(function(t,n){var i=t.getData(),r=t.coordinateSystem,o=r.getBaseAxis(),a=ab(r,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/i.count(),u=e[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;e[a]=u;var d=ob(t);c[d]||u.autoWidthCount++,c[d]=c[d]||{width:0,maxWidth:0};var h=Object(it["q"])(t.get("barWidth"),l),p=Object(it["q"])(t.get("barMaxWidth"),l),f=t.get("barGap"),g=t.get("barCategoryGap");h&&!c[d].width&&(h=Math.min(u.remainedWidth,h),c[d].width=h,u.remainedWidth-=h),p&&(c[d].maxWidth=p),null!=f&&(u.gap=f),null!=g&&(u.categoryGap=g)}));var n={};return g["k"](e,(function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=Object(it["q"])(t.categoryGap,r),a=Object(it["q"])(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),g["k"](i,(function(t,e){var n=t.maxWidth;n&&n=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},t.prototype.convertToPixel=function(t,e,n){var i=Ib(e);return i===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=Ib(e);return i===this?this.pointToData(n):null},t}();function Ib(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var jb=Mb;function Cb(t,e){var n=[];return t.eachComponent("singleAxis",(function(i,r){var o=new jb(i,t,e);o.name="single_"+r,o.resize(i,e),i.coordinateSystem=o,n.push(o)})),t.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",H["b"]).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),n}var Tb={create:Cb,dimensions:Sb},Db=Tb,Ab=["x","y"],kb=["width","height"],Lb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["a"])(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.coordinateSystem,s=Rb(a,1-Nb(o)),l=a.dataToPoint(e)[0],u=i.get("type");if(u&&"none"!==u){var c=Lm(i),d=Pb[u](o,l,s);d.style=c,t.graphicKey=d.type,t.pointer=d}var h=fb(n);zm(e,t,h,n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=fb(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=Em(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.coordinateSystem,a=Nb(r),s=Rb(o,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=Rb(o,1-a),c=(u[1]+u[0])/2,d=[c,c];return d[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},e}(km),Pb={line:function(t,e,n){var i=Vm([e,n[0]],[e,n[1]],Nb(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n){var i=t.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:Bm([e-i/2,n[0]],[i,r],Nb(t))}}};function Nb(t){return t.isHorizontal()?0:1}function Rb(t,e){var n=t.getRect();return[n[Ab[e]],n[Ab[e]]+n[kb[e]]]}var Eb=Lb,zb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.type="single",e}(hn["a"]);function Vb(t){Object(i["a"])(xv),ji.registerAxisPointerClass("SingleAxisPointer",Eb),t.registerComponentView(zb),t.registerComponentView(bb),t.registerComponentModel(_b),In(t,"single",_b,_b.defaultOption),t.registerCoordinateSystem("single",Db)}var Bb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.init=function(e,n,i){var r=Object(Se["f"])(e);t.prototype.init.apply(this,arguments),Gb(e,r)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),Gb(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.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}},e}(pn["a"]);function Gb(t,e){var n,i=t.cellSize;n=g["t"](i)?i:t.cellSize=[i,i],1===n.length&&(n[1]=n[0]);var r=g["H"]([0,1],(function(t){return Object(Se["j"])(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));Object(Se["h"])(t,e,{type:"box",ignoreSize:r})}var Hb=Bb,Fb=n("ef59"),Wb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,s,a,i),this._renderWeekText(t,s,o,a,i)},e.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new et["a"]({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(u)}},e.prototype._renderLines=function(t,e,n,i){var r=this,o=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){h(u.formatedDate),0===c&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var d=u.date;d.setMonth(d.getMonth()+1),u=o.getDateInfo(d)}function h(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}h(o.getNextNDay(e.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)},e.prototype._getEdgesPoints=function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},e.prototype._drawSplitline=function(t,e,n){var i=new Ae["a"]({z2:20,shape:{points:t},style:e});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,r=i.getDateInfo(e),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},e.prototype._formatterLabel=function(t,e){return Object(g["C"])(t)&&t?Object(lt["f"])(t,e):Object(g["w"])(t)?t(e):e.nameMap},e.prototype._yearTextPositionControl=function(t,e,n,i,r){var o=e[0],a=e[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]}}},e.prototype._renderYearText=function(t,e,n,i){var r=t.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,d={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},h=e.start.y;+e.end.y>+e.start.y&&(h=h+"-"+e.end.y);var p=r.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:h},g=this._formatterLabel(p,f),y=new G["a"]({z2:30,style:Object(w["c"])(r,{text:g})});y.attr(this._yearTextPositionControl(y,d[a],n,a,o)),i.add(y)}},e.prototype._monthTextPositionControl=function(t,e,n,i,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(o="center"),"start"===i&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,n,i){var r=t.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&&!Object(g["C"])(o)||(o&&(e=Object(Fb["d"])(o)||e),o=e.get(["time","monthAbbr"])||[]);var c="start"===s?0:1,d="horizontal"===n?0:1;a="start"===s?-a:a;for(var h="center"===l,p=0;p=i.start.time&&n.timea.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var i=Math.floor(n[1].time/Ub)-Math.floor(n[0].time/Ub)+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=e?1-u:u-1;return e&&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}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&ei.lweek)return null;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},t.create=function(e,n){var i=[];return e.eachComponent("calendar",(function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o})),e.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])})),i},t.dimensions=["time","value"],t}();function Xb(t){var e=t.calendarModel,n=t.seriesModel,i=e?e.coordinateSystem:n?n.coordinateSystem:null;return i}var Zb=Yb;function Kb(t){t.registerComponentModel(Hb),t.registerComponentView(qb),t.registerCoordinateSystem("calendar",Zb)}function Jb(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function $b(t,e){var n;return g["k"](e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}function Qb(t,e,n){var i=g["m"]({},n),r=t[e],o=n.$action||"merge";"merge"===o?r?(g["I"](r,i,!0),Object(Se["h"])(r,i,{ignoreSize:!0}),Object(Se["c"])(n,r),nx(n,r),nx(n,r,"shape"),nx(n,r,"style"),nx(n,r,"extra"),n.clipPath=r.clipPath):t[e]=i:"replace"===o?t[e]=i:"remove"===o&&r&&(t[e]=null)}var tx=["transition","enterFrom","leaveTo"],ex=tx.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function nx(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?tx:ex,r=0;r=0;l--){u=n[l],c=H["e"](u.id,null),d=null!=c?r.get(c):null;if(d){h=d.parent,m=ax(h);var v=h===i?{width:o,height:a}:{width:m.width,height:m.height},b={},x=Se["i"](d,u,v,null,{hv:u.hv,boundingMode:u.bounding},b);if(!ax(d).isNew&&x){for(var _=u.transition,O={},w=0;w=0)?O[S]=M:d[S]=M}Object(y["h"])(d,O,t,0)}else d.attr(b)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){cx(n,ax(n).option,e,t._lastGraphicModel)})),this._elMap=g["f"]()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(hn["a"]);function lx(t){var e=g["q"](ox,t)?ox[t]:m["getShapeClass"](t);var n=new e({});return ax(n).type=t,n}function ux(t,e,n,i){var r=lx(n);return e.add(r),i.set(t,r),ax(r).id=t,ax(r).isNew=!0,r}function cx(t,e,n,i){var r=t&&t.parent;r&&("group"===t.type&&t.traverse((function(t){cx(t,e,n,i)})),by(t,e,i),n.removeKey(ax(t).id))}function dx(t,e,n,i){t.isGroup||g["k"]([["cursor",eo["c"].prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];g["q"](e,i)?t[i]=g["P"](e[i],n[1]):null==t[i]&&(t[i]=n[1])})),g["k"](g["F"](e),(function(n){if(0===n.indexOf("on")){var i=e[n];t[n]=g["w"](i)?i:null}})),g["q"](e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}function hx(t){return t=g["m"]({},t),g["k"](["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Se["a"]),(function(e){delete t[e]})),t}function px(t,e,n){var i=Object(v["a"])(t).eventData;t.silent||t.ignore||i||(i=Object(v["a"])(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=n.info)}function fx(t){t.registerComponentModel(rx),t.registerComponentView(sx),t.registerPreprocessor((function(t){var e=t.graphic;Object(g["t"])(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}))}var gx=["x","y","radius","angle","single"],yx=["cartesian2d","polar","singleAxis"];function mx(t){var e=t.get("coordinateSystem");return Object(g["r"])(yx,e)>=0}function vx(t){return t+"Axis"}function bx(t,e){var n,i=Object(g["f"])(),r=[],o=Object(g["f"])();t.eachComponent({mainType:"dataZoom",query:e},(function(t){o.get(t.uid)||s(t)}));do{n=!1,t.eachComponent("dataZoom",a)}while(n);function a(t){!o.get(t.uid)&&l(t)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),r.push(t),u(t)}function l(t){var e=!1;return t.eachTargetAxis((function(t,n){var r=i.get(t);r&&r[n]&&(e=!0)})),e}function u(t){t.eachTargetAxis((function(t,e){(i.get(t)||i.set(t,[]))[e]=!0}))}return r}function xx(t){var e=t.ecModel,n={infoList:[],infoMap:Object(g["f"])()};return t.eachTargetAxis((function(t,i){var r=e.getComponent(vx(t),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 _x=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),Ox=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return Object(l["a"])(e,t),e.prototype.init=function(t,e,n){var i=wx(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=wx(t);Object(g["I"])(this.option,t,!0),Object(g["I"])(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;Object(g["k"])([["start","startValue"],["end","endValue"]],(function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=Object(g["f"])(),n=this._fillSpecifiedTargetAxis(e);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return Object(g["k"])(gx,(function(n){var i=this.getReferringComponents(vx(n),H["a"]);if(i.specified){e=!0;var r=new _x;Object(g["k"])(i.models,(function(t){r.add(t.componentIndex)})),t.set(n,r)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0;if(i){var r="vertical"===e?"y":"x",o=n.findComponents({mainType:r+"Axis"});a(o,r)}if(i){o=n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}});a(o,"single")}function a(e,n){var r=e[0];if(r){var o=new _x;if(o.add(r.componentIndex),t.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",H["b"]).models[0];a&&Object(g["k"])(e,(function(t){r.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",H["b"]).models[0]&&o.add(t.componentIndex)}))}}}i&&Object(g["k"])(gx,(function(e){if(i){var r=n.findComponents({mainType:vx(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var o=new _x;o.add(r[0].componentIndex),t.set(e,o),i=!1}}}),this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");Object(g["k"])([["start","startValue"],["end","endValue"]],(function(i,r){var o=null!=t[i[0]],a=null!=t[i[1]];o&&!a?e[r]="percent":!o&&a?e[r]="value":n?e[r]=n[r]:o&&(e[r]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(vx(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,i){Object(g["k"])(n.indexList,(function(n){t.call(e,i,n)}))}))},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(vx(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;Object(g["k"])([["start","startValue"],["end","endValue"]],(function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;Object(g["k"])(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;io[1];if(c&&!d&&!h)return!0;c&&(r=!0),d&&(e=!0),h&&(n=!0)}return r&&e&&n}))}else kx(i,(function(n){if("empty"===r)t.setData(e=e.map(n,(function(t){return a(t)?t:NaN})));else{var i={};i[n]=o,e.selectRange(i)}}));kx(i,(function(t){e.setApproximateExtent(o,t)}))}}))}function a(t){return t>=o[0]&&t<=o[1]}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;kx(["min","max"],(function(i){var r=e.get(i+"Span"),o=e.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=it["m"](n[0]+o,n,[0,100],!0):null!=r&&(o=it["m"](r,[0,100],n,!0)-n[0]),t[i+"Span"]=r,t[i+"ValueSpan"]=o}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=it["g"](n,[0,500]);i=Math.min(i,20);var r=t.axis.scale.rawExtentInfo;0!==e[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==e[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},t}();function Nx(t,e,n){var i=[1/0,-1/0];kx(n,(function(t){Object(Cn["k"])(i,t.getData(),e)}));var r=t.getAxisModel(),o=Object(Ax["a"])(r.axis.scale,r,i).calculate();return[o.min,o.max]}var Rx=Px,Ex={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,r){var o=t.getComponent(vx(i),r);e(i,r,o,n)}))}))}e((function(t,e,n,i){n.__dzAxisProxy=null}));var n=[];e((function(e,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new Rx(e,i,o,t),n.push(r.__dzAxisProxy))}));var i=Object(g["f"])();return Object(g["k"])(n,(function(t){Object(g["k"])(t.getTargetSeriesModels(),(function(t){i.set(t.uid,t)}))})),i},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,i){t.getAxisProxy(n,i).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}},zx=Ex;function Vx(t){t.registerAction("dataZoom",(function(t,e){var n=bx(e,t);Object(g["k"])(n,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}var Bx=!1;function Gx(t){Bx||(Bx=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,zx),Vx(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function Hx(t){t.registerComponentModel(Ix),t.registerComponentView(Dx),Gx(t)}var Fx=function(){function t(){}return t}(),Wx={};function qx(t,e){Wx[t]=e}function Ux(t){return Wx[t]}var Yx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;g["k"](this.option.feature,(function(t,n){var i=Ux(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),g["I"](t,i.defaultOption))}))},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.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"}},e}(pn["a"]),Xx=Yx;function Zx(t,e,n){var i=e.getBoxLayoutParams(),r=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=Object(Se["g"])(i,o,r);Object(Se["b"])(e.get("orient"),t,e.get("itemGap"),a.width,a.height),Object(Se["i"])(t,i,o,r)}function Kx(t,e){var n=lt["i"](e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new et["a"]({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1}),t}var Jx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n,i){var r=this.group;if(r.removeAll(),t.get("show")){var o=+t.get("itemSize"),a="vertical"===t.get("orient"),s=t.get("feature")||{},l=this._features||(this._features={}),u=[];g["k"](s,(function(t,e){u.push(e)})),new rs["a"](this._featureNames||[],u).add(c).update(c).remove(g["h"](c,null)).execute(),this._featureNames=u,Zx(r,t,n),r.add(Kx(r.getBoundingRect(),t)),a||r.eachChild((function(t){var e=t.__title,i=t.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=t.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!g["w"](l)&&e){var u=l.style||(l.style={}),c=qt["d"](e,G["a"].makeFont(u)),d=t.x+r.x,h=t.y+r.y+o,p=!1;h+c.height>n.getHeight()&&(a.position="top",p=!0);var f=p?-5-c.height:o+10;d+c.width/2>n.getWidth()?(a.position=["100%",f],u.align="right"):d-c.width/2<0&&(a.position=[0,f],u.align="left")}}))}function c(r,o){var a,c=u[r],h=u[o],p=s[c],f=new ti["a"](p,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===c&&(p.title=i.newTitle),c&&!h){if($x(c))a={onclick:f.option.onclick,featureName:c};else{var g=Ux(c);if(!g)return;a=new g}l[c]=a}else if(a=l[h],!a)return;a.uid=Object(zt["c"])("toolbox-feature"),a.model=f,a.ecModel=e,a.api=n;var y=a instanceof Fx;c||!h?!f.get("show")||y&&a.unusable?y&&a.remove&&a.remove(e,n):(d(f,a,c),f.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?b["r"]:b["C"])(i[t])},a instanceof Fx&&a.render&&a.render(f,e,n,i)):y&&a.dispose&&a.dispose(e,n)}function d(i,s,l){var u,c,d=i.getModel("iconStyle"),h=i.getModel(["emphasis","iconStyle"]),p=s instanceof Fx&&s.getIcons?s.getIcons():i.get("icon"),f=i.get("title")||{};g["C"](p)?(u={},u[l]=p):u=p,g["C"](f)?(c={},c[l]=f):c=f;var y=i.iconPaths={};g["k"](u,(function(l,u){var p=m["createIcon"](l,{},{x:-o/2,y:-o/2,width:o,height:o});p.setStyle(d.getItemStyle());var f=p.ensureState("emphasis");f.style=h.getItemStyle();var v=new G["a"]({style:{text:c[u],align:h.get("textAlign"),borderRadius:h.get("textBorderRadius"),padding:h.get("textPadding"),fill:null},ignore:!0});p.setTextContent(v),m["setTooltipConfig"]({el:p,componentModel:t,itemName:u,formatterParamsExtra:{title:c[u]}}),p.__title=c[u],p.on("mouseover",(function(){var e=h.getItemStyle(),i=a?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";v.setStyle({fill:h.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:h.get("textBackgroundColor")}),p.setTextConfig({position:h.get("textPosition")||i}),v.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",u])&&n.leaveEmphasis(this),v.hide()})),("emphasis"===i.get(["iconStatus",u])?b["r"]:b["C"])(p),r.add(p),p.on("click",g["c"](s.onclick,s,e,n,u)),y[u]=p}))}},e.prototype.updateView=function(t,e,n,i){g["k"](this._features,(function(t){t instanceof Fx&&t.updateView&&t.updateView(t.model,e,n,i)}))},e.prototype.remove=function(t,e){g["k"](this._features,(function(n){n instanceof Fx&&n.remove&&n.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){g["k"](this._features,(function(n){n instanceof Fx&&n.dispose&&n.dispose(t,e)}))},e.type="toolbox",e}(hn["a"]);function $x(t){return 0===t.indexOf("my")}var Qx=Jx,t_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["a"])(e,t),e.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",r="svg"===e.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",a=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=Zm["a"].browser;if(Object(g["w"])(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement("a");l.download=i+"."+o,l.target="_blank",l.href=a;var u=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(u)}else if(window.navigator.msSaveOrOpenBlob||r){var c=a.split(","),d=c[0].indexOf("base64")>-1,h=r?decodeURIComponent(c[1]):c[1];d&&(h=window.atob(h));var p=i+"."+o;if(window.navigator.msSaveOrOpenBlob){var f=h.length,y=new Uint8Array(f);while(f--)y[f]=h.charCodeAt(f);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var v=document.createElement("iframe");document.body.appendChild(v);var b=v.contentWindow,x=b.document;x.open("image/svg+xml","replace"),x.write(h),x.close(),b.focus(),x.execCommand("SaveAs",!0,p),document.body.removeChild(v)}}else{var _=n.get("lang"),O='',w=window.open();w.document.write(O),w.document.title=i}},e.getDefaultOption=function(t){var e={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:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return e},e}(Fx),e_=t_,n_="__ec_magicType_stack__",i_=[["line","bar"],["stack"]],r_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["a"])(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return g["k"](t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},e.getDefaultOption=function(t){var e={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:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return e},e.prototype.onclick=function(t,e,n){var i=this.model,r=i.get(["seriesIndex",n]);if(o_[n]){var o,a={series:[]},s=function(t){var e=t.subType,r=t.id,o=o_[n](e,r,t,i);o&&(g["i"](o,t.option),a.series.push(o));var s=t.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",d=t.getReferringComponents(c,H["b"]).models[0],h=d.componentIndex;a[c]=a[c]||[];for(var p=0;p<=h;p++)a[c][h]=a[c][h]||{};a[c][h].boundaryGap="bar"===n}}};g["k"](i_,(function(t){g["r"](t,n)>=0&&g["k"](t,(function(t){i.setIconStatus(t,"normal")}))})),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},s);var l=n;"stack"===n&&(o=g["I"]({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(l="tiled")),e.dispatchAction({type:"changeMagicType",currentType:l,newOption:a,newTitle:o,featureName:"magicType"})}},e}(Fx),o_={line:function(t,e,n,i){if("bar"===t)return g["I"]({id:e,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(t,e,n,i){if("line"===t)return g["I"]({id:e,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(t,e,n,i){var r=n.get("stack")===n_;if("line"===t||"bar"===t)return i.setIconStatus("stack",r?"normal":"emphasis"),g["I"]({id:e,stack:r?"":n_},i.get(["option","stack"])||{},!0)}};fr["c"]({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var a_=r_,s_=new Array(60).join("-"),l_="\t";function u_(t){var e={},n=[],i=[];return t.eachRawSeries((function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(t);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:i}}function c_(t){var e=[];return g["k"](t,(function(t,n){var i=t.categoryAxis,r=t.valueAxis,o=r.dim,a=[" "].concat(g["H"](t.series,(function(t){return t.name}))),s=[i.model.getCategories()];g["k"](t.series,(function(t){var e=t.getRawData();s.push(t.getRawData().mapArray(e.mapDimension(o),(function(t){return t})))}));for(var l=[a.join(l_)],u=0;u=0)return!0}var g_=new RegExp("["+l_+"]+","g");function y_(t){for(var e=t.split(/\n+/g),n=p_(e.shift()).split(g_),i=[],r=g["H"](n,(function(t){return{name:t,data:[]}})),o=0;o=0;r--){var o=n[r];if(o[i])break}if(r<0){var a=t.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(e)}function M_(t){var e=C_(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return O_(n,(function(t,n){for(var r=e.length-1;r>=0;r--)if(t=e[r][n],t){i[n]=t;break}})),i}function I_(t){w_(t).snapshots=null}function j_(t){return C_(t).length}function C_(t){var e=w_(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var T_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["a"])(e,t),e.prototype.onclick=function(t,e){I_(t),e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var e={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:t.getLocaleModel().get(["toolbox","restore","title"])};return e},e}(Fx);fr["c"]({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var D_=T_,A_=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],k_=function(){function t(t,e,n){var i=this;this._targetInfoList=[];var r=P_(e,t);Object(g["k"])(N_,(function(t,e){(!n||!n.include||Object(g["r"])(n.include,e)>=0)&&t(r,i._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=z_[t.brushType](0,n,e);t.__rangeOffset={offset:B_[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){Object(g["k"])(t,(function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&Object(g["k"])(i.coordSyses,(function(i){var r=z_[t.brushType](1,i,t.range,!0);n(t,r.values,i,e)}))}),this)},t.prototype.setInputRanges=function(t,e){Object(g["k"])(t,(function(t){var n=this.findTargetInfo(t,e);if(t.range=t.range||[],n&&!0!==n){t.panelId=n.panelId;var i=z_[t.brushType](0,n.coordSys,t.coordRange),r=t.__rangeOffset;t.range=r?B_[t.brushType](i.values,r.offset,H_(i.xyMinMax,r.xyMinMax)):i.values}}),this)},t.prototype.makePanelOpts=function(t,e){return Object(g["H"])(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:ah(i),isTargetByCursor:lh(i,t,n.coordSysModel),getLinearBrushOtherExtent:sh(i)}}))},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&Object(g["r"])(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=P_(e,t),r=0;rt[1]&&t.reverse(),t}function P_(t,e){return Object(H["s"])(t,e,{includeMainTypes:A_})}var N_={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,r=t.gridModels,o=Object(g["f"])(),a={},s={};(n||i||r)&&(Object(g["k"])(n,(function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0})),Object(g["k"])(i,(function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0})),Object(g["k"])(r,(function(t){o.set(t.id,t),a[t.id]=!0,s[t.id]=!0})),o.each((function(t){var r=t.coordinateSystem,o=[];Object(g["k"])(r.getCartesians(),(function(t,e){(Object(g["r"])(n,t.getAxis("x").model)>=0||Object(g["r"])(i,t.getAxis("y").model)>=0)&&o.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:E_.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){Object(g["k"])(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:E_.geo})}))}},R_=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],E_={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(m["getTransform"](t)),e}},z_={lineX:Object(g["h"])(V_,0),lineY:Object(g["h"])(V_,1),rect:function(t,e,n,i){var r=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),o=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),a=[L_([r[0],o[0]]),L_([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,i){var r=[[1/0,-1/0],[1/0,-1/0]],o=Object(g["H"])(n,(function(n){var o=t?e.pointToData(n,i):e.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 V_(t,e,n,i){var r=n.getAxis(["x","y"][t]),o=L_(Object(g["H"])([0,1],(function(t){return e?r.coordToData(r.toLocalCoord(i[t]),!0):r.toGlobalCoord(r.dataToCoord(i[t]))}))),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var B_={lineX:Object(g["h"])(G_,0),lineY:Object(g["h"])(G_,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return Object(g["H"])(t,(function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]}))}};function G_(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function H_(t,e){var n=F_(t),i=F_(e),r=[n[0]/i[0],n[1]/i[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function F_(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var W_=k_,q_=n("2f1f"),U_=g["k"],Y_=Object(H["p"])("toolbox-dataZoom_"),X_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new oh(n.getZr()),this._brushController.on("brush",g["c"](this._onBrush,this)).mount()),$_(t,e,this,i,n),J_(t,e)},e.prototype.onclick=function(t,e,n){Z_[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},i=this.ecModel;this._brushController.updateCovers([]);var r=new W_(K_(this.model),i,{include:["grid"]});r.matchOutputRanges(e,i,(function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(o("x",n,e[0]),o("y",n,e[1])):o({lineX:"x",lineY:"y"}[i],n,e)}})),S_(i,n),this._dispatchZoomAction(n)}function o(t,e,r){var o=e.getAxis(t),s=o.model,l=a(t,s,i),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(r=Wc(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(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var r=n.getAxisModel(t,e.componentIndex);r&&(i=n)})),i}},e.prototype._dispatchZoomAction=function(t){var e=[];U_(t,(function(t,n){e.push(g["d"](t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){var e={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:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return e},e}(Fx),Z_={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(M_(this.ecModel))}};function K_(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}function J_(t,e){t.setIconStatus("back",j_(e)>1?"emphasis":"normal")}function $_(t,e,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new W_(K_(t),e,{include:["grid"]}),s=a.makePanelOpts(r,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}Object(q_["b"])("dataZoom",(function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var i=e.getModel(n),r=[],o=K_(i),a=Object(H["s"])(t,o);return U_(a.xAxisModels,(function(t){return s(t,"xAxis","xAxisIndex")})),U_(a.yAxisModels,(function(t){return s(t,"yAxis","yAxisIndex")})),r}function s(t,e,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:Y_+e+o};a[n]=o,r.push(a)}}));var Q_=X_;function tO(t){t.registerComponentModel(Xx),t.registerComponentView(Qx),qx("saveAsImage",e_),qx("magicType",a_),qx("dataView",__),qx("dataZoom",Q_),qx("restore",D_),Object(i["a"])(Hx)}var eO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.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}},e}(pn["a"]),nO=eO,iO=n("65ed");function rO(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function oO(t){if(Zm["a"].domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n-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,d=s+r,h=d*Math.abs(Math.cos(c))+d*Math.abs(Math.sin(c)),p=Math.round(100*((h-Math.SQRT2*r)/2+Math.SQRT2*r-(h-d)/2))/100;l+=";"+a+":-"+p+"px";var f=e+" solid "+r+"px;",y=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+u+";","border-bottom:"+f,"border-right:"+f,"background-color:"+i+";"];return'
'}function gO(t,e){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+t/2+"s "+n,r="opacity"+i+",visibility"+i;return e||(i=" "+t+"s "+n,r+=Zm["a"].transformSupported?","+dO+i:",left"+i+",top"+i),cO+":"+r}function yO(t,e,n){var i=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!Zm["a"].transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=Zm["a"].transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+dO+":"+a+";":[["top",0],["left",0],[aO,a]]}function mO(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var r=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return r&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+r),Object(g["k"])(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}function vO(t,e,n){var i=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),d=Object(Xi["d"])(t,"html"),h=l+"px "+u+"px "+a+"px "+s;return i.push("box-shadow:"+h),e&&r&&i.push(gO(r,n)),o&&i.push("background-color:"+o),Object(g["k"])(["width","color","radius"],(function(e){var n="border-"+e,r=Object(lt["j"])(n),o=t.get(r);null!=o&&i.push(n+":"+o+("color"===e?"":"px"))})),i.push(mO(c)),null!=d&&i.push("padding:"+Object(lt["i"])(d).join("px ")+"px"),i.join(";")+";"}function bO(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&Object(iO["d"])(t,a,document.body,i,r)}else{t[0]=i,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var xO=function(){function t(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Zm["a"].wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;bO(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var a=this;i.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},i.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=r.handler,n=r.painter.getViewportRoot();Object(pr["e"])(n,t,!0),e.dispatch("mousemove",t)}},i.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e=this._container,n=uO(e,"position"),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative");var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=hO+vO(t,!this._firstShow,this._longHide)+yO(r[0],r[1],!0)+"border-color:"+Object(lt["c"])(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null!=t){var a="";if(Object(g["C"])(r)&&"item"===n.get("trigger")&&!rO(n)&&(a=fO(n,i,r)),Object(g["C"])(t))o.innerHTML=t+a;else if(t){o.innerHTML="",Object(g["t"])(t)||(t=[t]);for(var s=0;s=0?this._tryShow(n,i):"leave"===t&&this._hide(i))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.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(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!Zm["a"].node&&n.getDom()){var r=kO(i,n);this._ticket="";var o=i.dataByCoordSys,a=EO(i,e,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=TO;l.x=i.x,l.y=i.y,l.update(),Object(v["a"])(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(t,e,n,i))return;var u=sv(i,e),c=u.point[0],d=u.point[1];null!=c&&null!=d&&this._tryShow({offsetX:c,offsetY:d,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))}},e.prototype.manuallyHideTip=function(t,e,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(kO(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s){var l=s.getData(),u=AO([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}}},e.prototype._tryShow=function(t,e){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,t);else if(n){var o,a;this._lastDataByCoordSys=null,Object(Wo["a"])(n,(function(t){return null!=Object(v["a"])(t).dataIndex?(o=t,!0):null!=Object(v["a"])(t).tooltipConfig?(a=t,!0):void 0}),!0),o?this._showSeriesItemTooltip(t,o,e):a?this._showComponentItemTooltip(t,a,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Object(g["c"])(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=AO([e.tooltipOption],i),a=this._renderMode,s=[],l=Object(Xi["c"])("section",{blocks:[],noHeader:!0}),u=[],c=new Xi["a"];Object(g["k"])(t,(function(t){Object(g["k"])(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=Rm(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),d=Object(Xi["c"])("section",{header:o,noHeader:!Object(g["T"])(o),sortBlocks:!0,blocks:[]});l.blocks.push(d),Object(g["k"])(t.seriesDataIndices,(function(l){var h=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,f=h.getDataParams(p);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=Cn["c"](e.axis,{value:r}),f.axisValueLabel=o,f.marker=c.makeTooltipMarker("item",Object(lt["c"])(f.color),a);var y=Object(CO["b"])(h.formatTooltip(p,!0,null)),m=y.frag;if(m){var v=AO([h],i).get("valueFormatter");d.blocks.push(v?Object(g["m"])({valueFormatter:v},m):m)}y.text&&u.push(y.text),s.push(f)}}))}}))})),l.blocks.reverse(),u.reverse();var d=e.position,h=o.get("order"),p=Object(Xi["b"])(l,c,a,h,n.get("useUTC"),o.get("textStyle"));p&&u.unshift(p);var f="richText"===a?"\n\n":"
",y=u.join(f);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,d,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,y,s,Math.random()+"",r[0],r[1],d,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=Object(v["a"])(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,c=s.getData(u),d=this._renderMode,h=t.positionDefault,p=AO([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,h?{position:h}:null),f=p.get("trigger");if(null==f||"item"===f){var y=s.getDataParams(l,u),m=new Xi["a"];y.marker=m.makeTooltipMarker("item",Object(lt["c"])(y.color),d);var b=Object(CO["b"])(s.formatTooltip(l,!1,u)),x=p.get("order"),_=p.get("valueFormatter"),O=b.frag,w=O?Object(Xi["b"])(_?Object(g["m"])({valueFormatter:_},O):O,m,d,x,i.get("useUTC"),p.get("textStyle")):b.text,S="item_"+s.name+"_"+l;this._showOrMove(p,(function(){this._showTooltipContent(p,w,y,S,t.offsetX,t.offsetY,t.position,t.target,m)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i=Object(v["a"])(e),r=i.tooltipConfig,o=r.option||{};if(Object(g["C"])(o)){var a=o;o={content:a,formatter:a}}var s=[o],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=t.positionDefault,c=AO(s,this._tooltipModel,u?{position:u}:null),d=c.get("content"),h=Math.random()+"",p=new Xi["a"];this._showOrMove(c,(function(){var n=Object(g["d"])(c.get("formatterParams")||{});this._showTooltipContent(c,d,n,h,t.offsetX,t.offsetY,t.position,e,p)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var d=e,h=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")),p=h.color;if(c)if(Object(g["C"])(c)){var f=t.ecModel.get("useUTC"),y=Object(g["t"])(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;d=c,m&&(d=Object(jO["h"])(y.axisValue,d,f)),d=Object(lt["e"])(d,n,!0)}else if(Object(g["w"])(c)){var v=Object(g["c"])((function(e,i){e===this._ticket&&(u.setContent(i,l,t,p,a),this._updatePosition(t,a,r,o,u,n,s))}),this);this._ticket=i,d=c(n,i,v)}else d=c;u.setContent(d,l,t,p,a),u.show(t,p),this._updatePosition(t,a,r,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||Object(g["t"])(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:Object(g["t"])(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),c=t.get("align"),d=t.get("verticalAlign"),h=a&&a.getBoundingRect().clone();if(a&&h.applyTransform(a.transform),Object(g["w"])(e)&&(e=e([n,i],o,r.el,h,{viewSize:[s,l],contentSize:u.slice()})),Object(g["t"])(e))n=Object(it["q"])(e[0],s),i=Object(it["q"])(e[1],l);else if(Object(g["A"])(e)){var p=e;p.width=u[0],p.height=u[1];var f=Object(Se["g"])(p,{width:s,height:l});n=f.x,i=f.y,c=null,d=null}else if(Object(g["C"])(e)&&a){var y=NO(e,h,u,t.get("borderWidth"));n=y[0],i=y[1]}else{y=LO(n,i,r,s,l,c?null:20,d?null:20);n=y[0],i=y[1]}if(c&&(n-=RO(c)?u[0]/2:"right"===c?u[0]:0),d&&(i-=RO(d)?u[1]/2:"bottom"===d?u[1]:0),rO(t)){y=PO(n,i,r,s,l);n=y[0],i=y[1]}r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&Object(g["k"])(n,(function(n,o){var a=n.dataByAxis||[],s=t[o]||{},l=s.dataByAxis||[];r=r&&a.length===l.length,r&&Object(g["k"])(a,(function(t,n){var o=l[n]||{},a=t.seriesDataIndices||[],s=o.seriesDataIndices||[];r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===s.length,r&&Object(g["k"])(a,(function(t,e){var n=s[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),i&&Object(g["k"])(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!Zm["a"].node&&e.getDom()&&(Object(Gt["a"])(this,"_updatePosition"),this._tooltipContent.dispose(),rv("itemTooltip",e))},e.type="tooltip",e}(hn["a"]);function AO(t,e,n){var i,r=e.ecModel;n?(i=new ti["a"](n,r,r),i=new ti["a"](e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof ti["a"]&&(a=a.get("tooltip",!0)),Object(g["C"])(a)&&(a={formatter:a}),a&&(i=new ti["a"](a,i,r)))}return i}function kO(t,e){return t.dispatchAction||Object(g["c"])(e.dispatchAction,e)}function LO(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}function PO(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function NO(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+c+a;break;case"left":s=e.x-r-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}function RO(t){return"center"===t||"middle"===t}function EO(t,e,n){var i=Object(H["t"])(t).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o=Object(H["v"])(e,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(e){var n=Object(v["a"])(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s?{componentMainType:r,componentIndex:a.componentIndex,el:s}:void 0}}}var zO=DO;function VO(t){Object(i["a"])(xv),t.registerComponentModel(nO),t.registerComponentView(zO),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},g["L"]),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},g["L"])}var BO=["rect","polygon","keep","clear"];function GO(t,e){var n=Object(H["r"])(t?t.brush:[]);if(n.length){var i=[];g["k"](n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))}));var r=t&&t.toolbox;g["t"](r)&&(r=r[0]),r||(r={feature:{}},t.toolbox=[r]);var o=r.feature||(r.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,i),HO(s),e&&!s.length&&s.push.apply(s,BO)}}function HO(t){var e={};g["k"](t,(function(t){e[t]=1})),t.length=0,g["k"](e,(function(e,n){t.push(n)}))}var FO=n("0924"),WO=g["k"];function qO(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function UO(t,e,n){var i={};return WO(e,(function(e){var o=i[e]=r();WO(t[e],(function(t,i){if(Zs.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),o[i]=new Zs(r),"opacity"===i&&(r=g["d"](r),r.type="colorAlpha",o.__hidden.__alphaForOpacity=new Zs(r))}}))})),i;function r(){var t=function(){};t.prototype.__hidden=t.prototype;var e=new t;return e}}function YO(t,e,n){var i;g["k"](n,(function(t){e.hasOwnProperty(t)&&qO(e[t])&&(i=!0)})),i&&g["k"](n,(function(n){e.hasOwnProperty(n)&&qO(e[n])?t[n]=g["d"](e[n]):delete t[n]}))}function XO(t,e,n,i,r,o){var a,s={};function l(t){return Object(FO["a"])(n,a,t)}function u(t,e){Object(FO["c"])(n,a,t,e)}function c(t,c){a=null==o?t:c;var d=n.getRawDataItem(a);if(!d||!1!==d.visualMap)for(var h=i.call(r,t),p=e[h],f=s[h],g=0,y=f.length;ge[0][1]&&(e[0][1]=o[0]),o[1]e[1][1]&&(e[1][1]=o[1])}return e&&dw(e)}};function dw(t){return new rn["a"](t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var hw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new oh(e.getZr())).on("brush",g["c"](this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},e.prototype.updateTransform=function(t,e,n,i){rw(e),this._updateController(t,e,n,i)},e.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},e.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},e.prototype._updateController=function(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:g["d"](n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:g["d"](n),$from:e})},e.type="brush",e}(hn["a"]),pw=hw,fw="#ddd",gw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return Object(l["a"])(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&YO(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:fw},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=g["H"](t,(function(t){return yw(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=yw(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.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},e}(pn["a"]);function yw(t,e){return g["I"]({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new ti["a"](t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var mw=gw,vw=["rect","polygon","lineX","lineY","keep","clear"],bw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n){var i,r,o;e.eachComponent({mainType:"brush"},(function(t){i=t.brushType,r=t.brushOption.brushMode||"single",o=o||!!t.areas.length})),this._brushType=i,this._brushMode=r,g["k"](t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?o:e===i)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return g["k"](t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},e.prototype.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},e.getDefaultOption=function(t){var e={show:!0,type:vw.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:t.getLocaleModel().get(["toolbox","brush","title"])};return e},e}(Fx),xw=bw;function _w(t){t.registerComponentView(pw),t.registerComponentModel(mw),t.registerPreprocessor(GO),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,ow),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},g["L"]),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},g["L"]),qx("brush",xw)}var Ow=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return Object(l["a"])(e,t),e.type="title",e.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"}},e}(pn["a"]),ww=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=g["P"](t.get("textBaseline"),t.get("textVerticalAlign")),l=new G["a"]({style:Object(w["c"])(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),d=new G["a"]({style:Object(w["c"])(o,{text:c,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),h=t.get("link"),p=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!h&&!f,d.silent=!p&&!f,h&&l.on("click",(function(){Object(lt["k"])(h,"_"+t.get("target"))})),p&&d.on("click",(function(){Object(lt["k"])(p,"_"+t.get("subtarget"))})),Object(v["a"])(l).eventData=Object(v["a"])(d).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),c&&i.add(d);var y=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var b=Object(Se["g"])(m,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||(a=t.get("left")||t.get("right"),"middle"===a&&(a="center"),"right"===a?b.x+=b.width:"center"===a&&(b.x+=b.width/2)),s||(s=t.get("top")||t.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?b.y+=b.height:"middle"===s&&(b.y+=b.height/2),s=s||"top"),i.x=b.x,i.y=b.y,i.markRedraw();var x={align:a,verticalAlign:s};l.setStyle(x),d.setStyle(x),y=i.getBoundingRect();var _=b.margin,O=t.getItemStyle(["color","opacity"]);O.fill=t.get("backgroundColor");var S=new et["a"]({shape:{x:y.x-_[3],y:y.y-_[0],width:y.width+_[1]+_[3],height:y.height+_[0]+_[2],r:t.get("borderRadius")},style:O,subPixelOptimize:!0,silent:!0});i.add(S)}},e.type="title",e}(hn["a"]);function Sw(t){t.registerComponentModel(Ow),t.registerComponentView(ww)}var Mw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return Object(l["a"])(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],i=e.axisType,r=this._names=[];"category"===i?(t=[],Object(g["k"])(n,(function(e,n){var i,o=Object(H["e"])(Object(H["h"])(e),"");Object(g["A"])(e)?(i=Object(g["d"])(e),i.value=n):i=n,t.push(i),r.push(o)}))):t=n;var o={category:"ordinal",time:"time",value:"number"}[i]||"number",a=this._data=new qe["a"]([{name:"value",type:o}],this);a.initData(t,r)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.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:[]},e}(pn["a"]),Iw=Mw,jw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.type="timeline.slider",e.defaultOption=Object(zt["d"])(Iw.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:[]}),e}(Iw);Object(g["K"])(jw,CO["a"].prototype);var Cw=jw,Tw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.type="timeline",e}(hn["a"]),Dw=Tw,Aw=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i)||this;return o.type=r||"value",o}return Object(l["a"])(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(En["a"]),kw=Aw,Lw=n("18c0"),Pw=n("216a"),Nw=Math.PI,Rw=Object(H["o"])(),Ew=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,t);t.formatTooltip=function(t){var e=a.scale.getLabel({value:t});return Object(Xi["c"])("nameValue",{noName:!0,value:e})},Object(g["k"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](i,r,a,t)}),this),this._renderAxisLabel(i,o,a,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,i=t.get(["label","position"]),r=t.get("orient"),o=Vw(t,e);n=null==i||"auto"===i?"horizontal"===r?o.y+o.height/2=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:Nw/2},h="vertical"===r?o.height:o.width,p=t.getModel("controlStyle"),f=p.get("show",!0),y=f?p.get("itemSize"):0,m=f?p.get("itemGap"):0,v=y+m,b=t.get(["label","rotate"])||0;b=b*Nw/180;var x=p.get("position",!0),_=f&&p.get("showPlayBtn",!0),O=f&&p.get("showPrevBtn",!0),w=f&&p.get("showNextBtn",!0),S=0,M=h;"left"===x||"bottom"===x?(_&&(a=[0,0],S+=v),O&&(s=[S,0],S+=v),w&&(l=[M-y,0],M-=v)):(_&&(a=[M-y,0],M-=v),O&&(s=[0,0],S+=v),w&&(l=[M-y,0],M-=v));var I=[S,M];return t.get("inverse")&&I.reverse(),{viewRect:o,mainLength:h,orient:r,rotation:d[r],labelRotation:b,labelPosOpt:n,labelAlign:t.get(["label","align"])||u[r],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||c[r],playPosition:a,prevBtnPosition:s,nextBtnPosition:l,axisExtent:I,controlSize:y,controlGap:m}},e.prototype._position=function(t,e){var n=this._mainGroup,i=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var o=An["c"](),a=r.x,s=r.y+r.height;An["i"](o,o,[-a,-s]),An["g"](o,o,-Nw/2),An["i"](o,o,[a,s]),r=r.clone(),r.applyTransform(o)}var l=m(r),u=m(n.getBoundingRect()),c=m(i.getBoundingRect()),d=[n.x,n.y],h=[i.x,i.y];h[0]=d[0]=l[0][0];var p=t.labelPosOpt;if(null==p||Object(g["C"])(p)){var f="+"===p?0:1;v(d,u,l,1,f),v(h,c,l,1,1-f)}else{f=p>=0?0:1;v(d,u,l,1,f),h[1]=d[1]+p}function y(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function m(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function v(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}n.setPosition(d),i.setPosition(h),n.rotation=i.rotation=t.rotation,y(n),y(i)},e.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType"),r=zw(e,i);r.getTicks=function(){return n.mapArray(["value"],(function(t){return{value:t}}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var a=new kw("value",r,t.axisExtent,i);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new h["a"];return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new Qn["a"]({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:Object(g["m"])({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new Qn["a"]({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:Object(g["i"])({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],Object(g["k"])(a,(function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),d={x:a,y:0,onclick:Object(g["c"])(r._changeTimeline,r,t.value)},h=Gw(s,l,e,d);h.ensureState("emphasis").style=u.getItemStyle(),h.ensureState("progress").style=c.getItemStyle(),Object(b["o"])(h);var p=Object(v["a"])(h);s.get("tooltip")?(p.dataIndex=t.value,p.dataModel=i):p.dataIndex=p.dataModel=null,r._tickSymbols.push(h)}))},e.prototype._renderAxisLabel=function(t,e,n,i){var r=this,o=n.getLabelModel();if(o.get("show")){var a=i.getData(),s=n.getViewLabels();this._tickLabels=[],Object(g["k"])(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"]),d=n.dataToCoord(i.tickValue),h=new G["a"]({x:d,y:0,rotation:t.labelRotation-t.rotation,onclick:Object(g["c"])(r._changeTimeline,r,o),silent:!1,style:Object(w["c"])(l,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});h.ensureState("emphasis").style=Object(w["c"])(u),h.ensureState("progress").style=Object(w["c"])(c),e.add(h),Object(b["o"])(h),Rw(h).dataIndex=o,r._tickLabels.push(h)}))}},e.prototype._renderControl=function(t,e,n,i){var r=t.controlSize,o=t.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function c(t,n,l,u){if(t){var c=Object(qt["g"])(Object(g["P"])(i.get(["controlStyle",n+"BtnSize"]),r),r),d=[0,-c/2,c,c],h=Bw(i,n+"Icon",d,{x:t[0],y:t[1],originX:r/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});h.ensureState("emphasis").style=s,e.add(h),Object(b["o"])(h)}}c(t.nextBtnPosition,"next",Object(g["c"])(this._changeTimeline,this,u?"-":"+")),c(t.prevBtnPosition,"prev",Object(g["c"])(this._changeTimeline,this,u?"+":"-")),c(t.playPosition,l?"stop":"play",Object(g["c"])(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=Object(g["c"])(s._handlePointerDrag,s),t.ondragend=Object(g["c"])(s._handlePointerDragend,s),Hw(t,s._progressLine,o,n,i,!0)},onUpdate:function(t){Hw(t,s._progressLine,o,n,i)}};this._currentPointer=Gw(a,a,this._mainGroup,{},this._currentPointer,l)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],i=this._axis,r=it["c"](i.getExtent().slice());n>r[1]&&(n=r[1]),n=0&&(a[o]=+a[o].toFixed(h)),[a,d]}var sS={min:Object(g["h"])(aS,"min"),max:Object(g["h"])(aS,"max"),average:Object(g["h"])(aS,"average"),median:Object(g["h"])(aS,"median")};function lS(t,e){if(e){var n=t.getData(),i=t.coordinateSystem,r=i&&i.dimensions;if(!oS(e)&&!Object(g["t"])(e.coord)&&Object(g["t"])(r)){var o=uS(e,n,i,t);if(e=Object(g["d"])(e),e.type&&sS[e.type]&&o.baseAxis&&o.valueAxis){var a=Object(g["r"])(r,o.baseAxis.dim),s=Object(g["r"])(r,o.valueAxis.dim),l=sS[e.type](n,o.baseDataDim,o.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&Object(g["t"])(r))for(var u=e.coord,c=0;c<2;c++)sS[u[c]]&&(u[c]=fS(n,n.mapDimension(r[c]),u[c]));else e.coord=[];return e}}function uS(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(cS(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function cS(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}function dS(t,e){return!(t&&t.containData&&e.coord&&!rS(e))||t.containData(e.coord)}function hS(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!rS(e)&&!rS(n))||t.containZone(e.coord,n.coord)}function pS(t,e){return t?function(t,n,i,r){var o=r<2?t.coord&&t.coord[r]:t.value;return Object(iS["d"])(o,e[r])}:function(t,n,i,r){return Object(iS["d"])(t.value,e[r])}}function fS(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,(function(t,e){isNaN(t)||(i+=t,r++)})),i/r}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var gS=Object(H["o"])(),yS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.init=function(){this.markerGroupMap=Object(g["f"])()},e.prototype.render=function(t,e,n){var i=this,r=this.markerGroupMap;r.each((function(t){gS(t).keep=!1})),e.eachSeries((function(t){var r=tS.getMarkerModelFromSeries(t,i.type);r&&i.renderSeries(t,r,e,n)})),r.each((function(t){!gS(t).keep&&i.group.remove(t.group)}))},e.prototype.markKeep=function(t){gS(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;Object(g["k"])(t,(function(t){var i=tS.getMarkerModelFromSeries(t,n.type);if(i){var r=i.getData();r.eachItemGraphicEl((function(t){t&&(e?Object(b["q"])(t):Object(b["B"])(t))}))}}))},e.type="marker",e}(hn["a"]),mS=yS;function vS(t,e,n){var i=e.coordinateSystem;t.each((function(r){var o,a=t.getItemModel(r),s=it["q"](a.get("x"),n.getWidth()),l=it["q"](a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(i){var u=t.get(i.dimensions[0],r),c=t.get(i.dimensions[1],r);o=i.dataToPoint([u,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(r,o)}))}var bS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=tS.getMarkerModelFromSeries(t,"markPoint");e&&(vS(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new k),u=xS(r,t,e);e.setData(u),vS(e.getData(),t,i),u.each((function(t){var n=u.getItemModel(t),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Object(g["w"])(i)||Object(g["w"])(r)||Object(g["w"])(o)||Object(g["w"])(s)){var c=e.getRawValue(t),d=e.getDataParams(t);Object(g["w"])(i)&&(i=i(c,d)),Object(g["w"])(r)&&(r=r(c,d)),Object(g["w"])(o)&&(o=o(c,d)),Object(g["w"])(s)&&(s=s(c,d))}var h=n.getModel("itemStyle").getItemStyle(),p=Object(FO["b"])(a,"color");h.fill||(h.fill=p),u.setItemVisual(t,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:h})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(t){t.traverse((function(t){Object(v["a"])(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(mS);function xS(t,e,n){var i;i=t?Object(g["H"])(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(g["m"])(Object(g["m"])({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new qe["a"](i,n),o=Object(g["H"])(n.get("data"),Object(g["h"])(lS,e));t&&(o=Object(g["n"])(o,Object(g["h"])(dS,t)));var a=pS(!!t,i);return r.initData(o,null,a),r}var _S=bS;function OS(t){t.registerComponentModel(nS),t.registerComponentView(_S),t.registerPreprocessor((function(t){Kw(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))}var wS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markLine",e.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"},e}(tS),SS=wS,MS=Object(H["o"])(),IS=function(t,e,n,i){var r,o=t.getData();if(Object(g["t"])(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=e.getAxis(null!=i.yAxis?"y":"x"),l=Object(g["O"])(i.yAxis,i.xAxis);else{var u=uS(i,o,e,t);s=u.valueAxis;var c=Object(L["b"])(o,u.valueDataDim);l=fS(o,c,a)}var d="x"===s.dim?0:1,h=1-d,p=Object(g["d"])(i),f={coord:[]};p.type=null,p.coord=[],p.coord[h]=-1/0,f.coord[h]=1/0;var y=n.get("precision");y>=0&&Object(g["z"])(l)&&(l=+l.toFixed(Math.min(y,20))),p.coord[d]=f.coord[d]=l,r=[p,f,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var m=[lS(t,r[0]),lS(t,r[1]),Object(g["m"])({},r[2])];return m[2].type=m[2].type||null,Object(g["I"])(m[2],m[0]),Object(g["I"])(m[2],m[1]),m};function jS(t){return!isNaN(t)&&!isFinite(t)}function CS(t,e,n,i){var r=1-t,o=i.dimensions[t];return jS(e[r])&&jS(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function TS(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(CS(1,n,i,t)||CS(0,n,i,t)))return!0}return dS(t,e[0])&&dS(t,e[1])}function DS(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=it["q"](s.get("x"),r.getWidth()),u=it["q"](s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=a.dimensions,d=t.get(c[0],e),h=t.get(c[1],e);o=a.dataToPoint([d,h])}if(st(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");c=a.dimensions;jS(t.get(c[0],e))?o[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):jS(t.get(c[1],e))&&(o[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}var AS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=tS.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),r=MS(e).from,o=MS(e).to;r.each((function(e){DS(r,e,!0,t,n),DS(o,e,!1,t,n)})),i.each((function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new Su);this.group.add(l.group);var u=kS(r,t,e),c=u.from,d=u.to,h=u.line;MS(e).from=c,MS(e).to=d,e.setData(h);var p=e.get("symbol"),f=e.get("symbolSize"),y=e.get("symbolRotate"),m=e.get("symbolOffset");function b(e,n,r){var o=e.getItemModel(n);DS(e,n,r,t,i);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Object(FO["b"])(a,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:Object(g["P"])(o.get("symbolOffset",!0),m[r?0:1]),symbolRotate:Object(g["P"])(o.get("symbolRotate",!0),y[r?0:1]),symbolSize:Object(g["P"])(o.get("symbolSize"),f[r?0:1]),symbol:Object(g["P"])(o.get("symbol",!0),p[r?0:1]),style:s})}Object(g["t"])(p)||(p=[p,p]),Object(g["t"])(f)||(f=[f,f]),Object(g["t"])(y)||(y=[y,y]),Object(g["t"])(m)||(m=[m,m]),u.from.each((function(t){b(c,t,!0),b(d,t,!1)})),h.each((function(t){var e=h.getItemModel(t).getModel("lineStyle").getLineStyle();h.setItemLayout(t,[c.getItemLayout(t),d.getItemLayout(t)]),null==e.stroke&&(e.stroke=c.getItemVisual(t,"style").fill),h.setItemVisual(t,{fromSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(t,"symbolOffset"),fromSymbolRotate:c.getItemVisual(t,"symbolRotate"),fromSymbolSize:c.getItemVisual(t,"symbolSize"),fromSymbol:c.getItemVisual(t,"symbol"),toSymbolKeepAspect:d.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:d.getItemVisual(t,"symbolOffset"),toSymbolRotate:d.getItemVisual(t,"symbolRotate"),toSymbolSize:d.getItemVisual(t,"symbolSize"),toSymbol:d.getItemVisual(t,"symbol"),style:e})})),l.updateData(h),u.line.eachItemGraphicEl((function(t){Object(v["a"])(t).dataModel=e,t.traverse((function(t){Object(v["a"])(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(mS);function kS(t,e,n){var i;i=t?Object(g["H"])(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(g["m"])(Object(g["m"])({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new qe["a"](i,n),o=new qe["a"](i,n),a=new qe["a"]([],n),s=Object(g["H"])(n.get("data"),Object(g["h"])(IS,e,t,n));t&&(s=Object(g["n"])(s,Object(g["h"])(TS,t)));var l=pS(!!t,i);return r.initData(Object(g["H"])(s,(function(t){return t[0]})),null,l),o.initData(Object(g["H"])(s,(function(t){return t[1]})),null,l),a.initData(Object(g["H"])(s,(function(t){return t[2]}))),a.hasItemOption=!0,{from:r,to:o,line:a}}var LS=AS;function PS(t){t.registerComponentModel(SS),t.registerComponentView(LS),t.registerPreprocessor((function(t){Kw(t.series,"markLine")&&(t.markLine=t.markLine||{})}))}var NS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(tS),RS=NS,ES=Object(H["o"])(),zS=function(t,e,n,i){var r=i[0],o=i[1];if(r&&o){var a=lS(t,r),s=lS(t,o),l=a.coord,u=s.coord;l[0]=Object(g["O"])(l[0],-1/0),l[1]=Object(g["O"])(l[1],-1/0),u[0]=Object(g["O"])(u[0],1/0),u[1]=Object(g["O"])(u[1],1/0);var c=Object(g["J"])([{},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 VS(t){return!isNaN(t)&&!isFinite(t)}function BS(t,e,n,i){var r=1-t;return VS(e[r])&&VS(n[r])}function GS(t,e){var n=e.coord[0],i=e.coord[1],r={coord:n,x:e.x0,y:e.y0},o={coord:i,x:e.x1,y:e.y1};return st(t,"cartesian2d")?!(!n||!i||!BS(1,n,i,t)&&!BS(0,n,i,t))||hS(t,r,o):dS(t,r)||dS(t,o)}function HS(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=it["q"](s.get(n[0]),r.getWidth()),u=it["q"](s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition){var c=t.getValues(["x0","y0"],e),d=t.getValues(["x1","y1"],e),h=a.clampData(c),p=a.clampData(d),f=[];"x0"===n[0]?f[0]=h[0]>p[0]?d[0]:c[0]:f[0]=h[0]>p[0]?c[0]:d[0],"y0"===n[1]?f[1]=h[1]>p[1]?d[1]:c[1]:f[1]=h[1]>p[1]?c[1]:d[1],o=i.getMarkerPosition(f,n,!0)}else{var g=t.get(n[0],e),y=t.get(n[1],e),m=[g,y];a.clampData&&a.clampData(m,m),o=a.dataToPoint(m,!0)}if(st(a,"cartesian2d")){var v=a.getAxis("x"),b=a.getAxis("y");g=t.get(n[0],e),y=t.get(n[1],e);VS(g)?o[0]=v.toGlobalCoord(v.getExtent()["x0"===n[0]?0:1]):VS(y)&&(o[1]=b.toGlobalCoord(b.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var FS=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],WS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=tS.getMarkerModelFromSeries(t,"markArea");if(e){var i=e.getData();i.each((function(e){var r=Object(g["H"])(FS,(function(r){return HS(i,e,r,t,n)}));i.setItemLayout(e,r);var o=i.getItemGraphicEl(e);o.setShape("points",r)}))}}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new h["a"]});this.group.add(l.group),this.markKeep(l);var u=qS(r,t,e);e.setData(u),u.each((function(e){var n=Object(g["H"])(FS,(function(n){return HS(u,e,n,t,i)})),o=r.getAxis("x").scale,s=r.getAxis("y").scale,l=o.getExtent(),c=s.getExtent(),d=[o.parse(u.get("x0",e)),o.parse(u.get("x1",e))],h=[s.parse(u.get("y0",e)),s.parse(u.get("y1",e))];it["c"](d),it["c"](h);var p=!(l[0]>d[1]||l[1]h[1]||c[1]=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.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}},e}(pn["a"]),KS=ZS,JS=g["h"],$S=g["k"],QS=h["a"],tM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return Object(l["a"])(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new QS),this.group.add(this._selectorGroup=new QS),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(r,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=t.get("padding"),d=Se["g"](l,u,c),h=this.layoutInner(t,r,d,i,a,s),p=Se["g"](g["i"]({width:h.width,height:h.height},l),u,c);this.group.x=p.x-h.x,this.group.y=p.y-h.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Kx(h,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,i,r,o,a){var s=this.getContentGroup(),l=g["f"](),u=e.get("selectedMode"),c=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&c.push(t.id)})),$S(e.getData(),(function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var d=new QS;return d.newline=!0,void s.add(d)}var h=n.getSeriesByName(a)[0];if(!l.get(a)){if(h){var p=h.getData(),f=p.getVisual("legendLineStyle")||{},y=p.getVisual("legendIcon"),m=p.getVisual("style"),v=this._createItem(h,a,o,r,e,t,f,m,y,u,i);v.on("click",JS(iM,a,null,i,c)).on("mouseover",JS(oM,h.name,null,i,c)).on("mouseout",JS(aM,h.name,null,i,c)),l.set(a,!0)}else n.eachRawSeries((function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var d=s.indexOfName(a),h=s.getItemVisual(d,"style"),p=s.getItemVisual(d,"legendIcon"),f=Object(ut["g"])(h.fill);f&&0===f[3]&&(f[3]=.2,h=g["m"](g["m"]({},h),{fill:Object(ut["h"])(f,"rgba")}));var y=this._createItem(n,a,o,r,e,t,{},h,p,u,i);y.on("click",JS(iM,null,a,i,c)).on("mouseover",JS(oM,null,a,i,c)).on("mouseout",JS(aM,null,a,i,c)),l.set(a,!0)}}),this);0}}),this),r&&this._createSelector(r,e,i,o,a)},e.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();$S(t,(function(t){var i=t.type,r=new G["a"]({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});o.add(r);var a=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);Object(w["g"])(r,{normal:a,emphasis:s},{defaultText:t.title}),Object(b["o"])(r)}))},e.prototype._createItem=function(t,e,n,i,r,o,a,s,l,u,c){var d=t.visualDrawType,h=r.get("itemWidth"),p=r.get("itemHeight"),f=r.isSelected(e),y=i.get("symbolRotate"),v=i.get("symbolKeepAspect"),x=i.get("icon");l=x||l||"roundRect";var _=eM(l,i,a,s,d,f,c),O=new QS,S=i.getModel("textStyle");if(!g["w"](t.getLegendIcon)||x&&"inherit"!==x){var M="inherit"===x&&t.getData().getVisual("symbol")?"inherit"===y?t.getData().getVisual("symbolRotate"):y:0;O.add(nM({itemWidth:h,itemHeight:p,icon:l,iconRotate:M,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:v}))}else O.add(t.getLegendIcon({itemWidth:h,itemHeight:p,icon:l,iconRotate:y,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:v}));var I="left"===o?h+5:-5,j=o,C=r.get("formatter"),T=e;g["C"](C)&&C?T=C.replace("{name}",null!=e?e:""):g["w"](C)&&(T=C(e));var D=f?S.getTextColor():i.get("inactiveColor");O.add(new G["a"]({style:Object(w["c"])(S,{text:T,x:I,y:p/2,fill:D,align:j,verticalAlign:"middle"},{inheritColor:D})}));var A=new et["a"]({shape:O.getBoundingRect(),invisible:!0}),k=i.getModel("tooltip");return k.get("show")&&m["setTooltipConfig"]({el:A,componentModel:r,itemName:e,itemTooltipOption:k.option}),O.add(A),O.eachChild((function(t){t.silent=!0})),A.silent=!u,this.getContentGroup().add(O),Object(b["o"])(O),O.__legendDataIndex=n,O},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();Se["b"](t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){Se["b"]("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),d=[-c.x,-c.y],h=t.get("selectorButtonGap",!0),p=t.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",y=0===p?"y":"x";"end"===o?d[p]+=l[f]+h:u[p]+=c[f]+h,d[1-p]+=l[g]/2-c[g]/2,s.x=d[0],s.y=d[1],a.x=u[0],a.y=u[1];var m={x:0,y:0};return m[f]=l[f]+h+c[f],m[g]=Math.max(l[g],c[g]),m[y]=Math.min(0,c[y]+d[1-p]),m}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(hn["a"]);function eM(t,e,n,i,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),$S(t,(function(n,i){"inherit"===t[i]&&(t[i]=e[i])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",d=l.getShallow("decal");u.decal=d&&"inherit"!==d?Object(to["a"])(d,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 h=e.getModel("lineStyle"),p=h.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=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=h.get("inactiveColor"),p.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}function nM(t){var e=t.icon||"roundRect",n=Object(d["a"])(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function iM(t,e,n,i){aM(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),oM(t,e,n,i)}function rM(t){var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;while(in[r],f=[-d.x,-d.y];e||(f[i]=l[s]);var m=[0,0],v=[-h.x,-h.y],b=g["P"](t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var x=t.get("pageButtonPosition",!0);"end"===x?v[i]+=n[r]-h[r]:m[i]+=h[r]+b}v[1-i]+=d[o]/2-h[o]/2,l.setPosition(f),u.setPosition(m),c.setPosition(v);var _={x:0,y:0};if(_[r]=p?n[r]:d[r],_[o]=Math.max(d[o],h[o]),_[a]=Math.min(0,h[a]+v[1-i]),u.__rectSize=n[r],p){var O={x:0,y:0};O[r]=Math.max(n[r]-h[r]-b,0),O[o]=_[o],u.setClipPath(new et["a"]({shape:O})),u.__rectSize=O[r]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(t);return null!=w.pageIndex&&y["h"](l,{x:w.contentPosition[0],y:w.contentPosition[1]},p?t:null),this._updatePageInfoView(t,w),_},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;g["k"](["pagePrev","pageNext"],(function(i){var r=i+"DataIndex",o=null!=e[r],a=n.childOfName(i);a&&(a.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",g["C"](r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=yM[r],a=mM[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,d=c?1:0,h={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return h;var p=v(u);h.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&&!b(m,g.s))&&(g=y.i>g.i?y:m,g&&(null==h.pageNextDataIndex&&(h.pageNextDataIndex=g.i),++h.pageCount)),y=m;for(f=s-1,g=p,y=p,m=null;f>=-1;--f)m=v(l[f]),m&&b(y,m.s)||!(g.i=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,n,i=this.getContentGroup();return i.eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)})),null!=e?e:n},e.type="legend.scroll",e}(sM),bM=vM;function xM(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}function _M(t){Object(i["a"])(dM),t.registerComponentModel(fM),t.registerComponentView(bM),xM(t)}function OM(t){Object(i["a"])(dM),Object(i["a"])(_M)}var wM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.type="dataZoom.inside",e.defaultOption=Object(zt["d"])(Sx.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Sx),SM=wM,MM=Object(H["o"])();function IM(t,e,n){MM(t).coordSysRecordMap.each((function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)}))}function jM(t,e){for(var n=MM(t).coordSysRecordMap,i=n.keys(),r=0;ri[n+e]&&(e=a),r=r&&o.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}function LM(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=MM(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=Object(g["f"])());i.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){var n=xx(t);Object(g["k"])(n.infoList,(function(n){var r=n.model.uid,o=i.get(r)||i.set(r,TM(e,n.model)),a=o.dataZoomInfoMap||(o.dataZoomInfoMap=Object(g["f"])());a.set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),i.each((function(t){var e,n=t.controller,r=t.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(e=r.get(o))}if(e){var a=kM(r);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),Gt["b"](t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else CM(i,t)}))}))}var PM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return Object(l["a"])(e,t),e.prototype.render=function(e,n,i){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),IM(i,e,{pan:Object(g["c"])(NM.pan,this),zoom:Object(g["c"])(NM.zoom,this),scrollMove:Object(g["c"])(NM.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){jM(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(Cx),NM={zoom:function(t,e,n,i){var r=this.range,o=r.slice(),a=t.axisModels[0];if(a){var s=EM[e](null,[i.originX,i.originY],a,n,t),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 Wc(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:RM((function(t,e,n,i,r,o){var a=EM[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:RM((function(t,e,n,i,r,o){var a=EM[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n);return a.signal*(t[1]-t[0])*o.scrollDelta}))};function RM(t){return function(e,n,i,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s){var l=t(a,s,e,n,i,r);return Wc(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}var EM={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},zM=PM;function VM(t){Gx(t),t.registerComponentModel(SM),t.registerComponentView(zM),LM(t)}var BM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Object(zt["d"])(Sx.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Sx),GM=BM,HM=et["a"],FM=7,WM=1,qM=30,UM=7,YM="horizontal",XM="vertical",ZM=5,KM=["line","bar","candlestick","scatter"],JM={easing:"cubicOut",duration:100,delay:0},$M=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return Object(l["a"])(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=Object(g["c"])(this._onBrush,this),this._onBrushEnd=Object(g["c"])(this._onBrushEnd,this)},e.prototype.render=function(e,n,i,r){if(t.prototype.render.apply(this,arguments),Gt["b"](this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Gt["a"](this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new h["a"];this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect"),i=n?UM:0,r=this._findCoordRect(),o={width:e.getWidth(),height:e.getHeight()},a=this._orient===YM?{right:o.width-r.x-r.width,top:o.height-qM-FM-i,width:r.width,height:qM}:{right:FM,top:r.y,width:qM,height:r.height},s=Se["f"](t.option);Object(g["k"])(["right","top","width","height"],(function(t){"ph"===s[t]&&(s[t]=a[t])}));var l=Se["g"](s,o);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===XM&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=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!==YM||r?n===YM&&r?{scaleY:a?1:-1,scaleX:-1}:n!==XM||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=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new HM({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new HM({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:Object(g["c"])(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)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,r=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),a=o&&r.getDimensionInfo(o)?i.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||a!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var u=r.getDataExtent(a),c=.3*(u[1]-u[0]);u=[u[0]-c,u[1]+c];var d,p=[0,e[1]],f=[0,e[0]],g=[[e[0],0],[0,0]],y=[],m=f[1]/(r.count()-1),v=0,b=Math.round(r.count()/e[0]);r.each([a],(function(t,e){if(b>0&&e%b)v+=m;else{var n=null==t||isNaN(t)||""===t,i=n?0:Object(it["m"])(t,u,p,!0);n&&!d&&e?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!n&&d&&(g.push([v,0]),y.push([v,0])),g.push([v,i]),y.push([v,i]),v+=m,d=n}})),s=this._shadowPolygonPts=g,l=this._shadowPolylinePts=y}this._shadowData=r,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var x=this.dataZoomModel,_=0;_<3;_++){var O=w(1===_);this._displayables.sliderGroup.add(O),this._displayables.dataShadowSegs.push(O)}}}function w(t){var e=x.getModel(t?"selectedDataBackground":"dataBackground"),n=new h["a"],i=new qi["a"]({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new Ae["a"]({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,i=this.ecModel;return t.eachTargetAxis((function(r,o){var a=t.getAxisProxy(r,o).getTargetSeriesModels();Object(g["k"])(a,(function(t){if(!n&&!(!0!==e&&Object(g["r"])(KM,t.get("type"))<0)){var a,s=i.getComponent(vx(r),o).axis,l=QM(r),u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:r,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.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=e.filler=new HM({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(c),r.add(new HM({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:WM,fill:"rgba(0,0,0,0)"}})),Object(g["k"])([0,1],(function(e){var o=a.get("handleIcon");!d["d"][o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=Object(d["a"])(o,-1,0,2,2,null,!0);s.attr({cursor:tI(this._orient),draggable:!0,drift:Object(g["c"])(this._onDragMove,this,e),ondragend:Object(g["c"])(this._onDragEnd,this),onmouseover:Object(g["c"])(this._showDataInfo,this,!0),onmouseout:Object(g["c"])(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=Object(it["q"])(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(),Object(b["o"])(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),r.add(n[e]=s);var h=a.getModel("textStyle");t.add(i[e]=new G["a"]({silent:!0,invisible:!0,style:Object(w["c"])(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 p=Object(it["q"])(a.get("moveHandleSize"),o[1]),f=e.moveHandle=new et["a"]({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:p}}),y=.8*p,m=e.moveHandleIcon=Object(d["a"])(a.get("moveHandleIcon"),-y/2,-y/2,y,y,"#fff",!0);m.silent=!0,m.y=o[1]+p/2-.5,f.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(o[1]/2,Math.max(p,10));h=e.moveZone=new et["a"]({invisible:!0,shape:{y:o[1]-v,height:p+v}}),h.on("mouseover",(function(){s.enterEmphasis(f)})).on("mouseout",(function(){s.leaveEmphasis(f)})),r.add(f),r.add(m),r.add(h)}h.attr({draggable:!0,cursor:tI(this._orient),drift:Object(g["c"])(this._onDragMove,this,"all"),ondragstart:Object(g["c"])(this._showDataInfo,this,!0),ondragend:Object(g["c"])(this._onDragEnd,this),onmouseover:Object(g["c"])(this._showDataInfo,this,!0),onmouseout:Object(g["c"])(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[Object(it["m"])(t[0],[0,100],e,!0),Object(it["m"])(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];Wc(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?Object(it["m"])(o.minSpan,a,r,!0):null,null!=o.maxSpan?Object(it["m"])(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=Object(it["c"])([Object(it["m"])(i[0],r,a,!0),Object(it["m"])(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=Object(it["c"])(n.slice()),r=this._size;Object(g["k"])([0,1],(function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:r[1]/2-o/2})}),this),e.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]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;le[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new ke["a"](e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),o=[0,100];this._range=Object(it["c"])([Object(it["m"])(n.x,r,o,!0),Object(it["m"])(n.x+n.width,r,o,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(pr["g"](t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new HM({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(t,e),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]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?JM:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=xx(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),r=this.api.getHeight();t={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return t},e.type="dataZoom.slider",e}(Cx);function QM(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function tI(t){return"vertical"===t?"ns-resize":"ew-resize"}var eI=$M;function nI(t){t.registerComponentModel(GM),t.registerComponentView(eI),Gx(t)}function iI(t){Object(i["a"])(VM),Object(i["a"])(nI)}var rI={get:function(t,e,n){var i=g["d"]((oI[t]||{})[e]);return n&&g["t"](i)?i[i.length-1]:i}},oI={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]}},aI=rI,sI=Zs.mapVisual,lI=Zs.eachVisual,uI=g["t"],cI=g["k"],dI=it["c"],hI=it["m"],pI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.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 Object(l["a"])(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&YO(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=g["c"](t,this),this.controllerVisuals=UO(this.option.controller,e,t),this.targetVisuals=UO(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=H["r"](t),e},e.prototype.eachTargetSeries=function(t,e){g["k"](this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,n){var i,r=this.option,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],g["t"](t)&&(t=t.slice(),i=!0);var l=e?t:i?[u(t[0]),u(t[1])]:u(t);return g["C"](s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):g["w"](s)?i?s(t[0],t[1]):s(t):i?t[0]===a[0]?n[0]+" "+l[1]:t[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,e=dI([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var r=n[i],o=t.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),r=e.controller||(e.controller={});g["I"](i,n),g["I"](r,n);var o=this.isCategory();function a(n){uI(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}function s(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},cI(i,(function(t,e){if(Zs.isValidType(e)){var n=aI.get(e,"inactive",o);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}function l(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol(),a=r||"roundRect";cI(this.stateList,(function(r){var s=this.itemSize,l=t[r];l||(l=t[r]={color:o?i:[i]}),null==l.symbol&&(l.symbol=e&&g["d"](e)||(o?a:[a])),null==l.symbolSize&&(l.symbolSize=n&&g["d"](n)||(o?s[0]:[s[0],s[0]])),l.symbol=sI(l.symbol,(function(t){return"none"===t?a:t}));var u=l.symbolSize;if(null!=u){var c=-1/0;lI(u,(function(t){t>c&&(c=t)})),l.symbolSize=sI(u,(function(t){return hI(t,[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)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.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"}},e}(pn["a"]),fI=pI,gI=[20,140],yI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=gI[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=gI[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):g["t"](e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),g["k"](this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}),this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=it["c"]((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),(function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},e.prototype.getVisualMeta=function(t){var e=mI(this,"outOfRange",this.getExtent()),n=mI(this,"inRange",this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;at[1])break;i.push({color:this.getControllerVisual(a,"color",e),offset:o/n})}return i.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),i},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new h["a"]("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent();MI([0,1],(function(l){var u=r[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var c=SI(t[l],[0,a[1]],s,!0),d=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=d/a[0],u.x=a[0]-d/2;var h=m["applyTransform"](n.handleLabelPoints[l],m["getTransform"](u,this.group));o[l].setStyle({x:h[0],y:h[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,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},d=this.getControllerVisual(t,"color",c),h=this.getControllerVisual(t,"symbolSize"),p=SI(t,o,s,!0),f=a[0]-h/2,g={x:u.x,y:u.y};u.y=p,u.x=f;var y=m["applyTransform"](l.indicatorLabelPoint,m["getTransform"](u,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var b=this._applyTransform("left",l.mainGroup),x=this._orient,_="horizontal"===x;v.setStyle({text:(n||"")+r.formatValueText(e),verticalAlign:_?b:"middle",align:_?"center":b});var O={x:f,y:p,style:{fill:d}},w={style:{x:y[0],y:y[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var S={duration:100,easing:"cubicInOut",additive:!0};u.x=g.x,u.y=g.y,u.animateTo(O,S),v.animateTo(w,S)}else u.attr(O),v.attr(w);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var I=0;Ir[1]&&(u[1]=1/0),e&&(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,d=[];(e||LI(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var h=H["d"](c,d);this._dispatchHighDown("downplay",wI(h[0],n)),this._dispatchHighDown("highlight",wI(h[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if(Object(Wo["a"])(t.target,(function(t){var n=Object(v["a"])(t);if(null!=n.dataIndex)return e=n,!0}),!0),e){var n=this.ecModel.getSeriesByIndex(e.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var r=n.getData(e.dataType),o=r.getStore().get(i.getDataDimensionIndex(r),e.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n=0&&(r.dimension=o,i.push(r))}})),t.getData().setVisual("visualMeta",i)}}];function VI(t,e,n,i){for(var r=e.targetVisuals[i],o=Zs.prepareVisualTypes(r),a={color:Object(FO["b"])(t.getData(),"color")},s=0,l=o.length;s0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(RI,EI),Object(g["k"])(zI,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(GI))}function qI(t){t.registerComponentModel(vI),t.registerComponentView(NI),WI(t)}var UI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return Object(l["a"])(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],YI[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var r=this.option.categories;this.resetVisual((function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=g["d"](r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=g["H"](this._pieceList,(function(t){return t=g["d"](t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},i=Zs.listVisualTypes(),r=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}g["k"](e.pieces,(function(t){g["k"](i,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),g["k"](n,(function(t,n){var i=!1;g["k"](this.stateList,(function(t){i=i||o(e,t,n)||o(e.target,t,n)}),this),!i&&g["k"](this.stateList,(function(t){(e[t]||(e[t]={}))[n]=aI.get(n,"inRange"===t?"active":"inactive",r)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,r=(e?n:t).selected||{};if(n.selected=r,g["k"](i,(function(t,e){var n=this.getSelectedMapKey(t);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var o=!1;g["k"](i,(function(t,e){var n=this.getSelectedMapKey(t);r[n]&&(o?r[n]=!1:o=!0)}),this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=g["d"](t)},e.prototype.getValueState=function(t){var e=Zs.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),(function(e,i){var o=Zs.findPieceIndex(e,n);o===t&&r.push(i)}),this),e.push({seriesId:i.id,dataIndex:r})}),this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],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 g["k"](r,(function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],"outOfRange"),s(e.slice()),a=e[1])}),this),{stops:e,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=t(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=Object(zt["d"])(fI.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}),e}(fI),YI={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;var o=(i[1]-i[0])/r;while(+o.toFixed(n)!==o&&n<5)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function XI(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var ZI=UI,KI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,c=g["O"](e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,c,a),g["k"](l.viewPieceList,(function(i){var l=i.piece,u=new h["a"];u.onclick=g["c"](this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var d=e.getRepresentValue(l);if(this._createItemSymbol(u,d,[0,0,s[0],s[1]]),c){var p=this.visualMapModel.getValueState(d);u.add(new G["a"]({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}}))}t.add(u)}),this),u&&this._renderEndsText(t,u[1],s,c,a),Se["b"](e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:wI(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return OI(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,i,r){if(e){var o=new h["a"],a=this.visualMapModel.textStyleModel;o.add(new G["a"]({style:Object(w["c"])(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=g["H"](t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),i=t.get("orient"),r=t.get("inverse");return("horizontal"===i?r:!r)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n){t.add(Object(d["a"])(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=n.selectedMode;if(i){var r=g["d"](n.selected),o=e.getSelectedMapKey(t);"single"===i||!0===i?(r[o]=!0,g["k"](r,(function(t,e){r[e]=e===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},e.type="visualMap.piecewise",e}(xI),JI=KI;function $I(t){t.registerComponentModel(ZI),t.registerComponentView(JI),WI(t)}function QI(t){Object(i["a"])(qI),Object(i["a"])($I)}var tj={label:{enabled:!0},decal:{show:!1}},ej=Object(H["o"])(),nj={};function ij(t,e){var n=t.getModel("aria");if(n.get("enabled")){var i=g["d"](tj);g["I"](i.label,t.getLocaleModel().get("aria"),!1),g["I"](n.option,i,!1),r(),o()}function r(){var e=n.getModel("decal"),i=e.get("show");if(i){var r=g["f"]();t.eachSeries((function(t){if(!t.isColorBySeries()){var e=r.get(t.type);e||(e={},r.set(t.type,e)),ej(t).scope=e}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if(g["w"](e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var i=Object($a["b"])(e.ecModel,e.name,nj,t.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",u(r,i))}else{var o=e.getRawData(),a={},s=ej(e).scope;n.each((function(t){var e=n.getRawIndex(t);a[e]=t}));var l=o.count();o.each((function(t){var i=a[t],r=o.getName(t)||t+"",c=Object($a["b"])(e.ecModel,r,s,l),d=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",u(d,c))}))}}function u(t,e){var n=t?g["m"](g["m"]({},e),t):e;return n.dirty=!0,n}}))}}function o(){var i=t.getLocaleModel().get("aria"),r=n.getModel("label");if(r.option=g["i"](r.option,i),r.get("enabled")){var o=e.getZr().dom;if(r.get("description"))o.setAttribute("aria-label",r.get("description"));else{var u,c=t.getSeriesCount(),d=r.get(["data","maxCount"])||10,h=r.get(["series","maxCount"])||10,p=Math.min(c,h);if(!(c<1)){var f=s();if(f){var y=r.get(["general","withTitle"]);u=a(y,{title:f})}else u=r.get(["general","withoutTitle"]);var m=[],v=c>1?r.get(["series","multiple","prefix"]):r.get(["series","single","prefix"]);u+=a(v,{seriesCount:c}),t.eachSeries((function(t,e){if(e1?r.get(["series","multiple",o]):r.get(["series","single",o]),n=a(n,{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:l(t.subType)});var s=t.getData();if(s.count()>d){var u=r.get(["data","partialData"]);n+=a(u,{displayCnt:d})}else n+=r.get(["data","allData"]);for(var h=r.get(["data","separator","middle"]),f=r.get(["data","separator","end"]),g=[],y=0;y":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},sj=function(){function t(t){var e=this._condVal=Object(g["C"])(t)?new RegExp(t):Object(g["B"])(t)?t:null;if(null==e){var n="";0,Object(As["c"])(n)}}return t.prototype.evaluate=function(t){var e=typeof t;return Object(g["C"])(e)?this._condVal.test(t):!!Object(g["z"])(e)&&this._condVal.test(t+"")},t}(),lj=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),uj=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e=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 Cj={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),i=0;i0){var s,l,u=i.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},a);Ij(t)&&(s=t,l=e),Ij(e)&&(s=e,l=t);for(var d=s?s===t:t.length>e.length,h=s?jj(l,s):jj(d?e:t,[d?t:e]),p=0,f=0;fAj))for(var i=n.getIndices(),r=Lj(n),o=0;o0&&r.group.traverse((function(t){t instanceof F["b"]&&!t.animators.length&&t.animateFrom({style:{opacity:0}},o)}))}))}function Gj(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function Hj(t){return Object(g["t"])(t)?t.sort().join(","):t}function Fj(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function Wj(t,e){var n=Object(g["f"])(),i=Object(g["f"])(),r=Object(g["f"])();return Object(g["k"])(t.oldSeries,(function(e,n){var o=t.oldDataGroupIds[n],a=t.oldData[n],s=Gj(e),l=Hj(s);i.set(l,{dataGroupId:o,data:a}),Object(g["t"])(s)&&Object(g["k"])(s,(function(t){r.set(t,{key:l,dataGroupId:o,data:a})}))})),Object(g["k"])(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),o=t.getData(),a=Gj(t),s=Hj(a),l=i.get(s);if(l)n.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:Fj(l.data),data:l.data}],newSeries:[{dataGroupId:e,divide:Fj(o),data:o}]});else if(Object(g["t"])(a)){0;var u=[];Object(g["k"])(a,(function(t){var e=i.get(t);e.data&&u.push({dataGroupId:e.dataGroupId,divide:Fj(e.data),data:e.data})})),u.length&&n.set(s,{oldSeries:u,newSeries:[{dataGroupId:e,data:o,divide:Fj(o)}]})}else{var c=r.get(a);if(c){var d=n.get(c.key);d||(d={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:Fj(c.data)}],newSeries:[]},n.set(c.key,d)),d.newSeries.push({dataGroupId:e,data:o,divide:Fj(o)})}}}})),n}function qj(t,e){for(var n=0;n=0&&r.push({dataGroupId:e.oldDataGroupIds[n],data:e.oldData[n],divide:Fj(e.oldData[n]),dim:t.dimension})})),Object(g["k"])(Object(H["r"])(t.to),(function(t){var i=qj(n.updatedSeries,t);if(i>=0){var r=n.updatedSeries[i].getData();o.push({dataGroupId:e.oldDataGroupIds[i],data:r,divide:Fj(r),dim:t.dimension})}})),r.length>0&&o.length>0&&Bj(r,o,i)}function Yj(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){Object(g["k"])(Object(H["r"])(n.seriesTransition),(function(t){Object(g["k"])(Object(H["r"])(t.to),(function(t){for(var e=n.updatedSeries,i=0;i0){if(t<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function l(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return i["C"](t)?a(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function u(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),o),t=(+t).toFixed(e),n?t:+t}function c(t){return t.sort((function(t,e){return t-e})),t}function d(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return h(t)}function h(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function p(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function f(t,e,n){if(!t[e])return 0;var i=g(t,n);return i[e]||0}function g(t,e){var n=i["N"](t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];var r=Math.pow(10,e),o=i["H"](t,(function(t){return(isNaN(t)?0:t)/n*r*100})),a=100*r,s=i["H"](o,(function(t){return Math.floor(t)})),l=i["N"](s,(function(t,e){return t+e}),0),u=i["H"](o,(function(t,e){return t-s[e]}));while(lc&&(c=u[h],d=h);++s[d],u[d]=0,++l}return i["H"](s,(function(t){return t/r}))}function y(t,e){var n=Math.max(d(t),d(e)),i=t+e;return n>o?i:u(i,n)}var m=9007199254740991;function v(t){var e=2*Math.PI;return(t%e+e)%e}function b(t){return t>-r&&t=10&&e++,e}function S(t,e){var n,i=w(t),r=Math.pow(10,i),o=t/r;return n=e?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,t=n*r,i>=-20?+t.toFixed(i<0?-i:0):t}function M(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function I(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,i=0;i=0&&(s=u.interpolatedValue[l])}return null!=s?s+"":""}))}},t.prototype.getRawValue=function(t,e){return Object(r["e"])(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function l(t){var e,n;return i["A"](t)?t.type&&(n=t):e=t,{text:e,frag:n}}},3901:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return a}));var i=n("282b"),r=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],o=Object(i["a"])(r),a=function(){function t(){}return t.prototype.getLineStyle=function(t){return o(this,t)},t}()},"3eba":function(t,e,n){"use strict";var i=n("aa74");n.d(e,"a",(function(){return i["a"]})),n.d(e,"b",(function(){return i["b"]})),n.d(e,"c",(function(){return i["c"]})),n.d(e,"d",(function(){return i["d"]})),n.d(e,"e",(function(){return i["e"]})),n.d(e,"f",(function(){return i["f"]})),n.d(e,"g",(function(){return i["h"]})),n.d(e,"h",(function(){return i["i"]})),n.d(e,"i",(function(){return i["k"]})),n.d(e,"j",(function(){return i["l"]}));var r=n("22b4"),o=(n("1be7"),n("f95e")),a=n("5e81"),s=n("ee29");Object(r["a"])([o["a"],a["a"]]);Object(r["a"])(s["a"])},4041:function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return a}));var i=n("e0d3"),r=Object(i["o"])(),o=Object(i["o"])(),a=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var o=Object(i["r"])(this.get("color",!0)),a=this.get("colorLayer",!0);return u(this,r,o,a,t,e,n)},t.prototype.clearColorPalette=function(){c(this,r)},t}();function s(t,e,n,r){var a=Object(i["r"])(t.get(["aria","decal","decals"]));return u(t,o,a,null,e,n,r)}function l(t,e){for(var n=t.length,i=0;ie)return t[i];return t[n-1]}function u(t,e,n,i,r,o,a){o=o||t;var s=e(o),u=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(r))return c[r];var d=null!=a&&i?l(i,a):n;if(d=d||n,d&&d.length){var h=d[u];return r&&(c[r]=h),s.paletteIdx=(u+1)%d.length,h}}function c(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}},4319:function(t,e,n){"use strict";var i=n("22d1"),r=n("625e"),o=n("282b"),a=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],s=Object(o["a"])(a),l=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return s(this,t,e)},t}(),u=n("7837"),c=n("76a5"),d=["textStyle","color"],h=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],p=new c["a"],f=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(d):null)},t.prototype.getFont=function(){return Object(u["d"])({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;nthis.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=l["a"].prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=0&&n.push(o)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[y(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[m])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,i,o=this.option,a=o.selectedMode,s=e.length;if(a&&s)if("series"===a)o.selectedMap="all";else if("multiple"===a){r["A"](o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,u=0;u0&&this._innerSelect(t,e)}},e.registerClass=function(t){return s["a"].registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(s["a"]);function b(t){var e=t.name;a["n"](t)||(t.name=x(t)||e)}function x(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return r["k"](n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}function _(t){return t.model.getRawData().count()}function O(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),w}function w(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function S(t,e){r["k"](r["e"](t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,r["h"](M,e))}))}function M(t,e){var n=I(t);return n&&n.setOutputEnd((e||this).count()),e}function I(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}r["K"](v,u["a"]),r["K"](v,l["a"]),Object(h["e"])(v,s["a"]),e["b"]=v},"538f":function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("6d8b"),r=n("e86a"),o=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var h=this._determinedMin,p=this._determinedMax;return null!=h&&(s=h,u=!0),null!=p&&(l=p,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:d}},t.prototype.modifyDataMinMax=function(t,e){this[s[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=a[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),a={min:"_determinedMin",max:"_determinedMax"},s={min:"_dataMin",max:"_dataMax"};function l(t,e,n){var i=t.rawExtentInfo;return i||(i=new o(t,e,n),t.rawExtentInfo=i,i)}function u(t,e){return null==e?null:Object(i["l"])(e)?NaN:t.parse(e)}},"551f":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return a}));var i=n("282b"),r=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],o=Object(i["a"])(r),a=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return o(this,t,e)},t}()},"58c9":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o}));var i={};function r(t,e){i[t]=e}function o(t){return i[t]}},"5e81":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("7fae"),r=n("6cb7"),o=n("b12f"),a=n("07fd"),s=n("f72b"),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return Object(i["a"])(e,t),e.prototype.init=function(e,n,i){t.prototype.init.call(this,e,n,i),this._sourceManager=new s["a"](this),Object(s["b"])(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),Object(s["b"])(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:a["a"]},e}(r["a"]),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return Object(i["a"])(e,t),e.type="dataset",e}(o["a"]);function c(t){t.registerComponentModel(l),t.registerComponentView(u)}},"625e":function(t,e,n){"use strict";n.d(e,"f",(function(){return l})),n.d(e,"d",(function(){return c})),n.d(e,"b",(function(){return d})),n.d(e,"e",(function(){return p})),n.d(e,"a",(function(){return g})),n.d(e,"c",(function(){return v}));var i=n("7fae"),r=n("6d8b"),o=".",a="___EC__COMPONENT__CONTAINER___",s="___EC__EXTENDED_CLASS___";function l(t){var e={main:"",sub:""};if(t){var n=t.split(o);e.main=n[0]||"",e.sub=n[1]||""}return e}function u(t){r["b"](/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function c(t){return!(!t||!t[s])}function d(t,e){t.$constructor=t,t.extend=function(t){var e,n=this;return h(n)?e=function(t){function e(){return t.apply(this,arguments)||this}return Object(i["a"])(e,t),e}(n):(e=function(){(t.$constructor||n).apply(this,arguments)},r["s"](e,this)),r["m"](e.prototype,t),e[s]=!0,e.extend=this.extend,e.superCall=y,e.superApply=m,e.superClass=n,e}}function h(t){return r["w"](t)&&/^class\s/.test(Function.prototype.toString.call(t))}function p(t,e){t.extend=e.extend}var f=Math.round(10*Math.random());function g(t){var e=["__\0is_clz",f++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function y(t,e){for(var n=[],i=2;i0)i*=10;var o=[d["w"](m(e[0]/i)*i),d["w"](y(e[1]/i)*i)];this._interval=i,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){f.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=b(t)/b(this.base),h["a"](t,this._extent)},e.prototype.normalize=function(t){return t=b(t)/b(this.base),h["f"](t,this._extent)},e.prototype.scale=function(t){return t=h["g"](t,this._extent),v(this.base,t)},e.type="log",e}(a["a"]),_=x.prototype;function O(t,e){return g(t,d["h"](e))}_.getMinorTicks=f.getMinorTicks,_.getLabel=f.getLabel,a["a"].registerClass(x);var w=x,S=n("ee1a"),M=n("538f");function I(t,e){var n=t.type,r=Object(M["a"])(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var o=r.min,a=r.max,l=e.ecModel;if(l&&"time"===n){var u=Object(s["e"])("bar",l),c=!1;if(i["k"](u,(function(t){c=c||t.getBaseAxis()===e.axis})),c){var d=Object(s["d"])(u),h=j(o,a,e,d);o=h.min,a=h.max}}return{extent:[o,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function j(t,e,n,r){var o=n.axis.getExtent(),a=o[1]-o[0],l=Object(s["f"])(r,n.axis);if(void 0===l)return{min:t,max:e};var u=1/0;i["k"](l,(function(t){u=Math.min(t.offset,u)}));var c=-1/0;i["k"](l,(function(t){c=Math.max(t.offset+t.width,c)})),u=Math.abs(u),c=Math.abs(c);var d=u+c,h=e-t,p=1-(u+c)/a,f=h/p-h;return e+=f*(c/d),t-=f*(u/d),{min:t,max:e}}function C(t,e){var n=e,i=I(t,n),r=i.extent,o=n.get("splitNumber");t instanceof w&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function T(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new r["a"]({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new u["a"]({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(a["a"].getClass(e)||o["a"])}}function D(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}function A(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,i){return t.scale.getFormattedLabel(n,i,e)}}(e):i["C"](e)?function(e){return function(n){var i=t.scale.getLabel(n),r=e.replace("{value}",null!=i?i:"");return r}}(e):i["w"](e)?function(e){return function(i,r){return null!=n&&(r=i.value-n),e(k(t,i),r,null!=i.level?{level:i.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function k(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function L(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,o,a=n.getExtent();n instanceof r["a"]?o=n.count():(i=n.getTicks(),o=i.length);var s,l=t.getLabelModel(),u=A(t),c=1;o>40&&(c=Math.ceil(o/40));for(var d=0;dt[1]&&(t[1]=i[1])}))}},"6cb7":function(t,e,n){"use strict";var i=n("7fae"),r=n("6d8b"),o=n("4319"),a=n("8918"),s=n("625e"),l=n("e0d3"),u=n("f934"),c=Object(l["o"])(),d=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=a["c"]("ec_cpt_model"),r}return Object(i["a"])(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=u["d"](this),i=n?u["f"](t):{},o=e.getTheme();r["I"](t,o.get(this.mainType)),r["I"](t,this.getDefaultOption()),n&&u["h"](t,i,n)},e.prototype.mergeOption=function(t,e){r["I"](this.option,t,!0);var n=u["d"](this);n&&u["h"](this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!Object(s["d"])(t))return t.defaultOption;var e=c(this);if(!e.defaultOption){var n=[],i=t;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["I"](a,n[l],!0);e.defaultOption=a}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return Object(l["v"])(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(o["a"]);function h(t){var e=[];return r["k"](d.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=r["H"](e,(function(t){return Object(s["f"])(t).main})),"dataset"!==t&&r["r"](e,"dataset")<=0&&e.unshift("dataset"),e}Object(s["e"])(d,o["a"]),Object(s["c"])(d),a["a"](d),a["b"](d,h),e["a"]=d},7837:function(t,e,n){"use strict";n.d(e,"g",(function(){return d})),n.d(e,"e",(function(){return h})),n.d(e,"c",(function(){return p})),n.d(e,"b",(function(){return f})),n.d(e,"d",(function(){return _})),n.d(e,"f",(function(){return O})),n.d(e,"h",(function(){return w})),n.d(e,"a",(function(){return S}));var i=n("76a5"),r=n("6d8b"),o=n("7d6c"),a=n("e0d3"),s=n("deca"),l={};function u(t,e){for(var n=0;n=0,a=!1;if(t instanceof l["b"]){var s=d(t),u=o&&s.selectFill||s.normalFill,c=o&&s.selectStroke||s.normalStroke;if(M(u)||M(c)){i=i||{};var h=i.style||{};"inherit"===h.fill?(a=!0,i=Object(r["m"])({},i),h=Object(r["m"])({},h),h.fill=u):!M(h.fill)&&M(u)?(a=!0,i=Object(r["m"])({},i),h=Object(r["m"])({},h),h.fill=j(u)):!M(h.stroke)&&M(c)&&(a||(i=Object(r["m"])({},i),h=Object(r["m"])({},h)),h.stroke=j(c)),i.style=h}}if(i&&null==i.z2){a||(i=Object(r["m"])({},i));var p=t.z2EmphasisLift;i.z2=t.z2+(null!=p?p:v)}return i}function B(t,e,n){if(n&&null==n.z2){n=Object(r["m"])({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:b)}return n}function G(t,e,n){var i=Object(r["r"])(t.currentStates,e)>=0,o=t.style.opacity,a=i?null:z(t,["opacity"],e,{opacity:1});n=n||{};var s=n.style||{};return null==s.opacity&&(n=Object(r["m"])({},n),s=Object(r["m"])({opacity:i?o:.1*a.opacity},s),n.style=s),n}function H(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return V(this,t,e,n);if("blur"===t)return G(this,t,n);if("select"===t)return B(this,t,n)}return n}function F(t){t.stateProxy=H;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=H),n&&(n.stateProxy=H)}function W(t,e){!$(t,e)&&!t.__highByOuter&&R(t,T)}function q(t,e){!$(t,e)&&!t.__highByOuter&&R(t,D)}function U(t,e){t.__highByOuter|=1<<(e||0),R(t,T)}function Y(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&R(t,D)}function X(t){R(t,A)}function Z(t){R(t,k)}function K(t){R(t,L)}function J(t){R(t,P)}function $(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Q(t){var e=t.getModel(),n=[],i=[];e.eachComponent((function(e,r){var o=h(r),a="series"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse((function(t){k(t)})),a&&n.push(r)),o.isBlured=!1})),Object(r["k"])(i,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function tt(t,e,n,i){var o=i.getModel();function a(t,e){for(var n=0;n0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}}))})),e}function ut(t,e,n){yt(t,!0),R(t,F),ht(t,e,n)}function ct(t){yt(t,!1)}function dt(t,e,n,i){i?ct(t):ut(t,e,n)}function ht(t,e,n){var i=Object(o["a"])(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}var pt=["emphasis","blur","select"],ft={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function gt(t,e,n,i){n=n||"itemStyle";for(var r=0;r30}},"80f0":function(t,e,n){"use strict";function i(t){return null==t?0:t.length||1}function r(t){return t}var o=function(){function t(t,e,n,i,o,a){this._old=t,this._new=e,this._oldKeyGetter=n||r,this._newKeyGetter=i||r,this.context=o,this._diffModeMultiple="multiple"===a}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},r=new Array(t.length),o=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var a=0;a1){var c=l.shift();1===l.length&&(n[s]=l[0]),this._update&&this._update(c,a)}else 1===u?(n[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},o=[],a=[];this._initIndexMap(t,n,o,"_oldKeyGetter"),this._initIndexMap(e,r,a,"_newKeyGetter");for(var s=0;s1&&1===h)this._updateManyToOne&&this._updateManyToOne(c,u),r[l]=null;else if(1===d&&h>1)this._updateOneToMany&&this._updateOneToMany(c,u),r[l]=null;else if(1===d&&1===h)this._update&&this._update(c,u),r[l]=null;else if(d>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,u),r[l]=null;else if(d>1)for(var p=0;p1)for(var s=0;s40&&(c=Math.max(1,Math.floor(u/40)));for(var d=a[0],h=t.dataToCoord(d+1)-t.dataToCoord(d),p=Math.abs(h*Math.cos(i)),f=Math.abs(h*Math.sin(i)),g=0,y=0;d<=a[1];d+=c){var m=0,v=0,b=o["d"](n({value:d}),e.font,"center","top");m=1.3*b.width,v=1.3*b.height,g=Math.max(g,m,7),y=Math.max(y,v,7)}var _=g/p,O=y/f;isNaN(_)&&(_=1/0),isNaN(O)&&(O=1/0);var w=Math.max(0,Math.floor(Math.min(_,O))),S=l(t.model),M=t.getExtent(),I=S.lastAutoInterval,j=S.lastTickCount;return null!=I&&null!=j&&Math.abs(I-w)<=1&&Math.abs(j-u)<=1&&I>w&&S.axisExtent0===M[0]&&S.axisExtent1===M[1]?w=I:(S.lastTickCount=u,S.lastAutoInterval=w,S.axisExtent0=M[0],S.axisExtent1=M[1]),w}function x(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function _(t,e,n){var i=Object(s["h"])(t),r=t.scale,o=r.getExtent(),a=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),c=o[0],d=r.count();0!==c&&u>1&&d/u>2&&(c=Math.round(Math.ceil(c/u)*u));var h=Object(s["j"])(t),p=a.get("showMinLabel")||h,f=a.get("showMaxLabel")||h;p&&c!==o[0]&&y(o[0]);for(var g=c;g<=o[1];g+=u)y(g);function y(t){var e={value:t};l.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t})}return f&&g-u!==o[1]&&y(o[1]),l}function O(t,e,n){var r=t.scale,o=Object(s["h"])(t),a=[];return i["k"](r.getTicks(),(function(t){var i=r.getLabel(t),s=t.value;e(t.value,i)&&a.push(n?s:{formattedLabel:o(t),rawLabel:i,tickValue:s})})),a}var w=[0,1],S=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return Object(r["g"])(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&(n=n.slice(),M(n,i.count())),Object(r["m"])(t,w,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),M(n,i.count()));var o=Object(r["m"])(t,n,w,e);return this.scale.scale(o)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=c(this,e),r=n.ticks,o=Object(i["H"])(r,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this),a=e.get("alignWithLabel");return I(this,o,a,t.clamp),o},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),r=Object(i["H"])(n,(function(t){return Object(i["H"])(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this);return r},t.prototype.getViewLabels=function(){return u(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return b(this)},t}();function M(t,e){var n=t[1]-t[0],i=e,r=n/i/2;t[0]+=r,t[1]-=r}function I(t,e,n,o){var a=e.length;if(t.onBand&&!n&&a){var s,l,u=t.getExtent();if(1===a)e[0].coord=u[0],s=e[1]={coord:u[1]};else{var c=e[a-1].tickValue-e[0].tickValue,d=(e[a-1].coord-e[0].coord)/c;Object(i["k"])(e,(function(t){t.coord-=d/2}));var h=t.scale.getExtent();l=1+h[1]-e[a-1].tickValue,s={coord:e[a-1].coord+d*l},e.push(s)}var p=u[0]>u[1];f(e[0].coord,u[0])&&(o?e[0].coord=u[0]:e.shift()),o&&f(u[0],e[0].coord)&&e.unshift({coord:u[0]}),f(u[1],s.coord)&&(o?s.coord=u[1]:e.pop()),o&&f(s.coord,u[1])&&e.push({coord:u[1]})}function f(t,e){return t=Object(r["w"])(t),e=Object(r["w"])(e),p?t>e:t=0?d():c=setTimeout(d,-r),l=i};return h.clear=function(){c&&(clearTimeout(c),c=null)},h.debounceNextCall=function(t){s=t},h}function s(t,e,n,s){var l=t[e];if(l){var u=l[i]||l,c=l[o],d=l[r];if(d!==n||c!==s){if(null==n||!s)return t[e]=u;l=t[e]=a(u,n,"debounce"===s),l[i]=u,l[o]=s,l[r]=n}return l}}function l(t,e){var n=t[e];n&&n[i]&&(n.clear&&n.clear(),t[e]=n[i])}},8918:function(t,e,n){"use strict";n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"d",(function(){return u}));var i=n("6d8b"),r=n("625e"),o=Math.round(10*Math.random());function a(t){return[t||"",o++].join("_")}function s(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=Object(r["f"])(t);e[i.main]=n},t.determineSubType=function(n,i){var o=i.type;if(!o){var a=Object(r["f"])(n).main;t.hasSubTypes(n)&&e[a]&&(o=e[a](i))}return o}}function l(t,e){function n(t){var n={},a=[];return i["k"](t,(function(s){var l=r(n,s),u=l.originalDeps=e(s),c=o(u,t);l.entryCount=c.length,0===l.entryCount&&a.push(s),i["k"](c,(function(t){i["r"](l.predecessor,t)<0&&l.predecessor.push(t);var e=r(n,t);i["r"](e.successor,t)<0&&e.successor.push(s)}))})),{graph:n,noEntryList:a}}function r(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function o(t,e){var n=[];return i["k"](t,(function(t){i["r"](e,t)>=0&&n.push(t)})),n}t.topologicalTravel=function(t,e,r,o){if(t.length){var a=n(e),s=a.graph,l=a.noEntryList,u={};i["k"](t,(function(t){u[t]=!0}));while(l.length){var c=l.pop(),d=s[c],h=!!u[c];h&&(r.call(o,c,d.originalDeps.slice()),delete u[c]),i["k"](d.successor,h?f:p)}i["k"](u,(function(){var t="";throw new Error(t)}))}function p(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function f(t){u[t]=!0,p(t)}}}function u(t,e){return i["I"](i["I"]({},t,!0),e,!0)}},"89b6":function(t,e,n){"use strict";n.d(e,"e",(function(){return C})),n.d(e,"c",(function(){return A})),n.d(e,"b",(function(){return k})),n.d(e,"d",(function(){return N})),n.d(e,"a",(function(){return R}));var i=n("dce8"),r=n("cbe5"),o=n("d498"),a=n("20c8"),s=n("857d"),l=n("4a3f"),u=n("6d8b"),c=n("1687"),d=n("401b"),h=n("7d6c"),p=2*Math.PI,f=a["a"].CMD,g=["top","right","bottom","left"];function y(t,e,n,i,r){var o=n.width,a=n.height;switch(t){case"top":i.set(n.x+o/2,n.y-e),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+e),r.set(0,1);break;case"left":i.set(n.x-e,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+e,n.y+a/2),r.set(1,0);break}}function m(t,e,n,i,r,o,a,l,u){a-=t,l-=e;var c=Math.sqrt(a*a+l*l);a/=c,l/=c;var d=a*n+t,h=l*n+e;if(Math.abs(i-r)%p<1e-4)return u[0]=d,u[1]=h,c-n;if(o){var f=i;i=Object(s["a"])(r),r=Object(s["a"])(f)}else i=Object(s["a"])(i),r=Object(s["a"])(r);i>r&&(r+=p);var g=Math.atan2(l,a);if(g<0&&(g+=p),g>=i&&g<=r||g+p>=i&&g+p<=r)return u[0]=d,u[1]=h,c-n;var y=n*Math.cos(i)+t,m=n*Math.sin(i)+e,v=n*Math.cos(r)+t,b=n*Math.sin(r)+e,x=(y-a)*(y-a)+(m-l)*(m-l),_=(v-a)*(v-a)+(b-l)*(b-l);return x<_?(u[0]=y,u[1]=m,Math.sqrt(x)):(u[0]=v,u[1]=b,Math.sqrt(_))}function v(t,e,n,i,r,o,a,s){var l=r-t,u=o-e,c=n-t,d=i-e,h=Math.sqrt(c*c+d*d);c/=h,d/=h;var p=l*c+u*d,f=p/h;s&&(f=Math.min(Math.max(f,0),1)),f*=h;var g=a[0]=t+f*c,y=a[1]=e+f*d;return Math.sqrt((g-r)*(g-r)+(y-o)*(y-o))}function b(t,e,n,i,r,o,a){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i);var s=t+n,l=e+i,u=a[0]=Math.min(Math.max(r,t),s),c=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-r)*(u-r)+(c-o)*(c-o))}var x=[];function _(t,e,n){var i=b(e.x,e.y,e.width,e.height,t.x,t.y,x);return n.set(x[0],x[1]),i}function O(t,e,n){for(var i,r,o=0,a=0,s=0,u=0,c=1/0,d=e.data,h=t.x,p=t.y,g=0;g0){e=e/180*Math.PI,w.fromArray(t[0]),S.fromArray(t[1]),M.fromArray(t[2]),i["a"].sub(I,w,S),i["a"].sub(j,M,S);var n=I.len(),r=j.len();if(!(n<.001||r<.001)){I.scale(1/n),j.scale(1/r);var o=I.dot(j),a=Math.cos(e);if(a1&&i["a"].copy(D,M),D.toArray(t[1])}}}}function k(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,w.fromArray(t[0]),S.fromArray(t[1]),M.fromArray(t[2]),i["a"].sub(I,S,w),i["a"].sub(j,M,S);var r=I.len(),o=j.len();if(!(r<.001||o<.001)){I.scale(1/r),j.scale(1/o);var a=I.dot(e),s=Math.cos(n);if(a=u)i["a"].copy(D,M);else{D.scaleAndAdd(j,l/Math.tan(Math.PI/2-d));var h=M.x!==S.x?(D.x-S.x)/(M.x-S.x):(D.y-S.y)/(M.y-S.y);if(isNaN(h))return;h<0?i["a"].copy(D,S):h>1&&i["a"].copy(D,M)}D.toArray(t[1])}}}}function L(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;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?t.useStyle(s):o.style=s}function P(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=d["f"](i[0],i[1]),o=d["f"](i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=d["j"]([],i[1],i[0],a/r),l=d["j"]([],i[1],i[2],a/o),u=d["j"]([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;ce[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=s["b"](t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;var a=1e4;n[0]a)return[]}var u=o.length?o[o.length-1].value:i[1];return n[1]>u&&(t?o.push({value:l(u+e,r)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;ri[0]&&hr&&(l=o.interval=r);var c=o.intervalPrecision=s(l),d=o.niceTickExtent=[Object(i["w"])(Math.ceil(t[0]/l)*l,c),Object(i["w"])(Math.floor(t[1]/l)*l,c)];return u(d,t),o}function a(t){var e=Math.pow(10,Object(i["t"])(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Object(i["w"])(n*e)}function s(t){return Object(i["h"])(t)+2}function l(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function u(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),l(t,0,e),l(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function c(t,e){return t>=e[0]&&t<=e[1]}function d(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function h(t,e){return t*(e[1]-e[0])+e[0]}},"998a":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("76a5");function r(t,e,n,r,o,a,s,l){var u=new i["a"]({style:{text:t,font:e,align:n,verticalAlign:r,padding:o,rich:a,overflow:s?"truncate":null,lineHeight:l}});return u.getBoundingRect()}},"9d57":function(t,e,n){"use strict";n.d(e,"b",(function(){return d})),n.d(e,"e",(function(){return h})),n.d(e,"d",(function(){return f})),n.d(e,"f",(function(){return y})),n.d(e,"c",(function(){return m})),n.d(e,"a",(function(){return v}));var i=n("6d8b"),r=n("3842"),o=n("ee1a"),a=n("cccd"),s=n("f658"),l="__ec_stack_";function u(t){return t.get("stack")||l+t.seriesIndex}function c(t){return t.dim+t.index}function d(t){var e=[],n=t.axis,r="axis0";if("category"===n.type){for(var o=n.getBandWidth(),a=0;a0&&(a=null===a?l:Math.min(a,l))}n[r]=a}}return n}function f(t){var e=p(t),n=[];return Object(i["k"])(t,(function(t){var i,o=t.coordinateSystem,a=o.getBaseAxis(),s=a.getExtent();if("category"===a.type)i=a.getBandWidth();else if("value"===a.type||"time"===a.type){var l=a.dim+"_"+a.index,d=e[l],h=Math.abs(s[1]-s[0]),p=a.scale.getExtent(),f=Math.abs(p[1]-p[0]);i=d?h/f*d:h}else{var g=t.getData();i=Math.abs(s[1]-s[0])/g.count()}var y=Object(r["q"])(t.get("barWidth"),i),m=Object(r["q"])(t.get("barMaxWidth"),i),v=Object(r["q"])(t.get("barMinWidth")||(x(t)?.5:1),i),b=t.get("barGap"),_=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:y,barMaxWidth:m,barMinWidth:v,barGap:b,barCategoryGap:_,axisKey:c(a),stackId:u(t)})})),g(n)}function g(t){var e={};Object(i["k"])(t,(function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var d=t.barGap;null!=d&&(o.gap=d);var h=t.barCategoryGap;null!=h&&(o.categoryGap=h)}));var n={};return Object(i["k"])(e,(function(t,e){n[e]={};var o=t.stacks,a=t.bandWidth,s=t.categoryGap;if(null==s){var l=Object(i["F"])(o).length;s=Math.max(35-4*l,15)+"%"}var u=Object(r["q"])(s,a),c=Object(r["q"])(t.gap,1),d=t.remainedWidth,h=t.autoWidthCount,p=(d-u)/(h+(h-1)*c);p=Math.max(p,0),Object(i["k"])(o,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,d-=i+c*i,h--}else{var i=p;e&&ei&&(i=n),i!==p&&(t.width=i,d-=i+c*i,h--)}})),p=(d-u)/(h+(h-1)*c),p=Math.max(p,0);var f,g=0;Object(i["k"])(o,(function(t,e){t.width||(t.width=p),f=t,g+=t.width*(1+c)})),f&&(g-=f.width*c);var y=-g/2;Object(i["k"])(o,(function(t,i){n[e][i]=n[e][i]||{bandWidth:a,offset:y,width:t.width},y+=t.width*(1+c)}))})),n}function y(t,e,n){if(t&&e){var i=t[c(e)];return null!=i&&null!=n?i[u(n)]:i}}function m(t,e){var n=h(t,e),r=f(n);Object(i["k"])(n,(function(t){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),o=u(t),a=r[c(i)][o],s=a.offset,l=a.width;e.setLayout({bandWidth:a.bandWidth,offset:s,size:l})}))}function v(t){return{seriesType:t,plan:Object(a["a"])(),reset:function(t){if(b(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),a=e.getDimensionIndex(e.mapDimension(r.dim)),l=e.getDimensionIndex(e.mapDimension(i.dim)),u=t.get("showBackground",!0),c=e.mapDimension(r.dim),d=e.getCalculationInfo("stackResultDimension"),h=Object(o["c"])(e,c)&&!!e.getCalculationInfo("stackedOnSeries"),p=r.isHorizontal(),f=_(i,r),g=x(t),y=t.get("barMinHeight")||0,m=d&&e.getDimensionIndex(d),v=e.getLayout("size"),O=e.getLayout("offset");return{progress:function(t,e){var i,r=t.count,o=g&&Object(s["a"])(3*r),c=g&&u&&Object(s["a"])(3*r),d=g&&Object(s["a"])(r),b=n.master.getRect(),x=p?b.width:b.height,_=e.getStore(),w=0;while(null!=(i=t.next())){var S=_.get(h?m:a,i),M=_.get(l,i),I=f,j=void 0;h&&(j=+S-_.get(a,i));var C=void 0,T=void 0,D=void 0,A=void 0;if(p){var k=n.dataToPoint([S,M]);if(h){var L=n.dataToPoint([j,M]);I=L[0]}C=I,T=k[1]+O,D=k[0]-I,A=v,Math.abs(D)=1)&&(t=1),t}s===u&&l===c||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,a=this._doReset(r)),this._modBy=u,this._modDataCount=c;var h=t&&t.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!=h?this._dueIndex+h:1/0,this._dueEnd);if(!r&&(a||p1&&i>0?s:a}};return o;function a(){return e=t?null:o0&&(i.name=r+(a-1)),a++,e.set(r,a)}}function f(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return Object(o["k"])(e,(function(t){var e;Object(o["A"])(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))})),r}function g(t,e,n){if(n||e.hasKey(t)){var i=0;while(e.hasKey(t+i))i++;t+=i}return e.set(t,!0),t}},b3c1:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var i=n("4755"),r=n("d51b"),o=n("6d8b"),a=n("3842"),s=n("a15a"),l=n("5210"),u=n("726e"),c=new i["a"],d=new r["a"](100),h=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function p(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type;t.dirty&&c["delete"](t);var p=c.get(t);if(p)return p;var b=Object(o["i"])(t,{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"===b.backgroundColor&&(b.backgroundColor=null);var x={repeat:"repeat"};return _(x),x.rotation=b.rotation,x.scaleX=x.scaleY=r?1:1/n,c.set(t,x),t.dirty=!1,x;function _(t){for(var e,c=[n],p=!0,x=0;x=e)){var n=this._store,r=n.getProvider();this._updateOrdinalMeta();var o=this._nameList,a=this._idList,s=r.getSource().sourceFormat,l=s===y["f"];if(l&&!r.pure)for(var c=[],d=t;d0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(r=this.getVisual(e),c["t"](r)?r=r.slice():O(r)&&(r=c["m"]({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,O(e)?c["m"](i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){O(t)?c["m"](this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?c["m"](this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Object(v["b"])(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){c["k"](this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:w(this.dimensions,this._getDimInfo,this),this.hostModel)),s(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];c["w"](n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(c["S"](arguments)))})},t.internalField=function(){i=function(t){var e=t._invertedIndicesMap;c["k"](e,(function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new S(o.categories.length);for(var s=0;s1&&(l+="__ec__"+c),i[e]=l}}}(),t}();e["a"]=T},b7d9:function(t,e,n){"use strict";n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return l})),n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return p}));var i=n("3842"),r=n("6d8b"),o=n("edae");function a(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||Object(r["z"])(t)||null==t||"-"===t||(t=+Object(i["p"])(t)),null==t||""===t?NaN:+t)}var s=Object(r["f"])({number:function(t){return parseFloat(t)},time:function(t){return+Object(i["p"])(t)},trim:function(t){return Object(r["C"])(t)?Object(r["T"])(t):t}});function l(t){return s.get(t)}var u={lt:function(t,e){return te},gte:function(t,e){return t>=e}},c=function(){function t(t,e){if(!Object(r["z"])(e)){var n="";0,Object(o["c"])(n)}this._opFn=u[t],this._rvalFloat=Object(i["o"])(e)}return t.prototype.evaluate=function(t){return Object(r["z"])(t)?this._opFn(t,this._rvalFloat):this._opFn(Object(i["o"])(t),this._rvalFloat)},t}(),d=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=Object(r["z"])(t)?t:Object(i["o"])(t),o=Object(r["z"])(e)?e:Object(i["o"])(e),a=isNaN(n),s=isNaN(o);if(a&&(n=this._incomparable),s&&(o=this._incomparable),a&&s){var l=Object(r["C"])(t),u=Object(r["C"])(e);l&&(n=u?t:0),u&&(o=l?e:0)}return no?-this._resultLT:0},t}(),h=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Object(i["o"])(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=Object(i["o"])(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function p(t,e){return"eq"===t||"ne"===t?new h("eq"===t,e):Object(r["q"])(u,t)?new c(t,e):null}},bda7:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("6d8b"),r=n("f279");function o(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);var r=e.features;return i["k"](r,(function(t){var e=t.geometry,r=e.encodeOffsets,o=e.coordinates;if(r)switch(e.type){case"LineString":e.coordinates=s(o,r,n);break;case"Polygon":a(o,r,n);break;case"MultiLineString":a(o,r,n);break;case"MultiPolygon":i["k"](o,(function(t,e){return a(t,r[e],n)}))}})),e.UTF8Encoding=!1,e}function a(t,e,n){for(var i=0;i>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 l(t,e){return t=o(t),i["H"](i["n"](t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,o=t.geometry,a=[];switch(o.type){case"Polygon":var s=o.coordinates;a.push(new r["b"](s[0],s.slice(1)));break;case"MultiPolygon":i["k"](o.coordinates,(function(t){t[0]&&a.push(new r["b"](t[0],t.slice(1)))}));break;case"LineString":a.push(new r["a"]([o.coordinates]));break;case"MultiLineString":a.push(new r["a"](o.coordinates))}var l=new r["c"](n[e||"name"],a,n.cp);return l.properties=n,l}))}},cccd:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("e0d3");function r(){var t=Object(i["o"])();return function(e){var n=t(e),i=e.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"}}},cd70:function(t,e,n){"use strict";var i=n("6d8b"),r=function(){function t(t){this.otherDims={},null!=t&&i["m"](this,t)}return t}();e["a"]=r},d0ce:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i,r=n("6d8b"),o=n("b7d9"),a=n("ec6f"),s="undefined",l=typeof Uint32Array===s?Array:Uint32Array,u=typeof Uint16Array===s?Array:Uint16Array,c=typeof Int32Array===s?Array:Int32Array,d=typeof Float64Array===s?Array:Float64Array,h={float:d,int:c,ordinal:Array,number:Array,time:d};function p(t){return t>65535?l:u}function f(){return[1/0,-1/0]}function g(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function y(t,e,n,i,r){var o=h[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;um[1]&&(m[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=Object(r["H"])(a,(function(t){return t.property})),c=0;cb[1]&&(b[1]=v)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,r=i[t],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=0&&s<0)&&(a=p,s=h,l=0),h===s&&(o[l++]=u))}return o.length=l,o},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r=d&&b<=h||isNaN(b))&&(l[u++]=y),y++}g=!0}else if(2===o){m=f[i[0]];var x=f[i[1]],_=t[i[1]][0],O=t[i[1]][1];for(v=0;v=d&&b<=h||isNaN(b))&&(w>=_&&w<=O||isNaN(w))&&(l[u++]=y),y++}g=!0}}if(!g)if(1===o)for(v=0;v=d&&b<=h||isNaN(b))&&(l[u++]=S)}else for(v=0;vt[j][1])&&(M=!1)}M&&(l[u++]=e.getRawIndex(v))}return um[1]&&(m[1]=y)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks,s=a[t],l=this.count(),u=0,c=Math.floor(1/e),d=this.getRawIndex(0),h=new(p(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));h[u++]=d;for(var f=1;fn&&(n=i,r=x))}j>0&&ju-g&&(s=u-g,a.length=s);for(var y=0;yc[1]&&(c[1]=v),d[h++]=b}return r._count=h,r._indices=d,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();rs&&(s=c)}return i=[a,s],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return Object(o["d"])(t[i],this._dimensions[i])}i={arrayRows:t,objectRows:function(t,e,n,i){return Object(o["d"])(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return Object(o["d"])(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}();e["b"]=m},deca:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"h",(function(){return l})),n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return c})),n.d(e,"e",(function(){return d})),n.d(e,"f",(function(){return p})),n.d(e,"g",(function(){return f})),n.d(e,"b",(function(){return g}));var i=n("6d8b"),r=n("e0d3"),o=Object(r["o"])();function a(t,e,n,r,o){var a;if(e&&e.ecModel){var s=e.ecModel.getUpdatePayload();a=s&&s.animation}var l=e&&e.isAnimationEnabled(),u="update"===t;if(l){var c=void 0,d=void 0,h=void 0;r?(c=Object(i["P"])(r.duration,200),d=Object(i["P"])(r.easing,"cubicOut"),h=0):(c=e.getShallow(u?"animationDurationUpdate":"animationDuration"),d=e.getShallow(u?"animationEasingUpdate":"animationEasing"),h=e.getShallow(u?"animationDelayUpdate":"animationDelay")),a&&(null!=a.duration&&(c=a.duration),null!=a.easing&&(d=a.easing),null!=a.delay&&(h=a.delay)),Object(i["w"])(h)&&(h=h(n,o)),Object(i["w"])(c)&&(c=c(n));var p={duration:c||0,delay:h,easing:d};return p}return null}function s(t,e,n,r,o,s,l){var u,c=!1;Object(i["w"])(o)?(l=s,s=o,o=null):Object(i["A"])(o)&&(s=o.cb,l=o.during,c=o.isFrom,u=o.removeOpt,o=o.dataIndex);var d="leave"===t;d||e.stopAnimation("leave");var h=a(t,r,o,d?u||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,o):null);if(h&&h.duration>0){var p=h.duration,f=h.delay,g=h.easing,y={duration:p,delay:f||0,easing:g,done:s,force:!!s||!!l,setToFinal:!d,scope:t,during:l};c?e.animateFrom(n,y):e.animateTo(n,y)}else e.stopAnimation(),!c&&e.attr(n),l&&l(1),s&&s()}function l(t,e,n,i,r,o){s("update",t,e,n,i,r,o)}function u(t,e,n,i,r,o){s("enter",t,e,n,i,r,o)}function c(t){if(!t.__zr)return!0;for(var e=0;ee[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();i["c"](r),e["a"]=r},e887:function(t,e,n){"use strict";var i=n("6d8b"),r=n("2dc5"),o=n("8918"),a=n("625e"),s=n("e0d3"),l=n("7d6c"),u=n("9fbc"),c=n("cccd"),d=n("2306"),h=s["o"](),p=Object(c["a"])(),f=function(){function t(){this.group=new r["a"],this.uid=o["c"]("viewChart"),this.renderTask=Object(u["a"])({plan:m,reset:v}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){0},t.prototype.highlight=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&y(r,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&y(r,i,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){Object(d["traverseElements"])(this.group,t)},t.markUpdateMethod=function(t,e){h(t).updateMethod=e},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function g(t,e,n){t&&Object(l["y"])(t)&&("emphasis"===e?l["r"]:l["C"])(t,n)}function y(t,e,n){var r=s["u"](t,e),o=e&&null!=e.highlightKey?Object(l["v"])(e.highlightKey):null;null!=r?Object(i["k"])(s["r"](r),(function(e){g(t.getItemGraphicEl(e),n,o)})):t.eachItemGraphicEl((function(t){g(t,n,o)}))}function m(t){return p(t.model)}function v(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&h(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),b[l]}a["b"](f,["dispose"]),a["c"](f);var b={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};e["a"]=f},ec6f:function(t,e,n){"use strict";n.d(e,"e",(function(){return l})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return d})),n.d(e,"d",(function(){return h})),n.d(e,"f",(function(){return m}));var i=n("6d8b"),r=n("07fd"),o=n("e0d3"),a=n("0f99"),s=function(){function t(t){this.data=t.data||(t.sourceFormat===r["d"]?{}:[]),this.sourceFormat=t.sourceFormat||r["h"],this.seriesLayoutBy=t.seriesLayoutBy||r["a"],this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n1?"."+e[1]:"")}function l(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var u=i["M"];function c(t,e,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function l(t){return t&&i["T"](t)?t:"-"}function u(t){return!(null==t||isNaN(t)||!isFinite(t))}var c="time"===e,d=t instanceof Date;if(c||d){var h=c?Object(o["p"])(t):t;if(!isNaN(+h))return Object(a["h"])(h,r,n);if(d)return"-"}if("ordinal"===e)return i["D"](t)?l(t):i["z"](t)&&u(t)?t+"":"-";var p=Object(o["o"])(t);return u(p)?s(p):i["D"](t)?l(t):"boolean"===typeof t?t+"":"-"}var d=["a","b","c","d","e","f","g"],h=function(t,e){return"{"+t+(null==e?"":e)+"}"};function p(t,e,n){i["t"](e)||(e=[e]);var o=e.length;if(!o)return"";for(var a=e[0].$vars||[],s=0;s':'';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(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=Object(o["p"])(e),r=n?"getUTC":"get",s=i[r+"FullYear"](),l=i[r+"Month"]()+1,u=i[r+"Date"](),c=i[r+"Hours"](),d=i[r+"Minutes"](),h=i[r+"Seconds"](),p=i[r+"Milliseconds"]();return t=t.replace("MM",Object(a["y"])(l,2)).replace("M",l).replace("yyyy",s).replace("yy",Object(a["y"])(s%100+"",2)).replace("dd",Object(a["y"])(u,2)).replace("d",u).replace("hh",Object(a["y"])(c,2)).replace("h",c).replace("mm",Object(a["y"])(d,2)).replace("m",d).replace("ss",Object(a["y"])(h,2)).replace("s",h).replace("SSS",Object(a["y"])(p,3)),t}function m(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function v(t,e){return e=e||"transparent",i["C"](t)?t:i["A"](t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function b(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}},edae:function(t,e,n){"use strict";n.d(e,"d",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return u})),n.d(e,"c",(function(){return c}));var i="[ECharts] ",r={},o="undefined"!==typeof console&&console.warn&&console.log;function a(t,e,n){if(o){if(n){if(r[e])return;r[e]=!0}console[t](i+e)}}function s(t,e){a("warn",t,e)}function l(t,e){a("error",t,e)}function u(t){0}function c(t){throw new Error(t)}},ee1a:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return l}));var i=n("6d8b"),r=n("80b9");function o(t,e,n){n=n||{};var r,o,s,l=n.byIndex,u=n.stackedCoordDimension;a(e)?r=e:(o=e.schema,r=o.dimensions,s=e.store);var c,d,h,p,f=!(!t||!t.get("stack"));if(Object(i["k"])(r,(function(t,e){Object(i["C"])(t)&&(r[e]=t={name:t}),f&&!t.isExtraCoord&&(l||c||!t.ordinalMeta||(c=t),d||"ordinal"===t.type||"time"===t.type||u&&u!==t.coordDim||(d=t))})),!d||l||c||(l=!0),d){h="__\0ecstackresult_"+t.id,p="__\0ecstackedover_"+t.id,c&&(c.createInvertedIndices=!0);var g=d.coordDim,y=d.type,m=0;Object(i["k"])(r,(function(t){t.coordDim===g&&m++}));var v={name:h,coordDim:g,coordDimIndex:m,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},b={name:p,coordDim:p,coordDimIndex:m+1,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};o?(s&&(v.storeDimIndex=s.ensureCalculationDimension(p,y),b.storeDimIndex=s.ensureCalculationDimension(h,y)),o.appendCalculationDimension(v),o.appendCalculationDimension(b)):(r.push(v),r.push(b))}return{stackedDimension:d&&d.name,stackedByDimension:c&&c.name,isStackedByIndex:l,stackedOverDimension:p,stackResultDimension:h}}function a(t){return!Object(r["d"])(t.schema)}function s(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function l(t,e){return s(t,e)?t.getCalculationInfo("stackResultDimension"):e}},ee29:function(t,e,n){"use strict";n.d(e,"a",(function(){return M}));var i=n("e0d3"),r=n("9850"),o=n("deca"),a=n("861c"),s=n("3842"),l=n("8582"),u=n("89b6"),c=n("6d8b"),d=n("2355"),h=n("7837"),p=n("857d");function f(t){if(t){for(var e=[],n=0;n=0&&n.attr(r.oldLayoutSelect),Object(c["r"])(f,"emphasis")>=0&&n.attr(r.oldLayoutEmphasis)),Object(o["h"])(n,d,e,u)}else if(n.attr(d),!Object(h["f"])(n).valueAnimation){var g=Object(c["P"])(n.style.opacity,1);n.style.opacity=0,Object(o["c"])(n,{style:{opacity:g}},e,u)}if(r.oldLayout=d,n.states.select){var y=r.oldLayoutSelect={};x(y,d,_),x(y,n.states.select,_)}if(n.states.emphasis){var m=r.oldLayoutEmphasis={};x(m,d,_),x(m,n.states.emphasis,_)}Object(h["a"])(n,u,p,e,e)}if(i&&!i.ignore&&!i.invisible){r=b(i),s=r.oldLayout;var O={points:i.shape.points};s?(i.attr({shape:s}),Object(o["h"])(i,{shape:O},e)):(i.setShape(O),i.style.strokePercent=0,Object(o["c"])(i,{style:{strokePercent:1}},e)),r.oldLayout=O}},t}(),w=O,S=Object(i["o"])();function M(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var i=S(e).labelManager;i||(i=S(e).labelManager=new w),i.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var i=S(e).labelManager;n.updatedSeries.forEach((function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()}))}},ef59:function(t,e,n){"use strict";n.d(e,"a",(function(){return p})),n.d(e,"b",(function(){return g})),n.d(e,"d",(function(){return y})),n.d(e,"c",(function(){return m}));var i=n("4319"),r=n("22d1"),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"}},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:"旭日图"}},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:""}}}},s=n("6d8b"),l="ZH",u="EN",c=u,d={},h={},p=r["a"].domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(l)>-1?l:c}():c;function f(t,e){t=t.toUpperCase(),h[t]=new i["a"](e),d[t]=e}function g(t){if(Object(s["C"])(t)){var e=d[t.toUpperCase()]||{};return t===l||t===u?Object(s["d"])(e):Object(s["I"])(Object(s["d"])(e),Object(s["d"])(d[c]),!1)}return Object(s["I"])(Object(s["d"])(t),Object(s["d"])(d[c]),!1)}function y(t){return h[t]}function m(){return h[c]}f(u,o),f(l,a)},f279:function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return g})),n.d(e,"c",(function(){return y})),n.d(e,"d",(function(){return m}));var i=n("7fae"),r=n("9850"),o=n("401b"),a=n("0655"),s=n("1687"),l=n("6d8b"),u=[];function c(t,e){for(var n=0;nn&&(t=r,n=a)}if(t)return h(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return Object(l["k"])(o,(function(e){"polygon"===e.type?d(e.exterior,n,i,t):Object(l["k"])(e.points,(function(e){d(e,n,i,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),e=new r["a"](n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,r=n.length;i1||m&&!g){var b=l(y,c,d,f,v);e=b.inlineValues,n=b.inlineValueTypes,s=b.blocks,u=b.inlineValues[0]}else if(g){var x=p.getDimensionInfo(f[0]);u=e=Object(o["e"])(p,d,f[0]),n=x.type}else u=e=m?y[0]:y;var _=Object(a["n"])(c),O=_&&c.name||"",w=p.getName(d),S=h?O:w;return Object(r["c"])("section",{header:O,noHeader:h||!_,sortParam:u,blocks:[Object(r["c"])("nameValue",{markerType:"item",markerColor:v,name:S,noName:!Object(i["T"])(S),value:e,valueType:n})].concat(s||[])})}function l(t,e,n,a,s){var l=e.getData(),u=Object(i["N"])(t,(function(t,e,n){var i=l.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName}),!1),c=[],d=[],h=[];function p(t,e){var n=l.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(u?h.push(Object(r["c"])("nameValue",{markerType:"subItem",markerColor:s,name:n.displayName,value:t,valueType:n.type})):(c.push(t),d.push(n.type)))}return a.length?Object(i["k"])(a,(function(t){p(Object(o["e"])(l,n,t),t)})):Object(i["k"])(t,p),{inlineValues:c,inlineValueTypes:d,blocks:h}}},f72b:function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return d}));var i=n("6d8b"),r=n("ec6f"),o=n("07fd"),a=n("0f99"),s=n("04f7"),l=n("d0ce"),u=n("2b17"),c=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,a=this._getUpstreamSourceManagers(),s=!!a.length;if(h(n)){var l=n,u=void 0,c=void 0,d=void 0;if(s){var p=a[0];p.prepareSource(),d=p.getSource(),u=d.data,c=d.sourceFormat,e=[p._getVersionSign()]}else u=l.get("data",!0),c=Object(i["E"])(u)?o["g"]:o["f"],e=[];var f=this._getSourceMetaRawOption()||{},g=d&&d.metaRawOption||{},y=Object(i["P"])(f.seriesLayoutBy,g.seriesLayoutBy)||null,m=Object(i["P"])(f.sourceHeader,g.sourceHeader),v=Object(i["P"])(f.dimensions,g.dimensions),b=y!==g.seriesLayoutBy||!!m!==!!g.sourceHeader||v;t=b?[Object(r["b"])(u,{seriesLayoutBy:y,sourceHeader:m,dimensions:v},c)]:[]}else{var x=n;if(s){var _=this._applyTransform(a);t=_.sourceList,e=_.upstreamSignList}else{var O=x.get("source",!0);t=[Object(r["b"])(O,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,o=n.get("transform",!0),a=n.get("fromTransformResult",!0);if(null!=a){var l="";1!==t.length&&p(l)}var u=[],c=[];return Object(i["k"])(t,(function(t){t.prepareSource();var e=t.getSource(a||0),n="";null==a||e||p(n),u.push(e),c.push(t._getVersionSign())})),o?e=Object(s["a"])(o,u,{datasetIndex:n.componentIndex}):null!=a&&(e=[Object(r["a"])(u[0])]),{sourceList:e,upstreamSignList:c}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e0)for(var l=0;l=0;--l)if(u[c]){a=u[c];break}a=a||s.none}if(i["t"](a)){var p=null==t.level?0:t.level>=0?t.level:a.length+t.level;p=Math.min(p,a.length-1),a=a[p]}}return _(new Date(t.value),a,o,r)}function w(t,e){var n=r["p"](t),i=n[I(e)]()+1,o=n[j(e)](),a=n[C(e)](),s=n[T(e)](),l=n[D(e)](),u=n[A(e)](),c=0===u,d=c&&0===l,h=d&&0===s,p=h&&0===a,f=p&&1===o,g=f&&1===i;return g?"year":f?"month":p?"day":h?"hour":d?"minute":c?"second":"millisecond"}function S(t,e,n){var o=i["z"](t)?r["p"](t):t;switch(e=e||w(t,n),e){case"year":return o[M(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[j(n)]();case"half-day":return o[C(n)]()/24;case"hour":return o[C(n)]();case"minute":return o[T(n)]();case"second":return o[D(n)]();case"millisecond":return o[A(n)]()}}function M(t){return t?"getUTCFullYear":"getFullYear"}function I(t){return t?"getUTCMonth":"getMonth"}function j(t){return t?"getUTCDate":"getDate"}function C(t){return t?"getUTCHours":"getHours"}function T(t){return t?"getUTCMinutes":"getMinutes"}function D(t){return t?"getUTCSeconds":"getSeconds"}function A(t){return t?"getUTCMilliseconds":"getMilliseconds"}function k(t){return t?"setUTCFullYear":"setFullYear"}function L(t){return t?"setUTCMonth":"setMonth"}function P(t){return t?"setUTCDate":"setDate"}function N(t){return t?"setUTCHours":"setHours"}function R(t){return t?"setUTCMinutes":"setMinutes"}function E(t){return t?"setUTCSeconds":"setSeconds"}function z(t){return t?"setUTCMilliseconds":"setMilliseconds"}},f934:function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return d})),n.d(e,"e",(function(){return h})),n.d(e,"g",(function(){return p})),n.d(e,"i",(function(){return f})),n.d(e,"j",(function(){return g})),n.d(e,"d",(function(){return y})),n.d(e,"h",(function(){return m})),n.d(e,"f",(function(){return v})),n.d(e,"c",(function(){return b}));var i=n("6d8b"),r=n("9850"),o=n("3842"),a=n("eda2"),s=i["k"],l=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function c(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(l,u){var c,d,h=l.getBoundingRect(),p=e.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===t){var g=h.width+(f?-f.x+h.x:0);c=o+g,c>i||l.newline?(o=0,c=g,a+=s+n,s=h.height):s=Math.max(s,h.height)}else{var y=h.height+(f?-f.y+h.y:0);d=a+y,d>r||l.newline?(o+=s+n,a=0,d=y,s=h.width):s=Math.max(s,h.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=d+n)}))}var d=c;i["h"](c,"vertical"),i["h"](c,"horizontal");function h(t,e,n){var i=e.width,r=e.height,s=Object(o["q"])(t.left,i),l=Object(o["q"])(t.top,r),u=Object(o["q"])(t.right,i),c=Object(o["q"])(t.bottom,r);return(isNaN(s)||isNaN(parseFloat(t.left)))&&(s=0),(isNaN(u)||isNaN(parseFloat(t.right)))&&(u=i),(isNaN(l)||isNaN(parseFloat(t.top)))&&(l=0),(isNaN(c)||isNaN(parseFloat(t.bottom)))&&(c=r),n=a["i"](n||0),{width:Math.max(u-s-n[1]-n[3],0),height:Math.max(c-l-n[0]-n[2],0)}}function p(t,e,n){n=a["i"](n||0);var i=e.width,s=e.height,l=Object(o["q"])(t.left,i),u=Object(o["q"])(t.top,s),c=Object(o["q"])(t.right,i),d=Object(o["q"])(t.bottom,s),h=Object(o["q"])(t.width,i),p=Object(o["q"])(t.height,s),f=n[2]+n[0],g=n[1]+n[3],y=t.aspect;switch(isNaN(h)&&(h=i-c-g-l),isNaN(p)&&(p=s-d-f-u),null!=y&&(isNaN(h)&&isNaN(p)&&(y>i/s?h=.8*i:p=.8*s),isNaN(h)&&(h=y*p),isNaN(p)&&(p=h/y)),isNaN(l)&&(l=i-c-h-g),isNaN(u)&&(u=s-d-p-f),t.left||t.right){case"center":l=i/2-h/2-n[3];break;case"right":l=i-h-g;break}switch(t.top||t.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(h)&&(h=i-g-l-(c||0)),isNaN(p)&&(p=s-f-u-(d||0));var m=new r["a"](l+n[3],u+n[0],h,p);return m.margin=n,m}function f(t,e,n,o,a,s){var l,u=!a||!a.hv||a.hv[0],c=!a||!a.hv||a.hv[1],d=a&&a.boundingMode||"all";if(s=s||t,s.x=t.x,s.y=t.y,!u&&!c)return!1;if("raw"===d)l="group"===t.type?new r["a"](0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(l=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();l=l.clone(),l.applyTransform(h)}var f=p(i["i"]({width:l.width,height:l.height},e),n,o),g=u?f.x-l.x:0,y=c?f.y-l.y:0;return"raw"===d?(s.x=g,s.y=y):(s.x+=g,s.y+=y),s===t&&t.markRedraw(),!0}function g(t,e){return null!=t[u[e][0]]||null!=t[u[e][1]]&&null!=t[u[e][2]]}function y(t){var e=t.layoutMode||t.constructor.layoutMode;return i["A"](e)?e:e?{type:e}:null}function m(t,e,n){var r=n&&n.ignoreSize;!i["t"](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,h=2;if(s(n,(function(e){l[e]=t[e]})),s(n,(function(t){c(e,t)&&(o[t]=l[t]=e[t]),d(o,t)&&a++,d(l,t)&&u++})),r[i])return d(e,n[1])?l[n[2]]=null:d(e,n[2])&&(l[n[1]]=null),l;if(u!==h&&a){if(a>=h)return o;for(var p=0;p