!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).echarts={})}(this,function(t){"use strict";"undefined"!=typeof window?b=window.__DEV__:"undefined"!=typeof global&&(b=global.__DEV__);var A=b=void 0===b?!0:b,d=2311;var y="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0}:"undefined"==typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0}:function(t){var e={},n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge\/([\d.]+)/),t=/micromessenger/i.test(t);n&&(e.firefox=!0,e.version=n[1]);i&&(e.ie=!0,e.version=i[1]);o&&(e.edge=!0,e.version=o[1]);t&&(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)}}(navigator.userAgent);var g={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},m={"[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},v=Object.prototype.toString,b=Array.prototype,M=b.forEach,W=b.filter,F=b.slice,H=b.map,U=b.reduce,X={};function Y(t,e){"createCanvas"===t&&(q=null),X[t]=e}function N(t){if(null==t||"object"!=typeof t)return t;var e=t,n=v.call(t);if("[object Array]"===n){if(!ft(t))for(var e=[],i=0,o=t.length;i=this._maxSize&&0>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,1),Ie(t,e),e):void we(e,0,0,0,1):7===n.length?0<=(i=parseInt(n.substr(1),16))&&i<=16777215?(we(e,(16711680&i)>>16,(65280&i)>>8,255&i,1),Ie(t,e),e):void we(e,0,0,0,1):void 0;var i=n.indexOf("("),o=n.indexOf(")");if(-1!==i&&o+1===n.length){var a=n.substr(0,i),r=n.substr(i+1,o-(i+1)).split(","),s=1;switch(a){case"rgba":if(4!==r.length)return void we(e,0,0,0,1);s=ve(r.pop());case"rgb":return 3!==r.length?void we(e,0,0,0,1):(we(e,ye(r[0]),ye(r[1]),ye(r[2]),s),Ie(t,e),e);case"hsla":return 4!==r.length?void we(e,0,0,0,1):(r[3]=ve(r[3]),De(r,e),Ie(t,e),e);case"hsl":return 3!==r.length?void we(e,0,0,0,1):(De(r,e),Ie(t,e),e);default:return}}we(e,0,0,0,1)}}function De(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=ve(t[1]),o=ve(t[2]),i=o<=.5?o*(i+1):o+i-o*i,o=2*o-i;return we(e=e||[],fe(255*xe(o,i,n+1/3)),fe(255*xe(o,i,n)),fe(255*xe(o,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Ae(t,e){var n=Te(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,255=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},clone:function(){return new Z(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}}};var z=function(t){for(var e in Ye.call(this,t=t||{}),t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0},on=(z.prototype={constructor:z,isGroup:!0,type:"group",silent:!(Z.create=function(t){return new Z(t.x,t.y,t.width,t.height)}),children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,n=0;n>>1])<0?l=a:s=1+a;var h=i-s;switch(h){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;0>>1);0>>1);a(t,e[n+u])<0?l=u:r=u+1}return l}function un(L,k){var P,N,O=an,E=0,z=(L.length,[]);function e(t){var e=P[t],n=N[t],i=P[t+1],o=N[t+1],t=(N[t]=n+o,t===E-3&&(P[t+1]=P[t+2],N[t+1]=N[t+2]),E--,hn(L[i],L,e,n,0,k));if(e+=t,0!=(n-=t)&&0!==(o=ln(L[e+n-1],L,i,o,o-1,k)))if(n<=o){var a=e,r=n,t=i,s=o,l=0;for(l=0;lN[t+1])break;e(t)}},this.forceMergeRuns=function(){for(;1>=1;return t+e}(o);do{}while((a=rn(t,n,i,e))=e.maxIterations){t+=e.ellipsis;break}var s=0===r?function(t,e,n,i){for(var o=0,a=0,r=t.length;ap)return{lines:[],width:0,height:0};A.textWidth=Bn(A.text,w);var S,M,I,T=x.textWidth,D=null==T||"auto"===T;"string"==typeof T&&"%"===T.charAt(T.length-1)?(A.percentWidth=T,h.push(A),T=0):(D&&(T=A.textWidth,S=(S=x.textBackgroundColor)&&S.image)&&(M=void 0,kn(S="string"==typeof(I=S)?(M=An.get(I))&&M.image:I))&&(T=Math.max(T,S.width*b/S.height)),T+=M=_?_[1]+_[3]:0,null!=(I=null!=d?d-y:null)&&Io[0]){for(s=0;st);s++);r=i[o[s]]}o.splice(s+1,0,t),(i[t]=e).virtual||(r?(n=r.dom).nextSibling?l.insertBefore(e.dom,n.nextSibling):l.appendChild(e.dom):l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom))}},eachLayer:function(t,e){for(var n,i=this._zlevelList,o=0;o=a.length&&a.push({option:t})}}),a}function ro(t){var r=P();$i(t,function(t,e){var n=t.exist;n&&r.set(n.id,t)}),$i(t,function(t,e){var n=t.option;x(!n||null==n.id||!r.get(n.id)||r.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&r.set(n.id,t),t.keyInfo||(t.keyInfo={})}),$i(t,function(t,e){var n=t.exist,i=t.option,o=t.keyInfo;if(Ji(i)){if(o.name=null!=i.name?i.name+"":n?n.name:to+e,n)o.id=n.id;else if(null!=i.id)o.id=i.id+"";else for(var a=0;o.id="\0"+o.name+"\0"+a++,r.get(o.id););r.set(o.id,t)}})}function so(t){t=t.name;return t&&t.indexOf(to)}function lo(t){return Ji(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")}function ho(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?k(t.dataIndex)?I(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?k(t.name)?I(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0}function uo(){var e="__\0ec_inner_"+co+++"_"+Math.random().toFixed(5);return function(t){return t[e]||(t[e]={})}}var co=0;function po(o,a,r){nt(a)&&((t={})[a+"Index"]=0,a=t);var t=r&&r.defaultMainType,s=(!t||go(a,t+"Index")||go(a,t+"Id")||go(a,t+"Name")||(a[t+"Index"]=0),{});return $i(a,function(t,e){var n,i,t=a[e];"dataIndex"===e||"dataIndexInside"===e?s[e]=t:(n=(e=e.match(/^(\w+)(Index|Id|Name)$/)||[])[1],e=(e[2]||"").toLowerCase(),!n||!e||null==t||"index"===e&&"none"===t||r&&r.includeMainTypes&&f(r.includeMainTypes,n)<0||(i={mainType:n},"index"===e&&"all"===t||(i[e]=t),e=o.queryComponents(i),s[n+"Models"]=e,s[n+"Model"]=e[0]))}),s}function go(t,e){return t&&t.hasOwnProperty(e)}function fo(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}var mo=".",yo="___EC__COMPONENT__CONTAINER___";function vo(t){var e={main:"",sub:""};return t&&(t=t.split(mo),e.main=t[0]||"",e.sub=t[1]||""),e}function xo(t,i){(t.$constructor=t).extend=function(e){A&&E(i,function(t){e[t]||console.warn("Method `"+t+"` should be implemented"+(e.type?" in "+e.type:"")+".")});function t(){(e.$constructor||n).apply(this,arguments)}var n=this;return O(t.prototype,e),t.extend=this.extend,t.superCall=bo,t.superApply=So,a(t,this),t.superClass=n,t}}var _o=0;function wo(t){var e=["__\0is_clz",_o++,Math.random().toFixed(3)].join("_");t.prototype[e]=!0,A&&x(!t.isInstance,'The method "is" can not be defined.'),t.isInstance=function(t){return!(!t||!t[e])}}function bo(t,e){var n=ut(arguments,2);return this.superClass.prototype[e].apply(t,n)}function So(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Mo(n,t){t=t||{};var i,o={};n.registerClass=function(t,e){var n;return e&&(n=e,x(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal'),(e=vo(e)).sub?e.sub!==yo&&(function(t){var e=o[t.main];e&&e[yo]||(e=o[t.main]={___EC__COMPONENT__CONTAINER___:!0});return e}(e)[e.sub]=t):(A&&o[e.main]&&console.warn(e.main+" exists."),o[e.main]=t)),t},n.getClass=function(t,e,n){var i=o[t];if(i&&i[yo]&&(i=e?i[e]:null),n&&!i)throw new Error(e?"Component "+t+"."+(e||"")+" not exists. Load it first.":t+".type should be specified.");return i},n.getClassesByMainType=function(t){t=vo(t);var n=[],t=o[t.main];return t&&t[yo]?E(t,function(t,e){e!==yo&&n.push(t)}):n.push(t),n},n.hasClass=function(t){return t=vo(t),!!o[t.main]},n.getAllClassMainTypes=function(){var n=[];return E(o,function(t,e){n.push(e)}),n},n.hasSubTypes=function(t){t=vo(t);t=o[t.main];return t&&t[yo]},n.parseClassType=vo,t.registerWhenExtend&&(i=n.extend)&&(n.extend=function(t){var e=i.call(this,t);return n.registerClass(e,t.type)})}function Io(r){for(var t=0;tthis._ux||ya(e-this._yi)>this._uy||this._len<5;return this.addData(sa.L,t,e),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),n&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,n,i,o,a){return this.addData(sa.C,t,e,n,i,o,a),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,n,i,o,a):this._ctx.bezierCurveTo(t,e,n,i,o,a)),this._xi=o,this._yi=a,this},quadraticCurveTo:function(t,e,n,i){return this.addData(sa.Q,t,e,n,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},arc:function(t,e,n,i,o,a){return this.addData(sa.A,t,e,n,n,i,o-i,0,a?0:1),this._ctx&&this._ctx.arc(t,e,n,i,o,a),this._xi=ga(o)*n+t,this._yi=fa(o)*n+t,this},arcTo:function(t,e,n,i,o){return this._ctx&&this._ctx.arcTo(t,e,n,i,o),this},rect:function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(sa.R,t,e,n,i),this},closePath:function(){this.addData(sa.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t;for(var e=this._dashIdx=0,n=0;ne.length&&(this._expandData(),e=this.data);for(var n=0;nr||ya(d-o)>s||h===l-1)&&(t.lineTo(c,d),i=c,o=d);break;case sa.C:t.bezierCurveTo(a[h++],a[h++],a[h++],a[h++],a[h++],a[h++]),i=a[h-2],o=a[h-1];break;case sa.Q:t.quadraticCurveTo(a[h++],a[h++],a[h++],a[h++]),i=a[h-2],o=a[h-1];break;case sa.A:var c=a[h++],d=a[h++],p=a[h++],g=a[h++],f=a[h++],m=a[h++],y=a[h++],v=a[h++],x=g=Ca[i=0]+t&&r<=Ca[1]+t?u:0;(o=a?(e=i,i=Sa(o),Sa(e)):(i=Sa(i),Sa(o)))Math.PI/2&&c<1.5*Math.PI?-u:u)}return l}(g,f,y,v,v+x,_,S,o);l=Math.cos(v+x)*m+g,h=Math.sin(v+x)*y+f;break;case Ta.R:u=l=t[d++],c=h=t[d++],w=u+t[d++],b=c+t[d++];if(n){if(xa(u,c,w,c,e,i,o)||xa(w,c,w,b,e,i,o)||xa(w,b,u,b,e,i,o)||xa(u,b,u,c,e,i,o))return!0}else s=(s+=Ia(w,c,w,b,i,o))+Ia(u,b,u,c,i,o);break;case Ta.Z:if(n){if(xa(l,h,u,c,e,i,o))return!0}else s+=Ia(l,h,u,c,i,o);l=u,h=c}}return n||(a=h,r=c,Math.abs(a-r)Math.abs(i[1])?0=e[1])return n[1]}else{if(t>=e[0])return n[0];if(t<=e[1])return n[1]}else{if(t===e[0])return n[0];if(t===e[1])return n[1]}return(t-e[0])/o*a+n[0]}function G(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?t.replace(/^\s+/,"").replace(/\s+$/,"").match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function gs(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function fs(t){return t.sort(function(t,e){return t-e}),t}function ms(t){if(t=+t,isNaN(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n}function ys(t){var t=t.toString(),e=t.indexOf("e");return 0h&&(h=l[c],u=c);++r[u],l[u]=0,++s}return r[e]/o}var _s=9007199254740991;function ws(t){var e=2*Math.PI;return(t%e+e)%e}function bs(t){return-1e-4"'])/g,Os={"&":"&","<":"<",">":">",'"':""","'":"'"};function Es(t){return null==t?"":(t+"").replace(Ns,function(t,e){return Os[e]})}function zs(t,e){return"{"+t+(null==e?"":e)+"}"}var Rs=["a","b","c","d","e","f","g"];function Bs(t,e,n){var i=(e=k(e)?e:[e]).length;if(!i)return"";for(var o=e[0].$vars||[],a=0;a':'':""}function Ws(t,e){return"0000".substr(0,e-(t+="").length)+t}function Fs(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var e=Ms(e),n=n?"UTC":"",i=e["get"+n+"FullYear"](),o=e["get"+n+"Month"]()+1,a=e["get"+n+"Date"](),r=e["get"+n+"Hours"](),s=e["get"+n+"Minutes"](),l=e["get"+n+"Seconds"](),e=e["get"+n+"Milliseconds"]();return t=t.replace("MM",Ws(o,2)).replace("M",o).replace("yyyy",i).replace("yy",i%100).replace("dd",Ws(a,2)).replace("d",a).replace("hh",Ws(r,2)).replace("h",r).replace("mm",Ws(s,2)).replace("m",s).replace("ss",Ws(l,2)).replace("s",l).replace("SSS",Ws(e,3))}function Hs(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}var Zs=Fn,Co=Object.freeze({__proto__:null,addCommas:Ls,capitalFirst:Hs,encodeHTML:Es,formatTime:Fs,formatTpl:Bs,formatTplSimple:Vs,getTextRect:Vn,getTooltipMarker:Gs,normalizeCssArray:Ps,toCamelCase:ks,truncateText:Zs}),Us=E,Xs=["left","right","top","bottom","width","height"],Ys=[["width","left","right"],["height","top","bottom"]];function js(s,l,h,u,c){var d=0,p=0,g=(null==u&&(u=1/0),null==c&&(c=1/0),0);l.eachChild(function(t,e){var n,i,o,a=t.position,r=t.getBoundingRect(),e=l.childAt(e+1),e=e&&e.getBoundingRect();g="horizontal"===s?(i=r.width+(e?-e.x+r.x:0),u<(n=d+i)||t.newline?(d=0,n=i,p+=g+h,r.height):Math.max(g,r.height)):(i=r.height+(e?-e.y+r.y:0),c<(o=p+i)||t.newline?(d+=g+h,p=0,o=i,r.width):Math.max(g,r.width)),t.newline||(a[0]=d,a[1]=p,"horizontal"===s?d=n+h:p=o+h)})}var qs=js;function Ks(t,e,n){n=Ps(n||0);var i=e.width,o=e.height,a=G(t.left,i),r=G(t.top,o),e=G(t.right,i),s=G(t.bottom,o),l=G(t.width,i),h=G(t.height,o),u=n[2]+n[0],c=n[1]+n[3],d=t.aspect;switch(isNaN(l)&&(l=i-e-c-a),isNaN(h)&&(h=o-s-u-r),null!=d&&(isNaN(l)&&isNaN(h)&&(i/oe)return t[i];return t[n-1]}(o,n):i)||i)&&o.length?(n=o[a],t&&(r[t]=n),e.colorIdx=(a+1)%o.length,n):void 0)}};function hl(t){var e=t.get("coordinateSystem"),n={coordSysName:e,coordSysDims:[],axisMap:P(),categoryAxisMap:P()},e=ul[e];if(e)return e(t,n,n.axisMap,n.categoryAxisMap),n}var ul={cartesian2d:function(t,e,n,i){var o=t.getReferringComponents("xAxis")[0],a=t.getReferringComponents("yAxis")[0];if(A){if(!o)throw new Error('xAxis "'+st(t.get("xAxisIndex"),t.get("xAxisId"),0)+'" not found');if(!a)throw new Error('yAxis "'+st(t.get("xAxisIndex"),t.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],n.set("x",o),n.set("y",a),cl(o)&&(i.set("x",o),e.firstCategoryDimIndex=0),cl(a)&&(i.set("y",a),e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){t=t.getReferringComponents("singleAxis")[0];if(A&&!t)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],n.set("single",t),cl(t)&&(i.set("single",t),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var t=t.getReferringComponents("polar")[0],o=t.findAxisModel("radiusAxis"),t=t.findAxisModel("angleAxis");if(A){if(!t)throw new Error("angleAxis option not found");if(!o)throw new Error("radiusAxis option not found")}e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",t),cl(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),cl(t)&&(i.set("angle",t),e.firstCategoryDimIndex=1)},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,i,o,a){var r=t.ecModel,t=r.getComponent("parallel",t.get("parallelIndex")),s=i.coordSysDims=t.dimensions.slice();E(t.parallelAxisIndex,function(t,e){var t=r.getComponent("parallelAxis",t),n=s[e];o.set(n,t),cl(t)&&null==i.firstCategoryDimIndex&&(a.set(n,t),i.firstCategoryDimIndex=e)})}};function cl(t){return"category"===t.get("type")}var dl="original",pl="arrayRows",gl="objectRows",fl="keyedColumns",ml="unknown",yl="typedArray",vl="column",xl="row";function _l(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===fl?{}:[]),this.sourceFormat=t.sourceFormat||ml,this.seriesLayoutBy=t.seriesLayoutBy||vl,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&P(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}_l.seriesDataToSource=function(t){return new _l({data:t,sourceFormat:ot(t)?yl:dl,fromDataset:!1})},wo(_l);var wl=uo();function bl(t){var e=t.option,n=e.data,i=ot(n)?yl:dl,o=!1,a=e.seriesLayoutBy,r=e.sourceHeader,s=e.dimensions,l=function(t){var e=t.option;if(!e.data)return t.ecModel.getComponent("dataset",e.datasetIndex||0)}(t),h=(l&&(n=(h=l.option).source,i=wl(l).sourceFormat,o=!0,a=a||h.seriesLayoutBy,null==r&&(r=h.sourceHeader),s=s||h.dimensions),function(t,e,n,i,o){if(!t)return{dimensionsDefine:Sl(o)};var a,r,s,l;e===pl?("auto"===i||null==i?Ml(function(t){null!=t&&"-"!==t&&(nt(t)?null==r&&(r=1):r=0)},n,t,10):r=i?1:0,o||1!==r||(o=[],Ml(function(t,e){o[e]=null!=t?t:""},n,t)),a=o?o.length:n===xl?t.length:t[0]?t[0].length:null):e===gl?o||(o=function(t){var e,n=0;for(;n=this._outputDueEnd),this._outputDueEnd=r}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},Sh={reset:function(t,e,n,i){xh=t,vh=e,_h=n,wh=i,bh=Math.ceil(wh/_h),Sh.next=1<_h&&0":"")+r.join(a?"
":", ")):n(l?ph(s,e,i[0]):u?h[0]:h));function p(t,e){var n,i,e=s.getDimensionInfo(e);e&&!1!==e.otherDims.tooltip&&(n=e.type,i=Gs({color:c,type:"subItem"}),i=(a?i+Es(e.displayName||"-")+": ":"")+Es("ordinal"===n?t+"":"time"===n?o?"":Fs("yyyy/MM/dd hh:mm:ss",t):Ls(t)))&&r.push(i)}l=Gs(c),i=s.getName(e),u=this.name,u=(u=so(this)?u:"")?Es(u)+(o?": ":"
"):"";return o?l+u+d:u+l+(i?Es(i)+": "+d:d)},isAnimationEnabled:function(){var t;return!(y.node||(t=this.getShallow("animation"))&&this.getData().count()>this.getShallow("animationThreshold"))&&t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,n){var i=this.ecModel;return ll.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},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 Lh(t){var e,n,i=t.name;so(t)||(t.name=(t=(e=(t=t).getRawData()).mapDimension("seriesName",!0),n=[],E(t,function(t){t=e.getDimensionInfo(t);t.displayName&&n.push(t.displayName)}),n.join(" ")||i))}function kh(t){return t.model.getRawData().count()}function Ph(t){t=t.model;return t.setData(t.getRawData().cloneShallow()),Nh}function Nh(t,e){t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Oh(e,n){E(e.CHANGABLE_METHODS,function(t){e.wrapMethod(t,L(Eh,n))})}function Eh(t){t=zh(t);t&&t.setOutputEnd(this.count())}function zh(t){var e,n=(t.ecModel||{}).scheduler,n=n&&n.getPipeline(t.uid);if(n)return(n=n.currentTask)&&(e=n.agentStubMap)?e.get(t.uid):n}i(Ch,ss),i(Ch,ll);var Rh=function(){this.group=new z,this.uid=ds("viewComponent")},n=(Rh.prototype={constructor:Rh,init:function(t,e){},render:function(t,e,n,i){},dispose:function(){}},Rh.prototype);function Bh(){var a=uo();return function(t){var e=a(t),t=t.pipelineContext,n=e.large,i=e.progressiveRender,o=e.large=t.large,e=e.progressiveRender=t.progressiveRender;return!!(n^o||i^e)&&"reset"}}n.updateView=n.updateLayout=n.updateVisual=function(t,e,n,i){},xo(Rh),Mo(Rh,{registerWhenExtend:!0});var Vh=uo(),Gh=Bh();function Wh(){this.group=new z,this.uid=ds("viewChart"),this.renderTask=mh({plan:Zh,reset:Uh}),this.renderTask.context={view:this}}e=Wh.prototype={type:"chart",init:function(t,e){},render:function(t,e,n,i){},highlight:function(t,e,n,i){Hh(t.getData(),i,"emphasis")},downplay:function(t,e,n,i){Hh(t.getData(),i,"normal")},remove:function(t,e){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null};function Fh(t,e){if(t&&(t.trigger(e),"group"===t.type))for(var n=0;nh?e+=d(p("data.partialData"),{displayCnt:h}):e+=p("data.allData"),[]),s=0;sn.blockIndex?n.step:null,modBy:null!=(t=i&&i.modDataCount)?Math.ceil(t/e):null,modDataCount:t}},e.getPipeline=function(t){return this._pipelineMap.get(t)},e.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),e=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),i="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:e,modDataCount:i,large:o}},e.restorePipelines=function(t){var i=this,o=i._pipelineMap=P();t.eachSeries(function(t){var e=t.getProgressive(),n=t.uid;o.set(n,{id:n,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:e&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(e||700),count:0}),gu(i,t,t.dataTask)})},e.prepareStageTasks=function(){var x=this._stageTaskMap,_=this.ecInstance.getModel(),w=this.api;E(this._allHandlers,function(t){var n,i,o,a,r,s,l,e,h,u,c,d,p,g,f,m=x.get(t.uid)||x.set(t.uid,[]);function y(t){var e=t.uid,e=r.get(e)||r.set(e,mh({plan:hu,reset:uu,count:pu}));e.context={model:t,ecModel:o,api:a,useClearVisual:i.isVisual&&!i.isLayout,plan:i.plan,reset:i.reset,scheduler:n},gu(n,t,e)}function v(t){var e=t.uid,n=c.get(e);n||(n=c.set(e,mh({reset:ru,onDirty:lu})),u.dirty()),n.context={model:t,overallProgress:p,modifyOutputEnd:g},n.agent=u,n.__block=p,gu(l,t,n)}t.reset&&(n=this,i=t,o=_,a=w,r=(e=m).seriesTaskMap||(e.seriesTaskMap=P()),e=i.seriesType,h=i.getTargetSeries,i.createOnAllSeries?o.eachRawSeries(y):e?o.eachRawSeriesByType(e,y):h&&h(o,a).each(y),s=n._pipelineMap,r.each(function(t,e){s.get(e)||(t.dispose(),r.removeKey(e))})),t.overallReset&&(l=this,e=t,h=_,t=w,(u=(m=m).overallTask=m.overallTask||mh({reset:au})).context={ecModel:h,api:t,overallReset:e.overallReset,scheduler:l},c=u.agentStubMap=u.agentStubMap||P(),m=e.seriesType,d=e.getTargetSeries,p=!0,g=e.modifyOutputEnd,m?h.eachRawSeriesByType(m,v):d?d(h,t).each(v):(p=!1,E(h.getSeries(),v)),f=l._pipelineMap,c.each(function(t,e){f.get(e)||(t.dispose(),u.dirty(),c.removeKey(e))}))},this)},e.prepareView=function(t,e,n,i){var o=t.renderTask,a=o.context;a.model=e,a.ecModel=n,a.api=i,o.__block=!t.incrementalPrepareRender,gu(this,e,o)},e.performDataProcessorTasks=function(t,e){iu(this,this._dataProcessorHandlers,t,e,{block:!0})},e.performVisualTasks=function(t,e,n){iu(this,this._visualHandlers,t,e,n)},e.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e|=t.dataTask.perform()}),this.unfinished|=e},e.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}}while(e=e.getUpstream())})};var ou=e.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)};function au(t){t.overallReset(t.ecModel,t.api,t.payload)}function ru(t,e){return t.overallProgress&&su}function su(){this.agent.dirty(),this.getDownstream().dirty()}function lu(){this.agent&&this.agent.dirty()}function hu(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)}function uu(t){t.useClearVisual&&t.data.clearAllVisual();t=t.resetDefines=eo(t.reset(t.model,t.ecModel,t.api,t.payload));return 1i.get("hoverLayerThreshold")&&!y.node&&n.traverse(function(t){t.isGroup||(t.useHoverLayer=!0)}),tu(o._zr.dom,t)}function Yu(e,n){Su(tc,function(t){t(e,n)})}o.resize=function(t){A&&bu(!this[Cu],"`resize` should not be called during main process."),this._zr.resize(t);var e=this._model;this._loadingFX&&this._loadingFX.resize(),e&&(e=e.resetOption("media"),t=t&&t.silent,this[Cu]=!0,e&&Ru(this),zu.update.call(this),this[Cu]=!1,Wu.call(this,t),Fu.call(this,t))},o.showLoading=function(t,e){var n;Iu(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),ic[t]?(e=ic[t](this._api,e),n=this._zr,this._loadingFX=e,n.add(e)):A&&console.warn("Loading effects "+t+" not exists.")},o.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},o.makeActionFromEvent=function(t){var e=O({},t);return e.type=$u[t.type],e},o.dispatchAction=function(t,e){Iu(e)||(e={silent:!!e}),Ku[t.type]&&this._model&&(this[Cu]?this._pendingActions.push(t):(Gu.call(this,t,e.silent),e.flush?this._zr.flush(!0):!1!==e.flush&&y.browser.weChat&&this._throttledZrFlush(),Wu.call(this,e.silent),Fu.call(this,e.silent)))},o.appendData=function(t){var e=t.seriesIndex,e=this.getModel().getSeriesByIndex(e);A&&bu(t.data&&e),e.appendData(t),this._scheduler.unfinished=!0},o.on=Pu("on"),o.off=Pu("off"),o.one=Pu("one");var ju=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function qu(t,e){var n=t.get("z"),i=t.get("zlevel");e.group.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=i)&&(t.zlevel=i)})}o._initEvents=function(){Su(ju,function(o){this._zr.on(o,function(t){var e,n=this.getModel(),i=t.target;"globalout"===o?e={}:i&&null!=i.dataIndex?e=(n=i.dataModel||n.getSeriesByIndex(i.seriesIndex))&&n.getDataParams(i.dataIndex,i.dataType)||{}:i&&i.eventData&&(e=O({},i.eventData)),e&&(e.event=t,e.type=o,this.trigger(o,e))},this)},this),Su($u,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},o.isDisposed=function(){return this._disposed},o.clear=function(){this.setOption({series:[]},!0)},o.dispose=function(){var e,n;this._disposed?A&&console.warn("Instance "+this.id+" has been disposed"):(this._disposed=!0,fo(this.getDom(),lc,""),e=this._api,n=this._model,Su(this._componentsViews,function(t){t.dispose(n,e)}),Su(this._chartsViews,function(t){t.dispose(n,e)}),this._zr.dispose(),delete oc[this.id])},i(Ou,Ft);var Ku={},$u={},Ju=[],Qu=[],tc=[],ec=[],nc={},ic={},oc={},ac={},rc=+new Date,sc=+new Date,lc="_echarts_instance_",hc={};function uc(t){ac[t]=!1}o=uc;function cc(t){return oc[e=lc,(t=t).getAttribute?t.getAttribute(e):t[e]];var e}function dc(t,e){nc[t]=e}function pc(t){Qu.push(t)}function gc(t,e){vc(Ju,t,e,1e3)}function s(t,e,n){"function"==typeof e&&(n=e,e="");var i=Iu(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,bu(ku.test(i)&&ku.test(e)),Ku[i]||(Ku[i]={action:n,actionInfo:t}),$u[e]=i}function fc(t,e){Ol.register(t,e)}function mc(t,e){vc(ec,t,e,1e3,"layout")}function yc(t,e){vc(ec,t,e,3e3,"visual")}function vc(t,e,n,i,o){if((Mu(e)||Iu(e))&&(n=e,e=i),A){if(isNaN(e)||null==e)throw new Error("Illegal priority");Su(t,function(t){bu(t.__raw!==n)})}i=nu.wrapStageHandler(n,o);i.__prio=e,i.__raw=n,t.push(i)}function xc(t,e){ic[t]=e}function _c(t){return h.extend(t)}function wc(t){return Rh.extend(t)}function bc(t){return Ch.extend(t)}function Sc(t){return Wh.extend(t)}function Mc(t){return hc[t]}yc(2e3,n),pc(eh),gc(5e3,function(t){var i=P();t.eachSeries(function(t){var e,n=t.get("stack");n&&(n=i.get(n)||i.set(n,[]),(t={stackResultDimension:(e=t.getData()).getCalculationInfo("stackResultDimension"),stackedOverDimension:e.getCalculationInfo("stackedOverDimension"),stackedDimension:e.getCalculationInfo("stackedDimension"),stackedByDimension:e.getCalculationInfo("stackedByDimension"),isStackedByIndex:e.getCalculationInfo("isStackedByIndex"),data:e,seriesModel:t}).stackedDimension)&&(t.isStackedByIndex||t.stackedByDimension)&&(n.length&&e.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(t))}),i.each(nh)}),xc("default",function(i,t){C(t=t||{},{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var o=new B({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4}),a=new pr({shape:{startAngle:-eu/2,endAngle:-eu/2+.1,r:10},style:{stroke:t.color,lineCap:"round",lineWidth:5},zlevel:t.zlevel,z:10001}),r=new B({style:{fill:"none",text:t.text,textPosition:"right",textDistance:10,textFill:t.textColor},zlevel:t.zlevel,z:10001});return a.animateShape(!0).when(1e3,{endAngle:3*eu/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*eu/2}).delay(300).start("circularInOut"),(t=new z).add(a),t.add(r),t.add(o),t.resize=function(){var t=i.getWidth()/2,e=i.getHeight()/2,n=(a.setShape({cx:t,cy:e}),a.shape.r);r.setShape({x:t-n,y:e-n,width:2*n,height:2*n}),o.setShape({x:0,y:0,width:i.getWidth(),height:i.getHeight()})},t.resize(),t}),s({type:"highlight",event:"highlight",update:"highlight"},vt),s({type:"downplay",event:"downplay",update:"downplay"},vt),dc("light",e),dc("dark",wu);function Ic(t){return t}function Tc(t,e,n,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||Ic,this._newKeyGetter=i||Ic,this.context=o}function Dc(t,e,n,i,o){for(var a=0;aP[1]&&(P[1]=N)}o.pure||(T=h[I],M&&null==T&&(null!=M.name?h[I]=T=M.name:null!=n&&(D=a[A=r[n]][C])&&(T=D[L],D=l[A].ordinalMeta)&&D.categories.length&&(T=D.categories[T])),null==(A=null==M?null:M.id)&&null!=T&&(d[T]=d[T]||0,0=this._rawCount||t<0)){var e=this._indices,n=e[t];if(null!=n&&nt))return a;o=a-1}}}return-1},e.indicesOfNearest=function(t,e,n){var i=[];if(this._storage[t]){null==n&&(n=1/0);for(var o=Number.MAX_VALUE,a=-1,r=0,s=this.count();rt[I][1])&&(M=!1)}M&&(a[r++]=this.getRawIndex(m))}return r_[1]&&(_[1]=x)}}}return i},e.downSample=function(t,e,n,i){for(var o=Uc(this,[t]),a=o._storage,r=[],s=Math.floor(1/e),l=a[t],h=this.count(),u=this._chunkSize,c=o._rawExtent[t],d=new(Oc(this))(h),p=0,g=0;gc[1]&&(c[1]=v),d[p++]=x}return o._count=p,o._indices=d,o.getRawIndex=Wc,o},e.getItemModel=function(t){var e=this.hostModel;return new w(this.getRawDataItem(t),e,e&&e.ecModel)},e.diff=function(e){var n=this;return new Tc(e?e.getIndices():[],this.getIndices(),function(t){return Fc(e,t)},function(t){return Fc(n,t)})},e.getVisual=function(t){var e=this._visual;return e&&e[t]},e.setVisual=function(t,e){if(Lc(t))for(var n in t)t.hasOwnProperty(n)&&this.setVisual(n,t[n]);else this._visual=this._visual||{},this._visual[t]=e},e.setLayout=function(t,e){if(Lc(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},e.getLayout=function(t){return this._layout[t]},e.getItemLayout=function(t){return this._itemLayouts[t]},e.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?O(this._itemLayouts[t]||{},e):e},e.clearItemLayouts=function(){this._itemLayouts.length=0},e.getItemVisual=function(t,e,n){t=this._itemVisuals[t],t=t&&t[e];return null!=t||n?t:this.getVisual(e)},e.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{},o=this.hasItemVisual;if(this._itemVisuals[t]=i,Lc(e))for(var a in e)e.hasOwnProperty(a)&&(i[a]=e[a],o[a]=!0);else i[e]=n,o[e]=!0},e.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};function Yc(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType}function jc(t,e,n){_l.isInstance(e)||(e=_l.seriesDataToSource(e)),n=n||{},t=(t||[]).slice();for(var i,o,a,r,s=(n.dimsDef||[]).slice(),l=P(n.encodeDef),h=P(),u=P(),c=[],d=(i=e,o=t,a=n.dimCount,r=Math.max(i.dimensionsDetectCount||1,o.length,s.length,a||0),E(o,function(t){t=t.dimsDef;t&&(r=Math.max(r,t.length))}),r),p=0;p=e[0]&&t<=e[1]},ed.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},ed.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},ed.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},ed.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},ed.prototype.getExtent=function(){return this._extent.slice()},ed.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},ed.prototype.isBlank=function(){return this._isBlank},ed.prototype.setBlank=function(t){this._isBlank=t},ed.prototype.getLabel=null,xo(ed),Mo(ed,{registerWhenExtend:!0}),nd.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&I(e,od);return new nd({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})};wu=nd.prototype;function id(t){return t._map||(t._map=P(t.categories))}function od(t){return T(t)&&null!=t.value?t.value:t+""}wu.getOrdinal=function(t){return id(this).get(t)},wu.parseAndCollect=function(t){var e,n,i=this._needCollect;return"string"==typeof t||i?(i&&!this._deduplication?(n=this.categories.length,this.categories[n]=t):null==(n=(e=id(this)).get(t))&&(i?(n=this.categories.length,this.categories[n]=t,e.set(t,n)):n=NaN),n):t};var ad=ed.prototype,rd=ed.extend({type:"ordinal",init:function(t,e){t&&!k(t)||(t=new nd({categories:t})),this._ordinalMeta=t,this._extent=e||[0,t.categories.length-1]},parse:function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},contain:function(t){return t=this.parse(t),ad.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return ad.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(ad.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push(n),n++;return t},getLabel:function(t){if(!this.isBlank())return this._ordinalMeta.categories[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:vt,niceExtent:vt}),sd=(rd.create=function(){return new rd},gs);function ld(t){return ys(t)+2}function hd(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function ud(t,e){isFinite(t[0])||(t[0]=e[0]),isFinite(t[1])||(t[1]=e[1]),hd(t,0,e),hd(t,1,e),t[0]>t[1]&&(t[0]=t[1])}var cd=gs,dd=ed.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),dd.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=ld(t)},getTicks:function(){var t=this._interval,e=this._extent,n=this._niceExtent,i=this._intervalPrecision,o=[];if(t){e[0](o.length?o[o.length-1]:n[1])&&o.push(e[1])}return o},getLabel:function(t,e){return null==t?"":(null==(e=e&&e.precision)?e=ys(t)||0:"auto"===e&&(e=this._intervalPrecision),Ls(t=cd(t,e,!0)))},niceTicks:function(t,e,n){t=t||5;var i,o=this._extent,a=o[1]-o[0];isFinite(a)&&(a<0&&o.reverse(),a=t,t=e,e=n,n={},i=(o=o)[1]-o[0],i=n.interval=Ds(i/a,!0),null!=t&&i>>1;t[o][1]>1^-(1&s),l=(l=t.charCodeAt(r+1)-64)>>1^-(1&l);i.push([(o=s+=o)/n,(a=l+=a)/n])}return i}function ap(t){var e=t;if(e.UTF8Encoding){for(var n=e.UTF8Scale,i=(null==n&&(n=1024),e.features),o=0;os[1],h(n[0].coord,s[0])&&(r?n[0].coord=s[0]:n.shift()),r&&h(s[0],n[0].coord)&&n.unshift({coord:s[0]}),h(s[1],i.coord)&&(r?i.coord=s[1]:n.pop()),r)&&h(i.coord,s[1])&&n.push({coord:s[1]}),l},getViewLabels:function(){return sp(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),e=e[1]-e[0]+(this.onBand?1:0),t=(0===e&&(e=1),Math.abs(t[1]-t[0]));return Math.abs(t)/e},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){var t=this,e=(a=(i=t).getLabelModel(),{axisRotate:i.getRotate?i.getRotate():i.isHorizontal&&!i.isHorizontal()?90:0,labelRotate:a.get("rotate")||0,font:a.getFont()}),n=Zd(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,o=(a=t.scale).getExtent(),a=a.count();if(o[1]-o[0]<1)return 0;for(var r=1,s=(40e[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},a(Sp,mp);var l={show:!0,zlevel: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:"#333",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:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},Mp={},Ip=(Mp.categoryAxis=p({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},l),Mp.valueAxis=p({boundaryGap:[0,0],splitNumber:5},l),Mp.timeAxis=C({scale:!0,min:"dataMin",max:"dataMax"},Mp.valueAxis),Mp.logAxis=C({scale:!0,logBase:10},Mp.valueAxis),["value","category","time","log"]);function Tp(a,t,r,e){E(Ip,function(o){t.extend({type:a+"Axis."+o,mergeDefaultAndTheme:function(t,e){var n=this.layoutMode,i=n?Qs(t):{};p(t,e.getTheme().get(o+"Axis")),p(t,this.getDefaultOption()),t.type=r(a,t),n&&Js(t,i,n)},optionUpdated:function(){"category"===this.option.type&&(this.__ordinalMeta=nd.createByAxisModel(this))},getCategories:function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:j([{},Mp[o+"Axis"],e],!0)})}),h.registerSubTypeDefaulter(a+"Axis",L(r,a))}var Dp=h.extend({type:"cartesian2dAxis",axis:null,init:function(){Dp.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){Dp.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){Dp.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function Ap(t,e){return e.type||(e.data?"category":"value")}p(Dp.prototype,Yd);wu={offset:0};function Cp(t,e){return t.getCoordSysModel()===e}function Lp(t,e,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,n),this.model=t}Tp("x",Dp,Ap,wu),Tp("y",Dp,Ap,wu),h.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});l=Lp.prototype;function kp(t,e,n){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,o=t[e],t=n.model,e=t.get("axisLine.onZero"),n=t.get("axisLine.onZeroAxisIndex");if(e)if(null!=n)Pp(o[n])&&(i=o[n]);else for(var a in o)if(o.hasOwnProperty(a)&&Pp(o[a])){i=o[a];break}}function Pp(t){return t&&"category"!==t.type&&"time"!==t.type&&(e=(t=(t=t).scale.getExtent())[0],t=t[1],!(0a[1]?-1:1,e=["start"===s?a[0]-e*r:"end"===s?a[1]+e*r:(a[0]+a[1])/2,ng(s)?l.labelOffset+i*r:0],null!=(r=h.get("nameRotate"))&&(r=r*jp/180),ng(s)?n=Jp(l.rotation,null!=r?r:l.rotation,i):(n=function(t,e,n,i){var o,n=ws(n-t.rotation),t=i[0]>i[1],i="start"===e&&!t||"start"!==e&&t;e=bs(n-jp/2)?(o=i?"bottom":"top","center"):bs(n-1.5*jp)?(o=i?"top":"bottom","center"):(o="middle",n<1.5*jp&&jp/2h[1]&&h.reverse(),(s=null==s||s>h[1]?h[1]:s)i[0]&&(i[0]=a[0]),a[1]>i[1]&&(i[1]=a[1])}return{min:e?n:i,max:e?i:n}}var Zg=r.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:Qa(r.prototype.brush),buildPath:function(t,e){var n=e.points,i=0,o=n.length,a=Hg(n,e.smoothConstraint);if(e.connectNulls){for(;0n[0]?1:-1,n[0]+=e*t,n[1]-=e*t),n}function qg(t,e,n,i){return"polar"===t.type?(a=e,r=n,s=i,l=(o=t).getAngleAxis(),(h=o.getRadiusAxis().getExtent().slice())[0]>h[1]&&h.reverse(),u=l.getExtent(),c=Math.PI/180,r&&(h[0]-=.5,h[1]+=.5),r=new tr({shape:{cx:gs(o.cx,1),cy:gs(o.cy,1),r0:gs(h[0],1),r:gs(h[1],1),startAngle:-u[0]*c,endAngle:-u[1]*c,clockwise:l.inverse}}),a&&(r.shape.endAngle=-u[0]*c,$r(r,{shape:{endAngle:-u[1]*c}},s)),r):(o=e,h=n,l=i,u=jg((a=t).getAxis("x")),c=jg(a.getAxis("y")),a=a.getBaseAxis().isHorizontal(),s=Math.min(u[0],u[1]),r=Math.min(c[0],c[1]),u=Math.max(u[0],u[1])-s,c=Math.max(c[0],c[1])-r,h?(s-=.5,u+=.5,r-=.5,c+=.5):(h=l.get("lineStyle.width")||2,h=l.get("clipOverflow")?h/2:Math.max(u,c),a?(r-=h,c+=2*h):(s-=h,u+=2*h)),h=new B({shape:{x:s,y:r,width:u,height:c}}),o&&(h.shape[a?"width":"height"]=0,$r(h,{shape:{width:u,height:c}},l)),h);var o,a,r,s,l,h,u,c}function Kg(t,e,n){for(var e=e.getBaseAxis(),i="x"===e.dim||"radius"===e.dim?0:1,o=[],a=0;ai)return;return 1}(t,e))return o=e.mapDimension(t.dim),a={},E(t.getViewLabels(),function(t){a[t.tickValue]=1}),function(t){return!a.hasOwnProperty(e.get(o,t))}}}function Jg(t,s,l){return{seriesType:t,performRawSeries:!0,reset:function(a,t,e){var n=a.getData(),i=a.get("symbol")||s,r=a.get("symbolSize"),o=a.get("symbolKeepAspect");if(n.setVisual({legendSymbol:l||i,symbol:i,symbolSize:r,symbolKeepAspect:o}),!t.isSeriesFiltered(a))return{dataEach:n.hasItemOption||"function"==typeof r?function(t,e){var n,i,o;"function"==typeof r&&(o=a.getRawValue(e),n=a.getDataParams(e),t.setItemVisual(e,"symbolSize",r(o,n))),t.hasItemOption&&(n=(o=t.getItemModel(e)).getShallow("symbol",!0),i=o.getShallow("symbolSize",!0),o=o.getShallow("symbolKeepAspect",!0),null!=n&&t.setItemVisual(e,"symbol",n),null!=i&&t.setItemVisual(e,"symbolSize",i),null!=o)&&t.setItemVisual(e,"symbolKeepAspect",o)}:null}}}}function Qg(t){return{seriesType:t,plan:Bh(),reset:function(t){var u,c,e=t.getData(),d=t.coordinateSystem,p=t.pipelineContext.large;if(d)return u=I(d.dimensions,function(t){return e.mapDimension(t)}).slice(0,2),c=u.length,t=e.getCalculationInfo("stackResultDimension"),Jc(e,u[0])&&(u[0]=t),Jc(e,u[1])&&(u[1]=t),c&&{progress:function(t,e){for(var n,i,o=t.end-t.start,a=p&&new Float32Array(o*c),r=t.start,s=0,l=[],h=[];re[l-1].coord&&(e.reverse(),h.reverse()),e[0].coord-10),c=e[l-1].coord+10,d=c-u;if(d<.001)return"transparent";E(e,function(t){t.offset=(t.coord-u)/d}),e.push({offset:l?e[l-1].offset:.5,color:h[1]||"transparent"}),e.unshift({offset:l?e[0].offset:.5,color:h[0]||"transparent"});l=new ur(0,0,0,0,e,!0);return l[a]=u,l[a+"2"]=c,l}A&&console.warn("Visual map on line style only support x or y dimension.")}}(a,i)||a.getVisual("color")),n=(d.useStyle(C(r.getLineStyle(),{fill:"none",stroke:u,lineJoin:"bevel"})),t.get("smooth"),Yg(t.get("smooth")));d.setShape({smooth:n,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),p&&(x=a.getCalculationInfo("stackedOnSeries"),c=0,p.useStyle(C(s.getAreaStyle(),{fill:u,opacity:.7,lineJoin:"bevel"})),x&&(c=Yg(x.get("smooth"))),p.setShape({smooth:n,stackedOnSmooth:c,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})),this._data=a,this._coordSys=i,this._stackedOnPoints=v,this._points=l,this._step=h,this._valueOrigin=y},dispose:function(){},highlight:function(t,e,n,i){var o=t.getData(),a=ho(o,i);if(!(a instanceof Array)&&null!=a&&0<=a){var r=o.getItemGraphicEl(a);if(!r){var s=o.getItemLayout(a);if(!s)return;(r=new vg(o,a)).position=s,r.setZ(t.get("zlevel"),t.get("z")),r.ignore=isNaN(s[0])||isNaN(s[1]),r.__temp=!0,o.setItemGraphicEl(a,r),r.stopSymbolAnimation(!0),this.group.add(r)}r.highlight()}else Wh.prototype.highlight.call(this,t,e,n,i)},downplay:function(t,e,n,i){var o,a=t.getData(),r=ho(a,i);null!=r&&0<=r?(o=a.getItemGraphicEl(r))&&(o.__temp?(a.setItemGraphicEl(r,null),this.group.remove(o)):o.downplay()):Wh.prototype.downplay.call(this,t,e,n,i)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new Zg({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e},_newPolygon:function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Ug({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(n),this._polygon=n},_updateAnimation:function(t,e,n,i,o,a){for(var r,s=this._polyline,l=this._polygon,h=t.hostModel,e=function(t,e,n,i,o,a,r,s){l=[],e.diff(t).add(function(t){l.push({cmd:"+",idx:t})}).update(function(t,e){l.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){l.push({cmd:"-",idx:t})}).execute();for(var l,h=l,u=[],c=[],d=[],p=[],g=[],f=[],m=[],y=Lg(o,e,r),v=Lg(a,t,s),x=0;xe&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;no[n-1].y+o[n-1].height));n--);}function l(t,e,n,i,o,a){for(var r,s,l,h=e?Number.MAX_VALUE:0,u=0,c=t.length;uo[i].y+o[i].height)return s(i,n/2);s(e-1,n/2)}(g,c,-h),u=o[g].y+o[g].height;r-u<0&&s(c-1,u-r);for(g=0;g=e?p:d).push(o[g]);l(d,!1,t,e,n,i),l(p,!0,t,e,n,i)}function cf(m,y,t,e){var v,x,_=m.getData(),w=[],b=!1;if(_.each(function(t){var e,n,i,o=_.getItemLayout(t),a=_.getItemModel(t),r=a.getModel("label"),s=r.get("position")||a.get("emphasis.label.position"),a=a.getModel("labelLine"),l=a.get("length"),a=a.get("length2"),h=(o.startAngle+o.endAngle)/2,u=Math.cos(h),c=Math.sin(h),d=(v=o.cx,x=o.cy,"inside"===s||"inner"===s),p="center"===s?(e=o.cx,n=o.cy,"center"):(e=(f=(d?(o.r+o.r0)/2*u:o.r*u)+v)+3*u,n=(p=(d?(o.r+o.r0)/2*c:o.r*c)+x)+3*c,d||(e=(g=(i=f+u*(l+y-o.r))+(u<0?-1:1)*a)+(u<0?-5:5),i=[[f,p],[i,n=f=p+c*(l+y-o.r)],[g,f]]),d?"center":0=e.r0}});var df=2*Math.PI,pf=Math.PI/180;function gf(t){return{seriesType:t,reset:function(t,e){var i,o=e.findComponents({mainType:"legend"});o&&o.length&&(i=t.getData()).filterSelf(function(t){for(var e=i.getName(t),n=0;no[0]&&isFinite(i)&&isFinite(o[0]););else{t=r.getTicks().length-1,a=(u"+I(t,function(t,e){var n=o.get(o.mapDimension(t.dim),i);return Es(t.name+" : "+n)}).join("
")},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}));Sc({type:"radar",render:function(l,t,e){var n=l.coordinateSystem,m=this.group,y=l.getData(),r=this._data;function h(t,e){var n=t.getItemVisual(e,"symbol")||"circle",i=t.getItemVisual(e,"color");if("none"!==n)return e=t=k(t=t.getItemVisual(e,"symbolSize"))?t:[+t,+t],(t=Qd(n,-1,-1,2,2,i)).attr({style:{strokeNoScale:!0},z2:100,scale:[e[0]/2,e[1]/2]}),t}function s(t,e,n,i,o,a){n.removeAll();for(var r=0;r=u[0]&&t<=u[1]}):(o=t,a=e.getPieceList(),r=e.option.selected,s=o[1]-o[0],l=(a=I(a,function(t){return{interval:[(t.interval[0]-o[0])/s,(t.interval[1]-o[0])/s]}})).length,h=0,function(t){for(var e=h;ee.x)||(s-=Math.PI)),h.setStyle({textPosition:l?"left":"right",textRotation:-s,textOrigin:"center",verticalAlign:"middle"})),u.parentNode&&u.parentNode!==c&&(V(t=(t=n.__edge)||(n.__edge=new dr({shape:um(a,p,p),style:C({opacity:0},a.lineStyle)})),{shape:um(a,d,g),style:{opacity:1}},o),i.add(t))}function hm(t,e,n,i,o,a){for(var r,s=t.tree.getNodeByDataIndex(e),l=t.tree.root,h=s.getModel(),a=sm(s,h,a),u=s.parentNode!==l&&s.parentNode||s;null==(r=u.getLayout());)u=u.parentNode!==l&&u.parentNode||u;V(n,{position:[r.x+1,r.y+1]},o,function(){i.remove(n),t.setItemGraphicEl(e,null)}),n.fadeOut(null,{keepLabel:!0});var c=n.__edge;c&&V(c,{shape:um(a,r,r),style:{opacity:0}},o,function(){i.remove(c)})}function um(t,e,n){var i,o,a,r,s,l,h,u,c,d,p,g,f=t.orient;return"radial"===t.layout?(c=e.rawX,d=e.rawY,p=n.rawX,g=n.rawY,s=nm(c,d),l=nm(c,d+(g-d)*t.curvature),h=nm(p,g+(d-g)*t.curvature),u=nm(p,g),{x1:s.x,y1:s.y,x2:u.x,y2:u.y,cpx1:l.x,cpy1:l.y,cpx2:h.x,cpy2:h.y}):(c=e.x,d=e.y,p=n.x,g=n.y,"LR"!==f&&"RL"!==f||(i=c+(p-c)*t.curvature,o=d,a=p+(c-p)*t.curvature,r=g),"TB"!==f&&"BT"!==f||(i=c,o=d+(g-d)*t.curvature,a=p,r=g+(d-g)*t.curvature),{x1:c,y1:d,x2:p,y2:g,cpx1:i,cpy1:o,cpx2:a,cpy2:r})}function cm(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var o=n.children;if(o.length)for(var a=o.length-1;0<=a;a--)i.push(o[a])}}function dm(t,e,n){if(t&&0<=f(e,t.type))return e=n.getData().tree.root,(n=t.targetNode)&&e.contains(n)||null!=(t=t.targetNodeId)&&(n=e.getNodeById(t))?{node:n}:void 0}function pm(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function gm(t,e){return 0<=f(pm(t),e)}function fm(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}Kf.prototype={constructor:Kf,isRemoved:function(){return this.dataIndex<0},eachNode:function(t,e,n){"function"==typeof t&&(n=e,e=t,t=null);var i,o=(t=nt(t=t||{})?{order:t}:t).order||"preorder",a=this[t.attr||"children"];"preorder"===o&&(i=e.call(n,this));for(var r=0;!i&&re&&(e=i.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;eo&&(o=t.depth)});var a=t.expandAndCollapse&&0<=t.initialTreeDepth?t.initialTreeDepth:o;return n.root.eachNode("preorder",function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a}),n.data},getOrient:function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},formatTooltip:function(t){for(var e=this.getData().tree,n=e.root.children[0],i=e.getNodeByDataIndex(t),e=i.getValue(),o=i.name;i&&i!==n;)o=i.parentNode.name+"."+o,i=i.parentNode;return Es(o+(isNaN(e)||null==e?"":" : "+e))},defaultOption:{zlevel:0,z:2,left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}}),Sc({type:"tree",init:function(t,e){this._oldTree,this._mainGroup=new z,this.group.add(this._mainGroup)},render:function(i,t,n,e){var o=i.getData(),a=i.layoutInfo,r=this._mainGroup,s=i.get("layout"),l=("radial"===s?r.attr("position",[a.x+a.width/2,a.y+a.height/2]):r.attr("position",[a.x,a.y]),this._data),h={expandAndCollapse:i.get("expandAndCollapse"),layout:s,orient:i.getOrient(),curvature:i.get("lineStyle.curveness"),symbolRotate:i.get("symbolRotate"),symbolOffset:i.get("symbolOffset"),hoverAnimation:i.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};o.diff(l).add(function(t){rm(o,t)&&lm(o,t,null,r,i,h)}).update(function(t,e){var n=l.getItemGraphicEl(e);rm(o,t)?lm(o,t,n,r,i,h):n&&hm(l,e,n,r,i,h)}).remove(function(t){var e=l.getItemGraphicEl(t);e&&hm(l,t,e,r,i,h)}).execute(),!0===h.expandAndCollapse&&o.eachItemGraphicEl(function(t,e){t.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:i.id,dataIndex:e})})}),this._data=o},dispose:function(){},remove:function(){this._mainGroup.removeAll(),this._data=null}}),s({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(n,t){t.eachComponent({mainType:"series",subType:"tree",query:n},function(t){var e=n.dataIndex,t=t.getData().tree.getNodeByDataIndex(e);t.isExpand=!t.isExpand})}),yc(Jg("tree","circle")),mc(function(t,C){t.eachSeriesByType("tree",function(t){var e=function(t,e){return Ks(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e=C),n=(t.layoutInfo=e,t.get("layout")),i=0,o=0,a=null;a="radial"===n?(i=2*Math.PI,o=Math.min(e.height,e.width)/2,em(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(i=e.width,o=e.height,em());var r,s,l,h,u,c,d,p,g,f=(e=t.getData().tree.root).children[0];if(f){var m=e;m.hierNode={defaultAncestor:null,ancestor:m,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var y,v,x=[m];y=x.pop();)if(v=y.children,y.isExpand&&v.length)for(var _=v.length-1;0<=_;_--){var w=v[_];w.hierNode={defaultAncestor:null,ancestor:w,prelim:0,modifier:0,change:0,shift:0,i:_,thread:null},x.push(w)}for(var b,S=Qf,M=a,I=[f],T=[];b=I.pop();)if(T.push(b),b.isExpand){var D=b.children;if(D.length)for(var A=0;As.getLayout().x&&(s=t),t.depth>l.depth&&(l=t)}),e=r===s?1:a(r,s)/2,h=e-r.getLayout().x,p=d=c=u=0,"radial"===n?(u=i/(s.getLayout().x+e+h),c=o/(l.depth-1||1),cm(f,function(t){d=(t.getLayout().x+h)*u,p=(t.depth-1)*c;var e=nm(d,p);t.setLayout({x:e.x,y:e.y,rawX:d,rawY:p},!0)})):"RL"===(g=t.getOrient())||"LR"===g?(c=o/(s.getLayout().x+e+h),u=i/(l.depth-1||1),cm(f,function(t){p=(t.getLayout().x+h)*c,d="LR"===g?(t.depth-1)*u:i-(t.depth-1)*u,t.setLayout({x:d,y:p},!0)})):"TB"!==g&&"BT"!==g||(u=i/(s.getLayout().x+e+h),c=o/(l.depth-1||1),cm(f,function(t){d=(t.getLayout().x+h)*u,p="TB"===g?(t.depth-1)*c:o-(t.depth-1)*c,t.setLayout({x:d,y:p},!0)}))}})}),Ch.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],_viewRoot:null,defaultOption:{progressive:0,hoverLayerThreshold:1/0,left:"center",top:"middle",right:null,bottom:null,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)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(t,e){var n={name:t.name,children:t.data},i=(!function e(t){var n=0;E(t.children,function(t){e(t);t=t.value;k(t)&&(t=t[0]),n+=t});var i=t.value;k(i)&&(i=i[0]);null!=i&&!isNaN(i)||(i=n);i<0&&(i=0);k(t.value)?t.value[0]=i:t.value=i}(n),t.levels||[]),i=t.levels=function(t,e){var n,e=e.get("color");if(e)return E(t=t||[],function(t){var t=new w(t),e=t.get("color");(t.get("itemStyle.color")||e&&"none"!==e)&&(n=!0)}),n||((t[0]||(t[0]={})).color=e.slice()),t}(i,e),t={};return t.levels=i,$f.createTree(n,this,t).data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(t){var e=this.getData(),n=this.getRawValue(t),n=k(n)?Ls(n[0]):Ls(n);return Es(e.getName(t)+": "+n)},getDataParams:function(t){var e=Ch.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=fm(t,this),e},setLayoutInfo:function(t){this.layoutInfo=this.layoutInfo||{},O(this.layoutInfo,t)},mapIdToIndex:function(t){var e=this._idIndexMap,n=(e||(e=this._idIndexMap=P(),this._idIndexMapCount=0),e.get(t));return null==n&&e.set(t,n=this._idIndexMapCount++),n},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});function mm(t){this.group=new z,t.add(this.group)}mm.prototype={constructor:mm,render:function(t,e,n,i){var o,a,r=t.getModel("breadcrumb"),s=this.group;s.removeAll(),r.get("show")&&n&&(a=(o=r.getModel("itemStyle")).getModel("textStyle"),e={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]},this._prepare(n,e,a),this._renderContent(t,e,o,a,i),$s(s,e.pos,e.box))},_prepare:function(t,e,n){for(var i=t;i;i=i.parentNode){var o=i.getModel().get("name"),a=n.getTextRect(o),a=Math.max(a.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:i,text:o,width:a})}},_renderContent:function(t,e,n,i,o){for(var a,r,s,l,h,u,c,d,p,g,f,m,y,v=0,x=e.emptyItemWidth,_=t.get("breadcrumb.height"),w=(a=e.pos,r=e.box,l=r.width,r=r.height,h=G(a.x,l),u=G(a.y,r),c=G(a.x2,l),d=G(a.y2,r),(isNaN(h)||isNaN(parseFloat(a.x)))&&(h=0),(isNaN(c)||isNaN(parseFloat(a.x2)))&&(c=l),(isNaN(u)||isNaN(parseFloat(a.y)))&&(u=0),(isNaN(d)||isNaN(parseFloat(a.y2)))&&(d=r),s=Ps(s||0),{width:Math.max(c-h-s[1]-s[3],0),height:Math.max(d-u-s[0]-s[2],0)}),b=e.totalWidth,S=e.renderList,M=S.length-1;0<=M;M--){var I=S[M],T=I.node,D=I.width,I=I.text,A=(w.widthn[1]&&(n[1]=r),o=e.get("colorMappingBy"),"color"!==(r={type:a.name,dataExtent:n,visual:a.range}).type||"index"!==o&&"id"!==o?r.mappingMethod="linear":(r.mappingMethod="category",r.loop=!0),(e=new S(r)).__drColorMappingBy=o,e}}function d0(t,e){t=t.get(e);return a0(t)&&t.length?{name:e,range:t}:null}function p0(t,e,n,i,o,a){var r,s,e=O({},e);return o&&(i="index"===(s="color"===(r=o.type)&&o.__drColorMappingBy)?i:"id"===s?a.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension")),e[r]=o.mapValueToVisual(i)),e}var g0=Math.max,f0=Math.min,m0=st,y0=E,v0=["itemStyle","borderWidth"],x0=["itemStyle","gapWidth"],_0=["upperLabel","show"],w0=["upperLabel","height"],c={seriesType:"treemap",reset:function(t,e,n,i){var o,a=n.getWidth(),r=n.getHeight(),s=t.option,n=Ks(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=s.size||[],h=G(m0(n.width,l[0]),a),l=G(m0(n.height,l[1]),r),u=i&&i.type,c=dm(i,["treemapZoomToNode","treemapRootToNode"],t),i="treemapRender"===u||"treemapMove"===u?i.rootRect:null,d=t.getViewRoot(),p=pm(d),h=("treemapMove"!==u&&(u="treemapZoomToNode"===u?function(t,e,n,i,o){var a,r=(e||{}).node,s=[i,o];if(!r||r===n)return s;var e=i*o,l=e*t.option.zoomToNodeRatio;for(;a=r.parentNode;){for(var h=0,u=a.children,c=0,d=u.length;cs[1]&&(s[1]=t)})):s=[NaN,NaN]}return{sum:i,dataExtent:s}}(e,s,l);if(0===h.sum)return t.viewChildren=[];if(h.sum=function(t,e,n,i,o){if(i){for(var a=t.get("visibleMin"),r=o.length,s=r,l=r-1;0<=l;l--){var h=o["asc"===i?r-l-1:l].getValue();h/n*en[l[r]])&&(u=n[l[r]]);for(var c=0,d=t.length;c=a.length||t===a[t.depth])&&(e=p0(s,c,t,e,p,r),n(t,e,i,o,a,r))})):(d=l0(c),t.setVisual("color",d))}}(a,{},I(o.levelModels,function(t){return t?t.get(r0):null}),r,t.getViewRoot().getAncestors(),t)}}),mc(c),Ch.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(t,e){var n={name:t.name,children:t.data},t=(!function e(t){var n=0;E(t.children,function(t){e(t);t=t.value;k(t)&&(t=t[0]),n+=t});var i=t.value;k(i)&&(i=i[0]);null!=i&&!isNaN(i)||(i=n);i<0&&(i=0);k(t.value)?t.value[0]=i:t.value=i}(n),t.levels||[]),i={};return i.levels=t,$f.createTree(n,this,i).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(t){var e=Ch.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=fm(t,this),e},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0,emphasis:{}},itemStyle:{borderWidth:1,borderColor:"white",opacity:1,emphasis:{},highlight:{opacity:1},downplay:{opacity:.9}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});var T0="none",D0="ancestor",A0="self";function C0(t,e,n){z.call(this);var i=new tr({z2:2}),o=(i.seriesIndex=e.seriesIndex,new R({z2:4,silent:t.getModel("label").get("silent")}));function a(){o.ignore=o.hoverIgnore}function r(){o.ignore=o.normalIgnore}this.add(i),this.add(o),this.updateData(!0,t,"normal",e,n),this.on("emphasis",a).on("normal",r).on("mouseover",a).on("mouseout",r)}u=C0.prototype;u.updateData=function(t,e,n,i,o){(this.node=e).piece=this,i=i||this._seriesModel,o=o||this._ecModel;var a=this.childAt(0),r=(a.dataIndex=e.dataIndex,e.getModel()),s=e.getLayout(),l=(s||console.log(e.getLayout()),O({},s)),h=(l.label=null,function(t,e){var n=t.getVisual("color"),i=t.getVisual("visualMeta");i&&0!==i.length||(n=null);i=t.getModel("itemStyle").get("color");if(!i){if(n)return n;if(0===t.depth)return e.option.color[0];n=e.option.color.length;i=e.option.color[function(t){var e=t;for(;1Math.PI/2?"right":"left"):c&&"center"!==c?"left"===c?(i=t.r0+u,s>Math.PI/2&&(c="right")):"right"===c&&(i=t.r-u,s>Math.PI/2)&&(c="left"):(i=(t.r+t.r0)/2,c="center"),l.attr("style",{text:o,textAlign:c,textVerticalAlign:d("verticalAlign")||"middle",opacity:d("opacity")}),i*n+t.cx),u=i*e+t.cy,o=(l.attr("position",[h,u]),d("rotate")),c=0;function d(t){var e=r.get(t);return null==e?a.get(t):e}"radial"===o?(c=-s)<-Math.PI/2&&(c+=Math.PI):"tangential"===o?(c=Math.PI/2-s)>Math.PI/2?c-=Math.PI:c<-Math.PI/2&&(c+=Math.PI):"number"==typeof o&&(c=o*Math.PI/180),l.attr("rotation",c)},u._initEvents=function(t,e,n,i){t.off("mouseover").off("mouseout").off("emphasis").off("normal");function o(){r.onEmphasis(i)}function a(){r.onNormal()}var r=this;n.isAnimationEnabled()&&t.on("mouseover",o).on("mouseout",a).on("emphasis",o).on("normal",a).on("downplay",function(){r.onDownplay()}).on("highlight",function(){r.onHighlight()})},a(C0,z);Wh.extend({type:"sunburst",init:function(){},render:function(i,o,t,e){var a,r,n,s=this,l=(this.seriesModel=i,this.api=t,this.ecModel=o,i.getData()),h=l.tree.root,t=i.getViewRoot(),u=this.group,c=i.get("renderLabelForZeroData"),d=[],p=(t.eachNode(function(t){d.push(t)}),this._oldChildren||[]);function g(t){return t.getId()}function f(t,e){var n,t=null==t?null:a[t],e=null==e?null:r[e];(t=c||!t||t.getValue()?t:null)!==h&&e!==h&&(e&&e.piece?t?(e.piece.updateData(!1,t,"normal",i,o),l.setItemGraphicEl(t.dataIndex,e.piece)):(n=e)&&n.piece&&(u.remove(n.piece),n.piece=null):t&&(e=new C0(t,i,o),u.add(e),l.setItemGraphicEl(t.dataIndex,e)))}r=p,0===(a=d).length&&0===r.length||new Tc(r,a,g,g).add(f).update(f).remove(L(f,null)).execute(),p=h,0<(n=t).depth?(s.virtualPiece?s.virtualPiece.updateData(!1,p,"normal",i,o):(s.virtualPiece=new C0(p,i,o),u.add(s.virtualPiece)),n.piece._onclickEvent&&n.piece.off("click",n.piece._onclickEvent),p=function(t){s._rootToNode(n.parentNode)},n.piece._onclickEvent=p,s.virtualPiece.on("click",p)):s.virtualPiece&&(u.remove(s.virtualPiece),s.virtualPiece=null),e&&e.highlight&&e.highlight.piece?(t=i.getShallow("highlightPolicy"),e.highlight.piece.onEmphasis(t)):e&&e.unhighlight&&(p=!(p=this.virtualPiece)&&h.children.length?h.children[0].piece:p)&&p.onNormal(),this._initEvents(),this._oldChildren=d},dispose:function(){},_initEvents:function(){function t(n){var i=!1;o.seriesModel.getViewRoot().eachNode(function(t){var e;!i&&t.piece&&t.piece.childAt(0)===n.target&&("rootToNode"===(e=t.getModel().get("nodeClick"))?o._rootToNode(t):"link"===e&&(t=(e=t.getModel()).get("link"))&&(e=e.get("target",!0)||"_blank",window.open(t,e)),i=!0)})}var o=this;this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",t),this.group._onclickEvent=t},_rootToNode:function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:"sunburstRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},containPoint:function(t,e){var n,e=e.getData().getItemLayout(0);if(e)return n=t[0]-e.cx,t=t[1]-e.cy,(n=Math.sqrt(n*n+t*t))<=e.r&&n>=e.r0}});var L0="sunburstRootToNode",k0=(s({type:L0,update:"updateView"},function(o,t){t.eachComponent({mainType:"series",subType:"sunburst",query:o},function(t,e){var n=dm(o,[L0],t);{var i;n&&((i=t.getViewRoot())&&(o.direction=gm(i,n.node)?"rollUp":"drillDown"),t.resetViewRoot(n.node))}})}),"sunburstHighlight"),P0=(s({type:k0,update:"updateView"},function(n,t){t.eachComponent({mainType:"series",subType:"sunburst",query:n},function(t,e){t=dm(n,[k0],t);t&&(n.highlight=t.node)})}),s({type:"sunburstUnhighlight",update:"updateView"},function(n,t){t.eachComponent({mainType:"series",subType:"sunburst",query:n},function(t,e){n.unhighlight=!0})}),Math.PI/180);function N0(t,e){var i;return"function"==typeof e?t.sort(e):(i="asc"===e,t.sort(function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0==n?(t.dataIndex-e.dataIndex)*(i?-1:1):n}))}yc(L(hf,"sunburst")),mc(L(function(t,e,r,n){e.eachSeriesByType(t,function(t){var e=t.get("center"),n=t.get("radius"),i=(k(n)||(n=[0,n]),k(e)||(e=[e,e]),r.getWidth()),o=r.getHeight(),l=Math.min(i,o),h=G(e[0],i),u=G(e[1],o),c=G(n[0],l/2),i=G(n[1],l/2),e=-t.get("startAngle")*P0,d=t.get("minAngle")*P0,p=t.getData().tree.root,o=t.getViewRoot(),g=o.depth,n=t.get("sort"),a=(null!=n&&!function e(t,n){var i=t.children||[];t.children=N0(i,n);i.length&&E(t.children,function(t){e(t,n)})}(o,n),0),f=(E(o.children,function(t){isNaN(t.getValue())||a++}),o.getValue()),m=Math.PI/(f||a)*2,y=0"+Es(i+" : "+n)},getTooltipPosition:function(t){var e;if(null!=t)return t=this.getData().getName(t),(t=(e=this.coordinateSystem).getRegion(t))&&e.dataToPoint(t.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)"}}}}));function Q0(t,e,n){var t=t.target,i=t.position;i[0]+=e,i[1]+=n,t.dirty()}function ty(t,e,n,i){var o=t.target,a=t.zoomLimit,r=o.position,s=o.scale,l=t.zoom=t.zoom||1,a=(l*=e,a&&(e=a.min||0,a=a.max||1/0,l=Math.max(Math.min(a,l),e)),l/t.zoom);t.zoom=l,r[0]-=(n-r[0])*(a-1),r[1]-=(i-r[1])*(a-1),s[0]*=a,s[1]*=a,o.dirty()}i(J0,l);var ey={axisPointer:1,tooltip:1,brush:1};function ny(t,e,n){e=e.getComponentByElement(t.topTarget),t=e&&e.coordinateSystem;return e&&e!==n&&!ey[e.mainType]&&t&&t.model!==n}function iy(t){var e=t.getItemStyle(),t=t.get("areaColor");return null!=t&&(e.fill=t),e}function oy(n,t){t.eachChild(function(e){E(e.__regions,function(t){e.trigger(n.isSelected(t.name)?"emphasis":"normal")})})}function ay(t,e){var n=new z;this._controller=new _m(t.getZr()),this._controllerHost={target:e?n:null},this.group=n,this._updateGroup=e,this._mouseDownFlag}function ry(t,e,n){var i,o=t.getZoom(),a=t.getCenter(),r=e.zoom,s=t.dataToPoint(a);return null!=e.dx&&null!=e.dy&&(s[0]-=e.dx,s[1]-=e.dy,a=t.pointToData(s),t.setCenter(a)),null!=r&&(n&&(i=n.min||0,n=n.max||1/0,r=Math.max(Math.min(o*r,n),i)/o),t.scale[0]*=r,t.scale[1]*=r,n=t.position,i=(e.originX-n[0])*(r-1),e=(e.originY-n[1])*(r-1),n[0]-=i,n[1]-=e,t.updateTransform(),a=t.pointToData(s),t.setCenter(a),t.setZoom(r*o)),{center:t.getCenter(),zoom:t.getZoom()}}ay.prototype={constructor:ay,draw:function(p,t,e,n,i){var o,a,r,s,l,g="geo"===p.mainType,f=p.getData&&p.getData(),h=(g&&t.eachComponent({mainType:"series",subType:"map"},function(t){f||t.getHostGeoModel()!==p||(f=t.getData())}),p.coordinateSystem),m=this.group,y=h.scale,u={position:h.position,scale:y},v=(!m.childAt(0)||i?m.attr(u):V(m,u,p),m.removeAll(),["itemStyle"]),x=["emphasis","itemStyle"],_=["label"],w=["emphasis","label"],b=P();E(h.regions,function(t){var e,n,i=b.get(t.name)||b.set(t.name,new z),o=new gr({shape:{paths:[]}}),a=(i.add(o),p.getRegionModel(t.name)||p),r=a.getModel(v),s=a.getModel(x),r=iy(r),s=iy(s),l=a.getModel(_),h=a.getModel(w),u=(f&&(e=f.indexOfName(t.name),u=f.getItemVisual(e,"color",!0))&&(r.fill=u),E(t.geometries,function(t){if("polygon"===t.type){o.shape.paths.push(new or({shape:{points:t.exterior}}));for(var e=0;e<(t.interiors?t.interiors.length:0);e++)o.shape.paths.push(new or({shape:{points:t.interiors[e]}}))}}),o.setStyle(r),o.style.strokeNoScale=!0,o.culling=!0,l.get("show")),r=h.get("show"),c=f&&isNaN(f.get(f.mapDimension("value"),e)),d=f&&f.getItemLayout(e);(g||c&&(u||r)||d&&d.showLabel)&&(c=g?t.name:e,(!f||0<=e)&&(n=p),Hr((u=new R({position:t.center.slice(),scale:[1/y[0],1/y[1]],z2:10,silent:!0})).style,u.hoverStyle={},l,h,{labelFetcher:n,labelDataIndex:c,defaultText:t.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),i.add(u)),f?f.setItemGraphicEl(e,i):(a=p.getRegionModel(t.name),o.eventData={componentType:"geo",geoIndex:p.componentIndex,name:t.name,region:a&&a.option||{}}),(i.__regions||(i.__regions=[])).push(t),Fr(i,s,{hoverSilentOnTouch:!!p.get("selectedMode")}),m.add(i)}),this._updateController(p,t,e),o=this,a=p,s=e,l=n,(r=m).off("click"),r.off("mousedown"),a.get("selectedMode")&&(r.on("mousedown",function(){o._mouseDownFlag=!0}),r.on("click",function(t){if(o._mouseDownFlag){o._mouseDownFlag=!1;for(var e=t.target;!e.__regions;)e=e.parent;e&&((t={type:("geo"===a.mainType?"geo":"map")+"ToggleSelect",batch:I(e.__regions,function(t){return{name:t.name,from:l.uid}})})[a.mainType+"Id"]=a.id,s.dispatchAction(t),oy(a,r))}})),oy(p,m)},remove:function(){this.group.removeAll(),this._controller.dispose(),this._controllerHost={}},_updateController:function(i,t,o){var a=i.coordinateSystem,e=this._controller,r=this._controllerHost,n=(r.zoomLimit=i.get("scaleLimit"),r.zoom=a.getZoom(),e.enable(i.get("roam")||!1),i.mainType);function s(){var t={type:"geoRoam",componentType:n};return t[n+"Id"]=i.id,t}e.off("pan").on("pan",function(t,e){this._mouseDownFlag=!1,Q0(r,t,e),o.dispatchAction(O(s(),{dx:t,dy:e}))},this),e.off("zoom").on("zoom",function(t,e,n){var i;this._mouseDownFlag=!1,ty(r,t,e,n),o.dispatchAction(O(s(),{zoom:t,originX:e,originY:n})),this._updateGroup&&(t=this.group,i=t.scale,t.traverse(function(t){"text"===t.type&&t.attr("scale",[1/i[0],1/i[1]])}))},this),e.setPointerChecker(function(t,e,n){return a.getViewRectAfterRoam().contain(e,n)&&!ny(t,o,i)})}},Sc({type:"map",render:function(t,e,n,i){var o,a;i&&"mapToggleSelect"===i.type&&i.from===this.uid||((o=this.group).removeAll(),t.getHostGeoModel())||(i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id?(a=this._mapDraw)&&o.add(a.group):t.needsDrawMap?(a=this._mapDraw||new ay(n,!0),o.add(a.group),a.draw(t,e,n,this,i),this._mapDraw=a):(this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null),t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n))},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(u,t,e){var c=u.originalData,d=this.group;c.each(c.mapDimension("value"),function(t,e){var n,i,o,a,r,s,l,h;isNaN(t)||(t=c.getItemLayout(e))&&t.point&&(h=t.point,t=t.offset,n=new $a({style:{fill:u.getData().getVisual("color")},shape:{cx:h[0]+9*t,cy:h[1],r:3},silent:!0,z2:t?8:10}),t||(h=u.mainSeries.getData(),t=c.getName(e),l=h.indexOfName(t),a=c.getItemModel(e),i=a.getModel("label"),o=a.getModel("emphasis.label"),a=h.getItemGraphicEl(l),r=lt(u.getFormattedLabel(e,"normal"),t),s=lt(u.getFormattedLabel(e,"emphasis"),r),h=function(){Zr(n.style,i,{text:i.get("show")?r:null,textPosition:i.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),null!=n.__mapOriginalZ2&&(n.z2=n.__mapOriginalZ2,n.__mapOriginalZ2=null)},a.on("mouseover",l=function(){var t=Zr({},o,{text:o.get("show")?s:null},{isRectText:!0,useInsideStyle:!1},!0);n.style.extendFrom(t),n.__mapOriginalZ2=n.z2,n.z2+=1}).on("mouseout",h).on("emphasis",l).on("normal",h),h()),d.add(n))})}}),s({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(i,t){var o=i.componentType||"series";t.eachComponent({mainType:o,query:i},function(t){var e,n=t.coordinateSystem;"geo"===n.type&&(e=ry(n,i,t.get("scaleLimit")),t.setCenter&&t.setCenter(e.center),t.setZoom&&t.setZoom(e.zoom),"series"===o)&&E(t.seriesGroup,function(t){t.setCenter(e.center),t.setZoom(e.zoom)})})}),mc(function(n){var o={};n.eachSeriesByType("map",function(t){var r,i,e=t.getMapType();t.getHostGeoModel()||o[e]||(r={},E(t.seriesGroup,function(t){var o=t.coordinateSystem,a=t.originalData;t.get("showLegendSymbol")&&n.getComponent("legend")&&a.each(a.mapDimension("value"),function(t,e){var n=a.getName(e),i=o.getRegion(n);i&&!isNaN(t)&&(t=r[n]||0,i=o.dataToPoint(i.center),r[n]=t+1,a.setItemLayout(e,{point:i,offset:t}))})}),(i=t.getData()).each(function(t){var e=i.getName(t),n=i.getItemLayout(t)||{};n.showLabel=!r[e],i.setItemLayout(t,n)}),o[e]=!0)})}),yc(function(t){t.eachSeriesByType("map",function(t){var e=t.get("color"),n=t.getModel("itemStyle"),i=n.get("areaColor"),n=n.get("color")||e[t.seriesIndex%e.length];t.getData().setVisual({areaColor:i,color:n})})}),gc(Au.PROCESSOR.STATISTIC,function(t){var n={};t.eachSeriesByType("map",function(t){var e=t.getHostGeoModel(),e=e?"o"+e.id:"i"+t.getMapType();(n[e]=n[e]||[]).push(t)}),E(n,function(t,e){l=I(t,function(t){return t.getData()}),h=t[0].get("mapValueCalculation"),u={},E(l,function(n){n.each(n.mapDimension("value"),function(t,e){e="ec-"+n.getName(e);u[e]=u[e]||[],isNaN(t)||u[e].push(t)})});for(var l,h,u,n=l[0].map(l[0].mapDimension("value"),function(t,e){for(var n="ec-"+l[0].getName(e),i=0,o=1/0,a=-1/0,r=u[n].length,s=0;s ")))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!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,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),cy=rr.prototype,dy=dr.prototype;function py(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var gy=wr({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(t,e){(py(e)?cy:dy).buildPath(t,e)},pointAt:function(t){return(py(this.shape)?cy:dy).pointAt.call(this,t)},tangentAt:function(t){var e=this.shape,e=py(e)?[e.x2-e.x1,e.y2-e.y1]:dy.tangentAt.call(this,t);return kt(e,e)}}),fy=["fromSymbol","toSymbol"];function my(t){return"_"+t+"Type"}function yy(t,e,n){var i=e.getItemVisual(n,"color"),o=e.getItemVisual(n,t),e=e.getItemVisual(n,t+"Size");if(o&&"none"!==o)return(n=Qd(o,-(e=k(e)?e:[e,e])[0]/2,-e[1]/2,e[0],e[1],i)).name=t,n}function vy(t,e){var n=e[0],i=e[1],e=e[2];t.x1=n[0],t.y1=n[1],t.x2=i[0],t.y2=i[1],t.percent=1,e?(t.cpx1=e[0],t.cpy1=e[1]):(t.cpx1=NaN,t.cpy1=NaN)}function xy(t,e,n){z.call(this),this._createLine(t,e,n)}c=xy.prototype;function _y(t){this._ctor=t||xy,this.group=new z}c.beforeUpdate=function(){var t=this.childOfName("fromSymbol"),e=this.childOfName("toSymbol"),n=this.childOfName("label");if(t||e||!n.ignore){for(var i=1,o=this.parent;o;)o.scale&&(i/=o.scale[0]),o=o.parent;var a,r,s,l,h,u,c,d,p=this.childOfName("line");(this.__dirty||p.__dirty)&&(d=p.shape.percent,a=p.pointAt(0),kt(s=Dt([],r=p.pointAt(d),a),s),t&&(t.attr("position",a),c=p.tangentAt(0),t.attr("rotation",Math.PI/2-Math.atan2(c[1],c[0])),t.attr("scale",[i*d,i*d])),e&&(e.attr("position",r),c=p.tangentAt(1),e.attr("rotation",-Math.PI/2-Math.atan2(c[1],c[0])),e.attr("scale",[i*d,i*d])),n.ignore||(n.attr("position",r),t=5*i,"end"===n.__position?(l=[s[0]*t+r[0],s[1]*t+r[1]],h=.8e);r++);r=Math.min(r-1,o-2)}zt(t.position,n[r],n[r+1],(e-i[r])/(i[r+1]-i[r]));a=n[r+1][0]-n[r][0],n=n[r+1][1]-n[r][1];t.rotation=-Math.atan2(n,a)-Math.PI/2,this._lastFrame=r,this._lastFramePercent=e,t.ignore=!1}},a(Ty,My),wr({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(t,e){var n=e.segs,i=e.curveness;if(e.polyline)for(var o=0;o "+d)),h++)}var p,i=n.get("coordinateSystem"),i=("cartesian2d"===i||"polar"===i?p=td(t,n):(f(i=(i=Ol.get(i))&&"view"!==i.type&&i.dimensions||[],"value")<0&&i.concat(["value"]),i=Kc(t,{coordDimensions:i}),(p=new Bc(i,n)).initData(t)),new Bc(["value"],n));return i.initData(l,s),o&&o(p,i),Hf({mainData:p,struct:a,structAttr:"graph",datas:{node:p,edge:i},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}i(Oy,zy("hostGraph","data")),i(Ey,zy("hostGraph","edgeData")),Ny.Node=Oy,Ny.Edge=Ey,wo(Oy),wo(Ey);var By=bc({type:"series.graph",init:function(t){By.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeOption:function(t){By.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(t){By.superApply(this,"mergeDefaultAndTheme",arguments),no(t,["edgeLabel"],["show"])},getInitialData:function(t,a){var e=t.edges||t.links||[],t=t.data||t.nodes||[],r=this;if(t&&e)return Ry(t,e,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t){var e=r._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t});var t=r.getModel("edgeLabel"),n=new w({label:t.option},t.parentModel,a),t=r.getModel("emphasis.edgeLabel"),i=new w({emphasis:{label:t.option}},t.parentModel,a);function o(t){return(t=this.parsePath(t))&&"label"===t[0]?n:t&&"emphasis"===t[0]&&"label"===t[1]?i:this.parentModel}e.wrapMethod("getItemModel",function(t){return t.customizeGetParent(o),t})}).data},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,n){var i,o;return"edge"===n?(o=this.getData(),n=this.getDataParams(t,n),t=o.graph.getEdgeByIndex(t),i=o.getName(t.node1.dataIndex),o=o.getName(t.node2.dataIndex),t=[],null!=i&&t.push(i),null!=o&&t.push(o),t=Es(t.join(" > ")),n.value&&(t+=" : "+Es(n.value)),t):By.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=I(this.option.categories||[],function(t){return null!=t.value?t:O({value:0},t)}),e=new Bc(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t,!0)})},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return By.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle"},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{label:{show:!0}}}}),Vy=[],Gy=[],Wy=[],Fy=Zo,Hy=Et,Zy=Math.abs;function Uy(t,e,n){for(var i,o=t[0],a=t[1],r=t[2],s=1/0,l=n*n,h=.1,u=.1;u<=.9;u+=.1)Vy[0]=Fy(o[0],a[0],r[0],u),Vy[1]=Fy(o[1],a[1],r[1],u),(p=Zy(Hy(Vy,e)-l))a&&(e[1-i]=e[i]+t.sign*a),e}function dv(t,e){t=t[e]-t[1-e];return{span:Math.abs(t),sign:0l*(1-i[0])?(r="jump",e=t-l*(1-i[2])):0<=(e=t-l*i[1])&&(e=t-l*(1-i[1]))<=0&&(e=0),(e*=a.axisExpandWidth/n)?cv(e,s,h,"all"):r="none"):(l=s[1]-s[0],(s=[mv(0,h[1]*t/l-l/2)])[1]=fv(h[1],s[0]+l),s[0]=s[1]-l),{axisExpandWindow:s,behavior:r}):{behavior:"none",axisExpandWindow:s}}},Ol.register("parallel",{create:function(i,o){var a=[];return i.eachComponent("parallel",function(t,e){var n=new wv(t,i,o);n.name="parallel_"+e,n.resize(t,o),(t.coordinateSystem=n).model=t,a.push(n)}),i.eachSeries(function(t){var e;"parallel"===t.get("coordinateSystem")&&(e=i.queryComponents({mainType:"parallel",index:t.get("parallelIndex"),id:t.get("parallelId")})[0],t.coordinateSystem=e.coordinateSystem)}),a}});c=h.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return Io([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(t){var e=this.activeIntervals=N(t);if(e)for(var n=e.length-1;0<=n;n--)fs(e[n])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null!=t&&!isNaN(t))if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=e.length;i=t&&(0===e?0:i[e-1][0])=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),n=this.getRect(),i=[],o="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[o]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-o]=0==o?n.y+n.height/2:n.x+n.width/2,i}}).dimensions});var q1=["axisLine","axisTickLabel","axisName"],K1="splitLine",$1=ug.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(t,e,n,i){var o=this.group,a=(o.removeAll(),j1(t)),a=new Kp(t,a);E(q1,a.add,a),o.add(a.getGroup()),t.get(K1+".show")&&this["_"+K1](t),$1.superCall(this,"render",t,e,n,i)},_splitLine:function(t){var e=t.axis;if(!e.scale.isBlank()){for(var n=t.getModel("splitLine"),i=n.getModel("lineStyle"),o=i.get("width"),a=(a=i.get("color"))instanceof Array?a:[a],r=t.coordinateSystem.getRect(),s=e.isHorizontal(),l=[],h=0,u=e.getTicksCoords({tickModel:n}),c=[],d=[],p=0;pn||!!e&&(a=sg(t).seriesDataCount,e=o.getExtent(),Math.abs(e[0]-e[1])/a>n)):!0===i)},makeElOption:function(t,e,n,i,o){},createPointerEl:function(t,e,n,i){var o=e.pointer;o&&(o=gx(t).pointerEl=new os[o.type](fx(e.pointer)),t.add(o))},createLabelEl:function(t,e,n,i){e.label&&(e=gx(t).labelEl=new B(fx(e.label)),t.add(e),xx(e,i))},updatePointerEl:function(t,e,n){t=gx(t).pointerEl;t&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,n,i){t=gx(t).labelEl;t&&(t.setStyle(e.label.style),n(t,{shape:e.label.shape,position:e.label.position}),xx(t,i))},_renderHandle:function(t){var e,n,i,o,a,r;!this._dragging&&this.updateHandleTransform&&(e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,o=e.getModel("handle"),r=e.get("status"),o.get("show")&&r&&"hide"!==r?(this._handle||(a=!0,i=this._handle=is(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Ai(t.event)},onmousedown:mx(this._onHandleDragMove,this,0,0),drift:mx(this._onHandleDragMove,this),ondragend:mx(this._onHandleDragEnd,this)}),n.add(i)),bx(i,e,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),k(r=o.get("size"))||(r=[r,r]),i.attr("scale",[r[0]/2,r[1]/2]),$h(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,a)):(i&&n.remove(i),this._handle=null))},_moveHandleToValue:function(t,e){vx(this._axisPointerModel,!e&&this._moveAnimation,this._handle,_x(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var n=this._handle;n&&(this._dragging=!0,t=this.updateHandleTransform(_x(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,n.stopAnimation(),n.attr(_x(t)),gx(n).lastProp=null,this._doDispatchAxisPointer())},_doDispatchAxisPointer:function(){var t,e;this._handle&&(t=this._payloadInfo,e=this._axisModel,this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]}))},_onHandleDragEnd:function(t){var e;this._dragging=!1,this._handle&&(e=this._axisPointerModel.get("value"),this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"}))},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var t=t.getZr(),e=this._group,n=this._handle;t&&e&&(this._lastGraphicKey=null,e&&t.remove(e),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}}).constructor=yx);c=yx.extend({makeElOption:function(t,e,n,i,o){var a,r=n.axis,s=r.grid,l=i.get("type"),h=kx(s,r).getOtherAxis(r).getGlobalExtent(),u=r.toGlobalCoord(r.dataToCoord(e,!0)),r=(l&&"none"!==l&&(a=Sx(i),(l=Px[l](r,u,h,a)).style=a,t.graphicKey=l.type,t.pointer=l),gg(s.model,n));Dx(e,t,r,n,i,o)},getHandleTransform:function(t,e,n){var i=gg(e.axis.grid.model,e,{labelInside:!1});return i.labelMargin=n.get("handle.margin"),{position:Tx(e.axis,t,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n,i){var n=n.axis,o=n.grid,a=n.getGlobalExtent(!0),o=kx(o,n).getOtherAxis(n).getGlobalExtent(),n="x"===n.dim?0:1,r=t.position,e=(r[n]+=e[n],r[n]=Math.min(a[1],r[n]),r[n]=Math.max(a[0],r[n]),(o[1]+o[0])/2),a=[e,e];a[n]=r[n];return{position:r,rotation:t.rotation,cursorPoint:a,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][n]}}});function kx(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var Px={line:function(t,e,n,i){e=Ax([e,n[0]],[e,n[1]],Nx(t));return Dr({shape:e,style:i}),{type:"Line",shape:e}},shadow:function(t,e,n,i){var o=Math.max(1,t.getBandWidth()),a=n[1]-n[0];return{type:"Rect",shape:Cx([e-o/2,n[0]],[o,a],Nx(t))}}};function Nx(t){return"x"===t.dim?0:1}ug.registerAxisPointerClass("CartesianAxisPointer",c),pc(function(t){var e;t&&(t.axisPointer&&0!==t.axisPointer.length||(t.axisPointer={}),e=t.axisPointer.link)&&!k(e)&&(t.axisPointer.link=[e])}),gc(Au.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=ag(t,e)}),s({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},function(t,e,n){var a,r,i,s,l,o,h,u,c,d,p,g,f,m,y=t.currTrigger,v=[t.x,t.y],x=t,_=t.dispatchAction||D(n.dispatchAction,n),w=e.getComponent("axisPointer").coordSysAxesInfo;if(w)return rx(v)&&(v=J1({seriesIndex:x.seriesIndex,dataIndex:x.dataIndex},e).point),a=rx(v),r=x.axesInfo,i=w.axesInfo,s="leave"===y||rx(v),l={},e={list:[],map:{}},h={showPointer:tx(ix,o={}),showTooltip:tx(ox,e)},Q1(w.coordSysMap,function(t,e){var o=a||t.containPoint(v);Q1(w.coordSysAxesInfo[e],function(t,e){var n=t.axis,i=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(r,t);s||!o||r&&!i||null!=(i=null!=(i=i&&i.value)||a?i:n.pointToData(v))&&nx(t,i,h,!1,l)})}),u={},Q1(i,function(n,t){var i=n.linkGroup;i&&!o[t]&&Q1(i.axesInfo,function(t,e){var e=o[e];t!==n&&e&&(e=e.value,i.mapper&&(e=n.axis.scale.parse(i.mapper(e,ax(t),ax(n)))),u[n.key]=e)})}),Q1(u,function(t,e){nx(i[e],t,h,!0,l)}),c=o,x=i,d=l.axesInfo=[],Q1(x,function(t,e){var n=t.axisPointerModel.option,e=c[e];e?(t.useHandle||(n.status="show"),n.value=e.value,n.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&d.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}),y=e,x=t,e=_,rx(t=v)||!y.list.length?e({type:"hideTip"}):(_=((y.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{},e({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:x.tooltipOption,position:x.position,dataIndexInside:_.dataIndexInside,dataIndex:_.dataIndex,seriesIndex:_.seriesIndex,dataByCoordSys:y.list})),e=i,x=(t=n).getZr(),_="axisPointerLastHighlights",p=ex(x)[_]||{},g=ex(x)[_]={},Q1(e,function(t,e){t=t.axisPointerModel.option;"show"===t.status&&Q1(t.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;g[e]=t})}),f=[],m=[],E(p,function(t,e){g[e]||m.push(t)}),E(g,function(t,e){p[e]||f.push(t)}),m.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,batch:m}),f.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,batch:f}),l});var Ox=["x","y"],Ex=["width","height"],u=yx.extend({makeElOption:function(t,e,n,i,o){var a,r=n.axis,s=r.coordinateSystem,l=Bx(s,1-Rx(r)),s=s.dataToPoint(e)[0],h=i.get("type"),r=(h&&"none"!==h&&(a=Sx(i),(h=zx[h](r,s,l,a)).style=a,t.graphicKey=h.type,t.pointer=h),j1(n));Dx(e,t,r,n,i,o)},getHandleTransform:function(t,e,n){var i=j1(e,{labelInside:!1});return i.labelMargin=n.get("handle.margin"),{position:Tx(e.axis,t,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n,i){var n=n.axis,o=n.coordinateSystem,n=Rx(n),a=Bx(o,n),r=t.position,e=(r[n]+=e[n],r[n]=Math.min(a[1],r[n]),r[n]=Math.max(a[0],r[n]),Bx(o,1-n)),a=(e[1]+e[0])/2,o=[a,a];return o[n]=r[n],{position:r,rotation:t.rotation,cursorPoint:o,tooltipOption:{verticalAlign:"middle"}}}}),zx={line:function(t,e,n,i){e=Ax([e,n[0]],[e,n[1]],Rx(t));return Dr({shape:e,style:i}),{type:"Line",shape:e}},shadow:function(t,e,n,i){var o=t.getBandWidth(),a=n[1]-n[0];return{type:"Rect",shape:Cx([e-o/2,n[0]],[o,a],Rx(t))}}};function Rx(t){return t.isHorizontal()?0:1}function Bx(t,e){t=t.getRect();return[t[Ox[e]],t[Ox[e]]+t[Ex[e]]]}ug.registerAxisPointerClass("SingleAxisPointer",u),wc({type:"single"});var Vx=Ch.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(t){Vx.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},fixData:function(t){for(var e=t.length,n=I(E1().key(function(t){return t[2]}).entries(t),function(t){return{name:t.key,dataList:t.values}}),i=n.length,o=-1,a=-1,r=0;rt[1]&&t.reverse(),{coordSys:{type:"polar",cx:i.cx,cy:i.cy,r:t[1],r0:t[0]},api:{coord:D(function(t){var e=o.dataToRadius(t[0]),t=a.dataToAngle(t[1]),n=i.coordToPoint([e,t]);return n.push(e,t*Math.PI/180),n}),size:D(d_,i)}}},calendar:function(n){var t=n.getRect(),e=n.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(t,e){return n.dataToPoint(t,e)}}}}};function x_(t,e,n,i,o){null==n[t]||o||(e[t]=n[t],n[t]=i[t])}function __(o,a,e,t){var i,r,s,l,h,u,c,n=o.get("renderItem"),d=o.coordinateSystem,p={},g=(d&&(A&&(x(n,"series.render is required."),x(d.prepareCustoms||v_[d.type],"This coordSys does not support custom series.")),p=d.prepareCustoms?d.prepareCustoms():v_[d.type](d)),C({getWidth:t.getWidth,getHeight:t.getHeight,getZr:t.getZr,getDevicePixelRatio:t.getDevicePixelRatio,value:function(t,e){return null==e&&(e=s),a.get(a.getDimension(t||0),e)},style:function(t,e){y(e=null==e?s:e);var n=l.getModel(p_).getItemStyle(),i=(null!=c&&(n.fill=c),a.getItemVisual(e,"opacity"));return null!=i&&(n.opacity=i),Zr(n,h,null,{autoColor:c,isRectText:!0}),n.text=h.getShallow("show")?lt(o.getFormattedLabel(e,"normal"),zp(a,e)):null,t&&O(n,t),n},styleEmphasis:function(t,e){y(e=null==e?s:e);var n=l.getModel(g_).getItemStyle();return Zr(n,u,null,{isRectText:!0},!0),n.text=u.getShallow("show")?ht(o.getFormattedLabel(e,"emphasis"),o.getFormattedLabel(e,"normal"),zp(a,e)):null,t&&O(n,t),n},visual:function(t,e){return null==e&&(e=s),a.getItemVisual(e,t)},barLayout:function(t){if(d.getBaseAxis)return function(t){var e=[],n=t.axis;if("category"===n.type){for(var i=n.getBandWidth(),o=0;oe[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),t=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:t[0],y2:t[1]}}function E_(t){return t.getRadiusAxis().inverse?0:1}function z_(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}ug.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(e,t){var n,i,o,a,r;this.group.removeAll(),e.get("show")&&(n=e.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),a=n.getTicksCoords(),z_(r=I(n.getViewLabels(),function(t){return(t=N(t)).coord=n.dataToCoord(t.tickValue),t})),z_(a),E(N_,function(t){!e.get(t+".show")||n.scale.isBlank()&&"axisLine"!==t||this["_"+t](e,i,a,o,r)},this))},_axisLine:function(t,e,n,i){t=t.getModel("axisLine.lineStyle"),i=new $a({shape:{cx:e.cx,cy:e.cy,r:i[E_(e)]},style:t.getLineStyle(),z2:1,silent:!0});i.style.fill=null,this.group.add(i)},_axisTick:function(t,e,n,i){var o=t.getModel("axisTick"),a=(o.get("inside")?-1:1)*o.get("length"),r=i[E_(e)],i=I(n,function(t){return new rr({shape:O_(e,[r,r+a],t.coord)})});this.group.add(Ir(i,{style:C(o.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_axisLabel:function(l,h,t,u,e){var c=l.getCategories(!0),d=l.getModel("axisLabel"),p=d.get("margin");E(e,function(t,e){var n=d,i=t.tickValue,o=u[E_(h)],a=h.coordToPoint([o+p,t.coord]),r=h.cx,s=h.cy,r=Math.abs(a[0]-r)/o<.3?"center":a[0]>r?"left":"right",o=Math.abs(a[1]-s)/o<.3?"middle":a[1]>s?"top":"bottom",s=(c&&c[i]&&c[i].textStyle&&(n=new w(c[i].textStyle,d,d.ecModel)),new R({silent:!0}));this.group.add(s),Zr(s.style,n,{x:a[0],y:a[1],textFill:n.getTextColor()||l.get("axisLine.lineStyle.color"),text:t.formattedLabel,textAlign:r,textVerticalAlign:o})},this)},_splitLine:function(t,e,n,i){for(var o=t.getModel("splitLine").getModel("lineStyle"),a=0,r=(r=o.get("color"))instanceof Array?r:[r],s=[],l=0;lr?"left":"right",Math.abs(o[1]-e)/l<.3?"middle":o[1]>e?"top":"bottom")}return{position:o,align:a,verticalAlign:s}}(e,n,s,r))}});var V_={line:function(t,e,n,i,o){return"angle"===t.dim?{type:"Line",shape:Ax(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i,o){var a=Math.max(1,t.getBandWidth()),r=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:Lx(e.cx,e.cy,i[0],i[1],(-n-a/2)*r,(a/2-n)*r)}:{type:"Sector",shape:Lx(e.cx,e.cy,n-a/2,n+a/2,0,2*Math.PI)}}};function G_(i,t){t.update="updateView",s(t,function(t,e){var n={};return e.eachComponent({mainType:"geo",query:t},function(e){e[i](t.name),E(e.coordinateSystem.regions,function(t){n[t.name]=e.isSelected(t.name)||!1})}),{selected:n,name:t.name}})}ug.registerAxisPointerClass("PolarAxisPointer",u),mc(L(function(t,e,n){var l,c,D=n.getWidth(),A=n.getHeight(),C={},L=(n=tt(e.getSeriesByType(t),function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type}),l={},E(n,function(t,e){var n=t.getData(),i=t.coordinateSystem.getBaseAxis(),o=i.getExtent(),o="category"===i.type?i.getBandWidth():Math.abs(o[1]-o[0])/n.count(),n=l[i.dim]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},a=n.stacks,i=(l[i.dim]=n,T_(t)),r=(a[i]||n.autoWidthCount++,a[i]=a[i]||{width:0,maxWidth:0},G(t.get("barWidth"),o)),o=G(t.get("barMaxWidth"),o),s=t.get("barGap"),t=t.get("barCategoryGap");r&&!a[i].width&&(r=Math.min(n.remainedWidth,r),a[i].width=r,n.remainedWidth-=r),o&&(a[i].maxWidth=o),null!=s&&(n.gap=s),null!=t&&(n.categoryGap=t)}),c={},E(l,function(t,n){c[n]={};var i,e=t.stacks,o=t.bandWidth,o=G(t.categoryGap,o),a=G(t.gap,1),r=t.remainedWidth,s=t.autoWidthCount,l=(r-o)/(s+(s-1)*a),l=Math.max(l,0),h=(E(e,function(t,e){var n=t.maxWidth;n&&n=n.start.time&&t.timei.end.time&&e.reverse(),e},_getRangeInfo:function(t){(t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])])[0].time>t[1].time&&(e=!0,t.reverse());var e,n=Math.floor(t[1].time/864e5)-Math.floor(t[0].time/864e5)+1,i=new Date(t[0].time),o=i.getDate(),a=t[1].date.getDate();if(i.setDate(o+n-1),i.getDate()!==a)for(var r=0n.weeks||0===t&&en.lweek)&&(t=7*(t-1)-n.fweek+e,(e=new Date(n.start.time)).setDate(n.start.d+t),this.getDateInfo(e))}},W_.dimensions=W_.prototype.dimensions,W_.getDimensionsInfo=W_.prototype.getDimensionsInfo,W_.create=function(t,e){var n=[];return t.eachComponent("calendar",function(t){var e=new W_(t);n.push(e),t.coordinateSystem=e}),t.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])}),n},Ol.register("calendar",W_);var H_=h.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,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%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(t,e,n,i){var o=Qs(t);H_.superApply(this,"init",arguments),Z_(t,o)},mergeOption:function(t,e){H_.superApply(this,"mergeOption",arguments),Z_(this.option,t)}});function Z_(t,i){var o=t.cellSize,e=(k(o)?1===o.length&&(o[1]=o[0]):o=t.cellSize=[o,o],I([0,1],function(t){var e,n;return(null!=(e=i)[Ys[n=t][0]]||null!=e[Ys[n][1]]&&null!=e[Ys[n][2]])&&(o[t]="auto"),null!=o[t]&&"auto"!==o[t]}));Js(t,i,{type:"box",ignoreSize:e})}var U_={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},X_={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},Y_=(wc({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,n){var i=this.group,o=(i.removeAll(),t.coordinateSystem),a=o.getRangeInfo(),o=o.getOrient();this._renderDayRect(t,a,i),this._renderLines(t,a,o,i),this._renderYearText(t,a,o,i),this._renderMonthText(t,o,i),this._renderWeekText(t,a,o,i)},_renderDayRect:function(t,e,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),a=i.getCellWidth(),r=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,l=new B({shape:{x:l[0],y:l[1],width:a,height:r},cursor:"default",style:o});n.add(l)}},_renderLines:function(e,t,n,i){for(var o=this,a=e.coordinateSystem,r=e.getModel("splitLine.lineStyle").getLineStyle(),s=e.get("splitLine.show"),l=r.lineWidth,h=(this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[],t.start),u=0;h.time<=t.end.time;u++){d(h.formatedDate);var c=(h=0===u?a.getDateInfo(t.start.y+"-"+t.start.m):h).date;c.setMonth(c.getMonth()+1),h=a.getDateInfo(c)}function d(t){o._firstDayOfMonth.push(a.getDateInfo(t)),o._firstDayPoints.push(a.dataToRect([t],!1).tl);t=o._getLinePointsOfOneWeek(e,t,n);o._tlpoints.push(t[0]),o._blpoints.push(t[t.length-1]),s&&o._drawSplitline(t,r,i)}d(a.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,l,n),r,i),s&&this._drawSplitline(o._getEdgesPoints(o._blpoints,l,n),r,i)},_getEdgesPoints:function(t,e,n){t=[t[0].slice(),t[t.length-1].slice()],n="horizontal"===n?0:1;return t[0][n]=t[0][n]-e/2,t[1][n]=t[1][n]+e/2,t},_drawSplitline:function(t,e,n){t=new ar({z2:20,shape:{points:t},style:e});n.add(t)},_getLinePointsOfOneWeek:function(t,e,n){for(var i=t.coordinateSystem,o=(e=i.getDateInfo(e),[]),a=0;a<7;a++){var r=i.getNextNDay(e.time,a),s=i.dataToRect([r.time],!1);o[2*r.day]=s.tl,o[2*r.day+1]=s["horizontal"===n?"bl":"tr"]}return o},_formatterLabel:function(t,e){return"string"==typeof t&&t?Vs(t,e):"function"==typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,n,i,o){e=e.slice();var a=["center","bottom"],o=("bottom"===i?(e[1]+=o,a=["center","top"]):"left"===i?e[0]-=o:"right"===i?(e[0]+=o,a=["center","top"]):e[1]-=o,0);return{rotation:o="left"!==i&&"right"!==i?o:Math.PI/2,position:e,style:{textAlign:a[0],textVerticalAlign:a[1]}}},_renderYearText:function(t,e,n,i){var o,a,r,s,l,h,t=t.getModel("yearLabel");t.get("show")&&(o=t.get("margin"),a=(a=t.get("position"))||("horizontal"!==n?"top":"left"),r=((h=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]])[0][0]+h[1][0])/2,l=(h[0][1]+h[1][1])/2,r={top:[r,h[s="horizontal"===n?0:1][1]],bottom:[r,h[1-s][1]],left:[h[1-s][0],l],right:[h[s][0],l]},h=e.start.y,+e.end.y>+e.start.y&&(h=h+"-"+e.end.y),s=t.get("formatter"),l={start:e.start.y,end:e.end.y,nameMap:h},e=this._formatterLabel(s,l),Zr((h=new R({z2:30})).style,t,{text:e}),h.attr(this._yearTextPositionControl(h,r[a],n,a,o)),i.add(h))},_monthTextPositionControl:function(t,e,n,i,o){var a="left",r="top",s=t[0],t=t[1];return"horizontal"===n?(t+=o,e&&(a="center"),"start"===i&&(r="bottom")):(s+=o,e&&(r="middle"),"start"===i&&(a="right")),{x:s,y:t,textAlign:a,textVerticalAlign:r}},_renderMonthText:function(t,e,n){var i=t.getModel("monthLabel");if(i.get("show"))for(var o=i.get("nameMap"),a=i.get("margin"),r=i.get("position"),t=i.get("align"),s=[this._tlpoints,this._blpoints],l=(nt(o)&&(o=U_[o.toUpperCase()]||[]),"start"===r?0:1),h="horizontal"===e?0:1,a="start"===r?-a:a,u="center"===t,c=0;cn[s],p=[-u.x,-u.y],g=(p[r]=i.position[r],[0,0]),f=[-c.x,-c.y],m=lt(t.get("pageButtonGap",!0),t.get("itemGap",!0)),p=(d&&("end"===t.get("pageButtonPosition",!0)?f[r]+=n[s]-c[s]:g[r]+=c[s]+m),f[1-r]+=u[l]/2-c[l]/2,i.attr("position",p),o.attr("position",g),a.attr("position",f),this.group.getBoundingRect()),u=((p={x:0,y:0})[s]=(d?n:u)[s],p[l]=Math.max(u[l],c[l]),p[h]=Math.min(0,c[h]+f[1-r]),o.__rectSize=n[s],d?((g={x:0,y:0})[s]=Math.max(n[s]-c[s]-m,0),g[l]=p[l],o.setClipPath(new B({shape:g})),o.__rectSize=g[s]):a.eachChild(function(t){t.attr({invisible:!0,silent:!0})}),this._getPageInfo(t));return null!=u.pageIndex&&V(i,{position:u.contentPosition},d&&t),this._updatePageInfoView(t,u),p},_pageGo:function(t,e,n){t=this._getPageInfo(e)[t];null!=t&&n.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},_updatePageInfoView:function(n,i){var o=this._controllerGroup,t=(E(["pagePrev","pageNext"],function(t){var e=null!=i[t+"DataIndex"],t=o.childOfName(t);t&&(t.setStyle("fill",e?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),t.cursor=e?"pointer":"default")}),o.childOfName("pageText")),e=n.get("pageFormatter"),a=i.pageIndex,a=null!=a?a+1:0,r=i.pageCount;t&&e&&t.setStyle("text",nt(e)?e.replace("{current}",a).replace("{total}",r):e({current:a,total:r}))},_getPageInfo:function(t){var e,i,n,o=t.get("scrollDataIndex",!0),a=this.getContentGroup(),r=a.getBoundingRect(),s=this._containerGroup.__rectSize,l=t.getOrient().index,h=aw[l],t=aw[1-l],u=rw[l],c=a.position.slice(),d=(this._showController?a.eachChild(function(t){t.__legendDataIndex===o&&(n=t)}):n=a.childAt(0),s?Math.ceil(r[h]/s):0);if(n){var p,g=n.getBoundingRect(),f=n.position[l]+g[u],m=(c[l]=-f-r[u],f=Math.floor(d*(f+g[u]+s/2)/r[h]),f=r[h]&&d?Math.max(0,Math.min(d-1,f)):-1,{x:0,y:0}),y=(m[h]=s,m[t]=r[t],m[u]=-c[l]-r[u],a.children());if(a.eachChild(function(t,e){var n=v(t);n.intersect(m)&&(null==p&&(p=e),i=t.__legendDataIndex),e===y.length-1&&n[u]+n[h]<=m[u]+m[h]&&(i=null)}),null!=p){g=v(y[p]);if(m[u]=g[u]+g[h]-m[h],p<=0&&g[u]>=m[u])e=null;else{for(;0":"")+s.join("
")))})},this),h.reverse(),h=h.join("

"),e.position);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(o,a,i[0],i[1],this._tooltipContent,u):this._showTooltipContent(o,h,u,Math.random(),i[0],i[1],a)})},_showSeriesItemTooltip:function(t,e,n){var i,o,a,r=this._ecModel,s=e.seriesIndex,r=r.getSeriesByIndex(s),l=e.dataModel||r,h=e.dataIndex,e=e.dataType,u=l.getData(),c=yw([u.getItemModel(h),l,r&&(r.coordinateSystem||{}).model,this._tooltipModel]),r=c.get("trigger");null!=r&&"item"!==r||(i=l.getDataParams(h,e),o=l.formatTooltip(h,!1,e),a="item_"+l.name+"_"+h,this._showOrMove(c,function(){this._showTooltipContent(c,o,i,a,t.offsetX,t.offsetY,t.position,t.target)}),n({type:"showTip",dataIndexInside:h,dataIndex:u.getRawIndex(h),seriesIndex:s,from:this.uid}))},_showComponentItemTooltip:function(t,e,n){var i=e.tooltip,o=new w(i="string"==typeof i?{content:i,formatter:i}:i,this._tooltipModel,this._ecModel),a=o.get("content"),r=Math.random();this._showOrMove(o,function(){this._showTooltipContent(o,a,o.get("formatterParams")||{},r,t.offsetX,t.offsetY,t.position,e)}),n({type:"showTip",from:this.uid})},_showTooltipContent:function(n,t,i,e,o,a,r,s){var l,h,u;this._ticket="",n.get("showContent")&&n.get("show")&&(l=this._tooltipContent,h=n.get("formatter"),r=r||n.get("position"),t=t,h&&"string"==typeof h?t=Bs(h,i,!0):"function"==typeof h&&(u=pw(function(t,e){t===this._ticket&&(l.setContent(e),this._updatePosition(n,r,o,a,l,i,s))},this),this._ticket=e,t=h(i,e,u)),l.setContent(t),l.show(n),this._updatePosition(n,r,o,a,l,i,s))},_updatePosition:function(t,e,n,i,o,a,r){var s,l=this._api.getWidth(),h=this._api.getHeight(),u=(e=e||t.get("position"),o.getSize()),c=t.get("align"),d=t.get("verticalAlign"),p=r&&r.getBoundingRect().clone();r&&p.applyTransform(r.transform),k(e="function"==typeof e?e([n,i],a,o.el,p,{viewSize:[l,h],contentSize:u.slice()}):e)?(n=fw(e[0],l),i=fw(e[1],h)):T(e)?(e.width=u[0],e.height=u[1],n=(a=Ks(e,{width:l,height:h})).x,i=a.y,d=c=null):i=(n=(s="string"==typeof e&&r?function(t,e,n){var i=n[0],o=n[1],a=0,r=0,s=e.width,l=e.height;switch(t){case"inside":a=e.x+s/2-i/2,r=e.y+l/2-o/2;break;case"top":a=e.x+s/2-i/2,r=e.y-o-5;break;case"bottom":a=e.x+s/2-i/2,r=e.y+l+5;break;case"left":a=e.x-i-5,r=e.y+l/2-o/2;break;case"right":a=e.x+s+5,r=e.y+l/2-o/2}return[a,r]}(e,p,u):function(t,e,n,i,o,a,r){var n=xw(n),s=n.width,n=n.height;null!=a&&(i"),e&&(t+=bw(e),null!=n)&&(t+=" : "),null!=n&&(t+=bw(i)),t},getData:function(){return this._data},setData:function(t){this._data=t}}),Mw=(i(n,ss),n.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}}),f);function Iw(t,e,n,i,o,a){var r=[],s=Jc(e,i)?e.getCalculationInfo("stackResultDimension"):i,t=kw(e,s,t),s=e.indicesOfNearest(s,t)[0],t=(r[o]=e.get(n,s),r[a]=e.get(i,s),ms(e.get(i,s)));return 0<=(t=Math.min(t,20))&&(r[a]=+r[a].toFixed(t)),r}var c=L,Tw={min:c(Iw,"min"),max:c(Iw,"max"),average:c(Iw,"average")};function Dw(t,e){var n=t.getData(),i=t.coordinateSystem;if(e&&(a=e,isNaN(parseFloat(a.x))||isNaN(parseFloat(a.y)))&&!k(e.coord)&&i){var o=i.dimensions,a=Aw(e,n,i,t);if((e=N(e)).type&&Tw[e.type]&&a.baseAxis&&a.valueAxis){i=Mw(o,a.baseAxis.dim),t=Mw(o,a.valueAxis.dim);e.coord=Tw[e.type](n,a.baseDataDim,a.valueDataDim,i,t),e.value=e.coord[t]}else{for(var r=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],s=0;s<2;s++)Tw[r[s]]&&(r[s]=kw(n,n.mapDimension(o[s]),r[s]));e.coord=r}}return e}function Aw(t,e,n,i){var o={};return null!=t.valueIndex||null!=t.valueDim?(o.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,o.valueAxis=n.getAxis(function(t,e){var n=t.getData(),i=n.dimensions;e=n.getDimension(e);for(var o=0;o=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var o,t=this.option,e=t.data||[],t=t.axisType,a=this._names=[],t=("category"===t&&(o=[],E(e,function(t,e){var n,i=oo(t);T(t)?(n=N(t)).value=e:n=e,o.push(n),nt(i)||null!=i&&!isNaN(i)||(i=""),a.push(i+"")}),e=o),{category:"ordinal",time:"time"}[t]||"number");(this._data=new Bc([{name:"value",type:t}],this)).initData(e,a)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}}),l=(i(Yw.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,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:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}}),ss),Rh.extend({type:"timeline"})),jw=(Xw.prototype={constructor:Xw,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},a(Xw,mp),D),qw=E,Kw=Math.PI;function $w(t,e,n,i,o,a){var r=e.get("color"),r=(o?(o.setColor(r),n.add(o),a&&a.onUpdate(o)):((o=Qd(t.get("symbol"),-1,-1,2,2,r)).setStyle("strokeNoScale",!0),n.add(o),a&&a.onCreate(o)),e.getItemStyle(["color","symbol","symbolSize"])),n=(o.setStyle(r),i=p({rectHover:!0,z2:100},i,!0),t.get("symbolSize")),a=((n=n instanceof Array?n.slice():[+n,+n])[0]/=2,n[1]/=2,i.scale=n,t.get("symbolOffset")),r=(a&&((e=i.position=i.position||[0,0])[0]+=G(a[0],n[0]),e[1]+=G(a[1],n[1])),t.get("symbolRotate"));return i.rotation=(r||0)*Math.PI/180||0,o.attr(i),o.updateTransform(),o}function Jw(t,e,n,i,o){var a;t.dragging||(a=i.getModel("checkpointStyle"),n=n.dataToCoord(i.getData().get(["value"],e)),o||!a.get("animation",!0)?t.attr({position:[n,0]}):(t.stopAnimation(!0),t.animateTo({position:[n,0]},a.get("animationDuration",!0),a.get("animationEasing",!0))))}l.extend({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(e,t,n,i){var o,a,r;this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)&&(o=this._layout(e,n),a=this._createGroup("mainGroup"),t=this._createGroup("labelGroup"),r=this._axis=this._createAxis(o,e),e.formatTooltip=function(t){return Es(r.scale.getLabel(t))},qw(["AxisLine","AxisTick","Control","CurrentPointer"],function(t){this["_render"+t](o,a,r,e)},this),this._renderAxisLabel(o,t,r,e),this._position(o,e)),this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(t,e){var n,i,o,a=t.get("label.position"),r=t.get("orient"),s=(s=e,Ks((l=t).getBoxLayoutParams(),{width:s.getWidth(),height:s.getHeight()},l.get("padding"))),l=(null==a||"auto"===a?a="horizontal"===r?s.y+s.height/2n[1]?n[1]:t)i[1]&&(i[1]=t[1])})}),i[1]u[1];if(r&&!s&&!a)return!0;r&&(i=!0),s&&(e=!0),a&&(n=!0)}return i&&e&&n}):sb(h,function(t){var e;"empty"===o?n.setData(l.map(t,function(t){return(e=t)>=u[0]&&e<=u[1]?t:NaN;var e})):((e={})[t]=u,l.selectRange(e))}),sb(h,function(t){l.setApproximateExtent(u,t)})})}};var ub=E,cb=tb,wu=_c({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(t,e,n){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var i=db(t);this.mergeDefaultAndTheme(t,n),this.doInit(i)},mergeOption:function(t){var e=db(t);p(this.option,t,!0),this.doInit(e)},doInit:function(t){var n=this.option;y.canvasSupported||(n.realtime=!1),this._setDefaultThrottle(t),pb(this,t),ub([["start","startValue"],["end","endValue"]],function(t,e){"value"===this._rangePropMode[e]&&(n[t[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var a=this._axisProxies;this.eachTargetAxis(function(t,e,n,i){var o=this.dependentModels[t.axis][e],o=o.__dzAxisProxy||(o.__dzAxisProxy=new rb(t.name,e,this,i));a[t.name+"_"+e]=o},this)},_resetTarget:function(){var e=this.option,t=this._judgeAutoMode();cb(function(t){t=t.axisIndex;e[t]=eo(e[t])},this),"axisIndex"===t?this._autoSetAxisIndex():"orient"===t&&this._autoSetOrient()},_judgeAutoMode:function(){var e=this.option,n=!1,t=(cb(function(t){null!=e[t.axisIndex]&&(n=!0)},this),e.orient);return null==t&&n?"orient":n?void 0:(null==t&&(e.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var t,a=!0,e=this.get("orient",!0),r=this.option,n=this.dependentModels;a&&(n[(t="vertical"===e?"y":"x")+"Axis"].length?(r[t+"AxisIndex"]=[0],a=!1):ub(n.singleAxis,function(t){a&&t.get("orient",!0)===e&&(r.singleAxisIndex=[t.componentIndex],a=!1)})),a&&cb(function(t){if(a){var e=[],n=this.dependentModels[t.axis];if(n.length&&!e.length)for(var i=0,o=n.length;ie[0]||t[1]<0||t[1]>e[1]||(e=((e=this._handleEnds)[0]+e[1])/2,t=this._updateInterval("all",t[0]-e),this._updateView(),t&&this._dispatchZoomAction())},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_findCoordRect:function(){var t,e,n;return vb(this.getTargetCoordInfo(),function(t){!n&&t.length&&(t=t[0].model.coordinateSystem,n=t.getRect&&t.getRect())}),n||(t=this.api.getWidth(),e=this.api.getHeight(),n={x:.2*t,y:.2*e,width:.6*t,height:.6*e}),n}});function Sb(t){return"vertical"===t?"ns-resize":"ew-resize"}wu.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,preventDefaultMouseMove:!0}});var Mb=L,Ib="\0_ec_dataZoom_roams";function Tb(t,i){var n,o,a,e=Ab(t),r=i.dataZoomId,s=i.coordId,l=(E(e,function(t,e){var n=t.dataZoomInfos;n[r]&&f(i.allCoordIds,s)<0&&(delete n[r],t.count--)}),Cb(e),e[s]),t=(l||((l=e[s]={coordId:s,dataZoomInfos:{},count:0}).controller=function(t,e){t=new _m(t.getZr());return t.on("pan",Mb(Lb,e)),t.on("zoom",Mb(kb,e)),t}(t,l),l.dispatchAction=L(Nb,t)),l.dataZoomInfos[r]||l.count++,l.dataZoomInfos[r]=i,e=l.dataZoomInfos,o={},a={type_true:2,type_move:1,type_false:0,type_undefined:-1},E(e,function(t){var e=!t.disabled&&(!t.zoomLock||"move");a["type_"+n]t[1]&&t.reverse(),t}function tS(t,e){return po(t,e,{includeMainTypes:$b})}u.setOutputRanges=function(t,e){this.matchOutputRanges(t,e,function(t,e,n){(t.coordRanges||(t.coordRanges=[])).push(e),t.coordRange||(t.coordRange=e,n=oS[t.brushType](0,n,e),t.__rangeOffset={offset:rS[t.brushType](n.values,t.range,[1,1]),xyMinMax:n.xyMinMax})})},u.matchOutputRanges=function(t,i,o){jb(t,function(n){var t=this.findTargetInfo(n,i);t&&!0!==t&&E(t.coordSyses,function(t){var e=oS[n.brushType](1,t,n.range);o(n,e.values,t,i)})},this)},u.setInputRanges=function(t,i){jb(t,function(t){var e,n=this.findTargetInfo(t,i);A&&(x(!n||!0===n||t.coordRange,"coordRange must be specified when coord index specified."),x(!n||!0!==n||t.range,"range must be specified in global brush.")),t.range=t.range||[],n&&!0!==n&&(t.panelId=n.panelId,n=oS[t.brushType](0,n.coordSys,t.coordRange),e=t.__rangeOffset,t.range=e?rS[t.brushType](n.values,e.offset,function(t,e){t=lS(t),e=lS(e),t=[t[0]/e[0],t[1]/e[1]];return isNaN(t[0])&&(t[0]=1),isNaN(t[1])&&(t[1]=1),t}(n.xyMinMax,e.xyMinMax)):n.values)},this)},u.makePanelOpts=function(n,i){return I(this._targetInfoList,function(t){var e=t.getPanelRect();return{panelId:t.panelId,defaultBrushType:i&&i(t),clipPath:g1(e),isTargetByCursor:m1(e,n,t.coordSysModel),getLinearBrushOtherExtent:f1(e)}})},u.controlSeries=function(t,e,n){t=this.findTargetInfo(t,n);return!0===t||t&&0<=qb(t.coordSyses,e.coordinateSystem)},u.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=tS(e,t),o=0;oo[0][1]&&(o[0][1]=a[0]),a[1]o[1][1]&&(o[1][1]=a[1])}return o&&mS(o)}};function mS(t){return new Z(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var yS=["#ddd"];function vS(t,e){return p({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new w(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}function xS(t,e,n,i){i&&i.$from===t.id||this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())}_c({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,e){var n=this.option,e=(e||Wb(n,t,["inBrush","outOfBrush"]),n.inBrush=n.inBrush||{});n.outOfBrush=n.outOfBrush||{color:yS},e.hasOwnProperty("liftZ")||(e.liftZ=5)},setAreas:function(t){A&&(x(k(t)),E(t,function(t){x(t.brushType,"Illegal areas")})),t&&(this.areas=I(t,function(t){return vS(this.option,t)},this))},setBrushOption:function(t){this.brushOption=vS(this.option,t),this.brushType=this.brushOption.brushType}}),wc({type:"brush",init:function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new Rv(e.getZr())).on("brush",D(this._onBrush,this)).mount()},render:function(t){return this.model=t,xS.apply(this,arguments)},updateTransform:xS,updateView:xS,dispose:function(){this._brushController.dispose()},_onBrush:function(t,e){var n=this.model.id;this.model.brushTargetManager.setOutputRanges(t,this.ecModel),e.isEnd&&!e.removeOnClick||this.api.dispatchAction({type:"brush",brushId:n,areas:N(t),$from:n})}}),s({type:"brush",event:"brush"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(t){t.setAreas(e.areas)})}),s({type:"brushSelect",event:"brushSelected",update:"none"},function(){});var _S={};function wS(t,e){_S[t]=e}l=Qh.toolbox.brush;function bS(t,e,n){this.model=t,this.ecModel=e,this.api=n,this._brushType,this._brushMode}bS.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],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:N(l.title)};var u=bS.prototype,SS=(u.render=u.updateView=function(e,t,n){var i,o,a;t.eachComponent({mainType:"brush"},function(t){i=t.brushType,o=t.brushOption.brushMode||"single",a|=t.areas.length}),this._brushType=i,this._brushMode=o,E(e.get("type",!0),function(t){e.setIconStatus(t,("keep"===t?"multiple"===o:"clear"===t?a:t===i)?"emphasis":"normal")})},u.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return E(t.get("type",!0),function(t){e[t]&&(n[t]=e[t])}),n},u.onclick=function(t,e,n){var i=this._brushType,o=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===o?"single":"multiple":o}})},wS("brush",bS),pc(function(t,e){var n,i,o,a=t&&t.brush;(a=k(a)?a:a?[a]:[]).length&&(n=[],E(a,function(t){t=t.hasOwnProperty("toolbox")?t.toolbox:[];t instanceof Array&&(n=n.concat(t))}),(a=k(a=t&&t.toolbox)?a[0]:a)||(t.toolbox=[a={feature:{}}]),(t=(a=(t=a.feature||(a.feature={})).brush||(t.brush={})).type||(a.type=[])).push.apply(t,n),o={},E(i=t,function(t){o[t]=1}),i.length=0,E(o,function(t,e){i.push(e)}),e)&&!t.length&&t.push.apply(t,Rb)}),E);function MS(t){t=t&&t.visualMap;k(t)||(t=t?[t]:[]),SS(t,function(t){t&&(IS(t,"splitList")&&!IS(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList),t=t.pieces)&&k(t)&&SS(t,function(t){T(t)&&(IS(t,"start")&&!IS(t,"min")&&(t.min=t.start),IS(t,"end"))&&!IS(t,"max")&&(t.max=t.end)})})}function IS(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}h.registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?0"],k(t)&&(t=t.slice(),i=!0),e=e?t:i?[s(t[0]),s(t[1])]:s(t),nt(o)?o.replace("{value}",i?e[0]:e).replace("{value2}",i?e[1]:e):et(o)?i?o(t[0],t[1]):o(t):i?t[0]===r[0]?n[0]+" "+e[1]:t[1]===r[1]?n[1]+" "+e[0]:e[0]+" - "+e[1]:e;function s(t){return t===r[0]?"min":t===r[1]?"max":(+t).toFixed(Math.min(a,20))}},resetExtent:function(){var t=this.option,t=NS([t.min,t.max]);this._dataExtent=t},getDataDimension:function(t){var e=this.option.dimension,n=t.dimensions;if(null!=e||n.length){if(null!=e)return t.getDimension(e);for(var i=t.dimensions,o=i.length-1;0<=o;o--){var a=i[o];if(!t.getDimensionInfo(a).isCalculationCoord)return a}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),o=e.controller||(e.controller={}),l=(p(i,n),p(o,n),this.isCategory());function a(i){kS(e.color)&&!i.inRange&&(i.inRange={color:e.color.slice().reverse()}),i.inRange=i.inRange||{color:t.get("gradientColor")},PS(this.stateList,function(t){var e,n=i[t];nt(n)&&((e=DS(n,"active",l))?(i[t]={},i[t][n]=e):delete i[t])},this)}a.call(this,i),a.call(this,o),function(t,e,n){var e=t[e],i=t[n];e&&!i&&(i=t[n]={},PS(e,function(t,e){var n;S.isValidType(e)&&null!=(n=DS(e,"inactive",l))&&(i[e]=n,"color"!==e||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}))}.call(this,i,"inRange","outOfRange"),function(o){var a=(o.inRange||{}).symbol||(o.outOfRange||{}).symbol,r=(o.inRange||{}).symbolSize||(o.outOfRange||{}).symbolSize,s=this.get("inactiveColor");PS(this.stateList,function(t){var e,n=this.itemSize,i=o[t],t=(null==(i=i||(o[t]={color:l?s:[s]})).symbol&&(i.symbol=a&&N(a)||(l?"roundRect":["roundRect"])),null==i.symbolSize&&(i.symbolSize=r&&N(r)||(l?n[0]:[n[0],n[0]])),i.symbol=CS(i.symbol,function(t){return"none"===t||"square"===t?"roundRect":t}),i.symbolSize);null!=t&&(e=-1/0,LS(t,function(t){ee[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},completeVisualOption:function(){ES.prototype.completeVisualOption.apply(this,arguments),E(this.stateList,function(t){t=this.option.controller[t].symbolSize;t&&t[0]!==t[1]&&(t[0]=0)},this)},setSelected:function(t){this.option.range=t.slice(),this._resetRange()},getSelected:function(){var t=this.getExtent(),e=fs((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?"inRange":"outOfRange"},findTargetDataIndices:function(i){var o=[];return this.eachTargetSeries(function(t){var n=[],e=t.getData();e.each(this.getDataDimension(e),function(t,e){i[0]<=t&&t<=i[1]&&n.push(e)},this),o.push({seriesId:t.id,dataIndex:n})},this),o},getVisualMeta:function(n){var t=BS(0,0,this.getExtent()),e=BS(0,0,this.option.range.slice()),i=[];function o(t,e){i.push({value:t,color:n(t,e)})}for(var a=0,r=0,s=e.length,l=t.length;rt[1])break;n.push({color:this.getControllerVisual(a,"color",e),offset:o/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},_createBarPoints:function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new z("horizontal"!==e||n?"horizontal"===e&&n?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==e||n?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:"bottom"===t?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(n,i){var o,a,r,s;this._useHandle&&(o=this._shapes,a=this.visualMapModel,r=o.handleThumbs,s=o.handleLabels,FS([0,1],function(t){var e=r[t],e=(e.setStyle("fill",i.handlesColor[t]),e.position[1]=n[t],Qr(o.handleLabelPoints[t],Jr(e,this.group)));s[t].setStyle({x:e[0],y:e[1],text:a.formatValueText(this._dataInterval[t]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===t?"bottom":"top":"left",o.barGroup)})},this))},_showIndicator:function(t,e,n,i){var o,a=this.visualMapModel,r=a.getExtent(),s=a.itemSize,l=[0,s[1]],r=WS(t,r,l,!0),l=this._shapes,h=l.indicator;h&&(h.position[1]=r,h.attr("invisible",!1),h.setShape("points",(o=!!n,i=i,r=r,s=s[1],o?[[0,-HS(i,ZS(r,0))],[6,0],[0,HS(i,ZS(s-r,0))]]:[[0,0],[5,-5],[5,5]])),o=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),h.setStyle("fill",o),i=Qr(l.indicatorLabelPoint,Jr(h,this.group)),(s=l.indicatorLabel).attr("invisible",!1),r=this._applyTransform("left",l.barGroup),t=this._orient,s.setStyle({text:(n||"")+a.formatValueText(e),textVerticalAlign:"horizontal"===t?r:"middle",textAlign:"horizontal"===t?"center":r,x:i[0],y:i[1]}))},_enableHoverLinkToSeries:function(){var n=this;this._shapes.barGroup.on("mousemove",function(t){var e;n._hovering=!0,n._dragging||(e=n.visualMapModel.itemSize,(t=n._applyTransform([t.offsetX,t.offsetY],n._shapes.barGroup,!0,!0))[1]=HS(ZS(0,t[1]),e[1]),n._doHoverLinkToSeries(t[1],0<=t[0]&&t[0]<=e[0]))}).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 n,i,o,a=this.visualMapModel,r=a.itemSize;function s(t,e,n){for(var i=0,o=t.length;i ",o):this._showIndicator(t,t,"≈ ",o)),r=this._hoverLinkDataIndices,i=[],(e||YS(a))&&(i=this._hoverLinkDataIndices=a.findTargetDataIndices(n)),t=i,o={},s(r||[],e={}),s(t||[],o,e),a=[l(e),l(o)],this._dispatchHighDown("downplay",GS(a[0])),this._dispatchHighDown("highlight",GS(a[1])))},_hoverLinkFromSeriesMouseOver:function(t){var e,t=t.target,n=this.visualMapModel;t&&null!=t.dataIndex&&(e=this.ecModel.getSeriesByIndex(t.seriesIndex),n.isTargetSeries(e))&&(n=(e=e.getData(t.dataType)).get(n.getDataDimension(e),t.dataIndex,!0),isNaN(n)||this._showIndicator(n,n))},_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",GS(t)),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,n,i){e=Jr(e,i?null:this.group);return os[k(t)?"applyTransform":"transformDirection"](t,e,n)},_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 XS(t,e,n,i){return new or({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){Ai(t.event)},ondragend:i})}function YS(t){var e=t.get("hoverLinkOnHandle");return null==e?t.get("realtime"):e}function jS(t){return"vertical"===t?"ns-resize":"ew-resize"}s({type:"selectDataRange",event:"dataRangeSelected",update:"update"},function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(t){t.setSelected(e.selected)})}),pc(MS);var qS=ES.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){qS.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var n=this._mode=this._determineMode(),i=(KS[this._mode].call(this),this._resetSelected(t,e),this.option.categories);this.resetVisual(function(t,e){"categories"===n?(t.mappingMethod="category",t.categories=N(i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=I(this._pieceList,function(t){t=N(t);return"inRange"!==e&&(t.visual=null),t}))})},completeVisualOption:function(){var i=this.option,n={},t=S.listVisualTypes(),o=this.isCategory();function a(t,e,n){return t&&t[e]&&(T(t[e])?t[e].hasOwnProperty(n):t[e]===n)}E(i.pieces,function(e){E(t,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),E(n,function(t,e){var n=0;E(this.stateList,function(t){n|=a(i,t,e)||a(i.target,t,e)},this),n||E(this.stateList,function(t){(i[t]||(i[t]={}))[e]=DS(e,"inRange"===t?"active":"inactive",o)})},this),ES.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(t,e){var n,i=this.option,o=this._pieceList,a=(e?i:t).selected||{};i.selected=a,E(o,function(t,e){t=this.getSelectedMapKey(t);a.hasOwnProperty(t)||(a[t]=!0)},this),"single"===i.selectedMode&&(n=!1,E(o,function(t,e){t=this.getSelectedMapKey(t);a[t]&&(n?a[t]=!1:n=!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&&0n&&s([n,t[0]],"outOfRange"),s(t.slice()),n=t[1])},this),{stops:o,outerColors:a};function s(t,e){var n=r.getRepresentValue({interval:t}),n=(e=e||r.getValueState(n),i(n,e));t[0]===-1/0?a[0]=n:t[1]===1/0?a[1]=n:o.push({value:t[0],color:n},{value:t[1],color:n})}}}),KS={splitNumber:function(){var t=this.option,e=this._pieceList,n=Math.min(t.precision,20),i=this.getExtent(),o=t.splitNumber,o=Math.max(parseInt(o,10),1);t.splitNumber=o;for(var a=(i[1]-i[0])/o;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n;var a=+a.toFixed(n),r=0;t.minOpen&&e.push({index:r++,interval:[-1/0,i[0]],close:[0,0]});for(var s=i[0],l=r+o;ro[1]&&console.warn("Piece "+e+"is illegal: "+o+" lower bound should not greater then uppper bound."),o[0]===o[1]&&a[0]&&a[1]&&(n.value=o[0])}n.visual=S.retrieveVisuals(t),d.push(n)},this),$S(t,d),As(d),E(d,function(t){var e=t.close,e=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,e)},this)}};function $S(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}ss.extend({type:"visualMap.piecewise",doRender:function(){var i=this.group,o=(i.removeAll(),this.visualMapModel),a=o.get("textGap"),t=o.textStyleModel,r=t.getFont(),s=t.getTextColor(),l=this._getItemAlign(),h=o.itemSize,t=this._getViewData(),e=t.endsText,u=st(o.get("showLabel",!0),!e);e&&this._renderEndsText(i,e[0],h,u,l),E(t.viewPieceList,function(t){var e=t.piece,n=new z,t=(n.onclick=D(this._onItemClick,this,e),this._enableHoverLink(n,t.indexInModelPieceList),o.getRepresentValue(e));this._createItemSymbol(n,t,[0,0,h[0],h[1]]),u&&(t=this.visualMapModel.getValueState(t),n.add(new R({style:{x:"right"===l?-a:h[0]+a,y:h[1]/2,text:e.text,textVerticalAlign:"middle",textAlign:l,textFont:r,textFill:s,opacity:"outOfRange"===t?.5:1}})));i.add(n)},this),e&&this._renderEndsText(i,e[1],h,u,l),qs(o.get("orient"),i,o.get("itemGap")),this.renderBackground(i),this.positionGroup(i)},_enableHoverLink:function(t,n){function e(t){var e=this.visualMapModel;e.option.hoverLink&&this.api.dispatchAction({type:t,batch:GS(e.findTargetDataIndices(n))})}t.on("mouseover",D(e,this,"highlight")).on("mouseout",D(e,this,"downplay"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;return"vertical"===e.orient?VS(t,this.api,t.itemSize):(t=e.align)&&"auto"!==t?t:"left"},_renderEndsText:function(t,e,n,i,o){var a,r;e&&(a=new z,r=this.visualMapModel.textStyleModel,a.add(new R({style:{x:i?"right"===o?n[0]:0:n[0]/2,y:n[1]/2,textVerticalAlign:"middle",textAlign:i?o:"center",text:e,textFont:r.getFont(),textFill:r.getTextColor()}})),t.add(a))},_getViewData:function(){var t=this.visualMapModel,e=I(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),n=t.get("text"),i=t.get("orient"),t=t.get("inverse");return("horizontal"===i?t:!t)?e.reverse():n=n&&n.slice().reverse(),{viewPieceList:e,endsText:n}},_createItemSymbol:function(t,e,n){t.add(Qd(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},_onItemClick:function(t){var e=this.visualMapModel,n=e.option,i=N(n.selected),o=e.getSelectedMapKey(t);"single"===n.selectedMode?(i[o]=!0,E(i,function(t,e){i[e]=e===o})):i[o]=!i[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}}),pc(MS);var JS=_c({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){JS.superApply(this,"optionUpdated",arguments),E(this.option.feature,function(t,e){e=_S[e];e&&p(t,e.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}}}});wc({type:"toolbox",render:function(d,p,g,f){var m,y,v,x,t,e,n,i,o,a,_=this.group;function r(t,e){var n,i,o,a,r,s,l,h,t=x[t],e=x[e],u=new w(y[t],d,d.ecModel);if(t&&!e){if(0===t.indexOf("my"))n={model:u,onclick:u.option.onclick,featureName:t};else{var c=_S[t];if(!c)return;n=new c(u,p,g)}v[t]=n}else{if(!(n=v[e]))return;n.model=u,n.ecModel=p,n.api=g}!t&&e?n.dispose&&n.dispose(p,g):!u.get("show")||n.unusable?n.remove&&n.remove(p,g):(o=n,c=t,a=(i=u).getModel("iconStyle"),r=i.getModel("emphasis.iconStyle"),e=o.getIcons?o.getIcons():i.get("icon"),s=i.get("title")||{},"string"==typeof e&&(t=e,l=s,s={},(e={})[c]=t,s[c]=l),h=i.iconPaths={},E(e,function(t,e){var n=is(t,{},{x:-m/2,y:-m/2,width:m,height:m});n.setStyle(a.getItemStyle()),n.hoverStyle=r.getItemStyle(),Fr(n),d.get("showTitle")&&(n.__title=s[e],n.on("mouseover",function(){var t=r.getItemStyle();n.setStyle({text:s[e],textPosition:t.textPosition||"bottom",textFill:t.fill||t.stroke||"#000",textAlign:t.textAlign||"center"})}).on("mouseout",function(){n.setStyle({textFill:null})})),n.trigger(i.get("iconStatus."+e)||"normal"),_.add(n),n.on("click",D(o.onclick,o,p,g,e)),h[e]=n}),u.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&i[t].trigger(e)},n.render&&n.render(u,p,g,f))}_.removeAll(),d.get("show")&&(m=+d.get("itemSize"),y=d.get("feature")||{},v=this._features||(this._features={}),x=[],E(y,function(t,e){x.push(e)}),new Tc(this._featureNames||[],x).add(r).update(r).remove(L(r,null)).execute(),this._featureNames=x,t=_,n=g,i=(e=d).getBoxLayoutParams(),o=e.get("padding"),n={width:n.getWidth(),height:n.getHeight()},a=Ks(i,n,o),qs(e.get("orient"),t,e.get("itemGap"),a.width,a.height),$s(t,i,n,o),_.add(q_(_.getBoundingRect(),d)),_.eachChild(function(t){var e,n,i=t.__title,o=t.hoverStyle;o&&i&&(i=Vn(i,qn(o)),e=t.position[0]+_.position[0],n=!1,t.position[1]+_.position[1]+m+i.height>g.getHeight()&&(o.textPosition="top",n=!0),t=n?-5-i.height:m+8,e+i.width/2>g.getWidth()?(o.textPosition=["100%",t],o.textAlign="right"):e-i.width/2<0&&(o.textPosition=[0,t],o.textAlign="left"))}))},updateView:function(t,e,n,i){E(this._features,function(t){t.updateView&&t.updateView(t.model,e,n,i)})},remove:function(e,n){E(this._features,function(t){t.remove&&t.remove(e,n)}),this.group.removeAll()},dispose:function(e,n){E(this._features,function(t){t.dispose&&t.dispose(e,n)})}});l=Qh.toolbox.saveAsImage;function QS(t){this.model=t}QS.defaultOption={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:l.title,type:"png",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:l.lang.slice()},QS.prototype.unusable=!y.canvasSupported;QS.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o=document.createElement("a"),a=n.get("type",!0)||"png",e=(o.download=i+"."+a,o.target="_blank",e.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}));if(o.href=e,"function"!=typeof MouseEvent||y.browser.ie||y.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var r=atob(e.split(",")[1]),s=r.length,l=new Uint8Array(s);s--;)l[s]=r.charCodeAt(s);t=new Blob([l]);window.navigator.msSaveOrOpenBlob(t,i+"."+a)}else{t=n.get("lang"),i='';window.open().document.write(i)}else{a=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});o.dispatchEvent(a)}},wS("saveAsImage",QS);u=Qh.toolbox.magicType;function tM(t){this.model=t}tM.defaultOption={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",tiled:"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z"},title:N(u.title),option:{},seriesIndex:{}};var n=tM.prototype,eM=(n.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return E(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n},{line:function(t,e,n,i){if("bar"===t)return p({id:e,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(t,e,n,i){if("line"===t)return p({id:e,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(t,e,n,i){if("line"===t||"bar"===t)return p({id:e,stack:"__ec_magicType_stack__"},i.get("option.stack")||{},!0)},tiled:function(t,e,n,i){if("line"===t||"bar"===t)return p({id:e,stack:""},i.get("option.tiled")||{},!0)}}),nM=[["line","bar"],["stack","tiled"]],ss=(n.onclick=function(r,t,s){var l,h=this.model,e=h.get("seriesIndex."+s);eM[s]&&(l={series:[]},E(nM,function(t){0<=f(t,s)&&E(t,function(t){h.setIconStatus(t,"normal")})}),h.setIconStatus(s,"emphasis"),r.eachComponent({mainType:"series",query:null==e?null:{seriesIndex:e}},function(t){var e=t.subType,n=t.id,e=eM[s](e,n,t,h),n=(e&&(C(e,t.option),l.series.push(e)),t.coordinateSystem);if(n&&"cartesian2d"===n.type&&("line"===s||"bar"===s)){e=n.getAxesByScale("ordinal")[0];if(e){var i=e.dim+"Axis",o=r.queryComponents({mainType:i,index:t.get(name+"Index"),id:t.get(name+"Id")})[0].componentIndex;l[i]=l[i]||[];for(var a=0;a<=o;a++)l[i][o]=l[i][o]||{};l[i][o].boundaryGap="bar"===s}}}),t.dispatchAction({type:"changeMagicType",currentType:s,newOption:l}))},s({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)}),wS("magicType",tM),Qh.toolbox.dataView),iM=new Array(60).join("-"),oM="\t";function aM(t){o={},a=[],r=[],t.eachRawSeries(function(t){var e,n,i=t.coordinateSystem;(i&&("cartesian2d"===i.type||"polar"===i.type)&&"category"===(e=i.getBaseAxis()).type?(n=e.dim+"_"+e.index,o[n]||(o[n]={categoryAxis:e,valueAxis:i.getOtherAxis(e),series:[]},r.push({axisDim:e.dim,axisIndex:e.index})),o[n].series):a).push(t)});var o,a,r,u,t={seriesGroupByCategoryAxis:o,other:a,meta:r};return{value:tt([(u=[],E(t.seriesGroupByCategoryAxis,function(t,e){for(var n=t.categoryAxis,i=t.valueAxis.dim,o=[" "].concat(I(t.series,function(t){return t.name})),a=[n.model.getCategories()],r=(E(t.series,function(t){a.push(t.getRawData().mapArray(i,function(t){return t}))}),[o.join(oM)]),s=0;s