/*! * build: Hopaheal * copyright: Mead * time: 2022-9-23 10:41:22 */ (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9a60431a"],{"0219":function(t,e,i){"use strict";i.d(e,"a",(function(){return p}));var o=i("57eb"),n=i("ba54"),r=i("5d30"),a={type:"echarts:filter",transform:function(t){for(var e,i=t.upstream,a=Object(o["a"])(t.config,{valueGetterAttrMap:Object(n["f"])({dimension:!0}),prepareGetValue:function(t){var e="",o=t.dimension;Object(n["q"])(t,"dimension")||Object(r["c"])(e);var a=i.getDimensionInfo(o);return a||Object(r["c"])(e),{dimIdx:a.index}},getValue:function(t){return i.retrieveValueFromItem(e,t.dimIdx)}}),s=[],l=0,c=i.count();l"],n["t"](t)&&(t=t.slice(),o=!0);var c=e?t:o?[u(t[0]),u(t[1])]:u(t);return n["C"](l)?l.replace("{value}",o?c[0]:c).replace("{value2}",o?c[1]:c):n["w"](l)?o?l(t[0],t[1]):l(t):o?t[0]===s[0]?i[0]+" "+c[1]:t[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1]:c;function u(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=f([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 i=t.dimensions,o=i.length-1;o>=0;o--){var n=i[o],r=t.getDimensionInfo(n);if(!r.isCalculationCoord)return r.storeDimIndex}},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={}),s=e.controller||(e.controller={});n["I"](o,i),n["I"](s,i);var l=this.isCategory();function c(i){d(e.color)&&!i.inRange&&(i.inRange={color:e.color.slice().reverse()}),i.inRange=i.inRange||{color:t.get("gradientColor")}}function u(t,e,i){var o=t[e],n=t[i];o&&!n&&(n=t[i]={},g(o,(function(t,e){if(a["a"].isValidType(e)){var i=r["a"].get(e,"inactive",l);null!=i&&(n[e]=i,"color"!==e||n.hasOwnProperty("opacity")||n.hasOwnProperty("colorAlpha")||(n.opacity=[0,0]))}})))}function f(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,i=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,o=this.get("inactiveColor"),r=this.getItemSymbol(),a=r||"roundRect";g(this.stateList,(function(r){var s=this.itemSize,c=t[r];c||(c=t[r]={color:l?o:[o]}),null==c.symbol&&(c.symbol=e&&n["d"](e)||(l?a:[a])),null==c.symbolSize&&(c.symbolSize=i&&n["d"](i)||(l?s[0]:[s[0],s[0]])),c.symbol=p(c.symbol,(function(t){return"none"===t?a:t}));var u=c.symbolSize;if(null!=u){var d=-1/0;h(u,(function(t){t>d&&(d=t)})),c.symbolSize=p(u,(function(t){return v(t,[0,d],[0,s[0]],!0)}))}}),this)}c.call(this,o),c.call(this,s),u.call(this,o,"inRange","outOfRange"),f.call(this,s)},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}(u["a"]);e["a"]=m},"25e3":function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var o=i("ba54"),n=i("4a78"),r=i("ccea"),a=i("6d8b");function s(t){var e,i,s,c,u=t.series,p=t.dataIndex,h=t.multipleSeries,d=u.getData(),g=d.mapDimensionsAll("defaultedTooltip"),f=g.length,v=u.getRawValue(p),m=Object(o["t"])(v),y=Object(n["e"])(u,p);if(f>1||m&&!f){var b=l(v,u,p,g,y);e=b.inlineValues,i=b.inlineValueTypes,s=b.blocks,c=b.inlineValues[0]}else if(f){var x=d.getDimensionInfo(g[0]);c=e=Object(r["e"])(d,p,g[0]),i=x.type}else c=e=m?v[0]:v;var _=Object(a["n"])(u),M=_&&u.name||"",O=d.getName(p),S=h?M:O;return Object(n["c"])("section",{header:M,noHeader:h||!_,sortParam:c,blocks:[Object(n["c"])("nameValue",{markerType:"item",markerColor:y,name:S,noName:!Object(o["T"])(S),value:e,valueType:i})].concat(s||[])})}function l(t,e,i,a,s){var l=e.getData(),c=Object(o["N"])(t,(function(t,e,i){var o=l.getDimensionInfo(i);return t||o&&!1!==o.tooltip&&null!=o.displayName}),!1),u=[],p=[],h=[];function d(t,e){var i=l.getDimensionInfo(e);i&&!1!==i.otherDims.tooltip&&(c?h.push(Object(n["c"])("nameValue",{markerType:"subItem",markerColor:s,name:i.displayName,value:t,valueType:i.type})):(u.push(t),p.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:u,inlineValueTypes:p,blocks:h}}},"29b2":function(t,e,i){"use strict";i.d(e,"a",(function(){return a})),i.d(e,"b",(function(){return s}));var o=i("ba54"),n=i("70b8"),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,c=r[l],u=[0,null,10],p={},h=0;h<3;h++)p[r[1-l][h]]=u[h],p[c[h]]=2===h?i[0]:o[c[h]];var d=[["x","width",3],["y","height",0]][l],g=Object(n["g"])(p,s,o.padding);return c[(g.margin[d[2]]||0)+g[d[0]]+.5*g[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}},"4a78":function(t,e,i){"use strict";i.d(e,"c",(function(){return p})),i.d(e,"b",(function(){return m})),i.d(e,"e",(function(){return S})),i.d(e,"d",(function(){return w})),i.d(e,"a",(function(){return C}));var o=i("599e"),n=i("ba54"),r=i("e13f"),a=i("fa5c"),s="line-height:1";function l(t,e){var i=t.color||"#6e7079",n=t.fontSize||12,r=t.fontWeight||"400",a=t.color||"#464646",s=t.fontSize||14,l=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+Object(o["c"])(n+"")+"px;color:"+Object(o["c"])(i)+";font-weight:"+Object(o["c"])(r+""),valueStyle:"font-size:"+Object(o["c"])(s+"")+"px;color:"+Object(o["c"])(a)+";font-weight:"+Object(o["c"])(l+"")}:{nameStyle:{fontSize:n,fill:i,fontWeight:r},valueStyle:{fontSize:s,fill:a,fontWeight:l}}}var c=[0,10,20,30],u=["","\n","\n\n","\n\n\n"];function p(t,e){return e.type=t,e}function h(t){return"section"===t.type}function d(t){return h(t)?f:v}function g(t){if(h(t)){var e=0,i=t.blocks.length,o=i>1||i>0&&!t.noHeader;return Object(n["k"])(t.blocks,(function(t){var i=g(t);i>=e&&(e=i+ +(o&&(!i||h(t)&&!t.noHeader)))})),e}return 0}function f(t,e,i,a){var c=e.noHeader,u=y(g(e)),p=[],h=e.blocks||[];Object(n["b"])(!h||Object(n["t"])(h)),h=h||[];var f=t.orderMode;if(e.sortBlocks&&f){h=h.slice();var v={valueAsc:"asc",valueDesc:"desc"};if(Object(n["q"])(v,f)){var m=new r["a"](v[f],null);h.sort((function(t,e){return m.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===f&&h.reverse()}Object(n["k"])(h,(function(i,o){var r=e.valueFormatter,s=d(i)(r?Object(n["m"])(Object(n["m"])({},t),{valueFormatter:r}):t,i,o>0?u.html:0,a);null!=s&&p.push(s)}));var x="richText"===t.renderMode?p.join(u.richText):b(p.join(""),c?i:u.html);if(c)return x;var _=Object(o["g"])(e.header,"ordinal",t.useUTC),O=l(a,t.renderMode).nameStyle;return"richText"===t.renderMode?M(t,_,O)+u.richText+x:b('
'+Object(o["c"])(_)+"
"+x,i)}function v(t,e,i,r){var a=t.renderMode,s=e.noName,c=e.noValue,u=!e.markerType,p=e.name,h=t.useUTC,d=e.valueFormatter||t.valueFormatter||function(t){return t=Object(n["t"])(t)?t:[t],Object(n["H"])(t,(function(t,e){return Object(o["g"])(t,Object(n["t"])(v)?v[e]:v,h)}))};if(!s||!c){var g=u?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),f=s?"":Object(o["g"])(p,"ordinal",h),v=e.valueType,m=c?[]:d(e.value),y=!u||!s,S=!u&&s,w=l(r,a),C=w.nameStyle,T=w.valueStyle;return"richText"===a?(u?"":g)+(s?"":M(t,f,C))+(c?"":O(t,m,y,S,T)):b((u?"":g)+(s?"":x(f,!u,C))+(c?"":_(m,y,S,T)),i)}}function m(t,e,i,o,n,r){if(t){var a=d(t),s={useUTC:n,renderMode:i,orderMode:o,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,r)}}function y(t){return{html:c[t],richText:u[t]}}function b(t,e){var i='
',o="margin: "+e+"px 0 0";return'
'+t+i+"
"}function x(t,e,i){var n=e?"margin-left:2px":"";return''+Object(o["c"])(t)+""}function _(t,e,i,r){var a=i?"10px":"20px",s=e?"float:right;margin-left:"+a:"";return t=Object(n["t"])(t)?t:[t],''+Object(n["H"])(t,(function(t){return Object(o["c"])(t)})).join("  ")+""}function M(t,e,i){return t.markupStyleCreator.wrapRichTextStyle(e,i)}function O(t,e,i,o,r){var a=[r],s=o?10:20;return i&&a.push({padding:[0,0,0,s],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(n["t"])(e)?e.join(" "):e,a)}function S(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 C=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}()},6395:function(t,e,i){"use strict";i.d(e,"a",(function(){return f}));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("ba54"),a=i("c1e1"),s=i("6306"),l=i("af85"),c=[{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.getDataDimensionIndex(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"](u,null,t,e))||{stops:[],outerColors:[]},a=e.getDataDimensionIndex(i);a>=0&&(n.dimension=a,o.push(n))}})),t.getData().setVisual("visualMeta",o)}}];function u(t,e,i,o){for(var n=e.targetVisuals[o],r=s["a"].prepareVisualTypes(n),a={color:Object(l["b"])(t.getData(),"color")},c=0,u=r.length;c0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(o,n),Object(r["k"])(c,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(h))}},"63f7":function(t,e,i){"use strict";i.d(e,"a",(function(){return pt}));var o=i("3bd0"),n=i("7b1d"),r=i("08c2"),a=i("d07b"),s=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return Object(r["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}(a["a"]),l=s,c=i("ba54"),u=i("f505"),p=i("13be"),h=i("dbc8"),d=i("599e");function g(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function f(t){if(u["a"].domSupported)for(var e=document.documentElement.style,i=0,o=t.length;i-1?(l+="top:50%",u+="translateY(-50%) rotate("+(r="left"===a?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(r="top"===a?225:45)+"deg)");var p=r*Math.PI/180,h=s+n,g=h*Math.abs(Math.cos(p))+h*Math.abs(Math.sin(p)),f=Math.round(100*((g-Math.SQRT2*n)/2+Math.SQRT2*n-(g-h)/2))/100;l+=";"+a+":-"+f+"px";var v=e+" solid "+n+"px;",m=["position:absolute;width:"+s+"px;height:"+s+"px;",l+";"+u+";","border-bottom:"+v,"border-right:"+v,"background-color:"+o+";"];return'
'}function C(t,e){var i="cubic-bezier(0.23,1,0.32,1)",o=" "+t/2+"s "+i,n="opacity"+o+",visibility"+o;return e||(o=" "+t+"s "+i,n+=u["a"].transformSupported?","+M+o:",left"+o+",top"+o),_+":"+n}function T(t,e,i){var o=t.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!u["a"].transformSupported)return i?"top:"+n+";left:"+o+";":[["top",n],["left",o]];var r=u["a"].transform3dSupported,a="translate"+(r?"3d":"")+"("+o+","+n+(r?",0":"")+")";return i?"top:0;left:0;"+M+":"+a+";":[["top",0],["left",0],[v,a]]}function k(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(c["k"])(["decoration","align"],(function(i){var o=t.get(i);o&&e.push("text-"+i+":"+o)})),e.join(";")}function I(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"),u=t.get("shadowOffsetY"),p=t.getModel("textStyle"),h=Object(x["d"])(t,"html"),g=l+"px "+u+"px "+a+"px "+s;return o.push("box-shadow:"+g),e&&n&&o.push(C(n,i)),r&&o.push("background-color:"+r),Object(c["k"])(["width","color","radius"],(function(e){var i="border-"+e,n=Object(d["i"])(i),r=t.get(n);null!=r&&o.push(i+":"+r+("color"===e?"":"px"))})),o.push(k(p)),null!=h&&o.push("padding:"+Object(d["h"])(h).join("px ")+"px"),o.join(";")+";"}function j(t,e,i,o,n){var r=e&&e.painter;if(i){var a=r&&r.getViewportRoot();a&&Object(h["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 A=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,u["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;j(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=b(e,"position"),o=e.style;"absolute"!==o.position&&"absolute"!==i&&(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=i.style,n=this._styleCoord;i.innerHTML?o.cssText=O+I(t,!this._firstShow,this._longHide)+T(n[0],n[1],!0)+"border-color:"+Object(d["b"])(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):o.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,i,o,n){var r=this.el;if(null!=t){var a="";if(Object(c["C"])(n)&&"item"===i.get("trigger")&&!g(i)&&(a=w(i,o,n)),Object(c["C"])(t))r.innerHTML=t+a;else if(t){r.innerHTML="",Object(c["t"])(t)||(t=[t]);for(var s=0;s=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,o=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==o&&"click"!==o){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!i.isDisposed()&&n.manuallyShowTip(t,e,i,{x:n._lastX,y:n._lastY,dataByCoordSys:n._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,i,o){if(o.from!==this.uid&&!u["a"].node&&i.getDom()){var n=nt(o,i);this._ticket="";var r=o.dataByCoordSys,a=ct(o,e,i);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:o.position,positionDefault:"bottom"},n)}else if(o.tooltip&&null!=o.x&&null!=o.y){var l=et;l.x=o.x,l.y=o.y,l.update(),Object(Q["a"])(l).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:l},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 c=Object(G["a"])(o,e),p=c.point[0],h=c.point[1];null!=p&&null!=h&&this._tryShow({offsetX:p,offsetY:h,target:c.el,position:o.position,positionDefault:"bottom"},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(nt(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(),c=ot([l.getItemModel(r),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===c.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;if(n&&n.length)this._showAxisTooltip(n,t);else if(i){var r,a;this._lastDataByCoordSys=null,Object($["a"])(i,(function(t){return null!=Object(Q["a"])(t).dataIndex?(r=t,!0):null!=Object(Q["a"])(t).tooltipConfig?(a=t,!0):void 0}),!0),r?this._showSeriesItemTooltip(t,r,e):a?this._showComponentItemTooltip(t,a,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var i=t.get("showDelay");e=Object(c["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=ot([e.tooltipOption],o),a=this._renderMode,s=[],l=Object(x["c"])("section",{blocks:[],noHeader:!0}),u=[],p=new x["a"];Object(c["k"])(t,(function(t){Object(c["k"])(t.dataByAxis,(function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),n=t.value;if(e&&null!=n){var r=U["e"](n,e.axis,i,t.seriesDataIndices,t.valueLabelOpt),h=Object(x["c"])("section",{header:r,noHeader:!Object(c["T"])(r),sortBlocks:!0,blocks:[]});l.blocks.push(h),Object(c["k"])(t.seriesDataIndices,(function(l){var g=i.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,v=g.getDataParams(f);if(!(v.dataIndex<0)){v.axisDim=t.axisDim,v.axisIndex=t.axisIndex,v.axisType=t.axisType,v.axisId=t.axisId,v.axisValue=Y["c"](e.axis,{value:n}),v.axisValueLabel=r,v.marker=p.makeTooltipMarker("item",Object(d["b"])(v.color),a);var m=Object(J["b"])(g.formatTooltip(f,!0,null)),y=m.frag;if(y){var b=ot([g],o).get("valueFormatter");h.blocks.push(b?Object(c["m"])({valueFormatter:b},y):y)}m.text&&u.push(m.text),s.push(v)}}))}}))})),l.blocks.reverse(),u.reverse();var h=e.position,g=r.get("order"),f=Object(x["b"])(l,p,a,g,i.get("useUTC"),r.get("textStyle"));f&&u.unshift(f);var v="richText"===a?"\n\n":"
",m=u.join(v);this._showOrMove(r,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(r,h,n[0],n[1],this._tooltipContent,s):this._showTooltipContent(r,m,s,Math.random()+"",n[0],n[1],h,null,p)}))},e.prototype._showSeriesItemTooltip=function(t,e,i){var o=this._ecModel,n=Object(Q["a"])(e),r=n.seriesIndex,a=o.getSeriesByIndex(r),s=n.dataModel||a,l=n.dataIndex,u=n.dataType,p=s.getData(u),h=this._renderMode,g=t.positionDefault,f=ot([p.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),v=f.get("trigger");if(null==v||"item"===v){var m=s.getDataParams(l,u),y=new x["a"];m.marker=y.makeTooltipMarker("item",Object(d["b"])(m.color),h);var b=Object(J["b"])(s.formatTooltip(l,!1,u)),_=f.get("order"),M=f.get("valueFormatter"),O=b.frag,S=O?Object(x["b"])(M?Object(c["m"])({valueFormatter:M},O):O,y,h,_,o.get("useUTC"),f.get("textStyle")):b.text,w="item_"+s.name+"_"+l;this._showOrMove(f,(function(){this._showTooltipContent(f,S,m,w,t.offsetX,t.offsetY,t.position,t.target,y)})),i({type:"showTip",dataIndexInside:l,dataIndex:p.getRawIndex(l),seriesIndex:r,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,i){var o=Object(Q["a"])(e),n=o.tooltipConfig,r=n.option||{};if(Object(c["C"])(r)){var a=r;r={content:a,formatter:a}}var s=[r],l=this._ecModel.getComponent(o.componentMainType,o.componentIndex);l&&s.push(l),s.push({formatter:r.content});var u=t.positionDefault,p=ot(s,this._tooltipModel,u?{position:u}:null),h=p.get("content"),d=Math.random()+"",g=new x["a"];this._showOrMove(p,(function(){var i=Object(c["d"])(p.get("formatterParams")||{});this._showTooltipContent(p,h,i,d,t.offsetX,t.offsetY,t.position,e,g)})),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 u=this._tooltipContent;u.setEnterable(t.get("enterable"));var p=t.get("formatter");a=a||t.get("position");var h=e,g=this._getNearestPoint([n,r],i,t.get("trigger"),t.get("borderColor")),f=g.color;if(p)if(Object(c["C"])(p)){var v=t.ecModel.get("useUTC"),m=Object(c["t"])(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=p,y&&(h=Object(q["h"])(m.axisValue,h,v)),h=Object(d["d"])(h,i,!0)}else if(Object(c["w"])(p)){var b=Object(c["c"])((function(e,o){e===this._ticket&&(u.setContent(o,l,t,f,a),this._updatePosition(t,a,n,r,u,i,s))}),this);this._ticket=o,h=p(i,o,b)}else h=p;u.setContent(h,l,t,f,a),u.show(t,f),this._updatePosition(t,a,n,r,u,i,s)}},e.prototype._getNearestPoint=function(t,e,i,o){return"axis"===i||Object(c["t"])(e)?{color:o||("html"===this._renderMode?"#fff":"none")}:Object(c["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 u=n.getSize(),p=t.get("align"),h=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),Object(c["w"])(e)&&(e=e([i,o],r,n.el,d,{viewSize:[s,l],contentSize:u.slice()})),Object(c["t"])(e))i=Object(E["o"])(e[0],s),o=Object(E["o"])(e[1],l);else if(Object(c["A"])(e)){var f=e;f.width=u[0],f.height=u[1];var v=Object(F["g"])(f,{width:s,height:l});i=v.x,o=v.y,p=null,h=null}else if(Object(c["C"])(e)&&a){var m=st(e,d,u,t.get("borderWidth"));i=m[0],o=m[1]}else{m=rt(i,o,n,s,l,p?null:20,h?null:20);i=m[0],o=m[1]}if(p&&(i-=lt(p)?u[0]/2:"right"===p?u[0]:0),h&&(o-=lt(h)?u[1]/2:"bottom"===h?u[1]:0),g(t)){m=at(i,o,n,s,l);i=m[0],o=m[1]}n.moveTo(i,o)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var i=this._lastDataByCoordSys,o=this._cbParamsList,n=!!i&&i.length===t.length;return n&&Object(c["k"])(i,(function(i,r){var a=i.dataByAxis||[],s=t[r]||{},l=s.dataByAxis||[];n=n&&a.length===l.length,n&&Object(c["k"])(a,(function(t,i){var r=l[i]||{},a=t.seriesDataIndices||[],s=r.seriesDataIndices||[];n=n&&t.value===r.value&&t.axisType===r.axisType&&t.axisId===r.axisId&&a.length===s.length,n&&Object(c["k"])(a,(function(t,e){var i=s[e];n=n&&t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex})),o&&Object(c["k"])(t.seriesDataIndices,(function(t){var i=t.seriesIndex,r=e[i],a=o[i];r&&a&&a.data!==r.data&&(n=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!n},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!u["a"].node&&e.getDom()&&(Object(tt["a"])(this,"_updatePosition"),this._tooltipContent.dispose(),X["b"]("itemTooltip",e))},e.type="tooltip",e}(K["a"]);function ot(t,e,i){var o,n=e.ecModel;i?(o=new W["a"](i,n,n),o=new W["a"](e.option,o,n)):o=e;for(var r=t.length-1;r>=0;r--){var a=t[r];a&&(a instanceof W["a"]&&(a=a.get("tooltip",!0)),Object(c["C"])(a)&&(a={formatter:a}),a&&(o=new W["a"](a,o,n)))}return o}function nt(t,e){return t.dispatchAction||Object(c["c"])(e.dispatchAction,e)}function rt(t,e,i,o,n,r,a){var s=i.getSize(),l=s[0],c=s[1];return null!=r&&(t+l+r+2>o?t-=l+r:t+=r),null!=a&&(e+c+a>n?e-=c+a:e+=a),[t,e]}function at(t,e,i,o,n){var r=i.getSize(),a=r[0],s=r[1];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 st(t,e,i,o){var n=i[0],r=i[1],a=Math.ceil(Math.SQRT2*o)+8,s=0,l=0,c=e.width,u=e.height;switch(t){case"inside":s=e.x+c/2-n/2,l=e.y+u/2-r/2;break;case"top":s=e.x+c/2-n/2,l=e.y-r-a;break;case"bottom":s=e.x+c/2-n/2,l=e.y+u+a;break;case"left":s=e.x-n-a,l=e.y+u/2-r/2;break;case"right":s=e.x+c+a,l=e.y+u/2-r/2}return[s,l]}function lt(t){return"center"===t||"middle"===t}function ct(t,e,i){var o=Object(Z["t"])(t).queryOptionMap,n=o.keys()[0];if(n&&"series"!==n){var r=Object(Z["v"])(e,n,o.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),a=r.models[0];if(a){var s,l=i.getViewOfComponentModel(a);return l.group.traverse((function(e){var i=Object(Q["a"])(e).tooltipConfig;if(i&&i.name===t.name)return s=e,!0})),s?{componentMainType:n,componentIndex:a.componentIndex,el:s}:void 0}}}var ut=it;function pt(t){Object(n["a"])(o["a"]),t.registerComponentModel(l),t.registerComponentView(ut),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},c["L"]),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},c["L"])}},"6c4e":function(t,e,i){"use strict";i.d(e,"a",(function(){return g}));var o=i("08c2"),n=i("7b1d"),r=i("7588"),a=i("b667"),s=i("21f3"),l=i("d8ee"),c=i("b71b"),u=i("3bd0"),p=i("c6a49"),h=i("1b79"),d=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return Object(o["a"])(e,t),e.type="single",e}(r["a"]);function g(t){Object(n["a"])(u["a"]),p["a"].registerAxisPointerClass("SingleAxisPointer",h["a"]),t.registerComponentView(d),t.registerComponentView(a["a"]),t.registerComponentModel(l["a"]),Object(s["a"])(t,"single",l["a"],l["a"].defaultOption),t.registerCoordinateSystem("single",c["a"])}},"88cf":function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var o=i("7b1d"),n=i("9a23"),r=i("d38b");function a(t){Object(o["a"])(n["a"]),Object(o["a"])(r["a"])}},"9a23":function(t,e,i){"use strict";i.d(e,"a",(function(){return G}));var o=i("08c2"),n=i("ba54"),r=i("25ad"),a=i("fa5c"),s=i("d5c1"),l=[20,140],c=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return Object(o["a"])(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["c"]((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.getDataDimensionIndex(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=u(this,"outOfRange",this.getExtent()),i=u(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();j([0,1],(function(l){var c=n[l];c.setStyle("fill",e.handlesColor[l]),c.y=t[l];var u=I(t[l],[0,a[1]],s,!0),p=this.getControllerVisual(u,"symbolSize");c.scaleX=c.scaleY=p/a[0],c.x=a[0]-p/2;var h=y["applyTransform"](i.handleLabelPoints[l],y["getTransform"](c,this.group));r[l].setStyle({x:h[0],y:h[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,c=l.indicator;if(c){c.attr("invisible",!1);var u={convertOpacityToAlpha:!0},p=this.getControllerVisual(t,"color",u),h=this.getControllerVisual(t,"symbolSize"),d=I(t,r,s,!0),g=a[0]-h/2,f={x:c.x,y:c.y};c.y=d,c.x=g;var v=y["applyTransform"](l.indicatorLabelPoint,y["getTransform"](c,this.group)),m=l.indicatorLabel;m.attr("invisible",!1);var b=this._applyTransform("left",l.mainGroup),x=this._orient,_="horizontal"===x;m.setStyle({text:(i||"")+n.formatValueText(e),verticalAlign:_?b:"middle",align:_?"center":b});var M={x:g,y:d,style:{fill:p}},O={style:{x:v[0],y:v[1]}};if(n.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var S={duration:100,easing:"cubicInOut",additive:!0};c.x=f.x,c.y=f.y,c.animateTo(M,S),m.animateTo(O,S)}else c.attr(M),m.attr(O);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var C=0;Cn[1]&&(c[1]=1/0),e&&(c[0]===-1/0?this._showIndicator(l,c[1],"< ",a):c[1]===1/0?this._showIndicator(l,c[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var u=this._hoverLinkDataIndices,p=[];(e||R(i))&&(p=this._hoverLinkDataIndices=i.findTargetDataIndices(c));var h=M["d"](u,p);this._dispatchHighDown("downplay",_["b"](h[0],i)),this._dispatchHighDown("highlight",_["b"](h[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.getStore().get(i.getDataDimensionIndex(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;ii.getHeight()&&(s.position="top",f=!0);var v=f?-5-h.height:r+10;d+h.width/2>i.getWidth()?(s.position=["100%",v],u.align="right"):d-h.width/2<0&&(s.position=[0,v],u.align="left")}}))}function x(n,r){var a,l=m[n],p=m[r],h=c[l],f=new g["a"](h,t,t.ecModel);if(o&&null!=o.newTitle&&o.featureName===l&&(h.title=o.newTitle),l&&!p){if(_(l))a={onclick:f.option.onclick,featureName:l};else{var v=Object(s["b"])(l);if(!v)return;a=new v}u[l]=a}else if(a=u[p],!a)return;a.uid=Object(y["c"])("toolbox-feature"),a.model=f,a.ecModel=e,a.api=i;var b=a instanceof s["a"];l||!p?!f.get("show")||b&&a.unusable?b&&a.remove&&a.remove(e,i):(M(f,a,l),f.setIconStatus=function(t,e){var i=this.option,o=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[t]=e,o[t]&&("emphasis"===e?d["r"]:d["C"])(o[t])},a instanceof s["a"]&&a.render&&a.render(f,e,i,o)):b&&a.dispose&&a.dispose(e,i)}function M(o,c,u){var p,g,f=o.getModel("iconStyle"),v=o.getModel(["emphasis","iconStyle"]),m=c instanceof s["a"]&&c.getIcons?c.getIcons():o.get("icon"),y=o.get("title")||{};a["C"](m)?(p={},p[u]=m):p=m,a["C"](y)?(g={},g[u]=y):g=y;var x=o.iconPaths={};a["k"](p,(function(s,u){var p=h["createIcon"](s,{},{x:-r/2,y:-r/2,width:r,height:r});p.setStyle(f.getItemStyle());var m=p.ensureState("emphasis");m.style=v.getItemStyle();var y=new b["a"]({style:{text:g[u],align:v.get("textAlign"),borderRadius:v.get("textBorderRadius"),padding:v.get("textPadding"),fill:null},ignore:!0});p.setTextContent(y),h["setTooltipConfig"]({el:p,componentModel:t,itemName:u,formatterParamsExtra:{title:g[u]}}),p.__title=g[u],p.on("mouseover",(function(){var e=v.getItemStyle(),o=l?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";y.setStyle({fill:v.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:v.get("textBackgroundColor")}),p.setTextConfig({position:v.get("textPosition")||o}),y.ignore=!t.get("showTitle"),i.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==o.get(["iconStatus",u])&&i.leaveEmphasis(this),y.hide()})),("emphasis"===o.get(["iconStatus",u])?d["r"]:d["C"])(p),n.add(p),p.on("click",a["c"](c.onclick,c,e,i,u)),x[u]=p}))}},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}(m["a"]);function _(t){return 0===t.indexOf("my")}var M=x,O=i("f505"),S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["a"])(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",s=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")}),l=O["a"].browser;if(Object(a["w"])(MouseEvent)&&(l.newEdge||!l.ie&&!l.edge)){var c=document.createElement("a");c.download=o+"."+r,c.target="_blank",c.href=s;var u=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(u)}else if(window.navigator.msSaveOrOpenBlob||n){var p=s.split(","),h=p[0].indexOf("base64")>-1,d=n?decodeURIComponent(p[1]):p[1];h&&(d=window.atob(d));var g=o+"."+r;if(window.navigator.msSaveOrOpenBlob){var f=d.length,v=new Uint8Array(f);while(f--)v[f]=d.charCodeAt(f);var m=new Blob([v]);window.navigator.msSaveOrOpenBlob(m,g)}else{var y=document.createElement("iframe");document.body.appendChild(y);var b=y.contentWindow,x=b.document;x.open("image/svg+xml","replace"),x.write(d),x.close(),b.focus(),x.execCommand("SaveAs",!0,g),document.body.removeChild(y)}}else{var _=i.get("lang"),M='',S=window.open();S.document.write(M),S.document.title=o}},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}(s["a"]),w=S,C=i("4b4e"),T=i("6d8b"),k="__ec_magicType_stack__",I=[["line","bar"],["stack"]],j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["a"])(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.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return e},e.prototype.onclick=function(t,e,i){var o=this.model,n=o.get(["seriesIndex",i]);if(A[i]){var r,s={series:[]},l=function(t){var e=t.subType,n=t.id,r=A[i](e,n,t,o);r&&(a["i"](r,t.option),s.series.push(r));var l=t.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===i||"bar"===i)){var c=l.getAxesByScale("ordinal")[0];if(c){var u=c.dim,p=u+"Axis",h=t.getReferringComponents(p,T["b"]).models[0],d=h.componentIndex;s[p]=s[p]||[];for(var g=0;g<=d;g++)s[p][d]=s[p][d]||{};s[p][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);var c=i;"stack"===i&&(r=a["I"]({stack:o.option.title.tiled,tiled:o.option.title.stack},o.option.title),"emphasis"!==o.get(["iconStatus",i])&&(c="tiled")),e.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:r,featureName:"magicType"})}},e}(s["a"]),A={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,V=i("13be"),D=new Array(60).join("-"),z="\t";function P(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 H(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 c=[s.join(z)],u=0;u=0)return!0}var G=new RegExp("["+z+"]+","g");function F(t){for(var e=t.split(/\n+/g),i=E(e.shift()).split(G),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 $["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),i=["feature","dataZoom"];if(e&&null!=e.get(i)){var o=e.getModel(i),n=[],r=at(o),a=Object(T["s"])(t,r);return it(a.xAxisModels,(function(t){return s(t,"xAxis","xAxisIndex")})),it(a.yAxisModels,(function(t){return s(t,"yAxis","yAxisIndex")})),n}function s(t,e,i){var r=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:o.get("filterMode",!0)||"filter",id:ot+e+r};a[i]=r,n.push(a)}}));var ct=nt;function ut(t){t.registerComponentModel(u),t.registerComponentView(M),Object(s["c"])("saveAsImage",w),Object(s["c"])("magicType",L),Object(s["c"])("dataView",Z),Object(s["c"])("dataZoom",ct),Object(s["c"])("restore",Q),Object(o["a"])(n["a"])}},d38b:function(t,e,i){"use strict";i.d(e,"a",(function(){return S}));var o=i("08c2"),n=i("ba54"),r=i("25ad"),a=i("6306"),s=i("db0f"),l=i("fa5c"),c=i("d5c1"),u=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i._pieceList=[],i}return Object(o["a"])(e,t),e.prototype.optionUpdated=function(e,i){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var o=this._mode=this._determineMode();this._pieceList=[],p[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.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=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.getDataDimensionIndex(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(c["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"]),p={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,c=o[0];s","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,i)}),this)}};function h(t,e){var i=t.inverse;("vertical"===t.orient?!i:i)&&e.reverse()}var d=u,g=i("9bd0"),f=i("19da"),v=i("bf392"),m=i("6851"),y=i("70b8"),b=i("29b2"),x=i("eae5"),_=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return Object(o["a"])(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,c=this._getViewData(),u=c.endsText,p=n["O"](e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],l,p,s),n["k"](c.viewPieceList,(function(o){var c=o.piece,u=new f["a"];u.onclick=n["c"](this._onItemClick,this,c),this._enableHoverLink(u,o.indexInModelPieceList);var h=e.getRepresentValue(c);if(this._createItemSymbol(u,h,[0,0,l[0],l[1]]),p){var d=this.visualMapModel.getValueState(h);u.add(new v["a"]({style:{x:"right"===s?-i:l[0]+i,y:l[1]/2,text:c.text,verticalAlign:"middle",align:s,font:r,fill:a,opacity:"outOfRange"===d?.5:1}}))}t.add(u)}),this),u&&this._renderEndsText(t,u[1],l,p,s),y["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 f["a"],a=this.visualMapModel.textStyleModel;r.add(new v["a"]({style:Object(x["c"])(a,{x:o?"right"===n?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:o?n:"center",text:e})})),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(m["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=i.selectedMode;if(o){var r=n["d"](i.selected),a=e.getSelectedMapKey(t);"single"===o||!0===o?(r[a]=!0,n["k"](r,(function(t,e){r[e]=e===a}))):r[a]=!r[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},e.type="visualMap.piecewise",e}(g["a"]),M=_,O=i("6395");function S(t){t.registerComponentModel(d),t.registerComponentView(M),Object(O["a"])(t)}},d3dc:function(t,e,i){"use strict";i.d(e,"a",(function(){return m}));var o=i("901e"),n=i("08c2"),r=i("ba54"),a=i("6284"),s=i("1724"),l=i("86af"),c=i("b54c"),u=i("9c3a"),p=i("7d4d"),h=i("7588"),d=["axisLine","axisTickLabel","axisName"],g=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return Object(n["a"])(e,t),e.prototype.render=function(t,e,i){var o=this.group;o.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem,i=e.getIndicatorAxes(),o=r["H"](i,(function(t){var i=t.model.get("showName")?t.name:"",o=new a["a"](t.model,{axisName:i,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return o}));r["k"](o,(function(t){r["k"](d,t.add,t),this.group.add(t.getGroup())}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,i=e.getIndicatorAxes();if(i.length){var o=t.get("shape"),n=t.getModel("splitLine"),a=t.getModel("splitArea"),h=n.getModel("lineStyle"),d=a.getModel("areaStyle"),g=n.get("show"),f=a.get("show"),v=h.get("color"),m=d.get("color"),y=r["t"](v)?v:[v],b=r["t"](m)?m:[m],x=[],_=[];if("circle"===o)for(var M=i[0].getTicksCoords(),O=e.cx,S=e.cy,w=0;w=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,i=e.data||[],o=e.axisType,n=this._names=[];"category"===o?(t=[],Object(a["k"])(i,(function(e,i){var o,r=Object(s["e"])(Object(s["h"])(e),"");Object(a["A"])(e)?(o=Object(a["d"])(e),o.value=i):o=i,t.push(o),n.push(r)}))):t=i;var l={category:"ordinal",time:"time",value:"number"}[o]||"number",c=this._data=new r["a"]([{name:"value",type:l}],this);c.initData(t,n)},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}(n["a"]),c=l,u=i("5012"),p=i("d5c1"),h=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return Object(o["a"])(e,t),e.type="timeline.slider",e.defaultOption=Object(p["d"])(c.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}(c);Object(a["K"])(h,u["a"].prototype);var d=h,g=i("6677"),f=i("4e14"),v=i("19da"),m=i("91bf"),y=i("bf392"),b=i("7d4d"),x=i("eae5"),_=i("70b8"),M=i("7588"),O=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return Object(o["a"])(e,t),e.type="timeline",e}(M["a"]),S=O,w=i("dbc0"),C=function(t){function e(e,i,o,n){var r=t.call(this,e,i,o)||this;return r.type=n||"value",r}return Object(o["a"])(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(w["a"]),T=C,k=i("6851"),I=i("fa5c"),j=i("87cc"),A=i("5a14"),L=i("0059"),V=i("caa6"),D=i("aa7d"),z=i("c7f9"),P=i("4a78"),H=Math.PI,R=Object(s["o"])(),B=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return Object(o["a"])(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,i){if(this.model=t,this.api=i,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var o=this._layout(t,i),n=this._createGroup("_mainGroup"),r=this._createGroup("_labelGroup"),s=this._axis=this._createAxis(o,t);t.formatTooltip=function(t){var e=s.scale.getLabel({value:t});return Object(P["c"])("nameValue",{noName:!0,value:e})},Object(a["k"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](o,n,s,t)}),this),this._renderAxisLabel(o,r,s,t),this._position(o,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 i,o=t.get(["label","position"]),n=t.get("orient"),r=N(t,e);i=null==o||"auto"===o?"horizontal"===n?r.y+r.height/2=0||"+"===i?"left":"right"},p={horizontal:i>=0||"+"===i?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:H/2},d="vertical"===n?r.height:r.width,g=t.getModel("controlStyle"),f=g.get("show",!0),v=f?g.get("itemSize"):0,m=f?g.get("itemGap"):0,y=v+m,b=t.get(["label","rotate"])||0;b=b*H/180;var x=g.get("position",!0),_=f&&g.get("showPlayBtn",!0),M=f&&g.get("showPrevBtn",!0),O=f&&g.get("showNextBtn",!0),S=0,w=d;"left"===x||"bottom"===x?(_&&(s=[0,0],S+=y),M&&(l=[S,0],S+=y),O&&(c=[w-v,0],w-=y)):(_&&(s=[w-v,0],w-=y),M&&(l=[0,0],S+=y),O&&(c=[w-v,0],w-=y));var C=[S,w];return t.get("inverse")&&C.reverse(),{viewRect:r,mainLength:d,orient:n,rotation:h[n],labelRotation:b,labelPosOpt:i,labelAlign:t.get(["label","align"])||u[n],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||p[n],playPosition:s,prevBtnPosition:l,nextBtnPosition:c,axisExtent:C,controlSize:v,controlGap:m}},e.prototype._position=function(t,e){var i=this._mainGroup,o=this._labelGroup,n=t.viewRect;if("vertical"===t.orient){var r=f["c"](),s=n.x,l=n.y+n.height;f["i"](r,r,[-s,-l]),f["g"](r,r,-H/2),f["i"](r,r,[s,l]),n=n.clone(),n.applyTransform(r)}var c=y(n),u=y(i.getBoundingRect()),p=y(o.getBoundingRect()),h=[i.x,i.y],d=[o.x,o.y];d[0]=h[0]=c[0][0];var g=t.labelPosOpt;if(null==g||Object(a["C"])(g)){var v="+"===g?0:1;b(h,u,c,1,v),b(d,p,c,1,1-v)}else{v=g>=0?0:1;b(h,u,c,1,v),d[1]=h[1]+g}function m(t){t.originX=c[0][0]-t.x,t.originY=c[1][0]-t.y}function y(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function b(t,e,i,o,n){t[o]+=i[o][n]-e[o][n]}i.setPosition(h),o.setPosition(d),i.rotation=o.rotation=t.rotation,m(i),m(o)},e.prototype._createAxis=function(t,e){var i=e.getData(),o=e.get("axisType"),n=E(e,o);n.getTicks=function(){return i.mapArray(["value"],(function(t){return{value:t}}))};var r=i.getDataExtent("value");n.setExtent(r[0],r[1]),n.calcNiceTicks();var a=new T("value",n,t.axisExtent,o);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new v["a"];return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,i,o){var n=i.getExtent();if(o.get(["lineStyle","show"])){var r=new m["a"]({shape:{x1:n[0],y1:0,x2:n[1],y2:0},style:Object(a["m"])({lineCap:"round"},o.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(r);var s=this._progressLine=new m["a"]({shape:{x1:n[0],x2:this._currentPointer?this._currentPointer.x:n[0],y1:0,y2:0},style:Object(a["i"])({lineCap:"round",lineWidth:r.style.lineWidth},o.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(s)}},e.prototype._renderAxisTick=function(t,e,i,o){var n=this,r=o.getData(),s=i.scale.getTicks();this._tickSymbols=[],Object(a["k"])(s,(function(t){var s=i.dataToCoord(t.value),l=r.getItemModel(t.value),c=l.getModel("itemStyle"),u=l.getModel(["emphasis","itemStyle"]),p=l.getModel(["progress","itemStyle"]),h={x:s,y:0,onclick:Object(a["c"])(n._changeTimeline,n,t.value)},d=F(l,c,e,h);d.ensureState("emphasis").style=u.getItemStyle(),d.ensureState("progress").style=p.getItemStyle(),Object(z["o"])(d);var g=Object(D["a"])(d);l.get("tooltip")?(g.dataIndex=t.value,g.dataModel=o):g.dataIndex=g.dataModel=null,n._tickSymbols.push(d)}))},e.prototype._renderAxisLabel=function(t,e,i,o){var n=this,r=i.getLabelModel();if(r.get("show")){var s=o.getData(),l=i.getViewLabels();this._tickLabels=[],Object(a["k"])(l,(function(o){var r=o.tickValue,l=s.getItemModel(r),c=l.getModel("label"),u=l.getModel(["emphasis","label"]),p=l.getModel(["progress","label"]),h=i.dataToCoord(o.tickValue),d=new y["a"]({x:h,y:0,rotation:t.labelRotation-t.rotation,onclick:Object(a["c"])(n._changeTimeline,n,r),silent:!1,style:Object(x["c"])(c,{text:o.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});d.ensureState("emphasis").style=Object(x["c"])(u),d.ensureState("progress").style=Object(x["c"])(p),e.add(d),Object(z["o"])(d),R(d).dataIndex=r,n._tickLabels.push(d)}))}},e.prototype._renderControl=function(t,e,i,o){var n=t.controlSize,r=t.rotation,s=o.getModel("controlStyle").getItemStyle(),l=o.getModel(["emphasis","controlStyle"]).getItemStyle(),c=o.getPlayState(),u=o.get("inverse",!0);function p(t,i,c,u){if(t){var p=Object(V["g"])(Object(a["P"])(o.get(["controlStyle",i+"BtnSize"]),n),n),h=[0,-p/2,p,p],d=G(o,i+"Icon",h,{x:t[0],y:t[1],originX:n/2,originY:0,rotation:u?-r:0,rectHover:!0,style:s,onclick:c});d.ensureState("emphasis").style=l,e.add(d),Object(z["o"])(d)}}p(t.nextBtnPosition,"next",Object(a["c"])(this._changeTimeline,this,u?"-":"+")),p(t.prevBtnPosition,"prev",Object(a["c"])(this._changeTimeline,this,u?"+":"-")),p(t.playPosition,c?"stop":"play",Object(a["c"])(this._handlePlayClick,this,!c),!0)},e.prototype._renderCurrentPointer=function(t,e,i,o){var n=o.getData(),r=o.getCurrentIndex(),s=n.getItemModel(r).getModel("checkpointStyle"),l=this,c={onCreate:function(t){t.draggable=!0,t.drift=Object(a["c"])(l._handlePointerDrag,l),t.ondragend=Object(a["c"])(l._handlePointerDragend,l),W(t,l._progressLine,r,i,o,!0)},onUpdate:function(t){W(t,l._progressLine,r,i,o)}};this._currentPointer=F(s,s,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var i=this._toAxisCoord(t)[0],o=this._axis,n=I["c"](o.getExtent().slice());i>n[1]&&(i=n[1]),i