Master.CanYinWu.Web/Content/js/echarts.min.js
(开头部分) 732KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
!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={},i={},n=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge\/([\d.]+)/),r=/micromessenger/i.test(t);return n&&(i.firefox=!0,i.version=n[1]),a&&(i.ie=!0,i.version=a[1]),o&&(i.edge=!0,i.version=o[1]),r&&(i.weChat=!0),{browser:i,os:e,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!=typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!i.ie&&!i.edge,pointerEventsSupported:"onpointerdown"in window&&(i.edge||i.ie&&i.version>=11),domSupported:"undefined"!=typeof document}}function i(t,e){"createCanvas"===t&&(Wb=null),Gb[t]=e}function n(t){if(null==t||"object"!=typeof t)return t;var e=t,i=Ob.call(t);if("[object Array]"===i){if(!N(t)){e=[];for(var a=0,o=t.length;o>a;a++)e[a]=n(t[a])}}else if(Pb[i]){if(!N(t)){var r=t.constructor;if(t.constructor.from)e=r.from(t);else{e=new r(t.length);for(var a=0,o=t.length;o>a;a++)e[a]=n(t[a])}}}else if(!kb[i]&&!N(t)&&!T(t)){e={};for(var s in t)t.hasOwnProperty(s)&&(e[s]=n(t[s]))}return e}function a(t,e,i){if(!S(e)||!S(t))return i?n(e):t;for(var o in e)if(e.hasOwnProperty(o)){var r=t[o],s=e[o];!S(s)||!S(r)||_(s)||_(r)||T(s)||T(r)||M(s)||M(r)||N(s)||N(r)?!i&&o in t||(t[o]=n(e[o],!0)):a(r,s,i)}return t}function o(t,e){for(var i=t[0],n=1,o=t.length;o>n;n++)i=a(i,t[n],e);return i}function r(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function s(t,e,i){for(var n in e)e.hasOwnProperty(n)&&(i?null!=e[n]:null==t[n])&&(t[n]=e[n]);return t}function l(){return Wb||(Wb=Fb().getContext("2d")),Wb}function u(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;n>i;i++)if(t[i]===e)return i}return-1}function h(t,e){function i(){}var n=t.prototype;i.prototype=e.prototype,t.prototype=new i;for(var a in n)t.prototype[a]=n[a];t.prototype.constructor=t,t.superClass=e}function c(t,e,i){t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,s(t,e,i)}function d(t){return t?"string"==typeof t?!1:"number"==typeof t.length:void 0}function f(t,e,i){if(t&&e)if(t.forEach&&t.forEach===Rb)t.forEach(e,i);else if(t.length===+t.length)for(var n=0,a=t.length;a>n;n++)e.call(i,t[n],n,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(i,t[o],o,t)}function p(t,e,i){if(t&&e){if(t.map&&t.map===Bb)return t.map(e,i);for(var n=[],a=0,o=t.length;o>a;a++)n.push(e.call(i,t[a],a,t));return n}}function g(t,e,i,n){if(t&&e){if(t.reduce&&t.reduce===Vb)return t.reduce(e,i,n);for(var a=0,o=t.length;o>a;a++)i=e.call(n,i,t[a],a,t);return i}}function m(t,e,i){if(t&&e){if(t.filter&&t.filter===Nb)return t.filter(e,i);for(var n=[],a=0,o=t.length;o>a;a++)e.call(i,t[a],a,t)&&n.push(t[a]);return n}}function v(t,e,i){if(t&&e)for(var n=0,a=t.length;a>n;n++)if(e.call(i,t[n],n,t))return t[n]}function y(t,e){var i=zb.call(arguments,2);return function(){return t.apply(e,i.concat(zb.call(arguments)))}}function x(t){var e=zb.call(arguments,1);return function(){return t.apply(this,e.concat(zb.call(arguments)))}}function _(t){return"[object Array]"===Ob.call(t)}function w(t){return"function"==typeof t}function b(t){return"[object String]"===Ob.call(t)}function S(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function M(t){return!!kb[Ob.call(t)]}function I(t){return!!Pb[Ob.call(t)]}function T(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function A(t){return t!==t}function D(){for(var t=0,e=arguments.length;e>t;t++)if(null!=arguments[t])return arguments[t]}function C(t,e){return null!=t?t:e}function L(t,e,i){return null!=t?t:null!=e?e:i}function k(){return Function.call.apply(zb,arguments)}function P(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 O(t,e){if(!t)throw new Error(e)}function E(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function R(t){t[Hb]=!0}function N(t){return t[Hb]}function z(t){function e(t,e){i?n.set(t,e):n.set(e,t)}var i=_(t);this.data={};var n=this;t instanceof z?t.each(e):t&&f(t,e)}function B(t){return new z(t)}function V(t,e){for(var i=new t.constructor(t.length+e.length),n=0;n<t.length;n++)i[n]=t[n];var a=t.length;for(n=0;n<e.length;n++)i[n+a]=e[n];return i}function G(){}function F(t,e){var i=new Ub(2);return null==t&&(t=0),null==e&&(e=0),i[0]=t,i[1]=e,i}function W(t,e){return t[0]=e[0],t[1]=e[1],t}function H(t){var e=new Ub(2);return e[0]=t[0],e[1]=t[1],e}function Z(t,e,i){return t[0]=e,t[1]=i,t}function U(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t}function X(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t}function Y(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t}function j(t){return Math.sqrt(q(t))}function q(t){return t[0]*t[0]+t[1]*t[1]}function K(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t}function $(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t}function J(t,e){return t[0]*e[0]+t[1]*e[1]}function Q(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t}function te(t,e){var i=j(e);return 0===i?(t[0]=0,t[1]=0):(t[0]=e[0]/i,t[1]=e[1]/i),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 ie(t,e){return(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[1]=-e[1],t}function ae(t,e,i,n){return t[0]=e[0]+n*(i[0]-e[0]),t[1]=e[1]+n*(i[1]-e[1]),t}function oe(t,e,i){var n=e[0],a=e[1];return t[0]=i[0]*n+i[2]*a+i[4],t[1]=i[1]*n+i[3]*a+i[5],t}function re(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t}function se(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[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 i=t._$eventProcessor;return null!=e&&i&&i.normalizeQuery&&(e=i.normalizeQuery(e)),e}function ce(t,e,i,n,a,o){var r=t._$handlers;if("function"==typeof i&&(a=n,n=i,i=null),!n||!e)return t;i=he(t,i),r[e]||(r[e]=[]);for(var s=0;s<r[e].length;s++)if(r[e][s].h===n)return t;var l={h:n,one:o,query:i,ctx:a||t,callAtLast:n.zrEventfulCallAtLast},u=r[e].length-1,h=r[e][u];return h&&h.callAtLast?r[e].splice(u,0,l):r[e].push(l),t}function de(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}function fe(t,e,i,n){return i=i||{},n||!Lb.canvasSupported?pe(t,e,i):Lb.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(i.zrX=e.layerX,i.zrY=e.layerY):null!=e.offsetX?(i.zrX=e.offsetX,i.zrY=e.offsetY):pe(t,e,i),i}function pe(t,e,i){var n=de(t);i.zrX=e.clientX-n.left,i.zrY=e.clientY-n.top}function ge(t,e,i){if(e=e||window.event,null!=e.zrX)return e;var n=e.type,a=n&&n.indexOf("touch")>=0;if(a){var o="touchend"!==n?e.targetTouches[0]:e.changedTouches[0];o&&fe(t,o,e,i)}else fe(t,e,e,i),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var r=e.button;return null==e.which&&void 0!==r&&tS.test(e.type)&&(e.which=1&r?1:2&r?3:4&r?2:0),e}function me(t,e,i){Qb?t.addEventListener(e,i):t.attachEvent("on"+e,i)}function ve(t,e,i){Qb?t.removeEventListener(e,i):t.detachEvent("on"+e,i)}function ye(t){return 2===t.which||3===t.which}function xe(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function _e(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function we(t,e,i){return{type:t,event:i,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:be}}function be(){eS(this.event)}function Se(){}function Me(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){for(var n,a=t;a;){if(a.clipPath&&!a.clipPath.contain(e,i))return!1;a.silent&&(n=!0),a=a.parent}return n?aS:!0}return!1}function Ie(){var t=new sS(6);return Te(t),t}function Te(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Ae(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 De(t,e,i){var n=e[0]*i[0]+e[2]*i[1],a=e[1]*i[0]+e[3]*i[1],o=e[0]*i[2]+e[2]*i[3],r=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=a,t[2]=o,t[3]=r,t[4]=s,t[5]=l,t}function Ce(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t}function Le(t,e,i){var n=e[0],a=e[2],o=e[4],r=e[1],s=e[3],l=e[5],u=Math.sin(i),h=Math.cos(i);return t[0]=n*h+r*u,t[1]=-n*u+r*h,t[2]=a*h+s*u,t[3]=-a*u+h*s,t[4]=h*o+u*l,t[5]=h*l-u*o,t}function ke(t,e,i){var n=i[0],a=i[1];return t[0]=e[0]*n,t[1]=e[1]*a,t[2]=e[2]*n,t[3]=e[3]*a,t[4]=e[4]*n,t[5]=e[5]*a,t}function Pe(t,e){var i=e[0],n=e[2],a=e[4],o=e[1],r=e[3],s=e[5],l=i*r-o*n;return l?(l=1/l,t[0]=r*l,t[1]=-o*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-r*a)*l,t[5]=(o*a-i*s)*l,t):null}function Oe(t){var e=Ie();return Ae(e,t),e}function Ee(t){return t>hS||-hS>t}function Re(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 Ne(t){return t=Math.round(t),0>t?0:t>255?255:t}function ze(t){return t=Math.round(t),0>t?0:t>360?360:t}function Be(t){return 0>t?0:t>1?1:t}function Ve(t){return Ne(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}function Ge(t){return Be(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}function Fe(t,e,i){return 0>i?i+=1:i>1&&(i-=1),1>6*i?t+(e-t)*i*6:1>2*i?e:2>3*i?t+(e-t)*(2/3-i)*6:t}function We(t,e,i){return t+(e-t)*i}function He(t,e,i,n,a){return t[0]=e,t[1]=i,t[2]=n,t[3]=a,t}function Ze(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function Ue(t,e){MS&&Ze(MS,e),MS=SS.put(t,MS||e.slice())}function Xe(t,e){if(t){e=e||[];var i=SS.get(t);if(i)return Ze(e,i);t+="";var n=t.replace(/ /g,"").toLowerCase();if(n in bS)return Ze(e,bS[n]),Ue(t,e),e;if("#"!==n.charAt(0)){var a=n.indexOf("("),o=n.indexOf(")");if(-1!==a&&o+1===n.length){var r=n.substr(0,a),s=n.substr(a+1,o-(a+1)).split(","),l=1;switch(r){case"rgba":if(4!==s.length)return void He(e,0,0,0,1);l=Ge(s.pop());case"rgb":return 3!==s.length?void He(e,0,0,0,1):(He(e,Ve(s[0]),Ve(s[1]),Ve(s[2]),l),Ue(t,e),e);case"hsla":return 4!==s.length?void He(e,0,0,0,1):(s[3]=Ge(s[3]),Ye(s,e),Ue(t,e),e);case"hsl":return 3!==s.length?void He(e,0,0,0,1):(Ye(s,e),Ue(t,e),e);default:return}}He(e,0,0,0,1)}else{if(4===n.length){var u=parseInt(n.substr(1),16);return u>=0&&4095>=u?(He(e,(3840&u)>>4|(3840&u)>>8,240&u|(240&u)>>4,15&u|(15&u)<<4,1),Ue(t,e),e):void He(e,0,0,0,1)}if(7===n.length){var u=parseInt(n.substr(1),16);return u>=0&&16777215>=u?(He(e,(16711680&u)>>16,(65280&u)>>8,255&u,1),Ue(t,e),e):void He(e,0,0,0,1)}}}}function Ye(t,e){var i=(parseFloat(t[0])%360+360)%360/360,n=Ge(t[1]),a=Ge(t[2]),o=.5>=a?a*(n+1):a+n-a*n,r=2*a-o;return e=e||[],He(e,Ne(255*Fe(r,o,i+1/3)),Ne(255*Fe(r,o,i)),Ne(255*Fe(r,o,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function je(t){if(t){var e,i,n=t[0]/255,a=t[1]/255,o=t[2]/255,r=Math.min(n,a,o),s=Math.max(n,a,o),l=s-r,u=(s+r)/2;if(0===l)e=0,i=0;else{i=.5>u?l/(s+r):l/(2-s-r);var h=((s-n)/6+l/2)/l,c=((s-a)/6+l/2)/l,d=((s-o)/6+l/2)/l;n===s?e=d-c:a===s?e=1/3+h-d:o===s&&(e=2/3+c-h),0>e&&(e+=1),e>1&&(e-=1)}var f=[360*e,i,u];return null!=t[3]&&f.push(t[3]),f}}function qe(t,e){var i=Xe(t);if(i){for(var n=0;3>n;n++)i[n]=0>e?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0,i[n]>255?i[n]=255:t[n]<0&&(i[n]=0);return ei(i,4===i.length?"rgba":"rgb")}}function Ke(t){var e=Xe(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function $e(t,e,i){if(e&&e.length&&t>=0&&1>=t){i=i||[];var n=t*(e.length-1),a=Math.floor(n),o=Math.ceil(n),r=e[a],s=e[o],l=n-a;return i[0]=Ne(We(r[0],s[0],l)),i[1]=Ne(We(r[1],s[1],l)),i[2]=Ne(We(r[2],s[2],l)),i[3]=Be(We(r[3],s[3],l)),i}}function Je(t,e,i){if(e&&e.length&&t>=0&&1>=t){var n=t*(e.length-1),a=Math.floor(n),o=Math.ceil(n),r=Xe(e[a]),s=Xe(e[o]),l=n-a,u=ei([Ne(We(r[0],s[0],l)),Ne(We(r[1],s[1],l)),Ne(We(r[2],s[2],l)),Be(We(r[3],s[3],l))],"rgba");return i?{color:u,leftIndex:a,rightIndex:o,value:n}:u}}function Qe(t,e,i,n){return t=Xe(t),t?(t=je(t),null!=e&&(t[0]=ze(e)),null!=i&&(t[1]=Ge(i)),null!=n&&(t[2]=Ge(n)),ei(Ye(t),"rgba")):void 0}function ti(t,e){return t=Xe(t),t&&null!=e?(t[3]=Be(e),ei(t,"rgba")):void 0}function ei(t,e){if(t&&t.length){var i=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(i+=","+t[3]),e+"("+i+")"}}function ii(t,e){return t[e]}function ni(t,e,i){t[e]=i}function ai(t,e,i){return(e-t)*i+t}function oi(t,e,i){return i>.5?e:t}function ri(t,e,i,n,a){var o=t.length;if(1===a)for(var r=0;o>r;r++)n[r]=ai(t[r],e[r],i);else for(var s=o&&t[0].length,r=0;o>r;r++)for(var l=0;s>l;l++)n[r][l]=ai(t[r][l],e[r][l],i)}function si(t,e,i){var n=t.length,a=e.length;if(n!==a){var o=n>a;if(o)t.length=a;else for(var r=n;a>r;r++)t.push(1===i?e[r]:DS.call(e[r]))}for(var s=t[0]&&t[0].length,r=0;r<t.length;r++)if(1===i)isNaN(t[r])&&(t[r]=e[r]);else for(var l=0;s>l;l++)isNaN(t[r][l])&&(t[r][l]=e[r][l])}function li(t,e,i){if(t===e)return!0;var n=t.length;if(n!==e.length)return!1;if(1===i){for(var a=0;n>a;a++)if(t[a]!==e[a])return!1}else for(var o=t[0].length,a=0;n>a;a++)for(var r=0;o>r;r++)if(t[a][r]!==e[a][r])return!1;return!0}function ui(t,e,i,n,a,o,r,s,l){var u=t.length;if(1===l)for(var h=0;u>h;h++)s[h]=hi(t[h],e[h],i[h],n[h],a,o,r);else for(var c=t[0].length,h=0;u>h;h++)for(var d=0;c>d;d++)s[h][d]=hi(t[h][d],e[h][d],i[h][d],n[h][d],a,o,r)}function hi(t,e,i,n,a,o,r){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*r+(-3*(e-i)-2*s-l)*o+s*a+e}function ci(t){if(d(t)){var e=t.length;if(d(t[0])){for(var i=[],n=0;e>n;n++)i.push(DS.call(t[n]));return i}return DS.call(t)}return t}function di(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function fi(t){var e=t[t.length-1].value;return d(e&&e[0])?2:1}function pi(t,e,i,n,a,o){var r=t._getter,s=t._setter,l="spline"===e,u=n.length;if(u){var h,c=n[0].value,f=d(c),p=!1,g=!1,m=f?fi(n):0;n.sort(function(t,e){return t.time-e.time}),h=n[u-1].time;for(var v=[],y=[],x=n[0].value,_=!0,w=0;u>w;w++){v.push(n[w].time/h);var b=n[w].value;if(f&&li(b,x,m)||!f&&b===x||(_=!1),x=b,"string"==typeof b){var S=Xe(b);S?(b=S,p=!0):g=!0}y.push(b)}if(o||!_){for(var M=y[u-1],w=0;u-1>w;w++)f?si(y[w],M,m):!isNaN(y[w])||isNaN(M)||g||p||(y[w]=M);f&&si(r(t._target,a),M,m);var I,T,A,D,C,L,k=0,P=0;if(p)var O=[0,0,0,0];var E=function(t,e){var i;if(0>e)i=0;else if(P>e){for(I=Math.min(k+1,u-1),i=I;i>=0&&!(v[i]<=e);i--);i=Math.min(i,u-2)}else{for(i=k;u>i&&!(v[i]>e);i++);i=Math.min(i-1,u-2)}k=i,P=e;var n=v[i+1]-v[i];if(0!==n)if(T=(e-v[i])/n,l)if(D=y[i],A=y[0===i?i:i-1],C=y[i>u-2?u-1:i+1],L=y[i>u-3?u-1:i+2],f)ui(A,D,C,L,T,T*T,T*T*T,r(t,a),m);else{var o;if(p)o=ui(A,D,C,L,T,T*T,T*T*T,O,1),o=di(O);else{if(g)return oi(D,C,T);o=hi(A,D,C,L,T,T*T,T*T*T)}s(t,a,o)}else if(f)ri(y[i],y[i+1],T,r(t,a),m);else{var o;if(p)ri(y[i],y[i+1],T,O,1),o=di(O);else{if(g)return oi(y[i],y[i+1],T);o=ai(y[i],y[i+1],T)}s(t,a,o)}},R=new Re({target:t._target,life:h,loop:t._loop,delay:t._delay,onframe:E,ondestroy:i});return e&&"spline"!==e&&(R.easing=e),R}}}function gi(t,e,i,n,a,o,r,s){function l(){h--,h||o&&o()}b(n)?(o=a,a=n,n=0):w(a)?(o=a,a="linear",n=0):w(n)?(o=n,n=0):w(i)?(o=i,i=500):i||(i=500),t.stopAnimation(),mi(t,"",t,e,i,n,s);var u=t.animators.slice(),h=u.length;h||o&&o();for(var c=0;c<u.length;c++)u[c].done(l).start(a,r)}function mi(t,e,i,n,a,o,r){var s={},l=0;for(var u in n)n.hasOwnProperty(u)&&(null!=i[u]?S(n[u])&&!d(n[u])?mi(t,e?e+"."+u:u,i[u],n[u],a,o,r):(r?(s[u]=i[u],vi(t,e,u,n[u])):s[u]=n[u],l++):null==n[u]||r||vi(t,e,u,n[u]));l>0&&t.animate(e,!1).when(null==a?500:a,s).delay(o||0)}function vi(t,e,i,n){if(e){var a={};a[e]={},a[e][i]=n,t.attr(a)}else t.attr(i,n)}function yi(t,e,i,n){0>i&&(t+=i,i=-i),0>n&&(e+=n,n=-n),this.x=t,this.y=e,this.width=i,this.height=n}function xi(t){for(var e=0;t>=FS;)e|=1&t,t>>=1;return t+e}function _i(t,e,i,n){var a=e+1;if(a===i)return 1;if(n(t[a++],t[e])<0){for(;i>a&&n(t[a],t[a-1])<0;)a++;wi(t,e,a)}else for(;i>a&&n(t[a],t[a-1])>=0;)a++;return a-e}function wi(t,e,i){for(i--;i>e;){var n=t[e];t[e++]=t[i],t[i--]=n}}function bi(t,e,i,n,a){for(n===e&&n++;i>n;n++){for(var o,r=t[n],s=e,l=n;l>s;)o=s+l>>>1,a(r,t[o])<0?l=o:s=o+1;var u=n-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]=r}}function Si(t,e,i,n,a,o){var r=0,s=0,l=1;if(o(t,e[i+a])>0){for(s=n-a;s>l&&o(t,e[i+a+l])>0;)r=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),r+=a,l+=a}else{for(s=a+1;s>l&&o(t,e[i+a-l])<=0;)r=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=r;r=a-l,l=a-u}for(r++;l>r;){var h=r+(l-r>>>1);o(t,e[i+h])>0?r=h+1:l=h}return l}function Mi(t,e,i,n,a,o){var r=0,s=0,l=1;if(o(t,e[i+a])<0){for(s=a+1;s>l&&o(t,e[i+a-l])<0;)r=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=r;r=a-l,l=a-u}else{for(s=n-a;s>l&&o(t,e[i+a+l])>=0;)r=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),r+=a,l+=a}for(r++;l>r;){var h=r+(l-r>>>1);o(t,e[i+h])<0?l=h:r=h+1}return l}function Ii(t,e){function i(t,e){l[c]=t,u[c]=e,c+=1}function n(){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;o(t)}}function a(){for(;c>1;){var t=c-2;t>0&&u[t-1]<u[t+1]&&t--,o(t)}}function o(i){var n=l[i],a=u[i],o=l[i+1],h=u[i+1];u[i]=a+h,i===c-3&&(l[i+1]=l[i+2],u[i+1]=u[i+2]),c--;var d=Mi(t[o],t,n,a,0,e);n+=d,a-=d,0!==a&&(h=Si(t[n+a-1],t,o,h,h-1,e),0!==h&&(h>=a?r(n,a,o,h):s(n,a,o,h)))}function r(i,n,a,o){var r=0;for(r=0;n>r;r++)d[r]=t[i+r];var s=0,l=a,u=i;if(t[u++]=t[l++],0!==--o){if(1===n){for(r=0;o>r;r++)t[u+r]=t[l+r];return void(t[u+o]=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===--o){p=!0;break}}else if(t[u++]=d[s++],c++,f=0,1===--n){p=!0;break}while(g>(c|f));if(p)break;do{if(c=Mi(t[l],d,s,n,0,e),0!==c){for(r=0;c>r;r++)t[u+r]=d[s+r];if(u+=c,s+=c,n-=c,1>=n){p=!0;break}}if(t[u++]=t[l++],0===--o){p=!0;break}if(f=Si(d[s],t,l,o,0,e),0!==f){for(r=0;f>r;r++)t[u+r]=t[l+r];if(u+=f,l+=f,o-=f,0===o){p=!0;break}}if(t[u++]=d[s++],1===--n){p=!0;break}g--}while(c>=WS||f>=WS);if(p)break;0>g&&(g=0),g+=2}if(h=g,1>h&&(h=1),1===n){for(r=0;o>r;r++)t[u+r]=t[l+r];t[u+o]=d[s]}else{if(0===n)throw new Error;for(r=0;n>r;r++)t[u+r]=d[s+r]}}else for(r=0;n>r;r++)t[u+r]=d[s+r]}function s(i,n,a,o){var r=0;for(r=0;o>r;r++)d[r]=t[a+r];var s=i+n-1,l=o-1,u=a+o-1,c=0,f=0;if(t[u--]=t[s--],0!==--n){if(1===o){for(u-=n,s-=n,f=u+1,c=s+1,r=n-1;r>=0;r--)t[f+r]=t[c+r];return void(t[u]=d[l])}for(var p=h;;){var g=0,m=0,v=!1;do if(e(d[l],t[s])<0){if(t[u--]=t[s--],g++,m=0,0===--n){v=!0;break}}else if(t[u--]=d[l--],m++,g=0,1===--o){v=!0;break}while(p>(g|m));if(v)break;do{if(g=n-Mi(d[l],t,i,n,n-1,e),0!==g){for(u-=g,s-=g,n-=g,f=u+1,c=s+1,r=g-1;r>=0;r--)t[f+r]=t[c+r];if(0===n){v=!0;break}}if(t[u--]=d[l--],1===--o){v=!0;break}if(m=o-Si(t[s],d,0,o,o-1,e),0!==m){for(u-=m,l-=m,o-=m,f=u+1,c=l+1,r=0;m>r;r++)t[f+r]=d[c+r];if(1>=o){v=!0;break}}if(t[u--]=t[s--],0===--n){v=!0;break}p--}while(g>=WS||m>=WS);if(v)break;0>p&&(p=0),p+=2}if(h=p,1>h&&(h=1),1===o){for(u-=n,s-=n,f=u+1,c=s+1,r=n-1;r>=0;r--)t[f+r]=t[c+r];t[u]=d[l]}else{if(0===o)throw new Error;for(c=u-(o-1),r=0;o>r;r++)t[c+r]=d[r]}}else for(c=u-(o-1),r=0;o>r;r++)t[c+r]=d[r]}var l,u,h=WS,c=0,d=[];l=[],u=[],this.mergeRuns=n,this.forceMergeRuns=a,this.pushRun=i}function Ti(t,e,i,n){i||(i=0),n||(n=t.length);var a=n-i;if(!(2>a)){var o=0;if(FS>a)return o=_i(t,i,n,e),void bi(t,i,n,i+o,e);var r=new Ii(t,e),s=xi(a);do{if(o=_i(t,i,n,e),s>o){var l=a;l>s&&(l=s),bi(t,i,i+l,i+o,e),o=l}r.pushRun(i,o),r.mergeRuns(),a-=o,i+=o}while(0!==a);r.forceMergeRuns()}}function Ai(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function Di(t,e,i){var n=null==e.x?0:e.x,a=null==e.x2?1:e.x2,o=null==e.y?0:e.y,r=null==e.y2?0:e.y2;e.global||(n=n*i.width+i.x,a=a*i.width+i.x,o=o*i.height+i.y,r=r*i.height+i.y),n=isNaN(n)?0:n,a=isNaN(a)?1:a,o=isNaN(o)?0:o,r=isNaN(r)?0:r;var s=t.createLinearGradient(n,o,a,r);return s}function Ci(t,e,i){var n=i.width,a=i.height,o=Math.min(n,a),r=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;e.global||(r=r*n+i.x,s=s*a+i.y,l*=o);var u=t.createRadialGradient(r,s,0,r,s,l);return u}function Li(){return!1}function ki(t,e,i){var n=Fb(),a=e.getWidth(),o=e.getHeight(),r=n.style;return r&&(r.position="absolute",r.left=0,r.top=0,r.width=a+"px",r.height=o+"px",n.setAttribute("data-zr-dom-id",t)),n.width=a*i,n.height=o*i,n}function Pi(t){if("string"==typeof t){var e=iM.get(t);return e&&e.image}return t}function Oi(t,e,i,n,a){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!i)return e;var o=iM.get(t),r={hostEl:i,cb:n,cbPayload:a};return o?(e=o.image,!Ri(e)&&o.pending.push(r)):(e=new Image,e.onload=e.onerror=Ei,iM.put(t,e.__cachedImgObj={image:e,pending:[r]}),e.src=e.__zrImageSrc=t),e}return t}return e}function Ei(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var i=t.pending[e],n=i.cb;n&&n(this,i.cbPayload),i.hostEl.dirty()}t.pending.length=0}function Ri(t){return t&&t.width&&t.height}function Ni(t,e){lM[t]=e}function zi(t,e){e=e||sM;var i=t+":"+e;if(nM[i])return nM[i];for(var n=(t+"").split("\n"),a=0,o=0,r=n.length;r>o;o++)a=Math.max(qi(n[o],e).width,a);return aM>oM&&(aM=0,nM={}),aM++,nM[i]=a,a}function Bi(t,e,i,n,a,o,r,s){return r?Gi(t,e,i,n,a,o,r,s):Vi(t,e,i,n,a,o,s)}function Vi(t,e,i,n,a,o,r){var s=Ki(t,e,a,o,r),l=zi(t,e);a&&(l+=a[1]+a[3]);var u=s.outerHeight,h=Fi(0,l,i),c=Wi(0,u,n),d=new yi(h,c,l,u);return d.lineHeight=s.lineHeight,d}function Gi(t,e,i,n,a,o,r,s){var l=$i(t,{rich:r,truncate:s,font:e,textAlign:i,textPadding:a,textLineHeight:o}),u=l.outerWidth,h=l.outerHeight,c=Fi(0,u,i),d=Wi(0,h,n);return new yi(c,d,u,h)}function Fi(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function Wi(t,e,i){return"middle"===i?t-=e/2:"bottom"===i&&(t-=e),t}function Hi(t,e,i){var n=e.x,a=e.y,o=e.height,r=e.width,s=o/2,l="left",u="top";switch(t){case"left":n-=i,a+=s,l="right",u="middle";break;case"right":n+=i+r,a+=s,u="middle";break;case"top":n+=r/2,a-=i,l="center",u="bottom";break;case"bottom":n+=r/2,a+=o+i,l="center";break;case"inside":n+=r/2,a+=s,l="center",u="middle";break;case"insideLeft":n+=i,a+=s,u="middle";break;case"insideRight":n+=r-i,a+=s,l="right",u="middle";break;case"insideTop":n+=r/2,a+=i,l="center";break;case"insideBottom":n+=r/2,a+=o-i,l="center",u="bottom";break;case"insideTopLeft":n+=i,a+=i;break;case"insideTopRight":n+=r-i,a+=i,l="right";break;case"insideBottomLeft":n+=i,a+=o-i,u="bottom";break;case"insideBottomRight":n+=r-i,a+=o-i,l="right",u="bottom"}return{x:n,y:a,textAlign:l,textVerticalAlign:u}}function Zi(t,e,i,n,a){if(!e)return"";var o=(t+"").split("\n");a=Ui(e,i,n,a);for(var r=0,s=o.length;s>r;r++)o[r]=Xi(o[r],a);return o.join("\n")}function Ui(t,e,i,n){n=r({},n),n.font=e;var i=C(i,"...");n.maxIterations=C(n.maxIterations,2);var a=n.minChar=C(n.minChar,0);n.cnCharWidth=zi("国",e);var o=n.ascCharWidth=zi("a",e);n.placeholder=C(n.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;a>l&&s>=o;l++)s-=o;var u=zi(i,e);return u>s&&(i="",u=0),s=t-u,n.ellipsis=i,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=t,n}function Xi(t,e){var i=e.containerWidth,n=e.font,a=e.contentWidth;if(!i)return"";var o=zi(t,n);if(i>=o)return t;for(var r=0;;r++){if(a>=o||r>=e.maxIterations){t+=e.ellipsis;break}var s=0===r?Yi(t,a,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,s),o=zi(t,n)}return""===t&&(t=e.placeholder),t}function Yi(t,e,i,n){for(var a=0,o=0,r=t.length;r>o&&e>a;o++){var s=t.charCodeAt(o);a+=s>=0&&127>=s?i:n}return o}function ji(t){return zi("国",t)}function qi(t,e){return lM.measureText(t,e)}function Ki(t,e,i,n,a){null!=t&&(t+="");var o=C(n,ji(e)),r=t?t.split("\n"):[],s=r.length*o,l=s;if(i&&(l+=i[0]+i[2]),t&&a){var u=a.outerHeight,h=a.outerWidth;if(null!=u&&l>u)t="",r=[];else if(null!=h)for(var c=Ui(h-(i?i[1]+i[3]:0),e,a.ellipsis,{minChar:a.minChar,placeholder:a.placeholder}),d=0,f=r.length;f>d;d++)r[d]=Xi(r[d],c)}return{lines:r,height:s,outerHeight:l,lineHeight:o}}function $i(t,e){var i={lines:[],width:0,height:0};if(null!=t&&(t+=""),!t)return i;for(var n,a=rM.lastIndex=0;null!=(n=rM.exec(t));){var o=n.index;o>a&&Ji(i,t.substring(a,o)),Ji(i,n[2],n[1]),a=rM.lastIndex}a<t.length&&Ji(i,t.substring(a,t.length));var r=i.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<r.length;p++){for(var g=r[p],m=0,v=0,y=0;y<g.tokens.length;y++){var x=g.tokens[y],_=x.styleName&&e.rich[x.styleName]||{},w=x.textPadding=_.textPadding,b=x.font=_.font||e.font,S=x.textHeight=C(_.textHeight,ji(b));if(w&&(S+=w[0]+w[2]),x.height=S,x.lineHeight=L(_.textLineHeight,e.textLineHeight,S),x.textAlign=_&&_.textAlign||e.textAlign,x.textVerticalAlign=_&&_.textVerticalAlign||"middle",null!=f&&s+x.lineHeight>f)return{lines:[],width:0,height:0};x.textWidth=zi(x.text,b);var M=_.textWidth,I=null==M||"auto"===M;if("string"==typeof M&&"%"===M.charAt(M.length-1))x.percentWidth=M,u.push(x),M=0;else{if(I){M=x.textWidth;var T=_.textBackgroundColor,A=T&&T.image;A&&(A=Pi(A),Ri(A)&&(M=Math.max(M,A.width*S/A.height)))}var D=w?w[1]+w[3]:0;M+=D;var k=null!=d?d-v:null;null!=k&&M>k&&(!I||D>k?(x.text="",x.textWidth=M=0):(x.text=Zi(x.text,k-D,b,c.ellipsis,{minChar:c.minChar}),x.textWidth=zi(x.text,b),M=x.textWidth+D))}v+=x.width=M,_&&(m=Math.max(m,x.lineHeight))}g.width=v,g.lineHeight=m,s+=m,l=Math.max(l,v)}i.outerWidth=i.width=C(e.textWidth,l),i.outerHeight=i.height=C(e.textHeight,s),h&&(i.outerWidth+=h[1]+h[3],i.outerHeight+=h[0]+h[2]);for(var p=0;p<u.length;p++){var x=u[p],P=x.percentWidth;x.width=parseInt(P,10)/100*l}return i}function Ji(t,e,i){for(var n=""===e,a=e.split("\n"),o=t.lines,r=0;r<a.length;r++){var s=a[r],l={styleName:i,text:s,isLineHolder:!s&&!n};if(r)o.push({tokens:[l]});else{var u=(o[o.length-1]||(o[0]={tokens:[]})).tokens,h=u.length;1===h&&u[0].isLineHolder?u[0]=l:(s||!h||n)&&u.push(l)}}}function Qi(t){var e=(t.fontSize||t.fontFamily)&&[t.fontStyle,t.fontWeight,(t.fontSize||12)+"px",t.fontFamily||"sans-serif"].join(" ");return e&&E(e)||t.textFont||t.font}function tn(t,e){var i,n,a,o,r=e.x,s=e.y,l=e.width,u=e.height,h=e.r;0>l&&(r+=l,l=-l),0>u&&(s+=u,u=-u),"number"==typeof h?i=n=a=o=h:h instanceof Array?1===h.length?i=n=a=o=h[0]:2===h.length?(i=a=h[0],n=o=h[1]):3===h.length?(i=h[0],n=o=h[1],a=h[2]):(i=h[0],n=h[1],a=h[2],o=h[3]):i=n=a=o=0;var c;i+n>l&&(c=i+n,i*=l/c,n*=l/c),a+o>l&&(c=a+o,a*=l/c,o*=l/c),n+a>u&&(c=n+a,n*=u/c,a*=u/c),i+o>u&&(c=i+o,i*=u/c,o*=u/c),t.moveTo(r+i,s),t.lineTo(r+l-n,s),0!==n&&t.arc(r+l-n,s+n,n,-Math.PI/2,0),t.lineTo(r+l,s+u-a),0!==a&&t.arc(r+l-a,s+u-a,a,0,Math.PI/2),t.lineTo(r+o,s+u),0!==o&&t.arc(r+o,s+u-o,o,Math.PI/2,Math.PI),t.lineTo(r,s+i),0!==i&&t.arc(r+i,s+i,i,Math.PI,1.5*Math.PI)}function en(t){return nn(t),f(t.rich,nn),t}function nn(t){if(t){t.font=Qi(t);var e=t.textAlign;"middle"===e&&(e="center"),t.textAlign=null==e||hM[e]?e:"left";var i=t.textVerticalAlign||t.textBaseline;"center"===i&&(i="middle"),t.textVerticalAlign=null==i||cM[i]?i:"top";var n=t.textPadding;n&&(t.textPadding=P(t.textPadding))}}function an(t,e,i,n,a,o){n.rich?rn(t,e,i,n,a,o):on(t,e,i,n,a,o)}function on(t,e,i,n,a,o){var r,s=hn(n),l=!1,u=e.__attrCachedBy===XS.PLAIN_TEXT;o!==YS?(o&&(r=o.style,l=!s&&u&&r),e.__attrCachedBy=s?XS.NONE:XS.PLAIN_TEXT):u&&(e.__attrCachedBy=XS.NONE);var h=n.font||uM;l&&h===(r.font||uM)||(e.font=h);var c=t.__computedFont;t.__styleFont!==h&&(t.__styleFont=h,c=t.__computedFont=e.font);var d=n.textPadding,f=n.textLineHeight,p=t.__textCotentBlock;(!p||t.__dirtyText)&&(p=t.__textCotentBlock=Ki(i,c,d,f,n.truncate));var g=p.outerHeight,m=p.lines,v=p.lineHeight,y=fn(g,n,a),x=y.baseX,_=y.baseY,w=y.textAlign||"left",b=y.textVerticalAlign;ln(e,n,a,x,_);var S=Wi(_,g,b),M=x,I=S;if(s||d){var T=zi(i,c),A=T;d&&(A+=d[1]+d[3]);var D=Fi(x,A,w);s&&cn(t,e,n,D,S,A,g),d&&(M=yn(x,w,d),I+=d[0])}e.textAlign=w,e.textBaseline="middle",e.globalAlpha=n.opacity||1;for(var C=0;C<dM.length;C++){var L=dM[C],k=L[0],P=L[1],O=n[k];l&&O===r[k]||(e[P]=US(e,P,O||L[2]))}I+=v/2;var E=n.textStrokeWidth,R=l?r.textStrokeWidth:null,N=!l||E!==R,z=!l||N||n.textStroke!==r.textStroke,B=gn(n.textStroke,E),V=mn(n.textFill);if(B&&(N&&(e.lineWidth=E),z&&(e.strokeStyle=B)),V&&(l&&n.textFill===r.textFill||(e.fillStyle=V)),1===m.length)B&&e.strokeText(m[0],M,I),V&&e.fillText(m[0],M,I);else for(var C=0;C<m.length;C++)B&&e.strokeText(m[C],M,I),V&&e.fillText(m[C],M,I),I+=v}function rn(t,e,i,n,a,o){o!==YS&&(e.__attrCachedBy=XS.NONE);var r=t.__textCotentBlock;(!r||t.__dirtyText)&&(r=t.__textCotentBlock=$i(i,n)),sn(t,e,r,n,a)}function sn(t,e,i,n,a){var o=i.width,r=i.outerWidth,s=i.outerHeight,l=n.textPadding,u=fn(s,n,a),h=u.baseX,c=u.baseY,d=u.textAlign,f=u.textVerticalAlign;ln(e,n,a,h,c);var p=Fi(h,r,d),g=Wi(c,s,f),m=p,v=g;l&&(m+=l[3],v+=l[0]);var y=m+o;hn(n)&&cn(t,e,n,p,g,r,s);for(var x=0;x<i.lines.length;x++){for(var _,w=i.lines[x],b=w.tokens,S=b.length,M=w.lineHeight,I=w.width,T=0,A=m,D=y,C=S-1;S>T&&(_=b[T],!_.textAlign||"left"===_.textAlign);)un(t,e,_,n,M,v,A,"left"),I-=_.width,A+=_.width,T++;for(;C>=0&&(_=b[C],"right"===_.textAlign);)un(t,e,_,n,M,v,D,"right"),I-=_.width,D-=_.width,C--;for(A+=(o-(A-m)-(y-D)-I)/2;C>=T;)_=b[T],un(t,e,_,n,M,v,A+_.width/2,"center"),A+=_.width,T++;v+=M}}function ln(t,e,i,n,a){if(i&&e.textRotation){var o=e.textOrigin;"center"===o?(n=i.width/2+i.x,a=i.height/2+i.y):o&&(n=o[0]+i.x,a=o[1]+i.y),t.translate(n,a),t.rotate(-e.textRotation),t.translate(-n,-a)}}function un(t,e,i,n,a,o,r,s){var l=n.rich[i.styleName]||{};l.text=i.text;var u=i.textVerticalAlign,h=o+a/2;"top"===u?h=o+i.height/2:"bottom"===u&&(h=o+a-i.height/2),!i.isLineHolder&&hn(l)&&cn(t,e,l,"right"===s?r-i.width:"center"===s?r-i.width/2:r,h-i.height/2,i.width,i.height);var c=i.textPadding;c&&(r=yn(r,s,c),h-=i.height/2-c[2]-i.textHeight/2),pn(e,"shadowBlur",L(l.textShadowBlur,n.textShadowBlur,0)),pn(e,"shadowColor",l.textShadowColor||n.textShadowColor||"transparent"),pn(e,"shadowOffsetX",L(l.textShadowOffsetX,n.textShadowOffsetX,0)),pn(e,"shadowOffsetY",L(l.textShadowOffsetY,n.textShadowOffsetY,0)),pn(e,"textAlign",s),pn(e,"textBaseline","middle"),pn(e,"font",i.font||uM);var d=gn(l.textStroke||n.textStroke,p),f=mn(l.textFill||n.textFill),p=C(l.textStrokeWidth,n.textStrokeWidth);d&&(pn(e,"lineWidth",p),pn(e,"strokeStyle",d),e.strokeText(i.text,r,h)),f&&(pn(e,"fillStyle",f),e.fillText(i.text,r,h))}function hn(t){return!!(t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor)}function cn(t,e,i,n,a,o,r){var s=i.textBackgroundColor,l=i.textBorderWidth,u=i.textBorderColor,h=b(s);if(pn(e,"shadowBlur",i.textBoxShadowBlur||0),pn(e,"shadowColor",i.textBoxShadowColor||"transparent"),pn(e,"shadowOffsetX",i.textBoxShadowOffsetX||0),pn(e,"shadowOffsetY",i.textBoxShadowOffsetY||0),h||l&&u){e.beginPath();var c=i.textBorderRadius;c?tn(e,{x:n,y:a,width:o,height:r,r:c}):e.rect(n,a,o,r),e.closePath()}if(h)if(pn(e,"fillStyle",s),null!=i.fillOpacity){var d=e.globalAlpha;e.globalAlpha=i.fillOpacity*i.opacity,e.fill(),e.globalAlpha=d}else e.fill();else if(S(s)){var f=s.image;f=Oi(f,null,t,dn,s),f&&Ri(f)&&e.drawImage(f,n,a,o,r)}if(l&&u)if(pn(e,"lineWidth",l),pn(e,"strokeStyle",u),null!=i.strokeOpacity){var d=e.globalAlpha;e.globalAlpha=i.strokeOpacity*i.opacity,e.stroke(),e.globalAlpha=d}else e.stroke()}function dn(t,e){e.image=t}function fn(t,e,i){var n=e.x||0,a=e.y||0,o=e.textAlign,r=e.textVerticalAlign;if(i){var s=e.textPosition;if(s instanceof Array)n=i.x+vn(s[0],i.width),a=i.y+vn(s[1],i.height);else{var l=Hi(s,i,e.textDistance);n=l.x,a=l.y,o=o||l.textAlign,r=r||l.textVerticalAlign}var u=e.textOffset;u&&(n+=u[0],a+=u[1])}return{baseX:n,baseY:a,textAlign:o,textVerticalAlign:r}}function pn(t,e,i){return t[e]=US(t,e,i),t[e]
}function gn(t,e){return null==t||0>=e||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function mn(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function vn(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function yn(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}function xn(t,e){return null!=t&&(t||e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor||e.textPadding)}function _n(t){t=t||{},NS.call(this,t);for(var e in t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new qS(t.style,this),this._rect=null,this.__clipPaths=[]}function wn(t){_n.call(this,t)}function bn(t){return parseInt(t,10)}function Sn(t){return t?t.__builtin__?!0:"function"!=typeof t.resize||"function"!=typeof t.refresh?!1:!0:!1}function Mn(t,e,i){return xM.copy(t.getBoundingRect()),t.transform&&xM.applyTransform(t.transform),_M.width=e,_M.height=i,!xM.intersect(_M)}function In(t,e){if(t===e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var i=0;i<t.length;i++)if(t[i]!==e[i])return!0}function Tn(t,e){for(var i=0;i<t.length;i++){var n=t[i];n.setTransform(e),e.beginPath(),n.buildPath(e,n.shape),e.clip(),n.restoreTransform(e)}}function An(t,e){var i=document.createElement("div");return i.style.cssText=["position:relative","overflow:hidden","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",i}function Dn(t){return"mousewheel"===t&&Lb.browser.firefox?"DOMMouseScroll":t}function Cn(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout(function(){t._touching=!1},700)}function Ln(t){var e=t.pointerType;return"pen"===e||"touch"===e}function kn(t){function e(t,e){return function(){return e._touching?void 0:t.apply(e,arguments)}}f(IM,function(e){t._handlers[e]=y(DM[e],t)}),f(AM,function(e){t._handlers[e]=y(DM[e],t)}),f(MM,function(i){t._handlers[i]=e(DM[i],t)})}function Pn(t){function e(e,i){f(e,function(e){me(t,Dn(e),i._handlers[e])},i)}Jb.call(this),this.dom=t,this._touching=!1,this._touchTimer,this._handlers={},kn(this),Lb.pointerEventsSupported?e(AM,this):(Lb.touchEventsSupported&&e(IM,this),e(MM,this))}function On(t,e){var i=new EM(Db(),t,e);return PM[i.id]=i,i}function En(t){if(t)t.dispose();else{for(var e in PM)PM.hasOwnProperty(e)&&PM[e].dispose();PM={}}return this}function Rn(t){return PM[t]}function Nn(t,e){kM[t]=e}function zn(t){delete PM[t]}function Bn(t){return t instanceof Array?t:null==t?[]:[t]}function Vn(t,e,i){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,a=i.length;a>n;n++){var o=i[n];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function Gn(t){return!zM(t)||BM(t)||t instanceof Date?t:t.value}function Fn(t){return zM(t)&&!(t instanceof Array)}function Wn(t,e){e=(e||[]).slice();var i=p(t||[],function(t){return{exist:t}});return NM(e,function(t,n){if(zM(t)){for(var a=0;a<i.length;a++)if(!i[a].option&&null!=t.id&&i[a].exist.id===t.id+"")return i[a].option=t,void(e[n]=null);for(var a=0;a<i.length;a++){var o=i[a].exist;if(!(i[a].option||null!=o.id&&null!=t.id||null==t.name||Un(t)||Un(o)||o.name!==t.name+""))return i[a].option=t,void(e[n]=null)}}}),NM(e,function(t){if(zM(t)){for(var e=0;e<i.length;e++){var n=i[e].exist;if(!i[e].option&&!Un(n)&&null==t.id){i[e].option=t;break}}e>=i.length&&i.push({option:t})}}),i}function Hn(t){var e=B();NM(t,function(t){var i=t.exist;i&&e.set(i.id,t)}),NM(t,function(t){var i=t.option;O(!i||null==i.id||!e.get(i.id)||e.get(i.id)===t,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&e.set(i.id,t),!t.keyInfo&&(t.keyInfo={})}),NM(t,function(t,i){var n=t.exist,a=t.option,o=t.keyInfo;if(zM(a)){if(o.name=null!=a.name?a.name+"":n?n.name:VM+i,n)o.id=n.id;else if(null!=a.id)o.id=a.id+"";else{var r=0;do o.id="\x00"+o.name+"\x00"+r++;while(e.get(o.id))}e.set(o.id,t)}})}function Zn(t){var e=t.name;return!(!e||!e.indexOf(VM))}function Un(t){return zM(t)&&t.id&&0===(t.id+"").indexOf("\x00_ec_\x00")}function Xn(t,e){function i(t,e,i){for(var n=0,a=t.length;a>n;n++)for(var o=t[n].seriesId,r=Bn(t[n].dataIndex),s=i&&i[o],l=0,u=r.length;u>l;l++){var h=r[l];s&&s[h]?s[h]=null:(e[o]||(e[o]={}))[h]=1}}function n(t,e){var i=[];for(var a in t)if(t.hasOwnProperty(a)&&null!=t[a])if(e)i.push(+a);else{var o=n(t[a],!0);o.length&&i.push({seriesId:a,dataIndex:o})}return i}var a={},o={};return i(t||[],a),i(e||[],o,a),[n(a),n(o)]}function Yn(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?_(e.dataIndex)?p(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?_(e.name)?p(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function jn(){var t="__\x00ec_inner_"+FM++ +"_"+Math.random().toFixed(5);return function(e){return e[t]||(e[t]={})}}function qn(t,e,i){if(b(e)){var n={};n[e+"Index"]=0,e=n}var a=i&&i.defaultMainType;!a||Kn(e,a+"Index")||Kn(e,a+"Id")||Kn(e,a+"Name")||(e[a+"Index"]=0);var o={};return NM(e,function(n,a){var n=e[a];if("dataIndex"===a||"dataIndexInside"===a)return void(o[a]=n);var r=a.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();if(!(!s||!l||null==n||"index"===l&&"none"===n||i&&i.includeMainTypes&&u(i.includeMainTypes,s)<0)){var h={mainType:s};("index"!==l||"all"!==n)&&(h[l]=n);var c=t.queryComponents(h);o[s+"Models"]=c,o[s+"Model"]=c[0]}}),o}function Kn(t,e){return t&&t.hasOwnProperty(e)}function $n(t,e,i){t.setAttribute?t.setAttribute(e,i):t[e]=i}function Jn(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function Qn(t){return"auto"===t?Lb.domSupported?"html":"richText":t||"html"}function ta(t,e){var i=B(),n=[];return f(t,function(t){var a=e(t);(i.get(a)||(n.push(a),i.set(a,[]))).push(t)}),{keys:n,buckets:i}}function ea(t){var e={main:"",sub:""};return t&&(t=t.split(WM),e.main=t[0]||"",e.sub=t[1]||""),e}function ia(t){O(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function na(t){t.$constructor=t,t.extend=function(t){var e=this,i=function(){t.$constructor?t.$constructor.apply(this,arguments):e.apply(this,arguments)};return r(i.prototype,t),i.extend=this.extend,i.superCall=oa,i.superApply=ra,h(i,this),i.superClass=e,i}}function aa(t){var e=["__\x00is_clz",ZM++,Math.random().toFixed(3)].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function oa(t,e){var i=k(arguments,2);return this.superClass.prototype[e].apply(t,i)}function ra(t,e,i){return this.superClass.prototype[e].apply(t,i)}function sa(t,e){function i(t){var e=n[t.main];return e&&e[HM]||(e=n[t.main]={},e[HM]=!0),e}e=e||{};var n={};if(t.registerClass=function(t,e){if(e)if(ia(e),e=ea(e),e.sub){if(e.sub!==HM){var a=i(e);a[e.sub]=t}}else n[e.main]=t;return t},t.getClass=function(t,e,i){var a=n[t];if(a&&a[HM]&&(a=e?a[e]:null),i&&!a)throw new Error(e?"Component "+t+"."+(e||"")+" not exists. Load it first.":t+".type should be specified.");return a},t.getClassesByMainType=function(t){t=ea(t);var e=[],i=n[t.main];return i&&i[HM]?f(i,function(t,i){i!==HM&&e.push(t)}):e.push(i),e},t.hasClass=function(t){return t=ea(t),!!n[t.main]},t.getAllClassMainTypes=function(){var t=[];return f(n,function(e,i){t.push(i)}),t},t.hasSubTypes=function(t){t=ea(t);var e=n[t.main];return e&&e[HM]},t.parseClassType=ea,e.registerWhenExtend){var a=t.extend;a&&(t.extend=function(e){var i=a.call(this,e);return t.registerClass(i,e.type)})}return t}function la(t){return t>-JM&&JM>t}function ua(t){return t>JM||-JM>t}function ha(t,e,i,n,a){var o=1-a;return o*o*(o*t+3*a*e)+a*a*(a*n+3*o*i)}function ca(t,e,i,n,a){var o=1-a;return 3*(((e-t)*o+2*(i-e)*a)*o+(n-i)*a*a)}function da(t,e,i,n,a,o){var r=n+3*(e-i)-t,s=3*(i-2*e+t),l=3*(e-t),u=t-a,h=s*s-3*r*l,c=s*l-9*r*u,d=l*l-3*s*u,f=0;if(la(h)&&la(c))if(la(s))o[0]=0;else{var p=-l/s;p>=0&&1>=p&&(o[f++]=p)}else{var g=c*c-4*h*d;if(la(g)){var m=c/h,p=-s/r+m,v=-m/2;p>=0&&1>=p&&(o[f++]=p),v>=0&&1>=v&&(o[f++]=v)}else if(g>0){var y=$M(g),x=h*s+1.5*r*(-c+y),_=h*s+1.5*r*(-c-y);x=0>x?-KM(-x,eI):KM(x,eI),_=0>_?-KM(-_,eI):KM(_,eI);var p=(-s-(x+_))/(3*r);p>=0&&1>=p&&(o[f++]=p)}else{var w=(2*h*s-3*r*c)/(2*$M(h*h*h)),b=Math.acos(w)/3,S=$M(h),M=Math.cos(b),p=(-s-2*S*M)/(3*r),v=(-s+S*(M+tI*Math.sin(b)))/(3*r),I=(-s+S*(M-tI*Math.sin(b)))/(3*r);p>=0&&1>=p&&(o[f++]=p),v>=0&&1>=v&&(o[f++]=v),I>=0&&1>=I&&(o[f++]=I)}}return f}function fa(t,e,i,n,a){var o=6*i-12*e+6*t,r=9*e+3*n-3*t-9*i,s=3*e-3*t,l=0;if(la(r)){if(ua(o)){var u=-s/o;u>=0&&1>=u&&(a[l++]=u)}}else{var h=o*o-4*r*s;if(la(h))a[0]=-o/(2*r);else if(h>0){var c=$M(h),u=(-o+c)/(2*r),d=(-o-c)/(2*r);u>=0&&1>=u&&(a[l++]=u),d>=0&&1>=d&&(a[l++]=d)}}return l}function pa(t,e,i,n,a,o){var r=(e-t)*a+t,s=(i-e)*a+e,l=(n-i)*a+i,u=(s-r)*a+r,h=(l-s)*a+s,c=(h-u)*a+u;o[0]=t,o[1]=r,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=n}function ga(t,e,i,n,a,o,r,s,l,u,h){var c,d,f,p,g,m=.005,v=1/0;iI[0]=l,iI[1]=u;for(var y=0;1>y;y+=.05)nI[0]=ha(t,i,a,r,y),nI[1]=ha(e,n,o,s,y),p=qb(iI,nI),v>p&&(c=y,v=p);v=1/0;for(var x=0;32>x&&!(QM>m);x++)d=c-m,f=c+m,nI[0]=ha(t,i,a,r,d),nI[1]=ha(e,n,o,s,d),p=qb(nI,iI),d>=0&&v>p?(c=d,v=p):(aI[0]=ha(t,i,a,r,f),aI[1]=ha(e,n,o,s,f),g=qb(aI,iI),1>=f&&v>g?(c=f,v=g):m*=.5);return h&&(h[0]=ha(t,i,a,r,c),h[1]=ha(e,n,o,s,c)),$M(v)}function ma(t,e,i,n){var a=1-n;return a*(a*t+2*n*e)+n*n*i}function va(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function ya(t,e,i,n,a){var o=t-2*e+i,r=2*(e-t),s=t-n,l=0;if(la(o)){if(ua(r)){var u=-s/r;u>=0&&1>=u&&(a[l++]=u)}}else{var h=r*r-4*o*s;if(la(h)){var u=-r/(2*o);u>=0&&1>=u&&(a[l++]=u)}else if(h>0){var c=$M(h),u=(-r+c)/(2*o),d=(-r-c)/(2*o);u>=0&&1>=u&&(a[l++]=u),d>=0&&1>=d&&(a[l++]=d)}}return l}function xa(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function _a(t,e,i,n,a){var o=(e-t)*n+t,r=(i-e)*n+e,s=(r-o)*n+o;a[0]=t,a[1]=o,a[2]=s,a[3]=s,a[4]=r,a[5]=i}function wa(t,e,i,n,a,o,r,s,l){var u,h=.005,c=1/0;iI[0]=r,iI[1]=s;for(var d=0;1>d;d+=.05){nI[0]=ma(t,i,a,d),nI[1]=ma(e,n,o,d);var f=qb(iI,nI);c>f&&(u=d,c=f)}c=1/0;for(var p=0;32>p&&!(QM>h);p++){var g=u-h,m=u+h;nI[0]=ma(t,i,a,g),nI[1]=ma(e,n,o,g);var f=qb(nI,iI);if(g>=0&&c>f)u=g,c=f;else{aI[0]=ma(t,i,a,m),aI[1]=ma(e,n,o,m);var v=qb(aI,iI);1>=m&&c>v?(u=m,c=v):h*=.5}}return l&&(l[0]=ma(t,i,a,u),l[1]=ma(e,n,o,u)),$M(c)}function ba(t,e,i){if(0!==t.length){var n,a=t[0],o=a[0],r=a[0],s=a[1],l=a[1];for(n=1;n<t.length;n++)a=t[n],o=oI(o,a[0]),r=rI(r,a[0]),s=oI(s,a[1]),l=rI(l,a[1]);e[0]=o,e[1]=s,i[0]=r,i[1]=l}}function Sa(t,e,i,n,a,o){a[0]=oI(t,i),a[1]=oI(e,n),o[0]=rI(t,i),o[1]=rI(e,n)}function Ma(t,e,i,n,a,o,r,s,l,u){var h,c=fa,d=ha,f=c(t,i,a,r,fI);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,i,a,r,fI[h]);l[0]=oI(p,l[0]),u[0]=rI(p,u[0])}for(f=c(e,n,o,s,pI),h=0;f>h;h++){var g=d(e,n,o,s,pI[h]);l[1]=oI(g,l[1]),u[1]=rI(g,u[1])}l[0]=oI(t,l[0]),u[0]=rI(t,u[0]),l[0]=oI(r,l[0]),u[0]=rI(r,u[0]),l[1]=oI(e,l[1]),u[1]=rI(e,u[1]),l[1]=oI(s,l[1]),u[1]=rI(s,u[1])}function Ia(t,e,i,n,a,o,r,s){var l=xa,u=ma,h=rI(oI(l(t,i,a),1),0),c=rI(oI(l(e,n,o),1),0),d=u(t,i,a,h),f=u(e,n,o,c);r[0]=oI(t,a,d),r[1]=oI(e,o,f),s[0]=rI(t,a,d),s[1]=rI(e,o,f)}function Ta(t,e,i,n,a,o,r,s,l){var u=re,h=se,c=Math.abs(a-o);if(1e-4>c%uI&&c>1e-4)return s[0]=t-i,s[1]=e-n,l[0]=t+i,void(l[1]=e+n);if(hI[0]=lI(a)*i+t,hI[1]=sI(a)*n+e,cI[0]=lI(o)*i+t,cI[1]=sI(o)*n+e,u(s,hI,cI),h(l,hI,cI),a%=uI,0>a&&(a+=uI),o%=uI,0>o&&(o+=uI),a>o&&!r?o+=uI:o>a&&r&&(a+=uI),r){var d=o;o=a,a=d}for(var f=0;o>f;f+=Math.PI/2)f>a&&(dI[0]=lI(f)*i+t,dI[1]=sI(f)*n+e,u(s,dI,s),h(l,dI,l))}function Aa(t,e,i,n,a,o,r){if(0===a)return!1;var s=a,l=0,u=t;if(r>e+s&&r>n+s||e-s>r&&n-s>r||o>t+s&&o>i+s||t-s>o&&i-s>o)return!1;if(t===i)return Math.abs(o-t)<=s/2;l=(e-n)/(t-i),u=(t*n-i*e)/(t-i);var h=l*o-r+u,c=h*h/(l*l+1);return s/2*s/2>=c}function Da(t,e,i,n,a,o,r,s,l,u,h){if(0===l)return!1;var c=l;if(h>e+c&&h>n+c&&h>o+c&&h>s+c||e-c>h&&n-c>h&&o-c>h&&s-c>h||u>t+c&&u>i+c&&u>a+c&&u>r+c||t-c>u&&i-c>u&&a-c>u&&r-c>u)return!1;var d=ga(t,e,i,n,a,o,r,s,u,h,null);return c/2>=d}function Ca(t,e,i,n,a,o,r,s,l){if(0===r)return!1;var u=r;if(l>e+u&&l>n+u&&l>o+u||e-u>l&&n-u>l&&o-u>l||s>t+u&&s>i+u&&s>a+u||t-u>s&&i-u>s&&a-u>s)return!1;var h=wa(t,e,i,n,a,o,s,l,null);return u/2>=h}function La(t){return t%=DI,0>t&&(t+=DI),t}function ka(t,e,i,n,a,o,r,s,l){if(0===r)return!1;var u=r;s-=t,l-=e;var h=Math.sqrt(s*s+l*l);if(h-u>i||i>h+u)return!1;if(Math.abs(n-a)%CI<1e-4)return!0;if(o){var c=n;n=La(a),a=La(c)}else n=La(n),a=La(a);n>a&&(a+=CI);var d=Math.atan2(l,s);return 0>d&&(d+=CI),d>=n&&a>=d||d+CI>=n&&a>=d+CI}function Pa(t,e,i,n,a,o){if(o>e&&o>n||e>o&&n>o)return 0;if(n===e)return 0;var r=e>n?1:-1,s=(o-e)/(n-e);(1===s||0===s)&&(r=e>n?.5:-.5);var l=s*(i-t)+t;return l===a?1/0:l>a?r:0}function Oa(t,e){return Math.abs(t-e)<PI}function Ea(){var t=EI[0];EI[0]=EI[1],EI[1]=t}function Ra(t,e,i,n,a,o,r,s,l,u){if(u>e&&u>n&&u>o&&u>s||e>u&&n>u&&o>u&&s>u)return 0;var h=da(e,n,o,s,u,OI);if(0===h)return 0;for(var c,d,f=0,p=-1,g=0;h>g;g++){var m=OI[g],v=0===m||1===m?.5:1,y=ha(t,i,a,r,m);l>y||(0>p&&(p=fa(e,n,o,s,EI),EI[1]<EI[0]&&p>1&&Ea(),c=ha(e,n,o,s,EI[0]),p>1&&(d=ha(e,n,o,s,EI[1]))),f+=2===p?m<EI[0]?e>c?v:-v:m<EI[1]?c>d?v:-v:d>s?v:-v:m<EI[0]?e>c?v:-v:c>s?v:-v)}return f}function Na(t,e,i,n,a,o,r,s){if(s>e&&s>n&&s>o||e>s&&n>s&&o>s)return 0;var l=ya(e,n,o,s,OI);if(0===l)return 0;var u=xa(e,n,o);if(u>=0&&1>=u){for(var h=0,c=ma(e,n,o,u),d=0;l>d;d++){var f=0===OI[d]||1===OI[d]?.5:1,p=ma(t,i,a,OI[d]);r>p||(h+=OI[d]<u?e>c?f:-f:c>o?f:-f)}return h}var f=0===OI[0]||1===OI[0]?.5:1,p=ma(t,i,a,OI[0]);return r>p?0:e>o?f:-f}function za(t,e,i,n,a,o,r,s){if(s-=e,s>i||-i>s)return 0;var l=Math.sqrt(i*i-s*s);OI[0]=-l,OI[1]=l;var u=Math.abs(n-a);if(1e-4>u)return 0;if(1e-4>u%kI){n=0,a=kI;var h=o?1:-1;return r>=OI[0]+t&&r<=OI[1]+t?h:0}if(o){var l=n;n=La(a),a=La(l)}else n=La(n),a=La(a);n>a&&(a+=kI);for(var c=0,d=0;2>d;d++){var f=OI[d];if(f+t>r){var p=Math.atan2(s,f),h=o?1:-1;0>p&&(p=kI+p),(p>=n&&a>=p||p+kI>=n&&a>=p+kI)&&(p>Math.PI/2&&p<1.5*Math.PI&&(h=-h),c+=h)}}return c}function Ba(t,e,i,n,a){for(var o=0,r=0,s=0,l=0,u=0,h=0;h<t.length;){var c=t[h++];switch(c===LI.M&&h>1&&(i||(o+=Pa(r,s,l,u,n,a))),1===h&&(r=t[h],s=t[h+1],l=r,u=s),c){case LI.M:l=t[h++],u=t[h++],r=l,s=u;break;case LI.L:if(i){if(Aa(r,s,t[h],t[h+1],e,n,a))return!0}else o+=Pa(r,s,t[h],t[h+1],n,a)||0;r=t[h++],s=t[h++];break;case LI.C:if(i){if(Da(r,s,t[h++],t[h++],t[h++],t[h++],t[h],t[h+1],e,n,a))return!0}else o+=Ra(r,s,t[h++],t[h++],t[h++],t[h++],t[h],t[h+1],n,a)||0;r=t[h++],s=t[h++];break;case LI.Q:if(i){if(Ca(r,s,t[h++],t[h++],t[h],t[h+1],e,n,a))return!0}else o+=Na(r,s,t[h++],t[h++],t[h],t[h+1],n,a)||0;r=t[h++],s=t[h++];break;case LI.A:var d=t[h++],f=t[h++],p=t[h++],g=t[h++],m=t[h++],v=t[h++];h+=1;var y=1-t[h++],x=Math.cos(m)*p+d,_=Math.sin(m)*g+f;h>1?o+=Pa(r,s,x,_,n,a):(l=x,u=_);var w=(n-d)*g/p+d;if(i){if(ka(d,f,g,m,m+v,y,e,w,a))return!0}else o+=za(d,f,g,m,m+v,y,w,a);r=Math.cos(m+v)*p+d,s=Math.sin(m+v)*g+f;break;case LI.R:l=r=t[h++],u=s=t[h++];var b=t[h++],S=t[h++],x=l+b,_=u+S;if(i){if(Aa(l,u,x,u,e,n,a)||Aa(x,u,x,_,e,n,a)||Aa(x,_,l,_,e,n,a)||Aa(l,_,l,u,e,n,a))return!0}else o+=Pa(x,u,x,_,n,a),o+=Pa(l,_,l,u,n,a);break;case LI.Z:if(i){if(Aa(r,s,l,u,e,n,a))return!0}else o+=Pa(r,s,l,u,n,a);r=l,s=u}}return i||Oa(s,u)||(o+=Pa(r,s,l,u,n,a)||0),0!==o}function Va(t,e,i){return Ba(t,0,!1,e,i)}function Ga(t,e,i,n){return Ba(t,e,!0,i,n)}function Fa(t){_n.call(this,t),this.path=null}function Wa(t,e,i,n,a,o,r,s,l,u,h){var c=l*(XI/180),d=UI(c)*(t-i)/2+ZI(c)*(e-n)/2,f=-1*ZI(c)*(t-i)/2+UI(c)*(e-n)/2,p=d*d/(r*r)+f*f/(s*s);p>1&&(r*=HI(p),s*=HI(p));var g=(a===o?-1:1)*HI((r*r*s*s-r*r*f*f-s*s*d*d)/(r*r*f*f+s*s*d*d))||0,m=g*r*f/s,v=g*-s*d/r,y=(t+i)/2+UI(c)*m-ZI(c)*v,x=(e+n)/2+ZI(c)*m+UI(c)*v,_=qI([1,0],[(d-m)/r,(f-v)/s]),w=[(d-m)/r,(f-v)/s],b=[(-1*d-m)/r,(-1*f-v)/s],S=qI(w,b);jI(w,b)<=-1&&(S=XI),jI(w,b)>=1&&(S=0),0===o&&S>0&&(S-=2*XI),1===o&&0>S&&(S+=2*XI),h.addData(u,y,x,r,s,_,S,c,o)}function Ha(t){if(!t)return new AI;for(var e,i=0,n=0,a=i,o=n,r=new AI,s=AI.CMD,l=t.match(KI),u=0;u<l.length;u++){for(var h,c=l[u],d=c.charAt(0),f=c.match($I)||[],p=f.length,g=0;p>g;g++)f[g]=parseFloat(f[g]);for(var m=0;p>m;){var v,y,x,_,w,b,S,M=i,I=n;switch(d){case"l":i+=f[m++],n+=f[m++],h=s.L,r.addData(h,i,n);break;case"L":i=f[m++],n=f[m++],h=s.L,r.addData(h,i,n);break;case"m":i+=f[m++],n+=f[m++],h=s.M,r.addData(h,i,n),a=i,o=n,d="l";break;case"M":i=f[m++],n=f[m++],h=s.M,r.addData(h,i,n),a=i,o=n,d="L";break;case"h":i+=f[m++],h=s.L,r.addData(h,i,n);break;case"H":i=f[m++],h=s.L,r.addData(h,i,n);break;case"v":n+=f[m++],h=s.L,r.addData(h,i,n);break;case"V":n=f[m++],h=s.L,r.addData(h,i,n);break;case"C":h=s.C,r.addData(h,f[m++],f[m++],f[m++],f[m++],f[m++],f[m++]),i=f[m-2],n=f[m-1];break;case"c":h=s.C,r.addData(h,f[m++]+i,f[m++]+n,f[m++]+i,f[m++]+n,f[m++]+i,f[m++]+n),i+=f[m-2],n+=f[m-1];break;case"S":v=i,y=n;var T=r.len(),A=r.data;e===s.C&&(v+=i-A[T-4],y+=n-A[T-3]),h=s.C,M=f[m++],I=f[m++],i=f[m++],n=f[m++],r.addData(h,v,y,M,I,i,n);break;case"s":v=i,y=n;var T=r.len(),A=r.data;e===s.C&&(v+=i-A[T-4],y+=n-A[T-3]),h=s.C,M=i+f[m++],I=n+f[m++],i+=f[m++],n+=f[m++],r.addData(h,v,y,M,I,i,n);break;case"Q":M=f[m++],I=f[m++],i=f[m++],n=f[m++],h=s.Q,r.addData(h,M,I,i,n);break;case"q":M=f[m++]+i,I=f[m++]+n,i+=f[m++],n+=f[m++],h=s.Q,r.addData(h,M,I,i,n);break;case"T":v=i,y=n;var T=r.len(),A=r.data;e===s.Q&&(v+=i-A[T-4],y+=n-A[T-3]),i=f[m++],n=f[m++],h=s.Q,r.addData(h,v,y,i,n);break;case"t":v=i,y=n;var T=r.len(),A=r.data;e===s.Q&&(v+=i-A[T-4],y+=n-A[T-3]),i+=f[m++],n+=f[m++],h=s.Q,r.addData(h,v,y,i,n);break;case"A":x=f[m++],_=f[m++],w=f[m++],b=f[m++],S=f[m++],M=i,I=n,i=f[m++],n=f[m++],h=s.A,Wa(M,I,i,n,b,S,x,_,w,h,r);break;case"a":x=f[m++],_=f[m++],w=f[m++],b=f[m++],S=f[m++],M=i,I=n,i+=f[m++],n+=f[m++],h=s.A,Wa(M,I,i,n,b,S,x,_,w,h,r)}}("z"===d||"Z"===d)&&(h=s.Z,r.addData(h),i=a,n=o),e=h}return r.toStatic(),r}function Za(t,e){var i=Ha(t);return e=e||{},e.buildPath=function(t){if(t.setData){t.setData(i.data);var e=t.getContext();e&&t.rebuildPath(e)}else{var e=t;i.rebuildPath(e)}},e.applyTransform=function(t){WI(i,t),this.dirty(!0)},e}function Ua(t,e){return new Fa(Za(t,e))}function Xa(t,e){return Fa.extend(Za(t,e))}function Ya(t,e){for(var i=[],n=t.length,a=0;n>a;a++){var o=t[a];o.path||o.createPathProxy(),o.__dirtyPath&&o.buildPath(o.path,o.shape,!0),i.push(o.path)}var r=new Fa(e);return r.createPathProxy(),r.buildPath=function(t){t.appendPath(i);var e=t.getContext();e&&t.rebuildPath(e)},r}function ja(t,e,i,n,a,o,r){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*r+(-3*(e-i)-2*s-l)*o+s*a+e}function qa(t,e,i){var n=e.points,a=e.smooth;if(n&&n.length>=2){if(a&&"spline"!==a){var o=oT(n,a,i,e.smoothConstraint);t.moveTo(n[0][0],n[0][1]);for(var r=n.length,s=0;(i?r:r-1)>s;s++){var l=o[2*s],u=o[2*s+1],h=n[(s+1)%r];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{"spline"===a&&(n=aT(n,i)),t.moveTo(n[0][0],n[0][1]);for(var s=1,c=n.length;c>s;s++)t.lineTo(n[s][0],n[s][1])}i&&t.closePath()}}function Ka(t,e,i){var n=i&&i.lineWidth;if(e&&n){var a=e.x1,o=e.x2,r=e.y1,s=e.y2;lT(2*a)===lT(2*o)?t.x1=t.x2=Ja(a,n,!0):(t.x1=a,t.x2=o),lT(2*r)===lT(2*s)?t.y1=t.y2=Ja(r,n,!0):(t.y1=r,t.y2=s)}}function $a(t,e,i){var n=i&&i.lineWidth;if(e&&n){var a=e.x,o=e.y,r=e.width,s=e.height;t.x=Ja(a,n,!0),t.y=Ja(o,n,!0),t.width=Math.max(Ja(a+r,n,!1)-t.x,0===r?0:1),t.height=Math.max(Ja(o+s,n,!1)-t.y,0===s?0:1)}}function Ja(t,e,i){var n=lT(2*t);return(n+lT(e))%2===0?n/2:(n+(i?1:-1))/2}function Qa(t,e,i){var n=t.cpx2,a=t.cpy2;return null===n||null===a?[(i?ca:ha)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?ca:ha)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?va:ma)(t.x1,t.cpx1,t.x2,e),(i?va:ma)(t.y1,t.cpy1,t.y2,e)]}function to(t){_n.call(this,t),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}function eo(t){return Fa.extend(t)}function io(t,e){return Xa(t,e)}function no(t,e,i,n){var a=Ua(t,e);return i&&("center"===n&&(i=oo(i,a.getBoundingRect())),ro(a,i)),a}function ao(t,e,i){var n=new wn({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===i){var a={width:t.width,height:t.height};n.setStyle(oo(e,a))}}});return n}function oo(t,e){var i,n=e.width/e.height,a=t.height*n;a<=t.width?i=t.height:(a=t.width,i=a/n);var o=t.x+t.width/2,r=t.y+t.height/2;return{x:o-a/2,y:r-i/2,width:a,height:i}}function ro(t,e){if(t.applyTransform){var i=t.getBoundingRect(),n=i.calculateTransform(e);t.applyTransform(n)}}function so(t){var e=t.shape,i=t.style.lineWidth;return wT(2*e.x1)===wT(2*e.x2)&&(e.x1=e.x2=uo(e.x1,i,!0)),wT(2*e.y1)===wT(2*e.y2)&&(e.y1=e.y2=uo(e.y1,i,!0)),t}function lo(t){var e=t.shape,i=t.style.lineWidth,n=e.x,a=e.y,o=e.width,r=e.height;return e.x=uo(e.x,i,!0),e.y=uo(e.y,i,!0),e.width=Math.max(uo(n+o,i,!1)-e.x,0===o?0:1),e.height=Math.max(uo(a+r,i,!1)-e.y,0===r?0:1),t}function uo(t,e,i){var n=wT(2*t);return(n+wT(e))%2===0?n/2:(n+(i?1:-1))/2}function ho(t){return null!=t&&"none"!==t}function co(t){if("string"!=typeof t)return t;var e=AT.get(t);return e||(e=qe(t,-.1),1e4>DT&&(AT.set(t,e),DT++)),e}function fo(t){if(t.__hoverStlDirty){t.__hoverStlDirty=!1;var e=t.__hoverStl;if(!e)return void(t.__cachedNormalStl=t.__cachedNormalZ2=null);var i=t.__cachedNormalStl={};t.__cachedNormalZ2=t.z2;var n=t.style;for(var a in e)null!=e[a]&&(i[a]=n[a]);i.fill=n.fill,i.stroke=n.stroke}}function po(t){var e=t.__hoverStl;if(e&&!t.__highlighted){var i=t.useHoverLayer;t.__highlighted=i?"layer":"plain";var n=t.__zr;if(n||!i){var a=t,o=t.style;i&&(a=n.addHover(t),o=a.style),Eo(o),i||fo(a),o.extendFrom(e),go(o,e,"fill"),go(o,e,"stroke"),Oo(o),i||(t.dirty(!1),t.z2+=IT)}}}function go(t,e,i){!ho(e[i])&&ho(t[i])&&(t[i]=co(t[i]))}function mo(t){var e=t.__highlighted;if(e)if(t.__highlighted=!1,"layer"===e)t.__zr&&t.__zr.removeHover(t);else if(e){var i=t.style,n=t.__cachedNormalStl;n&&(Eo(i),t.setStyle(n),Oo(i));var a=t.__cachedNormalZ2;null!=a&&t.z2-a===IT&&(t.z2=a)}}function vo(t,e){t.isGroup?t.traverse(function(t){!t.isGroup&&e(t)}):e(t)}function yo(t,e){e=t.__hoverStl=e!==!1&&(e||{}),t.__hoverStlDirty=!0,t.__highlighted&&(t.__cachedNormalStl=null,mo(t),po(t))}function xo(t){return t&&t.__isEmphasisEntered}function _o(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasisEntered&&vo(this,po)}function wo(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasisEntered&&vo(this,mo)}function bo(){this.__isEmphasisEntered=!0,vo(this,po)}function So(){this.__isEmphasisEntered=!1,vo(this,mo)}function Mo(t,e,i){t.isGroup?t.traverse(function(t){!t.isGroup&&yo(t,t.hoverStyle||e)}):yo(t,t.hoverStyle||e),Io(t,i)}function Io(t,e){var i=e===!1;if(t.__hoverSilentOnTouch=null!=e&&e.hoverSilentOnTouch,!i||t.__hoverStyleTrigger){var n=i?"off":"on";t[n]("mouseover",_o)[n]("mouseout",wo),t[n]("emphasis",bo)[n]("normal",So),t.__hoverStyleTrigger=!i}}function To(t,e,i,n,a,o,r){a=a||MT;var s,l=a.labelFetcher,u=a.labelDataIndex,h=a.labelDimIndex,c=i.getShallow("show"),d=n.getShallow("show");(c||d)&&(l&&(s=l.getFormattedLabel(u,"normal",null,h)),null==s&&(s=w(a.defaultText)?a.defaultText(u,a):a.defaultText));var f=c?s:null,p=d?C(l?l.getFormattedLabel(u,"emphasis",null,h):null,s):null;(null!=f||null!=p)&&(Ao(t,i,o,a),Ao(e,n,r,a,!0)),t.text=f,e.text=p}function Ao(t,e,i,n,a){return Co(t,e,n,a),i&&r(t,i),t}function Do(t,e,i){var n,a={isRectText:!0};i===!1?n=!0:a.autoColor=i,Co(t,e,a,n)}function Co(t,e,i,n){if(i=i||MT,i.isRectText){var a=e.getShallow("position")||(n?null:"inside");"outside"===a&&(a="top"),t.textPosition=a,t.textOffset=e.getShallow("offset");var o=e.getShallow("rotate");null!=o&&(o*=Math.PI/180),t.textRotation=o,t.textDistance=C(e.getShallow("distance"),n?null:5)}var r,s=e.ecModel,l=s&&s.option.textStyle,u=Lo(e);if(u){r={};for(var h in u)if(u.hasOwnProperty(h)){var c=e.getModel(["rich",h]);ko(r[h]={},c,l,i,n)}}return t.rich=r,ko(t,e,l,i,n,!0),i.forceRich&&!i.textStyle&&(i.textStyle={}),t}function Lo(t){for(var e;t&&t!==t.ecModel;){var i=(t.option||MT).rich;if(i){e=e||{};for(var n in i)i.hasOwnProperty(n)&&(e[n]=1)}t=t.parentModel}return e}function ko(t,e,i,n,a,o){i=!a&&i||MT,t.textFill=Po(e.getShallow("color"),n)||i.color,t.textStroke=Po(e.getShallow("textBorderColor"),n)||i.textBorderColor,t.textStrokeWidth=C(e.getShallow("textBorderWidth"),i.textBorderWidth),t.insideRawTextPosition=t.textPosition,a||(o&&(t.insideRollbackOpt=n,Oo(t)),null==t.textFill&&(t.textFill=n.autoColor)),t.fontStyle=e.getShallow("fontStyle")||i.fontStyle,t.fontWeight=e.getShallow("fontWeight")||i.fontWeight,t.fontSize=e.getShallow("fontSize")||i.fontSize,t.fontFamily=e.getShallow("fontFamily")||i.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"),o&&n.disableBox||(t.textBackgroundColor=Po(e.getShallow("backgroundColor"),n),t.textPadding=e.getShallow("padding"),t.textBorderColor=Po(e.getShallow("borderColor"),n),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")||i.textShadowColor,t.textShadowBlur=e.getShallow("textShadowBlur")||i.textShadowBlur,t.textShadowOffsetX=e.getShallow("textShadowOffsetX")||i.textShadowOffsetX,t.textShadowOffsetY=e.getShallow("textShadowOffsetY")||i.textShadowOffsetY}function Po(t,e){return"auto"!==t?t:e&&e.autoColor?e.autoColor:null}function Oo(t){var e=t.insideRollbackOpt;if(e&&null==t.textFill){var i,n=e.useInsideStyle,a=t.insideRawTextPosition,o=e.autoColor;n!==!1&&(n===!0||e.isRectText&&a&&"string"==typeof a&&a.indexOf("inside")>=0)?(i={textFill:null,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth},t.textFill="#fff",null==t.textStroke&&(t.textStroke=o,null==t.textStrokeWidth&&(t.textStrokeWidth=2))):null!=o&&(i={textFill:null},t.textFill=o),i&&(t.insideRollback=i)}}function Eo(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth,t.insideRollback=null)}function Ro(t,e){var i=e||e.getModel("textStyle");return E([t.fontStyle||i&&i.getShallow("fontStyle")||"",t.fontWeight||i&&i.getShallow("fontWeight")||"",(t.fontSize||i&&i.getShallow("fontSize")||12)+"px",t.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" "))}function No(t,e,i,n,a,o){"function"==typeof a&&(o=a,a=null);var r=n&&n.isAnimationEnabled();if(r){var s=t?"Update":"",l=n.getShallow("animationDuration"+s),u=n.getShallow("animationEasing"+s),h=n.getShallow("animationDelay"+s);"function"==typeof h&&(h=h(a,n.getAnimationDelayParams?n.getAnimationDelayParams(e,a):null)),"function"==typeof l&&(l=l(a)),l>0?e.animateTo(i,l,h||0,u,o,!!o):(e.stopAnimation(),e.attr(i),o&&o())}else e.stopAnimation(),e.attr(i),o&&o()}function zo(t,e,i,n,a){No(!0,t,e,i,n,a)}function Bo(t,e,i,n,a){No(!1,t,e,i,n,a)}function Vo(t,e){for(var i=Te([]);t&&t!==e;)De(i,t.getLocalTransform(),i),t=t.parent;return i}function Go(t,e,i){return e&&!d(e)&&(e=cS.getLocalTransform(e)),i&&(e=Pe([],e)),oe([],t,e)}function Fo(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),a=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-n:"right"===t?n:0,"top"===t?-a:"bottom"===t?a:0];return o=Go(o,e,i),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Wo(t,e,i){function n(t){var e={};return t.traverse(function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)}),e}function a(t){var e={position:H(t.position),rotation:t.rotation};return t.shape&&(e.shape=r({},t.shape)),e}if(t&&e){var o=n(t);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=o[t.anid];if(e){var n=a(t);t.attr(a(e)),zo(t,n,i,t.dataIndex)}}})}}function Ho(t,e){return p(t,function(t){var i=t[0];i=bT(i,e.x),i=ST(i,e.x+e.width);var n=t[1];return n=bT(n,e.y),n=ST(n,e.y+e.height),[i,n]})}function Zo(t,e){var i=bT(t.x,e.x),n=ST(t.x+t.width,e.x+e.width),a=bT(t.y,e.y),o=ST(t.y+t.height,e.y+e.height);return n>=i&&o>=a?{x:i,y:a,width:n-i,height:o-a}:void 0}function Uo(t,e,i){e=r({rectHover:!0},e);var n=e.style={strokeNoScale:!0};return i=i||{x:-1,y:-1,width:2,height:2},t?0===t.indexOf("image://")?(n.image=t.slice(8),s(n,i),new wn(e)):no(t.replace("path://",""),e,i,"center"):void 0}function Xo(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}function Yo(t,e,i){for(var n=0;n<e.length&&(!e[n]||(t=t&&"object"==typeof t?t[e[n]]:null,null!=t));n++);return null==t&&i&&(t=i.get(e)),t}function jo(t,e){var i=RT(t).getParent;return i?i.call(t,e):t.parentModel}function qo(t){return[t||"",NT++,Math.random().toFixed(5)].join("_")}function Ko(t){var e={};return t.registerSubTypeDefaulter=function(t,i){t=ea(t),e[t.main]=i},t.determineSubType=function(i,n){var a=n.type;if(!a){var o=ea(i).main;t.hasSubTypes(i)&&e[o]&&(a=e[o](n))}return a},t}function $o(t,e){function i(t){var i={},o=[];return f(t,function(r){var s=n(i,r),l=s.originalDeps=e(r),h=a(l,t);s.entryCount=h.length,0===s.entryCount&&o.push(r),f(h,function(t){u(s.predecessor,t)<0&&s.predecessor.push(t);var e=n(i,t);u(e.successor,t)<0&&e.successor.push(r)})}),{graph:i,noEntryList:o}}function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function a(t,e){var i=[];return f(t,function(t){u(e,t)>=0&&i.push(t)}),i}t.topologicalTravel=function(t,e,n,a){function o(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}function r(t){h[t]=!0,o(t)}if(t.length){var s=i(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&&(n.call(a,c,d.originalDeps.slice()),delete h[c]),f(d.successor,p?r:o)}f(h,function(){throw new Error("Circle dependency may exists")})}}}function Jo(t){return t.replace(/^\s+/,"").replace(/\s+$/,"")}function Qo(t,e,i,n){var a=e[1]-e[0],o=i[1]-i[0];if(0===a)return 0===o?i[0]:(i[0]+i[1])/2;if(n)if(a>0){if(t<=e[0])return i[0];if(t>=e[1])return i[1]}else{if(t>=e[0])return i[0];if(t<=e[1])return i[1]}else{if(t===e[0])return i[0];if(t===e[1])return i[1]}return(t-e[0])/a*o+i[0]}function tr(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?Jo(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?0/0:+t}function er(t,e,i){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),i?t:+t}function ir(t){return t.sort(function(t,e){return t-e}),t}function nr(t){if(t=+t,isNaN(t))return 0;for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i}function ar(t){var e=t.toString(),i=e.indexOf("e");if(i>0){var n=+e.slice(i+1);return 0>n?-n:0}var a=e.indexOf(".");return 0>a?0:e.length-1-a}function or(t,e){var i=Math.log,n=Math.LN10,a=Math.floor(i(t[1]-t[0])/n),o=Math.round(i(Math.abs(e[1]-e[0]))/n),r=Math.min(Math.max(-a+o,0),20);return isFinite(r)?r:20}function rr(t,e,i){if(!t[e])return 0;var n=g(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return 0;for(var a=Math.pow(10,i),o=p(t,function(t){return(isNaN(t)?0:t)/n*a*100}),r=100*a,s=p(o,function(t){return Math.floor(t)}),l=g(s,function(t,e){return t+e},0),u=p(o,function(t,e){return t-s[e]});r>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]/a}function sr(t){var e=2*Math.PI;return(t%e+e)%e}function lr(t){return t>-zT&&zT>t}function ur(t){if(t instanceof Date)return t;if("string"==typeof t){var e=VT.exec(t);if(!e)return new Date(0/0);if(e[8]){var i=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(i-=e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,i,+(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 hr(t){return Math.pow(10,cr(t))}function cr(t){return Math.floor(Math.log(t)/Math.LN10)}function dr(t,e){var i,n=cr(t),a=Math.pow(10,n),o=t/a;return i=e?1.5>o?1:2.5>o?2:4>o?3:7>o?5:10:1>o?1:2>o?2:3>o?3:5>o?5:10,t=i*a,n>=-20?+t.toFixed(0>n?-n:0):t}function fr(t,e){var i=(t.length-1)*e+1,n=Math.floor(i),a=+t[n-1],o=i-n;return o?a+o*(t[n]-a):a}function pr(t){function e(t,i,n){return t.interval[n]<i.interval[n]||t.interval[n]===i.interval[n]&&(t.close[n]-i.close[n]===(n?-1:1)||!n&&e(t,i,1))
}t.sort(function(t,i){return e(t,i,0)?-1:1});for(var i=-1/0,n=1,a=0;a<t.length;){for(var o=t[a].interval,r=t[a].close,s=0;2>s;s++)o[s]<=i&&(o[s]=i,r[s]=s?1:1-n),i=o[s],n=r[s];o[0]===o[1]&&r[0]*r[1]!==1?t.splice(a,1):a++}return t}function gr(t){return t-parseFloat(t)>=0}function mr(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:""))}function vr(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 yr(t){return null==t?"":(t+"").replace(WT,function(t,e){return HT[e]})}function xr(t,e,i){_(e)||(e=[e]);var n=e.length;if(!n)return"";for(var a=e[0].$vars||[],o=0;o<a.length;o++){var r=ZT[o];t=t.replace(UT(r),UT(r,0))}for(var s=0;n>s;s++)for(var l=0;l<a.length;l++){var u=e[s][a[l]];t=t.replace(UT(ZT[l],s),i?yr(u):u)}return t}function _r(t,e,i){return f(e,function(e,n){t=t.replace("{"+n+"}",i?yr(e):e)}),t}function wr(t,e){t=b(t)?{color:t,extraCssText:e}:t||{};var i=t.color,n=t.type,e=t.extraCssText,a=t.renderMode||"html",o=t.markerId||"X";return i?"html"===a?"subItem"===n?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+yr(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+yr(i)+";"+(e||"")+'"></span>':{renderMode:a,content:"{marker"+o+"|} ",style:{color:i}}:""}function br(t,e){return t+="","0000".substr(0,e-t.length)+t}function Sr(t,e,i){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var n=ur(e),a=i?"UTC":"",o=n["get"+a+"FullYear"](),r=n["get"+a+"Month"]()+1,s=n["get"+a+"Date"](),l=n["get"+a+"Hours"](),u=n["get"+a+"Minutes"](),h=n["get"+a+"Seconds"](),c=n["get"+a+"Milliseconds"]();return t=t.replace("MM",br(r,2)).replace("M",r).replace("yyyy",o).replace("yy",o%100).replace("dd",br(s,2)).replace("d",s).replace("hh",br(l,2)).replace("h",l).replace("mm",br(u,2)).replace("m",u).replace("ss",br(h,2)).replace("s",h).replace("SSS",br(c,3))}function Mr(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function Ir(t){return Bi(t.text,t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich,t.truncate)}function Tr(t,e,i,n,a,o,r,s){return Bi(t,e,i,n,a,s,o,r)}function Ar(t,e,i,n,a){var o=0,r=0;null==n&&(n=1/0),null==a&&(a=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 m=f.width+(g?-g.x+f.x:0);h=o+m,h>n||l.newline?(o=0,h=m,r+=s+i,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(g?-g.y+f.y:0);c=r+v,c>a||l.newline?(o+=s+i,r=0,c=v,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=o,d[1]=r,"horizontal"===t?o=h+i:r=c+i)})}function Dr(t,e,i){var n=e.width,a=e.height,o=tr(t.x,n),r=tr(t.y,a),s=tr(t.x2,n),l=tr(t.y2,a);return(isNaN(o)||isNaN(parseFloat(t.x)))&&(o=0),(isNaN(s)||isNaN(parseFloat(t.x2)))&&(s=n),(isNaN(r)||isNaN(parseFloat(t.y)))&&(r=0),(isNaN(l)||isNaN(parseFloat(t.y2)))&&(l=a),i=FT(i||0),{width:Math.max(s-o-i[1]-i[3],0),height:Math.max(l-r-i[0]-i[2],0)}}function Cr(t,e,i){i=FT(i||0);var n=e.width,a=e.height,o=tr(t.left,n),r=tr(t.top,a),s=tr(t.right,n),l=tr(t.bottom,a),u=tr(t.width,n),h=tr(t.height,a),c=i[2]+i[0],d=i[1]+i[3],f=t.aspect;switch(isNaN(u)&&(u=n-s-d-o),isNaN(h)&&(h=a-l-c-r),null!=f&&(isNaN(u)&&isNaN(h)&&(f>n/a?u=.8*n:h=.8*a),isNaN(u)&&(u=f*h),isNaN(h)&&(h=u/f)),isNaN(o)&&(o=n-s-u-d),isNaN(r)&&(r=a-l-h-c),t.left||t.right){case"center":o=n/2-u/2-i[3];break;case"right":o=n-u-d}switch(t.top||t.bottom){case"middle":case"center":r=a/2-h/2-i[0];break;case"bottom":r=a-h-c}o=o||0,r=r||0,isNaN(u)&&(u=n-d-o-(s||0)),isNaN(h)&&(h=a-c-r-(l||0));var p=new yi(o+i[3],r+i[0],u,h);return p.margin=i,p}function Lr(t,e,i,n,a){var o=!a||!a.hv||a.hv[0],r=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(o||r){var u;if("raw"===l)u="group"===t.type?new yi(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();u=u.clone(),u.applyTransform(h)}e=Cr(s({width:u.width,height:u.height},e),i,n);var c=t.position,d=o?e.x-u.x:0,f=r?e.y-u.y:0;t.attr("position","raw"===l?[d,f]:[c[0]+d,c[1]+f])}}function kr(t,e){return null!=t[KT[e][0]]||null!=t[KT[e][1]]&&null!=t[KT[e][2]]}function Pr(t,e,i){function n(i,n){var r={},l=0,u={},h=0,c=2;if(jT(i,function(e){u[e]=t[e]}),jT(i,function(t){a(e,t)&&(r[t]=u[t]=e[t]),o(r,t)&&l++,o(u,t)&&h++}),s[n])return o(e,i[1])?u[i[2]]=null:o(e,i[2])&&(u[i[1]]=null),u;if(h!==c&&l){if(l>=c)return r;for(var d=0;d<i.length;d++){var f=i[d];if(!a(r,f)&&a(t,f)){r[f]=t[f];break}}return r}return u}function a(t,e){return t.hasOwnProperty(e)}function o(t,e){return null!=t[e]&&"auto"!==t[e]}function r(t,e,i){jT(t,function(t){e[t]=i[t]})}!S(i)&&(i={});var s=i.ignoreSize;!_(s)&&(s=[s,s]);var l=n(KT[0],0),u=n(KT[1],1);r(KT[0],t,l),r(KT[1],t,u)}function Or(t){return Er({},t)}function Er(t,e){return e&&t&&jT(qT,function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t}function Rr(t){var e=[];return f(tA.getClassesByMainType(t),function(t){e=e.concat(t.prototype.dependencies||[])}),e=p(e,function(t){return ea(t).main}),"dataset"!==t&&u(e,"dataset")<=0&&e.unshift("dataset"),e}function Nr(t,e){for(var i=t.length,n=0;i>n;n++)if(t[n].length>e)return t[n];return t[i-1]}function zr(t){var e=t.get("coordinateSystem"),i={coordSysName:e,coordSysDims:[],axisMap:B(),categoryAxisMap:B()},n=oA[e];return n?(n(t,i,i.axisMap,i.categoryAxisMap),i):void 0}function Br(t){return"category"===t.get("type")}function Vr(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===uA?{}:[]),this.sourceFormat=t.sourceFormat||hA,this.seriesLayoutBy=t.seriesLayoutBy||dA,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&B(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}function Gr(t){var e=t.option.source,i=hA;if(I(e))i=cA;else if(_(e)){0===e.length&&(i=sA);for(var n=0,a=e.length;a>n;n++){var o=e[n];if(null!=o){if(_(o)){i=sA;break}if(S(o)){i=lA;break}}}}else if(S(e)){for(var r in e)if(e.hasOwnProperty(r)&&d(e[r])){i=uA;break}}else if(null!=e)throw new Error("Invalid data");pA(t).sourceFormat=i}function Fr(t){return pA(t).source}function Wr(t){pA(t).datasetMap=B()}function Hr(t){var e=t.option,i=e.data,n=I(i)?cA:rA,a=!1,o=e.seriesLayoutBy,r=e.sourceHeader,s=e.dimensions,l=qr(t);if(l){var u=l.option;i=u.source,n=pA(l).sourceFormat,a=!0,o=o||u.seriesLayoutBy,null==r&&(r=u.sourceHeader),s=s||u.dimensions}var h=Zr(i,n,o,r,s),c=e.encode;!c&&l&&(c=jr(t,l,i,n,o,h)),pA(t).source=new Vr({data:i,fromDataset:a,seriesLayoutBy:o,sourceFormat:n,dimensionsDefine:h.dimensionsDefine,startIndex:h.startIndex,dimensionsDetectCount:h.dimensionsDetectCount,encodeDefine:c})}function Zr(t,e,i,n,a){if(!t)return{dimensionsDefine:Ur(a)};var o,r,s;if(e===sA)"auto"===n||null==n?Xr(function(t){null!=t&&"-"!==t&&(b(t)?null==r&&(r=1):r=0)},i,t,10):r=n?1:0,a||1!==r||(a=[],Xr(function(t,e){a[e]=null!=t?t:""},i,t)),o=a?a.length:i===fA?t.length:t[0]?t[0].length:null;else if(e===lA)a||(a=Yr(t),s=!0);else if(e===uA)a||(a=[],s=!0,f(t,function(t,e){a.push(e)}));else if(e===rA){var l=Gn(t[0]);o=_(l)&&l.length||1}var u;return s&&f(a,function(t,e){"name"===(S(t)?t.name:t)&&(u=e)}),{startIndex:r,dimensionsDefine:Ur(a),dimensionsDetectCount:o,potentialNameDimIndex:u}}function Ur(t){if(t){var e=B();return p(t,function(t){if(t=r({},S(t)?t:{name:t}),null==t.name)return t;t.name+="",null==t.displayName&&(t.displayName=t.name);var i=e.get(t.name);return i?t.name+="-"+i.count++:e.set(t.name,{count:1}),t})}}function Xr(t,e,i,n){if(null==n&&(n=1/0),e===fA)for(var a=0;a<i.length&&n>a;a++)t(i[a]?i[a][0]:null,a);else for(var o=i[0]||[],a=0;a<o.length&&n>a;a++)t(o[a],a)}function Yr(t){for(var e,i=0;i<t.length&&!(e=t[i++]););if(e){var n=[];return f(e,function(t,e){n.push(e)}),n}}function jr(t,e,i,n,a,o){var r=zr(t),s={},l=[],u=[],h=t.subType,c=B(["pie","map","funnel"]),d=B(["line","bar","pictorialBar","scatter","effectScatter","candlestick","boxplot"]);if(r&&null!=d.get(h)){var p=t.ecModel,g=pA(p).datasetMap,m=e.uid+"_"+a,v=g.get(m)||g.set(m,{categoryWayDim:1,valueWayDim:0});f(r.coordSysDims,function(t){if(null==r.firstCategoryDimIndex){var e=v.valueWayDim++;s[t]=e,u.push(e)}else if(r.categoryAxisMap.get(t))s[t]=0,l.push(0);else{var e=v.categoryWayDim++;s[t]=e,u.push(e)}})}else if(null!=c.get(h)){for(var y,x=0;5>x&&null==y;x++)$r(i,n,a,o.dimensionsDefine,o.startIndex,x)||(y=x);if(null!=y){s.value=y;var _=o.potentialNameDimIndex||Math.max(y-1,0);u.push(_),l.push(_)}}return l.length&&(s.itemName=l),u.length&&(s.seriesName=u),s}function qr(t){var e=t.option,i=e.data;return i?void 0:t.ecModel.getComponent("dataset",e.datasetIndex||0)}function Kr(t,e){return $r(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function $r(t,e,i,n,a,o){function r(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(n&&(u=n[o],u=S(u)?u.name:u),e===sA)if(i===fA){for(var h=t[o],c=0;c<(h||[]).length&&l>c;c++)if(null!=(s=r(h[a+c])))return s}else for(var c=0;c<t.length&&l>c;c++){var d=t[a+c];if(d&&null!=(s=r(d[o])))return s}else if(e===lA){if(!u)return;for(var c=0;c<t.length&&l>c;c++){var f=t[c];if(f&&null!=(s=r(f[u])))return s}}else if(e===uA){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=r(h[c])))return s}else if(e===rA)for(var c=0;c<t.length&&l>c;c++){var f=t[c],p=Gn(f);if(!_(p))return!1;if(null!=(s=r(p[o])))return s}return!1}function Jr(t,e){if(e){var i=e.seiresIndex,n=e.seriesId,a=e.seriesName;return null!=i&&t.componentIndex!==i||null!=n&&t.id!==n||null!=a&&t.name!==a}}function Qr(t,e){var i=t.color&&!t.colorLayer;f(e,function(e,o){"colorLayer"===o&&i||tA.hasClass(o)||("object"==typeof e?t[o]=t[o]?a(t[o],e,!1):n(e):null==t[o]&&(t[o]=e))})}function ts(t){t=t,this.option={},this.option[gA]=1,this._componentsMap=B({series:[]}),this._seriesIndices,this._seriesIndicesMap,Qr(t,this._theme.option),a(t,iA,!1),this.mergeOption(t)}function es(t,e){_(e)||(e=e?[e]:[]);var i={};return f(e,function(e){i[e]=(t.get(e)||[]).slice()}),i}function is(t,e,i){var n=e.type?e.type:i?i.subType:tA.determineSubType(t,e);return n}function ns(t,e){t._seriesIndicesMap=B(t._seriesIndices=p(e,function(t){return t.componentIndex})||[])}function as(t,e){return e.hasOwnProperty("subType")?m(t,function(t){return t.subType===e.subType}):t}function os(t){f(vA,function(e){this[e]=y(t[e],t)},this)}function rs(){this._coordinateSystems=[]}function ss(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function ls(t,e,i){var n,a,o=[],r=[],s=t.timeline;if(t.baseOption&&(a=t.baseOption),(s||t.options)&&(a=a||{},o=(t.options||[]).slice()),t.media){a=a||{};var l=t.media;xA(l,function(t){t&&t.option&&(t.query?r.push(t):n||(n=t))})}return a||(a=t),a.timeline||(a.timeline=s),xA([a].concat(o).concat(p(r,function(t){return t.option})),function(t){xA(e,function(e){e(t,i)})}),{baseOption:a,timelineOptions:o,mediaDefault:n,mediaList:r}}function us(t,e,i){var n={width:e,height:i,aspectratio:e/i},a=!0;return f(t,function(t,e){var i=e.match(SA);if(i&&i[1]&&i[2]){var o=i[1],r=i[2].toLowerCase();hs(n[r],t,o)||(a=!1)}}),a}function hs(t,e,i){return"min"===i?t>=e:"max"===i?e>=t:t===e}function cs(t,e){return t.join(",")===e.join(",")}function ds(t,e){e=e||{},xA(e,function(e,i){if(null!=e){var n=t[i];if(tA.hasClass(i)){e=Bn(e),n=Bn(n);var a=Wn(n,e);t[i]=wA(a,function(t){return t.option&&t.exist?bA(t.exist,t.option,!0):t.exist||t.option})}else t[i]=bA(n,e,!0)}})}function fs(t){var e=t&&t.itemStyle;if(e)for(var i=0,n=TA.length;n>i;i++){var o=TA[i],r=e.normal,s=e.emphasis;r&&r[o]&&(t[o]=t[o]||{},t[o].normal?a(t[o].normal,r[o]):t[o].normal=r[o],r[o]=null),s&&s[o]&&(t[o]=t[o]||{},t[o].emphasis?a(t[o].emphasis,s[o]):t[o].emphasis=s[o],s[o]=null)}}function ps(t,e,i){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,a=t[e].emphasis;n&&(i?(t[e].normal=t[e].emphasis=null,s(t[e],n)):t[e]=n),a&&(t.emphasis=t.emphasis||{},t.emphasis[e]=a)}}function gs(t){ps(t,"itemStyle"),ps(t,"lineStyle"),ps(t,"areaStyle"),ps(t,"label"),ps(t,"labelLine"),ps(t,"upperLabel"),ps(t,"edgeLabel")}function ms(t,e){var i=IA(t)&&t[e],n=IA(i)&&i.textStyle;if(n)for(var a=0,o=GM.length;o>a;a++){var e=GM[a];n.hasOwnProperty(e)&&(i[e]=n[e])}}function vs(t){t&&(gs(t),ms(t,"label"),t.emphasis&&ms(t.emphasis,"label"))}function ys(t){if(IA(t)){fs(t),gs(t),ms(t,"label"),ms(t,"upperLabel"),ms(t,"edgeLabel"),t.emphasis&&(ms(t.emphasis,"label"),ms(t.emphasis,"upperLabel"),ms(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(fs(e),vs(e));var i=t.markLine;i&&(fs(i),vs(i));var n=t.markArea;n&&vs(n);var a=t.data;if("graph"===t.type){a=a||t.nodes;var o=t.links||t.edges;if(o&&!I(o))for(var r=0;r<o.length;r++)vs(o[r]);f(t.categories,function(t){gs(t)})}if(a&&!I(a))for(var r=0;r<a.length;r++)vs(a[r]);var e=t.markPoint;if(e&&e.data)for(var s=e.data,r=0;r<s.length;r++)vs(s[r]);var i=t.markLine;if(i&&i.data)for(var l=i.data,r=0;r<l.length;r++)_(l[r])?(vs(l[r][0]),vs(l[r][1])):vs(l[r]);"gauge"===t.type?(ms(t,"axisLabel"),ms(t,"title"),ms(t,"detail")):"treemap"===t.type?(ps(t.breadcrumb,"itemStyle"),f(t.levels,function(t){gs(t)})):"tree"===t.type&&gs(t.leaves)}}function xs(t){return _(t)?t:t?[t]:[]}function _s(t){return(_(t)?t[0]:t)||{}}function ws(t,e){e=e.split(",");for(var i=t,n=0;n<e.length&&(i=i&&i[e[n]],null!=i);n++);return i}function bs(t,e,i,n){e=e.split(",");for(var a,o=t,r=0;r<e.length-1;r++)a=e[r],null==o[a]&&(o[a]={}),o=o[a];(n||null==o[e[r]])&&(o[e[r]]=i)}function Ss(t){f(DA,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}function Ms(t){f(t,function(e,i){var n=[],a=[0/0,0/0],o=[e.stackResultDimension,e.stackedOverDimension],r=e.data,s=e.isStackedByIndex,l=r.map(o,function(o,l,u){var h=r.get(e.stackedDimension,u);if(isNaN(h))return a;var c,d;s?d=r.getRawIndex(u):c=r.get(e.stackedByDimension,u);for(var f=0/0,p=i-1;p>=0;p--){var g=t[p];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,c)),d>=0){var m=g.data.getByRawIndex(g.stackResultDimension,d);if(h>=0&&m>0||0>=h&&0>m){h+=m,f=m;break}}}return n[0]=h,n[1]=f,n});r.hostModel.setData(l),e.data=l})}function Is(t,e){Vr.isInstance(t)||(t=Vr.seriesDataToSource(t)),this._source=t;var i=this._data=t.data,n=t.sourceFormat;n===cA&&(this._offset=0,this._dimSize=e,this._data=i);var a=OA[n===sA?n+"_"+t.seriesLayoutBy:n];r(this,a)}function Ts(){return this._data.length}function As(t){return this._data[t]}function Ds(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}function Cs(t,e,i){return null!=i?t[i]:t}function Ls(t,e,i,n){return ks(t[n],this._dimensionInfos[e])}function ks(t,e){var i=e&&e.type;if("ordinal"===i){var n=e&&e.ordinalMeta;return n?n.parseAndCollect(t):t}return"time"===i&&"number"!=typeof t&&null!=t&&"-"!==t&&(t=+ur(t)),null==t||""===t?0/0:+t}function Ps(t,e,i){if(t){var n=t.getRawDataItem(e);if(null!=n){var a,o,r=t.getProvider().getSource().sourceFormat,s=t.getDimensionInfo(i);return s&&(a=s.name,o=s.index),EA[r](n,e,o,a)}}}function Os(t,e,i){if(t){var n=t.getProvider().getSource().sourceFormat;if(n===rA||n===lA){var a=t.getRawDataItem(e);return n!==rA||S(a)||(a=null),a?a[i]:void 0}}}function Es(t){return new Rs(t)}function Rs(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 Ns(t,e,i,n,a,o){VA.reset(i,n,a,o),t._callingProgress=e,t._callingProgress({start:i,end:n,count:n-i,next:VA.next},t.context)}function zs(t,e){t._dueIndex=t._outputDueEnd=t._dueEnd=0,t._settedOutputEnd=null;var i,n;!e&&t._reset&&(i=t._reset(t.context),i&&i.progress&&(n=i.forceFirstProgress,i=i.progress),_(i)&&!i.length&&(i=null)),t._progress=i,t._modBy=t._modDataCount=null;var a=t._downstream;return a&&a.dirty(),n}function Bs(t){var e=t.name;Zn(t)||(t.name=Vs(t)||e)}function Vs(t){var e=t.getRawData(),i=e.mapDimension("seriesName",!0),n=[];return f(i,function(t){var i=e.getDimensionInfo(t);i.displayName&&n.push(i.displayName)}),n.join(" ")}function Gs(t){return t.model.getRawData().count()}function Fs(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Ws}function Ws(t,e){t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Hs(t,e){f(t.CHANGABLE_METHODS,function(i){t.wrapMethod(i,x(Zs,e))})}function Zs(t){var e=Us(t);e&&e.setOutputEnd(this.count())}function Us(t){var e=(t.ecModel||{}).scheduler,i=e&&e.getPipeline(t.uid);if(i){var n=i.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(t.uid))}return n}}function Xs(){this.group=new GS,this.uid=qo("viewChart"),this.renderTask=Es({plan:qs,reset:Ks}),this.renderTask.context={view:this}}function Ys(t,e){if(t&&(t.trigger(e),"group"===t.type))for(var i=0;i<t.childCount();i++)Ys(t.childAt(i),e)}function js(t,e,i){var n=Yn(t,e);null!=n?f(Bn(n),function(e){Ys(t.getItemGraphicEl(e),i)}):t.eachItemGraphicEl(function(t){Ys(t,i)})}function qs(t){return XA(t.model)}function Ks(t){var e=t.model,i=t.ecModel,n=t.api,a=t.payload,o=e.pipelineContext.progressiveRender,r=t.view,s=a&&UA(a).updateMethod,l=o?"incrementalPrepareRender":s&&r[s]?s:"render";return"render"!==l&&r[l](e,i,n,a),jA[l]}function $s(t,e,i){function n(){h=(new Date).getTime(),c=null,t.apply(r,s||[])}var a,o,r,s,l,u=0,h=0,c=null;e=e||0;var d=function(){a=(new Date).getTime(),r=this,s=arguments;var t=l||e,d=l||i;l=null,o=a-(d?u:h)-t,clearTimeout(c),d?c=setTimeout(n,t):o>=0?n():c=setTimeout(n,-o),u=a};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){l=t},d}function Js(t,e,i,n){var a=t[e];if(a){var o=a[qA]||a,r=a[$A],s=a[KA];if(s!==i||r!==n){if(null==i||!n)return t[e]=o;a=t[e]=$s(o,i,"debounce"===n),a[qA]=o,a[$A]=n,a[KA]=i}return a}}function Qs(t,e){var i=t[e];i&&i[qA]&&(t[e]=i[qA])}function tl(t,e,i,n){this.ecInstance=t,this.api=e,this.unfinished;var i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice();this._allHandlers=i.concat(n),this._stageTaskMap=B()}function el(t,e,i,n,a){function o(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}a=a||{};var r;f(e,function(e){if(!a.visualType||a.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){o(a,t)&&(t.dirty(),h=!0)}),h&&u.dirty(),aD(u,n);var d=t.getPerformArgs(u,a.block);c.each(function(t){t.perform(d)}),r|=u.perform(d)}else l&&l.each(function(s){o(a,s)&&s.dirty();var l=t.getPerformArgs(s,a.block);l.skip=!e.performRawSeries&&i.isSeriesFiltered(s.context.model),aD(s,n),r|=s.perform(l)})}}),t.unfinished|=r}function il(t,e,i,n,a){function o(i){var o=i.uid,s=r.get(o)||r.set(o,Es({plan:ll,reset:ul,count:cl}));s.context={model:i,ecModel:n,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:t},dl(t,i,s)}var r=i.seriesTaskMap||(i.seriesTaskMap=B()),s=e.seriesType,l=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(o):s?n.eachRawSeriesByType(s,o):l&&l(n,a).each(o);var u=t._pipelineMap;r.each(function(t,e){u.get(e)||(t.dispose(),r.removeKey(e))})}function nl(t,e,i,n,a){function o(e){var i=e.uid,n=s.get(i);n||(n=s.set(i,Es({reset:ol,onDirty:sl})),r.dirty()),n.context={model:e,overallProgress:h,modifyOutputEnd:c},n.agent=r,n.__block=h,dl(t,e,n)}var r=i.overallTask=i.overallTask||Es({reset:al});r.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:t};var s=r.agentStubMap=r.agentStubMap||B(),l=e.seriesType,u=e.getTargetSeries,h=!0,c=e.modifyOutputEnd;l?n.eachRawSeriesByType(l,o):u?u(n,a).each(o):(h=!1,f(n.getSeries(),o));var d=t._pipelineMap;s.each(function(t,e){d.get(e)||(t.dispose(),r.dirty(),s.removeKey(e))})}function al(t){t.overallReset(t.ecModel,t.api,t.payload)}function ol(t){return t.overallProgress&&rl}function rl(){this.agent.dirty(),this.getDownstream().dirty()}function sl(){this.agent&&this.agent.dirty()}function ll(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)}function ul(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Bn(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?p(e,function(t,e){return hl(e)}):oD}function hl(t){return function(e,i){var n=i.data,a=i.resetDefines[t];if(a&&a.dataEach)for(var o=e.start;o<e.end;o++)a.dataEach(n,o);else a&&a.progress&&a.progress(e,n)}}function cl(t){return t.data.count()}function dl(t,e,i){var n=e.uid,a=t._pipelineMap.get(n);!a.head&&(a.head=i),a.tail&&a.tail.pipe(i),a.tail=i,i.__idxInPipeline=a.count++,i.__pipeline=a}function fl(t){rD=null;try{t(sD,lD)}catch(e){}return rD}function pl(t,e){for(var i in e.prototype)t[i]=G}function gl(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 ml(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}function vl(t,e){for(var i=t.firstChild;i;){if(1===i.nodeType){var n=i.getAttribute("offset");n=n.indexOf("%")>0?parseInt(n,10)/100:n?parseFloat(n):0;var a=i.getAttribute("stop-color")||"#000000";e.addColorStop(n,a)}i=i.nextSibling}}function yl(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),s(e.__inheritedStyle,t.__inheritedStyle))}function xl(t){for(var e=E(t).split(mD),i=[],n=0;n<e.length;n+=2){var a=parseFloat(e[n]),o=parseFloat(e[n+1]);i.push([a,o])}return i}function _l(t,e,i,n){var a=e.__inheritedStyle||{},o="text"===e.type;if(1===t.nodeType&&(bl(t,e),r(a,Sl(t)),!n))for(var s in xD)if(xD.hasOwnProperty(s)){var l=t.getAttribute(s);null!=l&&(a[xD[s]]=l)}var u=o?"textFill":"fill",h=o?"textStroke":"stroke";e.style=e.style||new qS;var c=e.style;null!=a.fill&&c.set(u,wl(a.fill,i)),null!=a.stroke&&c.set(h,wl(a.stroke,i)),f(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(t){var e="lineWidth"===t&&o?"textStrokeWidth":t;null!=a[t]&&c.set(e,parseFloat(a[t]))}),a.textBaseline&&"auto"!==a.textBaseline||(a.textBaseline="alphabetic"),"alphabetic"===a.textBaseline&&(a.textBaseline="bottom"),"start"===a.textAlign&&(a.textAlign="left"),"end"===a.textAlign&&(a.textAlign="right"),f(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(t){null!=a[t]&&c.set(t,a[t])}),a.lineDash&&(e.style.lineDash=E(a.lineDash).split(mD)),c[h]&&"none"!==c[h]&&(e[h]=!0),e.__inheritedStyle=a}function wl(t,e){var i=e&&t&&t.match(_D);if(i){var n=E(i[1]),a=e[n];return a}return t}function bl(t,e){var i=t.getAttribute("transform");if(i){i=i.replace(/,/g," ");var n=null,a=[];i.replace(wD,function(t,e,i){a.push(e,i)});for(var o=a.length-1;o>0;o-=2){var r=a[o],s=a[o-1];switch(n=n||Ie(),s){case"translate":r=E(r).split(mD),Ce(n,n,[parseFloat(r[0]),parseFloat(r[1]||0)]);break;case"scale":r=E(r).split(mD),ke(n,n,[parseFloat(r[0]),parseFloat(r[1]||r[0])]);break;case"rotate":r=E(r).split(mD),Le(n,n,parseFloat(r[0]));break;case"skew":r=E(r).split(mD),console.warn("Skew transform is not supported yet");break;case"matrix":var r=E(r).split(mD);n[0]=parseFloat(r[0]),n[1]=parseFloat(r[1]),n[2]=parseFloat(r[2]),n[3]=parseFloat(r[3]),n[4]=parseFloat(r[4]),n[5]=parseFloat(r[5])}}e.setLocalTransform(n)}}function Sl(t){var e=t.getAttribute("style"),i={};if(!e)return i;var n={};bD.lastIndex=0;for(var a;null!=(a=bD.exec(e));)n[a[1]]=a[2];for(var o in xD)xD.hasOwnProperty(o)&&null!=n[o]&&(i[xD[o]]=n[o]);return i}function Ml(t,e,i){var n=e/t.width,a=i/t.height,o=Math.min(n,a),r=[o,o],s=[-(t.x+t.width/2)*o+e/2,-(t.y+t.height/2)*o+i/2];return{scale:r,position:s}}function Il(t,e){var i=new ml;return i.parse(t,e)}function Tl(t){return function(e,i,n){e=e&&e.toLowerCase(),Jb.prototype[t].call(this,e,i,n)}}function Al(){Jb.call(this)}function Dl(t,e,i){function a(t,e){return t.__prio-e.__prio}i=i||{},"string"==typeof e&&(e=tC[e]),this.id,this.group,this._dom=t;var o="canvas",r=this._zr=On(t,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height});this._throttledZrFlush=$s(y(r.flush,r),17);var e=n(e);e&&LA(e,!0),this._theme=e,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new rs;var s=this._api=Xl(this);Ti(QD,a),Ti(KD,a),this._scheduler=new tl(this,s,KD,QD),Jb.call(this,this._ecEventProcessor=new Yl),this._messageCenter=new Al,this._initEvents(),this.resize=y(this.resize,this),this._pendingActions=[],r.animation.on("frame",this._onframe,this),Nl(r,this),R(this)}function Cl(t,e,i){var n,a=this._model,o=this._coordSysMgr.getCoordinateSystems();e=qn(a,e);for(var r=0;r<o.length;r++){var s=o[r];if(s[t]&&null!=(n=s[t](a,e,i)))return n}}function Ll(t){var e=t._model,i=t._scheduler;i.restorePipelines(e),i.prepareStageTasks(),zl(t,"component",e,i),zl(t,"chart",e,i),i.plan()}function kl(t,e,i,n,a){function o(n){n&&n.__alive&&n[e]&&n[e](n.__model,r,t._api,i)}var r=t._model;if(!n)return void AD(t._componentsViews.concat(t._chartsViews),o);var s={};s[n+"Id"]=i[n+"Id"],s[n+"Index"]=i[n+"Index"],s[n+"Name"]=i[n+"Name"];var l={mainType:n,query:s};a&&(l.subType=a);var u=i.excludeSeriesId;null!=u&&(u=B(Bn(u))),r&&r.eachComponent(l,function(e){u&&null!=u.get(e.id)||o(t["series"===n?"_chartsMap":"_componentsMap"][e.__viewId])},t)}function Pl(t,e){var i=t._chartsMap,n=t._scheduler;e.eachSeries(function(t){n.updateStreamModes(t,i[t.__viewId])})}function Ol(t,e){var i=t.type,n=t.escapeConnect,a=jD[i],o=a.actionInfo,l=(o.update||"update").split(":"),u=l.pop();l=null!=l[0]&&LD(l[0]),this[WD]=!0;var h=[t],c=!1;t.batch&&(c=!0,h=p(t.batch,function(e){return e=s(r({},e),t),e.batch=null,e}));var d,f=[],g="highlight"===i||"downplay"===i;AD(h,function(t){d=a.action(t,this._model,this._api),d=d||r({},t),d.type=o.event||d.type,f.push(d),g?kl(this,u,t,"series"):l&&kl(this,u,t,l.main,l.sub)},this),"none"===u||g||l||(this[HD]?(Ll(this),XD.update.call(this,t),this[HD]=!1):XD[u].call(this,t)),d=c?{type:o.event||i,escapeConnect:n,batch:f}:f[0],this[WD]=!1,!e&&this._messageCenter.trigger(d.type,d)}function El(t){for(var e=this._pendingActions;e.length;){var i=e.shift();Ol.call(this,i,t)}}function Rl(t){!t&&this.trigger("updated")}function Nl(t,e){t.on("rendered",function(){e.trigger("rendered"),!t.animation.isFinished()||e[HD]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})}function zl(t,e,i,n){function a(t){var e="_ec_"+t.id+"_"+t.type,a=s[e];if(!a){var h=LD(t.type),c=o?WA.getClass(h.main,h.sub):Xs.getClass(h.sub);a=new c,a.init(i,u),s[e]=a,r.push(a),l.add(a.group)}t.__viewId=a.__id=e,a.__alive=!0,a.__model=t,a.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!o&&n.prepareView(a,t,i,u)}for(var o="component"===e,r=o?t._componentsViews:t._chartsViews,s=o?t._componentsMap:t._chartsMap,l=t._zr,u=t._api,h=0;h<r.length;h++)r[h].__alive=!1;o?i.eachComponent(function(t,e){"series"!==t&&a(e)}):i.eachSeries(a);for(var h=0;h<r.length;){var c=r[h];c.__alive?h++:(!o&&c.renderTask.dispose(),l.remove(c.group),c.dispose(i,u),r.splice(h,1),delete s[c.__id],c.__id=c.group.__ecComponentInfo=null)}}function Bl(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function Vl(t,e,i,n){Gl(t,e,i,n),AD(t._chartsViews,function(t){t.__alive=!1}),Fl(t,e,i,n),AD(t._chartsViews,function(t){t.__alive||t.remove(e,i)})}function Gl(t,e,i,n,a){AD(a||t._componentsViews,function(t){var a=t.__model;t.render(a,e,i,n),Ul(a,t)})}function Fl(t,e,i,n,a){var o,r=t._scheduler;e.eachSeries(function(e){var i=t._chartsMap[e.__viewId];i.__alive=!0;var s=i.renderTask;r.updatePayload(s,n),a&&a.get(e.uid)&&s.dirty(),o|=s.perform(r.getPerformArgs(s)),i.group.silent=!!e.get("silent"),Ul(e,i),Zl(e,i)}),r.unfinished|=o,Hl(t._zr,e),tD(t._zr.dom,e)}function Wl(t,e){AD(JD,function(i){i(t,e)})}function Hl(t,e){var i=t.storage,n=0;i.traverse(function(t){t.isGroup||n++}),n>e.get("hoverLayerThreshold")&&!Lb.node&&i.traverse(function(t){t.isGroup||(t.useHoverLayer=!0)})}function Zl(t,e){var i=t.get("blendMode")||null;e.group.traverse(function(t){t.isGroup||t.style.blend!==i&&t.setStyle("blend",i),t.eachPendingDisplayable&&t.eachPendingDisplayable(function(t){t.setStyle("blend",i)})})}function Ul(t,e){var i=t.get("z"),n=t.get("zlevel");e.group.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=n&&(t.zlevel=n))})}function Xl(t){var e=t._coordSysMgr;return r(new os(t),{getCoordinateSystems:y(e.getCoordinateSystems,e),getComponentByElement:function(e){for(;e;){var i=e.__ecComponentInfo;if(null!=i)return t._model.getComponent(i.mainType,i.index);e=e.parent}}})}function Yl(){this.eventInfo}function jl(t){function e(t,e){for(var i=0;i<t.length;i++){var n=t[i];n[o]=e}}var i=0,n=1,a=2,o="__connectUpdateStatus";AD(qD,function(r,s){t._messageCenter.on(s,function(r){if(nC[t.group]&&t[o]!==i){if(r&&r.escapeConnect)return;var s=t.makeActionFromEvent(r),l=[];AD(iC,function(e){e!==t&&e.group===t.group&&l.push(e)}),e(l,i),AD(l,function(t){t[o]!==n&&t.dispatchAction(s)}),e(l,a)}})})}function ql(t,e,i){var n=Ql(t);if(n)return n;var a=new Dl(t,e,i);return a.id="ec_"+aC++,iC[a.id]=a,$n(t,rC,a.id),jl(a),a}function Kl(t){if(_(t)){var e=t;t=null,AD(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+oC++,AD(e,function(e){e.group=t})}return nC[t]=!0,t}function $l(t){nC[t]=!1}function Jl(t){"string"==typeof t?t=iC[t]:t instanceof Dl||(t=Ql(t)),t instanceof Dl&&!t.isDisposed()&&t.dispose()}function Ql(t){return iC[Jn(t,rC)]}function tu(t){return iC[t]}function eu(t,e){tC[t]=e}function iu(t){$D.push(t)}function nu(t,e){hu(KD,t,e,ED)}function au(t){JD.push(t)}function ou(t,e,i){"function"==typeof e&&(i=e,e="");var n=CD(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,TD(ZD.test(n)&&ZD.test(e)),jD[n]||(jD[n]={action:i,actionInfo:t}),qD[e]=n}function ru(t,e){rs.register(t,e)}function su(t){var e=rs.get(t);return e?e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice():void 0}function lu(t,e){hu(QD,t,e,ND,"layout")}function uu(t,e){hu(QD,t,e,BD,"visual")}function hu(t,e,i,n,a){(DD(e)||CD(e))&&(i=e,e=n);var o=tl.wrapStageHandler(i,a);return o.__prio=e,o.__raw=i,t.push(o),o}function cu(t,e){eC[t]=e}function du(t){return tA.extend(t)}function fu(t){return WA.extend(t)}function pu(t){return FA.extend(t)}function gu(t){return Xs.extend(t)}function mu(t){i("createCanvas",t)}function vu(t,e,i){MD.registerMap(t,e,i)}function yu(t){var e=MD.retrieveMap(t);return e&&e[0]&&{geoJson:e[0].geoJSON,specialAreas:e[0].specialAreas}}function xu(t){return t}function _u(t,e,i,n,a){this._old=t,this._new=e,this._oldKeyGetter=i||xu,this._newKeyGetter=n||xu,this.context=a}function wu(t,e,i,n,a){for(var o=0;o<t.length;o++){var r="_ec_"+a[n](t[o],o),s=e[r];null==s?(i.push(r),e[r]=o):(s.length||(e[r]=s=[s]),s.push(o))}}function bu(t){var e={},i=e.encode={},n=B(),a=[],o=[];f(t.dimensions,function(e){var r=t.getDimensionInfo(e),s=r.coordDim;if(s){var l=i[s];i.hasOwnProperty(s)||(l=i[s]=[]),l[r.coordDimIndex]=e,r.isExtraCoord||(n.set(s,1),Mu(r.type)&&(a[0]=e)),r.defaultTooltip&&o.push(e)}uC.each(function(t,e){var n=i[e];i.hasOwnProperty(e)||(n=i[e]=[]);var a=r.otherDims[e];null!=a&&a!==!1&&(n[a]=r.name)})});var r=[],s={};n.each(function(t,e){var n=i[e];s[e]=n[0],r=r.concat(n)}),e.dataDimsOnCoord=r,e.encodeFirstDimNotExtra=s;var l=i.label;l&&l.length&&(a=l.slice());var u=i.tooltip;return u&&u.length?o=u.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,e}function Su(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function Mu(t){return!("ordinal"===t||"time"===t)}function Iu(t){return t._rawCount>65535?gC:vC}function Tu(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Au(t,e){f(yC.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,f(xC,function(i){t[i]=n(e[i])}),t._calculationInfo=r(e._calculationInfo)}function Du(t,e,i,n,a){var o=pC[e.type],r=n-1,s=e.name,l=t[s][r];if(l&&l.length<i){for(var u=new o(Math.min(a-r*i,i)),h=0;h<l.length;h++)u[h]=l[h];
t[s][r]=u}for(var c=n*i;a>c;c+=i)t[s].push(new o(Math.min(a-c,i)))}function Cu(t){var e=t._invertedIndicesMap;f(e,function(i,n){var a=t._dimensionInfos[n],o=a.ordinalMeta;if(o){i=e[n]=new mC(o.categories.length);for(var r=0;r<i.length;r++)i[r]=dC;for(var r=0;r<t._count;r++)i[t.get(n,r)]=r}})}function Lu(t,e,i){var n;if(null!=e){var a=t._chunkSize,o=Math.floor(i/a),r=i%a,s=t.dimensions[e],l=t._storage[s][o];if(l){n=l[r];var u=t._dimensionInfos[s].ordinalMeta;u&&u.categories.length&&(n=u.categories[n])}}return n}function ku(t){return t}function Pu(t){return t<this._count&&t>=0?this._indices[t]:-1}function Ou(t,e){var i=t._idList[e];return null==i&&(i=Lu(t,t._idDimIdx,e)),null==i&&(i=fC+e),i}function Eu(t){return _(t)||(t=[t]),t}function Ru(t,e){var i=t.dimensions,n=new _C(p(i,t.getDimensionInfo,t),t.hostModel);Au(n,t);for(var a=n._storage={},o=t._storage,r=0;r<i.length;r++){var s=i[r];o[s]&&(u(e,s)>=0?(a[s]=Nu(o[s]),n._rawExtent[s]=zu(),n._extent[s]=null):a[s]=o[s])}return n}function Nu(t){for(var e=new Array(t.length),i=0;i<t.length;i++)e[i]=Tu(t[i]);return e}function zu(){return[1/0,-1/0]}function Bu(t,e,i){function a(t,e,i){null!=uC.get(e)?t.otherDims[e]=i:(t.coordDim=e,t.coordDimIndex=i,h.set(e,!0))}Vr.isInstance(e)||(e=Vr.seriesDataToSource(e)),i=i||{},t=(t||[]).slice();for(var o=(i.dimsDef||[]).slice(),l=B(i.encodeDef),u=B(),h=B(),c=[],d=Vu(e,t,o,i.dimCount),p=0;d>p;p++){var g=o[p]=r({},S(o[p])?o[p]:{name:o[p]}),m=g.name,v=c[p]={otherDims:{}};null!=m&&null==u.get(m)&&(v.name=v.displayName=m,u.set(m,p)),null!=g.type&&(v.type=g.type),null!=g.displayName&&(v.displayName=g.displayName)}l.each(function(t,e){if(t=Bn(t).slice(),1===t.length&&t[0]<0)return void l.set(e,!1);var i=l.set(e,[]);f(t,function(t,n){b(t)&&(t=u.get(t)),null!=t&&d>t&&(i[n]=t,a(c[t],e,n))})});var y=0;f(t,function(t){var e,t,i,o;if(b(t))e=t,t={};else{e=t.name;var r=t.ordinalMeta;t.ordinalMeta=null,t=n(t),t.ordinalMeta=r,i=t.dimsDef,o=t.otherDims,t.name=t.coordDim=t.coordDimIndex=t.dimsDef=t.otherDims=null}var u=l.get(e);if(u!==!1){var u=Bn(u);if(!u.length)for(var h=0;h<(i&&i.length||1);h++){for(;y<c.length&&null!=c[y].coordDim;)y++;y<c.length&&u.push(y++)}f(u,function(n,r){var l=c[n];if(a(s(l,t),e,r),null==l.name&&i){var u=i[r];!S(u)&&(u={name:u}),l.name=l.displayName=u.name,l.defaultTooltip=u.defaultTooltip}o&&s(l.otherDims,o)})}});var x=i.generateCoord,_=i.generateCoordCount,w=null!=_;_=x?_||1:0;for(var M=x||"value",I=0;d>I;I++){var v=c[I]=c[I]||{},T=v.coordDim;null==T&&(v.coordDim=Gu(M,h,w),v.coordDimIndex=0,(!x||0>=_)&&(v.isExtraCoord=!0),_--),null==v.name&&(v.name=Gu(v.coordDim,u)),null==v.type&&Kr(e,I,v.name)&&(v.type="ordinal")}return c}function Vu(t,e,i,n){var a=Math.max(t.dimensionsDetectCount||1,e.length,i.length,n||0);return f(e,function(t){var e=t.dimsDef;e&&(a=Math.max(a,e.length))}),a}function Gu(t,e,i){if(i||null!=e.get(t)){for(var n=0;null!=e.get(t+n);)n++;t+=n}return e.set(t,!0),t}function Fu(t,e,i){i=i||{};var n,a,o,r,s=i.byIndex,l=i.stackedCoordDimension,u=!(!t||!t.get("stack"));if(f(e,function(t,i){b(t)&&(e[i]=t={name:t}),u&&!t.isExtraCoord&&(s||n||!t.ordinalMeta||(n=t),a||"ordinal"===t.type||"time"===t.type||l&&l!==t.coordDim||(a=t))}),!a||s||n||(s=!0),a){o="__\x00ecstackresult",r="__\x00ecstackedover",n&&(n.createInvertedIndices=!0);var h=a.coordDim,c=a.type,d=0;f(e,function(t){t.coordDim===h&&d++}),e.push({name:o,coordDim:h,coordDimIndex:d,type:c,isExtraCoord:!0,isCalculationCoord:!0}),d++,e.push({name:r,coordDim:r,coordDimIndex:d,type:c,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:a&&a.name,stackedByDimension:n&&n.name,isStackedByIndex:s,stackedOverDimension:r,stackResultDimension:o}}function Wu(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Hu(t,e){return Wu(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Zu(t,e,i){i=i||{},Vr.isInstance(t)||(t=Vr.seriesDataToSource(t));var n,a=e.get("coordinateSystem"),o=rs.get(a),r=zr(e);r&&(n=p(r.coordSysDims,function(t){var e={name:t},i=r.axisMap.get(t);if(i){var n=i.get("type");e.type=Su(n)}return e})),n||(n=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]);var s,l,u=SC(t,{coordDimensions:n,generateCoord:i.generateCoord});r&&f(u,function(t,e){var i=t.coordDim,n=r.categoryAxisMap.get(i);n&&(null==s&&(s=e),t.ordinalMeta=n.getOrdinalMeta()),null!=t.otherDims.itemName&&(l=!0)}),l||null==s||(u[s].otherDims.itemName=0);var h=Fu(e,u),c=new _C(u,e);c.setCalculationInfo(h);var d=null!=s&&Uu(t)?function(t,e,i,n){return n===s?i:this.defaultDimValueGetter(t,e,i,n)}:null;return c.hasItemOption=!1,c.initData(t,null,d),c}function Uu(t){if(t.sourceFormat===rA){var e=Xu(t.data||[]);return null!=e&&!_(Gn(e))}}function Xu(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}function Yu(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 qu(t){return t._map||(t._map=B(t.categories))}function Ku(t){return S(t)&&null!=t.value?t.value:t+""}function $u(t,e,i,n){var a={},o=t[1]-t[0],r=a.interval=dr(o/e,!0);null!=i&&i>r&&(r=a.interval=i),null!=n&&r>n&&(r=a.interval=n);var s=a.intervalPrecision=Ju(r),l=a.niceTickExtent=[AC(Math.ceil(t[0]/r)*r,s),AC(Math.floor(t[1]/r)*r,s)];return th(l,t),a}function Ju(t){return ar(t)+2}function Qu(t,e,i){t[e]=Math.max(Math.min(t[e],i[1]),i[0])}function th(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Qu(t,0,e),Qu(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function eh(t,e,i,n){var a=[];if(!t)return a;var o=1e4;e[0]<i[0]&&a.push(e[0]);for(var r=i[0];r<=i[1]&&(a.push(r),r=AC(r+t,n),r!==a[a.length-1]);)if(a.length>o)return[];return e[1]>(a.length?a[a.length-1]:i[1])&&a.push(e[1]),a}function ih(t){return t.get("stack")||LC+t.seriesIndex}function nh(t){return t.dim+t.index}function ah(t){var e=[],i=t.axis,n="axis0";if("category"===i.type){for(var a=i.getBandWidth(),o=0;o<t.count;o++)e.push(s({bandWidth:a,axisKey:n,stackId:LC+o},t));for(var r=sh(e),l=[],o=0;o<t.count;o++){var u=r[n][LC+o];u.offsetCenter=u.offset+u.width/2,l.push(u)}return l}}function oh(t,e){var i=[];return e.eachSeriesByType(t,function(t){hh(t)&&!ch(t)&&i.push(t)}),i}function rh(t){var e=[];return f(t,function(t){var i=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),o=a.getExtent(),r="category"===a.type?a.getBandWidth():Math.abs(o[1]-o[0])/i.count(),s=tr(t.get("barWidth"),r),l=tr(t.get("barMaxWidth"),r),u=t.get("barGap"),h=t.get("barCategoryGap");e.push({bandWidth:r,barWidth:s,barMaxWidth:l,barGap:u,barCategoryGap:h,axisKey:nh(a),stackId:ih(t)})}),sh(e)}function sh(t){var e={};f(t,function(t){var i=t.axisKey,n=t.bandWidth,a=e[i]||{bandWidth:n,remainedWidth:n,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},o=a.stacks;e[i]=a;var r=t.stackId;o[r]||a.autoWidthCount++,o[r]=o[r]||{width:0,maxWidth:0};var s=t.barWidth;s&&!o[r].width&&(o[r].width=s,s=Math.min(a.remainedWidth,s),a.remainedWidth-=s);var l=t.barMaxWidth;l&&(o[r].maxWidth=l);var u=t.barGap;null!=u&&(a.gap=u);var h=t.barCategoryGap;null!=h&&(a.categoryGap=h)});var i={};return f(e,function(t,e){i[e]={};var n=t.stacks,a=t.bandWidth,o=tr(t.categoryGap,a),r=tr(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*r);u=Math.max(u,0),f(n,function(t){var e=t.maxWidth;e&&u>e&&(e=Math.min(e,s),t.width&&(e=Math.min(e,t.width)),s-=e,t.width=e,l--)}),u=(s-o)/(l+(l-1)*r),u=Math.max(u,0);var h,c=0;f(n,function(t){t.width||(t.width=u),h=t,c+=t.width*(1+r)}),h&&(c-=h.width*r);var d=-c/2;f(n,function(t,n){i[e][n]=i[e][n]||{offset:d,width:t.width},d+=t.width*(1+r)})}),i}function lh(t,e,i){if(t&&e){var n=t[nh(e)];return null!=n&&null!=i&&(n=n[ih(i)]),n}}function uh(t,e){var i=oh(t,e),n=rh(i),a={};f(i,function(t){var e=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),r=ih(t),s=n[nh(o)][r],l=s.offset,u=s.width,h=i.getOtherAxis(o),c=t.get("barMinHeight")||0;a[r]=a[r]||[],e.setLayout({offset:l,size:u});for(var d=e.mapDimension(h.dim),f=e.mapDimension(o.dim),p=Wu(e,d),g=h.isHorizontal(),m=dh(o,h,p),v=0,y=e.count();y>v;v++){var x=e.get(d,v),_=e.get(f,v);if(!isNaN(x)){var w=x>=0?"p":"n",b=m;p&&(a[r][_]||(a[r][_]={p:m,n:m}),b=a[r][_][w]);var S,M,I,T;if(g){var A=i.dataToPoint([x,_]);S=b,M=A[1]+l,I=A[0]-m,T=u,Math.abs(I)<c&&(I=(0>I?-1:1)*c),p&&(a[r][_][w]+=I)}else{var A=i.dataToPoint([_,x]);S=A[0]+l,M=b,I=u,T=A[1]-m,Math.abs(T)<c&&(T=(0>=T?-1:1)*c),p&&(a[r][_][w]+=T)}e.setItemLayout(v,{x:S,y:M,width:I,height:T})}}},this)}function hh(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function ch(t){return t.pipelineContext&&t.pipelineContext.large}function dh(t,e){var i,n,a=e.getGlobalExtent();a[0]>a[1]?(i=a[1],n=a[0]):(i=a[0],n=a[1]);var o=e.toGlobalCoord(e.dataToCoord(0));return i>o&&(o=i),o>n&&(o=n),o}function fh(t,e){return YC(t,XC(e))}function ph(t,e){var i,n,a,o=t.type,r=e.getMin(),s=e.getMax(),l=null!=r,u=null!=s,h=t.getExtent();"ordinal"===o?i=e.getCategories().length:(n=e.get("boundaryGap"),_(n)||(n=[n||0,n||0]),"boolean"==typeof n[0]&&(n=[0,0]),n[0]=tr(n[0],1),n[1]=tr(n[1],1),a=h[1]-h[0]||Math.abs(h[0])),null==r&&(r="ordinal"===o?i?0:0/0:h[0]-n[0]*a),null==s&&(s="ordinal"===o?i?i-1:0/0:h[1]+n[1]*a),"dataMin"===r?r=h[0]:"function"==typeof r&&(r=r({min:h[0],max:h[1]})),"dataMax"===s?s=h[1]:"function"==typeof s&&(s=s({min:h[0],max:h[1]})),(null==r||!isFinite(r))&&(r=0/0),(null==s||!isFinite(s))&&(s=0/0),t.setBlank(A(r)||A(s)||"ordinal"===o&&!t.getOrdinalMeta().categories.length),e.getNeedCrossZero()&&(r>0&&s>0&&!l&&(r=0),0>r&&0>s&&!u&&(s=0));var c=e.ecModel;if(c&&"time"===o){var d,p=oh("bar",c);if(f(p,function(t){d|=t.getBaseAxis()===e.axis}),d){var g=rh(p),m=gh(r,s,e,g);r=m.min,s=m.max}}return[r,s]}function gh(t,e,i,n){var a=i.axis.getExtent(),o=a[1]-a[0],r=lh(n,i.axis);if(void 0===r)return{min:t,max:e};var s=1/0;f(r,function(t){s=Math.min(t.offset,s)});var l=-1/0;f(r,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)/o,d=h/c-h;return e+=d*(l/u),t-=d*(s/u),{min:t,max:e}}function mh(t,e){var i=ph(t,e),n=null!=e.getMin(),a=null!=e.getMax(),o=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var r=t.type;t.setExtent(i[0],i[1]),t.niceExtent({splitNumber:o,fixMin:n,fixMax:a,minInterval:"interval"===r||"time"===r?e.get("minInterval"):null,maxInterval:"interval"===r||"time"===r?e.get("maxInterval"):null});var s=e.get("interval");null!=s&&t.setInterval&&t.setInterval(s)}function vh(t,e){if(e=e||t.get("type"))switch(e){case"category":return new TC(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case"value":return new CC;default:return(Yu.getClass(e)||CC).create(t)}}function yh(t){var e=t.scale.getExtent(),i=e[0],n=e[1];return!(i>0&&n>0||0>i&&0>n)}function xh(t){var e=t.getLabelModel().get("formatter"),i="category"===t.type?t.scale.getExtent()[0]:null;return"string"==typeof e?e=function(e){return function(i){return i=t.scale.getLabel(i),e.replace("{value}",null!=i?i:"")}}(e):"function"==typeof e?function(n,a){return null!=i&&(a=n-i),e(_h(t,n),a)}:function(e){return t.scale.getLabel(e)}}function _h(t,e){return"category"===t.type?t.scale.getLabel(e):e}function wh(t){var e=t.model,i=t.scale;if(e.get("axisLabel.show")&&!i.isBlank()){var n,a,o="category"===t.type,r=i.getExtent();o?a=i.count():(n=i.getTicks(),a=n.length);var s,l=t.getLabelModel(),u=xh(t),h=1;a>40&&(h=Math.ceil(a/40));for(var c=0;a>c;c+=h){var d=n?n[c]:r[0]+c,f=u(d),p=l.getTextRect(f),g=bh(p,l.get("rotate")||0);s?s.union(g):s=g}return s}}function bh(t,e){var i=e*Math.PI/180,n=t.plain(),a=n.width,o=n.height,r=a*Math.cos(i)+o*Math.sin(i),s=a*Math.sin(i)+o*Math.cos(i),l=new yi(n.x,n.y,r,s);return l}function Sh(t){var e=t.get("interval");return null==e?"auto":e}function Mh(t){return"category"===t.type&&0===Sh(t.getLabelModel())}function Ih(t,e){if("image"!==this.type){var i=this.style,n=this.shape;n&&"line"===n.symbolType?i.stroke=t:this.__isEmptyBrush?(i.stroke=t,i.fill=e||"#fff"):(i.fill&&(i.fill=t),i.stroke&&(i.stroke=t)),this.dirty(!1)}}function Th(t,e,i,n,a,o,r){var s=0===t.indexOf("empty");s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return l=0===t.indexOf("image://")?ao(t.slice(8),new yi(e,i,n,a),r?"center":"cover"):0===t.indexOf("path://")?no(t.slice(7),{},new yi(e,i,n,a),r?"center":"cover"):new sL({shape:{symbolType:t,x:e,y:i,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=Ih,l.setColor(o),l}function Ah(t){return Zu(t.getSource(),t)}function Dh(t,e){var i=e;Xo.isInstance(e)||(i=new Xo(e),c(i,QC));var n=vh(i);return n.setExtent(t[0],t[1]),mh(n,i),n}function Ch(t){c(t,QC)}function Lh(t,e){return Math.abs(t-e)<hL}function kh(t,e,i){var n=0,a=t[0];if(!a)return!1;for(var o=1;o<t.length;o++){var r=t[o];n+=Pa(a[0],a[1],r[0],r[1],e,i),a=r}var s=t[0];return Lh(a[0],s[0])&&Lh(a[1],s[1])||(n+=Pa(a[0],a[1],s[0],s[1],e,i)),0!==n}function Ph(t,e,i){if(this.name=t,this.geometries=e,i)i=[i[0],i[1]];else{var n=this.getBoundingRect();i=[n.x+n.width/2,n.y+n.height/2]}this.center=i}function Oh(t){if(!t.UTF8Encoding)return t;var e=t.UTF8Scale;null==e&&(e=1024);for(var i=t.features,n=0;n<i.length;n++)for(var a=i[n],o=a.geometry,r=o.coordinates,s=o.encodeOffsets,l=0;l<r.length;l++){var u=r[l];if("Polygon"===o.type)r[l]=Eh(u,s[l],e);else if("MultiPolygon"===o.type)for(var h=0;h<u.length;h++){var c=u[h];u[h]=Eh(c,s[l][h],e)}}return t.UTF8Encoding=!1,t}function Eh(t,e,i){for(var n=[],a=e[0],o=e[1],r=0;r<t.length;r+=2){var s=t.charCodeAt(r)-64,l=t.charCodeAt(r+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=a,l+=o,a=s,o=l,n.push([s/i,l/i])}return n}function Rh(t){return"category"===t.type?zh(t):Gh(t)}function Nh(t,e){return"category"===t.type?Vh(t,e):{ticks:t.scale.getTicks()}}function zh(t){var e=t.getLabelModel(),i=Bh(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i}function Bh(t,e){var i=Fh(t,"labels"),n=Sh(e),a=Wh(i,n);if(a)return a;var o,r;return w(n)?o=jh(t,n):(r="auto"===n?Zh(t):n,o=Yh(t,r)),Hh(i,n,{labels:o,labelCategoryInterval:r})}function Vh(t,e){var i=Fh(t,"ticks"),n=Sh(e),a=Wh(i,n);if(a)return a;var o,r;if((!e.get("show")||t.scale.isBlank())&&(o=[]),w(n))o=jh(t,n,!0);else if("auto"===n){var s=Bh(t,t.getLabelModel());r=s.labelCategoryInterval,o=p(s.labels,function(t){return t.tickValue})}else r=n,o=Yh(t,r,!0);return Hh(i,n,{ticks:o,tickCategoryInterval:r})}function Gh(t){var e=t.scale.getTicks(),i=xh(t);return{labels:p(e,function(e,n){return{formattedLabel:i(e,n),rawLabel:t.scale.getLabel(e),tickValue:e}})}}function Fh(t,e){return dL(t)[e]||(dL(t)[e]=[])}function Wh(t,e){for(var i=0;i<t.length;i++)if(t[i].key===e)return t[i].value}function Hh(t,e,i){return t.push({key:e,value:i}),i}function Zh(t){var e=dL(t).autoInterval;return null!=e?e:dL(t).autoInterval=t.calculateCategoryInterval()}function Uh(t){var e=Xh(t),i=xh(t),n=(e.axisRotate-e.labelRotate)/180*Math.PI,a=t.scale,o=a.getExtent(),r=a.count();if(o[1]-o[0]<1)return 0;var s=1;r>40&&(s=Math.max(1,Math.floor(r/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),h=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),d=0,f=0;l<=o[1];l+=s){var p=0,g=0,m=Bi(i(l),e.font,"center","top");p=1.3*m.width,g=1.3*m.height,d=Math.max(d,p,7),f=Math.max(f,g,7)}var v=d/h,y=f/c;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(v,y))),_=dL(t.model),w=_.lastAutoInterval,b=_.lastTickCount;return null!=w&&null!=b&&Math.abs(w-x)<=1&&Math.abs(b-r)<=1&&w>x?x=w:(_.lastTickCount=r,_.lastAutoInterval=x),x}function Xh(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 Yh(t,e,i){function n(t){l.push(i?t:{formattedLabel:a(t),rawLabel:o.getLabel(t),tickValue:t})}var a=xh(t),o=t.scale,r=o.getExtent(),s=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),h=r[0],c=o.count();0!==h&&u>1&&c/u>2&&(h=Math.round(Math.ceil(h/u)*u));var d=Mh(t),f=s.get("showMinLabel")||d,p=s.get("showMaxLabel")||d;f&&h!==r[0]&&n(r[0]);for(var g=h;g<=r[1];g+=u)n(g);return p&&g!==r[1]&&n(r[1]),l}function jh(t,e,i){var n=t.scale,a=xh(t),o=[];return f(n.getTicks(),function(t){var r=n.getLabel(t);e(t,r)&&o.push(i?t:{formattedLabel:a(t),rawLabel:r,tickValue:t})}),o}function qh(t,e){var i=t[1]-t[0],n=e,a=i/n/2;t[0]+=a,t[1]-=a}function Kh(t,e,i,n,a){function o(t,e){return h?t>e:e>t}var r=e.length;if(t.onBand&&!n&&r){var s,l=t.getExtent();if(1===r)e[0].coord=l[0],s=e[1]={coord:l[0]};else{var u=e[1].coord-e[0].coord;f(e,function(t){t.coord-=u/2;var e=e||0;e%2>0&&(t.coord-=u/(2*(e+1)))}),s={coord:e[r-1].coord+u},e.push(s)}var h=l[0]>l[1];o(e[0].coord,l[0])&&(a?e[0].coord=l[0]:e.shift()),a&&o(l[0],e[0].coord)&&e.unshift({coord:l[0]}),o(l[1],s.coord)&&(a?s.coord=l[1]:e.pop()),a&&o(s.coord,l[1])&&e.push({coord:l[1]})}}function $h(t){return this._axes[t]}function Jh(t){yL.call(this,t)}function Qh(t,e){return e.type||(e.data?"category":"value")}function tc(t,e){return t.getCoordSysModel()===e}function ec(t,e,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,i),this.model=t}function ic(t,e,i,n){function a(t){return t.dim+"_"+t.index}i.getAxesOnZeroOf=function(){return o?[o]:[]};var o,r=t[e],s=i.model,l=s.get("axisLine.onZero"),u=s.get("axisLine.onZeroAxisIndex");if(l){if(null!=u)nc(r[u])&&(o=r[u]);else for(var h in r)if(r.hasOwnProperty(h)&&nc(r[h])&&!n[a(r[h])]){o=r[h];break}o&&(n[a(o)]=!0)}}function nc(t){return t&&"category"!==t.type&&"time"!==t.type&&yh(t)}function ac(t,e){var i=t.getExtent(),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}function oc(t){return p(AL,function(e){var i=t.getReferringComponents(e)[0];return i})}function rc(t){return"cartesian2d"===t.get("coordinateSystem")}function sc(t,e){var i=t.mapDimension("defaultedLabel",!0),n=i.length;if(1===n)return Ps(t,e,i[0]);if(n){for(var a=[],o=0;o<i.length;o++){var r=Ps(t,e,i[o]);a.push(r)}return a.join(" ")}}function lc(t,e,i,n,a,o){var r=i.getModel("label"),s=i.getModel("emphasis.label");To(t,e,r,s,{labelFetcher:a,labelDataIndex:o,defaultText:sc(a.getData(),o),isRectText:!0,autoColor:n}),uc(t),uc(e)}function uc(t,e){"outside"===t.textPosition&&(t.textPosition=e)}function hc(t,e,i){i.style.text=null,zo(i,{shape:{width:0}},e,t,function(){i.parent&&i.parent.remove(i)})}function cc(t,e,i){i.style.text=null,zo(i,{shape:{r:i.shape.r0}},e,t,function(){i.parent&&i.parent.remove(i)})}function dc(t,e,i,n,a,o,r,l){var u=e.getItemVisual(i,"color"),h=e.getItemVisual(i,"opacity"),c=n.getModel("itemStyle"),d=n.getModel("emphasis.itemStyle").getBarItemStyle();l||t.setShape("r",c.get("barBorderRadius")||0),t.useStyle(s({fill:u,opacity:h},c.getBarItemStyle()));var f=n.getShallow("cursor");f&&t.attr("cursor",f);var p=r?a.height>0?"bottom":"top":a.width>0?"left":"right";l||lc(t.style,d,n,u,o,i,p),Mo(t,d)}function fc(t,e){var i=t.get(kL)||0;return Math.min(i,Math.abs(e.width),Math.abs(e.height))}function pc(t,e,i){var n=t.getData(),a=[],o=n.getLayout("valueAxisHorizontal")?1:0;a[1-o]=n.getLayout("valueAxisStart");var r=new EL({shape:{points:n.getLayout("largePoints")},incremental:!!i,__startPoint:a,__valueIdx:o});e.add(r),gc(r,t,n)}function gc(t,e,i){var n=i.getVisual("borderColor")||i.getVisual("color"),a=e.getModel("itemStyle").getItemStyle(["color","borderColor"]);t.useStyle(a),t.style.fill=null,t.style.stroke=n,t.style.lineWidth=i.getLayout("barWidth")}function mc(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e}function vc(t,e,i,n){var a,o,r=sr(i-t.rotation),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;return lr(r-RL/2)?(o=l?"bottom":"top",a="center"):lr(r-1.5*RL)?(o=l?"top":"bottom",a="center"):(o="middle",a=1.5*RL>r&&r>RL/2?l?"left":"right":l?"right":"left"),{rotation:r,textAlign:a,textVerticalAlign:o}}function yc(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)}function xc(t,e,i){if(!Mh(t.axis)){var n=t.get("axisLabel.showMinLabel"),a=t.get("axisLabel.showMaxLabel");e=e||[],i=i||[];var o=e[0],r=e[1],s=e[e.length-1],l=e[e.length-2],u=i[0],h=i[1],c=i[i.length-1],d=i[i.length-2];n===!1?(_c(o),_c(u)):wc(o,r)&&(n?(_c(r),_c(h)):(_c(o),_c(u))),a===!1?(_c(s),_c(c)):wc(l,s)&&(a?(_c(l),_c(d)):(_c(s),_c(c)))}}function _c(t){t&&(t.ignore=!0)}function wc(t,e){var i=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(i&&n){var a=Te([]);return Le(a,a,-t.rotation),i.applyTransform(De([],a,t.getLocalTransform())),n.applyTransform(De([],a,e.getLocalTransform())),i.intersect(n)}}function bc(t){return"middle"===t||"center"===t}function Sc(t,e,i){var n=e.axis;if(e.get("axisTick.show")&&!n.scale.isBlank()){for(var a=e.getModel("axisTick"),o=a.getModel("lineStyle"),r=a.get("length"),l=n.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]=i.tickDirection*r,c&&(oe(u,u,c),oe(h,h,c));var g=new dT(so({anid:"tick_"+l[f].tickValue,shape:{x1:u[0],y1:u[1],x2:h[0],y2:h[1]},style:s(o.getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")}),z2:2,silent:!0}));t.group.add(g),d.push(g)}return d}}function Mc(t,e,i){var n=e.axis,a=D(i.axisLabelShow,e.get("axisLabel.show"));if(a&&!n.scale.isBlank()){var o=e.getModel("axisLabel"),r=o.get("margin"),s=n.getViewLabels(),l=(D(i.labelRotate,o.get("rotate"))||0)*RL/180,u=BL(i.rotation,l,i.labelDirection),h=e.getCategories(!0),c=[],d=yc(e),p=e.get("triggerEvent");return f(s,function(a,s){var l=a.tickValue,f=a.formattedLabel,g=a.rawLabel,m=o;h&&h[l]&&h[l].textStyle&&(m=new Xo(h[l].textStyle,o,e.ecModel));var v=m.getTextColor()||e.get("axisLine.lineStyle.color"),y=n.dataToCoord(l),x=[y,i.labelOffset+i.labelDirection*r],_=new JI({anid:"label_"+l,position:x,rotation:u.rotation,silent:d,z2:10});Ao(_.style,m,{text:f,textAlign:m.getShallow("align",!0)||u.textAlign,textVerticalAlign:m.getShallow("verticalAlign",!0)||m.getShallow("baseline",!0)||u.textVerticalAlign,textFill:"function"==typeof v?v("category"===n.type?g:"value"===n.type?l+"":l,s):v}),p&&(_.eventData=mc(e),_.eventData.targetType="axisLabel",_.eventData.value=g),t._dumbGroup.add(_),_.updateTransform(),c.push(_),t.group.add(_),_.decomposeTransform()}),c}}function Ic(t,e){var i={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Tc(i,t,e),i.seriesInvolved&&Dc(i,t),i}function Tc(t,e,i){var n=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),o=a.get("link",!0)||[],r=[];VL(i.getCoordinateSystems(),function(i){function s(n,s,l){var h=l.model.getModel("axisPointer",a),d=h.get("show");if(d&&("auto"!==d||n||Ec(h))){null==s&&(s=h.get("triggerTooltip")),h=n?Ac(l,c,a,e,n,s):h;var f=h.get("snap"),p=Rc(l.model),g=s||f||"category"===l.type,m=t.axesInfo[p]={key:p,axis:l,coordSys:i,axisPointerModel:h,triggerTooltip:s,involveSeries:g,snap:f,useHandle:Ec(h),seriesModels:[]};u[p]=m,t.seriesInvolved|=g;var v=Cc(o,l);if(null!=v){var y=r[v]||(r[v]={axesInfo:{}});y.axesInfo[p]=m,y.mapper=o[v].mapper,m.linkGroup=y}}}if(i.axisPointerEnabled){var l=Rc(i.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=i;var h=i.model,c=h.getModel("tooltip",n);if(VL(i.getAxes(),GL(s,!1,null)),i.getTooltipAxes&&n&&c.get("show")){var d="axis"===c.get("trigger"),f="cross"===c.get("axisPointer.type"),p=i.getTooltipAxes(c.get("axisPointer.axis"));(d||f)&&VL(p.baseAxes,GL(s,f?"cross":!0,d)),f&&VL(p.otherAxes,GL(s,"cross",!1))}}})}function Ac(t,e,i,a,o,r){var l=e.getModel("axisPointer"),u={};VL(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){u[t]=n(l.get(t))}),u.snap="category"!==t.type&&!!r,"cross"===l.get("type")&&(u.type="line");var h=u.label||(u.label={});if(null==h.show&&(h.show=!1),"cross"===o){var c=l.get("label.show");if(h.show=null!=c?c:!0,!r){var d=u.lineStyle=l.get("crossStyle");d&&s(h,d.textStyle)}}return t.model.getModel("axisPointer",new Xo(u,i,a))}function Dc(t,e){e.eachSeries(function(e){var i=e.coordinateSystem,n=e.get("tooltip.trigger",!0),a=e.get("tooltip.show",!0);i&&"none"!==n&&n!==!1&&"item"!==n&&a!==!1&&e.get("axisPointer.show",!0)!==!1&&VL(t.coordSysAxesInfo[Rc(i.model)],function(t){var n=t.axis;i.getAxis(n.dim)===n&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())})},this)}function Cc(t,e){for(var i=e.model,n=e.dim,a=0;a<t.length;a++){var o=t[a]||{};if(Lc(o[n+"AxisId"],i.id)||Lc(o[n+"AxisIndex"],i.componentIndex)||Lc(o[n+"AxisName"],i.name))return a}}function Lc(t,e){return"all"===t||_(t)&&u(t,e)>=0||t===e}function kc(t){var e=Pc(t);if(e){var i=e.axisPointerModel,n=e.axis.scale,a=i.option,o=i.get("status"),r=i.get("value");null!=r&&(r=n.parse(r));var s=Ec(i);null==o&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==r||r>l[1])&&(r=l[1]),r<l[0]&&(r=l[0]),a.value=r,s&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}function Pc(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Rc(t)]}function Oc(t){var e=Pc(t);return e&&e.axisPointerModel}function Ec(t){return!!t.get("handle.show")}function Rc(t){return t.type+"||"+t.id}function Nc(t,e,i,n,a,o){var r=FL.getAxisPointerClass(t.axisPointerClass);if(r){var s=Oc(e);s?(t._axisPointer||(t._axisPointer=new r)).render(e,s,n,o):zc(t,n)}}function zc(t,e,i){var n=t._axisPointer;n&&n.dispose(e,i),t._axisPointer=null}function Bc(t,e,i){i=i||{};var n=t.coordinateSystem,a=e.axis,o={},r=a.getAxesOnZeroOf()[0],s=a.position,l=r?"onZero":s,u=a.dim,h=n.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(r){var g=r.toGlobalCoord(r.dataToCoord(0));p[d.onZero]=Math.max(Math.min(g,p[1]),p[0])}o.position=["y"===u?p[d[l]]:c[0],"x"===u?p[d[l]]:c[3]],o.rotation=Math.PI/2*("x"===u?0:1);var m={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=m[s],o.labelOffset=r?p[d[s]]-p[d.onZero]:0,e.get("axisTick.inside")&&(o.tickDirection=-o.tickDirection),D(i.labelInside,e.get("axisLabel.inside"))&&(o.labelDirection=-o.labelDirection);var v=e.get("axisLabel.rotate");return o.labelRotate="top"===l?-v:v,o.z2=1,o}function Vc(t,e,i){GS.call(this),this.updateData(t,e,i)}function Gc(t){return[t[0]/2,t[1]/2]}function Fc(t,e){this.parent.drift(t,e)}function Wc(){!xo(this)&&Zc.call(this)}function Hc(){!xo(this)&&Uc.call(this)}function Zc(){if(!this.incremental&&!this.useHoverLayer){var t=this.__symbolOriginalScale,e=t[1]/t[0];this.animateTo({scale:[Math.max(1.1*t[0],t[0]+3),Math.max(1.1*t[1],t[1]+3*e)]},400,"elasticOut")}}function Uc(){this.incremental||this.useHoverLayer||this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}function Xc(t){this.group=new GS,this._symbolCtor=t||Vc}function Yc(t,e,i,n){return!(!e||isNaN(e[0])||isNaN(e[1])||n.isIgnore&&n.isIgnore(i)||n.clipShape&&!n.clipShape.contain(e[0],e[1])||"none"===t.getItemVisual(i,"symbol"))}function jc(t){return null==t||S(t)||(t={isIgnore:t}),t||{}}function qc(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 Kc(t,e,i){var n,a=t.getBaseAxis(),o=t.getOtherAxis(a),r=$c(o,i),s=a.dim,l=o.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(n|=Wu(e,d[0]))&&(d[0]=f),(n|=Wu(e,d[1]))&&(d[1]=f),{dataDimsForPoint:d,valueStart:r,valueAxisDim:l,baseAxisDim:s,stacked:!!n,valueDim:u,baseDim:h,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function $c(t,e){var i=0,n=t.scale.getExtent();return"start"===e?i=n[0]:"end"===e?i=n[1]:n[0]>0?i=n[0]:n[1]<0&&(i=n[1]),i}function Jc(t,e,i,n){var a=0/0;t.stacked&&(a=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=t.valueStart);var o=t.baseDataOffset,r=[];return r[o]=i.get(t.baseDim,n),r[1-o]=a,e.dataToPoint(r)}function Qc(t,e){var i=[];return e.diff(t).add(function(t){i.push({cmd:"+",idx:t})}).update(function(t,e){i.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){i.push({cmd:"-",idx:t})}).execute(),i}function td(t){return isNaN(t[0])||isNaN(t[1])}function ed(t,e,i,n,a,o,r,s,l,u){return"none"!==u&&u?id.apply(this,arguments):nd.apply(this,arguments)}function id(t,e,i,n,a,o,r,s,l,u,h){for(var c=0,d=i,f=0;n>f;f++){var p=e[d];if(d>=a||0>d)break;if(td(p)){if(h){d+=o;continue}break}if(d===i)t[o>0?"moveTo":"lineTo"](p[0],p[1]);else if(l>0){var g=e[c],m="y"===u?1:0,v=(p[m]-g[m])*l;nk(ok,g),ok[m]=g[m]+v,nk(rk,p),rk[m]=p[m]-v,t.bezierCurveTo(ok[0],ok[1],rk[0],rk[1],p[0],p[1])}else t.lineTo(p[0],p[1]);c=d,d+=o}return f}function nd(t,e,i,n,a,o,r,s,l,u,h){for(var c=0,d=i,f=0;n>f;f++){var p=e[d];if(d>=a||0>d)break;if(td(p)){if(h){d+=o;continue}break}if(d===i)t[o>0?"moveTo":"lineTo"](p[0],p[1]),nk(ok,p);else if(l>0){var g=d+o,m=e[g];if(h)for(;m&&td(e[g]);)g+=o,m=e[g];var v=.5,y=e[c],m=e[g];if(!m||td(m))nk(rk,p);else{td(m)&&!h&&(m=p),Y(ak,m,y);var x,_;if("x"===u||"y"===u){var w="x"===u?0:1;x=Math.abs(p[w]-y[w]),_=Math.abs(p[w]-m[w])}else x=jb(p,y),_=jb(p,m);v=_/(_+x),ik(rk,p,ak,-l*(1-v))}tk(ok,ok,s),ek(ok,ok,r),tk(rk,rk,s),ek(rk,rk,r),t.bezierCurveTo(ok[0],ok[1],rk[0],rk[1],p[0],p[1]),ik(ok,p,ak,l*v)}else t.lineTo(p[0],p[1]);c=d,d+=o}return f}function ad(t,e){var i=[1/0,1/0],n=[-1/0,-1/0];if(e)for(var a=0;a<t.length;a++){var o=t[a];o[0]<i[0]&&(i[0]=o[0]),o[1]<i[1]&&(i[1]=o[1]),o[0]>n[0]&&(n[0]=o[0]),o[1]>n[1]&&(n[1]=o[1])}return{min:e?i:n,max:e?n:i}}function od(t,e){if(t.length===e.length){for(var i=0;i<t.length;i++){var n=t[i],a=e[i];if(n[0]!==a[0]||n[1]!==a[1])return}return!0}}function rd(t){return"number"==typeof t?t:t?.5:0}function sd(t){var e=t.getGlobalExtent();if(t.onBand){var i=t.getBandWidth()/2-1,n=e[1]>e[0]?1:-1;e[0]+=n*i,e[1]-=n*i}return e}function ld(t,e,i){if(!i.valueDim)return[];for(var n=[],a=0,o=e.count();o>a;a++)n.push(Jc(i,t,e,a));return n}function ud(t,e,i,n){var a=sd(t.getAxis("x")),o=sd(t.getAxis("y")),r=t.getBaseAxis().isHorizontal(),s=Math.min(a[0],a[1]),l=Math.min(o[0],o[1]),u=Math.max(a[0],a[1])-s,h=Math.max(o[0],o[1])-l;if(i)s-=.5,u+=.5,l-=.5,h+=.5;else{var c=n.get("lineStyle.width")||2,d=n.get("clipOverflow")?c/2:Math.max(u,h);r?(l-=d,h+=2*d):(s-=d,u+=2*d)}var f=new hT({shape:{x:s,y:l,width:u,height:h}});return e&&(f.shape[r?"width":"height"]=0,Bo(f,{shape:{width:u,height:h}},n)),f}function hd(t,e,i,n){var a=t.getAngleAxis(),o=t.getRadiusAxis(),r=o.getExtent().slice();r[0]>r[1]&&r.reverse();var s=a.getExtent(),l=Math.PI/180;i&&(r[0]-=.5,r[1]+=.5);var u=new iT({shape:{cx:er(t.cx,1),cy:er(t.cy,1),r0:er(r[0],1),r:er(r[1],1),startAngle:-s[0]*l,endAngle:-s[1]*l,clockwise:a.inverse}});return e&&(u.shape.endAngle=-s[0]*l,Bo(u,{shape:{endAngle:-s[1]*l}},n)),u}function cd(t,e,i,n){return"polar"===t.type?hd(t,e,i,n):ud(t,e,i,n)}function dd(t,e,i){for(var n=e.getBaseAxis(),a="x"===n.dim||"radius"===n.dim?0:1,o=[],r=0;r<t.length-1;r++){var s=t[r+1],l=t[r];o.push(l);var u=[];switch(i){case"end":u[a]=s[a],u[1-a]=l[1-a],o.push(u);break;case"middle":var h=(l[a]+s[a])/2,c=[];u[a]=c[a]=h,u[1-a]=l[1-a],c[1-a]=s[1-a],o.push(u),o.push(c);break;default:u[a]=l[a],u[1-a]=s[1-a],o.push(u)}}return t[r]&&o.push(t[r]),o}function fd(t,e){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var n,a,o=i.length-1;o>=0;o--){var r=i[o].dimension,s=t.dimensions[r],l=t.getDimensionInfo(s);if(n=l&&l.coordDim,"x"===n||"y"===n){a=i[o];break}}if(a){var u=e.getAxis(n),h=p(a.stops,function(t){return{coord:u.toGlobalCoord(u.dataToCoord(t.value)),color:t.color}}),c=h.length,d=a.outerColors.slice();c&&h[0].coord>h[c-1].coord&&(h.reverse(),d.reverse());
var g=10,m=h[0].coord-g,v=h[c-1].coord+g,y=v-m;if(.001>y)return"transparent";f(h,function(t){t.offset=(t.coord-m)/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 x=new yT(0,0,0,0,h,!0);return x[n]=m,x[n+"2"]=v,x}}}function pd(t,e,i){var n=t.get("showAllSymbol"),a="auto"===n;if(!n||a){var o=i.getAxesByScale("ordinal")[0];if(o&&(!a||!gd(o,e))){var r=e.mapDimension(o.dim),s={};return f(o.getViewLabels(),function(t){s[t.tickValue]=1}),function(t){return!s.hasOwnProperty(e.get(r,t))}}}}function gd(t,e){var i=t.getExtent(),n=Math.abs(i[1]-i[0])/t.scale.count();isNaN(n)&&(n=0);for(var a=e.count(),o=Math.max(1,Math.round(a/5)),r=0;a>r;r+=o)if(1.5*Vc.getSymbolSize(e,r)[t.isHorizontal()?1:0]>n)return!1;return!0}function md(t,e,i,n){var a=e.getData(),o=this.dataIndex,r=a.getName(o),s=e.get("selectedOffset");n.dispatchAction({type:"pieToggleSelect",from:t,name:r,seriesId:e.id}),a.each(function(t){vd(a.getItemGraphicEl(t),a.getItemLayout(t),e.isSelected(a.getName(t)),s,i)})}function vd(t,e,i,n,a){var o=(e.startAngle+e.endAngle)/2,r=Math.cos(o),s=Math.sin(o),l=i?n:0,u=[r*l,s*l];a?t.animate().when(200,{position:u}).start("bounceOut"):t.attr("position",u)}function yd(t,e){function i(){o.ignore=o.hoverIgnore,r.ignore=r.hoverIgnore}function n(){o.ignore=o.normalIgnore,r.ignore=r.normalIgnore}GS.call(this);var a=new iT({z2:2}),o=new sT,r=new JI;this.add(a),this.add(o),this.add(r),this.updateData(t,e,!0),this.on("emphasis",i).on("normal",n).on("mouseover",i).on("mouseout",n)}function xd(t,e,i,n,a,o,r){function s(e,i,n){for(var a=e;i>a;a++)if(t[a].y+=n,a>e&&i>a+1&&t[a+1].y>t[a].y+t[a].height)return void l(a,n/2);l(i-1,n/2)}function l(e,i){for(var n=e;n>=0&&(t[n].y-=i,!(n>0&&t[n].y>t[n-1].y+t[n-1].height));n--);}function u(t,e,i,n,a,o){for(var r=o>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-n),h=t[s].len,c=t[s].len2,d=a+h>u?Math.sqrt((a+h+c)*(a+h+c)-u*u):Math.abs(t[s].x-i);e&&d>=r&&(d=r-10),!e&&r>=d&&(d=r+10),t[s].x=i+d*o,r=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,a),c=t[g].y+t[g].height;0>r-c&&l(d-1,c-r);for(var g=0;d>g;g++)t[g].y>=i?p.push(t[g]):f.push(t[g]);u(f,!1,e,i,n,a),u(p,!0,e,i,n,a)}function _d(t,e,i,n,a,o){for(var r=[],s=[],l=0;l<t.length;l++)wd(t[l])||(t[l].x<e?r.push(t[l]):s.push(t[l]));xd(s,e,i,n,1,a,o),xd(r,e,i,n,-1,a,o);for(var l=0;l<t.length;l++)if(!wd(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 wd(t){return"center"===t.position}function bd(){this.group=new GS}function Sd(t){return _(t)||(t=[+t,+t]),t}function Md(t,e){t.eachChild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?e.color:null,fill:"fill"===e.brushType?e.color:null}})})}function Id(t,e){GS.call(this);var i=new Vc(t,e),n=new GS;this.add(i),this.add(n),n.beforeUpdate=function(){this.attr(i.getScale())},this.updateData(t,e)}function Td(t,e,i){var n=t.ends;return new Rk({shape:{points:i?Dd(n,t):n},z2:100})}function Ad(t,e,i,n){var a=e.getItemModel(i),o=a.getModel(Pk),r=e.getItemVisual(i,"color"),s=e.getItemVisual(i,"borderColor")||r,l=o.getItemStyle(Ek);t.useStyle(l),t.style.strokeNoScale=!0,t.style.fill=r,t.style.stroke=s,t.__simpleBox=n;var u=a.getModel(Ok).getItemStyle();Mo(t,u)}function Dd(t,e){return p(t,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}function Cd(t,e,i){var n=t.getData(),a=n.getLayout("largePoints"),o=new Nk({shape:{points:a},__sign:1});e.add(o);var r=new Nk({shape:{points:a},__sign:-1});e.add(r),Ld(1,o,t,n),Ld(-1,r,t,n),i&&(o.incremental=!0,r.incremental=!0)}function Ld(t,e,i,n){var a=t>0?"P":"N",o=n.getVisual("borderColor"+a)||n.getVisual("color"+a),r=i.getModel(Pk).getItemStyle(Ek);e.useStyle(r),e.style.fill=null,e.style.stroke=o}function kd(t,e,i,n,a){var o;return o=i>n?-1:n>i?1:e>0?t.get(a,e-1)<=n?1:-1:1}function Pd(t,e){var i,n=t.getBaseAxis(),a="category"===n.type?n.getBandWidth():(i=n.getExtent(),Math.abs(i[1]-i[0])/e.count()),o=tr(C(t.get("barMaxWidth"),a),a),r=tr(C(t.get("barMinWidth"),1),a),s=t.get("barWidth");return null!=s?tr(s,a):Math.max(Math.min(a/2,o),r)}function Od(t,e,i){pL.call(this,t,e,i),this.type="value",this.angle=0,this.name="",this.model}function Ed(t,e,i){this._model=t,this.dimensions=[],this._indicatorAxes=p(t.getIndicatorModels(),function(t,e){var i="indicator_"+e,n=new Od(i,new CC);return n.name=t.get("name"),n.model=t,t.axis=n,this.dimensions.push(i),n},this),this.resize(t,i),this.cx,this.cy,this.r,this.r0,this.startAngle}function Rd(t,e){return s({show:e},t)}function Nd(t){return _(t)||(t=[+t,+t]),t}function zd(){var t=Fb();this.canvas=t,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}function Bd(t,e,i){var n=t[1]-t[0];e=p(e,function(e){return{interval:[(e.interval[0]-t[0])/n,(e.interval[1]-t[0])/n]}});var a=e.length,o=0;return function(t){for(var n=o;a>n;n++){var r=e[n].interval;if(r[0]<=t&&t<=r[1]){o=n;break}}if(n===a)for(var n=o-1;n>=0;n--){var r=e[n].interval;if(r[0]<=t&&t<=r[1]){o=n;break}}return n>=0&&a>n&&i[n]}}function Vd(t,e){var i=t[1]-t[0];return e=[(e[0]-t[0])/i,(e[1]-t[0])/i],function(t){return t>=e[0]&&t<=e[1]}}function Gd(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}function Fd(t){var e=t.mainData,i=t.datas;i||(i={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,Yd(e,i,t),$k(i,function(i){$k(e.TRANSFERABLE_METHODS,function(e){i.wrapMethod(e,x(Wd,t))})}),e.wrapMethod("cloneShallow",x(Zd,t)),$k(e.CHANGABLE_METHODS,function(i){e.wrapMethod(i,x(Hd,t))}),O(i[e.dataType]===e)}function Wd(t,e){if(Xd(this)){var i=r({},this[Jk]);i[this.dataType]=e,Yd(e,i,t)}else jd(e,this.dataType,this[Qk],t);return e}function Hd(t,e){return t.struct&&t.struct.update(this),e}function Zd(t,e){return $k(e[Jk],function(i,n){i!==e&&jd(i.cloneShallow(),n,e,t)}),e}function Ud(t){var e=this[Qk];return null==t||null==e?e:e[Jk][t]}function Xd(t){return t[Qk]===t}function Yd(t,e,i){t[Jk]={},$k(e,function(e,n){jd(e,n,t,i)})}function jd(t,e,i,n){i[Jk][e]=t,t[Qk]=i,t.dataType=e,n.struct&&(t[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=t),t.getLinkedData=Ud}function qd(t,e,i){this.root,this.data,this._nodes=[],this.hostModel=t,this.levelModels=p(e||[],function(e){return new Xo(e,t,t.ecModel)}),this.leavesModel=new Xo(i||{},t,t.ecModel)}function Kd(t,e){var i=e.children;t.parentNode!==e&&(i.push(t),t.parentNode=e)}function $d(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e,i,n=[t];e=n.pop();)if(i=e.children,e.isExpand&&i.length)for(var a=i.length,o=a-1;o>=0;o--){var r=i[o];r.hierNode={defaultAncestor:null,ancestor:r,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},n.push(r)}}function Jd(t,e){var i=t.isExpand?t.children:[],n=t.parentNode.children,a=t.hierNode.i?n[t.hierNode.i-1]:null;if(i.length){af(t);var o=(i[0].hierNode.prelim+i[i.length-1].hierNode.prelim)/2;a?(t.hierNode.prelim=a.hierNode.prelim+e(t,a),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else a&&(t.hierNode.prelim=a.hierNode.prelim+e(t,a));t.parentNode.hierNode.defaultAncestor=of(t,a,t.parentNode.hierNode.defaultAncestor||n[0],e)}function Qd(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function tf(t){return arguments.length?t:hf}function ef(t,e){var i={};return t-=Math.PI/2,i.x=e*Math.cos(t),i.y=e*Math.sin(t),i}function nf(t,e){return Cr(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function af(t){for(var e=t.children,i=e.length,n=0,a=0;--i>=0;){var o=e[i];o.hierNode.prelim+=n,o.hierNode.modifier+=n,a+=o.hierNode.change,n+=o.hierNode.shift+a}}function of(t,e,i,n){if(e){for(var a=t,o=t,r=o.parentNode.children[0],s=e,l=a.hierNode.modifier,u=o.hierNode.modifier,h=r.hierNode.modifier,c=s.hierNode.modifier;s=rf(s),o=sf(o),s&&o;){a=rf(a),r=sf(r),a.hierNode.ancestor=t;var d=s.hierNode.prelim+c-o.hierNode.prelim-u+n(s,o);d>0&&(uf(lf(s,t,i),t,d),u+=d,l+=d),c+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=a.hierNode.modifier,h+=r.hierNode.modifier}s&&!rf(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=c-l),o&&!sf(r)&&(r.hierNode.thread=o,r.hierNode.modifier+=u-h,i=t)}return i}function rf(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function sf(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function lf(t,e,i){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:i}function uf(t,e,i){var n=i/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=i,e.hierNode.modifier+=i,e.hierNode.prelim+=i,t.hierNode.change+=n}function hf(t,e){return t.parentNode===e.parentNode?1:2}function cf(){cS.call(this)}function df(t){this.name=t,this.zoomLimit,cS.call(this),this._roamTransformable=new cf,this._rawTransformable=new cf,this._center,this._zoom}function ff(t,e,i,n){var a=i.seriesModel,o=a?a.coordinateSystem:null;return o===this?o[t](n):null}function pf(t,e,i){var n=t.target,a=n.position;a[0]+=e,a[1]+=i,n.dirty()}function gf(t,e,i,n){var a=t.target,o=t.zoomLimit,r=a.position,s=a.scale,l=t.zoom=t.zoom||1;if(l*=e,o){var u=o.min||0,h=o.max||1/0;l=Math.max(Math.min(h,l),u)}var c=l/t.zoom;t.zoom=l,r[0]-=(i-r[0])*(c-1),r[1]-=(n-r[1])*(c-1),s[0]*=c,s[1]*=c,a.dirty()}function mf(t,e,i){var n=xf(t);n[e]=i}function vf(t,e,i){var n=xf(t),a=n[e];a===i&&(n[e]=null)}function yf(t,e){return!!xf(t)[e]}function xf(t){return t[iP]||(t[iP]={})}function _f(t){this.pointerChecker,this._zr=t,this._opt={};var e=y,i=e(wf,this),a=e(bf,this),o=e(Sf,this),r=e(Mf,this),l=e(If,this);Jb.call(this),this.setPointerChecker=function(t){this.pointerChecker=t},this.enable=function(e,u){this.disable(),this._opt=s(n(u)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),(e===!0||"move"===e||"pan"===e)&&(t.on("mousedown",i),t.on("mousemove",a),t.on("mouseup",o)),(e===!0||"scale"===e||"zoom"===e)&&(t.on("mousewheel",r),t.on("pinch",l))},this.disable=function(){t.off("mousedown",i),t.off("mousemove",a),t.off("mouseup",o),t.off("mousewheel",r),t.off("pinch",l)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function wf(t){if(!(ye(t)||t.target&&t.target.draggable)){var e=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,i)&&(this._x=e,this._y=i,this._dragging=!0)}}function bf(t){if(this._dragging&&Df("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!yf(this._zr,"globalPan")){var e=t.offsetX,i=t.offsetY,n=this._x,a=this._y,o=e-n,r=i-a;this._x=e,this._y=i,this._opt.preventDefaultMouseMove&&eS(t.event),Af(this,"pan","moveOnMouseMove",t,{dx:o,dy:r,oldX:n,oldY:a,newX:e,newY:i})}}function Sf(t){ye(t)||(this._dragging=!1)}function Mf(t){var e=Df("zoomOnMouseWheel",t,this._opt),i=Df("moveOnMouseWheel",t,this._opt),n=t.wheelDelta,a=Math.abs(n),o=t.offsetX,r=t.offsetY;if(0!==n&&(e||i)){if(e){var s=a>3?1.4:a>1?1.2:1.1,l=n>0?s:1/s;Tf(this,"zoom","zoomOnMouseWheel",t,{scale:l,originX:o,originY:r})}if(i){var u=Math.abs(n),h=(n>0?1:-1)*(u>3?.4:u>1?.15:.05);Tf(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:h,originX:o,originY:r})}}}function If(t){if(!yf(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;Tf(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY})}}function Tf(t,e,i,n,a){t.pointerChecker&&t.pointerChecker(n,a.originX,a.originY)&&(eS(n.event),Af(t,e,i,n,a))}function Af(t,e,i,n,a){a.isAvailableBehavior=y(Df,null,i,n),t.trigger(e,a)}function Df(t,e,i){var n=i[t];return!t||n&&(!b(n)||e.event[n+"Key"])}function Cf(t,e,i){var n=e.getComponentByElement(t.topTarget),a=n&&n.coordinateSystem;return n&&n!==i&&!nP[n.mainType]&&a&&a.model!==i}function Lf(t,e){var i=t.getItemLayout(e);return i&&!isNaN(i.x)&&!isNaN(i.y)&&"none"!==t.getItemVisual(e,"symbol")}function kf(t,e,i){return i.itemModel=e,i.itemStyle=e.getModel("itemStyle").getItemStyle(),i.hoverItemStyle=e.getModel("emphasis.itemStyle").getItemStyle(),i.lineStyle=e.getModel("lineStyle").getLineStyle(),i.labelModel=e.getModel("label"),i.hoverLabelModel=e.getModel("emphasis.label"),i.symbolInnerColor=t.isExpand===!1&&0!==t.children.length?i.itemStyle.fill:"#fff",i}function Pf(t,e,i,n,a,o){var r=!i,l=t.tree.getNodeByDataIndex(e),u=l.getModel(),o=kf(l,u,o),h=t.tree.root,c=l.parentNode===h?l:l.parentNode||l,d=t.getItemGraphicEl(c.dataIndex),f=c.getLayout(),p=d?{x:d.position[0],y:d.position[1],rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:f,g=l.getLayout();r?(i=new Vc(t,e,o),i.attr("position",[p.x,p.y])):i.updateData(t,e,o),i.__radialOldRawX=i.__radialRawX,i.__radialOldRawY=i.__radialRawY,i.__radialRawX=g.rawX,i.__radialRawY=g.rawY,n.add(i),t.setItemGraphicEl(e,i),zo(i,{position:[g.x,g.y]},a);var m=i.getSymbolPath();if("radial"===o.layout){var v,y,x=h.children[0],_=x.getLayout(),w=x.children.length;if(g.x===_.x&&l.isExpand===!0){var b={};b.x=(x.children[0].getLayout().x+x.children[w-1].getLayout().x)/2,b.y=(x.children[0].getLayout().y+x.children[w-1].getLayout().y)/2,v=Math.atan2(b.y-_.y,b.x-_.x),0>v&&(v=2*Math.PI+v),y=b.x<_.x,y&&(v-=Math.PI)}else v=Math.atan2(g.y-_.y,g.x-_.x),0>v&&(v=2*Math.PI+v),0===l.children.length||0!==l.children.length&&l.isExpand===!1?(y=g.x<_.x,y&&(v-=Math.PI)):(y=g.x>_.x,y||(v-=Math.PI));var S=y?"left":"right";m.setStyle({textPosition:S,textRotation:-v,textOrigin:"center",verticalAlign:"middle"})}if(l.parentNode&&l.parentNode!==h){var M=i.__edge;M||(M=i.__edge=new pT({shape:Ef(o,p,p),style:s({opacity:0,strokeNoScale:!0},o.lineStyle)})),zo(M,{shape:Ef(o,f,g),style:{opacity:1}},a),n.add(M)}}function Of(t,e,i,n,a,o){for(var r,s=t.tree.getNodeByDataIndex(e),l=t.tree.root,u=s.getModel(),o=kf(s,u,o),h=s.parentNode===l?s:s.parentNode||s;r=h.getLayout(),null==r;)h=h.parentNode===l?h:h.parentNode||h;zo(i,{position:[r.x+1,r.y+1]},a,function(){n.remove(i),t.setItemGraphicEl(e,null)}),i.fadeOut(null,{keepLabel:!0});var c=i.__edge;c&&zo(c,{shape:Ef(o,r,r),style:{opacity:0}},a,function(){n.remove(c)})}function Ef(t,e,i){var n,a,o,r,s,l,u,h,c=t.orient;if("radial"===t.layout){s=e.rawX,u=e.rawY,l=i.rawX,h=i.rawY;var d=ef(s,u),f=ef(s,u+(h-u)*t.curvature),p=ef(l,h+(u-h)*t.curvature),g=ef(l,h);return{x1:d.x,y1:d.y,x2:g.x,y2:g.y,cpx1:f.x,cpy1:f.y,cpx2:p.x,cpy2:p.y}}return s=e.x,u=e.y,l=i.x,h=i.y,("LR"===c||"RL"===c)&&(n=s+(l-s)*t.curvature,a=u,o=l+(s-l)*t.curvature,r=h),("TB"===c||"BT"===c)&&(n=s,a=u+(h-u)*t.curvature,o=l,r=h+(u-h)*t.curvature),{x1:s,y1:u,x2:l,y2:h,cpx1:n,cpy1:a,cpx2:o,cpy2:r}}function Rf(t,e,i){var n=t.getZoom(),a=t.getCenter(),o=e.zoom,r=t.dataToPoint(a);if(null!=e.dx&&null!=e.dy){r[0]-=e.dx,r[1]-=e.dy;var a=t.pointToData(r);t.setCenter(a)}if(null!=o){if(i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(n*o,l),s)/n}t.scale[0]*=o,t.scale[1]*=o;var u=t.position,h=(e.originX-u[0])*(o-1),c=(e.originY-u[1])*(o-1);u[0]-=h,u[1]-=c,t.updateTransform();var a=t.pointToData(r);t.setCenter(a),t.setZoom(o*n)}return{center:t.getCenter(),zoom:t.getZoom()}}function Nf(t,e,i){for(var n,a=[t],o=[];n=a.pop();)if(o.push(n),n.isExpand){var r=n.children;if(r.length)for(var s=0;s<r.length;s++)a.push(r[s])}for(;n=o.pop();)e(n,i)}function zf(t,e){for(var i,n=[t];i=n.pop();)if(e(i),i.isExpand){var a=i.children;if(a.length)for(var o=a.length-1;o>=0;o--)n.push(a[o])}}function Bf(t,e){var i=nf(t,e);t.layoutInfo=i;var n=t.get("layout"),a=0,o=0,r=null;"radial"===n?(a=2*Math.PI,o=Math.min(i.height,i.width)/2,r=tf(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(a=i.width,o=i.height,r=tf());var s=t.getData().tree.root,l=s.children[0];if(l){$d(s),Nf(l,Jd,r),s.hierNode.modifier=-l.hierNode.prelim,zf(l,Qd);var u=l,h=l,c=l;zf(l,function(t){var e=t.getLayout().x;e<u.getLayout().x&&(u=t),e>h.getLayout().x&&(h=t),t.depth>c.depth&&(c=t)});var d=u===h?1:r(u,h)/2,f=d-u.getLayout().x,p=0,g=0,m=0,v=0;if("radial"===n)p=a/(h.getLayout().x+d+f),g=o/(c.depth-1||1),zf(l,function(t){m=(t.getLayout().x+f)*p,v=(t.depth-1)*g;var e=ef(m,v);t.setLayout({x:e.x,y:e.y,rawX:m,rawY:v},!0)});else{var y=t.getOrient();"RL"===y||"LR"===y?(g=o/(h.getLayout().x+d+f),p=a/(c.depth-1||1),zf(l,function(t){v=(t.getLayout().x+f)*g,m="LR"===y?(t.depth-1)*p:a-(t.depth-1)*p,t.setLayout({x:m,y:v},!0)})):("TB"===y||"BT"===y)&&(p=a/(h.getLayout().x+d+f),g=o/(c.depth-1||1),zf(l,function(t){m=(t.getLayout().x+f)*p,v="TB"===y?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:m,y:v},!0)}))}}}function Vf(t,e,i){if(t&&u(e,t.type)>=0){var n=i.getData().tree.root,a=t.targetNode;if("string"==typeof a&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var o=t.targetNodeId;if(null!=o&&(a=n.getNodeById(o)))return{node:a}}}function Gf(t){for(var e=[];t;)t=t.parentNode,t&&e.push(t);return e.reverse()}function Ff(t,e){var i=Gf(t);return u(i,e)>=0}function Wf(t,e){for(var i=[];t;){var n=t.dataIndex;i.push({name:t.name,dataIndex:n,value:e.getRawValue(n)}),t=t.parentNode}return i.reverse(),i}function Hf(t){var e=0;f(t.children,function(t){Hf(t);var i=t.value;_(i)&&(i=i[0]),e+=i});var i=t.value;_(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=e),0>i&&(i=0),_(t.value)?t.value[0]=i:t.value=i}function Zf(t,e){var i=e.get("color");if(i){t=t||[];var n;if(f(t,function(t){var e=new Xo(t),i=e.get("color");(e.get("itemStyle.color")||i&&"none"!==i)&&(n=!0)}),!n){var a=t[0]||(t[0]={});a.color=i.slice()}return t}}function Uf(t){this.group=new GS,t.add(this.group)}function Xf(t,e,i,n,a,o){var r=[[a?t:t-sP,e],[t+i,e],[t+i,e+n],[a?t:t-sP,e+n]];return!o&&r.splice(2,0,[t+i+sP,e+n/2]),!a&&r.push([t,e+n/2]),r}function Yf(t,e,i){t.eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:i&&i.dataIndex,name:i&&i.name},treePathInfo:i&&Wf(i,e)}}function jf(){var t,e=[],i={};return{add:function(t,n,a,o,r){return b(o)&&(r=o,o=0),i[t.id]?!1:(i[t.id]=1,e.push({el:t,target:n,time:a,delay:o,easing:r}),!0)},done:function(e){return t=e,this},start:function(){function n(){a--,a||(e.length=0,i={},t&&t())}for(var a=e.length,o=0,r=e.length;r>o;o++){var s=e[o];s.el.animateTo(s.target,s.time,s.delay,s.easing,n)}return this}}}function qf(){return{nodeGroup:[],background:[],content:[]}}function Kf(t,e,i,a,o,s,l,u,h,c){function d(e,i,n){i.dataIndex=l.dataIndex,i.seriesIndex=t.seriesIndex,i.setShape({x:0,y:0,width:_,height:w});var a=l.getVisual("borderColor",!0),o=k.get("borderColor");p(i,function(){var t=wP(L);t.fill=a;var e=_P(k);if(e.fill=o,n){var r=_-2*b;g(t,e,a,r,A,{x:b,y:0,width:r,height:A})}else t.text=e.text=null;i.setStyle(t),Mo(i,e)}),e.add(i)}function f(e,i){i.dataIndex=l.dataIndex,i.seriesIndex=t.seriesIndex;var n=Math.max(_-2*b,0),a=Math.max(w-2*b,0);i.culling=!0,i.setShape({x:b,y:b,width:n,height:a});var o=l.getVisual("color",!0);p(i,function(){var t=wP(L);t.fill=o;var e=_P(k);g(t,e,o,n,a),i.setStyle(t),Mo(i,e)}),e.add(i)}function p(t,e){S?!t.invisible&&s.push(t):(e(),t.__tmWillVisible||(t.invisible=!1))}function g(e,i,a,o,r,s){var u=l.getModel(),h=D(t.getFormattedLabel(l.dataIndex,"normal",null,null,s?"upperLabel":"label"),u.get("name"));if(!s&&x.isLeafRoot){var c=t.get("drillDownIcon",!0);h=c?c+" "+h:h}var d=u.getModel(s?gP:fP),f=u.getModel(s?mP:pP),p=d.getShallow("show");To(e,i,d,f,{defaultText:p?h:null,autoColor:a,isRectText:!0}),s&&(e.textRect=n(s)),e.truncate=p&&d.get("ellipsis")?{outerWidth:o,outerHeight:r,minChar:2}:null}function m(t,n,a,r){var s=null!=I&&i[t][I],l=o[t];return s?(i[t][I]=null,v(l,s,t)):S||(s=new n({z:$f(a,r)}),s.__tmDepth=a,s.__tmStorageName=t,y(l,s,t)),e[t][M]=s}function v(t,e,i){var n=t[M]={};n.old="nodeGroup"===i?e.position.slice():r({},e.shape)}function y(t,e,i){var n=t[M]={},r=l.parentNode;if(r&&(!a||"drillDown"===a.direction)){var s=0,u=0,h=o.background[r.getRawIndex()];!a&&h&&h.old&&(s=h.old.width,u=h.old.height),n.old="nodeGroup"===i?[0,u]:{x:s,y:u,width:0,height:0}}n.fadein="nodeGroup"!==i}if(l){var x=l.getLayout();if(x&&x.isInView){var _=x.width,w=x.height,b=x.borderWidth,S=x.invisible,M=l.getRawIndex(),I=u&&u.getRawIndex(),T=l.viewChildren,A=x.upperHeight,C=T&&T.length,L=l.getModel("itemStyle"),k=l.getModel("emphasis.itemStyle"),P=m("nodeGroup",uP);if(P){if(h.add(P),P.attr("position",[x.x||0,x.y||0]),P.__tmNodeWidth=_,P.__tmNodeHeight=w,x.isAboveViewRoot)return P;var O=m("background",hP,c,yP);if(O&&d(P,O,C&&x.upperHeight),!C){var E=m("content",hP,c,xP);E&&f(P,E)}return P}}}}function $f(t,e){var i=t*vP+e;return(i-1)/i}function Jf(t){var e=t.pieceList;t.hasSpecialVisual=!1,f(e,function(e,i){e.originIndex=i,null!=e.visual&&(t.hasSpecialVisual=!0)})}function Qf(t){var e=t.categories,i=t.visual,n=t.categoryMap={};if(IP(e,function(t,e){n[t]=e}),!_(i)){var a=[];S(i)?IP(i,function(t,e){var i=n[e];a[null!=i?i:AP]=t}):a[AP]=i,i=lp(t,a)}for(var o=e.length-1;o>=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}function tp(t,e){var i=t.visual,n=[];S(i)?IP(i,function(t){n.push(t)}):null!=i&&n.push(i);var a={color:1,symbol:1};e||1!==n.length||a.hasOwnProperty(t.type)||(n[1]=n[0]),lp(t,n)}function ep(t){return{applyVisual:function(e,i,n){e=this.mapValueToVisual(e),n("color",t(i("color"),e))},_doMap:rp([0,1])}}function ip(t){var e=this.option.visual;return e[Math.round(Qo(t,[0,1],[0,e.length-1],!0))]||{}}function np(t){return function(e,i,n){n(t,this.mapValueToVisual(e))}}function ap(t){var e=this.option.visual;return e[this.option.loop&&t!==AP?t%e.length:t]}function op(){return this.option.visual[0]}function rp(t){return{linear:function(e){return Qo(e,t,this.option.visual,!0)},category:ap,piecewise:function(e,i){var n=sp.call(this,i);return null==n&&(n=Qo(e,t,this.option.visual,!0)),n},fixed:op}}function sp(t){var e=this.option,i=e.pieceList;if(e.hasSpecialVisual){var n=DP.findPieceIndex(t,i),a=i[n];if(a&&a.visual)return a.visual[this.type]}}function lp(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=p(e,function(t){return Xe(t)})),e}function up(t,e,i){return t?i>=e:i>e}function hp(t,e,i,n,a,o){var r=t.getModel(),s=t.getLayout();if(s&&!s.invisible&&s.isInView){var l,u=t.getModel(PP),h=i[t.depth],c=cp(u,e,h,n),d=u.get("borderColor"),p=u.get("borderColorSaturation");null!=p&&(l=dp(c,t),d=fp(p,l)),t.setVisual("borderColor",d);var g=t.viewChildren;if(g&&g.length){var m=gp(t,r,s,u,c,g);f(g,function(t,e){if(t.depth>=a.length||t===a[t.depth]){var s=vp(r,c,t,e,m,o);hp(t,s,i,n,a,o)}})}else l=dp(c,t),t.setVisual("color",l)}}function cp(t,e,i,n){var a=r({},e);return f(["color","colorAlpha","colorSaturation"],function(o){var r=t.get(o,!0);null==r&&i&&(r=i[o]),null==r&&(r=e[o]),null==r&&(r=n.get(o)),null!=r&&(a[o]=r)}),a}function dp(t){var e=pp(t,"color");if(e){var i=pp(t,"colorAlpha"),n=pp(t,"colorSaturation");return n&&(e=Qe(e,null,null,n)),i&&(e=ti(e,i)),e}}function fp(t,e){return null!=e?Qe(e,null,null,t):null}function pp(t,e){var i=t[e];return null!=i&&"none"!==i?i:void 0}function gp(t,e,i,n,a,o){if(o&&o.length){var r=mp(e,"color")||null!=a.color&&"none"!==a.color&&(mp(e,"colorAlpha")||mp(e,"colorSaturation"));if(r){var s=e.get("visualMin"),l=e.get("visualMax"),u=i.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var h=e.get("colorMappingBy"),c={type:r.name,dataExtent:u,visual:r.range};"color"!==c.type||"index"!==h&&"id"!==h?c.mappingMethod="linear":(c.mappingMethod="category",c.loop=!0);var d=new DP(c);return d.__drColorMappingBy=h,d}}}function mp(t,e){var i=t.get(e);return kP(i)&&i.length?{name:e,range:i}:null}function vp(t,e,i,n,a,o){var s=r({},e);if(a){var l=a.type,u="color"===l&&a.__drColorMappingBy,h="index"===u?n:"id"===u?o.mapIdToIndex(i.getId()):i.getValue(t.get("visualDimension"));s[l]=a.mapValueToVisual(h)}return s}function yp(t,e,i,n){var a,o;if(!t.isRemoved()){var r=t.getLayout();a=r.width,o=r.height;var s=t.getModel(),l=s.get(BP),u=s.get(VP)/2,h=Dp(s),c=Math.max(l,h),d=l-u,f=c-u,s=t.getModel();t.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:h},!0),a=EP(a-2*d,0),o=EP(o-d-f,0);var p=a*o,g=xp(t,s,p,e,i,n);if(g.length){var m={x:d,y:f,width:a,height:o},v=RP(a,o),y=1/0,x=[];x.area=0;for(var _=0,w=g.length;w>_;){var b=g[_];x.push(b),x.area+=b.getLayout().area;var S=Sp(x,v,e.squareRatio);y>=S?(_++,y=S):(x.area-=x.pop().getLayout().area,Mp(x,v,m,u,!1),v=RP(m.width,m.height),x.length=x.area=0,y=1/0)}if(x.length&&Mp(x,v,m,u,!0),!i){var M=s.get("childrenVisibleMin");null!=M&&M>p&&(i=!0)}for(var _=0,w=g.length;w>_;_++)yp(g[_],e,i,n+1)}}}function xp(t,e,i,n,a,o){var r=t.children||[],s=n.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=n.leafDepth&&n.leafDepth<=o;if(a&&!l)return t.viewChildren=[];r=m(r,function(t){return!t.isRemoved()}),wp(r,s);var u=bp(e,r,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=_p(e,i,u.sum,s,r),0===u.sum)return t.viewChildren=[];for(var h=0,c=r.length;c>h;h++){var d=r[h].getValue()/u.sum*i;r[h].setLayout({area:d})}return l&&(r.length&&t.setLayout({isLeafRoot:!0},!0),r.length=0),t.viewChildren=r,t.setLayout({dataExtent:u.dataExtent},!0),r}function _p(t,e,i,n,a){if(!n)return i;for(var o=t.get("visibleMin"),r=a.length,s=r,l=r-1;l>=0;l--){var u=a["asc"===n?r-l-1:l].getValue();o>u/i*e&&(s=l,i-=u)}return"asc"===n?a.splice(0,r-s):a.splice(s,r-s),i}function wp(t,e){return e&&t.sort(function(t,i){var n="asc"===e?t.getValue()-i.getValue():i.getValue()-t.getValue();return 0===n?"asc"===e?t.dataIndex-i.dataIndex:i.dataIndex-t.dataIndex:n}),t}function bp(t,e,i){for(var n=0,a=0,o=e.length;o>a;a++)n+=e[a].getValue();var r,s=t.get("visualDimension");if(e&&e.length)if("value"===s&&i)r=[e[e.length-1].getValue(),e[0].getValue()],"asc"===i&&r.reverse();else{var r=[1/0,-1/0];zP(e,function(t){var e=t.getValue(s);e<r[0]&&(r[0]=e),e>r[1]&&(r[1]=e)})}else r=[0/0,0/0];return{sum:n,dataExtent:r}}function Sp(t,e,i){for(var n,a=0,o=1/0,r=0,s=t.length;s>r;r++)n=t[r].getLayout().area,n&&(o>n&&(o=n),n>a&&(a=n));var l=t.area*t.area,u=e*e*i;return l?EP(u*a/l,l/(u*o)):1/0}function Mp(t,e,i,n,a){var o=e===i.width?0:1,r=1-o,s=["x","y"],l=["width","height"],u=i[s[o]],h=e?t.area/e:0;(a||h>i[l[r]])&&(h=i[l[r]]);for(var c=0,d=t.length;d>c;c++){var f=t[c],p={},g=h?f.getLayout().area/h:0,m=p[l[r]]=EP(h-2*n,0),v=i[s[o]]+i[l[o]]-u,y=c===d-1||g>v?v:g,x=p[l[o]]=EP(y-2*n,0);p[s[r]]=i[s[r]]+RP(n,m/2),p[s[o]]=u+RP(n,x/2),u+=y,f.setLayout(p,!0)}i[s[r]]+=h,i[l[r]]-=h}function Ip(t,e,i,n,a){var o=(e||{}).node,r=[n,a];if(!o||o===i)return r;for(var s,l=n*a,u=l*t.option.zoomToNodeRatio;s=o.parentNode;){for(var h=0,c=s.children,d=0,f=c.length;f>d;d++)h+=c[d].getValue();var p=o.getValue();if(0===p)return r;u*=h/p;var g=s.getModel(),m=g.get(BP),v=Math.max(m,Dp(g,m));u+=4*m*m+(3*m+v)*Math.pow(u,.5),u>BT&&(u=BT),o=s}l>u&&(u=l);var y=Math.pow(u/l,.5);return[n*y,a*y]}function Tp(t,e,i){if(e)return{x:e.x,y:e.y};var n={x:0,y:0};if(!i)return n;var a=i.node,o=a.getLayout();if(!o)return n;for(var r=[o.width/2,o.height/2],s=a;s;){var l=s.getLayout();r[0]+=l.x,r[1]+=l.y,s=s.parentNode}return{x:t.width/2-r[0],y:t.height/2-r[1]}}function Ap(t,e,i,n,a){var o=t.getLayout(),r=i[a],s=r&&r===t;if(!(r&&!s||a===i.length&&t!==n)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(o),isAboveViewRoot:s},!0);var l=new yi(e.x-o.x,e.y-o.y,e.width,e.height);zP(t.viewChildren||[],function(t){Ap(t,l,i,n,a+1)})}}function Dp(t){return t.get(GP)?t.get(FP):0}function Cp(t){var e=0;f(t.children,function(t){Cp(t);var i=t.value;_(i)&&(i=i[0]),e+=i});var i=t.value;_(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=e),0>i&&(i=0),_(t.value)?t.value[0]=i:t.value=i}function Lp(t,e,i){function n(){r.ignore=r.hoverIgnore}function a(){r.ignore=r.normalIgnore}GS.call(this);var o=new iT({z2:ZP});o.seriesIndex=e.seriesIndex;var r=new JI({z2:UP,silent:t.getModel("label").get("silent")});this.add(o),this.add(r),this.updateData(!0,t,"normal",e,i),this.on("emphasis",n).on("normal",a).on("mouseover",n).on("mouseout",a)}function kp(t,e,i){var n=t.getVisual("color"),a=t.getVisual("visualMeta");a&&0!==a.length||(n=null);var o=t.getModel("itemStyle").get("color");if(o)return o;if(n)return n;if(0===t.depth)return i.option.color[0];var r=i.option.color.length;return o=i.option.color[Pp(t)%r]}function Pp(t){for(var e=t;e.depth>1;)e=e.parentNode;var i=t.getAncestors()[0];return u(i.children,e)}function Op(t,e,i){return i===HP.NONE?!1:i===HP.SELF?t===e:i===HP.ANCESTOR?t===e||t.isAncestorOf(e):t===e||t.isDescendantOf(e)}function Ep(t,e,i){var n=e.getData();n.setItemVisual(t.dataIndex,"color",i)}function Rp(t,e){var i=t.children||[];t.children=Np(i,e),i.length&&f(t.children,function(t){Rp(t,e)})}function Np(t,e){if("function"==typeof e)return t.sort(e);var i="asc"===e;return t.sort(function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(i?-1:1):n})}function zp(t){for(var e,i=0;i<t.length;i++){var n=t[i].getBoundingRect();e=e||n.clone(),e.union(n)}return e}function Bp(t,e){var i,n,a=t.svgXML;try{i=a&&Il(a,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=i.root,O(null!=n)}catch(o){throw new Error("Invalid svg format\n"+o.message)}var r=i.width,s=i.height,l=i.viewBoxRect;if(e||(e=null==r||null==s?n.getBoundingRect():new yi(0,0,0,0),null!=r&&(e.width=r),null!=s&&(e.height=s)),l){var u=Ml(l,e.width,e.height),h=n;n=new GS,n.add(h),h.scale=u.scale,h.position=u.position}return n.setClipPath(new hT({shape:e.plain()})),{root:n,boundingRect:e}}function Vp(t){return function(e,i){var n=Gp(e),a=[];return f(n,function(n){var o=pO[n.type][t];o&&a.push(o(e,n,i))}),a}}function Gp(t){var e=MD.retrieveMap(t)||[];return e}function Fp(t){var e=t.getItemStyle(),i=t.get("areaColor");return null!=i&&(e.fill=i),e}function Wp(t,e,i,n,a){i.off("click"),i.off("mousedown"),e.get("selectedMode")&&(i.on("mousedown",function(){t._mouseDownFlag=!0}),i.on("click",function(o){if(t._mouseDownFlag){t._mouseDownFlag=!1;for(var r=o.target;!r.__regions;)r=r.parent;if(r){var s={type:("geo"===e.mainType?"geo":"map")+"ToggleSelect",batch:p(r.__regions,function(t){return{name:t.name,from:a.uid}})};s[e.mainType+"Id"]=e.id,n.dispatchAction(s),Hp(e,i)}}}))}function Hp(t,e){e.eachChild(function(e){f(e.__regions,function(i){e.trigger(t.isSelected(i.name)?"emphasis":"normal")})})}function Zp(t,e){var i=new GS;this.uid=qo("ec_map_draw"),this._controller=new _f(t.getZr()),this._controllerHost={target:e?i:null},this.group=i,this._updateGroup=e,this._mouseDownFlag,this._mapName,this._initialized,i.add(this._regionsGroup=new GS),i.add(this._backgroundGroup=new GS)}function Up(t){var e=this[vO];e&&e.recordVersion===this[yO]&&Xp(e,t)}function Xp(t,e){var i=t.circle,n=t.labelModel,a=t.hoverLabelModel,o=t.emphasisText,r=t.normalText;e?(i.style.extendFrom(Ao({},a,{text:a.get("show")?o:null},{isRectText:!0,useInsideStyle:!1},!0)),i.__mapOriginalZ2=i.z2,i.z2+=IT):(Ao(i.style,n,{text:n.get("show")?r:null,textPosition:n.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),i.dirty(!1),null!=i.__mapOriginalZ2&&(i.z2=i.__mapOriginalZ2,i.__mapOriginalZ2=null))}function Yp(t,e,i,n){df.call(this,t),this.map=e;var a=gO.load(e,i);this._nameCoordMap=a.nameCoordMap,this._regionsMap=a.regionsMap,this._invertLongitute=null==n?!0:n,this.regions=a.regions,this._rect=a.boundingRect}function jp(t,e,i,n){var a=i.geoModel,o=i.seriesModel,r=a?a.coordinateSystem:o?o.coordinateSystem||(o.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return r===this?r[t](n):null}function qp(t,e){var i=t.get("boundingCoords");if(null!=i){var n=i[0],a=i[1];isNaN(n[0])||isNaN(n[1])||isNaN(a[0])||isNaN(a[1])||this.setBoundingRect(n[0],n[1],a[0]-n[0],a[1]-n[1])}var o,r=this.getBoundingRect(),s=t.get("layoutCenter"),l=t.get("layoutSize"),u=e.getWidth(),h=e.getHeight(),c=r.width/r.height*this.aspectScale,d=!1;s&&l&&(s=[tr(s[0],u),tr(s[1],h)],l=tr(l,Math.min(u,h)),isNaN(s[0])||isNaN(s[1])||isNaN(l)||(d=!0));var f;if(d){var f={};c>1?(f.width=l,f.height=l/c):(f.height=l,f.width=l*c),f.y=s[1]-f.height/2,f.x=s[0]-f.width/2}else o=t.getBoxLayoutParams(),o.aspect=c,f=Cr(o,{width:u,height:h});this.setViewRect(f.x,f.y,f.width,f.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))
}function Kp(t,e){f(e.get("geoCoord"),function(e,i){t.addGeoCoord(i,e)})}function $p(t,e){var i={};return f(t,function(t){t.each(t.mapDimension("value"),function(e,n){var a="ec-"+t.getName(n);i[a]=i[a]||[],isNaN(e)||i[a].push(e)})}),t[0].map(t[0].mapDimension("value"),function(n,a){for(var o="ec-"+t[0].getName(a),r=0,s=1/0,l=-1/0,u=i[o].length,h=0;u>h;h++)s=Math.min(s,i[o][h]),l=Math.max(l,i[o][h]),r+=i[o][h];var c;return c="min"===e?s:"max"===e?l:"average"===e?r/u:r,0===u?0/0:c})}function Jp(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=p(e,function(t){var e=[t[0].coord,t[1].coord],i={coords:e};return t[0].name&&(i.fromName=t[0].name),t[1].name&&(i.toName=t[1].name),o([i,t[0],t[1]])}))}function Qp(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}function tg(t){return"_"+t+"Type"}function eg(t,e,i){var n=e.getItemVisual(i,"color"),a=e.getItemVisual(i,t),o=e.getItemVisual(i,t+"Size");if(a&&"none"!==a){_(o)||(o=[o,o]);var r=Th(a,-o[0]/2,-o[1]/2,o[0],o[1],n);return r.name=t,r}}function ig(t){var e=new CO({name:"line"});return ng(e.shape,t),e}function ng(t,e){var i=e[0],n=e[1],a=e[2];t.x1=i[0],t.y1=i[1],t.x2=n[0],t.y2=n[1],t.percent=1,a?(t.cpx1=a[0],t.cpy1=a[1]):(t.cpx1=0/0,t.cpy1=0/0)}function ag(){var t=this,e=t.childOfName("fromSymbol"),i=t.childOfName("toSymbol"),n=t.childOfName("label");if(e||i||!n.ignore){for(var a=1,o=this.parent;o;)o.scale&&(a/=o.scale[0]),o=o.parent;var r=t.childOfName("line");if(this.__dirty||r.__dirty){var s=r.shape.percent,l=r.pointAt(0),u=r.pointAt(s),h=Y([],u,l);if(te(h,h),e){e.attr("position",l);var c=r.tangentAt(0);e.attr("rotation",Math.PI/2-Math.atan2(c[1],c[0])),e.attr("scale",[a*s,a*s])}if(i){i.attr("position",u);var c=r.tangentAt(1);i.attr("rotation",-Math.PI/2-Math.atan2(c[1],c[0])),i.attr("scale",[a*s,a*s])}if(!n.ignore){n.attr("position",u);var d,f,p,g=5*a;if("end"===n.__position)d=[h[0]*g+u[0],h[1]*g+u[1]],f=h[0]>.8?"left":h[0]<-.8?"right":"center",p=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";else if("middle"===n.__position){var m=s/2,c=r.tangentAt(m),v=[c[1],-c[0]],y=r.pointAt(m);v[1]>0&&(v[0]=-v[0],v[1]=-v[1]),d=[y[0]+v[0]*g,y[1]+v[1]*g],f="center",p="bottom";var x=-Math.atan2(c[1],c[0]);u[0]<l[0]&&(x=Math.PI+x),n.attr("rotation",x)}else d=[-h[0]*g+l[0],-h[1]*g+l[1]],f=h[0]>.8?"right":h[0]<-.8?"left":"center",p=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";n.attr({style:{textVerticalAlign:n.__verticalAlign||p,textAlign:n.__textAlign||f},position:d,scale:[a,a]})}}}}function og(t,e,i){GS.call(this),this._createLine(t,e,i)}function rg(t){this._ctor=t||og,this.group=new GS}function sg(t,e,i,n){var a=e.getItemLayout(i);if(cg(a)){var o=new t._ctor(e,i,n);e.setItemGraphicEl(i,o),t.group.add(o)}}function lg(t,e,i,n,a,o){var r=e.getItemGraphicEl(n);return cg(i.getItemLayout(a))?(r?r.updateData(i,a,o):r=new t._ctor(i,a,o),i.setItemGraphicEl(a,r),void t.group.add(r)):void t.group.remove(r)}function ug(t){var e=t.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),hoverLineStyle:e.getModel("emphasis.lineStyle").getLineStyle(),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label")}}function hg(t){return isNaN(t[0])||isNaN(t[1])}function cg(t){return!hg(t[0])&&!hg(t[1])}function dg(t,e,i){GS.call(this),this.add(this.createLine(t,e,i)),this._updateEffectSymbol(t,e)}function fg(t,e,i){GS.call(this),this._createPolyline(t,e,i)}function pg(t,e,i){dg.call(this,t,e,i),this._lastFrame=0,this._lastFramePercent=0}function gg(){this.group=new GS}function mg(t){return t instanceof Array||(t=[t,t]),t}function vg(t){return"_EC_"+t}function yg(t,e){this.id=null==t?"":t,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==e?-1:e}function xg(t,e,i){this.node1=t,this.node2=e,this.dataIndex=null==i?-1:i}function _g(t,e,i){for(var n,a=t[0],o=t[1],r=t[2],s=1/0,l=i*i,u=.1,h=.1;.9>=h;h+=.1){XO[0]=qO(a[0],o[0],r[0],h),XO[1]=qO(a[1],o[1],r[1],h);var c=$O(KO(XO,e)-l);s>c&&(s=c,n=h)}for(var d=0;32>d;d++){var f=n+u;YO[0]=qO(a[0],o[0],r[0],n),YO[1]=qO(a[1],o[1],r[1],n),jO[0]=qO(a[0],o[0],r[0],f),jO[1]=qO(a[1],o[1],r[1],f);var c=KO(YO,e)-l;if($O(c)<.01)break;var p=KO(jO,e)-l;u/=2,0>c?p>=0?n+=u:n-=u:p>=0?n-=u:n+=u}return n}function wg(t,e){return t.getVisual("opacity")||t.getModel().get(e)}function bg(t,e,i){var n=t.getGraphicEl(),a=wg(t,e);null!=i&&(null==a&&(a=1),a*=i),n.downplay&&n.downplay(),n.traverse(function(t){if("group"!==t.type){var e=t.lineLabelOriginalOpacity;(null==e||null!=i)&&(e=a),t.setStyle("opacity",e)}})}function Sg(t,e){var i=wg(t,e),n=t.getGraphicEl();n.highlight&&n.highlight(),n.traverse(function(t){"group"!==t.type&&t.setStyle("opacity",i)})}function Mg(t){return t instanceof Array||(t=[t,t]),t}function Ig(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var i=t.getGraph();i.eachNode(function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])}),Tg(i)}}function Tg(t){t.eachEdge(function(t){var e=t.getModel().get("lineStyle.curveness")||0,i=H(t.node1.getLayout()),n=H(t.node2.getLayout()),a=[i,n];+e&&a.push([(i[0]+n[0])/2-(i[1]-n[1])*e,(i[1]+n[1])/2-(n[0]-i[0])*e]),t.setLayout(a)})}function Ag(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var i=e.getBoundingRect(),n=t.getData(),a=n.graph,o=0,r=n.getSum("value"),s=2*Math.PI/(r||n.count()),l=i.width/2+i.x,u=i.height/2+i.y,h=Math.min(i.width,i.height)/2;a.eachNode(function(t){var e=t.getValue("value");o+=s*(r?e:1)/2,t.setLayout([h*Math.cos(o)+l,h*Math.sin(o)+u]),o+=s*(r?e:1)/2}),n.setLayout({cx:l,cy:u}),a.eachEdge(function(t){var e,i=t.getModel().get("lineStyle.curveness")||0,n=H(t.node1.getLayout()),a=H(t.node2.getLayout()),o=(n[0]+a[0])/2,r=(n[1]+a[1])/2;+i&&(i*=3,e=[l*i+o*(1-i),u*i+r*(1-i)]),t.setLayout([n,a,e])})}}function Dg(t,e,i){for(var n=i.rect,a=n.width,o=n.height,r=[n.x+a/2,n.y+o/2],s=null==i.gravity?.1:i.gravity,l=0;l<t.length;l++){var u=t[l];u.p||(u.p=F(a*(Math.random()-.5)+r[0],o*(Math.random()-.5)+r[1])),u.pp=H(u.p),u.edges=null}var h=.6;return{warmUp:function(){h=.5},setFixed:function(e){t[e].fixed=!0},setUnfixed:function(e){t[e].fixed=!1},step:function(i){for(var n=[],a=t.length,o=0;o<e.length;o++){var l=e[o],u=l.n1,c=l.n2;Y(n,c.p,u.p);var d=j(n)-l.d,f=c.w/(u.w+c.w);isNaN(f)&&(f=0),te(n,n),!u.fixed&&uE(u.p,u.p,n,f*d*h),!c.fixed&&uE(c.p,c.p,n,-(1-f)*d*h)}for(var o=0;a>o;o++){var p=t[o];p.fixed||(Y(n,r,p.p),uE(p.p,p.p,n,s*h))}for(var o=0;a>o;o++)for(var u=t[o],g=o+1;a>g;g++){var c=t[g];Y(n,c.p,u.p);var d=j(n);0===d&&(Z(n,Math.random()-.5,Math.random()-.5),d=1);var m=(u.rep+c.rep)/d/d;!u.fixed&&uE(u.pp,u.pp,n,m),!c.fixed&&uE(c.pp,c.pp,n,-m)}for(var v=[],o=0;a>o;o++){var p=t[o];p.fixed||(Y(v,p.p,p.pp),uE(p.p,p.p,v,h),W(p.pp,p.p))}h=.992*h,i&&i(t,e,.01>h)}}}function Cg(t,e,i){var n=t.getBoxLayoutParams();return n.aspect=i,Cr(n,{width:e.getWidth(),height:e.getHeight()})}function Lg(t,e,i,n,a){var o=t.ends,r=new gE({shape:{points:a?Pg(o,n,t):o}});return kg(t,r,e,i,a),r}function kg(t,e,i,n,a){var o=i.hostModel,r=CT[a?"initProps":"updateProps"];r(e,{shape:{points:t.ends}},o,n);var s=i.getItemModel(n),l=s.getModel(fE),u=i.getItemVisual(n,"color"),h=l.getItemStyle(["borderColor"]);h.stroke=u,h.strokeNoScale=!0,e.useStyle(h),e.z2=100;var c=s.getModel(pE).getItemStyle();Mo(e,c)}function Pg(t,e,i){return p(t,function(t){return t=t.slice(),t[e]=i.initBaseline,t})}function Og(t){var e=[],i=[];return t.eachSeriesByType("boxplot",function(t){var n=t.getBaseAxis(),a=u(i,n);0>a&&(a=i.length,i[a]=n,e[a]={axis:n,seriesModels:[]}),e[a].seriesModels.push(t)}),e}function Eg(t){var e,i,n=t.axis,a=t.seriesModels,o=a.length,r=t.boxWidthList=[],s=t.boxOffsetList=[],l=[];if("category"===n.type)i=n.getBandWidth();else{var u=0;yE(a,function(t){u=Math.max(u,t.getData().count())}),e=n.getExtent(),Math.abs(e[1]-e[0])/u}yE(a,function(t){var e=t.get("boxWidth");_(e)||(e=[e,e]),l.push([tr(e[0],i)||0,tr(e[1],i)||0])});var h=.8*i-2,c=h/o*.3,d=(h-c*(o-1))/o,f=d/2-h/2;yE(a,function(t,e){s.push(f),f+=c+d,r.push(Math.min(Math.max(d,l[e][0]),l[e][1]))})}function Rg(t,e,i){function n(t,i,n){var a=s.get(i,n),o=[];o[u]=t,o[h]=a;var l;return isNaN(t)||isNaN(a)?l=[0/0,0/0]:(l=r.dataToPoint(o),l[u]+=e),l}function a(t,e,i){var n=e.slice(),a=e.slice();n[u]+=l,a[u]-=l,i?t.push(n,a):t.push(a,n)}function o(t,e){var i=e.slice(),n=e.slice();i[u]-=l,n[u]+=l,t.push(i,n)}var r=t.coordinateSystem,s=t.getData(),l=i/2,u="horizontal"===t.get("layout")?0:1,h=1-u,c=["x","y"],d=s.mapDimension(c[u]),f=s.mapDimension(c[h],!0);if(!(null==d||f.length<5))for(var p=0;p<s.count();p++){var g=s.get(d,p),m=n(g,f[2],p),v=n(g,f[0],p),y=n(g,f[1],p),x=n(g,f[3],p),_=n(g,f[4],p),w=[];a(w,y,0),a(w,x,1),w.push(v,y,_,x),o(w,v),o(w,_),o(w,m),s.setItemLayout(p,{initBaseline:m[h],ends:w})}}function Ng(t){if(!t.parallel){var e=!1;f(t.series,function(t){t&&"parallel"===t.type&&(e=!0)}),e&&(t.parallel=[{}])}}function zg(t){var e=Bn(t.parallelAxis);f(e,function(e){if(S(e)){var i=e.parallelIndex||0,n=Bn(t.parallel)[i];n&&n.parallelAxisDefault&&a(e,n.parallelAxisDefault,!1)}})}function Bg(t,e){var i=t[e]-t[1-e];return{span:Math.abs(i),sign:i>0?-1:0>i?1:e?-1:1}}function Vg(t,e){return Math.min(e[1],Math.max(e[0],t))}function Gg(t,e,i){this._axesMap=B(),this._axesLayout={},this.dimensions=t.dimensions,this._rect,this._model=t,this._init(t,e,i)}function Fg(t,e){return ME(IE(t,e[0]),e[1])}function Wg(t,e){var i=e.layoutLength/(e.axisCount-1);return{position:i*t,axisNameAvailableWidth:i,axisLabelShow:!0}}function Hg(t,e){var i,n,a=e.layoutLength,o=e.axisExpandWidth,r=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,h=!1;return t<l[0]?(i=t*s,n=s):t<=l[1]?(i=e.axisExpandWindow0Pos+t*o-e.axisExpandWindow[0],u=o,h=!0):(i=a-(r-1-t)*s,n=s),{position:i,axisNameAvailableWidth:u,axisLabelShow:h,nameTruncateMaxWidth:n}}function Zg(t,e){var i=[];return t.eachComponent("parallel",function(n,a){var o=new Gg(n,t,e);o.name="parallel_"+a,o.resize(n,e),n.coordinateSystem=o,o.model=n,i.push(o)}),t.eachSeries(function(e){if("parallel"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"parallel",index:e.get("parallelIndex"),id:e.get("parallelId")})[0];e.coordinateSystem=i.coordinateSystem}}),i}function Ug(t,e){return e.type||(e.data?"category":"value")}function Xg(t){Jb.call(this),this._zr=t,this.group=new GS,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+XE++,this._handlers={},EE(YE,function(t,e){this._handlers[e]=y(t,this)},this)}function Yg(t,e){var i=t._zr;t._enableGlobalPan||mf(i,WE,t._uid),EE(t._handlers,function(t,e){i.on(e,t)}),t._brushType=e.brushType,t._brushOption=a(n(UE),e,!0)}function jg(t){var e=t._zr;vf(e,WE,t._uid),EE(t._handlers,function(t,i){e.off(i,t)}),t._brushType=t._brushOption=null}function qg(t,e){var i=jE[e.brushType].createCover(t,e);return i.__brushOption=e,Jg(i,e),t.group.add(i),i}function Kg(t,e){var i=tm(e);return i.endCreating&&(i.endCreating(t,e),Jg(e,e.__brushOption)),e}function $g(t,e){var i=e.__brushOption;tm(e).updateCoverShape(t,e,i.range,i)}function Jg(t,e){var i=e.z;null==i&&(i=VE),t.traverse(function(t){t.z=i,t.z2=i})}function Qg(t,e){tm(e).updateCommon(t,e),$g(t,e)}function tm(t){return jE[t.__brushOption.brushType]}function em(t,e,i){var n=t._panels;if(!n)return!0;var a,o=t._transform;return EE(n,function(t){t.isTargetByCursor(e,i,o)&&(a=t)}),a}function im(t,e){var i=t._panels;if(!i)return!0;var n=e.__brushOption.panelId;return null!=n?i[n]:!0}function nm(t){var e=t._covers,i=e.length;return EE(e,function(e){t.group.remove(e)},t),e.length=0,!!i}function am(t,e){var i=RE(t._covers,function(t){var e=t.__brushOption,i=n(e.range);return{brushType:e.brushType,panelId:e.panelId,range:i}});t.trigger("brush",i,{isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function om(t){var e=t._track;if(!e.length)return!1;var i=e[e.length-1],n=e[0],a=i[0]-n[0],o=i[1]-n[1],r=BE(a*a+o*o,.5);return r>GE}function rm(t){var e=t.length-1;return 0>e&&(e=0),[t[0],t[e]]}function sm(t,e,i,n){var a=new GS;return a.add(new hT({name:"main",style:cm(i),silent:!0,draggable:!0,cursor:"move",drift:OE(t,e,a,"nswe"),ondragend:OE(am,e,{isEnd:!0})})),EE(n,function(i){a.add(new hT({name:i,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:OE(t,e,a,i),ondragend:OE(am,e,{isEnd:!0})}))}),a}function lm(t,e,i,n){var a=n.brushStyle.lineWidth||0,o=zE(a,FE),r=i[0][0],s=i[1][0],l=r-a/2,u=s-a/2,h=i[0][1],c=i[1][1],d=h-o+a/2,f=c-o+a/2,p=h-r,g=c-s,m=p+a,v=g+a;hm(t,e,"main",r,s,p,g),n.transformable&&(hm(t,e,"w",l,u,o,v),hm(t,e,"e",d,u,o,v),hm(t,e,"n",l,u,m,o),hm(t,e,"s",l,f,m,o),hm(t,e,"nw",l,u,o,o),hm(t,e,"ne",d,u,o,o),hm(t,e,"sw",l,f,o,o),hm(t,e,"se",d,f,o,o))}function um(t,e){var i=e.__brushOption,n=i.transformable,a=e.childAt(0);a.useStyle(cm(i)),a.attr({silent:!n,cursor:n?"move":"default"}),EE(["w","e","n","s","se","sw","ne","nw"],function(i){var a=e.childOfName(i),o=pm(t,i);a&&a.attr({silent:!n,invisible:!n,cursor:n?ZE[o]+"-resize":null})})}function hm(t,e,i,n,a,o,r){var s=e.childOfName(i);s&&s.setShape(xm(ym(t,e,[[n,a],[n+o,a+r]])))}function cm(t){return s({strokeNoScale:!0},t.brushStyle)}function dm(t,e,i,n){var a=[NE(t,i),NE(e,n)],o=[zE(t,i),zE(e,n)];return[[a[0],o[0]],[a[1],o[1]]]}function fm(t){return Vo(t.group)}function pm(t,e){if(e.length>1){e=e.split("");var i=[pm(t,e[0]),pm(t,e[1])];return("e"===i[0]||"w"===i[0])&&i.reverse(),i.join("")}var n={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},i=Fo(n[e],fm(t));return a[i]}function gm(t,e,i,n,a,o,r){var s=n.__brushOption,l=t(s.range),u=vm(i,o,r);EE(a.split(""),function(t){var e=HE[t];l[e[0]][e[1]]+=u[e[0]]}),s.range=e(dm(l[0][0],l[1][0],l[0][1],l[1][1])),Qg(i,n),am(i,{isEnd:!1})}function mm(t,e,i,n){var a=e.__brushOption.range,o=vm(t,i,n);EE(a,function(t){t[0]+=o[0],t[1]+=o[1]}),Qg(t,e),am(t,{isEnd:!1})}function vm(t,e,i){var n=t.group,a=n.transformCoordToLocal(e,i),o=n.transformCoordToLocal(0,0);return[a[0]-o[0],a[1]-o[1]]}function ym(t,e,i){var a=im(t,e);return a&&a!==!0?a.clipPath(i,t._transform):n(i)}function xm(t){var e=NE(t[0][0],t[1][0]),i=NE(t[0][1],t[1][1]),n=zE(t[0][0],t[1][0]),a=zE(t[0][1],t[1][1]);return{x:e,y:i,width:n-e,height:a-i}}function _m(t,e,i){if(t._brushType){var n=t._zr,a=t._covers,o=em(t,e,i);if(!t._dragging)for(var r=0;r<a.length;r++){var s=a[r].__brushOption;if(o&&(o===!0||s.panelId===o.panelId)&&jE[s.brushType].contain(a[r],i[0],i[1]))return}o&&n.setCursorStyle("crosshair")}}function wm(t){var e=t.event;e.preventDefault&&e.preventDefault()}function bm(t,e,i){return t.childOfName("main").contain(e,i)}function Sm(t,e,i,a){var o,r=t._creatingCover,s=t._creatingPanel,l=t._brushOption;if(t._track.push(i.slice()),om(t)||r){if(s&&!r){"single"===l.brushMode&&nm(t);var u=n(l);u.brushType=Mm(u.brushType,s),u.panelId=s===!0?null:s.panelId,r=t._creatingCover=qg(t,u),t._covers.push(r)}if(r){var h=jE[Mm(t._brushType,s)],c=r.__brushOption;c.range=h.getCreatingRange(ym(t,r,t._track)),a&&(Kg(t,r),h.updateCommon(t,r)),$g(t,r),o={isEnd:a}}}else a&&"single"===l.brushMode&&l.removeOnClick&&em(t,e,i)&&nm(t)&&(o={isEnd:a,removeOnClick:!0});return o}function Mm(t,e){return"auto"===t?e.defaultBrushType:t}function Im(t){if(this._dragging){wm(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY),i=Sm(this,t,e,!0);this._dragging=!1,this._track=[],this._creatingCover=null,i&&am(this,i)}}function Tm(t){return{createCover:function(e,i){return sm(OE(gm,function(e){var i=[e,[0,100]];return t&&i.reverse(),i},function(e){return e[t]}),e,i,[["w","e"],["n","s"]][t])},getCreatingRange:function(e){var i=rm(e),n=NE(i[0][t],i[1][t]),a=zE(i[0][t],i[1][t]);return[n,a]},updateCoverShape:function(e,i,n,a){var o,r=im(e,i);if(r!==!0&&r.getLinearBrushOtherExtent)o=r.getLinearBrushOtherExtent(t,e._transform);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[n,o];t&&l.reverse(),lm(e,i,l,a)},updateCommon:um,contain:bm}}function Am(t){return t=Lm(t),function(e){return Ho(e,t)}}function Dm(t,e){return t=Lm(t),function(i){var n=null!=e?e:i,a=n?t.width:t.height,o=n?t.x:t.y;return[o,o+(a||0)]}}function Cm(t,e,i){return t=Lm(t),function(n,a){return t.contain(a[0],a[1])&&!Cf(n,e,i)}}function Lm(t){return yi.create(t)}function km(t,e,i){return i&&"axisAreaSelect"===i.type&&e.findComponents({mainType:"parallelAxis",query:i})[0]===t}function Pm(t){var e=t.axis;return p(t.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function Om(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}function Em(t,e){var i=t._model;return i.get("axisExpandable")&&i.get("axisExpandTriggerOn")===e}function Rm(t,e){if(!t.encodeDefine){var i=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(i){var n=t.encodeDefine=B();f(i.dimensions,function(t){var e=Nm(t);n.set(t,e)})}}}function Nm(t){return+t.replace("dim","")}function zm(t,e,i){var n=t.model,a=t.getRect(),o=new hT({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),r="horizontal"===n.get("layout")?"width":"height";return o.setShape(r,0),Bo(o,{shape:{width:a.width,height:a.height}},e,i),o}function Bm(t,e,i,n){for(var a=[],o=0;o<i.length;o++){var r=i[o],s=t.get(t.mapDimension(r),e);Wm(s,n.getAxis(r).type)||a.push(n.dataToPoint(s,r))}return a}function Vm(t,e,i,n,a){var o=Bm(t,i,n,a),r=new sT({shape:{points:o},silent:!0,z2:10});return e.add(r),t.setItemGraphicEl(i,r),r}function Gm(t){var e=t.get("smooth",!0);return e===!0&&(e=QE),{lineStyle:t.getModel("lineStyle").getLineStyle(),smooth:null!=e?e:QE}}function Fm(t,e,i,n){var a=n.lineStyle;if(e.hasItemOption){var o=e.getItemModel(i).getModel("lineStyle");a=o.getLineStyle()}t.useStyle(a);var r=t.style;r.fill=null,r.stroke=e.getItemVisual(i,"color"),r.opacity=e.getItemVisual(i,"opacity"),n.smooth&&(t.shape.smooth=n.smooth)}function Wm(t,e){return"category"===e?null==t:null==t||isNaN(t)}function Hm(t,e){var i=t.get("center"),n=e.getWidth(),a=e.getHeight(),o=Math.min(n,a),r=tr(i[0],e.getWidth()),s=tr(i[1],e.getHeight()),l=tr(t.get("radius"),o/2);return{cx:r,cy:s,r:l}}function Zm(t,e){return e&&("string"==typeof e?t=e.replace("{value}",null!=t?t:""):"function"==typeof e&&(t=e(t))),t}function Um(t,e){function i(){o.ignore=o.hoverIgnore,r.ignore=r.hoverIgnore}function n(){o.ignore=o.normalIgnore,r.ignore=r.normalIgnore}GS.call(this);var a=new rT,o=new sT,r=new JI;this.add(a),this.add(o),this.add(r),this.updateData(t,e,!0),this.on("emphasis",i).on("normal",n).on("mouseover",i).on("mouseout",n)}function Xm(t,e){return Cr(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Ym(t,e){for(var i=t.mapDimension("value"),n=t.mapArray(i,function(t){return t}),a=[],o="ascending"===e,r=0,s=t.count();s>r;r++)a[r]=r;return"function"==typeof e?a.sort(e):"none"!==e&&a.sort(function(t,e){return o?n[t]-n[e]:n[e]-n[t]}),a}function jm(t){t.each(function(e){var i,n,a,o,r=t.getItemModel(e),s=r.getModel("label"),l=s.get("position"),u=r.getModel("labelLine"),h=t.getItemLayout(e),c=h.points,d="inner"===l||"inside"===l||"center"===l;if(d)n=(c[0][0]+c[1][0]+c[2][0]+c[3][0])/4,a=(c[0][1]+c[1][1]+c[2][1]+c[3][1])/4,i="center",o=[[n,a],[n,a]];else{var f,p,g,m=u.get("length");"left"===l?(f=(c[3][0]+c[0][0])/2,p=(c[3][1]+c[0][1])/2,g=f-m,n=g-5,i="right"):(f=(c[1][0]+c[2][0])/2,p=(c[1][1]+c[2][1])/2,g=f+m,n=g+5,i="left");var v=p;o=[[f,p],[g,v]],a=v}h.label={linePoints:o,x:n,y:a,verticalAlign:"middle",textAlign:i,inside:d}})}function qm(t,e){return t.getVisual("opacity")||t.getModel().get(e)}function Km(t,e,i){var n=t.getGraphicEl(),a=qm(t,e);null!=i&&(null==a&&(a=1),a*=i),n.downplay&&n.downplay(),n.traverse(function(t){"group"!==t.type&&t.setStyle("opacity",a)})}function $m(t,e){var i=qm(t,e),n=t.getGraphicEl();n.highlight&&n.highlight(),n.traverse(function(t){"group"!==t.type&&t.setStyle("opacity",i)})}function Jm(t,e,i){var n=new hT({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Bo(n,{shape:{width:t.width+20,height:t.height+20}},e,i),n}function Qm(t,e){return Cr(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function tv(t,e,i,n,a,o,r,s){iv(t,e,i,a,o,s),ov(t,e,o,a,n,r,s),mv(t,s)}function ev(t){f(t,function(t){var e=pv(t.outEdges,fv),i=pv(t.inEdges,fv),n=Math.max(e,i);t.setLayout({value:n},!0)})}function iv(t,e,i,n,a,o){for(var r=[],s=[],l=[],u=[],h=0,c=0,d=0;d<e.length;d++)r[d]=1;for(d=0;d<t.length;d++)s[d]=t[d].inEdges.length,0===s[d]&&l.push(t[d]);for(;l.length;){for(var f=0;f<l.length;f++){var p=l[f];"vertical"===o?(p.setLayout({y:h},!0),p.setLayout({dy:i},!0)):(p.setLayout({x:h},!0),p.setLayout({dx:i},!0));for(var g=0;g<p.outEdges.length;g++){var m=p.outEdges[g],v=e.indexOf(m);r[v]=0;var y=m.node2,x=t.indexOf(y);0===--s[x]&&u.push(y)}}++h,l=u,u=[]}for(d=0;d<r.length;d++);nv(t,h,o),c="vertical"===o?(a-i)/(h-1):(n-i)/(h-1),av(t,c,o)}function nv(t,e,i){f(t,function(t){t.outEdges.length||("vertical"===i?t.setLayout({y:e-1},!0):t.setLayout({x:e-1},!0))})}function av(t,e,i){f(t,function(t){if("vertical"===i){var n=t.getLayout().y*e;t.setLayout({y:n},!0)}else{var a=t.getLayout().x*e;t.setLayout({x:a},!0)}})}function ov(t,e,i,n,a,o,r){var s=rv(t,r);sv(t,s,e,i,n,a,r),lv(s,a,i,n,r);for(var l=1;o>0;o--)l*=.99,uv(s,l,r),lv(s,a,i,n,r),gv(s,l,r),lv(s,a,i,n,r)}function rv(t,e){var i=[],n="vertical"===e?"y":"x",a=ta(t,function(t){return t.getLayout()[n]});return a.keys.sort(function(t,e){return t-e}),f(a.keys,function(t){i.push(a.buckets.get(t))}),i}function sv(t,e,i,n,a,o,r){var s=[];f(e,function(t){var e=t.length,i=0,l=0;f(t,function(t){i+=t.getLayout().value}),l="vertical"===r?(a-(e-1)*o)/i:(n-(e-1)*o)/i,s.push(l)}),s.sort(function(t,e){return t-e});var l=s[0];f(e,function(t){f(t,function(t,e){var i=t.getLayout().value*l;"vertical"===r?(t.setLayout({x:e},!0),t.setLayout({dx:i},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:i},!0))})}),f(i,function(t){var e=+t.getValue()*l;t.setLayout({dy:e},!0)})}function lv(t,e,i,n,a){f(t,function(t){var o,r,s,l=0,u=t.length;if("vertical"===a){var h;for(t.sort(function(t,e){return t.getLayout().x-e.getLayout().x}),s=0;u>s;s++)o=t[s],r=l-o.getLayout().x,r>0&&(h=o.getLayout().x+r,o.setLayout({x:h},!0)),l=o.getLayout().x+o.getLayout().dx+e;if(r=l-e-n,r>0)for(h=o.getLayout().x-r,o.setLayout({x:h},!0),l=h,s=u-2;s>=0;--s)o=t[s],r=o.getLayout().x+o.getLayout().dx+e-l,r>0&&(h=o.getLayout().x-r,o.setLayout({x:h},!0)),l=o.getLayout().x}else{var c;for(t.sort(function(t,e){return t.getLayout().y-e.getLayout().y}),s=0;u>s;s++)o=t[s],r=l-o.getLayout().y,r>0&&(c=o.getLayout().y+r,o.setLayout({y:c},!0)),l=o.getLayout().y+o.getLayout().dy+e;if(r=l-e-i,r>0)for(c=o.getLayout().y-r,o.setLayout({y:c},!0),l=c,s=u-2;s>=0;--s)o=t[s],r=o.getLayout().y+o.getLayout().dy+e-l,r>0&&(c=o.getLayout().y-r,o.setLayout({y:c},!0)),l=o.getLayout().y}})}function uv(t,e,i){f(t.slice().reverse(),function(t){f(t,function(t){if(t.outEdges.length){var n=pv(t.outEdges,hv,i)/pv(t.outEdges,fv,i);if("vertical"===i){var a=t.getLayout().x+(n-dv(t,i))*e;t.setLayout({x:a},!0)}else{var o=t.getLayout().y+(n-dv(t,i))*e;t.setLayout({y:o},!0)}}})})}function hv(t,e){return dv(t.node2,e)*t.getValue()}function cv(t,e){return dv(t.node1,e)*t.getValue()}function dv(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function fv(t){return t.getValue()}function pv(t,e,i){for(var n=0,a=t.length,o=-1;++o<a;){var r=+e.call(t,t[o],i);isNaN(r)||(n+=r)}return n}function gv(t,e,i){f(t,function(t){f(t,function(t){if(t.inEdges.length){var n=pv(t.inEdges,cv,i)/pv(t.inEdges,fv,i);if("vertical"===i){var a=t.getLayout().x+(n-dv(t,i))*e;t.setLayout({x:a},!0)}else{var o=t.getLayout().y+(n-dv(t,i))*e;t.setLayout({y:o},!0)}}})})}function mv(t,e){f(t,function(t){"vertical"===e?(t.outEdges.sort(function(t,e){return t.node2.getLayout().x-e.node2.getLayout().x}),t.inEdges.sort(function(t,e){return t.node1.getLayout().x-e.node1.getLayout().x})):(t.outEdges.sort(function(t,e){return t.node2.getLayout().y-e.node2.getLayout().y}),t.inEdges.sort(function(t,e){return t.node1.getLayout().y-e.node1.getLayout().y}))}),f(t,function(t){var e=0,i=0;f(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy}),f(t.inEdges,function(t){t.setLayout({ty:i},!0),i+=t.getLayout().dy})})}function vv(t,e,i){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(t,e,i),this.model=t}function yv(t,e){var i=[];return t.eachComponent("singleAxis",function(n,a){var o=new vv(n,t,e);o.name="single_"+a,o.resize(n,e),n.coordinateSystem=o,i.push(o)}),t.eachSeries(function(e){if("singleAxis"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"singleAxis",index:e.get("singleAxisIndex"),id:e.get("singleAxisId")})[0];e.coordinateSystem=i&&i.coordinateSystem}}),i}function xv(t,e){e=e||{};var i=t.coordinateSystem,n=t.axis,a={},o=n.position,r=n.orient,s=i.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};a.position=["vertical"===r?u.vertical[o]:l[0],"horizontal"===r?u.horizontal[o]:l[3]];var h={horizontal:0,vertical:1};a.rotation=Math.PI/2*h[r];var c={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=c[o],t.get("axisTick.inside")&&(a.tickDirection=-a.tickDirection),D(e.labelInside,t.get("axisLabel.inside"))&&(a.labelDirection=-a.labelDirection);var d=e.rotate;return null==d&&(d=t.get("axisLabel.rotate")),a.labelRotation="top"===o?-d:d,a.z2=1,a}function _v(t,e){return e.type||(e.data?"category":"value")}function wv(t,e,i,n,a){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e)){if(!t.involveSeries)return void i.showPointer(t,e);var s=bv(e,t),l=s.payloadBatch,u=s.snapToValue;l[0]&&null==a.seriesIndex&&r(a,l[0]),!n&&t.snap&&o.containData(u)&&null!=u&&(e=u),i.showPointer(t,e,l,a),i.showTooltip(t,s,u)}}function bv(t,e){var i=e.axis,n=i.dim,a=t,o=[],r=Number.MAX_VALUE,s=-1;return wR(e.seriesModels,function(e){var l,u,h=e.getData().mapDimension(n,!0);if(e.getAxisTooltipData){var c=e.getAxisTooltipData(h,t,i);u=c.dataIndices,l=c.nestestValue}else{if(u=e.getData().indicesOfNearest(h[0],t,"category"===i.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);r>=f&&((r>f||d>=0&&0>s)&&(r=f,s=d,a=l,o.length=0),wR(u,function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:o,snapToValue:a}}function Sv(t,e,i,n){t[e.key]={value:i,payloadBatch:n}}function Mv(t,e,i,n){var a=i.payloadBatch,o=e.axis,r=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&a.length){var l=e.coordSys.model,u=Rc(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:o.dim,axisIndex:r.componentIndex,axisType:r.type,axisId:r.id,value:n,valueLabelOpt:{precision:s.get("label.precision"),formatter:s.get("label.formatter")},seriesDataIndices:a.slice()})}}function Iv(t,e,i){var n=i.axesInfo=[];wR(e,function(e,i){var a=e.axisPointerModel.option,o=t[i];o?(!e.useHandle&&(a.status="show"),a.value=o.value,a.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(a.status="hide"),"show"===a.status&&n.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:a.value})})}function Tv(t,e,i,n){if(Lv(e)||!t.list.length)return void n({type:"hideTip"});var a=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:t.list})}function Av(t,e,i){var n=i.getZr(),a="axisPointerLastHighlights",o=SR(n)[a]||{},r=SR(n)[a]={};wR(t,function(t){var e=t.axisPointerModel.option;"show"===e.status&&wR(e.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;r[e]=t})});var s=[],l=[];f(o,function(t,e){!r[e]&&l.push(t)}),f(r,function(t,e){!o[e]&&s.push(t)}),l.length&&i.dispatchAction({type:"downplay",escapeConnect:!0,batch:l}),s.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,batch:s})}function Dv(t,e){for(var i=0;i<(t||[]).length;i++){var n=t[i];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function Cv(t){var e=t.axis.model,i={},n=i.axisDim=t.axis.dim;return i.axisIndex=i[n+"AxisIndex"]=e.componentIndex,i.axisName=i[n+"AxisName"]=e.name,i.axisId=i[n+"AxisId"]=e.id,i}function Lv(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function kv(t,e,i){if(!Lb.node){var n=e.getZr();IR(n).records||(IR(n).records={}),Pv(n,e);var a=IR(n).records[t]||(IR(n).records[t]={});a.handler=i}}function Pv(t,e){function i(i,n){t.on(i,function(i){var a=Nv(e);TR(IR(t).records,function(t){t&&n(t,i,a.dispatchAction)}),Ov(a.pendings,e)})}IR(t).initialized||(IR(t).initialized=!0,i("click",x(Rv,"click")),i("mousemove",x(Rv,"mousemove")),i("globalout",Ev))}function Ov(t,e){var i,n=t.showTip.length,a=t.hideTip.length;n?i=t.showTip[n-1]:a&&(i=t.hideTip[a-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function Ev(t,e,i){t.handler("leave",null,i)}function Rv(t,e,i,n){e.handler(t,i,n)}function Nv(t){var e={showTip:[],hideTip:[]},i=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=i,t.dispatchAction(n))};return{dispatchAction:i,pendings:e}}function zv(t,e){if(!Lb.node){var i=e.getZr(),n=(IR(i).records||{})[t];n&&(IR(i).records[t]=null)}}function Bv(){}function Vv(t,e,i,n){Gv(DR(i).lastProp,n)||(DR(i).lastProp=n,e?zo(i,n,t):(i.stopAnimation(),i.attr(n)))}function Gv(t,e){if(S(t)&&S(e)){var i=!0;return f(e,function(e,n){i=i&&Gv(t[n],e)}),!!i}return t===e}function Fv(t,e){t[e.get("label.show")?"show":"hide"]()}function Wv(t){return{position:t.position.slice(),rotation:t.rotation||0}}function Hv(t,e,i){var n=e.get("z"),a=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=a&&(t.zlevel=a),t.silent=i)})}function Zv(t){var e,i=t.get("type"),n=t.getModel(i+"Style");return"line"===i?(e=n.getLineStyle(),e.fill=null):"shadow"===i&&(e=n.getAreaStyle(),e.stroke=null),e}function Uv(t,e,i,n,a){var o=i.get("value"),r=Yv(o,e.axis,e.ecModel,i.get("seriesDataIndices"),{precision:i.get("label.precision"),formatter:i.get("label.formatter")}),s=i.getModel("label"),l=FT(s.get("padding")||0),u=s.getFont(),h=Bi(r,u),c=a.position,d=h.width+l[1]+l[3],f=h.height+l[0]+l[2],p=a.align;"right"===p&&(c[0]-=d),"center"===p&&(c[0]-=d/2);var g=a.verticalAlign;"bottom"===g&&(c[1]-=f),"middle"===g&&(c[1]-=f/2),Xv(c,d,f,n);var m=s.get("backgroundColor");m&&"auto"!==m||(m=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:r,textFont:u,textFill:s.getTextColor(),textPosition:"inside",fill:m,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 Xv(t,e,i,n){var a=n.getWidth(),o=n.getHeight();t[0]=Math.min(t[0]+e,a)-e,t[1]=Math.min(t[1]+i,o)-i,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function Yv(t,e,i,n,a){t=e.scale.parse(t);var o=e.scale.getLabel(t,{precision:a.precision}),r=a.formatter;if(r){var s={value:_h(e,t),seriesData:[]};f(n,function(t){var e=i.getSeriesByIndex(t.seriesIndex),n=t.dataIndexInside,a=e&&e.getDataParams(n);a&&s.seriesData.push(a)}),b(r)?o=r.replace("{value}",o):w(r)&&(o=r(s))}return o}function jv(t,e,i){var n=Ie();return Le(n,n,i.rotation),Ce(n,n,i.position),Go([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}function qv(t,e,i,n,a,o){var r=NL.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=a.get("label.margin"),Uv(e,n,a,o,{position:jv(n.axis,t,i),align:r.textAlign,verticalAlign:r.textVerticalAlign})}function Kv(t,e,i){return i=i||0,{x1:t[i],y1:t[1-i],x2:e[i],y2:e[1-i]}}function $v(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}function Jv(t,e,i,n,a,o){return{cx:t,cy:e,r0:i,r:n,startAngle:a,endAngle:o,clockwise:!0}}function Qv(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i)
}function ty(t){return"x"===t.dim?0:1}function ey(t){return t.isHorizontal()?0:1}function iy(t,e){var i=t.getRect();return[i[OR[e]],i[OR[e]]+i[ER[e]]]}function ny(t,e,i){var n=new hT({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Bo(n,{shape:{width:t.width+20,height:t.height+20}},e,i),n}function ay(t,e,i){if(t.count())for(var n,a=e.coordinateSystem,o=e.getLayerSeries(),r=t.mapDimension("single"),s=t.mapDimension("value"),l=p(o,function(e){return p(e.indices,function(e){var i=a.dataToPoint(t.get(r,e));return i[1]=t.get(s,e),i})}),u=oy(l),h=u.y0,c=i/u.max,d=o.length,f=o[0].indices.length,g=0;f>g;++g){n=h[g]*c,t.setItemLayout(o[0].indices[g],{layerIndex:0,x:l[0][g][0],y0:n,y:l[0][g][1]*c});for(var m=1;d>m;++m)n+=l[m-1][g][1]*c,t.setItemLayout(o[m].indices[g],{layerIndex:m,x:l[m][g][0],y0:n,y:l[m][g][1]*c})}}function oy(t){for(var e,i=t.length,n=t[0].length,a=[],o=[],r=0,s={},l=0;n>l;++l){for(var u=0,e=0;i>u;++u)e+=t[u][l][1];e>r&&(r=e),a.push(e)}for(var h=0;n>h;++h)o[h]=(r-a[h])/2;r=0;for(var c=0;n>c;++c){var d=a[c]+o[c];d>r&&(r=d)}return s.y0=o,s.max=r,s}function ry(t,e,i,n){var a=t.getItemLayout(e),o=i.get("symbolRepeat"),r=i.get("symbolClip"),s=i.get("symbolPosition")||"start",l=i.get("symbolRotate"),u=(l||0)*Math.PI/180||0,h=i.get("symbolPatternSize")||2,c=i.isAnimationEnabled(),d={dataIndex:e,layout:a,itemModel:i,symbolType:t.getItemVisual(e,"symbol")||"circle",color:t.getItemVisual(e,"color"),symbolClip:r,symbolRepeat:o,symbolRepeatDirection:i.get("symbolRepeatDirection"),symbolPatternSize:h,rotation:u,animationModel:c?i:null,hoverAnimation:c&&i.get("hoverAnimation"),z2:i.getShallow("z",!0)||0};sy(i,o,a,n,d),uy(t,e,a,o,r,d.boundingLength,d.pxSign,h,n,d),hy(i,d.symbolScale,u,n,d);var f=d.symbolSize,p=i.get("symbolOffset");return _(p)&&(p=[tr(p[0],f[0]),tr(p[1],f[1])]),cy(i,f,a,o,r,p,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,n,d),d}function sy(t,e,i,n,a){var o,r=n.valueDim,s=t.get("symbolBoundingData"),l=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),h=1-+(i[r.wh]<=0);if(_(s)){var c=[ly(l,s[0])-u,ly(l,s[1])-u];c[1]<c[0]&&c.reverse(),o=c[h]}else o=null!=s?ly(l,s)-u:e?n.coordSysExtent[r.index][h]-u:i[r.wh];a.boundingLength=o,e&&(a.repeatCutLength=i[r.wh]),a.pxSign=o>0?1:0>o?-1:0}function ly(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function uy(t,e,i,n,a,o,r,s,l,u){var h=l.valueDim,c=l.categoryDim,d=Math.abs(i[c.wh]),f=t.getItemVisual(e,"symbolSize");_(f)?f=f.slice():(null==f&&(f="100%"),f=[f,f]),f[c.index]=tr(f[c.index],d),f[h.index]=tr(f[h.index],n?d:Math.abs(o)),u.symbolSize=f;var p=u.symbolScale=[f[0]/s,f[1]/s];p[h.index]*=(l.isHorizontal?-1:1)*r}function hy(t,e,i,n,a){var o=t.get(WR)||0;o&&(ZR.attr({scale:e.slice(),rotation:i}),ZR.updateTransform(),o/=ZR.getLineScale(),o*=e[n.valueDim.index]),a.valueLineWidth=o}function cy(t,e,i,n,a,o,s,l,u,h,c,d){var f=c.categoryDim,p=c.valueDim,g=d.pxSign,m=Math.max(e[p.index]+l,0),v=m;if(n){var y=Math.abs(u),x=D(t.get("symbolMargin"),"15%")+"",_=!1;x.lastIndexOf("!")===x.length-1&&(_=!0,x=x.slice(0,x.length-1)),x=tr(x,e[p.index]);var w=Math.max(m+2*x,0),b=_?0:2*x,S=gr(n),M=S?n:Dy((y+b)/w),I=y-M*m;x=I/2/(_?M:M-1),w=m+2*x,b=_?0:2*x,S||"fixed"===n||(M=h?Dy((Math.abs(h)+b)/w):0),v=M*w-b,d.repeatTimes=M,d.symbolMargin=x}var T=g*(v/2),A=d.pathPosition=[];A[f.index]=i[f.wh]/2,A[p.index]="start"===s?T:"end"===s?u-T:u/2,o&&(A[0]+=o[0],A[1]+=o[1]);var C=d.bundlePosition=[];C[f.index]=i[f.xy],C[p.index]=i[p.xy];var L=d.barRectShape=r({},i);L[p.wh]=g*Math.max(Math.abs(i[p.wh]),Math.abs(A[p.index]+T)),L[f.wh]=i[f.wh];var k=d.clipShape={};k[f.xy]=-i[f.xy],k[f.wh]=c.ecSize[f.wh],k[p.xy]=0,k[p.wh]=i[p.wh]}function dy(t){var e=t.symbolPatternSize,i=Th(t.symbolType,-e/2,-e/2,e,e,t.color);return i.attr({culling:!0}),"image"!==i.type&&i.setStyle({strokeNoScale:!0}),i}function fy(t,e,i,n){function a(t){var e=h.slice(),n=i.pxSign,a=t;return("start"===i.symbolRepeatDirection?n>0:0>n)&&(a=d-1-t),e[c.index]=p*(a-d/2+.5)+h[c.index],{position:e,scale:i.symbolScale.slice(),rotation:i.rotation}}function o(){Iy(t,function(t){t.trigger("emphasis")})}function r(){Iy(t,function(t){t.trigger("normal")})}var s=t.__pictorialBundle,l=i.symbolSize,u=i.valueLineWidth,h=i.pathPosition,c=e.valueDim,d=i.repeatTimes||0,f=0,p=l[e.valueDim.index]+u+2*i.symbolMargin;for(Iy(t,function(t){t.__pictorialAnimationIndex=f,t.__pictorialRepeatTimes=d,d>f?Ty(t,null,a(f),i,n):Ty(t,null,{scale:[0,0]},i,n,function(){s.remove(t)}),_y(t,i),f++});d>f;f++){var g=dy(i);g.__pictorialAnimationIndex=f,g.__pictorialRepeatTimes=d,s.add(g);var m=a(f);Ty(g,{position:m.position,scale:[0,0]},{scale:m.scale,rotation:m.rotation},i,n),g.on("mouseover",o).on("mouseout",r),_y(g,i)}}function py(t,e,i,n){function a(){this.trigger("emphasis")}function o(){this.trigger("normal")}var r=t.__pictorialBundle,s=t.__pictorialMainPath;s?Ty(s,null,{position:i.pathPosition.slice(),scale:i.symbolScale.slice(),rotation:i.rotation},i,n):(s=t.__pictorialMainPath=dy(i),r.add(s),Ty(s,{position:i.pathPosition.slice(),scale:[0,0],rotation:i.rotation},{scale:i.symbolScale.slice()},i,n),s.on("mouseover",a).on("mouseout",o)),_y(s,i)}function gy(t,e,i){var n=r({},e.barRectShape),a=t.__pictorialBarRect;a?Ty(a,null,{shape:n},e,i):(a=t.__pictorialBarRect=new hT({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(a))}function my(t,e,i,n){if(i.symbolClip){var a=t.__pictorialClipPath,o=r({},i.clipShape),s=e.valueDim,l=i.animationModel,u=i.dataIndex;if(a)zo(a,{shape:o},l,u);else{o[s.wh]=0,a=new hT({shape:o}),t.__pictorialBundle.setClipPath(a),t.__pictorialClipPath=a;var h={};h[s.wh]=i.clipShape[s.wh],CT[n?"updateProps":"initProps"](a,{shape:h},l,u)}}}function vy(t,e){var i=t.getItemModel(e);return i.getAnimationDelayParams=yy,i.isAnimationEnabled=xy,i}function yy(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function xy(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function _y(t,e){t.off("emphasis").off("normal");var i=e.symbolScale.slice();e.hoverAnimation&&t.on("emphasis",function(){this.animateTo({scale:[1.1*i[0],1.1*i[1]]},400,"elasticOut")}).on("normal",function(){this.animateTo({scale:i.slice()},400,"elasticOut")})}function wy(t,e,i,n){var a=new GS,o=new GS;return a.add(o),a.__pictorialBundle=o,o.attr("position",i.bundlePosition.slice()),i.symbolRepeat?fy(a,e,i):py(a,e,i),gy(a,i,n),my(a,e,i,n),a.__pictorialShapeStr=My(t,i),a.__pictorialSymbolMeta=i,a}function by(t,e,i){var n=i.animationModel,a=i.dataIndex,o=t.__pictorialBundle;zo(o,{position:i.bundlePosition.slice()},n,a),i.symbolRepeat?fy(t,e,i,!0):py(t,e,i,!0),gy(t,i,!0),my(t,e,i,!0)}function Sy(t,e,i,n){var a=n.__pictorialBarRect;a&&(a.style.text=null);var o=[];Iy(n,function(t){o.push(t)}),n.__pictorialMainPath&&o.push(n.__pictorialMainPath),n.__pictorialClipPath&&(i=null),f(o,function(t){zo(t,{scale:[0,0]},i,e,function(){n.parent&&n.parent.remove(n)})}),t.setItemGraphicEl(e,null)}function My(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Iy(t,e,i){f(t.__pictorialBundle.children(),function(n){n!==t.__pictorialBarRect&&e.call(i,n)})}function Ty(t,e,i,n,a,o){e&&t.attr(e),n.symbolClip&&!a?i&&t.attr(i):i&&CT[a?"updateProps":"initProps"](t,i,n.animationModel,n.dataIndex,o)}function Ay(t,e,i){var n=i.color,a=i.dataIndex,o=i.itemModel,r=o.getModel("itemStyle").getItemStyle(["color"]),l=o.getModel("emphasis.itemStyle").getItemStyle(),u=o.getShallow("cursor");Iy(t,function(t){t.setColor(n),t.setStyle(s({fill:n,opacity:i.opacity},r)),Mo(t,l),u&&(t.cursor=u),t.z2=i.z2});var h={},c=e.valueDim.posDesc[+(i.boundingLength>0)],d=t.__pictorialBarRect;lc(d.style,h,o,n,e.seriesModel,a,c),Mo(d,h)}function Dy(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}function Cy(t,e){return e=e||[0,0],p(["x","y"],function(i,n){var a=this.getAxis(i),o=e[n],r=t[n]/2;return"category"===a.type?a.getBandWidth():Math.abs(a.dataToCoord(o-r)-a.dataToCoord(o+r))},this)}function Ly(t,e){return e=e||[0,0],p([0,1],function(i){var n=e[i],a=t[i]/2,o=[],r=[];return o[i]=n-a,r[i]=n+a,o[1-i]=r[1-i]=e[1-i],Math.abs(this.dataToPoint(o)[i]-this.dataToPoint(r)[i])},this)}function ky(t,e){var i=this.getAxis(),n=e instanceof Array?e[0]:e,a=(t instanceof Array?t[0]:t)/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(n-a)-i.dataToCoord(n+a))}function Py(t,e){return p(["Radius","Angle"],function(i,n){var a=this["get"+i+"Axis"](),o=e[n],r=t[n]/2,s="dataTo"+i,l="category"===a.type?a.getBandWidth():Math.abs(a[s](o-r)-a[s](o+r));return"Angle"===i&&(l=l*Math.PI/180),l},this)}function Oy(t){var e,i=t.type;if("path"===i){var n=t.shape,a=null!=n.width&&null!=n.height?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,o=Uy(n);e=no(o,null,a,n.layout||"center"),e.__customPathData=o}else if("image"===i)e=new wn({}),e.__customImagePath=t.style.image;else if("text"===i)e=new JI({}),e.__customText=t.style.text;else{var r=CT[i.charAt(0).toUpperCase()+i.slice(1)];e=new r}return e.__customGraphicType=i,e.name=t.name,e}function Ey(t,e,i,a,o,r,s){var l={},u=i.style||{};if(i.shape&&(l.shape=n(i.shape)),i.position&&(l.position=i.position.slice()),i.scale&&(l.scale=i.scale.slice()),i.origin&&(l.origin=i.origin.slice()),i.rotation&&(l.rotation=i.rotation),"image"===t.type&&i.style){var h=l.style={};f(["x","y","width","height"],function(e){Ry(e,h,u,t.style,r)})}if("text"===t.type&&i.style){var h=l.style={};f(["x","y"],function(e){Ry(e,h,u,t.style,r)}),!u.hasOwnProperty("textFill")&&u.fill&&(u.textFill=u.fill),!u.hasOwnProperty("textStroke")&&u.stroke&&(u.textStroke=u.stroke)}if("group"!==t.type&&(t.useStyle(u),r)){t.style.opacity=0;var c=u.opacity;null==c&&(c=1),Bo(t,{style:{opacity:c}},a,e)}r?t.attr(l):zo(t,l,a,e),i.hasOwnProperty("z2")&&t.attr("z2",i.z2||0),i.hasOwnProperty("silent")&&t.attr("silent",i.silent),i.hasOwnProperty("invisible")&&t.attr("invisible",i.invisible),i.hasOwnProperty("ignore")&&t.attr("ignore",i.ignore),i.hasOwnProperty("info")&&t.attr("info",i.info);var d=i.styleEmphasis,p=d===!1;t.__cusHasEmphStl&&null==d||!t.__cusHasEmphStl&&p||(yo(t,d),t.__cusHasEmphStl=!p),s&&Io(t,!p)}function Ry(t,e,i,n,a){null==i[t]||a||(e[t]=i[t],i[t]=n[t])}function Ny(t,e,i,n){function a(t){null==t&&(t=v),M&&(y=e.getItemModel(t),x=y.getModel(JR),_=y.getModel(QR),w=e.getItemVisual(t,"color"),M=!1)}function o(t,i){return null==i&&(i=v),e.get(e.getDimension(t||0),i)}function l(i,n){null==n&&(n=v),a(n);var o=y.getModel(KR).getItemStyle();null!=w&&(o.fill=w);var s=e.getItemVisual(n,"opacity");return null!=s&&(o.opacity=s),Ao(o,x,null,{autoColor:w,isRectText:!0}),o.text=x.getShallow("show")?C(t.getFormattedLabel(n,"normal"),sc(e,n)):null,i&&r(o,i),o}function u(i,n){null==n&&(n=v),a(n);var o=y.getModel($R).getItemStyle();return Ao(o,_,null,{isRectText:!0},!0),o.text=_.getShallow("show")?L(t.getFormattedLabel(n,"emphasis"),t.getFormattedLabel(n,"normal"),sc(e,n)):null,i&&r(o,i),o}function h(t,i){return null==i&&(i=v),e.getItemVisual(i,t)}function c(t){if(g.getBaseAxis){var e=g.getBaseAxis();return ah(s({axis:e},t),n)}}function d(){return i.getCurrentSeriesIndices()}function f(t){return Ro(t,i)}var p=t.get("renderItem"),g=t.coordinateSystem,m={};g&&(m=g.prepareCustoms?g.prepareCustoms():eN[g.type](g));var v,y,x,_,w,b=s({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:o,style:l,styleEmphasis:u,visual:h,barLayout:c,currentSeriesIndices:d,font:f},m.api||{}),S={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:m.coordSys,dataInsideLength:e.count(),encode:zy(t.getData())},M=!0;return function(t,i){return v=t,M=!0,p&&p(s({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:i?i.type:null},S),b)}}function zy(t){var e={};return f(t.dimensions,function(i,n){var a=t.getDimensionInfo(i);if(!a.isExtraCoord){var o=a.coordDim,r=e[o]=e[o]||[];r[a.coordDimIndex]=n}}),e}function By(t,e,i,n,a,o){return t=Vy(t,e,i,n,a,o,!0),t&&o.setItemGraphicEl(e,t),t}function Vy(t,e,i,n,a,o,r){var s=!i;i=i||{};var l=i.type,u=i.shape,h=i.style;if(t&&(s||null!=l&&l!==t.__customGraphicType||"path"===l&&Xy(u)&&Uy(u)!==t.__customPathData||"image"===l&&Yy(h,"image")&&h.image!==t.__customImagePath||"text"===l&&Yy(u,"text")&&h.text!==t.__customText)&&(a.remove(t),t=null),!s){var c=!t;return!t&&(t=Oy(i)),Ey(t,e,i,n,o,c,r),"group"===l&&Gy(t,e,i,n,o),a.add(t),t}}function Gy(t,e,i,n,a){var o=i.children,r=o?o.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,u=s===!1;if(r||l||u){if(l)return void Fy({oldChildren:t.children()||[],newChildren:o||[],dataIndex:e,animatableModel:n,group:t,data:a});u&&t.removeAll();for(var h=0;r>h;h++)o[h]&&Vy(t.childAt(h),e,o[h],n,t,a)}}function Fy(t){new _u(t.oldChildren,t.newChildren,Wy,Wy,t).add(Hy).update(Hy).remove(Zy).execute()}function Wy(t,e){var i=t&&t.name;return null!=i?i:tN+e}function Hy(t,e){var i=this.context,n=null!=t?i.newChildren[t]:null,a=null!=e?i.oldChildren[e]:null;Vy(a,i.dataIndex,n,i.animatableModel,i.group,i.data)}function Zy(t){var e=this.context,i=e.oldChildren[t];i&&e.group.remove(i)}function Uy(t){return t&&(t.pathData||t.d)}function Xy(t){return t&&(t.hasOwnProperty("pathData")||t.hasOwnProperty("d"))}function Yy(t,e){return t&&t.hasOwnProperty(e)}function jy(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function qy(t){return t.dim}function Ky(t,e,i){var n=(i.getWidth(),i.getHeight(),{}),a=$y(m(e.getSeriesByType(t),function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type}));e.eachSeriesByType(t,function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),r=jy(t),s=a[qy(o)][r],l=s.offset,u=s.width,h=i.getOtherAxis(o),c=t.coordinateSystem.cx,d=t.coordinateSystem.cy,f=t.get("barMinHeight")||0,p=t.get("barMinAngle")||0;n[r]=n[r]||[];for(var g=e.mapDimension(h.dim),m=e.mapDimension(o.dim),v=Wu(e,g),y=h.getExtent()[0],x=0,_=e.count();_>x;x++){var w=e.get(g,x),b=e.get(m,x);if(!isNaN(w)){var S=w>=0?"p":"n",M=y;v&&(n[r][b]||(n[r][b]={p:y,n:y}),M=n[r][b][S]);var I,T,A,D;if("radius"===h.dim){var C=h.dataToRadius(w)-y,L=o.dataToAngle(b);Math.abs(C)<f&&(C=(0>C?-1:1)*f),I=M,T=M+C,A=L-l,D=A-u,v&&(n[r][b][S]=T)}else{var k=h.dataToAngle(w,!0)-y,P=o.dataToRadius(b);Math.abs(k)<p&&(k=(0>k?-1:1)*p),I=P+l,T=I+u,A=M,D=M+k,v&&(n[r][b][S]=D)}e.setItemLayout(x,{cx:c,cy:d,r0:I,r:T,startAngle:-A*Math.PI/180,endAngle:-D*Math.PI/180})}}}},this)}function $y(t){var e={};f(t,function(t){var i=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),o=a.getExtent(),r="category"===a.type?a.getBandWidth():Math.abs(o[1]-o[0])/i.count(),s=e[qy(a)]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},l=s.stacks;e[qy(a)]=s;var u=jy(t);l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var h=tr(t.get("barWidth"),r),c=tr(t.get("barMaxWidth"),r),d=t.get("barGap"),f=t.get("barCategoryGap");h&&!l[u].width&&(h=Math.min(s.remainedWidth,h),l[u].width=h,s.remainedWidth-=h),c&&(l[u].maxWidth=c),null!=d&&(s.gap=d),null!=f&&(s.categoryGap=f)});var i={};return f(e,function(t,e){i[e]={};var n=t.stacks,a=t.bandWidth,o=tr(t.categoryGap,a),r=tr(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*r);u=Math.max(u,0),f(n,function(t){var e=t.maxWidth;e&&u>e&&(e=Math.min(e,s),t.width&&(e=Math.min(e,t.width)),s-=e,t.width=e,l--)}),u=(s-o)/(l+(l-1)*r),u=Math.max(u,0);var h,c=0;f(n,function(t){t.width||(t.width=u),h=t,c+=t.width*(1+r)}),h&&(c-=h.width*r);var d=-c/2;f(n,function(t,n){i[e][n]=i[e][n]||{offset:d,width:t.width},d+=t.width*(1+r)})}),i}function Jy(t,e){pL.call(this,"radius",t,e),this.type="category"}function Qy(t,e){e=e||[0,360],pL.call(this,"angle",t,e),this.type="category"}function tx(t,e){return e.type||(e.data?"category":"value")}function ex(t,e,i){var n=e.get("center"),a=i.getWidth(),o=i.getHeight();t.cx=tr(n[0],a),t.cy=tr(n[1],o);var r=t.getRadiusAxis(),s=Math.min(a,o)/2,l=tr(e.get("radius"),s);r.inverse?r.setExtent(l,0):r.setExtent(0,l)}function ix(t){var e=this,i=e.getAngleAxis(),n=e.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){if(t.coordinateSystem===e){var a=t.getData();f(a.mapDimension("radius",!0),function(t){n.scale.unionExtentFromData(a,Hu(a,t))}),f(a.mapDimension("angle",!0),function(t){i.scale.unionExtentFromData(a,Hu(a,t))})}}),mh(i.scale,i.model),mh(n.scale,n.model),"category"===i.type&&!i.onBand){var a=i.getExtent(),o=360/i.scale.count();i.inverse?a[1]+=o:a[1]-=o,i.setExtent(a[0],a[1])}}function nx(t,e){if(t.type=e.get("type"),t.scale=vh(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType){t.inverse^=e.get("clockwise");var i=e.get("startAngle");t.setExtent(i,i+(t.inverse?-360:360))}e.axis=t,t.model=e}function ax(t,e,i){e[1]>e[0]&&(e=e.slice().reverse());var n=t.coordToPoint([e[0],i]),a=t.coordToPoint([e[1],i]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function ox(t){var e=t.getRadiusAxis();return e.inverse?0:1}function rx(t){var e=t[0],i=t[t.length-1];e&&i&&Math.abs(Math.abs(e.coord-i.coord)-360)<1e-4&&t.pop()}function sx(t,e,i){return{position:[t.cx,t.cy],rotation:i/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}function lx(t,e,i,n,a){var o=e.axis,r=o.dataToCoord(t),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,h,c=n.getRadiusAxis().getExtent();if("radius"===o.dim){var d=Ie();Le(d,d,s),Ce(d,d,[n.cx,n.cy]),l=Go([r,-a],d);var f=e.getModel("axisLabel").get("rotate")||0,p=NL.innerTextLayout(s,f*Math.PI/180,-1);u=p.textAlign,h=p.textVerticalAlign}else{var g=c[1];l=n.coordToPoint([g+a,r]);var m=n.cx,v=n.cy;u=Math.abs(l[0]-m)/g<.3?"center":l[0]>m?"left":"right",h=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:h}}function ux(t,e){e.update="updateView",ou(e,function(e,i){var n={};return i.eachComponent({mainType:"geo",query:e},function(i){i[t](e.name);var a=i.coordinateSystem;f(a.regions,function(t){n[t.name]=i.isSelected(t.name)||!1})}),{selected:n,name:e.name}})}function hx(t){this._model=t}function cx(t,e,i,n){var a=i.calendarModel,o=i.seriesModel,r=a?a.coordinateSystem:o?o.coordinateSystem:null;return r===this?r[t](n):null}function dx(t,e){var i=t.cellSize;_(i)?1===i.length&&(i[1]=i[0]):i=t.cellSize=[i,i];var n=p([0,1],function(t){return kr(e,t)&&(i[t]="auto"),null!=i[t]&&"auto"!==i[t]});Pr(t,e,{type:"box",ignoreSize:n})}function fx(t,e,i){var n,a={},o="toggleSelected"===t;return i.eachComponent("legend",function(i){o&&null!=n?i[n?"select":"unSelect"](e.name):(i[t](e.name),n=i.isSelected(e.name));var r=i.getData();f(r,function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isSelected(e);a[e]=a.hasOwnProperty(e)?a[e]&&n:n}})}),{name:e.name,selected:a}}function px(t,e,i){var n=e.getBoxLayoutParams(),a=e.get("padding"),o={width:i.getWidth(),height:i.getHeight()},r=Cr(n,o,a);$T(e.get("orient"),t,e.get("itemGap"),r.width,r.height),Lr(t,n,o,a)}function gx(t,e){var i=FT(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var t=new hT({shape:{x:t.x-i[3],y:t.y-i[0],width:t.width+i[1]+i[3],height:t.height+i[0]+i[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return t}function mx(t,e){e.dispatchAction({type:"legendToggleSelect",name:t})}function vx(t,e,i,n){var a=i.getZr().storage.getDisplayList()[0];a&&a.useHoverLayer||i.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function yx(t,e,i,n){var a=i.getZr().storage.getDisplayList()[0];a&&a.useHoverLayer||i.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function xx(t,e,i){var n=t.getOrient(),a=[1,1];a[n.index]=0,Pr(e,i,{type:"box",ignoreSize:a})}function _x(t){var e="cubic-bezier(0.23, 1, 0.32, 1)",i="left "+t+"s "+e+",top "+t+"s "+e;return p(LN,function(t){return t+"transition:"+i}).join(";")}function bx(t){var e=[],i=t.get("fontSize"),n=t.getTextColor();return n&&e.push("color:"+n),e.push("font:"+t.getFont()),i&&e.push("line-height:"+Math.round(3*i/2)+"px"),DN(["decoration","align"],function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)}),e.join(";")}function Sx(t){var e=[],i=t.get("transitionDuration"),n=t.get("backgroundColor"),a=t.getModel("textStyle"),o=t.get("padding");return i&&e.push(_x(i)),n&&(Lb.canvasSupported?e.push("background-Color:"+n):(e.push("background-Color:#"+Ke(n)),e.push("filter:alpha(opacity=70)"))),DN(["width","color","radius"],function(i){var n="border-"+i,a=CN(n),o=t.get(a);null!=o&&e.push(n+":"+o+("color"===i?"":"px"))}),e.push(bx(a)),null!=o&&e.push("padding:"+FT(o).join("px ")+"px"),e.join(";")+";"}function Mx(t,e){if(Lb.wxa)return null;var i=document.createElement("div"),n=this._zr=e.getZr();this.el=i,this._x=e.getWidth()/2,this._y=e.getHeight()/2,t.appendChild(i),this._container=t,this._show=!1,this._hideTimeout;var a=this;i.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},i.onmousemove=function(e){if(e=e||window.event,!a._enterable){var i=n.handler;ge(t,e,!0),i.dispatch("mousemove",e)}},i.onmouseleave=function(){a._enterable&&a._show&&a.hideLater(a._hideDelay),a._inContent=!1}}function Ix(t){this._zr=t.getZr(),this._show=!1,this._hideTimeout}function Tx(t){for(var e=t.pop();t.length;){var i=t.pop();i&&(Xo.isInstance(i)&&(i=i.get("tooltip",!0)),"string"==typeof i&&(i={formatter:i}),e=new Xo(i,e,e.ecModel))}return e}function Ax(t,e){return t.dispatchAction||y(e.dispatchAction,e)}function Dx(t,e,i,n,a,o,r){var s=i.getOuterSize(),l=s.width,u=s.height;return null!=o&&(t+l+o>n?t-=l+o:t+=o),null!=r&&(e+u+r>a?e-=u+r:e+=r),[t,e]}function Cx(t,e,i,n,a){var o=i.getOuterSize(),r=o.width,s=o.height;return t=Math.min(t+r,n)-r,e=Math.min(e+s,a)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function Lx(t,e,i){var n=i[0],a=i[1],o=5,r=0,s=0,l=e.width,u=e.height;switch(t){case"inside":r=e.x+l/2-n/2,s=e.y+u/2-a/2;break;case"top":r=e.x+l/2-n/2,s=e.y-a-o;break;case"bottom":r=e.x+l/2-n/2,s=e.y+u+o;break;case"left":r=e.x-n-o,s=e.y+u/2-a/2;break;case"right":r=e.x+l+o,s=e.y+u/2-a/2}return[r,s]}function kx(t){return"center"===t||"middle"===t}function Px(t){Vn(t,"label",["show"])}function Ox(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function Ex(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function Rx(t,e,i,n,a,o){var r=[],s=Wu(e,n),l=s?e.getCalculationInfo("stackResultDimension"):n,u=Fx(e,l,t),h=e.indicesOfNearest(l,u)[0];r[a]=e.get(i,h),r[o]=e.get(n,h);var c=nr(e.get(n,h));return c=Math.min(c,20),c>=0&&(r[o]=+r[o].toFixed(c)),r}function Nx(t,e){var i=t.getData(),a=t.coordinateSystem;if(e&&!Ex(e)&&!_(e.coord)&&a){var o=a.dimensions,r=zx(e,i,a,t);if(e=n(e),e.type&&FN[e.type]&&r.baseAxis&&r.valueAxis){var s=VN(o,r.baseAxis.dim),l=VN(o,r.valueAxis.dim);e.coord=FN[e.type](i,r.baseDataDim,r.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++)FN[u[h]]&&(u[h]=Fx(i,i.mapDimension(o[h]),u[h]));e.coord=u}}return e}function zx(t,e,i,n){var a={};return null!=t.valueIndex||null!=t.valueDim?(a.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,a.valueAxis=i.getAxis(Bx(n,a.valueDataDim)),a.baseAxis=i.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=i.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function Bx(t,e){var i=t.getData(),n=i.dimensions;e=i.getDimension(e);for(var a=0;a<n.length;a++){var o=i.getDimensionInfo(n[a]);if(o.name===e)return o.coordDim}}function Vx(t,e){return t&&t.containData&&e.coord&&!Ox(e)?t.containData(e.coord):!0}function Gx(t,e,i,n){return 2>n?t.coord&&t.coord[n]:t.value}function Fx(t,e,i){if("average"===i){var n=0,a=0;return t.each(e,function(t){isNaN(t)||(n+=t,a++)}),n/a}return"median"===i?t.getMedian(e):t.getDataExtent(e,!0)["max"===i?1:0]}function Wx(t,e,i){var n=e.coordinateSystem;t.each(function(a){var o,r=t.getItemModel(a),s=tr(r.get("x"),i.getWidth()),l=tr(r.get("y"),i.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,a));else if(n){var u=t.get(n.dimensions[0],a),h=t.get(n.dimensions[1],a);o=n.dataToPoint([u,h])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(a,o)})}function Hx(t,e,i){var n;n=t?p(t&&t.dimensions,function(t){var i=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return s({name:t},i)}):[{name:"value",type:"float"}];var a=new _C(n,i),o=p(i.get("data"),x(Nx,e));return t&&(o=m(o,x(Vx,t))),a.initData(o,null,t?Gx:function(t){return t.value}),a}function Zx(t){return!isNaN(t)&&!isFinite(t)}function Ux(t,e,i,n){var a=1-t,o=n.dimensions[t];return Zx(e[a])&&Zx(i[a])&&e[t]===i[t]&&n.getAxis(o).containData(e[t])}function Xx(t,e){if("cartesian2d"===t.type){var i=e[0].coord,n=e[1].coord;if(i&&n&&(Ux(1,i,n,t)||Ux(0,i,n,t)))return!0}return Vx(t,e[0])&&Vx(t,e[1])}function Yx(t,e,i,n,a){var o,r=n.coordinateSystem,s=t.getItemModel(e),l=tr(s.get("x"),a.getWidth()),u=tr(s.get("y"),a.getHeight());if(isNaN(l)||isNaN(u)){if(n.getMarkerPosition)o=n.getMarkerPosition(t.getValues(t.dimensions,e));else{var h=r.dimensions,c=t.get(h[0],e),d=t.get(h[1],e);o=r.dataToPoint([c,d])}if("cartesian2d"===r.type){var f=r.getAxis("x"),p=r.getAxis("y"),h=r.dimensions;Zx(t.get(h[0],e))?o[0]=f.toGlobalCoord(f.getExtent()[i?0:1]):Zx(t.get(h[1],e))&&(o[1]=p.toGlobalCoord(p.getExtent()[i?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}function jx(t,e,i){var n;n=t?p(t&&t.dimensions,function(t){var i=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return s({name:t},i)}):[{name:"value",type:"float"}];var a=new _C(n,i),o=new _C(n,i),r=new _C([],i),l=p(i.get("data"),x(HN,e,t,i));t&&(l=m(l,x(Xx,t)));var u=t?Gx:function(t){return t.value};return a.initData(p(l,function(t){return t[0]}),null,u),o.initData(p(l,function(t){return t[1]}),null,u),r.initData(p(l,function(t){return t[2]})),r.hasItemOption=!0,{from:a,to:o,line:r}}function qx(t){return!isNaN(t)&&!isFinite(t)}function Kx(t,e,i){var n=1-t;return qx(e[n])&&qx(i[n])}function $x(t,e){var i=e.coord[0],n=e.coord[1];return"cartesian2d"===t.type&&i&&n&&(Kx(1,i,n,t)||Kx(0,i,n,t))?!0:Vx(t,{coord:i,x:e.x0,y:e.y0})||Vx(t,{coord:n,x:e.x1,y:e.y1})}function Jx(t,e,i,n,a){var o,r=n.coordinateSystem,s=t.getItemModel(e),l=tr(s.get(i[0]),a.getWidth()),u=tr(s.get(i[1]),a.getHeight());if(isNaN(l)||isNaN(u)){if(n.getMarkerPosition)o=n.getMarkerPosition(t.getValues(i,e));else{var h=t.get(i[0],e),c=t.get(i[1],e),d=[h,c];r.clampData&&r.clampData(d,d),o=r.dataToPoint(d,!0)}if("cartesian2d"===r.type){var f=r.getAxis("x"),p=r.getAxis("y"),h=t.get(i[0],e),c=t.get(i[1],e);qx(h)?o[0]=f.toGlobalCoord(f.getExtent()["x0"===i[0]?0:1]):qx(c)&&(o[1]=p.toGlobalCoord(p.getExtent()["y0"===i[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}function Qx(t,e,i){var n,a,o=["x0","y0","x1","y1"];t?(n=p(t&&t.dimensions,function(t){var i=e.getData(),n=i.getDimensionInfo(i.mapDimension(t))||{};return s({name:t},n)}),a=new _C(p(o,function(t,e){return{name:t,type:n[e%2].type}}),i)):(n=[{name:"value",type:"float"}],a=new _C(n,i));var r=p(i.get("data"),x(ZN,e,t,i));t&&(r=m(r,x($x,t)));var l=t?function(t,e,i,n){return t.coord[Math.floor(n/2)][n%2]}:function(t){return t.value};return a.initData(r,null,l),a.hasItemOption=!0,a}function t_(t){var e=t.type,i={number:"value",time:"time"};if(i[e]&&(t.axisType=i[e],delete t.type),e_(t),i_(t,"controlPosition")){var n=t.controlStyle||(t.controlStyle={});i_(n,"position")||(n.position=t.controlPosition),"none"!==n.position||i_(n,"show")||(n.show=!1,delete n.position),delete t.controlPosition}f(t.data||[],function(t){S(t)&&!_(t)&&(!i_(t,"value")&&i_(t,"name")&&(t.value=t.name),e_(t))})}function e_(t){var e=t.itemStyle||(t.itemStyle={}),i=e.emphasis||(e.emphasis={}),n=t.label||t.label||{},a=n.normal||(n.normal={}),o={normal:1,emphasis:1};f(n,function(t,e){o[e]||i_(a,e)||(a[e]=t)}),i.label&&!i_(n,"emphasis")&&(n.emphasis=i.label,delete i.label)}function i_(t,e){return t.hasOwnProperty(e)}function n_(t,e){return Cr(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function a_(t,e,i,a){var o=no(t.get(e).replace(/^path:\/\//,""),n(a||{}),new yi(i[0],i[1],i[2],i[3]),"center");return o}function o_(t,e,i,n,o,r){var s=e.get("color");if(o)o.setColor(s),i.add(o),r&&r.onUpdate(o);else{var l=t.get("symbol");o=Th(l,-1,-1,2,2,s),o.setStyle("strokeNoScale",!0),i.add(o),r&&r.onCreate(o)}var u=e.getItemStyle(["color","symbol","symbolSize"]);o.setStyle(u),n=a({rectHover:!0,z2:100},n,!0);var h=t.get("symbolSize");h=h instanceof Array?h.slice():[+h,+h],h[0]/=2,h[1]/=2,n.scale=h;var c=t.get("symbolOffset");if(c){var d=n.position=n.position||[0,0];d[0]+=tr(c[0],h[0]),d[1]+=tr(c[1],h[1])}var f=t.get("symbolRotate");return n.rotation=(f||0)*Math.PI/180||0,o.attr(n),o.updateTransform(),o}function r_(t,e,i,n,a){if(!t.dragging){var o=n.getModel("checkpointStyle"),r=i.dataToCoord(n.getData().get(["value"],e));a||!o.get("animation",!0)?t.attr({position:[r,0]}):(t.stopAnimation(!0),t.animateTo({position:[r,0]},o.get("animationDuration",!0),o.get("animationEasing",!0)))}}function s_(t){return u(ez,t)>=0}function l_(t,e){t=t.slice();var i=p(t,Mr);e=(e||[]).slice();var n=p(e,Mr);return function(a,o){f(t,function(t,r){for(var s={name:t,capital:i[r]},l=0;l<e.length;l++)s[e[l]]=t+n[l];a.call(o,s)})}}function u_(t,e,i){function n(t,e){return u(e.nodes,t)>=0}function a(t,n){var a=!1;return e(function(e){f(i(t,e)||[],function(t){n.records[e.name][t]&&(a=!0)})}),a}function o(t,n){n.nodes.push(t),e(function(e){f(i(t,e)||[],function(t){n.records[e.name][t]=!0})})}return function(i){function r(t){!n(t,s)&&a(t,s)&&(o(t,s),l=!0)}var s={nodes:[],records:{}};if(e(function(t){s.records[t.name]={}}),!i)return s;o(i,s);var l;do l=!1,t(r);while(l);return s}}function h_(t,e,i){var n=[1/0,-1/0];return nz(i,function(t){var i=t.getData();i&&nz(i.mapDimension(e,!0),function(t){var e=i.getApproximateExtent(t);e[0]<n[0]&&(n[0]=e[0]),e[1]>n[1]&&(n[1]=e[1])})}),n[1]<n[0]&&(n=[0/0,0/0]),c_(t,n),n}function c_(t,e){var i=t.getAxisModel(),n=i.getMin(!0),a="category"===i.get("type"),o=a&&i.getCategories().length;null!=n&&"dataMin"!==n&&"function"!=typeof n?e[0]=n:a&&(e[0]=o>0?0:0/0);var r=i.getMax(!0);return null!=r&&"dataMax"!==r&&"function"!=typeof r?e[1]=r:a&&(e[1]=o>0?o-1:0/0),i.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0)),e}function d_(t,e){var i=t.getAxisModel(),n=t._percentWindow,a=t._valueWindow;if(n){var o=or(a,[0,500]);o=Math.min(o,20);var r=e||0===n[0]&&100===n[1];i.setRange(r?null:+a[0].toFixed(o),r?null:+a[1].toFixed(o))}}function f_(t){var e=t._minMaxSpan={},i=t._dataZoomModel;nz(["min","max"],function(n){e[n+"Span"]=i.get(n+"Span");var a=i.get(n+"ValueSpan");if(null!=a&&(e[n+"ValueSpan"]=a,a=t.getAxisModel().axis.scale.parse(a),null!=a)){var o=t._dataExtent;e[n+"Span"]=Qo(o[0]+a,o,[0,100],!0)}})}function p_(t){var e={};return rz(["start","end","startValue","endValue","throttle"],function(i){t.hasOwnProperty(i)&&(e[i]=t[i])}),e}function g_(t,e){var i=t._rangePropMode,n=t.get("rangeMode");rz([["start","startValue"],["end","endValue"]],function(t,a){var o=null!=e[t[0]],r=null!=e[t[1]];o&&!r?i[a]="percent":!o&&r?i[a]="value":n?i[a]=n[a]:o&&(i[a]="percent")})}function m_(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function v_(t){return"vertical"===t?"ns-resize":"ew-resize"}function y_(t,e){var i=w_(t),n=e.dataZoomId,a=e.coordId;f(i,function(t){var i=t.dataZoomInfos;i[n]&&u(e.allCoordIds,a)<0&&(delete i[n],t.count--)}),S_(i);var o=i[a];o||(o=i[a]={coordId:a,dataZoomInfos:{},count:0},o.controller=b_(t,o),o.dispatchAction=x(M_,t)),!o.dataZoomInfos[n]&&o.count++,o.dataZoomInfos[n]=e;var r=I_(o.dataZoomInfos);o.controller.enable(r.controlType,r.opt),o.controller.setPointerChecker(e.containsPoint),Js(o,"dispatchAction",e.dataZoomModel.get("throttle",!0),"fixRate")
}function x_(t,e){var i=w_(t);f(i,function(t){t.controller.dispose();var i=t.dataZoomInfos;i[e]&&(delete i[e],t.count--)}),S_(i)}function __(t){return t.type+"\x00_"+t.id}function w_(t){var e=t.getZr();return e[Sz]||(e[Sz]={})}function b_(t,e){var i=new _f(t.getZr());return f(["pan","zoom","scrollMove"],function(t){i.on(t,function(i){var n=[];f(e.dataZoomInfos,function(a){if(i.isAvailableBehavior(a.dataZoomModel.option)){var o=(a.getRange||{})[t],r=o&&o(e.controller,i);!a.dataZoomModel.get("disabled",!0)&&r&&n.push({dataZoomId:a.dataZoomId,start:r[0],end:r[1]})}}),n.length&&e.dispatchAction(n)})}),i}function S_(t){f(t,function(e,i){e.count||(e.controller.dispose(),delete t[i])})}function M_(t,e){t.dispatchAction({type:"dataZoom",batch:e})}function I_(t){var e,i="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return f(t,function(t){var o=t.dataZoomModel,r=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[i+r]>n[i+e]&&(e=r),a&=o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function T_(t){return function(e,i,n,a){var o=this._range,r=o.slice(),s=e.axisModels[0];if(s){var l=t(r,s,e,i,n,a);return bE(l,r,[0,100],"all"),this._range=r,o[0]!==r[0]||o[1]!==r[1]?r:void 0}}}function A_(t){var e={};f(t,function(t){e[t]=1}),t.length=0,f(e,function(e,i){t.push(i)})}function D_(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function C_(t,e,i){function a(){var t=function(){};t.prototype.__hidden=t.prototype;var e=new t;return e}var o={};return Lz(e,function(e){var r=o[e]=a();Lz(t[e],function(t,a){if(DP.isValidType(a)){var o={type:a,visual:t};i&&i(o,e),r[a]=new DP(o),"opacity"===a&&(o=n(o),o.type="colorAlpha",r.__hidden.__alphaForOpacity=new DP(o))}})}),o}function L_(t,e,i){var a;f(i,function(t){e.hasOwnProperty(t)&&D_(e[t])&&(a=!0)}),a&&f(i,function(i){e.hasOwnProperty(i)&&D_(e[i])?t[i]=n(e[i]):delete t[i]})}function k_(t,e,i,n,a,o){function r(t){return i.getItemVisual(h,t)}function s(t,e){i.setItemVisual(h,t,e)}function l(t,l){h=null==o?t:l;var c=i.getRawDataItem(h);if(!c||c.visualMap!==!1)for(var d=n.call(a,t),f=e[d],p=u[d],g=0,m=p.length;m>g;g++){var v=p[g];f[v]&&f[v].applyVisual(t,r,s)}}var u={};f(t,function(t){var i=DP.prepareVisualTypes(e[t]);u[t]=i});var h;null==o?i.each(l):i.each([o],l)}function P_(t,e,i,n){function a(t,a){function r(t){return a.getItemVisual(l,t)}function s(t,e){a.setItemVisual(l,t,e)}null!=n&&(n=a.getDimension(n));for(var l;null!=(l=t.next());){var u=a.getRawDataItem(l);if(!u||u.visualMap!==!1)for(var h=null!=n?a.get(n,l,!0):l,c=i(h),d=e[c],f=o[c],p=0,g=f.length;g>p;p++){var m=f[p];d[m]&&d[m].applyVisual(h,r,s)}}}var o={};return f(t,function(t){var i=DP.prepareVisualTypes(e[t]);o[t]=i}),{progress:a}}function O_(t){var e=["x","y"],i=["width","height"];return{point:function(e,i,n){if(e){var a=n.range,o=e[t];return E_(o,a)}},rect:function(n,a,o){if(n){var r=o.range,s=[n[e[t]],n[e[t]]+n[i[t]]];return s[1]<s[0]&&s.reverse(),E_(s[0],r)||E_(s[1],r)||E_(r[0],s)||E_(r[1],s)}}}}function E_(t,e){return e[0]<=t&&t<=e[1]}function R_(t,e,i,n,a){for(var o=0,r=a[a.length-1];o<a.length;o++){var s=a[o];if(N_(t,e,i,n,s[0],s[1],r[0],r[1]))return!0;r=s}}function N_(t,e,i,n,a,o,r,s){var l=B_(i-t,a-r,n-e,o-s);if(z_(l))return!1;var u=B_(a-t,a-r,o-e,o-s)/l;if(0>u||u>1)return!1;var h=B_(i-t,a-t,n-e,o-e)/l;return 0>h||h>1?!1:!0}function z_(t){return 1e-6>=t&&t>=-1e-6}function B_(t,e,i,n){return t*n-e*i}function V_(t,e,i){var n=this._targetInfoList=[],a={},o=F_(e,t);Pz(Bz,function(t,e){(!i||!i.include||Oz(i.include,e)>=0)&&t(o,n,a)})}function G_(t){return t[0]>t[1]&&t.reverse(),t}function F_(t,e){return qn(t,e,{includeMainTypes:Nz})}function W_(t,e,i,n){var a=i.getAxis(["x","y"][t]),o=G_(p([0,1],function(t){return e?a.coordToData(a.toLocalCoord(n[t])):a.toGlobalCoord(a.dataToCoord(n[t]))})),r=[];return r[t]=o,r[1-t]=[0/0,0/0],{values:o,xyMinMax:r}}function H_(t,e,i,n){return[e[0]-n[t]*i[0],e[1]-n[t]*i[1]]}function Z_(t,e){var i=U_(t),n=U_(e),a=[i[0]/n[0],i[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function U_(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[0/0,0/0]}function X_(t,e,i,n,a){if(a){var o=t.getZr();if(!o[Uz]){o[Zz]||(o[Zz]=Y_);var r=Js(o,Zz,i,e);r(t,n)}}}function Y_(t,e){if(!t.isDisposed()){var i=t.getZr();i[Uz]=!0,t.dispatchAction({type:"brushSelect",batch:e}),i[Uz]=!1}}function j_(t,e,i,n){for(var a=0,o=e.length;o>a;a++){var r=e[a];if(t[r.brushType](n,i,r.selectors,r))return!0}}function q_(t){var e=t.brushSelector;if(b(e)){var i=[];return f(kz,function(t,n){i[n]=function(i,n,a,o){var r=n.getItemLayout(i);return t[e](r,a,o)}}),i}if(w(e)){var n={};return f(kz,function(t,i){n[i]=e}),n}return e}function K_(t,e){var i=t.option.seriesIndex;return null!=i&&"all"!==i&&(_(i)?u(i,e)<0:e!==i)}function $_(t){var e=t.selectors={};return f(kz[t.brushType],function(i,n){e[n]=function(n){return i(n,e,t)}}),t}function J_(t){return new yi(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}function Q_(t,e){return a({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Xo(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}function tw(t,e,i,n){(!n||n.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(i)).enableBrush(t.brushOption).updateCovers(t.areas.slice())}function ew(t,e){qz[t]=e}function iw(t){return qz[t]}function nw(t,e,i){this.model=t,this.ecModel=e,this.api=i,this._brushType,this._brushMode}function aw(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}function ow(t,e,i,n){function a(t){return l[t]}function o(t,e){l[t]=e}for(var r=e.targetVisuals[n],s=DP.prepareVisualTypes(r),l={color:t.getData().getVisual("color")},u=0,h=s.length;h>u;u++){var c=s[u],d=r["opacity"===c?"__alphaForOpacity":c];d&&d.applyVisual(i,a,o)}return l.color}function rw(t,e,i){if(i[0]===i[1])return i.slice();for(var n=200,a=(i[1]-i[0])/n,o=i[0],r=[],s=0;n>=s&&o<i[1];s++)r.push(o),o+=a;return r.push(i[1]),r}function sw(t,e,i){var n=t.option,a=n.align;if(null!=a&&"auto"!==a)return a;for(var o={width:e.getWidth(),height:e.getHeight()},r="horizontal"===n.orient?1:0,s=[["left","right","width"],["top","bottom","height"]],l=s[r],u=[0,null,10],h={},c=0;3>c;c++)h[s[1-r][c]]=u[c],h[l[c]]=2===c?i[0]:n[l[c]];var d=[["x","width",3],["y","height",0]][r],f=Cr(h,o,n.padding);return l[(f.margin[d[2]]||0)+f[d[0]]+.5*f[d[1]]<.5*o[d[1]]?0:1]}function lw(t){return f(t||[],function(){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null)}),t}function uw(t,e,i,n){return new rT({shape:{points:t},draggable:!!i,cursor:e,drift:i,onmousemove:function(t){eS(t.event)},ondragend:n})}function hw(t,e){return 0===t?[[0,0],[e,0],[e,-e]]:[[0,0],[e,0],[e,e]]}function cw(t,e,i,n){return t?[[0,-mB(e,vB(i,0))],[xB,0],[0,mB(e,vB(n-i,0))]]:[[0,0],[5,-5],[5,5]]}function dw(t,e,i){var n=yB/2,a=t.get("hoverLinkDataSize");return a&&(n=pB(a,e,i,!0)/2),n}function fw(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function pw(t){return"vertical"===t?"ns-resize":"ew-resize"}function gw(t,e){var i=t.inverse;("vertical"===t.orient?!i:i)&&e.reverse()}function mw(t){return 0===t.indexOf("my")}function vw(t){this.model=t}function yw(t){this.model=t}function xw(t){var e={},i=[],n=[];return t.eachRawSeries(function(t){var a=t.coordinateSystem;if(!a||"cartesian2d"!==a.type&&"polar"!==a.type)i.push(t);else{var o=a.getBaseAxis();if("category"===o.type){var r=o.dim+"_"+o.index;e[r]||(e[r]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[r].series.push(t)}else i.push(t)}}),{seriesGroupByCategoryAxis:e,other:i,meta:n}}function _w(t){var e=[];return f(t,function(t){var i=t.categoryAxis,n=t.valueAxis,a=n.dim,o=[" "].concat(p(t.series,function(t){return t.name})),r=[i.model.getCategories()];f(t.series,function(t){r.push(t.getRawData().mapArray(a,function(t){return t}))});for(var s=[o.join(OB)],l=0;l<r[0].length;l++){for(var u=[],h=0;h<r.length;h++)u.push(r[h][l]);s.push(u.join(OB))}e.push(s.join("\n"))}),e.join("\n\n"+PB+"\n\n")}function ww(t){return p(t,function(t){var e=t.getRawData(),i=[t.name],n=[];return e.each(e.dimensions,function(){for(var t=arguments.length,a=arguments[t-1],o=e.getName(a),r=0;t-1>r;r++)n[r]=arguments[r];i.push((o?o+OB:"")+n.join(OB))}),i.join("\n")}).join("\n\n"+PB+"\n\n")}function bw(t){var e=xw(t);return{value:m([_w(e.seriesGroupByCategoryAxis),ww(e.other)],function(t){return t.replace(/[\n\t\s]/g,"")}).join("\n\n"+PB+"\n\n"),meta:e.meta}}function Sw(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Mw(t){var e=t.slice(0,t.indexOf("\n"));return e.indexOf(OB)>=0?!0:void 0}function Iw(t){for(var e=t.split(/\n+/g),i=Sw(e.shift()).split(EB),n=[],a=p(i,function(t){return{name:t,data:[]}}),o=0;o<e.length;o++){var r=Sw(e[o]).split(EB);n.push(r.shift());for(var s=0;s<r.length;s++)a[s]&&(a[s].data[o]=r[s])}return{series:a,categories:n}}function Tw(t){for(var e=t.split(/\n+/g),i=Sw(e.shift()),n=[],a=0;a<e.length;a++){var o,r=Sw(e[a]).split(EB),s="",l=!1;isNaN(r[0])?(l=!0,s=r[0],r=r.slice(1),n[a]={name:s,value:[]},o=n[a].value):o=n[a]=[];for(var u=0;u<r.length;u++)o.push(+r[u]);1===o.length&&(l?n[a].value=o[0]:n[a]=o[0])}return{name:i,data:n}}function Aw(t,e){var i=t.split(new RegExp("\n*"+PB+"\n*","g")),n={series:[]};return f(i,function(t,i){if(Mw(t)){var a=Iw(t),o=e[i],r=o.axisDim+"Axis";o&&(n[r]=n[r]||[],n[r][o.axisIndex]={data:a.categories},n.series=n.series.concat(a.series))}else{var a=Tw(t);n.series.push(a)}}),n}function Dw(t){this._dom=null,this.model=t}function Cw(t,e){return p(t,function(t,i){var n=e&&e[i];return S(n)&&!_(n)?(S(t)&&!_(t)&&(t=t.value),s({value:t},n)):t})}function Lw(t,e){var i=Ew(t);RB(e,function(e,n){for(var a=i.length-1;a>=0;a--){var o=i[a];if(o[n])break}if(0>a){var r=t.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(r){var s=r.getPercentRange();i[0][n]={dataZoomId:n,start:s[0],end:s[1]}}}}),i.push(e)}function kw(t){var e=Ew(t),i=e[e.length-1];e.length>1&&e.pop();var n={};return RB(i,function(t,i){for(var a=e.length-1;a>=0;a--){var t=e[a][i];if(t){n[i]=t;break}}}),n}function Pw(t){t[NB]=null}function Ow(t){return Ew(t).length}function Ew(t){var e=t[NB];return e||(e=t[NB]=[{}]),e}function Rw(t,e,i){(this._brushController=new Xg(i.getZr())).on("brush",y(this._onBrush,this)).mount(),this._isZoomActive}function Nw(t){var e={};return f(["xAxisIndex","yAxisIndex"],function(i){e[i]=t[i],null==e[i]&&(e[i]="all"),(e[i]===!1||"none"===e[i])&&(e[i]=[])}),e}function zw(t,e){t.setIconStatus("back",Ow(e)>1?"emphasis":"normal")}function Bw(t,e,i,n,a){var o=i._isZoomActive;n&&"takeGlobalCursor"===n.type&&(o="dataZoomSelect"===n.key?n.dataZoomSelectActive:!1),i._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var r=new V_(Nw(t.option),e,{include:["grid"]});i._brushController.setPanels(r.makePanelOpts(a,function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"})).enableBrush(o?{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}}:!1)}function Vw(t){this.model=t}function Gw(t,e,i,n){var a=i.type,o=CT[a.charAt(0).toUpperCase()+a.slice(1)],r=new o(i);e.add(r),n.set(t,r),r.__ecGraphicId=t}function Fw(t,e){var i=t&&t.parent;i&&("group"===t.type&&t.traverse(function(t){Fw(t,e)}),e.removeKey(t.__ecGraphicId),i.remove(t))}function Ww(t){return t=r({},t),f(["id","parentId","$action","hv","bounding"].concat(qT),function(e){delete t[e]}),t}function Hw(t,e){var i;return f(e,function(e){null!=t[e]&&"auto"!==t[e]&&(i=!0)}),i}function Zw(t,e){var i=t.exist;if(e.id=t.keyInfo.id,!e.type&&i&&(e.type=i.type),null==e.parentId){var n=e.parentOption;n?e.parentId=n.id:i&&(e.parentId=i.parentId)}e.parentOption=null}function Uw(t,e,i){var n=r({},i),o=t[e],s=i.$action||"merge";"merge"===s?o?(a(o,n,!0),Pr(o,n,{ignoreSize:!0}),Er(i,o)):t[e]=n:"replace"===s?t[e]=n:"remove"===s&&o&&(t[e]=null)}function Xw(t,e){t&&(t.hv=e.hv=[Hw(e,["left","right"]),Hw(e,["top","bottom"])],"group"===t.type&&(null==t.width&&(t.width=e.width=0),null==t.height&&(t.height=e.height=0)))}function Yw(t,e){var i=t.eventData;t.silent||t.ignore||i||(i=t.eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=t.info)}function jw(t){return UB(t)}function qw(){if(!jB&&qB){jB=!0;var t=qB.styleSheets;t.length<31?qB.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}}function Kw(t){return parseInt(t,10)}function $w(t,e){qw(),this.root=t,this.storage=e;var i=document.createElement("div"),n=document.createElement("div");i.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",n.style.cssText="position:absolute;left:0;top:0;",t.appendChild(i),this._vmlRoot=n,this._vmlViewport=i,this.resize();var a=e.delFromStorage,o=e.addToStorage;e.delFromStorage=function(t){a.call(e,t),t&&t.onRemove&&t.onRemove(n)},e.addToStorage=function(t){t.onAdd&&t.onAdd(n),o.call(e,t)},this._firstPaint=!0}function Jw(t){return function(){ES('In IE8.0 VML mode painter not support method "'+t+'"')}}function Qw(t){return document.createElementNS(VV,t)}function tb(t){return HV(1e4*t)/1e4}function eb(t){return qV>t&&t>-qV}function ib(t,e){var i=e?t.textFill:t.fill;return null!=i&&i!==WV}function nb(t,e){var i=e?t.textStroke:t.stroke;return null!=i&&i!==WV}function ab(t,e){e&&ob(t,"transform","matrix("+FV.call(e,",")+")")}function ob(t,e,i){(!i||"linear"!==i.type&&"radial"!==i.type)&&t.setAttribute(e,i)}function rb(t,e,i){t.setAttributeNS("http://www.w3.org/1999/xlink",e,i)}function sb(t,e,i,n){if(ib(e,i)){var a=i?e.textFill:e.fill;a="transparent"===a?WV:a,"none"!==t.getAttribute("clip-path")&&a===WV&&(a="rgba(0, 0, 0, 0.002)"),ob(t,"fill",a),ob(t,"fill-opacity",null!=e.fillOpacity?e.fillOpacity*e.opacity:e.opacity)}else ob(t,"fill",WV);if(nb(e,i)){var o=i?e.textStroke:e.stroke;o="transparent"===o?WV:o,ob(t,"stroke",o);var r=i?e.textStrokeWidth:e.lineWidth,s=!i&&e.strokeNoScale?n.getLineScale():1;ob(t,"stroke-width",r/s),ob(t,"paint-order",i?"stroke":"fill"),ob(t,"stroke-opacity",null!=e.strokeOpacity?e.strokeOpacity:e.opacity);var l=e.lineDash;l?(ob(t,"stroke-dasharray",e.lineDash.join(",")),ob(t,"stroke-dashoffset",HV(e.lineDashOffset||0))):ob(t,"stroke-dasharray",""),e.lineCap&&ob(t,"stroke-linecap",e.lineCap),e.lineJoin&&ob(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&ob(t,"stroke-miterlimit",e.miterLimit)}else ob(t,"stroke",WV)}function lb(t){for(var e=[],i=t.data,n=t.len(),a=0;n>a;){var o=i[a++],r="",s=0;switch(o){case GV.M:r="M",s=2;break;case GV.L:r="L",s=2;break;case GV.Q:r="Q",s=4;break;case GV.C:r="C",s=6;break;case GV.A:var l=i[a++],u=i[a++],h=i[a++],c=i[a++],d=i[a++],f=i[a++],p=i[a++],g=i[a++],m=Math.abs(f),v=eb(m-YV)&&!eb(m),y=!1;y=m>=YV?!0:eb(m)?!1:(f>-XV&&0>f||f>XV)==!!g;var x=tb(l+h*UV(d)),_=tb(u+c*ZV(d));v&&(f=g?YV-1e-4:-YV+1e-4,y=!0,9===a&&e.push("M",x,_));var w=tb(l+h*UV(d+f)),b=tb(u+c*ZV(d+f));e.push("A",tb(h),tb(c),HV(p*jV),+y,+g,w,b);break;case GV.Z:r="Z";break;case GV.R:var w=tb(i[a++]),b=tb(i[a++]),S=tb(i[a++]),M=tb(i[a++]);e.push("M",w,b,"L",w+S,b,"L",w+S,b+M,"L",w,b+M,"L",w,b)}r&&e.push(r);for(var I=0;s>I;I++)e.push(tb(i[a++]))}return e.join(" ")}function ub(t){return"middle"===t?"middle":"bottom"===t?"after-edge":"hanging"}function hb(){}function cb(t,e){for(var i=0,n=e.length,a=0,o=0;n>i;i++){var r=e[i];if(r.removed){for(var s=[],l=o;l<o+r.count;l++)s.push(l);r.indices=s,o+=r.count}else{for(var s=[],l=a;l<a+r.count;l++)s.push(l);r.indices=s,a+=r.count,r.added||(o+=r.count)}}return e}function db(t){return{newPos:t.newPos,components:t.components.slice(0)}}function fb(t,e,i,n,a){this._zrId=t,this._svgRoot=e,this._tagNames="string"==typeof i?[i]:i,this._markLabel=n,this._domName=a||"_dom",this.nextId=0}function pb(t,e){fb.call(this,t,e,["linearGradient","radialGradient"],"__gradient_in_use__")}function gb(t,e){fb.call(this,t,e,"clipPath","__clippath_in_use__")}function mb(t,e){fb.call(this,t,e,["filter"],"__filter_in_use__","_shadowDom")}function vb(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY||t.textShadowBlur||t.textShadowOffsetX||t.textShadowOffsetY)}function yb(t){return parseInt(t,10)}function xb(t){return t instanceof Fa?KV:t instanceof wn?$V:t instanceof JI?JV:KV}function _b(t,e){return e&&t&&e.parentNode!==t}function wb(t,e,i){if(_b(t,e)&&i){var n=i.nextSibling;n?t.insertBefore(e,n):t.appendChild(e)}}function bb(t,e){if(_b(t,e)){var i=t.firstChild;i?t.insertBefore(e,i):t.appendChild(e)}}function Sb(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)}function Mb(t){return t.__textSvgEl}function Ib(t){return t.__svgEl}function Tb(t){return function(){ES('In SVG mode painter not support method "'+t+'"')}}var Ab=2311,Db=function(){return Ab++},Cb={};Cb="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 Lb=Cb,kb={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},Pb={"[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},Ob=Object.prototype.toString,Eb=Array.prototype,Rb=Eb.forEach,Nb=Eb.filter,zb=Eb.slice,Bb=Eb.map,Vb=Eb.reduce,Gb={},Fb=function(){return Gb.createCanvas()};Gb.createCanvas=function(){return document.createElement("canvas")};var Wb,Hb="__ec_primitive__";z.prototype={constructor:z,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 i in this.data)this.data.hasOwnProperty(i)&&t(this.data[i],i)},removeKey:function(t){delete this.data[t]}};var Zb=(Object.freeze||Object)({$override:i,clone:n,merge:a,mergeAll:o,extend:r,defaults:s,createCanvas:Fb,getContext:l,indexOf:u,inherits:h,mixin:c,isArrayLike:d,each:f,map:p,reduce:g,filter:m,find:v,bind:y,curry:x,isArray:_,isFunction:w,isString:b,isObject:S,isBuiltInObject:M,isTypedArray:I,isDom:T,eqNaN:A,retrieve:D,retrieve2:C,retrieve3:L,slice:k,normalizeCssArray:P,assert:O,trim:E,setAsPrimitive:R,isPrimitive:N,createHashMap:B,concatArray:V,noop:G}),Ub="undefined"==typeof Float32Array?Array:Float32Array,Xb=j,Yb=q,jb=ee,qb=ie,Kb=(Object.freeze||Object)({create:F,copy:W,clone:H,set:Z,add:U,scaleAndAdd:X,sub:Y,len:j,length:Xb,lenSquare:q,lengthSquare:Yb,mul:K,div:$,dot:J,scale:Q,normalize:te,distance:ee,dist:jb,distanceSquare:ie,distSquare:qb,negate:ne,lerp:ae,applyTransform:oe,min:re,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 i=t.offsetX,n=t.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,e.drift(a,o,t),this.dispatchToElement(ue(e,t),"drag",t.event);var r=this.findHover(i,n,e).target,s=this._dropTarget;this._dropTarget=r,e!==r&&(s&&r!==s&&this.dispatchToElement(ue(s,t),"dragleave",t.event),r&&r!==s&&this.dispatchToElement(ue(r,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 $b=Array.prototype.slice,Jb=function(t){this._$handlers={},this._$eventProcessor=t};Jb.prototype={constructor:Jb,one:function(t,e,i,n){return ce(this,t,e,i,n,!0)},on:function(t,e,i,n){return ce(this,t,e,i,n,!1)},isSilent:function(t){var e=this._$handlers;return!e[t]||!e[t].length},off:function(t,e){var i=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],a=0,o=i[t].length;o>a;a++)i[t][a].h!==e&&n.push(i[t][a]);i[t]=n}i[t]&&0===i[t].length&&delete i[t]}else delete i[t];return this},trigger:function(t){var e=this._$handlers[t],i=this._$eventProcessor;if(e){var n=arguments,a=n.length;a>3&&(n=$b.call(n,1));for(var o=e.length,r=0;o>r;){var s=e[r];if(i&&i.filter&&null!=s.query&&!i.filter(t,s.query))r++;else{switch(a){case 1:s.h.call(s.ctx);break;case 2:s.h.call(s.ctx,n[1]);break;case 3:s.h.call(s.ctx,n[1],n[2]);break;default:s.h.apply(s.ctx,n)}s.one?(e.splice(r,1),o--):r++}}}return i&&i.afterTrigger&&i.afterTrigger(t),this},triggerWithContext:function(t){var e=this._$handlers[t],i=this._$eventProcessor;if(e){var n=arguments,a=n.length;a>4&&(n=$b.call(n,1,n.length-1));for(var o=n[n.length-1],r=e.length,s=0;r>s;){var l=e[s];if(i&&i.filter&&null!=l.query&&!i.filter(t,l.query))s++;else{switch(a){case 1:l.h.call(o);break;case 2:l.h.call(o,n[1]);break;case 3:l.h.call(o,n[1],n[2]);break;default:l.h.apply(o,n)}l.one?(e.splice(s,1),r--):s++}}}return i&&i.afterTrigger&&i.afterTrigger(t),this}};var Qb="undefined"!=typeof window&&!!window.addEventListener,tS=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,eS=Qb?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0},iS=function(){this._track=[]};iS.prototype={constructor:iS,recognize:function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},clear:function(){return this._track.length=0,this},_doTrack:function(t,e,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:e,event:t},o=0,r=n.length;r>o;o++){var s=n[o],l=fe(i,s,{});a.points.push([l.zrX,l.zrY]),a.touches.push(s)}this._track.push(a)}},_recognize:function(t){for(var e in nS)if(nS.hasOwnProperty(e)){var i=nS[e](this._track,t);if(i)return i}}};var nS={pinch:function(t,e){var i=t.length;if(i){var n=(t[i-1]||{}).points,a=(t[i-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var o=xe(n)/xe(a);!isFinite(o)&&(o=1),e.pinchScale=o;var r=_e(n);return e.pinchX=r[0],e.pinchY=r[1],{type:"pinch",target:t[0].target,event:e}}}}},aS="silent";Se.prototype.dispose=function(){};var oS=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],rS=function(t,e,i,n){Jb.call(this),this.storage=t,this.painter=e,this.painterRoot=n,i=i||new Se,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,le.call(this),this.setHandlerProxy(i)};rS.prototype={constructor:rS,setHandlerProxy:function(t){this.proxy&&this.proxy.dispose(),t&&(f(oS,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},mousemove:function(t){var e=t.zrX,i=t.zrY,n=this._hovered,a=n.target;a&&!a.__zr&&(n=this.findHover(n.x,n.y),a=n.target);var o=this._hovered=this.findHover(e,i),r=o.target,s=this.proxy;s.setCursor&&s.setCursor(r?r.cursor:"default"),a&&r!==a&&this.dispatchToElement(n,"mouseout",t),this.dispatchToElement(o,"mousemove",t),r&&r!==a&&this.dispatchToElement(o,"mouseover",t)},mouseout:function(t){this.dispatchToElement(this._hovered,"mouseout",t);var e,i=t.toElement||t.relatedTarget;do i=i&&i.parentNode;while(i&&9!==i.nodeType&&!(e=i===this.painterRoot));!e&&this.trigger("globalout",{event:t})},resize:function(){this._hovered={}},dispatch:function(t,e){var i=this[t];i&&i.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,i){t=t||{};var n=t.target;if(!n||!n.silent){for(var a="on"+e,o=we(e,t,i);n&&(n[a]&&(o.cancelBubble=n[a].call(n,o)),n.trigger(e,o),n=n.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer(function(t){"function"==typeof t[a]&&t[a].call(t,o),t.trigger&&t.trigger(e,o)}))}},findHover:function(t,e,i){for(var n=this.storage.getDisplayList(),a={x:t,y:e},o=n.length-1;o>=0;o--){var r;if(n[o]!==i&&!n[o].ignore&&(r=Me(n[o],t,e))&&(!a.topTarget&&(a.topTarget=n[o]),r!==aS)){a.target=n[o];break}}return a},processGesture:function(t,e){this._gestureMgr||(this._gestureMgr=new iS);var i=this._gestureMgr;"start"===e&&i.clear();var n=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&i.clear(),n){var a=n.type;t.gestureEvent=a,this.dispatchToElement({target:n.target},a,n.event)}}},f(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){rS.prototype[t]=function(e){var i=this.findHover(e.zrX,e.zrY),n=i.target;if("mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||jb(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}}),c(rS,Jb),c(rS,le);var sS="undefined"==typeof Float32Array?Array:Float32Array,lS=(Object.freeze||Object)({create:Ie,identity:Te,copy:Ae,mul:De,translate:Ce,rotate:Le,scale:ke,invert:Pe,clone:Oe}),uS=Te,hS=5e-5,cS=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},dS=cS.prototype;dS.transform=null,dS.needLocalTransform=function(){return Ee(this.rotation)||Ee(this.position[0])||Ee(this.position[1])||Ee(this.scale[0]-1)||Ee(this.scale[1]-1)};var fS=[];dS.updateTransform=function(){var t=this.parent,e=t&&t.transform,i=this.needLocalTransform(),n=this.transform;if(!i&&!e)return void(n&&uS(n));n=n||Ie(),i?this.getLocalTransform(n):uS(n),e&&(i?De(n,t.transform,n):Ae(n,t.transform)),this.transform=n;var a=this.globalScaleRatio;if(null!=a&&1!==a){this.getGlobalScale(fS);var o=fS[0]<0?-1:1,r=fS[1]<0?-1:1,s=((fS[0]-o)*a+o)/fS[0]||0,l=((fS[1]-r)*a+r)/fS[1]||0;n[0]*=s,n[1]*=s,n[2]*=l,n[3]*=l}this.invTransform=this.invTransform||Ie(),Pe(this.invTransform,n)},dS.getLocalTransform=function(t){return cS.getLocalTransform(this,t)},dS.setTransform=function(t){var e=this.transform,i=t.dpr||1;e?t.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):t.setTransform(i,0,0,i,0,0)},dS.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var pS=[],gS=Ie();dS.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=this.position,a=this.scale;Ee(e-1)&&(e=Math.sqrt(e)),Ee(i-1)&&(i=Math.sqrt(i)),t[0]<0&&(e=-e),t[3]<0&&(i=-i),n[0]=t[4],n[1]=t[5],a[0]=e,a[1]=i,this.rotation=Math.atan2(-t[1]/i,t[0]/e)}},dS.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(De(pS,t.invTransform,e),e=pS);var i=this.origin;i&&(i[0]||i[1])&&(gS[4]=i[0],gS[5]=i[1],De(pS,e,gS),pS[4]-=i[0],pS[5]-=i[1],e=pS),this.setLocalTransform(e)}},dS.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)},dS.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&oe(i,i,n),i},dS.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&oe(i,i,n),i},cS.getLocalTransform=function(t,e){e=e||[],uS(e);var i=t.origin,n=t.scale||[1,1],a=t.rotation||0,o=t.position||[0,0];return i&&(e[4]-=i[0],e[5]-=i[1]),ke(e,e,n),a&&Le(e,e,a),i&&(e[4]+=i[0],e[5]+=i[1]),e[4]+=o[0],e[5]+=o[1],e};var mS={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,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),-(i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n)))},elasticOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/n)+1)},elasticInOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?-.5*i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n):i*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n)*.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-mS.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*mS.bounceIn(2*t):.5*mS.bounceOut(2*t-1)+.5}};Re.prototype={constructor:Re,step:function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)return void(this._pausedTime+=e);var i=(t-this._startTime-this._pausedTime)/this._life;if(!(0>i)){i=Math.min(i,1);var n=this.easing,a="string"==typeof n?mS[n]:n,o="function"==typeof a?a(i):i;return this.fire("frame",o),1===i?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 vS=function(){this.head=null,this.tail=null,this._len=0},yS=vS.prototype;yS.insert=function(t){var e=new xS(t);return this.insertEntry(e),e},yS.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++},yS.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},yS.len=function(){return this._len},yS.clear=function(){this.head=this.tail=null,this._len=0};var xS=function(t){this.value=t,this.next,this.prev},_S=function(t){this._list=new vS,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},wS=_S.prototype;wS.put=function(t,e){var i=this._list,n=this._map,a=null;if(null==n[t]){var o=i.len(),r=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=i.head;i.remove(s),delete n[s.key],a=s.value,this._lastRemovedEntry=s}r?r.value=e:r=new xS(e),r.key=t,i.insertEntry(r),n[t]=r}return a},wS.get=function(t){var e=this._map[t],i=this._list;return null!=e?(e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value):void 0},wS.clear=function(){this._list.clear(),this._map={}};var bS={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]},SS=new _S(20),MS=null,IS=$e,TS=Je,AS=(Object.freeze||Object)({parse:Xe,lift:qe,toHex:Ke,fastLerp:$e,fastMapToColor:IS,lerp:Je,mapToColor:TS,modifyHSL:Qe,modifyAlpha:ti,stringify:ei}),DS=Array.prototype.slice,CS=function(t,e,i,n){this._tracks={},this._target=t,this._loop=e||!1,this._getter=i||ii,this._setter=n||ni,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]
};CS.prototype={when:function(t,e){var i=this._tracks;for(var n in e)if(e.hasOwnProperty(n)){if(!i[n]){i[n]=[];var a=this._getter(this._target,n);if(null==a)continue;0!==t&&i[n].push({time:0,value:ci(a)})}i[n].push({time:t,value:e[n]})}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,i=0;e>i;i++)t[i].call(this)},start:function(t,e){var i,n=this,a=0,o=function(){a--,a||n._doneCallback()};for(var r in this._tracks)if(this._tracks.hasOwnProperty(r)){var s=pi(this,t,o,this._tracks[r],r,e);s&&(this._clipList.push(s),a++,this.animation&&this.animation.addClip(s),i=s)}if(i){var l=i.onframe;i.onframe=function(t,e){l(t,e);for(var i=0;i<n._onframeList.length;i++)n._onframeList[i](t,e)}}return a||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,i=this.animation,n=0;n<e.length;n++){var a=e[n];t&&a.onframe(this._target,1),i&&i.removeClip(a)}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 LS=1;"undefined"!=typeof window&&(LS=Math.max(window.devicePixelRatio||1,1));var kS=0,PS=LS,OS=function(){};1===kS?OS=function(){for(var t in arguments)throw new Error(arguments[t])}:kS>1&&(OS=function(){for(var t in arguments)console.log(arguments[t])});var ES=OS,RS=function(){this.animators=[]};RS.prototype={constructor:RS,animate:function(t,e){var i,n=!1,a=this,o=this.__zr;if(t){var r=t.split("."),s=a;n="shape"===r[0];for(var l=0,h=r.length;h>l;l++)s&&(s=s[r[l]]);s&&(i=s)}else i=a;if(!i)return void ES('Property "'+t+'" is not existed in element '+a.id);var c=a.animators,d=new CS(i,e);return d.during(function(){a.dirty(n)}).done(function(){c.
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
