| 1234567891011121314 | 
							- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.echarts={})}(this,function(t){"use strict";function e(t){var e={},n={},i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(t);return i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),a&&(n.edge=!0,n.version=a[1]),o&&(n.weChat=!0),{browser:n,os:e,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!=typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!n.ie&&!n.edge,pointerEventsSupported:"onpointerdown"in window&&(n.edge||n.ie&&n.version>=11),domSupported:"undefined"!=typeof document}}function n(t,e){"createCanvas"===t&&(Qg=null),$g[t]=e}function i(t){if(null==t||"object"!=typeof t)return t;var e=t,n=Gg.call(t);if("[object Array]"===n){if(!E(t)){e=[];for(var r=0,a=t.length;a>r;r++)e[r]=i(t[r])}}else if(Wg[n]){if(!E(t)){var o=t.constructor;if(t.constructor.from)e=o.from(t);else{e=new o(t.length);for(var r=0,a=t.length;a>r;r++)e[r]=i(t[r])}}}else if(!Hg[n]&&!E(t)&&!T(t)){e={};for(var s in t)t.hasOwnProperty(s)&&(e[s]=i(t[s]))}return e}function r(t,e,n){if(!M(e)||!M(t))return n?i(e):t;for(var a in e)if(e.hasOwnProperty(a)){var o=t[a],s=e[a];!M(s)||!M(o)||x(s)||x(o)||T(s)||T(o)||S(s)||S(o)||E(s)||E(o)?!n&&a in t||(t[a]=i(e[a],!0)):r(o,s,n)}return t}function a(t,e){for(var n=t[0],i=1,a=t.length;a>i;i++)n=r(n,t[i],e);return n}function o(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function s(t,e,n){for(var i in e)e.hasOwnProperty(i)&&(n?null!=e[i]:null==t[i])&&(t[i]=e[i]);return t}function l(){return Qg||(Qg=Kg().getContext("2d")),Qg}function u(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;i>n;n++)if(t[n]===e)return n}return-1}function h(t,e){function n(){}var i=t.prototype;n.prototype=e.prototype,t.prototype=new n;for(var r in i)i.hasOwnProperty(r)&&(t.prototype[r]=i[r]);t.prototype.constructor=t,t.superClass=e}function c(t,e,n){t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,s(t,e,n)}function d(t){return t?"string"==typeof t?!1:"number"==typeof t.length:void 0}function f(t,e,n){if(t&&e)if(t.forEach&&t.forEach===Xg)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;r>i;i++)e.call(n,t[i],i,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(n,t[a],a,t)}function p(t,e,n){if(t&&e){if(t.map&&t.map===qg)return t.map(e,n);for(var i=[],r=0,a=t.length;a>r;r++)i.push(e.call(n,t[r],r,t));return i}}function g(t,e,n,i){if(t&&e){if(t.reduce&&t.reduce===jg)return t.reduce(e,n,i);for(var r=0,a=t.length;a>r;r++)n=e.call(i,n,t[r],r,t);return n}}function v(t,e,n){if(t&&e){if(t.filter&&t.filter===Yg)return t.filter(e,n);for(var i=[],r=0,a=t.length;a>r;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}}function m(t,e,n){if(t&&e)for(var i=0,r=t.length;r>i;i++)if(e.call(n,t[i],i,t))return t[i]}function y(t,e){var n=Ug.call(arguments,2);return function(){return t.apply(e,n.concat(Ug.call(arguments)))}}function _(t){var e=Ug.call(arguments,1);return function(){return t.apply(this,e.concat(Ug.call(arguments)))}}function x(t){return"[object Array]"===Gg.call(t)}function w(t){return"function"==typeof t}function b(t){return"[object String]"===Gg.call(t)}function M(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function S(t){return!!Hg[Gg.call(t)]}function I(t){return!!Wg[Gg.call(t)]}function T(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function C(t){return t!==t}function A(){for(var t=0,e=arguments.length;e>t;t++)if(null!=arguments[t])return arguments[t]}function D(t,e){return null!=t?t:e}function k(t,e,n){return null!=t?t:null!=e?e:n}function P(){return Function.call.apply(Ug,arguments)}function O(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function L(t,e){if(!t)throw new Error(e)}function z(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function B(t){t[Jg]=!0}function E(t){return t[Jg]}function R(t){function e(t,e){n?i.set(t,e):i.set(e,t)}var n=x(t);this.data={};var i=this;t instanceof R?t.each(e):t&&f(t,e)}function N(t){return new R(t)}function F(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var r=t.length;for(i=0;i<e.length;i++)n[i+r]=e[i];return n}function V(){}function H(t,e){var n=new ev(2);return null==t&&(t=0),null==e&&(e=0),n[0]=t,n[1]=e,n}function W(t,e){return t[0]=e[0],t[1]=e[1],t}function G(t){var e=new ev(2);return e[0]=t[0],e[1]=t[1],e}function Z(t,e,n){return t[0]=e,t[1]=n,t}function X(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Y(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function U(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function q(t){return Math.sqrt(j(t))}function j(t){return t[0]*t[0]+t[1]*t[1]}function $(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function K(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function Q(t,e){return t[0]*e[0]+t[1]*e[1]}function J(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function te(t,e){var n=q(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function ee(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function ne(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function ie(t,e){return t[0]=-e[0],t[1]=-e[1],t}function re(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function ae(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function oe(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function se(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function le(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this),this.on("globalout",this._dragEnd,this)}function ue(t,e){return{target:t,topTarget:e&&e.topTarget}}function he(t,e){var n=t._$eventProcessor;return null!=e&&n&&n.normalizeQuery&&(e=n.normalizeQuery(e)),e}function ce(t,e,n,i,r,a){var o=t._$handlers;if("function"==typeof n&&(r=i,i=n,n=null),!i||!e)return t;n=he(t,n),o[e]||(o[e]=[]);for(var s=0;s<o[e].length;s++)if(o[e][s].h===i)return t;var l={h:i,one:a,query:n,ctx:r||t,callAtLast:i.zrEventfulCallAtLast},u=o[e].length-1,h=o[e][u];return h&&h.callAtLast?o[e].splice(u,0,l):o[e].push(l),t}function de(t,e,n,i,r,a){var o=i+"-"+r,s=t.length;if(a.hasOwnProperty(o))return a[o];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/uv);return t[n][l]}for(var u=i|1<<n,h=n+1;i&1<<h;)h++;for(var c=0,d=0,f=0;s>d;d++){var p=1<<d;p&r||(c+=(f%2?-1:1)*t[n][d]*de(t,e-1,h,u,r|p,a),f++)}return a[o]=c,c}function fe(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=de(n,8,0,0,0,i);if(0!==r){for(var a=[],o=0;8>o;o++)for(var s=0;8>s;s++)null==a[s]&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*de(n,7,0===o?1:0,1<<o,1<<s,i)/r*e[o];return function(t,e,n){var i=e*a[6]+n*a[7]+1;t[0]=(e*a[0]+n*a[1]+a[2])/i,t[1]=(e*a[3]+n*a[4]+a[5])/i}}}function pe(t,e,n,i){return n=n||{},i||!Vg.canvasSupported?ge(t,e,n):Vg.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):ge(t,e,n),n}function ge(t,e,n){if(t.getBoundingClientRect&&Vg.domSupported){var i=e.clientX,r=e.clientY;if("CANVAS"===t.nodeName.toUpperCase()){var a=t.getBoundingClientRect();return n.zrX=i-a.left,void(n.zrY=r-a.top)}var o=t[dv]||(t[dv]={}),s=me(ve(t,o),o);if(s)return s(fv,i,r),n.zrX=fv[0],void(n.zrY=fv[1])}n.zrX=n.zrY=0}function ve(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],a=0;4>a;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position:absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","width:0","height:0",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(o),n.push(o)}return n}function me(t,e){for(var n=e.transformer,i=e.srcCoords,r=!0,a=[],o=[],s=0;4>s;s++){var l=t[s].getBoundingClientRect(),u=2*s,h=l.left,c=l.top;a.push(h,c),r&=i&&h===i[u]&&c===i[u+1],o.push(t[s].offsetLeft,t[s].offsetTop)}return r?n:(e.srcCoords=a,e.transformer=fe(a,o))}function ye(t,e,n){if(e=e||window.event,null!=e.zrX)return e;var i=e.type,r=i&&i.indexOf("touch")>=0;if(r){var a="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];a&&pe(t,a,e,n)}else pe(t,e,e,n),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var o=e.button;return null==e.which&&void 0!==o&&cv.test(e.type)&&(e.which=1&o?1:2&o?3:4&o?2:0),e}function _e(t,e,n){hv?t.addEventListener(e,n):t.attachEvent("on"+e,n)}function xe(t,e,n){hv?t.removeEventListener(e,n):t.detachEvent("on"+e,n)}function we(t){return 2===t.which||3===t.which}function be(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function Me(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function Se(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Ie}}function Ie(){pv(this.event)}function Te(){}function Ce(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i,r=t;r;){if(r.clipPath&&!r.clipPath.contain(e,n))return!1;r.silent&&(i=!0),r=r.parent}return i?mv:!0}return!1}function Ae(){var t=new xv(6);return De(t),t}function De(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function ke(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Pe(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],a=e[0]*n[2]+e[2]*n[3],o=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function Oe(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function Le(t,e,n){var i=e[0],r=e[2],a=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(n),h=Math.cos(n);return t[0]=i*h+o*u,t[1]=-i*u+o*h,t[2]=r*h+s*u,t[3]=-r*u+h*s,t[4]=h*a+u*l,t[5]=h*l-u*a,t}function ze(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function Be(t,e){var n=e[0],i=e[2],r=e[4],a=e[1],o=e[3],s=e[5],l=n*o-a*i;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-o*r)*l,t[5]=(a*r-n*s)*l,t):null}function Ee(t){var e=Ae();return ke(e,t),e}function Re(t){return t>Mv||-Mv>t}function Ne(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null==t.loop?!1:t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart,this._pausedTime=0,this._paused=!1}function Fe(t){return t=Math.round(t),0>t?0:t>255?255:t}function Ve(t){return t=Math.round(t),0>t?0:t>360?360:t}function He(t){return 0>t?0:t>1?1:t}function We(t){return Fe(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}function Ge(t){return He(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}function Ze(t,e,n){return 0>n?n+=1:n>1&&(n-=1),1>6*n?t+(e-t)*n*6:1>2*n?e:2>3*n?t+(e-t)*(2/3-n)*6:t}function Xe(t,e,n){return t+(e-t)*n}function Ye(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function Ue(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function qe(t,e){Rv&&Ue(Rv,e),Rv=Ev.put(t,Rv||e.slice())}function je(t,e){if(t){e=e||[];var n=Ev.get(t);if(n)return Ue(e,n);t+="";var i=t.replace(/ /g,"").toLowerCase();if(i in Bv)return Ue(e,Bv[i]),qe(t,e),e;if("#"!==i.charAt(0)){var r=i.indexOf("("),a=i.indexOf(")");if(-1!==r&&a+1===i.length){var o=i.substr(0,r),s=i.substr(r+1,a-(r+1)).split(","),l=1;switch(o){case"rgba":if(4!==s.length)return void Ye(e,0,0,0,1);l=Ge(s.pop());case"rgb":return 3!==s.length?void Ye(e,0,0,0,1):(Ye(e,We(s[0]),We(s[1]),We(s[2]),l),qe(t,e),e);case"hsla":return 4!==s.length?void Ye(e,0,0,0,1):(s[3]=Ge(s[3]),$e(s,e),qe(t,e),e);case"hsl":return 3!==s.length?void Ye(e,0,0,0,1):($e(s,e),qe(t,e),e);default:return}}Ye(e,0,0,0,1)}else{if(4===i.length){var u=parseInt(i.substr(1),16);return u>=0&&4095>=u?(Ye(e,(3840&u)>>4|(3840&u)>>8,240&u|(240&u)>>4,15&u|(15&u)<<4,1),qe(t,e),e):void Ye(e,0,0,0,1)}if(7===i.length){var u=parseInt(i.substr(1),16);return u>=0&&16777215>=u?(Ye(e,(16711680&u)>>16,(65280&u)>>8,255&u,1),qe(t,e),e):void Ye(e,0,0,0,1)}}}}function $e(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=Ge(t[1]),r=Ge(t[2]),a=.5>=r?r*(i+1):r+i-r*i,o=2*r-a;return e=e||[],Ye(e,Fe(255*Ze(o,a,n+1/3)),Fe(255*Ze(o,a,n)),Fe(255*Ze(o,a,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Ke(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(i,r,a),s=Math.max(i,r,a),l=s-o,u=(s+o)/2;if(0===l)e=0,n=0;else{n=.5>u?l/(s+o):l/(2-s-o);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,d=((s-a)/6+l/2)/l;i===s?e=d-c:r===s?e=1/3+h-d:a===s&&(e=2/3+c-h),0>e&&(e+=1),e>1&&(e-=1)}var f=[360*e,n,u];return null!=t[3]&&f.push(t[3]),f}}function Qe(t,e){var n=je(t);if(n){for(var i=0;3>i;i++)n[i]=0>e?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:t[i]<0&&(n[i]=0);return an(n,4===n.length?"rgba":"rgb")}}function Je(t){var e=je(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function tn(t,e,n){if(e&&e.length&&t>=0&&1>=t){n=n||[];var i=t*(e.length-1),r=Math.floor(i),a=Math.ceil(i),o=e[r],s=e[a],l=i-r;return n[0]=Fe(Xe(o[0],s[0],l)),n[1]=Fe(Xe(o[1],s[1],l)),n[2]=Fe(Xe(o[2],s[2],l)),n[3]=He(Xe(o[3],s[3],l)),n}}function en(t,e,n){if(e&&e.length&&t>=0&&1>=t){var i=t*(e.length-1),r=Math.floor(i),a=Math.ceil(i),o=je(e[r]),s=je(e[a]),l=i-r,u=an([Fe(Xe(o[0],s[0],l)),Fe(Xe(o[1],s[1],l)),Fe(Xe(o[2],s[2],l)),He(Xe(o[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:a,value:i}:u}}function nn(t,e,n,i){return t=je(t),t?(t=Ke(t),null!=e&&(t[0]=Ve(e)),null!=n&&(t[1]=Ge(n)),null!=i&&(t[2]=Ge(i)),an($e(t),"rgba")):void 0}function rn(t,e){return t=je(t),t&&null!=e?(t[3]=He(e),an(t,"rgba")):void 0}function an(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(n+=","+t[3]),e+"("+n+")"}}function on(t,e){return t[e]}function sn(t,e,n){t[e]=n}function ln(t,e,n){return(e-t)*n+t}function un(t,e,n){return n>.5?e:t}function hn(t,e,n,i,r){var a=t.length;if(1===r)for(var o=0;a>o;o++)i[o]=ln(t[o],e[o],n);else for(var s=a&&t[0].length,o=0;a>o;o++)for(var l=0;s>l;l++)i[o][l]=ln(t[o][l],e[o][l],n)}function cn(t,e,n){var i=t.length,r=e.length;if(i!==r){var a=i>r;if(a)t.length=r;else for(var o=i;r>o;o++)t.push(1===n?e[o]:Hv.call(e[o]))}for(var s=t[0]&&t[0].length,o=0;o<t.length;o++)if(1===n)isNaN(t[o])&&(t[o]=e[o]);else for(var l=0;s>l;l++)isNaN(t[o][l])&&(t[o][l]=e[o][l])}function dn(t,e,n){if(t===e)return!0;var i=t.length;if(i!==e.length)return!1;if(1===n){for(var r=0;i>r;r++)if(t[r]!==e[r])return!1}else for(var a=t[0].length,r=0;i>r;r++)for(var o=0;a>o;o++)if(t[r][o]!==e[r][o])return!1;return!0}function fn(t,e,n,i,r,a,o,s,l){var u=t.length;if(1===l)for(var h=0;u>h;h++)s[h]=pn(t[h],e[h],n[h],i[h],r,a,o);else for(var c=t[0].length,h=0;u>h;h++)for(var d=0;c>d;d++)s[h][d]=pn(t[h][d],e[h][d],n[h][d],i[h][d],r,a,o)}function pn(t,e,n,i,r,a,o){var s=.5*(n-t),l=.5*(i-e);return(2*(e-n)+s+l)*o+(-3*(e-n)-2*s-l)*a+s*r+e}function gn(t){if(d(t)){var e=t.length;if(d(t[0])){for(var n=[],i=0;e>i;i++)n.push(Hv.call(t[i]));return n}return Hv.call(t)}return t}function vn(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function mn(t){var e=t[t.length-1].value;return d(e&&e[0])?2:1}function yn(t,e,n,i,r,a){var o=t._getter,s=t._setter,l="spline"===e,u=i.length;if(u){var h,c=i[0].value,f=d(c),p=!1,g=!1,v=f?mn(i):0;i.sort(function(t,e){return t.time-e.time}),h=i[u-1].time;for(var m=[],y=[],_=i[0].value,x=!0,w=0;u>w;w++){m.push(i[w].time/h);var b=i[w].value;if(f&&dn(b,_,v)||!f&&b===_||(x=!1),_=b,"string"==typeof b){var M=je(b);M?(b=M,p=!0):g=!0}y.push(b)}if(a||!x){for(var S=y[u-1],w=0;u-1>w;w++)f?cn(y[w],S,v):!isNaN(y[w])||isNaN(S)||g||p||(y[w]=S);f&&cn(o(t._target,r),S,v);var I,T,C,A,D,k,P=0,O=0;if(p)var L=[0,0,0,0];var z=function(t,e){var n;if(0>e)n=0;else if(O>e){for(I=Math.min(P+1,u-1),n=I;n>=0&&!(m[n]<=e);n--);n=Math.min(n,u-2)}else{for(n=P;u>n&&!(m[n]>e);n++);n=Math.min(n-1,u-2)}P=n,O=e;var i=m[n+1]-m[n];if(0!==i)if(T=(e-m[n])/i,l)if(A=y[n],C=y[0===n?n:n-1],D=y[n>u-2?u-1:n+1],k=y[n>u-3?u-1:n+2],f)fn(C,A,D,k,T,T*T,T*T*T,o(t,r),v);else{var a;if(p)a=fn(C,A,D,k,T,T*T,T*T*T,L,1),a=vn(L);else{if(g)return un(A,D,T);a=pn(C,A,D,k,T,T*T,T*T*T)}s(t,r,a)}else if(f)hn(y[n],y[n+1],T,o(t,r),v);else{var a;if(p)hn(y[n],y[n+1],T,L,1),a=vn(L);else{if(g)return un(y[n],y[n+1],T);a=ln(y[n],y[n+1],T)}s(t,r,a)}},B=new Ne({target:t._target,life:h,loop:t._loop,delay:t._delay,onframe:z,ondestroy:n});return e&&"spline"!==e&&(B.easing=e),B}}}function _n(t,e,n,i,r,a,o,s){function l(){h--,h||a&&a()}b(i)?(a=r,r=i,i=0):w(r)?(a=r,r="linear",i=0):w(i)?(a=i,i=0):w(n)?(a=n,n=500):n||(n=500),t.stopAnimation(),xn(t,"",t,e,n,i,s);var u=t.animators.slice(),h=u.length;h||a&&a();for(var c=0;c<u.length;c++)u[c].done(l).start(r,o)}function xn(t,e,n,i,r,a,o){var s={},l=0;for(var u in i)i.hasOwnProperty(u)&&(null!=n[u]?M(i[u])&&!d(i[u])?xn(t,e?e+"."+u:u,n[u],i[u],r,a,o):(o?(s[u]=n[u],wn(t,e,u,i[u])):s[u]=i[u],l++):null==i[u]||o||wn(t,e,u,i[u]));l>0&&t.animate(e,!1).when(null==r?500:r,s).delay(a||0)}function wn(t,e,n,i){if(e){var r={};r[e]={},r[e][n]=i,t.attr(r)}else t.attr(n,i)}function bn(t,e,n,i){0>n&&(t+=n,n=-n),0>i&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}function Mn(t){for(var e=0;t>=tm;)e|=1&t,t>>=1;return t+e}function Sn(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;n>r&&i(t[r],t[r-1])<0;)r++;In(t,e,r)}else for(;n>r&&i(t[r],t[r-1])>=0;)r++;return r-e}function In(t,e,n){for(n--;n>e;){var i=t[e];t[e++]=t[n],t[n--]=i}}function Tn(t,e,n,i,r){for(i===e&&i++;n>i;i++){for(var a,o=t[i],s=e,l=i;l>s;)a=s+l>>>1,r(o,t[a])<0?l=a:s=a+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=o}}function Cn(t,e,n,i,r,a){var o=0,s=0,l=1;if(a(t,e[n+r])>0){for(s=i-r;s>l&&a(t,e[n+r+l])>0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),o+=r,l+=r}else{for(s=r+1;s>l&&a(t,e[n+r-l])<=0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=o;o=r-l,l=r-u}for(o++;l>o;){var h=o+(l-o>>>1);a(t,e[n+h])>0?o=h+1:l=h}return l}function An(t,e,n,i,r,a){var o=0,s=0,l=1;if(a(t,e[n+r])<0){for(s=r+1;s>l&&a(t,e[n+r-l])<0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=o;o=r-l,l=r-u}else{for(s=i-r;s>l&&a(t,e[n+r+l])>=0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),o+=r,l+=r}for(o++;l>o;){var h=o+(l-o>>>1);a(t,e[n+h])<0?l=h:o=h+1}return l}function Dn(t,e){function n(t,e){l[c]=t,u[c]=e,c+=1}function i(){for(;c>1;){var t=c-2;if(t>=1&&u[t-1]<=u[t]+u[t+1]||t>=2&&u[t-2]<=u[t]+u[t-1])u[t-1]<u[t+1]&&t--;else if(u[t]>u[t+1])break;a(t)}}function r(){for(;c>1;){var t=c-2;t>0&&u[t-1]<u[t+1]&&t--,a(t)}}function a(n){var i=l[n],r=u[n],a=l[n+1],h=u[n+1];u[n]=r+h,n===c-3&&(l[n+1]=l[n+2],u[n+1]=u[n+2]),c--;var d=An(t[a],t,i,r,0,e);i+=d,r-=d,0!==r&&(h=Cn(t[i+r-1],t,a,h,h-1,e),0!==h&&(h>=r?o(i,r,a,h):s(i,r,a,h)))}function o(n,i,r,a){var o=0;for(o=0;i>o;o++)d[o]=t[n+o];var s=0,l=r,u=n;if(t[u++]=t[l++],0!==--a){if(1===i){for(o=0;a>o;o++)t[u+o]=t[l+o];return void(t[u+a]=d[s])}for(var c,f,p,g=h;;){c=0,f=0,p=!1;do if(e(t[l],d[s])<0){if(t[u++]=t[l++],f++,c=0,0===--a){p=!0;break}}else if(t[u++]=d[s++],c++,f=0,1===--i){p=!0;break}while(g>(c|f));if(p)break;do{if(c=An(t[l],d,s,i,0,e),0!==c){for(o=0;c>o;o++)t[u+o]=d[s+o];if(u+=c,s+=c,i-=c,1>=i){p=!0;break}}if(t[u++]=t[l++],0===--a){p=!0;break}if(f=Cn(d[s],t,l,a,0,e),0!==f){for(o=0;f>o;o++)t[u+o]=t[l+o];if(u+=f,l+=f,a-=f,0===a){p=!0;break}}if(t[u++]=d[s++],1===--i){p=!0;break}g--}while(c>=em||f>=em);if(p)break;0>g&&(g=0),g+=2}if(h=g,1>h&&(h=1),1===i){for(o=0;a>o;o++)t[u+o]=t[l+o];t[u+a]=d[s]}else{if(0===i)throw new Error;for(o=0;i>o;o++)t[u+o]=d[s+o]}}else for(o=0;i>o;o++)t[u+o]=d[s+o]}function s(n,i,r,a){var o=0;for(o=0;a>o;o++)d[o]=t[r+o];var s=n+i-1,l=a-1,u=r+a-1,c=0,f=0;if(t[u--]=t[s--],0!==--i){if(1===a){for(u-=i,s-=i,f=u+1,c=s+1,o=i-1;o>=0;o--)t[f+o]=t[c+o];return void(t[u]=d[l])}for(var p=h;;){var g=0,v=0,m=!1;do if(e(d[l],t[s])<0){if(t[u--]=t[s--],g++,v=0,0===--i){m=!0;break}}else if(t[u--]=d[l--],v++,g=0,1===--a){m=!0;break}while(p>(g|v));if(m)break;do{if(g=i-An(d[l],t,n,i,i-1,e),0!==g){for(u-=g,s-=g,i-=g,f=u+1,c=s+1,o=g-1;o>=0;o--)t[f+o]=t[c+o];if(0===i){m=!0;break}}if(t[u--]=d[l--],1===--a){m=!0;break}if(v=a-Cn(t[s],d,0,a,a-1,e),0!==v){for(u-=v,l-=v,a-=v,f=u+1,c=l+1,o=0;v>o;o++)t[f+o]=d[c+o];if(1>=a){m=!0;break}}if(t[u--]=t[s--],0===--i){m=!0;break}p--}while(g>=em||v>=em);if(m)break;0>p&&(p=0),p+=2}if(h=p,1>h&&(h=1),1===a){for(u-=i,s-=i,f=u+1,c=s+1,o=i-1;o>=0;o--)t[f+o]=t[c+o];t[u]=d[l]}else{if(0===a)throw new Error;for(c=u-(a-1),o=0;a>o;o++)t[c+o]=d[o]}}else for(c=u-(a-1),o=0;a>o;o++)t[c+o]=d[o]}var l,u,h=em,c=0,d=[];l=[],u=[],this.mergeRuns=i,this.forceMergeRuns=r,this.pushRun=n}function kn(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(2>r)){var a=0;if(tm>r)return a=Sn(t,n,i,e),void Tn(t,n,i,n+a,e);var o=new Dn(t,e),s=Mn(r);do{if(a=Sn(t,n,i,e),s>a){var l=r;l>s&&(l=s),Tn(t,n,n+l,n+a,e),a=l}o.pushRun(n,a),o.mergeRuns(),r-=a,n+=a}while(0!==r);o.forceMergeRuns()}}function Pn(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function On(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,a=null==e.y?0:e.y,o=null==e.y2?0:e.y2;e.global||(i=i*n.width+n.x,r=r*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),i=isNaN(i)?0:i,r=isNaN(r)?1:r,a=isNaN(a)?0:a,o=isNaN(o)?0:o;var s=t.createLinearGradient(i,a,r,o);return s}function Ln(t,e,n){var i=n.width,r=n.height,a=Math.min(i,r),o=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;e.global||(o=o*i+n.x,s=s*r+n.y,l*=a);var u=t.createRadialGradient(o,s,0,o,s,l);return u}function zn(){return!1}function Bn(t,e,n){var i=Kg(),r=e.getWidth(),a=e.getHeight(),o=i.style;return o&&(o.position="absolute",o.left=0,o.top=0,o.width=r+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=a*n,i}function En(t){if("string"==typeof t){var e=gm.get(t);return e&&e.image}return t}function Rn(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var a=gm.get(t),o={hostEl:n,cb:i,cbPayload:r};return a?(e=a.image,!Fn(e)&&a.pending.push(o)):(e=new Image,e.onload=e.onerror=Nn,gm.put(t,e.__cachedImgObj={image:e,pending:[o]}),e.src=e.__zrImageSrc=t),e}return t}return e}function Nn(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function Fn(t){return t&&t.width&&t.height}function Vn(t,e){e=e||xm;var n=t+":"+e;if(vm[n])return vm[n];for(var i=(t+"").split("\n"),r=0,a=0,o=i.length;o>a;a++)r=Math.max(Qn(i[a],e).width,r);return mm>ym&&(mm=0,vm={}),mm++,vm[n]=r,r}function Hn(t,e,n,i,r,a,o,s){return o?Gn(t,e,n,i,r,a,o,s):Wn(t,e,n,i,r,a,s)}function Wn(t,e,n,i,r,a,o){var s=Jn(t,e,r,a,o),l=Vn(t,e);r&&(l+=r[1]+r[3]);var u=s.outerHeight,h=Zn(0,l,n),c=Xn(0,u,i),d=new bn(h,c,l,u);return d.lineHeight=s.lineHeight,d}function Gn(t,e,n,i,r,a,o,s){var l=ti(t,{rich:o,truncate:s,font:e,textAlign:n,textPadding:r,textLineHeight:a}),u=l.outerWidth,h=l.outerHeight,c=Zn(0,u,n),d=Xn(0,h,i);return new bn(c,d,u,h)}function Zn(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Xn(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function Yn(t,e,n){var i=e.textPosition,r=e.textDistance,a=n.x,o=n.y;r=r||0;var s=n.height,l=n.width,u=s/2,h="left",c="top";switch(i){case"left":a-=r,o+=u,h="right",c="middle";break;case"right":a+=r+l,o+=u,c="middle";break;case"top":a+=l/2,o-=r,h="center",c="bottom";break;case"bottom":a+=l/2,o+=s+r,h="center";break;case"inside":a+=l/2,o+=u,h="center",c="middle";break;case"insideLeft":a+=r,o+=u,c="middle";break;case"insideRight":a+=l-r,o+=u,h="right",c="middle";break;case"insideTop":a+=l/2,o+=r,h="center";break;case"insideBottom":a+=l/2,o+=s-r,h="center",c="bottom";break;case"insideTopLeft":a+=r,o+=r;break;case"insideTopRight":a+=l-r,o+=r,h="right";break;case"insideBottomLeft":a+=r,o+=s-r,c="bottom";break;case"insideBottomRight":a+=l-r,o+=s-r,h="right",c="bottom"}return t=t||{},t.x=a,t.y=o,t.textAlign=h,t.textVerticalAlign=c,t}function Un(t,e,n,i,r){if(!e)return"";var a=(t+"").split("\n");r=qn(e,n,i,r);for(var o=0,s=a.length;s>o;o++)a[o]=jn(a[o],r);return a.join("\n")}function qn(t,e,n,i){i=o({},i),i.font=e;var n=D(n,"...");i.maxIterations=D(i.maxIterations,2);var r=i.minChar=D(i.minChar,0);i.cnCharWidth=Vn("国",e);var a=i.ascCharWidth=Vn("a",e);i.placeholder=D(i.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;r>l&&s>=a;l++)s-=a;var u=Vn(n,e);return u>s&&(n="",u=0),s=t-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=t,i}function jn(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var a=Vn(t,i);if(n>=a)return t;for(var o=0;;o++){if(r>=a||o>=e.maxIterations){t+=e.ellipsis;break}var s=0===o?$n(t,r,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*r/a):0;t=t.substr(0,s),a=Vn(t,i)}return""===t&&(t=e.placeholder),t}function $n(t,e,n,i){for(var r=0,a=0,o=t.length;o>a&&e>r;a++){var s=t.charCodeAt(a);r+=s>=0&&127>=s?n:i}return a}function Kn(t){return Vn("国",t)}function Qn(t,e){return wm.measureText(t,e)}function Jn(t,e,n,i,r){null!=t&&(t+="");var a=D(i,Kn(e)),o=t?t.split("\n"):[],s=o.length*a,l=s,u=!0;if(n&&(l+=n[0]+n[2]),t&&r){u=!1;var h=r.outerHeight,c=r.outerWidth;if(null!=h&&l>h)t="",o=[];else if(null!=c)for(var d=qn(c-(n?n[1]+n[3]:0),e,r.ellipsis,{minChar:r.minChar,placeholder:r.placeholder}),f=0,p=o.length;p>f;f++)o[f]=jn(o[f],d)}return{lines:o,height:s,outerHeight:l,lineHeight:a,canCacheByTextString:u}}function ti(t,e){var n={lines:[],width:0,height:0};if(null!=t&&(t+=""),!t)return n;for(var i,r=_m.lastIndex=0;null!=(i=_m.exec(t));){var a=i.index;a>r&&ei(n,t.substring(r,a)),ei(n,i[2],i[1]),r=_m.lastIndex}r<t.length&&ei(n,t.substring(r,t.length));var o=n.lines,s=0,l=0,u=[],h=e.textPadding,c=e.truncate,d=c&&c.outerWidth,f=c&&c.outerHeight;h&&(null!=d&&(d-=h[1]+h[3]),null!=f&&(f-=h[0]+h[2]));for(var p=0;p<o.length;p++){for(var g=o[p],v=0,m=0,y=0;y<g.tokens.length;y++){var _=g.tokens[y],x=_.styleName&&e.rich[_.styleName]||{},w=_.textPadding=x.textPadding,b=_.font=x.font||e.font,M=_.textHeight=D(x.textHeight,Kn(b));if(w&&(M+=w[0]+w[2]),_.height=M,_.lineHeight=k(x.textLineHeight,e.textLineHeight,M),_.textAlign=x&&x.textAlign||e.textAlign,_.textVerticalAlign=x&&x.textVerticalAlign||"middle",null!=f&&s+_.lineHeight>f)return{lines:[],width:0,height:0};_.textWidth=Vn(_.text,b);var S=x.textWidth,I=null==S||"auto"===S;if("string"==typeof S&&"%"===S.charAt(S.length-1))_.percentWidth=S,u.push(_),S=0;else{if(I){S=_.textWidth;var T=x.textBackgroundColor,C=T&&T.image;C&&(C=En(C),Fn(C)&&(S=Math.max(S,C.width*M/C.height)))}var A=w?w[1]+w[3]:0;S+=A;var P=null!=d?d-m:null;null!=P&&S>P&&(!I||A>P?(_.text="",_.textWidth=S=0):(_.text=Un(_.text,P-A,b,c.ellipsis,{minChar:c.minChar}),_.textWidth=Vn(_.text,b),S=_.textWidth+A))}m+=_.width=S,x&&(v=Math.max(v,_.lineHeight))}g.width=m,g.lineHeight=v,s+=v,l=Math.max(l,m)}n.outerWidth=n.width=D(e.textWidth,l),n.outerHeight=n.height=D(e.textHeight,s),h&&(n.outerWidth+=h[1]+h[3],n.outerHeight+=h[0]+h[2]);for(var p=0;p<u.length;p++){var _=u[p],O=_.percentWidth;_.width=parseInt(O,10)/100*l}return n}function ei(t,e,n){for(var i=""===e,r=e.split("\n"),a=t.lines,o=0;o<r.length;o++){var s=r[o],l={styleName:n,text:s,isLineHolder:!s&&!i};if(o)a.push({tokens:[l]});else{var u=(a[a.length-1]||(a[0]={tokens:[]})).tokens,h=u.length;1===h&&u[0].isLineHolder?u[0]=l:(s||!h||i)&&u.push(l)}}}function ni(t){var e=(t.fontSize||t.fontFamily)&&[t.fontStyle,t.fontWeight,(t.fontSize||12)+"px",t.fontFamily||"sans-serif"].join(" ");return e&&z(e)||t.textFont||t.font}function ii(t,e){var n,i,r,a,o=e.x,s=e.y,l=e.width,u=e.height,h=e.r;0>l&&(o+=l,l=-l),0>u&&(s+=u,u=-u),"number"==typeof h?n=i=r=a=h:h instanceof Array?1===h.length?n=i=r=a=h[0]:2===h.length?(n=r=h[0],i=a=h[1]):3===h.length?(n=h[0],i=a=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],a=h[3]):n=i=r=a=0;var c;n+i>l&&(c=n+i,n*=l/c,i*=l/c),r+a>l&&(c=r+a,r*=l/c,a*=l/c),i+r>u&&(c=i+r,i*=u/c,r*=u/c),n+a>u&&(c=n+a,n*=u/c,a*=u/c),t.moveTo(o+n,s),t.lineTo(o+l-i,s),0!==i&&t.arc(o+l-i,s+i,i,-Math.PI/2,0),t.lineTo(o+l,s+u-r),0!==r&&t.arc(o+l-r,s+u-r,r,0,Math.PI/2),t.lineTo(o+a,s+u),0!==a&&t.arc(o+a,s+u-a,a,Math.PI/2,Math.PI),t.lineTo(o,s+n),0!==n&&t.arc(o+n,s+n,n,Math.PI,1.5*Math.PI)}function ri(t){return ai(t),f(t.rich,ai),t}function ai(t){if(t){t.font=ni(t);var e=t.textAlign;"middle"===e&&(e="center"),t.textAlign=null==e||Mm[e]?e:"left";var n=t.textVerticalAlign||t.textBaseline;"center"===n&&(n="middle"),t.textVerticalAlign=null==n||Sm[n]?n:"top";var i=t.textPadding;i&&(t.textPadding=O(t.textPadding))}}function oi(t,e,n,i,r,a){i.rich?li(t,e,n,i,r,a):si(t,e,n,i,r,a)}function si(t,e,n,i,r,a){var o,s=di(i),l=!1,u=e.__attrCachedBy===am.PLAIN_TEXT;a!==om?(a&&(o=a.style,l=!s&&u&&o),e.__attrCachedBy=s?am.NONE:am.PLAIN_TEXT):u&&(e.__attrCachedBy=am.NONE);var h=i.font||bm;l&&h===(o.font||bm)||(e.font=h);var c=t.__computedFont;t.__styleFont!==h&&(t.__styleFont=h,c=t.__computedFont=e.font);var d=i.textPadding,f=i.textLineHeight,p=t.__textCotentBlock;(!p||t.__dirtyText)&&(p=t.__textCotentBlock=Jn(n,c,d,f,i.truncate));var g=p.outerHeight,v=p.lines,m=p.lineHeight,y=gi(Cm,t,i,r),_=y.baseX,x=y.baseY,w=y.textAlign||"left",b=y.textVerticalAlign;hi(e,i,r,_,x);var M=Xn(x,g,b),S=_,I=M;if(s||d){var T=Vn(n,c),C=T;d&&(C+=d[1]+d[3]);var A=Zn(_,C,w);s&&fi(t,e,i,A,M,C,g),d&&(S=xi(_,w,d),I+=d[0])}e.textAlign=w,e.textBaseline="middle",e.globalAlpha=i.opacity||1;for(var D=0;D<Im.length;D++){var k=Im[D],P=k[0],O=k[1],L=i[P];l&&L===o[P]||(e[O]=rm(e,O,L||k[2]))}I+=m/2;var z=i.textStrokeWidth,B=l?o.textStrokeWidth:null,E=!l||z!==B,R=!l||E||i.textStroke!==o.textStroke,N=mi(i.textStroke,z),F=yi(i.textFill);if(N&&(E&&(e.lineWidth=z),R&&(e.strokeStyle=N)),F&&(l&&i.textFill===o.textFill||(e.fillStyle=F)),1===v.length)N&&e.strokeText(v[0],S,I),F&&e.fillText(v[0],S,I);else for(var D=0;D<v.length;D++)N&&e.strokeText(v[D],S,I),F&&e.fillText(v[D],S,I),I+=m}function li(t,e,n,i,r,a){a!==om&&(e.__attrCachedBy=am.NONE);var o=t.__textCotentBlock;(!o||t.__dirtyText)&&(o=t.__textCotentBlock=ti(n,i)),ui(t,e,o,i,r)}function ui(t,e,n,i,r){var a=n.width,o=n.outerWidth,s=n.outerHeight,l=i.textPadding,u=gi(Cm,t,i,r),h=u.baseX,c=u.baseY,d=u.textAlign,f=u.textVerticalAlign;hi(e,i,r,h,c);var p=Zn(h,o,d),g=Xn(c,s,f),v=p,m=g;l&&(v+=l[3],m+=l[0]);var y=v+a;di(i)&&fi(t,e,i,p,g,o,s);for(var _=0;_<n.lines.length;_++){for(var x,w=n.lines[_],b=w.tokens,M=b.length,S=w.lineHeight,I=w.width,T=0,C=v,A=y,D=M-1;M>T&&(x=b[T],!x.textAlign||"left"===x.textAlign);)ci(t,e,x,i,S,m,C,"left"),I-=x.width,C+=x.width,T++;for(;D>=0&&(x=b[D],"right"===x.textAlign);)ci(t,e,x,i,S,m,A,"right"),I-=x.width,A-=x.width,D--;for(C+=(a-(C-v)-(y-A)-I)/2;D>=T;)x=b[T],ci(t,e,x,i,S,m,C+x.width/2,"center"),C+=x.width,T++;m+=S}}function hi(t,e,n,i,r){if(n&&e.textRotation){var a=e.textOrigin;"center"===a?(i=n.width/2+n.x,r=n.height/2+n.y):a&&(i=a[0]+n.x,r=a[1]+n.y),t.translate(i,r),t.rotate(-e.textRotation),t.translate(-i,-r)}}function ci(t,e,n,i,r,a,o,s){var l=i.rich[n.styleName]||{};l.text=n.text;var u=n.textVerticalAlign,h=a+r/2;"top"===u?h=a+n.height/2:"bottom"===u&&(h=a+r-n.height/2),!n.isLineHolder&&di(l)&&fi(t,e,l,"right"===s?o-n.width:"center"===s?o-n.width/2:o,h-n.height/2,n.width,n.height);var c=n.textPadding;c&&(o=xi(o,s,c),h-=n.height/2-c[2]-n.textHeight/2),vi(e,"shadowBlur",k(l.textShadowBlur,i.textShadowBlur,0)),vi(e,"shadowColor",l.textShadowColor||i.textShadowColor||"transparent"),vi(e,"shadowOffsetX",k(l.textShadowOffsetX,i.textShadowOffsetX,0)),vi(e,"shadowOffsetY",k(l.textShadowOffsetY,i.textShadowOffsetY,0)),vi(e,"textAlign",s),vi(e,"textBaseline","middle"),vi(e,"font",n.font||bm);
 
- var d=mi(l.textStroke||i.textStroke,p),f=yi(l.textFill||i.textFill),p=D(l.textStrokeWidth,i.textStrokeWidth);d&&(vi(e,"lineWidth",p),vi(e,"strokeStyle",d),e.strokeText(n.text,o,h)),f&&(vi(e,"fillStyle",f),e.fillText(n.text,o,h))}function di(t){return!!(t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor)}function fi(t,e,n,i,r,a,o){var s=n.textBackgroundColor,l=n.textBorderWidth,u=n.textBorderColor,h=b(s);if(vi(e,"shadowBlur",n.textBoxShadowBlur||0),vi(e,"shadowColor",n.textBoxShadowColor||"transparent"),vi(e,"shadowOffsetX",n.textBoxShadowOffsetX||0),vi(e,"shadowOffsetY",n.textBoxShadowOffsetY||0),h||l&&u){e.beginPath();var c=n.textBorderRadius;c?ii(e,{x:i,y:r,width:a,height:o,r:c}):e.rect(i,r,a,o),e.closePath()}if(h)if(vi(e,"fillStyle",s),null!=n.fillOpacity){var d=e.globalAlpha;e.globalAlpha=n.fillOpacity*n.opacity,e.fill(),e.globalAlpha=d}else e.fill();else if(M(s)){var f=s.image;f=Rn(f,null,t,pi,s),f&&Fn(f)&&e.drawImage(f,i,r,a,o)}if(l&&u)if(vi(e,"lineWidth",l),vi(e,"strokeStyle",u),null!=n.strokeOpacity){var d=e.globalAlpha;e.globalAlpha=n.strokeOpacity*n.opacity,e.stroke(),e.globalAlpha=d}else e.stroke()}function pi(t,e){e.image=t}function gi(t,e,n,i){var r=n.x||0,a=n.y||0,o=n.textAlign,s=n.textVerticalAlign;if(i){var l=n.textPosition;if(l instanceof Array)r=i.x+_i(l[0],i.width),a=i.y+_i(l[1],i.height);else{var u=e&&e.calculateTextPosition?e.calculateTextPosition(Tm,n,i):Yn(Tm,n,i);r=u.x,a=u.y,o=o||u.textAlign,s=s||u.textVerticalAlign}var h=n.textOffset;h&&(r+=h[0],a+=h[1])}return t=t||{},t.baseX=r,t.baseY=a,t.textAlign=o,t.textVerticalAlign=s,t}function vi(t,e,n){return t[e]=rm(t,e,n),t[e]}function mi(t,e){return null==t||0>=e||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function yi(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function _i(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function xi(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function wi(t,e){return null!=t&&(t||e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor||e.textPadding)}function bi(t){t=t||{},jv.call(this,t);for(var e in t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new lm(t.style,this),this._rect=null,this.__clipPaths=null}function Mi(t){bi.call(this,t)}function Si(t){return parseInt(t,10)}function Ii(t){return t?t.__builtin__?!0:"function"!=typeof t.resize||"function"!=typeof t.refresh?!1:!0:!1}function Ti(t,e,n){return zm.copy(t.getBoundingRect()),t.transform&&zm.applyTransform(t.transform),Bm.width=e,Bm.height=n,!zm.intersect(Bm)}function Ci(t,e){if(t===e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function Ai(t,e){for(var n=0;n<t.length;n++){var i=t[n];i.setTransform(e),e.beginPath(),i.buildPath(e,i.shape),e.clip(),i.restoreTransform(e)}}function Di(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}function ki(t){return"mousewheel"===t&&Vg.browser.firefox?"DOMMouseScroll":t}function Pi(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout(function(){t._touching=!1},700)}function Oi(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Li(t){function e(t,e){return function(){return e._touching?void 0:t.apply(e,arguments)}}f(Vm,function(e){t._handlers[e]=y(Gm[e],t)}),f(Wm,function(e){t._handlers[e]=y(Gm[e],t)}),f(Fm,function(n){t._handlers[n]=e(Gm[n],t)})}function zi(t){function e(e,n){f(e,function(e){_e(t,ki(e),n._handlers[e])},n)}lv.call(this),this.dom=t,this._touching=!1,this._touchTimer,this._handlers={},Li(this),Vg.pointerEventsSupported?e(Wm,this):(Vg.touchEventsSupported&&e(Vm,this),e(Fm,this))}function Bi(t,e){var n=new jm(Ng(),t,e);return Um[n.id]=n,n}function Ei(t){if(t)t.dispose();else{for(var e in Um)Um.hasOwnProperty(e)&&Um[e].dispose();Um={}}return this}function Ri(t){return Um[t]}function Ni(t,e){Ym[t]=e}function Fi(t){delete Um[t]}function Vi(t){return t instanceof Array?t:null==t?[]:[t]}function Hi(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;r>i;i++){var a=n[i];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}function Wi(t){return!Qm(t)||Jm(t)||t instanceof Date?t:t.value}function Gi(t){return Qm(t)&&!(t instanceof Array)}function Zi(t,e){e=(e||[]).slice();var n=p(t||[],function(t){return{exist:t}});return Km(e,function(t,i){if(Qm(t)){for(var r=0;r<n.length;r++)if(!n[r].option&&null!=t.id&&n[r].exist.id===t.id+"")return n[r].option=t,void(e[i]=null);for(var r=0;r<n.length;r++){var a=n[r].exist;if(!(n[r].option||null!=a.id&&null!=t.id||null==t.name||Ui(t)||Ui(a)||a.name!==t.name+""))return n[r].option=t,void(e[i]=null)}}}),Km(e,function(t){if(Qm(t)){for(var e=0;e<n.length;e++){var i=n[e].exist;if(!n[e].option&&!Ui(i)&&null==t.id){n[e].option=t;break}}e>=n.length&&n.push({option:t})}}),n}function Xi(t){var e=N();Km(t,function(t){var n=t.exist;n&&e.set(n.id,t)}),Km(t,function(t){var n=t.option;L(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),Km(t,function(t,n){var i=t.exist,r=t.option,a=t.keyInfo;if(Qm(r)){if(a.name=null!=r.name?r.name+"":i?i.name:ty+n,i)a.id=i.id;else if(null!=r.id)a.id=r.id+"";else{var o=0;do a.id="\x00"+a.name+"\x00"+o++;while(e.get(a.id))}e.set(a.id,t)}})}function Yi(t){var e=t.name;return!(!e||!e.indexOf(ty))}function Ui(t){return Qm(t)&&t.id&&0===(t.id+"").indexOf("\x00_ec_\x00")}function qi(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?x(e.dataIndex)?p(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?x(e.name)?p(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function ji(){var t="__\x00ec_inner_"+ny++ +"_"+Math.random().toFixed(5);return function(e){return e[t]||(e[t]={})}}function $i(t,e,n){if(b(e)){var i={};i[e+"Index"]=0,e=i}var r=n&&n.defaultMainType;!r||Ki(e,r+"Index")||Ki(e,r+"Id")||Ki(e,r+"Name")||(e[r+"Index"]=0);var a={};return Km(e,function(i,r){var i=e[r];if("dataIndex"===r||"dataIndexInside"===r)return void(a[r]=i);var o=r.match(/^(\w+)(Index|Id|Name)$/)||[],s=o[1],l=(o[2]||"").toLowerCase();if(!(!s||!l||null==i||"index"===l&&"none"===i||n&&n.includeMainTypes&&u(n.includeMainTypes,s)<0)){var h={mainType:s};("index"!==l||"all"!==i)&&(h[l]=i);var c=t.queryComponents(h);a[s+"Models"]=c,a[s+"Model"]=c[0]}}),a}function Ki(t,e){return t&&t.hasOwnProperty(e)}function Qi(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function Ji(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function tr(t){return"auto"===t?Vg.domSupported?"html":"richText":t||"html"}function er(t){var e={main:"",sub:""};return t&&(t=t.split(iy),e.main=t[0]||"",e.sub=t[1]||""),e}function nr(t){L(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function ir(t){t.$constructor=t,t.extend=function(t){var e=this,n=function(){t.$constructor?t.$constructor.apply(this,arguments):e.apply(this,arguments)};return o(n.prototype,t),n.extend=this.extend,n.superCall=ar,n.superApply=or,h(n,this),n.superClass=e,n}}function rr(t){var e=["__\x00is_clz",ay++,Math.random().toFixed(3)].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function ar(t,e){var n=P(arguments,2);return this.superClass.prototype[e].apply(t,n)}function or(t,e,n){return this.superClass.prototype[e].apply(t,n)}function sr(t,e){function n(t){var e=i[t.main];return e&&e[ry]||(e=i[t.main]={},e[ry]=!0),e}e=e||{};var i={};if(t.registerClass=function(t,e){if(e)if(nr(e),e=er(e),e.sub){if(e.sub!==ry){var r=n(e);r[e.sub]=t}}else i[e.main]=t;return t},t.getClass=function(t,e,n){var r=i[t];if(r&&r[ry]&&(r=e?r[e]:null),n&&!r)throw new Error(e?"Component "+t+"."+(e||"")+" not exists. Load it first.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){t=er(t);var e=[],n=i[t.main];return n&&n[ry]?f(n,function(t,n){n!==ry&&e.push(t)}):e.push(n),e},t.hasClass=function(t){return t=er(t),!!i[t.main]},t.getAllClassMainTypes=function(){var t=[];return f(i,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){t=er(t);var e=i[t.main];return e&&e[ry]},t.parseClassType=er,e.registerWhenExtend){var r=t.extend;r&&(t.extend=function(e){var n=r.call(this,e);return t.registerClass(n,e.type)})}return t}function lr(t){return t>-fy&&fy>t}function ur(t){return t>fy||-fy>t}function hr(t,e,n,i,r){var a=1-r;return a*a*(a*t+3*r*e)+r*r*(r*i+3*a*n)}function cr(t,e,n,i,r){var a=1-r;return 3*(((e-t)*a+2*(n-e)*r)*a+(i-n)*r*r)}function dr(t,e,n,i,r,a){var o=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*o*l,c=s*l-9*o*u,d=l*l-3*s*u,f=0;if(lr(h)&&lr(c))if(lr(s))a[0]=0;else{var p=-l/s;p>=0&&1>=p&&(a[f++]=p)}else{var g=c*c-4*h*d;if(lr(g)){var v=c/h,p=-s/o+v,m=-v/2;p>=0&&1>=p&&(a[f++]=p),m>=0&&1>=m&&(a[f++]=m)}else if(g>0){var y=dy(g),_=h*s+1.5*o*(-c+y),x=h*s+1.5*o*(-c-y);_=0>_?-cy(-_,vy):cy(_,vy),x=0>x?-cy(-x,vy):cy(x,vy);var p=(-s-(_+x))/(3*o);p>=0&&1>=p&&(a[f++]=p)}else{var w=(2*h*s-3*o*c)/(2*dy(h*h*h)),b=Math.acos(w)/3,M=dy(h),S=Math.cos(b),p=(-s-2*M*S)/(3*o),m=(-s+M*(S+gy*Math.sin(b)))/(3*o),I=(-s+M*(S-gy*Math.sin(b)))/(3*o);p>=0&&1>=p&&(a[f++]=p),m>=0&&1>=m&&(a[f++]=m),I>=0&&1>=I&&(a[f++]=I)}}return f}function fr(t,e,n,i,r){var a=6*n-12*e+6*t,o=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(lr(o)){if(ur(a)){var u=-s/a;u>=0&&1>=u&&(r[l++]=u)}}else{var h=a*a-4*o*s;if(lr(h))r[0]=-a/(2*o);else if(h>0){var c=dy(h),u=(-a+c)/(2*o),d=(-a-c)/(2*o);u>=0&&1>=u&&(r[l++]=u),d>=0&&1>=d&&(r[l++]=d)}}return l}function pr(t,e,n,i,r,a){var o=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-o)*r+o,h=(l-s)*r+s,c=(h-u)*r+u;a[0]=t,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=h,a[6]=l,a[7]=i}function gr(t,e,n,i,r,a,o,s,l,u,h){var c,d,f,p,g,v=.005,m=1/0;my[0]=l,my[1]=u;for(var y=0;1>y;y+=.05)yy[0]=hr(t,n,r,o,y),yy[1]=hr(e,i,a,s,y),p=av(my,yy),m>p&&(c=y,m=p);m=1/0;for(var _=0;32>_&&!(py>v);_++)d=c-v,f=c+v,yy[0]=hr(t,n,r,o,d),yy[1]=hr(e,i,a,s,d),p=av(yy,my),d>=0&&m>p?(c=d,m=p):(_y[0]=hr(t,n,r,o,f),_y[1]=hr(e,i,a,s,f),g=av(_y,my),1>=f&&m>g?(c=f,m=g):v*=.5);return h&&(h[0]=hr(t,n,r,o,c),h[1]=hr(e,i,a,s,c)),dy(m)}function vr(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function mr(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function yr(t,e,n,i,r){var a=t-2*e+n,o=2*(e-t),s=t-i,l=0;if(lr(a)){if(ur(o)){var u=-s/o;u>=0&&1>=u&&(r[l++]=u)}}else{var h=o*o-4*a*s;if(lr(h)){var u=-o/(2*a);u>=0&&1>=u&&(r[l++]=u)}else if(h>0){var c=dy(h),u=(-o+c)/(2*a),d=(-o-c)/(2*a);u>=0&&1>=u&&(r[l++]=u),d>=0&&1>=d&&(r[l++]=d)}}return l}function _r(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function xr(t,e,n,i,r){var a=(e-t)*i+t,o=(n-e)*i+e,s=(o-a)*i+a;r[0]=t,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=n}function wr(t,e,n,i,r,a,o,s,l){var u,h=.005,c=1/0;my[0]=o,my[1]=s;for(var d=0;1>d;d+=.05){yy[0]=vr(t,n,r,d),yy[1]=vr(e,i,a,d);var f=av(my,yy);c>f&&(u=d,c=f)}c=1/0;for(var p=0;32>p&&!(py>h);p++){var g=u-h,v=u+h;yy[0]=vr(t,n,r,g),yy[1]=vr(e,i,a,g);var f=av(yy,my);if(g>=0&&c>f)u=g,c=f;else{_y[0]=vr(t,n,r,v),_y[1]=vr(e,i,a,v);var m=av(_y,my);1>=v&&c>m?(u=v,c=m):h*=.5}}return l&&(l[0]=vr(t,n,r,u),l[1]=vr(e,i,a,u)),dy(c)}function br(t,e,n){if(0!==t.length){var i,r=t[0],a=r[0],o=r[0],s=r[1],l=r[1];for(i=1;i<t.length;i++)r=t[i],a=xy(a,r[0]),o=wy(o,r[0]),s=xy(s,r[1]),l=wy(l,r[1]);e[0]=a,e[1]=s,n[0]=o,n[1]=l}}function Mr(t,e,n,i,r,a){r[0]=xy(t,n),r[1]=xy(e,i),a[0]=wy(t,n),a[1]=wy(e,i)}function Sr(t,e,n,i,r,a,o,s,l,u){var h,c=fr,d=hr,f=c(t,n,r,o,Ay);for(l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0,h=0;f>h;h++){var p=d(t,n,r,o,Ay[h]);l[0]=xy(p,l[0]),u[0]=wy(p,u[0])}for(f=c(e,i,a,s,Dy),h=0;f>h;h++){var g=d(e,i,a,s,Dy[h]);l[1]=xy(g,l[1]),u[1]=wy(g,u[1])}l[0]=xy(t,l[0]),u[0]=wy(t,u[0]),l[0]=xy(o,l[0]),u[0]=wy(o,u[0]),l[1]=xy(e,l[1]),u[1]=wy(e,u[1]),l[1]=xy(s,l[1]),u[1]=wy(s,u[1])}function Ir(t,e,n,i,r,a,o,s){var l=_r,u=vr,h=wy(xy(l(t,n,r),1),0),c=wy(xy(l(e,i,a),1),0),d=u(t,n,r,h),f=u(e,i,a,c);o[0]=xy(t,r,d),o[1]=xy(e,a,f),s[0]=wy(t,r,d),s[1]=wy(e,a,f)}function Tr(t,e,n,i,r,a,o,s,l){var u=oe,h=se,c=Math.abs(r-a);if(1e-4>c%Sy&&c>1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(Iy[0]=My(r)*n+t,Iy[1]=by(r)*i+e,Ty[0]=My(a)*n+t,Ty[1]=by(a)*i+e,u(s,Iy,Ty),h(l,Iy,Ty),r%=Sy,0>r&&(r+=Sy),a%=Sy,0>a&&(a+=Sy),r>a&&!o?a+=Sy:a>r&&o&&(r+=Sy),o){var d=a;a=r,r=d}for(var f=0;a>f;f+=Math.PI/2)f>r&&(Cy[0]=My(f)*n+t,Cy[1]=by(f)*i+e,u(s,Cy,s),h(l,Cy,l))}function Cr(t,e,n,i,r,a,o){if(0===r)return!1;var s=r,l=0,u=t;if(o>e+s&&o>i+s||e-s>o&&i-s>o||a>t+s&&a>n+s||t-s>a&&n-s>a)return!1;if(t===n)return Math.abs(a-t)<=s/2;l=(e-i)/(t-n),u=(t*i-n*e)/(t-n);var h=l*a-o+u,c=h*h/(l*l+1);return s/2*s/2>=c}function Ar(t,e,n,i,r,a,o,s,l,u,h){if(0===l)return!1;var c=l;if(h>e+c&&h>i+c&&h>a+c&&h>s+c||e-c>h&&i-c>h&&a-c>h&&s-c>h||u>t+c&&u>n+c&&u>r+c&&u>o+c||t-c>u&&n-c>u&&r-c>u&&o-c>u)return!1;var d=gr(t,e,n,i,r,a,o,s,u,h,null);return c/2>=d}function Dr(t,e,n,i,r,a,o,s,l){if(0===o)return!1;var u=o;if(l>e+u&&l>i+u&&l>a+u||e-u>l&&i-u>l&&a-u>l||s>t+u&&s>n+u&&s>r+u||t-u>s&&n-u>s&&r-u>s)return!1;var h=wr(t,e,n,i,r,a,s,l,null);return u/2>=h}function kr(t){return t%=Gy,0>t&&(t+=Gy),t}function Pr(t,e,n,i,r,a,o,s,l){if(0===o)return!1;var u=o;s-=t,l-=e;var h=Math.sqrt(s*s+l*l);if(h-u>n||n>h+u)return!1;if(Math.abs(i-r)%Zy<1e-4)return!0;if(a){var c=i;i=kr(r),r=kr(c)}else i=kr(i),r=kr(r);i>r&&(r+=Zy);var d=Math.atan2(l,s);return 0>d&&(d+=Zy),d>=i&&r>=d||d+Zy>=i&&r>=d+Zy}function Or(t,e,n,i,r,a){if(a>e&&a>i||e>a&&i>a)return 0;if(i===e)return 0;var o=e>i?1:-1,s=(a-e)/(i-e);(1===s||0===s)&&(o=e>i?.5:-.5);var l=s*(n-t)+t;return l===r?1/0:l>r?o:0}function Lr(t,e){return Math.abs(t-e)<Uy}function zr(){var t=jy[0];jy[0]=jy[1],jy[1]=t}function Br(t,e,n,i,r,a,o,s,l,u){if(u>e&&u>i&&u>a&&u>s||e>u&&i>u&&a>u&&s>u)return 0;var h=dr(e,i,a,s,u,qy);if(0===h)return 0;for(var c,d,f=0,p=-1,g=0;h>g;g++){var v=qy[g],m=0===v||1===v?.5:1,y=hr(t,n,r,o,v);l>y||(0>p&&(p=fr(e,i,a,s,jy),jy[1]<jy[0]&&p>1&&zr(),c=hr(e,i,a,s,jy[0]),p>1&&(d=hr(e,i,a,s,jy[1]))),f+=2===p?v<jy[0]?e>c?m:-m:v<jy[1]?c>d?m:-m:d>s?m:-m:v<jy[0]?e>c?m:-m:c>s?m:-m)}return f}function Er(t,e,n,i,r,a,o,s){if(s>e&&s>i&&s>a||e>s&&i>s&&a>s)return 0;var l=yr(e,i,a,s,qy);if(0===l)return 0;var u=_r(e,i,a);if(u>=0&&1>=u){for(var h=0,c=vr(e,i,a,u),d=0;l>d;d++){var f=0===qy[d]||1===qy[d]?.5:1,p=vr(t,n,r,qy[d]);o>p||(h+=qy[d]<u?e>c?f:-f:c>a?f:-f)}return h}var f=0===qy[0]||1===qy[0]?.5:1,p=vr(t,n,r,qy[0]);return o>p?0:e>a?f:-f}function Rr(t,e,n,i,r,a,o,s){if(s-=e,s>n||-n>s)return 0;var l=Math.sqrt(n*n-s*s);qy[0]=-l,qy[1]=l;var u=Math.abs(i-r);if(1e-4>u)return 0;if(1e-4>u%Yy){i=0,r=Yy;var h=a?1:-1;return o>=qy[0]+t&&o<=qy[1]+t?h:0}if(a){var l=i;i=kr(r),r=kr(l)}else i=kr(i),r=kr(r);i>r&&(r+=Yy);for(var c=0,d=0;2>d;d++){var f=qy[d];if(f+t>o){var p=Math.atan2(s,f),h=a?1:-1;0>p&&(p=Yy+p),(p>=i&&r>=p||p+Yy>=i&&r>=p+Yy)&&(p>Math.PI/2&&p<1.5*Math.PI&&(h=-h),c+=h)}}return c}function Nr(t,e,n,i,r){for(var a=0,o=0,s=0,l=0,u=0,h=0;h<t.length;){var c=t[h++];switch(c===Xy.M&&h>1&&(n||(a+=Or(o,s,l,u,i,r))),1===h&&(o=t[h],s=t[h+1],l=o,u=s),c){case Xy.M:l=t[h++],u=t[h++],o=l,s=u;break;case Xy.L:if(n){if(Cr(o,s,t[h],t[h+1],e,i,r))return!0}else a+=Or(o,s,t[h],t[h+1],i,r)||0;o=t[h++],s=t[h++];break;case Xy.C:if(n){if(Ar(o,s,t[h++],t[h++],t[h++],t[h++],t[h],t[h+1],e,i,r))return!0}else a+=Br(o,s,t[h++],t[h++],t[h++],t[h++],t[h],t[h+1],i,r)||0;o=t[h++],s=t[h++];break;case Xy.Q:if(n){if(Dr(o,s,t[h++],t[h++],t[h],t[h+1],e,i,r))return!0}else a+=Er(o,s,t[h++],t[h++],t[h],t[h+1],i,r)||0;o=t[h++],s=t[h++];break;case Xy.A:var d=t[h++],f=t[h++],p=t[h++],g=t[h++],v=t[h++],m=t[h++];h+=1;var y=1-t[h++],_=Math.cos(v)*p+d,x=Math.sin(v)*g+f;h>1?a+=Or(o,s,_,x,i,r):(l=_,u=x);var w=(i-d)*g/p+d;if(n){if(Pr(d,f,g,v,v+m,y,e,w,r))return!0}else a+=Rr(d,f,g,v,v+m,y,w,r);o=Math.cos(v+m)*p+d,s=Math.sin(v+m)*g+f;break;case Xy.R:l=o=t[h++],u=s=t[h++];var b=t[h++],M=t[h++],_=l+b,x=u+M;if(n){if(Cr(l,u,_,u,e,i,r)||Cr(_,u,_,x,e,i,r)||Cr(_,x,l,x,e,i,r)||Cr(l,x,l,u,e,i,r))return!0}else a+=Or(_,u,_,x,i,r),a+=Or(l,x,l,u,i,r);break;case Xy.Z:if(n){if(Cr(o,s,l,u,e,i,r))return!0}else a+=Or(o,s,l,u,i,r);o=l,s=u}}return n||Lr(s,u)||(a+=Or(o,s,l,u,i,r)||0),0!==a}function Fr(t,e,n){return Nr(t,0,!1,e,n)}function Vr(t,e,n,i){return Nr(t,e,!0,n,i)}function Hr(t){bi.call(this,t),this.path=null}function Wr(t,e,n,i,r,a,o,s,l,u,h){var c=l*(s_/180),d=o_(c)*(t-n)/2+a_(c)*(e-i)/2,f=-1*a_(c)*(t-n)/2+o_(c)*(e-i)/2,p=d*d/(o*o)+f*f/(s*s);p>1&&(o*=r_(p),s*=r_(p));var g=(r===a?-1:1)*r_((o*o*s*s-o*o*f*f-s*s*d*d)/(o*o*f*f+s*s*d*d))||0,v=g*o*f/s,m=g*-s*d/o,y=(t+n)/2+o_(c)*v-a_(c)*m,_=(e+i)/2+a_(c)*v+o_(c)*m,x=h_([1,0],[(d-v)/o,(f-m)/s]),w=[(d-v)/o,(f-m)/s],b=[(-1*d-v)/o,(-1*f-m)/s],M=h_(w,b);u_(w,b)<=-1&&(M=s_),u_(w,b)>=1&&(M=0),0===a&&M>0&&(M-=2*s_),1===a&&0>M&&(M+=2*s_),h.addData(u,y,_,o,s,x,M,c,a)}function Gr(t){if(!t)return new Wy;for(var e,n=0,i=0,r=n,a=i,o=new Wy,s=Wy.CMD,l=t.match(c_),u=0;u<l.length;u++){for(var h,c=l[u],d=c.charAt(0),f=c.match(d_)||[],p=f.length,g=0;p>g;g++)f[g]=parseFloat(f[g]);for(var v=0;p>v;){var m,y,_,x,w,b,M,S=n,I=i;switch(d){case"l":n+=f[v++],i+=f[v++],h=s.L,o.addData(h,n,i);break;case"L":n=f[v++],i=f[v++],h=s.L,o.addData(h,n,i);break;case"m":n+=f[v++],i+=f[v++],h=s.M,o.addData(h,n,i),r=n,a=i,d="l";break;case"M":n=f[v++],i=f[v++],h=s.M,o.addData(h,n,i),r=n,a=i,d="L";break;case"h":n+=f[v++],h=s.L,o.addData(h,n,i);break;case"H":n=f[v++],h=s.L,o.addData(h,n,i);break;case"v":i+=f[v++],h=s.L,o.addData(h,n,i);break;case"V":i=f[v++],h=s.L,o.addData(h,n,i);break;case"C":h=s.C,o.addData(h,f[v++],f[v++],f[v++],f[v++],f[v++],f[v++]),n=f[v-2],i=f[v-1];break;case"c":h=s.C,o.addData(h,f[v++]+n,f[v++]+i,f[v++]+n,f[v++]+i,f[v++]+n,f[v++]+i),n+=f[v-2],i+=f[v-1];break;case"S":m=n,y=i;var T=o.len(),C=o.data;e===s.C&&(m+=n-C[T-4],y+=i-C[T-3]),h=s.C,S=f[v++],I=f[v++],n=f[v++],i=f[v++],o.addData(h,m,y,S,I,n,i);break;case"s":m=n,y=i;var T=o.len(),C=o.data;e===s.C&&(m+=n-C[T-4],y+=i-C[T-3]),h=s.C,S=n+f[v++],I=i+f[v++],n+=f[v++],i+=f[v++],o.addData(h,m,y,S,I,n,i);break;case"Q":S=f[v++],I=f[v++],n=f[v++],i=f[v++],h=s.Q,o.addData(h,S,I,n,i);break;case"q":S=f[v++]+n,I=f[v++]+i,n+=f[v++],i+=f[v++],h=s.Q,o.addData(h,S,I,n,i);break;case"T":m=n,y=i;var T=o.len(),C=o.data;e===s.Q&&(m+=n-C[T-4],y+=i-C[T-3]),n=f[v++],i=f[v++],h=s.Q,o.addData(h,m,y,n,i);break;case"t":m=n,y=i;var T=o.len(),C=o.data;e===s.Q&&(m+=n-C[T-4],y+=i-C[T-3]),n+=f[v++],i+=f[v++],h=s.Q,o.addData(h,m,y,n,i);break;case"A":_=f[v++],x=f[v++],w=f[v++],b=f[v++],M=f[v++],S=n,I=i,n=f[v++],i=f[v++],h=s.A,Wr(S,I,n,i,b,M,_,x,w,h,o);break;case"a":_=f[v++],x=f[v++],w=f[v++],b=f[v++],M=f[v++],S=n,I=i,n+=f[v++],i+=f[v++],h=s.A,Wr(S,I,n,i,b,M,_,x,w,h,o)}}("z"===d||"Z"===d)&&(h=s.Z,o.addData(h),n=r,i=a),e=h}return o.toStatic(),o}function Zr(t,e){var n=Gr(t);return e=e||{},e.buildPath=function(t){if(t.setData){t.setData(n.data);var e=t.getContext();e&&t.rebuildPath(e)}else{var e=t;n.rebuildPath(e)}},e.applyTransform=function(t){i_(n,t),this.dirty(!0)},e}function Xr(t,e){return new Hr(Zr(t,e))}function Yr(t,e){return Hr.extend(Zr(t,e))}function Ur(t,e){for(var n=[],i=t.length,r=0;i>r;r++){var a=t[r];a.path||a.createPathProxy(),a.__dirtyPath&&a.buildPath(a.path,a.shape,!0),n.push(a.path)}var o=new Hr(e);return o.createPathProxy(),o.buildPath=function(t){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e)},o}function qr(t,e,n,i,r,a,o){var s=.5*(n-t),l=.5*(i-e);return(2*(e-n)+s+l)*o+(-3*(e-n)-2*s-l)*a+s*r+e}function jr(t,e,n){var i=e.points,r=e.smooth;if(i&&i.length>=2){if(r&&"spline"!==r){var a=x_(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;(n?o:o-1)>s;s++){var l=a[2*s],u=a[2*s+1],h=i[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{"spline"===r&&(i=__(i,n)),t.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;c>s;s++)t.lineTo(i[s][0],i[s][1])}n&&t.closePath()}}function $r(t,e,n){var i=n&&n.lineWidth;if(e&&i){var r=e.x1,a=e.x2,o=e.y1,s=e.y2;M_(2*r)===M_(2*a)?t.x1=t.x2=Qr(r,i,!0):(t.x1=r,t.x2=a),M_(2*o)===M_(2*s)?t.y1=t.y2=Qr(o,i,!0):(t.y1=o,t.y2=s)}}function Kr(t,e,n){var i=n&&n.lineWidth;if(e&&i){var r=e.x,a=e.y,o=e.width,s=e.height;t.x=Qr(r,i,!0),t.y=Qr(a,i,!0),t.width=Math.max(Qr(r+o,i,!1)-t.x,0===o?0:1),t.height=Math.max(Qr(a+s,i,!1)-t.y,0===s?0:1)}}function Qr(t,e,n){var i=M_(2*t);return(i+M_(e))%2===0?i/2:(i+(n?1:-1))/2}function Jr(t,e,n){var i=t.cpx2,r=t.cpy2;return null===i||null===r?[(n?cr:hr)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?cr:hr)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?mr:vr)(t.x1,t.cpx1,t.x2,e),(n?mr:vr)(t.y1,t.cpy1,t.y2,e)]}function ta(t){bi.call(this,t),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}function ea(t){return Hr.extend(t)}function na(t,e){return Yr(t,e)}function ia(t,e){X_[t]=e}function ra(t){return X_.hasOwnProperty(t)?X_[t]:void 0}function aa(t,e,n,i){var r=Xr(t,e);return n&&("center"===i&&(n=sa(n,r.getBoundingRect())),la(r,n)),r}function oa(t,e,n){var i=new Mi({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(sa(e,r))}}});return i}function sa(t,e){var n,i=e.width/e.height,r=t.height*i;r<=t.width?n=t.height:(r=t.width,n=r/i);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-r/2,y:o-n/2,width:r,height:n}}function la(t,e){if(t.applyTransform){var n=t.getBoundingRect(),i=n.calculateTransform(e);t.applyTransform(i)}}function ua(t){return $r(t.shape,t.shape,t.style),t}function ha(t){return Kr(t.shape,t.shape,t.style),t}function ca(t){return null!=t&&"none"!==t}function da(t){if("string"!=typeof t)return t;var e=q_.get(t);return e||(e=Qe(t,-.1),1e4>j_&&(q_.set(t,e),j_++)),e}function fa(t){if(t.__hoverStlDirty){t.__hoverStlDirty=!1;var e=t.__hoverStl;if(!e)return void(t.__cachedNormalStl=t.__cachedNormalZ2=null);var n=t.__cachedNormalStl={};t.__cachedNormalZ2=t.z2;var i=t.style;for(var r in e)null!=e[r]&&(n[r]=i[r]);n.fill=i.fill,n.stroke=i.stroke}}function pa(t){var e=t.__hoverStl;if(e&&!t.__highlighted){var n=t.__zr,i=t.useHoverLayer&&n&&"canvas"===n.painter.type;if(t.__highlighted=i?"layer":"plain",!(t.isGroup||!n&&t.useHoverLayer)){var r=t,a=t.style;i&&(r=n.addHover(t),a=r.style),Ra(a),i||fa(r),a.extendFrom(e),ga(a,e,"fill"),ga(a,e,"stroke"),Ea(a),i||(t.dirty(!1),t.z2+=F_)}}}function ga(t,e,n){!ca(e[n])&&ca(t[n])&&(t[n]=da(t[n]))}function va(t){var e=t.__highlighted;if(e&&(t.__highlighted=!1,!t.isGroup))if("layer"===e)t.__zr&&t.__zr.removeHover(t);else{var n=t.style,i=t.__cachedNormalStl;i&&(Ra(n),t.setStyle(i),Ea(n));var r=t.__cachedNormalZ2;null!=r&&t.z2-r===F_&&(t.z2=r)}}function ma(t,e,n){var i,r=W_,a=W_;t.__highlighted&&(r=H_,i=!0),e(t,n),t.__highlighted&&(a=H_,i=!0),t.isGroup&&t.traverse(function(t){!t.isGroup&&e(t,n)}),i&&t.__highDownOnUpdate&&t.__highDownOnUpdate(r,a)}function ya(t,e){e=t.__hoverStl=e!==!1&&(t.hoverStyle||e||{}),t.__hoverStlDirty=!0,t.__highlighted&&(t.__cachedNormalStl=null,va(t),pa(t))}function _a(t){!Ma(this,t)&&!this.__highByOuter&&ma(this,pa)}function xa(t){!Ma(this,t)&&!this.__highByOuter&&ma(this,va)}function wa(t){this.__highByOuter|=1<<(t||0),ma(this,pa)}function ba(t){!(this.__highByOuter&=~(1<<(t||0)))&&ma(this,va)}function Ma(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Sa(t,e){Ia(t,!0),ma(t,ya,e)}function Ia(t,e){var n=e===!1;if(t.__highDownSilentOnTouch=t.highDownSilentOnTouch,t.__highDownOnUpdate=t.highDownOnUpdate,!n||t.__highDownDispatcher){var i=n?"off":"on";t[i]("mouseover",_a)[i]("mouseout",xa),t[i]("emphasis",wa)[i]("normal",ba),t.__highByOuter=t.__highByOuter||0,t.__highDownDispatcher=!n}}function Ta(t){return!(!t||!t.__highDownDispatcher)}function Ca(t){var e=Z_[t];return null==e&&32>=G_&&(e=Z_[t]=G_++),e}function Aa(t,e,n,i,r,a,o){r=r||N_;var s,l=r.labelFetcher,u=r.labelDataIndex,h=r.labelDimIndex,c=n.getShallow("show"),d=i.getShallow("show");(c||d)&&(l&&(s=l.getFormattedLabel(u,"normal",null,h)),null==s&&(s=w(r.defaultText)?r.defaultText(u,r):r.defaultText));var f=c?s:null,p=d?D(l?l.getFormattedLabel(u,"emphasis",null,h):null,s):null;(null!=f||null!=p)&&(ka(t,n,a,r),ka(e,i,o,r,!0)),t.text=f,e.text=p}function Da(t,e,n){var i=t.style;e&&(Ra(i),t.setStyle(e),Ea(i)),i=t.__hoverStl,n&&i&&(Ra(i),o(i,n),Ea(i))}function ka(t,e,n,i,r){return Oa(t,e,i,r),n&&o(t,n),t}function Pa(t,e,n){var i,r={isRectText:!0};n===!1?i=!0:r.autoColor=n,Oa(t,e,r,i)}function Oa(t,e,n,i){if(n=n||N_,n.isRectText){var r;n.getTextPosition?r=n.getTextPosition(e,i):(r=e.getShallow("position")||(i?null:"inside"),"outside"===r&&(r="top")),t.textPosition=r,t.textOffset=e.getShallow("offset");var a=e.getShallow("rotate");null!=a&&(a*=Math.PI/180),t.textRotation=a,t.textDistance=D(e.getShallow("distance"),i?null:5)}var o,s=e.ecModel,l=s&&s.option.textStyle,u=La(e);if(u){o={};for(var h in u)if(u.hasOwnProperty(h)){var c=e.getModel(["rich",h]);za(o[h]={},c,l,n,i)}}return t.rich=o,za(t,e,l,n,i,!0),n.forceRich&&!n.textStyle&&(n.textStyle={}),t}function La(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||N_).rich;if(n){e=e||{};for(var i in n)n.hasOwnProperty(i)&&(e[i]=1)}t=t.parentModel}return e}function za(t,e,n,i,r,a){n=!r&&n||N_,t.textFill=Ba(e.getShallow("color"),i)||n.color,t.textStroke=Ba(e.getShallow("textBorderColor"),i)||n.textBorderColor,t.textStrokeWidth=D(e.getShallow("textBorderWidth"),n.textBorderWidth),r||(a&&(t.insideRollbackOpt=i,Ea(t)),null==t.textFill&&(t.textFill=i.autoColor)),t.fontStyle=e.getShallow("fontStyle")||n.fontStyle,t.fontWeight=e.getShallow("fontWeight")||n.fontWeight,t.fontSize=e.getShallow("fontSize")||n.fontSize,t.fontFamily=e.getShallow("fontFamily")||n.fontFamily,t.textAlign=e.getShallow("align"),t.textVerticalAlign=e.getShallow("verticalAlign")||e.getShallow("baseline"),t.textLineHeight=e.getShallow("lineHeight"),t.textWidth=e.getShallow("width"),t.textHeight=e.getShallow("height"),t.textTag=e.getShallow("tag"),a&&i.disableBox||(t.textBackgroundColor=Ba(e.getShallow("backgroundColor"),i),t.textPadding=e.getShallow("padding"),t.textBorderColor=Ba(e.getShallow("borderColor"),i),t.textBorderWidth=e.getShallow("borderWidth"),t.textBorderRadius=e.getShallow("borderRadius"),t.textBoxShadowColor=e.getShallow("shadowColor"),t.textBoxShadowBlur=e.getShallow("shadowBlur"),t.textBoxShadowOffsetX=e.getShallow("shadowOffsetX"),t.textBoxShadowOffsetY=e.getShallow("shadowOffsetY")),t.textShadowColor=e.getShallow("textShadowColor")||n.textShadowColor,t.textShadowBlur=e.getShallow("textShadowBlur")||n.textShadowBlur,t.textShadowOffsetX=e.getShallow("textShadowOffsetX")||n.textShadowOffsetX,t.textShadowOffsetY=e.getShallow("textShadowOffsetY")||n.textShadowOffsetY}function Ba(t,e){return"auto"!==t?t:e&&e.autoColor?e.autoColor:null}function Ea(t){var e,n=t.textPosition,i=t.insideRollbackOpt;if(i&&null==t.textFill){var r=i.autoColor,a=i.isRectText,o=i.useInsideStyle,s=o!==!1&&(o===!0||a&&n&&"string"==typeof n&&n.indexOf("inside")>=0),l=!s&&null!=r;(s||l)&&(e={textFill:t.textFill,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth}),s&&(t.textFill="#fff",null==t.textStroke&&(t.textStroke=r,null==t.textStrokeWidth&&(t.textStrokeWidth=2))),l&&(t.textFill=r)}t.insideRollback=e}function Ra(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth,t.insideRollback=null)}function Na(t,e){var n=e||e.getModel("textStyle");return z([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}function Fa(t,e,n,i,r,a){"function"==typeof r&&(a=r,r=null);var o=i&&i.isAnimationEnabled();if(o){var s=t?"Update":"",l=i.getShallow("animationDuration"+s),u=i.getShallow("animationEasing"+s),h=i.getShallow("animationDelay"+s);"function"==typeof h&&(h=h(r,i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null)),"function"==typeof l&&(l=l(r)),l>0?e.animateTo(n,l,h||0,u,a,!!a):(e.stopAnimation(),e.attr(n),a&&a())}else e.stopAnimation(),e.attr(n),a&&a()}function Va(t,e,n,i,r){Fa(!0,t,e,n,i,r)}function Ha(t,e,n,i,r){Fa(!1,t,e,n,i,r)}function Wa(t,e){for(var n=De([]);t&&t!==e;)Pe(n,t.getLocalTransform(),n),t=t.parent;return n}function Ga(t,e,n){return e&&!d(e)&&(e=Sv.getLocalTransform(e)),n&&(e=Be([],e)),ae([],t,e)}function Za(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),a=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return a=Ga(a,e,n),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Xa(t,e,n){function i(t){var e={};return t.traverse(function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)}),e}function r(t){var e={position:G(t.position),rotation:t.rotation};return t.shape&&(e.shape=o({},t.shape)),e}if(t&&e){var a=i(t);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=a[t.anid];if(e){var i=r(t);t.attr(r(e)),Va(t,i,n,t.dataIndex)}}})}}function Ya(t,e){return p(t,function(t){var n=t[0];n=E_(n,e.x),n=R_(n,e.x+e.width);var i=t[1];return i=E_(i,e.y),i=R_(i,e.y+e.height),[n,i]})}function Ua(t,e){var n=E_(t.x,e.x),i=R_(t.x+t.width,e.x+e.width),r=E_(t.y,e.y),a=R_(t.y+t.height,e.y+e.height);return i>=n&&a>=r?{x:n,y:r,width:i-n,height:a-r}:void 0}function qa(t,e,n){e=o({rectHover:!0},e);var i=e.style={strokeNoScale:!0};return n=n||{x:-1,y:-1,width:2,height:2},t?0===t.indexOf("image://")?(i.image=t.slice(8),s(i,n),new Mi(e)):aa(t.replace("path://",""),e,n,"center"):void 0}function ja(t,e,n,i,r){for(var a=0,o=r[r.length-1];a<r.length;a++){var s=r[a];if($a(t,e,n,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function $a(t,e,n,i,r,a,o,s){var l=n-t,u=i-e,h=o-r,c=s-a,d=Ka(h,c,l,u);if(Qa(d))return!1;var f=t-r,p=e-a,g=Ka(f,p,l,u)/d;if(0>g||g>1)return!1;var v=Ka(f,p,h,c)/d;return 0>v||v>1?!1:!0}function Ka(t,e,n,i){return t*i-n*e}function Qa(t){return 1e-6>=t&&t>=-1e-6}function Ja(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}function to(t,e,n){for(var i=0;i<e.length&&(!e[i]||(t=t&&"object"==typeof t?t[e[i]]:null,null!=t));i++);return null==t&&n&&(t=n.get(e)),t}function eo(t,e){var n=nx(t).getParent;return n?n.call(t,e):t.parentModel}function no(t){return[t||"",ix++,Math.random().toFixed(5)].join("_")}function io(t){var e={};return t.registerSubTypeDefaulter=function(t,n){t=er(t),e[t.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var a=er(n).main;t.hasSubTypes(n)&&e[a]&&(r=e[a](i))}return r},t}function ro(t,e){function n(t){var n={},a=[];return f(t,function(o){var s=i(n,o),l=s.originalDeps=e(o),h=r(l,t);s.entryCount=h.length,0===s.entryCount&&a.push(o),f(h,function(t){u(s.predecessor,t)<0&&s.predecessor.push(t);var e=i(n,t);u(e.successor,t)<0&&e.successor.push(o)})}),{graph:n,noEntryList:a}}function i(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function r(t,e){var n=[];return f(t,function(t){u(e,t)>=0&&n.push(t)}),n}t.topologicalTravel=function(t,e,i,r){function a(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}function o(t){h[t]=!0,a(t)}if(t.length){var s=n(e),l=s.graph,u=s.noEntryList,h={};for(f(t,function(t){h[t]=!0});u.length;){var c=u.pop(),d=l[c],p=!!h[c];p&&(i.call(r,c,d.originalDeps.slice()),delete h[c]),f(d.successor,p?o:a)}f(h,function(){throw new Error("Circle dependency may exists")})}}}function ao(t){return t.replace(/^\s+|\s+$/g,"")}function oo(t,e,n,i){var r=e[1]-e[0],a=n[1]-n[0];if(0===r)return 0===a?n[0]:(n[0]+n[1])/2;if(i)if(r>0){if(t<=e[0])return n[0];if(t>=e[1])return n[1]}else{if(t>=e[0])return n[0];if(t<=e[1])return n[1]}else{if(t===e[0])return n[0];if(t===e[1])return n[1]}return(t-e[0])/r*a+n[0]}function so(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?ao(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?0/0:+t}function lo(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function uo(t){return t.sort(function(t,e){return t-e}),t}function ho(t){if(t=+t,isNaN(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n}function co(t){var e=t.toString(),n=e.indexOf("e");
 
- if(n>0){var i=+e.slice(n+1);return 0>i?-i:0}var r=e.indexOf(".");return 0>r?0:e.length-1-r}function fo(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),a=Math.round(n(Math.abs(e[1]-e[0]))/i),o=Math.min(Math.max(-r+a,0),20);return isFinite(o)?o:20}function po(t,e,n){if(!t[e])return 0;var i=g(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===i)return 0;for(var r=Math.pow(10,n),a=p(t,function(t){return(isNaN(t)?0:t)/i*r*100}),o=100*r,s=p(a,function(t){return Math.floor(t)}),l=g(s,function(t,e){return t+e},0),u=p(a,function(t,e){return t-s[e]});o>l;){for(var h=Number.NEGATIVE_INFINITY,c=null,d=0,f=u.length;f>d;++d)u[d]>h&&(h=u[d],c=d);++s[c],u[c]=0,++l}return s[e]/r}function go(t){var e=2*Math.PI;return(t%e+e)%e}function vo(t){return t>-rx&&rx>t}function mo(t){if(t instanceof Date)return t;if("string"==typeof t){var e=ox.exec(t);if(!e)return new Date(0/0);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,+e[7]||0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0)}return new Date(null==t?0/0:Math.round(t))}function yo(t){return Math.pow(10,_o(t))}function _o(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function xo(t,e){var n,i=_o(t),r=Math.pow(10,i),a=t/r;return n=e?1.5>a?1:2.5>a?2:4>a?3:7>a?5:10:1>a?1:2>a?2:3>a?3:5>a?5:10,t=n*r,i>=-20?+t.toFixed(0>i?-i:0):t}function wo(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],a=n-i;return a?r+a*(t[i]-r):r}function bo(t){function e(t,n,i){return t.interval[i]<n.interval[i]||t.interval[i]===n.interval[i]&&(t.close[i]-n.close[i]===(i?-1:1)||!i&&e(t,n,1))}t.sort(function(t,n){return e(t,n,0)?-1:1});for(var n=-1/0,i=1,r=0;r<t.length;){for(var a=t[r].interval,o=t[r].close,s=0;2>s;s++)a[s]<=n&&(a[s]=n,o[s]=s?1:1-i),n=a[s],i=o[s];a[0]===a[1]&&o[0]*o[1]!==1?t.splice(r,1):r++}return t}function Mo(t){return t-parseFloat(t)>=0}function So(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:""))}function Io(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}function To(t){return null==t?"":(t+"").replace(ux,function(t,e){return hx[e]})}function Co(t,e,n){x(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],a=0;a<r.length;a++){var o=cx[a];t=t.replace(dx(o),dx(o,0))}for(var s=0;i>s;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(dx(cx[l],s),n?To(u):u)}return t}function Ao(t,e,n){return f(e,function(e,i){t=t.replace("{"+i+"}",n?To(e):e)}),t}function Do(t,e){t=b(t)?{color:t,extraCssText:e}:t||{};var n=t.color,i=t.type,e=t.extraCssText,r=t.renderMode||"html",a=t.markerId||"X";return n?"html"===r?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+To(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+To(n)+";"+(e||"")+'"></span>':{renderMode:r,content:"{marker"+a+"|}  ",style:{color:n}}:""}function ko(t,e){return t+="","0000".substr(0,e-t.length)+t}function Po(t,e,n){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var i=mo(e),r=n?"UTC":"",a=i["get"+r+"FullYear"](),o=i["get"+r+"Month"]()+1,s=i["get"+r+"Date"](),l=i["get"+r+"Hours"](),u=i["get"+r+"Minutes"](),h=i["get"+r+"Seconds"](),c=i["get"+r+"Milliseconds"]();return t=t.replace("MM",ko(o,2)).replace("M",o).replace("yyyy",a).replace("yy",a%100).replace("dd",ko(s,2)).replace("d",s).replace("hh",ko(l,2)).replace("h",l).replace("mm",ko(u,2)).replace("m",u).replace("ss",ko(h,2)).replace("s",h).replace("SSS",ko(c,3))}function Oo(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function Lo(t){return Hn(t.text,t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich,t.truncate)}function zo(t,e,n,i,r,a,o,s){return Hn(t,e,n,i,r,s,a,o)}function Bo(t,e,n,i,r){var a=0,o=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var h,c,d=l.position,f=l.getBoundingRect(),p=e.childAt(u+1),g=p&&p.getBoundingRect();if("horizontal"===t){var v=f.width+(g?-g.x+f.x:0);h=a+v,h>i||l.newline?(a=0,h=v,o+=s+n,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(g?-g.y+f.y:0);c=o+m,c>r||l.newline?(a+=s+n,o=0,c=m,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=a,d[1]=o,"horizontal"===t?a=h+n:o=c+n)})}function Eo(t,e,n){n=lx(n||0);var i=e.width,r=e.height,a=so(t.left,i),o=so(t.top,r),s=so(t.right,i),l=so(t.bottom,r),u=so(t.width,i),h=so(t.height,r),c=n[2]+n[0],d=n[1]+n[3],f=t.aspect;switch(isNaN(u)&&(u=i-s-d-a),isNaN(h)&&(h=r-l-c-o),null!=f&&(isNaN(u)&&isNaN(h)&&(f>i/r?u=.8*i:h=.8*r),isNaN(u)&&(u=f*h),isNaN(h)&&(h=u/f)),isNaN(a)&&(a=i-s-u-d),isNaN(o)&&(o=r-l-h-c),t.left||t.right){case"center":a=i/2-u/2-n[3];break;case"right":a=i-u-d}switch(t.top||t.bottom){case"middle":case"center":o=r/2-h/2-n[0];break;case"bottom":o=r-h-c}a=a||0,o=o||0,isNaN(u)&&(u=i-d-a-(s||0)),isNaN(h)&&(h=r-c-o-(l||0));var p=new bn(a+n[3],o+n[0],u,h);return p.margin=n,p}function Ro(t,e,n){function i(n,i){var o={},l=0,u={},h=0,c=2;if(gx(n,function(e){u[e]=t[e]}),gx(n,function(t){r(e,t)&&(o[t]=u[t]=e[t]),a(o,t)&&l++,a(u,t)&&h++}),s[i])return a(e,n[1])?u[n[2]]=null:a(e,n[2])&&(u[n[1]]=null),u;if(h!==c&&l){if(l>=c)return o;for(var d=0;d<n.length;d++){var f=n[d];if(!r(o,f)&&r(t,f)){o[f]=t[f];break}}return o}return u}function r(t,e){return t.hasOwnProperty(e)}function a(t,e){return null!=t[e]&&"auto"!==t[e]}function o(t,e,n){gx(t,function(t){e[t]=n[t]})}!M(n)&&(n={});var s=n.ignoreSize;!x(s)&&(s=[s,s]);var l=i(mx[0],0),u=i(mx[1],1);o(mx[0],t,l),o(mx[1],t,u)}function No(t){return Fo({},t)}function Fo(t,e){return e&&t&&gx(vx,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}function Vo(t){var e=[];return f(bx.getClassesByMainType(t),function(t){e=e.concat(t.prototype.dependencies||[])}),e=p(e,function(t){return er(t).main}),"dataset"!==t&&u(e,"dataset")<=0&&e.unshift("dataset"),e}function Ho(t,e){for(var n=t.length,i=0;n>i;i++)if(t[i].length>e)return t[i];return t[n-1]}function Wo(t){var e=t.get("coordinateSystem"),n={coordSysName:e,coordSysDims:[],axisMap:N(),categoryAxisMap:N()},i=Cx[e];return i?(i(t,n,n.axisMap,n.categoryAxisMap),n):void 0}function Go(t){return"category"===t.get("type")}function Zo(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===Px?{}:[]),this.sourceFormat=t.sourceFormat||Ox,this.seriesLayoutBy=t.seriesLayoutBy||zx,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&N(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}function Xo(t){var e=t.option.source,n=Ox;if(I(e))n=Lx;else if(x(e)){0===e.length&&(n=Dx);for(var i=0,r=e.length;r>i;i++){var a=e[i];if(null!=a){if(x(a)){n=Dx;break}if(M(a)){n=kx;break}}}}else if(M(e)){for(var o in e)if(e.hasOwnProperty(o)&&d(e[o])){n=Px;break}}else if(null!=e)throw new Error("Invalid data");Ex(t).sourceFormat=n}function Yo(t){return Ex(t).source}function Uo(t){Ex(t).datasetMap=N()}function qo(t){var e=t.option,n=e.data,i=I(n)?Lx:Ax,r=!1,a=e.seriesLayoutBy,o=e.sourceHeader,s=e.dimensions,l=ts(t);if(l){var u=l.option;n=u.source,i=Ex(l).sourceFormat,r=!0,a=a||u.seriesLayoutBy,null==o&&(o=u.sourceHeader),s=s||u.dimensions}var h=jo(n,i,a,o,s),c=e.encode;!c&&l&&(c=Jo(t,l,n,i,a,h)),Ex(t).source=new Zo({data:n,fromDataset:r,seriesLayoutBy:a,sourceFormat:i,dimensionsDefine:h.dimensionsDefine,startIndex:h.startIndex,dimensionsDetectCount:h.dimensionsDetectCount,encodeDefine:c})}function jo(t,e,n,i,r){if(!t)return{dimensionsDefine:$o(r)};var a,o,s;if(e===Dx)"auto"===i||null==i?Ko(function(t){null!=t&&"-"!==t&&(b(t)?null==o&&(o=1):o=0)},n,t,10):o=i?1:0,r||1!==o||(r=[],Ko(function(t,e){r[e]=null!=t?t:""},n,t)),a=r?r.length:n===Bx?t.length:t[0]?t[0].length:null;else if(e===kx)r||(r=Qo(t),s=!0);else if(e===Px)r||(r=[],s=!0,f(t,function(t,e){r.push(e)}));else if(e===Ax){var l=Wi(t[0]);a=x(l)&&l.length||1}var u;return s&&f(r,function(t,e){"name"===(M(t)?t.name:t)&&(u=e)}),{startIndex:o,dimensionsDefine:$o(r),dimensionsDetectCount:a,potentialNameDimIndex:u}}function $o(t){if(t){var e=N();return p(t,function(t){if(t=o({},M(t)?t:{name:t}),null==t.name)return t;t.name+="",null==t.displayName&&(t.displayName=t.name);var n=e.get(t.name);return n?t.name+="-"+n.count++:e.set(t.name,{count:1}),t})}}function Ko(t,e,n,i){if(null==i&&(i=1/0),e===Bx)for(var r=0;r<n.length&&i>r;r++)t(n[r]?n[r][0]:null,r);else for(var a=n[0]||[],r=0;r<a.length&&i>r;r++)t(a[r],r)}function Qo(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e){var i=[];return f(e,function(t,e){i.push(e)}),i}}function Jo(t,e,n,i,r,a){var o=Wo(t),s={},l=[],u=[],h=t.subType,c=N(["pie","map","funnel"]),d=N(["line","bar","pictorialBar","scatter","effectScatter","candlestick","boxplot"]);if(o&&null!=d.get(h)){var p=t.ecModel,g=Ex(p).datasetMap,v=e.uid+"_"+r,m=g.get(v)||g.set(v,{categoryWayDim:1,valueWayDim:0});f(o.coordSysDims,function(t){if(null==o.firstCategoryDimIndex){var e=m.valueWayDim++;s[t]=e,u.push(e)}else if(o.categoryAxisMap.get(t))s[t]=0,l.push(0);else{var e=m.categoryWayDim++;s[t]=e,u.push(e)}})}else if(null!=c.get(h)){for(var y,_=0;5>_&&null==y;_++)ns(n,i,r,a.dimensionsDefine,a.startIndex,_)||(y=_);if(null!=y){s.value=y;var x=a.potentialNameDimIndex||Math.max(y-1,0);u.push(x),l.push(x)}}return l.length&&(s.itemName=l),u.length&&(s.seriesName=u),s}function ts(t){var e=t.option,n=e.data;return n?void 0:t.ecModel.getComponent("dataset",e.datasetIndex||0)}function es(t,e){return ns(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function ns(t,e,n,i,r,a){function o(t){return null!=t&&isFinite(t)&&""!==t?!1:b(t)&&"-"!==t?!0:void 0}var s,l=5;if(I(t))return!1;var u;if(i&&(u=i[a],u=M(u)?u.name:u),e===Dx)if(n===Bx){for(var h=t[a],c=0;c<(h||[]).length&&l>c;c++)if(null!=(s=o(h[r+c])))return s}else for(var c=0;c<t.length&&l>c;c++){var d=t[r+c];if(d&&null!=(s=o(d[a])))return s}else if(e===kx){if(!u)return;for(var c=0;c<t.length&&l>c;c++){var f=t[c];if(f&&null!=(s=o(f[u])))return s}}else if(e===Px){if(!u)return;var h=t[u];if(!h||I(h))return!1;for(var c=0;c<h.length&&l>c;c++)if(null!=(s=o(h[c])))return s}else if(e===Ax)for(var c=0;c<t.length&&l>c;c++){var f=t[c],p=Wi(f);if(!x(p))return!1;if(null!=(s=o(p[a])))return s}return!1}function is(t,e){if(e){var n=e.seiresIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}function rs(t,e){var n=t.color&&!t.colorLayer;f(e,function(e,a){"colorLayer"===a&&n||bx.hasClass(a)||("object"==typeof e?t[a]=t[a]?r(t[a],e,!1):i(e):null==t[a]&&(t[a]=e))})}function as(t){t=t,this.option={},this.option[Rx]=1,this._componentsMap=N({series:[]}),this._seriesIndices,this._seriesIndicesMap,rs(t,this._theme.option),r(t,Sx,!1),this.mergeOption(t)}function os(t,e){x(e)||(e=e?[e]:[]);var n={};return f(e,function(e){n[e]=(t.get(e)||[]).slice()}),n}function ss(t,e,n){var i=e.type?e.type:n?n.subType:bx.determineSubType(t,e);return i}function ls(t,e){t._seriesIndicesMap=N(t._seriesIndices=p(e,function(t){return t.componentIndex})||[])}function us(t,e){return e.hasOwnProperty("subType")?v(t,function(t){return t.subType===e.subType}):t}function hs(t){f(Fx,function(e){this[e]=y(t[e],t)},this)}function cs(){this._coordinateSystems=[]}function ds(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function fs(t,e,n){var i,r,a=[],o=[],s=t.timeline;if(t.baseOption&&(r=t.baseOption),(s||t.options)&&(r=r||{},a=(t.options||[]).slice()),t.media){r=r||{};var l=t.media;Hx(l,function(t){t&&t.option&&(t.query?o.push(t):i||(i=t))})}return r||(r=t),r.timeline||(r.timeline=s),Hx([r].concat(a).concat(p(o,function(t){return t.option})),function(t){Hx(e,function(e){e(t,n)})}),{baseOption:r,timelineOptions:a,mediaDefault:i,mediaList:o}}function ps(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return f(t,function(t,e){var n=e.match(Xx);if(n&&n[1]&&n[2]){var a=n[1],o=n[2].toLowerCase();gs(i[o],t,a)||(r=!1)}}),r}function gs(t,e,n){return"min"===n?t>=e:"max"===n?e>=t:t===e}function vs(t,e){return t.join(",")===e.join(",")}function ms(t,e){e=e||{},Hx(e,function(e,n){if(null!=e){var i=t[n];if(bx.hasClass(n)){e=Vi(e),i=Vi(i);var r=Zi(i,e);t[n]=Gx(r,function(t){return t.option&&t.exist?Zx(t.exist,t.option,!0):t.exist||t.option})}else t[n]=Zx(i,e,!0)}})}function ys(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=qx.length;i>n;n++){var a=qx[n],o=e.normal,s=e.emphasis;o&&o[a]&&(t[a]=t[a]||{},t[a].normal?r(t[a].normal,o[a]):t[a].normal=o[a],o[a]=null),s&&s[a]&&(t[a]=t[a]||{},t[a].emphasis?r(t[a].emphasis,s[a]):t[a].emphasis=s[a],s[a]=null)}}function _s(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,s(t[e],i)):t[e]=i),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r)}}function xs(t){_s(t,"itemStyle"),_s(t,"lineStyle"),_s(t,"areaStyle"),_s(t,"label"),_s(t,"labelLine"),_s(t,"upperLabel"),_s(t,"edgeLabel")}function ws(t,e){var n=Ux(t)&&t[e],i=Ux(n)&&n.textStyle;if(i)for(var r=0,a=ey.length;a>r;r++){var e=ey[r];i.hasOwnProperty(e)&&(n[e]=i[e])}}function bs(t){t&&(xs(t),ws(t,"label"),t.emphasis&&ws(t.emphasis,"label"))}function Ms(t){if(Ux(t)){ys(t),xs(t),ws(t,"label"),ws(t,"upperLabel"),ws(t,"edgeLabel"),t.emphasis&&(ws(t.emphasis,"label"),ws(t.emphasis,"upperLabel"),ws(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(ys(e),bs(e));var n=t.markLine;n&&(ys(n),bs(n));var i=t.markArea;i&&bs(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var a=t.links||t.edges;if(a&&!I(a))for(var o=0;o<a.length;o++)bs(a[o]);f(t.categories,function(t){xs(t)})}if(r&&!I(r))for(var o=0;o<r.length;o++)bs(r[o]);var e=t.markPoint;if(e&&e.data)for(var s=e.data,o=0;o<s.length;o++)bs(s[o]);var n=t.markLine;if(n&&n.data)for(var l=n.data,o=0;o<l.length;o++)x(l[o])?(bs(l[o][0]),bs(l[o][1])):bs(l[o]);"gauge"===t.type?(ws(t,"axisLabel"),ws(t,"title"),ws(t,"detail")):"treemap"===t.type?(_s(t.breadcrumb,"itemStyle"),f(t.levels,function(t){xs(t)})):"tree"===t.type&&xs(t.leaves)}}function Ss(t){return x(t)?t:t?[t]:[]}function Is(t){return(x(t)?t[0]:t)||{}}function Ts(t,e){e=e.split(",");for(var n=t,i=0;i<e.length&&(n=n&&n[e[i]],null!=n);i++);return n}function Cs(t,e,n,i){e=e.split(",");for(var r,a=t,o=0;o<e.length-1;o++)r=e[o],null==a[r]&&(a[r]={}),a=a[r];(i||null==a[e[o]])&&(a[e[o]]=n)}function As(t){f($x,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}function Ds(t){f(t,function(e,n){var i=[],r=[0/0,0/0],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=o.map(a,function(a,l,u){var h=o.get(e.stackedDimension,u);if(isNaN(h))return r;var c,d;s?d=o.getRawIndex(u):c=o.get(e.stackedByDimension,u);for(var f=0/0,p=n-1;p>=0;p--){var g=t[p];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,c)),d>=0){var v=g.data.getByRawIndex(g.stackResultDimension,d);if(h>=0&&v>0||0>=h&&0>v){h+=v,f=v;break}}}return i[0]=h,i[1]=f,i});o.hostModel.setData(l),e.data=l})}function ks(t,e){Zo.isInstance(t)||(t=Zo.seriesDataToSource(t)),this._source=t;var n=this._data=t.data,i=t.sourceFormat;i===Lx&&(this._offset=0,this._dimSize=e,this._data=n);var r=ew[i===Dx?i+"_"+t.seriesLayoutBy:i];o(this,r)}function Ps(){return this._data.length}function Os(t){return this._data[t]}function Ls(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}function zs(t,e,n){return null!=n?t[n]:t}function Bs(t,e,n,i){return Es(t[i],this._dimensionInfos[e])}function Es(t,e){var n=e&&e.type;if("ordinal"===n){var i=e&&e.ordinalMeta;return i?i.parseAndCollect(t):t}return"time"===n&&"number"!=typeof t&&null!=t&&"-"!==t&&(t=+mo(t)),null==t||""===t?0/0:+t}function Rs(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r,a,o=t.getProvider().getSource().sourceFormat,s=t.getDimensionInfo(n);return s&&(r=s.name,a=s.index),nw[o](i,e,a,r)}}}function Ns(t,e,n){if(t){var i=t.getProvider().getSource().sourceFormat;if(i===Ax||i===kx){var r=t.getRawDataItem(e);return i!==Ax||M(r)||(r=null),r?r[n]:void 0}}}function Fs(t){return new Vs(t)}function Vs(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0,this.context}function Hs(t,e,n,i,r,a){sw.reset(n,i,r,a),t._callingProgress=e,t._callingProgress({start:n,end:i,count:i-n,next:sw.next},t.context)}function Ws(t,e){t._dueIndex=t._outputDueEnd=t._dueEnd=0,t._settedOutputEnd=null;var n,i;!e&&t._reset&&(n=t._reset(t.context),n&&n.progress&&(i=n.forceFirstProgress,n=n.progress),x(n)&&!n.length&&(n=null)),t._progress=n,t._modBy=t._modDataCount=null;var r=t._downstream;return r&&r.dirty(),i}function Gs(t){var e=t.name;Yi(t)||(t.name=Zs(t)||e)}function Zs(t){var e=t.getRawData(),n=e.mapDimension("seriesName",!0),i=[];return f(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(" ")}function Xs(t){return t.model.getRawData().count()}function Ys(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Us}function Us(t,e){t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function qs(t,e){f(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,_(js,e))})}function js(t){var e=$s(t);e&&e.setOutputEnd(this.count())}function $s(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}function Ks(){this.group=new Jv,this.uid=no("viewChart"),this.renderTask=Fs({plan:tl,reset:el}),this.renderTask.context={view:this}}function Qs(t,e,n){if(t&&(t.trigger(e,n),t.isGroup&&!Ta(t)))for(var i=0,r=t.childCount();r>i;i++)Qs(t.childAt(i),e,n)}function Js(t,e,n){var i=qi(t,e),r=e&&null!=e.highlightKey?Ca(e.highlightKey):null;null!=i?f(Vi(i),function(e){Qs(t.getItemGraphicEl(e),n,r)}):t.eachItemGraphicEl(function(t){Qs(t,n,r)})}function tl(t){return pw(t.model)}function el(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=r&&fw(r).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==l&&o[l](e,n,i,r),vw[l]}function nl(t,e,n){function i(){h=(new Date).getTime(),c=null,t.apply(o,s||[])}var r,a,o,s,l,u=0,h=0,c=null;e=e||0;var d=function(){r=(new Date).getTime(),o=this,s=arguments;var t=l||e,d=l||n;l=null,a=r-(d?u:h)-t,clearTimeout(c),d?c=setTimeout(i,t):a>=0?i():c=setTimeout(i,-a),u=r};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){l=t},d}function il(t,e,n,i){var r=t[e];if(r){var a=r[mw]||r,o=r[_w],s=r[yw];if(s!==n||o!==i){if(null==n||!i)return t[e]=a;r=t[e]=nl(a,n,"debounce"===i),r[mw]=a,r[_w]=i,r[yw]=n}return r}}function rl(t,e){var n=t[e];n&&n[mw]&&(t[e]=n[mw])}function al(t,e,n,i){this.ecInstance=t,this.api=e,this.unfinished;var n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice();this._allHandlers=n.concat(i),this._stageTaskMap=N()}function ol(t,e,n,i,r){function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}r=r||{};var o;f(e,function(e){if(!r.visualType||r.visualType===e.visualType){var s=t._stageTaskMap.get(e.uid),l=s.seriesTaskMap,u=s.overallTask;if(u){var h,c=u.agentStubMap;c.each(function(t){a(r,t)&&(t.dirty(),h=!0)}),h&&u.dirty(),Tw(u,i);var d=t.getPerformArgs(u,r.block);c.each(function(t){t.perform(d)}),o|=u.perform(d)}else l&&l.each(function(s){a(r,s)&&s.dirty();var l=t.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&n.isSeriesFiltered(s.context.model),Tw(s,i),o|=s.perform(l)})}}),t.unfinished|=o}function sl(t,e,n,i,r){function a(n){var a=n.uid,s=o.get(a)||o.set(a,Fs({plan:fl,reset:pl,count:vl}));s.context={model:n,ecModel:i,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:t},ml(t,n,s)}var o=n.seriesTaskMap||(n.seriesTaskMap=N()),s=e.seriesType,l=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(a):s?i.eachRawSeriesByType(s,a):l&&l(i,r).each(a);var u=t._pipelineMap;o.each(function(t,e){u.get(e)||(t.dispose(),o.removeKey(e))})}function ll(t,e,n,i,r){function a(e){var n=e.uid,i=s.get(n);i||(i=s.set(n,Fs({reset:hl,onDirty:dl})),o.dirty()),i.context={model:e,overallProgress:h,modifyOutputEnd:c},i.agent=o,i.__block=h,ml(t,e,i)}var o=n.overallTask=n.overallTask||Fs({reset:ul});o.context={ecModel:i,api:r,overallReset:e.overallReset,scheduler:t};var s=o.agentStubMap=o.agentStubMap||N(),l=e.seriesType,u=e.getTargetSeries,h=!0,c=e.modifyOutputEnd;l?i.eachRawSeriesByType(l,a):u?u(i,r).each(a):(h=!1,f(i.getSeries(),a));var d=t._pipelineMap;s.each(function(t,e){d.get(e)||(t.dispose(),o.dirty(),s.removeKey(e))})}function ul(t){t.overallReset(t.ecModel,t.api,t.payload)}function hl(t){return t.overallProgress&&cl}function cl(){this.agent.dirty(),this.getDownstream().dirty()}function dl(){this.agent&&this.agent.dirty()}function fl(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)}function pl(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Vi(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?p(e,function(t,e){return gl(e)}):Cw}function gl(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var a=e.start;a<e.end;a++)r.dataEach(i,a);else r&&r.progress&&r.progress(e,i)}}function vl(t){return t.data.count()}function ml(t,e,n){var i=e.uid,r=t._pipelineMap.get(i);!r.head&&(r.head=n),r.tail&&r.tail.pipe(n),r.tail=n,n.__idxInPipeline=r.count++,n.__pipeline=r}function yl(t){Aw=null;try{t(Dw,kw)}catch(e){}return Aw}function _l(t,e){for(var n in e.prototype)t[n]=V}function xl(t){if(b(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}for(9===t.nodeType&&(t=t.firstChild);"svg"!==t.nodeName.toLowerCase()||1!==t.nodeType;)t=t.nextSibling;return t}function wl(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}function bl(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType){var i=n.getAttribute("offset");i=i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var r=n.getAttribute("stop-color")||"#000000";e.addColorStop(i,r)}n=n.nextSibling}}function Ml(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),s(e.__inheritedStyle,t.__inheritedStyle))}function Sl(t){for(var e=z(t).split(Nw),n=[],i=0;i<e.length;i+=2){var r=parseFloat(e[i]),a=parseFloat(e[i+1]);n.push([r,a])}return n}function Il(t,e,n,i){var r=e.__inheritedStyle||{},a="text"===e.type;if(1===t.nodeType&&(Cl(t,e),o(r,Al(t)),!i))for(var s in Hw)if(Hw.hasOwnProperty(s)){var l=t.getAttribute(s);null!=l&&(r[Hw[s]]=l)}var u=a?"textFill":"fill",h=a?"textStroke":"stroke";e.style=e.style||new lm;var c=e.style;null!=r.fill&&c.set(u,Tl(r.fill,n)),null!=r.stroke&&c.set(h,Tl(r.stroke,n)),f(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(t){var e="lineWidth"===t&&a?"textStrokeWidth":t;null!=r[t]&&c.set(e,parseFloat(r[t]))}),r.textBaseline&&"auto"!==r.textBaseline||(r.textBaseline="alphabetic"),"alphabetic"===r.textBaseline&&(r.textBaseline="bottom"),"start"===r.textAlign&&(r.textAlign="left"),"end"===r.textAlign&&(r.textAlign="right"),f(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(t){null!=r[t]&&c.set(t,r[t])}),r.lineDash&&(e.style.lineDash=z(r.lineDash).split(Nw)),c[h]&&"none"!==c[h]&&(e[h]=!0),e.__inheritedStyle=r}function Tl(t,e){var n=e&&t&&t.match(Ww);if(n){var i=z(n[1]),r=e[i];return r}return t}function Cl(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=null,r=[];n.replace(Gw,function(t,e,n){r.push(e,n)});for(var a=r.length-1;a>0;a-=2){var o=r[a],s=r[a-1];switch(i=i||Ae(),s){case"translate":o=z(o).split(Nw),Oe(i,i,[parseFloat(o[0]),parseFloat(o[1]||0)]);break;case"scale":o=z(o).split(Nw),ze(i,i,[parseFloat(o[0]),parseFloat(o[1]||o[0])]);break;case"rotate":o=z(o).split(Nw),Le(i,i,parseFloat(o[0]));break;case"skew":o=z(o).split(Nw),console.warn("Skew transform is not supported yet");break;case"matrix":var o=z(o).split(Nw);i[0]=parseFloat(o[0]),i[1]=parseFloat(o[1]),i[2]=parseFloat(o[2]),i[3]=parseFloat(o[3]),i[4]=parseFloat(o[4]),i[5]=parseFloat(o[5])}}e.setLocalTransform(i)}}function Al(t){var e=t.getAttribute("style"),n={};if(!e)return n;var i={};Zw.lastIndex=0;for(var r;null!=(r=Zw.exec(e));)i[r[1]]=r[2];for(var a in Hw)Hw.hasOwnProperty(a)&&null!=i[a]&&(n[Hw[a]]=i[a]);return n}function Dl(t,e,n){var i=e/t.width,r=n/t.height,a=Math.min(i,r),o=[a,a],s=[-(t.x+t.width/2)*a+e/2,-(t.y+t.height/2)*a+n/2];return{scale:o,position:s}}function kl(t,e){return function(n,i,r){(e||!this._disposed)&&(n=n&&n.toLowerCase(),lv.prototype[t].call(this,n,i,r))}}function Pl(){lv.call(this)}function Ol(t,e,n){function r(t,e){return t.__prio-e.__prio}n=n||{},"string"==typeof e&&(e=Tb[e]),this.id,this.group,this._dom=t;var a="canvas",o=this._zr=Bi(t,{renderer:n.renderer||a,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height});this._throttledZrFlush=nl(y(o.flush,o),17);var e=i(e);e&&Qx(e,!0),this._theme=e,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new cs;var s=this._api=$l(this);kn(Ib,r),kn(bb,r),this._scheduler=new al(this,s,bb,Ib),lv.call(this,this._ecEventProcessor=new Kl),this._messageCenter=new Pl,this._initEvents(),this.resize=y(this.resize,this),this._pendingActions=[],o.animation.on("frame",this._onframe,this),Vl(o,this),B(this)}function Ll(t,e,n){if(!this._disposed){var i,r=this._model,a=this._coordSysMgr.getCoordinateSystems();e=$i(r,e);for(var o=0;o<a.length;o++){var s=a[o];if(s[t]&&null!=(i=s[t](r,e,n)))return i}}}function zl(t){var e=t._model,n=t._scheduler;n.restorePipelines(e),n.prepareStageTasks(),Hl(t,"component",e,n),Hl(t,"chart",e,n),n.plan()}function Bl(t,e,n,i,r){function a(i){i&&i.__alive&&i[e]&&i[e](i.__model,o,t._api,n)}var o=t._model;if(!i)return void jw(t._componentsViews.concat(t._chartsViews),a);var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};r&&(l.subType=r);var u=n.excludeSeriesId;null!=u&&(u=N(Vi(u))),o&&o.eachComponent(l,function(e){u&&null!=u.get(e.id)||a(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])},t)}function El(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})}function Rl(t,e){var n=t.type,i=t.escapeConnect,r=xb[n],a=r.actionInfo,l=(a.update||"update").split(":"),u=l.pop();l=null!=l[0]&&Qw(l[0]),this[pb]=!0;var h=[t],c=!1;t.batch&&(c=!0,h=p(t.batch,function(e){return e=s(o({},e),t),e.batch=null,e}));var d,f=[],g="highlight"===n||"downplay"===n;jw(h,function(t){d=r.action(t,this._model,this._api),d=d||o({},t),d.type=a.event||d.type,f.push(d),g?Bl(this,u,t,"series"):l&&Bl(this,u,t,l.main,l.sub)},this),"none"===u||g||l||(this[gb]?(zl(this),yb.update.call(this,t),this[gb]=!1):yb[u].call(this,t)),d=c?{type:a.event||n,escapeConnect:i,batch:f}:f[0],this[pb]=!1,!e&&this._messageCenter.trigger(d.type,d)}function Nl(t){for(var e=this._pendingActions;e.length;){var n=e.shift();Rl.call(this,n,t)}}function Fl(t){!t&&this.trigger("updated")}function Vl(t,e){t.on("rendered",function(){e.trigger("rendered"),!t.animation.isFinished()||e[gb]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})}function Hl(t,e,n,i){function r(t){var e="_ec_"+t.id+"_"+t.type,r=s[e];if(!r){var h=Qw(t.type),c=a?hw.getClass(h.main,h.sub):Ks.getClass(h.sub);r=new c,r.init(n,u),s[e]=r,o.push(r),l.add(r.group)}t.__viewId=r.__id=e,r.__alive=!0,r.__model=t,r.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!a&&i.prepareView(r,t,n,u)}for(var a="component"===e,o=a?t._componentsViews:t._chartsViews,s=a?t._componentsMap:t._chartsMap,l=t._zr,u=t._api,h=0;h<o.length;h++)o[h].__alive=!1;a?n.eachComponent(function(t,e){"series"!==t&&r(e)}):n.eachSeries(r);for(var h=0;h<o.length;){var c=o[h];c.__alive?h++:(!a&&c.renderTask.dispose(),l.remove(c.group),c.dispose(n,u),o.splice(h,1),delete s[c.__id],c.__id=c.group.__ecComponentInfo=null)}}function Wl(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function Gl(t,e,n,i){Zl(t,e,n,i),jw(t._chartsViews,function(t){t.__alive=!1}),Xl(t,e,n,i),jw(t._chartsViews,function(t){t.__alive||t.remove(e,n)})}function Zl(t,e,n,i,r){jw(r||t._componentsViews,function(t){var r=t.__model;t.render(r,e,n,i),jl(r,t)})}function Xl(t,e,n,i,r){var a,o=t._scheduler;e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var s=n.renderTask;o.updatePayload(s,i),r&&r.get(e.uid)&&s.dirty(),a|=s.perform(o.getPerformArgs(s)),n.group.silent=!!e.get("silent"),jl(e,n),ql(e,n)}),o.unfinished|=a,Ul(t,e),bw(t._zr.dom,e)}function Yl(t,e){jw(Sb,function(n){n(t,e)})}function Ul(t,e){var n=t._zr,i=n.storage,r=0;i.traverse(function(){r++}),r>e.get("hoverLayerThreshold")&&!Vg.node&&e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.group.traverse(function(t){t.useHoverLayer=!0})}})}function ql(t,e){var n=t.get("blendMode")||null;e.group.traverse(function(t){t.isGroup||t.style.blend!==n&&t.setStyle("blend",n),t.eachPendingDisplayable&&t.eachPendingDisplayable(function(t){t.setStyle("blend",n)})})}function jl(t,e){var n=t.get("z"),i=t.get("zlevel");e.group.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=i&&(t.zlevel=i))})}function $l(t){var e=t._coordSysMgr;return o(new hs(t),{getCoordinateSystems:y(e.getCoordinateSystems,e),getComponentByElement:function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}}})}function Kl(){this.eventInfo}function Ql(t){function e(t,e){for(var n=0;n<t.length;n++){var i=t[n];i[a]=e}}var n=0,i=1,r=2,a="__connectUpdateStatus";jw(wb,function(o,s){t._messageCenter.on(s,function(o){if(Db[t.group]&&t[a]!==n){if(o&&o.escapeConnect)return;var s=t.makeActionFromEvent(o),l=[];jw(Ab,function(e){e!==t&&e.group===t.group&&l.push(e)}),e(l,n),jw(l,function(t){t[a]!==i&&t.dispatchAction(s)}),e(l,r)}})})}function Jl(t,e,n){var i=iu(t);if(i)return i;var r=new Ol(t,e,n);return r.id="ec_"+kb++,Ab[r.id]=r,Qi(t,Ob,r.id),Ql(r),r}function tu(t){if(x(t)){var e=t;t=null,jw(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+Pb++,jw(e,function(e){e.group=t})}return Db[t]=!0,t}function eu(t){Db[t]=!1}function nu(t){"string"==typeof t?t=Ab[t]:t instanceof Ol||(t=iu(t)),t instanceof Ol&&!t.isDisposed()&&t.dispose()}function iu(t){return Ab[Ji(t,Ob)]}function ru(t){return Ab[t]}function au(t,e){Tb[t]=e}function ou(t){Mb.push(t)}function su(t,e){pu(bb,t,e,nb)}function lu(t){Sb.push(t)}function uu(t,e,n){"function"==typeof e&&(n=e,e="");var i=Kw(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,qw(vb.test(i)&&vb.test(e)),xb[i]||(xb[i]={action:n,actionInfo:t}),wb[e]=i}function hu(t,e){cs.register(t,e)}function cu(t){var e=cs.get(t);return e?e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice():void 0}function du(t,e){pu(Ib,t,e,ob,"layout")}function fu(t,e){pu(Ib,t,e,ub,"visual")}function pu(t,e,n,i,r){($w(e)||Kw(e))&&(n=e,e=i);var a=al.wrapStageHandler(n,r);return a.__prio=e,a.__raw=n,t.push(a),a}function gu(t,e){Cb[t]=e}function vu(t){return bx.extend(t)}function mu(t){return hw.extend(t)}function yu(t){return uw.extend(t)}function _u(t){return Ks.extend(t)}function xu(t){n("createCanvas",t)}function wu(t,e,n){Yw.registerMap(t,e,n)}function bu(t){var e=Yw.retrieveMap(t);return e&&e[0]&&{geoJson:e[0].geoJSON,specialAreas:e[0].specialAreas}}function Mu(t){return t}function Su(t,e,n,i,r){this._old=t,this._new=e,this._oldKeyGetter=n||Mu,this._newKeyGetter=i||Mu,this.context=r}function Iu(t,e,n,i,r){for(var a=0;a<t.length;a++){var o="_ec_"+r[i](t[a],a),s=e[o];null==s?(n.push(o),e[o]=a):(s.length||(e[o]=s=[s]),s.push(a))}}function Tu(t){var e={},n=e.encode={},i=N(),r=[],a=[],o=e.userOutput={dimensionNames:t.dimensions.slice(),encode:{}};f(t.dimensions,function(e){var s=t.getDimensionInfo(e),l=s.coordDim;if(l){var u=s.coordDimIndex;Cu(n,l)[u]=e,s.isExtraCoord||(i.set(l,1),Du(s.type)&&(r[0]=e),Cu(o.encode,l)[u]=s.index),s.defaultTooltip&&a.push(e)
 
- }Bb.each(function(t,e){var i=Cu(n,e),r=s.otherDims[e];null!=r&&r!==!1&&(i[r]=s.name)})});var s=[],l={};i.each(function(t,e){var i=n[e];l[e]=i[0],s=s.concat(i)}),e.dataDimsOnCoord=s,e.encodeFirstDimNotExtra=l;var u=n.label;u&&u.length&&(r=u.slice());var h=n.tooltip;return h&&h.length?a=h.slice():a.length||(a=r.slice()),n.defaultedLabel=r,n.defaultedTooltip=a,e}function Cu(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Au(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function Du(t){return!("ordinal"===t||"time"===t)}function ku(t){return t._rawCount>65535?Hb:Gb}function Pu(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Ou(t,e){f(Zb.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,f(Xb,function(n){t[n]=i(e[n])}),t._calculationInfo=o(e._calculationInfo)}function Lu(t,e,n,i,r){var a=Vb[e.type],o=i-1,s=e.name,l=t[s][o];if(l&&l.length<n){for(var u=new a(Math.min(r-o*n,n)),h=0;h<l.length;h++)u[h]=l[h];t[s][o]=u}for(var c=i*n;r>c;c+=n)t[s].push(new a(Math.min(r-c,n)))}function zu(t){var e=t._invertedIndicesMap;f(e,function(n,i){var r=t._dimensionInfos[i],a=r.ordinalMeta;if(a){n=e[i]=new Wb(a.categories.length);for(var o=0;o<n.length;o++)n[o]=Nb;for(var o=0;o<t._count;o++)n[t.get(i,o)]=o}})}function Bu(t,e,n){var i;if(null!=e){var r=t._chunkSize,a=Math.floor(n/r),o=n%r,s=t.dimensions[e],l=t._storage[s][a];if(l){i=l[o];var u=t._dimensionInfos[s].ordinalMeta;u&&u.categories.length&&(i=u.categories[i])}}return i}function Eu(t){return t}function Ru(t){return t<this._count&&t>=0?this._indices[t]:-1}function Nu(t,e){var n=t._idList[e];return null==n&&(n=Bu(t,t._idDimIdx,e)),null==n&&(n=Fb+e),n}function Fu(t){return x(t)||(t=[t]),t}function Vu(t,e){var n=t.dimensions,i=new Yb(p(n,t.getDimensionInfo,t),t.hostModel);Ou(i,t);for(var r=i._storage={},a=t._storage,o=0;o<n.length;o++){var s=n[o];a[s]&&(u(e,s)>=0?(r[s]=Hu(a[s]),i._rawExtent[s]=Wu(),i._extent[s]=null):r[s]=a[s])}return i}function Hu(t){for(var e=new Array(t.length),n=0;n<t.length;n++)e[n]=Pu(t[n]);return e}function Wu(){return[1/0,-1/0]}function Gu(t,e,n){function r(t,e,n){null!=Bb.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,h.set(e,!0))}Zo.isInstance(e)||(e=Zo.seriesDataToSource(e)),n=n||{},t=(t||[]).slice();for(var a=(n.dimsDef||[]).slice(),l=N(n.encodeDef),u=N(),h=N(),c=[],d=Zu(e,t,a,n.dimCount),p=0;d>p;p++){var g=a[p]=o({},M(a[p])?a[p]:{name:a[p]}),v=g.name,m=c[p]={otherDims:{}};null!=v&&null==u.get(v)&&(m.name=m.displayName=v,u.set(v,p)),null!=g.type&&(m.type=g.type),null!=g.displayName&&(m.displayName=g.displayName)}l.each(function(t,e){if(t=Vi(t).slice(),1===t.length&&!b(t[0])&&t[0]<0)return void l.set(e,!1);var n=l.set(e,[]);f(t,function(t,i){b(t)&&(t=u.get(t)),null!=t&&d>t&&(n[i]=t,r(c[t],e,i))})});var y=0;f(t,function(t){var e,t,n,a;if(b(t))e=t,t={};else{e=t.name;var o=t.ordinalMeta;t.ordinalMeta=null,t=i(t),t.ordinalMeta=o,n=t.dimsDef,a=t.otherDims,t.name=t.coordDim=t.coordDimIndex=t.dimsDef=t.otherDims=null}var u=l.get(e);if(u!==!1){var u=Vi(u);if(!u.length)for(var h=0;h<(n&&n.length||1);h++){for(;y<c.length&&null!=c[y].coordDim;)y++;y<c.length&&u.push(y++)}f(u,function(i,o){var l=c[i];if(r(s(l,t),e,o),null==l.name&&n){var u=n[o];!M(u)&&(u={name:u}),l.name=l.displayName=u.name,l.defaultTooltip=u.defaultTooltip}a&&s(l.otherDims,a)})}});var _=n.generateCoord,x=n.generateCoordCount,w=null!=x;x=_?x||1:0;for(var S=_||"value",I=0;d>I;I++){var m=c[I]=c[I]||{},T=m.coordDim;null==T&&(m.coordDim=Xu(S,h,w),m.coordDimIndex=0,(!_||0>=x)&&(m.isExtraCoord=!0),x--),null==m.name&&(m.name=Xu(m.coordDim,u)),null==m.type&&es(e,I,m.name)&&(m.type="ordinal")}return c}function Zu(t,e,n,i){var r=Math.max(t.dimensionsDetectCount||1,e.length,n.length,i||0);return f(e,function(t){var e=t.dimsDef;e&&(r=Math.max(r,e.length))}),r}function Xu(t,e,n){if(n||null!=e.get(t)){for(var i=0;null!=e.get(t+i);)i++;t+=i}return e.set(t,!0),t}function Yu(t,e,n){n=n||{};var i,r,a,o,s=n.byIndex,l=n.stackedCoordDimension,u=!(!t||!t.get("stack"));if(f(e,function(t,n){b(t)&&(e[n]=t={name:t}),u&&!t.isExtraCoord&&(s||i||!t.ordinalMeta||(i=t),r||"ordinal"===t.type||"time"===t.type||l&&l!==t.coordDim||(r=t))}),!r||s||i||(s=!0),r){a="__\x00ecstackresult",o="__\x00ecstackedover",i&&(i.createInvertedIndices=!0);var h=r.coordDim,c=r.type,d=0;f(e,function(t){t.coordDim===h&&d++}),e.push({name:a,coordDim:h,coordDimIndex:d,type:c,isExtraCoord:!0,isCalculationCoord:!0}),d++,e.push({name:o,coordDim:o,coordDimIndex:d,type:c,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:r&&r.name,stackedByDimension:i&&i.name,isStackedByIndex:s,stackedOverDimension:o,stackResultDimension:a}}function Uu(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function qu(t,e){return Uu(t,e)?t.getCalculationInfo("stackResultDimension"):e}function ju(t,e,n){n=n||{},Zo.isInstance(t)||(t=Zo.seriesDataToSource(t));var i,r=e.get("coordinateSystem"),a=cs.get(r),o=Wo(e);o&&(i=p(o.coordSysDims,function(t){var e={name:t},n=o.axisMap.get(t);if(n){var i=n.get("type");e.type=Au(i)}return e})),i||(i=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]);var s,l,u=jb(t,{coordDimensions:i,generateCoord:n.generateCoord});o&&f(u,function(t,e){var n=t.coordDim,i=o.categoryAxisMap.get(n);i&&(null==s&&(s=e),t.ordinalMeta=i.getOrdinalMeta()),null!=t.otherDims.itemName&&(l=!0)}),l||null==s||(u[s].otherDims.itemName=0);var h=Yu(e,u),c=new Yb(u,e);c.setCalculationInfo(h);var d=null!=s&&$u(t)?function(t,e,n,i){return i===s?n:this.defaultDimValueGetter(t,e,n,i)}:null;return c.hasItemOption=!1,c.initData(t,null,d),c}function $u(t){if(t.sourceFormat===Ax){var e=Ku(t.data||[]);return null!=e&&!x(Wi(e))}}function Ku(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}function Qu(t){this._setting=t||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}function Ju(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this._map}function th(t){return t._map||(t._map=N(t.categories))}function eh(t){return M(t)&&null!=t.value?t.value:t+""}function nh(t,e,n,i){var r={},a=t[1]-t[0],o=r.interval=xo(a/e,!0);null!=n&&n>o&&(o=r.interval=n),null!=i&&o>i&&(o=r.interval=i);var s=r.intervalPrecision=ih(o),l=r.niceTickExtent=[Jb(Math.ceil(t[0]/o)*o,s),Jb(Math.floor(t[1]/o)*o,s)];return ah(l,t),r}function ih(t){return co(t)+2}function rh(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function ah(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),rh(t,0,e),rh(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function oh(t,e,n,i){var r=[];if(!t)return r;var a=1e4;e[0]<n[0]&&r.push(e[0]);for(var o=n[0];o<=n[1]&&(r.push(o),o=Jb(o+t,i),o!==r[r.length-1]);)if(r.length>a)return[];return e[1]>(r.length?r[r.length-1]:n[1])&&r.push(e[1]),r}function sh(t){return t.get("stack")||nM+t.seriesIndex}function lh(t){return t.dim+t.index}function uh(t,e){var n=[];return e.eachSeriesByType(t,function(t){gh(t)&&!vh(t)&&n.push(t)}),n}function hh(t){var e={};f(t,function(t){var n=t.coordinateSystem,i=n.getBaseAxis();if("time"===i.type||"value"===i.type)for(var r=t.getData(),a=i.dim+"_"+i.index,o=r.mapDimension(i.dim),s=0,l=r.count();l>s;++s){var u=r.get(o,s);e[a]?e[a].push(u):e[a]=[u]}});var n=[];for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];if(r){r.sort(function(t,e){return t-e});for(var a=null,o=1;o<r.length;++o){var s=r[o]-r[o-1];s>0&&(a=null===a?s:Math.min(a,s))}n[i]=a}}return n}function ch(t){var e=hh(t),n=[];return f(t,function(t){var i,r=t.coordinateSystem,a=r.getBaseAxis(),o=a.getExtent();if("category"===a.type)i=a.getBandWidth();else if("value"===a.type||"time"===a.type){var s=a.dim+"_"+a.index,l=e[s],u=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),c=Math.abs(h[1]-h[0]);i=l?u/c*l:u}else{var d=t.getData();i=Math.abs(o[1]-o[0])/d.count()}var f=so(t.get("barWidth"),i),p=so(t.get("barMaxWidth"),i),g=so(t.get("barMinWidth")||1,i),v=t.get("barGap"),m=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:f,barMaxWidth:p,barMinWidth:g,barGap:v,barCategoryGap:m,axisKey:lh(a),stackId:sh(t)})}),dh(n)}function dh(t){var e={};f(t,function(t){var n=t.axisKey,i=t.bandWidth,r=e[n]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},a=r.stacks;e[n]=r;var o=t.stackId;a[o]||r.autoWidthCount++,a[o]=a[o]||{width:0,maxWidth:0};var s=t.barWidth;s&&!a[o].width&&(a[o].width=s,s=Math.min(r.remainedWidth,s),r.remainedWidth-=s);var l=t.barMaxWidth;l&&(a[o].maxWidth=l);var u=t.barMinWidth;u&&(a[o].minWidth=u);var h=t.barGap;null!=h&&(r.gap=h);var c=t.barCategoryGap;null!=c&&(r.categoryGap=c)});var n={};return f(e,function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,a=so(t.categoryGap,r),o=so(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-a)/(l+(l-1)*o);u=Math.max(u,0),f(i,function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){var i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,s-=i,l--}else{var i=u;e&&i>e&&(i=Math.min(e,s)),n&&n>i&&(i=n),i!==u&&(t.width=i,s-=i,l--)}}),u=(s-a)/(l+(l-1)*o),u=Math.max(u,0);var h,c=0;f(i,function(t){t.width||(t.width=u),h=t,c+=t.width*(1+o)}),h&&(c-=h.width*o);var d=-c/2;f(i,function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:d,width:t.width},d+=t.width*(1+o)})}),n}function fh(t,e,n){if(t&&e){var i=t[lh(e)];return null!=i&&null!=n&&(i=i[sh(n)]),i}}function ph(t,e){var n=uh(t,e),i=ch(n),r={};f(n,function(t){var e=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),o=sh(t),s=i[lh(a)][o],l=s.offset,u=s.width,h=n.getOtherAxis(a),c=t.get("barMinHeight")||0;r[o]=r[o]||[],e.setLayout({bandWidth:s.bandWidth,offset:l,size:u});for(var d=e.mapDimension(h.dim),f=e.mapDimension(a.dim),p=Uu(e,d),g=h.isHorizontal(),v=mh(a,h,p),m=0,y=e.count();y>m;m++){var _=e.get(d,m),x=e.get(f,m);if(!isNaN(_)&&!isNaN(x)){var w=_>=0?"p":"n",b=v;p&&(r[o][x]||(r[o][x]={p:v,n:v}),b=r[o][x][w]);var M,S,I,T;if(g){var C=n.dataToPoint([_,x]);M=b,S=C[1]+l,I=C[0]-v,T=u,Math.abs(I)<c&&(I=(0>I?-1:1)*c),p&&(r[o][x][w]+=I)}else{var C=n.dataToPoint([x,_]);M=C[0]+l,S=b,I=u,T=C[1]-v,Math.abs(T)<c&&(T=(0>=T?-1:1)*c),p&&(r[o][x][w]+=T)}e.setItemLayout(m,{x:M,y:S,width:I,height:T})}}},this)}function gh(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function vh(t){return t.pipelineContext&&t.pipelineContext.large}function mh(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}function yh(t,e){return _M(t,yM(e))}function _h(t,e){var n,i,r,a=t.type,o=e.getMin(),s=e.getMax(),l=null!=o,u=null!=s,h=t.getExtent();"ordinal"===a?n=e.getCategories().length:(i=e.get("boundaryGap"),x(i)||(i=[i||0,i||0]),"boolean"==typeof i[0]&&(i=[0,0]),i[0]=so(i[0],1),i[1]=so(i[1],1),r=h[1]-h[0]||Math.abs(h[0])),null==o&&(o="ordinal"===a?n?0:0/0:h[0]-i[0]*r),null==s&&(s="ordinal"===a?n?n-1:0/0:h[1]+i[1]*r),"dataMin"===o?o=h[0]:"function"==typeof o&&(o=o({min:h[0],max:h[1]})),"dataMax"===s?s=h[1]:"function"==typeof s&&(s=s({min:h[0],max:h[1]})),(null==o||!isFinite(o))&&(o=0/0),(null==s||!isFinite(s))&&(s=0/0),t.setBlank(C(o)||C(s)||"ordinal"===a&&!t.getOrdinalMeta().categories.length),e.getNeedCrossZero()&&(o>0&&s>0&&!l&&(o=0),0>o&&0>s&&!u&&(s=0));var c=e.ecModel;if(c&&"time"===a){var d,p=uh("bar",c);if(f(p,function(t){d|=t.getBaseAxis()===e.axis}),d){var g=ch(p),v=xh(o,s,e,g);o=v.min,s=v.max}}return[o,s]}function xh(t,e,n,i){var r=n.axis.getExtent(),a=r[1]-r[0],o=fh(i,n.axis);if(void 0===o)return{min:t,max:e};var s=1/0;f(o,function(t){s=Math.min(t.offset,s)});var l=-1/0;f(o,function(t){l=Math.max(t.offset+t.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,h=e-t,c=1-(s+l)/a,d=h/c-h;return e+=d*(l/u),t-=d*(s/u),{min:t,max:e}}function wh(t,e){var n=_h(t,e),i=null!=e.getMin(),r=null!=e.getMax(),a=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var o=t.type;t.setExtent(n[0],n[1]),t.niceExtent({splitNumber:a,fixMin:i,fixMax:r,minInterval:"interval"===o||"time"===o?e.get("minInterval"):null,maxInterval:"interval"===o||"time"===o?e.get("maxInterval"):null});var s=e.get("interval");null!=s&&t.setInterval&&t.setInterval(s)}function bh(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Qb(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case"value":return new eM;default:return(Qu.getClass(e)||eM).create(t)}}function Mh(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||0>n&&0>i)}function Sh(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"string"==typeof e?e=function(e){return function(n){return n=t.scale.getLabel(n),e.replace("{value}",null!=n?n:"")}}(e):"function"==typeof e?function(i,r){return null!=n&&(r=i-n),e(Ih(t,i),r)}:function(e){return t.scale.getLabel(e)}}function Ih(t,e){return"category"===t.type?t.scale.getLabel(e):e}function Th(t){var e=t.model,n=t.scale;if(e.get("axisLabel.show")&&!n.isBlank()){var i,r,a="category"===t.type,o=n.getExtent();a?r=n.count():(i=n.getTicks(),r=i.length);var s,l=t.getLabelModel(),u=Sh(t),h=1;r>40&&(h=Math.ceil(r/40));for(var c=0;r>c;c+=h){var d=i?i[c]:o[0]+c,f=u(d),p=l.getTextRect(f),g=Ch(p,l.get("rotate")||0);s?s.union(g):s=g}return s}}function Ch(t,e){var n=e*Math.PI/180,i=t.plain(),r=i.width,a=i.height,o=r*Math.cos(n)+a*Math.sin(n),s=r*Math.sin(n)+a*Math.cos(n),l=new bn(i.x,i.y,o,s);return l}function Ah(t){var e=t.get("interval");return null==e?"auto":e}function Dh(t){return"category"===t.type&&0===Ah(t.getLabelModel())}function kh(t,e){if("image"!==this.type){var n=this.style,i=this.shape;i&&"line"===i.symbolType?n.stroke=t:this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff"):(n.fill&&(n.fill=t),n.stroke&&(n.stroke=t)),this.dirty(!1)}}function Ph(t,e,n,i,r,a,o){var s=0===t.indexOf("empty");s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return l=0===t.indexOf("image://")?oa(t.slice(8),new bn(e,n,i,r),o?"center":"cover"):0===t.indexOf("path://")?aa(t.slice(7),{},new bn(e,n,i,r),o?"center":"cover"):new LM({shape:{symbolType:t,x:e,y:n,width:i,height:r}}),l.__isEmptyBrush=s,l.setColor=kh,l.setColor(a),l}function Oh(t){return ju(t.getSource(),t)}function Lh(t,e){var n=e;Ja.isInstance(e)||(n=new Ja(e),c(n,IM));var i=bh(n);return i.setExtent(t[0],t[1]),wh(i,n),i}function zh(t){c(t,IM)}function Bh(t,e){return Math.abs(t-e)<EM}function Eh(t,e,n){var i=0,r=t[0];if(!r)return!1;for(var a=1;a<t.length;a++){var o=t[a];i+=Or(r[0],r[1],o[0],o[1],e,n),r=o}var s=t[0];return Bh(r[0],s[0])&&Bh(r[1],s[1])||(i+=Or(r[0],r[1],s[0],s[1],e,n)),0!==i}function Rh(t,e,n){if(this.name=t,this.geometries=e,n)n=[n[0],n[1]];else{var i=this.getBoundingRect();n=[i.x+i.width/2,i.y+i.height/2]}this.center=n}function Nh(t){if(!t.UTF8Encoding)return t;var e=t.UTF8Scale;null==e&&(e=1024);for(var n=t.features,i=0;i<n.length;i++)for(var r=n[i],a=r.geometry,o=a.coordinates,s=a.encodeOffsets,l=0;l<o.length;l++){var u=o[l];if("Polygon"===a.type)o[l]=Fh(u,s[l],e);else if("MultiPolygon"===a.type)for(var h=0;h<u.length;h++){var c=u[h];u[h]=Fh(c,s[l][h],e)}}return t.UTF8Encoding=!1,t}function Fh(t,e,n){for(var i=[],r=e[0],a=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,l=t.charCodeAt(o+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=a,r=s,a=l,i.push([s/n,l/n])}return i}function Vh(t){return"category"===t.type?Wh(t):Xh(t)}function Hh(t,e){return"category"===t.type?Zh(t,e):{ticks:t.scale.getTicks()}}function Wh(t){var e=t.getLabelModel(),n=Gh(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function Gh(t,e){var n=Yh(t,"labels"),i=Ah(e),r=Uh(n,i);if(r)return r;var a,o;return w(i)?a=Jh(t,i):(o="auto"===i?jh(t):i,a=Qh(t,o)),qh(n,i,{labels:a,labelCategoryInterval:o})}function Zh(t,e){var n=Yh(t,"ticks"),i=Ah(e),r=Uh(n,i);if(r)return r;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),w(i))a=Jh(t,i,!0);else if("auto"===i){var s=Gh(t,t.getLabelModel());o=s.labelCategoryInterval,a=p(s.labels,function(t){return t.tickValue})}else o=i,a=Qh(t,o,!0);return qh(n,i,{ticks:a,tickCategoryInterval:o})}function Xh(t){var e=t.scale.getTicks(),n=Sh(t);return{labels:p(e,function(e,i){return{formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e}})}}function Yh(t,e){return NM(t)[e]||(NM(t)[e]=[])}function Uh(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function qh(t,e,n){return t.push({key:e,value:n}),n}function jh(t){var e=NM(t).autoInterval;return null!=e?e:NM(t).autoInterval=t.calculateCategoryInterval()}function $h(t){var e=Kh(t),n=Sh(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,a=r.getExtent(),o=r.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),h=Math.abs(u*Math.cos(i)),c=Math.abs(u*Math.sin(i)),d=0,f=0;l<=a[1];l+=s){var p=0,g=0,v=Hn(n(l),e.font,"center","top");p=1.3*v.width,g=1.3*v.height,d=Math.max(d,p,7),f=Math.max(f,g,7)}var m=d/h,y=f/c;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),x=NM(t.model),w=t.getExtent(),b=x.lastAutoInterval,M=x.lastTickCount;return null!=b&&null!=M&&Math.abs(b-_)<=1&&Math.abs(M-o)<=1&&b>_&&x.axisExtend0===w[0]&&x.axisExtend1===w[1]?_=b:(x.lastTickCount=o,x.lastAutoInterval=_,x.axisExtend0=w[0],x.axisExtend1=w[1]),_}function Kh(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Qh(t,e,n){function i(t){l.push(n?t:{formattedLabel:r(t),rawLabel:a.getLabel(t),tickValue:t})}var r=Sh(t),a=t.scale,o=a.getExtent(),s=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),h=o[0],c=a.count();0!==h&&u>1&&c/u>2&&(h=Math.round(Math.ceil(h/u)*u));var d=Dh(t),f=s.get("showMinLabel")||d,p=s.get("showMaxLabel")||d;f&&h!==o[0]&&i(o[0]);for(var g=h;g<=o[1];g+=u)i(g);return p&&g-u!==o[1]&&i(o[1]),l}function Jh(t,e,n){var i=t.scale,r=Sh(t),a=[];return f(i.getTicks(),function(t){var o=i.getLabel(t);e(t,o)&&a.push(n?t:{formattedLabel:r(t),rawLabel:o,tickValue:t})}),a}function tc(t,e){var n=t[1]-t[0],i=e,r=n/i/2;t[0]+=r,t[1]-=r}function ec(t,e,n,i){function r(t,e){return t=lo(t),e=lo(e),d?t>e:e>t}var a=e.length;if(t.onBand&&!n&&a){var o,s,l=t.getExtent();if(1===a)e[0].coord=l[0],o=e[1]={coord:l[0]};else{var u=e[a-1].tickValue-e[0].tickValue,h=(e[a-1].coord-e[0].coord)/u;f(e,function(t){t.coord-=h/2});var c=t.scale.getExtent();s=1+c[1]-e[a-1].tickValue,o={coord:e[a-1].coord+h*s},e.push(o)}var d=l[0]>l[1];r(e[0].coord,l[0])&&(i?e[0].coord=l[0]:e.shift()),i&&r(l[0],e[0].coord)&&e.unshift({coord:l[0]}),r(l[1],o.coord)&&(i?o.coord=l[1]:e.pop()),i&&r(o.coord,l[1])&&e.push({coord:l[1]})}}function nc(t){return this._axes[t]}function ic(t){ZM.call(this,t)}function rc(t,e){return e.type||(e.data?"category":"value")}function ac(t,e){return t.getCoordSysModel()===e}function oc(t,e,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,n),this.model=t}function sc(t,e,n,i){function r(t){return t.dim+"_"+t.index}n.getAxesOnZeroOf=function(){return a?[a]:[]};var a,o=t[e],s=n.model,l=s.get("axisLine.onZero"),u=s.get("axisLine.onZeroAxisIndex");if(l){if(null!=u)lc(o[u])&&(a=o[u]);else for(var h in o)if(o.hasOwnProperty(h)&&lc(o[h])&&!i[r(o[h])]){a=o[h];break}a&&(i[r(a)]=!0)}}function lc(t){return t&&"category"!==t.type&&"time"!==t.type&&Mh(t)}function uc(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}function hc(t){return p(JM,function(e){var n=t.getReferringComponents(e)[0];return n})}function cc(t){return"cartesian2d"===t.get("coordinateSystem")}function dc(t,e){var n=t.mapDimension("defaultedLabel",!0),i=n.length;if(1===i)return Rs(t,e,n[0]);if(i){for(var r=[],a=0;a<n.length;a++){var o=Rs(t,e,n[a]);r.push(o)}return r.join(" ")}}function fc(t,e,n,i,r,a){var o=n.getModel("label"),s=n.getModel("emphasis.label");Aa(t,e,o,s,{labelFetcher:r,labelDataIndex:a,defaultText:dc(r.getData(),a),isRectText:!0,autoColor:i}),pc(t),pc(e)}function pc(t,e){"outside"===t.textPosition&&(t.textPosition=e)}function gc(t,e,n){var i=t.getArea(),r=t.getBaseAxis().isHorizontal(),a=i.x,o=i.y,s=i.width,l=i.height,u=n.get("lineStyle.width")||2;a-=u/2,o-=u/2,s+=u,l+=u;var h=new I_({shape:{x:a,y:o,width:s,height:l}});return e&&(h.shape[r?"width":"height"]=0,Ha(h,{shape:{width:s,height:l}},n)),h}function vc(t,e,n){var i=t.getArea(),r=new m_({shape:{cx:lo(t.cx,1),cy:lo(t.cy,1),r0:lo(i.r0,1),r:lo(i.r,1),startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return e&&(r.shape.endAngle=i.startAngle,Ha(r,{shape:{endAngle:i.endAngle}},n)),r}function mc(t,e,n){return t?"polar"===t.type?vc(t,e,n):"cartesian2d"===t.type?gc(t,e,n):null:null}function yc(t,e){var n=t.getArea&&t.getArea();if("cartesian2d"===t.type){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}function _c(t,e,n){n.style.text=null,Va(n,{shape:{width:0}},e,t,function(){n.parent&&n.parent.remove(n)})}function xc(t,e,n){n.style.text=null,Va(n,{shape:{r:n.shape.r0}},e,t,function(){n.parent&&n.parent.remove(n)})}function wc(t,e,n,i,r,a,o,l){var u=e.getItemVisual(n,"color"),h=e.getItemVisual(n,"opacity"),c=i.getModel("itemStyle"),d=i.getModel("emphasis.itemStyle").getBarItemStyle();l||t.setShape("r",c.get("barBorderRadius")||0),t.useStyle(s({fill:u,opacity:h},c.getBarItemStyle()));var f=i.getShallow("cursor");f&&t.attr("cursor",f);var p=o?r.height>0?"bottom":"top":r.width>0?"left":"right";l||fc(t.style,d,i,u,a,n,p),Sa(t,d)}function bc(t,e){var n=t.get(rS)||0;return Math.min(n,Math.abs(e.width),Math.abs(e.height))}function Mc(t,e,n){var i=t.getData(),r=[],a=i.getLayout("valueAxisHorizontal")?1:0;r[1-a]=i.getLayout("valueAxisStart");var o=new cS({shape:{points:i.getLayout("largePoints")},incremental:!!n,__startPoint:r,__baseDimIdx:a,__largeDataIndices:i.getLayout("largeDataIndices"),__barWidth:i.getLayout("barWidth")});e.add(o),Ic(o,t,i),o.seriesIndex=t.seriesIndex,t.get("silent")||(o.on("mousedown",dS),o.on("mousemove",dS))}function Sc(t,e,n){var i=t.__baseDimIdx,r=1-i,a=t.shape.points,o=t.__largeDataIndices,s=Math.abs(t.__barWidth/2),l=t.__startPoint[r];aS[0]=e,aS[1]=n;for(var u=aS[i],h=aS[1-i],c=u-s,d=u+s,f=0,p=a.length/2;p>f;f++){var g=2*f,v=a[g+i],m=a[g+r];if(v>=c&&d>=v&&(m>=l?h>=l&&m>=h:h>=m&&l>=h))return o[f]}return-1}function Ic(t,e,n){var i=n.getVisual("borderColor")||n.getVisual("color"),r=e.getModel("itemStyle").getItemStyle(["color","borderColor"]);t.useStyle(r),t.style.fill=null,t.style.stroke=i,t.style.lineWidth=n.getLayout("barWidth")}function Tc(t,e,n,i){var r,a,o=go(n-t.rotation),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return vo(o-fS/2)?(a=l?"bottom":"top",r="center"):vo(o-1.5*fS)?(a=l?"top":"bottom",r="center"):(a="middle",r=1.5*fS>o&&o>fS/2?l?"left":"right":l?"right":"left"),{rotation:o,textAlign:r,textVerticalAlign:a}}function Cc(t,e,n){if(!Dh(t.axis)){var i=t.get("axisLabel.showMinLabel"),r=t.get("axisLabel.showMaxLabel");e=e||[],n=n||[];var a=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],h=n[1],c=n[n.length-1],d=n[n.length-2];i===!1?(Ac(a),Ac(u)):Dc(a,o)&&(i?(Ac(o),Ac(h)):(Ac(a),Ac(u))),r===!1?(Ac(s),Ac(c)):Dc(l,s)&&(r?(Ac(l),Ac(d)):(Ac(s),Ac(c)))}}function Ac(t){t&&(t.ignore=!0)}function Dc(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=De([]);return Le(r,r,-t.rotation),n.applyTransform(Pe([],r,t.getLocalTransform())),i.applyTransform(Pe([],r,e.getLocalTransform())),n.intersect(i)}}function kc(t){return"middle"===t||"center"===t}function Pc(t,e,n){var i=e.axis;if(e.get("axisTick.show")&&!i.scale.isBlank()){for(var r=e.getModel("axisTick"),a=r.getModel("lineStyle"),o=r.get("length"),l=i.getTicksCoords(),u=[],h=[],c=t._transform,d=[],f=0;f<l.length;f++){var p=l[f].coord;u[0]=p,u[1]=0,h[0]=p,h[1]=n.tickDirection*o,c&&(ae(u,u,c),ae(h,h,c));var g=new C_({anid:"tick_"+l[f].tickValue,subPixelOptimize:!0,shape:{x1:u[0],y1:u[1],x2:h[0],y2:h[1]},style:s(a.getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")}),z2:2,silent:!0});t.group.add(g),d.push(g)}return d}}function Oc(t,e,n){var i=e.axis,r=A(n.axisLabelShow,e.get("axisLabel.show"));if(r&&!i.scale.isBlank()){var a=e.getModel("axisLabel"),o=a.get("margin"),s=i.getViewLabels(),l=(A(n.labelRotate,a.get("rotate"))||0)*fS/180,u=mS(n.rotation,l,n.labelDirection),h=e.getCategories&&e.getCategories(!0),c=[],d=yS(e),p=e.get("triggerEvent");return f(s,function(r,s){var l=r.tickValue,f=r.formattedLabel,g=r.rawLabel,v=a;h&&h[l]&&h[l].textStyle&&(v=new Ja(h[l].textStyle,a,e.ecModel));var m=v.getTextColor()||e.get("axisLine.lineStyle.color"),y=i.dataToCoord(l),_=[y,n.labelOffset+n.labelDirection*o],x=new f_({anid:"label_"+l,position:_,rotation:u.rotation,silent:d,z2:10});ka(x.style,v,{text:f,textAlign:v.getShallow("align",!0)||u.textAlign,textVerticalAlign:v.getShallow("verticalAlign",!0)||v.getShallow("baseline",!0)||u.textVerticalAlign,textFill:"function"==typeof m?m("category"===i.type?g:"value"===i.type?l+"":l,s):m}),p&&(x.eventData=vS(e),x.eventData.targetType="axisLabel",x.eventData.value=g),t._dumbGroup.add(x),x.updateTransform(),c.push(x),t.group.add(x),x.decomposeTransform()}),c}}function Lc(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return zc(n,t,e),n.seriesInvolved&&Ec(n,t),n}function zc(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),a=r.get("link",!0)||[],o=[];_S(n.getCoordinateSystems(),function(n){function s(i,s,l){var h=l.model.getModel("axisPointer",r),d=h.get("show");if(d&&("auto"!==d||i||Wc(h))){null==s&&(s=h.get("triggerTooltip")),h=i?Bc(l,c,r,e,i,s):h;var f=h.get("snap"),p=Gc(l.model),g=s||f||"category"===l.type,v=t.axesInfo[p]={key:p,axis:l,coordSys:n,axisPointerModel:h,triggerTooltip:s,involveSeries:g,snap:f,useHandle:Wc(h),seriesModels:[]};u[p]=v,t.seriesInvolved|=g;var m=Rc(a,l);if(null!=m){var y=o[m]||(o[m]={axesInfo:{}});y.axesInfo[p]=v,y.mapper=a[m].mapper,v.linkGroup=y}}}if(n.axisPointerEnabled){var l=Gc(n.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=n;var h=n.model,c=h.getModel("tooltip",i);if(_S(n.getAxes(),xS(s,!1,null)),n.getTooltipAxes&&i&&c.get("show")){var d="axis"===c.get("trigger"),f="cross"===c.get("axisPointer.type"),p=n.getTooltipAxes(c.get("axisPointer.axis"));(d||f)&&_S(p.baseAxes,xS(s,f?"cross":!0,d)),f&&_S(p.otherAxes,xS(s,"cross",!1))}}})}function Bc(t,e,n,r,a,o){var l=e.getModel("axisPointer"),u={};_S(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){u[t]=i(l.get(t))}),u.snap="category"!==t.type&&!!o,"cross"===l.get("type")&&(u.type="line");var h=u.label||(u.label={});if(null==h.show&&(h.show=!1),"cross"===a){var c=l.get("label.show");if(h.show=null!=c?c:!0,!o){var d=u.lineStyle=l.get("crossStyle");d&&s(h,d.textStyle)}}return t.model.getModel("axisPointer",new Ja(u,n,r))}function Ec(t,e){e.eachSeries(function(e){var n=e.coordinateSystem,i=e.get("tooltip.trigger",!0),r=e.get("tooltip.show",!0);n&&"none"!==i&&i!==!1&&"item"!==i&&r!==!1&&e.get("axisPointer.show",!0)!==!1&&_S(t.coordSysAxesInfo[Gc(n.model)],function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())})},this)}function Rc(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var a=t[r]||{};if(Nc(a[i+"AxisId"],n.id)||Nc(a[i+"AxisIndex"],n.componentIndex)||Nc(a[i+"AxisName"],n.name))return r}}function Nc(t,e){return"all"===t||x(t)&&u(t,e)>=0||t===e}function Fc(t){var e=Vc(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,a=n.get("status"),o=n.get("value");null!=o&&(o=i.parse(o));var s=Wc(n);null==a&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==o||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),r.value=o,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function Vc(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Gc(t)]}function Hc(t){var e=Vc(t);return e&&e.axisPointerModel}function Wc(t){return!!t.get("handle.show")}function Gc(t){return t.type+"||"+t.id}function Zc(t,e,n,i,r,a){var o=wS.getAxisPointerClass(t.axisPointerClass);if(o){var s=Hc(e);s?(t._axisPointer||(t._axisPointer=new o)).render(e,s,i,a):Xc(t,i)}}function Xc(t,e,n){var i=t._axisPointer;i&&i.dispose(e,n),t._axisPointer=null}function Yc(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,a={},o=r.getAxesOnZeroOf()[0],s=r.position,l=o?"onZero":s,u=r.dim,h=i.getRect(),c=[h.x,h.x+h.width,h.y,h.y+h.height],d={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,p="x"===u?[c[2]-f,c[3]+f]:[c[0]-f,c[1]+f];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));p[d.onZero]=Math.max(Math.min(g,p[1]),p[0])}a.position=["y"===u?p[d[l]]:c[0],"x"===u?p[d[l]]:c[3]],a.rotation=Math.PI/2*("x"===u?0:1);var v={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=v[s],a.labelOffset=o?p[d[s]]-p[d.onZero]:0,e.get("axisTick.inside")&&(a.tickDirection=-a.tickDirection),A(n.labelInside,e.get("axisLabel.inside"))&&(a.labelDirection=-a.labelDirection);var m=e.get("axisLabel.rotate");return a.labelRotate="top"===l?-m:m,a.z2=1,a}function Uc(t,e,n){Jv.call(this),this.updateData(t,e,n)}function qc(t){return[t[0]/2,t[1]/2]}function jc(t,e){this.parent.drift(t,e)}function $c(t,e){if(!this.incremental&&!this.useHoverLayer)if("emphasis"===e){var n=this.__symbolOriginalScale,i=n[1]/n[0],r={scale:[Math.max(1.1*n[0],n[0]+3),Math.max(1.1*n[1],n[1]+3*i)]};this.animateTo(r,400,"elasticOut")}else"normal"===e&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}function Kc(t){this.group=new Jv,this._symbolCtor=t||Uc}function Qc(t,e,n,i){return!(!e||isNaN(e[0])||isNaN(e[1])||i.isIgnore&&i.isIgnore(n)||i.clipShape&&!i.clipShape.contain(e[0],e[1])||"none"===t.getItemVisual(n,"symbol"))}function Jc(t){return null==t||M(t)||(t={isIgnore:t}),t||{}}function td(t){var e=t.hostModel;return{itemStyle:e.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:e.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverAnimation:e.get("hoverAnimation"),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label"),cursorStyle:e.get("cursor")}}function ed(t,e,n){var i,r=t.getBaseAxis(),a=t.getOtherAxis(r),o=nd(a,n),s=r.dim,l=a.dim,u=e.mapDimension(l),h=e.mapDimension(s),c="x"===l||"radius"===l?1:0,d=p(t.dimensions,function(t){return e.mapDimension(t)}),f=e.getCalculationInfo("stackResultDimension");return(i|=Uu(e,d[0]))&&(d[0]=f),(i|=Uu(e,d[1]))&&(d[1]=f),{dataDimsForPoint:d,valueStart:o,valueAxisDim:l,baseAxisDim:s,stacked:!!i,valueDim:u,baseDim:h,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function nd(t,e){var n=0,i=t.scale.getExtent();return"start"===e?n=i[0]:"end"===e?n=i[1]:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function id(t,e,n,i){var r=0/0;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=n.get(t.baseDim,i),o[1-a]=r,e.dataToPoint(o)}function rd(t,e){var n=[];return e.diff(t).add(function(t){n.push({cmd:"+",idx:t})}).update(function(t,e){n.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){n.push({cmd:"-",idx:t})}).execute(),n}function ad(t){return isNaN(t[0])||isNaN(t[1])}function od(t,e,n,i,r,a,o,s,l,u){return"none"!==u&&u?sd.apply(this,arguments):ld.apply(this,arguments)}function sd(t,e,n,i,r,a,o,s,l,u,h){for(var c=0,d=n,f=0;i>f;f++){var p=e[d];if(d>=r||0>d)break;if(ad(p)){if(h){d+=a;continue}break}if(d===n)t[a>0?"moveTo":"lineTo"](p[0],p[1]);else if(l>0){var g=e[c],v="y"===u?1:0,m=(p[v]-g[v])*l;RS(FS,g),FS[v]=g[v]+m,RS(VS,p),VS[v]=p[v]-m,t.bezierCurveTo(FS[0],FS[1],VS[0],VS[1],p[0],p[1])}else t.lineTo(p[0],p[1]);c=d,d+=a}return f}function ld(t,e,n,i,r,a,o,s,l,u,h){for(var c=0,d=n,f=0;i>f;f++){var p=e[d];if(d>=r||0>d)break;if(ad(p)){if(h){d+=a;continue}break}if(d===n)t[a>0?"moveTo":"lineTo"](p[0],p[1]),RS(FS,p);else if(l>0){var g=d+a,v=e[g];
 
- if(h)for(;v&&ad(e[g]);)g+=a,v=e[g];var m=.5,y=e[c],v=e[g];if(!v||ad(v))RS(VS,p);else{ad(v)&&!h&&(v=p),U(NS,v,y);var _,x;if("x"===u||"y"===u){var w="x"===u?0:1;_=Math.abs(p[w]-y[w]),x=Math.abs(p[w]-v[w])}else _=rv(p,y),x=rv(p,v);m=x/(x+_),ES(VS,p,NS,-l*(1-m))}zS(FS,FS,s),BS(FS,FS,o),zS(VS,VS,s),BS(VS,VS,o),t.bezierCurveTo(FS[0],FS[1],VS[0],VS[1],p[0],p[1]),ES(FS,p,NS,l*m)}else t.lineTo(p[0],p[1]);c=d,d+=a}return f}function ud(t,e){var n=[1/0,1/0],i=[-1/0,-1/0];if(e)for(var r=0;r<t.length;r++){var a=t[r];a[0]<n[0]&&(n[0]=a[0]),a[1]<n[1]&&(n[1]=a[1]),a[0]>i[0]&&(i[0]=a[0]),a[1]>i[1]&&(i[1]=a[1])}return{min:e?n:i,max:e?i:n}}function hd(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++){var i=t[n],r=e[n];if(i[0]!==r[0]||i[1]!==r[1])return}return!0}}function cd(t){return"number"==typeof t?t:t?.5:0}function dd(t,e,n){if(!n.valueDim)return[];for(var i=[],r=0,a=e.count();a>r;r++)i.push(id(n,t,e,r));return i}function fd(t,e,n){for(var i=e.getBaseAxis(),r="x"===i.dim||"radius"===i.dim?0:1,a=[],o=0;o<t.length-1;o++){var s=t[o+1],l=t[o];a.push(l);var u=[];switch(n){case"end":u[r]=s[r],u[1-r]=l[1-r],a.push(u);break;case"middle":var h=(l[r]+s[r])/2,c=[];u[r]=c[r]=h,u[1-r]=l[1-r],c[1-r]=s[1-r],a.push(u),a.push(c);break;default:u[r]=l[r],u[1-r]=s[1-r],a.push(u)}}return t[o]&&a.push(t[o]),a}function pd(t,e){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()&&"cartesian2d"===e.type){for(var i,r,a=n.length-1;a>=0;a--){var o=n[a].dimension,s=t.dimensions[o],l=t.getDimensionInfo(s);if(i=l&&l.coordDim,"x"===i||"y"===i){r=n[a];break}}if(r){var u=e.getAxis(i),h=p(r.stops,function(t){return{coord:u.toGlobalCoord(u.dataToCoord(t.value)),color:t.color}}),c=h.length,d=r.outerColors.slice();c&&h[0].coord>h[c-1].coord&&(h.reverse(),d.reverse());var g=10,v=h[0].coord-g,m=h[c-1].coord+g,y=m-v;if(.001>y)return"transparent";f(h,function(t){t.offset=(t.coord-v)/y}),h.push({offset:c?h[c-1].offset:.5,color:d[1]||"transparent"}),h.unshift({offset:c?h[0].offset:.5,color:d[0]||"transparent"});var _=new L_(0,0,0,0,h,!0);return _[i]=v,_[i+"2"]=m,_}}}function gd(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var a=n.getAxesByScale("ordinal")[0];if(a&&(!r||!vd(a,e))){var o=e.mapDimension(a.dim),s={};return f(a.getViewLabels(),function(t){s[t.tickValue]=1}),function(t){return!s.hasOwnProperty(e.get(o,t))}}}}function vd(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),a=Math.max(1,Math.round(r/5)),o=0;r>o;o+=a)if(1.5*Uc.getSymbolSize(e,o)[t.isHorizontal()?1:0]>i)return!1;return!0}function md(t,e,n){if("cartesian2d"===t.type){var i=t.getBaseAxis().isHorizontal(),r=gc(t,e,n);if(!n.get("clip",!0)){var a=r.shape,o=Math.max(a.width,a.height);i?(a.y-=o,a.height+=2*o):(a.x-=o,a.width+=2*o)}return r}return vc(t,e,n)}function yd(t,e,n,i){var r=e.getData(),a=this.dataIndex,o=r.getName(a),s=e.get("selectedOffset");i.dispatchAction({type:"pieToggleSelect",from:t,name:o,seriesId:e.id}),r.each(function(t){_d(r.getItemGraphicEl(t),r.getItemLayout(t),e.isSelected(r.getName(t)),s,n)})}function _d(t,e,n,i,r){var a=(e.startAngle+e.endAngle)/2,o=Math.cos(a),s=Math.sin(a),l=n?i:0,u=[o*l,s*l];r?t.animate().when(200,{position:u}).start("bounceOut"):t.attr("position",u)}function xd(t,e){Jv.call(this);var n=new m_({z2:2}),i=new b_,r=new f_;this.add(n),this.add(i),this.add(r),this.updateData(t,e,!0)}function wd(t,e,n,i,r,a,o){function s(e,n,i){for(var r=e;n>r;r++)if(t[r].y+=i,r>e&&n>r+1&&t[r+1].y>t[r].y+t[r].height)return void l(r,i/2);l(n-1,i/2)}function l(e,n){for(var i=e;i>=0&&(t[i].y-=n,!(i>0&&t[i].y>t[i-1].y+t[i-1].height));i--);}function u(t,e,n,i,r,a){for(var o=a>0?e?Number.MAX_VALUE:0:e?Number.MAX_VALUE:0,s=0,l=t.length;l>s;s++){var u=Math.abs(t[s].y-i),h=t[s].len,c=t[s].len2,d=r+h>u?Math.sqrt((r+h+c)*(r+h+c)-u*u):Math.abs(t[s].x-n);e&&d>=o&&(d=o-10),!e&&o>=d&&(d=o+10),t[s].x=n+d*a,o=d}}t.sort(function(t,e){return t.y-e.y});for(var h,c=0,d=t.length,f=[],p=[],g=0;d>g;g++)h=t[g].y-c,0>h&&s(g,d,-h,r),c=t[g].y+t[g].height;0>o-c&&l(d-1,c-o);for(var g=0;d>g;g++)t[g].y>=n?p.push(t[g]):f.push(t[g]);u(f,!1,e,n,i,r),u(p,!0,e,n,i,r)}function bd(t,e,n,i,r,a){for(var o=[],s=[],l=0;l<t.length;l++)Md(t[l])||(t[l].x<e?o.push(t[l]):s.push(t[l]));wd(s,e,n,i,1,r,a),wd(o,e,n,i,-1,r,a);for(var l=0;l<t.length;l++)if(!Md(t[l])){var u=t[l].linePoints;if(u){var h=u[1][0]-u[2][0];u[2][0]=t[l].x<e?t[l].x+3:t[l].x-3,u[1][1]=u[2][1]=t[l].y,u[1][0]=u[2][0]+h}}}function Md(t){return"center"===t.position}function Sd(t,e,n){var i,r={},a="toggleSelected"===t;return n.eachComponent("legend",function(n){a&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name));var o=n.getData();f(o,function(t){var e=t.get("name");if("\n"!==e&&""!==e){var i=n.isSelected(e);r[e]=r.hasOwnProperty(e)?r[e]&&i:i}})}),"allSelect"===t||"inverseSelect"===t?{selected:r}:{name:e.name,selected:r}}function Id(t,e){var n=lx(e.get("padding")),i=e.getItemStyle(["color","opacity"]);i.fill=e.get("backgroundColor");var t=new I_({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1});return t}function Td(t,e,n,i,r,a){var o;return"line"!==e&&e.indexOf("empty")<0?(o=n.getItemStyle(),t.style.stroke=i,a||(o.stroke=r)):o=n.getItemStyle(["borderWidth","borderColor"]),t.setStyle(o)}function Cd(t,e){e.dispatchAction({type:"legendToggleSelect",name:t})}function Ad(t,e,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function Dd(t,e,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}function kd(t,e,n){var i=t.getOrient(),r=[1,1];r[i.index]=0,Ro(e,n,{type:"box",ignoreSize:r})}function Pd(t,e,n,i,r){var a=t.axis;if(!a.scale.isBlank()&&a.containData(e)){if(!t.involveSeries)return void n.showPointer(t,e);var s=Od(e,t),l=s.payloadBatch,u=s.snapToValue;l[0]&&null==r.seriesIndex&&o(r,l[0]),!i&&t.snap&&a.containData(u)&&null!=u&&(e=u),n.showPointer(t,e,l,r),n.showTooltip(t,s,u)}}function Od(t,e){var n=e.axis,i=n.dim,r=t,a=[],o=Number.MAX_VALUE,s=-1;return xI(e.seriesModels,function(e){var l,u,h=e.getData().mapDimension(i,!0);if(e.getAxisTooltipData){var c=e.getAxisTooltipData(h,t,n);u=c.dataIndices,l=c.nestestValue}else{if(u=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null),!u.length)return;l=e.getData().get(h[0],u[0])}if(null!=l&&isFinite(l)){var d=t-l,f=Math.abs(d);o>=f&&((o>f||d>=0&&0>s)&&(o=f,s=d,r=l,a.length=0),xI(u,function(t){a.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:a,snapToValue:r}}function Ld(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function zd(t,e,n,i){var r=n.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=Gc(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get("label.precision"),formatter:s.get("label.formatter")},seriesDataIndices:r.slice()})}}function Bd(t,e,n){var i=n.axesInfo=[];xI(e,function(e,n){var r=e.axisPointerModel.option,a=t[n];a?(!e.useHandle&&(r.status="show"),r.value=a.value,r.seriesDataIndices=(a.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})})}function Ed(t,e,n,i){if(Vd(e)||!t.list.length)return void i({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}function Rd(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",a=bI(i)[r]||{},o=bI(i)[r]={};xI(t,function(t){var e=t.axisPointerModel.option;"show"===e.status&&xI(e.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;o[e]=t})});var s=[],l=[];f(a,function(t,e){!o[e]&&l.push(t)}),f(o,function(t,e){!a[e]&&s.push(t)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,batch:s})}function Nd(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function Fd(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function Vd(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function Hd(t,e,n){if(!Vg.node){var i=e.getZr();SI(i).records||(SI(i).records={}),Wd(i,e);var r=SI(i).records[t]||(SI(i).records[t]={});r.handler=n}}function Wd(t,e){function n(n,i){t.on(n,function(n){var r=Yd(e);II(SI(t).records,function(t){t&&i(t,n,r.dispatchAction)}),Gd(r.pendings,e)})}SI(t).initialized||(SI(t).initialized=!0,n("click",_(Xd,"click")),n("mousemove",_(Xd,"mousemove")),n("globalout",Zd))}function Gd(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function Zd(t,e,n){t.handler("leave",null,n)}function Xd(t,e,n,i){e.handler(t,n,i)}function Yd(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}function Ud(t,e){if(!Vg.node){var n=e.getZr(),i=(SI(n).records||{})[t];i&&(SI(n).records[t]=null)}}function qd(){}function jd(t,e,n,i){$d(CI(n).lastProp,i)||(CI(n).lastProp=i,e?Va(n,i,t):(n.stopAnimation(),n.attr(i)))}function $d(t,e){if(M(t)&&M(e)){var n=!0;return f(e,function(e,i){n=n&&$d(t[i],e)}),!!n}return t===e}function Kd(t,e){t[e.get("label.show")?"show":"hide"]()}function Qd(t){return{position:t.position.slice(),rotation:t.rotation||0}}function Jd(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)})}function tf(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle(),e.fill=null):"shadow"===n&&(e=i.getAreaStyle(),e.stroke=null),e}function ef(t,e,n,i,r){var a=n.get("value"),o=rf(a,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get("label.precision"),formatter:n.get("label.formatter")}),s=n.getModel("label"),l=lx(s.get("padding")||0),u=s.getFont(),h=Hn(o,u),c=r.position,d=h.width+l[1]+l[3],f=h.height+l[0]+l[2],p=r.align;"right"===p&&(c[0]-=d),"center"===p&&(c[0]-=d/2);var g=r.verticalAlign;"bottom"===g&&(c[1]-=f),"middle"===g&&(c[1]-=f/2),nf(c,d,f,i);var v=s.get("backgroundColor");v&&"auto"!==v||(v=e.get("axisLine.lineStyle.color")),t.label={shape:{x:0,y:0,width:d,height:f,r:s.get("borderRadius")},position:c.slice(),style:{text:o,textFont:u,textFill:s.getTextColor(),textPosition:"inside",textPadding:l,fill:v,stroke:s.get("borderColor")||"transparent",lineWidth:s.get("borderWidth")||0,shadowBlur:s.get("shadowBlur"),shadowColor:s.get("shadowColor"),shadowOffsetX:s.get("shadowOffsetX"),shadowOffsetY:s.get("shadowOffsetY")},z2:10}}function nf(t,e,n,i){var r=i.getWidth(),a=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,a)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function rf(t,e,n,i,r){t=e.scale.parse(t);var a=e.scale.getLabel(t,{precision:r.precision}),o=r.formatter;if(o){var s={value:Ih(e,t),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};f(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)}),b(o)?a=o.replace("{value}",a):w(o)&&(a=o(s))}return a}function af(t,e,n){var i=Ae();return Le(i,i,n.rotation),Oe(i,i,n.position),Ga([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function of(t,e,n,i,r,a){var o=pS.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get("label.margin"),ef(e,i,r,a,{position:af(i.axis,t,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function sf(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function lf(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function uf(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}function hf(t){return"x"===t.dim?0:1}function cf(t){var e="cubic-bezier(0.23, 1, 0.32, 1)",n="left "+t+"s "+e+",top "+t+"s "+e;return p(zI,function(t){return t+"transition:"+n}).join(";")}function df(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();return i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px"),OI(["decoration","align"],function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)}),e.join(";")}function ff(t){var e=[],n=t.get("transitionDuration"),i=t.get("backgroundColor"),r=t.getModel("textStyle"),a=t.get("padding");return n&&e.push(cf(n)),i&&(Vg.canvasSupported?e.push("background-Color:"+i):(e.push("background-Color:#"+Je(i)),e.push("filter:alpha(opacity=70)"))),OI(["width","color","radius"],function(n){var i="border-"+n,r=LI(i),a=t.get(r);null!=a&&e.push(i+":"+a+("color"===n?"":"px"))}),e.push(df(r)),null!=a&&e.push("padding:"+lx(a).join("px ")+"px"),e.join(";")+";"}function pf(t,e){if(Vg.wxa)return null;var n=document.createElement("div"),i=this._zr=e.getZr();this.el=n,this._x=e.getWidth()/2,this._y=e.getHeight()/2,t.appendChild(n),this._container=t,this._show=!1,this._hideTimeout;var r=this;n.onmouseenter=function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!r._enterable){var n=i.handler;ye(t,e,!0),n.dispatch("mousemove",e)}},n.onmouseleave=function(){r._enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1}}function gf(t){this._zr=t.getZr(),this._show=!1,this._hideTimeout}function vf(t){for(var e=t.pop();t.length;){var n=t.pop();n&&(Ja.isInstance(n)&&(n=n.get("tooltip",!0)),"string"==typeof n&&(n={formatter:n}),e=new Ja(n,e,e.ecModel))}return e}function mf(t,e){return t.dispatchAction||y(e.dispatchAction,e)}function yf(t,e,n,i,r,a,o){var s=n.getOuterSize(),l=s.width,u=s.height;return null!=a&&(t+l+a>i?t-=l+a:t+=a),null!=o&&(e+u+o>r?e-=u+o:e+=o),[t,e]}function _f(t,e,n,i,r){var a=n.getOuterSize(),o=a.width,s=a.height;return t=Math.min(t+o,i)-o,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function xf(t,e,n){var i=n[0],r=n[1],a=5,o=0,s=0,l=e.width,u=e.height;switch(t){case"inside":o=e.x+l/2-i/2,s=e.y+u/2-r/2;break;case"top":o=e.x+l/2-i/2,s=e.y-r-a;break;case"bottom":o=e.x+l/2-i/2,s=e.y+u+a;break;case"left":o=e.x-i-a,s=e.y+u/2-r/2;break;case"right":o=e.x+l+a,s=e.y+u/2-r/2}return[o,s]}function wf(t){return"center"===t||"middle"===t}function bf(t){Hi(t,"label",["show"])}function Mf(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function Sf(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function If(t,e,n,i,r,a){var o=[],s=Uu(e,i),l=s?e.getCalculationInfo("stackResultDimension"):i,u=Pf(e,l,t),h=e.indicesOfNearest(l,u)[0];o[r]=e.get(n,h),o[a]=e.get(i,h);var c=ho(e.get(i,h));return c=Math.min(c,20),c>=0&&(o[a]=+o[a].toFixed(c)),o}function Tf(t,e){var n=t.getData(),r=t.coordinateSystem;if(e&&!Sf(e)&&!x(e.coord)&&r){var a=r.dimensions,o=Cf(e,n,r,t);if(e=i(e),e.type&&XI[e.type]&&o.baseAxis&&o.valueAxis){var s=GI(a,o.baseAxis.dim),l=GI(a,o.valueAxis.dim);e.coord=XI[e.type](n,o.baseDataDim,o.valueDataDim,s,l),e.value=e.coord[l]}else{for(var u=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],h=0;2>h;h++)XI[u[h]]&&(u[h]=Pf(n,n.mapDimension(a[h]),u[h]));e.coord=u}}return e}function Cf(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(Af(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function Af(t,e){var n=t.getData(),i=n.dimensions;e=n.getDimension(e);for(var r=0;r<i.length;r++){var a=n.getDimensionInfo(i[r]);if(a.name===e)return a.coordDim}}function Df(t,e){return t&&t.containData&&e.coord&&!Mf(e)?t.containData(e.coord):!0}function kf(t,e,n,i){return 2>i?t.coord&&t.coord[i]:t.value}function Pf(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,function(t){isNaN(t)||(i+=t,r++)}),i/r}return"median"===n?t.getMedian(e):t.getDataExtent(e,!0)["max"===n?1:0]}function Of(t,e,n){var i=e.coordinateSystem;t.each(function(r){var a,o=t.getItemModel(r),s=so(o.get("x"),n.getWidth()),l=so(o.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)a=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(i){var u=t.get(i.dimensions[0],r),h=t.get(i.dimensions[1],r);a=i.dataToPoint([u,h])}}else a=[s,l];isNaN(s)||(a[0]=s),isNaN(l)||(a[1]=l),t.setItemLayout(r,a)})}function Lf(t,e,n){var i;i=t?p(t&&t.dimensions,function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return s({name:t},n)}):[{name:"value",type:"float"}];var r=new Yb(i,n),a=p(n.get("data"),_(Tf,e));return t&&(a=v(a,_(Df,t))),r.initData(a,null,t?kf:function(t){return t.value}),r}function zf(t){return u(qI,t)>=0}function Bf(t,e){t=t.slice();var n=p(t,Oo);e=(e||[]).slice();var i=p(e,Oo);return function(r,a){f(t,function(t,o){for(var s={name:t,capital:n[o]},l=0;l<e.length;l++)s[e[l]]=t+i[l];r.call(a,s)})}}function Ef(t,e,n){function i(t,e){return u(e.nodes,t)>=0}function r(t,i){var r=!1;return e(function(e){f(n(t,e)||[],function(t){i.records[e.name][t]&&(r=!0)})}),r}function a(t,i){i.nodes.push(t),e(function(e){f(n(t,e)||[],function(t){i.records[e.name][t]=!0})})}return function(n){function o(t){!i(t,s)&&r(t,s)&&(a(t,s),l=!0)}var s={nodes:[],records:{}};if(e(function(t){s.records[t.name]={}}),!n)return s;a(n,s);var l;do l=!1,t(o);while(l);return s}}function Rf(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:0>n?1:e?-1:1}}function Nf(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}function Ff(t,e,n){var i=[1/0,-1/0];return KI(n,function(t){var n=t.getData();n&&KI(n.mapDimension(e,!0),function(t){var e=n.getApproximateExtent(t);e[0]<i[0]&&(i[0]=e[0]),e[1]>i[1]&&(i[1]=e[1])})}),i[1]<i[0]&&(i=[0/0,0/0]),Vf(t,i),i}function Vf(t,e){var n=t.getAxisModel(),i=n.getMin(!0),r="category"===n.get("type"),a=r&&n.getCategories().length;null!=i&&"dataMin"!==i&&"function"!=typeof i?e[0]=i:r&&(e[0]=a>0?0:0/0);var o=n.getMax(!0);return null!=o&&"dataMax"!==o&&"function"!=typeof o?e[1]=o:r&&(e[1]=a>0?a-1:0/0),n.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0)),e}function Hf(t,e){var n=t.getAxisModel(),i=t._percentWindow,r=t._valueWindow;if(i){var a=fo(r,[0,500]);a=Math.min(a,20);var o=e||0===i[0]&&100===i[1];n.setRange(o?null:+r[0].toFixed(a),o?null:+r[1].toFixed(a))}}function Wf(t){var e=t._minMaxSpan={},n=t._dataZoomModel,i=t._dataExtent;KI(["min","max"],function(r){var a=n.get(r+"Span"),o=n.get(r+"ValueSpan");null!=o&&(o=t.getAxisModel().axis.scale.parse(o)),null!=o?a=oo(i[0]+o,i,[0,100],!0):null!=a&&(o=oo(a,[0,100],i,!0)-i[0]),e[r+"Span"]=a,e[r+"ValueSpan"]=o})}function Gf(t){var e={};return tT(["start","end","startValue","endValue","throttle"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}function Zf(t,e){var n=t._rangePropMode,i=t.get("rangeMode");tT([["start","startValue"],["end","endValue"]],function(t,r){var a=null!=e[t[0]],o=null!=e[t[1]];a&&!o?n[r]="percent":!a&&o?n[r]="value":i?n[r]=i[r]:a&&(n[r]="percent")})}function Xf(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function Yf(t){return"vertical"===t?"ns-resize":"ew-resize"}function Uf(t,e,n){var i=$f(t);i[e]=n}function qf(t,e,n){var i=$f(t),r=i[e];r===n&&(i[e]=null)}function jf(t,e){return!!$f(t)[e]}function $f(t){return t[mT]||(t[mT]={})}function Kf(t){this.pointerChecker,this._zr=t,this._opt={};var e=y,n=e(Qf,this),r=e(Jf,this),a=e(tp,this),o=e(ep,this),l=e(np,this);lv.call(this),this.setPointerChecker=function(t){this.pointerChecker=t},this.enable=function(e,u){this.disable(),this._opt=s(i(u)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),(e===!0||"move"===e||"pan"===e)&&(t.on("mousedown",n),t.on("mousemove",r),t.on("mouseup",a)),(e===!0||"scale"===e||"zoom"===e)&&(t.on("mousewheel",o),t.on("pinch",l))},this.disable=function(){t.off("mousedown",n),t.off("mousemove",r),t.off("mouseup",a),t.off("mousewheel",o),t.off("pinch",l)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function Qf(t){if(!(we(t)||t.target&&t.target.draggable)){var e=t.offsetX,n=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,n)&&(this._x=e,this._y=n,this._dragging=!0)}}function Jf(t){if(this._dragging&&ap("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!jf(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,i=this._x,r=this._y,a=e-i,o=n-r;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&pv(t.event),rp(this,"pan","moveOnMouseMove",t,{dx:a,dy:o,oldX:i,oldY:r,newX:e,newY:n})}}function tp(t){we(t)||(this._dragging=!1)}function ep(t){var e=ap("zoomOnMouseWheel",t,this._opt),n=ap("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,r=Math.abs(i),a=t.offsetX,o=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1,l=i>0?s:1/s;ip(this,"zoom","zoomOnMouseWheel",t,{scale:l,originX:a,originY:o})}if(n){var u=Math.abs(i),h=(i>0?1:-1)*(u>3?.4:u>1?.15:.05);ip(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:h,originX:a,originY:o})}}}function np(t){if(!jf(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;ip(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY})}}function ip(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(pv(i.event),rp(t,e,n,i,r))}function rp(t,e,n,i,r){r.isAvailableBehavior=y(ap,null,n,i),t.trigger(e,r)}function ap(t,e,n){var i=n[t];return!t||i&&(!b(i)||e.event[i+"Key"])}function op(t,e){var n=up(t),i=e.dataZoomId,r=e.coordId;f(n,function(t){var n=t.dataZoomInfos;n[i]&&u(e.allCoordIds,r)<0&&(delete n[i],t.count--)}),cp(n);var a=n[r];a||(a=n[r]={coordId:r,dataZoomInfos:{},count:0},a.controller=hp(t,a),a.dispatchAction=_(dp,t)),!a.dataZoomInfos[i]&&a.count++,a.dataZoomInfos[i]=e;var o=fp(a.dataZoomInfos);a.controller.enable(o.controlType,o.opt),a.controller.setPointerChecker(e.containsPoint),il(a,"dispatchAction",e.dataZoomModel.get("throttle",!0),"fixRate")}function sp(t,e){var n=up(t);f(n,function(t){t.controller.dispose();var n=t.dataZoomInfos;n[e]&&(delete n[e],t.count--)}),cp(n)}function lp(t){return t.type+"\x00_"+t.id}function up(t){var e=t.getZr();return e[yT]||(e[yT]={})}function hp(t,e){var n=new Kf(t.getZr());return f(["pan","zoom","scrollMove"],function(t){n.on(t,function(n){var i=[];f(e.dataZoomInfos,function(r){if(n.isAvailableBehavior(r.dataZoomModel.option)){var a=(r.getRange||{})[t],o=a&&a(e.controller,n);!r.dataZoomModel.get("disabled",!0)&&o&&i.push({dataZoomId:r.dataZoomId,start:o[0],end:o[1]})}}),i.length&&e.dispatchAction(i)})}),n}function cp(t){f(t,function(e,n){e.count||(e.controller.dispose(),delete t[n])})}function dp(t,e){t.dispatchAction({type:"dataZoom",batch:e})}function fp(t){var e,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return f(t,function(t){var a=t.dataZoomModel,o=a.get("disabled",!0)?!1:a.get("zoomLock",!0)?"move":!0;i[n+o]>i[n+e]&&(e=o),r&=a.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}function pp(t){return function(e,n,i,r){var a=this._range,o=a.slice(),s=e.axisModels[0];if(s){var l=t(o,s,e,n,i,r);return $I(l,o,[0,100],"all"),this._range=o,a[0]!==o[0]||a[1]!==o[1]?o:void 0}}}function gp(t){var e={};f(t,function(t){e[t]=1}),t.length=0,f(e,function(e,n){t.push(n)})}function vp(t){var e=t.pieceList;t.hasSpecialVisual=!1,f(e,function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)})}function mp(t){var e=t.categories,n=t.visual,i=t.categoryMap={};if(IT(e,function(t,e){i[t]=e}),!x(n)){var r=[];M(n)?IT(n,function(t,e){var n=i[e];r[null!=n?n:CT]=t}):r[CT]=n,n=Tp(t,r)}for(var a=e.length-1;a>=0;a--)null==n[a]&&(delete i[e[a]],e.pop())}function yp(t,e){var n=t.visual,i=[];M(n)?IT(n,function(t){i.push(t)}):null!=n&&i.push(n);var r={color:1,symbol:1};e||1!==i.length||r.hasOwnProperty(t.type)||(i[1]=i[0]),Tp(t,i)}function _p(t){return{applyVisual:function(e,n,i){e=this.mapValueToVisual(e),i("color",t(n("color"),e))},_doMap:Sp([0,1])}}function xp(t){var e=this.option.visual;return e[Math.round(oo(t,[0,1],[0,e.length-1],!0))]||{}}function wp(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function bp(t){var e=this.option.visual;return e[this.option.loop&&t!==CT?t%e.length:t]}function Mp(){return this.option.visual[0]}function Sp(t){return{linear:function(e){return oo(e,t,this.option.visual,!0)},category:bp,piecewise:function(e,n){var i=Ip.call(this,n);return null==i&&(i=oo(e,t,this.option.visual,!0)),i},fixed:Mp}}function Ip(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=AT.findPieceIndex(t,n),r=n[i];if(r&&r.visual)return r.visual[this.type]}}function Tp(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=p(e,function(t){return je(t)})),e}function Cp(t,e,n){return t?n>=e:n>e}function Ap(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function Dp(t,e,n){function r(){var t=function(){};t.prototype.__hidden=t.prototype;var e=new t;return e}var a={};return PT(e,function(e){var o=a[e]=r();PT(t[e],function(t,r){if(AT.isValidType(r)){var a={type:r,visual:t};n&&n(a,e),o[r]=new AT(a),"opacity"===r&&(a=i(a),a.type="colorAlpha",o.__hidden.__alphaForOpacity=new AT(a))}})}),a}function kp(t,e,n){var r;f(n,function(t){e.hasOwnProperty(t)&&Ap(e[t])&&(r=!0)}),r&&f(n,function(n){e.hasOwnProperty(n)&&Ap(e[n])?t[n]=i(e[n]):delete t[n]})}function Pp(t,e,n,i,r,a){function o(t){return n.getItemVisual(h,t)}function s(t,e){n.setItemVisual(h,t,e)}function l(t,l){h=null==a?t:l;var c=n.getRawDataItem(h);if(!c||c.visualMap!==!1)for(var d=i.call(r,t),f=e[d],p=u[d],g=0,v=p.length;v>g;g++){var m=p[g];f[m]&&f[m].applyVisual(t,o,s)}}var u={};f(t,function(t){var n=AT.prepareVisualTypes(e[t]);u[t]=n});var h;null==a?n.each(l):n.each([a],l)}function Op(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e){var r=i.range,a=e[t];return Lp(a,r)}},rect:function(i,r,a){if(i){var o=a.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]<s[0]&&s.reverse(),Lp(s[0],o)||Lp(s[1],o)||Lp(o[0],s)||Lp(o[1],s)}}}}function Lp(t,e){return e[0]<=t&&t<=e[1]}function zp(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!LT[i.mainType]&&r&&r.model!==n}function Bp(t){return t=Np(t),function(e){return Ya(e,t)}}function Ep(t,e){return t=Np(t),function(n){var i=null!=e?e:n,r=i?t.width:t.height,a=i?t.x:t.y;return[a,a+(r||0)]}}function Rp(t,e,n){return t=Np(t),function(i,r){return t.contain(r[0],r[1])&&!zp(i,e,n)}}function Np(t){return bn.create(t)}function Fp(t,e,n){var i=this._targetInfoList=[],r={},a=Hp(e,t);zT(VT,function(t,e){(!n||!n.include||BT(n.include,e)>=0)&&t(a,i,r)})}function Vp(t){return t[0]>t[1]&&t.reverse(),t}function Hp(t,e){return $i(t,e,{includeMainTypes:NT})}function Wp(t,e,n,i){var r=n.getAxis(["x","y"][t]),a=Vp(p([0,1],function(t){return e?r.coordToData(r.toLocalCoord(i[t])):r.toGlobalCoord(r.dataToCoord(i[t]))})),o=[];return o[t]=a,o[1-t]=[0/0,0/0],{values:a,xyMinMax:o}}function Gp(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function Zp(t,e){var n=Xp(t),i=Xp(e),r=[n[0]/i[0],n[1]/i[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function Xp(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[0/0,0/0]}function Yp(t,e,n,i,r){if(r){var a=t.getZr();if(!a[UT]){a[YT]||(a[YT]=Up);var o=il(a,YT,n,e);o(t,i)}}}function Up(t,e){if(!t.isDisposed()){var n=t.getZr();n[UT]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[UT]=!1}}function qp(t,e,n,i){for(var r=0,a=e.length;a>r;r++){var o=e[r];if(t[o.brushType](i,n,o.selectors,o))return!0}}function jp(t){var e=t.brushSelector;if(b(e)){var n=[];return f(OT,function(t,i){n[i]=function(n,i,r,a){var o=i.getItemLayout(n);return t[e](o,r,a)}}),n}if(w(e)){var i={};return f(OT,function(t,n){i[n]=e}),i}return e}function $p(t,e){var n=t.option.seriesIndex;return null!=n&&"all"!==n&&(x(n)?u(n,e)<0:e!==n)}function Kp(t){var e=t.selectors={};return f(OT[t.brushType],function(n,i){e[i]=function(i){return n(i,e,t)}}),t}function Qp(t){return new bn(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}function Jp(t,e){return r({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Ja(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}function tg(t){lv.call(this),this._zr=t,this.group=new Jv,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._lastMouseMovePoint={},this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+hC++,this._handlers={},QT(cC,function(t,e){this._handlers[e]=y(t,this)},this)}function eg(t,e){var n=t._zr;t._enableGlobalPan||Uf(n,oC,t._uid),QT(t._handlers,function(t,e){n.on(e,t)}),t._brushType=e.brushType,t._brushOption=r(i(uC),e,!0)}function ng(t){var e=t._zr;qf(e,oC,t._uid),QT(t._handlers,function(t,n){e.off(n,t)}),t._brushType=t._brushOption=null}function ig(t,e){var n=dC[e.brushType].createCover(t,e);return n.__brushOption=e,og(n,e),t.group.add(n),n}function rg(t,e){var n=lg(e);return n.endCreating&&(n.endCreating(t,e),og(e,e.__brushOption)),e}function ag(t,e){var n=e.__brushOption;lg(e).updateCoverShape(t,e,n.range,n)}function og(t,e){var n=e.z;null==n&&(n=iC),t.traverse(function(t){t.z=n,t.z2=n})}function sg(t,e){lg(e).updateCommon(t,e),ag(t,e)}function lg(t){return dC[t.__brushOption.brushType]}function ug(t,e,n){var i=t._panels;if(!i)return!0;var r,a=t._transform;return QT(i,function(t){t.isTargetByCursor(e,n,a)&&(r=t)}),r}function hg(t,e){var n=t._panels;if(!n)return!0;var i=e.__brushOption.panelId;return null!=i?n[i]:!0}function cg(t){var e=t._covers,n=e.length;return QT(e,function(e){t.group.remove(e)},t),e.length=0,!!n}function dg(t,e){var n=JT(t._covers,function(t){var e=t.__brushOption,n=i(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}});t.trigger("brush",n,{isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function fg(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],i=e[0],r=n[0]-i[0],a=n[1]-i[1],o=nC(r*r+a*a,.5);return o>rC}function pg(t){var e=t.length-1;return 0>e&&(e=0),[t[0],t[e]]}function gg(t,e,n,i){var r=new Jv;return r.add(new I_({name:"main",style:_g(n),silent:!0,draggable:!0,cursor:"move",drift:KT(t,e,r,"nswe"),ondragend:KT(dg,e,{isEnd:!0})})),QT(i,function(n){r.add(new I_({name:n,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:KT(t,e,r,n),ondragend:KT(dg,e,{isEnd:!0})}))}),r}function vg(t,e,n,i){var r=i.brushStyle.lineWidth||0,a=eC(r,aC),o=n[0][0],s=n[1][0],l=o-r/2,u=s-r/2,h=n[0][1],c=n[1][1],d=h-a+r/2,f=c-a+r/2,p=h-o,g=c-s,v=p+r,m=g+r;yg(t,e,"main",o,s,p,g),i.transformable&&(yg(t,e,"w",l,u,a,m),yg(t,e,"e",d,u,a,m),yg(t,e,"n",l,u,v,a),yg(t,e,"s",l,f,v,a),yg(t,e,"nw",l,u,a,a),yg(t,e,"ne",d,u,a,a),yg(t,e,"sw",l,f,a,a),yg(t,e,"se",d,f,a,a))}function mg(t,e){var n=e.__brushOption,i=n.transformable,r=e.childAt(0);r.useStyle(_g(n)),r.attr({silent:!i,cursor:i?"move":"default"}),QT(["w","e","n","s","se","sw","ne","nw"],function(n){var r=e.childOfName(n),a=bg(t,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?lC[a]+"-resize":null})})}function yg(t,e,n,i,r,a,o){var s=e.childOfName(n);s&&s.setShape(Cg(Tg(t,e,[[i,r],[i+a,r+o]])))}function _g(t){return s({strokeNoScale:!0},t.brushStyle)}function xg(t,e,n,i){var r=[tC(t,n),tC(e,i)],a=[eC(t,n),eC(e,i)];return[[r[0],a[0]],[r[1],a[1]]]
 
- }function wg(t){return Wa(t.group)}function bg(t,e){if(e.length>1){e=e.split("");var n=[bg(t,e[0]),bg(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}var i={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},n=Za(i[e],wg(t));return r[n]}function Mg(t,e,n,i,r,a,o){var s=i.__brushOption,l=t(s.range),u=Ig(n,a,o);QT(r.split(""),function(t){var e=sC[t];l[e[0]][e[1]]+=u[e[0]]}),s.range=e(xg(l[0][0],l[1][0],l[0][1],l[1][1])),sg(n,i),dg(n,{isEnd:!1})}function Sg(t,e,n,i){var r=e.__brushOption.range,a=Ig(t,n,i);QT(r,function(t){t[0]+=a[0],t[1]+=a[1]}),sg(t,e),dg(t,{isEnd:!1})}function Ig(t,e,n){var i=t.group,r=i.transformCoordToLocal(e,n),a=i.transformCoordToLocal(0,0);return[r[0]-a[0],r[1]-a[1]]}function Tg(t,e,n){var r=hg(t,e);return r&&r!==!0?r.clipPath(n,t._transform):i(n)}function Cg(t){var e=tC(t[0][0],t[1][0]),n=tC(t[0][1],t[1][1]),i=eC(t[0][0],t[1][0]),r=eC(t[0][1],t[1][1]);return{x:e,y:n,width:i-e,height:r-n}}function Ag(t,e,n){if(t._brushType){var i=t._zr,r=t._covers,a=ug(t,e,n);if(!t._dragging)for(var o=0;o<r.length;o++){var s=r[o].__brushOption;if(a&&(a===!0||s.panelId===a.panelId)&&dC[s.brushType].contain(r[o],n[0],n[1]))return}a&&i.setCursorStyle("crosshair")}}function Dg(t){var e=t.event;e.preventDefault&&e.preventDefault()}function kg(t,e,n){return t.childOfName("main").contain(e,n)}function Pg(t,e,n,r){var a,o=t._creatingCover,s=t._creatingPanel,l=t._brushOption;if(t._track.push(n.slice()),fg(t)||o){if(s&&!o){"single"===l.brushMode&&cg(t);var u=i(l);u.brushType=Og(u.brushType,s),u.panelId=s===!0?null:s.panelId,o=t._creatingCover=ig(t,u),t._covers.push(o)}if(o){var h=dC[Og(t._brushType,s)],c=o.__brushOption;c.range=h.getCreatingRange(Tg(t,o,t._track)),r&&(rg(t,o),h.updateCommon(t,o)),ag(t,o),a={isEnd:r}}}else r&&"single"===l.brushMode&&l.removeOnClick&&ug(t,e,n)&&cg(t)&&(a={isEnd:r,removeOnClick:!0});return a}function Og(t,e){return"auto"===t?e.defaultBrushType:t}function Lg(t,e,n){if(t._dragging){!n&&Dg(e);var i=e.offsetX,r=e.offsetY,a=t._lastMouseMovePoint;n&&(i=a.x,r=a.y);var o=t.group.transformCoordToLocal(i,r),s=Pg(t,e,o,!0);t._dragging=!1,t._track=[],t._creatingCover=null,s&&dg(t,s)}}function zg(t){return{createCover:function(e,n){return gg(KT(Mg,function(e){var n=[e,[0,100]];return t&&n.reverse(),n},function(e){return e[t]}),e,n,[["w","e"],["n","s"]][t])},getCreatingRange:function(e){var n=pg(e),i=tC(n[0][t],n[1][t]),r=eC(n[0][t],n[1][t]);return[i,r]},updateCoverShape:function(e,n,i,r){var a,o=hg(e,n);if(o!==!0&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(t,e._transform);else{var s=e._zr;a=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[i,a];t&&l.reverse(),vg(e,n,l,r)},updateCommon:mg,contain:kg}}function Bg(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())}function Eg(t,e,n){this.model=t,this.ecModel=e,this.api=n,this._brushType,this._brushMode}var Rg=2311,Ng=function(){return Rg++},Fg={};Fg="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:"undefined"==typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:e(navigator.userAgent);var Vg=Fg,Hg={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},Wg={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},Gg=Object.prototype.toString,Zg=Array.prototype,Xg=Zg.forEach,Yg=Zg.filter,Ug=Zg.slice,qg=Zg.map,jg=Zg.reduce,$g={},Kg=function(){return $g.createCanvas()};$g.createCanvas=function(){return document.createElement("canvas")};var Qg,Jg="__ec_primitive__";R.prototype={constructor:R,get:function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},set:function(t,e){return this.data[t]=e},each:function(t,e){void 0!==e&&(t=y(t,e));for(var n in this.data)this.data.hasOwnProperty(n)&&t(this.data[n],n)},removeKey:function(t){delete this.data[t]}};var tv=(Object.freeze||Object)({$override:n,clone:i,merge:r,mergeAll:a,extend:o,defaults:s,createCanvas:Kg,getContext:l,indexOf:u,inherits:h,mixin:c,isArrayLike:d,each:f,map:p,reduce:g,filter:v,find:m,bind:y,curry:_,isArray:x,isFunction:w,isString:b,isObject:M,isBuiltInObject:S,isTypedArray:I,isDom:T,eqNaN:C,retrieve:A,retrieve2:D,retrieve3:k,slice:P,normalizeCssArray:O,assert:L,trim:z,setAsPrimitive:B,isPrimitive:E,createHashMap:N,concatArray:F,noop:V}),ev="undefined"==typeof Float32Array?Array:Float32Array,nv=q,iv=j,rv=ee,av=ne,ov=(Object.freeze||Object)({create:H,copy:W,clone:G,set:Z,add:X,scaleAndAdd:Y,sub:U,len:q,length:nv,lenSquare:j,lengthSquare:iv,mul:$,div:K,dot:Q,scale:J,normalize:te,distance:ee,dist:rv,distanceSquare:ne,distSquare:av,negate:ie,lerp:re,applyTransform:ae,min:oe,max:se});le.prototype={constructor:le,_dragStart:function(t){var e=t.target;e&&e.draggable&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.dispatchToElement(ue(e,t),"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,a=i-this._y;this._x=n,this._y=i,e.drift(r,a,t),this.dispatchToElement(ue(e,t),"drag",t.event);var o=this.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=o,e!==o&&(s&&o!==s&&this.dispatchToElement(ue(s,t),"dragleave",t.event),o&&o!==s&&this.dispatchToElement(ue(o,t),"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.dispatchToElement(ue(e,t),"dragend",t.event),this._dropTarget&&this.dispatchToElement(ue(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null}};var sv=Array.prototype.slice,lv=function(t){this._$handlers={},this._$eventProcessor=t};lv.prototype={constructor:lv,one:function(t,e,n,i){return ce(this,t,e,n,i,!0)},on:function(t,e,n,i){return ce(this,t,e,n,i,!1)},isSilent:function(t){var e=this._$handlers;return!e[t]||!e[t].length},off:function(t,e){var n=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,a=n[t].length;a>r;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},trigger:function(t){var e=this._$handlers[t],n=this._$eventProcessor;if(e){var i=arguments,r=i.length;r>3&&(i=sv.call(i,1));for(var a=e.length,o=0;a>o;){var s=e[o];if(n&&n.filter&&null!=s.query&&!n.filter(t,s.query))o++;else{switch(r){case 1:s.h.call(s.ctx);break;case 2:s.h.call(s.ctx,i[1]);break;case 3:s.h.call(s.ctx,i[1],i[2]);break;default:s.h.apply(s.ctx,i)}s.one?(e.splice(o,1),a--):o++}}}return n&&n.afterTrigger&&n.afterTrigger(t),this},triggerWithContext:function(t){var e=this._$handlers[t],n=this._$eventProcessor;if(e){var i=arguments,r=i.length;r>4&&(i=sv.call(i,1,i.length-1));for(var a=i[i.length-1],o=e.length,s=0;o>s;){var l=e[s];if(n&&n.filter&&null!=l.query&&!n.filter(t,l.query))s++;else{switch(r){case 1:l.h.call(a);break;case 2:l.h.call(a,i[1]);break;case 3:l.h.call(a,i[1],i[2]);break;default:l.h.apply(a,i)}l.one?(e.splice(s,1),o--):s++}}}return n&&n.afterTrigger&&n.afterTrigger(t),this}};var uv=Math.log(2),hv="undefined"!=typeof window&&!!window.addEventListener,cv=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,dv="___zrEVENTSAVED",fv=[],pv=hv?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0},gv=function(){this._track=[]};gv.prototype={constructor:gv,recognize:function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},clear:function(){return this._track.length=0,this},_doTrack:function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},a=0,o=i.length;o>a;a++){var s=i[a],l=pe(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},_recognize:function(t){for(var e in vv)if(vv.hasOwnProperty(e)){var n=vv[e](this._track,t);if(n)return n}}};var vv={pinch:function(t,e){var n=t.length;if(n){var i=(t[n-1]||{}).points,r=(t[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var a=be(i)/be(r);!isFinite(a)&&(a=1),e.pinchScale=a;var o=Me(i);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}},mv="silent";Te.prototype.dispose=function(){};var yv=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],_v=function(t,e,n,i){lv.call(this),this.storage=t,this.painter=e,this.painterRoot=i,n=n||new Te,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,le.call(this),this.setHandlerProxy(n)};_v.prototype={constructor:_v,setHandlerProxy:function(t){this.proxy&&this.proxy.dispose(),t&&(f(yv,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},mousemove:function(t){var e=t.zrX,n=t.zrY,i=this._hovered,r=i.target;r&&!r.__zr&&(i=this.findHover(i.x,i.y),r=i.target);var a=this._hovered=this.findHover(e,n),o=a.target,s=this.proxy;s.setCursor&&s.setCursor(o?o.cursor:"default"),r&&o!==r&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(a,"mousemove",t),o&&o!==r&&this.dispatchToElement(a,"mouseover",t)},mouseout:function(t){this.dispatchToElement(this._hovered,"mouseout",t);var e,n=t.toElement||t.relatedTarget;do n=n&&n.parentNode;while(n&&9!==n.nodeType&&!(e=n===this.painterRoot));!e&&this.trigger("globalout",{event:t})},resize:function(){this._hovered={}},dispatch:function(t,e){var n=this[t];n&&n.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,e,n){t=t||{};var i=t.target;if(!i||!i.silent){for(var r="on"+e,a=Se(e,t,n);i&&(i[r]&&(a.cancelBubble=i[r].call(i,a)),i.trigger(e,a),i=i.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(e,a),this.painter&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,a),t.trigger&&t.trigger(e,a)}))}},findHover:function(t,e,n){for(var i=this.storage.getDisplayList(),r={x:t,y:e},a=i.length-1;a>=0;a--){var o;if(i[a]!==n&&!i[a].ignore&&(o=Ce(i[a],t,e))&&(!r.topTarget&&(r.topTarget=i[a]),o!==mv)){r.target=i[a];break}}return r},processGesture:function(t,e){this._gestureMgr||(this._gestureMgr=new gv);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r,this.dispatchToElement({target:i.target},r,i.event)}}},f(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){_v.prototype[t]=function(e){var n=this.findHover(e.zrX,e.zrY),i=n.target;if("mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||rv(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}),c(_v,lv),c(_v,le);var xv="undefined"==typeof Float32Array?Array:Float32Array,wv=(Object.freeze||Object)({create:Ae,identity:De,copy:ke,mul:Pe,translate:Oe,rotate:Le,scale:ze,invert:Be,clone:Ee}),bv=De,Mv=5e-5,Sv=function(t){t=t||{},t.position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},Iv=Sv.prototype;Iv.transform=null,Iv.needLocalTransform=function(){return Re(this.rotation)||Re(this.position[0])||Re(this.position[1])||Re(this.scale[0]-1)||Re(this.scale[1]-1)};var Tv=[];Iv.updateTransform=function(){var t=this.parent,e=t&&t.transform,n=this.needLocalTransform(),i=this.transform;if(!n&&!e)return void(i&&bv(i));i=i||Ae(),n?this.getLocalTransform(i):bv(i),e&&(n?Pe(i,t.transform,i):ke(i,t.transform)),this.transform=i;var r=this.globalScaleRatio;if(null!=r&&1!==r){this.getGlobalScale(Tv);var a=Tv[0]<0?-1:1,o=Tv[1]<0?-1:1,s=((Tv[0]-a)*r+a)/Tv[0]||0,l=((Tv[1]-o)*r+o)/Tv[1]||0;i[0]*=s,i[1]*=s,i[2]*=l,i[3]*=l}this.invTransform=this.invTransform||Ae(),Be(this.invTransform,i)},Iv.getLocalTransform=function(t){return Sv.getLocalTransform(this,t)},Iv.setTransform=function(t){var e=this.transform,n=t.dpr||1;e?t.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):t.setTransform(n,0,0,n,0,0)},Iv.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var Cv=[],Av=Ae();Iv.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=this.position,r=this.scale;Re(e-1)&&(e=Math.sqrt(e)),Re(n-1)&&(n=Math.sqrt(n)),t[0]<0&&(e=-e),t[3]<0&&(n=-n),i[0]=t[4],i[1]=t[5],r[0]=e,r[1]=n,this.rotation=Math.atan2(-t[1]/n,t[0]/e)}},Iv.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Pe(Cv,t.invTransform,e),e=Cv);var n=this.origin;n&&(n[0]||n[1])&&(Av[4]=n[0],Av[5]=n[1],Pe(Cv,e,Av),Cv[4]-=n[0],Cv[5]-=n[1],e=Cv),this.setLocalTransform(e)}},Iv.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},Iv.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&ae(n,n,i),n},Iv.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&ae(n,n,i),n},Sv.getLocalTransform=function(t,e){e=e||[],bv(e);var n=t.origin,i=t.scale||[1,1],r=t.rotation||0,a=t.position||[0,0];return n&&(e[4]-=n[0],e[5]-=n[1]),ze(e,e,i),r&&Le(e,e,r),n&&(e[4]+=n[0],e[5]+=n[1]),e[4]+=a[0],e[5]+=a[1],e};var Dv={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i)))},elasticOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/i)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i):n*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*t*t*((e+1)*t-e):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Dv.bounceOut(1-t)},bounceOut:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return.5>t?.5*Dv.bounceIn(2*t):.5*Dv.bounceOut(2*t-1)+.5}};Ne.prototype={constructor:Ne,step:function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)return void(this._pausedTime+=e);var n=(t-this._startTime-this._pausedTime)/this._life;if(!(0>n)){n=Math.min(n,1);var i=this.easing,r="string"==typeof i?Dv[i]:i,a="function"==typeof r?r(n):n;return this.fire("frame",a),1===n?this.loop?(this.restart(t),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(t,e){t="on"+t,this[t]&&this[t](this._target,e)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var kv=function(){this.head=null,this.tail=null,this._len=0},Pv=kv.prototype;Pv.insert=function(t){var e=new Ov(t);return this.insertEntry(e),e},Pv.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},Pv.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},Pv.len=function(){return this._len},Pv.clear=function(){this.head=this.tail=null,this._len=0};var Ov=function(t){this.value=t,this.next,this.prev},Lv=function(t){this._list=new kv,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},zv=Lv.prototype;zv.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}o?o.value=e:o=new Ov(e),o.key=t,n.insertEntry(o),i[t]=o}return r},zv.get=function(t){var e=this._map[t],n=this._list;return null!=e?(e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value):void 0},zv.clear=function(){this._list.clear(),this._map={}};var Bv={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]},Ev=new Lv(20),Rv=null,Nv=tn,Fv=en,Vv=(Object.freeze||Object)({parse:je,lift:Qe,toHex:Je,fastLerp:tn,fastMapToColor:Nv,lerp:en,mapToColor:Fv,modifyHSL:nn,modifyAlpha:rn,stringify:an}),Hv=Array.prototype.slice,Wv=function(t,e,n,i){this._tracks={},this._target=t,this._loop=e||!1,this._getter=n||on,this._setter=i||sn,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};Wv.prototype={when:function(t,e){var n=this._tracks;for(var i in e)if(e.hasOwnProperty(i)){if(!n[i]){n[i]=[];var r=this._getter(this._target,i);if(null==r)continue;0!==t&&n[i].push({time:0,value:gn(r)})}n[i].push({time:t,value:e[i]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;t<this._clipList.length;t++)this._clipList[t].pause();this._paused=!0},resume:function(){for(var t=0;t<this._clipList.length;t++)this._clipList[t].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var t=this._doneList,e=t.length,n=0;e>n;n++)t[n].call(this)},start:function(t,e){var n,i=this,r=0,a=function(){r--,r||i._doneCallback()};for(var o in this._tracks)if(this._tracks.hasOwnProperty(o)){var s=yn(this,t,a,this._tracks[o],o,e);s&&(this._clipList.push(s),r++,this.animation&&this.animation.addClip(s),n=s)}if(n){var l=n.onframe;n.onframe=function(t,e){l(t,e);for(var n=0;n<i._onframeList.length;n++)i._onframeList[n](t,e)}}return r||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,n=this.animation,i=0;i<e.length;i++){var r=e[i];t&&r.onframe(this._target,1),n&&n.removeClip(r)}e.length=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}};var Gv=1;"undefined"!=typeof window&&(Gv=Math.max(window.devicePixelRatio||1,1));var Zv=0,Xv=Gv,Yv=function(){};1===Zv&&(Yv=console.error);var Uv=Yv,qv=function(){this.animators=[]};qv.prototype={constructor:qv,animate:function(t,e){var n,i=!1,r=this,a=this.__zr;if(t){var o=t.split("."),s=r;i="shape"===o[0];for(var l=0,h=o.length;h>l;l++)s&&(s=s[o[l]]);s&&(n=s)}else n=r;if(!n)return void Uv('Property "'+t+'" is not existed in element '+r.id);var c=r.animators,d=new Wv(n,e);return d.during(function(){r.dirty(i)}).done(function(){c.splice(u(c,d),1)}),c.push(d),a&&a.animation.addAnimator(d),d},stopAnimation:function(t){for(var e=this.animators,n=e.length,i=0;n>i;i++)e[i].stop(t);return e.length=0,this},animateTo:function(t,e,n,i,r,a){_n(this,t,e,n,i,r,a)},animateFrom:function(t,e,n,i,r,a){_n(this,t,e,n,i,r,a,!0)}};var jv=function(t){Sv.call(this,t),lv.call(this,t),qv.call(this,t),this.id=t.id||Ng()};jv.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(){},attrKV:function(t,e){if("position"===t||"scale"===t||"origin"===t){if(e){var n=this[t];n||(n=this[t]=[]),n[0]=e[0],n[1]=e[1]}}else this[t]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(M(t))for(var n in t)t.hasOwnProperty(n)&&this.attrKV(n,t[n]);return this.dirty(!1),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},c(jv,qv),c(jv,Sv),c(jv,lv);var $v=ae,Kv=Math.min,Qv=Math.max;bn.prototype={constructor:bn,union:function(t){var e=Kv(t.x,this.x),n=Kv(t.y,this.y);this.width=Qv(t.x+t.width,this.x+this.width)-e,this.height=Qv(t.y+t.height,this.y+this.height)-n,this.x=e,this.y=n},applyTransform:function(){var t=[],e=[],n=[],i=[];return function(r){if(r){t[0]=n[0]=this.x,t[1]=i[1]=this.y,e[0]=i[0]=this.x+this.width,e[1]=n[1]=this.y+this.height,$v(t,t,r),$v(e,e,r),$v(n,n,r),$v(i,i,r),this.x=Kv(t[0],e[0],n[0],i[0]),this.y=Kv(t[1],e[1],n[1],i[1]);var a=Qv(t[0],e[0],n[0],i[0]),o=Qv(t[1],e[1],n[1],i[1]);this.width=a-this.x,this.height=o-this.y}}}(),calculateTransform:function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=Ae();return Oe(r,r,[-e.x,-e.y]),ze(r,r,[n,i]),Oe(r,r,[t.x,t.y]),r},intersect:function(t){if(!t)return!1;t instanceof bn||(t=bn.create(t));var e=this,n=e.x,i=e.x+e.width,r=e.y,a=e.y+e.height,o=t.x,s=t.x+t.width,l=t.y,u=t.y+t.height;return!(o>i||n>s||l>a||r>u)},contain:function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},clone:function(){return new bn(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},bn.create=function(t){return new bn(t.x,t.y,t.width,t.height)};var Jv=function(t){t=t||{},jv.call(this,t);for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};Jv.prototype={constructor:Jv,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},childCount:function(){return this._children.length},add:function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,n=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof Jv&&t.addChildrenToStorage(e)),n&&n.refresh()},remove:function(t){var e=this.__zr,n=this.__storage,i=this._children,r=u(i,t);return 0>r?this:(i.splice(r,1),t.parent=null,n&&(n.delFromStorage(t),t instanceof Jv&&t.delChildrenFromStorage(n)),e&&e.refresh(),this)},removeAll:function(){var t,e,n=this._children,i=this.__storage;for(e=0;e<n.length;e++)t=n[e],i&&(i.delFromStorage(t),t instanceof Jv&&t.delChildrenFromStorage(i)),t.parent=null;return n.length=0,this},eachChild:function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},traverse:function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n];t.call(e,i),"group"===i.type&&i.traverse(t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children.length;e++){var n=this._children[e];t.addToStorage(n),n instanceof Jv&&n.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children.length;e++){var n=this._children[e];t.delFromStorage(n),n instanceof Jv&&n.delChildrenFromStorage(t)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(var e=null,n=new bn(0,0,0,0),i=t||this._children,r=[],a=0;a<i.length;a++){var o=i[a];if(!o.ignore&&!o.invisible){var s=o.getBoundingRect(),l=o.getLocalTransform(r);l?(n.copy(s),n.applyTransform(l),e=e||n.clone(),e.union(n)):(e=e||s.clone(),e.union(s))}}return e||n}},h(Jv,jv);var tm=32,em=7,nm=function(){this._roots=[],this._displayList=[],this._displayListLen=0};nm.prototype={constructor:nm,traverse:function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},getDisplayList:function(t,e){return e=e||!1,t&&this.updateDisplayList(e),this._displayList},updateDisplayList:function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;r>i;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,Vg.canvasSupported&&kn(n,Pn)},_updateAndAddDisplayable:function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.__dirty&&t.update(),t.afterUpdate();var i=t.clipPath;if(i){e=e?e.slice():[];for(var r=i,a=t;r;)r.parent=a,r.updateTransform(),e.push(r),a=r,r=r.clipPath}if(t.isGroup){for(var o=t._children,s=0;s<o.length;s++){var l=o[s];t.__dirty&&(l.__dirty=!0),this._updateAndAddDisplayable(l,e,n)}t.__dirty=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){t.__storage!==this&&(t instanceof Jv&&t.addChildrenToStorage(this),this.addToStorage(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var e=0;e<this._roots.length;e++){var n=this._roots[e];n instanceof Jv&&n.delChildrenFromStorage(this)}return this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array)for(var e=0,i=t.length;i>e;e++)this.delRoot(t[e]);else{var r=u(this._roots,t);r>=0&&(this.delFromStorage(t),this._roots.splice(r,1),t instanceof Jv&&t.delChildrenFromStorage(this))}},addToStorage:function(t){return t&&(t.__storage=this,t.dirty(!1)),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:Pn};var im={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1},rm=function(t,e,n){return im.hasOwnProperty(e)?n*=t.dpr:n},am={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},om=9,sm=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],lm=function(t){this.extendFrom(t,!1)};lm.prototype={constructor:lm,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(t,e,n){var i=this,r=n&&n.style,a=!r||t.__attrCachedBy!==am.STYLE_BIND;
 
- t.__attrCachedBy=am.STYLE_BIND;for(var o=0;o<sm.length;o++){var s=sm[o],l=s[0];(a||i[l]!==r[l])&&(t[l]=rm(t,l,i[l]||s[1]))}if((a||i.fill!==r.fill)&&(t.fillStyle=i.fill),(a||i.stroke!==r.stroke)&&(t.strokeStyle=i.stroke),(a||i.opacity!==r.opacity)&&(t.globalAlpha=null==i.opacity?1:i.opacity),(a||i.blend!==r.blend)&&(t.globalCompositeOperation=i.blend||"source-over"),this.hasStroke()){var u=i.lineWidth;t.lineWidth=u/(this.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1)}},hasFill:function(){var t=this.fill;return null!=t&&"none"!==t},hasStroke:function(){var t=this.stroke;return null!=t&&"none"!==t&&this.lineWidth>0},extendFrom:function(t,e){if(t)for(var n in t)!t.hasOwnProperty(n)||e!==!0&&(e===!1?this.hasOwnProperty(n):null==t[n])||(this[n]=t[n])},set:function(t,e){"string"==typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,n){for(var i="radial"===e.type?Ln:On,r=i(t,e,n),a=e.colorStops,o=0;o<a.length;o++)r.addColorStop(a[o].offset,a[o].color);return r}};for(var um=lm.prototype,hm=0;hm<sm.length;hm++){var cm=sm[hm];cm[0]in um||(um[cm[0]]=cm[1])}lm.getGradient=um.getGradient;var dm=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};dm.prototype.getCanvasPattern=function(t){return t.createPattern(this.image,this.repeat||"repeat")};var fm=function(t,e,n){var i;n=n||Xv,"string"==typeof t?i=Bn(t,e,n):M(t)&&(i=t,t=i.id),this.id=t,this.dom=i;var r=i.style;r&&(i.onselectstart=zn,r["-webkit-user-select"]="none",r["user-select"]="none",r["-webkit-touch-callout"]="none",r["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",r.padding=0,r.margin=0,r["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=e,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=n};fm.prototype={constructor:fm,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var t=this.dpr;this.domBack=Bn("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},resize:function(t,e){var n=this.dpr,i=this.dom,r=i.style,a=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,a&&(a.width=t*n,a.height=e*n,1!==n&&this.ctxBack.scale(n,n))},clear:function(t,e){var n=this.dom,i=this.ctx,r=n.width,a=n.height,e=e||this.clearColor,o=this.motionBlur&&!t,s=this.lastFrameAlpha,l=this.dpr;if(o&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(n,0,0,r/l,a/l)),i.clearRect(0,0,r,a),e&&"transparent"!==e){var u;e.colorStops?(u=e.__canvasGradient||lm.getGradient(i,e,{x:0,y:0,width:r,height:a}),e.__canvasGradient=u):e.image&&(u=dm.prototype.getCanvasPattern.call(e,i)),i.save(),i.fillStyle=u||e,i.fillRect(0,0,r,a),i.restore()}if(o){var h=this.domBack;i.save(),i.globalAlpha=s,i.drawImage(h,0,0,r,a),i.restore()}}};var pm="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)},gm=new Lv(50),vm={},mm=0,ym=5e3,_m=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,xm="12px sans-serif",wm={};wm.measureText=function(t,e){var n=l();return n.font=e||xm,n.measureText(t)};var bm=xm,Mm={left:1,right:1,center:1},Sm={top:1,bottom:1,middle:1},Im=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],Tm={},Cm={},Am=new bn,Dm=function(){};Dm.prototype={constructor:Dm,drawRectText:function(t,e){var n=this.style;e=n.textRect||e,this.__dirty&&ri(n,!0);var i=n.text;if(null!=i&&(i+=""),wi(i,n)){t.save();var r=this.transform;n.transformText?this.setTransform(t):r&&(Am.copy(e),Am.applyTransform(r),e=Am),oi(this,t,i,n,e,om),t.restore()}}},bi.prototype={constructor:bi,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(){},afterBrush:function(){},brush:function(){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return i.contain(n[0],n[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?jv.prototype.attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this},useStyle:function(t){return this.style=new lm(t,this),this.dirty(!1),this},calculateTextPosition:null},h(bi,jv),c(bi,Dm),Mi.prototype={constructor:Mi,type:"image",brush:function(t,e){var n=this.style,i=n.image;n.bind(t,this,e);var r=this._image=Rn(i,this._image,this,this.onload);if(r&&Fn(r)){var a=n.x||0,o=n.y||0,s=n.width,l=n.height,u=r.width/r.height;if(null==s&&null!=l?s=l*u:null==l&&null!=s?l=s/u:null==s&&null==l&&(s=r.width,l=r.height),this.setTransform(t),n.sWidth&&n.sHeight){var h=n.sx||0,c=n.sy||0;t.drawImage(r,h,c,n.sWidth,n.sHeight,a,o,s,l)}else if(n.sx&&n.sy){var h=n.sx,c=n.sy,d=s-h,f=l-c;t.drawImage(r,h,c,d,f,a,o,s,l)}else t.drawImage(r,a,o,s,l);null!=n.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new bn(t.x||0,t.y||0,t.width||0,t.height||0)),this._rect}},h(Mi,bi);var km=1e5,Pm=314159,Om=.01,Lm=.001,zm=new bn(0,0,0,0),Bm=new bn(0,0,0,0),Em=function(t,e,n){this.type="canvas";var i=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=o({},n||{}),this.dpr=n.devicePixelRatio||Xv,this._singleCanvas=i,this.root=t;var r=t.style;r&&(r["-webkit-tap-highlight-color"]="transparent",r["-webkit-user-select"]=r["user-select"]=r["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var a=this._zlevelList=[],s=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,i){var l=t.width,u=t.height;null!=n.width&&(l=n.width),null!=n.height&&(u=n.height),this.dpr=n.devicePixelRatio||1,t.width=l*this.dpr,t.height=u*this.dpr,this._width=l,this._height=u;var h=new fm(t,this,this.dpr);h.__builtin__=!0,h.initContext(),s[Pm]=h,h.zlevel=Pm,a.push(Pm),this._domRoot=t}else{this._width=this._getSize(0),this._height=this._getSize(1);var c=this._domRoot=Di(this._width,this._height);t.appendChild(c)}this._hoverlayer=null,this._hoverElements=[]};Em.prototype={constructor:Em,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var t=this.getViewportRoot();return t?{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}:void 0},refresh:function(t){var e=this.storage.getDisplayList(!0),n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,t,this._redrawId);for(var i=0;i<n.length;i++){var r=n[i],a=this._layers[r];if(!a.__builtin__&&a.refresh){var o=0===i?this._backgroundColor:null;a.refresh(o)}}return this.refreshHover(),this},addHover:function(t,e){if(!t.__hoverMir){var n=new t.constructor({style:t.style,shape:t.shape,z:t.z,z2:t.z2,silent:t.silent});return n.__from=t,t.__hoverMir=n,e&&n.setStyle(e),this._hoverElements.push(n),n}},removeHover:function(t){var e=t.__hoverMir,n=this._hoverElements,i=u(n,e);i>=0&&n.splice(i,1),t.__hoverMir=null},clearHover:function(){for(var t=this._hoverElements,e=0;e<t.length;e++){var n=t[e].__from;n&&(n.__hoverMir=null)}t.length=0},refreshHover:function(){var t=this._hoverElements,e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){kn(t,this.storage.displayableSortFunc),n||(n=this._hoverlayer=this.getLayer(km));var i={};n.ctx.save();for(var r=0;e>r;){var a=t[r],o=a.__from;o&&o.__zr?(r++,o.invisible||(a.transform=o.transform,a.invTransform=o.invTransform,a.__clipPaths=o.__clipPaths,this._doPaintEl(a,n,!0,i))):(t.splice(r,1),o.__hoverMir=null,e--)}n.ctx.restore()}},getHoverLayer:function(){return this.getLayer(km)},_paintList:function(t,e,n){if(this._redrawId===n){e=e||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e);if(this._needsManuallyCompositing&&this._compositeManually(),!i){var r=this;pm(function(){r._paintList(t,e,n)})}}},_compositeManually:function(){var t=this.getLayer(Pm).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)})},_doPaintList:function(t,e){for(var n=[],i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i],a=this._layers[r];a.__builtin__&&a!==this._hoverlayer&&(a.__dirty||e)&&n.push(a)}for(var o=!0,s=0;s<n.length;s++){var a=n[s],l=a.ctx,u={};l.save();var h=e?a.__startIndex:a.__drawIndex,c=!e&&a.incremental&&Date.now,d=c&&Date.now(),p=a.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(a.__startIndex===a.__endIndex)a.clear(!1,p);else if(h===a.__startIndex){var g=t[h];g.incremental&&g.notClear&&!e||a.clear(!1,p)}-1===h&&(console.error("For some unknown reason. drawIndex is -1"),h=a.__startIndex);for(var v=h;v<a.__endIndex;v++){var m=t[v];if(this._doPaintEl(m,a,e,u),m.__dirty=m.__dirtyText=!1,c){var y=Date.now()-d;if(y>15)break}}a.__drawIndex=v,a.__drawIndex<a.__endIndex&&(o=!1),u.prevElClipPaths&&l.restore(),l.restore()}return Vg.wxa&&f(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),o},_doPaintEl:function(t,e,n,i){var r=e.ctx,a=t.transform;if(!(!e.__dirty&&!n||t.invisible||0===t.style.opacity||a&&!a[0]&&!a[3]||t.culling&&Ti(t,this._width,this._height))){var o=t.__clipPaths,s=i.prevElClipPaths;(!s||Ci(o,s))&&(s&&(r.restore(),i.prevElClipPaths=null,i.prevEl=null),o&&(r.save(),Ai(o,r),i.prevElClipPaths=o)),t.beforeBrush&&t.beforeBrush(r),t.brush(r,i.prevEl||null),i.prevEl=t,t.afterBrush&&t.afterBrush(r)}},getLayer:function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Pm);var n=this._layers[t];return n||(n=new fm("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]&&r(n,this._layerConfig[t],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},insertLayer:function(t,e){var n=this._layers,i=this._zlevelList,r=i.length,a=null,o=-1,s=this._domRoot;if(n[t])return void Uv("ZLevel "+t+" has been used already");if(!Ii(e))return void Uv("Layer of zlevel "+t+" is not valid");if(r>0&&t>i[0]){for(o=0;r-1>o&&!(i[o]<t&&i[o+1]>t);o++);a=n[i[o]]}if(i.splice(o+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?s.insertBefore(e.dom,l.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom)},eachLayer:function(t,e){var n,i,r=this._zlevelList;for(i=0;i<r.length;i++)n=r[i],t.call(e,this._layers[n],n)},eachBuiltinLayer:function(t,e){var n,i,r,a=this._zlevelList;for(r=0;r<a.length;r++)i=a[r],n=this._layers[i],n.__builtin__&&t.call(e,n,i)},eachOtherLayer:function(t,e){var n,i,r,a=this._zlevelList;for(r=0;r<a.length;r++)i=a[r],n=this._layers[i],n.__builtin__||t.call(e,n,i)},getLayers:function(){return this._layers},_updateLayerStatus:function(t){function e(t){r&&(r.__endIndex!==t&&(r.__dirty=!0),r.__endIndex=t)}if(this.eachBuiltinLayer(function(t){t.__dirty=t.__used=!1}),this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}for(var r=null,a=0,n=0;n<t.length;n++){var o,i=t[n],s=i.zlevel;i.incremental?(o=this.getLayer(s+Lm,this._needsManuallyCompositing),o.incremental=!0,a=1):o=this.getLayer(s+(a>0?Om:0),this._needsManuallyCompositing),o.__builtin__||Uv("ZLevel "+s+" has been used by unkown layer "+o.id),o!==r&&(o.__used=!0,o.__startIndex!==n&&(o.__dirty=!0),o.__startIndex=n,o.__drawIndex=o.incremental?-1:n,e(n),r=o),i.__dirty&&(o.__dirty=!0,o.incremental&&o.__drawIndex<0&&(o.__drawIndex=n))}e(n),this.eachBuiltinLayer(function(t){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},setBackgroundColor:function(t){this._backgroundColor=t},configLayer:function(t,e){if(e){var n=this._layerConfig;n[t]?r(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+Om){var o=this._layers[a];r(o,n[t],!0)}}}},delLayer:function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(u(n,t),1))},resize:function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!==t||e!==this._height){n.style.width=t+"px",n.style.height=e+"px";for(var r in this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].resize(t,e);f(this._progressiveLayers,function(n){n.resize(t,e)}),this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(Pm).resize(t,e)}return this},clearLayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Pm].dom;var e=new fm("image",this,t.pixelRatio||this.dpr);if(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,i=e.dom.height,r=e.ctx;this.eachLayer(function(t){t.__builtin__?r.drawImage(t.dom,0,0,n,i):t.renderToCanvas&&(e.ctx.save(),t.renderToCanvas(e.ctx),e.ctx.restore())})}else for(var a={},o=this.storage.getDisplayList(!0),s=0;s<o.length;s++){var l=o[s];this._doPaintEl(l,e,!0,a)}return e.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,n=["width","height"][t],i=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(null!=e[n]&&"auto"!==e[n])return parseFloat(e[n]);var o=this.root,s=document.defaultView.getComputedStyle(o);return(o[i]||Si(s[n])||Si(o.style[n]))-(Si(s[r])||0)-(Si(s[a])||0)|0},pathToImage:function(t,e){e=e||this.dpr;var n=document.createElement("canvas"),i=n.getContext("2d"),r=t.getBoundingRect(),a=t.style,o=a.shadowBlur*e,s=a.shadowOffsetX*e,l=a.shadowOffsetY*e,u=a.hasStroke()?a.lineWidth:0,h=Math.max(u/2,-s+o),c=Math.max(u/2,s+o),d=Math.max(u/2,-l+o),f=Math.max(u/2,l+o),p=r.width+h+c,g=r.height+d+f;n.width=p*e,n.height=g*e,i.scale(e,e),i.clearRect(0,0,p,g),i.dpr=e;var v={position:t.position,rotation:t.rotation,scale:t.scale};t.position=[h-r.x,d-r.y],t.rotation=0,t.scale=[1,1],t.updateTransform(),t&&t.brush(i);var m=Mi,y=new m({style:{x:0,y:0,image:n}});return null!=v.position&&(y.position=t.position=v.position),null!=v.rotation&&(y.rotation=t.rotation=v.rotation),null!=v.scale&&(y.scale=t.scale=v.scale),y}};var Rm=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,lv.call(this)};Rm.prototype={constructor:Rm,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var e=t.getClips(),n=0;n<e.length;n++)this.addClip(e[n])},removeClip:function(t){var e=u(this._clips,t);e>=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),n=0;n<e.length;n++)this.removeClip(e[n]);t.animation=null},_update:function(){for(var t=(new Date).getTime()-this._pausedTime,e=t-this._time,n=this._clips,i=n.length,r=[],a=[],o=0;i>o;o++){var s=n[o],l=s.step(t,e);l&&(r.push(l),a.push(s))}for(var o=0;i>o;)n[o]._needsRemove?(n[o]=n[i-1],n.pop(),i--):o++;i=r.length;for(var o=0;i>o;o++)a[o].fire(r[o]);this._time=t,this.onframe(e),this.trigger("frame",e),this.stage.update&&this.stage.update()},_startLoop:function(){function t(){e._running&&(pm(t),!e._paused&&e._update())}var e=this;this._running=!0,pm(t)},start:function(){this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(t,e){e=e||{};var n=new Wv(t,e.loop,e.getter,e.setter);return this.addAnimator(n),n}},c(Rm,lv);var Nm=300,Fm=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Vm=["touchstart","touchend","touchmove"],Hm={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},Wm=p(Fm,function(t){var e=t.replace("mouse","pointer");return Hm[e]?e:t}),Gm={mousemove:function(t){t=ye(this.dom,t),this.trigger("mousemove",t)},mouseout:function(t){t=ye(this.dom,t);var e=t.toElement||t.relatedTarget;if(e!==this.dom)for(;e&&9!==e.nodeType;){if(e===this.dom)return;e=e.parentNode}this.trigger("mouseout",t)},touchstart:function(t){t=ye(this.dom,t),t.zrByTouch=!0,this._lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Gm.mousemove.call(this,t),Gm.mousedown.call(this,t),Pi(this)},touchmove:function(t){t=ye(this.dom,t),t.zrByTouch=!0,this.handler.processGesture(t,"change"),Gm.mousemove.call(this,t),Pi(this)},touchend:function(t){t=ye(this.dom,t),t.zrByTouch=!0,this.handler.processGesture(t,"end"),Gm.mouseup.call(this,t),+new Date-this._lastTouchMoment<Nm&&Gm.click.call(this,t),Pi(this)},pointerdown:function(t){Gm.mousedown.call(this,t)},pointermove:function(t){Oi(t)||Gm.mousemove.call(this,t)},pointerup:function(t){Gm.mouseup.call(this,t)},pointerout:function(t){Oi(t)||Gm.mouseout.call(this,t)}};f(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Gm[t]=function(e){e=ye(this.dom,e),this.trigger(t,e)}});var Zm=zi.prototype;Zm.dispose=function(){for(var t=Fm.concat(Vm),e=0;e<t.length;e++){var n=t[e];xe(this.dom,ki(n),this._handlers[n])}},Zm.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},c(zi,lv);var Xm=!Vg.canvasSupported,Ym={canvas:Em},Um={},qm="4.1.2",jm=function(t,e,n){n=n||{},this.dom=e,this.id=t;var i=this,r=new nm,a=n.renderer;if(Xm){if(!Ym.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");a="vml"}else a&&Ym[a]||(a="canvas");var o=new Ym[a](e,r,n,t);this.storage=r,this.painter=o;var s=Vg.node||Vg.worker?null:new zi(o.getViewportRoot());this.handler=new _v(r,o,s,o.root),this.animation=new Rm({stage:{update:y(this.flush,this)}}),this.animation.start(),this._needsRefresh;var l=r.delFromStorage,u=r.addToStorage;r.delFromStorage=function(t){l.call(r,t),t&&t.removeSelfFromZr(i)},r.addToStorage=function(t){u.call(r,t),t.addSelfToZr(i)}};jm.prototype={constructor:jm,getId:function(){return this.id},add:function(t){this.storage.addRoot(t),this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this._needsRefresh=!0},setBackgroundColor:function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var t;this._needsRefresh&&(t=!0,this.refreshImmediately()),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately()),t&&this.trigger("rendered")},addHover:function(t,e){if(this.painter.addHover){var n=this.painter.addHover(t,e);return this.refreshHover(),n}},removeHover:function(t){this.painter.removeHover&&(this.painter.removeHover(t),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(t,e){return this.painter.pathToImage(t,e)},setCursorStyle:function(t){this.handler.setCursorStyle(t)},findHover:function(t,e){return this.handler.findHover(t,e)},on:function(t,e,n){this.handler.on(t,e,n)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){this.handler.trigger(t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,Fi(this.id)}};var $m=(Object.freeze||Object)({version:qm,init:Bi,dispose:Ei,getInstance:Ri,registerPainter:Ni}),Km=f,Qm=M,Jm=x,ty="series\x00",ey=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"],ny=0,iy=".",ry="___EC__COMPONENT__CONTAINER___",ay=0,oy=function(t){for(var e=0;e<t.length;e++)t[e][1]||(t[e][1]=t[e][0]);return function(e,n,i){for(var r={},a=0;a<t.length;a++){var o=t[a][1];if(!(n&&u(n,o)>=0||i&&u(i,o)<0)){var s=e.getShallow(o);null!=s&&(r[t[a][0]]=s)}}return r}},sy=oy([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),ly={getLineStyle:function(t){var e=sy(this,t);return e.lineDash=this.getLineDash(e.lineWidth),e},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),n=Math.max(t,2),i=4*t;return"solid"===e||null==e?!1:"dashed"===e?[i,i]:[n,n]}},uy=oy([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),hy={getAreaStyle:function(t,e){return uy(this,t,e)}},cy=Math.pow,dy=Math.sqrt,fy=1e-8,py=1e-4,gy=dy(3),vy=1/3,my=H(),yy=H(),_y=H(),xy=Math.min,wy=Math.max,by=Math.sin,My=Math.cos,Sy=2*Math.PI,Iy=H(),Ty=H(),Cy=H(),Ay=[],Dy=[],ky={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Py=[],Oy=[],Ly=[],zy=[],By=Math.min,Ey=Math.max,Ry=Math.cos,Ny=Math.sin,Fy=Math.sqrt,Vy=Math.abs,Hy="undefined"!=typeof Float32Array,Wy=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};Wy.prototype={constructor:Wy,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e,n){n=n||0,this._ux=Vy(n/Xv/t)||0,this._uy=Vy(n/Xv/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(ky.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var n=Vy(t-this._xi)>this._ux||Vy(e-this._yi)>this._uy||this._len<5;return this.addData(ky.L,t,e),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),n&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,n,i,r,a){return this.addData(ky.C,t,e,n,i,r,a),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,n,i,r,a):this._ctx.bezierCurveTo(t,e,n,i,r,a)),this._xi=r,this._yi=a,this},quadraticCurveTo:function(t,e,n,i){return this.addData(ky.Q,t,e,n,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},arc:function(t,e,n,i,r,a){return this.addData(ky.A,t,e,n,n,i,r-i,0,a?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,a),this._xi=Ry(r)*n+t,this._yi=Ny(r)*n+e,this},arcTo:function(t,e,n,i,r){return this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},rect:function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(ky.R,t,e,n,i),this},closePath:function(){this.addData(ky.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,n=0;n<t.length;n++)e+=t[n];this._dashSum=e}return this},setLineDashOffset:function(t){return this._dashOffset=t,this},len:function(){return this._len},setData:function(t){var e=t.length;this.data&&this.data.length===e||!Hy||(this.data=new Float32Array(e));for(var n=0;e>n;n++)this.data[n]=t[n];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;e>r;r++)n+=t[r].len();Hy&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var r=0;e>r;r++)for(var a=t[r].data,o=0;o<a.length;o++)this.data[i++]=a[o];this._len=i},addData:function(t){if(this._saveData){var e=this.data;this._len+arguments.length>e.length&&(this._expandData(),e=this.data);for(var n=0;n<arguments.length;n++)e[this._len++]=arguments[n];this._prevCmd=t}},_expandData:function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(t,e){var n,i,r=this._dashSum,a=this._dashOffset,o=this._lineDash,s=this._ctx,l=this._xi,u=this._yi,h=t-l,c=e-u,d=Fy(h*h+c*c),f=l,p=u,g=o.length;for(h/=d,c/=d,0>a&&(a=r+a),a%=r,f-=a*h,p-=a*c;h>0&&t>=f||0>h&&f>=t||0===h&&(c>0&&e>=p||0>c&&p>=e);)i=this._dashIdx,n=o[i],f+=h*n,p+=c*n,this._dashIdx=(i+1)%g,h>0&&l>f||0>h&&f>l||c>0&&u>p||0>c&&p>u||s[i%2?"moveTo":"lineTo"](h>=0?By(f,t):Ey(f,t),c>=0?By(p,e):Ey(p,e));h=f-t,c=p-e,this._dashOffset=-Fy(h*h+c*c)},_dashedBezierTo:function(t,e,n,i,r,a){var o,s,l,u,h,c=this._dashSum,d=this._dashOffset,f=this._lineDash,p=this._ctx,g=this._xi,v=this._yi,m=hr,y=0,_=this._dashIdx,x=f.length,w=0;for(0>d&&(d=c+d),d%=c,o=0;1>o;o+=.1)s=m(g,t,n,r,o+.1)-m(g,t,n,r,o),l=m(v,e,i,a,o+.1)-m(v,e,i,a,o),y+=Fy(s*s+l*l);for(;x>_&&(w+=f[_],!(w>d));_++);for(o=(w-d)/y;1>=o;)u=m(g,t,n,r,o),h=m(v,e,i,a,o),_%2?p.moveTo(u,h):p.lineTo(u,h),o+=f[_]/y,_=(_+1)%x;_%2!==0&&p.lineTo(r,a),s=r-u,l=a-h,this._dashOffset=-Fy(s*s+l*l)},_dashedQuadraticTo:function(t,e,n,i){var r=n,a=i;n=(n+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,i,r,a)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,Hy&&(this.data=new Float32Array(t)))},getBoundingRect:function(){Py[0]=Py[1]=Ly[0]=Ly[1]=Number.MAX_VALUE,Oy[0]=Oy[1]=zy[0]=zy[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,n=0,i=0,r=0,a=0;a<t.length;){var o=t[a++];switch(1===a&&(e=t[a],n=t[a+1],i=e,r=n),o){case ky.M:i=t[a++],r=t[a++],e=i,n=r,Ly[0]=i,Ly[1]=r,zy[0]=i,zy[1]=r;break;case ky.L:Mr(e,n,t[a],t[a+1],Ly,zy),e=t[a++],n=t[a++];break;case ky.C:Sr(e,n,t[a++],t[a++],t[a++],t[a++],t[a],t[a+1],Ly,zy),e=t[a++],n=t[a++];break;case ky.Q:Ir(e,n,t[a++],t[a++],t[a],t[a+1],Ly,zy),e=t[a++],n=t[a++];break;case ky.A:var s=t[a++],l=t[a++],u=t[a++],h=t[a++],c=t[a++],d=t[a++]+c;a+=1;var f=1-t[a++];1===a&&(i=Ry(c)*u+s,r=Ny(c)*h+l),Tr(s,l,u,h,c,d,f,Ly,zy),e=Ry(d)*u+s,n=Ny(d)*h+l;break;case ky.R:i=e=t[a++],r=n=t[a++];var p=t[a++],g=t[a++];Mr(i,r,i+p,r+g,Ly,zy);break;case ky.Z:e=i,n=r}oe(Py,Py,Ly),se(Oy,Oy,zy)}return 0===a&&(Py[0]=Py[1]=Oy[0]=Oy[1]=0),new bn(Py[0],Py[1],Oy[0]-Py[0],Oy[1]-Py[1])},rebuildPath:function(t){for(var e,n,i,r,a,o,s=this.data,l=this._ux,u=this._uy,h=this._len,c=0;h>c;){var d=s[c++];switch(1===c&&(i=s[c],r=s[c+1],e=i,n=r),d){case ky.M:e=i=s[c++],n=r=s[c++],t.moveTo(i,r);break;case ky.L:a=s[c++],o=s[c++],(Vy(a-i)>l||Vy(o-r)>u||c===h-1)&&(t.lineTo(a,o),i=a,r=o);break;case ky.C:t.bezierCurveTo(s[c++],s[c++],s[c++],s[c++],s[c++],s[c++]),i=s[c-2],r=s[c-1];break;case ky.Q:t.quadraticCurveTo(s[c++],s[c++],s[c++],s[c++]),i=s[c-2],r=s[c-1];break;case ky.A:var f=s[c++],p=s[c++],g=s[c++],v=s[c++],m=s[c++],y=s[c++],_=s[c++],x=s[c++],w=g>v?g:v,b=g>v?1:g/v,M=g>v?v/g:1,S=Math.abs(g-v)>.001,I=m+y;S?(t.translate(f,p),t.rotate(_),t.scale(b,M),t.arc(0,0,w,m,I,1-x),t.scale(1/b,1/M),t.rotate(-_),t.translate(-f,-p)):t.arc(f,p,w,m,I,1-x),1===c&&(e=Ry(m)*g+f,n=Ny(m)*v+p),i=Ry(I)*g+f,r=Ny(I)*v+p;break;case ky.R:e=i=s[c],n=r=s[c+1],t.rect(s[c++],s[c++],s[c++],s[c++]);break;case ky.Z:t.closePath(),i=e,r=n}}}},Wy.CMD=ky;var Gy=2*Math.PI,Zy=2*Math.PI,Xy=Wy.CMD,Yy=2*Math.PI,Uy=1e-4,qy=[-1,-1,-1],jy=[-1,-1],$y=dm.prototype.getCanvasPattern,Ky=Math.abs,Qy=new Wy(!0);Hr.prototype={constructor:Hr,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(t,e){var n=this.style,i=this.path||Qy,r=n.hasStroke(),a=n.hasFill(),o=n.fill,s=n.stroke,l=a&&!!o.colorStops,u=r&&!!s.colorStops,h=a&&!!o.image,c=r&&!!s.image;if(n.bind(t,this,e),this.setTransform(t),this.__dirty){var d;l&&(d=d||this.getBoundingRect(),this._fillGradient=n.getGradient(t,o,d)),u&&(d=d||this.getBoundingRect(),this._strokeGradient=n.getGradient(t,s,d))}l?t.fillStyle=this._fillGradient:h&&(t.fillStyle=$y.call(o,t)),u?t.strokeStyle=this._strokeGradient:c&&(t.strokeStyle=$y.call(s,t));var f=n.lineDash,p=n.lineDashOffset,g=!!t.setLineDash,v=this.getGlobalScale();if(i.setScale(v[0],v[1],this.segmentIgnoreThreshold),this.__dirtyPath||f&&!g&&r?(i.beginPath(t),f&&!g&&(i.setLineDash(f),i.setLineDashOffset(p)),this.buildPath(i,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),a)if(null!=n.fillOpacity){var m=t.globalAlpha;t.globalAlpha=n.fillOpacity*n.opacity,i.fill(t),t.globalAlpha=m}else i.fill(t);if(f&&g&&(t.setLineDash(f),t.lineDashOffset=p),r)if(null!=n.strokeOpacity){var m=t.globalAlpha;t.globalAlpha=n.strokeOpacity*n.opacity,i.stroke(t),t.globalAlpha=m}else i.stroke(t);f&&g&&t.setLineDash([]),null!=n.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))},buildPath:function(){},createPathProxy:function(){this.path=new Wy},getBoundingRect:function(){var t=this._rect,e=this.style,n=!t;if(n){var i=this.path;i||(i=this.path=new Wy),this.__dirtyPath&&(i.beginPath(),this.buildPath(i,this.shape,!1)),t=i.getBoundingRect()}if(this._rect=t,e.hasStroke()){var r=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||n){r.copy(t);var a=e.lineWidth,o=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(a=Math.max(a,this.strokeContainThreshold||4)),o>1e-10&&(r.width+=a/o,r.height+=a/o,r.x-=a/o/2,r.y-=a/o/2)}return r}return t},contain:function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var a=this.path.data;if(r.hasStroke()){var o=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(r.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),Vr(a,o/s,t,e)))return!0}if(r.hasFill())return Fr(a,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):bi.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var n=this.shape;if(n){if(M(t))for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);else n[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&Ky(t[0]-1)>1e-10&&Ky(t[3]-1)>1e-10?Math.sqrt(Ky(t[0]*t[3]-t[2]*t[1])):1}},Hr.extend=function(t){var e=function(e){Hr.call(this,e),t.style&&this.style.extendFrom(t.style,!1);
 
- var n=t.shape;if(n){this.shape=this.shape||{};var i=this.shape;for(var r in n)!i.hasOwnProperty(r)&&n.hasOwnProperty(r)&&(i[r]=n[r])}t.init&&t.init.call(this,e)};h(e,Hr);for(var n in t)"style"!==n&&"shape"!==n&&(e.prototype[n]=t[n]);return e},h(Hr,bi);var Jy=Wy.CMD,t_=[[],[],[]],e_=Math.sqrt,n_=Math.atan2,i_=function(t,e){var n,i,r,a,o,s,l=t.data,u=Jy.M,h=Jy.C,c=Jy.L,d=Jy.R,f=Jy.A,p=Jy.Q;for(r=0,a=0;r<l.length;){switch(n=l[r++],a=r,i=0,n){case u:i=1;break;case c:i=1;break;case h:i=3;break;case p:i=2;break;case f:var g=e[4],v=e[5],m=e_(e[0]*e[0]+e[1]*e[1]),y=e_(e[2]*e[2]+e[3]*e[3]),_=n_(-e[1]/y,e[0]/m);l[r]*=m,l[r++]+=g,l[r]*=y,l[r++]+=v,l[r++]*=m,l[r++]*=y,l[r++]+=_,l[r++]+=_,r+=2,a=r;break;case d:s[0]=l[r++],s[1]=l[r++],ae(s,s,e),l[a++]=s[0],l[a++]=s[1],s[0]+=l[r++],s[1]+=l[r++],ae(s,s,e),l[a++]=s[0],l[a++]=s[1]}for(o=0;i>o;o++){var s=t_[o];s[0]=l[r++],s[1]=l[r++],ae(s,s,e),l[a++]=s[0],l[a++]=s[1]}}},r_=Math.sqrt,a_=Math.sin,o_=Math.cos,s_=Math.PI,l_=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},u_=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(l_(t)*l_(e))},h_=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(u_(t,e))},c_=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,d_=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,f_=function(t){bi.call(this,t)};f_.prototype={constructor:f_,type:"text",brush:function(t,e){var n=this.style;this.__dirty&&ri(n,!0),n.fill=n.stroke=n.shadowBlur=n.shadowColor=n.shadowOffsetX=n.shadowOffsetY=null;var i=n.text;return null!=i&&(i+=""),wi(i,n)?(this.setTransform(t),oi(this,t,i,n,null,e),void this.restoreTransform(t)):void(t.__attrCachedBy=am.NONE)},getBoundingRect:function(){var t=this.style;if(this.__dirty&&ri(t,!0),!this._rect){var e=t.text;null!=e?e+="":e="";var n=Hn(t.text+"",t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich);if(n.x+=t.x||0,n.y+=t.y||0,mi(t.textStroke,t.textStrokeWidth)){var i=t.textStrokeWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect}},h(f_,bi);var p_=Hr.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,n){n&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}}),g_=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]],v_=function(t){return Vg.browser.ie&&Vg.browser.version>=11?function(){var e,n=this.__clipPaths,i=this.style;if(n)for(var r=0;r<n.length;r++){var a=n[r],o=a&&a.shape,s=a&&a.type;if(o&&("sector"===s&&o.startAngle===o.endAngle||"rect"===s&&(!o.width||!o.height))){for(var l=0;l<g_.length;l++)g_[l][2]=i[g_[l][0]],i[g_[l][0]]=g_[l][1];e=!0;break}}if(t.apply(this,arguments),e)for(var l=0;l<g_.length;l++)i[g_[l][0]]=g_[l][2]}:t},m_=Hr.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:v_(Hr.prototype.brush),buildPath:function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),a=Math.max(e.r,0),o=e.startAngle,s=e.endAngle,l=e.clockwise,u=Math.cos(o),h=Math.sin(o);t.moveTo(u*r+n,h*r+i),t.lineTo(u*a+n,h*a+i),t.arc(n,i,a,o,s,!l),t.lineTo(Math.cos(s)*r+n,Math.sin(s)*r+i),0!==r&&t.arc(n,i,r,s,o,l),t.closePath()}}),y_=Hr.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)}}),__=function(t,e){for(var n=t.length,i=[],r=0,a=1;n>a;a++)r+=ee(t[a-1],t[a]);var o=r/2;o=n>o?n:o;for(var a=0;o>a;a++){var s,l,u,h=a/(o-1)*(e?n:n-1),c=Math.floor(h),d=h-c,f=t[c%n];e?(s=t[(c-1+n)%n],l=t[(c+1)%n],u=t[(c+2)%n]):(s=t[0===c?c:c-1],l=t[c>n-2?n-1:c+1],u=t[c>n-3?n-1:c+2]);var p=d*d,g=d*p;i.push([qr(s[0],f[0],l[0],u[0],d,p,g),qr(s[1],f[1],l[1],u[1],d,p,g)])}return i},x_=function(t,e,n,i){var r,a,o,s,l=[],u=[],h=[],c=[];if(i){o=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,f=t.length;f>d;d++)oe(o,o,t[d]),se(s,s,t[d]);oe(o,o,i[0]),se(s,s,i[1])}for(var d=0,f=t.length;f>d;d++){var p=t[d];if(n)r=t[d?d-1:f-1],a=t[(d+1)%f];else{if(0===d||d===f-1){l.push(G(t[d]));continue}r=t[d-1],a=t[d+1]}U(u,a,r),J(u,u,e);var g=ee(p,r),v=ee(p,a),m=g+v;0!==m&&(g/=m,v/=m),J(h,u,-g),J(c,u,v);var y=X([],p,h),_=X([],p,c);i&&(se(y,y,o),oe(y,y,s),se(_,_,o),oe(_,_,s)),l.push(y),l.push(_)}return n&&l.push(l.shift()),l},w_=Hr.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,e){jr(t,e,!0)}}),b_=Hr.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,e){jr(t,e,!1)}}),M_=Math.round,S_={},I_=Hr.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,e){var n,i,r,a;this.subPixelOptimize?(Kr(S_,e,this.style),n=S_.x,i=S_.y,r=S_.width,a=S_.height,S_.r=e.r,e=S_):(n=e.x,i=e.y,r=e.width,a=e.height),e.r?ii(t,e):t.rect(n,i,r,a),t.closePath()}}),T_={},C_=Hr.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n,i,r,a;this.subPixelOptimize?($r(T_,e,this.style),n=T_.x1,i=T_.y1,r=T_.x2,a=T_.y2):(n=e.x1,i=e.y1,r=e.x2,a=e.y2);var o=e.percent;0!==o&&(t.moveTo(n,i),1>o&&(r=n*(1-o)+r*o,a=i*(1-o)+a*o),t.lineTo(r,a))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}}),A_=[],D_=Hr.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.x1,i=e.y1,r=e.x2,a=e.y2,o=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,h=e.percent;0!==h&&(t.moveTo(n,i),null==l||null==u?(1>h&&(xr(n,o,r,h,A_),o=A_[1],r=A_[2],xr(i,s,a,h,A_),s=A_[1],a=A_[2]),t.quadraticCurveTo(o,s,r,a)):(1>h&&(pr(n,o,l,r,h,A_),o=A_[1],l=A_[2],r=A_[3],pr(i,s,u,a,h,A_),s=A_[1],u=A_[2],a=A_[3]),t.bezierCurveTo(o,s,l,u,r,a)))},pointAt:function(t){return Jr(this.shape,t,!1)},tangentAt:function(t){var e=Jr(this.shape,t,!0);return te(e,e)}}),k_=Hr.extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),a=e.startAngle,o=e.endAngle,s=e.clockwise,l=Math.cos(a),u=Math.sin(a);t.moveTo(l*r+n,u*r+i),t.arc(n,i,r,a,o,!s)}}),P_=Hr.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,n=0;n<e.length;n++)t=t||e[n].__dirtyPath;this.__dirtyPath=t,this.__dirty=this.__dirty||t},beforeBrush:function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},buildPath:function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},afterBrush:function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),Hr.prototype.getBoundingRect.call(this)}}),O_=function(t){this.colorStops=t||[]};O_.prototype={constructor:O_,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}};var L_=function(t,e,n,i,r,a){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==n?1:n,this.y2=null==i?0:i,this.type="linear",this.global=a||!1,O_.call(this,r)};L_.prototype={constructor:L_},h(L_,O_);var z_=function(t,e,n,i,r){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==n?.5:n,this.type="radial",this.global=r||!1,O_.call(this,i)};z_.prototype={constructor:z_},h(z_,O_),ta.prototype.incremental=!0,ta.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},ta.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.dirty()},ta.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},ta.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(var e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},ta.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},ta.prototype.brush=function(t){for(var e=this._cursor;e<this._displayables.length;e++){var n=this._displayables[e];n.beforeBrush&&n.beforeBrush(t),n.brush(t,e===this._cursor?null:this._displayables[e-1]),n.afterBrush&&n.afterBrush(t)}this._cursor=e;for(var e=0;e<this._temporaryDisplayables.length;e++){var n=this._temporaryDisplayables[e];n.beforeBrush&&n.beforeBrush(t),n.brush(t,0===e?null:this._temporaryDisplayables[e-1]),n.afterBrush&&n.afterBrush(t)}this._temporaryDisplayables=[],this.notClear=!0};var B_=[];ta.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new bn(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(B_)),t.union(i)}this._rect=t}return this._rect},ta.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(i.contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){var a=this._displayables[r];if(a.contain(t,e))return!0}return!1},h(ta,bi);var E_=Math.max,R_=Math.min,N_={},F_=1,V_={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},H_="emphasis",W_="normal",G_=1,Z_={},X_={},Y_=Ur,U_=Qr,q_=N(),j_=0;ia("circle",p_),ia("sector",m_),ia("ring",y_),ia("polygon",w_),ia("polyline",b_),ia("rect",I_),ia("line",C_),ia("bezierCurve",D_),ia("arc",k_);var $_=(Object.freeze||Object)({Z2_EMPHASIS_LIFT:F_,CACHED_LABEL_STYLE_PROPERTIES:V_,extendShape:ea,extendPath:na,registerShape:ia,getShapeClass:ra,makePath:aa,makeImage:oa,mergePath:Y_,resizePath:la,subPixelOptimizeLine:ua,subPixelOptimizeRect:ha,subPixelOptimize:U_,setElementHoverStyle:ya,setHoverStyle:Sa,setAsHighDownDispatcher:Ia,isHighDownDispatcher:Ta,getHighlightDigit:Ca,setLabelStyle:Aa,modifyLabelStyle:Da,setTextStyle:ka,setText:Pa,getFont:Na,updateProps:Va,initProps:Ha,getTransform:Wa,applyTransform:Ga,transformDirection:Za,groupTransition:Xa,clipPointsByRect:Ya,clipRectByRect:Ua,createIcon:qa,linePolygonIntersect:ja,lineLineIntersect:$a,Group:Jv,Image:Mi,Text:f_,Circle:p_,Sector:m_,Ring:y_,Polygon:w_,Polyline:b_,Rect:I_,Line:C_,BezierCurve:D_,Arc:k_,IncrementalDisplayable:ta,CompoundPath:P_,LinearGradient:L_,RadialGradient:z_,BoundingRect:bn}),K_=["textStyle","color"],Q_={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(K_):null)},getFont:function(){return Na({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){return Hn(t,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}},J_=oy([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),tx={getItemStyle:function(t,e){var n=J_(this,t,e),i=this.getBorderLineDash();return i&&(n.lineDash=i),n},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}},ex=c,nx=ji();Ja.prototype={constructor:Ja,init:null,mergeOption:function(t){r(this.option,t,!0)},get:function(t,e){return null==t?this.option:to(this.option,this.parsePath(t),!e&&eo(this,t))},getShallow:function(t,e){var n=this.option,i=null==n?n:n[t],r=!e&&eo(this,t);return null==i&&r&&(i=r.getShallow(t)),i},getModel:function(t,e){var n,i=null==t?this.option:to(this.option,t=this.parsePath(t));return e=e||(n=eo(this,t))&&n.getModel(t),new Ja(i,e,this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){var t=this.constructor;return new t(i(this.option))},setReadOnly:function(){},parsePath:function(t){return"string"==typeof t&&(t=t.split(".")),t},customizeGetParent:function(t){nx(this).getParent=t},isAnimationEnabled:function(){if(!Vg.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},ir(Ja),rr(Ja),ex(Ja,ly),ex(Ja,hy),ex(Ja,Q_),ex(Ja,tx);var ix=0,rx=1e-4,ax=9007199254740991,ox=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/,sx=(Object.freeze||Object)({linearMap:oo,parsePercent:so,round:lo,asc:uo,getPrecision:ho,getPrecisionSafe:co,getPixelPrecision:fo,getPercentWithPrecision:po,MAX_SAFE_INTEGER:ax,remRadian:go,isRadianAroundZero:vo,parseDate:mo,quantity:yo,quantityExponent:_o,nice:xo,quantile:wo,reformIntervals:bo,isNumeric:Mo}),lx=O,ux=/([&<>"'])/g,hx={"&":"&","<":"<",">":">",'"':""","'":"'"},cx=["a","b","c","d","e","f","g"],dx=function(t,e){return"{"+t+(null==e?"":e)+"}"},fx=Un,px=(Object.freeze||Object)({addCommas:So,toCamelCase:Io,normalizeCssArray:lx,encodeHTML:To,formatTpl:Co,formatTplSimple:Ao,getTooltipMarker:Do,formatTime:Po,capitalFirst:Oo,truncateText:fx,getTextBoundingRect:Lo,getTextRect:zo}),gx=f,vx=["left","right","top","bottom","width","height"],mx=[["width","left","right"],["height","top","bottom"]],yx=Bo,_x=(_(Bo,"vertical"),_(Bo,"horizontal"),{getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}}),xx=ji(),bx=Ja.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,e,n,i){Ja.call(this,t,e,n,i),this.uid=no("ec_cpt_model")},init:function(t,e,n){this.mergeDefaultAndTheme(t,n)},mergeDefaultAndTheme:function(t,e){var n=this.layoutMode,i=n?No(t):{},a=e.getTheme();r(t,a.get(this.mainType)),r(t,this.getDefaultOption()),n&&Ro(t,i,n)},mergeOption:function(t){r(this.option,t,!0);var e=this.layoutMode;e&&Ro(this.option,t,e)},optionUpdated:function(){},getDefaultOption:function(){var t=xx(this);if(!t.defaultOption){for(var e=[],n=this.constructor;n;){var i=n.prototype.defaultOption;i&&e.push(i),n=n.superClass}for(var a={},o=e.length-1;o>=0;o--)a=r(a,e[o],!0);t.defaultOption=a}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});sr(bx,{registerWhenExtend:!0}),io(bx),ro(bx,Vo),c(bx,_x);var Mx="";"undefined"!=typeof navigator&&(Mx=navigator.platform||"");var Sx={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:Mx.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},Ix=ji(),Tx={clearColorPalette:function(){Ix(this).colorIdx=0,Ix(this).colorNameMap={}},getColorFromPalette:function(t,e,n){e=e||this;var i=Ix(e),r=i.colorIdx||0,a=i.colorNameMap=i.colorNameMap||{};if(a.hasOwnProperty(t))return a[t];var o=Vi(this.get("color",!0)),s=this.get("colorLayer",!0),l=null!=n&&s?Ho(s,n):o;if(l=l||o,l&&l.length){var u=l[r];return t&&(a[t]=u),i.colorIdx=(r+1)%l.length,u}}},Cx={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis")[0],a=t.getReferringComponents("yAxis")[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",a),Go(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),Go(a)&&(i.set("y",a),e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis")[0];e.coordSysDims=["single"],n.set("single",r),Go(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar")[0],a=r.findAxisModel("radiusAxis"),o=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",o),Go(a)&&(i.set("radius",a),e.firstCategoryDimIndex=0),Go(o)&&(i.set("angle",o),e.firstCategoryDimIndex=1)},geo:function(t,e){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,a=r.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();f(a.parallelAxisIndex,function(t,a){var s=r.getComponent("parallelAxis",t),l=o[a];n.set(l,s),Go(s)&&null==e.firstCategoryDimIndex&&(i.set(l,s),e.firstCategoryDimIndex=a)})}},Ax="original",Dx="arrayRows",kx="objectRows",Px="keyedColumns",Ox="unknown",Lx="typedArray",zx="column",Bx="row";Zo.seriesDataToSource=function(t){return new Zo({data:t,sourceFormat:I(t)?Lx:Ax,fromDataset:!1})},rr(Zo);var Ex=ji(),Rx="\x00_ec_inner",Nx=Ja.extend({init:function(t,e,n,i){n=n||{},this.option=null,this._theme=new Ja(n),this._optionManager=i},setOption:function(t,e){L(!(Rx in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption(null)},resetOption:function(t){var e=!1,n=this._optionManager;if(!t||"recreate"===t){var i=n.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(i)):as.call(this,i),e=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var r=n.getTimelineOption(this);r&&(this.mergeOption(r),e=!0)}if(!t||"recreate"===t||"media"===t){var a=n.getMediaOption(this,this._api);a.length&&f(a,function(t){this.mergeOption(t,e=!0)},this)}return e},mergeOption:function(t){function e(e,i){var r=Vi(t[e]),s=Zi(a.get(e),r);Xi(s),f(s,function(t){var n=t.option;M(n)&&(t.keyInfo.mainType=e,t.keyInfo.subType=ss(e,n,t.exist))});var l=os(a,i);n[e]=[],a.set(e,[]),f(s,function(t,i){var r=t.exist,s=t.option;if(L(M(s)||r,"Empty component definition"),s){var u=bx.getClass(e,t.keyInfo.subType,!0);if(r&&r.constructor===u)r.name=t.keyInfo.name,r.mergeOption(s,this),r.optionUpdated(s,!1);else{var h=o({dependentModels:l,componentIndex:i},t.keyInfo);r=new u(s,this,this,h),o(r,h),r.init(s,this,this,h),r.optionUpdated(null,!0)}}else r.mergeOption({},this),r.optionUpdated({},!1);a.get(e)[i]=r,n[e][i]=r.option},this),"series"===e&&ls(this,a.get("series"))}var n=this.option,a=this._componentsMap,s=[];Uo(this),f(t,function(t,e){null!=t&&(bx.hasClass(e)?e&&s.push(e):n[e]=null==n[e]?i(t):r(n[e],t,!0))}),bx.topologicalTravel(s,bx.getAllClassMainTypes(),e,this),this._seriesIndicesMap=N(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var t=i(this.option);return f(t,function(e,n){if(bx.hasClass(n)){for(var e=Vi(e),i=e.length-1;i>=0;i--)Ui(e[i])&&e.splice(i,1);t[n]=e}}),delete t[Rx],t},getTheme:function(){return this._theme},getComponent:function(t,e){var n=this._componentsMap.get(t);return n?n[e||0]:void 0},queryComponents:function(t){var e=t.mainType;if(!e)return[];var n=t.index,i=t.id,r=t.name,a=this._componentsMap.get(e);if(!a||!a.length)return[];var o;if(null!=n)x(n)||(n=[n]),o=v(p(n,function(t){return a[t]}),function(t){return!!t});else if(null!=i){var s=x(i);o=v(a,function(t){return s&&u(i,t.id)>=0||!s&&t.id===i})}else if(null!=r){var l=x(r);o=v(a,function(t){return l&&u(r,t.name)>=0||!l&&t.name===r})}else o=a.slice();return us(o,t)},findComponents:function(t){function e(t){var e=r+"Index",n=r+"Id",i=r+"Name";return!t||null==t[e]&&null==t[n]&&null==t[i]?null:{mainType:r,index:t[e],id:t[n],name:t[i]}}function n(e){return t.filter?v(e,t.filter):e}var i=t.query,r=t.mainType,a=e(i),o=a?this.queryComponents(a):this._componentsMap.get(r);return n(us(o,t))},eachComponent:function(t,e,n){var i=this._componentsMap;if("function"==typeof t)n=e,e=t,i.each(function(t,i){f(t,function(t,r){e.call(n,i,t,r)})});else if(b(t))f(i.get(t),e,n);else if(M(t)){var r=this.findComponents(t);f(r,e,n)}},getSeriesByName:function(t){var e=this._componentsMap.get("series");return v(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap.get("series")[t]},getSeriesByType:function(t){var e=this._componentsMap.get("series");return v(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(t,e){f(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)},this)},eachRawSeries:function(t,e){f(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(t,e,n){f(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)},this)},eachRawSeriesByType:function(t,e,n){return f(this.getSeriesByType(t),e,n)},isSeriesFiltered:function(t){return null==this._seriesIndicesMap.get(t.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){var n=v(this._componentsMap.get("series"),t,e);ls(this,n)},restoreData:function(t){var e=this._componentsMap;ls(this,e.get("series"));var n=[];e.each(function(t,e){n.push(e)}),bx.topologicalTravel(n,bx.getAllClassMainTypes(),function(n){f(e.get(n),function(e){("series"!==n||!is(e,t))&&e.restoreData()})})}});c(Nx,Tx);var Fx=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"],Vx={};cs.prototype={constructor:cs,create:function(t,e){var n=[];f(Vx,function(i){var r=i.create(t,e);n=n.concat(r||[])}),this._coordinateSystems=n},update:function(t,e){f(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},cs.register=function(t,e){Vx[t]=e},cs.get=function(t){return Vx[t]};var Hx=f,Wx=i,Gx=p,Zx=r,Xx=/^(min|max)?(.+)$/;ds.prototype={constructor:ds,setOption:function(t,e){t&&f(Vi(t.series),function(t){t&&t.data&&I(t.data)&&B(t.data)}),t=Wx(t);var n=this._optionBackup,i=fs.call(this,t,e,!n);this._newBaseOption=i.baseOption,n?(ms(n.baseOption,i.baseOption),i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=Gx(e.timelineOptions,Wx),this._mediaList=Gx(e.mediaList,Wx),this._mediaDefault=Wx(e.mediaDefault),this._currentMediaIndices=[],Wx(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=Wx(n[i.getCurrentIndex()],!0))}return e},getMediaOption:function(){var t=this._api.getWidth(),e=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,r=[],a=[];if(!n.length&&!i)return a;for(var o=0,s=n.length;s>o;o++)ps(n[o].query,t,e)&&r.push(o);return!r.length&&i&&(r=[-1]),r.length&&!vs(r,this._currentMediaIndices)&&(a=Gx(r,function(t){return Wx(-1===t?i.option:n[t].option)})),this._currentMediaIndices=r,a}};var Yx=f,Ux=M,qx=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],jx=function(t,e){Yx(Ss(t.series),function(t){Ux(t)&&Ms(t)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Yx(n,function(e){Yx(Ss(t[e]),function(t){t&&(ws(t,"axisLabel"),ws(t.axisPointer,"label"))})}),Yx(Ss(t.parallel),function(t){var e=t&&t.parallelAxisDefault;ws(e,"axisLabel"),ws(e&&e.axisPointer,"label")}),Yx(Ss(t.calendar),function(t){_s(t,"itemStyle"),ws(t,"dayLabel"),ws(t,"monthLabel"),ws(t,"yearLabel")}),Yx(Ss(t.radar),function(t){ws(t,"name")}),Yx(Ss(t.geo),function(t){Ux(t)&&(bs(t),Yx(Ss(t.regions),function(t){bs(t)}))}),Yx(Ss(t.timeline),function(t){bs(t),_s(t,"label"),_s(t,"itemStyle"),_s(t,"controlStyle",!0);var e=t.data;x(e)&&f(e,function(t){M(t)&&(_s(t,"label"),_s(t,"itemStyle"))})}),Yx(Ss(t.toolbox),function(t){_s(t,"iconStyle"),Yx(t.feature,function(t){_s(t,"iconStyle")})}),ws(Is(t.axisPointer),"label"),ws(Is(t.tooltip).axisPointer,"label")},$x=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Kx=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Qx=function(t,e){jx(t,e),t.series=Vi(t.series),f(t.series,function(t){if(M(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e)null!=t.clockWise&&(t.clockwise=t.clockWise);else if("gauge"===e){var n=Ts(t,"pointer.color");null!=n&&Cs(t,"itemStyle.color",n)}As(t)}}),t.dataRange&&(t.visualMap=t.dataRange),f(Kx,function(e){var n=t[e];n&&(x(n)||(n=[n]),f(n,function(t){As(t)}))})},Jx=function(t){var e=N();t.eachSeries(function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),a={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!a.stackedDimension||!a.isStackedByIndex&&!a.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(a)}}),e.each(Ds)},tw=ks.prototype;tw.pure=!1,tw.persistent=!0,tw.getSource=function(){return this._source};var ew={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(t){return this._data[t+this._source.startIndex]},appendData:Ls},arrayRows_row:{pure:!0,count:function(){var t=this._data[0];return t?Math.max(0,t.length-this._source.startIndex):0},getItem:function(t){t+=this._source.startIndex;for(var e=[],n=this._data,i=0;i<n.length;i++){var r=n[i];e.push(r?r[t]:null)}return e},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:Ps,getItem:Os,appendData:Ls},keyedColumns:{pure:!0,count:function(){var t=this._source.dimensionsDefine[0].name,e=this._data[t];return e?e.length:0},getItem:function(t){for(var e=[],n=this._source.dimensionsDefine,i=0;i<n.length;i++){var r=this._data[n[i].name];e.push(r?r[t]:null)}return e},appendData:function(t){var e=this._data;f(t,function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])})}},original:{count:Ps,getItem:Os,appendData:Ls},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(t,e){t-=this._offset,e=e||[];for(var n=this._dimSize*t,i=0;i<this._dimSize;i++)e[i]=this._data[n+i];return e},appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}}},nw={arrayRows:zs,objectRows:function(t,e,n,i){return null!=n?t[i]:t},keyedColumns:zs,original:function(t,e,n){var i=Wi(t);return null!=n&&i instanceof Array?i[n]:i},typedArray:zs},iw={arrayRows:Bs,objectRows:function(t,e){return Es(t[e],this._dimensionInfos[e])},keyedColumns:Bs,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return!this._rawData.pure&&Gi(t)&&(this.hasItemOption=!0),Es(r instanceof Array?r[i]:r,this._dimensionInfos[e])},typedArray:function(t,e,n,i){return t[i]}},rw=/\{@(.+?)\}/g,aw={getDataParams:function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),a=n.getName(t),o=n.getRawDataItem(t),s=n.getItemVisual(t,"color"),l=n.getItemVisual(t,"borderColor"),u=this.ecModel.getComponent("tooltip"),h=u&&u.get("renderMode"),c=tr(h),d=this.mainType,f="series"===d,p=n.userOutput;return{componentType:d,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:f?this.subType:null,seriesIndex:this.seriesIndex,seriesId:f?this.id:null,seriesName:f?this.name:null,name:a,dataIndex:r,data:o,dataType:e,value:i,color:s,borderColor:l,dimensionNames:p?p.dimensionNames:null,encode:p?p.encode:null,marker:Do({color:s,renderMode:c}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,n,i,r){e=e||"normal";var a=this.getData(n),o=a.getItemModel(t),s=this.getDataParams(t,n);null!=i&&s.value instanceof Array&&(s.value=s.value[i]);var l=o.get("normal"===e?[r||"label","formatter"]:[e,r||"label","formatter"]);if("function"==typeof l)return s.status=e,s.dimensionIndex=i,l(s);if("string"==typeof l){var u=Co(l,s);return u.replace(rw,function(e,n){var i=n.length;return"["===n.charAt(0)&&"]"===n.charAt(i-1)&&(n=+n.slice(1,i-1)),Rs(a,t,n)})}},getRawValue:function(t,e){return Rs(this.getData(e),t)},formatTooltip:function(){}},ow=Vs.prototype;ow.perform=function(t){function e(t){return!(t>=1)&&(t=1),t}var n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=e(this._modBy),s=this._modDataCount||0,l=e(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");var h;(this._dirty||"reset"===a)&&(this._dirty=!1,h=Ws(this,i)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,f=Math.min(null!=c?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(h||f>d)){var p=this._progress;if(x(p))for(var g=0;g<p.length;g++)Hs(this,p[g],d,f,l,u);else Hs(this,p,d,f,l,u)}this._dueIndex=f;var v=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var sw=function(){function t(){return n>i?i++:null}function e(){var t=i%o*r+Math.ceil(i/o),e=i>=n?null:a>t?t:i;return i++,e}var n,i,r,a,o,s={reset:function(l,u,h,c){i=l,n=u,r=h,a=c,o=Math.ceil(a/r),s.next=r>1&&a>0?e:t}};return s}();ow.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},ow.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},ow.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},ow.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},ow.getUpstream=function(){return this._upstream},ow.getDownstream=function(){return this._downstream},ow.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t};var lw=ji(),uw=bx.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Fs({count:Xs,reset:Ys}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),qo(this);var i=this.getInitialData(t,n);qs(i,this),this.dataTask.context.data=i,lw(this).dataBeforeProcessed=i,Gs(this)},mergeDefaultAndTheme:function(t,e){var n=this.layoutMode,i=n?No(t):{},a=this.subType;bx.hasClass(a)&&(a+="Series"),r(t,e.getTheme().get(this.subType)),r(t,this.getDefaultOption()),Hi(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Ro(t,i,n)},mergeOption:function(t,e){t=r(this.option,t,!0),this.fillDataTextStyle(t.data);var n=this.layoutMode;n&&Ro(this.option,t,n),qo(this);var i=this.getInitialData(t,e);qs(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,lw(this).dataBeforeProcessed=i,Gs(this)},fillDataTextStyle:function(t){if(t&&!I(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Hi(t[n],"label",e)},getInitialData:function(){},appendData:function(t){var e=this.getRawData();e.appendData(t.data)},getData:function(t){var e=$s(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return lw(this).data
 
- },setData:function(t){var e=$s(this);if(e){var n=e.context;n.data!==t&&e.modifyOutputEnd&&e.setOutputEnd(t.count()),n.outputData=t,e!==this.dataTask&&(n.data=t)}lw(this).data=t},getSource:function(){return Yo(this)},getRawData:function(){return lw(this).dataBeforeProcessed},getBaseAxis:function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},formatTooltip:function(t,e,n,i){function r(n){function r(t,n){var r=c.getDimensionInfo(n);if(r&&r.otherDims.tooltip!==!1){var d=r.type,f="sub"+o.seriesIndex+"at"+h,p=Do({color:y,type:"subItem",renderMode:i,markerId:f}),g="string"==typeof p?p:p.content,v=(a?g+To(r.displayName||"-")+": ":"")+To("ordinal"===d?t+"":"time"===d?e?"":Po("yyyy/MM/dd hh:mm:ss",t):So(t));v&&s.push(v),l&&(u[f]=y,++h)}}var a=g(n,function(t,e,n){var i=c.getDimensionInfo(n);return t|=i&&i.tooltip!==!1&&null!=i.displayName},0),s=[];d.length?f(d,function(e){r(Rs(c,t,e),e)}):f(n,r);var p=a?l?"\n":"<br/>":"",v=p+s.join(p||", ");return{renderMode:i,content:v,style:u}}function a(t){return{renderMode:i,content:To(So(t)),style:u}}var o=this;i=i||"html";var s="html"===i?"<br/>":"\n",l="richText"===i,u={},h=0,c=this.getData(),d=c.mapDimension("defaultedTooltip",!0),p=d.length,v=this.getRawValue(t),m=x(v),y=c.getItemVisual(t,"color");M(y)&&y.colorStops&&(y=(y.colorStops[0]||{}).color),y=y||"transparent";var _=p>1||m&&!p?r(v):a(p?Rs(c,t,d[0]):m?v[0]:v),w=_.content,b=o.seriesIndex+"at"+h,S=Do({color:y,type:"item",renderMode:i,markerId:b});u[b]=y,++h;var I=c.getName(t),T=this.name;Yi(this)||(T=""),T=T?To(T)+(e?": ":s):"";var C="string"==typeof S?S:S.content,A=e?C+T+w:T+C+(I?To(I)+": "+w:w);return{html:A,markers:u}},isAnimationEnabled:function(){if(Vg.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,n){var i=this.ecModel,r=Tx.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},coordDimToDataDim:function(t){return this.getRawData().mapDimension(t,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});c(uw,aw),c(uw,Tx);var hw=function(){this.group=new Jv,this.uid=no("viewComponent")};hw.prototype={constructor:hw,init:function(){},render:function(){},dispose:function(){},filterForExposedEvent:null};var cw=hw.prototype;cw.updateView=cw.updateLayout=cw.updateVisual=function(){},ir(hw),sr(hw,{registerWhenExtend:!0});var dw=function(){var t=ji();return function(e){var n=t(e),i=e.pipelineContext,r=n.large,a=n.progressiveRender,o=n.large=i.large,s=n.progressiveRender=i.progressiveRender;return!!(r^o||a^s)&&"reset"}},fw=ji(),pw=dw();Ks.prototype={type:"chart",init:function(){},render:function(){},highlight:function(t,e,n,i){Js(t.getData(),i,"emphasis")},downplay:function(t,e,n,i){Js(t.getData(),i,"normal")},remove:function(){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var gw=Ks.prototype;gw.updateView=gw.updateLayout=gw.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},ir(Ks,["dispose"]),sr(Ks,{registerWhenExtend:!0}),Ks.markUpdateMethod=function(t,e){fw(t).updateMethod=e};var vw={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},mw="\x00__throttleOriginMethod",yw="\x00__throttleRate",_w="\x00__throttleType",xw={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=(t.visualColorAccessPath||"itemStyle.color").split("."),r=t.get(i)||t.getColorFromPalette(t.name,null,e.getSeriesCount());n.setVisual("color",r);var a=(t.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),o=t.get(a);if(n.setVisual("borderColor",o),!e.isSeriesFiltered(t)){"function"!=typeof r||r instanceof O_||n.each(function(e){n.setItemVisual(e,"color",r(t.getDataParams(e)))});var s=function(t,e){var n=t.getItemModel(e),r=n.get(i,!0),o=n.get(a,!0);null!=r&&t.setItemVisual(e,"color",r),null!=o&&t.setItemVisual(e,"borderColor",o)};return{dataEach:n.hasItemOption?s:null}}}},ww={legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},bw=function(t,e){function n(t,e){if("string"!=typeof t)return t;var n=t;return f(e,function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)}),n}function i(t){var e=o.get(t);if(null==e){for(var n=t.split("."),i=ww.aria,r=0;r<n.length;++r)i=i[n[r]];return i}return e}function r(){var t=e.getModel("title").option;return t&&t.length&&(t=t[0]),t&&t.text}function a(t){return ww.series.typeNames[t]||"自定义图"}var o=e.getModel("aria");if(o.get("show")){if(o.get("description"))return void t.setAttribute("aria-label",o.get("description"));var s=0;e.eachSeries(function(){++s},this);var l,u=o.get("data.maxCount")||10,h=o.get("series.maxCount")||10,c=Math.min(s,h);if(!(1>s)){var d=r();l=d?n(i("general.withTitle"),{title:d}):i("general.withoutTitle");var p=[],g=s>1?"series.multiple.prefix":"series.single.prefix";l+=n(i(g),{seriesCount:s}),e.eachSeries(function(t,e){if(c>e){var r,o=t.get("name"),l="series."+(s>1?"multiple":"single")+".";r=i(o?l+"withName":l+"withoutName"),r=n(r,{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:a(t.subType)});var h=t.getData();window.data=h,r+=h.count()>u?n(i("data.partialData"),{displayCnt:u}):i("data.allData");for(var d=[],f=0;f<h.count();f++)if(u>f){var g=h.getName(f),v=Rs(h,f);d.push(n(i(g?"data.withName":"data.withoutName"),{name:g,value:v}))}r+=d.join(i("data.separator.middle"))+i("data.separator.end"),p.push(r)}}),l+=p.join(i("series.multiple.separator.middle"))+i("series.multiple.separator.end"),t.setAttribute("aria-label",l)}}},Mw=Math.PI,Sw=function(t,e){e=e||{},s(e,{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var n=new I_({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4}),i=new k_({shape:{startAngle:-Mw/2,endAngle:-Mw/2+.1,r:10},style:{stroke:e.color,lineCap:"round",lineWidth:5},zlevel:e.zlevel,z:10001}),r=new I_({style:{fill:"none",text:e.text,textPosition:"right",textDistance:10,textFill:e.textColor},zlevel:e.zlevel,z:10001});i.animateShape(!0).when(1e3,{endAngle:3*Mw/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*Mw/2}).delay(300).start("circularInOut");var a=new Jv;return a.add(i),a.add(r),a.add(n),a.resize=function(){var e=t.getWidth()/2,a=t.getHeight()/2;i.setShape({cx:e,cy:a});var o=i.shape.r;r.setShape({x:e-o,y:a-o,width:2*o,height:2*o}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},a.resize(),a},Iw=al.prototype;Iw.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},Iw.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,a=r?n.step:null,o=i&&i.modDataCount,s=null!=o?Math.ceil(o/a):null;return{step:a,modBy:s,modDataCount:o}}},Iw.getPipeline=function(t){return this._pipelineMap.get(t)},Iw.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),r=i.count(),a=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,o=t.get("large")&&r>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:a,modDataCount:s,large:o}},Iw.restorePipelines=function(t){var e=this,n=e._pipelineMap=N();t.eachSeries(function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),ml(e,t,t.dataTask)})},Iw.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.ecInstance.getModel(),n=this.api;f(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,[]);i.reset&&sl(this,i,r,e,n),i.overallReset&&ll(this,i,r,e,n)},this)},Iw.prepareView=function(t,e,n,i){var r=t.renderTask,a=r.context;a.model=e,a.ecModel=n,a.api=i,r.__block=!t.incrementalPrepareRender,ml(this,e,r)},Iw.performDataProcessorTasks=function(t,e){ol(this,this._dataProcessorHandlers,t,e,{block:!0})},Iw.performVisualTasks=function(t,e,n){ol(this,this._visualHandlers,t,e,n)},Iw.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e|=t.dataTask.perform()}),this.unfinished|=e},Iw.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})};var Tw=Iw.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},Cw=gl(0);al.wrapStageHandler=function(t,e){return w(t)&&(t={overallReset:t,seriesType:yl(t)}),t.uid=no("stageHandler"),e&&(t.visualType=e),t};var Aw,Dw={},kw={};_l(Dw,Nx),_l(kw,hs),Dw.eachSeriesByType=Dw.eachRawSeriesByType=function(t){Aw=t},Dw.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Aw=t.subType)};var Pw=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Ow={color:Pw,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Pw]},Lw="#eee",zw=function(){return{axisLine:{lineStyle:{color:Lw}},axisTick:{lineStyle:{color:Lw}},axisLabel:{textStyle:{color:Lw}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:Lw}}}},Bw=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],Ew={color:Bw,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:Lw},crossStyle:{color:Lw}}},legend:{textStyle:{color:Lw}},textStyle:{color:Lw},title:{textStyle:{color:Lw}},toolbox:{iconStyle:{normal:{borderColor:Lw}}},dataZoom:{textStyle:{color:Lw}},visualMap:{textStyle:{color:Lw}},timeline:{lineStyle:{color:Lw},itemStyle:{normal:{color:Bw[1]}},label:{normal:{textStyle:{color:Lw}}},controlStyle:{normal:{color:Lw,borderColor:Lw}}},timeAxis:zw(),logAxis:zw(),valueAxis:zw(),categoryAxis:zw(),line:{symbol:"circle"},graph:{color:Bw},gauge:{title:{textStyle:{color:Lw}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};Ew.categoryAxis.splitLine.show=!1,bx.extend({type:"dataset",defaultOption:{seriesLayoutBy:zx,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){Xo(this)}}),hw.extend({type:"dataset"});var Rw=Hr.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(t,e){var n=.5522848,i=e.cx,r=e.cy,a=e.rx,o=e.ry,s=a*n,l=o*n;t.moveTo(i-a,r),t.bezierCurveTo(i-a,r-l,i-s,r-o,i,r-o),t.bezierCurveTo(i+s,r-o,i+a,r-l,i+a,r),t.bezierCurveTo(i+a,r+l,i+s,r+o,i,r+o),t.bezierCurveTo(i-s,r+o,i-a,r+l,i-a,r),t.closePath()}}),Nw=/[\s,]+/;wl.prototype.parse=function(t,e){e=e||{};var n=xl(t);if(!n)throw new Error("Illegal svg");var i=new Jv;this._root=i;var r=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||e.width),o=parseFloat(n.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(o)&&(o=null),Il(n,i,null,!0);for(var s=n.firstChild;s;)this._parseNode(s,i),s=s.nextSibling;var l,u;if(r){var h=z(r).split(Nw);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=a&&null!=o&&(u=Dl(l,a,o),!e.ignoreViewBox)){var c=i;i=new Jv,i.add(c),c.scale=u.scale.slice(),c.position=u.position.slice()}return e.ignoreRootClip||null==a||null==o||i.setClipPath(new I_({shape:{x:0,y:0,width:a,height:o}})),{root:i,width:a,height:o,viewBoxRect:l,viewBoxTransform:u}},wl.prototype._parseNode=function(t,e){var n=t.nodeName.toLowerCase();"defs"===n?this._isDefine=!0:"text"===n&&(this._isText=!0);var i;if(this._isDefine){var r=Vw[n];if(r){var a=r.call(this,t),o=t.getAttribute("id");o&&(this._defs[o]=a)}}else{var r=Fw[n];r&&(i=r.call(this,t,e),e.add(i))}for(var s=t.firstChild;s;)1===s.nodeType&&this._parseNode(s,i),3===s.nodeType&&this._isText&&this._parseText(s,i),s=s.nextSibling;"defs"===n?this._isDefine=!1:"text"===n&&(this._isText=!1)},wl.prototype._parseText=function(t,e){if(1===t.nodeType){var n=t.getAttribute("dx")||0,i=t.getAttribute("dy")||0;this._textX+=parseFloat(n),this._textY+=parseFloat(i)}var r=new f_({style:{text:t.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});Ml(e,r),Il(t,r,this._defs);var a=r.style.fontSize;a&&9>a&&(r.style.fontSize=9,r.scale=r.scale||[1,1],r.scale[0]*=a/9,r.scale[1]*=a/9);var o=r.getBoundingRect();return this._textX+=o.width,e.add(r),r};var Fw={g:function(t,e){var n=new Jv;return Ml(e,n),Il(t,n,this._defs),n},rect:function(t,e){var n=new I_;return Ml(e,n),Il(t,n,this._defs),n.setShape({x:parseFloat(t.getAttribute("x")||0),y:parseFloat(t.getAttribute("y")||0),width:parseFloat(t.getAttribute("width")||0),height:parseFloat(t.getAttribute("height")||0)}),n},circle:function(t,e){var n=new p_;return Ml(e,n),Il(t,n,this._defs),n.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),r:parseFloat(t.getAttribute("r")||0)}),n},line:function(t,e){var n=new C_;return Ml(e,n),Il(t,n,this._defs),n.setShape({x1:parseFloat(t.getAttribute("x1")||0),y1:parseFloat(t.getAttribute("y1")||0),x2:parseFloat(t.getAttribute("x2")||0),y2:parseFloat(t.getAttribute("y2")||0)}),n},ellipse:function(t,e){var n=new Rw;return Ml(e,n),Il(t,n,this._defs),n.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),rx:parseFloat(t.getAttribute("rx")||0),ry:parseFloat(t.getAttribute("ry")||0)}),n},polygon:function(t,e){var n=t.getAttribute("points");n&&(n=Sl(n));var i=new w_({shape:{points:n||[]}});return Ml(e,i),Il(t,i,this._defs),i},polyline:function(t,e){var n=new Hr;Ml(e,n),Il(t,n,this._defs);var i=t.getAttribute("points");i&&(i=Sl(i));var r=new b_({shape:{points:i||[]}});return r},image:function(t,e){var n=new Mi;return Ml(e,n),Il(t,n,this._defs),n.setStyle({image:t.getAttribute("xlink:href"),x:t.getAttribute("x"),y:t.getAttribute("y"),width:t.getAttribute("width"),height:t.getAttribute("height")}),n},text:function(t,e){var n=t.getAttribute("x")||0,i=t.getAttribute("y")||0,r=t.getAttribute("dx")||0,a=t.getAttribute("dy")||0;this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(a);var o=new Jv;return Ml(e,o),Il(t,o,this._defs),o},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute("dx")||0,a=t.getAttribute("dy")||0,o=new Jv;return Ml(e,o),Il(t,o,this._defs),this._textX+=r,this._textY+=a,o},path:function(t,e){var n=t.getAttribute("d")||"",i=Xr(n);return Ml(e,i),Il(t,i,this._defs),i}},Vw={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||0,10),n=parseInt(t.getAttribute("y1")||0,10),i=parseInt(t.getAttribute("x2")||10,10),r=parseInt(t.getAttribute("y2")||0,10),a=new L_(e,n,i,r);return bl(t,a),a},radialgradient:function(){}},Hw={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"},Ww=/url\(\s*#(.*?)\)/,Gw=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g,Zw=/([^\s:;]+)\s*:\s*([^:;]+)/g,Xw=N(),Yw={registerMap:function(t,e,n){var i;return x(e)?i=e:e.svg?i=[{type:"svg",source:e.svg,specialAreas:e.specialAreas}]:(e.geoJson&&!e.features&&(n=e.specialAreas,e=e.geoJson),i=[{type:"geoJSON",source:e,specialAreas:n}]),f(i,function(t){var e=t.type;"geoJson"===e&&(e=t.type="geoJSON");var n=Uw[e];n(t)}),Xw.set(t,i)},retrieveMap:function(t){return Xw.get(t)}},Uw={geoJSON:function(t){var e=t.source;t.geoJSON=b(e)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e},svg:function(t){t.svgXML=xl(t.source)}},qw=L,jw=f,$w=w,Kw=M,Qw=bx.parseClassType,Jw="4.5.0",tb={zrender:"4.1.2"},eb=1,nb=1e3,ib=800,rb=900,ab=5e3,ob=1e3,sb=1100,lb=2e3,ub=3e3,hb=3500,cb=4e3,db=5e3,fb={PROCESSOR:{FILTER:nb,SERIES_FILTER:ib,STATISTIC:ab},VISUAL:{LAYOUT:ob,PROGRESSIVE_LAYOUT:sb,GLOBAL:lb,CHART:ub,POST_CHART_LAYOUT:hb,COMPONENT:cb,BRUSH:db}},pb="__flagInMainProcess",gb="__optionUpdated",vb=/^[a-zA-Z0-9_]+$/;Pl.prototype.on=kl("on",!0),Pl.prototype.off=kl("off",!0),Pl.prototype.one=kl("one",!0),c(Pl,lv);var mb=Ol.prototype;mb._onframe=function(){if(!this._disposed){var t=this._scheduler;if(this[gb]){var e=this[gb].silent;this[pb]=!0,zl(this),yb.update.call(this),this[pb]=!1,this[gb]=!1,Nl.call(this,e),Fl.call(this,e)}else if(t.unfinished){var n=eb,i=this._model,r=this._api;t.unfinished=!1;do{var a=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),El(this,i),t.performVisualTasks(i),Xl(this,this._model,r,"remain"),n-=+new Date-a}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},mb.getDom=function(){return this._dom},mb.getZr=function(){return this._zr},mb.setOption=function(t,e,n){if(!this._disposed){var i;if(Kw(e)&&(n=e.lazyUpdate,i=e.silent,e=e.notMerge),this[pb]=!0,!this._model||e){var r=new ds(this._api),a=this._theme,o=this._model=new Nx;o.scheduler=this._scheduler,o.init(null,null,a,r)}this._model.setOption(t,Mb),n?(this[gb]={silent:i},this[pb]=!1):(zl(this),yb.update.call(this),this._zr.flush(),this[gb]=!1,this[pb]=!1,Nl.call(this,i),Fl.call(this,i))}},mb.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},mb.getModel=function(){return this._model},mb.getOption=function(){return this._model&&this._model.getOption()},mb.getWidth=function(){return this._zr.getWidth()},mb.getHeight=function(){return this._zr.getHeight()},mb.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},mb.getRenderedCanvas=function(t){if(Vg.canvasSupported){t=t||{},t.pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr;return e.painter.getRenderedCanvas(t)}},mb.getSvgDataUrl=function(){if(Vg.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return f(e,function(t){t.stopAnimation(!0)}),t.painter.pathToDataUrl()}},mb.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,i=[],r=this;jw(e,function(t){n.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var a="svg"===this._zr.painter.getType()?this.getSvgDataUrl():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return jw(i,function(t){t.group.ignore=!1}),a}},mb.getConnectedDataURL=function(t){if(!this._disposed&&Vg.canvasSupported){var e=this.group,n=Math.min,r=Math.max,a=1/0;if(Db[e]){var o=a,s=a,l=-a,u=-a,h=[],c=t&&t.pixelRatio||1;f(Ab,function(a){if(a.group===e){var c=a.getRenderedCanvas(i(t)),d=a.getDom().getBoundingClientRect();o=n(d.left,o),s=n(d.top,s),l=r(d.right,l),u=r(d.bottom,u),h.push({dom:c,left:d.left,top:d.top})}}),o*=c,s*=c,l*=c,u*=c;var d=l-o,p=u-s,g=Kg();g.width=d,g.height=p;var v=Bi(g);return t.connectedBackgroundColor&&v.add(new I_({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),jw(h,function(t){var e=new Mi({style:{x:t.left*c-o,y:t.top*c-s,image:t.dom}});v.add(e)}),v.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},mb.convertToPixel=_(Ll,"convertToPixel"),mb.convertFromPixel=_(Ll,"convertFromPixel"),mb.containPixel=function(t,e){if(!this._disposed){var n,i=this._model;return t=$i(i,t),f(t,function(t,i){i.indexOf("Models")>=0&&f(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n|=!!r.containPoint(e);else if("seriesModels"===i){var a=this._chartsMap[t.__viewId];a&&a.containPoint&&(n|=a.containPoint(e,t))}},this)},this),!!n}},mb.getVisual=function(t,e){var n=this._model;t=$i(n,t,{defaultMainType:"series"});var i=t.seriesModel,r=i.getData(),a=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?r.indexOfRawIndex(t.dataIndex):null;return null!=a?r.getItemVisual(a,e):r.getVisual(e)},mb.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},mb.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var yb={prepareAndUpdate:function(t){zl(this),yb.update.call(this,t)},update:function(t){var e=this._model,n=this._api,i=this._zr,r=this._coordSysMgr,a=this._scheduler;if(e){a.restoreData(e,t),a.performSeriesTasks(e),r.create(e,n),a.performDataProcessorTasks(e,t),El(this,e),r.update(e,n),Wl(e),a.performVisualTasks(e,t),Gl(this,e,n,t);var o=e.get("backgroundColor")||"transparent";if(Vg.canvasSupported)i.setBackgroundColor(o);else{var s=je(o);o=an(s,"rgb"),0===s[3]&&(o="transparent")}Yl(e,n)}},updateTransform:function(t){var e=this._model,n=this,i=this._api;if(e){var r=[];e.eachComponent(function(a,o){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,e,i,t);l&&l.update&&r.push(s)}else r.push(s)});var a=N();e.eachSeries(function(r){var o=n._chartsMap[r.__viewId];if(o.updateTransform){var s=o.updateTransform(r,e,i,t);s&&s.update&&a.set(r.uid,1)}else a.set(r.uid,1)}),Wl(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0,dirtyMap:a}),Xl(n,e,i,t,a),Yl(e,this._api)}},updateView:function(t){var e=this._model;e&&(Ks.markUpdateMethod(t,"updateView"),Wl(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),Gl(this,this._model,this._api,t),Yl(e,this._api))},updateVisual:function(t){yb.update.call(this,t)},updateLayout:function(t){yb.update.call(this,t)}};mb.resize=function(t){if(!this._disposed){this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[pb]=!0,n&&zl(this),yb.update.call(this),this[pb]=!1,Nl.call(this,i),Fl.call(this,i)}}},mb.showLoading=function(t,e){if(!this._disposed&&(Kw(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Cb[t])){var n=Cb[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},mb.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},mb.makeActionFromEvent=function(t){var e=o({},t);return e.type=wb[t.type],e},mb.dispatchAction=function(t,e){if(!this._disposed&&(Kw(e)||(e={silent:!!e}),xb[t.type]&&this._model)){if(this[pb])return void this._pendingActions.push(t);Rl.call(this,t,e.silent),e.flush?this._zr.flush(!0):e.flush!==!1&&Vg.browser.weChat&&this._throttledZrFlush(),Nl.call(this,e.silent),Fl.call(this,e.silent)}},mb.appendData=function(t){if(!this._disposed){var e=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(e);i.appendData(t),this._scheduler.unfinished=!0}},mb.on=kl("on",!1),mb.off=kl("off",!1),mb.one=kl("one",!1);var _b=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];mb._initEvents=function(){jw(_b,function(t){var e=function(e){var n,i=this.getModel(),r=e.target,a="globalout"===t;if(a)n={};else if(r&&null!=r.dataIndex){var s=r.dataModel||i.getSeriesByIndex(r.seriesIndex);n=s&&s.getDataParams(r.dataIndex,r.dataType,r)||{}}else r&&r.eventData&&(n=o({},r.eventData));if(n){var l=n.componentType,u=n.componentIndex;("markLine"===l||"markPoint"===l||"markArea"===l)&&(l="series",u=n.seriesIndex);var h=l&&null!=u&&i.getComponent(l,u),c=h&&this["series"===h.mainType?"_chartsMap":"_componentsMap"][h.__viewId];n.event=e,n.type=t,this._ecEventProcessor.eventInfo={targetEl:r,packedEvent:n,model:h,view:c},this.trigger(t,n)}};e.zrEventfulCallAtLast=!0,this._zr.on(t,e,this)},this),jw(wb,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},mb.isDisposed=function(){return this._disposed},mb.clear=function(){this._disposed||this.setOption({series:[]},!0)},mb.dispose=function(){if(!this._disposed){this._disposed=!0,Qi(this.getDom(),Ob,"");var t=this._api,e=this._model;jw(this._componentsViews,function(n){n.dispose(e,t)}),jw(this._chartsViews,function(n){n.dispose(e,t)}),this._zr.dispose(),delete Ab[this.id]}},c(Ol,lv),Kl.prototype={constructor:Kl,normalizeQuery:function(t){var e={},n={},i={};if(b(t)){var r=Qw(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var a=["Index","Name","Id"],o={name:1,dataIndex:1,dataType:1};f(t,function(t,r){for(var s=!1,l=0;l<a.length;l++){var u=a[l],h=r.lastIndexOf(u);if(h>0&&h===r.length-u.length){var c=r.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}o.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},filter:function(t,e){function n(t,e,n,i){return null==t[n]||e[i||n]===t[n]}var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return n(l,o,"mainType")&&n(l,o,"subType")&&n(l,o,"index","componentIndex")&&n(l,o,"name")&&n(l,o,"id")&&n(u,a,"name")&&n(u,a,"dataIndex")&&n(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,a))},afterTrigger:function(){this.eventInfo=null}};var xb={},wb={},bb=[],Mb=[],Sb=[],Ib=[],Tb={},Cb={},Ab={},Db={},kb=new Date-0,Pb=new Date-0,Ob="_echarts_instance_",Lb=eu;fu(lb,xw),ou(Qx),su(rb,Jx),gu("default",Sw),uu({type:"highlight",event:"highlight",update:"highlight"},V),uu({type:"downplay",event:"downplay",update:"downplay"},V),au("light",Ow),au("dark",Ew);var zb={};Su.prototype={constructor:Su,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t,e=this._old,n=this._new,i={},r={},a=[],o=[];for(Iu(e,i,a,"_oldKeyGetter",this),Iu(n,r,o,"_newKeyGetter",this),t=0;t<e.length;t++){var s=a[t],l=r[s];if(null!=l){var u=l.length;u?(1===u&&(r[s]=null),l=l.shift()):r[s]=null,this._update&&this._update(l,t)}else this._remove&&this._remove(t)}for(var t=0;t<o.length;t++){var s=o[t];if(r.hasOwnProperty(s)){var l=r[s];if(null==l)continue;if(l.length)for(var h=0,u=l.length;u>h;h++)this._add&&this._add(l[h]);else this._add&&this._add(l)}}}};var Bb=N(["tooltip","label","itemName","itemId","seriesName"]),Eb=M,Rb="undefined",Nb=-1,Fb="e\x00\x00",Vb={"float":typeof Float64Array===Rb?Array:Float64Array,"int":typeof Int32Array===Rb?Array:Int32Array,ordinal:Array,number:Array,time:Array},Hb=typeof Uint32Array===Rb?Array:Uint32Array,Wb=typeof Int32Array===Rb?Array:Int32Array,Gb=typeof Uint16Array===Rb?Array:Uint16Array,Zb=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],Xb=["_extent","_approximateExtent","_rawExtent"],Yb=function(t,e){t=t||["x","y"];for(var n={},i=[],r={},a=0;a<t.length;a++){var o=t[a];b(o)&&(o={name:o});var s=o.name;o.type=o.type||"float",o.coordDim||(o.coordDim=s,o.coordDimIndex=0),o.otherDims=o.otherDims||{},i.push(s),n[s]=o,o.index=a,o.createInvertedIndices&&(r[s]=[])}this.dimensions=i,this._dimensionInfos=n,this.hostModel=e,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=Tu(this),this._invertedIndicesMap=r,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},Ub=Yb.prototype;Ub.type="list",Ub.hasItemOption=!0,Ub.getDimension=function(t){return("number"==typeof t||!isNaN(t)&&!this._dimensionInfos.hasOwnProperty(t))&&(t=this.dimensions[t]),t},Ub.getDimensionInfo=function(t){return this._dimensionInfos[this.getDimension(t)]},Ub.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},Ub.mapDimension=function(t,e){var n=this._dimensionsSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return e===!0?(i||[]).slice():i&&i[e]},Ub.initData=function(t,e,n){var i=Zo.isInstance(t)||d(t);i&&(t=new ks(t,this.dimensions.length)),this._rawData=t,this._storage={},this._indices=null,this._nameList=e||[],this._idList=[],this._nameRepeatCount={},n||(this.hasItemOption=!1),this.defaultDimValueGetter=iw[this._rawData.getSource().sourceFormat],this._dimValueGetter=n=n||this.defaultDimValueGetter,this._dimValueGetterArrayRows=iw.arrayRows,this._rawExtent={},this._initDataFromProvider(0,t.count()),t.pure&&(this.hasItemOption=!1)},Ub.getProvider=function(){return this._rawData},Ub.appendData=function(t){var e=this._rawData,n=this.count();e.appendData(t);var i=e.count();e.persistent||(i+=n),this._initDataFromProvider(n,i)},Ub.appendValues=function(t,e){for(var n=this._chunkSize,i=this._storage,r=this.dimensions,a=r.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e?e.length:0),u=this._chunkCount,h=0;a>h;h++){var c=r[h];o[c]||(o[c]=Wu()),i[c]||(i[c]=[]),Lu(i,this._dimensionInfos[c],n,u,l),this._chunkCount=i[c].length}for(var d=new Array(a),f=s;l>f;f++){for(var p=f-s,g=Math.floor(f/n),v=f%n,m=0;a>m;m++){var c=r[m],y=this._dimValueGetterArrayRows(t[p]||d,c,p,m);i[c][g][v]=y;var _=o[c];y<_[0]&&(_[0]=y),y>_[1]&&(_[1]=y)}e&&(this._nameList[f]=e[p])}this._rawCount=this._count=l,this._extent={},zu(this)},Ub._initDataFromProvider=function(t,e){if(!(t>=e)){for(var n,i=this._chunkSize,r=this._rawData,a=this._storage,o=this.dimensions,s=o.length,l=this._dimensionInfos,u=this._nameList,h=this._idList,c=this._rawExtent,d=this._nameRepeatCount={},f=this._chunkCount,p=0;s>p;p++){var g=o[p];c[g]||(c[g]=Wu());var v=l[g];0===v.otherDims.itemName&&(n=this._nameDimIdx=p),0===v.otherDims.itemId&&(this._idDimIdx=p),a[g]||(a[g]=[]),Lu(a,v,i,f,e),this._chunkCount=a[g].length}for(var m=new Array(s),y=t;e>y;y++){m=r.getItem(y,m);for(var _=Math.floor(y/i),x=y%i,w=0;s>w;w++){var g=o[w],b=a[g][_],M=this._dimValueGetter(m,g,y,w);b[x]=M;var S=c[g];M<S[0]&&(S[0]=M),M>S[1]&&(S[1]=M)}if(!r.pure){var I=u[y];if(m&&null==I)if(null!=m.name)u[y]=I=m.name;else if(null!=n){var T=o[n],C=a[T][_];if(C){I=C[x];var A=l[T].ordinalMeta;A&&A.categories.length&&(I=A.categories[I])}}var D=null==m?null:m.id;null==D&&null!=I&&(d[I]=d[I]||0,D=I,d[I]>0&&(D+="__ec__"+d[I]),d[I]++),null!=D&&(h[y]=D)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent={},zu(this)}},Ub.count=function(){return this._count},Ub.getIndices=function(){var t,e=this._indices;
 
- if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;i>r;r++)t[r]=e[r]}else t=new n(e.buffer,0,i)}else for(var n=ku(this),t=new n(this.count()),r=0;r<t.length;r++)t[r]=r;return t},Ub.get=function(t,e){if(!(e>=0&&e<this._count))return 0/0;var n=this._storage;if(!n[t])return 0/0;e=this.getRawIndex(e);var i=Math.floor(e/this._chunkSize),r=e%this._chunkSize,a=n[t][i],o=a[r];return o},Ub.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return 0/0;var n=this._storage[t];if(!n)return 0/0;var i=Math.floor(e/this._chunkSize),r=e%this._chunkSize,a=n[i];return a[r]},Ub._getFast=function(t,e){var n=Math.floor(e/this._chunkSize),i=e%this._chunkSize,r=this._storage[t][n];return r[i]},Ub.getValues=function(t,e){var n=[];x(t)||(e=t,t=this.dimensions);for(var i=0,r=t.length;r>i;i++)n.push(this.get(t[i],e));return n},Ub.hasValue=function(t){for(var e=this._dimensionsSummary.dataDimsOnCoord,n=0,i=e.length;i>n;n++)if(isNaN(this.get(e[n],t)))return!1;return!0},Ub.getDataExtent=function(t){t=this.getDimension(t);var e=this._storage[t],n=Wu();if(!e)return n;var i,r=this.count(),a=!this._indices;if(a)return this._rawExtent[t].slice();if(i=this._extent[t])return i.slice();i=n;for(var o=i[0],s=i[1],l=0;r>l;l++){var u=this._getFast(t,this.getRawIndex(l));o>u&&(o=u),u>s&&(s=u)}return i=[o,s],this._extent[t]=i,i},Ub.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},Ub.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},Ub.getCalculationInfo=function(t){return this._calculationInfo[t]},Ub.setCalculationInfo=function(t,e){Eb(t)?o(this._calculationInfo,t):this._calculationInfo[t]=e},Ub.getSum=function(t){var e=this._storage[t],n=0;if(e)for(var i=0,r=this.count();r>i;i++){var a=this.get(t,i);isNaN(a)||(n+=a)}return n},Ub.getMedian=function(t){var e=[];this.each(t,function(t){isNaN(t)||e.push(t)});var n=[].concat(e).sort(function(t,e){return t-e}),i=this.count();return 0===i?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},Ub.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],i=n[e];return null==i||isNaN(i)?Nb:i},Ub.indexOfName=function(t){for(var e=0,n=this.count();n>e;e++)if(this.getName(e)===t)return e;return-1},Ub.indexOfRawIndex=function(t){if(t>=this._rawCount||0>t)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,r=this._count-1;r>=i;){var a=(i+r)/2|0;if(e[a]<t)i=a+1;else{if(!(e[a]>t))return a;r=a-1}}return-1},Ub.indicesOfNearest=function(t,e,n){var i=this._storage,r=i[t],a=[];if(!r)return a;null==n&&(n=1/0);for(var o=Number.MAX_VALUE,s=-1,l=0,u=this.count();u>l;l++){var h=e-this.get(t,l),c=Math.abs(h);n>=h&&o>=c&&((o>c||h>=0&&0>s)&&(o=c,s=h,a.length=0),a.push(l))}return a},Ub.getRawIndex=Eu,Ub.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],n=0;n<this.dimensions.length;n++){var i=this.dimensions[n];e.push(this.get(i,t))}return e},Ub.getName=function(t){var e=this.getRawIndex(t);return this._nameList[e]||Bu(this,this._nameDimIdx,e)||""},Ub.getId=function(t){return Nu(this,this.getRawIndex(t))},Ub.each=function(t,e,n,i){if(this._count){"function"==typeof t&&(i=n,n=e,e=t,t=[]),n=n||i||this,t=p(Fu(t),this.getDimension,this);for(var r=t.length,a=0;a<this.count();a++)switch(r){case 0:e.call(n,a);break;case 1:e.call(n,this.get(t[0],a),a);break;case 2:e.call(n,this.get(t[0],a),this.get(t[1],a),a);break;default:for(var o=0,s=[];r>o;o++)s[o]=this.get(t[o],a);s[o]=a,e.apply(n,s)}}},Ub.filterSelf=function(t,e,n,i){if(this._count){"function"==typeof t&&(i=n,n=e,e=t,t=[]),n=n||i||this,t=p(Fu(t),this.getDimension,this);for(var r=this.count(),a=ku(this),o=new a(r),s=[],l=t.length,u=0,h=t[0],c=0;r>c;c++){var d,f=this.getRawIndex(c);if(0===l)d=e.call(n,c);else if(1===l){var g=this._getFast(h,f);d=e.call(n,g,c)}else{for(var v=0;l>v;v++)s[v]=this._getFast(h,f);s[v]=c,d=e.apply(n,s)}d&&(o[u++]=f)}return r>u&&(this._indices=o),this._count=u,this._extent={},this.getRawIndex=this._indices?Ru:Eu,this}},Ub.selectRange=function(t){if(this._count){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);var i=e.length;if(i){var r=this.count(),a=ku(this),o=new a(r),s=0,l=e[0],u=t[l][0],h=t[l][1],c=!1;if(!this._indices){var d=0;if(1===i){for(var f=this._storage[e[0]],p=0;p<this._chunkCount;p++)for(var g=f[p],v=Math.min(this._count-p*this._chunkSize,this._chunkSize),m=0;v>m;m++){var y=g[m];(y>=u&&h>=y||isNaN(y))&&(o[s++]=d),d++}c=!0}else if(2===i){for(var f=this._storage[l],_=this._storage[e[1]],x=t[e[1]][0],w=t[e[1]][1],p=0;p<this._chunkCount;p++)for(var g=f[p],b=_[p],v=Math.min(this._count-p*this._chunkSize,this._chunkSize),m=0;v>m;m++){var y=g[m],M=b[m];(y>=u&&h>=y||isNaN(y))&&(M>=x&&w>=M||isNaN(M))&&(o[s++]=d),d++}c=!0}}if(!c)if(1===i)for(var m=0;r>m;m++){var S=this.getRawIndex(m),y=this._getFast(l,S);(y>=u&&h>=y||isNaN(y))&&(o[s++]=S)}else for(var m=0;r>m;m++){for(var I=!0,S=this.getRawIndex(m),p=0;i>p;p++){var T=e[p],y=this._getFast(n,S);(y<t[T][0]||y>t[T][1])&&(I=!1)}I&&(o[s++]=this.getRawIndex(m))}return r>s&&(this._indices=o),this._count=s,this._extent={},this.getRawIndex=this._indices?Ru:Eu,this}}},Ub.mapArray=function(t,e,n,i){"function"==typeof t&&(i=n,n=e,e=t,t=[]),n=n||i||this;var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},n),r},Ub.map=function(t,e,n,i){n=n||i||this,t=p(Fu(t),this.getDimension,this);var r=Vu(this,t);r._indices=this._indices,r.getRawIndex=r._indices?Ru:Eu;for(var a=r._storage,o=[],s=this._chunkSize,l=t.length,u=this.count(),h=[],c=r._rawExtent,d=0;u>d;d++){for(var f=0;l>f;f++)h[f]=this.get(t[f],d);h[l]=d;var g=e&&e.apply(n,h);if(null!=g){"object"!=typeof g&&(o[0]=g,g=o);for(var v=this.getRawIndex(d),m=Math.floor(v/s),y=v%s,_=0;_<g.length;_++){var x=t[_],w=g[_],b=c[x],M=a[x];M&&(M[m][y]=w),w<b[0]&&(b[0]=w),w>b[1]&&(b[1]=w)}}}return r},Ub.downSample=function(t,e,n,i){for(var r=Vu(this,[t]),a=r._storage,o=[],s=Math.floor(1/e),l=a[t],u=this.count(),h=this._chunkSize,c=r._rawExtent[t],d=new(ku(this))(u),f=0,p=0;u>p;p+=s){s>u-p&&(s=u-p,o.length=s);for(var g=0;s>g;g++){var v=this.getRawIndex(p+g),m=Math.floor(v/h),y=v%h;o[g]=l[m][y]}var _=n(o),x=this.getRawIndex(Math.min(p+i(o,_)||0,u-1)),w=Math.floor(x/h),b=x%h;l[w][b]=_,_<c[0]&&(c[0]=_),_>c[1]&&(c[1]=_),d[f++]=x}return r._count=f,r._indices=d,r.getRawIndex=Ru,r},Ub.getItemModel=function(t){var e=this.hostModel;return new Ja(this.getRawDataItem(t),e,e&&e.ecModel)},Ub.diff=function(t){var e=this;return new Su(t?t.getIndices():[],this.getIndices(),function(e){return Nu(t,e)},function(t){return Nu(e,t)})},Ub.getVisual=function(t){var e=this._visual;return e&&e[t]},Ub.setVisual=function(t,e){if(Eb(t))for(var n in t)t.hasOwnProperty(n)&&this.setVisual(n,t[n]);else this._visual=this._visual||{},this._visual[t]=e},Ub.setLayout=function(t,e){if(Eb(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},Ub.getLayout=function(t){return this._layout[t]},Ub.getItemLayout=function(t){return this._itemLayouts[t]},Ub.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?o(this._itemLayouts[t]||{},e):e},Ub.clearItemLayouts=function(){this._itemLayouts.length=0},Ub.getItemVisual=function(t,e,n){var i=this._itemVisuals[t],r=i&&i[e];return null!=r||n?r:this.getVisual(e)},Ub.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{},r=this.hasItemVisual;if(this._itemVisuals[t]=i,Eb(e))for(var a in e)e.hasOwnProperty(a)&&(i[a]=e[a],r[a]=!0);else i[e]=n,r[e]=!0},Ub.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var qb=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};Ub.setItemGraphicEl=function(t,e){var n=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=n&&n.seriesIndex,"group"===e.type&&e.traverse(qb,e)),this._graphicEls[t]=e},Ub.getItemGraphicEl=function(t){return this._graphicEls[t]},Ub.eachItemGraphicEl=function(t,e){f(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},Ub.cloneShallow=function(t){if(!t){var e=p(this.dimensions,this.getDimensionInfo,this);t=new Yb(e,this.hostModel)}if(t._storage=this._storage,Ou(t,this),this._indices){var n=this._indices.constructor;t._indices=new n(this._indices)}else t._indices=null;return t.getRawIndex=t._indices?Ru:Eu,t},Ub.wrapMethod=function(t,e){var n=this[t];"function"==typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(P(arguments)))})},Ub.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],Ub.CHANGABLE_METHODS=["filterSelf","selectRange"];var jb=function(t,e){return e=e||{},Gu(e.coordDimensions||[],t,{dimsDef:e.dimensionsDefine||t.dimensionsDefine,encodeDef:e.encodeDefine||t.encodeDefine,dimCount:e.dimensionsCount,generateCoord:e.generateCoord,generateCoordCount:e.generateCoordCount})};Qu.prototype.parse=function(t){return t},Qu.prototype.getSetting=function(t){return this._setting[t]},Qu.prototype.contain=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},Qu.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},Qu.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},Qu.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},Qu.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},Qu.prototype.getExtent=function(){return this._extent.slice()},Qu.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},Qu.prototype.isBlank=function(){return this._isBlank},Qu.prototype.setBlank=function(t){this._isBlank=t},Qu.prototype.getLabel=null,ir(Qu),sr(Qu,{registerWhenExtend:!0}),Ju.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&p(n,eh);return new Ju({categories:i,needCollect:!i,deduplication:e.dedplication!==!1})};var $b=Ju.prototype;$b.getOrdinal=function(t){return th(this).get(t)},$b.parseAndCollect=function(t){var e,n=this._needCollect;if("string"!=typeof t&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=th(this);return e=i.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=0/0),e};var Kb=Qu.prototype,Qb=Qu.extend({type:"ordinal",init:function(t,e){(!t||x(t))&&(t=new Ju({categories:t})),this._ordinalMeta=t,this._extent=e||[0,t.categories.length-1]},parse:function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},contain:function(t){return t=this.parse(t),Kb.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return Kb.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(Kb.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push(n),n++;return t},getLabel:function(t){return this.isBlank()?void 0:this._ordinalMeta.categories[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:V,niceExtent:V});Qb.create=function(){return new Qb};var Jb=lo,tM=lo,eM=Qu.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),eM.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=ih(t)},getTicks:function(){return oh(this._interval,this._extent,this._niceExtent,this._intervalPrecision)},getLabel:function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=co(t)||0:"auto"===n&&(n=this._intervalPrecision),t=tM(t,n,!0),So(t)},niceTicks:function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){0>r&&(r=-r,i.reverse());var a=nh(i,t,e,n);this._intervalPrecision=a.intervalPrecision,this._interval=a.interval,this._niceExtent=a.niceTickExtent}},niceExtent:function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=e[0];t.fixMax?e[0]-=n/2:(e[1]+=n/2,e[0]-=n/2)}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=tM(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=tM(Math.ceil(e[1]/r)*r))}});eM.create=function(){return new eM};var nM="__ec_stack_",iM=.5,rM="undefined"!=typeof Float32Array?Float32Array:Array,aM={seriesType:"bar",plan:dw(),reset:function(t){function e(t,e){for(var n,c=t.count,d=new rM(2*c),f=new rM(c),p=[],g=[],v=0,m=0;null!=(n=t.next());)g[u]=e.get(o,n),g[1-u]=e.get(s,n),p=i.dataToPoint(g,null,p),d[v++]=p[0],d[v++]=p[1],f[m++]=n;e.setLayout({largePoints:d,largeDataIndices:f,barWidth:h,valueAxisStart:mh(r,a,!1),valueAxisHorizontal:l})}if(gh(t)&&vh(t)){var n=t.getData(),i=t.coordinateSystem,r=i.getBaseAxis(),a=i.getOtherAxis(r),o=n.mapDimension(a.dim),s=n.mapDimension(r.dim),l=a.isHorizontal(),u=l?0:1,h=fh(ch([t]),r,t).width;return h>iM||(h=iM),{progress:e}}}},oM=eM.prototype,sM=Math.ceil,lM=Math.floor,uM=1e3,hM=60*uM,cM=60*hM,dM=24*cM,fM=function(t,e,n,i){for(;i>n;){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n},pM=eM.extend({type:"time",getLabel:function(t){var e=this._stepLvl,n=new Date(t);return Po(e[0],n,this.getSetting("useUTC"))},niceExtent:function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=dM,e[1]+=dM),e[1]===-1/0&&1/0===e[0]){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-dM}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=lo(lM(e[0]/i)*i)),t.fixMax||(e[1]=lo(sM(e[1]/i)*i))},niceTicks:function(t,e,n){t=t||10;var i=this._extent,r=i[1]-i[0],a=r/t;null!=e&&e>a&&(a=e),null!=n&&a>n&&(a=n);var o=gM.length,s=fM(gM,a,0,o),l=gM[Math.min(s,o-1)],u=l[1];if("year"===l[0]){var h=r/u,c=xo(h/t,!0);u*=c}var d=this.getSetting("useUTC")?0:60*new Date(+i[0]||+i[1]).getTimezoneOffset()*1e3,f=[Math.round(sM((i[0]-d)/u)*u+d),Math.round(lM((i[1]-d)/u)*u+d)];ah(f,i),this._stepLvl=l,this._interval=u,this._niceExtent=f},parse:function(t){return+mo(t)}});f(["contain","normalize"],function(t){pM.prototype[t]=function(e){return oM[t].call(this,this.parse(e))}});var gM=[["hh:mm:ss",uM],["hh:mm:ss",5*uM],["hh:mm:ss",10*uM],["hh:mm:ss",15*uM],["hh:mm:ss",30*uM],["hh:mm\nMM-dd",hM],["hh:mm\nMM-dd",5*hM],["hh:mm\nMM-dd",10*hM],["hh:mm\nMM-dd",15*hM],["hh:mm\nMM-dd",30*hM],["hh:mm\nMM-dd",cM],["hh:mm\nMM-dd",2*cM],["hh:mm\nMM-dd",6*cM],["hh:mm\nMM-dd",12*cM],["MM-dd\nyyyy",dM],["MM-dd\nyyyy",2*dM],["MM-dd\nyyyy",3*dM],["MM-dd\nyyyy",4*dM],["MM-dd\nyyyy",5*dM],["MM-dd\nyyyy",6*dM],["week",7*dM],["MM-dd\nyyyy",10*dM],["week",14*dM],["week",21*dM],["month",31*dM],["week",42*dM],["month",62*dM],["week",70*dM],["quarter",95*dM],["month",31*dM*4],["month",31*dM*5],["half-year",380*dM/2],["month",31*dM*8],["month",31*dM*10],["year",380*dM]];pM.create=function(t){return new pM({useUTC:t.ecModel.get("useUTC")})};var vM=Qu.prototype,mM=eM.prototype,yM=co,_M=lo,xM=Math.floor,wM=Math.ceil,bM=Math.pow,MM=Math.log,SM=Qu.extend({type:"log",base:10,$constructor:function(){Qu.apply(this,arguments),this._originalScale=new eM},getTicks:function(){var t=this._originalScale,e=this._extent,n=t.getExtent();return p(mM.getTicks.call(this),function(i){var r=lo(bM(this.base,i));return r=i===e[0]&&t.__fixMin?yh(r,n[0]):r,r=i===e[1]&&t.__fixMax?yh(r,n[1]):r},this)},getLabel:mM.getLabel,scale:function(t){return t=vM.scale.call(this,t),bM(this.base,t)},setExtent:function(t,e){var n=this.base;t=MM(t)/MM(n),e=MM(e)/MM(n),mM.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,e=vM.getExtent.call(this);e[0]=bM(t,e[0]),e[1]=bM(t,e[1]);var n=this._originalScale,i=n.getExtent();return n.__fixMin&&(e[0]=yh(e[0],i[0])),n.__fixMax&&(e[1]=yh(e[1],i[1])),e},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=MM(t[0])/MM(e),t[1]=MM(t[1])/MM(e),vM.unionExtent.call(this,t)},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},niceTicks:function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(1/0===n||0>=n)){var i=yo(n),r=t/n*i;for(.5>=r&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var a=[lo(wM(e[0]/i)*i),lo(xM(e[1]/i)*i)];this._interval=i,this._niceExtent=a}},niceExtent:function(t){mM.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});f(["contain","normalize"],function(t){SM.prototype[t]=function(e){return e=MM(e)/MM(this.base),vM[t].call(this,e)}}),SM.create=function(){return new SM};var IM={getMin:function(t){var e=this.option,n=t||null==e.rangeStart?e.min:e.rangeStart;return this.axis&&null!=n&&"dataMin"!==n&&"function"!=typeof n&&!C(n)&&(n=this.axis.scale.parse(n)),n},getMax:function(t){var e=this.option,n=t||null==e.rangeEnd?e.max:e.rangeEnd;return this.axis&&null!=n&&"dataMax"!==n&&"function"!=typeof n&&!C(n)&&(n=this.axis.scale.parse(n)),n},getNeedCrossZero:function(){var t=this.option;return null!=t.rangeStart||null!=t.rangeEnd?!1:!t.scale},getCoordSysModel:V,setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}},TM=ea({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,a=e.height/2;t.moveTo(n,i-a),t.lineTo(n+r,i+a),t.lineTo(n-r,i+a),t.closePath()}}),CM=ea({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,a=e.height/2;t.moveTo(n,i-a),t.lineTo(n+r,i),t.lineTo(n,i+a),t.lineTo(n-r,i),t.closePath()}}),AM=ea({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,a=Math.max(r,e.height),o=r/2,s=o*o/(a-o),l=i-a+o+s,u=Math.asin(s/o),h=Math.cos(u)*o,c=Math.sin(u),d=Math.cos(u),f=.6*o,p=.7*o;t.moveTo(n-h,l+s),t.arc(n,l,o,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+h-c*f,l+s+d*f,n,i-p,n,i),t.bezierCurveTo(n,i-p,n-h+c*f,l+s+d*f,n-h,l+s),t.closePath()}}),DM=ea({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,a=e.y,o=i/3*2;t.moveTo(r,a),t.lineTo(r+o,a+n),t.lineTo(r,a+n/4*3),t.lineTo(r-o,a+n),t.lineTo(r,a),t.closePath()}}),kM={line:C_,rect:I_,roundRect:I_,square:I_,circle:p_,diamond:CM,pin:AM,arrow:DM,triangle:TM},PM={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var a=Math.min(n,i);r.x=t,r.y=e,r.width=a,r.height=a},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},OM={};f(kM,function(t,e){OM[e]=new t});var LM=ea({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=Yn(t,e,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.textPosition&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=OM[i];r||(i="rect",r=OM[i]),PM[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}}),zM={isDimensionStacked:Uu,enableDataStack:Yu,getStackedDimension:qu},BM=(Object.freeze||Object)({createList:Oh,getLayoutRect:Eo,dataStack:zM,createScale:Lh,mixinAxisModelCommonMethods:zh,completeDimensions:Gu,createDimensions:jb,createSymbol:Ph}),EM=1e-8;Rh.prototype={constructor:Rh,properties:null,getBoundingRect:function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,n=[e,e],i=[-e,-e],r=[],a=[],o=this.geometries,s=0;s<o.length;s++)if("polygon"===o[s].type){var l=o[s].exterior;br(l,r,a),oe(n,n,r),se(i,i,a)}return 0===s&&(n[0]=n[1]=i[0]=i[1]=0),this._rect=new bn(n[0],n[1],i[0]-n[0],i[1]-n[1])},contain:function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,r=n.length;r>i;i++)if("polygon"===n[i].type){var a=n[i].exterior,o=n[i].interiors;if(Eh(a,t[0],t[1])){for(var s=0;s<(o?o.length:0);s++)if(Eh(o[s]))continue t;return!0}}return!1},transformTo:function(t,e,n,i){var r=this.getBoundingRect(),a=r.width/r.height;n?i||(i=n/a):n=a*i;for(var o=new bn(t,e,n,i),s=r.calculateTransform(o),l=this.geometries,u=0;u<l.length;u++)if("polygon"===l[u].type){for(var h=l[u].exterior,c=l[u].interiors,d=0;d<h.length;d++)ae(h[d],h[d],s);for(var f=0;f<(c?c.length:0);f++)for(var d=0;d<c[f].length;d++)ae(c[f][d],c[f][d],s)}r=this._rect,r.copy(o),this.center=[r.x+r.width/2,r.y+r.height/2]},cloneShallow:function(t){null==t&&(t=this.name);var e=new Rh(t,this.geometries,this.center);return e._rect=this._rect,e.transformTo=null,e}};var RM=function(t){return Nh(t),p(v(t.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var e=t.properties,n=t.geometry,i=n.coordinates,r=[];"Polygon"===n.type&&r.push({type:"polygon",exterior:i[0],interiors:i.slice(1)}),"MultiPolygon"===n.type&&f(i,function(t){t[0]&&r.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})});var a=new Rh(e.name,r,e.cp);return a.properties=e,a})},NM=ji(),FM=[0,1],VM=function(t,e,n){this.dim=t,this.scale=e,this._extent=n||[0,0],this.inverse=!1,this.onBand=!1};VM.prototype={constructor:VM,contain:function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&i>=t},containData:function(t){return this.contain(this.dataToCoord(t))},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return fo(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var n=this._extent;n[0]=t,n[1]=e},dataToCoord:function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&(n=n.slice(),tc(n,i.count())),oo(t,FM,n,e)},coordToData:function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),tc(n,i.count()));var r=oo(t,n,FM,e);return this.scale.scale(r)},pointToData:function(){},getTicksCoords:function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=Hh(this,e),i=n.ticks,r=p(i,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this),a=e.get("alignWithLabel");return ec(this,r,a,t.clamp),r},getViewLabels:function(){return Vh(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return $h(this)}};var HM=RM,WM={};f(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(t){WM[t]=tv[t]});var GM={};f(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],function(t){GM[t]=$_[t]});var ZM=function(t){this._axes={},this._dimList=[],this.name=t||""};ZM.prototype={constructor:ZM,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return p(this._dimList,nc,this)},getAxesByScale:function(t){return t=t.toLowerCase(),v(this.getAxes(),function(e){return e.scale.type===t})},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var n=this._dimList,i=t instanceof Array?[]:{},r=0;r<n.length;r++){var a=n[r],o=this._axes[a];i[a]=o[e](t[a])}return i}},ic.prototype={constructor:ic,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},containData:function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},dataToPoint:function(t,e,n){var i=this.getAxis("x"),r=this.getAxis("y");return n=n||[],n[0]=i.toGlobalCoord(i.dataToCoord(t[0])),n[1]=r.toGlobalCoord(r.dataToCoord(t[1])),n},clampData:function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),a=i.getExtent(),o=n.parse(t[0]),s=i.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(r[0],r[1]),o),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),e},pointToData:function(t,e){var n=this.getAxis("x"),i=this.getAxis("y");return e=e||[],e[0]=n.coordToData(n.toLocalCoord(t[0])),e[1]=i.coordToData(i.toLocalCoord(t[1])),e},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")},getArea:function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(e[0],e[1]),r=Math.max(t[0],t[1])-n,a=Math.max(e[0],e[1])-i,o=new bn(n,i,r,a);return o}},h(ic,ZM);var XM=function(t,e,n,i,r){VM.call(this,t,e,n),this.type=i||"value",this.position=r||"bottom"};XM.prototype={constructor:XM,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},getGlobalExtent:function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},h(XM,VM);var YM={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},UM={};UM.categoryAxis=r({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},YM),UM.valueAxis=r({boundaryGap:[0,0],splitNumber:5},YM),UM.timeAxis=s({scale:!0,min:"dataMin",max:"dataMax"},UM.valueAxis),UM.logAxis=s({scale:!0,logBase:10},UM.valueAxis);var qM=["value","category","time","log"],jM=function(t,e,n,i){f(qM,function(o){e.extend({type:t+"Axis."+o,mergeDefaultAndTheme:function(e,i){var a=this.layoutMode,s=a?No(e):{},l=i.getTheme();r(e,l.get(o+"Axis")),r(e,this.getDefaultOption()),e.type=n(t,e),a&&Ro(e,s,a)},optionUpdated:function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=Ju.createByAxisModel(this))},getCategories:function(t){var e=this.option;return"category"===e.type?t?e.data:this.__ordinalMeta.categories:void 0},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:a([{},UM[o+"Axis"],i],!0)})}),bx.registerSubTypeDefaulter(t+"Axis",_(n,t))},$M=bx.extend({type:"cartesian2dAxis",axis:null,init:function(){$M.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){$M.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){$M.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});r($M.prototype,IM);var KM={offset:0};jM("x",$M,rc,KM),jM("y",$M,rc,KM),bx.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});var QM=oc.prototype;QM.type="grid",QM.axisPointerEnabled=!0,QM.getRect=function(){return this._rect},QM.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model),f(n.x,function(t){wh(t.scale,t.model)}),f(n.y,function(t){wh(t.scale,t.model)});var i={};f(n.x,function(t){sc(n,"y",t,i)}),f(n.y,function(t){sc(n,"x",t,i)}),this.resize(this.model,e)},QM.resize=function(t,e,n){function i(){f(a,function(t){var e=t.isHorizontal(),n=e?[0,r.width]:[0,r.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),uc(t,e?r.x:r.y)})}var r=Eo(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=r;var a=this._axesList;i(),!n&&t.get("containLabel")&&(f(a,function(t){if(!t.model.get("axisLabel.inside")){var e=Th(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get("axisLabel.margin");r[n]-=e[n]+i,"top"===t.position?r.y+=e.height+i:"left"===t.position&&(r.x+=e.width+i)}}}),i())},QM.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n){if(null==e)for(var i in n)if(n.hasOwnProperty(i))return n[i];return n[e]}},QM.getAxes=function(){return this._axesList.slice()},QM.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}M(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===t||r[i].getAxis("y").index===e)return r[i]},QM.getCartesians=function(){return this._coordsList.slice()},QM.convertToPixel=function(t,e,n){var i=this._findConvertTarget(t,e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},QM.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(t,e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},QM._findConvertTarget=function(t,e){var n,i,r=e.seriesModel,a=e.xAxisModel||r&&r.getReferringComponents("xAxis")[0],o=e.yAxisModel||r&&r.getReferringComponents("yAxis")[0],s=e.gridModel,l=this._coordsList;if(r)n=r.coordinateSystem,u(l,n)<0&&(n=null);else if(a&&o)n=this.getCartesian(a.componentIndex,o.componentIndex);else if(a)i=this.getAxis("x",a.componentIndex);else if(o)i=this.getAxis("y",o.componentIndex);else if(s){var h=s.coordinateSystem;h===this&&(n=this._coordsList[0])}return{cartesian:n,axis:i}},QM.containPoint=function(t){var e=this._coordsList[0];return e?e.containPoint(t):void 0},QM._initCartesian=function(t,e){function n(n){return function(o,s){if(ac(o,t,e)){var l=o.get("position");"x"===n?"top"!==l&&"bottom"!==l&&(l=i.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=i.left?"right":"left"),i[l]=!0;var u=new XM(n,bh(o),[0,0],o.get("type"),l),h="category"===u.type;u.onBand=h&&o.get("boundaryGap"),u.inverse=o.get("inverse"),o.axis=u,u.model=o,u.grid=this,u.index=s,this._axesList.push(u),r[n][s]=u,a[n]++}}}var i={left:!1,right:!1,top:!1,bottom:!1},r={x:{},y:{}},a={x:0,y:0};return e.eachComponent("xAxis",n("x"),this),e.eachComponent("yAxis",n("y"),this),a.x&&a.y?(this._axesMap=r,void f(r.x,function(e,n){f(r.y,function(i,r){var a="x"+n+"y"+r,o=new ic(a);o.grid=this,o.model=t,this._coordsMap[a]=o,this._coordsList.push(o),o.addAxis(e),o.addAxis(i)},this)},this)):(this._axesMap={},void(this._axesList=[]))},QM._updateScale=function(t,e){function n(t,e){f(t.mapDimension(e.dim,!0),function(n){e.scale.unionExtentFromData(t,qu(t,n))
 
- })}f(this._axesList,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeries(function(i){if(cc(i)){var r=hc(i,t),a=r[0],o=r[1];if(!ac(a,e,t)||!ac(o,e,t))return;var s=this.getCartesian(a.componentIndex,o.componentIndex),l=i.getData(),u=s.getAxis("x"),h=s.getAxis("y");"list"===l.type&&(n(l,u,i),n(l,h,i))}},this)},QM.getTooltipAxes=function(t){var e=[],n=[];return f(this.getCartesians(),function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),a=i.getOtherAxis(r);u(e,r)<0&&e.push(r),u(n,a)<0&&n.push(a)}),{baseAxes:e,otherAxes:n}};var JM=["xAxis","yAxis"];oc.create=function(t,e){var n=[];return t.eachComponent("grid",function(i,r){var a=new oc(i,t,e);a.name="grid_"+r,a.resize(i,e,!0),i.coordinateSystem=a,n.push(a)}),t.eachSeries(function(e){if(cc(e)){var n=hc(e,t),i=n[0],r=n[1],a=i.getCoordSysModel(),o=a.coordinateSystem;e.coordinateSystem=o.getCartesian(i.componentIndex,r.componentIndex)}}),n},oc.dimensions=oc.prototype.dimensions=ic.prototype.dimensions,cs.register("cartesian2d",oc);var tS=uw.extend({type:"series.__base_bar__",getInitialData:function(){return ju(this.getSource(),this)},getMarkerPosition:function(t){var e=this.coordinateSystem;if(e){var n=e.dataToPoint(e.clampData(t)),i=this.getData(),r=i.getLayout("offset"),a=i.getLayout("size"),o=e.getBaseAxis().isHorizontal()?0:1;return n[o]+=r+a/2,n}return[0/0,0/0]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});tS.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return this.get("large")?this.get("progressive"):!1},getProgressiveThreshold:function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},defaultOption:{clip:!0,roundCap:!1}});var eS=oy([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),nS={getBarItemStyle:function(t){var e=eS(this,t);if(this.getBorderLineDash){var n=this.getBorderLineDash();n&&(e.lineDash=n)}return e}},iS=ea({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),a=Math.max(e.r,0),o=.5*(a-r),s=r+o,l=e.startAngle,u=e.endAngle,h=e.clockwise,c=Math.cos(l),d=Math.sin(l),f=Math.cos(u),p=Math.sin(u),g=h?u-l<2*Math.PI:l-u<2*Math.PI;g&&(t.moveTo(c*r+n,d*r+i),t.arc(c*s+n,d*s+i,o,-Math.PI+l,l,!h)),t.arc(n,i,a,l,u,!h),t.moveTo(f*a+n,p*a+i),t.arc(f*s+n,p*s+i,o,u-2*Math.PI,u-Math.PI,!h),0!==r&&(t.arc(n,i,r,u,l,h),t.moveTo(c*r+n,p*r+i)),t.closePath()}}),rS=["itemStyle","barBorderWidth"],aS=[0,0];o(Ja.prototype,nS),_u({type:"bar",render:function(t,e,n){this._updateDrawMode(t);var i=t.get("coordinateSystem");return("cartesian2d"===i||"polar"===i)&&(this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n)),this.group},incrementalPrepareRender:function(t){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e){this._incrementalRenderLarge(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t){var e,n=this.group,i=t.getData(),r=this._data,a=t.coordinateSystem,o=a.getBaseAxis();"cartesian2d"===a.type?e=o.isHorizontal():"polar"===a.type&&(e="angle"===o.dim);var s=t.isAnimationEnabled()?t:null,l=t.get("clip",!0),u=yc(a,i);n.removeClipPath();var h=t.get("roundCap",!0);i.diff(r).add(function(r){if(i.hasValue(r)){var o=i.getItemModel(r),c=hS[a.type](i,r,o);if(l){var d=lS[a.type](u,c);if(d)return void n.remove(f)}var f=uS[a.type](r,c,e,s,!1,h);i.setItemGraphicEl(r,f),n.add(f),wc(f,i,r,o,c,t,e,"polar"===a.type)}}).update(function(o,c){var d=r.getItemGraphicEl(c);if(!i.hasValue(o))return void n.remove(d);var f=i.getItemModel(o),p=hS[a.type](i,o,f);if(l){var g=lS[a.type](u,p);if(g)return void n.remove(d)}d?Va(d,{shape:p},s,o):d=uS[a.type](o,p,e,s,!0,h),i.setItemGraphicEl(o,d),n.add(d),wc(d,i,o,f,p,t,e,"polar"===a.type)}).remove(function(t){var e=r.getItemGraphicEl(t);"cartesian2d"===a.type?e&&_c(t,s,e):e&&xc(t,s,e)}).execute(),this._data=i},_renderLarge:function(t){this._clear(),Mc(t,this.group);var e=t.get("clip",!0)?mc(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},_incrementalRenderLarge:function(t,e){Mc(e,this.group,!0)},dispose:V,remove:function(t){this._clear(t)},_clear:function(t){var e=this.group,n=this._data;t&&t.get("animation")&&n&&!this._isLargeDraw?n.eachItemGraphicEl(function(e){"sector"===e.type?xc(e.dataIndex,t,e):_c(e.dataIndex,t,e)}):e.removeAll(),this._data=null}});var oS=Math.max,sS=Math.min,lS={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;0>n&&(e.x+=e.width,e.width=-e.width),0>i&&(e.y+=e.height,e.height=-e.height);var r=oS(e.x,t.x),a=sS(e.x+e.width,t.x+t.width),o=oS(e.y,t.y),s=sS(e.y+e.height,t.y+t.height);e.x=r,e.y=o,e.width=a-r,e.height=s-o;var l=e.width<0||e.height<0;return 0>n&&(e.x+=e.width,e.width=-e.width),0>i&&(e.y+=e.height,e.height=-e.height),l},polar:function(){return!1}},uS={cartesian2d:function(t,e,n,i,r){var a=new I_({shape:o({},e)});if(i){var s=a.shape,l=n?"height":"width",u={};s[l]=0,u[l]=e[l],$_[r?"updateProps":"initProps"](a,{shape:u},i,t)}return a},polar:function(t,e,n,i,r,a){var o=e.startAngle<e.endAngle,l=!n&&a?iS:m_,u=new l({shape:s({clockwise:o},e)});if(i){var h=u.shape,c=n?"r":"endAngle",d={};h[c]=n?0:e.startAngle,d[c]=e[c],$_[r?"updateProps":"initProps"](u,{shape:d},i,t)}return u}},hS={cartesian2d:function(t,e,n){var i=t.getItemLayout(e),r=bc(n,i),a=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*r/2,y:i.y+o*r/2,width:i.width-a*r,height:i.height-o*r}},polar:function(t,e){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle}}},cS=Hr.extend({type:"largeBar",shape:{points:[]},buildPath:function(t,e){for(var n=e.points,i=this.__startPoint,r=this.__baseDimIdx,a=0;a<n.length;a+=2)i[r]=n[a+r],t.moveTo(i[0],i[1]),t.lineTo(n[a],n[a+1])}}),dS=nl(function(t){var e=this,n=Sc(e,t.offsetX,t.offsetY);e.dataIndex=n>=0?n:null},30,!1),fS=Math.PI,pS=function(t,e){this.opt=e,this.axisModel=t,s(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new Jv;var n=new Jv({position:e.position.slice(),rotation:e.rotation});n.updateTransform(),this._transform=n.transform,this._dumbGroup=n};pS.prototype={constructor:pS,hasBuilder:function(t){return!!gS[t]},add:function(t){gS[t].call(this)},getGroup:function(){return this.group}};var gS={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var n=this.axisModel.axis.getExtent(),i=this._transform,r=[n[0],0],a=[n[1],0];i&&(ae(r,r,i),ae(a,a,i));var s=o({lineCap:"round"},e.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new C_({anid:"line",subPixelOptimize:!0,shape:{x1:r[0],y1:r[1],x2:a[0],y2:a[1]},style:s,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1}));var l=e.get("axisLine.symbol"),u=e.get("axisLine.symbolSize"),h=e.get("axisLine.symbolOffset")||0;if("number"==typeof h&&(h=[h,h]),null!=l){"string"==typeof l&&(l=[l,l]),("string"==typeof u||"number"==typeof u)&&(u=[u,u]);var c=u[0],d=u[1];f([{rotate:t.rotation+Math.PI/2,offset:h[0],r:0},{rotate:t.rotation-Math.PI/2,offset:h[1],r:Math.sqrt((r[0]-a[0])*(r[0]-a[0])+(r[1]-a[1])*(r[1]-a[1]))}],function(e,n){if("none"!==l[n]&&null!=l[n]){var i=Ph(l[n],-c/2,-d/2,c,d,s.stroke,!0),a=e.r+e.offset,o=[r[0]+a*Math.cos(t.rotation),r[1]-a*Math.sin(t.rotation)];i.attr({rotation:e.rotate,position:o,silent:!0,z2:11}),this.group.add(i)}},this)}}},axisTickLabel:function(){var t=this.axisModel,e=this.opt,n=Pc(this,t,e),i=Oc(this,t,e);Cc(t,i,n)},axisName:function(){var t=this.opt,e=this.axisModel,n=A(t.axisName,e.get("name"));if(n){var i,r=e.get("nameLocation"),a=t.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=this.axisModel.axis.getExtent(),h=u[0]>u[1]?-1:1,c=["start"===r?u[0]-h*l:"end"===r?u[1]+h*l:(u[0]+u[1])/2,kc(r)?t.labelOffset+a*l:0],d=e.get("nameRotate");null!=d&&(d=d*fS/180);var f;kc(r)?i=mS(t.rotation,null!=d?d:t.rotation,a):(i=Tc(t,r,d||0,u),f=t.axisNameAvailableWidth,null!=f&&(f=Math.abs(f/Math.sin(i.rotation)),!isFinite(f)&&(f=null)));var p=s.getFont(),g=e.get("nameTruncate",!0)||{},v=g.ellipsis,m=A(t.nameTruncateMaxWidth,g.maxWidth,f),y=null!=v&&null!=m?fx(n,m,p,v,{minChar:2,placeholder:g.placeholder}):n,_=e.get("tooltip",!0),x=e.mainType,w={componentType:x,name:n,$vars:["name"]};w[x+"Index"]=e.componentIndex;var b=new f_({anid:"name",__fullText:n,__truncatedText:y,position:c,rotation:i.rotation,silent:yS(e),z2:1,tooltip:_&&_.show?o({content:n,formatter:function(){return n},formatterParams:w},_):null});ka(b.style,s,{text:y,textFont:p,textFill:s.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:s.get("align")||i.textAlign,textVerticalAlign:s.get("verticalAlign")||i.textVerticalAlign}),e.get("triggerEvent")&&(b.eventData=vS(e),b.eventData.targetType="axisName",b.eventData.name=n),this._dumbGroup.add(b),b.updateTransform(),this.group.add(b),b.decomposeTransform()}}},vS=pS.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},mS=pS.innerTextLayout=function(t,e,n){var i,r,a=go(e-t);return vo(a)?(r=n>0?"top":"bottom",i="center"):vo(a-fS)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=a>0&&fS>a?n>0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:r}},yS=pS.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},_S=f,xS=_,wS=mu({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(t,e,n,i){this.axisPointerClass&&Fc(t),wS.superApply(this,"render",arguments),Zc(this,t,e,n,i,!0)},updateAxisPointer:function(t,e,n,i){Zc(this,t,e,n,i,!1)},remove:function(t,e){var n=this._axisPointer;n&&n.remove(e),wS.superApply(this,"remove",arguments)},dispose:function(t,e){Xc(this,e),wS.superApply(this,"dispose",arguments)}}),bS=[];wS.registerAxisPointerClass=function(t,e){bS[t]=e},wS.getAxisPointerClass=function(t){return t&&bS[t]};var MS=["axisLine","axisTickLabel","axisName"],SS=["splitArea","splitLine"],IS=wS.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(t,e,n,i){this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new Jv,this.group.add(this._axisGroup),t.get("show")){var a=t.getCoordSysModel(),o=Yc(a,t),s=new pS(t,o);f(MS,s.add,s),this._axisGroup.add(s.getGroup()),f(SS,function(e){t.get(e+".show")&&this["_"+e](t,a)},this),Xa(r,this._axisGroup,t),IS.superCall(this,"render",t,e,n,i)}},remove:function(){this._splitAreaColors=null},_splitLine:function(t,e){var n=t.axis;if(!n.scale.isBlank()){var i=t.getModel("splitLine"),r=i.getModel("lineStyle"),a=r.get("color");a=x(a)?a:[a];for(var o=e.coordinateSystem.getRect(),l=n.isHorizontal(),u=0,h=n.getTicksCoords({tickModel:i}),c=[],d=[],f=r.getLineStyle(),p=0;p<h.length;p++){var g=n.toGlobalCoord(h[p].coord);l?(c[0]=g,c[1]=o.y,d[0]=g,d[1]=o.y+o.height):(c[0]=o.x,c[1]=g,d[0]=o.x+o.width,d[1]=g);var v=u++%a.length,m=h[p].tickValue;this._axisGroup.add(new C_({anid:null!=m?"line_"+h[p].tickValue:null,subPixelOptimize:!0,shape:{x1:c[0],y1:c[1],x2:d[0],y2:d[1]},style:s({stroke:a[v]},f),silent:!0}))}}},_splitArea:function(t,e){var n=t.axis;if(!n.scale.isBlank()){var i=t.getModel("splitArea"),r=i.getModel("areaStyle"),a=r.get("color"),o=e.coordinateSystem.getRect(),l=n.getTicksCoords({tickModel:i,clamp:!0});if(l.length){var u=a.length,h=this._splitAreaColors,c=N(),d=0;if(h)for(var f=0;f<l.length;f++){var p=h.get(l[f].tickValue);if(null!=p){d=(p+(u-1)*f)%u;break}}var g=n.toGlobalCoord(l[0].coord),v=r.getAreaStyle();a=x(a)?a:[a];for(var f=1;f<l.length;f++){var m,y,_,w,b=n.toGlobalCoord(l[f].coord);n.isHorizontal()?(m=g,y=o.y,_=b-m,w=o.height,g=m+_):(m=o.x,y=g,_=o.width,w=b-y,g=y+w);var M=l[f-1].tickValue;null!=M&&c.set(M,d),this._axisGroup.add(new I_({anid:null!=M?"area_"+M:null,shape:{x:m,y:y,width:_,height:w},style:s({fill:a[d]},v),silent:!0})),d=(d+1)%u}this._splitAreaColors=c}}}});IS.extend({type:"xAxis"}),IS.extend({type:"yAxis"}),mu({type:"grid",render:function(t){this.group.removeAll(),t.get("show")&&this.group.add(new I_({shape:t.coordinateSystem.getRect(),style:s({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))}}),ou(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}),du(fb.VISUAL.LAYOUT,_(ph,"bar")),du(fb.VISUAL.PROGRESSIVE_LAYOUT,aM),fu({seriesType:"bar",reset:function(t){t.getData().setVisual("legendSymbol","roundRect")}}),uw.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(){return ju(this.getSource(),this)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}});var TS=Uc.prototype,CS=Uc.getSymbolSize=function(t,e){var n=t.getItemVisual(e,"symbolSize");return n instanceof Array?n.slice():[+n,+n]};TS._createSymbol=function(t,e,n,i,r){this.removeAll();var a=e.getItemVisual(n,"color"),o=Ph(t,-1,-1,2,2,a,r);o.attr({z2:100,culling:!0,scale:qc(i)}),o.drift=jc,this._symbolType=t,this.add(o)},TS.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},TS.getSymbolPath=function(){return this.childAt(0)},TS.getScale=function(){return this.childAt(0).scale},TS.highlight=function(){this.childAt(0).trigger("emphasis")},TS.downplay=function(){this.childAt(0).trigger("normal")},TS.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},TS.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},TS.updateData=function(t,e,n){this.silent=!1;var i=t.getItemVisual(e,"symbol")||"circle",r=t.hostModel,a=CS(t,e),o=i!==this._symbolType;if(o){var s=t.getItemVisual(e,"symbolKeepAspect");this._createSymbol(i,t,e,a,s)}else{var l=this.childAt(0);l.silent=!1,Va(l,{scale:qc(a)},r,e)}if(this._updateCommon(t,e,a,n),o){var l=this.childAt(0),u=n&&n.fadeIn,h={scale:l.scale.slice()};u&&(h.style={opacity:l.style.opacity}),l.scale=[0,0],u&&(l.style.opacity=0),Ha(l,h,r,e)}this._seriesModel=r};var AS=["itemStyle"],DS=["emphasis","itemStyle"],kS=["label"],PS=["emphasis","label"];TS._updateCommon=function(t,e,n,i){function r(e){return b?t.getName(e):dc(t,e)}var a=this.childAt(0),s=t.hostModel,l=t.getItemVisual(e,"color");"image"!==a.type?a.useStyle({strokeNoScale:!0}):a.setStyle({opacity:null,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var u=i&&i.itemStyle,h=i&&i.hoverItemStyle,c=i&&i.symbolRotate,d=i&&i.symbolOffset,f=i&&i.labelModel,p=i&&i.hoverLabelModel,g=i&&i.hoverAnimation,v=i&&i.cursorStyle;if(!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(e);u=m.getModel(AS).getItemStyle(["color"]),h=m.getModel(DS).getItemStyle(),c=m.getShallow("symbolRotate"),d=m.getShallow("symbolOffset"),f=m.getModel(kS),p=m.getModel(PS),g=m.getShallow("hoverAnimation"),v=m.getShallow("cursor")}else h=o({},h);var y=a.style;a.attr("rotation",(c||0)*Math.PI/180||0),d&&a.attr("position",[so(d[0],n[0]),so(d[1],n[1])]),v&&a.attr("cursor",v),a.setColor(l,i&&i.symbolInnerColor),a.setStyle(u);var _=t.getItemVisual(e,"opacity");null!=_&&(y.opacity=_);var x=t.getItemVisual(e,"liftZ"),w=a.__z2Origin;null!=x?null==w&&(a.__z2Origin=a.z2,a.z2+=x):null!=w&&(a.z2=w,a.__z2Origin=null);var b=i&&i.useNameLabel;Aa(y,h,f,p,{labelFetcher:s,labelDataIndex:e,defaultText:r,isRectText:!0,autoColor:l}),a.__symbolOriginalScale=qc(n),a.hoverStyle=h,a.highDownOnUpdate=g&&s.isAnimationEnabled()?$c:null,Sa(a)},TS.fadeOut=function(t,e){var n=this.childAt(0);this.silent=n.silent=!0,!(e&&e.keepLabel)&&(n.style.text=null),Va(n,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,t)},h(Uc,Jv);var OS=Kc.prototype;OS.updateData=function(t,e){e=Jc(e);var n=this.group,i=t.hostModel,r=this._data,a=this._symbolCtor,o=td(t);r||n.removeAll(),t.diff(r).add(function(i){var r=t.getItemLayout(i);if(Qc(t,r,i,e)){var s=new a(t,i,o);s.attr("position",r),t.setItemGraphicEl(i,s),n.add(s)}}).update(function(s,l){var u=r.getItemGraphicEl(l),h=t.getItemLayout(s);return Qc(t,h,s,e)?(u?(u.updateData(t,s,o),Va(u,{position:h},i)):(u=new a(t,s),u.attr("position",h)),n.add(u),void t.setItemGraphicEl(s,u)):void n.remove(u)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)})}).execute(),this._data=t},OS.isPersistent=function(){return!0},OS.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(e,n){var i=t.getItemLayout(n);e.attr("position",i)})},OS.incrementalPrepareUpdate=function(t){this._seriesScope=td(t),this._data=null,this.group.removeAll()},OS.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=t.useHoverLayer=!0)}n=Jc(n);for(var r=t.start;r<t.end;r++){var a=e.getItemLayout(r);if(Qc(e,a,r,n)){var o=new this._symbolCtor(e,r,this._seriesScope);o.traverse(i),o.attr("position",a),this.group.add(o),e.setItemGraphicEl(r,o)}}},OS.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)})}):e.removeAll()};var LS=function(t,e,n,i,r,a,o,s){for(var l=rd(t,e),u=[],h=[],c=[],d=[],f=[],p=[],g=[],v=ed(r,e,o),m=ed(a,t,s),y=0;y<l.length;y++){var _=l[y],x=!0;switch(_.cmd){case"=":var w=t.getItemLayout(_.idx),b=e.getItemLayout(_.idx1);(isNaN(w[0])||isNaN(w[1]))&&(w=b.slice()),u.push(w),h.push(b),c.push(n[_.idx]),d.push(i[_.idx1]),g.push(e.getRawIndex(_.idx1));break;case"+":var M=_.idx;u.push(r.dataToPoint([e.get(v.dataDimsForPoint[0],M),e.get(v.dataDimsForPoint[1],M)])),h.push(e.getItemLayout(M).slice()),c.push(id(v,r,e,M)),d.push(i[M]),g.push(e.getRawIndex(M));break;case"-":var M=_.idx,S=t.getRawIndex(M);S!==M?(u.push(t.getItemLayout(M)),h.push(a.dataToPoint([t.get(m.dataDimsForPoint[0],M),t.get(m.dataDimsForPoint[1],M)])),c.push(n[M]),d.push(id(m,a,t,M)),g.push(S)):x=!1}x&&(f.push(_),p.push(p.length))}p.sort(function(t,e){return g[t]-g[e]});for(var I=[],T=[],C=[],A=[],D=[],y=0;y<p.length;y++){var M=p[y];I[y]=u[M],T[y]=h[M],C[y]=c[M],A[y]=d[M],D[y]=f[M]}return{current:I,next:T,stackedOnCurrent:C,stackedOnNext:A,status:D}},zS=oe,BS=se,ES=Y,RS=W,NS=[],FS=[],VS=[],HS=Hr.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:v_(Hr.prototype.brush),buildPath:function(t,e){var n=e.points,i=0,r=n.length,a=ud(n,e.smoothConstraint);if(e.connectNulls){for(;r>0&&ad(n[r-1]);r--);for(;r>i&&ad(n[i]);i++);}for(;r>i;)i+=od(t,n,i,r,r,1,a.min,a.max,e.smooth,e.smoothMonotone,e.connectNulls)+1}}),WS=Hr.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:v_(Hr.prototype.brush),buildPath:function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,a=n.length,o=e.smoothMonotone,s=ud(n,e.smoothConstraint),l=ud(i,e.smoothConstraint);if(e.connectNulls){for(;a>0&&ad(n[a-1]);a--);for(;a>r&&ad(n[r]);r++);}for(;a>r;){var u=od(t,n,r,a,a,1,s.min,s.max,e.smooth,o,e.connectNulls);od(t,i,r+u-1,u,a,-1,l.min,l.max,e.stackedOnSmooth,o,e.connectNulls),r+=u+1,t.closePath()}}});Ks.extend({type:"line",init:function(){var t=new Jv,e=new Kc;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,n){var i=t.coordinateSystem,r=this.group,a=t.getData(),o=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=a.mapArray(a.getItemLayout),h="polar"===i.type,c=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,g=this._lineGroup,v=t.get("animation"),m=!l.isEmpty(),y=l.get("origin"),_=ed(i,a,y),x=dd(i,a,_),w=t.get("showSymbol"),b=w&&!h&&gd(t,a,i),M=this._data;M&&M.eachItemGraphicEl(function(t,e){t.__temp&&(r.remove(t),M.setItemGraphicEl(e,null))}),w||d.remove(),r.add(g);var S,I=!h&&t.get("step");i&&i.getArea&&(S=i.getArea(),null!=S.width?(S.x-=.1,S.y-=.1,S.width+=.2,S.height+=.2):S.r0&&(S.r0-=.5,S.r1+=.5)),f&&c.type===i.type&&I===this._step?(m&&!p?p=this._newPolygon(u,x,i,v):p&&!m&&(g.remove(p),p=this._polygon=null),g.setClipPath(md(i,!1,t)),w&&d.updateData(a,{isIgnore:b,clipShape:S}),a.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),hd(this._stackedOnPoints,x)&&hd(this._points,u)||(v?this._updateAnimation(a,x,i,n,I,y):(I&&(u=fd(u,i,I),x=fd(x,i,I)),f.setShape({points:u}),p&&p.setShape({points:u,stackedOnPoints:x})))):(w&&d.updateData(a,{isIgnore:b,clipShape:S}),I&&(u=fd(u,i,I),x=fd(x,i,I)),f=this._newPolyline(u,i,v),m&&(p=this._newPolygon(u,x,i,v)),g.setClipPath(md(i,!0,t)));var T=pd(a,i)||a.getVisual("color");f.useStyle(s(o.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"}));var C=t.get("smooth");if(C=cd(t.get("smooth")),f.setShape({smooth:C,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),p){var A=a.getCalculationInfo("stackedOnSeries"),D=0;p.useStyle(s(l.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel"})),A&&(D=cd(A.get("smooth"))),p.setShape({smooth:C,stackedOnSmooth:D,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=a,this._coordSys=i,this._stackedOnPoints=x,this._points=u,this._step=I,this._valueOrigin=y},dispose:function(){},highlight:function(t,e,n,i){var r=t.getData(),a=qi(r,i);if(!(a instanceof Array)&&null!=a&&a>=0){var o=r.getItemGraphicEl(a);if(!o){var s=r.getItemLayout(a);if(!s)return;o=new Uc(r,a),o.position=s,o.setZ(t.get("zlevel"),t.get("z")),o.ignore=isNaN(s[0])||isNaN(s[1]),o.__temp=!0,r.setItemGraphicEl(a,o),o.stopSymbolAnimation(!0),this.group.add(o)}o.highlight()}else Ks.prototype.highlight.call(this,t,e,n,i)},downplay:function(t,e,n,i){var r=t.getData(),a=qi(r,i);if(null!=a&&a>=0){var o=r.getItemGraphicEl(a);o&&(o.__temp?(r.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else Ks.prototype.downplay.call(this,t,e,n,i)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new HS({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new WS({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_updateAnimation:function(t,e,n,i,r,a){var o=this._polyline,s=this._polygon,l=t.hostModel,u=LS(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,a),h=u.current,c=u.stackedOnCurrent,d=u.next,f=u.stackedOnNext;r&&(h=fd(u.current,n,r),c=fd(u.stackedOnCurrent,n,r),d=fd(u.next,n,r),f=fd(u.stackedOnNext,n,r)),o.shape.__points=u.current,o.shape.points=h,Va(o,{shape:{points:d}},l),s&&(s.setShape({points:h,stackedOnPoints:c}),Va(s,{shape:{points:d,stackedOnPoints:f}},l));for(var p=[],g=u.status,v=0;v<g.length;v++){var m=g[v].cmd;if("="===m){var y=t.getItemGraphicEl(g[v].idx1);y&&p.push({el:y,ptIdx:v})}}o.animators&&o.animators.length&&o.animators[0].during(function(){for(var t=0;t<p.length;t++){var e=p[t].el;e.attr("position",o.shape.__points[p[t].ptIdx])}})},remove:function(){var t=this.group,e=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),e&&e.eachItemGraphicEl(function(n,i){n.__temp&&(t.remove(n),e.setItemGraphicEl(i,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});var GS=function(t,e,n){return{seriesType:t,performRawSeries:!0,reset:function(t,i){function r(e,n){if(c){var i=t.getRawValue(n),r=t.getDataParams(n);u&&e.setItemVisual(n,"symbol",o(i,r)),h&&e.setItemVisual(n,"symbolSize",s(i,r))}if(e.hasItemOption){var a=e.getItemModel(n),l=a.getShallow("symbol",!0),d=a.getShallow("symbolSize",!0),f=a.getShallow("symbolKeepAspect",!0);null!=l&&e.setItemVisual(n,"symbol",l),null!=d&&e.setItemVisual(n,"symbolSize",d),null!=f&&e.setItemVisual(n,"symbolKeepAspect",f)}}var a=t.getData(),o=t.get("symbol"),s=t.get("symbolSize"),l=t.get("symbolKeepAspect"),u=w(o),h=w(s),c=u||h,d=!u&&o?o:e,f=h?null:s;return a.setVisual({legendSymbol:n||d,symbol:d,symbolSize:f,symbolKeepAspect:l}),i.isSeriesFiltered(t)?void 0:{dataEach:a.hasItemOption||c?r:null}}}},ZS=function(t){return{seriesType:t,plan:dw(),reset:function(t){function e(t,e){for(var n=t.end-t.start,r=a&&new Float32Array(n*s),l=t.start,u=0,h=[],c=[];l<t.end;l++){var d;if(1===s){var f=e.get(o[0],l);d=!isNaN(f)&&i.dataToPoint(f,null,c)}else{var f=h[0]=e.get(o[0],l),p=h[1]=e.get(o[1],l);d=!isNaN(f)&&!isNaN(p)&&i.dataToPoint(h,null,c)}a?(r[u++]=d?d[0]:0/0,r[u++]=d?d[1]:0/0):e.setItemLayout(l,d&&d.slice()||[0/0,0/0])}a&&e.setLayout("symbolPoints",r)}var n=t.getData(),i=t.coordinateSystem,r=t.pipelineContext,a=r.large;if(i){var o=p(i.dimensions,function(t){return n.mapDimension(t)}).slice(0,2),s=o.length,l=n.getCalculationInfo("stackResultDimension");return Uu(n,o[0])&&(o[0]=l),Uu(n,o[1])&&(o[1]=l),s&&{progress:e}}}}},XS={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?0/0:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:0/0},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:0/0},nearest:function(t){return t[0]}},YS=function(t){return Math.round(t.length/2)},US=function(t){return{seriesType:t,modifyOutputEnd:!0,reset:function(t){var e=t.getData(),n=t.get("sampling"),i=t.coordinateSystem;if("cartesian2d"===i.type&&n){var r=i.getBaseAxis(),a=i.getOtherAxis(r),o=r.getExtent(),s=o[1]-o[0],l=Math.round(e.count()/s);if(l>1){var u;"string"==typeof n?u=XS[n]:"function"==typeof n&&(u=n),u&&t.setData(e.downSample(e.mapDimension(a.dim),1/l,u,YS))}}}}};fu(GS("line","circle","line")),du(ZS("line")),su(fb.PROCESSOR.STATISTIC,US("line"));var qS=function(t,e,n){e=x(e)&&{coordDimensions:e}||o({},e);var i=t.getSource(),r=jb(i,e),a=new Yb(r,t);return a.initData(i,n),a},jS={updateSelectedMap:function(t){this._targetList=x(t)?t.slice():[],this._selectTargetMap=g(t||[],function(t,e){return t.set(e.name,e),t},N())},select:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t),i=this.get("selectedMode");"single"===i&&this._selectTargetMap.each(function(t){t.selected=!1}),n&&(n.selected=!0)},unSelect:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);n&&(n.selected=!1)},toggleSelected:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);return null!=n?(this[n.selected?"unSelect":"select"](t,e),n.selected):void 0},isSelected:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);return n&&n.selected}},$S=yu({type:"series.pie",init:function(t){$S.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(t)},mergeOption:function(t){$S.superCall(this,"mergeOption",t),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(){return qS(this,["value"])},_createSelectableList:function(){for(var t=this.getRawData(),e=t.mapDimension("value"),n=[],i=0,r=t.count();r>i;i++)n.push({name:t.getName(i),value:t.get(e,i),selected:Ns(t,i,"selected")});return n},getDataParams:function(t){var e=this.getData(),n=$S.superCall(this,"getDataParams",t),i=[];return e.each(e.mapDimension("value"),function(t){i.push(t)}),n.percent=po(i,t,e.hostModel.get("percentPrecision")),n.$vars.push("percent"),n},_defaultLabelLine:function(t){Hi(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,label:{rotate:!1,show:!0,position:"outer"},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationTypeUpdate:"transition",animationEasing:"cubicOut"}});c($S,jS);var KS=xd.prototype;KS.updateData=function(t,e,n){var i=this.childAt(0),r=this.childAt(1),a=this.childAt(2),l=t.hostModel,u=t.getItemModel(e),h=t.getItemLayout(e),c=o({},h);c.label=null;var d=l.getShallow("animationTypeUpdate");if(n){i.setShape(c);var f=l.getShallow("animationType");"scale"===f?(i.shape.r=h.r0,Ha(i,{shape:{r:h.r}},l,e)):(i.shape.endAngle=h.startAngle,Va(i,{shape:{endAngle:h.endAngle}},l,e))}else"expansion"===d?i.setShape(c):Va(i,{shape:c},l,e);var p=t.getItemVisual(e,"color");i.useStyle(s({lineJoin:"bevel",fill:p},u.getModel("itemStyle").getItemStyle())),i.hoverStyle=u.getModel("emphasis.itemStyle").getItemStyle();var g=u.getShallow("cursor");g&&i.attr("cursor",g),_d(this,t.getItemLayout(e),l.isSelected(null,e),l.get("selectedOffset"),l.get("animation"));var v=!n&&"transition"===d;this._updateLabel(t,e,v),this.highDownOnUpdate=u.get("hoverAnimation")&&l.isAnimationEnabled()?function(t,e){"emphasis"===e?(r.ignore=r.hoverIgnore,a.ignore=a.hoverIgnore,i.stopAnimation(!0),i.animateTo({shape:{r:h.r+l.get("hoverOffset")}},300,"elasticOut")):(r.ignore=r.normalIgnore,a.ignore=a.normalIgnore,i.stopAnimation(!0),i.animateTo({shape:{r:h.r}},300,"elasticOut"))}:null,Sa(this)},KS._updateLabel=function(t,e,n){var i=this.childAt(1),r=this.childAt(2),a=t.hostModel,o=t.getItemModel(e),s=t.getItemLayout(e),l=s.label,u=t.getItemVisual(e,"color");if(!l||isNaN(l.x)||isNaN(l.y))return void(r.ignore=r.normalIgnore=r.hoverIgnore=i.ignore=i.normalIgnore=i.hoverIgnore=!0);var h={points:l.linePoints||[[l.x,l.y],[l.x,l.y],[l.x,l.y]]},c={x:l.x,y:l.y};n?(Va(i,{shape:h},a,e),Va(r,{style:c},a,e)):(i.attr({shape:h}),r.attr({style:c})),r.attr({rotation:l.rotation,origin:[l.x,l.y],z2:10});var d=o.getModel("label"),f=o.getModel("emphasis.label"),p=o.getModel("labelLine"),g=o.getModel("emphasis.labelLine"),u=t.getItemVisual(e,"color");Aa(r.style,r.hoverStyle={},d,f,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:t.getName(e),autoColor:u,useInsideStyle:!!l.inside},{textAlign:l.textAlign,textVerticalAlign:l.verticalAlign,opacity:t.getItemVisual(e,"opacity")}),r.ignore=r.normalIgnore=!d.get("show"),r.hoverIgnore=!f.get("show"),i.ignore=i.normalIgnore=!p.get("show"),i.hoverIgnore=!g.get("show"),i.setStyle({stroke:u,opacity:t.getItemVisual(e,"opacity")}),i.setStyle(p.getModel("lineStyle").getLineStyle()),i.hoverStyle=g.getModel("lineStyle").getLineStyle();var v=p.get("smooth");v&&v===!0&&(v=.4),i.setShape({smooth:v})},h(xd,Jv);var QS=(Ks.extend({type:"pie",init:function(){var t=new Jv;this._sectorGroup=t},render:function(t,e,n,i){if(!i||i.from!==this.uid){var r=t.getData(),a=this._data,o=this.group,s=e.get("animation"),l=!a,u=t.get("animationType"),h=t.get("animationTypeUpdate"),c=_(yd,this.uid,t,s,n),d=t.get("selectedMode");if(r.diff(a).add(function(t){var e=new xd(r,t);l&&"scale"!==u&&e.eachChild(function(t){t.stopAnimation(!0)}),d&&e.on("click",c),r.setItemGraphicEl(t,e),o.add(e)}).update(function(t,e){var n=a.getItemGraphicEl(e);l||"transition"===h||n.eachChild(function(t){t.stopAnimation(!0)}),n.updateData(r,t),n.off("click"),d&&n.on("click",c),o.add(n),r.setItemGraphicEl(t,n)}).remove(function(t){var e=a.getItemGraphicEl(t);o.remove(e)}).execute(),s&&r.count()>0&&(l?"scale"!==u:"transition"!==h)){for(var f=r.getItemLayout(0),p=1;isNaN(f.startAngle)&&p<r.count();++p)f=r.getItemLayout(p);var g=Math.max(n.getWidth(),n.getHeight())/2,v=y(o.removeClipPath,o);o.setClipPath(this._createClipPath(f.cx,f.cy,g,f.startAngle,f.clockwise,v,t,l))}else o.removeClipPath();this._data=r}},dispose:function(){},_createClipPath:function(t,e,n,i,r,a,o,s){var l=new m_({shape:{cx:t,cy:e,r0:0,r:n,startAngle:i,endAngle:i,clockwise:r}}),u=s?Ha:Va;
 
- return u(l,{shape:{endAngle:i+(r?1:-1)*Math.PI*2}},o,a),l},containPoint:function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var r=t[0]-i.cx,a=t[1]-i.cy,o=Math.sqrt(r*r+a*a);return o<=i.r&&o>=i.r0}}}),function(t,e){f(e,function(e){e.update="updateView",uu(e,function(n,i){var r={};return i.eachComponent({mainType:"series",subType:t,query:n},function(t){t[e.method]&&t[e.method](n.name,n.dataIndex);var i=t.getData();i.each(function(e){var n=i.getName(e);r[n]=t.isSelected(n)||!1})}),{name:n.name,selected:r,seriesId:n.seriesId}})})}),JS=function(t){return{getTargetSeries:function(e){var n={},i=N();return e.eachSeriesByType(t,function(t){t.__paletteScope=n,i.set(t.uid,t)}),i},reset:function(t){var e=t.getRawData(),n={},i=t.getData();i.each(function(t){var e=i.getRawIndex(t);n[e]=t}),e.each(function(r){var a,o=n[r],s=null!=o&&i.getItemVisual(o,"color",!0),l=null!=o&&i.getItemVisual(o,"borderColor",!0);if(s&&l||(a=e.getItemModel(r)),s)e.setItemVisual(r,"color",s);else{var u=a.get("itemStyle.color")||t.getColorFromPalette(e.getName(r)||r+"",t.__paletteScope,e.count());e.setItemVisual(r,"color",u),null!=o&&i.setItemVisual(o,"color",u)}if(l)e.setItemVisual(r,"borderColor",l);else{var h=a.get("itemStyle.borderColor");e.setItemVisual(r,"borderColor",h),null!=o&&i.setItemVisual(o,"borderColor",h)}})}}},tI=Math.PI/180,eI=function(t,e,n,i){var r,a,o=t.getData(),s=[],l=!1,u=(t.get("minShowLabelAngle")||0)*tI;o.each(function(n){var i=o.getItemLayout(n),h=o.getItemModel(n),c=h.getModel("label"),d=c.get("position")||h.get("emphasis.label.position"),f=h.getModel("labelLine"),p=f.get("length"),g=f.get("length2");if(!(i.angle<u)){var v,m,y,_,x=(i.startAngle+i.endAngle)/2,w=Math.cos(x),b=Math.sin(x);r=i.cx,a=i.cy;var M="inside"===d||"inner"===d;if("center"===d)v=i.cx,m=i.cy,_="center";else{var S=(M?(i.r+i.r0)/2*w:i.r*w)+r,I=(M?(i.r+i.r0)/2*b:i.r*b)+a;if(v=S+3*w,m=I+3*b,!M){var T=S+w*(p+e-i.r),C=I+b*(p+e-i.r),A=T+(0>w?-1:1)*g,D=C;v=A+(0>w?-5:5),m=D,y=[[S,I],[T,C],[A,D]]}_=M?"center":w>0?"left":"right"}var k,P=c.getFont(),O=c.get("rotate");k="number"==typeof O?O*(Math.PI/180):O?0>w?-x+Math.PI:-x:0;var L=t.getFormattedLabel(n,"normal")||o.getName(n),z=Hn(L,P,_,"top");l=!!k,i.label={x:v,y:m,position:d,height:z.height,len:p,len2:g,linePoints:y,textAlign:_,verticalAlign:"middle",rotation:k,inside:M},M||s.push(i.label)}}),!l&&t.get("avoidLabelOverlap")&&bd(s,r,a,e,n,i)},nI=2*Math.PI,iI=Math.PI/180,rI=function(t,e,n){e.eachSeriesByType(t,function(t){var e=t.getData(),i=e.mapDimension("value"),r=t.get("center"),a=t.get("radius");x(a)||(a=[0,a]),x(r)||(r=[r,r]);var o=n.getWidth(),s=n.getHeight(),l=Math.min(o,s),u=so(r[0],o),h=so(r[1],s),c=so(a[0],l/2),d=so(a[1],l/2),f=-t.get("startAngle")*iI,p=t.get("minAngle")*iI,g=0;e.each(i,function(t){!isNaN(t)&&g++});var v=e.getSum(i),m=Math.PI/(v||g)*2,y=t.get("clockwise"),_=t.get("roseType"),w=t.get("stillShowZeroSum"),b=e.getDataExtent(i);b[0]=0;var M=nI,S=0,I=f,T=y?1:-1;if(e.each(i,function(t,n){var i;if(isNaN(t))return void e.setItemLayout(n,{angle:0/0,startAngle:0/0,endAngle:0/0,clockwise:y,cx:u,cy:h,r0:c,r:_?0/0:d});i="area"!==_?0===v&&w?m:t*m:nI/g,p>i?(i=p,M-=p):S+=t;var r=I+T*i;e.setItemLayout(n,{angle:i,startAngle:I,endAngle:r,clockwise:y,cx:u,cy:h,r0:c,r:_?oo(t,b,[c,d]):d}),I=r}),nI>M&&g)if(.001>=M){var C=nI/g;e.each(i,function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n);i.angle=C,i.startAngle=f+T*n*C,i.endAngle=f+T*(n+1)*C}})}else m=M/S,I=f,e.each(i,function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n),r=i.angle===p?p:t*m;i.startAngle=I,i.endAngle=I+T*r,I+=T*r}});eI(t,d,o,s)})},aI=function(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf(function(t){for(var e=i.getName(t),r=0;r<n.length;r++)if(!n[r].isSelected(e))return!1;return!0})}}}};QS("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),fu(JS("pie")),du(_(rI,"pie")),su(aI("pie"));var oI=ww.legend.selector,sI={all:{type:"all",title:i(oI.all)},inverse:{type:"inverse",title:i(oI.inverse)}},lI=vu({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},mergeOption:function(t){lI.superCall(this,"mergeOption",t),this._updateSelector(t)},_updateSelector:function(t){var e=t.selector;e===!0&&(e=t.selector=["all","inverse"]),x(e)&&f(e,function(t,n){b(t)&&(t={type:t}),e[n]=r(t,sI[t.type])})},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}!e&&this.select(t[0].get("name"))}},_updateData:function(t){var e=[],n=[];t.eachRawSeries(function(i){var r=i.name;n.push(r);var a;if(i.legendDataProvider){var o=i.legendDataProvider(),s=o.mapArray(o.getName);t.isSeriesFiltered(i)||(n=n.concat(s)),s.length?e=e.concat(s):a=!0}else a=!0;a&&Yi(i)&&e.push(i.name)}),this._availableNames=n;var i=this.get("data")||e,r=p(i,function(t){return("string"==typeof t||"number"==typeof t)&&(t={name:t}),new Ja(t,this,this.ecModel)},this);this._data=r},getData:function(){return this._data},select:function(t){var e=this.option.selected,n=this.get("selectedMode");if("single"===n){var i=this._data;f(i,function(t){e[t.get("name")]=!1})}e[t]=!0},unSelect:function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},toggleSelected:function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},allSelect:function(){var t=this._data,e=this.option.selected;f(t,function(t){e[t.get("name",!0)]=!0})},inverseSelect:function(){var t=this._data,e=this.option.selected;f(t,function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]})},isSelected:function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&u(this._availableNames,t)>=0},getOrient:function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}}});uu("legendToggleSelect","legendselectchanged",_(Sd,"toggleSelected")),uu("legendAllSelect","legendselectall",_(Sd,"allSelect")),uu("legendInverseSelect","legendinverseselect",_(Sd,"inverseSelect")),uu("legendSelect","legendselected",_(Sd,"select")),uu("legendUnSelect","legendunselected",_(Sd,"unSelect"));var uI=_,hI=f,cI=Jv,dI=mu({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new cI),this._backgroundEl,this.group.add(this._selectorGroup=new cI),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),a=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===a?"right":"left");var o=t.get("selector",!0),l=t.get("selectorPosition",!0);!o||l&&"auto"!==l||(l="horizontal"===a?"end":"start"),this.renderInner(r,t,e,n,o,a,l);var u=t.getBoxLayoutParams(),h={width:n.getWidth(),height:n.getHeight()},c=t.get("padding"),d=Eo(u,h,c),f=this.layoutInner(t,r,d,i,o,l),p=Eo(s({width:f.width,height:f.height},u),h,c);this.group.attr("position",[p.x-f.x,p.y-f.y]),this.group.add(this._backgroundEl=Id(f,t))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(t,e,n,i,r,a,o){var s=this.getContentGroup(),l=N(),u=e.get("selectedMode"),h=[];n.eachRawSeries(function(t){!t.get("legendHoverLink")&&h.push(t.id)}),hI(e.getData(),function(r,a){var o=r.get("name");if(!this.newlineDisabled&&(""===o||"\n"===o))return void s.add(new cI({newline:!0}));var c=n.getSeriesByName(o)[0];if(!l.get(o))if(c){var d=c.getData(),f=d.getVisual("color"),p=d.getVisual("borderColor");"function"==typeof f&&(f=f(c.getDataParams(0))),"function"==typeof p&&(p=p(c.getDataParams(0)));var g=d.getVisual("legendSymbol")||"roundRect",v=d.getVisual("symbol"),m=this._createItem(o,a,r,e,g,v,t,f,p,u);m.on("click",uI(Cd,o,i)).on("mouseover",uI(Ad,c.name,null,i,h)).on("mouseout",uI(Dd,c.name,null,i,h)),l.set(o,!0)}else n.eachRawSeries(function(n){if(!l.get(o)&&n.legendDataProvider){var s=n.legendDataProvider(),c=s.indexOfName(o);if(0>c)return;var d=s.getItemVisual(c,"color"),f=s.getItemVisual(c,"borderColor"),p="roundRect",g=this._createItem(o,a,r,e,p,null,t,d,f,u);g.on("click",uI(Cd,o,i)).on("mouseover",uI(Ad,null,o,i,h)).on("mouseout",uI(Dd,null,o,i,h)),l.set(o,!0)}},this)},this),r&&this._createSelector(r,e,i,a,o)},_createSelector:function(t,e,n){function i(t){var i=t.type,a=new f_({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});r.add(a);var o=e.getModel("selectorLabel"),s=e.getModel("emphasis.selectorLabel");Aa(a.style,a.hoverStyle={},o,s,{defaultText:t.title,isRectText:!1}),Sa(a)}var r=this.getSelectorGroup();hI(t,function(t){i(t)})},_createItem:function(t,e,n,i,r,a,s,l,u,h){var c=i.get("itemWidth"),d=i.get("itemHeight"),f=i.get("inactiveColor"),p=i.get("inactiveBorderColor"),g=i.get("symbolKeepAspect"),v=i.getModel("itemStyle"),m=i.isSelected(t),y=new cI,_=n.getModel("textStyle"),x=n.get("icon"),w=n.getModel("tooltip"),b=w.parentModel;r=x||r;var M=Ph(r,0,0,c,d,m?l:f,null==g?!0:g);if(y.add(Td(M,r,v,u,p,m)),!x&&a&&(a!==r||"none"===a)){var S=.8*d;"none"===a&&(a="circle");var I=Ph(a,(c-S)/2,(d-S)/2,S,S,m?l:f,null==g?!0:g);y.add(Td(I,a,v,u,p,m))}var T="left"===s?c+5:-5,C=s,A=i.get("formatter"),D=t;"string"==typeof A&&A?D=A.replace("{name}",null!=t?t:""):"function"==typeof A&&(D=A(t)),y.add(new f_({style:ka({},_,{text:D,x:T,y:d/2,textFill:m?_.getTextColor():f,textAlign:C,textVerticalAlign:"middle"})}));var k=new I_({shape:y.getBoundingRect(),invisible:!0,tooltip:w.get("show")?o({content:t,formatter:b.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:i.componentIndex,name:t,$vars:["name"]}},w.option):null});return y.add(k),y.eachChild(function(t){t.silent=!0}),k.silent=!h,this.getContentGroup().add(y),Sa(y),y.__legendDataIndex=e,y},layoutInner:function(t,e,n,i,r,a){var o=this.getContentGroup(),s=this.getSelectorGroup();yx(t.get("orient"),o,t.get("itemGap"),n.width,n.height);var l=o.getBoundingRect(),u=[-l.x,-l.y];if(r){yx("horizontal",s,t.get("selectorItemGap",!0));var h=s.getBoundingRect(),c=[-h.x,-h.y],d=t.get("selectorButtonGap",!0),f=t.getOrient().index,p=0===f?"width":"height",g=0===f?"height":"width",v=0===f?"y":"x";"end"===a?c[f]+=l[p]+d:u[f]+=h[p]+d,c[1-f]+=l[g]/2-h[g]/2,s.attr("position",c),o.attr("position",u);var m={x:0,y:0};return m[p]=l[p]+d+h[p],m[g]=Math.max(l[g],h[g]),m[v]=Math.min(0,h[v]+c[1-f]),m}return o.attr("position",u),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}}),fI=function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})};su(fb.PROCESSOR.SERIES_FILTER,fI),bx.registerSubTypeDefaulter("legend",function(){return"plain"});var pI=lI.extend({type:"legend.scroll",setScrollDataIndex:function(t){this.option.scrollDataIndex=t},defaultOption:{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},init:function(t,e,n,i){var r=No(t);pI.superCall(this,"init",t,e,n,i),kd(this,t,r)},mergeOption:function(t,e){pI.superCall(this,"mergeOption",t,e),kd(this,this.option,t)}}),gI=Jv,vI=["width","height"],mI=["x","y"],yI=dI.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){yI.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new gI),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new gI),this._showController},resetInner:function(){yI.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(t,e,n,i,r,a,o){function s(t,n){var r=t+"DataIndex",a=qa(e.get("pageIcons",!0)[e.getOrient().name][n],{onclick:y(l._pageGo,l,r,e,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});a.name=t,u.add(a)}var l=this;yI.superCall(this,"renderInner",t,e,n,i,r,a,o);var u=this._controllerGroup,h=e.get("pageIconSize",!0);x(h)||(h=[h,h]),s("pagePrev",0);var c=e.getModel("pageTextStyle");u.add(new f_({name:"pageText",style:{textFill:c.getTextColor(),font:c.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),s("pageNext",1)},layoutInner:function(t,e,n,r,a,o){var s=this.getSelectorGroup(),l=t.getOrient().index,u=vI[l],h=mI[l],c=vI[1-l],d=mI[1-l];a&&yx("horizontal",s,t.get("selectorItemGap",!0));var f=t.get("selectorButtonGap",!0),p=s.getBoundingRect(),g=[-p.x,-p.y],v=i(n);a&&(v[u]=n[u]-p[u]-f);var m=this._layoutContentAndController(t,r,v,l,u,c,d);if(a){if("end"===o)g[l]+=m[u]+f;else{var y=p[u]+f;g[l]-=y,m[h]-=y}m[u]+=p[u]+f,g[1-l]+=m[d]+m[c]/2-p[c]/2,m[c]=Math.max(m[c],p[c]),m[d]=Math.min(m[d],p[d]+g[1-l]),s.attr("position",g)}return m},_layoutContentAndController:function(t,e,n,i,r,a,o){var s=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;yx(t.get("orient"),s,t.get("itemGap"),i?n.width:null,i?null:n.height),yx("horizontal",u,t.get("pageButtonItemGap",!0));var h=s.getBoundingRect(),c=u.getBoundingRect(),d=this._showController=h[r]>n[r],f=[-h.x,-h.y];e||(f[i]=s.position[i]);var p=[0,0],g=[-c.x,-c.y],v=D(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var m=t.get("pageButtonPosition",!0);"end"===m?g[i]+=n[r]-c[r]:p[i]+=c[r]+v}g[1-i]+=h[a]/2-c[a]/2,s.attr("position",f),l.attr("position",p),u.attr("position",g);var y={x:0,y:0};if(y[r]=d?n[r]:h[r],y[a]=Math.max(h[a],c[a]),y[o]=Math.min(0,c[o]+g[1-i]),l.__rectSize=n[r],d){var _={x:0,y:0};_[r]=Math.max(n[r]-c[r]-v,0),_[a]=y[a],l.setClipPath(new I_({shape:_})),l.__rectSize=_[r]}else u.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(t);return null!=x.pageIndex&&Va(s,{position:x.contentPosition},d?t:!1),this._updatePageInfoView(t,x),y},_pageGo:function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},_updatePageInfoView:function(t,e){var n=this._controllerGroup;f(["pagePrev","pageNext"],function(i){var r=null!=e[i+"DataIndex"],a=n.childOfName(i);a&&(a.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=r?"pointer":"default")});var i=n.childOfName("pageText"),r=t.get("pageFormatter"),a=e.pageIndex,o=null!=a?a+1:0,s=e.pageCount;i&&r&&i.setStyle("text",b(r)?r.replace("{current}",o).replace("{total}",s):r({current:o,total:s}))},_getPageInfo:function(t){function e(t){if(t){var e=t.getBoundingRect(),n=e[l]+t.position[o];return{s:n,e:n+e[s],i:t.__legendDataIndex}}}function n(t,e){return t.e>=e&&t.s<=e+a}var i=t.get("scrollDataIndex",!0),r=this.getContentGroup(),a=this._containerGroup.__rectSize,o=t.getOrient().index,s=vI[o],l=mI[o],u=this._findTargetItemIndex(i),h=r.children(),c=h[u],d=h.length,f=d?1:0,p={contentPosition:r.position.slice(),pageCount:f,pageIndex:f-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return p;var g=e(c);p.contentPosition[o]=-g.s;for(var v=u+1,m=g,y=g,_=null;d>=v;++v)_=e(h[v]),(!_&&y.e>m.s+a||_&&!n(_,m.s))&&(m=y.i>m.i?y:_,m&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=m.i),++p.pageCount)),y=_;for(var v=u-1,m=g,y=g,_=null;v>=-1;--v)_=e(h[v]),_&&n(y,_.s)||!(m.i<y.i)||(y=m,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=m.i),++p.pageCount,++p.pageIndex),m=_;return p},_findTargetItemIndex:function(t){var e,n,i=this.getContentGroup();return this._showController&&i.eachChild(function(i,r){var a=i.__legendDataIndex;null==n&&null!=a&&(n=r),a===t&&(e=r)}),null!=e?e:n}});uu("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})});var _I=function(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var a=n.getData(),o=qi(a,t);if(null==o||0>o||x(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)i=l.dataToPoint(a.getValues(p(l.dimensions,function(t){return a.mapDimension(t)}),o,!0))||[];else if(s){var u=s.getBoundingRect().clone();u.applyTransform(s.transform),i=[u.x+u.width/2,u.y+u.height/2]}return{point:i,el:s}},xI=f,wI=_,bI=ji(),MI=function(t,e,n){var i=t.currTrigger,r=[t.x,t.y],a=t,o=t.dispatchAction||y(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Vd(r)&&(r=_I({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=Vd(r),u=a.axesInfo,h=s.axesInfo,c="leave"===i||Vd(r),d={},f={},p={list:[],map:{}},g={showPointer:wI(Ld,f),showTooltip:wI(zd,p)};xI(s.coordSysMap,function(t,e){var n=l||t.containPoint(r);xI(s.coordSysAxesInfo[e],function(t){var e=t.axis,i=Nd(u,t);if(!c&&n&&(!u||i)){var a=i&&i.value;null!=a||l||(a=e.pointToData(r)),null!=a&&Pd(t,a,g,!1,d)}})});var v={};return xI(h,function(t,e){var n=t.linkGroup;n&&!f[e]&&xI(n.axesInfo,function(e,i){var r=f[i];if(e!==t&&r){var a=r.value;n.mapper&&(a=t.axis.scale.parse(n.mapper(a,Fd(e),Fd(t)))),v[t.key]=a}})}),xI(v,function(t,e){Pd(h[e],t,g,!0,d)}),Bd(f,h,d),Ed(p,r,t,o),Rd(h,o,n),d}},SI=(vu({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}}),ji()),II=f,TI=mu({type:"axisPointer",render:function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Hd("axisPointer",n,function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},remove:function(t,e){Ud(e.getZr(),"axisPointer"),TI.superApply(this._model,"remove",arguments)},dispose:function(t,e){Ud("axisPointer",e),TI.superApply(this._model,"dispose",arguments)}}),CI=ji(),AI=i,DI=y;qd.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,n,i){var r=e.get("value"),a=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==a){this._lastValue=r,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||"hide"===a)return o&&o.hide(),void(s&&s.hide());o&&o.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,e);if(o){var c=_(jd,e,h);this.updatePointerEl(o,l,c,e),this.updateLabelEl(o,l,c,e)}else o=this._group=new Jv,this.createPointerEl(o,l,t,e),this.createLabelEl(o,l,t,e),n.getZr().add(o);Jd(o,e,!0),this._renderHandle(r)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,a=e.get("snap");if(!a&&!r)return!1;if("auto"===n||null==n){var o=this.animationThreshold;if(r&&i.getBandWidth()>o)return!0;if(a){var s=Vc(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>o}return!1}return n===!0},makeElOption:function(){},createPointerEl:function(t,e){var n=e.pointer;if(n){var i=CI(t).pointerEl=new $_[n.type](AI(e.pointer));t.add(i)}},createLabelEl:function(t,e,n,i){if(e.label){var r=CI(t).labelEl=new I_(AI(e.label));t.add(r),Kd(r,i)}},updatePointerEl:function(t,e,n){var i=CI(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,n,i){var r=CI(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{shape:e.label.shape,position:e.label.position}),Kd(r,i))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,r=e.getModel("handle"),a=e.get("status");if(!r.get("show")||!a||"hide"===a)return i&&n.remove(i),void(this._handle=null);var o;this._handle||(o=!0,i=this._handle=qa(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){pv(t.event)},onmousedown:DI(this._onHandleDragMove,this,0,0),drift:DI(this._onHandleDragMove,this),ondragend:DI(this._onHandleDragEnd,this)}),n.add(i)),Jd(i,e,!1);var s=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];i.setStyle(r.getItemStyle(null,s));var l=r.get("size");x(l)||(l=[l,l]),i.attr("scale",[l[0]/2,l[1]/2]),il(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,o)}},_moveHandleToValue:function(t,e){jd(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Qd(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Qd(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Qd(i)),CI(n).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},_onHandleDragEnd:function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}},qd.prototype.constructor=qd,ir(qd);var kI=qd.extend({makeElOption:function(t,e,n,i,r){var a=n.axis,o=a.grid,s=i.get("type"),l=uf(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(e,!0));if(s&&"none"!==s){var h=tf(i),c=PI[s](a,u,l);c.style=h,t.graphicKey=c.type,t.pointer=c}var d=Yc(o.model,n);of(e,t,d,n,i,r)},getHandleTransform:function(t,e,n){var i=Yc(e.axis.grid.model,e,{labelInside:!1});return i.labelMargin=n.get("handle.margin"),{position:af(e.axis,t,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n){var i=n.axis,r=i.grid,a=i.getGlobalExtent(!0),o=uf(r,i).getOtherAxis(i).getGlobalExtent(),s="x"===i.dim?0:1,l=t.position;l[s]+=e[s],l[s]=Math.min(a[1],l[s]),l[s]=Math.max(a[0],l[s]);var u=(o[1]+o[0])/2,h=[u,u];h[s]=l[s];var c=[{verticalAlign:"middle"},{align:"center"}];return{position:l,rotation:t.rotation,cursorPoint:h,tooltipOption:c[s]}}}),PI={line:function(t,e,n){var i=sf([e,n[0]],[e,n[1]],hf(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:lf([e-i/2,n[0]],[i,r],hf(t))}}};wS.registerAxisPointerClass("CartesianAxisPointer",kI),ou(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!x(e)&&(t.axisPointer.link=[e])}}),su(fb.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Lc(t,e)}),uu({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},MI),vu({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});var OI=f,LI=Io,zI=["","-webkit-","-moz-","-o-"],BI="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";pf.prototype={constructor:pf,_enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),n=t.style;"absolute"!==n.position&&"absolute"!==e.position&&(n.position="relative")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el;e.style.cssText=BI+ff(t)+";left:"+this._x+"px;top:"+this._y+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",e.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var n,i=this._zr;i&&i.painter&&(n=i.painter.getViewportRootOffset())&&(t+=n.offsetLeft,e+=n.offsetTop);var r=this.el.style;r.left=t+"px",r.top=e+"px",this._x=t,this._y=e},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(y(this.hide,this),t)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var t=this.el.clientWidth,e=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var n=document.defaultView.getComputedStyle(this.el);n&&(t+=parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),e+=parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10))}return{width:t,height:e}}},gf.prototype={constructor:gf,_enterable:!0,update:function(){},show:function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(t,e,n){this.el&&this._zr.remove(this.el);for(var i={},r=t,a="{marker",o="|}",s=r.indexOf(a);s>=0;){var l=r.indexOf(o),u=r.substr(s+a.length,l-s-a.length);i["marker"+u]=u.indexOf("sub")>-1?{textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:e[u],textOffset:[3,0]}:{textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:e[u]},r=r.substr(l+1),s=r.indexOf("{marker")}this.el=new f_({style:{rich:i,text:t,textLineHeight:20,textBackgroundColor:n.get("backgroundColor"),textBorderRadius:n.get("borderRadius"),textFill:n.get("textStyle.color"),textPadding:n.get("padding")},z:n.get("z")}),this._zr.add(this.el);var h=this;this.el.on("mouseover",function(){h._enterable&&(clearTimeout(h._hideTimeout),h._show=!0),h._inContent=!0}),this.el.on("mouseout",function(){h._enterable&&h._show&&h.hideLater(h._hideDelay),h._inContent=!1})},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el.getBoundingRect();return[t.width,t.height]},moveTo:function(t,e){this.el&&this.el.attr("position",[t,e])},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(y(this.hide,this),t)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var t=this.getSize();return{width:t[0],height:t[1]}}};var EI=y,RI=f,NI=so,FI=new I_({shape:{x:-1,y:-1,width:2,height:2}});mu({type:"tooltip",init:function(t,e){if(!Vg.node){var n=t.getComponent("tooltip"),i=n.get("renderMode");this._renderMode=tr(i);var r;"html"===this._renderMode?(r=new pf(e.getDom(),e),this._newLine="<br/>"):(r=new gf(e),this._newLine="\n"),this._tooltipContent=r}},render:function(t,e,n){if(!Vg.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var i=this._tooltipContent;i.update(),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel,e=t.get("triggerOn");Hd("itemTooltip",this._api,EI(function(t,n,i){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,i):"leave"===t&&this._hide(i))},this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY})})}},manuallyShowTip:function(t,e,n,i){if(i.from!==this.uid&&!Vg.node){var r=mf(i,n);this._ticket="";var a=i.dataByCoordSys;if(i.tooltip&&null!=i.x&&null!=i.y){var o=FI;o.position=[i.x,i.y],o.update(),o.tooltip=i.tooltip,this._tryShow({offsetX:i.x,offsetY:i.y,target:o},r)}else if(a)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,event:{},dataByCoordSys:i.dataByCoordSys,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var s=_I(i,e),l=s.point[0],u=s.point[1];null!=l&&null!=u&&this._tryShow({offsetX:l,offsetY:u,position:i.position,target:s.el,event:{}},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target,event:{}},r))}},manuallyHideTip:function(t,e,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,i.from!==this.uid&&this._hide(mf(i,n))},_manuallyAxisShowTip:function(t,e,n,i){var r=i.seriesIndex,a=i.dataIndex,o=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=a&&null!=o){var s=e.getSeriesByIndex(r);if(s){var l=s.getData(),t=vf([l.getItemModel(a),s,(s.coordinateSystem||{}).model,t]);if("axis"===t.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:a,position:i.position}),!0}}},_tryShow:function(t,e){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;r&&r.length?this._showAxisTooltip(r,t):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,n,e)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,n,e)):(this._lastDataByCoordSys=null,this._hide(e))
 
- }},_showOrMove:function(t,e){var n=t.get("showDelay");e=y(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},_showAxisTooltip:function(t,e){var n=this._ecModel,i=this._tooltipModel,a=[e.offsetX,e.offsetY],o=[],s=[],l=vf([e.tooltipOption,i]),u=this._renderMode,h=this._newLine,c={};RI(t,function(t){RI(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value,a=[];if(e&&null!=i){var l=rf(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt);f(t.seriesDataIndices,function(o){var h=n.getSeriesByIndex(o.seriesIndex),d=o.dataIndexInside,f=h&&h.getDataParams(d);if(f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=Ih(e.axis,i),f.axisValueLabel=l,f){s.push(f);var p,g=h.formatTooltip(d,!0,null,u);if(M(g)){p=g.html;var v=g.markers;r(c,v)}else p=g;a.push(p)}});var d=l;o.push("html"!==u?a.join(h):(d?To(d)+h:"")+a.join(h))}})},this),o.reverse(),o=o.join(this._newLine+this._newLine);var d=e.position;this._showOrMove(l,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(l,d,a[0],a[1],this._tooltipContent,s):this._showTooltipContent(l,o,s,Math.random(),a[0],a[1],d,void 0,c)})},_showSeriesItemTooltip:function(t,e,n){var i=this._ecModel,r=e.seriesIndex,a=i.getSeriesByIndex(r),o=e.dataModel||a,s=e.dataIndex,l=e.dataType,u=o.getData(),h=vf([u.getItemModel(s),o,a&&(a.coordinateSystem||{}).model,this._tooltipModel]),c=h.get("trigger");if(null==c||"item"===c){var d,f,p=o.getDataParams(s,l),g=o.formatTooltip(s,!1,l,this._renderMode);M(g)?(d=g.html,f=g.markers):(d=g,f=null);var v="item_"+o.name+"_"+s;this._showOrMove(h,function(){this._showTooltipContent(h,d,p,v,t.offsetX,t.offsetY,t.position,t.target,f)}),n({type:"showTip",dataIndexInside:s,dataIndex:u.getRawIndex(s),seriesIndex:r,from:this.uid})}},_showComponentItemTooltip:function(t,e,n){var i=e.tooltip;if("string"==typeof i){var r=i;i={content:r,formatter:r}}var a=new Ja(i,this._tooltipModel,this._ecModel),o=a.get("content"),s=Math.random();this._showOrMove(a,function(){this._showTooltipContent(a,o,a.get("formatterParams")||{},s,t.offsetX,t.offsetY,t.position,e)}),n({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,n,i,r,a,o,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent,h=t.get("formatter");o=o||t.get("position");var c=e;if(h&&"string"==typeof h)c=Co(h,n,!0);else if("function"==typeof h){var d=EI(function(e,i){e===this._ticket&&(u.setContent(i,l,t),this._updatePosition(t,o,r,a,u,n,s))},this);this._ticket=i,c=h(n,i,d)}u.setContent(c,l,t),u.show(t),this._updatePosition(t,o,r,a,u,n,s)}},_updatePosition:function(t,e,n,i,r,a,o){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),h=t.get("align"),c=t.get("verticalAlign"),d=o&&o.getBoundingRect().clone();if(o&&d.applyTransform(o.transform),"function"==typeof e&&(e=e([n,i],a,r.el,d,{viewSize:[s,l],contentSize:u.slice()})),x(e))n=NI(e[0],s),i=NI(e[1],l);else if(M(e)){e.width=u[0],e.height=u[1];var f=Eo(e,{width:s,height:l});n=f.x,i=f.y,h=null,c=null}else if("string"==typeof e&&o){var p=xf(e,d,u);n=p[0],i=p[1]}else{var p=yf(n,i,r,s,l,h?null:20,c?null:20);n=p[0],i=p[1]}if(h&&(n-=wf(h)?u[0]/2:"right"===h?u[0]:0),c&&(i-=wf(c)?u[1]/2:"bottom"===c?u[1]:0),t.get("confine")){var p=_f(n,i,r,s,l);n=p[0],i=p[1]}r.moveTo(n,i)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,n=!!e&&e.length===t.length;return n&&RI(e,function(e,i){var r=e.dataByAxis||{},a=t[i]||{},o=a.dataByAxis||[];n&=r.length===o.length,n&&RI(r,function(t,e){var i=o[e]||{},r=t.seriesDataIndices||[],a=i.seriesDataIndices||[];n&=t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&r.length===a.length,n&&RI(r,function(t,e){var i=a[e];n&=t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex})})}),this._lastDataByCoordSys=t,!!n},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){Vg.node||(this._tooltipContent.hide(),Ud("itemTooltip",e))}}),uu({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),uu({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){});var VI=So,HI=To,WI=vu({type:"marker",dependencies:["series","grid","polar","geo"],init:function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},isAnimationEnabled:function(){if(Vg.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},mergeOption:function(t,e){this._mergeOption(t,e,!1,!1)},_mergeOption:function(t,e,n,i){var r=this.constructor,a=this.mainType+"Model";n||e.eachSeries(function(t){var n=t.get(this.mainType,!0),s=t[a];return n&&n.data?(s?s._mergeOption(n,e,!0):(i&&bf(n),f(n.data,function(t){t instanceof Array?(bf(t[0]),bf(t[1])):bf(t)}),s=new r(n,this,e),o(s,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),s.__hostSeries=t),void(t[a]=s)):void(t[a]=null)},this)},formatTooltip:function(t){var e=this.getData(),n=this.getRawValue(t),i=x(n)?p(n,VI).join(", "):VI(n),r=e.getName(t),a=HI(this.name);return(null!=n||r)&&(a+="<br />"),r&&(a+=HI(r),null!=n&&(a+=" : ")),null!=n&&(a+=HI(i)),a},getData:function(){return this._data},setData:function(t){this._data=t}});c(WI,aw),WI.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});var GI=u,ZI=_,XI={min:ZI(If,"min"),max:ZI(If,"max"),average:ZI(If,"average")},YI=mu({type:"marker",init:function(){this.markerGroupMap=N()},render:function(t,e,n){var i=this.markerGroupMap;i.each(function(t){t.__keep=!1});var r=this.type+"Model";e.eachSeries(function(t){var i=t[r];i&&this.renderSeries(t,i,e,n)},this),i.each(function(t){!t.__keep&&this.group.remove(t.group)},this)},renderSeries:function(){}});YI.extend({type:"markPoint",updateTransform:function(t,e,n){e.eachSeries(function(t){var e=t.markPointModel;e&&(Of(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout(e))},this)},renderSeries:function(t,e,n,i){var r=t.coordinateSystem,a=t.id,o=t.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,new Kc),u=Lf(r,t,e);e.setData(u),Of(e.getData(),t,i),u.each(function(t){var n=u.getItemModel(t),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),a=w(i),s=w(r);if(a||s){var l=e.getRawValue(t),h=e.getDataParams(t);a&&(i=i(l,h)),s&&(r=r(l,h))}u.setItemVisual(t,{symbol:i,symbolSize:r,color:n.get("itemStyle.color")||o.getVisual("color")})}),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl(function(t){t.traverse(function(t){t.dataModel=e})}),l.__keep=!0,l.group.silent=e.get("silent")||t.get("silent")}}),ou(function(t){t.markPoint=t.markPoint||{}}),bx.registerSubTypeDefaulter("dataZoom",function(){return"slider"});var UI=["x","y","z","radius","angle","single"],qI=["cartesian2d","polar","singleAxis"],jI=Bf(UI,["axisIndex","axis","index","id"]),$I=function(t,e,n,i,r,a){t=t||0;var o=n[1]-n[0];if(null!=r&&(r=Nf(r,[0,o])),null!=a&&(a=Math.max(a,null!=r?r:0)),"all"===i){var s=Math.abs(e[1]-e[0]);s=Nf(s,[0,o]),r=a=Nf(s,[r,a]),i=0}e[0]=Nf(e[0],n),e[1]=Nf(e[1],n);var l=Rf(e,i);e[i]+=t;var u=r||0,h=n.slice();l.sign<0?h[0]+=u:h[1]-=u,e[i]=Nf(e[i],h);var c=Rf(e,i);null!=r&&(c.sign!==l.sign||c.span<r)&&(e[1-i]=e[i]+l.sign*r);var c=Rf(e,i);return null!=a&&c.span>a&&(e[1-i]=e[i]+c.sign*a),e},KI=f,QI=uo,JI=function(t,e,n,i){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=i,this._dataZoomModel=n};JI.prototype={constructor:JI,hostedBy:function(t){return this._dataZoomModel===t},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],e=this.ecModel;return e.eachSeries(function(n){if(zf(n.get("coordinateSystem"))){var i=this._dimName,r=e.queryComponents({mainType:i+"Axis",index:n.get(i+"AxisIndex"),id:n.get(i+"AxisId")})[0];this._axisIndex===(r&&r.componentIndex)&&t.push(n)}},this),t},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,n=this._dimName,i=this.ecModel,r=this.getAxisModel(),a="x"===n||"y"===n;a?(e="gridIndex",t="x"===n?"y":"x"):(e="polarIndex",t="angle"===n?"radius":"angle");var o;return i.eachComponent(t+"Axis",function(t){(t.get(e)||0)===(r.get(e)||0)&&(o=t)}),o},getMinMaxSpan:function(){return i(this._minMaxSpan)},calculateDataWindow:function(t){function e(t,e,n,i,r){var o=r?"Span":"ValueSpan";$I(0,t,n,"all",h["min"+o],h["max"+o]);for(var s=0;2>s;s++)e[s]=oo(t[s],n,i,!0),r&&(e[s]=a.parse(e[s]))}var n,i=this._dataExtent,r=this.getAxisModel(),a=r.axis.scale,o=this._dataZoomModel.getRangePropMode(),s=[0,100],l=[],u=[];KI(["start","end"],function(e,r){var h=t[e],c=t[e+"Value"];"percent"===o[r]?(null==h&&(h=s[r]),c=a.parse(oo(h,s,i))):(n=!0,c=null==c?i[r]:a.parse(c),h=oo(c,i,s)),u[r]=c,l[r]=h}),QI(u),QI(l);var h=this._minMaxSpan;return n?e(u,l,i,s,!1):e(l,u,s,i,!0),{valueWindow:u,percentWindow:l}},reset:function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=Ff(this,this._dimName,e),Wf(this);var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,Hf(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,Hf(this,!0))},filterData:function(t){function e(t){return t>=a[0]&&t<=a[1]}if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),a=this._valueWindow;"none"!==r&&KI(i,function(t){var i=t.getData(),o=i.mapDimension(n,!0);o.length&&("weakFilter"===r?i.filterSelf(function(t){for(var e,n,r,s=0;s<o.length;s++){var l=i.get(o[s],t),u=!isNaN(l),h=l<a[0],c=l>a[1];if(u&&!h&&!c)return!0;u&&(r=!0),h&&(e=!0),c&&(n=!0)}return r&&e&&n}):KI(o,function(n){if("empty"===r)t.setData(i=i.map(n,function(t){return e(t)?t:0/0}));else{var o={};o[n]=a,i.selectRange(o)}}),KI(o,function(t){i.setApproximateExtent(a,t)}))})}}};var tT=f,eT=jI,nT=vu({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(t,e,n){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var i=Gf(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this.doInit(i)},mergeOption:function(t){var e=Gf(t);r(this.option,t,!0),r(this.settledOption,e,!0),this.doInit(e)},doInit:function(t){var e=this.option;Vg.canvasSupported||(e.realtime=!1),this._setDefaultThrottle(t),Zf(this,t);var n=this.settledOption;tT([["start","startValue"],["end","endValue"]],function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis(function(e,n,i,r){var a=this.dependentModels[e.axis][n],o=a.__dzAxisProxy||(a.__dzAxisProxy=new JI(e.name,n,this,r));t[e.name+"_"+n]=o},this)},_resetTarget:function(){var t=this.option,e=this._judgeAutoMode();eT(function(e){var n=e.axisIndex;t[n]=Vi(t[n])},this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,e=!1;eT(function(n){null!=t[n.axisIndex]&&(e=!0)},this);var n=t.orient;return null==n&&e?"orient":e?void 0:(null==n&&(t.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var t=!0,e=this.get("orient",!0),n=this.option,i=this.dependentModels;if(t){var r="vertical"===e?"y":"x";i[r+"Axis"].length?(n[r+"AxisIndex"]=[0],t=!1):tT(i.singleAxis,function(i){t&&i.get("orient",!0)===e&&(n.singleAxisIndex=[i.componentIndex],t=!1)})}t&&eT(function(e){if(t){var i=[],r=this.dependentModels[e.axis];if(r.length&&!i.length)for(var a=0,o=r.length;o>a;a++)"category"===r[a].get("type")&&i.push(a);n[e.axisIndex]=i,i.length&&(t=!1)}},this),t&&this.ecModel.eachSeries(function(t){this._isSeriesHasAllAxesTypeOf(t,"value")&&eT(function(e){var i=n[e.axisIndex],r=t.get(e.axisIndex),a=t.get(e.axisId),o=t.ecModel.queryComponents({mainType:e.axis,index:r,id:a})[0];r=o.componentIndex,u(i,r)<0&&i.push(r)})},this)},_autoSetOrient:function(){var t;this.eachTargetAxis(function(e){!t&&(t=e.name)},this),this.option.orient="y"===t?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(t,e){var n=!0;return eT(function(i){var r=t.get(i.axisIndex),a=this.dependentModels[i.axis][r];a&&a.get("type")===e||(n=!1)},this),n},_setDefaultThrottle:function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var t;return eT(function(e){if(null==t){var n=this.get(e.axisIndex);n.length&&(t=this.dependentModels[e.axis][n[0]])}},this),t},eachTargetAxis:function(t,e){var n=this.ecModel;eT(function(i){tT(this.get(i.axisIndex),function(r){t.call(e,i,r,this,n)},this)},this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},getAxisModel:function(t,e){var n=this.getAxisProxy(t,e);return n&&n.getAxisModel()},setRawRange:function(t){var e=this.option,n=this.settledOption;tT([["start","startValue"],["end","endValue"]],function(i){(null!=t[i[0]]||null!=t[i[1]])&&(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])},this),Zf(this,t)},setCalculatedRange:function(t){var e=this.option;tT(["start","startValue","end","endValue"],function(n){e[n]=t[n]})},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();return t?t.getDataPercentWindow():void 0},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var e=this._axisProxies;for(var n in e)if(e.hasOwnProperty(n)&&e[n].hostedBy(this))return e[n];for(var n in e)if(e.hasOwnProperty(n)&&!e[n].hostedBy(this))return e[n]},getRangePropMode:function(){return this._rangePropMode.slice()}}),iT=hw.extend({type:"dataZoom",render:function(t,e,n){this.dataZoomModel=t,this.ecModel=e,this.api=n},getTargetCoordInfo:function(){function t(t,e,n,i){for(var r,a=0;a<n.length;a++)if(n[a].model===t){r=n[a];break}r||n.push(r={model:t,axisModels:[],coordIndex:i}),r.axisModels.push(e)}var e=this.dataZoomModel,n=this.ecModel,i={};return e.eachTargetAxis(function(e,r){var a=n.getComponent(e.axis,r);if(a){var o=a.getCoordSysModel();o&&t(o,a,i[o.mainType]||(i[o.mainType]=[]),o.componentIndex)}},this),i}}),rT=(nT.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}}),I_),aT=oo,oT=uo,sT=y,lT=f,uT=7,hT=1,cT=30,dT="horizontal",fT="vertical",pT=5,gT=["line","bar","candlestick","scatter"],vT=iT.extend({type:"dataZoom.slider",init:function(t,e){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=e},render:function(t,e,n,i){return vT.superApply(this,"render",arguments),il(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.get("orient"),this.dataZoomModel.get("show")===!1?void this.group.removeAll():(i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),void this._updateView())},remove:function(){vT.superApply(this,"remove",arguments),rl(this,"_dispatchZoomAction")},dispose:function(){vT.superApply(this,"dispose",arguments),rl(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group;t.removeAll(),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new Jv;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},_resetLocation:function(){var t=this.dataZoomModel,e=this.api,n=this._findCoordRect(),i={width:e.getWidth(),height:e.getHeight()},r=this._orient===dT?{right:i.width-n.x-n.width,top:i.height-cT-uT,width:n.width,height:cT}:{right:uT,top:n.y,width:cT,height:n.height},a=No(t.option);f(["right","top","width","height"],function(t){"ph"===a[t]&&(a[t]=r[t])});var o=Eo(a,i,t.padding);this._location={x:o.x,y:o.y},this._size=[o.width,o.height],this._orient===fT&&this._size.reverse()},_positionGroup:function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),a=this._displayables.barGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n!==dT||r?n===dT&&r?{scale:o?[-1,1]:[-1,-1]}:n!==fT||r?{scale:o?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:o?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:o?[1,1]:[1,-1]});var s=t.getBoundingRect([a]);t.attr("position",[e.x-s.x,e.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.barGroup;n.add(new rT({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),n.add(new rT({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:y(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var e=this._size,n=t.series,i=n.getRawData(),r=n.getShadowDim?n.getShadowDim():t.otherDim;if(null!=r){var a=i.getDataExtent(r),o=.3*(a[1]-a[0]);a=[a[0]-o,a[1]+o];var l,u=[0,e[1]],h=[0,e[0]],c=[[e[0],0],[0,0]],d=[],f=h[1]/(i.count()-1),p=0,g=Math.round(i.count()/e[0]);i.each([r],function(t,e){if(g>0&&e%g)return void(p+=f);var n=null==t||isNaN(t)||""===t,i=n?0:aT(t,a,u,!0);n&&!l&&e?(c.push([c[c.length-1][0],0]),d.push([d[d.length-1][0],0])):!n&&l&&(c.push([p,0]),d.push([p,0])),c.push([p,i]),d.push([p,i]),p+=f,l=n});var v=this.dataZoomModel;this._displayables.barGroup.add(new w_({shape:{points:c},style:s({fill:v.get("dataBackgroundColor")},v.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new b_({shape:{points:d},style:v.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(e!==!1){var n,i=this.ecModel;return t.eachTargetAxis(function(r,a){var o=t.getAxisProxy(r.name,a).getTargetSeriesModels();f(o,function(t){if(!(n||e!==!0&&u(gT,t.get("type"))<0)){var o,s=i.getComponent(r.axis,a).axis,l=Xf(r.name),h=t.coordinateSystem;null!=l&&h.getOtherAxis&&(o=h.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:r.name,otherDim:l,otherAxisInverse:o}}},this)},this),n}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],n=t.handleLabels=[],i=this._displayables.barGroup,r=this._size,a=this.dataZoomModel;i.add(t.filler=new rT({draggable:!0,cursor:Yf(this._orient),drift:sT(this._onDragMove,this,"all"),onmousemove:function(t){pv(t.event)},ondragstart:sT(this._showDataInfo,this,!0),ondragend:sT(this._onDragEnd,this),onmouseover:sT(this._showDataInfo,this,!0),onmouseout:sT(this._showDataInfo,this,!1),style:{fill:a.get("fillerColor"),textPosition:"inside"}})),i.add(new rT({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:hT,fill:"rgba(0,0,0,0)"}})),lT([0,1],function(t){var r=qa(a.get("handleIcon"),{cursor:Yf(this._orient),draggable:!0,drift:sT(this._onDragMove,this,t),onmousemove:function(t){pv(t.event)},ondragend:sT(this._onDragEnd,this),onmouseover:sT(this._showDataInfo,this,!0),onmouseout:sT(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),o=r.getBoundingRect();this._handleHeight=so(a.get("handleSize"),this._size[1]),this._handleWidth=o.width/o.height*this._handleHeight,r.setStyle(a.getModel("handleStyle").getItemStyle());var s=a.get("handleColor");null!=s&&(r.style.fill=s),i.add(e[t]=r);var l=a.textStyleModel;this.group.add(n[t]=new f_({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:l.getTextColor(),textFont:l.getFont()},z2:10}))},this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[aT(t[0],[0,100],e,!0),aT(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];$I(e,i,r,n.get("zoomLock")?"all":t,null!=a.minSpan?aT(a.minSpan,o,r,!0):null,null!=a.maxSpan?aT(a.maxSpan,o,r,!0):null);var s=this._range,l=this._range=oT([aT(i[0],r,o,!0),aT(i[1],r,o,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},_updateView:function(t){var e=this._displayables,n=this._handleEnds,i=oT(n.slice()),r=this._size;lT([0,1],function(t){var i=e.handles[t],a=this._handleHeight;i.attr({scale:[a/2,a/2],position:[n[t],r[1]/2-a/2]})},this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]}),this._updateDataInfo(t)},_updateDataInfo:function(t){function e(t){var e=Wa(i.handles[t].parent,this.group),n=Za(0===t?"right":"left",e),s=this._handleWidth/2+pT,l=Ga([c[t]+(0===t?-s:s),this._size[1]/2],e);r[t].setStyle({x:l[0],y:l[1],textVerticalAlign:a===dT?"middle":n,textAlign:a===dT?n:"center",text:o[t]})}var n=this.dataZoomModel,i=this._displayables,r=i.handleLabels,a=this._orient,o=["",""];if(n.get("showDetail")){var s=n.findRepresentativeAxisProxy();if(s){var l=s.getAxisModel().axis,u=this._range,h=t?s.calculateDataWindow({start:u[0],end:u[1]}).valueWindow:s.getDataValueWindow();o=[this._formatLabel(h[0],l),this._formatLabel(h[1],l)]}}var c=oT(this._handleEnds.slice());e.call(this,0),e.call(this,1)},_formatLabel:function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),r=n.get("labelPrecision");(null==r||"auto"===r)&&(r=e.getPixelPrecision());var a=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel(Math.round(t)):t.toFixed(Math.min(r,20));return w(i)?i(t,a):b(i)?i.replace("{value}",a):a},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t)},_onDragMove:function(t,e,n){this._dragging=!0;var i=this._displayables.barGroup.getLocalTransform(),r=Ga([e,n],i,!0),a=this._updateInterval(t,r[0]),o=this.dataZoomModel.get("realtime");this._updateView(!o),a&&o&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction()},_onClickPanelClick:function(t){var e=this._size,n=this._displayables.barGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,a=this._updateInterval("all",n[0]-r);this._updateView(),a&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_findCoordRect:function(){var t;if(lT(this.getTargetCoordInfo(),function(e){if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}}),!t){var e=this.api.getWidth(),n=this.api.getHeight();t={x:.2*e,y:.2*n,width:.6*e,height:.6*n}}return t}});su({getTargetSeries:function(t){var e=N();return t.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(t,n,i){var r=i.getAxisProxy(t.name,n);f(r.getTargetSeriesModels(),function(t){e.set(t.uid,t)})})}),e},modifyOutputEnd:!0,overallReset:function(t,e){t.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(t,n,i){i.getAxisProxy(t.name,n).reset(i,e)}),t.eachTargetAxis(function(t,n,i){i.getAxisProxy(t.name,n).filterData(i,e)})}),t.eachComponent("dataZoom",function(t){var e=t.findRepresentativeAxisProxy(),n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})})}}),uu("dataZoom",function(t,e){var n=Ef(y(e.eachComponent,e,"dataZoom"),jI,function(t,e){return t.get(e.axisIndex)}),i=[];e.eachComponent({mainType:"dataZoom",query:t},function(t){i.push.apply(i,n(t).nodes)}),f(i,function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})}),nT.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});var mT="\x00_ec_interaction_mutex";uu({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),c(Kf,lv);var yT="\x00_ec_dataZoom_roams",_T=y,xT=iT.extend({type:"dataZoom.inside",init:function(){this._range},render:function(t,e,n){xT.superApply(this,"render",arguments),this._range=t.getPercentRange(),f(this.getTargetCoordInfo(),function(e,i){var r=p(e,function(t){return lp(t.model)});f(e,function(e){var a=e.model,o={};f(["pan","zoom","scrollMove"],function(t){o[t]=_T(wT[t],this,e,i)},this),op(n,{coordId:lp(a),allCoordIds:r,containsPoint:function(t,e,n){return a.coordinateSystem.containPoint([e,n])},dataZoomId:t.id,dataZoomModel:t,getRange:o})},this)},this)},dispose:function(){sp(this.api,this.dataZoomModel.id),xT.superApply(this,"dispose",arguments),this._range=null}}),wT={zoom:function(t,e,n,i){var r=this._range,a=r.slice(),o=t.axisModels[0];if(o){var s=bT[e](null,[i.originX,i.originY],o,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/i.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return $I(0,a,[0,100],0,h.minSpan,h.maxSpan),this._range=a,r[0]!==a[0]||r[1]!==a[1]?a:void 0}},pan:pp(function(t,e,n,i,r,a){var o=bT[i]([a.oldX,a.oldY],[a.newX,a.newY],e,r,n);return o.signal*(t[1]-t[0])*o.pixel/o.pixelLength}),scrollMove:pp(function(t,e,n,i,r,a){var o=bT[i]([0,0],[a.scrollDelta,a.scrollDelta],e,r,n);return o.signal*(t[1]-t[0])*a.scrollDelta})},bT={grid:function(t,e,n,i,r){var a=n.axis,o={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===a.dim?(o.pixel=e[0]-t[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(t,e,n,i,r){var a=n.axis,o={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(o.pixel=e[0]-t[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(t,e,n,i,r){var a=n.axis,o=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===a.orient?(s.pixel=e[0]-t[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}},MT=["rect","polygon","keep","clear"],ST=function(t,e){var n=t&&t.brush;if(x(n)||(n=n?[n]:[]),n.length){var i=[];f(n,function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))});var r=t&&t.toolbox;x(r)&&(r=r[0]),r||(r={feature:{}},t.toolbox=[r]);var a=r.feature||(r.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,i),gp(s),e&&!s.length&&s.push.apply(s,MT)}},IT=f,TT=M,CT=-1,AT=function(t){var e=t.mappingMethod,n=t.type,r=this.option=i(t);this.type=n,this.mappingMethod=e,this._normalizeData=kT[e];var a=DT[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._doMap=a._doMap[e],"piecewise"===e?(yp(r),vp(r)):"category"===e?r.categories?mp(r):yp(r,!0):(L("linear"!==e||r.dataExtent),yp(r))};AT.prototype={constructor:AT,mapValueToVisual:function(t){var e=this._normalizeData(t);return this._doMap(e,t)},getNormalizer:function(){return y(this._normalizeData,this)}};var DT=AT.visualHandlers={color:{applyVisual:wp("color"),getColorMapper:function(){var t=this.option;return y("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),bp.call(this,t)}:function(e,n,i){var r=!!i;return!n&&(e=this._normalizeData(e)),i=tn(e,t.parsedVisual,i),r?i:an(i,"rgba")},this)},_doMap:{linear:function(t){return an(tn(t,this.option.parsedVisual),"rgba")},category:bp,piecewise:function(t,e){var n=Ip.call(this,e);return null==n&&(n=an(tn(t,this.option.parsedVisual),"rgba")),n},fixed:Mp}},colorHue:_p(function(t,e){return nn(t,e)}),colorSaturation:_p(function(t,e){return nn(t,null,e)}),colorLightness:_p(function(t,e){return nn(t,null,null,e)}),colorAlpha:_p(function(t,e){return rn(t,e)}),opacity:{applyVisual:wp("opacity"),_doMap:Sp([0,1])},liftZ:{applyVisual:wp("liftZ"),_doMap:{linear:Mp,category:Mp,piecewise:Mp,fixed:Mp}},symbol:{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);if(b(i))n("symbol",i);else if(TT(i))for(var r in i)i.hasOwnProperty(r)&&n(r,i[r])},_doMap:{linear:xp,category:bp,piecewise:function(t,e){var n=Ip.call(this,e);return null==n&&(n=xp.call(this,t)),n},fixed:Mp}},symbolSize:{applyVisual:wp("symbolSize"),_doMap:Sp([0,1])}},kT={linear:function(t){return oo(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=AT.findPieceIndex(t,e,!0);return null!=n?oo(n,[0,e.length-1],[0,1],!0):void 0},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?CT:e},fixed:V};AT.listVisualTypes=function(){var t=[];return f(DT,function(e,n){t.push(n)}),t},AT.addVisualHandler=function(t,e){DT[t]=e},AT.isValidType=function(t){return DT.hasOwnProperty(t)},AT.eachVisual=function(t,e,n){M(t)?f(t,e,n):e.call(n,t)},AT.mapVisual=function(t,e,n){var i,r=x(t)?[]:M(t)?{}:(i=!0,null);return AT.eachVisual(t,function(t,a){var o=e.call(n,t,a);i?r=o:r[a]=o}),r},AT.retrieveVisuals=function(t){var e,n={};return t&&IT(DT,function(i,r){t.hasOwnProperty(r)&&(n[r]=t[r],e=!0)}),e?n:null},AT.prepareVisualTypes=function(t){if(TT(t)){var e=[];IT(t,function(t,n){e.push(n)}),t=e}else{if(!x(t))return[];t=t.slice()}return t.sort(function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1}),t},AT.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},AT.findPieceIndex=function(t,e,n){function i(e,n){var i=Math.abs(e-t);a>i&&(a=i,r=n)}for(var r,a=1/0,o=0,s=e.length;s>o;o++){var l=e[o].value;if(null!=l){if(l===t||"string"==typeof l&&l===t+"")return o;n&&i(l,o)}}for(var o=0,s=e.length;s>o;o++){var u=e[o],h=u.interval,c=u.close;if(h){if(h[0]===-1/0){if(Cp(c[1],t,h[1]))return o}else if(1/0===h[1]){if(Cp(c[0],h[0],t))return o}else if(Cp(c[0],h[0],t)&&Cp(c[1],t,h[1]))return o;n&&i(h[0],o),n&&i(h[1],o)}}return n?1/0===t?e.length-1:t===-1/0?0:r:void 0};var PT=f,OT={lineX:Op(0),lineY:Op(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&Eh(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var r=t.x,a=t.y,o=t.width,s=t.height,l=i[0];return Eh(i,r,a)||Eh(i,r+o,a)||Eh(i,r,a+s)||Eh(i,r+o,a+s)||bn.create(t).contain(l[0],l[1])||ja(r,a,r+o,a,i)||ja(r,a,r,a+s,i)||ja(r+o,a,r+o,a+s,i)||ja(r,a+s,r+o,a+s,i)?!0:void 0}}},LT={axisPointer:1,tooltip:1,brush:1},zT=f,BT=u,ET=_,RT=["dataToPoint","pointToData"],NT=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],FT=Fp.prototype;
 
- FT.setOutputRanges=function(t,e){this.matchOutputRanges(t,e,function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=GT[t.brushType](0,n,e);t.__rangeOffset={offset:ZT[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}})},FT.matchOutputRanges=function(t,e,n){zT(t,function(t){var i=this.findTargetInfo(t,e);i&&i!==!0&&f(i.coordSyses,function(i){var r=GT[t.brushType](1,i,t.range);n(t,r.values,i,e)})},this)},FT.setInputRanges=function(t,e){zT(t,function(t){var n=this.findTargetInfo(t,e);if(t.range=t.range||[],n&&n!==!0){t.panelId=n.panelId;var i=GT[t.brushType](0,n.coordSys,t.coordRange),r=t.__rangeOffset;t.range=r?ZT[t.brushType](i.values,r.offset,Zp(i.xyMinMax,r.xyMinMax)):i.values}},this)},FT.makePanelOpts=function(t,e){return p(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e&&e(n),clipPath:Bp(i),isTargetByCursor:Rp(i,t,n.coordSysModel),getLinearBrushOtherExtent:Ep(i)}})},FT.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return i===!0||i&&BT(i.coordSyses,e.coordinateSystem)>=0},FT.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=Hp(e,t),r=0;r<n.length;r++){var a=n[r],o=t.panelId;if(o){if(a.panelId===o)return a}else for(var r=0;r<HT.length;r++)if(HT[r](i,a))return a}return!0};var VT={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,r=t.gridModels,a=N(),o={},s={};(n||i||r)&&(zT(n,function(t){var e=t.axis.grid.model;a.set(e.id,e),o[e.id]=!0}),zT(i,function(t){var e=t.axis.grid.model;a.set(e.id,e),s[e.id]=!0}),zT(r,function(t){a.set(t.id,t),o[t.id]=!0,s[t.id]=!0}),a.each(function(t){var r=t.coordinateSystem,a=[];zT(r.getCartesians(),function(t){(BT(n,t.getAxis("x").model)>=0||BT(i,t.getAxis("y").model)>=0)&&a.push(t)}),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:a[0],coordSyses:a,getPanelRect:WT.grid,xAxisDeclared:o[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,e){zT(t.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:WT.geo})})}},HT=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],WT={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Wa(t)),e}},GT={lineX:ET(Wp,0),lineY:ET(Wp,1),rect:function(t,e,n){var i=e[RT[t]]([n[0][0],n[1][0]]),r=e[RT[t]]([n[0][1],n[1][1]]),a=[Vp([i[0],r[0]]),Vp([i[1],r[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n){var i=[[1/0,-1/0],[1/0,-1/0]],r=p(n,function(n){var r=e[RT[t]](n);return i[0][0]=Math.min(i[0][0],r[0]),i[1][0]=Math.min(i[1][0],r[1]),i[0][1]=Math.max(i[0][1],r[0]),i[1][1]=Math.max(i[1][1],r[1]),r});return{values:r,xyMinMax:i}}},ZT={lineX:ET(Gp,0),lineY:ET(Gp,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return p(t,function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]})}},XT=["inBrush","outOfBrush"],YT="__ecBrushSelect",UT="__ecInBrushSelectEvent",qT=fb.VISUAL.BRUSH;du(qT,function(t,e,n){t.eachComponent({mainType:"brush"},function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1});var i=e.brushTargetManager=new Fp(e.option,t);i.setInputRanges(e.areas,t)})}),fu(qT,function(t,e,n){var r,a,o=[];t.eachComponent({mainType:"brush"},function(e,n){function l(t){return"all"===v||m[t]}function u(t){return!!t.length}function h(t,e){var n=t.coordinateSystem;w|=n.hasAxisBrushed(),l(e)&&n.eachActiveState(t.getData(),function(t,e){"active"===t&&(y[e]=1)})}function c(n,i,r){var a=jp(n);if(a&&!$p(e,i)&&(f(b,function(i){a[i.brushType]&&e.brushTargetManager.controlSeries(i,n,t)&&r.push(i),w|=u(r)}),l(i)&&u(r))){var o=n.getData();o.each(function(t){qp(a,r,o,t)&&(y[t]=1)})}}var d={brushId:e.id,brushIndex:n,brushName:e.name,areas:i(e.areas),selected:[]};o.push(d);var g=e.option,v=g.brushLink,m=[],y=[],_=[],w=0;n||(r=g.throttleType,a=g.throttleDelay);var b=p(e.areas,function(t){return Kp(s({boundingRect:jT[t.brushType](t)},t))}),M=Dp(e.option,XT,function(t){t.mappingMethod="fixed"});x(v)&&f(v,function(t){m[t]=1}),t.eachSeries(function(t,e){var n=_[e]=[];"parallel"===t.subType?h(t,e,n):c(t,e,n)}),t.eachSeries(function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};d.selected.push(n);var i=jp(t),r=_[e],a=t.getData(),o=l(e)?function(t){return y[t]?(n.dataIndex.push(a.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(t){return qp(i,r,a,t)?(n.dataIndex.push(a.getRawIndex(t)),"inBrush"):"outOfBrush"};(l(e)?w:u(r))&&Pp(XT,M,a,o)})}),Yp(e,r,a,o,n)});var jT={lineX:V,lineY:V,rect:function(t){return Qp(t.range)},polygon:function(t){for(var e,n=t.range,i=0,r=n.length;r>i;i++){e=e||[[1/0,-1/0],[1/0,-1/0]];var a=n[i];a[0]<e[0][0]&&(e[0][0]=a[0]),a[0]>e[0][1]&&(e[0][1]=a[0]),a[1]<e[1][0]&&(e[1][0]=a[1]),a[1]>e[1][1]&&(e[1][1]=a[1])}return e&&Qp(e)}},$T=["#ddd"],KT=(vu({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,e){var n=this.option;!e&&kp(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:$T},i.hasOwnProperty("liftZ")||(i.liftZ=5)},setAreas:function(t){t&&(this.areas=p(t,function(t){return Jp(this.option,t)},this))},setBrushOption:function(t){this.brushOption=Jp(this.option,t),this.brushType=this.brushOption.brushType}}),_),QT=f,JT=p,tC=Math.min,eC=Math.max,nC=Math.pow,iC=1e4,rC=6,aC=6,oC="globalPan",sC={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},lC={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},uC={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},hC=0;tg.prototype={constructor:tg,enableBrush:function(t){return this._brushType&&ng(this),t.brushType&&eg(this,t),this},setPanels:function(t){if(t&&t.length){var e=this._panels={};f(t,function(t){e[t.panelId]=i(t)})}else this._panels=null;return this},mount:function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({position:t.position||[0,0],rotation:t.rotation||0,scale:t.scale||[1,1]}),this._transform=e.getLocalTransform(),this},eachCover:function(t,e){QT(this._covers,t,e)},updateCovers:function(t){function e(t,e){return(null!=t.id?t.id:s+e)+"-"+t.brushType}function n(t,n){return e(t.__brushOption,n)}function a(e,n){var i=t[e];if(null!=n&&l[n]===c)u[e]=l[n];else{var r=u[e]=null!=n?(l[n].__brushOption=i,l[n]):rg(h,ig(h,i));sg(h,r)}}function o(t){l[t]!==c&&h.group.remove(l[t])}t=p(t,function(t){return r(i(uC),t,!0)});var s="\x00-brush-index-",l=this._covers,u=this._covers=[],h=this,c=this._creatingCover;return new Su(l,t,n,e).add(a).update(a).remove(o).execute(),this},unmount:function(){return this.enableBrush(!1),cg(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},c(tg,lv);var cC={mousedown:function(t){if(this._dragging)Lg(this,t);else if(!t.target||!t.target.draggable){Dg(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var n=this._creatingPanel=ug(this,t,e);n&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=this._lastMouseMovePoint;e.x=t.offsetX,e.y=t.offsetY;var n=this.group.transformCoordToLocal(e.x,e.y);if(Ag(this,t,n),this._dragging){Dg(t);var i=Pg(this,t,n,!1);i&&dg(this,i)}},mouseup:function(t){Lg(this,t)},globalout:function(t){Lg(this,t,!0)}},dC={lineX:zg(0),lineY:zg(1),rect:{createCover:function(t,e){return gg(KT(Mg,function(t){return t},function(t){return t}),t,e,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(t){var e=pg(t);return xg(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,i){vg(t,e,n,i)},updateCommon:mg,contain:kg},polygon:{createCover:function(t,e){var n=new Jv;return n.add(new b_({name:"main",style:_g(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new w_({name:"main",draggable:!0,drift:KT(Sg,t,e),ondragend:KT(dg,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n){e.childAt(0).setShape({points:Tg(t,e,n)})},updateCommon:mg,contain:kg}};mu({type:"brush",init:function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new tg(e.getZr())).on("brush",y(this._onBrush,this)).mount()},render:function(t){return this.model=t,Bg.apply(this,arguments)},updateTransform:Bg,updateView:Bg,dispose:function(){this._brushController.dispose()},_onBrush:function(t,e){var n=this.model.id;this.model.brushTargetManager.setOutputRanges(t,this.ecModel),(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:i(t),$from:n}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:i(t),$from:n})}}),uu({type:"brush",event:"brush"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(e){e.setAreas(t.areas)})}),uu({type:"brushSelect",event:"brushSelected",update:"none"},function(){}),uu({type:"brushEnd",event:"brushEnd",update:"none"},function(){});var fC=ww.toolbox.brush;Eg.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:i(fC.title)};var pC=Eg.prototype;pC.render=pC.updateView=function(t,e){var n,i,r;e.eachComponent({mainType:"brush"},function(t){n=t.brushType,i=t.brushOption.brushMode||"single",r|=t.areas.length}),this._brushType=n,this._brushMode=i,f(t.get("type",!0),function(e){t.setIconStatus(e,("keep"===e?"multiple"===i:"clear"===e?r:e===n)?"emphasis":"normal")})},pC.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return f(t.get("type",!0),function(t){e[t]&&(n[t]=e[t])}),n},pC.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i===n?!1:n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},ou(ST),t.version=Jw,t.dependencies=tb,t.PRIORITY=fb,t.init=Jl,t.connect=tu,t.disConnect=eu,t.disconnect=Lb,t.dispose=nu,t.getInstanceByDom=iu,t.getInstanceById=ru,t.registerTheme=au,t.registerPreprocessor=ou,t.registerProcessor=su,t.registerPostUpdate=lu,t.registerAction=uu,t.registerCoordinateSystem=hu,t.getCoordinateSystemDimensions=cu,t.registerLayout=du,t.registerVisual=fu,t.registerLoading=gu,t.extendComponentModel=vu,t.extendComponentView=mu,t.extendSeriesModel=yu,t.extendChartView=_u,t.setCanvasCreator=xu,t.registerMap=wu,t.getMap=bu,t.dataTool=zb,t.zrender=$m,t.number=sx,t.format=px,t.throttle=nl,t.helper=BM,t.matrix=wv,t.vector=ov,t.color=Vv,t.parseGeoJSON=RM,t.parseGeoJson=HM,t.util=WM,t.graphic=GM,t.List=Yb,t.Model=Ja,t.Axis=VM,t.env=Vg});
 
 
  |