/*! * build: vue-admin-better * vue-admin-beautiful.com * https://gitee.com/chu1204505056/vue-admin-better * time: 2022-2-26 00:26:40 */ (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["vab-chunk-d31a5366"],{"0b5d":function(t,e,i){"use strict";i.d(e,"a",(function(){return w}));var o=i("cdbd"),n=i("6b42"),r=i("e516"),a=i("d21a"),s=i("4626"),l=i("b0a0"),u=i("ac97"),c=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i._pieceList=[],i}return Object(o["b"])(e,t),e.prototype.optionUpdated=function(e,i){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var o=this._mode=this._determineMode();this._pieceList=[],h[this._mode].call(this,this._pieceList),this._resetSelected(e,i);var r=this.option.categories;this.resetVisual((function(t,e){"categories"===o?(t.mappingMethod="category",t.categories=n["d"](r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=n["H"](this._pieceList,(function(t){return t=n["d"](t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,i={},o=a["a"].listVisualTypes(),r=this.isCategory();function l(t,e,i){return t&&t[e]&&t[e].hasOwnProperty(i)}n["k"](e.pieces,(function(t){n["k"](o,(function(e){t.hasOwnProperty(e)&&(i[e]=1)}))})),n["k"](i,(function(t,i){var o=!1;n["k"](this.stateList,(function(t){o=o||l(e,t,i)||l(e.target,t,i)}),this),!o&&n["k"](this.stateList,(function(t){(e[t]||(e[t]={}))[i]=s["a"].get(i,"inRange"===t?"active":"inactive",r)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var i=this.option,o=this._pieceList,r=(e?i:t).selected||{};if(i.selected=r,n["k"](o,(function(t,e){var i=this.getSelectedMapKey(t);r.hasOwnProperty(i)||(r[i]=!0)}),this),"single"===i.selectedMode){var a=!1;n["k"](o,(function(t,e){var i=this.getSelectedMapKey(t);r[i]&&(a?r[i]=!1:a=!0)}),this)}},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=n["d"](t)},e.prototype.getValueState=function(t){var e=a["a"].findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],i=this._pieceList;return this.eachTargetSeries((function(o){var n=[],r=o.getData();r.each(this.getDataDimension(r),(function(e,o){var r=a["a"].findPieceIndex(e,i);r===t&&n.push(o)}),this),e.push({seriesId:o.id,dataIndex:n})}),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 i=t.interval||[];e=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],i=["",""],o=this,r=this._pieceList.slice();if(r.length){var a=r[0].interval[0];a!==-1/0&&r.unshift({interval:[-1/0,a]}),a=r[r.length-1].interval[1],a!==1/0&&r.push({interval:[a,1/0]})}else r.push({interval:[-1/0,1/0]});var s=-1/0;return n["k"](r,(function(t){var e=t.interval;e&&(e[0]>s&&l([s,e[0]],"outOfRange"),l(e.slice()),s=e[1])}),this),{stops:e,outerColors:i}}function l(n,r){var a=o.getRepresentValue({interval:n});r||(r=o.getValueState(a));var s=t(a,r);n[0]===-1/0?i[0]=s:n[1]===1/0?i[1]=s:e.push({value:n[0],color:s},{value:n[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=Object(u["d"])(r["a"].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}(r["a"]),h={splitNumber:function(t){var e=this.option,i=Math.min(e.precision,20),o=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;var a=(o[1]-o[0])/r;while(+a.toFixed(i)!==a&&i<5)i++;e.precision=i,a=+a.toFixed(i),e.minOpen&&t.push({interval:[-1/0,o[0]],close:[0,0]});for(var s=0,u=o[0];s","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,i)}),this)}};function p(t,e){var i=t.inverse;("vertical"===t.orient?!i:i)&&e.reverse()}var d=c,f=i("997e"),g=i("0401"),v=i("d993"),y=i("9634"),m=i("162d"),b=i("beb0"),x=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return Object(o["b"])(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,i=e.get("textGap"),o=e.textStyleModel,r=o.getFont(),a=o.getTextColor(),s=this._getItemAlign(),l=e.itemSize,u=this._getViewData(),c=u.endsText,h=n["O"](e.get("showLabel",!0),!c);c&&this._renderEndsText(t,c[0],l,h,s),n["k"](u.viewPieceList,(function(o){var u=o.piece,c=new g["a"];c.onclick=n["c"](this._onItemClick,this,u),this._enableHoverLink(c,o.indexInModelPieceList);var p=e.getRepresentValue(u);if(this._createItemSymbol(c,p,[0,0,l[0],l[1]]),h){var d=this.visualMapModel.getValueState(p);c.add(new v["a"]({style:{x:"right"===s?-i:l[0]+i,y:l[1]/2,text:u.text,verticalAlign:"middle",align:s,font:r,fill:a,opacity:"outOfRange"===d?.5:1}}))}t.add(c)}),this),c&&this._renderEndsText(t,c[1],l,h,s),m["b"](e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var i=this;t.on("mouseover",(function(){return o("highlight")})).on("mouseout",(function(){return o("downplay")}));var o=function(t){var o=i.visualMapModel;o.option.hoverLink&&i.api.dispatchAction({type:t,batch:b["b"](o.findTargetDataIndices(e),o)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return b["a"](t,this.api,t.itemSize);var i=e.align;return i&&"auto"!==i||(i="left"),i},e.prototype._renderEndsText=function(t,e,i,o,n){if(e){var r=new g["a"],a=this.visualMapModel.textStyleModel;r.add(new v["a"]({style:{x:o?"right"===n?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:o?n:"center",text:e,font:a.getFont(),fill:a.getTextColor()}})),t.add(r)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=n["H"](t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),i=t.get("text"),o=t.get("orient"),r=t.get("inverse");return("horizontal"===o?r:!r)?e.reverse():i&&(i=i.slice().reverse()),{viewPieceList:e,endsText:i}},e.prototype._createItemSymbol=function(t,e,i){t.add(Object(y["a"])(this.getControllerVisual(e,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,i=e.option,o=n["d"](i.selected),r=e.getSelectedMapKey(t);"single"===i.selectedMode?(o[r]=!0,n["k"](o,(function(t,e){o[e]=e===r}))):o[r]=!o[r],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})},e.type="visualMap.piecewise",e}(f["a"]),_=x,M=i("1d0a");function w(t){t.registerComponentModel(d),t.registerComponentView(_),Object(M["a"])(t)}},"1d0a":function(t,e,i){"use strict";i.d(e,"a",(function(){return g}));var o={type:"selectDataRange",event:"dataRangeSelected",update:"update"},n=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))},r=i("6b42"),a=i("ee15"),s=i("d21a"),l=i("11c4"),u=[{createOnAllSeries:!0,reset:function(t,e){var i=[];return e.eachComponent("visualMap",(function(e){var o=t.pipelineContext;!e.isTargetSeries(t)||o&&o.large||i.push(a["c"](e.stateList,e.targetVisuals,r["c"](e.getValueState,e),e.getDataDimension(t.getData())))})),i}},{createOnAllSeries:!0,reset:function(t,e){var i=t.getData(),o=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var n=e.getVisualMeta(r["c"](c,null,t,e))||{stops:[],outerColors:[]},a=e.getDataDimension(i),s=i.getDimensionInfo(a);null!=s&&(n.dimension=s.index,o.push(n))}})),t.getData().setVisual("visualMeta",o)}}];function c(t,e,i,o){for(var n=e.targetVisuals[o],r=s["a"].prepareVisualTypes(n),a={color:Object(l["b"])(t.getData(),"color")},u=0,c=r.length;u0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(o,n),Object(r["k"])(u,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(p))}},2556:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var o=i("6b42"),n=i("73b6"),r=i("09f4"),a=i("6f6e");function s(t){var e,i,s,u,c=t.series,h=t.dataIndex,p=t.multipleSeries,d=c.getData(),f=d.mapDimensionsAll("defaultedTooltip"),g=f.length,v=c.getRawValue(h),y=Object(o["t"])(v),m=Object(n["e"])(c,h);if(g>1||y&&!g){var b=l(v,c,h,f,m);e=b.inlineValues,i=b.inlineValueTypes,s=b.blocks,u=b.inlineValues[0]}else if(g){var x=d.getDimensionInfo(f[0]);u=e=Object(r["e"])(d,h,f[0]),i=x.type}else u=e=y?v[0]:v;var _=Object(a["n"])(c),M=_&&c.name||"",w=d.getName(h),S=p?M:w;return Object(n["c"])("section",{header:M,noHeader:p||!_,sortParam:u,blocks:[Object(n["c"])("nameValue",{markerType:"item",markerColor:m,name:S,noName:!Object(o["T"])(S),value:e,valueType:i})].concat(s||[])})}function l(t,e,i,a,s){var l=e.getData(),u=Object(o["N"])(t,(function(t,e,i){var o=l.getDimensionInfo(i);return t||o&&!1!==o.tooltip&&null!=o.displayName}),!1),c=[],h=[],p=[];function d(t,e){var i=l.getDimensionInfo(e);i&&!1!==i.otherDims.tooltip&&(u?p.push(Object(n["c"])("nameValue",{markerType:"subItem",markerColor:s,name:i.displayName,value:t,valueType:i.type})):(c.push(t),h.push(i.type)))}return a.length?Object(o["k"])(a,(function(t){d(Object(r["e"])(l,i,t),t)})):Object(o["k"])(t,d),{inlineValues:c,inlineValueTypes:h,blocks:p}}},"418f":function(t,e,i){"use strict";i.d(e,"a",(function(){return at}));var o=i("f97c"),n=i("9b59"),r=i("cdbd"),a=i("5d5c"),s=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return Object(r["b"])(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={zlevel:0,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}(a["a"]),l=s,u=i("6b42"),c=i("8f0b"),h=i("463e"),p=i("32fb"),d=i("f48c"),f=i("f74c");function g(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}var v=i("73b6"),y=["-ms-","-moz-","-o-","-webkit-",""],m="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function b(t){return t="left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top",t}function x(t,e,i){if(!Object(u["C"])(i)||"inside"===i)return"";e=Object(f["b"])(e);var o=b(i),n="",r="";Object(u["r"])(["left","right"],o)>-1?(n=o+":-6px;top:50%;",r="translateY(-50%) rotate("+("left"===o?-225:-45)+"deg)"):(n=o+":-6px;left:50%;",r="translateX(-50%) rotate("+("top"===o?225:45)+"deg)"),r=Object(u["H"])(y,(function(t){return t+"transform:"+r})).join(";");var a=["position:absolute;width:10px;height:10px;",""+n+r+";","border-bottom: "+e+" solid 1px;","border-right: "+e+" solid 1px;","background-color: "+t+";","box-shadow: 8px 8px 16px -3px #000;"];return'
'}function _(t,e){var i="cubic-bezier(0.23, 1, 0.32, 1)",o="opacity "+t/2+"s "+i+",visibility "+t/2+"s "+i;return e||(o+=",left "+t+"s "+i+",top "+t+"s "+i),Object(u["H"])(y,(function(t){return t+"transition:"+o})).join(";")}function M(t){var e=[],i=t.get("fontSize"),o=t.getTextColor();o&&e.push("color:"+o),e.push("font:"+t.getFont()),i&&e.push("line-height:"+Math.round(3*i/2)+"px");var n=t.get("textShadowColor"),r=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return n&&r&&e.push("text-shadow:"+a+"px "+s+"px "+r+"px "+n),Object(u["k"])(["decoration","align"],(function(i){var o=t.get(i);o&&e.push("text-"+i+":"+o)})),e.join(";")}function w(t,e,i){var o=[],n=t.get("transitionDuration"),r=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),p=t.get("shadowOffsetY"),d=t.getModel("textStyle"),g=Object(v["d"])(t,"html"),y=l+"px "+p+"px "+a+"px "+s;return o.push("box-shadow:"+y),e&&n&&o.push(_(n,i)),r&&(c["a"].canvasSupported?o.push("background-Color:"+r):(o.push("background-Color:#"+Object(h["h"])(r)),o.push("filter:alpha(opacity=70)"))),Object(u["k"])(["width","color","radius"],(function(e){var i="border-"+e,n=Object(f["i"])(i),r=t.get(n);null!=r&&o.push(i+":"+r+("color"===e?"":"px"))})),o.push(M(d)),null!=g&&o.push("padding:"+Object(f["h"])(g).join("px ")+"px"),o.join(";")+";"}function S(t,e,i,o,n){var r=e&&e.painter;if(i){var a=r&&r.getViewportRoot();a&&Object(d["c"])(t,a,document.body,o,n)}else{t[0]=o,t[1]=n;var s=r&&r.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var O=function(){function t(t,e,i){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,c["a"].wxa)return null;var o=document.createElement("div");o.domBelongToZr=!0,this.el=o;var n=this._zr=e.getZr(),r=this._appendToBody=i&&i.appendToBody;S(this._styleCoord,n,r,e.getWidth()/2,e.getHeight()/2),r?document.body.appendChild(o):t.appendChild(o),this._container=t;var a=this;o.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},o.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=n.handler,i=n.painter.getViewportRoot();Object(p["e"])(i,t,!0),e.dispatch("mousemove",t)}},o.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e=this._container,i=e.currentStyle||document.defaultView.getComputedStyle(e),o=e.style;"absolute"!==o.position&&"absolute"!==i.position&&(o.position="relative");var n=t.get("alwaysShowContent");n&&this._moveIfResized(),this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,o=this._styleCoord,n=i.offsetHeight/2;e=Object(f["b"])(e),i.style.cssText=m+w(t,!this._firstShow,this._longHide)+";left:"+o[0]+"px;top:"+(o[1]-n)+"px;border-color: "+e+";"+(t.get("extraCssText")||""),i.style.display=i.innerHTML?"block":"none",i.style.pointerEvents=this._enterable?"auto":"none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,i,o,n){if(null!=t){var r=this.el;if(Object(u["C"])(n)&&"item"===i.get("trigger")&&!g(i)&&(t+=x(i.get("backgroundColor"),o,n)),Object(u["C"])(t))r.innerHTML=t;else if(t){r.innerHTML="",Object(u["t"])(t)||(t=[t]);for(var a=0;a=0?this._tryShow(i,o):"leave"===t&&this._hide(o))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,i=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!i.isDisposed()&&o.manuallyShowTip(t,e,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,i,o){if(o.from!==this.uid&&!c["a"].node){var n=tt(o,i);this._ticket="";var r=o.dataByCoordSys;if(o.tooltip&&null!=o.x&&null!=o.y){var a=$;a.x=o.x,a.y=o.y,a.update(),a.tooltip=o.tooltip,this._tryShow({offsetX:o.x,offsetY:o.y,target:a},n)}else if(r)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:r,tooltipOption:o.tooltipOption},n);else if(null!=o.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,o))return;var s=Object(H["a"])(o,e),l=s.point[0],u=s.point[1];null!=l&&null!=u&&this._tryShow({offsetX:l,offsetY:u,position:o.position,target:s.el},n)}else null!=o.x&&null!=o.y&&(i.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:i.getZr().findHover(o.x,o.y).target},n))}},e.prototype.manuallyHideTip=function(t,e,i,o){var n=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&n.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,o.from!==this.uid&&this._hide(tt(o,i))},e.prototype._manuallyAxisShowTip=function(t,e,i,o){var n=o.seriesIndex,r=o.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=n&&null!=r&&null!=a){var s=e.getSeriesByIndex(n);if(s){var l=s.getData(),u=Q([l.getItemModel(r),s,(s.coordinateSystem||{}).model,t]);if("axis"===u.get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:n,dataIndex:r,position:o.position}),!0}}},e.prototype._tryShow=function(t,e){var i=t.target,o=this._tooltipModel;if(o){this._lastX=t.offsetX,this._lastY=t.offsetY;var n=t.dataByCoordSys;n&&n.length?this._showAxisTooltip(n,t):i&&Object(Z["a"])(i,(function(t){return null!=Object(G["a"])(t).dataIndex}),!0)?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,i,e)):i&&i.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,i,e)):(this._lastDataByCoordSys=null,this._hide(e))}},e.prototype._showOrMove=function(t,e){var i=t.get("showDelay");e=u["c"](e,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(e,i):e()},e.prototype._showAxisTooltip=function(t,e){var i=this._ecModel,o=this._tooltipModel,n=[e.offsetX,e.offsetY],r=Q([e.tooltipOption,o]),a=this._renderMode,s=[],l=Object(v["c"])("section",{blocks:[],noHeader:!0}),c=[],h=new v["a"];K(t,(function(t){K(t.dataByAxis,(function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),o=t.value;if(e&&null!=o){var n=N["e"](o,e.axis,i,t.seriesDataIndices,t.valueLabelOpt),r=Object(v["c"])("section",{header:n,noHeader:!u["T"](n),sortBlocks:!0,blocks:[]});l.blocks.push(r),u["k"](t.seriesDataIndices,(function(l){var u=i.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,d=u.getDataParams(p);d.axisDim=t.axisDim,d.axisIndex=t.axisIndex,d.axisType=t.axisType,d.axisId=t.axisId,d.axisValue=E["c"](e.axis,{value:o}),d.axisValueLabel=n,d.marker=h.makeTooltipMarker("item",f["b"](d.color),a);var g=Object(Y["b"])(u.formatTooltip(p,!0,null));g.markupFragment&&r.blocks.push(g.markupFragment),g.markupText&&c.push(g.markupText),s.push(d)}))}}))})),l.blocks.reverse(),c.reverse();var p=e.position,d=r.get("order"),g=Object(v["b"])(l,h,a,d,i.get("useUTC"),r.get("textStyle"));g&&c.unshift(g);var y="richText"===a?"\n\n":"
",m=c.join(y);this._showOrMove(r,(function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(r,p,n[0],n[1],this._tooltipContent,s):this._showTooltipContent(r,m,s,Math.random()+"",n[0],n[1],p,null,h)}))},e.prototype._showSeriesItemTooltip=function(t,e,i){var o=Object(Z["a"])(e,(function(t){return null!=Object(G["a"])(t).dataIndex}),!0),n=this._ecModel,r=Object(G["a"])(o),a=r.seriesIndex,s=n.getSeriesByIndex(a),l=r.dataModel||s,u=r.dataIndex,c=r.dataType,h=l.getData(c),p=this._renderMode,d=Q([h.getItemModel(u),l,s&&(s.coordinateSystem||{}).model,this._tooltipModel]),g=d.get("trigger");if(null==g||"item"===g){var y=l.getDataParams(u,c),m=new v["a"];y.marker=m.makeTooltipMarker("item",f["b"](y.color),p);var b=Object(Y["b"])(l.formatTooltip(u,!1,c)),x=d.get("order"),_=b.markupFragment?Object(v["b"])(b.markupFragment,m,p,x,n.get("useUTC"),d.get("textStyle")):b.markupText,M="item_"+l.name+"_"+u;this._showOrMove(d,(function(){this._showTooltipContent(d,_,y,M,t.offsetX,t.offsetY,t.position,t.target,m)})),i({type:"showTip",dataIndexInside:u,dataIndex:h.getRawIndex(u),seriesIndex:a,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,i){var o=e.tooltip;if(u["C"](o)){var n=o;o={content:n,formatter:n}}var r=new B["a"](o,this._tooltipModel,this._ecModel),a=r.get("content"),s=Math.random()+"",l=new v["a"];this._showOrMove(r,(function(){this._showTooltipContent(r,a,r.get("formatterParams")||{},s,t.offsetX,t.offsetY,t.position,e,l)})),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,i,o,n,r,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var c=this._tooltipContent,h=t.get("formatter");a=a||t.get("position");var p=e,d=this._getNearestPoint([n,r],i,t.get("trigger"),t.get("borderColor"));if(h&&u["C"](h)){var g=t.ecModel.get("useUTC"),v=u["t"](i)?i[0]:i,y=v&&v.axisType&&v.axisType.indexOf("time")>=0;p=h,y&&(p=Object(X["h"])(v.axisValue,p,g)),p=f["d"](p,i,!0)}else if(u["w"](h)){var m=U((function(e,o){e===this._ticket&&(c.setContent(o,l,t,d.color,a),this._updatePosition(t,a,n,r,c,i,s))}),this);this._ticket=o,p=h(i,o,m)}c.setContent(p,l,t,d.color,a),c.show(t,d.color),this._updatePosition(t,a,n,r,c,i,s)}},e.prototype._getNearestPoint=function(t,e,i,o){return"axis"===i||u["t"](e)?{color:o||("html"===this._renderMode?"#fff":"none")}:u["t"](e)?void 0:{color:o||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,i,o,n,r,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var c=n.getSize(),h=t.get("align"),p=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),u["w"](e)&&(e=e([i,o],r,n.el,d,{viewSize:[s,l],contentSize:c.slice()})),u["t"](e))i=q(e[0],s),o=q(e[1],l);else if(u["z"](e)){var f=e;f.width=c[0],f.height=c[1];var v=R["g"](f,{width:s,height:l});i=v.x,o=v.y,h=null,p=null}else if(u["C"](e)&&a){var y=ot(e,d,c);i=y[0],o=y[1]}else{y=et(i,o,n,s,l,h?null:20,p?null:20);i=y[0],o=y[1]}if(h&&(i-=nt(h)?c[0]/2:"right"===h?c[0]:0),p&&(o-=nt(p)?c[1]/2:"bottom"===p?c[1]:0),g(t)){y=it(i,o,n,s,l);i=y[0],o=y[1]}n.moveTo(i,o)},e.prototype._updateContentNotChangedOnAxis=function(t){var e=this._lastDataByCoordSys,i=!!e&&e.length===t.length;return i&&K(e,(function(e,o){var n=e.dataByAxis||[],r=t[o]||{},a=r.dataByAxis||[];i=i&&n.length===a.length,i&&K(n,(function(t,e){var o=a[e]||{},n=t.seriesDataIndices||[],r=o.seriesDataIndices||[];i=i&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&n.length===r.length,i&&K(n,(function(t,e){var o=r[e];i=i&&t.seriesIndex===o.seriesIndex&&t.dataIndex===o.dataIndex}))}))})),this._lastDataByCoordSys=t,!!i},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){c["a"].node||(this._tooltipContent.dispose(),P["b"]("itemTooltip",e))},e.type="tooltip",e}(W["a"]);function Q(t){var e=t.pop();while(t.length){var i=t.pop();i&&(i instanceof B["a"]&&(i=i.get("tooltip",!0)),u["C"](i)&&(i={formatter:i}),e=new B["a"](i,e,e.ecModel))}return e}function tt(t,e){return t.dispatchAction||u["c"](e.dispatchAction,e)}function et(t,e,i,o,n,r,a){var s=i.getOuterSize(),l=s.width,u=s.height;return null!=r&&(t+l+r+2>o?t-=l+r:t+=r),null!=a&&(e+u+a>n?e-=u+a:e+=a),[t,e]}function it(t,e,i,o,n){var r=i.getOuterSize(),a=r.width,s=r.height;return t=Math.min(t+a,o)-a,e=Math.min(e+s,n)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function ot(t,e,i){var o=i[0],n=i[1],r=10,a=5,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-o/2,l=e.y+c/2-n/2;break;case"top":s=e.x+u/2-o/2,l=e.y-n-r;break;case"bottom":s=e.x+u/2-o/2,l=e.y+c+r;break;case"left":s=e.x-o-r-a,l=e.y+c/2-n/2;break;case"right":s=e.x+u+r+a,l=e.y+c/2-n/2}return[s,l]}function nt(t){return"center"===t||"middle"===t}var rt=J;function at(t){Object(n["a"])(o["a"]),t.registerComponentModel(l),t.registerComponentView(rt),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}))}},4876:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var o=i("9b59"),n=i("e537"),r=i("0b5d");function a(t){Object(o["a"])(n["a"]),Object(o["a"])(r["a"])}},"53d6":function(t,e,i){"use strict";i.d(e,"a",(function(){return h}));var o=i("a24b"),n=i("6b42"),r=i("6fd7"),a={type:"echarts:filter",transform:function(t){for(var e,i=t.upstream,a=Object(o["a"])(t.config,{valueGetterAttrMap:Object(n["g"])({dimension:!0}),prepareGetValue:function(t){var e="",o=t.dimension;Object(n["q"])(t,"dimension")||Object(r["b"])(e);var a=i.getDimensionInfo(o);return a||Object(r["b"])(e),{dimIdx:a.index}},getValue:function(t){return i.retrieveValueFromItem(e,t.dimIdx)}}),s=[],l=0,u=i.count();l1||e>0&&!t.noHeader,o=0;Object(n["k"])(t.blocks,(function(t){p(t).planLayout(t);var e=t.__gapLevelBetweenSubBlocks;e>=o&&(o=e+(!i||e&&("section"!==t.type||t.noHeader)?0:1))})),t.__gapLevelBetweenSubBlocks=o},build:function(t,e,i,n){var r=e.noHeader,a=v(e),u=f(t,e,r?i:a.html,n);if(r)return u;var c=Object(o["g"])(e.header,"ordinal",t.useUTC),h=l(n,t.renderMode).nameStyle;return"richText"===t.renderMode?x(t,c,h)+a.richText+u:y('
'+Object(o["c"])(c)+"
"+u,i)}},nameValue:{planLayout:function(t){t.__gapLevelBetweenSubBlocks=0},build:function(t,e,i,r){var a=t.renderMode,s=e.noName,u=e.noValue,c=!e.markerType,h=e.name,p=e.value,d=t.useUTC;if(!s||!u){var f=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),g=s?"":Object(o["g"])(h,"ordinal",d),v=e.valueType,M=u?[]:Object(n["t"])(p)?Object(n["H"])(p,(function(t,e){return Object(o["g"])(t,Object(n["t"])(v)?v[e]:v,d)})):[Object(o["g"])(p,Object(n["t"])(v)?v[0]:v,d)],w=!c||!s,S=!c&&s,O=l(r,a),C=O.nameStyle,T=O.valueStyle;return"richText"===a?(c?"":f)+(s?"":x(t,g,C))+(u?"":_(t,M,w,S,T)):y((c?"":f)+(s?"":m(g,!c,C))+(u?"":b(M,w,S,T)),i)}}}};function f(t,e,i,o){var a=[],s=e.blocks||[];Object(n["b"])(!s||Object(n["t"])(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Object(n["q"])(u,l)){var c=new r["a"](u[l],null);s.sort((function(t,e){return c.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===l&&s.reverse()}var h=v(e);if(Object(n["k"])(s,(function(e,i){var n=p(e).build(t,e,i>0?h.html:0,o);null!=n&&a.push(n)})),a.length)return"richText"===t.renderMode?a.join(h.richText):y(a.join(""),i)}function g(t,e,i,o,n,r){if(t){var a=p(t);a.planLayout(t);var s={useUTC:n,renderMode:i,orderMode:o,markupStyleCreator:e};return a.build(s,t,0,r)}}function v(t){var e=t.__gapLevelBetweenSubBlocks;return{html:u[e],richText:c[e]}}function y(t,e){var i='
',o="margin: "+e+"px 0 0";return'
'+t+i+"
"}function m(t,e,i){var n=e?"margin-left:2px":"";return''+Object(o["c"])(t)+""}function b(t,e,i,r){var a=i?"10px":"20px",s=e?"float:right;margin-left:"+a:"";return''+Object(n["H"])(t,(function(t){return Object(o["c"])(t)})).join("  ")+""}function x(t,e,i){return t.markupStyleCreator.wrapRichTextStyle(e,i)}function _(t,e,i,o,n){var r=[n],a=o?10:20;return i&&r.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(e.join(" "),r)}function M(t,e){var i=t.getData().getItemVisual(e,"style"),n=i[t.visualDrawType];return Object(o["b"])(n)}function w(t,e){var i=t.get("padding");return null!=i?i:"richText"===e?[8,10]:10}var S=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Object(a["h"])()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,i){var r="richText"===i?this._generateStyleName():null,a=Object(o["f"])({color:e,type:t,renderMode:i,markerId:r});return Object(n["C"])(a)?a:(this.richTextStyles[r]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(t,e){var i={};Object(n["t"])(e)?Object(n["k"])(e,(function(t){return Object(n["m"])(i,t)})):Object(n["m"])(i,e);var o=this._generateStyleName();return this.richTextStyles[o]=i,"{"+o+"|"+t+"}"},t}()},"797c":function(t,e,i){"use strict";i.d(e,"a",(function(){return ct}));var o=i("9b59"),n=i("dc0b"),r=i("cdbd"),a=i("6b42"),s=i("e5e6"),l=i("5d5c"),u=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return Object(r["b"])(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;a["k"](this.option.feature,(function(t,i){var o=s["b"](i);o&&(o.getDefaultOption&&(o.defaultOption=o.getDefaultOption(e)),a["I"](t,o.defaultOption))}))},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,zlevel:0,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}},e}(l["a"]),c=u,h=i("83d1"),p=i("032a"),d=i("c21f"),f=i("b5b0"),g=i("e92d"),v=i("532c"),y=i("c795"),m=i("ac97"),b=i("d993"),x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(e,t),e.prototype.render=function(t,e,i,o){var n=this.group;if(n.removeAll(),t.get("show")){var r=+t.get("itemSize"),l=t.get("feature")||{},u=this._features||(this._features={}),c=[];a["k"](l,(function(t,e){c.push(e)})),new g["a"](this._featureNames||[],c).add(y).update(y).remove(a["i"](y,null)).execute(),this._featureNames=c,v["a"](n,t,i),n.add(v["b"](n.getBoundingRect(),t)),n.eachChild((function(t){var e=t.__title,o=t.ensureState("emphasis"),s=o.textConfig||(o.textConfig={}),l=t.getTextContent(),u=l&&l.states.emphasis;if(u&&!a["w"](u)&&e){var c=u.style||(u.style={}),p=h["e"](e,b["a"].makeFont(c)),d=t.x+n.x,f=t.y+n.y+r,g=!1;f+p.height>i.getHeight()&&(s.position="top",g=!0);var v=g?-5-p.height:r+8;d+p.width/2>i.getWidth()?(s.position=["100%",v],c.align="right"):d-p.width/2<0&&(s.position=[0,v],c.align="left")}}))}function y(n,r){var a,h=c[n],p=c[r],g=l[h],v=new f["a"](g,t,t.ecModel);if(o&&null!=o.newTitle&&o.featureName===h&&(g.title=o.newTitle),h&&!p){if(_(h))a={onclick:v.option.onclick,featureName:h};else{var y=Object(s["b"])(h);if(!y)return;a=new y}u[h]=a}else if(a=u[p],!a)return;if(a.uid=Object(m["c"])("toolbox-feature"),a.model=v,a.ecModel=e,a.api=i,a instanceof s["a"]){if(!h&&p)return void(a.dispose&&a.dispose(e,i));if(!v.get("show")||a.unusable)return void(a.remove&&a.remove(e,i))}x(v,a,h),v.setIconStatus=function(t,e){var i=this.option,o=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[t]=e,o[t]&&("emphasis"===e?d["n"]:d["w"])(o[t])},a instanceof s["a"]&&a.render&&a.render(v,e,i,o)}function x(o,l,u){var c,h,f=o.getModel("iconStyle"),g=o.getModel(["emphasis","iconStyle"]),v=l instanceof s["a"]&&l.getIcons?l.getIcons():o.get("icon"),y=o.get("title")||{};"string"===typeof v?(c={},c[u]=v):c=v,"string"===typeof y?(h={},h[u]=y):h=y;var m=o.iconPaths={};a["k"](c,(function(s,u){var c=p["createIcon"](s,{},{x:-r/2,y:-r/2,width:r,height:r});c.setStyle(f.getItemStyle());var v=c.ensureState("emphasis");v.style=g.getItemStyle();var y=new b["a"]({style:{text:h[u],align:g.get("textAlign"),borderRadius:g.get("textBorderRadius"),padding:g.get("textPadding"),fill:null},ignore:!0});c.setTextContent(y);var x=t.getModel("tooltip");x&&x.get("show")&&(c.tooltip=a["m"]({content:h[u],formatter:x.get("formatter",!0)||function(){return h[u]},formatterParams:{componentType:"toolbox",name:u,title:h[u],$vars:["name","title"]},position:x.get("position",!0)||"bottom"},x.option)),c.__title=h[u],c.on("mouseover",(function(){var e=g.getItemStyle(),i="vertical"===t.get("orient")?null==t.get("right")?"right":"left":null==t.get("bottom")?"bottom":"top";y.setStyle({fill:g.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:g.get("textBackgroundColor")}),c.setTextConfig({position:g.get("textPosition")||i}),y.ignore=!t.get("showTitle"),Object(d["n"])(this)})).on("mouseout",(function(){"emphasis"!==o.get(["iconStatus",u])&&Object(d["w"])(this),y.hide()})),("emphasis"===o.get(["iconStatus",u])?d["n"]:d["w"])(c),n.add(c),c.on("click",a["c"](l.onclick,l,e,i,u)),m[u]=c}))}},e.prototype.updateView=function(t,e,i,o){a["k"](this._features,(function(t){t instanceof s["a"]&&t.updateView&&t.updateView(t.model,e,i,o)}))},e.prototype.remove=function(t,e){a["k"](this._features,(function(i){i instanceof s["a"]&&i.remove&&i.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){a["k"](this._features,(function(i){i instanceof s["a"]&&i.dispose&&i.dispose(t,e)}))},e.type="toolbox",e}(y["a"]);function _(t){return 0===t.indexOf("my")}var M=x,w=i("8f0b"),S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(e,t),e.prototype.onclick=function(t,e){var i=this.model,o=i.get("name")||t.get("title.0.text")||"echarts",n="svg"===e.getZr().painter.getType(),r=n?"svg":i.get("type",!0)||"png",a=e.getConnectedDataURL({type:r,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if("function"!==typeof MouseEvent||!w["a"].browser.newEdge&&(w["a"].browser.ie||w["a"].browser.edge))if(window.navigator.msSaveOrOpenBlob||n){var s=a.split(","),l=s[0].indexOf("base64")>-1,u=n?decodeURIComponent(s[1]):s[1];l&&(u=atob(u));var c=o+"."+r;if(window.navigator.msSaveOrOpenBlob){var h=u.length,p=new Uint8Array(h);while(h--)p[h]=u.charCodeAt(h);var d=new Blob([p]);window.navigator.msSaveOrOpenBlob(d,c)}else{var f=document.createElement("iframe");document.body.appendChild(f);var g=f.contentWindow,v=g.document;v.open("image/svg+xml","replace"),v.write(u),v.close(),g.focus(),v.execCommand("SaveAs",!0,c),document.body.removeChild(f)}}else{var y=i.get("lang"),m='',b=window.open();b.document.write(m),b.document.title=o}else{var x=document.createElement("a");x.download=o+"."+r,x.target="_blank",x.href=a;var _=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});x.dispatchEvent(_)}},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.getLocale(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocale(["toolbox","saveAsImage","lang"])};return e},e}(s["a"]);S.prototype.unusable=!w["a"].canvasSupported;var O=S,C=i("e81c"),T=i("6f6e"),k="__ec_magicType_stack__",I=[["line","bar"],["stack"]],j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),i={};return a["k"](t.get("type"),(function(t){e[t]&&(i[t]=e[t])})),i},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.getLocale(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return e},e.prototype.onclick=function(t,e,i){var o=this.model,n=o.get(["seriesIndex",i]);if(V[i]){var r,s={series:[]},l=function(t){var e=t.subType,n=t.id,r=V[i](e,n,t,o);r&&(a["j"](r,t.option),s.series.push(r));var l=t.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===i||"bar"===i)){var u=l.getAxesByScale("ordinal")[0];if(u){var c=u.dim,h=c+"Axis",p=t.getReferringComponents(h,T["b"]).models[0],d=p.componentIndex;s[h]=s[h]||[];for(var f=0;f<=d;f++)s[h][d]=s[h][d]||{};s[h][d].boundaryGap="bar"===i}}};a["k"](I,(function(t){a["r"](t,i)>=0&&a["k"](t,(function(t){o.setIconStatus(t,"normal")}))})),o.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:null==n?null:{seriesIndex:n}},l),"stack"===i&&(r=a["I"]({stack:o.option.title.tiled,tiled:o.option.title.stack},o.option.title)),e.dispatchAction({type:"changeMagicType",currentType:i,newOption:s,newTitle:r,featureName:"magicType"})}},e}(s["a"]),V={line:function(t,e,i,o){if("bar"===t)return a["I"]({id:e,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},o.get(["option","line"])||{},!0)},bar:function(t,e,i,o){if("line"===t)return a["I"]({id:e,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},o.get(["option","bar"])||{},!0)},stack:function(t,e,i,o){var n=i.get("stack")===k;if("line"===t||"bar"===t)return o.setIconStatus("stack",n?"normal":"emphasis"),a["I"]({id:e,stack:n?"":k},o.get(["option","stack"])||{},!0)}};C["c"]({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var L=j,A=i("32fb"),z=new Array(60).join("-"),D="\t";function H(t){var e={},i=[],o=[];return t.eachRawSeries((function(t){var n=t.coordinateSystem;if(!n||"cartesian2d"!==n.type&&"polar"!==n.type)i.push(t);else{var r=n.getBaseAxis();if("category"===r.type){var a=r.dim+"_"+r.index;e[a]||(e[a]={categoryAxis:r,valueAxis:n.getOtherAxis(r),series:[]},o.push({axisDim:r.dim,axisIndex:r.index})),e[a].series.push(t)}else i.push(t)}})),{seriesGroupByCategoryAxis:e,other:i,meta:o}}function R(t){var e=[];return a["k"](t,(function(t,i){var o=t.categoryAxis,n=t.valueAxis,r=n.dim,s=[" "].concat(a["H"](t.series,(function(t){return t.name}))),l=[o.model.getCategories()];a["k"](t.series,(function(t){var e=t.getRawData();l.push(t.getRawData().mapArray(e.mapDimension(r),(function(t){return t})))}));for(var u=[s.join(D)],c=0;c=0)return!0}var F=new RegExp("["+D+"]+","g");function W(t){for(var e=t.split(/\n+/g),i=E(e.shift()).split(F),o=[],n=a["H"](i,(function(t){return{name:t,data:[]}})),r=0;r1?"emphasis":"normal")}function lt(t,e,i,o,n){var r=i._isZoomActive;o&&"takeGlobalCursor"===o.type&&(r="dataZoomSelect"===o.key&&o.dataZoomSelectActive),i._isZoomActive=r,t.setIconStatus("zoom",r?"emphasis":"normal");var a=new Q["a"](at(t),e,{include:["grid"]}),s=a.makePanelOpts(n,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));i._brushController.setPanels(s).enableBrush(!(!r||!s.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}Object(et["b"])("dataZoom",(function(t){var e=t.getComponent("toolbox",0);if(e){var i=e.getModel(["feature","dataZoom"]),o=[],n=at(i),r=Object(T["s"])(t,n);return it(r.xAxisModels,(function(t){return a(t,"xAxis","xAxisIndex")})),it(r.yAxisModels,(function(t){return a(t,"yAxis","yAxisIndex")})),o}function a(t,e,n){var r=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:ot+e+r};a[n]=r,o.push(a)}}));var ut=nt;function ct(t){t.registerComponentModel(c),t.registerComponentView(M),Object(s["c"])("saveAsImage",O),Object(s["c"])("magicType",L),Object(s["c"])("dataView",U),Object(s["c"])("dataZoom",ut),Object(s["c"])("restore",$),Object(o["a"])(n["a"])}},"997e":function(t,e,i){"use strict";var o=i("cdbd"),n=i("6b42"),r=i("b8df"),a=i("f74c"),s=i("162d"),l=i("d21a"),u=i("c795"),c=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.autoPositionValues={left:1,right:1,top:1,bottom:1},i}return Object(o["b"])(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,i,o){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,i,o):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,i=a["h"](e.get("padding")||0),o=t.getBoundingRect();t.add(new r["a"]({z2:-1,silent:!0,shape:{x:o.x-i[3],y:o.y-i[0],width:o.width+i[3]+i[1],height:o.height+i[0]+i[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,e,i){i=i||{};var o=i.forceState,r=this.visualMapModel,a={};if("symbol"===e&&(a.symbol=r.get("itemSymbol")),"color"===e){var s=r.get("contentColor");a.color=s}function u(t){return a[t]}function c(t,e){a[t]=e}var h=r.controllerVisuals[o||r.getValueState(t)],p=l["a"].prepareVisualTypes(h);return n["k"](p,(function(o){var n=h[o];i.convertOpacityToAlpha&&"opacity"===o&&(o="colorAlpha",n=h.__alphaForOpacity),l["a"].dependsOn(o,e)&&n&&n.applyVisual(t,u,c)})),a[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,i=this.api;s["i"](t,e.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},e.prototype.doRender=function(t,e,i,o){},e.type="visualMap",e}(u["a"]);e["a"]=c},beb0:function(t,e,i){"use strict";i.d(e,"a",(function(){return a})),i.d(e,"b",(function(){return s}));var o=i("6b42"),n=i("162d"),r=[["left","right","width"],["top","bottom","height"]];function a(t,e,i){var o=t.option,a=o.align;if(null!=a&&"auto"!==a)return a;for(var s={width:e.getWidth(),height:e.getHeight()},l="horizontal"===o.orient?1:0,u=r[l],c=[0,null,10],h={},p=0;p<3;p++)h[r[1-l][p]]=c[p],h[u[p]]=2===p?i[0]:o[u[p]];var d=[["x","width",3],["y","height",0]][l],f=Object(n["g"])(h,s,o.padding);return u[(f.margin[d[2]]||0)+f[d[0]]+.5*f[d[1]]<.5*s[d[1]]?0:1]}function s(t,e){return o["k"](t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}},e516:function(t,e,i){"use strict";var o=i("cdbd"),n=i("6b42"),r=i("8f0b"),a=i("4626"),s=i("d21a"),l=i("ee15"),u=i("6f6e"),c=i("b0a0"),h=i("5d5c"),p=s["a"].mapVisual,d=s["a"].eachVisual,f=n["t"],g=n["k"],v=c["b"],y=c["k"],m=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.stateList=["inRange","outOfRange"],i.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],i.layoutMode={type:"box",ignoreSize:!0},i.dataBound=[-1/0,1/0],i.targetVisuals={},i.controllerVisuals={},i}return Object(o["b"])(e,t),e.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i)},e.prototype.optionUpdated=function(t,e){var i=this.option;r["a"].canvasSupported||(i.realtime=!1),!e&&l["d"](i,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=n["c"](t,this),this.controllerVisuals=l["b"](this.option.controller,e,t),this.targetVisuals=l["b"](this.option.target,e,t)},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,i){e.push(i)})):e=u["r"](t),e},e.prototype.eachTargetSeries=function(t,e){n["k"](this.getTargetSeriesIndices(),(function(i){var o=this.ecModel.getSeriesByIndex(i);o&&t.call(e,o)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(i){i===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,i){var o,r=this.option,a=r.precision,s=this.dataBound,l=r.formatter;i=i||["<",">"],n["t"](t)&&(t=t.slice(),o=!0);var u=e?t:o?[c(t[0]),c(t[1])]:c(t);return n["C"](l)?l.replace("{value}",o?u[0]:u).replace("{value2}",o?u[1]:u):n["w"](l)?o?l(t[0],t[1]):l(t):o?t[0]===s[0]?i[0]+" "+u[1]:t[1]===s[1]?i[1]+" "+u[0]:u[0]+" - "+u[1]:u;function c(t){return t===s[0]?"min":t===s[1]?"max":(+t).toFixed(Math.min(a,20))}},e.prototype.resetExtent=function(){var t=this.option,e=v([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimension=function(t){var e=this.option.dimension,i=t.dimensions;if(null!=e||i.length){if(null!=e)return t.getDimension(e);for(var o=t.dimensions,n=o.length-1;n>=0;n--){var r=o[n],a=t.getDimensionInfo(r);if(!a.isCalculationCoord)return r}}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,i={inRange:e.inRange,outOfRange:e.outOfRange},o=e.target||(e.target={}),r=e.controller||(e.controller={});n["I"](o,i),n["I"](r,i);var l=this.isCategory();function u(i){f(e.color)&&!i.inRange&&(i.inRange={color:e.color.slice().reverse()}),i.inRange=i.inRange||{color:t.get("gradientColor")}}function c(t,e,i){var o=t[e],n=t[i];o&&!n&&(n=t[i]={},g(o,(function(t,e){if(s["a"].isValidType(e)){var i=a["a"].get(e,"inactive",l);null!=i&&(n[e]=i,"color"!==e||n.hasOwnProperty("opacity")||n.hasOwnProperty("colorAlpha")||(n.opacity=[0,0]))}})))}function h(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,i=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,o=this.get("inactiveColor");g(this.stateList,(function(r){var a=this.itemSize,s=t[r];s||(s=t[r]={color:l?o:[o]}),null==s.symbol&&(s.symbol=e&&n["d"](e)||(l?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=i&&n["d"](i)||(l?a[0]:[a[0],a[0]])),s.symbol=p(s.symbol,(function(t){return"none"===t||"square"===t?"roundRect":t}));var u=s.symbolSize;if(null!=u){var c=-1/0;d(u,(function(t){t>c&&(c=t)})),s.symbolSize=p(u,(function(t){return y(t,[0,c],[0,a[0]],!0)}))}}),this)}u.call(this,o),u.call(this,r),c.call(this,o,"inRange","outOfRange"),h.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,zlevel: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}(h["a"]);e["a"]=m},e537:function(t,e,i){"use strict";i.d(e,"a",(function(){return N}));var o=i("cdbd"),n=i("6b42"),r=i("e516"),a=i("b0a0"),s=i("ac97"),l=[20,140],u=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return Object(o["b"])(e,t),e.prototype.optionUpdated=function(e,i){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]=l[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=l[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):n["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),n["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=a["b"]((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=i[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(i){var o=[],n=i.getData();n.each(this.getDataDimension(n),(function(e,i){t[0]<=e&&e<=t[1]&&o.push(i)}),this),e.push({seriesId:i.id,dataIndex:o})}),this),e},e.prototype.getVisualMeta=function(t){var e=c(this,"outOfRange",this.getExtent()),i=c(this,"inRange",this.option.range.slice()),o=[];function n(e,i){o.push({value:e,color:t(e,i)})}for(var r=0,a=0,s=i.length,l=e.length;at[1])break;o.push({color:this.getControllerVisual(a,"color",e),offset:r/i})}return o.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),o},e.prototype._createBarPoints=function(t,e){var i=this.visualMapModel.itemSize;return[[i[0]-e[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,i=this.visualMapModel.get("inverse");return new v["a"]("horizontal"!==e||i?"horizontal"===e&&i?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||i?{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 i=this._shapes,o=this.visualMapModel,n=i.handleThumbs,r=i.handleLabels,a=o.itemSize,s=o.getExtent();I([0,1],(function(l){var u=n[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var c=k(t[l],[0,a[1]],s,!0),h=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=h/a[0],u.x=a[0]-h/2;var p=m["applyTransform"](i.handleLabelPoints[l],m["getTransform"](u,this.group));r[l].setStyle({x:p[0],y:p[1],text:o.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",i.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,i,o){var n=this.visualMapModel,r=n.getExtent(),a=n.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",c),p=this.getControllerVisual(t,"symbolSize"),d=k(t,r,s,!0),f=a[0]-p/2,g={x:u.x,y:u.y};u.y=d,u.x=f;var v=m["applyTransform"](l.indicatorLabelPoint,m["getTransform"](u,this.group)),y=l.indicatorLabel;y.attr("invisible",!1);var b=this._applyTransform("left",l.mainGroup),x=this._orient,_="horizontal"===x;y.setStyle({text:(i||"")+n.formatValueText(e),verticalAlign:_?b:"middle",align:_?"center":b});var M={x:f,y:d,style:{fill:h}},w={style:{x:v[0],y:v[1]}};if(n.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var S={duration:100,easing:"cubicInOut",additive:!0};u.x=g.x,u.y=g.y,u.animateTo(M,S),y.animateTo(w,S)}else u.attr(M),y.attr(w);this._firstShowIndicator=!1;var O=this._shapes.handleLabels;if(O)for(var C=0;Cn[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,h=[];(e||R(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(u));var p=M["d"](c,h);this._dispatchHighDown("downplay",_["b"](p[0],i)),this._dispatchHighDown("highlight",_["b"](p[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e=t.target,i=this.visualMapModel;if(e&&null!=Object(T["a"])(e).dataIndex){var o=Object(T["a"])(e),n=this.ecModel.getSeriesByIndex(o.seriesIndex);if(i.isTargetSeries(n)){var r=n.getData(o.dataType),a=r.get(i.getDataDimension(r),o.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},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 i=0;i