(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b8e66"],{"313e":function(e,t,n){"use strict";n.d(t,"a",(function(){return a["B"]}));var i=n("22b4"),a=n("aa74"),o=n("f95e"),r=n("7a29"),s=n("cbe5"),l=n("0da8"),c=n("e86a"),u=n("dd4f"),h=Math.sin,d=Math.cos,p=Math.PI,g=2*Math.PI,f=180/p,y=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},e.prototype.moveTo=function(e,t){this._add("M",e,t)},e.prototype.lineTo=function(e,t){this._add("L",e,t)},e.prototype.bezierCurveTo=function(e,t,n,i,a,o){this._add("C",e,t,n,i,a,o)},e.prototype.quadraticCurveTo=function(e,t,n,i){this._add("Q",e,t,n,i)},e.prototype.arc=function(e,t,n,i,a,o){this.ellipse(e,t,n,n,0,i,a,o)},e.prototype.ellipse=function(e,t,n,i,a,o,s,l){var c=s-o,u=!l,y=Math.abs(c),v=Object(r["j"])(y-g)||(u?c>=g:-c>=g),m=c>0?c%g:c%g+g,b=!1;b=!!v||!Object(r["j"])(y)&&m>=p===!!u;var x=e+n*d(o),_=t+i*h(o);this._start&&this._add("M",x,_);var O=Math.round(a*f);if(v){var S=1/this._p,w=(u?1:-1)*(g-S);this._add("A",n,i,O,1,+u,e+n*d(o+w),t+i*h(o+w)),S>.01&&this._add("A",n,i,O,0,+u,x,_)}else{var M=e+n*d(s),I=t+i*h(s);this._add("A",n,i,O,+b,+u,M,I)}},e.prototype.rect=function(e,t,n,i){this._add("M",e,t),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,i,a,o,r,s,l){for(var c=[],u=this._p,h=1;h<arguments.length;h++){var d=arguments[h];if(isNaN(d))return void(this._invalid=!0);c.push(Math.round(d*u)/u)}this._d.push(e+c.join(" ")),this._start="Z"===e},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),v=y,m=n("8d1d"),b=n("6d8b"),x="none",_=Math.round;function O(e){var t=e.fill;return null!=t&&t!==x}function S(e){var t=e.stroke;return null!=t&&t!==x}var w=["lineCap","miterLimit","lineJoin"],M=Object(b["map"])(w,(function(e){return"stroke-"+e.toLowerCase()}));function I(e,t,n,i){var a=null==t.opacity?1:t.opacity;if(n instanceof l["a"])e("opacity",a);else{if(O(t)){var o=Object(r["p"])(t.fill);e("fill",o.color);var c=null!=t.fillOpacity?t.fillOpacity*o.opacity*a:o.opacity*a;(i||c<1)&&e("fill-opacity",c)}else e("fill",x);if(S(t)){var u=Object(r["p"])(t.stroke);e("stroke",u.color);var h=t.strokeNoScale?n.getLineScale():1,d=h?(t.lineWidth||0)/h:0,p=null!=t.strokeOpacity?t.strokeOpacity*u.opacity*a:u.opacity*a,g=t.strokeFirst;if((i||1!==d)&&e("stroke-width",d),(i||g)&&e("paint-order",g?"stroke":"fill"),(i||p<1)&&e("stroke-opacity",p),t.lineDash){var f=Object(m["a"])(n),y=f[0],v=f[1];y&&(v=_(v||0),e("stroke-dasharray",y.join(",")),(v||i)&&e("stroke-dashoffset",v))}else i&&e("stroke-dasharray",x);for(var b=0;b<w.length;b++){var I=w[b];if(i||t[I]!==s["a"][I]){var j=t[I]||s["a"][I];j&&e(M[b],j)}}}else i&&e("stroke",x)}}var j=n("65ed"),A="http://www.w3.org/2000/svg",C="http://www.w3.org/1999/xlink",T="http://www.w3.org/2000/xmlns/",D="http://www.w3.org/XML/1998/namespace";function L(e){return document.createElementNS(A,e)}function P(e,t,n,i,a){return{tag:e,attrs:n||{},children:i,text:a,key:t}}function k(e,t){var n=[];if(t)for(var i in t){var a=t[i],o=i;!1!==a&&(!0!==a&&null!=a&&(o+='="'+a+'"'),n.push(o))}return"<"+e+" "+n.join(" ")+">"}function N(e){return"</"+e+">"}function R(e,t){t=t||{};var n=t.newline?"\n":"";function i(e){var t=e.children,a=e.tag,o=e.attrs;return k(a,o)+Object(j["a"])(e.text)+(t?""+n+Object(b["map"])(t,(function(e){return i(e)})).join(n)+n:"")+N(a)}return i(e)}function V(e,t,n){n=n||{};var i=n.newline?"\n":"",a=" {"+i,o=i+"}",r=Object(b["map"])(Object(b["keys"])(e),(function(t){return t+a+Object(b["map"])(Object(b["keys"])(e[t]),(function(n){return n+":"+e[t][n]+";"})).join(i)+o})).join(i),s=Object(b["map"])(Object(b["keys"])(t),(function(e){return"@keyframes "+e+a+Object(b["map"])(Object(b["keys"])(t[e]),(function(n){return n+a+Object(b["map"])(Object(b["keys"])(t[e][n]),(function(i){var a=t[e][n][i];return"d"===i&&(a='path("'+a+'")'),i+":"+a+";"})).join(i)+o})).join(i)+o})).join(i);return r||s?["<![CDATA[",r,s,"]]>"].join(i):""}function E(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function z(e,t,n,i){return P("svg","root",{width:e,height:t,xmlns:A,"xmlns:xlink":C,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+e+" "+t},n)}var B=n("5e76"),G=n("8582"),F=n("20c8"),H=n("d4c6"),W=n("b362"),Y={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Z="transform-origin";function X(e,t,n){var i=Object(b["extend"])({},e.shape);Object(b["extend"])(i,t),e.buildPath(n,i);var a=new v;return a.reset(Object(r["f"])(e)),n.rebuildPath(a,1),a.generateStr(),a.getStr()}function U(e,t){var n=t.originX,i=t.originY;(n||i)&&(e[Z]=n+"px "+i+"px")}var q={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function J(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function K(e,t,n){var i,a,o=e.shape.paths,r={};if(Object(b["each"])(o,(function(e){var t=E(n.zrId);t.animation=!0,Q(e,{},t,!0);var o=t.cssAnims,s=t.cssNodes,l=Object(b["keys"])(o),c=l.length;if(c){a=l[c-1];var u=o[a];for(var h in u){var d=u[h];r[h]=r[h]||{d:""},r[h].d+=d.d||""}for(var p in s){var g=s[p].animation;g.indexOf(a)>=0&&(i=g)}}})),i){t.d=!1;var s=J(r,n);return i.replace(a,s)}}function $(e){return Object(b["isString"])(e)?Y[e]?"cubic-bezier("+Y[e]+")":Object(W["a"])(e)?e:"":""}function Q(e,t,n,i){var a=e.animators,o=a.length,s=[];if(e instanceof H["a"]){var l=K(e,t,n);if(l)s.push(l);else if(!o)return}else if(!o)return;for(var c={},u=0;u<o;u++){var h=a[u],d=[h.getMaxTime()/1e3+"s"],p=$(h.getClip().easing),g=h.getDelay();p?d.push(p):d.push("linear"),g&&d.push(g/1e3+"s"),h.getLoop()&&d.push("infinite");var f=d.join(" ");c[f]=c[f]||[f,[]],c[f][1].push(h)}function y(a){var o,s=a[1],l=s.length,c={},u={},h={},d="animation-timing-function";function p(e,t,n){for(var i=e.getTracks(),a=e.getMaxTime(),o=0;o<i.length;o++){var r=i[o];if(r.needsAnimate()){var s=r.keyframes,l=r.propName;if(n&&(l=n(l)),l)for(var c=0;c<s.length;c++){var u=s[c],h=Math.round(u.time/a*100)+"%",p=$(u.easing),g=u.rawValue;(Object(b["isString"])(g)||Object(b["isNumber"])(g))&&(t[h]=t[h]||{},t[h][l]=u.rawValue,p&&(t[h][d]=p))}}}}for(var g=0;g<l;g++){var f=s[g],y=f.targetName;y?"shape"===y&&p(f,u):!i&&p(f,c)}for(var v in c){var m={};Object(G["b"])(m,e),Object(b["extend"])(m,c[v]);var x=Object(r["g"])(m),_=c[v][d];h[v]=x?{transform:x}:{},U(h[v],m),_&&(h[v][d]=_)}var O=!0;for(var v in u){h[v]=h[v]||{};var S=!o;_=u[v][d];S&&(o=new F["a"]);var w=o.len();o.reset(),h[v].d=X(e,u[v],o);var M=o.len();if(!S&&w!==M){O=!1;break}_&&(h[v][d]=_)}if(!O)for(var v in h)delete h[v].d;if(!i)for(g=0;g<l;g++){f=s[g],y=f.targetName;"style"===y&&p(f,h,(function(e){return q[e]}))}var I,j=Object(b["keys"])(h),A=!0;for(g=1;g<j.length;g++){var C=j[g-1],T=j[g];if(h[C][Z]!==h[T][Z]){A=!1;break}I=h[C][Z]}if(A&&I){for(var v in h)h[v][Z]&&delete h[v][Z];t[Z]=I}if(Object(b["filter"])(j,(function(e){return Object(b["keys"])(h[e]).length>0})).length){var D=J(h,n);return D+" "+a[0]+" both"}}for(var v in c){l=y(c[v]);l&&s.push(l)}if(s.length){var m=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+m]={animation:s.join(",")},t["class"]=m}}var ee=n("76a5"),te=n("726e"),ne=Math.round;function ie(e){return e&&Object(b["isString"])(e.src)}function ae(e){return e&&Object(b["isFunction"])(e.toDataURL)}function oe(e,t,n,i){I((function(a,o){var s="fill"===a||"stroke"===a;s&&Object(r["k"])(o)?be(t,e,a,i):s&&Object(r["n"])(o)?xe(n,e,a,i):e[a]=o}),t,n,!1),me(n,e,i)}function re(e){return Object(r["j"])(e[0]-1)&&Object(r["j"])(e[1])&&Object(r["j"])(e[2])&&Object(r["j"])(e[3]-1)}function se(e){return Object(r["j"])(e[4])&&Object(r["j"])(e[5])}function le(e,t,n){if(t&&(!se(t)||!re(t))){var i=n?10:1e4;e.transform=re(t)?"translate("+ne(t[4]*i)/i+" "+ne(t[5]*i)/i+")":Object(r["e"])(t)}}function ce(e,t,n){for(var i=e.points,a=[],o=0;o<i.length;o++)a.push(ne(i[o][0]*n)/n),a.push(ne(i[o][1]*n)/n);t.points=a.join(" ")}function ue(e){return!e.smooth}function he(e){var t=Object(b["map"])(e,(function(e){return"string"===typeof e?[e,e]:e}));return function(e,n,i){for(var a=0;a<t.length;a++){var o=t[a],r=e[o[0]];null!=r&&(n[o[1]]=ne(r*i)/i)}}}var de={circle:[he(["cx","cy","r"])],polyline:[ce,ue],polygon:[ce,ue]};function pe(e){for(var t=e.animators,n=0;n<t.length;n++)if("shape"===t[n].targetName)return!0;return!1}function ge(e,t){var n=e.style,i=e.shape,a=de[e.type],o={},s=t.animation,l="path",c=e.style.strokePercent,u=t.compress&&Object(r["f"])(e)||4;if(!a||t.willUpdate||a[1]&&!a[1](i)||s&&pe(e)||c<1){var h=!e.path||e.shapeChanged();e.path||e.createPathProxy();var d=e.path;h&&(d.beginPath(),e.buildPath(d,e.shape),e.pathUpdated());var p=d.getVersion(),g=e,f=g.__svgPathBuilder;g.__svgPathVersion===p&&f&&c===g.__svgPathStrokePercent||(f||(f=g.__svgPathBuilder=new v),f.reset(u),d.rebuildPath(f,c),f.generateStr(),g.__svgPathVersion=p,g.__svgPathStrokePercent=c),o.d=f.getStr()}else{l=e.type;var y=Math.pow(10,u);a[0](i,o,y)}return le(o,e.transform),oe(o,n,e,t),t.animation&&Q(e,o,t),P(l,e.id+"",o)}function fe(e,t){var n=e.style,i=n.image;if(i&&!Object(b["isString"])(i)&&(ie(i)?i=i.src:ae(i)&&(i=i.toDataURL())),i){var a=n.x||0,o=n.y||0,r=n.width,s=n.height,l={href:i,width:r,height:s};return a&&(l.x=a),o&&(l.y=o),le(l,e.transform),oe(l,n,e,t),t.animation&&Q(e,l,t),P("image",e.id+"",l)}}function ye(e,t){var n=e.style,i=n.text;if(null!=i&&(i+=""),i&&!isNaN(n.x)&&!isNaN(n.y)){var a=n.font||te["a"],o=n.x||0,s=Object(r["b"])(n.y||0,Object(c["e"])(a),n.textBaseline),l=r["a"][n.textAlign]||n.textAlign,u={"dominant-baseline":"central","text-anchor":l};if(Object(ee["b"])(n)){var h="",d=n.fontStyle,p=Object(ee["c"])(n.fontSize);if(!parseFloat(p))return;var g=n.fontFamily||te["b"],f=n.fontWeight;h+="font-size:"+p+";font-family:"+g+";",d&&"normal"!==d&&(h+="font-style:"+d+";"),f&&"normal"!==f&&(h+="font-weight:"+f+";"),u.style=h}else u.style="font: "+a;return i.match(/\s/)&&(u["xml:space"]="preserve"),o&&(u.x=o),s&&(u.y=s),le(u,e.transform),oe(u,n,e,t),t.animation&&Q(e,u,t),P("text",e.id+"",u,void 0,i)}}function ve(e,t){return e instanceof s["b"]?ge(e,t):e instanceof l["a"]?fe(e,t):e instanceof u["a"]?ye(e,t):void 0}function me(e,t,n){var i=e.style;if(Object(r["i"])(i)){var a=Object(r["h"])(e),o=n.shadowCache,s=o[a];if(!s){var l=e.getGlobalScale(),c=l[0],u=l[1];if(!c||!u)return;var h=i.shadowOffsetX||0,d=i.shadowOffsetY||0,p=i.shadowBlur,g=Object(r["p"])(i.shadowColor),f=g.opacity,y=g.color,v=p/2/c,m=p/2/u,b=v+" "+m;s=n.zrId+"-s"+n.shadowIdx++,n.defs[s]=P("filter",s,{id:s,x:"-100%",y:"-100%",width:"300%",height:"300%"},[P("feDropShadow","",{dx:h/c,dy:d/u,stdDeviation:b,"flood-color":y,"flood-opacity":f})]),o[a]=s}t.filter=Object(r["d"])(s)}}function be(e,t,n,i){var a,o=e[n],s={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(Object(r["m"])(o))a="linearGradient",s.x1=o.x,s.y1=o.y,s.x2=o.x2,s.y2=o.y2;else{if(!Object(r["o"])(o))return void 0;a="radialGradient",s.cx=Object(b["retrieve2"])(o.x,.5),s.cy=Object(b["retrieve2"])(o.y,.5),s.r=Object(b["retrieve2"])(o.r,.5)}for(var l=o.colorStops,c=[],u=0,h=l.length;u<h;++u){var d=100*Object(r["q"])(l[u].offset)+"%",p=l[u].color,g=Object(r["p"])(p),f=g.color,y=g.opacity,v={offset:d};v["stop-color"]=f,y<1&&(v["stop-opacity"]=y),c.push(P("stop",u+"",v))}var m=P(a,"",s,c),x=R(m),_=i.gradientCache,O=_[x];O||(O=i.zrId+"-g"+i.gradientIdx++,_[x]=O,s.id=O,i.defs[O]=P(a,O,s,c)),t[n]=Object(r["d"])(O)}function xe(e,t,n,i){var a,o=e.style[n],s=e.getBoundingRect(),l={},c=o.repeat,u="no-repeat"===c,h="repeat-x"===c,d="repeat-y"===c;if(Object(r["l"])(o)){var p=o.imageWidth,g=o.imageHeight,f=void 0,y=o.image;if(Object(b["isString"])(y)?f=y:ie(y)?f=y.src:ae(y)&&(f=y.toDataURL()),"undefined"===typeof Image){var v="Image width/height must been given explictly in svg-ssr renderer.";Object(b["assert"])(p,v),Object(b["assert"])(g,v)}else if(null==p||null==g){var m=function(e,t){if(e){var n=e.elm,i=p||t.width,a=g||t.height;"pattern"===e.tag&&(h?(a=1,i/=s.width):d&&(i=1,a/=s.height)),e.attrs.width=i,e.attrs.height=a,n&&(n.setAttribute("width",i),n.setAttribute("height",a))}},x=Object(B["a"])(f,null,e,(function(e){u||m(w,e),m(a,e)}));x&&x.width&&x.height&&(p=p||x.width,g=g||x.height)}a=P("image","img",{href:f,width:p,height:g}),l.width=p,l.height=g}else o.svgElement&&(a=Object(b["clone"])(o.svgElement),l.width=o.svgWidth,l.height=o.svgHeight);if(a){var _,O;u?_=O=1:h?(O=1,_=l.width/s.width):d?(_=1,O=l.height/s.height):l.patternUnits="userSpaceOnUse",null==_||isNaN(_)||(l.width=_),null==O||isNaN(O)||(l.height=O);var S=Object(r["g"])(o);S&&(l.patternTransform=S);var w=P("pattern","",l,[a]),M=R(w),I=i.patternCache,j=I[M];j||(j=i.zrId+"-p"+i.patternIdx++,I[M]=j,l.id=j,w=i.defs[j]=P("pattern",j,l,[a])),t[n]=Object(r["d"])(j)}}function _e(e,t,n){var i=n.clipPathCache,a=n.defs,o=i[e.id];if(!o){o=n.zrId+"-c"+n.clipPathIdx++;var s={id:o};i[e.id]=o,a[o]=P("clipPath",o,s,[ge(e,n)])}t["clip-path"]=Object(r["d"])(o)}function Oe(e){return document.createTextNode(e)}function Se(e,t,n){e.insertBefore(t,n)}function we(e,t){e.removeChild(t)}function Me(e,t){e.appendChild(t)}function Ie(e){return e.parentNode}function je(e){return e.nextSibling}function Ae(e,t){e.textContent=t}var Ce=58,Te=120,De=P("","");function Le(e){return void 0===e}function Pe(e){return void 0!==e}function ke(e,t,n){for(var i={},a=t;a<=n;++a){var o=e[a].key;void 0!==o&&(i[o]=a)}return i}function Ne(e,t){var n=e.key===t.key,i=e.tag===t.tag;return i&&n}function Re(e){var t,n=e.children,i=e.tag;if(Pe(i)){var a=e.elm=L(i);if(ze(De,e),Object(b["isArray"])(n))for(t=0;t<n.length;++t){var o=n[t];null!=o&&Me(a,Re(o))}else Pe(e.text)&&!Object(b["isObject"])(e.text)&&Me(a,Oe(e.text))}else e.elm=Oe(e.text);return e.elm}function Ve(e,t,n,i,a){for(;i<=a;++i){var o=n[i];null!=o&&Se(e,Re(o),t)}}function Ee(e,t,n,i){for(;n<=i;++n){var a=t[n];if(null!=a)if(Pe(a.tag)){var o=Ie(a.elm);we(o,a.elm)}else we(e,a.elm)}}function ze(e,t){var n,i=t.elm,a=e&&e.attrs||{},o=t.attrs||{};if(a!==o){for(n in o){var r=o[n],s=a[n];s!==r&&(!0===r?i.setAttribute(n,""):!1===r?i.removeAttribute(n):n.charCodeAt(0)!==Te?i.setAttribute(n,r):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS(T,n,r):n.charCodeAt(3)===Ce?i.setAttributeNS(D,n,r):n.charCodeAt(5)===Ce?i.setAttributeNS(C,n,r):i.setAttribute(n,r))}for(n in a)n in o||i.removeAttribute(n)}}function Be(e,t,n){var i,a,o,r,s=0,l=0,c=t.length-1,u=t[0],h=t[c],d=n.length-1,p=n[0],g=n[d];while(s<=c&&l<=d)null==u?u=t[++s]:null==h?h=t[--c]:null==p?p=n[++l]:null==g?g=n[--d]:Ne(u,p)?(Ge(u,p),u=t[++s],p=n[++l]):Ne(h,g)?(Ge(h,g),h=t[--c],g=n[--d]):Ne(u,g)?(Ge(u,g),Se(e,u.elm,je(h.elm)),u=t[++s],g=n[--d]):Ne(h,p)?(Ge(h,p),Se(e,h.elm,u.elm),h=t[--c],p=n[++l]):(Le(i)&&(i=ke(t,s,c)),a=i[p.key],Le(a)?Se(e,Re(p),u.elm):(o=t[a],o.tag!==p.tag?Se(e,Re(p),u.elm):(Ge(o,p),t[a]=void 0,Se(e,o.elm,u.elm))),p=n[++l]);(s<=c||l<=d)&&(s>c?(r=null==n[d+1]?null:n[d+1].elm,Ve(e,r,n,l,d)):Ee(e,t,s,c))}function Ge(e,t){var n=t.elm=e.elm,i=e.children,a=t.children;e!==t&&(ze(e,t),Le(t.text)?Pe(i)&&Pe(a)?i!==a&&Be(n,i,a):Pe(a)?(Pe(e.text)&&Ae(n,""),Ve(n,null,a,0,a.length-1)):Pe(i)?Ee(n,i,0,i.length-1):Pe(e.text)&&Ae(n,""):e.text!==t.text&&(Pe(i)&&Ee(n,i,0,i.length-1),Ae(n,t.text)))}function Fe(e,t){if(Ne(e,t))Ge(e,t);else{var n=e.elm,i=Ie(n);Re(t),null!==i&&(Se(i,t.elm,je(n)),Ee(i,[e],0,0))}return t}var He=n("3437"),We=0,Ye=function(){function e(e,t,n){if(this.type="svg",this.refreshHover=Ze("refreshHover"),this.configLayer=Ze("configLayer"),this.storage=t,this._opts=n=Object(b["extend"])({},n),this.root=e,this._id="zr"+We++,this._oldVNode=z(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=L("svg");ze(null,this._oldVNode),i.appendChild(a),e.appendChild(i)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",Fe(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return ve(e,E(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=E(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress;var o=[],r=this._bgVNode=Xe(n,i,this._backgroundColor,a);r&&o.push(r);var s=e.compress?null:this._mainVNode=P("g","main",{},[]);this._paintList(t,a,s?s.children:o),s&&o.push(s);var l=Object(b["map"])(Object(b["keys"])(a.defs),(function(e){return a.defs[e]}));if(l.length&&o.push(P("defs","defs",{},l)),e.animation){var c=V(a.cssNodes,a.cssAnims,{newline:!0});if(c){var u=P("style","stl",{},[],c);o.push(u)}}return z(n,i,o,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},R(this.renderToVNode({animation:Object(b["retrieve2"])(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Object(b["retrieve2"])(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var i,a,o=e.length,r=[],s=0,l=0,c=0;c<o;c++){var u=e[c];if(!u.invisible){var h=u.__clipPaths,d=h&&h.length||0,p=a&&a.length||0,g=void 0;for(g=Math.max(d-1,p-1);g>=0;g--)if(h&&a&&h[g]===a[g])break;for(var f=p-1;f>g;f--)s--,i=r[s-1];for(var y=g+1;y<d;y++){var v={};_e(h[y],v,t);var m=P("g","clip-g-"+l++,v,[]);(i?i.children:n).push(m),r[s++]=m,i=m}a=h;var b=ve(u,t);b&&(i?i.children:n).push(b)}}},e.prototype.resize=function(e,t){var n=this._opts,i=this.root,a=this._viewport;if(null!=e&&(n.width=e),null!=t&&(n.height=t),i&&a&&(a.style.display="none",e=Object(He["b"])(i,0,n),t=Object(He["b"])(i,1,n),a.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,a){var o=a.style;o.width=e+"px",o.height=t+"px"}if(Object(r["n"])(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",t))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=this.renderToString(),n="data:image/svg+xml;";return e?(t=Object(r["c"])(t),t&&n+"base64,"+t):n+"charset=UTF-8,"+encodeURIComponent(t)},e}();function Ze(e){return function(){0}}function Xe(e,t,n,i){var a;if(n&&"none"!==n)if(a=P("rect","bg",{width:e,height:t,x:"0",y:"0",id:"0"}),Object(r["k"])(n))be({fill:n},a.attrs,"fill",i);else if(Object(r["n"])(n))xe({style:{fill:n},dirty:b["noop"],getBoundingRect:function(){return{width:e,height:t}}},a.attrs,"fill",i);else{var o=Object(r["p"])(n),s=o.color,l=o.opacity;a.attrs.fill=s,l<1&&(a.attrs["fill-opacity"]=l)}return a}var Ue=Ye;function qe(e){e.registerPainter("svg",Ue)}var Je=n("9ab4"),Ke=n("1830"),$e=n("4f85"),Qe=n("a15a"),et=n("2dc5"),tt=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(Je["a"])(t,e),t.prototype.getInitialData=function(e){return Object(Ke["a"])(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new et["a"],n=Object(Qe["a"])("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),a=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,r=.8*e.itemHeight,s=Object(Qe["a"])(o,(e.itemWidth-r)/2,(e.itemHeight-r)/2,r,r,e.itemStyle.fill);t.add(s),s.setStyle(e.itemStyle);var l="inherit"===e.iconRotate?a:e.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}($e["b"]),nt=tt,it=n("deca"),at=n("2306"),ot=n("861c"),rt=n("7d6c"),st=n("2b17");function lt(e,t){var n=e.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var a=Object(st["e"])(e,t,n[0]);return null!=a?a+"":null}if(i){for(var o=[],r=0;r<n.length;r++)o.push(Object(st["e"])(e,t,n[r]));return o.join(" ")}}function ct(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!Object(b["isArray"])(t))return t+"";for(var i=[],a=0;a<n.length;a++){var o=e.getDimensionIndex(n[a]);o>=0&&i.push(t[o])}return i.join(" ")}var ut=n("7837"),ht=function(e){function t(t,n,i,a){var o=e.call(this)||this;return o.updateData(t,n,i,a),o}return Object(Je["a"])(t,e),t.prototype._createSymbol=function(e,t,n,i,a){this.removeAll();var o=Object(Qe["a"])(e,-1,-1,2,2,null,a);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=dt,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Object(rt["r"])(this.childAt(0))},t.prototype.downplay=function(){Object(rt["C"])(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?"move":n.cursor},t.prototype.updateData=function(e,n,i,a){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",r=e.hostModel,s=t.getSymbolSize(e,n),l=o!==this._symbolType,c=a&&a.disableAnimation;if(l){var u=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,s,u)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:s[0]/2,scaleY:s[1]/2};c?h.attr(d):it["h"](h,d,r,n),Object(it["g"])(h)}if(this._updateCommon(e,n,s,i,a),l){h=this.childAt(0);if(!c){d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,it["c"](h,d,r,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,i,a){var o,r,s,c,u,h,d,p,g,f=this.childAt(0),y=e.hostModel;if(i&&(o=i.emphasisItemStyle,r=i.blurItemStyle,s=i.selectItemStyle,c=i.focus,u=i.blurScope,d=i.labelStatesModels,p=i.hoverScale,g=i.cursorStyle,h=i.emphasisDisabled),!i||e.hasItemOption){var v=i&&i.itemModel?i.itemModel:e.getItemModel(t),m=v.getModel("emphasis");o=m.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),r=v.getModel(["blur","itemStyle"]).getItemStyle(),c=m.get("focus"),u=m.get("blurScope"),h=m.get("disabled"),d=Object(ut["e"])(v),p=m.getShallow("scale"),g=v.getShallow("cursor")}var x=e.getItemVisual(t,"symbolRotate");f.attr("rotation",(x||0)*Math.PI/180||0);var _=Object(Qe["b"])(e.getItemVisual(t,"symbolOffset"),n);_&&(f.x=_[0],f.y=_[1]),g&&f.attr("cursor",g);var O=e.getItemVisual(t,"style"),S=O.fill;if(f instanceof l["a"]){var w=f.style;f.useStyle(Object(b["extend"])({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},O))}else f.__isEmptyBrush?f.useStyle(Object(b["extend"])({},O)):f.useStyle(O),f.style.decal=null,f.setColor(S,a&&a.symbolInnerColor),f.style.strokeNoScale=!0;var M=e.getItemVisual(t,"liftZ"),I=this._z2;null!=M?null==I&&(this._z2=f.z2,f.z2+=M):null!=I&&(f.z2=I,this._z2=null);var j=a&&a.useNameLabel;function A(t){return j?e.getName(t):lt(e,t)}Object(ut["g"])(f,d,{labelFetcher:y,labelDataIndex:t,defaultText:A,inheritColor:S,defaultOpacity:O.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var C=f.ensureState("emphasis");C.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=r;var T=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;C.scaleX=this._sizeX*T,C.scaleY=this._sizeY*T,this.setSymbolScale(1),Object(rt["J"])(this,c,u,h)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var i=this.childAt(0),a=Object(ot["a"])(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var r=i.getTextContent();r&&it["e"](r,{style:{opacity:0}},t,{dataIndex:a,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();it["e"](i,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:a,cb:e,removeOpt:o})},t.getSymbolSize=function(e,t){return Object(Qe["c"])(e.getItemVisual(t,"symbolSize"))},t}(et["a"]);function dt(e,t){this.parent.drift(e,t)}var pt=ht;function gt(e,t,n,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function ft(e){return null==e||Object(b["isObject"])(e)||(e={isIgnore:e}),e||{}}function yt(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Object(ut["e"])(t),cursorStyle:t.get("cursor")}}var vt=function(){function e(e){this.group=new et["a"],this._SymbolCtor=e||pt}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=ft(t);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,r=t.disableAnimation,s=yt(e),l={disableAnimation:r},c=t.getSymbolPoint||function(t){return e.getItemLayout(t)};a||n.removeAll(),e.diff(a).add((function(i){var a=c(i);if(gt(e,a,i,t)){var r=new o(e,i,s,l);r.setPosition(a),e.setItemGraphicEl(i,r),n.add(r)}})).update((function(u,h){var d=a.getItemGraphicEl(h),p=c(u);if(gt(e,p,u,t)){var g=e.getItemVisual(u,"symbol")||"circle",f=d&&d.getSymbolType&&d.getSymbolType();if(!d||f&&f!==g)n.remove(d),d=new o(e,u,s,l),d.setPosition(p);else{d.updateData(e,u,s,l);var y={x:p[0],y:p[1]};r?d.attr(y):it["h"](d,y,i)}n.add(d),e.setItemGraphicEl(u,d)}else n.remove(d)})).remove((function(e){var t=a.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}),i)})).execute(),this._getSymbolPoint=c,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){var i=e._getSymbolPoint(n);t.setPosition(i),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=yt(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function i(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=ft(n);for(var a=e.start;a<e.end;a++){var o=t.getItemLayout(a);if(gt(t,o,a,n)){var r=new this._SymbolCtor(t,a,this._seriesScope);r.traverse(i),r.setPosition(o),this.group.add(r),t.setItemGraphicEl(a,r),this._progressiveEls.push(r)}}},e.prototype.eachRendered=function(e){at["traverseElements"](this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}),n.hostModel)})):t.removeAll()},e}(),mt=vt,bt=n("ee1a");function xt(e,t,n){var i=e.getBaseAxis(),a=e.getOtherAxis(i),o=_t(a,n),r=i.dim,s=a.dim,l=t.mapDimension(s),c=t.mapDimension(r),u="x"===s||"radius"===s?1:0,h=Object(b["map"])(e.dimensions,(function(e){return t.mapDimension(e)})),d=!1,p=t.getCalculationInfo("stackResultDimension");return Object(bt["c"])(t,h[0])&&(d=!0,h[0]=p),Object(bt["c"])(t,h[1])&&(d=!0,h[1]=p),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:r,stacked:!!d,valueDim:l,baseDim:c,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function _t(e,t){var n=0,i=e.scale.getExtent();return"start"===t?n=i[0]:"end"===t?n=i[1]:Object(b["isNumber"])(t)&&!isNaN(t)?n=t:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function Ot(e,t,n,i){var a=NaN;e.stacked&&(a=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(a)&&(a=e.valueStart);var o=e.baseDataOffset,r=[];return r[o]=n.get(e.baseDim,i),r[1-o]=a,t.dataToPoint(r)}var St=n("f658");function wt(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}function Mt(e,t,n,i,a,o,r,s){for(var l=wt(e,t),c=[],u=[],h=[],d=[],p=[],g=[],f=[],y=xt(a,t,r),v=e.getLayout("points")||[],m=t.getLayout("points")||[],b=0;b<l.length;b++){var x=l[b],_=!0,O=void 0,S=void 0;switch(x.cmd){case"=":O=2*x.idx,S=2*x.idx1;var w=v[O],M=v[O+1],I=m[S],j=m[S+1];(isNaN(w)||isNaN(M))&&(w=I,M=j),c.push(w,M),u.push(I,j),h.push(n[O],n[O+1]),d.push(i[S],i[S+1]),f.push(t.getRawIndex(x.idx1));break;case"+":var A=x.idx,C=y.dataDimsForPoint,T=a.dataToPoint([t.get(C[0],A),t.get(C[1],A)]);S=2*A,c.push(T[0],T[1]),u.push(m[S],m[S+1]);var D=Ot(y,a,t,A);h.push(D[0],D[1]),d.push(i[S],i[S+1]),f.push(t.getRawIndex(A));break;case"-":_=!1}_&&(p.push(x),g.push(g.length))}g.sort((function(e,t){return f[e]-f[t]}));var L=c.length,P=Object(St["a"])(L),k=Object(St["a"])(L),N=Object(St["a"])(L),R=Object(St["a"])(L),V=[];for(b=0;b<g.length;b++){var E=g[b],z=2*b,B=2*E;P[z]=c[B],P[z+1]=c[B+1],k[z]=u[B],k[z+1]=u[B+1],N[z]=h[B],N[z+1]=h[B+1],R[z]=d[B],R[z+1]=d[B+1],V[b]=p[E]}return{current:P,next:k,stackedOnCurrent:N,stackedOnNext:R,status:V}}var It=n("48a9"),jt=n("e0d3"),At=n("4a3f"),Ct=Math.min,Tt=Math.max;function Dt(e,t){return isNaN(e)||isNaN(t)}function Lt(e,t,n,i,a,o,r,s,l){for(var c,u,h,d,p,g,f=n,y=0;y<i;y++){var v=t[2*f],m=t[2*f+1];if(f>=a||f<0)break;if(Dt(v,m)){if(l){f+=o;continue}break}if(f===n)e[o>0?"moveTo":"lineTo"](v,m),h=v,d=m;else{var b=v-c,x=m-u;if(b*b+x*x<.5){f+=o;continue}if(r>0){var _=f+o,O=t[2*_],S=t[2*_+1];while(O===v&&S===m&&y<i)y++,_+=o,f+=o,O=t[2*_],S=t[2*_+1],v=t[2*f],m=t[2*f+1],b=v-c,x=m-u;var w=y+1;if(l)while(Dt(O,S)&&w<i)w++,_+=o,O=t[2*_],S=t[2*_+1];var M=.5,I=0,j=0,A=void 0,C=void 0;if(w>=i||Dt(O,S))p=v,g=m;else{I=O-c,j=S-u;var T=v-c,D=O-v,L=m-u,P=S-m,k=void 0,N=void 0;if("x"===s){k=Math.abs(T),N=Math.abs(D);var R=I>0?1:-1;p=v-R*k*r,g=m,A=v+R*N*r,C=m}else if("y"===s){k=Math.abs(L),N=Math.abs(P);var V=j>0?1:-1;p=v,g=m-V*k*r,A=v,C=m+V*N*r}else k=Math.sqrt(T*T+L*L),N=Math.sqrt(D*D+P*P),M=N/(N+k),p=v-I*r*(1-M),g=m-j*r*(1-M),A=v+I*r*M,C=m+j*r*M,A=Ct(A,Tt(O,v)),C=Ct(C,Tt(S,m)),A=Tt(A,Ct(O,v)),C=Tt(C,Ct(S,m)),I=A-v,j=C-m,p=v-I*k/N,g=m-j*k/N,p=Ct(p,Tt(c,v)),g=Ct(g,Tt(u,m)),p=Tt(p,Ct(c,v)),g=Tt(g,Ct(u,m)),I=v-p,j=m-g,A=v+I*N/k,C=m+j*N/k}e.bezierCurveTo(h,d,p,g,v,m),h=A,d=C}else e.lineTo(v,m)}c=v,u=m,f+=o}return y}var Pt=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),kt=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return Object(Je["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Pt},t.prototype.buildPath=function(e,t){var n=t.points,i=0,a=n.length/2;if(t.connectNulls){for(;a>0;a--)if(!Dt(n[2*a-2],n[2*a-1]))break;for(;i<a;i++)if(!Dt(n[2*i],n[2*i+1]))break}while(i<a)i+=Lt(e,n,i,a,a,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,a=this.path,o=a.data,r=F["a"].CMD,s="x"===t,l=[],c=0;c<o.length;){var u=o[c++],h=void 0,d=void 0,p=void 0,g=void 0,f=void 0,y=void 0,v=void 0;switch(u){case r.M:n=o[c++],i=o[c++];break;case r.L:if(h=o[c++],d=o[c++],v=s?(e-n)/(h-n):(e-i)/(d-i),v<=1&&v>=0){var m=s?(d-i)*v+i:(h-n)*v+n;return s?[e,m]:[m,e]}n=h,i=d;break;case r.C:h=o[c++],d=o[c++],p=o[c++],g=o[c++],f=o[c++],y=o[c++];var b=s?Object(At["f"])(n,h,p,f,e,l):Object(At["f"])(i,d,g,y,e,l);if(b>0)for(var x=0;x<b;x++){var _=l[x];if(_<=1&&_>=0){m=s?Object(At["a"])(i,d,g,y,_):Object(At["a"])(n,h,p,f,_);return s?[e,m]:[m,e]}}n=f,i=y;break}}},t}(s["b"]),Nt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Je["a"])(t,e),t}(Pt),Rt=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return Object(Je["a"])(t,e),t.prototype.getDefaultShape=function(){return new Nt},t.prototype.buildPath=function(e,t){var n=t.points,i=t.stackedOnPoints,a=0,o=n.length/2,r=t.smoothMonotone;if(t.connectNulls){for(;o>0;o--)if(!Dt(n[2*o-2],n[2*o-1]))break;for(;a<o;a++)if(!Dt(n[2*a],n[2*a+1]))break}while(a<o){var s=Lt(e,n,a,o,o,1,t.smooth,r,t.connectNulls);Lt(e,i,a+s-1,s,o,-1,t.stackedOnSmooth,r,t.connectNulls),a+=s+1,e.closePath()}},t}(s["b"]),Vt=n("e8873"),Et=n("c7a2"),zt=n("4aa2"),Bt=n("3842");function Gt(e,t,n,i,a){var o=e.getArea(),r=o.x,s=o.y,l=o.width,c=o.height,u=n.get(["lineStyle","width"])||2;r-=u/2,s-=u/2,l+=u,c+=u,r=Math.floor(r),l=Math.round(l);var h=new Et["a"]({shape:{x:r,y:s,width:l,height:c}});if(t){var d=e.getBaseAxis(),p=d.isHorizontal(),g=d.inverse;p?(g&&(h.shape.x+=l),h.shape.width=0):(g||(h.shape.y+=c),h.shape.height=0);var f=Object(b["isFunction"])(a)?function(e){a(e,h)}:null;it["c"](h,{shape:{width:l,height:c,x:r,y:s}},n,null,i,f)}return h}function Ft(e,t,n){var i=e.getArea(),a=Object(Bt["w"])(i.r0,1),o=Object(Bt["w"])(i.r,1),r=new zt["a"]({shape:{cx:Object(Bt["w"])(e.cx,1),cy:Object(Bt["w"])(e.cy,1),r0:a,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(t){var s="angle"===e.getBaseAxis().dim;s?r.shape.endAngle=i.startAngle:r.shape.r=a,it["c"](r,{shape:{endAngle:i.endAngle,r:o}},n)}return r}function Ht(e,t,n,i,a){return e?"polar"===e.type?Ft(e,t,n):"cartesian2d"===e.type?Gt(e,t,n,i,a):null:null}function Wt(e,t){return e.type===t}var Yt=n("eda2"),Zt=n("41ef");function Xt(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function Ut(e){for(var t=1/0,n=1/0,i=-1/0,a=-1/0,o=0;o<e.length;){var r=e[o++],s=e[o++];isNaN(r)||(t=Math.min(r,t),i=Math.max(r,i)),isNaN(s)||(n=Math.min(s,n),a=Math.max(s,a))}return[[t,n],[i,a]]}function qt(e,t){var n=Ut(e),i=n[0],a=n[1],o=Ut(t),r=o[0],s=o[1];return Math.max(Math.abs(i[0]-r[0]),Math.abs(i[1]-r[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function Jt(e){return b["isNumber"](e)?e:e?.5:0}function Kt(e,t,n){if(!n.valueDim)return[];for(var i=t.count(),a=Object(St["a"])(2*i),o=0;o<i;o++){var r=Ot(n,e,t,o);a[2*o]=r[0],a[2*o+1]=r[1]}return a}function $t(e,t,n,i){var a=t.getBaseAxis(),o="x"===a.dim||"radius"===a.dim?0:1,r=[],s=0,l=[],c=[],u=[],h=[];if(i){for(s=0;s<e.length;s+=2)isNaN(e[s])||isNaN(e[s+1])||h.push(e[s],e[s+1]);e=h}for(s=0;s<e.length-2;s+=2)switch(u[0]=e[s+2],u[1]=e[s+3],c[0]=e[s],c[1]=e[s+1],r.push(c[0],c[1]),n){case"end":l[o]=u[o],l[1-o]=c[1-o],r.push(l[0],l[1]);break;case"middle":var d=(c[o]+u[o])/2,p=[];l[o]=p[o]=d,l[1-o]=c[1-o],p[1-o]=u[1-o],r.push(l[0],l[1]),r.push(p[0],p[1]);break;default:l[o]=c[o],l[1-o]=u[1-o],r.push(l[0],l[1])}return r.push(e[s++],e[s++]),r}function Qt(e,t){var n,i,a=[],o=e.length;function r(e,t,n){var i=e.coord,a=(n-i)/(t.coord-i),o=Object(Zt["lerp"])(a,[e.color,t.color]);return{coord:n,color:o}}for(var s=0;s<o;s++){var l=e[s],c=l.coord;if(c<0)n=l;else{if(c>t){i?a.push(r(i,l,t)):n&&a.push(r(n,l,0),r(n,l,t));break}n&&(a.push(r(n,l,0)),n=null),a.push(l),i=l}}return a}function en(e,t,n){var i=e.getVisual("visualMeta");if(i&&i.length&&e.count()&&"cartesian2d"===t.type){for(var a,o,r=i.length-1;r>=0;r--){var s=e.getDimensionInfo(i[r].dimension);if(a=s&&s.coordDim,"x"===a||"y"===a){o=i[r];break}}if(o){var l=t.getAxis(a),c=b["map"](o.stops,(function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}})),u=c.length,h=o.outerColors.slice();u&&c[0].coord>c[u-1].coord&&(c.reverse(),h.reverse());var d=Qt(c,"x"===a?n.getWidth():n.getHeight()),p=d.length;if(!p&&u)return c[0].coord<0?h[1]?h[1]:c[u-1].color:h[0]?h[0]:c[0].color;var g=10,f=d[0].coord-g,y=d[p-1].coord+g,v=y-f;if(v<.001)return"transparent";b["each"](d,(function(e){e.offset=(e.coord-f)/v})),d.push({offset:p?d[p-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:h[0]||"transparent"});var m=new It["a"](0,0,0,0,d,!0);return m[a]=f,m[a+"2"]=y,m}}}function tn(e,t,n){var i=e.get("showAllSymbol"),a="auto"===i;if(!i||a){var o=n.getAxesByScale("ordinal")[0];if(o&&(!a||!nn(o,t))){var r=t.mapDimension(o.dim),s={};return b["each"](o.getViewLabels(),(function(e){var t=o.scale.getRawOrdinalNumber(e.tickValue);s[t]=1})),function(e){return!s.hasOwnProperty(t.get(r,e))}}}}function nn(e,t){var n=e.getExtent(),i=Math.abs(n[1]-n[0])/e.scale.count();isNaN(i)&&(i=0);for(var a=t.count(),o=Math.max(1,Math.round(a/5)),r=0;r<a;r+=o)if(1.5*pt.getSymbolSize(t,r)[e.isHorizontal()?1:0]>i)return!1;return!0}function an(e,t){return isNaN(e)||isNaN(t)}function on(e){for(var t=e.length/2;t>0;t--)if(!an(e[2*t-2],e[2*t-1]))break;return t-1}function rn(e,t){return[e[2*t],e[2*t+1]]}function sn(e,t,n){for(var i,a,o=e.length/2,r="x"===n?0:1,s=0,l=-1,c=0;c<o;c++)if(a=e[2*c+r],!isNaN(a)&&!isNaN(e[2*c+1-r]))if(0!==c){if(i<=t&&a>=t||i>=t&&a<=t){l=c;break}s=c,i=a}else i=a;return{range:[s,l],t:(t-i)/(a-i)}}function ln(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<rt["g"].length;t++)if(e.get([rt["g"][t],"endLabel","show"]))return!0;return!1}function cn(e,t,n,i){if(Wt(t,"cartesian2d")){var a=i.getModel("endLabel"),o=a.get("valueAnimation"),r=i.getData(),s={lastFrameIndex:0},l=ln(i)?function(n,i){e._endLabelOnDuring(n,i,r,s,o,a,t)}:null,c=t.getBaseAxis().isHorizontal(),u=Gt(t,n,i,(function(){var t=e._endLabel;t&&n&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})}),l);if(!i.get("clip",!0)){var h=u.shape,d=Math.max(h.width,h.height);c?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)}return l&&l(1,u),u}return Ft(t,n,i)}function un(e,t){var n=t.getBaseAxis(),i=n.isHorizontal(),a=n.inverse,o=i?a?"right":"left":"center",r=i?"middle":a?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||r}}}var hn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Je["a"])(t,e),t.prototype.init=function(){var e=new et["a"],t=new mt;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},t.prototype.render=function(e,t,n){var i=this,a=e.coordinateSystem,o=this.group,r=e.getData(),s=e.getModel("lineStyle"),l=e.getModel("areaStyle"),c=r.getLayout("points")||[],u="polar"===a.type,h=this._coordSys,d=this._symbolDraw,p=this._polyline,g=this._polygon,f=this._lineGroup,y=e.get("animation"),v=!l.isEmpty(),m=l.get("origin"),x=xt(a,r,m),_=v&&Kt(a,r,x),O=e.get("showSymbol"),S=e.get("connectNulls"),w=O&&!u&&tn(e,r,a),M=this._data;M&&M.eachItemGraphicEl((function(e,t){e.__temp&&(o.remove(e),M.setItemGraphicEl(t,null))})),O||d.remove(),o.add(f);var I,j=!u&&e.get("step");a&&a.getArea&&e.get("clip",!0)&&(I=a.getArea(),null!=I.width?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var A=en(r,a,n)||r.getVisual("style")[r.getVisual("drawType")];if(p&&h.type===a.type&&j===this._step){v&&!g?g=this._newPolygon(c,_):g&&!v&&(f.remove(g),g=this._polygon=null),u||this._initOrUpdateEndLabel(e,a,Object(Yt["c"])(A));var C=f.getClipPath();if(C){var T=cn(this,a,!1,e);it["c"](C,{shape:T.shape},e)}else f.setClipPath(cn(this,a,!0,e));O&&d.updateData(r,{isIgnore:w,clipShape:I,disableAnimation:!0,getSymbolPoint:function(e){return[c[2*e],c[2*e+1]]}}),Xt(this._stackedOnPoints,_)&&Xt(this._points,c)||(y?this._doUpdateAnimation(r,_,a,n,j,m,S):(j&&(c=$t(c,a,j,S),_&&(_=$t(_,a,j,S))),p.setShape({points:c}),g&&g.setShape({points:c,stackedOnPoints:_})))}else O&&d.updateData(r,{isIgnore:w,clipShape:I,disableAnimation:!0,getSymbolPoint:function(e){return[c[2*e],c[2*e+1]]}}),y&&this._initSymbolLabelAnimation(r,a,I),j&&(c=$t(c,a,j,S),_&&(_=$t(_,a,j,S))),p=this._newPolyline(c),v?g=this._newPolygon(c,_):g&&(f.remove(g),g=this._polygon=null),u||this._initOrUpdateEndLabel(e,a,Object(Yt["c"])(A)),f.setClipPath(cn(this,a,!0,e));var D=e.getModel("emphasis"),L=D.get("focus"),P=D.get("blurScope"),k=D.get("disabled");if(p.useStyle(b["defaults"](s.getLineStyle(),{fill:"none",stroke:A,lineJoin:"bevel"})),Object(rt["I"])(p,e,"lineStyle"),p.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"])){var N=p.getState("emphasis").style;N.lineWidth=+p.style.lineWidth+1}Object(ot["a"])(p).seriesIndex=e.seriesIndex,Object(rt["J"])(p,L,P,k);var R=Jt(e.get("smooth")),V=e.get("smoothMonotone");if(p.setShape({smooth:R,smoothMonotone:V,connectNulls:S}),g){var E=r.getCalculationInfo("stackedOnSeries"),z=0;g.useStyle(b["defaults"](l.getAreaStyle(),{fill:A,opacity:.7,lineJoin:"bevel",decal:r.getVisual("style").decal})),E&&(z=Jt(E.get("smooth"))),g.setShape({smooth:R,stackedOnSmooth:z,smoothMonotone:V,connectNulls:S}),Object(rt["I"])(g,e,"areaStyle"),Object(ot["a"])(g).seriesIndex=e.seriesIndex,Object(rt["J"])(g,L,P,k)}var B=function(e){i._changePolyState(e)};r.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=B)})),this._polyline.onHoverStateChange=B,this._data=r,this._coordSys=a,this._stackedOnPoints=_,this._points=c,this._step=j,this._valueOrigin=m,e.get("triggerLineEvent")&&(this.packEventData(e,p),g&&this.packEventData(e,g))},t.prototype.packEventData=function(e,t){Object(ot["a"])(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,i){var a=e.getData(),o=jt["u"](a,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var r=a.getLayout("points"),s=a.getItemGraphicEl(o);if(!s){var l=r[2*o],c=r[2*o+1];if(isNaN(l)||isNaN(c))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,c))return;var u=e.get("zlevel")||0,h=e.get("z")||0;s=new pt(a,o),s.x=l,s.y=c,s.setZ(u,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=u,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,a.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else Vt["a"].prototype.highlight.call(this,e,t,n,i)},t.prototype.downplay=function(e,t,n,i){var a=e.getData(),o=jt["u"](a,i);if(this._changePolyState("normal"),null!=o&&o>=0){var r=a.getItemGraphicEl(o);r&&(r.__temp?(a.setItemGraphicEl(o,null),this.group.remove(r)):r.downplay())}else Vt["a"].prototype.downplay.call(this,e,t,n,i)},t.prototype._changePolyState=function(e){var t=this._polygon;Object(rt["H"])(this._polyline,e),t&&Object(rt["H"])(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new kt({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Rt({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var i,a,o=t.getBaseAxis(),r=o.inverse;"cartesian2d"===t.type?(i=o.isHorizontal(),a=!1):"polar"===t.type&&(i="angle"===o.dim,a=!0);var s=e.hostModel,l=s.get("animationDuration");b["isFunction"](l)&&(l=l(null));var c=s.get("animationDelay")||0,u=b["isFunction"](c)?c(null):c;e.eachItemGraphicEl((function(e,o){var s=e;if(s){var h=[e.x,e.y],d=void 0,p=void 0,g=void 0;if(n)if(a){var f=n,y=t.pointToCoord(h);i?(d=f.startAngle,p=f.endAngle,g=-y[1]/180*Math.PI):(d=f.r0,p=f.r,g=y[0])}else{var v=n;i?(d=v.x,p=v.x+v.width,g=e.x):(d=v.y+v.height,p=v.y,g=e.y)}var m=p===d?0:(g-d)/(p-d);r&&(m=1-m);var x=b["isFunction"](c)?c(o):l*m+u,_=s.getSymbolPath(),O=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),O&&O.animateFrom({style:{opacity:0}},{duration:300,delay:x}),_.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,n){var i=e.getModel("endLabel");if(ln(e)){var a=e.getData(),o=this._polyline,r=a.getLayout("points");if(!r)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new ee["a"]({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=on(r);l>=0&&(Object(ut["g"])(o,Object(ut["e"])(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?ct(a,n):lt(a,e)},enableTextSetter:!0},un(i,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,i,a,o,r){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var c=n.getLayout("points"),u=n.hostModel,h=u.get("connectNulls"),d=o.get("precision"),p=o.get("distance")||0,g=r.getBaseAxis(),f=g.isHorizontal(),y=g.inverse,v=t.shape,m=y?f?v.x:v.y+v.height:f?v.x+v.width:v.y,b=(f?p:0)*(y?-1:1),x=(f?0:-p)*(y?-1:1),_=f?"x":"y",O=sn(c,m,_),S=O.range,w=S[1]-S[0],M=void 0;if(w>=1){if(w>1&&!h){var I=rn(c,S[0]);s.attr({x:I[0]+b,y:I[1]+x}),a&&(M=u.getRawValue(S[0]))}else{I=l.getPointOn(m,_);I&&s.attr({x:I[0]+b,y:I[1]+x});var j=u.getRawValue(S[0]),A=u.getRawValue(S[1]);a&&(M=jt["k"](n,d,j,A,O.t))}i.lastFrameIndex=S[0]}else{var C=1===e||i.lastFrameIndex>0?S[0]:0;I=rn(c,C);a&&(M=u.getRawValue(C)),s.attr({x:I[0]+b,y:I[1]+x})}a&&Object(ut["f"])(s).setLabelText(M)}},t.prototype._doUpdateAnimation=function(e,t,n,i,a,o,r){var s=this._polyline,l=this._polygon,c=e.hostModel,u=Mt(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,o),h=u.current,d=u.stackedOnCurrent,p=u.next,g=u.stackedOnNext;if(a&&(h=$t(u.current,n,a,r),d=$t(u.stackedOnCurrent,n,a,r),p=$t(u.next,n,a,r),g=$t(u.stackedOnNext,n,a,r)),qt(h,p)>3e3||l&&qt(d,g)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:g})));s.shape.__points=u.current,s.shape.points=h;var f={shape:{points:p}};u.current!==h&&(f.shape.__points=u.next),s.stopAnimation(),it["h"](s,f,c),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),it["h"](l,{shape:{stackedOnPoints:g}},c),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var y=[],v=u.status,m=0;m<v.length;m++){var b=v[m].cmd;if("="===b){var x=e.getItemGraphicEl(v[m].idx1);x&&y.push({el:x,ptIdx:m})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var e=s.shape.__points,t=0;t<y.length;t++){var n=y[t].el,i=2*y[t].ptIdx;n.x=e[i],n.y=e[i+1],n.markRedraw()}}))},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(e,i){e.__temp&&(t.remove(e),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(Vt["a"]),dn=hn,pn=n("cccd");function gn(e,t){return{seriesType:e,plan:Object(pn["a"])(),reset:function(e){var n=e.getData(),i=e.coordinateSystem,a=e.pipelineContext,o=t||a.large;if(i){var r=Object(b["map"])(i.dimensions,(function(e){return n.mapDimension(e)})).slice(0,2),s=r.length,l=n.getCalculationInfo("stackResultDimension");Object(bt["c"])(n,r[0])&&(r[0]=l),Object(bt["c"])(n,r[1])&&(r[1]=l);var c=n.getStore(),u=n.getDimensionIndex(r[0]),h=n.getDimensionIndex(r[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,a=o&&Object(St["a"])(n*s),r=[],l=[],d=e.start,p=0;d<e.end;d++){var g=void 0;if(1===s){var f=c.get(u,d);g=i.dataToPoint(f,null,l)}else r[0]=c.get(u,d),r[1]=c.get(h,d),g=i.dataToPoint(r,null,l);o?(a[p++]=g[0],a[p++]=g[1]):t.setItemLayout(d,g.slice())}o&&t.setLayout("points",a)}}}}}}var fn={average:function(e){for(var t=0,n=0,i=0;i<e.length;i++)isNaN(e[i])||(t+=e[i],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},yn=function(e){return Math.round(e.length/2)};function vn(e){return{seriesType:e,reset:function(e,t,n){var i=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,r=i.count();if(r>10&&"cartesian2d"===o.type&&a){var s=o.getBaseAxis(),l=o.getOtherAxis(s),c=s.getExtent(),u=n.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(u||1),d=Math.round(r/h);if(isFinite(d)&&d>1){"lttb"===a&&e.setData(i.lttbDownSample(i.mapDimension(l.dim),1/d));var p=void 0;Object(b["isString"])(a)?p=fn[a]:Object(b["isFunction"])(a)&&(p=a),p&&e.setData(i.downSample(i.mapDimension(l.dim),1/d,p,yn))}}}}}function mn(e){e.registerChartView(dn),e.registerSeriesModel(nt),e.registerLayout(gn("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,vn("line"))}var bn=n("9d57"),xn=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.getInitialData=function(e,t){return Object(Ke["a"])(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var i=this.coordinateSystem;if(i&&i.clampData){var a=i.dataToPoint(i.clampData(e));if(n)Object(b["each"])(i.getAxes(),(function(n,o){if("category"===n.type){var r=n.getTicksCoords(),s=i.clampData(e)[o];!t||"x1"!==t[o]&&"y1"!==t[o]||(s+=1),s>r.length-1&&(s=r.length-1),s<0&&(s=0),r[s]&&(a[o]=n.toGlobalCoord(r[s].coord))}}));else{var o=this.getData(),r=o.getLayout("offset"),s=o.getLayout("size"),l=i.getBaseAxis().isHorizontal()?0:1;a[l]+=r+s/2}return a}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}($e["b"]);$e["b"].registerClass(xn);var _n=xn,On=n("8918"),Sn=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.getInitialData=function(){return Object(Ke["a"])(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Object(On["d"])(_n.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(_n),wn=Sn,Mn=n("88b3"),In=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return e}(),jn=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return Object(Je["a"])(t,e),t.prototype.getDefaultShape=function(){return new In},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,a=Math.max(t.r0||0,0),o=Math.max(t.r,0),r=.5*(o-a),s=a+r,l=t.startAngle,c=t.endAngle,u=t.clockwise,h=2*Math.PI,d=u?c-l<h:l-c<h;d||(l=c-(u?h:-h));var p=Math.cos(l),g=Math.sin(l),f=Math.cos(c),y=Math.sin(c);d?(e.moveTo(p*a+n,g*a+i),e.arc(p*s+n,g*s+i,r,-Math.PI+l,l,!u)):e.moveTo(p*o+n,g*o+i),e.arc(n,i,o,l,c,!u),e.arc(f*s+n,y*s+i,r,c-2*Math.PI,c-Math.PI,!u),0!==a&&e.arc(n,i,a,c,l,u)},t}(s["b"]),An=jn;function Cn(e,t){t=t||{};var n=t.isRoundCap;return function(t,i,a){var o=i.position;if(!o||o instanceof Array)return Object(c["c"])(t,i,a);var r=e(o),s=null!=i.distance?i.distance:5,l=this.shape,u=l.cx,h=l.cy,d=l.r,p=l.r0,g=(d+p)/2,f=l.startAngle,y=l.endAngle,v=(f+y)/2,m=n?Math.abs(d-p)/2:0,b=Math.cos,x=Math.sin,_=u+d*b(f),O=h+d*x(f),S="left",w="top";switch(r){case"startArc":_=u+(p-s)*b(v),O=h+(p-s)*x(v),S="center",w="top";break;case"insideStartArc":_=u+(p+s)*b(v),O=h+(p+s)*x(v),S="center",w="bottom";break;case"startAngle":_=u+g*b(f)+Dn(f,s+m,!1),O=h+g*x(f)+Ln(f,s+m,!1),S="right",w="middle";break;case"insideStartAngle":_=u+g*b(f)+Dn(f,-s+m,!1),O=h+g*x(f)+Ln(f,-s+m,!1),S="left",w="middle";break;case"middle":_=u+g*b(v),O=h+g*x(v),S="center",w="middle";break;case"endArc":_=u+(d+s)*b(v),O=h+(d+s)*x(v),S="center",w="bottom";break;case"insideEndArc":_=u+(d-s)*b(v),O=h+(d-s)*x(v),S="center",w="top";break;case"endAngle":_=u+g*b(y)+Dn(y,s+m,!0),O=h+g*x(y)+Ln(y,s+m,!0),S="left",w="middle";break;case"insideEndAngle":_=u+g*b(y)+Dn(y,-s+m,!0),O=h+g*x(y)+Ln(y,-s+m,!0),S="right",w="middle";break;default:return Object(c["c"])(t,i,a)}return t=t||{},t.x=_,t.y=O,t.align=S,t.verticalAlign=w,t}}function Tn(e,t,n,i){if(Object(b["isNumber"])(i))e.setTextConfig({rotation:i});else if(Object(b["isArray"])(t))e.setTextConfig({rotation:0});else{var a,o=e.shape,r=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(r+s)/2,c=n(t);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":a=l;break;case"startAngle":case"insideStartAngle":a=r;break;case"endAngle":case"insideEndAngle":a=s;break;default:return void e.setTextConfig({rotation:0})}var u=1.5*Math.PI-a;"middle"===c&&u>Math.PI/2&&u<1.5*Math.PI&&(u-=Math.PI),e.setTextConfig({rotation:u})}}function Dn(e,t,n){return t*Math.sin(e)*(n?-1:1)}function Ln(e,t,n){return t*Math.cos(e)*(n?1:-1)}var Pn=Math.max,kn=Math.min;function Nn(e,t){var n=e.getArea&&e.getArea();if(Wt(e,"cartesian2d")){var i=e.getBaseAxis();if("category"!==i.type||!i.onBand){var a=t.getLayout("bandWidth");i.isHorizontal()?(n.x-=a,n.width+=2*a):(n.y-=a,n.height+=2*a)}}return n}var Rn=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return Object(Je["a"])(t,e),t.prototype.render=function(e,t,n,i){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var a=e.get("coordinateSystem");("cartesian2d"===a||"polar"===a)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,i))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){Object(at["traverseElements"])(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,i){var a,o=this.group,r=e.getData(),s=this._data,l=e.coordinateSystem,c=l.getBaseAxis();"cartesian2d"===l.type?a=c.isHorizontal():"polar"===l.type&&(a="angle"===c.dim);var u=e.isAnimationEnabled()?e:null,h=zn(e,l);h&&this._enableRealtimeSort(h,r,n);var d=e.get("clip",!0)||h,p=Nn(l,r);o.removeClipPath();var g=e.get("roundCap",!0),f=e.get("showBackground",!0),y=e.getModel("backgroundStyle"),v=y.get("borderRadius")||0,m=[],b=this._backgroundEls,x=i&&i.isInitSort,_=i&&"changeAxisOrder"===i.type;function O(e){var t=Yn[l.type](r,e),n=ni(l,a,t);return n.useStyle(y.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",v),m[e]=n,n}r.diff(s).add((function(t){var n=r.getItemModel(t),i=Yn[l.type](r,t,n);if(f&&O(t),r.hasValue(t)&&Wn[l.type](i)){var s=!1;d&&(s=Vn[l.type](p,i));var y=En[l.type](e,r,t,i,a,u,c.model,!1,g);h&&(y.forceLabelAnimation=!0),Un(y,r,t,n,i,e,a,"polar"===l.type),x?y.attr({shape:i}):h?Bn(h,u,y,i,t,a,!1,!1):Object(it["c"])(y,{shape:i},e,t),r.setItemGraphicEl(t,y),o.add(y),y.ignore=s}})).update((function(t,n){var i=r.getItemModel(t),S=Yn[l.type](r,t,i);if(f){var w=void 0;0===b.length?w=O(n):(w=b[n],w.useStyle(y.getItemStyle()),"cartesian2d"===l.type&&w.setShape("r",v),m[t]=w);var M=Yn[l.type](r,t),I=ti(a,M,l);Object(it["h"])(w,{shape:I},u,t)}var j=s.getItemGraphicEl(n);if(r.hasValue(t)&&Wn[l.type](S)){var A=!1;if(d&&(A=Vn[l.type](p,S),A&&o.remove(j)),j?Object(it["g"])(j):j=En[l.type](e,r,t,S,a,u,c.model,!!j,g),h&&(j.forceLabelAnimation=!0),_){var C=j.getTextContent();if(C){var T=Object(ut["f"])(C);null!=T.prevValue&&(T.prevValue=T.value)}}else Un(j,r,t,i,S,e,a,"polar"===l.type);x?j.attr({shape:S}):h?Bn(h,u,j,S,t,a,!0,_):Object(it["h"])(j,{shape:S},e,t,null),r.setItemGraphicEl(t,j),j.ignore=A,o.add(j)}else o.remove(j)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&Object(it["f"])(n,e,t)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new et["a"]);S.removeAll();for(var w=0;w<m.length;++w)S.add(m[w]);o.add(S),this._backgroundEls=m,this._data=r},t.prototype._renderLarge=function(e,t,n){this._clear(),$n(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),$n(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)&&Ht(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var i=this;if(t.count()){var a=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var o=function(e){var n=t.getItemGraphicEl(e),i=n&&n.shape;return i&&Math.abs(a.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(t,o,a,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var i=[];return e.each(e.mapDimension(t.dim),(function(e,t){var a=n(t);a=null==a?NaN:a,i.push({dataIndex:t,mappedValue:a,ordinalNumber:e})})),i.sort((function(e,t){return t.mappedValue-e.mappedValue})),{ordinalNumbers:Object(b["map"])(i,(function(e){return e.ordinalNumber}))}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var i=n.scale,a=e.mapDimension(n.dim),o=Number.MAX_VALUE,r=0,s=i.getOrdinalMeta().categories.length;r<s;++r){var l=e.rawIndexOf(a,i.getRawOrdinalNumber(r)),c=l<0?Number.MIN_VALUE:t(e.indexOfRawIndex(l));if(c>o)return!0;o=c}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,i=n.getExtent(),a=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);a<=o;++a)if(e.ordinalNumbers[a]!==n.getRawOrdinalNumber(a))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,i){if(this._isOrderChangedWithinSameData(e,t,n)){var a=this._dataSort(e,n,t);this._isOrderDifferentInView(a,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:a}))}},t.prototype._dispatchInitSort=function(e,t,n){var i=t.baseAxis,a=this._dataSort(e,i,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:a})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){Object(it["f"])(t,e,Object(ot["a"])(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Vt["a"]),Vn={cartesian2d:function(e,t){var n=t.width<0?-1:1,i=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var a=e.x+e.width,o=e.y+e.height,r=Pn(t.x,e.x),s=kn(t.x+t.width,a),l=Pn(t.y,e.y),c=kn(t.y+t.height,o),u=s<r,h=c<l;return t.x=u&&r>a?s:r,t.y=h&&l>o?c:l,t.width=u?0:s-r,t.height=h?0:c-l,n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),u||h},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var i=t.r;t.r=t.r0,t.r0=i}var a=kn(t.r,e.r),o=Pn(t.r0,e.r0);t.r=a,t.r0=o;var r=a-o<0;if(n<0){i=t.r;t.r=t.r0,t.r0=i}return r}},En={cartesian2d:function(e,t,n,i,a,o,r,s,l){var c=new Et["a"]({shape:Object(b["extend"])({},i),z2:1});if(c.__dataIndex=n,c.name="item",o){var u=c.shape,h=a?"height":"width";u[h]=0}return c},polar:function(e,t,n,i,a,o,r,s,l){var c=!a&&l?An:zt["a"],u=new c({shape:i,z2:1});u.name="item";var h=Xn(a);if(u.calculateTextPosition=Cn(h,{isRoundCap:c===An}),o){var d=u.shape,p=a?"r":"endAngle",g={};d[p]=a?0:i.startAngle,g[p]=i[p],(s?it["h"]:it["c"])(u,{shape:g},o)}return u}};function zn(e,t){var n=e.get("realtimeSort",!0),i=t.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===t.type)return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}function Bn(e,t,n,i,a,o,r,s){var l,c;o?(c={x:i.x,width:i.width},l={y:i.y,height:i.height}):(c={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(r?it["h"]:it["c"])(n,{shape:l},t,a,null);var u=t?e.baseAxis.model:null;(r?it["h"]:it["c"])(n,{shape:c},u,a)}function Gn(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var Fn=["x","y","width","height"],Hn=["cx","cy","r","startAngle","endAngle"],Wn={cartesian2d:function(e){return!Gn(e,Fn)},polar:function(e){return!Gn(e,Hn)}},Yn={cartesian2d:function(e,t,n){var i=e.getItemLayout(t),a=n?qn(n,i):0,o=i.width>0?1:-1,r=i.height>0?1:-1;return{x:i.x+o*a/2,y:i.y+r*a/2,width:i.width-o*a,height:i.height-r*a}},polar:function(e,t,n){var i=e.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function Zn(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function Xn(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function Un(e,t,n,i,a,o,r,s){var l=t.getItemVisual(n,"style");s||e.setShape("r",i.get(["itemStyle","borderRadius"])||0),e.useStyle(l);var c=i.getShallow("cursor");c&&e.attr("cursor",c);var u=s?r?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":r?a.height>=0?"bottom":"top":a.width>=0?"right":"left",h=Object(ut["e"])(i);Object(ut["g"])(e,h,{labelFetcher:o,labelDataIndex:n,defaultText:lt(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:u});var d=e.getTextContent();if(s&&d){var p=i.get(["label","position"]);e.textConfig.inside="middle"===p||null,Tn(e,"outside"===p?u:p,Xn(r),i.get(["label","rotate"]))}Object(ut["h"])(d,h,o.getRawValue(n),(function(e){return ct(t,e)}));var g=i.getModel(["emphasis"]);Object(rt["J"])(e,g.get("focus"),g.get("blurScope"),g.get("disabled")),Object(rt["I"])(e,i),Zn(a)&&(e.style.fill="none",e.style.stroke="none",Object(b["each"])(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}function qn(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=e.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,a,o)}var Jn=function(){function e(){}return e}(),Kn=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return Object(Je["a"])(t,e),t.prototype.getDefaultShape=function(){return new Jn},t.prototype.buildPath=function(e,t){for(var n=t.points,i=this.baseDimIdx,a=1-this.baseDimIdx,o=[],r=[],s=this.barWidth,l=0;l<n.length;l+=3)r[i]=s,r[a]=n[l+2],o[i]=n[l+i],o[a]=n[l+a],e.rect(o[0],o[1],r[0],r[1])},t}(s["b"]);function $n(e,t,n,i){var a=e.getData(),o=a.getLayout("valueAxisHorizontal")?1:0,r=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=e.getModel("backgroundStyle"),c=a.getLayout("largeBackgroundPoints");if(c){var u=new Kn({shape:{points:c},incremental:!!i,silent:!0,z2:0});u.baseDimIdx=o,u.largeDataIndices=r,u.barWidth=s,u.useStyle(l.getItemStyle()),t.add(u),n&&n.push(u)}var h=new Kn({shape:{points:a.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=o,h.largeDataIndices=r,h.barWidth=s,t.add(h),h.useStyle(a.getVisual("style")),Object(ot["a"])(h).seriesIndex=e.seriesIndex,e.get("silent")||(h.on("mousedown",Qn),h.on("mousemove",Qn)),n&&n.push(h)}var Qn=Object(Mn["c"])((function(e){var t=this,n=ei(t,e.offsetX,e.offsetY);Object(ot["a"])(t).dataIndex=n>=0?n:null}),30,!1);function ei(e,t,n){for(var i=e.baseDimIdx,a=1-i,o=e.shape.points,r=e.largeDataIndices,s=[],l=[],c=e.barWidth,u=0,h=o.length/3;u<h;u++){var d=3*u;if(l[i]=c,l[a]=o[d+2],s[i]=o[d+i],s[a]=o[d+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),t>=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return r[u]}return-1}function ti(e,t,n){if(Wt(n,"cartesian2d")){var i=t,a=n.getArea();return{x:e?i.x:a.x,y:e?a.y:i.y,width:e?i.width:a.width,height:e?a.height:i.height}}a=n.getArea();var o=t;return{cx:a.cx,cy:a.cy,r0:e?a.r0:o.r0,r:e?a.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:2*Math.PI}}function ni(e,t,n){var i="polar"===e.type?zt["a"]:Et["a"];return new i({shape:ti(t,n,e),silent:!0,z2:0})}var ii=Rn;function ai(e){e.registerChartView(ii),e.registerSeriesModel(wn),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,b["curry"](bn["c"],"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Object(bn["a"])("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,vn("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))}var oi=n("49bb"),ri=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(Je["a"])(t,e),t.prototype.getInitialData=function(e,t){return Object(Ke["a"])(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}($e["b"]),si=ri,li=n("9850"),ci=4,ui=function(){function e(){}return e}(),hi=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return Object(Je["a"])(t,e),t.prototype.getDefaultShape=function(){return new ui},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n,i=t.points,a=t.size,o=this.symbolProxy,r=o.shape,s=e.getContext?e.getContext():e,l=s&&a[0]<ci,c=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<i.length;){var u=i[n++],h=i[n++];isNaN(u)||isNaN(h)||(c&&!c.contain(u,h)||(r.x=u-a[0]/2,r.y=h-a[1]/2,r.width=a[0],r.height=a[1],o.buildPath(e,r,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},t.prototype.afterBrush=function(){var e,t=this.shape,n=t.points,i=t.size,a=this._ctx,o=this.softClipShape;if(a){for(e=this._off;e<n.length;){var r=n[e++],s=n[e++];isNaN(r)||isNaN(s)||(o&&!o.contain(r,s)||a.fillRect(r-i[0]/2,s-i[1]/2,i[0],i[1]))}this.incremental&&(this._off=e,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,i=n.points,a=n.size,o=Math.max(a[0],4),r=Math.max(a[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,c=i[l]-o/2,u=i[l+1]-r/2;if(e>=c&&t>=u&&e<=c+o&&t<=u+r)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();if(e=n[0],t=n[1],i.contain(e,t)){var a=this.hoverDataIdx=this.findDataIndex(e,t);return a>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,i=t.size,a=i[0],o=i[1],r=1/0,s=1/0,l=-1/0,c=-1/0,u=0;u<n.length;){var h=n[u++],d=n[u++];r=Math.min(h,r),l=Math.max(h,l),s=Math.min(d,s),c=Math.max(d,c)}e=this._rect=new li["a"](r-a/2,s-o/2,l-r+a,c-s+o)}return e},t}(s["b"]),di=function(){function e(){this.group=new et["a"]}return e.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},e.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild((function(e){if(null!=e.startIndex){var n=2*(e.endIndex-e.startIndex),i=4*e.startIndex*2;t=new Float32Array(t.buffer,i,n)}e.setShape("points",t),e.reset()}))},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,n){var i=this._newAdded[0],a=t.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var r=o.length,s=new Float32Array(r+a.length);s.set(o),s.set(a,r),i.endIndex=e.end,i.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=e.start,l.endIndex=e.end,l.incremental=!0,l.setShape({points:a}),this._setCommon(l,t,n)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new hi({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,n){var i=t.hostModel;n=n||{};var a=t.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=n.clipShape||null,e.symbolProxy=Object(Qe["a"])(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<ci;e.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var r=t.getVisual("style"),s=r&&r.fill;s&&e.setColor(s);var l=Object(ot["a"])(e);l.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){l.dataIndex=null;var n=e.hoverDataIdx;n>=0&&(l.dataIndex=n+(e.startIndex||0))}))},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),pi=di,gi=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),a=this._updateSymbolDraw(i,e);a.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData(),a=this._updateSymbolDraw(i,e);a.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var a=gn("").reset(e,t,n);a.progress&&a.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,i=t.pipelineContext,a=i.large;return n&&a===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=a?new pi:new mt,this._isLargeDraw=a,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Vt["a"]),fi=gi,yi=n("b12f"),vi=n("6cb7"),mi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Je["a"])(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(vi["a"]),bi=mi,xi=n("2023"),_i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Je["a"])(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",jt["b"]).models[0]},t.type="cartesian2dAxis",t}(vi["a"]);b["mixin"](_i,xi["a"]);var Oi={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Si=b["merge"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Oi),wi=b["merge"]({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Oi),Mi=b["merge"]({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},wi),Ii=b["defaults"]({logBase:10},wi),ji={category:Si,value:wi,time:Mi,log:Ii},Ai=n("f934"),Ci=n("8e43"),Ti={value:1,category:1,time:1,log:1};function Di(e,t,n,i){Object(b["each"])(Ti,(function(a,o){var r=Object(b["merge"])(Object(b["merge"])({},ji[o],!0),i,!0),s=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+o,n}return Object(Je["a"])(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=Object(Ai["d"])(this),i=n?Object(Ai["f"])(e):{},a=t.getTheme();Object(b["merge"])(e,a.get(o+"Axis")),Object(b["merge"])(e,this.getDefaultOption()),e.type=Li(e),n&&Object(Ai["h"])(e,i,n)},n.prototype.optionUpdated=function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=Ci["a"].createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+o,n.defaultOption=r,n}(n);e.registerComponentModel(s)})),e.registerSubTypeDefaulter(t+"Axis",Li)}function Li(e){return e.type||(e.data?"category":"value")}var Pi=n("697e"),ki=n("cf7e"),Ni=n("1687"),Ri=n("401b"),Vi=["x","y"];function Ei(e){return"interval"===e.type||"time"===e.type}var zi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=Vi,t}return Object(Je["a"])(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(Ei(e)&&Ei(t)){var n=e.getExtent(),i=t.getExtent(),a=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),r=n[1]-n[0],s=i[1]-i[0];if(r&&s){var l=(o[0]-a[0])/r,c=(o[1]-a[1])/s,u=a[0]-n[0]*l,h=a[1]-i[0]*c,d=this._transform=[l,0,0,c,u,h];this._invTransform=Object(Ni["invert"])([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),i=this.dataToPoint(t),a=this.getArea(),o=new li["a"](n[0],n[1],i[0]-n[0],i[1]-n[1]);return a.intersect(o)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var i=e[0],a=e[1];if(this._transform&&null!=i&&isFinite(i)&&null!=a&&isFinite(a))return Object(Ri["applyTransform"])(n,e,this._transform);var o=this.getAxis("x"),r=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,t)),n[1]=r.toGlobalCoord(r.dataToCoord(a,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,a=n.getExtent(),o=i.getExtent(),r=n.parse(e[0]),s=i.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(a[0],a[1]),r),Math.max(a[0],a[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return Object(Ri["applyTransform"])(n,e,this._invTransform);var i=this.getAxis("x"),a=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),t),n[1]=a.coordToData(a.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),t=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1]),i=Math.min(t[0],t[1]),a=Math.max(e[0],e[1])-n,o=Math.max(t[0],t[1])-i;return new li["a"](n,i,a,o)},t}(ki["a"]),Bi=zi,Gi=n("84ce"),Fi=function(e){function t(t,n,i,a,o){var r=e.call(this,t,n,i)||this;return r.index=0,r.type=a||"value",r.position=o||"bottom",r}return Object(Je["a"])(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(Gi["a"]),Hi=Fi,Wi=n("0156"),Yi=n("944e"),Zi=n("89e3"),Xi=Math.log;function Ui(e,t,n){var i=Zi["a"].prototype,a=i.getTicks.call(n),o=i.getTicks.call(n,!0),r=a.length-1,s=i.getInterval.call(n),l=Object(Pi["f"])(e,t),c=l.extent,u=l.fixMin,h=l.fixMax;if("log"===e.type){var d=Xi(e.base);c=[Xi(c[0])/d,Xi(c[1])/d]}e.setExtent(c[0],c[1]),e.calcNiceExtent({splitNumber:r,fixMin:u,fixMax:h});var p=i.getExtent.call(e);u&&(c[0]=p[0]),h&&(c[1]=p[1]);var g=i.getInterval.call(e),f=c[0],y=c[1];if(u&&h)g=(y-f)/r;else if(u){y=c[0]+g*r;while(y<c[1]&&isFinite(y)&&isFinite(c[1]))g=Object(Yi["c"])(g),y=c[0]+g*r}else if(h){f=c[1]-g*r;while(f>c[0]&&isFinite(f)&&isFinite(c[0]))g=Object(Yi["c"])(g),f=c[1]-g*r}else{var v=e.getTicks().length-1;v>r&&(g=Object(Yi["c"])(g));var m=g*r;y=Math.ceil(c[1]/g)*g,f=Object(Bt["w"])(y-m),f<0&&c[0]>=0?(f=0,y=Object(Bt["w"])(m)):y>0&&c[1]<=0&&(y=0,f=-Object(Bt["w"])(m))}var b=(a[0].value-o[0].value)/s,x=(a[r].value-o[r].value)/s;i.setExtent.call(e,f+g*b,y+g*x),i.setInterval.call(e,g),(b||x)&&i.setNiceExtent.call(e,f+g,y-g)}var qi=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Vi,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function i(e){var t,n=Object(b["keys"])(e),i=n.length;if(i){for(var a=[],o=i-1;o>=0;o--){var r=+n[o],s=e[r],l=s.model,c=s.scale;Object(Yi["e"])(c)&&l.get("alignTicks")&&null==l.get("interval")?a.push(s):(Object(Pi["i"])(c,l),Object(Yi["e"])(c)&&(t=s))}a.length&&(t||(t=a.pop(),Object(Pi["i"])(t.scale,t.model)),Object(b["each"])(a,(function(e){Ui(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),i(n.x),i(n.y);var a={};Object(b["each"])(n.x,(function(e){Ki(n,"y",e,a)})),Object(b["each"])(n.y,(function(e){Ki(n,"x",e,a)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var i=e.getBoxLayoutParams(),a=!n&&e.get("containLabel"),o=Object(Ai["g"])(i,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var r=this._axesList;function s(){Object(b["each"])(r,(function(e){var t=e.isHorizontal(),n=t?[0,o.width]:[0,o.height],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),Qi(e,t?o.x:o.y)}))}s(),a&&(Object(b["each"])(r,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=Object(Pi["b"])(e);if(t){var n=e.isHorizontal()?"height":"width",i=e.model.get(["axisLabel","margin"]);o[n]-=t[n]+i,"top"===e.position?o.y+=t.height+i:"left"===e.position&&(o.x+=t.width+i)}}})),s()),Object(b["each"])(this._coordsList,(function(e){e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}Object(b["isObject"])(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===e||a[i].getAxis("y").index===t)return a[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,i=e.seriesModel,a=e.xAxisModel||i&&i.getReferringComponents("xAxis",jt["b"]).models[0],o=e.yAxisModel||i&&i.getReferringComponents("yAxis",jt["b"]).models[0],r=e.gridModel,s=this._coordsList;if(i)t=i.coordinateSystem,Object(b["indexOf"])(s,t)<0&&(t=null);else if(a&&o)t=this.getCartesian(a.componentIndex,o.componentIndex);else if(a)n=this.getAxis("x",a.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(r){var l=r.coordinateSystem;l===this&&(t=this._coordsList[0])}return{cartesian:t,axis:n}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},r={x:{},y:{}},s={x:0,y:0};if(t.eachComponent("xAxis",l("x"),this),t.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(t){return function(n,i){if(Ji(n,e)){var l=n.get("position");"x"===t?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var c=new Hi(t,Object(Pi["a"])(n),[0,0],n.get("type"),l),u="category"===c.type;c.onBand=u&&n.get("boundaryGap"),c.inverse=n.get("inverse"),n.axis=c,c.model=n,c.grid=a,c.index=i,a._axesList.push(c),r[t][i]=c,s[t]++}}}this._axesMap=r,Object(b["each"])(r.x,(function(t,n){Object(b["each"])(r.y,(function(a,o){var r="x"+n+"y"+o,s=new Bi(r);s.master=i,s.model=e,i._coordsMap[r]=s,i._coordsList.push(s),s.addAxis(t),s.addAxis(a)}))}))},e.prototype._updateScale=function(e,t){function n(e,t){Object(b["each"])(Object(Pi["d"])(e,t.dim),(function(n){t.scale.unionExtentFromData(e,n)}))}Object(b["each"])(this._axesList,(function(e){if(e.scale.setExtent(1/0,-1/0),"category"===e.type){var t=e.model.get("categorySortInfo");e.scale.setSortInfo(t)}})),e.eachSeries((function(e){if(Object(Wi["b"])(e)){var i=Object(Wi["a"])(e),a=i.xAxisModel,o=i.yAxisModel;if(!Ji(a,t)||!Ji(o,t))return;var r=this.getCartesian(a.componentIndex,o.componentIndex),s=e.getData(),l=r.getAxis("x"),c=r.getAxis("y");n(s,l),n(s,c)}}),this)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return Object(b["each"])(this.getCartesians(),(function(i){var a=null!=e&&"auto"!==e?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(a);Object(b["indexOf"])(t,a)<0&&t.push(a),Object(b["indexOf"])(n,o)<0&&n.push(o)})),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var i=[];return t.eachComponent("grid",(function(a,o){var r=new e(a,t,n);r.name="grid_"+o,r.resize(a,n,!0),a.coordinateSystem=r,i.push(r)})),t.eachSeries((function(e){if(Object(Wi["b"])(e)){var t=Object(Wi["a"])(e),n=t.xAxisModel,i=t.yAxisModel,a=n.getCoordSysModel();0;var o=a.coordinateSystem;e.coordinateSystem=o.getCartesian(n.componentIndex,i.componentIndex)}})),i},e.dimensions=Vi,e}();function Ji(e,t){return e.getCoordSysModel()===t}function Ki(e,t,n,i){n.getAxesOnZeroOf=function(){return a?[a]:[]};var a,o=e[t],r=n.model,s=r.get(["axisLine","onZero"]),l=r.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)$i(o[l])&&(a=o[l]);else for(var c in o)if(o.hasOwnProperty(c)&&$i(o[c])&&!i[u(o[c])]){a=o[c];break}a&&(i[u(a)]=!0)}function u(e){return e.dim+"_"+e.index}}function $i(e){return e&&"category"!==e.type&&"time"!==e.type&&Object(Pi["g"])(e)}function Qi(e,t){var n=e.getExtent(),i=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return i-e+t}}var ea=qi,ta=n("cb11"),na=n("fab2"),ia=n("6679"),aa=Object(jt["o"])();function oa(e,t,n,i){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel("splitArea"),r=o.getModel("areaStyle"),s=r.get("color"),l=i.coordinateSystem.getRect(),c=a.getTicksCoords({tickModel:o,clamp:!0});if(c.length){var u=s.length,h=aa(e).splitAreaColors,d=b["createHashMap"](),p=0;if(h)for(var g=0;g<c.length;g++){var f=h.get(c[g].tickValue);if(null!=f){p=(f+(u-1)*g)%u;break}}var y=a.toGlobalCoord(c[0].coord),v=r.getAreaStyle();s=b["isArray"](s)?s:[s];for(g=1;g<c.length;g++){var m=a.toGlobalCoord(c[g].coord),x=void 0,_=void 0,O=void 0,S=void 0;a.isHorizontal()?(x=y,_=l.y,O=m-x,S=l.height,y=x+O):(x=l.x,_=y,O=l.width,S=m-_,y=_+S);var w=c[g-1].tickValue;null!=w&&d.set(w,p),t.add(new Et["a"]({anid:null!=w?"area_"+w:null,shape:{x:x,y:_,width:O,height:S},style:b["defaults"]({fill:s[p]},v),autoBatch:!0,silent:!0})),p=(p+1)%u}aa(e).splitAreaColors=d}}}function ra(e){aa(e).splitAreaColors=null}var sa=["axisLine","axisTickLabel","axisName"],la=["splitArea","splitLine","minorSplitLine"],ca=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return Object(Je["a"])(t,e),t.prototype.render=function(t,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new et["a"],this.group.add(this._axisGroup),t.get("show")){var r=t.getCoordSysModel(),s=Wi["c"](r,t),l=new na["a"](t,b["extend"]({handleAutoShown:function(e){for(var n=r.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if(Object(Yi["e"])(n[i].getOtherAxis(t.axis).scale))return!0;return!1}},s));b["each"](sa,l.add,l),this._axisGroup.add(l.getGroup()),b["each"](la,(function(e){t.get([e,"show"])&&ua[e](this,this._axisGroup,t,r)}),this);var c=a&&"changeAxisOrder"===a.type&&a.isInitSort;c||at["groupTransition"](o,this._axisGroup,t),e.prototype.render.call(this,t,n,i,a)}},t.prototype.remove=function(){ra(this)},t.type="cartesianAxis",t}(ia["a"]),ua={splitLine:function(e,t,n,i){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel("splitLine"),r=o.getModel("lineStyle"),s=r.get("color");s=b["isArray"](s)?s:[s];for(var l=i.coordinateSystem.getRect(),c=a.isHorizontal(),u=0,h=a.getTicksCoords({tickModel:o}),d=[],p=[],g=r.getLineStyle(),f=0;f<h.length;f++){var y=a.toGlobalCoord(h[f].coord);c?(d[0]=y,d[1]=l.y,p[0]=y,p[1]=l.y+l.height):(d[0]=l.x,d[1]=y,p[0]=l.x+l.width,p[1]=y);var v=u++%s.length,m=h[f].tickValue,x=new ta["a"]({anid:null!=m?"line_"+h[f].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:b["defaults"]({stroke:s[v]},g),silent:!0});at["subPixelOptimizeLine"](x.shape,g.lineWidth),t.add(x)}}},minorSplitLine:function(e,t,n,i){var a=n.axis,o=n.getModel("minorSplitLine"),r=o.getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=a.isHorizontal(),c=a.getMinorTicksCoords();if(c.length)for(var u=[],h=[],d=r.getLineStyle(),p=0;p<c.length;p++)for(var g=0;g<c[p].length;g++){var f=a.toGlobalCoord(c[p][g].coord);l?(u[0]=f,u[1]=s.y,h[0]=f,h[1]=s.y+s.height):(u[0]=s.x,u[1]=f,h[0]=s.x+s.width,h[1]=f);var y=new ta["a"]({anid:"minor_line_"+c[p][g].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:h[0],y2:h[1]},style:d,silent:!0});at["subPixelOptimizeLine"](y.shape,d.lineWidth),t.add(y)}},splitArea:function(e,t,n,i){oa(e,t,n,i)}},ha=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.type="xAxis",t}(ca),da=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=ha.type,t}return Object(Je["a"])(t,e),t.type="yAxis",t}(ca),pa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return Object(Je["a"])(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new Et["a"]({shape:e.coordinateSystem.getRect(),style:Object(b["defaults"])({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(yi["a"]),ga={offset:0};function fa(e){e.registerComponentView(pa),e.registerComponentModel(bi),e.registerCoordinateSystem("cartesian2d",ea),Di(e,"x",_i,ga),Di(e,"y",_i,ga),e.registerComponentView(ha),e.registerComponentView(da),e.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))}function ya(e){Object(i["a"])(fa),e.registerSeriesModel(si),e.registerChartView(fi),e.registerLayout(gn("scatter"))}function va(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),n=[],i=e.coordinateSystem;if(i){var a=i.getIndicatorAxes();b["each"](a,(function(e,o){t.each(t.mapDimension(a[o].dim),(function(e,t){n[t]=n[t]||[];var a=i.dataToPoint(e,o);n[t][o]=ma(a)?a:ba(i)}))})),t.each((function(e){var a=b["find"](n[e],(function(e){return ma(e)}))||ba(i);n[e].push(a.slice()),t.setItemLayout(e,n[e])}))}}))}function ma(e){return!isNaN(e[0])&&!isNaN(e[1])}function ba(e){return[e.cx,e.cy]}var xa=n("d3f4");function _a(e){var t=e.polar;if(t){b["isArray"](t)||(t=[t]);var n=[];b["each"](t,(function(t,i){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],b["isArray"](e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)})),e.polar=n}b["each"](e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}var Oa=n("87b1"),Sa=n("d498"),wa=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.render=function(e,t,n){var i=e.coordinateSystem,a=this.group,o=e.getData(),r=this._data;function s(e,t){var n=e.getItemVisual(t,"symbol")||"circle";if("none"!==n){var i=Qe["c"](e.getItemVisual(t,"symbolSize")),a=Qe["a"](n,-1,-1,2,2),o=e.getItemVisual(t,"symbolRotate")||0;return a.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:o*Math.PI/180||0}),a}}function c(t,n,i,a,o,r){i.removeAll();for(var l=0;l<n.length-1;l++){var c=s(a,o);c&&(c.__dimIdx=l,t[l]?(c.setPosition(t[l]),at[r?"initProps":"updateProps"](c,{x:n[l][0],y:n[l][1]},e,o)):c.setPosition(n[l]),i.add(c))}}function u(e){return b["map"](e,(function(e){return[i.cx,i.cy]}))}o.diff(r).add((function(t){var n=o.getItemLayout(t);if(n){var i=new Oa["a"],a=new Sa["a"],r={shape:{points:n}};i.shape.points=u(n),a.shape.points=u(n),it["c"](i,r,e,t),it["c"](a,r,e,t);var s=new et["a"],l=new et["a"];s.add(a),s.add(i),s.add(l),c(a.shape.points,n,l,o,t,!0),o.setItemGraphicEl(t,s)}})).update((function(t,n){var i=r.getItemGraphicEl(n),a=i.childAt(0),s=i.childAt(1),l=i.childAt(2),u={shape:{points:o.getItemLayout(t)}};u.shape.points&&(c(a.shape.points,u.shape.points,l,o,t,!1),Object(it["g"])(s),Object(it["g"])(a),it["h"](a,u,e),it["h"](s,u,e),o.setItemGraphicEl(t,i))})).remove((function(e){a.remove(r.getItemGraphicEl(e))})).execute(),o.eachItemGraphicEl((function(e,t){var n=o.getItemModel(t),i=e.childAt(0),r=e.childAt(1),s=e.childAt(2),c=o.getItemVisual(t,"style"),u=c.fill;a.add(e),i.useStyle(b["defaults"](n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),Object(rt["I"])(i,n,"lineStyle"),Object(rt["I"])(r,n,"areaStyle");var h=n.getModel("areaStyle"),d=h.isEmpty()&&h.parentModel.isEmpty();r.ignore=d,b["each"](["emphasis","select","blur"],(function(e){var t=n.getModel([e,"areaStyle"]),i=t.isEmpty()&&t.parentModel.isEmpty();r.ensureState(e).ignore=i&&d})),r.useStyle(b["defaults"](h.getAreaStyle(),{fill:u,opacity:.7,decal:c.decal}));var p=n.getModel("emphasis"),g=p.getModel("itemStyle").getItemStyle();s.eachChild((function(e){if(e instanceof l["a"]){var i=e.style;e.useStyle(b["extend"]({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},c))}else e.useStyle(c),e.setColor(u),e.style.strokeNoScale=!0;var a=e.ensureState("emphasis");a.style=b["clone"](g);var r=o.getStore().get(o.getDimensionIndex(e.__dimIdx),t);(null==r||isNaN(r))&&(r=""),Object(ut["g"])(e,Object(ut["e"])(n),{labelFetcher:o.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:r,inheritColor:u,defaultOpacity:c.opacity})})),Object(rt["J"])(e,p.get("focus"),p.get("blurScope"),p.get("disabled"))})),this._data=o},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(Vt["a"]),Ma=wa,Ia=n("3f23"),ja=n("c4a3"),Aa=n("217c"),Ca=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(Je["a"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new ja["a"](b["bind"](this.getData,this),b["bind"](this.getRawData,this))},t.prototype.getInitialData=function(e,t){return Object(Ia["a"])(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),a=this.coordinateSystem,o=a.getIndicatorAxes(),r=this.getData().getName(e),s=""===r?this.name:r,l=Object(Aa["e"])(this,e);return Object(Aa["c"])("section",{header:s,sortBlocks:!0,blocks:b["map"](o,(function(t){var n=i.get(i.mapDimension(t.dim),e);return Object(Aa["c"])("nameValue",{markerType:"subItem",markerColor:l,name:t.name,value:n,sortParam:n})}))})},t.prototype.getTooltipPosition=function(e){if(null!=e)for(var t=this.getData(),n=this.coordinateSystem,i=t.getValues(b["map"](n.dimensions,(function(e){return t.mapDimension(e)})),e),a=0,o=i.length;a<o;a++)if(!isNaN(i[a])){var r=n.getIndicatorAxes();return n.coordToPoint(r[a].dataToCoord(i[a]),a)}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}($e["b"]),Ta=Ca,Da=n("4319"),La=ji.value;function Pa(e,t){return b["defaults"]({show:t},e)}var ka=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),a=this.get("axisTick"),o=this.get("axisLabel"),r=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),u=this.get("triggerEvent"),h=b["map"](this.get("indicator")||[],(function(h){null!=h.max&&h.max>0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var d=r;null!=h.color&&(d=b["defaults"]({color:h.color},r));var p=b["merge"](b["clone"](h),{boundaryGap:e,splitNumber:t,scale:n,axisLine:i,axisTick:a,axisLabel:o,name:h.text,showName:s,nameLocation:"end",nameGap:c,nameTextStyle:d,triggerEvent:u},!1);if(b["isString"](l)){var g=p.name;p.name=l.replace("{value}",null!=g?g:"")}else b["isFunction"](l)&&(p.name=l(p.name,p));var f=new Da["a"](p,null,this.ecModel);return b["mixin"](f,xi["a"].prototype),f.mainType="radar",f.componentIndex=this.componentIndex,f}),this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:b["merge"]({lineStyle:{color:"#bbb"}},La.axisLine),axisLabel:Pa(La.axisLabel,!1),axisTick:Pa(La.axisTick,!1),splitLine:Pa(La.splitLine,!0),splitArea:Pa(La.splitArea,!0),indicator:[]},t}(vi["a"]),Na=ka,Ra=n("d9fc"),Va=n("4573"),Ea=["axisLine","axisTickLabel","axisName"],za=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),i=b["map"](n,(function(e){var n=e.model.get("showName")?e.name:"",i=new na["a"](e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i}));b["each"](i,(function(e){b["each"](Ea,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var i=e.get("shape"),a=e.getModel("splitLine"),o=e.getModel("splitArea"),r=a.getModel("lineStyle"),s=o.getModel("areaStyle"),l=a.get("show"),c=o.get("show"),u=r.get("color"),h=s.get("color"),d=b["isArray"](u)?u:[u],p=b["isArray"](h)?h:[h],g=[],f=[];if("circle"===i)for(var y=n[0].getTicksCoords(),v=t.cx,m=t.cy,x=0;x<y.length;x++){if(l){var _=C(g,d,x);g[_].push(new Ra["a"]({shape:{cx:v,cy:m,r:y[x].coord}}))}if(c&&x<y.length-1){_=C(f,p,x);f[_].push(new Va["a"]({shape:{cx:v,cy:m,r0:y[x].coord,r:y[x+1].coord}}))}}else{var O,S=b["map"](n,(function(e,n){var i=e.getTicksCoords();return O=null==O?i.length-1:Math.min(i.length-1,O),b["map"](i,(function(e){return t.coordToPoint(e.coord,n)}))})),w=[];for(x=0;x<=O;x++){for(var M=[],I=0;I<n.length;I++)M.push(S[I][x]);if(M[0]&&M.push(M[0].slice()),l){_=C(g,d,x);g[_].push(new Sa["a"]({shape:{points:M}}))}if(c&&w){_=C(f,p,x-1);f[_].push(new Oa["a"]({shape:{points:M.concat(w)}}))}w=M.slice().reverse()}}var j=r.getLineStyle(),A=s.getAreaStyle();b["each"](f,(function(e,t){this.group.add(at["mergePath"](e,{style:b["defaults"]({stroke:"none",fill:p[t%p.length]},A),silent:!0}))}),this),b["each"](g,(function(e,t){this.group.add(at["mergePath"](e,{style:b["defaults"]({fill:"none",stroke:d[t%d.length]},j),silent:!0}))}),this)}function C(e,t,n){var i=n%t.length;return e[i]=e[i]||[],i}},t.type="radar",t}(yi["a"]),Ba=za,Ga=function(e){function t(t,n,i){var a=e.call(this,t,n,i)||this;return a.type="value",a.angle=0,a.name="",a}return Object(Je["a"])(t,e),t}(Gi["a"]),Fa=Ga,Ha=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=Object(b["map"])(e.getIndicatorModels(),(function(e,t){var n="indicator_"+t,i=new Fa(n,new Zi["a"]);return i.name=e.get("name"),i.model=e,e.axis=i,this.dimensions.push(n),i}),this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],i=n.angle,a=this.cx+e*Math.cos(i),o=this.cy-e*Math.sin(i);return[a,o]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=Math.sqrt(t*t+n*n);t/=i,n/=i;for(var a,o=Math.atan2(-n,t),r=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var c=this._indicatorAxes[l],u=Math.abs(o-c.angle);u<r&&(a=c,s=l,r=u)}return[s,+(a&&a.coordToData(i))]},e.prototype.resize=function(e,t){var n=e.get("center"),i=t.getWidth(),a=t.getHeight(),o=Math.min(i,a)/2;this.cx=Bt["q"](n[0],i),this.cy=Bt["q"](n[1],a),this.startAngle=e.get("startAngle")*Math.PI/180;var r=e.get("radius");(Object(b["isString"])(r)||Object(b["isNumber"])(r))&&(r=[0,r]),this.r0=Bt["q"](r[0],o),this.r=Bt["q"](r[1],o),Object(b["each"])(this._indicatorAxes,(function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n}),this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,i=this._model;Object(b["each"])(n,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeriesByType("radar",(function(t,a){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===i){var o=t.getData();Object(b["each"])(n,(function(e){e.scale.unionExtentFromData(o,o.mapDimension(e.dim))}))}}),this);var a=i.get("splitNumber"),o=new Zi["a"];o.setExtent(0,a),o.setInterval(1),Object(b["each"])(n,(function(e,t){Ui(e.scale,e.model,o)}))},e.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.create=function(t,n){var i=[];return t.eachComponent("radar",(function(a){var o=new e(a,t,n);i.push(o),a.coordinateSystem=o})),t.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("radarIndex")||0])})),i},e.dimensions=[],e}(),Wa=Ha;function Ya(e){e.registerCoordinateSystem("radar",Wa),e.registerComponentModel(Na),e.registerComponentView(Ba),e.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each((function(e){t.setItemVisual(e,"legendIcon","roundRect")})),t.setVisual("legendIcon","roundRect")}})}function Za(e){Object(i["a"])(Ya),e.registerChartView(Ma),e.registerSeriesModel(Ta),e.registerLayout(va),e.registerProcessor(Object(xa["a"])("radar")),e.registerPreprocessor(_a)}var Xa=n("6fd3"),Ua=n("607d"),qa=n("1be79"),Ja="\0_ec_interaction_mutex";function Ka(e,t,n){var i=eo(e);i[t]=n}function $a(e,t,n){var i=eo(e),a=i[t];a===n&&(i[t]=null)}function Qa(e,t){return!!eo(e)[t]}function eo(e){return e[Ja]||(e[Ja]={})}qa["m"]({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},b["noop"]);var to=function(e){function t(t){var n=e.call(this)||this;n._zr=t;var i=Object(b["bind"])(n._mousedownHandler,n),a=Object(b["bind"])(n._mousemoveHandler,n),o=Object(b["bind"])(n._mouseupHandler,n),r=Object(b["bind"])(n._mousewheelHandler,n),s=Object(b["bind"])(n._pinchHandler,n);return n.enable=function(e,n){this.disable(),this._opt=Object(b["defaults"])(Object(b["clone"])(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",i),t.on("mousemove",a),t.on("mouseup",o)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",r),t.on("pinch",s))},n.disable=function(){t.off("mousedown",i),t.off("mousemove",a),t.off("mouseup",o),t.off("mousewheel",r),t.off("pinch",s)},n}return Object(Je["a"])(t,e),t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!Ua["d"](e)){var t=e.target;while(t){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,i=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(this._dragging&&ao("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!Qa(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,i=this._x,a=this._y,o=t-i,r=n-a;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&Ua["g"](e.event),io(this,"pan","moveOnMouseMove",e,{dx:o,dy:r,oldX:i,oldY:a,newX:t,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){Ua["d"](e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=ao("zoomOnMouseWheel",e,this._opt),n=ao("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,a=Math.abs(i),o=e.offsetX,r=e.offsetY;if(0!==i&&(t||n)){if(t){var s=a>3?1.4:a>1?1.2:1.1,l=i>0?s:1/s;no(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:o,originY:r,isAvailableBehavior:null})}if(n){var c=Math.abs(i),u=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);no(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:u,originX:o,originY:r,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!Qa(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;no(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(Xa["a"]);function no(e,t,n,i,a){e.pointerChecker&&e.pointerChecker(i,a.originX,a.originY)&&(Ua["g"](i.event),io(e,t,n,i,a))}function io(e,t,n,i,a){a.isAvailableBehavior=Object(b["bind"])(ao,null,n,i),e.trigger(t,a)}function ao(e,t,n){var i=n[e];return!e||i&&(!Object(b["isString"])(i)||t.event[i+"Key"])}var oo=to;function ro(e,t,n){var i=e.target;i.x+=t,i.y+=n,i.dirty()}function so(e,t,n,i){var a=e.target,o=e.zoomLimit,r=e.zoom=e.zoom||1;if(r*=t,o){var s=o.min||0,l=o.max||1/0;r=Math.max(Math.min(l,r),s)}var c=r/e.zoom;e.zoom=r,a.x-=(n-a.x)*(c-1),a.y-=(i-a.y)*(c-1),a.scaleX*=c,a.scaleY*=c,a.dirty()}var lo={axisPointer:1,tooltip:1,brush:1};function co(e,t,n){var i=t.getComponentByElement(e.topTarget),a=i&&i.coordinateSystem;return i&&i!==n&&!lo.hasOwnProperty(i.mainType)&&a&&a.model!==n}var uo,ho=n("ae69"),po=n("342d"),go=n("dded");function fo(e){if(Object(b["isString"])(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var n=e;9===n.nodeType&&(n=n.firstChild);while("svg"!==n.nodeName.toLowerCase()||1!==n.nodeType)n=n.nextSibling;return n}var yo={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},vo=Object(b["keys"])(yo),mo={"alignment-baseline":"textBaseline","stop-color":"stopColor"},bo=Object(b["keys"])(mo),xo=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=fo(e);this._defsUsePending=[];var i=new et["a"];this._root=i;var a=[],o=n.getAttribute("viewBox")||"",r=parseFloat(n.getAttribute("width")||t.width),s=parseFloat(n.getAttribute("height")||t.height);isNaN(r)&&(r=null),isNaN(s)&&(s=null),Io(n,i,null,!0,!1);var l,c,u=n.firstChild;while(u)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;if(To(this._defs,this._defsUsePending),this._defsUsePending=[],o){var h=Lo(o);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=r&&null!=s&&(c=zo(l,{x:0,y:0,width:r,height:s}),!t.ignoreViewBox)){var d=i;i=new et["a"],i.add(d),d.scaleX=d.scaleY=c.scale,d.x=c.x,d.y=c.y}return t.ignoreRootClip||null==r||null==s||i.setClipPath(new Et["a"]({shape:{x:0,y:0,width:r,height:s}})),{root:i,width:r,height:s,viewBoxRect:l,viewBoxTransform:c,named:a}},e.prototype._parseNode=function(e,t,n,i,a,o){var r,s=e.nodeName.toLowerCase(),l=i;if("defs"===s&&(a=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)r=t;else{if(!a){var c=uo[s];if(c&&Object(b["hasOwn"])(uo,s)){r=c.call(this,e,t);var u=e.getAttribute("name");if(u){var h={name:u,namedFrom:null,svgNodeTagLower:s,el:r};n.push(h),"g"===s&&(l=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:r});t.add(r)}}var d=_o[s];if(d&&Object(b["hasOwn"])(_o,s)){var p=d.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=p)}}if(r&&r.isGroup){var f=e.firstChild;while(f)1===f.nodeType?this._parseNode(f,r,n,l,a,o):3===f.nodeType&&o&&this._parseText(f,r),f=f.nextSibling}},e.prototype._parseText=function(e,t){var n=new u["a"]({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});wo(t,n),Io(e,n,this._defsUsePending,!1,!1),jo(n,t);var i=n.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var r=n.getBoundingRect();return this._textX+=r.width,t.add(n),n},e.internalField=function(){uo={g:function(e,t){var n=new et["a"];return wo(t,n),Io(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new Et["a"];return wo(t,n),Io(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new Ra["a"];return wo(t,n),Io(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new ta["a"];return wo(t,n),Io(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new ho["a"];return wo(t,n),Io(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n,i=e.getAttribute("points");i&&(n=Mo(i));var a=new Oa["a"]({shape:{points:n||[]},silent:!0});return wo(t,a),Io(e,a,this._defsUsePending,!1,!1),a},polyline:function(e,t){var n,i=e.getAttribute("points");i&&(n=Mo(i));var a=new Sa["a"]({shape:{points:n||[]},silent:!0});return wo(t,a),Io(e,a,this._defsUsePending,!1,!1),a},image:function(e,t){var n=new l["a"];return wo(t,n),Io(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",a=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var r=new et["a"];return wo(t,r),Io(e,r,this._defsUsePending,!1,!0),r},tspan:function(e,t){var n=e.getAttribute("x"),i=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var a=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",r=new et["a"];return wo(t,r),Io(e,r,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),r},path:function(e,t){var n=e.getAttribute("d")||"",i=Object(po["b"])(n);return wo(t,i),Io(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),_o={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),i=parseInt(e.getAttribute("x2")||"10",10),a=parseInt(e.getAttribute("y2")||"0",10),o=new It["a"](t,n,i,a);return Oo(e,o),So(e,o),o},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),i=parseInt(e.getAttribute("r")||"0",10),a=new go["a"](t,n,i);return Oo(e,a),So(e,a),a}};function Oo(e,t){var n=e.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(t.global=!0)}function So(e,t){var n=e.firstChild;while(n){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),a=void 0;a=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};Vo(n,o,o);var r=o.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:a,color:r})}n=n.nextSibling}}function wo(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Object(b["defaults"])(t.__inheritedStyle,e.__inheritedStyle))}function Mo(e){for(var t=Lo(e),n=[],i=0;i<t.length;i+=2){var a=parseFloat(t[i]),o=parseFloat(t[i+1]);n.push([a,o])}return n}function Io(e,t,n,i,a){var o=t,r=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===e.nodeType&&(No(e,t),Vo(e,r,s),i||Eo(e,r,s)),o.style=o.style||{},null!=r.fill&&(o.style.fill=Co(o,"fill",r.fill,n)),null!=r.stroke&&(o.style.stroke=Co(o,"stroke",r.stroke,n)),Object(b["each"])(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(e){null!=r[e]&&(o.style[e]=parseFloat(r[e]))})),Object(b["each"])(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(e){null!=r[e]&&(o.style[e]=r[e])})),a&&(o.__selfStyle=s),r.lineDash&&(o.style.lineDash=Object(b["map"])(Lo(r.lineDash),(function(e){return parseFloat(e)}))),"hidden"!==r.visibility&&"collapse"!==r.visibility||(o.invisible=!0),"none"===r.display&&(o.ignore=!0)}function jo(e,t){var n=t.__selfStyle;if(n){var i=n.textBaseline,a=i;i&&"auto"!==i?"baseline"===i?a="alphabetic":"before-edge"===i||"text-before-edge"===i?a="top":"after-edge"===i||"text-after-edge"===i?a="bottom":"central"!==i&&"mathematical"!==i||(a="middle"):a="alphabetic",e.style.textBaseline=a}var o=t.__inheritedStyle;if(o){var r=o.textAlign,s=r;r&&("middle"===r&&(s="center"),e.style.textAlign=s)}}var Ao=/^url\(\s*#(.*?)\)/;function Co(e,t,n,i){var a=n&&n.match(Ao);if(!a)return"none"===n&&(n=null),n;var o=Object(b["trim"])(a[1]);i.push([e,t,o])}function To(e,t){for(var n=0;n<t.length;n++){var i=t[n];i[0].style[i[1]]=e[i[2]]}}var Do=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Lo(e){return e.match(Do)||[]}var Po=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,ko=Math.PI/180;function No(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=[],a=null;n.replace(Po,(function(e,t,n){return i.push(t,n),""}));for(var o=i.length-1;o>0;o-=2){var r=i[o],s=i[o-1],l=Lo(r);switch(a=a||Ni["create"](),s){case"translate":Ni["translate"](a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Ni["scale"](a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Ni["rotate"](a,a,-parseFloat(l[0])*ko);break;case"skewX":var c=Math.tan(parseFloat(l[0])*ko);Ni["mul"](a,[1,0,c,1,0,0],a);break;case"skewY":var u=Math.tan(parseFloat(l[0])*ko);Ni["mul"](a,[1,u,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}t.setLocalTransform(a)}}var Ro=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Vo(e,t,n){var i=e.getAttribute("style");if(i){var a;Ro.lastIndex=0;while(null!=(a=Ro.exec(i))){var o=a[1],r=Object(b["hasOwn"])(yo,o)?yo[o]:null;r&&(t[r]=a[2]);var s=Object(b["hasOwn"])(mo,o)?mo[o]:null;s&&(n[s]=a[2])}}}function Eo(e,t,n){for(var i=0;i<vo.length;i++){var a=vo[i],o=e.getAttribute(a);null!=o&&(t[yo[a]]=o)}for(i=0;i<bo.length;i++){a=bo[i],o=e.getAttribute(a);null!=o&&(n[mo[a]]=o)}}function zo(e,t){var n=t.width/e.width,i=t.height/e.height,a=Math.min(n,i);return{scale:a,x:-(e.x+e.width/2)*a+(t.x+t.width/2),y:-(e.y+e.height/2)*a+(t.y+t.height/2)}}function Bo(e,t){var n=new xo;return n.parse(e,t)}var Go=n("f279"),Fo=Object(b["createHashMap"])(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Ho=function(){function e(e,t){this.type="geoSVG",this._usedGraphicMap=Object(b["createHashMap"])(),this._freedGraphics=[],this._mapName=e,this._parsedXML=fo(t)}return e.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=Yo(e.named),n=t.regions,i=t.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n;try{t=e&&Bo(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,Object(b["assert"])(null!=n)}catch(f){throw new Error("Invalid svg format\n"+f.message)}var i=new et["a"];i.add(n),i.isGeoSVGGraphicRoot=!0;var a=t.width,o=t.height,r=t.viewBoxRect,s=this._boundingRect;if(!s){var l=void 0,c=void 0,u=void 0,h=void 0;if(null!=a?(l=0,u=a):r&&(l=r.x,u=r.width),null!=o?(c=0,h=o):r&&(c=r.y,h=r.height),null==l||null==c){var d=n.getBoundingRect();null==l&&(l=d.x,u=d.width),null==c&&(c=d.y,h=d.height)}s=this._boundingRect=new li["a"](l,c,u,h)}if(r){var p=zo(r,s);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}i.setClipPath(new Et["a"]({shape:s.plain()}));var g=[];return Object(b["each"])(t.named,(function(e){null!=Fo.get(e.svgNodeTagLower)&&(g.push(e),Wo(e.el))})),{root:i,boundingRect:s,named:g}},e.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}();function Wo(e){e.silent=!1,e.isGroup&&e.traverse((function(e){e.silent=!1}))}function Yo(e){var t=[],n=Object(b["createHashMap"])();return Object(b["each"])(e,(function(e){if(null==e.namedFrom){var i=new Go["d"](e.name,e.el);t.push(i),n.set(e.name,i)}})),{regions:t,regionsMap:n}}for(var Zo=n("bda7"),Xo=[126,25],Uo="南海诸岛",qo=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],Jo=0;Jo<qo.length;Jo++)for(var Ko=0;Ko<qo[Jo].length;Ko++)qo[Jo][Ko][0]/=10.5,qo[Jo][Ko][1]/=-14,qo[Jo][Ko][0]+=Xo[0],qo[Jo][Ko][1]+=Xo[1];function $o(e,t){if("china"===e){for(var n=0;n<t.length;n++)if(t[n].name===Uo)return;t.push(new Go["c"](Uo,b["map"](qo,(function(e){return{type:"polygon",exterior:e}})),Xo))}}var Qo=n("1792"),er=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function tr(e,t){"china"===e&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:er[0]})}var nr="name",ir=function(){function e(e,t,n){this.type="geoJSON",this._parsedMap=Object(b["createHashMap"])(),this._mapName=e,this._specialAreas=n,this._geoJSON=or(t)}return e.prototype.load=function(e,t){t=t||nr;var n=this._parsedMap.get(t);if(!n){var i=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:i,boundingRect:ar(i)})}var a=Object(b["createHashMap"])(),o=[];return Object(b["each"])(n.regions,(function(t){var n=t.name;e&&Object(b["hasOwn"])(e,n)&&(t=t.cloneShallow(n=e[n])),o.push(t),a.set(n,t)})),{regions:o,boundingRect:n.boundingRect||new li["a"](0,0,0,0),regionsMap:a}},e.prototype._parseToRegions=function(e){var t,n=this._mapName,i=this._geoJSON;try{t=i?Object(Zo["a"])(i,e):[]}catch(a){throw new Error("Invalid geoJson format\n"+a.message)}return $o(n,t),Object(b["each"])(t,(function(e){var t=e.name;Object(Qo["a"])(n,e),tr(n,e);var i=this._specialAreas&&this._specialAreas[t];i&&e.transformTo(i.left,i.top,i.width,i.height)}),this),t},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function ar(e){for(var t,n=0;n<e.length;n++){var i=e[n].getBoundingRect();t=t||i.clone(),t.union(i)}return t}function or(e){return Object(b["isString"])(e)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var rr=Object(b["createHashMap"])(),sr={registerMap:function(e,t,n){if(t.svg){var i=new Ho(e,t.svg);rr.set(e,i)}else{var a=t.geoJson||t.geoJSON;a&&!t.features?n=t.specialAreas:a=t;i=new ir(e,a,n);rr.set(e,i)}},getGeoResource:function(e){return rr.get(e)},getMapForUser:function(e){var t=rr.get(e);return t&&"geoJSON"===t.type&&t.getMapForUser()},load:function(e,t,n){var i=rr.get(e);if(i)return i.load(t,n)}},lr=n("b3c1"),cr=n("19eb"),ur=["rect","circle","line","ellipse","polygon","polyline","path"],hr=b["createHashMap"](ur),dr=b["createHashMap"](ur.concat(["g"])),pr=b["createHashMap"](ur.concat(["g"])),gr=Object(jt["o"])();function fr(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}function yr(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var vr=function(){function e(e){var t=new et["a"];this.uid=Object(On["c"])("ec_map_draw"),this._controller=new oo(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new et["a"]),t.add(this._svgGroup=new et["a"])}return e.prototype.draw=function(e,t,n,i,a){var o="geo"===e.mainType,r=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},(function(t){r||t.getHostGeoModel()!==e||(r=t.getData())}));var s=e.coordinateSystem,l=this._regionsGroup,c=this.group,u=s.getTransformInfo(),h=u.raw,d=u.roam,p=!l.childAt(0)||a;p?(c.x=d.x,c.y=d.y,c.scaleX=d.scaleX,c.scaleY=d.scaleY,c.dirty()):it["h"](c,d,e);var g=r&&r.getVisual("visualMeta")&&r.getVisual("visualMeta").length>0,f={api:n,geo:s,mapOrGeoModel:e,data:r,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,i)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=b["createHashMap"](),n=b["createHashMap"](),i=this._regionsGroup,a=e.transformInfoRaw,o=e.mapOrGeoModel,r=e.data,s=e.geo.projection,l=s&&s.stream;function c(e,t){return t&&(e=t(e)),e&&[e[0]*a.scaleX+a.x,e[1]*a.scaleY+a.y]}function u(e){for(var t=[],n=!l&&s&&s.project,i=0;i<e.length;++i){var a=c(e[i],n);a&&t.push(a)}return t}function h(e){return{shape:{points:u(e)}}}i.removeAll(),b["each"](e.geo.regions,(function(a){var u=a.name,d=t.get(u),p=n.get(u)||{},g=p.dataIdx,f=p.regionModel;d||(d=t.set(u,new et["a"]),i.add(d),g=r?r.indexOfName(u):null,f=e.isGeo?o.getRegionModel(u):r?r.getItemModel(g):null,n.set(u,{dataIdx:g,regionModel:f}));var y=[],v=[];b["each"](a.geometries,(function(e){if("polygon"===e.type){var t=[e.exterior].concat(e.interiors||[]);l&&(t=Sr(t,l)),b["each"](t,(function(e){y.push(new Oa["a"](h(e)))}))}else{var n=e.points;l&&(n=Sr(n,l,!0)),b["each"](n,(function(e){v.push(new Sa["a"](h(e)))}))}}));var m=c(a.getCenter(),s&&s.project);function x(t,n){if(t.length){var i=new H["a"]({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});d.add(i),mr(e,i,g,f),br(e,i,u,f,o,g,m),n&&(yr(i),b["each"](i.states,yr))}}x(y),x(v,!0)})),t.each((function(t,i){var a=n.get(i),r=a.dataIdx,s=a.regionModel;xr(e,t,i,s,o,r),_r(e,t,i,s,o),Or(e,t,i,s,o)}),this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var i=this._svgDispatcherMap=b["createHashMap"](),a=!1;b["each"](this._svgGraphicRecord.named,(function(t){var n=t.name,o=e.mapOrGeoModel,r=e.data,s=t.svgNodeTagLower,l=t.el,c=r?r.indexOfName(n):null,u=o.getRegionModel(n);if(null!=hr.get(s)&&l instanceof cr["c"]&&mr(e,l,c,u),l instanceof cr["c"]&&(l.culling=!0),l.z2EmphasisLift=0,!t.namedFrom&&(null!=pr.get(s)&&br(e,l,n,u,o,c,null),xr(e,l,n,u,o,c),_r(e,l,n,u,o),null!=dr.get(s))){var h=Or(e,l,n,u,o);"self"===h&&(a=!0);var d=i.get(n)||i.set(n,[]);d.push(l)}}),this),this._enableBlurEntireSVG(a,e)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=n.opacity;this._svgGraphicRecord.root.traverse((function(e){if(!e.isGroup){Object(rt["G"])(e);var t=e.ensureState("blur").style||{};null==t.opacity&&null!=i&&(t.opacity=i),e.ensureState("emphasis")}}))}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(e,t){if(null==e)return[];var n=t.coordinateSystem;if("geoJSON"===n.resourceType){var i=this._regionsGroupByName;if(i){var a=i.get(e);return a?[a]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=sr.getGeoResource(e);if(t&&"geoSVG"===t.type){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(null!=e){var t=sr.getGeoResource(e);t&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(e,t,n){var i=e.coordinateSystem,a=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=i.getZoom(),a.enable(e.get("roam")||!1);var r=e.mainType;function s(){var t={type:"geoRoam",componentType:r};return t[r+"Id"]=e.id,t}a.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,ro(o,e.dx,e.dy),n.dispatchAction(b["extend"](s(),{dx:e.dx,dy:e.dy,animation:{duration:0}}))}),this),a.off("zoom").on("zoom",(function(e){this._mouseDownFlag=!1,so(o,e.scale,e.originX,e.originY),n.dispatchAction(b["extend"](s(),{zoom:e.scale,originX:e.originX,originY:e.originY,animation:{duration:0}}))}),this),a.setPointerChecker((function(t,a,o){return i.containPoint([a,o])&&!co(t,n,e)}))},e.prototype.resetForLabelLayout=function(){this.group.traverse((function(e){var t=e.getTextContent();t&&(t.ignore=gr(t).ignore)}))},e.prototype._updateMapSelectHandler=function(e,t,n,i){var a=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",(function(){a._mouseDownFlag=!0})),t.on("click",(function(e){a._mouseDownFlag&&(a._mouseDownFlag=!1)})))},e}();function mr(e,t,n,i){var a=i.getModel("itemStyle"),o=i.getModel(["emphasis","itemStyle"]),r=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=fr(a),c=fr(o),u=fr(s),h=fr(r),d=e.data;if(d){var p=d.getItemVisual(n,"style"),g=d.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),g&&(l.decal=Object(lr["a"])(g,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=c,t.ensureState("select").style=u,t.ensureState("blur").style=h,Object(rt["G"])(t)}function br(e,t,n,i,a,o,r){var s=e.data,l=e.isGeo,c=s&&isNaN(s.get(s.mapDimension("value"),o)),u=s&&s.getItemLayout(o);if(l||c||u&&u.showLabel){var h=l?n:o,d=void 0;(!s||o>=0)&&(d=a);var p=r?{normal:{align:"center",verticalAlign:"middle"}}:null;Object(ut["g"])(t,Object(ut["e"])(i),{labelFetcher:d,labelDataIndex:h,defaultText:n},p);var g=t.getTextContent();if(g&&(gr(g).ignore=g.ignore,t.textConfig&&r)){var f=t.getBoundingRect().clone();t.textConfig.layoutRect=f,t.textConfig.position=[(r[0]-f.x)/f.width*100+"%",(r[1]-f.y)/f.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function xr(e,t,n,i,a,o){e.data?e.data.setItemGraphicEl(o,t):Object(ot["a"])(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:n,region:i&&i.option||{}}}function _r(e,t,n,i,a){e.data||at["setTooltipConfig"]({el:t,componentModel:a,itemName:n,itemTooltipOption:i.get("tooltip")})}function Or(e,t,n,i,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var o=i.getModel("emphasis"),r=o.get("focus");return Object(rt["J"])(t,r,o.get("blurScope"),o.get("disabled")),e.isGeo&&Object(rt["n"])(t,a,n),r}function Sr(e,t,n){var i,a=[];function o(){i=[]}function r(){i.length&&(a.push(i),i=[])}var s=t({polygonStart:o,polygonEnd:r,lineStart:o,lineEnd:r,point:function(e,t){isFinite(e)&&isFinite(t)&&i.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),b["each"](e,(function(e){s.lineStart();for(var t=0;t<e.length;t++)s.point(e[t][0],e[t][1]);s.lineEnd()})),!n&&s.polygonEnd(),a}var wr=vr,Mr=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.render=function(e,t,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var a=this.group;if(a.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===e.id){o=this._mapDraw;o&&a.add(o.group)}else if(e.needsDrawMap){var o=this._mapDraw||new wr(n);a.add(o.group),o.draw(e,t,n,this,i),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var i=e.originalData,a=this.group;i.each(i.mapDimension("value"),(function(t,n){if(!isNaN(t)){var o=i.getItemLayout(n);if(o&&o.point){var r=o.point,s=o.offset,l=new Ra["a"]({style:{fill:e.getData().getVisual("style").fill},shape:{cx:r[0]+9*s,cy:r[1],r:3},silent:!0,z2:8+(s?0:rt["j"]+1)});if(!s){var c=e.mainSeries.getData(),u=i.getName(n),h=c.indexOfName(u),d=i.getItemModel(n),p=d.getModel("label"),g=c.getItemGraphicEl(h);Object(ut["g"])(l,Object(ut["e"])(d),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(h,n)}},defaultText:u}),l.disableLabelAnimation=!0,p.get("position")||l.setTextConfig({position:"bottom"}),g.onHoverStateChange=function(e){Object(rt["H"])(l,e)}}a.add(l)}}}))},t.type="map",t}(Vt["a"]),Ir=Mr,jr=n("0f99"),Ar=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,i=n.getRegion(t);return i&&n.dataToPoint(i.getCenter())}},n}return Object(Je["a"])(t,e),t.prototype.getInitialData=function(e){for(var t=Object(Ia["a"])(this,{coordDimensions:["value"],encodeDefaulter:b["curry"](jr["d"],this)}),n=b["createHashMap"](),i=[],a=0,o=t.count();a<o;a++){var r=t.getName(a);n.set(r,!0)}var s=sr.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return b["each"](s.regions,(function(e){var t=e.name;n.get(t)||i.push(t)})),t.appendValues([],i),t},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return null!=e?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){for(var i=this.getData(),a=this.getRawValue(e),o=i.getName(e),r=this.seriesGroup,s=[],l=0;l<r.length;l++){var c=r[l].originalData.indexOfName(o),u=i.mapDimension("value");isNaN(r[l].originalData.get(u,c))||s.push(r[l].name)}return Object(Aa["c"])("section",{header:s.join(", "),noHeader:!s.length,blocks:[Object(Aa["c"])("nameValue",{name:o,value:a})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var t=e.icon||"roundRect",n=Object(Qe["a"])(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}($e["b"]),Cr=Ar;function Tr(e,t){var n={};return b["each"](e,(function(e){e.each(e.mapDimension("value"),(function(t,i){var a="ec-"+e.getName(i);n[a]=n[a]||[],isNaN(t)||n[a].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(i,a){for(var o,r="ec-"+e[0].getName(a),s=0,l=1/0,c=-1/0,u=n[r].length,h=0;h<u;h++)l=Math.min(l,n[r][h]),c=Math.max(c,n[r][h]),s+=n[r][h];return o="min"===t?l:"max"===t?c:"average"===t?s/u:s,0===u?NaN:o}))}function Dr(e){var t={};e.eachSeriesByType("map",(function(e){var n=e.getHostGeoModel(),i=n?"o"+n.id:"i"+e.getMapType();(t[i]=t[i]||[]).push(e)})),b["each"](t,(function(e,t){for(var n=Tr(b["map"](e,(function(e){return e.getData()})),e[0].get("mapValueCalculation")),i=0;i<e.length;i++)e[i].originalData=e[i].getData();for(i=0;i<e.length;i++)e[i].seriesGroup=e,e[i].needsDrawMap=0===i&&!e[i].getHostGeoModel(),e[i].setData(n.cloneShallow()),e[i].mainSeries=e[0]}))}function Lr(e){var t={};e.eachSeriesByType("map",(function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!t[i]){var a={};b["each"](n.seriesGroup,(function(t){var n=t.coordinateSystem,i=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&i.each(i.mapDimension("value"),(function(e,t){var o=i.getName(t),r=n.getRegion(o);if(r&&!isNaN(e)){var s=a[o]||0,l=n.dataToPoint(r.getCenter());a[o]=s+1,i.setItemLayout(t,{point:l,offset:s})}}))}));var o=n.getData();o.each((function(e){var t=o.getName(e),n=o.getItemLayout(e)||{};n.showLabel=!a[t],o.setItemLayout(e,n)})),t[i]=!0}}))}var Pr=n("f3bb"),kr=Ri["applyTransform"],Nr=function(e){function t(t){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new G["c"],n._rawTransformable=new G["c"],n.name=t,n}return Object(Je["a"])(t,e),t.prototype.setBoundingRect=function(e,t,n,i){return this._rect=new li["a"](e,t,n,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,i){this._transformTo(e,t,n,i),this._viewRect=new li["a"](e,t,n,i)},t.prototype._transformTo=function(e,t,n,i){var a=this.getBoundingRect(),o=this._rawTransformable;o.transform=a.calculateTransform(new li["a"](e,t,n,i));var r=o.parent;o.parent=null,o.decomposeTransform(),o.parent=r,this._updateTransform()},t.prototype.setCenter=function(e,t){e&&(this._center=[Object(Bt["q"])(e[0],t.getWidth()),Object(Bt["q"])(e[1],t.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),t=e.x+e.width/2,n=e.y+e.height/2;return[t,n]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),a=this.getZoom();i=Ri["applyTransform"]([],i,e),n=Ri["applyTransform"]([],n,e),t.originX=i[0],t.originY=i[1],t.x=n[0]-i[0],t.y=n[1]-i[1],t.scaleX=t.scaleY=a,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),Ni["copy"](this.transform||(this.transform=[]),t.transform||Ni["create"]()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],Ni["invert"](this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new G["c"];return n.transform=t.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,t,n){var i=t?this._rawTransform:this.transform;return n=n||[],i?kr(n,e,i):Ri["copy"](n,e)},t.prototype.pointToData=function(e){var t=this.invTransform;return t?kr([],e,t):[e[0],e[1]]},t.prototype.convertToPixel=function(e,t,n){var i=Rr(t);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var i=Rr(t);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(G["c"]);function Rr(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var Vr=Nr,Er={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},zr=["lng","lat"],Br=function(e){function t(t,n,i){var a=e.call(this,t)||this;a.dimensions=zr,a.type="geo",a._nameCoordMap=b["createHashMap"](),a.map=n;var o,r=i.projection,s=sr.load(n,i.nameMap,i.nameProperty),l=sr.getGeoResource(n),c=(a.resourceType=l?l.type:null,a.regions=s.regions),u=Er[l.type];if(a._regionsMap=s.regionsMap,a.regions=s.regions,a.projection=r,r)for(var h=0;h<c.length;h++){var d=c[h].getBoundingRect(r);o=o||d.clone(),o.union(d)}else o=s.boundingRect;return a.setBoundingRect(o.x,o.y,o.width,o.height),a.aspectScale=r?1:b["retrieve2"](i.aspectScale,u.aspectScale),a._invertLongitute=!r&&u.invertLongitute,a}return Object(Je["a"])(t,e),t.prototype._transformTo=function(e,t,n,i){var a=this.getBoundingRect(),o=this._invertLongitute;a=a.clone(),o&&(a.y=-a.y-a.height);var r=this._rawTransformable;r.transform=a.calculateTransform(new li["a"](e,t,n,i));var s=r.parent;r.parent=null,r.decomposeTransform(),r.parent=s,o&&(r.scaleY=-r.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var i=t[n];if("geoJSON"===i.type&&i.contain(e))return t[n]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if(b["isString"](e)&&(e=this.getGeoCoord(e)),e){var i=this.projection;return i&&(e=i.project(e)),e&&this.projectedToPoint(e,t,n)}},t.prototype.pointToData=function(e){var t=this.projection;return t&&(e=t.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(t){return e.prototype.pointToData.call(this,t)},t.prototype.projectedToPoint=function(t,n,i){return e.prototype.dataToPoint.call(this,t,n,i)},t.prototype.convertToPixel=function(e,t,n){var i=Gr(t);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var i=Gr(t);return i===this?i.pointToData(n):null},t}(Vr);function Gr(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",jt["b"]).models[0]||{}).coordinateSystem:null}b["mixin"](Br,Vr);var Fr=Br;function Hr(e,t){var n=e.get("boundingCoords");if(null!=n){var i=n[0],a=n[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])){var o=this.projection;if(o){var r=i[0],s=i[1],l=a[0],c=a[1];i=[1/0,1/0],a=[-1/0,-1/0];var u=function(e,t,n,r){for(var s=n-e,l=r-t,c=0;c<=100;c++){var u=c/100,h=o.project([e+s*u,t+l*u]);Ri["min"](i,i,h),Ri["max"](a,a,h)}};u(r,s,l,s),u(l,s,l,c),u(l,c,r,c),u(r,c,l,s)}this.setBoundingRect(i[0],i[1],a[0]-i[0],a[1]-i[1])}else 0}var h,d,p,g=this.getBoundingRect(),f=e.get("layoutCenter"),y=e.get("layoutSize"),v=t.getWidth(),m=t.getHeight(),b=g.width/g.height*this.aspectScale,x=!1;if(f&&y&&(h=[Bt["q"](f[0],v),Bt["q"](f[1],m)],d=Bt["q"](y,Math.min(v,m)),isNaN(h[0])||isNaN(h[1])||isNaN(d)||(x=!0)),x)p={},b>1?(p.width=d,p.height=d/b):(p.height=d,p.width=d*b),p.y=h[1]-p.height/2,p.x=h[0]-p.width/2;else{var _=e.getBoxLayoutParams();_.aspect=b,p=Ai["g"](_,{width:v,height:m})}this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function Wr(e,t){b["each"](t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}var Yr=function(){function e(){this.dimensions=zr}return e.prototype.create=function(e,t){var n=[];function i(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",(function(e,a){var o=e.get("map"),r=new Fr(o+a,o,b["extend"]({nameMap:e.get("nameMap")},i(e)));r.zoomLimit=e.get("scaleLimit"),n.push(r),e.coordinateSystem=r,r.model=e,r.resize=Hr,r.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var i=e.get("geoIndex")||0;e.coordinateSystem=n[i]}}));var a={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();a[t]=a[t]||[],a[t].push(e)}})),b["each"](a,(function(e,a){var o=b["map"](e,(function(e){return e.get("nameMap")})),r=new Fr(a,a,b["extend"]({nameMap:b["mergeAll"](o)},i(e[0])));r.zoomLimit=b["retrieve"].apply(null,b["map"](e,(function(e){return e.get("scaleLimit")}))),n.push(r),r.resize=Hr,r.resize(e[0],t),b["each"](e,(function(e){e.coordinateSystem=r,Wr(r,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,i){for(var a=(e||[]).slice(),o=b["createHashMap"](),r=0;r<a.length;r++)o.set(a[r].name,a[r]);var s=sr.load(t,n,i);return b["each"](s.regions,(function(e){var t=e.name;!o.get(t)&&a.push({name:t})})),a},e}(),Zr=new Yr,Xr=Zr,Ur=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.init=function(e,t,n){var i=sr.getGeoResource(e.map);if(i&&"geoJSON"===i.type){var a=e.itemStyle=e.itemStyle||{};"color"in a||(a.color="#eee")}this.mergeDefaultAndTheme(e,n),jt["f"](e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=Xr.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=b["reduce"](t.regions||[],(function(t,i){var a=i.name;return a&&(t.set(a,new Da["a"](i,e,e.ecModel)),i.selected&&(n[a]=!0)),t}),b["createHashMap"]()),t.selectedMap||(t.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new Da["a"](null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),i="normal"===t?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),a={name:e};return b["isFunction"](i)?(a.status=t,i(a)):b["isString"](i)?i.replace("{a}",null!=e?e:""):void 0},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var t=this.option,n=t.selectedMode;if(n){"multiple"!==n&&(t.selectedMap=null);var i=t.selectedMap||(t.selectedMap={});i[e]=!0}},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!(!t||!t[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(vi["a"]),qr=Ur;function Jr(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function Kr(e,t,n,i){var a=e.getZoom(),o=e.getCenter(),r=t.zoom,s=e.projectedToPoint?e.projectedToPoint(o):e.dataToPoint(o);if(null!=t.dx&&null!=t.dy&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(Jr(e,s),i)),null!=r){if(n){var l=n.min||0,c=n.max||1/0;r=Math.max(Math.min(a*r,c),l)/a}e.scaleX*=r,e.scaleY*=r;var u=(t.originX-e.x)*(r-1),h=(t.originY-e.y)*(r-1);e.x-=u,e.y-=h,e.updateTransform(),e.setCenter(Jr(e,s),i),e.setZoom(r*a)}return{center:e.getCenter(),zoom:e.getZoom()}}var $r=n("fadd"),Qr=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return Object(Je["a"])(t,e),t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,i){if(this._model=e,!e.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new wr(n));var a=this._mapDraw;a.draw(e,t,n,this,i),a.group.on("click",this._handleRegionClick,this),a.group.silent=e.get("silent"),this.group.add(a.group),this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t;Object($r["a"])(e.target,(function(e){return null!=(t=Object(ot["a"])(e).eventData)}),!0),t&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var i=this;this._mapDraw.group.traverse((function(e){var t=Object(ot["a"])(e).eventData;if(t)return i._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0}))},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(yi["a"]),es=Qr;function ts(e,t,n){sr.registerMap(e,t,n)}function ns(e){function t(t,n){n.update="geo:updateSelectStatus",e.registerAction(n,(function(e,n){var i={},a=[];return n.eachComponent({mainType:"geo",query:e},(function(n){n[t](e.name);var o=n.coordinateSystem;Object(b["each"])(o.regions,(function(e){i[e.name]=n.isSelected(e.name)||!1}));var r=[];Object(b["each"])(i,(function(e,t){i[t]&&r.push(t)})),a.push({geoIndex:n.componentIndex,name:r})})),{selected:i,allSelected:a,name:e.name}}))}e.registerCoordinateSystem("geo",Xr),e.registerComponentModel(qr),e.registerComponentView(es),e.registerImpl("registerMap",ts),e.registerImpl("getMap",(function(e){return sr.getMapForUser(e)})),t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(e,t,n){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},(function(t){var a=t.coordinateSystem;if("geo"===a.type){var o=Kr(a,e,t.get("scaleLimit"),n);t.setCenter&&t.setCenter(o.center),t.setZoom&&t.setZoom(o.zoom),"series"===i&&Object(b["each"])(t.seriesGroup,(function(e){e.setCenter(o.center),e.setZoom(o.zoom)}))}}))}))}function is(e){Object(i["a"])(ns),e.registerChartView(Ir),e.registerSeriesModel(Cr),e.registerLayout(Lr),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Dr),Object(Pr["a"])("map",e.registerAction)}var as=n("ac0f");function os(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var n,i,a=[t];while(n=a.pop())if(i=n.children,n.isExpand&&i.length)for(var o=i.length,r=o-1;r>=0;r--){var s=i[r];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:r,thread:null},a.push(s)}}function rs(e,t){var n=e.isExpand?e.children:[],i=e.parentNode.children,a=e.hierNode.i?i[e.hierNode.i-1]:null;if(n.length){hs(e);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;a?(e.hierNode.prelim=a.hierNode.prelim+t(e,a),e.hierNode.modifier=e.hierNode.prelim-o):e.hierNode.prelim=o}else a&&(e.hierNode.prelim=a.hierNode.prelim+t(e,a));e.parentNode.hierNode.defaultAncestor=ds(e,a,e.parentNode.hierNode.defaultAncestor||i[0],t)}function ss(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function ls(e){return arguments.length?e:vs}function cs(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function us(e,t){return Ai["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function hs(e){var t=e.children,n=t.length,i=0,a=0;while(--n>=0){var o=t[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,a+=o.hierNode.change,i+=o.hierNode.shift+a}}function ds(e,t,n,i){if(t){var a=e,o=e,r=o.parentNode.children[0],s=t,l=a.hierNode.modifier,c=o.hierNode.modifier,u=r.hierNode.modifier,h=s.hierNode.modifier;while(s=ps(s),o=gs(o),s&&o){a=ps(a),r=gs(r),a.hierNode.ancestor=e;var d=s.hierNode.prelim+h-o.hierNode.prelim-c+i(s,o);d>0&&(ys(fs(s,e,n),e,d),c+=d,l+=d),h+=s.hierNode.modifier,c+=o.hierNode.modifier,l+=a.hierNode.modifier,u+=r.hierNode.modifier}s&&!ps(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=h-l),o&&!gs(r)&&(r.hierNode.thread=o,r.hierNode.modifier+=c-u,n=e)}return n}function ps(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function gs(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function fs(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function ys(e,t,n){var i=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=i,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=i}function vs(e,t){return e.parentNode===t.parentNode?1:2}var ms=n("e263"),bs=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),xs=function(e){function t(t){return e.call(this,t)||this}return Object(Je["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new bs},t.prototype.buildPath=function(e,t){var n=t.childPoints,i=n.length,a=t.parentPoint,o=n[0],r=n[i-1];if(1===i)return e.moveTo(a[0],a[1]),void e.lineTo(o[0],o[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,c=1-l,u=Object(Bt["q"])(t.forkPosition,1),h=[];h[l]=a[l],h[c]=a[c]+(r[c]-a[c])*u,e.moveTo(a[0],a[1]),e.lineTo(h[0],h[1]),e.moveTo(o[0],o[1]),h[l]=o[l],e.lineTo(h[0],h[1]),h[l]=r[l],e.lineTo(h[0],h[1]),e.lineTo(r[0],r[1]);for(var d=1;d<i-1;d++){var p=n[d];e.moveTo(p[0],p[1]),h[l]=p[l],e.lineTo(h[0],h[1])}},t}(s["b"]),_s=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new et["a"],n}return Object(Je["a"])(t,e),t.prototype.init=function(e,t){this._controller=new oo(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var i=e.getData(),a=e.layoutInfo,o=this._mainGroup,r=e.get("layout");"radial"===r?(o.x=a.x+a.width/2,o.y=a.y+a.height/2):(o.x=a.x,o.y=a.y),this._updateViewCoordSys(e,n),this._updateController(e,t,n);var s=this._data;i.diff(s).add((function(t){Os(i,t)&&Ss(i,t,null,o,e)})).update((function(t,n){var a=s.getItemGraphicEl(n);Os(i,t)?Ss(i,t,a,o,e):a&&js(s,n,a,o,e)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&js(s,t,n,o,e)})).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===e.get("expandAndCollapse")&&i.eachItemGraphicEl((function(t,i){t.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:i})}))})),this._data=i},t.prototype._updateViewCoordSys=function(e,t){var n=e.getData(),i=[];n.each((function(e){var t=n.getItemLayout(e);!t||isNaN(t.x)||isNaN(t.y)||i.push([+t.x,+t.y])}));var a=[],o=[];ms["d"](i,a,o);var r=this._min,s=this._max;o[0]-a[0]===0&&(a[0]=r?r[0]:a[0]-1,o[0]=s?s[0]:o[0]+1),o[1]-a[1]===0&&(a[1]=r?r[1]:a[1]-1,o[1]=s?s[1]:o[1]+1);var l=e.coordinateSystem=new Vr;l.zoomLimit=e.get("scaleLimit"),l.setBoundingRect(a[0],a[1],o[0]-a[0],o[1]-a[1]),l.setCenter(e.get("center"),t),l.setZoom(e.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=a,this._max=o},t.prototype._updateController=function(e,t,n){var i=this,a=this._controller,o=this._controllerHost,r=this.group;a.setPointerChecker((function(t,i,a){var o=r.getBoundingRect();return o.applyTransform(r.transform),o.contain(i,a)&&!co(t,n,e)})),a.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),a.off("pan").off("zoom").on("pan",(function(t){ro(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){so(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(e),n.updateLabelLayout()}))},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=this._getNodeGlobalScale(e);t.eachItemGraphicEl((function(e,t){e.setSymbolScale(n)}))},t.prototype._getNodeGlobalScale=function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,i=t.scaleX||1,a=t.getZoom(),o=(a-1)*n+1;return o/i},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(Vt["a"]);function Os(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function Ss(e,t,n,i,a){var o=!n,r=e.tree.getNodeByDataIndex(t),s=r.getModel(),l=r.getVisual("style").fill,c=!1===r.isExpand&&0!==r.children.length?l:"#fff",u=e.tree.root,h=r.parentNode===u?r:r.parentNode||r,d=e.getItemGraphicEl(h.dataIndex),p=h.getLayout(),g=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:p,f=r.getLayout();o?(n=new pt(e,t,null,{symbolInnerColor:c,useNameLabel:!0}),n.x=g.x,n.y=g.y):n.updateData(e,t,null,{symbolInnerColor:c,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=f.rawX,n.__radialRawY=f.rawY,i.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,it["h"](n,{x:f.x,y:f.y},a);var y=n.getSymbolPath();if("radial"===a.get("layout")){var v=u.children[0],m=v.getLayout(),x=v.children.length,_=void 0,O=void 0;if(f.x===m.x&&!0===r.isExpand&&v.children.length){var S={x:(v.children[0].getLayout().x+v.children[x-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[x-1].getLayout().y)/2};_=Math.atan2(S.y-m.y,S.x-m.x),_<0&&(_=2*Math.PI+_),O=S.x<m.x,O&&(_-=Math.PI)}else _=Math.atan2(f.y-m.y,f.x-m.x),_<0&&(_=2*Math.PI+_),0===r.children.length||0!==r.children.length&&!1===r.isExpand?(O=f.x<m.x,O&&(_-=Math.PI)):(O=f.x>m.x,O||(_-=Math.PI));var w=O?"left":"right",M=s.getModel("label"),I=M.get("rotate"),j=I*(Math.PI/180),A=y.getTextContent();A&&(y.setTextConfig({position:M.get("position")||w,rotation:null==I?-_:j,origin:"center"}),A.setStyle("verticalAlign","middle"))}var C=s.get(["emphasis","focus"]),T="relative"===C?b["concatArray"](r.getAncestorsIndices(),r.getDescendantIndices()):"ancestor"===C?r.getAncestorsIndices():"descendant"===C?r.getDescendantIndices():null;T&&(Object(ot["a"])(n).focus=T),ws(a,r,u,n,g,p,f,i),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var i=r.parentNode&&e.getItemGraphicEl(r.parentNode.dataIndex);i&&i.hoverState===rt["d"]||Object(rt["H"])(n.__edge,t)}})}function ws(e,t,n,i,a,o,r,s){var l=t.getModel(),c=e.get("edgeShape"),u=e.get("layout"),h=e.getOrient(),d=e.get(["lineStyle","curveness"]),p=e.get("edgeForkPosition"),g=l.getModel("lineStyle").getLineStyle(),f=i.__edge;if("curve"===c)t.parentNode&&t.parentNode!==n&&(f||(f=i.__edge=new as["a"]({shape:As(u,h,d,a,a)})),it["h"](f,{shape:As(u,h,d,o,r)},e));else if("polyline"===c)if("orthogonal"===u){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var y=t.children,v=[],m=0;m<y.length;m++){var x=y[m].getLayout();v.push([x.x,x.y])}f||(f=i.__edge=new xs({shape:{parentPoint:[r.x,r.y],childPoints:[[r.x,r.y]],orient:h,forkPosition:p}})),it["h"](f,{shape:{parentPoint:[r.x,r.y],childPoints:v}},e)}}else 0;f&&("polyline"!==c||t.isExpand)&&(f.useStyle(b["defaults"]({strokeNoScale:!0,fill:null},g)),Object(rt["I"])(f,l,"lineStyle"),Object(rt["G"])(f),s.add(f))}function Ms(e,t,n,i,a){var o=t.tree.root,r=Is(o,e),s=r.source,l=r.sourceLayout,c=t.getItemGraphicEl(e.dataIndex);if(c){var u=t.getItemGraphicEl(s.dataIndex),h=u.__edge,d=c.__edge||(!1===s.isExpand||1===s.children.length?h:void 0),p=i.get("edgeShape"),g=i.get("layout"),f=i.get("orient"),y=i.get(["lineStyle","curveness"]);d&&("curve"===p?it["e"](d,{shape:As(g,f,y,l,l),style:{opacity:0}},i,{cb:function(){n.remove(d)},removeOpt:a}):"polyline"===p&&"orthogonal"===i.get("layout")&&it["e"](d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},i,{cb:function(){n.remove(d)},removeOpt:a}))}}function Is(e,t){var n,i=t.parentNode===e?t:t.parentNode||t;while(n=i.getLayout(),null==n)i=i.parentNode===e?i:i.parentNode||i;return{source:i,sourceLayout:n}}function js(e,t,n,i,a){var o=e.tree.getNodeByDataIndex(t),r=e.tree.root,s=Is(r,o).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};it["e"](n,{x:s.x+1,y:s.y+1},a,{cb:function(){i.remove(n),e.setItemGraphicEl(t,null)},removeOpt:l}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),o.children.forEach((function(t){Ms(t,e,i,a,l)})),Ms(o,e,i,a,l)}function As(e,t,n,i,a){var o,r,s,l,c,u,h,d;if("radial"===e){c=i.rawX,h=i.rawY,u=a.rawX,d=a.rawY;var p=cs(c,h),g=cs(c,h+(d-h)*n),f=cs(u,d+(h-d)*n),y=cs(u,d);return{x1:p.x||0,y1:p.y||0,x2:y.x||0,y2:y.y||0,cpx1:g.x||0,cpy1:g.y||0,cpx2:f.x||0,cpy2:f.y||0}}return c=i.x,h=i.y,u=a.x,d=a.y,"LR"!==t&&"RL"!==t||(o=c+(u-c)*n,r=h,s=u+(c-u)*n,l=d),"TB"!==t&&"BT"!==t||(o=c,r=h+(d-h)*n,s=u,l=d+(h-d)*n),{x1:c,y1:h,x2:u,y2:d,cpx1:o,cpy1:r,cpx2:s,cpy2:l}}var Cs=_s,Ts=n("6a2f"),Ds=n("b682"),Ls=n("b1d4"),Ps=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){b["isFunction"](e)&&(n=t,t=e,e=null),e=e||{},b["isString"](e)&&(e={order:e});var i,a=e.order||"preorder",o=this[e.attr||"children"];"preorder"===a&&(i=t.call(n,this));for(var r=0;!i&&r<o.length;r++)o[r].eachNode(e,t,n);"postorder"===a&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(e+1),i.height>t&&(t=i.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,i=n.length;t<i;t++){var a=n[t].getNodeById(e);if(a)return a}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,i=n.length;t<i;t++){var a=n[t].contains(e);if(a)return a}},e.prototype.getAncestors=function(e){var t=[],n=e?this:this.parentNode;while(n)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){var e=[],t=this;while(t)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode((function(t){e.push(t.dataIndex)})),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},e.prototype.isAncestorOf=function(e){var t=e.parentNode;while(t){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}(),ks=function(){function e(e){this.type="tree",this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,i=t.length;n<i;n++)t[n].dataIndex=-1;for(n=0,i=e.count();n<i;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,i){var a=new e(n),o=[],r=1;function s(e,t){var n=e.value;r=Math.max(r,b["isArray"](n)?n.length:1),o.push(e);var i=new Ps(Object(jt["e"])(e.name,""),a);t?Ns(i,t):a.root=i,a._nodes.push(i);var l=e.children;if(l)for(var c=0;c<l.length;c++)s(l[c],i)}s(t),a.root.updateDepthAndHeight(0);var l=Object(Ls["b"])(o,{coordDimensions:["value"],dimensionsCount:r}).dimensions,c=new Ds["a"](l,n);return c.initData(o),i&&i(c),Object(Ts["a"])({mainData:c,struct:a,structAttr:"tree"}),a.update(),a},e}();function Ns(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}var Rs=ks;function Vs(e,t,n){if(e&&b["indexOf"](t,e.type)>=0){var i=n.getData().tree.root,a=e.targetNode;if(b["isString"](a)&&(a=i.getNodeById(a)),a&&i.contains(a))return{node:a};var o=e.targetNodeId;if(null!=o&&(a=i.getNodeById(o)))return{node:a}}}function Es(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function zs(e,t){var n=Es(e);return b["indexOf"](n,t)>=0}function Bs(e,t){var n=[];while(e){var i=e.dataIndex;n.push({name:e.name,dataIndex:i,value:t.getRawValue(i)}),e=e.parentNode}return n.reverse(),n}var Gs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return Object(Je["a"])(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},i=new Da["a"](n,this,this.ecModel),a=Rs.createTree(t,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=a.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=i),e}))}var r=0;a.eachNode("preorder",(function(e){e.depth>r&&(r=e.depth)}));var s=e.expandAndCollapse,l=s&&e.initialTreeDepth>=0?e.initialTreeDepth:r;return a.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=l})),a.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){var i=this.getData().tree,a=i.root.children[0],o=i.getNodeByDataIndex(e),r=o.getValue(),s=o.name;while(o&&o!==a)s=o.parentNode.name+"."+s,o=o.parentNode;return Object(Aa["c"])("nameValue",{name:s,value:r,noValue:isNaN(r)||null==r})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=Bs(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}($e["b"]),Fs=Gs;function Hs(e,t,n){var i,a=[e],o=[];while(i=a.pop())if(o.push(i),i.isExpand){var r=i.children;if(r.length)for(var s=0;s<r.length;s++)a.push(r[s])}while(i=o.pop())t(i,n)}function Ws(e,t){var n,i=[e];while(n=i.pop())if(t(n),n.isExpand){var a=n.children;if(a.length)for(var o=a.length-1;o>=0;o--)i.push(a[o])}}function Ys(e,t){e.eachSeriesByType("tree",(function(e){Zs(e,t)}))}function Zs(e,t){var n=us(e,t);e.layoutInfo=n;var i=e.get("layout"),a=0,o=0,r=null;"radial"===i?(a=2*Math.PI,o=Math.min(n.height,n.width)/2,r=ls((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(a=n.width,o=n.height,r=ls());var s=e.getData().tree.root,l=s.children[0];if(l){os(s),Hs(l,rs,r),s.hierNode.modifier=-l.hierNode.prelim,Ws(l,ss);var c=l,u=l,h=l;Ws(l,(function(e){var t=e.getLayout().x;t<c.getLayout().x&&(c=e),t>u.getLayout().x&&(u=e),e.depth>h.depth&&(h=e)}));var d=c===u?1:r(c,u)/2,p=d-c.getLayout().x,g=0,f=0,y=0,v=0;if("radial"===i)g=a/(u.getLayout().x+d+p),f=o/(h.depth-1||1),Ws(l,(function(e){y=(e.getLayout().x+p)*g,v=(e.depth-1)*f;var t=cs(y,v);e.setLayout({x:t.x,y:t.y,rawX:y,rawY:v},!0)}));else{var m=e.getOrient();"RL"===m||"LR"===m?(f=o/(u.getLayout().x+d+p),g=a/(h.depth-1||1),Ws(l,(function(e){v=(e.getLayout().x+p)*f,y="LR"===m?(e.depth-1)*g:a-(e.depth-1)*g,e.setLayout({x:y,y:v},!0)}))):"TB"!==m&&"BT"!==m||(g=a/(u.getLayout().x+d+p),f=o/(h.depth-1||1),Ws(l,(function(e){y=(e.getLayout().x+p)*g,v="TB"===m?(e.depth-1)*f:o-(e.depth-1)*f,e.setLayout({x:y,y:v},!0)})))}}}function Xs(e){e.eachSeriesByType("tree",(function(e){var t=e.getData(),n=t.tree;n.eachNode((function(e){var n=e.getModel(),i=n.getModel("itemStyle").getItemStyle(),a=t.ensureUniqueItemVisual(e.dataIndex,"style");Object(b["extend"])(a,i)}))}))}function Us(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,i=t.getData().tree,a=i.getNodeByDataIndex(n);a.isExpand=!a.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var i=t.coordinateSystem,a=Kr(i,e,void 0,n);t.setCenter&&t.setCenter(a.center),t.setZoom&&t.setZoom(a.zoom)}))}))}function qs(e){e.registerChartView(Cs),e.registerSeriesModel(Fs),e.registerLayout(Ys),e.registerVisual(Xs),Us(e)}var Js=["treemapZoomToNode","treemapRender","treemapMove"];function Ks(e){for(var t=0;t<Js.length;t++)e.registerAction({type:Js[t],update:"updateView"},b["noop"]);e.registerAction({type:"treemapRootToNode",update:"updateView"},(function(e,t){function n(t,n){var i=["treemapZoomToNode","treemapRootToNode"],a=Vs(e,i,t);if(a){var o=t.getViewRoot();o&&(e.direction=zs(o,a.node)?"rollUp":"drillDown"),t.resetViewRoot(a.node)}}t.eachComponent({mainType:"series",subType:"treemap",query:e},n)}))}var $s=n("4041");function Qs(e){var t=e.getData(),n=t.tree,i={};n.eachNode((function(t){var n=t;while(n&&n.depth>1)n=n.parentNode;var a=Object($s["b"])(e.ecModel,n.name||n.dataIndex+"",i);t.setVisual("decal",a)}))}var el=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return Object(Je["a"])(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};tl(n);var i=e.levels||[],a=this.designatedVisualItemStyle={},o=new Da["a"]({itemStyle:a},this,t);i=e.levels=nl(i,t);var r=b["map"](i||[],(function(e){return new Da["a"](e,o,t)}),this),s=Rs.createTree(n,this,l);function l(e){e.wrapMethod("getItemModel",(function(e,t){var n=s.getNodeByDataIndex(t),i=n?r[n.depth]:null;return e.parentModel=i||o,e}))}return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),a=this.getRawValue(e),o=i.getName(e);return Object(Aa["c"])("nameValue",{name:o,value:a})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=Bs(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},b["extend"](this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=b["createHashMap"](),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){Qs(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}($e["b"]);function tl(e){var t=0;b["each"](e.children,(function(e){tl(e);var n=e.value;b["isArray"](n)&&(n=n[0]),t+=n}));var n=e.value;b["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),b["isArray"](e.value)?e.value[0]=n:e.value=n}function nl(e,t){var n=Object(jt["r"])(t.get("color")),i=Object(jt["r"])(t.get(["aria","decal","decals"]));if(n){var a,o;e=e||[],b["each"](e,(function(e){var t=new Da["a"](e),n=t.get("color"),i=t.get("decal");(t.get(["itemStyle","color"])||n&&"none"!==n)&&(a=!0),(t.get(["itemStyle","decal"])||i&&"none"!==i)&&(o=!0)}));var r=e[0]||(e[0]={});return a||(r.color=n.slice()),!o&&i&&(r.decal=i.slice()),e}}var il=el,al=n("80f0"),ol=8,rl=8,sl=5,ll=function(){function e(e){this.group=new et["a"],e.add(this.group)}return e.prototype.render=function(e,t,n,i){var a=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),a.get("show")&&n){var r=a.getModel("itemStyle"),s=a.getModel("emphasis"),l=r.getModel("textStyle"),c=s.getModel(["itemStyle","textStyle"]),u={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,u,l),this._renderContent(e,u,r,s,l,c,i),Ai["i"](o,u.pos,u.box)}},e.prototype._prepare=function(e,t,n){for(var i=e;i;i=i.parentNode){var a=Object(jt["e"])(i.getModel().get("name"),""),o=n.getTextRect(a),r=Math.max(o.width+2*ol,t.emptyItemWidth);t.totalWidth+=r+rl,t.renderList.push({node:i,text:a,width:r})}},e.prototype._renderContent=function(e,t,n,i,a,o,r){for(var s=0,l=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),u=Ai["e"](t.pos,t.box),h=t.totalWidth,d=t.renderList,p=i.getModel("itemStyle").getItemStyle(),g=d.length-1;g>=0;g--){var f=d[g],y=f.node,v=f.width,m=f.text;h>u.width&&(h-=v-l,v=l,m=null);var x=new Oa["a"]({shape:{points:cl(s,0,v,c,g===d.length-1,0===g)},style:Object(b["defaults"])(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new ee["a"]({style:Object(ut["c"])(a,{text:m})}),textConfig:{position:"inside"},z2:1e4*rt["j"],onclick:Object(b["curry"])(r,y)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=Object(ut["c"])(o,{text:m}),x.ensureState("emphasis").style=p,Object(rt["J"])(x,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(x),ul(x,e,y),s+=v+rl}},e.prototype.remove=function(){this.group.removeAll()},e}();function cl(e,t,n,i,a,o){var r=[[a?e:e-sl,t],[e+n,t],[e+n,t+i],[a?e:e-sl,t+i]];return!o&&r.splice(2,0,[e+n+sl,t+i/2]),!a&&r.push([e,t+i/2]),r}function ul(e,t,n){Object(ot["a"])(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&Bs(n,t)}}var hl=ll,dl=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,i,a){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:i,easing:a}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,a=this._storage.length;i<a;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function pl(){return new dl}var gl=n("282b"),fl=et["a"],yl=Et["a"],vl=3,ml="label",bl="upperLabel",xl=10*rt["j"],_l=2*rt["j"],Ol=3*rt["j"],Sl=Object(gl["a"])([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),wl=function(e){var t=Sl(e);return t.stroke=t.fill=t.lineWidth=null,t},Ml=Object(jt["o"])(),Il=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage=jl(),n}return Object(Je["a"])(t,e),t.prototype.render=function(e,t,n,i){var a=t.findComponents({mainType:"series",subType:"treemap",query:i});if(!(Object(b["indexOf"])(a,e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var o=["treemapZoomToNode","treemapRootToNode"],r=Vs(i,o,e),s=i&&i.type,l=e.layoutInfo,c=!this._oldTree,u=this._storage,h="treemapRootToNode"===s&&r&&u?{rootNodeGroup:u.nodeGroup[r.node.getRawIndex()],direction:i.direction}:null,d=this._giveContainerGroup(l),p=e.get("animation"),g=this._doRender(d,e,h);!p||c||s&&"treemapZoomToNode"!==s&&"treemapRootToNode"!==s?g.renderFinally():this._doAnimation(d,g,e,h),this._resetController(n),this._renderBreadcrumb(e,n,r)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new fl,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var i=t.getData().tree,a=this._oldTree,o=jl(),r=jl(),s=this._storage,l=[];function c(e,i,a,c){return Al(t,r,s,n,o,l,e,i,a,c)}h(i.root?[i.root]:[],a&&a.root?[a.root]:[],e,i===a||!a,0);var u=d(s);return this._oldTree=i,this._storage=r,{lastsForAnimation:o,willDeleteEls:u,renderFinally:p};function h(e,t,n,i,a){function o(e){return e.getId()}function r(o,r){var s=null!=o?e[o]:null,l=null!=r?t[r]:null,u=c(s,l,n,a);u&&h(s&&s.viewChildren||[],l&&l.viewChildren||[],u,i,a+1)}i?(t=e,Object(b["each"])(e,(function(e,t){!e.isRemoved()&&r(t,t)}))):new al["a"](t,e,o,o).add(r).update(r).remove(Object(b["curry"])(r,null)).execute()}function d(e){var t=jl();return e&&Object(b["each"])(e,(function(e,n){var i=t[n];Object(b["each"])(e,(function(e){e&&(i.push(e),Ml(e).willDelete=!0)}))})),t}function p(){Object(b["each"])(u,(function(e){Object(b["each"])(e,(function(e){e.parent&&e.parent.remove(e)}))})),Object(b["each"])(l,(function(e){e.invisible=!0,e.dirty()}))}},t.prototype._doAnimation=function(e,t,n,i){var a=n.get("animationDurationUpdate"),o=n.get("animationEasing"),r=(Object(b["isFunction"])(a)?0:a)||0,s=(Object(b["isFunction"])(o)?null:o)||"cubicOut",l=pl();Object(b["each"])(t.willDeleteEls,(function(e,t){Object(b["each"])(e,(function(e,n){if(!e.invisible){var a,o=e.parent,c=Ml(o);if(i&&"drillDown"===i.direction)a=o===i.rootNodeGroup?{shape:{x:0,y:0,width:c.nodeWidth,height:c.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,h=0;c.willDelete||(u=c.nodeWidth/2,h=c.nodeHeight/2),a="nodeGroup"===t?{x:u,y:h,style:{opacity:0}}:{shape:{x:u,y:h,width:0,height:0},style:{opacity:0}}}a&&l.add(e,a,r,0,s)}}))})),Object(b["each"])(this._storage,(function(e,n){Object(b["each"])(e,(function(e,i){var a=t.lastsForAnimation[n][i],o={};a&&(e instanceof et["a"]?null!=a.oldX&&(o.x=e.x,o.y=e.y,e.x=a.oldX,e.y=a.oldY):(a.oldShape&&(o.shape=Object(b["extend"])({},e.shape),e.setShape(a.oldShape)),a.fadein?(e.setStyle("opacity",0),o.style={opacity:1}):1!==e.style.opacity&&(o.style={opacity:1})),l.add(e,o,r,0,s))}))}),this),this._state="animating",l.finished(Object(b["bind"])((function(){this._state="ready",t.renderFinally()}),this)).start()},t.prototype._resetController=function(e){var t=this._controller;t||(t=this._controller=new oo(e.getZr()),t.enable(this.seriesModel.get("roam")),t.on("pan",Object(b["bind"])(this._onPan,this)),t.on("zoom",Object(b["bind"])(this._onZoom,this)));var n=new li["a"](0,0,e.getWidth(),e.getHeight());t.setPointerChecker((function(e,t,i){return n.contain(t,i)}))},t.prototype._clearController=function(){var e=this._controller;e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if("animating"!==this._state&&(Math.abs(e.dx)>vl||Math.abs(e.dy)>vl)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var a=i.getLayout();if(!a)return;var o=new li["a"](a.x,a.y,a.width,a.height),r=this.seriesModel.layoutInfo;t-=r.x,n-=r.y;var s=Ni["create"]();Ni["translate"](s,s,[-t,-n]),Ni["scale"](s,s,[e.scale,e.scale]),Ni["translate"](s,s,[t,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var i=t.findTarget(e.offsetX,e.offsetY);if(i){var a=i.node;if(a.getLayout().isLeafRoot)t._rootToNode(i);else if("zoomToNode"===n)t._zoomToNode(i);else if("link"===n){var o=a.hostTree.data.getItemModel(a.dataIndex),r=o.get("link",!0),s=o.get("target",!0)||"blank";r&&Object(Yt["k"])(r,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var i=this;n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new hl(this.group))).render(e,t,n.node,(function(t){"animating"!==i._state&&(zs(e.getViewRoot(),t)?i._rootToNode({node:t}):i._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=jl(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},(function(i){var a=this._storage.background[i.getRawIndex()];if(a){var o=a.transformCoordToLocal(e,t),r=a.shape;if(!(r.x<=o[0]&&o[0]<=r.x+r.width&&r.y<=o[1]&&o[1]<=r.y+r.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}}),this),n},t.type="treemap",t}(Vt["a"]);function jl(){return{nodeGroup:[],background:[],content:[]}}function Al(e,t,n,i,a,o,r,s,l,c){if(r){var u=r.getLayout(),h=e.getData(),d=r.getModel();if(h.setItemGraphicEl(r.dataIndex,null),u&&u.isInView){var p=u.width,g=u.height,f=u.borderWidth,y=u.invisible,v=r.getRawIndex(),m=s&&s.getRawIndex(),x=r.viewChildren,_=u.upperHeight,O=x&&x.length,S=d.getModel("itemStyle"),w=d.getModel(["emphasis","itemStyle"]),M=d.getModel(["blur","itemStyle"]),I=d.getModel(["select","itemStyle"]),j=S.get("borderRadius")||0,A=G("nodeGroup",fl);if(A){if(l.add(A),A.x=u.x||0,A.y=u.y||0,A.markRedraw(),Ml(A).nodeWidth=p,Ml(A).nodeHeight=g,u.isAboveViewRoot)return A;var C=G("background",yl,c,_l);C&&R(A,C,O&&u.upperLabelHeight);var T=d.getModel("emphasis"),D=T.get("focus"),L=T.get("blurScope"),P=T.get("disabled"),k="ancestor"===D?r.getAncestorsIndices():"descendant"===D?r.getDescendantIndices():D;if(O)Object(rt["y"])(A)&&Object(rt["F"])(A,!1),C&&(Object(rt["F"])(C,!P),h.setItemGraphicEl(r.dataIndex,C),Object(rt["p"])(C,k,L));else{var N=G("content",yl,c,Ol);N&&V(A,N),C.disableMorphing=!0,C&&Object(rt["y"])(C)&&Object(rt["F"])(C,!1),Object(rt["F"])(A,!P),h.setItemGraphicEl(r.dataIndex,A),Object(rt["p"])(A,k,L)}return A}}}function R(t,n,i){var a=Object(ot["a"])(n);if(a.dataIndex=r.dataIndex,a.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:g,r:j}),y)E(n);else{n.invisible=!1;var o=r.getVisual("style"),s=o.stroke,l=wl(S);l.fill=s;var c=Sl(w);c.fill=w.get("borderColor");var u=Sl(M);u.fill=M.get("borderColor");var h=Sl(I);if(h.fill=I.get("borderColor"),i){var d=p-2*f;z(n,s,o.opacity,{x:f,y:0,width:d,height:_})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=c,n.ensureState("blur").style=u,n.ensureState("select").style=h,Object(rt["G"])(n)}t.add(n)}function V(t,n){var i=Object(ot["a"])(n);i.dataIndex=r.dataIndex,i.seriesIndex=e.seriesIndex;var a=Math.max(p-2*f,0),o=Math.max(g-2*f,0);if(n.culling=!0,n.setShape({x:f,y:f,width:a,height:o,r:j}),y)E(n);else{n.invisible=!1;var s=r.getVisual("style"),l=s.fill,c=wl(S);c.fill=l,c.decal=s.decal;var u=Sl(w),h=Sl(M),d=Sl(I);z(n,l,s.opacity,null),n.setStyle(c),n.ensureState("emphasis").style=u,n.ensureState("blur").style=h,n.ensureState("select").style=d,Object(rt["G"])(n)}t.add(n)}function E(e){!e.invisible&&o.push(e)}function z(t,n,i,a){var o=d.getModel(a?bl:ml),s=Object(jt["e"])(d.get("name"),null),l=o.getShallow("show");Object(ut["g"])(t,Object(ut["e"])(d,a?bl:ml),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:e,labelDataIndex:r.dataIndex});var c=t.getTextContent();if(c){var h=c.style,p=Object(b["normalizeCssArray"])(h.padding||0);a&&(t.setTextConfig({layoutRect:a}),c.disableLabelLayout=!0),c.beforeUpdate=function(){var e=Math.max((a?a.width:t.shape.width)-p[1]-p[3],0),n=Math.max((a?a.height:t.shape.height)-p[0]-p[2],0);h.width===e&&h.height===n||c.setStyle({width:e,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",B(h,a,u);var g=c.getState("emphasis");B(g?g.style:null,a,u)}}function B(t,n,i){var a=t?t.text:null;if(!n&&i.isLeafRoot&&null!=a){var o=e.get("drillDownIcon",!0);t.text=o?o+" "+a:a}}function G(e,i,o,r){var s=null!=m&&n[e][m],l=a[e];return s?(n[e][m]=null,F(l,s)):y||(s=new i,s instanceof cr["c"]&&(s.z2=Cl(o,r)),H(l,s)),t[e][v]=s}function F(e,t){var n=e[v]={};t instanceof fl?(n.oldX=t.x,n.oldY=t.y):n.oldShape=Object(b["extend"])({},t.shape)}function H(e,t){var n=e[v]={},o=r.parentNode,s=t instanceof et["a"];if(o&&(!i||"drillDown"===i.direction)){var l=0,c=0,u=a.background[o.getRawIndex()];!i&&u&&u.oldShape&&(l=u.oldShape.width,c=u.oldShape.height),s?(n.oldX=0,n.oldY=c):n.oldShape={x:l,y:c,width:0,height:0}}n.fadein=!s}}function Cl(e,t){return e*xl+t}var Tl=Il,Dl=n("edae"),Ll=b["each"],Pl=b["isObject"],kl=-1,Nl=function(){function e(t){var n=t.mappingMethod,i=t.type,a=this.option=b["clone"](t);this.type=i,this.mappingMethod=n,this._normalizeData=Xl[n];var o=e.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(El(a),Rl(a)):"category"===n?a.categories?Vl(a):El(a,!0):(b["assert"]("linear"!==n||a.dataExtent),El(a))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return b["bind"](this._normalizeData,this)},e.listVisualTypes=function(){return b["keys"](e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){b["isObject"](e)?b["each"](e,t,n):t.call(n,e)},e.mapVisual=function(t,n,i){var a,o=b["isArray"](t)?[]:b["isObject"](t)?{}:(a=!0,null);return e.eachVisual(t,(function(e,t){var r=n.call(i,e,t);a?o=r:o[t]=r})),o},e.retrieveVisuals=function(t){var n,i={};return t&&Ll(e.visualHandlers,(function(e,a){t.hasOwnProperty(a)&&(i[a]=t[a],n=!0)})),n?i:null},e.prepareVisualTypes=function(e){if(b["isArray"](e))e=e.slice();else{if(!Pl(e))return[];var t=[];Ll(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var i,a=1/0,o=0,r=t.length;o<r;o++){var s=t[o].value;if(null!=s){if(s===e||b["isString"](s)&&s===e+"")return o;n&&h(s,o)}}for(o=0,r=t.length;o<r;o++){var l=t[o],c=l.interval,u=l.close;if(c){if(c[0]===-1/0){if(Ul(u[1],e,c[1]))return o}else if(c[1]===1/0){if(Ul(u[0],c[0],e))return o}else if(Ul(u[0],c[0],e)&&Ul(u[1],e,c[1]))return o;n&&h(c[0],o),n&&h(c[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:i;function h(t,n){var o=Math.abs(t-e);o<a&&(a=o,i=n)}},e.visualHandlers={color:{applyVisual:Gl("color"),getColorMapper:function(){var e=this.option;return b["bind"]("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),Fl.call(this,e)}:function(t,n,i){var a=!!i;return!n&&(t=this._normalizeData(t)),i=Zt["fastLerp"](t,e.parsedVisual,i),a?i:Zt["stringify"](i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Zt["stringify"](Zt["fastLerp"](e,this.option.parsedVisual),"rgba")},category:Fl,piecewise:function(e,t){var n=Yl.call(this,t);return null==n&&(n=Zt["stringify"](Zt["fastLerp"](e,this.option.parsedVisual),"rgba")),n},fixed:Hl}},colorHue:zl((function(e,t){return Zt["modifyHSL"](e,t)})),colorSaturation:zl((function(e,t){return Zt["modifyHSL"](e,null,t)})),colorLightness:zl((function(e,t){return Zt["modifyHSL"](e,null,null,t)})),colorAlpha:zl((function(e,t){return Zt["modifyAlpha"](e,t)})),decal:{applyVisual:Gl("decal"),_normalizedToVisual:{linear:null,category:Fl,piecewise:null,fixed:null}},opacity:{applyVisual:Gl("opacity"),_normalizedToVisual:Wl([0,1])},liftZ:{applyVisual:Gl("liftZ"),_normalizedToVisual:{linear:Hl,category:Hl,piecewise:Hl,fixed:Hl}},symbol:{applyVisual:function(e,t,n){var i=this.mapValueToVisual(e);n("symbol",i)},_normalizedToVisual:{linear:Bl,category:Fl,piecewise:function(e,t){var n=Yl.call(this,t);return null==n&&(n=Bl.call(this,e)),n},fixed:Hl}},symbolSize:{applyVisual:Gl("symbolSize"),_normalizedToVisual:Wl([0,1])}},e}();function Rl(e){var t=e.pieceList;e.hasSpecialVisual=!1,b["each"](t,(function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)}))}function Vl(e){var t=e.categories,n=e.categoryMap={},i=e.visual;if(Ll(t,(function(e,t){n[e]=t})),!b["isArray"](i)){var a=[];b["isObject"](i)?Ll(i,(function(e,t){var i=n[t];a[null!=i?i:kl]=e})):a[kl]=i,i=Zl(e,a)}for(var o=t.length-1;o>=0;o--)null==i[o]&&(delete n[t[o]],t.pop())}function El(e,t){var n=e.visual,i=[];b["isObject"](n)?Ll(n,(function(e){i.push(e)})):null!=n&&i.push(n);var a={color:1,symbol:1};t||1!==i.length||a.hasOwnProperty(e.type)||(i[1]=i[0]),Zl(e,i)}function zl(e){return{applyVisual:function(t,n,i){var a=this.mapValueToVisual(t);i("color",e(n("color"),a))},_normalizedToVisual:Wl([0,1])}}function Bl(e){var t=this.option.visual;return t[Math.round(Object(Bt["m"])(e,[0,1],[0,t.length-1],!0))]||{}}function Gl(e){return function(t,n,i){i(e,this.mapValueToVisual(t))}}function Fl(e){var t=this.option.visual;return t[this.option.loop&&e!==kl?e%t.length:e]}function Hl(){return this.option.visual[0]}function Wl(e){return{linear:function(t){return Object(Bt["m"])(t,e,this.option.visual,!0)},category:Fl,piecewise:function(t,n){var i=Yl.call(this,n);return null==i&&(i=Object(Bt["m"])(t,e,this.option.visual,!0)),i},fixed:Hl}}function Yl(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var i=Nl.findPieceIndex(e,n),a=n[i];if(a&&a.visual)return a.visual[this.type]}}function Zl(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=b["map"](t,(function(e){var t=Zt["parse"](e);return t||[0,0,0,1]}))),t}var Xl={linear:function(e){return Object(Bt["m"])(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=Nl.findPieceIndex(e,t,!0);if(null!=n)return Object(Bt["m"])(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?kl:t},fixed:b["noop"]};function Ul(e,t,n){return e?t<=n:t<n}var ql=Nl,Jl="itemStyle",Kl=Object(jt["o"])(),$l={seriesType:"treemap",reset:function(e){var t=e.getData().tree,n=t.root;n.isRemoved()||Ql(n,{},e.getViewRoot().getAncestors(),e)}};function Ql(e,t,n,i){var a=e.getModel(),o=e.getLayout(),r=e.hostTree.data;if(o&&!o.invisible&&o.isInView){var s,l=a.getModel(Jl),c=ec(l,t,i),u=r.ensureUniqueItemVisual(e.dataIndex,"style"),h=l.get("borderColor"),d=l.get("borderColorSaturation");null!=d&&(s=tc(c),h=nc(d,s)),u.stroke=h;var p=e.viewChildren;if(p&&p.length){var g=ac(e,a,o,l,c,p);Object(b["each"])(p,(function(e,t){if(e.depth>=n.length||e===n[e.depth]){var o=rc(a,c,e,t,g,i);Ql(e,o,n,i)}}))}else s=tc(c),u.fill=s}}function ec(e,t,n){var i=Object(b["extend"])({},t),a=n.designatedVisualItemStyle;return Object(b["each"])(["color","colorAlpha","colorSaturation"],(function(n){a[n]=t[n];var o=e.get(n);a[n]=null,null!=o&&(i[n]=o)})),i}function tc(e){var t=ic(e,"color");if(t){var n=ic(e,"colorAlpha"),i=ic(e,"colorSaturation");return i&&(t=Object(Zt["modifyHSL"])(t,null,null,i)),n&&(t=Object(Zt["modifyAlpha"])(t,n)),t}}function nc(e,t){return null!=t?Object(Zt["modifyHSL"])(t,null,null,e):null}function ic(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function ac(e,t,n,i,a,o){if(o&&o.length){var r=oc(t,"color")||null!=a.color&&"none"!==a.color&&(oc(t,"colorAlpha")||oc(t,"colorSaturation"));if(r){var s=t.get("visualMin"),l=t.get("visualMax"),c=n.dataExtent.slice();null!=s&&s<c[0]&&(c[0]=s),null!=l&&l>c[1]&&(c[1]=l);var u=t.get("colorMappingBy"),h={type:r.name,dataExtent:c,visual:r.range};"color"!==h.type||"index"!==u&&"id"!==u?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new ql(h);return Kl(d).drColorMappingBy=u,d}}}function oc(e,t){var n=e.get(t);return Object(b["isArray"])(n)&&n.length?{name:t,range:n}:null}function rc(e,t,n,i,a,o){var r=Object(b["extend"])({},t);if(a){var s=a.type,l="color"===s&&Kl(a).drColorMappingBy,c="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));r[s]=a.mapValueToVisual(c)}return r}var sc=Math.max,lc=Math.min,cc=b["retrieve"],uc=b["each"],hc=["itemStyle","borderWidth"],dc=["itemStyle","gapWidth"],pc=["upperLabel","show"],gc=["upperLabel","height"],fc={seriesType:"treemap",reset:function(e,t,n,i){var a=n.getWidth(),o=n.getHeight(),r=e.option,s=Ai["g"](e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=r.size||[],c=Object(Bt["q"])(cc(s.width,l[0]),a),u=Object(Bt["q"])(cc(s.height,l[1]),o),h=i&&i.type,d=["treemapZoomToNode","treemapRootToNode"],p=Vs(i,d,e),g="treemapRender"===h||"treemapMove"===h?i.rootRect:null,f=e.getViewRoot(),y=Es(f);if("treemapMove"!==h){var v="treemapZoomToNode"===h?Sc(e,p,f,c,u):g?[g.width,g.height]:[c,u],m=r.sort;m&&"asc"!==m&&"desc"!==m&&(m="desc");var x={squareRatio:r.squareRatio,sort:m,leafDepth:r.leafDepth};f.hostTree.clearLayouts();var _={x:0,y:0,width:v[0],height:v[1],area:v[0]*v[1]};f.setLayout(_),yc(f,x,!1,0),_=f.getLayout(),uc(y,(function(e,t){var n=(y[t+1]||f).getValue();e.setLayout(b["extend"]({dataExtent:[n,n],borderWidth:0,upperHeight:0},_))}))}var O=e.getData().tree.root;O.setLayout(wc(s,g,p),!0),e.setLayoutInfo(s),Mc(O,new li["a"](-s.x,-s.y,a,o),y,f,0)}};function yc(e,t,n,i){var a,o;if(!e.isRemoved()){var r=e.getLayout();a=r.width,o=r.height;var s=e.getModel(),l=s.get(hc),c=s.get(dc)/2,u=Ic(s),h=Math.max(l,u),d=l-c,p=h-c;e.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:u},!0),a=sc(a-2*d,0),o=sc(o-d-p,0);var g=a*o,f=vc(e,s,g,t,n,i);if(f.length){var y={x:d,y:p,width:a,height:o},v=lc(a,o),m=1/0,b=[];b.area=0;for(var x=0,_=f.length;x<_;){var O=f[x];b.push(O),b.area+=O.getLayout().area;var S=_c(b,v,t.squareRatio);S<=m?(x++,m=S):(b.area-=b.pop().getLayout().area,Oc(b,v,y,c,!1),v=lc(y.width,y.height),b.length=b.area=0,m=1/0)}if(b.length&&Oc(b,v,y,c,!0),!n){var w=s.get("childrenVisibleMin");null!=w&&g<w&&(n=!0)}for(x=0,_=f.length;x<_;x++)yc(f[x],t,n,i+1)}}}function vc(e,t,n,i,a,o){var r=e.children||[],s=i.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=i.leafDepth&&i.leafDepth<=o;if(a&&!l)return e.viewChildren=[];r=b["filter"](r,(function(e){return!e.isRemoved()})),bc(r,s);var c=xc(t,r,s);if(0===c.sum)return e.viewChildren=[];if(c.sum=mc(t,n,c.sum,s,r),0===c.sum)return e.viewChildren=[];for(var u=0,h=r.length;u<h;u++){var d=r[u].getValue()/c.sum*n;r[u].setLayout({area:d})}return l&&(r.length&&e.setLayout({isLeafRoot:!0},!0),r.length=0),e.viewChildren=r,e.setLayout({dataExtent:c.dataExtent},!0),r}function mc(e,t,n,i,a){if(!i)return n;for(var o=e.get("visibleMin"),r=a.length,s=r,l=r-1;l>=0;l--){var c=a["asc"===i?r-l-1:l].getValue();c/n*t<o&&(s=l,n-=c)}return"asc"===i?a.splice(0,r-s):a.splice(s,r-s),n}function bc(e,t){return t&&e.sort((function(e,n){var i="asc"===t?e.getValue()-n.getValue():n.getValue()-e.getValue();return 0===i?"asc"===t?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:i})),e}function xc(e,t,n){for(var i=0,a=0,o=t.length;a<o;a++)i+=t[a].getValue();var r,s=e.get("visualDimension");return t&&t.length?"value"===s&&n?(r=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&r.reverse()):(r=[1/0,-1/0],uc(t,(function(e){var t=e.getValue(s);t<r[0]&&(r[0]=t),t>r[1]&&(r[1]=t)}))):r=[NaN,NaN],{sum:i,dataExtent:r}}function _c(e,t,n){for(var i=0,a=1/0,o=0,r=void 0,s=e.length;o<s;o++)r=e[o].getLayout().area,r&&(r<a&&(a=r),r>i&&(i=r));var l=e.area*e.area,c=t*t*n;return l?sc(c*i/l,l/(c*a)):1/0}function Oc(e,t,n,i,a){var o=t===n.width?0:1,r=1-o,s=["x","y"],l=["width","height"],c=n[s[o]],u=t?e.area/t:0;(a||u>n[l[r]])&&(u=n[l[r]]);for(var h=0,d=e.length;h<d;h++){var p=e[h],g={},f=u?p.getLayout().area/u:0,y=g[l[r]]=sc(u-2*i,0),v=n[s[o]]+n[l[o]]-c,m=h===d-1||v<f?v:f,b=g[l[o]]=sc(m-2*i,0);g[s[r]]=n[s[r]]+lc(i,y/2),g[s[o]]=c+lc(i,b/2),c+=m,p.setLayout(g,!0)}n[s[r]]+=u,n[l[r]]-=u}function Sc(e,t,n,i,a){var o,r=(t||{}).node,s=[i,a];if(!r||r===n)return s;var l=i*a,c=l*e.option.zoomToNodeRatio;while(o=r.parentNode){for(var u=0,h=o.children,d=0,p=h.length;d<p;d++)u+=h[d].getValue();var g=r.getValue();if(0===g)return s;c*=u/g;var f=o.getModel(),y=f.get(hc),v=Math.max(y,Ic(f));c+=4*y*y+(3*y+v)*Math.pow(c,.5),c>Bt["a"]&&(c=Bt["a"]),r=o}c<l&&(c=l);var m=Math.pow(c/l,.5);return[i*m,a*m]}function wc(e,t,n){if(t)return{x:t.x,y:t.y};var i={x:0,y:0};if(!n)return i;var a=n.node,o=a.getLayout();if(!o)return i;var r=[o.width/2,o.height/2],s=a;while(s){var l=s.getLayout();r[0]+=l.x,r[1]+=l.y,s=s.parentNode}return{x:e.width/2-r[0],y:e.height/2-r[1]}}function Mc(e,t,n,i,a){var o=e.getLayout(),r=n[a],s=r&&r===e;if(!(r&&!s||a===n.length&&e!==i)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(o),isAboveViewRoot:s},!0);var l=new li["a"](t.x-o.x,t.y-o.y,t.width,t.height);uc(e.viewChildren||[],(function(e){Mc(e,l,n,i,a+1)}))}}function Ic(e){return e.get(pc)?e.get(gc):0}function jc(e){e.registerSeriesModel(il),e.registerChartView(Tl),e.registerVisual($l),e.registerLayout(fc),Ks(e)}function Ac(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),i=e.getGraph(),a=i.data,o=n.mapArray(n.getName);a.filterSelf((function(e){var n=a.getItemModel(e),i=n.getShallow("category");if(null!=i){Object(b["isNumber"])(i)&&(i=o[i]);for(var r=0;r<t.length;r++)if(!t[r].isSelected(i))return!1}return!0}))}))}function Cc(e){var t={};e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),i=e.getData(),a={};n.each((function(i){var o=n.getName(i);a["ec-"+o]=i;var r=n.getItemModel(i),s=r.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e.getColorFromPalette(o,t)),n.setItemVisual(i,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],c=0;c<l.length;c++){var u=r.getShallow(l[c],!0);null!=u&&n.setItemVisual(i,l[c],u)}})),n.count()&&i.each((function(e){var t=i.getItemModel(e),o=t.getShallow("category");if(null!=o){Object(b["isString"])(o)&&(o=a["ec-"+o]);var r=n.getItemVisual(o,"style"),s=i.ensureUniqueItemVisual(e,"style");Object(b["extend"])(s,r);for(var l=["symbol","symbolSize","symbolKeepAspect"],c=0;c<l.length;c++)i.setItemVisual(e,l[c],n.getItemVisual(o,l[c]))}}))}))}function Tc(e){return e instanceof Array||(e=[e,e]),e}function Dc(e){e.eachSeriesByType("graph",(function(e){var t=e.getGraph(),n=e.getEdgeData(),i=Tc(e.get("edgeSymbol")),a=Tc(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",a&&a[0]),n.setVisual("toSymbolSize",a&&a[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each((function(e){var i=n.getItemModel(e),a=t.getEdgeByIndex(e),o=Tc(i.getShallow("symbol",!0)),r=Tc(i.getShallow("symbolSize",!0)),s=i.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(e,"style");switch(Object(b["extend"])(l,s),l.stroke){case"source":var c=a.node1.getVisual("style");l.stroke=c&&c.fill;break;case"target":c=a.node2.getVisual("style");l.stroke=c&&c.fill;break}o[0]&&a.setVisual("fromSymbol",o[0]),o[1]&&a.setVisual("toSymbol",o[1]),r[0]&&a.setVisual("fromSymbolSize",r[0]),r[1]&&a.setVisual("toSymbolSize",r[1])}))}))}var Lc="--\x3e",Pc=function(e){return e.get("autoCurveness")||null},kc=function(e,t){var n=Pc(e),i=20,a=[];if(b["isNumber"](n))i=n;else if(b["isArray"](n))return void(e.__curvenessList=n);t>i&&(i=t);var o=i%2?i+2:i+3;a=[];for(var r=0;r<o;r++)a.push((r%2?r+1:r)/10*(r%2?-1:1));e.__curvenessList=a},Nc=function(e,t,n){var i=[e.id,e.dataIndex].join("."),a=[t.id,t.dataIndex].join(".");return[n.uid,i,a].join(Lc)},Rc=function(e){var t=e.split(Lc);return[t[0],t[2],t[1]].join(Lc)},Vc=function(e,t){var n=Nc(e.node1,e.node2,t);return t.__edgeMap[n]},Ec=function(e,t){var n=zc(Nc(e.node1,e.node2,t),t),i=zc(Nc(e.node2,e.node1,t),t);return n+i},zc=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function Bc(e){Pc(e)&&(e.__curvenessList=[],e.__edgeMap={},kc(e))}function Gc(e,t,n,i){if(Pc(n)){var a=Nc(e,t,n),o=n.__edgeMap,r=o[Rc(a)];o[a]&&!r?o[a].isForward=!0:r&&o[a]&&(r.isForward=!0,o[a].isForward=!1),o[a]=o[a]||[],o[a].push(i)}}function Fc(e,t,n,i){var a=Pc(t),o=b["isArray"](a);if(!a)return null;var r=Vc(e,t);if(!r)return null;for(var s=-1,l=0;l<r.length;l++)if(r[l]===n){s=l;break}var c=Ec(e,t);kc(t,c),e.lineStyle=e.lineStyle||{};var u=Nc(e.node1,e.node2,t),h=t.__curvenessList,d=o||c%2?0:1;if(r.isForward)return h[d+s];var p=Rc(u),g=zc(p,t),f=h[s+g+d];return i?o?a&&0===a[0]?(g+d)%2?f:-f:((g%2?0:1)+d)%2?f:-f:(g+d)%2?f:-f:h[s+g+d]}function Hc(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var n=e.getGraph();n.eachNode((function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])})),Wc(n,e)}}function Wc(e,t){e.eachEdge((function(e,n){var i=b["retrieve3"](e.getModel().get(["lineStyle","curveness"]),-Fc(e,t,n,!0),0),a=Ri["clone"](e.node1.getLayout()),o=Ri["clone"](e.node2.getLayout()),r=[a,o];+i&&r.push([(a[0]+o[0])/2-(a[1]-o[1])*i,(a[1]+o[1])/2-(o[0]-a[0])*i]),e.setLayout(r)}))}function Yc(e,t){e.eachSeriesByType("graph",(function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var i=e.getData(),a=[];Object(b["each"])(n.dimensions,(function(e){a=a.concat(i.mapDimensionsAll(e))}));for(var o=0;o<i.count();o++){for(var r=[],s=!1,l=0;l<a.length;l++){var c=i.get(a[l],o);isNaN(c)||(s=!0),r.push(c)}s?i.setItemLayout(o,n.dataToPoint(r)):i.setItemLayout(o,[NaN,NaN])}Wc(i.graph,e)}else t&&"none"!==t||Hc(e)}))}function Zc(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,i=t.scaleX,a=t.getZoom(),o=(a-1)*n+1;return o/i}function Xc(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var Uc=Math.PI,qc=[];function Jc(e,t,n,i){var a=e.coordinateSystem;if(!a||"view"===a.type){var o=a.getBoundingRect(),r=e.getData(),s=r.graph,l=o.width/2+o.x,c=o.height/2+o.y,u=Math.min(o.width,o.height)/2,h=r.count();if(r.setLayout({cx:l,cy:c}),h){if(n){var d=a.pointToData(i),p=d[0],g=d[1],f=[p-l,g-c];Ri["normalize"](f,f),Ri["scale"](f,f,u),n.setLayout([l+f[0],c+f[1]],!0);var y=e.get(["circular","rotateLabel"]);$c(n,y,l,c)}Kc[t](e,s,r,u,l,c,h),s.eachEdge((function(t,n){var i,a=b["retrieve3"](t.getModel().get(["lineStyle","curveness"]),Fc(t,e,n),0),o=Ri["clone"](t.node1.getLayout()),r=Ri["clone"](t.node2.getLayout()),s=(o[0]+r[0])/2,u=(o[1]+r[1])/2;+a&&(a*=3,i=[l*a+s*(1-a),c*a+u*(1-a)]),t.setLayout([o,r,i])}))}}}var Kc={value:function(e,t,n,i,a,o,r){var s=0,l=n.getSum("value"),c=2*Math.PI/(l||r);t.eachNode((function(e){var t=e.getValue("value"),n=c*(l?t:1)/2;s+=n,e.setLayout([i*Math.cos(s)+a,i*Math.sin(s)+o]),s+=n}))},symbolSize:function(e,t,n,i,a,o,r){var s=0;qc.length=r;var l=Zc(e);t.eachNode((function(e){var t=Xc(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=l;var n=Math.asin(t/2/i);isNaN(n)&&(n=Uc/2),qc[e.dataIndex]=n,s+=2*n}));var c=(2*Uc-s)/r/2,u=0;t.eachNode((function(e){var t=c+qc[e.dataIndex];u+=t,(!e.getLayout()||!e.getLayout().fixed)&&e.setLayout([i*Math.cos(u)+a,i*Math.sin(u)+o]),u+=t}))}};function $c(e,t,n,i){var a=e.getGraphicEl();if(a){var o=e.getModel(),r=o.get(["label","rotate"])||0,s=a.getSymbolPath();if(t){var l=e.getLayout(),c=Math.atan2(l[1]-i,l[0]-n);c<0&&(c=2*Math.PI+c);var u=l[0]<n;u&&(c-=Math.PI);var h=u?"left":"right";s.setTextConfig({rotation:-c,position:h,origin:"center"});var d=s.ensureState("emphasis");b["extend"](d.textConfig||(d.textConfig={}),{position:h})}else s.setTextConfig({rotation:r*=Math.PI/180})}}function Qc(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&Jc(e,"symbolSize")}))}var eu=Ri["scaleAndAdd"];function tu(e,t,n){for(var i=e,a=t,o=n.rect,r=o.width,s=o.height,l=[o.x+r/2,o.y+s/2],c=null==n.gravity?.1:n.gravity,u=0;u<i.length;u++){var h=i[u];h.p||(h.p=Ri["create"](r*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=Ri["clone"](h.p),h.edges=null}var d,p,g=null==n.friction?.6:n.friction,f=g;return{warmUp:function(){f=.8*g},setFixed:function(e){i[e].fixed=!0},setUnfixed:function(e){i[e].fixed=!1},beforeStep:function(e){d=e},afterStep:function(e){p=e},step:function(e){d&&d(i,a);for(var t=[],n=i.length,o=0;o<a.length;o++){var r=a[o];if(!r.ignoreForceLayout){var s=r.n1,u=r.n2;Ri["sub"](t,u.p,s.p);var h=Ri["len"](t)-r.d,g=u.w/(s.w+u.w);isNaN(g)&&(g=0),Ri["normalize"](t,t),!s.fixed&&eu(s.p,s.p,t,g*h*f),!u.fixed&&eu(u.p,u.p,t,-(1-g)*h*f)}}for(o=0;o<n;o++){var y=i[o];y.fixed||(Ri["sub"](t,l,y.p),eu(y.p,y.p,t,c*f))}for(o=0;o<n;o++){s=i[o];for(var v=o+1;v<n;v++){u=i[v];Ri["sub"](t,u.p,s.p);h=Ri["len"](t);0===h&&(Ri["set"](t,Math.random()-.5,Math.random()-.5),h=1);var m=(s.rep+u.rep)/h/h;!s.fixed&&eu(s.pp,s.pp,t,m),!u.fixed&&eu(u.pp,u.pp,t,-m)}}var b=[];for(o=0;o<n;o++){y=i[o];y.fixed||(Ri["sub"](b,y.p,y.pp),eu(y.p,y.p,b,f),Ri["copy"](y.pp,y.p))}f*=.992;var x=f<.01;p&&p(i,a,x),e&&e(x)}}}function nu(e){e.eachSeriesByType("graph",(function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},i=e.getGraph(),a=i.data,o=i.edgeData,r=e.getModel("force"),s=r.get("initLayout");e.preservedPoints?a.each((function(e){var t=a.getId(e);a.setItemLayout(e,n[t]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&Jc(e,"value"):Hc(e);var l=a.getDataExtent("value"),c=o.getDataExtent("value"),u=r.get("repulsion"),h=r.get("edgeLength"),d=b["isArray"](u)?u:[u,u],p=b["isArray"](h)?h:[h,h];p=[p[1],p[0]];var g=a.mapArray("value",(function(e,t){var n=a.getItemLayout(t),i=Object(Bt["m"])(e,l,d);return isNaN(i)&&(i=(d[0]+d[1])/2),{w:i,rep:i,fixed:a.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),f=o.mapArray("value",(function(t,n){var a=i.getEdgeByIndex(n),o=Object(Bt["m"])(t,c,p);isNaN(o)&&(o=(p[0]+p[1])/2);var r=a.getModel(),s=b["retrieve3"](a.getModel().get(["lineStyle","curveness"]),-Fc(a,e,n,!0),0);return{n1:g[a.node1.dataIndex],n2:g[a.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:r.get("ignoreForceLayout")}})),y=t.getBoundingRect(),v=tu(g,f,{rect:y,gravity:r.get("gravity"),friction:r.get("friction")});v.beforeStep((function(e,t){for(var n=0,a=e.length;n<a;n++)e[n].fixed&&Ri["copy"](e[n].p,i.getNodeByIndex(n).getLayout())})),v.afterStep((function(e,t,o){for(var r=0,s=e.length;r<s;r++)e[r].fixed||i.getNodeByIndex(r).setLayout(e[r].p),n[a.getId(r)]=e[r].p;for(r=0,s=t.length;r<s;r++){var l=t[r],c=i.getEdgeByIndex(r),u=l.n1.p,h=l.n2.p,d=c.getLayout();d=d?d.slice():[],d[0]=d[0]||[],d[1]=d[1]||[],Ri["copy"](d[0],u),Ri["copy"](d[1],h),+l.curveness&&(d[2]=[(u[0]+h[0])/2-(u[1]-h[1])*l.curveness,(u[1]+h[1])/2-(h[0]-u[0])*l.curveness]),c.setLayout(d)}})),e.forceLayout=v,e.preservedPoints=n,v.step()}else e.forceLayout=null}))}function iu(e,t,n){var i=Object(b["extend"])(e.getBoxLayoutParams(),{aspect:n});return Object(Ai["g"])(i,{width:t.getWidth(),height:t.getHeight()})}function au(e,t){var n=[];return e.eachSeriesByType("graph",(function(e){var i=e.get("coordinateSystem");if(!i||"view"===i){var a=e.getData(),o=a.mapArray((function(e){var t=a.getItemModel(e);return[+t.get("x"),+t.get("y")]})),r=[],s=[];ms["d"](o,r,s),s[0]-r[0]===0&&(s[0]+=1,r[0]-=1),s[1]-r[1]===0&&(s[1]+=1,r[1]-=1);var l=(s[0]-r[0])/(s[1]-r[1]),c=iu(e,t,l);isNaN(l)&&(r=[c.x,c.y],s=[c.x+c.width,c.y+c.height]);var u=s[0]-r[0],h=s[1]-r[1],d=c.width,p=c.height,g=e.coordinateSystem=new Vr;g.zoomLimit=e.get("scaleLimit"),g.setBoundingRect(r[0],r[1],u,h),g.setViewRect(c.x,c.y,d,p),g.setCenter(e.get("center"),t),g.setZoom(e.get("zoom")),n.push(g)}})),n}var ou=ta["a"].prototype,ru=as["a"].prototype,su=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}Object(Je["a"])(t,e)})(su);function lu(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var cu=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-line",n}return Object(Je["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new su},t.prototype.buildPath=function(e,t){lu(t)?ou.buildPath.call(this,e,t):ru.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return lu(this.shape)?ou.pointAt.call(this,e):ru.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=lu(t)?[t.x2-t.x1,t.y2-t.y1]:ru.tangentAt.call(this,e);return Ri["normalize"](n,n)},t}(s["b"]),uu=cu,hu=["fromSymbol","toSymbol"];function du(e){return"_"+e+"Type"}function pu(e,t,n){var i=t.getItemVisual(n,e);if(i&&"none"!==i){var a=t.getItemVisual(n,e+"Size"),o=t.getItemVisual(n,e+"Rotate"),r=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=Qe["c"](a),c=Qe["b"](r||0,l),u=Qe["a"](i,-l[0]/2+c[0],-l[1]/2+c[1],l[0],l[1],null,s);return u.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,u.name=e,u}}function gu(e){var t=new uu({name:"line",subPixelOptimize:!0});return fu(t.shape,e),t}function fu(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var yu=function(e){function t(t,n,i){var a=e.call(this)||this;return a._createLine(t,n,i),a}return Object(Je["a"])(t,e),t.prototype._createLine=function(e,t,n){var i=e.hostModel,a=e.getItemLayout(t),o=gu(a);o.shape.percent=0,it["c"](o,{shape:{percent:1}},i,t),this.add(o),Object(b["each"])(hu,(function(n){var i=pu(n,e,t);this.add(i),this[du(n)]=e.getItemVisual(t,n)}),this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var i=e.hostModel,a=this.childOfName("line"),o=e.getItemLayout(t),r={shape:{}};fu(r.shape,o),it["h"](a,r,i,t),Object(b["each"])(hu,(function(n){var i=e.getItemVisual(t,n),a=du(n);if(this[a]!==i){this.remove(this.childOfName(n));var o=pu(n,e,t);this.add(o)}this[a]=i}),this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var i=e.hostModel,a=this.childOfName("line"),o=n&&n.emphasisLineStyle,r=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,c=n&&n.emphasisDisabled,u=n&&n.focus,h=n&&n.blurScope;if(!n||e.hasItemOption){var d=e.getItemModel(t),p=d.getModel("emphasis");o=p.getModel("lineStyle").getLineStyle(),r=d.getModel(["blur","lineStyle"]).getLineStyle(),s=d.getModel(["select","lineStyle"]).getLineStyle(),c=p.get("disabled"),u=p.get("focus"),h=p.get("blurScope"),l=Object(ut["e"])(d)}var g=e.getItemVisual(t,"style"),f=g.stroke;a.useStyle(g),a.style.fill=null,a.style.strokeNoScale=!0,a.ensureState("emphasis").style=o,a.ensureState("blur").style=r,a.ensureState("select").style=s,Object(b["each"])(hu,(function(e){var t=this.childOfName(e);if(t){t.setColor(f),t.style.opacity=g.opacity;for(var n=0;n<rt["g"].length;n++){var i=rt["g"][n],o=a.getState(i);if(o){var r=o.style||{},s=t.ensureState(i),l=s.style||(s.style={});null!=r.stroke&&(l[t.__isEmptyBrush?"stroke":"fill"]=r.stroke),null!=r.opacity&&(l.opacity=r.opacity)}}t.markRedraw()}}),this);var y=i.getRawValue(t);Object(ut["g"])(this,l,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return i.getFormattedLabel(t,n,e.dataType)}},inheritColor:f||"#000",defaultOpacity:g.opacity,defaultText:(null==y?e.getName(t):isFinite(y)?Object(Bt["w"])(y):y)+""});var v=this.getTextContent();if(v){var m=l.normal;v.__align=v.style.align,v.__verticalAlign=v.style.verticalAlign,v.__position=m.get("position")||"middle";var x=m.get("distance");Object(b["isArray"])(x)||(x=[x,x]),v.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),Object(rt["J"])(this,u,h,c)},t.prototype.highlight=function(){Object(rt["r"])(this)},t.prototype.downplay=function(){Object(rt["C"])(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName("line");fu(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this,t=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),i=e.getTextContent();if(t||n||i&&!i.ignore){var a=1,o=this.parent;while(o)o.scaleX&&(a/=o.scaleX),o=o.parent;var r=e.childOfName("line");if(this.__dirty||r.__dirty){var s=r.shape.percent,l=r.pointAt(0),c=r.pointAt(s),u=Ri["sub"]([],c,l);if(Ri["normalize"](u,u),t&&(t.setPosition(l),S(t,0),t.scaleX=t.scaleY=a*s,t.markRedraw()),n&&(n.setPosition(c),S(n,1),n.scaleX=n.scaleY=a*s,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var h=void 0,d=void 0,p=i.__labelDistance,g=p[0]*a,f=p[1]*a,y=s/2,v=r.tangentAt(y),m=[v[1],-v[0]],b=r.pointAt(y);m[1]>0&&(m[0]=-m[0],m[1]=-m[1]);var x=v[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var _=-Math.atan2(v[1],v[0]);c[0]<l[0]&&(_=Math.PI+_),i.rotation=_}var O=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":O=-f,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":O=f,d="top";break;default:O=0,d="middle"}switch(i.__position){case"end":i.x=u[0]*g+c[0],i.y=u[1]*f+c[1],h=u[0]>.8?"left":u[0]<-.8?"right":"center",d=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";break;case"start":i.x=-u[0]*g+l[0],i.y=-u[1]*f+l[1],h=u[0]>.8?"right":u[0]<-.8?"left":"center",d=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=g*x+l[0],i.y=l[1]+O,h=v[0]<0?"right":"left",i.originX=-g*x,i.originY=-O;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=b[0],i.y=b[1]+O,h="center",i.originY=-O;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-g*x+c[0],i.y=c[1]+O,h=v[0]>=0?"right":"left",i.originX=g*x,i.originY=-O;break}i.scaleX=i.scaleY=a,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||h})}}}function S(e,t){var n=e.__specifiedRotation;if(null==n){var i=r.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else e.attr("rotation",n)}},t}(et["a"]),vu=yu,mu=function(){function e(e){this.group=new et["a"],this._LineCtor=e||vu}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=e,a||i.removeAll();var o=xu(e);e.diff(a).add((function(n){t._doAdd(e,n,o)})).update((function(n,i){t._doUpdate(a,e,i,n,o)})).remove((function(e){i.remove(a.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=xu(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||bu(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=e.start;i<e.end;i++){var a=t.getItemLayout(i);if(Ou(a)){var o=new this._LineCtor(t,i,this._seriesScope);o.traverse(n),this.group.add(o),t.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){at["traverseElements"](this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){var i=e.getItemLayout(t);if(Ou(i)){var a=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,a),this.group.add(a)}},e.prototype._doUpdate=function(e,t,n,i,a){var o=e.getItemGraphicEl(n);Ou(t.getItemLayout(i))?(o?o.updateData(t,i,a):o=new this._LineCtor(t,i,a),t.setItemGraphicEl(i,o),this.group.add(o)):this.group.remove(o)},e}();function bu(e){return e.animators&&e.animators.length>0}function xu(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:Object(ut["e"])(t)}}function _u(e){return isNaN(e[0])||isNaN(e[1])}function Ou(e){return e&&!_u(e[0])&&!_u(e[1])}var Su=mu,wu=[],Mu=[],Iu=[],ju=At["h"],Au=Ri["distSquare"],Cu=Math.abs;function Tu(e,t,n){for(var i,a=e[0],o=e[1],r=e[2],s=1/0,l=n*n,c=.1,u=.1;u<=.9;u+=.1){wu[0]=ju(a[0],o[0],r[0],u),wu[1]=ju(a[1],o[1],r[1],u);var h=Cu(Au(wu,t)-l);h<s&&(s=h,i=u)}for(var d=0;d<32;d++){var p=i+c;Mu[0]=ju(a[0],o[0],r[0],i),Mu[1]=ju(a[1],o[1],r[1],i),Iu[0]=ju(a[0],o[0],r[0],p),Iu[1]=ju(a[1],o[1],r[1],p);h=Au(Mu,t)-l;if(Cu(h)<.01)break;var g=Au(Iu,t)-l;c/=2,h<0?g>=0?i+=c:i-=c:g>=0?i-=c:i+=c}return i}function Du(e,t){var n=[],i=At["n"],a=[[],[],[]],o=[[],[]],r=[];t/=2,e.eachEdge((function(e,s){var l=e.getLayout(),c=e.getVisual("fromSymbol"),u=e.getVisual("toSymbol");l.__original||(l.__original=[Ri["clone"](l[0]),Ri["clone"](l[1])],l[2]&&l.__original.push(Ri["clone"](l[2])));var h=l.__original;if(null!=l[2]){if(Ri["copy"](a[0],h[0]),Ri["copy"](a[1],h[2]),Ri["copy"](a[2],h[1]),c&&"none"!==c){var d=Xc(e.node1),p=Tu(a,h[0],d*t);i(a[0][0],a[1][0],a[2][0],p,n),a[0][0]=n[3],a[1][0]=n[4],i(a[0][1],a[1][1],a[2][1],p,n),a[0][1]=n[3],a[1][1]=n[4]}if(u&&"none"!==u){d=Xc(e.node2),p=Tu(a,h[1],d*t);i(a[0][0],a[1][0],a[2][0],p,n),a[1][0]=n[1],a[2][0]=n[2],i(a[0][1],a[1][1],a[2][1],p,n),a[1][1]=n[1],a[2][1]=n[2]}Ri["copy"](l[0],a[0]),Ri["copy"](l[1],a[2]),Ri["copy"](l[2],a[1])}else{if(Ri["copy"](o[0],h[0]),Ri["copy"](o[1],h[1]),Ri["sub"](r,o[1],o[0]),Ri["normalize"](r,r),c&&"none"!==c){d=Xc(e.node1);Ri["scaleAndAdd"](o[0],o[0],r,d*t)}if(u&&"none"!==u){d=Xc(e.node2);Ri["scaleAndAdd"](o[1],o[1],r,-d*t)}Ri["copy"](l[0],o[0]),Ri["copy"](l[1],o[1])}}))}function Lu(e){return"view"===e.type}var Pu=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.init=function(e,t){var n=new mt,i=new Su,a=this.group;this._controller=new oo(t.getZr()),this._controllerHost={target:a},a.add(n.group),a.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,t,n){var i=this,a=e.coordinateSystem;this._model=e;var o=this._symbolDraw,r=this._lineDraw,s=this.group;if(Lu(a)){var l={x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY};this._firstRender?s.attr(l):it["h"](s,l,e)}Du(e.getGraph(),Zc(e));var c=e.getData();o.updateData(c);var u=e.getEdgeData();r.updateData(u),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var h=e.forceLayout,d=e.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,d);var p=e.get("layout");c.graph.eachNode((function(t){var n=t.dataIndex,a=t.getGraphicEl(),o=t.getModel();if(a){a.off("drag").off("dragend");var r=o.get("draggable");r&&a.on("drag",(function(o){switch(p){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,d),h.setFixed(n),c.setItemLayout(n,[a.x,a.y]);break;case"circular":c.setItemLayout(n,[a.x,a.y]),t.setLayout({fixed:!0},!0),Jc(e,"symbolSize",t,[o.offsetX,o.offsetY]),i.updateLayout(e);break;case"none":default:c.setItemLayout(n,[a.x,a.y]),Wc(e.getGraph(),e),i.updateLayout(e);break}})).on("dragend",(function(){h&&h.setUnfixed(n)})),a.setDraggable(r,!!o.get("cursor"));var s=o.get(["emphasis","focus"]);"adjacency"===s&&(Object(ot["a"])(a).focus=t.getAdjacentDataIndices())}})),c.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===n&&(Object(ot["a"])(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var g="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),f=c.getLayout("cx"),y=c.getLayout("cy");c.graph.eachNode((function(e){$c(e,g,f,y)})),this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;(function i(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(i,16):i())}))})()},t.prototype._updateController=function(e,t,n){var i=this,a=this._controller,o=this._controllerHost,r=this.group;a.setPointerChecker((function(t,i,a){var o=r.getBoundingRect();return o.applyTransform(r.transform),o.contain(i,a)&&!co(t,n,e)})),Lu(e.coordinateSystem)?(a.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),a.off("pan").off("zoom").on("pan",(function(t){ro(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){so(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(),Du(e.getGraph(),Zc(e)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):a.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=Zc(e);t.eachItemGraphicEl((function(e,t){e&&e.setSymbolScale(n)}))},t.prototype.updateLayout=function(e){Du(e.getGraph(),Zc(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(Vt["a"]),ku=Pu,Nu=n("7368"),Ru=n("1f39");function Vu(e,t,n,i,a){for(var o=new Nu["a"](i),r=0;r<e.length;r++)o.addNode(b["retrieve"](e[r].id,e[r].name,r),r);var s=[],l=[],c=0;for(r=0;r<t.length;r++){var u=t[r],h=u.source,d=u.target;o.addEdge(h,d,c)&&(l.push(u),s.push(b["retrieve"](Object(jt["e"])(u.id,null),h+" > "+d)),c++)}var p,g=n.get("coordinateSystem");if("cartesian2d"===g||"polar"===g)p=Object(Ke["a"])(e,n);else{var f=Ru["a"].get(g),y=f&&f.dimensions||[];b["indexOf"](y,"value")<0&&y.concat(["value"]);var v=Object(Ls["b"])(e,{coordDimensions:y,encodeDefine:n.getEncode()}).dimensions;p=new Ds["a"](v,n),p.initData(e)}var m=new Ds["a"](["value"],n);return m.initData(l,s),a&&a(p,m),Object(Ts["a"])({mainData:p,struct:o,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var Eu=n("f6d8"),zu=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(Je["a"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new ja["a"](i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Object(jt["f"])(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],i=e.data||e.nodes||[],a=this;if(i&&n){Bc(this);var o=Vu(i,n,this,!0,r);return b["each"](o.edges,(function(e){Gc(e.node1,e.node2,this,e.dataIndex)}),this),o.data}function r(e,t){e.wrapMethod("getItemModel",(function(e){var t=a._categoriesModels,n=e.getShallow("category"),i=t[n];return i&&(i.parentModel=e.parentModel,e.parentModel=i),e}));var n=Da["a"].prototype.getModel;function i(e,t){var i=n.call(this,e,t);return i.resolveParentPath=o,i}function o(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=o,e.getModel=i,e}))}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var i=this.getData(),a=this.getDataParams(e,n),o=i.graph.getEdgeByIndex(e),r=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=r&&l.push(r),null!=s&&l.push(s),Object(Aa["c"])("nameValue",{name:l.join(" > "),value:a.value,noValue:null==a.value})}var c=Object(Eu["a"])({series:this,dataIndex:e,multipleSeries:t});return c},t.prototype._updateCategoriesData=function(){var e=b["map"](this.option.categories||[],(function(e){return null!=e.value?e:b["extend"]({value:0},e)})),t=new Ds["a"](["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e)}))},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}($e["b"]),Bu=zu,Gu={type:"graphRoam",event:"graphRoam",update:"none"};function Fu(e){e.registerChartView(ku),e.registerSeriesModel(Bu),e.registerProcessor(Ac),e.registerVisual(Cc),e.registerVisual(Dc),e.registerLayout(Yc),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,Qc),e.registerLayout(nu),e.registerCoordinateSystem("graphView",{dimensions:Vr.dimensions,create:au}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},b["noop"]),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},b["noop"]),e.registerAction(Gu,(function(e,t,n){t.eachComponent({mainType:"series",query:e},(function(t){var i=t.coordinateSystem,a=Kr(i,e,void 0,n);t.setCenter&&t.setCenter(a.center),t.setZoom&&t.setZoom(a.zoom)}))}))}var Hu=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),Wu=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return Object(Je["a"])(t,e),t.prototype.getDefaultShape=function(){return new Hu},t.prototype.buildPath=function(e,t){var n=Math.cos,i=Math.sin,a=t.r,o=t.width,r=t.angle,s=t.x-n(r)*o*(o>=a/3?1:2),l=t.y-i(r)*o*(o>=a/3?1:2);r=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(r)*o,t.y+i(r)*o),e.lineTo(t.x+n(t.angle)*a,t.y+i(t.angle)*a),e.lineTo(t.x-n(r)*o,t.y-i(r)*o),e.lineTo(s,l)},t}(s["b"]),Yu=Wu;function Zu(e,t){var n=e.get("center"),i=t.getWidth(),a=t.getHeight(),o=Math.min(i,a),r=Object(Bt["q"])(n[0],t.getWidth()),s=Object(Bt["q"])(n[1],t.getHeight()),l=Object(Bt["q"])(e.get("radius"),o/2);return{cx:r,cy:s,r:l}}function Xu(e,t){var n=null==e?"":e+"";return t&&(Object(b["isString"])(t)?n=t.replace("{value}",n):Object(b["isFunction"])(t)&&(n=t(e))),n}var Uu=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),a=Zu(e,n);this._renderMain(e,t,n,i,a),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,i,a){var o=this.group,r=e.get("clockwise"),s=-e.get("startAngle")/180*Math.PI,l=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),u=c.get("roundCap"),h=u?An:zt["a"],d=c.get("show"),p=c.getModel("lineStyle"),g=p.get("width"),f=[s,l];Object(F["b"])(f,!r),s=f[0],l=f[1];for(var y=l-s,v=s,m=[],x=0;d&&x<i.length;x++){var _=Math.min(Math.max(i[x][0],0),1);l=s+y*_;var O=new h({shape:{startAngle:v,endAngle:l,cx:a.cx,cy:a.cy,clockwise:r,r0:a.r-g,r:a.r},silent:!0});O.setStyle({fill:i[x][1]}),O.setStyle(p.getLineStyle(["color","width"])),m.push(O),v=l}m.reverse(),Object(b["each"])(m,(function(e){return o.add(e)}));var S=function(e){if(e<=0)return i[0][1];var t;for(t=0;t<i.length;t++)if(i[t][0]>=e&&(0===t?0:i[t-1][0])<e)return i[t][1];return i[t-1][1]};this._renderTicks(e,t,n,S,a,s,l,r,g),this._renderTitleAndDetail(e,t,n,S,a),this._renderAnchor(e,a),this._renderPointer(e,t,n,S,a,s,l,r,g)},t.prototype._renderTicks=function(e,t,n,i,a,o,r,s,l){for(var c,u,h=this.group,d=a.cx,p=a.cy,g=a.r,f=+e.get("min"),y=+e.get("max"),v=e.getModel("splitLine"),m=e.getModel("axisTick"),x=e.getModel("axisLabel"),_=e.get("splitNumber"),O=m.get("splitNumber"),S=Object(Bt["q"])(v.get("length"),g),w=Object(Bt["q"])(m.get("length"),g),M=o,I=(r-o)/_,j=I/O,A=v.getModel("lineStyle").getLineStyle(),C=m.getModel("lineStyle").getLineStyle(),T=v.get("distance"),D=0;D<=_;D++){if(c=Math.cos(M),u=Math.sin(M),v.get("show")){var L=T?T+l:l,P=new ta["a"]({shape:{x1:c*(g-L)+d,y1:u*(g-L)+p,x2:c*(g-S-L)+d,y2:u*(g-S-L)+p},style:A,silent:!0});"auto"===A.stroke&&P.setStyle({stroke:i(D/_)}),h.add(P)}if(x.get("show")){L=x.get("distance")+T;var k=Xu(Object(Bt["w"])(D/_*(y-f)+f),x.get("formatter")),N=i(D/_),R=c*(g-S-L)+d,V=u*(g-S-L)+p,E=x.get("rotate"),z=0;"radial"===E?(z=-M+2*Math.PI,z>Math.PI/2&&(z+=Math.PI)):"tangential"===E?z=-M-Math.PI/2:Object(b["isNumber"])(E)&&(z=E*Math.PI/180),0===z?h.add(new ee["a"]({style:Object(ut["c"])(x,{text:k,x:R,y:V,verticalAlign:u<-.8?"top":u>.8?"bottom":"middle",align:c<-.4?"left":c>.4?"right":"center"},{inheritColor:N}),silent:!0})):h.add(new ee["a"]({style:Object(ut["c"])(x,{text:k,x:R,y:V,verticalAlign:"middle",align:"center"},{inheritColor:N}),silent:!0,originX:R,originY:V,rotation:z}))}if(m.get("show")&&D!==_){L=m.get("distance");L=L?L+l:l;for(var B=0;B<=O;B++){c=Math.cos(M),u=Math.sin(M);var G=new ta["a"]({shape:{x1:c*(g-L)+d,y1:u*(g-L)+p,x2:c*(g-w-L)+d,y2:u*(g-w-L)+p},silent:!0,style:C});"auto"===C.stroke&&G.setStyle({stroke:i((D+B/O)/_)}),h.add(G),M+=j}M-=j}else M+=I}},t.prototype._renderPointer=function(e,t,n,i,a,o,r,s,c){var u=this.group,h=this._data,d=this._progressEls,p=[],g=e.get(["pointer","show"]),f=e.getModel("progress"),y=f.get("show"),v=e.getData(),m=v.mapDimension("value"),x=+e.get("min"),_=+e.get("max"),O=[x,_],S=[o,r];function w(t,n){var i,o=v.getItemModel(t),r=o.getModel("pointer"),s=Object(Bt["q"])(r.get("width"),a.r),l=Object(Bt["q"])(r.get("length"),a.r),c=e.get(["pointer","icon"]),u=r.get("offsetCenter"),h=Object(Bt["q"])(u[0],a.r),d=Object(Bt["q"])(u[1],a.r),p=r.get("keepAspect");return i=c?Object(Qe["a"])(c,h-s/2,d-l,s,l,null,p):new Yu({shape:{angle:-Math.PI/2,width:s,r:l,x:h,y:d}}),i.rotation=-(n+Math.PI/2),i.x=a.cx,i.y=a.cy,i}function M(e,t){var n=f.get("roundCap"),i=n?An:zt["a"],r=f.get("overlap"),l=r?f.get("width"):c/v.count(),u=r?a.r-l:a.r-(e+1)*l,h=r?a.r:a.r-e*l,d=new i({shape:{startAngle:o,endAngle:t,cx:a.cx,cy:a.cy,clockwise:s,r0:u,r:h}});return r&&(d.z2=_-v.get(m,e)%_),d}(y||g)&&(v.diff(h).add((function(t){var n=v.get(m,t);if(g){var i=w(t,o);it["c"](i,{rotation:-((isNaN(+n)?S[0]:Object(Bt["m"])(n,O,S,!0))+Math.PI/2)},e),u.add(i),v.setItemGraphicEl(t,i)}if(y){var a=M(t,o),r=f.get("clip");it["c"](a,{shape:{endAngle:Object(Bt["m"])(n,O,S,r)}},e),u.add(a),Object(ot["b"])(e.seriesIndex,v.dataType,t,a),p[t]=a}})).update((function(t,n){var i=v.get(m,t);if(g){var a=h.getItemGraphicEl(n),r=a?a.rotation:o,s=w(t,r);s.rotation=r,it["h"](s,{rotation:-((isNaN(+i)?S[0]:Object(Bt["m"])(i,O,S,!0))+Math.PI/2)},e),u.add(s),v.setItemGraphicEl(t,s)}if(y){var l=d[n],c=l?l.shape.endAngle:o,b=M(t,c),x=f.get("clip");it["h"](b,{shape:{endAngle:Object(Bt["m"])(i,O,S,x)}},e),u.add(b),Object(ot["b"])(e.seriesIndex,v.dataType,t,b),p[t]=b}})).execute(),v.each((function(e){var t=v.getItemModel(e),n=t.getModel("emphasis"),a=n.get("focus"),o=n.get("blurScope"),r=n.get("disabled");if(g){var s=v.getItemGraphicEl(e),c=v.getItemVisual(e,"style"),u=c.fill;if(s instanceof l["a"]){var h=s.style;s.useStyle(Object(b["extend"])({image:h.image,x:h.x,y:h.y,width:h.width,height:h.height},c))}else s.useStyle(c),"pointer"!==s.type&&s.setColor(u);s.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i(Object(Bt["m"])(v.get(m,e),O,[0,1],!0))),s.z2EmphasisLift=0,Object(rt["I"])(s,t),Object(rt["J"])(s,a,o,r)}if(y){var d=p[e];d.useStyle(v.getItemVisual(e,"style")),d.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),d.z2EmphasisLift=0,Object(rt["I"])(d,t),Object(rt["J"])(d,a,o,r)}})),this._progressEls=p)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor"),i=n.get("show");if(i){var a=n.get("size"),o=n.get("icon"),r=n.get("offsetCenter"),s=n.get("keepAspect"),l=Object(Qe["a"])(o,t.cx-a/2+Object(Bt["q"])(r[0],t.r),t.cy-a/2+Object(Bt["q"])(r[1],t.r),a,a,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},t.prototype._renderTitleAndDetail=function(e,t,n,i,a){var o=this,r=e.getData(),s=r.mapDimension("value"),l=+e.get("min"),c=+e.get("max"),u=new et["a"],h=[],d=[],p=e.isAnimationEnabled(),g=e.get(["pointer","showAbove"]);r.diff(this._data).add((function(e){h[e]=new ee["a"]({silent:!0}),d[e]=new ee["a"]({silent:!0})})).update((function(e,t){h[e]=o._titleEls[t],d[e]=o._detailEls[t]})).execute(),r.each((function(t){var n=r.getItemModel(t),o=r.get(s,t),f=new et["a"],y=i(Object(Bt["m"])(o,[l,c],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var m=v.get("offsetCenter"),b=a.cx+Object(Bt["q"])(m[0],a.r),x=a.cy+Object(Bt["q"])(m[1],a.r),_=h[t];_.attr({z2:g?0:2,style:Object(ut["c"])(v,{x:b,y:x,text:r.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:y})}),f.add(_)}var O=n.getModel("detail");if(O.get("show")){var S=O.get("offsetCenter"),w=a.cx+Object(Bt["q"])(S[0],a.r),M=a.cy+Object(Bt["q"])(S[1],a.r),I=Object(Bt["q"])(O.get("width"),a.r),j=Object(Bt["q"])(O.get("height"),a.r),A=e.get(["progress","show"])?r.getItemVisual(t,"style").fill:y,C=(_=d[t],O.get("formatter"));_.attr({z2:g?0:2,style:Object(ut["c"])(O,{x:w,y:M,text:Xu(o,C),width:isNaN(I)?null:I,height:isNaN(j)?null:j,align:"center",verticalAlign:"middle"},{inheritColor:A})}),Object(ut["h"])(_,{normal:O},o,(function(e){return Xu(e,C)})),p&&Object(ut["a"])(_,t,r,e,{getFormattedLabel:function(e,t,n,i,a,r){return Xu(r?r.interpolatedValue:o,C)}}),f.add(_)}u.add(f)})),this.group.add(u),this._titleEls=h,this._detailEls=d},t.type="gauge",t}(Vt["a"]),qu=Uu,Ju=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return Object(Je["a"])(t,e),t.prototype.getInitialData=function(e,t){return Object(Ia["a"])(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}($e["b"]),Ku=Ju;function $u(e){e.registerChartView(qu),e.registerSeriesModel(Ku)}var Qu=n("dce8"),eh=n("89b6"),th=["itemStyle","opacity"],nh=function(e){function t(t,n){var i=e.call(this)||this,a=i,o=new Sa["a"],r=new ee["a"];return a.setTextContent(r),i.setTextGuideLine(o),i.updateData(t,n,!0),i}return Object(Je["a"])(t,e),t.prototype.updateData=function(e,t,n){var i=this,a=e.hostModel,o=e.getItemModel(t),r=e.getItemLayout(t),s=o.getModel("emphasis"),l=o.get(th);l=null==l?1:l,n||Object(it["g"])(i),i.useStyle(e.getItemVisual(t,"style")),i.style.lineJoin="round",n?(i.setShape({points:r.points}),i.style.opacity=0,it["c"](i,{style:{opacity:l}},a,t)):it["h"](i,{style:{opacity:l},shape:{points:r.points}},a,t),Object(rt["I"])(i,o),this._updateLabel(e,t),Object(rt["J"])(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e,t){var n=this,i=this.getTextGuideLine(),a=n.getTextContent(),o=e.hostModel,r=e.getItemModel(t),s=e.getItemLayout(t),l=s.label,c=e.getItemVisual(t,"style"),u=c.fill;Object(ut["g"])(a,Object(ut["e"])(r),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:c.opacity,defaultText:e.getName(t)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:u,outsideFill:u});var h=l.linePoints;i.setShape({points:h}),n.textGuideLineConfig={anchor:h?new Qu["a"](h[0][0],h[0][1]):null},it["h"](a,{style:{x:l.x,y:l.y}},o,t),a.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),Object(eh["d"])(n,Object(eh["a"])(r),{stroke:u})},t}(Oa["a"]),ih=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return Object(Je["a"])(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),a=this._data,o=this.group;i.diff(a).add((function(e){var t=new nh(i,e);i.setItemGraphicEl(e,t),o.add(t)})).update((function(e,t){var n=a.getItemGraphicEl(t);n.updateData(i,e),o.add(n),i.setItemGraphicEl(e,n)})).remove((function(t){var n=a.getItemGraphicEl(t);it["f"](n,e,t)})).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Vt["a"]),ah=ih,oh=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new ja["a"](b["bind"](this.getData,this),b["bind"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return Object(Ia["a"])(this,{coordDimensions:["value"],encodeDefaulter:b["curry"](jr["d"],this)})},t.prototype._defaultLabelLine=function(e){Object(jt["f"])(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),i=e.prototype.getDataParams.call(this,t),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,t)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}($e["b"]),rh=oh;function sh(e,t){return Ai["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function lh(e,t){for(var n=e.mapDimension("value"),i=e.mapArray(n,(function(e){return e})),a=[],o="ascending"===t,r=0,s=e.count();r<s;r++)a[r]=r;return Object(b["isFunction"])(t)?a.sort(t):"none"!==t&&a.sort((function(e,t){return o?i[e]-i[t]:i[t]-i[e]})),a}function ch(e){var t=e.hostModel,n=t.get("orient");e.each((function(t){var i,a,o,r,s=e.getItemModel(t),l=s.getModel("label"),c=l.get("position"),u=s.getModel("labelLine"),h=e.getItemLayout(t),d=h.points,p="inner"===c||"inside"===c||"center"===c||"insideLeft"===c||"insideRight"===c;if(p)"insideLeft"===c?(a=(d[0][0]+d[3][0])/2+5,o=(d[0][1]+d[3][1])/2,i="left"):"insideRight"===c?(a=(d[1][0]+d[2][0])/2-5,o=(d[1][1]+d[2][1])/2,i="right"):(a=(d[0][0]+d[1][0]+d[2][0]+d[3][0])/4,o=(d[0][1]+d[1][1]+d[2][1]+d[3][1])/4,i="center"),r=[[a,o],[a,o]];else{var g=void 0,f=void 0,y=void 0,v=void 0,m=u.get("length");0,"left"===c?(g=(d[3][0]+d[0][0])/2,f=(d[3][1]+d[0][1])/2,y=g-m,a=y-5,i="right"):"right"===c?(g=(d[1][0]+d[2][0])/2,f=(d[1][1]+d[2][1])/2,y=g+m,a=y+5,i="left"):"top"===c?(g=(d[3][0]+d[0][0])/2,f=(d[3][1]+d[0][1])/2,v=f-m,o=v-5,i="center"):"bottom"===c?(g=(d[1][0]+d[2][0])/2,f=(d[1][1]+d[2][1])/2,v=f+m,o=v+5,i="center"):"rightTop"===c?(g="horizontal"===n?d[3][0]:d[1][0],f="horizontal"===n?d[3][1]:d[1][1],"horizontal"===n?(v=f-m,o=v-5,i="center"):(y=g+m,a=y+5,i="top")):"rightBottom"===c?(g=d[2][0],f=d[2][1],"horizontal"===n?(v=f+m,o=v+5,i="center"):(y=g+m,a=y+5,i="bottom")):"leftTop"===c?(g=d[0][0],f="horizontal"===n?d[0][1]:d[1][1],"horizontal"===n?(v=f-m,o=v-5,i="center"):(y=g-m,a=y-5,i="right")):"leftBottom"===c?(g="horizontal"===n?d[1][0]:d[3][0],f="horizontal"===n?d[1][1]:d[2][1],"horizontal"===n?(v=f+m,o=v+5,i="center"):(y=g-m,a=y-5,i="right")):(g=(d[1][0]+d[2][0])/2,f=(d[1][1]+d[2][1])/2,"horizontal"===n?(v=f+m,o=v+5,i="center"):(y=g+m,a=y+5,i="left")),"horizontal"===n?(y=g,a=y):(v=f,o=v),r=[[g,f],[y,v]]}h.label={linePoints:r,x:a,y:o,verticalAlign:"middle",textAlign:i,inside:p}}))}function uh(e,t){e.eachSeriesByType("funnel",(function(e){var n=e.getData(),i=n.mapDimension("value"),a=e.get("sort"),o=sh(e,t),r=e.get("orient"),s=o.width,l=o.height,c=lh(n,a),u=o.x,h=o.y,d="horizontal"===r?[Object(Bt["q"])(e.get("minSize"),l),Object(Bt["q"])(e.get("maxSize"),l)]:[Object(Bt["q"])(e.get("minSize"),s),Object(Bt["q"])(e.get("maxSize"),s)],p=n.getDataExtent(i),g=e.get("min"),f=e.get("max");null==g&&(g=Math.min(p[0],0)),null==f&&(f=p[1]);var y=e.get("funnelAlign"),v=e.get("gap"),m="horizontal"===r?s:l,b=(m-v*(n.count()-1))/n.count(),x=function(e,t){if("horizontal"===r){var a=n.get(i,e)||0,o=Object(Bt["m"])(a,[g,f],d,!0),c=void 0;switch(y){case"top":c=h;break;case"center":c=h+(l-o)/2;break;case"bottom":c=h+(l-o);break}return[[t,c],[t,c+o]]}var p,v=n.get(i,e)||0,m=Object(Bt["m"])(v,[g,f],d,!0);switch(y){case"left":p=u;break;case"center":p=u+(s-m)/2;break;case"right":p=u+s-m;break}return[[p,t],[p+m,t]]};"ascending"===a&&(b=-b,v=-v,"horizontal"===r?u+=s:h+=l,c=c.reverse());for(var _=0;_<c.length;_++){var O=c[_],S=c[_+1],w=n.getItemModel(O);if("horizontal"===r){var M=w.get(["itemStyle","width"]);null==M?M=b:(M=Object(Bt["q"])(M,s),"ascending"===a&&(M=-M));var I=x(O,u),j=x(S,u+M);u+=M+v,n.setItemLayout(O,{points:I.concat(j.slice().reverse())})}else{var A=w.get(["itemStyle","height"]);null==A?A=b:(A=Object(Bt["q"])(A,l),"ascending"===a&&(A=-A));I=x(O,h),j=x(S,h+A);h+=A+v,n.setItemLayout(O,{points:I.concat(j.slice().reverse())})}}ch(n)}))}function hh(e){e.registerChartView(ah),e.registerSeriesModel(rh),e.registerLayout(uh),e.registerProcessor(Object(xa["a"])("funnel"))}var dh=.3,ph=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new et["a"],n._initialized=!1,n}return Object(Je["a"])(t,e),t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,i){this._progressiveEls=null;var a=this._dataGroup,o=e.getData(),r=this._data,s=e.coordinateSystem,l=s.dimensions,c=vh(e);function u(e){var t=yh(o,a,e,l,s);mh(t,o,e,c)}function h(t,n){var i=r.getItemGraphicEl(n),a=fh(o,t,l,s);o.setItemGraphicEl(t,i),it["h"](i,{shape:{points:a}},e,t),Object(it["g"])(i),mh(i,o,t,c)}function d(e){var t=r.getItemGraphicEl(e);a.remove(t)}if(o.diff(r).add(u).update(h).remove(d).execute(),!this._initialized){this._initialized=!0;var p=gh(s,e,(function(){setTimeout((function(){a.removeClipPath()}))}));a.setClipPath(p)}this._data=o},t.prototype.incrementalPrepareRender=function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,n){for(var i=t.getData(),a=t.coordinateSystem,o=a.dimensions,r=vh(t),s=this._progressiveEls=[],l=e.start;l<e.end;l++){var c=yh(i,this._dataGroup,l,o,a);c.incremental=!0,mh(c,i,l,r),s.push(c)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(Vt["a"]);function gh(e,t,n){var i=e.model,a=e.getRect(),o=new Et["a"]({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),r="horizontal"===i.get("layout")?"width":"height";return o.setShape(r,0),it["c"](o,{shape:{width:a.width,height:a.height}},t,n),o}function fh(e,t,n,i){for(var a=[],o=0;o<n.length;o++){var r=n[o],s=e.get(e.mapDimension(r),t);bh(s,i.getAxis(r).type)||a.push(i.dataToPoint(s,r))}return a}function yh(e,t,n,i,a){var o=fh(e,n,i,a),r=new Sa["a"]({shape:{points:o},z2:10});return t.add(r),e.setItemGraphicEl(n,r),r}function vh(e){var t=e.get("smooth",!0);return!0===t&&(t=dh),t=Object(Bt["o"])(t),Object(b["eqNaN"])(t)&&(t=0),{smooth:t}}function mh(e,t,n,i){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",i.smooth);var a=t.getItemModel(n),o=a.getModel("emphasis");Object(rt["I"])(e,a,"lineStyle"),Object(rt["J"])(e,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function bh(e,t){return"category"===t?null==e:null==e||isNaN(e)}var xh=ph,_h=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return Object(Je["a"])(t,e),t.prototype.getInitialData=function(e,t){return Object(Ke["a"])(null,this,{useEncodeDefaulter:Object(b["bind"])(Oh,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,n=this.getData(),i=[];return t.eachActiveState(n,(function(t,a){e===t&&i.push(n.getRawIndex(a))})),i},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}($e["b"]);function Oh(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return Object(b["each"])(t.dimensions,(function(e){var t=Sh(e);n[e]=t})),n}}function Sh(e){return+e.replace("dim","")}var wh=_h,Mh=["lineStyle","opacity"],Ih={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,i={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(e,t){n.eachActiveState(t,(function(e,n){var a=i[e];if("normal"===e&&t.hasItemOption){var o=t.getItemModel(n).get(Mh,!0);null!=o&&(a=o)}var r=t.ensureUniqueItemVisual(n,"style");r.opacity=a}),e.start,e.end)}}}},jh=Ih;function Ah(e){Ch(e),Th(e)}function Ch(e){if(!e.parallel){var t=!1;b["each"](e.series,(function(e){e&&"parallel"===e.type&&(t=!0)})),t&&(e.parallel=[{}])}}function Th(e){var t=jt["r"](e.parallelAxis);b["each"](t,(function(t){if(b["isObject"](t)){var n=t.parallelIndex||0,i=jt["r"](e.parallel)[n];i&&i.parallelAxisDefault&&b["merge"](t,i.parallelAxisDefault,!1)}}))}var Dh=5,Lh=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},Object(b["each"])(Ph,(function(e,t){n.getZr().on(t,this._handlers[t]=Object(b["bind"])(e,this))}),this)),Object(Mn["b"])(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,t){Object(Mn["a"])(this,"_throttledDispatchExpand"),Object(b["each"])(this._handlers,(function(e,n){t.getZr().off(n,e)})),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(Object(b["extend"])({type:"parallelAxisExpand"},e))},t.type="parallel",t}(yi["a"]),Ph={mousedown:function(e){kh(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(kh(this,"click")&&t){var n=[e.offsetX,e.offsetY],i=Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2);if(i>Dh)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==a.behavior&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&kh(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function kh(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var Nh=Lh,Rh=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&b["merge"](t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){b["each"](["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=b["filter"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);b["each"](n,(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(vi["a"]),Vh=Rh,Eh=function(e){function t(t,n,i,a,o){var r=e.call(this,t,n,i)||this;return r.type=a||"value",r.axisIndex=o,r}return Object(Je["a"])(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(Gi["a"]),zh=Eh;function Bh(e,t,n,i,a,o){e=e||0;var r=n[1]-n[0];if(null!=a&&(a=Fh(a,[0,r])),null!=o&&(o=Math.max(o,null!=a?a:0)),"all"===i){var s=Math.abs(t[1]-t[0]);s=Fh(s,[0,r]),a=o=Fh(s,[a,o]),i=0}t[0]=Fh(t[0],n),t[1]=Fh(t[1],n);var l=Gh(t,i);t[i]+=e;var c,u=a||0,h=n.slice();return l.sign<0?h[0]+=u:h[1]-=u,t[i]=Fh(t[i],h),c=Gh(t,i),null!=a&&(c.sign!==l.sign||c.span<a)&&(t[1-i]=t[i]+l.sign*a),c=Gh(t,i),null!=o&&c.span>o&&(t[1-i]=t[i]+c.sign*o),t}function Gh(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function Fh(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var Hh=b["each"],Wh=Math.min,Yh=Math.max,Zh=Math.floor,Xh=Math.ceil,Uh=Bt["w"],qh=Math.PI,Jh=function(){function e(e,t,n){this.type="parallel",this._axesMap=b["createHashMap"](),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=e.dimensions,a=e.parallelAxisIndex;Hh(i,(function(e,n){var i=a[n],o=t.getComponent("parallelAxis",i),r=this._axesMap.set(e,new zh(e,Pi["a"](o),[0,0],o.get("type"),i)),s="category"===r.type;r.onBand=s&&o.get("boundaryGap"),r.inverse=o.get("inverse"),o.axis=r,r.model=o,r.coordinateSystem=o.coordinateSystem=this}),this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,i=t.layoutBase,a=t.pixelDimIndex,o=e[1-a],r=e[a];return o>=n&&o<=n+t.axisLength&&r>=i&&r<=i+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var i=n.getData();Hh(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(i,i.mapDimension(e)),Pi["i"](t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=Ai["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,n=this._rect,i=["x","y"],a=["width","height"],o=t.get("layout"),r="horizontal"===o?0:1,s=n[a[r]],l=[0,s],c=this.dimensions.length,u=Kh(t.get("axisExpandWidth"),l),h=Kh(t.get("axisExpandCount")||0,[0,c]),d=t.get("axisExpandable")&&c>3&&c>h&&h>1&&u>0&&s>0,p=t.get("axisExpandWindow");if(p)e=Kh(p[1]-p[0],l),p[1]=p[0]+e;else{e=Kh(u*(h-1),l);var g=t.get("axisExpandCenter")||Zh(c/2);p=[u*g-e/2],p[1]=p[0]+e}var f=(s-e)/(c-h);f<3&&(f=0);var y=[Zh(Uh(p[0]/u,1))+1,Xh(Uh(p[1]/u,1))-1],v=f/u*p[0];return{layout:o,pixelDimIndex:r,layoutBase:n[i[r]],layoutLength:s,axisBase:n[i[1-r]],axisLength:n[a[1-r]],axisExpandable:d,axisExpandWidth:u,axisCollapseWidth:f,axisExpandWindow:p,axisCount:c,winInnerIndices:y,axisExpandWindow0Pos:v}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;t.each((function(e){var t=[0,i.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),Hh(n,(function(t,n){var o=(i.axisExpandable?Qh:$h)(n,i),r={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:qh/2,vertical:0},l=[r[a].x+e.x,r[a].y+e.y],c=s[a],u=Ni["create"]();Ni["rotate"](u,u,c),Ni["translate"](u,u,l),this._axesLayout[t]={position:l,rotation:c,transform:u,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,i){null==n&&(n=0),null==i&&(i=e.count());var a=this._axesMap,o=this.dimensions,r=[],s=[];b["each"](o,(function(t){r.push(e.mapDimension(t)),s.push(a.get(t).model)}));for(var l=this.hasAxisBrushed(),c=n;c<i;c++){var u=void 0;if(l){u="active";for(var h=e.getValues(r,c),d=0,p=o.length;d<p;d++){var g=s[d].getActiveState(h[d]);if("inactive"===g){u="inactive";break}}}else u="normal";t(u,c)}},e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,i=0,a=e.length;i<a;i++)"normal"!==t.get(e[i]).model.getActiveState()&&(n=!0);return n},e.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return at["applyTransform"]([e,0],n.transform)},e.prototype.getAxisLayout=function(e){return b["clone"](this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,i=t.axisExpandWindow.slice(),a=i[1]-i[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:i};var r,s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l="slide",c=t.axisCollapseWidth,u=this._model.get("axisExpandSlideTriggerArea"),h=null!=u[0];if(c)h&&c&&s<a*u[0]?(l="jump",r=s-a*u[2]):h&&c&&s>a*(1-u[0])?(l="jump",r=s-a*(1-u[2])):(r=s-a*u[1])>=0&&(r=s-a*(1-u[1]))<=0&&(r=0),r*=t.axisExpandWidth/c,r?Bh(r,i,o,"all"):l="none";else{var d=i[1]-i[0],p=o[1]*s/d;i=[Yh(0,p-d/2)],i[1]=Wh(o[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:l}},e}();function Kh(e,t){return Wh(Yh(e,t[0]),t[1])}function $h(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function Qh(e,t){var n,i,a=t.layoutLength,o=t.axisExpandWidth,r=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,c=s,u=!1;return e<l[0]?(n=e*s,i=s):e<=l[1]?(n=t.axisExpandWindow0Pos+e*o-t.axisExpandWindow[0],c=o,u=!0):(n=a-(r-1-e)*s,i=s),{position:n,axisNameAvailableWidth:c,axisLabelShow:u,nameTruncateMaxWidth:i}}var ed=Jh;function td(e,t){var n=[];return e.eachComponent("parallel",(function(i,a){var o=new ed(i,e,t);o.name="parallel_"+a,o.resize(i,t),i.coordinateSystem=o,o.model=i,n.push(o)})),e.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var t=e.getReferringComponents("parallel",jt["b"]).models[0];e.coordinateSystem=t.coordinateSystem}})),n}var nd={create:td},id=nd,ad=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return Object(Je["a"])(t,e),t.prototype.getAreaSelectStyle=function(){return Object(gl["a"])([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=b["clone"](e);if(t)for(var n=t.length-1;n>=0;n--)Bt["c"](t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,a=t.length;i<a;i++)if(t[i][0]<=e&&e<=t[i][1])return"active";return"inactive"},t}(vi["a"]);b["mixin"](ad,xi["a"]);var od=ad,rd=!0,sd=Math.min,ld=Math.max,cd=Math.pow,ud=1e4,hd=6,dd=6,pd="globalPan",gd={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},fd={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},yd={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},vd=0,md=function(e){function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new et["a"],n._uid="brushController_"+vd++,Object(b["each"])(Jd,(function(e,t){this._handlers[t]=Object(b["bind"])(e,this)}),n),n}return Object(Je["a"])(t,e),t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||Ka(t,pd,this._uid),Object(b["each"])(this._handlers,(function(e,n){t.on(n,e)})),this._brushType=e.brushType,this._brushOption=Object(b["merge"])(Object(b["clone"])(yd),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;$a(e,pd,this._uid),Object(b["each"])(this._handlers,(function(t,n){e.off(n,t)})),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};Object(b["each"])(e,(function(e){t[e.panelId]=Object(b["clone"])(e)}))}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=Object(b["map"])(e,(function(e){return Object(b["merge"])(Object(b["clone"])(yd),e,!0)}));var t="\0-brush-index-",n=this._covers,i=this._covers=[],a=this,o=this._creatingCover;return new al["a"](n,e,s,r).add(l).update(l).remove(c).execute(),this;function r(e,n){return(null!=e.id?e.id:t+n)+"-"+e.brushType}function s(e,t){return r(e.__brushOption,t)}function l(t,r){var s=e[t];if(null!=r&&n[r]===o)i[t]=n[r];else{var l=i[t]=null!=r?(n[r].__brushOption=s,n[r]):xd(a,bd(a,s));Sd(a,l)}}function c(e){n[e]!==o&&a.group.remove(n[e])}},t.prototype.unmount=function(){return this.enableBrush(!1),jd(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Xa["a"]);function bd(e,t){var n=Qd[t.brushType].createCover(e,t);return n.__brushOption=t,Od(n,t),e.group.add(n),n}function xd(e,t){var n=wd(t);return n.endCreating&&(n.endCreating(e,t),Od(t,t.__brushOption)),t}function _d(e,t){var n=t.__brushOption;wd(t).updateCoverShape(e,t,n.range,n)}function Od(e,t){var n=t.z;null==n&&(n=ud),e.traverse((function(e){e.z=n,e.z2=n}))}function Sd(e,t){wd(t).updateCommon(e,t),_d(e,t)}function wd(e){return Qd[e.__brushOption.brushType]}function Md(e,t,n){var i,a=e._panels;if(!a)return rd;var o=e._transform;return Object(b["each"])(a,(function(e){e.isTargetByCursor(t,n,o)&&(i=e)})),i}function Id(e,t){var n=e._panels;if(!n)return rd;var i=t.__brushOption.panelId;return null!=i?n[i]:rd}function jd(e){var t=e._covers,n=t.length;return Object(b["each"])(t,(function(t){e.group.remove(t)}),e),t.length=0,!!n}function Ad(e,t){var n=Object(b["map"])(e._covers,(function(e){var t=e.__brushOption,n=Object(b["clone"])(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}}));e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function Cd(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],i=t[0],a=n[0]-i[0],o=n[1]-i[1],r=cd(a*a+o*o,.5);return r>hd}function Td(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function Dd(e,t,n,i){var a=new et["a"];return a.add(new Et["a"]({name:"main",style:Nd(n),silent:!0,draggable:!0,cursor:"move",drift:Object(b["curry"])(Bd,e,t,a,["n","s","w","e"]),ondragend:Object(b["curry"])(Ad,t,{isEnd:!0})})),Object(b["each"])(i,(function(n){a.add(new Et["a"]({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(b["curry"])(Bd,e,t,a,n),ondragend:Object(b["curry"])(Ad,t,{isEnd:!0})}))})),a}function Ld(e,t,n,i){var a=i.brushStyle.lineWidth||0,o=ld(a,dd),r=n[0][0],s=n[1][0],l=r-a/2,c=s-a/2,u=n[0][1],h=n[1][1],d=u-o+a/2,p=h-o+a/2,g=u-r,f=h-s,y=g+a,v=f+a;kd(e,t,"main",r,s,g,f),i.transformable&&(kd(e,t,"w",l,c,o,v),kd(e,t,"e",d,c,o,v),kd(e,t,"n",l,c,y,o),kd(e,t,"s",l,p,y,o),kd(e,t,"nw",l,c,o,o),kd(e,t,"ne",d,c,o,o),kd(e,t,"sw",l,p,o,o),kd(e,t,"se",d,p,o,o))}function Pd(e,t){var n=t.__brushOption,i=n.transformable,a=t.childAt(0);a.useStyle(Nd(n)),a.attr({silent:!i,cursor:i?"move":"default"}),Object(b["each"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var a=t.childOfName(n.join("")),o=1===n.length?Ed(e,n[0]):zd(e,n);a&&a.attr({silent:!i,invisible:!i,cursor:i?fd[o]+"-resize":null})}))}function kd(e,t,n,i,a,o,r){var s=t.childOfName(n);s&&s.setShape(Wd(Hd(e,t,[[i,a],[i+o,a+r]])))}function Nd(e){return Object(b["defaults"])({strokeNoScale:!0},e.brushStyle)}function Rd(e,t,n,i){var a=[sd(e,n),sd(t,i)],o=[ld(e,n),ld(t,i)];return[[a[0],o[0]],[a[1],o[1]]]}function Vd(e){return at["getTransform"](e.group)}function Ed(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},a=at["transformDirection"](n[t],Vd(e));return i[a]}function zd(e,t){var n=[Ed(e,t[0]),Ed(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function Bd(e,t,n,i,a,o){var r=n.__brushOption,s=e.toRectRange(r.range),l=Fd(t,a,o);Object(b["each"])(i,(function(e){var t=gd[e];s[t[0]][t[1]]+=l[t[0]]})),r.range=e.fromRectRange(Rd(s[0][0],s[1][0],s[0][1],s[1][1])),Sd(t,n),Ad(t,{isEnd:!1})}function Gd(e,t,n,i){var a=t.__brushOption.range,o=Fd(e,n,i);Object(b["each"])(a,(function(e){e[0]+=o[0],e[1]+=o[1]})),Sd(e,t),Ad(e,{isEnd:!1})}function Fd(e,t,n){var i=e.group,a=i.transformCoordToLocal(t,n),o=i.transformCoordToLocal(0,0);return[a[0]-o[0],a[1]-o[1]]}function Hd(e,t,n){var i=Id(e,t);return i&&i!==rd?i.clipPath(n,e._transform):Object(b["clone"])(n)}function Wd(e){var t=sd(e[0][0],e[1][0]),n=sd(e[0][1],e[1][1]),i=ld(e[0][0],e[1][0]),a=ld(e[0][1],e[1][1]);return{x:t,y:n,width:i-t,height:a-n}}function Yd(e,t,n){if(e._brushType&&!$d(e,t.offsetX,t.offsetY)){var i=e._zr,a=e._covers,o=Md(e,t,n);if(!e._dragging)for(var r=0;r<a.length;r++){var s=a[r].__brushOption;if(o&&(o===rd||s.panelId===o.panelId)&&Qd[s.brushType].contain(a[r],n[0],n[1]))return}o&&i.setCursorStyle("crosshair")}}function Zd(e){var t=e.event;t.preventDefault&&t.preventDefault()}function Xd(e,t,n){return e.childOfName("main").contain(t,n)}function Ud(e,t,n,i){var a,o=e._creatingCover,r=e._creatingPanel,s=e._brushOption;if(e._track.push(n.slice()),Cd(e)||o){if(r&&!o){"single"===s.brushMode&&jd(e);var l=Object(b["clone"])(s);l.brushType=qd(l.brushType,r),l.panelId=r===rd?null:r.panelId,o=e._creatingCover=bd(e,l),e._covers.push(o)}if(o){var c=Qd[qd(e._brushType,r)],u=o.__brushOption;u.range=c.getCreatingRange(Hd(e,o,e._track)),i&&(xd(e,o),c.updateCommon(e,o)),_d(e,o),a={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&Md(e,t,n)&&jd(e)&&(a={isEnd:i,removeOnClick:!0});return a}function qd(e,t){return"auto"===e?t.defaultBrushType:e}var Jd={mousedown:function(e){if(this._dragging)Kd(this,e);else if(!e.target||!e.target.draggable){Zd(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var n=this._creatingPanel=Md(this,e,t);n&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,i=this.group.transformCoordToLocal(t,n);if(Yd(this,e,i),this._dragging){Zd(e);var a=Ud(this,e,i,!1);a&&Ad(this,a)}},mouseup:function(e){Kd(this,e)}};function Kd(e,t){if(e._dragging){Zd(t);var n=t.offsetX,i=t.offsetY,a=e.group.transformCoordToLocal(n,i),o=Ud(e,t,a,!0);e._dragging=!1,e._track=[],e._creatingCover=null,o&&Ad(e,o)}}function $d(e,t,n){var i=e._zr;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}var Qd={lineX:ep(0),lineY:ep(1),rect:{createCover:function(e,t){function n(e){return e}return Dd({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=Td(e);return Rd(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,i){Ld(e,t,n,i)},updateCommon:Pd,contain:Xd},polygon:{createCover:function(e,t){var n=new et["a"];return n.add(new Sa["a"]({name:"main",style:Nd(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Oa["a"]({name:"main",draggable:!0,drift:Object(b["curry"])(Gd,e,t),ondragend:Object(b["curry"])(Ad,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,i){t.childAt(0).setShape({points:Hd(e,t,n)})},updateCommon:Pd,contain:Xd}};function ep(e){return{createCover:function(t,n){return Dd({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=Td(t),i=sd(n[0][e],n[1][e]),a=ld(n[0][e],n[1][e]);return[i,a]},updateCoverShape:function(t,n,i,a){var o,r=Id(t,n);if(r!==rd&&r.getLinearBrushOtherExtent)o=r.getLinearBrushOtherExtent(e);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[i,o];e&&l.reverse(),Ld(t,n,l,a)},updateCommon:Pd,contain:Xd}}var tp=md;function np(e){return e=op(e),function(t){return at["clipPointsByRect"](t,e)}}function ip(e,t){return e=op(e),function(n){var i=null!=t?t:n,a=i?e.width:e.height,o=i?e.x:e.y;return[o,o+(a||0)]}}function ap(e,t,n){var i=op(e);return function(e,a){return i.contain(a[0],a[1])&&!co(e,t,n)}}function op(e){return li["a"].create(e)}var rp=["axisLine","axisTickLabel","axisName"],sp=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new tp(n.getZr())).on("brush",b["bind"](this._onBrush,this))},t.prototype.render=function(e,t,n,i){if(!lp(e,t,i)){this.axisModel=e,this.api=n,this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new et["a"],this.group.add(this._axisGroup),e.get("show")){var o=up(e,t),r=o.coordinateSystem,s=e.getAreaSelectStyle(),l=s.width,c=e.axis.dim,u=r.getAxisLayout(c),h=b["extend"]({strokeContainThreshold:l},u),d=new na["a"](e,h);b["each"](rp,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(h,s,e,o,l,n),at["groupTransition"](a,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,i,a,o){var r=n.axis.getExtent(),s=r[1]-r[0],l=Math.min(30,.1*Math.abs(s)),c=li["a"].create({x:r[0],y:-a/2,width:s,height:a});c.x-=l,c.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:np(c),isTargetByCursor:ap(c,o,i),getLinearBrushOtherExtent:ip(c,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(cp(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,i=n.axis,a=b["map"](t,(function(e){return[i.coordToData(e.range[0],!0),i.coordToData(e.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:a})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(yi["a"]);function lp(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function cp(e){var t=e.axis;return b["map"](e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function up(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var hp=sp,dp={type:"axisAreaSelect",event:"axisAreaSelected"};function pp(e){e.registerAction(dp,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),e.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))}var gp={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function fp(e){e.registerComponentView(Nh),e.registerComponentModel(Vh),e.registerCoordinateSystem("parallel",id),e.registerPreprocessor(Ah),e.registerComponentModel(od),e.registerComponentView(hp),Di(e,"parallel",od,gp),pp(e)}function yp(e){Object(i["a"])(fp),e.registerChartView(xh),e.registerSeriesModel(wh),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,jh)}var vp=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),mp=function(e){function t(t){return e.call(this,t)||this}return Object(Je["a"])(t,e),t.prototype.getDefaultShape=function(){return new vp},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){Object(rt["r"])(this)},t.prototype.downplay=function(){Object(rt["C"])(this)},t}(s["b"]),bp=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return Object(Je["a"])(t,e),t.prototype.render=function(e,t,n){var i=this,a=e.getGraph(),o=this.group,r=e.layoutInfo,s=r.width,l=r.height,c=e.getData(),u=e.getData("edge"),h=e.get("orient");this._model=e,o.removeAll(),o.x=r.x,o.y=r.y,a.eachEdge((function(t){var n=new mp,i=Object(ot["a"])(n);i.dataIndex=t.dataIndex,i.seriesIndex=e.seriesIndex,i.dataType="edge";var a,r,c,d,p,g,f,y,v=t.getModel(),m=v.getModel("lineStyle"),x=m.get("curveness"),_=t.node1.getLayout(),O=t.node1.getModel(),S=O.get("localX"),w=O.get("localY"),M=t.node2.getLayout(),I=t.node2.getModel(),j=I.get("localX"),A=I.get("localY"),C=t.getLayout();switch(n.shape.extent=Math.max(1,C.dy),n.shape.orient=h,"vertical"===h?(a=(null!=S?S*s:_.x)+C.sy,r=(null!=w?w*l:_.y)+_.dy,c=(null!=j?j*s:M.x)+C.ty,d=null!=A?A*l:M.y,p=a,g=r*(1-x)+d*x,f=c,y=r*x+d*(1-x)):(a=(null!=S?S*s:_.x)+_.dx,r=(null!=w?w*l:_.y)+C.sy,c=null!=j?j*s:M.x,d=(null!=A?A*l:M.y)+C.ty,p=a*(1-x)+c*x,g=r,f=a*x+c*(1-x),y=d),n.setShape({x1:a,y1:r,x2:c,y2:d,cpx1:p,cpy1:g,cpx2:f,cpy2:y}),n.useStyle(m.getItemStyle()),n.style.fill){case"source":n.style.fill=t.node1.getVisual("color"),n.style.decal=t.node1.getVisual("style").decal;break;case"target":n.style.fill=t.node2.getVisual("color"),n.style.decal=t.node2.getVisual("style").decal;break;case"gradient":var T=t.node1.getVisual("color"),D=t.node2.getVisual("color");Object(b["isString"])(T)&&Object(b["isString"])(D)&&(n.style.fill=new It["a"](0,0,+("horizontal"===h),+("vertical"===h),[{color:T,offset:0},{color:D,offset:1}]))}Object(ut["g"])(n,Object(ut["e"])(v,"edgeLabel"),{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:""+v.get("value")}),n.setTextConfig({position:"inside"});var L=v.getModel("emphasis");Object(rt["I"])(n,v,"lineStyle",(function(e){return e.getItemStyle()})),o.add(n),u.setItemGraphicEl(t.dataIndex,n);var P=L.get("focus");Object(rt["J"])(n,"adjacency"===P?t.getAdjacentDataIndices():P,L.get("blurScope"),L.get("disabled")),Object(ot["a"])(n).dataType="edge"})),a.eachNode((function(t){var n=t.getLayout(),i=t.getModel(),a=i.get("localX"),r=i.get("localY"),u=i.getModel("emphasis"),h=new Et["a"]({shape:{x:null!=a?a*s:n.x,y:null!=r?r*l:n.y,width:n.dx,height:n.dy},style:i.getModel("itemStyle").getItemStyle(),z2:10});Object(ut["g"])(h,Object(ut["e"])(i),{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:t.id}),h.disableLabelAnimation=!0,h.setStyle("fill",t.getVisual("color")),h.setStyle("decal",t.getVisual("style").decal),Object(rt["I"])(h,i),o.add(h),c.setItemGraphicEl(t.dataIndex,h),Object(ot["a"])(h).dataType="node";var d=u.get("focus");Object(rt["J"])(h,"adjacency"===d?t.getAdjacentDataIndices():d,u.get("blurScope"),u.get("disabled"))})),c.eachItemGraphicEl((function(t,a){var o=c.getItemModel(a);o.get("draggable")&&(t.drift=function(t,o){i._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(a),localX:this.shape.x/s,localY:this.shape.y/l})},t.ondragend=function(){i._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&o.setClipPath(xp(o.getBoundingRect(),e,(function(){o.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Vt["a"]);function xp(e,t,n){var i=new Et["a"]({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return it["c"](i,{shape:{width:e.width+20}},t,n),i}var _p=bp,Op=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links,i=e.data||e.nodes,a=e.levels;this.levelModels=[];for(var o=this.levelModels,r=0;r<a.length;r++)null!=a[r].depth&&a[r].depth>=0&&(o[a[r].depth]=new Da["a"](a[r],this,t));if(i&&n){var s=Vu(i,n,this,!0,l);return s.data}function l(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getData().getItemLayout(t);if(i){var a=i.depth,o=n.levelModels[a];o&&(e.parentModel=o)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getGraph().getEdgeByIndex(t),a=i.node1.getLayout();if(a){var o=a.depth,r=n.levelModels[o];r&&(e.parentModel=r)}return e}))}},t.prototype.setNodePosition=function(e,t){var n=this.option.data||this.option.nodes,i=n[e];i.localX=t[0],i.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function i(e){return isNaN(e)||null==e}if("edge"===n){var a=this.getDataParams(e,n),o=a.data,r=a.value,s=o.source+" -- "+o.target;return Object(Aa["c"])("nameValue",{name:s,value:r,noValue:i(r)})}var l=this.getGraph().getNodeByIndex(e),c=l.getLayout().value,u=this.getDataParams(e,n).data.name;return Object(Aa["c"])("nameValue",{name:null!=u?u+"":null,value:c,noValue:i(c)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var i=e.prototype.getDataParams.call(this,t,n);if(null==i.value&&"node"===n){var a=this.getGraph().getNodeByIndex(t),o=a.getLayout().value;i.value=o}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}($e["b"]),Sp=Op;function wp(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),i=e.get("nodeGap"),a=Mp(e,t);e.layoutInfo=a;var o=a.width,r=a.height,s=e.getGraph(),l=s.nodes,c=s.edges;jp(l);var u=b["filter"](l,(function(e){return 0===e.getLayout().value})),h=0!==u.length?0:e.get("layoutIterations"),d=e.get("orient"),p=e.get("nodeAlign");Ip(l,c,n,i,o,r,h,d,p)}))}function Mp(e,t){return Ai["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Ip(e,t,n,i,a,o,r,s,l){Ap(e,t,n,a,o,s,l),Pp(e,t,o,a,i,r,s),Zp(e,s)}function jp(e){b["each"](e,(function(e){var t=Wp(e.outEdges,Hp),n=Wp(e.inEdges,Hp),i=e.getValue()||0,a=Math.max(t,n,i);e.setLayout({value:a},!0)}))}function Ap(e,t,n,i,a,o,r){for(var s=[],l=[],c=[],u=[],h=0,d=0;d<t.length;d++)s[d]=1;for(d=0;d<e.length;d++)l[d]=e[d].inEdges.length,0===l[d]&&c.push(e[d]);var p=-1;while(c.length){for(var g=0;g<c.length;g++){var f=c[g],y=f.hostGraph.data.getRawDataItem(f.dataIndex),v=null!=y.depth&&y.depth>=0;v&&y.depth>p&&(p=y.depth),f.setLayout({depth:v?y.depth:h},!0),"vertical"===o?f.setLayout({dy:n},!0):f.setLayout({dx:n},!0);for(var m=0;m<f.outEdges.length;m++){var b=f.outEdges[m],x=t.indexOf(b);s[x]=0;var _=b.node2,O=e.indexOf(_);0===--l[O]&&u.indexOf(_)<0&&u.push(_)}}++h,c=u,u=[]}for(d=0;d<s.length;d++)if(1===s[d])throw new Error("Sankey is a DAG, the original data has cycle!");var S=p>h-1?p:h-1;r&&"left"!==r&&Tp(e,r,o,S);var w="vertical"===o?(a-n)/S:(i-n)/S;Lp(e,w,o)}function Cp(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function Tp(e,t,n,i){if("right"===t){var a=[],o=e,r=0;while(o.length){for(var s=0;s<o.length;s++){var l=o[s];l.setLayout({skNodeHeight:r},!0);for(var c=0;c<l.inEdges.length;c++){var u=l.inEdges[c];a.indexOf(u.node1)<0&&a.push(u.node1)}}o=a,a=[],++r}b["each"](e,(function(e){Cp(e)||e.setLayout({depth:Math.max(0,i-e.getLayout().skNodeHeight)},!0)}))}else"justify"===t&&Dp(e,i)}function Dp(e,t){b["each"](e,(function(e){Cp(e)||e.outEdges.length||e.setLayout({depth:t},!0)}))}function Lp(e,t,n){b["each"](e,(function(e){var i=e.getLayout().depth*t;"vertical"===n?e.setLayout({y:i},!0):e.setLayout({x:i},!0)}))}function Pp(e,t,n,i,a,o,r){var s=kp(e,r);Np(s,t,n,i,a,r),Rp(s,a,n,i,r);for(var l=1;o>0;o--)l*=.99,Vp(s,l,r),Rp(s,a,n,i,r),Yp(s,l,r),Rp(s,a,n,i,r)}function kp(e,t){var n=[],i="vertical"===t?"y":"x",a=Object(jt["j"])(e,(function(e){return e.getLayout()[i]}));return a.keys.sort((function(e,t){return e-t})),b["each"](a.keys,(function(e){n.push(a.buckets.get(e))})),n}function Np(e,t,n,i,a,o){var r=1/0;b["each"](e,(function(e){var t=e.length,s=0;b["each"](e,(function(e){s+=e.getLayout().value}));var l="vertical"===o?(i-(t-1)*a)/s:(n-(t-1)*a)/s;l<r&&(r=l)})),b["each"](e,(function(e){b["each"](e,(function(e,t){var n=e.getLayout().value*r;"vertical"===o?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))}))})),b["each"](t,(function(e){var t=+e.getValue()*r;e.setLayout({dy:t},!0)}))}function Rp(e,t,n,i,a){var o="vertical"===a?"x":"y";b["each"](e,(function(e){var r,s,l;e.sort((function(e,t){return e.getLayout()[o]-t.getLayout()[o]}));for(var c=0,u=e.length,h="vertical"===a?"dx":"dy",d=0;d<u;d++)s=e[d],l=c-s.getLayout()[o],l>0&&(r=s.getLayout()[o]+l,"vertical"===a?s.setLayout({x:r},!0):s.setLayout({y:r},!0)),c=s.getLayout()[o]+s.getLayout()[h]+t;var p="vertical"===a?i:n;if(l=c-t-p,l>0){r=s.getLayout()[o]-l,"vertical"===a?s.setLayout({x:r},!0):s.setLayout({y:r},!0),c=r;for(d=u-2;d>=0;--d)s=e[d],l=s.getLayout()[o]+s.getLayout()[h]+t-c,l>0&&(r=s.getLayout()[o]-l,"vertical"===a?s.setLayout({x:r},!0):s.setLayout({y:r},!0)),c=s.getLayout()[o]}}))}function Vp(e,t,n){b["each"](e.slice().reverse(),(function(e){b["each"](e,(function(e){if(e.outEdges.length){var i=Wp(e.outEdges,Ep,n)/Wp(e.outEdges,Hp);if(isNaN(i)){var a=e.outEdges.length;i=a?Wp(e.outEdges,zp,n)/a:0}if("vertical"===n){var o=e.getLayout().x+(i-Fp(e,n))*t;e.setLayout({x:o},!0)}else{var r=e.getLayout().y+(i-Fp(e,n))*t;e.setLayout({y:r},!0)}}}))}))}function Ep(e,t){return Fp(e.node2,t)*e.getValue()}function zp(e,t){return Fp(e.node2,t)}function Bp(e,t){return Fp(e.node1,t)*e.getValue()}function Gp(e,t){return Fp(e.node1,t)}function Fp(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function Hp(e){return e.getValue()}function Wp(e,t,n){var i=0,a=e.length,o=-1;while(++o<a){var r=+t(e[o],n);isNaN(r)||(i+=r)}return i}function Yp(e,t,n){b["each"](e,(function(e){b["each"](e,(function(e){if(e.inEdges.length){var i=Wp(e.inEdges,Bp,n)/Wp(e.inEdges,Hp);if(isNaN(i)){var a=e.inEdges.length;i=a?Wp(e.inEdges,Gp,n)/a:0}if("vertical"===n){var o=e.getLayout().x+(i-Fp(e,n))*t;e.setLayout({x:o},!0)}else{var r=e.getLayout().y+(i-Fp(e,n))*t;e.setLayout({y:r},!0)}}}))}))}function Zp(e,t){var n="vertical"===t?"x":"y";b["each"](e,(function(e){e.outEdges.sort((function(e,t){return e.node2.getLayout()[n]-t.node2.getLayout()[n]})),e.inEdges.sort((function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]}))})),b["each"](e,(function(e){var t=0,n=0;b["each"](e.outEdges,(function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy})),b["each"](e.inEdges,(function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy}))}))}function Xp(e){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph(),n=t.nodes,i=t.edges;if(n.length){var a=1/0,o=-1/0;b["each"](n,(function(e){var t=e.getLayout().value;t<a&&(a=t),t>o&&(o=t)})),b["each"](n,(function(t){var n=new ql({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:e.get("color")}),i=n.mapValueToVisual(t.getLayout().value),r=t.getModel().get(["itemStyle","color"]);null!=r?(t.setVisual("color",r),t.setVisual("style",{fill:r})):(t.setVisual("color",i),t.setVisual("style",{fill:i}))}))}i.length&&b["each"](i,(function(e){var t=e.getModel().get("lineStyle");e.setVisual("style",t)}))}))}function Up(e){e.registerChartView(_p),e.registerSeriesModel(Sp),e.registerLayout(wp),e.registerVisual(Xp),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))}var qp=n("2f45"),Jp=function(){function e(){}return e.prototype.getInitialData=function(e,t){var n,i,a=t.getComponent("xAxis",this.get("xAxisIndex")),o=t.getComponent("yAxis",this.get("yAxisIndex")),r=a.get("type"),s=o.get("type");"category"===r?(e.layout="horizontal",n=a.getOrdinalMeta(),i=!0):"category"===s?(e.layout="vertical",n=o.getOrdinalMeta(),i=!0):e.layout=e.layout||"horizontal";var l=["x","y"],c="horizontal"===e.layout?0:1,u=this._baseAxisDim=l[c],h=l[1-c],d=[a,o],p=d[c].get("type"),g=d[1-c].get("type"),f=e.data;if(f&&i){var y=[];b["each"](f,(function(e,t){var n;b["isArray"](e)?(n=e.slice(),e.unshift(t)):b["isArray"](e.value)?(n=b["extend"]({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,y.push(n)})),e.data=y}var v=this.defaultValueDimensions,m=[{name:u,type:Object(qp["a"])(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Object(qp["a"])(g),dimsDef:v.slice()}];return Object(Ia["a"])(this,{coordDimensions:m,dimensionsCount:v.length+1,encodeDefaulter:b["curry"](jr["c"],m,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),Kp=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return Object(Je["a"])(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}($e["b"]);Object(b["mixin"])(Kp,Jp,!0);var $p=Kp,Qp=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),a=this.group,o=this._data;this._data||a.removeAll();var r="horizontal"===e.get("layout")?1:0;i.diff(o).add((function(e){if(i.hasValue(e)){var t=i.getItemLayout(e),n=ng(t,i,e,r,!0);i.setItemGraphicEl(e,n),a.add(n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(i.hasValue(e)){var s=i.getItemLayout(e);n?(Object(it["g"])(n),ig(s,n,i,e)):n=ng(s,i,e,r),a.add(n),i.setItemGraphicEl(e,n)}else a.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&a.remove(t)})).execute(),this._data=i},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(Vt["a"]),eg=function(){function e(){}return e}(),tg=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return Object(Je["a"])(t,e),t.prototype.getDefaultShape=function(){return new eg},t.prototype.buildPath=function(e,t){var n=t.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();i<n.length;i++)e.moveTo(n[i][0],n[i][1]),i++,e.lineTo(n[i][0],n[i][1])},t}(s["b"]);function ng(e,t,n,i,a){var o=e.ends,r=new tg({shape:{points:a?ag(o,i,e):o}});return ig(e,r,t,n,a),r}function ig(e,t,n,i,a){var o=n.hostModel,r=at[a?"initProps":"updateProps"];r(t,{shape:{points:e.ends}},o,i),t.useStyle(n.getItemVisual(i,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=n.getItemModel(i),l=s.getModel("emphasis");Object(rt["I"])(t,s),Object(rt["J"])(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function ag(e,t,n){return b["map"](e,(function(e){return e=e.slice(),e[t]=n.initBaseline,e}))}var og=Qp,rg=b["each"];function sg(e){var t=lg(e);rg(t,(function(e){var t=e.seriesModels;t.length&&(cg(e),rg(t,(function(t,n){ug(t,e.boxOffsetList[n],e.boxWidthList[n])})))}))}function lg(e){var t=[],n=[];return e.eachSeriesByType("boxplot",(function(e){var i=e.getBaseAxis(),a=b["indexOf"](n,i);a<0&&(a=n.length,n[a]=i,t[a]={axis:i,seriesModels:[]}),t[a].seriesModels.push(e)})),t}function cg(e){var t,n=e.axis,i=e.seriesModels,a=i.length,o=e.boxWidthList=[],r=e.boxOffsetList=[],s=[];if("category"===n.type)t=n.getBandWidth();else{var l=0;rg(i,(function(e){l=Math.max(l,e.getData().count())}));var c=n.getExtent();t=Math.abs(c[1]-c[0])/l}rg(i,(function(e){var n=e.get("boxWidth");b["isArray"](n)||(n=[n,n]),s.push([Object(Bt["q"])(n[0],t)||0,Object(Bt["q"])(n[1],t)||0])}));var u=.8*t-2,h=u/a*.3,d=(u-h*(a-1))/a,p=d/2-u/2;rg(i,(function(e,t){r.push(p),p+=h+d,o.push(Math.min(Math.max(d,s[t][0]),s[t][1]))}))}function ug(e,t,n){var i=e.coordinateSystem,a=e.getData(),o=n/2,r="horizontal"===e.get("layout")?0:1,s=1-r,l=["x","y"],c=a.mapDimension(l[r]),u=a.mapDimensionsAll(l[s]);if(!(null==c||u.length<5))for(var h=0;h<a.count();h++){var d=a.get(c,h),p=b(d,u[2],h),g=b(d,u[0],h),f=b(d,u[1],h),y=b(d,u[3],h),v=b(d,u[4],h),m=[];x(m,f,!1),x(m,y,!0),m.push(g,f,v,y),_(m,g),_(m,v),_(m,p),a.setItemLayout(h,{initBaseline:p[s],ends:m})}function b(e,n,o){var l,c=a.get(n,o),u=[];return u[r]=e,u[s]=c,isNaN(e)||isNaN(c)?l=[NaN,NaN]:(l=i.dataToPoint(u),l[r]+=t),l}function x(e,t,n){var i=t.slice(),a=t.slice();i[r]+=o,a[r]-=o,n?e.push(i,a):e.push(a,i)}function _(e,t){var n=t.slice(),i=t.slice();n[r]-=o,i[r]+=o,e.push(n,i)}}function hg(e,t){t=t||{};for(var n=[],i=[],a=t.boundIQR,o="none"===a||0===a,r=0;r<e.length;r++){var s=Object(Bt["c"])(e[r].slice()),l=Object(Bt["r"])(s,.25),c=Object(Bt["r"])(s,.5),u=Object(Bt["r"])(s,.75),h=s[0],d=s[s.length-1],p=(null==a?1.5:a)*(u-l),g=o?h:Math.max(h,l-p),f=o?d:Math.min(d,u+p),y=t.itemNameFormatter,v=Object(b["isFunction"])(y)?y({value:r}):Object(b["isString"])(y)?y.replace("{value}",r+""):r+"";n.push([v,g,l,c,u,f]);for(var m=0;m<s.length;m++){var x=s[m];if(x<g||x>f){var _=[v,x];i.push(_)}}}return{boxData:n,outliers:i}}var dg=n("07fd"),pg={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==dg["c"]){var n="";0,Object(Dl["c"])(n)}var i=hg(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function gg(e){e.registerSeriesModel($p),e.registerChartView(og),e.registerLayout(sg),e.registerTransform(pg)}var fg=["color","borderColor"],yg=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){at["traverseElements"](this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,i=this.group,a=t.getLayout("isSimpleBox"),o=e.get("clip",!0),r=e.coordinateSystem,s=r.getArea&&r.getArea();this._data||i.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var r=t.getItemLayout(n);if(o&&xg(s,r))return;var l=bg(r,n,!0);it["c"](l,{shape:{points:r.ends}},e,n),_g(l,t,n,a),i.add(l),t.setItemGraphicEl(n,l)}})).update((function(r,l){var c=n.getItemGraphicEl(l);if(t.hasValue(r)){var u=t.getItemLayout(r);o&&xg(s,u)?i.remove(c):(c?(it["h"](c,{shape:{points:u.ends}},e,r),Object(it["g"])(c)):c=bg(u,r),_g(c,t,r,a),i.add(c),t.setItemGraphicEl(r,c))}else i.remove(c)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),Mg(e,this.group);var t=e.get("clip",!0)?Ht(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){var n,i=t.getData(),a=i.getLayout("isSimpleBox");while(null!=(n=e.next())){var o=i.getItemLayout(n),r=bg(o,n);_g(r,i,n,a),r.incremental=!0,this.group.add(r),this._progressiveEls.push(r)}},t.prototype._incrementalRenderLarge=function(e,t){Mg(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Vt["a"]),vg=function(){function e(){}return e}(),mg=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return Object(Je["a"])(t,e),t.prototype.getDefaultShape=function(){return new vg},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(s["b"]);function bg(e,t,n){var i=e.ends;return new mg({shape:{points:n?Og(i,e):i},z2:100})}function xg(e,t){for(var n=!0,i=0;i<t.ends.length;i++)if(e.contain(t.ends[i][0],t.ends[i][1])){n=!1;break}return n}function _g(e,t,n,i){var a=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=i,Object(rt["I"])(e,a)}function Og(e,t){return b["map"](e,(function(e){return e=e.slice(),e[1]=t.initBaseline,e}))}var Sg=function(){function e(){}return e}(),wg=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeCandlestickBox",n}return Object(Je["a"])(t,e),t.prototype.getDefaultShape=function(){return new Sg},t.prototype.buildPath=function(e,t){for(var n=t.points,i=0;i<n.length;)if(this.__sign===n[i++]){var a=n[i++];e.moveTo(a,n[i++]),e.lineTo(a,n[i++])}else i+=3},t}(s["b"]);function Mg(e,t,n,i){var a=e.getData(),o=a.getLayout("largePoints"),r=new wg({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});t.add(r);var s=new wg({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new wg({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});t.add(l),Ig(1,r,e,a),Ig(-1,s,e,a),Ig(0,l,e,a),i&&(r.incremental=!0,s.incremental=!0),n&&n.push(r,s)}function Ig(e,t,n,i){var a=n.get(["itemStyle",e>0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]);0===e&&(a=n.get(["itemStyle","borderColorDoji"]));var o=n.getModel("itemStyle").getItemStyle(fg);t.useStyle(o),t.style.fill=null,t.style.stroke=a}var jg=yg,Ag=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return Object(Je["a"])(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var i=t.getItemLayout(e);return i&&n.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}($e["b"]);Object(b["mixin"])(Ag,Jp,!0);var Cg=Ag;function Tg(e){e&&b["isArray"](e.series)&&b["each"](e.series,(function(e){b["isObject"](e)&&"k"===e.type&&(e.type="candlestick")}))}var Dg=["itemStyle","borderColor"],Lg=["itemStyle","borderColor0"],Pg=["itemStyle","borderColorDoji"],kg=["itemStyle","color"],Ng=["itemStyle","color0"],Rg={seriesType:"candlestick",plan:Object(pn["a"])(),performRawSeries:!0,reset:function(e,t){function n(e,t){return t.get(e>0?kg:Ng)}function i(e,t){return t.get(0===e?Pg:e>0?Dg:Lg)}if(!t.isSeriesFiltered(e)){var a=e.pipelineContext.large;return!a&&{progress:function(e,t){var a;while(null!=(a=e.next())){var o=t.getItemModel(a),r=t.getItemLayout(a).sign,s=o.getItemStyle();s.fill=n(r,o),s.stroke=i(r,o)||s.fill;var l=t.ensureUniqueItemVisual(a,"style");Object(b["extend"])(l,s)}}}}}},Vg=Rg,Eg={seriesType:"candlestick",plan:Object(pn["a"])(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),i=Bg(e,n),a=0,o=1,r=["x","y"],s=n.getDimensionIndex(n.mapDimension(r[a])),l=Object(b["map"])(n.mapDimensionsAll(r[o]),n.getDimensionIndex,n),c=l[0],u=l[1],h=l[2],d=l[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(s<0||l.length<4))return{progress:e.pipelineContext.large?g:p};function p(e,n){var r,l=n.getStore();while(null!=(r=e.next())){var p=l.get(s,r),g=l.get(c,r),f=l.get(u,r),y=l.get(h,r),v=l.get(d,r),m=Math.min(g,f),b=Math.max(g,f),x=j(m,p),_=j(b,p),O=j(y,p),S=j(v,p),w=[];A(w,_,0),A(w,x,1),w.push(T(S),T(_),T(O),T(x));var M=n.getItemModel(r),I=!!M.get(["itemStyle","borderColorDoji"]);n.setItemLayout(r,{sign:zg(l,r,g,f,u,I),initBaseline:g>f?_[o]:x[o],ends:w,brushRect:C(y,v,p)})}function j(e,n){var i=[];return i[a]=n,i[o]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(i)}function A(e,t,n){var o=t.slice(),r=t.slice();o[a]=Object(at["subPixelOptimize"])(o[a]+i/2,1,!1),r[a]=Object(at["subPixelOptimize"])(r[a]-i/2,1,!0),n?e.push(o,r):e.push(r,o)}function C(e,t,n){var r=j(e,n),s=j(t,n);return r[a]-=i/2,s[a]-=i/2,{x:r[0],y:r[1],width:o?i:s[0]-r[0],height:o?s[1]-r[1]:i}}function T(e){return e[a]=Object(at["subPixelOptimize"])(e[a],1),e}}function g(n,i){var r,l,p=Object(St["a"])(4*n.count),g=0,f=[],y=[],v=i.getStore(),m=!!e.get(["itemStyle","borderColorDoji"]);while(null!=(l=n.next())){var b=v.get(s,l),x=v.get(c,l),_=v.get(u,l),O=v.get(h,l),S=v.get(d,l);isNaN(b)||isNaN(O)||isNaN(S)?(p[g++]=NaN,g+=3):(p[g++]=zg(v,l,x,_,u,m),f[a]=b,f[o]=O,r=t.dataToPoint(f,null,y),p[g++]=r?r[0]:NaN,p[g++]=r?r[1]:NaN,f[o]=S,r=t.dataToPoint(f,null,y),p[g++]=r?r[1]:NaN)}i.setLayout("largePoints",p)}}};function zg(e,t,n,i,a,o){var r;return r=n>i?-1:n<i?1:o?0:t>0?e.get(a,t-1)<=i?1:-1:1,r}function Bg(e,t){var n,i=e.getBaseAxis(),a="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/t.count()),o=Object(Bt["q"])(Object(b["retrieve2"])(e.get("barMaxWidth"),a),a),r=Object(Bt["q"])(Object(b["retrieve2"])(e.get("barMinWidth"),1),a),s=e.get("barWidth");return null!=s?Object(Bt["q"])(s,a):Math.max(Math.min(a/2,o),r)}var Gg=Eg;function Fg(e){e.registerChartView(jg),e.registerSeriesModel(Cg),e.registerPreprocessor(Tg),e.registerVisual(Vg),e.registerLayout(Gg)}function Hg(e,t){var n=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})}))}var Wg=function(e){function t(t,n){var i=e.call(this)||this,a=new pt(t,n),o=new et["a"];return i.add(a),i.add(o),i.updateData(t,n),i}return Object(Je["a"])(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,i=e.rippleNumber,a=this.childAt(1),o=0;o<i;o++){var r=Object(Qe["a"])(t,-1,-1,2,2,n);r.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-o/i*e.period+e.effectOffset;r.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(s).start(),r.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),a.add(r)}Hg(a,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],a=0;a<i.length;a++){var o=i[a];if(t[o]!==e[o])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}Hg(n,e)},t.prototype.highlight=function(){Object(rt["r"])(this)},t.prototype.downplay=function(){Object(rt["C"])(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,t){var n=this,i=e.hostModel;this.childAt(0).updateData(e,t);var a=this.childAt(1),o=e.getItemModel(t),r=e.getItemVisual(t,"symbol"),s=Object(Qe["c"])(e.getItemVisual(t,"symbolSize")),l=e.getItemVisual(t,"style"),c=l&&l.fill,u=o.getModel("emphasis");a.setScale(s),a.traverse((function(e){e.setStyle("fill",c)}));var h=Object(Qe["b"])(e.getItemVisual(t,"symbolOffset"),s);h&&(a.x=h[0],a.y=h[1]);var d=e.getItemVisual(t,"symbolRotate");a.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=o.get(["rippleEffect","scale"]),p.brushType=o.get(["rippleEffect","brushType"]),p.period=1e3*o.get(["rippleEffect","period"]),p.effectOffset=t/e.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=r,p.color=c,p.rippleEffectColor=o.get(["rippleEffect","color"]),p.rippleNumber=o.get(["rippleEffect","number"]),"render"===p.showEffectOn?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){"emphasis"===e?"render"!==p.showEffectOn&&n.startEffectAnimation(p):"normal"===e&&"render"!==p.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=p,Object(rt["J"])(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(et["a"]),Yg=Wg,Zg=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.init=function(){this._symbolDraw=new mt(Yg)},t.prototype.render=function(e,t,n){var i=e.getData(),a=this._symbolDraw;a.updateData(i,{clipShape:this._getClipShape(e)}),this.group.add(a.group)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype.updateTransform=function(e,t,n){var i=e.getData();this.group.dirty();var a=gn("").reset(e,t,n);a.progress&&a.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=Ni["clone"](t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(Vt["a"]),Xg=Zg,Ug=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(Je["a"])(t,e),t.prototype.getInitialData=function(e,t){return Object(Ke["a"])(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}($e["b"]),qg=Ug;function Jg(e){e.registerChartView(Xg),e.registerSeriesModel(qg),e.registerLayout(gn("effectScatter"))}var Kg=function(e){function t(t,n,i){var a=e.call(this)||this;return a.add(a.createLine(t,n,i)),a._updateEffectSymbol(t,n),a}return Object(Je["a"])(t,e),t.prototype.createLine=function(e,t,n){return new vu(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t),i=n.getModel("effect"),a=i.get("symbolSize"),o=i.get("symbol");b["isArray"](a)||(a=[a,a]);var r=e.getItemVisual(t,"style"),s=i.get("color")||r&&r.stroke,l=this.childAt(1);this._symbolType!==o&&(this.remove(l),l=Object(Qe["a"])(o,-.5,-.5,1,1,s),l.z2=100,l.culling=!0,this.add(l)),l&&(l.setStyle("shadowColor",s),l.setStyle(i.getItemStyle(["color"])),l.scaleX=a[0],l.scaleY=a[1],l.setColor(s),this._symbolType=o,this._symbolScale=a,this._updateEffectAnimation(e,i,t))},t.prototype._updateEffectAnimation=function(e,t,n){var i=this.childAt(1);if(i){var a=e.getItemLayout(n),o=1e3*t.get("period"),r=t.get("loop"),s=t.get("roundTrip"),l=t.get("constantSpeed"),c=b["retrieve"](t.get("delay"),(function(t){return t/e.count()*o/3}));if(i.ignore=!0,this._updateAnimationPoints(i,a),l>0&&(o=this._getLineLength(i)/l*1e3),o!==this._period||r!==this._loop||s!==this._roundTrip){i.stopAnimation();var u=void 0;u=b["isFunction"](c)?c(n):c,i.__t>0&&(u=-o*i.__t),this._animateSymbol(i,o,u,r,s)}this._period=o,this._loop=r,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,n,i,a){if(t>0){e.__t=0;var o=this,r=e.animate("",i).when(a?2*t:t,{__t:a?2:1}).delay(n).during((function(){o._updateSymbolPosition(e)}));i||r.done((function(){o.remove(e)})),r.start()}},t.prototype._getLineLength=function(e){return Ri["dist"](e.__p1,e.__cp1)+Ri["dist"](e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,i=e.__cp1,a=e.__t<1?e.__t:2-e.__t,o=[e.x,e.y],r=o.slice(),s=At["h"],l=At["i"];o[0]=s(t[0],i[0],n[0],a),o[1]=s(t[1],i[1],n[1],a);var c=e.__t<1?l(t[0],i[0],n[0],a):l(n[0],i[0],t[0],1-a),u=e.__t<1?l(t[1],i[1],n[1],a):l(n[1],i[1],t[1],1-a);e.rotation=-Math.atan2(u,c)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT<e.__t?(e.scaleY=1.05*Ri["dist"](r,o),1===a&&(o[0]=r[0]+(o[0]-r[0])/2,o[1]=r[1]+(o[1]-r[1])/2)):1===e.__lastT?e.scaleY=2*Ri["dist"](t,o):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=o[0],e.y=o[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,n,t)},t}(et["a"]),$g=Kg,Qg=function(e){function t(t,n,i){var a=e.call(this)||this;return a._createPolyline(t,n,i),a}return Object(Je["a"])(t,e),t.prototype._createPolyline=function(e,t,n){var i=e.getItemLayout(t),a=new Sa["a"]({shape:{points:i}});this.add(a),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var i=e.hostModel,a=this.childAt(0),o={shape:{points:e.getItemLayout(t)}};it["h"](a,o,i,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var i=this.childAt(0),a=e.getItemModel(t),o=n&&n.emphasisLineStyle,r=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var c=a.getModel("emphasis");o=c.getModel("lineStyle").getLineStyle(),l=c.get("disabled"),r=c.get("focus"),s=c.get("blurScope")}i.useStyle(e.getItemVisual(t,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var u=i.ensureState("emphasis");u.style=o,Object(rt["J"])(this,r,s,l)},t.prototype.updateLayout=function(e,t){var n=this.childAt(0);n.setShape("points",e.getItemLayout(t))},t}(et["a"]),ef=Qg,tf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return Object(Je["a"])(t,e),t.prototype.createLine=function(e,t,n){return new ef(e,t,n)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],i=0,a=1;a<t.length;a++){var o=t[a-1],r=t[a];i+=Ri["dist"](o,r),n.push(i)}if(0!==i){for(a=0;a<n.length;a++)n[a]/=i;this._offsets=n,this._length=i}else this._length=0},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var t=e.__t<1?e.__t:2-e.__t,n=this._points,i=this._offsets,a=n.length;if(i){var o,r=this._lastFrame;if(t<this._lastFramePercent){var s=Math.min(r+1,a-1);for(o=s;o>=0;o--)if(i[o]<=t)break;o=Math.min(o,a-2)}else{for(o=r;o<a;o++)if(i[o]>t)break;o=Math.min(o-1,a-2)}var l=(t-i[o])/(i[o+1]-i[o]),c=n[o],u=n[o+1];e.x=c[0]*(1-l)+l*u[0],e.y=c[1]*(1-l)+l*u[1];var h=e.__t<1?u[0]-c[0]:c[0]-u[0],d=e.__t<1?u[1]-c[1]:c[1]-u[1];e.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=t,e.ignore=!1}},t}($g),nf=tf,af=n("9680"),of=n("68ab"),rf=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),sf=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return Object(Je["a"])(t,e),t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new rf},t.prototype.buildPath=function(e,t){var n,i=t.segs,a=t.curveness;if(t.polyline)for(n=this._off;n<i.length;){var o=i[n++];if(o>0){e.moveTo(i[n++],i[n++]);for(var r=1;r<o;r++)e.lineTo(i[n++],i[n++])}}else for(n=this._off;n<i.length;){var s=i[n++],l=i[n++],c=i[n++],u=i[n++];if(e.moveTo(s,l),a>0){var h=(s+c)/2-(l-u)*a,d=(l+u)/2-(c-s)*a;e.quadraticCurveTo(h,d,c,u)}else e.lineTo(c,u)}this.incremental&&(this._off=n,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,i=n.segs,a=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var r=0,s=0;s<i.length;){var l=i[s++];if(l>0)for(var c=i[s++],u=i[s++],h=1;h<l;h++){var d=i[s++],p=i[s++];if(af["a"](c,u,d,p,o,e,t))return r}r++}else for(r=0,s=0;s<i.length;){c=i[s++],u=i[s++],d=i[s++],p=i[s++];if(a>0){var g=(c+d)/2-(u-p)*a,f=(u+p)/2-(d-c)*a;if(of["a"](c,u,g,f,d,p,o,e,t))return r}else if(af["a"](c,u,d,p,o,e,t))return r;r++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();if(e=n[0],t=n[1],i.contain(e,t)){var a=this.hoverDataIdx=this.findDataIndex(e,t);return a>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.segs,i=1/0,a=1/0,o=-1/0,r=-1/0,s=0;s<n.length;){var l=n[s++],c=n[s++];i=Math.min(l,i),o=Math.max(l,o),a=Math.min(c,a),r=Math.max(c,r)}e=this._rect=new li["a"](i,a,o,r)}return e},t}(s["b"]),lf=function(){function e(){this.group=new et["a"]}return e.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],i=t.getLayout("linesPoints"),a=n&&n.shape.segs;if(a&&a.length<2e4){var o=a.length,r=new Float32Array(o+i.length);r.set(a),r.set(i,o),n.setShape({segs:r})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:i}),this._setCommon(s,t),s.__startIndex=e.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new sf({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},e.prototype._setCommon=function(e,t,n){var i=t.hostModel;e.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),e.useStyle(i.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var a=t.getVisual("style");a&&a.stroke&&e.setStyle("stroke",a.stroke),e.setStyle("fill",null);var o=Object(ot["a"])(e);o.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){o.dataIndex=null;var n=e.hoverDataIdx;n>0&&(o.dataIndex=n+e.__startIndex)}))},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),cf=lf,uf={seriesType:"lines",plan:Object(pn["a"])(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),i=e.pipelineContext.large;return{progress:function(a,o){var r=[];if(i){var s=void 0,l=a.end-a.start;if(n){for(var c=0,u=a.start;u<a.end;u++)c+=e.getLineCoordsCount(u);s=new Float32Array(l+2*c)}else s=new Float32Array(4*l);var h=0,d=[];for(u=a.start;u<a.end;u++){var p=e.getLineCoords(u,r);n&&(s[h++]=p);for(var g=0;g<p;g++)d=t.dataToPoint(r[g],!1,d),s[h++]=d[0],s[h++]=d[1]}o.setLayout("linesPoints",s)}else for(u=a.start;u<a.end;u++){var f=o.getItemModel(u),y=(p=e.getLineCoords(u,r),[]);if(n)for(var v=0;v<p;v++)y.push(t.dataToPoint(r[v]));else{y[0]=t.dataToPoint(r[0]),y[1]=t.dataToPoint(r[1]);var m=f.get(["lineStyle","curveness"]);+m&&(y[2]=[(y[0][0]+y[1][0])/2-(y[0][1]-y[1][1])*m,(y[0][1]+y[1][1])/2-(y[1][0]-y[0][0])*m])}o.setItemLayout(u,y)}}}}}},hf=uf,df=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),a=this._updateLineDraw(i,e),o=e.get("zlevel"),r=e.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&r>0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(r/10+.9,1),0)})),a.updateData(i);var c=e.get("clip",!0)&&Ht(e.coordinateSystem,!1,e);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData(),a=this._updateLineDraw(i,e);a.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var i=e.getData(),a=e.pipelineContext;if(!this._finished||a.large||a.progressiveRender)return{update:!0};var o=hf.reset(e,t,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,i=this._showEffect(t),a=!!t.get("polyline"),o=t.pipelineContext,r=o.large;return n&&i===this._hasEffet&&a===this._isPolyline&&r===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=r?new cf:new Su(a?i?nf:ef:i?$g:vu),this._hasEffet=i,this._isPolyline=a,this._isLargeDraw=r),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr(),n="svg"===t.painter.getType();n||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type="lines",t}(Vt["a"]),pf=df,gf="undefined"===typeof Uint32Array?Array:Uint32Array,ff="undefined"===typeof Float64Array?Array:Float64Array;function yf(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Object(b["map"])(t,(function(e){var t=[e[0].coord,e[1].coord],n={coords:t};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),Object(b["mergeAll"])([n,e[0],e[1]])})))}var vf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return Object(Je["a"])(t,e),t.prototype.init=function(t){t.data=t.data||[],yf(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(yf(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=Object(b["concatArray"])(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Object(b["concatArray"])(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e),n=t.option instanceof Array?t.option:t.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],i=this._flatCoordsOffset[2*e+1],a=0;a<i;a++)t[a]=t[a]||[],t[a][0]=this._flatCoords[n+2*a],t[a][1]=this._flatCoords[n+2*a+1];return i}var o=this._getCoordsFromItemModel(e);for(a=0;a<o.length;a++)t[a]=t[a]||[],t[a][0]=o[a][0],t[a][1]=o[a][1];return o.length},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),Object(b["isNumber"])(e[0])){for(var n=e.length,i=new gf(n),a=new ff(n),o=0,r=0,s=0,l=0;l<n;){s++;var c=e[l++];i[r++]=o+t,i[r++]=c;for(var u=0;u<c;u++){var h=e[l++],d=e[l++];a[o++]=h,a[o++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,r),flatCoords:a,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){var n=new Ds["a"](["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],(function(e,t,i,a){if(e instanceof Array)return NaN;n.hasItemOption=!0;var o=e.value;return null!=o?o instanceof Array?o[a]:o:void 0})),n},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),a=i.getItemModel(e),o=a.get("name");if(o)return o;var r=a.get("fromName"),s=a.get("toName"),l=[];return null!=r&&l.push(r),null!=s&&l.push(s),Object(Aa["c"])("nameValue",{name:l.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),t=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&t>0?t+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}($e["b"]),mf=vf;function bf(e){return e instanceof Array||(e=[e,e]),e}var xf={seriesType:"lines",reset:function(e){var t=bf(e.get("symbol")),n=bf(e.get("symbolSize")),i=e.getData();function a(e,t){var n=e.getItemModel(t),i=bf(n.getShallow("symbol",!0)),a=bf(n.getShallow("symbolSize",!0));i[0]&&e.setItemVisual(t,"fromSymbol",i[0]),i[1]&&e.setItemVisual(t,"toSymbol",i[1]),a[0]&&e.setItemVisual(t,"fromSymbolSize",a[0]),a[1]&&e.setItemVisual(t,"toSymbolSize",a[1])}return i.setVisual("fromSymbol",t&&t[0]),i.setVisual("toSymbol",t&&t[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?a:null}}},_f=xf;function Of(e){e.registerChartView(pf),e.registerSeriesModel(mf),e.registerLayout(hf),e.registerVisual(_f)}var Sf=256,wf=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=te["d"].createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,i,a,o){var r=this._getBrush(),s=this._getGradient(a,"inRange"),l=this._getGradient(a,"outOfRange"),c=this.pointSize+this.blurSize,u=this.canvas,h=u.getContext("2d"),d=e.length;u.width=t,u.height=n;for(var p=0;p<d;++p){var g=e[p],f=g[0],y=g[1],v=g[2],m=i(v);h.globalAlpha=m,h.drawImage(r,f-c,y-c)}if(!u.width||!u.height)return u;var b=h.getImageData(0,0,u.width,u.height),x=b.data,_=0,O=x.length,S=this.minOpacity,w=this.maxOpacity,M=w-S;while(_<O){m=x[_+3]/256;var I=4*Math.floor(m*(Sf-1));if(m>0){var j=o(m)?s:l;m>0&&(m=m*M+S),x[_++]=j[I],x[_++]=j[I+1],x[_++]=j[I+2],x[_++]=j[I+3]*m*256}else _+=4}return h.putImageData(b,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=te["d"].createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var i=e.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,i=n[t]||(n[t]=new Uint8ClampedArray(1024)),a=[0,0,0,0],o=0,r=0;r<256;r++)e[t](r/255,!0,a),i[o++]=a[0],i[o++]=a[1],i[o++]=a[2],i[o++]=a[3];return i},e}(),Mf=wf;function If(e,t,n){var i=e[1]-e[0];t=b["map"](t,(function(t){return{interval:[(t.interval[0]-e[0])/i,(t.interval[1]-e[0])/i]}}));var a=t.length,o=0;return function(e){var i;for(i=o;i<a;i++){var r=t[i].interval;if(r[0]<=e&&e<=r[1]){o=i;break}}if(i===a)for(i=o-1;i>=0;i--){r=t[i].interval;if(r[0]<=e&&e<=r[1]){o=i;break}}return i>=0&&i<a&&n[i]}}function jf(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}function Af(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var Cf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.render=function(e,t,n){var i;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(i=t)}))})),this._progressiveEls=null,this.group.removeAll();var a=e.coordinateSystem;"cartesian2d"===a.type||"calendar"===a.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):Af(a)&&this._renderOnGeo(a,e,i,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,i){var a=t.coordinateSystem;a&&(Af(a)?this.render(t,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){at["traverseElements"](this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,i,a){var o,r,s,l,c=e.coordinateSystem,u=Wt(c,"cartesian2d");if(u){var h=c.getAxis("x"),d=c.getAxis("y");0,o=h.getBandWidth()+.5,r=d.getBandWidth()+.5,s=h.scale.getExtent(),l=d.scale.getExtent()}for(var p=this.group,g=e.getData(),f=e.getModel(["emphasis","itemStyle"]).getItemStyle(),y=e.getModel(["blur","itemStyle"]).getItemStyle(),v=e.getModel(["select","itemStyle"]).getItemStyle(),m=e.get(["itemStyle","borderRadius"]),b=Object(ut["e"])(e),x=e.getModel("emphasis"),_=x.get("focus"),O=x.get("blurScope"),S=x.get("disabled"),w=u?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],M=n;M<i;M++){var I=void 0,j=g.getItemVisual(M,"style");if(u){var A=g.get(w[0],M),C=g.get(w[1],M);if(isNaN(g.get(w[2],M))||isNaN(A)||isNaN(C)||A<s[0]||A>s[1]||C<l[0]||C>l[1])continue;var T=c.dataToPoint([A,C]);I=new Et["a"]({shape:{x:T[0]-o/2,y:T[1]-r/2,width:o,height:r},style:j})}else{if(isNaN(g.get(w[1],M)))continue;I=new Et["a"]({z2:1,shape:c.dataToRect([g.get(w[0],M)]).contentShape,style:j})}if(g.hasItemOption){var D=g.getItemModel(M),L=D.getModel("emphasis");f=L.getModel("itemStyle").getItemStyle(),y=D.getModel(["blur","itemStyle"]).getItemStyle(),v=D.getModel(["select","itemStyle"]).getItemStyle(),m=D.get(["itemStyle","borderRadius"]),_=L.get("focus"),O=L.get("blurScope"),S=L.get("disabled"),b=Object(ut["e"])(D)}I.shape.r=m;var P=e.getRawValue(M),k="-";P&&null!=P[2]&&(k=P[2]+""),Object(ut["g"])(I,b,{labelFetcher:e,labelDataIndex:M,defaultOpacity:j.opacity,defaultText:k}),I.ensureState("emphasis").style=f,I.ensureState("blur").style=y,I.ensureState("select").style=v,Object(rt["J"])(I,_,O,S),I.incremental=a,a&&(I.states.emphasis.hoverLayer=!0),p.add(I),g.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},t.prototype._renderOnGeo=function(e,t,n,i){var a=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,r=t.getData(),s=this._hmLayer||this._hmLayer||new Mf;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var c=e.getViewRect().clone(),u=e.getRoamTransform();c.applyTransform(u);var h=Math.max(c.x,0),d=Math.max(c.y,0),p=Math.min(c.width+c.x,i.getWidth()),g=Math.min(c.height+c.y,i.getHeight()),f=p-h,y=g-d,v=[r.mapDimension("lng"),r.mapDimension("lat"),r.mapDimension("value")],m=r.mapArray(v,(function(t,n,i){var a=e.dataToPoint([t,n]);return a[0]-=h,a[1]-=d,a.push(i),a})),b=n.getExtent(),x="visualMap.continuous"===n.type?jf(b,n.option.range):If(b,n.getPieceList(),n.option.selected);s.update(m,f,y,a.color.getNormalizer(),{inRange:a.color.getColorMapper(),outOfRange:o.color.getColorMapper()},x);var _=new l["a"]({style:{width:f,height:y,x:h,y:d,image:s.canvas},silent:!0});this.group.add(_)},t.type="heatmap",t}(Vt["a"]),Tf=Cf,Df=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.getInitialData=function(e,t){return Object(Ke["a"])(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Ru["a"].get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}($e["b"]),Lf=Df;function Pf(e){e.registerChartView(Tf),e.registerSeriesModel(Lf)}var kf=["itemStyle","borderWidth"],Nf=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Rf=new Ra["a"],Vf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.render=function(e,t,n){var i=this.group,a=e.getData(),o=this._data,r=e.coordinateSystem,s=r.getBaseAxis(),l=s.isHorizontal(),c=r.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:r,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:l,valueDim:Nf[+l],categoryDim:Nf[1-+l]};return a.diff(o).add((function(e){if(a.hasValue(e)){var t=qf(a,e),n=Ef(a,e,t,u),o=$f(a,u,n);a.setItemGraphicEl(e,o),i.add(o),ay(o,u,n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(a.hasValue(e)){var r=qf(a,e),s=Ef(a,e,r,u),l=ty(a,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),a.setItemGraphicEl(e,null),n=null),n?Qf(n,u,s):n=$f(a,u,s,!0),a.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,i.add(n),ay(n,u,s)}else i.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&ey(o,e,t.__pictorialSymbolMeta.animationModel,t)})).execute(),this._data=a,this.group},t.prototype.remove=function(e,t){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl((function(t){ey(i,Object(ot["a"])(t).dataIndex,e,t)})):n.removeAll()},t.type="pictorialBar",t}(Vt["a"]);function Ef(e,t,n,i){var a=e.getItemLayout(t),o=n.get("symbolRepeat"),r=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),c=(l||0)*Math.PI/180||0,u=n.get("symbolPatternSize")||2,h=n.isAnimationEnabled(),d={dataIndex:t,layout:a,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:r,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:c,animationModel:h?n:null,hoverScale:h&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};zf(n,o,a,i,d),Gf(e,t,a,o,r,d.boundingLength,d.pxSign,u,i,d),Ff(n,d.symbolScale,c,i,d);var p=d.symbolSize,g=Object(Qe["b"])(n.get("symbolOffset"),p);return Hf(n,p,a,o,r,g,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,i,d),d}function zf(e,t,n,i,a){var o,r=i.valueDim,s=e.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),c=l.toGlobalCoord(l.dataToCoord(0)),u=1-+(n[r.wh]<=0);if(b["isArray"](s)){var h=[Bf(l,s[0])-c,Bf(l,s[1])-c];h[1]<h[0]&&h.reverse(),o=h[u]}else o=null!=s?Bf(l,s)-c:t?i.coordSysExtent[r.index][u]-c:n[r.wh];a.boundingLength=o,t&&(a.repeatCutLength=n[r.wh]),a.pxSign=o>0?1:-1}function Bf(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function Gf(e,t,n,i,a,o,r,s,l,c){var u,h=l.valueDim,d=l.categoryDim,p=Math.abs(n[d.wh]),g=e.getItemVisual(t,"symbolSize");u=b["isArray"](g)?g.slice():null==g?["100%","100%"]:[g,g],u[d.index]=Object(Bt["q"])(u[d.index],p),u[h.index]=Object(Bt["q"])(u[h.index],i?p:Math.abs(o)),c.symbolSize=u;var f=c.symbolScale=[u[0]/s,u[1]/s];f[h.index]*=(l.isHorizontal?-1:1)*r}function Ff(e,t,n,i,a){var o=e.get(kf)||0;o&&(Rf.attr({scaleX:t[0],scaleY:t[1],rotation:n}),Rf.updateTransform(),o/=Rf.getLineScale(),o*=t[i.valueDim.index]),a.valueLineWidth=o||0}function Hf(e,t,n,i,a,o,r,s,l,c,u,h){var d=u.categoryDim,p=u.valueDim,g=h.pxSign,f=Math.max(t[p.index]+s,0),y=f;if(i){var v=Math.abs(l),m=b["retrieve"](e.get("symbolMargin"),"15%")+"",x=!1;m.lastIndexOf("!")===m.length-1&&(x=!0,m=m.slice(0,m.length-1));var _=Object(Bt["q"])(m,t[p.index]),O=Math.max(f+2*_,0),S=x?0:2*_,w=Object(Bt["k"])(i),M=w?i:oy((v+S)/O),I=v-M*f;_=I/2/(x?M:Math.max(M-1,1)),O=f+2*_,S=x?0:2*_,w||"fixed"===i||(M=c?oy((Math.abs(c)+S)/O):0),y=M*O-S,h.repeatTimes=M,h.symbolMargin=_}var j=g*(y/2),A=h.pathPosition=[];A[d.index]=n[d.wh]/2,A[p.index]="start"===r?j:"end"===r?l-j:l/2,o&&(A[0]+=o[0],A[1]+=o[1]);var C=h.bundlePosition=[];C[d.index]=n[d.xy],C[p.index]=n[p.xy];var T=h.barRectShape=b["extend"]({},n);T[p.wh]=g*Math.max(Math.abs(n[p.wh]),Math.abs(A[p.index]+j)),T[d.wh]=n[d.wh];var D=h.clipShape={};D[d.xy]=-n[d.xy],D[d.wh]=u.ecSize[d.wh],D[p.xy]=0,D[p.wh]=n[p.wh]}function Wf(e){var t=e.symbolPatternSize,n=Object(Qe["a"])(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function Yf(e,t,n,i){var a=e.__pictorialBundle,o=n.symbolSize,r=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,c=n.repeatTimes||0,u=0,h=o[t.valueDim.index]+r+2*n.symbolMargin;for(ny(e,(function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=c,u<c?iy(e,null,g(u),n,i):iy(e,null,{scaleX:0,scaleY:0},n,i,(function(){a.remove(e)})),u++}));u<c;u++){var d=Wf(n);d.__pictorialAnimationIndex=u,d.__pictorialRepeatTimes=c,a.add(d);var p=g(u);iy(d,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,i)}function g(e){var t=s.slice(),i=n.pxSign,a=e;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(a=c-1-e),t[l.index]=h*(a-c/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function Zf(e,t,n,i){var a=e.__pictorialBundle,o=e.__pictorialMainPath;o?iy(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=e.__pictorialMainPath=Wf(n),a.add(o),iy(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function Xf(e,t,n){var i=b["extend"]({},t.barRectShape),a=e.__pictorialBarRect;a?iy(a,null,{shape:i},t,n):(a=e.__pictorialBarRect=new Et["a"]({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,e.add(a))}function Uf(e,t,n,i){if(n.symbolClip){var a=e.__pictorialClipPath,o=b["extend"]({},n.clipShape),r=t.valueDim,s=n.animationModel,l=n.dataIndex;if(a)it["h"](a,{shape:o},s,l);else{o[r.wh]=0,a=new Et["a"]({shape:o}),e.__pictorialBundle.setClipPath(a),e.__pictorialClipPath=a;var c={};c[r.wh]=n.clipShape[r.wh],at[i?"updateProps":"initProps"](a,{shape:c},s,l)}}}function qf(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=Jf,n.isAnimationEnabled=Kf,n}function Jf(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function Kf(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function $f(e,t,n,i){var a=new et["a"],o=new et["a"];return a.add(o),a.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?Yf(a,t,n):Zf(a,t,n),Xf(a,n,i),Uf(a,t,n,i),a.__pictorialShapeStr=ty(e,n),a.__pictorialSymbolMeta=n,a}function Qf(e,t,n){var i=n.animationModel,a=n.dataIndex,o=e.__pictorialBundle;it["h"](o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,a),n.symbolRepeat?Yf(e,t,n,!0):Zf(e,t,n,!0),Xf(e,n,!0),Uf(e,t,n,!0)}function ey(e,t,n,i){var a=i.__pictorialBarRect;a&&a.removeTextContent();var o=[];ny(i,(function(e){o.push(e)})),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),b["each"](o,(function(e){it["e"](e,{scaleX:0,scaleY:0},n,t,(function(){i.parent&&i.parent.remove(i)}))})),e.setItemGraphicEl(t,null)}function ty(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function ny(e,t,n){b["each"](e.__pictorialBundle.children(),(function(i){i!==e.__pictorialBarRect&&t.call(n,i)}))}function iy(e,t,n,i,a,o){t&&e.attr(t),i.symbolClip&&!a?n&&e.attr(n):n&&at[a?"updateProps":"initProps"](e,n,i.animationModel,i.dataIndex,o)}function ay(e,t,n){var i=n.dataIndex,a=n.itemModel,o=a.getModel("emphasis"),r=o.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),c=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),h=o.get("focus"),d=o.get("blurScope"),p=o.get("scale");ny(e,(function(e){if(e instanceof l["a"]){var t=e.style;e.useStyle(b["extend"]({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var i=e.ensureState("emphasis");i.style=r,p&&(i.scaleX=1.1*e.scaleX,i.scaleY=1.1*e.scaleY),e.ensureState("blur").style=s,e.ensureState("select").style=c,u&&(e.cursor=u),e.z2=n.z2}));var g=t.valueDim.posDesc[+(n.boundingLength>0)],f=e.__pictorialBarRect;Object(ut["g"])(f,Object(ut["e"])(a),{labelFetcher:t.seriesModel,labelDataIndex:i,defaultText:lt(t.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:g}),Object(rt["J"])(e,h,d,o.get("disabled"))}function oy(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var ry=Vf,sy=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return Object(Je["a"])(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Object(On["d"])(_n.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(_n),ly=sy;function cy(e){e.registerChartView(ry),e.registerSeriesModel(ly),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Object(b["curry"])(bn["c"],"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Object(bn["a"])("pictorialBar"))}var uy=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return Object(Je["a"])(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),a=this,o=this.group,r=e.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,c=s.boundaryGap;function u(e){return e.name}o.x=0,o.y=l.y+c[0];var h=new al["a"](this._layersSeries||[],r,u,u),d=[];function p(t,n,s){var l=a._layers;if("remove"!==t){for(var c,u,h=[],p=[],g=r[n].indices,f=0;f<g.length;f++){var y=i.getItemLayout(g[f]),v=y.x,m=y.y0,b=y.y;h.push(v,m),p.push(v,m+b),c=i.getItemVisual(g[f],"style")}var x=i.getItemLayout(g[0]),_=e.getModel("label"),O=_.get("margin"),S=e.getModel("emphasis");if("add"===t){var w=d[n]=new et["a"];u=new Rt({shape:{points:h,stackedOnPoints:p,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),w.add(u),o.add(w),e.isAnimationEnabled()&&u.setClipPath(hy(u.getBoundingRect(),e,(function(){u.removeClipPath()})))}else{w=l[s];u=w.childAt(0),o.add(w),d[n]=w,it["h"](u,{shape:{points:h,stackedOnPoints:p}},e),Object(it["g"])(u)}Object(ut["g"])(u,Object(ut["e"])(e),{labelDataIndex:g[f-1],defaultText:i.getName(g[f-1]),inheritColor:c.fill},{normal:{verticalAlign:"middle"}}),u.setTextConfig({position:null,local:!0});var M=u.getTextContent();M&&(M.x=x.x-O,M.y=x.y0+x.y/2),u.useStyle(c),i.setItemGraphicEl(n,u),Object(rt["I"])(u,e),Object(rt["J"])(u,S.get("focus"),S.get("blurScope"),S.get("disabled"))}else o.remove(l[n])}h.add(Object(b["bind"])(p,this,"add")).update(Object(b["bind"])(p,this,"update")).remove(Object(b["bind"])(p,this,"remove")).execute(),this._layersSeries=r,this._layers=d},t.type="themeRiver",t}(Vt["a"]);function hy(e,t,n){var i=new Et["a"]({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return it["c"](i,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),i}var dy=uy,py=2,gy=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new ja["a"](b["bind"](this.getData,this),b["bind"](this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},i=Object(jt["j"])(e,(function(e){return n.hasOwnProperty(e[0]+"")||(n[e[0]+""]=-1),e[2]})),a=[];i.buckets.each((function(e,t){a.push({name:t,dataList:e})}));for(var o=a.length,r=0;r<o;++r){for(var s=a[r].name,l=0;l<a[r].dataList.length;++l){var c=a[r].dataList[l][0]+"";n[c]=r}for(var c in n)n.hasOwnProperty(c)&&n[c]!==r&&(n[c]=r,e[t]=[c,0,s],t++)}return e},t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents("singleAxis",jt["b"]).models[0],i=n.get("type"),a=b["filter"](e.data,(function(e){return void 0!==e[2]})),o=this.fixData(a||[]),r=[],s=this.nameMap=b["createHashMap"](),l=0,c=0;c<o.length;++c)r.push(o[c][py]),s.get(o[c][py])||(s.set(o[c][py],l),l++);var u=Object(Ls["b"])(o,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Object(qp["a"])(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new Ds["a"](u,this);return h.initData(o),h},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],i=0;i<t;++i)n[i]=i;var a=e.mapDimension("single"),o=Object(jt["j"])(n,(function(t){return e.get("name",t)})),r=[];return o.buckets.each((function(t,n){t.sort((function(t,n){return e.get(a,t)-e.get(a,n)})),r.push({name:n,indices:t})})),r},t.prototype.getAxisTooltipData=function(e,t,n){b["isArray"](e)||(e=e?[e]:[]);for(var i,a=this.getData(),o=this.getLayerSeries(),r=[],s=o.length,l=0;l<s;++l){for(var c=Number.MAX_VALUE,u=-1,h=o[l].indices.length,d=0;d<h;++d){var p=a.get(e[0],o[l].indices[d]),g=Math.abs(p-t);g<=c&&(i=p,c=g,u=o[l].indices[d])}r.push(u)}return{dataIndices:r,nestestValue:i}},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),a=i.getName(e),o=i.get(i.mapDimension("value"),e);return Object(Aa["c"])("nameValue",{name:a,value:o})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}($e["b"]),fy=gy;function yy(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),n=e.coordinateSystem,i={},a=n.getRect();i.rect=a;var o=e.get("boundaryGap"),r=n.getAxis();if(i.boundaryGap=o,"horizontal"===r.orient){o[0]=Bt["q"](o[0],a.height),o[1]=Bt["q"](o[1],a.height);var s=a.height-o[0]-o[1];vy(t,e,s)}else{o[0]=Bt["q"](o[0],a.width),o[1]=Bt["q"](o[1],a.width);var l=a.width-o[0]-o[1];vy(t,e,l)}t.setLayout("layoutInfo",i)}))}function vy(e,t,n){if(e.count())for(var i,a=t.coordinateSystem,o=t.getLayerSeries(),r=e.mapDimension("single"),s=e.mapDimension("value"),l=b["map"](o,(function(t){return b["map"](t.indices,(function(t){var n=a.dataToPoint(e.get(r,t));return n[1]=e.get(s,t),n}))})),c=my(l),u=c.y0,h=n/c.max,d=o.length,p=o[0].indices.length,g=0;g<p;++g){i=u[g]*h,e.setItemLayout(o[0].indices[g],{layerIndex:0,x:l[0][g][0],y0:i,y:l[0][g][1]*h});for(var f=1;f<d;++f)i+=l[f-1][g][1]*h,e.setItemLayout(o[f].indices[g],{layerIndex:f,x:l[f][g][0],y0:i,y:l[f][g][1]*h})}}function my(e){for(var t=e.length,n=e[0].length,i=[],a=[],o=0,r=0;r<n;++r){for(var s=0,l=0;l<t;++l)s+=e[l][r][1];s>o&&(o=s),i.push(s)}for(var c=0;c<n;++c)a[c]=(o-i[c])/2;o=0;for(var u=0;u<n;++u){var h=i[u]+a[u];h>o&&(o=h)}return{y0:a,max:o}}function by(e){e.registerChartView(dy),e.registerSeriesModel(fy),e.registerLayout(yy),e.registerProcessor(Object(xa["a"])("themeRiver"))}var xy=n("d32f"),_y=2,Oy=4,Sy=function(e){function t(t,n,i,a){var o=e.call(this)||this;o.z2=_y,o.textConfig={inside:!0},Object(ot["a"])(o).seriesIndex=n.seriesIndex;var r=new ee["a"]({z2:Oy,silent:t.getModel().get(["label","silent"])});return o.setTextContent(r),o.updateData(!0,t,n,i,a),o}return Object(Je["a"])(t,e),t.prototype.updateData=function(e,t,n,i,a){this.node=t,t.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var o=this;Object(ot["a"])(o).dataIndex=t.dataIndex;var r=t.getModel(),s=r.getModel("emphasis"),l=t.getLayout(),c=b["extend"]({},l);c.label=null;var u=t.getVisual("style");u.lineJoin="bevel";var h=t.getVisual("decal");h&&(u.decal=Object(lr["a"])(h,a));var d=Object(xy["a"])(r.getModel("itemStyle"),c,!0);b["extend"](c,d),b["each"](rt["g"],(function(e){var t=o.ensureState(e),n=r.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var i=Object(xy["a"])(n,c);i&&(t.shape=i)})),e?(o.setShape(c),o.shape.r=l.r0,it["h"](o,{shape:{r:l.r}},n,t.dataIndex)):(it["h"](o,{shape:c},n),Object(it["g"])(o)),o.useStyle(u),this._updateLabel(n);var p=r.getShallow("cursor");p&&o.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=s.get("focus"),f="ancestor"===g?t.getAncestorsIndices():"descendant"===g?t.getDescendantIndices():g;Object(rt["J"])(this,f,s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),i=n.getModel("label"),a=this.node.getLayout(),o=a.endAngle-a.startAngle,r=(a.startAngle+a.endAngle)/2,s=Math.cos(r),l=Math.sin(r),c=this,u=c.getTextContent(),h=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(null!=d&&Math.abs(o)<d);function g(e,t){var n=e.get(t);return null==n?i.get(t):n}u.ignore=!p,b["each"](rt["a"],(function(i){var d="normal"===i?n.getModel("label"):n.getModel([i,"label"]),p="normal"===i,f=p?u:u.ensureState(i),y=e.getFormattedLabel(h,i);p&&(y=y||t.node.name),f.style=Object(ut["c"])(d,{},null,"normal"!==i,!0),y&&(f.style.text=y);var v=d.get("show");null==v||p||(f.ignore=!v);var m,x=g(d,"position"),_=p?c:c.states[i],O=_.style.fill;_.textConfig={outsideFill:"inherit"===d.get("color")?O:null,inside:"outside"!==x};var S=g(d,"distance")||0,w=g(d,"align");"outside"===x?(m=a.r+S,w=r>Math.PI/2?"right":"left"):w&&"center"!==w?"left"===w?(m=a.r0+S,r>Math.PI/2&&(w="right")):"right"===w&&(m=a.r-S,r>Math.PI/2&&(w="left")):(m=o===2*Math.PI&&0===a.r0?0:(a.r+a.r0)/2,w="center"),f.style.align=w,f.style.verticalAlign=g(d,"verticalAlign")||"middle",f.x=m*s+a.cx,f.y=m*l+a.cy;var M=g(d,"rotate"),I=0;"radial"===M?(I=-r,I<-Math.PI/2&&(I+=Math.PI)):"tangential"===M?(I=Math.PI/2-r,I>Math.PI/2?I-=Math.PI:I<-Math.PI/2&&(I+=Math.PI)):b["isNumber"](M)&&(I=M*Math.PI/180),f.rotation=I})),u.dirtyStyle()},t}(zt["a"]),wy=Sy,My="sunburstRootToNode",Iy="sunburstHighlight",jy="sunburstUnhighlight";function Ay(e){e.registerAction({type:My,update:"updateView"},(function(e,t){function n(t,n){var i=Vs(e,[My],t);if(i){var a=t.getViewRoot();a&&(e.direction=zs(a,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)})),e.registerAction({type:Iy,update:"none"},(function(e,t,n){function i(t){var n=Vs(e,[Iy],t);n&&(e.dataIndex=n.node.dataIndex)}e=Object(b["extend"])({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},i),n.dispatchAction(Object(b["extend"])(e,{type:"highlight"}))})),e.registerAction({type:jy,update:"updateView"},(function(e,t,n){e=Object(b["extend"])({},e),n.dispatchAction(Object(b["extend"])(e,{type:"downplay"}))}))}var Cy=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.render=function(e,t,n,i){var a=this;this.seriesModel=e,this.api=n,this.ecModel=t;var o=e.getData(),r=o.tree.root,s=e.getViewRoot(),l=this.group,c=e.get("renderLabelForZeroData"),u=[];s.eachNode((function(e){u.push(e)}));var h=this._oldChildren||[];function d(e,t){function n(e){return e.getId()}function i(n,i){var a=null==n?null:e[n],o=null==i?null:t[i];p(a,o)}0===e.length&&0===t.length||new al["a"](t,e,n,n).add(i).update(i).remove(b["curry"](i,null)).execute()}function p(i,a){if(c||!i||i.getValue()||(i=null),i!==r&&a!==r)if(a&&a.piece)i?(a.piece.updateData(!1,i,e,t,n),o.setItemGraphicEl(i.dataIndex,a.piece)):g(a);else if(i){var s=new wy(i,e,t,n);l.add(s),o.setItemGraphicEl(i.dataIndex,s)}}function g(e){e&&e.piece&&(l.remove(e.piece),e.piece=null)}function f(i,o){o.depth>0?(a.virtualPiece?a.virtualPiece.updateData(!1,i,e,t,n):(a.virtualPiece=new wy(i,e,t,n),l.add(a.virtualPiece)),o.piece.off("click"),a.virtualPiece.on("click",(function(e){a._rootToNode(o.parentNode)}))):a.virtualPiece&&(l.remove(a.virtualPiece),a.virtualPiece=null)}d(u,h),f(r,s),this._initEvents(),this._oldChildren=u},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var n=!1,i=e.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece===t.target){var a=i.getModel().get("nodeClick");if("rootToNode"===a)e._rootToNode(i);else if("link"===a){var o=i.getModel(),r=o.get("link");if(r){var s=o.get("target",!0)||"_blank";Object(Yt["k"])(r,s)}}n=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:My,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData(),i=n.getItemLayout(0);if(i){var a=e[0]-i.cx,o=e[1]-i.cy,r=Math.sqrt(a*a+o*o);return r<=i.r&&r>=i.r0}},t.type="sunburst",t}(Vt["a"]),Ty=Cy,Dy=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return Object(Je["a"])(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};Ly(n);var i=this._levelModels=b["map"](e.levels||[],(function(e){return new Da["a"](e,this,t)}),this),a=Rs.createTree(n,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=a.getNodeByDataIndex(t),o=i[n.depth];return o&&(e.parentModel=o),e}))}return a.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=Bs(i,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){Qs(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}($e["b"]);function Ly(e){var t=0;b["each"](e.children,(function(e){Ly(e);var n=e.value;b["isArray"](n)&&(n=n[0]),t+=n}));var n=e.value;b["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),b["isArray"](e.value)?e.value[0]=n:e.value=n}var Py=Dy,ky=Math.PI/180;function Ny(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),i=e.get("radius");b["isArray"](i)||(i=[0,i]),b["isArray"](t)||(t=[t,t]);var a=n.getWidth(),o=n.getHeight(),r=Math.min(a,o),s=Object(Bt["q"])(t[0],a),l=Object(Bt["q"])(t[1],o),c=Object(Bt["q"])(i[0],r/2),u=Object(Bt["q"])(i[1],r/2),h=-e.get("startAngle")*ky,d=e.get("minAngle")*ky,p=e.getData().tree.root,g=e.getViewRoot(),f=g.depth,y=e.get("sort");null!=y&&Ry(g,y);var v=0;b["each"](g.children,(function(e){!isNaN(e.getValue())&&v++}));var m=g.getValue(),x=Math.PI/(m||v)*2,_=g.depth>0,O=g.height-(_?-1:1),S=(u-c)/(O||1),w=e.get("clockwise"),M=e.get("stillShowZeroSum"),I=w?1:-1,j=function(t,n){if(t){var i=n;if(t!==p){var a=t.getValue(),o=0===m&&M?x:a*x;o<d&&(o=d),i=n+I*o;var u=t.depth-f-(_?-1:1),h=c+S*u,g=c+S*(u+1),y=e.getLevelModel(t);if(y){var v=y.get("r0",!0),O=y.get("r",!0),A=y.get("radius",!0);null!=A&&(v=A[0],O=A[1]),null!=v&&(h=Object(Bt["q"])(v,r/2)),null!=O&&(g=Object(Bt["q"])(O,r/2))}t.setLayout({angle:o,startAngle:n,endAngle:i,clockwise:w,cx:s,cy:l,r0:h,r:g})}if(t.children&&t.children.length){var C=0;b["each"](t.children,(function(e){C+=j(e,n+C)}))}return i-n}};if(_){var A=c,C=c+S,T=2*Math.PI;p.setLayout({angle:T,startAngle:h,endAngle:h+T,clockwise:w,cx:s,cy:l,r0:A,r:C})}j(g,h)}))}function Ry(e,t){var n=e.children||[];e.children=Vy(n,t),n.length&&b["each"](e.children,(function(e){Ry(e,t)}))}function Vy(e,t){if(b["isFunction"](t)){var n=b["map"](e,(function(e,t){var n=e.getValue();return{params:{depth:e.depth,height:e.height,dataIndex:e.dataIndex,getValue:function(){return n}},index:t}}));return n.sort((function(e,n){return t(e.params,n.params)})),b["map"](n,(function(t){return e[t.index]}))}var i="asc"===t;return e.sort((function(e,t){var n=(e.getValue()-t.getValue())*(i?1:-1);return 0===n?(e.dataIndex-t.dataIndex)*(i?-1:1):n}))}function Ey(e){var t={};function n(e,n,i){var a=e;while(a&&a.depth>1)a=a.parentNode;var o=n.getColorFromPalette(a.name||a.dataIndex+"",t);return e.depth>1&&Object(b["isString"])(o)&&(o=Object(Zt["lift"])(o,(e.depth-1)/(i-1)*.5)),o}e.eachSeriesByType("sunburst",(function(e){var t=e.getData(),i=t.tree;i.eachNode((function(a){var o=a.getModel(),r=o.getModel("itemStyle").getItemStyle();r.fill||(r.fill=n(a,e,i.root.height));var s=t.ensureUniqueItemVisual(a.dataIndex,"style");Object(b["extend"])(s,r)}))}))}function zy(e){e.registerChartView(Ty),e.registerSeriesModel(Py),e.registerLayout(Object(b["curry"])(Ny,"sunburst")),e.registerProcessor(Object(b["curry"])(xa["a"],"sunburst")),e.registerVisual(Ey),Ay(e)}var By={color:"fill",borderColor:"stroke"},Gy={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Fy=Object(jt["o"])(),Hy=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return Object(Ke["a"])(null,this)},t.prototype.getDataParams=function(t,n,i){var a=e.prototype.getDataParams.call(this,t,n);return i&&(a.info=Fy(i).info),a},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}($e["b"]),Wy=Hy;function Yy(e,t){return t=t||[0,0],b["map"](["x","y"],(function(n,i){var a=this.getAxis(n),o=t[i],r=e[i]/2;return"category"===a.type?a.getBandWidth():Math.abs(a.dataToCoord(o-r)-a.dataToCoord(o+r))}),this)}function Zy(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:b["bind"](Yy,e)}}}function Xy(e,t){return t=t||[0,0],b["map"]([0,1],(function(n){var i=t[n],a=e[n]/2,o=[],r=[];return o[n]=i-a,r[n]=i+a,o[1-n]=r[1-n]=t[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(r)[n])}),this)}function Uy(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:b["bind"](Xy,e)}}}function qy(e,t){var n=this.getAxis(),i=t instanceof Array?t[0]:t,a=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-a)-n.dataToCoord(i+a))}function Jy(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:Object(b["bind"])(qy,e)}}}function Ky(e,t){return t=t||[0,0],b["map"](["Radius","Angle"],(function(n,i){var a="get"+n+"Axis",o=this[a](),r=t[i],s=e[i]/2,l="category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(r-s)-o.dataToCoord(r+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function $y(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),i=t.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:i[1],r0:i[0]},api:{coord:function(i){var a=t.dataToRadius(i[0]),o=n.dataToAngle(i[1]),r=e.coordToPoint([a,o]);return r.push(a,o*Math.PI/180),r},size:b["bind"](Ky,e)}}}function Qy(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}function ev(e,t,n,i){return e&&(e.legacy||!1!==e.legacy&&!n&&!i&&"tspan"!==t&&("text"===t||Object(b["hasOwn"])(e,"text")))}function tv(e,t,n){var i,a,o,r=e;if("text"===t)o=r;else{o={},Object(b["hasOwn"])(r,"text")&&(o.text=r.text),Object(b["hasOwn"])(r,"rich")&&(o.rich=r.rich),Object(b["hasOwn"])(r,"textFill")&&(o.fill=r.textFill),Object(b["hasOwn"])(r,"textStroke")&&(o.stroke=r.textStroke),Object(b["hasOwn"])(r,"fontFamily")&&(o.fontFamily=r.fontFamily),Object(b["hasOwn"])(r,"fontSize")&&(o.fontSize=r.fontSize),Object(b["hasOwn"])(r,"fontStyle")&&(o.fontStyle=r.fontStyle),Object(b["hasOwn"])(r,"fontWeight")&&(o.fontWeight=r.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=Object(b["hasOwn"])(r,"textPosition");n?i.position=s?r.textPosition:"inside":s&&(i.position=r.textPosition),Object(b["hasOwn"])(r,"textPosition")&&(i.position=r.textPosition),Object(b["hasOwn"])(r,"textOffset")&&(i.offset=r.textOffset),Object(b["hasOwn"])(r,"textRotation")&&(i.rotation=r.textRotation),Object(b["hasOwn"])(r,"textDistance")&&(i.distance=r.textDistance)}return nv(o,e),Object(b["each"])(o.rich,(function(e){nv(e,e)})),{textConfig:i,textContent:a}}function nv(e,t){t&&(t.font=t.textFont||t.font,Object(b["hasOwn"])(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Object(b["hasOwn"])(t,"textAlign")&&(e.align=t.textAlign),Object(b["hasOwn"])(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Object(b["hasOwn"])(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Object(b["hasOwn"])(t,"textWidth")&&(e.width=t.textWidth),Object(b["hasOwn"])(t,"textHeight")&&(e.height=t.textHeight),Object(b["hasOwn"])(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Object(b["hasOwn"])(t,"textPadding")&&(e.padding=t.textPadding),Object(b["hasOwn"])(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Object(b["hasOwn"])(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Object(b["hasOwn"])(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Object(b["hasOwn"])(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Object(b["hasOwn"])(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Object(b["hasOwn"])(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Object(b["hasOwn"])(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function iv(e,t,n){var i=e;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var a=i.textPosition.indexOf("inside")>=0,o=e.fill||"#000";av(i,t);var r=null==i.textFill;return a?r&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(r&&(i.textFill=e.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=t.text,i.rich=t.rich,Object(b["each"])(t.rich,(function(e){av(e,e)})),i}function av(e,t){t&&(Object(b["hasOwn"])(t,"fill")&&(e.textFill=t.fill),Object(b["hasOwn"])(t,"stroke")&&(e.textStroke=t.fill),Object(b["hasOwn"])(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Object(b["hasOwn"])(t,"font")&&(e.font=t.font),Object(b["hasOwn"])(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Object(b["hasOwn"])(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Object(b["hasOwn"])(t,"fontSize")&&(e.fontSize=t.fontSize),Object(b["hasOwn"])(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Object(b["hasOwn"])(t,"align")&&(e.textAlign=t.align),Object(b["hasOwn"])(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Object(b["hasOwn"])(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Object(b["hasOwn"])(t,"width")&&(e.textWidth=t.width),Object(b["hasOwn"])(t,"height")&&(e.textHeight=t.height),Object(b["hasOwn"])(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Object(b["hasOwn"])(t,"padding")&&(e.textPadding=t.padding),Object(b["hasOwn"])(t,"borderColor")&&(e.textBorderColor=t.borderColor),Object(b["hasOwn"])(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Object(b["hasOwn"])(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Object(b["hasOwn"])(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Object(b["hasOwn"])(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Object(b["hasOwn"])(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Object(b["hasOwn"])(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Object(b["hasOwn"])(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Object(b["hasOwn"])(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Object(b["hasOwn"])(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Object(b["hasOwn"])(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var ov=n("06ad"),rv={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},sv=Object(b["keys"])(rv),lv=(Object(b["reduce"])(G["a"],(function(e,t){return e[t]=1,e}),{}),G["a"].join(", "),["","style","shape","extra"]),cv=Object(jt["o"])();function uv(e,t,n,i,a){var o=e+"Animation",r=Object(it["a"])(e,i,a)||{},s=cv(t).userDuring;return r.duration>0&&(r.during=s?Object(b["bind"])(xv,{el:t,userDuring:s}):null,r.setToFinal=!0,r.scope=e),Object(b["extend"])(r,n[o]),r}function hv(e,t,n,i){i=i||{};var a=i.dataIndex,o=i.isInit,r=i.clearStyle,s=n.isAnimationEnabled(),l=cv(e),c=t.style;l.userDuring=t.during;var u={},h={};if(wv(e,t,h),Ov("shape",t,h),Ov("extra",t,h),!o&&s&&(Sv(e,t,u),_v("shape",e,t,u),_v("extra",e,t,u),Mv(e,t,c,u)),h.style=c,fv(e,h,r),vv(e,t),s)if(o){var d={};Object(b["each"])(lv,(function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(d[e]=d[e]||{}),Object(b["extend"])(e?d[e]:d,n.enterFrom))}));var p=uv("enter",e,t,n,a);p.duration>0&&e.animateFrom(d,p)}else yv(e,t,a||0,n,u);dv(e,t),c?e.dirty():e.markRedraw()}function dv(e,t){for(var n=cv(e).leaveToProps,i=0;i<lv.length;i++){var a=lv[i],o=a?t[a]:t;o&&o.leaveTo&&(n||(n=cv(e).leaveToProps={}),a&&(n[a]=n[a]||{}),Object(b["extend"])(a?n[a]:n,o.leaveTo))}}function pv(e,t,n,i){if(e){var a=e.parent,o=cv(e).leaveToProps;if(o){var r=uv("update",e,t,n,0);r.done=function(){a.remove(e),i&&i()},e.animateTo(o,r)}else a.remove(e),i&&i()}}function gv(e){return"all"===e}function fv(e,t,n){var i=t.style;if(!e.isGroup&&i){if(n){e.useStyle({});for(var a=e.animators,o=0;o<a.length;o++){var r=a[o];"style"===r.targetName&&r.changeTarget(e.style)}}e.setStyle(i)}t&&(t.style=null,t&&e.attr(t),t.style=i)}function yv(e,t,n,i,a){if(a){var o=uv("update",e,t,i,n);o.duration>0&&e.animateFrom(a,o)}}function vv(e,t){Object(b["hasOwn"])(t,"silent")&&(e.silent=t.silent),Object(b["hasOwn"])(t,"ignore")&&(e.ignore=t.ignore),e instanceof cr["c"]&&Object(b["hasOwn"])(t,"invisible")&&(e.invisible=t.invisible),e instanceof s["b"]&&Object(b["hasOwn"])(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var mv={},bv={setTransform:function(e,t){return mv.el[e]=t,this},getTransform:function(e){return mv.el[e]},setShape:function(e,t){var n=mv.el,i=n.shape||(n.shape={});return i[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=mv.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=mv.el,i=n.style;return i&&(i[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=mv.el.style;if(t)return t[e]},setExtra:function(e,t){var n=mv.el.extra||(mv.el.extra={});return n[e]=t,this},getExtra:function(e){var t=mv.el.extra;if(t)return t[e]}};function xv(){var e=this,t=e.el;if(t){var n=cv(t).userDuring,i=e.userDuring;n===i?(mv.el=t,i(bv)):e.el=e.userDuring=null}}function _v(e,t,n,i){var a=n[e];if(a){var o,r=t[e];if(r){var s=n.transition,l=a.transition;if(l)if(!o&&(o=i[e]={}),gv(l))Object(b["extend"])(o,r);else for(var c=Object(jt["r"])(l),u=0;u<c.length;u++){var h=c[u],d=r[h];o[h]=d}else if(gv(s)||Object(b["indexOf"])(s,e)>=0){!o&&(o=i[e]={});var p=Object(b["keys"])(r);for(u=0;u<p.length;u++){h=p[u],d=r[h];Iv(a[h],d)&&(o[h]=d)}}}}}function Ov(e,t,n){var i=t[e];if(i)for(var a=n[e]={},o=Object(b["keys"])(i),r=0;r<o.length;r++){var s=o[r];a[s]=Object(ov["a"])(i[s])}}function Sv(e,t,n){for(var i=t.transition,a=gv(i)?G["a"]:Object(jt["r"])(i||[]),o=0;o<a.length;o++){var r=a[o];if("style"!==r&&"shape"!==r&&"extra"!==r){var s=e[r];0,n[r]=s}}}function wv(e,t,n){for(var i=0;i<sv.length;i++){var a=sv[i],o=rv[a],r=t[a];r&&(n[o[0]]=r[0],n[o[1]]=r[1])}for(i=0;i<G["a"].length;i++){var s=G["a"][i];null!=t[s]&&(n[s]=t[s])}}function Mv(e,t,n,i){if(n){var a,o=e.style;if(o){var r=n.transition,s=t.transition;if(r&&!gv(r)){var l=Object(jt["r"])(r);!a&&(a=i.style={});for(var c=0;c<l.length;c++){var u=l[c],h=o[u];a[u]=h}}else if(e.getAnimationStyleProps&&(gv(s)||gv(r)||Object(b["indexOf"])(s,"style")>=0)){var d=e.getAnimationStyleProps(),p=d?d.style:null;if(p){!a&&(a=i.style={});var g=Object(b["keys"])(n);for(c=0;c<g.length;c++){u=g[c];if(p[u]){h=o[u];a[u]=h}}}}}}}function Iv(e,t){return Object(b["isArrayLike"])(e)?e!==t:null!=e&&isFinite(e)}var jv=Object(jt["o"])(),Av=["percent","easing","shape","style","extra"];function Cv(e){e.stopAnimation("keyframe"),e.attr(jv(e))}function Tv(e,t,n){if(n.isAnimationEnabled()&&t)if(Object(b["isArray"])(t))Object(b["each"])(t,(function(t){Tv(e,t,n)}));else{var i=t.keyframes,a=t.duration;if(n&&null==a){var o=Object(it["a"])("enter",n,0);a=o&&o.duration}if(i&&a){var r=jv(e);Object(b["each"])(lv,(function(n){if(!n||e[n]){var o;i.sort((function(e,t){return e.percent-t.percent})),Object(b["each"])(i,(function(i){var s=e.animators,l=n?i[n]:i;if(l){var c=Object(b["keys"])(l);if(n||(c=Object(b["filter"])(c,(function(e){return Object(b["indexOf"])(Av,e)<0}))),c.length){o||(o=e.animate(n,t.loop,!0),o.scope="keyframe");for(var u=0;u<s.length;u++)s[u]!==o&&s[u].targetName===o.targetName&&s[u].stopTracks(c);n&&(r[n]=r[n]||{});var h=n?r[n]:r;Object(b["each"])(c,(function(t){h[t]=((n?e[n]:e)||{})[t]})),o.whenWithKeys(a*i.percent,l,c,i.easing)}}})),o&&o.delay(t.delay||0).duration(a).start(t.easing)}}))}}}var Dv="emphasis",Lv="normal",Pv="blur",kv="select",Nv=[Lv,Dv,Pv,kv],Rv={normal:["itemStyle"],emphasis:[Dv,"itemStyle"],blur:[Pv,"itemStyle"],select:[kv,"itemStyle"]},Vv={normal:["label"],emphasis:[Dv,"label"],blur:[Pv,"label"],select:[kv,"label"]},Ev=["x","y"],zv="e\0\0",Bv={normal:{},emphasis:{},blur:{},select:{}},Gv={cartesian2d:Zy,geo:Uy,single:Jy,polar:$y,calendar:Qy};function Fv(e){return e instanceof s["b"]}function Hv(e){return e instanceof cr["c"]}function Wv(e,t){t.copyTransform(e),Hv(t)&&Hv(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,Fv(t)&&Fv(e)&&t.setShape(e.shape))}var Yv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.render=function(e,t,n,i){this._progressiveEls=null;var a=this._data,o=e.getData(),r=this.group,s=$v(e,o,t,n);a||r.removeAll(),o.diff(a).add((function(t){em(n,null,t,s(t,i),e,r,o)})).remove((function(t){var n=a.getItemGraphicEl(t);n&&pv(n,Fy(n).option,e)})).update((function(t,l){var c=a.getItemGraphicEl(l);em(n,c,t,s(t,i),e,r,o)})).execute();var l=e.get("clip",!0)?Ht(e.coordinateSystem,!1,e):null;l?r.setClipPath(l):r.removeClipPath(),this._data=o},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,i,a){var o=t.getData(),r=$v(t,o,n,i),s=this._progressiveEls=[];function l(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var c=e.start;c<e.end;c++){var u=em(null,null,c,r(c,a),t,this.group,o);u&&(u.traverse(l),s.push(u))}},t.prototype.eachRendered=function(e){at["traverseElements"](this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,n,i){var a=t.element;if(null==a||n.name===a)return!0;while((n=n.__hostTarget||n.parent)&&n!==this.group)if(n.name===a)return!0;return!1},t.type="custom",t}(Vt["a"]),Zv=Yv;function Xv(e){var t,n=e.type;if("path"===n){var i=e.shape,a=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,o=gm(i);t=at["makePath"](o,null,a,i.layout||"center"),Fy(t).customPathData=o}else if("image"===n)t=new l["a"]({}),Fy(t).customImagePath=e.style.image;else if("text"===n)t=new ee["a"]({});else if("group"===n)t=new et["a"];else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var r=at["getShapeClass"](n);if(!r){var s="";0,Object(Dl["c"])(s)}t=new r}return Fy(t).customGraphicType=n,t.name=e.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function Uv(e,t,n,i,a,o,r){Cv(t);var s=a&&a.normal.cfg;s&&t.setTextConfig(s),i&&null==i.transition&&(i.transition=Ev);var l=i&&i.style;if(l){if("text"===t.type){var c=l;Object(b["hasOwn"])(c,"textFill")&&(c.fill=c.textFill),Object(b["hasOwn"])(c,"textStroke")&&(c.stroke=c.textStroke)}var u=void 0,h=Fv(t)?l.decal:null;e&&h&&(h.dirty=!0,u=Object(lr["a"])(h,e)),l.__decalPattern=u}if(Hv(t)&&l){u=l.__decalPattern;u&&(l.decal=u)}hv(t,i,o,{dataIndex:n,isInit:r,clearStyle:!0}),Tv(t,i.keyframeAnimation,o)}function qv(e,t,n,i,a){var o=t.isGroup?null:t,r=a&&a[e].cfg;if(o){var s=o.ensureState(e);if(!1===i){var l=o.getState(e);l&&(l.style=null)}else s.style=i||null;r&&(s.textConfig=r),Object(rt["G"])(o)}}function Jv(e,t,n){if(!e.isGroup){var i=e,a=n.currentZ,o=n.currentZLevel;i.z=a,i.zlevel=o;var r=t.z2;null!=r&&(i.z2=r||0);for(var s=0;s<Nv.length;s++)Kv(i,t,Nv[s])}}function Kv(e,t,n){var i,a=n===Lv,o=a?t:rm(t,n),r=o?o.z2:null;null!=r&&(i=a?e:e.ensureState(n),i.z2=r||0)}function $v(e,t,n,i){var a=e.get("renderItem"),o=e.coordinateSystem,r={};o&&(r=o.prepareCustoms?o.prepareCustoms(o):Gv[o.type](o));for(var s,l,c=Object(b["defaults"])({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:_,style:S,ordinalRawValue:O,styleEmphasis:w,visual:j,barLayout:A,currentSeriesIndices:C,font:T},r.api||{}),u={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:r.coordSys,dataInsideLength:t.count(),encode:Qv(e.getData())},h={},d={},p={},g={},f=0;f<Nv.length;f++){var y=Nv[f];p[y]=e.getModel(Rv[y]),g[y]=e.getModel(Vv[y])}function v(e){return e===s?l||(l=t.getItemModel(e)):t.getItemModel(e)}function m(e,n){return t.hasItemOption?e===s?h[n]||(h[n]=v(e).getModel(Rv[n])):v(e).getModel(Rv[n]):p[n]}function x(e,n){return t.hasItemOption?e===s?d[n]||(d[n]=v(e).getModel(Vv[n])):v(e).getModel(Vv[n]):g[n]}return function(e,n){return s=e,l=null,h={},d={},a&&a(Object(b["defaults"])({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},u),c)};function _(e,n){return null==n&&(n=s),t.getStore().get(t.getDimensionIndex(e||0),n)}function O(e,n){null==n&&(n=s),e=e||0;var i=t.getDimensionInfo(e);if(!i){var a=t.getDimensionIndex(e);return a>=0?t.getStore().get(a,n):void 0}var o=t.get(i.name,n),r=i&&i.ordinalMeta;return r?r.categories[o]:o}function S(n,i){null==i&&(i=s);var a=t.getItemVisual(i,"style"),o=a&&a.fill,r=a&&a.opacity,l=m(i,Lv).getItemStyle();null!=o&&(l.fill=o),null!=r&&(l.opacity=r);var c={inheritColor:Object(b["isString"])(o)?o:"#000"},u=x(i,Lv),h=ut["c"](u,null,c,!1,!0);h.text=u.getShallow("show")?Object(b["retrieve2"])(e.getFormattedLabel(i,Lv),lt(t,i)):null;var d=ut["b"](u,c,!1);return I(n,l),l=iv(l,h,d),n&&M(l,n),l.legacy=!0,l}function w(n,i){null==i&&(i=s);var a=m(i,Dv).getItemStyle(),o=x(i,Dv),r=ut["c"](o,null,null,!0,!0);r.text=o.getShallow("show")?Object(b["retrieve3"])(e.getFormattedLabel(i,Dv),e.getFormattedLabel(i,Lv),lt(t,i)):null;var l=ut["b"](o,null,!0);return I(n,a),a=iv(a,r,l),n&&M(a,n),a.legacy=!0,a}function M(e,t){for(var n in t)Object(b["hasOwn"])(t,n)&&(e[n]=t[n])}function I(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function j(e,n){if(null==n&&(n=s),Object(b["hasOwn"])(By,e)){var i=t.getItemVisual(n,"style");return i?i[By[e]]:null}if(Object(b["hasOwn"])(Gy,e))return t.getItemVisual(n,e)}function A(e){if("cartesian2d"===o.type){var t=o.getBaseAxis();return Object(bn["b"])(Object(b["defaults"])({axis:t},e))}}function C(){return n.getCurrentSeriesIndices()}function T(e){return ut["d"](e,n)}}function Qv(e){var t={};return Object(b["each"])(e.dimensions,(function(n){var i=e.getDimensionInfo(n);if(!i.isExtraCoord){var a=i.coordDim,o=t[a]=t[a]||[];o[i.coordDimIndex]=e.getDimensionIndex(n)}})),t}function em(e,t,n,i,a,o,r){if(i){var s=tm(e,t,n,i,a,o);return s&&r.setItemGraphicEl(n,s),s&&Object(rt["J"])(s,i.focus,i.blurScope,i.emphasisDisabled),s}o.remove(t)}function tm(e,t,n,i,a,o){var r=-1,s=t;t&&nm(t,i,a)&&(r=Object(b["indexOf"])(o.childrenRef(),t),t=null);var l=!t,c=t;c?c.clearStates():(c=Xv(i),s&&Wv(s,c)),!1===i.morph?c.disableMorphing=!0:c.disableMorphing&&(c.disableMorphing=!1),Bv.normal.cfg=Bv.normal.conOpt=Bv.emphasis.cfg=Bv.emphasis.conOpt=Bv.blur.cfg=Bv.blur.conOpt=Bv.select.cfg=Bv.select.conOpt=null,Bv.isLegacy=!1,am(c,n,i,a,l,Bv),im(c,n,i,a,l),Uv(e,c,n,i,Bv,a,l),Object(b["hasOwn"])(i,"info")&&(Fy(c).info=i.info);for(var u=0;u<Nv.length;u++){var h=Nv[u];if(h!==Lv){var d=rm(i,h),p=sm(i,d,h);qv(h,c,d,p,Bv)}}return Jv(c,i,a),"group"===i.type&&lm(e,c,n,i,a),r>=0?o.replaceAt(c,r):o.add(c),c}function nm(e,t,n){var i=Fy(e),a=t.type,o=t.shape,r=t.style;return n.isUniversalTransitionEnabled()||null!=a&&a!==i.customGraphicType||"path"===a&&fm(o)&&gm(o)!==i.customPathData||"image"===a&&Object(b["hasOwn"])(r,"image")&&r.image!==i.customImagePath}function im(e,t,n,i,a){var o=n.clipPath;if(!1===o)e&&e.getClipPath()&&e.removeClipPath();else if(o){var r=e.getClipPath();r&&nm(r,o,i)&&(r=null),r||(r=Xv(o),e.setClipPath(r)),Uv(null,r,t,o,null,i,a)}}function am(e,t,n,i,a,o){if(!e.isGroup){om(n,null,o),om(n,Dv,o);var r=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,c=o.select.conOpt;if(null!=r||null!=s||null!=c||null!=l){var u=e.getTextContent();if(!1===r)u&&e.removeTextContent();else{r=o.normal.conOpt=r||{type:"text"},u?u.clearStates():(u=Xv(r),e.setTextContent(u)),Uv(null,u,t,r,null,i,a);for(var h=r&&r.style,d=0;d<Nv.length;d++){var p=Nv[d];if(p!==Lv){var g=o[p].conOpt;qv(p,u,g,sm(r,g,p),null)}}h?u.dirty():u.markRedraw()}}}}function om(e,t,n){var i=t?rm(e,t):e,a=t?sm(e,i,Dv):e.style,o=e.type,r=i?i.textConfig:null,s=e.textContent,l=s?t?rm(s,t):s:null;if(a&&(n.isLegacy||ev(a,o,!!r,!!l))){n.isLegacy=!0;var c=tv(a,o,!t);!r&&c.textConfig&&(r=c.textConfig),!l&&c.textContent&&(l=c.textContent)}if(!t&&l){var u=l;!u.type&&(u.type="text")}var h=t?n[t]:n.normal;h.cfg=r,h.conOpt=l}function rm(e,t){return t?e?e[t]:null:e}function sm(e,t,n){var i=t&&t.style;return null==i&&n===Dv&&e&&(i=e.styleEmphasis),i}function lm(e,t,n,i,a){var o=i.children,r=o?o.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,c=!1===s;if(r||l||c)if(l)um({api:e,oldChildren:t.children()||[],newChildren:o||[],dataIndex:n,seriesModel:a,group:t});else{c&&t.removeAll();for(var u=0;u<r;u++){var h=o[u],d=t.childAt(u);h?(null==h.ignore&&(h.ignore=!1),tm(e,d,n,h,a,t)):d.ignore=!0}for(var p=t.childCount()-1;p>=u;p--){var g=t.childAt(p);cm(t,g,a)}}}function cm(e,t,n){t&&pv(t,Fy(e).option,n)}function um(e){new al["a"](e.oldChildren,e.newChildren,hm,hm,e).add(dm).update(dm).remove(pm).execute()}function hm(e,t){var n=e&&e.name;return null!=n?n:zv+t}function dm(e,t){var n=this.context,i=null!=e?n.newChildren[e]:null,a=null!=t?n.oldChildren[t]:null;tm(n.api,a,n.dataIndex,i,n.seriesModel,n.group)}function pm(e){var t=this.context,n=t.oldChildren[e];n&&pv(n,Fy(n).option,t.seriesModel)}function gm(e){return e&&(e.pathData||e.d)}function fm(e){return e&&(Object(b["hasOwn"])(e,"pathData")||Object(b["hasOwn"])(e,"d"))}function ym(e){e.registerChartView(Zv),e.registerSeriesModel(Wy)}var vm=n("af5c");function mm(e){Object(i["a"])(fa),Object(i["a"])(vm["a"])}var bm=n("dcb36"),xm=n("ff2e"),_m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Je["a"])(t,e),t.prototype.makeElOption=function(e,t,n,i,a){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var r=o.polar,s=r.getOtherAxis(o),l=s.getExtent(),c=o.dataToCoord(t),u=i.get("type");if(u&&"none"!==u){var h=xm["b"](i),d=Sm[u](o,r,c,l);d.style=h,e.graphicKey=d.type,e.pointer=d}var p=i.get(["label","margin"]),g=Om(t,n,i,r,p);xm["c"](e,n,i,a,g)},t}(bm["a"]);function Om(e,t,n,i,a){var o=t.axis,r=o.dataToCoord(e),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,c,u,h=i.getRadiusAxis().getExtent();if("radius"===o.dim){var d=Ni["create"]();Ni["rotate"](d,d,s),Ni["translate"](d,d,[i.cx,i.cy]),l=at["applyTransform"]([r,-a],d);var p=t.getModel("axisLabel").get("rotate")||0,g=na["a"].innerTextLayout(s,p*Math.PI/180,-1);c=g.textAlign,u=g.textVerticalAlign}else{var f=h[1];l=i.coordToPoint([f+a,r]);var y=i.cx,v=i.cy;c=Math.abs(l[0]-y)/f<.3?"center":l[0]>y?"left":"right",u=Math.abs(l[1]-v)/f<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:c,verticalAlign:u}}var Sm={line:function(e,t,n,i){return"angle"===e.dim?{type:"Line",shape:xm["f"](t.coordToPoint([i[0],n]),t.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,i){var a=Math.max(1,e.getBandWidth()),o=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:xm["h"](t.cx,t.cy,i[0],i[1],(-n-a/2)*o,(a/2-n)*o)}:{type:"Sector",shape:xm["h"](t.cx,t.cy,n-a/2,n+a/2,0,2*Math.PI)}}},wm=_m,Mm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.findAxisModel=function(e){var t,n=this.ecModel;return n.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(vi["a"]),Im=Mm,jm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Je["a"])(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",jt["b"]).models[0]},t.type="polarAxis",t}(vi["a"]);b["mixin"](jm,xi["a"]);var Am=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.type="angleAxis",t}(jm),Cm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.type="radiusAxis",t}(jm),Tm=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return Object(Je["a"])(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(Gi["a"]);Tm.prototype.dataToRadius=Gi["a"].prototype.dataToCoord,Tm.prototype.radiusToData=Gi["a"].prototype.coordToData;var Dm=Tm,Lm=Object(jt["o"])(),Pm=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return Object(Je["a"])(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,i=n.getExtent(),a=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],r=e.dataToCoord(o+1)-e.dataToCoord(o),s=Math.abs(r),l=c["d"](null==o?"":o+"",t.getFont(),"center","top"),u=Math.max(l.height,7),h=u/s;isNaN(h)&&(h=1/0);var d=Math.max(0,Math.floor(h)),p=Lm(e.model),g=p.lastAutoInterval,f=p.lastTickCount;return null!=g&&null!=f&&Math.abs(g-d)<=1&&Math.abs(f-a)<=1&&g>d?d=g:(p.lastTickCount=a,p.lastAutoInterval=d),d},t}(Gi["a"]);Pm.prototype.dataToAngle=Gi["a"].prototype.dataToCoord,Pm.prototype.angleToData=Gi["a"].prototype.coordToData;var km=Pm,Nm=["radius","angle"],Rm=function(){function e(e){this.dimensions=Nm,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Dm,this._angleAxis=new km,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===e&&t.push(n),i.scale.type===e&&t.push(i),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),r=Math.max(a[0],a[1]);i.inverse?o=r-360:r=o+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;var l=Math.atan2(-n,t)/Math.PI*180,c=l<o?1:-1;while(l<o||l>r)l+=360*c;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI,i=Math.cos(n)*t+this.cx,a=-Math.sin(n)*t+this.cy;return[i,a]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var i=e.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,i=t-this.cy,a=n*n+i*i-1e-4,o=this.r,r=this.r0;return a<=o*o&&a>=r*r}}},e.prototype.convertToPixel=function(e,t,n){var i=Vm(t);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=Vm(t);return i===this?this.pointToData(n):null},e}();function Vm(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var Em=Rm;function zm(e,t,n){var i=t.get("center"),a=n.getWidth(),o=n.getHeight();e.cx=Object(Bt["q"])(i[0],a),e.cy=Object(Bt["q"])(i[1],o);var r=e.getRadiusAxis(),s=Math.min(a,o)/2,l=t.get("radius");null==l?l=[0,"100%"]:b["isArray"](l)||(l=[0,l]);var c=[Object(Bt["q"])(l[0],s),Object(Bt["q"])(l[1],s)];r.inverse?r.setExtent(c[1],c[0]):r.setExtent(c[0],c[1])}function Bm(e,t){var n=this,i=n.getAngleAxis(),a=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();b["each"](Object(Pi["d"])(t,"radius"),(function(e){a.scale.unionExtentFromData(t,e)})),b["each"](Object(Pi["d"])(t,"angle"),(function(e){i.scale.unionExtentFromData(t,e)}))}})),Object(Pi["i"])(i.scale,i.model),Object(Pi["i"])(a.scale,a.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),r=360/i.scale.count();i.inverse?o[1]+=r:o[1]-=r,i.setExtent(o[0],o[1])}}function Gm(e){return"angleAxis"===e.mainType}function Fm(e,t){if(e.type=t.get("type"),e.scale=Object(Pi["a"])(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),Gm(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle");e.setExtent(n,n+(e.inverse?-360:360))}t.axis=e,e.model=t}var Hm={dimensions:Nm,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,i){var a=new Em(i+"");a.update=Bm;var o=a.getRadiusAxis(),r=a.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");Fm(o,s),Fm(r,l),zm(a,e,t),n.push(a),e.coordinateSystem=a,a.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",jt["b"]).models[0];0,e.coordinateSystem=t.coordinateSystem}})),n}},Wm=Hm,Ym=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Zm(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var i=e.coordToPoint([t[0],n]),a=e.coordToPoint([t[1],n]);return{x1:i[0],y1:i[1],x2:a[0],y2:a[1]}}function Xm(e){var t=e.getRadiusAxis();return t.inverse?0:1}function Um(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var qm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return Object(Je["a"])(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,i=n.polar,a=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),r=n.getMinorTicksCoords(),s=b["map"](n.getViewLabels(),(function(e){e=b["clone"](e);var t=n.scale,i="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(i),e}));Um(s),Um(o),b["each"](Ym,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||Jm[t](this.group,e,i,o,r,a,s)}),this)}},t.type="angleAxis",t}(ia["a"]),Jm={axisLine:function(e,t,n,i,a,o){var r,s=t.getModel(["axisLine","lineStyle"]),l=Xm(n),c=l?0:1;r=0===o[c]?new Ra["a"]({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new Va["a"]({shape:{cx:n.cx,cy:n.cy,r:o[l],r0:o[c]},style:s.getLineStyle(),z2:1,silent:!0}),r.style.fill=null,e.add(r)},axisTick:function(e,t,n,i,a,o){var r=t.getModel("axisTick"),s=(r.get("inside")?-1:1)*r.get("length"),l=o[Xm(n)],c=b["map"](i,(function(e){return new ta["a"]({shape:Zm(n,[l,l+s],e.coord)})}));e.add(at["mergePath"](c,{style:b["defaults"](r.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,i,a,o){if(a.length){for(var r=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(r.get("inside")?-1:1)*s.get("length"),c=o[Xm(n)],u=[],h=0;h<a.length;h++)for(var d=0;d<a[h].length;d++)u.push(new ta["a"]({shape:Zm(n,[c,c+l],a[h][d].coord)}));e.add(at["mergePath"](u,{style:b["defaults"](s.getModel("lineStyle").getLineStyle(),b["defaults"](r.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,i,a,o,r){var s=t.getCategories(!0),l=t.getModel("axisLabel"),c=l.get("margin"),u=t.get("triggerEvent");b["each"](r,(function(i,a){var r=l,h=i.tickValue,d=o[Xm(n)],p=n.coordToPoint([d+c,i.coord]),g=n.cx,f=n.cy,y=Math.abs(p[0]-g)/d<.3?"center":p[0]>g?"left":"right",v=Math.abs(p[1]-f)/d<.3?"middle":p[1]>f?"top":"bottom";if(s&&s[h]){var m=s[h];b["isObject"](m)&&m.textStyle&&(r=new Da["a"](m.textStyle,l,l.ecModel))}var x=new ee["a"]({silent:na["a"].isLabelSilent(t),style:Object(ut["c"])(r,{x:p[0],y:p[1],fill:r.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:y,verticalAlign:v})});if(e.add(x),u){var _=na["a"].makeAxisEventDataBase(t);_.targetType="axisLabel",_.value=i.rawLabel,Object(ot["a"])(x).eventData=_}}),this)},splitLine:function(e,t,n,i,a,o){var r=t.getModel("splitLine"),s=r.getModel("lineStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],h=0;h<i.length;h++){var d=c++%l.length;u[d]=u[d]||[],u[d].push(new ta["a"]({shape:Zm(n,o,i[h].coord)}))}for(h=0;h<u.length;h++)e.add(at["mergePath"](u[h],{style:b["defaults"]({stroke:l[h%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,i,a,o){if(a.length){for(var r=t.getModel("minorSplitLine"),s=r.getModel("lineStyle"),l=[],c=0;c<a.length;c++)for(var u=0;u<a[c].length;u++)l.push(new ta["a"]({shape:Zm(n,o,a[c][u].coord)}));e.add(at["mergePath"](l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,i,a,o){if(i.length){var r=t.getModel("splitArea"),s=r.getModel("areaStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],h=Math.PI/180,d=-i[0].coord*h,p=Math.min(o[0],o[1]),g=Math.max(o[0],o[1]),f=t.get("clockwise"),y=1,v=i.length;y<=v;y++){var m=y===v?i[0].coord:i[y].coord,x=c++%l.length;u[x]=u[x]||[],u[x].push(new zt["a"]({shape:{cx:n.cx,cy:n.cy,r0:p,r:g,startAngle:d,endAngle:-m*h,clockwise:f},silent:!0})),d=-m*h}for(y=0;y<u.length;y++)e.add(at["mergePath"](u[y],{style:b["defaults"]({fill:l[y%l.length]},s.getAreaStyle()),silent:!0}))}}},Km=qm,$m=["axisLine","axisTickLabel","axisName"],Qm=["splitLine","splitArea","minorSplitLine"],eb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return Object(Je["a"])(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=this._axisGroup,i=this._axisGroup=new et["a"];this.group.add(i);var a=e.axis,o=a.polar,r=o.getAngleAxis(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),c=r.getExtent()[0],u=a.getExtent(),h=nb(o,e,c),d=new na["a"](e,h);b["each"]($m,d.add,d),i.add(d.getGroup()),at["groupTransition"](n,i,e),b["each"](Qm,(function(t){e.get([t,"show"])&&!a.scale.isBlank()&&tb[t](this.group,e,o,c,u,s,l)}),this)}},t.type="radiusAxis",t}(ia["a"]),tb={splitLine:function(e,t,n,i,a,o){var r=t.getModel("splitLine"),s=r.getModel("lineStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],h=0;h<o.length;h++){var d=c++%l.length;u[d]=u[d]||[],u[d].push(new Ra["a"]({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[h].coord,0)}}))}for(h=0;h<u.length;h++)e.add(at["mergePath"](u[h],{style:b["defaults"]({stroke:l[h%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,i,a,o,r){if(r.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),c=[],u=0;u<r.length;u++)for(var h=0;h<r[u].length;h++)c.push(new Ra["a"]({shape:{cx:n.cx,cy:n.cy,r:r[u][h].coord}}));e.add(at["mergePath"](c,{style:b["defaults"]({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,i,a,o){if(o.length){var r=t.getModel("splitArea"),s=r.getModel("areaStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],h=o[0].coord,d=1;d<o.length;d++){var p=c++%l.length;u[p]=u[p]||[],u[p].push(new zt["a"]({shape:{cx:n.cx,cy:n.cy,r0:h,r:o[d].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),h=o[d].coord}for(d=0;d<u.length;d++)e.add(at["mergePath"](u[d],{style:b["defaults"]({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function nb(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}var ib=eb;function ab(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function ob(e,t){return t.dim+e.model.componentIndex}function rb(e,t,n){var i={},a=sb(b["filter"](t.getSeriesByType(e),(function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type})));t.eachSeriesByType(e,(function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),n=e.coordinateSystem,o=n.getBaseAxis(),r=ob(n,o),s=ab(e),l=a[r][s],c=l.offset,u=l.width,h=n.getOtherAxis(o),d=e.coordinateSystem.cx,p=e.coordinateSystem.cy,g=e.get("barMinHeight")||0,f=e.get("barMinAngle")||0;i[s]=i[s]||[];for(var y=t.mapDimension(h.dim),v=t.mapDimension(o.dim),m=Object(bt["c"])(t,y),b="radius"!==o.dim||!e.get("roundCap",!0),x=h.dataToCoord(0),_=0,O=t.count();_<O;_++){var S=t.get(y,_),w=t.get(v,_),M=S>=0?"p":"n",I=x;m&&(i[s][w]||(i[s][w]={p:x,n:x}),I=i[s][w][M]);var j=void 0,A=void 0,C=void 0,T=void 0;if("radius"===h.dim){var D=h.dataToCoord(S)-x,L=o.dataToCoord(w);Math.abs(D)<g&&(D=(D<0?-1:1)*g),j=I,A=I+D,C=L-c,T=C-u,m&&(i[s][w][M]=A)}else{var P=h.dataToCoord(S,b)-x,k=o.dataToCoord(w);Math.abs(P)<f&&(P=(P<0?-1:1)*f),j=k+c,A=j+u,C=I,T=I+P,m&&(i[s][w][M]=T)}t.setItemLayout(_,{cx:d,cy:p,r0:j,r:A,startAngle:-C*Math.PI/180,endAngle:-T*Math.PI/180,clockwise:C>=T})}}}))}function sb(e){var t={};b["each"](e,(function(e,n){var i=e.getData(),a=e.coordinateSystem,o=a.getBaseAxis(),r=ob(a,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/i.count(),c=t[r]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},u=c.stacks;t[r]=c;var h=ab(e);u[h]||c.autoWidthCount++,u[h]=u[h]||{width:0,maxWidth:0};var d=Object(Bt["q"])(e.get("barWidth"),l),p=Object(Bt["q"])(e.get("barMaxWidth"),l),g=e.get("barGap"),f=e.get("barCategoryGap");d&&!u[h].width&&(d=Math.min(c.remainedWidth,d),u[h].width=d,c.remainedWidth-=d),p&&(u[h].maxWidth=p),null!=g&&(c.gap=g),null!=f&&(c.categoryGap=f)}));var n={};return b["each"](t,(function(e,t){n[t]={};var i=e.stacks,a=e.bandWidth,o=Object(Bt["q"])(e.categoryGap,a),r=Object(Bt["q"])(e.gap,1),s=e.remainedWidth,l=e.autoWidthCount,c=(s-o)/(l+(l-1)*r);c=Math.max(c,0),b["each"](i,(function(e,t){var n=e.maxWidth;n&&n<c&&(n=Math.min(n,s),e.width&&(n=Math.min(n,e.width)),s-=n,e.width=n,l--)})),c=(s-o)/(l+(l-1)*r),c=Math.max(c,0);var u,h=0;b["each"](i,(function(e,t){e.width||(e.width=c),u=e,h+=e.width*(1+r)})),u&&(h-=u.width*r);var d=-h/2;b["each"](i,(function(e,i){n[t][i]=n[t][i]||{offset:d,width:e.width},d+=e.width*(1+r)}))})),n}var lb=rb,cb={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},ub={splitNumber:5},hb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.type="polar",t}(yi["a"]);function db(e){Object(i["a"])(vm["a"]),ia["a"].registerAxisPointerClass("PolarAxisPointer",wm),e.registerCoordinateSystem("polar",Wm),e.registerComponentModel(Im),e.registerComponentView(hb),Di(e,"angle",Am,cb),Di(e,"radius",Cm,ub),e.registerComponentView(Km),e.registerComponentView(ib),e.registerLayout(Object(b["curry"])(lb,"bar"))}function pb(e,t){t=t||{};var n=e.coordinateSystem,i=e.axis,a={},o=i.position,r=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],c={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};a.position=["vertical"===r?c.vertical[o]:l[0],"horizontal"===r?c.horizontal[o]:l[3]];var u={horizontal:0,vertical:1};a.rotation=Math.PI/2*u[r];var h={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=h[o],e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),b["retrieve"](t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var d=t.rotate;return null==d&&(d=e.get(["axisLabel","rotate"])),a.labelRotation="top"===o?-d:d,a.z2=1,a}var gb=["axisLine","axisTickLabel","axisName"],fb=["splitArea","splitLine"],yb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return Object(Je["a"])(t,e),t.prototype.render=function(t,n,i,a){var o=this.group;o.removeAll();var r=this._axisGroup;this._axisGroup=new et["a"];var s=pb(t),l=new na["a"](t,s);b["each"](gb,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),b["each"](fb,(function(e){t.get([e,"show"])&&vb[e](this,this.group,this._axisGroup,t)}),this),at["groupTransition"](r,this._axisGroup,t),e.prototype.render.call(this,t,n,i,a)},t.prototype.remove=function(){ra(this)},t.type="singleAxis",t}(ia["a"]),vb={splitLine:function(e,t,n,i){var a=i.axis;if(!a.scale.isBlank()){var o=i.getModel("splitLine"),r=o.getModel("lineStyle"),s=r.get("color");s=s instanceof Array?s:[s];for(var l=r.get("width"),c=i.coordinateSystem.getRect(),u=a.isHorizontal(),h=[],d=0,p=a.getTicksCoords({tickModel:o}),g=[],f=[],y=0;y<p.length;++y){var v=a.toGlobalCoord(p[y].coord);u?(g[0]=v,g[1]=c.y,f[0]=v,f[1]=c.y+c.height):(g[0]=c.x,g[1]=v,f[0]=c.x+c.width,f[1]=v);var m=new ta["a"]({shape:{x1:g[0],y1:g[1],x2:f[0],y2:f[1]},silent:!0});at["subPixelOptimizeLine"](m.shape,l);var x=d++%s.length;h[x]=h[x]||[],h[x].push(m)}var _=r.getLineStyle(["color"]);for(y=0;y<h.length;++y)t.add(at["mergePath"](h[y],{style:b["defaults"]({stroke:s[y%s.length]},_),silent:!0}))}},splitArea:function(e,t,n,i){oa(e,n,i,i)}},mb=yb,bb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(vi["a"]);Object(b["mixin"])(bb,xi["a"].prototype);var xb=bb,_b=function(e){function t(t,n,i,a,o){var r=e.call(this,t,n,i)||this;return r.type=a||"value",r.position=o||"bottom",r}return Object(Je["a"])(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.pointToData=function(e,t){return this.coordinateSystem.pointToData(e)[0]},t}(Gi["a"]),Ob=_b,Sb=["single"],wb=function(){function e(e,t,n){this.type="single",this.dimension="single",this.dimensions=Sb,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=this.dimension,a=new Ob(i,Pi["a"](e),[0,0],e.get("type"),e.get("position")),o="category"===a.type;a.onBand=o&&e.get("boundaryGap"),a.inverse=e.get("inverse"),a.orient=e.get("orient"),e.axis=a,a.model=e,a.coordinateSystem=this,this._axis=a},e.prototype.update=function(e,t){e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();Object(b["each"])(t.mapDimensionsAll(this.dimension),(function(e){this._axis.scale.unionExtentFromData(t,e)}),this),Pi["i"](this._axis.scale,this._axis.model)}}),this)},e.prototype.resize=function(e,t){this._rect=Object(Ai["g"])({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),i=n?[0,e.width]:[0,e.height],a=t.inverse?1:0;t.setExtent(i[a],i[1-a]),this._updateAxisTransform(t,n?e.x:e.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),i=n[0]+n[1],a=e.isHorizontal();e.toGlobalCoord=a?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord=a?function(e){return e-t}:function(e){return i-e+t}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis(),i=n.orient;return"horizontal"===i?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),i=[],a="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),i[a]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-a]=0===a?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(e,t,n){var i=Mb(t);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=Mb(t);return i===this?this.pointToData(n):null},e}();function Mb(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var Ib=wb;function jb(e,t){var n=[];return e.eachComponent("singleAxis",(function(i,a){var o=new Ib(i,e,t);o.name="single_"+a,o.resize(i,t),i.coordinateSystem=o,n.push(o)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",jt["b"]).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n}var Ab={create:jb,dimensions:Sb},Cb=Ab,Tb=["x","y"],Db=["width","height"],Lb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Je["a"])(t,e),t.prototype.makeElOption=function(e,t,n,i,a){var o=n.axis,r=o.coordinateSystem,s=Nb(r,1-kb(o)),l=r.dataToPoint(t)[0],c=i.get("type");if(c&&"none"!==c){var u=xm["b"](i),h=Pb[c](o,l,s);h.style=u,e.graphicKey=h.type,e.pointer=h}var d=pb(n);xm["a"](t,e,d,n,i,a)},t.prototype.getHandleTransform=function(e,t,n){var i=pb(t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var a=xm["d"](t.axis,e,i);return{x:a[0],y:a[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var a=n.axis,o=a.coordinateSystem,r=kb(a),s=Nb(o,r),l=[e.x,e.y];l[r]+=t[r],l[r]=Math.min(s[1],l[r]),l[r]=Math.max(s[0],l[r]);var c=Nb(o,1-r),u=(c[1]+c[0])/2,h=[u,u];return h[r]=l[r],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(bm["a"]),Pb={line:function(e,t,n){var i=xm["f"]([t,n[0]],[t,n[1]],kb(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,n){var i=e.getBandWidth(),a=n[1]-n[0];return{type:"Rect",shape:xm["g"]([t-i/2,n[0]],[i,a],kb(e))}}};function kb(e){return e.isHorizontal()?0:1}function Nb(e,t){var n=e.getRect();return[n[Tb[t]],n[Tb[t]]+n[Db[t]]]}var Rb=Lb,Vb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.type="single",t}(yi["a"]);function Eb(e){Object(i["a"])(vm["a"]),ia["a"].registerAxisPointerClass("SingleAxisPointer",Rb),e.registerComponentView(Vb),e.registerComponentView(mb),e.registerComponentModel(xb),Di(e,"single",xb,xb.defaultOption),e.registerCoordinateSystem("single",Cb)}var zb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.init=function(t,n,i){var a=Object(Ai["f"])(t);e.prototype.init.apply(this,arguments),Bb(t,a)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),Bb(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(vi["a"]);function Bb(e,t){var n,i=e.cellSize;n=b["isArray"](i)?i:e.cellSize=[i,i],1===n.length&&(n[1]=n[0]);var a=b["map"]([0,1],(function(e){return Object(Ai["j"])(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));Object(Ai["h"])(e,t,{type:"box",ignoreSize:a})}var Gb=zb,Fb=n("ef59"),Hb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll();var a=e.coordinateSystem,o=a.getRangeInfo(),r=a.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,o,i),this._renderLines(e,o,r,i),this._renderYearText(e,o,r,i),this._renderMonthText(e,s,r,i),this._renderWeekText(e,s,o,r,i)},t.prototype._renderDayRect=function(e,t,n){for(var i=e.coordinateSystem,a=e.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),r=i.getCellHeight(),s=t.start.time;s<=t.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,c=new Et["a"]({shape:{x:l[0],y:l[1],width:o,height:r},cursor:"default",style:a});n.add(c)}},t.prototype._renderLines=function(e,t,n,i){var a=this,o=e.coordinateSystem,r=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=r.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=t.start,u=0;c.time<=t.end.time;u++){d(c.formatedDate),0===u&&(c=o.getDateInfo(t.start.y+"-"+t.start.m));var h=c.date;h.setMonth(h.getMonth()+1),c=o.getDateInfo(h)}function d(t){a._firstDayOfMonth.push(o.getDateInfo(t)),a._firstDayPoints.push(o.dataToRect([t],!1).tl);var l=a._getLinePointsOfOneWeek(e,t,n);a._tlpoints.push(l[0]),a._blpoints.push(l[l.length-1]),s&&a._drawSplitline(l,r,i)}d(o.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(a._getEdgesPoints(a._tlpoints,l,n),r,i),s&&this._drawSplitline(a._getEdgesPoints(a._blpoints,l,n),r,i)},t.prototype._getEdgesPoints=function(e,t,n){var i=[e[0].slice(),e[e.length-1].slice()],a="horizontal"===n?0:1;return i[0][a]=i[0][a]-t/2,i[1][a]=i[1][a]+t/2,i},t.prototype._drawSplitline=function(e,t,n){var i=new Sa["a"]({z2:20,shape:{points:e},style:t});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var i=e.coordinateSystem,a=i.getDateInfo(t),o=[],r=0;r<7;r++){var s=i.getNextNDay(a.time,r),l=i.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},t.prototype._formatterLabel=function(e,t){return Object(b["isString"])(e)&&e?Object(Yt["f"])(e,t):Object(b["isFunction"])(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,i,a){var o=t[0],r=t[1],s=["center","bottom"];"bottom"===i?(r+=a,s=["center","top"]):"left"===i?o-=a:"right"===i?(o+=a,s=["center","top"]):r-=a;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:o,y:r,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,i){var a=e.getModel("yearLabel");if(a.get("show")){var o=a.get("margin"),r=a.get("position");r||(r="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,c=(s[0][1]+s[1][1])/2,u="horizontal"===n?0:1,h={top:[l,s[u][1]],bottom:[l,s[1-u][1]],left:[s[1-u][0],c],right:[s[u][0],c]},d=t.start.y;+t.end.y>+t.start.y&&(d=d+"-"+t.end.y);var p=a.get("formatter"),g={start:t.start.y,end:t.end.y,nameMap:d},f=this._formatterLabel(p,g),y=new ee["a"]({z2:30,style:Object(ut["c"])(a,{text:f})});y.attr(this._yearTextPositionControl(y,h[r],n,r,o)),i.add(y)}},t.prototype._monthTextPositionControl=function(e,t,n,i,a){var o="left",r="top",s=e[0],l=e[1];return"horizontal"===n?(l+=a,t&&(o="center"),"start"===i&&(r="bottom")):(s+=a,t&&(r="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:r}},t.prototype._renderMonthText=function(e,t,n,i){var a=e.getModel("monthLabel");if(a.get("show")){var o=a.get("nameMap"),r=a.get("margin"),s=a.get("position"),l=a.get("align"),c=[this._tlpoints,this._blpoints];o&&!Object(b["isString"])(o)||(o&&(t=Object(Fb["d"])(o)||t),o=t.get(["time","monthAbbr"])||[]);var u="start"===s?0:1,h="horizontal"===n?0:1;r="start"===s?-r:r;for(var d="center"===l,p=0;p<c[u].length-1;p++){var g=c[u][p].slice(),f=this._firstDayOfMonth[p];if(d){var y=this._firstDayPoints[p];g[h]=(y[h]+c[0][p+1][h])/2}var v=a.get("formatter"),m=o[+f.m-1],x={yyyy:f.y,yy:(f.y+"").slice(2),MM:f.m,M:+f.m,nameMap:m},_=this._formatterLabel(v,x),O=new ee["a"]({z2:30,style:Object(b["extend"])(Object(ut["c"])(a,{text:_}),this._monthTextPositionControl(g,d,n,s,r))});i.add(O)}}},t.prototype._weekTextPositionControl=function(e,t,n,i,a){var o="center",r="middle",s=e[0],l=e[1],c="start"===n;return"horizontal"===t?(s=s+i+(c?1:-1)*a[0]/2,o=c?"right":"left"):(l=l+i+(c?1:-1)*a[1]/2,r=c?"bottom":"top"),{x:s,y:l,align:o,verticalAlign:r}},t.prototype._renderWeekText=function(e,t,n,i,a){var o=e.getModel("dayLabel");if(o.get("show")){var r=e.coordinateSystem,s=o.get("position"),l=o.get("nameMap"),c=o.get("margin"),u=r.getFirstDayOfWeek();if(!l||Object(b["isString"])(l)){l&&(t=Object(Fb["d"])(l)||t);var h=t.get(["time","dayOfWeekShort"]);l=h||Object(b["map"])(t.get(["time","dayOfWeekAbbr"]),(function(e){return e[0]}))}var d=r.getNextNDay(n.end.time,7-n.lweek).time,p=[r.getCellWidth(),r.getCellHeight()];c=Object(Bt["q"])(c,Math.min(p[1],p[0])),"start"===s&&(d=r.getNextNDay(n.start.time,-(7+n.fweek)).time,c=-c);for(var g=0;g<7;g++){var f=r.getNextNDay(d,g),y=r.dataToRect([f.time],!1).center,v=g;v=Math.abs((g+u)%7);var m=new ee["a"]({z2:30,style:Object(b["extend"])(Object(ut["c"])(o,{text:l[v]}),this._weekTextPositionControl(y,i,s,c,p))});a.add(m)}}},t.type="calendar",t}(yi["a"]),Wb=Hb,Yb=864e5,Zb=function(){function e(t,n,i){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(e){e=Bt["p"](e);var t=e.getFullYear(),n=e.getMonth()+1,i=n<10?"0"+n:""+n,a=e.getDate(),o=a<10?"0"+a:""+a,r=e.getDay();return r=Math.abs((r+7-this.getFirstDayOfWeek())%7),{y:t+"",m:i,d:o,day:r,time:e.getTime(),formatedDate:t+"-"+i+"-"+o,date:e}},e.prototype.getNextNDay=function(e,t){return t=t||0,0===t||(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t)),this.getDateInfo(e)},e.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],a=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),r="horizontal"===this._orient?[n,7]:[7,n];b["each"]([0,1],(function(e){c(a,e)&&(o[i[e]]=a[e]*r[e])}));var s={width:t.getWidth(),height:t.getHeight()},l=this._rect=Ai["g"](o,s);function c(e,t){return null!=e[t]&&"auto"!==e[t]}b["each"]([0,1],(function(e){c(a,e)||(a[e]=l[i[e]]/r[e])})),this._sw=a[0],this._sh=a[1]},e.prototype.dataToPoint=function(e,t){b["isArray"](e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),i=this._rangeInfo,a=n.formatedDate;if(t&&!(n.time>=i.start.time&&n.time<i.end.time+Yb))return[NaN,NaN];var o=n.day,r=this._getRangeInfo([i.start.time,a]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+r*this._sh+this._sh/2]:[this._rect.x+r*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},e.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},e.prototype.dataToRect=function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,i):this._getDateByWeeksAndDay(t,n-1,i)},e.prototype.convertToPixel=function(e,t,n){var i=Xb(t);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=Xb(t);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var e,t=this._model.get("range");if(b["isArray"](t)&&1===t.length&&(t=t[0]),b["isArray"](t))e=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),a=i.date;a.setMonth(a.getMonth()+1);var o=this.getNextNDay(a,-1);e=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return t;var r=this._getRangeInfo(e);return r.start.time>r.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var i=Math.floor(n[1].time/Yb)-Math.floor(n[0].time/Yb)+1,a=new Date(n[0].time),o=a.getDate(),r=n[1].date.getDate();a.setDate(o+i-1);var s=a.getDate();if(s!==r){var l=a.getTime()-n[1].time>0?1:-1;while((s=a.getDate())!==r&&(a.getTime()-n[1].time)*l>0)i-=l,a.setDate(s-l)}var c=Math.floor((i+n[0].day+6)/7),u=t?1-c:c-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:c,nthWeek:u,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var i=this._getRangeInfo(n);if(e>i.weeks||0===e&&t<i.fweek||e===i.weeks&&t>i.lweek)return null;var a=7*(e-1)-i.fweek+t,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},e.create=function(t,n){var i=[];return t.eachComponent("calendar",(function(a){var o=new e(a,t,n);i.push(o),a.coordinateSystem=o})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("calendarIndex")||0])})),i},e.dimensions=["time","value"],e}();function Xb(e){var t=e.calendarModel,n=e.seriesModel,i=t?t.coordinateSystem:n?n.coordinateSystem:null;return i}var Ub=Zb;function qb(e){e.registerComponentModel(Gb),e.registerComponentView(Wb),e.registerCoordinateSystem("calendar",Ub)}function Jb(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var i=t.parentOption;i?t.parentId=i.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function Kb(e,t){var n;return b["each"](t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}function $b(e,t,n){var i=b["extend"]({},n),a=e[t],o=n.$action||"merge";"merge"===o?a?(b["merge"](a,i,!0),Object(Ai["h"])(a,i,{ignoreSize:!0}),Object(Ai["c"])(n,a),tx(n,a),tx(n,a,"shape"),tx(n,a,"style"),tx(n,a,"extra"),n.clipPath=a.clipPath):e[t]=i:"replace"===o?e[t]=i:"remove"===o&&a&&(e[t]=null)}var Qb=["transition","enterFrom","leaveTo"],ex=Qb.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function tx(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var i=n?Qb:ex,a=0;a<i.length;a++){var o=i[a];null==e[o]&&null!=t[o]&&(e[o]=t[o])}}function nx(e,t){if(e&&(e.hv=t.hv=[Kb(t,["left","right"]),Kb(t,["top","bottom"])],"group"===e.type)){var n=e,i=t;null==n.width&&(n.width=i.width=0),null==n.height&&(n.height=i.height=0)}}var ix=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return Object(Je["a"])(t,e),t.prototype.mergeOption=function(t,n){var i=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=i},t.prototype.optionUpdated=function(e,t){var n=this.option,i=(t?n:e).elements,a=n.elements=t?[]:n.elements,o=[];this._flatten(i,o,null);var r=jt["q"](a,o,"normalMerge"),s=this._elOptionsToUpdate=[];b["each"](r,(function(e,t){var n=e.newOption;n&&(s.push(n),Jb(e,n),$b(a,t,n),nx(a[t],n))}),this),n.elements=b["filter"](a,(function(e){return e&&delete e.$action,null!=e}))},t.prototype._flatten=function(e,t,n){b["each"](e,(function(e){if(e){n&&(e.parentOption=n),t.push(e);var i=e.children;i&&i.length&&this._flatten(i,t,e),delete e.children}}),this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(vi["a"]),ax={path:null,compoundPath:null,group:et["a"],image:l["a"],text:ee["a"]},ox=jt["o"](),rx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.init=function(){this._elMap=b["createHashMap"]()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,i=this.group,a=e.get("z"),o=e.get("zlevel");b["each"](t,(function(t){var r=jt["e"](t.id,null),s=null!=r?n.get(r):null,l=jt["e"](t.parentId,null),c=null!=l?n.get(l):i,u=t.type,h=t.style;"text"===u&&h&&t.hv&&t.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);var d=t.textContent,p=t.textConfig;if(h&&ev(h,u,!!p,!!d)){var g=tv(h,u,!0);!p&&g.textConfig&&(p=t.textConfig=g.textConfig),!d&&g.textContent&&(d=g.textContent)}var f=hx(t);var y=t.$action||"merge",v="merge"===y,m="replace"===y;if(v){var b=!s,x=s;b?x=lx(r,c,t.type,n):(x&&(ox(x).isNew=!1),Cv(x)),x&&(hv(x,f,e,{isInit:b}),ux(x,t,a,o))}else if(m){cx(s,t,n,e);var _=lx(r,c,t.type,n);_&&(hv(_,f,e,{isInit:!0}),ux(_,t,a,o))}else"remove"===y&&(dv(s,t),cx(s,t,n,e));var O=n.get(r);if(O&&d)if(v){var S=O.getTextContent();S?S.attr(d):O.setTextContent(new ee["a"](d))}else m&&O.setTextContent(new ee["a"](d));if(O){var w=t.clipPath;if(w){var M=w.type,I=void 0;b=!1;if(v){var j=O.getClipPath();b=!j||ox(j).type!==M,I=b?sx(M):j}else m&&(b=!0,I=sx(M));O.setClipPath(I),hv(I,w,e,{isInit:b}),Tv(I,w.keyframeAnimation,e)}var A=ox(O);O.setTextConfig(p),A.option=t,dx(O,e,t),at["setTooltipConfig"]({el:O,componentModel:e,itemName:O.name,itemTooltipOption:t.tooltip}),Tv(O,t.keyframeAnimation,e)}}))}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,i=this.group,a=this._elMap,o=t.getWidth(),r=t.getHeight(),s=["x","y"],l=0;l<n.length;l++){var c=n[l],u=jt["e"](c.id,null),h=null!=u?a.get(u):null;if(h&&h.isGroup){var d=h.parent,p=d===i,g=ox(h),f=ox(d);g.width=Object(Bt["q"])(g.option.width,p?o:f.width)||0,g.height=Object(Bt["q"])(g.option.height,p?r:f.height)||0}}for(l=n.length-1;l>=0;l--){c=n[l],u=jt["e"](c.id,null),h=null!=u?a.get(u):null;if(h){d=h.parent,f=ox(d);var y=d===i?{width:o,height:r}:{width:f.width,height:f.height},v={},m=Ai["i"](h,c,y,null,{hv:c.hv,boundingMode:c.bounding},v);if(!ox(h).isNew&&m){for(var x=c.transition,_={},O=0;O<s.length;O++){var S=s[O],w=v[S];x&&(gv(x)||b["indexOf"](x,S)>=0)?_[S]=w:h[S]=w}Object(it["h"])(h,_,e,0)}else h.attr(v)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(n){cx(n,ox(n).option,t,e._lastGraphicModel)})),this._elMap=b["createHashMap"]()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(yi["a"]);function sx(e){var t=b["hasOwn"](ax,e)?ax[e]:at["getShapeClass"](e);var n=new t({});return ox(n).type=e,n}function lx(e,t,n,i){var a=sx(n);return t.add(a),i.set(e,a),ox(a).id=e,ox(a).isNew=!0,a}function cx(e,t,n,i){var a=e&&e.parent;a&&("group"===e.type&&e.traverse((function(e){cx(e,t,n,i)})),pv(e,t,i),n.removeKey(ox(e).id))}function ux(e,t,n,i){e.isGroup||b["each"]([["cursor",cr["c"].prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];b["hasOwn"](t,i)?e[i]=b["retrieve2"](t[i],n[1]):null==e[i]&&(e[i]=n[1])})),b["each"](b["keys"](t),(function(n){if(0===n.indexOf("on")){var i=t[n];e[n]=b["isFunction"](i)?i:null}})),b["hasOwn"](t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}function hx(e){return e=b["extend"]({},e),b["each"](["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Ai["a"]),(function(t){delete e[t]})),e}function dx(e,t,n){var i=Object(ot["a"])(e).eventData;e.silent||e.ignore||i||(i=Object(ot["a"])(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),i&&(i.info=n.info)}function px(e){e.registerComponentModel(ix),e.registerComponentView(rx),e.registerPreprocessor((function(e){var t=e.graphic;Object(b["isArray"])(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}))}var gx=["x","y","radius","angle","single"],fx=["cartesian2d","polar","singleAxis"];function yx(e){var t=e.get("coordinateSystem");return Object(b["indexOf"])(fx,t)>=0}function vx(e){return e+"Axis"}function mx(e,t){var n,i=Object(b["createHashMap"])(),a=[],o=Object(b["createHashMap"])();e.eachComponent({mainType:"dataZoom",query:t},(function(e){o.get(e.uid)||s(e)}));do{n=!1,e.eachComponent("dataZoom",r)}while(n);function r(e){!o.get(e.uid)&&l(e)&&(s(e),n=!0)}function s(e){o.set(e.uid,!0),a.push(e),c(e)}function l(e){var t=!1;return e.eachTargetAxis((function(e,n){var a=i.get(e);a&&a[n]&&(t=!0)})),t}function c(e){e.eachTargetAxis((function(e,t){(i.get(e)||i.set(e,[]))[t]=!0}))}return a}function bx(e){var t=e.ecModel,n={infoList:[],infoMap:Object(b["createHashMap"])()};return e.eachTargetAxis((function(e,i){var a=t.getComponent(vx(e),i);if(a){var o=a.getCoordSysModel();if(o){var r=o.uid,s=n.infoMap.get(r);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(r,s)),s.axisModels.push(a)}}})),n}var xx=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),_x=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return Object(Je["a"])(t,e),t.prototype.init=function(e,t,n){var i=Ox(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var t=Ox(e);Object(b["merge"])(this.option,e,!0),Object(b["merge"])(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;Object(b["each"])([["start","startValue"],["end","endValue"]],(function(e,i){"value"===this._rangePropMode[i]&&(t[e[0]]=n[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=Object(b["createHashMap"])(),n=this._fillSpecifiedTargetAxis(t);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each((function(e){e.indexList.length&&(this._noTarget=!1)}),this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return Object(b["each"])(gx,(function(n){var i=this.getReferringComponents(vx(n),jt["a"]);if(i.specified){t=!0;var a=new xx;Object(b["each"])(i.models,(function(e){a.add(e.componentIndex)})),e.set(n,a)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,i=!0;if(i){var a="vertical"===t?"y":"x",o=n.findComponents({mainType:a+"Axis"});r(o,a)}if(i){o=n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}});r(o,"single")}function r(t,n){var a=t[0];if(a){var o=new xx;if(o.add(a.componentIndex),e.set(n,o),i=!1,"x"===n||"y"===n){var r=a.getReferringComponents("grid",jt["b"]).models[0];r&&Object(b["each"])(t,(function(e){a.componentIndex!==e.componentIndex&&r===e.getReferringComponents("grid",jt["b"]).models[0]&&o.add(e.componentIndex)}))}}}i&&Object(b["each"])(gx,(function(t){if(i){var a=n.findComponents({mainType:vx(t),filter:function(e){return"category"===e.get("type",!0)}});if(a[0]){var o=new xx;o.add(a[0].componentIndex),e.set(t,o),i=!1}}}),this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis((function(t){!e&&(e=t)}),this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");Object(b["each"])([["start","startValue"],["end","endValue"]],(function(i,a){var o=null!=e[i[0]],r=null!=e[i[1]];o&&!r?t[a]="percent":!o&&r?t[a]="value":n?t[a]=n[a]:o&&(t[a]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,n){null==e&&(e=this.ecModel.getComponent(vx(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,i){Object(b["each"])(n.indexList,(function(n){e.call(t,i,n)}))}))},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(vx(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;Object(b["each"])([["start","startValue"],["end","endValue"]],(function(i){null==e[i[0]]&&null==e[i[1]]||(t[i[0]]=n[i[0]]=e[i[0]],t[i[1]]=n[i[1]]=e[i[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;Object(b["each"])(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var a=n[i],o=this._targetAxisInfoMap.get(a),r=0;r<o.indexList.length;r++){var s=this.getAxisProxy(a,o.indexList[r]);if(s.hostedBy(this))return s;t||(t=s)}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(vi["a"]);function Ox(e){var t={};return Object(b["each"])(["start","end","startValue","endValue","throttle"],(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}var Sx=_x,wx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.type="dataZoom.select",t}(Sx),Mx=wx,Ix=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.render=function(e,t,n,i){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type="dataZoom",t}(yi["a"]),jx=Ix,Ax=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.type="dataZoom.select",t}(jx),Cx=Ax,Tx=n("538f"),Dx=b["each"],Lx=Bt["c"],Px=function(){function e(e,t,n,i){this._dimName=e,this._axisIndex=t,this.ecModel=i,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries((function(t){if(yx(t)){var n=vx(this._dimName),i=t.getReferringComponents(n,jt["b"]).models[0];i&&this._axisIndex===i.componentIndex&&e.push(t)}}),this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return b["clone"](this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,n=this._dataExtent,i=this.getAxisModel(),a=i.axis.scale,o=this._dataZoomModel.getRangePropMode(),r=[0,100],s=[],l=[];Dx(["start","end"],(function(i,c){var u=e[i],h=e[i+"Value"];"percent"===o[c]?(null==u&&(u=r[c]),h=a.parse(Bt["m"](u,r,n))):(t=!0,h=null==h?n[c]:a.parse(h),u=Bt["m"](h,n,r)),l[c]=null==h||isNaN(h)?n[c]:h,s[c]=null==u||isNaN(u)?r[c]:u})),Lx(l),Lx(s);var c=this._minMaxSpan;function u(e,t,n,i,o){var r=o?"Span":"ValueSpan";Bh(0,e,n,"all",c["min"+r],c["max"+r]);for(var s=0;s<2;s++)t[s]=Bt["m"](e[s],n,i,!0),o&&(t[s]=a.parse(t[s]))}return t?u(l,s,n,r,!1):u(s,l,r,n,!0),{valueWindow:l,percentWindow:s}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=kx(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),a=e.get("filterMode"),o=this._valueWindow;"none"!==a&&Dx(i,(function(e){var t=e.getData(),i=t.mapDimensionsAll(n);if(i.length){if("weakFilter"===a){var s=t.getStore(),l=b["map"](i,(function(e){return t.getDimensionIndex(e)}),t);t.filterSelf((function(e){for(var t,n,a,r=0;r<i.length;r++){var c=s.get(l[r],e),u=!isNaN(c),h=c<o[0],d=c>o[1];if(u&&!h&&!d)return!0;u&&(a=!0),h&&(t=!0),d&&(n=!0)}return a&&t&&n}))}else Dx(i,(function(n){if("empty"===a)e.setData(t=t.map(n,(function(e){return r(e)?e:NaN})));else{var i={};i[n]=o,t.selectRange(i)}}));Dx(i,(function(e){t.setApproximateExtent(o,e)}))}}))}function r(e){return e>=o[0]&&e<=o[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;Dx(["min","max"],(function(i){var a=t.get(i+"Span"),o=t.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?a=Bt["m"](n[0]+o,n,[0,100],!0):null!=a&&(o=Bt["m"](a,[0,100],n,!0)-n[0]),e[i+"Span"]=a,e[i+"ValueSpan"]=o}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var i=Bt["g"](n,[0,500]);i=Math.min(i,20);var a=e.axis.scale.rawExtentInfo;0!==t[0]&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==t[1]&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},e}();function kx(e,t,n){var i=[1/0,-1/0];Dx(n,(function(e){Object(Pi["k"])(i,e.getData(),t)}));var a=e.getAxisModel(),o=Object(Tx["a"])(a.axis.scale,a,i).calculate();return[o.min,o.max]}var Nx=Px,Rx={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,a){var o=e.getComponent(vx(i),a);t(i,a,o,n)}))}))}t((function(e,t,n,i){n.__dzAxisProxy=null}));var n=[];t((function(t,i,a,o){a.__dzAxisProxy||(a.__dzAxisProxy=new Nx(t,i,o,e),n.push(a.__dzAxisProxy))}));var i=Object(b["createHashMap"])();return Object(b["each"])(n,(function(e){Object(b["each"])(e.getTargetSeriesModels(),(function(e){i.set(e.uid,e)}))})),i},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,n){e.getAxisProxy(t,n).reset(e)})),e.eachTargetAxis((function(n,i){e.getAxisProxy(n,i).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),i=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}},Vx=Rx;function Ex(e){e.registerAction("dataZoom",(function(e,t){var n=mx(t,e);Object(b["each"])(n,(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}var zx=!1;function Bx(e){zx||(zx=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,Vx),Ex(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function Gx(e){e.registerComponentModel(Mx),e.registerComponentView(Cx),Bx(e)}var Fx=function(){function e(){}return e}(),Hx={};function Wx(e,t){Hx[e]=t}function Yx(e){return Hx[e]}var Zx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;b["each"](this.option.feature,(function(e,n){var i=Yx(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),b["merge"](e,i.defaultOption))}))},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(vi["a"]),Xx=Zx,Ux=n("7919"),qx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Je["a"])(t,e),t.prototype.render=function(e,t,n,i){var a=this.group;if(a.removeAll(),e.get("show")){var o=+e.get("itemSize"),r="vertical"===e.get("orient"),s=e.get("feature")||{},l=this._features||(this._features={}),u=[];b["each"](s,(function(e,t){u.push(t)})),new al["a"](this._featureNames||[],u).add(h).update(h).remove(b["curry"](h,null)).execute(),this._featureNames=u,Ux["a"](a,e,n),a.add(Ux["b"](a.getBoundingRect(),e)),r||a.eachChild((function(e){var t=e.__title,i=e.ensureState("emphasis"),r=i.textConfig||(i.textConfig={}),s=e.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!b["isFunction"](l)&&t){var u=l.style||(l.style={}),h=c["d"](t,ee["a"].makeFont(u)),d=e.x+a.x,p=e.y+a.y+o,g=!1;p+h.height>n.getHeight()&&(r.position="top",g=!0);var f=g?-5-h.height:o+10;d+h.width/2>n.getWidth()?(r.position=["100%",f],u.align="right"):d-h.width/2<0&&(r.position=[0,f],u.align="left")}}))}function h(a,o){var r,c=u[a],h=u[o],p=s[c],g=new Da["a"](p,e,e.ecModel);if(i&&null!=i.newTitle&&i.featureName===c&&(p.title=i.newTitle),c&&!h){if(Jx(c))r={onclick:g.option.onclick,featureName:c};else{var f=Yx(c);if(!f)return;r=new f}l[c]=r}else if(r=l[h],!r)return;r.uid=Object(On["c"])("toolbox-feature"),r.model=g,r.ecModel=t,r.api=n;var y=r instanceof Fx;c||!h?!g.get("show")||y&&r.unusable?y&&r.remove&&r.remove(t,n):(d(g,r,c),g.setIconStatus=function(e,t){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,i[e]&&("emphasis"===t?rt["r"]:rt["C"])(i[e])},r instanceof Fx&&r.render&&r.render(g,t,n,i)):y&&r.dispose&&r.dispose(t,n)}function d(i,s,l){var c,u,h=i.getModel("iconStyle"),d=i.getModel(["emphasis","iconStyle"]),p=s instanceof Fx&&s.getIcons?s.getIcons():i.get("icon"),g=i.get("title")||{};b["isString"](p)?(c={},c[l]=p):c=p,b["isString"](g)?(u={},u[l]=g):u=g;var f=i.iconPaths={};b["each"](c,(function(l,c){var p=at["createIcon"](l,{},{x:-o/2,y:-o/2,width:o,height:o});p.setStyle(h.getItemStyle());var g=p.ensureState("emphasis");g.style=d.getItemStyle();var y=new ee["a"]({style:{text:u[c],align:d.get("textAlign"),borderRadius:d.get("textBorderRadius"),padding:d.get("textPadding"),fill:null},ignore:!0});p.setTextContent(y),at["setTooltipConfig"]({el:p,componentModel:e,itemName:c,formatterParamsExtra:{title:u[c]}}),p.__title=u[c],p.on("mouseover",(function(){var t=d.getItemStyle(),i=r?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";y.setStyle({fill:d.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:d.get("textBackgroundColor")}),p.setTextConfig({position:d.get("textPosition")||i}),y.ignore=!e.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",c])&&n.leaveEmphasis(this),y.hide()})),("emphasis"===i.get(["iconStatus",c])?rt["r"]:rt["C"])(p),a.add(p),p.on("click",b["bind"](s.onclick,s,t,n,c)),f[c]=p}))}},t.prototype.updateView=function(e,t,n,i){b["each"](this._features,(function(e){e instanceof Fx&&e.updateView&&e.updateView(e.model,t,n,i)}))},t.prototype.remove=function(e,t){b["each"](this._features,(function(n){n instanceof Fx&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){b["each"](this._features,(function(n){n instanceof Fx&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(yi["a"]);function Jx(e){return 0===e.indexOf("my")}var Kx=qx,$x=n("22d1"),Qx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Je["a"])(t,e),t.prototype.onclick=function(e,t){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",a="svg"===t.getZr().painter.getType(),o=a?"svg":n.get("type",!0)||"png",r=t.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=$x["a"].browser;if(Object(b["isFunction"])(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement("a");l.download=i+"."+o,l.target="_blank",l.href=r;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||a){var u=r.split(","),h=u[0].indexOf("base64")>-1,d=a?decodeURIComponent(u[1]):u[1];h&&(d=window.atob(d));var p=i+"."+o;if(window.navigator.msSaveOrOpenBlob){var g=d.length,f=new Uint8Array(g);while(g--)f[g]=d.charCodeAt(g);var y=new Blob([f]);window.navigator.msSaveOrOpenBlob(y,p)}else{var v=document.createElement("iframe");document.body.appendChild(v);var m=v.contentWindow,x=m.document;x.open("image/svg+xml","replace"),x.write(d),x.close(),m.focus(),x.execCommand("SaveAs",!0,p),document.body.removeChild(v)}}else{var _=n.get("lang"),O='<body style="margin:0;"><img src="'+r+'" style="max-width:100%;" title="'+(_&&_[0]||"")+'" /></body>',S=window.open();S.document.write(O),S.document.title=i}},t.getDefaultOption=function(e){var t={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return t},t}(Fx),e_=Qx,t_="__ec_magicType_stack__",n_=[["line","bar"],["stack"]],i_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Je["a"])(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return b["each"](e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n},t.getDefaultOption=function(e){var t={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return t},t.prototype.onclick=function(e,t,n){var i=this.model,a=i.get(["seriesIndex",n]);if(a_[n]){var o,r={series:[]},s=function(e){var t=e.subType,a=e.id,o=a_[n](t,a,e,i);o&&(b["defaults"](o,e.option),r.series.push(o));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var c=l.dim,u=c+"Axis",h=e.getReferringComponents(u,jt["b"]).models[0],d=h.componentIndex;r[u]=r[u]||[];for(var p=0;p<=d;p++)r[u][d]=r[u][d]||{};r[u][d].boundaryGap="bar"===n}}};b["each"](n_,(function(e){b["indexOf"](e,n)>=0&&b["each"](e,(function(e){i.setIconStatus(e,"normal")}))})),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==a?null:{seriesIndex:a}},s);var l=n;"stack"===n&&(o=b["merge"]({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(l="tiled")),t.dispatchAction({type:"changeMagicType",currentType:l,newOption:r,newTitle:o,featureName:"magicType"})}},t}(Fx),a_={line:function(e,t,n,i){if("bar"===e)return b["merge"]({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(e,t,n,i){if("line"===e)return b["merge"]({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(e,t,n,i){var a=n.get("stack")===t_;if("line"===e||"bar"===e)return i.setIconStatus("stack",a?"normal":"emphasis"),b["merge"]({id:t,stack:a?"":t_},i.get(["option","stack"])||{},!0)}};qa["m"]({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));var o_=i_,r_=new Array(60).join("-"),s_="\t";function l_(e){var t={},n=[],i=[];return e.eachRawSeries((function(e){var a=e.coordinateSystem;if(!a||"cartesian2d"!==a.type&&"polar"!==a.type)n.push(e);else{var o=a.getBaseAxis();if("category"===o.type){var r=o.dim+"_"+o.index;t[r]||(t[r]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),t[r].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:i}}function c_(e){var t=[];return b["each"](e,(function(e,n){var i=e.categoryAxis,a=e.valueAxis,o=a.dim,r=[" "].concat(b["map"](e.series,(function(e){return e.name}))),s=[i.model.getCategories()];b["each"](e.series,(function(e){var t=e.getRawData();s.push(e.getRawData().mapArray(t.mapDimension(o),(function(e){return e})))}));for(var l=[r.join(s_)],c=0;c<s[0].length;c++){for(var u=[],h=0;h<s.length;h++)u.push(s[h][c]);l.push(u.join(s_))}t.push(l.join("\n"))})),t.join("\n\n"+r_+"\n\n")}function u_(e){return b["map"](e,(function(e){var t=e.getRawData(),n=[e.name],i=[];return t.each(t.dimensions,(function(){for(var e=arguments.length,a=arguments[e-1],o=t.getName(a),r=0;r<e-1;r++)i[r]=arguments[r];n.push((o?o+s_:"")+i.join(s_))})),n.join("\n")})).join("\n\n"+r_+"\n\n")}function h_(e){var t=l_(e);return{value:b["filter"]([c_(t.seriesGroupByCategoryAxis),u_(t.other)],(function(e){return!!e.replace(/[\n\t\s]/g,"")})).join("\n\n"+r_+"\n\n"),meta:t.meta}}function d_(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function p_(e){var t=e.slice(0,e.indexOf("\n"));if(t.indexOf(s_)>=0)return!0}var g_=new RegExp("["+s_+"]+","g");function f_(e){for(var t=e.split(/\n+/g),n=d_(t.shift()).split(g_),i=[],a=b["map"](n,(function(e){return{name:e,data:[]}})),o=0;o<t.length;o++){var r=d_(t[o]).split(g_);i.push(r.shift());for(var s=0;s<r.length;s++)a[s]&&(a[s].data[o]=r[s])}return{series:a,categories:i}}function y_(e){for(var t=e.split(/\n+/g),n=d_(t.shift()),i=[],a=0;a<t.length;a++){var o=d_(t[a]);if(o){var r=o.split(g_),s="",l=void 0,c=!1;isNaN(r[0])?(c=!0,s=r[0],r=r.slice(1),i[a]={name:s,value:[]},l=i[a].value):l=i[a]=[];for(var u=0;u<r.length;u++)l.push(+r[u]);1===l.length&&(c?i[a].value=l[0]:i[a]=l[0])}}return{name:n,data:i}}function v_(e,t){var n=e.split(new RegExp("\n*"+r_+"\n*","g")),i={series:[]};return b["each"](n,(function(e,n){if(p_(e)){var a=f_(e),o=t[n],r=o.axisDim+"Axis";o&&(i[r]=i[r]||[],i[r][o.axisIndex]={data:a.categories},i.series=i.series.concat(a.series))}else{a=y_(e);i.series.push(a)}})),i}var m_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Je["a"])(t,e),t.prototype.onclick=function(e,t){setTimeout((function(){t.dispatchAction({type:"hideTip"})}));var n=t.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var a=document.createElement("div");a.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",a.style.backgroundColor=i.get("backgroundColor")||"#fff";var o=document.createElement("h4"),r=i.get("lang")||[];o.innerHTML=r[0]||i.get("title"),o.style.cssText="margin:10px 20px",o.style.color=i.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var c=i.get("optionToContent"),u=i.get("contentToOption"),h=h_(e);if(b["isFunction"](c)){var d=c(t.getOption());b["isString"](d)?s.innerHTML=d:b["isDom"](d)&&s.appendChild(d)}else{l.readOnly=i.get("readOnly");var p=l.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),l.value=h.value,s.appendChild(l)}var g=h.meta,f=document.createElement("div");f.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",v=document.createElement("div"),m=document.createElement("div");y+=";background-color:"+i.get("buttonColor"),y+=";color:"+i.get("buttonTextColor");var x=this;function _(){n.removeChild(a),x._dom=null}Object(Ua["a"])(v,"click",_),Object(Ua["a"])(m,"click",(function(){if(null==u&&null!=c||null!=u&&null==c)_();else{var e;try{e=b["isFunction"](u)?u(s,t.getOption()):v_(l.value,g)}catch(n){throw _(),new Error("Data view format error "+n)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),_()}})),v.innerHTML=r[1],m.innerHTML=r[2],m.style.cssText=v.style.cssText=y,!i.get("readOnly")&&f.appendChild(m),f.appendChild(v),a.appendChild(o),a.appendChild(s),a.appendChild(f),s.style.height=n.clientHeight-80+"px",n.appendChild(a),this._dom=a},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){var t={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return t},t}(Fx);function b_(e,t){return b["map"](e,(function(e,n){var i=t&&t[n];if(b["isObject"](i)&&!b["isArray"](i)){var a=b["isObject"](e)&&!b["isArray"](e);a||(e={value:e});var o=null!=i.name&&null==e.name;return e=b["defaults"](e,i),o&&delete e.name,e}return e}))}qa["m"]({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(e,t){var n=[];b["each"](e.newOption.series,(function(e){var i=t.getSeriesByName(e.name)[0];if(i){var a=i.get("data");n.push({name:e.name,data:b_(e.data,a)})}else n.push(b["extend"]({type:"scatter"},e))})),t.mergeOption(b["defaults"]({series:n},e.newOption))}));var x_=m_,__=b["each"],O_=Object(jt["o"])();function S_(e,t){var n=j_(e);__(t,(function(t,i){for(var a=n.length-1;a>=0;a--){var o=n[a];if(o[i])break}if(a<0){var r=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(r){var s=r.getPercentRange();n[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}})),n.push(t)}function w_(e){var t=j_(e),n=t[t.length-1];t.length>1&&t.pop();var i={};return __(n,(function(e,n){for(var a=t.length-1;a>=0;a--)if(e=t[a][n],e){i[n]=e;break}})),i}function M_(e){O_(e).snapshots=null}function I_(e){return j_(e).length}function j_(e){var t=O_(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var A_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Je["a"])(t,e),t.prototype.onclick=function(e,t){M_(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var t={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return t},t}(Fx);qa["m"]({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var C_=A_,T_=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],D_=function(){function e(e,t,n){var i=this;this._targetInfoList=[];var a=P_(t,e);Object(b["each"])(k_,(function(e,t){(!n||!n.include||Object(b["indexOf"])(n.include,t)>=0)&&e(a,i._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var i=V_[e.brushType](0,n,t);e.__rangeOffset={offset:z_[e.brushType](i.values,e.range,[1,1]),xyMinMax:i.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){Object(b["each"])(e,(function(e){var i=this.findTargetInfo(e,t);i&&!0!==i&&Object(b["each"])(i.coordSyses,(function(i){var a=V_[e.brushType](1,i,e.range,!0);n(e,a.values,i,t)}))}),this)},e.prototype.setInputRanges=function(e,t){Object(b["each"])(e,(function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&!0!==n){e.panelId=n.panelId;var i=V_[e.brushType](0,n.coordSys,e.coordRange),a=e.__rangeOffset;e.range=a?z_[e.brushType](i.values,a.offset,G_(i.xyMinMax,a.xyMinMax)):i.values}}),this)},e.prototype.makePanelOpts=function(e,t){return Object(b["map"])(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:np(i),isTargetByCursor:ap(i,e,n.coordSysModel),getLinearBrushOtherExtent:ip(i)}}))},e.prototype.controlSeries=function(e,t,n){var i=this.findTargetInfo(e,n);return!0===i||i&&Object(b["indexOf"])(i.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,i=P_(t,e),a=0;a<n.length;a++){var o=n[a],r=e.panelId;if(r){if(o.panelId===r)return o}else for(var s=0;s<N_.length;s++)if(N_[s](i,o))return o}return!0},e}();function L_(e){return e[0]>e[1]&&e.reverse(),e}function P_(e,t){return Object(jt["s"])(e,t,{includeMainTypes:T_})}var k_={grid:function(e,t){var n=e.xAxisModels,i=e.yAxisModels,a=e.gridModels,o=Object(b["createHashMap"])(),r={},s={};(n||i||a)&&(Object(b["each"])(n,(function(e){var t=e.axis.grid.model;o.set(t.id,t),r[t.id]=!0})),Object(b["each"])(i,(function(e){var t=e.axis.grid.model;o.set(t.id,t),s[t.id]=!0})),Object(b["each"])(a,(function(e){o.set(e.id,e),r[e.id]=!0,s[e.id]=!0})),o.each((function(e){var a=e.coordinateSystem,o=[];Object(b["each"])(a.getCartesians(),(function(e,t){(Object(b["indexOf"])(n,e.getAxis("x").model)>=0||Object(b["indexOf"])(i,e.getAxis("y").model)>=0)&&o.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:o[0],coordSyses:o,getPanelRect:R_.grid,xAxisDeclared:r[e.id],yAxisDeclared:s[e.id]})})))},geo:function(e,t){Object(b["each"])(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:R_.geo})}))}},N_=[function(e,t){var n=e.xAxisModel,i=e.yAxisModel,a=e.gridModel;return!a&&n&&(a=n.axis.grid.model),!a&&i&&(a=i.axis.grid.model),a&&a===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],R_={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(at["getTransform"](e)),t}},V_={lineX:Object(b["curry"])(E_,0),lineY:Object(b["curry"])(E_,1),rect:function(e,t,n,i){var a=e?t.pointToData([n[0][0],n[1][0]],i):t.dataToPoint([n[0][0],n[1][0]],i),o=e?t.pointToData([n[0][1],n[1][1]],i):t.dataToPoint([n[0][1],n[1][1]],i),r=[L_([a[0],o[0]]),L_([a[1],o[1]])];return{values:r,xyMinMax:r}},polygon:function(e,t,n,i){var a=[[1/0,-1/0],[1/0,-1/0]],o=Object(b["map"])(n,(function(n){var o=e?t.pointToData(n,i):t.dataToPoint(n,i);return a[0][0]=Math.min(a[0][0],o[0]),a[1][0]=Math.min(a[1][0],o[1]),a[0][1]=Math.max(a[0][1],o[0]),a[1][1]=Math.max(a[1][1],o[1]),o}));return{values:o,xyMinMax:a}}};function E_(e,t,n,i){var a=n.getAxis(["x","y"][e]),o=L_(Object(b["map"])([0,1],(function(e){return t?a.coordToData(a.toLocalCoord(i[e]),!0):a.toGlobalCoord(a.dataToCoord(i[e]))}))),r=[];return r[e]=o,r[1-e]=[NaN,NaN],{values:o,xyMinMax:r}}var z_={lineX:Object(b["curry"])(B_,0),lineY:Object(b["curry"])(B_,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return Object(b["map"])(e,(function(e,i){return[e[0]-n[0]*t[i][0],e[1]-n[1]*t[i][1]]}))}};function B_(e,t,n,i){return[t[0]-i[e]*n[0],t[1]-i[e]*n[1]]}function G_(e,t){var n=F_(e),i=F_(t),a=[n[0]/i[0],n[1]/i[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function F_(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var H_=D_,W_=n("2f1f"),Y_=b["each"],Z_=Object(jt["p"])("toolbox-dataZoom_"),X_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Je["a"])(t,e),t.prototype.render=function(e,t,n,i){this._brushController||(this._brushController=new tp(n.getZr()),this._brushController.on("brush",b["bind"](this._onBrush,this)).mount()),K_(e,t,this,i,n),J_(e,t)},t.prototype.onclick=function(e,t,n){U_[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},i=this.ecModel;this._brushController.updateCovers([]);var a=new H_(q_(this.model),i,{include:["grid"]});a.matchOutputRanges(t,i,(function(e,t,n){if("cartesian2d"===n.type){var i=e.brushType;"rect"===i?(o("x",n,t[0]),o("y",n,t[1])):o({lineX:"x",lineY:"y"}[i],n,t)}})),S_(i,n),this._dispatchZoomAction(n)}function o(e,t,a){var o=t.getAxis(e),s=o.model,l=r(e,s,i),c=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==c.minValueSpan&&null==c.maxValueSpan||(a=Bh(0,a.slice(),o.scale.getExtent(),0,c.minValueSpan,c.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:a[0],endValue:a[1]})}function r(e,t,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var a=n.getAxisModel(e,t.componentIndex);a&&(i=n)})),i}},t.prototype._dispatchZoomAction=function(e){var t=[];Y_(e,(function(e,n){t.push(b["clone"](e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){var t={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return t},t}(Fx),U_={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(w_(this.ecModel))}};function q_(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}function J_(e,t){e.setIconStatus("back",I_(t)>1?"emphasis":"normal")}function K_(e,t,n,i,a){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var r=new H_(q_(e),t,{include:["grid"]}),s=r.makePanelOpts(a,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}Object(W_["b"])("dataZoom",(function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var i=t.getModel(n),a=[],o=q_(i),r=Object(jt["s"])(e,o);return Y_(r.xAxisModels,(function(e){return s(e,"xAxis","xAxisIndex")})),Y_(r.yAxisModels,(function(e){return s(e,"yAxis","yAxisIndex")})),a}function s(e,t,n){var o=e.componentIndex,r={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:Z_+t+o};r[n]=o,a.push(r)}}));var $_=X_;function Q_(e){e.registerComponentModel(Xx),e.registerComponentView(Kx),Wx("saveAsImage",e_),Wx("magicType",o_),Wx("dataView",x_),Wx("dataZoom",$_),Wx("restore",C_),Object(i["a"])(Gx)}var eO=n("2da7"),tO=["rect","polygon","keep","clear"];function nO(e,t){var n=Object(jt["r"])(e?e.brush:[]);if(n.length){var i=[];b["each"](n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(i=i.concat(t))}));var a=e&&e.toolbox;b["isArray"](a)&&(a=a[0]),a||(a={feature:{}},e.toolbox=[a]);var o=a.feature||(a.feature={}),r=o.brush||(o.brush={}),s=r.type||(r.type=[]);s.push.apply(s,i),iO(s),t&&!s.length&&s.push.apply(s,tO)}}function iO(e){var t={};b["each"](e,(function(e){t[e]=1})),e.length=0,b["each"](t,(function(t,n){e.push(n)}))}var aO=n("0924"),oO=b["each"];function rO(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function sO(e,t,n){var i={};return oO(t,(function(t){var o=i[t]=a();oO(e[t],(function(e,i){if(ql.isValidType(i)){var a={type:i,visual:e};n&&n(a,t),o[i]=new ql(a),"opacity"===i&&(a=b["clone"](a),a.type="colorAlpha",o.__hidden.__alphaForOpacity=new ql(a))}}))})),i;function a(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}}function lO(e,t,n){var i;b["each"](n,(function(e){t.hasOwnProperty(e)&&rO(t[e])&&(i=!0)})),i&&b["each"](n,(function(n){t.hasOwnProperty(n)&&rO(t[n])?e[n]=b["clone"](t[n]):delete e[n]}))}function cO(e,t,n,i,a,o){var r,s={};function l(e){return Object(aO["a"])(n,r,e)}function c(e,t){Object(aO["c"])(n,r,e,t)}function u(e,u){r=null==o?e:u;var h=n.getRawDataItem(r);if(!h||!1!==h.visualMap)for(var d=i.call(a,e),p=t[d],g=s[d],f=0,y=g.length;f<y;f++){var v=g[f];p[v]&&p[v].applyVisual(e,l,c)}}b["each"](e,(function(e){var n=ql.prepareVisualTypes(t[e]);s[e]=n})),null==o?n.each(u):n.each([o],u)}function uO(e,t,n,i){var a={};return b["each"](e,(function(e){var n=ql.prepareVisualTypes(t[e]);a[e]=n})),{progress:function(e,o){var r,s;function l(e){return Object(aO["a"])(o,s,e)}function c(e,t){Object(aO["c"])(o,s,e,t)}null!=i&&(r=o.getDimensionIndex(i));var u=o.getStore();while(null!=(s=e.next())){var h=o.getRawDataItem(s);if(!h||!1!==h.visualMap)for(var d=null!=i?u.get(r,s):s,p=n(d),g=t[p],f=a[p],y=0,v=f.length;y<v;y++){var m=f[y];g[m]&&g[m].applyVisual(d,l,c)}}}}}var hO=n("0655");function dO(e){var t=e.brushType,n={point:function(i){return pO[t].point(i,n,e)},rect:function(i){return pO[t].rect(i,n,e)}};return n}var pO={lineX:gO(0),lineY:gO(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&hO["a"](n.range,e[0],e[1])},rect:function(e,t,n){var i=n.range;if(!e||i.length<=1)return!1;var a=e.x,o=e.y,r=e.width,s=e.height,l=i[0];return!!(hO["a"](i,a,o)||hO["a"](i,a+r,o)||hO["a"](i,a,o+s)||hO["a"](i,a+r,o+s)||li["a"].create(e).contain(l[0],l[1])||Object(at["linePolygonIntersect"])(a,o,a+r,o,i)||Object(at["linePolygonIntersect"])(a,o,a,o+s,i)||Object(at["linePolygonIntersect"])(a+r,o,a+r,o+s,i)||Object(at["linePolygonIntersect"])(a,o+s,a+r,o+s,i))||void 0}}};function gO(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,i){if(t){var a=i.range,o=t[e];return fO(o,a)}},rect:function(i,a,o){if(i){var r=o.range,s=[i[t[e]],i[t[e]]+i[n[e]]];return s[1]<s[0]&&s.reverse(),fO(s[0],r)||fO(s[1],r)||fO(r[0],s)||fO(r[1],s)}}}}function fO(e,t){return t[0]<=e&&e<=t[1]}var yO=["inBrush","outOfBrush"],vO="__ecBrushSelect",mO="__ecInBrushSelectEvent";function bO(e){e.eachComponent({mainType:"brush"},(function(t){var n=t.brushTargetManager=new H_(t.option,e);n.setInputRanges(t.areas,e)}))}function xO(e,t,n){var i,a,o=[];e.eachComponent({mainType:"brush"},(function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),bO(e),e.eachComponent({mainType:"brush"},(function(t,n){var r={brushId:t.id,brushIndex:n,brushName:t.name,areas:b["clone"](t.areas),selected:[]};o.push(r);var s=t.option,l=s.brushLink,c=[],u=[],h=[],d=!1;n||(i=s.throttleType,a=s.throttleDelay);var p=b["map"](t.areas,(function(e){var t=MO[e.brushType],n=b["defaults"]({boundingRect:t?t(e):void 0},e);return n.selectors=dO(n),n})),g=sO(t.option,yO,(function(e){e.mappingMethod="fixed"}));function f(e){return"all"===l||!!c[e]}function y(e){return!!e.length}function v(e,t){var n=e.coordinateSystem;d=d||n.hasAxisBrushed(),f(t)&&n.eachActiveState(e.getData(),(function(e,t){"active"===e&&(u[t]=1)}))}function m(n,i,a){if(n.brushSelector&&!wO(t,i)&&(b["each"](p,(function(i){t.brushTargetManager.controlSeries(i,n,e)&&a.push(i),d=d||y(a)})),f(i)&&y(a))){var o=n.getData();o.each((function(e){SO(n,a,o,e)&&(u[e]=1)}))}}b["isArray"](l)&&b["each"](l,(function(e){c[e]=1})),e.eachSeries((function(e,t){var n=h[t]=[];"parallel"===e.subType?v(e,t):m(e,t,n)})),e.eachSeries((function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};r.selected.push(n);var i=h[t],a=e.getData(),o=f(t)?function(e){return u[e]?(n.dataIndex.push(a.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(t){return SO(e,i,a,t)?(n.dataIndex.push(a.getRawIndex(t)),"inBrush"):"outOfBrush"};(f(t)?d:y(i))&&cO(yO,g,a,o)}))})),_O(t,i,a,o,n)}function _O(e,t,n,i,a){if(a){var o=e.getZr();if(!o[mO]){o[vO]||(o[vO]=OO);var r=Mn["b"](o,vO,n,t);r(e,i)}}}function OO(e,t){if(!e.isDisposed()){var n=e.getZr();n[mO]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[mO]=!1}}function SO(e,t,n,i){for(var a=0,o=t.length;a<o;a++){var r=t[a];if(e.brushSelector(i,n,r.selectors,r))return!0}}function wO(e,t){var n=e.option.seriesIndex;return null!=n&&"all"!==n&&(b["isArray"](n)?b["indexOf"](n,t)<0:t!==n)}var MO={rect:function(e){return IO(e.range)},polygon:function(e){for(var t,n=e.range,i=0,a=n.length;i<a;i++){t=t||[[1/0,-1/0],[1/0,-1/0]];var o=n[i];o[0]<t[0][0]&&(t[0][0]=o[0]),o[0]>t[0][1]&&(t[0][1]=o[0]),o[1]<t[1][0]&&(t[1][0]=o[1]),o[1]>t[1][1]&&(t[1][1]=o[1])}return t&&IO(t)}};function IO(e){return new li["a"](e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var jO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new tp(t.getZr())).on("brush",b["bind"](this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,i){this.model=e,this._updateController(e,t,n,i)},t.prototype.updateTransform=function(e,t,n,i){bO(t),this._updateController(e,t,n,i)},t.prototype.updateVisual=function(e,t,n,i){this.updateTransform(e,t,n,i)},t.prototype.updateView=function(e,t,n,i){this._updateController(e,t,n,i)},t.prototype._updateController=function(e,t,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:b["clone"](n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:b["clone"](n),$from:t})},t.type="brush",t}(yi["a"]),AO=jO,CO="#ddd",TO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return Object(Je["a"])(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&lO(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:CO},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=b["map"](e,(function(e){return DO(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=DO(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(vi["a"]);function DO(e,t){return b["merge"]({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Da["a"](e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var LO=TO,PO=["rect","polygon","lineX","lineY","keep","clear"],kO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Je["a"])(t,e),t.prototype.render=function(e,t,n){var i,a,o;t.eachComponent({mainType:"brush"},(function(e){i=e.brushType,a=e.brushOption.brushMode||"single",o=o||!!e.areas.length})),this._brushType=i,this._brushMode=a,b["each"](e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===a:"clear"===t?o:t===i)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return b["each"](e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},t.prototype.onclick=function(e,t,n){var i=this._brushType,a=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===a?"single":"multiple":a}})},t.getDefaultOption=function(e){var t={show:!0,type:PO.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return t},t}(Fx),NO=kO;function RO(e){e.registerComponentView(AO),e.registerComponentModel(LO),e.registerPreprocessor(nO),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,xO),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},b["noop"]),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},b["noop"]),Wx("brush",NO)}var VO=n("9394"),EO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return Object(Je["a"])(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,n=t.data||[],i=t.axisType,a=this._names=[];"category"===i?(e=[],Object(b["each"])(n,(function(t,n){var i,o=Object(jt["e"])(Object(jt["h"])(t),"");Object(b["isObject"])(t)?(i=Object(b["clone"])(t),i.value=n):i=n,e.push(i),a.push(o)}))):e=n;var o={category:"ordinal",time:"time",value:"number"}[i]||"number",r=this._data=new Ds["a"]([{name:"value",type:o}],this);r.initData(e,a)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(vi["a"]),zO=EO,BO=n("38a2"),GO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.type="timeline.slider",t.defaultOption=Object(On["d"])(zO.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(zO);Object(b["mixin"])(GO,BO["a"].prototype);var FO=GO,HO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.type="timeline",t}(yi["a"]),WO=HO,YO=function(e){function t(t,n,i,a){var o=e.call(this,t,n,i)||this;return o.type=a||"value",o}return Object(Je["a"])(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(Gi["a"]),ZO=YO,XO=n("18c0"),UO=n("216a"),qO=Math.PI,JO=Object(jt["o"])(),KO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),a=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),r=this._axis=this._createAxis(i,e);e.formatTooltip=function(e){var t=r.scale.getLabel({value:e});return Object(Aa["c"])("nameValue",{noName:!0,value:t})},Object(b["each"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](i,a,r,e)}),this),this._renderAxisLabel(i,o,r,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,i=e.get(["label","position"]),a=e.get("orient"),o=QO(e,t);n=null==i||"auto"===i?"horizontal"===a?o.y+o.height/2<t.getHeight()/2?"-":"+":o.x+o.width/2<t.getWidth()/2?"+":"-":Object(b["isString"])(i)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][i]:i;var r,s,l,c={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},u={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:qO/2},d="vertical"===a?o.height:o.width,p=e.getModel("controlStyle"),g=p.get("show",!0),f=g?p.get("itemSize"):0,y=g?p.get("itemGap"):0,v=f+y,m=e.get(["label","rotate"])||0;m=m*qO/180;var x=p.get("position",!0),_=g&&p.get("showPlayBtn",!0),O=g&&p.get("showPrevBtn",!0),S=g&&p.get("showNextBtn",!0),w=0,M=d;"left"===x||"bottom"===x?(_&&(r=[0,0],w+=v),O&&(s=[w,0],w+=v),S&&(l=[M-f,0],M-=v)):(_&&(r=[M-f,0],M-=v),O&&(s=[0,0],w+=v),S&&(l=[M-f,0],M-=v));var I=[w,M];return e.get("inverse")&&I.reverse(),{viewRect:o,mainLength:d,orient:a,rotation:h[a],labelRotation:m,labelPosOpt:n,labelAlign:e.get(["label","align"])||c[a],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[a],playPosition:r,prevBtnPosition:s,nextBtnPosition:l,axisExtent:I,controlSize:f,controlGap:y}},t.prototype._position=function(e,t){var n=this._mainGroup,i=this._labelGroup,a=e.viewRect;if("vertical"===e.orient){var o=Ni["create"](),r=a.x,s=a.y+a.height;Ni["translate"](o,o,[-r,-s]),Ni["rotate"](o,o,-qO/2),Ni["translate"](o,o,[r,s]),a=a.clone(),a.applyTransform(o)}var l=y(a),c=y(n.getBoundingRect()),u=y(i.getBoundingRect()),h=[n.x,n.y],d=[i.x,i.y];d[0]=h[0]=l[0][0];var p=e.labelPosOpt;if(null==p||Object(b["isString"])(p)){var g="+"===p?0:1;v(h,c,l,1,g),v(d,u,l,1,1-g)}else{g=p>=0?0:1;v(h,c,l,1,g),d[1]=h[1]+p}function f(e){e.originX=l[0][0]-e.x,e.originY=l[1][0]-e.y}function y(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function v(e,t,n,i,a){e[i]+=n[i][a]-t[i][a]}n.setPosition(h),i.setPosition(d),n.rotation=i.rotation=e.rotation,f(n),f(i)},t.prototype._createAxis=function(e,t){var n=t.getData(),i=t.get("axisType"),a=$O(t,i);a.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var o=n.getDataExtent("value");a.setExtent(o[0],o[1]),a.calcNiceTicks();var r=new ZO("value",a,e.axisExtent,i);return r.model=t,r},t.prototype._createGroup=function(e){var t=this[e]=new et["a"];return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,i){var a=n.getExtent();if(i.get(["lineStyle","show"])){var o=new ta["a"]({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:Object(b["extend"])({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(o);var r=this._progressLine=new ta["a"]({shape:{x1:a[0],x2:this._currentPointer?this._currentPointer.x:a[0],y1:0,y2:0},style:Object(b["defaults"])({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(r)}},t.prototype._renderAxisTick=function(e,t,n,i){var a=this,o=i.getData(),r=n.scale.getTicks();this._tickSymbols=[],Object(b["each"])(r,(function(e){var r=n.dataToCoord(e.value),s=o.getItemModel(e.value),l=s.getModel("itemStyle"),c=s.getModel(["emphasis","itemStyle"]),u=s.getModel(["progress","itemStyle"]),h={x:r,y:0,onclick:Object(b["bind"])(a._changeTimeline,a,e.value)},d=tS(s,l,t,h);d.ensureState("emphasis").style=c.getItemStyle(),d.ensureState("progress").style=u.getItemStyle(),Object(rt["o"])(d);var p=Object(ot["a"])(d);s.get("tooltip")?(p.dataIndex=e.value,p.dataModel=i):p.dataIndex=p.dataModel=null,a._tickSymbols.push(d)}))},t.prototype._renderAxisLabel=function(e,t,n,i){var a=this,o=n.getLabelModel();if(o.get("show")){var r=i.getData(),s=n.getViewLabels();this._tickLabels=[],Object(b["each"])(s,(function(i){var o=i.tickValue,s=r.getItemModel(o),l=s.getModel("label"),c=s.getModel(["emphasis","label"]),u=s.getModel(["progress","label"]),h=n.dataToCoord(i.tickValue),d=new ee["a"]({x:h,y:0,rotation:e.labelRotation-e.rotation,onclick:Object(b["bind"])(a._changeTimeline,a,o),silent:!1,style:Object(ut["c"])(l,{text:i.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});d.ensureState("emphasis").style=Object(ut["c"])(c),d.ensureState("progress").style=Object(ut["c"])(u),t.add(d),Object(rt["o"])(d),JO(d).dataIndex=o,a._tickLabels.push(d)}))}},t.prototype._renderControl=function(e,t,n,i){var a=e.controlSize,o=e.rotation,r=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function h(e,n,l,u){if(e){var h=Object(c["g"])(Object(b["retrieve2"])(i.get(["controlStyle",n+"BtnSize"]),a),a),d=[0,-h/2,h,h],p=eS(i,n+"Icon",d,{x:e[0],y:e[1],originX:a/2,originY:0,rotation:u?-o:0,rectHover:!0,style:r,onclick:l});p.ensureState("emphasis").style=s,t.add(p),Object(rt["o"])(p)}}h(e.nextBtnPosition,"next",Object(b["bind"])(this._changeTimeline,this,u?"-":"+")),h(e.prevBtnPosition,"prev",Object(b["bind"])(this._changeTimeline,this,u?"+":"-")),h(e.playPosition,l?"stop":"play",Object(b["bind"])(this._handlePlayClick,this,!l),!0)},t.prototype._renderCurrentPointer=function(e,t,n,i){var a=i.getData(),o=i.getCurrentIndex(),r=a.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(e){e.draggable=!0,e.drift=Object(b["bind"])(s._handlePointerDrag,s),e.ondragend=Object(b["bind"])(s._handlePointerDragend,s),nS(e,s._progressLine,o,n,i,!0)},onUpdate:function(e){nS(e,s._progressLine,o,n,i)}};this._currentPointer=tS(r,r,this._mainGroup,{},this._currentPointer,l)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],i=this._axis,a=Bt["c"](i.getExtent().slice());n>a[1]&&(n=a[1]),n<a[0]&&(n=a[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var o=this._progressLine;o&&(o.shape.x2=n,o.dirty());var r=this._findNearestTick(n),s=this.model;(t||r!==s.getCurrentIndex()&&s.get("realtime"))&&this._changeTimeline(r)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var t=this._mainGroup.getLocalTransform();return at["applyTransform"](e,t,!0)},t.prototype._findNearestTick=function(e){var t,n=this.model.getData(),i=1/0,a=this._axis;return n.each(["value"],(function(n,o){var r=a.dataToCoord(n),s=Math.abs(r-e);s<i&&(i=s,t=o)})),t},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var i=0;i<t.length;i++)t&&t[i]&&t[i].toggleState("progress",i<e);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",JO(n[i]).dataIndex<=e)},t.type="timeline.slider",t}(WO);function $O(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new XO["a"]({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new UO["a"]({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new Zi["a"]}}function QO(e,t){return Ai["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function eS(e,t,n,i){var a=i.style,o=at["createIcon"](e.get(["controlStyle",t]),i||{},new li["a"](n[0],n[1],n[2],n[3]));return a&&o.setStyle(a),o}function tS(e,t,n,i,a,o){var r=t.get("color");if(a)a.setColor(r),n.add(a),o&&o.onUpdate(a);else{var s=e.get("symbol");a=Object(Qe["a"])(s,-1,-1,2,2,r),a.setStyle("strokeNoScale",!0),n.add(a),o&&o.onCreate(a)}var l=t.getItemStyle(["color"]);a.setStyle(l),i=Object(b["merge"])({rectHover:!0,z2:100},i,!0);var c=Object(Qe["c"])(e.get("symbolSize"));i.scaleX=c[0]/2,i.scaleY=c[1]/2;var u=Object(Qe["b"])(e.get("symbolOffset"),c);u&&(i.x=(i.x||0)+u[0],i.y=(i.y||0)+u[1]);var h=e.get("symbolRotate");return i.rotation=(h||0)*Math.PI/180||0,a.attr(i),a.updateTransform(),a}function nS(e,t,n,i,a,o){if(!e.dragging){var r=a.getModel("checkpointStyle"),s=i.dataToCoord(a.getData().get("value",n));if(o||!r.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:r.get("animationDuration",!0),easing:r.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}var iS=KO;function aS(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(e,t,n){var i=t.getComponent("timeline");return i&&null!=e.currentIndex&&(i.setCurrentIndex(e.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),Object(b["defaults"])({currentIndex:i.option.currentIndex},e)})),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(e,t){var n=t.getComponent("timeline");n&&null!=e.playState&&n.setPlayState(e.playState)}))}function oS(e){var t=e&&e.timeline;b["isArray"](t)||(t=t?[t]:[]),b["each"](t,(function(e){e&&rS(e)}))}function rS(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),sS(e),lS(e,"controlPosition")){var i=e.controlStyle||(e.controlStyle={});lS(i,"position")||(i.position=e.controlPosition),"none"!==i.position||lS(i,"show")||(i.show=!1,delete i.position),delete e.controlPosition}b["each"](e.data||[],(function(e){b["isObject"](e)&&!b["isArray"](e)&&(!lS(e,"value")&&lS(e,"name")&&(e.value=e.name),sS(e))}))}function sS(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),i=e.label||e.label||{},a=i.normal||(i.normal={}),o={normal:1,emphasis:1};b["each"](i,(function(e,t){o[t]||lS(a,t)||(a[t]=e)})),n.label&&!lS(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function lS(e,t){return e.hasOwnProperty(t)}function cS(e){e.registerComponentModel(FO),e.registerComponentView(iS),e.registerSubTypeDefaulter("timeline",(function(){return"slider"})),aS(e),e.registerPreprocessor(oS)}function uS(e,t){if(!e)return!1;for(var n=Object(b["isArray"])(e)?e:[e],i=0;i<n.length;i++)if(n[i]&&n[i][t])return!0;return!1}function hS(e){Object(jt["f"])(e,"label",["show"])}var dS=Object(jt["o"])(),pS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return Object(Je["a"])(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if($x["a"].node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,i){var a=this.mainType;n||t.eachSeries((function(e){var n=e.get(this.mainType,!0),o=dS(e)[a];n&&n.data?(o?o._mergeOption(n,t,!0):(i&&hS(n),b["each"](n.data,(function(e){e instanceof Array?(hS(e[0]),hS(e[1])):hS(e)})),o=this.createMarkerModelFromSeries(n,this,t),b["extend"](o,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),o.__hostSeries=e),dS(e)[a]=o):dS(e)[a]=null}),this)},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),a=this.getRawValue(e),o=i.getName(e);return Object(Aa["c"])("section",{header:this.name,blocks:[Object(Aa["c"])("nameValue",{name:o,value:a,noName:!o,noValue:null==a})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.getMarkerModelFromSeries=function(e,t){return dS(e)[t]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(vi["a"]);b["mixin"](pS,BO["a"].prototype);var gS=pS,fS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(gS),yS=fS,vS=n("b7d9");function mS(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function bS(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function xS(e,t,n,i,a,o){var r=[],s=Object(bt["c"])(t,i),l=s?t.getCalculationInfo("stackResultDimension"):i,c=AS(t,l,e),u=t.indicesOfNearest(l,c)[0];r[a]=t.get(n,u),r[o]=t.get(l,u);var h=t.get(i,u),d=Bt["h"](t.get(i,u));return d=Math.min(d,20),d>=0&&(r[o]=+r[o].toFixed(d)),[r,h]}var _S={min:Object(b["curry"])(xS,"min"),max:Object(b["curry"])(xS,"max"),average:Object(b["curry"])(xS,"average"),median:Object(b["curry"])(xS,"median")};function OS(e,t){if(t){var n=e.getData(),i=e.coordinateSystem,a=i.dimensions;if(!bS(t)&&!Object(b["isArray"])(t.coord)&&i){var o=SS(t,n,i,e);if(t=Object(b["clone"])(t),t.type&&_S[t.type]&&o.baseAxis&&o.valueAxis){var r=Object(b["indexOf"])(a,o.baseAxis.dim),s=Object(b["indexOf"])(a,o.valueAxis.dim),l=_S[t.type](n,o.baseDataDim,o.valueDataDim,r,s);t.coord=l[0],t.value=l[1]}else t.coord=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis]}if(null==t.coord)t.coord=[];else for(var c=t.coord,u=0;u<2;u++)_S[c[u]]&&(c[u]=AS(n,n.mapDimension(a[u]),c[u]));return t}}function SS(e,t,n,i){var a={};return null!=e.valueIndex||null!=e.valueDim?(a.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,a.valueAxis=n.getAxis(wS(i,a.valueDataDim)),a.baseAxis=n.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=i.getBaseAxis(),a.valueAxis=n.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function wS(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function MS(e,t){return!(e&&e.containData&&t.coord&&!mS(t))||e.containData(t.coord)}function IS(e,t,n){return!(e&&e.containZone&&t.coord&&n.coord&&!mS(t)&&!mS(n))||e.containZone(t.coord,n.coord)}function jS(e,t){return e?function(e,n,i,a){var o=a<2?e.coord&&e.coord[a]:e.value;return Object(vS["d"])(o,t[a])}:function(e,n,i,a){return Object(vS["d"])(e.value,t[a])}}function AS(e,t,n){if("average"===n){var i=0,a=0;return e.each(t,(function(e,t){isNaN(e)||(i+=e,a++)})),i/a}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var CS=Object(jt["o"])(),TS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.init=function(){this.markerGroupMap=Object(b["createHashMap"])()},t.prototype.render=function(e,t,n){var i=this,a=this.markerGroupMap;a.each((function(e){CS(e).keep=!1})),t.eachSeries((function(e){var a=gS.getMarkerModelFromSeries(e,i.type);a&&i.renderSeries(e,a,t,n)})),a.each((function(e){!CS(e).keep&&i.group.remove(e.group)}))},t.prototype.markKeep=function(e){CS(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;Object(b["each"])(e,(function(e){var i=gS.getMarkerModelFromSeries(e,n.type);if(i){var a=i.getData();a.eachItemGraphicEl((function(e){e&&(t?Object(rt["q"])(e):Object(rt["B"])(e))}))}}))},t.type="marker",t}(yi["a"]),DS=TS;function LS(e,t,n){var i=t.coordinateSystem;e.each((function(a){var o,r=e.getItemModel(a),s=Bt["q"](r.get("x"),n.getWidth()),l=Bt["q"](r.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,a));else if(i){var c=e.get(i.dimensions[0],a),u=e.get(i.dimensions[1],a);o=i.dataToPoint([c,u])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(a,o)}))}var PS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=gS.getMarkerModelFromSeries(e,"markPoint");t&&(LS(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,i){var a=e.coordinateSystem,o=e.id,r=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new mt),c=kS(a,e,t);t.setData(c),LS(t.getData(),e,i),c.each((function(e){var n=c.getItemModel(e),i=n.getShallow("symbol"),a=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Object(b["isFunction"])(i)||Object(b["isFunction"])(a)||Object(b["isFunction"])(o)||Object(b["isFunction"])(s)){var u=t.getRawValue(e),h=t.getDataParams(e);Object(b["isFunction"])(i)&&(i=i(u,h)),Object(b["isFunction"])(a)&&(a=a(u,h)),Object(b["isFunction"])(o)&&(o=o(u,h)),Object(b["isFunction"])(s)&&(s=s(u,h))}var d=n.getModel("itemStyle").getItemStyle(),p=Object(aO["b"])(r,"color");d.fill||(d.fill=p),c.setItemVisual(e,{symbol:i,symbolSize:a,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:d})})),l.updateData(c),this.group.add(l.group),c.eachItemGraphicEl((function(e){e.traverse((function(e){Object(ot["a"])(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(DS);function kS(e,t,n){var i;i=e?Object(b["map"])(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(b["extend"])(Object(b["extend"])({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var a=new Ds["a"](i,n),o=Object(b["map"])(n.get("data"),Object(b["curry"])(OS,t));e&&(o=Object(b["filter"])(o,Object(b["curry"])(MS,e)));var r=jS(!!e,i);return a.initData(o,null,r),a}var NS=PS;function RS(e){e.registerComponentModel(yS),e.registerComponentView(NS),e.registerPreprocessor((function(e){uS(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))}var VS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(gS),ES=VS,zS=Object(jt["o"])(),BS=function(e,t,n,i){var a,o=e.getData();if(Object(b["isArray"])(i))a=i;else{var r=i.type;if("min"===r||"max"===r||"average"===r||"median"===r||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=t.getAxis(null!=i.yAxis?"y":"x"),l=Object(b["retrieve"])(i.yAxis,i.xAxis);else{var c=SS(i,o,t,e);s=c.valueAxis;var u=Object(bt["b"])(o,c.valueDataDim);l=AS(o,u,r)}var h="x"===s.dim?0:1,d=1-h,p=Object(b["clone"])(i),g={coord:[]};p.type=null,p.coord=[],p.coord[d]=-1/0,g.coord[d]=1/0;var f=n.get("precision");f>=0&&Object(b["isNumber"])(l)&&(l=+l.toFixed(Math.min(f,20))),p.coord[h]=g.coord[h]=l,a=[p,g,{type:r,valueIndex:i.valueIndex,value:l}]}else a=[]}var y=[OS(e,a[0]),OS(e,a[1]),Object(b["extend"])({},a[2])];return y[2].type=y[2].type||null,Object(b["merge"])(y[2],y[0]),Object(b["merge"])(y[2],y[1]),y};function GS(e){return!isNaN(e)&&!isFinite(e)}function FS(e,t,n,i){var a=1-e,o=i.dimensions[e];return GS(t[a])&&GS(n[a])&&t[e]===n[e]&&i.getAxis(o).containData(t[e])}function HS(e,t){if("cartesian2d"===e.type){var n=t[0].coord,i=t[1].coord;if(n&&i&&(FS(1,n,i,e)||FS(0,n,i,e)))return!0}return MS(e,t[0])&&MS(e,t[1])}function WS(e,t,n,i,a){var o,r=i.coordinateSystem,s=e.getItemModel(t),l=Bt["q"](s.get("x"),a.getWidth()),c=Bt["q"](s.get("y"),a.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition)o=i.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=r.dimensions,h=e.get(u[0],t),d=e.get(u[1],t);o=r.dataToPoint([h,d])}if(Wt(r,"cartesian2d")){var p=r.getAxis("x"),g=r.getAxis("y");u=r.dimensions;GS(e.get(u[0],t))?o[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):GS(e.get(u[1],t))&&(o[1]=g.toGlobalCoord(g.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(c)||(o[1]=c)}else o=[l,c];e.setItemLayout(t,o)}var YS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=gS.getMarkerModelFromSeries(e,"markLine");if(t){var i=t.getData(),a=zS(t).from,o=zS(t).to;a.each((function(t){WS(a,t,!0,e,n),WS(o,t,!1,e,n)})),i.each((function(e){i.setItemLayout(e,[a.getItemLayout(e),o.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,i){var a=e.coordinateSystem,o=e.id,r=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new Su);this.group.add(l.group);var c=ZS(a,e,t),u=c.from,h=c.to,d=c.line;zS(t).from=u,zS(t).to=h,t.setData(d);var p=t.get("symbol"),g=t.get("symbolSize"),f=t.get("symbolRotate"),y=t.get("symbolOffset");function v(t,n,a){var o=t.getItemModel(n);WS(t,n,a,e,i);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Object(aO["b"])(r,"color")),t.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:Object(b["retrieve2"])(o.get("symbolOffset",!0),y[a?0:1]),symbolRotate:Object(b["retrieve2"])(o.get("symbolRotate",!0),f[a?0:1]),symbolSize:Object(b["retrieve2"])(o.get("symbolSize"),g[a?0:1]),symbol:Object(b["retrieve2"])(o.get("symbol",!0),p[a?0:1]),style:s})}Object(b["isArray"])(p)||(p=[p,p]),Object(b["isArray"])(g)||(g=[g,g]),Object(b["isArray"])(f)||(f=[f,f]),Object(b["isArray"])(y)||(y=[y,y]),c.from.each((function(e){v(u,e,!0),v(h,e,!1)})),d.each((function(e){var t=d.getItemModel(e).getModel("lineStyle").getLineStyle();d.setItemLayout(e,[u.getItemLayout(e),h.getItemLayout(e)]),null==t.stroke&&(t.stroke=u.getItemVisual(e,"style").fill),d.setItemVisual(e,{fromSymbolKeepAspect:u.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:u.getItemVisual(e,"symbolOffset"),fromSymbolRotate:u.getItemVisual(e,"symbolRotate"),fromSymbolSize:u.getItemVisual(e,"symbolSize"),fromSymbol:u.getItemVisual(e,"symbol"),toSymbolKeepAspect:h.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(e,"symbolOffset"),toSymbolRotate:h.getItemVisual(e,"symbolRotate"),toSymbolSize:h.getItemVisual(e,"symbolSize"),toSymbol:h.getItemVisual(e,"symbol"),style:t})})),l.updateData(d),c.line.eachItemGraphicEl((function(e){Object(ot["a"])(e).dataModel=t,e.traverse((function(e){Object(ot["a"])(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(DS);function ZS(e,t,n){var i;i=e?Object(b["map"])(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(b["extend"])(Object(b["extend"])({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var a=new Ds["a"](i,n),o=new Ds["a"](i,n),r=new Ds["a"]([],n),s=Object(b["map"])(n.get("data"),Object(b["curry"])(BS,t,e,n));e&&(s=Object(b["filter"])(s,Object(b["curry"])(HS,e)));var l=jS(!!e,i);return a.initData(Object(b["map"])(s,(function(e){return e[0]})),null,l),o.initData(Object(b["map"])(s,(function(e){return e[1]})),null,l),r.initData(Object(b["map"])(s,(function(e){return e[2]}))),r.hasItemOption=!0,{from:a,to:o,line:r}}var XS=YS;function US(e){e.registerComponentModel(ES),e.registerComponentView(XS),e.registerPreprocessor((function(e){uS(e.series,"markLine")&&(e.markLine=e.markLine||{})}))}var qS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(gS),JS=qS,KS=Object(jt["o"])(),$S=function(e,t,n,i){var a=i[0],o=i[1];if(a&&o){var r=OS(e,a),s=OS(e,o),l=r.coord,c=s.coord;l[0]=Object(b["retrieve"])(l[0],-1/0),l[1]=Object(b["retrieve"])(l[1],-1/0),c[0]=Object(b["retrieve"])(c[0],1/0),c[1]=Object(b["retrieve"])(c[1],1/0);var u=Object(b["mergeAll"])([{},r,s]);return u.coord=[r.coord,s.coord],u.x0=r.x,u.y0=r.y,u.x1=s.x,u.y1=s.y,u}};function QS(e){return!isNaN(e)&&!isFinite(e)}function ew(e,t,n,i){var a=1-e;return QS(t[a])&&QS(n[a])}function tw(e,t){var n=t.coord[0],i=t.coord[1],a={coord:n,x:t.x0,y:t.y0},o={coord:i,x:t.x1,y:t.y1};return Wt(e,"cartesian2d")?!(!n||!i||!ew(1,n,i,e)&&!ew(0,n,i,e))||IS(e,a,o):MS(e,a)||MS(e,o)}function nw(e,t,n,i,a){var o,r=i.coordinateSystem,s=e.getItemModel(t),l=Bt["q"](s.get(n[0]),a.getWidth()),c=Bt["q"](s.get(n[1]),a.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition){var u=e.getValues(["x0","y0"],t),h=e.getValues(["x1","y1"],t),d=r.clampData(u),p=r.clampData(h),g=[];"x0"===n[0]?g[0]=d[0]>p[0]?h[0]:u[0]:g[0]=d[0]>p[0]?u[0]:h[0],"y0"===n[1]?g[1]=d[1]>p[1]?h[1]:u[1]:g[1]=d[1]>p[1]?u[1]:h[1],o=i.getMarkerPosition(g,n,!0)}else{var f=e.get(n[0],t),y=e.get(n[1],t),v=[f,y];r.clampData&&r.clampData(v,v),o=r.dataToPoint(v,!0)}if(Wt(r,"cartesian2d")){var m=r.getAxis("x"),b=r.getAxis("y");f=e.get(n[0],t),y=e.get(n[1],t);QS(f)?o[0]=m.toGlobalCoord(m.getExtent()["x0"===n[0]?0:1]):QS(y)&&(o[1]=b.toGlobalCoord(b.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(c)||(o[1]=c)}else o=[l,c];return o}var iw=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],aw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=gS.getMarkerModelFromSeries(e,"markArea");if(t){var i=t.getData();i.each((function(t){var a=Object(b["map"])(iw,(function(a){return nw(i,t,a,e,n)}));i.setItemLayout(t,a);var o=i.getItemGraphicEl(t);o.setShape("points",a)}))}}),this)},t.prototype.renderSeries=function(e,t,n,i){var a=e.coordinateSystem,o=e.id,r=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new et["a"]});this.group.add(l.group),this.markKeep(l);var c=ow(a,e,t);t.setData(c),c.each((function(t){var n=Object(b["map"])(iw,(function(n){return nw(c,t,n,e,i)})),o=a.getAxis("x").scale,s=a.getAxis("y").scale,l=o.getExtent(),u=s.getExtent(),h=[o.parse(c.get("x0",t)),o.parse(c.get("x1",t))],d=[s.parse(c.get("y0",t)),s.parse(c.get("y1",t))];Bt["c"](h),Bt["c"](d);var p=!(l[0]>h[1]||l[1]<h[0]||u[0]>d[1]||u[1]<d[0]),g=!p;c.setItemLayout(t,{points:n,allClipped:g});var f=c.getItemModel(t).getModel("itemStyle").getItemStyle(),y=Object(aO["b"])(r,"color");f.fill||(f.fill=y,Object(b["isString"])(f.fill)&&(f.fill=Zt["modifyAlpha"](f.fill,.4))),f.stroke||(f.stroke=y),c.setItemVisual(t,"style",f)})),c.diff(KS(l).data).add((function(e){var t=c.getItemLayout(e);if(!t.allClipped){var n=new Oa["a"]({shape:{points:t.points}});c.setItemGraphicEl(e,n),l.group.add(n)}})).update((function(e,n){var i=KS(l).data.getItemGraphicEl(n),a=c.getItemLayout(e);a.allClipped?i&&l.group.remove(i):(i?it["h"](i,{shape:{points:a.points}},t,e):i=new Oa["a"]({shape:{points:a.points}}),c.setItemGraphicEl(e,i),l.group.add(i))})).remove((function(e){var t=KS(l).data.getItemGraphicEl(e);l.group.remove(t)})).execute(),c.eachItemGraphicEl((function(e,n){var i=c.getItemModel(n),a=c.getItemVisual(n,"style");e.useStyle(c.getItemVisual(n,"style")),Object(ut["g"])(e,Object(ut["e"])(i),{labelFetcher:t,labelDataIndex:n,defaultText:c.getName(n)||"",inheritColor:Object(b["isString"])(a.fill)?Zt["modifyAlpha"](a.fill,1):"#000"}),Object(rt["I"])(e,i),Object(rt["J"])(e,null,null,i.get(["emphasis","disabled"])),Object(ot["a"])(e).dataModel=t})),KS(l).data=c,l.group.silent=t.get("silent")||e.get("silent")},t.type="markArea",t}(DS);function ow(e,t,n){var i,a,o=["x0","y0","x1","y1"];if(e){var r=Object(b["map"])(e&&e.dimensions,(function(e){var n=t.getData(),i=n.getDimensionInfo(n.mapDimension(e))||{};return Object(b["extend"])(Object(b["extend"])({},i),{name:e,ordinalMeta:null})}));a=Object(b["map"])(o,(function(e,t){return{name:e,type:r[t%2].type}})),i=new Ds["a"](a,n)}else a=[{name:"value",type:"float"}],i=new Ds["a"](a,n);var s=Object(b["map"])(n.get("data"),Object(b["curry"])($S,t,e,n));e&&(s=Object(b["filter"])(s,Object(b["curry"])(tw,e)));var l=e?function(e,t,n,i){var o=e.coord[Math.floor(i/2)][i%2];return Object(vS["d"])(o,a[i])}:function(e,t,n,i){return Object(vS["d"])(e.value,a[i])};return i.initData(s,null,l),i.hasItemOption=!0,i}var rw=aw;function sw(e){e.registerComponentModel(JS),e.registerComponentView(rw),e.registerPreprocessor((function(e){uS(e.series,"markArea")&&(e.markArea=e.markArea||{})}))}var lw=n("ff32"),cw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.type="dataZoom.inside",t.defaultOption=Object(On["d"])(Sx.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Sx),uw=cw,hw=Object(jt["o"])();function dw(e,t,n){hw(e).coordSysRecordMap.each((function(e){var i=e.dataZoomInfoMap.get(t.uid);i&&(i.getRange=n)}))}function pw(e,t){for(var n=hw(e).coordSysRecordMap,i=n.keys(),a=0;a<i.length;a++){var o=i[a],r=n.get(o),s=r.dataZoomInfoMap;if(s){var l=t.uid,c=s.get(l);c&&(s.removeKey(l),s.keys().length||gw(n,r))}}}function gw(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function fw(e,t){var n={model:t,containsPoint:Object(b["curry"])(vw,t),dispatchAction:Object(b["curry"])(yw,e),dataZoomInfoMap:null,controller:null},i=n.controller=new oo(e.getZr());return Object(b["each"])(["pan","zoom","scrollMove"],(function(e){i.on(e,(function(t){var i=[];n.dataZoomInfoMap.each((function(a){if(t.isAvailableBehavior(a.model.option)){var o=(a.getRange||{})[e],r=o&&o(a.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!a.model.get("disabled",!0)&&r&&i.push({dataZoomId:a.model.id,start:r[0],end:r[1]})}})),i.length&&n.dispatchAction(i)}))})),n}function yw(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function vw(e,t,n,i){return e.coordinateSystem.containPoint([n,i])}function mw(e){var t,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return e.each((function(e){var o=e.model,r=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");i[n+r]>i[n+t]&&(t=r),a=a&&o.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function bw(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var n=hw(t),i=n.coordSysRecordMap||(n.coordSysRecordMap=Object(b["createHashMap"])());i.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){var n=bx(e);Object(b["each"])(n.infoList,(function(n){var a=n.model.uid,o=i.get(a)||i.set(a,fw(t,n.model)),r=o.dataZoomInfoMap||(o.dataZoomInfoMap=Object(b["createHashMap"])());r.set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})}))})),i.each((function(e){var t,n=e.controller,a=e.dataZoomInfoMap;if(a){var o=a.keys()[0];null!=o&&(t=a.get(o))}if(t){var r=mw(a);n.enable(r.controlType,r.opt),n.setPointerChecker(e.containsPoint),Mn["b"](e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else gw(i,e)}))}))}var xw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return Object(Je["a"])(t,e),t.prototype.render=function(t,n,i){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),dw(i,t,{pan:Object(b["bind"])(_w.pan,this),zoom:Object(b["bind"])(_w.zoom,this),scrollMove:Object(b["bind"])(_w.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){pw(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(jx),_w={zoom:function(e,t,n,i){var a=this.range,o=a.slice(),r=e.axisModels[0];if(r){var s=Sw[t](null,[i.originX,i.originY],r,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],c=Math.max(1/i.scale,0);o[0]=(o[0]-l)*c+l,o[1]=(o[1]-l)*c+l;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return Bh(0,o,[0,100],0,u.minSpan,u.maxSpan),this.range=o,a[0]!==o[0]||a[1]!==o[1]?o:void 0}},pan:Ow((function(e,t,n,i,a,o){var r=Sw[i]([o.oldX,o.oldY],[o.newX,o.newY],t,a,n);return r.signal*(e[1]-e[0])*r.pixel/r.pixelLength})),scrollMove:Ow((function(e,t,n,i,a,o){var r=Sw[i]([0,0],[o.scrollDelta,o.scrollDelta],t,a,n);return r.signal*(e[1]-e[0])*o.scrollDelta}))};function Ow(e){return function(t,n,i,a){var o=this.range,r=o.slice(),s=t.axisModels[0];if(s){var l=e(r,s,t,n,i,a);return Bh(l,r,[0,100],"all"),this.range=r,o[0]!==r[0]||o[1]!==r[1]?r:void 0}}}var Sw={grid:function(e,t,n,i,a){var o=n.axis,r={},s=a.model.coordinateSystem.getRect();return e=e||[0,0],"x"===o.dim?(r.pixel=t[0]-e[0],r.pixelLength=s.width,r.pixelStart=s.x,r.signal=o.inverse?1:-1):(r.pixel=t[1]-e[1],r.pixelLength=s.height,r.pixelStart=s.y,r.signal=o.inverse?-1:1),r},polar:function(e,t,n,i,a){var o=n.axis,r={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(r.pixel=t[0]-e[0],r.pixelLength=l[1]-l[0],r.pixelStart=l[0],r.signal=o.inverse?1:-1):(r.pixel=t[1]-e[1],r.pixelLength=c[1]-c[0],r.pixelStart=c[0],r.signal=o.inverse?-1:1),r},singleAxis:function(e,t,n,i,a){var o=n.axis,r=a.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===o.orient?(s.pixel=t[0]-e[0],s.pixelLength=r.width,s.pixelStart=r.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=r.height,s.pixelStart=r.y,s.signal=o.inverse?-1:1),s}},ww=xw;function Mw(e){Bx(e),e.registerComponentModel(uw),e.registerComponentView(ww),bw(e)}var Iw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Object(On["d"])(Sx.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Sx),jw=Iw,Aw=Et["a"],Cw=7,Tw=1,Dw=30,Lw=7,Pw="horizontal",kw="vertical",Nw=5,Rw=["line","bar","candlestick","scatter"],Vw={easing:"cubicOut",duration:100,delay:0},Ew=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return Object(Je["a"])(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=Object(b["bind"])(this._onBrush,this),this._onBrushEnd=Object(b["bind"])(this._onBrushEnd,this)},t.prototype.render=function(t,n,i,a){if(e.prototype.render.apply(this,arguments),Mn["b"](this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();a&&"dataZoom"===a.type&&a.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Mn["a"](this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new et["a"];this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get("brushSelect"),i=n?Lw:0,a=this._findCoordRect(),o={width:t.getWidth(),height:t.getHeight()},r=this._orient===Pw?{right:o.width-a.x-a.width,top:o.height-Dw-Cw-i,width:a.width,height:Dw}:{right:Cw,top:a.y,width:Dw,height:a.height},s=Ai["f"](e.option);Object(b["each"])(["right","top","width","height"],(function(e){"ph"===s[e]&&(s[e]=r[e])}));var l=Ai["g"](s,o);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===kw&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),a=i&&i.get("inverse"),o=this._displayables.sliderGroup,r=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==Pw||a?n===Pw&&a?{scaleY:r?1:-1,scaleX:-1}:n!==kw||a?{scaleY:r?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:r?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:r?1:-1,scaleX:1});var s=e.getBoundingRect([o]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new Aw({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var a=new Aw({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:Object(b["bind"])(this._onClickPanel,this)}),o=this.api.getZr();i?(a.on("mousedown",this._onBrushStart,this),a.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(a)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],i=e.series,a=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),r=o&&a.getDimensionInfo(o)?i.getShadowDim():e.otherDim;if(null!=r){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(a!==this._shadowData||r!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var c=a.getDataExtent(r),u=.3*(c[1]-c[0]);c=[c[0]-u,c[1]+u];var h,d=[0,t[1]],p=[0,t[0]],g=[[t[0],0],[0,0]],f=[],y=p[1]/(a.count()-1),v=0,m=Math.round(a.count()/t[0]);a.each([r],(function(e,t){if(m>0&&t%m)v+=y;else{var n=null==e||isNaN(e)||""===e,i=n?0:Object(Bt["m"])(e,c,d,!0);n&&!h&&t?(g.push([g[g.length-1][0],0]),f.push([f[f.length-1][0],0])):!n&&h&&(g.push([v,0]),f.push([v,0])),g.push([v,i]),f.push([v,i]),v+=y,h=n}})),s=this._shadowPolygonPts=g,l=this._shadowPolylinePts=f}this._shadowData=a,this._shadowDim=r,this._shadowSize=[t[0],t[1]];for(var b=this.dataZoomModel,x=0;x<3;x++){var _=O(1===x);this._displayables.sliderGroup.add(_),this._displayables.dataShadowSegs.push(_)}}}function O(e){var t=b.getModel(e?"selectedDataBackground":"dataBackground"),n=new et["a"],i=new Oa["a"]({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),a=new Sa["a"]({shape:{points:l},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(a),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,i=this.ecModel;return e.eachTargetAxis((function(a,o){var r=e.getAxisProxy(a,o).getTargetSeriesModels();Object(b["each"])(r,(function(e){if(!n&&!(!0!==t&&Object(b["indexOf"])(Rw,e.get("type"))<0)){var r,s=i.getComponent(vx(a),o).axis,l=zw(a),c=e.coordinateSystem;null!=l&&c.getOtherAxis&&(r=c.getOtherAxis(s).inverse),l=e.getData().mapDimension(l),n={thisAxis:s,series:e,thisDim:a,otherDim:l,otherAxisInverse:r}}}),this)}),this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],i=t.handleLabels=[null,null],a=this._displayables.sliderGroup,o=this._size,r=this.dataZoomModel,s=this.api,l=r.get("borderRadius")||0,c=r.get("brushSelect"),u=t.filler=new Aw({silent:c,style:{fill:r.get("fillerColor")},textConfig:{position:"inside"}});a.add(u),a.add(new Aw({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:r.get("dataBackgroundColor")||r.get("borderColor"),lineWidth:Tw,fill:"rgba(0,0,0,0)"}})),Object(b["each"])([0,1],(function(t){var o=r.get("handleIcon");!Qe["d"][o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=Object(Qe["a"])(o,-1,0,2,2,null,!0);s.attr({cursor:Bw(this._orient),draggable:!0,drift:Object(b["bind"])(this._onDragMove,this,t),ondragend:Object(b["bind"])(this._onDragEnd,this),onmouseover:Object(b["bind"])(this._showDataInfo,this,!0),onmouseout:Object(b["bind"])(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),c=r.get("handleSize");this._handleHeight=Object(Bt["q"])(c,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(r.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),Object(rt["o"])(s);var u=r.get("handleColor");null!=u&&(s.style.fill=u),a.add(n[t]=s);var h=r.getModel("textStyle");e.add(i[t]=new ee["a"]({silent:!0,invisible:!0,style:Object(ut["c"])(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))}),this);var h=u;if(c){var d=Object(Bt["q"])(r.get("moveHandleSize"),o[1]),p=t.moveHandle=new Et["a"]({style:r.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:d}}),g=.8*d,f=t.moveHandleIcon=Object(Qe["a"])(r.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);f.silent=!0,f.y=o[1]+d/2-.5,p.ensureState("emphasis").style=r.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(o[1]/2,Math.max(d,10));h=t.moveZone=new Et["a"]({invisible:!0,shape:{y:o[1]-y,height:d+y}}),h.on("mouseover",(function(){s.enterEmphasis(p)})).on("mouseout",(function(){s.leaveEmphasis(p)})),a.add(p),a.add(f),a.add(h)}h.attr({draggable:!0,cursor:Bw(this._orient),drift:Object(b["bind"])(this._onDragMove,this,"all"),ondragstart:Object(b["bind"])(this._showDataInfo,this,!0),ondragend:Object(b["bind"])(this._onDragEnd,this),onmouseover:Object(b["bind"])(this._showDataInfo,this,!0),onmouseout:Object(b["bind"])(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[Object(Bt["m"])(e[0],[0,100],t,!0),Object(Bt["m"])(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,i=this._handleEnds,a=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),r=[0,100];Bh(t,i,a,n.get("zoomLock")?"all":e,null!=o.minSpan?Object(Bt["m"])(o.minSpan,r,a,!0):null,null!=o.maxSpan?Object(Bt["m"])(o.maxSpan,r,a,!0):null);var s=this._range,l=this._range=Object(Bt["c"])([Object(Bt["m"])(i[0],a,r,!0),Object(Bt["m"])(i[1],a,r,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,i=Object(Bt["c"])(n.slice()),a=this._size;Object(b["each"])([0,1],(function(e){var i=t.handles[e],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[e]+(e?-1:1),y:a[1]/2-o/2})}),this),t.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:a[1]});var o={x:i[0],width:i[1]-i[0]};t.moveHandle&&(t.moveHandle.setShape(o),t.moveZone.setShape(o),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",o.x+o.width/2));for(var r=t.dataShadowSegs,s=[0,i[0],i[1],a[0]],l=0;l<r.length;l++){var c=r[l],u=c.getClipPath();u||(u=new Et["a"],c.setClipPath(u)),u.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:a[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,i=n.handleLabels,a=this._orient,o=["",""];if(t.get("showDetail")){var r=t.findRepresentativeAxisProxy();if(r){var s=r.getAxisModel().axis,l=this._range,c=e?r.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:r.getDataValueWindow();o=[this._formatLabel(c[0],s),this._formatLabel(c[1],s)]}}var u=Object(Bt["c"])(this._handleEnds.slice());function h(e){var t=at["getTransform"](n.handles[e].parent,this.group),r=at["transformDirection"](0===e?"right":"left",t),s=this._handleWidth/2+Nw,l=at["applyTransform"]([u[e]+(0===e?-s:s),this._size[1]/2],t);i[e].setStyle({x:l[0],y:l[1],verticalAlign:a===Pw?"middle":r,align:a===Pw?r:"center",text:o[e]})}h.call(this,0),h.call(this,1)},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,i=n.get("labelFormatter"),a=n.get("labelPrecision");null!=a&&"auto"!==a||(a=t.getPixelPrecision());var o=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(a,20));return Object(b["isFunction"])(i)?i(e,o):Object(b["isString"])(i)?i.replace("{value}",o):o},t.prototype._showDataInfo=function(e){e=this._dragging||e;var t=this._displayables,n=t.handleLabels;n[0].attr("invisible",!e),n[1].attr("invisible",!e),t.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](t.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,i){this._dragging=!0,Ua["g"](i.event);var a=this._displayables.sliderGroup.getLocalTransform(),o=at["applyTransform"]([t,n],a,!0),r=this._updateInterval(e,o[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),r&&s&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var i=this._handleEnds,a=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-a);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new Qu["a"](t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var n=t.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var a=this._getViewExtent(),o=[0,100];this._range=Object(Bt["c"])([Object(Bt["m"])(n.x,a,o,!0),Object(Bt["m"])(n.x+n.width,a,o,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Ua["g"](e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,i=this.dataZoomModel,a=n.brushRect;a||(a=n.brushRect=new Aw({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(a)),a.attr("ignore",!1);var o=this._brushStart,r=this._displayables.sliderGroup,s=r.transformCoordToLocal(e,t),l=r.transformCoordToLocal(o.x,o.y),c=this._size;s[0]=Math.max(Math.min(c[0],s[0]),0),a.setShape({x:l[0],y:0,width:s[0]-l[0],height:c[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?Vw:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=bx(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),a=this.api.getHeight();e={x:.2*i,y:.2*a,width:.6*i,height:.6*a}}return e},t.type="dataZoom.slider",t}(jx);function zw(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function Bw(e){return"vertical"===e?"ns-resize":"ew-resize"}var Gw=Ew;function Fw(e){e.registerComponentModel(jw),e.registerComponentView(Gw),Bx(e)}function Hw(e){Object(i["a"])(Mw),Object(i["a"])(Fw)}var Ww={get:function(e,t,n){var i=b["clone"]((Yw[e]||{})[t]);return n&&b["isArray"](i)?i[i.length-1]:i}},Yw={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},Zw=Ww,Xw=ql.mapVisual,Uw=ql.eachVisual,qw=b["isArray"],Jw=b["each"],Kw=Bt["c"],$w=Bt["m"],Qw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return Object(Je["a"])(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&lO(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=b["bind"](e,this),this.controllerVisuals=sO(this.option.controller,t,e),this.targetVisuals=sO(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,n){t.push(n)})):t=jt["r"](e),t},t.prototype.eachTargetSeries=function(e,t){b["each"](this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(t,i)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,n){var i,a=this.option,o=a.precision,r=this.dataBound,s=a.formatter;n=n||["<",">"],b["isArray"](e)&&(e=e.slice(),i=!0);var l=t?e:i?[c(e[0]),c(e[1])]:c(e);return b["isString"](s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):b["isFunction"](s)?i?s(e[0],e[1]):s(e):i?e[0]===r[0]?n[0]+" "+l[1]:e[1]===r[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function c(e){return e===r[0]?"min":e===r[1]?"max":(+e).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,t=Kw([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var a=n[i],o=e.getDimensionInfo(a);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},i=t.target||(t.target={}),a=t.controller||(t.controller={});b["merge"](i,n),b["merge"](a,n);var o=this.isCategory();function r(n){qw(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}function s(e,t,n){var i=e[t],a=e[n];i&&!a&&(a=e[n]={},Jw(i,(function(e,t){if(ql.isValidType(t)){var n=Zw.get(t,"inactive",o);null!=n&&(a[t]=n,"color"!==t||a.hasOwnProperty("opacity")||a.hasOwnProperty("colorAlpha")||(a.opacity=[0,0]))}})))}function l(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),a=this.getItemSymbol(),r=a||"roundRect";Jw(this.stateList,(function(a){var s=this.itemSize,l=e[a];l||(l=e[a]={color:o?i:[i]}),null==l.symbol&&(l.symbol=t&&b["clone"](t)||(o?r:[r])),null==l.symbolSize&&(l.symbolSize=n&&b["clone"](n)||(o?s[0]:[s[0],s[0]])),l.symbol=Xw(l.symbol,(function(e){return"none"===e?r:e}));var c=l.symbolSize;if(null!=c){var u=-1/0;Uw(c,(function(e){e>u&&(u=e)})),l.symbolSize=Xw(c,(function(e){return $w(e,[0,u],[0,s[0]],!0)}))}}),this)}r.call(this,i),r.call(this,a),s.call(this,i,"inRange","outOfRange"),l.call(this,a)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(vi["a"]),eM=Qw,tM=[20,140],nM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=tM[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=tM[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):b["isArray"](t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),b["each"](this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=Bt["c"]((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent();return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(n){var i=[],a=n.getData();a.each(this.getDataDimensionIndex(a),(function(t,n){e[0]<=t&&t<=e[1]&&i.push(n)}),this),t.push({seriesId:n.id,dataIndex:i})}),this),t},t.prototype.getVisualMeta=function(e){var t=iM(this,"outOfRange",this.getExtent()),n=iM(this,"inRange",this.option.range.slice()),i=[];function a(t,n){i.push({value:t,color:e(t,n)})}for(var o=0,r=0,s=n.length,l=t.length;r<l&&(!n.length||t[r]<=n[0]);r++)t[r]<n[o]&&a(t[r],"outOfRange");for(var c=1;o<s;o++,c=0)c&&i.length&&a(n[o],"outOfRange"),a(n[o],"inRange");for(c=1;r<l;r++)(!n.length||n[n.length-1]<t[r])&&(c&&(i.length&&a(i[i.length-1].value,"outOfRange"),c=0),a(t[r],"outOfRange"));var u=i.length;return{stops:i,outerColors:[u?i[0].color:"transparent",u?i[u-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Object(On["d"])(eM.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(eM);function iM(e,t,n){if(n[0]===n[1])return n.slice();for(var i=200,a=(n[1]-n[0])/i,o=n[0],r=[],s=0;s<=i&&o<n[1];s++)r.push(o),o+=a;return r.push(n[1]),r}var aM=nM,oM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return Object(Je["a"])(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,i){this.visualMapModel=e,!1!==e.get("show")?this.doRender(e,t,n,i):this.group.removeAll()},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=Yt["i"](t.get("padding")||0),i=e.getBoundingRect();e.add(new Et["a"]({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,t,n){n=n||{};var i=n.forceState,a=this.visualMapModel,o={};if("color"===t){var r=a.get("contentColor");o.color=r}function s(e){return o[e]}function l(e,t){o[e]=t}var c=a.controllerVisuals[i||a.getValueState(e)],u=ql.prepareVisualTypes(c);return b["each"](u,(function(i){var a=c[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",a=c.__alphaForOpacity),ql.dependsOn(i,t)&&a&&a.applyVisual(e,s,l)})),o[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api;Ai["i"](e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,t,n,i){},t.type="visualMap",t}(yi["a"]),rM=oM,sM=[["left","right","width"],["top","bottom","height"]];function lM(e,t,n){var i=e.option,a=i.align;if(null!=a&&"auto"!==a)return a;for(var o={width:t.getWidth(),height:t.getHeight()},r="horizontal"===i.orient?1:0,s=sM[r],l=[0,null,10],c={},u=0;u<3;u++)c[sM[1-r][u]]=l[u],c[s[u]]=2===u?n[0]:i[s[u]];var h=[["x","width",3],["y","height",0]][r],d=Object(Ai["g"])(c,o,i.padding);return s[(d.margin[h[2]]||0)+d[h[0]]+.5*d[h[1]]<.5*o[h[1]]?0:1]}function cM(e,t){return b["each"](e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}var uM=Bt["m"],hM=b["each"],dM=Math.min,pM=Math.max,gM=12,fM=6,yM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return Object(Je["a"])(t,e),t.prototype.doRender=function(e,t,n,i){this._api=n,i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var n=e.get("text");this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var i=t[1-n];i=null!=i?i+"":"";var a=this.visualMapModel,o=a.get("textGap"),r=a.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([r[0]/2,0===n?-o:r[1]+o],s),c=this._applyTransform(0===n?"bottom":"top",s),u=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new ee["a"]({style:Object(ut["c"])(h,{x:l[0],y:l[1],verticalAlign:"horizontal"===u?"middle":c,align:"horizontal"===u?c:"center",text:i})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,i=t.itemSize,a=this._orient,o=this._useHandle,r=lM(t,this.api,i),s=n.mainGroup=this._createBarGroup(r),l=new et["a"];s.add(l),l.add(n.outOfRange=vM()),l.add(n.inRange=vM(null,o?xM(this._orient):null,b["bind"](this._dragHandle,this,"all",!1),b["bind"](this._dragHandle,this,"all",!0))),l.setClipPath(new Et["a"]({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var c=t.textStyleModel.getTextRect("国"),u=pM(c.width,c.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,i,u,a),this._createHandle(t,s,1,i,u,a)),this._createIndicator(t,s,i,u,a),e.add(s)},t.prototype._createHandle=function(e,t,n,i,a,o){var r=b["bind"](this._dragHandle,this,n,!1),s=b["bind"](this._dragHandle,this,n,!0),l=Object(c["g"])(e.get("handleSize"),i[0]),u=Object(Qe["a"])(e.get("handleIcon"),-l/2,-l/2,l,l,null,!0),h=xM(this._orient);u.attr({cursor:h,draggable:!0,drift:r,ondragend:s,onmousemove:function(e){Ua["g"](e.event)}}),u.x=i[0]/2,u.useStyle(e.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),Object(rt["F"])(u,!0),t.add(u);var d=this.visualMapModel.textStyleModel,p=new ee["a"]({cursor:h,draggable:!0,drift:r,onmousemove:function(e){Ua["g"](e.event)},ondragend:s,style:Object(ut["c"])(d,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var g=[l,0],f=this._shapes;f.handleThumbs[n]=u,f.handleLabelPoints[n]=g,f.handleLabels[n]=p},t.prototype._createIndicator=function(e,t,n,i,a){var o=Object(c["g"])(e.get("indicatorSize"),n[0]),r=Object(Qe["a"])(e.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);r.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel("indicatorStyle").getItemStyle();if(r instanceof l["a"]){var u=r.style;r.useStyle(b["extend"]({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},s))}else r.useStyle(s);t.add(r);var h=this.visualMapModel.textStyleModel,d=new ee["a"]({silent:!0,invisible:!0,style:Object(ut["c"])(h,{x:0,y:0,text:""})});this.group.add(d);var p=[("horizontal"===a?i/2:fM)+n[0]/2,0],g=this._shapes;g.indicator=r,g.indicatorLabel=d,g.indicatorLabelPoint=p,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,i){if(this._useHandle){if(this._dragging=!t,!t){var a=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(e,a[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():bM(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[uM(t[0],n,i,!0),uM(t[1],n,i,!0)]},t.prototype._updateInterval=function(e,t){t=t||0;var n=this.visualMapModel,i=this._handleEnds,a=[0,n.itemSize[1]];Bh(t,i,a,e,0);var o=n.getExtent();this._dataInterval=[uM(i[0],a,o,!0),uM(i[1],a,o,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),i=this._shapes,a=[0,t.itemSize[1]],o=e?a:this._handleEnds,r=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,a,"outOfRange");i.inRange.setStyle({fill:r.barColor}).setShape("points",r.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,r)},t.prototype._createBarVisual=function(e,t,n,i){var a={forceState:i,convertOpacityToAlpha:!0},o=this._makeColorGradient(e,a),r=[this.getControllerVisual(e[0],"symbolSize",a),this.getControllerVisual(e[1],"symbolSize",a)],s=this._createBarPoints(n,r);return{barColor:new It["a"](0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=100,i=[],a=(e[1]-e[0])/n;i.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var o=1;o<n;o++){var r=e[0]+a*o;if(r>e[1])break;i.push({color:this.getControllerVisual(r,"color",t),offset:o/n})}return i.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),i},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new et["a"]("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,a=n.handleThumbs,o=n.handleLabels,r=i.itemSize,s=i.getExtent();hM([0,1],(function(l){var c=a[l];c.setStyle("fill",t.handlesColor[l]),c.y=e[l];var u=uM(e[l],[0,r[1]],s,!0),h=this.getControllerVisual(u,"symbolSize");c.scaleX=c.scaleY=h/r[0],c.x=r[0]-h/2;var d=at["applyTransform"](n.handleLabelPoints[l],at["getTransform"](c,this.group));o[l].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,i){var a=this.visualMapModel,o=a.getExtent(),r=a.itemSize,s=[0,r[1]],l=this._shapes,c=l.indicator;if(c){c.attr("invisible",!1);var u={convertOpacityToAlpha:!0},h=this.getControllerVisual(e,"color",u),d=this.getControllerVisual(e,"symbolSize"),p=uM(e,o,s,!0),g=r[0]-d/2,f={x:c.x,y:c.y};c.y=p,c.x=g;var y=at["applyTransform"](l.indicatorLabelPoint,at["getTransform"](c,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var m=this._applyTransform("left",l.mainGroup),b=this._orient,x="horizontal"===b;v.setStyle({text:(n||"")+a.formatValueText(t),verticalAlign:x?m:"middle",align:x?"center":m});var _={x:g,y:p,style:{fill:h}},O={style:{x:y[0],y:y[1]}};if(a.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var S={duration:100,easing:"cubicInOut",additive:!0};c.x=f.x,c.y=f.y,c.animateTo(_,S),v.animateTo(O,S)}else c.attr(_),v.attr(O);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var M=0;M<w.length;M++)this._api.enterBlur(w[M])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",(function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,i=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);i[1]=dM(pM(0,i[1]),n[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()}))},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var a=[0,i[1]],o=n.getExtent();e=dM(pM(a[0],e),a[1]);var r=mM(n,o,a),s=[e-r,e+r],l=uM(e,a,o,!0),c=[uM(s[0],a,o,!0),uM(s[1],a,o,!0)];s[0]<a[0]&&(c[0]=-1/0),s[1]>a[1]&&(c[1]=1/0),t&&(c[0]===-1/0?this._showIndicator(l,c[1],"< ",r):c[1]===1/0?this._showIndicator(l,c[0],"> ",r):this._showIndicator(l,l,"≈ ",r));var u=this._hoverLinkDataIndices,h=[];(t||bM(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var d=jt["d"](u,h);this._dispatchHighDown("downplay",cM(d[0],n)),this._dispatchHighDown("highlight",cM(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(Object($r["a"])(e.target,(function(e){var n=Object(ot["a"])(e);if(null!=n.dataIndex)return t=n,!0}),!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var a=n.getData(t.dataType),o=a.getStore().get(i.getDataDimensionIndex(a),t.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this._api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",cM(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,i){var a=at["getTransform"](t,i?null:this.group);return b["isArray"](e)?at["applyTransform"](e,a,n):at["transformDirection"](e,a,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(rM);function vM(e,t,n,i){return new Oa["a"]({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){Ua["g"](e.event)},ondragend:i})}function mM(e,t,n){var i=gM/2,a=e.get("hoverLinkDataSize");return a&&(i=uM(a,t,n,!0)/2),i}function bM(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function xM(e){return"vertical"===e?"ns-resize":"ew-resize"}var _M=yM,OM={type:"selectDataRange",event:"dataRangeSelected",update:"update"},SM=function(e,t){t.eachComponent({mainType:"visualMap",query:e},(function(t){t.setSelected(e.selected)}))},wM=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",(function(t){var i=e.pipelineContext;!t.isTargetSeries(e)||i&&i.large||n.push(uO(t.stateList,t.targetVisuals,b["bind"](t.getValueState,t),t.getDataDimensionIndex(e.getData())))})),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),i=[];t.eachComponent("visualMap",(function(t){if(t.isTargetSeries(e)){var a=t.getVisualMeta(b["bind"](MM,null,e,t))||{stops:[],outerColors:[]},o=t.getDataDimensionIndex(n);o>=0&&(a.dimension=o,i.push(a))}})),e.getData().setVisual("visualMeta",i)}}];function MM(e,t,n,i){for(var a=t.targetVisuals[i],o=ql.prepareVisualTypes(a),r={color:Object(aO["b"])(e.getData(),"color")},s=0,l=o.length;s<l;s++){var c=o[s],u=a["opacity"===c?"__alphaForOpacity":c];u&&u.applyVisual(n,h,d)}return r.color;function h(e){return r[e]}function d(e,t){r[e]=t}}var IM=b["each"];function jM(e){var t=e&&e.visualMap;b["isArray"](t)||(t=t?[t]:[]),IM(t,(function(e){if(e){AM(e,"splitList")&&!AM(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&b["isArray"](t)&&IM(t,(function(e){b["isObject"](e)&&(AM(e,"start")&&!AM(e,"min")&&(e.min=e.start),AM(e,"end")&&!AM(e,"max")&&(e.max=e.end))}))}}))}function AM(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var CM=!1;function TM(e){CM||(CM=!0,e.registerSubTypeDefaulter("visualMap",(function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(OM,SM),Object(b["each"])(wM,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(jM))}function DM(e){e.registerComponentModel(aM),e.registerComponentView(_M),TM(e)}var LM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return Object(Je["a"])(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],PM[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var a=this.option.categories;this.resetVisual((function(e,t){"categories"===i?(e.mappingMethod="category",e.categories=b["clone"](a)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=b["map"](this._pieceList,(function(e){return e=b["clone"](e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},i=ql.listVisualTypes(),a=this.isCategory();function o(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}b["each"](t.pieces,(function(e){b["each"](i,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),b["each"](n,(function(e,n){var i=!1;b["each"](this.stateList,(function(e){i=i||o(t,e,n)||o(t.target,e,n)}),this),!i&&b["each"](this.stateList,(function(e){(t[e]||(t[e]={}))[n]=Zw.get(n,"inRange"===e?"active":"inactive",a)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,i=this._pieceList,a=(t?n:e).selected||{};if(n.selected=a,b["each"](i,(function(e,t){var n=this.getSelectedMapKey(e);a.hasOwnProperty(n)||(a[n]=!0)}),this),"single"===n.selectedMode){var o=!1;b["each"](i,(function(e,t){var n=this.getSelectedMapKey(e);a[n]&&(o?a[n]=!1:o=!0)}),this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=b["clone"](e)},t.prototype.getValueState=function(e){var t=ql.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),(function(t,i){var o=ql.findPieceIndex(t,n);o===e&&a.push(i)}),this),t.push({seriesId:i.id,dataIndex:a})}),this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],i=this,a=this._pieceList.slice();if(a.length){var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}else a.push({interval:[-1/0,1/0]});var r=-1/0;return b["each"](a,(function(e){var t=e.interval;t&&(t[0]>r&&s([r,t[0]],"outOfRange"),s(t.slice()),r=t[1])}),this),{stops:t,outerColors:n}}function s(a,o){var r=i.getRepresentValue({interval:a});o||(o=i.getValueState(r));var s=e(r,o);a[0]===-1/0?n[0]=s:a[1]===1/0?n[1]=s:t.push({value:a[0],color:s},{value:a[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=Object(On["d"])(eM.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(eM),PM={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),i=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;var o=(i[1]-i[0])/a;while(+o.toFixed(n)!==o&&n<5)n++;t.precision=n,o=+o.toFixed(n),t.minOpen&&e.push({interval:[-1/0,i[0]],close:[0,0]});for(var r=0,s=i[0];r<a;s+=o,r++){var l=r===a-1?i[1]:s+o;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[i[1],1/0],close:[0,0]}),Object(Bt["u"])(e),b["each"](e,(function(e,t){e.index=t,e.text=this.formatValueText(e.interval)}),this)},categories:function(e){var t=this.option;b["each"](t.categories,(function(t){e.push({text:this.formatValueText(t,!0),value:t})}),this),kM(t,e)},pieces:function(e){var t=this.option;b["each"](t.pieces,(function(t,n){b["isObject"](t)||(t={value:t});var i={text:"",index:n};if(null!=t.label&&(i.text=t.label),t.hasOwnProperty("value")){var a=i.value=t.value;i.interval=[a,a],i.close=[1,1]}else{for(var o=i.interval=[],r=i.close=[0,0],s=[1,0,1],l=[-1/0,1/0],c=[],u=0;u<2;u++){for(var h=[["gte","gt","min"],["lte","lt","max"]][u],d=0;d<3&&null==o[u];d++)o[u]=t[h[d]],r[u]=s[d],c[u]=2===d;null==o[u]&&(o[u]=l[u])}c[0]&&o[1]===1/0&&(r[0]=0),c[1]&&o[0]===-1/0&&(r[1]=0),o[0]===o[1]&&r[0]&&r[1]&&(i.value=o[0])}i.visual=ql.retrieveVisuals(t),e.push(i)}),this),kM(t,e),Object(Bt["u"])(e),b["each"](e,(function(e){var t=e.close,n=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function kM(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var NM=LM,RM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Je["a"])(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),i=t.textStyleModel,a=i.getFont(),o=i.getTextColor(),r=this._getItemAlign(),s=t.itemSize,l=this._getViewData(),c=l.endsText,u=b["retrieve"](t.get("showLabel",!0),!c);c&&this._renderEndsText(e,c[0],s,u,r),b["each"](l.viewPieceList,(function(i){var l=i.piece,c=new et["a"];c.onclick=b["bind"](this._onItemClick,this,l),this._enableHoverLink(c,i.indexInModelPieceList);var h=t.getRepresentValue(l);if(this._createItemSymbol(c,h,[0,0,s[0],s[1]]),u){var d=this.visualMapModel.getValueState(h);c.add(new ee["a"]({style:{x:"right"===r?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:r,font:a,fill:o,opacity:"outOfRange"===d?.5:1}}))}e.add(c)}),this),c&&this._renderEndsText(e,c[1],s,u,r),Ai["b"](t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(e){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:e,batch:cM(i.findTargetDataIndices(t),i)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return lM(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,i,a){if(t){var o=new et["a"],r=this.visualMapModel.textStyleModel;o.add(new ee["a"]({style:Object(ut["c"])(r,{x:i?"right"===a?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?a:"center",text:t})})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=b["map"](e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),i=e.get("orient"),a=e.get("inverse");return("horizontal"===i?a:!a)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n){e.add(Object(Qe["a"])(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,i=n.selectedMode;if(i){var a=b["clone"](n.selected),o=t.getSelectedMapKey(e);"single"===i||!0===i?(a[o]=!0,b["each"](a,(function(e,t){a[t]=t===o}))):a[o]=!a[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:a})}},t.type="visualMap.piecewise",t}(rM),VM=RM;function EM(e){e.registerComponentModel(NM),e.registerComponentView(VM),TM(e)}function zM(e){Object(i["a"])(DM),Object(i["a"])(EM)}var BM={label:{enabled:!0},decal:{show:!1}},GM=Object(jt["o"])(),FM={};function HM(e,t){var n=e.getModel("aria");if(n.get("enabled")){var i=b["clone"](BM);b["merge"](i.label,e.getLocaleModel().get("aria"),!1),b["merge"](n.option,i,!1),a(),o()}function a(){var t=n.getModel("decal"),i=t.get("show");if(i){var a=b["createHashMap"]();e.eachSeries((function(e){if(!e.isColorBySeries()){var t=a.get(e.type);t||(t={},a.set(e.type,t)),GM(e).scope=t}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if(b["isFunction"](t.enableAriaDecal))t.enableAriaDecal();else{var n=t.getData();if(t.isColorBySeries()){var i=Object($s["b"])(t.ecModel,t.name,FM,e.getSeriesCount()),a=n.getVisual("decal");n.setVisual("decal",c(a,i))}else{var o=t.getRawData(),r={},s=GM(t).scope;n.each((function(e){var t=n.getRawIndex(e);r[t]=e}));var l=o.count();o.each((function(e){var i=r[e],a=o.getName(e)||e+"",u=Object($s["b"])(t.ecModel,a,s,l),h=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",c(h,u))}))}}function c(e,t){var n=e?b["extend"](b["extend"]({},t),e):t;return n.dirty=!0,n}}))}}function o(){var i=e.getLocaleModel().get("aria"),a=n.getModel("label");if(a.option=b["defaults"](a.option,i),a.get("enabled")){var o=t.getZr().dom;if(a.get("description"))o.setAttribute("aria-label",a.get("description"));else{var c,u=e.getSeriesCount(),h=a.get(["data","maxCount"])||10,d=a.get(["series","maxCount"])||10,p=Math.min(u,d);if(!(u<1)){var g=s();if(g){var f=a.get(["general","withTitle"]);c=r(f,{title:g})}else c=a.get(["general","withoutTitle"]);var y=[],v=u>1?a.get(["series","multiple","prefix"]):a.get(["series","single","prefix"]);c+=r(v,{seriesCount:u}),e.eachSeries((function(e,t){if(t<p){var n=void 0,i=e.get("name"),o=i?"withName":"withoutName";n=u>1?a.get(["series","multiple",o]):a.get(["series","single",o]),n=r(n,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:l(e.subType)});var s=e.getData();if(s.count()>h){var c=a.get(["data","partialData"]);n+=r(c,{displayCnt:h})}else n+=a.get(["data","allData"]);for(var d=a.get(["data","separator","middle"]),g=a.get(["data","separator","end"]),f=[],v=0;v<s.count();v++)if(v<h){var m=s.getName(v),b=s.getValues(v),x=a.get(["data",m?"withName":"withoutName"]);f.push(r(x,{name:m,value:b.join(d)}))}n+=f.join(d)+g,y.push(n)}}));var m=a.getModel(["series","multiple","separator"]),x=m.get("middle"),_=m.get("end");c+=y.join(x)+_,o.setAttribute("aria-label",c)}}}}function r(e,t){if(!b["isString"](e))return e;var n=e;return b["each"](t,(function(e,t){n=n.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)})),n}function s(){var t=e.get("title");return t&&t.length&&(t=t[0]),t&&t.text}function l(t){return e.getLocaleModel().get(["series","typeNames"])[t]||"自定义图"}}function WM(e){if(e&&e.aria){var t=e.aria;null!=t.show&&(t.enabled=t.show),t.label=t.label||{},b["each"](["description","general","series","data"],(function(e){null!=t[e]&&(t.label[e]=t[e])}))}}function YM(e){e.registerPreprocessor(WM),e.registerVisual(e.PRIORITY.VISUAL.ARIA,HM)}var ZM={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},XM=function(){function e(e){var t=this._condVal=Object(b["isString"])(e)?new RegExp(e):Object(b["isRegExp"])(e)?e:null;if(null==t){var n="";0,Object(Dl["c"])(n)}}return e.prototype.evaluate=function(e){var t=typeof e;return Object(b["isString"])(t)?this._condVal.test(e):!!Object(b["isNumber"])(t)&&this._condVal.test(e+"")},e}(),UM=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),qM=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),JM=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),KM=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),$M=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),i=e?this.valueParser(n):null,a=0;a<this.subCondList.length;a++)if(!this.subCondList[a].evaluate(e?i:n))return!1;return!0},e}();function QM(e,t){if(!0===e||!1===e){var n=new UM;return n.value=e,n}var i="";return iI(e)||Object(Dl["c"])(i),e.and?eI("and",e,t):e.or?eI("or",e,t):e.not?tI(e,t):nI(e,t)}function eI(e,t,n){var i=t[e],a="";Object(b["isArray"])(i)||Object(Dl["c"])(a),i.length||Object(Dl["c"])(a);var o="and"===e?new qM:new JM;return o.children=Object(b["map"])(i,(function(e){return QM(e,n)})),o.children.length||Object(Dl["c"])(a),o}function tI(e,t){var n=e.not,i="";iI(n)||Object(Dl["c"])(i);var a=new KM;return a.child=QM(n,t),a.child||Object(Dl["c"])(i),a}function nI(e,t){for(var n="",i=t.prepareGetValue(e),a=[],o=Object(b["keys"])(e),r=e.parser,s=r?Object(vS["c"])(r):null,l=0;l<o.length;l++){var c=o[l];if("parser"!==c&&!t.valueGetterAttrMap.get(c)){var u=Object(b["hasOwn"])(ZM,c)?ZM[c]:c,h=e[c],d=s?s(h):h,p=Object(vS["b"])(u,d)||"reg"===u&&new XM(d);p||Object(Dl["c"])(n),a.push(p)}}a.length||Object(Dl["c"])(n);var g=new $M;return g.valueGetterParam=i,g.valueParser=s,g.getValue=t.getValue,g.subCondList=a,g}function iI(e){return Object(b["isObject"])(e)&&!Object(b["isArrayLike"])(e)}var aI=function(){function e(e,t){this._cond=QM(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function oI(e,t){return new aI(e,t)}var rI={type:"echarts:filter",transform:function(e){for(var t,n=e.upstream,i=oI(e.config,{valueGetterAttrMap:Object(b["createHashMap"])({dimension:!0}),prepareGetValue:function(e){var t="",i=e.dimension;Object(b["hasOwn"])(e,"dimension")||Object(Dl["c"])(t);var a=n.getDimensionInfo(i);return a||Object(Dl["c"])(t),{dimIdx:a.index}},getValue:function(e){return n.retrieveValueFromItem(t,e.dimIdx)}}),a=[],o=0,r=n.count();o<r;o++)t=n.getRawDataItem(o),i.evaluate()&&a.push(t);return{data:a}}};var sI={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,i="",a=Object(jt["r"])(n);a.length||Object(Dl["c"])(i);var o=[];Object(b["each"])(a,(function(e){var n=e.dimension,a=e.order,r=e.parser,s=e.incomparable;if(null==n&&Object(Dl["c"])(i),"asc"!==a&&"desc"!==a&&Object(Dl["c"])(i),s&&"min"!==s&&"max"!==s){var l="";0,Object(Dl["c"])(l)}if("asc"!==a&&"desc"!==a){var c="";0,Object(Dl["c"])(c)}var u=t.getDimensionInfo(n);u||Object(Dl["c"])(i);var h=r?Object(vS["c"])(r):null;r&&!h&&Object(Dl["c"])(i),o.push({dimIdx:u.index,parser:h,comparator:new vS["a"](a,s)})}));var r=t.sourceFormat;r!==dg["c"]&&r!==dg["e"]&&Object(Dl["c"])(i);for(var s=[],l=0,c=t.count();l<c;l++)s.push(t.getRawDataItem(l));return s.sort((function(e,n){for(var i=0;i<o.length;i++){var a=o[i],r=t.retrieveValueFromItem(e,a.dimIdx),s=t.retrieveValueFromItem(n,a.dimIdx);a.parser&&(r=a.parser(r),s=a.parser(s));var l=a.comparator.evaluate(r,s);if(0!==l)return l}return 0})),{data:s}}};function lI(e){e.registerTransform(rI),e.registerTransform(sI)}var cI=n("5e81"),uI=F["a"].CMD;function hI(e,t){return Math.abs(e-t)<1e-5}function dI(e){var t,n,i,a,o,r=e.data,s=e.len(),l=[],c=0,u=0,h=0,d=0;function p(e,n){t&&t.length>2&&l.push(t),t=[e,n]}function g(e,n,i,a){hI(e,i)&&hI(n,a)||t.push(e,n,i,a,i,a)}function f(e,n,i,a,o,r){var s=Math.abs(n-e),l=4*Math.tan(s/4)/3,c=n<e?-1:1,u=Math.cos(e),h=Math.sin(e),d=Math.cos(n),p=Math.sin(n),g=u*o+i,f=h*r+a,y=d*o+i,v=p*r+a,m=o*l*c,b=r*l*c;t.push(g-m*h,f+b*u,y+m*p,v-b*d,y,v)}for(var y=0;y<s;){var v=r[y++],m=1===y;switch(m&&(c=r[y],u=r[y+1],h=c,d=u,v!==uI.L&&v!==uI.C&&v!==uI.Q||(t=[h,d])),v){case uI.M:c=h=r[y++],u=d=r[y++],p(h,d);break;case uI.L:n=r[y++],i=r[y++],g(c,u,n,i),c=n,u=i;break;case uI.C:t.push(r[y++],r[y++],r[y++],r[y++],c=r[y++],u=r[y++]);break;case uI.Q:n=r[y++],i=r[y++],a=r[y++],o=r[y++],t.push(c+2/3*(n-c),u+2/3*(i-u),a+2/3*(n-a),o+2/3*(i-o),a,o),c=a,u=o;break;case uI.A:var b=r[y++],x=r[y++],_=r[y++],O=r[y++],S=r[y++],w=r[y++]+S;y+=1;var M=!r[y++];n=Math.cos(S)*_+b,i=Math.sin(S)*O+x,m?(h=n,d=i,p(h,d)):g(c,u,n,i),c=Math.cos(w)*_+b,u=Math.sin(w)*O+x;for(var I=(M?-1:1)*Math.PI/2,j=S;M?j>w:j<w;j+=I){var A=M?Math.max(j+I,w):Math.min(j+I,w);f(j,A,b,x,_,O)}break;case uI.R:h=c=r[y++],d=u=r[y++],n=h+r[y++],i=d+r[y++],p(n,d),g(n,d,n,i),g(n,i,h,i),g(h,i,h,d),g(h,d,n,d);break;case uI.Z:t&&g(c,u,h,d),c=h,u=d;break}}return t&&t.length>2&&l.push(t),l}function pI(e,t,n,i,a,o,r,s,l,c){if(hI(e,n)&&hI(t,i)&&hI(a,r)&&hI(o,s))l.push(r,s);else{var u=2/c,h=u*u,d=r-e,p=s-t,g=Math.sqrt(d*d+p*p);d/=g,p/=g;var f=n-e,y=i-t,v=a-r,m=o-s,b=f*f+y*y,x=v*v+m*m;if(b<h&&x<h)l.push(r,s);else{var _=d*f+p*y,O=-d*v-p*m,S=b-_*_,w=x-O*O;if(S<h&&_>=0&&w<h&&O>=0)l.push(r,s);else{var M=[],I=[];Object(At["g"])(e,n,a,r,.5,M),Object(At["g"])(t,i,o,s,.5,I),pI(M[0],I[0],M[1],I[1],M[2],I[2],M[3],I[3],l,c),pI(M[4],I[4],M[5],I[5],M[6],I[6],M[7],I[7],l,c)}}}}function gI(e,t){var n=dI(e),i=[];t=t||1;for(var a=0;a<n.length;a++){var o=n[a],r=[],s=o[0],l=o[1];r.push(s,l);for(var c=2;c<o.length;){var u=o[c++],h=o[c++],d=o[c++],p=o[c++],g=o[c++],f=o[c++];pI(s,l,u,h,d,p,g,f,r,t),s=g,l=f}i.push(r)}return i}function fI(e,t,n){var i=e[t],a=e[1-t],o=Math.abs(i/a),r=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/r);0===s&&(s=1,r=n);for(var l=[],c=0;c<r;c++)l.push(s);var u=r*s,h=n-u;if(h>0)for(c=0;c<h;c++)l[c%r]+=1;return l}function yI(e,t,n){for(var i=e.r0,a=e.r,o=e.startAngle,r=e.endAngle,s=Math.abs(r-o),l=s*a,c=a-i,u=l>Math.abs(c),h=fI([l,c],u?0:1,t),d=(u?s:c)/h.length,p=0;p<h.length;p++)for(var g=(u?c:s)/h[p],f=0;f<h[p];f++){var y={};u?(y.startAngle=o+d*p,y.endAngle=o+d*(p+1),y.r0=i+g*f,y.r=i+g*(f+1)):(y.startAngle=o+g*f,y.endAngle=o+g*(f+1),y.r0=i+d*p,y.r=i+d*(p+1)),y.clockwise=e.clockwise,y.cx=e.cx,y.cy=e.cy,n.push(y)}}function vI(e,t,n){for(var i=e.width,a=e.height,o=i>a,r=fI([i,a],o?0:1,t),s=o?"width":"height",l=o?"height":"width",c=o?"x":"y",u=o?"y":"x",h=e[s]/r.length,d=0;d<r.length;d++)for(var p=e[l]/r[d],g=0;g<r[d];g++){var f={};f[c]=d*h,f[u]=g*p,f[s]=h,f[l]=p,f.x+=e.x,f.y+=e.y,n.push(f)}}function mI(e,t,n,i){return e*i-n*t}function bI(e,t,n,i,a,o,r,s){var l=n-e,c=i-t,u=r-a,h=s-o,d=mI(u,h,l,c);if(Math.abs(d)<1e-6)return null;var p=e-a,g=t-o,f=mI(p,g,u,h)/d;return f<0||f>1?null:new Qu["a"](f*l+e,f*c+t)}function xI(e,t,n){var i=new Qu["a"];Qu["a"].sub(i,n,t),i.normalize();var a=new Qu["a"];Qu["a"].sub(a,e,t);var o=a.dot(i);return o}function _I(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function OI(e,t,n){for(var i=e.length,a=[],o=0;o<i;o++){var r=e[o],s=e[(o+1)%i],l=bI(r[0],r[1],s[0],s[1],t.x,t.y,n.x,n.y);l&&a.push({projPt:xI(l,t,n),pt:l,idx:o})}if(a.length<2)return[{points:e},{points:e}];a.sort((function(e,t){return e.projPt-t.projPt}));var c=a[0],u=a[a.length-1];if(u.idx<c.idx){var h=c;c=u,u=h}var d=[c.pt.x,c.pt.y],p=[u.pt.x,u.pt.y],g=[d],f=[p];for(o=c.idx+1;o<=u.idx;o++)_I(g,e[o].slice());_I(g,p),_I(g,d);for(o=u.idx+1;o<=c.idx+i;o++)_I(f,e[o%i].slice());return _I(f,d),_I(f,p),[{points:g},{points:f}]}function SI(e){var t=e.points,n=[],i=[];Object(ms["d"])(t,n,i);var a=new li["a"](n[0],n[1],i[0]-n[0],i[1]-n[1]),o=a.width,r=a.height,s=a.x,l=a.y,c=new Qu["a"],u=new Qu["a"];return o>r?(c.x=u.x=s+o/2,c.y=l,u.y=l+r):(c.y=u.y=l+r/2,c.x=s,u.x=s+o),OI(t,c,u)}function wI(e,t,n,i){if(1===n)i.push(t);else{var a=Math.floor(n/2),o=e(t);wI(e,o[0],a,i),wI(e,o[1],n-a,i)}return i}function MI(e,t){for(var n=[],i=0;i<t;i++)n.push(Object(po["a"])(e));return n}function II(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function jI(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function AI(e,t){var n,i=[],a=e.shape;switch(e.type){case"rect":vI(a,t,i),n=Et["a"];break;case"sector":yI(a,t,i),n=zt["a"];break;case"circle":yI({r0:0,r:a.r,startAngle:0,endAngle:2*Math.PI,cx:a.cx,cy:a.cy},t,i),n=zt["a"];break;default:var o=e.getComputedTransform(),r=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,s=Object(b["map"])(gI(e.getUpdatedPathProxy(),r),(function(e){return jI(e)})),l=s.length;if(0===l)wI(SI,{points:s[0]},t,i);else if(l===t)for(var c=0;c<l;c++)i.push({points:s[c]});else{var u=0,h=Object(b["map"])(s,(function(e){var t=[],n=[];Object(ms["d"])(e,t,n);var i=(n[1]-t[1])*(n[0]-t[0]);return u+=i,{poly:e,area:i}}));h.sort((function(e,t){return t.area-e.area}));var d=t;for(c=0;c<l;c++){var p=h[c];if(d<=0)break;var g=c===l-1?d:Math.ceil(p.area/u*t);g<0||(wI(SI,{points:p.poly},g,i),d-=g)}}n=Oa["a"];break}if(!n)return MI(e,t);var f=[];for(c=0;c<i.length;c++){var y=new n;y.setShape(i[c]),II(e,y),f.push(y)}return f}function CI(e,t){var n=e.length,i=t.length;if(n===i)return[e,t];for(var a=[],o=[],r=n<i?e:t,s=Math.min(n,i),l=Math.abs(i-n)/6,c=(s-2)/6,u=Math.ceil(l/c)+1,h=[r[0],r[1]],d=l,p=2;p<s;){var g=r[p-2],f=r[p-1],y=r[p++],v=r[p++],m=r[p++],b=r[p++],x=r[p++],_=r[p++];if(d<=0)h.push(y,v,m,b,x,_);else{for(var O=Math.min(d,u-1)+1,S=1;S<=O;S++){var w=S/O;Object(At["g"])(g,y,m,x,w,a),Object(At["g"])(f,v,b,_,w,o),g=a[3],f=o[3],h.push(a[1],o[1],a[2],o[2],g,f),y=a[5],v=o[5],m=a[6],b=o[6]}d-=O-1}}return r===e?[h,t]:[e,h]}function TI(e,t){for(var n=e.length,i=e[n-2],a=e[n-1],o=[],r=0;r<t.length;)o[r++]=i,o[r++]=a;return o}function DI(e,t){for(var n,i,a,o=[],r=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],c=t[s],u=void 0,h=void 0;l?c?(n=CI(l,c),u=n[0],h=n[1],i=u,a=h):(h=TI(a||l,l),u=l):(u=TI(i||c,c),h=c),o.push(u),r.push(h)}return[o,r]}function LI(e){for(var t=0,n=0,i=0,a=e.length,o=0,r=a-2;o<a;r=o,o+=2){var s=e[r],l=e[r+1],c=e[o],u=e[o+1],h=s*u-c*l;t+=h,n+=(s+c)*h,i+=(l+u)*h}return 0===t?[e[0]||0,e[1]||0]:[n/t/3,i/t/3,t]}function PI(e,t,n,i){for(var a=(e.length-2)/6,o=1/0,r=0,s=e.length,l=s-2,c=0;c<a;c++){for(var u=6*c,h=0,d=0;d<s;d+=2){var p=0===d?u:(u+d-2)%l+2,g=e[p]-n[0],f=e[p+1]-n[1],y=t[d]-i[0],v=t[d+1]-i[1],m=y-g,b=v-f;h+=m*m+b*b}h<o&&(o=h,r=c)}return r}function kI(e){for(var t=[],n=e.length,i=0;i<n;i+=2)t[i]=e[n-i-2],t[i+1]=e[n-i-1];return t}function NI(e,t,n,i){for(var a,o=[],r=0;r<e.length;r++){var s=e[r],l=t[r],c=LI(s),u=LI(l);null==a&&(a=c[2]<0!==u[2]<0);var h=[],d=[],p=0,g=1/0,f=[],y=s.length;a&&(s=kI(s));for(var v=6*PI(s,l,c,u),m=y-2,b=0;b<m;b+=2){var x=(v+b)%m+2;h[b+2]=s[x]-c[0],h[b+3]=s[x+1]-c[1]}if(h[0]=s[v]-c[0],h[1]=s[v+1]-c[1],n>0)for(var _=i/n,O=-i/2;O<=i/2;O+=_){var S=Math.sin(O),w=Math.cos(O),M=0;for(b=0;b<s.length;b+=2){var I=h[b],j=h[b+1],A=l[b]-u[0],C=l[b+1]-u[1],T=A*w-C*S,D=A*S+C*w;f[b]=T,f[b+1]=D;var L=T-I,P=D-j;M+=L*L+P*P}if(M<g){g=M,p=O;for(var k=0;k<f.length;k++)d[k]=f[k]}}else for(var N=0;N<y;N+=2)d[N]=l[N]-u[0],d[N+1]=l[N+1]-u[1];o.push({from:h,to:d,fromCp:c,toCp:u,rotation:-p})}return o}function RI(e){return e.__isCombineMorphing}var VI="__mOriginal_";function EI(e,t,n){var i=VI+t,a=e[i]||e[t];e[i]||(e[i]=e[t]);var o=n.replace,r=n.after,s=n.before;e[t]=function(){var e,t=arguments;return s&&s.apply(this,t),e=o?o.apply(this,t):a.apply(this,t),r&&r.apply(this,t),e}}function zI(e,t){var n=VI+t;e[n]&&(e[t]=e[n],e[n]=null)}function BI(e,t){for(var n=0;n<e.length;n++)for(var i=e[n],a=0;a<i.length;){var o=i[a],r=i[a+1];i[a++]=t[0]*o+t[2]*r+t[4],i[a++]=t[1]*o+t[3]*r+t[5]}}function GI(e,t){var n=e.getUpdatedPathProxy(),i=t.getUpdatedPathProxy(),a=DI(dI(n),dI(i)),o=a[0],r=a[1],s=e.getComputedTransform(),l=t.getComputedTransform();function c(){this.transform=null}s&&BI(o,s),l&&BI(r,l),EI(t,"updateTransform",{replace:c}),t.transform=null;var u=NI(o,r,10,Math.PI),h=[];EI(t,"buildPath",{replace:function(e){for(var n=t.__morphT,i=1-n,a=[],o=0;o<u.length;o++){var r=u[o],s=r.from,l=r.to,c=r.rotation*n,d=r.fromCp,p=r.toCp,g=Math.sin(c),f=Math.cos(c);Object(Ri["lerp"])(a,d,p,n);for(var y=0;y<s.length;y+=2){var v=s[y],m=s[y+1],b=l[y],x=l[y+1],_=v*i+b*n,O=m*i+x*n;h[y]=_*f-O*g+a[0],h[y+1]=_*g+O*f+a[1]}var S=h[0],w=h[1];e.moveTo(S,w);for(y=2;y<s.length;){b=h[y++],x=h[y++];var M=h[y++],I=h[y++],j=h[y++],A=h[y++];S===b&&w===x&&M===j&&I===A?e.lineTo(j,A):e.bezierCurveTo(b,x,M,I,j,A),S=j,w=A}}}})}function FI(e,t,n){if(!e||!t)return t;var i=n.done,a=n.during;function o(){zI(t,"buildPath"),zI(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return GI(e,t),t.__morphT=0,t.animateTo({__morphT:1},Object(b["defaults"])({during:function(e){t.dirtyShape(),a&&a(e)},done:function(){o(),i&&i()}},n)),t}function HI(e,t,n,i,a,o){var r=16;e=a===n?0:Math.round(32767*(e-n)/(a-n)),t=o===i?0:Math.round(32767*(t-i)/(o-i));for(var s,l=0,c=(1<<r)/2;c>0;c/=2){var u=0,h=0;(e&c)>0&&(u=1),(t&c)>0&&(h=1),l+=c*c*(3*u^h),0===h&&(1===u&&(e=c-1-e,t=c-1-t),s=e,e=t,t=s)}return l}function WI(e){var t=1/0,n=1/0,i=-1/0,a=-1/0,o=Object(b["map"])(e,(function(e){var o=e.getBoundingRect(),r=e.getComputedTransform(),s=o.x+o.width/2+(r?r[4]:0),l=o.y+o.height/2+(r?r[5]:0);return t=Math.min(s,t),n=Math.min(l,n),i=Math.max(s,i),a=Math.max(l,a),[s,l]})),r=Object(b["map"])(o,(function(o,r){return{cp:o,z:HI(o[0],o[1],t,n,i,a),path:e[r]}}));return r.sort((function(e,t){return e.z-t.z})).map((function(e){return e.path}))}function YI(e){return AI(e.path,e.count)}function ZI(){return{fromIndividuals:[],toIndividuals:[],count:0}}function XI(e,t,n){var i=[];function a(e){for(var t=0;t<e.length;t++){var n=e[t];RI(n)?a(n.childrenRef()):n instanceof s["b"]&&i.push(n)}}a(e);var o=i.length;if(!o)return ZI();var r=n.dividePath||YI,l=r({path:t,count:o});if(l.length!==o)return console.error("Invalid morphing: unmatched splitted path"),ZI();i=WI(i),l=WI(l);for(var c=n.done,u=n.during,h=n.individualDelay,d=new G["c"],p=0;p<o;p++){var g=i[p],f=l[p];f.parent=t,f.copyTransform(d),h||GI(g,f)}function y(e){for(var t=0;t<l.length;t++)l[t].addSelfToZr(e)}function v(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,zI(t,"addSelfToZr"),zI(t,"removeSelfFromZr")}t.__isCombineMorphing=!0,t.childrenRef=function(){return l},EI(t,"addSelfToZr",{after:function(e){y(e)}}),EI(t,"removeSelfFromZr",{after:function(e){for(var t=0;t<l.length;t++)l[t].removeSelfFromZr(e)}});var m=l.length;if(h){var x=m,_=function(){x--,0===x&&(v(),c&&c())};for(p=0;p<m;p++){var O=h?Object(b["defaults"])({delay:(n.delay||0)+h(p,m,i[p],l[p]),done:_},n):n;FI(i[p],l[p],O)}}else t.__morphT=0,t.animateTo({__morphT:1},Object(b["defaults"])({during:function(e){for(var n=0;n<m;n++){var i=l[n];i.__morphT=t.__morphT,i.dirtyShape()}u&&u(e)},done:function(){v();for(var t=0;t<e.length;t++)zI(e[t],"updateTransform");c&&c()}},n));return t.__zr&&y(t.__zr),{fromIndividuals:i,toIndividuals:l,count:m}}function UI(e,t,n){var i=t.length,a=[],o=n.dividePath||YI;function r(e){for(var t=0;t<e.length;t++){var n=e[t];RI(n)?r(n.childrenRef()):n instanceof s["b"]&&a.push(n)}}if(RI(e)){r(e.childrenRef());var l=a.length;if(l<i)for(var c=0,u=l;u<i;u++)a.push(Object(po["a"])(a[c++%l]));a.length=i}else{a=o({path:e,count:i});var h=e.getComputedTransform();for(u=0;u<a.length;u++)a[u].setLocalTransform(h);if(a.length!==i)return console.error("Invalid morphing: unmatched splitted path"),ZI()}a=WI(a),t=WI(t);var d=n.individualDelay;for(u=0;u<i;u++){var p=d?Object(b["defaults"])({delay:(n.delay||0)+d(u,i,a[u],t[u])},n):n;FI(a[u],t[u],p)}return{fromIndividuals:a,toIndividuals:t,count:t.length}}function qI(e){return Object(b["isArray"])(e[0])}function JI(e,t){for(var n=[],i=e.length,a=0;a<i;a++)n.push({one:e[a],many:[]});for(a=0;a<t.length;a++){var o=t[a].length,r=void 0;for(r=0;r<o;r++)n[r%i].many.push(t[a][r])}var s=0;for(a=i-1;a>=0;a--)if(!n[a].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var c=Math.ceil(o/2);n[a].many=l.slice(c,o),n[s].many=l.slice(0,c),s++}return n}var KI={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),i=0;i<e.count;i++){var a=Object(po["a"])(e.path);a.setStyle("opacity",n),t.push(a)}return t},split:null};function $I(e,t,n,i,a,o){if(e.length&&t.length){var r=Object(it["a"])("update",i,a);if(r&&r.duration>0){var s,l,c=i.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},r);qI(e)&&(s=e,l=t),qI(t)&&(s=t,l=e);for(var h=s?s===e:e.length>t.length,d=s?JI(l,s):JI(h?t:e,[h?e:t]),p=0,g=0;g<d.length;g++)p+=d[g].many.length;var f=0;for(g=0;g<d.length;g++)y(d[g],h,f,p),f+=d[g].many.length}}function y(e,t,i,a,r){var s=e.many,l=e.one;if(1!==s.length||r)for(var h=Object(b["defaults"])({dividePath:KI[n],individualDelay:c&&function(e,t,n,o){return c(e+i,a)}},u),d=t?XI(s,l,h):UI(l,s,h),p=d.fromIndividuals,g=d.toIndividuals,f=p.length,v=0;v<f;v++){_=c?Object(b["defaults"])({delay:c(v,f)},u):u;o(p[v],g[v],t?s[v]:e.one,t?e.one:s[v],_)}else{var m=t?s[0]:l,x=t?l:s[0];if(RI(m))y({many:[m],one:x},!0,i,a,!0);else{var _=c?Object(b["defaults"])({delay:c(i,a)},u):u;FI(m,x,_),o(m,x,m,x,_)}}}}function QI(e){if(!e)return[];if(Object(b["isArray"])(e)){for(var t=[],n=0;n<e.length;n++)t.push(QI(e[n]));return t}var i=[];return e.traverse((function(e){e instanceof s["b"]&&!e.disableMorphing&&!e.invisible&&!e.ignore&&i.push(e)})),i}var ej=1e4,tj=Object(jt["o"])();function nj(e){for(var t=e.dimensions,n=0;n<t.length;n++){var i=e.getDimensionInfo(t[n]);if(i&&0===i.otherDims.itemGroupId)return t[n]}}function ij(e){var t=[];return Object(b["each"])(e,(function(e){var n=e.data;if(!(n.count()>ej))for(var i=n.getIndices(),a=nj(n),o=0;o<i.length;o++)t.push({dataGroupId:e.dataGroupId,data:n,dim:e.dim||a,divide:e.divide,dataIndex:o})})),t}function aj(e,t,n){e.traverse((function(e){e instanceof s["b"]&&Object(it["c"])(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})}))}function oj(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function rj(e){e.stopAnimation(),e.isGroup&&e.traverse((function(e){e.stopAnimation()}))}function sj(e,t,n){var i=Object(it["a"])("update",n,t);i&&e.traverse((function(e){if(e instanceof cr["c"]){var t=Object(it["b"])(e);t&&e.animateFrom({style:t},i)}}))}function lj(e,t){var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++){var a=e[i],o=t[i];if(a.data.getId(a.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}function cj(e,t,n){var i=ij(e),a=ij(t);function o(e,t,n,i,a){(n||e)&&t.animateFrom({style:n&&n!==e?Object(b["extend"])(Object(b["extend"])({},n.style),e.style):e.style},a)}function r(e){for(var t=0;t<e.length;t++)if(e[t].dim)return e[t].dim}var l=r(i),c=r(a),u=!1;function h(e,t){return function(n){var i=n.data,a=n.dataIndex;if(t)return i.getId(a);var o=n.dataGroupId,r=e?l||c:c||l,s=r&&i.getDimensionInfo(r),u=s&&s.ordinalMeta;if(s){var h=i.get(s.name,a);return u&&u.categories[h]||h+""}var d=i.getRawDataItem(a);return d&&d.groupId?d.groupId+"":o||i.getId(a)}}var d=lj(i,a),p={};if(!d)for(var g=0;g<a.length;g++){var f=a[g],y=f.data.getItemGraphicEl(f.dataIndex);y&&(p[y.id]=!0)}function v(e,t){var n=i[t],r=a[e],s=r.data.hostModel,l=n.data.getItemGraphicEl(n.dataIndex),c=r.data.getItemGraphicEl(r.dataIndex);l!==c?l&&p[l.id]||c&&(rj(c),l?(rj(l),oj(l),u=!0,$I(QI(l),QI(c),r.divide,s,e,o)):aj(c,s,e)):c&&sj(c,r.dataIndex,s)}new al["a"](i,a,h(!0,d),h(!1,d),null,"multiple").update(v).updateManyToOne((function(e,t){var n=a[e],r=n.data,s=r.hostModel,l=r.getItemGraphicEl(n.dataIndex),c=Object(b["filter"])(Object(b["map"])(t,(function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)})),(function(e){return e&&e!==l&&!p[e.id]}));l&&(rj(l),c.length?(Object(b["each"])(c,(function(e){rj(e),oj(e)})),u=!0,$I(QI(c),QI(l),n.divide,s,e,o)):aj(l,s,n.dataIndex))})).updateOneToMany((function(e,t){var n=i[t],r=n.data.getItemGraphicEl(n.dataIndex);if(!r||!p[r.id]){var s=Object(b["filter"])(Object(b["map"])(e,(function(e){return a[e].data.getItemGraphicEl(a[e].dataIndex)})),(function(e){return e&&e!==r})),l=a[e[0]].data.hostModel;s.length&&(Object(b["each"])(s,(function(e){return rj(e)})),r?(rj(r),oj(r),u=!0,$I(QI(r),QI(s),n.divide,l,e[0],o)):Object(b["each"])(s,(function(t){return aj(t,l,e[0])})))}})).updateManyToMany((function(e,t){new al["a"](t,e,(function(e){return i[e].data.getId(i[e].dataIndex)}),(function(e){return a[e].data.getId(a[e].dataIndex)})).update((function(n,i){v(e[n],t[i])})).execute()})).execute(),u&&Object(b["each"])(t,(function(e){var t=e.data,i=t.hostModel,a=i&&n.getViewOfSeriesModel(i),o=Object(it["a"])("update",i,0);a&&i.isAnimationEnabled()&&o&&o.duration>0&&a.group.traverse((function(e){e instanceof s["b"]&&!e.animators.length&&e.animateFrom({style:{opacity:0}},o)}))}))}function uj(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function hj(e){return Object(b["isArray"])(e)?e.sort().join(","):e}function dj(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function pj(e,t){var n=Object(b["createHashMap"])(),i=Object(b["createHashMap"])(),a=Object(b["createHashMap"])();return Object(b["each"])(e.oldSeries,(function(t,n){var o=e.oldDataGroupIds[n],r=e.oldData[n],s=uj(t),l=hj(s);i.set(l,{dataGroupId:o,data:r}),Object(b["isArray"])(s)&&Object(b["each"])(s,(function(e){a.set(e,{key:l,dataGroupId:o,data:r})}))})),Object(b["each"])(t.updatedSeries,(function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get("dataGroupId"),o=e.getData(),r=uj(e),s=hj(r),l=i.get(s);if(l)n.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:dj(l.data),data:l.data}],newSeries:[{dataGroupId:t,divide:dj(o),data:o}]});else if(Object(b["isArray"])(r)){0;var c=[];Object(b["each"])(r,(function(e){var t=i.get(e);t.data&&c.push({dataGroupId:t.dataGroupId,divide:dj(t.data),data:t.data})})),c.length&&n.set(s,{oldSeries:c,newSeries:[{dataGroupId:t,data:o,divide:dj(o)}]})}else{var u=a.get(r);if(u){var h=n.get(u.key);h||(h={oldSeries:[{dataGroupId:u.dataGroupId,data:u.data,divide:dj(u.data)}],newSeries:[]},n.set(u.key,h)),h.newSeries.push({dataGroupId:t,data:o,divide:dj(o)})}}}})),n}function gj(e,t){for(var n=0;n<e.length;n++){var i=null!=t.seriesIndex&&t.seriesIndex===e[n].seriesIndex||null!=t.seriesId&&t.seriesId===e[n].id;if(i)return n}}function fj(e,t,n,i){var a=[],o=[];Object(b["each"])(Object(jt["r"])(e.from),(function(e){var n=gj(t.oldSeries,e);n>=0&&a.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:dj(t.oldData[n]),dim:e.dimension})})),Object(b["each"])(Object(jt["r"])(e.to),(function(e){var i=gj(n.updatedSeries,e);if(i>=0){var a=n.updatedSeries[i].getData();o.push({dataGroupId:t.oldDataGroupIds[i],data:a,divide:dj(a),dim:e.dimension})}})),a.length>0&&o.length>0&&cj(a,o,i)}function yj(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){Object(b["each"])(Object(jt["r"])(n.seriesTransition),(function(e){Object(b["each"])(Object(jt["r"])(e.to),(function(e){for(var t=n.updatedSeries,i=0;i<t.length;i++)(null!=e.seriesIndex&&e.seriesIndex===t[i].seriesIndex||null!=e.seriesId&&e.seriesId===t[i].id)&&(t[i][$e["a"]]=!0)}))}))})),e.registerUpdateLifecycle("series:transition",(function(e,t,n){var i=tj(t);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)Object(b["each"])(Object(jt["r"])(a),(function(e){fj(e,i,n,t)}));else{var o=pj(i,n);Object(b["each"])(o.keys(),(function(e){var n=o.get(e);cj(n.oldSeries,n.newSeries,t)}))}Object(b["each"])(n.updatedSeries,(function(e){e[$e["a"]]&&(e[$e["a"]]=!1)}))}for(var r=e.getSeries(),s=i.oldSeries=[],l=i.oldDataGroupIds=[],c=i.oldData=[],u=0;u<r.length;u++){var h=r[u].getData();h.count()<ej&&(s.push(r[u]),l.push(r[u].get("dataGroupId")),c.push(h))}}))}var vj=n("ee29");Object(i["a"])([o["a"]]),Object(i["a"])([qe]),Object(i["a"])([mn,ai,oi["a"],ya,Za,is,qs,jc,Fu,$u,hh,yp,Up,gg,Fg,Jg,Of,Pf,cy,by,zy,ym]),Object(i["a"])(mm),Object(i["a"])(db),Object(i["a"])(ns),Object(i["a"])(Eb),Object(i["a"])(fp),Object(i["a"])(qb),Object(i["a"])(px),Object(i["a"])(Q_),Object(i["a"])(eO["a"]),Object(i["a"])(vm["a"]),Object(i["a"])(RO),Object(i["a"])(VO["a"]),Object(i["a"])(cS),Object(i["a"])(RS),Object(i["a"])(US),Object(i["a"])(sw),Object(i["a"])(lw["a"]),Object(i["a"])(Hw),Object(i["a"])(Mw),Object(i["a"])(Fw),Object(i["a"])(zM),Object(i["a"])(DM),Object(i["a"])(EM),Object(i["a"])(YM),Object(i["a"])(lI),Object(i["a"])(cI["a"]),Object(i["a"])(yj),Object(i["a"])(vj["a"])}}]);
|