| 12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d827b838"],{"70c2":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAE6ADAAQAAAABAAAAEwAAAAADp3KcAAAB6UlEQVQ4EbWUz0tVQRTHv+feefoMpYWbXBTkxoUPX4vaCCJI5VsYbSIXLgzC+8rctGjjUvwj9HmjtdEmghYJEZSrCnz5G6S3UNBNkKCF3pl7OqNc5z4ofPhsNnOG8z2fc+d+Z4Z4Y/Sy3jNzROjAGQcD60rxbWVBSuEZ5abfnJEFXire0RG9gy4XBVz/sByvfowj/H8Ybz5t4sqDrOtZW6TSMl4evWS0eW5+7PcDDXvyH176MBOUD7eicvCBgF2VL90VXbOO9HtZX/Uz1Eud0yuWUwUzkZkB+AY87zEQ/0SM0JDfKLrhpCl/CTLS8BWBOnzP9FFneASqgvFK0GYiDDDTZKZrSqCCXQi2Zfpl4+NBZBRegLnP9+gmdYVfk4yd3ZcdeO3w5JQQ5hMBXSt9SuLjmftBZEUZQ9xSnQOcmyresUnh5RNRtFi8xYsj3claIPu+H/fI+i1iCnn1SavLpWG50ndmzMfAQ70wMhCViwWKMatjGnQF/JFyM5/FlDEwLppDPeVyKZjcTVbZ6L5MFZD3WjYzKwVzCr/H0wU2FncrsttJCe/pb4+GTvJ/u07i2AXr2omohsBynAGpArpeSjmYSpwSOgNOEdaSPl+YHJo1+x7V0vlfGlsvnHXi5eCKfdjqfGnXlNGFP4mtwBxnmMoaAAAAAElFTkSuQmCC"},a49f:function(e,t,n){"use strict";n.r(t),n.d(t,"version",(function(){return a["bb"]})),n.d(t,"dependencies",(function(){return a["l"]})),n.d(t,"PRIORITY",(function(){return a["g"]})),n.d(t,"init",(function(){return a["B"]})),n.d(t,"connect",(function(){return a["j"]})),n.d(t,"disConnect",(function(){return a["m"]})),n.d(t,"disconnect",(function(){return a["n"]})),n.d(t,"dispose",(function(){return a["o"]})),n.d(t,"getInstanceByDom",(function(){return a["w"]})),n.d(t,"getInstanceById",(function(){return a["x"]})),n.d(t,"registerTheme",(function(){return a["R"]})),n.d(t,"registerPreprocessor",(function(){return a["P"]})),n.d(t,"registerProcessor",(function(){return a["Q"]})),n.d(t,"registerPostInit",(function(){return a["N"]})),n.d(t,"registerPostUpdate",(function(){return a["O"]})),n.d(t,"registerUpdateLifecycle",(function(){return a["T"]})),n.d(t,"registerAction",(function(){return a["H"]})),n.d(t,"registerCoordinateSystem",(function(){return a["I"]})),n.d(t,"getCoordinateSystemDimensions",(function(){return a["v"]})),n.d(t,"registerLocale",(function(){return a["L"]})),n.d(t,"registerLayout",(function(){return a["J"]})),n.d(t,"registerVisual",(function(){return a["U"]})),n.d(t,"registerLoading",(function(){return a["K"]})),n.d(t,"setCanvasCreator",(function(){return a["V"]})),n.d(t,"registerMap",(function(){return a["M"]})),n.d(t,"getMap",(function(){return a["y"]})),n.d(t,"registerTransform",(function(){return a["S"]})),n.d(t,"dataTool",(function(){return a["k"]})),n.d(t,"zrender",(function(){return a["db"]})),n.d(t,"matrix",(function(){return a["D"]})),n.d(t,"vector",(function(){return a["ab"]})),n.d(t,"zrUtil",(function(){return a["cb"]})),n.d(t,"color",(function(){return a["i"]})),n.d(t,"throttle",(function(){return a["W"]})),n.d(t,"helper",(function(){return a["A"]})),n.d(t,"use",(function(){return a["Y"]})),n.d(t,"parseGeoJSON",(function(){return a["F"]})),n.d(t,"parseGeoJson",(function(){return a["G"]})),n.d(t,"number",(function(){return a["E"]})),n.d(t,"time",(function(){return a["X"]})),n.d(t,"graphic",(function(){return a["z"]})),n.d(t,"format",(function(){return a["u"]})),n.d(t,"util",(function(){return a["Z"]})),n.d(t,"env",(function(){return a["p"]})),n.d(t,"List",(function(){return a["e"]})),n.d(t,"Model",(function(){return a["f"]})),n.d(t,"Axis",(function(){return a["a"]})),n.d(t,"ComponentModel",(function(){return a["c"]})),n.d(t,"ComponentView",(function(){return a["d"]})),n.d(t,"SeriesModel",(function(){return a["h"]})),n.d(t,"ChartView",(function(){return a["b"]})),n.d(t,"innerDrawElementOnCanvas",(function(){return a["C"]})),n.d(t,"extendComponentModel",(function(){return a["r"]})),n.d(t,"extendComponentView",(function(){return a["s"]})),n.d(t,"extendSeriesModel",(function(){return a["t"]})),n.d(t,"extendChartView",(function(){return a["q"]}));var i=n("b5c7"),a=n("c146"),r=n("b50b"),o=n("de21");function s(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function l(e){var t;if(e&&"transparent"!==e){if("string"===typeof e&&e.indexOf("rgba")>-1){var n=Object(o["parse"])(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}}else e="none";return{color:e,opacity:null==t?1:t}}var c=n("d026"),u=n("f9cc"),d=n("9c6c"),p=n("d4dc");function h(e,t,n){n||(n=function(e,t){return e===t}),e=e.slice(),t=t.slice();var i=t.length,a=e.length,r=1,o=i+a,s=[{newPos:-1,components:[]}],l=g(s[0],t,e,0,n);if(s[0].newPos+1>=i&&l+1>=a){for(var c=[],u=0;u<t.length;u++)c.push(u);return[{indices:c,count:t.length,added:!1,removed:!1}]}function d(){for(var o=-1*r;o<=r;o+=2){var l,c=s[o-1],u=s[o+1],d=(u?u.newPos:0)-o;c&&(s[o-1]=void 0);var p=c&&c.newPos+1<i,h=u&&0<=d&&d<a;if(p||h){if(!p||h&&c.newPos<u.newPos?(l=m(u),f(l.components,!1,!0)):(l=c,l.newPos++,f(l.components,!0,!1)),d=g(l,t,e,o,n),l.newPos+1>=i&&d+1>=a)return y(l.components);s[o]=l}else s[o]=void 0}r++}while(r<=o){var p=d();if(p)return p}}function g(e,t,n,i,a){var r=t.length,o=n.length,s=e.newPos,l=s-i,c=0;while(s+1<r&&l+1<o&&a(t[s+1],n[l+1]))s++,l++,c++;return c&&e.components.push({count:c,added:!1,removed:!1,indices:[]}),e.newPos=s,l}function f(e,t,n){var i=e[e.length-1];i&&i.added===t&&i.removed===n?e[e.length-1]={count:i.count+1,added:t,removed:n,indices:[]}:e.push({count:1,added:t,removed:n,indices:[]})}function y(e){for(var t=0,n=e.length,i=0,a=0;t<n;t++){var r=e[t];if(r.removed){for(s=a;s<a+r.count;s++)r.indices.push(s);a+=r.count}else{for(var o=[],s=i;s<i+r.count;s++)o.push(s);r.indices=o,i+=r.count,r.added||(a+=r.count)}}return e}function m(e){return{newPos:e.newPos,components:e.components.slice(0)}}function v(e,t,n){return h(e,t,n)}var b=n("08c2"),x=n("2846"),_=n("df28"),S="none",w=Math.round,O=Math.sin,M=Math.cos,I=Math.PI,A=2*Math.PI,j=180/I,D=1e-4;function C(e){return w(1e3*e)/1e3}function T(e){return w(1e4*e)/1e4}function L(e){return e<D&&e>-D}function P(e){var t=e.fill;return null!=t&&t!==S}function N(e){var t=e.stroke;return null!=t&&t!==S}function k(e,t){t&&E(e,"transform","matrix("+C(t[0])+","+C(t[1])+","+C(t[2])+","+C(t[3])+","+T(t[4])+","+T(t[5])+")")}function E(e,t,n){(!n||"linear"!==n.type&&"radial"!==n.type)&&e.setAttribute(t,n)}function V(e,t,n){e.setAttributeNS("http://www.w3.org/1999/xlink",t,n)}function R(e,t,n){e.setAttributeNS("http://www.w3.org/XML/1998/namespace",t,n)}function z(e,t,n){var i=null==t.opacity?1:t.opacity;if(n instanceof d["a"])E(e,"opacity",i+"");else{if(P(t)){var a=l(t.fill);E(e,"fill",a.color),E(e,"fill-opacity",(null!=t.fillOpacity?t.fillOpacity*a.opacity*i:a.opacity*i)+"")}else E(e,"fill",S);if(N(t)){var r=l(t.stroke);E(e,"stroke",r.color);var o=t.lineWidth,s=t.strokeNoScale?n.getLineScale():1;E(e,"stroke-width",(s?o/s:0)+""),E(e,"paint-order",t.strokeFirst?"stroke":"fill"),E(e,"stroke-opacity",(null!=t.strokeOpacity?t.strokeOpacity*r.opacity*i:r.opacity*i)+"");var u=t.lineDash&&o>0&&Object(_["a"])(t.lineDash,o);if(u){var p=t.lineDashOffset;s&&1!==s&&(u=Object(c["map"])(u,(function(e){return e/s})),p&&(p/=s,p=w(p))),E(e,"stroke-dasharray",u.join(",")),E(e,"stroke-dashoffset",(p||0)+"")}else E(e,"stroke-dasharray",S);t.lineCap&&E(e,"stroke-linecap",t.lineCap),t.lineJoin&&E(e,"stroke-linejoin",t.lineJoin),t.miterLimit&&E(e,"stroke-miterlimit",t.miterLimit+"")}else E(e,"stroke",S)}}var B=function(){function e(){}return e.prototype.reset=function(){this._d=[],this._str=""},e.prototype.moveTo=function(e,t){this._add("M",e,t)},e.prototype.lineTo=function(e,t){this._add("L",e,t)},e.prototype.bezierCurveTo=function(e,t,n,i,a,r){this._add("C",e,t,n,i,a,r)},e.prototype.quadraticCurveTo=function(e,t,n,i){this._add("Q",e,t,n,i)},e.prototype.arc=function(e,t,n,i,a,r){this.ellipse(e,t,n,n,0,i,a,r)},e.prototype.ellipse=function(e,t,n,i,a,r,o,s){var l=0===this._d.length,c=o-r,u=!s,d=Math.abs(c),p=L(d-A)||(u?c>=A:-c>=A),h=c>0?c%A:c%A+A,g=!1;g=!!p||!L(d)&&h>=I===!!u;var f=T(e+n*M(r)),y=T(t+i*O(r));p&&(c=u?A-1e-4:1e-4-A,g=!0,l&&this._d.push("M",f,y));var m=T(e+n*M(r+c)),v=T(t+i*O(r+c));if(isNaN(f)||isNaN(y)||isNaN(n)||isNaN(i)||isNaN(a)||isNaN(j)||isNaN(m)||isNaN(v))return"";this._d.push("A",T(n),T(i),w(a*j),+g,+u,m,v)},e.prototype.rect=function(e,t,n,i){this._add("M",e,t),this._add("L",e+n,t),this._add("L",e+n,t+i),this._add("L",e,t+i),this._add("L",e,t),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,i,a,r,o,s,l){this._d.push(e);for(var c=1;c<arguments.length;c++){var u=arguments[c];if(isNaN(u))return void(this._invalid=!0);this._d.push(T(u))}},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(" "),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),G={brush:function(e){var t=e.style,n=e.__svgEl;n||(n=s("path"),e.__svgEl=n),e.path||e.createPathProxy();var i=e.path;e.shapeChanged()&&(i.beginPath(),e.buildPath(i,e.shape),e.pathUpdated());var a=i.getVersion(),r=e,o=r.__svgPathBuilder;(r.__svgPathVersion!==a||!o||e.style.strokePercent<1)&&(o||(o=r.__svgPathBuilder=new B),o.reset(),i.rebuildPath(o,e.style.strokePercent),o.generateStr(),r.__svgPathVersion=a),E(n,"d",o.getStr()),z(n,t,e),k(n,e.transform)}},H={brush:function(e){var t=e.style,n=t.image;if(n instanceof HTMLImageElement?n=n.src:n instanceof HTMLCanvasElement&&(n=n.toDataURL()),n){var i=t.x||0,a=t.y||0,r=t.width,o=t.height,l=e.__svgEl;l||(l=s("image"),e.__svgEl=l),n!==e.__imageSrc&&(V(l,"href",n),e.__imageSrc=n),E(l,"width",r+""),E(l,"height",o+""),E(l,"x",i+""),E(l,"y",a+""),z(l,t,e),k(l,e.transform)}}},W={left:"start",right:"end",center:"middle",middle:"middle"};function F(e,t,n){return"top"===n?e+=t/2:"bottom"===n&&(e-=t/2),e}var U={brush:function(e){var t=e.style,n=t.text;if(null!=n&&(n+=""),n&&!isNaN(t.x)&&!isNaN(t.y)){var i=e.__svgEl;i||(i=s("text"),R(i,"xml:space","preserve"),e.__svgEl=i);var a=t.font||x["a"],r=i.style;r.font=a,i.textContent=n,z(i,t,e),k(i,e.transform);var o=t.x||0,l=F(t.y||0,Object(x["f"])(a),t.textBaseline),c=W[t.textAlign]||t.textAlign;E(i,"dominant-baseline","central"),E(i,"text-anchor",c),E(i,"x",o+""),E(i,"y",l+"")}}},Y="0",X="1",Z=function(){function e(e,t,n,i,a){this.nextId=0,this._domName="_dom",this.createElement=s,this._zrId=e,this._svgRoot=t,this._tagNames="string"===typeof n?[n]:n,this._markLabel=i,a&&(this._domName=a)}return e.prototype.getDefs=function(e){var t=this._svgRoot,n=this._svgRoot.getElementsByTagName("defs");if(0===n.length){if(e){var i=t.insertBefore(this.createElement("defs"),t.firstChild);return i.contains||(i.contains=function(e){var t=i.children;if(!t)return!1;for(var n=t.length-1;n>=0;--n)if(t[n]===e)return!0;return!1}),i}return null}return n[0]},e.prototype.doUpdate=function(e,t){if(e){var n=this.getDefs(!1);if(e[this._domName]&&n.contains(e[this._domName]))"function"===typeof t&&t(e);else{var i=this.add(e);i&&(e[this._domName]=i)}}},e.prototype.add=function(e){return null},e.prototype.addDom=function(e){var t=this.getDefs(!0);e.parentNode!==t&&t.appendChild(e)},e.prototype.removeDom=function(e){var t=this.getDefs(!1);t&&e[this._domName]&&(t.removeChild(e[this._domName]),e[this._domName]=null)},e.prototype.getDoms=function(){var e=this.getDefs(!1);if(!e)return[];var t=[];return c["each"](this._tagNames,(function(n){for(var i=e.getElementsByTagName(n),a=0;a<i.length;a++)t.push(i[a])})),t},e.prototype.markAllUnused=function(){var e=this.getDoms(),t=this;c["each"](e,(function(e){e[t._markLabel]=Y}))},e.prototype.markDomUsed=function(e){e&&(e[this._markLabel]=X)},e.prototype.markDomUnused=function(e){e&&(e[this._markLabel]=Y)},e.prototype.isDomUnused=function(e){return e&&e[this._markLabel]!==X},e.prototype.removeUnused=function(){var e=this,t=this.getDefs(!1);if(t){var n=this.getDoms();c["each"](n,(function(n){e.isDomUnused(n)&&t.removeChild(n)}))}},e.prototype.getSvgProxy=function(e){return e instanceof u["b"]?G:e instanceof d["a"]?H:e instanceof p["a"]?U:G},e.prototype.getSvgElement=function(e){return e.__svgEl},e}(),q=Z;function K(e){return"linear"===e.type}function Q(e){return"radial"===e.type}function J(e){return e&&("linear"===e.type||"radial"===e.type)}var $=function(e){function t(t,n){return e.call(this,t,n,["linearGradient","radialGradient"],"__gradient_in_use__")||this}return Object(b["b"])(t,e),t.prototype.addWithoutUpdate=function(e,t){if(t&&t.style){var n=this;c["each"](["fill","stroke"],(function(i){var a=t.style[i];if(J(a)){var r=a,o=n.getDefs(!0),s=void 0;r.__dom?(s=r.__dom,o.contains(r.__dom)||n.addDom(s)):s=n.add(r),n.markUsed(t);var l=s.getAttribute("id");e.setAttribute(i,"url(#"+l+")")}}))}},t.prototype.add=function(e){var t;if(K(e))t=this.createElement("linearGradient");else{if(!Q(e))return c["logError"]("Illegal gradient type."),null;t=this.createElement("radialGradient")}return e.id=e.id||this.nextId++,t.setAttribute("id","zr"+this._zrId+"-gradient-"+e.id),this.updateDom(e,t),this.addDom(t),t},t.prototype.update=function(e){if(J(e)){var t=this;this.doUpdate(e,(function(){var n=e.__dom;if(n){var i=n.tagName,a=e.type;"linear"===a&&"linearGradient"===i||"radial"===a&&"radialGradient"===i?t.updateDom(e,e.__dom):(t.removeDom(e),t.add(e))}}))}},t.prototype.updateDom=function(e,t){if(K(e))t.setAttribute("x1",e.x+""),t.setAttribute("y1",e.y+""),t.setAttribute("x2",e.x2+""),t.setAttribute("y2",e.y2+"");else{if(!Q(e))return void c["logError"]("Illegal gradient type.");t.setAttribute("cx",e.x+""),t.setAttribute("cy",e.y+""),t.setAttribute("r",e.r+"")}e.global?t.setAttribute("gradientUnits","userSpaceOnUse"):t.setAttribute("gradientUnits","objectBoundingBox"),t.innerHTML="";for(var n=e.colorStops,i=0,a=n.length;i<a;++i){var r=this.createElement("stop");r.setAttribute("offset",100*n[i].offset+"%");var s=n[i].color;if(s.indexOf("rgba")>-1){var l=o["parse"](s)[3],u=o["toHex"](s);r.setAttribute("stop-color","#"+u),r.setAttribute("stop-opacity",l+"")}else r.setAttribute("stop-color",n[i].color);t.appendChild(r)}e.__dom=t},t.prototype.markUsed=function(t){if(t.style){var n=t.style.fill;n&&n.__dom&&e.prototype.markDomUsed.call(this,n.__dom),n=t.style.stroke,n&&n.__dom&&e.prototype.markDomUsed.call(this,n.__dom)}},t}(q),ee=$,te=n("c952"),ne=n("da5f");function ie(e){return e&&(!!e.image||!!e.svgElement)}var ae=new ne["a"],re=function(e){function t(t,n){return e.call(this,t,n,["pattern"],"__pattern_in_use__")||this}return Object(b["b"])(t,e),t.prototype.addWithoutUpdate=function(e,t){if(t&&t.style){var n=this;c["each"](["fill","stroke"],(function(i){var a=t.style[i];if(ie(a)){var r=n.getDefs(!0),o=ae.get(a);o?r.contains(o)||n.addDom(o):o=n.add(a),n.markUsed(t);var s=o.getAttribute("id");e.setAttribute(i,"url(#"+s+")")}}))}},t.prototype.add=function(e){if(ie(e)){var t=this.createElement("pattern");return e.id=null==e.id?this.nextId++:e.id,t.setAttribute("id","zr"+this._zrId+"-pattern-"+e.id),t.setAttribute("x","0"),t.setAttribute("y","0"),t.setAttribute("patternUnits","userSpaceOnUse"),this.updateDom(e,t),this.addDom(t),t}},t.prototype.update=function(e){if(ie(e)){var t=this;this.doUpdate(e,(function(){var n=ae.get(e);t.updateDom(e,n)}))}},t.prototype.updateDom=function(e,t){var n=e.svgElement;if(n instanceof SVGElement)n.parentNode!==t&&(t.innerHTML="",t.appendChild(n),t.setAttribute("width",e.svgWidth+""),t.setAttribute("height",e.svgHeight+""));else{var i=void 0,a=t.getElementsByTagName("image");if(a.length){if(!e.image)return void t.removeChild(a[0]);i=a[0]}else e.image&&(i=this.createElement("image"));if(i){var r=void 0,o=e.image;if("string"===typeof o?r=o:o instanceof HTMLImageElement?r=o.src:o instanceof HTMLCanvasElement&&(r=o.toDataURL()),r){i.setAttribute("href",r),i.setAttribute("x","0"),i.setAttribute("y","0");var s={dirty:function(){}},l=Object(te["a"])(r,i,s,(function(e){t.setAttribute("width",e.width+""),t.setAttribute("height",e.height+"")}));l&&l.width&&l.height&&(t.setAttribute("width",l.width+""),t.setAttribute("height",l.height+"")),t.appendChild(i)}}}var c=e.x||0,u=e.y||0,d=(e.rotation||0)/Math.PI*180,p=e.scaleX||1,h=e.scaleY||1,g="translate("+c+", "+u+") rotate("+d+") scale("+p+", "+h+")";t.setAttribute("patternTransform",g),ae.set(e,t)},t.prototype.markUsed=function(t){t.style&&(ie(t.style.fill)&&e.prototype.markDomUsed.call(this,ae.get(t.style.fill)),ie(t.style.stroke)&&e.prototype.markDomUsed.call(this,ae.get(t.style.stroke)))},t}(q),oe=re,se=n("51e2");function le(e){var t=[];if(e)for(var n=0;n<e.length;n++){var i=e[n];t.push(i.id)}return t.join(",")}function ce(e){var t=e.__clipPaths;return t&&t.length>0}var ue=function(e){function t(t,n){var i=e.call(this,t,n,"clipPath","__clippath_in_use__")||this;return i._refGroups={},i._keyDuplicateCount={},i}return Object(b["b"])(t,e),t.prototype.markAllUnused=function(){e.prototype.markAllUnused.call(this);var t=this._refGroups;for(var n in t)t.hasOwnProperty(n)&&this.markDomUnused(t[n]);this._keyDuplicateCount={}},t.prototype._getClipPathGroup=function(e,t){if(ce(e)){var n=e.__clipPaths,i=this._keyDuplicateCount,a=le(n);return Object(se["b"])(n,t&&t.__clipPaths)&&(i[a]=i[a]||0,i[a]&&(a+="-"+i[a]),i[a]++),this._refGroups[a]||(this._refGroups[a]=this.createElement("g"))}},t.prototype.update=function(e,t){var n=this._getClipPathGroup(e,t);return n&&(this.markDomUsed(n),this.updateDom(n,e.__clipPaths)),n},t.prototype.updateDom=function(e,t){if(t&&t.length>0){var n=this.getDefs(!0),i=t[0],a=void 0,r=void 0;i._dom?(r=i._dom.getAttribute("id"),a=i._dom,n.contains(a)||n.appendChild(a)):(r="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,a=this.createElement("clipPath"),a.setAttribute("id",r),n.appendChild(a),i._dom=a);var o=this.getSvgProxy(i);o.brush(i);var s=this.getSvgElement(i);a.innerHTML="",a.appendChild(s),e.setAttribute("clip-path","url(#"+r+")"),t.length>1&&this.updateDom(a,t.slice(1))}else e&&e.setAttribute("clip-path","none")},t.prototype.markUsed=function(t){var n=this;t.__clipPaths&&c["each"](t.__clipPaths,(function(t){t._dom&&e.prototype.markDomUsed.call(n,t._dom)}))},t.prototype.removeUnused=function(){e.prototype.removeUnused.call(this);var t={},n=this._refGroups;for(var i in n)if(n.hasOwnProperty(i)){var a=n[i];this.isDomUnused(a)?a.parentNode&&a.parentNode.removeChild(a):t[i]=a}this._refGroups=t},t}(q),de=ue,pe=function(e){function t(t,n){var i=e.call(this,t,n,["filter"],"__filter_in_use__","_shadowDom")||this;return i._shadowDomMap={},i._shadowDomPool=[],i}return Object(b["b"])(t,e),t.prototype._getFromPool=function(){var e=this._shadowDomPool.pop();if(!e){e=this.createElement("filter"),e.setAttribute("id","zr"+this._zrId+"-shadow-"+this.nextId++);var t=this.createElement("feDropShadow");e.appendChild(t),this.addDom(e)}return e},t.prototype.update=function(e,t){var n=t.style;if(ge(n)){var i=fe(t),a=t._shadowDom=this._shadowDomMap[i];a||(a=this._getFromPool(),this._shadowDomMap[i]=a),this.updateDom(e,t,a)}else this.remove(e,t)},t.prototype.remove=function(e,t){null!=t._shadowDom&&(t._shadowDom=null,e.removeAttribute("filter"))},t.prototype.updateDom=function(e,t,n){var i=n.children[0],a=t.style,r=t.getGlobalScale(),o=r[0],s=r[1];if(o&&s){var c=a.shadowOffsetX||0,u=a.shadowOffsetY||0,d=a.shadowBlur,p=l(a.shadowColor);i.setAttribute("dx",c/o+""),i.setAttribute("dy",u/s+""),i.setAttribute("flood-color",p.color),i.setAttribute("flood-opacity",p.opacity+"");var h=d/2/o,g=d/2/s,f=h+" "+g;i.setAttribute("stdDeviation",f),n.setAttribute("x","-100%"),n.setAttribute("y","-100%"),n.setAttribute("width","300%"),n.setAttribute("height","300%"),t._shadowDom=n;var y=n.getAttribute("id");e.setAttribute("filter","url(#"+y+")")}},t.prototype.removeUnused=function(){var e=this.getDefs(!1);if(e){var t=this._shadowDomPool,n=this._shadowDomMap;for(var i in n)n.hasOwnProperty(i)&&t.push(n[i]);this._shadowDomMap={}}},t}(q),he=pe;function ge(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function fe(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function ye(e){return parseInt(e,10)}function me(e){return e instanceof u["b"]?G:e instanceof d["a"]?H:e instanceof p["a"]?U:G}function ve(e,t){return t&&e&&t.parentNode!==e}function be(e,t,n){if(ve(e,t)&&n){var i=n.nextSibling;i?e.insertBefore(t,i):e.appendChild(t)}}function xe(e,t){if(ve(e,t)){var n=e.firstChild;n?e.insertBefore(t,n):e.appendChild(t)}}function _e(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)}function Se(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function we(e){return e.__svgEl}var Oe=function(){function e(e,t,n,i){this.type="svg",this.refreshHover=Me("refreshHover"),this.pathToImage=Me("pathToImage"),this.configLayer=Me("configLayer"),this.root=e,this.storage=t,this._opts=n=c["extend"]({},n||{});var a=s("svg");a.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),a.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),a.setAttribute("version","1.1"),a.setAttribute("baseProfile","full"),a.style.cssText="user-select:none;position:absolute;left:0;top:0;";var r=s("g");a.appendChild(r);var o=s("g");a.appendChild(o),this._gradientManager=new ee(i,o),this._patternManager=new oe(i,o),this._clipPathManager=new de(i,o),this._shadowManager=new he(i,o);var l=document.createElement("div");l.style.cssText="overflow:hidden;position:relative",this._svgDom=a,this._svgRoot=o,this._backgroundRoot=r,this._viewport=l,e.appendChild(l),l.appendChild(a),this.resize(n.width,n.height),this._visibleList=[]}return e.prototype.getType=function(){return"svg"},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.getSvgRoot=function(){return this._svgRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(){var e=this.storage.getDisplayList(!0);this._paintList(e)},e.prototype.setBackgroundColor=function(e){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var t=s("rect");t.setAttribute("width",this.getWidth()),t.setAttribute("height",this.getHeight()),t.setAttribute("x",0),t.setAttribute("y",0),t.setAttribute("id",0);var n=l(e),i=n.color,a=n.opacity;t.setAttribute("fill",i),t.setAttribute("fill-opacity",a),this._backgroundRoot.appendChild(t),this._backgroundNode=t},e.prototype.createSVGElement=function(e){return s(e)},e.prototype.paintOne=function(e){var t=me(e);return t&&t.brush(e),we(e)},e.prototype._paintList=function(e){var t=this._gradientManager,n=this._patternManager,i=this._clipPathManager,a=this._shadowManager;t.markAllUnused(),n.markAllUnused(),i.markAllUnused(),a.markAllUnused();for(var r=this._svgRoot,o=this._visibleList,s=e.length,l=[],c=0;c<s;c++){var u=e[c],d=me(u),p=we(u);u.invisible||(!u.__dirty&&p||(d&&d.brush(u),p=we(u),p&&u.style&&(t.update(u.style.fill),t.update(u.style.stroke),n.update(u.style.fill),n.update(u.style.stroke),a.update(p,u)),u.__dirty=0),p&&l.push(u))}var h,g,f,y,m=v(o,l);for(c=0;c<m.length;c++){var b=m[c];if(b.removed)for(var x=0;x<b.count;x++){u=o[b.indices[x]],p=we(u);ce(u)?Se(p):_e(r,p)}}for(c=0;c<m.length;c++){b=m[c];if(!b.removed)for(x=0;x<b.count;x++){u=l[b.indices[x]];var _=i.update(u,f);_!==y&&(h=g,_&&(h?be(r,_,h):xe(r,_),g=_,h=null),y=_);p=we(u);h?be(y||r,p,h):xe(y||r,p),h=p||h,y||(g=h),t.markUsed(u),t.addWithoutUpdate(p,u),n.markUsed(u),n.addWithoutUpdate(p,u),i.markUsed(u),f=u}}t.removeUnused(),n.removeUnused(),i.removeUnused(),a.removeUnused(),this._visibleList=l},e.prototype.resize=function(e,t){var n=this._viewport;n.style.display="none";var i=this._opts;if(null!=e&&(i.width=e),null!=t&&(i.height=t),e=this._getSize(0),t=this._getSize(1),n.style.display="",this._width!==e||this._height!==t){this._width=e,this._height=t;var a=n.style;a.width=e+"px",a.height=t+"px";var r=this._svgDom;r.setAttribute("width",e+""),r.setAttribute("height",t+"")}this._backgroundNode&&(this._backgroundNode.setAttribute("width",e),this._backgroundNode.setAttribute("height",t))},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype._getSize=function(e){var t=this._opts,n=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],r=["paddingRight","paddingBottom"][e];if(null!=t[n]&&"auto"!==t[n])return parseFloat(t[n]);var o=this.root,s=document.defaultView.getComputedStyle(o);return(o[i]||ye(s[n])||ye(o.style[n]))-(ye(s[a])||0)-(ye(s[r])||0)|0},e.prototype.dispose=function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},e.prototype.clear=function(){var e=this._viewport;e&&e.parentNode&&e.parentNode.removeChild(e)},e.prototype.toDataURL=function(){this.refresh();var e=this._svgDom,t=e.outerHTML||(e.parentNode&&e.parentNode).innerHTML,n=encodeURIComponent(t.replace(/></g,">\n\r<"));return"data:image/svg+xml;charset=UTF-8,"+n},e}();function Me(e){return function(){c["logError"]('In SVG mode painter not support method "'+e+'"')}}var Ie=Oe;function Ae(e){e.registerPainter("svg",Ie)}var je=n("a27a"),De=n("14cb"),Ce=n("0e41"),Te=n("8b3f"),Le=n("da3b"),Pe=2*Math.PI,Ne=Math.PI/180;function ke(e,t){return Le["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Ee(e,t){var n=ke(e,t),i=e.get("center"),a=e.get("radius");c["isArray"](a)||(a=[0,a]),c["isArray"](i)||(i=[i,i]);var r=Object(Te["p"])(n.width,t.getWidth()),o=Object(Te["p"])(n.height,t.getHeight()),s=Math.min(r,o),l=Object(Te["p"])(i[0],r)+n.x,u=Object(Te["p"])(i[1],o)+n.y,d=Object(Te["p"])(a[0],s/2),p=Object(Te["p"])(a[1],s/2);return{cx:l,cy:u,r0:d,r:p}}function Ve(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),i=t.mapDimension("value"),a=ke(e,n),r=Ee(e,n),o=r.cx,s=r.cy,l=r.r,c=r.r0,u=-e.get("startAngle")*Ne,d=e.get("minAngle")*Ne,p=0;t.each(i,(function(e){!isNaN(e)&&p++}));var h=t.getSum(i),g=Math.PI/(h||p)*2,f=e.get("clockwise"),y=e.get("roseType"),m=e.get("stillShowZeroSum"),v=t.getDataExtent(i);v[0]=0;var b=Pe,x=0,_=u,S=f?1:-1;if(t.setLayout({viewRect:a,r:l}),t.each(i,(function(e,n){var i;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:f,cx:o,cy:s,r0:c,r:y?NaN:l});else{i="area"!==y?0===h&&m?g:e*g:Pe/p,i<d?(i=d,b-=d):x+=e;var a=_+S*i;t.setItemLayout(n,{angle:i,startAngle:_,endAngle:a,clockwise:f,cx:o,cy:s,r0:c,r:y?Object(Te["l"])(e,v,[c,l]):l}),_=a}})),b<Pe&&p)if(b<=.001){var w=Pe/p;t.each(i,(function(e,n){if(!isNaN(e)){var i=t.getItemLayout(n);i.angle=w,i.startAngle=u+S*n*w,i.endAngle=u+S*(n+1)*w}}))}else g=b/x,_=u,t.each(i,(function(e,n){if(!isNaN(e)){var i=t.getItemLayout(n),a=i.angle===d?d:e*g;i.startAngle=_,i.endAngle=_+S*a,_+=S*a}}))}))}function Re(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var i=e.getData();i.filterSelf((function(e){for(var t=i.getName(e),a=0;a<n.length;a++)if(!n[a].isSelected(t))return!1;return!0}))}}}}var ze=n("7a9a"),Be=n("5b0e"),Ge=n("3bfd"),He=n("06af"),We=n("33a4"),Fe=n("a4ba"),Ue=n("7eaa"),Ye=n("7756"),Xe=n("796f"),Ze=n("e8dc"),qe=Math.PI/180;function Ke(e,t,n,i,a,r,o,s,l,c){if(!(e.length<2)){for(var u=e.length,d=0;d<u;d++)if("outer"===e[d].position&&"labelLine"===e[d].labelAlignTo){var p=e[d].label.x-c;e[d].linePoints[1][0]+=p,e[d].label.x=c}Object(Ze["d"])(e,l,l+o)&&g(e)}function h(e){for(var r=e.rB,o=r*r,s=0;s<e.list.length;s++){var l=e.list[s],c=Math.abs(l.label.y-n),u=i+l.len,d=u*u,p=Math.sqrt((1-Math.abs(c*c/o))*d);l.label.x=t+(p+l.len2)*a}}function g(e){for(var r={list:[],maxY:0},o={list:[],maxY:0},s=0;s<e.length;s++)if("none"===e[s].labelAlignTo){var l=e[s],c=l.label.y>n?o:r,u=Math.abs(l.label.y-n);if(u>c.maxY){var d=l.label.x-t-l.len2*a,p=i+l.len,g=Math.abs(d)<p?Math.sqrt(u*u/(1-d*d/p/p)):p;c.rB=g,c.maxY=u}c.list.push(l)}h(r),h(o)}}function Qe(e,t,n,i,a,r,o,s){for(var l=[],c=[],u=Number.MAX_VALUE,d=-Number.MAX_VALUE,p=0;p<e.length;p++){var h=e[p].label;Je(e[p])||(h.x<t?(u=Math.min(u,h.x),l.push(e[p])):(d=Math.max(d,h.x),c.push(e[p])))}Ke(c,t,n,i,1,a,r,o,s,d),Ke(l,t,n,i,-1,a,r,o,s,u);for(p=0;p<e.length;p++){var g=e[p];h=g.label;if(!Je(g)){var f=g.linePoints;if(f){var y="edge"===g.labelAlignTo,m=g.rect.width,v=void 0;v=y?h.x<t?f[2][0]-g.labelDistance-o-g.edgeDistance:o+a-g.edgeDistance-f[2][0]-g.labelDistance:h.x<t?h.x-o-g.bleedMargin:o+a-h.x-g.bleedMargin,v<g.rect.width&&(g.label.style.width=v,"edge"===g.labelAlignTo&&(m=v));var b=f[1][0]-f[2][0];y?h.x<t?f[2][0]=o+g.edgeDistance+m+g.labelDistance:f[2][0]=o+a-g.edgeDistance-m-g.labelDistance:(h.x<t?f[2][0]=h.x+g.labelDistance:f[2][0]=h.x-g.labelDistance,f[1][0]=f[2][0]+b),f[1][1]=f[2][1]=h.y}}}}function Je(e){return"center"===e.position}function $e(e){var t,n,i=e.getData(),a=[],r=!1,o=(e.get("minShowLabelAngle")||0)*qe,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,d=s.x,p=s.y,h=s.height;function g(e){e.ignore=!0}function f(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}i.each((function(e){var s=i.getItemGraphicEl(e),p=s.shape,h=s.getTextContent(),y=s.getTextGuideLine(),m=i.getItemModel(e),v=m.getModel("label"),b=v.get("position")||m.get(["emphasis","label","position"]),x=v.get("distanceToLabelLine"),_=v.get("alignTo"),S=Object(Te["p"])(v.get("edgeDistance"),u),w=v.get("bleedMargin"),O=m.getModel("labelLine"),M=O.get("length");M=Object(Te["p"])(M,u);var I=O.get("length2");if(I=Object(Te["p"])(I,u),Math.abs(p.endAngle-p.startAngle)<o)return Object(c["each"])(h.states,g),void(h.ignore=!0);if(f(h)){var A,j,D,C,T=(p.startAngle+p.endAngle)/2,L=Math.cos(T),P=Math.sin(T);t=p.cx,n=p.cy;var N,k="inside"===b||"inner"===b;if("center"===b)A=p.cx,j=p.cy,C="center";else{var E=(k?(p.r+p.r0)/2*L:p.r*L)+t,V=(k?(p.r+p.r0)/2*P:p.r*P)+n;if(A=E+3*L,j=V+3*P,!k){var R=E+L*(M+l-p.r),z=V+P*(M+l-p.r),B=R+(L<0?-1:1)*I,G=z;A="edge"===_?L<0?d+S:d+u-S:B+(L<0?-x:x),j=G,D=[[E,V],[R,z],[B,G]]}C=k?"center":"edge"===_?L>0?"right":"left":L>0?"left":"right"}var H=v.get("rotate");if("number"===typeof H)N=H*(Math.PI/180);else if("center"===b)N=0;else{var W=L<0?-T+Math.PI:-T;"radial"===H||!0===H?N=W:"tangential"===H&&"outside"!==b&&"outer"!==b?(N=W+Math.PI/2,N>Math.PI/2&&(N-=Math.PI)):N=0}if(r=!!N,h.x=A,h.y=j,h.rotation=N,h.setStyle({verticalAlign:"middle"}),k){h.setStyle({align:C});var F=h.states.select;F&&(F.x+=h.x,F.y+=h.y)}else{var U=h.getBoundingRect().clone();U.applyTransform(h.getComputedTransform());var Y=(h.style.margin||0)+2.1;U.y-=Y/2,U.height+=Y,a.push({label:h,labelLine:y,position:b,len:M,len2:I,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new Ye["a"](L,P),linePoints:D,textAlign:C,labelDistance:x,labelAlignTo:_,edgeDistance:S,bleedMargin:w,rect:U})}s.setTextConfig({inside:k})}})),!r&&e.get("avoidLabelOverlap")&&Qe(a,t,n,l,u,h,d,p);for(var y=0;y<a.length;y++){var m=a[y],v=m.label,b=m.labelLine,x=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:m.textAlign}),x&&(Object(c["each"])(v.states,g),v.ignore=!0);var _=v.states.select;_&&(_.x+=v.x,_.y+=v.y)}if(b){var S=m.linePoints;x||!S?(Object(c["each"])(b.states,g),b.ignore=!0):(Object(Xe["c"])(S,m.minTurnAngle),Object(Xe["b"])(S,m.surfaceNormal,m.maxSurfaceAngle),b.setShape({points:S}),v.__hostTarget.textGuideLineConfig={anchor:new Ye["a"](S[0][0],S[0][1])})}}}var et=n("2756");function tt(e,t,n){var i=e.get("borderRadius");return null==i?n?{innerCornerRadius:0,cornerRadius:0}:null:(Object(c["isArray"])(i)||(i=[i,i]),{innerCornerRadius:Object(x["h"])(i[0],t.r0),cornerRadius:Object(x["h"])(i[1],t.r)})}var nt=function(e){function t(t,n,i){var a=e.call(this)||this;a.z2=2;var r=new ze["a"];return a.setTextContent(r),a.updateData(t,n,i,!0),a}return Object(b["b"])(t,e),t.prototype.updateData=function(e,t,n,i){var a=this,r=e.hostModel,o=e.getItemModel(t),s=o.getModel("emphasis"),l=e.getItemLayout(t),u=Object(c["extend"])(tt(o.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))a.setShape(u);else{if(i){a.setShape(u);var d=r.getShallow("animationType");"scale"===d?(a.shape.r=l.r0,Be["c"](a,{shape:{r:l.r}},r,t)):null!=n?(a.setShape({startAngle:n,endAngle:n}),Be["c"](a,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},r,t)):(a.shape.endAngle=l.startAngle,Be["h"](a,{shape:{endAngle:l.endAngle}},r,t))}else Object(Be["g"])(a),Be["h"](a,{shape:u},r,t);a.useStyle(e.getItemVisual(t,"style")),Object(Fe["I"])(a,o);var p=(l.startAngle+l.endAngle)/2,h=r.get("selectedOffset"),g=Math.cos(p)*h,f=Math.sin(p)*h,y=o.getShallow("cursor");y&&a.attr("cursor",y),this._updateLabel(r,e,t),a.ensureState("emphasis").shape=Object(b["a"])({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},tt(s.getModel("itemStyle"),l)),Object(c["extend"])(a.ensureState("select"),{x:g,y:f,shape:tt(o.getModel(["select","itemStyle"]),l)}),Object(c["extend"])(a.ensureState("blur"),{shape:tt(o.getModel(["blur","itemStyle"]),l)});var m=a.getTextGuideLine(),v=a.getTextContent();m&&Object(c["extend"])(m.ensureState("select"),{x:g,y:f}),Object(c["extend"])(v.ensureState("select"),{x:g,y:f}),Object(Fe["o"])(this,s.get("focus"),s.get("blurScope"))}},t.prototype._updateLabel=function(e,t,n){var i=this,a=t.getItemModel(n),r=a.getModel("labelLine"),o=t.getItemVisual(n,"style"),s=o&&o.fill,l=o&&o.opacity;Object(et["g"])(i,Object(et["e"])(a),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:e.getFormattedLabel(n,"normal")||t.getName(n)});var u=i.getTextContent();i.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var d=e.get(["label","position"]);if("outside"!==d&&"outer"!==d)i.removeTextGuideLine();else{var p=this.getTextGuideLine();p||(p=new Ge["a"],this.setTextGuideLine(p)),Object(Xe["d"])(this,Object(Xe["a"])(a),{stroke:s,opacity:Object(c["retrieve3"])(r.get(["lineStyle","opacity"]),l,1)})}},t}(He["a"]),it=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return Object(b["b"])(t,e),t.prototype.init=function(){var e=new We["a"];this._sectorGroup=e},t.prototype.render=function(e,t,n,i){var a,r=e.getData(),o=this._data,s=this.group;if(!o&&r.count()>0){for(var l=r.getItemLayout(0),c=1;isNaN(l&&l.startAngle)&&c<r.count();++c)l=r.getItemLayout(c);l&&(a=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===r.count()&&e.get("showEmptyCircle")){var u=new He["a"]({shape:Ee(e,n)});u.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=u,s.add(u)}r.diff(o).add((function(e){var t=new nt(r,e,a);r.setItemGraphicEl(e,t),s.add(t)})).update((function(e,t){var n=o.getItemGraphicEl(t);n.updateData(r,e,a),n.off("click"),s.add(n),r.setItemGraphicEl(e,n)})).remove((function(t){var n=o.getItemGraphicEl(t);Be["f"](n,e,t)})).execute(),$e(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=r)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData(),i=n.getItemLayout(0);if(i){var a=e[0]-i.cx,r=e[1]-i.cy,o=Math.sqrt(a*a+r*r);return o<=i.r&&o>=i.r0}},t.type="pie",t}(Ue["a"]),at=it,rt=n("8f8b"),ot=n("7c40");function st(e,t,n){t=Object(c["isArray"])(t)&&{coordDimensions:t}||Object(c["extend"])({encodeDefine:e.getEncode()},t);var i=e.getSource(),a=Object(rt["b"])(i,t).dimensions,r=new ot["a"](a,e);return r.initData(i,n),r}var lt=n("5413"),ct=n("7b00"),ut=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},e.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},e.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},e}(),dt=ut,pt=n("14dc"),ht=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(b["b"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new dt(c["bind"](this.getData,this),c["bind"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return st(this,{coordDimensions:["value"],encodeDefaulter:c["curry"](ct["d"],this)})},t.prototype.getDataParams=function(t){var n=this.getData(),i=e.prototype.getDataParams.call(this,t),a=[];return n.each(n.mapDimension("value"),(function(e){a.push(e)})),i.percent=Object(Te["e"])(a,t,n.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},t.prototype._defaultLabelLine=function(e){lt["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.type="series.pie",t.defaultOption={zlevel:0,z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(pt["b"]),gt=ht;function ft(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf((function(e){var t=n.mapDimension("value"),i=n.get(t,e);return!("number"===typeof i&&!isNaN(i)&&i<0)}))}}}function yt(e){e.registerChartView(at),e.registerSeriesModel(gt),Object(Ce["a"])("pie",e.registerAction),e.registerLayout(Object(c["curry"])(Ve,"pie")),e.registerProcessor(Re("pie")),e.registerProcessor(ft("pie"))}var mt=n("63c8"),vt=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(b["b"])(t,e),t.prototype.getInitialData=function(e,t){return Object(mt["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.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,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}(pt["b"]),bt=vt,xt=n("4822"),_t=n("8256"),St=n("89b7"),wt=n("1f20"),Ot=4,Mt=function(){function e(){}return e}(),It=function(e){function t(t){return e.call(this,t)||this}return Object(b["b"])(t,e),t.prototype.getDefaultShape=function(){return new Mt},t.prototype.buildPath=function(e,t){var n=t.points,i=t.size,a=this.symbolProxy,r=a.shape,o=e.getContext?e.getContext():e,s=o&&i[0]<Ot;if(s)this._ctx=o;else{this._ctx=null;for(var l=0;l<n.length;){var c=n[l++],u=n[l++];isNaN(c)||isNaN(u)||(this.softClipShape&&!this.softClipShape.contain(c,u)||(r.x=c-i[0]/2,r.y=u-i[1]/2,r.width=i[0],r.height=i[1],a.buildPath(e,r,!0)))}}},t.prototype.afterBrush=function(){var e=this.shape,t=e.points,n=e.size,i=this._ctx;if(i)for(var a=0;a<t.length;){var r=t[a++],o=t[a++];isNaN(r)||isNaN(o)||(this.softClipShape&&!this.softClipShape.contain(r,o)||i.fillRect(r-n[0]/2,o-n[1]/2,n[0],n[1]))}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,i=n.points,a=n.size,r=Math.max(a[0],4),o=Math.max(a[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,c=i[l]-r/2,u=i[l+1]-o/2;if(e>=c&&t>=u&&e<=c+r&&t<=u+o)return s}return-1},t}(u["b"]),At=function(){function e(){this.group=new We["a"]}return e.prototype.isPersistent=function(){return!this._incremental},e.prototype.updateData=function(e,t){this.group.removeAll();var n=new It({rectHover:!0,cursor:"default"});n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,!1,t),this.group.add(n),this._incremental=null},e.prototype.updateLayout=function(e){if(!this._incremental){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.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>2e6?(this._incremental||(this._incremental=new St["a"]({silent:!0})),this.group.add(this._incremental)):this._incremental=null},e.prototype.incrementalUpdate=function(e,t,n){var i;this._incremental?(i=new It,this._incremental.addDisplayable(i,!0)):(i=new It({rectHover:!0,cursor:"default",startIndex:e.start,endIndex:e.end}),i.incremental=!0,this.group.add(i)),i.setShape({points:t.getLayout("points")}),this._setCommon(i,t,!!this._incremental,n)},e.prototype._setCommon=function(e,t,n,i){var a=t.hostModel;i=i||{};var r=t.getVisual("symbolSize");e.setShape("size",r instanceof Array?r:[r,r]),e.softClipShape=i.clipShape||null,e.symbolProxy=Object(_t["a"])(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<Ot;e.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;if(l&&e.setColor(l),!n){var c=Object(wt["a"])(e);c.seriesIndex=a.seriesIndex,e.on("mousemove",(function(t){c.dataIndex=null;var n=e.findDataIndex(t.offsetX,t.offsetY);n>=0&&(c.dataIndex=n+(e.startIndex||0))}))}},e.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},e.prototype._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()},e}(),jt=At,Dt=n("d445"),Ct=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(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||!this._symbolDraw.isPersistent())return{update:!0};var a=Object(Dt["a"])("").reset(e,t,n);a.progress&&a.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},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 jt:new xt["a"],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}(Ue["a"]),Tt=Ct,Lt=n("7696");function Pt(e){Object(i["a"])(Lt["a"]),e.registerSeriesModel(bt),e.registerChartView(Tt),e.registerLayout(Object(Dt["a"])("scatter"))}function Nt(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),n=[],i=e.coordinateSystem;if(i){var a=i.getIndicatorAxes();c["each"](a,(function(e,r){t.each(t.mapDimension(a[r].dim),(function(e,t){n[t]=n[t]||[];var a=i.dataToPoint(e,r);n[t][r]=kt(a)?a:Et(i)}))})),t.each((function(e){var a=c["find"](n[e],(function(e){return kt(e)}))||Et(i);n[e].push(a.slice()),t.setItemLayout(e,n[e])}))}}))}function kt(e){return!isNaN(e[0])&&!isNaN(e[1])}function Et(e){return[e.cx,e.cy]}function Vt(e){var t=e.polar;if(t){c["isArray"](t)||(t=[t]);var n=[];c["each"](t,(function(t,i){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],c["isArray"](e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)})),e.polar=n}c["each"](e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}var Rt=n("c336"),zt=n("e342"),Bt=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n){var i=e.coordinateSystem,a=this.group,r=e.getData(),o=this._data;function s(e,t){var n=e.getItemVisual(t,"symbol")||"circle";if("none"!==n){var i=_t["c"](e.getItemVisual(t,"symbolSize")),a=_t["a"](n,-1,-1,2,2),r=e.getItemVisual(t,"symbolRotate")||0;return a.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:r*Math.PI/180||0}),a}}function l(t,n,i,a,r,o){i.removeAll();for(var l=0;l<n.length-1;l++){var c=s(a,r);c&&(c.__dimIdx=l,t[l]?(c.setPosition(t[l]),Rt[o?"initProps":"updateProps"](c,{x:n[l][0],y:n[l][1]},e,r)):c.setPosition(n[l]),i.add(c))}}function u(e){return c["map"](e,(function(e){return[i.cx,i.cy]}))}r.diff(o).add((function(t){var n=r.getItemLayout(t);if(n){var i=new zt["a"],a=new Ge["a"],o={shape:{points:n}};i.shape.points=u(n),a.shape.points=u(n),Be["c"](i,o,e,t),Be["c"](a,o,e,t);var s=new We["a"],c=new We["a"];s.add(a),s.add(i),s.add(c),l(a.shape.points,n,c,r,t,!0),r.setItemGraphicEl(t,s)}})).update((function(t,n){var i=o.getItemGraphicEl(n),a=i.childAt(0),s=i.childAt(1),c=i.childAt(2),u={shape:{points:r.getItemLayout(t)}};u.shape.points&&(l(a.shape.points,u.shape.points,c,r,t,!1),Object(Be["g"])(s),Object(Be["g"])(a),Be["h"](a,u,e),Be["h"](s,u,e),r.setItemGraphicEl(t,i))})).remove((function(e){a.remove(o.getItemGraphicEl(e))})).execute(),r.eachItemGraphicEl((function(e,t){var n=r.getItemModel(t),i=e.childAt(0),o=e.childAt(1),s=e.childAt(2),l=r.getItemVisual(t,"style"),u=l.fill;a.add(e),i.useStyle(c["defaults"](n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),Object(Fe["I"])(i,n,"lineStyle"),Object(Fe["I"])(o,n,"areaStyle");var p=n.getModel("areaStyle"),h=p.isEmpty()&&p.parentModel.isEmpty();o.ignore=h,c["each"](["emphasis","select","blur"],(function(e){var t=n.getModel([e,"areaStyle"]),i=t.isEmpty()&&t.parentModel.isEmpty();o.ensureState(e).ignore=i&&h})),o.useStyle(c["defaults"](p.getAreaStyle(),{fill:u,opacity:.7,decal:l.decal}));var g=n.getModel("emphasis"),f=g.getModel("itemStyle").getItemStyle();s.eachChild((function(e){if(e instanceof d["a"]){var i=e.style;e.useStyle(c["extend"]({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},l))}else e.useStyle(l),e.setColor(u),e.style.strokeNoScale=!0;var a=e.ensureState("emphasis");a.style=c["clone"](f);var o=r.getStore().get(r.getDimensionIndex(e.__dimIdx),t);(null==o||isNaN(o))&&(o=""),Object(et["g"])(e,Object(et["e"])(n),{labelFetcher:r.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:o,inheritColor:u,defaultOpacity:l.opacity})})),Object(Fe["o"])(e,g.get("focus"),g.get("blurScope"))})),this._data=r},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(Ue["a"]),Gt=Bt,Ht=n("0b78"),Wt=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(b["b"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new dt(c["bind"](this.getData,this),c["bind"](this.getRawData,this))},t.prototype.getInitialData=function(e,t){return st(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),a=this.coordinateSystem,r=a.getIndicatorAxes(),o=this.getData().getName(e),s=""===o?this.name:o,l=Object(Ht["e"])(this,e);return Object(Ht["c"])("section",{header:s,sortBlocks:!0,blocks:c["map"](r,(function(t){var n=i.get(i.mapDimension(t.dim),e);return Object(Ht["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(c["map"](n.dimensions,(function(e){return t.mapDimension(e)})),e),a=0,r=i.length;a<r;a++)if(!isNaN(i[a])){var o=n.getIndicatorAxes();return n.coordToPoint(o[a].dataToCoord(i[a]),a)}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={zlevel:0,z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(pt["b"]),Ft=Wt,Ut=n("61ba"),Yt=n("eb33"),Xt=n("4b78"),Zt=n("18fb"),qt=Ut["a"].value;function Kt(e,t){return c["defaults"]({show:t},e)}var Qt=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),a=this.get("axisTick"),r=this.get("axisLabel"),o=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),u=this.get("axisNameGap"),d=this.get("triggerEvent"),p=c["map"](this.get("indicator")||[],(function(p){null!=p.max&&p.max>0&&!p.min?p.min=0:null!=p.min&&p.min<0&&!p.max&&(p.max=0);var h=o;null!=p.color&&(h=c["defaults"]({color:p.color},o));var g=c["merge"](c["clone"](p),{boundaryGap:e,splitNumber:t,scale:n,axisLine:i,axisTick:a,axisLabel:r,name:p.text,nameLocation:"end",nameGap:u,nameTextStyle:h,triggerEvent:d},!1);if(s||(g.name=""),"string"===typeof l){var f=g.name;g.name=l.replace("{value}",null!=f?f:"")}else"function"===typeof l&&(g.name=l(g.name,g));var y=new Yt["a"](g,null,this.ecModel);return c["mixin"](y,Xt["a"].prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y}),this);this._indicatorModels=p},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:c["merge"]({lineStyle:{color:"#bbb"}},qt.axisLine),axisLabel:Kt(qt.axisLabel,!1),axisTick:Kt(qt.axisTick,!1),splitLine:Kt(qt.splitLine,!0),splitArea:Kt(qt.splitArea,!0),indicator:[]},t}(Zt["a"]),Jt=Qt,$t=n("dd2c"),en=n("227f"),tn=n("d950"),nn=n("1e62"),an=["axisLine","axisTickLabel","axisName"],rn=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(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=c["map"](n,(function(e){var n=new $t["a"](e.model,{position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return n}));c["each"](i,(function(e){c["each"](an,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var i=e.get("shape"),a=e.getModel("splitLine"),r=e.getModel("splitArea"),o=a.getModel("lineStyle"),s=r.getModel("areaStyle"),l=a.get("show"),u=r.get("show"),d=o.get("color"),p=s.get("color"),h=c["isArray"](d)?d:[d],g=c["isArray"](p)?p:[p],f=[],y=[];if("circle"===i)for(var m=n[0].getTicksCoords(),v=t.cx,b=t.cy,x=0;x<m.length;x++){if(l){var _=D(f,h,x);f[_].push(new en["a"]({shape:{cx:v,cy:b,r:m[x].coord}}))}if(u&&x<m.length-1){_=D(y,g,x);y[_].push(new tn["a"]({shape:{cx:v,cy:b,r0:m[x].coord,r:m[x+1].coord}}))}}else{var S,w=c["map"](n,(function(e,n){var i=e.getTicksCoords();return S=null==S?i.length-1:Math.min(i.length-1,S),c["map"](i,(function(e){return t.coordToPoint(e.coord,n)}))})),O=[];for(x=0;x<=S;x++){for(var M=[],I=0;I<n.length;I++)M.push(w[I][x]);if(M[0]&&M.push(M[0].slice()),l){_=D(f,h,x);f[_].push(new Ge["a"]({shape:{points:M}}))}if(u&&O){_=D(y,g,x-1);y[_].push(new zt["a"]({shape:{points:M.concat(O)}}))}O=M.slice().reverse()}}var A=o.getLineStyle(),j=s.getAreaStyle();c["each"](y,(function(e,t){this.group.add(Rt["mergePath"](e,{style:c["defaults"]({stroke:"none",fill:g[t%g.length]},j),silent:!0}))}),this),c["each"](f,(function(e,t){this.group.add(Rt["mergePath"](e,{style:c["defaults"]({fill:"none",stroke:h[t%h.length]},A),silent:!0}))}),this)}function D(e,t,n){var i=n%t.length;return e[i]=e[i]||[],i}},t.type="radar",t}(nn["a"]),on=rn,sn=n("2f8d"),ln=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(b["b"])(t,e),t}(sn["a"]),cn=ln,un=n("e459"),dn=n("0e24"),pn=n("e91c"),hn=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=Object(c["map"])(e.getIndicatorModels(),(function(e,t){var n="indicator_"+t,i=new cn(n,new un["a"]);return i.name=e.get("name"),i.model=e,e.axis=i,this.dimensions.push(n),i}),this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],i=n.angle,a=this.cx+e*Math.cos(i),r=this.cy-e*Math.sin(i);return[a,r]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=Math.sqrt(t*t+n*n);t/=i,n/=i;for(var a,r=Math.atan2(-n,t),o=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var c=this._indicatorAxes[l],u=Math.abs(r-c.angle);u<o&&(a=c,s=l,o=u)}return[s,+(a&&a.coordToData(i))]},e.prototype.resize=function(e,t){var n=e.get("center"),i=t.getWidth(),a=t.getHeight(),r=Math.min(i,a)/2;this.cx=Te["p"](n[0],i),this.cy=Te["p"](n[1],a),this.startAngle=e.get("startAngle")*Math.PI/180;var o=e.get("radius");"string"!==typeof o&&"number"!==typeof o||(o=[0,o]),this.r0=Te["p"](o[0],r),this.r=Te["p"](o[1],r),Object(c["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(c["each"])(n,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeriesByType("radar",(function(t,a){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===i){var r=t.getData();Object(c["each"])(n,(function(e){e.scale.unionExtentFromData(r,r.mapDimension(e.dim))}))}}),this);var a=i.get("splitNumber");function r(e){var t=Math.pow(10,Math.floor(Math.log(e)/Math.LN10)),n=e/t;return 2===n?n=5:n*=2,n*t}Object(c["each"])(n,(function(e,t){var n=Object(dn["f"])(e.scale,e.model).extent;Object(dn["i"])(e.scale,e.model);var i=e.model,o=e.scale,s=Object(pn["b"])(o,i.get("min",!0)),l=Object(pn["b"])(o,i.get("max",!0)),c=o.getInterval();if(null!=s&&null!=l)o.setExtent(+s,+l),o.setInterval((l-s)/a);else if(null!=s){var u=void 0;do{u=s+c*a,o.setExtent(+s,u),o.setInterval(c),c=r(c)}while(u<n[1]&&isFinite(u)&&isFinite(n[1]))}else if(null!=l){var d=void 0;do{d=l-c*a,o.setExtent(d,+l),o.setInterval(c),c=r(c)}while(d>n[0]&&isFinite(d)&&isFinite(n[0]))}else{var p=o.getTicks().length-1;p>a&&(c=r(c));u=Math.ceil(n[1]/c)*c,d=Te["v"](u-c*a);o.setExtent(d,u),o.setInterval(c)}}))},e.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.create=function(t,n){var i=[];return t.eachComponent("radar",(function(a){var r=new e(a,t,n);i.push(r),a.coordinateSystem=r})),t.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("radarIndex")||0])})),i},e.dimensions=[],e}(),gn=hn;function fn(e){e.registerCoordinateSystem("radar",gn),e.registerComponentModel(Jt),e.registerComponentView(on),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 yn(e){Object(i["a"])(fn),e.registerChartView(Gt),e.registerSeriesModel(Ft),e.registerLayout(Nt),e.registerProcessor(Re("radar")),e.registerPreprocessor(Vt)}var mn=n("ee55");function vn(e,t,n){var i=e.target;i.x+=t,i.y+=n,i.dirty()}function bn(e,t,n,i){var a=e.target,r=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,r){var s=r.min||0,l=r.max||1/0;o=Math.max(Math.min(l,o),s)}var c=o/e.zoom;e.zoom=o,a.x-=(n-a.x)*(c-1),a.y-=(i-a.y)*(c-1),a.scaleX*=c,a.scaleY*=c,a.dirty()}var xn={axisPointer:1,tooltip:1,brush:1};function _n(e,t,n){var i=t.getComponentByElement(e.topTarget),a=i&&i.coordinateSystem;return i&&i!==n&&!xn.hasOwnProperty(i.mainType)&&a&&a.model!==n}var Sn=n("0ad8"),wn=n("caf8"),On=n("328a"),Mn=n("34e7"),In=n("1cf1"),An=["rect","circle","line","ellipse","polygon","polyline","path"],jn=c["createHashMap"](An),Dn=c["createHashMap"](An.concat(["g"])),Cn=c["createHashMap"](An.concat(["g"])),Tn=Object(lt["o"])();function Ln(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}var Pn=function(){function e(e){var t=new We["a"];this.uid=Object(On["c"])("ec_map_draw"),this._controller=new mn["a"](e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new We["a"]),t.add(this._svgGroup=new We["a"])}return e.prototype.draw=function(e,t,n,i,a){var r="geo"===e.mainType,o=e.getData&&e.getData();r&&t.eachComponent({mainType:"series",subType:"map"},(function(t){o||t.getHostGeoModel()!==e||(o=t.getData())}));var s=e.coordinateSystem,l=this._regionsGroup,c=this.group,u=s.getTransformInfo(),d=u.raw,p=u.roam,h=!l.childAt(0)||a;h?(c.x=p.x,c.y=p.y,c.scaleX=p.scaleX,c.scaleY=p.scaleY,c.dirty()):Be["h"](c,p,e);var g=o&&o.getVisual("visualMeta")&&o.getVisual("visualMeta").length>0,f={api:n,geo:s,mapOrGeoModel:e,data:o,isVisualEncodedByVisualMap:g,isGeo:r,transformInfoRaw:d};"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=c["createHashMap"](),n=c["createHashMap"](),i=this._regionsGroup,a=e.transformInfoRaw,r=e.mapOrGeoModel,o=e.data,s=function(e){return[e[0]*a.scaleX+a.x,e[1]*a.scaleY+a.y]};i.removeAll(),c["each"](e.geo.regions,(function(a){var l=a.name,u=t.get(l),d=n.get(l)||{},p=d.dataIdx,h=d.regionModel;u||(u=t.set(l,new We["a"]),i.add(u),p=o?o.indexOfName(l):null,h=e.isGeo?r.getRegionModel(l):o?o.getItemModel(p):null,n.set(l,{dataIdx:p,regionModel:h}));var g=new Sn["a"]({segmentIgnoreThreshold:1,shape:{paths:[]}});u.add(g),c["each"](a.geometries,(function(e){if("polygon"===e.type){for(var t=[],n=0;n<e.exterior.length;++n)t.push(s(e.exterior[n]));g.shape.paths.push(new zt["a"]({segmentIgnoreThreshold:1,shape:{points:t}}));for(n=0;n<(e.interiors?e.interiors.length:0);++n){for(var i=e.interiors[n],a=[],r=0;r<i.length;++r)a.push(s(i[r]));g.shape.paths.push(new zt["a"]({segmentIgnoreThreshold:1,shape:{points:a}}))}}})),Nn(e,g,p,h),g instanceof In["c"]&&(g.culling=!0);var f=s(a.getCenter());kn(e,g,l,h,r,p,f)})),t.each((function(t,i){var a=n.get(i),o=a.dataIdx,s=a.regionModel;En(e,t,i,s,r,o),Vn(e,t,i,s,r),Rn(e,t,i,s,r)}),this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var i=this._svgDispatcherMap=c["createHashMap"](),a=!1;c["each"](this._svgGraphicRecord.named,(function(t){var n=t.name,r=e.mapOrGeoModel,o=e.data,s=t.svgNodeTagLower,l=t.el,c=o?o.indexOfName(n):null,u=r.getRegionModel(n);if(null!=jn.get(s)&&l instanceof In["c"]&&Nn(e,l,c,u),l instanceof In["c"]&&(l.culling=!0),l.z2EmphasisLift=0,!t.namedFrom&&(null!=Cn.get(s)&&kn(e,l,n,u,r,c,null),En(e,l,n,u,r,c),Vn(e,l,n,u,r),null!=Dn.get(s))){var d=Rn(e,l,n,u,r);"self"===d&&(a=!0);var p=i.get(n)||i.set(n,[]);p.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(Fe["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=wn["a"].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=wn["a"].getGeoResource(e);t&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(e,t,n){var i=e.coordinateSystem,a=this._controller,r=this._controllerHost;r.zoomLimit=e.get("scaleLimit"),r.zoom=i.getZoom(),a.enable(e.get("roam")||!1);var o=e.mainType;function s(){var t={type:"geoRoam",componentType:o};return t[o+"Id"]=e.id,t}a.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,vn(r,e.dx,e.dy),n.dispatchAction(c["extend"](s(),{dx:e.dx,dy:e.dy}))}),this),a.off("zoom").on("zoom",(function(e){this._mouseDownFlag=!1,bn(r,e.scale,e.originX,e.originY),n.dispatchAction(c["extend"](s(),{zoom:e.scale,originX:e.originX,originY:e.originY}))}),this),a.setPointerChecker((function(t,a,r){return i.containPoint([a,r])&&!_n(t,n,e)}))},e.prototype.resetForLabelLayout=function(){this.group.traverse((function(e){var t=e.getTextContent();t&&(t.ignore=Tn(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 Nn(e,t,n,i){var a=i.getModel("itemStyle"),r=i.getModel(["emphasis","itemStyle"]),o=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=Ln(a),c=Ln(r),u=Ln(s),d=Ln(o),p=e.data;if(p){var h=p.getItemVisual(n,"style"),g=p.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&h.fill&&(l.fill=h.fill),g&&(l.decal=Object(Mn["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=d,Object(Fe["G"])(t)}function kn(e,t,n,i,a,r,o){var s=e.data,l=e.isGeo,c=s&&isNaN(s.get(s.mapDimension("value"),r)),u=s&&s.getItemLayout(r);if(l||c||u&&u.showLabel){var d=l?n:r,p=void 0;(!s||r>=0)&&(p=a);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Object(et["g"])(t,Object(et["e"])(i),{labelFetcher:p,labelDataIndex:d,defaultText:n},h);var g=t.getTextContent();if(g&&(Tn(g).ignore=g.ignore,t.textConfig&&o)){var f=t.getBoundingRect().clone();t.textConfig.layoutRect=f,t.textConfig.position=[(o[0]-f.x)/f.width*100+"%",(o[1]-f.y)/f.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function En(e,t,n,i,a,r){e.data?e.data.setItemGraphicEl(r,t):Object(wt["a"])(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:n,region:i&&i.option||{}}}function Vn(e,t,n,i,a){e.data||Rt["setTooltipConfig"]({el:t,componentModel:a,itemName:n,itemTooltipOption:i.get("tooltip")})}function Rn(e,t,n,i,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var r=i.getModel("emphasis"),o=r.get("focus");return Object(Fe["o"])(t,o,r.get("blurScope")),e.isGeo&&Object(Fe["n"])(t,a,n),o}var zn=Pn,Bn=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var a=this.group;if(a.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===e.id){r=this._mapDraw;r&&a.add(r.group)}else if(e.needsDrawMap){var r=this._mapDraw||new zn(n);a.add(r.group),r.draw(e,t,n,this,i),this._mapDraw=r}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var i=e.originalData,a=this.group;i.each(i.mapDimension("value"),(function(t,n){if(!isNaN(t)){var r=i.getItemLayout(n);if(r&&r.point){var o=r.point,s=r.offset,l=new en["a"]({style:{fill:e.getData().getVisual("style").fill},shape:{cx:o[0]+9*s,cy:o[1],r:3},silent:!0,z2:8+(s?0:Fe["j"]+1)});if(!s){var c=e.mainSeries.getData(),u=i.getName(n),d=c.indexOfName(u),p=i.getItemModel(n),h=p.getModel("label"),g=c.getItemGraphicEl(d);Object(et["g"])(l,Object(et["e"])(p),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(d,n)}}}),l.disableLabelAnimation=!0,h.get("position")||l.setTextConfig({position:"bottom"}),g.onHoverStateChange=function(e){Object(Fe["H"])(l,e)}}a.add(l)}}}))},t.type="map",t}(Ue["a"]),Gn=Bn,Hn=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(b["b"])(t,e),t.prototype.getInitialData=function(e){for(var t=st(this,{coordDimensions:["value"],encodeDefaulter:c["curry"](ct["d"],this)}),n=c["createHashMap"](),i=[],a=0,r=t.count();a<r;a++){var o=t.getName(a);n.set(o,!0)}var s=wn["a"].load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return c["each"](s.regions,(function(e){var t=e.name;n.get(t)||i.push(t)})),t.appendValues([],i),t},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return null!=e?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){for(var i=this.getData(),a=this.getRawValue(e),r=i.getName(e),o=this.seriesGroup,s=[],l=0;l<o.length;l++){var c=o[l].originalData.indexOfName(r),u=i.mapDimension("value");isNaN(o[l].originalData.get(u,c))||s.push(o[l].name)}return Object(Ht["c"])("section",{header:s.join(", "),noHeader:!s.length,blocks:[Object(Ht["c"])("nameValue",{name:r,value:a})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var t=e.icon||"roundRect",n=Object(_t["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={zlevel:0,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}(pt["b"]),Wn=Hn;function Fn(e,t){var n={};return c["each"](e,(function(e){e.each(e.mapDimension("value"),(function(t,i){var a="ec-"+e.getName(i);n[a]=n[a]||[],isNaN(t)||n[a].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(i,a){for(var r,o="ec-"+e[0].getName(a),s=0,l=1/0,c=-1/0,u=n[o].length,d=0;d<u;d++)l=Math.min(l,n[o][d]),c=Math.max(c,n[o][d]),s+=n[o][d];return r="min"===t?l:"max"===t?c:"average"===t?s/u:s,0===u?NaN:r}))}function Un(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)})),c["each"](t,(function(e,t){for(var n=Fn(c["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 Yn(e){var t={};e.eachSeriesByType("map",(function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!t[i]){var a={};c["each"](n.seriesGroup,(function(t){var n=t.coordinateSystem,i=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&i.each(i.mapDimension("value"),(function(e,t){var r=i.getName(t),o=n.getRegion(r);if(o&&!isNaN(e)){var s=a[r]||0,l=n.dataToPoint(o.getCenter());a[r]=s+1,i.setItemLayout(t,{point:l,offset:s})}}))}));var r=n.getData();r.each((function(e){var t=r.getName(e),n=r.getItemLayout(e)||{};n.showLabel=!a[t],r.setItemLayout(e,n)})),t[i]=!0}}))}var Xn=n("5e16"),Zn=n("3e38"),qn=n("d013"),Kn=n("ae2c"),Qn=Zn["applyTransform"],Jn=function(e){function t(t){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Kn["a"],n._rawTransformable=new Kn["a"],n.name=t,n}return Object(b["b"])(t,e),t.prototype.setBoundingRect=function(e,t,n,i){return this._rect=new Xn["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 Xn["a"](e,t,n,i)},t.prototype._transformTo=function(e,t,n,i){var a=this.getBoundingRect(),r=this._rawTransformable;r.transform=a.calculateTransform(new Xn["a"](e,t,n,i));var o=r.parent;r.parent=null,r.decomposeTransform(),r.parent=o,this._updateTransform()},t.prototype.setCenter=function(e){e&&(this._center=e,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=Zn["applyTransform"]([],i,e),n=Zn["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(),qn["copy"](this.transform||(this.transform=[]),t.transform||qn["create"]()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],qn["invert"](this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new Kn["a"];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?Qn(n,e,i):Zn["copy"](n,e)},t.prototype.pointToData=function(e){var t=this.invTransform;return t?Qn([],e,t):[e[0],e[1]]},t.prototype.convertToPixel=function(e,t,n){var i=$n(t);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var i=$n(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}(Kn["a"]);function $n(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var ei=Jn,ti={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},ni=["lng","lat"],ii=function(e){function t(t,n,i){var a=e.call(this,t)||this;a.dimensions=ni,a.type="geo",a._nameCoordMap=c["createHashMap"](),a.map=n;var r=wn["a"].load(n,i.nameMap,i.nameProperty),o=wn["a"].getGeoResource(n);a.resourceType=o?o.type:null;var s=ti[o.type];a._regionsMap=r.regionsMap,a._invertLongitute=s.invertLongitute,a.regions=r.regions,a.aspectScale=c["retrieve2"](i.aspectScale,s.aspectScale);var l=r.boundingRect;return a.setBoundingRect(l.x,l.y,l.width,l.height),a}return Object(b["b"])(t,e),t.prototype._transformTo=function(e,t,n,i){var a=this.getBoundingRect(),r=this._invertLongitute;a=a.clone(),r&&(a.y=-a.y-a.height);var o=this._rawTransformable;o.transform=a.calculateTransform(new Xn["a"](e,t,n,i));var s=o.parent;o.parent=null,o.decomposeTransform(),o.parent=s,r&&(o.scaleY=-o.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var i=t[n];if("geoJSON"===i.type&&i.contain(e))return t[n]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if("string"===typeof e&&(e=this.getGeoCoord(e)),e)return ei.prototype.dataToPoint.call(this,e,t,n)},t.prototype.convertToPixel=function(e,t,n){var i=ai(t);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var i=ai(t);return i===this?i.pointToData(n):null},t}(ei);function ai(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",lt["b"]).models[0]||{}).coordinateSystem:null}c["mixin"](ii,ei);var ri=ii;function oi(e,t){var n=e.get("boundingCoords");if(null!=n){var i=n[0],a=n[1];isNaN(i[0])||isNaN(i[1])||isNaN(a[0])||isNaN(a[1])||this.setBoundingRect(i[0],i[1],a[0]-i[0],a[1]-i[1])}var r,o,s,l=this.getBoundingRect(),c=e.get("layoutCenter"),u=e.get("layoutSize"),d=t.getWidth(),p=t.getHeight(),h=l.width/l.height*this.aspectScale,g=!1;if(c&&u&&(r=[Te["p"](c[0],d),Te["p"](c[1],p)],o=Te["p"](u,Math.min(d,p)),isNaN(r[0])||isNaN(r[1])||isNaN(o)||(g=!0)),g)s={},h>1?(s.width=o,s.height=o/h):(s.height=o,s.width=o*h),s.y=r[1]-s.height/2,s.x=r[0]-s.width/2;else{var f=e.getBoxLayoutParams();f.aspect=h,s=Le["g"](f,{width:d,height:p})}this.setViewRect(s.x,s.y,s.width,s.height),this.setCenter(e.get("center")),this.setZoom(e.get("zoom"))}function si(e,t){c["each"](t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}var li=function(){function e(){this.dimensions=ni}return e.prototype.create=function(e,t){var n=[];e.eachComponent("geo",(function(e,i){var a=e.get("map"),r=new ri(a+i,a,{nameMap:e.get("nameMap"),nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale")});r.zoomLimit=e.get("scaleLimit"),n.push(r),e.coordinateSystem=r,r.model=e,r.resize=oi,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 i={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();i[t]=i[t]||[],i[t].push(e)}})),c["each"](i,(function(e,i){var a=c["map"](e,(function(e){return e.get("nameMap")})),r=new ri(i,i,{nameMap:c["mergeAll"](a),nameProperty:e[0].get("nameProperty"),aspectScale:e[0].get("aspectScale")});r.zoomLimit=c["retrieve"].apply(null,c["map"](e,(function(e){return e.get("scaleLimit")}))),n.push(r),r.resize=oi,r.resize(e[0],t),c["each"](e,(function(e){e.coordinateSystem=r,si(r,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,i){for(var a=(e||[]).slice(),r=c["createHashMap"](),o=0;o<a.length;o++)r.set(a[o].name,a[o]);var s=wn["a"].load(t,n,i);return c["each"](s.regions,(function(e){var t=e.name;!r.get(t)&&a.push({name:t})})),a},e}(),ci=new li,ui=ci,di=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.init=function(e,t,n){var i=wn["a"].getGeoResource(e.map);if(i&&"geoJSON"===i.type){var a=e.itemStyle=e.itemStyle||{};"color"in a||(a.color="#eee")}this.mergeDefaultAndTheme(e,n),lt["f"](e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=ui.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=c["reduce"](t.regions||[],(function(t,i){var a=i.name;return a&&(t.set(a,new Yt["a"](i,e,e.ecModel)),i.selected&&(n[a]=!0)),t}),c["createHashMap"]()),t.selectedMap||(t.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new Yt["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"function"===typeof i?(a.status=t,i(a)):"string"===typeof 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={zlevel:0,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}(Zt["a"]),pi=di;function hi(e,t,n){var i=e.getZoom(),a=e.getCenter(),r=t.zoom,o=e.dataToPoint(a);if(null!=t.dx&&null!=t.dy&&(o[0]-=t.dx,o[1]-=t.dy,e.setCenter(e.pointToData(o))),null!=r){if(n){var s=n.min||0,l=n.max||1/0;r=Math.max(Math.min(i*r,l),s)/i}e.scaleX*=r,e.scaleY*=r;var c=(t.originX-e.x)*(r-1),u=(t.originY-e.y)*(r-1);e.x-=c,e.y-=u,e.updateTransform(),e.setCenter(e.pointToData(o)),e.setZoom(r*i)}return{center:e.getCenter(),zoom:e.getZoom()}}var gi=n("8759"),fi=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return Object(b["b"])(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 zn(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(gi["a"])(e.target,(function(e){return null!=(t=Object(wt["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(wt["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}(nn["a"]),yi=fi;function mi(e){function t(t,n){n.update="geo:updateSelectStatus",e.registerAction(n,(function(e,n){var i={},a=[];return n.eachComponent({mainType:"geo",query:e},(function(n){n[t](e.name);var r=n.coordinateSystem;Object(c["each"])(r.regions,(function(e){i[e.name]=n.isSelected(e.name)||!1}));var o=[];Object(c["each"])(i,(function(e,t){i[t]&&o.push(t)})),a.push({geoIndex:n.componentIndex,name:o})})),{selected:i,allSelected:a,name:e.name}}))}e.registerCoordinateSystem("geo",ui),e.registerComponentModel(pi),e.registerComponentView(yi),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){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){var i=t.coordinateSystem;if("geo"===i.type){var a=hi(i,e,t.get("scaleLimit"));t.setCenter&&t.setCenter(a.center),t.setZoom&&t.setZoom(a.zoom),"series"===n&&Object(c["each"])(t.seriesGroup,(function(e){e.setCenter(a.center),e.setZoom(a.zoom)}))}}))}))}function vi(e){Object(i["a"])(mi),e.registerChartView(Gn),e.registerSeriesModel(Wn),e.registerLayout(Yn),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Un),Object(Ce["a"])("map",e.registerAction)}var bi=n("9fc2"),xi=n("c716");function _i(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var n,i,a=[t];while(n=a.pop())if(i=n.children,n.isExpand&&i.length)for(var r=i.length,o=r-1;o>=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},a.push(s)}}function Si(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){Ai(e);var r=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;a?(e.hierNode.prelim=a.hierNode.prelim+t(e,a),e.hierNode.modifier=e.hierNode.prelim-r):e.hierNode.prelim=r}else a&&(e.hierNode.prelim=a.hierNode.prelim+t(e,a));e.parentNode.hierNode.defaultAncestor=ji(e,a,e.parentNode.hierNode.defaultAncestor||i[0],t)}function wi(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function Oi(e){return arguments.length?e:Pi}function Mi(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function Ii(e,t){return Le["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Ai(e){var t=e.children,n=t.length,i=0,a=0;while(--n>=0){var r=t[n];r.hierNode.prelim+=i,r.hierNode.modifier+=i,a+=r.hierNode.change,i+=r.hierNode.shift+a}}function ji(e,t,n,i){if(t){var a=e,r=e,o=r.parentNode.children[0],s=t,l=a.hierNode.modifier,c=r.hierNode.modifier,u=o.hierNode.modifier,d=s.hierNode.modifier;while(s=Di(s),r=Ci(r),s&&r){a=Di(a),o=Ci(o),a.hierNode.ancestor=e;var p=s.hierNode.prelim+d-r.hierNode.prelim-c+i(s,r);p>0&&(Li(Ti(s,e,n),e,p),c+=p,l+=p),d+=s.hierNode.modifier,c+=r.hierNode.modifier,l+=a.hierNode.modifier,u+=o.hierNode.modifier}s&&!Di(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=d-l),r&&!Ci(o)&&(o.hierNode.thread=r,o.hierNode.modifier+=c-u,n=e)}return n}function Di(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function Ci(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function Ti(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function Li(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 Pi(e,t){return e.parentNode===t.parentNode?1:2}var Ni=n("5aa1"),ki=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),Ei=function(e){function t(t){return e.call(this,t)||this}return Object(b["b"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ki},t.prototype.buildPath=function(e,t){var n=t.childPoints,i=n.length,a=t.parentPoint,r=n[0],o=n[i-1];if(1===i)return e.moveTo(a[0],a[1]),void e.lineTo(r[0],r[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,c=1-l,u=Object(Te["p"])(t.forkPosition,1),d=[];d[l]=a[l],d[c]=a[c]+(o[c]-a[c])*u,e.moveTo(a[0],a[1]),e.lineTo(d[0],d[1]),e.moveTo(r[0],r[1]),d[l]=r[l],e.lineTo(d[0],d[1]),d[l]=o[l],e.lineTo(d[0],d[1]),e.lineTo(o[0],o[1]);for(var p=1;p<i-1;p++){var h=n[p];e.moveTo(h[0],h[1]),d[l]=h[l],e.lineTo(d[0],d[1])}},t}(u["b"]),Vi=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new We["a"],n}return Object(b["b"])(t,e),t.prototype.init=function(e,t){this._controller=new mn["a"](t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var i=e.getData(),a=e.layoutInfo,r=this._mainGroup,o=e.get("layout");"radial"===o?(r.x=a.x+a.width/2,r.y=a.y+a.height/2):(r.x=a.x,r.y=a.y),this._updateViewCoordSys(e),this._updateController(e,t,n);var s=this._data;i.diff(s).add((function(t){Ri(i,t)&&zi(i,t,null,r,e)})).update((function(t,n){var a=s.getItemGraphicEl(n);Ri(i,t)?zi(i,t,a,r,e):a&&Wi(s,n,a,r,e)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&Wi(s,t,n,r,e)})).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===e.get("expandAndCollapse")&&i.eachItemGraphicEl((function(t,i){t.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:i})}))})),this._data=i},t.prototype._updateViewCoordSys=function(e){var t=e.getData(),n=[];t.each((function(e){var i=t.getItemLayout(e);!i||isNaN(i.x)||isNaN(i.y)||n.push([+i.x,+i.y])}));var i=[],a=[];Ni["d"](n,i,a);var r=this._min,o=this._max;a[0]-i[0]===0&&(i[0]=r?r[0]:i[0]-1,a[0]=o?o[0]:a[0]+1),a[1]-i[1]===0&&(i[1]=r?r[1]:i[1]-1,a[1]=o?o[1]:a[1]+1);var s=e.coordinateSystem=new ei;s.zoomLimit=e.get("scaleLimit"),s.setBoundingRect(i[0],i[1],a[0]-i[0],a[1]-i[1]),s.setCenter(e.get("center")),s.setZoom(e.get("zoom")),this.group.attr({x:s.x,y:s.y,scaleX:s.scaleX,scaleY:s.scaleY}),this._min=i,this._max=a},t.prototype._updateController=function(e,t,n){var i=this,a=this._controller,r=this._controllerHost,o=this.group;a.setPointerChecker((function(t,i,a){var r=o.getBoundingRect();return r.applyTransform(o.transform),r.contain(i,a)&&!_n(t,n,e)})),a.enable(e.get("roam")),r.zoomLimit=e.get("scaleLimit"),r.zoom=e.coordinateSystem.getZoom(),a.off("pan").off("zoom").on("pan",(function(t){vn(r,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){bn(r,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(e),n.updateLabelLayout()}))},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=this._getNodeGlobalScale(e);t.eachItemGraphicEl((function(e,t){e.setSymbolScale(n)}))},t.prototype._getNodeGlobalScale=function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,i=t.scaleX||1,a=t.getZoom(),r=(a-1)*n+1;return r/i},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(Ue["a"]);function Ri(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function zi(e,t,n,i,a){var r=!n,o=e.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,c=!1===o.isExpand&&0!==o.children.length?l:"#fff",u=e.tree.root,d=o.parentNode===u?o:o.parentNode||o,p=e.getItemGraphicEl(d.dataIndex),h=d.getLayout(),g=p?{x:p.__oldX,y:p.__oldY,rawX:p.__radialOldRawX,rawY:p.__radialOldRawY}:h,f=o.getLayout();r?(n=new xi["a"](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,Be["h"](n,{x:f.x,y:f.y},a);var y=n.getSymbolPath();if("radial"===a.get("layout")){var m=u.children[0],v=m.getLayout(),b=m.children.length,x=void 0,_=void 0;if(f.x===v.x&&!0===o.isExpand){var S={x:(m.children[0].getLayout().x+m.children[b-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.children[b-1].getLayout().y)/2};x=Math.atan2(S.y-v.y,S.x-v.x),x<0&&(x=2*Math.PI+x),_=S.x<v.x,_&&(x-=Math.PI)}else x=Math.atan2(f.y-v.y,f.x-v.x),x<0&&(x=2*Math.PI+x),0===o.children.length||0!==o.children.length&&!1===o.isExpand?(_=f.x<v.x,_&&(x-=Math.PI)):(_=f.x>v.x,_||(x-=Math.PI));var w=_?"left":"right",O=s.getModel("label"),M=O.get("rotate"),I=M*(Math.PI/180),A=y.getTextContent();A&&(y.setTextConfig({position:O.get("position")||w,rotation:null==M?-x:I,origin:"center"}),A.setStyle("verticalAlign","middle"))}var j=s.get(["emphasis","focus"]),D="ancestor"===j?o.getAncestorsIndices():"descendant"===j?o.getDescendantIndices():null;D&&(Object(wt["a"])(n).focus=D),Bi(a,o,u,n,g,h,f,i),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var i=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);i&&i.hoverState===Fe["d"]||Object(Fe["H"])(n.__edge,t)}})}function Bi(e,t,n,i,a,r,o,s){var l=t.getModel(),u=e.get("edgeShape"),d=e.get("layout"),p=e.getOrient(),h=e.get(["lineStyle","curveness"]),g=e.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),y=i.__edge;if("curve"===u)t.parentNode&&t.parentNode!==n&&(y||(y=i.__edge=new bi["a"]({shape:Fi(d,p,h,a,a)})),Be["h"](y,{shape:Fi(d,p,h,r,o)},e));else if("polyline"===u)if("orthogonal"===d){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var m=t.children,v=[],b=0;b<m.length;b++){var x=m[b].getLayout();v.push([x.x,x.y])}y||(y=i.__edge=new Ei({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:p,forkPosition:g}})),Be["h"](y,{shape:{parentPoint:[o.x,o.y],childPoints:v}},e)}}else 0;y&&(y.useStyle(c["defaults"]({strokeNoScale:!0,fill:null},f)),Object(Fe["I"])(y,l,"lineStyle"),Object(Fe["G"])(y),s.add(y))}function Gi(e,t,n,i,a){var r=t.tree.root,o=Hi(r,e),s=o.source,l=o.sourceLayout,c=t.getItemGraphicEl(e.dataIndex);if(c){var u=t.getItemGraphicEl(s.dataIndex),d=u.__edge,p=c.__edge||(!1===s.isExpand||1===s.children.length?d:void 0),h=i.get("edgeShape"),g=i.get("layout"),f=i.get("orient"),y=i.get(["lineStyle","curveness"]);p&&("curve"===h?Be["e"](p,{shape:Fi(g,f,y,l,l),style:{opacity:0}},i,{cb:function(){n.remove(p)},removeOpt:a}):"polyline"===h&&"orthogonal"===i.get("layout")&&Be["e"](p,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},i,{cb:function(){n.remove(p)},removeOpt:a}))}}function Hi(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 Wi(e,t,n,i,a){var r=e.tree.getNodeByDataIndex(t),o=e.tree.root,s=Hi(o,r).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};Be["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,{fadeLabel:!0,animation:l}),r.children.forEach((function(t){Gi(t,e,i,a,l)})),Gi(r,e,i,a,l)}function Fi(e,t,n,i,a){var r,o,s,l,c,u,d,p;if("radial"===e){c=i.rawX,d=i.rawY,u=a.rawX,p=a.rawY;var h=Mi(c,d),g=Mi(c,d+(p-d)*n),f=Mi(u,p+(d-p)*n),y=Mi(u,p);return{x1:h.x||0,y1:h.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,d=i.y,u=a.x,p=a.y,"LR"!==t&&"RL"!==t||(r=c+(u-c)*n,o=d,s=u+(c-u)*n,l=p),"TB"!==t&&"BT"!==t||(r=c,o=d+(p-d)*n,s=u,l=p+(d-p)*n),{x1:c,y1:d,x2:u,y2:p,cpx1:r,cpy1:o,cpx2:s,cpy2:l}}var Ui=Vi,Yi=Object(lt["o"])();function Xi(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,ea(t,n,e),Object(c["each"])(n,(function(n){Object(c["each"])(t.TRANSFERABLE_METHODS,(function(t){n.wrapMethod(t,Object(c["curry"])(Zi,e))}))})),t.wrapMethod("cloneShallow",Object(c["curry"])(Ki,e)),Object(c["each"])(t.CHANGABLE_METHODS,(function(n){t.wrapMethod(n,Object(c["curry"])(qi,e))})),Object(c["assert"])(n[t.dataType]===t)}function Zi(e,t){if($i(this)){var n=Object(c["extend"])({},Yi(this).datas);n[this.dataType]=t,ea(t,n,e)}else ta(t,this.dataType,Yi(this).mainData,e);return t}function qi(e,t){return e.struct&&e.struct.update(),t}function Ki(e,t){return Object(c["each"])(Yi(t).datas,(function(n,i){n!==t&&ta(n.cloneShallow(),i,t,e)})),t}function Qi(e){var t=Yi(this).mainData;return null==e||null==t?t:Yi(t).datas[e]}function Ji(){var e=Yi(this).mainData;return null==e?[{data:e}]:Object(c["map"])(Object(c["keys"])(Yi(e).datas),(function(t){return{type:t,data:Yi(e).datas[t]}}))}function $i(e){return Yi(e).mainData===e}function ea(e,t,n){Yi(e).datas={},Object(c["each"])(t,(function(t,i){ta(t,i,e,n)}))}function ta(e,t,n,i){Yi(n).datas[t]=e,Yi(e).mainData=n,e.dataType=t,i.struct&&(e[i.structAttr]=i.struct,i.struct[i.datasAttr[t]]=e),e.getLinkedData=Qi,e.getLinkedDataAll=Ji}var na=Xi,ia=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){"function"===typeof e&&(n=t,t=e,e=null),e=e||{},c["isString"](e)&&(e={order:e});var i,a=e.order||"preorder",r=this[e.attr||"children"];"preorder"===a&&(i=t.call(n,this));for(var o=0;!i&&o<r.length;o++)r[o].eachNode(e,t,n);"postorder"===a&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(e+1),i.height>t&&(t=i.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,i=n.length;t<i;t++){var a=n[t].getNodeById(e);if(a)return a}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,i=n.length;t<i;t++){var a=n[t].contains(e);if(a)return a}},e.prototype.getAncestors=function(e){var t=[],n=e?this:this.parentNode;while(n)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){var e=[],t=this;while(t)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode((function(t){e.push(t.dataIndex)})),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},e.prototype.isAncestorOf=function(e){var t=e.parentNode;while(t){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}(),aa=function(){function e(e){this.type="tree",this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,i=t.length;n<i;n++)t[n].dataIndex=-1;for(n=0,i=e.count();n<i;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,i){var a=new e(n),r=[],o=1;function s(e,t){var n=e.value;o=Math.max(o,c["isArray"](n)?n.length:1),r.push(e);var i=new ia(Object(lt["e"])(e.name,""),a);t?ra(i,t):a.root=i,a._nodes.push(i);var l=e.children;if(l)for(var u=0;u<l.length;u++)s(l[u],i)}s(t),a.root.updateDepthAndHeight(0);var l=Object(rt["b"])(r,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new ot["a"](l,n);return u.initData(r),i&&i(u),na({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},e}();function ra(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}var oa=aa;function sa(e,t,n){if(e&&c["indexOf"](t,e.type)>=0){var i=n.getData().tree.root,a=e.targetNode;if("string"===typeof a&&(a=i.getNodeById(a)),a&&i.contains(a))return{node:a};var r=e.targetNodeId;if(null!=r&&(a=i.getNodeById(r)))return{node:a}}}function la(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function ca(e,t){var n=la(e);return c["indexOf"](n,t)>=0}function ua(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 da=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return Object(b["b"])(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},i=new Yt["a"](n,this,this.ecModel),a=oa.createTree(t,this,r);function r(e){e.wrapMethod("getItemModel",(function(e,t){var n=a.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=i),e}))}var o=0;a.eachNode("preorder",(function(e){e.depth>o&&(o=e.depth)}));var s=e.expandAndCollapse,l=s&&e.initialTreeDepth>=0?e.initialTreeDepth:o;return a.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=l})),a.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){var i=this.getData().tree,a=i.root.children[0],r=i.getNodeByDataIndex(e),o=r.getValue(),s=r.name;while(r&&r!==a)s=r.parentNode.name+"."+s,r=r.parentNode;return Object(Ht["c"])("nameValue",{name:s,value:o,noValue:isNaN(o)||null==o})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=ua(i,this),n},t.type="series.tree",t.layoutMode="box",t.defaultOption={zlevel:0,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}(pt["b"]),pa=da;function ha(e,t,n){var i,a=[e],r=[];while(i=a.pop())if(r.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)a.push(o[s])}while(i=r.pop())t(i,n)}function ga(e,t){var n,i=[e];while(n=i.pop())if(t(n),n.isExpand){var a=n.children;if(a.length)for(var r=a.length-1;r>=0;r--)i.push(a[r])}}function fa(e,t){e.eachSeriesByType("tree",(function(e){ya(e,t)}))}function ya(e,t){var n=Ii(e,t);e.layoutInfo=n;var i=e.get("layout"),a=0,r=0,o=null;"radial"===i?(a=2*Math.PI,r=Math.min(n.height,n.width)/2,o=Oi((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(a=n.width,r=n.height,o=Oi());var s=e.getData().tree.root,l=s.children[0];if(l){_i(s),ha(l,Si,o),s.hierNode.modifier=-l.hierNode.prelim,ga(l,wi);var c=l,u=l,d=l;ga(l,(function(e){var t=e.getLayout().x;t<c.getLayout().x&&(c=e),t>u.getLayout().x&&(u=e),e.depth>d.depth&&(d=e)}));var p=c===u?1:o(c,u)/2,h=p-c.getLayout().x,g=0,f=0,y=0,m=0;if("radial"===i)g=a/(u.getLayout().x+p+h),f=r/(d.depth-1||1),ga(l,(function(e){y=(e.getLayout().x+h)*g,m=(e.depth-1)*f;var t=Mi(y,m);e.setLayout({x:t.x,y:t.y,rawX:y,rawY:m},!0)}));else{var v=e.getOrient();"RL"===v||"LR"===v?(f=r/(u.getLayout().x+p+h),g=a/(d.depth-1||1),ga(l,(function(e){m=(e.getLayout().x+h)*f,y="LR"===v?(e.depth-1)*g:a-(e.depth-1)*g,e.setLayout({x:y,y:m},!0)}))):"TB"!==v&&"BT"!==v||(g=a/(u.getLayout().x+p+h),f=r/(d.depth-1||1),ga(l,(function(e){y=(e.getLayout().x+h)*g,m="TB"===v?(e.depth-1)*f:r-(e.depth-1)*f,e.setLayout({x:y,y:m},!0)})))}}}function ma(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(c["extend"])(a,i)}))}))}function va(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){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=t.coordinateSystem,i=hi(n,e);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))}function ba(e){e.registerChartView(Ui),e.registerSeriesModel(pa),e.registerLayout(fa),e.registerVisual(ma),va(e)}var xa=function(){},_a=["treemapZoomToNode","treemapRender","treemapMove"];function Sa(e){for(var t=0;t<_a.length;t++)e.registerAction({type:_a[t],update:"updateView"},xa);e.registerAction({type:"treemapRootToNode",update:"updateView"},(function(e,t){function n(t,n){var i=["treemapZoomToNode","treemapRootToNode"],a=sa(e,i,t);if(a){var r=t.getViewRoot();r&&(e.direction=ca(r,a.node)?"rollUp":"drillDown"),t.resetViewRoot(a.node)}}t.eachComponent({mainType:"series",subType:"treemap",query:e},n)}))}var wa=n("92e5");function Oa(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(wa["b"])(e.ecModel,n.name||n.dataIndex+"",i);t.setVisual("decal",a)}))}var Ma=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return Object(b["b"])(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};Ia(n);var i=e.levels||[],a=this.designatedVisualItemStyle={},r=new Yt["a"]({itemStyle:a},this,t);i=e.levels=Aa(i,t);var o=c["map"](i||[],(function(e){return new Yt["a"](e,r,t)}),this),s=oa.createTree(n,this,l);function l(e){e.wrapMethod("getItemModel",(function(e,t){var n=s.getNodeByDataIndex(t),i=n?o[n.depth]:null;return e.parentModel=i||r,e}))}return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),a=this.getRawValue(e),r=i.getName(e);return Object(Ht["c"])("nameValue",{name:r,value:a})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=ua(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},c["extend"](this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=c["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(){Oa(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"}}},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%"],ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(pt["b"]);function Ia(e){var t=0;c["each"](e.children,(function(e){Ia(e);var n=e.value;c["isArray"](n)&&(n=n[0]),t+=n}));var n=e.value;c["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),c["isArray"](e.value)?e.value[0]=n:e.value=n}function Aa(e,t){var n=Object(lt["r"])(t.get("color")),i=Object(lt["r"])(t.get(["aria","decal","decals"]));if(n){var a,r;e=e||[],c["each"](e,(function(e){var t=new Yt["a"](e),n=t.get("color"),i=t.get("decal");(t.get(["itemStyle","color"])||n&&"none"!==n)&&(a=!0),(t.get(["itemStyle","decal"])||i&&"none"!==i)&&(r=!0)}));var o=e[0]||(e[0]={});return a||(o.color=n.slice()),!r&&i&&(o.decal=i.slice()),e}}var ja=Ma,Da=n("e07c"),Ca=n("251d"),Ta=8,La=8,Pa=5,Na=function(){function e(e){this.group=new We["a"],e.add(this.group)}return e.prototype.render=function(e,t,n,i){var a=e.getModel("breadcrumb"),r=this.group;if(r.removeAll(),a.get("show")&&n){var o=a.getModel("itemStyle"),s=o.getModel("textStyle"),l={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,l,s),this._renderContent(e,l,o,s,i),Le["i"](r,l.pos,l.box)}},e.prototype._prepare=function(e,t,n){for(var i=e;i;i=i.parentNode){var a=Object(lt["e"])(i.getModel().get("name"),""),r=n.getTextRect(a),o=Math.max(r.width+2*Ta,t.emptyItemWidth);t.totalWidth+=o+La,t.renderList.push({node:i,text:a,width:o})}},e.prototype._renderContent=function(e,t,n,i,a){for(var r=0,o=t.emptyItemWidth,s=e.get(["breadcrumb","height"]),l=Le["e"](t.pos,t.box),u=t.totalWidth,d=t.renderList,p=d.length-1;p>=0;p--){var h=d[p],g=h.node,f=h.width,y=h.text;u>l.width&&(u-=f-o,f=o,y=null);var m=new zt["a"]({shape:{points:ka(r,0,f,s,p===d.length-1,0===p)},style:Object(c["defaults"])(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new ze["a"]({style:{text:y,fill:i.getTextColor(),font:i.getFont()}}),textConfig:{position:"inside"},z2:1e4*Fe["j"],onclick:Object(c["curry"])(a,g)});m.disableLabelAnimation=!0,this.group.add(m),Ea(m,e,g),r+=f+La}},e.prototype.remove=function(){this.group.removeAll()},e}();function ka(e,t,n,i,a,r){var o=[[a?e:e-Pa,t],[e+n,t],[e+n,t+i],[a?e:e-Pa,t+i]];return!r&&o.splice(2,0,[e+n+Pa,t+i/2]),!a&&o.push([e,t+i/2]),o}function Ea(e,t,n){Object(wt["a"])(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.componentIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&ua(n,t)}}var Va=Na,Ra=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,i,a){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:i,easing:a}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,a=this._storage.length;i<a;i++){var r=this._storage[i];r.el.animateTo(r.target,{duration:r.duration,delay:r.delay,easing:r.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function za(){return new Ra}var Ba=n("e4fc"),Ga=n("6d29"),Ha=We["a"],Wa=Da["a"],Fa=3,Ua="label",Ya="upperLabel",Xa=10*Fe["j"],Za=2*Fe["j"],qa=3*Fe["j"],Ka=Object(Ba["a"])([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Qa=function(e){var t=Ka(e);return t.stroke=t.fill=t.lineWidth=null,t},Ja=Object(lt["o"])(),$a=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage=er(),n}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n,i){var a=t.findComponents({mainType:"series",subType:"treemap",query:i});if(!(Object(c["indexOf"])(a,e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var r=["treemapZoomToNode","treemapRootToNode"],o=sa(i,r,e),s=i&&i.type,l=e.layoutInfo,u=!this._oldTree,d=this._storage,p="treemapRootToNode"===s&&o&&d?{rootNodeGroup:d.nodeGroup[o.node.getRawIndex()],direction:i.direction}:null,h=this._giveContainerGroup(l),g=e.get("animation"),f=this._doRender(h,e,p);!g||u||s&&"treemapZoomToNode"!==s&&"treemapRootToNode"!==s?f.renderFinally():this._doAnimation(h,f,e,p),this._resetController(n),this._renderBreadcrumb(e,n,o)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new Ha,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var i=t.getData().tree,a=this._oldTree,r=er(),o=er(),s=this._storage,l=[];function u(e,i,a,c){return tr(t,o,s,n,r,l,e,i,a,c)}p(i.root?[i.root]:[],a&&a.root?[a.root]:[],e,i===a||!a,0);var d=h(s);return this._oldTree=i,this._storage=o,{lastsForAnimation:r,willDeleteEls:d,renderFinally:g};function p(e,t,n,i,a){function r(e){return e.getId()}function o(r,o){var s=null!=r?e[r]:null,l=null!=o?t[o]:null,c=u(s,l,n,a);c&&p(s&&s.viewChildren||[],l&&l.viewChildren||[],c,i,a+1)}i?(t=e,Object(c["each"])(e,(function(e,t){!e.isRemoved()&&o(t,t)}))):new Ca["a"](t,e,r,r).add(o).update(o).remove(Object(c["curry"])(o,null)).execute()}function h(e){var t=er();return e&&Object(c["each"])(e,(function(e,n){var i=t[n];Object(c["each"])(e,(function(e){e&&(i.push(e),Ja(e).willDelete=!0)}))})),t}function g(){Object(c["each"])(d,(function(e){Object(c["each"])(e,(function(e){e.parent&&e.parent.remove(e)}))})),Object(c["each"])(l,(function(e){e.invisible=!0,e.dirty()}))}},t.prototype._doAnimation=function(e,t,n,i){var a=n.get("animationDurationUpdate"),r=n.get("animationEasing"),o=(Object(c["isFunction"])(a)?0:a)||0,s=(Object(c["isFunction"])(r)?null:r)||"cubicOut",l=za();Object(c["each"])(t.willDeleteEls,(function(e,t){Object(c["each"])(e,(function(e,n){if(!e.invisible){var a,r=e.parent,c=Ja(r);if(i&&"drillDown"===i.direction)a=r===i.rootNodeGroup?{shape:{x:0,y:0,width:c.nodeWidth,height:c.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,d=0;c.willDelete||(u=c.nodeWidth/2,d=c.nodeHeight/2),a="nodeGroup"===t?{x:u,y:d,style:{opacity:0}}:{shape:{x:u,y:d,width:0,height:0},style:{opacity:0}}}a&&l.add(e,a,o,0,s)}}))})),Object(c["each"])(this._storage,(function(e,n){Object(c["each"])(e,(function(e,i){var a=t.lastsForAnimation[n][i],r={};a&&(e instanceof We["a"]?null!=a.oldX&&(r.x=e.x,r.y=e.y,e.x=a.oldX,e.y=a.oldY):(a.oldShape&&(r.shape=Object(c["extend"])({},e.shape),e.setShape(a.oldShape)),a.fadein?(e.setStyle("opacity",0),r.style={opacity:1}):1!==e.style.opacity&&(r.style={opacity:1})),l.add(e,r,o,0,s))}))}),this),this._state="animating",l.finished(Object(c["bind"])((function(){this._state="ready",t.renderFinally()}),this)).start()},t.prototype._resetController=function(e){var t=this._controller;t||(t=this._controller=new mn["a"](e.getZr()),t.enable(this.seriesModel.get("roam")),t.on("pan",Object(c["bind"])(this._onPan,this)),t.on("zoom",Object(c["bind"])(this._onZoom,this)));var n=new Xn["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)>Fa||Math.abs(e.dy)>Fa)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var a=i.getLayout();if(!a)return;var r=new Xn["a"](a.x,a.y,a.width,a.height),o=this.seriesModel.layoutInfo;t-=o.x,n-=o.y;var s=qn["create"]();qn["translate"](s,s,[-t,-n]),qn["scale"](s,s,[e.scale,e.scale]),qn["translate"](s,s,[t,n]),r.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:r.x,y:r.y,width:r.width,height:r.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var i=t.findTarget(e.offsetX,e.offsetY);if(i){var a=i.node;if(a.getLayout().isLeafRoot)t._rootToNode(i);else if("zoomToNode"===n)t._zoomToNode(i);else if("link"===n){var r=a.hostTree.data.getItemModel(a.dataIndex),o=r.get("link",!0),s=r.get("target",!0)||"blank";o&&Object(Ga["l"])(o,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var i=this;n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Va(this.group))).render(e,t,n.node,(function(t){"animating"!==i._state&&(ca(e.getViewRoot(),t)?i._rootToNode({node:t}):i._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=er(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},(function(i){var a=this._storage.background[i.getRawIndex()];if(a){var r=a.transformCoordToLocal(e,t),o=a.shape;if(!(o.x<=r[0]&&r[0]<=o.x+o.width&&o.y<=r[1]&&r[1]<=o.y+o.height))return!1;n={node:i,offsetX:r[0],offsetY:r[1]}}}),this),n},t.type="treemap",t}(Ue["a"]);function er(){return{nodeGroup:[],background:[],content:[]}}function tr(e,t,n,i,a,r,o,s,l,u){if(o){var d=o.getLayout(),p=e.getData(),h=o.getModel();if(p.setItemGraphicEl(o.dataIndex,null),d&&d.isInView){var g=d.width,f=d.height,y=d.borderWidth,m=d.invisible,v=o.getRawIndex(),b=s&&s.getRawIndex(),x=o.viewChildren,_=d.upperHeight,S=x&&x.length,w=h.getModel("itemStyle"),O=h.getModel(["emphasis","itemStyle"]),M=h.getModel(["blur","itemStyle"]),I=h.getModel(["select","itemStyle"]),A=w.get("borderRadius")||0,j=z("nodeGroup",Ha);if(j){if(l.add(j),j.x=d.x||0,j.y=d.y||0,j.markRedraw(),Ja(j).nodeWidth=g,Ja(j).nodeHeight=f,d.isAboveViewRoot)return j;var D=z("background",Wa,u,Za);D&&N(j,D,S&&d.upperLabelHeight);var C=h.get(["emphasis","focus"]),T=h.get(["emphasis","blurScope"]),L="ancestor"===C?o.getAncestorsIndices():"descendant"===C?o.getDescendantIndices():C;if(S)Object(Fe["y"])(j)&&Object(Fe["F"])(j,!1),D&&(Object(Fe["F"])(D,!0),p.setItemGraphicEl(o.dataIndex,D),Object(Fe["p"])(D,L,T));else{var P=z("content",Wa,u,qa);P&&k(j,P),D.disableMorphing=!0,D&&Object(Fe["y"])(D)&&Object(Fe["F"])(D,!1),Object(Fe["F"])(j,!0),p.setItemGraphicEl(o.dataIndex,j),Object(Fe["p"])(j,L,T)}return j}}}function N(t,n,i){var a=Object(wt["a"])(n);if(a.dataIndex=o.dataIndex,a.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:g,height:f,r:A}),m)E(n);else{n.invisible=!1;var r=o.getVisual("style"),s=r.stroke,l=Qa(w);l.fill=s;var c=Ka(O);c.fill=O.get("borderColor");var u=Ka(M);u.fill=M.get("borderColor");var d=Ka(I);if(d.fill=I.get("borderColor"),i){var p=g-2*y;V(n,s,r.opacity,{x:y,y:0,width:p,height:_})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=c,n.ensureState("blur").style=u,n.ensureState("select").style=d,Object(Fe["G"])(n)}t.add(n)}function k(t,n){var i=Object(wt["a"])(n);i.dataIndex=o.dataIndex,i.seriesIndex=e.seriesIndex;var a=Math.max(g-2*y,0),r=Math.max(f-2*y,0);if(n.culling=!0,n.setShape({x:y,y:y,width:a,height:r,r:A}),m)E(n);else{n.invisible=!1;var s=o.getVisual("style"),l=s.fill,c=Qa(w);c.fill=l,c.decal=s.decal;var u=Ka(O),d=Ka(M),p=Ka(I);V(n,l,s.opacity,null),n.setStyle(c),n.ensureState("emphasis").style=u,n.ensureState("blur").style=d,n.ensureState("select").style=p,Object(Fe["G"])(n)}t.add(n)}function E(e){!e.invisible&&r.push(e)}function V(t,n,i,a){var r=h.getModel(a?Ya:Ua),s=Object(lt["e"])(h.get("name"),null),l=r.getShallow("show");Object(et["g"])(t,Object(et["e"])(h,a?Ya:Ua),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:e,labelDataIndex:o.dataIndex});var u=t.getTextContent();if(u){var p=u.style,g=Object(c["normalizeCssArray"])(p.padding||0);a&&(t.setTextConfig({layoutRect:a}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var e=Math.max((a?a.width:t.shape.width)-g[1]-g[3],0),n=Math.max((a?a.height:t.shape.height)-g[0]-g[2],0);p.width===e&&p.height===n||u.setStyle({width:e,height:n})},p.truncateMinChar=2,p.lineOverflow="truncate",R(p,a,d);var f=u.getState("emphasis");R(f?f.style:null,a,d)}}function R(t,n,i){var a=t?t.text:null;if(!n&&i.isLeafRoot&&null!=a){var r=e.get("drillDownIcon",!0);t.text=r?r+" "+a:a}}function z(e,i,r,o){var s=null!=b&&n[e][b],l=a[e];return s?(n[e][b]=null,B(l,s)):m||(s=new i,s instanceof In["c"]&&(s.z2=nr(r,o)),G(l,s)),t[e][v]=s}function B(e,t){var n=e[v]={};t instanceof Ha?(n.oldX=t.x,n.oldY=t.y):n.oldShape=Object(c["extend"])({},t.shape)}function G(e,t){var n=e[v]={},r=o.parentNode,s=t instanceof We["a"];if(r&&(!i||"drillDown"===i.direction)){var l=0,c=0,u=a.background[r.getRawIndex()];!i&&u&&u.oldShape&&(l=u.oldShape.width,c=u.oldShape.height),s?(n.oldX=0,n.oldY=c):n.oldShape={x:l,y:c,width:0,height:0}}n.fadein=!s}}function nr(e,t){return e*Xa+t}var ir=$a,ar=c["each"],rr=c["isObject"],or=-1,sr=function(){function e(t){var n=t.mappingMethod,i=t.type,a=this.option=c["clone"](t);this.type=i,this.mappingMethod=n,this._normalizeData=br[n];var r=e.visualHandlers[i];this.applyVisual=r.applyVisual,this.getColorMapper=r.getColorMapper,this._normalizedToVisual=r._normalizedToVisual[n],"piecewise"===n?(ur(a),lr(a)):"category"===n?a.categories?cr(a):ur(a,!0):(c["assert"]("linear"!==n||a.dataExtent),ur(a))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return c["bind"](this._normalizeData,this)},e.listVisualTypes=function(){return c["keys"](e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){c["isObject"](e)?c["each"](e,t,n):t.call(n,e)},e.mapVisual=function(t,n,i){var a,r=c["isArray"](t)?[]:c["isObject"](t)?{}:(a=!0,null);return e.eachVisual(t,(function(e,t){var o=n.call(i,e,t);a?r=o:r[t]=o})),r},e.retrieveVisuals=function(t){var n,i={};return t&&ar(e.visualHandlers,(function(e,a){t.hasOwnProperty(a)&&(i[a]=t[a],n=!0)})),n?i:null},e.prepareVisualTypes=function(e){if(c["isArray"](e))e=e.slice();else{if(!rr(e))return[];var t=[];ar(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var i,a=1/0,r=0,o=t.length;r<o;r++){var s=t[r].value;if(null!=s){if(s===e||"string"===typeof s&&s===e+"")return r;n&&d(s,r)}}for(r=0,o=t.length;r<o;r++){var l=t[r],c=l.interval,u=l.close;if(c){if(c[0]===-1/0){if(xr(u[1],e,c[1]))return r}else if(c[1]===1/0){if(xr(u[0],c[0],e))return r}else if(xr(u[0],c[0],e)&&xr(u[1],e,c[1]))return r;n&&d(c[0],r),n&&d(c[1],r)}}if(n)return e===1/0?t.length-1:e===-1/0?0:i;function d(t,n){var r=Math.abs(t-e);r<a&&(a=r,i=n)}},e.visualHandlers={color:{applyVisual:hr("color"),getColorMapper:function(){var e=this.option;return c["bind"]("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),gr.call(this,e)}:function(t,n,i){var a=!!i;return!n&&(t=this._normalizeData(t)),i=o["fastLerp"](t,e.parsedVisual,i),a?i:o["stringify"](i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return o["stringify"](o["fastLerp"](e,this.option.parsedVisual),"rgba")},category:gr,piecewise:function(e,t){var n=mr.call(this,t);return null==n&&(n=o["stringify"](o["fastLerp"](e,this.option.parsedVisual),"rgba")),n},fixed:fr}},colorHue:dr((function(e,t){return o["modifyHSL"](e,t)})),colorSaturation:dr((function(e,t){return o["modifyHSL"](e,null,t)})),colorLightness:dr((function(e,t){return o["modifyHSL"](e,null,null,t)})),colorAlpha:dr((function(e,t){return o["modifyAlpha"](e,t)})),decal:{applyVisual:hr("decal"),_normalizedToVisual:{linear:null,category:gr,piecewise:null,fixed:null}},opacity:{applyVisual:hr("opacity"),_normalizedToVisual:yr([0,1])},liftZ:{applyVisual:hr("liftZ"),_normalizedToVisual:{linear:fr,category:fr,piecewise:fr,fixed:fr}},symbol:{applyVisual:function(e,t,n){var i=this.mapValueToVisual(e);n("symbol",i)},_normalizedToVisual:{linear:pr,category:gr,piecewise:function(e,t){var n=mr.call(this,t);return null==n&&(n=pr.call(this,e)),n},fixed:fr}},symbolSize:{applyVisual:hr("symbolSize"),_normalizedToVisual:yr([0,1])}},e}();function lr(e){var t=e.pieceList;e.hasSpecialVisual=!1,c["each"](t,(function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)}))}function cr(e){var t=e.categories,n=e.categoryMap={},i=e.visual;if(ar(t,(function(e,t){n[e]=t})),!c["isArray"](i)){var a=[];c["isObject"](i)?ar(i,(function(e,t){var i=n[t];a[null!=i?i:or]=e})):a[or]=i,i=vr(e,a)}for(var r=t.length-1;r>=0;r--)null==i[r]&&(delete n[t[r]],t.pop())}function ur(e,t){var n=e.visual,i=[];c["isObject"](n)?ar(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]),vr(e,i)}function dr(e){return{applyVisual:function(t,n,i){var a=this.mapValueToVisual(t);i("color",e(n("color"),a))},_normalizedToVisual:yr([0,1])}}function pr(e){var t=this.option.visual;return t[Math.round(Object(Te["l"])(e,[0,1],[0,t.length-1],!0))]||{}}function hr(e){return function(t,n,i){i(e,this.mapValueToVisual(t))}}function gr(e){var t=this.option.visual;return t[this.option.loop&&e!==or?e%t.length:e]}function fr(){return this.option.visual[0]}function yr(e){return{linear:function(t){return Object(Te["l"])(t,e,this.option.visual,!0)},category:gr,piecewise:function(t,n){var i=mr.call(this,n);return null==i&&(i=Object(Te["l"])(t,e,this.option.visual,!0)),i},fixed:fr}}function mr(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var i=sr.findPieceIndex(e,n),a=n[i];if(a&&a.visual)return a.visual[this.type]}}function vr(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=c["map"](t,(function(e){return o["parse"](e)}))),t}var br={linear:function(e){return Object(Te["l"])(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=sr.findPieceIndex(e,t,!0);if(null!=n)return Object(Te["l"])(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?or:t},fixed:c["noop"]};function xr(e,t,n){return e?t<=n:t<n}var _r=sr,Sr="itemStyle",wr=Object(lt["o"])(),Or={seriesType:"treemap",reset:function(e){var t=e.getData().tree,n=t.root;n.isRemoved()||Mr(n,{},e.getViewRoot().getAncestors(),e)}};function Mr(e,t,n,i){var a=e.getModel(),r=e.getLayout(),o=e.hostTree.data;if(r&&!r.invisible&&r.isInView){var s,l=a.getModel(Sr),u=Ir(l,t,i),d=o.ensureUniqueItemVisual(e.dataIndex,"style"),p=l.get("borderColor"),h=l.get("borderColorSaturation");null!=h&&(s=Ar(u),p=jr(h,s)),d.stroke=p;var g=e.viewChildren;if(g&&g.length){var f=Cr(e,a,r,l,u,g);Object(c["each"])(g,(function(e,t){if(e.depth>=n.length||e===n[e.depth]){var r=Lr(a,u,e,t,f,i);Mr(e,r,n,i)}}))}else s=Ar(u),d.fill=s}}function Ir(e,t,n){var i=Object(c["extend"])({},t),a=n.designatedVisualItemStyle;return Object(c["each"])(["color","colorAlpha","colorSaturation"],(function(n){a[n]=t[n];var r=e.get(n);a[n]=null,null!=r&&(i[n]=r)})),i}function Ar(e){var t=Dr(e,"color");if(t){var n=Dr(e,"colorAlpha"),i=Dr(e,"colorSaturation");return i&&(t=Object(o["modifyHSL"])(t,null,null,i)),n&&(t=Object(o["modifyAlpha"])(t,n)),t}}function jr(e,t){return null!=t?Object(o["modifyHSL"])(t,null,null,e):null}function Dr(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function Cr(e,t,n,i,a,r){if(r&&r.length){var o=Tr(t,"color")||null!=a.color&&"none"!==a.color&&(Tr(t,"colorAlpha")||Tr(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),c=n.dataExtent.slice();null!=s&&s<c[0]&&(c[0]=s),null!=l&&l>c[1]&&(c[1]=l);var u=t.get("colorMappingBy"),d={type:o.name,dataExtent:c,visual:o.range};"color"!==d.type||"index"!==u&&"id"!==u?d.mappingMethod="linear":(d.mappingMethod="category",d.loop=!0);var p=new _r(d);return wr(p).drColorMappingBy=u,p}}}function Tr(e,t){var n=e.get(t);return Object(c["isArray"])(n)&&n.length?{name:t,range:n}:null}function Lr(e,t,n,i,a,r){var o=Object(c["extend"])({},t);if(a){var s=a.type,l="color"===s&&wr(a).drColorMappingBy,u="index"===l?i:"id"===l?r.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var Pr=Math.max,Nr=Math.min,kr=c["retrieve"],Er=c["each"],Vr=["itemStyle","borderWidth"],Rr=["itemStyle","gapWidth"],zr=["upperLabel","show"],Br=["upperLabel","height"],Gr={seriesType:"treemap",reset:function(e,t,n,i){var a=n.getWidth(),r=n.getHeight(),o=e.option,s=Le["g"](e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=o.size||[],u=Object(Te["p"])(kr(s.width,l[0]),a),d=Object(Te["p"])(kr(s.height,l[1]),r),p=i&&i.type,h=["treemapZoomToNode","treemapRootToNode"],g=sa(i,h,e),f="treemapRender"===p||"treemapMove"===p?i.rootRect:null,y=e.getViewRoot(),m=la(y);if("treemapMove"!==p){var v="treemapZoomToNode"===p?qr(e,g,y,u,d):f?[f.width,f.height]:[u,d],b=o.sort;b&&"asc"!==b&&"desc"!==b&&(b="desc");var x={squareRatio:o.squareRatio,sort:b,leafDepth:o.leafDepth};y.hostTree.clearLayouts();var _={x:0,y:0,width:v[0],height:v[1],area:v[0]*v[1]};y.setLayout(_),Hr(y,x,!1,0),_=y.getLayout(),Er(m,(function(e,t){var n=(m[t+1]||y).getValue();e.setLayout(c["extend"]({dataExtent:[n,n],borderWidth:0,upperHeight:0},_))}))}var S=e.getData().tree.root;S.setLayout(Kr(s,f,g),!0),e.setLayoutInfo(s),Qr(S,new Xn["a"](-s.x,-s.y,a,r),m,y,0)}};function Hr(e,t,n,i){var a,r;if(!e.isRemoved()){var o=e.getLayout();a=o.width,r=o.height;var s=e.getModel(),l=s.get(Vr),c=s.get(Rr)/2,u=Jr(s),d=Math.max(l,u),p=l-c,h=d-c;e.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:u},!0),a=Pr(a-2*p,0),r=Pr(r-p-h,0);var g=a*r,f=Wr(e,s,g,t,n,i);if(f.length){var y={x:p,y:h,width:a,height:r},m=Nr(a,r),v=1/0,b=[];b.area=0;for(var x=0,_=f.length;x<_;){var S=f[x];b.push(S),b.area+=S.getLayout().area;var w=Xr(b,m,t.squareRatio);w<=v?(x++,v=w):(b.area-=b.pop().getLayout().area,Zr(b,m,y,c,!1),m=Nr(y.width,y.height),b.length=b.area=0,v=1/0)}if(b.length&&Zr(b,m,y,c,!0),!n){var O=s.get("childrenVisibleMin");null!=O&&g<O&&(n=!0)}for(x=0,_=f.length;x<_;x++)Hr(f[x],t,n,i+1)}}}function Wr(e,t,n,i,a,r){var o=e.children||[],s=i.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=i.leafDepth&&i.leafDepth<=r;if(a&&!l)return e.viewChildren=[];o=c["filter"](o,(function(e){return!e.isRemoved()})),Ur(o,s);var u=Yr(t,o,s);if(0===u.sum)return e.viewChildren=[];if(u.sum=Fr(t,n,u.sum,s,o),0===u.sum)return e.viewChildren=[];for(var d=0,p=o.length;d<p;d++){var h=o[d].getValue()/u.sum*n;o[d].setLayout({area:h})}return l&&(o.length&&e.setLayout({isLeafRoot:!0},!0),o.length=0),e.viewChildren=o,e.setLayout({dataExtent:u.dataExtent},!0),o}function Fr(e,t,n,i,a){if(!i)return n;for(var r=e.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var c=a["asc"===i?o-l-1:l].getValue();c/n*t<r&&(s=l,n-=c)}return"asc"===i?a.splice(0,o-s):a.splice(s,o-s),n}function Ur(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 Yr(e,t,n){for(var i=0,a=0,r=t.length;a<r;a++)i+=t[a].getValue();var o,s=e.get("visualDimension");return t&&t.length?"value"===s&&n?(o=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&o.reverse()):(o=[1/0,-1/0],Er(t,(function(e){var t=e.getValue(s);t<o[0]&&(o[0]=t),t>o[1]&&(o[1]=t)}))):o=[NaN,NaN],{sum:i,dataExtent:o}}function Xr(e,t,n){for(var i=0,a=1/0,r=0,o=void 0,s=e.length;r<s;r++)o=e[r].getLayout().area,o&&(o<a&&(a=o),o>i&&(i=o));var l=e.area*e.area,c=t*t*n;return l?Pr(c*i/l,l/(c*a)):1/0}function Zr(e,t,n,i,a){var r=t===n.width?0:1,o=1-r,s=["x","y"],l=["width","height"],c=n[s[r]],u=t?e.area/t:0;(a||u>n[l[o]])&&(u=n[l[o]]);for(var d=0,p=e.length;d<p;d++){var h=e[d],g={},f=u?h.getLayout().area/u:0,y=g[l[o]]=Pr(u-2*i,0),m=n[s[r]]+n[l[r]]-c,v=d===p-1||m<f?m:f,b=g[l[r]]=Pr(v-2*i,0);g[s[o]]=n[s[o]]+Nr(i,y/2),g[s[r]]=c+Nr(i,b/2),c+=v,h.setLayout(g,!0)}n[s[o]]+=u,n[l[o]]-=u}function qr(e,t,n,i,a){var r,o=(t||{}).node,s=[i,a];if(!o||o===n)return s;var l=i*a,c=l*e.option.zoomToNodeRatio;while(r=o.parentNode){for(var u=0,d=r.children,p=0,h=d.length;p<h;p++)u+=d[p].getValue();var g=o.getValue();if(0===g)return s;c*=u/g;var f=r.getModel(),y=f.get(Vr),m=Math.max(y,Jr(f));c+=4*y*y+(3*y+m)*Math.pow(c,.5),c>Te["a"]&&(c=Te["a"]),o=r}c<l&&(c=l);var v=Math.pow(c/l,.5);return[i*v,a*v]}function Kr(e,t,n){if(t)return{x:t.x,y:t.y};var i={x:0,y:0};if(!n)return i;var a=n.node,r=a.getLayout();if(!r)return i;var o=[r.width/2,r.height/2],s=a;while(s){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}function Qr(e,t,n,i,a){var r=e.getLayout(),o=n[a],s=o&&o===e;if(!(o&&!s||a===n.length&&e!==i)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(r),isAboveViewRoot:s},!0);var l=new Xn["a"](t.x-r.x,t.y-r.y,t.width,t.height);Er(e.viewChildren||[],(function(e){Qr(e,l,n,i,a+1)}))}}function Jr(e){return e.get(zr)?e.get(Br):0}function $r(e){e.registerSeriesModel(ja),e.registerChartView(ir),e.registerVisual(Or),e.registerLayout(Gr),Sa(e)}function eo(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),i=e.getGraph(),a=i.data,r=n.mapArray(n.getName);a.filterSelf((function(e){var n=a.getItemModel(e),i=n.getShallow("category");if(null!=i){"number"===typeof i&&(i=r[i]);for(var o=0;o<t.length;o++)if(!t[o].isSelected(i))return!1}return!0}))}))}function to(e){var t={};e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),i=e.getData(),a={};n.each((function(i){var r=n.getName(i);a["ec-"+r]=i;var o=n.getItemModel(i),s=o.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e.getColorFromPalette(r,t)),n.setItemVisual(i,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],c=0;c<l.length;c++){var u=o.getShallow(l[c],!0);null!=u&&n.setItemVisual(i,l[c],u)}})),n.count()&&i.each((function(e){var t=i.getItemModel(e),r=t.getShallow("category");if(null!=r){"string"===typeof r&&(r=a["ec-"+r]);var o=n.getItemVisual(r,"style"),s=i.ensureUniqueItemVisual(e,"style");Object(c["extend"])(s,o);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++)i.setItemVisual(e,l[u],n.getItemVisual(r,l[u]))}}))}))}function no(e){return e instanceof Array||(e=[e,e]),e}function io(e){e.eachSeriesByType("graph",(function(e){var t=e.getGraph(),n=e.getEdgeData(),i=no(e.get("edgeSymbol")),a=no(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",a&&a[0]),n.setVisual("toSymbolSize",a&&a[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each((function(e){var i=n.getItemModel(e),a=t.getEdgeByIndex(e),r=no(i.getShallow("symbol",!0)),o=no(i.getShallow("symbolSize",!0)),s=i.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(e,"style");switch(Object(c["extend"])(l,s),l.stroke){case"source":var u=a.node1.getVisual("style");l.stroke=u&&u.fill;break;case"target":u=a.node2.getVisual("style");l.stroke=u&&u.fill;break}r[0]&&a.setVisual("fromSymbol",r[0]),r[1]&&a.setVisual("toSymbol",r[1]),o[0]&&a.setVisual("fromSymbolSize",o[0]),o[1]&&a.setVisual("toSymbolSize",o[1])}))}))}var ao="--\x3e",ro=function(e){return e.get("autoCurveness")||null},oo=function(e,t){var n=ro(e),i=20,a=[];if("number"===typeof n)i=n;else if(c["isArray"](n))return void(e.__curvenessList=n);t>i&&(i=t);var r=i%2?i+2:i+3;a=[];for(var o=0;o<r;o++)a.push((o%2?o+1:o)/10*(o%2?-1:1));e.__curvenessList=a},so=function(e,t,n){var i=[e.id,e.dataIndex].join("."),a=[t.id,t.dataIndex].join(".");return[n.uid,i,a].join(ao)},lo=function(e){var t=e.split(ao);return[t[0],t[2],t[1]].join(ao)},co=function(e,t){var n=so(e.node1,e.node2,t);return t.__edgeMap[n]},uo=function(e,t){var n=po(so(e.node1,e.node2,t),t),i=po(so(e.node2,e.node1,t),t);return n+i},po=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function ho(e){ro(e)&&(e.__curvenessList=[],e.__edgeMap={},oo(e))}function go(e,t,n,i){if(ro(n)){var a=so(e,t,n),r=n.__edgeMap,o=r[lo(a)];r[a]&&!o?r[a].isForward=!0:o&&r[a]&&(o.isForward=!0,r[a].isForward=!1),r[a]=r[a]||[],r[a].push(i)}}function fo(e,t,n,i){var a=ro(t),r=c["isArray"](a);if(!a)return null;var o=co(e,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===n){s=l;break}var u=uo(e,t);oo(t,u),e.lineStyle=e.lineStyle||{};var d=so(e.node1,e.node2,t),p=t.__curvenessList,h=r||u%2?0:1;if(o.isForward)return p[h+s];var g=lo(d),f=po(g,t),y=p[s+f+h];return i?r?a&&0===a[0]?(f+h)%2?y:-y:((f%2?0:1)+h)%2?y:-y:(f+h)%2?y:-y:p[s+f+h]}function yo(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")])})),mo(n,e)}}function mo(e,t){e.eachEdge((function(e,n){var i=c["retrieve3"](e.getModel().get(["lineStyle","curveness"]),-fo(e,t,n,!0),0),a=Zn["clone"](e.node1.getLayout()),r=Zn["clone"](e.node2.getLayout()),o=[a,r];+i&&o.push([(a[0]+r[0])/2-(a[1]-r[1])*i,(a[1]+r[1])/2-(r[0]-a[0])*i]),e.setLayout(o)}))}function vo(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(c["each"])(n.dimensions,(function(e){a=a.concat(i.mapDimensionsAll(e))}));for(var r=0;r<i.count();r++){for(var o=[],s=!1,l=0;l<a.length;l++){var u=i.get(a[l],r);isNaN(u)||(s=!0),o.push(u)}s?i.setItemLayout(r,n.dataToPoint(o)):i.setItemLayout(r,[NaN,NaN])}mo(i.graph,e)}else t&&"none"!==t||yo(e)}))}function bo(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,i=t.scaleX,a=t.getZoom(),r=(a-1)*n+1;return r/i}function xo(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var _o=Math.PI,So=[];function wo(e,t){var n=e.coordinateSystem;if(!n||"view"===n.type){var i=n.getBoundingRect(),a=e.getData(),r=a.graph,o=i.width/2+i.x,s=i.height/2+i.y,l=Math.min(i.width,i.height)/2,u=a.count();a.setLayout({cx:o,cy:s}),u&&(Oo[t](e,r,a,l,o,s,u),r.eachEdge((function(t,n){var i,a=c["retrieve3"](t.getModel().get(["lineStyle","curveness"]),fo(t,e,n),0),r=Zn["clone"](t.node1.getLayout()),l=Zn["clone"](t.node2.getLayout()),u=(r[0]+l[0])/2,d=(r[1]+l[1])/2;+a&&(a*=3,i=[o*a+u*(1-a),s*a+d*(1-a)]),t.setLayout([r,l,i])})))}}var Oo={value:function(e,t,n,i,a,r,o){var s=0,l=n.getSum("value"),c=2*Math.PI/(l||o);t.eachNode((function(e){var t=e.getValue("value"),n=c*(l?t:1)/2;s+=n,e.setLayout([i*Math.cos(s)+a,i*Math.sin(s)+r]),s+=n}))},symbolSize:function(e,t,n,i,a,r,o){var s=0;So.length=o;var l=bo(e);t.eachNode((function(e){var t=xo(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=l;var n=Math.asin(t/2/i);isNaN(n)&&(n=_o/2),So[e.dataIndex]=n,s+=2*n}));var c=(2*_o-s)/o/2,u=0;t.eachNode((function(e){var t=c+So[e.dataIndex];u+=t,e.setLayout([i*Math.cos(u)+a,i*Math.sin(u)+r]),u+=t}))}};function Mo(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&wo(e,"symbolSize")}))}var Io=Zn["scaleAndAdd"];function Ao(e,t,n){for(var i=e,a=t,r=n.rect,o=r.width,s=r.height,l=[r.x+o/2,r.y+s/2],c=null==n.gravity?.1:n.gravity,u=0;u<i.length;u++){var d=i[u];d.p||(d.p=Zn["create"](o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),d.pp=Zn["clone"](d.p),d.edges=null}var p,h,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){p=e},afterStep:function(e){h=e},step:function(e){p&&p(i,a);for(var t=[],n=i.length,r=0;r<a.length;r++){var o=a[r];if(!o.ignoreForceLayout){var s=o.n1,u=o.n2;Zn["sub"](t,u.p,s.p);var d=Zn["len"](t)-o.d,g=u.w/(s.w+u.w);isNaN(g)&&(g=0),Zn["normalize"](t,t),!s.fixed&&Io(s.p,s.p,t,g*d*f),!u.fixed&&Io(u.p,u.p,t,-(1-g)*d*f)}}for(r=0;r<n;r++){var y=i[r];y.fixed||(Zn["sub"](t,l,y.p),Io(y.p,y.p,t,c*f))}for(r=0;r<n;r++){s=i[r];for(var m=r+1;m<n;m++){u=i[m];Zn["sub"](t,u.p,s.p);d=Zn["len"](t);0===d&&(Zn["set"](t,Math.random()-.5,Math.random()-.5),d=1);var v=(s.rep+u.rep)/d/d;!s.fixed&&Io(s.pp,s.pp,t,v),!u.fixed&&Io(u.pp,u.pp,t,-v)}}var b=[];for(r=0;r<n;r++){y=i[r];y.fixed||(Zn["sub"](b,y.p,y.pp),Io(y.p,y.p,b,f),Zn["copy"](y.pp,y.p))}f*=.992;var x=f<.01;h&&h(i,a,x),e&&e(x)}}}function jo(e){e.eachSeriesByType("graph",(function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},i=e.getGraph(),a=i.data,r=i.edgeData,o=e.getModel("force"),s=o.get("initLayout");e.preservedPoints?a.each((function(e){var t=a.getId(e);a.setItemLayout(e,n[t]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&wo(e,"value"):yo(e);var l=a.getDataExtent("value"),u=r.getDataExtent("value"),d=o.get("repulsion"),p=o.get("edgeLength"),h=c["isArray"](d)?d:[d,d],g=c["isArray"](p)?p:[p,p];g=[g[1],g[0]];var f=a.mapArray("value",(function(e,t){var n=a.getItemLayout(t),i=Object(Te["l"])(e,l,h);return isNaN(i)&&(i=(h[0]+h[1])/2),{w:i,rep:i,fixed:a.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),y=r.mapArray("value",(function(t,n){var a=i.getEdgeByIndex(n),r=Object(Te["l"])(t,u,g);isNaN(r)&&(r=(g[0]+g[1])/2);var o=a.getModel(),s=c["retrieve3"](a.getModel().get(["lineStyle","curveness"]),-fo(a,e,n,!0),0);return{n1:f[a.node1.dataIndex],n2:f[a.node2.dataIndex],d:r,curveness:s,ignoreForceLayout:o.get("ignoreForceLayout")}})),m=t.getBoundingRect(),v=Ao(f,y,{rect:m,gravity:o.get("gravity"),friction:o.get("friction")});v.beforeStep((function(e,t){for(var n=0,a=e.length;n<a;n++)e[n].fixed&&Zn["copy"](e[n].p,i.getNodeByIndex(n).getLayout())})),v.afterStep((function(e,t,r){for(var o=0,s=e.length;o<s;o++)e[o].fixed||i.getNodeByIndex(o).setLayout(e[o].p),n[a.getId(o)]=e[o].p;for(o=0,s=t.length;o<s;o++){var l=t[o],c=i.getEdgeByIndex(o),u=l.n1.p,d=l.n2.p,p=c.getLayout();p=p?p.slice():[],p[0]=p[0]||[],p[1]=p[1]||[],Zn["copy"](p[0],u),Zn["copy"](p[1],d),+l.curveness&&(p[2]=[(u[0]+d[0])/2-(u[1]-d[1])*l.curveness,(u[1]+d[1])/2-(d[0]-u[0])*l.curveness]),c.setLayout(p)}})),e.forceLayout=v,e.preservedPoints=n,v.step()}else e.forceLayout=null}))}function Do(e,t,n){var i=Object(c["extend"])(e.getBoxLayoutParams(),{aspect:n});return Object(Le["g"])(i,{width:t.getWidth(),height:t.getHeight()})}function Co(e,t){var n=[];return e.eachSeriesByType("graph",(function(e){var i=e.get("coordinateSystem");if(!i||"view"===i){var a=e.getData(),r=a.mapArray((function(e){var t=a.getItemModel(e);return[+t.get("x"),+t.get("y")]})),o=[],s=[];Ni["d"](r,o,s),s[0]-o[0]===0&&(s[0]+=1,o[0]-=1),s[1]-o[1]===0&&(s[1]+=1,o[1]-=1);var l=(s[0]-o[0])/(s[1]-o[1]),c=Do(e,t,l);isNaN(l)&&(o=[c.x,c.y],s=[c.x+c.width,c.y+c.height]);var u=s[0]-o[0],d=s[1]-o[1],p=c.width,h=c.height,g=e.coordinateSystem=new ei;g.zoomLimit=e.get("scaleLimit"),g.setBoundingRect(o[0],o[1],u,d),g.setViewRect(c.x,c.y,p,h),g.setCenter(e.get("center")),g.setZoom(e.get("zoom")),n.push(g)}})),n}var To=n("f6f3"),Lo=To["a"].prototype,Po=bi["a"].prototype,No=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(b["b"])(t,e)})(No);function ko(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var Eo=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-line",n}return Object(b["b"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new No},t.prototype.buildPath=function(e,t){ko(t)?Lo.buildPath.call(this,e,t):Po.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return ko(this.shape)?Lo.pointAt.call(this,e):Po.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=ko(t)?[t.x2-t.x1,t.y2-t.y1]:Po.tangentAt.call(this,e);return Zn["normalize"](n,n)},t}(u["b"]),Vo=Eo,Ro=["fromSymbol","toSymbol"];function zo(e){return"_"+e+"Type"}function Bo(e,t,n){var i=t.getItemVisual(n,e);if(i&&"none"!==i){var a=t.getItemVisual(n,e+"Size"),r=t.getItemVisual(n,e+"Rotate"),o=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=_t["c"](a),c=_t["b"](o||0,l),u=_t["a"](i,-l[0]/2+c[0],-l[1]/2+c[1],l[0],l[1],null,s);return u.__specifiedRotation=null==r||isNaN(r)?void 0:+r*Math.PI/180||0,u.name=e,u}}function Go(e){var t=new Vo({name:"line",subPixelOptimize:!0});return Ho(t.shape,e),t}function Ho(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 Wo=function(e){function t(t,n,i){var a=e.call(this)||this;return a._createLine(t,n,i),a}return Object(b["b"])(t,e),t.prototype._createLine=function(e,t,n){var i=e.hostModel,a=e.getItemLayout(t),r=Go(a);r.shape.percent=0,Be["c"](r,{shape:{percent:1}},i,t),this.add(r),Object(c["each"])(Ro,(function(n){var i=Bo(n,e,t);this.add(i),this[zo(n)]=e.getItemVisual(t,n)}),this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var i=e.hostModel,a=this.childOfName("line"),r=e.getItemLayout(t),o={shape:{}};Ho(o.shape,r),Be["h"](a,o,i,t),Object(c["each"])(Ro,(function(n){var i=e.getItemVisual(t,n),a=zo(n);if(this[a]!==i){this.remove(this.childOfName(n));var r=Bo(n,e,t);this.add(r)}this[a]=i}),this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var i=e.hostModel,a=this.childOfName("line"),r=n&&n.emphasisLineStyle,o=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels;if(!n||e.hasItemOption){var u=e.getItemModel(t);r=u.getModel(["emphasis","lineStyle"]).getLineStyle(),o=u.getModel(["blur","lineStyle"]).getLineStyle(),s=u.getModel(["select","lineStyle"]).getLineStyle(),l=Object(et["e"])(u)}var d=e.getItemVisual(t,"style"),p=d.stroke;a.useStyle(d),a.style.fill=null,a.style.strokeNoScale=!0,a.ensureState("emphasis").style=r,a.ensureState("blur").style=o,a.ensureState("select").style=s,Object(c["each"])(Ro,(function(e){var t=this.childOfName(e);if(t){t.setColor(p),t.style.opacity=d.opacity;for(var n=0;n<Fe["g"].length;n++){var i=Fe["g"][n],r=a.getState(i);if(r){var o=r.style||{},s=t.ensureState(i),l=s.style||(s.style={});null!=o.stroke&&(l[t.__isEmptyBrush?"stroke":"fill"]=o.stroke),null!=o.opacity&&(l.opacity=o.opacity)}}t.markRedraw()}}),this);var h=i.getRawValue(t);Object(et["g"])(this,l,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return i.getFormattedLabel(t,n,e.dataType)}},inheritColor:p||"#000",defaultOpacity:d.opacity,defaultText:(null==h?e.getName(t):isFinite(h)?Object(Te["v"])(h):h)+""});var g=this.getTextContent();if(g){var f=l.normal;g.__align=g.style.align,g.__verticalAlign=g.style.verticalAlign,g.__position=f.get("position")||"middle";var y=f.get("distance");Object(c["isArray"])(y)||(y=[y,y]),g.__labelDistance=y}this.setTextConfig({position:null,local:!0,inside:!1}),Object(Fe["o"])(this)},t.prototype.highlight=function(){Object(Fe["r"])(this)},t.prototype.downplay=function(){Object(Fe["C"])(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName("line");Ho(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this,t=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),i=e.getTextContent();if(t||n||i&&!i.ignore){var a=1,r=this.parent;while(r)r.scaleX&&(a/=r.scaleX),r=r.parent;var o=e.childOfName("line");if(this.__dirty||o.__dirty){var s=o.shape.percent,l=o.pointAt(0),c=o.pointAt(s),u=Zn["sub"]([],c,l);if(Zn["normalize"](u,u),t&&(t.setPosition(l),w(t,0),t.scaleX=t.scaleY=a*s,t.markRedraw()),n&&(n.setPosition(c),w(n,1),n.scaleX=n.scaleY=a*s,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var d=void 0,p=void 0,h=i.__labelDistance,g=h[0]*a,f=h[1]*a,y=s/2,m=o.tangentAt(y),v=[m[1],-m[0]],b=o.pointAt(y);v[1]>0&&(v[0]=-v[0],v[1]=-v[1]);var x=m[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var _=-Math.atan2(m[1],m[0]);c[0]<l[0]&&(_=Math.PI+_),i.rotation=_}var S=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":S=-f,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":S=f,p="top";break;default:S=0,p="middle"}switch(i.__position){case"end":i.x=u[0]*g+c[0],i.y=u[1]*f+c[1],d=u[0]>.8?"left":u[0]<-.8?"right":"center",p=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],d=u[0]>.8?"right":u[0]<-.8?"left":"center",p=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]+S,d=m[0]<0?"right":"left",i.originX=-g*x,i.originY=-S;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=b[0],i.y=b[1]+S,d="center",i.originY=-S;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-g*x+c[0],i.y=c[1]+S,d=m[0]>=0?"right":"left",i.originX=g*x,i.originY=-S;break}i.scaleX=i.scaleY=a,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||d})}}}function w(e,t){var n=e.__specifiedRotation;if(null==n){var i=o.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else e.attr("rotation",n)}},t}(We["a"]),Fo=Wo,Uo=function(){function e(e){this.group=new We["a"],this._LineCtor=e||Fo}return e.prototype.isPersistent=function(){return!0},e.prototype.updateData=function(e){var t=this,n=this,i=n.group,a=n._lineData;n._lineData=e,a||i.removeAll();var r=Xo(e);e.diff(a).add((function(n){t._doAdd(e,n,r)})).update((function(n,i){t._doUpdate(a,e,i,n,r)})).remove((function(e){i.remove(a.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Xo(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||Yo(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var a=t.getItemLayout(i);if(qo(a)){var r=new this._LineCtor(t,i,this._seriesScope);r.traverse(n),this.group.add(r),t.setItemGraphicEl(i,r)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype._doAdd=function(e,t,n){var i=e.getItemLayout(t);if(qo(i)){var a=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,a),this.group.add(a)}},e.prototype._doUpdate=function(e,t,n,i,a){var r=e.getItemGraphicEl(n);qo(t.getItemLayout(i))?(r?r.updateData(t,i,a):r=new this._LineCtor(t,i,a),t.setItemGraphicEl(i,r),this.group.add(r)):this.group.remove(r)},e}();function Yo(e){return e.animators&&e.animators.length>0}function Xo(e){var t=e.hostModel;return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["emphasis","lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),labelStatesModels:Object(et["e"])(t)}}function Zo(e){return isNaN(e[0])||isNaN(e[1])}function qo(e){return!Zo(e[0])&&!Zo(e[1])}var Ko=Uo,Qo=n("4300"),Jo=[],$o=[],es=[],ts=Qo["h"],ns=Zn["distSquare"],is=Math.abs;function as(e,t,n){for(var i,a=e[0],r=e[1],o=e[2],s=1/0,l=n*n,c=.1,u=.1;u<=.9;u+=.1){Jo[0]=ts(a[0],r[0],o[0],u),Jo[1]=ts(a[1],r[1],o[1],u);var d=is(ns(Jo,t)-l);d<s&&(s=d,i=u)}for(var p=0;p<32;p++){var h=i+c;$o[0]=ts(a[0],r[0],o[0],i),$o[1]=ts(a[1],r[1],o[1],i),es[0]=ts(a[0],r[0],o[0],h),es[1]=ts(a[1],r[1],o[1],h);d=ns($o,t)-l;if(is(d)<.01)break;var g=ns(es,t)-l;c/=2,d<0?g>=0?i+=c:i-=c:g>=0?i-=c:i+=c}return i}function rs(e,t){var n=[],i=Qo["n"],a=[[],[],[]],r=[[],[]],o=[];t/=2,e.eachEdge((function(e,s){var l=e.getLayout(),c=e.getVisual("fromSymbol"),u=e.getVisual("toSymbol");l.__original||(l.__original=[Zn["clone"](l[0]),Zn["clone"](l[1])],l[2]&&l.__original.push(Zn["clone"](l[2])));var d=l.__original;if(null!=l[2]){if(Zn["copy"](a[0],d[0]),Zn["copy"](a[1],d[2]),Zn["copy"](a[2],d[1]),c&&"none"!==c){var p=xo(e.node1),h=as(a,d[0],p*t);i(a[0][0],a[1][0],a[2][0],h,n),a[0][0]=n[3],a[1][0]=n[4],i(a[0][1],a[1][1],a[2][1],h,n),a[0][1]=n[3],a[1][1]=n[4]}if(u&&"none"!==u){p=xo(e.node2),h=as(a,d[1],p*t);i(a[0][0],a[1][0],a[2][0],h,n),a[1][0]=n[1],a[2][0]=n[2],i(a[0][1],a[1][1],a[2][1],h,n),a[1][1]=n[1],a[2][1]=n[2]}Zn["copy"](l[0],a[0]),Zn["copy"](l[1],a[2]),Zn["copy"](l[2],a[1])}else{if(Zn["copy"](r[0],d[0]),Zn["copy"](r[1],d[1]),Zn["sub"](o,r[1],r[0]),Zn["normalize"](o,o),c&&"none"!==c){p=xo(e.node1);Zn["scaleAndAdd"](r[0],r[0],o,p*t)}if(u&&"none"!==u){p=xo(e.node2);Zn["scaleAndAdd"](r[1],r[1],o,-p*t)}Zn["copy"](l[0],r[0]),Zn["copy"](l[1],r[1])}}))}function os(e){return"view"===e.type}var ss=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.init=function(e,t){var n=new xt["a"],i=new Ko,a=this.group;this._controller=new mn["a"](t.getZr()),this._controllerHost={target:a},a.add(n.group),a.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,t,n){var i=this,a=e.coordinateSystem;this._model=e;var r=this._symbolDraw,o=this._lineDraw,s=this.group;if(os(a)){var l={x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY};this._firstRender?s.attr(l):Be["h"](s,l,e)}rs(e.getGraph(),bo(e));var u=e.getData();r.updateData(u);var d=e.getEdgeData();o.updateData(d),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var p=e.forceLayout,h=e.get(["force","layoutAnimation"]);p&&this._startForceLayoutIteration(p,h),u.graph.eachNode((function(e){var t=e.dataIndex,n=e.getGraphicEl(),a=e.getModel();n.off("drag").off("dragend");var r=a.get("draggable");r&&n.on("drag",(function(){p&&(p.warmUp(),!i._layouting&&i._startForceLayoutIteration(p,h),p.setFixed(t),u.setItemLayout(t,[n.x,n.y]))})).on("dragend",(function(){p&&p.setUnfixed(t)})),n.setDraggable(r&&!!p);var o=a.get(["emphasis","focus"]);"adjacency"===o&&(Object(wt["a"])(n).focus=e.getAdjacentDataIndices())})),u.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);"adjacency"===n&&(Object(wt["a"])(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var g="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),f=u.getLayout("cx"),y=u.getLayout("cy");u.eachItemGraphicEl((function(e,t){var n=u.getItemModel(t),i=n.get(["label","rotate"])||0,a=e.getSymbolPath();if(g){var r=u.getItemLayout(t),o=Math.atan2(r[1]-y,r[0]-f);o<0&&(o=2*Math.PI+o);var s=r[0]<f;s&&(o-=Math.PI);var l=s?"left":"right";a.setTextConfig({rotation:-o,position:l,origin:"center"});var d=a.ensureState("emphasis");c["extend"](d.textConfig||(d.textConfig={}),{position:l})}else a.setTextConfig({rotation:i*=Math.PI/180})})),this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;(function i(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(i,16):i())}))})()},t.prototype._updateController=function(e,t,n){var i=this,a=this._controller,r=this._controllerHost,o=this.group;a.setPointerChecker((function(t,i,a){var r=o.getBoundingRect();return r.applyTransform(o.transform),r.contain(i,a)&&!_n(t,n,e)})),os(e.coordinateSystem)?(a.enable(e.get("roam")),r.zoomLimit=e.get("scaleLimit"),r.zoom=e.coordinateSystem.getZoom(),a.off("pan").off("zoom").on("pan",(function(t){vn(r,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){bn(r,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(),rs(e.getGraph(),bo(e)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):a.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=bo(e);t.eachItemGraphicEl((function(e,t){e.setSymbolScale(n)}))},t.prototype.updateLayout=function(e){rs(e.getGraph(),bo(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}(Ue["a"]),ls=ss;function cs(e){return"_EC_"+e}var us=function(){function e(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[cs(e)]){var i=new ds(e,t);return i.hostGraph=this,this.nodes.push(i),n[cs(e)]=i,i}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[cs(e)]},e.prototype.addEdge=function(e,t,n){var i=this._nodesMap,a=this._edgesMap;if("number"===typeof e&&(e=this.nodes[e]),"number"===typeof t&&(t=this.nodes[t]),e instanceof ds||(e=i[cs(e)]),t instanceof ds||(t=i[cs(t)]),e&&t){var r=e.id+"-"+t.id,o=new ps(e,t,n);return o.hostGraph=this,this._directed&&(e.outEdges.push(o),t.inEdges.push(o)),e.edges.push(o),e!==t&&t.edges.push(o),this.edges.push(o),a[r]=o,o}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof ds&&(e=e.id),t instanceof ds&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&e.call(t,n[a],a)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&e.call(t,n[a],a)},e.prototype.breadthFirstTraverse=function(e,t,n,i){if(t instanceof ds||(t=this._nodesMap[cs(t)]),t){for(var a="out"===n?"outEdges":"in"===n?"inEdges":"edges",r=0;r<this.nodes.length;r++)this.nodes[r].__visited=!1;if(!e.call(i,t,null)){var o=[t];while(o.length){var s=o.shift(),l=s[a];for(r=0;r<l.length;r++){var c=l[r],u=c.node1===s?c.node2:c.node1;if(!u.__visited){if(e.call(i,u,s))return;o.push(u),u.__visited=!0}}}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,i=this.edges,a=0,r=n.length;a<r;a++)n[a].dataIndex=-1;for(a=0,r=e.count();a<r;a++)n[e.getRawIndex(a)].dataIndex=a;t.filterSelf((function(e){var n=i[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(a=0,r=i.length;a<r;a++)i[a].dataIndex=-1;for(a=0,r=t.count();a<r;a++)i[t.getRawIndex(a)].dataIndex=a},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,i=this.edges,a=0;a<n.length;a++)t.addNode(n[a].id,n[a].dataIndex);for(a=0;a<i.length;a++){var r=i[a];t.addEdge(r.node1.id,r.node2.id,r.dataIndex)}return t},e}(),ds=function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==e?"":e,this.dataIndex=null==t?-1:t}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},e}(),ps=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}return e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e}();function hs(e,t){return{getValue:function(n){var i=this[e][t];return i.getStore().get(i.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}c["mixin"](ds,hs("hostGraph","data")),c["mixin"](ps,hs("hostGraph","edgeData"));var gs=us,fs=n("9ed2");function ys(e,t,n,i,a){for(var r=new gs(i),o=0;o<e.length;o++)r.addNode(c["retrieve"](e[o].id,e[o].name,o),o);var s=[],l=[],u=0;for(o=0;o<t.length;o++){var d=t[o],p=d.source,h=d.target;r.addEdge(p,h,u)&&(l.push(d),s.push(c["retrieve"](Object(lt["e"])(d.id,null),p+" > "+h)),u++)}var g,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)g=Object(mt["a"])(e,n);else{var y=fs["a"].get(f),m=y&&y.dimensions||[];c["indexOf"](m,"value")<0&&m.concat(["value"]);var v=Object(rt["b"])(e,{coordDimensions:m,encodeDefine:n.getEncode()}).dimensions;g=new ot["a"](v,n),g.initData(e)}var b=new ot["a"](["value"],n);return b.initData(l,s),a&&a(g,b),na({mainData:g,struct:r,structAttr:"graph",datas:{node:g,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),r.update(),r}var ms=n("919a"),vs=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(b["b"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new dt(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(lt["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){ho(this);var r=ys(i,n,this,!0,o);return c["each"](r.edges,(function(e){go(e.node1,e.node2,this,e.dataIndex)}),this),r.data}function o(e,t){e.wrapMethod("getItemModel",(function(e){var t=a._categoriesModels,n=e.getShallow("category"),i=t[n];return i&&(i.parentModel=e.parentModel,e.parentModel=i),e}));var n=Yt["a"].prototype.getModel;function i(e,t){var i=n.call(this,e,t);return i.resolveParentPath=r,i}function r(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=r,e.getModel=i,e}))}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var i=this.getData(),a=this.getDataParams(e,n),r=i.graph.getEdgeByIndex(e),o=i.getName(r.node1.dataIndex),s=i.getName(r.node2.dataIndex),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),Object(Ht["c"])("nameValue",{name:l.join(" > "),value:a.value,noValue:null==a.value})}var c=Object(ms["a"])({series:this,dataIndex:e,multipleSeries:t});return c},t.prototype._updateCategoriesData=function(){var e=c["map"](this.option.categories||[],(function(e){return null!=e.value?e:c["extend"]({value:0},e)})),t=new ot["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={zlevel:0,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}(pt["b"]),bs=vs,xs={type:"graphRoam",event:"graphRoam",update:"none"};function _s(e){e.registerChartView(ls),e.registerSeriesModel(bs),e.registerProcessor(eo),e.registerVisual(to),e.registerVisual(io),e.registerLayout(vo),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,Mo),e.registerLayout(jo),e.registerCoordinateSystem("graphView",{dimensions:ei.dimensions,create:Co}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},(function(){})),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},(function(){})),e.registerAction(xs,(function(e,t){t.eachComponent({mainType:"series",query:e},(function(t){var n=t.coordinateSystem,i=hi(n,e);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))}var Ss=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),ws=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return Object(b["b"])(t,e),t.prototype.getDefaultShape=function(){return new Ss},t.prototype.buildPath=function(e,t){var n=Math.cos,i=Math.sin,a=t.r,r=t.width,o=t.angle,s=t.x-n(o)*r*(r>=a/3?1:2),l=t.y-i(o)*r*(r>=a/3?1:2);o=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(o)*r,t.y+i(o)*r),e.lineTo(t.x+n(t.angle)*a,t.y+i(t.angle)*a),e.lineTo(t.x-n(o)*r,t.y-i(o)*r),e.lineTo(s,l)},t}(u["b"]),Os=ws,Ms=n("16f4");function Is(e,t){var n=e.get("center"),i=t.getWidth(),a=t.getHeight(),r=Math.min(i,a),o=Object(Te["p"])(n[0],t.getWidth()),s=Object(Te["p"])(n[1],t.getHeight()),l=Object(Te["p"])(e.get("radius"),r/2);return{cx:o,cy:s,r:l}}function As(e,t){var n=null==e?"":e+"";return t&&("string"===typeof t?n=t.replace("{value}",n):"function"===typeof t&&(n=t(e))),n}var js=2*Math.PI,Ds=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),a=Is(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){for(var r=this.group,o=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"),d=u?Ms["a"]:He["a"],p=c.get("show"),h=c.getModel("lineStyle"),g=h.get("width"),f=(l-s)%js||l===s?(l-s)%js:js,y=s,m=0;p&&m<i.length;m++){var v=Math.min(Math.max(i[m][0],0),1);l=s+f*v;var b=new d({shape:{startAngle:y,endAngle:l,cx:a.cx,cy:a.cy,clockwise:o,r0:a.r-g,r:a.r},silent:!0});b.setStyle({fill:i[m][1]}),b.setStyle(h.getLineStyle(["color","width"])),r.add(b),y=l}var x=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]};if(!o){var _=s;s=l,l=_}this._renderTicks(e,t,n,x,a,s,l,o,g),this._renderTitleAndDetail(e,t,n,x,a),this._renderAnchor(e,a),this._renderPointer(e,t,n,x,a,s,l,o,g)},t.prototype._renderTicks=function(e,t,n,i,a,r,o,s,l){for(var c,u,d=this.group,p=a.cx,h=a.cy,g=a.r,f=+e.get("min"),y=+e.get("max"),m=e.getModel("splitLine"),v=e.getModel("axisTick"),b=e.getModel("axisLabel"),x=e.get("splitNumber"),_=v.get("splitNumber"),S=Object(Te["p"])(m.get("length"),g),w=Object(Te["p"])(v.get("length"),g),O=r,M=(o-r)/x,I=M/_,A=m.getModel("lineStyle").getLineStyle(),j=v.getModel("lineStyle").getLineStyle(),D=m.get("distance"),C=0;C<=x;C++){if(c=Math.cos(O),u=Math.sin(O),m.get("show")){var T=D?D+l:l,L=new To["a"]({shape:{x1:c*(g-T)+p,y1:u*(g-T)+h,x2:c*(g-S-T)+p,y2:u*(g-S-T)+h},style:A,silent:!0});"auto"===A.stroke&&L.setStyle({stroke:i(C/x)}),d.add(L)}if(b.get("show")){T=b.get("distance")+D;var P=As(Object(Te["v"])(C/x*(y-f)+f),b.get("formatter")),N=i(C/x);d.add(new ze["a"]({style:Object(et["c"])(b,{text:P,x:c*(g-S-T)+p,y:u*(g-S-T)+h,verticalAlign:u<-.8?"top":u>.8?"bottom":"middle",align:c<-.4?"left":c>.4?"right":"center"},{inheritColor:N}),silent:!0}))}if(v.get("show")&&C!==x){T=v.get("distance");T=T?T+l:l;for(var k=0;k<=_;k++){c=Math.cos(O),u=Math.sin(O);var E=new To["a"]({shape:{x1:c*(g-T)+p,y1:u*(g-T)+h,x2:c*(g-w-T)+p,y2:u*(g-w-T)+h},silent:!0,style:j});"auto"===j.stroke&&E.setStyle({stroke:i((C+k/_)/x)}),d.add(E),O+=I}O-=I}else O+=M}},t.prototype._renderPointer=function(e,t,n,i,a,r,o,s,l){var u=this.group,p=this._data,h=this._progressEls,g=[],f=e.get(["pointer","show"]),y=e.getModel("progress"),m=y.get("show"),v=e.getData(),b=v.mapDimension("value"),x=+e.get("min"),_=+e.get("max"),S=[x,_],w=[r,o];function O(t,n){var i,r=v.getItemModel(t),o=r.getModel("pointer"),s=Object(Te["p"])(o.get("width"),a.r),l=Object(Te["p"])(o.get("length"),a.r),c=e.get(["pointer","icon"]),u=o.get("offsetCenter"),d=Object(Te["p"])(u[0],a.r),p=Object(Te["p"])(u[1],a.r),h=o.get("keepAspect");return i=c?Object(_t["a"])(c,d-s/2,p-l,s,l,null,h):new Os({shape:{angle:-Math.PI/2,width:s,r:l,x:d,y:p}}),i.rotation=-(n+Math.PI/2),i.x=a.cx,i.y=a.cy,i}function M(e,t){var n=y.get("roundCap"),i=n?Ms["a"]:He["a"],o=y.get("overlap"),c=o?y.get("width"):l/v.count(),u=o?a.r-c:a.r-(e+1)*c,d=o?a.r:a.r-e*c,p=new i({shape:{startAngle:r,endAngle:t,cx:a.cx,cy:a.cy,clockwise:s,r0:u,r:d}});return o&&(p.z2=_-v.get(b,e)%_),p}(m||f)&&(v.diff(p).add((function(t){if(f){var n=O(t,r);Be["c"](n,{rotation:-(Object(Te["l"])(v.get(b,t),S,w,!0)+Math.PI/2)},e),u.add(n),v.setItemGraphicEl(t,n)}if(m){var i=M(t,r),a=y.get("clip");Be["c"](i,{shape:{endAngle:Object(Te["l"])(v.get(b,t),S,w,a)}},e),u.add(i),Object(wt["b"])(e.seriesIndex,v.dataType,t,i),g[t]=i}})).update((function(t,n){if(f){var i=p.getItemGraphicEl(n),a=i?i.rotation:r,o=O(t,a);o.rotation=a,Be["h"](o,{rotation:-(Object(Te["l"])(v.get(b,t),S,w,!0)+Math.PI/2)},e),u.add(o),v.setItemGraphicEl(t,o)}if(m){var s=h[n],l=s?s.shape.endAngle:r,c=M(t,l),d=y.get("clip");Be["h"](c,{shape:{endAngle:Object(Te["l"])(v.get(b,t),S,w,d)}},e),u.add(c),Object(wt["b"])(e.seriesIndex,v.dataType,t,c),g[t]=c}})).execute(),v.each((function(e){var t=v.getItemModel(e),n=t.getModel("emphasis");if(f){var a=v.getItemGraphicEl(e),r=v.getItemVisual(e,"style"),o=r.fill;if(a instanceof d["a"]){var s=a.style;a.useStyle(Object(c["extend"])({image:s.image,x:s.x,y:s.y,width:s.width,height:s.height},r))}else a.useStyle(r),"pointer"!==a.type&&a.setColor(o);a.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===a.style.fill&&a.setStyle("fill",i(Object(Te["l"])(v.get(b,e),S,[0,1],!0))),a.z2EmphasisLift=0,Object(Fe["I"])(a,t),Object(Fe["o"])(a,n.get("focus"),n.get("blurScope"))}if(m){var l=g[e];l.useStyle(v.getItemVisual(e,"style")),l.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),l.z2EmphasisLift=0,Object(Fe["I"])(l,t),Object(Fe["o"])(l,n.get("focus"),n.get("blurScope"))}})),this._progressEls=g)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor"),i=n.get("show");if(i){var a=n.get("size"),r=n.get("icon"),o=n.get("offsetCenter"),s=n.get("keepAspect"),l=Object(_t["a"])(r,t.cx-a/2+Object(Te["p"])(o[0],t.r),t.cy-a/2+Object(Te["p"])(o[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 r=this,o=e.getData(),s=o.mapDimension("value"),l=+e.get("min"),c=+e.get("max"),u=new We["a"],d=[],p=[],h=e.isAnimationEnabled(),g=e.get(["pointer","showAbove"]);o.diff(this._data).add((function(e){d[e]=new ze["a"]({silent:!0}),p[e]=new ze["a"]({silent:!0})})).update((function(e,t){d[e]=r._titleEls[t],p[e]=r._detailEls[t]})).execute(),o.each((function(t){var n=o.getItemModel(t),r=o.get(s,t),f=new We["a"],y=i(Object(Te["l"])(r,[l,c],[0,1],!0)),m=n.getModel("title");if(m.get("show")){var v=m.get("offsetCenter"),b=a.cx+Object(Te["p"])(v[0],a.r),x=a.cy+Object(Te["p"])(v[1],a.r),_=d[t];_.attr({z2:g?0:2,style:Object(et["c"])(m,{x:b,y:x,text:o.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:y})}),f.add(_)}var S=n.getModel("detail");if(S.get("show")){var w=S.get("offsetCenter"),O=a.cx+Object(Te["p"])(w[0],a.r),M=a.cy+Object(Te["p"])(w[1],a.r),I=Object(Te["p"])(S.get("width"),a.r),A=Object(Te["p"])(S.get("height"),a.r),j=e.get(["progress","show"])?o.getItemVisual(t,"style").fill:y,D=(_=p[t],S.get("formatter"));_.attr({z2:g?0:2,style:Object(et["c"])(S,{x:O,y:M,text:As(r,D),width:isNaN(I)?null:I,height:isNaN(A)?null:A,align:"center",verticalAlign:"middle"},{inheritColor:j})}),Object(et["h"])(_,{normal:S},r,(function(e){return As(e,D)})),h&&Object(et["a"])(_,t,o,e,{getFormattedLabel:function(e,t,n,i,a,o){return As(o?o.interpolatedValue:r,D)}}),f.add(_)}u.add(f)})),this.group.add(u),this._titleEls=d,this._detailEls=p},t.type="gauge",t}(Ue["a"]),Cs=Ds,Ts=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return Object(b["b"])(t,e),t.prototype.getInitialData=function(e,t){return st(this,["value"])},t.type="series.gauge",t.defaultOption={zlevel:0,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},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}(pt["b"]),Ls=Ts;function Ps(e){e.registerChartView(Cs),e.registerSeriesModel(Ls)}var Ns=["itemStyle","opacity"],ks=function(e){function t(t,n){var i=e.call(this)||this,a=i,r=new Ge["a"],o=new ze["a"];return a.setTextContent(o),i.setTextGuideLine(r),i.updateData(t,n,!0),i}return Object(b["b"])(t,e),t.prototype.updateData=function(e,t,n){var i=this,a=e.hostModel,r=e.getItemModel(t),o=e.getItemLayout(t),s=r.getModel("emphasis"),l=r.get(Ns);l=null==l?1:l,n||Object(Be["g"])(i),i.useStyle(e.getItemVisual(t,"style")),i.style.lineJoin="round",n?(i.setShape({points:o.points}),i.style.opacity=0,Be["c"](i,{style:{opacity:l}},a,t)):Be["h"](i,{style:{opacity:l},shape:{points:o.points}},a,t),Object(Fe["I"])(i,r),this._updateLabel(e,t),Object(Fe["o"])(this,s.get("focus"),s.get("blurScope"))},t.prototype._updateLabel=function(e,t){var n=this,i=this.getTextGuideLine(),a=n.getTextContent(),r=e.hostModel,o=e.getItemModel(t),s=e.getItemLayout(t),l=s.label,c=e.getItemVisual(t,"style"),u=c.fill;Object(et["g"])(a,Object(et["e"])(o),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:c.opacity,defaultText:e.getName(t)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:u,outsideFill:u});var d=l.linePoints;i.setShape({points:d}),n.textGuideLineConfig={anchor:d?new Ye["a"](d[0][0],d[0][1]):null},Be["h"](a,{style:{x:l.x,y:l.y}},r,t),a.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),Object(Xe["d"])(n,Object(Xe["a"])(o),{stroke:u})},t}(zt["a"]),Es=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),a=this._data,r=this.group;i.diff(a).add((function(e){var t=new ks(i,e);i.setItemGraphicEl(e,t),r.add(t)})).update((function(e,t){var n=a.getItemGraphicEl(t);n.updateData(i,e),r.add(n),i.setItemGraphicEl(e,n)})).remove((function(t){var n=a.getItemGraphicEl(t);Be["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}(Ue["a"]),Vs=Es,Rs=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new dt(c["bind"](this.getData,this),c["bind"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return st(this,{coordDimensions:["value"],encodeDefaulter:c["curry"](ct["d"],this)})},t.prototype._defaultLabelLine=function(e){Object(lt["f"])(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),i=e.prototype.getDataParams.call(this,t),a=n.mapDimension("value"),r=n.getSum(a);return i.percent=r?+(n.get(a,t)/r*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={zlevel:0,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}(pt["b"]),zs=Rs;function Bs(e,t){return Le["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Gs(e,t){for(var n=e.mapDimension("value"),i=e.mapArray(n,(function(e){return e})),a=[],r="ascending"===t,o=0,s=e.count();o<s;o++)a[o]=o;return"function"===typeof t?a.sort(t):"none"!==t&&a.sort((function(e,t){return r?i[e]-i[t]:i[t]-i[e]})),a}function Hs(e){var t=e.hostModel,n=t.get("orient");e.each((function(t){var i,a,r,o,s=e.getItemModel(t),l=s.getModel("label"),c=l.get("position"),u=s.getModel("labelLine"),d=e.getItemLayout(t),p=d.points,h="inner"===c||"inside"===c||"center"===c||"insideLeft"===c||"insideRight"===c;if(h)"insideLeft"===c?(a=(p[0][0]+p[3][0])/2+5,r=(p[0][1]+p[3][1])/2,i="left"):"insideRight"===c?(a=(p[1][0]+p[2][0])/2-5,r=(p[1][1]+p[2][1])/2,i="right"):(a=(p[0][0]+p[1][0]+p[2][0]+p[3][0])/4,r=(p[0][1]+p[1][1]+p[2][1]+p[3][1])/4,i="center"),o=[[a,r],[a,r]];else{var g=void 0,f=void 0,y=void 0,m=void 0,v=u.get("length");0,"left"===c?(g=(p[3][0]+p[0][0])/2,f=(p[3][1]+p[0][1])/2,y=g-v,a=y-5,i="right"):"right"===c?(g=(p[1][0]+p[2][0])/2,f=(p[1][1]+p[2][1])/2,y=g+v,a=y+5,i="left"):"top"===c?(g=(p[3][0]+p[0][0])/2,f=(p[3][1]+p[0][1])/2,m=f-v,r=m-5,i="center"):"bottom"===c?(g=(p[1][0]+p[2][0])/2,f=(p[1][1]+p[2][1])/2,m=f+v,r=m+5,i="center"):"rightTop"===c?(g="horizontal"===n?p[3][0]:p[1][0],f="horizontal"===n?p[3][1]:p[1][1],"horizontal"===n?(m=f-v,r=m-5,i="center"):(y=g+v,a=y+5,i="top")):"rightBottom"===c?(g=p[2][0],f=p[2][1],"horizontal"===n?(m=f+v,r=m+5,i="center"):(y=g+v,a=y+5,i="bottom")):"leftTop"===c?(g=p[0][0],f="horizontal"===n?p[0][1]:p[1][1],"horizontal"===n?(m=f-v,r=m-5,i="center"):(y=g-v,a=y-5,i="right")):"leftBottom"===c?(g="horizontal"===n?p[1][0]:p[3][0],f="horizontal"===n?p[1][1]:p[2][1],"horizontal"===n?(m=f+v,r=m+5,i="center"):(y=g-v,a=y-5,i="right")):(g=(p[1][0]+p[2][0])/2,f=(p[1][1]+p[2][1])/2,"horizontal"===n?(m=f+v,r=m+5,i="center"):(y=g+v,a=y+5,i="left")),"horizontal"===n?(y=g,a=y):(m=f,r=m),o=[[g,f],[y,m]]}d.label={linePoints:o,x:a,y:r,verticalAlign:"middle",textAlign:i,inside:h}}))}function Ws(e,t){e.eachSeriesByType("funnel",(function(e){var n=e.getData(),i=n.mapDimension("value"),a=e.get("sort"),r=Bs(e,t),o=e.get("orient"),s=r.width,l=r.height,c=Gs(n,a),u=r.x,d=r.y,p="horizontal"===o?[Object(Te["p"])(e.get("minSize"),l),Object(Te["p"])(e.get("maxSize"),l)]:[Object(Te["p"])(e.get("minSize"),s),Object(Te["p"])(e.get("maxSize"),s)],h=n.getDataExtent(i),g=e.get("min"),f=e.get("max");null==g&&(g=Math.min(h[0],0)),null==f&&(f=h[1]);var y=e.get("funnelAlign"),m=e.get("gap"),v="horizontal"===o?s:l,b=(v-m*(n.count()-1))/n.count(),x=function(e,t){if("horizontal"===o){var a=n.get(i,e)||0,r=Object(Te["l"])(a,[g,f],p,!0),c=void 0;switch(y){case"top":c=d;break;case"center":c=d+(l-r)/2;break;case"bottom":c=d+(l-r);break}return[[t,c],[t,c+r]]}var h,m=n.get(i,e)||0,v=Object(Te["l"])(m,[g,f],p,!0);switch(y){case"left":h=u;break;case"center":h=u+(s-v)/2;break;case"right":h=u+s-v;break}return[[h,t],[h+v,t]]};"ascending"===a&&(b=-b,m=-m,"horizontal"===o?u+=s:d+=l,c=c.reverse());for(var _=0;_<c.length;_++){var S=c[_],w=c[_+1],O=n.getItemModel(S);if("horizontal"===o){var M=O.get(["itemStyle","width"]);null==M?M=b:(M=Object(Te["p"])(M,s),"ascending"===a&&(M=-M));var I=x(S,u),A=x(w,u+M);u+=M+m,n.setItemLayout(S,{points:I.concat(A.slice().reverse())})}else{var j=O.get(["itemStyle","height"]);null==j?j=b:(j=Object(Te["p"])(j,l),"ascending"===a&&(j=-j));I=x(S,d),A=x(w,d+j);d+=j+m,n.setItemLayout(S,{points:I.concat(A.slice().reverse())})}}Hs(n)}))}function Fs(e){e.registerChartView(Vs),e.registerSeriesModel(zs),e.registerLayout(Ws),e.registerProcessor(Re("funnel"))}var Us=.3,Ys=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new We["a"],n._initialized=!1,n}return Object(b["b"])(t,e),t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,i){var a=this._dataGroup,r=e.getData(),o=this._data,s=e.coordinateSystem,l=s.dimensions,c=Ks(e);function u(e){var t=qs(r,a,e,l,s);Qs(t,r,e,c)}function d(t,n){var i=o.getItemGraphicEl(n),a=Zs(r,t,l,s);r.setItemGraphicEl(t,i),Be["h"](i,{shape:{points:a}},e,t),Object(Be["g"])(i),Qs(i,r,t,c)}function p(e){var t=o.getItemGraphicEl(e);a.remove(t)}if(r.diff(o).add(u).update(d).remove(p).execute(),!this._initialized){this._initialized=!0;var h=Xs(s,e,(function(){setTimeout((function(){a.removeClipPath()}))}));a.setClipPath(h)}this._data=r},t.prototype.incrementalPrepareRender=function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,n){for(var i=t.getData(),a=t.coordinateSystem,r=a.dimensions,o=Ks(t),s=e.start;s<e.end;s++){var l=qs(i,this._dataGroup,s,r,a);l.incremental=!0,Qs(l,i,s,o)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(Ue["a"]);function Xs(e,t,n){var i=e.model,a=e.getRect(),r=new Da["a"]({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o="horizontal"===i.get("layout")?"width":"height";return r.setShape(o,0),Be["c"](r,{shape:{width:a.width,height:a.height}},t,n),r}function Zs(e,t,n,i){for(var a=[],r=0;r<n.length;r++){var o=n[r],s=e.get(e.mapDimension(o),t);Js(s,i.getAxis(o).type)||a.push(i.dataToPoint(s,o))}return a}function qs(e,t,n,i,a){var r=Zs(e,n,i,a),o=new Ge["a"]({shape:{points:r},z2:10});return t.add(o),e.setItemGraphicEl(n,o),o}function Ks(e){var t=e.get("smooth",!0);return!0===t&&(t=Us),t=Object(Te["n"])(t),Object(c["eqNaN"])(t)&&(t=0),{smooth:t}}function Qs(e,t,n,i){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",i.smooth);var a=t.getItemModel(n),r=a.getModel("emphasis");Object(Fe["I"])(e,a,"lineStyle"),Object(Fe["o"])(e,r.get("focus"),r.get("blurScope"))}function Js(e,t){return"category"===t?null==e:null==e||isNaN(e)}var $s=Ys,el=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(b["b"])(t,e),t.prototype.getInitialData=function(e,t){return Object(mt["a"])(null,this,{useEncodeDefaulter:Object(c["bind"])(tl,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={zlevel:0,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}(pt["b"]);function tl(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return Object(c["each"])(t.dimensions,(function(e){var t=nl(e);n[e]=t})),n}}function nl(e){return+e.replace("dim","")}var il=el,al=["lineStyle","opacity"],rl={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,i={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(e,t){n.eachActiveState(t,(function(e,n){var a=i[e];if("normal"===e&&t.hasItemOption){var r=t.getItemModel(n).get(al,!0);null!=r&&(a=r)}var o=t.ensureUniqueItemVisual(n,"style");o.opacity=a}),e.start,e.end)}}}},ol=rl;function sl(e){ll(e),cl(e)}function ll(e){if(!e.parallel){var t=!1;c["each"](e.series,(function(e){e&&"parallel"===e.type&&(t=!0)})),t&&(e.parallel=[{}])}}function cl(e){var t=lt["r"](e.parallelAxis);c["each"](t,(function(t){if(c["isObject"](t)){var n=t.parallelIndex||0,i=lt["r"](e.parallel)[n];i&&i.parallelAxisDefault&&c["merge"](t,i.parallelAxisDefault,!1)}}))}var ul=n("1698"),dl=5,pl=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},Object(c["each"])(hl,(function(e,t){n.getZr().on(t,this._handlers[t]=Object(c["bind"])(e,this))}),this)),Object(ul["b"])(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,t){Object(c["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(c["extend"])({type:"parallelAxisExpand"},e))},t.type="parallel",t}(nn["a"]),hl={mousedown:function(e){gl(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(gl(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>dl)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&&gl(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 gl(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var fl=pl,yl=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&c["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){c["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=c["filter"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);c["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={zlevel:0,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}(Zt["a"]),ml=yl,vl=function(e){function t(t,n,i,a,r){var o=e.call(this,t,n,i)||this;return o.type=a||"value",o.axisIndex=r,o}return Object(b["b"])(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(sn["a"]),bl=vl,xl=n("8706"),_l=c["each"],Sl=Math.min,wl=Math.max,Ol=Math.floor,Ml=Math.ceil,Il=Te["v"],Al=Math.PI,jl=function(){function e(e,t,n){this.type="parallel",this._axesMap=c["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;_l(i,(function(e,n){var i=a[n],r=t.getComponent("parallelAxis",i),o=this._axesMap.set(e,new bl(e,dn["a"](r),[0,0],r.get("type"),i)),s="category"===o.type;o.onBand=s&&r.get("boundaryGap"),o.inverse=r.get("inverse"),r.axis=o,o.model=r,o.coordinateSystem=r.coordinateSystem=this}),this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,i=t.layoutBase,a=t.pixelDimIndex,r=e[1-a],o=e[a];return r>=n&&r<=n+t.axisLength&&o>=i&&o<=i+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var i=n.getData();_l(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(i,i.mapDimension(e)),dn["i"](t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=Le["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,n=this._rect,i=["x","y"],a=["width","height"],r=t.get("layout"),o="horizontal"===r?0:1,s=n[a[o]],l=[0,s],c=this.dimensions.length,u=Dl(t.get("axisExpandWidth"),l),d=Dl(t.get("axisExpandCount")||0,[0,c]),p=t.get("axisExpandable")&&c>3&&c>d&&d>1&&u>0&&s>0,h=t.get("axisExpandWindow");if(h)e=Dl(h[1]-h[0],l),h[1]=h[0]+e;else{e=Dl(u*(d-1),l);var g=t.get("axisExpandCenter")||Ol(c/2);h=[u*g-e/2],h[1]=h[0]+e}var f=(s-e)/(c-d);f<3&&(f=0);var y=[Ol(Il(h[0]/u,1))+1,Ml(Il(h[1]/u,1))-1],m=f/u*h[0];return{layout:r,pixelDimIndex:o,layoutBase:n[i[o]],layoutLength:s,axisBase:n[i[1-o]],axisLength:n[a[1-o]],axisExpandable:p,axisExpandWidth:u,axisCollapseWidth:f,axisExpandWindow:h,axisCount:c,winInnerIndices:y,axisExpandWindow0Pos:m}},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])})),_l(n,(function(t,n){var r=(i.axisExpandable?Tl:Cl)(n,i),o={horizontal:{x:r.position,y:i.axisLength},vertical:{x:0,y:r.position}},s={horizontal:Al/2,vertical:0},l=[o[a].x+e.x,o[a].y+e.y],c=s[a],u=qn["create"]();qn["rotate"](u,u,c),qn["translate"](u,u,l),this._axesLayout[t]={position:l,rotation:c,transform:u,axisNameAvailableWidth:r.axisNameAvailableWidth,axisLabelShow:r.axisLabelShow,nameTruncateMaxWidth:r.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,i){null==n&&(n=0),null==i&&(i=e.count());var a=this._axesMap,r=this.dimensions,o=[],s=[];c["each"](r,(function(t){o.push(e.mapDimension(t)),s.push(a.get(t).model)}));for(var l=this.hasAxisBrushed(),u=n;u<i;u++){var d=void 0;if(l){d="active";for(var p=e.getValues(o,u),h=0,g=r.length;h<g;h++){var f=s[h].getActiveState(p[h]);if("inactive"===f){d="inactive";break}}}else d="normal";t(d,u)}},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 Rt["applyTransform"]([e,0],n.transform)},e.prototype.getAxisLayout=function(e){return c["clone"](this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,i=t.axisExpandWindow.slice(),a=i[1]-i[0],r=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:i};var o,s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l="slide",c=t.axisCollapseWidth,u=this._model.get("axisExpandSlideTriggerArea"),d=null!=u[0];if(c)d&&c&&s<a*u[0]?(l="jump",o=s-a*u[2]):d&&c&&s>a*(1-u[0])?(l="jump",o=s-a*(1-u[2])):(o=s-a*u[1])>=0&&(o=s-a*(1-u[1]))<=0&&(o=0),o*=t.axisExpandWidth/c,o?Object(xl["a"])(o,i,r,"all"):l="none";else{var p=i[1]-i[0],h=r[1]*s/p;i=[wl(0,h-p/2)],i[1]=Sl(r[1],i[0]+p),i[0]=i[1]-p}return{axisExpandWindow:i,behavior:l}},e}();function Dl(e,t){return Sl(wl(e,t[0]),t[1])}function Cl(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function Tl(e,t){var n,i,a=t.layoutLength,r=t.axisExpandWidth,o=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,c=s,u=!1;return e<l[0]?(n=e*s,i=s):e<=l[1]?(n=t.axisExpandWindow0Pos+e*r-t.axisExpandWindow[0],c=r,u=!0):(n=a-(o-1-e)*s,i=s),{position:n,axisNameAvailableWidth:c,axisLabelShow:u,nameTruncateMaxWidth:i}}var Ll=jl;function Pl(e,t){var n=[];return e.eachComponent("parallel",(function(i,a){var r=new Ll(i,e,t);r.name="parallel_"+a,r.resize(i,t),i.coordinateSystem=r,r.model=i,n.push(r)})),e.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var t=e.getReferringComponents("parallel",lt["b"]).models[0];e.coordinateSystem=t.coordinateSystem}})),n}var Nl={create:Pl},kl=Nl,El=n("c994"),Vl=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return Object(b["b"])(t,e),t.prototype.getAreaSelectStyle=function(){return Object(Ba["a"])([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=c["clone"](e);if(t)for(var n=t.length-1;n>=0;n--)Te["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}(Zt["a"]);c["mixin"](Vl,Xt["a"]);var Rl=Vl,zl=n("58b4"),Bl=n("e2d5"),Gl=!0,Hl=Math.min,Wl=Math.max,Fl=Math.pow,Ul=1e4,Yl=6,Xl=6,Zl="globalPan",ql={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Kl={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Ql={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Jl=0,$l=function(e){function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new We["a"],n._uid="brushController_"+Jl++,Object(c["each"])(Tc,(function(e,t){this._handlers[t]=Object(c["bind"])(e,this)}),n),n}return Object(b["b"])(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||Bl["c"](t,Zl,this._uid),Object(c["each"])(this._handlers,(function(e,n){t.on(n,e)})),this._brushType=e.brushType,this._brushOption=Object(c["merge"])(Object(c["clone"])(Ql),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;Bl["b"](e,Zl,this._uid),Object(c["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(c["each"])(e,(function(e){t[e.panelId]=Object(c["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(c["map"])(e,(function(e){return Object(c["merge"])(Object(c["clone"])(Ql),e,!0)}));var t="\0-brush-index-",n=this._covers,i=this._covers=[],a=this,r=this._creatingCover;return new Ca["a"](n,e,s,o).add(l).update(l).remove(u).execute(),this;function o(e,n){return(null!=e.id?e.id:t+n)+"-"+e.brushType}function s(e,t){return o(e.__brushOption,t)}function l(t,o){var s=e[t];if(null!=o&&n[o]===r)i[t]=n[o];else{var l=i[t]=null!=o?(n[o].__brushOption=s,n[o]):tc(a,ec(a,s));ac(a,l)}}function u(e){n[e]!==r&&a.group.remove(n[e])}},t.prototype.unmount=function(){return this.enableBrush(!1),lc(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(zl["a"]);function ec(e,t){var n=Nc[t.brushType].createCover(e,t);return n.__brushOption=t,ic(n,t),e.group.add(n),n}function tc(e,t){var n=rc(t);return n.endCreating&&(n.endCreating(e,t),ic(t,t.__brushOption)),t}function nc(e,t){var n=t.__brushOption;rc(t).updateCoverShape(e,t,n.range,n)}function ic(e,t){var n=t.z;null==n&&(n=Ul),e.traverse((function(e){e.z=n,e.z2=n}))}function ac(e,t){rc(t).updateCommon(e,t),nc(e,t)}function rc(e){return Nc[e.__brushOption.brushType]}function oc(e,t,n){var i,a=e._panels;if(!a)return Gl;var r=e._transform;return Object(c["each"])(a,(function(e){e.isTargetByCursor(t,n,r)&&(i=e)})),i}function sc(e,t){var n=e._panels;if(!n)return Gl;var i=t.__brushOption.panelId;return null!=i?n[i]:Gl}function lc(e){var t=e._covers,n=t.length;return Object(c["each"])(t,(function(t){e.group.remove(t)}),e),t.length=0,!!n}function cc(e,t){var n=Object(c["map"])(e._covers,(function(e){var t=e.__brushOption,n=Object(c["clone"])(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}}));e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function uc(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],i=t[0],a=n[0]-i[0],r=n[1]-i[1],o=Fl(a*a+r*r,.5);return o>Yl}function dc(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function pc(e,t,n,i){var a=new We["a"];return a.add(new Da["a"]({name:"main",style:yc(n),silent:!0,draggable:!0,cursor:"move",drift:Object(c["curry"])(_c,e,t,a,["n","s","w","e"]),ondragend:Object(c["curry"])(cc,t,{isEnd:!0})})),Object(c["each"])(i,(function(n){a.add(new Da["a"]({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(c["curry"])(_c,e,t,a,n),ondragend:Object(c["curry"])(cc,t,{isEnd:!0})}))})),a}function hc(e,t,n,i){var a=i.brushStyle.lineWidth||0,r=Wl(a,Xl),o=n[0][0],s=n[1][0],l=o-a/2,c=s-a/2,u=n[0][1],d=n[1][1],p=u-r+a/2,h=d-r+a/2,g=u-o,f=d-s,y=g+a,m=f+a;fc(e,t,"main",o,s,g,f),i.transformable&&(fc(e,t,"w",l,c,r,m),fc(e,t,"e",p,c,r,m),fc(e,t,"n",l,c,y,r),fc(e,t,"s",l,h,y,r),fc(e,t,"nw",l,c,r,r),fc(e,t,"ne",p,c,r,r),fc(e,t,"sw",l,h,r,r),fc(e,t,"se",p,h,r,r))}function gc(e,t){var n=t.__brushOption,i=n.transformable,a=t.childAt(0);a.useStyle(yc(n)),a.attr({silent:!i,cursor:i?"move":"default"}),Object(c["each"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var a=t.childOfName(n.join("")),r=1===n.length?bc(e,n[0]):xc(e,n);a&&a.attr({silent:!i,invisible:!i,cursor:i?Kl[r]+"-resize":null})}))}function fc(e,t,n,i,a,r,o){var s=t.childOfName(n);s&&s.setShape(Mc(Oc(e,t,[[i,a],[i+r,a+o]])))}function yc(e){return Object(c["defaults"])({strokeNoScale:!0},e.brushStyle)}function mc(e,t,n,i){var a=[Hl(e,n),Hl(t,i)],r=[Wl(e,n),Wl(t,i)];return[[a[0],r[0]],[a[1],r[1]]]}function vc(e){return Rt["getTransform"](e.group)}function bc(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},a=Rt["transformDirection"](n[t],vc(e));return i[a]}function xc(e,t){var n=[bc(e,t[0]),bc(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function _c(e,t,n,i,a,r){var o=n.__brushOption,s=e.toRectRange(o.range),l=wc(t,a,r);Object(c["each"])(i,(function(e){var t=ql[e];s[t[0]][t[1]]+=l[t[0]]})),o.range=e.fromRectRange(mc(s[0][0],s[1][0],s[0][1],s[1][1])),ac(t,n),cc(t,{isEnd:!1})}function Sc(e,t,n,i){var a=t.__brushOption.range,r=wc(e,n,i);Object(c["each"])(a,(function(e){e[0]+=r[0],e[1]+=r[1]})),ac(e,t),cc(e,{isEnd:!1})}function wc(e,t,n){var i=e.group,a=i.transformCoordToLocal(t,n),r=i.transformCoordToLocal(0,0);return[a[0]-r[0],a[1]-r[1]]}function Oc(e,t,n){var i=sc(e,t);return i&&i!==Gl?i.clipPath(n,e._transform):Object(c["clone"])(n)}function Mc(e){var t=Hl(e[0][0],e[1][0]),n=Hl(e[0][1],e[1][1]),i=Wl(e[0][0],e[1][0]),a=Wl(e[0][1],e[1][1]);return{x:t,y:n,width:i-t,height:a-n}}function Ic(e,t,n){if(e._brushType&&!Pc(e,t.offsetX,t.offsetY)){var i=e._zr,a=e._covers,r=oc(e,t,n);if(!e._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(r&&(r===Gl||s.panelId===r.panelId)&&Nc[s.brushType].contain(a[o],n[0],n[1]))return}r&&i.setCursorStyle("crosshair")}}function Ac(e){var t=e.event;t.preventDefault&&t.preventDefault()}function jc(e,t,n){return e.childOfName("main").contain(t,n)}function Dc(e,t,n,i){var a,r=e._creatingCover,o=e._creatingPanel,s=e._brushOption;if(e._track.push(n.slice()),uc(e)||r){if(o&&!r){"single"===s.brushMode&&lc(e);var l=Object(c["clone"])(s);l.brushType=Cc(l.brushType,o),l.panelId=o===Gl?null:o.panelId,r=e._creatingCover=ec(e,l),e._covers.push(r)}if(r){var u=Nc[Cc(e._brushType,o)],d=r.__brushOption;d.range=u.getCreatingRange(Oc(e,r,e._track)),i&&(tc(e,r),u.updateCommon(e,r)),nc(e,r),a={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&oc(e,t,n)&&lc(e)&&(a={isEnd:i,removeOnClick:!0});return a}function Cc(e,t){return"auto"===e?t.defaultBrushType:e}var Tc={mousedown:function(e){if(this._dragging)Lc(this,e);else if(!e.target||!e.target.draggable){Ac(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var n=this._creatingPanel=oc(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(Ic(this,e,i),this._dragging){Ac(e);var a=Dc(this,e,i,!1);a&&cc(this,a)}},mouseup:function(e){Lc(this,e)}};function Lc(e,t){if(e._dragging){Ac(t);var n=t.offsetX,i=t.offsetY,a=e.group.transformCoordToLocal(n,i),r=Dc(e,t,a,!0);e._dragging=!1,e._track=[],e._creatingCover=null,r&&cc(e,r)}}function Pc(e,t,n){var i=e._zr;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}var Nc={lineX:kc(0),lineY:kc(1),rect:{createCover:function(e,t){function n(e){return e}return pc({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=dc(e);return mc(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,i){hc(e,t,n,i)},updateCommon:gc,contain:jc},polygon:{createCover:function(e,t){var n=new We["a"];return n.add(new Ge["a"]({name:"main",style:yc(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new zt["a"]({name:"main",draggable:!0,drift:Object(c["curry"])(Sc,e,t),ondragend:Object(c["curry"])(cc,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,i){t.childAt(0).setShape({points:Oc(e,t,n)})},updateCommon:gc,contain:jc}};function kc(e){return{createCover:function(t,n){return pc({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=dc(t),i=Hl(n[0][e],n[1][e]),a=Wl(n[0][e],n[1][e]);return[i,a]},updateCoverShape:function(t,n,i,a){var r,o=sc(t,n);if(o!==Gl&&o.getLinearBrushOtherExtent)r=o.getLinearBrushOtherExtent(e);else{var s=t._zr;r=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[i,r];e&&l.reverse(),hc(t,n,l,a)},updateCommon:gc,contain:jc}}var Ec=$l;function Vc(e){return e=Bc(e),function(t){return Rt["clipPointsByRect"](t,e)}}function Rc(e,t){return e=Bc(e),function(n){var i=null!=t?t:n,a=i?e.width:e.height,r=i?e.x:e.y;return[r,r+(a||0)]}}function zc(e,t,n){var i=Bc(e);return function(e,a){return i.contain(a[0],a[1])&&!_n(e,t,n)}}function Bc(e){return Xn["a"].create(e)}var Gc=["axisLine","axisTickLabel","axisName"],Hc=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new Ec(n.getZr())).on("brush",c["bind"](this._onBrush,this))},t.prototype.render=function(e,t,n,i){if(!Wc(e,t,i)){this.axisModel=e,this.api=n,this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new We["a"],this.group.add(this._axisGroup),e.get("show")){var r=Uc(e,t),o=r.coordinateSystem,s=e.getAreaSelectStyle(),l=s.width,u=e.axis.dim,d=o.getAxisLayout(u),p=c["extend"]({strokeContainThreshold:l},d),h=new $t["a"](e,p);c["each"](Gc,h.add,h),this._axisGroup.add(h.getGroup()),this._refreshBrushController(p,s,e,r,l,n),Rt["groupTransition"](a,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,i,a,r){var o=n.axis.getExtent(),s=o[1]-o[0],l=Math.min(30,.1*Math.abs(s)),c=Xn["a"].create({x:o[0],y:-a/2,width:s,height:a});c.x-=l,c.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:Vc(c),isTargetByCursor:zc(c,r,i),getLinearBrushOtherExtent:Rc(c,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(Fc(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,i=n.axis,a=c["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}(nn["a"]);function Wc(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function Fc(e){var t=e.axis;return c["map"](e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function Uc(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var Yc=Hc,Xc={type:"axisAreaSelect",event:"axisAreaSelected"};function Zc(e){e.registerAction(Xc,(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 qc={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Kc(e){e.registerComponentView(fl),e.registerComponentModel(ml),e.registerCoordinateSystem("parallel",kl),e.registerPreprocessor(sl),e.registerComponentModel(Rl),e.registerComponentView(Yc),Object(El["a"])(e,"parallel",Rl,qc),Zc(e)}function Qc(e){Object(i["a"])(Kc),e.registerChartView($s),e.registerSeriesModel(il),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,ol)}var Jc=n("3783"),$c=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}(),eu=function(e){function t(t){return e.call(this,t)||this}return Object(b["b"])(t,e),t.prototype.getDefaultShape=function(){return new $c},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(Fe["r"])(this)},t.prototype.downplay=function(){Object(Fe["C"])(this)},t}(u["b"]),tu=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n){var i=this,a=e.getGraph(),r=this.group,o=e.layoutInfo,s=o.width,l=o.height,c=e.getData(),u=e.getData("edge"),d=e.get("orient");this._model=e,r.removeAll(),r.x=o.x,r.y=o.y,a.eachEdge((function(t){var n=new eu,i=Object(wt["a"])(n);i.dataIndex=t.dataIndex,i.seriesIndex=e.seriesIndex,i.dataType="edge";var a,o,c,p,h,g,f,y,m=t.getModel(),v=m.getModel("lineStyle"),b=v.get("curveness"),x=t.node1.getLayout(),_=t.node1.getModel(),S=_.get("localX"),w=_.get("localY"),O=t.node2.getLayout(),M=t.node2.getModel(),I=M.get("localX"),A=M.get("localY"),j=t.getLayout();switch(n.shape.extent=Math.max(1,j.dy),n.shape.orient=d,"vertical"===d?(a=(null!=S?S*s:x.x)+j.sy,o=(null!=w?w*l:x.y)+x.dy,c=(null!=I?I*s:O.x)+j.ty,p=null!=A?A*l:O.y,h=a,g=o*(1-b)+p*b,f=c,y=o*b+p*(1-b)):(a=(null!=S?S*s:x.x)+x.dx,o=(null!=w?w*l:x.y)+j.sy,c=null!=I?I*s:O.x,p=(null!=A?A*l:O.y)+j.ty,h=a*(1-b)+c*b,g=o,f=a*b+c*(1-b),y=p),n.setShape({x1:a,y1:o,x2:c,y2:p,cpx1:h,cpy1:g,cpx2:f,cpy2:y}),n.useStyle(v.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 D=t.node1.getVisual("color"),C=t.node2.getVisual("color");"string"===typeof D&&"string"===typeof C&&(n.style.fill=new Jc["a"](0,0,+("horizontal"===d),+("vertical"===d),[{color:D,offset:0},{color:C,offset:1}]))}var T=m.getModel("emphasis");Object(Fe["I"])(n,m,"lineStyle",(function(e){return e.getItemStyle()})),r.add(n),u.setItemGraphicEl(t.dataIndex,n);var L=T.get("focus");Object(Fe["o"])(n,"adjacency"===L?t.getAdjacentDataIndices():L,T.get("blurScope")),Object(wt["a"])(n).dataType="edge"})),a.eachNode((function(t){var n=t.getLayout(),i=t.getModel(),a=i.get("localX"),o=i.get("localY"),u=i.getModel("emphasis"),d=new Da["a"]({shape:{x:null!=a?a*s:n.x,y:null!=o?o*l:n.y,width:n.dx,height:n.dy},style:i.getModel("itemStyle").getItemStyle(),z2:10});Object(et["g"])(d,Object(et["e"])(i),{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:t.id}),d.disableLabelAnimation=!0,d.setStyle("fill",t.getVisual("color")),d.setStyle("decal",t.getVisual("style").decal),Object(Fe["I"])(d,i),r.add(d),c.setItemGraphicEl(t.dataIndex,d),Object(wt["a"])(d).dataType="node";var p=u.get("focus");Object(Fe["o"])(d,"adjacency"===p?t.getAdjacentDataIndices():p,u.get("blurScope"))})),c.eachItemGraphicEl((function(t,a){var r=c.getItemModel(a);r.get("draggable")&&(t.drift=function(t,r){i._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=r,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(a),localX:this.shape.x/s,localY:this.shape.y/l})},t.ondragend=function(){i._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&r.setClipPath(nu(r.getBoundingRect(),e,(function(){r.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Ue["a"]);function nu(e,t,n){var i=new Da["a"]({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Be["c"](i,{shape:{width:e.width+20}},t,n),i}var iu=tu,au=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links,i=e.data||e.nodes,a=e.levels;this.levelModels=[];for(var r=this.levelModels,o=0;o<a.length;o++)null!=a[o].depth&&a[o].depth>=0&&(r[a[o].depth]=new Yt["a"](a[o],this,t));if(i&&n){var s=ys(i,n,this,!0,l);return s.data}function l(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getData().getItemLayout(t);if(i){var a=i.depth,r=n.levelModels[a];r&&(e.parentModel=r)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getGraph().getEdgeByIndex(t),a=i.node1.getLayout();if(a){var r=a.depth,o=n.levelModels[r];o&&(e.parentModel=o)}return e}))}},t.prototype.setNodePosition=function(e,t){var n=this.option.data||this.option.nodes,i=n[e];i.localX=t[0],i.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function i(e){return isNaN(e)||null==e}if("edge"===n){var a=this.getDataParams(e,n),r=a.data,o=a.value,s=r.source+" -- "+r.target;return Object(Ht["c"])("nameValue",{name:s,value:o,noValue:i(o)})}var l=this.getGraph().getNodeByIndex(e),c=l.getLayout().value,u=this.getDataParams(e,n).data.name;return Object(Ht["c"])("nameValue",{name:null!=u?u+"":null,value:c,noValue:i(c)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var i=e.prototype.getDataParams.call(this,t,n);if(null==i.value&&"node"===n){var a=this.getGraph().getNodeByIndex(t),r=a.getLayout().value;i.value=r}return i},t.type="series.sankey",t.defaultOption={zlevel:0,z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(pt["b"]),ru=au;function ou(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),i=e.get("nodeGap"),a=su(e,t);e.layoutInfo=a;var r=a.width,o=a.height,s=e.getGraph(),l=s.nodes,u=s.edges;cu(l);var d=c["filter"](l,(function(e){return 0===e.getLayout().value})),p=0!==d.length?0:e.get("layoutIterations"),h=e.get("orient"),g=e.get("nodeAlign");lu(l,u,n,i,r,o,p,h,g)}))}function su(e,t){return Le["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function lu(e,t,n,i,a,r,o,s,l){uu(e,t,n,a,r,s,l),fu(e,t,r,a,i,o,s),ju(e,s)}function cu(e){c["each"](e,(function(e){var t=Iu(e.outEdges,Mu),n=Iu(e.inEdges,Mu),i=e.getValue()||0,a=Math.max(t,n,i);e.setLayout({value:a},!0)}))}function uu(e,t,n,i,a,r,o){for(var s=[],l=[],c=[],u=[],d=0,p=0;p<t.length;p++)s[p]=1;for(p=0;p<e.length;p++)l[p]=e[p].inEdges.length,0===l[p]&&c.push(e[p]);var h=-1;while(c.length){for(var g=0;g<c.length;g++){var f=c[g],y=f.hostGraph.data.getRawDataItem(f.dataIndex),m=null!=y.depth&&y.depth>=0;m&&y.depth>h&&(h=y.depth),f.setLayout({depth:m?y.depth:d},!0),"vertical"===r?f.setLayout({dy:n},!0):f.setLayout({dx:n},!0);for(var v=0;v<f.outEdges.length;v++){var b=f.outEdges[v],x=t.indexOf(b);s[x]=0;var _=b.node2,S=e.indexOf(_);0===--l[S]&&u.indexOf(_)<0&&u.push(_)}}++d,c=u,u=[]}for(p=0;p<s.length;p++)if(1===s[p])throw new Error("Sankey is a DAG, the original data has cycle!");var w=h>d-1?h:d-1;o&&"left"!==o&&pu(e,o,r,w);var O="vertical"===r?(a-n)/w:(i-n)/w;gu(e,O,r)}function du(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function pu(e,t,n,i){if("right"===t){var a=[],r=e,o=0;while(r.length){for(var s=0;s<r.length;s++){var l=r[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var d=l.inEdges[u];a.indexOf(d.node1)<0&&a.push(d.node1)}}r=a,a=[],++o}c["each"](e,(function(e){du(e)||e.setLayout({depth:Math.max(0,i-e.getLayout().skNodeHeight)},!0)}))}else"justify"===t&&hu(e,i)}function hu(e,t){c["each"](e,(function(e){du(e)||e.outEdges.length||e.setLayout({depth:t},!0)}))}function gu(e,t,n){c["each"](e,(function(e){var i=e.getLayout().depth*t;"vertical"===n?e.setLayout({y:i},!0):e.setLayout({x:i},!0)}))}function fu(e,t,n,i,a,r,o){var s=yu(e,o);mu(s,t,n,i,a,o),vu(s,a,n,i,o);for(var l=1;r>0;r--)l*=.99,bu(s,l,o),vu(s,a,n,i,o),Au(s,l,o),vu(s,a,n,i,o)}function yu(e,t){var n=[],i="vertical"===t?"y":"x",a=Object(lt["j"])(e,(function(e){return e.getLayout()[i]}));return a.keys.sort((function(e,t){return e-t})),c["each"](a.keys,(function(e){n.push(a.buckets.get(e))})),n}function mu(e,t,n,i,a,r){var o=1/0;c["each"](e,(function(e){var t=e.length,s=0;c["each"](e,(function(e){s+=e.getLayout().value}));var l="vertical"===r?(i-(t-1)*a)/s:(n-(t-1)*a)/s;l<o&&(o=l)})),c["each"](e,(function(e){c["each"](e,(function(e,t){var n=e.getLayout().value*o;"vertical"===r?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))}))})),c["each"](t,(function(e){var t=+e.getValue()*o;e.setLayout({dy:t},!0)}))}function vu(e,t,n,i,a){var r="vertical"===a?"x":"y";c["each"](e,(function(e){var o,s,l;e.sort((function(e,t){return e.getLayout()[r]-t.getLayout()[r]}));for(var c=0,u=e.length,d="vertical"===a?"dx":"dy",p=0;p<u;p++)s=e[p],l=c-s.getLayout()[r],l>0&&(o=s.getLayout()[r]+l,"vertical"===a?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),c=s.getLayout()[r]+s.getLayout()[d]+t;var h="vertical"===a?i:n;if(l=c-t-h,l>0){o=s.getLayout()[r]-l,"vertical"===a?s.setLayout({x:o},!0):s.setLayout({y:o},!0),c=o;for(p=u-2;p>=0;--p)s=e[p],l=s.getLayout()[r]+s.getLayout()[d]+t-c,l>0&&(o=s.getLayout()[r]-l,"vertical"===a?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),c=s.getLayout()[r]}}))}function bu(e,t,n){c["each"](e.slice().reverse(),(function(e){c["each"](e,(function(e){if(e.outEdges.length){var i=Iu(e.outEdges,xu,n)/Iu(e.outEdges,Mu);if(isNaN(i)){var a=e.outEdges.length;i=a?Iu(e.outEdges,_u,n)/a:0}if("vertical"===n){var r=e.getLayout().x+(i-Ou(e,n))*t;e.setLayout({x:r},!0)}else{var o=e.getLayout().y+(i-Ou(e,n))*t;e.setLayout({y:o},!0)}}}))}))}function xu(e,t){return Ou(e.node2,t)*e.getValue()}function _u(e,t){return Ou(e.node2,t)}function Su(e,t){return Ou(e.node1,t)*e.getValue()}function wu(e,t){return Ou(e.node1,t)}function Ou(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function Mu(e){return e.getValue()}function Iu(e,t,n){var i=0,a=e.length,r=-1;while(++r<a){var o=+t(e[r],n);isNaN(o)||(i+=o)}return i}function Au(e,t,n){c["each"](e,(function(e){c["each"](e,(function(e){if(e.inEdges.length){var i=Iu(e.inEdges,Su,n)/Iu(e.inEdges,Mu);if(isNaN(i)){var a=e.inEdges.length;i=a?Iu(e.inEdges,wu,n)/a:0}if("vertical"===n){var r=e.getLayout().x+(i-Ou(e,n))*t;e.setLayout({x:r},!0)}else{var o=e.getLayout().y+(i-Ou(e,n))*t;e.setLayout({y:o},!0)}}}))}))}function ju(e,t){var n="vertical"===t?"x":"y";c["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]}))})),c["each"](e,(function(e){var t=0,n=0;c["each"](e.outEdges,(function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy})),c["each"](e.inEdges,(function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy}))}))}function Du(e){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph(),n=t.nodes;if(n.length){var i=1/0,a=-1/0;c["each"](n,(function(e){var t=e.getLayout().value;t<i&&(i=t),t>a&&(a=t)})),c["each"](n,(function(t){var n=new _r({type:"color",mappingMethod:"linear",dataExtent:[i,a],visual:e.get("color")}),r=n.mapValueToVisual(t.getLayout().value),o=t.getModel().get(["itemStyle","color"]);null!=o?(t.setVisual("color",o),t.setVisual("style",{fill:o})):(t.setVisual("color",r),t.setVisual("style",{fill:r}))}))}}))}function Cu(e){e.registerChartView(iu),e.registerSeriesModel(ru),e.registerLayout(ou),e.registerVisual(Du),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 Tu=n("0af0"),Lu=function(){function e(){}return e.prototype.getInitialData=function(e,t){var n,i,a=t.getComponent("xAxis",this.get("xAxisIndex")),r=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=r.get("type");"category"===o?(e.layout="horizontal",n=a.getOrdinalMeta(),i=!0):"category"===s?(e.layout="vertical",n=r.getOrdinalMeta(),i=!0):e.layout=e.layout||"horizontal";var l=["x","y"],u="horizontal"===e.layout?0:1,d=this._baseAxisDim=l[u],p=l[1-u],h=[a,r],g=h[u].get("type"),f=h[1-u].get("type"),y=e.data;if(y&&i){var m=[];c["each"](y,(function(e,t){var n;c["isArray"](e)?(n=e.slice(),e.unshift(t)):c["isArray"](e.value)?(n=c["extend"]({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,m.push(n)})),e.data=m}var v=this.defaultValueDimensions,b=[{name:d,type:Object(Tu["a"])(g),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:p,type:Object(Tu["a"])(f),dimsDef:v.slice()}];return st(this,{coordDimensions:b,dimensionsCount:v.length+1,encodeDefaulter:c["curry"](ct["c"],b,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),Pu=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(b["b"])(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={zlevel:0,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}(pt["b"]);Object(c["mixin"])(Pu,Lu,!0);var Nu=Pu,ku=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),a=this.group,r=this._data;this._data||a.removeAll();var o="horizontal"===e.get("layout")?1:0;i.diff(r).add((function(e){if(i.hasValue(e)){var t=i.getItemLayout(e),n=Ru(t,i,e,o,!0);i.setItemGraphicEl(e,n),a.add(n)}})).update((function(e,t){var n=r.getItemGraphicEl(t);if(i.hasValue(e)){var s=i.getItemLayout(e);n?(Object(Be["g"])(n),zu(s,n,i,e)):n=Ru(s,i,e,o),a.add(n),i.setItemGraphicEl(e,n)}else a.remove(n)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&a.remove(t)})).execute(),this._data=i},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(Ue["a"]),Eu=function(){function e(){}return e}(),Vu=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return Object(b["b"])(t,e),t.prototype.getDefaultShape=function(){return new Eu},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}(u["b"]);function Ru(e,t,n,i,a){var r=e.ends,o=new Vu({shape:{points:a?Bu(r,i,e):r}});return zu(e,o,t,n,a),o}function zu(e,t,n,i,a){var r=n.hostModel,o=Rt[a?"initProps":"updateProps"];o(t,{shape:{points:e.ends}},r,i),t.useStyle(n.getItemVisual(i,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=n.getItemModel(i);Object(Fe["I"])(t,s),Object(Fe["o"])(t,s.get(["emphasis","focus"]),s.get(["emphasis","blurScope"]))}function Bu(e,t,n){return c["map"](e,(function(e){return e=e.slice(),e[t]=n.initBaseline,e}))}var Gu=ku;function Hu(e,t){}var Wu=c["each"];function Fu(e){var t=Uu(e);Wu(t,(function(e){var t=e.seriesModels;t.length&&(Yu(e),Wu(t,(function(t,n){Xu(t,e.boxOffsetList[n],e.boxWidthList[n])})))}))}function Uu(e){var t=[],n=[];return e.eachSeriesByType("boxplot",(function(e){var i=e.getBaseAxis(),a=c["indexOf"](n,i);a<0&&(a=n.length,n[a]=i,t[a]={axis:i,seriesModels:[]}),t[a].seriesModels.push(e)})),t}function Yu(e){var t,n,i=e.axis,a=e.seriesModels,r=a.length,o=e.boxWidthList=[],s=e.boxOffsetList=[],l=[];if("category"===i.type)n=i.getBandWidth();else{var u=0;Wu(a,(function(e){u=Math.max(u,e.getData().count())})),t=i.getExtent(),Math.abs(t[1]-t[0])}Wu(a,(function(e){var t=e.get("boxWidth");c["isArray"](t)||(t=[t,t]),l.push([Object(Te["p"])(t[0],n)||0,Object(Te["p"])(t[1],n)||0])}));var d=.8*n-2,p=d/r*.3,h=(d-p*(r-1))/r,g=h/2-d/2;Wu(a,(function(e,t){s.push(g),g+=p+h,o.push(Math.min(Math.max(h,l[t][0]),l[t][1]))}))}function Xu(e,t,n){var i=e.coordinateSystem,a=e.getData(),r=n/2,o="horizontal"===e.get("layout")?0:1,s=1-o,l=["x","y"],c=a.mapDimension(l[o]),u=a.mapDimensionsAll(l[s]);if(!(null==c||u.length<5))for(var d=0;d<a.count();d++){var p=a.get(c,d),h=b(p,u[2],d),g=b(p,u[0],d),f=b(p,u[1],d),y=b(p,u[3],d),m=b(p,u[4],d),v=[];x(v,f,!1),x(v,y,!0),v.push(g,f,m,y),_(v,g),_(v,m),_(v,h),a.setItemLayout(d,{initBaseline:h[s],ends:v})}function b(e,n,r){var l,c=a.get(n,r),u=[];return u[o]=e,u[s]=c,isNaN(e)||isNaN(c)?l=[NaN,NaN]:(l=i.dataToPoint(u),l[o]+=t),l}function x(e,t,n){var i=t.slice(),a=t.slice();i[o]+=r,a[o]-=r,n?e.push(i,a):e.push(a,i)}function _(e,t){var n=t.slice(),i=t.slice();n[o]-=r,i[o]+=r,e.push(n,i)}}function Zu(e,t){t=t||{};for(var n=[],i=[],a=t.boundIQR,r="none"===a||0===a,o=0;o<e.length;o++){var s=Object(Te["c"])(e[o].slice()),l=Object(Te["q"])(s,.25),u=Object(Te["q"])(s,.5),d=Object(Te["q"])(s,.75),p=s[0],h=s[s.length-1],g=(null==a?1.5:a)*(d-l),f=r?p:Math.max(p,l-g),y=r?h:Math.min(h,d+g),m=t.itemNameFormatter,v=Object(c["isFunction"])(m)?m({value:o}):Object(c["isString"])(m)?m.replace("{value}",o+""):o+"";n.push([v,f,l,u,d,y]);for(var b=0;b<s.length;b++){var x=s[b];if(x<f||x>y){var _=[v,x];i.push(_)}}}return{boxData:n,outliers:i}}var qu=n("34f7"),Ku=n("2952"),Qu={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Ku["c"]){var n="";0,Object(qu["c"])(n)}var i=Zu(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function Ju(e){e.registerSeriesModel(Nu),e.registerChartView(Gu),e.registerVisual(Hu),e.registerLayout(Fu),e.registerTransform(Qu)}var $u=n("60e0"),ed=["color","borderColor"],td=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n){this.group.removeClipPath(),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._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,i=this.group,a=t.getLayout("isSimpleBox"),r=e.get("clip",!0),o=e.coordinateSystem,s=o.getArea&&o.getArea();this._data||i.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var o=t.getItemLayout(n);if(r&&rd(s,o))return;var l=ad(o,n,!0);Be["c"](l,{shape:{points:o.ends}},e,n),od(l,t,n,a),i.add(l),t.setItemGraphicEl(n,l)}})).update((function(o,l){var c=n.getItemGraphicEl(l);if(t.hasValue(o)){var u=t.getItemLayout(o);r&&rd(s,u)?i.remove(c):(c?(Be["h"](c,{shape:{points:u.ends}},e,o),Object(Be["g"])(c)):c=ad(u,o),od(c,t,o,a),i.add(c),t.setItemGraphicEl(o,c))}else i.remove(c)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),ud(e,this.group);var t=e.get("clip",!0)?Object($u["a"])(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){var n,i=t.getData(),a=i.getLayout("isSimpleBox");while(null!=(n=e.next())){var r=i.getItemLayout(n),o=ad(r,n);od(o,i,n,a),o.incremental=!0,this.group.add(o)}},t.prototype._incrementalRenderLarge=function(e,t){ud(t,this.group,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Ue["a"]),nd=function(){function e(){}return e}(),id=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return Object(b["b"])(t,e),t.prototype.getDefaultShape=function(){return new nd},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}(u["b"]);function ad(e,t,n){var i=e.ends;return new id({shape:{points:n?sd(i,e):i},z2:100})}function rd(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 od(e,t,n,i){var a=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=i,Object(Fe["I"])(e,a)}function sd(e,t){return c["map"](e,(function(e){return e=e.slice(),e[1]=t.initBaseline,e}))}var ld=function(){function e(){}return e}(),cd=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeCandlestickBox",n}return Object(b["b"])(t,e),t.prototype.getDefaultShape=function(){return new ld},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}(u["b"]);function ud(e,t,n){var i=e.getData(),a=i.getLayout("largePoints"),r=new cd({shape:{points:a},__sign:1});t.add(r);var o=new cd({shape:{points:a},__sign:-1});t.add(o),dd(1,r,e,i),dd(-1,o,e,i),n&&(r.incremental=!0,o.incremental=!0)}function dd(e,t,n,i){var a=n.get(["itemStyle",e>0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]),r=n.getModel("itemStyle").getItemStyle(ed);t.useStyle(r),t.style.fill=null,t.style.stroke=a}var pd=td,hd=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(b["b"])(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={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(pt["b"]);Object(c["mixin"])(hd,Lu,!0);var gd=hd;function fd(e){e&&c["isArray"](e.series)&&c["each"](e.series,(function(e){c["isObject"](e)&&"k"===e.type&&(e.type="candlestick")}))}var yd=n("964c"),md=["itemStyle","borderColor"],vd=["itemStyle","borderColor0"],bd=["itemStyle","color"],xd=["itemStyle","color0"],_d={seriesType:"candlestick",plan:Object(yd["a"])(),performRawSeries:!0,reset:function(e,t){function n(e,t){return t.get(e>0?bd:xd)}function i(e,t){return t.get(e>0?md:vd)}if(!t.isSeriesFiltered(e)){var a=e.pipelineContext.large;return!a&&{progress:function(e,t){var a;while(null!=(a=e.next())){var r=t.getItemModel(a),o=t.getItemLayout(a).sign,s=r.getItemStyle();s.fill=n(o,r),s.stroke=i(o,r)||s.fill;var l=t.ensureUniqueItemVisual(a,"style");Object(c["extend"])(l,s)}}}}}},Sd=_d,wd="undefined"!==typeof Float32Array?Float32Array:Array,Od={seriesType:"candlestick",plan:Object(yd["a"])(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),i=Id(e,n),a=0,r=1,o=["x","y"],s=n.getDimensionIndex(n.mapDimension(o[a])),l=Object(c["map"])(n.mapDimensionsAll(o[r]),n.getDimensionIndex,n),u=l[0],d=l[1],p=l[2],h=l[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(s<0||l.length<4))return{progress:e.pipelineContext.large?f:g};function g(e,n){var o,l=n.getStore();while(null!=(o=e.next())){var c=l.get(s,o),g=l.get(u,o),f=l.get(d,o),y=l.get(p,o),m=l.get(h,o),v=Math.min(g,f),b=Math.max(g,f),x=M(v,c),_=M(b,c),S=M(y,c),w=M(m,c),O=[];I(O,_,0),I(O,x,1),O.push(j(w),j(_),j(S),j(x)),n.setItemLayout(o,{sign:Md(l,o,g,f,d),initBaseline:g>f?_[r]:x[r],ends:O,brushRect:A(y,m,c)})}function M(e,n){var i=[];return i[a]=n,i[r]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(i)}function I(e,t,n){var r=t.slice(),o=t.slice();r[a]=Object(Rt["subPixelOptimize"])(r[a]+i/2,1,!1),o[a]=Object(Rt["subPixelOptimize"])(o[a]-i/2,1,!0),n?e.push(r,o):e.push(o,r)}function A(e,t,n){var o=M(e,n),s=M(t,n);return o[a]-=i/2,s[a]-=i/2,{x:o[0],y:o[1],width:r?i:s[0]-o[0],height:r?s[1]-o[1]:i}}function j(e){return e[a]=Object(Rt["subPixelOptimize"])(e[a],1),e}}function f(e,n){var i,o,l=new wd(4*e.count),c=0,g=[],f=[],y=n.getStore();while(null!=(o=e.next())){var m=y.get(s,o),v=y.get(u,o),b=y.get(d,o),x=y.get(p,o),_=y.get(h,o);isNaN(m)||isNaN(x)||isNaN(_)?(l[c++]=NaN,c+=3):(l[c++]=Md(y,o,v,b,d),g[a]=m,g[r]=x,i=t.dataToPoint(g,null,f),l[c++]=i?i[0]:NaN,l[c++]=i?i[1]:NaN,g[r]=_,i=t.dataToPoint(g,null,f),l[c++]=i?i[1]:NaN)}n.setLayout("largePoints",l)}}};function Md(e,t,n,i,a){var r;return r=n>i?-1:n<i?1:t>0?e.get(a,t-1)<=i?1:-1:1,r}function Id(e,t){var n,i=e.getBaseAxis(),a="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/t.count()),r=Object(Te["p"])(Object(c["retrieve2"])(e.get("barMaxWidth"),a),a),o=Object(Te["p"])(Object(c["retrieve2"])(e.get("barMinWidth"),1),a),s=e.get("barWidth");return null!=s?Object(Te["p"])(s,a):Math.max(Math.min(a/2,r),o)}var Ad=Od;function jd(e){e.registerChartView(pd),e.registerSeriesModel(gd),e.registerPreprocessor(fd),e.registerVisual(Sd),e.registerLayout(Ad)}function Dd(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 Cd=function(e){function t(t,n){var i=e.call(this)||this,a=new xi["a"](t,n),r=new We["a"];return i.add(a),i.add(r),i.updateData(t,n),i}return Object(b["b"])(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,i=e.rippleNumber,a=this.childAt(1),r=0;r<i;r++){var o=Object(_t["a"])(t,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-r/i*e.period+e.effectOffset;o.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(s).start(),o.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),a.add(o)}Dd(a,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],a=0;a<i.length;a++){var r=i[a];if(t[r]!==e[r])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}Dd(n,e)},t.prototype.highlight=function(){Object(Fe["r"])(this)},t.prototype.downplay=function(){Object(Fe["C"])(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,t){var n=this,i=e.hostModel;this.childAt(0).updateData(e,t);var a=this.childAt(1),r=e.getItemModel(t),o=e.getItemVisual(t,"symbol"),s=Object(_t["c"])(e.getItemVisual(t,"symbolSize")),l=e.getItemVisual(t,"style"),c=l&&l.fill;a.setScale(s),a.traverse((function(e){e.setStyle("fill",c)}));var u=Object(_t["b"])(e.getItemVisual(t,"symbolOffset"),s);u&&(a.x=u[0],a.y=u[1]);var d=e.getItemVisual(t,"symbolRotate");a.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=r.get(["rippleEffect","scale"]),p.brushType=r.get(["rippleEffect","brushType"]),p.period=1e3*r.get(["rippleEffect","period"]),p.effectOffset=t/e.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=o,p.color=c,p.rippleEffectColor=r.get(["rippleEffect","color"]),p.rippleNumber=r.get(["rippleEffect","number"]),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),"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(Fe["o"])(this)},t.prototype.fadeOut=function(e){this.off("mouseover").off("mouseout"),e&&e()},t}(We["a"]),Td=Cd,Ld=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.init=function(){this._symbolDraw=new xt["a"](Td)},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=Object(Dt["a"])("").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=qn["clone"](t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(Ue["a"]),Pd=Ld,Nd=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(b["b"])(t,e),t.prototype.getInitialData=function(e,t){return Object(mt["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",zlevel:0,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}(pt["b"]),kd=Nd;function Ed(e){e.registerChartView(Pd),e.registerSeriesModel(kd),e.registerLayout(Object(Dt["a"])("effectScatter"))}var Vd=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(b["b"])(t,e),t.prototype.createLine=function(e,t,n){return new Fo(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t),i=n.getModel("effect"),a=i.get("symbolSize"),r=i.get("symbol");c["isArray"](a)||(a=[a,a]);var o=e.getItemVisual(t,"style"),s=i.get("color")||o&&o.stroke,l=this.childAt(1);this._symbolType!==r&&(this.remove(l),l=Object(_t["a"])(r,-.5,-.5,1,1,s),l.z2=100,l.culling=!0,this.add(l)),l&&(l.setStyle("shadowColor",s),l.setStyle(i.getItemStyle(["color"])),l.scaleX=a[0],l.scaleY=a[1],l.setColor(s),this._symbolType=r,this._symbolScale=a,this._updateEffectAnimation(e,i,t))},t.prototype._updateEffectAnimation=function(e,t,n){var i=this.childAt(1);if(i){var a=this,r=e.getItemLayout(n),o=1e3*t.get("period"),s=t.get("loop"),l=t.get("constantSpeed"),u=c["retrieve"](t.get("delay"),(function(t){return t/e.count()*o/3}));if(i.ignore=!0,this._updateAnimationPoints(i,r),l>0&&(o=this._getLineLength(i)/l*1e3),(o!==this._period||s!==this._loop)&&(i.stopAnimation(),o>0)){var d=void 0;d="function"===typeof u?u(n):u,i.__t>0&&(d=-o*i.__t),i.__t=0;var p=i.animate("",s).when(o,{__t:1}).delay(d).during((function(){a._updateSymbolPosition(i)}));s||p.done((function(){a.remove(i)})),p.start()}this._period=o,this._loop=s}},t.prototype._getLineLength=function(e){return Zn["dist"](e.__p1,e.__cp1)+Zn["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,r=[e.x,e.y],o=r.slice(),s=Qo["h"],l=Qo["i"];r[0]=s(t[0],i[0],n[0],a),r[1]=s(t[1],i[1],n[1],a);var c=l(t[0],i[0],n[0],a),u=l(t[1],i[1],n[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*Zn["dist"](o,r),1===a&&(r[0]=o[0]+(r[0]-o[0])/2,r[1]=o[1]+(r[1]-o[1])/2)):1===e.__lastT?e.scaleY=2*Zn["dist"](t,r):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=r[0],e.y=r[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,n,t)},t}(We["a"]),Rd=Vd,zd=function(e){function t(t,n,i){var a=e.call(this)||this;return a._createPolyline(t,n,i),a}return Object(b["b"])(t,e),t.prototype._createPolyline=function(e,t,n){var i=e.getItemLayout(t),a=new Ge["a"]({shape:{points:i}});this.add(a),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var i=e.hostModel,a=this.childAt(0),r={shape:{points:e.getItemLayout(t)}};Be["h"](a,r,i,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var i=this.childAt(0),a=e.getItemModel(t),r=n&&n.emphasisLineStyle;n&&!e.hasItemOption||(r=a.getModel(["emphasis","lineStyle"]).getLineStyle()),i.useStyle(e.getItemVisual(t,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var o=i.ensureState("emphasis");o.style=r,Object(Fe["o"])(this)},t.prototype.updateLayout=function(e,t){var n=this.childAt(0);n.setShape("points",e.getItemLayout(t))},t}(We["a"]),Bd=zd,Gd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return Object(b["b"])(t,e),t.prototype.createLine=function(e,t,n){return new Bd(e,t,n)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],i=0,a=1;a<t.length;a++){var r=t[a-1],o=t[a];i+=Zn["dist"](r,o),n.push(i)}if(0!==i){for(a=0;a<n.length;a++)n[a]/=i;this._offsets=n,this._length=i}else this._length=0},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var t=e.__t,n=this._points,i=this._offsets,a=n.length;if(i){var r,o=this._lastFrame;if(t<this._lastFramePercent){var s=Math.min(o+1,a-1);for(r=s;r>=0;r--)if(i[r]<=t)break;r=Math.min(r,a-2)}else{for(r=o;r<a;r++)if(i[r]>t)break;r=Math.min(r-1,a-2)}var l=(t-i[r])/(i[r+1]-i[r]),c=n[r],u=n[r+1];e.x=c[0]*(1-l)+l*u[0],e.y=c[1]*(1-l)+l*u[1];var d=u[0]-c[0],p=u[1]-c[1];e.rotation=-Math.atan2(p,d)-Math.PI/2,this._lastFrame=r,this._lastFramePercent=t,e.ignore=!1}},t}(Rd),Hd=Gd,Wd=n("085e"),Fd=n("f2f8"),Ud=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),Yd=function(e){function t(t){return e.call(this,t)||this}return Object(b["b"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Ud},t.prototype.buildPath=function(e,t){var n=t.segs,i=t.curveness;if(t.polyline)for(var a=0;a<n.length;){var r=n[a++];if(r>0){e.moveTo(n[a++],n[a++]);for(var o=1;o<r;o++)e.lineTo(n[a++],n[a++])}}else for(a=0;a<n.length;){var s=n[a++],l=n[a++],c=n[a++],u=n[a++];if(e.moveTo(s,l),i>0){var d=(s+c)/2-(l-u)*i,p=(l+u)/2-(c-s)*i;e.quadraticCurveTo(d,p,c,u)}else e.lineTo(c,u)}},t.prototype.findDataIndex=function(e,t){var n=this.shape,i=n.segs,a=n.curveness,r=this.style.lineWidth;if(n.polyline)for(var o=0,s=0;s<i.length;){var l=i[s++];if(l>0)for(var c=i[s++],u=i[s++],d=1;d<l;d++){var p=i[s++],h=i[s++];if(Wd["a"](c,u,p,h,r,e,t))return o}o++}else for(o=0,s=0;s<i.length;){c=i[s++],u=i[s++],p=i[s++],h=i[s++];if(a>0){var g=(c+p)/2-(u-h)*a,f=(u+h)/2-(p-c)*a;if(Fd["a"](c,u,g,f,p,h,r,e,t))return o}else if(Wd["a"](c,u,p,h,r,e,t))return o;o++}return-1},t}(u["b"]),Xd=function(){function e(){this.group=new We["a"]}return e.prototype.isPersistent=function(){return!this._incremental},e.prototype.updateData=function(e){this.group.removeAll();var t=new Yd({rectHover:!0,cursor:"default"});t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e),this.group.add(t),this._incremental=null},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>5e5?(this._incremental||(this._incremental=new St["a"]({silent:!0})),this.group.add(this._incremental)):this._incremental=null},e.prototype.incrementalUpdate=function(e,t){var n=new Yd;n.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(n,t,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=e.start,this.group.add(n))},e.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},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");if(a&&a.stroke&&e.setStyle("stroke",a.stroke),e.setStyle("fill",null),!n){var r=Object(wt["a"])(e);r.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){r.dataIndex=null;var n=e.findDataIndex(t.offsetX,t.offsetY);n>0&&(r.dataIndex=n+e.__startIndex)}))}},e.prototype._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()},e}(),Zd=Xd,qd={seriesType:"lines",plan:Object(yd["a"])(),reset:function(e){var t=e.coordinateSystem,n=e.get("polyline"),i=e.pipelineContext.large;return{progress:function(a,r){var o=[];if(i){var s=void 0,l=a.end-a.start;if(n){for(var c=0,u=a.start;u<a.end;u++)c+=e.getLineCoordsCount(u);s=new Float32Array(l+2*c)}else s=new Float32Array(4*l);var d=0,p=[];for(u=a.start;u<a.end;u++){var h=e.getLineCoords(u,o);n&&(s[d++]=h);for(var g=0;g<h;g++)p=t.dataToPoint(o[g],!1,p),s[d++]=p[0],s[d++]=p[1]}r.setLayout("linesPoints",s)}else for(u=a.start;u<a.end;u++){var f=r.getItemModel(u),y=(h=e.getLineCoords(u,o),[]);if(n)for(var m=0;m<h;m++)y.push(t.dataToPoint(o[m]));else{y[0]=t.dataToPoint(o[0]),y[1]=t.dataToPoint(o[1]);var v=f.get(["lineStyle","curveness"]);+v&&(y[2]=[(y[0][0]+y[1][0])/2-(y[0][1]-y[1][1])*v,(y[0][1]+y[1][1])/2-(y[1][0]-y[0][0])*v])}r.setItemLayout(u,y)}}}}},Kd=qd,Qd=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),a=this._updateLineDraw(i,e),r=e.get("zlevel"),o=e.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();(l||s.painter.getLayer(r).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&o)&&(l||s.configLayer(r,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)}));a.updateData(i);var c=e.get("clip",!0)&&Object($u["a"])(e.coordinateSystem,!1,e);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=r,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData(),a=this._updateLineDraw(i,e);a.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var i=e.getData(),a=e.pipelineContext;if(!this._finished||a.large||a.progressiveRender)return{update:!0};var r=Kd.reset(e,t,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,i=this._showEffect(t),a=!!t.get("polyline"),r=t.pipelineContext,o=r.large;return n&&i===this._hasEffet&&a===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new Zd:new Ko(a?i?Hd:Bd:i?Rd:Fo),this._hasEffet=i,this._isPolyline=a,this._isLargeDraw=o),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr(),n="svg"===t.painter.getType();n||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type="lines",t}(Ue["a"]),Jd=Qd,$d="undefined"===typeof Uint32Array?Array:Uint32Array,ep="undefined"===typeof Float64Array?Array:Float64Array;function tp(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Object(c["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(c["mergeAll"])([n,e[0],e[1]])})))}var np=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(b["b"])(t,e),t.prototype.init=function(t){t.data=t.data||[],tp(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(tp(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(c["concatArray"])(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Object(c["concatArray"])(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e),n=t.option instanceof Array?t.option:t.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],i=this._flatCoordsOffset[2*e+1],a=0;a<i;a++)t[a]=t[a]||[],t[a][0]=this._flatCoords[n+2*a],t[a][1]=this._flatCoords[n+2*a+1];return i}var r=this._getCoordsFromItemModel(e);for(a=0;a<r.length;a++)t[a]=t[a]||[],t[a][0]=r[a][0],t[a][1]=r[a][1];return r.length},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),"number"===typeof e[0]){for(var n=e.length,i=new $d(n),a=new ep(n),r=0,o=0,s=0,l=0;l<n;){s++;var c=e[l++];i[o++]=r+t,i[o++]=c;for(var u=0;u<c;u++){var d=e[l++],p=e[l++];a[r++]=d,a[r++]=p}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,o),flatCoords:a,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){var n=new ot["a"](["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],(function(e,t,i,a){if(e instanceof Array)return NaN;n.hasItemOption=!0;var r=e.value;return null!=r?r instanceof Array?r[a]:r:void 0})),n},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),a=i.getItemModel(e),r=a.get("name");if(r)return r;var o=a.get("fromName"),s=a.get("toName"),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),Object(Ht["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.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",zlevel:0,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}(pt["b"]),ip=np;function ap(e){return e instanceof Array||(e=[e,e]),e}var rp={seriesType:"lines",reset:function(e){var t=ap(e.get("symbol")),n=ap(e.get("symbolSize")),i=e.getData();function a(e,t){var n=e.getItemModel(t),i=ap(n.getShallow("symbol",!0)),a=ap(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}}},op=rp;function sp(e){e.registerChartView(Jd),e.registerSeriesModel(ip),e.registerLayout(Kd),e.registerVisual(op)}var lp=256,cp=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=c["createCanvas"]();this.canvas=e}return e.prototype.update=function(e,t,n,i,a,r){var o=this._getBrush(),s=this._getGradient(a,"inRange"),l=this._getGradient(a,"outOfRange"),c=this.pointSize+this.blurSize,u=this.canvas,d=u.getContext("2d"),p=e.length;u.width=t,u.height=n;for(var h=0;h<p;++h){var g=e[h],f=g[0],y=g[1],m=g[2],v=i(m);d.globalAlpha=v,d.drawImage(o,f-c,y-c)}if(!u.width||!u.height)return u;var b=d.getImageData(0,0,u.width,u.height),x=b.data,_=0,S=x.length,w=this.minOpacity,O=this.maxOpacity,M=O-w;while(_<S){v=x[_+3]/256;var I=4*Math.floor(v*(lp-1));if(v>0){var A=r(v)?s:l;v>0&&(v=v*M+w),x[_++]=A[I],x[_++]=A[I+1],x[_++]=A[I+2],x[_++]=A[I+3]*v*256}else _+=4}return d.putImageData(b,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=c["createCanvas"]()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var i=e.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,i=n[t]||(n[t]=new Uint8ClampedArray(1024)),a=[0,0,0,0],r=0,o=0;o<256;o++)e[t](o/255,!0,a),i[r++]=a[0],i[r++]=a[1],i[r++]=a[2],i[r++]=a[3];return i},e}(),up=cp,dp=n("842f");function pp(e,t,n){var i=e[1]-e[0];t=c["map"](t,(function(t){return{interval:[(t.interval[0]-e[0])/i,(t.interval[1]-e[0])/i]}}));var a=t.length,r=0;return function(e){var i;for(i=r;i<a;i++){var o=t[i].interval;if(o[0]<=e&&e<=o[1]){r=i;break}}if(i===a)for(i=r-1;i>=0;i--){o=t[i].interval;if(o[0]<=e&&e<=o[1]){r=i;break}}return i>=0&&i<a&&n[i]}}function hp(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 gp(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var fp=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(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.group.removeAll(),this._incrementalDisplayable=null;var a=e.coordinateSystem;"cartesian2d"===a.type||"calendar"===a.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):gp(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&&(gp(a)?this.render(t,n,i):this._renderOnCartesianAndCalendar(t,i,e.start,e.end,!0))},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,i,a){var r,o,s,l,c=e.coordinateSystem;if(Object(dp["a"])(c,"cartesian2d")){var u=c.getAxis("x"),d=c.getAxis("y");0,r=u.getBandWidth(),o=d.getBandWidth(),s=u.scale.getExtent(),l=d.scale.getExtent()}for(var p=this.group,h=e.getData(),g=e.getModel(["emphasis","itemStyle"]).getItemStyle(),f=e.getModel(["blur","itemStyle"]).getItemStyle(),y=e.getModel(["select","itemStyle"]).getItemStyle(),m=Object(et["e"])(e),v=e.get(["emphasis","focus"]),b=e.get(["emphasis","blurScope"]),x=Object(dp["a"])(c,"cartesian2d")?[h.mapDimension("x"),h.mapDimension("y"),h.mapDimension("value")]:[h.mapDimension("time"),h.mapDimension("value")],_=n;_<i;_++){var S=void 0,w=h.getItemVisual(_,"style");if(Object(dp["a"])(c,"cartesian2d")){var O=h.get(x[0],_),M=h.get(x[1],_);if(isNaN(h.get(x[2],_))||O<s[0]||O>s[1]||M<l[0]||M>l[1])continue;var I=c.dataToPoint([O,M]);S=new Da["a"]({shape:{x:Math.floor(Math.round(I[0])-r/2),y:Math.floor(Math.round(I[1])-o/2),width:Math.ceil(r),height:Math.ceil(o)},style:w})}else{if(isNaN(h.get(x[1],_)))continue;S=new Da["a"]({z2:1,shape:c.dataToRect([h.get(x[0],_)]).contentShape,style:w})}var A=h.getItemModel(_);if(h.hasItemOption){var j=A.getModel("emphasis");g=j.getModel("itemStyle").getItemStyle(),f=A.getModel(["blur","itemStyle"]).getItemStyle(),y=A.getModel(["select","itemStyle"]).getItemStyle(),v=j.get("focus"),b=j.get("blurScope"),m=Object(et["e"])(A)}var D=e.getRawValue(_),C="-";D&&null!=D[2]&&(C=D[2]+""),Object(et["g"])(S,m,{labelFetcher:e,labelDataIndex:_,defaultOpacity:w.opacity,defaultText:C}),S.ensureState("emphasis").style=g,S.ensureState("blur").style=f,S.ensureState("select").style=y,Object(Fe["o"])(S,v,b),S.incremental=a,a&&(S.states.emphasis.hoverLayer=!0),p.add(S),h.setItemGraphicEl(_,S)}},t.prototype._renderOnGeo=function(e,t,n,i){var a=n.targetVisuals.inRange,r=n.targetVisuals.outOfRange,o=t.getData(),s=this._hmLayer||this._hmLayer||new up;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var l=e.getViewRect().clone(),c=e.getRoamTransform();l.applyTransform(c);var u=Math.max(l.x,0),p=Math.max(l.y,0),h=Math.min(l.width+l.x,i.getWidth()),g=Math.min(l.height+l.y,i.getHeight()),f=h-u,y=g-p,m=[o.mapDimension("lng"),o.mapDimension("lat"),o.mapDimension("value")],v=o.mapArray(m,(function(t,n,i){var a=e.dataToPoint([t,n]);return a[0]-=u,a[1]-=p,a.push(i),a})),b=n.getExtent(),x="visualMap.continuous"===n.type?hp(b,n.option.range):pp(b,n.getPieceList(),n.option.selected);s.update(v,f,y,a.color.getNormalizer(),{inRange:a.color.getColorMapper(),outOfRange:r.color.getColorMapper()},x);var _=new d["a"]({style:{width:f,height:y,x:u,y:p,image:s.canvas},silent:!0});this.group.add(_)},t.type="heatmap",t}(Ue["a"]),yp=fp,mp=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.getInitialData=function(e,t){return Object(mt["a"])(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=fs["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",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(pt["b"]),vp=mp;function bp(e){e.registerChartView(yp),e.registerSeriesModel(vp)}var xp=n("6988"),_p=["itemStyle","borderWidth"],Sp=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],wp=new en["a"],Op=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n){var i=this.group,a=e.getData(),r=this._data,o=e.coordinateSystem,s=o.getBaseAxis(),l=s.isHorizontal(),c=o.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:o,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:l,valueDim:Sp[+l],categoryDim:Sp[1-+l]};return a.diff(r).add((function(e){if(a.hasValue(e)){var t=Ep(a,e),n=Mp(a,e,t,u),r=zp(a,u,n);a.setItemGraphicEl(e,r),i.add(r),Up(r,u,n)}})).update((function(e,t){var n=r.getItemGraphicEl(t);if(a.hasValue(e)){var o=Ep(a,e),s=Mp(a,e,o,u),l=Hp(a,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),a.setItemGraphicEl(e,null),n=null),n?Bp(n,u,s):n=zp(a,u,s,!0),a.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,i.add(n),Up(n,u,s)}else i.remove(n)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&Gp(r,e,t.__pictorialSymbolMeta.animationModel,t)})).execute(),this._data=a,this.group},t.prototype.remove=function(e,t){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl((function(t){Gp(i,Object(wt["a"])(t).dataIndex,e,t)})):n.removeAll()},t.type="pictorialBar",t}(Ue["a"]);function Mp(e,t,n,i){var a=e.getItemLayout(t),r=n.get("symbolRepeat"),o=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),c=(l||0)*Math.PI/180||0,u=n.get("symbolPatternSize")||2,d=n.isAnimationEnabled(),p={dataIndex:t,layout:a,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:r,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:c,animationModel:d?n:null,hoverScale:d&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};Ip(n,r,a,i,p),jp(e,t,a,r,o,p.boundingLength,p.pxSign,u,i,p),Dp(n,p.symbolScale,c,i,p);var h=p.symbolSize,g=Object(_t["b"])(n.get("symbolOffset"),h);return Cp(n,h,a,r,o,g,s,p.valueLineWidth,p.boundingLength,p.repeatCutLength,i,p),p}function Ip(e,t,n,i,a){var r,o=i.valueDim,s=e.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),d=1-+(n[o.wh]<=0);if(c["isArray"](s)){var p=[Ap(l,s[0])-u,Ap(l,s[1])-u];p[1]<p[0]&&p.reverse(),r=p[d]}else r=null!=s?Ap(l,s)-u:t?i.coordSysExtent[o.index][d]-u:n[o.wh];a.boundingLength=r,t&&(a.repeatCutLength=n[o.wh]),a.pxSign=r>0?1:r<0?-1:0}function Ap(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function jp(e,t,n,i,a,r,o,s,l,u){var d,p=l.valueDim,h=l.categoryDim,g=Math.abs(n[h.wh]),f=e.getItemVisual(t,"symbolSize");d=c["isArray"](f)?f.slice():null==f?["100%","100%"]:[f,f],d[h.index]=Object(Te["p"])(d[h.index],g),d[p.index]=Object(Te["p"])(d[p.index],i?g:Math.abs(r)),u.symbolSize=d;var y=u.symbolScale=[d[0]/s,d[1]/s];y[p.index]*=(l.isHorizontal?-1:1)*o}function Dp(e,t,n,i,a){var r=e.get(_p)||0;r&&(wp.attr({scaleX:t[0],scaleY:t[1],rotation:n}),wp.updateTransform(),r/=wp.getLineScale(),r*=t[i.valueDim.index]),a.valueLineWidth=r}function Cp(e,t,n,i,a,r,o,s,l,u,d,p){var h=d.categoryDim,g=d.valueDim,f=p.pxSign,y=Math.max(t[g.index]+s,0),m=y;if(i){var v=Math.abs(l),b=c["retrieve"](e.get("symbolMargin"),"15%")+"",x=!1;b.lastIndexOf("!")===b.length-1&&(x=!0,b=b.slice(0,b.length-1));var _=Object(Te["p"])(b,t[g.index]),S=Math.max(y+2*_,0),w=x?0:2*_,O=Object(Te["j"])(i),M=O?i:Yp((v+w)/S),I=v-M*y;_=I/2/(x?M:Math.max(M-1,1)),S=y+2*_,w=x?0:2*_,O||"fixed"===i||(M=u?Yp((Math.abs(u)+w)/S):0),m=M*S-w,p.repeatTimes=M,p.symbolMargin=_}var A=f*(m/2),j=p.pathPosition=[];j[h.index]=n[h.wh]/2,j[g.index]="start"===o?A:"end"===o?l-A:l/2,r&&(j[0]+=r[0],j[1]+=r[1]);var D=p.bundlePosition=[];D[h.index]=n[h.xy],D[g.index]=n[g.xy];var C=p.barRectShape=c["extend"]({},n);C[g.wh]=f*Math.max(Math.abs(n[g.wh]),Math.abs(j[g.index]+A)),C[h.wh]=n[h.wh];var T=p.clipShape={};T[h.xy]=-n[h.xy],T[h.wh]=d.ecSize[h.wh],T[g.xy]=0,T[g.wh]=n[g.wh]}function Tp(e){var t=e.symbolPatternSize,n=Object(_t["a"])(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function Lp(e,t,n,i){var a=e.__pictorialBundle,r=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,c=n.repeatTimes||0,u=0,d=r[t.valueDim.index]+o+2*n.symbolMargin;for(Wp(e,(function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=c,u<c?Fp(e,null,g(u),n,i):Fp(e,null,{scaleX:0,scaleY:0},n,i,(function(){a.remove(e)})),u++}));u<c;u++){var p=Tp(n);p.__pictorialAnimationIndex=u,p.__pictorialRepeatTimes=c,a.add(p);var h=g(u);Fp(p,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.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]=d*(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 Pp(e,t,n,i){var a=e.__pictorialBundle,r=e.__pictorialMainPath;r?Fp(r,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(r=e.__pictorialMainPath=Tp(n),a.add(r),Fp(r,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function Np(e,t,n){var i=c["extend"]({},t.barRectShape),a=e.__pictorialBarRect;a?Fp(a,null,{shape:i},t,n):(a=e.__pictorialBarRect=new Da["a"]({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,e.add(a))}function kp(e,t,n,i){if(n.symbolClip){var a=e.__pictorialClipPath,r=c["extend"]({},n.clipShape),o=t.valueDim,s=n.animationModel,l=n.dataIndex;if(a)Be["h"](a,{shape:r},s,l);else{r[o.wh]=0,a=new Da["a"]({shape:r}),e.__pictorialBundle.setClipPath(a),e.__pictorialClipPath=a;var u={};u[o.wh]=n.clipShape[o.wh],Rt[i?"updateProps":"initProps"](a,{shape:u},s,l)}}}function Ep(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=Vp,n.isAnimationEnabled=Rp,n}function Vp(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function Rp(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function zp(e,t,n,i){var a=new We["a"],r=new We["a"];return a.add(r),a.__pictorialBundle=r,r.x=n.bundlePosition[0],r.y=n.bundlePosition[1],n.symbolRepeat?Lp(a,t,n):Pp(a,t,n),Np(a,n,i),kp(a,t,n,i),a.__pictorialShapeStr=Hp(e,n),a.__pictorialSymbolMeta=n,a}function Bp(e,t,n){var i=n.animationModel,a=n.dataIndex,r=e.__pictorialBundle;Be["h"](r,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,a),n.symbolRepeat?Lp(e,t,n,!0):Pp(e,t,n,!0),Np(e,n,!0),kp(e,t,n,!0)}function Gp(e,t,n,i){var a=i.__pictorialBarRect;a&&a.removeTextContent();var r=[];Wp(i,(function(e){r.push(e)})),i.__pictorialMainPath&&r.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),c["each"](r,(function(e){Be["e"](e,{scaleX:0,scaleY:0},n,t,(function(){i.parent&&i.parent.remove(i)}))})),e.setItemGraphicEl(t,null)}function Hp(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function Wp(e,t,n){c["each"](e.__pictorialBundle.children(),(function(i){i!==e.__pictorialBarRect&&t.call(n,i)}))}function Fp(e,t,n,i,a,r){t&&e.attr(t),i.symbolClip&&!a?n&&e.attr(n):n&&Rt[a?"updateProps":"initProps"](e,n,i.animationModel,i.dataIndex,r)}function Up(e,t,n){var i=n.dataIndex,a=n.itemModel,r=a.getModel("emphasis"),o=r.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),p=r.get("focus"),h=r.get("blurScope"),g=r.get("scale");Wp(e,(function(e){if(e instanceof d["a"]){var t=e.style;e.useStyle(c["extend"]({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var i=e.ensureState("emphasis");i.style=o,g&&(i.scaleX=1.1*e.scaleX,i.scaleY=1.1*e.scaleY),e.ensureState("blur").style=s,e.ensureState("select").style=l,u&&(e.cursor=u),e.z2=n.z2}));var f=t.valueDim.posDesc[+(n.boundingLength>0)],y=e.__pictorialBarRect;Object(et["g"])(y,Object(et["e"])(a),{labelFetcher:t.seriesModel,labelDataIndex:i,defaultText:Object(xp["b"])(t.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:f}),Object(Fe["o"])(e,p,h)}function Yp(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var Xp=Op,Zp=n("25df"),qp=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(b["b"])(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"])(Zp["a"].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}(Zp["a"]),Kp=qp,Qp=n("e043");function Jp(e){e.registerChartView(Xp),e.registerSeriesModel(Kp),e.registerLayout(Object(c["curry"])(Qp["c"],"pictorialBar"))}var $p=n("9217"),eh=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),a=this,r=this.group,o=e.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function d(e){return e.name}r.x=0,r.y=l.y+u[0];var p=new Ca["a"](this._layersSeries||[],o,d,d),h=[];function g(t,n,s){var l=a._layers;if("remove"!==t){for(var c,u,d=[],p=[],g=o[n].indices,f=0;f<g.length;f++){var y=i.getItemLayout(g[f]),m=y.x,v=y.y0,b=y.y;d.push(m,v),p.push(m,v+b),c=i.getItemVisual(g[f],"style")}var x=i.getItemLayout(g[0]),_=e.getModel("label"),S=_.get("margin"),w=e.getModel("emphasis");if("add"===t){var O=h[n]=new We["a"];u=new $p["a"]({shape:{points:d,stackedOnPoints:p,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),O.add(u),r.add(O),e.isAnimationEnabled()&&u.setClipPath(th(u.getBoundingRect(),e,(function(){u.removeClipPath()})))}else{O=l[s];u=O.childAt(0),r.add(O),h[n]=O,Be["h"](u,{shape:{points:d,stackedOnPoints:p}},e),Object(Be["g"])(u)}Object(et["g"])(u,Object(et["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-S,M.y=x.y0+x.y/2),u.useStyle(c),i.setItemGraphicEl(n,u),Object(Fe["I"])(u,e),Object(Fe["o"])(u,w.get("focus"),w.get("blurScope"))}else r.remove(l[n])}p.add(Object(c["bind"])(g,this,"add")).update(Object(c["bind"])(g,this,"update")).remove(Object(c["bind"])(g,this,"remove")).execute(),this._layersSeries=o,this._layers=h},t.type="themeRiver",t}(Ue["a"]);function th(e,t,n){var i=new Da["a"]({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Be["c"](i,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),i}var nh=eh,ih=2,ah=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new dt(c["bind"](this.getData,this),c["bind"](this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},i=Object(lt["j"])(e,(function(e){return n.hasOwnProperty(e[0]+"")||(n[e[0]+""]=-1),e[2]})),a=[];i.buckets.each((function(e,t){a.push({name:t,dataList:e})}));for(var r=a.length,o=0;o<r;++o){for(var s=a[o].name,l=0;l<a[o].dataList.length;++l){var c=a[o].dataList[l][0]+"";n[c]=o}for(var c in n)n.hasOwnProperty(c)&&n[c]!==o&&(n[c]=o,e[t]=[c,0,s],t++)}return e},t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents("singleAxis",lt["b"]).models[0],i=n.get("type"),a=c["filter"](e.data,(function(e){return void 0!==e[2]})),r=this.fixData(a||[]),o=[],s=this.nameMap=c["createHashMap"](),l=0,u=0;u<r.length;++u)o.push(r[u][ih]),s.get(r[u][ih])||(s.set(r[u][ih],l),l++);var d=Object(rt["b"])(r,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Object(Tu["a"])(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,p=new ot["a"](d,this);return p.initData(r),p},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],i=0;i<t;++i)n[i]=i;var a=e.mapDimension("single"),r=Object(lt["j"])(n,(function(t){return e.get("name",t)})),o=[];return r.buckets.each((function(t,n){t.sort((function(t,n){return e.get(a,t)-e.get(a,n)})),o.push({name:n,indices:t})})),o},t.prototype.getAxisTooltipData=function(e,t,n){c["isArray"](e)||(e=e?[e]:[]);for(var i,a=this.getData(),r=this.getLayerSeries(),o=[],s=r.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,d=-1,p=r[l].indices.length,h=0;h<p;++h){var g=a.get(e[0],r[l].indices[h]),f=Math.abs(g-t);f<=u&&(i=g,u=f,d=r[l].indices[h])}o.push(d)}return{dataIndices:o,nestestValue:i}},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),a=i.getName(e),r=i.get(i.mapDimension("value"),e);return Object(Ht["c"])("nameValue",{name:a,value:r})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={zlevel:0,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}(pt["b"]),rh=ah;function oh(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),n=e.coordinateSystem,i={},a=n.getRect();i.rect=a;var r=e.get("boundaryGap"),o=n.getAxis();if(i.boundaryGap=r,"horizontal"===o.orient){r[0]=Te["p"](r[0],a.height),r[1]=Te["p"](r[1],a.height);var s=a.height-r[0]-r[1];sh(t,e,s)}else{r[0]=Te["p"](r[0],a.width),r[1]=Te["p"](r[1],a.width);var l=a.width-r[0]-r[1];sh(t,e,l)}t.setLayout("layoutInfo",i)}))}function sh(e,t,n){if(e.count())for(var i,a=t.coordinateSystem,r=t.getLayerSeries(),o=e.mapDimension("single"),s=e.mapDimension("value"),l=c["map"](r,(function(t){return c["map"](t.indices,(function(t){var n=a.dataToPoint(e.get(o,t));return n[1]=e.get(s,t),n}))})),u=lh(l),d=u.y0,p=n/u.max,h=r.length,g=r[0].indices.length,f=0;f<g;++f){i=d[f]*p,e.setItemLayout(r[0].indices[f],{layerIndex:0,x:l[0][f][0],y0:i,y:l[0][f][1]*p});for(var y=1;y<h;++y)i+=l[y-1][f][1]*p,e.setItemLayout(r[y].indices[f],{layerIndex:y,x:l[y][f][0],y0:i,y:l[y][f][1]*p})}}function lh(e){for(var t=e.length,n=e[0].length,i=[],a=[],r=0,o=0;o<n;++o){for(var s=0,l=0;l<t;++l)s+=e[l][o][1];s>r&&(r=s),i.push(s)}for(var c=0;c<n;++c)a[c]=(r-i[c])/2;r=0;for(var u=0;u<n;++u){var d=i[u]+a[u];d>r&&(r=d)}return{y0:a,max:r}}function ch(e){e.registerChartView(nh),e.registerSeriesModel(rh),e.registerLayout(oh),e.registerProcessor(Re("themeRiver"))}var uh=2,dh=4,ph=function(e){function t(t,n,i,a){var r=e.call(this)||this;r.z2=uh,r.textConfig={inside:!0},Object(wt["a"])(r).seriesIndex=n.seriesIndex;var o=new ze["a"]({z2:dh,silent:t.getModel().get(["label","silent"])});return r.setTextContent(o),r.updateData(!0,t,n,i,a),r}return Object(b["b"])(t,e),t.prototype.updateData=function(e,t,n,i,a){this.node=t,t.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var r=this;Object(wt["a"])(r).dataIndex=t.dataIndex;var o=t.getModel(),s=o.getModel("emphasis"),l=t.getLayout(),u=c["extend"]({},l);u.label=null;var d=t.getVisual("style");d.lineJoin="bevel";var p=t.getVisual("decal");p&&(d.decal=Object(Mn["a"])(p,a));var h=tt(o.getModel("itemStyle"),u,!0);c["extend"](u,h),c["each"](Fe["g"],(function(e){var t=r.ensureState(e),n=o.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var i=tt(n,u);i&&(t.shape=i)})),e?(r.setShape(u),r.shape.r=l.r0,Be["h"](r,{shape:{r:l.r}},n,t.dataIndex)):(Be["h"](r,{shape:u},n),Object(Be["g"])(r)),r.useStyle(d),this._updateLabel(n);var g=o.getShallow("cursor");g&&r.attr("cursor",g),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var f=s.get("focus"),y="ancestor"===f?t.getAncestorsIndices():"descendant"===f?t.getDescendantIndices():f;Object(Fe["o"])(this,y,s.get("blurScope"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),i=n.getModel("label"),a=this.node.getLayout(),r=a.endAngle-a.startAngle,o=(a.startAngle+a.endAngle)/2,s=Math.cos(o),l=Math.sin(o),u=this,d=u.getTextContent(),p=this.node.dataIndex,h=i.get("minAngle")/180*Math.PI,g=i.get("show")&&!(null!=h&&Math.abs(r)<h);function f(e,t){var n=e.get(t);return null==n?i.get(t):n}d.ignore=!g,c["each"](Fe["a"],(function(i){var r="normal"===i?n.getModel("label"):n.getModel([i,"label"]),c="normal"===i,h=c?d:d.ensureState(i),g=e.getFormattedLabel(p,i);c&&(g=g||t.node.name),h.style=Object(et["c"])(r,{},null,"normal"!==i,!0),g&&(h.style.text=g);var y=r.get("show");null==y||c||(h.ignore=!y);var m,v=f(r,"position"),b=c?u:u.states[i],x=b.style.fill;b.textConfig={outsideFill:"inherit"===r.get("color")?x:null,inside:"outside"!==v};var _=f(r,"distance")||0,S=f(r,"align");"outside"===v?(m=a.r+_,S=o>Math.PI/2?"right":"left"):S&&"center"!==S?"left"===S?(m=a.r0+_,o>Math.PI/2&&(S="right")):"right"===S&&(m=a.r-_,o>Math.PI/2&&(S="left")):(m=(a.r+a.r0)/2,S="center"),h.style.align=S,h.style.verticalAlign=f(r,"verticalAlign")||"middle",h.x=m*s+a.cx,h.y=m*l+a.cy;var w=f(r,"rotate"),O=0;"radial"===w?(O=-o,O<-Math.PI/2&&(O+=Math.PI)):"tangential"===w?(O=Math.PI/2-o,O>Math.PI/2?O-=Math.PI:O<-Math.PI/2&&(O+=Math.PI)):"number"===typeof w&&(O=w*Math.PI/180),h.rotation=O})),d.dirtyStyle()},t}(He["a"]),hh=ph,gh="sunburstRootToNode",fh="sunburstHighlight",yh="sunburstUnhighlight";function mh(e){e.registerAction({type:gh,update:"updateView"},(function(e,t){function n(t,n){var i=sa(e,[gh],t);if(i){var a=t.getViewRoot();a&&(e.direction=ca(a,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)})),e.registerAction({type:fh,update:"none"},(function(e,t,n){function i(t){var n=sa(e,[fh],t);n&&(e.dataIndex=n.node.dataIndex)}e=Object(c["extend"])({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},i),n.dispatchAction(Object(c["extend"])(e,{type:"highlight"}))})),e.registerAction({type:yh,update:"updateView"},(function(e,t,n){e=Object(c["extend"])({},e),n.dispatchAction(Object(c["extend"])(e,{type:"downplay"}))}))}var vh=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n,i){var a=this;this.seriesModel=e,this.api=n,this.ecModel=t;var r=e.getData(),o=r.tree.root,s=e.getViewRoot(),l=this.group,u=e.get("renderLabelForZeroData"),d=[];s.eachNode((function(e){d.push(e)}));var p=this._oldChildren||[];function h(e,t){function n(e){return e.getId()}function i(n,i){var a=null==n?null:e[n],r=null==i?null:t[i];g(a,r)}0===e.length&&0===t.length||new Ca["a"](t,e,n,n).add(i).update(i).remove(c["curry"](i,null)).execute()}function g(i,a){if(u||!i||i.getValue()||(i=null),i!==o&&a!==o)if(a&&a.piece)i?(a.piece.updateData(!1,i,e,t,n),r.setItemGraphicEl(i.dataIndex,a.piece)):f(a);else if(i){var s=new hh(i,e,t,n);l.add(s),r.setItemGraphicEl(i.dataIndex,s)}}function f(e){e&&e.piece&&(l.remove(e.piece),e.piece=null)}function y(i,r){r.depth>0?(a.virtualPiece?a.virtualPiece.updateData(!1,i,e,t,n):(a.virtualPiece=new hh(i,e,t,n),l.add(a.virtualPiece)),r.piece.off("click"),a.virtualPiece.on("click",(function(e){a._rootToNode(r.parentNode)}))):a.virtualPiece&&(l.remove(a.virtualPiece),a.virtualPiece=null)}h(d,p),y(o,s),this._initEvents(),this._oldChildren=d},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var n=!1,i=e.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece===t.target){var a=i.getModel().get("nodeClick");if("rootToNode"===a)e._rootToNode(i);else if("link"===a){var r=i.getModel(),o=r.get("link");if(o){var s=r.get("target",!0)||"_blank";Object(Ga["l"])(o,s)}}n=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:gh,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData(),i=n.getItemLayout(0);if(i){var a=e[0]-i.cx,r=e[1]-i.cy,o=Math.sqrt(a*a+r*r);return o<=i.r&&o>=i.r0}},t.type="sunburst",t}(Ue["a"]),bh=vh,xh=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return Object(b["b"])(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};_h(n);var i=this._levelModels=c["map"](e.levels||[],(function(e){return new Yt["a"](e,this,t)}),this),a=oa.createTree(n,this,r);function r(e){e.wrapMethod("getItemModel",(function(e,t){var n=a.getNodeByDataIndex(t),r=i[n.depth];return r&&(e.parentModel=r),e}))}return a.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=ua(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(){Oa(this)},t.type="series.sunburst",t.defaultOption={zlevel:0,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}(pt["b"]);function _h(e){var t=0;c["each"](e.children,(function(e){_h(e);var n=e.value;c["isArray"](n)&&(n=n[0]),t+=n}));var n=e.value;c["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),c["isArray"](e.value)?e.value[0]=n:e.value=n}var Sh=xh,wh=Math.PI/180;function Oh(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),i=e.get("radius");c["isArray"](i)||(i=[0,i]),c["isArray"](t)||(t=[t,t]);var a=n.getWidth(),r=n.getHeight(),o=Math.min(a,r),s=Object(Te["p"])(t[0],a),l=Object(Te["p"])(t[1],r),u=Object(Te["p"])(i[0],o/2),d=Object(Te["p"])(i[1],o/2),p=-e.get("startAngle")*wh,h=e.get("minAngle")*wh,g=e.getData().tree.root,f=e.getViewRoot(),y=f.depth,m=e.get("sort");null!=m&&Mh(f,m);var v=0;c["each"](f.children,(function(e){!isNaN(e.getValue())&&v++}));var b=f.getValue(),x=Math.PI/(b||v)*2,_=f.depth>0,S=f.height-(_?-1:1),w=(d-u)/(S||1),O=e.get("clockwise"),M=e.get("stillShowZeroSum"),I=O?1:-1,A=function(t,n){if(t){var i=n;if(t!==g){var a=t.getValue(),r=0===b&&M?x:a*x;r<h&&(r=h),i=n+I*r;var d=t.depth-y-(_?-1:1),p=u+w*d,f=u+w*(d+1),m=e.getLevelModel(t);if(m){var v=m.get("r0",!0),S=m.get("r",!0),j=m.get("radius",!0);null!=j&&(v=j[0],S=j[1]),null!=v&&(p=Object(Te["p"])(v,o/2)),null!=S&&(f=Object(Te["p"])(S,o/2))}t.setLayout({angle:r,startAngle:n,endAngle:i,clockwise:O,cx:s,cy:l,r0:p,r:f})}if(t.children&&t.children.length){var D=0;c["each"](t.children,(function(e){D+=A(e,n+D)}))}return i-n}};if(_){var j=u,D=u+w,C=2*Math.PI;g.setLayout({angle:C,startAngle:p,endAngle:p+C,clockwise:O,cx:s,cy:l,r0:j,r:D})}A(f,p)}))}function Mh(e,t){var n=e.children||[];e.children=Ih(n,t),n.length&&c["each"](e.children,(function(e){Mh(e,t)}))}function Ih(e,t){if("function"===typeof t){var n=c["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)})),c["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 Ah(e){var t={};function n(e,n,i){var a=e;while(a&&a.depth>1)a=a.parentNode;var r=n.getColorFromPalette(a.name||a.dataIndex+"",t);return e.depth>1&&"string"===typeof r&&(r=Object(o["lift"])(r,(e.depth-1)/(i-1)*.5)),r}e.eachSeriesByType("sunburst",(function(e){var t=e.getData(),i=t.tree;i.eachNode((function(a){var r=a.getModel(),o=r.getModel("itemStyle").getItemStyle();o.fill||(o.fill=n(a,e,i.root.height));var s=t.ensureUniqueItemVisual(a.dataIndex,"style");Object(c["extend"])(s,o)}))}))}function jh(e){e.registerChartView(bh),e.registerSeriesModel(Sh),e.registerLayout(Object(c["curry"])(Oh,"sunburst")),e.registerProcessor(Object(c["curry"])(Re,"sunburst")),e.registerVisual(Ah),mh(e)}var Dh={x:1,y:1,scaleX:1,scaleY:1,originX:1,originY:1,rotation:1},Ch={color:"fill",borderColor:"stroke"},Th={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Lh=Object(lt["o"])(),Ph=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(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(mt["a"])(null,this)},t.prototype.getDataParams=function(t,n,i){var a=e.prototype.getDataParams.call(this,t,n);return i&&(a.info=Lh(i).info),a},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,clip:!1},t}(pt["b"]),Nh=Ph;function kh(e,t){return t=t||[0,0],c["map"](["x","y"],(function(n,i){var a=this.getAxis(n),r=t[i],o=e[i]/2;return"category"===a.type?a.getBandWidth():Math.abs(a.dataToCoord(r-o)-a.dataToCoord(r+o))}),this)}function Eh(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:c["bind"](kh,e)}}}function Vh(e,t){return t=t||[0,0],c["map"]([0,1],(function(n){var i=t[n],a=e[n]/2,r=[],o=[];return r[n]=i-a,o[n]=i+a,r[1-n]=o[1-n]=t[1-n],Math.abs(this.dataToPoint(r)[n]-this.dataToPoint(o)[n])}),this)}function Rh(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:c["bind"](Vh,e)}}}function zh(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 Bh(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(c["bind"])(zh,e)}}}function Gh(e,t){return t=t||[0,0],c["map"](["Radius","Angle"],(function(n,i){var a="get"+n+"Axis",r=this[a](),o=t[i],s=e[i]/2,l="category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-s)-r.dataToCoord(o+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function Hh(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),i=t.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:i[1],r0:i[0]},api:{coord:function(i){var a=t.dataToRadius(i[0]),r=n.dataToAngle(i[1]),o=e.coordToPoint([a,r]);return o.push(a,r*Math.PI/180),o},size:c["bind"](Gh,e)}}}function Wh(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 Fh(e,t,n,i){return e&&(e.legacy||!1!==e.legacy&&!n&&!i&&"tspan"!==t&&("text"===t||Object(c["hasOwn"])(e,"text")))}function Uh(e,t,n){var i,a,r,o=e;if("text"===t)r=o;else{r={},Object(c["hasOwn"])(o,"text")&&(r.text=o.text),Object(c["hasOwn"])(o,"rich")&&(r.rich=o.rich),Object(c["hasOwn"])(o,"textFill")&&(r.fill=o.textFill),Object(c["hasOwn"])(o,"textStroke")&&(r.stroke=o.textStroke),Object(c["hasOwn"])(o,"fontFamily")&&(r.fontFamily=o.fontFamily),Object(c["hasOwn"])(o,"fontSize")&&(r.fontSize=o.fontSize),Object(c["hasOwn"])(o,"fontStyle")&&(r.fontStyle=o.fontStyle),Object(c["hasOwn"])(o,"fontWeight")&&(r.fontWeight=o.fontWeight),a={type:"text",style:r,silent:!0},i={};var s=Object(c["hasOwn"])(o,"textPosition");n?i.position=s?o.textPosition:"inside":s&&(i.position=o.textPosition),Object(c["hasOwn"])(o,"textPosition")&&(i.position=o.textPosition),Object(c["hasOwn"])(o,"textOffset")&&(i.offset=o.textOffset),Object(c["hasOwn"])(o,"textRotation")&&(i.rotation=o.textRotation),Object(c["hasOwn"])(o,"textDistance")&&(i.distance=o.textDistance)}return Yh(r,e),Object(c["each"])(r.rich,(function(e){Yh(e,e)})),{textConfig:i,textContent:a}}function Yh(e,t){t&&(t.font=t.textFont||t.font,Object(c["hasOwn"])(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Object(c["hasOwn"])(t,"textAlign")&&(e.align=t.textAlign),Object(c["hasOwn"])(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Object(c["hasOwn"])(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Object(c["hasOwn"])(t,"textWidth")&&(e.width=t.textWidth),Object(c["hasOwn"])(t,"textHeight")&&(e.height=t.textHeight),Object(c["hasOwn"])(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Object(c["hasOwn"])(t,"textPadding")&&(e.padding=t.textPadding),Object(c["hasOwn"])(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Object(c["hasOwn"])(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Object(c["hasOwn"])(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Object(c["hasOwn"])(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Object(c["hasOwn"])(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Object(c["hasOwn"])(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Object(c["hasOwn"])(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function Xh(e,t,n){var i=e;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var a=i.textPosition.indexOf("inside")>=0,r=e.fill||"#000";Zh(i,t);var o=null==i.textFill;return a?o&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=r),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(o&&(i.textFill=e.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=t.text,i.rich=t.rich,Object(c["each"])(t.rich,(function(e){Zh(e,e)})),i}function Zh(e,t){t&&(Object(c["hasOwn"])(t,"fill")&&(e.textFill=t.fill),Object(c["hasOwn"])(t,"stroke")&&(e.textStroke=t.fill),Object(c["hasOwn"])(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Object(c["hasOwn"])(t,"font")&&(e.font=t.font),Object(c["hasOwn"])(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Object(c["hasOwn"])(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Object(c["hasOwn"])(t,"fontSize")&&(e.fontSize=t.fontSize),Object(c["hasOwn"])(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Object(c["hasOwn"])(t,"align")&&(e.textAlign=t.align),Object(c["hasOwn"])(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Object(c["hasOwn"])(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Object(c["hasOwn"])(t,"width")&&(e.textWidth=t.width),Object(c["hasOwn"])(t,"height")&&(e.textHeight=t.height),Object(c["hasOwn"])(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Object(c["hasOwn"])(t,"padding")&&(e.textPadding=t.padding),Object(c["hasOwn"])(t,"borderColor")&&(e.textBorderColor=t.borderColor),Object(c["hasOwn"])(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Object(c["hasOwn"])(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Object(c["hasOwn"])(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Object(c["hasOwn"])(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Object(c["hasOwn"])(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Object(c["hasOwn"])(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Object(c["hasOwn"])(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Object(c["hasOwn"])(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Object(c["hasOwn"])(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Object(c["hasOwn"])(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var qh=n("e6aa"),Kh={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]};function Qh(e,t,n){var i=e[n],a=Kh[n];i&&(t[a[0]]=i[0],t[a[1]]=i[1])}function Jh(e,t,n){null!=e[n]&&(t[n]=e[n])}function $h(e,t,n){n&&(e[t]=n[t])}function eg(e,t,n,i,a){var r=n[e];if(r){var o,s=t[e],l=r.enterFrom;if(a&&l){!o&&(o=i[e]={});for(var u=Object(c["keys"])(l),d=0;d<u.length;d++){var p=u[d];o[p]=l[p]}}if(!a&&s)if(r.transition){!o&&(o=i[e]={});var h=Object(lt["r"])(r.transition);for(d=0;d<h.length;d++){p=h[d];var g=s[p];0,o[p]=g}}else if(Object(c["indexOf"])(n.transition,e)>=0){!o&&(o=i[e]={});var f=Object(c["keys"])(s);for(d=0;d<f.length;d++){p=f[d],g=s[p];rg(r[p],g)&&(o[p]=g)}}var y=r.leaveTo;if(y){var m=og(t),v=m[e]||(m[e]={}),b=Object(c["keys"])(y);for(d=0;d<b.length;d++){p=b[d];v[p]=y[p]}}}}function tg(e,t,n){var i=t[e];if(i)for(var a=n[e]={},r=Object(c["keys"])(i),o=0;o<r.length;o++){var s=r[o];a[s]=Object(qh["a"])(i[s])}}function ng(e,t,n,i){var a=t.enterFrom;if(i&&a)for(var r=Object(c["keys"])(a),o=0;o<r.length;o++){var s=r[o];0,n[s]=a[s]}if(!i)if(t.transition){var l=Object(lt["r"])(t.transition);for(o=0;o<l.length;o++){s=l[o];if("style"!==s&&"shape"!==s&&"extra"!==s){var u=e[s];0,n[s]=u}}}else $h(n,"x",e),$h(n,"y",e);var d=t.leaveTo;if(d){var p=og(e),h=Object(c["keys"])(d);for(o=0;o<h.length;o++){s=h[o];0,p[s]=d[s]}}}function ig(e,t,n){Qh(t,n,"position"),Qh(t,n,"scale"),Qh(t,n,"origin"),Jh(t,n,"x"),Jh(t,n,"y"),Jh(t,n,"scaleX"),Jh(t,n,"scaleY"),Jh(t,n,"originX"),Jh(t,n,"originY"),Jh(t,n,"rotation")}function ag(e,t,n,i,a){if(n){var r,o=e.style,s=n.enterFrom;if(a&&s){var l=Object(c["keys"])(s);!r&&(r=i.style={});for(var u=0;u<l.length;u++){var d=l[u];r[d]=s[d]}}if(!a&&o)if(n.transition){var p=Object(lt["r"])(n.transition);!r&&(r=i.style={});for(u=0;u<p.length;u++){d=p[u];var h=o[d];r[d]=h}}else if(e.getAnimationStyleProps&&Object(c["indexOf"])(t.transition,"style")>=0){var g=e.getAnimationStyleProps(),f=g?g.style:null;if(f){!r&&(r=i.style={});var y=Object(c["keys"])(n);for(u=0;u<y.length;u++){d=y[u];if(f[d]){h=o[d];r[d]=h}}}}var m=n.leaveTo;if(m){var v=Object(c["keys"])(m),b=og(e),x=b.style||(b.style={});for(u=0;u<v.length;u++){d=v[u];x[d]=m[d]}}}}function rg(e,t){return Object(c["isArrayLike"])(e)?e!==t:null!=e&&isFinite(e)}function og(e){var t=Lh(e);return t.leaveToProps||(t.leaveToProps={})}Object(c["keys"])(Dh).join(", ");var sg="emphasis",lg="normal",cg="blur",ug="select",dg=[lg,sg,cg,ug],pg={normal:["itemStyle"],emphasis:[sg,"itemStyle"],blur:[cg,"itemStyle"],select:[ug,"itemStyle"]},hg={normal:["label"],emphasis:[sg,"label"],blur:[cg,"label"],select:[ug,"label"]},gg="e\0\0",fg={normal:{},emphasis:{},blur:{},select:{}},yg={cartesian2d:Eh,geo:Rh,singleAxis:Bh,polar:Hh,calendar:Wh};function mg(e){return e instanceof u["b"]}function vg(e){return e instanceof In["c"]}function bg(e,t){t.copyTransform(e),vg(t)&&vg(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,mg(t)&&mg(e)&&t.setShape(e.shape))}var xg=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n,i){var a=this._data,r=e.getData(),o=this.group,s=Pg(e,r,t,n);a||o.removeAll(),r.diff(a).add((function(t){kg(n,null,t,s(t,i),e,o,r)})).remove((function(t){Zg(a.getItemGraphicEl(t),e,o)})).update((function(t,l){var c=a.getItemGraphicEl(l);kg(n,c,t,s(t,i),e,o,r)})).execute();var l=e.get("clip",!0)?Object($u["a"])(e.coordinateSystem,!1,e):null;l?o.setClipPath(l):o.removeClipPath(),this._data=r},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,i,a){var r=t.getData(),o=Pg(t,r,n,i);function s(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var l=e.start;l<e.end;l++){var c=kg(null,null,l,o(l,a),t,this.group,r);c&&c.traverse(s)}},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}(Ue["a"]),_g=xg;function Sg(e){var t,n=e.type;if("path"===n){var i=e.shape,a=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,r=qg(i);t=Rt["makePath"](r,null,a,i.layout||"center"),Lh(t).customPathData=r}else if("image"===n)t=new d["a"]({}),Lh(t).customImagePath=e.style.image;else if("text"===n)t=new ze["a"]({});else if("group"===n)t=new We["a"];else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var o=Rt["getShapeClass"](n);if(!o){var s="";0,Object(qu["c"])(s)}t=new o}return Lh(t).customGraphicType=n,t.name=e.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function wg(e,t,n,i,a,r,o,s){var l=a&&a.normal.cfg;l&&t.setTextConfig(l);var u=i&&i.style;if(u){if("text"===t.type){var d=u;Object(c["hasOwn"])(d,"textFill")&&(d.fill=d.textFill),Object(c["hasOwn"])(d,"textStroke")&&(d.stroke=d.textStroke)}var p=void 0,h=mg(t)?u.decal:null;e&&h&&(h.dirty=!0,p=Object(Mn["a"])(h,e)),u.__decalPattern=p}var g=Lh(t);g.userDuring=i.during;var f={},y={};eg("shape",t,i,f,o),tg("shape",i,y),ng(t,i,f,o),ig(t,i,y),eg("extra",t,i,f,o),tg("extra",i,y),ag(t,i,u,f,o),y.style=u,Mg(t,y),Ig(t,n,r,f,o),Og(t,i,s),u?t.dirty():t.markRedraw()}function Og(e,t,n){Object(c["hasOwn"])(t,"silent")&&(e.silent=t.silent),Object(c["hasOwn"])(t,"ignore")&&(e.ignore=t.ignore),vg(e)&&Object(c["hasOwn"])(t,"invisible")&&(e.invisible=t.invisible),mg(e)&&Object(c["hasOwn"])(t,"autoBatch")&&(e.autoBatch=t.autoBatch),n||Object(c["hasOwn"])(t,"info")&&(Lh(e).info=t.info)}function Mg(e,t){var n=e.isGroup?null:e,i=t.style;if(n&&i){n.useStyle(i);var a=i.__decalPattern;a&&(n.style.decal=a);for(var r=n.animators,o=0;o<r.length;o++){var s=r[o];"style"===s.targetName&&s.changeTarget(n.style)}}t&&(t.style=null,t&&e.attr(t),t.style=i)}function Ig(e,t,n,i,a){if(i){var r=Lh(e).userDuring,o=r?Object(c["bind"])(Dg,{el:e,userDuring:r}):null,s={dataIndex:t,isFrom:!0,during:o};a?Be["c"](e,i,n,s):Be["h"](e,i,n,s)}}var Ag={},jg={setTransform:function(e,t){return Ag.el[e]=t,this},getTransform:function(e){return Ag.el[e]},setShape:function(e,t){var n=Ag.el.shape||(Ag.el.shape={});return n[e]=t,Ag.isShapeDirty=!0,this},getShape:function(e){var t=Ag.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=Ag.el.style;return n&&(n[e]=t,Ag.isStyleDirty=!0),this},getStyle:function(e){var t=Ag.el.style;if(t)return t[e]},setExtra:function(e,t){var n=Ag.el.extra||(Ag.el.extra={});return n[e]=t,this},getExtra:function(e){var t=Ag.el.extra;if(t)return t[e]}};function Dg(){var e=this,t=e.el;if(t){var n=Lh(t).userDuring,i=e.userDuring;n===i?(Ag.el=t,Ag.isShapeDirty=!1,Ag.isStyleDirty=!1,i(jg),Ag.isShapeDirty&&t.dirtyShape&&t.dirtyShape(),Ag.isStyleDirty&&t.dirtyStyle&&t.dirtyStyle()):e.el=e.userDuring=null}}function Cg(e,t,n,i,a,r,o){var s=t.isGroup?null:t,l=a&&a[e].cfg;if(s){var c=s.ensureState(e);if(!1===i){var u=s.getState(e);u&&(u.style=null)}else c.style=i||null;l&&(c.textConfig=l),Object(Fe["G"])(s)}}function Tg(e,t,n){if(!e.isGroup){var i=e,a=n.currentZ,r=n.currentZLevel;i.z=a,i.zlevel=r;var o=t.z2;null!=o&&(i.z2=o||0);for(var s=0;s<dg.length;s++)Lg(i,t,dg[s])}}function Lg(e,t,n){var i,a=n===lg,r=a?t:Gg(t,n),o=r?r.z2:null;null!=o&&(i=a?e:e.ensureState(n),i.z2=o||0)}function Pg(e,t,n,i){var a=e.get("renderItem"),r=e.coordinateSystem,o={};r&&(o=r.prepareCustoms?r.prepareCustoms(r):yg[r.type](r));for(var s,l,u=Object(c["defaults"])({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:_,style:w,ordinalRawValue:S,styleEmphasis:O,visual:A,barLayout:j,currentSeriesIndices:D,font:C},o.api||{}),d={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:Ng(e.getData())},p={},h={},g={},f={},y=0;y<dg.length;y++){var m=dg[y];g[m]=e.getModel(pg[m]),f[m]=e.getModel(hg[m])}function v(e){return e===s?l||(l=t.getItemModel(e)):t.getItemModel(e)}function b(e,n){return t.hasItemOption?e===s?p[n]||(p[n]=v(e).getModel(pg[n])):v(e).getModel(pg[n]):g[n]}function x(e,n){return t.hasItemOption?e===s?h[n]||(h[n]=v(e).getModel(hg[n])):v(e).getModel(hg[n]):f[n]}return function(e,n){return s=e,l=null,p={},h={},a&&a(Object(c["defaults"])({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},d),u)};function _(e,n){return null==n&&(n=s),t.getStore().get(t.getDimensionIndex(e||0),n)}function S(e,n){null==n&&(n=s),e=e||0;var i=t.getDimensionInfo(e);if(!i){var a=t.getDimensionIndex(e);return a>=0?t.getStore().get(a,n):void 0}var r=t.get(i.name,n),o=i&&i.ordinalMeta;return o?o.categories[r]:r}function w(n,i){null==i&&(i=s);var a=t.getItemVisual(i,"style"),r=a&&a.fill,o=a&&a.opacity,l=b(i,lg).getItemStyle();null!=r&&(l.fill=r),null!=o&&(l.opacity=o);var u={inheritColor:Object(c["isString"])(r)?r:"#000"},d=x(i,lg),p=et["c"](d,null,u,!1,!0);p.text=d.getShallow("show")?Object(c["retrieve2"])(e.getFormattedLabel(i,lg),Object(xp["b"])(t,i)):null;var h=et["b"](d,u,!1);return I(n,l),l=Xh(l,p,h),n&&M(l,n),l.legacy=!0,l}function O(n,i){null==i&&(i=s);var a=b(i,sg).getItemStyle(),r=x(i,sg),o=et["c"](r,null,null,!0,!0);o.text=r.getShallow("show")?Object(c["retrieve3"])(e.getFormattedLabel(i,sg),e.getFormattedLabel(i,lg),Object(xp["b"])(t,i)):null;var l=et["b"](r,null,!0);return I(n,a),a=Xh(a,o,l),n&&M(a,n),a.legacy=!0,a}function M(e,t){for(var n in t)Object(c["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 A(e,n){if(null==n&&(n=s),Object(c["hasOwn"])(Ch,e)){var i=t.getItemVisual(n,"style");return i?i[Ch[e]]:null}if(Object(c["hasOwn"])(Th,e))return t.getItemVisual(n,e)}function j(e){if("cartesian2d"===r.type){var t=r.getBaseAxis();return Object(Qp["a"])(Object(c["defaults"])({axis:t},e))}}function D(){return n.getCurrentSeriesIndices()}function C(e){return et["d"](e,n)}}function Ng(e){var t={};return Object(c["each"])(e.dimensions,(function(n){var i=e.getDimensionInfo(n);if(!i.isExtraCoord){var a=i.coordDim,r=t[a]=t[a]||[];r[i.coordDimIndex]=e.getDimensionIndex(n)}})),t}function kg(e,t,n,i,a,r,o){if(i){var s=Eg(e,t,n,i,a,r,!0);return s&&o.setItemGraphicEl(n,s),s&&Object(Fe["o"])(s,i.focus,i.blurScope),s}r.remove(t)}function Eg(e,t,n,i,a,r,o){var s=-1,l=t;t&&Vg(t,i,a)&&(s=Object(c["indexOf"])(r.childrenRef(),t),t=null);var u=!t,d=t;d?d.clearStates():(d=Sg(i),l&&bg(l,d)),!1===i.morph?d.disableMorphing=!0:d.disableMorphing&&(d.disableMorphing=!1),fg.normal.cfg=fg.normal.conOpt=fg.emphasis.cfg=fg.emphasis.conOpt=fg.blur.cfg=fg.blur.conOpt=fg.select.cfg=fg.select.conOpt=null,fg.isLegacy=!1,zg(d,n,i,a,u,fg),Rg(d,n,i,a,u),wg(e,d,n,i,fg,a,u,!1);for(var p=0;p<dg.length;p++){var h=dg[p];if(h!==lg){var g=Gg(i,h),f=Hg(i,g,h);Cg(h,d,g,f,fg,o,!1)}}return Tg(d,i,a),"group"===i.type&&Wg(e,d,n,i,a),s>=0?r.replaceAt(d,s):r.add(d),d}function Vg(e,t,n){var i=Lh(e),a=t.type,r=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||null!=a&&a!==i.customGraphicType||"path"===a&&Kg(r)&&qg(r)!==i.customPathData||"image"===a&&Object(c["hasOwn"])(o,"image")&&o.image!==i.customImagePath}function Rg(e,t,n,i,a){var r=n.clipPath;if(!1===r)e&&e.getClipPath()&&e.removeClipPath();else if(r){var o=e.getClipPath();o&&Vg(o,r,i)&&(o=null),o||(o=Sg(r),e.setClipPath(o)),wg(null,o,t,r,null,i,a,!1)}}function zg(e,t,n,i,a,r){if(!e.isGroup){Bg(n,null,r),Bg(n,sg,r);var o=r.normal.conOpt,s=r.emphasis.conOpt,l=r.blur.conOpt,c=r.select.conOpt;if(null!=o||null!=s||null!=c||null!=l){var u=e.getTextContent();if(!1===o)u&&e.removeTextContent();else{o=r.normal.conOpt=o||{type:"text"},u?u.clearStates():(u=Sg(o),e.setTextContent(u)),wg(null,u,t,o,null,i,a,!0);for(var d=o&&o.style,p=0;p<dg.length;p++){var h=dg[p];if(h!==lg){var g=r[h].conOpt;Cg(h,u,g,Hg(o,g,h),null,!1,!0)}}d?u.dirty():u.markRedraw()}}}}function Bg(e,t,n){var i=t?Gg(e,t):e,a=t?Hg(e,i,sg):e.style,r=e.type,o=i?i.textConfig:null,s=e.textContent,l=s?t?Gg(s,t):s:null;if(a&&(n.isLegacy||Fh(a,r,!!o,!!l))){n.isLegacy=!0;var c=Uh(a,r,!t);!o&&c.textConfig&&(o=c.textConfig),!l&&c.textContent&&(l=c.textContent)}if(!t&&l){var u=l;!u.type&&(u.type="text")}var d=t?n[t]:n.normal;d.cfg=o,d.conOpt=l}function Gg(e,t){return t?e?e[t]:null:e}function Hg(e,t,n){var i=t&&t.style;return null==i&&n===sg&&e&&(i=e.styleEmphasis),i}function Wg(e,t,n,i,a){var r=i.children,o=r?r.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,c=!1===s;if(o||l||c)if(l)Fg({api:e,oldChildren:t.children()||[],newChildren:r||[],dataIndex:n,seriesModel:a,group:t});else{c&&t.removeAll();for(var u=0;u<o;u++)r[u]&&Eg(e,t.childAt(u),n,r[u],a,t,!1);for(var d=t.childCount()-1;d>=u;d--)Zg(t.childAt(d),a,t)}}function Fg(e){new Ca["a"](e.oldChildren,e.newChildren,Ug,Ug,e).add(Yg).update(Yg).remove(Xg).execute()}function Ug(e,t){var n=e&&e.name;return null!=n?n:gg+t}function Yg(e,t){var n=this.context,i=null!=e?n.newChildren[e]:null,a=null!=t?n.oldChildren[t]:null;Eg(n.api,a,n.dataIndex,i,n.seriesModel,n.group,!1)}function Xg(e){var t=this.context,n=t.oldChildren[e];Zg(n,t.seriesModel,t.group)}function Zg(e,t,n){if(e){var i=Lh(e).leaveToProps;i?Be["h"](e,i,t,{cb:function(){n.remove(e)}}):n.remove(e)}}function qg(e){return e&&(e.pathData||e.d)}function Kg(e){return e&&(Object(c["hasOwn"])(e,"pathData")||Object(c["hasOwn"])(e,"d"))}function Qg(e){e.registerChartView(_g),e.registerSeriesModel(Nh)}var Jg=n("7898"),$g=n("05ff"),ef=n("c5f7"),tf=n("d560"),nf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(b["b"])(t,e),t.prototype.makeElOption=function(e,t,n,i,a){var r=n.axis;"angle"===r.dim&&(this.animationThreshold=Math.PI/18);var o=r.polar,s=o.getOtherAxis(r),l=s.getExtent(),c=r.dataToCoord(t),u=i.get("type");if(u&&"none"!==u){var d=tf["b"](i),p=rf[u](r,o,c,l);p.style=d,e.graphicKey=p.type,e.pointer=p}var h=i.get(["label","margin"]),g=af(t,n,i,o,h);tf["c"](e,n,i,a,g)},t}(ef["a"]);function af(e,t,n,i,a){var r=t.axis,o=r.dataToCoord(e),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,c,u,d=i.getRadiusAxis().getExtent();if("radius"===r.dim){var p=qn["create"]();qn["rotate"](p,p,s),qn["translate"](p,p,[i.cx,i.cy]),l=Rt["applyTransform"]([o,-a],p);var h=t.getModel("axisLabel").get("rotate")||0,g=$t["a"].innerTextLayout(s,h*Math.PI/180,-1);c=g.textAlign,u=g.textVerticalAlign}else{var f=d[1];l=i.coordToPoint([f+a,o]);var y=i.cx,m=i.cy;c=Math.abs(l[0]-y)/f<.3?"center":l[0]>y?"left":"right",u=Math.abs(l[1]-m)/f<.3?"middle":l[1]>m?"top":"bottom"}return{position:l,align:c,verticalAlign:u}}var rf={line:function(e,t,n,i){return"angle"===e.dim?{type:"Line",shape:tf["f"](t.coordToPoint([i[0],n]),t.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,i){var a=Math.max(1,e.getBandWidth()),r=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:tf["h"](t.cx,t.cy,i[0],i[1],(-n-a/2)*r,(a/2-n)*r)}:{type:"Sector",shape:tf["h"](t.cx,t.cy,n-a/2,n+a/2,0,2*Math.PI)}}},of=nf,sf=n("9685"),lf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(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={zlevel:0,z:0,center:["50%","50%"],radius:"80%"},t}(Zt["a"]),cf=lf,uf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(b["b"])(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",lt["b"]).models[0]},t.type="polarAxis",t}(Zt["a"]);c["mixin"](uf,Xt["a"]);var df=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.type="angleAxis",t}(uf),pf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.type="radiusAxis",t}(uf),hf=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return Object(b["b"])(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(sn["a"]);hf.prototype.dataToRadius=sn["a"].prototype.dataToCoord,hf.prototype.radiusToData=sn["a"].prototype.coordToData;var gf=hf,ff=Object(lt["o"])(),yf=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return Object(b["b"])(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,i=n.getExtent(),a=n.count();if(i[1]-i[0]<1)return 0;var r=i[0],o=e.dataToCoord(r+1)-e.dataToCoord(r),s=Math.abs(o),l=x["e"](null==r?"":r+"",t.getFont(),"center","top"),c=Math.max(l.height,7),u=c/s;isNaN(u)&&(u=1/0);var d=Math.max(0,Math.floor(u)),p=ff(e.model),h=p.lastAutoInterval,g=p.lastTickCount;return null!=h&&null!=g&&Math.abs(h-d)<=1&&Math.abs(g-a)<=1&&h>d?d=h:(p.lastTickCount=a,p.lastAutoInterval=d),d},t}(sn["a"]);yf.prototype.dataToAngle=sn["a"].prototype.dataToCoord,yf.prototype.angleToData=sn["a"].prototype.coordToData;var mf=yf,vf=["radius","angle"],bf=function(){function e(e){this.dimensions=vf,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new gf,this._angleAxis=new mf,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===e&&t.push(n),i.scale.type===e&&t.push(i),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),r=Math.min(a[0],a[1]),o=Math.max(a[0],a[1]);i.inverse?r=o-360:o=r+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;var l=Math.atan2(-n,t)/Math.PI*180,c=l<r?1:-1;while(l<r||l>o)l+=360*c;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI,i=Math.cos(n)*t+this.cx,a=-Math.sin(n)*t+this.cy;return[i,a]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var i=e.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,i=t-this.cy,a=n*n+i*i,r=this.r,o=this.r0;return a<=r*r&&a>=o*o}}},e.prototype.convertToPixel=function(e,t,n){var i=xf(t);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=xf(t);return i===this?this.pointToData(n):null},e}();function xf(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var _f=bf;function Sf(e,t,n){var i=t.get("center"),a=n.getWidth(),r=n.getHeight();e.cx=Object(Te["p"])(i[0],a),e.cy=Object(Te["p"])(i[1],r);var o=e.getRadiusAxis(),s=Math.min(a,r)/2,l=t.get("radius");null==l?l=[0,"100%"]:c["isArray"](l)||(l=[0,l]);var u=[Object(Te["p"])(l[0],s),Object(Te["p"])(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function wf(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();c["each"](Object(dn["d"])(t,"radius"),(function(e){a.scale.unionExtentFromData(t,e)})),c["each"](Object(dn["d"])(t,"angle"),(function(e){i.scale.unionExtentFromData(t,e)}))}})),Object(dn["i"])(i.scale,i.model),Object(dn["i"])(a.scale,a.model),"category"===i.type&&!i.onBand){var r=i.getExtent(),o=360/i.scale.count();i.inverse?r[1]+=o:r[1]-=o,i.setExtent(r[0],r[1])}}function Of(e){return"angleAxis"===e.mainType}function Mf(e,t){if(e.type=t.get("type"),e.scale=Object(dn["a"])(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),Of(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 If={dimensions:vf,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,i){var a=new _f(i+"");a.update=wf;var r=a.getRadiusAxis(),o=a.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");Mf(r,s),Mf(o,l),Sf(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",lt["b"]).models[0];0,e.coordinateSystem=t.coordinateSystem}})),n}},Af=If,jf=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Df(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 Cf(e){var t=e.getRadiusAxis();return t.inverse?0:1}function Tf(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 Lf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return Object(b["b"])(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,i=n.polar,a=i.getRadiusAxis().getExtent(),r=n.getTicksCoords(),o=n.getMinorTicksCoords(),s=c["map"](n.getViewLabels(),(function(e){e=c["clone"](e);var t=n.scale,i="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(i),e}));Tf(s),Tf(r),c["each"](jf,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||Pf[t](this.group,e,i,r,o,a,s)}),this)}},t.type="angleAxis",t}($g["a"]),Pf={axisLine:function(e,t,n,i,a,r){var o,s=t.getModel(["axisLine","lineStyle"]),l=Cf(n),c=l?0:1;o=0===r[c]?new en["a"]({shape:{cx:n.cx,cy:n.cy,r:r[l]},style:s.getLineStyle(),z2:1,silent:!0}):new tn["a"]({shape:{cx:n.cx,cy:n.cy,r:r[l],r0:r[c]},style:s.getLineStyle(),z2:1,silent:!0}),o.style.fill=null,e.add(o)},axisTick:function(e,t,n,i,a,r){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=r[Cf(n)],u=c["map"](i,(function(e){return new To["a"]({shape:Df(n,[l,l+s],e.coord)})}));e.add(Rt["mergePath"](u,{style:c["defaults"](o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,i,a,r){if(a.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=r[Cf(n)],d=[],p=0;p<a.length;p++)for(var h=0;h<a[p].length;h++)d.push(new To["a"]({shape:Df(n,[u,u+l],a[p][h].coord)}));e.add(Rt["mergePath"](d,{style:c["defaults"](s.getModel("lineStyle").getLineStyle(),c["defaults"](o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,i,a,r,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),d=t.get("triggerEvent");c["each"](o,(function(i,a){var o=l,p=i.tickValue,h=r[Cf(n)],g=n.coordToPoint([h+u,i.coord]),f=n.cx,y=n.cy,m=Math.abs(g[0]-f)/h<.3?"center":g[0]>f?"left":"right",v=Math.abs(g[1]-y)/h<.3?"middle":g[1]>y?"top":"bottom";if(s&&s[p]){var b=s[p];c["isObject"](b)&&b.textStyle&&(o=new Yt["a"](b.textStyle,l,l.ecModel))}var x=new ze["a"]({silent:$t["a"].isLabelSilent(t),style:Object(et["c"])(o,{x:g[0],y:g[1],fill:o.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:m,verticalAlign:v})});if(e.add(x),d){var _=$t["a"].makeAxisEventDataBase(t);_.targetType="axisLabel",_.value=i.rawLabel,Object(wt["a"])(x).eventData=_}}),this)},splitLine:function(e,t,n,i,a,r){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var d=[],p=0;p<i.length;p++){var h=u++%l.length;d[h]=d[h]||[],d[h].push(new To["a"]({shape:Df(n,r,i[p].coord)}))}for(p=0;p<d.length;p++)e.add(Rt["mergePath"](d[p],{style:c["defaults"]({stroke:l[p%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,i,a,r){if(a.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],c=0;c<a.length;c++)for(var u=0;u<a[c].length;u++)l.push(new To["a"]({shape:Df(n,r,a[c][u].coord)}));e.add(Rt["mergePath"](l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,i,a,r){if(i.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var d=[],p=Math.PI/180,h=-i[0].coord*p,g=Math.min(r[0],r[1]),f=Math.max(r[0],r[1]),y=t.get("clockwise"),m=1,v=i.length;m<=v;m++){var b=m===v?i[0].coord:i[m].coord,x=u++%l.length;d[x]=d[x]||[],d[x].push(new He["a"]({shape:{cx:n.cx,cy:n.cy,r0:g,r:f,startAngle:h,endAngle:-b*p,clockwise:y},silent:!0})),h=-b*p}for(m=0;m<d.length;m++)e.add(Rt["mergePath"](d[m],{style:c["defaults"]({fill:l[m%l.length]},s.getAreaStyle()),silent:!0}))}}},Nf=Lf,kf=["axisLine","axisTickLabel","axisName"],Ef=["splitLine","splitArea","minorSplitLine"],Vf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return Object(b["b"])(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=this._axisGroup,i=this._axisGroup=new We["a"];this.group.add(i);var a=e.axis,r=a.polar,o=r.getAngleAxis(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=o.getExtent()[0],d=a.getExtent(),p=zf(r,e,u),h=new $t["a"](e,p);c["each"](kf,h.add,h),i.add(h.getGroup()),Rt["groupTransition"](n,i,e),c["each"](Ef,(function(t){e.get([t,"show"])&&!a.scale.isBlank()&&Rf[t](this.group,e,r,u,d,s,l)}),this)}},t.type="radiusAxis",t}($g["a"]),Rf={splitLine:function(e,t,n,i,a,r){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var d=[],p=0;p<r.length;p++){var h=u++%l.length;d[h]=d[h]||[],d[h].push(new en["a"]({shape:{cx:n.cx,cy:n.cy,r:r[p].coord}}))}for(p=0;p<d.length;p++)e.add(Rt["mergePath"](d[p],{style:c["defaults"]({stroke:l[p%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,i,a,r,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],d=0;d<o.length;d++)for(var p=0;p<o[d].length;p++)u.push(new en["a"]({shape:{cx:n.cx,cy:n.cy,r:o[d][p].coord}}));e.add(Rt["mergePath"](u,{style:c["defaults"]({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,i,a,r){if(r.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var d=[],p=r[0].coord,h=1;h<r.length;h++){var g=u++%l.length;d[g]=d[g]||[],d[g].push(new He["a"]({shape:{cx:n.cx,cy:n.cy,r0:p,r:r[h].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),p=r[h].coord}for(h=0;h<d.length;h++)e.add(Rt["mergePath"](d[h],{style:c["defaults"]({fill:l[h%l.length]},s.getAreaStyle()),silent:!0}))}}};function zf(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 Bf=Vf,Gf=n("ea14");function Hf(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function Wf(e,t){return t.dim+e.model.componentIndex}function Ff(e,t,n){var i={},a=Uf(c["filter"](t.getSeriesByType(e),(function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type})));t.eachSeriesByType(e,(function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),o=Wf(n,r),s=Hf(e),l=a[o][s],c=l.offset,u=l.width,d=n.getOtherAxis(r),p=e.coordinateSystem.cx,h=e.coordinateSystem.cy,g=e.get("barMinHeight")||0,f=e.get("barMinAngle")||0;i[s]=i[s]||[];for(var y=t.mapDimension(d.dim),m=t.mapDimension(r.dim),v=Object(Gf["c"])(t,y),b="radius"!==r.dim||!e.get("roundCap",!0),x=d.dataToCoord(0),_=0,S=t.count();_<S;_++){var w=t.get(y,_),O=t.get(m,_),M=w>=0?"p":"n",I=x;v&&(i[s][O]||(i[s][O]={p:x,n:x}),I=i[s][O][M]);var A=void 0,j=void 0,D=void 0,C=void 0;if("radius"===d.dim){var T=d.dataToCoord(w)-x,L=r.dataToCoord(O);Math.abs(T)<g&&(T=(T<0?-1:1)*g),A=I,j=I+T,D=L-c,C=D-u,v&&(i[s][O][M]=j)}else{var P=d.dataToCoord(w,b)-x,N=r.dataToCoord(O);Math.abs(P)<f&&(P=(P<0?-1:1)*f),A=N+c,j=A+u,D=I,C=I+P,v&&(i[s][O][M]=C)}t.setItemLayout(_,{cx:p,cy:h,r0:A,r:j,startAngle:-D*Math.PI/180,endAngle:-C*Math.PI/180,clockwise:D>=C})}}}))}function Uf(e){var t={};c["each"](e,(function(e,n){var i=e.getData(),a=e.coordinateSystem,r=a.getBaseAxis(),o=Wf(a,r),s=r.getExtent(),l="category"===r.type?r.getBandWidth():Math.abs(s[1]-s[0])/i.count(),c=t[o]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},u=c.stacks;t[o]=c;var d=Hf(e);u[d]||c.autoWidthCount++,u[d]=u[d]||{width:0,maxWidth:0};var p=Object(Te["p"])(e.get("barWidth"),l),h=Object(Te["p"])(e.get("barMaxWidth"),l),g=e.get("barGap"),f=e.get("barCategoryGap");p&&!u[d].width&&(p=Math.min(c.remainedWidth,p),u[d].width=p,c.remainedWidth-=p),h&&(u[d].maxWidth=h),null!=g&&(c.gap=g),null!=f&&(c.categoryGap=f)}));var n={};return c["each"](t,(function(e,t){n[t]={};var i=e.stacks,a=e.bandWidth,r=Object(Te["p"])(e.categoryGap,a),o=Object(Te["p"])(e.gap,1),s=e.remainedWidth,l=e.autoWidthCount,u=(s-r)/(l+(l-1)*o);u=Math.max(u,0),c["each"](i,(function(e,t){var n=e.maxWidth;n&&n<u&&(n=Math.min(n,s),e.width&&(n=Math.min(n,e.width)),s-=n,e.width=n,l--)})),u=(s-r)/(l+(l-1)*o),u=Math.max(u,0);var d,p=0;c["each"](i,(function(e,t){e.width||(e.width=u),d=e,p+=e.width*(1+o)})),d&&(p-=d.width*o);var h=-p/2;c["each"](i,(function(e,i){n[t][i]=n[t][i]||{offset:h,width:e.width},h+=e.width*(1+o)}))})),n}var Yf=Ff,Xf={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},Zf={splitNumber:5},qf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.type="polar",t}(nn["a"]);function Kf(e){Object(i["a"])(sf["a"]),$g["a"].registerAxisPointerClass("PolarAxisPointer",of),e.registerCoordinateSystem("polar",Af),e.registerComponentModel(cf),e.registerComponentView(qf),Object(El["a"])(e,"angle",df,Xf),Object(El["a"])(e,"radius",pf,Zf),e.registerComponentView(Nf),e.registerComponentView(Bf),e.registerLayout(Object(c["curry"])(Yf,"bar"))}function Qf(e,t){t=t||{};var n=e.coordinateSystem,i=e.axis,a={},r=i.position,o=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};a.position=["vertical"===o?u.vertical[r]:l[0],"horizontal"===o?u.horizontal[r]:l[3]];var d={horizontal:0,vertical:1};a.rotation=Math.PI/2*d[o];var p={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=p[r],e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),c["retrieve"](t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var h=t.rotate;return null==h&&(h=e.get(["axisLabel","rotate"])),a.labelRotation="top"===r?-h:h,a.z2=1,a}var Jf=n("a631"),$f=["axisLine","axisTickLabel","axisName"],ey=["splitArea","splitLine"],ty=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return Object(b["b"])(t,e),t.prototype.render=function(t,n,i,a){var r=this.group;r.removeAll();var o=this._axisGroup;this._axisGroup=new We["a"];var s=Qf(t),l=new $t["a"](t,s);c["each"]($f,l.add,l),r.add(this._axisGroup),r.add(l.getGroup()),c["each"](ey,(function(e){t.get([e,"show"])&&ny[e](this,this.group,this._axisGroup,t)}),this),Rt["groupTransition"](o,this._axisGroup,t),e.prototype.render.call(this,t,n,i,a)},t.prototype.remove=function(){Object(Jf["b"])(this)},t.type="singleAxis",t}($g["a"]),ny={splitLine:function(e,t,n,i){var a=i.axis;if(!a.scale.isBlank()){var r=i.getModel("splitLine"),o=r.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=i.coordinateSystem.getRect(),u=a.isHorizontal(),d=[],p=0,h=a.getTicksCoords({tickModel:r}),g=[],f=[],y=0;y<h.length;++y){var m=a.toGlobalCoord(h[y].coord);u?(g[0]=m,g[1]=l.y,f[0]=m,f[1]=l.y+l.height):(g[0]=l.x,g[1]=m,f[0]=l.x+l.width,f[1]=m);var v=p++%s.length;d[v]=d[v]||[],d[v].push(new To["a"]({subPixelOptimize:!0,shape:{x1:g[0],y1:g[1],x2:f[0],y2:f[1]},silent:!0}))}var b=o.getLineStyle(["color"]);for(y=0;y<d.length;++y)t.add(Rt["mergePath"](d[y],{style:c["defaults"]({stroke:s[y%s.length]},b),silent:!0}))}},splitArea:function(e,t,n,i){Object(Jf["a"])(e,n,i,i)}},iy=ty,ay=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(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}(Zt["a"]);Object(c["mixin"])(ay,Xt["a"].prototype);var ry=ay,oy=function(e){function t(t,n,i,a,r){var o=e.call(this,t,n,i)||this;return o.type=a||"value",o.position=r||"bottom",o}return Object(b["b"])(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}(sn["a"]),sy=oy,ly=["single"],cy=function(){function e(e,t,n){this.type="single",this.dimension="single",this.dimensions=ly,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 sy(i,dn["a"](e),[0,0],e.get("type"),e.get("position")),r="category"===a.type;a.onBand=r&&e.get("boundaryGap"),a.inverse=e.get("inverse"),a.orient=e.get("orient"),e.axis=a,a.model=e,a.coordinateSystem=this,this._axis=a},e.prototype.update=function(e,t){e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();Object(c["each"])(t.mapDimensionsAll(this.dimension),(function(e){this._axis.scale.unionExtentFromData(t,e)}),this),dn["i"](this._axis.scale,this._axis.model)}}),this)},e.prototype.resize=function(e,t){this._rect=Object(Le["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.reverse?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=uy(t);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=uy(t);return i===this?this.pointToData(n):null},e}();function uy(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var dy=cy;function py(e,t){var n=[];return e.eachComponent("singleAxis",(function(i,a){var r=new dy(i,e,t);r.name="single_"+a,r.resize(i,t),i.coordinateSystem=r,n.push(r)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",lt["b"]).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n}var hy={create:py,dimensions:ly},gy=hy,fy=["x","y"],yy=["width","height"],my=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(b["b"])(t,e),t.prototype.makeElOption=function(e,t,n,i,a){var r=n.axis,o=r.coordinateSystem,s=xy(o,1-by(r)),l=o.dataToPoint(t)[0],c=i.get("type");if(c&&"none"!==c){var u=tf["b"](i),d=vy[c](r,l,s);d.style=u,e.graphicKey=d.type,e.pointer=d}var p=Qf(n);tf["a"](t,e,p,n,i,a)},t.prototype.getHandleTransform=function(e,t,n){var i=Qf(t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var a=tf["d"](t.axis,e,i);return{x:a[0],y:a[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var a=n.axis,r=a.coordinateSystem,o=by(a),s=xy(r,o),l=[e.x,e.y];l[o]+=t[o],l[o]=Math.min(s[1],l[o]),l[o]=Math.max(s[0],l[o]);var c=xy(r,1-o),u=(c[1]+c[0])/2,d=[u,u];return d[o]=l[o],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},t}(ef["a"]),vy={line:function(e,t,n){var i=tf["f"]([t,n[0]],[t,n[1]],by(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:tf["g"]([t-i/2,n[0]],[i,a],by(e))}}};function by(e){return e.isHorizontal()?0:1}function xy(e,t){var n=e.getRect();return[n[fy[t]],n[fy[t]]+n[yy[t]]]}var _y=my,Sy=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.type="single",t}(nn["a"]);function wy(e){Object(i["a"])(sf["a"]),$g["a"].registerAxisPointerClass("SingleAxisPointer",_y),e.registerComponentView(Sy),e.registerComponentView(iy),e.registerComponentModel(ry),Object(El["a"])(e,"single",ry,ry.defaultOption),e.registerCoordinateSystem("single",gy)}var Oy=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.init=function(t,n,i){var a=Object(Le["f"])(t);e.prototype.init.apply(this,arguments),My(t,a)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),My(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Zt["a"]);function My(e,t){var n,i=e.cellSize;n=c["isArray"](i)?i:e.cellSize=[i,i],1===n.length&&(n[1]=n[0]);var a=c["map"]([0,1],(function(e){return Object(Le["j"])(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));Object(Le["h"])(e,t,{type:"box",ignoreSize:a})}var Iy=Oy,Ay={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},jy={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},Dy=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll();var a=e.coordinateSystem,r=a.getRangeInfo(),o=a.getOrient();this._renderDayRect(e,r,i),this._renderLines(e,r,o,i),this._renderYearText(e,r,o,i),this._renderMonthText(e,o,i),this._renderWeekText(e,r,o,i)},t.prototype._renderDayRect=function(e,t,n){for(var i=e.coordinateSystem,a=e.getModel("itemStyle").getItemStyle(),r=i.getCellWidth(),o=i.getCellHeight(),s=t.start.time;s<=t.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,c=new Da["a"]({shape:{x:l[0],y:l[1],width:r,height:o},cursor:"default",style:a});n.add(c)}},t.prototype._renderLines=function(e,t,n,i){var a=this,r=e.coordinateSystem,o=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=t.start,u=0;c.time<=t.end.time;u++){p(c.formatedDate),0===u&&(c=r.getDateInfo(t.start.y+"-"+t.start.m));var d=c.date;d.setMonth(d.getMonth()+1),c=r.getDateInfo(d)}function p(t){a._firstDayOfMonth.push(r.getDateInfo(t)),a._firstDayPoints.push(r.dataToRect([t],!1).tl);var l=a._getLinePointsOfOneWeek(e,t,n);a._tlpoints.push(l[0]),a._blpoints.push(l[l.length-1]),s&&a._drawSplitline(l,o,i)}p(r.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(a._getEdgesPoints(a._tlpoints,l,n),o,i),s&&this._drawSplitline(a._getEdgesPoints(a._blpoints,l,n),o,i)},t.prototype._getEdgesPoints=function(e,t,n){var i=[e[0].slice(),e[e.length-1].slice()],a="horizontal"===n?0:1;return i[0][a]=i[0][a]-t/2,i[1][a]=i[1][a]+t/2,i},t.prototype._drawSplitline=function(e,t,n){var i=new Ge["a"]({z2:20,shape:{points:e},style:t});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var i=e.coordinateSystem,a=i.getDateInfo(t),r=[],o=0;o<7;o++){var s=i.getNextNDay(a.time,o),l=i.dataToRect([s.time],!1);r[2*s.day]=l.tl,r[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return r},t.prototype._formatterLabel=function(e,t){return"string"===typeof e&&e?Ga["g"](e,t):"function"===typeof e?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,i,a){var r=t[0],o=t[1],s=["center","bottom"];"bottom"===i?(o+=a,s=["center","top"]):"left"===i?r-=a:"right"===i?(r+=a,s=["center","top"]):o-=a;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:r,y:o,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,i){var a=e.getModel("yearLabel");if(a.get("show")){var r=a.get("margin"),o=a.get("position");o||(o="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,c=(s[0][1]+s[1][1])/2,u="horizontal"===n?0:1,d={top:[l,s[u][1]],bottom:[l,s[1-u][1]],left:[s[1-u][0],c],right:[s[u][0],c]},p=t.start.y;+t.end.y>+t.start.y&&(p=p+"-"+t.end.y);var h=a.get("formatter"),g={start:t.start.y,end:t.end.y,nameMap:p},f=this._formatterLabel(h,g),y=new ze["a"]({z2:30,style:Object(et["c"])(a,{text:f})});y.attr(this._yearTextPositionControl(y,d[o],n,o,r)),i.add(y)}},t.prototype._monthTextPositionControl=function(e,t,n,i,a){var r="left",o="top",s=e[0],l=e[1];return"horizontal"===n?(l+=a,t&&(r="center"),"start"===i&&(o="bottom")):(s+=a,t&&(o="middle"),"start"===i&&(r="right")),{x:s,y:l,align:r,verticalAlign:o}},t.prototype._renderMonthText=function(e,t,n){var i=e.getModel("monthLabel");if(i.get("show")){var a=i.get("nameMap"),r=i.get("margin"),o=i.get("position"),s=i.get("align"),l=[this._tlpoints,this._blpoints];c["isString"](a)&&(a=Ay[a.toUpperCase()]||[]);var u="start"===o?0:1,d="horizontal"===t?0:1;r="start"===o?-r:r;for(var p="center"===s,h=0;h<l[u].length-1;h++){var g=l[u][h].slice(),f=this._firstDayOfMonth[h];if(p){var y=this._firstDayPoints[h];g[d]=(y[d]+l[0][h+1][d])/2}var m=i.get("formatter"),v=a[+f.m-1],b={yyyy:f.y,yy:(f.y+"").slice(2),MM:f.m,M:+f.m,nameMap:v},x=this._formatterLabel(m,b),_=new ze["a"]({z2:30,style:c["extend"](Object(et["c"])(i,{text:x}),this._monthTextPositionControl(g,p,t,o,r))});n.add(_)}}},t.prototype._weekTextPositionControl=function(e,t,n,i,a){var r="center",o="middle",s=e[0],l=e[1],c="start"===n;return"horizontal"===t?(s=s+i+(c?1:-1)*a[0]/2,r=c?"right":"left"):(l=l+i+(c?1:-1)*a[1]/2,o=c?"bottom":"top"),{x:s,y:l,align:r,verticalAlign:o}},t.prototype._renderWeekText=function(e,t,n,i){var a=e.getModel("dayLabel");if(a.get("show")){var r=e.coordinateSystem,o=a.get("position"),s=a.get("nameMap"),l=a.get("margin"),u=r.getFirstDayOfWeek();c["isString"](s)&&(s=jy[s.toUpperCase()]||[]);var d=r.getNextNDay(t.end.time,7-t.lweek).time,p=[r.getCellWidth(),r.getCellHeight()];l=Te["p"](l,Math.min(p[1],p[0])),"start"===o&&(d=r.getNextNDay(t.start.time,-(7+t.fweek)).time,l=-l);for(var h=0;h<7;h++){var g=r.getNextNDay(d,h),f=r.dataToRect([g.time],!1).center,y=h;y=Math.abs((h+u)%7);var m=new ze["a"]({z2:30,style:c["extend"](Object(et["c"])(a,{text:s[y]}),this._weekTextPositionControl(f,n,o,l,p))});i.add(m)}}},t.type="calendar",t}(nn["a"]),Cy=Dy,Ty=864e5,Ly=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=Te["o"](e);var t=e.getFullYear(),n=e.getMonth()+1,i=n<10?"0"+n:""+n,a=e.getDate(),r=a<10?"0"+a:""+a,o=e.getDay();return o=Math.abs((o+7-this.getFirstDayOfWeek())%7),{y:t+"",m:i,d:r,day:o,time:e.getTime(),formatedDate:t+"-"+i+"-"+r,date:e}},e.prototype.getNextNDay=function(e,t){return t=t||0,0===t||(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t)),this.getDateInfo(e)},e.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],a=this._model.getCellSize().slice(),r=this._model.getBoxLayoutParams(),o="horizontal"===this._orient?[n,7]:[7,n];c["each"]([0,1],(function(e){u(a,e)&&(r[i[e]]=a[e]*o[e])}));var s={width:t.getWidth(),height:t.getHeight()},l=this._rect=Le["g"](r,s);function u(e,t){return null!=e[t]&&"auto"!==e[t]}c["each"]([0,1],(function(e){u(a,e)||(a[e]=l[i[e]]/o[e])})),this._sw=a[0],this._sh=a[1]},e.prototype.dataToPoint=function(e,t){c["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+Ty))return[NaN,NaN];var r=n.day,o=this._getRangeInfo([i.start.time,a]).nthWeek;return"vertical"===this._orient?[this._rect.x+r*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]:[this._rect.x+o*this._sw+this._sw/2,this._rect.y+r*this._sh+this._sh/2]},e.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},e.prototype.dataToRect=function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,i):this._getDateByWeeksAndDay(t,n-1,i)},e.prototype.convertToPixel=function(e,t,n){var i=Py(t);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=Py(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(c["isArray"](t)&&1===t.length&&(t=t[0]),c["isArray"](t))e=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),a=i.date;a.setMonth(a.getMonth()+1);var r=this.getNextNDay(a,-1);e=[i.formatedDate,r.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return t;var o=this._getRangeInfo(e);return o.start.time>o.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var i=Math.floor(n[1].time/Ty)-Math.floor(n[0].time/Ty)+1,a=new Date(n[0].time),r=a.getDate(),o=n[1].date.getDate();a.setDate(r+i-1);var s=a.getDate();if(s!==o){var l=a.getTime()-n[1].time>0?1:-1;while((s=a.getDate())!==o&&(a.getTime()-n[1].time)*l>0)i-=l,a.setDate(s-l)}var c=Math.floor((i+n[0].day+6)/7),u=t?1-c:c-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:c,nthWeek:u,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var i=this._getRangeInfo(n);if(e>i.weeks||0===e&&t<i.fweek||e===i.weeks&&t>i.lweek)return null;var a=7*(e-1)-i.fweek+t,r=new Date(i.start.time);return r.setDate(+i.start.d+a),this.getDateInfo(r)},e.create=function(t,n){var i=[];return t.eachComponent("calendar",(function(a){var r=new e(a,t,n);i.push(r),a.coordinateSystem=r})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("calendarIndex")||0])})),i},e.dimensions=["time","value"],e}();function Py(e){var t=e.calendarModel,n=e.seriesModel,i=t?t.coordinateSystem:n?n.coordinateSystem:null;return i}var Ny=Ly;function ky(e){e.registerComponentModel(Iy),e.registerComponentView(Cy),e.registerCoordinateSystem("calendar",Ny)}var Ey=lt["o"](),Vy={path:null,compoundPath:null,group:We["a"],image:d["a"],text:ze["a"]},Ry=function(e){var t=e.graphic;c["isArray"](t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])},zy=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return Object(b["b"])(t,e),t.prototype.mergeOption=function(t,n){var i=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=i},t.prototype.optionUpdated=function(e,t){var n=this.option,i=(t?n:e).elements,a=n.elements=t?[]:n.elements,r=[];this._flatten(i,r,null);var o=lt["q"](a,r,"normalMerge"),s=this._elOptionsToUpdate=[];c["each"](o,(function(e,t){var n=e.newOption;n&&(s.push(n),Uy(e,n),Yy(a,t,n),Xy(a[t],n))}),this);for(var l=a.length-1;l>=0;l--)null==a[l]?a.splice(l,1):delete a[l].$action},t.prototype._flatten=function(e,t,n){c["each"](e,(function(e){if(e){n&&(e.parentOption=n),t.push(e);var i=e.children;"group"===e.type&&i&&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}(Zt["a"]),By=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.init=function(){this._elMap=c["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;c["each"](t,(function(t){var a=lt["e"](t.id,null),r=null!=a?n.get(a):null,o=lt["e"](t.parentId,null),s=null!=o?n.get(o):i,l=t.type,c=t.style;"text"===l&&c&&t.hv&&t.hv[1]&&(c.textVerticalAlign=c.textBaseline=c.verticalAlign=c.align=null);var u=t.textContent,d=t.textConfig;if(c&&Fh(c,l,!!d,!!u)){var p=Uh(c,l,!0);!d&&p.textConfig&&(d=t.textConfig=p.textConfig),!u&&p.textContent&&(u=p.textContent)}var h=Wy(t);var g=t.$action||"merge";"merge"===g?r?r.attr(h):Gy(a,s,h,n):"replace"===g?(Hy(r,n),Gy(a,s,h,n)):"remove"===g&&Hy(r,n);var f=n.get(a);if(f&&u)if("merge"===g){var y=f.getTextContent();y?y.attr(u):f.setTextContent(new ze["a"](u))}else"replace"===g&&f.setTextContent(new ze["a"](u));if(f){var m=Ey(f);m.__ecGraphicWidthOption=t.width,m.__ecGraphicHeightOption=t.height,Zy(f,e,t),Rt["setTooltipConfig"]({el:f,componentModel:e,itemName:f.name,itemTooltipOption:t.tooltip})}}))}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,i=this.group,a=this._elMap,r=t.getWidth(),o=t.getHeight(),s=0;s<n.length;s++){var l=n[s],c=lt["e"](l.id,null),u=null!=c?a.get(c):null;if(u&&u.isGroup){var d=u.parent,p=d===i,h=Ey(u),g=Ey(d);h.__ecGraphicWidth=Object(Te["p"])(h.__ecGraphicWidthOption,p?r:g.__ecGraphicWidth)||0,h.__ecGraphicHeight=Object(Te["p"])(h.__ecGraphicHeightOption,p?o:g.__ecGraphicHeight)||0}}for(s=n.length-1;s>=0;s--){l=n[s],c=lt["e"](l.id,null),u=null!=c?a.get(c):null;if(u){d=u.parent,g=Ey(d);var f=d===i?{width:r,height:o}:{width:g.__ecGraphicWidth,height:g.__ecGraphicHeight};Le["i"](u,l,f,null,{hv:l.hv,boundingMode:l.bounding})}}},t.prototype._clear=function(){var e=this._elMap;e.each((function(t){Hy(t,e)})),this._elMap=c["createHashMap"]()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(nn["a"]);function Gy(e,t,n,i){var a=n.type;var r=c["hasOwn"](Vy,a)?Vy[a]:Rt["getShapeClass"](a);var o=new r(n);t.add(o),i.set(e,o),Ey(o).__ecGraphicId=e}function Hy(e,t){var n=e&&e.parent;n&&("group"===e.type&&e.traverse((function(e){Hy(e,t)})),t.removeKey(Ey(e).__ecGraphicId),n.remove(e))}function Wy(e){return e=c["extend"]({},e),c["each"](["id","parentId","$action","hv","bounding","textContent"].concat(Le["a"]),(function(t){delete e[t]})),e}function Fy(e,t){var n;return c["each"](t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}function Uy(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 Yy(e,t,n){var i=c["extend"]({},n),a=e[t],r=n.$action||"merge";"merge"===r?a?(c["merge"](a,i,!0),Le["h"](a,i,{ignoreSize:!0}),Le["c"](n,a)):e[t]=i:"replace"===r?e[t]=i:"remove"===r&&a&&(e[t]=null)}function Xy(e,t){if(e&&(e.hv=t.hv=[Fy(t,["left","right"]),Fy(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)}}function Zy(e,t,n){var i=Object(wt["a"])(e).eventData;e.silent||e.ignore||i||(i=Object(wt["a"])(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),i&&(i.info=n.info)}function qy(e){e.registerComponentModel(zy),e.registerComponentView(By),e.registerPreprocessor(Ry)}var Ky=n("4790"),Qy=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.type="dataZoom.select",t}(Ky["a"]),Jy=Qy,$y=n("c966"),em=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.type="dataZoom.select",t}($y["a"]),tm=em,nm=n("5ad0");function im(e){e.registerComponentModel(Jy),e.registerComponentView(tm),Object(nm["a"])(e)}var am=function(){function e(){}return e}(),rm={};function om(e,t){rm[e]=t}function sm(e){return rm[e]}var lm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;c["each"](this.option.feature,(function(e,n){var i=sm(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),c["merge"](e,i.defaultOption))}))},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(Zt["a"]),cm=lm,um=n("563d"),dm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n,i){var a=this.group;if(a.removeAll(),e.get("show")){var r=+e.get("itemSize"),o=e.get("feature")||{},s=this._features||(this._features={}),l=[];c["each"](o,(function(e,t){l.push(t)})),new Ca["a"](this._featureNames||[],l).add(u).update(u).remove(c["curry"](u,null)).execute(),this._featureNames=l,um["a"](a,e,n),a.add(um["b"](a.getBoundingRect(),e)),a.eachChild((function(e){var t=e.__title,i=e.ensureState("emphasis"),o=i.textConfig||(i.textConfig={}),s=e.getTextContent(),l=s&&s.states.emphasis;if(l&&!c["isFunction"](l)&&t){var u=l.style||(l.style={}),d=x["e"](t,ze["a"].makeFont(u)),p=e.x+a.x,h=e.y+a.y+r,g=!1;h+d.height>n.getHeight()&&(o.position="top",g=!0);var f=g?-5-d.height:r+8;p+d.width/2>n.getWidth()?(o.position=["100%",f],u.align="right"):p-d.width/2<0&&(o.position=[0,f],u.align="left")}}))}function u(a,r){var c,u=l[a],p=l[r],h=o[u],g=new Yt["a"](h,e,e.ecModel);if(i&&null!=i.newTitle&&i.featureName===u&&(h.title=i.newTitle),u&&!p){if(pm(u))c={onclick:g.option.onclick,featureName:u};else{var f=sm(u);if(!f)return;c=new f}s[u]=c}else if(c=s[p],!c)return;c.uid=Object(On["c"])("toolbox-feature"),c.model=g,c.ecModel=t,c.api=n;var y=c instanceof am;u||!p?!g.get("show")||y&&c.unusable?y&&c.remove&&c.remove(t,n):(d(g,c,u),g.setIconStatus=function(e,t){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,i[e]&&("emphasis"===t?Fe["r"]:Fe["C"])(i[e])},c instanceof am&&c.render&&c.render(g,t,n,i)):y&&c.dispose&&c.dispose(t,n)}function d(i,o,s){var l,u,d=i.getModel("iconStyle"),p=i.getModel(["emphasis","iconStyle"]),h=o instanceof am&&o.getIcons?o.getIcons():i.get("icon"),g=i.get("title")||{};"string"===typeof h?(l={},l[s]=h):l=h,"string"===typeof g?(u={},u[s]=g):u=g;var f=i.iconPaths={};c["each"](l,(function(s,l){var h=Rt["createIcon"](s,{},{x:-r/2,y:-r/2,width:r,height:r});h.setStyle(d.getItemStyle());var g=h.ensureState("emphasis");g.style=p.getItemStyle();var y=new ze["a"]({style:{text:u[l],align:p.get("textAlign"),borderRadius:p.get("textBorderRadius"),padding:p.get("textPadding"),fill:null},ignore:!0});h.setTextContent(y),Rt["setTooltipConfig"]({el:h,componentModel:e,itemName:l,formatterParamsExtra:{title:u[l]}}),h.__title=u[l],h.on("mouseover",(function(){var t=p.getItemStyle(),n="vertical"===e.get("orient")?null==e.get("right")?"right":"left":null==e.get("bottom")?"bottom":"top";y.setStyle({fill:p.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:p.get("textBackgroundColor")}),h.setTextConfig({position:p.get("textPosition")||n}),y.ignore=!e.get("showTitle"),Object(Fe["r"])(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",l])&&Object(Fe["C"])(this),y.hide()})),("emphasis"===i.get(["iconStatus",l])?Fe["r"]:Fe["C"])(h),a.add(h),h.on("click",c["bind"](o.onclick,o,t,n,l)),f[l]=h}))}},t.prototype.updateView=function(e,t,n,i){c["each"](this._features,(function(e){e instanceof am&&e.updateView&&e.updateView(e.model,t,n,i)}))},t.prototype.remove=function(e,t){c["each"](this._features,(function(n){n instanceof am&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){c["each"](this._features,(function(n){n instanceof am&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(nn["a"]);function pm(e){return 0===e.indexOf("my")}var hm=dm,gm=n("a6d3"),fm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(b["b"])(t,e),t.prototype.onclick=function(e,t){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",a="svg"===t.getZr().painter.getType(),r=a?"svg":n.get("type",!0)||"png",o=t.getConnectedDataURL({type:r,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if("function"!==typeof MouseEvent||!gm["a"].browser.newEdge&&(gm["a"].browser.ie||gm["a"].browser.edge))if(window.navigator.msSaveOrOpenBlob||a){var s=o.split(","),l=s[0].indexOf("base64")>-1,c=a?decodeURIComponent(s[1]):s[1];l&&(c=window.atob(c));var u=i+"."+r;if(window.navigator.msSaveOrOpenBlob){var d=c.length,p=new Uint8Array(d);while(d--)p[d]=c.charCodeAt(d);var h=new Blob([p]);window.navigator.msSaveOrOpenBlob(h,u)}else{var g=document.createElement("iframe");document.body.appendChild(g);var f=g.contentWindow,y=f.document;y.open("image/svg+xml","replace"),y.write(c),y.close(),f.focus(),y.execCommand("SaveAs",!0,u),document.body.removeChild(g)}}else{var m=n.get("lang"),v='<body style="margin:0;"><img src="'+o+'" style="max-width:100%;" title="'+(m&&m[0]||"")+'" /></body>',b=window.open();b.document.write(v),b.document.title=i}else{var x=document.createElement("a");x.download=i+"."+r,x.target="_blank",x.href=o;var _=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});x.dispatchEvent(_)}},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}(am);fm.prototype.unusable=!gm["a"].canvasSupported;var ym=fm,mm=n("868b"),vm="__ec_magicType_stack__",bm=[["line","bar"],["stack"]],xm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(b["b"])(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return c["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(_m[n]){var r,o={series:[]},s=function(e){var t=e.subType,a=e.id,r=_m[n](t,a,e,i);r&&(c["defaults"](r,e.option),o.series.push(r));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim,d=u+"Axis",p=e.getReferringComponents(d,lt["b"]).models[0],h=p.componentIndex;o[d]=o[d]||[];for(var g=0;g<=h;g++)o[d][h]=o[d][h]||{};o[d][h].boundaryGap="bar"===n}}};c["each"](bm,(function(e){c["indexOf"](e,n)>=0&&c["each"](e,(function(e){i.setIconStatus(e,"normal")}))})),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==a?null:{seriesIndex:a}},s);var l=n;"stack"===n&&(r=c["merge"]({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(l="tiled")),t.dispatchAction({type:"changeMagicType",currentType:l,newOption:o,newTitle:r,featureName:"magicType"})}},t}(am),_m={line:function(e,t,n,i){if("bar"===e)return c["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 c["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")===vm;if("line"===e||"bar"===e)return i.setIconStatus("stack",a?"normal":"emphasis"),c["merge"]({id:t,stack:a?"":vm},i.get(["option","stack"])||{},!0)}};mm["m"]({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));var Sm=xm,wm=n("a22d"),Om=new Array(60).join("-"),Mm="\t";function Im(e){var t={},n=[],i=[];return e.eachRawSeries((function(e){var a=e.coordinateSystem;if(!a||"cartesian2d"!==a.type&&"polar"!==a.type)n.push(e);else{var r=a.getBaseAxis();if("category"===r.type){var o=r.dim+"_"+r.index;t[o]||(t[o]={categoryAxis:r,valueAxis:a.getOtherAxis(r),series:[]},i.push({axisDim:r.dim,axisIndex:r.index})),t[o].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:i}}function Am(e){var t=[];return c["each"](e,(function(e,n){var i=e.categoryAxis,a=e.valueAxis,r=a.dim,o=[" "].concat(c["map"](e.series,(function(e){return e.name}))),s=[i.model.getCategories()];c["each"](e.series,(function(e){var t=e.getRawData();s.push(e.getRawData().mapArray(t.mapDimension(r),(function(e){return e})))}));for(var l=[o.join(Mm)],u=0;u<s[0].length;u++){for(var d=[],p=0;p<s.length;p++)d.push(s[p][u]);l.push(d.join(Mm))}t.push(l.join("\n"))})),t.join("\n\n"+Om+"\n\n")}function jm(e){return c["map"](e,(function(e){var t=e.getRawData(),n=[e.name],i=[];return t.each(t.dimensions,(function(){for(var e=arguments.length,a=arguments[e-1],r=t.getName(a),o=0;o<e-1;o++)i[o]=arguments[o];n.push((r?r+Mm:"")+i.join(Mm))})),n.join("\n")})).join("\n\n"+Om+"\n\n")}function Dm(e){var t=Im(e);return{value:c["filter"]([Am(t.seriesGroupByCategoryAxis),jm(t.other)],(function(e){return!!e.replace(/[\n\t\s]/g,"")})).join("\n\n"+Om+"\n\n"),meta:t.meta}}function Cm(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Tm(e){var t=e.slice(0,e.indexOf("\n"));if(t.indexOf(Mm)>=0)return!0}var Lm=new RegExp("["+Mm+"]+","g");function Pm(e){for(var t=e.split(/\n+/g),n=Cm(t.shift()).split(Lm),i=[],a=c["map"](n,(function(e){return{name:e,data:[]}})),r=0;r<t.length;r++){var o=Cm(t[r]).split(Lm);i.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[r]=o[s])}return{series:a,categories:i}}function Nm(e){for(var t=e.split(/\n+/g),n=Cm(t.shift()),i=[],a=0;a<t.length;a++){var r=Cm(t[a]);if(r){var o=r.split(Lm),s="",l=void 0,c=!1;isNaN(o[0])?(c=!0,s=o[0],o=o.slice(1),i[a]={name:s,value:[]},l=i[a].value):l=i[a]=[];for(var u=0;u<o.length;u++)l.push(+o[u]);1===l.length&&(c?i[a].value=l[0]:i[a]=l[0])}}return{name:n,data:i}}function km(e,t){var n=e.split(new RegExp("\n*"+Om+"\n*","g")),i={series:[]};return c["each"](n,(function(e,n){if(Tm(e)){var a=Pm(e),r=t[n],o=r.axisDim+"Axis";r&&(i[o]=i[o]||[],i[o][r.axisIndex]={data:a.categories},i.series=i.series.concat(a.series))}else{a=Nm(e);i.series.push(a)}})),i}var Em=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(b["b"])(t,e),t.prototype.onclick=function(e,t){var n=t.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var a=document.createElement("div");a.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",a.style.backgroundColor=i.get("backgroundColor")||"#fff";var r=document.createElement("h4"),o=i.get("lang")||[];r.innerHTML=o[0]||i.get("title"),r.style.cssText="margin: 10px 20px;",r.style.color=i.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="display:block;width:100%;overflow:auto;";var u=i.get("optionToContent"),d=i.get("contentToOption"),p=Dm(e);if("function"===typeof u){var h=u(t.getOption());"string"===typeof h?s.innerHTML=h:c["isDom"](h)&&s.appendChild(h)}else s.appendChild(l),l.readOnly=i.get("readOnly"),l.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",l.style.color=i.get("textColor"),l.style.borderColor=i.get("textareaBorderColor"),l.style.backgroundColor=i.get("textareaColor"),l.value=p.value;var g=p.meta,f=document.createElement("div");f.style.cssText="position:absolute;bottom:0;left:0;right:0;";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",m=document.createElement("div"),v=document.createElement("div");y+=";background-color:"+i.get("buttonColor"),y+=";color:"+i.get("buttonTextColor");var b=this;function x(){n.removeChild(a),b._dom=null}Object(wm["a"])(m,"click",x),Object(wm["a"])(v,"click",(function(){if(null==d&&null!=u||null!=d&&null==u)x();else{var e;try{e="function"===typeof d?d(s,t.getOption()):km(l.value,g)}catch(n){throw x(),new Error("Data view format error "+n)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),x()}})),m.innerHTML=o[1],v.innerHTML=o[2],v.style.cssText=y,m.style.cssText=y,!i.get("readOnly")&&f.appendChild(v),f.appendChild(m),a.appendChild(r),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}(am);function Vm(e,t){return c["map"](e,(function(e,n){var i=t&&t[n];if(c["isObject"](i)&&!c["isArray"](i)){var a=c["isObject"](e)&&!c["isArray"](e);a||(e={value:e});var r=null!=i.name&&null==e.name;return e=c["defaults"](e,i),r&&delete e.name,e}return e}))}mm["m"]({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(e,t){var n=[];c["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:Vm(e.data,a)})}else n.push(c["extend"]({type:"scatter"},e))})),t.mergeOption(c["defaults"]({series:n},e.newOption))}));var Rm=Em,zm=c["each"],Bm=Object(lt["o"])();function Gm(e,t){var n=Um(e);zm(t,(function(t,i){for(var a=n.length-1;a>=0;a--){var r=n[a];if(r[i])break}if(a<0){var o=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var s=o.getPercentRange();n[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}})),n.push(t)}function Hm(e){var t=Um(e),n=t[t.length-1];t.length>1&&t.pop();var i={};return zm(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 Wm(e){Bm(e).snapshots=null}function Fm(e){return Um(e).length}function Um(e){var t=Bm(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var Ym=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(b["b"])(t,e),t.prototype.onclick=function(e,t){Wm(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}(am);mm["m"]({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var Xm=Ym,Zm=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],qm=function(){function e(e,t,n){var i=this;this._targetInfoList=[];var a=Qm(t,e);Object(c["each"])(Jm,(function(e,t){(!n||!n.include||Object(c["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=tv[e.brushType](0,n,t);e.__rangeOffset={offset:iv[e.brushType](i.values,e.range,[1,1]),xyMinMax:i.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){Object(c["each"])(e,(function(e){var i=this.findTargetInfo(e,t);i&&!0!==i&&Object(c["each"])(i.coordSyses,(function(i){var a=tv[e.brushType](1,i,e.range,!0);n(e,a.values,i,t)}))}),this)},e.prototype.setInputRanges=function(e,t){Object(c["each"])(e,(function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&!0!==n){e.panelId=n.panelId;var i=tv[e.brushType](0,n.coordSys,e.coordRange),a=e.__rangeOffset;e.range=a?iv[e.brushType](i.values,a.offset,rv(i.xyMinMax,a.xyMinMax)):i.values}}),this)},e.prototype.makePanelOpts=function(e,t){return Object(c["map"])(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:Vc(i),isTargetByCursor:zc(i,e,n.coordSysModel),getLinearBrushOtherExtent:Rc(i)}}))},e.prototype.controlSeries=function(e,t,n){var i=this.findTargetInfo(e,n);return!0===i||i&&Object(c["indexOf"])(i.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,i=Qm(t,e),a=0;a<n.length;a++){var r=n[a],o=e.panelId;if(o){if(r.panelId===o)return r}else for(var s=0;s<$m.length;s++)if($m[s](i,r))return r}return!0},e}();function Km(e){return e[0]>e[1]&&e.reverse(),e}function Qm(e,t){return Object(lt["s"])(e,t,{includeMainTypes:Zm})}var Jm={grid:function(e,t){var n=e.xAxisModels,i=e.yAxisModels,a=e.gridModels,r=Object(c["createHashMap"])(),o={},s={};(n||i||a)&&(Object(c["each"])(n,(function(e){var t=e.axis.grid.model;r.set(t.id,t),o[t.id]=!0})),Object(c["each"])(i,(function(e){var t=e.axis.grid.model;r.set(t.id,t),s[t.id]=!0})),Object(c["each"])(a,(function(e){r.set(e.id,e),o[e.id]=!0,s[e.id]=!0})),r.each((function(e){var a=e.coordinateSystem,r=[];Object(c["each"])(a.getCartesians(),(function(e,t){(Object(c["indexOf"])(n,e.getAxis("x").model)>=0||Object(c["indexOf"])(i,e.getAxis("y").model)>=0)&&r.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:r[0],coordSyses:r,getPanelRect:ev.grid,xAxisDeclared:o[e.id],yAxisDeclared:s[e.id]})})))},geo:function(e,t){Object(c["each"])(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:ev.geo})}))}},$m=[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}],ev={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Rt["getTransform"](e)),t}},tv={lineX:Object(c["curry"])(nv,0),lineY:Object(c["curry"])(nv,1),rect:function(e,t,n,i){var a=e?t.pointToData([n[0][0],n[1][0]],i):t.dataToPoint([n[0][0],n[1][0]],i),r=e?t.pointToData([n[0][1],n[1][1]],i):t.dataToPoint([n[0][1],n[1][1]],i),o=[Km([a[0],r[0]]),Km([a[1],r[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,i){var a=[[1/0,-1/0],[1/0,-1/0]],r=Object(c["map"])(n,(function(n){var r=e?t.pointToData(n,i):t.dataToPoint(n,i);return a[0][0]=Math.min(a[0][0],r[0]),a[1][0]=Math.min(a[1][0],r[1]),a[0][1]=Math.max(a[0][1],r[0]),a[1][1]=Math.max(a[1][1],r[1]),r}));return{values:r,xyMinMax:a}}};function nv(e,t,n,i){var a=n.getAxis(["x","y"][e]),r=Km(Object(c["map"])([0,1],(function(e){return t?a.coordToData(a.toLocalCoord(i[e]),!0):a.toGlobalCoord(a.dataToCoord(i[e]))}))),o=[];return o[e]=r,o[1-e]=[NaN,NaN],{values:r,xyMinMax:o}}var iv={lineX:Object(c["curry"])(av,0),lineY:Object(c["curry"])(av,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(c["map"])(e,(function(e,i){return[e[0]-n[0]*t[i][0],e[1]-n[1]*t[i][1]]}))}};function av(e,t,n,i){return[t[0]-i[e]*n[0],t[1]-i[e]*n[1]]}function rv(e,t){var n=ov(e),i=ov(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 ov(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var sv=qm,lv=n("7c2a"),cv=c["each"],uv=Object(lt["p"])("toolbox-dataZoom_"),dv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n,i){this._brushController||(this._brushController=new Ec(n.getZr()),this._brushController.on("brush",c["bind"](this._onBrush,this)).mount()),fv(e,t,this,i,n),gv(e,t)},t.prototype.onclick=function(e,t,n){pv[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 sv(hv(this.model),i,{include:["grid"]});a.matchOutputRanges(t,i,(function(e,t,n){if("cartesian2d"===n.type){var i=e.brushType;"rect"===i?(r("x",n,t[0]),r("y",n,t[1])):r({lineX:"x",lineY:"y"}[i],n,t)}})),Gm(i,n),this._dispatchZoomAction(n)}function r(e,t,a){var r=t.getAxis(e),s=r.model,l=o(e,s,i),c=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==c.minValueSpan&&null==c.maxValueSpan||(a=Object(xl["a"])(0,a.slice(),r.scale.getExtent(),0,c.minValueSpan,c.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:a[0],endValue:a[1]})}function o(e,t,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var a=n.getAxisModel(e,t.componentIndex);a&&(i=n)})),i}},t.prototype._dispatchZoomAction=function(e){var t=[];cv(e,(function(e,n){t.push(c["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}(am),pv={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(Hm(this.ecModel))}};function hv(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 gv(e,t){e.setIconStatus("back",Fm(t)>1?"emphasis":"normal")}function fv(e,t,n,i,a){var r=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(r="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=r,e.setIconStatus("zoom",r?"emphasis":"normal");var o=new sv(hv(e),t,{include:["grid"]}),s=o.makePanelOpts(a,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!r||!s.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}Object(lv["b"])("dataZoom",(function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var i=t.getModel(n),a=[],r=hv(i),o=Object(lt["s"])(e,r);return cv(o.xAxisModels,(function(e){return s(e,"xAxis","xAxisIndex")})),cv(o.yAxisModels,(function(e){return s(e,"yAxis","yAxisIndex")})),a}function s(e,t,n){var r=e.componentIndex,o={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:uv+t+r};o[n]=r,a.push(o)}}));var yv=dv;function mv(e){e.registerComponentModel(cm),e.registerComponentView(hm),om("saveAsImage",ym),om("magicType",Sm),om("dataView",Rm),om("dataZoom",yv),om("restore",Xm),Object(i["a"])(im)}var vv=n("822c"),bv=["rect","polygon","keep","clear"];function xv(e,t){var n=Object(lt["r"])(e?e.brush:[]);if(n.length){var i=[];c["each"](n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(i=i.concat(t))}));var a=e&&e.toolbox;c["isArray"](a)&&(a=a[0]),a||(a={feature:{}},e.toolbox=[a]);var r=a.feature||(a.feature={}),o=r.brush||(r.brush={}),s=o.type||(o.type=[]);s.push.apply(s,i),_v(s),t&&!s.length&&s.push.apply(s,bv)}}function _v(e){var t={};c["each"](e,(function(e){t[e]=1})),e.length=0,c["each"](t,(function(t,n){e.push(n)}))}var Sv=n("4322"),wv=c["each"];function Ov(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function Mv(e,t,n){var i={};return wv(t,(function(t){var r=i[t]=a();wv(e[t],(function(e,i){if(_r.isValidType(i)){var a={type:i,visual:e};n&&n(a,t),r[i]=new _r(a),"opacity"===i&&(a=c["clone"](a),a.type="colorAlpha",r.__hidden.__alphaForOpacity=new _r(a))}}))})),i;function a(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}}function Iv(e,t,n){var i;c["each"](n,(function(e){t.hasOwnProperty(e)&&Ov(t[e])&&(i=!0)})),i&&c["each"](n,(function(n){t.hasOwnProperty(n)&&Ov(t[n])?e[n]=c["clone"](t[n]):delete e[n]}))}function Av(e,t,n,i,a,r){var o,s={};function l(e){return Object(Sv["a"])(n,o,e)}function u(e,t){Object(Sv["c"])(n,o,e,t)}function d(e,c){o=null==r?e:c;var d=n.getRawDataItem(o);if(!d||!1!==d.visualMap)for(var p=i.call(a,e),h=t[p],g=s[p],f=0,y=g.length;f<y;f++){var m=g[f];h[m]&&h[m].applyVisual(e,l,u)}}c["each"](e,(function(e){var n=_r.prepareVisualTypes(t[e]);s[e]=n})),null==r?n.each(d):n.each([r],d)}function jv(e,t,n,i){var a={};return c["each"](e,(function(e){var n=_r.prepareVisualTypes(t[e]);a[e]=n})),{progress:function(e,r){var o,s;function l(e){return Object(Sv["a"])(r,s,e)}function c(e,t){Object(Sv["c"])(r,s,e,t)}null!=i&&(o=r.getDimensionIndex(i));var u=r.getStore();while(null!=(s=e.next())){var d=r.getRawDataItem(s);if(!d||!1!==d.visualMap)for(var p=null!=i?u.get(o,s):s,h=n(p),g=t[h],f=a[h],y=0,m=f.length;y<m;y++){var v=f[y];g[v]&&g[v].applyVisual(p,l,c)}}}}}var Dv=n("c19d");function Cv(e){var t=e.brushType,n={point:function(i){return Tv[t].point(i,n,e)},rect:function(i){return Tv[t].rect(i,n,e)}};return n}var Tv={lineX:Lv(0),lineY:Lv(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])&&Dv["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,r=e.y,o=e.width,s=e.height,l=i[0];return!!(Dv["a"](i,a,r)||Dv["a"](i,a+o,r)||Dv["a"](i,a,r+s)||Dv["a"](i,a+o,r+s)||Xn["a"].create(e).contain(l[0],l[1])||Object(Rt["linePolygonIntersect"])(a,r,a+o,r,i)||Object(Rt["linePolygonIntersect"])(a,r,a,r+s,i)||Object(Rt["linePolygonIntersect"])(a+o,r,a+o,r+s,i)||Object(Rt["linePolygonIntersect"])(a,r+s,a+o,r+s,i))||void 0}}};function Lv(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,i){if(t){var a=i.range,r=t[e];return Pv(r,a)}},rect:function(i,a,r){if(i){var o=r.range,s=[i[t[e]],i[t[e]]+i[n[e]]];return s[1]<s[0]&&s.reverse(),Pv(s[0],o)||Pv(s[1],o)||Pv(o[0],s)||Pv(o[1],s)}}}}function Pv(e,t){return t[0]<=e&&e<=t[1]}var Nv=["inBrush","outOfBrush"],kv="__ecBrushSelect",Ev="__ecInBrushSelectEvent";function Vv(e){e.eachComponent({mainType:"brush"},(function(t){var n=t.brushTargetManager=new sv(t.option,e);n.setInputRanges(t.areas,e)}))}function Rv(e,t,n){var i,a,r=[];e.eachComponent({mainType:"brush"},(function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),Vv(e),e.eachComponent({mainType:"brush"},(function(t,n){var o={brushId:t.id,brushIndex:n,brushName:t.name,areas:c["clone"](t.areas),selected:[]};r.push(o);var s=t.option,l=s.brushLink,u=[],d=[],p=[],h=!1;n||(i=s.throttleType,a=s.throttleDelay);var g=c["map"](t.areas,(function(e){var t=Wv[e.brushType],n=c["defaults"]({boundingRect:t?t(e):void 0},e);return n.selectors=Cv(n),n})),f=Mv(t.option,Nv,(function(e){e.mappingMethod="fixed"}));function y(e){return"all"===l||!!u[e]}function m(e){return!!e.length}function v(e,t){var n=e.coordinateSystem;h=h||n.hasAxisBrushed(),y(t)&&n.eachActiveState(e.getData(),(function(e,t){"active"===e&&(d[t]=1)}))}function b(n,i,a){if(n.brushSelector&&!Hv(t,i)&&(c["each"](g,(function(i){t.brushTargetManager.controlSeries(i,n,e)&&a.push(i),h=h||m(a)})),y(i)&&m(a))){var r=n.getData();r.each((function(e){Gv(n,a,r,e)&&(d[e]=1)}))}}c["isArray"](l)&&c["each"](l,(function(e){u[e]=1})),e.eachSeries((function(e,t){var n=p[t]=[];"parallel"===e.subType?v(e,t):b(e,t,n)})),e.eachSeries((function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};o.selected.push(n);var i=p[t],a=e.getData(),r=y(t)?function(e){return d[e]?(n.dataIndex.push(a.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(t){return Gv(e,i,a,t)?(n.dataIndex.push(a.getRawIndex(t)),"inBrush"):"outOfBrush"};(y(t)?h:m(i))&&Av(Nv,f,a,r)}))})),zv(t,i,a,r,n)}function zv(e,t,n,i,a){if(a){var r=e.getZr();if(!r[Ev]){r[kv]||(r[kv]=Bv);var o=ul["b"](r,kv,n,t);o(e,i)}}}function Bv(e,t){if(!e.isDisposed()){var n=e.getZr();n[Ev]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[Ev]=!1}}function Gv(e,t,n,i){for(var a=0,r=t.length;a<r;a++){var o=t[a];if(e.brushSelector(i,n,o.selectors,o))return!0}}function Hv(e,t){var n=e.option.seriesIndex;return null!=n&&"all"!==n&&(c["isArray"](n)?c["indexOf"](n,t)<0:t!==n)}var Wv={rect:function(e){return Fv(e.range)},polygon:function(e){for(var t,n=e.range,i=0,a=n.length;i<a;i++){t=t||[[1/0,-1/0],[1/0,-1/0]];var r=n[i];r[0]<t[0][0]&&(t[0][0]=r[0]),r[0]>t[0][1]&&(t[0][1]=r[0]),r[1]<t[1][0]&&(t[1][0]=r[1]),r[1]>t[1][1]&&(t[1][1]=r[1])}return t&&Fv(t)}};function Fv(e){return new Xn["a"](e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var Uv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new Ec(t.getZr())).on("brush",c["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){Vv(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:c["clone"](n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:c["clone"](n),$from:t})},t.type="brush",t}(nn["a"]),Yv=Uv,Xv="#ddd",Zv=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(b["b"])(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&Iv(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:Xv},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=c["map"](e,(function(e){return qv(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=qv(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}(Zt["a"]);function qv(e,t){return c["merge"]({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Yt["a"](e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var Kv=Zv,Qv=["rect","polygon","lineX","lineY","keep","clear"],Jv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n){var i,a,r;t.eachComponent({mainType:"brush"},(function(e){i=e.brushType,a=e.brushOption.brushMode||"single",r=r||!!e.areas.length})),this._brushType=i,this._brushMode=a,c["each"](e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===a:"clear"===t?r:t===i)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return c["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:Qv.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}(am),$v=Jv;function eb(e){e.registerComponentView(Yv),e.registerComponentModel(Kv),e.registerPreprocessor(xv),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Rv),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"},(function(){})),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},(function(){})),om("brush",$v)}var tb=n("2a36"),nb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return Object(b["b"])(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(c["each"])(n,(function(t,n){var i,r=Object(lt["e"])(Object(lt["h"])(t),"");Object(c["isObject"])(t)?(i=Object(c["clone"])(t),i.value=n):i=n,e.push(i),a.push(r)}))):e=n;var r={category:"ordinal",time:"time",value:"number"}[i]||"number",o=this._data=new ot["a"]([{name:"value",type:r}],this);o.initData(e,a)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={zlevel:0,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}(Zt["a"]),ib=nb,ab=n("a915"),rb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.type="timeline.slider",t.defaultOption=Object(On["d"])(ib.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}(ib);Object(c["mixin"])(rb,ab["a"].prototype);var ob=rb,sb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.type="timeline",t}(nn["a"]),lb=sb,cb=function(e){function t(t,n,i,a){var r=e.call(this,t,n,i)||this;return r.type=a||"value",r}return Object(b["b"])(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(sn["a"]),ub=cb,db=n("2c0d"),pb=n("01fa"),hb=Math.PI,gb=Object(lt["o"])(),fb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),a=this._createGroup("_mainGroup"),r=this._createGroup("_labelGroup"),o=this._axis=this._createAxis(i,e);e.formatTooltip=function(e){var t=o.scale.getLabel({value:e});return Object(Ht["c"])("nameValue",{noName:!0,value:t})},Object(c["each"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](i,a,o,e)}),this),this._renderAxisLabel(i,r,o,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,i=e.get(["label","position"]),a=e.get("orient"),r=mb(e,t);n=null==i||"auto"===i?"horizontal"===a?r.y+r.height/2<t.getHeight()/2?"-":"+":r.x+r.width/2<t.getWidth()/2?"+":"-":Object(c["isString"])(i)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][i]:i;var o,s,l,u={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},d={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},p={horizontal:0,vertical:hb/2},h="vertical"===a?r.height:r.width,g=e.getModel("controlStyle"),f=g.get("show",!0),y=f?g.get("itemSize"):0,m=f?g.get("itemGap"):0,v=y+m,b=e.get(["label","rotate"])||0;b=b*hb/180;var x=g.get("position",!0),_=f&&g.get("showPlayBtn",!0),S=f&&g.get("showPrevBtn",!0),w=f&&g.get("showNextBtn",!0),O=0,M=h;"left"===x||"bottom"===x?(_&&(o=[0,0],O+=v),S&&(s=[O,0],O+=v),w&&(l=[M-y,0],M-=v)):(_&&(o=[M-y,0],M-=v),S&&(s=[0,0],O+=v),w&&(l=[M-y,0],M-=v));var I=[O,M];return e.get("inverse")&&I.reverse(),{viewRect:r,mainLength:h,orient:a,rotation:p[a],labelRotation:b,labelPosOpt:n,labelAlign:e.get(["label","align"])||u[a],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||d[a],playPosition:o,prevBtnPosition:s,nextBtnPosition:l,axisExtent:I,controlSize:y,controlGap:m}},t.prototype._position=function(e,t){var n=this._mainGroup,i=this._labelGroup,a=e.viewRect;if("vertical"===e.orient){var r=qn["create"](),o=a.x,s=a.y+a.height;qn["translate"](r,r,[-o,-s]),qn["rotate"](r,r,-hb/2),qn["translate"](r,r,[o,s]),a=a.clone(),a.applyTransform(r)}var l=m(a),u=m(n.getBoundingRect()),d=m(i.getBoundingRect()),p=[n.x,n.y],h=[i.x,i.y];h[0]=p[0]=l[0][0];var g=e.labelPosOpt;if(null==g||Object(c["isString"])(g)){var f="+"===g?0:1;v(p,u,l,1,f),v(h,d,l,1,1-f)}else{f=g>=0?0:1;v(p,u,l,1,f),h[1]=p[1]+g}function y(e){e.originX=l[0][0]-e.x,e.originY=l[1][0]-e.y}function m(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(p),i.setPosition(h),n.rotation=i.rotation=e.rotation,y(n),y(i)},t.prototype._createAxis=function(e,t){var n=t.getData(),i=t.get("axisType"),a=yb(t,i);a.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var r=n.getDataExtent("value");a.setExtent(r[0],r[1]),a.niceTicks();var o=new ub("value",a,e.axisExtent,i);return o.model=t,o},t.prototype._createGroup=function(e){var t=this[e]=new We["a"];return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,i){var a=n.getExtent();if(i.get(["lineStyle","show"])){var r=new To["a"]({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:Object(c["extend"])({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(r);var o=this._progressLine=new To["a"]({shape:{x1:a[0],x2:this._currentPointer?this._currentPointer.x:a[0],y1:0,y2:0},style:Object(c["defaults"])({lineCap:"round",lineWidth:r.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(o)}},t.prototype._renderAxisTick=function(e,t,n,i){var a=this,r=i.getData(),o=n.scale.getTicks();this._tickSymbols=[],Object(c["each"])(o,(function(e){var o=n.dataToCoord(e.value),s=r.getItemModel(e.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),d=s.getModel(["progress","itemStyle"]),p={x:o,y:0,onclick:Object(c["bind"])(a._changeTimeline,a,e.value)},h=bb(s,l,t,p);h.ensureState("emphasis").style=u.getItemStyle(),h.ensureState("progress").style=d.getItemStyle(),Object(Fe["o"])(h);var g=Object(wt["a"])(h);s.get("tooltip")?(g.dataIndex=e.value,g.dataModel=i):g.dataIndex=g.dataModel=null,a._tickSymbols.push(h)}))},t.prototype._renderAxisLabel=function(e,t,n,i){var a=this,r=n.getLabelModel();if(r.get("show")){var o=i.getData(),s=n.getViewLabels();this._tickLabels=[],Object(c["each"])(s,(function(i){var r=i.tickValue,s=o.getItemModel(r),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),d=s.getModel(["progress","label"]),p=n.dataToCoord(i.tickValue),h=new ze["a"]({x:p,y:0,rotation:e.labelRotation-e.rotation,onclick:Object(c["bind"])(a._changeTimeline,a,r),silent:!1,style:Object(et["c"])(l,{text:i.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});h.ensureState("emphasis").style=Object(et["c"])(u),h.ensureState("progress").style=Object(et["c"])(d),t.add(h),Object(Fe["o"])(h),gb(h).dataIndex=r,a._tickLabels.push(h)}))}},t.prototype._renderControl=function(e,t,n,i){var a=e.controlSize,r=e.rotation,o=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function d(e,n,l,u){if(e){var d=Object(x["h"])(Object(c["retrieve2"])(i.get(["controlStyle",n+"BtnSize"]),a),a),p=[0,-d/2,d,d],h=vb(i,n+"Icon",p,{x:e[0],y:e[1],originX:a/2,originY:0,rotation:u?-r:0,rectHover:!0,style:o,onclick:l});h.ensureState("emphasis").style=s,t.add(h),Object(Fe["o"])(h)}}d(e.nextBtnPosition,"next",Object(c["bind"])(this._changeTimeline,this,u?"-":"+")),d(e.prevBtnPosition,"prev",Object(c["bind"])(this._changeTimeline,this,u?"+":"-")),d(e.playPosition,l?"stop":"play",Object(c["bind"])(this._handlePlayClick,this,!l),!0)},t.prototype._renderCurrentPointer=function(e,t,n,i){var a=i.getData(),r=i.getCurrentIndex(),o=a.getItemModel(r).getModel("checkpointStyle"),s=this,l={onCreate:function(e){e.draggable=!0,e.drift=Object(c["bind"])(s._handlePointerDrag,s),e.ondragend=Object(c["bind"])(s._handlePointerDragend,s),xb(e,s._progressLine,r,n,i,!0)},onUpdate:function(e){xb(e,s._progressLine,r,n,i)}};this._currentPointer=bb(o,o,this._mainGroup,{},this._currentPointer,l)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],i=this._axis,a=Te["c"](i.getExtent().slice());n>a[1]&&(n=a[1]),n<a[0]&&(n=a[0]),this._currentPointer.x=n,this._currentPointer.markRedraw(),this._progressLine.shape.x2=n,this._progressLine.dirty();var r=this._findNearestTick(n),o=this.model;(t||r!==o.getCurrentIndex()&&o.get("realtime"))&&this._changeTimeline(r)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var t=this._mainGroup.getLocalTransform();return Rt["applyTransform"](e,t,!0)},t.prototype._findNearestTick=function(e){var t,n=this.model.getData(),i=1/0,a=this._axis;return n.each(["value"],(function(n,r){var o=a.dataToCoord(n),s=Math.abs(o-e);s<i&&(i=s,t=r)})),t},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var i=0;i<t.length;i++)t&&t[i]&&t[i].toggleState("progress",i<e);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",gb(n[i]).dataIndex<=e)},t.type="timeline.slider",t}(lb);function yb(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new db["a"]({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new pb["a"]({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new un["a"]}}function mb(e,t){return Le["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function vb(e,t,n,i){var a=i.style,r=Rt["createIcon"](e.get(["controlStyle",t]),i||{},new Xn["a"](n[0],n[1],n[2],n[3]));return a&&r.setStyle(a),r}function bb(e,t,n,i,a,r){var o=t.get("color");if(a)a.setColor(o),n.add(a),r&&r.onUpdate(a);else{var s=e.get("symbol");a=Object(_t["a"])(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),n.add(a),r&&r.onCreate(a)}var l=t.getItemStyle(["color"]);a.setStyle(l),i=Object(c["merge"])({rectHover:!0,z2:100},i,!0);var u=Object(_t["c"])(e.get("symbolSize"));i.scaleX=u[0]/2,i.scaleY=u[1]/2;var d=Object(_t["b"])(e.get("symbolOffset"),u);d&&(i.x=(i.x||0)+d[0],i.y=(i.y||0)+d[1]);var p=e.get("symbolRotate");return i.rotation=(p||0)*Math.PI/180||0,a.attr(i),a.updateTransform(),a}function xb(e,t,n,i,a,r){if(!e.dragging){var o=a.getModel("checkpointStyle"),s=i.dataToCoord(a.getData().get("value",n));if(r||!o.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}var _b=fb;function Sb(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(c["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 wb(e){var t=e&&e.timeline;c["isArray"](t)||(t=t?[t]:[]),c["each"](t,(function(e){e&&Ob(e)}))}function Ob(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),Mb(e),Ib(e,"controlPosition")){var i=e.controlStyle||(e.controlStyle={});Ib(i,"position")||(i.position=e.controlPosition),"none"!==i.position||Ib(i,"show")||(i.show=!1,delete i.position),delete e.controlPosition}c["each"](e.data||[],(function(e){c["isObject"](e)&&!c["isArray"](e)&&(!Ib(e,"value")&&Ib(e,"name")&&(e.value=e.name),Mb(e))}))}function Mb(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),i=e.label||e.label||{},a=i.normal||(i.normal={}),r={normal:1,emphasis:1};c["each"](i,(function(e,t){r[t]||Ib(a,t)||(a[t]=e)})),n.label&&!Ib(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function Ib(e,t){return e.hasOwnProperty(t)}function Ab(e){e.registerComponentModel(ob),e.registerComponentView(_b),e.registerSubTypeDefaulter("timeline",(function(){return"slider"})),Sb(e),e.registerPreprocessor(wb)}function jb(e,t){if(!e)return!1;for(var n=Object(c["isArray"])(e)?e:[e],i=0;i<n.length;i++)if(n[i]&&n[i][t])return!0;return!1}function Db(e){Object(lt["f"])(e,"label",["show"])}var Cb=Object(lt["o"])(),Tb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return Object(b["b"])(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(gm["a"].node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,i){var a=this.mainType;n||t.eachSeries((function(e){var n=e.get(this.mainType,!0),r=Cb(e)[a];n&&n.data?(r?r._mergeOption(n,t,!0):(i&&Db(n),c["each"](n.data,(function(e){e instanceof Array?(Db(e[0]),Db(e[1])):Db(e)})),r=this.createMarkerModelFromSeries(n,this,t),c["extend"](r,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),r.__hostSeries=e),Cb(e)[a]=r):Cb(e)[a]=null}),this)},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),a=this.getRawValue(e),r=i.getName(e);return Object(Ht["c"])("section",{header:this.name,blocks:[Object(Ht["c"])("nameValue",{name:r,value:a,noName:!r,noValue:null==a})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.getMarkerModelFromSeries=function(e,t){return Cb(e)[t]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Zt["a"]);c["mixin"](Tb,ab["a"].prototype);var Lb=Tb,Pb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markPoint",t.defaultOption={zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(Lb),Nb=Pb,kb=n("c50d");function Eb(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function Vb(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function Rb(e,t,n,i,a,r){var o=[],s=Object(Gf["c"])(t,i),l=s?t.getCalculationInfo("stackResultDimension"):i,c=Ub(t,l,e),u=t.indicesOfNearest(l,c)[0];o[a]=t.get(n,u),o[r]=t.get(l,u);var d=t.get(i,u),p=Te["g"](t.get(i,u));return p=Math.min(p,20),p>=0&&(o[r]=+o[r].toFixed(p)),[o,d]}var zb={min:Object(c["curry"])(Rb,"min"),max:Object(c["curry"])(Rb,"max"),average:Object(c["curry"])(Rb,"average"),median:Object(c["curry"])(Rb,"median")};function Bb(e,t){var n=e.getData(),i=e.coordinateSystem;if(t&&!Vb(t)&&!Object(c["isArray"])(t.coord)&&i){var a=i.dimensions,r=Gb(t,n,i,e);if(t=Object(c["clone"])(t),t.type&&zb[t.type]&&r.baseAxis&&r.valueAxis){var o=Object(c["indexOf"])(a,r.baseAxis.dim),s=Object(c["indexOf"])(a,r.valueAxis.dim),l=zb[t.type](n,r.baseDataDim,r.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else{for(var u=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],d=0;d<2;d++)zb[u[d]]&&(u[d]=Ub(n,n.mapDimension(a[d]),u[d]));t.coord=u}}return t}function Gb(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(Hb(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 Hb(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function Wb(e,t){return!(e&&e.containData&&t.coord&&!Eb(t))||e.containData(t.coord)}function Fb(e,t){return e?function(e,n,i,a){var r=a<2?e.coord&&e.coord[a]:e.value;return Object(kb["d"])(r,t[a])}:function(e,n,i,a){return Object(kb["d"])(e.value,t[a])}}function Ub(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 Yb=Object(lt["o"])(),Xb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.init=function(){this.markerGroupMap=Object(c["createHashMap"])()},t.prototype.render=function(e,t,n){var i=this,a=this.markerGroupMap;a.each((function(e){Yb(e).keep=!1})),t.eachSeries((function(e){var a=Lb.getMarkerModelFromSeries(e,i.type);a&&i.renderSeries(e,a,t,n)})),a.each((function(e){!Yb(e).keep&&i.group.remove(e.group)}))},t.prototype.markKeep=function(e){Yb(e).keep=!0},t.prototype.blurSeries=function(e){var t=this;Object(c["each"])(e,(function(e){var n=Lb.getMarkerModelFromSeries(e,t.type);if(n){var i=n.getData();i.eachItemGraphicEl((function(e){e&&Object(Fe["q"])(e)}))}}))},t.type="marker",t}(nn["a"]),Zb=Xb;function qb(e,t,n){var i=t.coordinateSystem;e.each((function(a){var r,o=e.getItemModel(a),s=Te["p"](o.get("x"),n.getWidth()),l=Te["p"](o.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)r=t.getMarkerPosition(e.getValues(e.dimensions,a));else if(i){var c=e.get(i.dimensions[0],a),u=e.get(i.dimensions[1],a);r=i.dataToPoint([c,u])}}else r=[s,l];isNaN(s)||(r[0]=s),isNaN(l)||(r[1]=l),e.setItemLayout(a,r)}))}var Kb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=Lb.getMarkerModelFromSeries(e,"markPoint");t&&(qb(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,i){var a=e.coordinateSystem,r=e.id,o=e.getData(),s=this.markerGroupMap,l=s.get(r)||s.set(r,new xt["a"]),u=Qb(a,e,t);t.setData(u),qb(t.getData(),e,i),u.each((function(e){var n=u.getItemModel(e),i=n.getShallow("symbol"),a=n.getShallow("symbolSize"),r=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Object(c["isFunction"])(i)||Object(c["isFunction"])(a)||Object(c["isFunction"])(r)||Object(c["isFunction"])(s)){var d=t.getRawValue(e),p=t.getDataParams(e);Object(c["isFunction"])(i)&&(i=i(d,p)),Object(c["isFunction"])(a)&&(a=a(d,p)),Object(c["isFunction"])(r)&&(r=r(d,p)),Object(c["isFunction"])(s)&&(s=s(d,p))}var h=n.getModel("itemStyle").getItemStyle(),g=Object(Sv["b"])(o,"color");h.fill||(h.fill=g),u.setItemVisual(e,{symbol:i,symbolSize:a,symbolRotate:r,symbolOffset:s,symbolKeepAspect:l,style:h})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(e){e.traverse((function(e){Object(wt["a"])(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(Zb);function Qb(e,t,n){var i;i=e?Object(c["map"])(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(c["extend"])(Object(c["extend"])({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var a=new ot["a"](i,n),r=Object(c["map"])(n.get("data"),Object(c["curry"])(Bb,t));e&&(r=Object(c["filter"])(r,Object(c["curry"])(Wb,e)));var o=Fb(!!e,i);return a.initData(r,null,o),a}var Jb=Kb;function $b(e){e.registerComponentModel(Nb),e.registerComponentView(Jb),e.registerPreprocessor((function(e){jb(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))}var ex=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markLine",t.defaultOption={zlevel:0,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}(Lb),tx=ex,nx=Object(lt["o"])(),ix=function(e,t,n,i){var a,r=e.getData();if(Object(c["isArray"])(i))a=i;else{var o=i.type;if("min"===o||"max"===o||"average"===o||"median"===o||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=t.getAxis(null!=i.yAxis?"y":"x"),l=Object(c["retrieve"])(i.yAxis,i.xAxis);else{var u=Gb(i,r,t,e);s=u.valueAxis;var d=Object(Gf["b"])(r,u.valueDataDim);l=Ub(r,d,o)}var p="x"===s.dim?0:1,h=1-p,g=Object(c["clone"])(i),f={coord:[]};g.type=null,g.coord=[],g.coord[h]=-1/0,f.coord[h]=1/0;var y=n.get("precision");y>=0&&"number"===typeof l&&(l=+l.toFixed(Math.min(y,20))),g.coord[p]=f.coord[p]=l,a=[g,f,{type:o,valueIndex:i.valueIndex,value:l}]}else a=[]}var m=[Bb(e,a[0]),Bb(e,a[1]),Object(c["extend"])({},a[2])];return m[2].type=m[2].type||null,Object(c["merge"])(m[2],m[0]),Object(c["merge"])(m[2],m[1]),m};function ax(e){return!isNaN(e)&&!isFinite(e)}function rx(e,t,n,i){var a=1-e,r=i.dimensions[e];return ax(t[a])&&ax(n[a])&&t[e]===n[e]&&i.getAxis(r).containData(t[e])}function ox(e,t){if("cartesian2d"===e.type){var n=t[0].coord,i=t[1].coord;if(n&&i&&(rx(1,n,i,e)||rx(0,n,i,e)))return!0}return Wb(e,t[0])&&Wb(e,t[1])}function sx(e,t,n,i,a){var r,o=i.coordinateSystem,s=e.getItemModel(t),l=Te["p"](s.get("x"),a.getWidth()),c=Te["p"](s.get("y"),a.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition)r=i.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=o.dimensions,d=e.get(u[0],t),p=e.get(u[1],t);r=o.dataToPoint([d,p])}if(Object(dp["a"])(o,"cartesian2d")){var h=o.getAxis("x"),g=o.getAxis("y");u=o.dimensions;ax(e.get(u[0],t))?r[0]=h.toGlobalCoord(h.getExtent()[n?0:1]):ax(e.get(u[1],t))&&(r[1]=g.toGlobalCoord(g.getExtent()[n?0:1]))}isNaN(l)||(r[0]=l),isNaN(c)||(r[1]=c)}else r=[l,c];e.setItemLayout(t,r)}var lx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=Lb.getMarkerModelFromSeries(e,"markLine");if(t){var i=t.getData(),a=nx(t).from,r=nx(t).to;a.each((function(t){sx(a,t,!0,e,n),sx(r,t,!1,e,n)})),i.each((function(e){i.setItemLayout(e,[a.getItemLayout(e),r.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,i){var a=e.coordinateSystem,r=e.id,o=e.getData(),s=this.markerGroupMap,l=s.get(r)||s.set(r,new Ko);this.group.add(l.group);var u=cx(a,e,t),d=u.from,p=u.to,h=u.line;nx(t).from=d,nx(t).to=p,t.setData(h);var g=t.get("symbol"),f=t.get("symbolSize"),y=t.get("symbolRotate"),m=t.get("symbolOffset");function v(t,n,a){var r=t.getItemModel(n);sx(t,n,a,e,i);var s=r.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Object(Sv["b"])(o,"color")),t.setItemVisual(n,{symbolKeepAspect:r.get("symbolKeepAspect"),symbolOffset:Object(c["retrieve2"])(r.get("symbolOffset",!0),m[a?0:1]),symbolRotate:Object(c["retrieve2"])(r.get("symbolRotate",!0),y[a?0:1]),symbolSize:Object(c["retrieve2"])(r.get("symbolSize"),f[a?0:1]),symbol:Object(c["retrieve2"])(r.get("symbol",!0),g[a?0:1]),style:s})}Object(c["isArray"])(g)||(g=[g,g]),Object(c["isArray"])(f)||(f=[f,f]),Object(c["isArray"])(y)||(y=[y,y]),Object(c["isArray"])(m)||(m=[m,m]),u.from.each((function(e){v(d,e,!0),v(p,e,!1)})),h.each((function(e){var t=h.getItemModel(e).getModel("lineStyle").getLineStyle();h.setItemLayout(e,[d.getItemLayout(e),p.getItemLayout(e)]),null==t.stroke&&(t.stroke=d.getItemVisual(e,"style").fill),h.setItemVisual(e,{fromSymbolKeepAspect:d.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(e,"symbolOffset"),fromSymbolRotate:d.getItemVisual(e,"symbolRotate"),fromSymbolSize:d.getItemVisual(e,"symbolSize"),fromSymbol:d.getItemVisual(e,"symbol"),toSymbolKeepAspect:p.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:p.getItemVisual(e,"symbolOffset"),toSymbolRotate:p.getItemVisual(e,"symbolRotate"),toSymbolSize:p.getItemVisual(e,"symbolSize"),toSymbol:p.getItemVisual(e,"symbol"),style:t})})),l.updateData(h),u.line.eachItemGraphicEl((function(e,n){e.traverse((function(e){Object(wt["a"])(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(Zb);function cx(e,t,n){var i;i=e?Object(c["map"])(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(c["extend"])(Object(c["extend"])({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var a=new ot["a"](i,n),r=new ot["a"](i,n),o=new ot["a"]([],n),s=Object(c["map"])(n.get("data"),Object(c["curry"])(ix,t,e,n));e&&(s=Object(c["filter"])(s,Object(c["curry"])(ox,e)));var l=Fb(!!e,i);return a.initData(Object(c["map"])(s,(function(e){return e[0]})),null,l),r.initData(Object(c["map"])(s,(function(e){return e[1]})),null,l),o.initData(Object(c["map"])(s,(function(e){return e[2]}))),o.hasItemOption=!0,{from:a,to:r,line:o}}var ux=lx;function dx(e){e.registerComponentModel(tx),e.registerComponentView(ux),e.registerPreprocessor((function(e){jb(e.series,"markLine")&&(e.markLine=e.markLine||{})}))}var px=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markArea",t.defaultOption={zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(Lb),hx=px,gx=Object(lt["o"])(),fx=function(e,t,n,i){var a=Bb(e,i[0]),r=Bb(e,i[1]),o=a.coord,s=r.coord;o[0]=Object(c["retrieve"])(o[0],-1/0),o[1]=Object(c["retrieve"])(o[1],-1/0),s[0]=Object(c["retrieve"])(s[0],1/0),s[1]=Object(c["retrieve"])(s[1],1/0);var l=Object(c["mergeAll"])([{},a,r]);return l.coord=[a.coord,r.coord],l.x0=a.x,l.y0=a.y,l.x1=r.x,l.y1=r.y,l};function yx(e){return!isNaN(e)&&!isFinite(e)}function mx(e,t,n,i){var a=1-e;return yx(t[a])&&yx(n[a])}function vx(e,t){var n=t.coord[0],i=t.coord[1];return!!(Object(dp["a"])(e,"cartesian2d")&&n&&i&&(mx(1,n,i,e)||mx(0,n,i,e)))||(Wb(e,{coord:n,x:t.x0,y:t.y0})||Wb(e,{coord:i,x:t.x1,y:t.y1}))}function bx(e,t,n,i,a){var r,o=i.coordinateSystem,s=e.getItemModel(t),l=Te["p"](s.get(n[0]),a.getWidth()),c=Te["p"](s.get(n[1]),a.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition)r=i.getMarkerPosition(e.getValues(n,t));else{var u=e.get(n[0],t),d=e.get(n[1],t),p=[u,d];o.clampData&&o.clampData(p,p),r=o.dataToPoint(p,!0)}if(Object(dp["a"])(o,"cartesian2d")){var h=o.getAxis("x"),g=o.getAxis("y");u=e.get(n[0],t),d=e.get(n[1],t);yx(u)?r[0]=h.toGlobalCoord(h.getExtent()["x0"===n[0]?0:1]):yx(d)&&(r[1]=g.toGlobalCoord(g.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(r[0]=l),isNaN(c)||(r[1]=c)}else r=[l,c];return r}var xx=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],_x=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=Lb.getMarkerModelFromSeries(e,"markArea");if(t){var i=t.getData();i.each((function(t){var a=Object(c["map"])(xx,(function(a){return bx(i,t,a,e,n)}));i.setItemLayout(t,a);var r=i.getItemGraphicEl(t);r.setShape("points",a)}))}}),this)},t.prototype.renderSeries=function(e,t,n,i){var a=e.coordinateSystem,r=e.id,s=e.getData(),l=this.markerGroupMap,u=l.get(r)||l.set(r,{group:new We["a"]});this.group.add(u.group),this.markKeep(u);var d=Sx(a,e,t);t.setData(d),d.each((function(t){var n=Object(c["map"])(xx,(function(n){return bx(d,t,n,e,i)})),r=a.getAxis("x").scale,l=a.getAxis("y").scale,u=r.getExtent(),p=l.getExtent(),h=[r.parse(d.get("x0",t)),r.parse(d.get("x1",t))],g=[l.parse(d.get("y0",t)),l.parse(d.get("y1",t))];Te["c"](h),Te["c"](g);var f=!(u[0]>h[1]||u[1]<h[0]||p[0]>g[1]||p[1]<g[0]),y=!f;d.setItemLayout(t,{points:n,allClipped:y});var m=d.getItemModel(t).getModel("itemStyle").getItemStyle(),v=Object(Sv["b"])(s,"color");m.fill||(m.fill=v,"string"===typeof m.fill&&(m.fill=o["modifyAlpha"](m.fill,.4))),m.stroke||(m.stroke=v),d.setItemVisual(t,"style",m)})),d.diff(gx(u).data).add((function(e){var t=d.getItemLayout(e);if(!t.allClipped){var n=new zt["a"]({shape:{points:t.points}});d.setItemGraphicEl(e,n),u.group.add(n)}})).update((function(e,n){var i=gx(u).data.getItemGraphicEl(n),a=d.getItemLayout(e);a.allClipped?i&&u.group.remove(i):(i?Be["h"](i,{shape:{points:a.points}},t,e):i=new zt["a"]({shape:{points:a.points}}),d.setItemGraphicEl(e,i),u.group.add(i))})).remove((function(e){var t=gx(u).data.getItemGraphicEl(e);u.group.remove(t)})).execute(),d.eachItemGraphicEl((function(e,n){var i=d.getItemModel(n),a=d.getItemVisual(n,"style");e.useStyle(d.getItemVisual(n,"style")),Object(et["g"])(e,Object(et["e"])(i),{labelFetcher:t,labelDataIndex:n,defaultText:d.getName(n)||"",inheritColor:"string"===typeof a.fill?o["modifyAlpha"](a.fill,1):"#000"}),Object(Fe["I"])(e,i),Object(Fe["o"])(e),Object(wt["a"])(e).dataModel=t})),gx(u).data=d,u.group.silent=t.get("silent")||e.get("silent")},t.type="markArea",t}(Zb);function Sx(e,t,n){var i,a,r=["x0","y0","x1","y1"];if(e){var o=Object(c["map"])(e&&e.dimensions,(function(e){var n=t.getData(),i=n.getDimensionInfo(n.mapDimension(e))||{};return Object(c["extend"])(Object(c["extend"])({},i),{name:e,ordinalMeta:null})}));a=Object(c["map"])(r,(function(e,t){return{name:e,type:o[t%2].type}})),i=new ot["a"](a,n)}else a=[{name:"value",type:"float"}],i=new ot["a"](a,n);var s=Object(c["map"])(n.get("data"),Object(c["curry"])(fx,t,e,n));e&&(s=Object(c["filter"])(s,Object(c["curry"])(vx,e)));var l=e?function(e,t,n,i){var r=e.coord[Math.floor(i/2)][i%2];return Object(kb["d"])(r,a[i])}:function(e,t,n,i){return Object(kb["d"])(e.value,a[i])};return i.initData(s,null,l),i.hasItemOption=!0,i}var wx=_x;function Ox(e){e.registerComponentModel(hx),e.registerComponentView(wx),e.registerPreprocessor((function(e){jb(e.series,"markArea")&&(e.markArea=e.markArea||{})}))}var Mx=n("2cba"),Ix=n("590b"),Ax=n("23e2"),jx=n("61fd"),Dx={get:function(e,t,n){var i=c["clone"]((Cx[e]||{})[t]);return n&&c["isArray"](i)?i[i.length-1]:i}},Cx={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]}},Tx=Dx,Lx=_r.mapVisual,Px=_r.eachVisual,Nx=c["isArray"],kx=c["each"],Ex=Te["c"],Vx=Te["l"],Rx=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(b["b"])(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;gm["a"].canvasSupported||(n.realtime=!1),!t&&Iv(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=c["bind"](e,this),this.controllerVisuals=Mv(this.option.controller,t,e),this.targetVisuals=Mv(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=lt["r"](e),t},t.prototype.eachTargetSeries=function(e,t){c["each"](this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(t,i)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,n){var i,a=this.option,r=a.precision,o=this.dataBound,s=a.formatter;n=n||["<",">"],c["isArray"](e)&&(e=e.slice(),i=!0);var l=t?e:i?[u(e[0]),u(e[1])]:u(e);return c["isString"](s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):c["isFunction"](s)?i?s(e[0],e[1]):s(e):i?e[0]===o[0]?n[0]+" "+l[1]:e[1]===o[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(e){return e===o[0]?"min":e===o[1]?"max":(+e).toFixed(Math.min(r,20))}},t.prototype.resetExtent=function(){var e=this.option,t=Ex([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var a=n[i],r=e.getDimensionInfo(a);if(!r.isCalculationCoord)return r.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},i=t.target||(t.target={}),a=t.controller||(t.controller={});c["merge"](i,n),c["merge"](a,n);var r=this.isCategory();function o(n){Nx(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]={},kx(i,(function(e,t){if(_r.isValidType(t)){var n=Tx.get(t,"inactive",r);null!=n&&(a[t]=n,"color"!==t||a.hasOwnProperty("opacity")||a.hasOwnProperty("colorAlpha")||(a.opacity=[0,0]))}})))}function l(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),a=this.getItemSymbol(),o=a||"roundRect";kx(this.stateList,(function(a){var s=this.itemSize,l=e[a];l||(l=e[a]={color:r?i:[i]}),null==l.symbol&&(l.symbol=t&&c["clone"](t)||(r?o:[o])),null==l.symbolSize&&(l.symbolSize=n&&c["clone"](n)||(r?s[0]:[s[0],s[0]])),l.symbol=Lx(l.symbol,(function(e){return"none"===e?o:e}));var u=l.symbolSize;if(null!=u){var d=-1/0;Px(u,(function(e){e>d&&(d=e)})),l.symbolSize=Lx(u,(function(e){return Vx(e,[0,d],[0,s[0]],!0)}))}}),this)}o.call(this,i),o.call(this,a),s.call(this,i,"inRange","outOfRange"),l.call(this,a)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,zlevel: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}(Zt["a"]),zx=Rx,Bx=[20,140],Gx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(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]=Bx[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=Bx[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):c["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),c["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=Te["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=Hx(this,"outOfRange",this.getExtent()),n=Hx(this,"inRange",this.option.range.slice()),i=[];function a(t,n){i.push({value:t,color:e(t,n)})}for(var r=0,o=0,s=n.length,l=t.length;o<l&&(!n.length||t[o]<=n[0]);o++)t[o]<n[r]&&a(t[o],"outOfRange");for(var c=1;r<s;r++,c=0)c&&i.length&&a(n[r],"outOfRange"),a(n[r],"inRange");for(c=1;o<l;o++)(!n.length||n[n.length-1]<t[o])&&(c&&(i.length&&a(i[i.length-1].value,"outOfRange"),c=0),a(t[o],"outOfRange"));var u=i.length;return{stops:i,outerColors:[u?i[0].color:"transparent",u?i[u-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Object(On["d"])(zx.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}(zx);function Hx(e,t,n){if(n[0]===n[1])return n.slice();for(var i=200,a=(n[1]-n[0])/i,r=n[0],o=[],s=0;s<=i&&r<n[1];s++)o.push(r),r+=a;return o.push(n[1]),o}var Wx=Gx,Fx=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(b["b"])(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=Ga["j"](t.get("padding")||0),i=e.getBoundingRect();e.add(new Da["a"]({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,t,n){n=n||{};var i=n.forceState,a=this.visualMapModel,r={};if("color"===t){var o=a.get("contentColor");r.color=o}function s(e){return r[e]}function l(e,t){r[e]=t}var u=a.controllerVisuals[i||a.getValueState(e)],d=_r.prepareVisualTypes(u);return c["each"](d,(function(i){var a=u[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",a=u.__alphaForOpacity),_r.dependsOn(i,t)&&a&&a.applyVisual(e,s,l)})),r[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api;Le["i"](e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,t,n,i){},t.type="visualMap",t}(nn["a"]),Ux=Fx,Yx=[["left","right","width"],["top","bottom","height"]];function Xx(e,t,n){var i=e.option,a=i.align;if(null!=a&&"auto"!==a)return a;for(var r={width:t.getWidth(),height:t.getHeight()},o="horizontal"===i.orient?1:0,s=Yx[o],l=[0,null,10],c={},u=0;u<3;u++)c[Yx[1-o][u]]=l[u],c[s[u]]=2===u?n[0]:i[s[u]];var d=[["x","width",3],["y","height",0]][o],p=Object(Le["g"])(c,r,i.padding);return s[(p.margin[d[2]]||0)+p[d[0]]+.5*p[d[1]]<.5*r[d[1]]?0:1]}function Zx(e,t){return c["each"](e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}var qx=Te["l"],Kx=c["each"],Qx=Math.min,Jx=Math.max,$x=12,e_=6,t_=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(b["b"])(t,e),t.prototype.doRender=function(e,t,n,i){this._api=n,i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var n=e.get("text");this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var i=t[1-n];i=null!=i?i+"":"";var a=this.visualMapModel,r=a.get("textGap"),o=a.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([o[0]/2,0===n?-r:o[1]+r],s),c=this._applyTransform(0===n?"bottom":"top",s),u=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new ze["a"]({style:{x:l[0],y:l[1],verticalAlign:"horizontal"===u?"middle":c,align:"horizontal"===u?c:"center",text:i,font:d.getFont(),fill:d.getTextColor()}}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,i=t.itemSize,a=this._orient,r=this._useHandle,o=Xx(t,this.api,i),s=n.mainGroup=this._createBarGroup(o),l=new We["a"];s.add(l),l.add(n.outOfRange=n_()),l.add(n.inRange=n_(null,r?r_(this._orient):null,c["bind"](this._dragHandle,this,"all",!1),c["bind"](this._dragHandle,this,"all",!0))),l.setClipPath(new Da["a"]({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var u=t.textStyleModel.getTextRect("国"),d=Jx(u.width,u.height);r&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,i,d,a),this._createHandle(t,s,1,i,d,a)),this._createIndicator(t,s,i,d,a),e.add(s)},t.prototype._createHandle=function(e,t,n,i,a,r){var o=c["bind"](this._dragHandle,this,n,!1),s=c["bind"](this._dragHandle,this,n,!0),l=Object(x["h"])(e.get("handleSize"),i[0]),u=Object(_t["a"])(e.get("handleIcon"),-l/2,-l/2,l,l,null,!0),d=r_(this._orient);u.attr({cursor:d,draggable:!0,drift:o,ondragend:s,onmousemove:function(e){wm["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(Fe["F"])(u,!0),t.add(u);var p=this.visualMapModel.textStyleModel,h=new ze["a"]({cursor:d,draggable:!0,drift:o,onmousemove:function(e){wm["g"](e.event)},ondragend:s,style:{x:0,y:0,text:"",font:p.getFont(),fill:p.getTextColor()}});h.ensureState("blur").style={opacity:.1},h.stateTransition={duration:200},this.group.add(h);var g=[l,0],f=this._shapes;f.handleThumbs[n]=u,f.handleLabelPoints[n]=g,f.handleLabels[n]=h},t.prototype._createIndicator=function(e,t,n,i,a){var r=Object(x["h"])(e.get("indicatorSize"),n[0]),o=Object(_t["a"])(e.get("indicatorIcon"),-r/2,-r/2,r,r,null,!0);o.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel("indicatorStyle").getItemStyle();if(o instanceof d["a"]){var l=o.style;o.useStyle(c["extend"]({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else o.useStyle(s);t.add(o);var u=this.visualMapModel.textStyleModel,p=new ze["a"]({silent:!0,invisible:!0,style:{x:0,y:0,text:"",font:u.getFont(),fill:u.getTextColor()}});this.group.add(p);var h=[("horizontal"===a?i/2:e_)+n[0]/2,0],g=this._shapes;g.indicator=o,g.indicatorLabel=p,g.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,i){if(this._useHandle){if(this._dragging=!t,!t){var a=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(e,a[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():a_(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=[qx(t[0],n,i,!0),qx(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]];Object(xl["a"])(t,i,a,e,0);var r=n.getExtent();this._dataInterval=[qx(i[0],a,r,!0),qx(i[1],a,r,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),i=this._shapes,a=[0,t.itemSize[1]],r=e?a:this._handleEnds,o=this._createBarVisual(this._dataInterval,n,r,"inRange"),s=this._createBarVisual(n,n,a,"outOfRange");i.inRange.setStyle({fill:o.barColor}).setShape("points",o.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(r,o)},t.prototype._createBarVisual=function(e,t,n,i){var a={forceState:i,convertOpacityToAlpha:!0},r=this._makeColorGradient(e,a),o=[this.getControllerVisual(e[0],"symbolSize",a),this.getControllerVisual(e[1],"symbolSize",a)],s=this._createBarPoints(n,o);return{barColor:new Jc["a"](0,0,0,1,r),barPoints:s,handlesColor:[r[0].color,r[r.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=100,i=[],a=(e[1]-e[0])/n;i.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var r=1;r<n;r++){var o=e[0]+a*r;if(o>e[1])break;i.push({color:this.getControllerVisual(o,"color",t),offset:r/n})}return i.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),i},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new We["a"]("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,a=n.handleThumbs,r=n.handleLabels,o=i.itemSize,s=i.getExtent();Kx([0,1],(function(l){var c=a[l];c.setStyle("fill",t.handlesColor[l]),c.y=e[l];var u=qx(e[l],[0,o[1]],s,!0),d=this.getControllerVisual(u,"symbolSize");c.scaleX=c.scaleY=d/o[0],c.x=o[0]-d/2;var p=Rt["applyTransform"](n.handleLabelPoints[l],Rt["getTransform"](c,this.group));r[l].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,i){var a=this.visualMapModel,r=a.getExtent(),o=a.itemSize,s=[0,o[1]],l=this._shapes,c=l.indicator;if(c){c.attr("invisible",!1);var u={convertOpacityToAlpha:!0},d=this.getControllerVisual(e,"color",u),p=this.getControllerVisual(e,"symbolSize"),h=qx(e,r,s,!0),g=o[0]-p/2,f={x:c.x,y:c.y};c.y=h,c.x=g;var y=Rt["applyTransform"](l.indicatorLabelPoint,Rt["getTransform"](c,this.group)),m=l.indicatorLabel;m.attr("invisible",!1);var v=this._applyTransform("left",l.mainGroup),b=this._orient,x="horizontal"===b;m.setStyle({text:(n||"")+a.formatValueText(t),verticalAlign:x?v:"middle",align:x?"center":v});var _={x:g,y:h,style:{fill:d}},S={style:{x:y[0],y:y[1]}};if(a.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var w={duration:100,easing:"cubicInOut",additive:!0};c.x=f.x,c.y=f.y,c.animateTo(_,w),m.animateTo(S,w)}else c.attr(_),m.attr(S);this._firstShowIndicator=!1;var O=this._shapes.handleLabels;if(O)for(var M=0;M<O.length;M++)this._api.enterBlur(O[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]=Qx(Jx(0,i[1]),n[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()}))},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var a=[0,i[1]],r=n.getExtent();e=Qx(Jx(a[0],e),a[1]);var o=i_(n,r,a),s=[e-o,e+o],l=qx(e,a,r,!0),c=[qx(s[0],a,r,!0),qx(s[1],a,r,!0)];s[0]<a[0]&&(c[0]=-1/0),s[1]>a[1]&&(c[1]=1/0),t&&(c[0]===-1/0?this._showIndicator(l,c[1],"< ",o):c[1]===1/0?this._showIndicator(l,c[0],"> ",o):this._showIndicator(l,l,"≈ ",o));var u=this._hoverLinkDataIndices,d=[];(t||a_(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var p=lt["d"](u,d);this._dispatchHighDown("downplay",Zx(p[0],n)),this._dispatchHighDown("highlight",Zx(p[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t=e.target,n=this.visualMapModel;if(t&&null!=Object(wt["a"])(t).dataIndex){var i=Object(wt["a"])(t),a=this.ecModel.getSeriesByIndex(i.seriesIndex);if(n.isTargetSeries(a)){var r=a.getData(i.dataType),o=r.getStore().get(n.getDataDimensionIndex(r),i.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",Zx(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=Rt["getTransform"](t,i?null:this.group);return c["isArray"](e)?Rt["applyTransform"](e,a,n):Rt["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}(Ux);function n_(e,t,n,i){return new zt["a"]({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){wm["g"](e.event)},ondragend:i})}function i_(e,t,n){var i=$x/2,a=e.get("hoverLinkDataSize");return a&&(i=qx(a,t,n,!0)/2),i}function a_(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function r_(e){return"vertical"===e?"ns-resize":"ew-resize"}var o_=t_,s_={type:"selectDataRange",event:"dataRangeSelected",update:"update"},l_=function(e,t){t.eachComponent({mainType:"visualMap",query:e},(function(t){t.setSelected(e.selected)}))},c_=[{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(jv(t.stateList,t.targetVisuals,c["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(c["bind"](u_,null,e,t))||{stops:[],outerColors:[]},r=t.getDataDimensionIndex(n);r>=0&&(a.dimension=r,i.push(a))}})),e.getData().setVisual("visualMeta",i)}}];function u_(e,t,n,i){for(var a=t.targetVisuals[i],r=_r.prepareVisualTypes(a),o={color:Object(Sv["b"])(e.getData(),"color")},s=0,l=r.length;s<l;s++){var c=r[s],u=a["opacity"===c?"__alphaForOpacity":c];u&&u.applyVisual(n,d,p)}return o.color;function d(e){return o[e]}function p(e,t){o[e]=t}}var d_=c["each"];function p_(e){var t=e&&e.visualMap;c["isArray"](t)||(t=t?[t]:[]),d_(t,(function(e){if(e){h_(e,"splitList")&&!h_(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&c["isArray"](t)&&d_(t,(function(e){c["isObject"](e)&&(h_(e,"start")&&!h_(e,"min")&&(e.min=e.start),h_(e,"end")&&!h_(e,"max")&&(e.max=e.end))}))}}))}function h_(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var g_=!1;function f_(e){g_||(g_=!0,e.registerSubTypeDefaulter("visualMap",(function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(s_,l_),Object(c["each"])(c_,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(p_))}function y_(e){e.registerComponentModel(Wx),e.registerComponentView(o_),f_(e)}var m_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return Object(b["b"])(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],v_[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=c["clone"](a)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=c["map"](this._pieceList,(function(e){return e=c["clone"](e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},i=_r.listVisualTypes(),a=this.isCategory();function r(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}c["each"](t.pieces,(function(e){c["each"](i,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),c["each"](n,(function(e,n){var i=!1;c["each"](this.stateList,(function(e){i=i||r(t,e,n)||r(t.target,e,n)}),this),!i&&c["each"](this.stateList,(function(e){(t[e]||(t[e]={}))[n]=Tx.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,c["each"](i,(function(e,t){var n=this.getSelectedMapKey(e);a.hasOwnProperty(n)||(a[n]=!0)}),this),"single"===n.selectedMode){var r=!1;c["each"](i,(function(e,t){var n=this.getSelectedMapKey(e);a[n]&&(r?a[n]=!1:r=!0)}),this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=c["clone"](e)},t.prototype.getValueState=function(e){var t=_r.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(i){var a=[],r=i.getData();r.each(this.getDataDimensionIndex(r),(function(t,i){var r=_r.findPieceIndex(t,n);r===e&&a.push(i)}),this),t.push({seriesId:i.id,dataIndex:a})}),this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],i=this,a=this._pieceList.slice();if(a.length){var r=a[0].interval[0];r!==-1/0&&a.unshift({interval:[-1/0,r]}),r=a[a.length-1].interval[1],r!==1/0&&a.push({interval:[r,1/0]})}else a.push({interval:[-1/0,1/0]});var o=-1/0;return c["each"](a,(function(e){var t=e.interval;t&&(t[0]>o&&s([o,t[0]],"outOfRange"),s(t.slice()),o=t[1])}),this),{stops:t,outerColors:n}}function s(a,r){var o=i.getRepresentValue({interval:a});r||(r=i.getValueState(o));var s=e(o,r);a[0]===-1/0?n[0]=s:a[1]===1/0?n[1]=s:t.push({value:a[0],color:s},{value:a[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=Object(On["d"])(zx.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}(zx),v_={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),i=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;var r=(i[1]-i[0])/a;while(+r.toFixed(n)!==r&&n<5)n++;t.precision=n,r=+r.toFixed(n),t.minOpen&&e.push({interval:[-1/0,i[0]],close:[0,0]});for(var o=0,s=i[0];o<a;s+=r,o++){var l=o===a-1?i[1]:s+r;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[i[1],1/0],close:[0,0]}),Object(Te["t"])(e),c["each"](e,(function(e,t){e.index=t,e.text=this.formatValueText(e.interval)}),this)},categories:function(e){var t=this.option;c["each"](t.categories,(function(t){e.push({text:this.formatValueText(t,!0),value:t})}),this),b_(t,e)},pieces:function(e){var t=this.option;c["each"](t.pieces,(function(t,n){c["isObject"](t)||(t={value:t});var i={text:"",index:n};if(null!=t.label&&(i.text=t.label),t.hasOwnProperty("value")){var a=i.value=t.value;i.interval=[a,a],i.close=[1,1]}else{for(var r=i.interval=[],o=i.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],d=0;d<2;d++){for(var p=[["gte","gt","min"],["lte","lt","max"]][d],h=0;h<3&&null==r[d];h++)r[d]=t[p[h]],o[d]=s[h],u[d]=2===h;null==r[d]&&(r[d]=l[d])}u[0]&&r[1]===1/0&&(o[0]=0),u[1]&&r[0]===-1/0&&(o[1]=0),r[0]===r[1]&&o[0]&&o[1]&&(i.value=r[0])}i.visual=_r.retrieveVisuals(t),e.push(i)}),this),b_(t,e),Object(Te["t"])(e),c["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 b_(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var x_=m_,__=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),i=t.textStyleModel,a=i.getFont(),r=i.getTextColor(),o=this._getItemAlign(),s=t.itemSize,l=this._getViewData(),u=l.endsText,d=c["retrieve"](t.get("showLabel",!0),!u);u&&this._renderEndsText(e,u[0],s,d,o),c["each"](l.viewPieceList,(function(i){var l=i.piece,u=new We["a"];u.onclick=c["bind"](this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var p=t.getRepresentValue(l);if(this._createItemSymbol(u,p,[0,0,s[0],s[1]]),d){var h=this.visualMapModel.getValueState(p);u.add(new ze["a"]({style:{x:"right"===o?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:o,font:a,fill:r,opacity:"outOfRange"===h?.5:1}}))}e.add(u)}),this),u&&this._renderEndsText(e,u[1],s,d,o),Le["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:Zx(i.findTargetDataIndices(t),i)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return Xx(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,i,a){if(t){var r=new We["a"],o=this.visualMapModel.textStyleModel;r.add(new ze["a"]({style:{x:i?"right"===a?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?a:"center",text:t,font:o.getFont(),fill:o.getTextColor()}})),e.add(r)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=c["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(_t["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=c["clone"](n.selected),a=t.getSelectedMapKey(e);"single"===n.selectedMode?(i[a]=!0,c["each"](i,(function(e,t){i[t]=t===a}))):i[a]=!i[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})},t.type="visualMap.piecewise",t}(Ux),S_=__;function w_(e){e.registerComponentModel(x_),e.registerComponentView(S_),f_(e)}function O_(e){Object(i["a"])(y_),Object(i["a"])(w_)}var M_=n("7e0d"),I_={label:{enabled:!0},decal:{show:!1}},A_=Object(lt["o"])(),j_={};function D_(e,t){var n=e.getModel("aria");if(n.get("enabled")){var i=c["clone"](I_);c["merge"](i.label,e.getLocaleModel().get("aria"),!1),c["merge"](n.option,i,!1),a(),r()}function a(){var t=n.getModel("decal"),i=t.get("show");if(i){var a=c["createHashMap"]();e.eachSeries((function(e){if(!e.isColorBySeries()){var t=a.get(e.type);t||(t={},a.set(e.type,t)),A_(e).scope=t}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if("function"!==typeof t.enableAriaDecal){var n=t.getData();if(t.isColorBySeries()){var i=Object(wa["b"])(t.ecModel,t.name,j_,e.getSeriesCount()),a=n.getVisual("decal");n.setVisual("decal",u(a,i))}else{var r=t.getRawData(),o={},s=A_(t).scope;n.each((function(e){var t=n.getRawIndex(e);o[t]=e}));var l=r.count();r.each((function(e){var i=o[e],a=r.getName(e)||e+"",c=Object(wa["b"])(t.ecModel,a,s,l),d=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",u(d,c))}))}}else t.enableAriaDecal();function u(e,t){var n=e?c["extend"](c["extend"]({},t),e):t;return n.dirty=!0,n}}))}}function r(){var i=e.getLocaleModel().get("aria"),a=n.getModel("label");if(a.option=c["defaults"](a.option,i),a.get("enabled")){var r=t.getZr().dom;if(a.get("description"))r.setAttribute("aria-label",a.get("description"));else{var u,d=e.getSeriesCount(),p=a.get(["data","maxCount"])||10,h=a.get(["series","maxCount"])||10,g=Math.min(d,h);if(!(d<1)){var f=s();if(f){var y=a.get(["general","withTitle"]);u=o(y,{title:f})}else u=a.get(["general","withoutTitle"]);var m=[],v=d>1?a.get(["series","multiple","prefix"]):a.get(["series","single","prefix"]);u+=o(v,{seriesCount:d}),e.eachSeries((function(e,t){if(t<g){var n=void 0,i=e.get("name"),r=i?"withName":"withoutName";n=d>1?a.get(["series","multiple",r]):a.get(["series","single",r]),n=o(n,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:l(e.subType)});var s=e.getData();if(s.count()>p){var c=a.get(["data","partialData"]);n+=o(c,{displayCnt:p})}else n+=a.get(["data","allData"]);for(var u=[],h=0;h<s.count();h++)if(h<p){var f=s.getName(h),y=Object(M_["e"])(s,h),v=a.get(["data",f?"withName":"withoutName"]);u.push(o(v,{name:f,value:y}))}var b=a.get(["data","separator","middle"]),x=a.get(["data","separator","end"]);n+=u.join(b)+x,m.push(n)}}));var b=a.getModel(["series","multiple","separator"]),x=b.get("middle"),_=b.get("end");u+=m.join(x)+_,r.setAttribute("aria-label",u)}}}}function o(e,t){if("string"!==typeof e)return e;var n=e;return c["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 C_(e){if(e&&e.aria){var t=e.aria;null!=t.show&&(t.enabled=t.show),t.label=t.label||{},c["each"](["description","general","series","data"],(function(e){null!=t[e]&&(t.label[e]=t[e])}))}}function T_(e){e.registerPreprocessor(C_),e.registerVisual(e.PRIORITY.VISUAL.ARIA,D_)}var L_={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},P_=function(){function e(e){var t=this._condVal=Object(c["isString"])(e)?new RegExp(e):Object(c["isRegExp"])(e)?e:null;if(null==t){var n="";0,Object(qu["c"])(n)}}return e.prototype.evaluate=function(e){var t=typeof e;return"string"===t?this._condVal.test(e):"number"===t&&this._condVal.test(e+"")},e}(),N_=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),k_=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}(),E_=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}(),V_=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),R_=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 z_(e,t){if(!0===e||!1===e){var n=new N_;return n.value=e,n}var i="";return W_(e)||Object(qu["c"])(i),e.and?B_("and",e,t):e.or?B_("or",e,t):e.not?G_(e,t):H_(e,t)}function B_(e,t,n){var i=t[e],a="";Object(c["isArray"])(i)||Object(qu["c"])(a),i.length||Object(qu["c"])(a);var r="and"===e?new k_:new E_;return r.children=Object(c["map"])(i,(function(e){return z_(e,n)})),r.children.length||Object(qu["c"])(a),r}function G_(e,t){var n=e.not,i="";W_(n)||Object(qu["c"])(i);var a=new V_;return a.child=z_(n,t),a.child||Object(qu["c"])(i),a}function H_(e,t){for(var n="",i=t.prepareGetValue(e),a=[],r=Object(c["keys"])(e),o=e.parser,s=o?Object(kb["c"])(o):null,l=0;l<r.length;l++){var u=r[l];if("parser"!==u&&!t.valueGetterAttrMap.get(u)){var d=Object(c["hasOwn"])(L_,u)?L_[u]:u,p=e[u],h=s?s(p):p,g=Object(kb["b"])(d,h)||"reg"===d&&new P_(h);g||Object(qu["c"])(n),a.push(g)}}a.length||Object(qu["c"])(n);var f=new R_;return f.valueGetterParam=i,f.valueParser=s,f.getValue=t.getValue,f.subCondList=a,f}function W_(e){return Object(c["isObject"])(e)&&!Object(c["isArrayLike"])(e)}var F_=function(){function e(e,t){this._cond=z_(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function U_(e,t){return new F_(e,t)}var Y_={type:"echarts:filter",transform:function(e){for(var t,n=e.upstream,i=U_(e.config,{valueGetterAttrMap:Object(c["createHashMap"])({dimension:!0}),prepareGetValue:function(e){var t="",i=e.dimension;Object(c["hasOwn"])(e,"dimension")||Object(qu["c"])(t);var a=n.getDimensionInfo(i);return a||Object(qu["c"])(t),{dimIdx:a.index}},getValue:function(e){return n.retrieveValueFromItem(t,e.dimIdx)}}),a=[],r=0,o=n.count();r<o;r++)t=n.getRawDataItem(r),i.evaluate()&&a.push(t);return{data:a}}};var X_={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,i="",a=Object(lt["r"])(n);a.length||Object(qu["c"])(i);var r=[];Object(c["each"])(a,(function(e){var n=e.dimension,a=e.order,o=e.parser,s=e.incomparable;if(null==n&&Object(qu["c"])(i),"asc"!==a&&"desc"!==a&&Object(qu["c"])(i),s&&"min"!==s&&"max"!==s){var l="";0,Object(qu["c"])(l)}if("asc"!==a&&"desc"!==a){var c="";0,Object(qu["c"])(c)}var u=t.getDimensionInfo(n);u||Object(qu["c"])(i);var d=o?Object(kb["c"])(o):null;o&&!d&&Object(qu["c"])(i),r.push({dimIdx:u.index,parser:d,comparator:new kb["a"](a,s)})}));var o=t.sourceFormat;o!==Ku["c"]&&o!==Ku["e"]&&Object(qu["c"])(i);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort((function(e,n){for(var i=0;i<r.length;i++){var a=r[i],o=t.retrieveValueFromItem(e,a.dimIdx),s=t.retrieveValueFromItem(n,a.dimIdx);a.parser&&(o=a.parser(o),s=a.parser(s));var l=a.comparator.evaluate(o,s);if(0!==l)return l}return 0})),{data:s}}};function Z_(e){e.registerTransform(Y_),e.registerTransform(X_)}var q_=n("e2e9"),K_=n("c877"),Q_=n("8512"),J_=Q_["a"].CMD;function $_(e,t){return Math.abs(e-t)<1e-5}function eS(e){var t,n,i,a,r,o=e.data,s=e.len(),l=[],c=0,u=0,d=0,p=0;function h(e,n){t&&t.length>2&&l.push(t),t=[e,n]}function g(e,n,i,a){$_(e,i)&&$_(n,a)||t.push(e,n,i,a,i,a)}function f(e,n,i,a,r,o){var s=Math.abs(n-e),l=4*Math.tan(s/4)/3,c=n<e?-1:1,u=Math.cos(e),d=Math.sin(e),p=Math.cos(n),h=Math.sin(n),g=u*r+i,f=d*o+a,y=p*r+i,m=h*o+a,v=r*l*c,b=o*l*c;t.push(g-v*d,f+b*u,y+v*h,m-b*p,y,m)}for(var y=0;y<s;){var m=o[y++],v=1===y;switch(v&&(c=o[y],u=o[y+1],d=c,p=u,m!==J_.L&&m!==J_.C&&m!==J_.Q||(t=[d,p])),m){case J_.M:c=d=o[y++],u=p=o[y++],h(d,p);break;case J_.L:n=o[y++],i=o[y++],g(c,u,n,i),c=n,u=i;break;case J_.C:t.push(o[y++],o[y++],o[y++],o[y++],c=o[y++],u=o[y++]);break;case J_.Q:n=o[y++],i=o[y++],a=o[y++],r=o[y++],t.push(c+2/3*(n-c),u+2/3*(i-u),a+2/3*(n-a),r+2/3*(i-r),a,r),c=a,u=r;break;case J_.A:var b=o[y++],x=o[y++],_=o[y++],S=o[y++],w=o[y++],O=o[y++]+w;y+=1;var M=!o[y++];n=Math.cos(w)*_+b,i=Math.sin(w)*S+x,v?(d=n,p=i,h(d,p)):g(c,u,n,i),c=Math.cos(O)*_+b,u=Math.sin(O)*S+x;for(var I=(M?-1:1)*Math.PI/2,A=w;M?A>O:A<O;A+=I){var j=M?Math.max(A+I,O):Math.min(A+I,O);f(A,j,b,x,_,S)}break;case J_.R:d=c=o[y++],p=u=o[y++],n=d+o[y++],i=p+o[y++],h(n,p),g(n,p,n,i),g(n,i,d,i),g(d,i,d,p),g(d,p,n,p);break;case J_.Z:t&&g(c,u,d,p),c=d,u=p;break}}return t&&t.length>2&&l.push(t),l}function tS(e,t,n,i,a,r,o,s,l,c){if($_(e,n)&&$_(t,i)&&$_(a,o)&&$_(r,s))l.push(o,s);else{var u=2/c,d=u*u,p=o-e,h=s-t,g=Math.sqrt(p*p+h*h);p/=g,h/=g;var f=n-e,y=i-t,m=a-o,v=r-s,b=f*f+y*y,x=m*m+v*v;if(b<d&&x<d)l.push(o,s);else{var _=p*f+h*y,S=-p*m-h*v,w=b-_*_,O=x-S*S;if(w<d&&_>=0&&O<d&&S>=0)l.push(o,s);else{var M=[],I=[];Object(Qo["g"])(e,n,a,o,.5,M),Object(Qo["g"])(t,i,r,s,.5,I),tS(M[0],I[0],M[1],I[1],M[2],I[2],M[3],I[3],l,c),tS(M[4],I[4],M[5],I[5],M[6],I[6],M[7],I[7],l,c)}}}}function nS(e,t){var n=eS(e),i=[];t=t||1;for(var a=0;a<n.length;a++){var r=n[a],o=[],s=r[0],l=r[1];o.push(s,l);for(var c=2;c<r.length;){var u=r[c++],d=r[c++],p=r[c++],h=r[c++],g=r[c++],f=r[c++];tS(s,l,u,d,p,h,g,f,o,t),s=g,l=f}i.push(o)}return i}function iS(e,t,n){var i=e[t],a=e[1-t],r=Math.abs(i/a),o=Math.ceil(Math.sqrt(r*n)),s=Math.floor(n/o);0===s&&(s=1,o=n);for(var l=[],c=0;c<o;c++)l.push(s);var u=o*s,d=n-u;if(d>0)for(c=0;c<d;c++)l[c%o]+=1;return l}function aS(e,t,n){for(var i=e.r0,a=e.r,r=e.startAngle,o=e.endAngle,s=Math.abs(o-r),l=s*a,c=a-i,u=l>Math.abs(c),d=iS([l,c],u?0:1,t),p=(u?s:c)/d.length,h=0;h<d.length;h++)for(var g=(u?c:s)/d[h],f=0;f<d[h];f++){var y={};u?(y.startAngle=r+p*h,y.endAngle=r+p*(h+1),y.r0=i+g*f,y.r=i+g*(f+1)):(y.startAngle=r+g*f,y.endAngle=r+g*(f+1),y.r0=i+p*h,y.r=i+p*(h+1)),y.clockwise=e.clockwise,y.cx=e.cx,y.cy=e.cy,n.push(y)}}function rS(e,t,n){for(var i=e.width,a=e.height,r=i>a,o=iS([i,a],r?0:1,t),s=r?"width":"height",l=r?"height":"width",c=r?"x":"y",u=r?"y":"x",d=e[s]/o.length,p=0;p<o.length;p++)for(var h=e[l]/o[p],g=0;g<o[p];g++){var f={};f[c]=p*d,f[u]=g*h,f[s]=d,f[l]=h,f.x+=e.x,f.y+=e.y,n.push(f)}}function oS(e,t,n,i){return e*i-n*t}function sS(e,t,n,i,a,r,o,s){var l=n-e,c=i-t,u=o-a,d=s-r,p=oS(u,d,l,c);if(Math.abs(p)<1e-6)return null;var h=e-a,g=t-r,f=oS(h,g,u,d)/p;return f<0||f>1?null:new Ye["a"](f*l+e,f*c+t)}function lS(e,t,n){var i=new Ye["a"];Ye["a"].sub(i,n,t),i.normalize();var a=new Ye["a"];Ye["a"].sub(a,e,t);var r=a.dot(i);return r}function cS(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function uS(e,t,n){for(var i=e.length,a=[],r=0;r<i;r++){var o=e[r],s=e[(r+1)%i],l=sS(o[0],o[1],s[0],s[1],t.x,t.y,n.x,n.y);l&&a.push({projPt:lS(l,t,n),pt:l,idx:r})}if(a.length<2)return[{points:e},{points:e}];a.sort((function(e,t){return e.projPt-t.projPt}));var c=a[0],u=a[a.length-1];if(u.idx<c.idx){var d=c;c=u,u=d}var p=[c.pt.x,c.pt.y],h=[u.pt.x,u.pt.y],g=[p],f=[h];for(r=c.idx+1;r<=u.idx;r++)cS(g,e[r].slice());cS(g,h),cS(g,p);for(r=u.idx+1;r<=c.idx+i;r++)cS(f,e[r%i].slice());return cS(f,p),cS(f,h),[{points:g},{points:f}]}function dS(e){var t=e.points,n=[],i=[];Object(Ni["d"])(t,n,i);var a=new Xn["a"](n[0],n[1],i[0]-n[0],i[1]-n[1]),r=a.width,o=a.height,s=a.x,l=a.y,c=new Ye["a"],u=new Ye["a"];return r>o?(c.x=u.x=s+r/2,c.y=l,u.y=l+o):(c.y=u.y=l+o/2,c.x=s,u.x=s+r),uS(t,c,u)}function pS(e,t,n,i){if(1===n)i.push(t);else{var a=Math.floor(n/2),r=e(t);pS(e,r[0],a,i),pS(e,r[1],n-a,i)}return i}function hS(e,t){for(var n=[],i=0;i<t;i++)n.push(Object(K_["a"])(e));return n}function gS(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function fS(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function yS(e,t){var n,i=[],a=e.shape;switch(e.type){case"rect":rS(a,t,i),n=Da["a"];break;case"sector":aS(a,t,i),n=He["a"];break;case"circle":aS({r0:0,r:a.r,startAngle:0,endAngle:2*Math.PI,cx:a.cx,cy:a.cy},t,i),n=He["a"];break;default:var r=e.getComputedTransform(),o=r?Math.sqrt(Math.max(r[0]*r[0]+r[1]*r[1],r[2]*r[2]+r[3]*r[3])):1,s=Object(c["map"])(nS(e.getUpdatedPathProxy(),o),(function(e){return fS(e)})),l=s.length;if(0===l)pS(dS,{points:s[0]},t,i);else if(l===t)for(var u=0;u<l;u++)i.push({points:s[u]});else{var d=0,p=Object(c["map"])(s,(function(e){var t=[],n=[];Object(Ni["d"])(e,t,n);var i=(n[1]-t[1])*(n[0]-t[0]);return d+=i,{poly:e,area:i}}));p.sort((function(e,t){return t.area-e.area}));var h=t;for(u=0;u<l;u++){var g=p[u];if(h<=0)break;var f=u===l-1?h:Math.ceil(g.area/d*t);f<0||(pS(dS,{points:g.poly},f,i),h-=f)}}n=zt["a"];break}if(!n)return hS(e,t);var y=[];for(u=0;u<i.length;u++){var m=new n;m.setShape(i[u]),gS(e,m),y.push(m)}return y}function mS(e,t){var n=e.length,i=t.length;if(n===i)return[e,t];for(var a=[],r=[],o=n<i?e:t,s=Math.min(n,i),l=Math.abs(i-n)/6,c=(s-2)/6,u=Math.ceil(l/c)+1,d=[o[0],o[1]],p=l,h=2;h<s;){var g=o[h-2],f=o[h-1],y=o[h++],m=o[h++],v=o[h++],b=o[h++],x=o[h++],_=o[h++];if(p<=0)d.push(y,m,v,b,x,_);else{for(var S=Math.min(p,u-1)+1,w=1;w<=S;w++){var O=w/S;Object(Qo["g"])(g,y,v,x,O,a),Object(Qo["g"])(f,m,b,_,O,r),g=a[3],f=r[3],d.push(a[1],r[1],a[2],r[2],g,f),y=a[5],m=r[5],v=a[6],b=r[6]}p-=S-1}}return o===e?[d,t]:[e,d]}function vS(e,t){for(var n=e.length,i=e[n-2],a=e[n-1],r=[],o=0;o<t.length;)r[o++]=i,r[o++]=a;return r}function bS(e,t){for(var n,i,a,r=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],c=t[s],u=void 0,d=void 0;l?c?(n=mS(l,c),u=n[0],d=n[1],i=u,a=d):(d=vS(a||l,l),u=l):(u=vS(i||c,c),d=c),r.push(u),o.push(d)}return[r,o]}function xS(e){for(var t=0,n=0,i=0,a=e.length,r=0,o=a-2;r<a;o=r,r+=2){var s=e[o],l=e[o+1],c=e[r],u=e[r+1],d=s*u-c*l;t+=d,n+=(s+c)*d,i+=(l+u)*d}return 0===t?[e[0]||0,e[1]||0]:[n/t/3,i/t/3,t]}function _S(e,t,n,i){for(var a=(e.length-2)/6,r=1/0,o=0,s=e.length,l=s-2,c=0;c<a;c++){for(var u=6*c,d=0,p=0;p<s;p+=2){var h=0===p?u:(u+p-2)%l+2,g=e[h]-n[0],f=e[h+1]-n[1],y=t[p]-i[0],m=t[p+1]-i[1],v=y-g,b=m-f;d+=v*v+b*b}d<r&&(r=d,o=c)}return o}function SS(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 wS(e,t,n,i){for(var a,r=[],o=0;o<e.length;o++){var s=e[o],l=t[o],c=xS(s),u=xS(l);null==a&&(a=c[2]<0!==u[2]<0);var d=[],p=[],h=0,g=1/0,f=[],y=s.length;a&&(s=SS(s));for(var m=6*_S(s,l,c,u),v=y-2,b=0;b<v;b+=2){var x=(m+b)%v+2;d[b+2]=s[x]-c[0],d[b+3]=s[x+1]-c[1]}if(d[0]=s[m]-c[0],d[1]=s[m+1]-c[1],n>0)for(var _=i/n,S=-i/2;S<=i/2;S+=_){var w=Math.sin(S),O=Math.cos(S),M=0;for(b=0;b<s.length;b+=2){var I=d[b],A=d[b+1],j=l[b]-u[0],D=l[b+1]-u[1],C=j*O-D*w,T=j*w+D*O;f[b]=C,f[b+1]=T;var L=C-I,P=T-A;M+=L*L+P*P}if(M<g){g=M,h=S;for(var N=0;N<f.length;N++)p[N]=f[N]}}else for(var k=0;k<y;k+=2)p[k]=l[k]-u[0],p[k+1]=l[k+1]-u[1];r.push({from:d,to:p,fromCp:c,toCp:u,rotation:-h})}return r}function OS(e){return e.__isCombineMorphing}var MS="__mOriginal_";function IS(e,t,n){var i=MS+t,a=e[i]||e[t];e[i]||(e[i]=e[t]);var r=n.replace,o=n.after,s=n.before;e[t]=function(){var e,t=arguments;return s&&s.apply(this,t),e=r?r.apply(this,t):a.apply(this,t),o&&o.apply(this,t),e}}function AS(e,t){var n=MS+t;e[n]&&(e[t]=e[n],e[n]=null)}function jS(e,t){for(var n=0;n<e.length;n++)for(var i=e[n],a=0;a<i.length;){var r=i[a],o=i[a+1];i[a++]=t[0]*r+t[2]*o+t[4],i[a++]=t[1]*r+t[3]*o+t[5]}}function DS(e,t){var n=e.getUpdatedPathProxy(),i=t.getUpdatedPathProxy(),a=bS(eS(n),eS(i)),r=a[0],o=a[1],s=e.getComputedTransform(),l=t.getComputedTransform();function c(){this.transform=null}s&&jS(r,s),l&&jS(o,l),IS(t,"updateTransform",{replace:c}),t.transform=null;var u=wS(r,o,10,Math.PI),d=[];IS(t,"buildPath",{replace:function(e){for(var n=t.__morphT,i=1-n,a=[],r=0;r<u.length;r++){var o=u[r],s=o.from,l=o.to,c=o.rotation*n,p=o.fromCp,h=o.toCp,g=Math.sin(c),f=Math.cos(c);Object(Zn["lerp"])(a,p,h,n);for(var y=0;y<s.length;y+=2){var m=s[y],v=s[y+1],b=l[y],x=l[y+1],_=m*i+b*n,S=v*i+x*n;d[y]=_*f-S*g+a[0],d[y+1]=_*g+S*f+a[1]}var w=d[0],O=d[1];e.moveTo(w,O);for(y=2;y<s.length;){b=d[y++],x=d[y++];var M=d[y++],I=d[y++],A=d[y++],j=d[y++];w===b&&O===x&&M===A&&I===j?e.lineTo(A,j):e.bezierCurveTo(b,x,M,I,A,j),w=A,O=j}}}})}function CS(e,t,n){if(!e||!t)return t;var i=n.done,a=n.during;function r(){AS(t,"buildPath"),AS(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return DS(e,t),t.__morphT=0,t.animateTo({__morphT:1},Object(c["defaults"])({during:function(e){t.dirtyShape(),a&&a(e)},done:function(){r(),i&&i()}},n)),t}function TS(e,t,n,i,a,r){var o=16;e=a===n?0:Math.round(32767*(e-n)/(a-n)),t=r===i?0:Math.round(32767*(t-i)/(r-i));for(var s,l=0,c=(1<<o)/2;c>0;c/=2){var u=0,d=0;(e&c)>0&&(u=1),(t&c)>0&&(d=1),l+=c*c*(3*u^d),0===d&&(1===u&&(e=c-1-e,t=c-1-t),s=e,e=t,t=s)}return l}function LS(e){var t=1/0,n=1/0,i=-1/0,a=-1/0,r=Object(c["map"])(e,(function(e){var r=e.getBoundingRect(),o=e.getComputedTransform(),s=r.x+r.width/2+(o?o[4]:0),l=r.y+r.height/2+(o?o[5]:0);return t=Math.min(s,t),n=Math.min(l,n),i=Math.max(s,i),a=Math.max(l,a),[s,l]})),o=Object(c["map"])(r,(function(r,o){return{cp:r,z:TS(r[0],r[1],t,n,i,a),path:e[o]}}));return o.sort((function(e,t){return e.z-t.z})).map((function(e){return e.path}))}function PS(e){return yS(e.path,e.count)}function NS(){return{fromIndividuals:[],toIndividuals:[],count:0}}function kS(e,t,n){var i=[];function a(e){for(var t=0;t<e.length;t++){var n=e[t];OS(n)?a(n.childrenRef()):n instanceof u["b"]&&i.push(n)}}a(e);var r=i.length;if(!r)return NS();var o=n.dividePath||PS,s=o({path:t,count:r});if(s.length!==r)return console.error("Invalid morphing: unmatched splitted path"),NS();i=LS(i),s=LS(s);for(var l=n.done,d=n.during,p=n.individualDelay,h=new Kn["a"],g=0;g<r;g++){var f=i[g],y=s[g];y.parent=t,y.copyTransform(h),p||DS(f,y)}function m(e){for(var t=0;t<s.length;t++)s[t].addSelfToZr(e)}function v(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,AS(t,"addSelfToZr"),AS(t,"removeSelfFromZr")}t.__isCombineMorphing=!0,t.childrenRef=function(){return s},IS(t,"addSelfToZr",{after:function(e){m(e)}}),IS(t,"removeSelfFromZr",{after:function(e){for(var t=0;t<s.length;t++)s[t].removeSelfFromZr(e)}});var b=s.length;if(p){var x=b,_=function(){x--,0===x&&(v(),l&&l())};for(g=0;g<b;g++){var S=p?Object(c["defaults"])({delay:(n.delay||0)+p(g,b,i[g],s[g]),done:_},n):n;CS(i[g],s[g],S)}}else t.__morphT=0,t.animateTo({__morphT:1},Object(c["defaults"])({during:function(e){for(var n=0;n<b;n++){var i=s[n];i.__morphT=t.__morphT,i.dirtyShape()}d&&d(e)},done:function(){v();for(var t=0;t<e.length;t++)AS(e[t],"updateTransform");l&&l()}},n));return t.__zr&&m(t.__zr),{fromIndividuals:i,toIndividuals:s,count:b}}function ES(e,t,n){var i=t.length,a=[],r=n.dividePath||PS;function o(e){for(var t=0;t<e.length;t++){var n=e[t];OS(n)?o(n.childrenRef()):n instanceof u["b"]&&a.push(n)}}if(OS(e)){o(e.childrenRef());var s=a.length;if(s<i)for(var l=0,d=s;d<i;d++)a.push(Object(K_["a"])(a[l++%s]));a.length=i}else{a=r({path:e,count:i});var p=e.getComputedTransform();for(d=0;d<a.length;d++)a[d].setLocalTransform(p);if(a.length!==i)return console.error("Invalid morphing: unmatched splitted path"),NS()}a=LS(a),t=LS(t);var h=n.individualDelay;for(d=0;d<i;d++){var g=h?Object(c["defaults"])({delay:(n.delay||0)+h(d,i,a[d],t[d])},n):n;CS(a[d],t[d],g)}return{fromIndividuals:a,toIndividuals:t,count:t.length}}function VS(e){return Object(c["isArray"])(e[0])}function RS(e,t){for(var n=[],i=e.length,a=0;a<i;a++)n.push({one:e[a],many:[]});for(a=0;a<t.length;a++){var r=t[a].length,o=void 0;for(o=0;o<r;o++)n[o%i].many.push(t[a][o])}var s=0;for(a=i-1;a>=0;a--)if(!n[a].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}r=l.length;var c=Math.ceil(r/2);n[a].many=l.slice(c,r),n[s].many=l.slice(0,c),s++}return n}var zS={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(K_["a"])(e.path);a.setStyle("opacity",n),t.push(a)}return t},split:null};function BS(e,t,n,i,a,r){if(e.length&&t.length){var o=Object(Be["a"])("update",i,a);if(o&&o.duration>0){var s,l,u=i.getModel("universalTransition").get("delay"),d=Object.assign({setToFinal:!0},o);VS(e)&&(s=e,l=t),VS(t)&&(s=t,l=e);for(var p=s?s===e:e.length>t.length,h=s?RS(l,s):RS(p?t:e,[p?e:t]),g=0,f=0;f<h.length;f++)g+=h[f].many.length;var y=0;for(f=0;f<h.length;f++)m(h[f],p,y,g),y+=h[f].many.length}}function m(e,t,i,a,o){var s=e.many,l=e.one;if(1!==s.length||o)for(var p=Object(c["defaults"])({dividePath:zS[n],individualDelay:u&&function(e,t,n,r){return u(e+i,a)}},d),h=t?kS(s,l,p):ES(l,s,p),g=h.fromIndividuals,f=h.toIndividuals,y=g.length,v=0;v<y;v++){_=u?Object(c["defaults"])({delay:u(v,y)},d):d;r(g[v],f[v],t?s[v]:e.one,t?e.one:s[v],_)}else{var b=t?s[0]:l,x=t?l:s[0];if(OS(b))m({many:[b],one:x},!0,i,a,!0);else{var _=u?Object(c["defaults"])({delay:u(i,a)},d):d;CS(b,x,_),r(b,x,b,x,_)}}}}function GS(e){if(!e)return[];if(Object(c["isArray"])(e)){for(var t=[],n=0;n<e.length;n++)t.push(GS(e[n]));return t}var i=[];return e.traverse((function(e){e instanceof u["b"]&&!e.disableMorphing&&!e.invisible&&!e.ignore&&i.push(e)})),i}var HS=1e4,WS=Object(lt["o"])();function FS(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 US(e){var t=[];return Object(c["each"])(e,(function(e){var n=e.data;if(!(n.count()>HS))for(var i=n.getIndices(),a=FS(n),r=0;r<i.length;r++)t.push({data:n,dim:e.dim||a,divide:e.divide,dataIndex:r})})),t}function YS(e,t,n){e.traverse((function(e){e instanceof u["b"]&&Object(Be["c"])(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})}))}function XS(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function ZS(e){e.stopAnimation(),e.isGroup&&e.traverse((function(e){e.stopAnimation()}))}function qS(e,t,n){var i=Object(Be["a"])("update",n,t);i&&e.traverse((function(e){if(e instanceof In["c"]){var t=Object(Be["b"])(e);t&&e.animateFrom({style:t},i)}}))}function KS(e,t){var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++){var a=e[i],r=t[i];if(a.data.getId(a.dataIndex)!==r.data.getId(r.dataIndex))return!1}return!0}function QS(e,t,n){var i=US(e),a=US(t);function r(e,t,n,i,a){(n||e)&&t.animateFrom({style:(n||e).style},a)}function o(e){for(var t=0;t<e.length;t++)if(e[t].dim)return e[t].dim}var s=o(i),l=o(a),d=!1;function p(e,t){return function(n){var i=n.data,a=n.dataIndex;if(t)return i.getId(a);var r=i.hostModel&&i.hostModel.get("dataGroupId"),o=e?s||l:l||s,c=o&&i.getDimensionInfo(o),u=c&&c.ordinalMeta;if(c){var d=i.get(c.name,a);return u&&u.categories[d]||d+""}var p=i.getRawDataItem(a);return p&&p.groupId?p.groupId+"":r||i.getId(a)}}var h=KS(i,a),g={};if(!h)for(var f=0;f<a.length;f++){var y=a[f],m=y.data.getItemGraphicEl(y.dataIndex);m&&(g[m.id]=!0)}function v(e,t){var n=i[t],o=a[e],s=o.data.hostModel,l=n.data.getItemGraphicEl(n.dataIndex),c=o.data.getItemGraphicEl(o.dataIndex);l!==c?l&&g[l.id]||c&&(ZS(c),l?(ZS(l),XS(l),d=!0,BS(GS(l),GS(c),o.divide,s,e,r)):YS(c,s,e)):c&&qS(c,o.dataIndex,s)}new Ca["a"](i,a,p(!0,h),p(!1,h),null,"multiple").update(v).updateManyToOne((function(e,t){var n=a[e],o=n.data,s=o.hostModel,l=o.getItemGraphicEl(n.dataIndex),u=Object(c["filter"])(Object(c["map"])(t,(function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)})),(function(e){return e&&e!==l&&!g[e.id]}));l&&(ZS(l),u.length?(Object(c["each"])(u,(function(e){ZS(e),XS(e)})),d=!0,BS(GS(u),GS(l),n.divide,s,e,r)):YS(l,s,n.dataIndex))})).updateOneToMany((function(e,t){var n=i[t],o=n.data.getItemGraphicEl(n.dataIndex);if(!o||!g[o.id]){var s=Object(c["filter"])(Object(c["map"])(e,(function(e){return a[e].data.getItemGraphicEl(a[e].dataIndex)})),(function(e){return e&&e!==o})),l=a[e[0]].data.hostModel;s.length&&(Object(c["each"])(s,(function(e){return ZS(e)})),o?(ZS(o),XS(o),d=!0,BS(GS(o),GS(s),n.divide,l,e[0],r)):Object(c["each"])(s,(function(t){return YS(t,l,e[0])})))}})).updateManyToMany((function(e,t){new Ca["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(),d&&Object(c["each"])(t,(function(e){var t=e.data,i=t.hostModel,a=i&&n.getViewOfSeriesModel(i),r=Object(Be["a"])("update",i,0);a&&i.isAnimationEnabled()&&r&&r.duration>0&&a.group.traverse((function(e){e instanceof u["b"]&&!e.animators.length&&e.animateFrom({style:{opacity:0}},r)}))}))}function JS(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function $S(e){return Object(c["isArray"])(e)?e.sort().join(","):e}function ew(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function tw(e,t){var n=Object(c["createHashMap"])(),i=Object(c["createHashMap"])(),a=Object(c["createHashMap"])();return Object(c["each"])(e.oldSeries,(function(t,n){var r=e.oldData[n],o=JS(t),s=$S(o);i.set(s,r),Object(c["isArray"])(o)&&Object(c["each"])(o,(function(e){a.set(e,{data:r,key:s})}))})),Object(c["each"])(t.updatedSeries,(function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.getData(),r=JS(e),o=$S(r),s=i.get(o);if(s)n.set(o,{oldSeries:[{divide:ew(s),data:s}],newSeries:[{divide:ew(t),data:t}]});else if(Object(c["isArray"])(r)){0;var l=[];Object(c["each"])(r,(function(e){var t=i.get(e);t&&l.push({divide:ew(t),data:t})})),l.length&&n.set(o,{oldSeries:l,newSeries:[{data:t,divide:ew(t)}]})}else{var u=a.get(r);if(u){var d=n.get(u.key);d||(d={oldSeries:[{data:u.data,divide:ew(u.data)}],newSeries:[]},n.set(u.key,d)),d.newSeries.push({data:t,divide:ew(t)})}}}})),n}function nw(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 iw(e,t,n,i){var a=[],r=[];Object(c["each"])(Object(lt["r"])(e.from),(function(e){var n=nw(t.oldSeries,e);n>=0&&a.push({data:t.oldData[n],divide:ew(t.oldData[n]),dim:e.dimension})})),Object(c["each"])(Object(lt["r"])(e.to),(function(e){var t=nw(n.updatedSeries,e);if(t>=0){var i=n.updatedSeries[t].getData();r.push({data:i,divide:ew(i),dim:e.dimension})}})),a.length>0&&r.length>0&&QS(a,r,i)}function aw(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){Object(c["each"])(Object(lt["r"])(n.seriesTransition),(function(e){Object(c["each"])(Object(lt["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][pt["a"]]=!0)}))}))})),e.registerUpdateLifecycle("series:transition",(function(e,t,n){var i=WS(t);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)Object(c["each"])(Object(lt["r"])(a),(function(e){iw(e,i,n,t)}));else{var r=tw(i,n);Object(c["each"])(r.keys(),(function(e){var n=r.get(e);QS(n.oldSeries,n.newSeries,t)}))}Object(c["each"])(n.updatedSeries,(function(e){e[pt["a"]]&&(e[pt["a"]]=!1)}))}for(var o=e.getSeries(),s=i.oldSeries=[],l=i.oldData=[],u=0;u<o.length;u++){var d=o[u].getData();d.count()<HS&&(s.push(o[u]),l.push(d))}}))}var rw=n("2cd9");Object(i["a"])([r["a"]]),Object(i["a"])([Ae]),Object(i["a"])([je["a"],De["a"],yt,Pt,yn,vi,ba,$r,_s,Ps,Fs,Qc,Cu,Ju,jd,Ed,sp,bp,Jp,ch,jh,Qg]),Object(i["a"])(Jg["a"]),Object(i["a"])(Kf),Object(i["a"])(mi),Object(i["a"])(wy),Object(i["a"])(Kc),Object(i["a"])(ky),Object(i["a"])(qy),Object(i["a"])(mv),Object(i["a"])(vv["a"]),Object(i["a"])(sf["a"]),Object(i["a"])(eb),Object(i["a"])(tb["a"]),Object(i["a"])(Ab),Object(i["a"])($b),Object(i["a"])(dx),Object(i["a"])(Ox),Object(i["a"])(Mx["a"]),Object(i["a"])(Ix["a"]),Object(i["a"])(Ax["a"]),Object(i["a"])(jx["a"]),Object(i["a"])(O_),Object(i["a"])(y_),Object(i["a"])(w_),Object(i["a"])(T_),Object(i["a"])(Z_),Object(i["a"])(q_["a"]),Object(i["a"])(aw),Object(i["a"])(rw["a"])},de49:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAE6ADAAQAAAABAAAAEwAAAAADp3KcAAABfUlEQVQ4Ea2UQU7CQBSG35tiU1xxAd26BG6AG2NsDBzBI7hxZWIHT+ARuIEmWIywAG/gElfiDXQBU0H6nFdorZ2CSWMXM//75/1f5iXNIF0+7gXW1wAQDqDoR/DiCPuoFFjLAVp44Xgn3aKsoN07DZbzPijPp6KQdI45Im1kNclhRcluI+tvqrfCUB6+A4mh8u6HDN4Eif2tsLgJABsBTW9/6ny1FfZ7RGx8yl4rH7Nyc2HxSBTiTTochlRTV76Mz9NnrEtZg2sVTkczz39FgGr6nBCa2qspmjW1X0+fsTZuxqMgYlWHjJEYxCHe80Y2YDwKB/768voMmAEhaBveBsOECZgkvQRP5WtXgt4Tby0sAXdZz4CVpdvR4beoUUCHdx08195H5PGi4bZ0n5N6LQwY+zrcWoXDCdccFALPWDPIEbutSGeW3F+Dw0o+1CyAStxvQ3m0wFndbps3inv+/dUY83uU0AuIKK8fSCQ52A/CRR+Qir+0AGNnxzn+BukAjQ6wHlFuAAAAAElFTkSuQmCC"}}]);
- //# sourceMappingURL=chunk-d827b838.undefined.1634001389255.js.map
|