/*
-
Licensed to the Apache Software Foundation (ASF) under one
-
or more contributor license agreements. See the NOTICE file
-
distributed with this work for additional information
-
regarding copyright ownership. The ASF licenses this file
-
to you under the Apache License, Version 2.0 (the
-
“License”); you may not use this file except in compliance
-
with the License. You may obtain a copy of the License at
*
*
-
Unless required by applicable law or agreed to in writing,
-
software distributed under the License is distributed on an
-
“AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-
KIND, either express or implied. See the License for the
-
specific language governing permissions and limitations
-
under the License.
*/
!function(t,e){“object”==typeof exports&&“undefined”!=typeof module?e(exports):“function”==typeof define&&define.amd?define([“exports”],e):e(t.echarts={})}(this,function(t){“use strict”;var e=2311,n=function(){return e++},v=“object”==typeof wx&&“function”==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:“undefined”==typeof document&&“undefined”!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:“undefined”==typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:function(t){var e={},i=t.match(/Firefox/([d.]+)/),n=t.match(/MSIEs([d.]+)/)||t.match(/Trident/.+?rv:(([d.]+))/),o=t.match(/Edge/([d.]+)/),a=/micromessenger/i.test(t);i&&(e.firefox=!0,e.version=i[1]);n&&(e.ie=!0,e.version=n[1]);o&&(e.edge=!0,e.version=o[1]);a&&(e.weChat=!0);return{browser:e,os:{},node:!1,canvasSupported:!!document.createElement(“canvas”).getContext,svgSupported:“undefined”!=typeof SVGRect,touchEventsSupported:“ontouchstart”in window&&!e.ie&&!e.edge,pointerEventsSupported:“onpointerdown”in window&&(e.edge||e.ie&&11<=e.version),domSupported:"undefined"!=typeof document}}(navigator.userAgent);var s={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},l={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},u=Object.prototype.toString,i=Array.prototype,r=i.forEach,h=i.filter,o=i.slice,c=i.map,d=i.reduce,a={};function f(t,e){"createCanvas"===t&&(g=null),a[t]=e}function k(t){if(null==t||"object"!=typeof t)return t;var e=t,i=u.call(t);if("[object Array]"===i){if(!$(t)){e=[];for(var n=0,o=t.length;n =h[p]+d,c[1-f]+=l[g]/2-hi
”)“}}var Je=(Object.freeze||Object)({parse:Fe,lift:He,toHex:Ze,fastLerp:Ue,fastMapToColor:Xe,lerp:Ye,mapToColor:je,modifyHSL:qe,modifyAlpha:Ke,stringify:$e}),Qe=Array.prototype.slice;function ti(t,e){return t[e]}function ei(t,e,i){t[e]=i}function ii(t,e,i){return(e-t)*i+t}function ni(t,e,i){return.5e);i++);i=Math.min(i-1,u-2)}C=e;var n=g[(D=i)+1]-g[i];if(0!=n)if(S=(e-g[i])/n,l)if(I=m[i],M=m[0===i?i:i-1],T=m[u-2t’” is not existed in element ‘+o.id)},stopAnimation:function(t){for(var e=this.animators,i=e.length,n=0;n=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},clone:function(){return new Di(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},Di.create=function(t){return new Di(t.x,t.y,t.width,t.height)};var Ci=function(t){for(var e in t=t||{},_i.call(this,t),t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};Ci.prototype={constructor:Ci,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,i=0;i=e.maxIterations){t+=e.ellipsis;break}var s=0===r?bn(t,o,e.ascCharWidth,e.cnCharWidth):0[0]+[2]),C.height=b,C.lineHeight=Z(x.textLineHeight,e.textLineHeight,b),C.textAlign=x&&x.textAlign||e.textAlign,C.textVerticalAlign=x&&x.textVerticalAlign||“middle”,null!=f&&s+C.lineHeight>f)return{lines:[],width:0,height:0};C.textWidth=pn(C.text,w);var S=x.textWidth,M=null==S||“auto”===S;if(“string”==typeof S&&“%”===S.charAt(S.length-1))C.percentWidth=S,u.push(C),S=0;else{if(M){S=C.textWidth;var I=x.textBackgroundColor,T=I&&I.image;T&&sn(T=on(T))&&(S=Math.max(S,T.width*b/T.height))}var A=_?[1]+[3]:0;S+=A;var D=null!=d?d-v:null;null!=D&&Dt“px”,“height:”e
“px”,“padding:0”,“margin:0”,“border-width:0”].join(“;”)+“;”,i}(this._width,this._height);t.appendChild(h)}this._hoverlayer=null,this._hoverElements=[]}oo.prototype={constructor:oo,getType:function(){return“canvas”},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(t){var e=this.storage.getDisplayList(!0),i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,t,this._redrawId);for(var n=0;nt
“ is not valid”)},eachLayer:function(t,e){var i,n,o=this._zlevelList;for(n=0;no.name
“0”a+
,r.get(o.id););r.set(o.id,t)}})}function Uo(t){var e=t.name;return!(!e||!e.indexOf(Bo))}function Xo(t){return Ro(t)&&t.id&&0===(t.id+“”).indexOf(“0_ec_0”)}function Yo(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?L(t.dataIndex)?O(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?L(t.name)?O(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0}function jo(){var e=“_0ec_inner”+qo+++“_”+Math.random().toFixed(5);return function(t){return t[e]||(t[e]={})}}var qo=0;function Ko(s,l,u){if(R(l)){var t={};t[l+“Index”]=0,l=t}var e=u&&u.defaultMainType;!e||$o(l,e+“Index”)||$o(l,e+“Id”)||$o(l,e+“Name”)||(l[e+“Index”]=0);var h={};return Eo(l,function(t,e){t=l[e];if(“dataIndex”!==e&&“dataIndexInside”!==e){var i=e.match(/^(w+)(Index|Id|Name)$/)||[],n=i[1],o=(i[2]||“”).toLowerCase();if(!(!n||!o||null==t||“index”===o&&“none”===t||u&&u.includeMainTypes&&_(u.includeMainTypes,n)<0)){var a={mainType:n};"index"===o&&"all"===t||(a[o]=t);var r=s.queryComponents(a);h[n+"Models"]=r,h[n+"Model"]=r[0]}}else h[e]=t}),h}function $o(t,e){return t&&t.hasOwnProperty(e)}function Jo(t,e,i){t.setAttribute?t.setAttribute(e,i):t[e]=i}function Qo(t){return"auto"===t?v.domSupported?"html":"richText":t||"html"}function ta(t,i){var n=Q(),o=[];return E(t,function(t){var e=i(t);(n.get(e)||(o.push(e),n.set(e,[]))).push(t)}),{keys:o,buckets:n}}var ea=".",ia="_EC__COMPONENT__CONTAINER___“;function na(t){var e={main:”“,sub:”“};return t&&(t=t.split(ea),e.main=t[0]||”“,e.sub=t[1]||”“),e}function oa(t){(t.$constructor=t).extend=function(t){function e(){t.$constructor?t.$constructor.apply(this,arguments):i.apply(this,arguments)}var i=this;return P(e.prototype,t),e.extend=this.extend,e.superCall=sa,e.superApply=la,w(e,this),e.superClass=i,e}}var aa=0;function ra(t){var e=[”__0is_clz“,aa++,Math.random().toFixed(3)].join(”_“);t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function sa(t,e){var i=U(arguments,2);return this.superClass.prototype[e].apply(t,i)}function la(t,e,i){return this.superClass.prototype[e].apply(t,i)}function ua(i,t){t=t||{};var o={};if(i.registerClass=function(t,e){if(e)if(function(t){Y(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),’componentType ”‘t
’“ illegal’)}(e),(e=na(e)).sub){if(e.sub!==ia){(function(t){var e=o[t.main];e&&e[ia]||((e=o[t.main]={})[ia]=!0);return e})(e)[e.sub]=t}}else o[e.main]=t;return t},i.getClass=function(t,e,i){var n=o[t];if(n&&n[ia]&&(n=e?n[e]:null),i&&!n)throw new Error(e?”Component “t
”.“+(e||”“)+” not exists. Load it first.“:t+”.type should be specified.“);return n},i.getClassesByMainType=function(t){t=na(t);var i=[],e=o[t.main];return e&&e[ia]?E(e,function(t,e){e!==ia&&i.push(t)}):i.push(e),i},i.hasClass=function(t){return t=na(t),!!o[t.main]},i.getAllClassMainTypes=function(){var i=[];return E(o,function(t,e){i.push(e)}),i},i.hasSubTypes=function(t){t=na(t);var e=o[t.main];return e&&e[ia]},i.parseClassType=na,t.registerWhenExtend){var n=i.extend;n&&(i.extend=function(t){var e=n.call(this,t);return i.registerClass(e,t.type)})}return i}function ha(s){for(var t=0;t]
=g,s[o++]*=m,s[o++]*=v,s[o+]
=y,s[o+]
=y,a=o+=2;break;case c:x[0]=s[o++],x[1]=s[o++],bt(x,x,e),s[a++]=x[0],s[a++]=x[1],x[0]+=s[o++],x[1]+=s[o++],bt(x,x,e),s[a++]=x[0],s[a++]=x[1]}for(r=0;re[1],
(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0)}function jl(t){return Math.pow(10,ql(t))}function ql(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return 10<=t/Math.pow(10,e)&&e++,e}function Kl(t,e){var i=ql(t),n=Math.pow(10,i),o=t/n;return t=(e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10)*n,-20<=i?+t.toFixed(i<0?-i:0):t}function $l(t){t.sort(function(t,e){return function t(e,i,n){return e.interval[n]t
(null==e?“”:e)+“}”}var su=[“a”,“b”,“c”,“d”,“e”,“f”,“g”];function lu(t,e,i){L(e)||(e=[e]);var n=e.length;if(!n)return“”;for(var o=e[0].$vars||[],a=0;aa
“|} ”,style:{color:i}}:“”}function cu(t,e){return“0000”.substr(0,e-(t+=“”).length)+t}function du(t,e,i){“week”!==t&&“month”!==t&&“quarter”!==t&&“half-year”!==t&&“year”!==t||(t=“MM-ddnyyyy”);var n=Yl(e),o=i?“UTC”:“”,a=n[“get”o
“FullYear”](),r=n[“get”o
“Month”]()+1,s=n[“get”o
“Date”](),l=n[“get”o
“Hours”](),u=n[“get”o
“Minutes”](),h=n[“get”o
“Seconds”](),c=n[“get”o
“Milliseconds”]();return t=t.replace(“MM”,cu(r,2)).replace(“M”,r).replace(“yyyy”,a).replace(“yy”,a%100).replace(“dd”,cu(s,2)).replace(“d”,s).replace(“hh”,cu(l,2)).replace(“h”,l).replace(“mm”,cu(u,2)).replace(“m”,u).replace(“ss”,cu(h,2)).replace(“s”,h).replace(“SSS”,cu(c,3))}function fu(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}var pu=xn;function gu(t,e){if(“_blank”===e||“blank”===e){var i=window.open();i.opener=null,i.location=t}else window.open(t,e)}var mu=(Object.freeze||Object)({addCommas:tu,toCamelCase:eu,normalizeCssArray:iu,encodeHTML:au,formatTpl:lu,formatTplSimple:uu,getTooltipMarker:hu,formatTime:du,capitalFirst:fu,truncateText:pu,getTextBoundingRect:function(t){return gn(t.text,t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich,t.truncate)},getTextRect:function(t,e,i,n,o,a,r,s){return gn(t,e,i,n,o,s,a,r)},windowOpen:gu}),vu=E,yu=[“left”,“right”,“top”,“bottom”,“width”,“height”],xu=[[“width”,“left”,“right”],[“height”,“top”,“bottom”]];function _u(h,c,d,f,p){var g=0,m=0;null==f&&(f=1/0),null==p&&(p=1/0);var v=0;c.eachChild(function(t,e){var i,n,o=t.position,a=t.getBoundingRect(),r=c.childAt(e+1),s=r&&r.getBoundingRect();if(“horizontal”===h){var l=a.width+(s?-s.x+a.x:0);v=f<(i=g+l)||t.newline?(g=0,i=l,m+=v+d,a.height):Math.max(v,a.height)}else{var u=a.height+(s?-s.y+a.y:0);v=p<(n=m+u)||t.newline?(g+=v+d,m=0,n=u,a.width):Math.max(v,a.width)}t.newline||(o[0]=g,o[1]=m,"horizontal"===h?g=i+d:m=n+d)})}var wu=_u;T(_u,"vertical"),T(_u,"horizontal");function bu(t,e,i){i=iu(i||0);var n=e.width,o=e.height,a=Rl(t.left,n),r=Rl(t.top,o),s=Rl(t.right,n),l=Rl(t.bottom,o),u=Rl(t.width,n),h=Rl(t.height,o),c=i[2]+i[0],d=i[1]+i[3],f=t.aspect;switch(isNaN(u)&&(u=n-s-d-a),isNaN(h)&&(h=o-l-c-r),null!=f&&(isNaN(u)&&isNaN(h)&&(n/o
“:”“,n=i+u.join(i||”, “);return{renderMode:c,content:n,style:p}}®:i(n?Hh(m,o,a[0]):s?r[0]:r)).content,u=d.seriesIndex+”at“+g,y=hu({color:v,type:”item“,renderMode:c,markerId:u});p[u]=v,++g;var x=m.getName(o),_=this.name;Uo(this)||(_=”“),_=_?au(_)+(h?”: “:e):”“;var w=”string“==typeof y?y:y.content;return{html:h?w+_+l:_w
(x?au(x)+”: “+l:l),markers:p}},isAnimationEnabled:function(){if(v.node)return!1;var t=this.getShallow(”animation“);return t&&this.getData().count()>this.getShallow(”animationThreshold“)&&(t=!1),t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,i){var n=this.ecModel,o=Ru.getColorFromPalette.call(this,t,e,i);return o=o||n.getColorFromPalette(t,e,i)},coordDimToDataDim:function(t){return this.getRawData().mapDimension(t,!0)},getProgressive:function(){return this.get(”progressive“)},getProgressiveThreshold:function(){return this.get(”progressiveThreshold“)},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function lc(t){var e=t.name;Uo(t)||(t.name=function(t){var i=t.getRawData(),e=i.mapDimension(”seriesName“,!0),n=[];return E(e,function(t){var e=i.getDimensionInfo(t);e.displayName&&n.push(e.displayName)}),n.join(” “)}(t)||e)}function uc(t){return t.model.getRawData().count()}function hc(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),cc}function cc(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function dc(e,i){E(e.CHANGABLE_METHODS,function(t){e.wrapMethod(t,T(fc,i))})}function fc(t){var e=pc(t);e&&e.setOutputEnd(this.count())}function pc(t){var e=(t.ecModel||{}).scheduler,i=e&&e.getPipeline(t.uid);if(i){var n=i.currentTask;if(n){var o=n.agentStubMap;o&&(n=o.get(t.uid))}return n}}b(sc,Xh),b(sc,Ru);var gc=function(){this.group=new Ci,this.uid=Nl(”viewComponent“)};gc.prototype={constructor:gc,init:function(t,e){},render:function(t,e,i,n){},dispose:function(){},filterForExposedEvent:null};var mc=gc.prototype;mc.updateView=mc.updateLayout=mc.updateVisual=function(t,e,i,n){},oa(gc),ua(gc,{registerWhenExtend:!0});function vc(){var s=jo();return function(t){var e=s(t),i=t.pipelineContext,n=e.large,o=e.progressiveRender,a=e.large=i&&i.large,r=e.progressiveRender=i&&i.progressiveRender;return!!(n^a||o^r)&&”reset“}}var yc=jo(),xc=vc();function _c(){this.group=new Ci,this.uid=Nl(”viewChart“),this.renderTask=Yh({plan:Mc,reset:Ic}),this.renderTask.context={view:this}}var wc=_c.prototype={type:”chart“,init:function(t,e){},render:function(t,e,i,n){},highlight:function(t,e,i,n){Sc(t.getData(),n,”emphasis“)},downplay:function(t,e,i,n){Sc(t.getData(),n,”normal“)},remove:function(t,e){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};function bc(t,e,i){if(t&&(t.trigger(e,i),t.isGroup&&!Qs(t)))for(var n=0,o=t.childCount();nM[1]&&(M[1]=S)}if(!o.pure){var I=u[v];if(m&&null==I)if(null!=m.name)u[v]=I=m.name;else if(null!=i){var T=r[i],A=a[T][y];if(A){I=A[x];var D=l[T].ordinalMeta;D&&D.categories.length&&(I=D.categories[I])}}var C=null==m?null:m.id;null==C&&null!=I&&(d[I]=d[I]||0,0
”)},getTooltipPosition:function(t){if(null!=t)for(var e=this.getData(),i=this.coordinateSystem,n=e.getValues(O(i.dimensions,function(t){return e.mapDimension(t)}),t,!0),o=0,a=n.length;o“+au(n+” : “+i)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),i=this.coordinateSystem,n=i.getRegion(e);return n&&i.dataToPoint(n.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:”geo“,map:”“,left:”center“,top:”center“,aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,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)“}},nameProperty:”name“}}),jv);var Ry=”0_ec_interaction_mutex“;function zy(t,e){return!!By(t)[e]}function By(t){return t[Ry]||(t[Ry]={})}function Vy(i){this.pointerChecker,this._zr=i,this._opt={};var t=A,n=t(Gy,this),o=t(Fy,this),a=t(Wy,this),r=t(Hy,this),s=t(Zy,this);Ct.call(this),this.setPointerChecker=function(t){this.pointerChecker=t},this.enable=function(t,e){this.disable(),this._opt=D(k(e)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&”move“!==t&&”pan“!==t||(i.on(”mousedown“,n),i.on(”mousemove“,o),i.on(”mouseup“,a)),!0!==t&&”scale“!==t&&”zoom“!==t||(i.on(”mousewheel“,r),i.on(”pinch“,s))},this.disable=function(){i.off(”mousedown“,n),i.off(”mousemove“,o),i.off(”mouseup“,a),i.off(”mousewheel“,r),i.off(”pinch“,s)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function Gy(t){if(!(Yt(t)||t.target&&t.target.draggable)){var e=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,i)&&(this._x=e,this._y=i,this._dragging=!0)}}function Fy(t){if(this._dragging&&Yy(”moveOnMouseMove“,t,this._opt)&&”pinch“!==t.gestureEvent&&!zy(this._zr,”globalPan“)){var e=t.offsetX,i=t.offsetY,n=this._x,o=this._y,a=e-n,r=i-o;this._x=e,this._y=i,this._opt.preventDefaultMouseMove&&Xt(t.event),Xy(this,”pan“,”moveOnMouseMove“,t,{dx:a,dy:r,oldX:n,oldY:o,newX:e,newY:i})}}function Wy(t){Yt(t)||(this._dragging=!1)}function Hy(t){var e=Yy(”zoomOnMouseWheel“,t,this._opt),i=Yy(”moveOnMouseWheel“,t,this._opt),n=t.wheelDelta,o=Math.abs(n),a=t.offsetX,r=t.offsetY;if(0!==n&&(e||i)){if(e){var s=3e]:i[t
“-”+e]||i[e+“-”+t]},J_.eachNode=function(t,e){for(var i=this.nodes,n=i.length,o=0;ot
“Type”}function hw(t,e,i){var n=e.getItemVisual(i,“color”),o=e.getItemVisual(i,t),a=e.getItemVisual(i,t+“Size”);if(o&&“none”!==o){L(a)||(a=[a,a]);var r=wg(o,-a[0]/2,-a[1]/2,a[0],a[1],n);return r.name=t,r}}function cw(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var i=e[2];i?(t.cpx1=i[0],t.cpy1=i[1]):(t.cpx1=NaN,t.cpy1=NaN)}function dw(t,e,i){Ci.call(this),this._createLine(t,e,i)}var fw=dw.prototype;function pw(t){this._ctor=t||dw,this.group=new Ci}fw.beforeUpdate=function(){var t=this.childOfName(“fromSymbol”),e=this.childOfName(“toSymbol”),i=this.childOfName(“label”);if(t||e||!i.ignore){for(var n=1,o=this.parent;o;)o.scale&&(n/=o.scale[0]),o=o.parent;var a=this.childOfName(“line”);if(this.__dirty||a.__dirty){var r=a.shape.percent,s=a.pointAt(0),l=a.pointAt®,u=ht([],l,s);if(mt(u,u),t){t.attr(“position”,s);var h=a.tangentAt(0);t.attr(“rotation”,Math.PI/2-Math.atan2(h[1],h[0])),t.attr(“scale”,[n*r,n*r])}if(e){e.attr(“position”,l);h=a.tangentAt(1);e.attr(“rotation”,-Math.PI/2-Math.atan2(h[1],h[0])),e.attr(“scale”,[n*r,n*r])}if(!i.ignore){var c,d,f,p;i.attr(“position”,l);var g=i.__labelDistance,m=g[0]*n,v=g[1]*n,y=r/2,x=[(h=a.tangentAt(y))[1],-h[0]],_=a.pointAt(y);0mA”nn“)}(e.seriesGroupByCategoryAxis),function(t){return O(t,function(t){var o=t.getRawData(),a=[t.name],r=[];return o.each(o.dimensions,function(){for(var t=arguments.length,e=arguments[t-1],i=o.getName(e),n=0;n
mA
”nn“),meta:e.meta}}function xA(t){return t.replace(/^ss*/,”“).replace(/ss*$/,”“)}var _A=new RegExp(”[“vA
”]+“,”g“);function wA(t,a){var e=t.split(new RegExp(”n*“mA
t[1]&&t.reverse(),t}function kA(t,e){return Ko(t,e,{includeMainTypes:AA})}CA.setOutputRanges=function(t,e){this.matchOutputRanges(t,e,function(t,e,i){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var n=EA[t.brushType](0,i,e);t.__rangeOffset={offset:zA[t.brushType](n.values,t.range,[1,1]),xyMinMax:n.xyMinMax}}})},CA.matchOutputRanges=function(t,n,o){SA(t,function(i){var t=this.findTargetInfo(i,n);t&&!0!==t&&E(t.coordSyses,function(t){var e=EA[i.brushType](1,t,i.range);o(i,e.values,t,n)})},this)},CA.setInputRanges=function(t,o){SA(t,function(t){var e=this.findTargetInfo(t,o);if(t.range=t.range||[],e&&!0!==e){t.panelId=e.panelId;var i=EA[t.brushType](0,e.coordSys,t.coordRange),n=t.__rangeOffset;t.range=n?zA[t.brushType](i.values,n.offset,function(t,e){var i=VA(t),n=VA(e),o=[i[0]/n[0],i[1]/n[1]];return isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o}(i.xyMinMax,n.xyMinMax)):i.values}},this)},CA.makePanelOpts=function(i,n){return O(this._targetInfoList,function(t){var e=t.getPanelRect();return{panelId:t.panelId,defaultBrushType:n&&n(t),clipPath:eS(e),isTargetByCursor:nS(e,i,t.coordSysModel),getLinearBrushOtherExtent:iS(e)}})},CA.controlSeries=function(t,e,i){var n=this.findTargetInfo(t,i);return!0===n||n&&0<=MA(n.coordSyses,e.coordinateSystem)},CA.findTargetInfo=function(t,e){for(var i=this._targetInfoList,n=kA(e,t),o=0;ot
”s “e
”,top “t
”s “+e;return O(mD,function(t){return t+”transition:“+i}).join(”;“)}(t)),e&&(v.canvasSupported?a.push(”background-Color:“+e):(a.push(”background-Color:#“+Ze(e)),a.push(”filter:alpha(opacity=70)“))),pD([”width“,”color“,”radius“],function(t){var e=”border-“+t,i=gD(e),n=o.get(i);null!=n&&a.push(e+”:“n
(”color“===t?”“:”px“))}),a.push(function(i){var n=[],t=i.get(”fontSize“),e=i.getTextColor();return e&&n.push(”color:“+e),n.push(”font:“+i.getFont()),t&&n.push(”line-height:“+Math.round(3*t/2)+”px“),pD([”decoration“,”align“],function(t){var e=i.get(t);e&&n.push(”text-“t
”:“+e)}),n.join(”;“)}(i)),null!=n&&a.push(”padding:“+iu(n).join(”px “)+”px“),a.join(”;“)+”;“}function yD(t,e,i,n,o){var a=e&&e.painter;if(i){var r=a&&a.getViewportRoot();r&&function(t,e,i,n,o){Rt(Et,e,n,o,!0)&&Rt(t,i,Et[0],Et[1])}(t,r,document.body,n,o)}else{t[0]=n,t[1]=o;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}}function xD(t,e,i){if(v.wxa)return null;var n=document.createElement(”div“);n.domBelongToZr=!0,this.el=n;var o=this._zr=e.getZr(),a=this._appendToBody=i&&i.appendToBody;this._styleCoord=[0,0],yD(this._styleCoord,o,a,e.getWidth()/2,e.getHeight()/2),a?document.body.appendChild(n):t.appendChild(n),this._container=t,this._show=!1,this._hideTimeout;var r=this;n.onmouseenter=function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!r._enterable){var e=o.handler;Zt(o.painter.getViewportRoot(),t,!0),e.dispatch(”mousemove“,t)}},n.onmouseleave=function(){r._enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1}}function _D(t){this._zr=t.getZr(),this._show=!1,this._hideTimeout}xD.prototype={constructor:xD,_enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),i=t.style;”absolute“!==i.position&&”absolute“!==e.position&&(i.position=”relative“)},show:function(t){clearTimeout(this._hideTimeout);var e=this.el,i=this._styleCoord;e.style.cssText=”position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;“+vD(t)+”;left:“i[0]
”px;top:“i[1]
”px;“+(t.get(”extraCssText“)||”“),e.style.display=e.innerHTML?”block“:”none“,e.style.pointerEvents=this._enterable?”auto“:”none“,this._show=!0},setContent:function(t){this.el.innerHTML=null==t?”“:t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var i=this._styleCoord;yD(i,this._zr,this._appendToBody,t,e);var n=this.el.style;n.left=i[0]+”px“,n.top=i[1]+”px“},hide:function(){this.el.style.display=”none“,this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(A(this.hide,this),t)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var t=this.el.clientWidth,e=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var i=document.defaultView.getComputedStyle(this.el);i&&(t+=parseInt(i.borderLeftWidth,10)+parseInt(i.borderRightWidth,10),e+=parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10))}return{width:t,height:e}}},_D.prototype={constructor:_D,_enterable:!0,update:function(){},show:function(t){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr(”show“,!0),this._show=!0},setContent:function(t,e,i){this.el&&this._zr.remove(this.el);for(var n={},o=t,a=”{marker“,r=o.indexOf(a);0<=r;){var s=o.indexOf("|}"),l=o.substr(r+a.length,s-r-a.length);-1o[0]:o[0]
” - “+o:o;function u(t){return t===s?”min“:t===s?”max“:(+t).toFixed(Math.min(r,20))}},resetExtent:function(){var t=this.option,e=LL();this._dataExtent=e},getDataDimension:function(t){var e=this.option.dimension,i=t.dimensions;if(null!=e||i.length){if(null!=e)return t.getDimension(e);for(var n=t.dimensions,o=n.length-1;0<=o;o–){var a=n;if(!t.getDimensionInfo(a).isCalculationCoord)return a}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var t=this.ecModel,e=this.option,i={inRange:e.inRange,outOfRange:e.outOfRange},n=e.target||(e.target={}),o=e.controller||(e.controller={});m(n,i),m(o,i);var u=this.isCategory();function a(n){DL(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get(”gradientColor“)},CL(this.stateList,function(t){var e=n;if(R(e)){var i=ML(e,”active“,u);i?(n={},n[e]=i):delete n}},this)}a.call(this,n),a.call(this,o),function(t,e,i){var n=t,o=t;n&&!o&&(o=t={},CL(n,function(t,e){if(g_.isValidType(e)){var i=ML(e,”inactive“,u);null!=i&&(o=i,”color“!==e||o.hasOwnProperty(”opacity“)||o.hasOwnProperty(”colorAlpha“)||(o.opacity=))}}))}.call(this,n,”inRange“,”outOfRange“),function(a){var r=(a.inRange||{}).symbol||(a.outOfRange||{}).symbol,s=(a.inRange||{}).symbolSize||(a.outOfRange||{}).symbolSize,l=this.get(”inactiveColor“);CL(this.stateList,function(t){var e=this.itemSize,i=a;null==(i=i||(a={color:u?l:})).symbol&&(i.symbol=r&&k®||(u?”roundRect“:)),null==i.symbolSize&&(i.symbolSize=s&&k(s)||(u?e:[e,e])),i.symbol=TL(i.symbol,function(t){return”none“===t||”square“===t?”roundRect“:t});var n=i.symbolSize;if(null!=n){var o=-1/0;AL(n,function(t){o<t&&(o=t)}),i.symbolSize=TL(n,function(t){return kL(t,,[0,e],!0)})}},this)}.call(this,o)},resetItemSize:function(){this.itemSize=},isCategory:function(){return!!this.option.categories},setSelected:et,getValueState:et,getVisualMeta:et}),NL=,OL=PL.extend({type:”visualMap.continuous“,defaultOption:{align:”auto“,calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(t,e){OL.superApply(this,”optionUpdated“,arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod=”linear“,t.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){OL.superApply(this,”resetItemSize“,arguments);var t=this.itemSize;”horizontal“===this._orient&&t.reverse(),null!=t&&!isNaN(t)||(t=NL),null!=t&&!isNaN(t)||(t=NL)},_resetRange:function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):L(e)&&(e>e&&e.reverse(),e=Math.max(e,t),e=Math.min(e,t))},completeVisualOption:function(){PL.prototype.completeVisualOption.apply(this,arguments),E(this.stateList,function(t){var e=this.option.controller.symbolSize;e&&e!==e&&(e=0)},this)},setSelected:function(t){this.option.range=t.slice(),this._resetRange()},getSelected:function(){var t=this.getExtent(),e=Bl((this.get(”range“)||[]).slice());return e>t&&(e=t),e>t&&(e=t),e<t&&(e=t),e<t&&(e=t),e},getValueState:function(t){var e=this.option.range,i=this.getExtent();return(e<=i||e<=t)&&(e>=i||t<=e)?”inRange“:”outOfRange“},findTargetDataIndices:function(n){var o=[];return this.eachTargetSeries(function(t){var i=[],e=t.getData();e.each(this.getDataDimension(e),function(t,e){n<=t&&t<=n&&i.push(e)},this),o.push({seriesId:t.id,dataIndex:i})},this),o},getVisualMeta:function(i){var t=EL(this,”outOfRange“,this.getExtent()),e=EL(this,”inRange“,this.option.range.slice()),n=[];function o(t,e){n.push({value:t,color:i(t,e)})}for(var a=0,r=0,s=e.length,l=t.length;r,”outOfRange“),o(e,”inRange“);for(u=1;rf[d[0]]
.5*f[d]<.5*a[d]?0:1]}function BL(t,e){return E(t||[],function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey=”visualMap“+(e?e.componentIndex:”“)}),t}var VL=El,GL=E,FL=Math.min,WL=Math.max,HL=RL.extend({type:”visualMap.continuous“,init:function(){HL.superApply(this,”init“,arguments),this._shapes={},this._dataInterval=[],this._handleEnds=,this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(t,e,i,n){n&&”selectDataRange“===n.type&&n.from===this.uid||this._buildView()},_buildView:function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get(”orient“),this._useHandle=t.get(”calculable“),this._resetInterval(),this._renderBar(e);var i=t.get(”text“);this._renderEndsText(e,i,0),this._renderEndsText(e,i,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},_renderEndsText:function(t,e,i){if(e){var n=e;n=null!=n?n+”“:”“;var o=this.visualMapModel,a=o.get(”textGap“),r=o.itemSize,s=this._shapes.barGroup,l=this._applyTransform([r/2,0===i?-a:r+a],s),u=this._applyTransform(0===i?”bottom“:”top“,s),h=this._orient,c=this.visualMapModel.textStyleModel;this.group.add(new Ur({style:{x:l,y:l,textVerticalAlign:”horizontal“===h?”middle“:u,textAlign:”horizontal“===h?u:”center“,text:n,textFont:c.getFont(),textFill:c.getTextColor()}}))}},_renderBar:function(t){var e=this.visualMapModel,i=this._shapes,n=e.itemSize,o=this._orient,a=this._useHandle,r=zL(e,this.api,n),s=i.barGroup=this._createBarGroup®;s.add(i.outOfRange=ZL()),s.add(i.inRange=ZL(null,a?XL(this._orient):null,A(this._dragHandle,this,”all“,!1),A(this._dragHandle,this,”all“,!0)));var l=e.textStyleModel.getTextRect(”国“),u=WL(l.width,l.height);a&&(i.handleThumbs=[],i.handleLabels=,i.handleLabelPoints=[],this._createHandle(s,0,n,u,o,r),this._createHandle(s,1,n,u,o,r)),this._createIndicator(s,n,u,o),t.add(s)},_createHandle:function(t,e,i,n,o){var a=A(this._dragHandle,this,e,!1),r=A(this._dragHandle,this,e,!0),s=ZL(function(t,e){return 0===t?[,[e,0],]:[[0,0],,[e,e]]}(e,n),XL(this._orient),a,r);s.position=i,t.add(s);var l=this.visualMapModel.textStyleModel,u=new Ur({draggable:!0,drift:a,onmousemove:function(t){Xt(t.event)},ondragend:r,style:{x:0,y:0,text:”“,textFont:l.getFont(),textFill:l.getTextColor()}});this.group.add(u);var h=,c=this._shapes;c.handleThumbs=s,c.handleLabelPoints=h,c.handleLabels=u},_createIndicator:function(t,e,i,n){var o=ZL([],”move“);o.position=e,o.attr({invisible:!0,silent:!0}),t.add(o);var a=this.visualMapModel.textStyleModel,r=new Ur({silent:!0,invisible:!0,style:{x:0,y:0,text:”“,textFont:a.getFont(),textFill:a.getTextColor()}});this.group.add®;var s=,l=this._shapes;l.indicator=o,l.indicatorLabel=r,l.indicatorLabelPoint=s},_dragHandle:function(t,e,i,n){if(this._useHandle){if(this._dragging=!e,!e){var o=this._applyTransform(,this._shapes.barGroup,!0);this._updateInterval(t,o),this._updateView()}e===!this.visualMapModel.get(”realtime“)&&this.api.dispatchAction({type:”selectDataRange“,from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?this._hovering||this._clearHoverLinkToSeries():UL(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds,!1)}},_resetInterval:function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),i=t.getExtent(),n=[0,t.itemSize];this._handleEnds=[VL(e,i,n,!0),VL(e,i,n,!0)]},_updateInterval:function(t,e){e=e||0;var i=this.visualMapModel,n=this._handleEnds,o=[0,i.itemSize];Jw(e,n,o,t,0);var a=i.getExtent();this._dataInterval=[VL(n,o,a,!0),VL(n,o,a,!0)]},_updateView:function(t){var e=this.visualMapModel,i=e.getExtent(),n=this._shapes,o=[0,e.itemSize],a=t?o:this._handleEnds,r=this._createBarVisual(this._dataInterval,i,a,”inRange“),s=this._createBarVisual(i,i,o,”outOfRange“);n.inRange.setStyle({fill:r.barColor,opacity:r.opacity}).setShape(”points“,r.barPoints),n.outOfRange.setStyle({fill:s.barColor,opacity:s.opacity}).setShape(”points“,s.barPoints),this._updateHandle(a,r)},_createBarVisual:function(t,e,i,n){var o={forceState:n,convertOpacityToAlpha:!0},a=this._makeColorGradient(t,o),r=[this.getControllerVisual(t,”symbolSize“,o),this.getControllerVisual(t,”symbolSize“,o)],s=this._createBarPoints(i,r);return{barColor:new gs(0,0,0,1,a),barPoints:s,handlesColor:[a.color,a.color]}},_makeColorGradient:function(t,e){var i=[],n=(t-t)/100;i.push({color:this.getControllerVisual(t,”color“,e),offset:0});for(var o=1;o<100;o++){var a=t+n*o;if(a>t)break;i.push({color:this.getControllerVisual(a,”color“,e),offset:o/100})}return i.push({color:this.getControllerVisual(t,”color“,e),offset:1}),i},_createBarPoints:function(t,e){var i=this.visualMapModel.itemSize;return[[i-e,t],[i,t],[i,t],[i-e,t]]},_createBarGroup:function(t){var e=this._orient,i=this.visualMapModel.get(”inverse“);return new Ci(”horizontal“!==e||i?”horizontal“===e&&i?{scale:”bottom“===t?:[1,1],rotation:-Math.PI/2}:”vertical“!==e||i?{scale:”left“===t?:[-1,1]}:{scale:”left“===t?:[-1,-1]}:{scale:”bottom“===t?:[-1,1],rotation:Math.PI/2})},_updateHandle:function(n,o){if(this._useHandle){var a=this._shapes,r=this.visualMapModel,s=a.handleThumbs,l=a.handleLabels;GL(,function(t){var e=s;e.setStyle(”fill“,o.handlesColor),e.position=n;var i=pl(a.handleLabelPoints,fl(e,this.group));l.setStyle({x:i,y:i,text:r.formatValueText(this._dataInterval),textVerticalAlign:”middle“,textAlign:this._applyTransform(”horizontal“===this._orient?0===t?”bottom“:”top“:”left“,a.barGroup)})},this)}},_showIndicator:function(t,e,i,n){var o=this.visualMapModel,a=o.getExtent(),r=o.itemSize,s=[0,r],l=VL(t,a,s,!0),u=this._shapes,h=u.indicator;if(h){h.position=l,h.attr(”invisible“,!1),h.setShape(”points“,function(t,e,i,n){return t?[,[6,0],]:[[0,0],,[5,5]]}(!!i,n,l,r));var c=this.getControllerVisual(t,”color“,{convertOpacityToAlpha:!0});h.setStyle(”fill“,c);var d=pl(u.indicatorLabelPoint,fl(h,this.group)),f=u.indicatorLabel;f.attr(”invisible“,!1);var p=this._applyTransform(”left“,u.barGroup),g=this._orient;f.setStyle({text:(i||”“)+o.formatValueText(e),textVerticalAlign:”horizontal“===g?p:”middle“,textAlign:”horizontal“===g?”center“:p,x:d,y:d})}},_enableHoverLinkToSeries:function(){var n=this;this._shapes.barGroup.on(”mousemove“,function(t){if(n._hovering=!0,!n._dragging){var e=n.visualMapModel.itemSize,i=n._applyTransform(,n._shapes.barGroup,!0,!0);i=FL(WL(0,i),e),n._doHoverLinkToSeries(i,0<=i&&i<=e)}}).on(”mouseout“,function(){n._hovering=!1,n._dragging||n._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on(”mouseover“,this._hoverLinkFromSeriesMouseOver,this),t.on(”mouseout“,this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(t,e){var i=this.visualMapModel,n=i.itemSize;if(i.option.hoverLink){var o=[0,n],a=i.getExtent();t=FL(WL(o,t),o);var r=function(t,e,i){var n=6,o=t.get(”hoverLinkDataSize“);o&&(n=VL(o,e,i,!0)/2);return n}(i,a,o),s=,l=VL(t,o,a,!0),u=[VL(s,o,a,!0),VL(s,o,a,!0)];s<o&&(u=-1/0),o<s&&(u=1/0),e&&(u===-1/0?this._showIndicator(l,u,”< “,r):u===1/0?this._showIndicator(l,u,”> “,r):this._showIndicator(l,l,”≈ “,r));var h=this._hoverLinkDataIndices,c=[];(e||UL(i))&&(c=this._hoverLinkDataIndices=i.findTargetDataIndices(u));var d=function(t,e){var i={},n={};return o(t||[],i),o(e||,n,i),;function o(t,e,i){for(var n=0,o=t.length;n<o;n++)for(var a=t.seriesId,r=Vo(t.dataIndex),s=i&&i,l=0,u=r.length;l<u;l++){var h=r;s&&s?s=null:(e||(e={}))[h]=1}}function a(t,e){var i=[];for(var n in t)if(t.hasOwnProperty(n)&&null!=t)if(e)i.push(+n);else{var o=a(t,!0);o.length&&i.push({seriesId:n,dataIndex:o})}return i}}(h,c);this._dispatchHighDown(”downplay“,BL(d,i)),this._dispatchHighDown(”highlight“,BL(d,i))}},_hoverLinkFromSeriesMouseOver:function(t){var e=t.target,i=this.visualMapModel;if(e&&null!=e.dataIndex){var n=this.ecModel.getSeriesByIndex(e.seriesIndex);if(i.isTargetSeries(n)){var o=n.getData(e.dataType),a=o.get(i.getDataDimension(o),e.dataIndex,!0);isNaN(a)||this._showIndicator(a,a)}}},_hideIndicator:function(){var t=this._shapes;t.indicator&&t.indicator.attr(”invisible“,!0),t.indicatorLabel&&t.indicatorLabel.attr(”invisible“,!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown(”downplay“,BL(t,this.visualMapModel)),t.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var t=this.api.getZr();t.off(”mouseover“,this._hoverLinkFromSeriesMouseOver),t.off(”mouseout“,this._hideIndicator)},_applyTransform:function(t,e,i,n){var o=fl(e,n?null:this.group);return bl(t,o,i)},_dispatchHighDown:function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function ZL(t,e,i,n){return new Qr({shape:{points:t},draggable:!!i,cursor:e,drift:i,onmousemove:function(t){Xt(t.event)},ondragend:n})}function UL(t){var e=t.get(”hoverLinkOnHandle“);return!!(null==e?t.get(”realtime“):e)}function XL(t){return”vertical“===t?”ns-resize“:”ew-resize“}_f({type:”selectDataRange“,event:”dataRangeSelected“,update:”update“},function(e,t){t.eachComponent({mainType:”visualMap“,query:e},function(t){t.setSelected(e.selected)})}),yf(yL);var YL=PL.extend({type:”visualMap.piecewise“,defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:”auto“,itemWidth:20,itemHeight:14,itemSymbol:”roundRect“,pieceList:null,categories:null,splitNumber:5,selectedMode:”multiple“,itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(t,e){YL.superApply(this,”optionUpdated“,arguments),this._pieceList=[],this.resetExtent();var i=this._mode=this._determineMode();jL.call(this),this._resetSelected(t,e);var n=this.option.categories;this.resetVisual(function(t,e){”categories“===i?(t.mappingMethod=”category“,t.categories=k(n)):(t.dataExtent=this.getExtent(),t.mappingMethod=”piecewise“,t.pieceList=O(this._pieceList,function(t){t=k(t);return”inRange“!==e&&(t.visual=null),t}))})},completeVisualOption:function(){var n=this.option,i={},t=g_.listVisualTypes(),o=this.isCategory();function a(t,e,i){return t&&t&&(z(t)?t.hasOwnProperty(i):t===i)}E(n.pieces,function(e){E(t,function(t){e.hasOwnProperty(t)&&(i=1)})}),E(i,function(t,e){var i=0;E(this.stateList,function(t){i|=a(n,t,e)||a(n.target,t,e)},this),i||E(this.stateList,function(t){(n||(n={}))[e]=ML(e,”inRange“===t?”active“:”inactive“,o)})},this),PL.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(t,e){var i=this.option,n=this._pieceList,o=(e?i:t).selected||{};if(i.selected=o,E(n,function(t,e){var i=this.getSelectedMapKey(t);o.hasOwnProperty(i)||(o=!0)},this),”single“===i.selectedMode){var a=!1;E(n,function(t,e){var i=this.getSelectedMapKey(t);o&&(a?o=!1:a=!0)},this)}},getSelectedMapKey:function(t){return”categories“===this._mode?t.value+”“:t.index+”“},getPieceList:function(){return this._pieceList},_determineMode:function(){var t=this.option;return t.pieces&&0<t.pieces.length?”pieces“:this.option.categories?”categories“:”splitNumber“},setSelected:function(t){this.option.selected=k(t)},getValueState:function(t){var e=g_.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList)]?”inRange“:”outOfRange“},findTargetDataIndices:function(n){var o=[];return this.eachTargetSeries(function(t){var i=[],e=t.getData();e.each(this.getDataDimension(e),function(t,e){g_.findPieceIndex(t,this._pieceList)===n&&i.push(e)},this),o.push({seriesId:t.id,dataIndex:i})},this),o},getRepresentValue:function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var i=t.interval||[];e=i===-1/0&&i===1/0?0:(i+i)/2}return e},getVisualMeta:function(o){if(!this.isCategory()){var a=[],r=,s=this,t=this._pieceList.slice();if(t.length){var e=t.interval;e!==-1/0&&t.unshift({interval:}),(e=t.interval)!==1/0&&t.push({interval:})}else t.push({interval:});var i=-1/0;return E(t,function(t){var e=t.interval;e&&(e>i&&n([i,e],”outOfRange“),n(e.slice()),i=e)},this),{stops:a,outerColors:r}}function n(t,e){var i=s.getRepresentValue({interval:t});e=e||s.getValueState(i);var n=o(i,e);t===-1/0?r=n:t===1/0?r=n:a.push({value:t,color:n},{value:t,color:n})}}}),jL={splitNumber:function(){var t=this.option,e=this._pieceList,i=Math.min(t.precision,20),n=this.getExtent(),o=t.splitNumber;o=Math.max(parseInt(o,10),1),t.splitNumber=o;for(var a=(n-n)/o;+a.toFixed(i)!==a&&i<5;)i++;t.precision=i,a=+a.toFixed(i),t.minOpen&&e.push({interval:[-1/0,n],close:});for(var r=0,s=n;r<o;s+=a,r++){var l=r===o-1?n:s+a;e.push({interval:,close:})}t.maxOpen&&e.push({interval:[n,1/0],close:}),$l(e),E(e,function(t,e){t.index=e,t.text=this.formatValueText(t.interval)},this)},categories:function(){var t=this.option;E(t.categories,function(t){this._pieceList.push({text:this.formatValueText(t,!0),value:t})},this),qL(t,this._pieceList)},pieces:function(){var t=this.option,d=this._pieceList;E(t.pieces,function(t,e){z(t)||(t={value:t});var i={text:”“,index:e};if(null!=t.label&&(i.text=t.label),t.hasOwnProperty(”value“)){var n=i.value=t.value;i.interval=,i.close=}else{for(var o=i.interval=[],a=i.close=,r=,s=,l=[],u=0;u<2;u++){for(var h=[,[”lte“,”lt“,”max“]],c=0;c<3&&null==o;c++)o=t[h],a=r,l=2===c;null==o&&(o=s)}l&&o===1/0&&(a=0),l&&o===-1/0&&(a=0),o===o&&a&&a&&(i.value=o)}i.visual=g_.retrieveVisuals(t),d.push(i)},this),qL(t,d),$l(d),E(d,function(t){var e=t.close,i=[[e],[”>“,”≥“][e]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,i)},this)}};function qL(t,e){var i=t.inverse;(”vertical“===t.orient?!i:i)&&e.reverse()}RL.extend({type:”visualMap.piecewise“,doRender:function(){var a=this.group;a.removeAll();var r=this.visualMapModel,s=r.get(”textGap“),t=r.textStyleModel,l=t.getFont(),u=t.getTextColor(),h=this._getItemAlign(),c=r.itemSize,e=this._getViewData(),i=e.endsText,d=W(r.get(”showLabel“,!0),!i);i&&this._renderEndsText(a,i,c,d,h),E(e.viewPieceList,function(t){var e=t.piece,i=new Ci;i.onclick=A(this._onItemClick,this,e),this._enableHoverLink(i,t.indexInModelPieceList);var n=r.getRepresentValue(e);if(this._createItemSymbol(i,n,[0,0,c,c]),d){var o=this.visualMapModel.getValueState(n);i.add(new Ur({style:{x:”right“===h?-s:c+s,y:c/2,text:e.text,textVerticalAlign:”middle“,textAlign:h,textFont:l,textFill:u,opacity:”outOfRange“===o?.5:1}}))}a.add(i)},this),i&&this._renderEndsText(a,i,c,d,h),wu(r.get(”orient“),a,r.get(”itemGap“)),this.renderBackground(a),this.positionGroup(a)},_enableHoverLink:function(t,i){function e(t){var e=this.visualMapModel;e.option.hoverLink&&this.api.dispatchAction({type:t,batch:BL(e.findTargetDataIndices(i),e)})}t.on(”mouseover“,A(e,this,”highlight“)).on(”mouseout“,A(e,this,”downplay“))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;if(”vertical“===e.orient)return zL(t,this.api,t.itemSize);var i=e.align;return i&&”auto“!==i||(i=”left“),i},_renderEndsText:function(t,e,i,n,o){if(e){var a=new Ci,r=this.visualMapModel.textStyleModel;a.add(new Ur({style:{x:n?”right“===o?i:0:i/2,y:i/2,textVerticalAlign:”middle“,textAlign:n?o:”center“,text:e,textFont:r.getFont(),textFill:r.getTextColor()}})),t.add(a)}},_getViewData:function(){var t=this.visualMapModel,e=O(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),i=t.get(”text“),n=t.get(”orient“),o=t.get(”inverse“);return(”horizontal“===n?o:!o)?e.reverse():i=i&&i.slice().reverse(),{viewPieceList:e,endsText:i}},_createItemSymbol:function(t,e,i){t.add(wg(this.getControllerVisual(e,”symbol“),i,i,i,i,this.getControllerVisual(e,”color“)))},_onItemClick:function(t){var e=this.visualMapModel,i=e.option,n=k(i.selected),o=e.getSelectedMapKey(t);”single“===i.selectedMode?(n=!0,E(n,function(t,e){n=e===o})):n=!n,this.api.dispatchAction({type:”selectDataRange“,from:this.uid,visualMapId:this.visualMapModel.id,selected:n})}});yf(yL);var KL,$L=”urn:schemas-microsoft-com:vml“,JL=”undefined“==typeof window?null:window,QL=!1,tk=JL&&JL.document;function ek(t){return KL(t)}if(tk&&!v.canvasSupported)try{tk.namespaces.zrvml||tk.namespaces.add(”zrvml“,$L),KL=function(t){return tk.createElement(”<zrvml:“t
' class=”zrvml“>')}}catch(t){KL=function(t){return tk.createElement(”<“t
' xmlns=”'+$L+'“ class=”zrvml“>')}}var ik,nk=rr.CMD,ok=Math.round,ak=Math.sqrt,rk=Math.abs,sk=Math.cos,lk=Math.sin,uk=Math.max;if(!v.canvasSupported){var hk=”,“,ck=”progid:DXImageTransform.Microsoft“,dk=21600,fk=dk/2,pk=function(t){t.style.cssText=”position:absolute;left:0;top:0;width:1px;height:1px;“,t.coordsize=dk+”,“+dk,t.coordorigin=”0,0“},gk=function(t,e,i){return”rgb(“+.join(”,“)+”)“},mk=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},vk=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},yk=function(t,e,i){return 1e5*(parseFloat(t)||0)+1e3*(parseFloat(e)||0)+i},xk=Yn,_k=function(t,e,i){var n=Fe(e);i=+i,isNaN(i)&&(i=1),n&&(t.color=gk(n,n,n),t.opacity=i*n)},wk=function(t,e,i,n){var o=”fill“===e,a=t.getElementsByTagName(e);null!=i&&”none“!==i&&(o||!o&&i.lineWidth)?(t=”true“,iinstanceof cs&&vk(t,a),a=a||ek(e),o?function(t,e,i){var n,o,a=e.fill;if(null!=a)if(a instanceof cs){var r,s=0,l=,u=0,h=1,c=i.getBoundingRect(),d=c.width,f=c.height;if(”linear“===a.type){r=”gradient“;var p=i.transform,g=,m=;p&&(bt(g,g,p),bt(m,m,p));var v=m-g,y=m-g;(s=180*Math.atan2(v,y)/Math.PI)<0&&(s+=360),s<1e-6&&(s=0)}else{r=”gradientradial“;g=,p=i.transform;var x=i.scale,_=d,w=f;l=[(g-c.x)/_,(g-c.y)/w],p&&bt(g,g,p),_/=x*dk,w/=x*dk;var b=uk(_,w);u=0/b,h=2*a.r/b-u}var S=a.colorStops.slice();S.sort(function(t,e){return t.offset-e.offset});for(var M=S.length,I=[],T=,A=0;A<M;A++){var D=S,C=(n=D.color,void 0,o=Fe(n),[gk(o,o,o),o]);T.push(D.offset*h+u+” “+C),0!==A&&A!==M-1||I.push(C)}if(2<=M){var L=I[0],k=I[0],P=I[1]*e.opacity,N=I[1]*e.opacity;t.type=r,t.method=”none“,t.focus=”100%“,t.angle=s,t.color=L,t.color2=k,t.colors=T.join(”,“),t.opacity=N,t.opacity2=P}”radial“===r&&(t.focusposition=l.join(”,“))}else _k(t,a,e.opacity)}(a,i,n):function(t,e){e.lineDash&&(t.dashstyle=e.lineDash.join(” “)),null==e.stroke||e.stroke instanceof cs||_k(t,e.stroke,e.opacity)}(a,i),mk(t,a)):(t=”false“,vk(t,a))},bk=[,[],[]];Ar.prototype.brushVML=function(t){var e=this.style,i=this._vmlEl;i||(i=ek(”shape“),pk(i),this._vmlEl=i),wk(i,”fill“,e,this),wk(i,”stroke“,e,this);var n=this.transform,o=null!=n,a=i.getElementsByTagName(”stroke“);if(a){var r=e.lineWidth;if(o&&!e.strokeNoScale){var s=n*n-n*n;r*=ak(rk(s))}a.weight=r+”px“}var l=this.path||(this.path=new rr);this.__dirtyPath&&(l.beginPath(),l.subPixelOptimize=!1,this.buildPath(l,this.shape),l.toStatic(),this.__dirtyPath=!1),i.path=function(t,e){var i,n,o,a,r,s,l=nk.M,u=nk.C,h=nk.L,c=nk.A,d=nk.Q,f=[],p=t.data,g=t.len();for(a=0;ap[a+
],B=zp[a+
],e&&(bt(z,z,e),bt(B,B,e)),z=ok(z*dk-fk),B=ok(B*dk-fk),z=ok(z*dk-fk),B=ok(B*dk-fk),f.push(” m “,z,hk,z,” l “,B,hk,z,” l “,B,hk,B,” l “,z,hk,B);break;case nk.Z:f.push(” x “)}if(0<i){f.push(n);for(var V=0;V<i;V++){var G=bk;e&&bt(G,G,e),f.push(ok(G*dk-fk),hk,ok(G*dk-fk),V<i-1?hk:”“)}}}return f.join(”“)}(l,this.transform),i.style.zIndex=yk(this.zlevel,this.z,this.z2),mk(t,i),null!=e.text?this.drawRectText(t,this.getBoundingRect()):this.removeRectText(t)},Ar.prototype.onRemove=function(t){vk(t,this._vmlEl),this.removeRectText(t)},Ar.prototype.onAdd=function(t){mk(t,this._vmlEl),this.appendRectText(t)};Qn.prototype.brushVML=function(t){var e,i,n=this.style,o=n.image;if(function(t){return”object“==typeof t&&t.tagName&&”IMG“===t.tagName.toUpperCase()}(o)){var a=o.src;if(a===this._imageSrc)e=this._imageWidth,i=this._imageHeight;else{var r=o.runtimeStyle,s=r.width,l=r.height;r.width=”auto“,r.height=”auto“,e=o.width,i=o.height,r.width=s,r.height=l,this._imageSrc=a,this._imageWidth=e,this._imageHeight=i}o=a}else o===this._imageSrc&&(e=this._imageWidth,i=this._imageHeight);if(o){var u=n.x||0,h=n.y||0,c=n.width,d=n.height,f=n.sWidth,p=n.sHeight,g=n.sx||0,m=n.sy||0,v=f&&p,y=this._vmlEl;y||(y=tk.createElement(”div“),pk(y),this._vmlEl=y);var x,_=y.style,w=!1,b=1,S=1;if(this.transform&&(x=this.transform,b=ak(x*x+x*x),S=ak(x*x+x*x),w=x||x),w){var M=,I=,T=,A=;bt(M,M,x),bt(I,I,x),bt(T,T,x),bt(A,A,x);var D=uk(M,I,T,A),C=uk(M,I,T,A),L=[];L.push(”M11=“,x/b,hk,”M12=“,x/S,hk,”M21=“,x/b,hk,”M22=“,x/S,hk,”Dx=“,ok(u*b+x),hk,”Dy=“,ok(h*S+x)),_.padding=”0 “+ok(D)+”px “+ok(C)+”px 0“,_.filter=ck+”.Matrix(“+L.join(”“)+”, SizingMethod=clip)“}else x&&(u=u*b+x,h=h*S+x),_.filter=”“,_.left=ok(u)+”px“,_.top=ok(h)+”px“;var k=this._imageEl,P=this._cropEl;k||(k=tk.createElement(”div“),this._imageEl=k);var N=k.style;if(v){if(e&&i)N.width=ok(b*e*c/f)+”px“,N.height=ok(S*i*d/p)+”px“;else{var O=new Image,E=this;O.onload=function(){O.onload=null,e=O.width,i=O.height,N.width=ok(b*e*c/f)+”px“,N.height=ok(S*i*d/p)+”px“,E._imageWidth=e,E._imageHeight=i,E._imageSrc=o},O.src=o}P||((P=tk.createElement(”div“)).style.overflow=”hidden“,this._cropEl=P);var R=P.style;R.width=ok((c+g*c/f)*b),R.height=ok((d+m*d/p)*S),R.filter=ck+”.Matrix(Dx=“+-g*c/f*b+”,Dy=“+-m*d/p*S+”)“,P.parentNode||y.appendChild(P),k.parentNode!==P&&P.appendChild(k)}else N.width=ok(b*c)+”px“,N.height=ok(S*d)+”px“,y.appendChild(k),P&&P.parentNode&&(y.removeChild(P),this._cropEl=null);var z=”“,B=n.opacity;B<1&&(z+=”.Alpha(opacity=“+ok(100*B)+”) “),z+=ck+”.AlphaImageLoader(src=“o
”, SizingMethod=scale)“,N.filter=z,y.style.zIndex=yk(this.zlevel,this.z,this.z2),mk(t,y),null!=n.text&&this.drawRectText(t,this.getBoundingRect())}},Qn.prototype.onRemove=function(t){vk(t,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(t)},Qn.prototype.onAdd=function(t){mk(t,this._vmlEl),this.appendRectText(t)};var Sk,Mk=”normal“,Ik={},Tk=0,Ak=document.createElement(”div“);ik=function(t,e){var i=tk;Sk||((Sk=i.createElement(”div“)).style.cssText=”position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;“,tk.body.appendChild(Sk));try{Sk.style.font=e}catch(t){}return Sk.innerHTML=”“,Sk.appendChild(i.createTextNode(t)),{width:Sk.offsetWidth}},fn=ik;for(var Dk=new Di,Ck=function(t,e,i,n){var o=this.style;this.__dirty&&En(o);var a=o.text;if(null!=a&&(a+=”“),a){if(o.rich){var r=In(a,o);a=[];for(var s=0;s<r.lines.length;s++){for(var l=r.lines.tokens,u=[],h=0;hg.variant
” “g.weight
” “g.size
'px ”'g.family
'“';i=i||gn(a,m,f,p,o.textPadding,o.textLineHeight);var v=this.transform;if(v&&!n&&(Dk.copy(e),Dk.applyTransform(v),e=Dk),n)c=e.x,d=e.y;else{var y=o.textPosition;if(y instanceof Array)c=e.x+xk(y,e.width),d=e.y+xk(y,e.height),f=f||”left“;else{var x=this.calculateTextPosition?this.calculateTextPosition({},o,e):yn({},o,e);c=x.x,d=x.y,f=f||x.textAlign,p=p||x.textVerticalAlign}}c=mn(c,i.width,f),d=vn(d,i.height,p),d+=i.height/2;var _,w,b,S=ek,M=this._textVmlEl;M?w=(_=(b=M.firstChild).nextSibling).nextSibling:(M=S(”line“),_=S(”path“),w=S(”textpath“),b=S(”skew“),w.style=”left“,pk(M),_.textpathok=!0,w.on=!0,M.from=”0 0“,M.to=”1000 0.05“,mk(M,b),mk(M,_),mk(M,w),this._textVmlEl=M);var I=,T=M.style;v&&n?(bt(I,I,v),b.on=!0,b.matrix=v.toFixed(3)+hk+v.toFixed(3)+hk+v.toFixed(3)+hk+v.toFixed(3)+”,0,0“,b.offset=(ok(I)||0)+”,“+(ok(I)||0),b.origin=”0 0“,T.left=”0px“,T.top=”0px“):(b.on=!1,T.left=ok©+”px“,T.top=ok(d)+”px“),w.string=function(t){return String(t).replace(/&/g,”&“).replace(/”/g,“"”)}(a);try{w.style.font=m}catch(t){}wk(M,“fill”,{fill:o.textFill,opacity:o.opacity},this),wk(M,“stroke”,{stroke:o.textStroke,opacity:o.opacity,lineDash:o.lineDash||null},this),M.style.zIndex=yk(this.zlevel,this.z,this.z2),mk(t,M)}},Lk=function(t){vk(t,this._textVmlEl),this._textVmlEl=null},kk=function(t){mk(t,this._textVmlEl)},Pk=,Nk=0;Nk<Pk.length;Nk++){var Ok=Pk.prototype;Ok.drawRectText=Ck,Ok.removeRectText=Lk,Ok.appendRectText=kk}Ur.prototype.brushVML=function(t){var e=this.style;null!=e.text?this.drawRectText(t,{x:e.x||0,y:e.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(t)},Ur.prototype.onRemove=function(t){this.removeRectText(t)},Ur.prototype.onAdd=function(t){this.appendRectText(t)}}function Ek(t){return parseInt(t,10)}function Rk(t,e){!function(){if(!QL&&tk){QL=!0;var t=tk.styleSheets;t.length<31?tk.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t.addRule(“.zrvml”,“behavior:url(default#VML)”)}}(),this.root=t,this.storage=e;var i=document.createElement(“div”),n=document.createElement(“div”);i.style.cssText=“display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;”,n.style.cssText=“position:absolute;left:0;top:0;”,t.appendChild(i),this._vmlRoot=n,this._vmlViewport=i,this.resize();var o=e.delFromStorage,a=e.addToStorage;e.delFromStorage=function(t){o.call(e,t),t&&t.onRemove&&t.onRemove(n)},e.addToStorage=function(t){t.onAdd&&t.onAdd(n),a.call(e,t)},this._firstPaint=!0}Rk.prototype={constructor:Rk,getType:function(){return“vml”},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0,!0);this._paintList(t)},_paintList:function(t){for(var e=this._vmlRoot,i=0;i<t.length;i++){var n=t;n.invisible||n.ignore?(n.__alreadyNotVisible||n.onRemove(e),n.__alreadyNotVisible=!0):(n.__alreadyNotVisible&&n.onAdd(e),n.__alreadyNotVisible=!1,n.__dirty&&(n.beforeBrush&&n.beforeBrush(),(n.brushVML||n.brush).call(n,e),n.afterBrush&&n.afterBrush())),n.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(e),this._firstPaint=!1)},resize:function(t,e){t=null==t?this._getWidth():t,e=null==e?this._getHeight():e;if(this._width!==t||this._height!==e){this._width=t,this._height=e;var i=this._vmlViewport.style;i.width=t+“px”,i.height=e+“px”}},dispose:function(){this.root.innerHTML=“”,this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var t=this.root,e=t.currentStyle;return(t.clientWidth||Ek(e.width))-Ek(e.paddingLeft)-Ek(e.paddingRight)|0},_getHeight:function(){var t=this.root,e=t.currentStyle;return(t.clientHeight||Ek(e.height))-Ek(e.paddingTop)-Ek(e.paddingBottom)|0}},E(,function(t){Rk.prototype=function(t){return function(){vi('In IE8.0 VML mode painter not support method “'t
'”')}}(t)}),Po(“vml”,Rk);function zk(t){return document.createElementNS(“www.w3.org/2000/svg”,t)}var Bk=rr.CMD,Vk=Array.prototype.join,Gk=“none”,Fk=Math.round,Wk=Math.sin,Hk=Math.cos,Zk=Math.PI,Uk=2*Math.PI,Xk=180/Zk,Yk=1e-4;function jk(t){return Fk(1e4*t)/1e4}function qk(t){return t<Yk&&-Yk<t}function Kk(t,e){e&&$k(t,“transform”,“matrix(”+Vk.call(e,“,”)+“)”)}function $k(t,e,i){i&&(“linear”===i.type||“radial”===i.type)||t.setAttribute(e,i)}function Jk(t,e,i,n){if(function(t,e){var i=e?t.textFill:t.fill;return null!=i&&i!==Gk}(e,i)){var o=i?e.textFill:e.fill;$k(t,“fill”,o=“transparent”===o?Gk:o),$k(t,“fill-opacity”,null!=e.fillOpacity?e.fillOpacity*e.opacity:e.opacity)}else $k(t,“fill”,Gk);if(function(t,e){var i=e?t.textStroke:t.stroke;return null!=i&&i!==Gk}(e,i)){var a=i?e.textStroke:e.stroke;$k(t,“stroke”,a=“transparent”===a?Gk:a),$k(t,“stroke-width”,(i?e.textStrokeWidth:e.lineWidth)/(!i&&e.strokeNoScale?n.getLineScale():1)),$k(t,“paint-order”,i?“stroke”:“fill”),$k(t,“stroke-opacity”,null!=e.strokeOpacity?e.strokeOpacity:e.opacity),e.lineDash?($k(t,“stroke-dasharray”,e.lineDash.join(“,”)),$k(t,“stroke-dashoffset”,Fk(e.lineDashOffset||0))):$k(t,“stroke-dasharray”,“”),e.lineCap&&$k(t,“stroke-linecap”,e.lineCap),e.lineJoin&&$k(t,“stroke-linejoin”,e.lineJoin),e.miterLimit&&$k(t,“stroke-miterlimit”,e.miterLimit)}else $k(t,“stroke”,Gk)}var Qk={};Qk.brush=function(t){var e=t.style,i=t.__svgEl;i||(i=zk(“path”),t.__svgEl=i),t.path||t.createPathProxy();var n=t.path;if(t.__dirtyPath){n.beginPath(),n.subPixelOptimize=!1,t.buildPath(n,t.shape),t.__dirtyPath=!1;var o=function(t){for(var e=[],i=t.data,n=t.len(),o=0;o<n;){var a=“”,r=0;switch(i){case Bk.M:a=“M”,r=2;break;case Bk.L:a=“L”,r=2;break;case Bk.Q:a=“Q”,r=4;break;case Bk.C:a=“C”,r=6;break;case Bk.A:var s=i,l=i,u=i,h=i,c=i,d=i,f=i,p=i,g=Math.abs(d),m=qk(g-Uk)||(p?Uk<=d:Uk<=-d),v=0<d?d%Uk:d%Uk+Uk,y=!1;y=!!m||!qk(g)&&Zk<=v==!!p;var x=jk(s+u*Hk©),_=jk(l+h*Wk©);m&&(d=p?Uk-1e-4:1e-4-Uk,y=!0,9===o&&e.push(“M”,x,_));var w=jk(s+u*Hk(c+d)),b=jk(l+h*Wk(c+d));e.push(“A”,jk(u),jk(h),Fk(f*Xk),+y,+p,w,b);break;case Bk.Z:a=“Z”;break;case Bk.R:w=jk(i),b=jk(i);var S=jk(i),M=jk(i);e.push(“M”,w,b,“L”,w+S,b,“L”,w+S,b+M,“L”,w,b+M,“L”,w,b)}a&&e.push(a);for(var I=0;I,v,x,_+M*p)}else{t.__text=a,t.__canCacheByTextString=w;var I=d.lines,T=I.length;for(M=0;M<T;M++){var A=b,D=I;A?A.__zrText!==D&&(A.innerHTML=“”,A.appendChild(document.createTextNode(D))):(A=b=zk(“tspan”),r.appendChild(A),A.appendChild(document.createTextNode(D))),sP(A,v,x,_+M*p)}if(T<S){for(;M);b.length=T}}}};function sP(t,e,i,n){$k(t,“dominant-baseline”,“middle”),$k(t,“text-anchor”,aP),$k(t,“x”,i),$k(t,“y”,n)}function lP(t){t&&t.__textSvgEl&&(t.__textSvgEl.parentNode&&t.__textSvgEl.parentNode.removeChild(t.__textSvgEl),t.__textSvgEl=null,t.__tspanList=[],t.__text=null)}function uP(){}function hP(t,e){for(var i=0,n=e.length,o=0,a=0;i<n;i++){var r=e;if(r.removed){for(s=[],l=a;l<a+r.count;l++)s.push(l);r.indices=s,a+=r.count}else{for(var s=[],l=o;l<o+r.count;l++)s.push(l);r.indices=s,o+=r.count,r.added||(a+=r.count)}}return e}eP.drawRectText=rP,eP.brush=function(t){null!=t.style.text?rP(t,!1):lP(t)},uP.prototype={diff:function(l,u,t){t=t||function(t,e){return t===e},this.equals=t;var h=this;l=l.slice();var c=(u=u.slice()).length,d=l.length,f=1,e=c+d,p=[{newPos:-1,components:}],i=this.extractCommon(p,u,l,0);if(p.newPos+1>=c&&d<=i+1){for(var n=[],o=0;oo
“)”)}})}},fP.prototype.add=function(t){var e;if(“linear”===t.type)e=this.createElement(“linearGradient”);else{if(“radial”!==t.type)return vi(“Illegal gradient type.”),null;e=this.createElement(“radialGradient”)}return t.id=t.id||this.nextId++,e.setAttribute(“id”,“zr”this._zrId
“-gradient-”+t.id),this.updateDom(t,e),this.addDom(e),e},fP.prototype.update=function(i){var n=this;dP.prototype.update.call(this,i,function(){var t=i.type,e=i._dom.tagName;“linear”===t&&“linearGradient”===e||“radial”===t&&“radialGradient”===e?n.updateDom(i,i._dom):(n.removeDom(i),n.add(i))})},fP.prototype.updateDom=function(t,e){if(“linear”===t.type)e.setAttribute(“x1”,t.x),e.setAttribute(“y1”,t.y),e.setAttribute(“x2”,t.x2),e.setAttribute(“y2”,t.y2);else{if(“radial”!==t.type)return void vi(“Illegal gradient type.”);e.setAttribute(“cx”,t.x),e.setAttribute(“cy”,t.y),e.setAttribute(“r”,t.r)}t.global?e.setAttribute(“gradientUnits”,“userSpaceOnUse”):e.setAttribute(“gradientUnits”,“objectBoundingBox”),e.innerHTML=“”;for(var i=t.colorStops,n=0,o=i.length;n<o;++n){var a=this.createElement(“stop”);a.setAttribute(“offset”,100*i.offset+“%”);var r=i.color;if(r.indexOf(!1)){var s=Fe®,l=Ze®;a.setAttribute(“stop-color”,“#”+l),a.setAttribute(“stop-opacity”,s)}else a.setAttribute(“stop-color”,i.color);e.appendChild(a)}t._dom=e},fP.prototype.markUsed=function(t){if(t.style){var e=t.style.fill;e&&e._dom&&dP.prototype.markUsed.call(this,e._dom),(e=t.style.stroke)&&e._dom&&dP.prototype.markUsed.call(this,e._dom)}},w(pP,dP),pP.prototype.update=function(t){var e=this.getSvgElement(t);e&&this.updateDom(e,t.__clipPaths,!1);var i=this.getTextSvgElement(t);i&&this.updateDom(i,t.__clipPaths,!0),this.markUsed(t)},pP.prototype.updateDom=function(t,e,i){if(e&&0<e.length){var n,o,a=this.getDefs(!0),r=e,s=i?“_textDom”:“_dom”;r?(o=r.getAttribute(“id”),n=r,a.contains(n)||a.appendChild(n)):(o=“zr”this._zrId
“-clip-”+this.nextId,++this.nextId,(n=this.createElement(“clipPath”)).setAttribute(“id”,o),a.appendChild(n),r=n);var l=this.getSvgProxy®;if(r.transform&&r.parent.invTransform&&!i){var u=Array.prototype.slice.call(r.transform);le(r.transform,r.parent.invTransform,r.transform),l.brush®,r.transform=u}else l.brush®;var h=this.getSvgElement®;n.innerHTML=“”,n.appendChild(h.cloneNode()),t.setAttribute(“clip-path”,“url(#”o
“)”),1<e.length&&this.updateDom(n,e.slice(1),i)}else t&&t.setAttribute(“clip-path”,“none”)},pP.prototype.markUsed=function(t){var e=this;t.__clipPaths&&E(t.__clipPaths,function(t){t._dom&&dP.prototype.markUsed.call(e,t._dom),t._textDom&&dP.prototype.markUsed.call(e,t._textDom)})},w(gP,dP),gP.prototype.addWithoutUpdate=function(t,e){if(e&&mP(e.style)){var i;if(e._shadowDom)i=e._shadowDom,this.getDefs(!0).contains(e._shadowDom)||this.addDom(i);else i=this.add(e);this.markUsed(e);var n=i.getAttribute(“id”);t.style.filter=“url(#”n
“)”}},gP.prototype.add=function(t){var e=this.createElement(“filter”);return t._shadowDomId=t._shadowDomId||this.nextId++,e.setAttribute(“id”,“zr”this._zrId
“-shadow-”+t._shadowDomId),this.updateDom(t,e),this.addDom(e),e},gP.prototype.update=function(t,e){if(mP(e.style)){var i=this;dP.prototype.update.call(this,e,function(){i.updateDom(e,e._shadowDom)})}else this.remove(t,e)},gP.prototype.remove=function(t,e){null!=e._shadowDomId&&(this.removeDom(t),t.style.filter=“”)},gP.prototype.updateDom=function(t,e){var i=e.getElementsByTagName(“feDropShadow”);i=0===i.length?this.createElement(“feDropShadow”):i;var n,o,a,r,s=t.style,l=t.scale&&t.scale||1,u=t.scale&&t.scale||1;if(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)n=s.shadowOffsetX||0,o=s.shadowOffsetY||0,a=s.shadowBlur,r=s.shadowColor;else{if(!s.textShadowBlur)return void this.removeDom(e,s);n=s.textShadowOffsetX||0,o=s.textShadowOffsetY||0,a=s.textShadowBlur,r=s.textShadowColor}i.setAttribute(“dx”,n/l),i.setAttribute(“dy”,o/u),i.setAttribute(“flood-color”,r);var h=a/2/l+“ ”+a/2/u;i.setAttribute(“stdDeviation”,h),e.setAttribute(“x”,“-100%”),e.setAttribute(“y”,“-100%”),e.setAttribute(“width”,Math.ceil(a/2*200)+“%”),e.setAttribute(“height”,Math.ceil(a/2*200)+“%”),e.appendChild(i),t._shadowDom=e},gP.prototype.markUsed=function(t){t._shadowDom&&dP.prototype.markUsed.call(this,t._shadowDom)};function MP(t,e,i,n){this.root=t,this.storage=e,this._opts=i=P({},i||{});var o=zk(“svg”);o.setAttribute(“xmlns”,“www.w3.org/2000/svg”),o.setAttribute(“version”,“1.1”),o.setAttribute(“baseProfile”,“full”),o.style.cssText=“user-select:none;position:absolute;left:0;top:0;”;var a=zk(“g”);o.appendChild(a);var r=zk(“g”);o.appendChild®,this.gradientManager=new fP(n,r),this.clipPathManager=new pP(n,r),this.shadowManager=new gP(n,r);var s=document.createElement(“div”);s.style.cssText=“overflow:hidden;position:relative”,this._svgDom=o,this._svgRoot=r,this._backgroundRoot=a,this._viewport=s,t.appendChild(s),s.appendChild(o),this.resize(i.width,i.height),this._visibleList=[]}MP.prototype={constructor:MP,getType:function(){return“svg”},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},setBackgroundColor:function(t){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var e=zk(“rect”);e.setAttribute(“width”,this.getWidth()),e.setAttribute(“height”,this.getHeight()),e.setAttribute(“x”,0),e.setAttribute(“y”,0),e.setAttribute(“id”,0),e.style.fill=t,this._backgroundRoot.appendChild(e),this._backgroundNode=e},_paintList:function(t){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var e,i,n=this._svgRoot,o=this._visibleList,a=t.length,r=[];for(e=0;e<a;e++){var s=t,l=(i=s)instanceof Ar?Qk:i instanceof Qn?tP:i instanceof Ur?eP:Qk,u=SP(s)||bP(s);s.invisible||(s.__dirty&&(l&&l.brush(s),this.clipPathManager.update(s),s.style&&(this.gradientManager.update(s.style.fill),this.gradientManager.update(s.style.stroke),this.shadowManager.update(u,s)),s.__dirty=!1),r.push(s))}var h,c=function(t,e,i){return cP.diff(t,e,i)}(o,r);for(e=0;e<c.length;e++){if((p=c).removed)for(var d=0;d<p.count;d++){u=SP(s=o[p.indices]);var f=bP(s);wP(n,u),wP(n,f)}}for(e=0;e<c.length;e++){var p;if((p=c).added)for(d=0;d<p.count;d++){u=SP(s=r[p.indices]),f=bP(s);h?xP(n,u,h):_P(n,u),u?xP(n,f,u):h?xP(n,f,h):_P(n,f),xP(n,f,u),h=f||u||h,this.gradientManager.addWithoutUpdate(u||f,s),this.shadowManager.addWithoutUpdate(u||f,s),this.clipPathManager.markUsed(s)}else if(!p.removed)for(d=0;d<p.count;d++){u=SP(s=r[p.indices]),f=bP(s),u=SP(s),f=bP(s);this.gradientManager.markUsed(s),this.gradientManager.addWithoutUpdate(u||f,s),this.shadowManager.markUsed(s),this.shadowManager.addWithoutUpdate(u||f,s),this.clipPathManager.markUsed(s),f&&xP(n,f,u),h=u||f||h}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=r},_getDefs:function(t){var n,e=this._svgDom;return 0!==(n=e.getElementsByTagName(“defs”)).length?n:t?((n=e.insertBefore(zk(“defs”),e.firstChild)).contains||(n.contains=function(t){var e=n.children;if(!e)return!1;for(var i=e.length-1;0<=i;--i)if(e===t)return!0;return!1}),n):null},resize:function(t,e){var i=this._viewport;i.style.display=“none”;var n=this._opts;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=this._getSize(0),e=this._getSize(1),i.style.display=“”,this._width!==t||this._height!==e){this._width=t,this._height=e;var o=i.style;o.width=t+“px”,o.height=e+“px”;var a=this._svgDom;a.setAttribute(“width”,t),a.setAttribute(“height”,e)}this._backgroundNode&&(this._backgroundNode.setAttribute(“width”,t),this._backgroundNode.setAttribute(“height”,e))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,i=[t],n=[t],o=[t],a=[t];if(null!=e&&“auto”!==e)return parseFloat(e);var r=this.root,s=document.defaultView.getComputedStyle®;return(r||vP(s)||vP(r.style))-(vP(s)||0)-(vP(s)||0)|0},dispose:function(){this.root.innerHTML=“”,this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){return this.refresh(),“data:image/svg+xml;charset=UTF-8,”+encodeURIComponent(this._svgDom.outerHTML.replace(/></g,“>nr<”))}},E(,function(t){MP.prototype=function(t){return function(){vi('In SVG mode painter not support method “'t
'”')}}(t)}),Po(“svg”,MP),t.version=“4.8.0”,t.dependencies={zrender:“4.3.1”},t.PRIORITY=Ld,t.init=function(t,e,i){var n=mf(t);if(n)return n;var o=new Rd(t,e,i);return o.id=“ec_”cf+
,uf=o,Jo(t,ff,o.id),function(n){var o=“__connectUpdateStatus”;function a(t,e){for(var i=0;i<t.length;i++){t[o]=e}}Td(ef,function(t,e){n._messageCenter.on(e,function(t){if(hf&&0!==n){if(t&&t.escapeConnect)return;var e=n.makeActionFromEvent(t),i=[];Td(uf,function(t){t!==n&&t.group===n.group&&i.push(t)}),a(i,0),Td(i,function(t){1!==t&&t.dispatchAction(e)}),a(i,2)}})})}(o),o},t.connect=function(e){if(L(e)){var t=e;e=null,Td(t,function(t){null!=t.group&&(e=t.group)}),e=e||“g_”df+
,Td(t,function(t){t.group=e})}return hf=!0,e},t.disConnect=pf,t.disconnect=gf,t.dispose=function(t){“string”==typeof t?t=uf:t instanceof Rd||(t=mf(t)),t instanceof Rd&&!t.isDisposed()&&t.dispose()},t.getInstanceByDom=mf,t.getInstanceById=function(t){return uf},t.registerTheme=vf,t.registerPreprocessor=yf,t.registerProcessor=xf,t.registerPostUpdate=function(t){af.push(t)},t.registerAction=_f,t.registerCoordinateSystem=wf,t.getCoordinateSystemDimensions=function(t){var e=lh.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()},t.registerLayout=bf,t.registerVisual=Sf,t.registerLoading=If,t.extendComponentModel=Tf,t.extendComponentView=Af,t.extendSeriesModel=Df,t.extendChartView=Cf,t.setCanvasCreator=function(t){f(“createCanvas”,t)},t.registerMap=function(t,e,i){Sd.registerMap(t,e,i)},t.getMap=function(t){var e=Sd.retrieveMap(t);return e&&e&&{geoJson:e.geoJSON,specialAreas:e.specialAreas}},t.dataTool={},t.zrender=Oo,t.number=Ql,t.format=mu,t.throttle=Lc,t.helper=Sg,t.matrix=pe,t.vector=It,t.color=Je,t.parseGeoJSON=Cg,t.parseGeoJson=Wg,t.util=Hg,t.graphic=Zg,t.List=Yf,t.Model=Cl,t.Axis=Gg,t.env=v});