mooho-base-admin-plus 0.4.19 → 0.4.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -120954,6 +120954,7 @@ const created = async (app) => {
120954
120954
  store.commit("admin/menu/setHeader", menuHeader);
120955
120955
  store.dispatch("admin/account/load");
120956
120956
  store.dispatch("admin/layout/listenFullscreen");
120957
+ app.config.globalProperties.$pages = pages;
120957
120958
  };
120958
120959
  const routeChanged = (to) => {
120959
120960
  store.dispatch("admin/menu/setMenuList", to);
@@ -221,4 +221,4 @@ yyyy`);var l=parseDate(r),s=o?"getUTC":"get",u=l[s+"FullYear"](),c=l[s+"Month"](
221
221
 
222
222
  `:"<br/>",S=v.join(w);this._showOrMove(d,function(){this._updateContentNotChangedOnAxis(o,p)?this._updatePosition(d,$,c[0],c[1],this._tooltipContent,p):this._showTooltipContent(d,S,p,Math.random()+"",c[0],c[1],$,null,g)})},r.prototype._showSeriesItemTooltip=function(o,l,s){var u=this._ecModel,c=getECData(l),d=c.seriesIndex,f=u.getSeriesByIndex(d),p=c.dataModel||f,h=c.dataIndex,v=c.dataType,g=p.getData(v),$=this._renderMode,y=o.positionDefault,x=buildTooltipModel([g.getItemModel(h),p,f&&(f.coordinateSystem||{}).model],this._tooltipModel,y?{position:y}:null),w=x.get("trigger");if(!(w!=null&&w!=="item")){var S=p.getDataParams(h,v),C=new TooltipMarkupStyleCreator;S.marker=C.makeTooltipMarker("item",convertToColorString(S.color),$);var A=normalizeTooltipFormatResult(p.formatTooltip(h,!1,v)),T=x.get("order"),I=x.get("valueFormatter"),D=A.frag,M=D?buildTooltipMarkup(I?extend({valueFormatter:I},D):D,C,$,T,u.get("useUTC"),x.get("textStyle")):A.text,L="item_"+p.name+"_"+h;this._showOrMove(x,function(){this._showTooltipContent(x,M,S,L,o.offsetX,o.offsetY,o.position,o.target,C)}),s({type:"showTip",dataIndexInside:h,dataIndex:g.getRawIndex(h),seriesIndex:d,from:this.uid})}},r.prototype._showComponentItemTooltip=function(o,l,s){var u=getECData(l),c=u.tooltipConfig,d=c.option||{};if(isString(d)){var f=d;d={content:f,formatter:f}}var p=[d],h=this._ecModel.getComponent(u.componentMainType,u.componentIndex);h&&p.push(h),p.push({formatter:d.content});var v=o.positionDefault,g=buildTooltipModel(p,this._tooltipModel,v?{position:v}:null),$=g.get("content"),y=Math.random()+"",x=new TooltipMarkupStyleCreator;this._showOrMove(g,function(){var w=clone$4(g.get("formatterParams")||{});this._showTooltipContent(g,$,w,y,o.offsetX,o.offsetY,o.position,l,x)}),s({type:"showTip",from:this.uid})},r.prototype._showTooltipContent=function(o,l,s,u,c,d,f,p,h){if(this._ticket="",!(!o.get("showContent")||!o.get("show"))){var v=this._tooltipContent;v.setEnterable(o.get("enterable"));var g=o.get("formatter");f=f||o.get("position");var $=l,y=this._getNearestPoint([c,d],s,o.get("trigger"),o.get("borderColor")),x=y.color;if(g)if(isString(g)){var w=o.ecModel.get("useUTC"),S=isArray$1(s)?s[0]:s,C=S&&S.axisType&&S.axisType.indexOf("time")>=0;$=g,C&&($=format$1(S.axisValue,$,w)),$=formatTpl($,s,!0)}else if(isFunction(g)){var A=bind$1(function(T,I){T===this._ticket&&(v.setContent(I,h,o,x,f),this._updatePosition(o,f,c,d,v,s,p))},this);this._ticket=u,$=g(s,u,A)}else $=g;v.setContent($,h,o,x,f),v.show(o,x),this._updatePosition(o,f,c,d,v,s,p)}},r.prototype._getNearestPoint=function(o,l,s,u){if(s==="axis"||isArray$1(l))return{color:u||(this._renderMode==="html"?"#fff":"none")};if(!isArray$1(l))return{color:u||l.color||l.borderColor}},r.prototype._updatePosition=function(o,l,s,u,c,d,f){var p=this._api.getWidth(),h=this._api.getHeight();l=l||o.get("position");var v=c.getSize(),g=o.get("align"),$=o.get("verticalAlign"),y=f&&f.getBoundingRect().clone();if(f&&y.applyTransform(f.transform),isFunction(l)&&(l=l([s,u],d,c.el,y,{viewSize:[p,h],contentSize:v.slice()})),isArray$1(l))s=parsePercent(l[0],p),u=parsePercent(l[1],h);else if(isObject$3(l)){var x=l;x.width=v[0],x.height=v[1];var w=getLayoutRect(x,{width:p,height:h});s=w.x,u=w.y,g=null,$=null}else if(isString(l)&&f){var S=calcTooltipPosition(l,y,v,o.get("borderWidth"));s=S[0],u=S[1]}else{var S=refixTooltipPosition(s,u,c,p,h,g?null:20,$?null:20);s=S[0],u=S[1]}if(g&&(s-=isCenterAlign(g)?v[0]/2:g==="right"?v[0]:0),$&&(u-=isCenterAlign($)?v[1]/2:$==="bottom"?v[1]:0),shouldTooltipConfine(o)){var S=confineTooltipPosition(s,u,c,p,h);s=S[0],u=S[1]}c.moveTo(s,u)},r.prototype._updateContentNotChangedOnAxis=function(o,l){var s=this._lastDataByCoordSys,u=this._cbParamsList,c=!!s&&s.length===o.length;return c&&each$f(s,function(d,f){var p=d.dataByAxis||[],h=o[f]||{},v=h.dataByAxis||[];c=c&&p.length===v.length,c&&each$f(p,function(g,$){var y=v[$]||{},x=g.seriesDataIndices||[],w=y.seriesDataIndices||[];c=c&&g.value===y.value&&g.axisType===y.axisType&&g.axisId===y.axisId&&x.length===w.length,c&&each$f(x,function(S,C){var A=w[C];c=c&&S.seriesIndex===A.seriesIndex&&S.dataIndex===A.dataIndex}),u&&each$f(g.seriesDataIndices,function(S){var C=S.seriesIndex,A=l[C],T=u[C];A&&T&&T.data!==A.data&&(c=!1)})})}),this._lastDataByCoordSys=o,this._cbParamsList=l,!!c},r.prototype._hide=function(o){this._lastDataByCoordSys=null,o({type:"hideTip",from:this.uid})},r.prototype.dispose=function(o,l){env$1.node||!l.getDom()||(clear$1(this,"_updatePosition"),this._tooltipContent.dispose(),unregister("itemTooltip",l))},r.type="tooltip",r}(ComponentView$1);function buildTooltipModel(a,r,o){var l=r.ecModel,s;o?(s=new Model$1(o,l,l),s=new Model$1(r.option,s,l)):s=r;for(var u=a.length-1;u>=0;u--){var c=a[u];c&&(c instanceof Model$1&&(c=c.get("tooltip",!0)),isString(c)&&(c={formatter:c}),c&&(s=new Model$1(c,s,l)))}return s}function makeDispatchAction(a,r){return a.dispatchAction||bind$1(r.dispatchAction,r)}function refixTooltipPosition(a,r,o,l,s,u,c){var d=o.getSize(),f=d[0],p=d[1];return u!=null&&(a+f+u+2>l?a-=f+u:a+=u),c!=null&&(r+p+c>s?r-=p+c:r+=c),[a,r]}function confineTooltipPosition(a,r,o,l,s){var u=o.getSize(),c=u[0],d=u[1];return a=Math.min(a+c,l)-c,r=Math.min(r+d,s)-d,a=Math.max(a,0),r=Math.max(r,0),[a,r]}function calcTooltipPosition(a,r,o,l){var s=o[0],u=o[1],c=Math.ceil(Math.SQRT2*l)+8,d=0,f=0,p=r.width,h=r.height;switch(a){case"inside":d=r.x+p/2-s/2,f=r.y+h/2-u/2;break;case"top":d=r.x+p/2-s/2,f=r.y-u-c;break;case"bottom":d=r.x+p/2-s/2,f=r.y+h+c;break;case"left":d=r.x-s-c,f=r.y+h/2-u/2;break;case"right":d=r.x+p+c,f=r.y+h/2-u/2}return[d,f]}function isCenterAlign(a){return a==="center"||a==="middle"}function findComponentReference(a,r,o){var l=preParseFinder(a).queryOptionMap,s=l.keys()[0];if(!(!s||s==="series")){var u=queryReferringComponents(r,s,l.get(s),{useDefault:!1,enableAll:!1,enableNone:!1}),c=u.models[0];if(!!c){var d=o.getViewOfComponentModel(c),f;if(d.group.traverse(function(p){var h=getECData(p).tooltipConfig;if(h&&h.name===a.name)return f=p,!0}),f)return{componentMainType:s,componentIndex:c.componentIndex,el:f}}}}var TooltipView$1=TooltipView;function install$j(a){use(install$r),a.registerComponentModel(TooltipModel$1),a.registerComponentView(TooltipView$1),a.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},noop),a.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},noop)}var DEFAULT_TOOLBOX_BTNS=["rect","polygon","keep","clear"];function brushPreprocessor(a,r){var o=normalizeToArray(a?a.brush:[]);if(!!o.length){var l=[];each$f(o,function(f){var p=f.hasOwnProperty("toolbox")?f.toolbox:[];p instanceof Array&&(l=l.concat(p))});var s=a&&a.toolbox;isArray$1(s)&&(s=s[0]),s||(s={feature:{}},a.toolbox=[s]);var u=s.feature||(s.feature={}),c=u.brush||(u.brush={}),d=c.type||(c.type=[]);d.push.apply(d,l),removeDuplicate(d),r&&!d.length&&d.push.apply(d,DEFAULT_TOOLBOX_BTNS)}}function removeDuplicate(a){var r={};each$f(a,function(o){r[o]=1}),a.length=0,each$f(r,function(o,l){a.push(l)})}var each$4=each$f;function hasKeys(a){if(a){for(var r in a)if(a.hasOwnProperty(r))return!0}}function createVisualMappings(a,r,o){var l={};return each$4(r,function(u){var c=l[u]=s();each$4(a[u],function(d,f){if(!!VisualMapping$1.isValidType(f)){var p={type:f,visual:d};o&&o(p,u),c[f]=new VisualMapping$1(p),f==="opacity"&&(p=clone$4(p),p.type="colorAlpha",c.__hidden.__alphaForOpacity=new VisualMapping$1(p))}})}),l;function s(){var u=function(){};u.prototype.__hidden=u.prototype;var c=new u;return c}}function replaceVisualOption(a,r,o){var l;each$f(o,function(s){r.hasOwnProperty(s)&&hasKeys(r[s])&&(l=!0)}),l&&each$f(o,function(s){r.hasOwnProperty(s)&&hasKeys(r[s])?a[s]=clone$4(r[s]):delete a[s]})}function applyVisual(a,r,o,l,s,u){var c={};each$f(a,function(v){var g=VisualMapping$1.prepareVisualTypes(r[v]);c[v]=g});var d;function f(v){return getItemVisualFromData(o,d,v)}function p(v,g){setItemVisualFromData(o,d,v,g)}u==null?o.each(h):o.each([u],h);function h(v,g){d=u==null?v:g;var $=o.getRawDataItem(d);if(!($&&$.visualMap===!1))for(var y=l.call(s,v),x=r[y],w=c[y],S=0,C=w.length;S<C;S++){var A=w[S];x[A]&&x[A].applyVisual(v,f,p)}}}function incrementalApplyVisual(a,r,o,l){var s={};return each$f(a,function(u){var c=VisualMapping$1.prepareVisualTypes(r[u]);s[u]=c}),{progress:function(c,d){var f;l!=null&&(f=d.getDimensionIndex(l));function p(I){return getItemVisualFromData(d,v,I)}function h(I,D){setItemVisualFromData(d,v,I,D)}for(var v,g=d.getStore();(v=c.next())!=null;){var $=d.getRawDataItem(v);if(!($&&$.visualMap===!1))for(var y=l!=null?g.get(f,v):v,x=o(y),w=r[x],S=s[x],C=0,A=S.length;C<A;C++){var T=S[C];w[T]&&w[T].applyVisual(y,p,h)}}}}}function makeBrushCommonSelectorForSeries(a){var r=a.brushType,o={point:function(l){return selector[r].point(l,o,a)},rect:function(l){return selector[r].rect(l,o,a)}};return o}var selector={lineX:getLineSelectors(0),lineY:getLineSelectors(1),rect:{point:function(a,r,o){return a&&o.boundingRect.contain(a[0],a[1])},rect:function(a,r,o){return a&&o.boundingRect.intersect(a)}},polygon:{point:function(a,r,o){return a&&o.boundingRect.contain(a[0],a[1])&&contain(o.range,a[0],a[1])},rect:function(a,r,o){var l=o.range;if(!a||l.length<=1)return!1;var s=a.x,u=a.y,c=a.width,d=a.height,f=l[0];if(contain(l,s,u)||contain(l,s+c,u)||contain(l,s,u+d)||contain(l,s+c,u+d)||BoundingRect$1.create(a).contain(f[0],f[1])||linePolygonIntersect(s,u,s+c,u,l)||linePolygonIntersect(s,u,s,u+d,l)||linePolygonIntersect(s+c,u,s+c,u+d,l)||linePolygonIntersect(s,u+d,s+c,u+d,l))return!0}}};function getLineSelectors(a){var r=["x","y"],o=["width","height"];return{point:function(l,s,u){if(l){var c=u.range,d=l[a];return inLineRange(d,c)}},rect:function(l,s,u){if(l){var c=u.range,d=[l[r[a]],l[r[a]]+l[o[a]]];return d[1]<d[0]&&d.reverse(),inLineRange(d[0],c)||inLineRange(d[1],c)||inLineRange(c[0],d)||inLineRange(c[1],d)}}}}function inLineRange(a,r){return r[0]<=a&&a<=r[1]}var STATE_LIST=["inBrush","outOfBrush"],DISPATCH_METHOD="__ecBrushSelect",DISPATCH_FLAG="__ecInBrushSelectEvent";function layoutCovers(a){a.eachComponent({mainType:"brush"},function(r){var o=r.brushTargetManager=new BrushTargetManager$1(r.option,a);o.setInputRanges(r.areas,a)})}function brushVisual(a,r,o){var l=[],s,u;a.eachComponent({mainType:"brush"},function(c){o&&o.type==="takeGlobalCursor"&&c.setBrushOption(o.key==="brush"?o.brushOption:{brushType:!1})}),layoutCovers(a),a.eachComponent({mainType:"brush"},function(c,d){var f={brushId:c.id,brushIndex:d,brushName:c.name,areas:clone$4(c.areas),selected:[]};l.push(f);var p=c.option,h=p.brushLink,v=[],g=[],$=[],y=!1;d||(s=p.throttleType,u=p.throttleDelay);var x=map$1(c.areas,function(I){var D=boundingRectBuilders[I.brushType],M=defaults({boundingRect:D?D(I):void 0},I);return M.selectors=makeBrushCommonSelectorForSeries(M),M}),w=createVisualMappings(c.option,STATE_LIST,function(I){I.mappingMethod="fixed"});isArray$1(h)&&each$f(h,function(I){v[I]=1});function S(I){return h==="all"||!!v[I]}function C(I){return!!I.length}a.eachSeries(function(I,D){var M=$[D]=[];I.subType==="parallel"?A(I,D):T(I,D,M)});function A(I,D){var M=I.coordinateSystem;y=y||M.hasAxisBrushed(),S(D)&&M.eachActiveState(I.getData(),function(L,N){L==="active"&&(g[N]=1)})}function T(I,D,M){if(!(!I.brushSelector||brushModelNotControll(c,D))&&(each$f(x,function(N){c.brushTargetManager.controlSeries(N,I,a)&&M.push(N),y=y||C(M)}),S(D)&&C(M))){var L=I.getData();L.each(function(N){checkInRange(I,M,L,N)&&(g[N]=1)})}}a.eachSeries(function(I,D){var M={seriesId:I.id,seriesIndex:D,seriesName:I.name,dataIndex:[]};f.selected.push(M);var L=$[D],N=I.getData(),V=S(D)?function(R){return g[R]?(M.dataIndex.push(N.getRawIndex(R)),"inBrush"):"outOfBrush"}:function(R){return checkInRange(I,L,N,R)?(M.dataIndex.push(N.getRawIndex(R)),"inBrush"):"outOfBrush"};(S(D)?y:C(L))&&applyVisual(STATE_LIST,w,N,V)})}),dispatchAction$1(r,s,u,l,o)}function dispatchAction$1(a,r,o,l,s){if(!!s){var u=a.getZr();if(!u[DISPATCH_FLAG]){u[DISPATCH_METHOD]||(u[DISPATCH_METHOD]=doDispatch);var c=createOrUpdate(u,DISPATCH_METHOD,o,r);c(a,l)}}}function doDispatch(a,r){if(!a.isDisposed()){var o=a.getZr();o[DISPATCH_FLAG]=!0,a.dispatchAction({type:"brushSelect",batch:r}),o[DISPATCH_FLAG]=!1}}function checkInRange(a,r,o,l){for(var s=0,u=r.length;s<u;s++){var c=r[s];if(a.brushSelector(l,o,c.selectors,c))return!0}}function brushModelNotControll(a,r){var o=a.option.seriesIndex;return o!=null&&o!=="all"&&(isArray$1(o)?indexOf(o,r)<0:r!==o)}var boundingRectBuilders={rect:function(a){return getBoundingRectFromMinMax(a.range)},polygon:function(a){for(var r,o=a.range,l=0,s=o.length;l<s;l++){r=r||[[1/0,-1/0],[1/0,-1/0]];var u=o[l];u[0]<r[0][0]&&(r[0][0]=u[0]),u[0]>r[0][1]&&(r[0][1]=u[0]),u[1]<r[1][0]&&(r[1][0]=u[1]),u[1]>r[1][1]&&(r[1][1]=u[1])}return r&&getBoundingRectFromMinMax(r)}};function getBoundingRectFromMinMax(a){return new BoundingRect$1(a[0][0],a[1][0],a[0][1]-a[0][0],a[1][1]-a[1][0])}var BrushView=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o}return r.prototype.init=function(o,l){this.ecModel=o,this.api=l,this.model,(this._brushController=new BrushController$1(l.getZr())).on("brush",bind$1(this._onBrush,this)).mount()},r.prototype.render=function(o,l,s,u){this.model=o,this._updateController(o,l,s,u)},r.prototype.updateTransform=function(o,l,s,u){layoutCovers(l),this._updateController(o,l,s,u)},r.prototype.updateVisual=function(o,l,s,u){this.updateTransform(o,l,s,u)},r.prototype.updateView=function(o,l,s,u){this._updateController(o,l,s,u)},r.prototype._updateController=function(o,l,s,u){(!u||u.$from!==o.id)&&this._brushController.setPanels(o.brushTargetManager.makePanelOpts(s)).enableBrush(o.brushOption).updateCovers(o.areas.slice())},r.prototype.dispose=function(){this._brushController.dispose()},r.prototype._onBrush=function(o){var l=this.model.id,s=this.model.brushTargetManager.setOutputRanges(o.areas,this.ecModel);(!o.isEnd||o.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:l,areas:clone$4(s),$from:l}),o.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:l,areas:clone$4(s),$from:l})},r.type="brush",r}(ComponentView$1),BrushView$1=BrushView,DEFAULT_OUT_OF_BRUSH_COLOR="#ddd",BrushModel=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o.areas=[],o.brushOption={},o}return r.prototype.optionUpdated=function(o,l){var s=this.option;!l&&replaceVisualOption(s,o,["inBrush","outOfBrush"]);var u=s.inBrush=s.inBrush||{};s.outOfBrush=s.outOfBrush||{color:DEFAULT_OUT_OF_BRUSH_COLOR},u.hasOwnProperty("liftZ")||(u.liftZ=5)},r.prototype.setAreas=function(o){!o||(this.areas=map$1(o,function(l){return generateBrushOption(this.option,l)},this))},r.prototype.setBrushOption=function(o){this.brushOption=generateBrushOption(this.option,o),this.brushType=this.brushOption.brushType},r.type="brush",r.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],r.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},r}(ComponentModel$1);function generateBrushOption(a,r){return merge({brushType:a.brushType,brushMode:a.brushMode,transformable:a.transformable,brushStyle:new Model$1(a.brushStyle).getItemStyle(),removeOnClick:a.removeOnClick,z:a.z},r,!0)}var BrushModel$1=BrushModel,ICON_TYPES=["rect","polygon","lineX","lineY","keep","clear"],BrushFeature=function(a){__extends(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.render=function(o,l,s){var u,c,d;l.eachComponent({mainType:"brush"},function(f){u=f.brushType,c=f.brushOption.brushMode||"single",d=d||!!f.areas.length}),this._brushType=u,this._brushMode=c,each$f(o.get("type",!0),function(f){o.setIconStatus(f,(f==="keep"?c==="multiple":f==="clear"?d:f===u)?"emphasis":"normal")})},r.prototype.updateView=function(o,l,s){this.render(o,l,s)},r.prototype.getIcons=function(){var o=this.model,l=o.get("icon",!0),s={};return each$f(o.get("type",!0),function(u){l[u]&&(s[u]=l[u])}),s},r.prototype.onclick=function(o,l,s){var u=this._brushType,c=this._brushMode;s==="clear"?(l.dispatchAction({type:"axisAreaSelect",intervals:[]}),l.dispatchAction({type:"brush",command:"clear",areas:[]})):l.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:s==="keep"?u:u===s?!1:s,brushMode:s==="keep"?c==="multiple"?"single":"multiple":c}})},r.getDefaultOption=function(o){var l={show:!0,type:ICON_TYPES.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:o.getLocaleModel().get(["toolbox","brush","title"])};return l},r}(ToolboxFeature),BrushFeature$1=BrushFeature;function install$i(a){a.registerComponentView(BrushView$1),a.registerComponentModel(BrushModel$1),a.registerPreprocessor(brushPreprocessor),a.registerVisual(a.PRIORITY.VISUAL.BRUSH,brushVisual),a.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(r,o){o.eachComponent({mainType:"brush",query:r},function(l){l.setAreas(r.areas)})}),a.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},noop),a.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},noop),registerFeature("brush",BrushFeature$1)}var TitleModel=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o.layoutMode={type:"box",ignoreSize:!0},o}return r.type="title",r.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},r}(ComponentModel$1),TitleView=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o}return r.prototype.render=function(o,l,s){if(this.group.removeAll(),!!o.get("show")){var u=this.group,c=o.getModel("textStyle"),d=o.getModel("subtextStyle"),f=o.get("textAlign"),p=retrieve2(o.get("textBaseline"),o.get("textVerticalAlign")),h=new ZRText$1({style:createTextStyle$1(c,{text:o.get("text"),fill:c.getTextColor()},{disableBox:!0}),z2:10}),v=h.getBoundingRect(),g=o.get("subtext"),$=new ZRText$1({style:createTextStyle$1(d,{text:g,fill:d.getTextColor(),y:v.height+o.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),y=o.get("link"),x=o.get("sublink"),w=o.get("triggerEvent",!0);h.silent=!y&&!w,$.silent=!x&&!w,y&&h.on("click",function(){windowOpen(y,"_"+o.get("target"))}),x&&$.on("click",function(){windowOpen(x,"_"+o.get("subtarget"))}),getECData(h).eventData=getECData($).eventData=w?{componentType:"title",componentIndex:o.componentIndex}:null,u.add(h),g&&u.add($);var S=u.getBoundingRect(),C=o.getBoxLayoutParams();C.width=S.width,C.height=S.height;var A=getLayoutRect(C,{width:s.getWidth(),height:s.getHeight()},o.get("padding"));f||(f=o.get("left")||o.get("right"),f==="middle"&&(f="center"),f==="right"?A.x+=A.width:f==="center"&&(A.x+=A.width/2)),p||(p=o.get("top")||o.get("bottom"),p==="center"&&(p="middle"),p==="bottom"?A.y+=A.height:p==="middle"&&(A.y+=A.height/2),p=p||"top"),u.x=A.x,u.y=A.y,u.markRedraw();var T={align:f,verticalAlign:p};h.setStyle(T),$.setStyle(T),S=u.getBoundingRect();var I=A.margin,D=o.getItemStyle(["color","opacity"]);D.fill=o.get("backgroundColor");var M=new Rect$3({shape:{x:S.x-I[3],y:S.y-I[0],width:S.width+I[1]+I[3],height:S.height+I[0]+I[2],r:o.get("borderRadius")},style:D,subPixelOptimize:!0,silent:!0});u.add(M)}},r.type="title",r}(ComponentView$1);function install$h(a){a.registerComponentModel(TitleModel),a.registerComponentView(TitleView)}var TimelineModel=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o.layoutMode="box",o}return r.prototype.init=function(o,l,s){this.mergeDefaultAndTheme(o,s),this._initData()},r.prototype.mergeOption=function(o){a.prototype.mergeOption.apply(this,arguments),this._initData()},r.prototype.setCurrentIndex=function(o){o==null&&(o=this.option.currentIndex);var l=this._data.count();this.option.loop?o=(o%l+l)%l:(o>=l&&(o=l-1),o<0&&(o=0)),this.option.currentIndex=o},r.prototype.getCurrentIndex=function(){return this.option.currentIndex},r.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},r.prototype.setPlayState=function(o){this.option.autoPlay=!!o},r.prototype.getPlayState=function(){return!!this.option.autoPlay},r.prototype._initData=function(){var o=this.option,l=o.data||[],s=o.axisType,u=this._names=[],c;s==="category"?(c=[],each$f(l,function(p,h){var v=convertOptionIdName(getDataItemValue(p),""),g;isObject$3(p)?(g=clone$4(p),g.value=h):g=h,c.push(g),u.push(v)})):c=l;var d={category:"ordinal",time:"time",value:"number"}[s]||"number",f=this._data=new SeriesData$1([{name:"value",type:d}],this);f.initData(c,u)},r.prototype.getData=function(){return this._data},r.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},r.type="timeline",r.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:[]},r}(ComponentModel$1),TimelineModel$1=TimelineModel,SliderTimelineModel=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o}return r.type="timeline.slider",r.defaultOption=inheritDefaultOption(TimelineModel$1.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:[]}),r}(TimelineModel$1);mixin(SliderTimelineModel,DataFormatMixin.prototype);var SliderTimelineModel$1=SliderTimelineModel,TimelineView=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o}return r.type="timeline",r}(ComponentView$1),TimelineView$1=TimelineView,TimelineAxis=function(a){__extends(r,a);function r(o,l,s,u){var c=a.call(this,o,l,s)||this;return c.type=u||"value",c}return r.prototype.getLabelModel=function(){return this.model.getModel("label")},r.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},r}(Axis$1),TimelineAxis$1=TimelineAxis,PI=Math.PI,labelDataIndexStore=makeInner(),SliderTimelineView=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o}return r.prototype.init=function(o,l){this.api=l},r.prototype.render=function(o,l,s){if(this.model=o,this.api=s,this.ecModel=l,this.group.removeAll(),o.get("show",!0)){var u=this._layout(o,s),c=this._createGroup("_mainGroup"),d=this._createGroup("_labelGroup"),f=this._axis=this._createAxis(u,o);o.formatTooltip=function(p){var h=f.scale.getLabel({value:p});return createTooltipMarkup("nameValue",{noName:!0,value:h})},each$f(["AxisLine","AxisTick","Control","CurrentPointer"],function(p){this["_render"+p](u,c,f,o)},this),this._renderAxisLabel(u,d,f,o),this._position(u,o)}this._doPlayStop(),this._updateTicksStatus()},r.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},r.prototype.dispose=function(){this._clearTimer()},r.prototype._layout=function(o,l){var s=o.get(["label","position"]),u=o.get("orient"),c=getViewRect(o,l),d;s==null||s==="auto"?d=u==="horizontal"?c.y+c.height/2<l.getHeight()/2?"-":"+":c.x+c.width/2<l.getWidth()/2?"+":"-":isString(s)?d={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[u][s]:d=s;var f={horizontal:"center",vertical:d>=0||d==="+"?"left":"right"},p={horizontal:d>=0||d==="+"?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:PI/2},v=u==="vertical"?c.height:c.width,g=o.getModel("controlStyle"),$=g.get("show",!0),y=$?g.get("itemSize"):0,x=$?g.get("itemGap"):0,w=y+x,S=o.get(["label","rotate"])||0;S=S*PI/180;var C,A,T,I=g.get("position",!0),D=$&&g.get("showPlayBtn",!0),M=$&&g.get("showPrevBtn",!0),L=$&&g.get("showNextBtn",!0),N=0,V=v;I==="left"||I==="bottom"?(D&&(C=[0,0],N+=w),M&&(A=[N,0],N+=w),L&&(T=[V-y,0],V-=w)):(D&&(C=[V-y,0],V-=w),M&&(A=[0,0],N+=w),L&&(T=[V-y,0],V-=w));var R=[N,V];return o.get("inverse")&&R.reverse(),{viewRect:c,mainLength:v,orient:u,rotation:h[u],labelRotation:S,labelPosOpt:d,labelAlign:o.get(["label","align"])||f[u],labelBaseline:o.get(["label","verticalAlign"])||o.get(["label","baseline"])||p[u],playPosition:C,prevBtnPosition:A,nextBtnPosition:T,axisExtent:R,controlSize:y,controlGap:x}},r.prototype._position=function(o,l){var s=this._mainGroup,u=this._labelGroup,c=o.viewRect;if(o.orient==="vertical"){var d=create$1(),f=c.x,p=c.y+c.height;translate(d,d,[-f,-p]),rotate(d,d,-PI/2),translate(d,d,[f,p]),c=c.clone(),c.applyTransform(d)}var h=C(c),v=C(s.getBoundingRect()),g=C(u.getBoundingRect()),$=[s.x,s.y],y=[u.x,u.y];y[0]=$[0]=h[0][0];var x=o.labelPosOpt;if(x==null||isString(x)){var w=x==="+"?0:1;A($,v,h,1,w),A(y,g,h,1,1-w)}else{var w=x>=0?0:1;A($,v,h,1,w),y[1]=$[1]+x}s.setPosition($),u.setPosition(y),s.rotation=u.rotation=o.rotation,S(s),S(u);function S(T){T.originX=h[0][0]-T.x,T.originY=h[1][0]-T.y}function C(T){return[[T.x,T.x+T.width],[T.y,T.y+T.height]]}function A(T,I,D,M,L){T[M]+=D[M][L]-I[M][L]}},r.prototype._createAxis=function(o,l){var s=l.getData(),u=l.get("axisType"),c=createScaleByModel(l,u);c.getTicks=function(){return s.mapArray(["value"],function(p){return{value:p}})};var d=s.getDataExtent("value");c.setExtent(d[0],d[1]),c.calcNiceTicks();var f=new TimelineAxis$1("value",c,o.axisExtent,u);return f.model=l,f},r.prototype._createGroup=function(o){var l=this[o]=new Group$4;return this.group.add(l),l},r.prototype._renderAxisLine=function(o,l,s,u){var c=s.getExtent();if(!!u.get(["lineStyle","show"])){var d=new Line$3({shape:{x1:c[0],y1:0,x2:c[1],y2:0},style:extend({lineCap:"round"},u.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});l.add(d);var f=this._progressLine=new Line$3({shape:{x1:c[0],x2:this._currentPointer?this._currentPointer.x:c[0],y1:0,y2:0},style:defaults({lineCap:"round",lineWidth:d.style.lineWidth},u.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});l.add(f)}},r.prototype._renderAxisTick=function(o,l,s,u){var c=this,d=u.getData(),f=s.scale.getTicks();this._tickSymbols=[],each$f(f,function(p){var h=s.dataToCoord(p.value),v=d.getItemModel(p.value),g=v.getModel("itemStyle"),$=v.getModel(["emphasis","itemStyle"]),y=v.getModel(["progress","itemStyle"]),x={x:h,y:0,onclick:bind$1(c._changeTimeline,c,p.value)},w=giveSymbol(v,g,l,x);w.ensureState("emphasis").style=$.getItemStyle(),w.ensureState("progress").style=y.getItemStyle(),enableHoverEmphasis(w);var S=getECData(w);v.get("tooltip")?(S.dataIndex=p.value,S.dataModel=u):S.dataIndex=S.dataModel=null,c._tickSymbols.push(w)})},r.prototype._renderAxisLabel=function(o,l,s,u){var c=this,d=s.getLabelModel();if(!!d.get("show")){var f=u.getData(),p=s.getViewLabels();this._tickLabels=[],each$f(p,function(h){var v=h.tickValue,g=f.getItemModel(v),$=g.getModel("label"),y=g.getModel(["emphasis","label"]),x=g.getModel(["progress","label"]),w=s.dataToCoord(h.tickValue),S=new ZRText$1({x:w,y:0,rotation:o.labelRotation-o.rotation,onclick:bind$1(c._changeTimeline,c,v),silent:!1,style:createTextStyle$1($,{text:h.formattedLabel,align:o.labelAlign,verticalAlign:o.labelBaseline})});S.ensureState("emphasis").style=createTextStyle$1(y),S.ensureState("progress").style=createTextStyle$1(x),l.add(S),enableHoverEmphasis(S),labelDataIndexStore(S).dataIndex=v,c._tickLabels.push(S)})}},r.prototype._renderControl=function(o,l,s,u){var c=o.controlSize,d=o.rotation,f=u.getModel("controlStyle").getItemStyle(),p=u.getModel(["emphasis","controlStyle"]).getItemStyle(),h=u.getPlayState(),v=u.get("inverse",!0);g(o.nextBtnPosition,"next",bind$1(this._changeTimeline,this,v?"-":"+")),g(o.prevBtnPosition,"prev",bind$1(this._changeTimeline,this,v?"+":"-")),g(o.playPosition,h?"stop":"play",bind$1(this._handlePlayClick,this,!h),!0);function g($,y,x,w){if(!!$){var S=parsePercent$1(retrieve2(u.get(["controlStyle",y+"BtnSize"]),c),c),C=[0,-S/2,S,S],A=makeControlIcon(u,y+"Icon",C,{x:$[0],y:$[1],originX:c/2,originY:0,rotation:w?-d:0,rectHover:!0,style:f,onclick:x});A.ensureState("emphasis").style=p,l.add(A),enableHoverEmphasis(A)}}},r.prototype._renderCurrentPointer=function(o,l,s,u){var c=u.getData(),d=u.getCurrentIndex(),f=c.getItemModel(d).getModel("checkpointStyle"),p=this,h={onCreate:function(v){v.draggable=!0,v.drift=bind$1(p._handlePointerDrag,p),v.ondragend=bind$1(p._handlePointerDragend,p),pointerMoveTo(v,p._progressLine,d,s,u,!0)},onUpdate:function(v){pointerMoveTo(v,p._progressLine,d,s,u)}};this._currentPointer=giveSymbol(f,f,this._mainGroup,{},this._currentPointer,h)},r.prototype._handlePlayClick=function(o){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:o,from:this.uid})},r.prototype._handlePointerDrag=function(o,l,s){this._clearTimer(),this._pointerChangeTimeline([s.offsetX,s.offsetY])},r.prototype._handlePointerDragend=function(o){this._pointerChangeTimeline([o.offsetX,o.offsetY],!0)},r.prototype._pointerChangeTimeline=function(o,l){var s=this._toAxisCoord(o)[0],u=this._axis,c=asc$2(u.getExtent().slice());s>c[1]&&(s=c[1]),s<c[0]&&(s=c[0]),this._currentPointer.x=s,this._currentPointer.markRedraw(),this._progressLine.shape.x2=s,this._progressLine.dirty();var d=this._findNearestTick(s),f=this.model;(l||d!==f.getCurrentIndex()&&f.get("realtime"))&&this._changeTimeline(d)},r.prototype._doPlayStop=function(){var o=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var l=o.model;o._changeTimeline(l.getCurrentIndex()+(l.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},r.prototype._toAxisCoord=function(o){var l=this._mainGroup.getLocalTransform();return applyTransform(o,l,!0)},r.prototype._findNearestTick=function(o){var l=this.model.getData(),s=1/0,u,c=this._axis;return l.each(["value"],function(d,f){var p=c.dataToCoord(d),h=Math.abs(p-o);h<s&&(s=h,u=f)}),u},r.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},r.prototype._changeTimeline=function(o){var l=this.model.getCurrentIndex();o==="+"?o=l+1:o==="-"&&(o=l-1),this.api.dispatchAction({type:"timelineChange",currentIndex:o,from:this.uid})},r.prototype._updateTicksStatus=function(){var o=this.model.getCurrentIndex(),l=this._tickSymbols,s=this._tickLabels;if(l)for(var u=0;u<l.length;u++)l&&l[u]&&l[u].toggleState("progress",u<o);if(s)for(var u=0;u<s.length;u++)s&&s[u]&&s[u].toggleState("progress",labelDataIndexStore(s[u]).dataIndex<=o)},r.type="timeline.slider",r}(TimelineView$1);function createScaleByModel(a,r){if(r=r||a.get("type"),r)switch(r){case"category":return new OrdinalScale$1({ordinalMeta:a.getCategories(),extent:[1/0,-1/0]});case"time":return new TimeScale$1({locale:a.ecModel.getLocaleModel(),useUTC:a.ecModel.get("useUTC")});default:return new IntervalScale$1}}function getViewRect(a,r){return getLayoutRect(a.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()},a.get("padding"))}function makeControlIcon(a,r,o,l){var s=l.style,u=createIcon(a.get(["controlStyle",r]),l||{},new BoundingRect$1(o[0],o[1],o[2],o[3]));return s&&u.setStyle(s),u}function giveSymbol(a,r,o,l,s,u){var c=r.get("color");if(s)s.setColor(c),o.add(s),u&&u.onUpdate(s);else{var d=a.get("symbol");s=createSymbol$1(d,-1,-1,2,2,c),s.setStyle("strokeNoScale",!0),o.add(s),u&&u.onCreate(s)}var f=r.getItemStyle(["color"]);s.setStyle(f),l=merge({rectHover:!0,z2:100},l,!0);var p=normalizeSymbolSize(a.get("symbolSize"));l.scaleX=p[0]/2,l.scaleY=p[1]/2;var h=normalizeSymbolOffset(a.get("symbolOffset"),p);h&&(l.x=(l.x||0)+h[0],l.y=(l.y||0)+h[1]);var v=a.get("symbolRotate");return l.rotation=(v||0)*Math.PI/180||0,s.attr(l),s.updateTransform(),s}function pointerMoveTo(a,r,o,l,s,u){if(!a.dragging){var c=s.getModel("checkpointStyle"),d=l.dataToCoord(s.getData().get("value",o));if(u||!c.get("animation",!0))a.attr({x:d,y:0}),r&&r.attr({shape:{x2:d}});else{var f={duration:c.get("animationDuration",!0),easing:c.get("animationEasing",!0)};a.stopAnimation(null,!0),a.animateTo({x:d,y:0},f),r&&r.animateTo({shape:{x2:d}},f)}}}var SliderTimelineView$1=SliderTimelineView;function installTimelineAction(a){a.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(r,o,l){var s=o.getComponent("timeline");return s&&r.currentIndex!=null&&(s.setCurrentIndex(r.currentIndex),!s.get("loop",!0)&&s.isIndexMax()&&s.getPlayState()&&(s.setPlayState(!1),l.dispatchAction({type:"timelinePlayChange",playState:!1,from:r.from}))),o.resetOption("timeline",{replaceMerge:s.get("replaceMerge",!0)}),defaults({currentIndex:s.option.currentIndex},r)}),a.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(r,o){var l=o.getComponent("timeline");l&&r.playState!=null&&l.setPlayState(r.playState)})}function timelinePreprocessor(a){var r=a&&a.timeline;isArray$1(r)||(r=r?[r]:[]),each$f(r,function(o){!o||compatibleEC2(o)})}function compatibleEC2(a){var r=a.type,o={number:"value",time:"time"};if(o[r]&&(a.axisType=o[r],delete a.type),transferItem(a),has$1(a,"controlPosition")){var l=a.controlStyle||(a.controlStyle={});has$1(l,"position")||(l.position=a.controlPosition),l.position==="none"&&!has$1(l,"show")&&(l.show=!1,delete l.position),delete a.controlPosition}each$f(a.data||[],function(s){isObject$3(s)&&!isArray$1(s)&&(!has$1(s,"value")&&has$1(s,"name")&&(s.value=s.name),transferItem(s))})}function transferItem(a){var r=a.itemStyle||(a.itemStyle={}),o=r.emphasis||(r.emphasis={}),l=a.label||a.label||{},s=l.normal||(l.normal={}),u={normal:1,emphasis:1};each$f(l,function(c,d){!u[d]&&!has$1(s,d)&&(s[d]=c)}),o.label&&!has$1(l,"emphasis")&&(l.emphasis=o.label,delete o.label)}function has$1(a,r){return a.hasOwnProperty(r)}function install$g(a){a.registerComponentModel(SliderTimelineModel$1),a.registerComponentView(SliderTimelineView$1),a.registerSubTypeDefaulter("timeline",function(){return"slider"}),installTimelineAction(a),a.registerPreprocessor(timelinePreprocessor)}function checkMarkerInSeries(a,r){if(!a)return!1;for(var o=isArray$1(a)?a:[a],l=0;l<o.length;l++)if(o[l]&&o[l][r])return!0;return!1}function fillLabel(a){defaultEmphasis(a,"label",["show"])}var inner$5=makeInner(),MarkerModel=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o.createdBySelf=!1,o}return r.prototype.init=function(o,l,s){this.mergeDefaultAndTheme(o,s),this._mergeOption(o,s,!1,!0)},r.prototype.isAnimationEnabled=function(){if(env$1.node)return!1;var o=this.__hostSeries;return this.getShallow("animation")&&o&&o.isAnimationEnabled()},r.prototype.mergeOption=function(o,l){this._mergeOption(o,l,!1,!1)},r.prototype._mergeOption=function(o,l,s,u){var c=this.mainType;s||l.eachSeries(function(d){var f=d.get(this.mainType,!0),p=inner$5(d)[c];if(!f||!f.data){inner$5(d)[c]=null;return}p?p._mergeOption(f,l,!0):(u&&fillLabel(f),each$f(f.data,function(h){h instanceof Array?(fillLabel(h[0]),fillLabel(h[1])):fillLabel(h)}),p=this.createMarkerModelFromSeries(f,this,l),extend(p,{mainType:this.mainType,seriesIndex:d.seriesIndex,name:d.name,createdBySelf:!0}),p.__hostSeries=d),inner$5(d)[c]=p},this)},r.prototype.formatTooltip=function(o,l,s){var u=this.getData(),c=this.getRawValue(o),d=u.getName(o);return createTooltipMarkup("section",{header:this.name,blocks:[createTooltipMarkup("nameValue",{name:d,value:c,noName:!d,noValue:c==null})]})},r.prototype.getData=function(){return this._data},r.prototype.setData=function(o){this._data=o},r.getMarkerModelFromSeries=function(o,l){return inner$5(o)[l]},r.type="marker",r.dependencies=["series","grid","polar","geo"],r}(ComponentModel$1);mixin(MarkerModel,DataFormatMixin.prototype);var MarkerModel$1=MarkerModel,MarkPointModel=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o}return r.prototype.createMarkerModelFromSeries=function(o,l,s){return new r(o,l,s)},r.type="markPoint",r.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},r}(MarkerModel$1),MarkPointModel$1=MarkPointModel;function hasXOrY(a){return!(isNaN(parseFloat(a.x))&&isNaN(parseFloat(a.y)))}function hasXAndY(a){return!isNaN(parseFloat(a.x))&&!isNaN(parseFloat(a.y))}function markerTypeCalculatorWithExtent(a,r,o,l,s,u){var c=[],d=isDimensionStacked(r,l),f=d?r.getCalculationInfo("stackResultDimension"):l,p=numCalculate(r,f,a),h=r.indicesOfNearest(f,p)[0];c[s]=r.get(o,h),c[u]=r.get(f,h);var v=r.get(l,h),g=getPrecision(r.get(l,h));return g=Math.min(g,20),g>=0&&(c[u]=+c[u].toFixed(g)),[c,v]}var markerTypeCalculator={min:curry$1(markerTypeCalculatorWithExtent,"min"),max:curry$1(markerTypeCalculatorWithExtent,"max"),average:curry$1(markerTypeCalculatorWithExtent,"average"),median:curry$1(markerTypeCalculatorWithExtent,"median")};function dataTransform(a,r){var o=a.getData(),l=a.coordinateSystem;if(r&&!hasXAndY(r)&&!isArray$1(r.coord)&&l){var s=l.dimensions,u=getAxisInfo(r,o,l,a);if(r=clone$4(r),r.type&&markerTypeCalculator[r.type]&&u.baseAxis&&u.valueAxis){var c=indexOf(s,u.baseAxis.dim),d=indexOf(s,u.valueAxis.dim),f=markerTypeCalculator[r.type](o,u.baseDataDim,u.valueDataDim,c,d);r.coord=f[0],r.value=f[1]}else{for(var p=[r.xAxis!=null?r.xAxis:r.radiusAxis,r.yAxis!=null?r.yAxis:r.angleAxis],h=0;h<2;h++)markerTypeCalculator[p[h]]&&(p[h]=numCalculate(o,o.mapDimension(s[h]),p[h]));r.coord=p}}return r}function getAxisInfo(a,r,o,l){var s={};return a.valueIndex!=null||a.valueDim!=null?(s.valueDataDim=a.valueIndex!=null?r.getDimension(a.valueIndex):a.valueDim,s.valueAxis=o.getAxis(dataDimToCoordDim(l,s.valueDataDim)),s.baseAxis=o.getOtherAxis(s.valueAxis),s.baseDataDim=r.mapDimension(s.baseAxis.dim)):(s.baseAxis=l.getBaseAxis(),s.valueAxis=o.getOtherAxis(s.baseAxis),s.baseDataDim=r.mapDimension(s.baseAxis.dim),s.valueDataDim=r.mapDimension(s.valueAxis.dim)),s}function dataDimToCoordDim(a,r){var o=a.getData().getDimensionInfo(r);return o&&o.coordDim}function dataFilter(a,r){return a&&a.containData&&r.coord&&!hasXOrY(r)?a.containData(r.coord):!0}function zoneFilter(a,r,o){return a&&a.containZone&&r.coord&&o.coord&&!hasXOrY(r)&&!hasXOrY(o)?a.containZone(r.coord,o.coord):!0}function createMarkerDimValueGetter(a,r){return a?function(o,l,s,u){var c=u<2?o.coord&&o.coord[u]:o.value;return parseDataValue(c,r[u])}:function(o,l,s,u){return parseDataValue(o.value,r[u])}}function numCalculate(a,r,o){if(o==="average"){var l=0,s=0;return a.each(r,function(u,c){isNaN(u)||(l+=u,s++)}),l/s}else return o==="median"?a.getMedian(r):a.getDataExtent(r)[o==="max"?1:0]}var inner$4=makeInner(),MarkerView=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o}return r.prototype.init=function(){this.markerGroupMap=createHashMap()},r.prototype.render=function(o,l,s){var u=this,c=this.markerGroupMap;c.each(function(d){inner$4(d).keep=!1}),l.eachSeries(function(d){var f=MarkerModel$1.getMarkerModelFromSeries(d,u.type);f&&u.renderSeries(d,f,l,s)}),c.each(function(d){!inner$4(d).keep&&u.group.remove(d.group)})},r.prototype.markKeep=function(o){inner$4(o).keep=!0},r.prototype.toggleBlurSeries=function(o,l){var s=this;each$f(o,function(u){var c=MarkerModel$1.getMarkerModelFromSeries(u,s.type);if(c){var d=c.getData();d.eachItemGraphicEl(function(f){f&&(l?enterBlur(f):leaveBlur(f))})}})},r.type="marker",r}(ComponentView$1),MarkerView$1=MarkerView;function updateMarkerLayout(a,r,o){var l=r.coordinateSystem;a.each(function(s){var u=a.getItemModel(s),c,d=parsePercent(u.get("x"),o.getWidth()),f=parsePercent(u.get("y"),o.getHeight());if(!isNaN(d)&&!isNaN(f))c=[d,f];else if(r.getMarkerPosition)c=r.getMarkerPosition(a.getValues(a.dimensions,s));else if(l){var p=a.get(l.dimensions[0],s),h=a.get(l.dimensions[1],s);c=l.dataToPoint([p,h])}isNaN(d)||(c[0]=d),isNaN(f)||(c[1]=f),a.setItemLayout(s,c)})}var MarkPointView=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o}return r.prototype.updateTransform=function(o,l,s){l.eachSeries(function(u){var c=MarkerModel$1.getMarkerModelFromSeries(u,"markPoint");c&&(updateMarkerLayout(c.getData(),u,s),this.markerGroupMap.get(u.id).updateLayout())},this)},r.prototype.renderSeries=function(o,l,s,u){var c=o.coordinateSystem,d=o.id,f=o.getData(),p=this.markerGroupMap,h=p.get(d)||p.set(d,new SymbolDraw$1),v=createData(c,o,l);l.setData(v),updateMarkerLayout(l.getData(),o,u),v.each(function(g){var $=v.getItemModel(g),y=$.getShallow("symbol"),x=$.getShallow("symbolSize"),w=$.getShallow("symbolRotate"),S=$.getShallow("symbolOffset"),C=$.getShallow("symbolKeepAspect");if(isFunction(y)||isFunction(x)||isFunction(w)||isFunction(S)){var A=l.getRawValue(g),T=l.getDataParams(g);isFunction(y)&&(y=y(A,T)),isFunction(x)&&(x=x(A,T)),isFunction(w)&&(w=w(A,T)),isFunction(S)&&(S=S(A,T))}var I=$.getModel("itemStyle").getItemStyle(),D=getVisualFromData(f,"color");I.fill||(I.fill=D),v.setItemVisual(g,{symbol:y,symbolSize:x,symbolRotate:w,symbolOffset:S,symbolKeepAspect:C,style:I})}),h.updateData(v),this.group.add(h.group),v.eachItemGraphicEl(function(g){g.traverse(function($){getECData($).dataModel=l})}),this.markKeep(h),h.group.silent=l.get("silent")||o.get("silent")},r.type="markPoint",r}(MarkerView$1);function createData(a,r,o){var l;a?l=map$1(a&&a.dimensions,function(d){var f=r.getData().getDimensionInfo(r.getData().mapDimension(d))||{};return extend(extend({},f),{name:d,ordinalMeta:null})}):l=[{name:"value",type:"float"}];var s=new SeriesData$1(l,o),u=map$1(o.get("data"),curry$1(dataTransform,r));a&&(u=filter(u,curry$1(dataFilter,a)));var c=createMarkerDimValueGetter(!!a,l);return s.initData(u,null,c),s}var MarkPointView$1=MarkPointView;function install$f(a){a.registerComponentModel(MarkPointModel$1),a.registerComponentView(MarkPointView$1),a.registerPreprocessor(function(r){checkMarkerInSeries(r.series,"markPoint")&&(r.markPoint=r.markPoint||{})})}var MarkLineModel=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o}return r.prototype.createMarkerModelFromSeries=function(o,l,s){return new r(o,l,s)},r.type="markLine",r.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},r}(MarkerModel$1),MarkLineModel$1=MarkLineModel,inner$3=makeInner(),markLineTransform=function(a,r,o,l){var s=a.getData(),u;if(isArray$1(l))u=l;else{var c=l.type;if(c==="min"||c==="max"||c==="average"||c==="median"||l.xAxis!=null||l.yAxis!=null){var d=void 0,f=void 0;if(l.yAxis!=null||l.xAxis!=null)d=r.getAxis(l.yAxis!=null?"y":"x"),f=retrieve(l.yAxis,l.xAxis);else{var p=getAxisInfo(l,s,r,a);d=p.valueAxis;var h=getStackedDimension(s,p.valueDataDim);f=numCalculate(s,h,c)}var v=d.dim==="x"?0:1,g=1-v,$=clone$4(l),y={coord:[]};$.type=null,$.coord=[],$.coord[g]=-1/0,y.coord[g]=1/0;var x=o.get("precision");x>=0&&isNumber(f)&&(f=+f.toFixed(Math.min(x,20))),$.coord[v]=y.coord[v]=f,u=[$,y,{type:c,valueIndex:l.valueIndex,value:f}]}else u=[]}var w=[dataTransform(a,u[0]),dataTransform(a,u[1]),extend({},u[2])];return w[2].type=w[2].type||null,merge(w[2],w[0]),merge(w[2],w[1]),w};function isInifinity$1(a){return!isNaN(a)&&!isFinite(a)}function ifMarkLineHasOnlyDim(a,r,o,l){var s=1-a,u=l.dimensions[a];return isInifinity$1(r[s])&&isInifinity$1(o[s])&&r[a]===o[a]&&l.getAxis(u).containData(r[a])}function markLineFilter(a,r){if(a.type==="cartesian2d"){var o=r[0].coord,l=r[1].coord;if(o&&l&&(ifMarkLineHasOnlyDim(1,o,l,a)||ifMarkLineHasOnlyDim(0,o,l,a)))return!0}return dataFilter(a,r[0])&&dataFilter(a,r[1])}function updateSingleMarkerEndLayout(a,r,o,l,s){var u=l.coordinateSystem,c=a.getItemModel(r),d,f=parsePercent(c.get("x"),s.getWidth()),p=parsePercent(c.get("y"),s.getHeight());if(!isNaN(f)&&!isNaN(p))d=[f,p];else{if(l.getMarkerPosition)d=l.getMarkerPosition(a.getValues(a.dimensions,r));else{var h=u.dimensions,v=a.get(h[0],r),g=a.get(h[1],r);d=u.dataToPoint([v,g])}if(isCoordinateSystemType(u,"cartesian2d")){var $=u.getAxis("x"),y=u.getAxis("y"),h=u.dimensions;isInifinity$1(a.get(h[0],r))?d[0]=$.toGlobalCoord($.getExtent()[o?0:1]):isInifinity$1(a.get(h[1],r))&&(d[1]=y.toGlobalCoord(y.getExtent()[o?0:1]))}isNaN(f)||(d[0]=f),isNaN(p)||(d[1]=p)}a.setItemLayout(r,d)}var MarkLineView=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o}return r.prototype.updateTransform=function(o,l,s){l.eachSeries(function(u){var c=MarkerModel$1.getMarkerModelFromSeries(u,"markLine");if(c){var d=c.getData(),f=inner$3(c).from,p=inner$3(c).to;f.each(function(h){updateSingleMarkerEndLayout(f,h,!0,u,s),updateSingleMarkerEndLayout(p,h,!1,u,s)}),d.each(function(h){d.setItemLayout(h,[f.getItemLayout(h),p.getItemLayout(h)])}),this.markerGroupMap.get(u.id).updateLayout()}},this)},r.prototype.renderSeries=function(o,l,s,u){var c=o.coordinateSystem,d=o.id,f=o.getData(),p=this.markerGroupMap,h=p.get(d)||p.set(d,new LineDraw$1);this.group.add(h.group);var v=createList$1(c,o,l),g=v.from,$=v.to,y=v.line;inner$3(l).from=g,inner$3(l).to=$,l.setData(y);var x=l.get("symbol"),w=l.get("symbolSize"),S=l.get("symbolRotate"),C=l.get("symbolOffset");isArray$1(x)||(x=[x,x]),isArray$1(w)||(w=[w,w]),isArray$1(S)||(S=[S,S]),isArray$1(C)||(C=[C,C]),v.from.each(function(T){A(g,T,!0),A($,T,!1)}),y.each(function(T){var I=y.getItemModel(T).getModel("lineStyle").getLineStyle();y.setItemLayout(T,[g.getItemLayout(T),$.getItemLayout(T)]),I.stroke==null&&(I.stroke=g.getItemVisual(T,"style").fill),y.setItemVisual(T,{fromSymbolKeepAspect:g.getItemVisual(T,"symbolKeepAspect"),fromSymbolOffset:g.getItemVisual(T,"symbolOffset"),fromSymbolRotate:g.getItemVisual(T,"symbolRotate"),fromSymbolSize:g.getItemVisual(T,"symbolSize"),fromSymbol:g.getItemVisual(T,"symbol"),toSymbolKeepAspect:$.getItemVisual(T,"symbolKeepAspect"),toSymbolOffset:$.getItemVisual(T,"symbolOffset"),toSymbolRotate:$.getItemVisual(T,"symbolRotate"),toSymbolSize:$.getItemVisual(T,"symbolSize"),toSymbol:$.getItemVisual(T,"symbol"),style:I})}),h.updateData(y),v.line.eachItemGraphicEl(function(T){getECData(T).dataModel=l,T.traverse(function(I){getECData(I).dataModel=l})});function A(T,I,D){var M=T.getItemModel(I);updateSingleMarkerEndLayout(T,I,D,o,u);var L=M.getModel("itemStyle").getItemStyle();L.fill==null&&(L.fill=getVisualFromData(f,"color")),T.setItemVisual(I,{symbolKeepAspect:M.get("symbolKeepAspect"),symbolOffset:retrieve2(M.get("symbolOffset",!0),C[D?0:1]),symbolRotate:retrieve2(M.get("symbolRotate",!0),S[D?0:1]),symbolSize:retrieve2(M.get("symbolSize"),w[D?0:1]),symbol:retrieve2(M.get("symbol",!0),x[D?0:1]),style:L})}this.markKeep(h),h.group.silent=l.get("silent")||o.get("silent")},r.type="markLine",r}(MarkerView$1);function createList$1(a,r,o){var l;a?l=map$1(a&&a.dimensions,function(p){var h=r.getData().getDimensionInfo(r.getData().mapDimension(p))||{};return extend(extend({},h),{name:p,ordinalMeta:null})}):l=[{name:"value",type:"float"}];var s=new SeriesData$1(l,o),u=new SeriesData$1(l,o),c=new SeriesData$1([],o),d=map$1(o.get("data"),curry$1(markLineTransform,r,a,o));a&&(d=filter(d,curry$1(markLineFilter,a)));var f=createMarkerDimValueGetter(!!a,l);return s.initData(map$1(d,function(p){return p[0]}),null,f),u.initData(map$1(d,function(p){return p[1]}),null,f),c.initData(map$1(d,function(p){return p[2]})),c.hasItemOption=!0,{from:s,to:u,line:c}}var MarkLineView$1=MarkLineView;function install$e(a){a.registerComponentModel(MarkLineModel$1),a.registerComponentView(MarkLineView$1),a.registerPreprocessor(function(r){checkMarkerInSeries(r.series,"markLine")&&(r.markLine=r.markLine||{})})}var MarkAreaModel=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o}return r.prototype.createMarkerModelFromSeries=function(o,l,s){return new r(o,l,s)},r.type="markArea",r.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},r}(MarkerModel$1),MarkAreaModel$1=MarkAreaModel,inner$2=makeInner(),markAreaTransform=function(a,r,o,l){var s=dataTransform(a,l[0]),u=dataTransform(a,l[1]),c=s.coord,d=u.coord;c[0]=retrieve(c[0],-1/0),c[1]=retrieve(c[1],-1/0),d[0]=retrieve(d[0],1/0),d[1]=retrieve(d[1],1/0);var f=mergeAll([{},s,u]);return f.coord=[s.coord,u.coord],f.x0=s.x,f.y0=s.y,f.x1=u.x,f.y1=u.y,f};function isInifinity(a){return!isNaN(a)&&!isFinite(a)}function ifMarkAreaHasOnlyDim(a,r,o,l){var s=1-a;return isInifinity(r[s])&&isInifinity(o[s])}function markAreaFilter(a,r){var o=r.coord[0],l=r.coord[1],s={coord:o,x:r.x0,y:r.y0},u={coord:l,x:r.x1,y:r.y1};return isCoordinateSystemType(a,"cartesian2d")?o&&l&&(ifMarkAreaHasOnlyDim(1,o,l)||ifMarkAreaHasOnlyDim(0,o,l))?!0:zoneFilter(a,s,u):dataFilter(a,s)||dataFilter(a,u)}function getSingleMarkerEndPoint(a,r,o,l,s){var u=l.coordinateSystem,c=a.getItemModel(r),d,f=parsePercent(c.get(o[0]),s.getWidth()),p=parsePercent(c.get(o[1]),s.getHeight());if(!isNaN(f)&&!isNaN(p))d=[f,p];else{if(l.getMarkerPosition)d=l.getMarkerPosition(a.getValues(o,r));else{var h=a.get(o[0],r),v=a.get(o[1],r),g=[h,v];u.clampData&&u.clampData(g,g),d=u.dataToPoint(g,!0)}if(isCoordinateSystemType(u,"cartesian2d")){var $=u.getAxis("x"),y=u.getAxis("y"),h=a.get(o[0],r),v=a.get(o[1],r);isInifinity(h)?d[0]=$.toGlobalCoord($.getExtent()[o[0]==="x0"?0:1]):isInifinity(v)&&(d[1]=y.toGlobalCoord(y.getExtent()[o[1]==="y0"?0:1]))}isNaN(f)||(d[0]=f),isNaN(p)||(d[1]=p)}return d}var dimPermutations=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],MarkAreaView=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o}return r.prototype.updateTransform=function(o,l,s){l.eachSeries(function(u){var c=MarkerModel$1.getMarkerModelFromSeries(u,"markArea");if(c){var d=c.getData();d.each(function(f){var p=map$1(dimPermutations,function(v){return getSingleMarkerEndPoint(d,f,v,u,s)});d.setItemLayout(f,p);var h=d.getItemGraphicEl(f);h.setShape("points",p)})}},this)},r.prototype.renderSeries=function(o,l,s,u){var c=o.coordinateSystem,d=o.id,f=o.getData(),p=this.markerGroupMap,h=p.get(d)||p.set(d,{group:new Group$4});this.group.add(h.group),this.markKeep(h);var v=createList(c,o,l);l.setData(v),v.each(function(g){var $=map$1(dimPermutations,function(L){return getSingleMarkerEndPoint(v,g,L,o,u)}),y=c.getAxis("x").scale,x=c.getAxis("y").scale,w=y.getExtent(),S=x.getExtent(),C=[y.parse(v.get("x0",g)),y.parse(v.get("x1",g))],A=[x.parse(v.get("y0",g)),x.parse(v.get("y1",g))];asc$2(C),asc$2(A);var T=!(w[0]>C[1]||w[1]<C[0]||S[0]>A[1]||S[1]<A[0]),I=!T;v.setItemLayout(g,{points:$,allClipped:I});var D=v.getItemModel(g).getModel("itemStyle").getItemStyle(),M=getVisualFromData(f,"color");D.fill||(D.fill=M,isString(D.fill)&&(D.fill=modifyAlpha(D.fill,.4))),D.stroke||(D.stroke=M),v.setItemVisual(g,"style",D)}),v.diff(inner$2(h).data).add(function(g){var $=v.getItemLayout(g);if(!$.allClipped){var y=new Polygon$1({shape:{points:$.points}});v.setItemGraphicEl(g,y),h.group.add(y)}}).update(function(g,$){var y=inner$2(h).data.getItemGraphicEl($),x=v.getItemLayout(g);x.allClipped?y&&h.group.remove(y):(y?updateProps$1(y,{shape:{points:x.points}},l,g):y=new Polygon$1({shape:{points:x.points}}),v.setItemGraphicEl(g,y),h.group.add(y))}).remove(function(g){var $=inner$2(h).data.getItemGraphicEl(g);h.group.remove($)}).execute(),v.eachItemGraphicEl(function(g,$){var y=v.getItemModel($),x=v.getItemVisual($,"style");g.useStyle(v.getItemVisual($,"style")),setLabelStyle(g,getLabelStatesModels(y),{labelFetcher:l,labelDataIndex:$,defaultText:v.getName($)||"",inheritColor:isString(x.fill)?modifyAlpha(x.fill,1):"#000"}),setStatesStylesFromModel(g,y),toggleHoverEmphasis(g,null,null,y.get(["emphasis","disabled"])),getECData(g).dataModel=l}),inner$2(h).data=v,h.group.silent=l.get("silent")||o.get("silent")},r.type="markArea",r}(MarkerView$1);function createList(a,r,o){var l,s,u=["x0","y0","x1","y1"];if(a){var c=map$1(a&&a.dimensions,function(p){var h=r.getData(),v=h.getDimensionInfo(h.mapDimension(p))||{};return extend(extend({},v),{name:p,ordinalMeta:null})});s=map$1(u,function(p,h){return{name:p,type:c[h%2].type}}),l=new SeriesData$1(s,o)}else s=[{name:"value",type:"float"}],l=new SeriesData$1(s,o);var d=map$1(o.get("data"),curry$1(markAreaTransform,r,a,o));a&&(d=filter(d,curry$1(markAreaFilter,a)));var f=a?function(p,h,v,g){var $=p.coord[Math.floor(g/2)][g%2];return parseDataValue($,s[g])}:function(p,h,v,g){return parseDataValue(p.value,s[g])};return l.initData(d,null,f),l.hasItemOption=!0,l}var MarkAreaView$1=MarkAreaView;function install$d(a){a.registerComponentModel(MarkAreaModel$1),a.registerComponentView(MarkAreaView$1),a.registerPreprocessor(function(r){checkMarkerInSeries(r.series,"markArea")&&(r.markArea=r.markArea||{})})}var getDefaultSelectorOptions=function(a,r){if(r==="all")return{type:"all",title:a.getLocaleModel().get(["legend","selector","all"])};if(r==="inverse")return{type:"inverse",title:a.getLocaleModel().get(["legend","selector","inverse"])}},LegendModel=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o.layoutMode={type:"box",ignoreSize:!0},o}return r.prototype.init=function(o,l,s){this.mergeDefaultAndTheme(o,s),o.selected=o.selected||{},this._updateSelector(o)},r.prototype.mergeOption=function(o,l){a.prototype.mergeOption.call(this,o,l),this._updateSelector(o)},r.prototype._updateSelector=function(o){var l=o.selector,s=this.ecModel;l===!0&&(l=o.selector=["all","inverse"]),isArray$1(l)&&each$f(l,function(u,c){isString(u)&&(u={type:u}),l[c]=merge(u,getDefaultSelectorOptions(s,u.type))})},r.prototype.optionUpdated=function(){this._updateData(this.ecModel);var o=this._data;if(o[0]&&this.get("selectedMode")==="single"){for(var l=!1,s=0;s<o.length;s++){var u=o[s].get("name");if(this.isSelected(u)){this.select(u),l=!0;break}}!l&&this.select(o[0].get("name"))}},r.prototype._updateData=function(o){var l=[],s=[];o.eachRawSeries(function(d){var f=d.name;s.push(f);var p;if(d.legendVisualProvider){var h=d.legendVisualProvider,v=h.getAllNames();o.isSeriesFiltered(d)||(s=s.concat(v)),v.length?l=l.concat(v):p=!0}else p=!0;p&&isNameSpecified(d)&&l.push(d.name)}),this._availableNames=s;var u=this.get("data")||l,c=map$1(u,function(d){return(isString(d)||isNumber(d))&&(d={name:d}),new Model$1(d,this,this.ecModel)},this);this._data=c},r.prototype.getData=function(){return this._data},r.prototype.select=function(o){var l=this.option.selected,s=this.get("selectedMode");if(s==="single"){var u=this._data;each$f(u,function(c){l[c.get("name")]=!1})}l[o]=!0},r.prototype.unSelect=function(o){this.get("selectedMode")!=="single"&&(this.option.selected[o]=!1)},r.prototype.toggleSelected=function(o){var l=this.option.selected;l.hasOwnProperty(o)||(l[o]=!0),this[l[o]?"unSelect":"select"](o)},r.prototype.allSelect=function(){var o=this._data,l=this.option.selected;each$f(o,function(s){l[s.get("name",!0)]=!0})},r.prototype.inverseSelect=function(){var o=this._data,l=this.option.selected;each$f(o,function(s){var u=s.get("name",!0);l.hasOwnProperty(u)||(l[u]=!0),l[u]=!l[u]})},r.prototype.isSelected=function(o){var l=this.option.selected;return!(l.hasOwnProperty(o)&&!l[o])&&indexOf(this._availableNames,o)>=0},r.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},r.type="legend.plain",r.dependencies=["series"],r.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},r}(ComponentModel$1),LegendModel$1=LegendModel,curry=curry$1,each$3=each$f,Group$1=Group$4,LegendView=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o.newlineDisabled=!1,o}return r.prototype.init=function(){this.group.add(this._contentGroup=new Group$1),this.group.add(this._selectorGroup=new Group$1),this._isFirstRender=!0},r.prototype.getContentGroup=function(){return this._contentGroup},r.prototype.getSelectorGroup=function(){return this._selectorGroup},r.prototype.render=function(o,l,s){var u=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!o.get("show",!0)){var c=o.get("align"),d=o.get("orient");(!c||c==="auto")&&(c=o.get("left")==="right"&&d==="vertical"?"right":"left");var f=o.get("selector",!0),p=o.get("selectorPosition",!0);f&&(!p||p==="auto")&&(p=d==="horizontal"?"end":"start"),this.renderInner(c,o,l,s,f,d,p);var h=o.getBoxLayoutParams(),v={width:s.getWidth(),height:s.getHeight()},g=o.get("padding"),$=getLayoutRect(h,v,g),y=this.layoutInner(o,c,$,u,f,p),x=getLayoutRect(defaults({width:y.width,height:y.height},h),v,g);this.group.x=x.x-y.x,this.group.y=x.y-y.y,this.group.markRedraw(),this.group.add(this._backgroundEl=makeBackground(y,o))}},r.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},r.prototype.renderInner=function(o,l,s,u,c,d,f){var p=this.getContentGroup(),h=createHashMap(),v=l.get("selectedMode"),g=[];s.eachRawSeries(function($){!$.get("legendHoverLink")&&g.push($.id)}),each$3(l.getData(),function($,y){var x=$.get("name");if(!this.newlineDisabled&&(x===""||x===`
223
223
  `)){var w=new Group$1;w.newline=!0,p.add(w);return}var S=s.getSeriesByName(x)[0];if(!h.get(x))if(S){var C=S.getData(),A=C.getVisual("legendLineStyle")||{},T=C.getVisual("legendIcon"),I=C.getVisual("style"),D=this._createItem(S,x,y,$,l,o,A,I,T,v,u);D.on("click",curry(dispatchSelectAction,x,null,u,g)).on("mouseover",curry(dispatchHighlightAction,S.name,null,u,g)).on("mouseout",curry(dispatchDownplayAction,S.name,null,u,g)),h.set(x,!0)}else s.eachRawSeries(function(M){if(!h.get(x)&&M.legendVisualProvider){var L=M.legendVisualProvider;if(!L.containName(x))return;var N=L.indexOfName(x),V=L.getItemVisual(N,"style"),R=L.getItemVisual(N,"legendIcon"),P=parse(V.fill);P&&P[3]===0&&(P[3]=.2,V=extend(extend({},V),{fill:stringify(P,"rgba")}));var q=this._createItem(M,x,y,$,l,o,{},V,R,v,u);q.on("click",curry(dispatchSelectAction,null,x,u,g)).on("mouseover",curry(dispatchHighlightAction,null,x,u,g)).on("mouseout",curry(dispatchDownplayAction,null,x,u,g)),h.set(x,!0)}},this)},this),c&&this._createSelector(c,l,u,d,f)},r.prototype._createSelector=function(o,l,s,u,c){var d=this.getSelectorGroup();each$3(o,function(p){var h=p.type,v=new ZRText$1({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){s.dispatchAction({type:h==="all"?"legendAllSelect":"legendInverseSelect"})}});d.add(v);var g=l.getModel("selectorLabel"),$=l.getModel(["emphasis","selectorLabel"]);setLabelStyle(v,{normal:g,emphasis:$},{defaultText:p.title}),enableHoverEmphasis(v)})},r.prototype._createItem=function(o,l,s,u,c,d,f,p,h,v,g){var $=o.visualDrawType,y=c.get("itemWidth"),x=c.get("itemHeight"),w=c.isSelected(l),S=u.get("symbolRotate"),C=u.get("symbolKeepAspect"),A=u.get("icon");h=A||h||"roundRect";var T=getLegendStyle(h,u,f,p,$,w,g),I=new Group$1,D=u.getModel("textStyle");if(isFunction(o.getLegendIcon)&&(!A||A==="inherit"))I.add(o.getLegendIcon({itemWidth:y,itemHeight:x,icon:h,iconRotate:S,itemStyle:T.itemStyle,lineStyle:T.lineStyle,symbolKeepAspect:C}));else{var M=A==="inherit"&&o.getData().getVisual("symbol")?S==="inherit"?o.getData().getVisual("symbolRotate"):S:0;I.add(getDefaultLegendIcon({itemWidth:y,itemHeight:x,icon:h,iconRotate:M,itemStyle:T.itemStyle,lineStyle:T.lineStyle,symbolKeepAspect:C}))}var L=d==="left"?y+5:-5,N=d,V=c.get("formatter"),R=l;isString(V)&&V?R=V.replace("{name}",l!=null?l:""):isFunction(V)&&(R=V(l));var P=u.get("inactiveColor");I.add(new ZRText$1({style:createTextStyle$1(D,{text:R,x:L,y:x/2,fill:w?D.getTextColor():P,align:N,verticalAlign:"middle"})}));var q=new Rect$3({shape:I.getBoundingRect(),invisible:!0}),B=u.getModel("tooltip");return B.get("show")&&setTooltipConfig({el:q,componentModel:c,itemName:l,itemTooltipOption:B.option}),I.add(q),I.eachChild(function(F){F.silent=!0}),q.silent=!v,this.getContentGroup().add(I),enableHoverEmphasis(I),I.__legendDataIndex=s,I},r.prototype.layoutInner=function(o,l,s,u,c,d){var f=this.getContentGroup(),p=this.getSelectorGroup();box(o.get("orient"),f,o.get("itemGap"),s.width,s.height);var h=f.getBoundingRect(),v=[-h.x,-h.y];if(p.markRedraw(),f.markRedraw(),c){box("horizontal",p,o.get("selectorItemGap",!0));var g=p.getBoundingRect(),$=[-g.x,-g.y],y=o.get("selectorButtonGap",!0),x=o.getOrient().index,w=x===0?"width":"height",S=x===0?"height":"width",C=x===0?"y":"x";d==="end"?$[x]+=h[w]+y:v[x]+=g[w]+y,$[1-x]+=h[S]/2-g[S]/2,p.x=$[0],p.y=$[1],f.x=v[0],f.y=v[1];var A={x:0,y:0};return A[w]=h[w]+y+g[w],A[S]=Math.max(h[S],g[S]),A[C]=Math.min(0,g[C]+$[1-x]),A}else return f.x=v[0],f.y=v[1],this.group.getBoundingRect()},r.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},r.type="legend.plain",r}(ComponentView$1);function getLegendStyle(a,r,o,l,s,u,c){function d(w,S){w.lineWidth==="auto"&&(w.lineWidth=S.lineWidth>0?2:0),each$3(w,function(C,A){w[A]==="inherit"&&(w[A]=S[A])})}var f=r.getModel("itemStyle"),p=f.getItemStyle(),h=a.lastIndexOf("empty",0)===0?"fill":"stroke",v=f.getShallow("decal");p.decal=!v||v==="inherit"?l.decal:createOrUpdatePatternFromDecal(v,c),p.fill==="inherit"&&(p.fill=l[s]),p.stroke==="inherit"&&(p.stroke=l[h]),p.opacity==="inherit"&&(p.opacity=(s==="fill"?l:o).opacity),d(p,l);var g=r.getModel("lineStyle"),$=g.getLineStyle();if(d($,o),p.fill==="auto"&&(p.fill=l.fill),p.stroke==="auto"&&(p.stroke=l.fill),$.stroke==="auto"&&($.stroke=l.fill),!u){var y=r.get("inactiveBorderWidth"),x=p[h];p.lineWidth=y==="auto"?l.lineWidth>0&&x?2:0:p.lineWidth,p.fill=r.get("inactiveColor"),p.stroke=r.get("inactiveBorderColor"),$.stroke=g.get("inactiveColor"),$.lineWidth=g.get("inactiveWidth")}return{itemStyle:p,lineStyle:$}}function getDefaultLegendIcon(a){var r=a.icon||"roundRect",o=createSymbol$1(r,0,0,a.itemWidth,a.itemHeight,a.itemStyle.fill,a.symbolKeepAspect);return o.setStyle(a.itemStyle),o.rotation=(a.iconRotate||0)*Math.PI/180,o.setOrigin([a.itemWidth/2,a.itemHeight/2]),r.indexOf("empty")>-1&&(o.style.stroke=o.style.fill,o.style.fill="#fff",o.style.lineWidth=2),o}function dispatchSelectAction(a,r,o,l){dispatchDownplayAction(a,r,o,l),o.dispatchAction({type:"legendToggleSelect",name:a!=null?a:r}),dispatchHighlightAction(a,r,o,l)}function isUseHoverLayer(a){for(var r=a.getZr().storage.getDisplayList(),o,l=0,s=r.length;l<s&&!(o=r[l].states.emphasis);)l++;return o&&o.hoverLayer}function dispatchHighlightAction(a,r,o,l){isUseHoverLayer(o)||o.dispatchAction({type:"highlight",seriesName:a,name:r,excludeSeriesId:l})}function dispatchDownplayAction(a,r,o,l){isUseHoverLayer(o)||o.dispatchAction({type:"downplay",seriesName:a,name:r,excludeSeriesId:l})}var LegendView$1=LegendView;function legendFilter(a){var r=a.findComponents({mainType:"legend"});r&&r.length&&a.filterSeries(function(o){for(var l=0;l<r.length;l++)if(!r[l].isSelected(o.name))return!1;return!0})}function legendSelectActionHandler(a,r,o){var l={},s=a==="toggleSelected",u;return o.eachComponent("legend",function(c){s&&u!=null?c[u?"select":"unSelect"](r.name):a==="allSelect"||a==="inverseSelect"?c[a]():(c[a](r.name),u=c.isSelected(r.name));var d=c.getData();each$f(d,function(f){var p=f.get("name");if(!(p===`
224
- `||p==="")){var h=c.isSelected(p);l.hasOwnProperty(p)?l[p]=l[p]&&h:l[p]=h}})}),a==="allSelect"||a==="inverseSelect"?{selected:l}:{name:r.name,selected:l}}function installLegendAction(a){a.registerAction("legendToggleSelect","legendselectchanged",curry$1(legendSelectActionHandler,"toggleSelected")),a.registerAction("legendAllSelect","legendselectall",curry$1(legendSelectActionHandler,"allSelect")),a.registerAction("legendInverseSelect","legendinverseselect",curry$1(legendSelectActionHandler,"inverseSelect")),a.registerAction("legendSelect","legendselected",curry$1(legendSelectActionHandler,"select")),a.registerAction("legendUnSelect","legendunselected",curry$1(legendSelectActionHandler,"unSelect"))}function install$c(a){a.registerComponentModel(LegendModel$1),a.registerComponentView(LegendView$1),a.registerProcessor(a.PRIORITY.PROCESSOR.SERIES_FILTER,legendFilter),a.registerSubTypeDefaulter("legend",function(){return"plain"}),installLegendAction(a)}var ScrollableLegendModel=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o}return r.prototype.setScrollDataIndex=function(o){this.option.scrollDataIndex=o},r.prototype.init=function(o,l,s){var u=getLayoutParams(o);a.prototype.init.call(this,o,l,s),mergeAndNormalizeLayoutParams(this,o,u)},r.prototype.mergeOption=function(o,l){a.prototype.mergeOption.call(this,o,l),mergeAndNormalizeLayoutParams(this,this.option,o)},r.type="legend.scroll",r.defaultOption=inheritDefaultOption(LegendModel$1.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),r}(LegendModel$1);function mergeAndNormalizeLayoutParams(a,r,o){var l=a.getOrient(),s=[1,1];s[l.index]=0,mergeLayoutParam(r,o,{type:"box",ignoreSize:!!s})}var ScrollableLegendModel$1=ScrollableLegendModel,Group=Group$4,WH=["width","height"],XY=["x","y"],ScrollableLegendView=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o.newlineDisabled=!0,o._currentIndex=0,o}return r.prototype.init=function(){a.prototype.init.call(this),this.group.add(this._containerGroup=new Group),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Group)},r.prototype.resetInner=function(){a.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},r.prototype.renderInner=function(o,l,s,u,c,d,f){var p=this;a.prototype.renderInner.call(this,o,l,s,u,c,d,f);var h=this._controllerGroup,v=l.get("pageIconSize",!0),g=isArray$1(v)?v:[v,v];y("pagePrev",0);var $=l.getModel("pageTextStyle");h.add(new ZRText$1({name:"pageText",style:{text:"xx/xx",fill:$.getTextColor(),font:$.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),y("pageNext",1);function y(x,w){var S=x+"DataIndex",C=createIcon(l.get("pageIcons",!0)[l.getOrient().name][w],{onclick:bind$1(p._pageGo,p,S,l,u)},{x:-g[0]/2,y:-g[1]/2,width:g[0],height:g[1]});C.name=x,h.add(C)}},r.prototype.layoutInner=function(o,l,s,u,c,d){var f=this.getSelectorGroup(),p=o.getOrient().index,h=WH[p],v=XY[p],g=WH[1-p],$=XY[1-p];c&&box("horizontal",f,o.get("selectorItemGap",!0));var y=o.get("selectorButtonGap",!0),x=f.getBoundingRect(),w=[-x.x,-x.y],S=clone$4(s);c&&(S[h]=s[h]-x[h]-y);var C=this._layoutContentAndController(o,u,S,p,h,g,$,v);if(c){if(d==="end")w[p]+=C[h]+y;else{var A=x[h]+y;w[p]-=A,C[v]-=A}C[h]+=x[h]+y,w[1-p]+=C[$]+C[g]/2-x[g]/2,C[g]=Math.max(C[g],x[g]),C[$]=Math.min(C[$],x[$]+w[1-p]),f.x=w[0],f.y=w[1],f.markRedraw()}return C},r.prototype._layoutContentAndController=function(o,l,s,u,c,d,f,p){var h=this.getContentGroup(),v=this._containerGroup,g=this._controllerGroup;box(o.get("orient"),h,o.get("itemGap"),u?s.width:null,u?null:s.height),box("horizontal",g,o.get("pageButtonItemGap",!0));var $=h.getBoundingRect(),y=g.getBoundingRect(),x=this._showController=$[c]>s[c],w=[-$.x,-$.y];l||(w[u]=h[p]);var S=[0,0],C=[-y.x,-y.y],A=retrieve2(o.get("pageButtonGap",!0),o.get("itemGap",!0));if(x){var T=o.get("pageButtonPosition",!0);T==="end"?C[u]+=s[c]-y[c]:S[u]+=y[c]+A}C[1-u]+=$[d]/2-y[d]/2,h.setPosition(w),v.setPosition(S),g.setPosition(C);var I={x:0,y:0};if(I[c]=x?s[c]:$[c],I[d]=Math.max($[d],y[d]),I[f]=Math.min(0,y[f]+C[1-u]),v.__rectSize=s[c],x){var D={x:0,y:0};D[c]=Math.max(s[c]-y[c]-A,0),D[d]=I[d],v.setClipPath(new Rect$3({shape:D})),v.__rectSize=D[c]}else g.eachChild(function(L){L.attr({invisible:!0,silent:!0})});var M=this._getPageInfo(o);return M.pageIndex!=null&&updateProps$1(h,{x:M.contentPosition[0],y:M.contentPosition[1]},x?o:null),this._updatePageInfoView(o,M),I},r.prototype._pageGo=function(o,l,s){var u=this._getPageInfo(l)[o];u!=null&&s.dispatchAction({type:"legendScroll",scrollDataIndex:u,legendId:l.id})},r.prototype._updatePageInfoView=function(o,l){var s=this._controllerGroup;each$f(["pagePrev","pageNext"],function(h){var v=h+"DataIndex",g=l[v]!=null,$=s.childOfName(h);$&&($.setStyle("fill",g?o.get("pageIconColor",!0):o.get("pageIconInactiveColor",!0)),$.cursor=g?"pointer":"default")});var u=s.childOfName("pageText"),c=o.get("pageFormatter"),d=l.pageIndex,f=d!=null?d+1:0,p=l.pageCount;u&&c&&u.setStyle("text",isString(c)?c.replace("{current}",f==null?"":f+"").replace("{total}",p==null?"":p+""):c({current:f,total:p}))},r.prototype._getPageInfo=function(o){var l=o.get("scrollDataIndex",!0),s=this.getContentGroup(),u=this._containerGroup.__rectSize,c=o.getOrient().index,d=WH[c],f=XY[c],p=this._findTargetItemIndex(l),h=s.children(),v=h[p],g=h.length,$=g?1:0,y={contentPosition:[s.x,s.y],pageCount:$,pageIndex:$-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!v)return y;var x=T(v);y.contentPosition[c]=-x.s;for(var w=p+1,S=x,C=x,A=null;w<=g;++w)A=T(h[w]),(!A&&C.e>S.s+u||A&&!I(A,S.s))&&(C.i>S.i?S=C:S=A,S&&(y.pageNextDataIndex==null&&(y.pageNextDataIndex=S.i),++y.pageCount)),C=A;for(var w=p-1,S=x,C=x,A=null;w>=-1;--w)A=T(h[w]),(!A||!I(C,A.s))&&S.i<C.i&&(C=S,y.pagePrevDataIndex==null&&(y.pagePrevDataIndex=S.i),++y.pageCount,++y.pageIndex),S=A;return y;function T(D){if(D){var M=D.getBoundingRect(),L=M[f]+D[f];return{s:L,e:L+M[d],i:D.__legendDataIndex}}}function I(D,M){return D.e>=M&&D.s<=M+u}},r.prototype._findTargetItemIndex=function(o){if(!this._showController)return 0;var l,s=this.getContentGroup(),u;return s.eachChild(function(c,d){var f=c.__legendDataIndex;u==null&&f!=null&&(u=d),f===o&&(l=d)}),l!=null?l:u},r.type="legend.scroll",r}(LegendView$1),ScrollableLegendView$1=ScrollableLegendView;function installScrollableLegendAction(a){a.registerAction("legendScroll","legendscroll",function(r,o){var l=r.scrollDataIndex;l!=null&&o.eachComponent({mainType:"legend",subType:"scroll",query:r},function(s){s.setScrollDataIndex(l)})})}function install$b(a){use(install$c),a.registerComponentModel(ScrollableLegendModel$1),a.registerComponentView(ScrollableLegendView$1),installScrollableLegendAction(a)}function install$a(a){use(install$c),use(install$b)}var InsideZoomModel=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o}return r.type="dataZoom.inside",r.defaultOption=inheritDefaultOption(DataZoomModel$1.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),r}(DataZoomModel$1),InsideZoomModel$1=InsideZoomModel,inner$1=makeInner();function setViewInfoToCoordSysRecord(a,r,o){inner$1(a).coordSysRecordMap.each(function(l){var s=l.dataZoomInfoMap.get(r.uid);s&&(s.getRange=o)})}function disposeCoordSysRecordIfNeeded(a,r){for(var o=inner$1(a).coordSysRecordMap,l=o.keys(),s=0;s<l.length;s++){var u=l[s],c=o.get(u),d=c.dataZoomInfoMap;if(d){var f=r.uid,p=d.get(f);p&&(d.removeKey(f),d.keys().length||disposeCoordSysRecord(o,c))}}}function disposeCoordSysRecord(a,r){if(r){a.removeKey(r.model.uid);var o=r.controller;o&&o.dispose()}}function createCoordSysRecord(a,r){var o={model:r,containsPoint:curry$1(containsPoint,r),dispatchAction:curry$1(dispatchAction,a),dataZoomInfoMap:null,controller:null},l=o.controller=new RoamController$1(a.getZr());return each$f(["pan","zoom","scrollMove"],function(s){l.on(s,function(u){var c=[];o.dataZoomInfoMap.each(function(d){if(!!u.isAvailableBehavior(d.model.option)){var f=(d.getRange||{})[s],p=f&&f(d.dzReferCoordSysInfo,o.model.mainType,o.controller,u);!d.model.get("disabled",!0)&&p&&c.push({dataZoomId:d.model.id,start:p[0],end:p[1]})}}),c.length&&o.dispatchAction(c)})}),o}function dispatchAction(a,r){a.isDisposed()||a.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:r})}function containsPoint(a,r,o,l){return a.coordinateSystem.containPoint([o,l])}function mergeControllerParams(a){var r,o="type_",l={type_true:2,type_move:1,type_false:0,type_undefined:-1},s=!0;return a.each(function(u){var c=u.model,d=c.get("disabled",!0)?!1:c.get("zoomLock",!0)?"move":!0;l[o+d]>l[o+r]&&(r=d),s=s&&c.get("preventDefaultMouseMove",!0)}),{controlType:r,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!s}}}function installDataZoomRoamProcessor(a){a.registerProcessor(a.PRIORITY.PROCESSOR.FILTER,function(r,o){var l=inner$1(o),s=l.coordSysRecordMap||(l.coordSysRecordMap=createHashMap());s.each(function(u){u.dataZoomInfoMap=null}),r.eachComponent({mainType:"dataZoom",subType:"inside"},function(u){var c=collectReferCoordSysModelInfo(u);each$f(c.infoList,function(d){var f=d.model.uid,p=s.get(f)||s.set(f,createCoordSysRecord(o,d.model)),h=p.dataZoomInfoMap||(p.dataZoomInfoMap=createHashMap());h.set(u.uid,{dzReferCoordSysInfo:d,model:u,getRange:null})})}),s.each(function(u){var c=u.controller,d,f=u.dataZoomInfoMap;if(f){var p=f.keys()[0];p!=null&&(d=f.get(p))}if(!d){disposeCoordSysRecord(s,u);return}var h=mergeControllerParams(f);c.enable(h.controlType,h.opt),c.setPointerChecker(u.containsPoint),createOrUpdate(u,"dispatchAction",d.model.get("throttle",!0),"fixRate")})})}var InsideZoomView=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type="dataZoom.inside",o}return r.prototype.render=function(o,l,s){if(a.prototype.render.apply(this,arguments),o.noTarget()){this._clear();return}this.range=o.getPercentRange(),setViewInfoToCoordSysRecord(s,o,{pan:bind$1(getRangeHandlers.pan,this),zoom:bind$1(getRangeHandlers.zoom,this),scrollMove:bind$1(getRangeHandlers.scrollMove,this)})},r.prototype.dispose=function(){this._clear(),a.prototype.dispose.apply(this,arguments)},r.prototype._clear=function(){disposeCoordSysRecordIfNeeded(this.api,this.dataZoomModel),this.range=null},r.type="dataZoom.inside",r}(DataZoomView$1),getRangeHandlers={zoom:function(a,r,o,l){var s=this.range,u=s.slice(),c=a.axisModels[0];if(!!c){var d=getDirectionInfo[r](null,[l.originX,l.originY],c,o,a),f=(d.signal>0?d.pixelStart+d.pixelLength-d.pixel:d.pixel-d.pixelStart)/d.pixelLength*(u[1]-u[0])+u[0],p=Math.max(1/l.scale,0);u[0]=(u[0]-f)*p+f,u[1]=(u[1]-f)*p+f;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(sliderMove(0,u,[0,100],0,h.minSpan,h.maxSpan),this.range=u,s[0]!==u[0]||s[1]!==u[1])return u}},pan:makeMover(function(a,r,o,l,s,u){var c=getDirectionInfo[l]([u.oldX,u.oldY],[u.newX,u.newY],r,s,o);return c.signal*(a[1]-a[0])*c.pixel/c.pixelLength}),scrollMove:makeMover(function(a,r,o,l,s,u){var c=getDirectionInfo[l]([0,0],[u.scrollDelta,u.scrollDelta],r,s,o);return c.signal*(a[1]-a[0])*u.scrollDelta})};function makeMover(a){return function(r,o,l,s){var u=this.range,c=u.slice(),d=r.axisModels[0];if(!!d){var f=a(c,d,r,o,l,s);if(sliderMove(f,c,[0,100],"all"),this.range=c,u[0]!==c[0]||u[1]!==c[1])return c}}}var getDirectionInfo={grid:function(a,r,o,l,s){var u=o.axis,c={},d=s.model.coordinateSystem.getRect();return a=a||[0,0],u.dim==="x"?(c.pixel=r[0]-a[0],c.pixelLength=d.width,c.pixelStart=d.x,c.signal=u.inverse?1:-1):(c.pixel=r[1]-a[1],c.pixelLength=d.height,c.pixelStart=d.y,c.signal=u.inverse?-1:1),c},polar:function(a,r,o,l,s){var u=o.axis,c={},d=s.model.coordinateSystem,f=d.getRadiusAxis().getExtent(),p=d.getAngleAxis().getExtent();return a=a?d.pointToCoord(a):[0,0],r=d.pointToCoord(r),o.mainType==="radiusAxis"?(c.pixel=r[0]-a[0],c.pixelLength=f[1]-f[0],c.pixelStart=f[0],c.signal=u.inverse?1:-1):(c.pixel=r[1]-a[1],c.pixelLength=p[1]-p[0],c.pixelStart=p[0],c.signal=u.inverse?-1:1),c},singleAxis:function(a,r,o,l,s){var u=o.axis,c=s.model.coordinateSystem.getRect(),d={};return a=a||[0,0],u.orient==="horizontal"?(d.pixel=r[0]-a[0],d.pixelLength=c.width,d.pixelStart=c.x,d.signal=u.inverse?1:-1):(d.pixel=r[1]-a[1],d.pixelLength=c.height,d.pixelStart=c.y,d.signal=u.inverse?-1:1),d}},InsideZoomView$1=InsideZoomView;function install$9(a){installCommon$1(a),a.registerComponentModel(InsideZoomModel$1),a.registerComponentView(InsideZoomView$1),installDataZoomRoamProcessor(a)}var SliderZoomModel=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o}return r.type="dataZoom.slider",r.layoutMode="box",r.defaultOption=inheritDefaultOption(DataZoomModel$1.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),r}(DataZoomModel$1),SliderZoomModel$1=SliderZoomModel,Rect=Rect$3,DEFAULT_LOCATION_EDGE_GAP=7,DEFAULT_FRAME_BORDER_WIDTH=1,DEFAULT_FILLER_SIZE=30,DEFAULT_MOVE_HANDLE_SIZE=7,HORIZONTAL="horizontal",VERTICAL="vertical",LABEL_GAP=5,SHOW_DATA_SHADOW_SERIES_TYPE=["line","bar","candlestick","scatter"],REALTIME_ANIMATION_CONFIG={easing:"cubicOut",duration:100,delay:0},SliderZoomView=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o._displayables={},o}return r.prototype.init=function(o,l){this.api=l,this._onBrush=bind$1(this._onBrush,this),this._onBrushEnd=bind$1(this._onBrushEnd,this)},r.prototype.render=function(o,l,s,u){if(a.prototype.render.apply(this,arguments),createOrUpdate(this,"_dispatchZoomAction",o.get("throttle"),"fixRate"),this._orient=o.getOrient(),o.get("show")===!1){this.group.removeAll();return}if(o.noTarget()){this._clear(),this.group.removeAll();return}(!u||u.type!=="dataZoom"||u.from!==this.uid)&&this._buildView(),this._updateView()},r.prototype.dispose=function(){this._clear(),a.prototype.dispose.apply(this,arguments)},r.prototype._clear=function(){clear$1(this,"_dispatchZoomAction");var o=this.api.getZr();o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)},r.prototype._buildView=function(){var o=this.group;o.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var l=this._displayables.sliderGroup=new Group$4;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),o.add(l),this._positionGroup()},r.prototype._resetLocation=function(){var o=this.dataZoomModel,l=this.api,s=o.get("brushSelect"),u=s?DEFAULT_MOVE_HANDLE_SIZE:0,c=this._findCoordRect(),d={width:l.getWidth(),height:l.getHeight()},f=this._orient===HORIZONTAL?{right:d.width-c.x-c.width,top:d.height-DEFAULT_FILLER_SIZE-DEFAULT_LOCATION_EDGE_GAP-u,width:c.width,height:DEFAULT_FILLER_SIZE}:{right:DEFAULT_LOCATION_EDGE_GAP,top:c.y,width:DEFAULT_FILLER_SIZE,height:c.height},p=getLayoutParams(o.option);each$f(["right","top","width","height"],function(v){p[v]==="ph"&&(p[v]=f[v])});var h=getLayoutRect(p,d);this._location={x:h.x,y:h.y},this._size=[h.width,h.height],this._orient===VERTICAL&&this._size.reverse()},r.prototype._positionGroup=function(){var o=this.group,l=this._location,s=this._orient,u=this.dataZoomModel.getFirstTargetAxisModel(),c=u&&u.get("inverse"),d=this._displayables.sliderGroup,f=(this._dataShadowInfo||{}).otherAxisInverse;d.attr(s===HORIZONTAL&&!c?{scaleY:f?1:-1,scaleX:1}:s===HORIZONTAL&&c?{scaleY:f?1:-1,scaleX:-1}:s===VERTICAL&&!c?{scaleY:f?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:f?-1:1,scaleX:-1,rotation:Math.PI/2});var p=o.getBoundingRect([d]);o.x=l.x-p.x,o.y=l.y-p.y,o.markRedraw()},r.prototype._getViewExtent=function(){return[0,this._size[0]]},r.prototype._renderBackground=function(){var o=this.dataZoomModel,l=this._size,s=this._displayables.sliderGroup,u=o.get("brushSelect");s.add(new Rect({silent:!0,shape:{x:0,y:0,width:l[0],height:l[1]},style:{fill:o.get("backgroundColor")},z2:-40}));var c=new Rect({shape:{x:0,y:0,width:l[0],height:l[1]},style:{fill:"transparent"},z2:0,onclick:bind$1(this._onClickPanel,this)}),d=this.api.getZr();u?(c.on("mousedown",this._onBrushStart,this),c.cursor="crosshair",d.on("mousemove",this._onBrush),d.on("mouseup",this._onBrushEnd)):(d.off("mousemove",this._onBrush),d.off("mouseup",this._onBrushEnd)),s.add(c)},r.prototype._renderDataShadow=function(){var o=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!o)return;var l=this._size,s=this._shadowSize||[],u=o.series,c=u.getRawData(),d=u.getShadowDim?u.getShadowDim():o.otherDim;if(d==null)return;var f=this._shadowPolygonPts,p=this._shadowPolylinePts;if(c!==this._shadowData||d!==this._shadowDim||l[0]!==s[0]||l[1]!==s[1]){var h=c.getDataExtent(d),v=(h[1]-h[0])*.3;h=[h[0]-v,h[1]+v];var g=[0,l[1]],$=[0,l[0]],y=[[l[0],0],[0,0]],x=[],w=$[1]/(c.count()-1),S=0,C=Math.round(c.count()/l[0]),A;c.each([d],function(L,N){if(C>0&&N%C){S+=w;return}var V=L==null||isNaN(L)||L==="",R=V?0:linearMap$2(L,h,g,!0);V&&!A&&N?(y.push([y[y.length-1][0],0]),x.push([x[x.length-1][0],0])):!V&&A&&(y.push([S,0]),x.push([S,0])),y.push([S,R]),x.push([S,R]),S+=w,A=V}),f=this._shadowPolygonPts=y,p=this._shadowPolylinePts=x}this._shadowData=c,this._shadowDim=d,this._shadowSize=[l[0],l[1]];var T=this.dataZoomModel;function I(L){var N=T.getModel(L?"selectedDataBackground":"dataBackground"),V=new Group$4,R=new Polygon$1({shape:{points:f},segmentIgnoreThreshold:1,style:N.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new Polyline$3({shape:{points:p},segmentIgnoreThreshold:1,style:N.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return V.add(R),V.add(P),V}for(var D=0;D<3;D++){var M=I(D===1);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}},r.prototype._prepareDataShadowInfo=function(){var o=this.dataZoomModel,l=o.get("showDataShadow");if(l!==!1){var s,u=this.ecModel;return o.eachTargetAxis(function(c,d){var f=o.getAxisProxy(c,d).getTargetSeriesModels();each$f(f,function(p){if(!s&&!(l!==!0&&indexOf(SHOW_DATA_SHADOW_SERIES_TYPE,p.get("type"))<0)){var h=u.getComponent(getAxisMainType(c),d).axis,v=getOtherDim(c),g,$=p.coordinateSystem;v!=null&&$.getOtherAxis&&(g=$.getOtherAxis(h).inverse),v=p.getData().mapDimension(v),s={thisAxis:h,series:p,thisDim:c,otherDim:v,otherAxisInverse:g}}},this)},this),s}},r.prototype._renderHandle=function(){var o=this.group,l=this._displayables,s=l.handles=[null,null],u=l.handleLabels=[null,null],c=this._displayables.sliderGroup,d=this._size,f=this.dataZoomModel,p=this.api,h=f.get("borderRadius")||0,v=f.get("brushSelect"),g=l.filler=new Rect({silent:v,style:{fill:f.get("fillerColor")},textConfig:{position:"inside"}});c.add(g),c.add(new Rect({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:d[0],height:d[1],r:h},style:{stroke:f.get("dataBackgroundColor")||f.get("borderColor"),lineWidth:DEFAULT_FRAME_BORDER_WIDTH,fill:"rgba(0,0,0,0)"}})),each$f([0,1],function(A){var T=f.get("handleIcon");!symbolBuildProxies[T]&&T.indexOf("path://")<0&&T.indexOf("image://")<0&&(T="path://"+T);var I=createSymbol$1(T,-1,0,2,2,null,!0);I.attr({cursor:getCursor$1(this._orient),draggable:!0,drift:bind$1(this._onDragMove,this,A),ondragend:bind$1(this._onDragEnd,this),onmouseover:bind$1(this._showDataInfo,this,!0),onmouseout:bind$1(this._showDataInfo,this,!1),z2:5});var D=I.getBoundingRect(),M=f.get("handleSize");this._handleHeight=parsePercent(M,this._size[1]),this._handleWidth=D.width/D.height*this._handleHeight,I.setStyle(f.getModel("handleStyle").getItemStyle()),I.style.strokeNoScale=!0,I.rectHover=!0,I.ensureState("emphasis").style=f.getModel(["emphasis","handleStyle"]).getItemStyle(),enableHoverEmphasis(I);var L=f.get("handleColor");L!=null&&(I.style.fill=L),c.add(s[A]=I);var N=f.getModel("textStyle");o.add(u[A]=new ZRText$1({silent:!0,invisible:!0,style:createTextStyle$1(N,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:N.getTextColor(),font:N.getFont()}),z2:10}))},this);var $=g;if(v){var y=parsePercent(f.get("moveHandleSize"),d[1]),x=l.moveHandle=new Rect$3({style:f.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:d[1]-.5,height:y}}),w=y*.8,S=l.moveHandleIcon=createSymbol$1(f.get("moveHandleIcon"),-w/2,-w/2,w,w,"#fff",!0);S.silent=!0,S.y=d[1]+y/2-.5,x.ensureState("emphasis").style=f.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var C=Math.min(d[1]/2,Math.max(y,10));$=l.moveZone=new Rect$3({invisible:!0,shape:{y:d[1]-C,height:y+C}}),$.on("mouseover",function(){p.enterEmphasis(x)}).on("mouseout",function(){p.leaveEmphasis(x)}),c.add(x),c.add(S),c.add($)}$.attr({draggable:!0,cursor:getCursor$1(this._orient),drift:bind$1(this._onDragMove,this,"all"),ondragstart:bind$1(this._showDataInfo,this,!0),ondragend:bind$1(this._onDragEnd,this),onmouseover:bind$1(this._showDataInfo,this,!0),onmouseout:bind$1(this._showDataInfo,this,!1)})},r.prototype._resetInterval=function(){var o=this._range=this.dataZoomModel.getPercentRange(),l=this._getViewExtent();this._handleEnds=[linearMap$2(o[0],[0,100],l,!0),linearMap$2(o[1],[0,100],l,!0)]},r.prototype._updateInterval=function(o,l){var s=this.dataZoomModel,u=this._handleEnds,c=this._getViewExtent(),d=s.findRepresentativeAxisProxy().getMinMaxSpan(),f=[0,100];sliderMove(l,u,c,s.get("zoomLock")?"all":o,d.minSpan!=null?linearMap$2(d.minSpan,f,c,!0):null,d.maxSpan!=null?linearMap$2(d.maxSpan,f,c,!0):null);var p=this._range,h=this._range=asc$2([linearMap$2(u[0],c,f,!0),linearMap$2(u[1],c,f,!0)]);return!p||p[0]!==h[0]||p[1]!==h[1]},r.prototype._updateView=function(o){var l=this._displayables,s=this._handleEnds,u=asc$2(s.slice()),c=this._size;each$f([0,1],function($){var y=l.handles[$],x=this._handleHeight;y.attr({scaleX:x/2,scaleY:x/2,x:s[$]+($?-1:1),y:c[1]/2-x/2})},this),l.filler.setShape({x:u[0],y:0,width:u[1]-u[0],height:c[1]});var d={x:u[0],width:u[1]-u[0]};l.moveHandle&&(l.moveHandle.setShape(d),l.moveZone.setShape(d),l.moveZone.getBoundingRect(),l.moveHandleIcon&&l.moveHandleIcon.attr("x",d.x+d.width/2));for(var f=l.dataShadowSegs,p=[0,u[0],u[1],c[0]],h=0;h<f.length;h++){var v=f[h],g=v.getClipPath();g||(g=new Rect$3,v.setClipPath(g)),g.setShape({x:p[h],y:0,width:p[h+1]-p[h],height:c[1]})}this._updateDataInfo(o)},r.prototype._updateDataInfo=function(o){var l=this.dataZoomModel,s=this._displayables,u=s.handleLabels,c=this._orient,d=["",""];if(l.get("showDetail")){var f=l.findRepresentativeAxisProxy();if(f){var p=f.getAxisModel().axis,h=this._range,v=o?f.calculateDataWindow({start:h[0],end:h[1]}).valueWindow:f.getDataValueWindow();d=[this._formatLabel(v[0],p),this._formatLabel(v[1],p)]}}var g=asc$2(this._handleEnds.slice());$.call(this,0),$.call(this,1);function $(y){var x=getTransform$1(s.handles[y].parent,this.group),w=transformDirection(y===0?"right":"left",x),S=this._handleWidth/2+LABEL_GAP,C=applyTransform([g[y]+(y===0?-S:S),this._size[1]/2],x);u[y].setStyle({x:C[0],y:C[1],verticalAlign:c===HORIZONTAL?"middle":w,align:c===HORIZONTAL?w:"center",text:d[y]})}},r.prototype._formatLabel=function(o,l){var s=this.dataZoomModel,u=s.get("labelFormatter"),c=s.get("labelPrecision");(c==null||c==="auto")&&(c=l.getPixelPrecision());var d=o==null||isNaN(o)?"":l.type==="category"||l.type==="time"?l.scale.getLabel({value:Math.round(o)}):o.toFixed(Math.min(c,20));return isFunction(u)?u(o,d):isString(u)?u.replace("{value}",d):d},r.prototype._showDataInfo=function(o){o=this._dragging||o;var l=this._displayables,s=l.handleLabels;s[0].attr("invisible",!o),s[1].attr("invisible",!o),l.moveHandle&&this.api[o?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},r.prototype._onDragMove=function(o,l,s,u){this._dragging=!0,stop(u.event);var c=this._displayables.sliderGroup.getLocalTransform(),d=applyTransform([l,s],c,!0),f=this._updateInterval(o,d[0]),p=this.dataZoomModel.get("realtime");this._updateView(!p),f&&p&&this._dispatchZoomAction(!0)},r.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var o=this.dataZoomModel.get("realtime");!o&&this._dispatchZoomAction(!1)},r.prototype._onClickPanel=function(o){var l=this._size,s=this._displayables.sliderGroup.transformCoordToLocal(o.offsetX,o.offsetY);if(!(s[0]<0||s[0]>l[0]||s[1]<0||s[1]>l[1])){var u=this._handleEnds,c=(u[0]+u[1])/2,d=this._updateInterval("all",s[0]-c);this._updateView(),d&&this._dispatchZoomAction(!1)}},r.prototype._onBrushStart=function(o){var l=o.offsetX,s=o.offsetY;this._brushStart=new Point$1(l,s),this._brushing=!0,this._brushStartTime=+new Date},r.prototype._onBrushEnd=function(o){if(!!this._brushing){var l=this._displayables.brushRect;if(this._brushing=!1,!!l){l.attr("ignore",!0);var s=l.shape,u=+new Date;if(!(u-this._brushStartTime<200&&Math.abs(s.width)<5)){var c=this._getViewExtent(),d=[0,100];this._range=asc$2([linearMap$2(s.x,c,d,!0),linearMap$2(s.x+s.width,c,d,!0)]),this._handleEnds=[s.x,s.x+s.width],this._updateView(),this._dispatchZoomAction(!1)}}}},r.prototype._onBrush=function(o){this._brushing&&(stop(o.event),this._updateBrushRect(o.offsetX,o.offsetY))},r.prototype._updateBrushRect=function(o,l){var s=this._displayables,u=this.dataZoomModel,c=s.brushRect;c||(c=s.brushRect=new Rect({silent:!0,style:u.getModel("brushStyle").getItemStyle()}),s.sliderGroup.add(c)),c.attr("ignore",!1);var d=this._brushStart,f=this._displayables.sliderGroup,p=f.transformCoordToLocal(o,l),h=f.transformCoordToLocal(d.x,d.y),v=this._size;p[0]=Math.max(Math.min(v[0],p[0]),0),c.setShape({x:h[0],y:0,width:p[0]-h[0],height:v[1]})},r.prototype._dispatchZoomAction=function(o){var l=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:o?REALTIME_ANIMATION_CONFIG:null,start:l[0],end:l[1]})},r.prototype._findCoordRect=function(){var o,l=collectReferCoordSysModelInfo(this.dataZoomModel).infoList;if(!o&&l.length){var s=l[0].model.coordinateSystem;o=s.getRect&&s.getRect()}if(!o){var u=this.api.getWidth(),c=this.api.getHeight();o={x:u*.2,y:c*.2,width:u*.6,height:c*.6}}return o},r.type="dataZoom.slider",r}(DataZoomView$1);function getOtherDim(a){var r={x:"y",y:"x",radius:"angle",angle:"radius"};return r[a]}function getCursor$1(a){return a==="vertical"?"ns-resize":"ew-resize"}var SliderZoomView$1=SliderZoomView;function install$8(a){a.registerComponentModel(SliderZoomModel$1),a.registerComponentView(SliderZoomView$1),installCommon$1(a)}function install$7(a){use(install$9),use(install$8)}var visualDefault={get:function(a,r,o){var l=clone$4((defaultOption[a]||{})[r]);return o&&isArray$1(l)?l[l.length-1]:l}},defaultOption={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},visualDefault$1=visualDefault,mapVisual=VisualMapping$1.mapVisual,eachVisual=VisualMapping$1.eachVisual,isArray=isArray$1,each$2=each$f,asc=asc$2,linearMap$1=linearMap$2,VisualMapModel=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o.stateList=["inRange","outOfRange"],o.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],o.layoutMode={type:"box",ignoreSize:!0},o.dataBound=[-1/0,1/0],o.targetVisuals={},o.controllerVisuals={},o}return r.prototype.init=function(o,l,s){this.mergeDefaultAndTheme(o,s)},r.prototype.optionUpdated=function(o,l){var s=this.option;!l&&replaceVisualOption(s,o,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},r.prototype.resetVisual=function(o){var l=this.stateList;o=bind$1(o,this),this.controllerVisuals=createVisualMappings(this.option.controller,l,o),this.targetVisuals=createVisualMappings(this.option.target,l,o)},r.prototype.getItemSymbol=function(){return null},r.prototype.getTargetSeriesIndices=function(){var o=this.option.seriesIndex,l=[];return o==null||o==="all"?this.ecModel.eachSeries(function(s,u){l.push(u)}):l=normalizeToArray(o),l},r.prototype.eachTargetSeries=function(o,l){each$f(this.getTargetSeriesIndices(),function(s){var u=this.ecModel.getSeriesByIndex(s);u&&o.call(l,u)},this)},r.prototype.isTargetSeries=function(o){var l=!1;return this.eachTargetSeries(function(s){s===o&&(l=!0)}),l},r.prototype.formatValueText=function(o,l,s){var u=this.option,c=u.precision,d=this.dataBound,f=u.formatter,p;s=s||["<",">"],isArray$1(o)&&(o=o.slice(),p=!0);var h=l?o:p?[v(o[0]),v(o[1])]:v(o);if(isString(f))return f.replace("{value}",p?h[0]:h).replace("{value2}",p?h[1]:h);if(isFunction(f))return p?f(o[0],o[1]):f(o);if(p)return o[0]===d[0]?s[0]+" "+h[1]:o[1]===d[1]?s[1]+" "+h[0]:h[0]+" - "+h[1];return h;function v(g){return g===d[0]?"min":g===d[1]?"max":(+g).toFixed(Math.min(c,20))}},r.prototype.resetExtent=function(){var o=this.option,l=asc([o.min,o.max]);this._dataExtent=l},r.prototype.getDataDimensionIndex=function(o){var l=this.option.dimension;if(l!=null)return o.getDimensionIndex(l);for(var s=o.dimensions,u=s.length-1;u>=0;u--){var c=s[u],d=o.getDimensionInfo(c);if(!d.isCalculationCoord)return d.storeDimIndex}},r.prototype.getExtent=function(){return this._dataExtent.slice()},r.prototype.completeVisualOption=function(){var o=this.ecModel,l=this.option,s={inRange:l.inRange,outOfRange:l.outOfRange},u=l.target||(l.target={}),c=l.controller||(l.controller={});merge(u,s),merge(c,s);var d=this.isCategory();f.call(this,u),f.call(this,c),p.call(this,u,"inRange","outOfRange"),h.call(this,c);function f(v){isArray(l.color)&&!v.inRange&&(v.inRange={color:l.color.slice().reverse()}),v.inRange=v.inRange||{color:o.get("gradientColor")}}function p(v,g,$){var y=v[g],x=v[$];y&&!x&&(x=v[$]={},each$2(y,function(w,S){if(!!VisualMapping$1.isValidType(S)){var C=visualDefault$1.get(S,"inactive",d);C!=null&&(x[S]=C,S==="color"&&!x.hasOwnProperty("opacity")&&!x.hasOwnProperty("colorAlpha")&&(x.opacity=[0,0]))}}))}function h(v){var g=(v.inRange||{}).symbol||(v.outOfRange||{}).symbol,$=(v.inRange||{}).symbolSize||(v.outOfRange||{}).symbolSize,y=this.get("inactiveColor"),x=this.getItemSymbol(),w=x||"roundRect";each$2(this.stateList,function(S){var C=this.itemSize,A=v[S];A||(A=v[S]={color:d?y:[y]}),A.symbol==null&&(A.symbol=g&&clone$4(g)||(d?w:[w])),A.symbolSize==null&&(A.symbolSize=$&&clone$4($)||(d?C[0]:[C[0],C[0]])),A.symbol=mapVisual(A.symbol,function(D){return D==="none"?w:D});var T=A.symbolSize;if(T!=null){var I=-1/0;eachVisual(T,function(D){D>I&&(I=D)}),A.symbolSize=mapVisual(T,function(D){return linearMap$1(D,[0,I],[0,C[0]],!0)})}},this)}},r.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},r.prototype.isCategory=function(){return!!this.option.categories},r.prototype.setSelected=function(o){},r.prototype.getSelected=function(){return null},r.prototype.getValueState=function(o){return null},r.prototype.getVisualMeta=function(o){return null},r.type="visualMap",r.dependencies=["series"],r.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"}},r}(ComponentModel$1),VisualMapModel$1=VisualMapModel,DEFAULT_BAR_BOUND=[20,140],ContinuousModel=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o}return r.prototype.optionUpdated=function(o,l){a.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(s){s.mappingMethod="linear",s.dataExtent=this.getExtent()}),this._resetRange()},r.prototype.resetItemSize=function(){a.prototype.resetItemSize.apply(this,arguments);var o=this.itemSize;(o[0]==null||isNaN(o[0]))&&(o[0]=DEFAULT_BAR_BOUND[0]),(o[1]==null||isNaN(o[1]))&&(o[1]=DEFAULT_BAR_BOUND[1])},r.prototype._resetRange=function(){var o=this.getExtent(),l=this.option.range;!l||l.auto?(o.auto=1,this.option.range=o):isArray$1(l)&&(l[0]>l[1]&&l.reverse(),l[0]=Math.max(l[0],o[0]),l[1]=Math.min(l[1],o[1]))},r.prototype.completeVisualOption=function(){a.prototype.completeVisualOption.apply(this,arguments),each$f(this.stateList,function(o){var l=this.option.controller[o].symbolSize;l&&l[0]!==l[1]&&(l[0]=l[1]/3)},this)},r.prototype.setSelected=function(o){this.option.range=o.slice(),this._resetRange()},r.prototype.getSelected=function(){var o=this.getExtent(),l=asc$2((this.get("range")||[]).slice());return l[0]>o[1]&&(l[0]=o[1]),l[1]>o[1]&&(l[1]=o[1]),l[0]<o[0]&&(l[0]=o[0]),l[1]<o[0]&&(l[1]=o[0]),l},r.prototype.getValueState=function(o){var l=this.option.range,s=this.getExtent();return(l[0]<=s[0]||l[0]<=o)&&(l[1]>=s[1]||o<=l[1])?"inRange":"outOfRange"},r.prototype.findTargetDataIndices=function(o){var l=[];return this.eachTargetSeries(function(s){var u=[],c=s.getData();c.each(this.getDataDimensionIndex(c),function(d,f){o[0]<=d&&d<=o[1]&&u.push(f)},this),l.push({seriesId:s.id,dataIndex:u})},this),l},r.prototype.getVisualMeta=function(o){var l=getColorStopValues(this,"outOfRange",this.getExtent()),s=getColorStopValues(this,"inRange",this.option.range.slice()),u=[];function c($,y){u.push({value:$,color:o($,y)})}for(var d=0,f=0,p=s.length,h=l.length;f<h&&(!s.length||l[f]<=s[0]);f++)l[f]<s[d]&&c(l[f],"outOfRange");for(var v=1;d<p;d++,v=0)v&&u.length&&c(s[d],"outOfRange"),c(s[d],"inRange");for(var v=1;f<h;f++)(!s.length||s[s.length-1]<l[f])&&(v&&(u.length&&c(u[u.length-1].value,"outOfRange"),v=0),c(l[f],"outOfRange"));var g=u.length;return{stops:u,outerColors:[g?u[0].color:"transparent",g?u[g-1].color:"transparent"]}},r.type="visualMap.continuous",r.defaultOption=inheritDefaultOption(VisualMapModel$1.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),r}(VisualMapModel$1);function getColorStopValues(a,r,o){if(o[0]===o[1])return o.slice();for(var l=200,s=(o[1]-o[0])/l,u=o[0],c=[],d=0;d<=l&&u<o[1];d++)c.push(u),u+=s;return c.push(o[1]),c}var ContinuousModel$1=ContinuousModel,VisualMapView=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o.autoPositionValues={left:1,right:1,top:1,bottom:1},o}return r.prototype.init=function(o,l){this.ecModel=o,this.api=l},r.prototype.render=function(o,l,s,u){if(this.visualMapModel=o,o.get("show")===!1){this.group.removeAll();return}this.doRender(o,l,s,u)},r.prototype.renderBackground=function(o){var l=this.visualMapModel,s=normalizeCssArray(l.get("padding")||0),u=o.getBoundingRect();o.add(new Rect$3({z2:-1,silent:!0,shape:{x:u.x-s[3],y:u.y-s[0],width:u.width+s[3]+s[1],height:u.height+s[0]+s[2]},style:{fill:l.get("backgroundColor"),stroke:l.get("borderColor"),lineWidth:l.get("borderWidth")}}))},r.prototype.getControllerVisual=function(o,l,s){s=s||{};var u=s.forceState,c=this.visualMapModel,d={};if(l==="color"){var f=c.get("contentColor");d.color=f}function p($){return d[$]}function h($,y){d[$]=y}var v=c.controllerVisuals[u||c.getValueState(o)],g=VisualMapping$1.prepareVisualTypes(v);return each$f(g,function($){var y=v[$];s.convertOpacityToAlpha&&$==="opacity"&&($="colorAlpha",y=v.__alphaForOpacity),VisualMapping$1.dependsOn($,l)&&y&&y.applyVisual(o,p,h)}),d[l]},r.prototype.positionGroup=function(o){var l=this.visualMapModel,s=this.api;positionElement(o,l.getBoxLayoutParams(),{width:s.getWidth(),height:s.getHeight()})},r.prototype.doRender=function(o,l,s,u){},r.type="visualMap",r}(ComponentView$1),VisualMapView$1=VisualMapView,paramsSet=[["left","right","width"],["top","bottom","height"]];function getItemAlign(a,r,o){var l=a.option,s=l.align;if(s!=null&&s!=="auto")return s;for(var u={width:r.getWidth(),height:r.getHeight()},c=l.orient==="horizontal"?1:0,d=paramsSet[c],f=[0,null,10],p={},h=0;h<3;h++)p[paramsSet[1-c][h]]=f[h],p[d[h]]=h===2?o[0]:l[d[h]];var v=[["x","width",3],["y","height",0]][c],g=getLayoutRect(p,u,l.padding);return d[(g.margin[v[2]]||0)+g[v[0]]+g[v[1]]*.5<u[v[1]]*.5?0:1]}function makeHighDownBatch(a,r){return each$f(a||[],function(o){o.dataIndex!=null&&(o.dataIndexInside=o.dataIndex,o.dataIndex=null),o.highlightKey="visualMap"+(r?r.componentIndex:"")}),a}var linearMap=linearMap$2,each$1=each$f,mathMin=Math.min,mathMax=Math.max,HOVER_LINK_SIZE=12,HOVER_LINK_OUT=6,ContinuousView=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o._shapes={},o._dataInterval=[],o._handleEnds=[],o._hoverLinkDataIndices=[],o}return r.prototype.doRender=function(o,l,s,u){this._api=s,(!u||u.type!=="selectDataRange"||u.from!==this.uid)&&this._buildView()},r.prototype._buildView=function(){this.group.removeAll();var o=this.visualMapModel,l=this.group;this._orient=o.get("orient"),this._useHandle=o.get("calculable"),this._resetInterval(),this._renderBar(l);var s=o.get("text");this._renderEndsText(l,s,0),this._renderEndsText(l,s,1),this._updateView(!0),this.renderBackground(l),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(l)},r.prototype._renderEndsText=function(o,l,s){if(!!l){var u=l[1-s];u=u!=null?u+"":"";var c=this.visualMapModel,d=c.get("textGap"),f=c.itemSize,p=this._shapes.mainGroup,h=this._applyTransform([f[0]/2,s===0?-d:f[1]+d],p),v=this._applyTransform(s===0?"bottom":"top",p),g=this._orient,$=this.visualMapModel.textStyleModel;this.group.add(new ZRText$1({style:createTextStyle$1($,{x:h[0],y:h[1],verticalAlign:g==="horizontal"?"middle":v,align:g==="horizontal"?v:"center",text:u})}))}},r.prototype._renderBar=function(o){var l=this.visualMapModel,s=this._shapes,u=l.itemSize,c=this._orient,d=this._useHandle,f=getItemAlign(l,this.api,u),p=s.mainGroup=this._createBarGroup(f),h=new Group$4;p.add(h),h.add(s.outOfRange=createPolygon()),h.add(s.inRange=createPolygon(null,d?getCursor(this._orient):null,bind$1(this._dragHandle,this,"all",!1),bind$1(this._dragHandle,this,"all",!0))),h.setClipPath(new Rect$3({shape:{x:0,y:0,width:u[0],height:u[1],r:3}}));var v=l.textStyleModel.getTextRect("\u56FD"),g=mathMax(v.width,v.height);d&&(s.handleThumbs=[],s.handleLabels=[],s.handleLabelPoints=[],this._createHandle(l,p,0,u,g,c),this._createHandle(l,p,1,u,g,c)),this._createIndicator(l,p,u,g,c),o.add(p)},r.prototype._createHandle=function(o,l,s,u,c,d){var f=bind$1(this._dragHandle,this,s,!1),p=bind$1(this._dragHandle,this,s,!0),h=parsePercent$1(o.get("handleSize"),u[0]),v=createSymbol$1(o.get("handleIcon"),-h/2,-h/2,h,h,null,!0),g=getCursor(this._orient);v.attr({cursor:g,draggable:!0,drift:f,ondragend:p,onmousemove:function(S){stop(S.event)}}),v.x=u[0]/2,v.useStyle(o.getModel("handleStyle").getItemStyle()),v.setStyle({strokeNoScale:!0,strokeFirst:!0}),v.style.lineWidth*=2,v.ensureState("emphasis").style=o.getModel(["emphasis","handleStyle"]).getItemStyle(),setAsHighDownDispatcher(v,!0),l.add(v);var $=this.visualMapModel.textStyleModel,y=new ZRText$1({cursor:g,draggable:!0,drift:f,onmousemove:function(S){stop(S.event)},ondragend:p,style:createTextStyle$1($,{x:0,y:0,text:""})});y.ensureState("blur").style={opacity:.1},y.stateTransition={duration:200},this.group.add(y);var x=[h,0],w=this._shapes;w.handleThumbs[s]=v,w.handleLabelPoints[s]=x,w.handleLabels[s]=y},r.prototype._createIndicator=function(o,l,s,u,c){var d=parsePercent$1(o.get("indicatorSize"),s[0]),f=createSymbol$1(o.get("indicatorIcon"),-d/2,-d/2,d,d,null,!0);f.attr({cursor:"move",invisible:!0,silent:!0,x:s[0]/2});var p=o.getModel("indicatorStyle").getItemStyle();if(f instanceof ZRImage$1){var h=f.style;f.useStyle(extend({image:h.image,x:h.x,y:h.y,width:h.width,height:h.height},p))}else f.useStyle(p);l.add(f);var v=this.visualMapModel.textStyleModel,g=new ZRText$1({silent:!0,invisible:!0,style:createTextStyle$1(v,{x:0,y:0,text:""})});this.group.add(g);var $=[(c==="horizontal"?u/2:HOVER_LINK_OUT)+s[0]/2,0],y=this._shapes;y.indicator=f,y.indicatorLabel=g,y.indicatorLabelPoint=$,this._firstShowIndicator=!0},r.prototype._dragHandle=function(o,l,s,u){if(!!this._useHandle){if(this._dragging=!l,!l){var c=this._applyTransform([s,u],this._shapes.mainGroup,!0);this._updateInterval(o,c[1]),this._hideIndicator(),this._updateView()}l===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),l?!this._hovering&&this._clearHoverLinkToSeries():useHoverLinkOnHandle(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[o],!1)}},r.prototype._resetInterval=function(){var o=this.visualMapModel,l=this._dataInterval=o.getSelected(),s=o.getExtent(),u=[0,o.itemSize[1]];this._handleEnds=[linearMap(l[0],s,u,!0),linearMap(l[1],s,u,!0)]},r.prototype._updateInterval=function(o,l){l=l||0;var s=this.visualMapModel,u=this._handleEnds,c=[0,s.itemSize[1]];sliderMove(l,u,c,o,0);var d=s.getExtent();this._dataInterval=[linearMap(u[0],c,d,!0),linearMap(u[1],c,d,!0)]},r.prototype._updateView=function(o){var l=this.visualMapModel,s=l.getExtent(),u=this._shapes,c=[0,l.itemSize[1]],d=o?c:this._handleEnds,f=this._createBarVisual(this._dataInterval,s,d,"inRange"),p=this._createBarVisual(s,s,c,"outOfRange");u.inRange.setStyle({fill:f.barColor}).setShape("points",f.barPoints),u.outOfRange.setStyle({fill:p.barColor}).setShape("points",p.barPoints),this._updateHandle(d,f)},r.prototype._createBarVisual=function(o,l,s,u){var c={forceState:u,convertOpacityToAlpha:!0},d=this._makeColorGradient(o,c),f=[this.getControllerVisual(o[0],"symbolSize",c),this.getControllerVisual(o[1],"symbolSize",c)],p=this._createBarPoints(s,f);return{barColor:new LinearGradient$1(0,0,0,1,d),barPoints:p,handlesColor:[d[0].color,d[d.length-1].color]}},r.prototype._makeColorGradient=function(o,l){var s=100,u=[],c=(o[1]-o[0])/s;u.push({color:this.getControllerVisual(o[0],"color",l),offset:0});for(var d=1;d<s;d++){var f=o[0]+c*d;if(f>o[1])break;u.push({color:this.getControllerVisual(f,"color",l),offset:d/s})}return u.push({color:this.getControllerVisual(o[1],"color",l),offset:1}),u},r.prototype._createBarPoints=function(o,l){var s=this.visualMapModel.itemSize;return[[s[0]-l[0],o[0]],[s[0],o[0]],[s[0],o[1]],[s[0]-l[1],o[1]]]},r.prototype._createBarGroup=function(o){var l=this._orient,s=this.visualMapModel.get("inverse");return new Group$4(l==="horizontal"&&!s?{scaleX:o==="bottom"?1:-1,rotation:Math.PI/2}:l==="horizontal"&&s?{scaleX:o==="bottom"?-1:1,rotation:-Math.PI/2}:l==="vertical"&&!s?{scaleX:o==="left"?1:-1,scaleY:-1}:{scaleX:o==="left"?1:-1})},r.prototype._updateHandle=function(o,l){if(!!this._useHandle){var s=this._shapes,u=this.visualMapModel,c=s.handleThumbs,d=s.handleLabels,f=u.itemSize,p=u.getExtent();each$1([0,1],function(h){var v=c[h];v.setStyle("fill",l.handlesColor[h]),v.y=o[h];var g=linearMap(o[h],[0,f[1]],p,!0),$=this.getControllerVisual(g,"symbolSize");v.scaleX=v.scaleY=$/f[0],v.x=f[0]-$/2;var y=applyTransform(s.handleLabelPoints[h],getTransform$1(v,this.group));d[h].setStyle({x:y[0],y:y[1],text:u.formatValueText(this._dataInterval[h]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",s.mainGroup):"center"})},this)}},r.prototype._showIndicator=function(o,l,s,u){var c=this.visualMapModel,d=c.getExtent(),f=c.itemSize,p=[0,f[1]],h=this._shapes,v=h.indicator;if(!!v){v.attr("invisible",!1);var g={convertOpacityToAlpha:!0},$=this.getControllerVisual(o,"color",g),y=this.getControllerVisual(o,"symbolSize"),x=linearMap(o,d,p,!0),w=f[0]-y/2,S={x:v.x,y:v.y};v.y=x,v.x=w;var C=applyTransform(h.indicatorLabelPoint,getTransform$1(v,this.group)),A=h.indicatorLabel;A.attr("invisible",!1);var T=this._applyTransform("left",h.mainGroup),I=this._orient,D=I==="horizontal";A.setStyle({text:(s||"")+c.formatValueText(l),verticalAlign:D?T:"middle",align:D?"center":T});var M={x:w,y:x,style:{fill:$}},L={style:{x:C[0],y:C[1]}};if(c.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var N={duration:100,easing:"cubicInOut",additive:!0};v.x=S.x,v.y=S.y,v.animateTo(M,N),A.animateTo(L,N)}else v.attr(M),A.attr(L);this._firstShowIndicator=!1;var V=this._shapes.handleLabels;if(V)for(var R=0;R<V.length;R++)this._api.enterBlur(V[R])}},r.prototype._enableHoverLinkToSeries=function(){var o=this;this._shapes.mainGroup.on("mousemove",function(l){if(o._hovering=!0,!o._dragging){var s=o.visualMapModel.itemSize,u=o._applyTransform([l.offsetX,l.offsetY],o._shapes.mainGroup,!0,!0);u[1]=mathMin(mathMax(0,u[1]),s[1]),o._doHoverLinkToSeries(u[1],0<=u[0]&&u[0]<=s[0])}}).on("mouseout",function(){o._hovering=!1,!o._dragging&&o._clearHoverLinkToSeries()})},r.prototype._enableHoverLinkFromSeries=function(){var o=this.api.getZr();this.visualMapModel.option.hoverLink?(o.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),o.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},r.prototype._doHoverLinkToSeries=function(o,l){var s=this.visualMapModel,u=s.itemSize;if(!!s.option.hoverLink){var c=[0,u[1]],d=s.getExtent();o=mathMin(mathMax(c[0],o),c[1]);var f=getHalfHoverLinkSize(s,d,c),p=[o-f,o+f],h=linearMap(o,c,d,!0),v=[linearMap(p[0],c,d,!0),linearMap(p[1],c,d,!0)];p[0]<c[0]&&(v[0]=-1/0),p[1]>c[1]&&(v[1]=1/0),l&&(v[0]===-1/0?this._showIndicator(h,v[1],"< ",f):v[1]===1/0?this._showIndicator(h,v[0],"> ",f):this._showIndicator(h,h,"\u2248 ",f));var g=this._hoverLinkDataIndices,$=[];(l||useHoverLinkOnHandle(s))&&($=this._hoverLinkDataIndices=s.findTargetDataIndices(v));var y=compressBatches(g,$);this._dispatchHighDown("downplay",makeHighDownBatch(y[0],s)),this._dispatchHighDown("highlight",makeHighDownBatch(y[1],s))}},r.prototype._hoverLinkFromSeriesMouseOver=function(o){var l=o.target,s=this.visualMapModel;if(!(!l||getECData(l).dataIndex==null)){var u=getECData(l),c=this.ecModel.getSeriesByIndex(u.seriesIndex);if(!!s.isTargetSeries(c)){var d=c.getData(u.dataType),f=d.getStore().get(s.getDataDimensionIndex(d),u.dataIndex);isNaN(f)||this._showIndicator(f,f)}}},r.prototype._hideIndicator=function(){var o=this._shapes;o.indicator&&o.indicator.attr("invisible",!0),o.indicatorLabel&&o.indicatorLabel.attr("invisible",!0);var l=this._shapes.handleLabels;if(l)for(var s=0;s<l.length;s++)this._api.leaveBlur(l[s])},r.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var o=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",makeHighDownBatch(o,this.visualMapModel)),o.length=0},r.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var o=this.api.getZr();o.off("mouseover",this._hoverLinkFromSeriesMouseOver),o.off("mouseout",this._hideIndicator)},r.prototype._applyTransform=function(o,l,s,u){var c=getTransform$1(l,u?null:this.group);return isArray$1(o)?applyTransform(o,c,s):transformDirection(o,c,s)},r.prototype._dispatchHighDown=function(o,l){l&&l.length&&this.api.dispatchAction({type:o,batch:l})},r.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},r.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},r.type="visualMap.continuous",r}(VisualMapView$1);function createPolygon(a,r,o,l){return new Polygon$1({shape:{points:a},draggable:!!o,cursor:r,drift:o,onmousemove:function(s){stop(s.event)},ondragend:l})}function getHalfHoverLinkSize(a,r,o){var l=HOVER_LINK_SIZE/2,s=a.get("hoverLinkDataSize");return s&&(l=linearMap(s,r,o,!0)/2),l}function useHoverLinkOnHandle(a){var r=a.get("hoverLinkOnHandle");return!!(r==null?a.get("realtime"):r)}function getCursor(a){return a==="vertical"?"ns-resize":"ew-resize"}var ContinuousView$1=ContinuousView,visualMapActionInfo={type:"selectDataRange",event:"dataRangeSelected",update:"update"},visualMapActionHander=function(a,r){r.eachComponent({mainType:"visualMap",query:a},function(o){o.setSelected(a.selected)})},visualMapEncodingHandlers=[{createOnAllSeries:!0,reset:function(a,r){var o=[];return r.eachComponent("visualMap",function(l){var s=a.pipelineContext;!l.isTargetSeries(a)||s&&s.large||o.push(incrementalApplyVisual(l.stateList,l.targetVisuals,bind$1(l.getValueState,l),l.getDataDimensionIndex(a.getData())))}),o}},{createOnAllSeries:!0,reset:function(a,r){var o=a.getData(),l=[];r.eachComponent("visualMap",function(s){if(s.isTargetSeries(a)){var u=s.getVisualMeta(bind$1(getColorVisual,null,a,s))||{stops:[],outerColors:[]},c=s.getDataDimensionIndex(o);c>=0&&(u.dimension=c,l.push(u))}}),a.getData().setVisual("visualMeta",l)}}];function getColorVisual(a,r,o,l){for(var s=r.targetVisuals[l],u=VisualMapping$1.prepareVisualTypes(s),c={color:getVisualFromData(a.getData(),"color")},d=0,f=u.length;d<f;d++){var p=u[d],h=s[p==="opacity"?"__alphaForOpacity":p];h&&h.applyVisual(o,v,g)}return c.color;function v($){return c[$]}function g($,y){c[$]=y}}var each=each$f;function visualMapPreprocessor(a){var r=a&&a.visualMap;isArray$1(r)||(r=r?[r]:[]),each(r,function(o){if(!!o){has(o,"splitList")&&!has(o,"pieces")&&(o.pieces=o.splitList,delete o.splitList);var l=o.pieces;l&&isArray$1(l)&&each(l,function(s){isObject$3(s)&&(has(s,"start")&&!has(s,"min")&&(s.min=s.start),has(s,"end")&&!has(s,"max")&&(s.max=s.end))})}})}function has(a,r){return a&&a.hasOwnProperty&&a.hasOwnProperty(r)}var installed=!1;function installCommon(a){installed||(installed=!0,a.registerSubTypeDefaulter("visualMap",function(r){return!r.categories&&(!(r.pieces?r.pieces.length>0:r.splitNumber>0)||r.calculable)?"continuous":"piecewise"}),a.registerAction(visualMapActionInfo,visualMapActionHander),each$f(visualMapEncodingHandlers,function(r){a.registerVisual(a.PRIORITY.VISUAL.COMPONENT,r)}),a.registerPreprocessor(visualMapPreprocessor))}function install$6(a){a.registerComponentModel(ContinuousModel$1),a.registerComponentView(ContinuousView$1),installCommon(a)}var PiecewiseModel=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o._pieceList=[],o}return r.prototype.optionUpdated=function(o,l){a.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var s=this._mode=this._determineMode();this._pieceList=[],resetMethods[this._mode].call(this,this._pieceList),this._resetSelected(o,l);var u=this.option.categories;this.resetVisual(function(c,d){s==="categories"?(c.mappingMethod="category",c.categories=clone$4(u)):(c.dataExtent=this.getExtent(),c.mappingMethod="piecewise",c.pieceList=map$1(this._pieceList,function(f){return f=clone$4(f),d!=="inRange"&&(f.visual=null),f}))})},r.prototype.completeVisualOption=function(){var o=this.option,l={},s=VisualMapping$1.listVisualTypes(),u=this.isCategory();each$f(o.pieces,function(d){each$f(s,function(f){d.hasOwnProperty(f)&&(l[f]=1)})}),each$f(l,function(d,f){var p=!1;each$f(this.stateList,function(h){p=p||c(o,h,f)||c(o.target,h,f)},this),!p&&each$f(this.stateList,function(h){(o[h]||(o[h]={}))[f]=visualDefault$1.get(f,h==="inRange"?"active":"inactive",u)})},this);function c(d,f,p){return d&&d[f]&&d[f].hasOwnProperty(p)}a.prototype.completeVisualOption.apply(this,arguments)},r.prototype._resetSelected=function(o,l){var s=this.option,u=this._pieceList,c=(l?s:o).selected||{};if(s.selected=c,each$f(u,function(f,p){var h=this.getSelectedMapKey(f);c.hasOwnProperty(h)||(c[h]=!0)},this),s.selectedMode==="single"){var d=!1;each$f(u,function(f,p){var h=this.getSelectedMapKey(f);c[h]&&(d?c[h]=!1:d=!0)},this)}},r.prototype.getItemSymbol=function(){return this.get("itemSymbol")},r.prototype.getSelectedMapKey=function(o){return this._mode==="categories"?o.value+"":o.index+""},r.prototype.getPieceList=function(){return this._pieceList},r.prototype._determineMode=function(){var o=this.option;return o.pieces&&o.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},r.prototype.setSelected=function(o){this.option.selected=clone$4(o)},r.prototype.getValueState=function(o){var l=VisualMapping$1.findPieceIndex(o,this._pieceList);return l!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[l])]?"inRange":"outOfRange"},r.prototype.findTargetDataIndices=function(o){var l=[],s=this._pieceList;return this.eachTargetSeries(function(u){var c=[],d=u.getData();d.each(this.getDataDimensionIndex(d),function(f,p){var h=VisualMapping$1.findPieceIndex(f,s);h===o&&c.push(p)},this),l.push({seriesId:u.id,dataIndex:c})},this),l},r.prototype.getRepresentValue=function(o){var l;if(this.isCategory())l=o.value;else if(o.value!=null)l=o.value;else{var s=o.interval||[];l=s[0]===-1/0&&s[1]===1/0?0:(s[0]+s[1])/2}return l},r.prototype.getVisualMeta=function(o){if(this.isCategory())return;var l=[],s=["",""],u=this;function c(h,v){var g=u.getRepresentValue({interval:h});v||(v=u.getValueState(g));var $=o(g,v);h[0]===-1/0?s[0]=$:h[1]===1/0?s[1]=$:l.push({value:h[0],color:$},{value:h[1],color:$})}var d=this._pieceList.slice();if(!d.length)d.push({interval:[-1/0,1/0]});else{var f=d[0].interval[0];f!==-1/0&&d.unshift({interval:[-1/0,f]}),f=d[d.length-1].interval[1],f!==1/0&&d.push({interval:[f,1/0]})}var p=-1/0;return each$f(d,function(h){var v=h.interval;v&&(v[0]>p&&c([p,v[0]],"outOfRange"),c(v.slice()),p=v[1])},this),{stops:l,outerColors:s}},r.type="visualMap.piecewise",r.defaultOption=inheritDefaultOption(VisualMapModel$1.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}),r}(VisualMapModel$1),resetMethods={splitNumber:function(a){var r=this.option,o=Math.min(r.precision,20),l=this.getExtent(),s=r.splitNumber;s=Math.max(parseInt(s,10),1),r.splitNumber=s;for(var u=(l[1]-l[0])/s;+u.toFixed(o)!==u&&o<5;)o++;r.precision=o,u=+u.toFixed(o),r.minOpen&&a.push({interval:[-1/0,l[0]],close:[0,0]});for(var c=0,d=l[0];c<s;d+=u,c++){var f=c===s-1?l[1]:d+u;a.push({interval:[d,f],close:[1,1]})}r.maxOpen&&a.push({interval:[l[1],1/0],close:[0,0]}),reformIntervals(a),each$f(a,function(p,h){p.index=h,p.text=this.formatValueText(p.interval)},this)},categories:function(a){var r=this.option;each$f(r.categories,function(o){a.push({text:this.formatValueText(o,!0),value:o})},this),normalizeReverse(r,a)},pieces:function(a){var r=this.option;each$f(r.pieces,function(o,l){isObject$3(o)||(o={value:o});var s={text:"",index:l};if(o.label!=null&&(s.text=o.label),o.hasOwnProperty("value")){var u=s.value=o.value;s.interval=[u,u],s.close=[1,1]}else{for(var c=s.interval=[],d=s.close=[0,0],f=[1,0,1],p=[-1/0,1/0],h=[],v=0;v<2;v++){for(var g=[["gte","gt","min"],["lte","lt","max"]][v],$=0;$<3&&c[v]==null;$++)c[v]=o[g[$]],d[v]=f[$],h[v]=$===2;c[v]==null&&(c[v]=p[v])}h[0]&&c[1]===1/0&&(d[0]=0),h[1]&&c[0]===-1/0&&(d[1]=0),c[0]===c[1]&&d[0]&&d[1]&&(s.value=c[0])}s.visual=VisualMapping$1.retrieveVisuals(o),a.push(s)},this),normalizeReverse(r,a),reformIntervals(a),each$f(a,function(o){var l=o.close,s=[["<","\u2264"][l[1]],[">","\u2265"][l[0]]];o.text=o.text||this.formatValueText(o.value!=null?o.value:o.interval,!1,s)},this)}};function normalizeReverse(a,r){var o=a.inverse;(a.orient==="vertical"?!o:o)&&r.reverse()}var PiecewiseModel$1=PiecewiseModel,PiecewiseVisualMapView=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o}return r.prototype.doRender=function(){var o=this.group;o.removeAll();var l=this.visualMapModel,s=l.get("textGap"),u=l.textStyleModel,c=u.getFont(),d=u.getTextColor(),f=this._getItemAlign(),p=l.itemSize,h=this._getViewData(),v=h.endsText,g=retrieve(l.get("showLabel",!0),!v);v&&this._renderEndsText(o,v[0],p,g,f),each$f(h.viewPieceList,function($){var y=$.piece,x=new Group$4;x.onclick=bind$1(this._onItemClick,this,y),this._enableHoverLink(x,$.indexInModelPieceList);var w=l.getRepresentValue(y);if(this._createItemSymbol(x,w,[0,0,p[0],p[1]]),g){var S=this.visualMapModel.getValueState(w);x.add(new ZRText$1({style:{x:f==="right"?-s:p[0]+s,y:p[1]/2,text:y.text,verticalAlign:"middle",align:f,font:c,fill:d,opacity:S==="outOfRange"?.5:1}}))}o.add(x)},this),v&&this._renderEndsText(o,v[1],p,g,f),box(l.get("orient"),o,l.get("itemGap")),this.renderBackground(o),this.positionGroup(o)},r.prototype._enableHoverLink=function(o,l){var s=this;o.on("mouseover",function(){return u("highlight")}).on("mouseout",function(){return u("downplay")});var u=function(c){var d=s.visualMapModel;d.option.hoverLink&&s.api.dispatchAction({type:c,batch:makeHighDownBatch(d.findTargetDataIndices(l),d)})}},r.prototype._getItemAlign=function(){var o=this.visualMapModel,l=o.option;if(l.orient==="vertical")return getItemAlign(o,this.api,o.itemSize);var s=l.align;return(!s||s==="auto")&&(s="left"),s},r.prototype._renderEndsText=function(o,l,s,u,c){if(!!l){var d=new Group$4,f=this.visualMapModel.textStyleModel;d.add(new ZRText$1({style:createTextStyle$1(f,{x:u?c==="right"?s[0]:0:s[0]/2,y:s[1]/2,verticalAlign:"middle",align:u?c:"center",text:l})})),o.add(d)}},r.prototype._getViewData=function(){var o=this.visualMapModel,l=map$1(o.getPieceList(),function(d,f){return{piece:d,indexInModelPieceList:f}}),s=o.get("text"),u=o.get("orient"),c=o.get("inverse");return(u==="horizontal"?c:!c)?l.reverse():s&&(s=s.slice().reverse()),{viewPieceList:l,endsText:s}},r.prototype._createItemSymbol=function(o,l,s){o.add(createSymbol$1(this.getControllerVisual(l,"symbol"),s[0],s[1],s[2],s[3],this.getControllerVisual(l,"color")))},r.prototype._onItemClick=function(o){var l=this.visualMapModel,s=l.option,u=s.selectedMode;if(!!u){var c=clone$4(s.selected),d=l.getSelectedMapKey(o);u==="single"||u===!0?(c[d]=!0,each$f(c,function(f,p){c[p]=p===d})):c[d]=!c[d],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:c})}},r.type="visualMap.piecewise",r}(VisualMapView$1),PiecewiseView=PiecewiseVisualMapView;function install$5(a){a.registerComponentModel(PiecewiseModel$1),a.registerComponentView(PiecewiseView),installCommon(a)}function install$4(a){use(install$6),use(install$5)}var DEFAULT_OPTION={label:{enabled:!0},decal:{show:!1}},inner=makeInner(),decalPaletteScope={};function ariaVisual(a,r){var o=a.getModel("aria");if(!o.get("enabled"))return;var l=clone$4(DEFAULT_OPTION);merge(l.label,a.getLocaleModel().get("aria"),!1),merge(o.option,l,!1),s(),u();function s(){var p=o.getModel("decal"),h=p.get("show");if(h){var v=createHashMap();a.eachSeries(function(g){if(!g.isColorBySeries()){var $=v.get(g.type);$||($={},v.set(g.type,$)),inner(g).scope=$}}),a.eachRawSeries(function(g){if(a.isSeriesFiltered(g))return;if(isFunction(g.enableAriaDecal)){g.enableAriaDecal();return}var $=g.getData();if(g.isColorBySeries()){var C=getDecalFromPalette(g.ecModel,g.name,decalPaletteScope,a.getSeriesCount()),A=$.getVisual("decal");$.setVisual("decal",T(A,C))}else{var y=g.getRawData(),x={},w=inner(g).scope;$.each(function(I){var D=$.getRawIndex(I);x[D]=I});var S=y.count();y.each(function(I){var D=x[I],M=y.getName(I)||I+"",L=getDecalFromPalette(g.ecModel,M,w,S),N=$.getItemVisual(D,"decal");$.setItemVisual(D,"decal",T(N,L))})}function T(I,D){var M=I?extend(extend({},D),I):D;return M.dirty=!0,M}})}}function u(){var p=a.getLocaleModel().get("aria"),h=o.getModel("label");if(h.option=defaults(h.option,p),!!h.get("enabled")){var v=r.getZr().dom;if(h.get("description")){v.setAttribute("aria-label",h.get("description"));return}var g=a.getSeriesCount(),$=h.get(["data","maxCount"])||10,y=h.get(["series","maxCount"])||10,x=Math.min(g,y),w;if(!(g<1)){var S=d();if(S){var C=h.get(["general","withTitle"]);w=c(C,{title:S})}else w=h.get(["general","withoutTitle"]);var A=[],T=g>1?h.get(["series","multiple","prefix"]):h.get(["series","single","prefix"]);w+=c(T,{seriesCount:g}),a.eachSeries(function(L,N){if(N<x){var V=void 0,R=L.get("name"),P=R?"withName":"withoutName";V=g>1?h.get(["series","multiple",P]):h.get(["series","single",P]),V=c(V,{seriesId:L.seriesIndex,seriesName:L.get("name"),seriesType:f(L.subType)});var q=L.getData();if(q.count()>$){var B=h.get(["data","partialData"]);V+=c(B,{displayCnt:$})}else V+=h.get(["data","allData"]);for(var F=h.get(["data","separator","middle"]),U=h.get(["data","separator","end"]),J=[],K=0;K<q.count();K++)if(K<$){var ee=q.getName(K),de=q.getValues(K),Z=h.get(["data",ee?"withName":"withoutName"]);J.push(c(Z,{name:ee,value:de.join(F)}))}V+=J.join(F)+U,A.push(V)}});var I=h.getModel(["series","multiple","separator"]),D=I.get("middle"),M=I.get("end");w+=A.join(D)+M,v.setAttribute("aria-label",w)}}}function c(p,h){if(!isString(p))return p;var v=p;return each$f(h,function(g,$){v=v.replace(new RegExp("\\{\\s*"+$+"\\s*\\}","g"),g)}),v}function d(){var p=a.get("title");return p&&p.length&&(p=p[0]),p&&p.text}function f(p){return a.getLocaleModel().get(["series","typeNames"])[p]||"\u81EA\u5B9A\u4E49\u56FE"}}function ariaPreprocessor(a){if(!(!a||!a.aria)){var r=a.aria;r.show!=null&&(r.enabled=r.show),r.label=r.label||{},each$f(["description","general","series","data"],function(o){r[o]!=null&&(r.label[o]=r[o])})}}function install$3(a){a.registerPreprocessor(ariaPreprocessor),a.registerVisual(a.PRIORITY.VISUAL.ARIA,ariaVisual)}var RELATIONAL_EXPRESSION_OP_ALIAS_MAP={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},RegExpEvaluator=function(){function a(r){var o=this._condVal=isString(r)?new RegExp(r):isRegExp(r)?r:null;if(o==null){var l="";throwError(l)}}return a.prototype.evaluate=function(r){var o=typeof r;return isString(o)?this._condVal.test(r):isNumber(o)?this._condVal.test(r+""):!1},a}(),ConstConditionInternal=function(){function a(){}return a.prototype.evaluate=function(){return this.value},a}(),AndConditionInternal=function(){function a(){}return a.prototype.evaluate=function(){for(var r=this.children,o=0;o<r.length;o++)if(!r[o].evaluate())return!1;return!0},a}(),OrConditionInternal=function(){function a(){}return a.prototype.evaluate=function(){for(var r=this.children,o=0;o<r.length;o++)if(r[o].evaluate())return!0;return!1},a}(),NotConditionInternal=function(){function a(){}return a.prototype.evaluate=function(){return!this.child.evaluate()},a}(),RelationalConditionInternal=function(){function a(){}return a.prototype.evaluate=function(){for(var r=!!this.valueParser,o=this.getValue,l=o(this.valueGetterParam),s=r?this.valueParser(l):null,u=0;u<this.subCondList.length;u++)if(!this.subCondList[u].evaluate(r?s:l))return!1;return!0},a}();function parseOption(a,r){if(a===!0||a===!1){var o=new ConstConditionInternal;return o.value=a,o}var l="";return isObjectNotArray(a)||throwError(l),a.and?parseAndOrOption("and",a,r):a.or?parseAndOrOption("or",a,r):a.not?parseNotOption(a,r):parseRelationalOption(a,r)}function parseAndOrOption(a,r,o){var l=r[a],s="";isArray$1(l)||throwError(s),l.length||throwError(s);var u=a==="and"?new AndConditionInternal:new OrConditionInternal;return u.children=map$1(l,function(c){return parseOption(c,o)}),u.children.length||throwError(s),u}function parseNotOption(a,r){var o=a.not,l="";isObjectNotArray(o)||throwError(l);var s=new NotConditionInternal;return s.child=parseOption(o,r),s.child||throwError(l),s}function parseRelationalOption(a,r){for(var o="",l=r.prepareGetValue(a),s=[],u=keys(a),c=a.parser,d=c?getRawValueParser(c):null,f=0;f<u.length;f++){var p=u[f];if(!(p==="parser"||r.valueGetterAttrMap.get(p))){var h=hasOwn(RELATIONAL_EXPRESSION_OP_ALIAS_MAP,p)?RELATIONAL_EXPRESSION_OP_ALIAS_MAP[p]:p,v=a[p],g=d?d(v):v,$=createFilterComparator(h,g)||h==="reg"&&new RegExpEvaluator(g);$||throwError(o),s.push($)}}s.length||throwError(o);var y=new RelationalConditionInternal;return y.valueGetterParam=l,y.valueParser=d,y.getValue=r.getValue,y.subCondList=s,y}function isObjectNotArray(a){return isObject$3(a)&&!isArrayLike(a)}var ConditionalExpressionParsed=function(){function a(r,o){this._cond=parseOption(r,o)}return a.prototype.evaluate=function(){return this._cond.evaluate()},a}();function parseConditionalExpression(a,r){return new ConditionalExpressionParsed(a,r)}var filterTransform={type:"echarts:filter",transform:function(a){for(var r=a.upstream,o,l=parseConditionalExpression(a.config,{valueGetterAttrMap:createHashMap({dimension:!0}),prepareGetValue:function(d){var f="",p=d.dimension;hasOwn(d,"dimension")||throwError(f);var h=r.getDimensionInfo(p);return h||throwError(f),{dimIdx:h.index}},getValue:function(d){return r.retrieveValueFromItem(o,d.dimIdx)}}),s=[],u=0,c=r.count();u<c;u++)o=r.getRawDataItem(u),l.evaluate()&&s.push(o);return{data:s}}},sortTransform={type:"echarts:sort",transform:function(a){var r=a.upstream,o=a.config,l="",s=normalizeToArray(o);s.length||throwError(l);var u=[];each$f(s,function(h){var v=h.dimension,g=h.order,$=h.parser,y=h.incomparable;if(v==null&&throwError(l),g!=="asc"&&g!=="desc"&&throwError(l),y&&y!=="min"&&y!=="max"){var x="";throwError(x)}if(g!=="asc"&&g!=="desc"){var w="";throwError(w)}var S=r.getDimensionInfo(v);S||throwError(l);var C=$?getRawValueParser($):null;$&&!C&&throwError(l),u.push({dimIdx:S.index,parser:C,comparator:new SortOrderComparator(g,y)})});var c=r.sourceFormat;c!==SOURCE_FORMAT_ARRAY_ROWS&&c!==SOURCE_FORMAT_OBJECT_ROWS&&throwError(l);for(var d=[],f=0,p=r.count();f<p;f++)d.push(r.getRawDataItem(f));return d.sort(function(h,v){for(var g=0;g<u.length;g++){var $=u[g],y=r.retrieveValueFromItem(h,$.dimIdx),x=r.retrieveValueFromItem(v,$.dimIdx);$.parser&&(y=$.parser(y),x=$.parser(x));var w=$.comparator.evaluate(y,x);if(w!==0)return w}return 0}),{data:d}}};function install$2(a){a.registerTransform(filterTransform),a.registerTransform(sortTransform)}var DatasetModel=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type="dataset",o}return r.prototype.init=function(o,l,s){a.prototype.init.call(this,o,l,s),this._sourceManager=new SourceManager(this),disableTransformOptionMerge(this)},r.prototype.mergeOption=function(o,l){a.prototype.mergeOption.call(this,o,l),disableTransformOptionMerge(this)},r.prototype.optionUpdated=function(){this._sourceManager.dirty()},r.prototype.getSourceManager=function(){return this._sourceManager},r.type="dataset",r.defaultOption={seriesLayoutBy:SERIES_LAYOUT_BY_COLUMN},r}(ComponentModel$1),DatasetView=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type="dataset",o}return r.type="dataset",r}(ComponentView$1);function install$1(a){a.registerComponentModel(DatasetModel),a.registerComponentView(DatasetView)}var CMD=PathProxy$1.CMD;function aroundEqual(a,r){return Math.abs(a-r)<1e-5}function pathToBezierCurves(a){var r=a.data,o=a.len(),l=[],s,u=0,c=0,d=0,f=0;function p(q,B){s&&s.length>2&&l.push(s),s=[q,B]}function h(q,B,F,U){aroundEqual(q,F)&&aroundEqual(B,U)||s.push(q,B,F,U,F,U)}function v(q,B,F,U,J,K){var ee=Math.abs(B-q),de=Math.tan(ee/4)*4/3,Z=B<q?-1:1,Y=Math.cos(q),re=Math.sin(q),oe=Math.cos(B),ie=Math.sin(B),ve=Y*J+F,ue=re*K+U,fe=oe*J+F,xe=ie*K+U,_e=J*de*Z,W=K*de*Z;s.push(ve-_e*re,ue+W*Y,fe+_e*ie,xe-W*oe,fe,xe)}for(var g,$,y,x,w=0;w<o;){var S=r[w++],C=w===1;switch(C&&(u=r[w],c=r[w+1],d=u,f=c,(S===CMD.L||S===CMD.C||S===CMD.Q)&&(s=[d,f])),S){case CMD.M:u=d=r[w++],c=f=r[w++],p(d,f);break;case CMD.L:g=r[w++],$=r[w++],h(u,c,g,$),u=g,c=$;break;case CMD.C:s.push(r[w++],r[w++],r[w++],r[w++],u=r[w++],c=r[w++]);break;case CMD.Q:g=r[w++],$=r[w++],y=r[w++],x=r[w++],s.push(u+2/3*(g-u),c+2/3*($-c),y+2/3*(g-y),x+2/3*($-x),y,x),u=y,c=x;break;case CMD.A:var A=r[w++],T=r[w++],I=r[w++],D=r[w++],M=r[w++],L=r[w++]+M;w+=1;var N=!r[w++];g=Math.cos(M)*I+A,$=Math.sin(M)*D+T,C?(d=g,f=$,p(d,f)):h(u,c,g,$),u=Math.cos(L)*I+A,c=Math.sin(L)*D+T;for(var V=(N?-1:1)*Math.PI/2,R=M;N?R>L:R<L;R+=V){var P=N?Math.max(R+V,L):Math.min(R+V,L);v(R,P,A,T,I,D)}break;case CMD.R:d=u=r[w++],f=c=r[w++],g=d+r[w++],$=f+r[w++],p(g,f),h(g,f,g,$),h(g,$,d,$),h(d,$,d,f),h(d,f,g,f);break;case CMD.Z:s&&h(u,c,d,f),u=d,c=f;break}}return s&&s.length>2&&l.push(s),l}function adpativeBezier(a,r,o,l,s,u,c,d,f,p){if(aroundEqual(a,o)&&aroundEqual(r,l)&&aroundEqual(s,c)&&aroundEqual(u,d)){f.push(c,d);return}var h=2/p,v=h*h,g=c-a,$=d-r,y=Math.sqrt(g*g+$*$);g/=y,$/=y;var x=o-a,w=l-r,S=s-c,C=u-d,A=x*x+w*w,T=S*S+C*C;if(A<v&&T<v){f.push(c,d);return}var I=g*x+$*w,D=-g*S-$*C,M=A-I*I,L=T-D*D;if(M<v&&I>=0&&L<v&&D>=0){f.push(c,d);return}var N=[],V=[];cubicSubdivide(a,o,s,c,.5,N),cubicSubdivide(r,l,u,d,.5,V),adpativeBezier(N[0],V[0],N[1],V[1],N[2],V[2],N[3],V[3],f,p),adpativeBezier(N[4],V[4],N[5],V[5],N[6],V[6],N[7],V[7],f,p)}function pathToPolygons(a,r){var o=pathToBezierCurves(a),l=[];r=r||1;for(var s=0;s<o.length;s++){var u=o[s],c=[],d=u[0],f=u[1];c.push(d,f);for(var p=2;p<u.length;){var h=u[p++],v=u[p++],g=u[p++],$=u[p++],y=u[p++],x=u[p++];adpativeBezier(d,f,h,v,g,$,y,x,c,r),d=y,f=x}l.push(c)}return l}function getDividingGrids(a,r,o){var l=a[r],s=a[1-r],u=Math.abs(l/s),c=Math.ceil(Math.sqrt(u*o)),d=Math.floor(o/c);d===0&&(d=1,c=o);for(var f=[],p=0;p<c;p++)f.push(d);var h=c*d,v=o-h;if(v>0)for(var p=0;p<v;p++)f[p%c]+=1;return f}function divideSector(a,r,o){for(var l=a.r0,s=a.r,u=a.startAngle,c=a.endAngle,d=Math.abs(c-u),f=d*s,p=s-l,h=f>Math.abs(p),v=getDividingGrids([f,p],h?0:1,r),g=(h?d:p)/v.length,$=0;$<v.length;$++)for(var y=(h?p:d)/v[$],x=0;x<v[$];x++){var w={};h?(w.startAngle=u+g*$,w.endAngle=u+g*($+1),w.r0=l+y*x,w.r=l+y*(x+1)):(w.startAngle=u+y*x,w.endAngle=u+y*(x+1),w.r0=l+g*$,w.r=l+g*($+1)),w.clockwise=a.clockwise,w.cx=a.cx,w.cy=a.cy,o.push(w)}}function divideRect(a,r,o){for(var l=a.width,s=a.height,u=l>s,c=getDividingGrids([l,s],u?0:1,r),d=u?"width":"height",f=u?"height":"width",p=u?"x":"y",h=u?"y":"x",v=a[d]/c.length,g=0;g<c.length;g++)for(var $=a[f]/c[g],y=0;y<c[g];y++){var x={};x[p]=g*v,x[h]=y*$,x[d]=v,x[f]=$,x.x+=a.x,x.y+=a.y,o.push(x)}}function crossProduct2d(a,r,o,l){return a*l-o*r}function lineLineIntersect(a,r,o,l,s,u,c,d){var f=o-a,p=l-r,h=c-s,v=d-u,g=crossProduct2d(h,v,f,p);if(Math.abs(g)<1e-6)return null;var $=a-s,y=r-u,x=crossProduct2d($,y,h,v)/g;return x<0||x>1?null:new Point$1(x*f+a,x*p+r)}function projPtOnLine(a,r,o){var l=new Point$1;Point$1.sub(l,o,r),l.normalize();var s=new Point$1;Point$1.sub(s,a,r);var u=s.dot(l);return u}function addToPoly(a,r){var o=a[a.length-1];o&&o[0]===r[0]&&o[1]===r[1]||a.push(r)}function splitPolygonByLine(a,r,o){for(var l=a.length,s=[],u=0;u<l;u++){var c=a[u],d=a[(u+1)%l],f=lineLineIntersect(c[0],c[1],d[0],d[1],r.x,r.y,o.x,o.y);f&&s.push({projPt:projPtOnLine(f,r,o),pt:f,idx:u})}if(s.length<2)return[{points:a},{points:a}];s.sort(function(w,S){return w.projPt-S.projPt});var p=s[0],h=s[s.length-1];if(h.idx<p.idx){var v=p;p=h,h=v}for(var g=[p.pt.x,p.pt.y],$=[h.pt.x,h.pt.y],y=[g],x=[$],u=p.idx+1;u<=h.idx;u++)addToPoly(y,a[u].slice());addToPoly(y,$),addToPoly(y,g);for(var u=h.idx+1;u<=p.idx+l;u++)addToPoly(x,a[u%l].slice());return addToPoly(x,g),addToPoly(x,$),[{points:y},{points:x}]}function binaryDividePolygon(a){var r=a.points,o=[],l=[];fromPoints(r,o,l);var s=new BoundingRect$1(o[0],o[1],l[0]-o[0],l[1]-o[1]),u=s.width,c=s.height,d=s.x,f=s.y,p=new Point$1,h=new Point$1;return u>c?(p.x=h.x=d+u/2,p.y=f,h.y=f+c):(p.y=h.y=f+c/2,p.x=d,h.x=d+u),splitPolygonByLine(r,p,h)}function binaryDivideRecursive(a,r,o,l){if(o===1)l.push(r);else{var s=Math.floor(o/2),u=a(r);binaryDivideRecursive(a,u[0],s,l),binaryDivideRecursive(a,u[1],o-s,l)}return l}function clone(a,r){for(var o=[],l=0;l<r;l++)o.push(clonePath(a));return o}function copyPathProps(a,r){r.setStyle(a.style),r.z=a.z,r.z2=a.z2,r.zlevel=a.zlevel}function polygonConvert(a){for(var r=[],o=0;o<a.length;)r.push([a[o++],a[o++]]);return r}function split(a,r){var o=[],l=a.shape,s;switch(a.type){case"rect":divideRect(l,r,o),s=Rect$3;break;case"sector":divideSector(l,r,o),s=Sector$1;break;case"circle":divideSector({r0:0,r:l.r,startAngle:0,endAngle:Math.PI*2,cx:l.cx,cy:l.cy},r,o),s=Sector$1;break;default:var u=a.getComputedTransform(),c=u?Math.sqrt(Math.max(u[0]*u[0]+u[1]*u[1],u[2]*u[2]+u[3]*u[3])):1,d=map$1(pathToPolygons(a.getUpdatedPathProxy(),c),function(S){return polygonConvert(S)}),f=d.length;if(f===0)binaryDivideRecursive(binaryDividePolygon,{points:d[0]},r,o);else if(f===r)for(var p=0;p<f;p++)o.push({points:d[p]});else{var h=0,v=map$1(d,function(S){var C=[],A=[];fromPoints(S,C,A);var T=(A[1]-C[1])*(A[0]-C[0]);return h+=T,{poly:S,area:T}});v.sort(function(S,C){return C.area-S.area});for(var g=r,p=0;p<f;p++){var $=v[p];if(g<=0)break;var y=p===f-1?g:Math.ceil($.area/h*r);y<0||(binaryDivideRecursive(binaryDividePolygon,{points:$.poly},y,o),g-=y)}}s=Polygon$1;break}if(!s)return clone(a,r);for(var x=[],p=0;p<o.length;p++){var w=new s;w.setShape(o[p]),copyPathProps(a,w),x.push(w)}return x}function alignSubpath(a,r){var o=a.length,l=r.length;if(o===l)return[a,r];for(var s=[],u=[],c=o<l?a:r,d=Math.min(o,l),f=Math.abs(l-o)/6,p=(d-2)/6,h=Math.ceil(f/p)+1,v=[c[0],c[1]],g=f,$=2;$<d;){var y=c[$-2],x=c[$-1],w=c[$++],S=c[$++],C=c[$++],A=c[$++],T=c[$++],I=c[$++];if(g<=0){v.push(w,S,C,A,T,I);continue}for(var D=Math.min(g,h-1)+1,M=1;M<=D;M++){var L=M/D;cubicSubdivide(y,w,C,T,L,s),cubicSubdivide(x,S,A,I,L,u),y=s[3],x=u[3],v.push(s[1],u[1],s[2],u[2],y,x),w=s[5],S=u[5],C=s[6],A=u[6]}g-=D-1}return c===a?[v,r]:[a,v]}function createSubpath(a,r){for(var o=a.length,l=a[o-2],s=a[o-1],u=[],c=0;c<r.length;)u[c++]=l,u[c++]=s;return u}function alignBezierCurves(a,r){for(var o,l,s,u=[],c=[],d=0;d<Math.max(a.length,r.length);d++){var f=a[d],p=r[d],h=void 0,v=void 0;f?p?(o=alignSubpath(f,p),h=o[0],v=o[1],l=h,s=v):(v=createSubpath(s||f,f),h=f):(h=createSubpath(l||p,p),v=p),u.push(h),c.push(v)}return[u,c]}function centroid(a){for(var r=0,o=0,l=0,s=a.length,u=0,c=s-2;u<s;c=u,u+=2){var d=a[c],f=a[c+1],p=a[u],h=a[u+1],v=d*h-p*f;r+=v,o+=(d+p)*v,l+=(f+h)*v}return r===0?[a[0]||0,a[1]||0]:[o/r/3,l/r/3,r]}function findBestRingOffset(a,r,o,l){for(var s=(a.length-2)/6,u=1/0,c=0,d=a.length,f=d-2,p=0;p<s;p++){for(var h=p*6,v=0,g=0;g<d;g+=2){var $=g===0?h:(h+g-2)%f+2,y=a[$]-o[0],x=a[$+1]-o[1],w=r[g]-l[0],S=r[g+1]-l[1],C=w-y,A=S-x;v+=C*C+A*A}v<u&&(u=v,c=p)}return c}function reverse(a){for(var r=[],o=a.length,l=0;l<o;l+=2)r[l]=a[o-l-2],r[l+1]=a[o-l-1];return r}function findBestMorphingRotation(a,r,o,l){for(var s=[],u,c=0;c<a.length;c++){var d=a[c],f=r[c],p=centroid(d),h=centroid(f);u==null&&(u=p[2]<0!=h[2]<0);var v=[],g=[],$=0,y=1/0,x=[],w=d.length;u&&(d=reverse(d));for(var S=findBestRingOffset(d,f,p,h)*6,C=w-2,A=0;A<C;A+=2){var T=(S+A)%C+2;v[A+2]=d[T]-p[0],v[A+3]=d[T+1]-p[1]}if(v[0]=d[S]-p[0],v[1]=d[S+1]-p[1],o>0)for(var I=l/o,D=-l/2;D<=l/2;D+=I){for(var M=Math.sin(D),L=Math.cos(D),N=0,A=0;A<d.length;A+=2){var V=v[A],R=v[A+1],P=f[A]-h[0],q=f[A+1]-h[1],B=P*L-q*M,F=P*M+q*L;x[A]=B,x[A+1]=F;var U=B-V,J=F-R;N+=U*U+J*J}if(N<y){y=N,$=D;for(var K=0;K<x.length;K++)g[K]=x[K]}}else for(var ee=0;ee<w;ee+=2)g[ee]=f[ee]-h[0],g[ee+1]=f[ee+1]-h[1];s.push({from:v,to:g,fromCp:p,toCp:h,rotation:-$})}return s}function isCombineMorphing(a){return a.__isCombineMorphing}var SAVED_METHOD_PREFIX="__mOriginal_";function saveAndModifyMethod(a,r,o){var l=SAVED_METHOD_PREFIX+r,s=a[l]||a[r];a[l]||(a[l]=a[r]);var u=o.replace,c=o.after,d=o.before;a[r]=function(){var f=arguments,p;return d&&d.apply(this,f),u?p=u.apply(this,f):p=s.apply(this,f),c&&c.apply(this,f),p}}function restoreMethod(a,r){var o=SAVED_METHOD_PREFIX+r;a[o]&&(a[r]=a[o],a[o]=null)}function applyTransformOnBeziers(a,r){for(var o=0;o<a.length;o++)for(var l=a[o],s=0;s<l.length;){var u=l[s],c=l[s+1];l[s++]=r[0]*u+r[2]*c+r[4],l[s++]=r[1]*u+r[3]*c+r[5]}}function prepareMorphPath(a,r){var o=a.getUpdatedPathProxy(),l=r.getUpdatedPathProxy(),s=alignBezierCurves(pathToBezierCurves(o),pathToBezierCurves(l)),u=s[0],c=s[1],d=a.getComputedTransform(),f=r.getComputedTransform();function p(){this.transform=null}d&&applyTransformOnBeziers(u,d),f&&applyTransformOnBeziers(c,f),saveAndModifyMethod(r,"updateTransform",{replace:p}),r.transform=null;var h=findBestMorphingRotation(u,c,10,Math.PI),v=[];saveAndModifyMethod(r,"buildPath",{replace:function(g){for(var $=r.__morphT,y=1-$,x=[],w=0;w<h.length;w++){var S=h[w],C=S.from,A=S.to,T=S.rotation*$,I=S.fromCp,D=S.toCp,M=Math.sin(T),L=Math.cos(T);lerp$1(x,I,D,$);for(var N=0;N<C.length;N+=2){var V=C[N],R=C[N+1],P=A[N],q=A[N+1],B=V*y+P*$,F=R*y+q*$;v[N]=B*L-F*M+x[0],v[N+1]=B*M+F*L+x[1]}var U=v[0],J=v[1];g.moveTo(U,J);for(var N=2;N<C.length;){var P=v[N++],q=v[N++],K=v[N++],ee=v[N++],de=v[N++],Z=v[N++];U===P&&J===q&&K===de&&ee===Z?g.lineTo(de,Z):g.bezierCurveTo(P,q,K,ee,de,Z),U=de,J=Z}}}})}function morphPath(a,r,o){if(!a||!r)return r;var l=o.done,s=o.during;prepareMorphPath(a,r),r.__morphT=0;function u(){restoreMethod(r,"buildPath"),restoreMethod(r,"updateTransform"),r.__morphT=-1,r.createPathProxy(),r.dirtyShape()}return r.animateTo({__morphT:1},defaults({during:function(c){r.dirtyShape(),s&&s(c)},done:function(){u(),l&&l()}},o)),r}function hilbert(a,r,o,l,s,u){var c=16;a=s===o?0:Math.round(32767*(a-o)/(s-o)),r=u===l?0:Math.round(32767*(r-l)/(u-l));for(var d=0,f,p=(1<<c)/2;p>0;p/=2){var h=0,v=0;(a&p)>0&&(h=1),(r&p)>0&&(v=1),d+=p*p*(3*h^v),v===0&&(h===1&&(a=p-1-a,r=p-1-r),f=a,a=r,r=f)}return d}function sortPaths(a){var r=1/0,o=1/0,l=-1/0,s=-1/0,u=map$1(a,function(d){var f=d.getBoundingRect(),p=d.getComputedTransform(),h=f.x+f.width/2+(p?p[4]:0),v=f.y+f.height/2+(p?p[5]:0);return r=Math.min(h,r),o=Math.min(v,o),l=Math.max(h,l),s=Math.max(v,s),[h,v]}),c=map$1(u,function(d,f){return{cp:d,z:hilbert(d[0],d[1],r,o,l,s),path:a[f]}});return c.sort(function(d,f){return d.z-f.z}).map(function(d){return d.path})}function defaultDividePath(a){return split(a.path,a.count)}function createEmptyReturn(){return{fromIndividuals:[],toIndividuals:[],count:0}}function combineMorph(a,r,o){var l=[];function s(I){for(var D=0;D<I.length;D++){var M=I[D];isCombineMorphing(M)?s(M.childrenRef()):M instanceof Path$1&&l.push(M)}}s(a);var u=l.length;if(!u)return createEmptyReturn();var c=o.dividePath||defaultDividePath,d=c({path:r,count:u});if(d.length!==u)return console.error("Invalid morphing: unmatched splitted path"),createEmptyReturn();l=sortPaths(l),d=sortPaths(d);for(var f=o.done,p=o.during,h=o.individualDelay,v=new Transformable$1,g=0;g<u;g++){var $=l[g],y=d[g];y.parent=r,y.copyTransform(v),h||prepareMorphPath($,y)}r.__isCombineMorphing=!0,r.childrenRef=function(){return d};function x(I){for(var D=0;D<d.length;D++)d[D].addSelfToZr(I)}saveAndModifyMethod(r,"addSelfToZr",{after:function(I){x(I)}}),saveAndModifyMethod(r,"removeSelfFromZr",{after:function(I){for(var D=0;D<d.length;D++)d[D].removeSelfFromZr(I)}});function w(){r.__isCombineMorphing=!1,r.__morphT=-1,r.childrenRef=null,restoreMethod(r,"addSelfToZr"),restoreMethod(r,"removeSelfFromZr")}var S=d.length;if(h)for(var C=S,A=function(){C--,C===0&&(w(),f&&f())},g=0;g<S;g++){var T=h?defaults({delay:(o.delay||0)+h(g,S,l[g],d[g]),done:A},o):o;morphPath(l[g],d[g],T)}else r.__morphT=0,r.animateTo({__morphT:1},defaults({during:function(I){for(var D=0;D<S;D++){var M=d[D];M.__morphT=r.__morphT,M.dirtyShape()}p&&p(I)},done:function(){w();for(var I=0;I<a.length;I++)restoreMethod(a[I],"updateTransform");f&&f()}},o));return r.__zr&&x(r.__zr),{fromIndividuals:l,toIndividuals:d,count:S}}function separateMorph(a,r,o){var l=r.length,s=[],u=o.dividePath||defaultDividePath;function c($){for(var y=0;y<$.length;y++){var x=$[y];isCombineMorphing(x)?c(x.childrenRef()):x instanceof Path$1&&s.push(x)}}if(isCombineMorphing(a)){c(a.childrenRef());var d=s.length;if(d<l)for(var f=0,p=d;p<l;p++)s.push(clonePath(s[f++%d]));s.length=l}else{s=u({path:a,count:l});for(var h=a.getComputedTransform(),p=0;p<s.length;p++)s[p].setLocalTransform(h);if(s.length!==l)return console.error("Invalid morphing: unmatched splitted path"),createEmptyReturn()}s=sortPaths(s),r=sortPaths(r);for(var v=o.individualDelay,p=0;p<l;p++){var g=v?defaults({delay:(o.delay||0)+v(p,l,s[p],r[p])},o):o;morphPath(s[p],r[p],g)}return{fromIndividuals:s,toIndividuals:r,count:r.length}}function isMultiple(a){return isArray$1(a[0])}function prepareMorphBatches(a,r){for(var o=[],l=a.length,s=0;s<l;s++)o.push({one:a[s],many:[]});for(var s=0;s<r.length;s++){var u=r[s].length,c=void 0;for(c=0;c<u;c++)o[c%l].many.push(r[s][c])}for(var d=0,s=l-1;s>=0;s--)if(!o[s].many.length){var f=o[d].many;if(f.length<=1)if(d)d=0;else return o;var u=f.length,p=Math.ceil(u/2);o[s].many=f.slice(p,u),o[d].many=f.slice(0,p),d++}return o}var pathDividers={clone:function(a){for(var r=[],o=1-Math.pow(1-a.path.style.opacity,1/a.count),l=0;l<a.count;l++){var s=clonePath(a.path);s.setStyle("opacity",o),r.push(s)}return r},split:null};function applyMorphAnimation(a,r,o,l,s,u){if(!a.length||!r.length)return;var c=getAnimationConfig("update",l,s);if(!(c&&c.duration>0))return;var d=l.getModel("universalTransition").get("delay"),f=Object.assign({setToFinal:!0},c),p,h;isMultiple(a)&&(p=a,h=r),isMultiple(r)&&(p=r,h=a);function v(S,C,A,T,I){var D=S.many,M=S.one;if(D.length===1&&!I){var L=C?D[0]:M,N=C?M:D[0];if(isCombineMorphing(L))v({many:[L],one:N},!0,A,T,!0);else{var V=d?defaults({delay:d(A,T)},f):f;morphPath(L,N,V),u(L,N,L,N,V)}}else for(var R=defaults({dividePath:pathDividers[o],individualDelay:d&&function(J,K,ee,de){return d(J+A,T)}},f),P=C?combineMorph(D,M,R):separateMorph(M,D,R),q=P.fromIndividuals,B=P.toIndividuals,F=q.length,U=0;U<F;U++){var V=d?defaults({delay:d(U,F)},f):f;u(q[U],B[U],C?D[U]:S.one,C?S.one:D[U],V)}}for(var g=p?p===a:a.length>r.length,$=p?prepareMorphBatches(h,p):prepareMorphBatches(g?r:a,[g?a:r]),y=0,x=0;x<$.length;x++)y+=$[x].many.length;for(var w=0,x=0;x<$.length;x++)v($[x],g,w,y),w+=$[x].many.length}function getPathList(a){if(!a)return[];if(isArray$1(a)){for(var r=[],o=0;o<a.length;o++)r.push(getPathList(a[o]));return r}var l=[];return a.traverse(function(s){s instanceof Path$1&&!s.disableMorphing&&!s.invisible&&!s.ignore&&l.push(s)}),l}var DATA_COUNT_THRESHOLD=1e4,getUniversalTransitionGlobalStore=makeInner();function getGroupIdDimension(a){for(var r=a.dimensions,o=0;o<r.length;o++){var l=a.getDimensionInfo(r[o]);if(l&&l.otherDims.itemGroupId===0)return r[o]}}function flattenDataDiffItems(a){var r=[];return each$f(a,function(o){var l=o.data;if(!(l.count()>DATA_COUNT_THRESHOLD))for(var s=l.getIndices(),u=getGroupIdDimension(l),c=0;c<s.length;c++)r.push({data:l,dim:o.dim||u,divide:o.divide,dataIndex:c})}),r}function fadeInElement(a,r,o){a.traverse(function(l){l instanceof Path$1&&initProps(l,{style:{opacity:0}},r,{dataIndex:o,isFrom:!0})})}function removeEl(a){if(a.parent){var r=a.getComputedTransform();a.setLocalTransform(r),a.parent.remove(a)}}function stopAnimation(a){a.stopAnimation(),a.isGroup&&a.traverse(function(r){r.stopAnimation()})}function animateElementStyles(a,r,o){var l=getAnimationConfig("update",o,r);l&&a.traverse(function(s){if(s instanceof Displayable$1){var u=getOldStyle(s);u&&s.animateFrom({style:u},l)}})}function isAllIdSame(a,r){var o=a.length;if(o!==r.length)return!1;for(var l=0;l<o;l++){var s=a[l],u=r[l];if(s.data.getId(s.dataIndex)!==u.data.getId(u.dataIndex))return!1}return!0}function transitionBetween(a,r,o){var l=flattenDataDiffItems(a),s=flattenDataDiffItems(r);function u(S,C,A,T,I){(A||S)&&C.animateFrom({style:A&&A!==S?extend(extend({},A.style),S.style):S.style},I)}function c(S){for(var C=0;C<S.length;C++)if(S[C].dim)return S[C].dim}var d=c(l),f=c(s),p=!1;function h(S,C){return function(A){var T=A.data,I=A.dataIndex;if(C)return T.getId(I);var D=T.hostModel&&T.hostModel.get("dataGroupId"),M=S?d||f:f||d,L=M&&T.getDimensionInfo(M),N=L&&L.ordinalMeta;if(L){var V=T.get(L.name,I);return N&&N.categories[V]||V+""}var R=T.getRawDataItem(I);return R&&R.groupId?R.groupId+"":D||T.getId(I)}}var v=isAllIdSame(l,s),g={};if(!v)for(var $=0;$<s.length;$++){var y=s[$],x=y.data.getItemGraphicEl(y.dataIndex);x&&(g[x.id]=!0)}function w(S,C){var A=l[C],T=s[S],I=T.data.hostModel,D=A.data.getItemGraphicEl(A.dataIndex),M=T.data.getItemGraphicEl(T.dataIndex);if(D===M){M&&animateElementStyles(M,T.dataIndex,I);return}D&&g[D.id]||M&&(stopAnimation(M),D?(stopAnimation(D),removeEl(D),p=!0,applyMorphAnimation(getPathList(D),getPathList(M),T.divide,I,S,u)):fadeInElement(M,I,S))}new DataDiffer$1(l,s,h(!0,v),h(!1,v),null,"multiple").update(w).updateManyToOne(function(S,C){var A=s[S],T=A.data,I=T.hostModel,D=T.getItemGraphicEl(A.dataIndex),M=filter(map$1(C,function(L){return l[L].data.getItemGraphicEl(l[L].dataIndex)}),function(L){return L&&L!==D&&!g[L.id]});D&&(stopAnimation(D),M.length?(each$f(M,function(L){stopAnimation(L),removeEl(L)}),p=!0,applyMorphAnimation(getPathList(M),getPathList(D),A.divide,I,S,u)):fadeInElement(D,I,A.dataIndex))}).updateOneToMany(function(S,C){var A=l[C],T=A.data.getItemGraphicEl(A.dataIndex);if(!(T&&g[T.id])){var I=filter(map$1(S,function(M){return s[M].data.getItemGraphicEl(s[M].dataIndex)}),function(M){return M&&M!==T}),D=s[S[0]].data.hostModel;I.length&&(each$f(I,function(M){return stopAnimation(M)}),T?(stopAnimation(T),removeEl(T),p=!0,applyMorphAnimation(getPathList(T),getPathList(I),A.divide,D,S[0],u)):each$f(I,function(M){return fadeInElement(M,D,S[0])}))}}).updateManyToMany(function(S,C){new DataDiffer$1(C,S,function(A){return l[A].data.getId(l[A].dataIndex)},function(A){return s[A].data.getId(s[A].dataIndex)}).update(function(A,T){w(S[A],C[T])}).execute()}).execute(),p&&each$f(r,function(S){var C=S.data,A=C.hostModel,T=A&&o.getViewOfSeriesModel(A),I=getAnimationConfig("update",A,0);T&&A.isAnimationEnabled()&&I&&I.duration>0&&T.group.traverse(function(D){D instanceof Path$1&&!D.animators.length&&D.animateFrom({style:{opacity:0}},I)})})}function getSeriesTransitionKey(a){var r=a.getModel("universalTransition").get("seriesKey");return r||a.id}function convertArraySeriesKeyToString(a){return isArray$1(a)?a.sort().join(","):a}function getDivideShapeFromData(a){if(a.hostModel)return a.hostModel.getModel("universalTransition").get("divideShape")}function findTransitionSeriesBatches(a,r){var o=createHashMap(),l=createHashMap(),s=createHashMap();return each$f(a.oldSeries,function(u,c){var d=a.oldData[c],f=getSeriesTransitionKey(u),p=convertArraySeriesKeyToString(f);l.set(p,d),isArray$1(f)&&each$f(f,function(h){s.set(h,{data:d,key:p})})}),each$f(r.updatedSeries,function(u){if(u.isUniversalTransitionEnabled()&&u.isAnimationEnabled()){var c=u.getData(),d=getSeriesTransitionKey(u),f=convertArraySeriesKeyToString(d),p=l.get(f);if(p)o.set(f,{oldSeries:[{divide:getDivideShapeFromData(p),data:p}],newSeries:[{divide:getDivideShapeFromData(c),data:c}]});else if(isArray$1(d)){var h=[];each$f(d,function($){var y=l.get($);y&&h.push({divide:getDivideShapeFromData(y),data:y})}),h.length&&o.set(f,{oldSeries:h,newSeries:[{data:c,divide:getDivideShapeFromData(c)}]})}else{var v=s.get(d);if(v){var g=o.get(v.key);g||(g={oldSeries:[{data:v.data,divide:getDivideShapeFromData(v.data)}],newSeries:[]},o.set(v.key,g)),g.newSeries.push({data:c,divide:getDivideShapeFromData(c)})}}}}),o}function querySeries(a,r){for(var o=0;o<a.length;o++){var l=r.seriesIndex!=null&&r.seriesIndex===a[o].seriesIndex||r.seriesId!=null&&r.seriesId===a[o].id;if(l)return o}}function transitionSeriesFromOpt(a,r,o,l){var s=[],u=[];each$f(normalizeToArray(a.from),function(c){var d=querySeries(r.oldSeries,c);d>=0&&s.push({data:r.oldData[d],divide:getDivideShapeFromData(r.oldData[d]),dim:c.dimension})}),each$f(normalizeToArray(a.to),function(c){var d=querySeries(o.updatedSeries,c);if(d>=0){var f=o.updatedSeries[d].getData();u.push({data:f,divide:getDivideShapeFromData(f),dim:c.dimension})}}),s.length>0&&u.length>0&&transitionBetween(s,u,l)}function installUniversalTransition(a){a.registerUpdateLifecycle("series:beforeupdate",function(r,o,l){each$f(normalizeToArray(l.seriesTransition),function(s){each$f(normalizeToArray(s.to),function(u){for(var c=l.updatedSeries,d=0;d<c.length;d++)(u.seriesIndex!=null&&u.seriesIndex===c[d].seriesIndex||u.seriesId!=null&&u.seriesId===c[d].id)&&(c[d][SERIES_UNIVERSAL_TRANSITION_PROP]=!0)})})}),a.registerUpdateLifecycle("series:transition",function(r,o,l){var s=getUniversalTransitionGlobalStore(o);if(s.oldSeries&&l.updatedSeries&&l.optionChanged){var u=l.seriesTransition;if(u)each$f(normalizeToArray(u),function(g){transitionSeriesFromOpt(g,s,l,o)});else{var c=findTransitionSeriesBatches(s,l);each$f(c.keys(),function(g){var $=c.get(g);transitionBetween($.oldSeries,$.newSeries,o)})}each$f(l.updatedSeries,function(g){g[SERIES_UNIVERSAL_TRANSITION_PROP]&&(g[SERIES_UNIVERSAL_TRANSITION_PROP]=!1)})}for(var d=r.getSeries(),f=s.oldSeries=[],p=s.oldData=[],h=0;h<d.length;h++){var v=d[h].getData();v.count()<DATA_COUNT_THRESHOLD&&(f.push(d[h]),p.push(v))}})}use([install$S]),use([install$T]),use([install$R,install$Q,install$P,install$N,install$L,install$J,install$I,install$H,install$G,install$F,install$E,install$C,install$B,install$A,install$z,install$y,install$x,install$w,install$v,install$u,install$t,install$s]),use(install$q),use(install$p),use(install$K),use(install$o),use(install$D),use(install$n),use(install$m),use(install$k),use(install$j),use(install$r),use(install$i),use(install$h),use(install$g),use(install$f),use(install$e),use(install$d),use(install$a),use(install$7),use(install$9),use(install$8),use(install$4),use(install$6),use(install$5),use(install$3),use(install$2),use(install$1),use(installUniversalTransition),use(installLabelLayout);var echarts=Object.freeze(Object.defineProperty({__proto__:null,registerLocale,version,dependencies,PRIORITY,init:init$1,connect,disConnect,disconnect,dispose,getInstanceByDom,getInstanceById,registerTheme,registerPreprocessor,registerProcessor,registerPostInit,registerPostUpdate,registerUpdateLifecycle,registerAction,registerCoordinateSystem,getCoordinateSystemDimensions,registerLayout,registerVisual,registerLoading,setCanvasCreator,registerMap:registerMap$1,getMap,registerTransform,dataTool,throttle,use,setPlatformAPI,parseGeoJSON,parseGeoJson:parseGeoJSON,env:env$1,Model:Model$1,Axis:Axis$1,innerDrawElementOnCanvas:brushSingle,zrender,matrix,vector,zrUtil:util$1,color,helper,number,time,graphic,format,util,List:SeriesData$1,ComponentModel:ComponentModel$1,ComponentView:ComponentView$1,SeriesModel:SeriesModel$1,ChartView:ChartView$1,extendComponentModel,extendComponentView,extendSeriesModel,extendChartView},Symbol.toStringTag,{value:"Module"}));const components={Copyright,RichEditor,DialogSelect,ItemSelect,AttachmentUpload,ImageUpload,FileUpload,ViewForm,ViewTable,ViewChart,ModalForm,ModalTable,FormSetting,FormSettingLayout,TableSetting,ModalFormFilter,ModalFormSort,Shortcut,NoticeList,iLink:Link},install=function(a){install.installed||(window&&(window.$t=i18n$1.global.t),a.use(store),a.use(i18n$1),a.use(ViewUIPlus__default.default,{i18n:i18n$1}),a.use(plugins$1),a.mixin(mixinApp),Object.keys(components).forEach(r=>{a.component(r,components[r])}),a.directive("focus",focus),a.directive("tab-hide",tabHide),a.config.globalProperties.$echarts=echarts)},API={install},files={"./pages/account/login.vue":__glob_44_0,"./pages/common/home.vue":__glob_44_1,"./pages/common/task-form.vue":__glob_44_2,"./pages/common/todo.vue":__glob_44_3,"./pages/system/apiLog.vue":__glob_44_4,"./pages/system/applicationType.vue":__glob_44_5,"./pages/system/customPage.vue":__glob_44_6,"./pages/system/customTable.vue":__glob_44_7,"./pages/system/dict.vue":__glob_44_8,"./pages/system/dictType.vue":__glob_44_9,"./pages/system/entityView.vue":__glob_44_10,"./pages/system/extendColumn.vue":__glob_44_11,"./pages/system/formView.vue":__glob_44_12,"./pages/system/i18nText.vue":__glob_44_13,"./pages/system/log.vue":__glob_44_14,"./pages/system/notice.vue":__glob_44_15,"./pages/system/openApi.vue":__glob_44_16,"./pages/system/openUser.vue":__glob_44_17,"./pages/system/organization.vue":__glob_44_18,"./pages/system/organizationType.vue":__glob_44_19,"./pages/system/permission.vue":__glob_44_20,"./pages/system/planJob.vue":__glob_44_21,"./pages/system/printTemplate.vue":__glob_44_22,"./pages/system/process.vue":__glob_44_23,"./pages/system/processType.vue":__glob_44_24,"./pages/system/role.vue":__glob_44_25,"./pages/system/rolePropertyEdit.vue":__glob_44_26,"./pages/system/sequenceSetting.vue":__glob_44_27,"./pages/system/systemData.vue":__glob_44_28,"./pages/system/tableView.vue":__glob_44_29,"./pages/system/taskQueue.vue":__glob_44_30,"./pages/system/user.vue":__glob_44_31,"./pages/template/processPage.vue":__glob_44_32,"./pages/template/reportPage.vue":__glob_44_33,"./pages/template/viewPage.vue":__glob_44_34,"./pages/system/error/404.vue":__glob_44_35},pages={};Object.keys(files).forEach(a=>{pages[a.replace(/(\.\/pages\/)/g,"")]=files[a].default});const created=async a=>{await store.dispatch("admin/i18n/load",a),store.commit("admin/menu/setHeader",menuHeader),store.dispatch("admin/account/load"),store.dispatch("admin/layout/listenFullscreen")},routeChanged=a=>{store.dispatch("admin/menu/setMenuList",a)};exports.App=App,exports.applicationApi=applicationApi,exports.basicLayout=index,exports.createRouter=create$3,exports.created=created,exports.customModelApi=customModelApi,exports.dataSourceApi=dataSourceApi,exports.default=API,exports.i18n=i18n$1,exports.lodop=lodop,exports.mixinPage=mixinPage,exports.modelApi=modelApi,exports.pages=pages,exports.request=service,exports.routeChanged=routeChanged,exports.setting=Setting,exports.store=store,exports.taskApi=taskApi,exports.util=util$2,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
224
+ `||p==="")){var h=c.isSelected(p);l.hasOwnProperty(p)?l[p]=l[p]&&h:l[p]=h}})}),a==="allSelect"||a==="inverseSelect"?{selected:l}:{name:r.name,selected:l}}function installLegendAction(a){a.registerAction("legendToggleSelect","legendselectchanged",curry$1(legendSelectActionHandler,"toggleSelected")),a.registerAction("legendAllSelect","legendselectall",curry$1(legendSelectActionHandler,"allSelect")),a.registerAction("legendInverseSelect","legendinverseselect",curry$1(legendSelectActionHandler,"inverseSelect")),a.registerAction("legendSelect","legendselected",curry$1(legendSelectActionHandler,"select")),a.registerAction("legendUnSelect","legendunselected",curry$1(legendSelectActionHandler,"unSelect"))}function install$c(a){a.registerComponentModel(LegendModel$1),a.registerComponentView(LegendView$1),a.registerProcessor(a.PRIORITY.PROCESSOR.SERIES_FILTER,legendFilter),a.registerSubTypeDefaulter("legend",function(){return"plain"}),installLegendAction(a)}var ScrollableLegendModel=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o}return r.prototype.setScrollDataIndex=function(o){this.option.scrollDataIndex=o},r.prototype.init=function(o,l,s){var u=getLayoutParams(o);a.prototype.init.call(this,o,l,s),mergeAndNormalizeLayoutParams(this,o,u)},r.prototype.mergeOption=function(o,l){a.prototype.mergeOption.call(this,o,l),mergeAndNormalizeLayoutParams(this,this.option,o)},r.type="legend.scroll",r.defaultOption=inheritDefaultOption(LegendModel$1.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),r}(LegendModel$1);function mergeAndNormalizeLayoutParams(a,r,o){var l=a.getOrient(),s=[1,1];s[l.index]=0,mergeLayoutParam(r,o,{type:"box",ignoreSize:!!s})}var ScrollableLegendModel$1=ScrollableLegendModel,Group=Group$4,WH=["width","height"],XY=["x","y"],ScrollableLegendView=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o.newlineDisabled=!0,o._currentIndex=0,o}return r.prototype.init=function(){a.prototype.init.call(this),this.group.add(this._containerGroup=new Group),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Group)},r.prototype.resetInner=function(){a.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},r.prototype.renderInner=function(o,l,s,u,c,d,f){var p=this;a.prototype.renderInner.call(this,o,l,s,u,c,d,f);var h=this._controllerGroup,v=l.get("pageIconSize",!0),g=isArray$1(v)?v:[v,v];y("pagePrev",0);var $=l.getModel("pageTextStyle");h.add(new ZRText$1({name:"pageText",style:{text:"xx/xx",fill:$.getTextColor(),font:$.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),y("pageNext",1);function y(x,w){var S=x+"DataIndex",C=createIcon(l.get("pageIcons",!0)[l.getOrient().name][w],{onclick:bind$1(p._pageGo,p,S,l,u)},{x:-g[0]/2,y:-g[1]/2,width:g[0],height:g[1]});C.name=x,h.add(C)}},r.prototype.layoutInner=function(o,l,s,u,c,d){var f=this.getSelectorGroup(),p=o.getOrient().index,h=WH[p],v=XY[p],g=WH[1-p],$=XY[1-p];c&&box("horizontal",f,o.get("selectorItemGap",!0));var y=o.get("selectorButtonGap",!0),x=f.getBoundingRect(),w=[-x.x,-x.y],S=clone$4(s);c&&(S[h]=s[h]-x[h]-y);var C=this._layoutContentAndController(o,u,S,p,h,g,$,v);if(c){if(d==="end")w[p]+=C[h]+y;else{var A=x[h]+y;w[p]-=A,C[v]-=A}C[h]+=x[h]+y,w[1-p]+=C[$]+C[g]/2-x[g]/2,C[g]=Math.max(C[g],x[g]),C[$]=Math.min(C[$],x[$]+w[1-p]),f.x=w[0],f.y=w[1],f.markRedraw()}return C},r.prototype._layoutContentAndController=function(o,l,s,u,c,d,f,p){var h=this.getContentGroup(),v=this._containerGroup,g=this._controllerGroup;box(o.get("orient"),h,o.get("itemGap"),u?s.width:null,u?null:s.height),box("horizontal",g,o.get("pageButtonItemGap",!0));var $=h.getBoundingRect(),y=g.getBoundingRect(),x=this._showController=$[c]>s[c],w=[-$.x,-$.y];l||(w[u]=h[p]);var S=[0,0],C=[-y.x,-y.y],A=retrieve2(o.get("pageButtonGap",!0),o.get("itemGap",!0));if(x){var T=o.get("pageButtonPosition",!0);T==="end"?C[u]+=s[c]-y[c]:S[u]+=y[c]+A}C[1-u]+=$[d]/2-y[d]/2,h.setPosition(w),v.setPosition(S),g.setPosition(C);var I={x:0,y:0};if(I[c]=x?s[c]:$[c],I[d]=Math.max($[d],y[d]),I[f]=Math.min(0,y[f]+C[1-u]),v.__rectSize=s[c],x){var D={x:0,y:0};D[c]=Math.max(s[c]-y[c]-A,0),D[d]=I[d],v.setClipPath(new Rect$3({shape:D})),v.__rectSize=D[c]}else g.eachChild(function(L){L.attr({invisible:!0,silent:!0})});var M=this._getPageInfo(o);return M.pageIndex!=null&&updateProps$1(h,{x:M.contentPosition[0],y:M.contentPosition[1]},x?o:null),this._updatePageInfoView(o,M),I},r.prototype._pageGo=function(o,l,s){var u=this._getPageInfo(l)[o];u!=null&&s.dispatchAction({type:"legendScroll",scrollDataIndex:u,legendId:l.id})},r.prototype._updatePageInfoView=function(o,l){var s=this._controllerGroup;each$f(["pagePrev","pageNext"],function(h){var v=h+"DataIndex",g=l[v]!=null,$=s.childOfName(h);$&&($.setStyle("fill",g?o.get("pageIconColor",!0):o.get("pageIconInactiveColor",!0)),$.cursor=g?"pointer":"default")});var u=s.childOfName("pageText"),c=o.get("pageFormatter"),d=l.pageIndex,f=d!=null?d+1:0,p=l.pageCount;u&&c&&u.setStyle("text",isString(c)?c.replace("{current}",f==null?"":f+"").replace("{total}",p==null?"":p+""):c({current:f,total:p}))},r.prototype._getPageInfo=function(o){var l=o.get("scrollDataIndex",!0),s=this.getContentGroup(),u=this._containerGroup.__rectSize,c=o.getOrient().index,d=WH[c],f=XY[c],p=this._findTargetItemIndex(l),h=s.children(),v=h[p],g=h.length,$=g?1:0,y={contentPosition:[s.x,s.y],pageCount:$,pageIndex:$-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!v)return y;var x=T(v);y.contentPosition[c]=-x.s;for(var w=p+1,S=x,C=x,A=null;w<=g;++w)A=T(h[w]),(!A&&C.e>S.s+u||A&&!I(A,S.s))&&(C.i>S.i?S=C:S=A,S&&(y.pageNextDataIndex==null&&(y.pageNextDataIndex=S.i),++y.pageCount)),C=A;for(var w=p-1,S=x,C=x,A=null;w>=-1;--w)A=T(h[w]),(!A||!I(C,A.s))&&S.i<C.i&&(C=S,y.pagePrevDataIndex==null&&(y.pagePrevDataIndex=S.i),++y.pageCount,++y.pageIndex),S=A;return y;function T(D){if(D){var M=D.getBoundingRect(),L=M[f]+D[f];return{s:L,e:L+M[d],i:D.__legendDataIndex}}}function I(D,M){return D.e>=M&&D.s<=M+u}},r.prototype._findTargetItemIndex=function(o){if(!this._showController)return 0;var l,s=this.getContentGroup(),u;return s.eachChild(function(c,d){var f=c.__legendDataIndex;u==null&&f!=null&&(u=d),f===o&&(l=d)}),l!=null?l:u},r.type="legend.scroll",r}(LegendView$1),ScrollableLegendView$1=ScrollableLegendView;function installScrollableLegendAction(a){a.registerAction("legendScroll","legendscroll",function(r,o){var l=r.scrollDataIndex;l!=null&&o.eachComponent({mainType:"legend",subType:"scroll",query:r},function(s){s.setScrollDataIndex(l)})})}function install$b(a){use(install$c),a.registerComponentModel(ScrollableLegendModel$1),a.registerComponentView(ScrollableLegendView$1),installScrollableLegendAction(a)}function install$a(a){use(install$c),use(install$b)}var InsideZoomModel=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o}return r.type="dataZoom.inside",r.defaultOption=inheritDefaultOption(DataZoomModel$1.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),r}(DataZoomModel$1),InsideZoomModel$1=InsideZoomModel,inner$1=makeInner();function setViewInfoToCoordSysRecord(a,r,o){inner$1(a).coordSysRecordMap.each(function(l){var s=l.dataZoomInfoMap.get(r.uid);s&&(s.getRange=o)})}function disposeCoordSysRecordIfNeeded(a,r){for(var o=inner$1(a).coordSysRecordMap,l=o.keys(),s=0;s<l.length;s++){var u=l[s],c=o.get(u),d=c.dataZoomInfoMap;if(d){var f=r.uid,p=d.get(f);p&&(d.removeKey(f),d.keys().length||disposeCoordSysRecord(o,c))}}}function disposeCoordSysRecord(a,r){if(r){a.removeKey(r.model.uid);var o=r.controller;o&&o.dispose()}}function createCoordSysRecord(a,r){var o={model:r,containsPoint:curry$1(containsPoint,r),dispatchAction:curry$1(dispatchAction,a),dataZoomInfoMap:null,controller:null},l=o.controller=new RoamController$1(a.getZr());return each$f(["pan","zoom","scrollMove"],function(s){l.on(s,function(u){var c=[];o.dataZoomInfoMap.each(function(d){if(!!u.isAvailableBehavior(d.model.option)){var f=(d.getRange||{})[s],p=f&&f(d.dzReferCoordSysInfo,o.model.mainType,o.controller,u);!d.model.get("disabled",!0)&&p&&c.push({dataZoomId:d.model.id,start:p[0],end:p[1]})}}),c.length&&o.dispatchAction(c)})}),o}function dispatchAction(a,r){a.isDisposed()||a.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:r})}function containsPoint(a,r,o,l){return a.coordinateSystem.containPoint([o,l])}function mergeControllerParams(a){var r,o="type_",l={type_true:2,type_move:1,type_false:0,type_undefined:-1},s=!0;return a.each(function(u){var c=u.model,d=c.get("disabled",!0)?!1:c.get("zoomLock",!0)?"move":!0;l[o+d]>l[o+r]&&(r=d),s=s&&c.get("preventDefaultMouseMove",!0)}),{controlType:r,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!s}}}function installDataZoomRoamProcessor(a){a.registerProcessor(a.PRIORITY.PROCESSOR.FILTER,function(r,o){var l=inner$1(o),s=l.coordSysRecordMap||(l.coordSysRecordMap=createHashMap());s.each(function(u){u.dataZoomInfoMap=null}),r.eachComponent({mainType:"dataZoom",subType:"inside"},function(u){var c=collectReferCoordSysModelInfo(u);each$f(c.infoList,function(d){var f=d.model.uid,p=s.get(f)||s.set(f,createCoordSysRecord(o,d.model)),h=p.dataZoomInfoMap||(p.dataZoomInfoMap=createHashMap());h.set(u.uid,{dzReferCoordSysInfo:d,model:u,getRange:null})})}),s.each(function(u){var c=u.controller,d,f=u.dataZoomInfoMap;if(f){var p=f.keys()[0];p!=null&&(d=f.get(p))}if(!d){disposeCoordSysRecord(s,u);return}var h=mergeControllerParams(f);c.enable(h.controlType,h.opt),c.setPointerChecker(u.containsPoint),createOrUpdate(u,"dispatchAction",d.model.get("throttle",!0),"fixRate")})})}var InsideZoomView=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type="dataZoom.inside",o}return r.prototype.render=function(o,l,s){if(a.prototype.render.apply(this,arguments),o.noTarget()){this._clear();return}this.range=o.getPercentRange(),setViewInfoToCoordSysRecord(s,o,{pan:bind$1(getRangeHandlers.pan,this),zoom:bind$1(getRangeHandlers.zoom,this),scrollMove:bind$1(getRangeHandlers.scrollMove,this)})},r.prototype.dispose=function(){this._clear(),a.prototype.dispose.apply(this,arguments)},r.prototype._clear=function(){disposeCoordSysRecordIfNeeded(this.api,this.dataZoomModel),this.range=null},r.type="dataZoom.inside",r}(DataZoomView$1),getRangeHandlers={zoom:function(a,r,o,l){var s=this.range,u=s.slice(),c=a.axisModels[0];if(!!c){var d=getDirectionInfo[r](null,[l.originX,l.originY],c,o,a),f=(d.signal>0?d.pixelStart+d.pixelLength-d.pixel:d.pixel-d.pixelStart)/d.pixelLength*(u[1]-u[0])+u[0],p=Math.max(1/l.scale,0);u[0]=(u[0]-f)*p+f,u[1]=(u[1]-f)*p+f;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(sliderMove(0,u,[0,100],0,h.minSpan,h.maxSpan),this.range=u,s[0]!==u[0]||s[1]!==u[1])return u}},pan:makeMover(function(a,r,o,l,s,u){var c=getDirectionInfo[l]([u.oldX,u.oldY],[u.newX,u.newY],r,s,o);return c.signal*(a[1]-a[0])*c.pixel/c.pixelLength}),scrollMove:makeMover(function(a,r,o,l,s,u){var c=getDirectionInfo[l]([0,0],[u.scrollDelta,u.scrollDelta],r,s,o);return c.signal*(a[1]-a[0])*u.scrollDelta})};function makeMover(a){return function(r,o,l,s){var u=this.range,c=u.slice(),d=r.axisModels[0];if(!!d){var f=a(c,d,r,o,l,s);if(sliderMove(f,c,[0,100],"all"),this.range=c,u[0]!==c[0]||u[1]!==c[1])return c}}}var getDirectionInfo={grid:function(a,r,o,l,s){var u=o.axis,c={},d=s.model.coordinateSystem.getRect();return a=a||[0,0],u.dim==="x"?(c.pixel=r[0]-a[0],c.pixelLength=d.width,c.pixelStart=d.x,c.signal=u.inverse?1:-1):(c.pixel=r[1]-a[1],c.pixelLength=d.height,c.pixelStart=d.y,c.signal=u.inverse?-1:1),c},polar:function(a,r,o,l,s){var u=o.axis,c={},d=s.model.coordinateSystem,f=d.getRadiusAxis().getExtent(),p=d.getAngleAxis().getExtent();return a=a?d.pointToCoord(a):[0,0],r=d.pointToCoord(r),o.mainType==="radiusAxis"?(c.pixel=r[0]-a[0],c.pixelLength=f[1]-f[0],c.pixelStart=f[0],c.signal=u.inverse?1:-1):(c.pixel=r[1]-a[1],c.pixelLength=p[1]-p[0],c.pixelStart=p[0],c.signal=u.inverse?-1:1),c},singleAxis:function(a,r,o,l,s){var u=o.axis,c=s.model.coordinateSystem.getRect(),d={};return a=a||[0,0],u.orient==="horizontal"?(d.pixel=r[0]-a[0],d.pixelLength=c.width,d.pixelStart=c.x,d.signal=u.inverse?1:-1):(d.pixel=r[1]-a[1],d.pixelLength=c.height,d.pixelStart=c.y,d.signal=u.inverse?-1:1),d}},InsideZoomView$1=InsideZoomView;function install$9(a){installCommon$1(a),a.registerComponentModel(InsideZoomModel$1),a.registerComponentView(InsideZoomView$1),installDataZoomRoamProcessor(a)}var SliderZoomModel=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o}return r.type="dataZoom.slider",r.layoutMode="box",r.defaultOption=inheritDefaultOption(DataZoomModel$1.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),r}(DataZoomModel$1),SliderZoomModel$1=SliderZoomModel,Rect=Rect$3,DEFAULT_LOCATION_EDGE_GAP=7,DEFAULT_FRAME_BORDER_WIDTH=1,DEFAULT_FILLER_SIZE=30,DEFAULT_MOVE_HANDLE_SIZE=7,HORIZONTAL="horizontal",VERTICAL="vertical",LABEL_GAP=5,SHOW_DATA_SHADOW_SERIES_TYPE=["line","bar","candlestick","scatter"],REALTIME_ANIMATION_CONFIG={easing:"cubicOut",duration:100,delay:0},SliderZoomView=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o._displayables={},o}return r.prototype.init=function(o,l){this.api=l,this._onBrush=bind$1(this._onBrush,this),this._onBrushEnd=bind$1(this._onBrushEnd,this)},r.prototype.render=function(o,l,s,u){if(a.prototype.render.apply(this,arguments),createOrUpdate(this,"_dispatchZoomAction",o.get("throttle"),"fixRate"),this._orient=o.getOrient(),o.get("show")===!1){this.group.removeAll();return}if(o.noTarget()){this._clear(),this.group.removeAll();return}(!u||u.type!=="dataZoom"||u.from!==this.uid)&&this._buildView(),this._updateView()},r.prototype.dispose=function(){this._clear(),a.prototype.dispose.apply(this,arguments)},r.prototype._clear=function(){clear$1(this,"_dispatchZoomAction");var o=this.api.getZr();o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)},r.prototype._buildView=function(){var o=this.group;o.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var l=this._displayables.sliderGroup=new Group$4;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),o.add(l),this._positionGroup()},r.prototype._resetLocation=function(){var o=this.dataZoomModel,l=this.api,s=o.get("brushSelect"),u=s?DEFAULT_MOVE_HANDLE_SIZE:0,c=this._findCoordRect(),d={width:l.getWidth(),height:l.getHeight()},f=this._orient===HORIZONTAL?{right:d.width-c.x-c.width,top:d.height-DEFAULT_FILLER_SIZE-DEFAULT_LOCATION_EDGE_GAP-u,width:c.width,height:DEFAULT_FILLER_SIZE}:{right:DEFAULT_LOCATION_EDGE_GAP,top:c.y,width:DEFAULT_FILLER_SIZE,height:c.height},p=getLayoutParams(o.option);each$f(["right","top","width","height"],function(v){p[v]==="ph"&&(p[v]=f[v])});var h=getLayoutRect(p,d);this._location={x:h.x,y:h.y},this._size=[h.width,h.height],this._orient===VERTICAL&&this._size.reverse()},r.prototype._positionGroup=function(){var o=this.group,l=this._location,s=this._orient,u=this.dataZoomModel.getFirstTargetAxisModel(),c=u&&u.get("inverse"),d=this._displayables.sliderGroup,f=(this._dataShadowInfo||{}).otherAxisInverse;d.attr(s===HORIZONTAL&&!c?{scaleY:f?1:-1,scaleX:1}:s===HORIZONTAL&&c?{scaleY:f?1:-1,scaleX:-1}:s===VERTICAL&&!c?{scaleY:f?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:f?-1:1,scaleX:-1,rotation:Math.PI/2});var p=o.getBoundingRect([d]);o.x=l.x-p.x,o.y=l.y-p.y,o.markRedraw()},r.prototype._getViewExtent=function(){return[0,this._size[0]]},r.prototype._renderBackground=function(){var o=this.dataZoomModel,l=this._size,s=this._displayables.sliderGroup,u=o.get("brushSelect");s.add(new Rect({silent:!0,shape:{x:0,y:0,width:l[0],height:l[1]},style:{fill:o.get("backgroundColor")},z2:-40}));var c=new Rect({shape:{x:0,y:0,width:l[0],height:l[1]},style:{fill:"transparent"},z2:0,onclick:bind$1(this._onClickPanel,this)}),d=this.api.getZr();u?(c.on("mousedown",this._onBrushStart,this),c.cursor="crosshair",d.on("mousemove",this._onBrush),d.on("mouseup",this._onBrushEnd)):(d.off("mousemove",this._onBrush),d.off("mouseup",this._onBrushEnd)),s.add(c)},r.prototype._renderDataShadow=function(){var o=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!o)return;var l=this._size,s=this._shadowSize||[],u=o.series,c=u.getRawData(),d=u.getShadowDim?u.getShadowDim():o.otherDim;if(d==null)return;var f=this._shadowPolygonPts,p=this._shadowPolylinePts;if(c!==this._shadowData||d!==this._shadowDim||l[0]!==s[0]||l[1]!==s[1]){var h=c.getDataExtent(d),v=(h[1]-h[0])*.3;h=[h[0]-v,h[1]+v];var g=[0,l[1]],$=[0,l[0]],y=[[l[0],0],[0,0]],x=[],w=$[1]/(c.count()-1),S=0,C=Math.round(c.count()/l[0]),A;c.each([d],function(L,N){if(C>0&&N%C){S+=w;return}var V=L==null||isNaN(L)||L==="",R=V?0:linearMap$2(L,h,g,!0);V&&!A&&N?(y.push([y[y.length-1][0],0]),x.push([x[x.length-1][0],0])):!V&&A&&(y.push([S,0]),x.push([S,0])),y.push([S,R]),x.push([S,R]),S+=w,A=V}),f=this._shadowPolygonPts=y,p=this._shadowPolylinePts=x}this._shadowData=c,this._shadowDim=d,this._shadowSize=[l[0],l[1]];var T=this.dataZoomModel;function I(L){var N=T.getModel(L?"selectedDataBackground":"dataBackground"),V=new Group$4,R=new Polygon$1({shape:{points:f},segmentIgnoreThreshold:1,style:N.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new Polyline$3({shape:{points:p},segmentIgnoreThreshold:1,style:N.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return V.add(R),V.add(P),V}for(var D=0;D<3;D++){var M=I(D===1);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}},r.prototype._prepareDataShadowInfo=function(){var o=this.dataZoomModel,l=o.get("showDataShadow");if(l!==!1){var s,u=this.ecModel;return o.eachTargetAxis(function(c,d){var f=o.getAxisProxy(c,d).getTargetSeriesModels();each$f(f,function(p){if(!s&&!(l!==!0&&indexOf(SHOW_DATA_SHADOW_SERIES_TYPE,p.get("type"))<0)){var h=u.getComponent(getAxisMainType(c),d).axis,v=getOtherDim(c),g,$=p.coordinateSystem;v!=null&&$.getOtherAxis&&(g=$.getOtherAxis(h).inverse),v=p.getData().mapDimension(v),s={thisAxis:h,series:p,thisDim:c,otherDim:v,otherAxisInverse:g}}},this)},this),s}},r.prototype._renderHandle=function(){var o=this.group,l=this._displayables,s=l.handles=[null,null],u=l.handleLabels=[null,null],c=this._displayables.sliderGroup,d=this._size,f=this.dataZoomModel,p=this.api,h=f.get("borderRadius")||0,v=f.get("brushSelect"),g=l.filler=new Rect({silent:v,style:{fill:f.get("fillerColor")},textConfig:{position:"inside"}});c.add(g),c.add(new Rect({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:d[0],height:d[1],r:h},style:{stroke:f.get("dataBackgroundColor")||f.get("borderColor"),lineWidth:DEFAULT_FRAME_BORDER_WIDTH,fill:"rgba(0,0,0,0)"}})),each$f([0,1],function(A){var T=f.get("handleIcon");!symbolBuildProxies[T]&&T.indexOf("path://")<0&&T.indexOf("image://")<0&&(T="path://"+T);var I=createSymbol$1(T,-1,0,2,2,null,!0);I.attr({cursor:getCursor$1(this._orient),draggable:!0,drift:bind$1(this._onDragMove,this,A),ondragend:bind$1(this._onDragEnd,this),onmouseover:bind$1(this._showDataInfo,this,!0),onmouseout:bind$1(this._showDataInfo,this,!1),z2:5});var D=I.getBoundingRect(),M=f.get("handleSize");this._handleHeight=parsePercent(M,this._size[1]),this._handleWidth=D.width/D.height*this._handleHeight,I.setStyle(f.getModel("handleStyle").getItemStyle()),I.style.strokeNoScale=!0,I.rectHover=!0,I.ensureState("emphasis").style=f.getModel(["emphasis","handleStyle"]).getItemStyle(),enableHoverEmphasis(I);var L=f.get("handleColor");L!=null&&(I.style.fill=L),c.add(s[A]=I);var N=f.getModel("textStyle");o.add(u[A]=new ZRText$1({silent:!0,invisible:!0,style:createTextStyle$1(N,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:N.getTextColor(),font:N.getFont()}),z2:10}))},this);var $=g;if(v){var y=parsePercent(f.get("moveHandleSize"),d[1]),x=l.moveHandle=new Rect$3({style:f.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:d[1]-.5,height:y}}),w=y*.8,S=l.moveHandleIcon=createSymbol$1(f.get("moveHandleIcon"),-w/2,-w/2,w,w,"#fff",!0);S.silent=!0,S.y=d[1]+y/2-.5,x.ensureState("emphasis").style=f.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var C=Math.min(d[1]/2,Math.max(y,10));$=l.moveZone=new Rect$3({invisible:!0,shape:{y:d[1]-C,height:y+C}}),$.on("mouseover",function(){p.enterEmphasis(x)}).on("mouseout",function(){p.leaveEmphasis(x)}),c.add(x),c.add(S),c.add($)}$.attr({draggable:!0,cursor:getCursor$1(this._orient),drift:bind$1(this._onDragMove,this,"all"),ondragstart:bind$1(this._showDataInfo,this,!0),ondragend:bind$1(this._onDragEnd,this),onmouseover:bind$1(this._showDataInfo,this,!0),onmouseout:bind$1(this._showDataInfo,this,!1)})},r.prototype._resetInterval=function(){var o=this._range=this.dataZoomModel.getPercentRange(),l=this._getViewExtent();this._handleEnds=[linearMap$2(o[0],[0,100],l,!0),linearMap$2(o[1],[0,100],l,!0)]},r.prototype._updateInterval=function(o,l){var s=this.dataZoomModel,u=this._handleEnds,c=this._getViewExtent(),d=s.findRepresentativeAxisProxy().getMinMaxSpan(),f=[0,100];sliderMove(l,u,c,s.get("zoomLock")?"all":o,d.minSpan!=null?linearMap$2(d.minSpan,f,c,!0):null,d.maxSpan!=null?linearMap$2(d.maxSpan,f,c,!0):null);var p=this._range,h=this._range=asc$2([linearMap$2(u[0],c,f,!0),linearMap$2(u[1],c,f,!0)]);return!p||p[0]!==h[0]||p[1]!==h[1]},r.prototype._updateView=function(o){var l=this._displayables,s=this._handleEnds,u=asc$2(s.slice()),c=this._size;each$f([0,1],function($){var y=l.handles[$],x=this._handleHeight;y.attr({scaleX:x/2,scaleY:x/2,x:s[$]+($?-1:1),y:c[1]/2-x/2})},this),l.filler.setShape({x:u[0],y:0,width:u[1]-u[0],height:c[1]});var d={x:u[0],width:u[1]-u[0]};l.moveHandle&&(l.moveHandle.setShape(d),l.moveZone.setShape(d),l.moveZone.getBoundingRect(),l.moveHandleIcon&&l.moveHandleIcon.attr("x",d.x+d.width/2));for(var f=l.dataShadowSegs,p=[0,u[0],u[1],c[0]],h=0;h<f.length;h++){var v=f[h],g=v.getClipPath();g||(g=new Rect$3,v.setClipPath(g)),g.setShape({x:p[h],y:0,width:p[h+1]-p[h],height:c[1]})}this._updateDataInfo(o)},r.prototype._updateDataInfo=function(o){var l=this.dataZoomModel,s=this._displayables,u=s.handleLabels,c=this._orient,d=["",""];if(l.get("showDetail")){var f=l.findRepresentativeAxisProxy();if(f){var p=f.getAxisModel().axis,h=this._range,v=o?f.calculateDataWindow({start:h[0],end:h[1]}).valueWindow:f.getDataValueWindow();d=[this._formatLabel(v[0],p),this._formatLabel(v[1],p)]}}var g=asc$2(this._handleEnds.slice());$.call(this,0),$.call(this,1);function $(y){var x=getTransform$1(s.handles[y].parent,this.group),w=transformDirection(y===0?"right":"left",x),S=this._handleWidth/2+LABEL_GAP,C=applyTransform([g[y]+(y===0?-S:S),this._size[1]/2],x);u[y].setStyle({x:C[0],y:C[1],verticalAlign:c===HORIZONTAL?"middle":w,align:c===HORIZONTAL?w:"center",text:d[y]})}},r.prototype._formatLabel=function(o,l){var s=this.dataZoomModel,u=s.get("labelFormatter"),c=s.get("labelPrecision");(c==null||c==="auto")&&(c=l.getPixelPrecision());var d=o==null||isNaN(o)?"":l.type==="category"||l.type==="time"?l.scale.getLabel({value:Math.round(o)}):o.toFixed(Math.min(c,20));return isFunction(u)?u(o,d):isString(u)?u.replace("{value}",d):d},r.prototype._showDataInfo=function(o){o=this._dragging||o;var l=this._displayables,s=l.handleLabels;s[0].attr("invisible",!o),s[1].attr("invisible",!o),l.moveHandle&&this.api[o?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},r.prototype._onDragMove=function(o,l,s,u){this._dragging=!0,stop(u.event);var c=this._displayables.sliderGroup.getLocalTransform(),d=applyTransform([l,s],c,!0),f=this._updateInterval(o,d[0]),p=this.dataZoomModel.get("realtime");this._updateView(!p),f&&p&&this._dispatchZoomAction(!0)},r.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var o=this.dataZoomModel.get("realtime");!o&&this._dispatchZoomAction(!1)},r.prototype._onClickPanel=function(o){var l=this._size,s=this._displayables.sliderGroup.transformCoordToLocal(o.offsetX,o.offsetY);if(!(s[0]<0||s[0]>l[0]||s[1]<0||s[1]>l[1])){var u=this._handleEnds,c=(u[0]+u[1])/2,d=this._updateInterval("all",s[0]-c);this._updateView(),d&&this._dispatchZoomAction(!1)}},r.prototype._onBrushStart=function(o){var l=o.offsetX,s=o.offsetY;this._brushStart=new Point$1(l,s),this._brushing=!0,this._brushStartTime=+new Date},r.prototype._onBrushEnd=function(o){if(!!this._brushing){var l=this._displayables.brushRect;if(this._brushing=!1,!!l){l.attr("ignore",!0);var s=l.shape,u=+new Date;if(!(u-this._brushStartTime<200&&Math.abs(s.width)<5)){var c=this._getViewExtent(),d=[0,100];this._range=asc$2([linearMap$2(s.x,c,d,!0),linearMap$2(s.x+s.width,c,d,!0)]),this._handleEnds=[s.x,s.x+s.width],this._updateView(),this._dispatchZoomAction(!1)}}}},r.prototype._onBrush=function(o){this._brushing&&(stop(o.event),this._updateBrushRect(o.offsetX,o.offsetY))},r.prototype._updateBrushRect=function(o,l){var s=this._displayables,u=this.dataZoomModel,c=s.brushRect;c||(c=s.brushRect=new Rect({silent:!0,style:u.getModel("brushStyle").getItemStyle()}),s.sliderGroup.add(c)),c.attr("ignore",!1);var d=this._brushStart,f=this._displayables.sliderGroup,p=f.transformCoordToLocal(o,l),h=f.transformCoordToLocal(d.x,d.y),v=this._size;p[0]=Math.max(Math.min(v[0],p[0]),0),c.setShape({x:h[0],y:0,width:p[0]-h[0],height:v[1]})},r.prototype._dispatchZoomAction=function(o){var l=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:o?REALTIME_ANIMATION_CONFIG:null,start:l[0],end:l[1]})},r.prototype._findCoordRect=function(){var o,l=collectReferCoordSysModelInfo(this.dataZoomModel).infoList;if(!o&&l.length){var s=l[0].model.coordinateSystem;o=s.getRect&&s.getRect()}if(!o){var u=this.api.getWidth(),c=this.api.getHeight();o={x:u*.2,y:c*.2,width:u*.6,height:c*.6}}return o},r.type="dataZoom.slider",r}(DataZoomView$1);function getOtherDim(a){var r={x:"y",y:"x",radius:"angle",angle:"radius"};return r[a]}function getCursor$1(a){return a==="vertical"?"ns-resize":"ew-resize"}var SliderZoomView$1=SliderZoomView;function install$8(a){a.registerComponentModel(SliderZoomModel$1),a.registerComponentView(SliderZoomView$1),installCommon$1(a)}function install$7(a){use(install$9),use(install$8)}var visualDefault={get:function(a,r,o){var l=clone$4((defaultOption[a]||{})[r]);return o&&isArray$1(l)?l[l.length-1]:l}},defaultOption={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},visualDefault$1=visualDefault,mapVisual=VisualMapping$1.mapVisual,eachVisual=VisualMapping$1.eachVisual,isArray=isArray$1,each$2=each$f,asc=asc$2,linearMap$1=linearMap$2,VisualMapModel=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o.stateList=["inRange","outOfRange"],o.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],o.layoutMode={type:"box",ignoreSize:!0},o.dataBound=[-1/0,1/0],o.targetVisuals={},o.controllerVisuals={},o}return r.prototype.init=function(o,l,s){this.mergeDefaultAndTheme(o,s)},r.prototype.optionUpdated=function(o,l){var s=this.option;!l&&replaceVisualOption(s,o,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},r.prototype.resetVisual=function(o){var l=this.stateList;o=bind$1(o,this),this.controllerVisuals=createVisualMappings(this.option.controller,l,o),this.targetVisuals=createVisualMappings(this.option.target,l,o)},r.prototype.getItemSymbol=function(){return null},r.prototype.getTargetSeriesIndices=function(){var o=this.option.seriesIndex,l=[];return o==null||o==="all"?this.ecModel.eachSeries(function(s,u){l.push(u)}):l=normalizeToArray(o),l},r.prototype.eachTargetSeries=function(o,l){each$f(this.getTargetSeriesIndices(),function(s){var u=this.ecModel.getSeriesByIndex(s);u&&o.call(l,u)},this)},r.prototype.isTargetSeries=function(o){var l=!1;return this.eachTargetSeries(function(s){s===o&&(l=!0)}),l},r.prototype.formatValueText=function(o,l,s){var u=this.option,c=u.precision,d=this.dataBound,f=u.formatter,p;s=s||["<",">"],isArray$1(o)&&(o=o.slice(),p=!0);var h=l?o:p?[v(o[0]),v(o[1])]:v(o);if(isString(f))return f.replace("{value}",p?h[0]:h).replace("{value2}",p?h[1]:h);if(isFunction(f))return p?f(o[0],o[1]):f(o);if(p)return o[0]===d[0]?s[0]+" "+h[1]:o[1]===d[1]?s[1]+" "+h[0]:h[0]+" - "+h[1];return h;function v(g){return g===d[0]?"min":g===d[1]?"max":(+g).toFixed(Math.min(c,20))}},r.prototype.resetExtent=function(){var o=this.option,l=asc([o.min,o.max]);this._dataExtent=l},r.prototype.getDataDimensionIndex=function(o){var l=this.option.dimension;if(l!=null)return o.getDimensionIndex(l);for(var s=o.dimensions,u=s.length-1;u>=0;u--){var c=s[u],d=o.getDimensionInfo(c);if(!d.isCalculationCoord)return d.storeDimIndex}},r.prototype.getExtent=function(){return this._dataExtent.slice()},r.prototype.completeVisualOption=function(){var o=this.ecModel,l=this.option,s={inRange:l.inRange,outOfRange:l.outOfRange},u=l.target||(l.target={}),c=l.controller||(l.controller={});merge(u,s),merge(c,s);var d=this.isCategory();f.call(this,u),f.call(this,c),p.call(this,u,"inRange","outOfRange"),h.call(this,c);function f(v){isArray(l.color)&&!v.inRange&&(v.inRange={color:l.color.slice().reverse()}),v.inRange=v.inRange||{color:o.get("gradientColor")}}function p(v,g,$){var y=v[g],x=v[$];y&&!x&&(x=v[$]={},each$2(y,function(w,S){if(!!VisualMapping$1.isValidType(S)){var C=visualDefault$1.get(S,"inactive",d);C!=null&&(x[S]=C,S==="color"&&!x.hasOwnProperty("opacity")&&!x.hasOwnProperty("colorAlpha")&&(x.opacity=[0,0]))}}))}function h(v){var g=(v.inRange||{}).symbol||(v.outOfRange||{}).symbol,$=(v.inRange||{}).symbolSize||(v.outOfRange||{}).symbolSize,y=this.get("inactiveColor"),x=this.getItemSymbol(),w=x||"roundRect";each$2(this.stateList,function(S){var C=this.itemSize,A=v[S];A||(A=v[S]={color:d?y:[y]}),A.symbol==null&&(A.symbol=g&&clone$4(g)||(d?w:[w])),A.symbolSize==null&&(A.symbolSize=$&&clone$4($)||(d?C[0]:[C[0],C[0]])),A.symbol=mapVisual(A.symbol,function(D){return D==="none"?w:D});var T=A.symbolSize;if(T!=null){var I=-1/0;eachVisual(T,function(D){D>I&&(I=D)}),A.symbolSize=mapVisual(T,function(D){return linearMap$1(D,[0,I],[0,C[0]],!0)})}},this)}},r.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},r.prototype.isCategory=function(){return!!this.option.categories},r.prototype.setSelected=function(o){},r.prototype.getSelected=function(){return null},r.prototype.getValueState=function(o){return null},r.prototype.getVisualMeta=function(o){return null},r.type="visualMap",r.dependencies=["series"],r.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"}},r}(ComponentModel$1),VisualMapModel$1=VisualMapModel,DEFAULT_BAR_BOUND=[20,140],ContinuousModel=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o}return r.prototype.optionUpdated=function(o,l){a.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(s){s.mappingMethod="linear",s.dataExtent=this.getExtent()}),this._resetRange()},r.prototype.resetItemSize=function(){a.prototype.resetItemSize.apply(this,arguments);var o=this.itemSize;(o[0]==null||isNaN(o[0]))&&(o[0]=DEFAULT_BAR_BOUND[0]),(o[1]==null||isNaN(o[1]))&&(o[1]=DEFAULT_BAR_BOUND[1])},r.prototype._resetRange=function(){var o=this.getExtent(),l=this.option.range;!l||l.auto?(o.auto=1,this.option.range=o):isArray$1(l)&&(l[0]>l[1]&&l.reverse(),l[0]=Math.max(l[0],o[0]),l[1]=Math.min(l[1],o[1]))},r.prototype.completeVisualOption=function(){a.prototype.completeVisualOption.apply(this,arguments),each$f(this.stateList,function(o){var l=this.option.controller[o].symbolSize;l&&l[0]!==l[1]&&(l[0]=l[1]/3)},this)},r.prototype.setSelected=function(o){this.option.range=o.slice(),this._resetRange()},r.prototype.getSelected=function(){var o=this.getExtent(),l=asc$2((this.get("range")||[]).slice());return l[0]>o[1]&&(l[0]=o[1]),l[1]>o[1]&&(l[1]=o[1]),l[0]<o[0]&&(l[0]=o[0]),l[1]<o[0]&&(l[1]=o[0]),l},r.prototype.getValueState=function(o){var l=this.option.range,s=this.getExtent();return(l[0]<=s[0]||l[0]<=o)&&(l[1]>=s[1]||o<=l[1])?"inRange":"outOfRange"},r.prototype.findTargetDataIndices=function(o){var l=[];return this.eachTargetSeries(function(s){var u=[],c=s.getData();c.each(this.getDataDimensionIndex(c),function(d,f){o[0]<=d&&d<=o[1]&&u.push(f)},this),l.push({seriesId:s.id,dataIndex:u})},this),l},r.prototype.getVisualMeta=function(o){var l=getColorStopValues(this,"outOfRange",this.getExtent()),s=getColorStopValues(this,"inRange",this.option.range.slice()),u=[];function c($,y){u.push({value:$,color:o($,y)})}for(var d=0,f=0,p=s.length,h=l.length;f<h&&(!s.length||l[f]<=s[0]);f++)l[f]<s[d]&&c(l[f],"outOfRange");for(var v=1;d<p;d++,v=0)v&&u.length&&c(s[d],"outOfRange"),c(s[d],"inRange");for(var v=1;f<h;f++)(!s.length||s[s.length-1]<l[f])&&(v&&(u.length&&c(u[u.length-1].value,"outOfRange"),v=0),c(l[f],"outOfRange"));var g=u.length;return{stops:u,outerColors:[g?u[0].color:"transparent",g?u[g-1].color:"transparent"]}},r.type="visualMap.continuous",r.defaultOption=inheritDefaultOption(VisualMapModel$1.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),r}(VisualMapModel$1);function getColorStopValues(a,r,o){if(o[0]===o[1])return o.slice();for(var l=200,s=(o[1]-o[0])/l,u=o[0],c=[],d=0;d<=l&&u<o[1];d++)c.push(u),u+=s;return c.push(o[1]),c}var ContinuousModel$1=ContinuousModel,VisualMapView=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o.autoPositionValues={left:1,right:1,top:1,bottom:1},o}return r.prototype.init=function(o,l){this.ecModel=o,this.api=l},r.prototype.render=function(o,l,s,u){if(this.visualMapModel=o,o.get("show")===!1){this.group.removeAll();return}this.doRender(o,l,s,u)},r.prototype.renderBackground=function(o){var l=this.visualMapModel,s=normalizeCssArray(l.get("padding")||0),u=o.getBoundingRect();o.add(new Rect$3({z2:-1,silent:!0,shape:{x:u.x-s[3],y:u.y-s[0],width:u.width+s[3]+s[1],height:u.height+s[0]+s[2]},style:{fill:l.get("backgroundColor"),stroke:l.get("borderColor"),lineWidth:l.get("borderWidth")}}))},r.prototype.getControllerVisual=function(o,l,s){s=s||{};var u=s.forceState,c=this.visualMapModel,d={};if(l==="color"){var f=c.get("contentColor");d.color=f}function p($){return d[$]}function h($,y){d[$]=y}var v=c.controllerVisuals[u||c.getValueState(o)],g=VisualMapping$1.prepareVisualTypes(v);return each$f(g,function($){var y=v[$];s.convertOpacityToAlpha&&$==="opacity"&&($="colorAlpha",y=v.__alphaForOpacity),VisualMapping$1.dependsOn($,l)&&y&&y.applyVisual(o,p,h)}),d[l]},r.prototype.positionGroup=function(o){var l=this.visualMapModel,s=this.api;positionElement(o,l.getBoxLayoutParams(),{width:s.getWidth(),height:s.getHeight()})},r.prototype.doRender=function(o,l,s,u){},r.type="visualMap",r}(ComponentView$1),VisualMapView$1=VisualMapView,paramsSet=[["left","right","width"],["top","bottom","height"]];function getItemAlign(a,r,o){var l=a.option,s=l.align;if(s!=null&&s!=="auto")return s;for(var u={width:r.getWidth(),height:r.getHeight()},c=l.orient==="horizontal"?1:0,d=paramsSet[c],f=[0,null,10],p={},h=0;h<3;h++)p[paramsSet[1-c][h]]=f[h],p[d[h]]=h===2?o[0]:l[d[h]];var v=[["x","width",3],["y","height",0]][c],g=getLayoutRect(p,u,l.padding);return d[(g.margin[v[2]]||0)+g[v[0]]+g[v[1]]*.5<u[v[1]]*.5?0:1]}function makeHighDownBatch(a,r){return each$f(a||[],function(o){o.dataIndex!=null&&(o.dataIndexInside=o.dataIndex,o.dataIndex=null),o.highlightKey="visualMap"+(r?r.componentIndex:"")}),a}var linearMap=linearMap$2,each$1=each$f,mathMin=Math.min,mathMax=Math.max,HOVER_LINK_SIZE=12,HOVER_LINK_OUT=6,ContinuousView=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o._shapes={},o._dataInterval=[],o._handleEnds=[],o._hoverLinkDataIndices=[],o}return r.prototype.doRender=function(o,l,s,u){this._api=s,(!u||u.type!=="selectDataRange"||u.from!==this.uid)&&this._buildView()},r.prototype._buildView=function(){this.group.removeAll();var o=this.visualMapModel,l=this.group;this._orient=o.get("orient"),this._useHandle=o.get("calculable"),this._resetInterval(),this._renderBar(l);var s=o.get("text");this._renderEndsText(l,s,0),this._renderEndsText(l,s,1),this._updateView(!0),this.renderBackground(l),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(l)},r.prototype._renderEndsText=function(o,l,s){if(!!l){var u=l[1-s];u=u!=null?u+"":"";var c=this.visualMapModel,d=c.get("textGap"),f=c.itemSize,p=this._shapes.mainGroup,h=this._applyTransform([f[0]/2,s===0?-d:f[1]+d],p),v=this._applyTransform(s===0?"bottom":"top",p),g=this._orient,$=this.visualMapModel.textStyleModel;this.group.add(new ZRText$1({style:createTextStyle$1($,{x:h[0],y:h[1],verticalAlign:g==="horizontal"?"middle":v,align:g==="horizontal"?v:"center",text:u})}))}},r.prototype._renderBar=function(o){var l=this.visualMapModel,s=this._shapes,u=l.itemSize,c=this._orient,d=this._useHandle,f=getItemAlign(l,this.api,u),p=s.mainGroup=this._createBarGroup(f),h=new Group$4;p.add(h),h.add(s.outOfRange=createPolygon()),h.add(s.inRange=createPolygon(null,d?getCursor(this._orient):null,bind$1(this._dragHandle,this,"all",!1),bind$1(this._dragHandle,this,"all",!0))),h.setClipPath(new Rect$3({shape:{x:0,y:0,width:u[0],height:u[1],r:3}}));var v=l.textStyleModel.getTextRect("\u56FD"),g=mathMax(v.width,v.height);d&&(s.handleThumbs=[],s.handleLabels=[],s.handleLabelPoints=[],this._createHandle(l,p,0,u,g,c),this._createHandle(l,p,1,u,g,c)),this._createIndicator(l,p,u,g,c),o.add(p)},r.prototype._createHandle=function(o,l,s,u,c,d){var f=bind$1(this._dragHandle,this,s,!1),p=bind$1(this._dragHandle,this,s,!0),h=parsePercent$1(o.get("handleSize"),u[0]),v=createSymbol$1(o.get("handleIcon"),-h/2,-h/2,h,h,null,!0),g=getCursor(this._orient);v.attr({cursor:g,draggable:!0,drift:f,ondragend:p,onmousemove:function(S){stop(S.event)}}),v.x=u[0]/2,v.useStyle(o.getModel("handleStyle").getItemStyle()),v.setStyle({strokeNoScale:!0,strokeFirst:!0}),v.style.lineWidth*=2,v.ensureState("emphasis").style=o.getModel(["emphasis","handleStyle"]).getItemStyle(),setAsHighDownDispatcher(v,!0),l.add(v);var $=this.visualMapModel.textStyleModel,y=new ZRText$1({cursor:g,draggable:!0,drift:f,onmousemove:function(S){stop(S.event)},ondragend:p,style:createTextStyle$1($,{x:0,y:0,text:""})});y.ensureState("blur").style={opacity:.1},y.stateTransition={duration:200},this.group.add(y);var x=[h,0],w=this._shapes;w.handleThumbs[s]=v,w.handleLabelPoints[s]=x,w.handleLabels[s]=y},r.prototype._createIndicator=function(o,l,s,u,c){var d=parsePercent$1(o.get("indicatorSize"),s[0]),f=createSymbol$1(o.get("indicatorIcon"),-d/2,-d/2,d,d,null,!0);f.attr({cursor:"move",invisible:!0,silent:!0,x:s[0]/2});var p=o.getModel("indicatorStyle").getItemStyle();if(f instanceof ZRImage$1){var h=f.style;f.useStyle(extend({image:h.image,x:h.x,y:h.y,width:h.width,height:h.height},p))}else f.useStyle(p);l.add(f);var v=this.visualMapModel.textStyleModel,g=new ZRText$1({silent:!0,invisible:!0,style:createTextStyle$1(v,{x:0,y:0,text:""})});this.group.add(g);var $=[(c==="horizontal"?u/2:HOVER_LINK_OUT)+s[0]/2,0],y=this._shapes;y.indicator=f,y.indicatorLabel=g,y.indicatorLabelPoint=$,this._firstShowIndicator=!0},r.prototype._dragHandle=function(o,l,s,u){if(!!this._useHandle){if(this._dragging=!l,!l){var c=this._applyTransform([s,u],this._shapes.mainGroup,!0);this._updateInterval(o,c[1]),this._hideIndicator(),this._updateView()}l===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),l?!this._hovering&&this._clearHoverLinkToSeries():useHoverLinkOnHandle(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[o],!1)}},r.prototype._resetInterval=function(){var o=this.visualMapModel,l=this._dataInterval=o.getSelected(),s=o.getExtent(),u=[0,o.itemSize[1]];this._handleEnds=[linearMap(l[0],s,u,!0),linearMap(l[1],s,u,!0)]},r.prototype._updateInterval=function(o,l){l=l||0;var s=this.visualMapModel,u=this._handleEnds,c=[0,s.itemSize[1]];sliderMove(l,u,c,o,0);var d=s.getExtent();this._dataInterval=[linearMap(u[0],c,d,!0),linearMap(u[1],c,d,!0)]},r.prototype._updateView=function(o){var l=this.visualMapModel,s=l.getExtent(),u=this._shapes,c=[0,l.itemSize[1]],d=o?c:this._handleEnds,f=this._createBarVisual(this._dataInterval,s,d,"inRange"),p=this._createBarVisual(s,s,c,"outOfRange");u.inRange.setStyle({fill:f.barColor}).setShape("points",f.barPoints),u.outOfRange.setStyle({fill:p.barColor}).setShape("points",p.barPoints),this._updateHandle(d,f)},r.prototype._createBarVisual=function(o,l,s,u){var c={forceState:u,convertOpacityToAlpha:!0},d=this._makeColorGradient(o,c),f=[this.getControllerVisual(o[0],"symbolSize",c),this.getControllerVisual(o[1],"symbolSize",c)],p=this._createBarPoints(s,f);return{barColor:new LinearGradient$1(0,0,0,1,d),barPoints:p,handlesColor:[d[0].color,d[d.length-1].color]}},r.prototype._makeColorGradient=function(o,l){var s=100,u=[],c=(o[1]-o[0])/s;u.push({color:this.getControllerVisual(o[0],"color",l),offset:0});for(var d=1;d<s;d++){var f=o[0]+c*d;if(f>o[1])break;u.push({color:this.getControllerVisual(f,"color",l),offset:d/s})}return u.push({color:this.getControllerVisual(o[1],"color",l),offset:1}),u},r.prototype._createBarPoints=function(o,l){var s=this.visualMapModel.itemSize;return[[s[0]-l[0],o[0]],[s[0],o[0]],[s[0],o[1]],[s[0]-l[1],o[1]]]},r.prototype._createBarGroup=function(o){var l=this._orient,s=this.visualMapModel.get("inverse");return new Group$4(l==="horizontal"&&!s?{scaleX:o==="bottom"?1:-1,rotation:Math.PI/2}:l==="horizontal"&&s?{scaleX:o==="bottom"?-1:1,rotation:-Math.PI/2}:l==="vertical"&&!s?{scaleX:o==="left"?1:-1,scaleY:-1}:{scaleX:o==="left"?1:-1})},r.prototype._updateHandle=function(o,l){if(!!this._useHandle){var s=this._shapes,u=this.visualMapModel,c=s.handleThumbs,d=s.handleLabels,f=u.itemSize,p=u.getExtent();each$1([0,1],function(h){var v=c[h];v.setStyle("fill",l.handlesColor[h]),v.y=o[h];var g=linearMap(o[h],[0,f[1]],p,!0),$=this.getControllerVisual(g,"symbolSize");v.scaleX=v.scaleY=$/f[0],v.x=f[0]-$/2;var y=applyTransform(s.handleLabelPoints[h],getTransform$1(v,this.group));d[h].setStyle({x:y[0],y:y[1],text:u.formatValueText(this._dataInterval[h]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",s.mainGroup):"center"})},this)}},r.prototype._showIndicator=function(o,l,s,u){var c=this.visualMapModel,d=c.getExtent(),f=c.itemSize,p=[0,f[1]],h=this._shapes,v=h.indicator;if(!!v){v.attr("invisible",!1);var g={convertOpacityToAlpha:!0},$=this.getControllerVisual(o,"color",g),y=this.getControllerVisual(o,"symbolSize"),x=linearMap(o,d,p,!0),w=f[0]-y/2,S={x:v.x,y:v.y};v.y=x,v.x=w;var C=applyTransform(h.indicatorLabelPoint,getTransform$1(v,this.group)),A=h.indicatorLabel;A.attr("invisible",!1);var T=this._applyTransform("left",h.mainGroup),I=this._orient,D=I==="horizontal";A.setStyle({text:(s||"")+c.formatValueText(l),verticalAlign:D?T:"middle",align:D?"center":T});var M={x:w,y:x,style:{fill:$}},L={style:{x:C[0],y:C[1]}};if(c.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var N={duration:100,easing:"cubicInOut",additive:!0};v.x=S.x,v.y=S.y,v.animateTo(M,N),A.animateTo(L,N)}else v.attr(M),A.attr(L);this._firstShowIndicator=!1;var V=this._shapes.handleLabels;if(V)for(var R=0;R<V.length;R++)this._api.enterBlur(V[R])}},r.prototype._enableHoverLinkToSeries=function(){var o=this;this._shapes.mainGroup.on("mousemove",function(l){if(o._hovering=!0,!o._dragging){var s=o.visualMapModel.itemSize,u=o._applyTransform([l.offsetX,l.offsetY],o._shapes.mainGroup,!0,!0);u[1]=mathMin(mathMax(0,u[1]),s[1]),o._doHoverLinkToSeries(u[1],0<=u[0]&&u[0]<=s[0])}}).on("mouseout",function(){o._hovering=!1,!o._dragging&&o._clearHoverLinkToSeries()})},r.prototype._enableHoverLinkFromSeries=function(){var o=this.api.getZr();this.visualMapModel.option.hoverLink?(o.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),o.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},r.prototype._doHoverLinkToSeries=function(o,l){var s=this.visualMapModel,u=s.itemSize;if(!!s.option.hoverLink){var c=[0,u[1]],d=s.getExtent();o=mathMin(mathMax(c[0],o),c[1]);var f=getHalfHoverLinkSize(s,d,c),p=[o-f,o+f],h=linearMap(o,c,d,!0),v=[linearMap(p[0],c,d,!0),linearMap(p[1],c,d,!0)];p[0]<c[0]&&(v[0]=-1/0),p[1]>c[1]&&(v[1]=1/0),l&&(v[0]===-1/0?this._showIndicator(h,v[1],"< ",f):v[1]===1/0?this._showIndicator(h,v[0],"> ",f):this._showIndicator(h,h,"\u2248 ",f));var g=this._hoverLinkDataIndices,$=[];(l||useHoverLinkOnHandle(s))&&($=this._hoverLinkDataIndices=s.findTargetDataIndices(v));var y=compressBatches(g,$);this._dispatchHighDown("downplay",makeHighDownBatch(y[0],s)),this._dispatchHighDown("highlight",makeHighDownBatch(y[1],s))}},r.prototype._hoverLinkFromSeriesMouseOver=function(o){var l=o.target,s=this.visualMapModel;if(!(!l||getECData(l).dataIndex==null)){var u=getECData(l),c=this.ecModel.getSeriesByIndex(u.seriesIndex);if(!!s.isTargetSeries(c)){var d=c.getData(u.dataType),f=d.getStore().get(s.getDataDimensionIndex(d),u.dataIndex);isNaN(f)||this._showIndicator(f,f)}}},r.prototype._hideIndicator=function(){var o=this._shapes;o.indicator&&o.indicator.attr("invisible",!0),o.indicatorLabel&&o.indicatorLabel.attr("invisible",!0);var l=this._shapes.handleLabels;if(l)for(var s=0;s<l.length;s++)this._api.leaveBlur(l[s])},r.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var o=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",makeHighDownBatch(o,this.visualMapModel)),o.length=0},r.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var o=this.api.getZr();o.off("mouseover",this._hoverLinkFromSeriesMouseOver),o.off("mouseout",this._hideIndicator)},r.prototype._applyTransform=function(o,l,s,u){var c=getTransform$1(l,u?null:this.group);return isArray$1(o)?applyTransform(o,c,s):transformDirection(o,c,s)},r.prototype._dispatchHighDown=function(o,l){l&&l.length&&this.api.dispatchAction({type:o,batch:l})},r.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},r.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},r.type="visualMap.continuous",r}(VisualMapView$1);function createPolygon(a,r,o,l){return new Polygon$1({shape:{points:a},draggable:!!o,cursor:r,drift:o,onmousemove:function(s){stop(s.event)},ondragend:l})}function getHalfHoverLinkSize(a,r,o){var l=HOVER_LINK_SIZE/2,s=a.get("hoverLinkDataSize");return s&&(l=linearMap(s,r,o,!0)/2),l}function useHoverLinkOnHandle(a){var r=a.get("hoverLinkOnHandle");return!!(r==null?a.get("realtime"):r)}function getCursor(a){return a==="vertical"?"ns-resize":"ew-resize"}var ContinuousView$1=ContinuousView,visualMapActionInfo={type:"selectDataRange",event:"dataRangeSelected",update:"update"},visualMapActionHander=function(a,r){r.eachComponent({mainType:"visualMap",query:a},function(o){o.setSelected(a.selected)})},visualMapEncodingHandlers=[{createOnAllSeries:!0,reset:function(a,r){var o=[];return r.eachComponent("visualMap",function(l){var s=a.pipelineContext;!l.isTargetSeries(a)||s&&s.large||o.push(incrementalApplyVisual(l.stateList,l.targetVisuals,bind$1(l.getValueState,l),l.getDataDimensionIndex(a.getData())))}),o}},{createOnAllSeries:!0,reset:function(a,r){var o=a.getData(),l=[];r.eachComponent("visualMap",function(s){if(s.isTargetSeries(a)){var u=s.getVisualMeta(bind$1(getColorVisual,null,a,s))||{stops:[],outerColors:[]},c=s.getDataDimensionIndex(o);c>=0&&(u.dimension=c,l.push(u))}}),a.getData().setVisual("visualMeta",l)}}];function getColorVisual(a,r,o,l){for(var s=r.targetVisuals[l],u=VisualMapping$1.prepareVisualTypes(s),c={color:getVisualFromData(a.getData(),"color")},d=0,f=u.length;d<f;d++){var p=u[d],h=s[p==="opacity"?"__alphaForOpacity":p];h&&h.applyVisual(o,v,g)}return c.color;function v($){return c[$]}function g($,y){c[$]=y}}var each=each$f;function visualMapPreprocessor(a){var r=a&&a.visualMap;isArray$1(r)||(r=r?[r]:[]),each(r,function(o){if(!!o){has(o,"splitList")&&!has(o,"pieces")&&(o.pieces=o.splitList,delete o.splitList);var l=o.pieces;l&&isArray$1(l)&&each(l,function(s){isObject$3(s)&&(has(s,"start")&&!has(s,"min")&&(s.min=s.start),has(s,"end")&&!has(s,"max")&&(s.max=s.end))})}})}function has(a,r){return a&&a.hasOwnProperty&&a.hasOwnProperty(r)}var installed=!1;function installCommon(a){installed||(installed=!0,a.registerSubTypeDefaulter("visualMap",function(r){return!r.categories&&(!(r.pieces?r.pieces.length>0:r.splitNumber>0)||r.calculable)?"continuous":"piecewise"}),a.registerAction(visualMapActionInfo,visualMapActionHander),each$f(visualMapEncodingHandlers,function(r){a.registerVisual(a.PRIORITY.VISUAL.COMPONENT,r)}),a.registerPreprocessor(visualMapPreprocessor))}function install$6(a){a.registerComponentModel(ContinuousModel$1),a.registerComponentView(ContinuousView$1),installCommon(a)}var PiecewiseModel=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o._pieceList=[],o}return r.prototype.optionUpdated=function(o,l){a.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var s=this._mode=this._determineMode();this._pieceList=[],resetMethods[this._mode].call(this,this._pieceList),this._resetSelected(o,l);var u=this.option.categories;this.resetVisual(function(c,d){s==="categories"?(c.mappingMethod="category",c.categories=clone$4(u)):(c.dataExtent=this.getExtent(),c.mappingMethod="piecewise",c.pieceList=map$1(this._pieceList,function(f){return f=clone$4(f),d!=="inRange"&&(f.visual=null),f}))})},r.prototype.completeVisualOption=function(){var o=this.option,l={},s=VisualMapping$1.listVisualTypes(),u=this.isCategory();each$f(o.pieces,function(d){each$f(s,function(f){d.hasOwnProperty(f)&&(l[f]=1)})}),each$f(l,function(d,f){var p=!1;each$f(this.stateList,function(h){p=p||c(o,h,f)||c(o.target,h,f)},this),!p&&each$f(this.stateList,function(h){(o[h]||(o[h]={}))[f]=visualDefault$1.get(f,h==="inRange"?"active":"inactive",u)})},this);function c(d,f,p){return d&&d[f]&&d[f].hasOwnProperty(p)}a.prototype.completeVisualOption.apply(this,arguments)},r.prototype._resetSelected=function(o,l){var s=this.option,u=this._pieceList,c=(l?s:o).selected||{};if(s.selected=c,each$f(u,function(f,p){var h=this.getSelectedMapKey(f);c.hasOwnProperty(h)||(c[h]=!0)},this),s.selectedMode==="single"){var d=!1;each$f(u,function(f,p){var h=this.getSelectedMapKey(f);c[h]&&(d?c[h]=!1:d=!0)},this)}},r.prototype.getItemSymbol=function(){return this.get("itemSymbol")},r.prototype.getSelectedMapKey=function(o){return this._mode==="categories"?o.value+"":o.index+""},r.prototype.getPieceList=function(){return this._pieceList},r.prototype._determineMode=function(){var o=this.option;return o.pieces&&o.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},r.prototype.setSelected=function(o){this.option.selected=clone$4(o)},r.prototype.getValueState=function(o){var l=VisualMapping$1.findPieceIndex(o,this._pieceList);return l!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[l])]?"inRange":"outOfRange"},r.prototype.findTargetDataIndices=function(o){var l=[],s=this._pieceList;return this.eachTargetSeries(function(u){var c=[],d=u.getData();d.each(this.getDataDimensionIndex(d),function(f,p){var h=VisualMapping$1.findPieceIndex(f,s);h===o&&c.push(p)},this),l.push({seriesId:u.id,dataIndex:c})},this),l},r.prototype.getRepresentValue=function(o){var l;if(this.isCategory())l=o.value;else if(o.value!=null)l=o.value;else{var s=o.interval||[];l=s[0]===-1/0&&s[1]===1/0?0:(s[0]+s[1])/2}return l},r.prototype.getVisualMeta=function(o){if(this.isCategory())return;var l=[],s=["",""],u=this;function c(h,v){var g=u.getRepresentValue({interval:h});v||(v=u.getValueState(g));var $=o(g,v);h[0]===-1/0?s[0]=$:h[1]===1/0?s[1]=$:l.push({value:h[0],color:$},{value:h[1],color:$})}var d=this._pieceList.slice();if(!d.length)d.push({interval:[-1/0,1/0]});else{var f=d[0].interval[0];f!==-1/0&&d.unshift({interval:[-1/0,f]}),f=d[d.length-1].interval[1],f!==1/0&&d.push({interval:[f,1/0]})}var p=-1/0;return each$f(d,function(h){var v=h.interval;v&&(v[0]>p&&c([p,v[0]],"outOfRange"),c(v.slice()),p=v[1])},this),{stops:l,outerColors:s}},r.type="visualMap.piecewise",r.defaultOption=inheritDefaultOption(VisualMapModel$1.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}),r}(VisualMapModel$1),resetMethods={splitNumber:function(a){var r=this.option,o=Math.min(r.precision,20),l=this.getExtent(),s=r.splitNumber;s=Math.max(parseInt(s,10),1),r.splitNumber=s;for(var u=(l[1]-l[0])/s;+u.toFixed(o)!==u&&o<5;)o++;r.precision=o,u=+u.toFixed(o),r.minOpen&&a.push({interval:[-1/0,l[0]],close:[0,0]});for(var c=0,d=l[0];c<s;d+=u,c++){var f=c===s-1?l[1]:d+u;a.push({interval:[d,f],close:[1,1]})}r.maxOpen&&a.push({interval:[l[1],1/0],close:[0,0]}),reformIntervals(a),each$f(a,function(p,h){p.index=h,p.text=this.formatValueText(p.interval)},this)},categories:function(a){var r=this.option;each$f(r.categories,function(o){a.push({text:this.formatValueText(o,!0),value:o})},this),normalizeReverse(r,a)},pieces:function(a){var r=this.option;each$f(r.pieces,function(o,l){isObject$3(o)||(o={value:o});var s={text:"",index:l};if(o.label!=null&&(s.text=o.label),o.hasOwnProperty("value")){var u=s.value=o.value;s.interval=[u,u],s.close=[1,1]}else{for(var c=s.interval=[],d=s.close=[0,0],f=[1,0,1],p=[-1/0,1/0],h=[],v=0;v<2;v++){for(var g=[["gte","gt","min"],["lte","lt","max"]][v],$=0;$<3&&c[v]==null;$++)c[v]=o[g[$]],d[v]=f[$],h[v]=$===2;c[v]==null&&(c[v]=p[v])}h[0]&&c[1]===1/0&&(d[0]=0),h[1]&&c[0]===-1/0&&(d[1]=0),c[0]===c[1]&&d[0]&&d[1]&&(s.value=c[0])}s.visual=VisualMapping$1.retrieveVisuals(o),a.push(s)},this),normalizeReverse(r,a),reformIntervals(a),each$f(a,function(o){var l=o.close,s=[["<","\u2264"][l[1]],[">","\u2265"][l[0]]];o.text=o.text||this.formatValueText(o.value!=null?o.value:o.interval,!1,s)},this)}};function normalizeReverse(a,r){var o=a.inverse;(a.orient==="vertical"?!o:o)&&r.reverse()}var PiecewiseModel$1=PiecewiseModel,PiecewiseVisualMapView=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type=r.type,o}return r.prototype.doRender=function(){var o=this.group;o.removeAll();var l=this.visualMapModel,s=l.get("textGap"),u=l.textStyleModel,c=u.getFont(),d=u.getTextColor(),f=this._getItemAlign(),p=l.itemSize,h=this._getViewData(),v=h.endsText,g=retrieve(l.get("showLabel",!0),!v);v&&this._renderEndsText(o,v[0],p,g,f),each$f(h.viewPieceList,function($){var y=$.piece,x=new Group$4;x.onclick=bind$1(this._onItemClick,this,y),this._enableHoverLink(x,$.indexInModelPieceList);var w=l.getRepresentValue(y);if(this._createItemSymbol(x,w,[0,0,p[0],p[1]]),g){var S=this.visualMapModel.getValueState(w);x.add(new ZRText$1({style:{x:f==="right"?-s:p[0]+s,y:p[1]/2,text:y.text,verticalAlign:"middle",align:f,font:c,fill:d,opacity:S==="outOfRange"?.5:1}}))}o.add(x)},this),v&&this._renderEndsText(o,v[1],p,g,f),box(l.get("orient"),o,l.get("itemGap")),this.renderBackground(o),this.positionGroup(o)},r.prototype._enableHoverLink=function(o,l){var s=this;o.on("mouseover",function(){return u("highlight")}).on("mouseout",function(){return u("downplay")});var u=function(c){var d=s.visualMapModel;d.option.hoverLink&&s.api.dispatchAction({type:c,batch:makeHighDownBatch(d.findTargetDataIndices(l),d)})}},r.prototype._getItemAlign=function(){var o=this.visualMapModel,l=o.option;if(l.orient==="vertical")return getItemAlign(o,this.api,o.itemSize);var s=l.align;return(!s||s==="auto")&&(s="left"),s},r.prototype._renderEndsText=function(o,l,s,u,c){if(!!l){var d=new Group$4,f=this.visualMapModel.textStyleModel;d.add(new ZRText$1({style:createTextStyle$1(f,{x:u?c==="right"?s[0]:0:s[0]/2,y:s[1]/2,verticalAlign:"middle",align:u?c:"center",text:l})})),o.add(d)}},r.prototype._getViewData=function(){var o=this.visualMapModel,l=map$1(o.getPieceList(),function(d,f){return{piece:d,indexInModelPieceList:f}}),s=o.get("text"),u=o.get("orient"),c=o.get("inverse");return(u==="horizontal"?c:!c)?l.reverse():s&&(s=s.slice().reverse()),{viewPieceList:l,endsText:s}},r.prototype._createItemSymbol=function(o,l,s){o.add(createSymbol$1(this.getControllerVisual(l,"symbol"),s[0],s[1],s[2],s[3],this.getControllerVisual(l,"color")))},r.prototype._onItemClick=function(o){var l=this.visualMapModel,s=l.option,u=s.selectedMode;if(!!u){var c=clone$4(s.selected),d=l.getSelectedMapKey(o);u==="single"||u===!0?(c[d]=!0,each$f(c,function(f,p){c[p]=p===d})):c[d]=!c[d],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:c})}},r.type="visualMap.piecewise",r}(VisualMapView$1),PiecewiseView=PiecewiseVisualMapView;function install$5(a){a.registerComponentModel(PiecewiseModel$1),a.registerComponentView(PiecewiseView),installCommon(a)}function install$4(a){use(install$6),use(install$5)}var DEFAULT_OPTION={label:{enabled:!0},decal:{show:!1}},inner=makeInner(),decalPaletteScope={};function ariaVisual(a,r){var o=a.getModel("aria");if(!o.get("enabled"))return;var l=clone$4(DEFAULT_OPTION);merge(l.label,a.getLocaleModel().get("aria"),!1),merge(o.option,l,!1),s(),u();function s(){var p=o.getModel("decal"),h=p.get("show");if(h){var v=createHashMap();a.eachSeries(function(g){if(!g.isColorBySeries()){var $=v.get(g.type);$||($={},v.set(g.type,$)),inner(g).scope=$}}),a.eachRawSeries(function(g){if(a.isSeriesFiltered(g))return;if(isFunction(g.enableAriaDecal)){g.enableAriaDecal();return}var $=g.getData();if(g.isColorBySeries()){var C=getDecalFromPalette(g.ecModel,g.name,decalPaletteScope,a.getSeriesCount()),A=$.getVisual("decal");$.setVisual("decal",T(A,C))}else{var y=g.getRawData(),x={},w=inner(g).scope;$.each(function(I){var D=$.getRawIndex(I);x[D]=I});var S=y.count();y.each(function(I){var D=x[I],M=y.getName(I)||I+"",L=getDecalFromPalette(g.ecModel,M,w,S),N=$.getItemVisual(D,"decal");$.setItemVisual(D,"decal",T(N,L))})}function T(I,D){var M=I?extend(extend({},D),I):D;return M.dirty=!0,M}})}}function u(){var p=a.getLocaleModel().get("aria"),h=o.getModel("label");if(h.option=defaults(h.option,p),!!h.get("enabled")){var v=r.getZr().dom;if(h.get("description")){v.setAttribute("aria-label",h.get("description"));return}var g=a.getSeriesCount(),$=h.get(["data","maxCount"])||10,y=h.get(["series","maxCount"])||10,x=Math.min(g,y),w;if(!(g<1)){var S=d();if(S){var C=h.get(["general","withTitle"]);w=c(C,{title:S})}else w=h.get(["general","withoutTitle"]);var A=[],T=g>1?h.get(["series","multiple","prefix"]):h.get(["series","single","prefix"]);w+=c(T,{seriesCount:g}),a.eachSeries(function(L,N){if(N<x){var V=void 0,R=L.get("name"),P=R?"withName":"withoutName";V=g>1?h.get(["series","multiple",P]):h.get(["series","single",P]),V=c(V,{seriesId:L.seriesIndex,seriesName:L.get("name"),seriesType:f(L.subType)});var q=L.getData();if(q.count()>$){var B=h.get(["data","partialData"]);V+=c(B,{displayCnt:$})}else V+=h.get(["data","allData"]);for(var F=h.get(["data","separator","middle"]),U=h.get(["data","separator","end"]),J=[],K=0;K<q.count();K++)if(K<$){var ee=q.getName(K),de=q.getValues(K),Z=h.get(["data",ee?"withName":"withoutName"]);J.push(c(Z,{name:ee,value:de.join(F)}))}V+=J.join(F)+U,A.push(V)}});var I=h.getModel(["series","multiple","separator"]),D=I.get("middle"),M=I.get("end");w+=A.join(D)+M,v.setAttribute("aria-label",w)}}}function c(p,h){if(!isString(p))return p;var v=p;return each$f(h,function(g,$){v=v.replace(new RegExp("\\{\\s*"+$+"\\s*\\}","g"),g)}),v}function d(){var p=a.get("title");return p&&p.length&&(p=p[0]),p&&p.text}function f(p){return a.getLocaleModel().get(["series","typeNames"])[p]||"\u81EA\u5B9A\u4E49\u56FE"}}function ariaPreprocessor(a){if(!(!a||!a.aria)){var r=a.aria;r.show!=null&&(r.enabled=r.show),r.label=r.label||{},each$f(["description","general","series","data"],function(o){r[o]!=null&&(r.label[o]=r[o])})}}function install$3(a){a.registerPreprocessor(ariaPreprocessor),a.registerVisual(a.PRIORITY.VISUAL.ARIA,ariaVisual)}var RELATIONAL_EXPRESSION_OP_ALIAS_MAP={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},RegExpEvaluator=function(){function a(r){var o=this._condVal=isString(r)?new RegExp(r):isRegExp(r)?r:null;if(o==null){var l="";throwError(l)}}return a.prototype.evaluate=function(r){var o=typeof r;return isString(o)?this._condVal.test(r):isNumber(o)?this._condVal.test(r+""):!1},a}(),ConstConditionInternal=function(){function a(){}return a.prototype.evaluate=function(){return this.value},a}(),AndConditionInternal=function(){function a(){}return a.prototype.evaluate=function(){for(var r=this.children,o=0;o<r.length;o++)if(!r[o].evaluate())return!1;return!0},a}(),OrConditionInternal=function(){function a(){}return a.prototype.evaluate=function(){for(var r=this.children,o=0;o<r.length;o++)if(r[o].evaluate())return!0;return!1},a}(),NotConditionInternal=function(){function a(){}return a.prototype.evaluate=function(){return!this.child.evaluate()},a}(),RelationalConditionInternal=function(){function a(){}return a.prototype.evaluate=function(){for(var r=!!this.valueParser,o=this.getValue,l=o(this.valueGetterParam),s=r?this.valueParser(l):null,u=0;u<this.subCondList.length;u++)if(!this.subCondList[u].evaluate(r?s:l))return!1;return!0},a}();function parseOption(a,r){if(a===!0||a===!1){var o=new ConstConditionInternal;return o.value=a,o}var l="";return isObjectNotArray(a)||throwError(l),a.and?parseAndOrOption("and",a,r):a.or?parseAndOrOption("or",a,r):a.not?parseNotOption(a,r):parseRelationalOption(a,r)}function parseAndOrOption(a,r,o){var l=r[a],s="";isArray$1(l)||throwError(s),l.length||throwError(s);var u=a==="and"?new AndConditionInternal:new OrConditionInternal;return u.children=map$1(l,function(c){return parseOption(c,o)}),u.children.length||throwError(s),u}function parseNotOption(a,r){var o=a.not,l="";isObjectNotArray(o)||throwError(l);var s=new NotConditionInternal;return s.child=parseOption(o,r),s.child||throwError(l),s}function parseRelationalOption(a,r){for(var o="",l=r.prepareGetValue(a),s=[],u=keys(a),c=a.parser,d=c?getRawValueParser(c):null,f=0;f<u.length;f++){var p=u[f];if(!(p==="parser"||r.valueGetterAttrMap.get(p))){var h=hasOwn(RELATIONAL_EXPRESSION_OP_ALIAS_MAP,p)?RELATIONAL_EXPRESSION_OP_ALIAS_MAP[p]:p,v=a[p],g=d?d(v):v,$=createFilterComparator(h,g)||h==="reg"&&new RegExpEvaluator(g);$||throwError(o),s.push($)}}s.length||throwError(o);var y=new RelationalConditionInternal;return y.valueGetterParam=l,y.valueParser=d,y.getValue=r.getValue,y.subCondList=s,y}function isObjectNotArray(a){return isObject$3(a)&&!isArrayLike(a)}var ConditionalExpressionParsed=function(){function a(r,o){this._cond=parseOption(r,o)}return a.prototype.evaluate=function(){return this._cond.evaluate()},a}();function parseConditionalExpression(a,r){return new ConditionalExpressionParsed(a,r)}var filterTransform={type:"echarts:filter",transform:function(a){for(var r=a.upstream,o,l=parseConditionalExpression(a.config,{valueGetterAttrMap:createHashMap({dimension:!0}),prepareGetValue:function(d){var f="",p=d.dimension;hasOwn(d,"dimension")||throwError(f);var h=r.getDimensionInfo(p);return h||throwError(f),{dimIdx:h.index}},getValue:function(d){return r.retrieveValueFromItem(o,d.dimIdx)}}),s=[],u=0,c=r.count();u<c;u++)o=r.getRawDataItem(u),l.evaluate()&&s.push(o);return{data:s}}},sortTransform={type:"echarts:sort",transform:function(a){var r=a.upstream,o=a.config,l="",s=normalizeToArray(o);s.length||throwError(l);var u=[];each$f(s,function(h){var v=h.dimension,g=h.order,$=h.parser,y=h.incomparable;if(v==null&&throwError(l),g!=="asc"&&g!=="desc"&&throwError(l),y&&y!=="min"&&y!=="max"){var x="";throwError(x)}if(g!=="asc"&&g!=="desc"){var w="";throwError(w)}var S=r.getDimensionInfo(v);S||throwError(l);var C=$?getRawValueParser($):null;$&&!C&&throwError(l),u.push({dimIdx:S.index,parser:C,comparator:new SortOrderComparator(g,y)})});var c=r.sourceFormat;c!==SOURCE_FORMAT_ARRAY_ROWS&&c!==SOURCE_FORMAT_OBJECT_ROWS&&throwError(l);for(var d=[],f=0,p=r.count();f<p;f++)d.push(r.getRawDataItem(f));return d.sort(function(h,v){for(var g=0;g<u.length;g++){var $=u[g],y=r.retrieveValueFromItem(h,$.dimIdx),x=r.retrieveValueFromItem(v,$.dimIdx);$.parser&&(y=$.parser(y),x=$.parser(x));var w=$.comparator.evaluate(y,x);if(w!==0)return w}return 0}),{data:d}}};function install$2(a){a.registerTransform(filterTransform),a.registerTransform(sortTransform)}var DatasetModel=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type="dataset",o}return r.prototype.init=function(o,l,s){a.prototype.init.call(this,o,l,s),this._sourceManager=new SourceManager(this),disableTransformOptionMerge(this)},r.prototype.mergeOption=function(o,l){a.prototype.mergeOption.call(this,o,l),disableTransformOptionMerge(this)},r.prototype.optionUpdated=function(){this._sourceManager.dirty()},r.prototype.getSourceManager=function(){return this._sourceManager},r.type="dataset",r.defaultOption={seriesLayoutBy:SERIES_LAYOUT_BY_COLUMN},r}(ComponentModel$1),DatasetView=function(a){__extends(r,a);function r(){var o=a!==null&&a.apply(this,arguments)||this;return o.type="dataset",o}return r.type="dataset",r}(ComponentView$1);function install$1(a){a.registerComponentModel(DatasetModel),a.registerComponentView(DatasetView)}var CMD=PathProxy$1.CMD;function aroundEqual(a,r){return Math.abs(a-r)<1e-5}function pathToBezierCurves(a){var r=a.data,o=a.len(),l=[],s,u=0,c=0,d=0,f=0;function p(q,B){s&&s.length>2&&l.push(s),s=[q,B]}function h(q,B,F,U){aroundEqual(q,F)&&aroundEqual(B,U)||s.push(q,B,F,U,F,U)}function v(q,B,F,U,J,K){var ee=Math.abs(B-q),de=Math.tan(ee/4)*4/3,Z=B<q?-1:1,Y=Math.cos(q),re=Math.sin(q),oe=Math.cos(B),ie=Math.sin(B),ve=Y*J+F,ue=re*K+U,fe=oe*J+F,xe=ie*K+U,_e=J*de*Z,W=K*de*Z;s.push(ve-_e*re,ue+W*Y,fe+_e*ie,xe-W*oe,fe,xe)}for(var g,$,y,x,w=0;w<o;){var S=r[w++],C=w===1;switch(C&&(u=r[w],c=r[w+1],d=u,f=c,(S===CMD.L||S===CMD.C||S===CMD.Q)&&(s=[d,f])),S){case CMD.M:u=d=r[w++],c=f=r[w++],p(d,f);break;case CMD.L:g=r[w++],$=r[w++],h(u,c,g,$),u=g,c=$;break;case CMD.C:s.push(r[w++],r[w++],r[w++],r[w++],u=r[w++],c=r[w++]);break;case CMD.Q:g=r[w++],$=r[w++],y=r[w++],x=r[w++],s.push(u+2/3*(g-u),c+2/3*($-c),y+2/3*(g-y),x+2/3*($-x),y,x),u=y,c=x;break;case CMD.A:var A=r[w++],T=r[w++],I=r[w++],D=r[w++],M=r[w++],L=r[w++]+M;w+=1;var N=!r[w++];g=Math.cos(M)*I+A,$=Math.sin(M)*D+T,C?(d=g,f=$,p(d,f)):h(u,c,g,$),u=Math.cos(L)*I+A,c=Math.sin(L)*D+T;for(var V=(N?-1:1)*Math.PI/2,R=M;N?R>L:R<L;R+=V){var P=N?Math.max(R+V,L):Math.min(R+V,L);v(R,P,A,T,I,D)}break;case CMD.R:d=u=r[w++],f=c=r[w++],g=d+r[w++],$=f+r[w++],p(g,f),h(g,f,g,$),h(g,$,d,$),h(d,$,d,f),h(d,f,g,f);break;case CMD.Z:s&&h(u,c,d,f),u=d,c=f;break}}return s&&s.length>2&&l.push(s),l}function adpativeBezier(a,r,o,l,s,u,c,d,f,p){if(aroundEqual(a,o)&&aroundEqual(r,l)&&aroundEqual(s,c)&&aroundEqual(u,d)){f.push(c,d);return}var h=2/p,v=h*h,g=c-a,$=d-r,y=Math.sqrt(g*g+$*$);g/=y,$/=y;var x=o-a,w=l-r,S=s-c,C=u-d,A=x*x+w*w,T=S*S+C*C;if(A<v&&T<v){f.push(c,d);return}var I=g*x+$*w,D=-g*S-$*C,M=A-I*I,L=T-D*D;if(M<v&&I>=0&&L<v&&D>=0){f.push(c,d);return}var N=[],V=[];cubicSubdivide(a,o,s,c,.5,N),cubicSubdivide(r,l,u,d,.5,V),adpativeBezier(N[0],V[0],N[1],V[1],N[2],V[2],N[3],V[3],f,p),adpativeBezier(N[4],V[4],N[5],V[5],N[6],V[6],N[7],V[7],f,p)}function pathToPolygons(a,r){var o=pathToBezierCurves(a),l=[];r=r||1;for(var s=0;s<o.length;s++){var u=o[s],c=[],d=u[0],f=u[1];c.push(d,f);for(var p=2;p<u.length;){var h=u[p++],v=u[p++],g=u[p++],$=u[p++],y=u[p++],x=u[p++];adpativeBezier(d,f,h,v,g,$,y,x,c,r),d=y,f=x}l.push(c)}return l}function getDividingGrids(a,r,o){var l=a[r],s=a[1-r],u=Math.abs(l/s),c=Math.ceil(Math.sqrt(u*o)),d=Math.floor(o/c);d===0&&(d=1,c=o);for(var f=[],p=0;p<c;p++)f.push(d);var h=c*d,v=o-h;if(v>0)for(var p=0;p<v;p++)f[p%c]+=1;return f}function divideSector(a,r,o){for(var l=a.r0,s=a.r,u=a.startAngle,c=a.endAngle,d=Math.abs(c-u),f=d*s,p=s-l,h=f>Math.abs(p),v=getDividingGrids([f,p],h?0:1,r),g=(h?d:p)/v.length,$=0;$<v.length;$++)for(var y=(h?p:d)/v[$],x=0;x<v[$];x++){var w={};h?(w.startAngle=u+g*$,w.endAngle=u+g*($+1),w.r0=l+y*x,w.r=l+y*(x+1)):(w.startAngle=u+y*x,w.endAngle=u+y*(x+1),w.r0=l+g*$,w.r=l+g*($+1)),w.clockwise=a.clockwise,w.cx=a.cx,w.cy=a.cy,o.push(w)}}function divideRect(a,r,o){for(var l=a.width,s=a.height,u=l>s,c=getDividingGrids([l,s],u?0:1,r),d=u?"width":"height",f=u?"height":"width",p=u?"x":"y",h=u?"y":"x",v=a[d]/c.length,g=0;g<c.length;g++)for(var $=a[f]/c[g],y=0;y<c[g];y++){var x={};x[p]=g*v,x[h]=y*$,x[d]=v,x[f]=$,x.x+=a.x,x.y+=a.y,o.push(x)}}function crossProduct2d(a,r,o,l){return a*l-o*r}function lineLineIntersect(a,r,o,l,s,u,c,d){var f=o-a,p=l-r,h=c-s,v=d-u,g=crossProduct2d(h,v,f,p);if(Math.abs(g)<1e-6)return null;var $=a-s,y=r-u,x=crossProduct2d($,y,h,v)/g;return x<0||x>1?null:new Point$1(x*f+a,x*p+r)}function projPtOnLine(a,r,o){var l=new Point$1;Point$1.sub(l,o,r),l.normalize();var s=new Point$1;Point$1.sub(s,a,r);var u=s.dot(l);return u}function addToPoly(a,r){var o=a[a.length-1];o&&o[0]===r[0]&&o[1]===r[1]||a.push(r)}function splitPolygonByLine(a,r,o){for(var l=a.length,s=[],u=0;u<l;u++){var c=a[u],d=a[(u+1)%l],f=lineLineIntersect(c[0],c[1],d[0],d[1],r.x,r.y,o.x,o.y);f&&s.push({projPt:projPtOnLine(f,r,o),pt:f,idx:u})}if(s.length<2)return[{points:a},{points:a}];s.sort(function(w,S){return w.projPt-S.projPt});var p=s[0],h=s[s.length-1];if(h.idx<p.idx){var v=p;p=h,h=v}for(var g=[p.pt.x,p.pt.y],$=[h.pt.x,h.pt.y],y=[g],x=[$],u=p.idx+1;u<=h.idx;u++)addToPoly(y,a[u].slice());addToPoly(y,$),addToPoly(y,g);for(var u=h.idx+1;u<=p.idx+l;u++)addToPoly(x,a[u%l].slice());return addToPoly(x,g),addToPoly(x,$),[{points:y},{points:x}]}function binaryDividePolygon(a){var r=a.points,o=[],l=[];fromPoints(r,o,l);var s=new BoundingRect$1(o[0],o[1],l[0]-o[0],l[1]-o[1]),u=s.width,c=s.height,d=s.x,f=s.y,p=new Point$1,h=new Point$1;return u>c?(p.x=h.x=d+u/2,p.y=f,h.y=f+c):(p.y=h.y=f+c/2,p.x=d,h.x=d+u),splitPolygonByLine(r,p,h)}function binaryDivideRecursive(a,r,o,l){if(o===1)l.push(r);else{var s=Math.floor(o/2),u=a(r);binaryDivideRecursive(a,u[0],s,l),binaryDivideRecursive(a,u[1],o-s,l)}return l}function clone(a,r){for(var o=[],l=0;l<r;l++)o.push(clonePath(a));return o}function copyPathProps(a,r){r.setStyle(a.style),r.z=a.z,r.z2=a.z2,r.zlevel=a.zlevel}function polygonConvert(a){for(var r=[],o=0;o<a.length;)r.push([a[o++],a[o++]]);return r}function split(a,r){var o=[],l=a.shape,s;switch(a.type){case"rect":divideRect(l,r,o),s=Rect$3;break;case"sector":divideSector(l,r,o),s=Sector$1;break;case"circle":divideSector({r0:0,r:l.r,startAngle:0,endAngle:Math.PI*2,cx:l.cx,cy:l.cy},r,o),s=Sector$1;break;default:var u=a.getComputedTransform(),c=u?Math.sqrt(Math.max(u[0]*u[0]+u[1]*u[1],u[2]*u[2]+u[3]*u[3])):1,d=map$1(pathToPolygons(a.getUpdatedPathProxy(),c),function(S){return polygonConvert(S)}),f=d.length;if(f===0)binaryDivideRecursive(binaryDividePolygon,{points:d[0]},r,o);else if(f===r)for(var p=0;p<f;p++)o.push({points:d[p]});else{var h=0,v=map$1(d,function(S){var C=[],A=[];fromPoints(S,C,A);var T=(A[1]-C[1])*(A[0]-C[0]);return h+=T,{poly:S,area:T}});v.sort(function(S,C){return C.area-S.area});for(var g=r,p=0;p<f;p++){var $=v[p];if(g<=0)break;var y=p===f-1?g:Math.ceil($.area/h*r);y<0||(binaryDivideRecursive(binaryDividePolygon,{points:$.poly},y,o),g-=y)}}s=Polygon$1;break}if(!s)return clone(a,r);for(var x=[],p=0;p<o.length;p++){var w=new s;w.setShape(o[p]),copyPathProps(a,w),x.push(w)}return x}function alignSubpath(a,r){var o=a.length,l=r.length;if(o===l)return[a,r];for(var s=[],u=[],c=o<l?a:r,d=Math.min(o,l),f=Math.abs(l-o)/6,p=(d-2)/6,h=Math.ceil(f/p)+1,v=[c[0],c[1]],g=f,$=2;$<d;){var y=c[$-2],x=c[$-1],w=c[$++],S=c[$++],C=c[$++],A=c[$++],T=c[$++],I=c[$++];if(g<=0){v.push(w,S,C,A,T,I);continue}for(var D=Math.min(g,h-1)+1,M=1;M<=D;M++){var L=M/D;cubicSubdivide(y,w,C,T,L,s),cubicSubdivide(x,S,A,I,L,u),y=s[3],x=u[3],v.push(s[1],u[1],s[2],u[2],y,x),w=s[5],S=u[5],C=s[6],A=u[6]}g-=D-1}return c===a?[v,r]:[a,v]}function createSubpath(a,r){for(var o=a.length,l=a[o-2],s=a[o-1],u=[],c=0;c<r.length;)u[c++]=l,u[c++]=s;return u}function alignBezierCurves(a,r){for(var o,l,s,u=[],c=[],d=0;d<Math.max(a.length,r.length);d++){var f=a[d],p=r[d],h=void 0,v=void 0;f?p?(o=alignSubpath(f,p),h=o[0],v=o[1],l=h,s=v):(v=createSubpath(s||f,f),h=f):(h=createSubpath(l||p,p),v=p),u.push(h),c.push(v)}return[u,c]}function centroid(a){for(var r=0,o=0,l=0,s=a.length,u=0,c=s-2;u<s;c=u,u+=2){var d=a[c],f=a[c+1],p=a[u],h=a[u+1],v=d*h-p*f;r+=v,o+=(d+p)*v,l+=(f+h)*v}return r===0?[a[0]||0,a[1]||0]:[o/r/3,l/r/3,r]}function findBestRingOffset(a,r,o,l){for(var s=(a.length-2)/6,u=1/0,c=0,d=a.length,f=d-2,p=0;p<s;p++){for(var h=p*6,v=0,g=0;g<d;g+=2){var $=g===0?h:(h+g-2)%f+2,y=a[$]-o[0],x=a[$+1]-o[1],w=r[g]-l[0],S=r[g+1]-l[1],C=w-y,A=S-x;v+=C*C+A*A}v<u&&(u=v,c=p)}return c}function reverse(a){for(var r=[],o=a.length,l=0;l<o;l+=2)r[l]=a[o-l-2],r[l+1]=a[o-l-1];return r}function findBestMorphingRotation(a,r,o,l){for(var s=[],u,c=0;c<a.length;c++){var d=a[c],f=r[c],p=centroid(d),h=centroid(f);u==null&&(u=p[2]<0!=h[2]<0);var v=[],g=[],$=0,y=1/0,x=[],w=d.length;u&&(d=reverse(d));for(var S=findBestRingOffset(d,f,p,h)*6,C=w-2,A=0;A<C;A+=2){var T=(S+A)%C+2;v[A+2]=d[T]-p[0],v[A+3]=d[T+1]-p[1]}if(v[0]=d[S]-p[0],v[1]=d[S+1]-p[1],o>0)for(var I=l/o,D=-l/2;D<=l/2;D+=I){for(var M=Math.sin(D),L=Math.cos(D),N=0,A=0;A<d.length;A+=2){var V=v[A],R=v[A+1],P=f[A]-h[0],q=f[A+1]-h[1],B=P*L-q*M,F=P*M+q*L;x[A]=B,x[A+1]=F;var U=B-V,J=F-R;N+=U*U+J*J}if(N<y){y=N,$=D;for(var K=0;K<x.length;K++)g[K]=x[K]}}else for(var ee=0;ee<w;ee+=2)g[ee]=f[ee]-h[0],g[ee+1]=f[ee+1]-h[1];s.push({from:v,to:g,fromCp:p,toCp:h,rotation:-$})}return s}function isCombineMorphing(a){return a.__isCombineMorphing}var SAVED_METHOD_PREFIX="__mOriginal_";function saveAndModifyMethod(a,r,o){var l=SAVED_METHOD_PREFIX+r,s=a[l]||a[r];a[l]||(a[l]=a[r]);var u=o.replace,c=o.after,d=o.before;a[r]=function(){var f=arguments,p;return d&&d.apply(this,f),u?p=u.apply(this,f):p=s.apply(this,f),c&&c.apply(this,f),p}}function restoreMethod(a,r){var o=SAVED_METHOD_PREFIX+r;a[o]&&(a[r]=a[o],a[o]=null)}function applyTransformOnBeziers(a,r){for(var o=0;o<a.length;o++)for(var l=a[o],s=0;s<l.length;){var u=l[s],c=l[s+1];l[s++]=r[0]*u+r[2]*c+r[4],l[s++]=r[1]*u+r[3]*c+r[5]}}function prepareMorphPath(a,r){var o=a.getUpdatedPathProxy(),l=r.getUpdatedPathProxy(),s=alignBezierCurves(pathToBezierCurves(o),pathToBezierCurves(l)),u=s[0],c=s[1],d=a.getComputedTransform(),f=r.getComputedTransform();function p(){this.transform=null}d&&applyTransformOnBeziers(u,d),f&&applyTransformOnBeziers(c,f),saveAndModifyMethod(r,"updateTransform",{replace:p}),r.transform=null;var h=findBestMorphingRotation(u,c,10,Math.PI),v=[];saveAndModifyMethod(r,"buildPath",{replace:function(g){for(var $=r.__morphT,y=1-$,x=[],w=0;w<h.length;w++){var S=h[w],C=S.from,A=S.to,T=S.rotation*$,I=S.fromCp,D=S.toCp,M=Math.sin(T),L=Math.cos(T);lerp$1(x,I,D,$);for(var N=0;N<C.length;N+=2){var V=C[N],R=C[N+1],P=A[N],q=A[N+1],B=V*y+P*$,F=R*y+q*$;v[N]=B*L-F*M+x[0],v[N+1]=B*M+F*L+x[1]}var U=v[0],J=v[1];g.moveTo(U,J);for(var N=2;N<C.length;){var P=v[N++],q=v[N++],K=v[N++],ee=v[N++],de=v[N++],Z=v[N++];U===P&&J===q&&K===de&&ee===Z?g.lineTo(de,Z):g.bezierCurveTo(P,q,K,ee,de,Z),U=de,J=Z}}}})}function morphPath(a,r,o){if(!a||!r)return r;var l=o.done,s=o.during;prepareMorphPath(a,r),r.__morphT=0;function u(){restoreMethod(r,"buildPath"),restoreMethod(r,"updateTransform"),r.__morphT=-1,r.createPathProxy(),r.dirtyShape()}return r.animateTo({__morphT:1},defaults({during:function(c){r.dirtyShape(),s&&s(c)},done:function(){u(),l&&l()}},o)),r}function hilbert(a,r,o,l,s,u){var c=16;a=s===o?0:Math.round(32767*(a-o)/(s-o)),r=u===l?0:Math.round(32767*(r-l)/(u-l));for(var d=0,f,p=(1<<c)/2;p>0;p/=2){var h=0,v=0;(a&p)>0&&(h=1),(r&p)>0&&(v=1),d+=p*p*(3*h^v),v===0&&(h===1&&(a=p-1-a,r=p-1-r),f=a,a=r,r=f)}return d}function sortPaths(a){var r=1/0,o=1/0,l=-1/0,s=-1/0,u=map$1(a,function(d){var f=d.getBoundingRect(),p=d.getComputedTransform(),h=f.x+f.width/2+(p?p[4]:0),v=f.y+f.height/2+(p?p[5]:0);return r=Math.min(h,r),o=Math.min(v,o),l=Math.max(h,l),s=Math.max(v,s),[h,v]}),c=map$1(u,function(d,f){return{cp:d,z:hilbert(d[0],d[1],r,o,l,s),path:a[f]}});return c.sort(function(d,f){return d.z-f.z}).map(function(d){return d.path})}function defaultDividePath(a){return split(a.path,a.count)}function createEmptyReturn(){return{fromIndividuals:[],toIndividuals:[],count:0}}function combineMorph(a,r,o){var l=[];function s(I){for(var D=0;D<I.length;D++){var M=I[D];isCombineMorphing(M)?s(M.childrenRef()):M instanceof Path$1&&l.push(M)}}s(a);var u=l.length;if(!u)return createEmptyReturn();var c=o.dividePath||defaultDividePath,d=c({path:r,count:u});if(d.length!==u)return console.error("Invalid morphing: unmatched splitted path"),createEmptyReturn();l=sortPaths(l),d=sortPaths(d);for(var f=o.done,p=o.during,h=o.individualDelay,v=new Transformable$1,g=0;g<u;g++){var $=l[g],y=d[g];y.parent=r,y.copyTransform(v),h||prepareMorphPath($,y)}r.__isCombineMorphing=!0,r.childrenRef=function(){return d};function x(I){for(var D=0;D<d.length;D++)d[D].addSelfToZr(I)}saveAndModifyMethod(r,"addSelfToZr",{after:function(I){x(I)}}),saveAndModifyMethod(r,"removeSelfFromZr",{after:function(I){for(var D=0;D<d.length;D++)d[D].removeSelfFromZr(I)}});function w(){r.__isCombineMorphing=!1,r.__morphT=-1,r.childrenRef=null,restoreMethod(r,"addSelfToZr"),restoreMethod(r,"removeSelfFromZr")}var S=d.length;if(h)for(var C=S,A=function(){C--,C===0&&(w(),f&&f())},g=0;g<S;g++){var T=h?defaults({delay:(o.delay||0)+h(g,S,l[g],d[g]),done:A},o):o;morphPath(l[g],d[g],T)}else r.__morphT=0,r.animateTo({__morphT:1},defaults({during:function(I){for(var D=0;D<S;D++){var M=d[D];M.__morphT=r.__morphT,M.dirtyShape()}p&&p(I)},done:function(){w();for(var I=0;I<a.length;I++)restoreMethod(a[I],"updateTransform");f&&f()}},o));return r.__zr&&x(r.__zr),{fromIndividuals:l,toIndividuals:d,count:S}}function separateMorph(a,r,o){var l=r.length,s=[],u=o.dividePath||defaultDividePath;function c($){for(var y=0;y<$.length;y++){var x=$[y];isCombineMorphing(x)?c(x.childrenRef()):x instanceof Path$1&&s.push(x)}}if(isCombineMorphing(a)){c(a.childrenRef());var d=s.length;if(d<l)for(var f=0,p=d;p<l;p++)s.push(clonePath(s[f++%d]));s.length=l}else{s=u({path:a,count:l});for(var h=a.getComputedTransform(),p=0;p<s.length;p++)s[p].setLocalTransform(h);if(s.length!==l)return console.error("Invalid morphing: unmatched splitted path"),createEmptyReturn()}s=sortPaths(s),r=sortPaths(r);for(var v=o.individualDelay,p=0;p<l;p++){var g=v?defaults({delay:(o.delay||0)+v(p,l,s[p],r[p])},o):o;morphPath(s[p],r[p],g)}return{fromIndividuals:s,toIndividuals:r,count:r.length}}function isMultiple(a){return isArray$1(a[0])}function prepareMorphBatches(a,r){for(var o=[],l=a.length,s=0;s<l;s++)o.push({one:a[s],many:[]});for(var s=0;s<r.length;s++){var u=r[s].length,c=void 0;for(c=0;c<u;c++)o[c%l].many.push(r[s][c])}for(var d=0,s=l-1;s>=0;s--)if(!o[s].many.length){var f=o[d].many;if(f.length<=1)if(d)d=0;else return o;var u=f.length,p=Math.ceil(u/2);o[s].many=f.slice(p,u),o[d].many=f.slice(0,p),d++}return o}var pathDividers={clone:function(a){for(var r=[],o=1-Math.pow(1-a.path.style.opacity,1/a.count),l=0;l<a.count;l++){var s=clonePath(a.path);s.setStyle("opacity",o),r.push(s)}return r},split:null};function applyMorphAnimation(a,r,o,l,s,u){if(!a.length||!r.length)return;var c=getAnimationConfig("update",l,s);if(!(c&&c.duration>0))return;var d=l.getModel("universalTransition").get("delay"),f=Object.assign({setToFinal:!0},c),p,h;isMultiple(a)&&(p=a,h=r),isMultiple(r)&&(p=r,h=a);function v(S,C,A,T,I){var D=S.many,M=S.one;if(D.length===1&&!I){var L=C?D[0]:M,N=C?M:D[0];if(isCombineMorphing(L))v({many:[L],one:N},!0,A,T,!0);else{var V=d?defaults({delay:d(A,T)},f):f;morphPath(L,N,V),u(L,N,L,N,V)}}else for(var R=defaults({dividePath:pathDividers[o],individualDelay:d&&function(J,K,ee,de){return d(J+A,T)}},f),P=C?combineMorph(D,M,R):separateMorph(M,D,R),q=P.fromIndividuals,B=P.toIndividuals,F=q.length,U=0;U<F;U++){var V=d?defaults({delay:d(U,F)},f):f;u(q[U],B[U],C?D[U]:S.one,C?S.one:D[U],V)}}for(var g=p?p===a:a.length>r.length,$=p?prepareMorphBatches(h,p):prepareMorphBatches(g?r:a,[g?a:r]),y=0,x=0;x<$.length;x++)y+=$[x].many.length;for(var w=0,x=0;x<$.length;x++)v($[x],g,w,y),w+=$[x].many.length}function getPathList(a){if(!a)return[];if(isArray$1(a)){for(var r=[],o=0;o<a.length;o++)r.push(getPathList(a[o]));return r}var l=[];return a.traverse(function(s){s instanceof Path$1&&!s.disableMorphing&&!s.invisible&&!s.ignore&&l.push(s)}),l}var DATA_COUNT_THRESHOLD=1e4,getUniversalTransitionGlobalStore=makeInner();function getGroupIdDimension(a){for(var r=a.dimensions,o=0;o<r.length;o++){var l=a.getDimensionInfo(r[o]);if(l&&l.otherDims.itemGroupId===0)return r[o]}}function flattenDataDiffItems(a){var r=[];return each$f(a,function(o){var l=o.data;if(!(l.count()>DATA_COUNT_THRESHOLD))for(var s=l.getIndices(),u=getGroupIdDimension(l),c=0;c<s.length;c++)r.push({data:l,dim:o.dim||u,divide:o.divide,dataIndex:c})}),r}function fadeInElement(a,r,o){a.traverse(function(l){l instanceof Path$1&&initProps(l,{style:{opacity:0}},r,{dataIndex:o,isFrom:!0})})}function removeEl(a){if(a.parent){var r=a.getComputedTransform();a.setLocalTransform(r),a.parent.remove(a)}}function stopAnimation(a){a.stopAnimation(),a.isGroup&&a.traverse(function(r){r.stopAnimation()})}function animateElementStyles(a,r,o){var l=getAnimationConfig("update",o,r);l&&a.traverse(function(s){if(s instanceof Displayable$1){var u=getOldStyle(s);u&&s.animateFrom({style:u},l)}})}function isAllIdSame(a,r){var o=a.length;if(o!==r.length)return!1;for(var l=0;l<o;l++){var s=a[l],u=r[l];if(s.data.getId(s.dataIndex)!==u.data.getId(u.dataIndex))return!1}return!0}function transitionBetween(a,r,o){var l=flattenDataDiffItems(a),s=flattenDataDiffItems(r);function u(S,C,A,T,I){(A||S)&&C.animateFrom({style:A&&A!==S?extend(extend({},A.style),S.style):S.style},I)}function c(S){for(var C=0;C<S.length;C++)if(S[C].dim)return S[C].dim}var d=c(l),f=c(s),p=!1;function h(S,C){return function(A){var T=A.data,I=A.dataIndex;if(C)return T.getId(I);var D=T.hostModel&&T.hostModel.get("dataGroupId"),M=S?d||f:f||d,L=M&&T.getDimensionInfo(M),N=L&&L.ordinalMeta;if(L){var V=T.get(L.name,I);return N&&N.categories[V]||V+""}var R=T.getRawDataItem(I);return R&&R.groupId?R.groupId+"":D||T.getId(I)}}var v=isAllIdSame(l,s),g={};if(!v)for(var $=0;$<s.length;$++){var y=s[$],x=y.data.getItemGraphicEl(y.dataIndex);x&&(g[x.id]=!0)}function w(S,C){var A=l[C],T=s[S],I=T.data.hostModel,D=A.data.getItemGraphicEl(A.dataIndex),M=T.data.getItemGraphicEl(T.dataIndex);if(D===M){M&&animateElementStyles(M,T.dataIndex,I);return}D&&g[D.id]||M&&(stopAnimation(M),D?(stopAnimation(D),removeEl(D),p=!0,applyMorphAnimation(getPathList(D),getPathList(M),T.divide,I,S,u)):fadeInElement(M,I,S))}new DataDiffer$1(l,s,h(!0,v),h(!1,v),null,"multiple").update(w).updateManyToOne(function(S,C){var A=s[S],T=A.data,I=T.hostModel,D=T.getItemGraphicEl(A.dataIndex),M=filter(map$1(C,function(L){return l[L].data.getItemGraphicEl(l[L].dataIndex)}),function(L){return L&&L!==D&&!g[L.id]});D&&(stopAnimation(D),M.length?(each$f(M,function(L){stopAnimation(L),removeEl(L)}),p=!0,applyMorphAnimation(getPathList(M),getPathList(D),A.divide,I,S,u)):fadeInElement(D,I,A.dataIndex))}).updateOneToMany(function(S,C){var A=l[C],T=A.data.getItemGraphicEl(A.dataIndex);if(!(T&&g[T.id])){var I=filter(map$1(S,function(M){return s[M].data.getItemGraphicEl(s[M].dataIndex)}),function(M){return M&&M!==T}),D=s[S[0]].data.hostModel;I.length&&(each$f(I,function(M){return stopAnimation(M)}),T?(stopAnimation(T),removeEl(T),p=!0,applyMorphAnimation(getPathList(T),getPathList(I),A.divide,D,S[0],u)):each$f(I,function(M){return fadeInElement(M,D,S[0])}))}}).updateManyToMany(function(S,C){new DataDiffer$1(C,S,function(A){return l[A].data.getId(l[A].dataIndex)},function(A){return s[A].data.getId(s[A].dataIndex)}).update(function(A,T){w(S[A],C[T])}).execute()}).execute(),p&&each$f(r,function(S){var C=S.data,A=C.hostModel,T=A&&o.getViewOfSeriesModel(A),I=getAnimationConfig("update",A,0);T&&A.isAnimationEnabled()&&I&&I.duration>0&&T.group.traverse(function(D){D instanceof Path$1&&!D.animators.length&&D.animateFrom({style:{opacity:0}},I)})})}function getSeriesTransitionKey(a){var r=a.getModel("universalTransition").get("seriesKey");return r||a.id}function convertArraySeriesKeyToString(a){return isArray$1(a)?a.sort().join(","):a}function getDivideShapeFromData(a){if(a.hostModel)return a.hostModel.getModel("universalTransition").get("divideShape")}function findTransitionSeriesBatches(a,r){var o=createHashMap(),l=createHashMap(),s=createHashMap();return each$f(a.oldSeries,function(u,c){var d=a.oldData[c],f=getSeriesTransitionKey(u),p=convertArraySeriesKeyToString(f);l.set(p,d),isArray$1(f)&&each$f(f,function(h){s.set(h,{data:d,key:p})})}),each$f(r.updatedSeries,function(u){if(u.isUniversalTransitionEnabled()&&u.isAnimationEnabled()){var c=u.getData(),d=getSeriesTransitionKey(u),f=convertArraySeriesKeyToString(d),p=l.get(f);if(p)o.set(f,{oldSeries:[{divide:getDivideShapeFromData(p),data:p}],newSeries:[{divide:getDivideShapeFromData(c),data:c}]});else if(isArray$1(d)){var h=[];each$f(d,function($){var y=l.get($);y&&h.push({divide:getDivideShapeFromData(y),data:y})}),h.length&&o.set(f,{oldSeries:h,newSeries:[{data:c,divide:getDivideShapeFromData(c)}]})}else{var v=s.get(d);if(v){var g=o.get(v.key);g||(g={oldSeries:[{data:v.data,divide:getDivideShapeFromData(v.data)}],newSeries:[]},o.set(v.key,g)),g.newSeries.push({data:c,divide:getDivideShapeFromData(c)})}}}}),o}function querySeries(a,r){for(var o=0;o<a.length;o++){var l=r.seriesIndex!=null&&r.seriesIndex===a[o].seriesIndex||r.seriesId!=null&&r.seriesId===a[o].id;if(l)return o}}function transitionSeriesFromOpt(a,r,o,l){var s=[],u=[];each$f(normalizeToArray(a.from),function(c){var d=querySeries(r.oldSeries,c);d>=0&&s.push({data:r.oldData[d],divide:getDivideShapeFromData(r.oldData[d]),dim:c.dimension})}),each$f(normalizeToArray(a.to),function(c){var d=querySeries(o.updatedSeries,c);if(d>=0){var f=o.updatedSeries[d].getData();u.push({data:f,divide:getDivideShapeFromData(f),dim:c.dimension})}}),s.length>0&&u.length>0&&transitionBetween(s,u,l)}function installUniversalTransition(a){a.registerUpdateLifecycle("series:beforeupdate",function(r,o,l){each$f(normalizeToArray(l.seriesTransition),function(s){each$f(normalizeToArray(s.to),function(u){for(var c=l.updatedSeries,d=0;d<c.length;d++)(u.seriesIndex!=null&&u.seriesIndex===c[d].seriesIndex||u.seriesId!=null&&u.seriesId===c[d].id)&&(c[d][SERIES_UNIVERSAL_TRANSITION_PROP]=!0)})})}),a.registerUpdateLifecycle("series:transition",function(r,o,l){var s=getUniversalTransitionGlobalStore(o);if(s.oldSeries&&l.updatedSeries&&l.optionChanged){var u=l.seriesTransition;if(u)each$f(normalizeToArray(u),function(g){transitionSeriesFromOpt(g,s,l,o)});else{var c=findTransitionSeriesBatches(s,l);each$f(c.keys(),function(g){var $=c.get(g);transitionBetween($.oldSeries,$.newSeries,o)})}each$f(l.updatedSeries,function(g){g[SERIES_UNIVERSAL_TRANSITION_PROP]&&(g[SERIES_UNIVERSAL_TRANSITION_PROP]=!1)})}for(var d=r.getSeries(),f=s.oldSeries=[],p=s.oldData=[],h=0;h<d.length;h++){var v=d[h].getData();v.count()<DATA_COUNT_THRESHOLD&&(f.push(d[h]),p.push(v))}})}use([install$S]),use([install$T]),use([install$R,install$Q,install$P,install$N,install$L,install$J,install$I,install$H,install$G,install$F,install$E,install$C,install$B,install$A,install$z,install$y,install$x,install$w,install$v,install$u,install$t,install$s]),use(install$q),use(install$p),use(install$K),use(install$o),use(install$D),use(install$n),use(install$m),use(install$k),use(install$j),use(install$r),use(install$i),use(install$h),use(install$g),use(install$f),use(install$e),use(install$d),use(install$a),use(install$7),use(install$9),use(install$8),use(install$4),use(install$6),use(install$5),use(install$3),use(install$2),use(install$1),use(installUniversalTransition),use(installLabelLayout);var echarts=Object.freeze(Object.defineProperty({__proto__:null,registerLocale,version,dependencies,PRIORITY,init:init$1,connect,disConnect,disconnect,dispose,getInstanceByDom,getInstanceById,registerTheme,registerPreprocessor,registerProcessor,registerPostInit,registerPostUpdate,registerUpdateLifecycle,registerAction,registerCoordinateSystem,getCoordinateSystemDimensions,registerLayout,registerVisual,registerLoading,setCanvasCreator,registerMap:registerMap$1,getMap,registerTransform,dataTool,throttle,use,setPlatformAPI,parseGeoJSON,parseGeoJson:parseGeoJSON,env:env$1,Model:Model$1,Axis:Axis$1,innerDrawElementOnCanvas:brushSingle,zrender,matrix,vector,zrUtil:util$1,color,helper,number,time,graphic,format,util,List:SeriesData$1,ComponentModel:ComponentModel$1,ComponentView:ComponentView$1,SeriesModel:SeriesModel$1,ChartView:ChartView$1,extendComponentModel,extendComponentView,extendSeriesModel,extendChartView},Symbol.toStringTag,{value:"Module"}));const components={Copyright,RichEditor,DialogSelect,ItemSelect,AttachmentUpload,ImageUpload,FileUpload,ViewForm,ViewTable,ViewChart,ModalForm,ModalTable,FormSetting,FormSettingLayout,TableSetting,ModalFormFilter,ModalFormSort,Shortcut,NoticeList,iLink:Link},install=function(a){install.installed||(window&&(window.$t=i18n$1.global.t),a.use(store),a.use(i18n$1),a.use(ViewUIPlus__default.default,{i18n:i18n$1}),a.use(plugins$1),a.mixin(mixinApp),Object.keys(components).forEach(r=>{a.component(r,components[r])}),a.directive("focus",focus),a.directive("tab-hide",tabHide),a.config.globalProperties.$echarts=echarts)},API={install},files={"./pages/account/login.vue":__glob_44_0,"./pages/common/home.vue":__glob_44_1,"./pages/common/task-form.vue":__glob_44_2,"./pages/common/todo.vue":__glob_44_3,"./pages/system/apiLog.vue":__glob_44_4,"./pages/system/applicationType.vue":__glob_44_5,"./pages/system/customPage.vue":__glob_44_6,"./pages/system/customTable.vue":__glob_44_7,"./pages/system/dict.vue":__glob_44_8,"./pages/system/dictType.vue":__glob_44_9,"./pages/system/entityView.vue":__glob_44_10,"./pages/system/extendColumn.vue":__glob_44_11,"./pages/system/formView.vue":__glob_44_12,"./pages/system/i18nText.vue":__glob_44_13,"./pages/system/log.vue":__glob_44_14,"./pages/system/notice.vue":__glob_44_15,"./pages/system/openApi.vue":__glob_44_16,"./pages/system/openUser.vue":__glob_44_17,"./pages/system/organization.vue":__glob_44_18,"./pages/system/organizationType.vue":__glob_44_19,"./pages/system/permission.vue":__glob_44_20,"./pages/system/planJob.vue":__glob_44_21,"./pages/system/printTemplate.vue":__glob_44_22,"./pages/system/process.vue":__glob_44_23,"./pages/system/processType.vue":__glob_44_24,"./pages/system/role.vue":__glob_44_25,"./pages/system/rolePropertyEdit.vue":__glob_44_26,"./pages/system/sequenceSetting.vue":__glob_44_27,"./pages/system/systemData.vue":__glob_44_28,"./pages/system/tableView.vue":__glob_44_29,"./pages/system/taskQueue.vue":__glob_44_30,"./pages/system/user.vue":__glob_44_31,"./pages/template/processPage.vue":__glob_44_32,"./pages/template/reportPage.vue":__glob_44_33,"./pages/template/viewPage.vue":__glob_44_34,"./pages/system/error/404.vue":__glob_44_35},pages={};Object.keys(files).forEach(a=>{pages[a.replace(/(\.\/pages\/)/g,"")]=files[a].default});const created=async a=>{await store.dispatch("admin/i18n/load",a),store.commit("admin/menu/setHeader",menuHeader),store.dispatch("admin/account/load"),store.dispatch("admin/layout/listenFullscreen"),a.config.globalProperties.$pages=pages},routeChanged=a=>{store.dispatch("admin/menu/setMenuList",a)};exports.App=App,exports.applicationApi=applicationApi,exports.basicLayout=index,exports.createRouter=create$3,exports.created=created,exports.customModelApi=customModelApi,exports.dataSourceApi=dataSourceApi,exports.default=API,exports.i18n=i18n$1,exports.lodop=lodop,exports.mixinPage=mixinPage,exports.modelApi=modelApi,exports.pages=pages,exports.request=service,exports.routeChanged=routeChanged,exports.setting=Setting,exports.store=store,exports.taskApi=taskApi,exports.util=util$2,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mooho-base-admin-plus",
3
3
  "description": "MOOHO basic framework for admin by Vue3",
4
- "version": "0.4.19",
4
+ "version": "0.4.20",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "dotnetVersion": "1.4.0",
7
7
  "license": "MIT",
package/src/index.js CHANGED
@@ -180,6 +180,9 @@ const created = async app => {
180
180
  // 初始化全屏监听
181
181
  store.dispatch('admin/layout/listenFullscreen');
182
182
 
183
+ // 所有页面
184
+ app.config.globalProperties.$pages = pages;
185
+
183
186
  // // 加载远程 i18n
184
187
  // if (Setting.i18n.remote) loadRemoteLocaleMessages(i18n);
185
188
  };
package/test/main.js CHANGED
@@ -50,8 +50,8 @@ const app = createApp({
50
50
  });
51
51
 
52
52
  app.use(router);
53
- //app.use(store);
54
- //app.use(i18n);
55
53
  app.use(moohoBaseAdminPlus);
56
54
 
55
+ //app.config.globalProperties.$pages = pages;
56
+
57
57
  app.mount('#app');