| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-06cbbfe2"],{"1c59c":function(e,t,n){"use strict";var i=n("6d61"),a=n("6566");i("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),a)},"313e":function(e,t,n){"use strict";n.r(t),n.d(t,"version",(function(){return u["B"]})),n.d(t,"dependencies",(function(){return u["d"]})),n.d(t,"PRIORITY",(function(){return u["a"]})),n.d(t,"init",(function(){return u["l"]})),n.d(t,"connect",(function(){return u["b"]})),n.d(t,"disConnect",(function(){return u["e"]})),n.d(t,"disconnect",(function(){return u["f"]})),n.d(t,"dispose",(function(){return u["g"]})),n.d(t,"getInstanceByDom",(function(){return u["i"]})),n.d(t,"getInstanceById",(function(){return u["j"]})),n.d(t,"registerTheme",(function(){return u["w"]})),n.d(t,"registerPreprocessor",(function(){return u["u"]})),n.d(t,"registerProcessor",(function(){return u["v"]})),n.d(t,"registerPostInit",(function(){return u["s"]})),n.d(t,"registerPostUpdate",(function(){return u["t"]})),n.d(t,"registerUpdateLifecycle",(function(){return u["y"]})),n.d(t,"registerAction",(function(){return u["m"]})),n.d(t,"registerCoordinateSystem",(function(){return u["n"]})),n.d(t,"getCoordinateSystemDimensions",(function(){return u["h"]})),n.d(t,"registerLocale",(function(){return u["q"]})),n.d(t,"registerLayout",(function(){return u["o"]})),n.d(t,"registerVisual",(function(){return u["z"]})),n.d(t,"registerLoading",(function(){return u["p"]})),n.d(t,"setCanvasCreator",(function(){return u["A"]})),n.d(t,"registerMap",(function(){return u["r"]})),n.d(t,"getMap",(function(){return u["k"]})),n.d(t,"registerTransform",(function(){return u["x"]})),n.d(t,"dataTool",(function(){return u["c"]})),n.d(t,"zrender",(function(){return y})),n.d(t,"matrix",(function(){return v})),n.d(t,"vector",(function(){return m})),n.d(t,"zrUtil",(function(){return b})),n.d(t,"color",(function(){return x})),n.d(t,"throttle",(function(){return _["c"]})),n.d(t,"helper",(function(){return i})),n.d(t,"use",(function(){return c["a"]})),n.d(t,"setPlatformAPI",(function(){return Q["e"]})),n.d(t,"parseGeoJSON",(function(){return me})),n.d(t,"parseGeoJson",(function(){return me})),n.d(t,"number",(function(){return a})),n.d(t,"time",(function(){return r})),n.d(t,"graphic",(function(){return o})),n.d(t,"format",(function(){return s})),n.d(t,"util",(function(){return l})),n.d(t,"env",(function(){return We["a"]})),n.d(t,"List",(function(){return g["a"]})),n.d(t,"Model",(function(){return F["a"]})),n.d(t,"Axis",(function(){return ht})),n.d(t,"ComponentModel",(function(){return h["a"]})),n.d(t,"ComponentView",(function(){return d["a"]})),n.d(t,"SeriesModel",(function(){return p["b"]})),n.d(t,"ChartView",(function(){return f["a"]})),n.d(t,"innerDrawElementOnCanvas",(function(){return dt["b"]})),n.d(t,"extendComponentModel",(function(){return pt})),n.d(t,"extendComponentView",(function(){return ft})),n.d(t,"extendSeriesModel",(function(){return gt})),n.d(t,"extendChartView",(function(){return yt}));var i={};n.r(i),n.d(i,"createList",(function(){return U})),n.d(i,"getLayoutRect",(function(){return H["g"]})),n.d(i,"createDimensions",(function(){return O["a"]})),n.d(i,"dataStack",(function(){return q})),n.d(i,"createSymbol",(function(){return Y["a"]})),n.d(i,"createScale",(function(){return J})),n.d(i,"mixinAxisModelCommonMethods",(function(){return K})),n.d(i,"getECData",(function(){return W["a"]})),n.d(i,"enableHoverEmphasis",(function(){return X["o"]})),n.d(i,"createTextStyle",(function(){return $}));var a={};n.r(a),n.d(a,"linearMap",(function(){return be["m"]})),n.d(a,"round",(function(){return be["w"]})),n.d(a,"asc",(function(){return be["c"]})),n.d(a,"getPrecision",(function(){return be["h"]})),n.d(a,"getPrecisionSafe",(function(){return be["i"]})),n.d(a,"getPixelPrecision",(function(){return be["g"]})),n.d(a,"getPercentWithPrecision",(function(){return be["f"]})),n.d(a,"MAX_SAFE_INTEGER",(function(){return be["a"]})),n.d(a,"remRadian",(function(){return be["v"]})),n.d(a,"isRadianAroundZero",(function(){return be["l"]})),n.d(a,"parseDate",(function(){return be["p"]})),n.d(a,"quantity",(function(){return be["s"]})),n.d(a,"quantityExponent",(function(){return be["t"]})),n.d(a,"nice",(function(){return be["n"]})),n.d(a,"quantile",(function(){return be["r"]})),n.d(a,"reformIntervals",(function(){return be["u"]})),n.d(a,"isNumeric",(function(){return be["k"]})),n.d(a,"numericToNumber",(function(){return be["o"]}));var r={};n.r(r),n.d(r,"parse",(function(){return be["p"]})),n.d(r,"format",(function(){return xe["h"]}));var o={};n.r(o),n.d(o,"extendShape",(function(){return _e["extendShape"]})),n.d(o,"extendPath",(function(){return _e["extendPath"]})),n.d(o,"makePath",(function(){return _e["makePath"]})),n.d(o,"makeImage",(function(){return _e["makeImage"]})),n.d(o,"mergePath",(function(){return _e["mergePath"]})),n.d(o,"resizePath",(function(){return _e["resizePath"]})),n.d(o,"createIcon",(function(){return _e["createIcon"]})),n.d(o,"updateProps",(function(){return Oe["h"]})),n.d(o,"initProps",(function(){return Oe["c"]})),n.d(o,"getTransform",(function(){return _e["getTransform"]})),n.d(o,"clipPointsByRect",(function(){return _e["clipPointsByRect"]})),n.d(o,"clipRectByRect",(function(){return _e["clipRectByRect"]})),n.d(o,"registerShape",(function(){return _e["registerShape"]})),n.d(o,"getShapeClass",(function(){return _e["getShapeClass"]})),n.d(o,"Group",(function(){return Se["a"]})),n.d(o,"Image",(function(){return we["a"]})),n.d(o,"Text",(function(){return Me["a"]})),n.d(o,"Circle",(function(){return Ie["a"]})),n.d(o,"Ellipse",(function(){return je["a"]})),n.d(o,"Sector",(function(){return Ae["a"]})),n.d(o,"Ring",(function(){return Ce["a"]})),n.d(o,"Polygon",(function(){return Te["a"]})),n.d(o,"Polyline",(function(){return De["a"]})),n.d(o,"Rect",(function(){return Le["a"]})),n.d(o,"Line",(function(){return Pe["a"]})),n.d(o,"BezierCurve",(function(){return ke["a"]})),n.d(o,"Arc",(function(){return Ne["a"]})),n.d(o,"IncrementalDisplayable",(function(){return Re["a"]})),n.d(o,"CompoundPath",(function(){return Ee["a"]})),n.d(o,"LinearGradient",(function(){return Ve["a"]})),n.d(o,"RadialGradient",(function(){return ze["a"]})),n.d(o,"BoundingRect",(function(){return te["a"]}));var s={};n.r(s),n.d(s,"addCommas",(function(){return Be["a"]})),n.d(s,"toCamelCase",(function(){return Be["j"]})),n.d(s,"normalizeCssArray",(function(){return Be["i"]})),n.d(s,"encodeHTML",(function(){return Ge["a"]})),n.d(s,"formatTpl",(function(){return Be["e"]})),n.d(s,"getTooltipMarker",(function(){return Be["g"]})),n.d(s,"formatTime",(function(){return Be["d"]})),n.d(s,"capitalFirst",(function(){return Be["b"]})),n.d(s,"truncateText",(function(){return Fe["c"]})),n.d(s,"getTextRect",(function(){return He["a"]}));var l={};n.r(l),n.d(l,"map",(function(){return b["map"]})),n.d(l,"each",(function(){return b["each"]})),n.d(l,"indexOf",(function(){return b["indexOf"]})),n.d(l,"inherits",(function(){return b["inherits"]})),n.d(l,"reduce",(function(){return b["reduce"]})),n.d(l,"filter",(function(){return b["filter"]})),n.d(l,"bind",(function(){return b["bind"]})),n.d(l,"curry",(function(){return b["curry"]})),n.d(l,"isArray",(function(){return b["isArray"]})),n.d(l,"isString",(function(){return b["isString"]})),n.d(l,"isObject",(function(){return b["isObject"]})),n.d(l,"isFunction",(function(){return b["isFunction"]})),n.d(l,"extend",(function(){return b["extend"]})),n.d(l,"defaults",(function(){return b["defaults"]})),n.d(l,"clone",(function(){return b["clone"]})),n.d(l,"merge",(function(){return b["merge"]}));var c=n("22b4"),u=n("1be7"),h=n("6cb7"),d=n("b12f"),p=n("4f85"),f=n("e887"),g=n("b682"),y=n("697e7"),v=n("1687"),m=n("401b"),b=n("6d8b"),x=n("41ef"),_=n("88b3"),O=n("b1d4"),S=n("2f45"),w=n("e0d3"),M=n("1f39"),I=function(){function e(e){this.coordSysDims=[],this.axisMap=Object(b["createHashMap"])(),this.categoryAxisMap=Object(b["createHashMap"])(),this.coordSysName=e}return e}();function j(e){var t=e.get("coordinateSystem"),n=new I(t),i=A[t];if(i)return i(e,n,n.axisMap,n.categoryAxisMap),n}var A={cartesian2d:function(e,t,n,i){var a=e.getReferringComponents("xAxis",w["b"]).models[0],r=e.getReferringComponents("yAxis",w["b"]).models[0];t.coordSysDims=["x","y"],n.set("x",a),n.set("y",r),C(a)&&(i.set("x",a),t.firstCategoryDimIndex=0),C(r)&&(i.set("y",r),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,i){var a=e.getReferringComponents("singleAxis",w["b"]).models[0];t.coordSysDims=["single"],n.set("single",a),C(a)&&(i.set("single",a),t.firstCategoryDimIndex=0)},polar:function(e,t,n,i){var a=e.getReferringComponents("polar",w["b"]).models[0],r=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",r),n.set("angle",o),C(r)&&(i.set("radius",r),t.firstCategoryDimIndex=0),C(o)&&(i.set("angle",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,i){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,i){var a=e.ecModel,r=a.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=r.dimensions.slice();Object(b["each"])(r.parallelAxisIndex,(function(e,r){var s=a.getComponent("parallelAxis",e),l=o[r];n.set(l,s),C(s)&&(i.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=r))}))}};function C(e){return"category"===e.get("type")}var T=n("ec6f"),D=n("ee1a"),L=n("0f99"),P=n("07fd");function k(e,t){var n,i=e.get("coordinateSystem"),a=M["a"].get(i);return t&&t.coordSysDims&&(n=b["map"](t.coordSysDims,(function(e){var n={name:e},i=t.axisMap.get(e);if(i){var a=i.get("type");n.type=Object(S["a"])(a)}return n}))),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function N(e,t,n){var i,a;return n&&b["each"](e,(function(e,r){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(null==i&&(i=r),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(a=!0)})),a||null==i||(e[i].otherDims.itemName=0),i}function R(e,t,n){n=n||{};var i,a=t.getSourceManager(),r=!1;e?(r=!0,i=Object(T["c"])(e)):(i=a.getSource(),r=i.sourceFormat===P["f"]);var o=j(t),s=k(t,o),l=n.useEncodeDefaulter,c=b["isFunction"](l)?l:l?b["curry"](L["c"],s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!r},h=Object(O["b"])(i,u),d=N(h.dimensions,n.createInvertedIndices,o),p=r?null:a.getSharedDataStore(h),f=Object(D["a"])(t,{schema:h,store:p}),y=new g["a"](h,t);y.setCalculationInfo(f);var v=null!=d&&E(i)?function(e,t,n,i){return i===d?n:this.defaultDimValueGetter(e,t,n,i)}:null;return y.hasItemOption=!1,y.initData(r?i:p,null,v),y}function E(e){if(e.sourceFormat===P["f"]){var t=V(e.data||[]);return!b["isArray"](Object(w["h"])(t))}}function V(e){var t=0;while(t<e.length&&null==e[t])t++;return e[t]}var z=R,B=n("697e"),G=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},e.prototype.getCoordSysModel=function(){},e}(),F=n("4319"),H=n("f934"),W=n("861c"),Z=n("7837"),Y=n("a15a"),X=n("7d6c");function U(e){return z(null,e)}var q={isDimensionStacked:D["c"],enableDataStack:D["a"],getStackedDimension:D["b"]};function J(e,t){var n=t;t instanceof F["a"]||(n=new F["a"](t));var i=B["a"](n);return i.setExtent(e[0],e[1]),B["i"](i,n),i}function K(e){b["mixin"](e,G)}function $(e,t){return t=t||{},Object(Z["c"])(e,null,null,"normal"!==t.state)}var Q=n("726e"),ee=n("9ab4"),te=n("9850"),ne=n("8728"),ie=1e-8;function ae(e,t){return Math.abs(e-t)<ie}function re(e,t,n){var i=0,a=e[0];if(!a)return!1;for(var r=1;r<e.length;r++){var o=e[r];i+=Object(ne["a"])(a[0],a[1],o[0],o[1],t,n),a=o}var s=e[0];return ae(a[0],s[0])&&ae(a[1],s[1])||(i+=Object(ne["a"])(a[0],a[1],s[0],s[1],t,n)),0!==i}var oe=[];function se(e,t){for(var n=0;n<e.length;n++)m["applyTransform"](e[n],e[n],t)}function le(e,t,n,i){for(var a=0;a<e.length;a++){var r=e[a];i&&(r=i.project(r)),r&&isFinite(r[0])&&isFinite(r[1])&&(m["min"](t,t,r),m["max"](n,n,r))}}function ce(e){for(var t=0,n=0,i=0,a=e.length,r=e[a-1][0],o=e[a-1][1],s=0;s<a;s++){var l=e[s][0],c=e[s][1],u=r*c-l*o;t+=u,n+=(r+l)*u,i+=(o+c)*u,r=l,o=c}return t?[n/t/3,i/t/3,t]:[e[0][0]||0,e[0][1]||0]}var ue=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},e}(),he=function(){function e(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return e}(),de=function(){function e(e){this.type="linestring",this.points=e}return e}(),pe=function(e){function t(t,n,i){var a=e.call(this,t)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return Object(ee["a"])(t,e),t.prototype.calcCenter=function(){for(var e,t=this.geometries,n=0,i=0;i<t.length;i++){var a=t[i],r=a.exterior,o=r&&r.length;o>n&&(e=a,n=o)}if(e)return ce(e.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],i=[-1/0,-1/0],a=this.geometries;return Object(b["each"])(a,(function(t){"polygon"===t.type?le(t.exterior,n,i,e):Object(b["each"])(t.points,(function(t){le(t,n,i,e)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),t=new te["a"](n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var i=0,a=n.length;i<a;i++){var r=n[i];if("polygon"===r.type){var o=r.exterior,s=r.interiors;if(re(o,e[0],e[1])){for(var l=0;l<(s?s.length:0);l++)if(re(s[l],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,i){var a=this.getBoundingRect(),r=a.width/a.height;n?i||(i=n/r):n=r*i;for(var o=new te["a"](e,t,n,i),s=a.calculateTransform(o),l=this.geometries,c=0;c<l.length;c++){var u=l[c];"polygon"===u.type?(se(u.exterior,s),Object(b["each"])(u.interiors,(function(e){se(e,s)}))):Object(b["each"])(u.points,(function(e){se(e,s)}))}a=this._rect,a.copy(o),this._center=[a.x+a.width/2,a.y+a.height/2]},t.prototype.cloneShallow=function(e){null==e&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(ue),fe=function(e){function t(t,n){var i=e.call(this,t)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return Object(ee["a"])(t,e),t.prototype.calcCenter=function(){var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],i=v["identity"](oe),a=e;while(a&&!a.isGeoSVGGraphicRoot)v["mul"](i,a.getLocalTransform(),i),a=a.parent;return v["invert"](i,i),m["applyTransform"](n,n,i),n},t}(ue);function ge(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;null==n&&(n=1024);var i=t.features;return b["each"](i,(function(e){var t=e.geometry,i=t.encodeOffsets,a=t.coordinates;if(i)switch(t.type){case"LineString":t.coordinates=ve(a,i,n);break;case"Polygon":ye(a,i,n);break;case"MultiLineString":ye(a,i,n);break;case"MultiPolygon":b["each"](a,(function(e,t){return ye(e,i[t],n)}))}})),t.UTF8Encoding=!1,t}function ye(e,t,n){for(var i=0;i<e.length;i++)e[i]=ve(e[i],t[i],n)}function ve(e,t,n){for(var i=[],a=t[0],r=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,l=e.charCodeAt(o+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=a,l+=r,a=s,r=l,i.push([s/n,l/n])}return i}function me(e,t){return e=ge(e),b["map"](b["filter"](e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,i=e.geometry,a=[];switch(i.type){case"Polygon":var r=i.coordinates;a.push(new he(r[0],r.slice(1)));break;case"MultiPolygon":b["each"](i.coordinates,(function(e){e[0]&&a.push(new he(e[0],e.slice(1)))}));break;case"LineString":a.push(new de([i.coordinates]));break;case"MultiLineString":a.push(new de(i.coordinates))}var o=new pe(n[t||"name"],a,n.cp);return o.properties=n,o}))}var be=n("3842"),xe=n("f876"),_e=n("2306"),Oe=n("deca"),Se=n("2dc5"),we=n("0da8"),Me=n("76a5"),Ie=n("d9fc"),je=n("ae69"),Ae=n("4aa2"),Ce=n("4573"),Te=n("87b1"),De=n("d498"),Le=n("c7a2"),Pe=n("cb11"),ke=n("ac0f"),Ne=n("8d32"),Re=n("392f"),Ee=n("d4c6"),Ve=n("48a9"),ze=n("dded"),Be=n("eda2"),Ge=n("65ed"),Fe=n("d409"),He=n("998a"),We=n("22d1"),Ze=n("e86a"),Ye=Object(w["o"])();function Xe(e){return"category"===e.type?qe(e):$e(e)}function Ue(e,t){return"category"===e.type?Ke(e,t):{ticks:b["map"](e.scale.getTicks(),(function(e){return e.value}))}}function qe(e){var t=e.getLabelModel(),n=Je(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function Je(e,t){var n,i,a=Qe(e,"labels"),r=Object(B["e"])(t),o=et(a,r);return o||(b["isFunction"](r)?n=ot(e,r):(i="auto"===r?nt(e):r,n=rt(e,i)),tt(a,r,{labels:n,labelCategoryInterval:i}))}function Ke(e,t){var n,i,a=Qe(e,"ticks"),r=Object(B["e"])(t),o=et(a,r);if(o)return o;if(t.get("show")&&!e.scale.isBlank()||(n=[]),b["isFunction"](r))n=ot(e,r,!0);else if("auto"===r){var s=Je(e,e.getLabelModel());i=s.labelCategoryInterval,n=b["map"](s.labels,(function(e){return e.tickValue}))}else i=r,n=rt(e,i,!0);return tt(a,r,{ticks:n,tickCategoryInterval:i})}function $e(e){var t=e.scale.getTicks(),n=Object(B["h"])(e);return{labels:b["map"](t,(function(t,i){return{level:t.level,formattedLabel:n(t,i),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}function Qe(e,t){return Ye(e)[t]||(Ye(e)[t]=[])}function et(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function tt(e,t,n){return e.push({key:t,value:n}),n}function nt(e){var t=Ye(e).autoInterval;return null!=t?t:Ye(e).autoInterval=e.calculateCategoryInterval()}function it(e){var t=at(e),n=Object(B["h"])(e),i=(t.axisRotate-t.labelRotate)/180*Math.PI,a=e.scale,r=a.getExtent(),o=a.count();if(r[1]-r[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=r[0],c=e.dataToCoord(l+1)-e.dataToCoord(l),u=Math.abs(c*Math.cos(i)),h=Math.abs(c*Math.sin(i)),d=0,p=0;l<=r[1];l+=s){var f=0,g=0,y=Ze["d"](n({value:l}),t.font,"center","top");f=1.3*y.width,g=1.3*y.height,d=Math.max(d,f,7),p=Math.max(p,g,7)}var v=d/u,m=p/h;isNaN(v)&&(v=1/0),isNaN(m)&&(m=1/0);var b=Math.max(0,Math.floor(Math.min(v,m))),x=Ye(e.model),_=e.getExtent(),O=x.lastAutoInterval,S=x.lastTickCount;return null!=O&&null!=S&&Math.abs(O-b)<=1&&Math.abs(S-o)<=1&&O>b&&x.axisExtent0===_[0]&&x.axisExtent1===_[1]?b=O:(x.lastTickCount=o,x.lastAutoInterval=b,x.axisExtent0=_[0],x.axisExtent1=_[1]),b}function at(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function rt(e,t,n){var i=Object(B["h"])(e),a=e.scale,r=a.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),c=r[0],u=a.count();0!==c&&l>1&&u/l>2&&(c=Math.round(Math.ceil(c/l)*l));var h=Object(B["j"])(e),d=o.get("showMinLabel")||h,p=o.get("showMaxLabel")||h;d&&c!==r[0]&&g(r[0]);for(var f=c;f<=r[1];f+=l)g(f);function g(e){var t={value:e};s.push(n?e:{formattedLabel:i(t),rawLabel:a.getLabel(t),tickValue:e})}return p&&f-l!==r[1]&&g(r[1]),s}function ot(e,t,n){var i=e.scale,a=Object(B["h"])(e),r=[];return b["each"](i.getTicks(),(function(e){var o=i.getLabel(e),s=e.value;t(e.value,o)&&r.push(n?s:{formattedLabel:a(e),rawLabel:o,tickValue:s})})),r}var st=[0,1],lt=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=n&&e<=i},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return Object(be["g"])(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&"ordinal"===i.type&&(n=n.slice(),ct(n,i.count())),Object(be["m"])(e,st,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),ct(n,i.count()));var a=Object(be["m"])(e,n,st,t);return this.scale.scale(a)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=Ue(this,t),i=n.ticks,a=Object(b["map"])(i,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this),r=t.get("alignWithLabel");return ut(this,a,r,e.clamp),a},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),i=Object(b["map"])(n,(function(e){return Object(b["map"])(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this);return i},e.prototype.getViewLabels=function(){return Xe(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return it(this)},e}();function ct(e,t){var n=e[1]-e[0],i=t,a=n/i/2;e[0]+=a,e[1]-=a}function ut(e,t,n,i){var a=t.length;if(e.onBand&&!n&&a){var r,o,s=e.getExtent();if(1===a)t[0].coord=s[0],r=t[1]={coord:s[0]};else{var l=t[a-1].tickValue-t[0].tickValue,c=(t[a-1].coord-t[0].coord)/l;Object(b["each"])(t,(function(e){e.coord-=c/2}));var u=e.scale.getExtent();o=1+u[1]-t[a-1].tickValue,r={coord:t[a-1].coord+c*o},t.push(r)}var h=s[0]>s[1];d(t[0].coord,s[0])&&(i?t[0].coord=s[0]:t.shift()),i&&d(s[0],t[0].coord)&&t.unshift({coord:s[0]}),d(s[1],r.coord)&&(i?r.coord=s[1]:t.pop()),i&&d(r.coord,s[1])&&t.push({coord:s[1]})}function d(e,t){return e=Object(be["w"])(e),t=Object(be["w"])(t),h?e>t:e<t}}var ht=lt,dt=n("5210");function pt(e){var t=h["a"].extend(e);return h["a"].registerClass(t),t}function ft(e){var t=d["a"].extend(e);return d["a"].registerClass(t),t}function gt(e){var t=p["b"].extend(e);return p["b"].registerClass(t),t}function yt(e){var t=f["a"].extend(e);return f["a"].registerClass(t),t}var vt=n("ee29");Object(c["a"])(vt["a"]);var mt=n("f95e"),bt=n("7a29"),xt=n("cbe5"),_t=n("dd4f"),Ot=Math.sin,St=Math.cos,wt=Math.PI,Mt=2*Math.PI,It=180/wt,jt=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},e.prototype.moveTo=function(e,t){this._add("M",e,t)},e.prototype.lineTo=function(e,t){this._add("L",e,t)},e.prototype.bezierCurveTo=function(e,t,n,i,a,r){this._add("C",e,t,n,i,a,r)},e.prototype.quadraticCurveTo=function(e,t,n,i){this._add("Q",e,t,n,i)},e.prototype.arc=function(e,t,n,i,a,r){this.ellipse(e,t,n,n,0,i,a,r)},e.prototype.ellipse=function(e,t,n,i,a,r,o,s){var l=o-r,c=!s,u=Math.abs(l),h=Object(bt["j"])(u-Mt)||(c?l>=Mt:-l>=Mt),d=l>0?l%Mt:l%Mt+Mt,p=!1;p=!!h||!Object(bt["j"])(u)&&d>=wt===!!c;var f=e+n*St(r),g=t+i*Ot(r);this._start&&this._add("M",f,g);var y=Math.round(a*It);if(h){var v=1/this._p,m=(c?1:-1)*(Mt-v);this._add("A",n,i,y,1,+c,e+n*St(r+m),t+i*Ot(r+m)),v>.01&&this._add("A",n,i,y,0,+c,f,g)}else{var b=e+n*St(o),x=t+i*Ot(o);this._add("A",n,i,y,+p,+c,b,x)}},e.prototype.rect=function(e,t,n,i){this._add("M",e,t),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,i,a,r,o,s,l){for(var c=[],u=this._p,h=1;h<arguments.length;h++){var d=arguments[h];if(isNaN(d))return void(this._invalid=!0);c.push(Math.round(d*u)/u)}this._d.push(e+c.join(" ")),this._start="Z"===e},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),At=jt,Ct=n("8d1d"),Tt="none",Dt=Math.round;function Lt(e){var t=e.fill;return null!=t&&t!==Tt}function Pt(e){var t=e.stroke;return null!=t&&t!==Tt}var kt=["lineCap","miterLimit","lineJoin"],Nt=Object(b["map"])(kt,(function(e){return"stroke-"+e.toLowerCase()}));function Rt(e,t,n,i){var a=null==t.opacity?1:t.opacity;if(n instanceof we["a"])e("opacity",a);else{if(Lt(t)){var r=Object(bt["p"])(t.fill);e("fill",r.color);var o=null!=t.fillOpacity?t.fillOpacity*r.opacity*a:r.opacity*a;(i||o<1)&&e("fill-opacity",o)}else e("fill",Tt);if(Pt(t)){var s=Object(bt["p"])(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?n.getLineScale():1,c=l?(t.lineWidth||0)/l:0,u=null!=t.strokeOpacity?t.strokeOpacity*s.opacity*a:s.opacity*a,h=t.strokeFirst;if((i||1!==c)&&e("stroke-width",c),(i||h)&&e("paint-order",h?"stroke":"fill"),(i||u<1)&&e("stroke-opacity",u),t.lineDash){var d=Object(Ct["a"])(n),p=d[0],f=d[1];p&&(f=Dt(f||0),e("stroke-dasharray",p.join(",")),(f||i)&&e("stroke-dashoffset",f))}else i&&e("stroke-dasharray",Tt);for(var g=0;g<kt.length;g++){var y=kt[g];if(i||t[y]!==xt["a"][y]){var v=t[y]||xt["a"][y];v&&e(Nt[g],v)}}}else i&&e("stroke",Tt)}}var Et="http://www.w3.org/2000/svg",Vt="http://www.w3.org/1999/xlink",zt="http://www.w3.org/2000/xmlns/",Bt="http://www.w3.org/XML/1998/namespace";function Gt(e){return document.createElementNS(Et,e)}function Ft(e,t,n,i,a){return{tag:e,attrs:n||{},children:i,text:a,key:t}}function Ht(e,t){var n=[];if(t)for(var i in t){var a=t[i],r=i;!1!==a&&(!0!==a&&null!=a&&(r+='="'+a+'"'),n.push(r))}return"<"+e+" "+n.join(" ")+">"}function Wt(e){return"</"+e+">"}function Zt(e,t){t=t||{};var n=t.newline?"\n":"";function i(e){var t=e.children,a=e.tag,r=e.attrs;return Ht(a,r)+Object(Ge["a"])(e.text)+(t?""+n+Object(b["map"])(t,(function(e){return i(e)})).join(n)+n:"")+Wt(a)}return i(e)}function Yt(e,t,n){n=n||{};var i=n.newline?"\n":"",a=" {"+i,r=i+"}",o=Object(b["map"])(Object(b["keys"])(e),(function(t){return t+a+Object(b["map"])(Object(b["keys"])(e[t]),(function(n){return n+":"+e[t][n]+";"})).join(i)+r})).join(i),s=Object(b["map"])(Object(b["keys"])(t),(function(e){return"@keyframes "+e+a+Object(b["map"])(Object(b["keys"])(t[e]),(function(n){return n+a+Object(b["map"])(Object(b["keys"])(t[e][n]),(function(i){var a=t[e][n][i];return"d"===i&&(a='path("'+a+'")'),i+":"+a+";"})).join(i)+r})).join(i)+r})).join(i);return o||s?["<![CDATA[",o,s,"]]>"].join(i):""}function Xt(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Ut(e,t,n,i){return Ft("svg","root",{width:e,height:t,xmlns:Et,"xmlns:xlink":Vt,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+e+" "+t},n)}var qt=n("5e76"),Jt=n("8582"),Kt=n("20c8"),$t=n("b362"),Qt={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},en="transform-origin";function tn(e,t,n){var i=Object(b["extend"])({},e.shape);Object(b["extend"])(i,t),e.buildPath(n,i);var a=new At;return a.reset(Object(bt["f"])(e)),n.rebuildPath(a,1),a.generateStr(),a.getStr()}function nn(e,t){var n=t.originX,i=t.originY;(n||i)&&(e[en]=n+"px "+i+"px")}var an={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function rn(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function on(e,t,n){var i,a,r=e.shape.paths,o={};if(Object(b["each"])(r,(function(e){var t=Xt(n.zrId);t.animation=!0,ln(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,l=Object(b["keys"])(r),c=l.length;if(c){a=l[c-1];var u=r[a];for(var h in u){var d=u[h];o[h]=o[h]||{d:""},o[h].d+=d.d||""}for(var p in s){var f=s[p].animation;f.indexOf(a)>=0&&(i=f)}}})),i){t.d=!1;var s=rn(o,n);return i.replace(a,s)}}function sn(e){return Object(b["isString"])(e)?Qt[e]?"cubic-bezier("+Qt[e]+")":Object($t["a"])(e)?e:"":""}function ln(e,t,n,i){var a=e.animators,r=a.length,o=[];if(e instanceof Ee["a"]){var s=on(e,t,n);if(s)o.push(s);else if(!r)return}else if(!r)return;for(var l={},c=0;c<r;c++){var u=a[c],h=[u.getMaxTime()/1e3+"s"],d=sn(u.getClip().easing),p=u.getDelay();d?h.push(d):h.push("linear"),p&&h.push(p/1e3+"s"),u.getLoop()&&h.push("infinite");var f=h.join(" ");l[f]=l[f]||[f,[]],l[f][1].push(u)}function g(a){var r,o=a[1],s=o.length,l={},c={},u={},h="animation-timing-function";function d(e,t,n){for(var i=e.getTracks(),a=e.getMaxTime(),r=0;r<i.length;r++){var o=i[r];if(o.needsAnimate()){var s=o.keyframes,l=o.propName;if(n&&(l=n(l)),l)for(var c=0;c<s.length;c++){var u=s[c],d=Math.round(u.time/a*100)+"%",p=sn(u.easing),f=u.rawValue;(Object(b["isString"])(f)||Object(b["isNumber"])(f))&&(t[d]=t[d]||{},t[d][l]=u.rawValue,p&&(t[d][h]=p))}}}}for(var p=0;p<s;p++){var f=o[p],g=f.targetName;g?"shape"===g&&d(f,c):!i&&d(f,l)}for(var y in l){var v={};Object(Jt["b"])(v,e),Object(b["extend"])(v,l[y]);var m=Object(bt["g"])(v),x=l[y][h];u[y]=m?{transform:m}:{},nn(u[y],v),x&&(u[y][h]=x)}var _=!0;for(var y in c){u[y]=u[y]||{};var O=!r;x=c[y][h];O&&(r=new Kt["a"]);var S=r.len();r.reset(),u[y].d=tn(e,c[y],r);var w=r.len();if(!O&&S!==w){_=!1;break}x&&(u[y][h]=x)}if(!_)for(var y in u)delete u[y].d;if(!i)for(p=0;p<s;p++){f=o[p],g=f.targetName;"style"===g&&d(f,u,(function(e){return an[e]}))}var M,I=Object(b["keys"])(u),j=!0;for(p=1;p<I.length;p++){var A=I[p-1],C=I[p];if(u[A][en]!==u[C][en]){j=!1;break}M=u[A][en]}if(j&&M){for(var y in u)u[y][en]&&delete u[y][en];t[en]=M}if(Object(b["filter"])(I,(function(e){return Object(b["keys"])(u[e]).length>0})).length){var T=rn(u,n);return T+" "+a[0]+" both"}}for(var y in l){s=g(l[y]);s&&o.push(s)}if(o.length){var v=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+v]={animation:o.join(",")},t["class"]=v}}var cn=Math.round;function un(e){return e&&Object(b["isString"])(e.src)}function hn(e){return e&&Object(b["isFunction"])(e.toDataURL)}function dn(e,t,n,i){Rt((function(a,r){var o="fill"===a||"stroke"===a;o&&Object(bt["k"])(r)?In(t,e,a,i):o&&Object(bt["n"])(r)?jn(n,e,a,i):e[a]=r}),t,n,!1),Mn(n,e,i)}function pn(e){return Object(bt["j"])(e[0]-1)&&Object(bt["j"])(e[1])&&Object(bt["j"])(e[2])&&Object(bt["j"])(e[3]-1)}function fn(e){return Object(bt["j"])(e[4])&&Object(bt["j"])(e[5])}function gn(e,t,n){if(t&&(!fn(t)||!pn(t))){var i=n?10:1e4;e.transform=pn(t)?"translate("+cn(t[4]*i)/i+" "+cn(t[5]*i)/i+")":Object(bt["e"])(t)}}function yn(e,t,n){for(var i=e.points,a=[],r=0;r<i.length;r++)a.push(cn(i[r][0]*n)/n),a.push(cn(i[r][1]*n)/n);t.points=a.join(" ")}function vn(e){return!e.smooth}function mn(e){var t=Object(b["map"])(e,(function(e){return"string"===typeof e?[e,e]:e}));return function(e,n,i){for(var a=0;a<t.length;a++){var r=t[a],o=e[r[0]];null!=o&&(n[r[1]]=cn(o*i)/i)}}}var bn={circle:[mn(["cx","cy","r"])],polyline:[yn,vn],polygon:[yn,vn]};function xn(e){for(var t=e.animators,n=0;n<t.length;n++)if("shape"===t[n].targetName)return!0;return!1}function _n(e,t){var n=e.style,i=e.shape,a=bn[e.type],r={},o=t.animation,s="path",l=e.style.strokePercent,c=t.compress&&Object(bt["f"])(e)||4;if(!a||t.willUpdate||a[1]&&!a[1](i)||o&&xn(e)||l<1){e.path||e.createPathProxy();var u=e.path;e.shapeChanged()&&(u.beginPath(),e.buildPath(u,e.shape),e.pathUpdated());var h=u.getVersion(),d=e,p=d.__svgPathBuilder;d.__svgPathVersion===h&&p&&l===d.__svgPathStrokePercent||(p||(p=d.__svgPathBuilder=new At),p.reset(c),u.rebuildPath(p,l),p.generateStr(),d.__svgPathVersion=h,d.__svgPathStrokePercent=l),r.d=p.getStr()}else{s=e.type;var f=Math.pow(10,c);a[0](i,r,f)}return gn(r,e.transform),dn(r,n,e,t),t.animation&&ln(e,r,t),Ft(s,e.id+"",r)}function On(e,t){var n=e.style,i=n.image;if(i&&!Object(b["isString"])(i)&&(un(i)?i=i.src:hn(i)&&(i=i.toDataURL())),i){var a=n.x||0,r=n.y||0,o=n.width,s=n.height,l={href:i,width:o,height:s};return a&&(l.x=a),r&&(l.y=r),gn(l,e.transform),dn(l,n,e,t),t.animation&&ln(e,l,t),Ft("image",e.id+"",l)}}function Sn(e,t){var n=e.style,i=n.text;if(null!=i&&(i+=""),i&&!isNaN(n.x)&&!isNaN(n.y)){var a=n.font||Q["a"],r=n.x||0,o=Object(bt["b"])(n.y||0,Object(Ze["e"])(a),n.textBaseline),s=bt["a"][n.textAlign]||n.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(Object(Me["b"])(n)){var c="",u=n.fontStyle,h=Object(Me["c"])(n.fontSize);if(!parseFloat(h))return;var d=n.fontFamily||Q["b"],p=n.fontWeight;c+="font-size:"+h+";font-family:"+d+";",u&&"normal"!==u&&(c+="font-style:"+u+";"),p&&"normal"!==p&&(c+="font-weight:"+p+";"),l.style=c}else l.style="font: "+a;return i.match(/\s/)&&(l["xml:space"]="preserve"),r&&(l.x=r),o&&(l.y=o),gn(l,e.transform),dn(l,n,e,t),t.animation&&ln(e,l,t),Ft("text",e.id+"",l,void 0,i)}}function wn(e,t){return e instanceof xt["b"]?_n(e,t):e instanceof we["a"]?On(e,t):e instanceof _t["a"]?Sn(e,t):void 0}function Mn(e,t,n){var i=e.style;if(Object(bt["i"])(i)){var a=Object(bt["h"])(e),r=n.shadowCache,o=r[a];if(!o){var s=e.getGlobalScale(),l=s[0],c=s[1];if(!l||!c)return;var u=i.shadowOffsetX||0,h=i.shadowOffsetY||0,d=i.shadowBlur,p=Object(bt["p"])(i.shadowColor),f=p.opacity,g=p.color,y=d/2/l,v=d/2/c,m=y+" "+v;o=n.zrId+"-s"+n.shadowIdx++,n.defs[o]=Ft("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Ft("feDropShadow","",{dx:u/l,dy:h/c,stdDeviation:m,"flood-color":g,"flood-opacity":f})]),r[a]=o}t.filter=Object(bt["d"])(o)}}function In(e,t,n,i){var a,r=e[n],o={gradientUnits:r.global?"userSpaceOnUse":"objectBoundingBox"};if(Object(bt["m"])(r))a="linearGradient",o.x1=r.x,o.y1=r.y,o.x2=r.x2,o.y2=r.y2;else{if(!Object(bt["o"])(r))return void 0;a="radialGradient",o.cx=Object(b["retrieve2"])(r.x,.5),o.cy=Object(b["retrieve2"])(r.y,.5),o.r=Object(b["retrieve2"])(r.r,.5)}for(var s=r.colorStops,l=[],c=0,u=s.length;c<u;++c){var h=100*Object(bt["q"])(s[c].offset)+"%",d=s[c].color,p=Object(bt["p"])(d),f=p.color,g=p.opacity,y={offset:h};y["stop-color"]=f,g<1&&(y["stop-opacity"]=g),l.push(Ft("stop",c+"",y))}var v=Ft(a,"",o,l),m=Zt(v),x=i.gradientCache,_=x[m];_||(_=i.zrId+"-g"+i.gradientIdx++,x[m]=_,o.id=_,i.defs[_]=Ft(a,_,o,l)),t[n]=Object(bt["d"])(_)}function jn(e,t,n,i){var a,r=e.style[n],o={patternUnits:"userSpaceOnUse"};if(Object(bt["l"])(r)){var s=r.imageWidth,l=r.imageHeight,c=void 0,u=r.image;if(Object(b["isString"])(u)?c=u:un(u)?c=u.src:hn(u)&&(c=u.toDataURL()),"undefined"===typeof Image){var h="Image width/height must been given explictly in svg-ssr renderer.";Object(b["assert"])(s,h),Object(b["assert"])(l,h)}else if(null==s||null==l){var d=function(e,t){if(e){var n=e.elm,i=e.attrs.width=s||t.width,a=e.attrs.height=l||t.height;n&&(n.setAttribute("width",i),n.setAttribute("height",a))}},p=Object(qt["a"])(c,null,e,(function(e){d(f,e),d(a,e)}));p&&p.width&&p.height&&(s=s||p.width,l=l||p.height)}a=Ft("image","img",{href:c,width:s,height:l}),o.width=s,o.height=l}else r.svgElement&&(a=Object(b["clone"])(r.svgElement),o.width=r.svgWidth,o.height=r.svgHeight);if(a){o.patternTransform=Object(bt["g"])(r);var f=Ft("pattern","",o,[a]),g=Zt(f),y=i.patternCache,v=y[g];v||(v=i.zrId+"-p"+i.patternIdx++,y[g]=v,o.id=v,f=i.defs[v]=Ft("pattern",v,o,[a])),t[n]=Object(bt["d"])(v)}}function An(e,t,n){var i=n.clipPathCache,a=n.defs,r=i[e.id];if(!r){r=n.zrId+"-c"+n.clipPathIdx++;var o={id:r};i[e.id]=r,a[r]=Ft("clipPath",r,o,[_n(e,n)])}t["clip-path"]=Object(bt["d"])(r)}function Cn(e){return document.createTextNode(e)}function Tn(e,t,n){e.insertBefore(t,n)}function Dn(e,t){e.removeChild(t)}function Ln(e,t){e.appendChild(t)}function Pn(e){return e.parentNode}function kn(e){return e.nextSibling}function Nn(e,t){e.textContent=t}var Rn=58,En=120,Vn=Ft("","");function zn(e){return void 0===e}function Bn(e){return void 0!==e}function Gn(e,t,n){for(var i={},a=t;a<=n;++a){var r=e[a].key;void 0!==r&&(i[r]=a)}return i}function Fn(e,t){var n=e.key===t.key,i=e.tag===t.tag;return i&&n}function Hn(e){var t,n=e.children,i=e.tag;if(Bn(i)){var a=e.elm=Gt(i);if(Yn(Vn,e),Object(b["isArray"])(n))for(t=0;t<n.length;++t){var r=n[t];null!=r&&Ln(a,Hn(r))}else Bn(e.text)&&!Object(b["isObject"])(e.text)&&Ln(a,Cn(e.text))}else e.elm=Cn(e.text);return e.elm}function Wn(e,t,n,i,a){for(;i<=a;++i){var r=n[i];null!=r&&Tn(e,Hn(r),t)}}function Zn(e,t,n,i){for(;n<=i;++n){var a=t[n];if(null!=a)if(Bn(a.tag)){var r=Pn(a.elm);Dn(r,a.elm)}else Dn(e,a.elm)}}function Yn(e,t){var n,i=t.elm,a=e&&e.attrs||{},r=t.attrs||{};if(a!==r){for(n in r){var o=r[n],s=a[n];s!==o&&(!0===o?i.setAttribute(n,""):!1===o?i.removeAttribute(n):n.charCodeAt(0)!==En?i.setAttribute(n,o):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS(zt,n,o):n.charCodeAt(3)===Rn?i.setAttributeNS(Bt,n,o):n.charCodeAt(5)===Rn?i.setAttributeNS(Vt,n,o):i.setAttribute(n,o))}for(n in a)n in r||i.removeAttribute(n)}}function Xn(e,t,n){var i,a,r,o,s=0,l=0,c=t.length-1,u=t[0],h=t[c],d=n.length-1,p=n[0],f=n[d];while(s<=c&&l<=d)null==u?u=t[++s]:null==h?h=t[--c]:null==p?p=n[++l]:null==f?f=n[--d]:Fn(u,p)?(Un(u,p),u=t[++s],p=n[++l]):Fn(h,f)?(Un(h,f),h=t[--c],f=n[--d]):Fn(u,f)?(Un(u,f),Tn(e,u.elm,kn(h.elm)),u=t[++s],f=n[--d]):Fn(h,p)?(Un(h,p),Tn(e,h.elm,u.elm),h=t[--c],p=n[++l]):(zn(i)&&(i=Gn(t,s,c)),a=i[p.key],zn(a)?Tn(e,Hn(p),u.elm):(r=t[a],r.tag!==p.tag?Tn(e,Hn(p),u.elm):(Un(r,p),t[a]=void 0,Tn(e,r.elm,u.elm))),p=n[++l]);(s<=c||l<=d)&&(s>c?(o=null==n[d+1]?null:n[d+1].elm,Wn(e,o,n,l,d)):Zn(e,t,s,c))}function Un(e,t){var n=t.elm=e.elm,i=e.children,a=t.children;e!==t&&(Yn(e,t),zn(t.text)?Bn(i)&&Bn(a)?i!==a&&Xn(n,i,a):Bn(a)?(Bn(e.text)&&Nn(n,""),Wn(n,null,a,0,a.length-1)):Bn(i)?Zn(n,i,0,i.length-1):Bn(e.text)&&Nn(n,""):e.text!==t.text&&(Bn(i)&&Zn(n,i,0,i.length-1),Nn(n,t.text)))}function qn(e,t){if(Fn(e,t))Un(e,t);else{var n=e.elm,i=Pn(n);Hn(t),null!==i&&(Tn(i,t.elm,kn(n)),Zn(i,[e],0,0))}return t}var Jn=n("3437"),Kn=0,$n=function(){function e(e,t,n){if(this.type="svg",this.refreshHover=Qn("refreshHover"),this.configLayer=Qn("configLayer"),this.storage=t,this._opts=n=Object(b["extend"])({},n),this.root=e,this._id="zr"+Kn++,this._oldVNode=Ut(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=Gt("svg");Yn(null,this._oldVNode),i.appendChild(a),e.appendChild(i)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",qn(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return wn(e,Xt(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._backgroundColor,i=this._width,a=this._height,r=Xt(this._id);r.animation=e.animation,r.willUpdate=e.willUpdate,r.compress=e.compress;var o=[];if(n&&"none"!==n){var s=Object(bt["p"])(n),l=s.color,c=s.opacity;this._bgVNode=Ft("rect","bg",{width:i,height:a,x:"0",y:"0",id:"0",fill:l,"fill-opacity":c}),o.push(this._bgVNode)}else this._bgVNode=null;var u=e.compress?null:this._mainVNode=Ft("g","main",{},[]);this._paintList(t,r,u?u.children:o),u&&o.push(u);var h=Object(b["map"])(Object(b["keys"])(r.defs),(function(e){return r.defs[e]}));if(h.length&&o.push(Ft("defs","defs",{},h)),e.animation){var d=Yt(r.cssNodes,r.cssAnims,{newline:!0});if(d){var p=Ft("style","stl",{},[],d);o.push(p)}}return Ut(i,a,o,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},Zt(this.renderToVNode({animation:Object(b["retrieve2"])(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Object(b["retrieve2"])(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e;var t=this._bgVNode;if(t&&t.elm){var n=Object(bt["p"])(e),i=n.color,a=n.opacity;t.elm.setAttribute("fill",i),a<1&&t.elm.setAttribute("fill-opacity",a)}},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var i,a,r=e.length,o=[],s=0,l=0,c=0;c<r;c++){var u=e[c];if(!u.invisible){var h=u.__clipPaths,d=h&&h.length||0,p=a&&a.length||0,f=void 0;for(f=Math.max(d-1,p-1);f>=0;f--)if(h&&a&&h[f]===a[f])break;for(var g=p-1;g>f;g--)s--,i=o[s-1];for(var y=f+1;y<d;y++){var v={};An(h[y],v,t);var m=Ft("g","clip-g-"+l++,v,[]);(i?i.children:n).push(m),o[s++]=m,i=m}a=h;var b=wn(u,t);b&&(i?i.children:n).push(b)}}},e.prototype.resize=function(e,t){var n=this._opts,i=this.root,a=this._viewport;if(null!=e&&(n.width=e),null!=t&&(n.height=t),i&&a&&(a.style.display="none",e=Object(Jn["b"])(i,0,n),t=Object(Jn["b"])(i,1,n),a.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,a){var r=a.style;r.width=e+"px",r.height=t+"px"}var o=this._svgDom;o&&(o.setAttribute("width",e),o.setAttribute("height",t))}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=encodeURIComponent(this.renderToString()),n="data:image/svg+xml;";return e?(t=Object(bt["c"])(t),t&&n+"base64,"+t):n+"charset=UTF-8,"+t},e}();function Qn(e){return function(){0}}var ei=$n;function ti(e){e.registerPainter("svg",ei)}var ni=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(ee["a"])(t,e),t.prototype.getInitialData=function(e){return z(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new Se["a"],n=Object(Y["a"])("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),a=this.getData().getVisual("symbolRotate"),r="none"===i?"circle":i,o=.8*e.itemHeight,s=Object(Y["a"])(r,(e.itemWidth-o)/2,(e.itemHeight-o)/2,o,o,e.itemStyle.fill);t.add(s),s.setStyle(e.itemStyle);var l="inherit"===e.iconRotate?a:e.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),r.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(p["b"]),ii=ni,ai=n("2b17");function ri(e,t){var n=e.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var a=Object(ai["e"])(e,t,n[0]);return null!=a?a+"":null}if(i){for(var r=[],o=0;o<n.length;o++)r.push(Object(ai["e"])(e,t,n[o]));return r.join(" ")}}function oi(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!Object(b["isArray"])(t))return t+"";for(var i=[],a=0;a<n.length;a++){var r=e.getDimensionIndex(n[a]);r>=0&&i.push(t[r])}return i.join(" ")}var si=function(e){function t(t,n,i,a){var r=e.call(this)||this;return r.updateData(t,n,i,a),r}return Object(ee["a"])(t,e),t.prototype._createSymbol=function(e,t,n,i,a){this.removeAll();var r=Object(Y["a"])(e,-1,-1,2,2,null,a);r.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),r.drift=li,this._symbolType=e,this.add(r)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Object(X["r"])(this.childAt(0))},t.prototype.downplay=function(){Object(X["C"])(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?"move":n.cursor},t.prototype.updateData=function(e,n,i,a){this.silent=!1;var r=e.getItemVisual(n,"symbol")||"circle",o=e.hostModel,s=t.getSymbolSize(e,n),l=r!==this._symbolType,c=a&&a.disableAnimation;if(l){var u=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(r,e,n,s,u)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:s[0]/2,scaleY:s[1]/2};c?h.attr(d):Oe["h"](h,d,o,n),Object(Oe["g"])(h)}if(this._updateCommon(e,n,s,i,a),l){h=this.childAt(0);if(!c){d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Oe["c"](h,d,o,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,i,a){var r,o,s,l,c,u,h,d,p,f=this.childAt(0),g=e.hostModel;if(i&&(r=i.emphasisItemStyle,o=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,c=i.blurScope,h=i.labelStatesModels,d=i.hoverScale,p=i.cursorStyle,u=i.emphasisDisabled),!i||e.hasItemOption){var y=i&&i.itemModel?i.itemModel:e.getItemModel(t),v=y.getModel("emphasis");r=v.getModel("itemStyle").getItemStyle(),s=y.getModel(["select","itemStyle"]).getItemStyle(),o=y.getModel(["blur","itemStyle"]).getItemStyle(),l=v.get("focus"),c=v.get("blurScope"),u=v.get("disabled"),h=Object(Z["e"])(y),d=v.getShallow("scale"),p=y.getShallow("cursor")}var m=e.getItemVisual(t,"symbolRotate");f.attr("rotation",(m||0)*Math.PI/180||0);var x=Object(Y["b"])(e.getItemVisual(t,"symbolOffset"),n);x&&(f.x=x[0],f.y=x[1]),p&&f.attr("cursor",p);var _=e.getItemVisual(t,"style"),O=_.fill;if(f instanceof we["a"]){var S=f.style;f.useStyle(Object(b["extend"])({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},_))}else f.__isEmptyBrush?f.useStyle(Object(b["extend"])({},_)):f.useStyle(_),f.style.decal=null,f.setColor(O,a&&a.symbolInnerColor),f.style.strokeNoScale=!0;var w=e.getItemVisual(t,"liftZ"),M=this._z2;null!=w?null==M&&(this._z2=f.z2,f.z2+=w):null!=M&&(f.z2=M,this._z2=null);var I=a&&a.useNameLabel;function j(t){return I?e.getName(t):ri(e,t)}Object(Z["g"])(f,h,{labelFetcher:g,labelDataIndex:t,defaultText:j,inheritColor:O,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var A=f.ensureState("emphasis");A.style=r,f.ensureState("select").style=s,f.ensureState("blur").style=o;var C=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;A.scaleX=this._sizeX*C,A.scaleY=this._sizeY*C,this.setSymbolScale(1),Object(X["J"])(this,l,c,u)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var i=this.childAt(0),a=Object(W["a"])(this).dataIndex,r=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var o=i.getTextContent();o&&Oe["e"](o,{style:{opacity:0}},t,{dataIndex:a,removeOpt:r,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Oe["e"](i,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:a,cb:e,removeOpt:r})},t.getSymbolSize=function(e,t){return Object(Y["c"])(e.getItemVisual(t,"symbolSize"))},t}(Se["a"]);function li(e,t){this.parent.drift(e,t)}var ci=si;function ui(e,t,n,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function hi(e){return null==e||Object(b["isObject"])(e)||(e={isIgnore:e}),e||{}}function di(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Object(Z["e"])(t),cursorStyle:t.get("cursor")}}var pi=function(){function e(e){this.group=new Se["a"],this._SymbolCtor=e||ci}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=hi(t);var n=this.group,i=e.hostModel,a=this._data,r=this._SymbolCtor,o=t.disableAnimation,s=di(e),l={disableAnimation:o},c=t.getSymbolPoint||function(t){return e.getItemLayout(t)};a||n.removeAll(),e.diff(a).add((function(i){var a=c(i);if(ui(e,a,i,t)){var o=new r(e,i,s,l);o.setPosition(a),e.setItemGraphicEl(i,o),n.add(o)}})).update((function(u,h){var d=a.getItemGraphicEl(h),p=c(u);if(ui(e,p,u,t)){var f=e.getItemVisual(u,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==f)n.remove(d),d=new r(e,u,s,l),d.setPosition(p);else{d.updateData(e,u,s,l);var y={x:p[0],y:p[1]};o?d.attr(y):Oe["h"](d,y,i)}n.add(d),e.setItemGraphicEl(u,d)}else n.remove(d)})).remove((function(e){var t=a.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}),i)})).execute(),this._getSymbolPoint=c,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){var i=e._getSymbolPoint(n);t.setPosition(i),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=di(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function i(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=hi(n);for(var a=e.start;a<e.end;a++){var r=t.getItemLayout(a);if(ui(t,r,a,n)){var o=new this._SymbolCtor(t,a,this._seriesScope);o.traverse(i),o.setPosition(r),this.group.add(o),t.setItemGraphicEl(a,o),this._progressiveEls.push(o)}}},e.prototype.eachRendered=function(e){_e["traverseElements"](this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}),n.hostModel)})):t.removeAll()},e}(),fi=pi;function gi(e,t,n){var i=e.getBaseAxis(),a=e.getOtherAxis(i),r=yi(a,n),o=i.dim,s=a.dim,l=t.mapDimension(s),c=t.mapDimension(o),u="x"===s||"radius"===s?1:0,h=Object(b["map"])(e.dimensions,(function(e){return t.mapDimension(e)})),d=!1,p=t.getCalculationInfo("stackResultDimension");return Object(D["c"])(t,h[0])&&(d=!0,h[0]=p),Object(D["c"])(t,h[1])&&(d=!0,h[1]=p),{dataDimsForPoint:h,valueStart:r,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:l,baseDim:c,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function yi(e,t){var n=0,i=e.scale.getExtent();return"start"===t?n=i[0]:"end"===t?n=i[1]:Object(b["isNumber"])(t)&&!isNaN(t)?n=t:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function vi(e,t,n,i){var a=NaN;e.stacked&&(a=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(a)&&(a=e.valueStart);var r=e.baseDataOffset,o=[];return o[r]=n.get(e.baseDim,i),o[1-r]=a,t.dataToPoint(o)}var mi=n("f658");function bi(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}function xi(e,t,n,i,a,r,o,s){for(var l=bi(e,t),c=[],u=[],h=[],d=[],p=[],f=[],g=[],y=gi(a,t,o),v=e.getLayout("points")||[],m=t.getLayout("points")||[],b=0;b<l.length;b++){var x=l[b],_=!0,O=void 0,S=void 0;switch(x.cmd){case"=":O=2*x.idx,S=2*x.idx1;var w=v[O],M=v[O+1],I=m[S],j=m[S+1];(isNaN(w)||isNaN(M))&&(w=I,M=j),c.push(w,M),u.push(I,j),h.push(n[O],n[O+1]),d.push(i[S],i[S+1]),g.push(t.getRawIndex(x.idx1));break;case"+":var A=x.idx,C=y.dataDimsForPoint,T=a.dataToPoint([t.get(C[0],A),t.get(C[1],A)]);S=2*A,c.push(T[0],T[1]),u.push(m[S],m[S+1]);var D=vi(y,a,t,A);h.push(D[0],D[1]),d.push(i[S],i[S+1]),g.push(t.getRawIndex(A));break;case"-":_=!1}_&&(p.push(x),f.push(f.length))}f.sort((function(e,t){return g[e]-g[t]}));var L=c.length,P=Object(mi["a"])(L),k=Object(mi["a"])(L),N=Object(mi["a"])(L),R=Object(mi["a"])(L),E=[];for(b=0;b<f.length;b++){var V=f[b],z=2*b,B=2*V;P[z]=c[B],P[z+1]=c[B+1],k[z]=u[B],k[z+1]=u[B+1],N[z]=h[B],N[z+1]=h[B+1],R[z]=d[B],R[z+1]=d[B+1],E[b]=p[V]}return{current:P,next:k,stackedOnCurrent:N,stackedOnNext:R,status:E}}var _i=n("4a3f"),Oi=Math.min,Si=Math.max;function wi(e,t){return isNaN(e)||isNaN(t)}function Mi(e,t,n,i,a,r,o,s,l){for(var c,u,h,d,p,f,g=n,y=0;y<i;y++){var v=t[2*g],m=t[2*g+1];if(g>=a||g<0)break;if(wi(v,m)){if(l){g+=r;continue}break}if(g===n)e[r>0?"moveTo":"lineTo"](v,m),h=v,d=m;else{var b=v-c,x=m-u;if(b*b+x*x<.5){g+=r;continue}if(o>0){var _=g+r,O=t[2*_],S=t[2*_+1];while(O===v&&S===m&&y<i)y++,_+=r,g+=r,O=t[2*_],S=t[2*_+1],v=t[2*g],m=t[2*g+1],b=v-c,x=m-u;var w=y+1;if(l)while(wi(O,S)&&w<i)w++,_+=r,O=t[2*_],S=t[2*_+1];var M=.5,I=0,j=0,A=void 0,C=void 0;if(w>=i||wi(O,S))p=v,f=m;else{I=O-c,j=S-u;var T=v-c,D=O-v,L=m-u,P=S-m,k=void 0,N=void 0;if("x"===s){k=Math.abs(T),N=Math.abs(D);var R=I>0?1:-1;p=v-R*k*o,f=m,A=v+R*N*o,C=m}else if("y"===s){k=Math.abs(L),N=Math.abs(P);var E=j>0?1:-1;p=v,f=m-E*k*o,A=v,C=m+E*N*o}else k=Math.sqrt(T*T+L*L),N=Math.sqrt(D*D+P*P),M=N/(N+k),p=v-I*o*(1-M),f=m-j*o*(1-M),A=v+I*o*M,C=m+j*o*M,A=Oi(A,Si(O,v)),C=Oi(C,Si(S,m)),A=Si(A,Oi(O,v)),C=Si(C,Oi(S,m)),I=A-v,j=C-m,p=v-I*k/N,f=m-j*k/N,p=Oi(p,Si(c,v)),f=Oi(f,Si(u,m)),p=Si(p,Oi(c,v)),f=Si(f,Oi(u,m)),I=v-p,j=m-f,A=v+I*N/k,C=m+j*N/k}e.bezierCurveTo(h,d,p,f,v,m),h=A,d=C}else e.lineTo(v,m)}c=v,u=m,g+=r}return y}var Ii=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),ji=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return Object(ee["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Ii},t.prototype.buildPath=function(e,t){var n=t.points,i=0,a=n.length/2;if(t.connectNulls){for(;a>0;a--)if(!wi(n[2*a-2],n[2*a-1]))break;for(;i<a;i++)if(!wi(n[2*i],n[2*i+1]))break}while(i<a)i+=Mi(e,n,i,a,a,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,a=this.path,r=a.data,o=Kt["a"].CMD,s="x"===t,l=[],c=0;c<r.length;){var u=r[c++],h=void 0,d=void 0,p=void 0,f=void 0,g=void 0,y=void 0,v=void 0;switch(u){case o.M:n=r[c++],i=r[c++];break;case o.L:if(h=r[c++],d=r[c++],v=s?(e-n)/(h-n):(e-i)/(d-i),v<=1&&v>=0){var m=s?(d-i)*v+i:(h-n)*v+n;return s?[e,m]:[m,e]}n=h,i=d;break;case o.C:h=r[c++],d=r[c++],p=r[c++],f=r[c++],g=r[c++],y=r[c++];var b=s?Object(_i["f"])(n,h,p,g,e,l):Object(_i["f"])(i,d,f,y,e,l);if(b>0)for(var x=0;x<b;x++){var _=l[x];if(_<=1&&_>=0){m=s?Object(_i["a"])(i,d,f,y,_):Object(_i["a"])(n,h,p,g,_);return s?[e,m]:[m,e]}}n=g,i=y;break}}},t}(xt["b"]),Ai=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(ee["a"])(t,e),t}(Ii),Ci=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return Object(ee["a"])(t,e),t.prototype.getDefaultShape=function(){return new Ai},t.prototype.buildPath=function(e,t){var n=t.points,i=t.stackedOnPoints,a=0,r=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;r>0;r--)if(!wi(n[2*r-2],n[2*r-1]))break;for(;a<r;a++)if(!wi(n[2*a],n[2*a+1]))break}while(a<r){var s=Mi(e,n,a,r,r,1,t.smooth,o,t.connectNulls);Mi(e,i,a+s-1,s,r,-1,t.stackedOnSmooth,o,t.connectNulls),a+=s+1,e.closePath()}},t}(xt["b"]);function Ti(e,t,n,i,a){var r=e.getArea(),o=r.x,s=r.y,l=r.width,c=r.height,u=n.get(["lineStyle","width"])||2;o-=u/2,s-=u/2,l+=u,c+=u,o=Math.floor(o),l=Math.round(l);var h=new Le["a"]({shape:{x:o,y:s,width:l,height:c}});if(t){var d=e.getBaseAxis(),p=d.isHorizontal(),f=d.inverse;p?(f&&(h.shape.x+=l),h.shape.width=0):(f||(h.shape.y+=c),h.shape.height=0);var g=Object(b["isFunction"])(a)?function(e){a(e,h)}:null;Oe["c"](h,{shape:{width:l,height:c,x:o,y:s}},n,null,i,g)}return h}function Di(e,t,n){var i=e.getArea(),a=Object(be["w"])(i.r0,1),r=Object(be["w"])(i.r,1),o=new Ae["a"]({shape:{cx:Object(be["w"])(e.cx,1),cy:Object(be["w"])(e.cy,1),r0:a,r:r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(t){var s="angle"===e.getBaseAxis().dim;s?o.shape.endAngle=i.startAngle:o.shape.r=a,Oe["c"](o,{shape:{endAngle:i.endAngle,r:r}},n)}return o}function Li(e,t,n,i,a){return e?"polar"===e.type?Di(e,t,n):"cartesian2d"===e.type?Ti(e,t,n,i,a):null:null}function Pi(e,t){return e.type===t}function ki(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function Ni(e){for(var t=1/0,n=1/0,i=-1/0,a=-1/0,r=0;r<e.length;){var o=e[r++],s=e[r++];isNaN(o)||(t=Math.min(o,t),i=Math.max(o,i)),isNaN(s)||(n=Math.min(s,n),a=Math.max(s,a))}return[[t,n],[i,a]]}function Ri(e,t){var n=Ni(e),i=n[0],a=n[1],r=Ni(t),o=r[0],s=r[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(i[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function Ei(e){return b["isNumber"](e)?e:e?.5:0}function Vi(e,t,n){if(!n.valueDim)return[];for(var i=t.count(),a=Object(mi["a"])(2*i),r=0;r<i;r++){var o=vi(n,e,t,r);a[2*r]=o[0],a[2*r+1]=o[1]}return a}function zi(e,t,n,i){var a=t.getBaseAxis(),r="x"===a.dim||"radius"===a.dim?0:1,o=[],s=0,l=[],c=[],u=[],h=[];if(i){for(s=0;s<e.length;s+=2)isNaN(e[s])||isNaN(e[s+1])||h.push(e[s],e[s+1]);e=h}for(s=0;s<e.length-2;s+=2)switch(u[0]=e[s+2],u[1]=e[s+3],c[0]=e[s],c[1]=e[s+1],o.push(c[0],c[1]),n){case"end":l[r]=u[r],l[1-r]=c[1-r],o.push(l[0],l[1]);break;case"middle":var d=(c[r]+u[r])/2,p=[];l[r]=p[r]=d,l[1-r]=c[1-r],p[1-r]=u[1-r],o.push(l[0],l[1]),o.push(p[0],p[1]);break;default:l[r]=c[r],l[1-r]=u[1-r],o.push(l[0],l[1])}return o.push(e[s++],e[s++]),o}function Bi(e,t){var n,i,a=[],r=e.length;function o(e,t,n){var i=e.coord,a=(n-i)/(t.coord-i),r=Object(x["lerp"])(a,[e.color,t.color]);return{coord:n,color:r}}for(var s=0;s<r;s++){var l=e[s],c=l.coord;if(c<0)n=l;else{if(c>t){i?a.push(o(i,l,t)):n&&a.push(o(n,l,0),o(n,l,t));break}n&&(a.push(o(n,l,0)),n=null),a.push(l),i=l}}return a}function Gi(e,t,n){var i=e.getVisual("visualMeta");if(i&&i.length&&e.count()&&"cartesian2d"===t.type){for(var a,r,o=i.length-1;o>=0;o--){var s=e.getDimensionInfo(i[o].dimension);if(a=s&&s.coordDim,"x"===a||"y"===a){r=i[o];break}}if(r){var l=t.getAxis(a),c=b["map"](r.stops,(function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}})),u=c.length,h=r.outerColors.slice();u&&c[0].coord>c[u-1].coord&&(c.reverse(),h.reverse());var d=Bi(c,"x"===a?n.getWidth():n.getHeight()),p=d.length;if(!p&&u)return c[0].coord<0?h[1]?h[1]:c[u-1].color:h[0]?h[0]:c[0].color;var f=10,g=d[0].coord-f,y=d[p-1].coord+f,v=y-g;if(v<.001)return"transparent";b["each"](d,(function(e){e.offset=(e.coord-g)/v})),d.push({offset:p?d[p-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:h[0]||"transparent"});var m=new Ve["a"](0,0,0,0,d,!0);return m[a]=g,m[a+"2"]=y,m}}}function Fi(e,t,n){var i=e.get("showAllSymbol"),a="auto"===i;if(!i||a){var r=n.getAxesByScale("ordinal")[0];if(r&&(!a||!Hi(r,t))){var o=t.mapDimension(r.dim),s={};return b["each"](r.getViewLabels(),(function(e){var t=r.scale.getRawOrdinalNumber(e.tickValue);s[t]=1})),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function Hi(e,t){var n=e.getExtent(),i=Math.abs(n[1]-n[0])/e.scale.count();isNaN(i)&&(i=0);for(var a=t.count(),r=Math.max(1,Math.round(a/5)),o=0;o<a;o+=r)if(1.5*ci.getSymbolSize(t,o)[e.isHorizontal()?1:0]>i)return!1;return!0}function Wi(e,t){return isNaN(e)||isNaN(t)}function Zi(e){for(var t=e.length/2;t>0;t--)if(!Wi(e[2*t-2],e[2*t-1]))break;return t-1}function Yi(e,t){return[e[2*t],e[2*t+1]]}function Xi(e,t,n){for(var i,a,r=e.length/2,o="x"===n?0:1,s=0,l=-1,c=0;c<r;c++)if(a=e[2*c+o],!isNaN(a)&&!isNaN(e[2*c+1-o]))if(0!==c){if(i<=t&&a>=t||i>=t&&a<=t){l=c;break}s=c,i=a}else i=a;return{range:[s,l],t:(t-i)/(a-i)}}function Ui(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<X["g"].length;t++)if(e.get([X["g"][t],"endLabel","show"]))return!0;return!1}function qi(e,t,n,i){if(Pi(t,"cartesian2d")){var a=i.getModel("endLabel"),r=a.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=Ui(i)?function(n,i){e._endLabelOnDuring(n,i,o,s,r,a,t)}:null,c=t.getBaseAxis().isHorizontal(),u=Ti(t,n,i,(function(){var t=e._endLabel;t&&n&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})}),l);if(!i.get("clip",!0)){var h=u.shape,d=Math.max(h.width,h.height);c?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)}return l&&l(1,u),u}return Di(t,n,i)}function Ji(e,t){var n=t.getBaseAxis(),i=n.isHorizontal(),a=n.inverse,r=i?a?"right":"left":"center",o=i?"middle":a?"top":"bottom";return{normal:{align:e.get("align")||r,verticalAlign:e.get("verticalAlign")||o}}}var Ki=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(ee["a"])(t,e),t.prototype.init=function(){var e=new Se["a"],t=new fi;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},t.prototype.render=function(e,t,n){var i=this,a=e.coordinateSystem,r=this.group,o=e.getData(),s=e.getModel("lineStyle"),l=e.getModel("areaStyle"),c=o.getLayout("points")||[],u="polar"===a.type,h=this._coordSys,d=this._symbolDraw,p=this._polyline,f=this._polygon,g=this._lineGroup,y=e.get("animation"),v=!l.isEmpty(),m=l.get("origin"),x=gi(a,o,m),_=v&&Vi(a,o,x),O=e.get("showSymbol"),S=e.get("connectNulls"),w=O&&!u&&Fi(e,o,a),M=this._data;M&&M.eachItemGraphicEl((function(e,t){e.__temp&&(r.remove(e),M.setItemGraphicEl(t,null))})),O||d.remove(),r.add(g);var I,j=!u&&e.get("step");a&&a.getArea&&e.get("clip",!0)&&(I=a.getArea(),null!=I.width?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var A=Gi(o,a,n)||o.getVisual("style")[o.getVisual("drawType")];if(p&&h.type===a.type&&j===this._step){v&&!f?f=this._newPolygon(c,_):f&&!v&&(g.remove(f),f=this._polygon=null),u||this._initOrUpdateEndLabel(e,a,Object(Be["c"])(A));var C=g.getClipPath();if(C){var T=qi(this,a,!1,e);Oe["c"](C,{shape:T.shape},e)}else g.setClipPath(qi(this,a,!0,e));O&&d.updateData(o,{isIgnore:w,clipShape:I,disableAnimation:!0,getSymbolPoint:function(e){return[c[2*e],c[2*e+1]]}}),ki(this._stackedOnPoints,_)&&ki(this._points,c)||(y?this._doUpdateAnimation(o,_,a,n,j,m,S):(j&&(c=zi(c,a,j,S),_&&(_=zi(_,a,j,S))),p.setShape({points:c}),f&&f.setShape({points:c,stackedOnPoints:_})))}else O&&d.updateData(o,{isIgnore:w,clipShape:I,disableAnimation:!0,getSymbolPoint:function(e){return[c[2*e],c[2*e+1]]}}),y&&this._initSymbolLabelAnimation(o,a,I),j&&(c=zi(c,a,j,S),_&&(_=zi(_,a,j,S))),p=this._newPolyline(c),v?f=this._newPolygon(c,_):f&&(g.remove(f),f=this._polygon=null),u||this._initOrUpdateEndLabel(e,a,Object(Be["c"])(A)),g.setClipPath(qi(this,a,!0,e));var D=e.getModel("emphasis"),L=D.get("focus"),P=D.get("blurScope"),k=D.get("disabled");if(p.useStyle(b["defaults"](s.getLineStyle(),{fill:"none",stroke:A,lineJoin:"bevel"})),Object(X["I"])(p,e,"lineStyle"),p.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"])){var N=p.getState("emphasis").style;N.lineWidth=+p.style.lineWidth+1}Object(W["a"])(p).seriesIndex=e.seriesIndex,Object(X["J"])(p,L,P,k);var R=Ei(e.get("smooth")),E=e.get("smoothMonotone");if(p.setShape({smooth:R,smoothMonotone:E,connectNulls:S}),f){var V=o.getCalculationInfo("stackedOnSeries"),z=0;f.useStyle(b["defaults"](l.getAreaStyle(),{fill:A,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),V&&(z=Ei(V.get("smooth"))),f.setShape({smooth:R,stackedOnSmooth:z,smoothMonotone:E,connectNulls:S}),Object(X["I"])(f,e,"areaStyle"),Object(W["a"])(f).seriesIndex=e.seriesIndex,Object(X["J"])(f,L,P,k)}var B=function(e){i._changePolyState(e)};o.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=B)})),this._polyline.onHoverStateChange=B,this._data=o,this._coordSys=a,this._stackedOnPoints=_,this._points=c,this._step=j,this._valueOrigin=m,e.get("triggerLineEvent")&&(this.packEventData(e,p),f&&this.packEventData(e,f))},t.prototype.packEventData=function(e,t){Object(W["a"])(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,i){var a=e.getData(),r=w["u"](a,i);if(this._changePolyState("emphasis"),!(r instanceof Array)&&null!=r&&r>=0){var o=a.getLayout("points"),s=a.getItemGraphicEl(r);if(!s){var l=o[2*r],c=o[2*r+1];if(isNaN(l)||isNaN(c))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,c))return;var u=e.get("zlevel")||0,h=e.get("z")||0;s=new ci(a,r),s.x=l,s.y=c,s.setZ(u,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=u,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,a.setItemGraphicEl(r,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else f["a"].prototype.highlight.call(this,e,t,n,i)},t.prototype.downplay=function(e,t,n,i){var a=e.getData(),r=w["u"](a,i);if(this._changePolyState("normal"),null!=r&&r>=0){var o=a.getItemGraphicEl(r);o&&(o.__temp?(a.setItemGraphicEl(r,null),this.group.remove(o)):o.downplay())}else f["a"].prototype.downplay.call(this,e,t,n,i)},t.prototype._changePolyState=function(e){var t=this._polygon;Object(X["H"])(this._polyline,e),t&&Object(X["H"])(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new ji({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Ci({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var i,a,r=t.getBaseAxis(),o=r.inverse;"cartesian2d"===t.type?(i=r.isHorizontal(),a=!1):"polar"===t.type&&(i="angle"===r.dim,a=!0);var s=e.hostModel,l=s.get("animationDuration");b["isFunction"](l)&&(l=l(null));var c=s.get("animationDelay")||0,u=b["isFunction"](c)?c(null):c;e.eachItemGraphicEl((function(e,r){var s=e;if(s){var h=[e.x,e.y],d=void 0,p=void 0,f=void 0;if(n)if(a){var g=n,y=t.pointToCoord(h);i?(d=g.startAngle,p=g.endAngle,f=-y[1]/180*Math.PI):(d=g.r0,p=g.r,f=y[0])}else{var v=n;i?(d=v.x,p=v.x+v.width,f=e.x):(d=v.y+v.height,p=v.y,f=e.y)}var m=p===d?0:(f-d)/(p-d);o&&(m=1-m);var x=b["isFunction"](c)?c(r):l*m+u,_=s.getSymbolPath(),O=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),O&&O.animateFrom({style:{opacity:0}},{duration:300,delay:x}),_.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,n){var i=e.getModel("endLabel");if(Ui(e)){var a=e.getData(),r=this._polyline,o=a.getLayout("points");if(!o)return r.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new Me["a"]({z2:200}),s.ignoreClip=!0,r.setTextContent(this._endLabel),r.disableLabelAnimation=!0);var l=Zi(o);l>=0&&(Object(Z["g"])(r,Object(Z["e"])(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?oi(a,n):ri(a,e)},enableTextSetter:!0},Ji(i,t)),r.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,i,a,r,o){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var c=n.getLayout("points"),u=n.hostModel,h=u.get("connectNulls"),d=r.get("precision"),p=r.get("distance")||0,f=o.getBaseAxis(),g=f.isHorizontal(),y=f.inverse,v=t.shape,m=y?g?v.x:v.y+v.height:g?v.x+v.width:v.y,b=(g?p:0)*(y?-1:1),x=(g?0:-p)*(y?-1:1),_=g?"x":"y",O=Xi(c,m,_),S=O.range,M=S[1]-S[0],I=void 0;if(M>=1){if(M>1&&!h){var j=Yi(c,S[0]);s.attr({x:j[0]+b,y:j[1]+x}),a&&(I=u.getRawValue(S[0]))}else{j=l.getPointOn(m,_);j&&s.attr({x:j[0]+b,y:j[1]+x});var A=u.getRawValue(S[0]),C=u.getRawValue(S[1]);a&&(I=w["k"](n,d,A,C,O.t))}i.lastFrameIndex=S[0]}else{var T=1===e||i.lastFrameIndex>0?S[0]:0;j=Yi(c,T);a&&(I=u.getRawValue(T)),s.attr({x:j[0]+b,y:j[1]+x})}a&&Object(Z["f"])(s).setLabelText(I)}},t.prototype._doUpdateAnimation=function(e,t,n,i,a,r,o){var s=this._polyline,l=this._polygon,c=e.hostModel,u=xi(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,r),h=u.current,d=u.stackedOnCurrent,p=u.next,f=u.stackedOnNext;if(a&&(h=zi(u.current,n,a,o),d=zi(u.stackedOnCurrent,n,a,o),p=zi(u.next,n,a,o),f=zi(u.stackedOnNext,n,a,o)),Ri(h,p)>3e3||l&&Ri(d,f)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f})));s.shape.__points=u.current,s.shape.points=h;var g={shape:{points:p}};u.current!==h&&(g.shape.__points=u.next),s.stopAnimation(),Oe["h"](s,g,c),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),Oe["h"](l,{shape:{stackedOnPoints:f}},c),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var y=[],v=u.status,m=0;m<v.length;m++){var b=v[m].cmd;if("="===b){var x=e.getItemGraphicEl(v[m].idx1);x&&y.push({el:x,ptIdx:m})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var e=s.shape.__points,t=0;t<y.length;t++){var n=y[t].el,i=2*y[t].ptIdx;n.x=e[i],n.y=e[i+1],n.markRedraw()}}))},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(e,i){e.__temp&&(t.remove(e),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(f["a"]),$i=Ki,Qi=n("cccd");function ea(e,t){return{seriesType:e,plan:Object(Qi["a"])(),reset:function(e){var n=e.getData(),i=e.coordinateSystem,a=e.pipelineContext,r=t||a.large;if(i){var o=Object(b["map"])(i.dimensions,(function(e){return n.mapDimension(e)})).slice(0,2),s=o.length,l=n.getCalculationInfo("stackResultDimension");Object(D["c"])(n,o[0])&&(o[0]=l),Object(D["c"])(n,o[1])&&(o[1]=l);var c=n.getStore(),u=n.getDimensionIndex(o[0]),h=n.getDimensionIndex(o[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,a=r&&Object(mi["a"])(n*s),o=[],l=[],d=e.start,p=0;d<e.end;d++){var f=void 0;if(1===s){var g=c.get(u,d);f=i.dataToPoint(g,null,l)}else o[0]=c.get(u,d),o[1]=c.get(h,d),f=i.dataToPoint(o,null,l);r?(a[p++]=f[0],a[p++]=f[1]):t.setItemLayout(d,f.slice())}r&&t.setLayout("points",a)}}}}}}var ta={average:function(e){for(var t=0,n=0,i=0;i<e.length;i++)isNaN(e[i])||(t+=e[i],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},na=function(e){return Math.round(e.length/2)};function ia(e){return{seriesType:e,reset:function(e,t,n){var i=e.getData(),a=e.get("sampling"),r=e.coordinateSystem,o=i.count();if(o>10&&"cartesian2d"===r.type&&a){var s=r.getBaseAxis(),l=r.getOtherAxis(s),c=s.getExtent(),u=n.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(u||1),d=Math.round(o/h);if(isFinite(d)&&d>1){"lttb"===a&&e.setData(i.lttbDownSample(i.mapDimension(l.dim),1/d));var p=void 0;Object(b["isString"])(a)?p=ta[a]:Object(b["isFunction"])(a)&&(p=a),p&&e.setData(i.downSample(i.mapDimension(l.dim),1/d,p,na))}}}}}function aa(e){e.registerChartView($i),e.registerSeriesModel(ii),e.registerLayout(ea("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,ia("line"))}var ra=n("9d57"),oa=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.getInitialData=function(e,t){return z(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e){var t=this.coordinateSystem;if(t&&t.clampData){var n=t.dataToPoint(t.clampData(e)),i=this.getData(),a=i.getLayout("offset"),r=i.getLayout("size"),o=t.getBaseAxis().isHorizontal()?0:1;return n[o]+=a+r/2,n}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(p["b"]);p["b"].registerClass(oa);var sa=oa,la=n("8918"),ca=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.getInitialData=function(){return z(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Object(la["d"])(sa.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(sa),ua=ca,ha=n("c2be");function da(e,t){t=t||{};var n=t.isRoundCap;return function(t,i,a){var r=i.position;if(!r||r instanceof Array)return Object(Ze["c"])(t,i,a);var o=e(r),s=null!=i.distance?i.distance:5,l=this.shape,c=l.cx,u=l.cy,h=l.r,d=l.r0,p=(h+d)/2,f=l.startAngle,g=l.endAngle,y=(f+g)/2,v=n?Math.abs(h-d)/2:0,m=Math.cos,b=Math.sin,x=c+h*m(f),_=u+h*b(f),O="left",S="top";switch(o){case"startArc":x=c+(d-s)*m(y),_=u+(d-s)*b(y),O="center",S="top";break;case"insideStartArc":x=c+(d+s)*m(y),_=u+(d+s)*b(y),O="center",S="bottom";break;case"startAngle":x=c+p*m(f)+fa(f,s+v,!1),_=u+p*b(f)+ga(f,s+v,!1),O="right",S="middle";break;case"insideStartAngle":x=c+p*m(f)+fa(f,-s+v,!1),_=u+p*b(f)+ga(f,-s+v,!1),O="left",S="middle";break;case"middle":x=c+p*m(y),_=u+p*b(y),O="center",S="middle";break;case"endArc":x=c+(h+s)*m(y),_=u+(h+s)*b(y),O="center",S="bottom";break;case"insideEndArc":x=c+(h-s)*m(y),_=u+(h-s)*b(y),O="center",S="top";break;case"endAngle":x=c+p*m(g)+fa(g,s+v,!0),_=u+p*b(g)+ga(g,s+v,!0),O="left",S="middle";break;case"insideEndAngle":x=c+p*m(g)+fa(g,-s+v,!0),_=u+p*b(g)+ga(g,-s+v,!0),O="right",S="middle";break;default:return Object(Ze["c"])(t,i,a)}return t=t||{},t.x=x,t.y=_,t.align=O,t.verticalAlign=S,t}}function pa(e,t,n,i){if(Object(b["isNumber"])(i))e.setTextConfig({rotation:i});else if(Object(b["isArray"])(t))e.setTextConfig({rotation:0});else{var a,r=e.shape,o=r.clockwise?r.startAngle:r.endAngle,s=r.clockwise?r.endAngle:r.startAngle,l=(o+s)/2,c=n(t);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":a=l;break;case"startAngle":case"insideStartAngle":a=o;break;case"endAngle":case"insideEndAngle":a=s;break;default:return void e.setTextConfig({rotation:0})}var u=1.5*Math.PI-a;"middle"===c&&u>Math.PI/2&&u<1.5*Math.PI&&(u-=Math.PI),e.setTextConfig({rotation:u})}}function fa(e,t,n){return t*Math.sin(e)*(n?-1:1)}function ga(e,t,n){return t*Math.cos(e)*(n?1:-1)}var ya=Math.max,va=Math.min;function ma(e,t){var n=e.getArea&&e.getArea();if(Pi(e,"cartesian2d")){var i=e.getBaseAxis();if("category"!==i.type||!i.onBand){var a=t.getLayout("bandWidth");i.isHorizontal()?(n.x-=a,n.width+=2*a):(n.y-=a,n.height+=2*a)}}return n}var ba=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return Object(ee["a"])(t,e),t.prototype.render=function(e,t,n,i){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var a=e.get("coordinateSystem");("cartesian2d"===a||"polar"===a)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,i))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){Object(_e["traverseElements"])(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,i){var a,r=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,c=l.getBaseAxis();"cartesian2d"===l.type?a=c.isHorizontal():"polar"===l.type&&(a="angle"===c.dim);var u=e.isAnimationEnabled()?e:null,h=Oa(e,l);h&&this._enableRealtimeSort(h,o,n);var d=e.get("clip",!0)||h,p=ma(l,o);r.removeClipPath();var f=e.get("roundCap",!0),g=e.get("showBackground",!0),y=e.getModel("backgroundStyle"),v=y.get("borderRadius")||0,m=[],b=this._backgroundEls,x=i&&i.isInitSort,_=i&&"changeAxisOrder"===i.type;function O(e){var t=Aa[l.type](o,e),n=za(l,a,t);return n.useStyle(y.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",v),m[e]=n,n}o.diff(s).add((function(t){var n=o.getItemModel(t),i=Aa[l.type](o,t,n);if(g&&O(t),o.hasValue(t)&&ja[l.type](i)){var s=!1;d&&(s=xa[l.type](p,i));var y=_a[l.type](e,o,t,i,a,u,c.model,!1,f);h&&(y.forceLabelAnimation=!0),Da(y,o,t,n,i,e,a,"polar"===l.type),x?y.attr({shape:i}):h?Sa(h,u,y,i,t,a,!1,!1):Object(Oe["c"])(y,{shape:i},e,t),o.setItemGraphicEl(t,y),r.add(y),y.ignore=s}})).update((function(t,n){var i=o.getItemModel(t),S=Aa[l.type](o,t,i);if(g){var w=void 0;0===b.length?w=O(n):(w=b[n],w.useStyle(y.getItemStyle()),"cartesian2d"===l.type&&w.setShape("r",v),m[t]=w);var M=Aa[l.type](o,t),I=Va(a,M,l);Object(Oe["h"])(w,{shape:I},u,t)}var j=s.getItemGraphicEl(n);if(o.hasValue(t)&&ja[l.type](S)){var A=!1;if(d&&(A=xa[l.type](p,S),A&&r.remove(j)),j?Object(Oe["g"])(j):j=_a[l.type](e,o,t,S,a,u,c.model,!!j,f),h&&(j.forceLabelAnimation=!0),_){var C=j.getTextContent();if(C){var T=Object(Z["f"])(C);null!=T.prevValue&&(T.prevValue=T.value)}}else Da(j,o,t,i,S,e,a,"polar"===l.type);x?j.attr({shape:S}):h?Sa(h,u,j,S,t,a,!0,_):Object(Oe["h"])(j,{shape:S},e,t,null),o.setItemGraphicEl(t,j),j.ignore=A,r.add(j)}else r.remove(j)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&Object(Oe["f"])(n,e,t)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new Se["a"]);S.removeAll();for(var w=0;w<m.length;++w)S.add(m[w]);r.add(S),this._backgroundEls=m,this._data=o},t.prototype._renderLarge=function(e,t,n){this._clear(),Na(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),Na(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)&&Li(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var i=this;if(t.count()){var a=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var r=function(e){var n=t.getItemGraphicEl(e),i=n&&n.shape;return i&&Math.abs(a.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(t,r,a,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var i=[];return e.each(e.mapDimension(t.dim),(function(e,t){var a=n(t);a=null==a?NaN:a,i.push({dataIndex:t,mappedValue:a,ordinalNumber:e})})),i.sort((function(e,t){return t.mappedValue-e.mappedValue})),{ordinalNumbers:Object(b["map"])(i,(function(e){return e.ordinalNumber}))}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var i=n.scale,a=e.mapDimension(n.dim),r=Number.MAX_VALUE,o=0,s=i.getOrdinalMeta().categories.length;o<s;++o){var l=e.rawIndexOf(a,i.getRawOrdinalNumber(o)),c=l<0?Number.MIN_VALUE:t(e.indexOfRawIndex(l));if(c>r)return!0;r=c}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,i=n.getExtent(),a=Math.max(0,i[0]),r=Math.min(i[1],n.getOrdinalMeta().categories.length-1);a<=r;++a)if(e.ordinalNumbers[a]!==n.getRawOrdinalNumber(a))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,i){if(this._isOrderChangedWithinSameData(e,t,n)){var a=this._dataSort(e,n,t);this._isOrderDifferentInView(a,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:a}))}},t.prototype._dispatchInitSort=function(e,t,n){var i=t.baseAxis,a=this._dataSort(e,i,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:a})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){Object(Oe["f"])(t,e,Object(W["a"])(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(f["a"]),xa={cartesian2d:function(e,t){var n=t.width<0?-1:1,i=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var a=e.x+e.width,r=e.y+e.height,o=ya(t.x,e.x),s=va(t.x+t.width,a),l=ya(t.y,e.y),c=va(t.y+t.height,r),u=s<o,h=c<l;return t.x=u&&o>a?s:o,t.y=h&&l>r?c:l,t.width=u?0:s-o,t.height=h?0:c-l,n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),u||h},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var i=t.r;t.r=t.r0,t.r0=i}var a=va(t.r,e.r),r=ya(t.r0,e.r0);t.r=a,t.r0=r;var o=a-r<0;if(n<0){i=t.r;t.r=t.r0,t.r0=i}return o}},_a={cartesian2d:function(e,t,n,i,a,r,o,s,l){var c=new Le["a"]({shape:Object(b["extend"])({},i),z2:1});if(c.__dataIndex=n,c.name="item",r){var u=c.shape,h=a?"height":"width";u[h]=0}return c},polar:function(e,t,n,i,a,r,o,s,l){var c=!a&&l?ha["a"]:Ae["a"],u=new c({shape:i,z2:1});u.name="item";var h=Ta(a);if(u.calculateTextPosition=da(h,{isRoundCap:c===ha["a"]}),r){var d=u.shape,p=a?"r":"endAngle",f={};d[p]=a?0:i.startAngle,f[p]=i[p],(s?Oe["h"]:Oe["c"])(u,{shape:f},r)}return u}};function Oa(e,t){var n=e.get("realtimeSort",!0),i=t.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===t.type)return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}function Sa(e,t,n,i,a,r,o,s){var l,c;r?(c={x:i.x,width:i.width},l={y:i.y,height:i.height}):(c={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(o?Oe["h"]:Oe["c"])(n,{shape:l},t,a,null);var u=t?e.baseAxis.model:null;(o?Oe["h"]:Oe["c"])(n,{shape:c},u,a)}function wa(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var Ma=["x","y","width","height"],Ia=["cx","cy","r","startAngle","endAngle"],ja={cartesian2d:function(e){return!wa(e,Ma)},polar:function(e){return!wa(e,Ia)}},Aa={cartesian2d:function(e,t,n){var i=e.getItemLayout(t),a=n?La(n,i):0,r=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+r*a/2,y:i.y+o*a/2,width:i.width-r*a,height:i.height-o*a}},polar:function(e,t,n){var i=e.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function Ca(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function Ta(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function Da(e,t,n,i,a,r,o,s){var l=t.getItemVisual(n,"style");s||e.setShape("r",i.get(["itemStyle","borderRadius"])||0),e.useStyle(l);var c=i.getShallow("cursor");c&&e.attr("cursor",c);var u=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",h=Object(Z["e"])(i);Object(Z["g"])(e,h,{labelFetcher:r,labelDataIndex:n,defaultText:ri(r.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:u});var d=e.getTextContent();if(s&&d){var p=i.get(["label","position"]);e.textConfig.inside="middle"===p||null,pa(e,"outside"===p?u:p,Ta(o),i.get(["label","rotate"]))}Object(Z["h"])(d,h,r.getRawValue(n),(function(e){return oi(t,e)}));var f=i.getModel(["emphasis"]);Object(X["J"])(e,f.get("focus"),f.get("blurScope"),f.get("disabled")),Object(X["I"])(e,i),Ca(a)&&(e.style.fill="none",e.style.stroke="none",Object(b["each"])(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}function La(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=e.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),r=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,a,r)}var Pa=function(){function e(){}return e}(),ka=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return Object(ee["a"])(t,e),t.prototype.getDefaultShape=function(){return new Pa},t.prototype.buildPath=function(e,t){for(var n=t.points,i=this.baseDimIdx,a=1-this.baseDimIdx,r=[],o=[],s=this.barWidth,l=0;l<n.length;l+=3)o[i]=s,o[a]=n[l+2],r[i]=n[l+i],r[a]=n[l+a],e.rect(r[0],r[1],o[0],o[1])},t}(xt["b"]);function Na(e,t,n,i){var a=e.getData(),r=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=e.getModel("backgroundStyle"),c=a.getLayout("largeBackgroundPoints");if(c){var u=new ka({shape:{points:c},incremental:!!i,silent:!0,z2:0});u.baseDimIdx=r,u.largeDataIndices=o,u.barWidth=s,u.useStyle(l.getItemStyle()),t.add(u),n&&n.push(u)}var h=new ka({shape:{points:a.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=r,h.largeDataIndices=o,h.barWidth=s,t.add(h),h.useStyle(a.getVisual("style")),Object(W["a"])(h).seriesIndex=e.seriesIndex,e.get("silent")||(h.on("mousedown",Ra),h.on("mousemove",Ra)),n&&n.push(h)}var Ra=Object(_["c"])((function(e){var t=this,n=Ea(t,e.offsetX,e.offsetY);Object(W["a"])(t).dataIndex=n>=0?n:null}),30,!1);function Ea(e,t,n){for(var i=e.baseDimIdx,a=1-i,r=e.shape.points,o=e.largeDataIndices,s=[],l=[],c=e.barWidth,u=0,h=r.length/3;u<h;u++){var d=3*u;if(l[i]=c,l[a]=r[d+2],s[i]=r[d+i],s[a]=r[d+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),t>=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return o[u]}return-1}function Va(e,t,n){if(Pi(n,"cartesian2d")){var i=t,a=n.getArea();return{x:e?i.x:a.x,y:e?a.y:i.y,width:e?i.width:a.width,height:e?a.height:i.height}}a=n.getArea();var r=t;return{cx:a.cx,cy:a.cy,r0:e?a.r0:r.r0,r:e?a.r:r.r,startAngle:e?r.startAngle:0,endAngle:e?r.endAngle:2*Math.PI}}function za(e,t,n){var i="polar"===e.type?Ae["a"]:Le["a"];return new i({shape:Va(t,n,e),silent:!0,z2:0})}var Ba=ba;function Ga(e){e.registerChartView(Ba),e.registerSeriesModel(ua),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,b["curry"](ra["c"],"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Object(ra["a"])("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,ia("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))}var Fa=n("49bb"),Ha=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(ee["a"])(t,e),t.prototype.getInitialData=function(e,t){return z(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(p["b"]),Wa=Ha,Za=4,Ya=function(){function e(){}return e}(),Xa=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return Object(ee["a"])(t,e),t.prototype.getDefaultShape=function(){return new Ya},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n,i=t.points,a=t.size,r=this.symbolProxy,o=r.shape,s=e.getContext?e.getContext():e,l=s&&a[0]<Za,c=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<i.length;){var u=i[n++],h=i[n++];isNaN(u)||isNaN(h)||(c&&!c.contain(u,h)||(o.x=u-a[0]/2,o.y=h-a[1]/2,o.width=a[0],o.height=a[1],r.buildPath(e,o,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},t.prototype.afterBrush=function(){var e,t=this.shape,n=t.points,i=t.size,a=this._ctx,r=this.softClipShape;if(a){for(e=this._off;e<n.length;){var o=n[e++],s=n[e++];isNaN(o)||isNaN(s)||(r&&!r.contain(o,s)||a.fillRect(o-i[0]/2,s-i[1]/2,i[0],i[1]))}this.incremental&&(this._off=e,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,i=n.points,a=n.size,r=Math.max(a[0],4),o=Math.max(a[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,c=i[l]-r/2,u=i[l+1]-o/2;if(e>=c&&t>=u&&e<=c+r&&t<=u+o)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();if(e=n[0],t=n[1],i.contain(e,t)){var a=this.hoverDataIdx=this.findDataIndex(e,t);return a>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,i=t.size,a=i[0],r=i[1],o=1/0,s=1/0,l=-1/0,c=-1/0,u=0;u<n.length;){var h=n[u++],d=n[u++];o=Math.min(h,o),l=Math.max(h,l),s=Math.min(d,s),c=Math.max(d,c)}e=this._rect=new te["a"](o-a/2,s-r/2,l-o+a,c-s+r)}return e},t}(xt["b"]),Ua=function(){function e(){this.group=new Se["a"]}return e.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},e.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild((function(e){if(null!=e.startIndex){var n=2*(e.endIndex-e.startIndex),i=4*e.startIndex*2;t=new Float32Array(t.buffer,i,n)}e.setShape("points",t),e.reset()}))},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,n){var i=this._newAdded[0],a=t.getLayout("points"),r=i&&i.shape.points;if(r&&r.length<2e4){var o=r.length,s=new Float32Array(o+a.length);s.set(r),s.set(a,o),i.endIndex=e.end,i.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=e.start,l.endIndex=e.end,l.incremental=!0,l.setShape({points:a}),this._setCommon(l,t,n)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new Xa({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,n){var i=t.hostModel;n=n||{};var a=t.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=n.clipShape||null,e.symbolProxy=Object(Y["a"])(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var r=e.shape.size[0]<Za;e.useStyle(i.getModel("itemStyle").getItemStyle(r?["color","shadowBlur","shadowColor"]:["color"]));var o=t.getVisual("style"),s=o&&o.fill;s&&e.setColor(s);var l=Object(W["a"])(e);l.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){l.dataIndex=null;var n=e.hoverDataIdx;n>=0&&(l.dataIndex=n+(e.startIndex||0))}))},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),qa=Ua,Ja=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),a=this._updateSymbolDraw(i,e);a.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData(),a=this._updateSymbolDraw(i,e);a.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var a=ea("").reset(e,t,n);a.progress&&a.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,i=t.pipelineContext,a=i.large;return n&&a===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=a?new qa:new fi,this._isLargeDraw=a,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(f["a"]),Ka=Ja,$a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(ee["a"])(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(h["a"]),Qa=$a,er=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(ee["a"])(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",w["b"]).models[0]},t.type="cartesian2dAxis",t}(h["a"]);b["mixin"](er,G);var tr={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},nr=b["merge"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},tr),ir=b["merge"]({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},tr),ar=b["merge"]({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},ir),rr=b["defaults"]({logBase:10},ir),or={category:nr,value:ir,time:ar,log:rr},sr=n("8e43"),lr={value:1,category:1,time:1,log:1};function cr(e,t,n,i){Object(b["each"])(lr,(function(a,r){var o=Object(b["merge"])(Object(b["merge"])({},or[r],!0),i,!0),s=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+r,n}return Object(ee["a"])(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=Object(H["d"])(this),i=n?Object(H["f"])(e):{},a=t.getTheme();Object(b["merge"])(e,a.get(r+"Axis")),Object(b["merge"])(e,this.getDefaultOption()),e.type=ur(e),n&&Object(H["h"])(e,i,n)},n.prototype.optionUpdated=function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=sr["a"].createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+r,n.defaultOption=o,n}(n);e.registerComponentModel(s)})),e.registerSubTypeDefaulter(t+"Axis",ur)}function ur(e){return e.type||(e.data?"category":"value")}var hr=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return b["map"](this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),b["filter"](this.getAxes(),(function(t){return t.scale.type===e}))},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),dr=hr,pr=["x","y"];function fr(e){return"interval"===e.type||"time"===e.type}var gr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=pr,t}return Object(ee["a"])(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(fr(e)&&fr(t)){var n=e.getExtent(),i=t.getExtent(),a=this.dataToPoint([n[0],i[0]]),r=this.dataToPoint([n[1],i[1]]),o=n[1]-n[0],s=i[1]-i[0];if(o&&s){var l=(r[0]-a[0])/o,c=(r[1]-a[1])/s,u=a[0]-n[0]*l,h=a[1]-i[0]*c,d=this._transform=[l,0,0,c,u,h];this._invTransform=Object(v["invert"])([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),i=this.dataToPoint(t),a=this.getArea(),r=new te["a"](n[0],n[1],i[0]-n[0],i[1]-n[1]);return a.intersect(r)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var i=e[0],a=e[1];if(this._transform&&null!=i&&isFinite(i)&&null!=a&&isFinite(a))return Object(m["applyTransform"])(n,e,this._transform);var r=this.getAxis("x"),o=this.getAxis("y");return n[0]=r.toGlobalCoord(r.dataToCoord(i,t)),n[1]=o.toGlobalCoord(o.dataToCoord(a,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,a=n.getExtent(),r=i.getExtent(),o=n.parse(e[0]),s=i.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(a[0],a[1]),o),Math.max(a[0],a[1])),t[1]=Math.min(Math.max(Math.min(r[0],r[1]),s),Math.max(r[0],r[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return Object(m["applyTransform"])(n,e,this._invTransform);var i=this.getAxis("x"),a=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),t),n[1]=a.coordToData(a.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),t=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1]),i=Math.min(t[0],t[1]),a=Math.max(e[0],e[1])-n,r=Math.max(t[0],t[1])-i;return new te["a"](n,i,a,r)},t}(dr),yr=gr,vr=function(e){function t(t,n,i,a,r){var o=e.call(this,t,n,i)||this;return o.index=0,o.type=a||"value",o.position=r||"bottom",o}return Object(ee["a"])(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(ht),mr=vr,br=n("0156"),xr=n("944e"),_r=n("89e3"),Or=Math.log;function Sr(e,t,n){var i=_r["a"].prototype,a=i.getTicks.call(n),r=i.getTicks.call(n,!0),o=a.length-1,s=i.getInterval.call(n),l=Object(B["f"])(e,t),c=l.extent,u=l.fixMin,h=l.fixMax;if("log"===e.type){var d=Or(e.base);c=[Or(c[0])/d,Or(c[1])/d]}e.setExtent(c[0],c[1]),e.calcNiceExtent({splitNumber:o,fixMin:u,fixMax:h});var p=i.getExtent.call(e);u&&(c[0]=p[0]),h&&(c[1]=p[1]);var f=i.getInterval.call(e),g=c[0],y=c[1];if(u&&h)f=(y-g)/o;else if(u){y=c[0]+f*o;while(y<c[1]&&isFinite(y)&&isFinite(c[1]))f=Object(xr["c"])(f),y=c[0]+f*o}else if(h){g=c[1]-f*o;while(g>c[0]&&isFinite(g)&&isFinite(c[0]))f=Object(xr["c"])(f),g=c[1]-f*o}else{var v=e.getTicks().length-1;v>o&&(f=Object(xr["c"])(f));var m=f*o;y=Math.ceil(c[1]/f)*f,g=Object(be["w"])(y-m),g<0&&c[0]>=0?(g=0,y=Object(be["w"])(m)):y>0&&c[1]<=0&&(y=0,g=-Object(be["w"])(m))}var b=(a[0].value-r[0].value)/s,x=(a[o].value-r[o].value)/s;i.setExtent.call(e,g+f*b,y+f*x),i.setInterval.call(e,f),(b||x)&&i.setNiceExtent.call(e,g+f,y-f)}var wr=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=pr,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function i(e){var t,n=Object(b["keys"])(e),i=n.length;if(i){for(var a=[],r=i-1;r>=0;r--){var o=+n[r],s=e[o],l=s.model,c=s.scale;Object(xr["e"])(c)&&l.get("alignTicks")&&null==l.get("interval")?a.push(s):(Object(B["i"])(c,l),Object(xr["e"])(c)&&(t=s))}a.length&&(t||(t=a.pop(),Object(B["i"])(t.scale,t.model)),Object(b["each"])(a,(function(e){Sr(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),i(n.x),i(n.y);var a={};Object(b["each"])(n.x,(function(e){Ir(n,"y",e,a)})),Object(b["each"])(n.y,(function(e){Ir(n,"x",e,a)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var i=e.getBoxLayoutParams(),a=!n&&e.get("containLabel"),r=Object(H["g"])(i,{width:t.getWidth(),height:t.getHeight()});this._rect=r;var o=this._axesList;function s(){Object(b["each"])(o,(function(e){var t=e.isHorizontal(),n=t?[0,r.width]:[0,r.height],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),Ar(e,t?r.x:r.y)}))}s(),a&&(Object(b["each"])(o,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=Object(B["b"])(e);if(t){var n=e.isHorizontal()?"height":"width",i=e.model.get(["axisLabel","margin"]);r[n]-=t[n]+i,"top"===e.position?r.y+=t.height+i:"left"===e.position&&(r.x+=t.width+i)}}})),s()),Object(b["each"])(this._coordsList,(function(e){e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}Object(b["isObject"])(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===e||a[i].getAxis("y").index===t)return a[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,i=e.seriesModel,a=e.xAxisModel||i&&i.getReferringComponents("xAxis",w["b"]).models[0],r=e.yAxisModel||i&&i.getReferringComponents("yAxis",w["b"]).models[0],o=e.gridModel,s=this._coordsList;if(i)t=i.coordinateSystem,Object(b["indexOf"])(s,t)<0&&(t=null);else if(a&&r)t=this.getCartesian(a.componentIndex,r.componentIndex);else if(a)n=this.getAxis("x",a.componentIndex);else if(r)n=this.getAxis("y",r.componentIndex);else if(o){var l=o.coordinateSystem;l===this&&(t=this._coordsList[0])}return{cartesian:t,axis:n}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var i=this,a=this,r={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};if(t.eachComponent("xAxis",l("x"),this),t.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(t){return function(n,i){if(Mr(n,e)){var l=n.get("position");"x"===t?"top"!==l&&"bottom"!==l&&(l=r.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=r.left?"right":"left"),r[l]=!0;var c=new mr(t,Object(B["a"])(n),[0,0],n.get("type"),l),u="category"===c.type;c.onBand=u&&n.get("boundaryGap"),c.inverse=n.get("inverse"),n.axis=c,c.model=n,c.grid=a,c.index=i,a._axesList.push(c),o[t][i]=c,s[t]++}}}this._axesMap=o,Object(b["each"])(o.x,(function(t,n){Object(b["each"])(o.y,(function(a,r){var o="x"+n+"y"+r,s=new yr(o);s.master=i,s.model=e,i._coordsMap[o]=s,i._coordsList.push(s),s.addAxis(t),s.addAxis(a)}))}))},e.prototype._updateScale=function(e,t){function n(e,t){Object(b["each"])(Object(B["d"])(e,t.dim),(function(n){t.scale.unionExtentFromData(e,n)}))}Object(b["each"])(this._axesList,(function(e){if(e.scale.setExtent(1/0,-1/0),"category"===e.type){var t=e.model.get("categorySortInfo");e.scale.setSortInfo(t)}})),e.eachSeries((function(e){if(Object(br["b"])(e)){var i=Object(br["a"])(e),a=i.xAxisModel,r=i.yAxisModel;if(!Mr(a,t)||!Mr(r,t))return;var o=this.getCartesian(a.componentIndex,r.componentIndex),s=e.getData(),l=o.getAxis("x"),c=o.getAxis("y");n(s,l),n(s,c)}}),this)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return Object(b["each"])(this.getCartesians(),(function(i){var a=null!=e&&"auto"!==e?i.getAxis(e):i.getBaseAxis(),r=i.getOtherAxis(a);Object(b["indexOf"])(t,a)<0&&t.push(a),Object(b["indexOf"])(n,r)<0&&n.push(r)})),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var i=[];return t.eachComponent("grid",(function(a,r){var o=new e(a,t,n);o.name="grid_"+r,o.resize(a,n,!0),a.coordinateSystem=o,i.push(o)})),t.eachSeries((function(e){if(Object(br["b"])(e)){var t=Object(br["a"])(e),n=t.xAxisModel,i=t.yAxisModel,a=n.getCoordSysModel();0;var r=a.coordinateSystem;e.coordinateSystem=r.getCartesian(n.componentIndex,i.componentIndex)}})),i},e.dimensions=pr,e}();function Mr(e,t){return e.getCoordSysModel()===t}function Ir(e,t,n,i){n.getAxesOnZeroOf=function(){return a?[a]:[]};var a,r=e[t],o=n.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)jr(r[l])&&(a=r[l]);else for(var c in r)if(r.hasOwnProperty(c)&&jr(r[c])&&!i[u(r[c])]){a=r[c];break}a&&(i[u(a)]=!0)}function u(e){return e.dim+"_"+e.index}}function jr(e){return e&&"category"!==e.type&&"time"!==e.type&&Object(B["g"])(e)}function Ar(e,t){var n=e.getExtent(),i=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return i-e+t}}var Cr=wr,Tr=n("fab2"),Dr=n("6679"),Lr=Object(w["o"])();function Pr(e,t,n,i){var a=n.axis;if(!a.scale.isBlank()){var r=n.getModel("splitArea"),o=r.getModel("areaStyle"),s=o.get("color"),l=i.coordinateSystem.getRect(),c=a.getTicksCoords({tickModel:r,clamp:!0});if(c.length){var u=s.length,h=Lr(e).splitAreaColors,d=b["createHashMap"](),p=0;if(h)for(var f=0;f<c.length;f++){var g=h.get(c[f].tickValue);if(null!=g){p=(g+(u-1)*f)%u;break}}var y=a.toGlobalCoord(c[0].coord),v=o.getAreaStyle();s=b["isArray"](s)?s:[s];for(f=1;f<c.length;f++){var m=a.toGlobalCoord(c[f].coord),x=void 0,_=void 0,O=void 0,S=void 0;a.isHorizontal()?(x=y,_=l.y,O=m-x,S=l.height,y=x+O):(x=l.x,_=y,O=l.width,S=m-_,y=_+S);var w=c[f-1].tickValue;null!=w&&d.set(w,p),t.add(new Le["a"]({anid:null!=w?"area_"+w:null,shape:{x:x,y:_,width:O,height:S},style:b["defaults"]({fill:s[p]},v),autoBatch:!0,silent:!0})),p=(p+1)%u}Lr(e).splitAreaColors=d}}}function kr(e){Lr(e).splitAreaColors=null}var Nr=["axisLine","axisTickLabel","axisName"],Rr=["splitArea","splitLine","minorSplitLine"],Er=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return Object(ee["a"])(t,e),t.prototype.render=function(t,n,i,a){this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new Se["a"],this.group.add(this._axisGroup),t.get("show")){var o=t.getCoordSysModel(),s=br["c"](o,t),l=new Tr["a"](t,b["extend"]({handleAutoShown:function(e){for(var n=o.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if(Object(xr["e"])(n[i].getOtherAxis(t.axis).scale))return!0;return!1}},s));b["each"](Nr,l.add,l),this._axisGroup.add(l.getGroup()),b["each"](Rr,(function(e){t.get([e,"show"])&&Vr[e](this,this._axisGroup,t,o)}),this);var c=a&&"changeAxisOrder"===a.type&&a.isInitSort;c||_e["groupTransition"](r,this._axisGroup,t),e.prototype.render.call(this,t,n,i,a)}},t.prototype.remove=function(){kr(this)},t.type="cartesianAxis",t}(Dr["a"]),Vr={splitLine:function(e,t,n,i){var a=n.axis;if(!a.scale.isBlank()){var r=n.getModel("splitLine"),o=r.getModel("lineStyle"),s=o.get("color");s=b["isArray"](s)?s:[s];for(var l=i.coordinateSystem.getRect(),c=a.isHorizontal(),u=0,h=a.getTicksCoords({tickModel:r}),d=[],p=[],f=o.getLineStyle(),g=0;g<h.length;g++){var y=a.toGlobalCoord(h[g].coord);c?(d[0]=y,d[1]=l.y,p[0]=y,p[1]=l.y+l.height):(d[0]=l.x,d[1]=y,p[0]=l.x+l.width,p[1]=y);var v=u++%s.length,m=h[g].tickValue,x=new Pe["a"]({anid:null!=m?"line_"+h[g].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:b["defaults"]({stroke:s[v]},f),silent:!0});_e["subPixelOptimizeLine"](x.shape,f.lineWidth),t.add(x)}}},minorSplitLine:function(e,t,n,i){var a=n.axis,r=n.getModel("minorSplitLine"),o=r.getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=a.isHorizontal(),c=a.getMinorTicksCoords();if(c.length)for(var u=[],h=[],d=o.getLineStyle(),p=0;p<c.length;p++)for(var f=0;f<c[p].length;f++){var g=a.toGlobalCoord(c[p][f].coord);l?(u[0]=g,u[1]=s.y,h[0]=g,h[1]=s.y+s.height):(u[0]=s.x,u[1]=g,h[0]=s.x+s.width,h[1]=g);var y=new Pe["a"]({anid:"minor_line_"+c[p][f].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:h[0],y2:h[1]},style:d,silent:!0});_e["subPixelOptimizeLine"](y.shape,d.lineWidth),t.add(y)}},splitArea:function(e,t,n,i){Pr(e,t,n,i)}},zr=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.type="xAxis",t}(Er),Br=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=zr.type,t}return Object(ee["a"])(t,e),t.type="yAxis",t}(Er),Gr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return Object(ee["a"])(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new Le["a"]({shape:e.coordinateSystem.getRect(),style:Object(b["defaults"])({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(d["a"]),Fr={offset:0};function Hr(e){e.registerComponentView(Gr),e.registerComponentModel(Qa),e.registerCoordinateSystem("cartesian2d",Cr),cr(e,"x",er,Fr),cr(e,"y",er,Fr),e.registerComponentView(zr),e.registerComponentView(Br),e.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))}function Wr(e){Object(c["a"])(Hr),e.registerSeriesModel(Wa),e.registerChartView(Ka),e.registerLayout(ea("scatter"))}function Zr(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),n=[],i=e.coordinateSystem;if(i){var a=i.getIndicatorAxes();b["each"](a,(function(e,r){t.each(t.mapDimension(a[r].dim),(function(e,t){n[t]=n[t]||[];var a=i.dataToPoint(e,r);n[t][r]=Yr(a)?a:Xr(i)}))})),t.each((function(e){var a=b["find"](n[e],(function(e){return Yr(e)}))||Xr(i);n[e].push(a.slice()),t.setItemLayout(e,n[e])}))}}))}function Yr(e){return!isNaN(e[0])&&!isNaN(e[1])}function Xr(e){return[e.cx,e.cy]}var Ur=n("d3f4");function qr(e){var t=e.polar;if(t){b["isArray"](t)||(t=[t]);var n=[];b["each"](t,(function(t,i){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],b["isArray"](e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)})),e.polar=n}b["each"](e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}var Jr=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.render=function(e,t,n){var i=e.coordinateSystem,a=this.group,r=e.getData(),o=this._data;function s(e,t){var n=e.getItemVisual(t,"symbol")||"circle";if("none"!==n){var i=Y["c"](e.getItemVisual(t,"symbolSize")),a=Y["a"](n,-1,-1,2,2),r=e.getItemVisual(t,"symbolRotate")||0;return a.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:r*Math.PI/180||0}),a}}function l(t,n,i,a,r,o){i.removeAll();for(var l=0;l<n.length-1;l++){var c=s(a,r);c&&(c.__dimIdx=l,t[l]?(c.setPosition(t[l]),_e[o?"initProps":"updateProps"](c,{x:n[l][0],y:n[l][1]},e,r)):c.setPosition(n[l]),i.add(c))}}function c(e){return b["map"](e,(function(e){return[i.cx,i.cy]}))}r.diff(o).add((function(t){var n=r.getItemLayout(t);if(n){var i=new Te["a"],a=new De["a"],o={shape:{points:n}};i.shape.points=c(n),a.shape.points=c(n),Oe["c"](i,o,e,t),Oe["c"](a,o,e,t);var s=new Se["a"],u=new Se["a"];s.add(a),s.add(i),s.add(u),l(a.shape.points,n,u,r,t,!0),r.setItemGraphicEl(t,s)}})).update((function(t,n){var i=o.getItemGraphicEl(n),a=i.childAt(0),s=i.childAt(1),c=i.childAt(2),u={shape:{points:r.getItemLayout(t)}};u.shape.points&&(l(a.shape.points,u.shape.points,c,r,t,!1),Object(Oe["g"])(s),Object(Oe["g"])(a),Oe["h"](a,u,e),Oe["h"](s,u,e),r.setItemGraphicEl(t,i))})).remove((function(e){a.remove(o.getItemGraphicEl(e))})).execute(),r.eachItemGraphicEl((function(e,t){var n=r.getItemModel(t),i=e.childAt(0),o=e.childAt(1),s=e.childAt(2),l=r.getItemVisual(t,"style"),c=l.fill;a.add(e),i.useStyle(b["defaults"](n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:c})),Object(X["I"])(i,n,"lineStyle"),Object(X["I"])(o,n,"areaStyle");var u=n.getModel("areaStyle"),h=u.isEmpty()&&u.parentModel.isEmpty();o.ignore=h,b["each"](["emphasis","select","blur"],(function(e){var t=n.getModel([e,"areaStyle"]),i=t.isEmpty()&&t.parentModel.isEmpty();o.ensureState(e).ignore=i&&h})),o.useStyle(b["defaults"](u.getAreaStyle(),{fill:c,opacity:.7,decal:l.decal}));var d=n.getModel("emphasis"),p=d.getModel("itemStyle").getItemStyle();s.eachChild((function(e){if(e instanceof we["a"]){var i=e.style;e.useStyle(b["extend"]({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},l))}else e.useStyle(l),e.setColor(c),e.style.strokeNoScale=!0;var a=e.ensureState("emphasis");a.style=b["clone"](p);var o=r.getStore().get(r.getDimensionIndex(e.__dimIdx),t);(null==o||isNaN(o))&&(o=""),Object(Z["g"])(e,Object(Z["e"])(n),{labelFetcher:r.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:o,inheritColor:c,defaultOpacity:l.opacity})})),Object(X["J"])(e,d.get("focus"),d.get("blurScope"),d.get("disabled"))})),this._data=r},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(f["a"]),Kr=Jr,$r=n("3f23"),Qr=n("c4a3"),eo=n("217c"),to=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(ee["a"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Qr["a"](b["bind"](this.getData,this),b["bind"](this.getRawData,this))},t.prototype.getInitialData=function(e,t){return Object($r["a"])(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),a=this.coordinateSystem,r=a.getIndicatorAxes(),o=this.getData().getName(e),s=""===o?this.name:o,l=Object(eo["e"])(this,e);return Object(eo["c"])("section",{header:s,sortBlocks:!0,blocks:b["map"](r,(function(t){var n=i.get(i.mapDimension(t.dim),e);return Object(eo["c"])("nameValue",{markerType:"subItem",markerColor:l,name:t.name,value:n,sortParam:n})}))})},t.prototype.getTooltipPosition=function(e){if(null!=e)for(var t=this.getData(),n=this.coordinateSystem,i=t.getValues(b["map"](n.dimensions,(function(e){return t.mapDimension(e)})),e),a=0,r=i.length;a<r;a++)if(!isNaN(i[a])){var o=n.getIndicatorAxes();return n.coordToPoint(o[a].dataToCoord(i[a]),a)}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(p["b"]),no=to,io=or.value;function ao(e,t){return b["defaults"]({show:t},e)}var ro=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),a=this.get("axisTick"),r=this.get("axisLabel"),o=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),u=this.get("triggerEvent"),h=b["map"](this.get("indicator")||[],(function(h){null!=h.max&&h.max>0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var d=o;null!=h.color&&(d=b["defaults"]({color:h.color},o));var p=b["merge"](b["clone"](h),{boundaryGap:e,splitNumber:t,scale:n,axisLine:i,axisTick:a,axisLabel:r,name:h.text,showName:s,nameLocation:"end",nameGap:c,nameTextStyle:d,triggerEvent:u},!1);if(b["isString"](l)){var f=p.name;p.name=l.replace("{value}",null!=f?f:"")}else b["isFunction"](l)&&(p.name=l(p.name,p));var g=new F["a"](p,null,this.ecModel);return b["mixin"](g,G.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:b["merge"]({lineStyle:{color:"#bbb"}},io.axisLine),axisLabel:ao(io.axisLabel,!1),axisTick:ao(io.axisTick,!1),splitLine:ao(io.splitLine,!0),splitArea:ao(io.splitArea,!0),indicator:[]},t}(h["a"]),oo=ro,so=["axisLine","axisTickLabel","axisName"],lo=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),i=b["map"](n,(function(e){var n=e.model.get("showName")?e.name:"",i=new Tr["a"](e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i}));b["each"](i,(function(e){b["each"](so,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var i=e.get("shape"),a=e.getModel("splitLine"),r=e.getModel("splitArea"),o=a.getModel("lineStyle"),s=r.getModel("areaStyle"),l=a.get("show"),c=r.get("show"),u=o.get("color"),h=s.get("color"),d=b["isArray"](u)?u:[u],p=b["isArray"](h)?h:[h],f=[],g=[];if("circle"===i)for(var y=n[0].getTicksCoords(),v=t.cx,m=t.cy,x=0;x<y.length;x++){if(l){var _=C(f,d,x);f[_].push(new Ie["a"]({shape:{cx:v,cy:m,r:y[x].coord}}))}if(c&&x<y.length-1){_=C(g,p,x);g[_].push(new Ce["a"]({shape:{cx:v,cy:m,r0:y[x].coord,r:y[x+1].coord}}))}}else{var O,S=b["map"](n,(function(e,n){var i=e.getTicksCoords();return O=null==O?i.length-1:Math.min(i.length-1,O),b["map"](i,(function(e){return t.coordToPoint(e.coord,n)}))})),w=[];for(x=0;x<=O;x++){for(var M=[],I=0;I<n.length;I++)M.push(S[I][x]);if(M[0]&&M.push(M[0].slice()),l){_=C(f,d,x);f[_].push(new De["a"]({shape:{points:M}}))}if(c&&w){_=C(g,p,x-1);g[_].push(new Te["a"]({shape:{points:M.concat(w)}}))}w=M.slice().reverse()}}var j=o.getLineStyle(),A=s.getAreaStyle();b["each"](g,(function(e,t){this.group.add(_e["mergePath"](e,{style:b["defaults"]({stroke:"none",fill:p[t%p.length]},A),silent:!0}))}),this),b["each"](f,(function(e,t){this.group.add(_e["mergePath"](e,{style:b["defaults"]({fill:"none",stroke:d[t%d.length]},j),silent:!0}))}),this)}function C(e,t,n){var i=n%t.length;return e[i]=e[i]||[],i}},t.type="radar",t}(d["a"]),co=lo,uo=function(e){function t(t,n,i){var a=e.call(this,t,n,i)||this;return a.type="value",a.angle=0,a.name="",a}return Object(ee["a"])(t,e),t}(ht),ho=uo,po=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=Object(b["map"])(e.getIndicatorModels(),(function(e,t){var n="indicator_"+t,i=new ho(n,new _r["a"]);return i.name=e.get("name"),i.model=e,e.axis=i,this.dimensions.push(n),i}),this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],i=n.angle,a=this.cx+e*Math.cos(i),r=this.cy-e*Math.sin(i);return[a,r]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=Math.sqrt(t*t+n*n);t/=i,n/=i;for(var a,r=Math.atan2(-n,t),o=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var c=this._indicatorAxes[l],u=Math.abs(r-c.angle);u<o&&(a=c,s=l,o=u)}return[s,+(a&&a.coordToData(i))]},e.prototype.resize=function(e,t){var n=e.get("center"),i=t.getWidth(),a=t.getHeight(),r=Math.min(i,a)/2;this.cx=be["q"](n[0],i),this.cy=be["q"](n[1],a),this.startAngle=e.get("startAngle")*Math.PI/180;var o=e.get("radius");(Object(b["isString"])(o)||Object(b["isNumber"])(o))&&(o=[0,o]),this.r0=be["q"](o[0],r),this.r=be["q"](o[1],r),Object(b["each"])(this._indicatorAxes,(function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n}),this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,i=this._model;Object(b["each"])(n,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeriesByType("radar",(function(t,a){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===i){var r=t.getData();Object(b["each"])(n,(function(e){e.scale.unionExtentFromData(r,r.mapDimension(e.dim))}))}}),this);var a=i.get("splitNumber"),r=new _r["a"];r.setExtent(0,a),r.setInterval(1),Object(b["each"])(n,(function(e,t){Sr(e.scale,e.model,r)}))},e.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.create=function(t,n){var i=[];return t.eachComponent("radar",(function(a){var r=new e(a,t,n);i.push(r),a.coordinateSystem=r})),t.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("radarIndex")||0])})),i},e.dimensions=[],e}(),fo=po;function go(e){e.registerCoordinateSystem("radar",fo),e.registerComponentModel(oo),e.registerComponentView(co),e.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each((function(e){t.setItemVisual(e,"legendIcon","roundRect")})),t.setVisual("legendIcon","roundRect")}})}function yo(e){Object(c["a"])(go),e.registerChartView(Kr),e.registerSeriesModel(no),e.registerLayout(Zr),e.registerProcessor(Object(Ur["a"])("radar")),e.registerPreprocessor(qr)}var vo=n("6fd3"),mo=n("607d"),bo="\0_ec_interaction_mutex";function xo(e,t,n){var i=So(e);i[t]=n}function _o(e,t,n){var i=So(e),a=i[t];a===n&&(i[t]=null)}function Oo(e,t){return!!So(e)[t]}function So(e){return e[bo]||(e[bo]={})}u["m"]({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},b["noop"]);var wo=function(e){function t(t){var n=e.call(this)||this;n._zr=t;var i=Object(b["bind"])(n._mousedownHandler,n),a=Object(b["bind"])(n._mousemoveHandler,n),r=Object(b["bind"])(n._mouseupHandler,n),o=Object(b["bind"])(n._mousewheelHandler,n),s=Object(b["bind"])(n._pinchHandler,n);return n.enable=function(e,n){this.disable(),this._opt=Object(b["defaults"])(Object(b["clone"])(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",i),t.on("mousemove",a),t.on("mouseup",r)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",o),t.on("pinch",s))},n.disable=function(){t.off("mousedown",i),t.off("mousemove",a),t.off("mouseup",r),t.off("mousewheel",o),t.off("pinch",s)},n}return Object(ee["a"])(t,e),t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!mo["d"](e)){var t=e.target;while(t){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,i=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(this._dragging&&jo("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!Oo(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,i=this._x,a=this._y,r=t-i,o=n-a;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&mo["g"](e.event),Io(this,"pan","moveOnMouseMove",e,{dx:r,dy:o,oldX:i,oldY:a,newX:t,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){mo["d"](e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=jo("zoomOnMouseWheel",e,this._opt),n=jo("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,a=Math.abs(i),r=e.offsetX,o=e.offsetY;if(0!==i&&(t||n)){if(t){var s=a>3?1.4:a>1?1.2:1.1,l=i>0?s:1/s;Mo(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:r,originY:o,isAvailableBehavior:null})}if(n){var c=Math.abs(i),u=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);Mo(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:u,originX:r,originY:o,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!Oo(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;Mo(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(vo["a"]);function Mo(e,t,n,i,a){e.pointerChecker&&e.pointerChecker(i,a.originX,a.originY)&&(mo["g"](i.event),Io(e,t,n,i,a))}function Io(e,t,n,i,a){a.isAvailableBehavior=Object(b["bind"])(jo,null,n,i),e.trigger(t,a)}function jo(e,t,n){var i=n[e];return!e||i&&(!Object(b["isString"])(i)||t.event[i+"Key"])}var Ao=wo;function Co(e,t,n){var i=e.target;i.x+=t,i.y+=n,i.dirty()}function To(e,t,n,i){var a=e.target,r=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,r){var s=r.min||0,l=r.max||1/0;o=Math.max(Math.min(l,o),s)}var c=o/e.zoom;e.zoom=o,a.x-=(n-a.x)*(c-1),a.y-=(i-a.y)*(c-1),a.scaleX*=c,a.scaleY*=c,a.dirty()}var Do={axisPointer:1,tooltip:1,brush:1};function Lo(e,t,n){var i=t.getComponentByElement(e.topTarget),a=i&&i.coordinateSystem;return i&&i!==n&&!Do.hasOwnProperty(i.mainType)&&a&&a.model!==n}var Po,ko=n("342d");function No(e){if(Object(b["isString"])(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var n=e;9===n.nodeType&&(n=n.firstChild);while("svg"!==n.nodeName.toLowerCase()||1!==n.nodeType)n=n.nextSibling;return n}var Ro={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Eo=Object(b["keys"])(Ro),Vo={"alignment-baseline":"textBaseline","stop-color":"stopColor"},zo=Object(b["keys"])(Vo),Bo=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=No(e);this._defsUsePending=[];var i=new Se["a"];this._root=i;var a=[],r=n.getAttribute("viewBox")||"",o=parseFloat(n.getAttribute("width")||t.width),s=parseFloat(n.getAttribute("height")||t.height);isNaN(o)&&(o=null),isNaN(s)&&(s=null),Yo(n,i,null,!0,!1);var l,c,u=n.firstChild;while(u)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;if(Jo(this._defs,this._defsUsePending),this._defsUsePending=[],r){var h=$o(r);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=o&&null!=s&&(c=rs(l,{x:0,y:0,width:o,height:s}),!t.ignoreViewBox)){var d=i;i=new Se["a"],i.add(d),d.scaleX=d.scaleY=c.scale,d.x=c.x,d.y=c.y}return t.ignoreRootClip||null==o||null==s||i.setClipPath(new Le["a"]({shape:{x:0,y:0,width:o,height:s}})),{root:i,width:o,height:s,viewBoxRect:l,viewBoxTransform:c,named:a}},e.prototype._parseNode=function(e,t,n,i,a,r){var o,s=e.nodeName.toLowerCase(),l=i;if("defs"===s&&(a=!0),"text"===s&&(r=!0),"defs"===s||"switch"===s)o=t;else{if(!a){var c=Po[s];if(c&&Object(b["hasOwn"])(Po,s)){o=c.call(this,e,t);var u=e.getAttribute("name");if(u){var h={name:u,namedFrom:null,svgNodeTagLower:s,el:o};n.push(h),"g"===s&&(l=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:o});t.add(o)}}var d=Go[s];if(d&&Object(b["hasOwn"])(Go,s)){var p=d.call(this,e),f=e.getAttribute("id");f&&(this._defs[f]=p)}}if(o&&o.isGroup){var g=e.firstChild;while(g)1===g.nodeType?this._parseNode(g,o,n,l,a,r):3===g.nodeType&&r&&this._parseText(g,o),g=g.nextSibling}},e.prototype._parseText=function(e,t){var n=new _t["a"]({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Wo(t,n),Yo(e,n,this._defsUsePending,!1,!1),Xo(n,t);var i=n.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var r=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=r;var o=n.getBoundingRect();return this._textX+=o.width,t.add(n),n},e.internalField=function(){Po={g:function(e,t){var n=new Se["a"];return Wo(t,n),Yo(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new Le["a"];return Wo(t,n),Yo(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new Ie["a"];return Wo(t,n),Yo(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new Pe["a"];return Wo(t,n),Yo(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new je["a"];return Wo(t,n),Yo(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n,i=e.getAttribute("points");i&&(n=Zo(i));var a=new Te["a"]({shape:{points:n||[]},silent:!0});return Wo(t,a),Yo(e,a,this._defsUsePending,!1,!1),a},polyline:function(e,t){var n,i=e.getAttribute("points");i&&(n=Zo(i));var a=new De["a"]({shape:{points:n||[]},silent:!0});return Wo(t,a),Yo(e,a,this._defsUsePending,!1,!1),a},image:function(e,t){var n=new we["a"];return Wo(t,n),Yo(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",a=e.getAttribute("dx")||"0",r=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(r);var o=new Se["a"];return Wo(t,o),Yo(e,o,this._defsUsePending,!1,!0),o},tspan:function(e,t){var n=e.getAttribute("x"),i=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var a=e.getAttribute("dx")||"0",r=e.getAttribute("dy")||"0",o=new Se["a"];return Wo(t,o),Yo(e,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(r),o},path:function(e,t){var n=e.getAttribute("d")||"",i=Object(ko["b"])(n);return Wo(t,i),Yo(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),Go={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),i=parseInt(e.getAttribute("x2")||"10",10),a=parseInt(e.getAttribute("y2")||"0",10),r=new Ve["a"](t,n,i,a);return Fo(e,r),Ho(e,r),r},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),i=parseInt(e.getAttribute("r")||"0",10),a=new ze["a"](t,n,i);return Fo(e,a),Ho(e,a),a}};function Fo(e,t){var n=e.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(t.global=!0)}function Ho(e,t){var n=e.firstChild;while(n){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),a=void 0;a=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var r={};is(n,r,r);var o=r.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:a,color:o})}n=n.nextSibling}}function Wo(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Object(b["defaults"])(t.__inheritedStyle,e.__inheritedStyle))}function Zo(e){for(var t=$o(e),n=[],i=0;i<t.length;i+=2){var a=parseFloat(t[i]),r=parseFloat(t[i+1]);n.push([a,r])}return n}function Yo(e,t,n,i,a){var r=t,o=r.__inheritedStyle=r.__inheritedStyle||{},s={};1===e.nodeType&&(ts(e,t),is(e,o,s),i||as(e,o,s)),r.style=r.style||{},null!=o.fill&&(r.style.fill=qo(r,"fill",o.fill,n)),null!=o.stroke&&(r.style.stroke=qo(r,"stroke",o.stroke,n)),Object(b["each"])(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(e){null!=o[e]&&(r.style[e]=parseFloat(o[e]))})),Object(b["each"])(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(e){null!=o[e]&&(r.style[e]=o[e])})),a&&(r.__selfStyle=s),o.lineDash&&(r.style.lineDash=Object(b["map"])($o(o.lineDash),(function(e){return parseFloat(e)}))),"hidden"!==o.visibility&&"collapse"!==o.visibility||(r.invisible=!0),"none"===o.display&&(r.ignore=!0)}function Xo(e,t){var n=t.__selfStyle;if(n){var i=n.textBaseline,a=i;i&&"auto"!==i?"baseline"===i?a="alphabetic":"before-edge"===i||"text-before-edge"===i?a="top":"after-edge"===i||"text-after-edge"===i?a="bottom":"central"!==i&&"mathematical"!==i||(a="middle"):a="alphabetic",e.style.textBaseline=a}var r=t.__inheritedStyle;if(r){var o=r.textAlign,s=o;o&&("middle"===o&&(s="center"),e.style.textAlign=s)}}var Uo=/^url\(\s*#(.*?)\)/;function qo(e,t,n,i){var a=n&&n.match(Uo);if(!a)return"none"===n&&(n=null),n;var r=Object(b["trim"])(a[1]);i.push([e,t,r])}function Jo(e,t){for(var n=0;n<t.length;n++){var i=t[n];i[0].style[i[1]]=e[i[2]]}}var Ko=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function $o(e){return e.match(Ko)||[]}var Qo=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,es=Math.PI/180;function ts(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=[],a=null;n.replace(Qo,(function(e,t,n){return i.push(t,n),""}));for(var r=i.length-1;r>0;r-=2){var o=i[r],s=i[r-1],l=$o(o);switch(a=a||v["create"](),s){case"translate":v["translate"](a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":v["scale"](a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":v["rotate"](a,a,-parseFloat(l[0])*es);break;case"skewX":var c=Math.tan(parseFloat(l[0])*es);v["mul"](a,[1,0,c,1,0,0],a);break;case"skewY":var u=Math.tan(parseFloat(l[0])*es);v["mul"](a,[1,u,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}t.setLocalTransform(a)}}var ns=/([^\s:;]+)\s*:\s*([^:;]+)/g;function is(e,t,n){var i=e.getAttribute("style");if(i){var a;ns.lastIndex=0;while(null!=(a=ns.exec(i))){var r=a[1],o=Object(b["hasOwn"])(Ro,r)?Ro[r]:null;o&&(t[o]=a[2]);var s=Object(b["hasOwn"])(Vo,r)?Vo[r]:null;s&&(n[s]=a[2])}}}function as(e,t,n){for(var i=0;i<Eo.length;i++){var a=Eo[i],r=e.getAttribute(a);null!=r&&(t[Ro[a]]=r)}for(i=0;i<zo.length;i++){a=zo[i],r=e.getAttribute(a);null!=r&&(n[Vo[a]]=r)}}function rs(e,t){var n=t.width/e.width,i=t.height/e.height,a=Math.min(n,i);return{scale:a,x:-(e.x+e.width/2)*a+(t.x+t.width/2),y:-(e.y+e.height/2)*a+(t.y+t.height/2)}}function os(e,t){var n=new Bo;return n.parse(e,t)}var ss=Object(b["createHashMap"])(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),ls=function(){function e(e,t){this.type="geoSVG",this._usedGraphicMap=Object(b["createHashMap"])(),this._freedGraphics=[],this._mapName=e,this._parsedXML=No(t)}return e.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=us(e.named),n=t.regions,i=t.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n;try{t=e&&os(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,Object(b["assert"])(null!=n)}catch(g){throw new Error("Invalid svg format\n"+g.message)}var i=new Se["a"];i.add(n),i.isGeoSVGGraphicRoot=!0;var a=t.width,r=t.height,o=t.viewBoxRect,s=this._boundingRect;if(!s){var l=void 0,c=void 0,u=void 0,h=void 0;if(null!=a?(l=0,u=a):o&&(l=o.x,u=o.width),null!=r?(c=0,h=r):o&&(c=o.y,h=o.height),null==l||null==c){var d=n.getBoundingRect();null==l&&(l=d.x,u=d.width),null==c&&(c=d.y,h=d.height)}s=this._boundingRect=new te["a"](l,c,u,h)}if(o){var p=rs(o,s);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}i.setClipPath(new Le["a"]({shape:s.plain()}));var f=[];return Object(b["each"])(t.named,(function(e){null!=ss.get(e.svgNodeTagLower)&&(f.push(e),cs(e.el))})),{root:i,boundingRect:s,named:f}},e.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}();function cs(e){e.silent=!1,e.isGroup&&e.traverse((function(e){e.silent=!1}))}function us(e){var t=[],n=Object(b["createHashMap"])();return Object(b["each"])(e,(function(e){if(null==e.namedFrom){var i=new fe(e.name,e.el);t.push(i),n.set(e.name,i)}})),{regions:t,regionsMap:n}}for(var hs=[126,25],ds="南海诸岛",ps=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],fs=0;fs<ps.length;fs++)for(var gs=0;gs<ps[fs].length;gs++)ps[fs][gs][0]/=10.5,ps[fs][gs][1]/=-14,ps[fs][gs][0]+=hs[0],ps[fs][gs][1]+=hs[1];function ys(e,t){if("china"===e){for(var n=0;n<t.length;n++)if(t[n].name===ds)return;t.push(new pe(ds,b["map"](ps,(function(e){return{type:"polygon",exterior:e}})),hs))}}var vs={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function ms(e,t){if("china"===e){var n=vs[t.name];if(n){var i=t.getCenter();i[0]+=n[0]/10.5,i[1]+=-n[1]/14,t.setCenter(i)}}}var bs=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function xs(e,t){"china"===e&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:bs[0]})}var _s="name",Os=function(){function e(e,t,n){this.type="geoJSON",this._parsedMap=Object(b["createHashMap"])(),this._mapName=e,this._specialAreas=n,this._geoJSON=ws(t)}return e.prototype.load=function(e,t){t=t||_s;var n=this._parsedMap.get(t);if(!n){var i=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:i,boundingRect:Ss(i)})}var a=Object(b["createHashMap"])(),r=[];return Object(b["each"])(n.regions,(function(t){var n=t.name;e&&Object(b["hasOwn"])(e,n)&&(t=t.cloneShallow(n=e[n])),r.push(t),a.set(n,t)})),{regions:r,boundingRect:n.boundingRect||new te["a"](0,0,0,0),regionsMap:a}},e.prototype._parseToRegions=function(e){var t,n=this._mapName,i=this._geoJSON;try{t=i?me(i,e):[]}catch(a){throw new Error("Invalid geoJson format\n"+a.message)}return ys(n,t),Object(b["each"])(t,(function(e){var t=e.name;ms(n,e),xs(n,e);var i=this._specialAreas&&this._specialAreas[t];i&&e.transformTo(i.left,i.top,i.width,i.height)}),this),t},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function Ss(e){for(var t,n=0;n<e.length;n++){var i=e[n].getBoundingRect();t=t||i.clone(),t.union(i)}return t}function ws(e){return Object(b["isString"])(e)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var Ms=Object(b["createHashMap"])(),Is={registerMap:function(e,t,n){if(t.svg){var i=new ls(e,t.svg);Ms.set(e,i)}else{var a=t.geoJson||t.geoJSON;a&&!t.features?n=t.specialAreas:a=t;i=new Os(e,a,n);Ms.set(e,i)}},getGeoResource:function(e){return Ms.get(e)},getMapForUser:function(e){var t=Ms.get(e);return t&&"geoJSON"===t.type&&t.getMapForUser()},load:function(e,t,n){var i=Ms.get(e);if(i)return i.load(t,n)}},js=n("b3c1"),As=n("19eb"),Cs=["rect","circle","line","ellipse","polygon","polyline","path"],Ts=b["createHashMap"](Cs),Ds=b["createHashMap"](Cs.concat(["g"])),Ls=b["createHashMap"](Cs.concat(["g"])),Ps=Object(w["o"])();function ks(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}function Ns(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var Rs=function(){function e(e){var t=new Se["a"];this.uid=Object(la["c"])("ec_map_draw"),this._controller=new Ao(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new Se["a"]),t.add(this._svgGroup=new Se["a"])}return e.prototype.draw=function(e,t,n,i,a){var r="geo"===e.mainType,o=e.getData&&e.getData();r&&t.eachComponent({mainType:"series",subType:"map"},(function(t){o||t.getHostGeoModel()!==e||(o=t.getData())}));var s=e.coordinateSystem,l=this._regionsGroup,c=this.group,u=s.getTransformInfo(),h=u.raw,d=u.roam,p=!l.childAt(0)||a;p?(c.x=d.x,c.y=d.y,c.scaleX=d.scaleX,c.scaleY=d.scaleY,c.dirty()):Oe["h"](c,d,e);var f=o&&o.getVisual("visualMeta")&&o.getVisual("visualMeta").length>0,g={api:n,geo:s,mapOrGeoModel:e,data:o,isVisualEncodedByVisualMap:f,isGeo:r,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(g):"geoSVG"===s.resourceType&&this._buildSVG(g),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,i)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=b["createHashMap"](),n=b["createHashMap"](),i=this._regionsGroup,a=e.transformInfoRaw,r=e.mapOrGeoModel,o=e.data,s=e.geo.projection,l=s&&s.stream;function c(e,t){return t&&(e=t(e)),e&&[e[0]*a.scaleX+a.x,e[1]*a.scaleY+a.y]}function u(e){for(var t=[],n=!l&&s&&s.project,i=0;i<e.length;++i){var a=c(e[i],n);a&&t.push(a)}return t}function h(e){return{shape:{points:u(e)}}}i.removeAll(),b["each"](e.geo.regions,(function(a){var u=a.name,d=t.get(u),p=n.get(u)||{},f=p.dataIdx,g=p.regionModel;d||(d=t.set(u,new Se["a"]),i.add(d),f=o?o.indexOfName(u):null,g=e.isGeo?r.getRegionModel(u):o?o.getItemModel(f):null,n.set(u,{dataIdx:f,regionModel:g}));var y=[],v=[];b["each"](a.geometries,(function(e){if("polygon"===e.type){var t=[e.exterior].concat(e.interiors||[]);l&&(t=Fs(t,l)),b["each"](t,(function(e){y.push(new Te["a"](h(e)))}))}else{var n=e.points;l&&(n=Fs(n,l,!0)),b["each"](n,(function(e){v.push(new De["a"](h(e)))}))}}));var m=c(a.getCenter(),s&&s.project);function x(t,n){if(t.length){var i=new Ee["a"]({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});d.add(i),Es(e,i,f,g),Vs(e,i,u,g,r,f,m),n&&(Ns(i),b["each"](i.states,Ns))}}x(y),x(v,!0)})),t.each((function(t,i){var a=n.get(i),o=a.dataIdx,s=a.regionModel;zs(e,t,i,s,r,o),Bs(e,t,i,s,r),Gs(e,t,i,s,r)}),this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var i=this._svgDispatcherMap=b["createHashMap"](),a=!1;b["each"](this._svgGraphicRecord.named,(function(t){var n=t.name,r=e.mapOrGeoModel,o=e.data,s=t.svgNodeTagLower,l=t.el,c=o?o.indexOfName(n):null,u=r.getRegionModel(n);if(null!=Ts.get(s)&&l instanceof As["c"]&&Es(e,l,c,u),l instanceof As["c"]&&(l.culling=!0),l.z2EmphasisLift=0,!t.namedFrom&&(null!=Ls.get(s)&&Vs(e,l,n,u,r,c,null),zs(e,l,n,u,r,c),Bs(e,l,n,u,r),null!=Ds.get(s))){var h=Gs(e,l,n,u,r);"self"===h&&(a=!0);var d=i.get(n)||i.set(n,[]);d.push(l)}}),this),this._enableBlurEntireSVG(a,e)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=n.opacity;this._svgGraphicRecord.root.traverse((function(e){if(!e.isGroup){Object(X["G"])(e);var t=e.ensureState("blur").style||{};null==t.opacity&&null!=i&&(t.opacity=i),e.ensureState("emphasis")}}))}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(e,t){if(null==e)return[];var n=t.coordinateSystem;if("geoJSON"===n.resourceType){var i=this._regionsGroupByName;if(i){var a=i.get(e);return a?[a]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=Is.getGeoResource(e);if(t&&"geoSVG"===t.type){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(null!=e){var t=Is.getGeoResource(e);t&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(e,t,n){var i=e.coordinateSystem,a=this._controller,r=this._controllerHost;r.zoomLimit=e.get("scaleLimit"),r.zoom=i.getZoom(),a.enable(e.get("roam")||!1);var o=e.mainType;function s(){var t={type:"geoRoam",componentType:o};return t[o+"Id"]=e.id,t}a.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,Co(r,e.dx,e.dy),n.dispatchAction(b["extend"](s(),{dx:e.dx,dy:e.dy,animation:{duration:0}}))}),this),a.off("zoom").on("zoom",(function(e){this._mouseDownFlag=!1,To(r,e.scale,e.originX,e.originY),n.dispatchAction(b["extend"](s(),{zoom:e.scale,originX:e.originX,originY:e.originY,animation:{duration:0}}))}),this),a.setPointerChecker((function(t,a,r){return i.containPoint([a,r])&&!Lo(t,n,e)}))},e.prototype.resetForLabelLayout=function(){this.group.traverse((function(e){var t=e.getTextContent();t&&(t.ignore=Ps(t).ignore)}))},e.prototype._updateMapSelectHandler=function(e,t,n,i){var a=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",(function(){a._mouseDownFlag=!0})),t.on("click",(function(e){a._mouseDownFlag&&(a._mouseDownFlag=!1)})))},e}();function Es(e,t,n,i){var a=i.getModel("itemStyle"),r=i.getModel(["emphasis","itemStyle"]),o=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=ks(a),c=ks(r),u=ks(s),h=ks(o),d=e.data;if(d){var p=d.getItemVisual(n,"style"),f=d.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),f&&(l.decal=Object(js["a"])(f,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=c,t.ensureState("select").style=u,t.ensureState("blur").style=h,Object(X["G"])(t)}function Vs(e,t,n,i,a,r,o){var s=e.data,l=e.isGeo,c=s&&isNaN(s.get(s.mapDimension("value"),r)),u=s&&s.getItemLayout(r);if(l||c||u&&u.showLabel){var h=l?n:r,d=void 0;(!s||r>=0)&&(d=a);var p=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Object(Z["g"])(t,Object(Z["e"])(i),{labelFetcher:d,labelDataIndex:h,defaultText:n},p);var f=t.getTextContent();if(f&&(Ps(f).ignore=f.ignore,t.textConfig&&o)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function zs(e,t,n,i,a,r){e.data?e.data.setItemGraphicEl(r,t):Object(W["a"])(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:n,region:i&&i.option||{}}}function Bs(e,t,n,i,a){e.data||_e["setTooltipConfig"]({el:t,componentModel:a,itemName:n,itemTooltipOption:i.get("tooltip")})}function Gs(e,t,n,i,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var r=i.getModel("emphasis"),o=r.get("focus");return Object(X["J"])(t,o,r.get("blurScope"),r.get("disabled")),e.isGeo&&Object(X["n"])(t,a,n),o}function Fs(e,t,n){var i,a=[];function r(){i=[]}function o(){i.length&&(a.push(i),i=[])}var s=t({polygonStart:r,polygonEnd:o,lineStart:r,lineEnd:o,point:function(e,t){isFinite(e)&&isFinite(t)&&i.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),b["each"](e,(function(e){s.lineStart();for(var t=0;t<e.length;t++)s.point(e[t][0],e[t][1]);s.lineEnd()})),!n&&s.polygonEnd(),a}var Hs=Rs,Ws=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.render=function(e,t,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var a=this.group;if(a.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===e.id){r=this._mapDraw;r&&a.add(r.group)}else if(e.needsDrawMap){var r=this._mapDraw||new Hs(n);a.add(r.group),r.draw(e,t,n,this,i),this._mapDraw=r}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var i=e.originalData,a=this.group;i.each(i.mapDimension("value"),(function(t,n){if(!isNaN(t)){var r=i.getItemLayout(n);if(r&&r.point){var o=r.point,s=r.offset,l=new Ie["a"]({style:{fill:e.getData().getVisual("style").fill},shape:{cx:o[0]+9*s,cy:o[1],r:3},silent:!0,z2:8+(s?0:X["j"]+1)});if(!s){var c=e.mainSeries.getData(),u=i.getName(n),h=c.indexOfName(u),d=i.getItemModel(n),p=d.getModel("label"),f=c.getItemGraphicEl(h);Object(Z["g"])(l,Object(Z["e"])(d),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(h,n)}},defaultText:u}),l.disableLabelAnimation=!0,p.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(e){Object(X["H"])(l,e)}}a.add(l)}}}))},t.type="map",t}(f["a"]),Zs=Ws,Ys=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,i=n.getRegion(t);return i&&n.dataToPoint(i.getCenter())}},n}return Object(ee["a"])(t,e),t.prototype.getInitialData=function(e){for(var t=Object($r["a"])(this,{coordDimensions:["value"],encodeDefaulter:b["curry"](L["d"],this)}),n=b["createHashMap"](),i=[],a=0,r=t.count();a<r;a++){var o=t.getName(a);n.set(o,!0)}var s=Is.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return b["each"](s.regions,(function(e){var t=e.name;n.get(t)||i.push(t)})),t.appendValues([],i),t},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return null!=e?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){for(var i=this.getData(),a=this.getRawValue(e),r=i.getName(e),o=this.seriesGroup,s=[],l=0;l<o.length;l++){var c=o[l].originalData.indexOfName(r),u=i.mapDimension("value");isNaN(o[l].originalData.get(u,c))||s.push(o[l].name)}return Object(eo["c"])("section",{header:s.join(", "),noHeader:!s.length,blocks:[Object(eo["c"])("nameValue",{name:r,value:a})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var t=e.icon||"roundRect",n=Object(Y["a"])(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(p["b"]),Xs=Ys;function Us(e,t){var n={};return b["each"](e,(function(e){e.each(e.mapDimension("value"),(function(t,i){var a="ec-"+e.getName(i);n[a]=n[a]||[],isNaN(t)||n[a].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(i,a){for(var r,o="ec-"+e[0].getName(a),s=0,l=1/0,c=-1/0,u=n[o].length,h=0;h<u;h++)l=Math.min(l,n[o][h]),c=Math.max(c,n[o][h]),s+=n[o][h];return r="min"===t?l:"max"===t?c:"average"===t?s/u:s,0===u?NaN:r}))}function qs(e){var t={};e.eachSeriesByType("map",(function(e){var n=e.getHostGeoModel(),i=n?"o"+n.id:"i"+e.getMapType();(t[i]=t[i]||[]).push(e)})),b["each"](t,(function(e,t){for(var n=Us(b["map"](e,(function(e){return e.getData()})),e[0].get("mapValueCalculation")),i=0;i<e.length;i++)e[i].originalData=e[i].getData();for(i=0;i<e.length;i++)e[i].seriesGroup=e,e[i].needsDrawMap=0===i&&!e[i].getHostGeoModel(),e[i].setData(n.cloneShallow()),e[i].mainSeries=e[0]}))}function Js(e){var t={};e.eachSeriesByType("map",(function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!t[i]){var a={};b["each"](n.seriesGroup,(function(t){var n=t.coordinateSystem,i=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&i.each(i.mapDimension("value"),(function(e,t){var r=i.getName(t),o=n.getRegion(r);if(o&&!isNaN(e)){var s=a[r]||0,l=n.dataToPoint(o.getCenter());a[r]=s+1,i.setItemLayout(t,{point:l,offset:s})}}))}));var r=n.getData();r.each((function(e){var t=r.getName(e),n=r.getItemLayout(e)||{};n.showLabel=!a[t],r.setItemLayout(e,n)})),t[i]=!0}}))}var Ks=n("f3bb"),$s=m["applyTransform"],Qs=function(e){function t(t){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Jt["c"],n._rawTransformable=new Jt["c"],n.name=t,n}return Object(ee["a"])(t,e),t.prototype.setBoundingRect=function(e,t,n,i){return this._rect=new te["a"](e,t,n,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,i){this._transformTo(e,t,n,i),this._viewRect=new te["a"](e,t,n,i)},t.prototype._transformTo=function(e,t,n,i){var a=this.getBoundingRect(),r=this._rawTransformable;r.transform=a.calculateTransform(new te["a"](e,t,n,i));var o=r.parent;r.parent=null,r.decomposeTransform(),r.parent=o,this._updateTransform()},t.prototype.setCenter=function(e,t){e&&(this._center=[Object(be["q"])(e[0],t.getWidth()),Object(be["q"])(e[1],t.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),t=e.x+e.width/2,n=e.y+e.height/2;return[t,n]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),a=this.getZoom();i=m["applyTransform"]([],i,e),n=m["applyTransform"]([],n,e),t.originX=i[0],t.originY=i[1],t.x=n[0]-i[0],t.y=n[1]-i[1],t.scaleX=t.scaleY=a,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),v["copy"](this.transform||(this.transform=[]),t.transform||v["create"]()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],v["invert"](this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new Jt["c"];return n.transform=t.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,t,n){var i=t?this._rawTransform:this.transform;return n=n||[],i?$s(n,e,i):m["copy"](n,e)},t.prototype.pointToData=function(e){var t=this.invTransform;return t?$s([],e,t):[e[0],e[1]]},t.prototype.convertToPixel=function(e,t,n){var i=el(t);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var i=el(t);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(Jt["c"]);function el(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var tl=Qs,nl={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},il=["lng","lat"],al=function(e){function t(t,n,i){var a=e.call(this,t)||this;a.dimensions=il,a.type="geo",a._nameCoordMap=b["createHashMap"](),a.map=n;var r,o=i.projection,s=Is.load(n,i.nameMap,i.nameProperty),l=Is.getGeoResource(n),c=(a.resourceType=l?l.type:null,a.regions=s.regions),u=nl[l.type];if(a._regionsMap=s.regionsMap,a.regions=s.regions,a.projection=o,o)for(var h=0;h<c.length;h++){var d=c[h].getBoundingRect(o);r=r||d.clone(),r.union(d)}else r=s.boundingRect;return a.setBoundingRect(r.x,r.y,r.width,r.height),a.aspectScale=o?1:b["retrieve2"](i.aspectScale,u.aspectScale),a._invertLongitute=!o&&u.invertLongitute,a}return Object(ee["a"])(t,e),t.prototype._transformTo=function(e,t,n,i){var a=this.getBoundingRect(),r=this._invertLongitute;a=a.clone(),r&&(a.y=-a.y-a.height);var o=this._rawTransformable;o.transform=a.calculateTransform(new te["a"](e,t,n,i));var s=o.parent;o.parent=null,o.decomposeTransform(),o.parent=s,r&&(o.scaleY=-o.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var i=t[n];if("geoJSON"===i.type&&i.contain(e))return t[n]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if(b["isString"](e)&&(e=this.getGeoCoord(e)),e){var i=this.projection;return i&&(e=i.project(e)),e&&this.projectedToPoint(e,t,n)}},t.prototype.pointToData=function(e){var t=this.projection;return t&&(e=t.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(t){return e.prototype.pointToData.call(this,t)},t.prototype.projectedToPoint=function(t,n,i){return e.prototype.dataToPoint.call(this,t,n,i)},t.prototype.convertToPixel=function(e,t,n){var i=rl(t);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var i=rl(t);return i===this?i.pointToData(n):null},t}(tl);function rl(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",w["b"]).models[0]||{}).coordinateSystem:null}b["mixin"](al,tl);var ol=al;function sl(e,t){var n=e.get("boundingCoords");if(null!=n){var i=n[0],a=n[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])){var r=this.projection;if(r){var o=i[0],s=i[1],l=a[0],c=a[1];i=[1/0,1/0],a=[-1/0,-1/0];var u=function(e,t,n,o){for(var s=n-e,l=o-t,c=0;c<=100;c++){var u=c/100,h=r.project([e+s*u,t+l*u]);m["min"](i,i,h),m["max"](a,a,h)}};u(o,s,l,s),u(l,s,l,c),u(l,c,o,c),u(o,c,l,s)}this.setBoundingRect(i[0],i[1],a[0]-i[0],a[1]-i[1])}else 0}var h,d,p,f=this.getBoundingRect(),g=e.get("layoutCenter"),y=e.get("layoutSize"),v=t.getWidth(),b=t.getHeight(),x=f.width/f.height*this.aspectScale,_=!1;if(g&&y&&(h=[be["q"](g[0],v),be["q"](g[1],b)],d=be["q"](y,Math.min(v,b)),isNaN(h[0])||isNaN(h[1])||isNaN(d)||(_=!0)),_)p={},x>1?(p.width=d,p.height=d/x):(p.height=d,p.width=d*x),p.y=h[1]-p.height/2,p.x=h[0]-p.width/2;else{var O=e.getBoxLayoutParams();O.aspect=x,p=H["g"](O,{width:v,height:b})}this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function ll(e,t){b["each"](t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}var cl=function(){function e(){this.dimensions=il}return e.prototype.create=function(e,t){var n=[];function i(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",(function(e,a){var r=e.get("map"),o=new ol(r+a,r,b["extend"]({nameMap:e.get("nameMap")},i(e)));o.zoomLimit=e.get("scaleLimit"),n.push(o),e.coordinateSystem=o,o.model=e,o.resize=sl,o.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var i=e.get("geoIndex")||0;e.coordinateSystem=n[i]}}));var a={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();a[t]=a[t]||[],a[t].push(e)}})),b["each"](a,(function(e,a){var r=b["map"](e,(function(e){return e.get("nameMap")})),o=new ol(a,a,b["extend"]({nameMap:b["mergeAll"](r)},i(e[0])));o.zoomLimit=b["retrieve"].apply(null,b["map"](e,(function(e){return e.get("scaleLimit")}))),n.push(o),o.resize=sl,o.resize(e[0],t),b["each"](e,(function(e){e.coordinateSystem=o,ll(o,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,i){for(var a=(e||[]).slice(),r=b["createHashMap"](),o=0;o<a.length;o++)r.set(a[o].name,a[o]);var s=Is.load(t,n,i);return b["each"](s.regions,(function(e){var t=e.name;!r.get(t)&&a.push({name:t})})),a},e}(),ul=new cl,hl=ul,dl=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.init=function(e,t,n){var i=Is.getGeoResource(e.map);if(i&&"geoJSON"===i.type){var a=e.itemStyle=e.itemStyle||{};"color"in a||(a.color="#eee")}this.mergeDefaultAndTheme(e,n),w["f"](e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=hl.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=b["reduce"](t.regions||[],(function(t,i){var a=i.name;return a&&(t.set(a,new F["a"](i,e,e.ecModel)),i.selected&&(n[a]=!0)),t}),b["createHashMap"]()),t.selectedMap||(t.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new F["a"](null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),i="normal"===t?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),a={name:e};return b["isFunction"](i)?(a.status=t,i(a)):b["isString"](i)?i.replace("{a}",null!=e?e:""):void 0},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var t=this.option,n=t.selectedMode;if(n){"multiple"!==n&&(t.selectedMap=null);var i=t.selectedMap||(t.selectedMap={});i[e]=!0}},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!(!t||!t[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(h["a"]),pl=dl;function fl(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function gl(e,t,n,i){var a=e.getZoom(),r=e.getCenter(),o=t.zoom,s=e.projectedToPoint?e.projectedToPoint(r):e.dataToPoint(r);if(null!=t.dx&&null!=t.dy&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(fl(e,s),i)),null!=o){if(n){var l=n.min||0,c=n.max||1/0;o=Math.max(Math.min(a*o,c),l)/a}e.scaleX*=o,e.scaleY*=o;var u=(t.originX-e.x)*(o-1),h=(t.originY-e.y)*(o-1);e.x-=u,e.y-=h,e.updateTransform(),e.setCenter(fl(e,s),i),e.setZoom(o*a)}return{center:e.getCenter(),zoom:e.getZoom()}}var yl=n("fadd"),vl=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return Object(ee["a"])(t,e),t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,i){if(this._model=e,!e.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new Hs(n));var a=this._mapDraw;a.draw(e,t,n,this,i),a.group.on("click",this._handleRegionClick,this),a.group.silent=e.get("silent"),this.group.add(a.group),this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t;Object(yl["a"])(e.target,(function(e){return null!=(t=Object(W["a"])(e).eventData)}),!0),t&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var i=this;this._mapDraw.group.traverse((function(e){var t=Object(W["a"])(e).eventData;if(t)return i._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0}))},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(d["a"]),ml=vl;function bl(e,t,n){Is.registerMap(e,t,n)}function xl(e){function t(t,n){n.update="geo:updateSelectStatus",e.registerAction(n,(function(e,n){var i={},a=[];return n.eachComponent({mainType:"geo",query:e},(function(n){n[t](e.name);var r=n.coordinateSystem;Object(b["each"])(r.regions,(function(e){i[e.name]=n.isSelected(e.name)||!1}));var o=[];Object(b["each"])(i,(function(e,t){i[t]&&o.push(t)})),a.push({geoIndex:n.componentIndex,name:o})})),{selected:i,allSelected:a,name:e.name}}))}e.registerCoordinateSystem("geo",hl),e.registerComponentModel(pl),e.registerComponentView(ml),e.registerImpl("registerMap",bl),e.registerImpl("getMap",(function(e){return Is.getMapForUser(e)})),t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(e,t,n){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},(function(t){var a=t.coordinateSystem;if("geo"===a.type){var r=gl(a,e,t.get("scaleLimit"),n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom),"series"===i&&Object(b["each"])(t.seriesGroup,(function(e){e.setCenter(r.center),e.setZoom(r.zoom)}))}}))}))}function _l(e){Object(c["a"])(xl),e.registerChartView(Zs),e.registerSeriesModel(Xs),e.registerLayout(Js),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,qs),Object(Ks["a"])("map",e.registerAction)}function Ol(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var n,i,a=[t];while(n=a.pop())if(i=n.children,n.isExpand&&i.length)for(var r=i.length,o=r-1;o>=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},a.push(s)}}function Sl(e,t){var n=e.isExpand?e.children:[],i=e.parentNode.children,a=e.hierNode.i?i[e.hierNode.i-1]:null;if(n.length){Al(e);var r=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;a?(e.hierNode.prelim=a.hierNode.prelim+t(e,a),e.hierNode.modifier=e.hierNode.prelim-r):e.hierNode.prelim=r}else a&&(e.hierNode.prelim=a.hierNode.prelim+t(e,a));e.parentNode.hierNode.defaultAncestor=Cl(e,a,e.parentNode.hierNode.defaultAncestor||i[0],t)}function wl(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function Ml(e){return arguments.length?e:kl}function Il(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function jl(e,t){return H["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Al(e){var t=e.children,n=t.length,i=0,a=0;while(--n>=0){var r=t[n];r.hierNode.prelim+=i,r.hierNode.modifier+=i,a+=r.hierNode.change,i+=r.hierNode.shift+a}}function Cl(e,t,n,i){if(t){var a=e,r=e,o=r.parentNode.children[0],s=t,l=a.hierNode.modifier,c=r.hierNode.modifier,u=o.hierNode.modifier,h=s.hierNode.modifier;while(s=Tl(s),r=Dl(r),s&&r){a=Tl(a),o=Dl(o),a.hierNode.ancestor=e;var d=s.hierNode.prelim+h-r.hierNode.prelim-c+i(s,r);d>0&&(Pl(Ll(s,e,n),e,d),c+=d,l+=d),h+=s.hierNode.modifier,c+=r.hierNode.modifier,l+=a.hierNode.modifier,u+=o.hierNode.modifier}s&&!Tl(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=h-l),r&&!Dl(o)&&(o.hierNode.thread=r,o.hierNode.modifier+=c-u,n=e)}return n}function Tl(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function Dl(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function Ll(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function Pl(e,t,n){var i=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=i,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=i}function kl(e,t){return e.parentNode===t.parentNode?1:2}var Nl=n("e263"),Rl=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),El=function(e){function t(t){return e.call(this,t)||this}return Object(ee["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Rl},t.prototype.buildPath=function(e,t){var n=t.childPoints,i=n.length,a=t.parentPoint,r=n[0],o=n[i-1];if(1===i)return e.moveTo(a[0],a[1]),void e.lineTo(r[0],r[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,c=1-l,u=Object(be["q"])(t.forkPosition,1),h=[];h[l]=a[l],h[c]=a[c]+(o[c]-a[c])*u,e.moveTo(a[0],a[1]),e.lineTo(h[0],h[1]),e.moveTo(r[0],r[1]),h[l]=r[l],e.lineTo(h[0],h[1]),h[l]=o[l],e.lineTo(h[0],h[1]),e.lineTo(o[0],o[1]);for(var d=1;d<i-1;d++){var p=n[d];e.moveTo(p[0],p[1]),h[l]=p[l],e.lineTo(h[0],h[1])}},t}(xt["b"]),Vl=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new Se["a"],n}return Object(ee["a"])(t,e),t.prototype.init=function(e,t){this._controller=new Ao(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var i=e.getData(),a=e.layoutInfo,r=this._mainGroup,o=e.get("layout");"radial"===o?(r.x=a.x+a.width/2,r.y=a.y+a.height/2):(r.x=a.x,r.y=a.y),this._updateViewCoordSys(e,n),this._updateController(e,t,n);var s=this._data;i.diff(s).add((function(t){zl(i,t)&&Bl(i,t,null,r,e)})).update((function(t,n){var a=s.getItemGraphicEl(n);zl(i,t)?Bl(i,t,a,r,e):a&&Wl(s,n,a,r,e)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&Wl(s,t,n,r,e)})).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===e.get("expandAndCollapse")&&i.eachItemGraphicEl((function(t,i){t.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:i})}))})),this._data=i},t.prototype._updateViewCoordSys=function(e,t){var n=e.getData(),i=[];n.each((function(e){var t=n.getItemLayout(e);!t||isNaN(t.x)||isNaN(t.y)||i.push([+t.x,+t.y])}));var a=[],r=[];Nl["d"](i,a,r);var o=this._min,s=this._max;r[0]-a[0]===0&&(a[0]=o?o[0]:a[0]-1,r[0]=s?s[0]:r[0]+1),r[1]-a[1]===0&&(a[1]=o?o[1]:a[1]-1,r[1]=s?s[1]:r[1]+1);var l=e.coordinateSystem=new tl;l.zoomLimit=e.get("scaleLimit"),l.setBoundingRect(a[0],a[1],r[0]-a[0],r[1]-a[1]),l.setCenter(e.get("center"),t),l.setZoom(e.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=a,this._max=r},t.prototype._updateController=function(e,t,n){var i=this,a=this._controller,r=this._controllerHost,o=this.group;a.setPointerChecker((function(t,i,a){var r=o.getBoundingRect();return r.applyTransform(o.transform),r.contain(i,a)&&!Lo(t,n,e)})),a.enable(e.get("roam")),r.zoomLimit=e.get("scaleLimit"),r.zoom=e.coordinateSystem.getZoom(),a.off("pan").off("zoom").on("pan",(function(t){Co(r,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){To(r,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(e),n.updateLabelLayout()}))},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=this._getNodeGlobalScale(e);t.eachItemGraphicEl((function(e,t){e.setSymbolScale(n)}))},t.prototype._getNodeGlobalScale=function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,i=t.scaleX||1,a=t.getZoom(),r=(a-1)*n+1;return r/i},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(f["a"]);function zl(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function Bl(e,t,n,i,a){var r=!n,o=e.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,c=!1===o.isExpand&&0!==o.children.length?l:"#fff",u=e.tree.root,h=o.parentNode===u?o:o.parentNode||o,d=e.getItemGraphicEl(h.dataIndex),p=h.getLayout(),f=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:p,g=o.getLayout();r?(n=new ci(e,t,null,{symbolInnerColor:c,useNameLabel:!0}),n.x=f.x,n.y=f.y):n.updateData(e,t,null,{symbolInnerColor:c,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,i.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,Oe["h"](n,{x:g.x,y:g.y},a);var y=n.getSymbolPath();if("radial"===a.get("layout")){var v=u.children[0],m=v.getLayout(),x=v.children.length,_=void 0,O=void 0;if(g.x===m.x&&!0===o.isExpand&&v.children.length){var S={x:(v.children[0].getLayout().x+v.children[x-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[x-1].getLayout().y)/2};_=Math.atan2(S.y-m.y,S.x-m.x),_<0&&(_=2*Math.PI+_),O=S.x<m.x,O&&(_-=Math.PI)}else _=Math.atan2(g.y-m.y,g.x-m.x),_<0&&(_=2*Math.PI+_),0===o.children.length||0!==o.children.length&&!1===o.isExpand?(O=g.x<m.x,O&&(_-=Math.PI)):(O=g.x>m.x,O||(_-=Math.PI));var w=O?"left":"right",M=s.getModel("label"),I=M.get("rotate"),j=I*(Math.PI/180),A=y.getTextContent();A&&(y.setTextConfig({position:M.get("position")||w,rotation:null==I?-_:j,origin:"center"}),A.setStyle("verticalAlign","middle"))}var C=s.get(["emphasis","focus"]),T="relative"===C?b["concatArray"](o.getAncestorsIndices(),o.getDescendantIndices()):"ancestor"===C?o.getAncestorsIndices():"descendant"===C?o.getDescendantIndices():null;T&&(Object(W["a"])(n).focus=T),Gl(a,o,u,n,f,p,g,i),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var i=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);i&&i.hoverState===X["d"]||Object(X["H"])(n.__edge,t)}})}function Gl(e,t,n,i,a,r,o,s){var l=t.getModel(),c=e.get("edgeShape"),u=e.get("layout"),h=e.getOrient(),d=e.get(["lineStyle","curveness"]),p=e.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===c)t.parentNode&&t.parentNode!==n&&(g||(g=i.__edge=new ke["a"]({shape:Zl(u,h,d,a,a)})),Oe["h"](g,{shape:Zl(u,h,d,r,o)},e));else if("polyline"===c)if("orthogonal"===u){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var y=t.children,v=[],m=0;m<y.length;m++){var x=y[m].getLayout();v.push([x.x,x.y])}g||(g=i.__edge=new El({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:h,forkPosition:p}})),Oe["h"](g,{shape:{parentPoint:[o.x,o.y],childPoints:v}},e)}}else 0;g&&("polyline"!==c||t.isExpand)&&(g.useStyle(b["defaults"]({strokeNoScale:!0,fill:null},f)),Object(X["I"])(g,l,"lineStyle"),Object(X["G"])(g),s.add(g))}function Fl(e,t,n,i,a){var r=t.tree.root,o=Hl(r,e),s=o.source,l=o.sourceLayout,c=t.getItemGraphicEl(e.dataIndex);if(c){var u=t.getItemGraphicEl(s.dataIndex),h=u.__edge,d=c.__edge||(!1===s.isExpand||1===s.children.length?h:void 0),p=i.get("edgeShape"),f=i.get("layout"),g=i.get("orient"),y=i.get(["lineStyle","curveness"]);d&&("curve"===p?Oe["e"](d,{shape:Zl(f,g,y,l,l),style:{opacity:0}},i,{cb:function(){n.remove(d)},removeOpt:a}):"polyline"===p&&"orthogonal"===i.get("layout")&&Oe["e"](d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},i,{cb:function(){n.remove(d)},removeOpt:a}))}}function Hl(e,t){var n,i=t.parentNode===e?t:t.parentNode||t;while(n=i.getLayout(),null==n)i=i.parentNode===e?i:i.parentNode||i;return{source:i,sourceLayout:n}}function Wl(e,t,n,i,a){var r=e.tree.getNodeByDataIndex(t),o=e.tree.root,s=Hl(o,r).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};Oe["e"](n,{x:s.x+1,y:s.y+1},a,{cb:function(){i.remove(n),e.setItemGraphicEl(t,null)},removeOpt:l}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),r.children.forEach((function(t){Fl(t,e,i,a,l)})),Fl(r,e,i,a,l)}function Zl(e,t,n,i,a){var r,o,s,l,c,u,h,d;if("radial"===e){c=i.rawX,h=i.rawY,u=a.rawX,d=a.rawY;var p=Il(c,h),f=Il(c,h+(d-h)*n),g=Il(u,d+(h-d)*n),y=Il(u,d);return{x1:p.x||0,y1:p.y||0,x2:y.x||0,y2:y.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}}return c=i.x,h=i.y,u=a.x,d=a.y,"LR"!==t&&"RL"!==t||(r=c+(u-c)*n,o=h,s=u+(c-u)*n,l=d),"TB"!==t&&"BT"!==t||(r=c,o=h+(d-h)*n,s=u,l=d+(h-d)*n),{x1:c,y1:h,x2:u,y2:d,cpx1:r,cpy1:o,cpx2:s,cpy2:l}}var Yl=Vl,Xl=Object(w["o"])();function Ul(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,tc(t,n,e),Object(b["each"])(n,(function(n){Object(b["each"])(t.TRANSFERABLE_METHODS,(function(t){n.wrapMethod(t,Object(b["curry"])(ql,e))}))})),t.wrapMethod("cloneShallow",Object(b["curry"])(Kl,e)),Object(b["each"])(t.CHANGABLE_METHODS,(function(n){t.wrapMethod(n,Object(b["curry"])(Jl,e))})),Object(b["assert"])(n[t.dataType]===t)}function ql(e,t){if(ec(this)){var n=Object(b["extend"])({},Xl(this).datas);n[this.dataType]=t,tc(t,n,e)}else nc(t,this.dataType,Xl(this).mainData,e);return t}function Jl(e,t){return e.struct&&e.struct.update(),t}function Kl(e,t){return Object(b["each"])(Xl(t).datas,(function(n,i){n!==t&&nc(n.cloneShallow(),i,t,e)})),t}function $l(e){var t=Xl(this).mainData;return null==e||null==t?t:Xl(t).datas[e]}function Ql(){var e=Xl(this).mainData;return null==e?[{data:e}]:Object(b["map"])(Object(b["keys"])(Xl(e).datas),(function(t){return{type:t,data:Xl(e).datas[t]}}))}function ec(e){return Xl(e).mainData===e}function tc(e,t,n){Xl(e).datas={},Object(b["each"])(t,(function(t,i){nc(t,i,e,n)}))}function nc(e,t,n,i){Xl(n).datas[t]=e,Xl(e).mainData=n,e.dataType=t,i.struct&&(e[i.structAttr]=i.struct,i.struct[i.datasAttr[t]]=e),e.getLinkedData=$l,e.getLinkedDataAll=Ql}var ic=Ul,ac=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){b["isFunction"](e)&&(n=t,t=e,e=null),e=e||{},b["isString"](e)&&(e={order:e});var i,a=e.order||"preorder",r=this[e.attr||"children"];"preorder"===a&&(i=t.call(n,this));for(var o=0;!i&&o<r.length;o++)r[o].eachNode(e,t,n);"postorder"===a&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(e+1),i.height>t&&(t=i.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,i=n.length;t<i;t++){var a=n[t].getNodeById(e);if(a)return a}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,i=n.length;t<i;t++){var a=n[t].contains(e);if(a)return a}},e.prototype.getAncestors=function(e){var t=[],n=e?this:this.parentNode;while(n)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){var e=[],t=this;while(t)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode((function(t){e.push(t.dataIndex)})),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},e.prototype.isAncestorOf=function(e){var t=e.parentNode;while(t){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}(),rc=function(){function e(e){this.type="tree",this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,i=t.length;n<i;n++)t[n].dataIndex=-1;for(n=0,i=e.count();n<i;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,i){var a=new e(n),r=[],o=1;function s(e,t){var n=e.value;o=Math.max(o,b["isArray"](n)?n.length:1),r.push(e);var i=new ac(Object(w["e"])(e.name,""),a);t?oc(i,t):a.root=i,a._nodes.push(i);var l=e.children;if(l)for(var c=0;c<l.length;c++)s(l[c],i)}s(t),a.root.updateDepthAndHeight(0);var l=Object(O["b"])(r,{coordDimensions:["value"],dimensionsCount:o}).dimensions,c=new g["a"](l,n);return c.initData(r),i&&i(c),ic({mainData:c,struct:a,structAttr:"tree"}),a.update(),a},e}();function oc(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}var sc=rc;function lc(e,t,n){if(e&&b["indexOf"](t,e.type)>=0){var i=n.getData().tree.root,a=e.targetNode;if(b["isString"](a)&&(a=i.getNodeById(a)),a&&i.contains(a))return{node:a};var r=e.targetNodeId;if(null!=r&&(a=i.getNodeById(r)))return{node:a}}}function cc(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function uc(e,t){var n=cc(e);return b["indexOf"](n,t)>=0}function hc(e,t){var n=[];while(e){var i=e.dataIndex;n.push({name:e.name,dataIndex:i,value:t.getRawValue(i)}),e=e.parentNode}return n.reverse(),n}var dc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return Object(ee["a"])(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},i=new F["a"](n,this,this.ecModel),a=sc.createTree(t,this,r);function r(e){e.wrapMethod("getItemModel",(function(e,t){var n=a.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=i),e}))}var o=0;a.eachNode("preorder",(function(e){e.depth>o&&(o=e.depth)}));var s=e.expandAndCollapse,l=s&&e.initialTreeDepth>=0?e.initialTreeDepth:o;return a.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=l})),a.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){var i=this.getData().tree,a=i.root.children[0],r=i.getNodeByDataIndex(e),o=r.getValue(),s=r.name;while(r&&r!==a)s=r.parentNode.name+"."+s,r=r.parentNode;return Object(eo["c"])("nameValue",{name:s,value:o,noValue:isNaN(o)||null==o})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=hc(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(p["b"]),pc=dc;function fc(e,t,n){var i,a=[e],r=[];while(i=a.pop())if(r.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)a.push(o[s])}while(i=r.pop())t(i,n)}function gc(e,t){var n,i=[e];while(n=i.pop())if(t(n),n.isExpand){var a=n.children;if(a.length)for(var r=a.length-1;r>=0;r--)i.push(a[r])}}function yc(e,t){e.eachSeriesByType("tree",(function(e){vc(e,t)}))}function vc(e,t){var n=jl(e,t);e.layoutInfo=n;var i=e.get("layout"),a=0,r=0,o=null;"radial"===i?(a=2*Math.PI,r=Math.min(n.height,n.width)/2,o=Ml((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(a=n.width,r=n.height,o=Ml());var s=e.getData().tree.root,l=s.children[0];if(l){Ol(s),fc(l,Sl,o),s.hierNode.modifier=-l.hierNode.prelim,gc(l,wl);var c=l,u=l,h=l;gc(l,(function(e){var t=e.getLayout().x;t<c.getLayout().x&&(c=e),t>u.getLayout().x&&(u=e),e.depth>h.depth&&(h=e)}));var d=c===u?1:o(c,u)/2,p=d-c.getLayout().x,f=0,g=0,y=0,v=0;if("radial"===i)f=a/(u.getLayout().x+d+p),g=r/(h.depth-1||1),gc(l,(function(e){y=(e.getLayout().x+p)*f,v=(e.depth-1)*g;var t=Il(y,v);e.setLayout({x:t.x,y:t.y,rawX:y,rawY:v},!0)}));else{var m=e.getOrient();"RL"===m||"LR"===m?(g=r/(u.getLayout().x+d+p),f=a/(h.depth-1||1),gc(l,(function(e){v=(e.getLayout().x+p)*g,y="LR"===m?(e.depth-1)*f:a-(e.depth-1)*f,e.setLayout({x:y,y:v},!0)}))):"TB"!==m&&"BT"!==m||(f=a/(u.getLayout().x+d+p),g=r/(h.depth-1||1),gc(l,(function(e){y=(e.getLayout().x+p)*f,v="TB"===m?(e.depth-1)*g:r-(e.depth-1)*g,e.setLayout({x:y,y:v},!0)})))}}}function mc(e){e.eachSeriesByType("tree",(function(e){var t=e.getData(),n=t.tree;n.eachNode((function(e){var n=e.getModel(),i=n.getModel("itemStyle").getItemStyle(),a=t.ensureUniqueItemVisual(e.dataIndex,"style");Object(b["extend"])(a,i)}))}))}function bc(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,i=t.getData().tree,a=i.getNodeByDataIndex(n);a.isExpand=!a.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var i=t.coordinateSystem,a=gl(i,e,void 0,n);t.setCenter&&t.setCenter(a.center),t.setZoom&&t.setZoom(a.zoom)}))}))}function xc(e){e.registerChartView(Yl),e.registerSeriesModel(pc),e.registerLayout(yc),e.registerVisual(mc),bc(e)}var _c=["treemapZoomToNode","treemapRender","treemapMove"];function Oc(e){for(var t=0;t<_c.length;t++)e.registerAction({type:_c[t],update:"updateView"},b["noop"]);e.registerAction({type:"treemapRootToNode",update:"updateView"},(function(e,t){function n(t,n){var i=["treemapZoomToNode","treemapRootToNode"],a=lc(e,i,t);if(a){var r=t.getViewRoot();r&&(e.direction=uc(r,a.node)?"rollUp":"drillDown"),t.resetViewRoot(a.node)}}t.eachComponent({mainType:"series",subType:"treemap",query:e},n)}))}var Sc=n("4041");function wc(e){var t=e.getData(),n=t.tree,i={};n.eachNode((function(t){var n=t;while(n&&n.depth>1)n=n.parentNode;var a=Object(Sc["b"])(e.ecModel,n.name||n.dataIndex+"",i);t.setVisual("decal",a)}))}var Mc=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return Object(ee["a"])(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};Ic(n);var i=e.levels||[],a=this.designatedVisualItemStyle={},r=new F["a"]({itemStyle:a},this,t);i=e.levels=jc(i,t);var o=b["map"](i||[],(function(e){return new F["a"](e,r,t)}),this),s=sc.createTree(n,this,l);function l(e){e.wrapMethod("getItemModel",(function(e,t){var n=s.getNodeByDataIndex(t),i=n?o[n.depth]:null;return e.parentModel=i||r,e}))}return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),a=this.getRawValue(e),r=i.getName(e);return Object(eo["c"])("nameValue",{name:r,value:a})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=hc(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},b["extend"](this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=b["createHashMap"](),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){wc(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(p["b"]);function Ic(e){var t=0;b["each"](e.children,(function(e){Ic(e);var n=e.value;b["isArray"](n)&&(n=n[0]),t+=n}));var n=e.value;b["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),b["isArray"](e.value)?e.value[0]=n:e.value=n}function jc(e,t){var n=Object(w["r"])(t.get("color")),i=Object(w["r"])(t.get(["aria","decal","decals"]));if(n){var a,r;e=e||[],b["each"](e,(function(e){var t=new F["a"](e),n=t.get("color"),i=t.get("decal");(t.get(["itemStyle","color"])||n&&"none"!==n)&&(a=!0),(t.get(["itemStyle","decal"])||i&&"none"!==i)&&(r=!0)}));var o=e[0]||(e[0]={});return a||(o.color=n.slice()),!r&&i&&(o.decal=i.slice()),e}}var Ac=Mc,Cc=n("80f0"),Tc=8,Dc=8,Lc=5,Pc=function(){function e(e){this.group=new Se["a"],e.add(this.group)}return e.prototype.render=function(e,t,n,i){var a=e.getModel("breadcrumb"),r=this.group;if(r.removeAll(),a.get("show")&&n){var o=a.getModel("itemStyle"),s=a.getModel("emphasis"),l=o.getModel("textStyle"),c=s.getModel(["itemStyle","textStyle"]),u={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,u,l),this._renderContent(e,u,o,s,l,c,i),H["i"](r,u.pos,u.box)}},e.prototype._prepare=function(e,t,n){for(var i=e;i;i=i.parentNode){var a=Object(w["e"])(i.getModel().get("name"),""),r=n.getTextRect(a),o=Math.max(r.width+2*Tc,t.emptyItemWidth);t.totalWidth+=o+Dc,t.renderList.push({node:i,text:a,width:o})}},e.prototype._renderContent=function(e,t,n,i,a,r,o){for(var s=0,l=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),u=H["e"](t.pos,t.box),h=t.totalWidth,d=t.renderList,p=i.getModel("itemStyle").getItemStyle(),f=d.length-1;f>=0;f--){var g=d[f],y=g.node,v=g.width,m=g.text;h>u.width&&(h-=v-l,v=l,m=null);var x=new Te["a"]({shape:{points:kc(s,0,v,c,f===d.length-1,0===f)},style:Object(b["defaults"])(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Me["a"]({style:Object(Z["c"])(a,{text:m})}),textConfig:{position:"inside"},z2:1e4*X["j"],onclick:Object(b["curry"])(o,y)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=Object(Z["c"])(r,{text:m}),x.ensureState("emphasis").style=p,Object(X["J"])(x,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(x),Nc(x,e,y),s+=v+Dc}},e.prototype.remove=function(){this.group.removeAll()},e}();function kc(e,t,n,i,a,r){var o=[[a?e:e-Lc,t],[e+n,t],[e+n,t+i],[a?e:e-Lc,t+i]];return!r&&o.splice(2,0,[e+n+Lc,t+i/2]),!a&&o.push([e,t+i/2]),o}function Nc(e,t,n){Object(W["a"])(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&hc(n,t)}}var Rc=Pc,Ec=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,i,a){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:i,easing:a}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,a=this._storage.length;i<a;i++){var r=this._storage[i];r.el.animateTo(r.target,{duration:r.duration,delay:r.delay,easing:r.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function Vc(){return new Ec}var zc=n("282b"),Bc=Se["a"],Gc=Le["a"],Fc=3,Hc="label",Wc="upperLabel",Zc=10*X["j"],Yc=2*X["j"],Xc=3*X["j"],Uc=Object(zc["a"])([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),qc=function(e){var t=Uc(e);return t.stroke=t.fill=t.lineWidth=null,t},Jc=Object(w["o"])(),Kc=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage=$c(),n}return Object(ee["a"])(t,e),t.prototype.render=function(e,t,n,i){var a=t.findComponents({mainType:"series",subType:"treemap",query:i});if(!(Object(b["indexOf"])(a,e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var r=["treemapZoomToNode","treemapRootToNode"],o=lc(i,r,e),s=i&&i.type,l=e.layoutInfo,c=!this._oldTree,u=this._storage,h="treemapRootToNode"===s&&o&&u?{rootNodeGroup:u.nodeGroup[o.node.getRawIndex()],direction:i.direction}:null,d=this._giveContainerGroup(l),p=e.get("animation"),f=this._doRender(d,e,h);!p||c||s&&"treemapZoomToNode"!==s&&"treemapRootToNode"!==s?f.renderFinally():this._doAnimation(d,f,e,h),this._resetController(n),this._renderBreadcrumb(e,n,o)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new Bc,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var i=t.getData().tree,a=this._oldTree,r=$c(),o=$c(),s=this._storage,l=[];function c(e,i,a,c){return Qc(t,o,s,n,r,l,e,i,a,c)}h(i.root?[i.root]:[],a&&a.root?[a.root]:[],e,i===a||!a,0);var u=d(s);return this._oldTree=i,this._storage=o,{lastsForAnimation:r,willDeleteEls:u,renderFinally:p};function h(e,t,n,i,a){function r(e){return e.getId()}function o(r,o){var s=null!=r?e[r]:null,l=null!=o?t[o]:null,u=c(s,l,n,a);u&&h(s&&s.viewChildren||[],l&&l.viewChildren||[],u,i,a+1)}i?(t=e,Object(b["each"])(e,(function(e,t){!e.isRemoved()&&o(t,t)}))):new Cc["a"](t,e,r,r).add(o).update(o).remove(Object(b["curry"])(o,null)).execute()}function d(e){var t=$c();return e&&Object(b["each"])(e,(function(e,n){var i=t[n];Object(b["each"])(e,(function(e){e&&(i.push(e),Jc(e).willDelete=!0)}))})),t}function p(){Object(b["each"])(u,(function(e){Object(b["each"])(e,(function(e){e.parent&&e.parent.remove(e)}))})),Object(b["each"])(l,(function(e){e.invisible=!0,e.dirty()}))}},t.prototype._doAnimation=function(e,t,n,i){var a=n.get("animationDurationUpdate"),r=n.get("animationEasing"),o=(Object(b["isFunction"])(a)?0:a)||0,s=(Object(b["isFunction"])(r)?null:r)||"cubicOut",l=Vc();Object(b["each"])(t.willDeleteEls,(function(e,t){Object(b["each"])(e,(function(e,n){if(!e.invisible){var a,r=e.parent,c=Jc(r);if(i&&"drillDown"===i.direction)a=r===i.rootNodeGroup?{shape:{x:0,y:0,width:c.nodeWidth,height:c.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,h=0;c.willDelete||(u=c.nodeWidth/2,h=c.nodeHeight/2),a="nodeGroup"===t?{x:u,y:h,style:{opacity:0}}:{shape:{x:u,y:h,width:0,height:0},style:{opacity:0}}}a&&l.add(e,a,o,0,s)}}))})),Object(b["each"])(this._storage,(function(e,n){Object(b["each"])(e,(function(e,i){var a=t.lastsForAnimation[n][i],r={};a&&(e instanceof Se["a"]?null!=a.oldX&&(r.x=e.x,r.y=e.y,e.x=a.oldX,e.y=a.oldY):(a.oldShape&&(r.shape=Object(b["extend"])({},e.shape),e.setShape(a.oldShape)),a.fadein?(e.setStyle("opacity",0),r.style={opacity:1}):1!==e.style.opacity&&(r.style={opacity:1})),l.add(e,r,o,0,s))}))}),this),this._state="animating",l.finished(Object(b["bind"])((function(){this._state="ready",t.renderFinally()}),this)).start()},t.prototype._resetController=function(e){var t=this._controller;t||(t=this._controller=new Ao(e.getZr()),t.enable(this.seriesModel.get("roam")),t.on("pan",Object(b["bind"])(this._onPan,this)),t.on("zoom",Object(b["bind"])(this._onZoom,this)));var n=new te["a"](0,0,e.getWidth(),e.getHeight());t.setPointerChecker((function(e,t,i){return n.contain(t,i)}))},t.prototype._clearController=function(){var e=this._controller;e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if("animating"!==this._state&&(Math.abs(e.dx)>Fc||Math.abs(e.dy)>Fc)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var a=i.getLayout();if(!a)return;var r=new te["a"](a.x,a.y,a.width,a.height),o=this.seriesModel.layoutInfo;t-=o.x,n-=o.y;var s=v["create"]();v["translate"](s,s,[-t,-n]),v["scale"](s,s,[e.scale,e.scale]),v["translate"](s,s,[t,n]),r.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:r.x,y:r.y,width:r.width,height:r.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var i=t.findTarget(e.offsetX,e.offsetY);if(i){var a=i.node;if(a.getLayout().isLeafRoot)t._rootToNode(i);else if("zoomToNode"===n)t._zoomToNode(i);else if("link"===n){var r=a.hostTree.data.getItemModel(a.dataIndex),o=r.get("link",!0),s=r.get("target",!0)||"blank";o&&Object(Be["k"])(o,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var i=this;n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Rc(this.group))).render(e,t,n.node,(function(t){"animating"!==i._state&&(uc(e.getViewRoot(),t)?i._rootToNode({node:t}):i._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=$c(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},(function(i){var a=this._storage.background[i.getRawIndex()];if(a){var r=a.transformCoordToLocal(e,t),o=a.shape;if(!(o.x<=r[0]&&r[0]<=o.x+o.width&&o.y<=r[1]&&r[1]<=o.y+o.height))return!1;n={node:i,offsetX:r[0],offsetY:r[1]}}}),this),n},t.type="treemap",t}(f["a"]);function $c(){return{nodeGroup:[],background:[],content:[]}}function Qc(e,t,n,i,a,r,o,s,l,c){if(o){var u=o.getLayout(),h=e.getData(),d=o.getModel();if(h.setItemGraphicEl(o.dataIndex,null),u&&u.isInView){var p=u.width,f=u.height,g=u.borderWidth,y=u.invisible,v=o.getRawIndex(),m=s&&s.getRawIndex(),x=o.viewChildren,_=u.upperHeight,O=x&&x.length,S=d.getModel("itemStyle"),M=d.getModel(["emphasis","itemStyle"]),I=d.getModel(["blur","itemStyle"]),j=d.getModel(["select","itemStyle"]),A=S.get("borderRadius")||0,C=F("nodeGroup",Bc);if(C){if(l.add(C),C.x=u.x||0,C.y=u.y||0,C.markRedraw(),Jc(C).nodeWidth=p,Jc(C).nodeHeight=f,u.isAboveViewRoot)return C;var T=F("background",Gc,c,Yc);T&&E(C,T,O&&u.upperLabelHeight);var D=d.getModel("emphasis"),L=D.get("focus"),P=D.get("blurScope"),k=D.get("disabled"),N="ancestor"===L?o.getAncestorsIndices():"descendant"===L?o.getDescendantIndices():L;if(O)Object(X["y"])(C)&&Object(X["F"])(C,!1),T&&(Object(X["F"])(T,!k),h.setItemGraphicEl(o.dataIndex,T),Object(X["p"])(T,N,P));else{var R=F("content",Gc,c,Xc);R&&V(C,R),T.disableMorphing=!0,T&&Object(X["y"])(T)&&Object(X["F"])(T,!1),Object(X["F"])(C,!k),h.setItemGraphicEl(o.dataIndex,C),Object(X["p"])(C,N,P)}return C}}}function E(t,n,i){var a=Object(W["a"])(n);if(a.dataIndex=o.dataIndex,a.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:f,r:A}),y)z(n);else{n.invisible=!1;var r=o.getVisual("style"),s=r.stroke,l=qc(S);l.fill=s;var c=Uc(M);c.fill=M.get("borderColor");var u=Uc(I);u.fill=I.get("borderColor");var h=Uc(j);if(h.fill=j.get("borderColor"),i){var d=p-2*g;B(n,s,r.opacity,{x:g,y:0,width:d,height:_})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=c,n.ensureState("blur").style=u,n.ensureState("select").style=h,Object(X["G"])(n)}t.add(n)}function V(t,n){var i=Object(W["a"])(n);i.dataIndex=o.dataIndex,i.seriesIndex=e.seriesIndex;var a=Math.max(p-2*g,0),r=Math.max(f-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:a,height:r,r:A}),y)z(n);else{n.invisible=!1;var s=o.getVisual("style"),l=s.fill,c=qc(S);c.fill=l,c.decal=s.decal;var u=Uc(M),h=Uc(I),d=Uc(j);B(n,l,s.opacity,null),n.setStyle(c),n.ensureState("emphasis").style=u,n.ensureState("blur").style=h,n.ensureState("select").style=d,Object(X["G"])(n)}t.add(n)}function z(e){!e.invisible&&r.push(e)}function B(t,n,i,a){var r=d.getModel(a?Wc:Hc),s=Object(w["e"])(d.get("name"),null),l=r.getShallow("show");Object(Z["g"])(t,Object(Z["e"])(d,a?Wc:Hc),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:e,labelDataIndex:o.dataIndex});var c=t.getTextContent();if(c){var h=c.style,p=Object(b["normalizeCssArray"])(h.padding||0);a&&(t.setTextConfig({layoutRect:a}),c.disableLabelLayout=!0),c.beforeUpdate=function(){var e=Math.max((a?a.width:t.shape.width)-p[1]-p[3],0),n=Math.max((a?a.height:t.shape.height)-p[0]-p[2],0);h.width===e&&h.height===n||c.setStyle({width:e,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",G(h,a,u);var f=c.getState("emphasis");G(f?f.style:null,a,u)}}function G(t,n,i){var a=t?t.text:null;if(!n&&i.isLeafRoot&&null!=a){var r=e.get("drillDownIcon",!0);t.text=r?r+" "+a:a}}function F(e,i,r,o){var s=null!=m&&n[e][m],l=a[e];return s?(n[e][m]=null,H(l,s)):y||(s=new i,s instanceof As["c"]&&(s.z2=eu(r,o)),Y(l,s)),t[e][v]=s}function H(e,t){var n=e[v]={};t instanceof Bc?(n.oldX=t.x,n.oldY=t.y):n.oldShape=Object(b["extend"])({},t.shape)}function Y(e,t){var n=e[v]={},r=o.parentNode,s=t instanceof Se["a"];if(r&&(!i||"drillDown"===i.direction)){var l=0,c=0,u=a.background[r.getRawIndex()];!i&&u&&u.oldShape&&(l=u.oldShape.width,c=u.oldShape.height),s?(n.oldX=0,n.oldY=c):n.oldShape={x:l,y:c,width:0,height:0}}n.fadein=!s}}function eu(e,t){return e*Zc+t}var tu=Kc,nu=n("edae"),iu=b["each"],au=b["isObject"],ru=-1,ou=function(){function e(t){var n=t.mappingMethod,i=t.type,a=this.option=b["clone"](t);this.type=i,this.mappingMethod=n,this._normalizeData=mu[n];var r=e.visualHandlers[i];this.applyVisual=r.applyVisual,this.getColorMapper=r.getColorMapper,this._normalizedToVisual=r._normalizedToVisual[n],"piecewise"===n?(cu(a),su(a)):"category"===n?a.categories?lu(a):cu(a,!0):(b["assert"]("linear"!==n||a.dataExtent),cu(a))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return b["bind"](this._normalizeData,this)},e.listVisualTypes=function(){return b["keys"](e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){b["isObject"](e)?b["each"](e,t,n):t.call(n,e)},e.mapVisual=function(t,n,i){var a,r=b["isArray"](t)?[]:b["isObject"](t)?{}:(a=!0,null);return e.eachVisual(t,(function(e,t){var o=n.call(i,e,t);a?r=o:r[t]=o})),r},e.retrieveVisuals=function(t){var n,i={};return t&&iu(e.visualHandlers,(function(e,a){t.hasOwnProperty(a)&&(i[a]=t[a],n=!0)})),n?i:null},e.prepareVisualTypes=function(e){if(b["isArray"](e))e=e.slice();else{if(!au(e))return[];var t=[];iu(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var i,a=1/0,r=0,o=t.length;r<o;r++){var s=t[r].value;if(null!=s){if(s===e||b["isString"](s)&&s===e+"")return r;n&&h(s,r)}}for(r=0,o=t.length;r<o;r++){var l=t[r],c=l.interval,u=l.close;if(c){if(c[0]===-1/0){if(bu(u[1],e,c[1]))return r}else if(c[1]===1/0){if(bu(u[0],c[0],e))return r}else if(bu(u[0],c[0],e)&&bu(u[1],e,c[1]))return r;n&&h(c[0],r),n&&h(c[1],r)}}if(n)return e===1/0?t.length-1:e===-1/0?0:i;function h(t,n){var r=Math.abs(t-e);r<a&&(a=r,i=n)}},e.visualHandlers={color:{applyVisual:du("color"),getColorMapper:function(){var e=this.option;return b["bind"]("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),pu.call(this,e)}:function(t,n,i){var a=!!i;return!n&&(t=this._normalizeData(t)),i=x["fastLerp"](t,e.parsedVisual,i),a?i:x["stringify"](i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return x["stringify"](x["fastLerp"](e,this.option.parsedVisual),"rgba")},category:pu,piecewise:function(e,t){var n=yu.call(this,t);return null==n&&(n=x["stringify"](x["fastLerp"](e,this.option.parsedVisual),"rgba")),n},fixed:fu}},colorHue:uu((function(e,t){return x["modifyHSL"](e,t)})),colorSaturation:uu((function(e,t){return x["modifyHSL"](e,null,t)})),colorLightness:uu((function(e,t){return x["modifyHSL"](e,null,null,t)})),colorAlpha:uu((function(e,t){return x["modifyAlpha"](e,t)})),decal:{applyVisual:du("decal"),_normalizedToVisual:{linear:null,category:pu,piecewise:null,fixed:null}},opacity:{applyVisual:du("opacity"),_normalizedToVisual:gu([0,1])},liftZ:{applyVisual:du("liftZ"),_normalizedToVisual:{linear:fu,category:fu,piecewise:fu,fixed:fu}},symbol:{applyVisual:function(e,t,n){var i=this.mapValueToVisual(e);n("symbol",i)},_normalizedToVisual:{linear:hu,category:pu,piecewise:function(e,t){var n=yu.call(this,t);return null==n&&(n=hu.call(this,e)),n},fixed:fu}},symbolSize:{applyVisual:du("symbolSize"),_normalizedToVisual:gu([0,1])}},e}();function su(e){var t=e.pieceList;e.hasSpecialVisual=!1,b["each"](t,(function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)}))}function lu(e){var t=e.categories,n=e.categoryMap={},i=e.visual;if(iu(t,(function(e,t){n[e]=t})),!b["isArray"](i)){var a=[];b["isObject"](i)?iu(i,(function(e,t){var i=n[t];a[null!=i?i:ru]=e})):a[ru]=i,i=vu(e,a)}for(var r=t.length-1;r>=0;r--)null==i[r]&&(delete n[t[r]],t.pop())}function cu(e,t){var n=e.visual,i=[];b["isObject"](n)?iu(n,(function(e){i.push(e)})):null!=n&&i.push(n);var a={color:1,symbol:1};t||1!==i.length||a.hasOwnProperty(e.type)||(i[1]=i[0]),vu(e,i)}function uu(e){return{applyVisual:function(t,n,i){var a=this.mapValueToVisual(t);i("color",e(n("color"),a))},_normalizedToVisual:gu([0,1])}}function hu(e){var t=this.option.visual;return t[Math.round(Object(be["m"])(e,[0,1],[0,t.length-1],!0))]||{}}function du(e){return function(t,n,i){i(e,this.mapValueToVisual(t))}}function pu(e){var t=this.option.visual;return t[this.option.loop&&e!==ru?e%t.length:e]}function fu(){return this.option.visual[0]}function gu(e){return{linear:function(t){return Object(be["m"])(t,e,this.option.visual,!0)},category:pu,piecewise:function(t,n){var i=yu.call(this,n);return null==i&&(i=Object(be["m"])(t,e,this.option.visual,!0)),i},fixed:fu}}function yu(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var i=ou.findPieceIndex(e,n),a=n[i];if(a&&a.visual)return a.visual[this.type]}}function vu(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=b["map"](t,(function(e){var t=x["parse"](e);return t||[0,0,0,1]}))),t}var mu={linear:function(e){return Object(be["m"])(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=ou.findPieceIndex(e,t,!0);if(null!=n)return Object(be["m"])(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?ru:t},fixed:b["noop"]};function bu(e,t,n){return e?t<=n:t<n}var xu=ou,_u="itemStyle",Ou=Object(w["o"])(),Su={seriesType:"treemap",reset:function(e){var t=e.getData().tree,n=t.root;n.isRemoved()||wu(n,{},e.getViewRoot().getAncestors(),e)}};function wu(e,t,n,i){var a=e.getModel(),r=e.getLayout(),o=e.hostTree.data;if(r&&!r.invisible&&r.isInView){var s,l=a.getModel(_u),c=Mu(l,t,i),u=o.ensureUniqueItemVisual(e.dataIndex,"style"),h=l.get("borderColor"),d=l.get("borderColorSaturation");null!=d&&(s=Iu(c),h=ju(d,s)),u.stroke=h;var p=e.viewChildren;if(p&&p.length){var f=Cu(e,a,r,l,c,p);Object(b["each"])(p,(function(e,t){if(e.depth>=n.length||e===n[e.depth]){var r=Du(a,c,e,t,f,i);wu(e,r,n,i)}}))}else s=Iu(c),u.fill=s}}function Mu(e,t,n){var i=Object(b["extend"])({},t),a=n.designatedVisualItemStyle;return Object(b["each"])(["color","colorAlpha","colorSaturation"],(function(n){a[n]=t[n];var r=e.get(n);a[n]=null,null!=r&&(i[n]=r)})),i}function Iu(e){var t=Au(e,"color");if(t){var n=Au(e,"colorAlpha"),i=Au(e,"colorSaturation");return i&&(t=Object(x["modifyHSL"])(t,null,null,i)),n&&(t=Object(x["modifyAlpha"])(t,n)),t}}function ju(e,t){return null!=t?Object(x["modifyHSL"])(t,null,null,e):null}function Au(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function Cu(e,t,n,i,a,r){if(r&&r.length){var o=Tu(t,"color")||null!=a.color&&"none"!==a.color&&(Tu(t,"colorAlpha")||Tu(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),c=n.dataExtent.slice();null!=s&&s<c[0]&&(c[0]=s),null!=l&&l>c[1]&&(c[1]=l);var u=t.get("colorMappingBy"),h={type:o.name,dataExtent:c,visual:o.range};"color"!==h.type||"index"!==u&&"id"!==u?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new xu(h);return Ou(d).drColorMappingBy=u,d}}}function Tu(e,t){var n=e.get(t);return Object(b["isArray"])(n)&&n.length?{name:t,range:n}:null}function Du(e,t,n,i,a,r){var o=Object(b["extend"])({},t);if(a){var s=a.type,l="color"===s&&Ou(a).drColorMappingBy,c="index"===l?i:"id"===l?r.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));o[s]=a.mapValueToVisual(c)}return o}var Lu=Math.max,Pu=Math.min,ku=b["retrieve"],Nu=b["each"],Ru=["itemStyle","borderWidth"],Eu=["itemStyle","gapWidth"],Vu=["upperLabel","show"],zu=["upperLabel","height"],Bu={seriesType:"treemap",reset:function(e,t,n,i){var a=n.getWidth(),r=n.getHeight(),o=e.option,s=H["g"](e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=o.size||[],c=Object(be["q"])(ku(s.width,l[0]),a),u=Object(be["q"])(ku(s.height,l[1]),r),h=i&&i.type,d=["treemapZoomToNode","treemapRootToNode"],p=lc(i,d,e),f="treemapRender"===h||"treemapMove"===h?i.rootRect:null,g=e.getViewRoot(),y=cc(g);if("treemapMove"!==h){var v="treemapZoomToNode"===h?Uu(e,p,g,c,u):f?[f.width,f.height]:[c,u],m=o.sort;m&&"asc"!==m&&"desc"!==m&&(m="desc");var x={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var _={x:0,y:0,width:v[0],height:v[1],area:v[0]*v[1]};g.setLayout(_),Gu(g,x,!1,0),_=g.getLayout(),Nu(y,(function(e,t){var n=(y[t+1]||g).getValue();e.setLayout(b["extend"]({dataExtent:[n,n],borderWidth:0,upperHeight:0},_))}))}var O=e.getData().tree.root;O.setLayout(qu(s,f,p),!0),e.setLayoutInfo(s),Ju(O,new te["a"](-s.x,-s.y,a,r),y,g,0)}};function Gu(e,t,n,i){var a,r;if(!e.isRemoved()){var o=e.getLayout();a=o.width,r=o.height;var s=e.getModel(),l=s.get(Ru),c=s.get(Eu)/2,u=Ku(s),h=Math.max(l,u),d=l-c,p=h-c;e.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:u},!0),a=Lu(a-2*d,0),r=Lu(r-d-p,0);var f=a*r,g=Fu(e,s,f,t,n,i);if(g.length){var y={x:d,y:p,width:a,height:r},v=Pu(a,r),m=1/0,b=[];b.area=0;for(var x=0,_=g.length;x<_;){var O=g[x];b.push(O),b.area+=O.getLayout().area;var S=Yu(b,v,t.squareRatio);S<=m?(x++,m=S):(b.area-=b.pop().getLayout().area,Xu(b,v,y,c,!1),v=Pu(y.width,y.height),b.length=b.area=0,m=1/0)}if(b.length&&Xu(b,v,y,c,!0),!n){var w=s.get("childrenVisibleMin");null!=w&&f<w&&(n=!0)}for(x=0,_=g.length;x<_;x++)Gu(g[x],t,n,i+1)}}}function Fu(e,t,n,i,a,r){var o=e.children||[],s=i.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=i.leafDepth&&i.leafDepth<=r;if(a&&!l)return e.viewChildren=[];o=b["filter"](o,(function(e){return!e.isRemoved()})),Wu(o,s);var c=Zu(t,o,s);if(0===c.sum)return e.viewChildren=[];if(c.sum=Hu(t,n,c.sum,s,o),0===c.sum)return e.viewChildren=[];for(var u=0,h=o.length;u<h;u++){var d=o[u].getValue()/c.sum*n;o[u].setLayout({area:d})}return l&&(o.length&&e.setLayout({isLeafRoot:!0},!0),o.length=0),e.viewChildren=o,e.setLayout({dataExtent:c.dataExtent},!0),o}function Hu(e,t,n,i,a){if(!i)return n;for(var r=e.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var c=a["asc"===i?o-l-1:l].getValue();c/n*t<r&&(s=l,n-=c)}return"asc"===i?a.splice(0,o-s):a.splice(s,o-s),n}function Wu(e,t){return t&&e.sort((function(e,n){var i="asc"===t?e.getValue()-n.getValue():n.getValue()-e.getValue();return 0===i?"asc"===t?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:i})),e}function Zu(e,t,n){for(var i=0,a=0,r=t.length;a<r;a++)i+=t[a].getValue();var o,s=e.get("visualDimension");return t&&t.length?"value"===s&&n?(o=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&o.reverse()):(o=[1/0,-1/0],Nu(t,(function(e){var t=e.getValue(s);t<o[0]&&(o[0]=t),t>o[1]&&(o[1]=t)}))):o=[NaN,NaN],{sum:i,dataExtent:o}}function Yu(e,t,n){for(var i=0,a=1/0,r=0,o=void 0,s=e.length;r<s;r++)o=e[r].getLayout().area,o&&(o<a&&(a=o),o>i&&(i=o));var l=e.area*e.area,c=t*t*n;return l?Lu(c*i/l,l/(c*a)):1/0}function Xu(e,t,n,i,a){var r=t===n.width?0:1,o=1-r,s=["x","y"],l=["width","height"],c=n[s[r]],u=t?e.area/t:0;(a||u>n[l[o]])&&(u=n[l[o]]);for(var h=0,d=e.length;h<d;h++){var p=e[h],f={},g=u?p.getLayout().area/u:0,y=f[l[o]]=Lu(u-2*i,0),v=n[s[r]]+n[l[r]]-c,m=h===d-1||v<g?v:g,b=f[l[r]]=Lu(m-2*i,0);f[s[o]]=n[s[o]]+Pu(i,y/2),f[s[r]]=c+Pu(i,b/2),c+=m,p.setLayout(f,!0)}n[s[o]]+=u,n[l[o]]-=u}function Uu(e,t,n,i,a){var r,o=(t||{}).node,s=[i,a];if(!o||o===n)return s;var l=i*a,c=l*e.option.zoomToNodeRatio;while(r=o.parentNode){for(var u=0,h=r.children,d=0,p=h.length;d<p;d++)u+=h[d].getValue();var f=o.getValue();if(0===f)return s;c*=u/f;var g=r.getModel(),y=g.get(Ru),v=Math.max(y,Ku(g));c+=4*y*y+(3*y+v)*Math.pow(c,.5),c>be["a"]&&(c=be["a"]),o=r}c<l&&(c=l);var m=Math.pow(c/l,.5);return[i*m,a*m]}function qu(e,t,n){if(t)return{x:t.x,y:t.y};var i={x:0,y:0};if(!n)return i;var a=n.node,r=a.getLayout();if(!r)return i;var o=[r.width/2,r.height/2],s=a;while(s){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}function Ju(e,t,n,i,a){var r=e.getLayout(),o=n[a],s=o&&o===e;if(!(o&&!s||a===n.length&&e!==i)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(r),isAboveViewRoot:s},!0);var l=new te["a"](t.x-r.x,t.y-r.y,t.width,t.height);Nu(e.viewChildren||[],(function(e){Ju(e,l,n,i,a+1)}))}}function Ku(e){return e.get(Vu)?e.get(zu):0}function $u(e){e.registerSeriesModel(Ac),e.registerChartView(tu),e.registerVisual(Su),e.registerLayout(Bu),Oc(e)}function Qu(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),i=e.getGraph(),a=i.data,r=n.mapArray(n.getName);a.filterSelf((function(e){var n=a.getItemModel(e),i=n.getShallow("category");if(null!=i){Object(b["isNumber"])(i)&&(i=r[i]);for(var o=0;o<t.length;o++)if(!t[o].isSelected(i))return!1}return!0}))}))}function eh(e){var t={};e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),i=e.getData(),a={};n.each((function(i){var r=n.getName(i);a["ec-"+r]=i;var o=n.getItemModel(i),s=o.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e.getColorFromPalette(r,t)),n.setItemVisual(i,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],c=0;c<l.length;c++){var u=o.getShallow(l[c],!0);null!=u&&n.setItemVisual(i,l[c],u)}})),n.count()&&i.each((function(e){var t=i.getItemModel(e),r=t.getShallow("category");if(null!=r){Object(b["isString"])(r)&&(r=a["ec-"+r]);var o=n.getItemVisual(r,"style"),s=i.ensureUniqueItemVisual(e,"style");Object(b["extend"])(s,o);for(var l=["symbol","symbolSize","symbolKeepAspect"],c=0;c<l.length;c++)i.setItemVisual(e,l[c],n.getItemVisual(r,l[c]))}}))}))}function th(e){return e instanceof Array||(e=[e,e]),e}function nh(e){e.eachSeriesByType("graph",(function(e){var t=e.getGraph(),n=e.getEdgeData(),i=th(e.get("edgeSymbol")),a=th(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",a&&a[0]),n.setVisual("toSymbolSize",a&&a[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each((function(e){var i=n.getItemModel(e),a=t.getEdgeByIndex(e),r=th(i.getShallow("symbol",!0)),o=th(i.getShallow("symbolSize",!0)),s=i.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(e,"style");switch(Object(b["extend"])(l,s),l.stroke){case"source":var c=a.node1.getVisual("style");l.stroke=c&&c.fill;break;case"target":c=a.node2.getVisual("style");l.stroke=c&&c.fill;break}r[0]&&a.setVisual("fromSymbol",r[0]),r[1]&&a.setVisual("toSymbol",r[1]),o[0]&&a.setVisual("fromSymbolSize",o[0]),o[1]&&a.setVisual("toSymbolSize",o[1])}))}))}var ih="--\x3e",ah=function(e){return e.get("autoCurveness")||null},rh=function(e,t){var n=ah(e),i=20,a=[];if(b["isNumber"](n))i=n;else if(b["isArray"](n))return void(e.__curvenessList=n);t>i&&(i=t);var r=i%2?i+2:i+3;a=[];for(var o=0;o<r;o++)a.push((o%2?o+1:o)/10*(o%2?-1:1));e.__curvenessList=a},oh=function(e,t,n){var i=[e.id,e.dataIndex].join("."),a=[t.id,t.dataIndex].join(".");return[n.uid,i,a].join(ih)},sh=function(e){var t=e.split(ih);return[t[0],t[2],t[1]].join(ih)},lh=function(e,t){var n=oh(e.node1,e.node2,t);return t.__edgeMap[n]},ch=function(e,t){var n=uh(oh(e.node1,e.node2,t),t),i=uh(oh(e.node2,e.node1,t),t);return n+i},uh=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function hh(e){ah(e)&&(e.__curvenessList=[],e.__edgeMap={},rh(e))}function dh(e,t,n,i){if(ah(n)){var a=oh(e,t,n),r=n.__edgeMap,o=r[sh(a)];r[a]&&!o?r[a].isForward=!0:o&&r[a]&&(o.isForward=!0,r[a].isForward=!1),r[a]=r[a]||[],r[a].push(i)}}function ph(e,t,n,i){var a=ah(t),r=b["isArray"](a);if(!a)return null;var o=lh(e,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===n){s=l;break}var c=ch(e,t);rh(t,c),e.lineStyle=e.lineStyle||{};var u=oh(e.node1,e.node2,t),h=t.__curvenessList,d=r||c%2?0:1;if(o.isForward)return h[d+s];var p=sh(u),f=uh(p,t),g=h[s+f+d];return i?r?a&&0===a[0]?(f+d)%2?g:-g:((f%2?0:1)+d)%2?g:-g:(f+d)%2?g:-g:h[s+f+d]}function fh(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var n=e.getGraph();n.eachNode((function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])})),gh(n,e)}}function gh(e,t){e.eachEdge((function(e,n){var i=b["retrieve3"](e.getModel().get(["lineStyle","curveness"]),-ph(e,t,n,!0),0),a=m["clone"](e.node1.getLayout()),r=m["clone"](e.node2.getLayout()),o=[a,r];+i&&o.push([(a[0]+r[0])/2-(a[1]-r[1])*i,(a[1]+r[1])/2-(r[0]-a[0])*i]),e.setLayout(o)}))}function yh(e,t){e.eachSeriesByType("graph",(function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var i=e.getData(),a=[];Object(b["each"])(n.dimensions,(function(e){a=a.concat(i.mapDimensionsAll(e))}));for(var r=0;r<i.count();r++){for(var o=[],s=!1,l=0;l<a.length;l++){var c=i.get(a[l],r);isNaN(c)||(s=!0),o.push(c)}s?i.setItemLayout(r,n.dataToPoint(o)):i.setItemLayout(r,[NaN,NaN])}gh(i.graph,e)}else t&&"none"!==t||fh(e)}))}function vh(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,i=t.scaleX,a=t.getZoom(),r=(a-1)*n+1;return r/i}function mh(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var bh=Math.PI,xh=[];function _h(e,t,n,i){var a=e.coordinateSystem;if(!a||"view"===a.type){var r=a.getBoundingRect(),o=e.getData(),s=o.graph,l=r.width/2+r.x,c=r.height/2+r.y,u=Math.min(r.width,r.height)/2,h=o.count();if(o.setLayout({cx:l,cy:c}),h){if(n){var d=a.pointToData(i),p=d[0],f=d[1],g=[p-l,f-c];m["normalize"](g,g),m["scale"](g,g,u),n.setLayout([l+g[0],c+g[1]],!0);var y=e.get(["circular","rotateLabel"]);Sh(n,y,l,c)}Oh[t](e,s,o,u,l,c,h),s.eachEdge((function(t,n){var i,a=b["retrieve3"](t.getModel().get(["lineStyle","curveness"]),ph(t,e,n),0),r=m["clone"](t.node1.getLayout()),o=m["clone"](t.node2.getLayout()),s=(r[0]+o[0])/2,u=(r[1]+o[1])/2;+a&&(a*=3,i=[l*a+s*(1-a),c*a+u*(1-a)]),t.setLayout([r,o,i])}))}}}var Oh={value:function(e,t,n,i,a,r,o){var s=0,l=n.getSum("value"),c=2*Math.PI/(l||o);t.eachNode((function(e){var t=e.getValue("value"),n=c*(l?t:1)/2;s+=n,e.setLayout([i*Math.cos(s)+a,i*Math.sin(s)+r]),s+=n}))},symbolSize:function(e,t,n,i,a,r,o){var s=0;xh.length=o;var l=vh(e);t.eachNode((function(e){var t=mh(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=l;var n=Math.asin(t/2/i);isNaN(n)&&(n=bh/2),xh[e.dataIndex]=n,s+=2*n}));var c=(2*bh-s)/o/2,u=0;t.eachNode((function(e){var t=c+xh[e.dataIndex];u+=t,(!e.getLayout()||!e.getLayout().fixed)&&e.setLayout([i*Math.cos(u)+a,i*Math.sin(u)+r]),u+=t}))}};function Sh(e,t,n,i){var a=e.getGraphicEl();if(a){var r=e.getModel(),o=r.get(["label","rotate"])||0,s=a.getSymbolPath();if(t){var l=e.getLayout(),c=Math.atan2(l[1]-i,l[0]-n);c<0&&(c=2*Math.PI+c);var u=l[0]<n;u&&(c-=Math.PI);var h=u?"left":"right";s.setTextConfig({rotation:-c,position:h,origin:"center"});var d=s.ensureState("emphasis");b["extend"](d.textConfig||(d.textConfig={}),{position:h})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function wh(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&_h(e,"symbolSize")}))}var Mh=m["scaleAndAdd"];function Ih(e,t,n){for(var i=e,a=t,r=n.rect,o=r.width,s=r.height,l=[r.x+o/2,r.y+s/2],c=null==n.gravity?.1:n.gravity,u=0;u<i.length;u++){var h=i[u];h.p||(h.p=m["create"](o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=m["clone"](h.p),h.edges=null}var d,p,f=null==n.friction?.6:n.friction,g=f;return{warmUp:function(){g=.8*f},setFixed:function(e){i[e].fixed=!0},setUnfixed:function(e){i[e].fixed=!1},beforeStep:function(e){d=e},afterStep:function(e){p=e},step:function(e){d&&d(i,a);for(var t=[],n=i.length,r=0;r<a.length;r++){var o=a[r];if(!o.ignoreForceLayout){var s=o.n1,u=o.n2;m["sub"](t,u.p,s.p);var h=m["len"](t)-o.d,f=u.w/(s.w+u.w);isNaN(f)&&(f=0),m["normalize"](t,t),!s.fixed&&Mh(s.p,s.p,t,f*h*g),!u.fixed&&Mh(u.p,u.p,t,-(1-f)*h*g)}}for(r=0;r<n;r++){var y=i[r];y.fixed||(m["sub"](t,l,y.p),Mh(y.p,y.p,t,c*g))}for(r=0;r<n;r++){s=i[r];for(var v=r+1;v<n;v++){u=i[v];m["sub"](t,u.p,s.p);h=m["len"](t);0===h&&(m["set"](t,Math.random()-.5,Math.random()-.5),h=1);var b=(s.rep+u.rep)/h/h;!s.fixed&&Mh(s.pp,s.pp,t,b),!u.fixed&&Mh(u.pp,u.pp,t,-b)}}var x=[];for(r=0;r<n;r++){y=i[r];y.fixed||(m["sub"](x,y.p,y.pp),Mh(y.p,y.p,x,g),m["copy"](y.pp,y.p))}g*=.992;var _=g<.01;p&&p(i,a,_),e&&e(_)}}}function jh(e){e.eachSeriesByType("graph",(function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},i=e.getGraph(),a=i.data,r=i.edgeData,o=e.getModel("force"),s=o.get("initLayout");e.preservedPoints?a.each((function(e){var t=a.getId(e);a.setItemLayout(e,n[t]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&_h(e,"value"):fh(e);var l=a.getDataExtent("value"),c=r.getDataExtent("value"),u=o.get("repulsion"),h=o.get("edgeLength"),d=b["isArray"](u)?u:[u,u],p=b["isArray"](h)?h:[h,h];p=[p[1],p[0]];var f=a.mapArray("value",(function(e,t){var n=a.getItemLayout(t),i=Object(be["m"])(e,l,d);return isNaN(i)&&(i=(d[0]+d[1])/2),{w:i,rep:i,fixed:a.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),g=r.mapArray("value",(function(t,n){var a=i.getEdgeByIndex(n),r=Object(be["m"])(t,c,p);isNaN(r)&&(r=(p[0]+p[1])/2);var o=a.getModel(),s=b["retrieve3"](a.getModel().get(["lineStyle","curveness"]),-ph(a,e,n,!0),0);return{n1:f[a.node1.dataIndex],n2:f[a.node2.dataIndex],d:r,curveness:s,ignoreForceLayout:o.get("ignoreForceLayout")}})),y=t.getBoundingRect(),v=Ih(f,g,{rect:y,gravity:o.get("gravity"),friction:o.get("friction")});v.beforeStep((function(e,t){for(var n=0,a=e.length;n<a;n++)e[n].fixed&&m["copy"](e[n].p,i.getNodeByIndex(n).getLayout())})),v.afterStep((function(e,t,r){for(var o=0,s=e.length;o<s;o++)e[o].fixed||i.getNodeByIndex(o).setLayout(e[o].p),n[a.getId(o)]=e[o].p;for(o=0,s=t.length;o<s;o++){var l=t[o],c=i.getEdgeByIndex(o),u=l.n1.p,h=l.n2.p,d=c.getLayout();d=d?d.slice():[],d[0]=d[0]||[],d[1]=d[1]||[],m["copy"](d[0],u),m["copy"](d[1],h),+l.curveness&&(d[2]=[(u[0]+h[0])/2-(u[1]-h[1])*l.curveness,(u[1]+h[1])/2-(h[0]-u[0])*l.curveness]),c.setLayout(d)}})),e.forceLayout=v,e.preservedPoints=n,v.step()}else e.forceLayout=null}))}function Ah(e,t,n){var i=Object(b["extend"])(e.getBoxLayoutParams(),{aspect:n});return Object(H["g"])(i,{width:t.getWidth(),height:t.getHeight()})}function Ch(e,t){var n=[];return e.eachSeriesByType("graph",(function(e){var i=e.get("coordinateSystem");if(!i||"view"===i){var a=e.getData(),r=a.mapArray((function(e){var t=a.getItemModel(e);return[+t.get("x"),+t.get("y")]})),o=[],s=[];Nl["d"](r,o,s),s[0]-o[0]===0&&(s[0]+=1,o[0]-=1),s[1]-o[1]===0&&(s[1]+=1,o[1]-=1);var l=(s[0]-o[0])/(s[1]-o[1]),c=Ah(e,t,l);isNaN(l)&&(o=[c.x,c.y],s=[c.x+c.width,c.y+c.height]);var u=s[0]-o[0],h=s[1]-o[1],d=c.width,p=c.height,f=e.coordinateSystem=new tl;f.zoomLimit=e.get("scaleLimit"),f.setBoundingRect(o[0],o[1],u,h),f.setViewRect(c.x,c.y,d,p),f.setCenter(e.get("center"),t),f.setZoom(e.get("zoom")),n.push(f)}})),n}var Th=Pe["a"].prototype,Dh=ke["a"].prototype,Lh=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}Object(ee["a"])(t,e)})(Lh);function Ph(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var kh=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-line",n}return Object(ee["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Lh},t.prototype.buildPath=function(e,t){Ph(t)?Th.buildPath.call(this,e,t):Dh.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return Ph(this.shape)?Th.pointAt.call(this,e):Dh.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=Ph(t)?[t.x2-t.x1,t.y2-t.y1]:Dh.tangentAt.call(this,e);return m["normalize"](n,n)},t}(xt["b"]),Nh=kh,Rh=["fromSymbol","toSymbol"];function Eh(e){return"_"+e+"Type"}function Vh(e,t,n){var i=t.getItemVisual(n,e);if(i&&"none"!==i){var a=t.getItemVisual(n,e+"Size"),r=t.getItemVisual(n,e+"Rotate"),o=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=Y["c"](a),c=Y["b"](o||0,l),u=Y["a"](i,-l[0]/2+c[0],-l[1]/2+c[1],l[0],l[1],null,s);return u.__specifiedRotation=null==r||isNaN(r)?void 0:+r*Math.PI/180||0,u.name=e,u}}function zh(e){var t=new Nh({name:"line",subPixelOptimize:!0});return Bh(t.shape,e),t}function Bh(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var Gh=function(e){function t(t,n,i){var a=e.call(this)||this;return a._createLine(t,n,i),a}return Object(ee["a"])(t,e),t.prototype._createLine=function(e,t,n){var i=e.hostModel,a=e.getItemLayout(t),r=zh(a);r.shape.percent=0,Oe["c"](r,{shape:{percent:1}},i,t),this.add(r),Object(b["each"])(Rh,(function(n){var i=Vh(n,e,t);this.add(i),this[Eh(n)]=e.getItemVisual(t,n)}),this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var i=e.hostModel,a=this.childOfName("line"),r=e.getItemLayout(t),o={shape:{}};Bh(o.shape,r),Oe["h"](a,o,i,t),Object(b["each"])(Rh,(function(n){var i=e.getItemVisual(t,n),a=Eh(n);if(this[a]!==i){this.remove(this.childOfName(n));var r=Vh(n,e,t);this.add(r)}this[a]=i}),this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var i=e.hostModel,a=this.childOfName("line"),r=n&&n.emphasisLineStyle,o=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,c=n&&n.emphasisDisabled,u=n&&n.focus,h=n&&n.blurScope;if(!n||e.hasItemOption){var d=e.getItemModel(t),p=d.getModel("emphasis");r=p.getModel("lineStyle").getLineStyle(),o=d.getModel(["blur","lineStyle"]).getLineStyle(),s=d.getModel(["select","lineStyle"]).getLineStyle(),c=p.get("disabled"),u=p.get("focus"),h=p.get("blurScope"),l=Object(Z["e"])(d)}var f=e.getItemVisual(t,"style"),g=f.stroke;a.useStyle(f),a.style.fill=null,a.style.strokeNoScale=!0,a.ensureState("emphasis").style=r,a.ensureState("blur").style=o,a.ensureState("select").style=s,Object(b["each"])(Rh,(function(e){var t=this.childOfName(e);if(t){t.setColor(g),t.style.opacity=f.opacity;for(var n=0;n<X["g"].length;n++){var i=X["g"][n],r=a.getState(i);if(r){var o=r.style||{},s=t.ensureState(i),l=s.style||(s.style={});null!=o.stroke&&(l[t.__isEmptyBrush?"stroke":"fill"]=o.stroke),null!=o.opacity&&(l.opacity=o.opacity)}}t.markRedraw()}}),this);var y=i.getRawValue(t);Object(Z["g"])(this,l,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return i.getFormattedLabel(t,n,e.dataType)}},inheritColor:g||"#000",defaultOpacity:f.opacity,defaultText:(null==y?e.getName(t):isFinite(y)?Object(be["w"])(y):y)+""});var v=this.getTextContent();if(v){var m=l.normal;v.__align=v.style.align,v.__verticalAlign=v.style.verticalAlign,v.__position=m.get("position")||"middle";var x=m.get("distance");Object(b["isArray"])(x)||(x=[x,x]),v.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),Object(X["J"])(this,u,h,c)},t.prototype.highlight=function(){Object(X["r"])(this)},t.prototype.downplay=function(){Object(X["C"])(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName("line");Bh(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this,t=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),i=e.getTextContent();if(t||n||i&&!i.ignore){var a=1,r=this.parent;while(r)r.scaleX&&(a/=r.scaleX),r=r.parent;var o=e.childOfName("line");if(this.__dirty||o.__dirty){var s=o.shape.percent,l=o.pointAt(0),c=o.pointAt(s),u=m["sub"]([],c,l);if(m["normalize"](u,u),t&&(t.setPosition(l),w(t,0),t.scaleX=t.scaleY=a*s,t.markRedraw()),n&&(n.setPosition(c),w(n,1),n.scaleX=n.scaleY=a*s,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var h=void 0,d=void 0,p=i.__labelDistance,f=p[0]*a,g=p[1]*a,y=s/2,v=o.tangentAt(y),b=[v[1],-v[0]],x=o.pointAt(y);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var _=v[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var O=-Math.atan2(v[1],v[0]);c[0]<l[0]&&(O=Math.PI+O),i.rotation=O}var S=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":S=-g,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":S=g,d="top";break;default:S=0,d="middle"}switch(i.__position){case"end":i.x=u[0]*f+c[0],i.y=u[1]*g+c[1],h=u[0]>.8?"left":u[0]<-.8?"right":"center",d=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";break;case"start":i.x=-u[0]*f+l[0],i.y=-u[1]*g+l[1],h=u[0]>.8?"right":u[0]<-.8?"left":"center",d=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=f*_+l[0],i.y=l[1]+S,h=v[0]<0?"right":"left",i.originX=-f*_,i.originY=-S;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+S,h="center",i.originY=-S;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-f*_+c[0],i.y=c[1]+S,h=v[0]>=0?"right":"left",i.originX=f*_,i.originY=-S;break}i.scaleX=i.scaleY=a,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||h})}}}function w(e,t){var n=e.__specifiedRotation;if(null==n){var i=o.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else e.attr("rotation",n)}},t}(Se["a"]),Fh=Gh,Hh=function(){function e(e){this.group=new Se["a"],this._LineCtor=e||Fh}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=e,a||i.removeAll();var r=Zh(e);e.diff(a).add((function(n){t._doAdd(e,n,r)})).update((function(n,i){t._doUpdate(a,e,i,n,r)})).remove((function(e){i.remove(a.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Zh(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||Wh(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=e.start;i<e.end;i++){var a=t.getItemLayout(i);if(Xh(a)){var r=new this._LineCtor(t,i,this._seriesScope);r.traverse(n),this.group.add(r),t.setItemGraphicEl(i,r),this._progressiveEls.push(r)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){_e["traverseElements"](this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){var i=e.getItemLayout(t);if(Xh(i)){var a=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,a),this.group.add(a)}},e.prototype._doUpdate=function(e,t,n,i,a){var r=e.getItemGraphicEl(n);Xh(t.getItemLayout(i))?(r?r.updateData(t,i,a):r=new this._LineCtor(t,i,a),t.setItemGraphicEl(i,r),this.group.add(r)):this.group.remove(r)},e}();function Wh(e){return e.animators&&e.animators.length>0}function Zh(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:Object(Z["e"])(t)}}function Yh(e){return isNaN(e[0])||isNaN(e[1])}function Xh(e){return e&&!Yh(e[0])&&!Yh(e[1])}var Uh=Hh,qh=[],Jh=[],Kh=[],$h=_i["h"],Qh=m["distSquare"],ed=Math.abs;function td(e,t,n){for(var i,a=e[0],r=e[1],o=e[2],s=1/0,l=n*n,c=.1,u=.1;u<=.9;u+=.1){qh[0]=$h(a[0],r[0],o[0],u),qh[1]=$h(a[1],r[1],o[1],u);var h=ed(Qh(qh,t)-l);h<s&&(s=h,i=u)}for(var d=0;d<32;d++){var p=i+c;Jh[0]=$h(a[0],r[0],o[0],i),Jh[1]=$h(a[1],r[1],o[1],i),Kh[0]=$h(a[0],r[0],o[0],p),Kh[1]=$h(a[1],r[1],o[1],p);h=Qh(Jh,t)-l;if(ed(h)<.01)break;var f=Qh(Kh,t)-l;c/=2,h<0?f>=0?i+=c:i-=c:f>=0?i-=c:i+=c}return i}function nd(e,t){var n=[],i=_i["n"],a=[[],[],[]],r=[[],[]],o=[];t/=2,e.eachEdge((function(e,s){var l=e.getLayout(),c=e.getVisual("fromSymbol"),u=e.getVisual("toSymbol");l.__original||(l.__original=[m["clone"](l[0]),m["clone"](l[1])],l[2]&&l.__original.push(m["clone"](l[2])));var h=l.__original;if(null!=l[2]){if(m["copy"](a[0],h[0]),m["copy"](a[1],h[2]),m["copy"](a[2],h[1]),c&&"none"!==c){var d=mh(e.node1),p=td(a,h[0],d*t);i(a[0][0],a[1][0],a[2][0],p,n),a[0][0]=n[3],a[1][0]=n[4],i(a[0][1],a[1][1],a[2][1],p,n),a[0][1]=n[3],a[1][1]=n[4]}if(u&&"none"!==u){d=mh(e.node2),p=td(a,h[1],d*t);i(a[0][0],a[1][0],a[2][0],p,n),a[1][0]=n[1],a[2][0]=n[2],i(a[0][1],a[1][1],a[2][1],p,n),a[1][1]=n[1],a[2][1]=n[2]}m["copy"](l[0],a[0]),m["copy"](l[1],a[2]),m["copy"](l[2],a[1])}else{if(m["copy"](r[0],h[0]),m["copy"](r[1],h[1]),m["sub"](o,r[1],r[0]),m["normalize"](o,o),c&&"none"!==c){d=mh(e.node1);m["scaleAndAdd"](r[0],r[0],o,d*t)}if(u&&"none"!==u){d=mh(e.node2);m["scaleAndAdd"](r[1],r[1],o,-d*t)}m["copy"](l[0],r[0]),m["copy"](l[1],r[1])}}))}function id(e){return"view"===e.type}var ad=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.init=function(e,t){var n=new fi,i=new Uh,a=this.group;this._controller=new Ao(t.getZr()),this._controllerHost={target:a},a.add(n.group),a.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,t,n){var i=this,a=e.coordinateSystem;this._model=e;var r=this._symbolDraw,o=this._lineDraw,s=this.group;if(id(a)){var l={x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY};this._firstRender?s.attr(l):Oe["h"](s,l,e)}nd(e.getGraph(),vh(e));var c=e.getData();r.updateData(c);var u=e.getEdgeData();o.updateData(u),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var h=e.forceLayout,d=e.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,d);var p=e.get("layout");c.graph.eachNode((function(t){var n=t.dataIndex,a=t.getGraphicEl(),r=t.getModel();if(a){a.off("drag").off("dragend");var o=r.get("draggable");o&&a.on("drag",(function(r){switch(p){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,d),h.setFixed(n),c.setItemLayout(n,[a.x,a.y]);break;case"circular":c.setItemLayout(n,[a.x,a.y]),t.setLayout({fixed:!0},!0),_h(e,"symbolSize",t,[r.offsetX,r.offsetY]),i.updateLayout(e);break;case"none":default:c.setItemLayout(n,[a.x,a.y]),gh(e.getGraph(),e),i.updateLayout(e);break}})).on("dragend",(function(){h&&h.setUnfixed(n)})),a.setDraggable(o&&!!h,!!r.get("cursor"));var s=r.get(["emphasis","focus"]);"adjacency"===s&&(Object(W["a"])(a).focus=t.getAdjacentDataIndices())}})),c.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===n&&(Object(W["a"])(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var f="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),g=c.getLayout("cx"),y=c.getLayout("cy");c.graph.eachNode((function(e){Sh(e,f,g,y)})),this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;(function i(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(i,16):i())}))})()},t.prototype._updateController=function(e,t,n){var i=this,a=this._controller,r=this._controllerHost,o=this.group;a.setPointerChecker((function(t,i,a){var r=o.getBoundingRect();return r.applyTransform(o.transform),r.contain(i,a)&&!Lo(t,n,e)})),id(e.coordinateSystem)?(a.enable(e.get("roam")),r.zoomLimit=e.get("scaleLimit"),r.zoom=e.coordinateSystem.getZoom(),a.off("pan").off("zoom").on("pan",(function(t){Co(r,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){To(r,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(),nd(e.getGraph(),vh(e)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):a.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=vh(e);t.eachItemGraphicEl((function(e,t){e&&e.setSymbolScale(n)}))},t.prototype.updateLayout=function(e){nd(e.getGraph(),vh(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(f["a"]),rd=ad;function od(e){return"_EC_"+e}var sd=function(){function e(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[od(e)]){var i=new ld(e,t);return i.hostGraph=this,this.nodes.push(i),n[od(e)]=i,i}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[od(e)]},e.prototype.addEdge=function(e,t,n){var i=this._nodesMap,a=this._edgesMap;if(b["isNumber"](e)&&(e=this.nodes[e]),b["isNumber"](t)&&(t=this.nodes[t]),e instanceof ld||(e=i[od(e)]),t instanceof ld||(t=i[od(t)]),e&&t){var r=e.id+"-"+t.id,o=new cd(e,t,n);return o.hostGraph=this,this._directed&&(e.outEdges.push(o),t.inEdges.push(o)),e.edges.push(o),e!==t&&t.edges.push(o),this.edges.push(o),a[r]=o,o}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof ld&&(e=e.id),t instanceof ld&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&e.call(t,n[a],a)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&e.call(t,n[a],a)},e.prototype.breadthFirstTraverse=function(e,t,n,i){if(t instanceof ld||(t=this._nodesMap[od(t)]),t){for(var a="out"===n?"outEdges":"in"===n?"inEdges":"edges",r=0;r<this.nodes.length;r++)this.nodes[r].__visited=!1;if(!e.call(i,t,null)){var o=[t];while(o.length){var s=o.shift(),l=s[a];for(r=0;r<l.length;r++){var c=l[r],u=c.node1===s?c.node2:c.node1;if(!u.__visited){if(e.call(i,u,s))return;o.push(u),u.__visited=!0}}}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,i=this.edges,a=0,r=n.length;a<r;a++)n[a].dataIndex=-1;for(a=0,r=e.count();a<r;a++)n[e.getRawIndex(a)].dataIndex=a;t.filterSelf((function(e){var n=i[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(a=0,r=i.length;a<r;a++)i[a].dataIndex=-1;for(a=0,r=t.count();a<r;a++)i[t.getRawIndex(a)].dataIndex=a},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,i=this.edges,a=0;a<n.length;a++)t.addNode(n[a].id,n[a].dataIndex);for(a=0;a<i.length;a++){var r=i[a];t.addEdge(r.node1.id,r.node2.id,r.dataIndex)}return t},e}(),ld=function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==e?"":e,this.dataIndex=null==t?-1:t}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},e}(),cd=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}return e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e}();function ud(e,t){return{getValue:function(n){var i=this[e][t];return i.getStore().get(i.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}b["mixin"](ld,ud("hostGraph","data")),b["mixin"](cd,ud("hostGraph","edgeData"));var hd=sd;function dd(e,t,n,i,a){for(var r=new hd(i),o=0;o<e.length;o++)r.addNode(b["retrieve"](e[o].id,e[o].name,o),o);var s=[],l=[],c=0;for(o=0;o<t.length;o++){var u=t[o],h=u.source,d=u.target;r.addEdge(h,d,c)&&(l.push(u),s.push(b["retrieve"](Object(w["e"])(u.id,null),h+" > "+d)),c++)}var p,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)p=z(e,n);else{var y=M["a"].get(f),v=y&&y.dimensions||[];b["indexOf"](v,"value")<0&&v.concat(["value"]);var m=Object(O["b"])(e,{coordDimensions:v,encodeDefine:n.getEncode()}).dimensions;p=new g["a"](m,n),p.initData(e)}var x=new g["a"](["value"],n);return x.initData(l,s),a&&a(p,x),ic({mainData:p,struct:r,structAttr:"graph",datas:{node:p,edge:x},datasAttr:{node:"data",edge:"edgeData"}}),r.update(),r}var pd=n("f6d8"),fd=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(ee["a"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new Qr["a"](i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Object(w["f"])(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],i=e.data||e.nodes||[],a=this;if(i&&n){hh(this);var r=dd(i,n,this,!0,o);return b["each"](r.edges,(function(e){dh(e.node1,e.node2,this,e.dataIndex)}),this),r.data}function o(e,t){e.wrapMethod("getItemModel",(function(e){var t=a._categoriesModels,n=e.getShallow("category"),i=t[n];return i&&(i.parentModel=e.parentModel,e.parentModel=i),e}));var n=F["a"].prototype.getModel;function i(e,t){var i=n.call(this,e,t);return i.resolveParentPath=r,i}function r(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=r,e.getModel=i,e}))}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var i=this.getData(),a=this.getDataParams(e,n),r=i.graph.getEdgeByIndex(e),o=i.getName(r.node1.dataIndex),s=i.getName(r.node2.dataIndex),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),Object(eo["c"])("nameValue",{name:l.join(" > "),value:a.value,noValue:null==a.value})}var c=Object(pd["a"])({series:this,dataIndex:e,multipleSeries:t});return c},t.prototype._updateCategoriesData=function(){var e=b["map"](this.option.categories||[],(function(e){return null!=e.value?e:b["extend"]({value:0},e)})),t=new g["a"](["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e)}))},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(p["b"]),gd=fd,yd={type:"graphRoam",event:"graphRoam",update:"none"};function vd(e){e.registerChartView(rd),e.registerSeriesModel(gd),e.registerProcessor(Qu),e.registerVisual(eh),e.registerVisual(nh),e.registerLayout(yh),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,wh),e.registerLayout(jh),e.registerCoordinateSystem("graphView",{dimensions:tl.dimensions,create:Ch}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},b["noop"]),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},b["noop"]),e.registerAction(yd,(function(e,t,n){t.eachComponent({mainType:"series",query:e},(function(t){var i=t.coordinateSystem,a=gl(i,e,void 0,n);t.setCenter&&t.setCenter(a.center),t.setZoom&&t.setZoom(a.zoom)}))}))}var md=n("9be8"),bd=n("dce8"),xd=n("89b6"),_d=["itemStyle","opacity"],Od=function(e){function t(t,n){var i=e.call(this)||this,a=i,r=new De["a"],o=new Me["a"];return a.setTextContent(o),i.setTextGuideLine(r),i.updateData(t,n,!0),i}return Object(ee["a"])(t,e),t.prototype.updateData=function(e,t,n){var i=this,a=e.hostModel,r=e.getItemModel(t),o=e.getItemLayout(t),s=r.getModel("emphasis"),l=r.get(_d);l=null==l?1:l,n||Object(Oe["g"])(i),i.useStyle(e.getItemVisual(t,"style")),i.style.lineJoin="round",n?(i.setShape({points:o.points}),i.style.opacity=0,Oe["c"](i,{style:{opacity:l}},a,t)):Oe["h"](i,{style:{opacity:l},shape:{points:o.points}},a,t),Object(X["I"])(i,r),this._updateLabel(e,t),Object(X["J"])(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e,t){var n=this,i=this.getTextGuideLine(),a=n.getTextContent(),r=e.hostModel,o=e.getItemModel(t),s=e.getItemLayout(t),l=s.label,c=e.getItemVisual(t,"style"),u=c.fill;Object(Z["g"])(a,Object(Z["e"])(o),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:c.opacity,defaultText:e.getName(t)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:u,outsideFill:u});var h=l.linePoints;i.setShape({points:h}),n.textGuideLineConfig={anchor:h?new bd["a"](h[0][0],h[0][1]):null},Oe["h"](a,{style:{x:l.x,y:l.y}},r,t),a.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),Object(xd["d"])(n,Object(xd["a"])(o),{stroke:u})},t}(Te["a"]),Sd=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return Object(ee["a"])(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),a=this._data,r=this.group;i.diff(a).add((function(e){var t=new Od(i,e);i.setItemGraphicEl(e,t),r.add(t)})).update((function(e,t){var n=a.getItemGraphicEl(t);n.updateData(i,e),r.add(n),i.setItemGraphicEl(e,n)})).remove((function(t){var n=a.getItemGraphicEl(t);Oe["f"](n,e,t)})).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(f["a"]),wd=Sd,Md=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Qr["a"](b["bind"](this.getData,this),b["bind"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return Object($r["a"])(this,{coordDimensions:["value"],encodeDefaulter:b["curry"](L["d"],this)})},t.prototype._defaultLabelLine=function(e){Object(w["f"])(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),i=e.prototype.getDataParams.call(this,t),a=n.mapDimension("value"),r=n.getSum(a);return i.percent=r?+(n.get(a,t)/r*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(p["b"]),Id=Md;function jd(e,t){return H["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Ad(e,t){for(var n=e.mapDimension("value"),i=e.mapArray(n,(function(e){return e})),a=[],r="ascending"===t,o=0,s=e.count();o<s;o++)a[o]=o;return Object(b["isFunction"])(t)?a.sort(t):"none"!==t&&a.sort((function(e,t){return r?i[e]-i[t]:i[t]-i[e]})),a}function Cd(e){var t=e.hostModel,n=t.get("orient");e.each((function(t){var i,a,r,o,s=e.getItemModel(t),l=s.getModel("label"),c=l.get("position"),u=s.getModel("labelLine"),h=e.getItemLayout(t),d=h.points,p="inner"===c||"inside"===c||"center"===c||"insideLeft"===c||"insideRight"===c;if(p)"insideLeft"===c?(a=(d[0][0]+d[3][0])/2+5,r=(d[0][1]+d[3][1])/2,i="left"):"insideRight"===c?(a=(d[1][0]+d[2][0])/2-5,r=(d[1][1]+d[2][1])/2,i="right"):(a=(d[0][0]+d[1][0]+d[2][0]+d[3][0])/4,r=(d[0][1]+d[1][1]+d[2][1]+d[3][1])/4,i="center"),o=[[a,r],[a,r]];else{var f=void 0,g=void 0,y=void 0,v=void 0,m=u.get("length");0,"left"===c?(f=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,y=f-m,a=y-5,i="right"):"right"===c?(f=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,y=f+m,a=y+5,i="left"):"top"===c?(f=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,v=g-m,r=v-5,i="center"):"bottom"===c?(f=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,v=g+m,r=v+5,i="center"):"rightTop"===c?(f="horizontal"===n?d[3][0]:d[1][0],g="horizontal"===n?d[3][1]:d[1][1],"horizontal"===n?(v=g-m,r=v-5,i="center"):(y=f+m,a=y+5,i="top")):"rightBottom"===c?(f=d[2][0],g=d[2][1],"horizontal"===n?(v=g+m,r=v+5,i="center"):(y=f+m,a=y+5,i="bottom")):"leftTop"===c?(f=d[0][0],g="horizontal"===n?d[0][1]:d[1][1],"horizontal"===n?(v=g-m,r=v-5,i="center"):(y=f-m,a=y-5,i="right")):"leftBottom"===c?(f="horizontal"===n?d[1][0]:d[3][0],g="horizontal"===n?d[1][1]:d[2][1],"horizontal"===n?(v=g+m,r=v+5,i="center"):(y=f-m,a=y-5,i="right")):(f=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,"horizontal"===n?(v=g+m,r=v+5,i="center"):(y=f+m,a=y+5,i="left")),"horizontal"===n?(y=f,a=y):(v=g,r=v),o=[[f,g],[y,v]]}h.label={linePoints:o,x:a,y:r,verticalAlign:"middle",textAlign:i,inside:p}}))}function Td(e,t){e.eachSeriesByType("funnel",(function(e){var n=e.getData(),i=n.mapDimension("value"),a=e.get("sort"),r=jd(e,t),o=e.get("orient"),s=r.width,l=r.height,c=Ad(n,a),u=r.x,h=r.y,d="horizontal"===o?[Object(be["q"])(e.get("minSize"),l),Object(be["q"])(e.get("maxSize"),l)]:[Object(be["q"])(e.get("minSize"),s),Object(be["q"])(e.get("maxSize"),s)],p=n.getDataExtent(i),f=e.get("min"),g=e.get("max");null==f&&(f=Math.min(p[0],0)),null==g&&(g=p[1]);var y=e.get("funnelAlign"),v=e.get("gap"),m="horizontal"===o?s:l,b=(m-v*(n.count()-1))/n.count(),x=function(e,t){if("horizontal"===o){var a=n.get(i,e)||0,r=Object(be["m"])(a,[f,g],d,!0),c=void 0;switch(y){case"top":c=h;break;case"center":c=h+(l-r)/2;break;case"bottom":c=h+(l-r);break}return[[t,c],[t,c+r]]}var p,v=n.get(i,e)||0,m=Object(be["m"])(v,[f,g],d,!0);switch(y){case"left":p=u;break;case"center":p=u+(s-m)/2;break;case"right":p=u+s-m;break}return[[p,t],[p+m,t]]};"ascending"===a&&(b=-b,v=-v,"horizontal"===o?u+=s:h+=l,c=c.reverse());for(var _=0;_<c.length;_++){var O=c[_],S=c[_+1],w=n.getItemModel(O);if("horizontal"===o){var M=w.get(["itemStyle","width"]);null==M?M=b:(M=Object(be["q"])(M,s),"ascending"===a&&(M=-M));var I=x(O,u),j=x(S,u+M);u+=M+v,n.setItemLayout(O,{points:I.concat(j.slice().reverse())})}else{var A=w.get(["itemStyle","height"]);null==A?A=b:(A=Object(be["q"])(A,l),"ascending"===a&&(A=-A));I=x(O,h),j=x(S,h+A);h+=A+v,n.setItemLayout(O,{points:I.concat(j.slice().reverse())})}}Cd(n)}))}function Dd(e){e.registerChartView(wd),e.registerSeriesModel(Id),e.registerLayout(Td),e.registerProcessor(Object(Ur["a"])("funnel"))}var Ld=.3,Pd=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new Se["a"],n._initialized=!1,n}return Object(ee["a"])(t,e),t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,i){this._progressiveEls=null;var a=this._dataGroup,r=e.getData(),o=this._data,s=e.coordinateSystem,l=s.dimensions,c=Ed(e);function u(e){var t=Rd(r,a,e,l,s);Vd(t,r,e,c)}function h(t,n){var i=o.getItemGraphicEl(n),a=Nd(r,t,l,s);r.setItemGraphicEl(t,i),Oe["h"](i,{shape:{points:a}},e,t),Object(Oe["g"])(i),Vd(i,r,t,c)}function d(e){var t=o.getItemGraphicEl(e);a.remove(t)}if(r.diff(o).add(u).update(h).remove(d).execute(),!this._initialized){this._initialized=!0;var p=kd(s,e,(function(){setTimeout((function(){a.removeClipPath()}))}));a.setClipPath(p)}this._data=r},t.prototype.incrementalPrepareRender=function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,n){for(var i=t.getData(),a=t.coordinateSystem,r=a.dimensions,o=Ed(t),s=this._progressiveEls=[],l=e.start;l<e.end;l++){var c=Rd(i,this._dataGroup,l,r,a);c.incremental=!0,Vd(c,i,l,o),s.push(c)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(f["a"]);function kd(e,t,n){var i=e.model,a=e.getRect(),r=new Le["a"]({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o="horizontal"===i.get("layout")?"width":"height";return r.setShape(o,0),Oe["c"](r,{shape:{width:a.width,height:a.height}},t,n),r}function Nd(e,t,n,i){for(var a=[],r=0;r<n.length;r++){var o=n[r],s=e.get(e.mapDimension(o),t);zd(s,i.getAxis(o).type)||a.push(i.dataToPoint(s,o))}return a}function Rd(e,t,n,i,a){var r=Nd(e,n,i,a),o=new De["a"]({shape:{points:r},z2:10});return t.add(o),e.setItemGraphicEl(n,o),o}function Ed(e){var t=e.get("smooth",!0);return!0===t&&(t=Ld),t=Object(be["o"])(t),Object(b["eqNaN"])(t)&&(t=0),{smooth:t}}function Vd(e,t,n,i){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",i.smooth);var a=t.getItemModel(n),r=a.getModel("emphasis");Object(X["I"])(e,a,"lineStyle"),Object(X["J"])(e,r.get("focus"),r.get("blurScope"),r.get("disabled"))}function zd(e,t){return"category"===t?null==e:null==e||isNaN(e)}var Bd=Pd,Gd=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return Object(ee["a"])(t,e),t.prototype.getInitialData=function(e,t){return z(null,this,{useEncodeDefaulter:Object(b["bind"])(Fd,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,n=this.getData(),i=[];return t.eachActiveState(n,(function(t,a){e===t&&i.push(n.getRawIndex(a))})),i},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(p["b"]);function Fd(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return Object(b["each"])(t.dimensions,(function(e){var t=Hd(e);n[e]=t})),n}}function Hd(e){return+e.replace("dim","")}var Wd=Gd,Zd=["lineStyle","opacity"],Yd={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,i={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(e,t){n.eachActiveState(t,(function(e,n){var a=i[e];if("normal"===e&&t.hasItemOption){var r=t.getItemModel(n).get(Zd,!0);null!=r&&(a=r)}var o=t.ensureUniqueItemVisual(n,"style");o.opacity=a}),e.start,e.end)}}}},Xd=Yd;function Ud(e){qd(e),Jd(e)}function qd(e){if(!e.parallel){var t=!1;b["each"](e.series,(function(e){e&&"parallel"===e.type&&(t=!0)})),t&&(e.parallel=[{}])}}function Jd(e){var t=w["r"](e.parallelAxis);b["each"](t,(function(t){if(b["isObject"](t)){var n=t.parallelIndex||0,i=w["r"](e.parallel)[n];i&&i.parallelAxisDefault&&b["merge"](t,i.parallelAxisDefault,!1)}}))}var Kd=5,$d=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},Object(b["each"])(Qd,(function(e,t){n.getZr().on(t,this._handlers[t]=Object(b["bind"])(e,this))}),this)),Object(_["b"])(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,t){Object(_["a"])(this,"_throttledDispatchExpand"),Object(b["each"])(this._handlers,(function(e,n){t.getZr().off(n,e)})),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(Object(b["extend"])({type:"parallelAxisExpand"},e))},t.type="parallel",t}(d["a"]),Qd={mousedown:function(e){ep(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(ep(this,"click")&&t){var n=[e.offsetX,e.offsetY],i=Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2);if(i>Kd)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==a.behavior&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&ep(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function ep(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var tp=$d,np=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&b["merge"](t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){b["each"](["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=b["filter"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);b["each"](n,(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(h["a"]),ip=np,ap=function(e){function t(t,n,i,a,r){var o=e.call(this,t,n,i)||this;return o.type=a||"value",o.axisIndex=r,o}return Object(ee["a"])(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(ht),rp=ap;function op(e,t,n,i,a,r){e=e||0;var o=n[1]-n[0];if(null!=a&&(a=lp(a,[0,o])),null!=r&&(r=Math.max(r,null!=a?a:0)),"all"===i){var s=Math.abs(t[1]-t[0]);s=lp(s,[0,o]),a=r=lp(s,[a,r]),i=0}t[0]=lp(t[0],n),t[1]=lp(t[1],n);var l=sp(t,i);t[i]+=e;var c,u=a||0,h=n.slice();return l.sign<0?h[0]+=u:h[1]-=u,t[i]=lp(t[i],h),c=sp(t,i),null!=a&&(c.sign!==l.sign||c.span<a)&&(t[1-i]=t[i]+l.sign*a),c=sp(t,i),null!=r&&c.span>r&&(t[1-i]=t[i]+c.sign*r),t}function sp(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function lp(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var cp=b["each"],up=Math.min,hp=Math.max,dp=Math.floor,pp=Math.ceil,fp=be["w"],gp=Math.PI,yp=function(){function e(e,t,n){this.type="parallel",this._axesMap=b["createHashMap"](),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=e.dimensions,a=e.parallelAxisIndex;cp(i,(function(e,n){var i=a[n],r=t.getComponent("parallelAxis",i),o=this._axesMap.set(e,new rp(e,B["a"](r),[0,0],r.get("type"),i)),s="category"===o.type;o.onBand=s&&r.get("boundaryGap"),o.inverse=r.get("inverse"),r.axis=o,o.model=r,o.coordinateSystem=r.coordinateSystem=this}),this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,i=t.layoutBase,a=t.pixelDimIndex,r=e[1-a],o=e[a];return r>=n&&r<=n+t.axisLength&&o>=i&&o<=i+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var i=n.getData();cp(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(i,i.mapDimension(e)),B["i"](t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=H["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,n=this._rect,i=["x","y"],a=["width","height"],r=t.get("layout"),o="horizontal"===r?0:1,s=n[a[o]],l=[0,s],c=this.dimensions.length,u=vp(t.get("axisExpandWidth"),l),h=vp(t.get("axisExpandCount")||0,[0,c]),d=t.get("axisExpandable")&&c>3&&c>h&&h>1&&u>0&&s>0,p=t.get("axisExpandWindow");if(p)e=vp(p[1]-p[0],l),p[1]=p[0]+e;else{e=vp(u*(h-1),l);var f=t.get("axisExpandCenter")||dp(c/2);p=[u*f-e/2],p[1]=p[0]+e}var g=(s-e)/(c-h);g<3&&(g=0);var y=[dp(fp(p[0]/u,1))+1,pp(fp(p[1]/u,1))-1],v=g/u*p[0];return{layout:r,pixelDimIndex:o,layoutBase:n[i[o]],layoutLength:s,axisBase:n[i[1-o]],axisLength:n[a[1-o]],axisExpandable:d,axisExpandWidth:u,axisCollapseWidth:g,axisExpandWindow:p,axisCount:c,winInnerIndices:y,axisExpandWindow0Pos:v}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;t.each((function(e){var t=[0,i.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),cp(n,(function(t,n){var r=(i.axisExpandable?bp:mp)(n,i),o={horizontal:{x:r.position,y:i.axisLength},vertical:{x:0,y:r.position}},s={horizontal:gp/2,vertical:0},l=[o[a].x+e.x,o[a].y+e.y],c=s[a],u=v["create"]();v["rotate"](u,u,c),v["translate"](u,u,l),this._axesLayout[t]={position:l,rotation:c,transform:u,axisNameAvailableWidth:r.axisNameAvailableWidth,axisLabelShow:r.axisLabelShow,nameTruncateMaxWidth:r.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,i){null==n&&(n=0),null==i&&(i=e.count());var a=this._axesMap,r=this.dimensions,o=[],s=[];b["each"](r,(function(t){o.push(e.mapDimension(t)),s.push(a.get(t).model)}));for(var l=this.hasAxisBrushed(),c=n;c<i;c++){var u=void 0;if(l){u="active";for(var h=e.getValues(o,c),d=0,p=r.length;d<p;d++){var f=s[d].getActiveState(h[d]);if("inactive"===f){u="inactive";break}}}else u="normal";t(u,c)}},e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,i=0,a=e.length;i<a;i++)"normal"!==t.get(e[i]).model.getActiveState()&&(n=!0);return n},e.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return _e["applyTransform"]([e,0],n.transform)},e.prototype.getAxisLayout=function(e){return b["clone"](this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,i=t.axisExpandWindow.slice(),a=i[1]-i[0],r=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:i};var o,s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l="slide",c=t.axisCollapseWidth,u=this._model.get("axisExpandSlideTriggerArea"),h=null!=u[0];if(c)h&&c&&s<a*u[0]?(l="jump",o=s-a*u[2]):h&&c&&s>a*(1-u[0])?(l="jump",o=s-a*(1-u[2])):(o=s-a*u[1])>=0&&(o=s-a*(1-u[1]))<=0&&(o=0),o*=t.axisExpandWidth/c,o?op(o,i,r,"all"):l="none";else{var d=i[1]-i[0],p=r[1]*s/d;i=[hp(0,p-d/2)],i[1]=up(r[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:l}},e}();function vp(e,t){return up(hp(e,t[0]),t[1])}function mp(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function bp(e,t){var n,i,a=t.layoutLength,r=t.axisExpandWidth,o=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,c=s,u=!1;return e<l[0]?(n=e*s,i=s):e<=l[1]?(n=t.axisExpandWindow0Pos+e*r-t.axisExpandWindow[0],c=r,u=!0):(n=a-(o-1-e)*s,i=s),{position:n,axisNameAvailableWidth:c,axisLabelShow:u,nameTruncateMaxWidth:i}}var xp=yp;function _p(e,t){var n=[];return e.eachComponent("parallel",(function(i,a){var r=new xp(i,e,t);r.name="parallel_"+a,r.resize(i,t),i.coordinateSystem=r,r.model=i,n.push(r)})),e.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var t=e.getReferringComponents("parallel",w["b"]).models[0];e.coordinateSystem=t.coordinateSystem}})),n}var Op={create:_p},Sp=Op,wp=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return Object(ee["a"])(t,e),t.prototype.getAreaSelectStyle=function(){return Object(zc["a"])([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=b["clone"](e);if(t)for(var n=t.length-1;n>=0;n--)be["c"](t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,a=t.length;i<a;i++)if(t[i][0]<=e&&e<=t[i][1])return"active";return"inactive"},t}(h["a"]);b["mixin"](wp,G);var Mp=wp,Ip=!0,jp=Math.min,Ap=Math.max,Cp=Math.pow,Tp=1e4,Dp=6,Lp=6,Pp="globalPan",kp={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Np={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Rp={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Ep=0,Vp=function(e){function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new Se["a"],n._uid="brushController_"+Ep++,Object(b["each"])(vf,(function(e,t){this._handlers[t]=Object(b["bind"])(e,this)}),n),n}return Object(ee["a"])(t,e),t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||xo(t,Pp,this._uid),Object(b["each"])(this._handlers,(function(e,n){t.on(n,e)})),this._brushType=e.brushType,this._brushOption=Object(b["merge"])(Object(b["clone"])(Rp),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;_o(e,Pp,this._uid),Object(b["each"])(this._handlers,(function(t,n){e.off(n,t)})),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};Object(b["each"])(e,(function(e){t[e.panelId]=Object(b["clone"])(e)}))}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=Object(b["map"])(e,(function(e){return Object(b["merge"])(Object(b["clone"])(Rp),e,!0)}));var t="\0-brush-index-",n=this._covers,i=this._covers=[],a=this,r=this._creatingCover;return new Cc["a"](n,e,s,o).add(l).update(l).remove(c).execute(),this;function o(e,n){return(null!=e.id?e.id:t+n)+"-"+e.brushType}function s(e,t){return o(e.__brushOption,t)}function l(t,o){var s=e[t];if(null!=o&&n[o]===r)i[t]=n[o];else{var l=i[t]=null!=o?(n[o].__brushOption=s,n[o]):Bp(a,zp(a,s));Hp(a,l)}}function c(e){n[e]!==r&&a.group.remove(n[e])}},t.prototype.unmount=function(){return this.enableBrush(!1),Xp(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(vo["a"]);function zp(e,t){var n=xf[t.brushType].createCover(e,t);return n.__brushOption=t,Fp(n,t),e.group.add(n),n}function Bp(e,t){var n=Wp(t);return n.endCreating&&(n.endCreating(e,t),Fp(t,t.__brushOption)),t}function Gp(e,t){var n=t.__brushOption;Wp(t).updateCoverShape(e,t,n.range,n)}function Fp(e,t){var n=t.z;null==n&&(n=Tp),e.traverse((function(e){e.z=n,e.z2=n}))}function Hp(e,t){Wp(t).updateCommon(e,t),Gp(e,t)}function Wp(e){return xf[e.__brushOption.brushType]}function Zp(e,t,n){var i,a=e._panels;if(!a)return Ip;var r=e._transform;return Object(b["each"])(a,(function(e){e.isTargetByCursor(t,n,r)&&(i=e)})),i}function Yp(e,t){var n=e._panels;if(!n)return Ip;var i=t.__brushOption.panelId;return null!=i?n[i]:Ip}function Xp(e){var t=e._covers,n=t.length;return Object(b["each"])(t,(function(t){e.group.remove(t)}),e),t.length=0,!!n}function Up(e,t){var n=Object(b["map"])(e._covers,(function(e){var t=e.__brushOption,n=Object(b["clone"])(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}}));e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function qp(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],i=t[0],a=n[0]-i[0],r=n[1]-i[1],o=Cp(a*a+r*r,.5);return o>Dp}function Jp(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function Kp(e,t,n,i){var a=new Se["a"];return a.add(new Le["a"]({name:"main",style:tf(n),silent:!0,draggable:!0,cursor:"move",drift:Object(b["curry"])(sf,e,t,a,["n","s","w","e"]),ondragend:Object(b["curry"])(Up,t,{isEnd:!0})})),Object(b["each"])(i,(function(n){a.add(new Le["a"]({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(b["curry"])(sf,e,t,a,n),ondragend:Object(b["curry"])(Up,t,{isEnd:!0})}))})),a}function $p(e,t,n,i){var a=i.brushStyle.lineWidth||0,r=Ap(a,Lp),o=n[0][0],s=n[1][0],l=o-a/2,c=s-a/2,u=n[0][1],h=n[1][1],d=u-r+a/2,p=h-r+a/2,f=u-o,g=h-s,y=f+a,v=g+a;ef(e,t,"main",o,s,f,g),i.transformable&&(ef(e,t,"w",l,c,r,v),ef(e,t,"e",d,c,r,v),ef(e,t,"n",l,c,y,r),ef(e,t,"s",l,p,y,r),ef(e,t,"nw",l,c,r,r),ef(e,t,"ne",d,c,r,r),ef(e,t,"sw",l,p,r,r),ef(e,t,"se",d,p,r,r))}function Qp(e,t){var n=t.__brushOption,i=n.transformable,a=t.childAt(0);a.useStyle(tf(n)),a.attr({silent:!i,cursor:i?"move":"default"}),Object(b["each"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var a=t.childOfName(n.join("")),r=1===n.length?rf(e,n[0]):of(e,n);a&&a.attr({silent:!i,invisible:!i,cursor:i?Np[r]+"-resize":null})}))}function ef(e,t,n,i,a,r,o){var s=t.childOfName(n);s&&s.setShape(hf(uf(e,t,[[i,a],[i+r,a+o]])))}function tf(e){return Object(b["defaults"])({strokeNoScale:!0},e.brushStyle)}function nf(e,t,n,i){var a=[jp(e,n),jp(t,i)],r=[Ap(e,n),Ap(t,i)];return[[a[0],r[0]],[a[1],r[1]]]}function af(e){return _e["getTransform"](e.group)}function rf(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},a=_e["transformDirection"](n[t],af(e));return i[a]}function of(e,t){var n=[rf(e,t[0]),rf(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function sf(e,t,n,i,a,r){var o=n.__brushOption,s=e.toRectRange(o.range),l=cf(t,a,r);Object(b["each"])(i,(function(e){var t=kp[e];s[t[0]][t[1]]+=l[t[0]]})),o.range=e.fromRectRange(nf(s[0][0],s[1][0],s[0][1],s[1][1])),Hp(t,n),Up(t,{isEnd:!1})}function lf(e,t,n,i){var a=t.__brushOption.range,r=cf(e,n,i);Object(b["each"])(a,(function(e){e[0]+=r[0],e[1]+=r[1]})),Hp(e,t),Up(e,{isEnd:!1})}function cf(e,t,n){var i=e.group,a=i.transformCoordToLocal(t,n),r=i.transformCoordToLocal(0,0);return[a[0]-r[0],a[1]-r[1]]}function uf(e,t,n){var i=Yp(e,t);return i&&i!==Ip?i.clipPath(n,e._transform):Object(b["clone"])(n)}function hf(e){var t=jp(e[0][0],e[1][0]),n=jp(e[0][1],e[1][1]),i=Ap(e[0][0],e[1][0]),a=Ap(e[0][1],e[1][1]);return{x:t,y:n,width:i-t,height:a-n}}function df(e,t,n){if(e._brushType&&!bf(e,t.offsetX,t.offsetY)){var i=e._zr,a=e._covers,r=Zp(e,t,n);if(!e._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(r&&(r===Ip||s.panelId===r.panelId)&&xf[s.brushType].contain(a[o],n[0],n[1]))return}r&&i.setCursorStyle("crosshair")}}function pf(e){var t=e.event;t.preventDefault&&t.preventDefault()}function ff(e,t,n){return e.childOfName("main").contain(t,n)}function gf(e,t,n,i){var a,r=e._creatingCover,o=e._creatingPanel,s=e._brushOption;if(e._track.push(n.slice()),qp(e)||r){if(o&&!r){"single"===s.brushMode&&Xp(e);var l=Object(b["clone"])(s);l.brushType=yf(l.brushType,o),l.panelId=o===Ip?null:o.panelId,r=e._creatingCover=zp(e,l),e._covers.push(r)}if(r){var c=xf[yf(e._brushType,o)],u=r.__brushOption;u.range=c.getCreatingRange(uf(e,r,e._track)),i&&(Bp(e,r),c.updateCommon(e,r)),Gp(e,r),a={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&Zp(e,t,n)&&Xp(e)&&(a={isEnd:i,removeOnClick:!0});return a}function yf(e,t){return"auto"===e?t.defaultBrushType:e}var vf={mousedown:function(e){if(this._dragging)mf(this,e);else if(!e.target||!e.target.draggable){pf(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var n=this._creatingPanel=Zp(this,e,t);n&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,i=this.group.transformCoordToLocal(t,n);if(df(this,e,i),this._dragging){pf(e);var a=gf(this,e,i,!1);a&&Up(this,a)}},mouseup:function(e){mf(this,e)}};function mf(e,t){if(e._dragging){pf(t);var n=t.offsetX,i=t.offsetY,a=e.group.transformCoordToLocal(n,i),r=gf(e,t,a,!0);e._dragging=!1,e._track=[],e._creatingCover=null,r&&Up(e,r)}}function bf(e,t,n){var i=e._zr;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}var xf={lineX:_f(0),lineY:_f(1),rect:{createCover:function(e,t){function n(e){return e}return Kp({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=Jp(e);return nf(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,i){$p(e,t,n,i)},updateCommon:Qp,contain:ff},polygon:{createCover:function(e,t){var n=new Se["a"];return n.add(new De["a"]({name:"main",style:tf(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Te["a"]({name:"main",draggable:!0,drift:Object(b["curry"])(lf,e,t),ondragend:Object(b["curry"])(Up,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,i){t.childAt(0).setShape({points:uf(e,t,n)})},updateCommon:Qp,contain:ff}};function _f(e){return{createCover:function(t,n){return Kp({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=Jp(t),i=jp(n[0][e],n[1][e]),a=Ap(n[0][e],n[1][e]);return[i,a]},updateCoverShape:function(t,n,i,a){var r,o=Yp(t,n);if(o!==Ip&&o.getLinearBrushOtherExtent)r=o.getLinearBrushOtherExtent(e);else{var s=t._zr;r=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[i,r];e&&l.reverse(),$p(t,n,l,a)},updateCommon:Qp,contain:ff}}var Of=Vp;function Sf(e){return e=If(e),function(t){return _e["clipPointsByRect"](t,e)}}function wf(e,t){return e=If(e),function(n){var i=null!=t?t:n,a=i?e.width:e.height,r=i?e.x:e.y;return[r,r+(a||0)]}}function Mf(e,t,n){var i=If(e);return function(e,a){return i.contain(a[0],a[1])&&!Lo(e,t,n)}}function If(e){return te["a"].create(e)}var jf=["axisLine","axisTickLabel","axisName"],Af=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new Of(n.getZr())).on("brush",b["bind"](this._onBrush,this))},t.prototype.render=function(e,t,n,i){if(!Cf(e,t,i)){this.axisModel=e,this.api=n,this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new Se["a"],this.group.add(this._axisGroup),e.get("show")){var r=Df(e,t),o=r.coordinateSystem,s=e.getAreaSelectStyle(),l=s.width,c=e.axis.dim,u=o.getAxisLayout(c),h=b["extend"]({strokeContainThreshold:l},u),d=new Tr["a"](e,h);b["each"](jf,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(h,s,e,r,l,n),_e["groupTransition"](a,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,i,a,r){var o=n.axis.getExtent(),s=o[1]-o[0],l=Math.min(30,.1*Math.abs(s)),c=te["a"].create({x:o[0],y:-a/2,width:s,height:a});c.x-=l,c.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:Sf(c),isTargetByCursor:Mf(c,r,i),getLinearBrushOtherExtent:wf(c,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(Tf(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,i=n.axis,a=b["map"](t,(function(e){return[i.coordToData(e.range[0],!0),i.coordToData(e.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:a})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(d["a"]);function Cf(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function Tf(e){var t=e.axis;return b["map"](e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function Df(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var Lf=Af,Pf={type:"axisAreaSelect",event:"axisAreaSelected"};function kf(e){e.registerAction(Pf,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),e.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))}var Nf={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Rf(e){e.registerComponentView(tp),e.registerComponentModel(ip),e.registerCoordinateSystem("parallel",Sp),e.registerPreprocessor(Ud),e.registerComponentModel(Mp),e.registerComponentView(Lf),cr(e,"parallel",Mp,Nf),kf(e)}function Ef(e){Object(c["a"])(Rf),e.registerChartView(Bd),e.registerSeriesModel(Wd),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Xd)}var Vf=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),zf=function(e){function t(t){return e.call(this,t)||this}return Object(ee["a"])(t,e),t.prototype.getDefaultShape=function(){return new Vf},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){Object(X["r"])(this)},t.prototype.downplay=function(){Object(X["C"])(this)},t}(xt["b"]),Bf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return Object(ee["a"])(t,e),t.prototype.render=function(e,t,n){var i=this,a=e.getGraph(),r=this.group,o=e.layoutInfo,s=o.width,l=o.height,c=e.getData(),u=e.getData("edge"),h=e.get("orient");this._model=e,r.removeAll(),r.x=o.x,r.y=o.y,a.eachEdge((function(t){var n=new zf,i=Object(W["a"])(n);i.dataIndex=t.dataIndex,i.seriesIndex=e.seriesIndex,i.dataType="edge";var a,o,c,d,p,f,g,y,v=t.getModel(),m=v.getModel("lineStyle"),x=m.get("curveness"),_=t.node1.getLayout(),O=t.node1.getModel(),S=O.get("localX"),w=O.get("localY"),M=t.node2.getLayout(),I=t.node2.getModel(),j=I.get("localX"),A=I.get("localY"),C=t.getLayout();switch(n.shape.extent=Math.max(1,C.dy),n.shape.orient=h,"vertical"===h?(a=(null!=S?S*s:_.x)+C.sy,o=(null!=w?w*l:_.y)+_.dy,c=(null!=j?j*s:M.x)+C.ty,d=null!=A?A*l:M.y,p=a,f=o*(1-x)+d*x,g=c,y=o*x+d*(1-x)):(a=(null!=S?S*s:_.x)+_.dx,o=(null!=w?w*l:_.y)+C.sy,c=null!=j?j*s:M.x,d=(null!=A?A*l:M.y)+C.ty,p=a*(1-x)+c*x,f=o,g=a*x+c*(1-x),y=d),n.setShape({x1:a,y1:o,x2:c,y2:d,cpx1:p,cpy1:f,cpx2:g,cpy2:y}),n.useStyle(m.getItemStyle()),n.style.fill){case"source":n.style.fill=t.node1.getVisual("color"),n.style.decal=t.node1.getVisual("style").decal;break;case"target":n.style.fill=t.node2.getVisual("color"),n.style.decal=t.node2.getVisual("style").decal;break;case"gradient":var T=t.node1.getVisual("color"),D=t.node2.getVisual("color");Object(b["isString"])(T)&&Object(b["isString"])(D)&&(n.style.fill=new Ve["a"](0,0,+("horizontal"===h),+("vertical"===h),[{color:T,offset:0},{color:D,offset:1}]))}var L=v.getModel("emphasis");Object(X["I"])(n,v,"lineStyle",(function(e){return e.getItemStyle()})),r.add(n),u.setItemGraphicEl(t.dataIndex,n);var P=L.get("focus");Object(X["J"])(n,"adjacency"===P?t.getAdjacentDataIndices():P,L.get("blurScope"),L.get("disabled")),Object(W["a"])(n).dataType="edge"})),a.eachNode((function(t){var n=t.getLayout(),i=t.getModel(),a=i.get("localX"),o=i.get("localY"),u=i.getModel("emphasis"),h=new Le["a"]({shape:{x:null!=a?a*s:n.x,y:null!=o?o*l:n.y,width:n.dx,height:n.dy},style:i.getModel("itemStyle").getItemStyle(),z2:10});Object(Z["g"])(h,Object(Z["e"])(i),{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:t.id}),h.disableLabelAnimation=!0,h.setStyle("fill",t.getVisual("color")),h.setStyle("decal",t.getVisual("style").decal),Object(X["I"])(h,i),r.add(h),c.setItemGraphicEl(t.dataIndex,h),Object(W["a"])(h).dataType="node";var d=u.get("focus");Object(X["J"])(h,"adjacency"===d?t.getAdjacentDataIndices():d,u.get("blurScope"),u.get("disabled"))})),c.eachItemGraphicEl((function(t,a){var r=c.getItemModel(a);r.get("draggable")&&(t.drift=function(t,r){i._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=r,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(a),localX:this.shape.x/s,localY:this.shape.y/l})},t.ondragend=function(){i._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&r.setClipPath(Gf(r.getBoundingRect(),e,(function(){r.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(f["a"]);function Gf(e,t,n){var i=new Le["a"]({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Oe["c"](i,{shape:{width:e.width+20}},t,n),i}var Ff=Bf,Hf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links,i=e.data||e.nodes,a=e.levels;this.levelModels=[];for(var r=this.levelModels,o=0;o<a.length;o++)null!=a[o].depth&&a[o].depth>=0&&(r[a[o].depth]=new F["a"](a[o],this,t));if(i&&n){var s=dd(i,n,this,!0,l);return s.data}function l(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getData().getItemLayout(t);if(i){var a=i.depth,r=n.levelModels[a];r&&(e.parentModel=r)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getGraph().getEdgeByIndex(t),a=i.node1.getLayout();if(a){var r=a.depth,o=n.levelModels[r];o&&(e.parentModel=o)}return e}))}},t.prototype.setNodePosition=function(e,t){var n=this.option.data||this.option.nodes,i=n[e];i.localX=t[0],i.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function i(e){return isNaN(e)||null==e}if("edge"===n){var a=this.getDataParams(e,n),r=a.data,o=a.value,s=r.source+" -- "+r.target;return Object(eo["c"])("nameValue",{name:s,value:o,noValue:i(o)})}var l=this.getGraph().getNodeByIndex(e),c=l.getLayout().value,u=this.getDataParams(e,n).data.name;return Object(eo["c"])("nameValue",{name:null!=u?u+"":null,value:c,noValue:i(c)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var i=e.prototype.getDataParams.call(this,t,n);if(null==i.value&&"node"===n){var a=this.getGraph().getNodeByIndex(t),r=a.getLayout().value;i.value=r}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(p["b"]),Wf=Hf;function Zf(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),i=e.get("nodeGap"),a=Yf(e,t);e.layoutInfo=a;var r=a.width,o=a.height,s=e.getGraph(),l=s.nodes,c=s.edges;Uf(l);var u=b["filter"](l,(function(e){return 0===e.getLayout().value})),h=0!==u.length?0:e.get("layoutIterations"),d=e.get("orient"),p=e.get("nodeAlign");Xf(l,c,n,i,r,o,h,d,p)}))}function Yf(e,t){return H["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Xf(e,t,n,i,a,r,o,s,l){qf(e,t,n,a,r,s,l),eg(e,t,r,a,i,o,s),pg(e,s)}function Uf(e){b["each"](e,(function(e){var t=hg(e.outEdges,ug),n=hg(e.inEdges,ug),i=e.getValue()||0,a=Math.max(t,n,i);e.setLayout({value:a},!0)}))}function qf(e,t,n,i,a,r,o){for(var s=[],l=[],c=[],u=[],h=0,d=0;d<t.length;d++)s[d]=1;for(d=0;d<e.length;d++)l[d]=e[d].inEdges.length,0===l[d]&&c.push(e[d]);var p=-1;while(c.length){for(var f=0;f<c.length;f++){var g=c[f],y=g.hostGraph.data.getRawDataItem(g.dataIndex),v=null!=y.depth&&y.depth>=0;v&&y.depth>p&&(p=y.depth),g.setLayout({depth:v?y.depth:h},!0),"vertical"===r?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var m=0;m<g.outEdges.length;m++){var b=g.outEdges[m],x=t.indexOf(b);s[x]=0;var _=b.node2,O=e.indexOf(_);0===--l[O]&&u.indexOf(_)<0&&u.push(_)}}++h,c=u,u=[]}for(d=0;d<s.length;d++)if(1===s[d])throw new Error("Sankey is a DAG, the original data has cycle!");var S=p>h-1?p:h-1;o&&"left"!==o&&Kf(e,o,r,S);var w="vertical"===r?(a-n)/S:(i-n)/S;Qf(e,w,r)}function Jf(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function Kf(e,t,n,i){if("right"===t){var a=[],r=e,o=0;while(r.length){for(var s=0;s<r.length;s++){var l=r[s];l.setLayout({skNodeHeight:o},!0);for(var c=0;c<l.inEdges.length;c++){var u=l.inEdges[c];a.indexOf(u.node1)<0&&a.push(u.node1)}}r=a,a=[],++o}b["each"](e,(function(e){Jf(e)||e.setLayout({depth:Math.max(0,i-e.getLayout().skNodeHeight)},!0)}))}else"justify"===t&&$f(e,i)}function $f(e,t){b["each"](e,(function(e){Jf(e)||e.outEdges.length||e.setLayout({depth:t},!0)}))}function Qf(e,t,n){b["each"](e,(function(e){var i=e.getLayout().depth*t;"vertical"===n?e.setLayout({y:i},!0):e.setLayout({x:i},!0)}))}function eg(e,t,n,i,a,r,o){var s=tg(e,o);ng(s,t,n,i,a,o),ig(s,a,n,i,o);for(var l=1;r>0;r--)l*=.99,ag(s,l,o),ig(s,a,n,i,o),dg(s,l,o),ig(s,a,n,i,o)}function tg(e,t){var n=[],i="vertical"===t?"y":"x",a=Object(w["j"])(e,(function(e){return e.getLayout()[i]}));return a.keys.sort((function(e,t){return e-t})),b["each"](a.keys,(function(e){n.push(a.buckets.get(e))})),n}function ng(e,t,n,i,a,r){var o=1/0;b["each"](e,(function(e){var t=e.length,s=0;b["each"](e,(function(e){s+=e.getLayout().value}));var l="vertical"===r?(i-(t-1)*a)/s:(n-(t-1)*a)/s;l<o&&(o=l)})),b["each"](e,(function(e){b["each"](e,(function(e,t){var n=e.getLayout().value*o;"vertical"===r?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))}))})),b["each"](t,(function(e){var t=+e.getValue()*o;e.setLayout({dy:t},!0)}))}function ig(e,t,n,i,a){var r="vertical"===a?"x":"y";b["each"](e,(function(e){var o,s,l;e.sort((function(e,t){return e.getLayout()[r]-t.getLayout()[r]}));for(var c=0,u=e.length,h="vertical"===a?"dx":"dy",d=0;d<u;d++)s=e[d],l=c-s.getLayout()[r],l>0&&(o=s.getLayout()[r]+l,"vertical"===a?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),c=s.getLayout()[r]+s.getLayout()[h]+t;var p="vertical"===a?i:n;if(l=c-t-p,l>0){o=s.getLayout()[r]-l,"vertical"===a?s.setLayout({x:o},!0):s.setLayout({y:o},!0),c=o;for(d=u-2;d>=0;--d)s=e[d],l=s.getLayout()[r]+s.getLayout()[h]+t-c,l>0&&(o=s.getLayout()[r]-l,"vertical"===a?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),c=s.getLayout()[r]}}))}function ag(e,t,n){b["each"](e.slice().reverse(),(function(e){b["each"](e,(function(e){if(e.outEdges.length){var i=hg(e.outEdges,rg,n)/hg(e.outEdges,ug);if(isNaN(i)){var a=e.outEdges.length;i=a?hg(e.outEdges,og,n)/a:0}if("vertical"===n){var r=e.getLayout().x+(i-cg(e,n))*t;e.setLayout({x:r},!0)}else{var o=e.getLayout().y+(i-cg(e,n))*t;e.setLayout({y:o},!0)}}}))}))}function rg(e,t){return cg(e.node2,t)*e.getValue()}function og(e,t){return cg(e.node2,t)}function sg(e,t){return cg(e.node1,t)*e.getValue()}function lg(e,t){return cg(e.node1,t)}function cg(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function ug(e){return e.getValue()}function hg(e,t,n){var i=0,a=e.length,r=-1;while(++r<a){var o=+t(e[r],n);isNaN(o)||(i+=o)}return i}function dg(e,t,n){b["each"](e,(function(e){b["each"](e,(function(e){if(e.inEdges.length){var i=hg(e.inEdges,sg,n)/hg(e.inEdges,ug);if(isNaN(i)){var a=e.inEdges.length;i=a?hg(e.inEdges,lg,n)/a:0}if("vertical"===n){var r=e.getLayout().x+(i-cg(e,n))*t;e.setLayout({x:r},!0)}else{var o=e.getLayout().y+(i-cg(e,n))*t;e.setLayout({y:o},!0)}}}))}))}function pg(e,t){var n="vertical"===t?"x":"y";b["each"](e,(function(e){e.outEdges.sort((function(e,t){return e.node2.getLayout()[n]-t.node2.getLayout()[n]})),e.inEdges.sort((function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]}))})),b["each"](e,(function(e){var t=0,n=0;b["each"](e.outEdges,(function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy})),b["each"](e.inEdges,(function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy}))}))}function fg(e){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph(),n=t.nodes;if(n.length){var i=1/0,a=-1/0;b["each"](n,(function(e){var t=e.getLayout().value;t<i&&(i=t),t>a&&(a=t)})),b["each"](n,(function(t){var n=new xu({type:"color",mappingMethod:"linear",dataExtent:[i,a],visual:e.get("color")}),r=n.mapValueToVisual(t.getLayout().value),o=t.getModel().get(["itemStyle","color"]);null!=o?(t.setVisual("color",o),t.setVisual("style",{fill:o})):(t.setVisual("color",r),t.setVisual("style",{fill:r}))}))}}))}function gg(e){e.registerChartView(Ff),e.registerSeriesModel(Wf),e.registerLayout(Zf),e.registerVisual(fg),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))}var yg=function(){function e(){}return e.prototype.getInitialData=function(e,t){var n,i,a=t.getComponent("xAxis",this.get("xAxisIndex")),r=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=r.get("type");"category"===o?(e.layout="horizontal",n=a.getOrdinalMeta(),i=!0):"category"===s?(e.layout="vertical",n=r.getOrdinalMeta(),i=!0):e.layout=e.layout||"horizontal";var l=["x","y"],c="horizontal"===e.layout?0:1,u=this._baseAxisDim=l[c],h=l[1-c],d=[a,r],p=d[c].get("type"),f=d[1-c].get("type"),g=e.data;if(g&&i){var y=[];b["each"](g,(function(e,t){var n;b["isArray"](e)?(n=e.slice(),e.unshift(t)):b["isArray"](e.value)?(n=b["extend"]({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,y.push(n)})),e.data=y}var v=this.defaultValueDimensions,m=[{name:u,type:Object(S["a"])(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Object(S["a"])(f),dimsDef:v.slice()}];return Object($r["a"])(this,{coordDimensions:m,dimensionsCount:v.length+1,encodeDefaulter:b["curry"](L["c"],m,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),vg=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return Object(ee["a"])(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(p["b"]);Object(b["mixin"])(vg,yg,!0);var mg=vg,bg=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),a=this.group,r=this._data;this._data||a.removeAll();var o="horizontal"===e.get("layout")?1:0;i.diff(r).add((function(e){if(i.hasValue(e)){var t=i.getItemLayout(e),n=Og(t,i,e,o,!0);i.setItemGraphicEl(e,n),a.add(n)}})).update((function(e,t){var n=r.getItemGraphicEl(t);if(i.hasValue(e)){var s=i.getItemLayout(e);n?(Object(Oe["g"])(n),Sg(s,n,i,e)):n=Og(s,i,e,o),a.add(n),i.setItemGraphicEl(e,n)}else a.remove(n)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&a.remove(t)})).execute(),this._data=i},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(f["a"]),xg=function(){function e(){}return e}(),_g=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return Object(ee["a"])(t,e),t.prototype.getDefaultShape=function(){return new xg},t.prototype.buildPath=function(e,t){var n=t.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();i<n.length;i++)e.moveTo(n[i][0],n[i][1]),i++,e.lineTo(n[i][0],n[i][1])},t}(xt["b"]);function Og(e,t,n,i,a){var r=e.ends,o=new _g({shape:{points:a?wg(r,i,e):r}});return Sg(e,o,t,n,a),o}function Sg(e,t,n,i,a){var r=n.hostModel,o=_e[a?"initProps":"updateProps"];o(t,{shape:{points:e.ends}},r,i),t.useStyle(n.getItemVisual(i,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=n.getItemModel(i),l=s.getModel("emphasis");Object(X["I"])(t,s),Object(X["J"])(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function wg(e,t,n){return b["map"](e,(function(e){return e=e.slice(),e[t]=n.initBaseline,e}))}var Mg=bg;function Ig(e,t){}var jg=b["each"];function Ag(e){var t=Cg(e);jg(t,(function(e){var t=e.seriesModels;t.length&&(Tg(e),jg(t,(function(t,n){Dg(t,e.boxOffsetList[n],e.boxWidthList[n])})))}))}function Cg(e){var t=[],n=[];return e.eachSeriesByType("boxplot",(function(e){var i=e.getBaseAxis(),a=b["indexOf"](n,i);a<0&&(a=n.length,n[a]=i,t[a]={axis:i,seriesModels:[]}),t[a].seriesModels.push(e)})),t}function Tg(e){var t,n=e.axis,i=e.seriesModels,a=i.length,r=e.boxWidthList=[],o=e.boxOffsetList=[],s=[];if("category"===n.type)t=n.getBandWidth();else{var l=0;jg(i,(function(e){l=Math.max(l,e.getData().count())}));var c=n.getExtent();t=Math.abs(c[1]-c[0])/l}jg(i,(function(e){var n=e.get("boxWidth");b["isArray"](n)||(n=[n,n]),s.push([Object(be["q"])(n[0],t)||0,Object(be["q"])(n[1],t)||0])}));var u=.8*t-2,h=u/a*.3,d=(u-h*(a-1))/a,p=d/2-u/2;jg(i,(function(e,t){o.push(p),p+=h+d,r.push(Math.min(Math.max(d,s[t][0]),s[t][1]))}))}function Dg(e,t,n){var i=e.coordinateSystem,a=e.getData(),r=n/2,o="horizontal"===e.get("layout")?0:1,s=1-o,l=["x","y"],c=a.mapDimension(l[o]),u=a.mapDimensionsAll(l[s]);if(!(null==c||u.length<5))for(var h=0;h<a.count();h++){var d=a.get(c,h),p=b(d,u[2],h),f=b(d,u[0],h),g=b(d,u[1],h),y=b(d,u[3],h),v=b(d,u[4],h),m=[];x(m,g,!1),x(m,y,!0),m.push(f,g,v,y),_(m,f),_(m,v),_(m,p),a.setItemLayout(h,{initBaseline:p[s],ends:m})}function b(e,n,r){var l,c=a.get(n,r),u=[];return u[o]=e,u[s]=c,isNaN(e)||isNaN(c)?l=[NaN,NaN]:(l=i.dataToPoint(u),l[o]+=t),l}function x(e,t,n){var i=t.slice(),a=t.slice();i[o]+=r,a[o]-=r,n?e.push(i,a):e.push(a,i)}function _(e,t){var n=t.slice(),i=t.slice();n[o]-=r,i[o]+=r,e.push(n,i)}}function Lg(e,t){t=t||{};for(var n=[],i=[],a=t.boundIQR,r="none"===a||0===a,o=0;o<e.length;o++){var s=Object(be["c"])(e[o].slice()),l=Object(be["r"])(s,.25),c=Object(be["r"])(s,.5),u=Object(be["r"])(s,.75),h=s[0],d=s[s.length-1],p=(null==a?1.5:a)*(u-l),f=r?h:Math.max(h,l-p),g=r?d:Math.min(d,u+p),y=t.itemNameFormatter,v=Object(b["isFunction"])(y)?y({value:o}):Object(b["isString"])(y)?y.replace("{value}",o+""):o+"";n.push([v,f,l,c,u,g]);for(var m=0;m<s.length;m++){var x=s[m];if(x<f||x>g){var _=[v,x];i.push(_)}}}return{boxData:n,outliers:i}}var Pg={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==P["c"]){var n="";0,Object(nu["c"])(n)}var i=Lg(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function kg(e){e.registerSeriesModel(mg),e.registerChartView(Mg),e.registerVisual(Ig),e.registerLayout(Ag),e.registerTransform(Pg)}var Ng=["color","borderColor"],Rg=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){_e["traverseElements"](this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,i=this.group,a=t.getLayout("isSimpleBox"),r=e.get("clip",!0),o=e.coordinateSystem,s=o.getArea&&o.getArea();this._data||i.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var o=t.getItemLayout(n);if(r&&Bg(s,o))return;var l=zg(o,n,!0);Oe["c"](l,{shape:{points:o.ends}},e,n),Gg(l,t,n,a),i.add(l),t.setItemGraphicEl(n,l)}})).update((function(o,l){var c=n.getItemGraphicEl(l);if(t.hasValue(o)){var u=t.getItemLayout(o);r&&Bg(s,u)?i.remove(c):(c?(Oe["h"](c,{shape:{points:u.ends}},e,o),Object(Oe["g"])(c)):c=zg(u,o),Gg(c,t,o,a),i.add(c),t.setItemGraphicEl(o,c))}else i.remove(c)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),Zg(e,this.group);var t=e.get("clip",!0)?Li(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){var n,i=t.getData(),a=i.getLayout("isSimpleBox");while(null!=(n=e.next())){var r=i.getItemLayout(n),o=zg(r,n);Gg(o,i,n,a),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},t.prototype._incrementalRenderLarge=function(e,t){Zg(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(f["a"]),Eg=function(){function e(){}return e}(),Vg=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return Object(ee["a"])(t,e),t.prototype.getDefaultShape=function(){return new Eg},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(xt["b"]);function zg(e,t,n){var i=e.ends;return new Vg({shape:{points:n?Fg(i,e):i},z2:100})}function Bg(e,t){for(var n=!0,i=0;i<t.ends.length;i++)if(e.contain(t.ends[i][0],t.ends[i][1])){n=!1;break}return n}function Gg(e,t,n,i){var a=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=i,Object(X["I"])(e,a)}function Fg(e,t){return b["map"](e,(function(e){return e=e.slice(),e[1]=t.initBaseline,e}))}var Hg=function(){function e(){}return e}(),Wg=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeCandlestickBox",n}return Object(ee["a"])(t,e),t.prototype.getDefaultShape=function(){return new Hg},t.prototype.buildPath=function(e,t){for(var n=t.points,i=0;i<n.length;)if(this.__sign===n[i++]){var a=n[i++];e.moveTo(a,n[i++]),e.lineTo(a,n[i++])}else i+=3},t}(xt["b"]);function Zg(e,t,n,i){var a=e.getData(),r=a.getLayout("largePoints"),o=new Wg({shape:{points:r},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new Wg({shape:{points:r},__sign:-1,ignoreCoarsePointer:!0});t.add(s),Yg(1,o,e,a),Yg(-1,s,e,a),i&&(o.incremental=!0,s.incremental=!0),n&&n.push(o,s)}function Yg(e,t,n,i){var a=n.get(["itemStyle",e>0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]),r=n.getModel("itemStyle").getItemStyle(Ng);t.useStyle(r),t.style.fill=null,t.style.stroke=a}var Xg=Rg,Ug=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return Object(ee["a"])(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var i=t.getItemLayout(e);return i&&n.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(p["b"]);Object(b["mixin"])(Ug,yg,!0);var qg=Ug;function Jg(e){e&&b["isArray"](e.series)&&b["each"](e.series,(function(e){b["isObject"](e)&&"k"===e.type&&(e.type="candlestick")}))}var Kg=["itemStyle","borderColor"],$g=["itemStyle","borderColor0"],Qg=["itemStyle","color"],ey=["itemStyle","color0"],ty={seriesType:"candlestick",plan:Object(Qi["a"])(),performRawSeries:!0,reset:function(e,t){function n(e,t){return t.get(e>0?Qg:ey)}function i(e,t){return t.get(e>0?Kg:$g)}if(!t.isSeriesFiltered(e)){var a=e.pipelineContext.large;return!a&&{progress:function(e,t){var a;while(null!=(a=e.next())){var r=t.getItemModel(a),o=t.getItemLayout(a).sign,s=r.getItemStyle();s.fill=n(o,r),s.stroke=i(o,r)||s.fill;var l=t.ensureUniqueItemVisual(a,"style");Object(b["extend"])(l,s)}}}}}},ny=ty,iy={seriesType:"candlestick",plan:Object(Qi["a"])(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),i=ry(e,n),a=0,r=1,o=["x","y"],s=n.getDimensionIndex(n.mapDimension(o[a])),l=Object(b["map"])(n.mapDimensionsAll(o[r]),n.getDimensionIndex,n),c=l[0],u=l[1],h=l[2],d=l[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(s<0||l.length<4))return{progress:e.pipelineContext.large?f:p};function p(e,n){var o,l=n.getStore();while(null!=(o=e.next())){var p=l.get(s,o),f=l.get(c,o),g=l.get(u,o),y=l.get(h,o),v=l.get(d,o),m=Math.min(f,g),b=Math.max(f,g),x=M(m,p),_=M(b,p),O=M(y,p),S=M(v,p),w=[];I(w,_,0),I(w,x,1),w.push(A(S),A(_),A(O),A(x)),n.setItemLayout(o,{sign:ay(l,o,f,g,u),initBaseline:f>g?_[r]:x[r],ends:w,brushRect:j(y,v,p)})}function M(e,n){var i=[];return i[a]=n,i[r]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(i)}function I(e,t,n){var r=t.slice(),o=t.slice();r[a]=Object(_e["subPixelOptimize"])(r[a]+i/2,1,!1),o[a]=Object(_e["subPixelOptimize"])(o[a]-i/2,1,!0),n?e.push(r,o):e.push(o,r)}function j(e,t,n){var o=M(e,n),s=M(t,n);return o[a]-=i/2,s[a]-=i/2,{x:o[0],y:o[1],width:r?i:s[0]-o[0],height:r?s[1]-o[1]:i}}function A(e){return e[a]=Object(_e["subPixelOptimize"])(e[a],1),e}}function f(e,n){var i,o,l=Object(mi["a"])(4*e.count),p=0,f=[],g=[],y=n.getStore();while(null!=(o=e.next())){var v=y.get(s,o),m=y.get(c,o),b=y.get(u,o),x=y.get(h,o),_=y.get(d,o);isNaN(v)||isNaN(x)||isNaN(_)?(l[p++]=NaN,p+=3):(l[p++]=ay(y,o,m,b,u),f[a]=v,f[r]=x,i=t.dataToPoint(f,null,g),l[p++]=i?i[0]:NaN,l[p++]=i?i[1]:NaN,f[r]=_,i=t.dataToPoint(f,null,g),l[p++]=i?i[1]:NaN)}n.setLayout("largePoints",l)}}};function ay(e,t,n,i,a){var r;return r=n>i?-1:n<i?1:t>0?e.get(a,t-1)<=i?1:-1:1,r}function ry(e,t){var n,i=e.getBaseAxis(),a="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/t.count()),r=Object(be["q"])(Object(b["retrieve2"])(e.get("barMaxWidth"),a),a),o=Object(be["q"])(Object(b["retrieve2"])(e.get("barMinWidth"),1),a),s=e.get("barWidth");return null!=s?Object(be["q"])(s,a):Math.max(Math.min(a/2,r),o)}var oy=iy;function sy(e){e.registerChartView(Xg),e.registerSeriesModel(qg),e.registerPreprocessor(Jg),e.registerVisual(ny),e.registerLayout(oy)}function ly(e,t){var n=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})}))}var cy=function(e){function t(t,n){var i=e.call(this)||this,a=new ci(t,n),r=new Se["a"];return i.add(a),i.add(r),i.updateData(t,n),i}return Object(ee["a"])(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,i=e.rippleNumber,a=this.childAt(1),r=0;r<i;r++){var o=Object(Y["a"])(t,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-r/i*e.period+e.effectOffset;o.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(s).start(),o.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),a.add(o)}ly(a,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],a=0;a<i.length;a++){var r=i[a];if(t[r]!==e[r])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}ly(n,e)},t.prototype.highlight=function(){Object(X["r"])(this)},t.prototype.downplay=function(){Object(X["C"])(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,t){var n=this,i=e.hostModel;this.childAt(0).updateData(e,t);var a=this.childAt(1),r=e.getItemModel(t),o=e.getItemVisual(t,"symbol"),s=Object(Y["c"])(e.getItemVisual(t,"symbolSize")),l=e.getItemVisual(t,"style"),c=l&&l.fill,u=r.getModel("emphasis");a.setScale(s),a.traverse((function(e){e.setStyle("fill",c)}));var h=Object(Y["b"])(e.getItemVisual(t,"symbolOffset"),s);h&&(a.x=h[0],a.y=h[1]);var d=e.getItemVisual(t,"symbolRotate");a.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=r.get(["rippleEffect","scale"]),p.brushType=r.get(["rippleEffect","brushType"]),p.period=1e3*r.get(["rippleEffect","period"]),p.effectOffset=t/e.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=o,p.color=c,p.rippleEffectColor=r.get(["rippleEffect","color"]),p.rippleNumber=r.get(["rippleEffect","number"]),"render"===p.showEffectOn?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){"emphasis"===e?"render"!==p.showEffectOn&&n.startEffectAnimation(p):"normal"===e&&"render"!==p.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=p,Object(X["J"])(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(Se["a"]),uy=cy,hy=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.init=function(){this._symbolDraw=new fi(uy)},t.prototype.render=function(e,t,n){var i=e.getData(),a=this._symbolDraw;a.updateData(i,{clipShape:this._getClipShape(e)}),this.group.add(a.group)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype.updateTransform=function(e,t,n){var i=e.getData();this.group.dirty();var a=ea("").reset(e,t,n);a.progress&&a.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=v["clone"](t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(f["a"]),dy=hy,py=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(ee["a"])(t,e),t.prototype.getInitialData=function(e,t){return z(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(p["b"]),fy=py;function gy(e){e.registerChartView(dy),e.registerSeriesModel(fy),e.registerLayout(ea("effectScatter"))}var yy=function(e){function t(t,n,i){var a=e.call(this)||this;return a.add(a.createLine(t,n,i)),a._updateEffectSymbol(t,n),a}return Object(ee["a"])(t,e),t.prototype.createLine=function(e,t,n){return new Fh(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t),i=n.getModel("effect"),a=i.get("symbolSize"),r=i.get("symbol");b["isArray"](a)||(a=[a,a]);var o=e.getItemVisual(t,"style"),s=i.get("color")||o&&o.stroke,l=this.childAt(1);this._symbolType!==r&&(this.remove(l),l=Object(Y["a"])(r,-.5,-.5,1,1,s),l.z2=100,l.culling=!0,this.add(l)),l&&(l.setStyle("shadowColor",s),l.setStyle(i.getItemStyle(["color"])),l.scaleX=a[0],l.scaleY=a[1],l.setColor(s),this._symbolType=r,this._symbolScale=a,this._updateEffectAnimation(e,i,t))},t.prototype._updateEffectAnimation=function(e,t,n){var i=this.childAt(1);if(i){var a=e.getItemLayout(n),r=1e3*t.get("period"),o=t.get("loop"),s=t.get("roundTrip"),l=t.get("constantSpeed"),c=b["retrieve"](t.get("delay"),(function(t){return t/e.count()*r/3}));if(i.ignore=!0,this._updateAnimationPoints(i,a),l>0&&(r=this._getLineLength(i)/l*1e3),r!==this._period||o!==this._loop||s!==this._roundTrip){i.stopAnimation();var u=void 0;u=b["isFunction"](c)?c(n):c,i.__t>0&&(u=-r*i.__t),this._animateSymbol(i,r,u,o,s)}this._period=r,this._loop=o,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,n,i,a){if(t>0){e.__t=0;var r=this,o=e.animate("",i).when(a?2*t:t,{__t:a?2:1}).delay(n).during((function(){r._updateSymbolPosition(e)}));i||o.done((function(){r.remove(e)})),o.start()}},t.prototype._getLineLength=function(e){return m["dist"](e.__p1,e.__cp1)+m["dist"](e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,i=e.__cp1,a=e.__t<1?e.__t:2-e.__t,r=[e.x,e.y],o=r.slice(),s=_i["h"],l=_i["i"];r[0]=s(t[0],i[0],n[0],a),r[1]=s(t[1],i[1],n[1],a);var c=e.__t<1?l(t[0],i[0],n[0],a):l(n[0],i[0],t[0],1-a),u=e.__t<1?l(t[1],i[1],n[1],a):l(n[1],i[1],t[1],1-a);e.rotation=-Math.atan2(u,c)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT<e.__t?(e.scaleY=1.05*m["dist"](o,r),1===a&&(r[0]=o[0]+(r[0]-o[0])/2,r[1]=o[1]+(r[1]-o[1])/2)):1===e.__lastT?e.scaleY=2*m["dist"](t,r):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=r[0],e.y=r[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,n,t)},t}(Se["a"]),vy=yy,my=function(e){function t(t,n,i){var a=e.call(this)||this;return a._createPolyline(t,n,i),a}return Object(ee["a"])(t,e),t.prototype._createPolyline=function(e,t,n){var i=e.getItemLayout(t),a=new De["a"]({shape:{points:i}});this.add(a),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var i=e.hostModel,a=this.childAt(0),r={shape:{points:e.getItemLayout(t)}};Oe["h"](a,r,i,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var i=this.childAt(0),a=e.getItemModel(t),r=n&&n.emphasisLineStyle,o=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var c=a.getModel("emphasis");r=c.getModel("lineStyle").getLineStyle(),l=c.get("disabled"),o=c.get("focus"),s=c.get("blurScope")}i.useStyle(e.getItemVisual(t,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var u=i.ensureState("emphasis");u.style=r,Object(X["J"])(this,o,s,l)},t.prototype.updateLayout=function(e,t){var n=this.childAt(0);n.setShape("points",e.getItemLayout(t))},t}(Se["a"]),by=my,xy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return Object(ee["a"])(t,e),t.prototype.createLine=function(e,t,n){return new by(e,t,n)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],i=0,a=1;a<t.length;a++){var r=t[a-1],o=t[a];i+=m["dist"](r,o),n.push(i)}if(0!==i){for(a=0;a<n.length;a++)n[a]/=i;this._offsets=n,this._length=i}else this._length=0},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var t=e.__t<1?e.__t:2-e.__t,n=this._points,i=this._offsets,a=n.length;if(i){var r,o=this._lastFrame;if(t<this._lastFramePercent){var s=Math.min(o+1,a-1);for(r=s;r>=0;r--)if(i[r]<=t)break;r=Math.min(r,a-2)}else{for(r=o;r<a;r++)if(i[r]>t)break;r=Math.min(r-1,a-2)}var l=(t-i[r])/(i[r+1]-i[r]),c=n[r],u=n[r+1];e.x=c[0]*(1-l)+l*u[0],e.y=c[1]*(1-l)+l*u[1];var h=e.__t<1?u[0]-c[0]:c[0]-u[0],d=e.__t<1?u[1]-c[1]:c[1]-u[1];e.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=r,this._lastFramePercent=t,e.ignore=!1}},t}(vy),_y=xy,Oy=n("9680"),Sy=n("68ab"),wy=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),My=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return Object(ee["a"])(t,e),t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new wy},t.prototype.buildPath=function(e,t){var n,i=t.segs,a=t.curveness;if(t.polyline)for(n=this._off;n<i.length;){var r=i[n++];if(r>0){e.moveTo(i[n++],i[n++]);for(var o=1;o<r;o++)e.lineTo(i[n++],i[n++])}}else for(n=this._off;n<i.length;){var s=i[n++],l=i[n++],c=i[n++],u=i[n++];if(e.moveTo(s,l),a>0){var h=(s+c)/2-(l-u)*a,d=(l+u)/2-(c-s)*a;e.quadraticCurveTo(h,d,c,u)}else e.lineTo(c,u)}this.incremental&&(this._off=n,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,i=n.segs,a=n.curveness,r=this.style.lineWidth;if(n.polyline)for(var o=0,s=0;s<i.length;){var l=i[s++];if(l>0)for(var c=i[s++],u=i[s++],h=1;h<l;h++){var d=i[s++],p=i[s++];if(Oy["a"](c,u,d,p,r,e,t))return o}o++}else for(o=0,s=0;s<i.length;){c=i[s++],u=i[s++],d=i[s++],p=i[s++];if(a>0){var f=(c+d)/2-(u-p)*a,g=(u+p)/2-(d-c)*a;if(Sy["a"](c,u,f,g,d,p,r,e,t))return o}else if(Oy["a"](c,u,d,p,r,e,t))return o;o++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();if(e=n[0],t=n[1],i.contain(e,t)){var a=this.hoverDataIdx=this.findDataIndex(e,t);return a>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.segs,i=1/0,a=1/0,r=-1/0,o=-1/0,s=0;s<n.length;){var l=n[s++],c=n[s++];i=Math.min(l,i),r=Math.max(l,r),a=Math.min(c,a),o=Math.max(c,o)}e=this._rect=new te["a"](i,a,r,o)}return e},t}(xt["b"]),Iy=function(){function e(){this.group=new Se["a"]}return e.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],i=t.getLayout("linesPoints"),a=n&&n.shape.segs;if(a&&a.length<2e4){var r=a.length,o=new Float32Array(r+i.length);o.set(a),o.set(i,r),n.setShape({segs:o})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:i}),this._setCommon(s,t),s.__startIndex=e.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new My({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},e.prototype._setCommon=function(e,t,n){var i=t.hostModel;e.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),e.useStyle(i.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var a=t.getVisual("style");a&&a.stroke&&e.setStyle("stroke",a.stroke),e.setStyle("fill",null);var r=Object(W["a"])(e);r.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){r.dataIndex=null;var n=e.hoverDataIdx;n>0&&(r.dataIndex=n+e.__startIndex)}))},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),jy=Iy,Ay={seriesType:"lines",plan:Object(Qi["a"])(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),i=e.pipelineContext.large;return{progress:function(a,r){var o=[];if(i){var s=void 0,l=a.end-a.start;if(n){for(var c=0,u=a.start;u<a.end;u++)c+=e.getLineCoordsCount(u);s=new Float32Array(l+2*c)}else s=new Float32Array(4*l);var h=0,d=[];for(u=a.start;u<a.end;u++){var p=e.getLineCoords(u,o);n&&(s[h++]=p);for(var f=0;f<p;f++)d=t.dataToPoint(o[f],!1,d),s[h++]=d[0],s[h++]=d[1]}r.setLayout("linesPoints",s)}else for(u=a.start;u<a.end;u++){var g=r.getItemModel(u),y=(p=e.getLineCoords(u,o),[]);if(n)for(var v=0;v<p;v++)y.push(t.dataToPoint(o[v]));else{y[0]=t.dataToPoint(o[0]),y[1]=t.dataToPoint(o[1]);var m=g.get(["lineStyle","curveness"]);+m&&(y[2]=[(y[0][0]+y[1][0])/2-(y[0][1]-y[1][1])*m,(y[0][1]+y[1][1])/2-(y[1][0]-y[0][0])*m])}r.setItemLayout(u,y)}}}}}},Cy=Ay,Ty=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),a=this._updateLineDraw(i,e),r=e.get("zlevel"),o=e.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(r).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&o>0&&(l||s.configLayer(r,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)})),a.updateData(i);var c=e.get("clip",!0)&&Li(e.coordinateSystem,!1,e);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=r,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData(),a=this._updateLineDraw(i,e);a.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var i=e.getData(),a=e.pipelineContext;if(!this._finished||a.large||a.progressiveRender)return{update:!0};var r=Cy.reset(e,t,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,i=this._showEffect(t),a=!!t.get("polyline"),r=t.pipelineContext,o=r.large;return n&&i===this._hasEffet&&a===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new jy:new Uh(a?i?_y:by:i?vy:Fh),this._hasEffet=i,this._isPolyline=a,this._isLargeDraw=o),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr(),n="svg"===t.painter.getType();n||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type="lines",t}(f["a"]),Dy=Ty,Ly="undefined"===typeof Uint32Array?Array:Uint32Array,Py="undefined"===typeof Float64Array?Array:Float64Array;function ky(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Object(b["map"])(t,(function(e){var t=[e[0].coord,e[1].coord],n={coords:t};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),Object(b["mergeAll"])([n,e[0],e[1]])})))}var Ny=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return Object(ee["a"])(t,e),t.prototype.init=function(t){t.data=t.data||[],ky(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(ky(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=Object(b["concatArray"])(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Object(b["concatArray"])(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e),n=t.option instanceof Array?t.option:t.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],i=this._flatCoordsOffset[2*e+1],a=0;a<i;a++)t[a]=t[a]||[],t[a][0]=this._flatCoords[n+2*a],t[a][1]=this._flatCoords[n+2*a+1];return i}var r=this._getCoordsFromItemModel(e);for(a=0;a<r.length;a++)t[a]=t[a]||[],t[a][0]=r[a][0],t[a][1]=r[a][1];return r.length},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),Object(b["isNumber"])(e[0])){for(var n=e.length,i=new Ly(n),a=new Py(n),r=0,o=0,s=0,l=0;l<n;){s++;var c=e[l++];i[o++]=r+t,i[o++]=c;for(var u=0;u<c;u++){var h=e[l++],d=e[l++];a[r++]=h,a[r++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,o),flatCoords:a,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){var n=new g["a"](["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],(function(e,t,i,a){if(e instanceof Array)return NaN;n.hasItemOption=!0;var r=e.value;return null!=r?r instanceof Array?r[a]:r:void 0})),n},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),a=i.getItemModel(e),r=a.get("name");if(r)return r;var o=a.get("fromName"),s=a.get("toName"),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),Object(eo["c"])("nameValue",{name:l.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),t=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&t>0?t+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(p["b"]),Ry=Ny;function Ey(e){return e instanceof Array||(e=[e,e]),e}var Vy={seriesType:"lines",reset:function(e){var t=Ey(e.get("symbol")),n=Ey(e.get("symbolSize")),i=e.getData();function a(e,t){var n=e.getItemModel(t),i=Ey(n.getShallow("symbol",!0)),a=Ey(n.getShallow("symbolSize",!0));i[0]&&e.setItemVisual(t,"fromSymbol",i[0]),i[1]&&e.setItemVisual(t,"toSymbol",i[1]),a[0]&&e.setItemVisual(t,"fromSymbolSize",a[0]),a[1]&&e.setItemVisual(t,"toSymbolSize",a[1])}return i.setVisual("fromSymbol",t&&t[0]),i.setVisual("toSymbol",t&&t[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?a:null}}},zy=Vy;function By(e){e.registerChartView(Dy),e.registerSeriesModel(Ry),e.registerLayout(Cy),e.registerVisual(zy)}var Gy=256,Fy=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Q["d"].createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,i,a,r){var o=this._getBrush(),s=this._getGradient(a,"inRange"),l=this._getGradient(a,"outOfRange"),c=this.pointSize+this.blurSize,u=this.canvas,h=u.getContext("2d"),d=e.length;u.width=t,u.height=n;for(var p=0;p<d;++p){var f=e[p],g=f[0],y=f[1],v=f[2],m=i(v);h.globalAlpha=m,h.drawImage(o,g-c,y-c)}if(!u.width||!u.height)return u;var b=h.getImageData(0,0,u.width,u.height),x=b.data,_=0,O=x.length,S=this.minOpacity,w=this.maxOpacity,M=w-S;while(_<O){m=x[_+3]/256;var I=4*Math.floor(m*(Gy-1));if(m>0){var j=r(m)?s:l;m>0&&(m=m*M+S),x[_++]=j[I],x[_++]=j[I+1],x[_++]=j[I+2],x[_++]=j[I+3]*m*256}else _+=4}return h.putImageData(b,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Q["d"].createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var i=e.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,i=n[t]||(n[t]=new Uint8ClampedArray(1024)),a=[0,0,0,0],r=0,o=0;o<256;o++)e[t](o/255,!0,a),i[r++]=a[0],i[r++]=a[1],i[r++]=a[2],i[r++]=a[3];return i},e}(),Hy=Fy;function Wy(e,t,n){var i=e[1]-e[0];t=b["map"](t,(function(t){return{interval:[(t.interval[0]-e[0])/i,(t.interval[1]-e[0])/i]}}));var a=t.length,r=0;return function(e){var i;for(i=r;i<a;i++){var o=t[i].interval;if(o[0]<=e&&e<=o[1]){r=i;break}}if(i===a)for(i=r-1;i>=0;i--){o=t[i].interval;if(o[0]<=e&&e<=o[1]){r=i;break}}return i>=0&&i<a&&n[i]}}function Zy(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}function Yy(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var Xy=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.render=function(e,t,n){var i;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(i=t)}))})),this._progressiveEls=null,this.group.removeAll();var a=e.coordinateSystem;"cartesian2d"===a.type||"calendar"===a.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):Yy(a)&&this._renderOnGeo(a,e,i,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,i){var a=t.coordinateSystem;a&&(Yy(a)?this.render(t,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){_e["traverseElements"](this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,i,a){var r,o,s,l,c=e.coordinateSystem,u=Pi(c,"cartesian2d");if(u){var h=c.getAxis("x"),d=c.getAxis("y");0,r=h.getBandWidth()+.5,o=d.getBandWidth()+.5,s=h.scale.getExtent(),l=d.scale.getExtent()}for(var p=this.group,f=e.getData(),g=e.getModel(["emphasis","itemStyle"]).getItemStyle(),y=e.getModel(["blur","itemStyle"]).getItemStyle(),v=e.getModel(["select","itemStyle"]).getItemStyle(),m=e.get(["itemStyle","borderRadius"]),b=Object(Z["e"])(e),x=e.getModel("emphasis"),_=x.get("focus"),O=x.get("blurScope"),S=x.get("disabled"),w=u?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],M=n;M<i;M++){var I=void 0,j=f.getItemVisual(M,"style");if(u){var A=f.get(w[0],M),C=f.get(w[1],M);if(isNaN(f.get(w[2],M))||A<s[0]||A>s[1]||C<l[0]||C>l[1])continue;var T=c.dataToPoint([A,C]);I=new Le["a"]({shape:{x:T[0]-r/2,y:T[1]-o/2,width:r,height:o},style:j})}else{if(isNaN(f.get(w[1],M)))continue;I=new Le["a"]({z2:1,shape:c.dataToRect([f.get(w[0],M)]).contentShape,style:j})}if(f.hasItemOption){var D=f.getItemModel(M),L=D.getModel("emphasis");g=L.getModel("itemStyle").getItemStyle(),y=D.getModel(["blur","itemStyle"]).getItemStyle(),v=D.getModel(["select","itemStyle"]).getItemStyle(),m=D.get(["itemStyle","borderRadius"]),_=L.get("focus"),O=L.get("blurScope"),S=L.get("disabled"),b=Object(Z["e"])(D)}I.shape.r=m;var P=e.getRawValue(M),k="-";P&&null!=P[2]&&(k=P[2]+""),Object(Z["g"])(I,b,{labelFetcher:e,labelDataIndex:M,defaultOpacity:j.opacity,defaultText:k}),I.ensureState("emphasis").style=g,I.ensureState("blur").style=y,I.ensureState("select").style=v,Object(X["J"])(I,_,O,S),I.incremental=a,a&&(I.states.emphasis.hoverLayer=!0),p.add(I),f.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},t.prototype._renderOnGeo=function(e,t,n,i){var a=n.targetVisuals.inRange,r=n.targetVisuals.outOfRange,o=t.getData(),s=this._hmLayer||this._hmLayer||new Hy;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var l=e.getViewRect().clone(),c=e.getRoamTransform();l.applyTransform(c);var u=Math.max(l.x,0),h=Math.max(l.y,0),d=Math.min(l.width+l.x,i.getWidth()),p=Math.min(l.height+l.y,i.getHeight()),f=d-u,g=p-h,y=[o.mapDimension("lng"),o.mapDimension("lat"),o.mapDimension("value")],v=o.mapArray(y,(function(t,n,i){var a=e.dataToPoint([t,n]);return a[0]-=u,a[1]-=h,a.push(i),a})),m=n.getExtent(),b="visualMap.continuous"===n.type?Zy(m,n.option.range):Wy(m,n.getPieceList(),n.option.selected);s.update(v,f,g,a.color.getNormalizer(),{inRange:a.color.getColorMapper(),outOfRange:r.color.getColorMapper()},b);var x=new we["a"]({style:{width:f,height:g,x:u,y:h,image:s.canvas},silent:!0});this.group.add(x)},t.type="heatmap",t}(f["a"]),Uy=Xy,qy=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.getInitialData=function(e,t){return z(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=M["a"].get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(p["b"]),Jy=qy;function Ky(e){e.registerChartView(Uy),e.registerSeriesModel(Jy)}var $y=["itemStyle","borderWidth"],Qy=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],ev=new Ie["a"],tv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.render=function(e,t,n){var i=this.group,a=e.getData(),r=this._data,o=e.coordinateSystem,s=o.getBaseAxis(),l=s.isHorizontal(),c=o.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:o,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:l,valueDim:Qy[+l],categoryDim:Qy[1-+l]};return a.diff(r).add((function(e){if(a.hasValue(e)){var t=pv(a,e),n=nv(a,e,t,u),r=yv(a,u,n);a.setItemGraphicEl(e,r),i.add(r),Ov(r,u,n)}})).update((function(e,t){var n=r.getItemGraphicEl(t);if(a.hasValue(e)){var o=pv(a,e),s=nv(a,e,o,u),l=bv(a,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),a.setItemGraphicEl(e,null),n=null),n?vv(n,u,s):n=yv(a,u,s,!0),a.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,i.add(n),Ov(n,u,s)}else i.remove(n)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&mv(r,e,t.__pictorialSymbolMeta.animationModel,t)})).execute(),this._data=a,this.group},t.prototype.remove=function(e,t){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl((function(t){mv(i,Object(W["a"])(t).dataIndex,e,t)})):n.removeAll()},t.type="pictorialBar",t}(f["a"]);function nv(e,t,n,i){var a=e.getItemLayout(t),r=n.get("symbolRepeat"),o=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),c=(l||0)*Math.PI/180||0,u=n.get("symbolPatternSize")||2,h=n.isAnimationEnabled(),d={dataIndex:t,layout:a,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:r,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:c,animationModel:h?n:null,hoverScale:h&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};iv(n,r,a,i,d),rv(e,t,a,r,o,d.boundingLength,d.pxSign,u,i,d),ov(n,d.symbolScale,c,i,d);var p=d.symbolSize,f=Object(Y["b"])(n.get("symbolOffset"),p);return sv(n,p,a,r,o,f,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,i,d),d}function iv(e,t,n,i,a){var r,o=i.valueDim,s=e.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),c=l.toGlobalCoord(l.dataToCoord(0)),u=1-+(n[o.wh]<=0);if(b["isArray"](s)){var h=[av(l,s[0])-c,av(l,s[1])-c];h[1]<h[0]&&h.reverse(),r=h[u]}else r=null!=s?av(l,s)-c:t?i.coordSysExtent[o.index][u]-c:n[o.wh];a.boundingLength=r,t&&(a.repeatCutLength=n[o.wh]),a.pxSign=r>0?1:-1}function av(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function rv(e,t,n,i,a,r,o,s,l,c){var u,h=l.valueDim,d=l.categoryDim,p=Math.abs(n[d.wh]),f=e.getItemVisual(t,"symbolSize");u=b["isArray"](f)?f.slice():null==f?["100%","100%"]:[f,f],u[d.index]=Object(be["q"])(u[d.index],p),u[h.index]=Object(be["q"])(u[h.index],i?p:Math.abs(r)),c.symbolSize=u;var g=c.symbolScale=[u[0]/s,u[1]/s];g[h.index]*=(l.isHorizontal?-1:1)*o}function ov(e,t,n,i,a){var r=e.get($y)||0;r&&(ev.attr({scaleX:t[0],scaleY:t[1],rotation:n}),ev.updateTransform(),r/=ev.getLineScale(),r*=t[i.valueDim.index]),a.valueLineWidth=r||0}function sv(e,t,n,i,a,r,o,s,l,c,u,h){var d=u.categoryDim,p=u.valueDim,f=h.pxSign,g=Math.max(t[p.index]+s,0),y=g;if(i){var v=Math.abs(l),m=b["retrieve"](e.get("symbolMargin"),"15%")+"",x=!1;m.lastIndexOf("!")===m.length-1&&(x=!0,m=m.slice(0,m.length-1));var _=Object(be["q"])(m,t[p.index]),O=Math.max(g+2*_,0),S=x?0:2*_,w=Object(be["k"])(i),M=w?i:Sv((v+S)/O),I=v-M*g;_=I/2/(x?M:Math.max(M-1,1)),O=g+2*_,S=x?0:2*_,w||"fixed"===i||(M=c?Sv((Math.abs(c)+S)/O):0),y=M*O-S,h.repeatTimes=M,h.symbolMargin=_}var j=f*(y/2),A=h.pathPosition=[];A[d.index]=n[d.wh]/2,A[p.index]="start"===o?j:"end"===o?l-j:l/2,r&&(A[0]+=r[0],A[1]+=r[1]);var C=h.bundlePosition=[];C[d.index]=n[d.xy],C[p.index]=n[p.xy];var T=h.barRectShape=b["extend"]({},n);T[p.wh]=f*Math.max(Math.abs(n[p.wh]),Math.abs(A[p.index]+j)),T[d.wh]=n[d.wh];var D=h.clipShape={};D[d.xy]=-n[d.xy],D[d.wh]=u.ecSize[d.wh],D[p.xy]=0,D[p.wh]=n[p.wh]}function lv(e){var t=e.symbolPatternSize,n=Object(Y["a"])(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function cv(e,t,n,i){var a=e.__pictorialBundle,r=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,c=n.repeatTimes||0,u=0,h=r[t.valueDim.index]+o+2*n.symbolMargin;for(xv(e,(function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=c,u<c?_v(e,null,f(u),n,i):_v(e,null,{scaleX:0,scaleY:0},n,i,(function(){a.remove(e)})),u++}));u<c;u++){var d=lv(n);d.__pictorialAnimationIndex=u,d.__pictorialRepeatTimes=c,a.add(d);var p=f(u);_v(d,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,i)}function f(e){var t=s.slice(),i=n.pxSign,a=e;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(a=c-1-e),t[l.index]=h*(a-c/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function uv(e,t,n,i){var a=e.__pictorialBundle,r=e.__pictorialMainPath;r?_v(r,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(r=e.__pictorialMainPath=lv(n),a.add(r),_v(r,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function hv(e,t,n){var i=b["extend"]({},t.barRectShape),a=e.__pictorialBarRect;a?_v(a,null,{shape:i},t,n):(a=e.__pictorialBarRect=new Le["a"]({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,e.add(a))}function dv(e,t,n,i){if(n.symbolClip){var a=e.__pictorialClipPath,r=b["extend"]({},n.clipShape),o=t.valueDim,s=n.animationModel,l=n.dataIndex;if(a)Oe["h"](a,{shape:r},s,l);else{r[o.wh]=0,a=new Le["a"]({shape:r}),e.__pictorialBundle.setClipPath(a),e.__pictorialClipPath=a;var c={};c[o.wh]=n.clipShape[o.wh],_e[i?"updateProps":"initProps"](a,{shape:c},s,l)}}}function pv(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=fv,n.isAnimationEnabled=gv,n}function fv(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function gv(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function yv(e,t,n,i){var a=new Se["a"],r=new Se["a"];return a.add(r),a.__pictorialBundle=r,r.x=n.bundlePosition[0],r.y=n.bundlePosition[1],n.symbolRepeat?cv(a,t,n):uv(a,t,n),hv(a,n,i),dv(a,t,n,i),a.__pictorialShapeStr=bv(e,n),a.__pictorialSymbolMeta=n,a}function vv(e,t,n){var i=n.animationModel,a=n.dataIndex,r=e.__pictorialBundle;Oe["h"](r,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,a),n.symbolRepeat?cv(e,t,n,!0):uv(e,t,n,!0),hv(e,n,!0),dv(e,t,n,!0)}function mv(e,t,n,i){var a=i.__pictorialBarRect;a&&a.removeTextContent();var r=[];xv(i,(function(e){r.push(e)})),i.__pictorialMainPath&&r.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),b["each"](r,(function(e){Oe["e"](e,{scaleX:0,scaleY:0},n,t,(function(){i.parent&&i.parent.remove(i)}))})),e.setItemGraphicEl(t,null)}function bv(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function xv(e,t,n){b["each"](e.__pictorialBundle.children(),(function(i){i!==e.__pictorialBarRect&&t.call(n,i)}))}function _v(e,t,n,i,a,r){t&&e.attr(t),i.symbolClip&&!a?n&&e.attr(n):n&&_e[a?"updateProps":"initProps"](e,n,i.animationModel,i.dataIndex,r)}function Ov(e,t,n){var i=n.dataIndex,a=n.itemModel,r=a.getModel("emphasis"),o=r.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),c=a.getShallow("cursor"),u=r.get("focus"),h=r.get("blurScope"),d=r.get("scale");xv(e,(function(e){if(e instanceof we["a"]){var t=e.style;e.useStyle(b["extend"]({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var i=e.ensureState("emphasis");i.style=o,d&&(i.scaleX=1.1*e.scaleX,i.scaleY=1.1*e.scaleY),e.ensureState("blur").style=s,e.ensureState("select").style=l,c&&(e.cursor=c),e.z2=n.z2}));var p=t.valueDim.posDesc[+(n.boundingLength>0)],f=e.__pictorialBarRect;Object(Z["g"])(f,Object(Z["e"])(a),{labelFetcher:t.seriesModel,labelDataIndex:i,defaultText:ri(t.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),Object(X["J"])(e,u,h,r.get("disabled"))}function Sv(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var wv=tv,Mv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return Object(ee["a"])(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Object(la["d"])(sa.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(sa),Iv=Mv;function jv(e){e.registerChartView(wv),e.registerSeriesModel(Iv),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Object(b["curry"])(ra["c"],"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Object(ra["a"])("pictorialBar"))}var Av=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return Object(ee["a"])(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),a=this,r=this.group,o=e.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,c=s.boundaryGap;function u(e){return e.name}r.x=0,r.y=l.y+c[0];var h=new Cc["a"](this._layersSeries||[],o,u,u),d=[];function p(t,n,s){var l=a._layers;if("remove"!==t){for(var c,u,h=[],p=[],f=o[n].indices,g=0;g<f.length;g++){var y=i.getItemLayout(f[g]),v=y.x,m=y.y0,b=y.y;h.push(v,m),p.push(v,m+b),c=i.getItemVisual(f[g],"style")}var x=i.getItemLayout(f[0]),_=e.getModel("label"),O=_.get("margin"),S=e.getModel("emphasis");if("add"===t){var w=d[n]=new Se["a"];u=new Ci({shape:{points:h,stackedOnPoints:p,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),w.add(u),r.add(w),e.isAnimationEnabled()&&u.setClipPath(Cv(u.getBoundingRect(),e,(function(){u.removeClipPath()})))}else{w=l[s];u=w.childAt(0),r.add(w),d[n]=w,Oe["h"](u,{shape:{points:h,stackedOnPoints:p}},e),Object(Oe["g"])(u)}Object(Z["g"])(u,Object(Z["e"])(e),{labelDataIndex:f[g-1],defaultText:i.getName(f[g-1]),inheritColor:c.fill},{normal:{verticalAlign:"middle"}}),u.setTextConfig({position:null,local:!0});var M=u.getTextContent();M&&(M.x=x.x-O,M.y=x.y0+x.y/2),u.useStyle(c),i.setItemGraphicEl(n,u),Object(X["I"])(u,e),Object(X["J"])(u,S.get("focus"),S.get("blurScope"),S.get("disabled"))}else r.remove(l[n])}h.add(Object(b["bind"])(p,this,"add")).update(Object(b["bind"])(p,this,"update")).remove(Object(b["bind"])(p,this,"remove")).execute(),this._layersSeries=o,this._layers=d},t.type="themeRiver",t}(f["a"]);function Cv(e,t,n){var i=new Le["a"]({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Oe["c"](i,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),i}var Tv=Av,Dv=2,Lv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Qr["a"](b["bind"](this.getData,this),b["bind"](this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},i=Object(w["j"])(e,(function(e){return n.hasOwnProperty(e[0]+"")||(n[e[0]+""]=-1),e[2]})),a=[];i.buckets.each((function(e,t){a.push({name:t,dataList:e})}));for(var r=a.length,o=0;o<r;++o){for(var s=a[o].name,l=0;l<a[o].dataList.length;++l){var c=a[o].dataList[l][0]+"";n[c]=o}for(var c in n)n.hasOwnProperty(c)&&n[c]!==o&&(n[c]=o,e[t]=[c,0,s],t++)}return e},t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents("singleAxis",w["b"]).models[0],i=n.get("type"),a=b["filter"](e.data,(function(e){return void 0!==e[2]})),r=this.fixData(a||[]),o=[],s=this.nameMap=b["createHashMap"](),l=0,c=0;c<r.length;++c)o.push(r[c][Dv]),s.get(r[c][Dv])||(s.set(r[c][Dv],l),l++);var u=Object(O["b"])(r,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Object(S["a"])(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new g["a"](u,this);return h.initData(r),h},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],i=0;i<t;++i)n[i]=i;var a=e.mapDimension("single"),r=Object(w["j"])(n,(function(t){return e.get("name",t)})),o=[];return r.buckets.each((function(t,n){t.sort((function(t,n){return e.get(a,t)-e.get(a,n)})),o.push({name:n,indices:t})})),o},t.prototype.getAxisTooltipData=function(e,t,n){b["isArray"](e)||(e=e?[e]:[]);for(var i,a=this.getData(),r=this.getLayerSeries(),o=[],s=r.length,l=0;l<s;++l){for(var c=Number.MAX_VALUE,u=-1,h=r[l].indices.length,d=0;d<h;++d){var p=a.get(e[0],r[l].indices[d]),f=Math.abs(p-t);f<=c&&(i=p,c=f,u=r[l].indices[d])}o.push(u)}return{dataIndices:o,nestestValue:i}},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),a=i.getName(e),r=i.get(i.mapDimension("value"),e);return Object(eo["c"])("nameValue",{name:a,value:r})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(p["b"]),Pv=Lv;function kv(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),n=e.coordinateSystem,i={},a=n.getRect();i.rect=a;var r=e.get("boundaryGap"),o=n.getAxis();if(i.boundaryGap=r,"horizontal"===o.orient){r[0]=be["q"](r[0],a.height),r[1]=be["q"](r[1],a.height);var s=a.height-r[0]-r[1];Nv(t,e,s)}else{r[0]=be["q"](r[0],a.width),r[1]=be["q"](r[1],a.width);var l=a.width-r[0]-r[1];Nv(t,e,l)}t.setLayout("layoutInfo",i)}))}function Nv(e,t,n){if(e.count())for(var i,a=t.coordinateSystem,r=t.getLayerSeries(),o=e.mapDimension("single"),s=e.mapDimension("value"),l=b["map"](r,(function(t){return b["map"](t.indices,(function(t){var n=a.dataToPoint(e.get(o,t));return n[1]=e.get(s,t),n}))})),c=Rv(l),u=c.y0,h=n/c.max,d=r.length,p=r[0].indices.length,f=0;f<p;++f){i=u[f]*h,e.setItemLayout(r[0].indices[f],{layerIndex:0,x:l[0][f][0],y0:i,y:l[0][f][1]*h});for(var g=1;g<d;++g)i+=l[g-1][f][1]*h,e.setItemLayout(r[g].indices[f],{layerIndex:g,x:l[g][f][0],y0:i,y:l[g][f][1]*h})}}function Rv(e){for(var t=e.length,n=e[0].length,i=[],a=[],r=0,o=0;o<n;++o){for(var s=0,l=0;l<t;++l)s+=e[l][o][1];s>r&&(r=s),i.push(s)}for(var c=0;c<n;++c)a[c]=(r-i[c])/2;r=0;for(var u=0;u<n;++u){var h=i[u]+a[u];h>r&&(r=h)}return{y0:a,max:r}}function Ev(e){e.registerChartView(Tv),e.registerSeriesModel(Pv),e.registerLayout(kv),e.registerProcessor(Object(Ur["a"])("themeRiver"))}var Vv=n("d32f"),zv=2,Bv=4,Gv=function(e){function t(t,n,i,a){var r=e.call(this)||this;r.z2=zv,r.textConfig={inside:!0},Object(W["a"])(r).seriesIndex=n.seriesIndex;var o=new Me["a"]({z2:Bv,silent:t.getModel().get(["label","silent"])});return r.setTextContent(o),r.updateData(!0,t,n,i,a),r}return Object(ee["a"])(t,e),t.prototype.updateData=function(e,t,n,i,a){this.node=t,t.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var r=this;Object(W["a"])(r).dataIndex=t.dataIndex;var o=t.getModel(),s=o.getModel("emphasis"),l=t.getLayout(),c=b["extend"]({},l);c.label=null;var u=t.getVisual("style");u.lineJoin="bevel";var h=t.getVisual("decal");h&&(u.decal=Object(js["a"])(h,a));var d=Object(Vv["a"])(o.getModel("itemStyle"),c,!0);b["extend"](c,d),b["each"](X["g"],(function(e){var t=r.ensureState(e),n=o.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var i=Object(Vv["a"])(n,c);i&&(t.shape=i)})),e?(r.setShape(c),r.shape.r=l.r0,Oe["h"](r,{shape:{r:l.r}},n,t.dataIndex)):(Oe["h"](r,{shape:c},n),Object(Oe["g"])(r)),r.useStyle(u),this._updateLabel(n);var p=o.getShallow("cursor");p&&r.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var f=s.get("focus"),g="ancestor"===f?t.getAncestorsIndices():"descendant"===f?t.getDescendantIndices():f;Object(X["J"])(this,g,s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),i=n.getModel("label"),a=this.node.getLayout(),r=a.endAngle-a.startAngle,o=(a.startAngle+a.endAngle)/2,s=Math.cos(o),l=Math.sin(o),c=this,u=c.getTextContent(),h=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(null!=d&&Math.abs(r)<d);function f(e,t){var n=e.get(t);return null==n?i.get(t):n}u.ignore=!p,b["each"](X["a"],(function(i){var d="normal"===i?n.getModel("label"):n.getModel([i,"label"]),p="normal"===i,g=p?u:u.ensureState(i),y=e.getFormattedLabel(h,i);p&&(y=y||t.node.name),g.style=Object(Z["c"])(d,{},null,"normal"!==i,!0),y&&(g.style.text=y);var v=d.get("show");null==v||p||(g.ignore=!v);var m,x=f(d,"position"),_=p?c:c.states[i],O=_.style.fill;_.textConfig={outsideFill:"inherit"===d.get("color")?O:null,inside:"outside"!==x};var S=f(d,"distance")||0,w=f(d,"align");"outside"===x?(m=a.r+S,w=o>Math.PI/2?"right":"left"):w&&"center"!==w?"left"===w?(m=a.r0+S,o>Math.PI/2&&(w="right")):"right"===w&&(m=a.r-S,o>Math.PI/2&&(w="left")):(m=r===2*Math.PI&&0===a.r0?0:(a.r+a.r0)/2,w="center"),g.style.align=w,g.style.verticalAlign=f(d,"verticalAlign")||"middle",g.x=m*s+a.cx,g.y=m*l+a.cy;var M=f(d,"rotate"),I=0;"radial"===M?(I=-o,I<-Math.PI/2&&(I+=Math.PI)):"tangential"===M?(I=Math.PI/2-o,I>Math.PI/2?I-=Math.PI:I<-Math.PI/2&&(I+=Math.PI)):b["isNumber"](M)&&(I=M*Math.PI/180),g.rotation=I})),u.dirtyStyle()},t}(Ae["a"]),Fv=Gv,Hv="sunburstRootToNode",Wv="sunburstHighlight",Zv="sunburstUnhighlight";function Yv(e){e.registerAction({type:Hv,update:"updateView"},(function(e,t){function n(t,n){var i=lc(e,[Hv],t);if(i){var a=t.getViewRoot();a&&(e.direction=uc(a,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)})),e.registerAction({type:Wv,update:"none"},(function(e,t,n){function i(t){var n=lc(e,[Wv],t);n&&(e.dataIndex=n.node.dataIndex)}e=Object(b["extend"])({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},i),n.dispatchAction(Object(b["extend"])(e,{type:"highlight"}))})),e.registerAction({type:Zv,update:"updateView"},(function(e,t,n){e=Object(b["extend"])({},e),n.dispatchAction(Object(b["extend"])(e,{type:"downplay"}))}))}var Xv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.render=function(e,t,n,i){var a=this;this.seriesModel=e,this.api=n,this.ecModel=t;var r=e.getData(),o=r.tree.root,s=e.getViewRoot(),l=this.group,c=e.get("renderLabelForZeroData"),u=[];s.eachNode((function(e){u.push(e)}));var h=this._oldChildren||[];function d(e,t){function n(e){return e.getId()}function i(n,i){var a=null==n?null:e[n],r=null==i?null:t[i];p(a,r)}0===e.length&&0===t.length||new Cc["a"](t,e,n,n).add(i).update(i).remove(b["curry"](i,null)).execute()}function p(i,a){if(c||!i||i.getValue()||(i=null),i!==o&&a!==o)if(a&&a.piece)i?(a.piece.updateData(!1,i,e,t,n),r.setItemGraphicEl(i.dataIndex,a.piece)):f(a);else if(i){var s=new Fv(i,e,t,n);l.add(s),r.setItemGraphicEl(i.dataIndex,s)}}function f(e){e&&e.piece&&(l.remove(e.piece),e.piece=null)}function g(i,r){r.depth>0?(a.virtualPiece?a.virtualPiece.updateData(!1,i,e,t,n):(a.virtualPiece=new Fv(i,e,t,n),l.add(a.virtualPiece)),r.piece.off("click"),a.virtualPiece.on("click",(function(e){a._rootToNode(r.parentNode)}))):a.virtualPiece&&(l.remove(a.virtualPiece),a.virtualPiece=null)}d(u,h),g(o,s),this._initEvents(),this._oldChildren=u},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var n=!1,i=e.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece===t.target){var a=i.getModel().get("nodeClick");if("rootToNode"===a)e._rootToNode(i);else if("link"===a){var r=i.getModel(),o=r.get("link");if(o){var s=r.get("target",!0)||"_blank";Object(Be["k"])(o,s)}}n=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Hv,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData(),i=n.getItemLayout(0);if(i){var a=e[0]-i.cx,r=e[1]-i.cy,o=Math.sqrt(a*a+r*r);return o<=i.r&&o>=i.r0}},t.type="sunburst",t}(f["a"]),Uv=Xv,qv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return Object(ee["a"])(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};Jv(n);var i=this._levelModels=b["map"](e.levels||[],(function(e){return new F["a"](e,this,t)}),this),a=sc.createTree(n,this,r);function r(e){e.wrapMethod("getItemModel",(function(e,t){var n=a.getNodeByDataIndex(t),r=i[n.depth];return r&&(e.parentModel=r),e}))}return a.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=hc(i,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){wc(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(p["b"]);function Jv(e){var t=0;b["each"](e.children,(function(e){Jv(e);var n=e.value;b["isArray"](n)&&(n=n[0]),t+=n}));var n=e.value;b["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),b["isArray"](e.value)?e.value[0]=n:e.value=n}var Kv=qv,$v=Math.PI/180;function Qv(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),i=e.get("radius");b["isArray"](i)||(i=[0,i]),b["isArray"](t)||(t=[t,t]);var a=n.getWidth(),r=n.getHeight(),o=Math.min(a,r),s=Object(be["q"])(t[0],a),l=Object(be["q"])(t[1],r),c=Object(be["q"])(i[0],o/2),u=Object(be["q"])(i[1],o/2),h=-e.get("startAngle")*$v,d=e.get("minAngle")*$v,p=e.getData().tree.root,f=e.getViewRoot(),g=f.depth,y=e.get("sort");null!=y&&em(f,y);var v=0;b["each"](f.children,(function(e){!isNaN(e.getValue())&&v++}));var m=f.getValue(),x=Math.PI/(m||v)*2,_=f.depth>0,O=f.height-(_?-1:1),S=(u-c)/(O||1),w=e.get("clockwise"),M=e.get("stillShowZeroSum"),I=w?1:-1,j=function(t,n){if(t){var i=n;if(t!==p){var a=t.getValue(),r=0===m&&M?x:a*x;r<d&&(r=d),i=n+I*r;var u=t.depth-g-(_?-1:1),h=c+S*u,f=c+S*(u+1),y=e.getLevelModel(t);if(y){var v=y.get("r0",!0),O=y.get("r",!0),A=y.get("radius",!0);null!=A&&(v=A[0],O=A[1]),null!=v&&(h=Object(be["q"])(v,o/2)),null!=O&&(f=Object(be["q"])(O,o/2))}t.setLayout({angle:r,startAngle:n,endAngle:i,clockwise:w,cx:s,cy:l,r0:h,r:f})}if(t.children&&t.children.length){var C=0;b["each"](t.children,(function(e){C+=j(e,n+C)}))}return i-n}};if(_){var A=c,C=c+S,T=2*Math.PI;p.setLayout({angle:T,startAngle:h,endAngle:h+T,clockwise:w,cx:s,cy:l,r0:A,r:C})}j(f,h)}))}function em(e,t){var n=e.children||[];e.children=tm(n,t),n.length&&b["each"](e.children,(function(e){em(e,t)}))}function tm(e,t){if(b["isFunction"](t)){var n=b["map"](e,(function(e,t){var n=e.getValue();return{params:{depth:e.depth,height:e.height,dataIndex:e.dataIndex,getValue:function(){return n}},index:t}}));return n.sort((function(e,n){return t(e.params,n.params)})),b["map"](n,(function(t){return e[t.index]}))}var i="asc"===t;return e.sort((function(e,t){var n=(e.getValue()-t.getValue())*(i?1:-1);return 0===n?(e.dataIndex-t.dataIndex)*(i?-1:1):n}))}function nm(e){var t={};function n(e,n,i){var a=e;while(a&&a.depth>1)a=a.parentNode;var r=n.getColorFromPalette(a.name||a.dataIndex+"",t);return e.depth>1&&Object(b["isString"])(r)&&(r=Object(x["lift"])(r,(e.depth-1)/(i-1)*.5)),r}e.eachSeriesByType("sunburst",(function(e){var t=e.getData(),i=t.tree;i.eachNode((function(a){var r=a.getModel(),o=r.getModel("itemStyle").getItemStyle();o.fill||(o.fill=n(a,e,i.root.height));var s=t.ensureUniqueItemVisual(a.dataIndex,"style");Object(b["extend"])(s,o)}))}))}function im(e){e.registerChartView(Uv),e.registerSeriesModel(Kv),e.registerLayout(Object(b["curry"])(Qv,"sunburst")),e.registerProcessor(Object(b["curry"])(Ur["a"],"sunburst")),e.registerVisual(nm),Yv(e)}var am={color:"fill",borderColor:"stroke"},rm={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},om=Object(w["o"])(),sm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return z(null,this)},t.prototype.getDataParams=function(t,n,i){var a=e.prototype.getDataParams.call(this,t,n);return i&&(a.info=om(i).info),a},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(p["b"]),lm=sm;function cm(e,t){return t=t||[0,0],b["map"](["x","y"],(function(n,i){var a=this.getAxis(n),r=t[i],o=e[i]/2;return"category"===a.type?a.getBandWidth():Math.abs(a.dataToCoord(r-o)-a.dataToCoord(r+o))}),this)}function um(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:b["bind"](cm,e)}}}function hm(e,t){return t=t||[0,0],b["map"]([0,1],(function(n){var i=t[n],a=e[n]/2,r=[],o=[];return r[n]=i-a,o[n]=i+a,r[1-n]=o[1-n]=t[1-n],Math.abs(this.dataToPoint(r)[n]-this.dataToPoint(o)[n])}),this)}function dm(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:b["bind"](hm,e)}}}function pm(e,t){var n=this.getAxis(),i=t instanceof Array?t[0]:t,a=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-a)-n.dataToCoord(i+a))}function fm(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:Object(b["bind"])(pm,e)}}}function gm(e,t){return t=t||[0,0],b["map"](["Radius","Angle"],(function(n,i){var a="get"+n+"Axis",r=this[a](),o=t[i],s=e[i]/2,l="category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-s)-r.dataToCoord(o+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function ym(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),i=t.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:i[1],r0:i[0]},api:{coord:function(i){var a=t.dataToRadius(i[0]),r=n.dataToAngle(i[1]),o=e.coordToPoint([a,r]);return o.push(a,r*Math.PI/180),o},size:b["bind"](gm,e)}}}function vm(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}function mm(e,t,n,i){return e&&(e.legacy||!1!==e.legacy&&!n&&!i&&"tspan"!==t&&("text"===t||Object(b["hasOwn"])(e,"text")))}function bm(e,t,n){var i,a,r,o=e;if("text"===t)r=o;else{r={},Object(b["hasOwn"])(o,"text")&&(r.text=o.text),Object(b["hasOwn"])(o,"rich")&&(r.rich=o.rich),Object(b["hasOwn"])(o,"textFill")&&(r.fill=o.textFill),Object(b["hasOwn"])(o,"textStroke")&&(r.stroke=o.textStroke),Object(b["hasOwn"])(o,"fontFamily")&&(r.fontFamily=o.fontFamily),Object(b["hasOwn"])(o,"fontSize")&&(r.fontSize=o.fontSize),Object(b["hasOwn"])(o,"fontStyle")&&(r.fontStyle=o.fontStyle),Object(b["hasOwn"])(o,"fontWeight")&&(r.fontWeight=o.fontWeight),a={type:"text",style:r,silent:!0},i={};var s=Object(b["hasOwn"])(o,"textPosition");n?i.position=s?o.textPosition:"inside":s&&(i.position=o.textPosition),Object(b["hasOwn"])(o,"textPosition")&&(i.position=o.textPosition),Object(b["hasOwn"])(o,"textOffset")&&(i.offset=o.textOffset),Object(b["hasOwn"])(o,"textRotation")&&(i.rotation=o.textRotation),Object(b["hasOwn"])(o,"textDistance")&&(i.distance=o.textDistance)}return xm(r,e),Object(b["each"])(r.rich,(function(e){xm(e,e)})),{textConfig:i,textContent:a}}function xm(e,t){t&&(t.font=t.textFont||t.font,Object(b["hasOwn"])(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Object(b["hasOwn"])(t,"textAlign")&&(e.align=t.textAlign),Object(b["hasOwn"])(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Object(b["hasOwn"])(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Object(b["hasOwn"])(t,"textWidth")&&(e.width=t.textWidth),Object(b["hasOwn"])(t,"textHeight")&&(e.height=t.textHeight),Object(b["hasOwn"])(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Object(b["hasOwn"])(t,"textPadding")&&(e.padding=t.textPadding),Object(b["hasOwn"])(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Object(b["hasOwn"])(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Object(b["hasOwn"])(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Object(b["hasOwn"])(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Object(b["hasOwn"])(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Object(b["hasOwn"])(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Object(b["hasOwn"])(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function _m(e,t,n){var i=e;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var a=i.textPosition.indexOf("inside")>=0,r=e.fill||"#000";Om(i,t);var o=null==i.textFill;return a?o&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=r),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(o&&(i.textFill=e.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=t.text,i.rich=t.rich,Object(b["each"])(t.rich,(function(e){Om(e,e)})),i}function Om(e,t){t&&(Object(b["hasOwn"])(t,"fill")&&(e.textFill=t.fill),Object(b["hasOwn"])(t,"stroke")&&(e.textStroke=t.fill),Object(b["hasOwn"])(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Object(b["hasOwn"])(t,"font")&&(e.font=t.font),Object(b["hasOwn"])(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Object(b["hasOwn"])(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Object(b["hasOwn"])(t,"fontSize")&&(e.fontSize=t.fontSize),Object(b["hasOwn"])(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Object(b["hasOwn"])(t,"align")&&(e.textAlign=t.align),Object(b["hasOwn"])(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Object(b["hasOwn"])(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Object(b["hasOwn"])(t,"width")&&(e.textWidth=t.width),Object(b["hasOwn"])(t,"height")&&(e.textHeight=t.height),Object(b["hasOwn"])(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Object(b["hasOwn"])(t,"padding")&&(e.textPadding=t.padding),Object(b["hasOwn"])(t,"borderColor")&&(e.textBorderColor=t.borderColor),Object(b["hasOwn"])(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Object(b["hasOwn"])(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Object(b["hasOwn"])(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Object(b["hasOwn"])(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Object(b["hasOwn"])(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Object(b["hasOwn"])(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Object(b["hasOwn"])(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Object(b["hasOwn"])(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Object(b["hasOwn"])(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Object(b["hasOwn"])(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var Sm=n("06ad"),wm={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Mm=Object(b["keys"])(wm),Im=(Object(b["reduce"])(Jt["a"],(function(e,t){return e[t]=1,e}),{}),Jt["a"].join(", "),["","style","shape","extra"]),jm=Object(w["o"])();function Am(e,t,n,i,a){var r=e+"Animation",o=Object(Oe["a"])(e,i,a)||{},s=jm(t).userDuring;return o.duration>0&&(o.during=s?Object(b["bind"])(Vm,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),Object(b["extend"])(o,n[r]),o}function Cm(e,t,n,i){i=i||{};var a=i.dataIndex,r=i.isInit,o=i.clearStyle,s=n.isAnimationEnabled(),l=jm(e),c=t.style;l.userDuring=t.during;var u={},h={};if(Fm(e,t,h),Bm("shape",t,h),Bm("extra",t,h),!r&&s&&(Gm(e,t,u),zm("shape",e,t,u),zm("extra",e,t,u),Hm(e,t,c,u)),h.style=c,Pm(e,h,o),Nm(e,t),s)if(r){var d={};Object(b["each"])(Im,(function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(d[e]=d[e]||{}),Object(b["extend"])(e?d[e]:d,n.enterFrom))}));var p=Am("enter",e,t,n,a);p.duration>0&&e.animateFrom(d,p)}else km(e,t,a||0,n,u);Tm(e,t),c?e.dirty():e.markRedraw()}function Tm(e,t){for(var n=jm(e).leaveToProps,i=0;i<Im.length;i++){var a=Im[i],r=a?t[a]:t;r&&r.leaveTo&&(n||(n=jm(e).leaveToProps={}),a&&(n[a]=n[a]||{}),Object(b["extend"])(a?n[a]:n,r.leaveTo))}}function Dm(e,t,n,i){if(e){var a=e.parent,r=jm(e).leaveToProps;if(r){var o=Am("update",e,t,n,0);o.done=function(){a.remove(e),i&&i()},e.animateTo(r,o)}else a.remove(e),i&&i()}}function Lm(e){return"all"===e}function Pm(e,t,n){var i=t.style;if(!e.isGroup&&i){if(n){e.useStyle({});for(var a=e.animators,r=0;r<a.length;r++){var o=a[r];"style"===o.targetName&&o.changeTarget(e.style)}}e.setStyle(i)}t&&(t.style=null,t&&e.attr(t),t.style=i)}function km(e,t,n,i,a){if(a){var r=Am("update",e,t,i,n);r.duration>0&&e.animateFrom(a,r)}}function Nm(e,t){Object(b["hasOwn"])(t,"silent")&&(e.silent=t.silent),Object(b["hasOwn"])(t,"ignore")&&(e.ignore=t.ignore),e instanceof As["c"]&&Object(b["hasOwn"])(t,"invisible")&&(e.invisible=t.invisible),e instanceof xt["b"]&&Object(b["hasOwn"])(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var Rm={},Em={setTransform:function(e,t){return Rm.el[e]=t,this},getTransform:function(e){return Rm.el[e]},setShape:function(e,t){var n=Rm.el,i=n.shape||(n.shape={});return i[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=Rm.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=Rm.el,i=n.style;return i&&(i[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=Rm.el.style;if(t)return t[e]},setExtra:function(e,t){var n=Rm.el.extra||(Rm.el.extra={});return n[e]=t,this},getExtra:function(e){var t=Rm.el.extra;if(t)return t[e]}};function Vm(){var e=this,t=e.el;if(t){var n=jm(t).userDuring,i=e.userDuring;n===i?(Rm.el=t,i(Em)):e.el=e.userDuring=null}}function zm(e,t,n,i){var a=n[e];if(a){var r,o=t[e];if(o){var s=n.transition,l=a.transition;if(l)if(!r&&(r=i[e]={}),Lm(l))Object(b["extend"])(r,o);else for(var c=Object(w["r"])(l),u=0;u<c.length;u++){var h=c[u],d=o[h];r[h]=d}else if(Lm(s)||Object(b["indexOf"])(s,e)>=0){!r&&(r=i[e]={});var p=Object(b["keys"])(o);for(u=0;u<p.length;u++){h=p[u],d=o[h];Wm(a[h],d)&&(r[h]=d)}}}}}function Bm(e,t,n){var i=t[e];if(i)for(var a=n[e]={},r=Object(b["keys"])(i),o=0;o<r.length;o++){var s=r[o];a[s]=Object(Sm["a"])(i[s])}}function Gm(e,t,n){for(var i=t.transition,a=Lm(i)?Jt["a"]:Object(w["r"])(i||[]),r=0;r<a.length;r++){var o=a[r];if("style"!==o&&"shape"!==o&&"extra"!==o){var s=e[o];0,n[o]=s}}}function Fm(e,t,n){for(var i=0;i<Mm.length;i++){var a=Mm[i],r=wm[a],o=t[a];o&&(n[r[0]]=o[0],n[r[1]]=o[1])}for(i=0;i<Jt["a"].length;i++){var s=Jt["a"][i];null!=t[s]&&(n[s]=t[s])}}function Hm(e,t,n,i){if(n){var a,r=e.style;if(r){var o=n.transition,s=t.transition;if(o&&!Lm(o)){var l=Object(w["r"])(o);!a&&(a=i.style={});for(var c=0;c<l.length;c++){var u=l[c],h=r[u];a[u]=h}}else if(e.getAnimationStyleProps&&(Lm(s)||Lm(o)||Object(b["indexOf"])(s,"style")>=0)){var d=e.getAnimationStyleProps(),p=d?d.style:null;if(p){!a&&(a=i.style={});var f=Object(b["keys"])(n);for(c=0;c<f.length;c++){u=f[c];if(p[u]){h=r[u];a[u]=h}}}}}}}function Wm(e,t){return Object(b["isArrayLike"])(e)?e!==t:null!=e&&isFinite(e)}var Zm=Object(w["o"])(),Ym=["percent","easing","shape","style","extra"];function Xm(e){e.stopAnimation("keyframe"),e.attr(Zm(e))}function Um(e,t,n){if(n.isAnimationEnabled()&&t)if(Object(b["isArray"])(t))Object(b["each"])(t,(function(t){Um(e,t,n)}));else{var i=t.keyframes,a=t.duration;if(n&&null==a){var r=Object(Oe["a"])("enter",n,0);a=r&&r.duration}if(i&&a){var o=Zm(e);Object(b["each"])(Im,(function(n){if(!n||e[n]){var r;i.sort((function(e,t){return e.percent-t.percent})),Object(b["each"])(i,(function(i){var s=e.animators,l=n?i[n]:i;if(l){var c=Object(b["keys"])(l);if(n||(c=Object(b["filter"])(c,(function(e){return Object(b["indexOf"])(Ym,e)<0}))),c.length){r||(r=e.animate(n,t.loop,!0),r.scope="keyframe");for(var u=0;u<s.length;u++)s[u]!==r&&s[u].targetName===r.targetName&&s[u].stopTracks(c);n&&(o[n]=o[n]||{});var h=n?o[n]:o;Object(b["each"])(c,(function(t){h[t]=((n?e[n]:e)||{})[t]})),r.whenWithKeys(a*i.percent,l,c,i.easing)}}})),r&&r.delay(t.delay||0).duration(a).start(t.easing)}}))}}}var qm="emphasis",Jm="normal",Km="blur",$m="select",Qm=[Jm,qm,Km,$m],eb={normal:["itemStyle"],emphasis:[qm,"itemStyle"],blur:[Km,"itemStyle"],select:[$m,"itemStyle"]},tb={normal:["label"],emphasis:[qm,"label"],blur:[Km,"label"],select:[$m,"label"]},nb=["x","y"],ib="e\0\0",ab={normal:{},emphasis:{},blur:{},select:{}},rb={cartesian2d:um,geo:dm,single:fm,polar:ym,calendar:vm};function ob(e){return e instanceof xt["b"]}function sb(e){return e instanceof As["c"]}function lb(e,t){t.copyTransform(e),sb(t)&&sb(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,ob(t)&&ob(e)&&t.setShape(e.shape))}var cb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.render=function(e,t,n,i){this._progressiveEls=null;var a=this._data,r=e.getData(),o=this.group,s=yb(e,r,t,n);a||o.removeAll(),r.diff(a).add((function(t){mb(n,null,t,s(t,i),e,o,r)})).remove((function(t){var n=a.getItemGraphicEl(t);n&&Dm(n,om(n).option,e)})).update((function(t,l){var c=a.getItemGraphicEl(l);mb(n,c,t,s(t,i),e,o,r)})).execute();var l=e.get("clip",!0)?Li(e.coordinateSystem,!1,e):null;l?o.setClipPath(l):o.removeClipPath(),this._data=r},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,i,a){var r=t.getData(),o=yb(t,r,n,i),s=this._progressiveEls=[];function l(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var c=e.start;c<e.end;c++){var u=mb(null,null,c,o(c,a),t,this.group,r);u&&(u.traverse(l),s.push(u))}},t.prototype.eachRendered=function(e){_e["traverseElements"](this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,n,i){var a=t.element;if(null==a||n.name===a)return!0;while((n=n.__hostTarget||n.parent)&&n!==this.group)if(n.name===a)return!0;return!1},t.type="custom",t}(f["a"]),ub=cb;function hb(e){var t,n=e.type;if("path"===n){var i=e.shape,a=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,r=Lb(i);t=_e["makePath"](r,null,a,i.layout||"center"),om(t).customPathData=r}else if("image"===n)t=new we["a"]({}),om(t).customImagePath=e.style.image;else if("text"===n)t=new Me["a"]({});else if("group"===n)t=new Se["a"];else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var o=_e["getShapeClass"](n);if(!o){var s="";0,Object(nu["c"])(s)}t=new o}return om(t).customGraphicType=n,t.name=e.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function db(e,t,n,i,a,r,o){Xm(t);var s=a&&a.normal.cfg;s&&t.setTextConfig(s),i&&null==i.transition&&(i.transition=nb);var l=i&&i.style;if(l){if("text"===t.type){var c=l;Object(b["hasOwn"])(c,"textFill")&&(c.fill=c.textFill),Object(b["hasOwn"])(c,"textStroke")&&(c.stroke=c.textStroke)}var u=void 0,h=ob(t)?l.decal:null;e&&h&&(h.dirty=!0,u=Object(js["a"])(h,e)),l.__decalPattern=u}if(sb(t)&&l){u=l.__decalPattern;u&&(l.decal=u)}Cm(t,i,r,{dataIndex:n,isInit:o,clearStyle:!0}),Um(t,i.keyframeAnimation,r)}function pb(e,t,n,i,a){var r=t.isGroup?null:t,o=a&&a[e].cfg;if(r){var s=r.ensureState(e);if(!1===i){var l=r.getState(e);l&&(l.style=null)}else s.style=i||null;o&&(s.textConfig=o),Object(X["G"])(r)}}function fb(e,t,n){if(!e.isGroup){var i=e,a=n.currentZ,r=n.currentZLevel;i.z=a,i.zlevel=r;var o=t.z2;null!=o&&(i.z2=o||0);for(var s=0;s<Qm.length;s++)gb(i,t,Qm[s])}}function gb(e,t,n){var i,a=n===Jm,r=a?t:wb(t,n),o=r?r.z2:null;null!=o&&(i=a?e:e.ensureState(n),i.z2=o||0)}function yb(e,t,n,i){var a=e.get("renderItem"),r=e.coordinateSystem,o={};r&&(o=r.prepareCustoms?r.prepareCustoms(r):rb[r.type](r));for(var s,l,c=Object(b["defaults"])({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:_,style:S,ordinalRawValue:O,styleEmphasis:w,visual:j,barLayout:A,currentSeriesIndices:C,font:T},o.api||{}),u={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:vb(e.getData())},h={},d={},p={},f={},g=0;g<Qm.length;g++){var y=Qm[g];p[y]=e.getModel(eb[y]),f[y]=e.getModel(tb[y])}function v(e){return e===s?l||(l=t.getItemModel(e)):t.getItemModel(e)}function m(e,n){return t.hasItemOption?e===s?h[n]||(h[n]=v(e).getModel(eb[n])):v(e).getModel(eb[n]):p[n]}function x(e,n){return t.hasItemOption?e===s?d[n]||(d[n]=v(e).getModel(tb[n])):v(e).getModel(tb[n]):f[n]}return function(e,n){return s=e,l=null,h={},d={},a&&a(Object(b["defaults"])({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},u),c)};function _(e,n){return null==n&&(n=s),t.getStore().get(t.getDimensionIndex(e||0),n)}function O(e,n){null==n&&(n=s),e=e||0;var i=t.getDimensionInfo(e);if(!i){var a=t.getDimensionIndex(e);return a>=0?t.getStore().get(a,n):void 0}var r=t.get(i.name,n),o=i&&i.ordinalMeta;return o?o.categories[r]:r}function S(n,i){null==i&&(i=s);var a=t.getItemVisual(i,"style"),r=a&&a.fill,o=a&&a.opacity,l=m(i,Jm).getItemStyle();null!=r&&(l.fill=r),null!=o&&(l.opacity=o);var c={inheritColor:Object(b["isString"])(r)?r:"#000"},u=x(i,Jm),h=Z["c"](u,null,c,!1,!0);h.text=u.getShallow("show")?Object(b["retrieve2"])(e.getFormattedLabel(i,Jm),ri(t,i)):null;var d=Z["b"](u,c,!1);return I(n,l),l=_m(l,h,d),n&&M(l,n),l.legacy=!0,l}function w(n,i){null==i&&(i=s);var a=m(i,qm).getItemStyle(),r=x(i,qm),o=Z["c"](r,null,null,!0,!0);o.text=r.getShallow("show")?Object(b["retrieve3"])(e.getFormattedLabel(i,qm),e.getFormattedLabel(i,Jm),ri(t,i)):null;var l=Z["b"](r,null,!0);return I(n,a),a=_m(a,o,l),n&&M(a,n),a.legacy=!0,a}function M(e,t){for(var n in t)Object(b["hasOwn"])(t,n)&&(e[n]=t[n])}function I(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function j(e,n){if(null==n&&(n=s),Object(b["hasOwn"])(am,e)){var i=t.getItemVisual(n,"style");return i?i[am[e]]:null}if(Object(b["hasOwn"])(rm,e))return t.getItemVisual(n,e)}function A(e){if("cartesian2d"===r.type){var t=r.getBaseAxis();return Object(ra["b"])(Object(b["defaults"])({axis:t},e))}}function C(){return n.getCurrentSeriesIndices()}function T(e){return Z["d"](e,n)}}function vb(e){var t={};return Object(b["each"])(e.dimensions,(function(n){var i=e.getDimensionInfo(n);if(!i.isExtraCoord){var a=i.coordDim,r=t[a]=t[a]||[];r[i.coordDimIndex]=e.getDimensionIndex(n)}})),t}function mb(e,t,n,i,a,r,o){if(i){var s=bb(e,t,n,i,a,r);return s&&o.setItemGraphicEl(n,s),s&&Object(X["J"])(s,i.focus,i.blurScope,i.emphasisDisabled),s}r.remove(t)}function bb(e,t,n,i,a,r){var o=-1,s=t;t&&xb(t,i,a)&&(o=Object(b["indexOf"])(r.childrenRef(),t),t=null);var l=!t,c=t;c?c.clearStates():(c=hb(i),s&&lb(s,c)),!1===i.morph?c.disableMorphing=!0:c.disableMorphing&&(c.disableMorphing=!1),ab.normal.cfg=ab.normal.conOpt=ab.emphasis.cfg=ab.emphasis.conOpt=ab.blur.cfg=ab.blur.conOpt=ab.select.cfg=ab.select.conOpt=null,ab.isLegacy=!1,Ob(c,n,i,a,l,ab),_b(c,n,i,a,l),db(e,c,n,i,ab,a,l),Object(b["hasOwn"])(i,"info")&&(om(c).info=i.info);for(var u=0;u<Qm.length;u++){var h=Qm[u];if(h!==Jm){var d=wb(i,h),p=Mb(i,d,h);pb(h,c,d,p,ab)}}return fb(c,i,a),"group"===i.type&&Ib(e,c,n,i,a),o>=0?r.replaceAt(c,o):r.add(c),c}function xb(e,t,n){var i=om(e),a=t.type,r=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||null!=a&&a!==i.customGraphicType||"path"===a&&Pb(r)&&Lb(r)!==i.customPathData||"image"===a&&Object(b["hasOwn"])(o,"image")&&o.image!==i.customImagePath}function _b(e,t,n,i,a){var r=n.clipPath;if(!1===r)e&&e.getClipPath()&&e.removeClipPath();else if(r){var o=e.getClipPath();o&&xb(o,r,i)&&(o=null),o||(o=hb(r),e.setClipPath(o)),db(null,o,t,r,null,i,a)}}function Ob(e,t,n,i,a,r){if(!e.isGroup){Sb(n,null,r),Sb(n,qm,r);var o=r.normal.conOpt,s=r.emphasis.conOpt,l=r.blur.conOpt,c=r.select.conOpt;if(null!=o||null!=s||null!=c||null!=l){var u=e.getTextContent();if(!1===o)u&&e.removeTextContent();else{o=r.normal.conOpt=o||{type:"text"},u?u.clearStates():(u=hb(o),e.setTextContent(u)),db(null,u,t,o,null,i,a);for(var h=o&&o.style,d=0;d<Qm.length;d++){var p=Qm[d];if(p!==Jm){var f=r[p].conOpt;pb(p,u,f,Mb(o,f,p),null)}}h?u.dirty():u.markRedraw()}}}}function Sb(e,t,n){var i=t?wb(e,t):e,a=t?Mb(e,i,qm):e.style,r=e.type,o=i?i.textConfig:null,s=e.textContent,l=s?t?wb(s,t):s:null;if(a&&(n.isLegacy||mm(a,r,!!o,!!l))){n.isLegacy=!0;var c=bm(a,r,!t);!o&&c.textConfig&&(o=c.textConfig),!l&&c.textContent&&(l=c.textContent)}if(!t&&l){var u=l;!u.type&&(u.type="text")}var h=t?n[t]:n.normal;h.cfg=o,h.conOpt=l}function wb(e,t){return t?e?e[t]:null:e}function Mb(e,t,n){var i=t&&t.style;return null==i&&n===qm&&e&&(i=e.styleEmphasis),i}function Ib(e,t,n,i,a){var r=i.children,o=r?r.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,c=!1===s;if(o||l||c)if(l)Ab({api:e,oldChildren:t.children()||[],newChildren:r||[],dataIndex:n,seriesModel:a,group:t});else{c&&t.removeAll();for(var u=0;u<o;u++){var h=r[u],d=t.childAt(u);h?(null==h.ignore&&(h.ignore=!1),bb(e,d,n,h,a,t)):d.ignore=!0}for(var p=t.childCount()-1;p>=u;p--){var f=t.childAt(p);jb(t,f,a)}}}function jb(e,t,n){t&&Dm(t,om(e).option,n)}function Ab(e){new Cc["a"](e.oldChildren,e.newChildren,Cb,Cb,e).add(Tb).update(Tb).remove(Db).execute()}function Cb(e,t){var n=e&&e.name;return null!=n?n:ib+t}function Tb(e,t){var n=this.context,i=null!=e?n.newChildren[e]:null,a=null!=t?n.oldChildren[t]:null;bb(n.api,a,n.dataIndex,i,n.seriesModel,n.group)}function Db(e){var t=this.context,n=t.oldChildren[e];n&&Dm(n,om(n).option,t.seriesModel)}function Lb(e){return e&&(e.pathData||e.d)}function Pb(e){return e&&(Object(b["hasOwn"])(e,"pathData")||Object(b["hasOwn"])(e,"d"))}function kb(e){e.registerChartView(ub),e.registerSeriesModel(lm)}var Nb=n("af5c");function Rb(e){Object(c["a"])(Hr),Object(c["a"])(Nb["a"])}var Eb=n("dcb3"),Vb=n("ff2e"),zb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(ee["a"])(t,e),t.prototype.makeElOption=function(e,t,n,i,a){var r=n.axis;"angle"===r.dim&&(this.animationThreshold=Math.PI/18);var o=r.polar,s=o.getOtherAxis(r),l=s.getExtent(),c=r.dataToCoord(t),u=i.get("type");if(u&&"none"!==u){var h=Vb["b"](i),d=Gb[u](r,o,c,l);d.style=h,e.graphicKey=d.type,e.pointer=d}var p=i.get(["label","margin"]),f=Bb(t,n,i,o,p);Vb["c"](e,n,i,a,f)},t}(Eb["a"]);function Bb(e,t,n,i,a){var r=t.axis,o=r.dataToCoord(e),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,c,u,h=i.getRadiusAxis().getExtent();if("radius"===r.dim){var d=v["create"]();v["rotate"](d,d,s),v["translate"](d,d,[i.cx,i.cy]),l=_e["applyTransform"]([o,-a],d);var p=t.getModel("axisLabel").get("rotate")||0,f=Tr["a"].innerTextLayout(s,p*Math.PI/180,-1);c=f.textAlign,u=f.textVerticalAlign}else{var g=h[1];l=i.coordToPoint([g+a,o]);var y=i.cx,m=i.cy;c=Math.abs(l[0]-y)/g<.3?"center":l[0]>y?"left":"right",u=Math.abs(l[1]-m)/g<.3?"middle":l[1]>m?"top":"bottom"}return{position:l,align:c,verticalAlign:u}}var Gb={line:function(e,t,n,i){return"angle"===e.dim?{type:"Line",shape:Vb["f"](t.coordToPoint([i[0],n]),t.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,i){var a=Math.max(1,e.getBandWidth()),r=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:Vb["h"](t.cx,t.cy,i[0],i[1],(-n-a/2)*r,(a/2-n)*r)}:{type:"Sector",shape:Vb["h"](t.cx,t.cy,n-a/2,n+a/2,0,2*Math.PI)}}},Fb=zb,Hb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.findAxisModel=function(e){var t,n=this.ecModel;return n.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(h["a"]),Wb=Hb,Zb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(ee["a"])(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",w["b"]).models[0]},t.type="polarAxis",t}(h["a"]);b["mixin"](Zb,G);var Yb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.type="angleAxis",t}(Zb),Xb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.type="radiusAxis",t}(Zb),Ub=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return Object(ee["a"])(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(ht);Ub.prototype.dataToRadius=ht.prototype.dataToCoord,Ub.prototype.radiusToData=ht.prototype.coordToData;var qb=Ub,Jb=Object(w["o"])(),Kb=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return Object(ee["a"])(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,i=n.getExtent(),a=n.count();if(i[1]-i[0]<1)return 0;var r=i[0],o=e.dataToCoord(r+1)-e.dataToCoord(r),s=Math.abs(o),l=Ze["d"](null==r?"":r+"",t.getFont(),"center","top"),c=Math.max(l.height,7),u=c/s;isNaN(u)&&(u=1/0);var h=Math.max(0,Math.floor(u)),d=Jb(e.model),p=d.lastAutoInterval,f=d.lastTickCount;return null!=p&&null!=f&&Math.abs(p-h)<=1&&Math.abs(f-a)<=1&&p>h?h=p:(d.lastTickCount=a,d.lastAutoInterval=h),h},t}(ht);Kb.prototype.dataToAngle=ht.prototype.dataToCoord,Kb.prototype.angleToData=ht.prototype.coordToData;var $b=Kb,Qb=["radius","angle"],ex=function(){function e(e){this.dimensions=Qb,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new qb,this._angleAxis=new $b,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===e&&t.push(n),i.scale.type===e&&t.push(i),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),r=Math.min(a[0],a[1]),o=Math.max(a[0],a[1]);i.inverse?r=o-360:o=r+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;var l=Math.atan2(-n,t)/Math.PI*180,c=l<r?1:-1;while(l<r||l>o)l+=360*c;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI,i=Math.cos(n)*t+this.cx,a=-Math.sin(n)*t+this.cy;return[i,a]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var i=e.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,i=t-this.cy,a=n*n+i*i-1e-4,r=this.r,o=this.r0;return a<=r*r&&a>=o*o}}},e.prototype.convertToPixel=function(e,t,n){var i=tx(t);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=tx(t);return i===this?this.pointToData(n):null},e}();function tx(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var nx=ex;function ix(e,t,n){var i=t.get("center"),a=n.getWidth(),r=n.getHeight();e.cx=Object(be["q"])(i[0],a),e.cy=Object(be["q"])(i[1],r);var o=e.getRadiusAxis(),s=Math.min(a,r)/2,l=t.get("radius");null==l?l=[0,"100%"]:b["isArray"](l)||(l=[0,l]);var c=[Object(be["q"])(l[0],s),Object(be["q"])(l[1],s)];o.inverse?o.setExtent(c[1],c[0]):o.setExtent(c[0],c[1])}function ax(e,t){var n=this,i=n.getAngleAxis(),a=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();b["each"](Object(B["d"])(t,"radius"),(function(e){a.scale.unionExtentFromData(t,e)})),b["each"](Object(B["d"])(t,"angle"),(function(e){i.scale.unionExtentFromData(t,e)}))}})),Object(B["i"])(i.scale,i.model),Object(B["i"])(a.scale,a.model),"category"===i.type&&!i.onBand){var r=i.getExtent(),o=360/i.scale.count();i.inverse?r[1]+=o:r[1]-=o,i.setExtent(r[0],r[1])}}function rx(e){return"angleAxis"===e.mainType}function ox(e,t){if(e.type=t.get("type"),e.scale=Object(B["a"])(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),rx(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle");e.setExtent(n,n+(e.inverse?-360:360))}t.axis=e,e.model=t}var sx={dimensions:Qb,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,i){var a=new nx(i+"");a.update=ax;var r=a.getRadiusAxis(),o=a.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");ox(r,s),ox(o,l),ix(a,e,t),n.push(a),e.coordinateSystem=a,a.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",w["b"]).models[0];0,e.coordinateSystem=t.coordinateSystem}})),n}},lx=sx,cx=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function ux(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var i=e.coordToPoint([t[0],n]),a=e.coordToPoint([t[1],n]);return{x1:i[0],y1:i[1],x2:a[0],y2:a[1]}}function hx(e){var t=e.getRadiusAxis();return t.inverse?0:1}function dx(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var px=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return Object(ee["a"])(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,i=n.polar,a=i.getRadiusAxis().getExtent(),r=n.getTicksCoords(),o=n.getMinorTicksCoords(),s=b["map"](n.getViewLabels(),(function(e){e=b["clone"](e);var t=n.scale,i="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(i),e}));dx(s),dx(r),b["each"](cx,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||fx[t](this.group,e,i,r,o,a,s)}),this)}},t.type="angleAxis",t}(Dr["a"]),fx={axisLine:function(e,t,n,i,a,r){var o,s=t.getModel(["axisLine","lineStyle"]),l=hx(n),c=l?0:1;o=0===r[c]?new Ie["a"]({shape:{cx:n.cx,cy:n.cy,r:r[l]},style:s.getLineStyle(),z2:1,silent:!0}):new Ce["a"]({shape:{cx:n.cx,cy:n.cy,r:r[l],r0:r[c]},style:s.getLineStyle(),z2:1,silent:!0}),o.style.fill=null,e.add(o)},axisTick:function(e,t,n,i,a,r){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=r[hx(n)],c=b["map"](i,(function(e){return new Pe["a"]({shape:ux(n,[l,l+s],e.coord)})}));e.add(_e["mergePath"](c,{style:b["defaults"](o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,i,a,r){if(a.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),c=r[hx(n)],u=[],h=0;h<a.length;h++)for(var d=0;d<a[h].length;d++)u.push(new Pe["a"]({shape:ux(n,[c,c+l],a[h][d].coord)}));e.add(_e["mergePath"](u,{style:b["defaults"](s.getModel("lineStyle").getLineStyle(),b["defaults"](o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,i,a,r,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),c=l.get("margin"),u=t.get("triggerEvent");b["each"](o,(function(i,a){var o=l,h=i.tickValue,d=r[hx(n)],p=n.coordToPoint([d+c,i.coord]),f=n.cx,g=n.cy,y=Math.abs(p[0]-f)/d<.3?"center":p[0]>f?"left":"right",v=Math.abs(p[1]-g)/d<.3?"middle":p[1]>g?"top":"bottom";if(s&&s[h]){var m=s[h];b["isObject"](m)&&m.textStyle&&(o=new F["a"](m.textStyle,l,l.ecModel))}var x=new Me["a"]({silent:Tr["a"].isLabelSilent(t),style:Object(Z["c"])(o,{x:p[0],y:p[1],fill:o.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:y,verticalAlign:v})});if(e.add(x),u){var _=Tr["a"].makeAxisEventDataBase(t);_.targetType="axisLabel",_.value=i.rawLabel,Object(W["a"])(x).eventData=_}}),this)},splitLine:function(e,t,n,i,a,r){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],h=0;h<i.length;h++){var d=c++%l.length;u[d]=u[d]||[],u[d].push(new Pe["a"]({shape:ux(n,r,i[h].coord)}))}for(h=0;h<u.length;h++)e.add(_e["mergePath"](u[h],{style:b["defaults"]({stroke:l[h%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,i,a,r){if(a.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],c=0;c<a.length;c++)for(var u=0;u<a[c].length;u++)l.push(new Pe["a"]({shape:ux(n,r,a[c][u].coord)}));e.add(_e["mergePath"](l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,i,a,r){if(i.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],h=Math.PI/180,d=-i[0].coord*h,p=Math.min(r[0],r[1]),f=Math.max(r[0],r[1]),g=t.get("clockwise"),y=1,v=i.length;y<=v;y++){var m=y===v?i[0].coord:i[y].coord,x=c++%l.length;u[x]=u[x]||[],u[x].push(new Ae["a"]({shape:{cx:n.cx,cy:n.cy,r0:p,r:f,startAngle:d,endAngle:-m*h,clockwise:g},silent:!0})),d=-m*h}for(y=0;y<u.length;y++)e.add(_e["mergePath"](u[y],{style:b["defaults"]({fill:l[y%l.length]},s.getAreaStyle()),silent:!0}))}}},gx=px,yx=["axisLine","axisTickLabel","axisName"],vx=["splitLine","splitArea","minorSplitLine"],mx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return Object(ee["a"])(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=this._axisGroup,i=this._axisGroup=new Se["a"];this.group.add(i);var a=e.axis,r=a.polar,o=r.getAngleAxis(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),c=o.getExtent()[0],u=a.getExtent(),h=xx(r,e,c),d=new Tr["a"](e,h);b["each"](yx,d.add,d),i.add(d.getGroup()),_e["groupTransition"](n,i,e),b["each"](vx,(function(t){e.get([t,"show"])&&!a.scale.isBlank()&&bx[t](this.group,e,r,c,u,s,l)}),this)}},t.type="radiusAxis",t}(Dr["a"]),bx={splitLine:function(e,t,n,i,a,r){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],h=0;h<r.length;h++){var d=c++%l.length;u[d]=u[d]||[],u[d].push(new Ie["a"]({shape:{cx:n.cx,cy:n.cy,r:Math.max(r[h].coord,0)}}))}for(h=0;h<u.length;h++)e.add(_e["mergePath"](u[h],{style:b["defaults"]({stroke:l[h%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,i,a,r,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),c=[],u=0;u<o.length;u++)for(var h=0;h<o[u].length;h++)c.push(new Ie["a"]({shape:{cx:n.cx,cy:n.cy,r:o[u][h].coord}}));e.add(_e["mergePath"](c,{style:b["defaults"]({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,i,a,r){if(r.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],h=r[0].coord,d=1;d<r.length;d++){var p=c++%l.length;u[p]=u[p]||[],u[p].push(new Ae["a"]({shape:{cx:n.cx,cy:n.cy,r0:h,r:r[d].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),h=r[d].coord}for(d=0;d<u.length;d++)e.add(_e["mergePath"](u[d],{style:b["defaults"]({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function xx(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}var _x=mx;function Ox(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function Sx(e,t){return t.dim+e.model.componentIndex}function wx(e,t,n){var i={},a=Mx(b["filter"](t.getSeriesByType(e),(function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type})));t.eachSeriesByType(e,(function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),o=Sx(n,r),s=Ox(e),l=a[o][s],c=l.offset,u=l.width,h=n.getOtherAxis(r),d=e.coordinateSystem.cx,p=e.coordinateSystem.cy,f=e.get("barMinHeight")||0,g=e.get("barMinAngle")||0;i[s]=i[s]||[];for(var y=t.mapDimension(h.dim),v=t.mapDimension(r.dim),m=Object(D["c"])(t,y),b="radius"!==r.dim||!e.get("roundCap",!0),x=h.dataToCoord(0),_=0,O=t.count();_<O;_++){var S=t.get(y,_),w=t.get(v,_),M=S>=0?"p":"n",I=x;m&&(i[s][w]||(i[s][w]={p:x,n:x}),I=i[s][w][M]);var j=void 0,A=void 0,C=void 0,T=void 0;if("radius"===h.dim){var L=h.dataToCoord(S)-x,P=r.dataToCoord(w);Math.abs(L)<f&&(L=(L<0?-1:1)*f),j=I,A=I+L,C=P-c,T=C-u,m&&(i[s][w][M]=A)}else{var k=h.dataToCoord(S,b)-x,N=r.dataToCoord(w);Math.abs(k)<g&&(k=(k<0?-1:1)*g),j=N+c,A=j+u,C=I,T=I+k,m&&(i[s][w][M]=T)}t.setItemLayout(_,{cx:d,cy:p,r0:j,r:A,startAngle:-C*Math.PI/180,endAngle:-T*Math.PI/180,clockwise:C>=T})}}}))}function Mx(e){var t={};b["each"](e,(function(e,n){var i=e.getData(),a=e.coordinateSystem,r=a.getBaseAxis(),o=Sx(a,r),s=r.getExtent(),l="category"===r.type?r.getBandWidth():Math.abs(s[1]-s[0])/i.count(),c=t[o]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},u=c.stacks;t[o]=c;var h=Ox(e);u[h]||c.autoWidthCount++,u[h]=u[h]||{width:0,maxWidth:0};var d=Object(be["q"])(e.get("barWidth"),l),p=Object(be["q"])(e.get("barMaxWidth"),l),f=e.get("barGap"),g=e.get("barCategoryGap");d&&!u[h].width&&(d=Math.min(c.remainedWidth,d),u[h].width=d,c.remainedWidth-=d),p&&(u[h].maxWidth=p),null!=f&&(c.gap=f),null!=g&&(c.categoryGap=g)}));var n={};return b["each"](t,(function(e,t){n[t]={};var i=e.stacks,a=e.bandWidth,r=Object(be["q"])(e.categoryGap,a),o=Object(be["q"])(e.gap,1),s=e.remainedWidth,l=e.autoWidthCount,c=(s-r)/(l+(l-1)*o);c=Math.max(c,0),b["each"](i,(function(e,t){var n=e.maxWidth;n&&n<c&&(n=Math.min(n,s),e.width&&(n=Math.min(n,e.width)),s-=n,e.width=n,l--)})),c=(s-r)/(l+(l-1)*o),c=Math.max(c,0);var u,h=0;b["each"](i,(function(e,t){e.width||(e.width=c),u=e,h+=e.width*(1+o)})),u&&(h-=u.width*o);var d=-h/2;b["each"](i,(function(e,i){n[t][i]=n[t][i]||{offset:d,width:e.width},d+=e.width*(1+o)}))})),n}var Ix=wx,jx={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},Ax={splitNumber:5},Cx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.type="polar",t}(d["a"]);function Tx(e){Object(c["a"])(Nb["a"]),Dr["a"].registerAxisPointerClass("PolarAxisPointer",Fb),e.registerCoordinateSystem("polar",lx),e.registerComponentModel(Wb),e.registerComponentView(Cx),cr(e,"angle",Yb,jx),cr(e,"radius",Xb,Ax),e.registerComponentView(gx),e.registerComponentView(_x),e.registerLayout(Object(b["curry"])(Ix,"bar"))}function Dx(e,t){t=t||{};var n=e.coordinateSystem,i=e.axis,a={},r=i.position,o=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],c={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};a.position=["vertical"===o?c.vertical[r]:l[0],"horizontal"===o?c.horizontal[r]:l[3]];var u={horizontal:0,vertical:1};a.rotation=Math.PI/2*u[o];var h={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=h[r],e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),b["retrieve"](t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var d=t.rotate;return null==d&&(d=e.get(["axisLabel","rotate"])),a.labelRotation="top"===r?-d:d,a.z2=1,a}var Lx=["axisLine","axisTickLabel","axisName"],Px=["splitArea","splitLine"],kx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return Object(ee["a"])(t,e),t.prototype.render=function(t,n,i,a){var r=this.group;r.removeAll();var o=this._axisGroup;this._axisGroup=new Se["a"];var s=Dx(t),l=new Tr["a"](t,s);b["each"](Lx,l.add,l),r.add(this._axisGroup),r.add(l.getGroup()),b["each"](Px,(function(e){t.get([e,"show"])&&Nx[e](this,this.group,this._axisGroup,t)}),this),_e["groupTransition"](o,this._axisGroup,t),e.prototype.render.call(this,t,n,i,a)},t.prototype.remove=function(){kr(this)},t.type="singleAxis",t}(Dr["a"]),Nx={splitLine:function(e,t,n,i){var a=i.axis;if(!a.scale.isBlank()){var r=i.getModel("splitLine"),o=r.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),c=i.coordinateSystem.getRect(),u=a.isHorizontal(),h=[],d=0,p=a.getTicksCoords({tickModel:r}),f=[],g=[],y=0;y<p.length;++y){var v=a.toGlobalCoord(p[y].coord);u?(f[0]=v,f[1]=c.y,g[0]=v,g[1]=c.y+c.height):(f[0]=c.x,f[1]=v,g[0]=c.x+c.width,g[1]=v);var m=new Pe["a"]({shape:{x1:f[0],y1:f[1],x2:g[0],y2:g[1]},silent:!0});_e["subPixelOptimizeLine"](m.shape,l);var x=d++%s.length;h[x]=h[x]||[],h[x].push(m)}var _=o.getLineStyle(["color"]);for(y=0;y<h.length;++y)t.add(_e["mergePath"](h[y],{style:b["defaults"]({stroke:s[y%s.length]},_),silent:!0}))}},splitArea:function(e,t,n,i){Pr(e,n,i,i)}},Rx=kx,Ex=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(h["a"]);Object(b["mixin"])(Ex,G.prototype);var Vx=Ex,zx=function(e){function t(t,n,i,a,r){var o=e.call(this,t,n,i)||this;return o.type=a||"value",o.position=r||"bottom",o}return Object(ee["a"])(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.pointToData=function(e,t){return this.coordinateSystem.pointToData(e)[0]},t}(ht),Bx=zx,Gx=["single"],Fx=function(){function e(e,t,n){this.type="single",this.dimension="single",this.dimensions=Gx,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=this.dimension,a=new Bx(i,B["a"](e),[0,0],e.get("type"),e.get("position")),r="category"===a.type;a.onBand=r&&e.get("boundaryGap"),a.inverse=e.get("inverse"),a.orient=e.get("orient"),e.axis=a,a.model=e,a.coordinateSystem=this,this._axis=a},e.prototype.update=function(e,t){e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();Object(b["each"])(t.mapDimensionsAll(this.dimension),(function(e){this._axis.scale.unionExtentFromData(t,e)}),this),B["i"](this._axis.scale,this._axis.model)}}),this)},e.prototype.resize=function(e,t){this._rect=Object(H["g"])({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),i=n?[0,e.width]:[0,e.height],a=t.inverse?1:0;t.setExtent(i[a],i[1-a]),this._updateAxisTransform(t,n?e.x:e.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),i=n[0]+n[1],a=e.isHorizontal();e.toGlobalCoord=a?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord=a?function(e){return e-t}:function(e){return i-e+t}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis(),i=n.orient;return"horizontal"===i?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),i=[],a="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),i[a]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-a]=0===a?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(e,t,n){var i=Hx(t);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=Hx(t);return i===this?this.pointToData(n):null},e}();function Hx(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var Wx=Fx;function Zx(e,t){var n=[];return e.eachComponent("singleAxis",(function(i,a){var r=new Wx(i,e,t);r.name="single_"+a,r.resize(i,t),i.coordinateSystem=r,n.push(r)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",w["b"]).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n}var Yx={create:Zx,dimensions:Gx},Xx=Yx,Ux=["x","y"],qx=["width","height"],Jx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(ee["a"])(t,e),t.prototype.makeElOption=function(e,t,n,i,a){var r=n.axis,o=r.coordinateSystem,s=Qx(o,1-$x(r)),l=o.dataToPoint(t)[0],c=i.get("type");if(c&&"none"!==c){var u=Vb["b"](i),h=Kx[c](r,l,s);h.style=u,e.graphicKey=h.type,e.pointer=h}var d=Dx(n);Vb["a"](t,e,d,n,i,a)},t.prototype.getHandleTransform=function(e,t,n){var i=Dx(t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var a=Vb["d"](t.axis,e,i);return{x:a[0],y:a[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var a=n.axis,r=a.coordinateSystem,o=$x(a),s=Qx(r,o),l=[e.x,e.y];l[o]+=t[o],l[o]=Math.min(s[1],l[o]),l[o]=Math.max(s[0],l[o]);var c=Qx(r,1-o),u=(c[1]+c[0])/2,h=[u,u];return h[o]=l[o],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(Eb["a"]),Kx={line:function(e,t,n){var i=Vb["f"]([t,n[0]],[t,n[1]],$x(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,n){var i=e.getBandWidth(),a=n[1]-n[0];return{type:"Rect",shape:Vb["g"]([t-i/2,n[0]],[i,a],$x(e))}}};function $x(e){return e.isHorizontal()?0:1}function Qx(e,t){var n=e.getRect();return[n[Ux[t]],n[Ux[t]]+n[qx[t]]]}var e_=Jx,t_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.type="single",t}(d["a"]);function n_(e){Object(c["a"])(Nb["a"]),Dr["a"].registerAxisPointerClass("SingleAxisPointer",e_),e.registerComponentView(t_),e.registerComponentView(Rx),e.registerComponentModel(Vx),cr(e,"single",Vx,Vx.defaultOption),e.registerCoordinateSystem("single",Xx)}var i_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.init=function(t,n,i){var a=Object(H["f"])(t);e.prototype.init.apply(this,arguments),a_(t,a)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),a_(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(h["a"]);function a_(e,t){var n,i=e.cellSize;n=b["isArray"](i)?i:e.cellSize=[i,i],1===n.length&&(n[1]=n[0]);var a=b["map"]([0,1],(function(e){return Object(H["j"])(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));Object(H["h"])(e,t,{type:"box",ignoreSize:a})}var r_=i_,o_=n("ef59"),s_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll();var a=e.coordinateSystem,r=a.getRangeInfo(),o=a.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,r,i),this._renderLines(e,r,o,i),this._renderYearText(e,r,o,i),this._renderMonthText(e,s,o,i),this._renderWeekText(e,s,r,o,i)},t.prototype._renderDayRect=function(e,t,n){for(var i=e.coordinateSystem,a=e.getModel("itemStyle").getItemStyle(),r=i.getCellWidth(),o=i.getCellHeight(),s=t.start.time;s<=t.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,c=new Le["a"]({shape:{x:l[0],y:l[1],width:r,height:o},cursor:"default",style:a});n.add(c)}},t.prototype._renderLines=function(e,t,n,i){var a=this,r=e.coordinateSystem,o=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=t.start,u=0;c.time<=t.end.time;u++){d(c.formatedDate),0===u&&(c=r.getDateInfo(t.start.y+"-"+t.start.m));var h=c.date;h.setMonth(h.getMonth()+1),c=r.getDateInfo(h)}function d(t){a._firstDayOfMonth.push(r.getDateInfo(t)),a._firstDayPoints.push(r.dataToRect([t],!1).tl);var l=a._getLinePointsOfOneWeek(e,t,n);a._tlpoints.push(l[0]),a._blpoints.push(l[l.length-1]),s&&a._drawSplitline(l,o,i)}d(r.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(a._getEdgesPoints(a._tlpoints,l,n),o,i),s&&this._drawSplitline(a._getEdgesPoints(a._blpoints,l,n),o,i)},t.prototype._getEdgesPoints=function(e,t,n){var i=[e[0].slice(),e[e.length-1].slice()],a="horizontal"===n?0:1;return i[0][a]=i[0][a]-t/2,i[1][a]=i[1][a]+t/2,i},t.prototype._drawSplitline=function(e,t,n){var i=new De["a"]({z2:20,shape:{points:e},style:t});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var i=e.coordinateSystem,a=i.getDateInfo(t),r=[],o=0;o<7;o++){var s=i.getNextNDay(a.time,o),l=i.dataToRect([s.time],!1);r[2*s.day]=l.tl,r[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return r},t.prototype._formatterLabel=function(e,t){return Object(b["isString"])(e)&&e?Object(Be["f"])(e,t):Object(b["isFunction"])(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,i,a){var r=t[0],o=t[1],s=["center","bottom"];"bottom"===i?(o+=a,s=["center","top"]):"left"===i?r-=a:"right"===i?(r+=a,s=["center","top"]):o-=a;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:r,y:o,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,i){var a=e.getModel("yearLabel");if(a.get("show")){var r=a.get("margin"),o=a.get("position");o||(o="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,c=(s[0][1]+s[1][1])/2,u="horizontal"===n?0:1,h={top:[l,s[u][1]],bottom:[l,s[1-u][1]],left:[s[1-u][0],c],right:[s[u][0],c]},d=t.start.y;+t.end.y>+t.start.y&&(d=d+"-"+t.end.y);var p=a.get("formatter"),f={start:t.start.y,end:t.end.y,nameMap:d},g=this._formatterLabel(p,f),y=new Me["a"]({z2:30,style:Object(Z["c"])(a,{text:g})});y.attr(this._yearTextPositionControl(y,h[o],n,o,r)),i.add(y)}},t.prototype._monthTextPositionControl=function(e,t,n,i,a){var r="left",o="top",s=e[0],l=e[1];return"horizontal"===n?(l+=a,t&&(r="center"),"start"===i&&(o="bottom")):(s+=a,t&&(o="middle"),"start"===i&&(r="right")),{x:s,y:l,align:r,verticalAlign:o}},t.prototype._renderMonthText=function(e,t,n,i){var a=e.getModel("monthLabel");if(a.get("show")){var r=a.get("nameMap"),o=a.get("margin"),s=a.get("position"),l=a.get("align"),c=[this._tlpoints,this._blpoints];r&&!Object(b["isString"])(r)||(r&&(t=Object(o_["d"])(r)||t),r=t.get(["time","monthAbbr"])||[]);var u="start"===s?0:1,h="horizontal"===n?0:1;o="start"===s?-o:o;for(var d="center"===l,p=0;p<c[u].length-1;p++){var f=c[u][p].slice(),g=this._firstDayOfMonth[p];if(d){var y=this._firstDayPoints[p];f[h]=(y[h]+c[0][p+1][h])/2}var v=a.get("formatter"),m=r[+g.m-1],x={yyyy:g.y,yy:(g.y+"").slice(2),MM:g.m,M:+g.m,nameMap:m},_=this._formatterLabel(v,x),O=new Me["a"]({z2:30,style:Object(b["extend"])(Object(Z["c"])(a,{text:_}),this._monthTextPositionControl(f,d,n,s,o))});i.add(O)}}},t.prototype._weekTextPositionControl=function(e,t,n,i,a){var r="center",o="middle",s=e[0],l=e[1],c="start"===n;return"horizontal"===t?(s=s+i+(c?1:-1)*a[0]/2,r=c?"right":"left"):(l=l+i+(c?1:-1)*a[1]/2,o=c?"bottom":"top"),{x:s,y:l,align:r,verticalAlign:o}},t.prototype._renderWeekText=function(e,t,n,i,a){var r=e.getModel("dayLabel");if(r.get("show")){var o=e.coordinateSystem,s=r.get("position"),l=r.get("nameMap"),c=r.get("margin"),u=o.getFirstDayOfWeek();if(!l||Object(b["isString"])(l)){l&&(t=Object(o_["d"])(l)||t);var h=t.get(["time","dayOfWeekShort"]);l=h||Object(b["map"])(t.get(["time","dayOfWeekAbbr"]),(function(e){return e[0]}))}var d=o.getNextNDay(n.end.time,7-n.lweek).time,p=[o.getCellWidth(),o.getCellHeight()];c=Object(be["q"])(c,Math.min(p[1],p[0])),"start"===s&&(d=o.getNextNDay(n.start.time,-(7+n.fweek)).time,c=-c);for(var f=0;f<7;f++){var g=o.getNextNDay(d,f),y=o.dataToRect([g.time],!1).center,v=f;v=Math.abs((f+u)%7);var m=new Me["a"]({z2:30,style:Object(b["extend"])(Object(Z["c"])(r,{text:l[v]}),this._weekTextPositionControl(y,i,s,c,p))});a.add(m)}}},t.type="calendar",t}(d["a"]),l_=s_,c_=864e5,u_=function(){function e(t,n,i){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(e){e=be["p"](e);var t=e.getFullYear(),n=e.getMonth()+1,i=n<10?"0"+n:""+n,a=e.getDate(),r=a<10?"0"+a:""+a,o=e.getDay();return o=Math.abs((o+7-this.getFirstDayOfWeek())%7),{y:t+"",m:i,d:r,day:o,time:e.getTime(),formatedDate:t+"-"+i+"-"+r,date:e}},e.prototype.getNextNDay=function(e,t){return t=t||0,0===t||(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t)),this.getDateInfo(e)},e.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],a=this._model.getCellSize().slice(),r=this._model.getBoxLayoutParams(),o="horizontal"===this._orient?[n,7]:[7,n];b["each"]([0,1],(function(e){c(a,e)&&(r[i[e]]=a[e]*o[e])}));var s={width:t.getWidth(),height:t.getHeight()},l=this._rect=H["g"](r,s);function c(e,t){return null!=e[t]&&"auto"!==e[t]}b["each"]([0,1],(function(e){c(a,e)||(a[e]=l[i[e]]/o[e])})),this._sw=a[0],this._sh=a[1]},e.prototype.dataToPoint=function(e,t){b["isArray"](e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),i=this._rangeInfo,a=n.formatedDate;if(t&&!(n.time>=i.start.time&&n.time<i.end.time+c_))return[NaN,NaN];var r=n.day,o=this._getRangeInfo([i.start.time,a]).nthWeek;return"vertical"===this._orient?[this._rect.x+r*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]:[this._rect.x+o*this._sw+this._sw/2,this._rect.y+r*this._sh+this._sh/2]},e.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},e.prototype.dataToRect=function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,i):this._getDateByWeeksAndDay(t,n-1,i)},e.prototype.convertToPixel=function(e,t,n){var i=h_(t);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=h_(t);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var e,t=this._model.get("range");if(b["isArray"](t)&&1===t.length&&(t=t[0]),b["isArray"](t))e=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),a=i.date;a.setMonth(a.getMonth()+1);var r=this.getNextNDay(a,-1);e=[i.formatedDate,r.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return t;var o=this._getRangeInfo(e);return o.start.time>o.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var i=Math.floor(n[1].time/c_)-Math.floor(n[0].time/c_)+1,a=new Date(n[0].time),r=a.getDate(),o=n[1].date.getDate();a.setDate(r+i-1);var s=a.getDate();if(s!==o){var l=a.getTime()-n[1].time>0?1:-1;while((s=a.getDate())!==o&&(a.getTime()-n[1].time)*l>0)i-=l,a.setDate(s-l)}var c=Math.floor((i+n[0].day+6)/7),u=t?1-c:c-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:c,nthWeek:u,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var i=this._getRangeInfo(n);if(e>i.weeks||0===e&&t<i.fweek||e===i.weeks&&t>i.lweek)return null;var a=7*(e-1)-i.fweek+t,r=new Date(i.start.time);return r.setDate(+i.start.d+a),this.getDateInfo(r)},e.create=function(t,n){var i=[];return t.eachComponent("calendar",(function(a){var r=new e(a,t,n);i.push(r),a.coordinateSystem=r})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("calendarIndex")||0])})),i},e.dimensions=["time","value"],e}();function h_(e){var t=e.calendarModel,n=e.seriesModel,i=t?t.coordinateSystem:n?n.coordinateSystem:null;return i}var d_=u_;function p_(e){e.registerComponentModel(r_),e.registerComponentView(l_),e.registerCoordinateSystem("calendar",d_)}function f_(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var i=t.parentOption;i?t.parentId=i.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function g_(e,t){var n;return b["each"](t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}function y_(e,t,n){var i=b["extend"]({},n),a=e[t],r=n.$action||"merge";"merge"===r?a?(b["merge"](a,i,!0),Object(H["h"])(a,i,{ignoreSize:!0}),Object(H["c"])(n,a),b_(n,a),b_(n,a,"shape"),b_(n,a,"style"),b_(n,a,"extra"),n.clipPath=a.clipPath):e[t]=i:"replace"===r?e[t]=i:"remove"===r&&a&&(e[t]=null)}var v_=["transition","enterFrom","leaveTo"],m_=v_.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function b_(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var i=n?v_:m_,a=0;a<i.length;a++){var r=i[a];null==e[r]&&null!=t[r]&&(e[r]=t[r])}}function x_(e,t){if(e&&(e.hv=t.hv=[g_(t,["left","right"]),g_(t,["top","bottom"])],"group"===e.type)){var n=e,i=t;null==n.width&&(n.width=i.width=0),null==n.height&&(n.height=i.height=0)}}var __=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return Object(ee["a"])(t,e),t.prototype.mergeOption=function(t,n){var i=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=i},t.prototype.optionUpdated=function(e,t){var n=this.option,i=(t?n:e).elements,a=n.elements=t?[]:n.elements,r=[];this._flatten(i,r,null);var o=w["q"](a,r,"normalMerge"),s=this._elOptionsToUpdate=[];b["each"](o,(function(e,t){var n=e.newOption;n&&(s.push(n),f_(e,n),y_(a,t,n),x_(a[t],n))}),this),n.elements=b["filter"](a,(function(e){return e&&delete e.$action,null!=e}))},t.prototype._flatten=function(e,t,n){b["each"](e,(function(e){if(e){n&&(e.parentOption=n),t.push(e);var i=e.children;i&&i.length&&this._flatten(i,t,e),delete e.children}}),this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(h["a"]),O_={path:null,compoundPath:null,group:Se["a"],image:we["a"],text:Me["a"]},S_=w["o"](),w_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.init=function(){this._elMap=b["createHashMap"]()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,i=this.group,a=e.get("z"),r=e.get("zlevel");b["each"](t,(function(t){var o=w["e"](t.id,null),s=null!=o?n.get(o):null,l=w["e"](t.parentId,null),c=null!=l?n.get(l):i,u=t.type,h=t.style;"text"===u&&h&&t.hv&&t.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);var d=t.textContent,p=t.textConfig;if(h&&mm(h,u,!!p,!!d)){var f=bm(h,u,!0);!p&&f.textConfig&&(p=t.textConfig=f.textConfig),!d&&f.textContent&&(d=f.textContent)}var g=C_(t);var y=t.$action||"merge",v="merge"===y,m="replace"===y;if(v){var b=!s,x=s;b?x=I_(o,c,t.type,n):(x&&(S_(x).isNew=!1),Xm(x)),x&&(Cm(x,g,e,{isInit:b}),A_(x,t,a,r))}else if(m){j_(s,t,n,e);var _=I_(o,c,t.type,n);_&&(Cm(_,g,e,{isInit:!0}),A_(_,t,a,r))}else"remove"===y&&(Tm(s,t),j_(s,t,n,e));var O=n.get(o);if(O&&d)if(v){var S=O.getTextContent();S?S.attr(d):O.setTextContent(new Me["a"](d))}else m&&O.setTextContent(new Me["a"](d));if(O){var M=t.clipPath;if(M){var I=M.type,j=void 0;b=!1;if(v){var A=O.getClipPath();b=!A||S_(A).type!==I,j=b?M_(I):A}else m&&(b=!0,j=M_(I));O.setClipPath(j),Cm(j,M,e,{isInit:b}),Um(j,M.keyframeAnimation,e)}var C=S_(O);O.setTextConfig(p),C.option=t,T_(O,e,t),_e["setTooltipConfig"]({el:O,componentModel:e,itemName:O.name,itemTooltipOption:t.tooltip}),Um(O,t.keyframeAnimation,e)}}))}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,i=this.group,a=this._elMap,r=t.getWidth(),o=t.getHeight(),s=["x","y"],l=0;l<n.length;l++){var c=n[l],u=w["e"](c.id,null),h=null!=u?a.get(u):null;if(h&&h.isGroup){var d=h.parent,p=d===i,f=S_(h),g=S_(d);f.width=Object(be["q"])(f.option.width,p?r:g.width)||0,f.height=Object(be["q"])(f.option.height,p?o:g.height)||0}}for(l=n.length-1;l>=0;l--){c=n[l],u=w["e"](c.id,null),h=null!=u?a.get(u):null;if(h){d=h.parent,g=S_(d);var y=d===i?{width:r,height:o}:{width:g.width,height:g.height},v={},m=H["i"](h,c,y,null,{hv:c.hv,boundingMode:c.bounding},v);if(!S_(h).isNew&&m){for(var x=c.transition,_={},O=0;O<s.length;O++){var S=s[O],M=v[S];x&&(Lm(x)||b["indexOf"](x,S)>=0)?_[S]=M:h[S]=M}Object(Oe["h"])(h,_,e,0)}else h.attr(v)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(n){j_(n,S_(n).option,t,e._lastGraphicModel)})),this._elMap=b["createHashMap"]()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(d["a"]);function M_(e){var t=b["hasOwn"](O_,e)?O_[e]:_e["getShapeClass"](e);var n=new t({});return S_(n).type=e,n}function I_(e,t,n,i){var a=M_(n);return t.add(a),i.set(e,a),S_(a).id=e,S_(a).isNew=!0,a}function j_(e,t,n,i){var a=e&&e.parent;a&&("group"===e.type&&e.traverse((function(e){j_(e,t,n,i)})),Dm(e,t,i),n.removeKey(S_(e).id))}function A_(e,t,n,i){e.isGroup||b["each"]([["cursor",As["c"].prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];b["hasOwn"](t,i)?e[i]=b["retrieve2"](t[i],n[1]):null==e[i]&&(e[i]=n[1])})),b["each"](b["keys"](t),(function(n){if(0===n.indexOf("on")){var i=t[n];e[n]=b["isFunction"](i)?i:null}})),b["hasOwn"](t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}function C_(e){return e=b["extend"]({},e),b["each"](["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(H["a"]),(function(t){delete e[t]})),e}function T_(e,t,n){var i=Object(W["a"])(e).eventData;e.silent||e.ignore||i||(i=Object(W["a"])(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),i&&(i.info=n.info)}function D_(e){e.registerComponentModel(__),e.registerComponentView(w_),e.registerPreprocessor((function(e){var t=e.graphic;Object(b["isArray"])(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}))}var L_=["x","y","radius","angle","single"],P_=["cartesian2d","polar","singleAxis"];function k_(e){var t=e.get("coordinateSystem");return Object(b["indexOf"])(P_,t)>=0}function N_(e){return e+"Axis"}function R_(e,t){var n,i=Object(b["createHashMap"])(),a=[],r=Object(b["createHashMap"])();e.eachComponent({mainType:"dataZoom",query:t},(function(e){r.get(e.uid)||s(e)}));do{n=!1,e.eachComponent("dataZoom",o)}while(n);function o(e){!r.get(e.uid)&&l(e)&&(s(e),n=!0)}function s(e){r.set(e.uid,!0),a.push(e),c(e)}function l(e){var t=!1;return e.eachTargetAxis((function(e,n){var a=i.get(e);a&&a[n]&&(t=!0)})),t}function c(e){e.eachTargetAxis((function(e,t){(i.get(e)||i.set(e,[]))[t]=!0}))}return a}function E_(e){var t=e.ecModel,n={infoList:[],infoMap:Object(b["createHashMap"])()};return e.eachTargetAxis((function(e,i){var a=t.getComponent(N_(e),i);if(a){var r=a.getCoordSysModel();if(r){var o=r.uid,s=n.infoMap.get(o);s||(s={model:r,axisModels:[]},n.infoList.push(s),n.infoMap.set(o,s)),s.axisModels.push(a)}}})),n}var V_=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),z_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return Object(ee["a"])(t,e),t.prototype.init=function(e,t,n){var i=B_(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var t=B_(e);Object(b["merge"])(this.option,e,!0),Object(b["merge"])(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;Object(b["each"])([["start","startValue"],["end","endValue"]],(function(e,i){"value"===this._rangePropMode[i]&&(t[e[0]]=n[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=Object(b["createHashMap"])(),n=this._fillSpecifiedTargetAxis(t);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each((function(e){e.indexList.length&&(this._noTarget=!1)}),this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return Object(b["each"])(L_,(function(n){var i=this.getReferringComponents(N_(n),w["a"]);if(i.specified){t=!0;var a=new V_;Object(b["each"])(i.models,(function(e){a.add(e.componentIndex)})),e.set(n,a)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,i=!0;if(i){var a="vertical"===t?"y":"x",r=n.findComponents({mainType:a+"Axis"});o(r,a)}if(i){r=n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}});o(r,"single")}function o(t,n){var a=t[0];if(a){var r=new V_;if(r.add(a.componentIndex),e.set(n,r),i=!1,"x"===n||"y"===n){var o=a.getReferringComponents("grid",w["b"]).models[0];o&&Object(b["each"])(t,(function(e){a.componentIndex!==e.componentIndex&&o===e.getReferringComponents("grid",w["b"]).models[0]&&r.add(e.componentIndex)}))}}}i&&Object(b["each"])(L_,(function(t){if(i){var a=n.findComponents({mainType:N_(t),filter:function(e){return"category"===e.get("type",!0)}});if(a[0]){var r=new V_;r.add(a[0].componentIndex),e.set(t,r),i=!1}}}),this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis((function(t){!e&&(e=t)}),this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");Object(b["each"])([["start","startValue"],["end","endValue"]],(function(i,a){var r=null!=e[i[0]],o=null!=e[i[1]];r&&!o?t[a]="percent":!r&&o?t[a]="value":n?t[a]=n[a]:r&&(t[a]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,n){null==e&&(e=this.ecModel.getComponent(N_(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,i){Object(b["each"])(n.indexList,(function(n){e.call(t,i,n)}))}))},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(N_(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;Object(b["each"])([["start","startValue"],["end","endValue"]],(function(i){null==e[i[0]]&&null==e[i[1]]||(t[i[0]]=n[i[0]]=e[i[0]],t[i[1]]=n[i[1]]=e[i[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;Object(b["each"])(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var a=n[i],r=this._targetAxisInfoMap.get(a),o=0;o<r.indexList.length;o++){var s=this.getAxisProxy(a,r.indexList[o]);if(s.hostedBy(this))return s;t||(t=s)}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(h["a"]);function B_(e){var t={};return Object(b["each"])(["start","end","startValue","endValue","throttle"],(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}var G_=z_,F_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.type="dataZoom.select",t}(G_),H_=F_,W_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.render=function(e,t,n,i){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type="dataZoom",t}(d["a"]),Z_=W_,Y_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.type="dataZoom.select",t}(Z_),X_=Y_,U_=n("538f"),q_=b["each"],J_=be["c"],K_=function(){function e(e,t,n,i){this._dimName=e,this._axisIndex=t,this.ecModel=i,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries((function(t){if(k_(t)){var n=N_(this._dimName),i=t.getReferringComponents(n,w["b"]).models[0];i&&this._axisIndex===i.componentIndex&&e.push(t)}}),this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return b["clone"](this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,n=this._dataExtent,i=this.getAxisModel(),a=i.axis.scale,r=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[];q_(["start","end"],(function(i,c){var u=e[i],h=e[i+"Value"];"percent"===r[c]?(null==u&&(u=o[c]),h=a.parse(be["m"](u,o,n))):(t=!0,h=null==h?n[c]:a.parse(h),u=be["m"](h,n,o)),l[c]=h,s[c]=u})),J_(l),J_(s);var c=this._minMaxSpan;function u(e,t,n,i,r){var o=r?"Span":"ValueSpan";op(0,e,n,"all",c["min"+o],c["max"+o]);for(var s=0;s<2;s++)t[s]=be["m"](e[s],n,i,!0),r&&(t[s]=a.parse(t[s]))}return t?u(l,s,n,o,!1):u(s,l,o,n,!0),{valueWindow:l,percentWindow:s}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=$_(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),a=e.get("filterMode"),r=this._valueWindow;"none"!==a&&q_(i,(function(e){var t=e.getData(),i=t.mapDimensionsAll(n);if(i.length){if("weakFilter"===a){var s=t.getStore(),l=b["map"](i,(function(e){return t.getDimensionIndex(e)}),t);t.filterSelf((function(e){for(var t,n,a,o=0;o<i.length;o++){var c=s.get(l[o],e),u=!isNaN(c),h=c<r[0],d=c>r[1];if(u&&!h&&!d)return!0;u&&(a=!0),h&&(t=!0),d&&(n=!0)}return a&&t&&n}))}else q_(i,(function(n){if("empty"===a)e.setData(t=t.map(n,(function(e){return o(e)?e:NaN})));else{var i={};i[n]=r,t.selectRange(i)}}));q_(i,(function(e){t.setApproximateExtent(r,e)}))}}))}function o(e){return e>=r[0]&&e<=r[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;q_(["min","max"],(function(i){var a=t.get(i+"Span"),r=t.get(i+"ValueSpan");null!=r&&(r=this.getAxisModel().axis.scale.parse(r)),null!=r?a=be["m"](n[0]+r,n,[0,100],!0):null!=a&&(r=be["m"](a,[0,100],n,!0)-n[0]),e[i+"Span"]=a,e[i+"ValueSpan"]=r}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var i=be["g"](n,[0,500]);i=Math.min(i,20);var a=e.axis.scale.rawExtentInfo;0!==t[0]&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==t[1]&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},e}();function $_(e,t,n){var i=[1/0,-1/0];q_(n,(function(e){Object(B["k"])(i,e.getData(),t)}));var a=e.getAxisModel(),r=Object(U_["a"])(a.axis.scale,a,i).calculate();return[r.min,r.max]}var Q_=K_,eO={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,a){var r=e.getComponent(N_(i),a);t(i,a,r,n)}))}))}t((function(e,t,n,i){n.__dzAxisProxy=null}));var n=[];t((function(t,i,a,r){a.__dzAxisProxy||(a.__dzAxisProxy=new Q_(t,i,r,e),n.push(a.__dzAxisProxy))}));var i=Object(b["createHashMap"])();return Object(b["each"])(n,(function(e){Object(b["each"])(e.getTargetSeriesModels(),(function(e){i.set(e.uid,e)}))})),i},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,n){e.getAxisProxy(t,n).reset(e)})),e.eachTargetAxis((function(n,i){e.getAxisProxy(n,i).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),i=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}},tO=eO;function nO(e){e.registerAction("dataZoom",(function(e,t){var n=R_(t,e);Object(b["each"])(n,(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}var iO=!1;function aO(e){iO||(iO=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,tO),nO(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function rO(e){e.registerComponentModel(H_),e.registerComponentView(X_),aO(e)}var oO=function(){function e(){}return e}(),sO={};function lO(e,t){sO[e]=t}function cO(e){return sO[e]}var uO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;b["each"](this.option.feature,(function(e,n){var i=cO(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),b["merge"](e,i.defaultOption))}))},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(h["a"]),hO=uO,dO=n("7919"),pO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(ee["a"])(t,e),t.prototype.render=function(e,t,n,i){var a=this.group;if(a.removeAll(),e.get("show")){var r=+e.get("itemSize"),o="vertical"===e.get("orient"),s=e.get("feature")||{},l=this._features||(this._features={}),c=[];b["each"](s,(function(e,t){c.push(t)})),new Cc["a"](this._featureNames||[],c).add(u).update(u).remove(b["curry"](u,null)).execute(),this._featureNames=c,dO["a"](a,e,n),a.add(dO["b"](a.getBoundingRect(),e)),o||a.eachChild((function(e){var t=e.__title,i=e.ensureState("emphasis"),o=i.textConfig||(i.textConfig={}),s=e.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!b["isFunction"](l)&&t){var c=l.style||(l.style={}),u=Ze["d"](t,Me["a"].makeFont(c)),h=e.x+a.x,d=e.y+a.y+r,p=!1;d+u.height>n.getHeight()&&(o.position="top",p=!0);var f=p?-5-u.height:r+10;h+u.width/2>n.getWidth()?(o.position=["100%",f],c.align="right"):h-u.width/2<0&&(o.position=[0,f],c.align="left")}}))}function u(a,r){var o,u=c[a],d=c[r],p=s[u],f=new F["a"](p,e,e.ecModel);if(i&&null!=i.newTitle&&i.featureName===u&&(p.title=i.newTitle),u&&!d){if(fO(u))o={onclick:f.option.onclick,featureName:u};else{var g=cO(u);if(!g)return;o=new g}l[u]=o}else if(o=l[d],!o)return;o.uid=Object(la["c"])("toolbox-feature"),o.model=f,o.ecModel=t,o.api=n;var y=o instanceof oO;u||!d?!f.get("show")||y&&o.unusable?y&&o.remove&&o.remove(t,n):(h(f,o,u),f.setIconStatus=function(e,t){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,i[e]&&("emphasis"===t?X["r"]:X["C"])(i[e])},o instanceof oO&&o.render&&o.render(f,t,n,i)):y&&o.dispose&&o.dispose(t,n)}function h(i,s,l){var c,u,h=i.getModel("iconStyle"),d=i.getModel(["emphasis","iconStyle"]),p=s instanceof oO&&s.getIcons?s.getIcons():i.get("icon"),f=i.get("title")||{};b["isString"](p)?(c={},c[l]=p):c=p,b["isString"](f)?(u={},u[l]=f):u=f;var g=i.iconPaths={};b["each"](c,(function(l,c){var p=_e["createIcon"](l,{},{x:-r/2,y:-r/2,width:r,height:r});p.setStyle(h.getItemStyle());var f=p.ensureState("emphasis");f.style=d.getItemStyle();var y=new Me["a"]({style:{text:u[c],align:d.get("textAlign"),borderRadius:d.get("textBorderRadius"),padding:d.get("textPadding"),fill:null},ignore:!0});p.setTextContent(y),_e["setTooltipConfig"]({el:p,componentModel:e,itemName:c,formatterParamsExtra:{title:u[c]}}),p.__title=u[c],p.on("mouseover",(function(){var t=d.getItemStyle(),i=o?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";y.setStyle({fill:d.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:d.get("textBackgroundColor")}),p.setTextConfig({position:d.get("textPosition")||i}),y.ignore=!e.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",c])&&n.leaveEmphasis(this),y.hide()})),("emphasis"===i.get(["iconStatus",c])?X["r"]:X["C"])(p),a.add(p),p.on("click",b["bind"](s.onclick,s,t,n,c)),g[c]=p}))}},t.prototype.updateView=function(e,t,n,i){b["each"](this._features,(function(e){e instanceof oO&&e.updateView&&e.updateView(e.model,t,n,i)}))},t.prototype.remove=function(e,t){b["each"](this._features,(function(n){n instanceof oO&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){b["each"](this._features,(function(n){n instanceof oO&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(d["a"]);function fO(e){return 0===e.indexOf("my")}var gO=pO,yO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(ee["a"])(t,e),t.prototype.onclick=function(e,t){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",a="svg"===t.getZr().painter.getType(),r=a?"svg":n.get("type",!0)||"png",o=t.getConnectedDataURL({type:r,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=We["a"].browser;if(Object(b["isFunction"])(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement("a");l.download=i+"."+r,l.target="_blank",l.href=o;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||a){var u=o.split(","),h=u[0].indexOf("base64")>-1,d=a?decodeURIComponent(u[1]):u[1];h&&(d=window.atob(d));var p=i+"."+r;if(window.navigator.msSaveOrOpenBlob){var f=d.length,g=new Uint8Array(f);while(f--)g[f]=d.charCodeAt(f);var y=new Blob([g]);window.navigator.msSaveOrOpenBlob(y,p)}else{var v=document.createElement("iframe");document.body.appendChild(v);var m=v.contentWindow,x=m.document;x.open("image/svg+xml","replace"),x.write(d),x.close(),m.focus(),x.execCommand("SaveAs",!0,p),document.body.removeChild(v)}}else{var _=n.get("lang"),O='<body style="margin:0;"><img src="'+o+'" style="max-width:100%;" title="'+(_&&_[0]||"")+'" /></body>',S=window.open();S.document.write(O),S.document.title=i}},t.getDefaultOption=function(e){var t={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return t},t}(oO),vO=yO,mO="__ec_magicType_stack__",bO=[["line","bar"],["stack"]],xO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(ee["a"])(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return b["each"](e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n},t.getDefaultOption=function(e){var t={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return t},t.prototype.onclick=function(e,t,n){var i=this.model,a=i.get(["seriesIndex",n]);if(_O[n]){var r,o={series:[]},s=function(e){var t=e.subType,a=e.id,r=_O[n](t,a,e,i);r&&(b["defaults"](r,e.option),o.series.push(r));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var c=l.dim,u=c+"Axis",h=e.getReferringComponents(u,w["b"]).models[0],d=h.componentIndex;o[u]=o[u]||[];for(var p=0;p<=d;p++)o[u][d]=o[u][d]||{};o[u][d].boundaryGap="bar"===n}}};b["each"](bO,(function(e){b["indexOf"](e,n)>=0&&b["each"](e,(function(e){i.setIconStatus(e,"normal")}))})),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==a?null:{seriesIndex:a}},s);var l=n;"stack"===n&&(r=b["merge"]({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(l="tiled")),t.dispatchAction({type:"changeMagicType",currentType:l,newOption:o,newTitle:r,featureName:"magicType"})}},t}(oO),_O={line:function(e,t,n,i){if("bar"===e)return b["merge"]({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(e,t,n,i){if("line"===e)return b["merge"]({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(e,t,n,i){var a=n.get("stack")===mO;if("line"===e||"bar"===e)return i.setIconStatus("stack",a?"normal":"emphasis"),b["merge"]({id:t,stack:a?"":mO},i.get(["option","stack"])||{},!0)}};u["m"]({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));var OO=xO,SO=new Array(60).join("-"),wO="\t";function MO(e){var t={},n=[],i=[];return e.eachRawSeries((function(e){var a=e.coordinateSystem;if(!a||"cartesian2d"!==a.type&&"polar"!==a.type)n.push(e);else{var r=a.getBaseAxis();if("category"===r.type){var o=r.dim+"_"+r.index;t[o]||(t[o]={categoryAxis:r,valueAxis:a.getOtherAxis(r),series:[]},i.push({axisDim:r.dim,axisIndex:r.index})),t[o].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:i}}function IO(e){var t=[];return b["each"](e,(function(e,n){var i=e.categoryAxis,a=e.valueAxis,r=a.dim,o=[" "].concat(b["map"](e.series,(function(e){return e.name}))),s=[i.model.getCategories()];b["each"](e.series,(function(e){var t=e.getRawData();s.push(e.getRawData().mapArray(t.mapDimension(r),(function(e){return e})))}));for(var l=[o.join(wO)],c=0;c<s[0].length;c++){for(var u=[],h=0;h<s.length;h++)u.push(s[h][c]);l.push(u.join(wO))}t.push(l.join("\n"))})),t.join("\n\n"+SO+"\n\n")}function jO(e){return b["map"](e,(function(e){var t=e.getRawData(),n=[e.name],i=[];return t.each(t.dimensions,(function(){for(var e=arguments.length,a=arguments[e-1],r=t.getName(a),o=0;o<e-1;o++)i[o]=arguments[o];n.push((r?r+wO:"")+i.join(wO))})),n.join("\n")})).join("\n\n"+SO+"\n\n")}function AO(e){var t=MO(e);return{value:b["filter"]([IO(t.seriesGroupByCategoryAxis),jO(t.other)],(function(e){return!!e.replace(/[\n\t\s]/g,"")})).join("\n\n"+SO+"\n\n"),meta:t.meta}}function CO(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function TO(e){var t=e.slice(0,e.indexOf("\n"));if(t.indexOf(wO)>=0)return!0}var DO=new RegExp("["+wO+"]+","g");function LO(e){for(var t=e.split(/\n+/g),n=CO(t.shift()).split(DO),i=[],a=b["map"](n,(function(e){return{name:e,data:[]}})),r=0;r<t.length;r++){var o=CO(t[r]).split(DO);i.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[r]=o[s])}return{series:a,categories:i}}function PO(e){for(var t=e.split(/\n+/g),n=CO(t.shift()),i=[],a=0;a<t.length;a++){var r=CO(t[a]);if(r){var o=r.split(DO),s="",l=void 0,c=!1;isNaN(o[0])?(c=!0,s=o[0],o=o.slice(1),i[a]={name:s,value:[]},l=i[a].value):l=i[a]=[];for(var u=0;u<o.length;u++)l.push(+o[u]);1===l.length&&(c?i[a].value=l[0]:i[a]=l[0])}}return{name:n,data:i}}function kO(e,t){var n=e.split(new RegExp("\n*"+SO+"\n*","g")),i={series:[]};return b["each"](n,(function(e,n){if(TO(e)){var a=LO(e),r=t[n],o=r.axisDim+"Axis";r&&(i[o]=i[o]||[],i[o][r.axisIndex]={data:a.categories},i.series=i.series.concat(a.series))}else{a=PO(e);i.series.push(a)}})),i}var NO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(ee["a"])(t,e),t.prototype.onclick=function(e,t){setTimeout((function(){t.dispatchAction({type:"hideTip"})}));var n=t.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var a=document.createElement("div");a.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",a.style.backgroundColor=i.get("backgroundColor")||"#fff";var r=document.createElement("h4"),o=i.get("lang")||[];r.innerHTML=o[0]||i.get("title"),r.style.cssText="margin:10px 20px",r.style.color=i.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var c=i.get("optionToContent"),u=i.get("contentToOption"),h=AO(e);if(b["isFunction"](c)){var d=c(t.getOption());b["isString"](d)?s.innerHTML=d:b["isDom"](d)&&s.appendChild(d)}else{l.readOnly=i.get("readOnly");var p=l.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),l.value=h.value,s.appendChild(l)}var f=h.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",v=document.createElement("div"),m=document.createElement("div");y+=";background-color:"+i.get("buttonColor"),y+=";color:"+i.get("buttonTextColor");var x=this;function _(){n.removeChild(a),x._dom=null}Object(mo["a"])(v,"click",_),Object(mo["a"])(m,"click",(function(){if(null==u&&null!=c||null!=u&&null==c)_();else{var e;try{e=b["isFunction"](u)?u(s,t.getOption()):kO(l.value,f)}catch(n){throw _(),new Error("Data view format error "+n)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),_()}})),v.innerHTML=o[1],m.innerHTML=o[2],m.style.cssText=v.style.cssText=y,!i.get("readOnly")&&g.appendChild(m),g.appendChild(v),a.appendChild(r),a.appendChild(s),a.appendChild(g),s.style.height=n.clientHeight-80+"px",n.appendChild(a),this._dom=a},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){var t={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return t},t}(oO);function RO(e,t){return b["map"](e,(function(e,n){var i=t&&t[n];if(b["isObject"](i)&&!b["isArray"](i)){var a=b["isObject"](e)&&!b["isArray"](e);a||(e={value:e});var r=null!=i.name&&null==e.name;return e=b["defaults"](e,i),r&&delete e.name,e}return e}))}u["m"]({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(e,t){var n=[];b["each"](e.newOption.series,(function(e){var i=t.getSeriesByName(e.name)[0];if(i){var a=i.get("data");n.push({name:e.name,data:RO(e.data,a)})}else n.push(b["extend"]({type:"scatter"},e))})),t.mergeOption(b["defaults"]({series:n},e.newOption))}));var EO=NO,VO=b["each"],zO=Object(w["o"])();function BO(e,t){var n=WO(e);VO(t,(function(t,i){for(var a=n.length-1;a>=0;a--){var r=n[a];if(r[i])break}if(a<0){var o=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var s=o.getPercentRange();n[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}})),n.push(t)}function GO(e){var t=WO(e),n=t[t.length-1];t.length>1&&t.pop();var i={};return VO(n,(function(e,n){for(var a=t.length-1;a>=0;a--)if(e=t[a][n],e){i[n]=e;break}})),i}function FO(e){zO(e).snapshots=null}function HO(e){return WO(e).length}function WO(e){var t=zO(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var ZO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(ee["a"])(t,e),t.prototype.onclick=function(e,t){FO(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var t={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return t},t}(oO);u["m"]({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var YO=ZO,XO=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],UO=function(){function e(e,t,n){var i=this;this._targetInfoList=[];var a=JO(t,e);Object(b["each"])(KO,(function(e,t){(!n||!n.include||Object(b["indexOf"])(n.include,t)>=0)&&e(a,i._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var i=eS[e.brushType](0,n,t);e.__rangeOffset={offset:nS[e.brushType](i.values,e.range,[1,1]),xyMinMax:i.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){Object(b["each"])(e,(function(e){var i=this.findTargetInfo(e,t);i&&!0!==i&&Object(b["each"])(i.coordSyses,(function(i){var a=eS[e.brushType](1,i,e.range,!0);n(e,a.values,i,t)}))}),this)},e.prototype.setInputRanges=function(e,t){Object(b["each"])(e,(function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&!0!==n){e.panelId=n.panelId;var i=eS[e.brushType](0,n.coordSys,e.coordRange),a=e.__rangeOffset;e.range=a?nS[e.brushType](i.values,a.offset,aS(i.xyMinMax,a.xyMinMax)):i.values}}),this)},e.prototype.makePanelOpts=function(e,t){return Object(b["map"])(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:Sf(i),isTargetByCursor:Mf(i,e,n.coordSysModel),getLinearBrushOtherExtent:wf(i)}}))},e.prototype.controlSeries=function(e,t,n){var i=this.findTargetInfo(e,n);return!0===i||i&&Object(b["indexOf"])(i.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,i=JO(t,e),a=0;a<n.length;a++){var r=n[a],o=e.panelId;if(o){if(r.panelId===o)return r}else for(var s=0;s<$O.length;s++)if($O[s](i,r))return r}return!0},e}();function qO(e){return e[0]>e[1]&&e.reverse(),e}function JO(e,t){return Object(w["s"])(e,t,{includeMainTypes:XO})}var KO={grid:function(e,t){var n=e.xAxisModels,i=e.yAxisModels,a=e.gridModels,r=Object(b["createHashMap"])(),o={},s={};(n||i||a)&&(Object(b["each"])(n,(function(e){var t=e.axis.grid.model;r.set(t.id,t),o[t.id]=!0})),Object(b["each"])(i,(function(e){var t=e.axis.grid.model;r.set(t.id,t),s[t.id]=!0})),Object(b["each"])(a,(function(e){r.set(e.id,e),o[e.id]=!0,s[e.id]=!0})),r.each((function(e){var a=e.coordinateSystem,r=[];Object(b["each"])(a.getCartesians(),(function(e,t){(Object(b["indexOf"])(n,e.getAxis("x").model)>=0||Object(b["indexOf"])(i,e.getAxis("y").model)>=0)&&r.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:r[0],coordSyses:r,getPanelRect:QO.grid,xAxisDeclared:o[e.id],yAxisDeclared:s[e.id]})})))},geo:function(e,t){Object(b["each"])(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:QO.geo})}))}},$O=[function(e,t){var n=e.xAxisModel,i=e.yAxisModel,a=e.gridModel;return!a&&n&&(a=n.axis.grid.model),!a&&i&&(a=i.axis.grid.model),a&&a===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],QO={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(_e["getTransform"](e)),t}},eS={lineX:Object(b["curry"])(tS,0),lineY:Object(b["curry"])(tS,1),rect:function(e,t,n,i){var a=e?t.pointToData([n[0][0],n[1][0]],i):t.dataToPoint([n[0][0],n[1][0]],i),r=e?t.pointToData([n[0][1],n[1][1]],i):t.dataToPoint([n[0][1],n[1][1]],i),o=[qO([a[0],r[0]]),qO([a[1],r[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,i){var a=[[1/0,-1/0],[1/0,-1/0]],r=Object(b["map"])(n,(function(n){var r=e?t.pointToData(n,i):t.dataToPoint(n,i);return a[0][0]=Math.min(a[0][0],r[0]),a[1][0]=Math.min(a[1][0],r[1]),a[0][1]=Math.max(a[0][1],r[0]),a[1][1]=Math.max(a[1][1],r[1]),r}));return{values:r,xyMinMax:a}}};function tS(e,t,n,i){var a=n.getAxis(["x","y"][e]),r=qO(Object(b["map"])([0,1],(function(e){return t?a.coordToData(a.toLocalCoord(i[e]),!0):a.toGlobalCoord(a.dataToCoord(i[e]))}))),o=[];return o[e]=r,o[1-e]=[NaN,NaN],{values:r,xyMinMax:o}}var nS={lineX:Object(b["curry"])(iS,0),lineY:Object(b["curry"])(iS,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return Object(b["map"])(e,(function(e,i){return[e[0]-n[0]*t[i][0],e[1]-n[1]*t[i][1]]}))}};function iS(e,t,n,i){return[t[0]-i[e]*n[0],t[1]-i[e]*n[1]]}function aS(e,t){var n=rS(e),i=rS(t),a=[n[0]/i[0],n[1]/i[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function rS(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var oS=UO,sS=n("2f1f"),lS=b["each"],cS=Object(w["p"])("toolbox-dataZoom_"),uS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(ee["a"])(t,e),t.prototype.render=function(e,t,n,i){this._brushController||(this._brushController=new Of(n.getZr()),this._brushController.on("brush",b["bind"](this._onBrush,this)).mount()),fS(e,t,this,i,n),pS(e,t)},t.prototype.onclick=function(e,t,n){hS[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},i=this.ecModel;this._brushController.updateCovers([]);var a=new oS(dS(this.model),i,{include:["grid"]});a.matchOutputRanges(t,i,(function(e,t,n){if("cartesian2d"===n.type){var i=e.brushType;"rect"===i?(r("x",n,t[0]),r("y",n,t[1])):r({lineX:"x",lineY:"y"}[i],n,t)}})),BO(i,n),this._dispatchZoomAction(n)}function r(e,t,a){var r=t.getAxis(e),s=r.model,l=o(e,s,i),c=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==c.minValueSpan&&null==c.maxValueSpan||(a=op(0,a.slice(),r.scale.getExtent(),0,c.minValueSpan,c.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:a[0],endValue:a[1]})}function o(e,t,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var a=n.getAxisModel(e,t.componentIndex);a&&(i=n)})),i}},t.prototype._dispatchZoomAction=function(e){var t=[];lS(e,(function(e,n){t.push(b["clone"](e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){var t={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return t},t}(oO),hS={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(GO(this.ecModel))}};function dS(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}function pS(e,t){e.setIconStatus("back",HO(t)>1?"emphasis":"normal")}function fS(e,t,n,i,a){var r=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(r="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=r,e.setIconStatus("zoom",r?"emphasis":"normal");var o=new oS(dS(e),t,{include:["grid"]}),s=o.makePanelOpts(a,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!r||!s.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}Object(sS["b"])("dataZoom",(function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var i=t.getModel(n),a=[],r=dS(i),o=Object(w["s"])(e,r);return lS(o.xAxisModels,(function(e){return s(e,"xAxis","xAxisIndex")})),lS(o.yAxisModels,(function(e){return s(e,"yAxis","yAxisIndex")})),a}function s(e,t,n){var r=e.componentIndex,o={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:cS+t+r};o[n]=r,a.push(o)}}));var gS=uS;function yS(e){e.registerComponentModel(hO),e.registerComponentView(gO),lO("saveAsImage",vO),lO("magicType",OO),lO("dataView",EO),lO("dataZoom",gS),lO("restore",YO),Object(c["a"])(rO)}var vS=n("2da7"),mS=["rect","polygon","keep","clear"];function bS(e,t){var n=Object(w["r"])(e?e.brush:[]);if(n.length){var i=[];b["each"](n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(i=i.concat(t))}));var a=e&&e.toolbox;b["isArray"](a)&&(a=a[0]),a||(a={feature:{}},e.toolbox=[a]);var r=a.feature||(a.feature={}),o=r.brush||(r.brush={}),s=o.type||(o.type=[]);s.push.apply(s,i),xS(s),t&&!s.length&&s.push.apply(s,mS)}}function xS(e){var t={};b["each"](e,(function(e){t[e]=1})),e.length=0,b["each"](t,(function(t,n){e.push(n)}))}var _S=n("0924"),OS=b["each"];function SS(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function wS(e,t,n){var i={};return OS(t,(function(t){var r=i[t]=a();OS(e[t],(function(e,i){if(xu.isValidType(i)){var a={type:i,visual:e};n&&n(a,t),r[i]=new xu(a),"opacity"===i&&(a=b["clone"](a),a.type="colorAlpha",r.__hidden.__alphaForOpacity=new xu(a))}}))})),i;function a(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}}function MS(e,t,n){var i;b["each"](n,(function(e){t.hasOwnProperty(e)&&SS(t[e])&&(i=!0)})),i&&b["each"](n,(function(n){t.hasOwnProperty(n)&&SS(t[n])?e[n]=b["clone"](t[n]):delete e[n]}))}function IS(e,t,n,i,a,r){var o,s={};function l(e){return Object(_S["a"])(n,o,e)}function c(e,t){Object(_S["c"])(n,o,e,t)}function u(e,u){o=null==r?e:u;var h=n.getRawDataItem(o);if(!h||!1!==h.visualMap)for(var d=i.call(a,e),p=t[d],f=s[d],g=0,y=f.length;g<y;g++){var v=f[g];p[v]&&p[v].applyVisual(e,l,c)}}b["each"](e,(function(e){var n=xu.prepareVisualTypes(t[e]);s[e]=n})),null==r?n.each(u):n.each([r],u)}function jS(e,t,n,i){var a={};return b["each"](e,(function(e){var n=xu.prepareVisualTypes(t[e]);a[e]=n})),{progress:function(e,r){var o,s;function l(e){return Object(_S["a"])(r,s,e)}function c(e,t){Object(_S["c"])(r,s,e,t)}null!=i&&(o=r.getDimensionIndex(i));var u=r.getStore();while(null!=(s=e.next())){var h=r.getRawDataItem(s);if(!h||!1!==h.visualMap)for(var d=null!=i?u.get(o,s):s,p=n(d),f=t[p],g=a[p],y=0,v=g.length;y<v;y++){var m=g[y];f[m]&&f[m].applyVisual(d,l,c)}}}}}function AS(e){var t=e.brushType,n={point:function(i){return CS[t].point(i,n,e)},rect:function(i){return CS[t].rect(i,n,e)}};return n}var CS={lineX:TS(0),lineY:TS(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&re(n.range,e[0],e[1])},rect:function(e,t,n){var i=n.range;if(!e||i.length<=1)return!1;var a=e.x,r=e.y,o=e.width,s=e.height,l=i[0];return!!(re(i,a,r)||re(i,a+o,r)||re(i,a,r+s)||re(i,a+o,r+s)||te["a"].create(e).contain(l[0],l[1])||Object(_e["linePolygonIntersect"])(a,r,a+o,r,i)||Object(_e["linePolygonIntersect"])(a,r,a,r+s,i)||Object(_e["linePolygonIntersect"])(a+o,r,a+o,r+s,i)||Object(_e["linePolygonIntersect"])(a,r+s,a+o,r+s,i))||void 0}}};function TS(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,i){if(t){var a=i.range,r=t[e];return DS(r,a)}},rect:function(i,a,r){if(i){var o=r.range,s=[i[t[e]],i[t[e]]+i[n[e]]];return s[1]<s[0]&&s.reverse(),DS(s[0],o)||DS(s[1],o)||DS(o[0],s)||DS(o[1],s)}}}}function DS(e,t){return t[0]<=e&&e<=t[1]}var LS=["inBrush","outOfBrush"],PS="__ecBrushSelect",kS="__ecInBrushSelectEvent";function NS(e){e.eachComponent({mainType:"brush"},(function(t){var n=t.brushTargetManager=new oS(t.option,e);n.setInputRanges(t.areas,e)}))}function RS(e,t,n){var i,a,r=[];e.eachComponent({mainType:"brush"},(function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),NS(e),e.eachComponent({mainType:"brush"},(function(t,n){var o={brushId:t.id,brushIndex:n,brushName:t.name,areas:b["clone"](t.areas),selected:[]};r.push(o);var s=t.option,l=s.brushLink,c=[],u=[],h=[],d=!1;n||(i=s.throttleType,a=s.throttleDelay);var p=b["map"](t.areas,(function(e){var t=GS[e.brushType],n=b["defaults"]({boundingRect:t?t(e):void 0},e);return n.selectors=AS(n),n})),f=wS(t.option,LS,(function(e){e.mappingMethod="fixed"}));function g(e){return"all"===l||!!c[e]}function y(e){return!!e.length}function v(e,t){var n=e.coordinateSystem;d=d||n.hasAxisBrushed(),g(t)&&n.eachActiveState(e.getData(),(function(e,t){"active"===e&&(u[t]=1)}))}function m(n,i,a){if(n.brushSelector&&!BS(t,i)&&(b["each"](p,(function(i){t.brushTargetManager.controlSeries(i,n,e)&&a.push(i),d=d||y(a)})),g(i)&&y(a))){var r=n.getData();r.each((function(e){zS(n,a,r,e)&&(u[e]=1)}))}}b["isArray"](l)&&b["each"](l,(function(e){c[e]=1})),e.eachSeries((function(e,t){var n=h[t]=[];"parallel"===e.subType?v(e,t):m(e,t,n)})),e.eachSeries((function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};o.selected.push(n);var i=h[t],a=e.getData(),r=g(t)?function(e){return u[e]?(n.dataIndex.push(a.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(t){return zS(e,i,a,t)?(n.dataIndex.push(a.getRawIndex(t)),"inBrush"):"outOfBrush"};(g(t)?d:y(i))&&IS(LS,f,a,r)}))})),ES(t,i,a,r,n)}function ES(e,t,n,i,a){if(a){var r=e.getZr();if(!r[kS]){r[PS]||(r[PS]=VS);var o=_["b"](r,PS,n,t);o(e,i)}}}function VS(e,t){if(!e.isDisposed()){var n=e.getZr();n[kS]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[kS]=!1}}function zS(e,t,n,i){for(var a=0,r=t.length;a<r;a++){var o=t[a];if(e.brushSelector(i,n,o.selectors,o))return!0}}function BS(e,t){var n=e.option.seriesIndex;return null!=n&&"all"!==n&&(b["isArray"](n)?b["indexOf"](n,t)<0:t!==n)}var GS={rect:function(e){return FS(e.range)},polygon:function(e){for(var t,n=e.range,i=0,a=n.length;i<a;i++){t=t||[[1/0,-1/0],[1/0,-1/0]];var r=n[i];r[0]<t[0][0]&&(t[0][0]=r[0]),r[0]>t[0][1]&&(t[0][1]=r[0]),r[1]<t[1][0]&&(t[1][0]=r[1]),r[1]>t[1][1]&&(t[1][1]=r[1])}return t&&FS(t)}};function FS(e){return new te["a"](e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var HS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new Of(t.getZr())).on("brush",b["bind"](this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,i){this.model=e,this._updateController(e,t,n,i)},t.prototype.updateTransform=function(e,t,n,i){NS(t),this._updateController(e,t,n,i)},t.prototype.updateVisual=function(e,t,n,i){this.updateTransform(e,t,n,i)},t.prototype.updateView=function(e,t,n,i){this._updateController(e,t,n,i)},t.prototype._updateController=function(e,t,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:b["clone"](n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:b["clone"](n),$from:t})},t.type="brush",t}(d["a"]),WS=HS,ZS="#ddd",YS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return Object(ee["a"])(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&MS(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:ZS},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=b["map"](e,(function(e){return XS(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=XS(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(h["a"]);function XS(e,t){return b["merge"]({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new F["a"](e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var US=YS,qS=["rect","polygon","lineX","lineY","keep","clear"],JS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(ee["a"])(t,e),t.prototype.render=function(e,t,n){var i,a,r;t.eachComponent({mainType:"brush"},(function(e){i=e.brushType,a=e.brushOption.brushMode||"single",r=r||!!e.areas.length})),this._brushType=i,this._brushMode=a,b["each"](e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===a:"clear"===t?r:t===i)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return b["each"](e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},t.prototype.onclick=function(e,t,n){var i=this._brushType,a=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===a?"single":"multiple":a}})},t.getDefaultOption=function(e){var t={show:!0,type:qS.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return t},t}(oO),KS=JS;function $S(e){e.registerComponentView(WS),e.registerComponentModel(US),e.registerPreprocessor(bS),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,RS),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},b["noop"]),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},b["noop"]),lO("brush",KS)}var QS=n("9394"),ew=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return Object(ee["a"])(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,n=t.data||[],i=t.axisType,a=this._names=[];"category"===i?(e=[],Object(b["each"])(n,(function(t,n){var i,r=Object(w["e"])(Object(w["h"])(t),"");Object(b["isObject"])(t)?(i=Object(b["clone"])(t),i.value=n):i=n,e.push(i),a.push(r)}))):e=n;var r={category:"ordinal",time:"time",value:"number"}[i]||"number",o=this._data=new g["a"]([{name:"value",type:r}],this);o.initData(e,a)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(h["a"]),tw=ew,nw=n("38a2"),iw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.type="timeline.slider",t.defaultOption=Object(la["d"])(tw.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(tw);Object(b["mixin"])(iw,nw["a"].prototype);var aw=iw,rw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.type="timeline",t}(d["a"]),ow=rw,sw=function(e){function t(t,n,i,a){var r=e.call(this,t,n,i)||this;return r.type=a||"value",r}return Object(ee["a"])(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(ht),lw=sw,cw=n("18c0"),uw=n("216a"),hw=Math.PI,dw=Object(w["o"])(),pw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),a=this._createGroup("_mainGroup"),r=this._createGroup("_labelGroup"),o=this._axis=this._createAxis(i,e);e.formatTooltip=function(e){var t=o.scale.getLabel({value:e});return Object(eo["c"])("nameValue",{noName:!0,value:t})},Object(b["each"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](i,a,o,e)}),this),this._renderAxisLabel(i,r,o,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,i=e.get(["label","position"]),a=e.get("orient"),r=gw(e,t);n=null==i||"auto"===i?"horizontal"===a?r.y+r.height/2<t.getHeight()/2?"-":"+":r.x+r.width/2<t.getWidth()/2?"+":"-":Object(b["isString"])(i)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][i]:i;var o,s,l,c={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},u={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:hw/2},d="vertical"===a?r.height:r.width,p=e.getModel("controlStyle"),f=p.get("show",!0),g=f?p.get("itemSize"):0,y=f?p.get("itemGap"):0,v=g+y,m=e.get(["label","rotate"])||0;m=m*hw/180;var x=p.get("position",!0),_=f&&p.get("showPlayBtn",!0),O=f&&p.get("showPrevBtn",!0),S=f&&p.get("showNextBtn",!0),w=0,M=d;"left"===x||"bottom"===x?(_&&(o=[0,0],w+=v),O&&(s=[w,0],w+=v),S&&(l=[M-g,0],M-=v)):(_&&(o=[M-g,0],M-=v),O&&(s=[0,0],w+=v),S&&(l=[M-g,0],M-=v));var I=[w,M];return e.get("inverse")&&I.reverse(),{viewRect:r,mainLength:d,orient:a,rotation:h[a],labelRotation:m,labelPosOpt:n,labelAlign:e.get(["label","align"])||c[a],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[a],playPosition:o,prevBtnPosition:s,nextBtnPosition:l,axisExtent:I,controlSize:g,controlGap:y}},t.prototype._position=function(e,t){var n=this._mainGroup,i=this._labelGroup,a=e.viewRect;if("vertical"===e.orient){var r=v["create"](),o=a.x,s=a.y+a.height;v["translate"](r,r,[-o,-s]),v["rotate"](r,r,-hw/2),v["translate"](r,r,[o,s]),a=a.clone(),a.applyTransform(r)}var l=y(a),c=y(n.getBoundingRect()),u=y(i.getBoundingRect()),h=[n.x,n.y],d=[i.x,i.y];d[0]=h[0]=l[0][0];var p=e.labelPosOpt;if(null==p||Object(b["isString"])(p)){var f="+"===p?0:1;m(h,c,l,1,f),m(d,u,l,1,1-f)}else{f=p>=0?0:1;m(h,c,l,1,f),d[1]=h[1]+p}function g(e){e.originX=l[0][0]-e.x,e.originY=l[1][0]-e.y}function y(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function m(e,t,n,i,a){e[i]+=n[i][a]-t[i][a]}n.setPosition(h),i.setPosition(d),n.rotation=i.rotation=e.rotation,g(n),g(i)},t.prototype._createAxis=function(e,t){var n=t.getData(),i=t.get("axisType"),a=fw(t,i);a.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var r=n.getDataExtent("value");a.setExtent(r[0],r[1]),a.calcNiceTicks();var o=new lw("value",a,e.axisExtent,i);return o.model=t,o},t.prototype._createGroup=function(e){var t=this[e]=new Se["a"];return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,i){var a=n.getExtent();if(i.get(["lineStyle","show"])){var r=new Pe["a"]({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:Object(b["extend"])({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(r);var o=this._progressLine=new Pe["a"]({shape:{x1:a[0],x2:this._currentPointer?this._currentPointer.x:a[0],y1:0,y2:0},style:Object(b["defaults"])({lineCap:"round",lineWidth:r.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(o)}},t.prototype._renderAxisTick=function(e,t,n,i){var a=this,r=i.getData(),o=n.scale.getTicks();this._tickSymbols=[],Object(b["each"])(o,(function(e){var o=n.dataToCoord(e.value),s=r.getItemModel(e.value),l=s.getModel("itemStyle"),c=s.getModel(["emphasis","itemStyle"]),u=s.getModel(["progress","itemStyle"]),h={x:o,y:0,onclick:Object(b["bind"])(a._changeTimeline,a,e.value)},d=vw(s,l,t,h);d.ensureState("emphasis").style=c.getItemStyle(),d.ensureState("progress").style=u.getItemStyle(),Object(X["o"])(d);var p=Object(W["a"])(d);s.get("tooltip")?(p.dataIndex=e.value,p.dataModel=i):p.dataIndex=p.dataModel=null,a._tickSymbols.push(d)}))},t.prototype._renderAxisLabel=function(e,t,n,i){var a=this,r=n.getLabelModel();if(r.get("show")){var o=i.getData(),s=n.getViewLabels();this._tickLabels=[],Object(b["each"])(s,(function(i){var r=i.tickValue,s=o.getItemModel(r),l=s.getModel("label"),c=s.getModel(["emphasis","label"]),u=s.getModel(["progress","label"]),h=n.dataToCoord(i.tickValue),d=new Me["a"]({x:h,y:0,rotation:e.labelRotation-e.rotation,onclick:Object(b["bind"])(a._changeTimeline,a,r),silent:!1,style:Object(Z["c"])(l,{text:i.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});d.ensureState("emphasis").style=Object(Z["c"])(c),d.ensureState("progress").style=Object(Z["c"])(u),t.add(d),Object(X["o"])(d),dw(d).dataIndex=r,a._tickLabels.push(d)}))}},t.prototype._renderControl=function(e,t,n,i){var a=e.controlSize,r=e.rotation,o=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),c=i.get("inverse",!0);function u(e,n,l,c){if(e){var u=Object(Ze["g"])(Object(b["retrieve2"])(i.get(["controlStyle",n+"BtnSize"]),a),a),h=[0,-u/2,u,u],d=yw(i,n+"Icon",h,{x:e[0],y:e[1],originX:a/2,originY:0,rotation:c?-r:0,rectHover:!0,style:o,onclick:l});d.ensureState("emphasis").style=s,t.add(d),Object(X["o"])(d)}}u(e.nextBtnPosition,"next",Object(b["bind"])(this._changeTimeline,this,c?"-":"+")),u(e.prevBtnPosition,"prev",Object(b["bind"])(this._changeTimeline,this,c?"+":"-")),u(e.playPosition,l?"stop":"play",Object(b["bind"])(this._handlePlayClick,this,!l),!0)},t.prototype._renderCurrentPointer=function(e,t,n,i){var a=i.getData(),r=i.getCurrentIndex(),o=a.getItemModel(r).getModel("checkpointStyle"),s=this,l={onCreate:function(e){e.draggable=!0,e.drift=Object(b["bind"])(s._handlePointerDrag,s),e.ondragend=Object(b["bind"])(s._handlePointerDragend,s),mw(e,s._progressLine,r,n,i,!0)},onUpdate:function(e){mw(e,s._progressLine,r,n,i)}};this._currentPointer=vw(o,o,this._mainGroup,{},this._currentPointer,l)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],i=this._axis,a=be["c"](i.getExtent().slice());n>a[1]&&(n=a[1]),n<a[0]&&(n=a[0]),this._currentPointer.x=n,this._currentPointer.markRedraw(),this._progressLine.shape.x2=n,this._progressLine.dirty();var r=this._findNearestTick(n),o=this.model;(t||r!==o.getCurrentIndex()&&o.get("realtime"))&&this._changeTimeline(r)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var t=this._mainGroup.getLocalTransform();return _e["applyTransform"](e,t,!0)},t.prototype._findNearestTick=function(e){var t,n=this.model.getData(),i=1/0,a=this._axis;return n.each(["value"],(function(n,r){var o=a.dataToCoord(n),s=Math.abs(o-e);s<i&&(i=s,t=r)})),t},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var i=0;i<t.length;i++)t&&t[i]&&t[i].toggleState("progress",i<e);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",dw(n[i]).dataIndex<=e)},t.type="timeline.slider",t}(ow);function fw(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new cw["a"]({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new uw["a"]({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new _r["a"]}}function gw(e,t){return H["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function yw(e,t,n,i){var a=i.style,r=_e["createIcon"](e.get(["controlStyle",t]),i||{},new te["a"](n[0],n[1],n[2],n[3]));return a&&r.setStyle(a),r}function vw(e,t,n,i,a,r){var o=t.get("color");if(a)a.setColor(o),n.add(a),r&&r.onUpdate(a);else{var s=e.get("symbol");a=Object(Y["a"])(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),n.add(a),r&&r.onCreate(a)}var l=t.getItemStyle(["color"]);a.setStyle(l),i=Object(b["merge"])({rectHover:!0,z2:100},i,!0);var c=Object(Y["c"])(e.get("symbolSize"));i.scaleX=c[0]/2,i.scaleY=c[1]/2;var u=Object(Y["b"])(e.get("symbolOffset"),c);u&&(i.x=(i.x||0)+u[0],i.y=(i.y||0)+u[1]);var h=e.get("symbolRotate");return i.rotation=(h||0)*Math.PI/180||0,a.attr(i),a.updateTransform(),a}function mw(e,t,n,i,a,r){if(!e.dragging){var o=a.getModel("checkpointStyle"),s=i.dataToCoord(a.getData().get("value",n));if(r||!o.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}var bw=pw;function xw(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(e,t,n){var i=t.getComponent("timeline");return i&&null!=e.currentIndex&&(i.setCurrentIndex(e.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),Object(b["defaults"])({currentIndex:i.option.currentIndex},e)})),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(e,t){var n=t.getComponent("timeline");n&&null!=e.playState&&n.setPlayState(e.playState)}))}function _w(e){var t=e&&e.timeline;b["isArray"](t)||(t=t?[t]:[]),b["each"](t,(function(e){e&&Ow(e)}))}function Ow(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),Sw(e),ww(e,"controlPosition")){var i=e.controlStyle||(e.controlStyle={});ww(i,"position")||(i.position=e.controlPosition),"none"!==i.position||ww(i,"show")||(i.show=!1,delete i.position),delete e.controlPosition}b["each"](e.data||[],(function(e){b["isObject"](e)&&!b["isArray"](e)&&(!ww(e,"value")&&ww(e,"name")&&(e.value=e.name),Sw(e))}))}function Sw(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),i=e.label||e.label||{},a=i.normal||(i.normal={}),r={normal:1,emphasis:1};b["each"](i,(function(e,t){r[t]||ww(a,t)||(a[t]=e)})),n.label&&!ww(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function ww(e,t){return e.hasOwnProperty(t)}function Mw(e){e.registerComponentModel(aw),e.registerComponentView(bw),e.registerSubTypeDefaulter("timeline",(function(){return"slider"})),xw(e),e.registerPreprocessor(_w)}function Iw(e,t){if(!e)return!1;for(var n=Object(b["isArray"])(e)?e:[e],i=0;i<n.length;i++)if(n[i]&&n[i][t])return!0;return!1}function jw(e){Object(w["f"])(e,"label",["show"])}var Aw=Object(w["o"])(),Cw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return Object(ee["a"])(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(We["a"].node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,i){var a=this.mainType;n||t.eachSeries((function(e){var n=e.get(this.mainType,!0),r=Aw(e)[a];n&&n.data?(r?r._mergeOption(n,t,!0):(i&&jw(n),b["each"](n.data,(function(e){e instanceof Array?(jw(e[0]),jw(e[1])):jw(e)})),r=this.createMarkerModelFromSeries(n,this,t),b["extend"](r,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),r.__hostSeries=e),Aw(e)[a]=r):Aw(e)[a]=null}),this)},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),a=this.getRawValue(e),r=i.getName(e);return Object(eo["c"])("section",{header:this.name,blocks:[Object(eo["c"])("nameValue",{name:r,value:a,noName:!r,noValue:null==a})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.getMarkerModelFromSeries=function(e,t){return Aw(e)[t]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(h["a"]);b["mixin"](Cw,nw["a"].prototype);var Tw=Cw,Dw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(Tw),Lw=Dw,Pw=n("b7d9");function kw(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function Nw(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function Rw(e,t,n,i,a,r){var o=[],s=Object(D["c"])(t,i),l=s?t.getCalculationInfo("stackResultDimension"):i,c=Ww(t,l,e),u=t.indicesOfNearest(l,c)[0];o[a]=t.get(n,u),o[r]=t.get(l,u);var h=t.get(i,u),d=be["h"](t.get(i,u));return d=Math.min(d,20),d>=0&&(o[r]=+o[r].toFixed(d)),[o,h]}var Ew={min:Object(b["curry"])(Rw,"min"),max:Object(b["curry"])(Rw,"max"),average:Object(b["curry"])(Rw,"average"),median:Object(b["curry"])(Rw,"median")};function Vw(e,t){var n=e.getData(),i=e.coordinateSystem;if(t&&!Nw(t)&&!Object(b["isArray"])(t.coord)&&i){var a=i.dimensions,r=zw(t,n,i,e);if(t=Object(b["clone"])(t),t.type&&Ew[t.type]&&r.baseAxis&&r.valueAxis){var o=Object(b["indexOf"])(a,r.baseAxis.dim),s=Object(b["indexOf"])(a,r.valueAxis.dim),l=Ew[t.type](n,r.baseDataDim,r.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else{for(var c=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],u=0;u<2;u++)Ew[c[u]]&&(c[u]=Ww(n,n.mapDimension(a[u]),c[u]));t.coord=c}}return t}function zw(e,t,n,i){var a={};return null!=e.valueIndex||null!=e.valueDim?(a.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,a.valueAxis=n.getAxis(Bw(i,a.valueDataDim)),a.baseAxis=n.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=i.getBaseAxis(),a.valueAxis=n.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function Bw(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function Gw(e,t){return!(e&&e.containData&&t.coord&&!kw(t))||e.containData(t.coord)}function Fw(e,t,n){return!(e&&e.containZone&&t.coord&&n.coord&&!kw(t)&&!kw(n))||e.containZone(t.coord,n.coord)}function Hw(e,t){return e?function(e,n,i,a){var r=a<2?e.coord&&e.coord[a]:e.value;return Object(Pw["d"])(r,t[a])}:function(e,n,i,a){return Object(Pw["d"])(e.value,t[a])}}function Ww(e,t,n){if("average"===n){var i=0,a=0;return e.each(t,(function(e,t){isNaN(e)||(i+=e,a++)})),i/a}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var Zw=Object(w["o"])(),Yw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.init=function(){this.markerGroupMap=Object(b["createHashMap"])()},t.prototype.render=function(e,t,n){var i=this,a=this.markerGroupMap;a.each((function(e){Zw(e).keep=!1})),t.eachSeries((function(e){var a=Tw.getMarkerModelFromSeries(e,i.type);a&&i.renderSeries(e,a,t,n)})),a.each((function(e){!Zw(e).keep&&i.group.remove(e.group)}))},t.prototype.markKeep=function(e){Zw(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;Object(b["each"])(e,(function(e){var i=Tw.getMarkerModelFromSeries(e,n.type);if(i){var a=i.getData();a.eachItemGraphicEl((function(e){e&&(t?Object(X["q"])(e):Object(X["B"])(e))}))}}))},t.type="marker",t}(d["a"]),Xw=Yw;function Uw(e,t,n){var i=t.coordinateSystem;e.each((function(a){var r,o=e.getItemModel(a),s=be["q"](o.get("x"),n.getWidth()),l=be["q"](o.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)r=t.getMarkerPosition(e.getValues(e.dimensions,a));else if(i){var c=e.get(i.dimensions[0],a),u=e.get(i.dimensions[1],a);r=i.dataToPoint([c,u])}}else r=[s,l];isNaN(s)||(r[0]=s),isNaN(l)||(r[1]=l),e.setItemLayout(a,r)}))}var qw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=Tw.getMarkerModelFromSeries(e,"markPoint");t&&(Uw(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,i){var a=e.coordinateSystem,r=e.id,o=e.getData(),s=this.markerGroupMap,l=s.get(r)||s.set(r,new fi),c=Jw(a,e,t);t.setData(c),Uw(t.getData(),e,i),c.each((function(e){var n=c.getItemModel(e),i=n.getShallow("symbol"),a=n.getShallow("symbolSize"),r=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Object(b["isFunction"])(i)||Object(b["isFunction"])(a)||Object(b["isFunction"])(r)||Object(b["isFunction"])(s)){var u=t.getRawValue(e),h=t.getDataParams(e);Object(b["isFunction"])(i)&&(i=i(u,h)),Object(b["isFunction"])(a)&&(a=a(u,h)),Object(b["isFunction"])(r)&&(r=r(u,h)),Object(b["isFunction"])(s)&&(s=s(u,h))}var d=n.getModel("itemStyle").getItemStyle(),p=Object(_S["b"])(o,"color");d.fill||(d.fill=p),c.setItemVisual(e,{symbol:i,symbolSize:a,symbolRotate:r,symbolOffset:s,symbolKeepAspect:l,style:d})})),l.updateData(c),this.group.add(l.group),c.eachItemGraphicEl((function(e){e.traverse((function(e){Object(W["a"])(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(Xw);function Jw(e,t,n){var i;i=e?Object(b["map"])(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(b["extend"])(Object(b["extend"])({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var a=new g["a"](i,n),r=Object(b["map"])(n.get("data"),Object(b["curry"])(Vw,t));e&&(r=Object(b["filter"])(r,Object(b["curry"])(Gw,e)));var o=Hw(!!e,i);return a.initData(r,null,o),a}var Kw=qw;function $w(e){e.registerComponentModel(Lw),e.registerComponentView(Kw),e.registerPreprocessor((function(e){Iw(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))}var Qw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(Tw),eM=Qw,tM=Object(w["o"])(),nM=function(e,t,n,i){var a,r=e.getData();if(Object(b["isArray"])(i))a=i;else{var o=i.type;if("min"===o||"max"===o||"average"===o||"median"===o||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=t.getAxis(null!=i.yAxis?"y":"x"),l=Object(b["retrieve"])(i.yAxis,i.xAxis);else{var c=zw(i,r,t,e);s=c.valueAxis;var u=Object(D["b"])(r,c.valueDataDim);l=Ww(r,u,o)}var h="x"===s.dim?0:1,d=1-h,p=Object(b["clone"])(i),f={coord:[]};p.type=null,p.coord=[],p.coord[d]=-1/0,f.coord[d]=1/0;var g=n.get("precision");g>=0&&Object(b["isNumber"])(l)&&(l=+l.toFixed(Math.min(g,20))),p.coord[h]=f.coord[h]=l,a=[p,f,{type:o,valueIndex:i.valueIndex,value:l}]}else a=[]}var y=[Vw(e,a[0]),Vw(e,a[1]),Object(b["extend"])({},a[2])];return y[2].type=y[2].type||null,Object(b["merge"])(y[2],y[0]),Object(b["merge"])(y[2],y[1]),y};function iM(e){return!isNaN(e)&&!isFinite(e)}function aM(e,t,n,i){var a=1-e,r=i.dimensions[e];return iM(t[a])&&iM(n[a])&&t[e]===n[e]&&i.getAxis(r).containData(t[e])}function rM(e,t){if("cartesian2d"===e.type){var n=t[0].coord,i=t[1].coord;if(n&&i&&(aM(1,n,i,e)||aM(0,n,i,e)))return!0}return Gw(e,t[0])&&Gw(e,t[1])}function oM(e,t,n,i,a){var r,o=i.coordinateSystem,s=e.getItemModel(t),l=be["q"](s.get("x"),a.getWidth()),c=be["q"](s.get("y"),a.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition)r=i.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=o.dimensions,h=e.get(u[0],t),d=e.get(u[1],t);r=o.dataToPoint([h,d])}if(Pi(o,"cartesian2d")){var p=o.getAxis("x"),f=o.getAxis("y");u=o.dimensions;iM(e.get(u[0],t))?r[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):iM(e.get(u[1],t))&&(r[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(r[0]=l),isNaN(c)||(r[1]=c)}else r=[l,c];e.setItemLayout(t,r)}var sM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=Tw.getMarkerModelFromSeries(e,"markLine");if(t){var i=t.getData(),a=tM(t).from,r=tM(t).to;a.each((function(t){oM(a,t,!0,e,n),oM(r,t,!1,e,n)})),i.each((function(e){i.setItemLayout(e,[a.getItemLayout(e),r.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,i){var a=e.coordinateSystem,r=e.id,o=e.getData(),s=this.markerGroupMap,l=s.get(r)||s.set(r,new Uh);this.group.add(l.group);var c=lM(a,e,t),u=c.from,h=c.to,d=c.line;tM(t).from=u,tM(t).to=h,t.setData(d);var p=t.get("symbol"),f=t.get("symbolSize"),g=t.get("symbolRotate"),y=t.get("symbolOffset");function v(t,n,a){var r=t.getItemModel(n);oM(t,n,a,e,i);var s=r.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Object(_S["b"])(o,"color")),t.setItemVisual(n,{symbolKeepAspect:r.get("symbolKeepAspect"),symbolOffset:Object(b["retrieve2"])(r.get("symbolOffset",!0),y[a?0:1]),symbolRotate:Object(b["retrieve2"])(r.get("symbolRotate",!0),g[a?0:1]),symbolSize:Object(b["retrieve2"])(r.get("symbolSize"),f[a?0:1]),symbol:Object(b["retrieve2"])(r.get("symbol",!0),p[a?0:1]),style:s})}Object(b["isArray"])(p)||(p=[p,p]),Object(b["isArray"])(f)||(f=[f,f]),Object(b["isArray"])(g)||(g=[g,g]),Object(b["isArray"])(y)||(y=[y,y]),c.from.each((function(e){v(u,e,!0),v(h,e,!1)})),d.each((function(e){var t=d.getItemModel(e).getModel("lineStyle").getLineStyle();d.setItemLayout(e,[u.getItemLayout(e),h.getItemLayout(e)]),null==t.stroke&&(t.stroke=u.getItemVisual(e,"style").fill),d.setItemVisual(e,{fromSymbolKeepAspect:u.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:u.getItemVisual(e,"symbolOffset"),fromSymbolRotate:u.getItemVisual(e,"symbolRotate"),fromSymbolSize:u.getItemVisual(e,"symbolSize"),fromSymbol:u.getItemVisual(e,"symbol"),toSymbolKeepAspect:h.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(e,"symbolOffset"),toSymbolRotate:h.getItemVisual(e,"symbolRotate"),toSymbolSize:h.getItemVisual(e,"symbolSize"),toSymbol:h.getItemVisual(e,"symbol"),style:t})})),l.updateData(d),c.line.eachItemGraphicEl((function(e){Object(W["a"])(e).dataModel=t,e.traverse((function(e){Object(W["a"])(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(Xw);function lM(e,t,n){var i;i=e?Object(b["map"])(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(b["extend"])(Object(b["extend"])({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var a=new g["a"](i,n),r=new g["a"](i,n),o=new g["a"]([],n),s=Object(b["map"])(n.get("data"),Object(b["curry"])(nM,t,e,n));e&&(s=Object(b["filter"])(s,Object(b["curry"])(rM,e)));var l=Hw(!!e,i);return a.initData(Object(b["map"])(s,(function(e){return e[0]})),null,l),r.initData(Object(b["map"])(s,(function(e){return e[1]})),null,l),o.initData(Object(b["map"])(s,(function(e){return e[2]}))),o.hasItemOption=!0,{from:a,to:r,line:o}}var cM=sM;function uM(e){e.registerComponentModel(eM),e.registerComponentView(cM),e.registerPreprocessor((function(e){Iw(e.series,"markLine")&&(e.markLine=e.markLine||{})}))}var hM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(Tw),dM=hM,pM=Object(w["o"])(),fM=function(e,t,n,i){var a=Vw(e,i[0]),r=Vw(e,i[1]),o=a.coord,s=r.coord;o[0]=Object(b["retrieve"])(o[0],-1/0),o[1]=Object(b["retrieve"])(o[1],-1/0),s[0]=Object(b["retrieve"])(s[0],1/0),s[1]=Object(b["retrieve"])(s[1],1/0);var l=Object(b["mergeAll"])([{},a,r]);return l.coord=[a.coord,r.coord],l.x0=a.x,l.y0=a.y,l.x1=r.x,l.y1=r.y,l};function gM(e){return!isNaN(e)&&!isFinite(e)}function yM(e,t,n,i){var a=1-e;return gM(t[a])&&gM(n[a])}function vM(e,t){var n=t.coord[0],i=t.coord[1],a={coord:n,x:t.x0,y:t.y0},r={coord:i,x:t.x1,y:t.y1};return Pi(e,"cartesian2d")?!(!n||!i||!yM(1,n,i,e)&&!yM(0,n,i,e))||Fw(e,a,r):Gw(e,a)||Gw(e,r)}function mM(e,t,n,i,a){var r,o=i.coordinateSystem,s=e.getItemModel(t),l=be["q"](s.get(n[0]),a.getWidth()),c=be["q"](s.get(n[1]),a.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition)r=i.getMarkerPosition(e.getValues(n,t));else{var u=e.get(n[0],t),h=e.get(n[1],t),d=[u,h];o.clampData&&o.clampData(d,d),r=o.dataToPoint(d,!0)}if(Pi(o,"cartesian2d")){var p=o.getAxis("x"),f=o.getAxis("y");u=e.get(n[0],t),h=e.get(n[1],t);gM(u)?r[0]=p.toGlobalCoord(p.getExtent()["x0"===n[0]?0:1]):gM(h)&&(r[1]=f.toGlobalCoord(f.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(r[0]=l),isNaN(c)||(r[1]=c)}else r=[l,c];return r}var bM=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],xM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=Tw.getMarkerModelFromSeries(e,"markArea");if(t){var i=t.getData();i.each((function(t){var a=Object(b["map"])(bM,(function(a){return mM(i,t,a,e,n)}));i.setItemLayout(t,a);var r=i.getItemGraphicEl(t);r.setShape("points",a)}))}}),this)},t.prototype.renderSeries=function(e,t,n,i){var a=e.coordinateSystem,r=e.id,o=e.getData(),s=this.markerGroupMap,l=s.get(r)||s.set(r,{group:new Se["a"]});this.group.add(l.group),this.markKeep(l);var c=_M(a,e,t);t.setData(c),c.each((function(t){var n=Object(b["map"])(bM,(function(n){return mM(c,t,n,e,i)})),r=a.getAxis("x").scale,s=a.getAxis("y").scale,l=r.getExtent(),u=s.getExtent(),h=[r.parse(c.get("x0",t)),r.parse(c.get("x1",t))],d=[s.parse(c.get("y0",t)),s.parse(c.get("y1",t))];be["c"](h),be["c"](d);var p=!(l[0]>h[1]||l[1]<h[0]||u[0]>d[1]||u[1]<d[0]),f=!p;c.setItemLayout(t,{points:n,allClipped:f});var g=c.getItemModel(t).getModel("itemStyle").getItemStyle(),y=Object(_S["b"])(o,"color");g.fill||(g.fill=y,Object(b["isString"])(g.fill)&&(g.fill=x["modifyAlpha"](g.fill,.4))),g.stroke||(g.stroke=y),c.setItemVisual(t,"style",g)})),c.diff(pM(l).data).add((function(e){var t=c.getItemLayout(e);if(!t.allClipped){var n=new Te["a"]({shape:{points:t.points}});c.setItemGraphicEl(e,n),l.group.add(n)}})).update((function(e,n){var i=pM(l).data.getItemGraphicEl(n),a=c.getItemLayout(e);a.allClipped?i&&l.group.remove(i):(i?Oe["h"](i,{shape:{points:a.points}},t,e):i=new Te["a"]({shape:{points:a.points}}),c.setItemGraphicEl(e,i),l.group.add(i))})).remove((function(e){var t=pM(l).data.getItemGraphicEl(e);l.group.remove(t)})).execute(),c.eachItemGraphicEl((function(e,n){var i=c.getItemModel(n),a=c.getItemVisual(n,"style");e.useStyle(c.getItemVisual(n,"style")),Object(Z["g"])(e,Object(Z["e"])(i),{labelFetcher:t,labelDataIndex:n,defaultText:c.getName(n)||"",inheritColor:Object(b["isString"])(a.fill)?x["modifyAlpha"](a.fill,1):"#000"}),Object(X["I"])(e,i),Object(X["J"])(e,null,null,i.get(["emphasis","disabled"])),Object(W["a"])(e).dataModel=t})),pM(l).data=c,l.group.silent=t.get("silent")||e.get("silent")},t.type="markArea",t}(Xw);function _M(e,t,n){var i,a,r=["x0","y0","x1","y1"];if(e){var o=Object(b["map"])(e&&e.dimensions,(function(e){var n=t.getData(),i=n.getDimensionInfo(n.mapDimension(e))||{};return Object(b["extend"])(Object(b["extend"])({},i),{name:e,ordinalMeta:null})}));a=Object(b["map"])(r,(function(e,t){return{name:e,type:o[t%2].type}})),i=new g["a"](a,n)}else a=[{name:"value",type:"float"}],i=new g["a"](a,n);var s=Object(b["map"])(n.get("data"),Object(b["curry"])(fM,t,e,n));e&&(s=Object(b["filter"])(s,Object(b["curry"])(vM,e)));var l=e?function(e,t,n,i){var r=e.coord[Math.floor(i/2)][i%2];return Object(Pw["d"])(r,a[i])}:function(e,t,n,i){return Object(Pw["d"])(e.value,a[i])};return i.initData(s,null,l),i.hasItemOption=!0,i}var OM=xM;function SM(e){e.registerComponentModel(dM),e.registerComponentView(OM),e.registerPreprocessor((function(e){Iw(e.series,"markArea")&&(e.markArea=e.markArea||{})}))}var wM=n("ff32"),MM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.type="dataZoom.inside",t.defaultOption=Object(la["d"])(G_.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(G_),IM=MM,jM=Object(w["o"])();function AM(e,t,n){jM(e).coordSysRecordMap.each((function(e){var i=e.dataZoomInfoMap.get(t.uid);i&&(i.getRange=n)}))}function CM(e,t){for(var n=jM(e).coordSysRecordMap,i=n.keys(),a=0;a<i.length;a++){var r=i[a],o=n.get(r),s=o.dataZoomInfoMap;if(s){var l=t.uid,c=s.get(l);c&&(s.removeKey(l),s.keys().length||TM(n,o))}}}function TM(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function DM(e,t){var n={model:t,containsPoint:Object(b["curry"])(PM,t),dispatchAction:Object(b["curry"])(LM,e),dataZoomInfoMap:null,controller:null},i=n.controller=new Ao(e.getZr());return Object(b["each"])(["pan","zoom","scrollMove"],(function(e){i.on(e,(function(t){var i=[];n.dataZoomInfoMap.each((function(a){if(t.isAvailableBehavior(a.model.option)){var r=(a.getRange||{})[e],o=r&&r(a.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!a.model.get("disabled",!0)&&o&&i.push({dataZoomId:a.model.id,start:o[0],end:o[1]})}})),i.length&&n.dispatchAction(i)}))})),n}function LM(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function PM(e,t,n,i){return e.coordinateSystem.containPoint([n,i])}function kM(e){var t,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return e.each((function(e){var r=e.model,o=!r.get("disabled",!0)&&(!r.get("zoomLock",!0)||"move");i[n+o]>i[n+t]&&(t=o),a=a&&r.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function NM(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var n=jM(t),i=n.coordSysRecordMap||(n.coordSysRecordMap=Object(b["createHashMap"])());i.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){var n=E_(e);Object(b["each"])(n.infoList,(function(n){var a=n.model.uid,r=i.get(a)||i.set(a,DM(t,n.model)),o=r.dataZoomInfoMap||(r.dataZoomInfoMap=Object(b["createHashMap"])());o.set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})}))})),i.each((function(e){var t,n=e.controller,a=e.dataZoomInfoMap;if(a){var r=a.keys()[0];null!=r&&(t=a.get(r))}if(t){var o=kM(a);n.enable(o.controlType,o.opt),n.setPointerChecker(e.containsPoint),_["b"](e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else TM(i,e)}))}))}var RM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return Object(ee["a"])(t,e),t.prototype.render=function(t,n,i){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),AM(i,t,{pan:Object(b["bind"])(EM.pan,this),zoom:Object(b["bind"])(EM.zoom,this),scrollMove:Object(b["bind"])(EM.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){CM(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(Z_),EM={zoom:function(e,t,n,i){var a=this.range,r=a.slice(),o=e.axisModels[0];if(o){var s=zM[t](null,[i.originX,i.originY],o,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(r[1]-r[0])+r[0],c=Math.max(1/i.scale,0);r[0]=(r[0]-l)*c+l,r[1]=(r[1]-l)*c+l;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return op(0,r,[0,100],0,u.minSpan,u.maxSpan),this.range=r,a[0]!==r[0]||a[1]!==r[1]?r:void 0}},pan:VM((function(e,t,n,i,a,r){var o=zM[i]([r.oldX,r.oldY],[r.newX,r.newY],t,a,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength})),scrollMove:VM((function(e,t,n,i,a,r){var o=zM[i]([0,0],[r.scrollDelta,r.scrollDelta],t,a,n);return o.signal*(e[1]-e[0])*r.scrollDelta}))};function VM(e){return function(t,n,i,a){var r=this.range,o=r.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,n,i,a);return op(l,o,[0,100],"all"),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}}}var zM={grid:function(e,t,n,i,a){var r=n.axis,o={},s=a.model.coordinateSystem.getRect();return e=e||[0,0],"x"===r.dim?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=r.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=r.inverse?-1:1),o},polar:function(e,t,n,i,a){var r=n.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=r.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=r.inverse?-1:1),o},singleAxis:function(e,t,n,i,a){var r=n.axis,o=a.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===r.orient?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=r.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=r.inverse?-1:1),s}},BM=RM;function GM(e){aO(e),e.registerComponentModel(IM),e.registerComponentView(BM),NM(e)}var FM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Object(la["d"])(G_.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"}}}),t}(G_),HM=FM,WM=Le["a"],ZM=7,YM=1,XM=30,UM=7,qM="horizontal",JM="vertical",KM=5,$M=["line","bar","candlestick","scatter"],QM={easing:"cubicOut",duration:100,delay:0},eI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return Object(ee["a"])(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=Object(b["bind"])(this._onBrush,this),this._onBrushEnd=Object(b["bind"])(this._onBrushEnd,this)},t.prototype.render=function(t,n,i,a){if(e.prototype.render.apply(this,arguments),_["b"](this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();a&&"dataZoom"===a.type&&a.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){_["a"](this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new Se["a"];this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get("brushSelect"),i=n?UM:0,a=this._findCoordRect(),r={width:t.getWidth(),height:t.getHeight()},o=this._orient===qM?{right:r.width-a.x-a.width,top:r.height-XM-ZM-i,width:a.width,height:XM}:{right:ZM,top:a.y,width:XM,height:a.height},s=H["f"](e.option);Object(b["each"])(["right","top","width","height"],(function(e){"ph"===s[e]&&(s[e]=o[e])}));var l=H["g"](s,r);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===JM&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),a=i&&i.get("inverse"),r=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;r.attr(n!==qM||a?n===qM&&a?{scaleY:o?1:-1,scaleX:-1}:n!==JM||a?{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?1:-1,scaleX:1});var s=e.getBoundingRect([r]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new WM({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var a=new WM({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:Object(b["bind"])(this._onClickPanel,this)}),r=this.api.getZr();i?(a.on("mousedown",this._onBrushStart,this),a.cursor="crosshair",r.on("mousemove",this._onBrush),r.on("mouseup",this._onBrushEnd)):(r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)),n.add(a)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],i=e.series,a=i.getRawData(),r=i.getShadowDim&&i.getShadowDim(),o=r&&a.getDimensionInfo(r)?i.getShadowDim():e.otherDim;if(null!=o){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(a!==this._shadowData||o!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var c=a.getDataExtent(o),u=.3*(c[1]-c[0]);c=[c[0]-u,c[1]+u];var h,d=[0,t[1]],p=[0,t[0]],f=[[t[0],0],[0,0]],g=[],y=p[1]/(a.count()-1),v=0,m=Math.round(a.count()/t[0]);a.each([o],(function(e,t){if(m>0&&t%m)v+=y;else{var n=null==e||isNaN(e)||""===e,i=n?0:Object(be["m"])(e,c,d,!0);n&&!h&&t?(f.push([f[f.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&h&&(f.push([v,0]),g.push([v,0])),f.push([v,i]),g.push([v,i]),v+=y,h=n}})),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=a,this._shadowDim=o,this._shadowSize=[t[0],t[1]];for(var b=this.dataZoomModel,x=0;x<3;x++){var _=O(1===x);this._displayables.sliderGroup.add(_),this._displayables.dataShadowSegs.push(_)}}}function O(e){var t=b.getModel(e?"selectedDataBackground":"dataBackground"),n=new Se["a"],i=new Te["a"]({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),a=new De["a"]({shape:{points:l},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(a),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,i=this.ecModel;return e.eachTargetAxis((function(a,r){var o=e.getAxisProxy(a,r).getTargetSeriesModels();Object(b["each"])(o,(function(e){if(!n&&!(!0!==t&&Object(b["indexOf"])($M,e.get("type"))<0)){var o,s=i.getComponent(N_(a),r).axis,l=tI(a),c=e.coordinateSystem;null!=l&&c.getOtherAxis&&(o=c.getOtherAxis(s).inverse),l=e.getData().mapDimension(l),n={thisAxis:s,series:e,thisDim:a,otherDim:l,otherAxisInverse:o}}}),this)}),this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],i=t.handleLabels=[null,null],a=this._displayables.sliderGroup,r=this._size,o=this.dataZoomModel,s=this.api,l=o.get("borderRadius")||0,c=o.get("brushSelect"),u=t.filler=new WM({silent:c,style:{fill:o.get("fillerColor")},textConfig:{position:"inside"}});a.add(u),a.add(new WM({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:r[0],height:r[1],r:l},style:{stroke:o.get("dataBackgroundColor")||o.get("borderColor"),lineWidth:YM,fill:"rgba(0,0,0,0)"}})),Object(b["each"])([0,1],(function(t){var r=o.get("handleIcon");!Y["d"][r]&&r.indexOf("path://")<0&&r.indexOf("image://")<0&&(r="path://"+r);var s=Object(Y["a"])(r,-1,0,2,2,null,!0);s.attr({cursor:nI(this._orient),draggable:!0,drift:Object(b["bind"])(this._onDragMove,this,t),ondragend:Object(b["bind"])(this._onDragEnd,this),onmouseover:Object(b["bind"])(this._showDataInfo,this,!0),onmouseout:Object(b["bind"])(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),c=o.get("handleSize");this._handleHeight=Object(be["q"])(c,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(o.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=o.getModel(["emphasis","handleStyle"]).getItemStyle(),Object(X["o"])(s);var u=o.get("handleColor");null!=u&&(s.style.fill=u),a.add(n[t]=s);var h=o.getModel("textStyle");e.add(i[t]=new Me["a"]({silent:!0,invisible:!0,style:Object(Z["c"])(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))}),this);var h=u;if(c){var d=Object(be["q"])(o.get("moveHandleSize"),r[1]),p=t.moveHandle=new Le["a"]({style:o.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:r[1]-.5,height:d}}),f=.8*d,g=t.moveHandleIcon=Object(Y["a"])(o.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=r[1]+d/2-.5,p.ensureState("emphasis").style=o.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(r[1]/2,Math.max(d,10));h=t.moveZone=new Le["a"]({invisible:!0,shape:{y:r[1]-y,height:d+y}}),h.on("mouseover",(function(){s.enterEmphasis(p)})).on("mouseout",(function(){s.leaveEmphasis(p)})),a.add(p),a.add(g),a.add(h)}h.attr({draggable:!0,cursor:nI(this._orient),drift:Object(b["bind"])(this._onDragMove,this,"all"),ondragstart:Object(b["bind"])(this._showDataInfo,this,!0),ondragend:Object(b["bind"])(this._onDragEnd,this),onmouseover:Object(b["bind"])(this._showDataInfo,this,!0),onmouseout:Object(b["bind"])(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[Object(be["m"])(e[0],[0,100],t,!0),Object(be["m"])(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,i=this._handleEnds,a=this._getViewExtent(),r=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];op(t,i,a,n.get("zoomLock")?"all":e,null!=r.minSpan?Object(be["m"])(r.minSpan,o,a,!0):null,null!=r.maxSpan?Object(be["m"])(r.maxSpan,o,a,!0):null);var s=this._range,l=this._range=Object(be["c"])([Object(be["m"])(i[0],a,o,!0),Object(be["m"])(i[1],a,o,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,i=Object(be["c"])(n.slice()),a=this._size;Object(b["each"])([0,1],(function(e){var i=t.handles[e],r=this._handleHeight;i.attr({scaleX:r/2,scaleY:r/2,x:n[e]+(e?-1:1),y:a[1]/2-r/2})}),this),t.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:a[1]});var r={x:i[0],width:i[1]-i[0]};t.moveHandle&&(t.moveHandle.setShape(r),t.moveZone.setShape(r),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",r.x+r.width/2));for(var o=t.dataShadowSegs,s=[0,i[0],i[1],a[0]],l=0;l<o.length;l++){var c=o[l],u=c.getClipPath();u||(u=new Le["a"],c.setClipPath(u)),u.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:a[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,i=n.handleLabels,a=this._orient,r=["",""];if(t.get("showDetail")){var o=t.findRepresentativeAxisProxy();if(o){var s=o.getAxisModel().axis,l=this._range,c=e?o.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:o.getDataValueWindow();r=[this._formatLabel(c[0],s),this._formatLabel(c[1],s)]}}var u=Object(be["c"])(this._handleEnds.slice());function h(e){var t=_e["getTransform"](n.handles[e].parent,this.group),o=_e["transformDirection"](0===e?"right":"left",t),s=this._handleWidth/2+KM,l=_e["applyTransform"]([u[e]+(0===e?-s:s),this._size[1]/2],t);i[e].setStyle({x:l[0],y:l[1],verticalAlign:a===qM?"middle":o,align:a===qM?o:"center",text:r[e]})}h.call(this,0),h.call(this,1)},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,i=n.get("labelFormatter"),a=n.get("labelPrecision");null!=a&&"auto"!==a||(a=t.getPixelPrecision());var r=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(a,20));return Object(b["isFunction"])(i)?i(e,r):Object(b["isString"])(i)?i.replace("{value}",r):r},t.prototype._showDataInfo=function(e){e=this._dragging||e;var t=this._displayables,n=t.handleLabels;n[0].attr("invisible",!e),n[1].attr("invisible",!e),t.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](t.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,i){this._dragging=!0,mo["g"](i.event);var a=this._displayables.sliderGroup.getLocalTransform(),r=_e["applyTransform"]([t,n],a,!0),o=this._updateInterval(e,r[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),o&&s&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var i=this._handleEnds,a=(i[0]+i[1])/2,r=this._updateInterval("all",n[0]-a);this._updateView(),r&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new bd["a"](t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var n=t.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var a=this._getViewExtent(),r=[0,100];this._range=Object(be["c"])([Object(be["m"])(n.x,a,r,!0),Object(be["m"])(n.x+n.width,a,r,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(mo["g"](e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,i=this.dataZoomModel,a=n.brushRect;a||(a=n.brushRect=new WM({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(a)),a.attr("ignore",!1);var r=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(e,t),l=o.transformCoordToLocal(r.x,r.y),c=this._size;s[0]=Math.max(Math.min(c[0],s[0]),0),a.setShape({x:l[0],y:0,width:s[0]-l[0],height:c[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?QM:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=E_(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),a=this.api.getHeight();e={x:.2*i,y:.2*a,width:.6*i,height:.6*a}}return e},t.type="dataZoom.slider",t}(Z_);function tI(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function nI(e){return"vertical"===e?"ns-resize":"ew-resize"}var iI=eI;function aI(e){e.registerComponentModel(HM),e.registerComponentView(iI),aO(e)}function rI(e){Object(c["a"])(GM),Object(c["a"])(aI)}var oI={get:function(e,t,n){var i=b["clone"]((sI[e]||{})[t]);return n&&b["isArray"](i)?i[i.length-1]:i}},sI={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]}},lI=oI,cI=xu.mapVisual,uI=xu.eachVisual,hI=b["isArray"],dI=b["each"],pI=be["c"],fI=be["m"],gI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return Object(ee["a"])(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&MS(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=b["bind"](e,this),this.controllerVisuals=wS(this.option.controller,t,e),this.targetVisuals=wS(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,n){t.push(n)})):t=w["r"](e),t},t.prototype.eachTargetSeries=function(e,t){b["each"](this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(t,i)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,n){var i,a=this.option,r=a.precision,o=this.dataBound,s=a.formatter;n=n||["<",">"],b["isArray"](e)&&(e=e.slice(),i=!0);var l=t?e:i?[c(e[0]),c(e[1])]:c(e);return b["isString"](s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):b["isFunction"](s)?i?s(e[0],e[1]):s(e):i?e[0]===o[0]?n[0]+" "+l[1]:e[1]===o[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function c(e){return e===o[0]?"min":e===o[1]?"max":(+e).toFixed(Math.min(r,20))}},t.prototype.resetExtent=function(){var e=this.option,t=pI([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var a=n[i],r=e.getDimensionInfo(a);if(!r.isCalculationCoord)return r.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},i=t.target||(t.target={}),a=t.controller||(t.controller={});b["merge"](i,n),b["merge"](a,n);var r=this.isCategory();function o(n){hI(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}function s(e,t,n){var i=e[t],a=e[n];i&&!a&&(a=e[n]={},dI(i,(function(e,t){if(xu.isValidType(t)){var n=lI.get(t,"inactive",r);null!=n&&(a[t]=n,"color"!==t||a.hasOwnProperty("opacity")||a.hasOwnProperty("colorAlpha")||(a.opacity=[0,0]))}})))}function l(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),a=this.getItemSymbol(),o=a||"roundRect";dI(this.stateList,(function(a){var s=this.itemSize,l=e[a];l||(l=e[a]={color:r?i:[i]}),null==l.symbol&&(l.symbol=t&&b["clone"](t)||(r?o:[o])),null==l.symbolSize&&(l.symbolSize=n&&b["clone"](n)||(r?s[0]:[s[0],s[0]])),l.symbol=cI(l.symbol,(function(e){return"none"===e?o:e}));var c=l.symbolSize;if(null!=c){var u=-1/0;uI(c,(function(e){e>u&&(u=e)})),l.symbolSize=cI(c,(function(e){return fI(e,[0,u],[0,s[0]],!0)}))}}),this)}o.call(this,i),o.call(this,a),s.call(this,i,"inRange","outOfRange"),l.call(this,a)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(h["a"]),yI=gI,vI=[20,140],mI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=vI[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=vI[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):b["isArray"](t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),b["each"](this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=be["c"]((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent();return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(n){var i=[],a=n.getData();a.each(this.getDataDimensionIndex(a),(function(t,n){e[0]<=t&&t<=e[1]&&i.push(n)}),this),t.push({seriesId:n.id,dataIndex:i})}),this),t},t.prototype.getVisualMeta=function(e){var t=bI(this,"outOfRange",this.getExtent()),n=bI(this,"inRange",this.option.range.slice()),i=[];function a(t,n){i.push({value:t,color:e(t,n)})}for(var r=0,o=0,s=n.length,l=t.length;o<l&&(!n.length||t[o]<=n[0]);o++)t[o]<n[r]&&a(t[o],"outOfRange");for(var c=1;r<s;r++,c=0)c&&i.length&&a(n[r],"outOfRange"),a(n[r],"inRange");for(c=1;o<l;o++)(!n.length||n[n.length-1]<t[o])&&(c&&(i.length&&a(i[i.length-1].value,"outOfRange"),c=0),a(t[o],"outOfRange"));var u=i.length;return{stops:i,outerColors:[u?i[0].color:"transparent",u?i[u-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Object(la["d"])(yI.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(yI);function bI(e,t,n){if(n[0]===n[1])return n.slice();for(var i=200,a=(n[1]-n[0])/i,r=n[0],o=[],s=0;s<=i&&r<n[1];s++)o.push(r),r+=a;return o.push(n[1]),o}var xI=mI,_I=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return Object(ee["a"])(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,i){this.visualMapModel=e,!1!==e.get("show")?this.doRender(e,t,n,i):this.group.removeAll()},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=Be["i"](t.get("padding")||0),i=e.getBoundingRect();e.add(new Le["a"]({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,t,n){n=n||{};var i=n.forceState,a=this.visualMapModel,r={};if("color"===t){var o=a.get("contentColor");r.color=o}function s(e){return r[e]}function l(e,t){r[e]=t}var c=a.controllerVisuals[i||a.getValueState(e)],u=xu.prepareVisualTypes(c);return b["each"](u,(function(i){var a=c[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",a=c.__alphaForOpacity),xu.dependsOn(i,t)&&a&&a.applyVisual(e,s,l)})),r[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api;H["i"](e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,t,n,i){},t.type="visualMap",t}(d["a"]),OI=_I,SI=[["left","right","width"],["top","bottom","height"]];function wI(e,t,n){var i=e.option,a=i.align;if(null!=a&&"auto"!==a)return a;for(var r={width:t.getWidth(),height:t.getHeight()},o="horizontal"===i.orient?1:0,s=SI[o],l=[0,null,10],c={},u=0;u<3;u++)c[SI[1-o][u]]=l[u],c[s[u]]=2===u?n[0]:i[s[u]];var h=[["x","width",3],["y","height",0]][o],d=Object(H["g"])(c,r,i.padding);return s[(d.margin[h[2]]||0)+d[h[0]]+.5*d[h[1]]<.5*r[h[1]]?0:1]}function MI(e,t){return b["each"](e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}var II=be["m"],jI=b["each"],AI=Math.min,CI=Math.max,TI=12,DI=6,LI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return Object(ee["a"])(t,e),t.prototype.doRender=function(e,t,n,i){this._api=n,i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var n=e.get("text");this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var i=t[1-n];i=null!=i?i+"":"";var a=this.visualMapModel,r=a.get("textGap"),o=a.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([o[0]/2,0===n?-r:o[1]+r],s),c=this._applyTransform(0===n?"bottom":"top",s),u=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new Me["a"]({style:Object(Z["c"])(h,{x:l[0],y:l[1],verticalAlign:"horizontal"===u?"middle":c,align:"horizontal"===u?c:"center",text:i})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,i=t.itemSize,a=this._orient,r=this._useHandle,o=wI(t,this.api,i),s=n.mainGroup=this._createBarGroup(o),l=new Se["a"];s.add(l),l.add(n.outOfRange=PI()),l.add(n.inRange=PI(null,r?RI(this._orient):null,b["bind"](this._dragHandle,this,"all",!1),b["bind"](this._dragHandle,this,"all",!0))),l.setClipPath(new Le["a"]({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var c=t.textStyleModel.getTextRect("国"),u=CI(c.width,c.height);r&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,i,u,a),this._createHandle(t,s,1,i,u,a)),this._createIndicator(t,s,i,u,a),e.add(s)},t.prototype._createHandle=function(e,t,n,i,a,r){var o=b["bind"](this._dragHandle,this,n,!1),s=b["bind"](this._dragHandle,this,n,!0),l=Object(Ze["g"])(e.get("handleSize"),i[0]),c=Object(Y["a"])(e.get("handleIcon"),-l/2,-l/2,l,l,null,!0),u=RI(this._orient);c.attr({cursor:u,draggable:!0,drift:o,ondragend:s,onmousemove:function(e){mo["g"](e.event)}}),c.x=i[0]/2,c.useStyle(e.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),Object(X["F"])(c,!0),t.add(c);var h=this.visualMapModel.textStyleModel,d=new Me["a"]({cursor:u,draggable:!0,drift:o,onmousemove:function(e){mo["g"](e.event)},ondragend:s,style:Object(Z["c"])(h,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[l,0],f=this._shapes;f.handleThumbs[n]=c,f.handleLabelPoints[n]=p,f.handleLabels[n]=d},t.prototype._createIndicator=function(e,t,n,i,a){var r=Object(Ze["g"])(e.get("indicatorSize"),n[0]),o=Object(Y["a"])(e.get("indicatorIcon"),-r/2,-r/2,r,r,null,!0);o.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel("indicatorStyle").getItemStyle();if(o instanceof we["a"]){var l=o.style;o.useStyle(b["extend"]({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else o.useStyle(s);t.add(o);var c=this.visualMapModel.textStyleModel,u=new Me["a"]({silent:!0,invisible:!0,style:Object(Z["c"])(c,{x:0,y:0,text:""})});this.group.add(u);var h=[("horizontal"===a?i/2:DI)+n[0]/2,0],d=this._shapes;d.indicator=o,d.indicatorLabel=u,d.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,i){if(this._useHandle){if(this._dragging=!t,!t){var a=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(e,a[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():NI(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[II(t[0],n,i,!0),II(t[1],n,i,!0)]},t.prototype._updateInterval=function(e,t){t=t||0;var n=this.visualMapModel,i=this._handleEnds,a=[0,n.itemSize[1]];op(t,i,a,e,0);var r=n.getExtent();this._dataInterval=[II(i[0],a,r,!0),II(i[1],a,r,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),i=this._shapes,a=[0,t.itemSize[1]],r=e?a:this._handleEnds,o=this._createBarVisual(this._dataInterval,n,r,"inRange"),s=this._createBarVisual(n,n,a,"outOfRange");i.inRange.setStyle({fill:o.barColor}).setShape("points",o.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(r,o)},t.prototype._createBarVisual=function(e,t,n,i){var a={forceState:i,convertOpacityToAlpha:!0},r=this._makeColorGradient(e,a),o=[this.getControllerVisual(e[0],"symbolSize",a),this.getControllerVisual(e[1],"symbolSize",a)],s=this._createBarPoints(n,o);return{barColor:new Ve["a"](0,0,0,1,r),barPoints:s,handlesColor:[r[0].color,r[r.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=100,i=[],a=(e[1]-e[0])/n;i.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var r=1;r<n;r++){var o=e[0]+a*r;if(o>e[1])break;i.push({color:this.getControllerVisual(o,"color",t),offset:r/n})}return i.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),i},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new Se["a"]("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,a=n.handleThumbs,r=n.handleLabels,o=i.itemSize,s=i.getExtent();jI([0,1],(function(l){var c=a[l];c.setStyle("fill",t.handlesColor[l]),c.y=e[l];var u=II(e[l],[0,o[1]],s,!0),h=this.getControllerVisual(u,"symbolSize");c.scaleX=c.scaleY=h/o[0],c.x=o[0]-h/2;var d=_e["applyTransform"](n.handleLabelPoints[l],_e["getTransform"](c,this.group));r[l].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,i){var a=this.visualMapModel,r=a.getExtent(),o=a.itemSize,s=[0,o[1]],l=this._shapes,c=l.indicator;if(c){c.attr("invisible",!1);var u={convertOpacityToAlpha:!0},h=this.getControllerVisual(e,"color",u),d=this.getControllerVisual(e,"symbolSize"),p=II(e,r,s,!0),f=o[0]-d/2,g={x:c.x,y:c.y};c.y=p,c.x=f;var y=_e["applyTransform"](l.indicatorLabelPoint,_e["getTransform"](c,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var m=this._applyTransform("left",l.mainGroup),b=this._orient,x="horizontal"===b;v.setStyle({text:(n||"")+a.formatValueText(t),verticalAlign:x?m:"middle",align:x?"center":m});var _={x:f,y:p,style:{fill:h}},O={style:{x:y[0],y:y[1]}};if(a.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var S={duration:100,easing:"cubicInOut",additive:!0};c.x=g.x,c.y=g.y,c.animateTo(_,S),v.animateTo(O,S)}else c.attr(_),v.attr(O);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var M=0;M<w.length;M++)this._api.enterBlur(w[M])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",(function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,i=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);i[1]=AI(CI(0,i[1]),n[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()}))},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var a=[0,i[1]],r=n.getExtent();e=AI(CI(a[0],e),a[1]);var o=kI(n,r,a),s=[e-o,e+o],l=II(e,a,r,!0),c=[II(s[0],a,r,!0),II(s[1],a,r,!0)];s[0]<a[0]&&(c[0]=-1/0),s[1]>a[1]&&(c[1]=1/0),t&&(c[0]===-1/0?this._showIndicator(l,c[1],"< ",o):c[1]===1/0?this._showIndicator(l,c[0],"> ",o):this._showIndicator(l,l,"≈ ",o));var u=this._hoverLinkDataIndices,h=[];(t||NI(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var d=w["d"](u,h);this._dispatchHighDown("downplay",MI(d[0],n)),this._dispatchHighDown("highlight",MI(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(Object(yl["a"])(e.target,(function(e){var n=Object(W["a"])(e);if(null!=n.dataIndex)return t=n,!0}),!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var a=n.getData(t.dataType),r=a.getStore().get(i.getDataDimensionIndex(a),t.dataIndex);isNaN(r)||this._showIndicator(r,r)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this._api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",MI(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,i){var a=_e["getTransform"](t,i?null:this.group);return b["isArray"](e)?_e["applyTransform"](e,a,n):_e["transformDirection"](e,a,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(OI);function PI(e,t,n,i){return new Te["a"]({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){mo["g"](e.event)},ondragend:i})}function kI(e,t,n){var i=TI/2,a=e.get("hoverLinkDataSize");return a&&(i=II(a,t,n,!0)/2),i}function NI(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function RI(e){return"vertical"===e?"ns-resize":"ew-resize"}var EI=LI,VI={type:"selectDataRange",event:"dataRangeSelected",update:"update"},zI=function(e,t){t.eachComponent({mainType:"visualMap",query:e},(function(t){t.setSelected(e.selected)}))},BI=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",(function(t){var i=e.pipelineContext;!t.isTargetSeries(e)||i&&i.large||n.push(jS(t.stateList,t.targetVisuals,b["bind"](t.getValueState,t),t.getDataDimensionIndex(e.getData())))})),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),i=[];t.eachComponent("visualMap",(function(t){if(t.isTargetSeries(e)){var a=t.getVisualMeta(b["bind"](GI,null,e,t))||{stops:[],outerColors:[]},r=t.getDataDimensionIndex(n);r>=0&&(a.dimension=r,i.push(a))}})),e.getData().setVisual("visualMeta",i)}}];function GI(e,t,n,i){for(var a=t.targetVisuals[i],r=xu.prepareVisualTypes(a),o={color:Object(_S["b"])(e.getData(),"color")},s=0,l=r.length;s<l;s++){var c=r[s],u=a["opacity"===c?"__alphaForOpacity":c];u&&u.applyVisual(n,h,d)}return o.color;function h(e){return o[e]}function d(e,t){o[e]=t}}var FI=b["each"];function HI(e){var t=e&&e.visualMap;b["isArray"](t)||(t=t?[t]:[]),FI(t,(function(e){if(e){WI(e,"splitList")&&!WI(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&b["isArray"](t)&&FI(t,(function(e){b["isObject"](e)&&(WI(e,"start")&&!WI(e,"min")&&(e.min=e.start),WI(e,"end")&&!WI(e,"max")&&(e.max=e.end))}))}}))}function WI(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var ZI=!1;function YI(e){ZI||(ZI=!0,e.registerSubTypeDefaulter("visualMap",(function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(VI,zI),Object(b["each"])(BI,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(HI))}function XI(e){e.registerComponentModel(xI),e.registerComponentView(EI),YI(e)}var UI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return Object(ee["a"])(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],qI[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var a=this.option.categories;this.resetVisual((function(e,t){"categories"===i?(e.mappingMethod="category",e.categories=b["clone"](a)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=b["map"](this._pieceList,(function(e){return e=b["clone"](e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},i=xu.listVisualTypes(),a=this.isCategory();function r(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}b["each"](t.pieces,(function(e){b["each"](i,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),b["each"](n,(function(e,n){var i=!1;b["each"](this.stateList,(function(e){i=i||r(t,e,n)||r(t.target,e,n)}),this),!i&&b["each"](this.stateList,(function(e){(t[e]||(t[e]={}))[n]=lI.get(n,"inRange"===e?"active":"inactive",a)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,i=this._pieceList,a=(t?n:e).selected||{};if(n.selected=a,b["each"](i,(function(e,t){var n=this.getSelectedMapKey(e);a.hasOwnProperty(n)||(a[n]=!0)}),this),"single"===n.selectedMode){var r=!1;b["each"](i,(function(e,t){var n=this.getSelectedMapKey(e);a[n]&&(r?a[n]=!1:r=!0)}),this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=b["clone"](e)},t.prototype.getValueState=function(e){var t=xu.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(i){var a=[],r=i.getData();r.each(this.getDataDimensionIndex(r),(function(t,i){var r=xu.findPieceIndex(t,n);r===e&&a.push(i)}),this),t.push({seriesId:i.id,dataIndex:a})}),this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],i=this,a=this._pieceList.slice();if(a.length){var r=a[0].interval[0];r!==-1/0&&a.unshift({interval:[-1/0,r]}),r=a[a.length-1].interval[1],r!==1/0&&a.push({interval:[r,1/0]})}else a.push({interval:[-1/0,1/0]});var o=-1/0;return b["each"](a,(function(e){var t=e.interval;t&&(t[0]>o&&s([o,t[0]],"outOfRange"),s(t.slice()),o=t[1])}),this),{stops:t,outerColors:n}}function s(a,r){var o=i.getRepresentValue({interval:a});r||(r=i.getValueState(o));var s=e(o,r);a[0]===-1/0?n[0]=s:a[1]===1/0?n[1]=s:t.push({value:a[0],color:s},{value:a[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=Object(la["d"])(yI.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(yI),qI={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),i=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;var r=(i[1]-i[0])/a;while(+r.toFixed(n)!==r&&n<5)n++;t.precision=n,r=+r.toFixed(n),t.minOpen&&e.push({interval:[-1/0,i[0]],close:[0,0]});for(var o=0,s=i[0];o<a;s+=r,o++){var l=o===a-1?i[1]:s+r;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[i[1],1/0],close:[0,0]}),Object(be["u"])(e),b["each"](e,(function(e,t){e.index=t,e.text=this.formatValueText(e.interval)}),this)},categories:function(e){var t=this.option;b["each"](t.categories,(function(t){e.push({text:this.formatValueText(t,!0),value:t})}),this),JI(t,e)},pieces:function(e){var t=this.option;b["each"](t.pieces,(function(t,n){b["isObject"](t)||(t={value:t});var i={text:"",index:n};if(null!=t.label&&(i.text=t.label),t.hasOwnProperty("value")){var a=i.value=t.value;i.interval=[a,a],i.close=[1,1]}else{for(var r=i.interval=[],o=i.close=[0,0],s=[1,0,1],l=[-1/0,1/0],c=[],u=0;u<2;u++){for(var h=[["gte","gt","min"],["lte","lt","max"]][u],d=0;d<3&&null==r[u];d++)r[u]=t[h[d]],o[u]=s[d],c[u]=2===d;null==r[u]&&(r[u]=l[u])}c[0]&&r[1]===1/0&&(o[0]=0),c[1]&&r[0]===-1/0&&(o[1]=0),r[0]===r[1]&&o[0]&&o[1]&&(i.value=r[0])}i.visual=xu.retrieveVisuals(t),e.push(i)}),this),JI(t,e),Object(be["u"])(e),b["each"](e,(function(e){var t=e.close,n=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function JI(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var KI=UI,$I=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(ee["a"])(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),i=t.textStyleModel,a=i.getFont(),r=i.getTextColor(),o=this._getItemAlign(),s=t.itemSize,l=this._getViewData(),c=l.endsText,u=b["retrieve"](t.get("showLabel",!0),!c);c&&this._renderEndsText(e,c[0],s,u,o),b["each"](l.viewPieceList,(function(i){var l=i.piece,c=new Se["a"];c.onclick=b["bind"](this._onItemClick,this,l),this._enableHoverLink(c,i.indexInModelPieceList);var h=t.getRepresentValue(l);if(this._createItemSymbol(c,h,[0,0,s[0],s[1]]),u){var d=this.visualMapModel.getValueState(h);c.add(new Me["a"]({style:{x:"right"===o?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:o,font:a,fill:r,opacity:"outOfRange"===d?.5:1}}))}e.add(c)}),this),c&&this._renderEndsText(e,c[1],s,u,o),H["b"](t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(e){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:e,batch:MI(i.findTargetDataIndices(t),i)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return wI(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,i,a){if(t){var r=new Se["a"],o=this.visualMapModel.textStyleModel;r.add(new Me["a"]({style:Object(Z["c"])(o,{x:i?"right"===a?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?a:"center",text:t})})),e.add(r)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=b["map"](e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),i=e.get("orient"),a=e.get("inverse");return("horizontal"===i?a:!a)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n){e.add(Object(Y["a"])(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,i=n.selectedMode;if(i){var a=b["clone"](n.selected),r=t.getSelectedMapKey(e);"single"===i||!0===i?(a[r]=!0,b["each"](a,(function(e,t){a[t]=t===r}))):a[r]=!a[r],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:a})}},t.type="visualMap.piecewise",t}(OI),QI=$I;function ej(e){e.registerComponentModel(KI),e.registerComponentView(QI),YI(e)}function tj(e){Object(c["a"])(XI),Object(c["a"])(ej)}var nj={label:{enabled:!0},decal:{show:!1}},ij=Object(w["o"])(),aj={};function rj(e,t){var n=e.getModel("aria");if(n.get("enabled")){var i=b["clone"](nj);b["merge"](i.label,e.getLocaleModel().get("aria"),!1),b["merge"](n.option,i,!1),a(),r()}function a(){var t=n.getModel("decal"),i=t.get("show");if(i){var a=b["createHashMap"]();e.eachSeries((function(e){if(!e.isColorBySeries()){var t=a.get(e.type);t||(t={},a.set(e.type,t)),ij(e).scope=t}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if(b["isFunction"](t.enableAriaDecal))t.enableAriaDecal();else{var n=t.getData();if(t.isColorBySeries()){var i=Object(Sc["b"])(t.ecModel,t.name,aj,e.getSeriesCount()),a=n.getVisual("decal");n.setVisual("decal",c(a,i))}else{var r=t.getRawData(),o={},s=ij(t).scope;n.each((function(e){var t=n.getRawIndex(e);o[t]=e}));var l=r.count();r.each((function(e){var i=o[e],a=r.getName(e)||e+"",u=Object(Sc["b"])(t.ecModel,a,s,l),h=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",c(h,u))}))}}function c(e,t){var n=e?b["extend"](b["extend"]({},t),e):t;return n.dirty=!0,n}}))}}function r(){var i=e.getLocaleModel().get("aria"),a=n.getModel("label");if(a.option=b["defaults"](a.option,i),a.get("enabled")){var r=t.getZr().dom;if(a.get("description"))r.setAttribute("aria-label",a.get("description"));else{var c,u=e.getSeriesCount(),h=a.get(["data","maxCount"])||10,d=a.get(["series","maxCount"])||10,p=Math.min(u,d);if(!(u<1)){var f=s();if(f){var g=a.get(["general","withTitle"]);c=o(g,{title:f})}else c=a.get(["general","withoutTitle"]);var y=[],v=u>1?a.get(["series","multiple","prefix"]):a.get(["series","single","prefix"]);c+=o(v,{seriesCount:u}),e.eachSeries((function(e,t){if(t<p){var n=void 0,i=e.get("name"),r=i?"withName":"withoutName";n=u>1?a.get(["series","multiple",r]):a.get(["series","single",r]),n=o(n,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:l(e.subType)});var s=e.getData();if(s.count()>h){var c=a.get(["data","partialData"]);n+=o(c,{displayCnt:h})}else n+=a.get(["data","allData"]);for(var d=a.get(["data","separator","middle"]),f=a.get(["data","separator","end"]),g=[],v=0;v<s.count();v++)if(v<h){var m=s.getName(v),b=s.getValues(v),x=a.get(["data",m?"withName":"withoutName"]);g.push(o(x,{name:m,value:b.join(d)}))}n+=g.join(d)+f,y.push(n)}}));var m=a.getModel(["series","multiple","separator"]),x=m.get("middle"),_=m.get("end");c+=y.join(x)+_,r.setAttribute("aria-label",c)}}}}function o(e,t){if(!b["isString"](e))return e;var n=e;return b["each"](t,(function(e,t){n=n.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)})),n}function s(){var t=e.get("title");return t&&t.length&&(t=t[0]),t&&t.text}function l(t){return e.getLocaleModel().get(["series","typeNames"])[t]||"自定义图"}}function oj(e){if(e&&e.aria){var t=e.aria;null!=t.show&&(t.enabled=t.show),t.label=t.label||{},b["each"](["description","general","series","data"],(function(e){null!=t[e]&&(t.label[e]=t[e])}))}}function sj(e){e.registerPreprocessor(oj),e.registerVisual(e.PRIORITY.VISUAL.ARIA,rj)}var lj={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},cj=function(){function e(e){var t=this._condVal=Object(b["isString"])(e)?new RegExp(e):Object(b["isRegExp"])(e)?e:null;if(null==t){var n="";0,Object(nu["c"])(n)}}return e.prototype.evaluate=function(e){var t=typeof e;return Object(b["isString"])(t)?this._condVal.test(e):!!Object(b["isNumber"])(t)&&this._condVal.test(e+"")},e}(),uj=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),hj=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),dj=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),pj=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),fj=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),i=e?this.valueParser(n):null,a=0;a<this.subCondList.length;a++)if(!this.subCondList[a].evaluate(e?i:n))return!1;return!0},e}();function gj(e,t){if(!0===e||!1===e){var n=new uj;return n.value=e,n}var i="";return bj(e)||Object(nu["c"])(i),e.and?yj("and",e,t):e.or?yj("or",e,t):e.not?vj(e,t):mj(e,t)}function yj(e,t,n){var i=t[e],a="";Object(b["isArray"])(i)||Object(nu["c"])(a),i.length||Object(nu["c"])(a);var r="and"===e?new hj:new dj;return r.children=Object(b["map"])(i,(function(e){return gj(e,n)})),r.children.length||Object(nu["c"])(a),r}function vj(e,t){var n=e.not,i="";bj(n)||Object(nu["c"])(i);var a=new pj;return a.child=gj(n,t),a.child||Object(nu["c"])(i),a}function mj(e,t){for(var n="",i=t.prepareGetValue(e),a=[],r=Object(b["keys"])(e),o=e.parser,s=o?Object(Pw["c"])(o):null,l=0;l<r.length;l++){var c=r[l];if("parser"!==c&&!t.valueGetterAttrMap.get(c)){var u=Object(b["hasOwn"])(lj,c)?lj[c]:c,h=e[c],d=s?s(h):h,p=Object(Pw["b"])(u,d)||"reg"===u&&new cj(d);p||Object(nu["c"])(n),a.push(p)}}a.length||Object(nu["c"])(n);var f=new fj;return f.valueGetterParam=i,f.valueParser=s,f.getValue=t.getValue,f.subCondList=a,f}function bj(e){return Object(b["isObject"])(e)&&!Object(b["isArrayLike"])(e)}var xj=function(){function e(e,t){this._cond=gj(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function _j(e,t){return new xj(e,t)}var Oj={type:"echarts:filter",transform:function(e){for(var t,n=e.upstream,i=_j(e.config,{valueGetterAttrMap:Object(b["createHashMap"])({dimension:!0}),prepareGetValue:function(e){var t="",i=e.dimension;Object(b["hasOwn"])(e,"dimension")||Object(nu["c"])(t);var a=n.getDimensionInfo(i);return a||Object(nu["c"])(t),{dimIdx:a.index}},getValue:function(e){return n.retrieveValueFromItem(t,e.dimIdx)}}),a=[],r=0,o=n.count();r<o;r++)t=n.getRawDataItem(r),i.evaluate()&&a.push(t);return{data:a}}};var Sj={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,i="",a=Object(w["r"])(n);a.length||Object(nu["c"])(i);var r=[];Object(b["each"])(a,(function(e){var n=e.dimension,a=e.order,o=e.parser,s=e.incomparable;if(null==n&&Object(nu["c"])(i),"asc"!==a&&"desc"!==a&&Object(nu["c"])(i),s&&"min"!==s&&"max"!==s){var l="";0,Object(nu["c"])(l)}if("asc"!==a&&"desc"!==a){var c="";0,Object(nu["c"])(c)}var u=t.getDimensionInfo(n);u||Object(nu["c"])(i);var h=o?Object(Pw["c"])(o):null;o&&!h&&Object(nu["c"])(i),r.push({dimIdx:u.index,parser:h,comparator:new Pw["a"](a,s)})}));var o=t.sourceFormat;o!==P["c"]&&o!==P["e"]&&Object(nu["c"])(i);for(var s=[],l=0,c=t.count();l<c;l++)s.push(t.getRawDataItem(l));return s.sort((function(e,n){for(var i=0;i<r.length;i++){var a=r[i],o=t.retrieveValueFromItem(e,a.dimIdx),s=t.retrieveValueFromItem(n,a.dimIdx);a.parser&&(o=a.parser(o),s=a.parser(s));var l=a.comparator.evaluate(o,s);if(0!==l)return l}return 0})),{data:s}}};function wj(e){e.registerTransform(Oj),e.registerTransform(Sj)}var Mj=n("f72b"),Ij=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return Object(ee["a"])(t,e),t.prototype.init=function(t,n,i){e.prototype.init.call(this,t,n,i),this._sourceManager=new Mj["a"](this),Object(Mj["b"])(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),Object(Mj["b"])(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:P["a"]},t}(h["a"]),jj=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return Object(ee["a"])(t,e),t.type="dataset",t}(d["a"]);function Aj(e){e.registerComponentModel(Ij),e.registerComponentView(jj)}var Cj=Kt["a"].CMD;function Tj(e,t){return Math.abs(e-t)<1e-5}function Dj(e){var t,n,i,a,r,o=e.data,s=e.len(),l=[],c=0,u=0,h=0,d=0;function p(e,n){t&&t.length>2&&l.push(t),t=[e,n]}function f(e,n,i,a){Tj(e,i)&&Tj(n,a)||t.push(e,n,i,a,i,a)}function g(e,n,i,a,r,o){var s=Math.abs(n-e),l=4*Math.tan(s/4)/3,c=n<e?-1:1,u=Math.cos(e),h=Math.sin(e),d=Math.cos(n),p=Math.sin(n),f=u*r+i,g=h*o+a,y=d*r+i,v=p*o+a,m=r*l*c,b=o*l*c;t.push(f-m*h,g+b*u,y+m*p,v-b*d,y,v)}for(var y=0;y<s;){var v=o[y++],m=1===y;switch(m&&(c=o[y],u=o[y+1],h=c,d=u,v!==Cj.L&&v!==Cj.C&&v!==Cj.Q||(t=[h,d])),v){case Cj.M:c=h=o[y++],u=d=o[y++],p(h,d);break;case Cj.L:n=o[y++],i=o[y++],f(c,u,n,i),c=n,u=i;break;case Cj.C:t.push(o[y++],o[y++],o[y++],o[y++],c=o[y++],u=o[y++]);break;case Cj.Q:n=o[y++],i=o[y++],a=o[y++],r=o[y++],t.push(c+2/3*(n-c),u+2/3*(i-u),a+2/3*(n-a),r+2/3*(i-r),a,r),c=a,u=r;break;case Cj.A:var b=o[y++],x=o[y++],_=o[y++],O=o[y++],S=o[y++],w=o[y++]+S;y+=1;var M=!o[y++];n=Math.cos(S)*_+b,i=Math.sin(S)*O+x,m?(h=n,d=i,p(h,d)):f(c,u,n,i),c=Math.cos(w)*_+b,u=Math.sin(w)*O+x;for(var I=(M?-1:1)*Math.PI/2,j=S;M?j>w:j<w;j+=I){var A=M?Math.max(j+I,w):Math.min(j+I,w);g(j,A,b,x,_,O)}break;case Cj.R:h=c=o[y++],d=u=o[y++],n=h+o[y++],i=d+o[y++],p(n,d),f(n,d,n,i),f(n,i,h,i),f(h,i,h,d),f(h,d,n,d);break;case Cj.Z:t&&f(c,u,h,d),c=h,u=d;break}}return t&&t.length>2&&l.push(t),l}function Lj(e,t,n,i,a,r,o,s,l,c){if(Tj(e,n)&&Tj(t,i)&&Tj(a,o)&&Tj(r,s))l.push(o,s);else{var u=2/c,h=u*u,d=o-e,p=s-t,f=Math.sqrt(d*d+p*p);d/=f,p/=f;var g=n-e,y=i-t,v=a-o,m=r-s,b=g*g+y*y,x=v*v+m*m;if(b<h&&x<h)l.push(o,s);else{var _=d*g+p*y,O=-d*v-p*m,S=b-_*_,w=x-O*O;if(S<h&&_>=0&&w<h&&O>=0)l.push(o,s);else{var M=[],I=[];Object(_i["g"])(e,n,a,o,.5,M),Object(_i["g"])(t,i,r,s,.5,I),Lj(M[0],I[0],M[1],I[1],M[2],I[2],M[3],I[3],l,c),Lj(M[4],I[4],M[5],I[5],M[6],I[6],M[7],I[7],l,c)}}}}function Pj(e,t){var n=Dj(e),i=[];t=t||1;for(var a=0;a<n.length;a++){var r=n[a],o=[],s=r[0],l=r[1];o.push(s,l);for(var c=2;c<r.length;){var u=r[c++],h=r[c++],d=r[c++],p=r[c++],f=r[c++],g=r[c++];Lj(s,l,u,h,d,p,f,g,o,t),s=f,l=g}i.push(o)}return i}function kj(e,t,n){var i=e[t],a=e[1-t],r=Math.abs(i/a),o=Math.ceil(Math.sqrt(r*n)),s=Math.floor(n/o);0===s&&(s=1,o=n);for(var l=[],c=0;c<o;c++)l.push(s);var u=o*s,h=n-u;if(h>0)for(c=0;c<h;c++)l[c%o]+=1;return l}function Nj(e,t,n){for(var i=e.r0,a=e.r,r=e.startAngle,o=e.endAngle,s=Math.abs(o-r),l=s*a,c=a-i,u=l>Math.abs(c),h=kj([l,c],u?0:1,t),d=(u?s:c)/h.length,p=0;p<h.length;p++)for(var f=(u?c:s)/h[p],g=0;g<h[p];g++){var y={};u?(y.startAngle=r+d*p,y.endAngle=r+d*(p+1),y.r0=i+f*g,y.r=i+f*(g+1)):(y.startAngle=r+f*g,y.endAngle=r+f*(g+1),y.r0=i+d*p,y.r=i+d*(p+1)),y.clockwise=e.clockwise,y.cx=e.cx,y.cy=e.cy,n.push(y)}}function Rj(e,t,n){for(var i=e.width,a=e.height,r=i>a,o=kj([i,a],r?0:1,t),s=r?"width":"height",l=r?"height":"width",c=r?"x":"y",u=r?"y":"x",h=e[s]/o.length,d=0;d<o.length;d++)for(var p=e[l]/o[d],f=0;f<o[d];f++){var g={};g[c]=d*h,g[u]=f*p,g[s]=h,g[l]=p,g.x+=e.x,g.y+=e.y,n.push(g)}}function Ej(e,t,n,i){return e*i-n*t}function Vj(e,t,n,i,a,r,o,s){var l=n-e,c=i-t,u=o-a,h=s-r,d=Ej(u,h,l,c);if(Math.abs(d)<1e-6)return null;var p=e-a,f=t-r,g=Ej(p,f,u,h)/d;return g<0||g>1?null:new bd["a"](g*l+e,g*c+t)}function zj(e,t,n){var i=new bd["a"];bd["a"].sub(i,n,t),i.normalize();var a=new bd["a"];bd["a"].sub(a,e,t);var r=a.dot(i);return r}function Bj(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function Gj(e,t,n){for(var i=e.length,a=[],r=0;r<i;r++){var o=e[r],s=e[(r+1)%i],l=Vj(o[0],o[1],s[0],s[1],t.x,t.y,n.x,n.y);l&&a.push({projPt:zj(l,t,n),pt:l,idx:r})}if(a.length<2)return[{points:e},{points:e}];a.sort((function(e,t){return e.projPt-t.projPt}));var c=a[0],u=a[a.length-1];if(u.idx<c.idx){var h=c;c=u,u=h}var d=[c.pt.x,c.pt.y],p=[u.pt.x,u.pt.y],f=[d],g=[p];for(r=c.idx+1;r<=u.idx;r++)Bj(f,e[r].slice());Bj(f,p),Bj(f,d);for(r=u.idx+1;r<=c.idx+i;r++)Bj(g,e[r%i].slice());return Bj(g,d),Bj(g,p),[{points:f},{points:g}]}function Fj(e){var t=e.points,n=[],i=[];Object(Nl["d"])(t,n,i);var a=new te["a"](n[0],n[1],i[0]-n[0],i[1]-n[1]),r=a.width,o=a.height,s=a.x,l=a.y,c=new bd["a"],u=new bd["a"];return r>o?(c.x=u.x=s+r/2,c.y=l,u.y=l+o):(c.y=u.y=l+o/2,c.x=s,u.x=s+r),Gj(t,c,u)}function Hj(e,t,n,i){if(1===n)i.push(t);else{var a=Math.floor(n/2),r=e(t);Hj(e,r[0],a,i),Hj(e,r[1],n-a,i)}return i}function Wj(e,t){for(var n=[],i=0;i<t;i++)n.push(Object(ko["a"])(e));return n}function Zj(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function Yj(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function Xj(e,t){var n,i=[],a=e.shape;switch(e.type){case"rect":Rj(a,t,i),n=Le["a"];break;case"sector":Nj(a,t,i),n=Ae["a"];break;case"circle":Nj({r0:0,r:a.r,startAngle:0,endAngle:2*Math.PI,cx:a.cx,cy:a.cy},t,i),n=Ae["a"];break;default:var r=e.getComputedTransform(),o=r?Math.sqrt(Math.max(r[0]*r[0]+r[1]*r[1],r[2]*r[2]+r[3]*r[3])):1,s=Object(b["map"])(Pj(e.getUpdatedPathProxy(),o),(function(e){return Yj(e)})),l=s.length;if(0===l)Hj(Fj,{points:s[0]},t,i);else if(l===t)for(var c=0;c<l;c++)i.push({points:s[c]});else{var u=0,h=Object(b["map"])(s,(function(e){var t=[],n=[];Object(Nl["d"])(e,t,n);var i=(n[1]-t[1])*(n[0]-t[0]);return u+=i,{poly:e,area:i}}));h.sort((function(e,t){return t.area-e.area}));var d=t;for(c=0;c<l;c++){var p=h[c];if(d<=0)break;var f=c===l-1?d:Math.ceil(p.area/u*t);f<0||(Hj(Fj,{points:p.poly},f,i),d-=f)}}n=Te["a"];break}if(!n)return Wj(e,t);var g=[];for(c=0;c<i.length;c++){var y=new n;y.setShape(i[c]),Zj(e,y),g.push(y)}return g}function Uj(e,t){var n=e.length,i=t.length;if(n===i)return[e,t];for(var a=[],r=[],o=n<i?e:t,s=Math.min(n,i),l=Math.abs(i-n)/6,c=(s-2)/6,u=Math.ceil(l/c)+1,h=[o[0],o[1]],d=l,p=2;p<s;){var f=o[p-2],g=o[p-1],y=o[p++],v=o[p++],m=o[p++],b=o[p++],x=o[p++],_=o[p++];if(d<=0)h.push(y,v,m,b,x,_);else{for(var O=Math.min(d,u-1)+1,S=1;S<=O;S++){var w=S/O;Object(_i["g"])(f,y,m,x,w,a),Object(_i["g"])(g,v,b,_,w,r),f=a[3],g=r[3],h.push(a[1],r[1],a[2],r[2],f,g),y=a[5],v=r[5],m=a[6],b=r[6]}d-=O-1}}return o===e?[h,t]:[e,h]}function qj(e,t){for(var n=e.length,i=e[n-2],a=e[n-1],r=[],o=0;o<t.length;)r[o++]=i,r[o++]=a;return r}function Jj(e,t){for(var n,i,a,r=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],c=t[s],u=void 0,h=void 0;l?c?(n=Uj(l,c),u=n[0],h=n[1],i=u,a=h):(h=qj(a||l,l),u=l):(u=qj(i||c,c),h=c),r.push(u),o.push(h)}return[r,o]}function Kj(e){for(var t=0,n=0,i=0,a=e.length,r=0,o=a-2;r<a;o=r,r+=2){var s=e[o],l=e[o+1],c=e[r],u=e[r+1],h=s*u-c*l;t+=h,n+=(s+c)*h,i+=(l+u)*h}return 0===t?[e[0]||0,e[1]||0]:[n/t/3,i/t/3,t]}function $j(e,t,n,i){for(var a=(e.length-2)/6,r=1/0,o=0,s=e.length,l=s-2,c=0;c<a;c++){for(var u=6*c,h=0,d=0;d<s;d+=2){var p=0===d?u:(u+d-2)%l+2,f=e[p]-n[0],g=e[p+1]-n[1],y=t[d]-i[0],v=t[d+1]-i[1],m=y-f,b=v-g;h+=m*m+b*b}h<r&&(r=h,o=c)}return o}function Qj(e){for(var t=[],n=e.length,i=0;i<n;i+=2)t[i]=e[n-i-2],t[i+1]=e[n-i-1];return t}function eA(e,t,n,i){for(var a,r=[],o=0;o<e.length;o++){var s=e[o],l=t[o],c=Kj(s),u=Kj(l);null==a&&(a=c[2]<0!==u[2]<0);var h=[],d=[],p=0,f=1/0,g=[],y=s.length;a&&(s=Qj(s));for(var v=6*$j(s,l,c,u),m=y-2,b=0;b<m;b+=2){var x=(v+b)%m+2;h[b+2]=s[x]-c[0],h[b+3]=s[x+1]-c[1]}if(h[0]=s[v]-c[0],h[1]=s[v+1]-c[1],n>0)for(var _=i/n,O=-i/2;O<=i/2;O+=_){var S=Math.sin(O),w=Math.cos(O),M=0;for(b=0;b<s.length;b+=2){var I=h[b],j=h[b+1],A=l[b]-u[0],C=l[b+1]-u[1],T=A*w-C*S,D=A*S+C*w;g[b]=T,g[b+1]=D;var L=T-I,P=D-j;M+=L*L+P*P}if(M<f){f=M,p=O;for(var k=0;k<g.length;k++)d[k]=g[k]}}else for(var N=0;N<y;N+=2)d[N]=l[N]-u[0],d[N+1]=l[N+1]-u[1];r.push({from:h,to:d,fromCp:c,toCp:u,rotation:-p})}return r}function tA(e){return e.__isCombineMorphing}var nA="__mOriginal_";function iA(e,t,n){var i=nA+t,a=e[i]||e[t];e[i]||(e[i]=e[t]);var r=n.replace,o=n.after,s=n.before;e[t]=function(){var e,t=arguments;return s&&s.apply(this,t),e=r?r.apply(this,t):a.apply(this,t),o&&o.apply(this,t),e}}function aA(e,t){var n=nA+t;e[n]&&(e[t]=e[n],e[n]=null)}function rA(e,t){for(var n=0;n<e.length;n++)for(var i=e[n],a=0;a<i.length;){var r=i[a],o=i[a+1];i[a++]=t[0]*r+t[2]*o+t[4],i[a++]=t[1]*r+t[3]*o+t[5]}}function oA(e,t){var n=e.getUpdatedPathProxy(),i=t.getUpdatedPathProxy(),a=Jj(Dj(n),Dj(i)),r=a[0],o=a[1],s=e.getComputedTransform(),l=t.getComputedTransform();function c(){this.transform=null}s&&rA(r,s),l&&rA(o,l),iA(t,"updateTransform",{replace:c}),t.transform=null;var u=eA(r,o,10,Math.PI),h=[];iA(t,"buildPath",{replace:function(e){for(var n=t.__morphT,i=1-n,a=[],r=0;r<u.length;r++){var o=u[r],s=o.from,l=o.to,c=o.rotation*n,d=o.fromCp,p=o.toCp,f=Math.sin(c),g=Math.cos(c);Object(m["lerp"])(a,d,p,n);for(var y=0;y<s.length;y+=2){var v=s[y],b=s[y+1],x=l[y],_=l[y+1],O=v*i+x*n,S=b*i+_*n;h[y]=O*g-S*f+a[0],h[y+1]=O*f+S*g+a[1]}var w=h[0],M=h[1];e.moveTo(w,M);for(y=2;y<s.length;){x=h[y++],_=h[y++];var I=h[y++],j=h[y++],A=h[y++],C=h[y++];w===x&&M===_&&I===A&&j===C?e.lineTo(A,C):e.bezierCurveTo(x,_,I,j,A,C),w=A,M=C}}}})}function sA(e,t,n){if(!e||!t)return t;var i=n.done,a=n.during;function r(){aA(t,"buildPath"),aA(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return oA(e,t),t.__morphT=0,t.animateTo({__morphT:1},Object(b["defaults"])({during:function(e){t.dirtyShape(),a&&a(e)},done:function(){r(),i&&i()}},n)),t}function lA(e,t,n,i,a,r){var o=16;e=a===n?0:Math.round(32767*(e-n)/(a-n)),t=r===i?0:Math.round(32767*(t-i)/(r-i));for(var s,l=0,c=(1<<o)/2;c>0;c/=2){var u=0,h=0;(e&c)>0&&(u=1),(t&c)>0&&(h=1),l+=c*c*(3*u^h),0===h&&(1===u&&(e=c-1-e,t=c-1-t),s=e,e=t,t=s)}return l}function cA(e){var t=1/0,n=1/0,i=-1/0,a=-1/0,r=Object(b["map"])(e,(function(e){var r=e.getBoundingRect(),o=e.getComputedTransform(),s=r.x+r.width/2+(o?o[4]:0),l=r.y+r.height/2+(o?o[5]:0);return t=Math.min(s,t),n=Math.min(l,n),i=Math.max(s,i),a=Math.max(l,a),[s,l]})),o=Object(b["map"])(r,(function(r,o){return{cp:r,z:lA(r[0],r[1],t,n,i,a),path:e[o]}}));return o.sort((function(e,t){return e.z-t.z})).map((function(e){return e.path}))}function uA(e){return Xj(e.path,e.count)}function hA(){return{fromIndividuals:[],toIndividuals:[],count:0}}function dA(e,t,n){var i=[];function a(e){for(var t=0;t<e.length;t++){var n=e[t];tA(n)?a(n.childrenRef()):n instanceof xt["b"]&&i.push(n)}}a(e);var r=i.length;if(!r)return hA();var o=n.dividePath||uA,s=o({path:t,count:r});if(s.length!==r)return console.error("Invalid morphing: unmatched splitted path"),hA();i=cA(i),s=cA(s);for(var l=n.done,c=n.during,u=n.individualDelay,h=new Jt["c"],d=0;d<r;d++){var p=i[d],f=s[d];f.parent=t,f.copyTransform(h),u||oA(p,f)}function g(e){for(var t=0;t<s.length;t++)s[t].addSelfToZr(e)}function y(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,aA(t,"addSelfToZr"),aA(t,"removeSelfFromZr")}t.__isCombineMorphing=!0,t.childrenRef=function(){return s},iA(t,"addSelfToZr",{after:function(e){g(e)}}),iA(t,"removeSelfFromZr",{after:function(e){for(var t=0;t<s.length;t++)s[t].removeSelfFromZr(e)}});var v=s.length;if(u){var m=v,x=function(){m--,0===m&&(y(),l&&l())};for(d=0;d<v;d++){var _=u?Object(b["defaults"])({delay:(n.delay||0)+u(d,v,i[d],s[d]),done:x},n):n;sA(i[d],s[d],_)}}else t.__morphT=0,t.animateTo({__morphT:1},Object(b["defaults"])({during:function(e){for(var n=0;n<v;n++){var i=s[n];i.__morphT=t.__morphT,i.dirtyShape()}c&&c(e)},done:function(){y();for(var t=0;t<e.length;t++)aA(e[t],"updateTransform");l&&l()}},n));return t.__zr&&g(t.__zr),{fromIndividuals:i,toIndividuals:s,count:v}}function pA(e,t,n){var i=t.length,a=[],r=n.dividePath||uA;function o(e){for(var t=0;t<e.length;t++){var n=e[t];tA(n)?o(n.childrenRef()):n instanceof xt["b"]&&a.push(n)}}if(tA(e)){o(e.childrenRef());var s=a.length;if(s<i)for(var l=0,c=s;c<i;c++)a.push(Object(ko["a"])(a[l++%s]));a.length=i}else{a=r({path:e,count:i});var u=e.getComputedTransform();for(c=0;c<a.length;c++)a[c].setLocalTransform(u);if(a.length!==i)return console.error("Invalid morphing: unmatched splitted path"),hA()}a=cA(a),t=cA(t);var h=n.individualDelay;for(c=0;c<i;c++){var d=h?Object(b["defaults"])({delay:(n.delay||0)+h(c,i,a[c],t[c])},n):n;sA(a[c],t[c],d)}return{fromIndividuals:a,toIndividuals:t,count:t.length}}function fA(e){return Object(b["isArray"])(e[0])}function gA(e,t){for(var n=[],i=e.length,a=0;a<i;a++)n.push({one:e[a],many:[]});for(a=0;a<t.length;a++){var r=t[a].length,o=void 0;for(o=0;o<r;o++)n[o%i].many.push(t[a][o])}var s=0;for(a=i-1;a>=0;a--)if(!n[a].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}r=l.length;var c=Math.ceil(r/2);n[a].many=l.slice(c,r),n[s].many=l.slice(0,c),s++}return n}var yA={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),i=0;i<e.count;i++){var a=Object(ko["a"])(e.path);a.setStyle("opacity",n),t.push(a)}return t},split:null};function vA(e,t,n,i,a,r){if(e.length&&t.length){var o=Object(Oe["a"])("update",i,a);if(o&&o.duration>0){var s,l,c=i.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},o);fA(e)&&(s=e,l=t),fA(t)&&(s=t,l=e);for(var h=s?s===e:e.length>t.length,d=s?gA(l,s):gA(h?t:e,[h?e:t]),p=0,f=0;f<d.length;f++)p+=d[f].many.length;var g=0;for(f=0;f<d.length;f++)y(d[f],h,g,p),g+=d[f].many.length}}function y(e,t,i,a,o){var s=e.many,l=e.one;if(1!==s.length||o)for(var h=Object(b["defaults"])({dividePath:yA[n],individualDelay:c&&function(e,t,n,r){return c(e+i,a)}},u),d=t?dA(s,l,h):pA(l,s,h),p=d.fromIndividuals,f=d.toIndividuals,g=p.length,v=0;v<g;v++){_=c?Object(b["defaults"])({delay:c(v,g)},u):u;r(p[v],f[v],t?s[v]:e.one,t?e.one:s[v],_)}else{var m=t?s[0]:l,x=t?l:s[0];if(tA(m))y({many:[m],one:x},!0,i,a,!0);else{var _=c?Object(b["defaults"])({delay:c(i,a)},u):u;sA(m,x,_),r(m,x,m,x,_)}}}}function mA(e){if(!e)return[];if(Object(b["isArray"])(e)){for(var t=[],n=0;n<e.length;n++)t.push(mA(e[n]));return t}var i=[];return e.traverse((function(e){e instanceof xt["b"]&&!e.disableMorphing&&!e.invisible&&!e.ignore&&i.push(e)})),i}var bA=1e4,xA=Object(w["o"])();function _A(e){for(var t=e.dimensions,n=0;n<t.length;n++){var i=e.getDimensionInfo(t[n]);if(i&&0===i.otherDims.itemGroupId)return t[n]}}function OA(e){var t=[];return Object(b["each"])(e,(function(e){var n=e.data;if(!(n.count()>bA))for(var i=n.getIndices(),a=_A(n),r=0;r<i.length;r++)t.push({data:n,dim:e.dim||a,divide:e.divide,dataIndex:r})})),t}function SA(e,t,n){e.traverse((function(e){e instanceof xt["b"]&&Object(Oe["c"])(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})}))}function wA(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function MA(e){e.stopAnimation(),e.isGroup&&e.traverse((function(e){e.stopAnimation()}))}function IA(e,t,n){var i=Object(Oe["a"])("update",n,t);i&&e.traverse((function(e){if(e instanceof As["c"]){var t=Object(Oe["b"])(e);t&&e.animateFrom({style:t},i)}}))}function jA(e,t){var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++){var a=e[i],r=t[i];if(a.data.getId(a.dataIndex)!==r.data.getId(r.dataIndex))return!1}return!0}function AA(e,t,n){var i=OA(e),a=OA(t);function r(e,t,n,i,a){(n||e)&&t.animateFrom({style:n&&n!==e?Object(b["extend"])(Object(b["extend"])({},n.style),e.style):e.style},a)}function o(e){for(var t=0;t<e.length;t++)if(e[t].dim)return e[t].dim}var s=o(i),l=o(a),c=!1;function u(e,t){return function(n){var i=n.data,a=n.dataIndex;if(t)return i.getId(a);var r=i.hostModel&&i.hostModel.get("dataGroupId"),o=e?s||l:l||s,c=o&&i.getDimensionInfo(o),u=c&&c.ordinalMeta;if(c){var h=i.get(c.name,a);return u&&u.categories[h]||h+""}var d=i.getRawDataItem(a);return d&&d.groupId?d.groupId+"":r||i.getId(a)}}var h=jA(i,a),d={};if(!h)for(var p=0;p<a.length;p++){var f=a[p],g=f.data.getItemGraphicEl(f.dataIndex);g&&(d[g.id]=!0)}function y(e,t){var n=i[t],o=a[e],s=o.data.hostModel,l=n.data.getItemGraphicEl(n.dataIndex),u=o.data.getItemGraphicEl(o.dataIndex);l!==u?l&&d[l.id]||u&&(MA(u),l?(MA(l),wA(l),c=!0,vA(mA(l),mA(u),o.divide,s,e,r)):SA(u,s,e)):u&&IA(u,o.dataIndex,s)}new Cc["a"](i,a,u(!0,h),u(!1,h),null,"multiple").update(y).updateManyToOne((function(e,t){var n=a[e],o=n.data,s=o.hostModel,l=o.getItemGraphicEl(n.dataIndex),u=Object(b["filter"])(Object(b["map"])(t,(function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)})),(function(e){return e&&e!==l&&!d[e.id]}));l&&(MA(l),u.length?(Object(b["each"])(u,(function(e){MA(e),wA(e)})),c=!0,vA(mA(u),mA(l),n.divide,s,e,r)):SA(l,s,n.dataIndex))})).updateOneToMany((function(e,t){var n=i[t],o=n.data.getItemGraphicEl(n.dataIndex);if(!o||!d[o.id]){var s=Object(b["filter"])(Object(b["map"])(e,(function(e){return a[e].data.getItemGraphicEl(a[e].dataIndex)})),(function(e){return e&&e!==o})),l=a[e[0]].data.hostModel;s.length&&(Object(b["each"])(s,(function(e){return MA(e)})),o?(MA(o),wA(o),c=!0,vA(mA(o),mA(s),n.divide,l,e[0],r)):Object(b["each"])(s,(function(t){return SA(t,l,e[0])})))}})).updateManyToMany((function(e,t){new Cc["a"](t,e,(function(e){return i[e].data.getId(i[e].dataIndex)}),(function(e){return a[e].data.getId(a[e].dataIndex)})).update((function(n,i){y(e[n],t[i])})).execute()})).execute(),c&&Object(b["each"])(t,(function(e){var t=e.data,i=t.hostModel,a=i&&n.getViewOfSeriesModel(i),r=Object(Oe["a"])("update",i,0);a&&i.isAnimationEnabled()&&r&&r.duration>0&&a.group.traverse((function(e){e instanceof xt["b"]&&!e.animators.length&&e.animateFrom({style:{opacity:0}},r)}))}))}function CA(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function TA(e){return Object(b["isArray"])(e)?e.sort().join(","):e}function DA(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function LA(e,t){var n=Object(b["createHashMap"])(),i=Object(b["createHashMap"])(),a=Object(b["createHashMap"])();return Object(b["each"])(e.oldSeries,(function(t,n){var r=e.oldData[n],o=CA(t),s=TA(o);i.set(s,r),Object(b["isArray"])(o)&&Object(b["each"])(o,(function(e){a.set(e,{data:r,key:s})}))})),Object(b["each"])(t.updatedSeries,(function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.getData(),r=CA(e),o=TA(r),s=i.get(o);if(s)n.set(o,{oldSeries:[{divide:DA(s),data:s}],newSeries:[{divide:DA(t),data:t}]});else if(Object(b["isArray"])(r)){0;var l=[];Object(b["each"])(r,(function(e){var t=i.get(e);t&&l.push({divide:DA(t),data:t})})),l.length&&n.set(o,{oldSeries:l,newSeries:[{data:t,divide:DA(t)}]})}else{var c=a.get(r);if(c){var u=n.get(c.key);u||(u={oldSeries:[{data:c.data,divide:DA(c.data)}],newSeries:[]},n.set(c.key,u)),u.newSeries.push({data:t,divide:DA(t)})}}}})),n}function PA(e,t){for(var n=0;n<e.length;n++){var i=null!=t.seriesIndex&&t.seriesIndex===e[n].seriesIndex||null!=t.seriesId&&t.seriesId===e[n].id;if(i)return n}}function kA(e,t,n,i){var a=[],r=[];Object(b["each"])(Object(w["r"])(e.from),(function(e){var n=PA(t.oldSeries,e);n>=0&&a.push({data:t.oldData[n],divide:DA(t.oldData[n]),dim:e.dimension})})),Object(b["each"])(Object(w["r"])(e.to),(function(e){var t=PA(n.updatedSeries,e);if(t>=0){var i=n.updatedSeries[t].getData();r.push({data:i,divide:DA(i),dim:e.dimension})}})),a.length>0&&r.length>0&&AA(a,r,i)}function NA(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){Object(b["each"])(Object(w["r"])(n.seriesTransition),(function(e){Object(b["each"])(Object(w["r"])(e.to),(function(e){for(var t=n.updatedSeries,i=0;i<t.length;i++)(null!=e.seriesIndex&&e.seriesIndex===t[i].seriesIndex||null!=e.seriesId&&e.seriesId===t[i].id)&&(t[i][p["a"]]=!0)}))}))})),e.registerUpdateLifecycle("series:transition",(function(e,t,n){var i=xA(t);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)Object(b["each"])(Object(w["r"])(a),(function(e){kA(e,i,n,t)}));else{var r=LA(i,n);Object(b["each"])(r.keys(),(function(e){var n=r.get(e);AA(n.oldSeries,n.newSeries,t)}))}Object(b["each"])(n.updatedSeries,(function(e){e[p["a"]]&&(e[p["a"]]=!1)}))}for(var o=e.getSeries(),s=i.oldSeries=[],l=i.oldData=[],c=0;c<o.length;c++){var u=o[c].getData();u.count()<bA&&(s.push(o[c]),l.push(u))}}))}Object(c["a"])([mt["a"]]),Object(c["a"])([ti]),Object(c["a"])([aa,Ga,Fa["a"],Wr,yo,_l,xc,$u,vd,md["a"],Dd,Ef,gg,kg,sy,gy,By,Ky,jv,Ev,im,kb]),Object(c["a"])(Rb),Object(c["a"])(Tx),Object(c["a"])(xl),Object(c["a"])(n_),Object(c["a"])(Rf),Object(c["a"])(p_),Object(c["a"])(D_),Object(c["a"])(yS),Object(c["a"])(vS["a"]),Object(c["a"])(Nb["a"]),Object(c["a"])($S),Object(c["a"])(QS["a"]),Object(c["a"])(Mw),Object(c["a"])($w),Object(c["a"])(uM),Object(c["a"])(SM),Object(c["a"])(wM["a"]),Object(c["a"])(rI),Object(c["a"])(GM),Object(c["a"])(aI),Object(c["a"])(tj),Object(c["a"])(XI),Object(c["a"])(ej),Object(c["a"])(sj),Object(c["a"])(wj),Object(c["a"])(Aj),Object(c["a"])(NA),Object(c["a"])(vt["a"])},"466d":function(e,t,n){"use strict";var i=n("c65b"),a=n("d784"),r=n("825a"),o=n("7234"),s=n("50c4"),l=n("577e"),c=n("1d80"),u=n("dc4a"),h=n("8aa5"),d=n("14c3");a("match",(function(e,t,n){return[function(t){var n=c(this),a=o(t)?void 0:u(t,e);return a?i(a,t,n):new RegExp(t)[e](l(n))},function(e){var i=r(this),a=l(e),o=n(t,i,a);if(o.done)return o.value;if(!i.global)return d(i,a);var c=i.unicode;i.lastIndex=0;var u,p=[],f=0;while(null!==(u=d(i,a))){var g=l(u[0]);p[f]=g,""===g&&(i.lastIndex=h(a,s(i.lastIndex),c)),f++}return 0===f?null:p}]}))},"4fad":function(e,t,n){var i=n("d039"),a=n("861d"),r=n("c6b6"),o=n("d86b"),s=Object.isExtensible,l=i((function(){s(1)}));e.exports=l||o?function(e){return!!a(e)&&((!o||"ArrayBuffer"!=r(e))&&(!s||s(e)))}:s},6062:function(e,t,n){n("1c59c")},6566:function(e,t,n){"use strict";var i=n("9bf2").f,a=n("7c73"),r=n("6964"),o=n("0366"),s=n("19aa"),l=n("7234"),c=n("2266"),u=n("c6d2"),h=n("4754"),d=n("2626"),p=n("83ab"),f=n("f183").fastKey,g=n("69f3"),y=g.set,v=g.getterFor;e.exports={getConstructor:function(e,t,n,u){var h=e((function(e,i){s(e,d),y(e,{type:t,index:a(null),first:void 0,last:void 0,size:0}),p||(e.size=0),l(i)||c(i,e[u],{that:e,AS_ENTRIES:n})})),d=h.prototype,g=v(t),m=function(e,t,n){var i,a,r=g(e),o=b(e,t);return o?o.value=n:(r.last=o={index:a=f(t,!0),key:t,value:n,previous:i=r.last,next:void 0,removed:!1},r.first||(r.first=o),i&&(i.next=o),p?r.size++:e.size++,"F"!==a&&(r.index[a]=o)),e},b=function(e,t){var n,i=g(e),a=f(t);if("F"!==a)return i.index[a];for(n=i.first;n;n=n.next)if(n.key==t)return n};return r(d,{clear:function(){var e=this,t=g(e),n=t.index,i=t.first;while(i)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete n[i.index],i=i.next;t.first=t.last=void 0,p?t.size=0:e.size=0},delete:function(e){var t=this,n=g(t),i=b(t,e);if(i){var a=i.next,r=i.previous;delete n.index[i.index],i.removed=!0,r&&(r.next=a),a&&(a.previous=r),n.first==i&&(n.first=a),n.last==i&&(n.last=r),p?n.size--:t.size--}return!!i},forEach:function(e){var t,n=g(this),i=o(e,arguments.length>1?arguments[1]:void 0);while(t=t?t.next:n.first){i(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!b(this,e)}}),r(d,n?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),p&&i(d,"size",{get:function(){return g(this).size}}),h},setStrong:function(e,t,n){var i=t+" Iterator",a=v(t),r=v(i);u(e,t,(function(e,t){y(this,{type:i,target:e,state:a(e),kind:t,last:void 0})}),(function(){var e=r(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?h("keys"==t?n.key:"values"==t?n.value:[n.key,n.value],!1):(e.target=void 0,h(void 0,!0))}),n?"entries":"values",!n,!0),d(t)}}},"6d61":function(e,t,n){"use strict";var i=n("23e7"),a=n("da84"),r=n("e330"),o=n("94ca"),s=n("cb2d"),l=n("f183"),c=n("2266"),u=n("19aa"),h=n("1626"),d=n("7234"),p=n("861d"),f=n("d039"),g=n("1c7e"),y=n("d44e"),v=n("7156");e.exports=function(e,t,n){var m=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),x=m?"set":"add",_=a[e],O=_&&_.prototype,S=_,w={},M=function(e){var t=r(O[e]);s(O,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return b&&!p(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})},I=o(e,!h(_)||!(b||O.forEach&&!f((function(){(new _).entries().next()}))));if(I)S=n.getConstructor(t,e,m,x),l.enable();else if(o(e,!0)){var j=new S,A=j[x](b?{}:-0,1)!=j,C=f((function(){j.has(1)})),T=g((function(e){new _(e)})),D=!b&&f((function(){var e=new _,t=5;while(t--)e[x](t,t);return!e.has(-0)}));T||(S=t((function(e,t){u(e,O);var n=v(new _,e,S);return d(t)||c(t,n[x],{that:n,AS_ENTRIES:m}),n})),S.prototype=O,O.constructor=S),(C||D)&&(M("delete"),M("has"),m&&M("get")),(D||A)&&M(x),b&&O.clear&&delete O.clear}return w[e]=S,i({global:!0,constructor:!0,forced:S!=_},w),y(S,e),b||n.setStrong(S,e,m),S}},"817d":function(e,t,n){var i,a,r;(function(o,s){a=[t,n("313e")],i=s,r="function"===typeof i?i.apply(t,a):i,void 0===r||(e.exports=r)})(0,(function(e,t){var n=function(e){"undefined"!==typeof console&&console&&console.error&&console.error(e)};if(t){var i=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],a={color:i,title:{textStyle:{fontWeight:"normal",color:"#008acd"}},visualMap:{itemWidth:15,color:["#5ab1ef","#e0ffff"]},toolbox:{iconStyle:{borderColor:i[0]}},tooltip:{borderWidth:0,backgroundColor:"rgba(50,50,50,0.5)",textStyle:{color:"#FFF"},axisPointer:{type:"line",lineStyle:{color:"#008acd"},crossStyle:{color:"#008acd"},shadowStyle:{color:"rgba(200,200,200,0.2)"}}},dataZoom:{dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd"},grid:{borderColor:"#eee"},categoryAxis:{axisLine:{lineStyle:{color:"#008acd"}},splitLine:{lineStyle:{color:["#eee"]}}},valueAxis:{axisLine:{lineStyle:{color:"#008acd"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.1)","rgba(200,200,200,0.1)"]}},splitLine:{lineStyle:{color:["#eee"]}}},timeline:{lineStyle:{color:"#008acd"},controlStyle:{color:"#008acd",borderColor:"#008acd"},symbol:"emptyCircle",symbolSize:3},line:{smooth:!0,symbol:"emptyCircle",symbolSize:3},candlestick:{itemStyle:{color:"#d87a80",color0:"#2ec7c9"},lineStyle:{width:1,color:"#d87a80",color0:"#2ec7c9"},areaStyle:{color:"#2ec7c9",color0:"#b6a2de"}},scatter:{symbol:"circle",symbolSize:4},map:{itemStyle:{color:"#ddd"},areaStyle:{color:"#fe994e"},label:{color:"#d87a80"}},graph:{itemStyle:{color:"#d87a80"},linkStyle:{color:"#2ec7c9"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#2ec7c9"],[.8,"#5ab1ef"],[1,"#d87a80"]],width:10}},axisTick:{splitNumber:10,length:15,lineStyle:{color:"auto"}},splitLine:{length:22,lineStyle:{color:"auto"}},pointer:{width:5}}};t.registerTheme("macarons",a)}else n("ECharts is not Loaded")}))},"998a":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("76a5");function a(e,t,n,a,r,o,s,l){var c=new i["a"]({style:{text:e,font:t,align:n,verticalAlign:a,padding:r,rich:o,overflow:s?"truncate":null,lineHeight:l}});return c.getBoundingRect()}},bb2f:function(e,t,n){var i=n("d039");e.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},d86b:function(e,t,n){var i=n("d039");e.exports=i((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},f183:function(e,t,n){var i=n("23e7"),a=n("e330"),r=n("d012"),o=n("861d"),s=n("1a2d"),l=n("9bf2").f,c=n("241c"),u=n("057f"),h=n("4fad"),d=n("90e3"),p=n("bb2f"),f=!1,g=d("meta"),y=0,v=function(e){l(e,g,{value:{objectID:"O"+y++,weakData:{}}})},m=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,g)){if(!h(e))return"F";if(!t)return"E";v(e)}return e[g].objectID},b=function(e,t){if(!s(e,g)){if(!h(e))return!0;if(!t)return!1;v(e)}return e[g].weakData},x=function(e){return p&&f&&h(e)&&!s(e,g)&&v(e),e},_=function(){O.enable=function(){},f=!0;var e=c.f,t=a([].splice),n={};n[g]=1,e(n).length&&(c.f=function(n){for(var i=e(n),a=0,r=i.length;a<r;a++)if(i[a]===g){t(i,a,1);break}return i},i({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},O=e.exports={enable:_,fastKey:m,getWeakData:b,onFreeze:x};r[g]=!0}}]);
|