!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,e){function n(){this.constructor=t}if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Pg(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function n(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}function r(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n<t.length;n++){var r=String.fromCharCode(n+32),i=(t.charCodeAt(n)-Vg)/Hg;e[r]=i}return e}function i(t){for(var e in Gg)t[e]&&(Gg[e]=t[e])}function o(){return nv++}function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function s(t){if(null==t||"object"!=typeof t)return t;var e=t,n=Yg.call(t);if("[object Array]"===n){if(!q(t)){e=[];for(var r=0,i=t.length;i>r;r++)e[r]=s(t[r])}}else if(Xg[n]){if(!q(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(var r=0,i=t.length;i>r;r++)e[r]=t[r]}}}else if(!qg[n]&&!q(t)&&!O(t)){e={};for(var a in t)t.hasOwnProperty(a)&&a!==ev&&(e[a]=s(t[a]))}return e}function l(t,e,n){if(!I(e)||!I(t))return n?s(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==ev){var i=t[r],o=e[r];!I(o)||!I(i)||M(o)||M(i)||O(o)||O(i)||A(o)||A(i)||q(o)||q(i)?!n&&r in t||(t[r]=s(e[r])):l(i,o,n)}return t}function u(t,e){for(var n=t[0],r=1,i=t.length;i>r;r++)n=l(n,t[r],e);return n}function h(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==ev&&(t[n]=e[n]);return t}function c(t,e,n){for(var r=w(e),i=0;i<r.length;i++){var o=r[i];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}function f(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;r>n;n++)if(t[n]===e)return n}return-1}function p(t,e){function n(){}var r=t.prototype;n.prototype=e.prototype,t.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);t.prototype.constructor=t,t.superClass=e}function d(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),i=0;i<r.length;i++){var o=r[i];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else c(t,e,n)}function g(t){return t?"string"==typeof t?!1:"number"==typeof t.length:!1}function v(t,e,n){if(t&&e)if(t.forEach&&t.forEach===Zg)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,i=t.length;i>r;r++)e.call(n,t[r],r,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function y(t,e,n){if(!t)return[];if(!e)return V(t);if(t.map&&t.map===Qg)return t.map(e,n);for(var r=[],i=0,o=t.length;o>i;i++)r.push(e.call(n,t[i],i,t));return r}function m(t,e,n,r){if(t&&e){for(var i=0,o=t.length;o>i;i++)n=e.call(r,n,t[i],i,t);return n}}function _(t,e,n){if(!t)return[];if(!e)return V(t);if(t.filter&&t.filter===Kg)return t.filter(e,n);for(var r=[],i=0,o=t.length;o>i;i++)e.call(n,t[i],i,t)&&r.push(t[i]);return r}function x(t,e,n){if(t&&e)for(var r=0,i=t.length;i>r;r++)if(e.call(n,t[r],r,t))return t[r]}function w(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function b(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat($g.call(arguments)))}}function S(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat($g.call(arguments)))}}function M(t){return Array.isArray?Array.isArray(t):"[object Array]"===Yg.call(t)}function T(t){return"function"==typeof t}function C(t){return"string"==typeof t}function k(t){return"[object String]"===Yg.call(t)}function D(t){return"number"==typeof t}function I(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function A(t){return!!qg[Yg.call(t)]}function L(t){return!!Xg[Yg.call(t)]}function O(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function P(t){return null!=t.colorStops}function R(t){return null!=t.image}function N(t){return"[object RegExp]"===Yg.call(t)}function B(t){return t!==t}function E(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t.length;r>n;n++)if(null!=t[n])return t[n]}function z(t,e){return null!=t?t:e}function F(t,e,n){return null!=t?t:null!=e?e:n}function V(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return $g.apply(t,e)}function H(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 W(t,e){if(!t)throw new Error(e)}function U(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function G(t){t[ov]=!0}function q(t){return t[ov]}function X(){return sv?new Map:new av}function Y(t){return new lv(t)}function j(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];for(var i=t.length,r=0;r<e.length;r++)n[r+i]=e[r];return n}function Z(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&h(n,e),n}function K(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function $(t,e){return t.hasOwnProperty(e)}function Q(){}function J(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function te(t,e){return t[0]=e[0],t[1]=e[1],t}function ee(t){return[t[0],t[1]]}function ne(t,e,n){return t[0]=e,t[1]=n,t}function re(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function ie(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function oe(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function ae(t){return Math.sqrt(se(t))}function se(t){return t[0]*t[0]+t[1]*t[1]}function le(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function ue(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function he(t,e){return t[0]*e[0]+t[1]*e[1]}function ce(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function fe(t,e){var n=ae(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function pe(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function de(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function ge(t,e){return t[0]=-e[0],t[1]=-e[1],t}function ve(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function ye(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function me(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function _e(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function xe(t,e,n,r,i,o){var a=r+"-"+i,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~i)/_v);return t[n][l]}for(var u=r|1<<n,h=n+1;r&1<<h;)h++;for(var c=0,f=0,p=0;s>f;f++){var d=1<<f;d&i||(c+=(p%2?-1:1)*t[n][f]*xe(t,e-1,h,u,i|d,o),p++)}return o[a]=c,c}function we(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],r={},i=xe(n,8,0,0,0,r);if(0!==i){for(var o=[],a=0;8>a;a++)for(var s=0;8>s;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*xe(n,7,0===a?1:0,1<<a,1<<s,r)/i*e[a];return function(t,e,n){var r=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/r,t[1]=(e*o[3]+n*o[4]+o[5])/r}}}function be(t,e,n,r,i){if(e.getBoundingClientRect&&Bg.domSupported&&!Te(e)){var o=e[xv]||(e[xv]={}),a=Se(e,o),s=Me(a,o,i);if(s)return s(t,n,r),!0}return!1}function Se(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;4>o;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function Me(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],o=e.srcCoords,a=[],s=[],l=!0,u=0;4>u;u++){var h=t[u].getBoundingClientRect(),c=2*u,f=h.left,p=h.top;a.push(f,p),l=l&&o&&f===o[c]&&p===o[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=a,e[r]=n?we(s,a):we(a,s))}function Te(t){return"CANVAS"===t.nodeName.toUpperCase()}function Ce(t){return null==t?"":(t+"").replace(wv,function(t,e){return bv[e]})}function ke(t,e,n,r){return n=n||{},r?De(t,e,n):Tv&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):De(t,e,n),n}function De(t,e,n){if(Bg.domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(Te(t)){var o=t.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(be(Mv,t,r,i))return n.zrX=Mv[0],void(n.zrY=Mv[1])}n.zrX=n.zrY=0}function Ie(t){return t||window.event}function Ae(t,e,n){if(e=Ie(e),null!=e.zrX)return e;var r=e.type,i=r&&r.indexOf("touch")>=0;if(i){var o="touchend"!==r?e.targetTouches[0]:e.changedTouches[0];o&&ke(t,o,e,n)}else{ke(t,e,e,n);var a=Le(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&Sv.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function Le(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(null==n||null==r)return e;var i=Math.abs(0!==r?r:n),o=r>0?-1:0>r?1:n>0?-1:1;return 3*i*o}function Oe(t,e,n,r){t.addEventListener(e,n,r)}function Pe(t,e,n,r){t.removeEventListener(e,n,r)}function Re(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function Ne(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function Be(){return[1,0,0,1,0,0]}function Ee(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function ze(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 Fe(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function Ve(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function He(t,e,n){var r=e[0],i=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),h=Math.cos(n);return t[0]=r*h+a*u,t[1]=-r*u+a*h,t[2]=i*h+s*u,t[3]=-i*u+h*s,t[4]=h*o+u*l,t[5]=h*l-u*o,t}function We(t,e,n){var r=n[0],i=n[1];return t[0]=e[0]*r,t[1]=e[1]*i,t[2]=e[2]*r,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*i,t}function Ue(t,e){var n=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*r;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-a*i)*l,t[5]=(o*i-n*s)*l,t):null}function Ge(t){var e=Be();return ze(e,t),e}function qe(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Xe}}function Xe(){Cv(this.event)}function Ye(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var r=t,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(e,n))return!1;r.silent&&(i=!0)}var s=r.__hostTarget;r=s?s:r.parent}return i?Vv:!0}return!1}function je(t,e,n,r,i){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==i&&!a.ignore&&(s=Ye(a,n,r))&&(!e.topTarget&&(e.topTarget=a),s!==Vv)){e.target=a;break}}}function Ze(t,e,n){var r=t.painter;return 0>e||e>r.getWidth()||0>n||n>r.getHeight()}function Ke(t){for(var e=0;t>=Yv;)e|=1&t,t>>=1;return t+e}function $e(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){for(;n>i&&r(t[i],t[i-1])<0;)i++;Qe(t,e,i)}else for(;n>i&&r(t[i],t[i-1])>=0;)i++;return i-e}function Qe(t,e,n){for(n--;n>e;){var r=t[e];t[e++]=t[n],t[n--]=r}}function Je(t,e,n,r,i){for(r===e&&r++;n>r;r++){for(var o,a=t[r],s=e,l=r;l>s;)o=s+l>>>1,i(a,t[o])<0?l=o:s=o+1;var u=r-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]=a}}function tn(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])>0){for(s=r-i;s>l&&o(t,e[n+i+l])>0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;s>l&&o(t,e[n+i-l])<=0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}for(a++;l>a;){var h=a+(l-a>>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function en(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])<0){for(s=i+1;s>l&&o(t,e[n+i-l])<0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;s>l&&o(t,e[n+i+l])>=0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;l>a;){var h=a+(l-a>>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function nn(t,e){function n(t,e){l[c]=t,u[c]=e,c+=1}function r(){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 i(){for(;c>1;){var t=c-2;t>0&&u[t-1]<u[t+1]&&t--,o(t)}}function o(n){var r=l[n],i=u[n],o=l[n+1],h=u[n+1];u[n]=i+h,n===c-3&&(l[n+1]=l[n+2],u[n+1]=u[n+2]),c--;var f=en(t[o],t,r,i,0,e);r+=f,i-=f,0!==i&&(h=tn(t[r+i-1],t,o,h,h-1,e),0!==h&&(h>=i?a(r,i,o,h):s(r,i,o,h)))}function a(n,r,i,o){var a=0;for(a=0;r>a;a++)f[a]=t[n+a];var s=0,l=i,u=n;if(t[u++]=t[l++],0!==--o){if(1===r){for(a=0;o>a;a++)t[u+a]=t[l+a];return void(t[u+o]=f[s])}for(var c,p,d,g=h;;){c=0,p=0,d=!1;do if(e(t[l],f[s])<0){if(t[u++]=t[l++],p++,c=0,0===--o){d=!0;break}}else if(t[u++]=f[s++],c++,p=0,1===--r){d=!0;break}while(g>(c|p));if(d)break;do{if(c=en(t[l],f,s,r,0,e),0!==c){for(a=0;c>a;a++)t[u+a]=f[s+a];if(u+=c,s+=c,r-=c,1>=r){d=!0;break}}if(t[u++]=t[l++],0===--o){d=!0;break}if(p=tn(f[s],t,l,o,0,e),0!==p){for(a=0;p>a;a++)t[u+a]=t[l+a];if(u+=p,l+=p,o-=p,0===o){d=!0;break}}if(t[u++]=f[s++],1===--r){d=!0;break}g--}while(c>=jv||p>=jv);if(d)break;0>g&&(g=0),g+=2}if(h=g,1>h&&(h=1),1===r){for(a=0;o>a;a++)t[u+a]=t[l+a];t[u+o]=f[s]}else{if(0===r)throw new Error;for(a=0;r>a;a++)t[u+a]=f[s+a]}}else for(a=0;r>a;a++)t[u+a]=f[s+a]}function s(n,r,i,o){var a=0;for(a=0;o>a;a++)f[a]=t[i+a];var s=n+r-1,l=o-1,u=i+o-1,c=0,p=0;if(t[u--]=t[s--],0!==--r){if(1===o){for(u-=r,s-=r,p=u+1,c=s+1,a=r-1;a>=0;a--)t[p+a]=t[c+a];return void(t[u]=f[l])}for(var d=h;;){var g=0,v=0,y=!1;do if(e(f[l],t[s])<0){if(t[u--]=t[s--],g++,v=0,0===--r){y=!0;break}}else if(t[u--]=f[l--],v++,g=0,1===--o){y=!0;break}while(d>(g|v));if(y)break;do{if(g=r-en(f[l],t,n,r,r-1,e),0!==g){for(u-=g,s-=g,r-=g,p=u+1,c=s+1,a=g-1;a>=0;a--)t[p+a]=t[c+a];if(0===r){y=!0;break}}if(t[u--]=f[l--],1===--o){y=!0;break}if(v=o-tn(t[s],f,0,o,o-1,e),0!==v){for(u-=v,l-=v,o-=v,p=u+1,c=l+1,a=0;v>a;a++)t[p+a]=f[c+a];if(1>=o){y=!0;break}}if(t[u--]=t[s--],0===--r){y=!0;break}d--}while(g>=jv||v>=jv);if(y)break;0>d&&(d=0),d+=2}if(h=d,1>h&&(h=1),1===o){for(u-=r,s-=r,p=u+1,c=s+1,a=r-1;a>=0;a--)t[p+a]=t[c+a];t[u]=f[l]}else{if(0===o)throw new Error;for(c=u-(o-1),a=0;o>a;a++)t[c+a]=f[a]}}else for(c=u-(o-1),a=0;o>a;a++)t[c+a]=f[a]}var l,u,h=jv,c=0,f=[];return l=[],u=[],{mergeRuns:r,forceMergeRuns:i,pushRun:n}}function rn(t,e,n,r){n||(n=0),r||(r=t.length);var i=r-n;if(!(2>i)){var o=0;if(Yv>i)return o=$e(t,n,r,e),void Je(t,n,r,n+o,e);var a=nn(t,e),s=Ke(i);do{if(o=$e(t,n,r,e),s>o){var l=i;l>s&&(l=s),Je(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}function on(){Qv||(Qv=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function an(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function sn(t){return t>-iy&&iy>t}function ln(t){return t>iy||-iy>t}function un(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function hn(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function cn(t,e,n,r,i,o){var a=r+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-i,h=s*s-3*a*l,c=s*l-9*a*u,f=l*l-3*s*u,p=0;if(sn(h)&&sn(c))if(sn(s))o[0]=0;else{var d=-l/s;d>=0&&1>=d&&(o[p++]=d)}else{var g=c*c-4*h*f;if(sn(g)){var v=c/h,d=-s/a+v,y=-v/2;d>=0&&1>=d&&(o[p++]=d),y>=0&&1>=y&&(o[p++]=y)}else if(g>0){var m=ry(g),_=h*s+1.5*a*(-c+m),x=h*s+1.5*a*(-c-m);_=0>_?-ny(-_,sy):ny(_,sy),x=0>x?-ny(-x,sy):ny(x,sy);var d=(-s-(_+x))/(3*a);d>=0&&1>=d&&(o[p++]=d)}else{var w=(2*h*s-3*a*c)/(2*ry(h*h*h)),b=Math.acos(w)/3,S=ry(h),M=Math.cos(b),d=(-s-2*S*M)/(3*a),y=(-s+S*(M+ay*Math.sin(b)))/(3*a),T=(-s+S*(M-ay*Math.sin(b)))/(3*a);d>=0&&1>=d&&(o[p++]=d),y>=0&&1>=y&&(o[p++]=y),T>=0&&1>=T&&(o[p++]=T)}}return p}function fn(t,e,n,r,i){var o=6*n-12*e+6*t,a=9*e+3*r-3*t-9*n,s=3*e-3*t,l=0;if(sn(a)){if(ln(o)){var u=-s/o;u>=0&&1>=u&&(i[l++]=u)}}else{var h=o*o-4*a*s;if(sn(h))i[0]=-o/(2*a);else if(h>0){var c=ry(h),u=(-o+c)/(2*a),f=(-o-c)/(2*a);u>=0&&1>=u&&(i[l++]=u),f>=0&&1>=f&&(i[l++]=f)}}return l}function pn(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,l=(r-n)*i+n,u=(s-a)*i+a,h=(l-s)*i+s,c=(h-u)*i+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=r}function dn(t,e,n,r,i,o,a,s,l,u,h){var c,f,p,d,g,v=.005,y=1/0;ly[0]=l,ly[1]=u;for(var m=0;1>m;m+=.05)uy[0]=un(t,n,i,a,m),uy[1]=un(e,r,o,s,m),d=dv(ly,uy),y>d&&(c=m,y=d);y=1/0;for(var _=0;32>_&&!(oy>v);_++)f=c-v,p=c+v,uy[0]=un(t,n,i,a,f),uy[1]=un(e,r,o,s,f),d=dv(uy,ly),f>=0&&y>d?(c=f,y=d):(hy[0]=un(t,n,i,a,p),hy[1]=un(e,r,o,s,p),g=dv(hy,ly),1>=p&&y>g?(c=p,y=g):v*=.5);return h&&(h[0]=un(t,n,i,a,c),h[1]=un(e,r,o,s,c)),ry(y)}function gn(t,e,n,r,i,o,a,s,l){for(var u=t,h=e,c=0,f=1/l,p=1;l>=p;p++){var d=p*f,g=un(t,n,i,a,d),v=un(e,r,o,s,d),y=g-u,m=v-h;c+=Math.sqrt(y*y+m*m),u=g,h=v}return c}function vn(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function yn(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function mn(t,e,n,r,i){var o=t-2*e+n,a=2*(e-t),s=t-r,l=0;if(sn(o)){if(ln(a)){var u=-s/a;u>=0&&1>=u&&(i[l++]=u)}}else{var h=a*a-4*o*s;if(sn(h)){var u=-a/(2*o);u>=0&&1>=u&&(i[l++]=u)}else if(h>0){var c=ry(h),u=(-a+c)/(2*o),f=(-a-c)/(2*o);u>=0&&1>=u&&(i[l++]=u),f>=0&&1>=f&&(i[l++]=f)}}return l}function _n(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function xn(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function wn(t,e,n,r,i,o,a,s,l){var u,h=.005,c=1/0;ly[0]=a,ly[1]=s;for(var f=0;1>f;f+=.05){uy[0]=vn(t,n,i,f),uy[1]=vn(e,r,o,f);var p=dv(ly,uy);c>p&&(u=f,c=p)}c=1/0;for(var d=0;32>d&&!(oy>h);d++){var g=u-h,v=u+h;uy[0]=vn(t,n,i,g),uy[1]=vn(e,r,o,g);var p=dv(uy,ly);if(g>=0&&c>p)u=g,c=p;else{hy[0]=vn(t,n,i,v),hy[1]=vn(e,r,o,v);var y=dv(hy,ly);1>=v&&c>y?(u=v,c=y):h*=.5}}return l&&(l[0]=vn(t,n,i,u),l[1]=vn(e,r,o,u)),ry(c)}function bn(t,e,n,r,i,o,a){for(var s=t,l=e,u=0,h=1/a,c=1;a>=c;c++){var f=c*h,p=vn(t,n,i,f),d=vn(e,r,o,f),g=p-s,v=d-l;u+=Math.sqrt(g*g+v*v),s=p,l=d}return u}function Sn(t){var e=t&&cy.exec(t);if(e){var n=e[1].split(","),r=+U(n[0]),i=+U(n[1]),o=+U(n[2]),a=+U(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(t){return 0>=t?0:t>=1?1:cn(0,r,o,1,t,s)&&un(0,i,a,1,s[0])}}}function Mn(t){return t=Math.round(t),0>t?0:t>255?255:t}function Tn(t){return t=Math.round(t),0>t?0:t>360?360:t}function Cn(t){return 0>t?0:t>1?1:t}function kn(t){var e=t;return Mn(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100*255:parseInt(e,10))}function Dn(t){var e=t;return Cn(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100:parseFloat(e))}function In(t,e,n){return 0>n?n+=1:n>1&&(n-=1),1>6*n?t+(e-t)*n*6:1>2*n?e:2>3*n?t+(e-t)*(2/3-n)*6:t}function An(t,e,n){return t+(e-t)*n}function Ln(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function On(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function Pn(t,e){my&&On(my,e),my=yy.put(t,my||e.slice())}function Rn(t,e){if(t){e=e||[];var n=yy.get(t);if(n)return On(e,n);t+="";var r=t.replace(/ /g,"").toLowerCase();if(r in vy)return On(e,vy[r]),Pn(t,e),e;var i=r.length;if("#"!==r.charAt(0)){var o=r.indexOf("("),a=r.indexOf(")");if(-1!==o&&a+1===i){var s=r.substr(0,o),l=r.substr(o+1,a-(o+1)).split(","),u=1;switch(s){case"rgba":if(4!==l.length)return 3===l.length?Ln(e,+l[0],+l[1],+l[2],1):Ln(e,0,0,0,1);u=Dn(l.pop());case"rgb":return l.length>=3?(Ln(e,kn(l[0]),kn(l[1]),kn(l[2]),3===l.length?u:Dn(l[3])),Pn(t,e),e):void Ln(e,0,0,0,1);case"hsla":return 4!==l.length?void Ln(e,0,0,0,1):(l[3]=Dn(l[3]),Nn(l,e),Pn(t,e),e);case"hsl":return 3!==l.length?void Ln(e,0,0,0,1):(Nn(l,e),Pn(t,e),e);default:return}}Ln(e,0,0,0,1)}else{if(4===i||5===i){var h=parseInt(r.slice(1,4),16);return h>=0&&4095>=h?(Ln(e,(3840&h)>>4|(3840&h)>>8,240&h|(240&h)>>4,15&h|(15&h)<<4,5===i?parseInt(r.slice(4),16)/15:1),Pn(t,e),e):void Ln(e,0,0,0,1)}if(7===i||9===i){var h=parseInt(r.slice(1,7),16);return h>=0&&16777215>=h?(Ln(e,(16711680&h)>>16,(65280&h)>>8,255&h,9===i?parseInt(r.slice(7),16)/255:1),Pn(t,e),e):void Ln(e,0,0,0,1)}}}}function Nn(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=Dn(t[1]),i=Dn(t[2]),o=.5>=i?i*(r+1):i+r-i*r,a=2*i-o;return e=e||[],Ln(e,Mn(255*In(a,o,n+1/3)),Mn(255*In(a,o,n)),Mn(255*In(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Bn(t){if(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=.5>u?l/(s+a):l/(2-s-a);var h=((s-r)/6+l/2)/l,c=((s-i)/6+l/2)/l,f=((s-o)/6+l/2)/l;r===s?e=f-c:i===s?e=1/3+h-f:o===s&&(e=2/3+c-h),0>e&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}function En(t,e){var n=Rn(t);if(n){for(var r=0;3>r;r++)n[r]=0>e?n[r]*(1-e)|0:(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Un(n,4===n.length?"rgba":"rgb")}}function zn(t){var e=Rn(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function Fn(t,e,n){if(e&&e.length&&t>=0&&1>=t){n=n||[];var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),a=e[i],s=e[o],l=r-i;return n[0]=Mn(An(a[0],s[0],l)),n[1]=Mn(An(a[1],s[1],l)),n[2]=Mn(An(a[2],s[2],l)),n[3]=Cn(An(a[3],s[3],l)),n}}function Vn(t,e,n){if(e&&e.length&&t>=0&&1>=t){var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),a=Rn(e[i]),s=Rn(e[o]),l=r-i,u=Un([Mn(An(a[0],s[0],l)),Mn(An(a[1],s[1],l)),Mn(An(a[2],s[2],l)),Cn(An(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}function Hn(t,e,n,r){var i=Rn(t);return t?(i=Bn(i),null!=e&&(i[0]=Tn(e)),null!=n&&(i[1]=Dn(n)),null!=r&&(i[2]=Dn(r)),Un(Nn(i),"rgba")):void 0}function Wn(t,e){var n=Rn(t);return n&&null!=e?(n[3]=Cn(e),Un(n,"rgba")):void 0}function Un(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(n+=","+t[3]),e+"("+n+")"}}function Gn(t,e){var n=Rn(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function qn(){return Un([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}function Xn(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=Rn(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}function Yn(t){return Sy>t&&t>-Sy}function jn(t){return by(1e3*t)/1e3}function Zn(t){return by(1e4*t)/1e4}function Kn(t){return"matrix("+jn(t[0])+","+jn(t[1])+","+jn(t[2])+","+jn(t[3])+","+Zn(t[4])+","+Zn(t[5])+")"}function $n(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}function Qn(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function Jn(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function tr(t){return t&&!!t.image}function er(t){return t&&!!t.svgElement}function nr(t){return tr(t)||er(t)}function rr(t){return"linear"===t.type}function ir(t){return"radial"===t.type}function or(t){return t&&("linear"===t.type||"radial"===t.type)}function ar(t){return"url(#"+t+")"}function sr(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function lr(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*uv,i=z(t.scaleX,1),o=z(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),r&&l.push("rotate("+r+")"),(1!==i||1!==o)&&l.push("scale("+i+","+o+")"),(a||s)&&l.push("skew("+by(a*uv)+"deg, "+by(s*uv)+"deg)"),l.join(" ")}function ur(t,e,n){return(e-t)*n+t}function hr(t,e,n,r){for(var i=e.length,o=0;i>o;o++)t[o]=ur(e[o],n[o],r);return t}function cr(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;i>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=ur(e[a][s],n[a][s],r)}return t}function fr(t,e,n,r){for(var i=e.length,o=0;i>o;o++)t[o]=e[o]+n[o]*r;return t}function pr(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;i>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=e[a][s]+n[a][s]*r}return t}function dr(t,e){for(var n=t.length,r=e.length,i=n>r?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function gr(t,e,n){var r=t,i=e;if(r.push&&i.push){var o=r.length,a=i.length;if(o!==a){var s=o>a;if(s)r.length=a;else for(var l=o;a>l;l++)r.push(1===n?i[l]:Cy.call(i[l]))}for(var u=r[0]&&r[0].length,l=0;l<r.length;l++)if(1===n)isNaN(r[l])&&(r[l]=i[l]);else for(var h=0;u>h;h++)isNaN(r[l][h])&&(r[l][h]=i[l][h])}}function vr(t){if(g(t)){var e=t.length;if(g(t[0])){for(var n=[],r=0;e>r;r++)n.push(Cy.call(t[r]));return n}return Cy.call(t)}return t}function yr(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function mr(t){return g(t&&t[0])?2:1}function _r(t){return t===Ly||t===Oy}function xr(t){return t===Dy||t===Iy}function wr(){return(new Date).getTime()}function br(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Sr(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function Mr(t){t&&(t.zrByTouch=!0)}function Tr(t,e){return Ae(t.dom,new Uy(t,e),!0)}function Cr(t,e){for(var n=e,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return r}function kr(t,e){var n=e.domHandlers;Bg.pointerEventsSupported?v(Vy.pointer,function(r){Ir(e,r,function(e){n[r].call(t,e)})}):(Bg.touchEventsSupported&&v(Vy.touch,function(r){Ir(e,r,function(i){n[r].call(t,i),Sr(e)})}),v(Vy.mouse,function(r){Ir(e,r,function(i){i=Ie(i),e.touching||n[r].call(t,i)})}))}function Dr(t,e){function n(n){function r(r){r=Ie(r),Cr(t,r.target)||(r=Tr(t,r),e.domHandlers[n].call(t,r))}Ir(e,n,r,{capture:!0})}Bg.pointerEventsSupported?v(Hy.pointer,n):Bg.touchEventsSupported||v(Hy.mouse,n)}function Ir(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,Oe(t.domTarget,e,n,r)}function Ar(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&Pe(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}function Lr(t){return t>em||-em>t}function Or(t,e){for(var n=0;n<sm.length;n++){var r=sm[n];t[r]=e[r]}}function Pr(t,e){e=e||Fg;var n=lm[e];n||(n=lm[e]=new gy(500));var r=n.get(t);return null==r&&(r=Gg.measureText(t,e).width,n.put(t,r)),r}function Rr(t,e,n,r){var i=Pr(t,e),o=zr(e),a=Br(0,i,n),s=Er(0,o,r),l=new Fv(a,s,i,o);return l}function Nr(t,e,n,r){var i=((t||"")+"").split("\n"),o=i.length;if(1===o)return Rr(i[0],e,n,r);for(var a=new Fv(0,0,0,0),s=0;s<i.length;s++){var l=Rr(i[s],e,n,r);0===s?a.copy(l):a.union(l)}return a}function Br(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Er(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function zr(t){return Pr("国",t)}function Fr(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Vr(t,e,n){var r=e.position||"inside",i=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(r instanceof Array)l+=Fr(r[0],n.width),u+=Fr(r[1],n.height),h=null,c=null;else switch(r){case"left":l-=i,u+=s,h="right",c="middle";break;case"right":l+=i+a,u+=s,c="middle";break;case"top":l+=a/2,u-=i,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+i,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=i,u+=s,c="middle";break;case"insideRight":l+=a-i,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=i,h="center";break;case"insideBottom":l+=a/2,u+=o-i,h="center",c="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,h="right";break;case"insideBottomLeft":l+=i,u+=o-i,c="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,h="right",c="bottom"}return t=t||{},t.x=l,t.y=u,t.align=h,t.verticalAlign=c,t}function Hr(t,e,n,r,i){n=n||{};var o=[];Yr(t,"",t,e,n,r,o,i);var a=o.length,s=!1,l=n.done,u=n.aborted,h=function(){s=!0,a--,0>=a&&(s?l&&l():u&&u())},c=function(){a--,0>=a&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var f=0;f<o.length;f++){var p=o[f];h&&p.done(h),c&&p.aborted(c),n.force&&p.duration(n.duration),p.start(n.easing)}return o}function Wr(t,e,n){for(var r=0;n>r;r++)t[r]=e[r]}function Ur(t){return g(t[0])}function Gr(t,e,n){if(g(e[n]))if(g(t[n])||(t[n]=[]),L(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),Wr(t[n],e[n],r))}else{var i=e[n],o=t[n],a=i.length;if(Ur(i))for(var s=i[0].length,l=0;a>l;l++)o[l]?Wr(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else Wr(o,i,a);o.length=i.length}else t[n]=e[n]}function qr(t,e){return t===e||g(t)&&g(e)&&Xr(t,e)}function Xr(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;n>r;r++)if(t[r]!==e[r])return!1;return!0}function Yr(t,e,n,r,i,o,a,s){for(var l=w(r),u=i.duration,h=i.delay,c=i.additive,p=i.setToFinal,d=!I(o),v=t.animators,y=[],m=0;m<l.length;m++){var x=l[m],b=r[x];if(null!=b&&null!=n[x]&&(d||o[x]))if(!I(b)||g(b)||P(b))y.push(x);else{if(e){s||(n[x]=b,t.updateDuringAnimation(e));continue}Yr(t,x,n[x],b,i,o&&o[x],a,s)}else s||(n[x]=b,t.updateDuringAnimation(e),y.push(x))}var S=y.length;if(!c&&S)for(var M=0;M<v.length;M++){var T=v[M];if(T.targetName===e){var C=T.stopTracks(y);if(C){var k=f(v,T);v.splice(k,1)}}}if(i.force||(y=_(y,function(t){return!qr(r[t],n[t])}),S=y.length),S>0||i.force&&!a.length){var D=void 0,A=void 0,L=void 0;if(s){A={},p&&(D={});for(var M=0;S>M;M++){var x=y[M];A[x]=n[x],p?D[x]=r[x]:n[x]=r[x]}}else if(p){L={};for(var M=0;S>M;M++){var x=y[M];L[x]=vr(n[x]),Gr(n,r,x)}}var T=new By(n,!1,!1,c?_(v,function(t){return t.targetName===e}):null);T.targetName=e,i.scope&&(T.scope=i.scope),p&&D&&T.whenWithKeys(0,D,y),L&&T.whenWithKeys(0,L,y),T.whenWithKeys(null==u?500:u,s?A:r,y).delay(h||0),t.addAnimator(T,e),a.push(T)}}function jr(t){delete ym[t]}function Zr(t){if(!t)return!1;if("string"==typeof t)return Gn(t,1)<Ky;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,i=0;r>i;i++)n+=Gn(e[i].color,1);return n/=r,Ky>n}return!1}function Kr(t,e){var n=new mm(o(),t,e);return ym[n.id]=n,n}function $r(t){t.dispose()}function Qr(){for(var t in ym)ym.hasOwnProperty(t)&&ym[t].dispose();ym={}}function Jr(t){return ym[t]}function ti(t,e){vm[t]=e}function ei(t){return t.replace(/^\s+|\s+$/g,"")}function ni(t,e,n,r){var i=e[0],o=e[1],a=n[0],s=n[1],l=o-i,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(r)if(l>0){if(i>=t)return a;if(t>=o)return s}else{if(t>=i)return a;if(o>=t)return s}else{if(t===i)return a;if(t===o)return s}return(t-i)/l*u+a}function ri(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 C(t)?ei(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?0/0:+t}function ii(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),bm),t=(+t).toFixed(e),n?t:+t
}function oi(t){return t.sort(function(t,e){return t-e}),t}function ai(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;15>n;n++,e*=10)if(Math.round(t*e)/e===t)return n;return si(t)}function si(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,o=e.indexOf("."),a=0>o?0:i-1-o;return Math.max(0,a-r)}function li(t,e){var n=Math.log,r=Math.LN10,i=Math.floor(n(t[1]-t[0])/r),o=Math.round(n(Math.abs(e[1]-e[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function ui(t,e,n){if(!t[e])return 0;var r=hi(t,n);return r[e]||0}function hi(t,e){var n=m(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return[];for(var r=Math.pow(10,e),i=y(t,function(t){return(isNaN(t)?0:t)/n*r*100}),o=100*r,a=y(i,function(t){return Math.floor(t)}),s=m(a,function(t,e){return t+e},0),l=y(i,function(t,e){return t-a[e]});o>s;){for(var u=Number.NEGATIVE_INFINITY,h=null,c=0,f=l.length;f>c;++c)l[c]>u&&(u=l[c],h=c);++a[h],l[h]=0,++s}return y(a,function(t){return t/r})}function ci(t,e){var n=Math.max(ai(t),ai(e)),r=t+e;return n>bm?r:ii(r,n)}function fi(t){var e=2*Math.PI;return(t%e+e)%e}function pi(t){return t>-wm&&wm>t}function di(t){if(t instanceof Date)return t;if(C(t)){var e=Mm.exec(t);if(!e)return new Date(0/0);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return new Date(null==t?0/0:Math.round(t))}function gi(t){return Math.pow(10,vi(t))}function vi(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function yi(t,e){var n,r=vi(t),i=Math.pow(10,r),o=t/i;return n=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=n*i,r>=-20?+t.toFixed(0>r?-r:0):t}function mi(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i}function _i(t){function e(t,n,r){return t.interval[r]<n.interval[r]||t.interval[r]===n.interval[r]&&(t.close[r]-n.close[r]===(r?-1:1)||!r&&e(t,n,1))}t.sort(function(t,n){return e(t,n,0)?-1:1});for(var n=-1/0,r=1,i=0;i<t.length;){for(var o=t[i].interval,a=t[i].close,s=0;2>s;s++)o[s]<=n&&(o[s]=n,a[s]=s?1:1-r),n=o[s],r=a[s];o[0]===o[1]&&a[0]*a[1]!==1?t.splice(i,1):i++}return t}function xi(t){var e=parseFloat(t);return e==t&&(0!==e||!C(t)||t.indexOf("x")<=0)?e:0/0}function wi(t){return!isNaN(xi(t))}function bi(){return Math.round(9*Math.random())}function Si(t,e){return 0===e?t:Si(e,t%e)}function Mi(t,e){return null==t?e:null==e?t:t*e/Si(t,e)}function Ti(t){throw new Error(t)}function Ci(t,e,n){return(e-t)*n+t}function ki(t){return t instanceof Array?t:null==t?[]:[t]}function Di(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,i=n.length;i>r;r++){var o=n[r];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function Ii(t){return!I(t)||M(t)||t instanceof Date?t:t.value}function Ai(t){return I(t)&&!(t instanceof Array)}function Li(t,e,n){var r="normalMerge"===n,i="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=Y();v(e,function(t,n){return I(t)?void 0:void(e[n]=null)});var s=Oi(t,a,n);return(r||i)&&Pi(s,t,a,e),r&&Ri(s,e),r||i?Ni(s,e,i):o&&Bi(s,e),Ei(s),s}function Oi(t,e,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<t.length;i++){var o=t[i];o&&null!=o.id&&e.set(o.id,i),r.push({existing:"replaceMerge"===n||Wi(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}function Pi(t,e,n,r){v(r,function(i,o){if(i&&null!=i.id){var a=Fi(i.id),s=n.get(a);if(null!=s){var l=t[s];W(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=e[s],r[o]=null}}})}function Ri(t,e){v(e,function(n,r){if(n&&null!=n.name)for(var i=0;i<t.length;i++){var o=t[i].existing;if(!t[i].newOption&&o&&(null==o.id||null==n.id)&&!Wi(n)&&!Wi(o)&&zi("name",o,n))return t[i].newOption=n,void(e[r]=null)}})}function Ni(t,e,n){v(e,function(e){if(e){for(var r,i=0;(r=t[i])&&(r.newOption||Wi(r.existing)||r.existing&&null!=e.id&&!zi("id",e,r.existing));)i++;r?(r.newOption=e,r.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),i++}})}function Bi(t,e){v(e,function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function Ei(t){var e=Y();v(t,function(t){var n=t.existing;n&&e.set(n.id,t)}),v(t,function(t){var n=t.newOption;W(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),v(t,function(t,n){var r=t.existing,i=t.newOption,o=t.keyInfo;if(I(i)){if(o.name=null!=i.name?Fi(i.name):r?r.name:Tm+n,r)o.id=Fi(r.id);else if(null!=i.id)o.id=Fi(i.id);else{var a=0;do o.id="\x00"+o.name+"\x00"+a++;while(e.get(o.id))}e.set(o.id,t)}})}function zi(t,e,n){var r=Vi(e[t],null),i=Vi(n[t],null);return null!=r&&null!=i&&r===i}function Fi(t){return Vi(t,"")}function Vi(t,e){return null==t?e:C(t)?t:D(t)||k(t)?t+"":e}function Hi(t){var e=t.name;return!(!e||!e.indexOf(Tm))}function Wi(t){return t&&null!=t.id&&0===Fi(t.id).indexOf(Cm)}function Ui(t,e,n){v(t,function(t){var r=t.newOption;I(r)&&(t.keyInfo.mainType=e,t.keyInfo.subType=Gi(e,r,t.existing,n))})}function Gi(t,e,n,r){var i=e.type?e.type:n?n.subType:r.determineSubType(t,e);return i}function qi(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?M(e.dataIndex)?y(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?M(e.name)?y(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function Xi(){var t="__ec_inner_"+Dm++;return function(e){return e[t]||(e[t]={})}}function Yi(t,e,n){var r=ji(e,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=a,l=n?n.defaultMainType:null;return!i&&l&&o.set(l,{}),o.each(function(e,r){var i=Zi(t,r,e,{useDefault:l===r,enableAll:n&&null!=n.enableAll?n.enableAll:!0,enableNone:n&&null!=n.enableNone?n.enableNone:!0});s[r+"Models"]=i.models,s[r+"Model"]=i.models[0]}),s}function ji(t,e){var n;if(C(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var i=Y(),o={},a=!1;return v(n,function(t,n){if("dataIndex"===n||"dataIndexInside"===n)return void(o[n]=t);var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&f(e.includeMainTypes,s)<0)){a=a||!!s;var u=i.get(s)||i.set(s,{});u[l]=t}}),{mainTypeSpecified:a,queryOptionMap:i,others:o}}function Zi(t,e,n,r){r=r||Im;var i=n.index,o=n.id,a=n.name,s={models:null,specified:null!=i||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===i||i===!1?(W(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===i&&(W(r.enableAll,'`"all"` is not a valid value on index option.'),i=o=a=null),s.models=t.queryComponents({mainType:e,index:i,id:o,name:a}),s)}function Ki(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function $i(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function Qi(t,e,n,r,i){var o=null==e||"auto"===e;if(null==r)return r;if(D(r)){var a=Ci(n||0,r,i);return ii(a,o?Math.max(ai(n||0),ai(r)):e)}if(C(r))return 1>i?n:r;for(var s=[],l=n,u=r,h=Math.max(l?l.length:0,u.length),c=0;h>c;++c){var f=t.getDimensionInfo(c);if(f&&"ordinal"===f.type)s[c]=(1>i&&l?l:u)[c];else{var p=l&&l[c]?l[c]:0,d=u[c],a=Ci(p,d,i);s[c]=ii(a,o?Math.max(ai(p),ai(d)):e)}}return s}function Ji(t){var e={main:"",sub:""};if(t){var n=t.split(Am);e.main=n[0]||"",e.sub=n[1]||""}return e}function to(t){W(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function eo(t){return!(!t||!t[Om])}function no(t){t.$constructor=t,t.extend=function(t){var n,r=this;return ro(r)?n=function(t){function n(){return t.apply(this,arguments)||this}return e(n,t),n}(r):(n=function(){(t.$constructor||r).apply(this,arguments)},p(n,this)),h(n.prototype,t),n[Om]=!0,n.extend=this.extend,n.superCall=ao,n.superApply=so,n.superClass=r,n}}function ro(t){return T(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function io(t,e){t.extend=e.extend}function oo(t){var e=["__\x00is_clz",Pm++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function ao(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[e].apply(t,n)}function so(t,e,n){return this.superClass.prototype[e].apply(t,n)}function lo(t){function e(t){var e=n[t.main];return e&&e[Lm]||(e=n[t.main]={},e[Lm]=!0),e}var n={};t.registerClass=function(t){var r=t.type||t.prototype.type;if(r){to(r),t.prototype.type=r;var i=Ji(r);if(i.sub){if(i.sub!==Lm){var o=e(i);o[i.sub]=t}}else n[i.main]=t}return t},t.getClass=function(t,e,r){var i=n[t];if(i&&i[Lm]&&(i=e?i[e]:null),r&&!i)throw new Error(e?"Component "+t+"."+(e||"")+" is used but not imported.":t+".type should be specified.");return i},t.getClassesByMainType=function(t){var e=Ji(t),r=[],i=n[e.main];return i&&i[Lm]?v(i,function(t,e){e!==Lm&&r.push(t)}):r.push(i),r},t.hasClass=function(t){var e=Ji(t);return!!n[e.main]},t.getAllClassMainTypes=function(){var t=[];return v(n,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){var e=Ji(t),r=n[e.main];return r&&r[Lm]}}function uo(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,r,i){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(r&&f(r,s)>=0||i&&f(i,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}function ho(t){if("string"==typeof t){var e=Em.get(t);return e&&e.image}return t}function co(t,e,n,r,i){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=Em.get(t),a={hostEl:n,cb:r,cbPayload:i};return o?(e=o.image,!po(e)&&o.pending.push(a)):(e=Gg.loadImage(t,fo,fo),e.__zrImageSrc=t,Em.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function fo(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function po(t){return t&&t.width&&t.height}function go(t,e,n,r,i){if(!e)return"";var o=(t+"").split("\n");i=vo(e,n,r,i);for(var a=0,s=o.length;s>a;a++)o[a]=yo(o[a],i);return o.join("\n")}function vo(t,e,n,r){r=r||{};var i=h({},r);i.font=e,n=z(n,"..."),i.maxIterations=z(r.maxIterations,2);var o=i.minChar=z(r.minChar,0);i.cnCharWidth=Pr("国",e);var a=i.ascCharWidth=Pr("a",e);i.placeholder=z(r.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;o>l&&s>=a;l++)s-=a;var u=Pr(n,e);return u>s&&(n="",u=0),s=t-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=t,i}function yo(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var o=Pr(t,r);if(n>=o)return t;for(var a=0;;a++){if(i>=o||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?mo(t,i,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,s),o=Pr(t,r)}return""===t&&(t=e.placeholder),t}function mo(t,e,n,r){for(var i=0,o=0,a=t.length;a>o&&e>i;o++){var s=t.charCodeAt(o);i+=s>=0&&127>=s?n:r}return o}function _o(t,e){null!=t&&(t+="");var n,r=e.overflow,i=e.padding,o=e.font,a="truncate"===r,s=zr(o),l=z(e.lineHeight,s),u=!!e.backgroundColor,h="truncate"===e.lineOverflow,c=e.width;n=null==c||"break"!==r&&"breakAll"!==r?t?t.split("\n"):[]:t?Mo(t,e.font,c,"breakAll"===r,0).lines:[];var f=n.length*l,p=z(e.height,f);if(f>p&&h){var d=Math.floor(p/l);n=n.slice(0,d)}if(t&&a&&null!=c)for(var g=vo(c,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;v<n.length;v++)n[v]=yo(n[v],g);for(var y=p,m=0,v=0;v<n.length;v++)m=Math.max(Pr(n[v],o),m);null==c&&(c=m);var _=m;return i&&(y+=i[0]+i[2],_+=i[1]+i[3],c+=i[1]+i[3]),u&&(_=c),{lines:n,height:p,outerWidth:_,outerHeight:y,lineHeight:l,calculatedLineHeight:s,contentWidth:m,contentHeight:f,width:c}}function xo(t,e){function n(t,e,n){t.width=e,t.lineHeight=n,f+=n,p=Math.max(p,e)}var r=new Hm;if(null!=t&&(t+=""),!t)return r;for(var i,o=e.width,a=e.height,s=e.overflow,l="break"!==s&&"breakAll"!==s||null==o?null:{width:o,accumWidth:0,breakAll:"breakAll"===s},u=zm.lastIndex=0;null!=(i=zm.exec(t));){var h=i.index;h>u&&wo(r,t.substring(u,h),e,l),wo(r,i[2],e,l,i[1]),u=zm.lastIndex}u<t.length&&wo(r,t.substring(u,t.length),e,l);var c=[],f=0,p=0,d=e.padding,g="truncate"===s,v="truncate"===e.lineOverflow;t:for(var y=0;y<r.lines.length;y++){for(var m=r.lines[y],_=0,x=0,w=0;w<m.tokens.length;w++){var b=m.tokens[w],S=b.styleName&&e.rich[b.styleName]||{},M=b.textPadding=S.padding,T=M?M[1]+M[3]:0,C=b.font=S.font||e.font;b.contentHeight=zr(C);var k=z(S.height,b.contentHeight);if(b.innerHeight=k,M&&(k+=M[0]+M[2]),b.height=k,b.lineHeight=F(S.lineHeight,e.lineHeight,k),b.align=S&&S.align||e.align,b.verticalAlign=S&&S.verticalAlign||"middle",v&&null!=a&&f+b.lineHeight>a){w>0?(m.tokens=m.tokens.slice(0,w),n(m,x,_),r.lines=r.lines.slice(0,y+1)):r.lines=r.lines.slice(0,y);break t}var D=S.width,I=null==D||"auto"===D;if("string"==typeof D&&"%"===D.charAt(D.length-1))b.percentWidth=D,c.push(b),b.contentWidth=Pr(b.text,C);else{if(I){var A=S.backgroundColor,L=A&&A.image;L&&(L=ho(L),po(L)&&(b.width=Math.max(b.width,L.width*k/L.height)))}var O=g&&null!=o?o-x:null;null!=O&&O<b.width?!I||T>O?(b.text="",b.width=b.contentWidth=0):(b.text=go(b.text,O-T,C,e.ellipsis,{minChar:e.truncateMinChar}),b.width=b.contentWidth=Pr(b.text,C)):b.contentWidth=Pr(b.text,C)}b.width+=T,x+=b.width,S&&(_=Math.max(_,b.lineHeight))}n(m,x,_)}r.outerWidth=r.width=z(o,p),r.outerHeight=r.height=z(a,f),r.contentHeight=f,r.contentWidth=p,d&&(r.outerWidth+=d[1]+d[3],r.outerHeight+=d[0]+d[2]);for(var y=0;y<c.length;y++){var b=c[y],P=b.percentWidth;b.width=parseInt(P,10)/100*r.width}return r}function wo(t,e,n,r,i){var o,a,s=""===e,l=i&&n.rich[i]||{},u=t.lines,h=l.font||n.font,c=!1;if(r){var f=l.padding,p=f?f[1]+f[3]:0;if(null!=l.width&&"auto"!==l.width){var d=Fr(l.width,r.width)+p;u.length>0&&d+r.accumWidth>r.width&&(o=e.split("\n"),c=!0),r.accumWidth=d}else{var g=Mo(e,h,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v<o.length;v++){var y=o[v],m=new Fm;if(m.styleName=i,m.text=y,m.isLineHolder=!y&&!s,m.width="number"==typeof l.width?l.width:a?a[v]:Pr(y,h),v||c)u.push(new Vm([m]));else{var _=(u[u.length-1]||(u[0]=new Vm)).tokens,x=_.length;1===x&&_[0].isLineHolder?_[0]=m:(y||!x||s)&&_.push(m)}}}function bo(t){var e=t.charCodeAt(0);return e>=32&&591>=e||e>=880&&4351>=e||e>=4608&&5119>=e||e>=7680&&8303>=e}function So(t){return bo(t)?Wm[t]?!0:!1:!0}function Mo(t,e,n,r,i){for(var o=[],a=[],s="",l="",u=0,h=0,c=0;c<t.length;c++){var f=t.charAt(c);if("\n"!==f){var p=Pr(f,e),d=r?!1:!So(f);(o.length?h+p>n:i+h+p>n)?h?(s||l)&&(d?(s||(s=l,l="",u=0,h=u),o.push(s),a.push(h-u),l+=f,u+=p,s="",h=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(h),s=f,h=p)):d?(o.push(l),a.push(u),l=f,u=p):(o.push(f),a.push(p)):(h+=p,d?(l+=f,u+=p):(l&&(s+=l,l="",u=0),s+=f))}else l&&(s+=l,h+=u),o.push(s),a.push(h),s="",l="",u=0,h=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(h)),1===o.length&&(h+=i),{accumWidth:h,lines:o,linesWidths:a}}function To(t,e,n){return Zm.copy(t.getBoundingRect()),t.transform&&Zm.applyTransform(t.transform),Km.width=e,Km.height=n,!Zm.intersect(Km)}function Co(t,e,n,r,i,o){i[0]=$m(t,n),i[1]=$m(e,r),o[0]=Qm(t,n),o[1]=Qm(e,r)}function ko(t,e,n,r,i,o,a,s,l,u){var h=fn,c=un,f=h(t,n,i,a,o_);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;f>p;p++){var d=c(t,n,i,a,o_[p]);l[0]=$m(d,l[0]),u[0]=Qm(d,u[0])}f=h(e,r,o,s,a_);for(var p=0;f>p;p++){var g=c(e,r,o,s,a_[p]);l[1]=$m(g,l[1]),u[1]=Qm(g,u[1])}l[0]=$m(t,l[0]),u[0]=Qm(t,u[0]),l[0]=$m(a,l[0]),u[0]=Qm(a,u[0]),l[1]=$m(e,l[1]),u[1]=Qm(e,u[1]),l[1]=$m(s,l[1]),u[1]=Qm(s,u[1])}function Do(t,e,n,r,i,o,a,s){var l=_n,u=vn,h=Qm($m(l(t,n,i),1),0),c=Qm($m(l(e,r,o),1),0),f=u(t,n,i,h),p=u(e,r,o,c);a[0]=$m(t,i,f),a[1]=$m(e,o,p),s[0]=Qm(t,i,f),s[1]=Qm(e,o,p)}function Io(t,e,n,r,i,o,a,s,l){var u=me,h=_e,c=Math.abs(i-o);if(1e-4>c%e_&&c>1e-4)return s[0]=t-n,s[1]=e-r,l[0]=t+n,void(l[1]=e+r);if(n_[0]=t_(i)*n+t,n_[1]=Jm(i)*r+e,r_[0]=t_(o)*n+t,r_[1]=Jm(o)*r+e,u(s,n_,r_),h(l,n_,r_),i%=e_,0>i&&(i+=e_),o%=e_,0>o&&(o+=e_),i>o&&!a?o+=e_:o>i&&a&&(i+=e_),a){var f=o;o=i,i=f}for(var p=0;o>p;p+=Math.PI/2)p>i&&(i_[0]=t_(p)*n+t,i_[1]=Jm(p)*r+e,u(s,i_,s),h(l,i_,l))}function Ao(t){var e=Math.round(t/__*1e8)/1e8;return e%2*__}function Lo(t,e){var n=Ao(t[0]);0>n&&(n+=x_);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=x_?i=n+x_:e&&n-i>=x_?i=n-x_:!e&&n>i?i=n+(x_-Ao(n-i)):e&&i>n&&(i=n-(x_-Ao(i-n))),t[0]=n,t[1]=i}function Oo(t,e,n,r,i,o,a){if(0===i)return!1;var s=i,l=0,u=t;if(a>e+s&&a>r+s||e-s>a&&r-s>a||o>t+s&&o>n+s||t-s>o&&n-s>o)return!1;if(t===n)return Math.abs(o-t)<=s/2;l=(e-r)/(t-n),u=(t*r-n*e)/(t-n);var h=l*o-a+u,c=h*h/(l*l+1);return s/2*s/2>=c}function Po(t,e,n,r,i,o,a,s,l,u,h){if(0===l)return!1;var c=l;if(h>e+c&&h>r+c&&h>o+c&&h>s+c||e-c>h&&r-c>h&&o-c>h&&s-c>h||u>t+c&&u>n+c&&u>i+c&&u>a+c||t-c>u&&n-c>u&&i-c>u&&a-c>u)return!1;var f=dn(t,e,n,r,i,o,a,s,u,h,null);return c/2>=f}function Ro(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;if(l>e+u&&l>r+u&&l>o+u||e-u>l&&r-u>l&&o-u>l||s>t+u&&s>n+u&&s>i+u||t-u>s&&n-u>s&&i-u>s)return!1;var h=wn(t,e,n,r,i,o,s,l,null);return u/2>=h}function No(t){return t%=M_,0>t&&(t+=M_),t}function Bo(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var h=Math.sqrt(s*s+l*l);if(h-u>n||n>h+u)return!1;if(Math.abs(r-i)%T_<1e-4)return!0;if(o){var c=r;r=No(i),i=No(c)}else r=No(r),i=No(i);r>i&&(i+=T_);var f=Math.atan2(l,s);return 0>f&&(f+=T_),f>=r&&i>=f||f+T_>=r&&i>=f+T_}function Eo(t,e,n,r,i,o){if(o>e&&o>r||e>o&&r>o)return 0;if(r===e)return 0;var a=(o-e)/(r-e),s=e>r?1:-1;(1===a||0===a)&&(s=e>r?.5:-.5);var l=a*(n-t)+t;return l===i?1/0:l>i?s:0}function zo(t,e){return Math.abs(t-e)<D_}function Fo(){var t=A_[0];A_[0]=A_[1],A_[1]=t}function Vo(t,e,n,r,i,o,a,s,l,u){if(u>e&&u>r&&u>o&&u>s||e>u&&r>u&&o>u&&s>u)return 0;var h=cn(e,r,o,s,u,I_);if(0===h)return 0;for(var c=0,f=-1,p=void 0,d=void 0,g=0;h>g;g++){var v=I_[g],y=0===v||1===v?.5:1,m=un(t,n,i,a,v);l>m||(0>f&&(f=fn(e,r,o,s,A_),A_[1]<A_[0]&&f>1&&Fo(),p=un(e,r,o,s,A_[0]),f>1&&(d=un(e,r,o,s,A_[1]))),c+=2===f?v<A_[0]?e>p?y:-y:v<A_[1]?p>d?y:-y:d>s?y:-y:v<A_[0]?e>p?y:-y:p>s?y:-y)}return c}function Ho(t,e,n,r,i,o,a,s){if(s>e&&s>r&&s>o||e>s&&r>s&&o>s)return 0;var l=mn(e,r,o,s,I_);if(0===l)return 0;var u=_n(e,r,o);if(u>=0&&1>=u){for(var h=0,c=vn(e,r,o,u),f=0;l>f;f++){var p=0===I_[f]||1===I_[f]?.5:1,d=vn(t,n,i,I_[f]);a>d||(h+=I_[f]<u?e>c?p:-p:c>o?p:-p)}return h}var p=0===I_[0]||1===I_[0]?.5:1,d=vn(t,n,i,I_[0]);return a>d?0:e>o?p:-p}function Wo(t,e,n,r,i,o,a,s){if(s-=e,s>n||-n>s)return 0;var l=Math.sqrt(n*n-s*s);I_[0]=-l,I_[1]=l;var u=Math.abs(r-i);if(1e-4>u)return 0;if(u>=k_-1e-4){r=0,i=k_;var h=o?1:-1;return a>=I_[0]+t&&a<=I_[1]+t?h:0}if(r>i){var c=r;r=i,i=c}0>r&&(r+=k_,i+=k_);for(var f=0,p=0;2>p;p++){var d=I_[p];if(d+t>a){var g=Math.atan2(s,d),h=o?1:-1;0>g&&(g=k_+g),(g>=r&&i>=g||g+k_>=r&&i>=g+k_)&&(g>Math.PI/2&&g<1.5*Math.PI&&(h=-h),f+=h)}}return f}function Uo(t,e,n,r,i){for(var o,a,s=t.data,l=t.len(),u=0,h=0,c=0,f=0,p=0,d=0;l>d;){var g=s[d++],v=1===d;switch(g===C_.M&&d>1&&(n||(u+=Eo(h,c,f,p,r,i))),v&&(h=s[d],c=s[d+1],f=h,p=c),g){case C_.M:f=s[d++],p=s[d++],h=f,c=p;break;case C_.L:if(n){if(Oo(h,c,s[d],s[d+1],e,r,i))return!0}else u+=Eo(h,c,s[d],s[d+1],r,i)||0;h=s[d++],c=s[d++];break;case C_.C:if(n){if(Po(h,c,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],e,r,i))return!0}else u+=Vo(h,c,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],r,i)||0;h=s[d++],c=s[d++];break;case C_.Q:if(n){if(Ro(h,c,s[d++],s[d++],s[d],s[d+1],e,r,i))return!0}else u+=Ho(h,c,s[d++],s[d++],s[d],s[d+1],r,i)||0;h=s[d++],c=s[d++];break;case C_.A:var y=s[d++],m=s[d++],_=s[d++],x=s[d++],w=s[d++],b=s[d++];d+=1;var S=!!(1-s[d++]);o=Math.cos(w)*_+y,a=Math.sin(w)*x+m,v?(f=o,p=a):u+=Eo(h,c,o,a,r,i);var M=(r-y)*x/_+y;if(n){if(Bo(y,m,x,w,w+b,S,e,M,i))return!0}else u+=Wo(y,m,x,w,w+b,S,M,i);h=Math.cos(w+b)*_+y,c=Math.sin(w+b)*x+m;break;case C_.R:f=h=s[d++],p=c=s[d++];var T=s[d++],C=s[d++];if(o=f+T,a=p+C,n){if(Oo(f,p,o,p,e,r,i)||Oo(o,p,o,a,e,r,i)||Oo(o,a,f,a,e,r,i)||Oo(f,a,f,p,e,r,i))return!0}else u+=Eo(o,p,o,a,r,i),u+=Eo(f,a,f,p,r,i);break;case C_.Z:if(n){if(Oo(h,c,f,p,e,r,i))return!0}else u+=Eo(h,c,f,p,r,i);h=f,c=p}}return n||zo(c,p)||(u+=Eo(h,c,f,p,r,i)||0),0!==u}function Go(t,e,n){return Uo(t,0,!1,e,n)}function qo(t,e,n,r){return Uo(t,e,!0,n,r)}function Xo(t){return!!(t&&"string"!=typeof t&&t.width&&t.height)}function Yo(t,e){var n,r,i,o,a=e.x,s=e.y,l=e.width,u=e.height,h=e.r;0>l&&(a+=l,l=-l),0>u&&(s+=u,u=-u),"number"==typeof h?n=r=i=o=h:h instanceof Array?1===h.length?n=r=i=o=h[0]:2===h.length?(n=i=h[0],r=o=h[1]):3===h.length?(n=h[0],r=o=h[1],i=h[2]):(n=h[0],r=h[1],i=h[2],o=h[3]):n=r=i=o=0;var c;n+r>l&&(c=n+r,n*=l/c,r*=l/c),i+o>l&&(c=i+o,i*=l/c,o*=l/c),r+i>u&&(c=r+i,r*=u/c,i*=u/c),n+o>u&&(c=n+o,n*=u/c,o*=u/c),t.moveTo(a+n,s),t.lineTo(a+l-r,s),0!==r&&t.arc(a+l-r,s+r,r,-Math.PI/2,0),t.lineTo(a+l,s+u-i),0!==i&&t.arc(a+l-i,s+u-i,i,0,Math.PI/2),t.lineTo(a+o,s+u),0!==o&&t.arc(a+o,s+u-o,o,Math.PI/2,Math.PI),t.lineTo(a,s+n),0!==n&&t.arc(a+n,s+n,n,Math.PI,1.5*Math.PI)}function jo(t,e,n){if(e){var r=e.x1,i=e.x2,o=e.y1,a=e.y2;t.x1=r,t.x2=i,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(V_(2*r)===V_(2*i)&&(t.x1=t.x2=Ko(r,s,!0)),V_(2*o)===V_(2*a)&&(t.y1=t.y2=Ko(o,s,!0)),t):t}}function Zo(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,a=e.height;t.x=r,t.y=i,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=Ko(r,s,!0),t.y=Ko(i,s,!0),t.width=Math.max(Ko(r+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Ko(i+a,s,!1)-t.y,0===a?0:1),t):t}}function Ko(t,e,n){if(!e)return t;var r=V_(2*t);return(r+V_(e))%2===0?r/2:(r+(n?1:-1))/2}function $o(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?Eg+"px":t+"px":t}function Qo(t,e){for(var n=0;n<K_.length;n++){var r=K_[n],i=e[r];null!=i&&(t[r]=i)}}function Jo(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function ta(t){return ea(t),v(t.rich,ea),t}function ea(t){if(t){t.font=Y_.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||j_[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||Z_[n]?n:"top";var r=t.padding;r&&(t.padding=H(t.padding))}}function na(t,e){return null==t||0>=e||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function ra(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function ia(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function oa(t){var e=t.text;return null!=e&&(e+=""),e}function aa(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}function sa(t){return null!=t&&"none"!==t}function la(t){if(C(t)){var e=gx.get(t);return e||(e=En(t,-.1),gx.put(t,e)),e}if(P(t)){var n=h({},t);return n.colorStops=y(t.colorStops,function(t){return{offset:t.offset,color:En(t.color,-.1)}}),n}return t}function ua(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function ha(t){ua(t,"emphasis",ox)}function ca(t){t.hoverState===ox&&ua(t,"normal",rx)}function fa(t){ua(t,"blur",ix)}function pa(t){t.hoverState===ix&&ua(t,"normal",rx)}function da(t){t.selected=!0}function ga(t){t.selected=!1}function va(t,e,n){e(t,n)}function ya(t,e,n){va(t,e,n),t.isGroup&&t.traverse(function(t){va(t,e,n)})}function ma(t,e,n,r){for(var i=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=i[s];o[s]=null==l?r&&r[s]:l}for(var a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}function _a(t,e,n,r){var i=n&&f(n,"select")>=0,o=!1;if(t instanceof R_){var a=ex(t),s=i?a.selectFill||a.normalFill:a.normalFill,l=i?a.selectStroke||a.normalStroke:a.normalStroke;if(sa(s)||sa(l)){r=r||{};var u=r.style||{};"inherit"===u.fill?(o=!0,r=h({},r),u=h({},u),u.fill=s):!sa(u.fill)&&sa(s)?(o=!0,r=h({},r),u=h({},u),u.fill=la(s)):!sa(u.stroke)&&sa(l)&&(o||(r=h({},r),u=h({},u)),u.stroke=la(l)),r.style=u}}if(r&&null==r.z2){o||(r=h({},r));var c=t.z2EmphasisLift;r.z2=t.z2+(null!=c?c:lx)}return r}function xa(t,e,n){if(n&&null==n.z2){n=h({},n);var r=t.z2SelectLift;n.z2=t.z2+(null!=r?r:ux)}return n}function wa(t,e,n){var r=f(t.currentStates,e)>=0,i=t.style.opacity,o=r?null:ma(t,["opacity"],e,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=h({},n),a=h({opacity:r?i:.1*o.opacity},a),n.style=a),n}function ba(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return _a(this,t,e,n);if("blur"===t)return wa(this,t,n);if("select"===t)return xa(this,t,n)}return n}function Sa(t){t.stateProxy=ba;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=ba),n&&(n.stateProxy=ba)}function Ma(t,e){!Oa(t,e)&&!t.__highByOuter&&ya(t,ha)}function Ta(t,e){!Oa(t,e)&&!t.__highByOuter&&ya(t,ca)}function Ca(t,e){t.__highByOuter|=1<<(e||0),ya(t,ha)}function ka(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&ya(t,ca)}function Da(t){ya(t,fa)}function Ia(t){ya(t,pa)}function Aa(t){ya(t,da)}function La(t){ya(t,ga)}function Oa(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Pa(t){var e=t.getModel(),n=[],r=[];e.eachComponent(function(e,i){var o=nx(i),a="series"===e,s=a?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse(function(t){pa(t)}),a&&n.push(i)),o.isBlured=!1}),v(r,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)})}function Ra(t,e,n,r){function i(t,e){for(var n=0;n<e.length;n++){var r=t.getItemGraphicEl(e[n]);r&&Ia(r)}}var o=r.getModel();if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=o.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];o.eachSeries(function(t){var o=a===t,u=t.coordinateSystem;u&&u.master&&(u=u.master);var h=u&&s?u===s:o;if(!("series"===n&&!o||"coordinateSystem"===n&&!h||"series"===e&&o)){var c=r.getViewOfSeriesModel(t);if(c.group.traverse(function(t){fa(t)}),g(e))i(t.getData(),e);else if(I(e))for(var f=w(e),p=0;p<f.length;p++)i(t.getData(f[p]),e[f[p]]);l.push(t),nx(t).isBlured=!0}}),o.eachComponent(function(t,e){if("series"!==t){var n=r.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,o)}})}}function Na(t,e,n){if(null!=t&&null!=e){var r=n.getModel().getComponent(t,e);if(r){nx(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse(function(t){fa(t)})}}}function Ba(t,e,n){var r=t.seriesIndex,i=t.getData(e.dataType);if(i){var o=qi(i,e);o=(M(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&s>l;)a=i.getItemGraphicEl(l++);if(a){var u=$_(a);Ra(r,u.focus,u.blurScope,n)}else{var h=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);null!=h&&Ra(r,h,c,n)}}}function Ea(t,e,n,r){var i={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return i;var o=r.getModel().getComponent(t,e);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===$_(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function za(t,e,n){var r=$_(t),i=Ea(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&Na(r.componentMainType,r.componentIndex,n),v(o,function(t){return Ma(t,e)})):(Ra(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&Na(r.componentMainType,r.componentIndex,n),Ma(t,e))}function Fa(t,e,n){Pa(n);var r=$_(t),i=Ea(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?v(i,function(t){return Ta(t,e)}):Ta(t,e)}function Va(t,e){if($a(e)){var n=e.dataType,r=t.getData(n),i=qi(r,e);M(i)||(i=[i]),t[e.type===dx?"toggleSelect":e.type===fx?"select":"unselect"](i,n)}}function Ha(t){var e=t.getAllData();v(e,function(e){var n=e.data,r=e.type;n.eachItemGraphicEl(function(e,n){t.isSelected(n,r)?Aa(e):La(e)})})}function Wa(t){var e=[];return t.eachSeries(function(t){var n=t.getAllData();v(n,function(n){var r=(n.data,n.type),i=t.getSelectedDataIndices();if(i.length>0){var o={dataIndex:i,seriesIndex:t.seriesIndex};null!=r&&(o.dataType=r),e.push(o)}})}),e}function Ua(t,e,n){ja(t,!0),ya(t,Sa),Xa(t,e,n)}function Ga(t){ja(t,!1)}function qa(t,e,n,r){r?Ga(t):Ua(t,e,n)}function Xa(t,e,n){var r=$_(t);null!=e?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}function Ya(t,e,n,r){n=n||"itemStyle";for(var i=0;i<vx.length;i++){var o=vx[i],a=e.getModel([o,n]),s=t.ensureState(o);s.style=r?r(a):a[yx[n]]()}}function ja(t,e){var n=e===!1,r=t;t.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Za(t){return!(!t||!t.__highDownDispatcher)}function Ka(t){var e=tx[t];return null==e&&32>=J_&&(e=tx[t]=J_++),e}function $a(t){var e=t.type;return e===fx||e===px||e===dx}function Qa(t){var e=t.type;return e===hx||e===cx}function Ja(t){var e=ex(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}function ts(t,e){if(e){var n,r,i,o,a,s,l=t.data,u=t.len(),h=mx.M,c=mx.C,f=mx.L,p=mx.R,d=mx.A,g=mx.Q;for(i=0,o=0;u>i;){switch(n=l[i++],o=i,r=0,n){case h:r=1;break;case f:r=1;break;case c:r=3;break;case g:r=2;break;case d:var v=e[4],y=e[5],m=xx(e[0]*e[0]+e[1]*e[1]),_=xx(e[2]*e[2]+e[3]*e[3]),x=bx(-e[1]/_,e[0]/m);l[i]*=m,l[i++]+=v,l[i]*=_,l[i++]+=y,l[i++]*=m,l[i++]*=_,l[i++]+=x,l[i++]+=x,i+=2,o=i;break;case p:s[0]=l[i++],s[1]=l[i++],ye(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[i++],s[1]+=l[i++],ye(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;r>a;a++){var w=_x[a];w[0]=l[i++],w[1]=l[i++],ye(w,w,e),l[o++]=w[0],l[o++]=w[1]}}t.increaseVersion()}}function es(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function ns(t,e){return(t[0]*e[0]+t[1]*e[1])/(es(t)*es(e))}function rs(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(ns(t,e))}function is(t,e,n,r,i,o,a,s,l,u,h){var c=l*(Cx/180),f=Tx(c)*(t-n)/2+Mx(c)*(e-r)/2,p=-1*Mx(c)*(t-n)/2+Tx(c)*(e-r)/2,d=f*f/(a*a)+p*p/(s*s);d>1&&(a*=Sx(d),s*=Sx(d));var g=(i===o?-1:1)*Sx((a*a*s*s-a*a*p*p-s*s*f*f)/(a*a*p*p+s*s*f*f))||0,v=g*a*p/s,y=g*-s*f/a,m=(t+n)/2+Tx(c)*v-Mx(c)*y,_=(e+r)/2+Mx(c)*v+Tx(c)*y,x=rs([1,0],[(f-v)/a,(p-y)/s]),w=[(f-v)/a,(p-y)/s],b=[(-1*f-v)/a,(-1*p-y)/s],S=rs(w,b);if(ns(w,b)<=-1&&(S=Cx),ns(w,b)>=1&&(S=0),0>S){var M=Math.round(S/Cx*1e6)/1e6;S=2*Cx+M%2*Cx}h.addData(u,m,_,a,s,x,S,c,o)}function os(t){var e=new S_;if(!t)return e;var n,r=0,i=0,o=r,a=i,s=S_.CMD,l=t.match(kx);if(!l)return e;for(var u=0;u<l.length;u++){for(var h=l[u],c=h.charAt(0),f=void 0,p=h.match(Dx)||[],d=p.length,g=0;d>g;g++)p[g]=parseFloat(p[g]);for(var v=0;d>v;){var y=void 0,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0,S=void 0,M=r,T=i,C=void 0,k=void 0;switch(c){case"l":r+=p[v++],i+=p[v++],f=s.L,e.addData(f,r,i);break;case"L":r=p[v++],i=p[v++],f=s.L,e.addData(f,r,i);break;case"m":r+=p[v++],i+=p[v++],f=s.M,e.addData(f,r,i),o=r,a=i,c="l";break;case"M":r=p[v++],i=p[v++],f=s.M,e.addData(f,r,i),o=r,a=i,c="L";break;case"h":r+=p[v++],f=s.L,e.addData(f,r,i);break;case"H":r=p[v++],f=s.L,e.addData(f,r,i);break;case"v":i+=p[v++],f=s.L,e.addData(f,r,i);break;case"V":i=p[v++],f=s.L,e.addData(f,r,i);break;case"C":f=s.C,e.addData(f,p[v++],p[v++],p[v++],p[v++],p[v++],p[v++]),r=p[v-2],i=p[v-1];break;case"c":f=s.C,e.addData(f,p[v++]+r,p[v++]+i,p[v++]+r,p[v++]+i,p[v++]+r,p[v++]+i),r+=p[v-2],i+=p[v-1];break;case"S":y=r,m=i,C=e.len(),k=e.data,n===s.C&&(y+=r-k[C-4],m+=i-k[C-3]),f=s.C,M=p[v++],T=p[v++],r=p[v++],i=p[v++],e.addData(f,y,m,M,T,r,i);break;case"s":y=r,m=i,C=e.len(),k=e.data,n===s.C&&(y+=r-k[C-4],m+=i-k[C-3]),f=s.C,M=r+p[v++],T=i+p[v++],r+=p[v++],i+=p[v++],e.addData(f,y,m,M,T,r,i);break;case"Q":M=p[v++],T=p[v++],r=p[v++],i=p[v++],f=s.Q,e.addData(f,M,T,r,i);break;case"q":M=p[v++]+r,T=p[v++]+i,r+=p[v++],i+=p[v++],f=s.Q,e.addData(f,M,T,r,i);break;case"T":y=r,m=i,C=e.len(),k=e.data,n===s.Q&&(y+=r-k[C-4],m+=i-k[C-3]),r=p[v++],i=p[v++],f=s.Q,e.addData(f,y,m,r,i);break;case"t":y=r,m=i,C=e.len(),k=e.data,n===s.Q&&(y+=r-k[C-4],m+=i-k[C-3]),r+=p[v++],i+=p[v++],f=s.Q,e.addData(f,y,m,r,i);
break;case"A":_=p[v++],x=p[v++],w=p[v++],b=p[v++],S=p[v++],M=r,T=i,r=p[v++],i=p[v++],f=s.A,is(M,T,r,i,b,S,_,x,w,f,e);break;case"a":_=p[v++],x=p[v++],w=p[v++],b=p[v++],S=p[v++],M=r,T=i,r+=p[v++],i+=p[v++],f=s.A,is(M,T,r,i,b,S,_,x,w,f,e)}}("z"===c||"Z"===c)&&(f=s.Z,e.addData(f),r=o,i=a),n=f}return e.toStatic(),e}function as(t){return null!=t.setData}function ss(t,e){var n=os(t),r=h({},e);return r.buildPath=function(t){if(as(t)){t.setData(n.data);var e=t.getContext();e&&t.rebuildPath(e,1)}else{var e=t;n.rebuildPath(e,1)}},r.applyTransform=function(t){ts(n,t),this.dirtyShape()},r}function ls(t,e){return new Ix(ss(t,e))}function us(t,n){var r=ss(t,n),i=function(t){function n(e){var n=t.call(this,e)||this;return n.applyTransform=r.applyTransform,n.buildPath=r.buildPath,n}return e(n,t),n}(Ix);return i}function hs(t,e){for(var n=[],r=t.length,i=0;r>i;i++){var o=t[i];n.push(o.getUpdatedPathProxy(!0))}var a=new R_(e);return a.createPathProxy(),a.buildPath=function(t){if(as(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a}function cs(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,h=a-i,c=s-o,f=c*l-h*u;return Gx>f*f?void 0:(f=(h*(e-o)-c*(t-i))/f,[t+f*l,e+f*u])}function fs(t,e,n,r,i,o,a){var s=t-n,l=e-r,u=(a?o:-o)/Hx(s*s+l*l),h=u*l,c=-u*s,f=t+h,p=e+c,d=n+h,g=r+c,v=(f+d)/2,y=(p+g)/2,m=d-f,_=g-p,x=m*m+_*_,w=i-o,b=f*g-d*p,S=(0>_?-1:1)*Hx(Wx(0,w*w*x-b*b)),M=(b*_-m*S)/x,T=(-b*m-_*S)/x,C=(b*_+m*S)/x,k=(-b*m+_*S)/x,D=M-v,I=T-y,A=C-v,L=k-y;return D*D+I*I>A*A+L*L&&(M=C,T=k),{cx:M,cy:T,x0:-h,y0:-c,x1:M*(i/w-1),y1:T*(i/w-1)}}function ps(t){var e;if(M(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}function ds(t,e){var n,r=Wx(e.r,0),i=Wx(e.r0||0,0),o=r>0,a=i>0;if(o||a){if(o||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var h=e.cx,c=e.cy,f=!!e.clockwise,p=Vx(u-l),d=p>Nx&&p%Nx;if(d>Gx&&(p=d),r>Gx)if(p>Nx-Gx)t.moveTo(h+r*Ex(l),c+r*Bx(l)),t.arc(h,c,r,l,u,!f),i>Gx&&(t.moveTo(h+i*Ex(u),c+i*Bx(u)),t.arc(h,c,i,u,l,f));else{var g=void 0,v=void 0,y=void 0,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0,S=void 0,M=void 0,T=void 0,C=void 0,k=void 0,D=void 0,I=void 0,A=void 0,L=r*Ex(l),O=r*Bx(l),P=i*Ex(u),R=i*Bx(u),N=p>Gx;if(N){var B=e.cornerRadius;B&&(n=ps(B),g=n[0],v=n[1],y=n[2],m=n[3]);var E=Vx(r-i)/2;if(_=Ux(E,y),x=Ux(E,m),w=Ux(E,g),b=Ux(E,v),T=S=Wx(_,x),C=M=Wx(w,b),(S>Gx||M>Gx)&&(k=r*Ex(u),D=r*Bx(u),I=i*Ex(l),A=i*Bx(l),Rx>p)){var z=cs(L,O,I,A,k,D,P,R);if(z){var F=L-z[0],V=O-z[1],H=k-z[0],W=D-z[1],U=1/Bx(zx((F*H+V*W)/(Hx(F*F+V*V)*Hx(H*H+W*W)))/2),G=Hx(z[0]*z[0]+z[1]*z[1]);T=Ux(S,(r-G)/(U+1)),C=Ux(M,(i-G)/(U-1))}}}if(N)if(T>Gx){var q=Ux(y,T),X=Ux(m,T),Y=fs(I,A,L,O,r,q,f),j=fs(k,D,P,R,r,X,f);t.moveTo(h+Y.cx+Y.x0,c+Y.cy+Y.y0),S>T&&q===X?t.arc(h+Y.cx,c+Y.cy,T,Fx(Y.y0,Y.x0),Fx(j.y0,j.x0),!f):(q>0&&t.arc(h+Y.cx,c+Y.cy,q,Fx(Y.y0,Y.x0),Fx(Y.y1,Y.x1),!f),t.arc(h,c,r,Fx(Y.cy+Y.y1,Y.cx+Y.x1),Fx(j.cy+j.y1,j.cx+j.x1),!f),X>0&&t.arc(h+j.cx,c+j.cy,X,Fx(j.y1,j.x1),Fx(j.y0,j.x0),!f))}else t.moveTo(h+L,c+O),t.arc(h,c,r,l,u,!f);else t.moveTo(h+L,c+O);if(i>Gx&&N)if(C>Gx){var q=Ux(g,C),X=Ux(v,C),Y=fs(P,R,k,D,i,-X,f),j=fs(L,O,I,A,i,-q,f);t.lineTo(h+Y.cx+Y.x0,c+Y.cy+Y.y0),M>C&&q===X?t.arc(h+Y.cx,c+Y.cy,C,Fx(Y.y0,Y.x0),Fx(j.y0,j.x0),!f):(X>0&&t.arc(h+Y.cx,c+Y.cy,X,Fx(Y.y0,Y.x0),Fx(Y.y1,Y.x1),!f),t.arc(h,c,i,Fx(Y.cy+Y.y1,Y.cx+Y.x1),Fx(j.cy+j.y1,j.cx+j.x1),f),q>0&&t.arc(h+j.cx,c+j.cy,q,Fx(j.y1,j.x1),Fx(j.y0,j.x0),!f))}else t.lineTo(h+P,c+R),t.arc(h,c,i,u,l,f);else t.lineTo(h+P,c+R)}else t.moveTo(h,c);t.closePath()}}}function gs(t,e,n,r){var i,o,a,s,l=[],u=[],h=[],c=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var f=0,p=t.length;p>f;f++)me(a,a,t[f]),_e(s,s,t[f]);me(a,a,r[0]),_e(s,s,r[1])}for(var f=0,p=t.length;p>f;f++){var d=t[f];if(n)i=t[f?f-1:p-1],o=t[(f+1)%p];else{if(0===f||f===p-1){l.push(ee(t[f]));continue}i=t[f-1],o=t[f+1]}oe(u,o,i),ce(u,u,e);var g=pe(d,i),v=pe(d,o),y=g+v;0!==y&&(g/=y,v/=y),ce(h,u,-g),ce(c,u,v);var m=re([],d,h),_=re([],d,c);r&&(_e(m,m,a),me(m,m,s),_e(_,_,a),me(_,_,s)),l.push(m),l.push(_)}return n&&l.push(l.shift()),l}function vs(t,e,n){var r=e.smooth,i=e.points;if(i&&i.length>=2){if(r){var o=gs(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;(n?a:a-1)>s;s++){var l=o[2*s],u=o[2*s+1],h=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{t.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;c>s;s++)t.lineTo(i[s][0],i[s][1])}n&&t.closePath()}}function ys(t,e,n){var r=t.cpx2,i=t.cpy2;return null!=r||null!=i?[(n?hn:un)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?hn:un)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?yn:vn)(t.x1,t.cpx1,t.x2,e),(n?yn:vn)(t.y1,t.cpy1,t.y2,e)]}function ms(t,e,n,r,i){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s=e&&e.isAnimationEnabled(),l="update"===t;if(s){var u=void 0,h=void 0,c=void 0;r?(u=z(r.duration,200),h=z(r.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),h=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(h=o.easing),null!=o.delay&&(c=o.delay)),T(c)&&(c=c(n,i)),T(u)&&(u=u(n));var f={duration:u||0,delay:c,easing:h};return f}return null}function _s(t,e,n,r,i,o,a){var s,l=!1;T(i)?(a=o,o=i,i=null):I(i)&&(o=i.cb,a=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var h=ms(t,r,i,u?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,i):null);if(h&&h.duration>0){var c=h.duration,f=h.delay,p=h.easing,d={duration:c,delay:f||0,easing:p,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,d):e.animateTo(n,d)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function xs(t,e,n,r,i,o){_s("update",t,e,n,r,i,o)}function ws(t,e,n,r,i,o){_s("enter",t,e,n,r,i,o)}function bs(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var n=t.animators[e];if("leave"===n.scope)return!0}return!1}function Ss(t,e,n,r,i,o){bs(t)||_s("leave",t,e,n,r,i,o)}function Ms(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),Ss(t,{style:{opacity:0}},e,n,r)}function Ts(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||Ms(t,e,n,r)}):Ms(t,e,n,r)}function Cs(t){mw(t).oldStyle=t.style}function ks(t){return R_.extend(t)}function Ds(t,e){return bw(t,e)}function Is(t,e){ww[t]=e}function As(t){return ww.hasOwnProperty(t)?ww[t]:void 0}function Ls(t,e,n,r){var i=ls(t,e);return n&&("center"===r&&(n=Ps(n,i.getBoundingRect())),Rs(i,n)),i}function Os(t,e,n){var r=new F_({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var i={width:t.width,height:t.height};r.setStyle(Ps(e,i))}}});return r}function Ps(t,e){var n,r=e.width/e.height,i=t.height*r;i<=t.width?n=t.height:(i=t.width,n=i/r);var o=t.x+t.width/2,a=t.y+t.height/2;return{x:o-i/2,y:a-n/2,width:i,height:n}}function Rs(t,e){if(t.applyTransform){var n=t.getBoundingRect(),r=n.calculateTransform(e);t.applyTransform(r)}}function Ns(t,e){for(var n=Ee([]);t&&t!==e;)Fe(n,t.getLocalTransform(),n),t=t.parent;return n}function Bs(t,e){return y(t,function(t){var n=t[0];n=_w(n,e.x),n=xw(n,e.x+e.width);var r=t[1];return r=_w(r,e.y),r=xw(r,e.y+e.height),[n,r]})}function Es(t,e){var n=_w(t.x,e.x),r=xw(t.x+t.width,e.x+e.width),i=_w(t.y,e.y),o=xw(t.y+t.height,e.y+e.height);return r>=n&&o>=i?{x:n,y:i,width:r-n,height:o-i}:void 0}function zs(t,e,n){var r=h({rectHover:!0},e),i=r.style={strokeNoScale:!0};return n=n||{x:-1,y:-1,width:2,height:2},t?0===t.indexOf("image://")?(i.image=t.slice(8),c(i,n),new F_(r)):Ls(t.replace("path://",""),r,n,"center"):void 0}function Fs(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Vs(t,e){if(t)if(M(t))for(var n=0;n<t.length;n++)Fs(t[n],e);else Fs(t,e)}function Hs(t,e){for(var n=0;n<ax.length;n++){var r=ax[n],i=e[r],o=t.ensureState(r);o.style=o.style||{},o.style.text=i}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}function Ws(t,e,n){var r,i=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;i&&(r=i.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=T(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:r},u=0;u<ax.length;u++){var h=ax[u],c=e[h];l[h]=z(i?i.getFormattedLabel(o,h,null,a,c&&c.get("formatter")):null,r)}return l}function Us(t,e,n,r){n=n||Mw;for(var i=t instanceof Y_,o=!1,a=0;a<sx.length;a++){var s=e[sx[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=i?t:t.getTextContent();if(o){i||(l||(l=new Y_,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=Ws(n,e),h=e.normal,c=!!h.getShallow("show"),f=qs(h,r&&r.normal,n,!1,!i);f.text=u.normal,i||t.setTextConfig(Xs(h,n,!1));for(var a=0;a<ax.length;a++){var p=ax[a],s=e[p];if(s){var d=l.ensureState(p),g=!!z(s.getShallow("show"),c);if(g!==c&&(d.ignore=!g),d.style=qs(s,r&&r[p],n,!0,!i),d.style.text=u[p],!i){var v=t.ensureState(p);v.textConfig=Xs(s,n,!0)}}}l.silent=!!h.getShallow("silent"),null!=l.style.x&&(f.x=l.style.x),null!=l.style.y&&(f.y=l.style.y),l.ignore=!c,l.useStyle(f),l.dirty(),n.enableTextSetter&&(Dw(l).setLabelText=function(t){var r=Ws(n,e,t);Hs(l,r)})}else l&&(l.ignore=!0);t.dirty()}function Gs(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<ax.length;r++){var i=ax[r];n[i]=t.getModel([i,e])}return n}function qs(t,e,n,r,i){var o={};return Ys(o,t,n,r,i),e&&h(o,e),o}function Xs(t,e,n){e=e||{};var r,i={},o=t.getShallow("rotate"),a=z(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return r=t.getShallow("position")||(n?null:"inside"),"outside"===r&&(r=e.defaultOutsidePosition||"top"),null!=r&&(i.position=r),null!=s&&(i.offset=s),null!=o&&(o*=Math.PI/180,i.rotation=o),null!=a&&(i.distance=a),i.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",i}function Ys(t,e,n,r,i){n=n||Mw;var o,a=e.ecModel,s=a&&a.option.textStyle,l=js(e);if(l){o={};for(var u in l)if(l.hasOwnProperty(u)){var h=e.getModel(["rich",u]);Zs(o[u]={},h,s,n,r,i,!1,!0)}}o&&(t.rich=o);var c=e.get("overflow");c&&(t.overflow=c);var f=e.get("minMargin");null!=f&&(t.margin=f),Zs(t,e,s,n,r,i,!0,!1)}function js(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||Mw).rich;if(n){e=e||{};for(var r=w(n),i=0;i<r.length;i++){var o=r[i];e[o]=1}}t=t.parentModel}return e}function Zs(t,e,n,r,i,o,a,s){n=!i&&n||Mw;var l=r&&r.inheritColor,u=e.getShallow("color"),h=e.getShallow("textBorderColor"),c=z(e.getShallow("opacity"),n.opacity);("inherit"===u||"auto"===u)&&(u=l?l:null),("inherit"===h||"auto"===h)&&(h=l?l:null),o||(u=u||n.color,h=h||n.textBorderColor),null!=u&&(t.fill=u),null!=h&&(t.stroke=h);var f=z(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=f&&(t.lineWidth=f);var p=z(e.getShallow("textBorderType"),n.textBorderType);null!=p&&(t.lineDash=p);var d=z(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=d&&(t.lineDashOffset=d),i||null!=c||s||(c=r&&r.defaultOpacity),null!=c&&(t.opacity=c),i||o||null==t.fill&&r.inheritColor&&(t.fill=r.inheritColor);for(var g=0;g<Tw.length;g++){var v=Tw[g],y=z(e.getShallow(v),n[v]);null!=y&&(t[v]=y)}for(var g=0;g<Cw.length;g++){var v=Cw[g],y=e.getShallow(v);null!=y&&(t[v]=y)}if(null==t.verticalAlign){var m=e.getShallow("baseline");null!=m&&(t.verticalAlign=m)}if(!a||!r.disableBox){for(var g=0;g<kw.length;g++){var v=kw[g],y=e.getShallow(v);null!=y&&(t[v]=y)}var _=e.getShallow("borderType");null!=_&&(t.borderDash=_),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function Ks(t,e){var n=e&&e.getModel("textStyle");return U([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}function $s(t,e,n,r,i){function o(r){var o=Qi(n,a.precision,l,u,r);a.interpolatedValue=1===r?null:o;var h=Ws({labelDataIndex:e,labelFetcher:i,defaultText:s?s(o):o+""},a.statesModels,o);Hs(t,h)}var a=Dw(t);if(a.valueAnimation&&a.prevValue!==a.value){var s=a.defaultInterpolatedText,l=z(a.interpolatedValue,a.prevValue),u=a.value;t.percent=0,(null==a.prevValue?ws:xs)(t,{percent:1},r,e,null,o)}}function Qs(t){return[t||"",Vw++].join("_")}function Js(t){var e={};t.registerSubTypeDefaulter=function(t,n){var r=Ji(t);e[r.main]=n},t.determineSubType=function(n,r){var i=r.type;if(!i){var o=Ji(n).main;t.hasSubTypes(n)&&e[o]&&(i=e[o](r))}return i}}function tl(t,e){function n(t){var n={},o=[];return v(t,function(a){var s=r(n,a),l=s.originalDeps=e(a),u=i(l,t);s.entryCount=u.length,0===s.entryCount&&o.push(a),v(u,function(t){f(s.predecessor,t)<0&&s.predecessor.push(t);var e=r(n,t);f(e.successor,t)<0&&e.successor.push(a)})}),{graph:n,noEntryList:o}}function r(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function i(t,e){var n=[];return v(t,function(t){f(e,t)>=0&&n.push(t)}),n}t.topologicalTravel=function(t,e,r,i){function o(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}function a(t){h[t]=!0,o(t)}if(t.length){var s=n(e),l=s.graph,u=s.noEntryList,h={};for(v(t,function(t){h[t]=!0});u.length;){var c=u.pop(),f=l[c],p=!!h[c];p&&(r.call(i,c,f.originalDeps.slice()),delete h[c]),v(f.successor,p?a:o)}v(h,function(){var t="";throw new Error(t)})}}}function el(t,e){t=t.toUpperCase(),Yw[t]=new Fw(e),Xw[t]=e}function nl(t){if(C(t)){var e=Xw[t.toUpperCase()]||{};return t===Uw||t===Gw?s(e):l(s(e),s(Xw[qw]),!1)}return l(s(t),s(Xw[qw]),!1)}function rl(t){return Yw[t]}function il(){return Yw[qw]}function ol(t,e){return t+="","0000".substr(0,e-t.length)+t}function al(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function sl(t){return t===al(t)}function ll(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ul(t,e,n,r){var i=di(t),o=i[pl(n)](),a=i[dl(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[gl(n)](),u=i["get"+(n?"UTC":"")+"Day"](),h=i[vl(n)](),c=(h-1)%12+1,f=i[yl(n)](),p=i[ml(n)](),d=i[_l(n)](),g=r instanceof Fw?r:rl(r||jw)||il(),v=g.getModel("time"),y=v.get("month"),m=v.get("monthAbbr"),_=v.get("dayOfWeek"),x=v.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,ol(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,ol(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ol(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,ol(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,ol(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,ol(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,ol(d,3)).replace(/{S}/g,d+"")}function hl(t,e,n,r,i){var o=null;if(C(n))o=n;else if(T(n))o=n(t.value,e,{level:t.level});else{var a=h({},tb);if(t.level>0)for(var s=0;s<rb.length;++s)a[rb[s]]="{primary|"+a[rb[s]]+"}";var l=n?n.inherit===!1?n:c(n,a):a,u=cl(t.value,i);if(l[u])o=l[u];else if(l.inherit){for(var f=ib.indexOf(u),s=f-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(M(o)){var p=null==t.level?0:t.level>=0?t.level:o.length+t.level;p=Math.min(p,o.length-1),o=o[p]}}return ul(new Date(t.value),o,i,r)}function cl(t,e){var n=di(t),r=n[dl(e)]()+1,i=n[gl(e)](),o=n[vl(e)](),a=n[yl(e)](),s=n[ml(e)](),l=n[_l(e)](),u=0===l,h=u&&0===s,c=h&&0===a,f=c&&0===o,p=f&&1===i,d=p&&1===r;return d?"year":p?"month":f?"day":c?"hour":h?"minute":u?"second":"millisecond"}function fl(t,e,n){var r=D(t)?di(t):t;switch(e=e||cl(t,n)){case"year":return r[pl(n)]();case"half-year":return r[dl(n)]()>=6?1:0;case"quarter":return Math.floor((r[dl(n)]()+1)/4);case"month":return r[dl(n)]();case"day":return r[gl(n)]();case"half-day":return r[vl(n)]()/24;case"hour":return r[vl(n)]();case"minute":return r[yl(n)]();case"second":return r[ml(n)]();case"millisecond":return r[_l(n)]()}}function pl(t){return t?"getUTCFullYear":"getFullYear"}function dl(t){return t?"getUTCMonth":"getMonth"}function gl(t){return t?"getUTCDate":"getDate"}function vl(t){return t?"getUTCHours":"getHours"}function yl(t){return t?"getUTCMinutes":"getMinutes"}function ml(t){return t?"getUTCSeconds":"getSeconds"}function _l(t){return t?"getUTCMilliseconds":"getMilliseconds"}function xl(t){return t?"setUTCFullYear":"setFullYear"}function wl(t){return t?"setUTCMonth":"setMonth"}function bl(t){return t?"setUTCDate":"setDate"}function Sl(t){return t?"setUTCHours":"setHours"}function Ml(t){return t?"setUTCMinutes":"setMinutes"}function Tl(t){return t?"setUTCSeconds":"setSeconds"}function Cl(t){return t?"setUTCMilliseconds":"setMilliseconds"}function kl(t,e,n,r,i,o,a,s){var l=new Y_({style:{text:t,font:e,align:n,verticalAlign:r,padding:i,rich:o,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function Dl(t){if(!wi(t))return C(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Il(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 Al(t,e,n){M(e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;o<i.length;o++){var a=ab[o];t=t.replace(sb(a),sb(a,0))}for(var s=0;r>s;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(sb(ab[l],s),n?Ce(u):u)}return t}function Ll(t,e){var n=C(t)?{color:t,extraCssText:e}:t||{},r=n.color,i=n.type;e=n.extraCssText;var o=n.renderMode||"html";if(!r)return"";if("html"===o)return"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Ce(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ce(r)+";"+(e||"")+'"></span>';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|}  ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Ol(t,e,n){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var r=di(e),i=n?"getUTC":"get",o=r[i+"FullYear"](),a=r[i+"Month"]()+1,s=r[i+"Date"](),l=r[i+"Hours"](),u=r[i+"Minutes"](),h=r[i+"Seconds"](),c=r[i+"Milliseconds"]();return t=t.replace("MM",ol(a,2)).replace("M",a).replace("yyyy",o).replace("yy",ol(o%100+"",2)).replace("dd",ol(s,2)).replace("d",s).replace("hh",ol(l,2)).replace("h",l).replace("mm",ol(u,2)).replace("m",u).replace("ss",ol(h,2)).replace("s",h).replace("SSS",ol(c,3))}function Pl(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function Rl(t,e){return e=e||"transparent",C(t)?t:I(t)?t.colorStops&&(t.colorStops[0]||{}).color||e:e}function Nl(t,e,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;e.eachChild(function(l,u){var h,c,f=l.getBoundingRect(),p=e.childAt(u+1),d=p&&p.getBoundingRect();if("horizontal"===t){var g=f.width+(d?-d.x+f.x:0);h=o+g,h>r||l.newline?(o=0,h=g,a+=s+n,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(d?-d.y+f.y:0);c=a+v,c>i||l.newline?(o+=s+n,a=0,c=v,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=h+n:a=c+n)})}function Bl(t,e,n){n=ob(n||0);var r=e.width,i=e.height,o=ri(t.left,r),a=ri(t.top,i),s=ri(t.right,r),l=ri(t.bottom,i),u=ri(t.width,r),h=ri(t.height,i),c=n[2]+n[0],f=n[1]+n[3],p=t.aspect;switch(isNaN(u)&&(u=r-s-f-o),isNaN(h)&&(h=i-l-c-a),null!=p&&(isNaN(u)&&isNaN(h)&&(p>r/i?u=.8*r:h=.8*i),isNaN(u)&&(u=p*h),isNaN(h)&&(h=u/p)),isNaN(o)&&(o=r-s-u-f),isNaN(a)&&(a=i-l-h-c),t.left||t.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-f}switch(t.top||t.bottom){case"middle":case"center":a=i/2-h/2-n[0];break;case"bottom":a=i-h-c}o=o||0,a=a||0,isNaN(u)&&(u=r-f-o-(s||0)),isNaN(h)&&(h=i-c-a-(l||0));var d=new Fv(o+n[3],a+n[0],u,h);return d.margin=n,d}function El(t){var e=t.layoutMode||t.constructor.layoutMode;return I(e)?e:e?{type:e}:null}function zl(t,e,n){function r(n,r){var a={},l=0,u={},h=0,c=2;if(lb(n,function(e){u[e]=t[e]}),lb(n,function(t){i(e,t)&&(a[t]=u[t]=e[t]),o(a,t)&&l++,o(u,t)&&h++}),s[r])return o(e,n[1])?u[n[2]]=null:o(e,n[2])&&(u[n[1]]=null),u;if(h!==c&&l){if(l>=c)return a;for(var f=0;f<n.length;f++){var p=n[f];if(!i(a,p)&&i(t,p)){a[p]=t[p];break}}return a}return u}function i(t,e){return t.hasOwnProperty(e)}function o(t,e){return null!=t[e]&&"auto"!==t[e]}function a(t,e,n){lb(t,function(t){e[t]=n[t]})}var s=n&&n.ignoreSize;!M(s)&&(s=[s,s]);var l=r(hb[0],0),u=r(hb[1],1);a(hb[0],t,l),a(hb[1],t,u)}function Fl(t){return Vl({},t)}function Vl(t,e){return e&&t&&lb(ub,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}function Hl(t){var e=[];return v(fb.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=y(e,function(t){return Ji(t).main}),"dataset"!==t&&f(e,"dataset")<=0&&e.unshift("dataset"),e}function Wl(t){Db(t).datasetMap=Y()}function Ul(t,e,n){function r(t,e,n){for(var r=0;n>r;r++)t.push(e+r)}function i(t){var e=t.dimsDef;return e?e.length:1}var o={},a=ql(e);if(!a||!t)return o;var s,l,u=[],h=[],c=e.ecModel,f=Db(c).datasetMap,p=a.uid+"_"+n.seriesLayoutBy;t=t.slice(),v(t,function(e,n){var r=I(e)?e:t[n]={name:e};"ordinal"===r.type&&null==s&&(s=n,l=i(r)),o[r.name]=[]});var d=f.get(p)||f.set(p,{categoryWayDim:l,valueWayDim:0});return v(t,function(t,e){var n=t.name,a=i(t);if(null==s){var l=d.valueWayDim;r(o[n],l,a),r(h,l,a),d.valueWayDim+=a}else if(s===e)r(o[n],0,a),r(u,0,a);else{var l=d.categoryWayDim;r(o[n],l,a),r(h,l,a),d.categoryWayDim+=a}}),u.length&&(o.itemName=u),h.length&&(o.seriesName=h),o}function Gl(t,e,n){var r={},i=ql(t);if(!i)return r;var o,a=e.sourceFormat,s=e.dimensionsDefine;(a===wb||a===bb)&&v(s,function(t,e){"name"===(I(t)?t.name:t)&&(o=e)});var l=function(){function t(t){return null!=t.v&&null!=t.n}for(var r={},i={},l=[],u=0,h=Math.min(5,n);h>u;u++){var c=jl(e.data,a,e.seriesLayoutBy,s,e.startIndex,u);l.push(c);var f=c===kb.Not;if(f&&null==r.v&&u!==o&&(r.v=u),(null==r.n||r.n===r.v||!f&&l[r.n]===kb.Not)&&(r.n=u),t(r)&&l[r.n]!==kb.Not)return r;f||(c===kb.Might&&null==i.v&&u!==o&&(i.v=u),(null==i.n||i.n===i.v)&&(i.n=u))}return t(r)?r:t(i)?i:null}();if(l){r.value=[l.v];var u=null!=o?o:l.n;r.itemName=[u],r.seriesName=[u]}return r}function ql(t){var e=t.get("data",!0);return e?void 0:Zi(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Im).models[0]}function Xl(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?Zi(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Im).models:[]}function Yl(t,e){return jl(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function jl(t,e,n,r,i,o){function a(t){var e=C(t);return null!=t&&isFinite(t)&&""!==t?e?kb.Might:kb.Not:e&&"-"!==t?kb.Must:void 0}var s,l=5;if(L(t))return kb.Not;var u,h;if(r){var c=r[o];I(c)?(u=c.name,h=c.type):C(c)&&(u=c)}if(null!=h)return"ordinal"===h?kb.Must:kb.Not;if(e===xb){var f=t;if(n===Cb){for(var p=f[o],d=0;d<(p||[]).length&&l>d;d++)if(null!=(s=a(p[i+d])))return s}else for(var d=0;d<f.length&&l>d;d++){var g=f[i+d];if(g&&null!=(s=a(g[o])))return s}}else if(e===wb){var v=t;if(!u)return kb.Not;for(var d=0;d<v.length&&l>d;d++){var y=v[d];if(y&&null!=(s=a(y[u])))return s}}else if(e===bb){var m=t;if(!u)return kb.Not;var p=m[u];if(!p||L(p))return kb.Not;for(var d=0;d<p.length&&l>d;d++)if(null!=(s=a(p[d])))return s}else if(e===_b)for(var _=t,d=0;d<_.length&&l>d;d++){var y=_[d],x=Ii(y);if(!M(x))return kb.Not;if(null!=(s=a(x[o])))return s}return kb.Not}function Zl(t,e,n){var r=Ib.get(e);if(!r)return n;var i=r(t);return i?n.concat(i):n}function Kl(t,e){for(var n=t.length,r=0;n>r;r++)if(t[r].length>e)return t[r];return t[n-1]}function $l(t,e,n,r,i,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var h=null!=a&&r?Kl(r,a):n;if(h=h||n,h&&h.length){var c=h[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%h.length,c}}function Ql(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}function Jl(t,e){if(e){var n=e.seriesIndex,r=e.seriesId,i=e.seriesName;return null!=n&&t.componentIndex!==n||null!=r&&t.id!==r||null!=i&&t.name!==i}}function tu(t,e){var n=t.color&&!t.colorLayer;v(e,function(e,r){"colorLayer"===r&&n||fb.hasClass(r)||("object"==typeof e?t[r]=t[r]?l(t[r],e,!1):s(e):null==t[r]&&(t[r]=e))})}function eu(t,e,n){if(M(e)){var r=Y();return v(e,function(t){if(null!=t){var e=Vi(t,null);null!=e&&r.set(t,!0)}}),_(n,function(e){return e&&r.get(e[t])})}var i=Vi(e,null);return _(n,function(e){return e&&null!=i&&e[t]===i})}function nu(t,e){return e.hasOwnProperty("subType")?_(t,function(t){return t&&t.subType===e.subType}):t}function ru(t){var e=Y();return t&&v(ki(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}function iu(t,e,n){function r(t){v(e,function(e){e(t,n)})}var i,o,a=[],s=t.baseOption,l=t.timeline,u=t.options,h=t.media,c=!!t.media,f=!!(u||l||s&&s.timeline);return s?(o=s,o.timeline||(o.timeline=l)):((f||c)&&(t.options=t.media=null),o=t),c&&M(h)&&v(h,function(t){t&&t.option&&(t.query?a.push(t):i||(i=t))}),r(o),v(u,function(t){return r(t)}),v(a,function(t){return r(t.option)}),{baseOption:o,timelineOptions:u||[],mediaDefault:i,mediaList:a}}function ou(t,e,n){var r={width:e,height:n,aspectratio:e/n},i=!0;return v(t,function(t,e){var n=e.match(qb);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();au(r[a],t,o)||(i=!1)}}),i}function au(t,e,n){return"min"===n?t>=e:"max"===n?e>=t:t===e}function su(t,e){return t.join(",")===e.join(",")}function lu(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=Zb.length;r>n;n++){var i=Zb[n],o=e.normal,a=e.emphasis;o&&o[i]&&(t[i]=t[i]||{},t[i].normal?l(t[i].normal,o[i]):t[i].normal=o[i],o[i]=null),a&&a[i]&&(t[i]=t[i]||{},t[i].emphasis?l(t[i].emphasis,a[i]):t[i].emphasis=a[i],a[i]=null)}}function uu(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,i=t[e].emphasis;r&&(n?(t[e].normal=t[e].emphasis=null,c(t[e],r)):t[e]=r),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function hu(t){uu(t,"itemStyle"),uu(t,"lineStyle"),uu(t,"areaStyle"),uu(t,"label"),uu(t,"labelLine"),uu(t,"upperLabel"),uu(t,"edgeLabel")}function cu(t,e){var n=jb(t)&&t[e],r=jb(n)&&n.textStyle;if(r)for(var i=0,o=km.length;o>i;i++){var a=km[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}function fu(t){t&&(hu(t),cu(t,"label"),t.emphasis&&cu(t.emphasis,"label"))}function pu(t){if(jb(t)){lu(t),hu(t),cu(t,"label"),cu(t,"upperLabel"),cu(t,"edgeLabel"),t.emphasis&&(cu(t.emphasis,"label"),cu(t.emphasis,"upperLabel"),cu(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(lu(e),fu(e));var n=t.markLine;n&&(lu(n),fu(n));var r=t.markArea;r&&fu(r);var i=t.data;if("graph"===t.type){i=i||t.nodes;var o=t.links||t.edges;if(o&&!L(o))for(var a=0;a<o.length;a++)fu(o[a]);v(t.categories,function(t){hu(t)})}if(i&&!L(i))for(var a=0;a<i.length;a++)fu(i[a]);if(e=t.markPoint,e&&e.data)for(var s=e.data,a=0;a<s.length;a++)fu(s[a]);if(n=t.markLine,n&&n.data)for(var l=n.data,a=0;a<l.length;a++)M(l[a])?(fu(l[a][0]),fu(l[a][1])):fu(l[a]);"gauge"===t.type?(cu(t,"axisLabel"),cu(t,"title"),cu(t,"detail")):"treemap"===t.type?(uu(t.breadcrumb,"itemStyle"),v(t.levels,function(t){hu(t)})):"tree"===t.type&&hu(t.leaves)}}function du(t){return M(t)?t:t?[t]:[]}function gu(t){return(M(t)?t[0]:t)||{}}function vu(t,e){Yb(du(t.series),function(t){jb(t)&&pu(t)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Yb(n,function(e){Yb(du(t[e]),function(t){t&&(cu(t,"axisLabel"),cu(t.axisPointer,"label"))})}),Yb(du(t.parallel),function(t){var e=t&&t.parallelAxisDefault;cu(e,"axisLabel"),cu(e&&e.axisPointer,"label")}),Yb(du(t.calendar),function(t){uu(t,"itemStyle"),cu(t,"dayLabel"),cu(t,"monthLabel"),cu(t,"yearLabel")}),Yb(du(t.radar),function(t){cu(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)}),Yb(du(t.geo),function(t){jb(t)&&(fu(t),Yb(du(t.regions),function(t){fu(t)}))}),Yb(du(t.timeline),function(t){fu(t),uu(t,"label"),uu(t,"itemStyle"),uu(t,"controlStyle",!0);var e=t.data;M(e)&&v(e,function(t){I(t)&&(uu(t,"label"),uu(t,"itemStyle"))})}),Yb(du(t.toolbox),function(t){uu(t,"iconStyle"),Yb(t.feature,function(t){uu(t,"iconStyle")})}),cu(gu(t.axisPointer),"label"),cu(gu(t.tooltip).axisPointer,"label")}function yu(t,e){for(var n=e.split(","),r=t,i=0;i<n.length&&(r=r&&r[n[i]],null!=r);i++);return r}function mu(t,e,n,r){for(var i,o=e.split(","),a=t,s=0;s<o.length-1;s++)i=o[s],null==a[i]&&(a[i]={}),a=a[i];(r||null==a[o[s]])&&(a[o[s]]=n)}function _u(t){t&&v(Kb,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}function xu(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<Qb.length;n++){var r=Qb[n][1],i=Qb[n][0];null!=e[r]&&(e[i]=e[r])}}function wu(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function bu(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Su(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}function Mu(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&Mu(t[n].children,e)}function Tu(t,e){vu(t,e),t.series=ki(t.series),v(t.series,function(t){if(I(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){null!=t.clockWise&&(t.clockwise=t.clockWise),wu(t.label);var n=t.data;if(n&&!L(n))for(var r=0;r<n.length;r++)wu(n[r]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var i=yu(t,"pointer.color");null!=i&&mu(t,"itemStyle.color",i)}else if("bar"===e){xu(t),xu(t.backgroundStyle),xu(t.emphasis);var n=t.data;if(n&&!L(n))for(var r=0;r<n.length;r++)"object"==typeof n[r]&&(xu(n[r]),xu(n[r]&&n[r].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),bu(t),Mu(t.data,bu)}else"graph"===e||"sankey"===e?Su(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&c(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),_u(t)}}),t.dataRange&&(t.visualMap=t.dataRange),v($b,function(e){var n=t[e];n&&(M(n)||(n=[n]),v(n,function(t){_u(t)}))})}function Cu(t){var e=Y();t.eachSeries(function(t){var n=t.get("stack");if(n){var r=e.get(n)||e.set(n,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(o)}}),e.each(ku)}function ku(t){v(t,function(e,n){var r=[],i=[0/0,0/0],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(o,u,h){var c=a.get(e.stackedDimension,h);if(isNaN(c))return i;var f,p;s?p=a.getRawIndex(h):f=a.get(e.stackedByDimension,h);for(var d=0/0,g=n-1;g>=0;g--){var v=t[g];if(s||(p=v.data.rawIndexOf(v.stackedByDimension,f)),p>=0){var y=v.data.getByRawIndex(v.stackResultDimension,p);if("all"===l||"positive"===l&&y>0||"negative"===l&&0>y||"samesign"===l&&c>=0&&y>0||"samesign"===l&&0>=c&&0>y){c=ci(c,y),d=y;break}}}return r[0]=c,r[1]=d,r})})}function Du(t){return t instanceof Jb}function Iu(t,e,n){n=n||Ou(t);var r=e.seriesLayoutBy,i=Pu(t,n,r,e.sourceHeader,e.dimensions),o=new Jb({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:s(e)});
return o}function Au(t){return new Jb({data:t,sourceFormat:L(t)?Sb:_b})}function Lu(t){return new Jb({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:s(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Ou(t){var e=Mb;if(L(t))e=Sb;else if(M(t)){0===t.length&&(e=xb);for(var n=0,r=t.length;r>n;n++){var i=t[n];if(null!=i){if(M(i)){e=xb;break}if(I(i)){e=wb;break}}}}else if(I(t))for(var o in t)if($(t,o)&&g(t[o])){e=bb;break}return e}function Pu(t,e,n,r,i){var o,a;if(!t)return{dimensionsDefine:Nu(i),startIndex:a,dimensionsDetectedCount:o};if(e===xb){var s=t;"auto"===r||null==r?Bu(function(t){null!=t&&"-"!==t&&(C(t)?null==a&&(a=1):a=0)},n,s,10):a=D(r)?r:r?1:0,i||1!==a||(i=[],Bu(function(t,e){i[e]=null!=t?t+"":""},n,s,1/0)),o=i?i.length:n===Cb?s.length:s[0]?s[0].length:null}else if(e===wb)i||(i=Ru(t));else if(e===bb)i||(i=[],v(t,function(t,e){i.push(e)}));else if(e===_b){var l=Ii(t[0]);o=M(l)&&l.length||1}return{startIndex:a,dimensionsDefine:Nu(i),dimensionsDetectedCount:o}}function Ru(t){for(var e,n=0;n<t.length&&!(e=t[n++]););return e?w(e):void 0}function Nu(t){if(t){var e=Y();return y(t,function(t){t=I(t)?t:{name:t};var n={name:t.name,displayName:t.displayName,type:t.type};if(null==n.name)return n;n.name+="",null==n.displayName&&(n.displayName=n.name);var r=e.get(n.name);return r?n.name+="-"+r.count++:e.set(n.name,{count:1}),n})}}function Bu(t,e,n,r){if(e===Cb)for(var i=0;i<n.length&&r>i;i++)t(n[i]?n[i][0]:null,i);else for(var o=n[0]||[],i=0;i<o.length&&r>i;i++)t(o[i],i)}function Eu(t){var e=t.sourceFormat;return e===wb||e===bb}function zu(t,e){var n=nS[Hu(t,e)];return n}function Fu(t,e){var n=iS[Hu(t,e)];return n}function Vu(t){var e=aS[t];return e}function Hu(t,e){return t===xb?t+"_"+e:t}function Wu(t,e,n){if(t){var r=t.getRawDataItem(e);if(null!=r){var i=t.getStore(),o=i.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=i.getDimensionProperty(a);return Vu(o)(r,a,s)}var l=r;return o===_b&&(l=Ii(r)),l}}}function Uu(t){return new uS(t)}function Gu(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||D(t)||null==t||"-"===t||(t=+di(t)),null==t||""===t?0/0:+t)}function qu(t,e){var n=new fS,r=t.data,i=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==Tb&&Ti(a);var s=[],l={},u=t.dimensionsDefine;if(u)v(u,function(t,e){var n=t.name,r={index:e,name:n,displayName:t.displayName};if(s.push(r),null!=n){var i="";$(l,n)&&Ti(i),l[n]=r}});else for(var h=0;h<t.dimensionsDetectedCount;h++)s.push({index:h});var c=zu(i,Tb);e.__isBuiltIn&&(n.getRawDataItem=function(t){return c(r,o,s,t)},n.getRawData=iv(Xu,null,t)),n.cloneRawData=iv(Yu,null,t);var f=Fu(i,Tb);n.count=iv(f,null,r,o,s);var p=Vu(i);n.retrieveValue=function(t,e){var n=c(r,o,s,t);return d(n,e)};var d=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=s[e];return n?p(t,e,n.name):void 0}};return n.getDimensionInfo=iv(ju,null,s,l),n.cloneAllDimensionInfo=iv(Zu,null,s),n}function Xu(t){var e=t.sourceFormat;if(!Ju(e)){var n="";Ti(n)}return t.data}function Yu(t){var e=t.sourceFormat,n=t.data;if(!Ju(e)){var r="";Ti(r)}if(e===xb){for(var i=[],o=0,a=n.length;a>o;o++)i.push(n[o].slice());return i}if(e===wb){for(var i=[],o=0,a=n.length;a>o;o++)i.push(h({},n[o]));return i}}function ju(t,e,n){return null!=n?D(n)||!isNaN(n)&&!$(e,n)?t[n]:$(e,n)?e[n]:void 0:void 0}function Zu(t){return s(t)}function Ku(t){t=s(t);var e=t.type,n="";e||Ti(n);var r=e.split(":");2!==r.length&&Ti(n);var i=!1;"echarts"===r[0]&&(e=r[1],i=!0),t.__isBuiltIn=i,pS.set(e,t)}function $u(t,e,n){var r=ki(t),i=r.length,o="";i||Ti(o);for(var a=0,s=i;s>a;a++){var l=r[a];e=Qu(l,e,n,1===i?null:a),a!==s-1&&(e.length=Math.max(e.length,1))}return e}function Qu(t,e){var n="";e.length||Ti(n),I(t)||Ti(n);var r=t.type,i=pS.get(r);i||Ti(n);var o=y(e,function(t){return qu(t,i)}),a=ki(i.transform({upstream:o[0],upstreamList:o,config:s(t.config)}));return y(a,function(t,n){var r="";I(t)||Ti(r),t.data||Ti(r);var i=Ou(t.data);Ju(i)||Ti(r);var o,a=e[0];if(a&&0===n&&!t.dimensions){var s=a.startIndex;s&&(t.data=a.data.slice(0,s).concat(t.data)),o={seriesLayoutBy:Tb,sourceHeader:s,dimensions:a.metaRawOption.dimensions}}else o={seriesLayoutBy:Tb,sourceHeader:0,dimensions:t.dimensions};return Iu(t.data,o,null)})}function Ju(t){return t===xb||t===wb}function th(t){return t>65535?gS:vS}function eh(){return[1/0,-1/0]}function nh(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function rh(t,e,n,r,i){var o=_S[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;s>u;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(r)}function ih(t){var e=t.option.transform;e&&G(t.option.transform)}function oh(t){return"series"===t.mainType}function ah(t){throw new Error(t)}function sh(t,e){return e.type=t,e}function lh(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return Rl(r)}function uh(t){var e,n,r,i,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),h=u.length,c=o.getRawValue(a),f=M(c),p=lh(o,a);if(h>1||f&&!h){var d=hh(c,o,a,u,p);e=d.inlineValues,n=d.inlineValueTypes,r=d.blocks,i=d.inlineValues[0]}else if(h){var g=l.getDimensionInfo(u[0]);i=e=Wu(l,a,u[0]),n=g.type}else i=e=f?c[0]:c;var v=Hi(o),y=v&&o.name||"",m=l.getName(a),_=s?y:m;return sh("section",{header:y,noHeader:s||!v,sortParam:i,blocks:[sh("nameValue",{markerType:"item",markerColor:p,name:_,noName:!U(_),value:e,valueType:n})].concat(r||[])})}function hh(t,e,n,r,i){function o(t,e){var n=a.getDimensionInfo(e);n&&n.otherDims.tooltip!==!1&&(s?h.push(sh("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:t,valueType:n.type})):(l.push(t),u.push(n.type)))}var a=e.getData(),s=m(t,function(t,e,n){var r=a.getDimensionInfo(n);return t=t||r&&r.tooltip!==!1&&null!=r.displayName},!1),l=[],u=[],h=[];return r.length?v(r,function(t){o(Wu(a,n,t),t)}):v(t,o),{inlineValues:l,inlineValueTypes:u,blocks:h}}function ch(t,e){return t.getName(e)||t.getId(e)}function fh(t){var e=t.name;Hi(t)||(t.name=ph(t)||e)}function ph(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return v(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)}),r.join(" ")}function dh(t){return t.model.getRawData().count()}function gh(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),vh}function vh(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function yh(t,e){v(j(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,S(mh,e))})}function mh(t,e){var n=_h(t);return n&&n.setOutputEnd((e||this).count()),e}function _h(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}function xh(){var t=Xi();return function(e){var n=t(e),r=e.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}function wh(t,e,n){t&&Za(t)&&("emphasis"===e?Ca:ka)(t,n)}function bh(t,e,n){var r=qi(t,e),i=e&&null!=e.highlightKey?Ka(e.highlightKey):null;null!=r?v(ki(r),function(e){wh(t.getItemGraphicEl(e),n,i)}):t.eachItemGraphicEl(function(t){wh(t,n,i)})}function Sh(t){return kS(t.model)}function Mh(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=i&&CS(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,r,i),AS[l]}function Th(t,e,n){function r(){h=(new Date).getTime(),c=null,t.apply(a,s||[])}var i,o,a,s,l,u=0,h=0,c=null;e=e||0;var f=function(){for(var t=[],f=0;f<arguments.length;f++)t[f]=arguments[f];i=(new Date).getTime(),a=this,s=t;var p=l||e,d=l||n;l=null,o=i-(d?u:h)-p,clearTimeout(c),d?c=setTimeout(r,p):o>=0?r():c=setTimeout(r,-o),u=i};return f.clear=function(){c&&(clearTimeout(c),c=null)},f.debounceNextCall=function(t){l=t},f}function Ch(t,e){var n=t.visualStyleMapper||OS[e];return n?n:(console.warn("Unknown style type '"+e+"'."),OS.itemStyle)}function kh(t,e){var n=t.visualDrawType||PS[e];return n?n:(console.warn("Unknown style type '"+e+"'."),"fill")}function Dh(t,e){e=e||{},c(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new gm,r=new U_({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i=new Y_({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),o=new U_({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});n.add(o);var a;return e.showSpinner&&(a=new aw({shape:{startAngle:-zS/2,endAngle:-zS/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:3*zS/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*zS/2}).delay(300).start("circularInOut"),n.add(a)),n.resize=function(){var n=i.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&a.setShape({cx:l,cy:u}),o.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}function Ih(t){t.overallReset(t.ecModel,t.api,t.payload)}function Ah(t){return t.overallProgress&&Lh}function Lh(){this.agent.dirty(),this.getDownstream().dirty()}function Oh(){this.agent&&this.agent.dirty()}function Ph(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Rh(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=ki(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?y(e,function(t,e){return Nh(e)}):VS}function Nh(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var o=e.start;o<e.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(e,r)}}function Bh(t){return t.data.count()}function Eh(t){IS=null;try{t(HS,WS)}catch(e){}return IS}function zh(t,e){for(var n in e.prototype)t[n]=Q}function Fh(t,e,n){switch(n){case"color":var r=t.getItemVisual(e,"style");return r[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}function Vh(t,e){switch(e){case"color":var n=t.getVisual("style");return n[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function Hh(t,e){function n(e,n){var r=[];return e.eachComponent({mainType:"series",subType:t,query:n},function(t){r.push(t.seriesIndex)}),r}v([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(t){e(t[0],function(e,r,i){e=h({},e),i.dispatchAction(h(e,{type:t[1],seriesIndex:n(r,e)}))})})}function Wh(t,e,n,r,i){var o=t+e;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,r=t.option.selectedMap,a=i.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),u=qi(l,i.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:l.getName(M(u)?u[0]:u),selected:C(r)?r:h({},r)})}})}function Uh(t,e,n){t.on("selectchanged",function(t){var r=n.getModel();t.isFromClick?(Wh("map","selectchanged",e,r,t),Wh("pie","selectchanged",e,r,t)):"select"===t.fromAction?(Wh("map","selected",e,r,t),Wh("pie","selected",e,r,t)):"unselect"===t.fromAction&&(Wh("map","unselected",e,r,t),Wh("pie","unselected",e,r,t))})}function Gh(t,e,n){for(var r;t&&(!e(t)||(r=t,!n));)t=t.__hostTarget||t.parent;return r}function qh(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function Xh(t,e,n,r,i,o,a){var s=0===t.indexOf("empty");s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return l=0===t.indexOf("image://")?Os(t.slice(8),new Fv(e,n,r,i),a?"center":"cover"):0===t.indexOf("path://")?Ls(t.slice(7),{},new Fv(e,n,r,i),a?"center":"cover"):new cM({shape:{symbolType:t,x:e,y:n,width:r,height:i}}),l.__isEmptyBrush=s,l.setColor=qh,o&&l.setColor(o),l}function Yh(t){return isFinite(t)}function jh(t,e,n){var r=null==e.x?0:e.x,i=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;e.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=Yh(r)?r:0,i=Yh(i)?i:1,o=Yh(o)?o:0,a=Yh(a)?a:0;var s=t.createLinearGradient(r,o,i,a);return s}function Zh(t,e,n){var r=n.width,i=n.height,o=Math.min(r,i),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;e.global||(a=a*r+n.x,s=s*i+n.y,l*=o),a=Yh(a)?a:.5,s=Yh(s)?s:.5,l=l>=0&&Yh(l)?l:.5;var u=t.createRadialGradient(a,s,0,a,s,l);return u}function Kh(t,e,n){for(var r="radial"===e.type?Zh(t,e,n):jh(t,e,n),i=e.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function $h(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function Qh(t){return parseInt(t,10)}function Jh(t,e,n){var r=["width","height"][e],i=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(t);return(t[i]||Qh(s[r])||Qh(t.style[r]))-(Qh(s[o])||0)-(Qh(s[a])||0)|0}function tc(t,e){return t&&"solid"!==t&&e>0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:D(t)?[t]:M(t)?t:null:null}function ec(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&tc(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(n){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&1!==i&&(n=y(n,function(t){return t/i}),r/=i)}return[n,r]}function nc(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function rc(t){return"string"==typeof t&&"none"!==t}function ic(t){var e=t.fill;return null!=e&&"none"!==e}function oc(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function ac(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function sc(t,e,n){var r=co(e.image,e.__image,n);if(po(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*uv),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}function lc(t,e,n,r){var i,o=nc(n),a=ic(n),s=n.strokePercent,l=1>s,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var h=e.path||fM,c=e.__dirty;if(!r){var f=n.fill,p=n.stroke,d=a&&!!f.colorStops,g=o&&!!p.colorStops,v=a&&!!f.image,y=o&&!!p.image,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0;(d||g)&&(b=e.getBoundingRect()),d&&(m=c?Kh(t,f,b):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(_=c?Kh(t,p,b):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),v&&(x=c||!e.__canvasFillPattern?sc(t,f,e):e.__canvasFillPattern,e.__canvasFillPattern=x),y&&(w=c||!e.__canvasStrokePattern?sc(t,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=x),d?t.fillStyle=m:v&&(x?t.fillStyle=x:a=!1),g?t.strokeStyle=_:y&&(w?t.strokeStyle=w:o=!1)}var S=e.getGlobalScale();h.setScale(S[0],S[1],e.segmentIgnoreThreshold);var M,T;t.setLineDash&&n.lineDash&&(i=ec(e),M=i[0],T=i[1]);var C=!0;(u||c&$v)&&(h.setDPR(t.dpr),l?h.setContext(null):(h.setContext(t),C=!1),h.reset(),e.buildPath(h,e.shape,r),h.toStatic(),e.pathUpdated()),C&&h.rebuildPath(t,l?s:1),M&&(t.setLineDash(M),t.lineDashOffset=T),r||(n.strokeFirst?(o&&ac(t,n),a&&oc(t,n)):(a&&oc(t,n),o&&ac(t,n))),M&&t.setLineDash([])}function uc(t,e,n){var r=e.__image=co(n.image,e.__image,e,e.onload);if(r&&po(r)){var i=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,h=n.sy||0;t.drawImage(r,u,h,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var u=n.sx,h=n.sy,c=a-u,f=s-h;t.drawImage(r,u,h,c,f,i,o,a,s)}else t.drawImage(r,i,o,a,s)}}function hc(t,e,n){var r,i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||Fg,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(r=ec(e),o=r[0],a=r[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(nc(n)&&t.strokeText(i,n.x,n.y),ic(n)&&t.fillText(i,n.x,n.y)):(ic(n)&&t.fillText(i,n.x,n.y),nc(n)&&t.strokeText(i,n.x,n.y)),o&&t.setLineDash([])}}function cc(t,e,n,r,i){var o=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){mc(t,i),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Gm.opacity:a}(r||e.blend!==n.blend)&&(o||(mc(t,i),o=!0),t.globalCompositeOperation=e.blend||Gm.blend);for(var s=0;s<pM.length;s++){var l=pM[s];(r||e[l]!==n[l])&&(o||(mc(t,i),o=!0),t[l]=t.dpr*(e[l]||0))}return(r||e.shadowColor!==n.shadowColor)&&(o||(mc(t,i),o=!0),t.shadowColor=e.shadowColor||Gm.shadowColor),o}function fc(t,e,n,r,i){var o=_c(e,i.inHover),a=r?null:n&&_c(n,i.inHover)||{};if(o===a)return!1;var s=cc(t,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(mc(t,i),s=!0),rc(o.fill)&&(t.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(mc(t,i),s=!0),rc(o.stroke)&&(t.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(mc(t,i),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(mc(t,i),s=!0),t.lineWidth=u)}for(var h=0;h<dM.length;h++){var c=dM[h],f=c[0];(r||o[f]!==a[f])&&(s||(mc(t,i),s=!0),t[f]=o[f]||c[1])}return s}function pc(t,e,n,r,i){return cc(t,_c(e,i.inHover),n&&_c(n,i.inHover),r,i)}function dc(t,e){var n=e.transform,r=t.dpr||1;n?t.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):t.setTransform(r,0,0,r,0,0)}function gc(t,e,n){for(var r=!1,i=0;i<t.length;i++){var o=t[i];r=r||o.isZeroArea(),dc(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=r}function vc(t,e){return t&&e?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||e?!0:!1}function yc(t){var e=ic(t),n=nc(t);return!(t.lineDash||!(+e^+n)||e&&"string"!=typeof t.fill||n&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function mc(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function _c(t,e){return e?t.__hoverStyle||t.style:t.style}function xc(t,e){wc(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function wc(t,e,n,r){var i=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~Zv,void(e.__isRendered=!1);var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if((!a||$h(o,a))&&(a&&a.length&&(mc(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(mc(t,n),t.save(),gc(o,t,n),s=!0),n.prevElClipPaths=o),n.allClipped)return void(e.__isRendered=!1);e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var h=e instanceof R_&&e.autoBatch&&yc(e.style);s||vc(i,u.transform)?(mc(t,n),dc(t,e)):h||mc(t,n);var c=_c(e,n.inHover);e instanceof R_?(n.lastDrawType!==gM&&(l=!0,n.lastDrawType=gM),fc(t,e,u,l,n),h&&(n.batchFill||n.batchStroke)||t.beginPath(),lc(t,e,c,h),h&&(n.batchFill=c.fill||"",n.batchStroke=c.stroke||"")):e instanceof B_?(n.lastDrawType!==yM&&(l=!0,n.lastDrawType=yM),fc(t,e,u,l,n),hc(t,e,c)):e instanceof F_?(n.lastDrawType!==vM&&(l=!0,n.lastDrawType=vM),pc(t,e,u,l,n),uc(t,e,c)):e.getTemporalDisplayables&&(n.lastDrawType!==mM&&(l=!0,n.lastDrawType=mM),bc(t,e,n)),h&&r&&mc(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}function bc(t,e,n){var r=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=r.length;a>o;o++){var l=r[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),wc(t,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,h=i.length;h>u;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),wc(t,l,s,u===h-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}function Sc(t,e){function n(t){function e(){for(var t=1,e=0,n=y.length;n>e;++e)t=Mi(t,y[e]);for(var r=1,e=0,n=v.length;n>e;++e)r=Mi(r,v[e].length);t*=r;var i=m*y.length*v.length;return{width:Math.max(1,Math.min(t,s.maxTileWidth)),height:Math.max(1,Math.min(i,s.maxTileHeight))}}function n(){function t(t,e,n,a,l){var u=o?1:r,h=Xh(l,t*u,e*u,n*u,a*u,s.color,s.symbolKeepAspect);if(o){var c=i.painter.renderOneToVNode(h);c&&x.children.push(c)}else xc(p,h)}p&&(p.clearRect(0,0,_.width,_.height),s.backgroundColor&&(p.fillStyle=s.backgroundColor,p.fillRect(0,0,_.width,_.height)));for(var e=0,n=0;n<g.length;++n)e+=g[n];if(!(0>=e))for(var a=-m,l=0,u=0,h=0;a<w.height;){if(l%2===0){for(var c=u/2%v.length,f=0,y=0,b=0;f<2*w.width;){for(var S=0,n=0;n<d[h].length;++n)S+=d[h][n];if(0>=S)break;if(y%2===0){var M=.5*(1-s.symbolSize),T=f+d[h][y]*M,C=a+g[l]*M,k=d[h][y]*s.symbolSize,D=g[l]*s.symbolSize,I=b/2%v[c].length;t(T,C,k,D,v[c][I])}f+=d[h][y],++b,++y,y===d[h].length&&(y=0)}++h,h===d.length&&(h=0)}a+=g[l],++u,++l,l===g.length&&(l=0)}}for(var a=[r],l=!0,u=0;u<wM.length;++u){var h=s[wM[u]];if(null!=h&&!M(h)&&!C(h)&&!D(h)&&"boolean"!=typeof h){l=!1;break}a.push(h)}var c;if(l){c=a.join(",")+(o?"-svg":"");var f=xM.get(c);f&&(o?t.svgElement=f:t.image=f)}var p,d=Tc(s.dashArrayX),g=Cc(s.dashArrayY),v=Mc(s.symbol),y=kc(d),m=Dc(g),_=!o&&Gg.createCanvas(),x=o&&{tag:"g",attrs:{},key:"dcl",children:[]},w=e();_&&(_.width=w.width*r,_.height=w.height*r,p=_.getContext("2d")),n(),l&&xM.put(c,_||x),t.image=_,t.svgElement=x,t.svgWidth=w.width,t.svgHeight=w.height}if("none"===t)return null;var r=e.getDevicePixelRatio(),i=e.getZr(),o="svg"===i.painter.type;t.dirty&&_M["delete"](t);var a=_M.get(t);if(a)return a;var s=c(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===s.backgroundColor&&(s.backgroundColor=null);var l={repeat:"repeat"};return n(l),l.rotation=s.rotation,l.scaleX=l.scaleY=o?1:1/r,_M.set(t,l),t.dirty=!1,l}function Mc(t){if(!t||0===t.length)return[["rect"]];if(C(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!C(t[n])){e=!1;break}if(e)return Mc([t]);for(var r=[],n=0;n<t.length;++n)r.push(C(t[n])?[t[n]]:t[n]);return r}function Tc(t){if(!t||0===t.length)return[[0,0]];if(D(t)){var e=Math.ceil(t);return[[e,e]]}for(var n=!0,r=0;r<t.length;++r)if(!D(t[r])){n=!1;break}if(n)return Tc([t]);for(var i=[],r=0;r<t.length;++r)if(D(t[r])){var e=Math.ceil(t[r]);i.push([e,e])}else{var e=y(t[r],function(t){return Math.ceil(t)});i.push(e.length%2===1?e.concat(e):e)}return i}function Cc(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(D(t)){var e=Math.ceil(t);return[e,e]}var n=y(t,function(t){return Math.ceil(t)});return t.length%2?n.concat(n):n}function kc(t){return y(t,function(t){return Dc(t)})}function Dc(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2===1?2*e:e}function Ic(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(t){var n=r.getItemVisual(t,"decal");if(n){var i=r.ensureUniqueItemVisual(t,"style");i.decal=Sc(n,e)}});var i=r.getVisual("decal");if(i){var o=r.getVisual("style");o.decal=Sc(i,e)}}})}function Ac(t,e){SM[t]=e}function Lc(t){return SM[t]}function Oc(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return this.isDisposed()?void 0:Rc(this,t,e)}}function Pc(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Rc(this,t,e)}}function Rc(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),mv.prototype[e].apply(t,n)}function Nc(t,e,n){var r=!(n&&n.ssr);if(r){var i=Fc(t);if(i)return i}var o=new yT(t,e,n);return o.id="ec_"+IT++,kT[o.id]=o,r&&Ki(t,LT,o.id),dT(o),bM.trigger("afterinit",o),o}function Bc(t){if(M(t)){var e=t;t=null,v(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+AT++,v(e,function(e){e.group=t})}return DT[t]=!0,t}function Ec(t){DT[t]=!1}function zc(t){C(t)?t=kT[t]:t instanceof yT||(t=Fc(t)),t instanceof yT&&!t.isDisposed()&&t.dispose()}function Fc(t){return kT[$i(t,LT)]}function Vc(t){return kT[t]}function Hc(t,e){TT[t]=e}function Wc(t){f(ST,t)<0&&ST.push(t)}function Uc(t,e){Qc(bT,t,e,AM)}function Gc(t){Xc("afterinit",t)}function qc(t){Xc("afterupdate",t)}function Xc(t,e){bM.on(t,e)}function Yc(t,e,n){T(e)&&(n=e,e="");var r=I(t)?t.type:[t,t={event:e}][0];t.event=(t.event||r).toLowerCase(),e=t.event,wT[e]||(W(XM.test(r)&&XM.test(e)),xT[r]||(xT[r]={action:n,actionInfo:t}),wT[e]=r)}function jc(t,e){Gb.register(t,e)}function Zc(t){var e=Gb.get(t);return e?e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice():void 0}function Kc(t,e){Qc(MT,t,e,OM,"layout")}function $c(t,e){Qc(MT,t,e,NM,"visual")}function Qc(t,e,n,r,i){if((T(e)||I(e))&&(n=e,e=r),!(f(PT,n)>=0)){PT.push(n);var o=FS.wrapStageHandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function Jc(t,e){CT[t]=e}function tf(t){i({createCanvas:t})}function ef(t,e,n){var r=Lc("registerMap");r&&r(t,e,n)}function nf(t){var e=Lc("getMap");return e&&e(t)}function rf(t){return null==t?0:t.length||1}function of(t){return t}function af(t,e){var n={},r=n.encode={},i=Y(),o=[],a=[],s={};v(t.dimensions,function(e){var n=t.getDimensionInfo(e),l=n.coordDim;if(l){var u=n.coordDimIndex;sf(r,l)[u]=e,n.isExtraCoord||(i.set(l,1),uf(n.type)&&(o[0]=e),sf(s,l)[u]=t.getDimensionIndex(n.name)),n.defaultTooltip&&a.push(e)}mb.each(function(t,e){var i=sf(r,e),o=n.otherDims[e];null!=o&&o!==!1&&(i[o]=n.name)})});var l=[],u={};i.each(function(t,e){var n=r[e];u[e]=n[0],l=l.concat(n)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=y(l,function(e){return t.getDimensionInfo(e).storeDimIndex}),n.encodeFirstDimNotExtra=u;var h=r.label;h&&h.length&&(o=h.slice());var c=r.tooltip;return c&&c.length?a=c.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new GT(s,e),n}function sf(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function lf(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function uf(t){return!("ordinal"===t||"time"===t)}function hf(t){return t instanceof jT}function cf(t){for(var e=Y(),n=0;n<(t||[]).length;n++){var r=t[n],i=I(r)?r.name:r;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function ff(t){var e=XT(t);return e.dimNameMap||(e.dimNameMap=cf(t.dimensionsDefine))}function pf(t){return t>30}function df(t,e){return gf(t,e).dimensions}function gf(t,e){function n(t){var e=m[t];if(0>e){var n=a[t],r=I(n)?n:{name:n},i=new qT,o=r.name;null!=o&&null!=d.get(o)&&(i.name=i.displayName=o),null!=r.type&&(i.type=r.type),null!=r.displayName&&(i.displayName=r.displayName);var s=l.length;return m[t]=s,i.storeDimIndex=t,l.push(i),i}return l[e]}function r(t,e,n){null!=mb.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,s.set(e,!0))}function i(t){null==t.name&&(t.name=t.coordDim)}Du(t)||(t=Au(t)),e=e||{};var o=e.coordDimensions||[],a=e.dimensionsDefine||t.dimensionsDefine||[],s=Y(),l=[],u=yf(t,o,a,e.dimensionsCount),f=e.canOmitUnusedDimensions&&pf(u),p=a===t.dimensionsDefine,d=p?ff(t):cf(a),g=e.encodeDefine;!g&&e.encodeDefaulter&&(g=e.encodeDefaulter(t,u));for(var y=Y(g),m=new yS(u),_=0;_<m.length;_++)m[_]=-1;if(!f)for(var _=0;u>_;_++)n(_);y.each(function(t,e){var i=ki(t).slice();if(1===i.length&&!C(i[0])&&i[0]<0)return void y.set(e,!1);var o=y.set(e,[]);v(i,function(t,i){var a=C(t)?d.get(t):t;null!=a&&u>a&&(o[i]=a,r(n(a),e,i))})});var x=0;v(o,function(t){var e,i,o,a;if(C(t))e=t,a={};else{a=t,e=a.name;var s=a.ordinalMeta;a.ordinalMeta=null,a=h({},a),a.ordinalMeta=s,i=a.dimsDef,o=a.otherDims,a.name=a.coordDim=a.coordDimIndex=a.dimsDef=a.otherDims=null}var l=y.get(e);if(l!==!1){if(l=ki(l),!l.length)for(var f=0;f<(i&&i.length||1);f++){for(;u>x&&null!=n(x).coordDim;)x++;u>x&&l.push(x++)}v(l,function(t,s){var l=n(t);if(p&&null!=a.type&&(l.type=a.type),r(c(l,a),e,s),null==l.name&&i){var u=i[s];!I(u)&&(u={name:u}),l.name=l.displayName=u.name,l.defaultTooltip=u.defaultTooltip}o&&c(l.otherDims,o)})}});var w=e.generateCoord,b=e.generateCoordCount,S=null!=b;b=w?b||1:0;var M=w||"value";if(f)v(l,function(t){i(t)}),l.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var T=0;u>T;T++){var k=n(T),D=k.coordDim;null==D&&(k.coordDim=mf(M,s,S),k.coordDimIndex=0,(!w||0>=b)&&(k.isExtraCoord=!0),b--),i(k),null!=k.type||Yl(t,T)!==kb.Must&&(!k.isExtraCoord||null==k.otherDims.itemName&&null==k.otherDims.seriesName)||(k.type="ordinal")}return vf(l),new jT({source:t,dimensions:l,fullDimensionCount:u,dimensionOmitted:f})}function vf(t){for(var e=Y(),n=0;n<t.length;n++){var r=t[n],i=r.name,o=e.get(i)||0;o>0&&(r.name=i+(o-1)),o++,e.set(i,o)}}function yf(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return v(e,function(t){var e;I(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))}),i}function mf(t,e,n){if(n||e.hasKey(t)){for(var r=0;e.hasKey(t+r);)r++;t+=r}return e.set(t,!0),t}function _f(t){var e=t.get("coordinateSystem"),n=new rC(e),r=iC[e];return r?(r(t,n,n.axisMap,n.categoryAxisMap),n):void 0}function xf(t){return"category"===t.get("type")}function wf(t,e,n){n=n||{};var r,i,o,a=n.byIndex,s=n.stackedCoordDimension;bf(e)?r=e:(i=e.schema,r=i.dimensions,o=e.store);var l,u,h,c,f=!(!t||!t.get("stack"));if(v(r,function(t,e){C(t)&&(r[e]=t={name:t}),f&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))}),!u||a||l||(a=!0),u){h="__\x00ecstackresult_"+t.id,c="__\x00ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,d=u.type,g=0;v(r,function(t){t.coordDim===p&&g++});var y={name:h,coordDim:p,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},m={name:c,coordDim:c,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(y.storeDimIndex=o.ensureCalculationDimension(c,d),m.storeDimIndex=o.ensureCalculationDimension(h,d)),i.appendCalculationDimension(y),i.appendCalculationDimension(m)):(r.push(y),r.push(m))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:h}}function bf(t){return!hf(t.schema)}function Sf(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Mf(t,e){return Sf(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Tf(t,e){var n,r=t.get("coordinateSystem"),i=Gb.get(r);return e&&e.coordSysDims&&(n=y(e.coordSysDims,function(t){var n={name:t},r=e.axisMap.get(t);if(r){var i=r.get("type");n.type=lf(i)}return n})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function Cf(t,e,n){var r,i;return n&&v(t,function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(i=!0)}),i||null==r||(t[r].otherDims.itemName=0),r}function kf(t,e,n){n=n||{};var r,i=e.getSourceManager(),o=!1;t?(o=!0,r=Au(t)):(r=i.getSource(),o=r.sourceFormat===_b);var a=_f(e),s=Tf(e,a),l=n.useEncodeDefaulter,u=T(l)?l:l?S(Ul,s,e):null,h={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},c=gf(r,h),f=Cf(c.dimensions,n.createInvertedIndices,a),p=o?null:i.getSharedDataStore(c),d=wf(e,{schema:c,store:p}),g=new nC(c,e);g.setCalculationInfo(d);var v=null!=f&&Df(r)?function(t,e,n,r){return r===f?n:this.defaultDimValueGetter(t,e,n,r)}:null;return g.hasItemOption=!1,g.initData(o?r:p,null,v),g}function Df(t){if(t.sourceFormat===_b){var e=If(t.data||[]);
return!M(Ii(e))}}function If(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}function Af(t){return I(t)&&null!=t.value?t.value:t+""}function Lf(t,e,n,r){var i={},o=t[1]-t[0],a=i.interval=yi(o/e,!0);null!=n&&n>a&&(a=i.interval=n),null!=r&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=Of(a),l=i.niceTickExtent=[ii(Math.ceil(t[0]/a)*a,s),ii(Math.floor(t[1]/a)*a,s)];return Rf(l,t),i}function Of(t){return ai(t)+2}function Pf(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Rf(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Pf(t,0,e),Pf(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function Nf(t,e){return t>=e[0]&&t<=e[1]}function Bf(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Ef(t,e){return t*(e[1]-e[0])+e[0]}function zf(t){return t.get("stack")||cC+t.seriesIndex}function Ff(t){return t.dim+t.index}function Vf(t,e){var n=[];return e.eachSeriesByType(t,function(t){qf(t)&&n.push(t)}),n}function Hf(t){var e={};v(t,function(t){var n=t.coordinateSystem,r=n.getBaseAxis();if("time"===r.type||"value"===r.type)for(var i=t.getData(),o=r.dim+"_"+r.index,a=i.getDimensionIndex(i.mapDimension(r.dim)),s=i.getStore(),l=0,u=s.count();u>l;++l){var h=s.get(a,l);e[o]?e[o].push(h):e[o]=[h]}});var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];if(i){i.sort(function(t,e){return t-e});for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}function Wf(t){var e=Hf(t),n=[];return v(t,function(t){var r,i=t.coordinateSystem,o=i.getBaseAxis(),a=o.getExtent();if("category"===o.type)r=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],u=Math.abs(a[1]-a[0]),h=o.scale.getExtent(),c=Math.abs(h[1]-h[0]);r=l?u/c*l:u}else{var f=t.getData();r=Math.abs(a[1]-a[0])/f.count()}var p=ri(t.get("barWidth"),r),d=ri(t.get("barMaxWidth"),r),g=ri(t.get("barMinWidth")||(Xf(t)?.5:1),r),v=t.get("barGap"),y=t.get("barCategoryGap");n.push({bandWidth:r,barWidth:p,barMaxWidth:d,barMinWidth:g,barGap:v,barCategoryGap:y,axisKey:Ff(o),stackId:zf(t)})}),Uf(n)}function Uf(t){var e={};v(t,function(t){var n=t.axisKey,r=t.bandWidth,i=e[n]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=i.stacks;e[n]=i;var a=t.stackId;o[a]||i.autoWidthCount++,o[a]=o[a]||{width:0,maxWidth:0};var s=t.barWidth;s&&!o[a].width&&(o[a].width=s,s=Math.min(i.remainedWidth,s),i.remainedWidth-=s);var l=t.barMaxWidth;l&&(o[a].maxWidth=l);var u=t.barMinWidth;u&&(o[a].minWidth=u);var h=t.barGap;null!=h&&(i.gap=h);var c=t.barCategoryGap;null!=c&&(i.categoryGap=c)});var n={};return v(e,function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=t.categoryGap;if(null==o){var a=w(r).length;o=Math.max(35-4*a,15)+"%"}var s=ri(o,i),l=ri(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,c=(u-s)/(h+(h-1)*l);c=Math.max(c,0),v(r,function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){var r=t.width;e&&(r=Math.min(r,e)),n&&(r=Math.max(r,n)),t.width=r,u-=r+l*r,h--}else{var r=c;e&&r>e&&(r=Math.min(e,u)),n&&n>r&&(r=n),r!==c&&(t.width=r,u-=r+l*r,h--)}}),c=(u-s)/(h+(h-1)*l),c=Math.max(c,0);var f,p=0;v(r,function(t){t.width||(t.width=c),f=t,p+=t.width*(1+l)}),f&&(p-=f.width*l);var d=-p/2;v(r,function(t,r){n[e][r]=n[e][r]||{bandWidth:i,offset:d,width:t.width},d+=t.width*(1+l)})}),n}function Gf(t,e,n){if(t&&e){var r=t[Ff(e)];return null!=r&&null!=n?r[zf(n)]:r}}function qf(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function Xf(t){return t.pipelineContext&&t.pipelineContext.large}function Yf(t,e,n,r){var i=di(e),o=di(n),a=function(t){return fl(i,t,r)===fl(o,t,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},h=function(){return u()&&a("hour")},c=function(){return h()&&a("minute")},f=function(){return c()&&a("second")},p=function(){return f()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return h();case"minute":return c();case"second":return f();case"millisecond":return p()}}function jf(t){return t/=Qw,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function Zf(t){var e=30*Qw;return t/=e,t>6?6:t>3?3:t>2?2:1}function Kf(t){return t/=$w,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function $f(t,e){return t/=e?Kw:Zw,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function Qf(t){return yi(t,!0)}function Jf(t,e,n){var r=new Date(t);switch(al(e)){case"year":case"month":r[wl(n)](0);case"day":r[bl(n)](1);case"hour":r[Sl(n)](0);case"minute":r[Ml(n)](0);case"second":r[Tl(n)](0),r[Cl(n)](0)}return r.getTime()}function tp(t,e,n,r){function i(t,e,n,i,o,a,s){for(var l=new Date(e),u=e,h=l[i]();n>u&&u<=r[1];)s.push({value:u}),h+=t,l[o](h),u=l.getTime();s.push({value:u,notAdd:!0})}function o(t,o,a){var s=[],l=!o.length;if(!Yf(al(t),r[0],r[1],n)){l&&(o=[{value:Jf(new Date(r[0]),t,n)},{value:r[1]}]);for(var u=0;u<o.length-1;u++){var h=o[u].value,c=o[u+1].value;if(h!==c){var f=void 0,p=void 0,d=void 0,g=!1;switch(t){case"year":f=Math.max(1,Math.round(e/Qw/365)),p=pl(n),d=xl(n);break;case"half-year":case"quarter":case"month":f=Zf(e),p=dl(n),d=wl(n);break;case"week":case"half-week":case"day":f=jf(e,31),p=gl(n),d=bl(n),g=!0;break;case"half-day":case"quarter-day":case"hour":f=Kf(e),p=vl(n),d=Sl(n);break;case"minute":f=$f(e,!0),p=yl(n),d=Ml(n);break;case"second":f=$f(e,!1),p=ml(n),d=Tl(n);break;case"millisecond":f=Qf(e),p=_l(n),d=Cl(n)}i(f,h,c,p,d,g,s),"year"===t&&a.length>1&&0===u&&a.unshift({value:a[0].value-f})}}for(var u=0;u<s.length;u++)a.push(s[u]);return s}}for(var a=1e4,s=ib,l=0,u=[],h=[],c=0,f=0,p=0;p<s.length&&l++<a;++p){var d=al(s[p]);if(sl(s[p])){o(s[p],u[u.length-1]||[],h);var g=s[p+1]?al(s[p+1]):null;if(d!==g){if(h.length){f=c,h.sort(function(t,e){return t.value-e.value});for(var v=[],m=0;m<h.length;++m){var x=h[m].value;(0===m||h[m-1].value!==x)&&(v.push(h[m]),x>=r[0]&&x<=r[1]&&c++)}var w=(r[1]-r[0])/e;if(c>1.5*w&&f>w/1.5)break;if(u.push(v),c>w||t===s[p])break}h=[]}}}for(var b=_(y(u,function(t){return _(t,function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd})}),function(t){return t.length>0}),S=[],M=b.length-1,p=0;p<b.length;++p)for(var T=b[p],C=0;C<T.length;++C)S.push({value:T[C].value,level:M-p});S.sort(function(t,e){return t.value-e.value});for(var k=[],p=0;p<S.length;++p)(0===p||S[p].value!==S[p-1].value)&&k.push(S[p]);return k}function ep(t,e){return yC(t,ai(e))}function np(t,e,n){var r=t.rawExtentInfo;return r?r:(r=new MC(t,e,n),t.rawExtentInfo=r,r)}function rp(t,e){return null==e?null:B(e)?0/0:t.parse(e)}function ip(t,e){var n=t.type,r=np(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var i=r.min,o=r.max,a=e.ecModel;if(a&&"time"===n){var s=Vf("bar",a),l=!1;if(v(s,function(t){l=l||t.getBaseAxis()===e.axis}),l){var u=Wf(s),h=op(i,o,e,u);i=h.min,o=h.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function op(t,e,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=Gf(r,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;v(a,function(t){s=Math.min(t.offset,s)});var l=-1/0;v(a,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,f=h/c-h;return e+=f*(l/u),t-=f*(s/u),{min:t,max:e}}function ap(t,e){var n=e,r=ip(t,n),i=r.extent,o=n.get("splitNumber");t instanceof bC&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function sp(t,e){if(e=e||t.get("type"))switch(e){case"category":return new lC({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new pC({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(oC.getClass(e)||hC)}}function lp(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,r){return t.scale.getFormattedLabel(n,r,e)}}(e):C(e)?function(e){return function(n){var r=t.scale.getLabel(n),i=e.replace("{value}",null!=r?r:"");return i}}(e):T(e)?function(e){return function(r,i){return null!=n&&(i=r.value-n),e(up(t,r),i,null!=r.level?{level:r.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function up(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function hp(t){var e=t.get("interval");return null==e?"auto":e}function cp(t){return"category"===t.type&&0===hp(t.getLabelModel())}function fp(t){return kf(null,t)}function pp(t,e){var n=e;e instanceof Fw||(n=new Fw(e));var r=sp(n);return r.setExtent(t[0],t[1]),ap(r,n),r}function dp(t){d(t,kC)}function gp(t,e){return e=e||{},qs(t,null,null,"normal"!==e.state)}function vp(t){return M(t)?void v(t,function(t){vp(t)}):void(f(AC,t)>=0||(AC.push(t),T(t)&&(t={install:t}),t.install(LC)))}function yp(t,e){return Math.abs(t-e)<OC}function mp(t,e,n){var r=0,i=t[0];if(!i)return!1;for(var o=1;o<t.length;o++){var a=t[o];r+=Eo(i[0],i[1],a[0],a[1],e,n),i=a}var s=t[0];return yp(i[0],s[0])&&yp(i[1],s[1])||(r+=Eo(i[0],i[1],s[0],s[1],e,n)),0!==r}function _p(t,e){for(var n=0;n<t.length;n++)ye(t[n],t[n],e)}function xp(t,e,n,r){for(var i=0;i<t.length;i++){var o=t[i];r&&(o=r.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(me(e,e,o),_e(n,n,o))}}function wp(t){for(var e=0,n=0,r=0,i=t.length,o=t[i-1][0],a=t[i-1][1],s=0;i>s;s++){var l=t[s][0],u=t[s][1],h=o*u-l*a;e+=h,n+=(o+l)*h,r+=(a+u)*h,o=l,a=u}return e?[n/e/3,r/e/3,e]:[t[0][0]||0,t[0][1]||0]}function bp(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);var r=e.features;return v(r,function(t){var e=t.geometry,r=e.encodeOffsets,i=e.coordinates;if(r)switch(e.type){case"LineString":e.coordinates=Mp(i,r,n);break;case"Polygon":Sp(i,r,n);break;case"MultiLineString":Sp(i,r,n);break;case"MultiPolygon":v(i,function(t,e){return Sp(t,r[e],n)})}}),e.UTF8Encoding=!1,e}function Sp(t,e,n){for(var r=0;r<t.length;r++)t[r]=Mp(t[r],e[r],n)}function Mp(t,e,n){for(var r=[],i=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=i,l+=o,i=s,o=l,r.push([s/n,l/n])}return r}function Tp(t,e){return t=bp(t),y(_(t.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,r=t.geometry,i=[];switch(r.type){case"Polygon":var o=r.coordinates;i.push(new NC(o[0],o.slice(1)));break;case"MultiPolygon":v(r.coordinates,function(t){t[0]&&i.push(new NC(t[0],t.slice(1)))});break;case"LineString":i.push(new BC([r.coordinates]));break;case"MultiLineString":i.push(new BC(r.coordinates))}var a=new EC(n[e||"name"],i,n.cp);return a.properties=n,a})}function Cp(t){return"category"===t.type?Dp(t):Lp(t)}function kp(t,e){return"category"===t.type?Ap(t,e):{ticks:y(t.scale.getTicks(),function(t){return t.value})}}function Dp(t){var e=t.getLabelModel(),n=Ip(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function Ip(t,e){var n=Op(t,"labels"),r=hp(e),i=Pp(n,r);if(i)return i;var o,a;return T(r)?o=Fp(t,r):(a="auto"===r?Np(t):r,o=zp(t,a)),Rp(n,r,{labels:o,labelCategoryInterval:a})}function Ap(t,e){var n=Op(t,"ticks"),r=hp(e),i=Pp(n,r);if(i)return i;var o,a;if((!e.get("show")||t.scale.isBlank())&&(o=[]),T(r))o=Fp(t,r,!0);else if("auto"===r){var s=Ip(t,t.getLabelModel());a=s.labelCategoryInterval,o=y(s.labels,function(t){return t.tickValue})}else a=r,o=zp(t,a,!0);return Rp(n,r,{ticks:o,tickCategoryInterval:a})}function Lp(t){var e=t.scale.getTicks(),n=lp(t);return{labels:y(e,function(e,r){return{level:e.level,formattedLabel:n(e,r),rawLabel:t.scale.getLabel(e),tickValue:e.value}})}}function Op(t,e){return UC(t)[e]||(UC(t)[e]=[])}function Pp(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function Rp(t,e,n){return t.push({key:e,value:n}),n}function Np(t){var e=UC(t).autoInterval;return null!=e?e:UC(t).autoInterval=t.calculateCategoryInterval()}function Bp(t){var e=Ep(t),n=lp(t),r=(e.axisRotate-e.labelRotate)/180*Math.PI,i=t.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),h=Math.abs(u*Math.cos(r)),c=Math.abs(u*Math.sin(r)),f=0,p=0;l<=o[1];l+=s){var d=0,g=0,v=Nr(n({value:l}),e.font,"center","top");d=1.3*v.width,g=1.3*v.height,f=Math.max(f,d,7),p=Math.max(p,g,7)}var y=f/h,m=p/c;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),x=UC(t.model),w=t.getExtent(),b=x.lastAutoInterval,S=x.lastTickCount;return null!=b&&null!=S&&Math.abs(b-_)<=1&&Math.abs(S-a)<=1&&b>_&&x.axisExtent0===w[0]&&x.axisExtent1===w[1]?_=b:(x.lastTickCount=a,x.lastAutoInterval=_,x.axisExtent0=w[0],x.axisExtent1=w[1]),_}function Ep(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 zp(t,e,n){function r(t){var e={value:t};l.push(n?t:{formattedLabel:i(e),rawLabel:o.getLabel(e),tickValue:t})}var i=lp(t),o=t.scale,a=o.getExtent(),s=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),h=a[0],c=o.count();0!==h&&u>1&&c/u>2&&(h=Math.round(Math.ceil(h/u)*u));var f=cp(t),p=s.get("showMinLabel")||f,d=s.get("showMaxLabel")||f;p&&h!==a[0]&&r(a[0]);for(var g=h;g<=a[1];g+=u)r(g);return d&&g-u!==a[1]&&r(a[1]),l}function Fp(t,e,n){var r=t.scale,i=lp(t),o=[];return v(r.getTicks(),function(t){var a=r.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:i(t),rawLabel:a,tickValue:s})}),o}function Vp(t,e){var n=t[1]-t[0],r=e,i=n/r/2;t[0]+=i,t[1]-=i}function Hp(t,e,n,r){function i(t,e){return t=ii(t),e=ii(e),f?t>e:e>t}var o=e.length;if(t.onBand&&!n&&o){var a,s,l=t.getExtent();if(1===o)e[0].coord=l[0],a=e[1]={coord:l[0]};else{var u=e[o-1].tickValue-e[0].tickValue,h=(e[o-1].coord-e[0].coord)/u;v(e,function(t){t.coord-=h/2});var c=t.scale.getExtent();s=1+c[1]-e[o-1].tickValue,a={coord:e[o-1].coord+h*s},e.push(a)}var f=l[0]>l[1];i(e[0].coord,l[0])&&(r?e[0].coord=l[0]:e.shift()),r&&i(l[0],e[0].coord)&&e.unshift({coord:l[0]}),i(l[1],a.coord)&&(r?a.coord=l[1]:e.pop()),r&&i(a.coord,l[1])&&e.push({coord:l[1]})}}function Wp(t){var e=fb.extend(t);return fb.registerClass(e),e}function Up(t){var e=TS.extend(t);return TS.registerClass(e),e}function Gp(t){var e=MS.extend(t);return MS.registerClass(e),e}function qp(t){var e=DS.extend(t);return DS.registerClass(e),e}function Xp(t,e,n,r,i){var o=n.width,a=n.height;switch(t){case"top":r.set(n.x+o/2,n.y-e),i.set(0,-1);break;case"bottom":r.set(n.x+o/2,n.y+a+e),i.set(0,1);break;case"left":r.set(n.x-e,n.y+a/2),i.set(-1,0);break;case"right":r.set(n.x+o+e,n.y+a/2),i.set(1,0)}}function Yp(t,e,n,r,i,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var h=a*n+t,c=s*n+e;if(Math.abs(r-i)%XC<1e-4)return l[0]=h,l[1]=c,u-n;if(o){var f=r;r=No(i),i=No(f)}else r=No(r),i=No(i);r>i&&(i+=XC);var p=Math.atan2(s,a);if(0>p&&(p+=XC),p>=r&&i>=p||p+XC>=r&&i>=p+XC)return l[0]=h,l[1]=c,u-n;var d=n*Math.cos(r)+t,g=n*Math.sin(r)+e,v=n*Math.cos(i)+t,y=n*Math.sin(i)+e,m=(d-a)*(d-a)+(g-s)*(g-s),_=(v-a)*(v-a)+(y-s)*(y-s);return _>m?(l[0]=d,l[1]=g,Math.sqrt(m)):(l[0]=v,l[1]=y,Math.sqrt(_))}function jp(t,e,n,r,i,o,a,s){var l=i-t,u=o-e,h=n-t,c=r-e,f=Math.sqrt(h*h+c*c);h/=f,c/=f;var p=l*h+u*c,d=p/f;s&&(d=Math.min(Math.max(d,0),1)),d*=f;var g=a[0]=t+d*h,v=a[1]=e+d*c;return Math.sqrt((g-i)*(g-i)+(v-o)*(v-o))}function Zp(t,e,n,r,i,o,a){0>n&&(t+=n,n=-n),0>r&&(e+=r,r=-r);var s=t+n,l=e+r,u=a[0]=Math.min(Math.max(i,t),s),h=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-i)*(u-i)+(h-o)*(h-o))}function Kp(t,e,n){var r=Zp(e.x,e.y,e.width,e.height,t.x,t.y,ZC);return n.set(ZC[0],ZC[1]),r}function $p(t,e,n){for(var r,i,o=0,a=0,s=0,l=0,u=1/0,h=e.data,c=t.x,f=t.y,p=0;p<h.length;){var d=h[p++];1===p&&(o=h[p],a=h[p+1],s=o,l=a);var g=u;switch(d){case YC.M:s=h[p++],l=h[p++],o=s,a=l;break;case YC.L:g=jp(o,a,h[p],h[p+1],c,f,ZC,!0),o=h[p++],a=h[p++];break;case YC.C:g=dn(o,a,h[p++],h[p++],h[p++],h[p++],h[p],h[p+1],c,f,ZC),o=h[p++],a=h[p++];break;case YC.Q:g=wn(o,a,h[p++],h[p++],h[p],h[p+1],c,f,ZC),o=h[p++],a=h[p++];break;case YC.A:var v=h[p++],y=h[p++],m=h[p++],_=h[p++],x=h[p++],w=h[p++];p+=1;var b=!!(1-h[p++]);r=Math.cos(x)*m+v,i=Math.sin(x)*_+y,1>=p&&(s=r,l=i);var S=(c-v)*_/m+v;g=Yp(v,y,_,x,x+w,b,S,f,ZC),o=Math.cos(x+w)*m+v,a=Math.sin(x+w)*_+y;break;case YC.R:s=o=h[p++],l=a=h[p++];var M=h[p++],T=h[p++];g=Zp(s,l,M,T,c,f,ZC);break;case YC.Z:g=jp(o,a,s,l,c,f,ZC,!0),o=s,a=l}u>g&&(u=g,n.set(ZC[0],ZC[1]))}return u}function Qp(t,e){if(t){var n=t.getTextGuideLine(),r=t.getTextContent();if(r&&n){var i=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=i.candidates||jC,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=i.anchor,h=t.getComputedTransform(),c=h&&Ue([],h),f=e.get("length2")||0;u&&QC.copy(u);for(var p=0;p<a.length;p++){var d=a[p];Xp(d,0,s,KC,JC),Av.scaleAndAdd($C,KC,JC,f),$C.transform(c);var g=t.getBoundingRect(),v=u?u.distance($C):t instanceof R_?$p($C,t.path,QC):Kp($C,g,QC);l>v&&(l=v,$C.transform(h),QC.transform(h),QC.toArray(o[0]),$C.toArray(o[1]),KC.toArray(o[2]))}Jp(o,e.get("minTurnAngle")),n.setShape({points:o})}}}function Jp(t,e){if(180>=e&&e>0){e=e/180*Math.PI,KC.fromArray(t[0]),$C.fromArray(t[1]),QC.fromArray(t[2]),Av.sub(JC,KC,$C),Av.sub(tk,QC,$C);var n=JC.len(),r=tk.len();if(!(.001>n||.001>r)){JC.scale(1/n),tk.scale(1/r);var i=JC.dot(tk),o=Math.cos(e);if(i>o){var a=jp($C.x,$C.y,QC.x,QC.y,KC.x,KC.y,ek,!1);nk.fromArray(ek),nk.scaleAndAdd(tk,a/Math.tan(Math.PI-e));var s=QC.x!==$C.x?(nk.x-$C.x)/(QC.x-$C.x):(nk.y-$C.y)/(QC.y-$C.y);if(isNaN(s))return;0>s?Av.copy(nk,$C):s>1&&Av.copy(nk,QC),nk.toArray(t[1])}}}}function td(t,e,n){if(180>=n&&n>0){n=n/180*Math.PI,KC.fromArray(t[0]),$C.fromArray(t[1]),QC.fromArray(t[2]),Av.sub(JC,$C,KC),Av.sub(tk,QC,$C);var r=JC.len(),i=tk.len();if(!(.001>r||.001>i)){JC.scale(1/r),tk.scale(1/i);var o=JC.dot(e),a=Math.cos(n);if(a>o){var s=jp($C.x,$C.y,QC.x,QC.y,KC.x,KC.y,ek,!1);nk.fromArray(ek);var l=Math.PI/2,u=Math.acos(tk.dot(e)),h=l+u-n;if(h>=l)Av.copy(nk,QC);else{nk.scaleAndAdd(tk,s/Math.tan(Math.PI/2-h));var c=QC.x!==$C.x?(nk.x-$C.x)/(QC.x-$C.x):(nk.y-$C.y)/(QC.y-$C.y);if(isNaN(c))return;0>c?Av.copy(nk,$C):c>1&&Av.copy(nk,QC)}nk.toArray(t[1])}}}}function ed(t,e,n,r){var i="normal"===n,o=i?t:t.ensureState(n);o.ignore=e;var a=r.get("smooth");a&&a===!0&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?t.useStyle(s):o.style=s}function nd(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=pv(r[0],r[1]),o=pv(r[1],r[2]);if(!i||!o)return t.lineTo(r[1][0],r[1][1]),void t.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=ve([],r[1],r[0],a/i),l=ve([],r[1],r[2],a/o),u=ve([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var h=1;h<r.length;h++)t.lineTo(r[h][0],r[h][1])}function rd(t,e,n){var r=t.getTextGuideLine(),i=t.getTextContent();if(!i)return void(r&&t.removeTextGuideLine());for(var o=e.normal,a=o.get("show"),s=i.ignore,l=0;l<sx.length;l++){var u=sx[l],h=e[u],f="normal"===u;if(h){var p=h.get("show"),d=f?s:z(i.states[u]&&i.states[u].ignore,s);if(d||!z(p,a)){var g=f?r:r&&r.states[u];g&&(g.ignore=!0);continue}r||(r=new Qx,t.setTextGuideLine(r),f||!s&&a||ed(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),ed(r,!1,u,h)}}if(r){c(r.style,n),r.style.fill=null;var v=o.get("showAbove"),y=t.textGuideLineConfig=t.textGuideLineConfig||{};y.showAbove=v||!1,r.buildPath=nd}}function id(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<ax.length;r++){var i=ax[r];n[i]=t.getModel([i,e])}return n}function od(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.defaultAttr.ignore){var i=r.label,o=i.getComputedTransform(),a=i.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var h=s?new gw(a,o):null;e.push({label:i,labelLine:r.labelLine,rect:u,localRect:a,obb:h,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:o})}}return e}function ad(t,e,n,r,i,o){function a(){w=S.rect[e]-r,b=i-M.rect[e]-M.rect[n]}function s(t,e,n){if(0>t){var r=Math.min(e,-t);if(r>0){l(r*n,0,c);var i=r+t;0>i&&u(-i*n,1)}else u(-t*n,1)}}function l(n,r,i){0!==n&&(d=!0);for(var o=r;i>o;o++){var a=t[o],s=a.rect;s[e]+=n,a.label[e]+=n}}function u(r,i){for(var o=[],a=0,s=1;c>s;s++){var u=t[s-1].rect,h=Math.max(t[s].rect[e]-u[e]-u[n],0);o.push(h),a+=h}if(a){var f=Math.min(Math.abs(r)/a,i);if(r>0)for(var s=0;c-1>s;s++){var p=o[s]*f;l(p,0,s+1)}else for(var s=c-1;s>0;s--){var p=o[s-1]*f;l(-p,s,c)}}}function h(t){var e=0>t?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(c-1)),r=0;c-1>r;r++)if(e>0?l(n,0,r+1):l(-n,c-r-1,c),t-=n,0>=t)return}var c=t.length;if(!(2>c)){t.sort(function(t,n){return t.rect[e]-n.rect[e]});for(var f,p=0,d=!1,g=[],v=0,y=0;c>y;y++){var m=t[y],_=m.rect;f=_[e]-p,0>f&&(_[e]-=f,m.label[e]-=f,d=!0);var x=Math.max(-f,0);g.push(x),v+=x,p=_[e]+_[n]}v>0&&o&&l(-v/c,0,c);var w,b,S=t[0],M=t[c-1];return a(),0>w&&u(-w,.8),0>b&&u(b,.8),a(),s(w,b,1),s(b,w,-1),a(),0>w&&h(-w),0>b&&h(b),d}}function sd(t,e,n,r){return ad(t,"x","width",e,n,r)}function ld(t,e,n,r){return ad(t,"y","height",e,n,r)}function ud(t){function e(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}var n=[];t.sort(function(t,e){return e.priority-t.priority});for(var r=new Fv(0,0,0,0),i=0;i<t.length;i++){var o=t[i],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,h=o.labelLine;r.copy(o.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var c=o.obb,f=!1,p=0;p<n.length;p++){var d=n[p];if(r.intersect(d.rect)){if(a&&d.axisAligned){f=!0;break}if(d.obb||(d.obb=new gw(d.localRect,d.transform)),c||(c=new gw(s,l)),c.intersect(d.obb)){f=!0;break}}}f?(e(u),h&&e(h)):(u.attr("ignore",o.defaultAttr.ignore),h&&h.attr("ignore",o.defaultAttr.labelGuideIgnore),n.push(o))}}function hd(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function cd(t,e){var n=t.label,r=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:hd(r&&r.shape.points)}}function fd(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null!=e[i]&&(t[i]=e[i])}}function pd(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e){var n=uk(e).labelManager;n||(n=uk(e).labelManager=new lk),n.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var r=uk(e).labelManager;n.updatedSeries.forEach(function(t){r.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),r.updateLayoutConfig(e),r.layout(e),r.processLabelsOverall()})}function dd(t,e,n){var r=Gg.createCanvas(),i=e.getWidth(),o=e.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",t)),r.width=i*n,r.height=o*n,r}function gd(t){return t?t.__builtin__?!0:"function"!=typeof t.resize||"function"!=typeof t.refresh?!1:!0:!1}function vd(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}function yd(t){t.registerPainter("canvas",gk)}function md(t){t.registerComponentModel(vk),t.registerComponentView(yk)}function _d(t,e){return Bl(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function xd(t,e){var n=_d(t,e),r=t.get("center"),i=t.get("radius");M(i)||(i=[0,i]);var o,a,s=ri(n.width,e.getWidth()),l=ri(n.height,e.getHeight()),u=Math.min(s,l),h=ri(i[0],u/2),c=ri(i[1],u/2),f=t.coordinateSystem;if(f){var p=f.dataToPoint(r);o=p[0]||0,a=p[1]||0}else M(r)||(r=[r,r]),o=ri(r[0],s)+n.x,a=ri(r[1],l)+n.y;return{cx:o,cy:a,r0:h,r:c}}function wd(t,e,n){e.eachSeriesByType(t,function(t){var e=t.getData(),r=e.mapDimension("value"),i=_d(t,n),o=xd(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,h=-t.get("startAngle")*_k,c=t.get("minAngle")*_k,f=0;e.each(r,function(t){!isNaN(t)&&f++});var p=e.getSum(r),d=Math.PI/(p||f)*2,g=t.get("clockwise"),v=t.get("roseType"),y=t.get("stillShowZeroSum"),m=e.getDataExtent(r);m[0]=0;var _=mk,x=0,w=h,b=g?1:-1;if(e.setLayout({viewRect:i,r:l}),e.each(r,function(t,n){var r;if(isNaN(t))return void e.setItemLayout(n,{angle:0/0,startAngle:0/0,endAngle:0/0,clockwise:g,cx:a,cy:s,r0:u,r:v?0/0:l});r="area"!==v?0===p&&y?d:t*d:mk/f,c>r?(r=c,_-=c):x+=t;var i=w+b*r;e.setItemLayout(n,{angle:r,startAngle:w,endAngle:i,clockwise:g,cx:a,cy:s,r0:u,r:v?ni(t,m,[u,l]):l}),w=i}),mk>_&&f)if(.001>=_){var S=mk/f;e.each(r,function(t,n){if(!isNaN(t)){var r=e.getItemLayout(n);r.angle=S,r.startAngle=h+b*n*S,r.endAngle=h+b*(n+1)*S}})}else d=_/x,w=h,e.each(r,function(t,n){if(!isNaN(t)){var r=e.getItemLayout(n),i=r.angle===c?c:t*d;r.startAngle=w,r.endAngle=w+b*i,w+=b*i}})})}function bd(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var r=t.getData();r.filterSelf(function(t){for(var e=r.getName(t),i=0;i<n.length;i++)if(!n[i].isSelected(e))return!1;return!0})}}}}function Sd(t,e,n,r,i,o,a,s,l,u){function h(t){for(var o=t.rB,a=o*o,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-n),h=r+l.len,c=h*h,f=Math.sqrt((1-Math.abs(u*u/a))*c),p=e+(f+l.len2)*i,d=p-l.label.x,g=l.targetTextWidth-d*i;Td(l,g,!0),l.label.x=p}}function c(t){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],u=l.label.y>n?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var f=l.label.x-e-l.len2*i,p=r+l.len,d=Math.abs(f)<p?Math.sqrt(c*c/(1-f*f/p/p)):p;u.rB=d,u.maxY=c}u.list.push(l)}h(o),h(a)}if(!(t.length<2)){for(var f=t.length,p=0;f>p;p++)if("outer"===t[p].position&&"labelLine"===t[p].labelAlignTo){var d=t[p].label.x-u;t[p].linePoints[1][0]+=d,t[p].label.x=u}ld(t,l,l+a)&&c(t)}}function Md(t,e,n,r,i,o,a,s){for(var l=[],u=[],h=Number.MAX_VALUE,c=-Number.MAX_VALUE,f=0;f<t.length;f++){var p=t[f].label;Cd(t[f])||(p.x<e?(h=Math.min(h,p.x),l.push(t[f])):(c=Math.max(c,p.x),u.push(t[f])))}for(var f=0;f<t.length;f++){var d=t[f];if(!Cd(d)&&d.linePoints){if(null!=d.labelStyleWidth)continue;var p=d.label,g=d.linePoints,v=void 0;v="edge"===d.labelAlignTo?p.x<e?g[2][0]-d.labelDistance-a-d.edgeDistance:a+i-d.edgeDistance-g[2][0]-d.labelDistance:"labelLine"===d.labelAlignTo?p.x<e?h-a-d.bleedMargin:a+i-c-d.bleedMargin:p.x<e?p.x-a-d.bleedMargin:a+i-p.x-d.bleedMargin,d.targetTextWidth=v,Td(d,v)}}Sd(u,e,n,r,1,i,o,a,s,c),Sd(l,e,n,r,-1,i,o,a,s,h);for(var f=0;f<t.length;f++){var d=t[f];if(!Cd(d)&&d.linePoints){var p=d.label,g=d.linePoints,y="edge"===d.labelAlignTo,m=p.style.padding,_=m?m[1]+m[3]:0,x=p.style.backgroundColor?0:_,w=d.rect.width+x,b=g[1][0]-g[2][0];y?g[2][0]=p.x<e?a+d.edgeDistance+w+d.labelDistance:a+i-d.edgeDistance-w-d.labelDistance:(g[2][0]=p.x<e?p.x+d.labelDistance:p.x-d.labelDistance,g[1][0]=g[2][0]+b),g[1][1]=g[2][1]=p.y}}}function Td(t,e,n){if(void 0===n&&(n=!1),null==t.labelStyleWidth){var r=t.label,i=r.style,o=t.rect,a=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,h=o.width+(a?0:l);if(h>e||n){var c=o.height;if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",e-l);var f=r.getBoundingRect();r.setStyle("width",Math.ceil(f.width)),r.setStyle("backgroundColor",a)}else{var p=e-l,d=h>e?p:n?p>t.unconstrainedWidth?null:p:null;r.setStyle("width",d)}var g=r.getBoundingRect();o.width=g.width;var v=(r.style.margin||0)+2.1;o.height=g.height+v,o.y-=(o.height-c)/2}}}function Cd(t){return"center"===t.position}function kd(t){function e(t){t.ignore=!0}function n(t){if(!t.ignore)return!0;for(var e in t.states)if(t.states[e].ignore===!1)return!0;return!1}var r,i,o=t.getData(),a=[],s=!1,l=(t.get("minShowLabelAngle")||0)*xk,u=o.getLayout("viewRect"),h=o.getLayout("r"),c=u.width,f=u.x,p=u.y,d=u.height;o.each(function(t){var u=o.getItemGraphicEl(t),p=u.shape,d=u.getTextContent(),g=u.getTextGuideLine(),y=o.getItemModel(t),m=y.getModel("label"),_=m.get("position")||y.get(["emphasis","label","position"]),x=m.get("distanceToLabelLine"),w=m.get("alignTo"),b=ri(m.get("edgeDistance"),c),S=m.get("bleedMargin"),M=y.getModel("labelLine"),T=M.get("length");T=ri(T,c);var C=M.get("length2");if(C=ri(C,c),Math.abs(p.endAngle-p.startAngle)<l)return v(d.states,e),d.ignore=!0,void(g&&(v(g.states,e),g.ignore=!0));if(n(d)){var k,I,A,L,O=(p.startAngle+p.endAngle)/2,P=Math.cos(O),R=Math.sin(O);r=p.cx,i=p.cy;var N="inside"===_||"inner"===_;if("center"===_)k=p.cx,I=p.cy,L="center";else{var B=(N?(p.r+p.r0)/2*P:p.r*P)+r,E=(N?(p.r+p.r0)/2*R:p.r*R)+i;if(k=B+3*P,I=E+3*R,!N){var z=B+P*(T+h-p.r),F=E+R*(T+h-p.r),V=z+(0>P?-1:1)*C,H=F;k="edge"===w?0>P?f+b:f+c-b:V+(0>P?-x:x),I=H,A=[[B,E],[z,F],[V,H]]}L=N?"center":"edge"===w?P>0?"right":"left":P>0?"left":"right"}var W=Math.PI,U=0,G=m.get("rotate");if(D(G))U=G*(W/180);else if("center"===_)U=0;else if("radial"===G||G===!0){var q=0>P?-O+W:-O;U=q}else if("tangential"===G&&"outside"!==_&&"outer"!==_){var X=Math.atan2(P,R);0>X&&(X=2*W+X);var Y=R>0;Y&&(X=W+X),U=X-W}if(s=!!U,d.x=k,d.y=I,d.rotation=U,d.setStyle({verticalAlign:"middle"}),N){d.setStyle({align:L});var j=d.states.select;j&&(j.x+=d.x,j.y+=d.y)}else{var Z=d.getBoundingRect().clone();Z.applyTransform(d.getComputedTransform());var K=(d.style.margin||0)+2.1;Z.y-=K/2,Z.height+=K,a.push({label:d,labelLine:g,position:_,len:T,len2:C,minTurnAngle:M.get("minTurnAngle"),maxSurfaceAngle:M.get("maxSurfaceAngle"),surfaceNormal:new Av(P,R),linePoints:A,textAlign:L,labelDistance:x,labelAlignTo:w,edgeDistance:b,bleedMargin:S,rect:Z,unconstrainedWidth:Z.width,labelStyleWidth:d.style.width})}u.setTextConfig({inside:N})}}),!s&&t.get("avoidLabelOverlap")&&Md(a,r,i,h,c,d,f,p);for(var g=0;g<a.length;g++){var y=a[g],m=y.label,_=y.labelLine,x=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:y.textAlign}),x&&(v(m.states,e),m.ignore=!0);var w=m.states.select;w&&(w.x+=m.x,w.y+=m.y)}if(_){var b=y.linePoints;x||!b?(v(_.states,e),_.ignore=!0):(Jp(b,y.minTurnAngle),td(b,y.surfaceNormal,y.maxSurfaceAngle),_.setShape({points:b}),m.__hostTarget.textGuideLineConfig={anchor:new Av(b[0][0],b[0][1])})}}}function Dd(t,e,n){var r=t.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;M(r)||(r=[r,r,r,r]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:y(r,function(t){return Fr(t,i)})}}function Id(t,e,n){e=M(e)&&{coordDimensions:e}||h({encodeDefine:t.getEncode()},e);var r=t.getSource(),i=gf(r,e).dimensions,o=new nC(i,t);return o.initData(r,n),o}function Ad(t){return{seriesType:t,reset:function(t){var e=t.getData();e.filterSelf(function(t){var n=e.mapDimension("value"),r=e.get(n,t);return D(r)&&!isNaN(r)&&0>r?!1:!0})}}}function Ld(t){t.registerChartView(bk),t.registerSeriesModel(Tk),Hh("pie",t.registerAction),t.registerLayout(S(wd,"pie")),t.registerProcessor(bd("pie")),t.registerProcessor(Ad("pie"))}function Od(t){var e=t.fill;return null!=e&&e!==Ok}function Pd(t){var e=t.stroke;return null!=e&&e!==Ok}function Rd(t,e,n,r){var i=null==e.opacity?1:e.opacity;if(n instanceof F_)return void t("opacity",i);if(Od(e)){var o=Xn(e.fill);t("fill",o.color);var a=null!=e.fillOpacity?e.fillOpacity*o.opacity*i:o.opacity*i;(r||1>a)&&t("fill-opacity",a)}else t("fill",Ok);if(Pd(e)){var s=Xn(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?n.getLineScale():1,u=l?(e.lineWidth||0)/l:0,h=null!=e.strokeOpacity?e.strokeOpacity*s.opacity*i:s.opacity*i,c=e.strokeFirst;if((r||1!==u)&&t("stroke-width",u),(r||c)&&t("paint-order",c?"stroke":"fill"),(r||1>h)&&t("stroke-opacity",h),e.lineDash){var f=ec(n),p=f[0],d=f[1];p&&(d=Pk(d||0),t("stroke-dasharray",p.join(",")),(d||r)&&t("stroke-dashoffset",d))}else r&&t("stroke-dasharray",Ok);for(var g=0;g<Rk.length;g++){var v=Rk[g];if(r||e[v]!==L_[v]){var y=e[v]||L_[v];y&&t(Nk[g],y)}}}else r&&t("stroke",Ok)}function Nd(t){return document.createElementNS(Bk,t)}function Bd(t,e,n,r,i){return{tag:t,attrs:n||{},children:r,text:i,key:e}}function Ed(t,e){var n=[];if(e)for(var r in e){var i=e[r],o=r;i!==!1&&(i!==!0&&null!=i&&(o+='="'+i+'"'),n.push(o))
}return"<"+t+" "+n.join(" ")+">"}function zd(t){return"</"+t+">"}function Fd(t,e){function n(t){var e=t.children,i=t.tag,o=t.attrs,a=t.text;return Ed(i,o)+("style"!==i?Ce(a):a||"")+(e?""+r+y(e,function(t){return n(t)}).join(r)+r:"")+zd(i)}e=e||{};var r=e.newline?"\n":"";return n(t)}function Vd(t,e,n){n=n||{};var r=n.newline?"\n":"",i=" {"+r,o=r+"}",a=y(w(t),function(e){return e+i+y(w(t[e]),function(n){return n+":"+t[e][n]+";"}).join(r)+o}).join(r),s=y(w(e),function(t){return"@keyframes "+t+i+y(w(e[t]),function(n){return n+i+y(w(e[t][n]),function(r){var i=e[t][n][r];return"d"===r&&(i='path("'+i+'")'),r+":"+i+";"}).join(r)+o}).join(r)+o}).join(r);return a||s?["<![CDATA[",a,s,"]]>"].join(r):""}function Hd(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Wd(t,e,n,r){return Bd("svg","root",{width:t,height:e,xmlns:Bk,"xmlns:xlink":Ek,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+t+" "+e:!1},n)}function Ud(t,e,n){var r=h({},t.shape);h(r,e),t.buildPath(n,r);var i=new Lk;return i.reset(sr(t)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function Gd(t,e){var n=e.originX,r=e.originY;(n||r)&&(t[Hk]=n+"px "+r+"px")}function qd(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function Xd(t,e,n){var r,i,o=t.shape.paths,a={};if(v(o,function(t){var e=Hd(n.zrId);e.animation=!0,jd(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=w(o),u=l.length;if(u){i=l[u-1];var h=o[i];for(var c in h){var f=h[c];a[c]=a[c]||{d:""},a[c].d+=f.d||""}for(var p in s){var d=s[p].animation;d.indexOf(i)>=0&&(r=d)}}}),r){e.d=!1;var s=qd(a,n);return r.replace(i,s)}}function Yd(t){return C(t)?Vk[t]?"cubic-bezier("+Vk[t]+")":Sn(t)?t:"":""}function jd(t,e,n,r){function i(i){function o(t,e,n){for(var r=t.getTracks(),i=t.getMaxTime(),o=0;o<r.length;o++){var a=r[o];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(n&&(l=n(l)),l)for(var u=0;u<s.length;u++){var h=s[u],c=Math.round(h.time/i*100)+"%",p=Yd(h.easing),d=h.rawValue;(C(d)||D(d))&&(e[c]=e[c]||{},e[c][l]=h.rawValue,p&&(e[c][f]=p))}}}}for(var a=i[1],s=a.length,l={},u={},c={},f="animation-timing-function",p=0;s>p;p++){var d=a[p],g=d.targetName;g?"shape"===g&&o(d,u):!r&&o(d,l)}for(var v in l){var y={};Or(y,t),h(y,l[v]);var m=lr(y),x=l[v][f];c[v]=m?{transform:m}:{},Gd(c[v],y),x&&(c[v][f]=x)}var b,S=!0;for(var v in u){c[v]=c[v]||{};var M=!b,x=u[v][f];M&&(b=new S_);var T=b.len();b.reset(),c[v].d=Ud(t,u[v],b);var k=b.len();if(!M&&T!==k){S=!1;break}x&&(c[v][f]=x)}if(!S)for(var v in c)delete c[v].d;if(!r)for(var p=0;s>p;p++){var d=a[p],g=d.targetName;"style"===g&&o(d,c,function(t){return Wk[t]})}for(var I,A=w(c),L=!0,p=1;p<A.length;p++){var O=A[p-1],P=A[p];if(c[O][Hk]!==c[P][Hk]){L=!1;break}I=c[O][Hk]}if(L&&I){for(var v in c)c[v][Hk]&&delete c[v][Hk];e[Hk]=I}if(_(A,function(t){return w(c[t]).length>0}).length){var R=qd(c,n);return R+" "+i[0]+" both"}}var o=t.animators,a=o.length,s=[];if(t instanceof sw){var l=Xd(t,e,n);if(l)s.push(l);else if(!a)return}else if(!a)return;for(var u={},c=0;a>c;c++){var f=o[c],p=[f.getMaxTime()/1e3+"s"],d=Yd(f.getClip().easing),g=f.getDelay();p.push(d?d:"linear"),g&&p.push(g/1e3+"s"),f.getLoop()&&p.push("infinite");var v=p.join(" ");u[v]=u[v]||[v,[]],u[v][1].push(f)}for(var y in u){var l=i(u[y]);l&&s.push(l)}if(s.length){var m=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+m]={animation:s.join(",")},e["class"]=m}}function Zd(t){return t&&C(t.src)}function Kd(t){return t&&T(t.toDataURL)}function $d(t,e,n,r){Rd(function(i,o){var a="fill"===i||"stroke"===i;a&&or(o)?hg(e,t,i,r):a&&nr(o)?cg(n,t,i,r):t[i]=o},e,n,!1),ug(n,t,r)}function Qd(t){return Yn(t[0]-1)&&Yn(t[1])&&Yn(t[2])&&Yn(t[3]-1)}function Jd(t){return Yn(t[4])&&Yn(t[5])}function tg(t,e,n){if(e&&(!Jd(e)||!Qd(e))){var r=n?10:1e4;t.transform=Qd(e)?"translate("+Uk(e[4]*r)/r+" "+Uk(e[5]*r)/r+")":Kn(e)}}function eg(t,e,n){for(var r=t.points,i=[],o=0;o<r.length;o++)i.push(Uk(r[o][0]*n)/n),i.push(Uk(r[o][1]*n)/n);e.points=i.join(" ")}function ng(t){return!t.smooth}function rg(t){var e=y(t,function(t){return"string"==typeof t?[t,t]:t});return function(t,n,r){for(var i=0;i<e.length;i++){var o=e[i],a=t[o[0]];null!=a&&(n[o[1]]=Uk(a*r)/r)}}}function ig(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return!0;return!1}function og(t,e){var n=t.style,r=t.shape,i=Gk[t.type],o={},a=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&sr(t)||4;if(!i||e.willUpdate||i[1]&&!i[1](r)||a&&ig(t)||1>l){var h=!t.path||t.shapeChanged();t.path||t.createPathProxy();var c=t.path;h&&(c.beginPath(),t.buildPath(c,t.shape),t.pathUpdated());var f=c.getVersion(),p=t,d=p.__svgPathBuilder;p.__svgPathVersion===f&&d&&l===p.__svgPathStrokePercent||(d||(d=p.__svgPathBuilder=new Lk),d.reset(u),c.rebuildPath(d,l),d.generateStr(),p.__svgPathVersion=f,p.__svgPathStrokePercent=l),o.d=d.getStr()}else{s=t.type;var g=Math.pow(10,u);i[0](r,o,g)}return tg(o,t.transform),$d(o,n,t,e),e.animation&&jd(t,o,e),Bd(s,t.id+"",o)}function ag(t,e){var n=t.style,r=n.image;if(r&&!C(r)&&(Zd(r)?r=r.src:Kd(r)&&(r=r.toDataURL())),r){var i=n.x||0,o=n.y||0,a=n.width,s=n.height,l={href:r,width:a,height:s};return i&&(l.x=i),o&&(l.y=o),tg(l,t.transform),$d(l,n,t,e),e.animation&&jd(t,l,e),Bd("image",t.id+"",l)}}function sg(t,e){var n=t.style,r=n.text;if(null!=r&&(r+=""),r&&!isNaN(n.x)&&!isNaN(n.y)){var i=n.font||Fg,o=n.x||0,a=$n(n.y||0,zr(i),n.textBaseline),s=My[n.textAlign]||n.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(Jo(n)){var u="",h=n.fontStyle,c=$o(n.fontSize);if(!parseFloat(c))return;var f=n.fontFamily||zg,p=n.fontWeight;u+="font-size:"+c+";font-family:"+f+";",h&&"normal"!==h&&(u+="font-style:"+h+";"),p&&"normal"!==p&&(u+="font-weight:"+p+";"),l.style=u}else l.style="font: "+i;return r.match(/\s/)&&(l["xml:space"]="preserve"),o&&(l.x=o),a&&(l.y=a),tg(l,t.transform),$d(l,n,t,e),e.animation&&jd(t,l,e),Bd("text",t.id+"",l,void 0,r)}}function lg(t,e){return t instanceof R_?og(t,e):t instanceof F_?ag(t,e):t instanceof B_?sg(t,e):void 0}function ug(t,e,n){var r=t.style;if(Qn(r)){var i=Jn(t),o=n.shadowCache,a=o[i];if(!a){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var h=r.shadowOffsetX||0,c=r.shadowOffsetY||0,f=r.shadowBlur,p=Xn(r.shadowColor),d=p.opacity,g=p.color,v=f/2/l,y=f/2/u,m=v+" "+y;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=Bd("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Bd("feDropShadow","",{dx:h/l,dy:c/u,stdDeviation:m,"flood-color":g,"flood-opacity":d})]),o[i]=a}e.filter=ar(a)}}function hg(t,e,n,r){var i,o=t[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(rr(o))i="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!ir(o))return;i="radialGradient",a.cx=z(o.x,.5),a.cy=z(o.y,.5),a.r=z(o.r,.5)}for(var s=o.colorStops,l=[],u=0,h=s.length;h>u;++u){var c=100*Zn(s[u].offset)+"%",f=s[u].color,p=Xn(f),d=p.color,g=p.opacity,v={offset:c};v["stop-color"]=d,1>g&&(v["stop-opacity"]=g),l.push(Bd("stop",u+"",v))}var y=Bd(i,"",a,l),m=Fd(y),_=r.gradientCache,x=_[m];x||(x=r.zrId+"-g"+r.gradientIdx++,_[m]=x,a.id=x,r.defs[x]=Bd(i,x,a,l)),e[n]=ar(x)}function cg(t,e,n,r){var i,o=t.style[n],a=t.getBoundingRect(),l={},u=o.repeat,h="no-repeat"===u,c="repeat-x"===u,f="repeat-y"===u;if(tr(o)){var p=o.imageWidth,d=o.imageHeight,g=void 0,v=o.image;if(C(v)?g=v:Zd(v)?g=v.src:Kd(v)&&(g=v.toDataURL()),"undefined"==typeof Image){var y="Image width/height must been given explictly in svg-ssr renderer.";W(p,y),W(d,y)}else if(null==p||null==d){var m=function(t,e){if(t){var n=t.elm,r=p||e.width,i=d||e.height;"pattern"===t.tag&&(c?(i=1,r/=a.width):f&&(r=1,i/=a.height)),t.attrs.width=r,t.attrs.height=i,n&&(n.setAttribute("width",r),n.setAttribute("height",i))}},_=co(g,null,t,function(t){h||m(S,t),m(i,t)});_&&_.width&&_.height&&(p=p||_.width,d=d||_.height)}i=Bd("image","img",{href:g,width:p,height:d}),l.width=p,l.height=d}else o.svgElement&&(i=s(o.svgElement),l.width=o.svgWidth,l.height=o.svgHeight);if(i){var x,w;h?x=w=1:c?(w=1,x=l.width/a.width):f?(x=1,w=l.height/a.height):l.patternUnits="userSpaceOnUse",null==x||isNaN(x)||(l.width=x),null==w||isNaN(w)||(l.height=w);var b=lr(o);b&&(l.patternTransform=b);var S=Bd("pattern","",l,[i]),M=Fd(S),T=r.patternCache,k=T[M];k||(k=r.zrId+"-p"+r.patternIdx++,T[M]=k,l.id=k,S=r.defs[k]=Bd("pattern",k,l,[i])),e[n]=ar(k)}}function fg(t,e,n){var r=n.clipPathCache,i=n.defs,o=r[t.id];if(!o){o=n.zrId+"-c"+n.clipPathIdx++;var a={id:o};r[t.id]=o,i[o]=Bd("clipPath",o,a,[og(t,n)])}e["clip-path"]=ar(o)}function pg(t){return document.createTextNode(t)}function dg(t,e,n){t.insertBefore(e,n)}function gg(t,e){t.removeChild(e)}function vg(t,e){t.appendChild(e)}function yg(t){return t.parentNode}function mg(t){return t.nextSibling}function _g(t,e){t.textContent=e}function xg(t){return void 0===t}function wg(t){return void 0!==t}function bg(t,e,n){for(var r={},i=e;n>=i;++i){var o=t[i].key;void 0!==o&&(r[o]=i)}return r}function Sg(t,e){var n=t.key===e.key,r=t.tag===e.tag;return r&&n}function Mg(t){var e,n=t.children,r=t.tag;if(wg(r)){var i=t.elm=Nd(r);if(kg(Yk,t),M(n))for(e=0;e<n.length;++e){var o=n[e];null!=o&&vg(i,Mg(o))}else wg(t.text)&&!I(t.text)&&vg(i,pg(t.text))}else t.elm=pg(t.text);return t.elm}function Tg(t,e,n,r,i){for(;i>=r;++r){var o=n[r];null!=o&&dg(t,Mg(o),e)}}function Cg(t,e,n,r){for(;r>=n;++n){var i=e[n];if(null!=i)if(wg(i.tag)){var o=yg(i.elm);gg(o,i.elm)}else gg(t,i.elm)}}function kg(t,e){var n,r=e.elm,i=t&&t.attrs||{},o=e.attrs||{};if(i!==o){for(n in o){var a=o[n],s=i[n];s!==a&&(a===!0?r.setAttribute(n,""):a===!1?r.removeAttribute(n):n.charCodeAt(0)!==Xk?r.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?r.setAttributeNS(zk,n,a):n.charCodeAt(3)===qk?r.setAttributeNS(Fk,n,a):n.charCodeAt(5)===qk?r.setAttributeNS(Ek,n,a):r.setAttribute(n,a))}for(n in i)n in o||r.removeAttribute(n)}}function Dg(t,e,n){for(var r,i,o,a,s=0,l=0,u=e.length-1,h=e[0],c=e[u],f=n.length-1,p=n[0],d=n[f];u>=s&&f>=l;)null==h?h=e[++s]:null==c?c=e[--u]:null==p?p=n[++l]:null==d?d=n[--f]:Sg(h,p)?(Ig(h,p),h=e[++s],p=n[++l]):Sg(c,d)?(Ig(c,d),c=e[--u],d=n[--f]):Sg(h,d)?(Ig(h,d),dg(t,h.elm,mg(c.elm)),h=e[++s],d=n[--f]):Sg(c,p)?(Ig(c,p),dg(t,c.elm,h.elm),c=e[--u],p=n[++l]):(xg(r)&&(r=bg(e,s,u)),i=r[p.key],xg(i)?dg(t,Mg(p),h.elm):(o=e[i],o.tag!==p.tag?dg(t,Mg(p),h.elm):(Ig(o,p),e[i]=void 0,dg(t,o.elm,h.elm))),p=n[++l]);(u>=s||f>=l)&&(s>u?(a=null==n[f+1]?null:n[f+1].elm,Tg(t,a,n,l,f)):Cg(t,e,s,u))}function Ig(t,e){var n=e.elm=t.elm,r=t.children,i=e.children;t!==e&&(kg(t,e),xg(e.text)?wg(r)&&wg(i)?r!==i&&Dg(n,r,i):wg(i)?(wg(t.text)&&_g(n,""),Tg(n,null,i,0,i.length-1)):wg(r)?Cg(n,r,0,r.length-1):wg(t.text)&&_g(n,""):t.text!==e.text&&(wg(r)&&Cg(n,r,0,r.length-1),_g(n,e.text)))}function Ag(t,e){if(Sg(t,e))Ig(t,e);else{var n=t.elm,r=yg(n);Mg(e),null!==r&&(dg(r,e.elm,mg(n)),Cg(r,[t],0,0))}return e}function Lg(){return function(){}}function Og(t,e,n,r){var i;if(n&&"none"!==n)if(i=Bd("rect","bg",{width:t,height:e,x:"0",y:"0",id:"0"}),or(n))hg({fill:n},i.attrs,"fill",r);else if(nr(n))cg({style:{fill:n},dirty:Q,getBoundingRect:function(){return{width:t,height:e}}},i.attrs,"fill",r);else{var o=Xn(n),a=o.color,s=o.opacity;i.attrs.fill=a,1>s&&(i.attrs["fill-opacity"]=s)}return i}var Pg=function(t,e){return(Pg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},Rg=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),Ng=function(){function t(){this.browser=new Rg,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window}return t}(),Bg=new Ng;"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(Bg.wxa=!0,Bg.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?Bg.worker=!0:"undefined"==typeof navigator?(Bg.node=!0,Bg.svgSupported=!0):n(navigator.userAgent,Bg);var Eg=12,zg="sans-serif",Fg=Eg+"px "+zg,Vg=20,Hg=100,Wg="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N",Ug=r(Wg),Gg={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,r){if(!t){var i=Gg.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==r&&(e=t.font=r||Fg),t.measureText(n);n=n||"",r=r||Fg;var o=/(\d+)px/.exec(r),a=o&&+o[1]||Eg,s=0;if(r.indexOf("mono")>=0)s=a*n.length;else for(var l=0;l<n.length;l++){var u=Ug[n[l]];s+=null==u?a:u*a}return{width:s}}}(),loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}},qg=m(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),Xg=m(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Yg=Object.prototype.toString,jg=Array.prototype,Zg=jg.forEach,Kg=jg.filter,$g=jg.slice,Qg=jg.map,Jg=function(){}.constructor,tv=Jg?Jg.prototype:null,ev="__proto__",nv=2311,rv=Gg.createCanvas,iv=tv&&T(tv.bind)?tv.call.bind(tv.bind):b,ov="__ec_primitive__",av=function(){function t(){this.data={}}return t.prototype["delete"]=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return w(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),sv="function"==typeof Map,lv=function(){function t(e){function n(t,e){r?i.set(t,e):i.set(e,t)}var r=M(e);this.data=X();var i=this;e instanceof t?e.each(n):e&&v(e,n)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach(function(n,r){t.call(e,n,r)})},t.prototype.keys=function(){var t=this.data.keys();return sv?Array.from(t):t},t.prototype.removeKey=function(t){this.data["delete"](t)},t}(),uv=180/Math.PI,hv=(Object.freeze||Object)({guid:o,logError:a,clone:s,merge:l,mergeAll:u,extend:h,defaults:c,createCanvas:rv,indexOf:f,inherits:p,mixin:d,isArrayLike:g,each:v,map:y,reduce:m,filter:_,find:x,keys:w,bind:iv,curry:S,isArray:M,isFunction:T,isString:C,isStringSafe:k,isNumber:D,isObject:I,isBuiltInObject:A,isTypedArray:L,isDom:O,isGradientObject:P,isImagePatternObject:R,isRegExp:N,eqNaN:B,retrieve:E,retrieve2:z,retrieve3:F,slice:V,normalizeCssArray:H,assert:W,trim:U,setAsPrimitive:G,isPrimitive:q,HashMap:lv,createHashMap:Y,concatArray:j,createObject:Z,disableUserSelect:K,hasOwn:$,noop:Q,RADIAN_TO_DEGREE:uv}),cv=ae,fv=se,pv=pe,dv=de,gv=(Object.freeze||Object)({create:J,copy:te,clone:ee,set:ne,add:re,scaleAndAdd:ie,sub:oe,len:ae,length:cv,lenSquare:se,lengthSquare:fv,mul:le,div:ue,dot:he,scale:ce,normalize:fe,distance:pe,dist:pv,distanceSquare:de,distSquare:dv,negate:ge,lerp:ve,applyTransform:ye,min:me,max:_e}),vv=function(){function t(t,e){this.target=t,this.topTarget=e&&e.topTarget}return t}(),yv=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new vv(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,r=t.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,e.drift(i,o,t),this.handler.dispatchToElement(new vv(e,t),"drag",t.event);var a=this.handler.findHover(n,r,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new vv(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new vv(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new vv(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new vv(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),mv=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof e&&(r=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var a=0;a<i[t].length;a++)if(i[t][a].h===n)return this;var s={h:n,query:e,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},l=i[t].length-1,u=i[t][l];return u&&u.callAtLast?i[t].splice(l,0,s):i[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var r=[],i=0,o=n[t].length;o>i;i++)n[t][i].h!==e&&r.push(n[t][i]);n[t]=r}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=r.length,s=0;a>s;s++){var l=r[s];if(!i||!i.filter||null==l.query||i.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=e[o-1],s=r.length,l=0;s>l;l++){var u=r[l];if(!i||!i.filter||null==u.query||i.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t}(),_v=Math.log(2),xv="___zrEVENTSAVED",wv=/([&<>"'])/g,bv={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Sv=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Mv=[],Tv=Bg.browser.firefox&&+Bg.browser.version.split(".")[0]<39,Cv=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},kv=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var r=t.touches;if(r){for(var i={points:[],touches:[],target:e,event:t},o=0,a=r.length;a>o;o++){var s=r[o],l=ke(n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},t.prototype._recognize=function(t){for(var e in Dv)if(Dv.hasOwnProperty(e)){var n=Dv[e](this._track,t);if(n)return n}},t}(),Dv={pinch:function(t,e){var n=t.length;if(n){var r=(t[n-1]||{}).points,i=(t[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var o=Re(r)/Re(i);!isFinite(o)&&(o=1),e.pinchScale=o;var a=Ne(r);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}},Iv=(Object.freeze||Object)({create:Be,identity:Ee,copy:ze,mul:Fe,translate:Ve,rotate:He,scale:We,invert:Ue,clone:Ge}),Av=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,r){t.x=e.x+n.x*r,t.y=e.y+n.y*r},t.lerp=function(t,e,n,r){var i=1-r;t.x=i*e.x+r*n.x,t.y=i*e.y+r*n.y},t}(),Lv=Math.min,Ov=Math.max,Pv=new Av,Rv=new Av,Nv=new Av,Bv=new Av,Ev=new Av,zv=new Av,Fv=function(){function t(t,e,n,r){0>n&&(t+=n,n=-n),0>r&&(e+=r,r=-r),this.x=t,this.y=e,this.width=n,this.height=r}return t.prototype.union=function(t){var e=Lv(t.x,this.x),n=Lv(t.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?Ov(t.x+t.width,this.x+this.width)-e:t.width,this.height=isFinite(this.y)&&isFinite(this.height)?Ov(t.y+t.height,this.y+this.height)-n:t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,r=t.height/e.height,i=Be();return Ve(i,i,[-e.x,-e.y]),We(i,i,[n,r]),Ve(i,i,[t.x,t.y]),i},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,f=!(l>o||i>u||h>s||a>c);if(n){var p=1/0,d=0,g=Math.abs(o-l),v=Math.abs(u-i),y=Math.abs(s-h),m=Math.abs(c-a),_=Math.min(g,v),x=Math.min(y,m);l>o||i>u?_>d&&(d=_,v>g?Av.set(zv,-g,0):Av.set(zv,v,0)):p>_&&(p=_,v>g?Av.set(Ev,g,0):Av.set(Ev,-v,0)),h>s||a>c?x>d&&(d=x,m>y?Av.set(zv,0,-y):Av.set(zv,0,m)):p>_&&(p=_,m>y?Av.set(Ev,0,y):Av.set(Ev,0,-m))}return n&&Av.copy(n,f?Ev:zv),f},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,r){if(!r)return void(e!==n&&t.copy(e,n));if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return e.x=n.x*i+a,e.y=n.y*o+s,e.width=n.width*i,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Pv.x=Nv.x=n.x,Pv.y=Bv.y=n.y,Rv.x=Bv.x=n.x+n.width,Rv.y=Nv.y=n.y+n.height,Pv.transform(r),Bv.transform(r),Rv.transform(r),Nv.transform(r),e.x=Lv(Pv.x,Rv.x,Nv.x,Bv.x),e.y=Lv(Pv.y,Rv.y,Nv.y,Bv.y);var l=Ov(Pv.x,Rv.x,Nv.x,Bv.x),u=Ov(Pv.y,Rv.y,Nv.y,Bv.y);e.width=l-e.x,e.height=u-e.y},t}(),Vv="silent",Hv=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return e(n,t),n.prototype.dispose=function(){},n.prototype.setCursor=function(){},n}(mv),Wv=function(){function t(t,e){this.x=t,this.y=e}return t}(),Uv=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Gv=new Fv(0,0,0,0),qv=function(t){function n(e,n,r,i,o){var a=t.call(this)||this;return a._hovered=new Wv(0,0),a.storage=e,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new Hv,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new yv(a),a}return e(n,t),n.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(v(Uv,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},n.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,r=Ze(this,e,n),i=this._hovered,o=i.target;o&&!o.__zr&&(i=this.findHover(i.x,i.y),o=i.target);var a=this._hovered=r?new Wv(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},n.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},n.prototype.resize=function(){this._hovered=new Wv(0,0)},n.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},n.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},n.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},n.prototype.dispatchToElement=function(t,e,n){t=t||{};var r=t.target;if(!r||!r.silent){for(var i="on"+e,o=qe(e,t,n);r&&(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(e,o),r=r.__hostTarget?r.__hostTarget:r.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[i]&&t[i].call(t,o),t.trigger&&t.trigger(e,o)}))}},n.prototype.findHover=function(t,e,n){var r=this.storage.getDisplayList(),i=new Wv(t,e);if(je(r,i,t,e,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Fv(t-s,e-s,a,a),u=r.length-1;u>=0;u--){var h=r[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(Gv.copy(h.getBoundingRect()),h.transform&&Gv.applyTransform(h.transform),Gv.intersect(l)&&o.push(h))}if(o.length)for(var c=4,f=Math.PI/12,p=2*Math.PI,d=0;s>d;d+=c)for(var g=0;p>g;g+=f){var v=t+d*Math.cos(g),y=e+d*Math.sin(g);if(je(o,i,v,y,n),i.target)return i}}return i},n.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new kv);var n=this._gestureMgr;"start"===e&&n.clear();var r=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),r){var i=r.type;t.gestureEvent=i;var o=new Wv;o.target=r.target,this.dispatchToElement(o,i,r.event)}},n}(mv);v(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){qv.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,a=Ze(this,i,o);if("mouseup"===t&&a||(n=this.findHover(i,o),r=n.target),"mousedown"===t)this._downEl=r,this._downPoint=[e.zrX,e.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||pv(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var Xv,Yv=32,jv=7,Zv=1,Kv=2,$v=4,Qv=!1,Jv=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=an}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,r=0,i=e.length;i>r;r++)this._updateAndAddDisplayable(e[r],null,t);n.length=this._displayListLen,rn(n,an)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var r=t.getClipPath();if(t.ignoreClip)e=null;else if(r){e=e?e.slice():[];for(var i=r,o=t;i;)i.parent=o,i.updateTransform(),e.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=Zv),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(on(),u.z=0),isNaN(u.z2)&&(on(),u.z2=0),isNaN(u.zlevel)&&(on(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var f=t.getTextContent();f&&this._updateAndAddDisplayable(f,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;n>e;e++)this.delRoot(t[e]);else{var r=f(this._roots,t);r>=0&&this._roots.splice(r,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();Xv=Bg.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var ty=Xv,ey={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/r)))},elasticOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/r)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/r):n*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/r)*.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-ey.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*ey.bounceIn(2*t):.5*ey.bounceOut(2*t-1)+.5
}},ny=Math.pow,ry=Math.sqrt,iy=1e-8,oy=1e-4,ay=ry(3),sy=1/3,ly=J(),uy=J(),hy=J(),cy=/cubic-bezier\(([0-9,\.e ]+)\)/,fy=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Q,this.ondestroy=t.ondestroy||Q,this.onrestart=t.onrestart||Q,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused)return void(this._pausedTime+=e);var n=this._life,r=t-this._startTime-this._pausedTime,i=r/n;0>i&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=T(t)?t:ey[t]||Sn(t)},t}(),py=function(){function t(t){this.value=t}return t}(),dy=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new py(t);return this.insertEntry(e),e},t.prototype.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++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),gy=function(){function t(t){this._list=new dy,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,r=this._map,i=null;if(null==r[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new py(e),a.key=t,n.insertEntry(a),r[t]=a}return i},t.prototype.get=function(t){var e=this._map[t],n=this._list;return null!=e?(e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value):void 0},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),vy={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]},yy=new gy(20),my=null,_y=Fn,xy=Vn,wy=(Object.freeze||Object)({parse:Rn,lift:En,toHex:zn,fastLerp:Fn,fastMapToColor:_y,lerp:Vn,mapToColor:xy,modifyHSL:Hn,modifyAlpha:Wn,stringify:Un,lum:Gn,random:qn}),by=Math.round,Sy=1e-4,My={left:"start",right:"end",center:"middle",middle:"middle"},Ty=function(){return Bg.hasGlobalWindow&&T(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(){return null}}(),Cy=Array.prototype.slice,ky=0,Dy=1,Iy=2,Ay=3,Ly=4,Oy=5,Py=6,Ry=[0,0,0,0],Ny=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=Py,s=e;if(g(e)){var l=mr(e);a=l,(1===l&&!D(e[0])||2===l&&!D(e[0][0]))&&(o=!0)}else if(D(e)&&!B(e))a=ky;else if(C(e))if(isNaN(+e)){var u=Rn(e);u&&(s=u,a=Ay)}else a=ky;else if(P(e)){var c=h({},s);c.colorStops=y(e.colorStops,function(t){return{offset:t.offset,color:Rn(t.color)}}),rr(e)?a=Ly:ir(e)&&(a=Oy),s=c}0===i?this.valType=a:(a!==this.valType||a===Py)&&(o=!0),this.discrete=this.discrete||o;var f={time:t,value:s,rawValue:e,percent:0};return n&&(f.easing=n,f.easingFunc=T(n)?n:ey[n]||Sn(n)),r.push(f),f},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(t,e){return t.time-e.time});for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=xr(r),l=_r(r),u=0;i>u;u++){var h=n[u],c=h.value,f=o.value;h.percent=h.time/t,a||(s&&u!==i-1?gr(c,f,r):l&&dr(c.colorStops,f.colorStops))}if(!a&&r!==Oy&&e&&this.needsAnimate()&&e.needsAnimate()&&r===e.valType&&!e._finished){this._additiveTrack=e;for(var p=n[0].value,u=0;i>u;u++)r===ky?n[u].additiveValue=n[u].value-p:r===Ay?n[u].additiveValue=fr([],n[u].value,p,-1):xr(r)&&(n[u].additiveValue=r===Dy?fr([],n[u].value,p,-1):pr([],n[u].value,p,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,h=this.propName,c=s===Ay,f=this._lastFr,p=Math.min;if(1===u)r=i=l[0];else{if(0>e)n=0;else if(e<this._lastFrP){var d=p(f+1,u-1);for(n=d;n>=0&&!(l[n].percent<=e);n--);n=p(n,u-2)}else{for(n=f;u>n&&!(l[n].percent>e);n++);n=p(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var g=i.percent-r.percent,v=0===g?1:p((e-r.percent)/g,1);i.easingFunc&&(v=i.easingFunc(v));var m=o?this._additiveValue:c?Ry:t[h];if(!xr(s)&&!c||m||(m=this._additiveValue=[]),this.discrete)t[h]=1>v?r.rawValue:i.rawValue;else if(xr(s))s===Dy?hr(m,r[a],i[a],v):cr(m,r[a],i[a],v);else if(_r(s)){var _=r[a],x=i[a],w=s===Ly;t[h]={type:w?"linear":"radial",x:ur(_.x,x.x,v),y:ur(_.y,x.y,v),colorStops:y(_.colorStops,function(t,e){var n=x.colorStops[e];return{offset:ur(t.offset,n.offset,v),color:yr(hr([],t.color,n.color,v))}}),global:x.global},w?(t[h].x2=ur(_.x2,x.x2,v),t[h].y2=ur(_.y2,x.y2,v)):t[h].r=ur(_.r,x.r,v)}else if(c)hr(m,r[a],i[a],v),o||(t[h]=yr(m));else{var b=ur(r[a],i[a],v);o?this._additiveValue=b:t[h]=b}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,r=this._additiveValue;e===ky?t[n]=t[n]+r:e===Ay?(Rn(t[n],Ry),fr(Ry,Ry,r,1),t[n]=yr(Ry)):e===Dy?fr(t[n],t[n],r,1):e===Iy&&pr(t[n],t[n],r,1)},t}(),By=function(){function t(t,e,n,r){return this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r?void a("Can' use additive animation on looped animation."):(this._additiveAnimators=r,void(this._allowDiscrete=n))}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,w(e),n)},t.prototype.whenWithKeys=function(t,e,n,r){for(var i=this._tracks,o=0;o<n.length;o++){var a=n[o],s=i[a];if(!s){s=i[a]=new Ny(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var h=u.keyframes,c=h[h.length-1];l=c&&c.value,u.valType===Ay&&l&&(l=yr(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,vr(l),r),this._trackKeys.push(a)}s.addKeyframe(t,vr(e[a]),r)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;e>n;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(t);i&&(e=i)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(r,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var h=l[u-1];h&&(e._target[a.propName]=h.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var c=new fy({life:r,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var r=e._additiveAnimators;if(r){for(var i=!1,o=0;o<r.length;o++)if(r[o]._clip){i=!0;break}i||(e._additiveAnimators=null)}for(var o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(var o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return y(this._trackKeys,function(e){return t._tracks[e]})},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}for(var a=!0,i=0;i<r.length;i++)if(!n[r[i]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var r=0;r<e.length;r++){var i=e[r],o=this._tracks[i];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[i]=vr(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||w(t);for(var n=0;n<e.length;n++){var r=e[n],i=this._tracks[r];if(i){var o=i.keyframes;if(o.length>1){var a=o.pop();i.addKeyframe(a.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}(),Ey=function(t){function n(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return e(n,t),n.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},n.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},n.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},n.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},n.prototype.update=function(t){for(var e=wr()-this._pausedTime,n=e-this._time,r=this._head;r;){var i=r.next,o=r.step(e,n);o?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},n.prototype._startLoop=function(){function t(){e._running&&(ty(t),!e._paused&&e.update())}var e=this;this._running=!0,ty(t)},n.prototype.start=function(){this._running||(this._time=wr(),this._pausedTime=0,this._startLoop())},n.prototype.stop=function(){this._running=!1},n.prototype.pause=function(){this._paused||(this._pauseStart=wr(),this._paused=!0)},n.prototype.resume=function(){this._paused&&(this._pausedTime+=wr()-this._pauseStart,this._paused=!1)},n.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},n.prototype.isFinished=function(){return null==this._head},n.prototype.animate=function(t,e){e=e||{},this.start();var n=new By(t,e.loop);return this.addAnimator(n),n},n}(mv),zy=300,Fy=Bg.domSupported,Vy=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=y(t,function(t){var e=t.replace("mouse","pointer");return n.hasOwnProperty(e)?e:t});return{mouse:t,touch:e,pointer:r}}(),Hy={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Wy=!1,Uy=function(){function t(t,e){this.stopPropagation=Q,this.stopImmediatePropagation=Q,this.preventDefault=Q,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),Gy={mousedown:function(t){t=Ae(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Ae(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Ae(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Ae(this.dom,t);var e=t.toElement||t.relatedTarget;Cr(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Wy=!0,t=Ae(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Wy||(t=Ae(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Ae(this.dom,t),Mr(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Gy.mousemove.call(this,t),Gy.mousedown.call(this,t)},touchmove:function(t){t=Ae(this.dom,t),Mr(t),this.handler.processGesture(t,"change"),Gy.mousemove.call(this,t)},touchend:function(t){t=Ae(this.dom,t),Mr(t),this.handler.processGesture(t,"end"),Gy.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<zy&&Gy.click.call(this,t)},pointerdown:function(t){Gy.mousedown.call(this,t)},pointermove:function(t){br(t)||Gy.mousemove.call(this,t)},pointerup:function(t){Gy.mouseup.call(this,t)},pointerout:function(t){br(t)||Gy.mouseout.call(this,t)}};v(["click","dblclick","contextmenu"],function(t){Gy[t]=function(e){e=Ae(this.dom,e),this.trigger(t,e)}});var qy={pointermove:function(t){br(t)||qy.mousemove.call(this,t)},pointerup:function(t){qy.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}},Xy=function(){function t(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return t}(),Yy=function(t){function n(e,n){var r=t.call(this)||this;return r.__pointerCapturing=!1,r.dom=e,r.painterRoot=n,r._localHandlerScope=new Xy(e,Gy),Fy&&(r._globalHandlerScope=new Xy(document,qy)),kr(r,r._localHandlerScope),r}return e(n,t),n.prototype.dispose=function(){Ar(this._localHandlerScope),Fy&&Ar(this._globalHandlerScope)},n.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},n.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Fy&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?Dr(this,e):Ar(e)}},n}(mv),jy=1;Bg.hasGlobalWindow&&(jy=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Zy=jy,Ky=.4,$y="#333",Qy="#ccc",Jy="#eee",tm=Ee,em=5e-5,nm=[],rm=[],im=Be(),om=Math.abs,am=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return Lr(this.rotation)||Lr(this.x)||Lr(this.y)||Lr(this.scaleX-1)||Lr(this.scaleY-1)||Lr(this.skewX)||Lr(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;return e||t?(n=n||Be(),e?this.getLocalTransform(n):tm(n),t&&(e?Fe(n,t,n):ze(n,t)),this.transform=n,void this._resolveGlobalScaleRatio(n)):void(n&&tm(n))},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(nm);var n=nm[0]<0?-1:1,r=nm[1]<0?-1:1,i=((nm[0]-n)*e+n)/nm[0]||0,o=((nm[1]-r)*e+r)/nm[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Be(),Ue(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],r=Math.atan2(t[1],t[0]),i=Math.PI/2+r-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Fe(rm,t.invTransform,e),e=rm);var n=this.originX,r=this.originY;(n||r)&&(im[4]=n,im[5]=r,Fe(rm,e,im),rm[4]-=n,rm[5]-=r,e=rm),this.setLocalTransform(e)}},t.prototype.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)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],r=this.invTransform;return r&&ye(n,n,r),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&ye(n,n,r),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&om(t[0]-1)>1e-10&&om(t[3]-1)>1e-10?Math.sqrt(om(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){Or(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,i=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,f=t.skewY?Math.tan(-t.skewY):0;if(n||r||a||s){var p=n+a,d=r+s;e[4]=-p*i-c*d*o,e[5]=-d*o-f*p*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=f*i,e[2]=c*o,l&&He(e,e,l),e[4]+=n+u,e[5]+=r+h,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),sm=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"],lm={},um="__zr_normal__",hm=sm.concat(["ignore"]),cm=m(sm,function(t,e){return t[e]=!0,t},{ignore:!1}),fm={},pm=new Fv(0,0,0,0),dm=function(){function t(t){this.id=o(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=e.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(e),null!=n.position){var u=pm;u.copy(n.layoutRect?n.layoutRect:this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(fm,n,u):Vr(fm,n,u),i.x=fm.x,i.y=fm.y,o=fm.align,a=fm.verticalAlign;var h=n.origin;if(h&&null!=n.rotation){var c=void 0,f=void 0;"center"===h?(c=.5*u.width,f=.5*u.height):(c=Fr(h[0],u.width),f=Fr(h[1],u.height)),l=!0,i.originX=-i.x+c+(r?0:u.x),i.originY=-i.y+f+(r?0:u.y)}}null!=n.rotation&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],l||(i.originX=-p[0],i.originY=-p[1]));var d=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,y=void 0,m=void 0;d&&this.canBeInsideText()?(v=n.insideFill,y=n.insideStroke,(null==v||"auto"===v)&&(v=this.getInsideTextFill()),(null==y||"auto"===y)&&(y=this.getInsideTextStroke(v),m=!0)):(v=n.outsideFill,y=n.outsideStroke,(null==v||"auto"===v)&&(v=this.getOutsideFill()),(null==y||"auto"===y)&&(y=this.getOutsideStroke(v),m=!0)),v=v||"#000",(v!==g.fill||y!==g.stroke||m!==g.autoStroke||o!==g.align||a!==g.verticalAlign)&&(s=!0,g.fill=v,g.stroke=y,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=Zv,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Qy:$y},t.prototype.getOutsideStroke=function(){var t=this.__zr&&this.__zr.getBackgroundColor(),e="string"==typeof t&&Rn(t);e||(e=[255,255,255,1]);for(var n=e[3],r=this.__zr.isDarkMode(),i=0;3>i;i++)e[i]=e[i]*n+(r?0:255)*(1-n);return e[3]=1,Un(e,"rgba")},t.prototype.traverse=function(){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},h(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(I(t))for(var n=t,r=w(n),i=0;i<r.length;i++){var o=r[i];this.attrKV(o,t[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==um)){var o=r.targetName,a=o?e[o]:e;r.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,hm)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null==t[i]||i in e||(e[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(um,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===um,o=this.hasState();if(o||!i){var s=this.currentStates,l=this.stateTransition;if(!(f(s,t)>=0)||!e&&1!==s.length){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i)return void a("State "+t+" not exists.");i||this.saveCurrentToNormalState(u);var h=!!(u&&u.hoverLayer||r);h&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,p=this._textGuide;return c&&c.useState(t,e,n,h),p&&p.useState(t,e,n,h),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Zv),u}}},t.prototype.useStates=function(t,e,n){if(t.length){var r=[],i=this.currentStates,o=t.length,a=o===i.length;if(a)for(var s=0;o>s;s++)if(t[s]!==i[s]){a=!1;break}if(a)return;for(var s=0;o>s;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&r.push(u)}var h=r[o-1],c=!!(h&&h.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0);var f=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(t.join(","),f,this._normalState,!1,!e&&!this.__inHover&&p&&p.duration>0,p);var d=this._textContent,g=this._textGuide;d&&d.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Zv)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=f(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var r=this.currentStates.slice(),i=f(r,t),o=f(r,e)>=0;i>=0?o?r.splice(i,1):r[i]=e:n&&!o&&r.push(e),this.useStates(r)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},r=0;r<t.length;r++){var i=t[r];h(n,i),i.textConfig&&(e=e||{},h(e,i.textConfig))}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,r,i,o){var a=!(e&&r);e&&e.textConfig?(this.textConfig=h({},r?this.textConfig:n.textConfig),h(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<hm.length;u++){var c=hm[u],f=i&&cm[c];e&&null!=e[c]?f?(l=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=n[c]&&(f?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!i)for(var u=0;u<this.animators.length;u++){var p=this.animators[u],d=p.targetName;p.getLoop()||p.__changeFinalValue(d?(e||n)[d]:e||n)}l&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new am,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),h(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=Zv;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var r=t?this[t]:this,i=new By(r,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},t.prototype.addAnimator=function(t,e){var n=this.__zr,r=this;t.during(function(){r.updateDuringAnimation(e)
}).done(function(){var e=r.animators,n=f(e,t);n>=0&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,r=n.length,i=[],o=0;r>o;o++){var a=n[o];t&&t!==a.scope?i.push(a):a.stop(e)}return this.animators=i,this},t.prototype.animateTo=function(t,e,n){Hr(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){Hr(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,r){for(var i=Hr(this,e,n,r),o=0;o<i.length;o++)i[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){function e(t,e,r,i){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[r]},set:function(e){t[r]=e}}),Object.defineProperty(e,1,{get:function(){return t[i]},set:function(e){t[i]=e}})}Object.defineProperty(n,t,{get:function(){if(!this[e]){var t=this[e]=[];o(this,t)}return this[e]},set:function(t){this[r]=t[0],this[i]=t[1],this[e]=t,o(this,t)}})}var n=t.prototype;n.type="element",n.name="",n.ignore=n.silent=n.isGroup=n.draggable=n.dragging=n.ignoreClip=n.__inHover=!1,n.__dirty=Zv,Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))}(),t}();d(dm,mv),d(dm,am);var gm=function(t){function n(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return e(n,t),n.prototype.childrenRef=function(){return this._children},n.prototype.children=function(){return this._children.slice()},n.prototype.childAt=function(t){return this._children[t]},n.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},n.prototype.childCount=function(){return this._children.length},n.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},n.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,r=n.indexOf(e);r>=0&&(n.splice(r,0,t),this._doAdd(t))}return this},n.prototype.replace=function(t,e){var n=f(this._children,t);return n>=0&&this.replaceAt(e,n),this},n.prototype.replaceAt=function(t,e){var n=this._children,r=n[e];if(t&&t!==this&&t.parent!==this&&t!==r){n[e]=t,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(t)}return this},n.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},n.prototype.remove=function(t){var e=this.__zr,n=this._children,r=f(n,t);return 0>r?this:(n.splice(r,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh(),this)},n.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var r=t[n];e&&r.removeSelfFromZr(e),r.parent=null}return t.length=0,this},n.prototype.eachChild=function(t,e){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];t.call(e,i,r)}return this},n.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=t.call(e,r);r.isGroup&&!i&&r.traverse(t,e)}return this},n.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){var r=this._children[n];r.addSelfToZr(e)}},n.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var r=this._children[n];r.removeSelfFromZr(e)}},n.prototype.getBoundingRect=function(t){for(var e=new Fv(0,0,0,0),n=t||this._children,r=[],i=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(r);l?(Fv.applyTransform(e,s,l),i=i||e.clone(),i.union(e)):(i=i||s.clone(),i.union(s))}}return i||e},n}(dm);gm.prototype.type="group";var vm={},ym={},mm=function(){function t(t,e,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var i=new Jv,o=n.renderer||"canvas";vm[o]||(o=w(vm)[0]),n.useDirtyRect=null==n.useDirtyRect?!1:n.useDirtyRect;var a=new vm[o](e,i,n,t),s=n.ssr||a.ssrOnly;this.storage=i,this.painter=a;var l,u=Bg.node||Bg.worker||s?null:new Yy(a.getViewportRoot(),a.root),h=n.useCoarsePointer,c=null==h||"auto"===h?Bg.touchEventsSupported:!!h,f=44;c&&(l=z(n.pointerSize,f)),this.handler=new qv(i,a,u,a.root,l),this.animation=new Ey({stage:{update:s?null:function(){return r._flush(!0)}}}),s||this.animation.start()}return t.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},t.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Zr(t)},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},t.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){this._flush(!1)},t.prototype._flush=function(t){var e,n=wr();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var r=wr();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof gm&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,jr(this.id)},t}(),_m="5.4.3",xm=(Object.freeze||Object)({init:Kr,dispose:$r,disposeAll:Qr,getInstance:Jr,registerPainter:ti,version:_m}),wm=1e-4,bm=20,Sm=9007199254740991,Mm=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/,Tm=("undefined"!=typeof console&&console.warn&&console.log,"series\x00"),Cm="\x00_ec_\x00",km=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"],Dm=bi(),Im={useDefault:!0,enableAll:!1,enableNone:!1},Am=".",Lm="___EC__COMPONENT__CONTAINER___",Om="___EC__EXTENDED_CLASS___",Pm=Math.round(10*Math.random()),Rm=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Nm=uo(Rm),Bm=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return Nm(this,t,e)},t}(),Em=new gy(50),zm=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,Fm=function(){function t(){}return t}(),Vm=function(){function t(t){this.tokens=[],t&&(this.tokens=t)}return t}(),Hm=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return t}(),Wm=m(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{}),Um="__zr_style_"+Math.round(10*Math.random()),Gm={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},qm={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Gm[Um]=!0;var Xm=["z","z2","invisible"],Ym=["invisible"],jm=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype._init=function(e){for(var n=w(e),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(e[i]):t.prototype.attrKV.call(this,i,e[i])}this.style||this.useStyle({})},n.prototype.beforeBrush=function(){},n.prototype.afterBrush=function(){},n.prototype.innerBeforeBrush=function(){},n.prototype.innerAfterBrush=function(){},n.prototype.shouldBePainted=function(t,e,n,r){var i=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&To(this,t,e)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(r&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},n.prototype.contain=function(t,e){return this.rectContain(t,e)},n.prototype.traverse=function(t,e){t.call(e,this)},n.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();return r.contain(n[0],n[1])},n.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,o=r.shadowOffsetX||0,a=r.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new Fv(0,0,0,0)),e?Fv.applyTransform(t,n,e):t.copy(n),(i||o||a)&&(t.width+=2*i+Math.abs(o),t.height+=2*i+Math.abs(a),t.x=Math.min(t.x,t.x+o-i),t.y=Math.min(t.y,t.y+a-i));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},n.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new Fv(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},n.prototype.getPrevPaintRect=function(){return this._prevPaintRect},n.prototype.animateStyle=function(t){return this.animate("style",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},n.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},n.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:h(this.style,t),this.dirtyStyle(),this},n.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=Kv,this._rect&&(this._rect=null)},n.prototype.dirty=function(){this.dirtyStyle()},n.prototype.styleChanged=function(){return!!(this.__dirty&Kv)},n.prototype.styleUpdated=function(){this.__dirty&=~Kv},n.prototype.createStyle=function(t){return Z(Gm,t)},n.prototype.useStyle=function(t){t[Um]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},n.prototype.isStyleObject=function(t){return t[Um]},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,Xm)},n.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.style?o?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):l&&(s=r.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var h=w(u),c=0;c<h.length;c++){var f=h[c];f in s&&(s[f]=s[f],this.style[f]=u[f])}for(var p=w(s),c=0;c<p.length;c++){var f=p[c];this.style[f]=this.style[f]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);for(var d=this.__inHover?Ym:Xm,c=0;c<d.length;c++){var f=d[c];n&&null!=n[f]?this[f]=n[f]:l&&null!=r[f]&&(this[f]=r[f])}},n.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(r.style=n),r},n.prototype._mergeStyle=function(t,e){return h(t,e),t},n.prototype.getAnimationStyleProps=function(){return qm},n.initDefaultProps=function(){var t=n.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=Zv|Kv}(),n}(dm),Zm=new Fv(0,0,0,0),Km=new Fv(0,0,0,0),$m=Math.min,Qm=Math.max,Jm=Math.sin,t_=Math.cos,e_=2*Math.PI,n_=J(),r_=J(),i_=J(),o_=[],a_=[],s_={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},l_=[],u_=[],h_=[],c_=[],f_=[],p_=[],d_=Math.min,g_=Math.max,v_=Math.cos,y_=Math.sin,m_=Math.abs,__=Math.PI,x_=2*__,w_="undefined"!=typeof Float32Array,b_=[],S_=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){n=n||0,n>0&&(this._ux=m_(n/Zy/t)||0,this._uy=m_(n/Zy/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(s_.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=m_(t-this._xi),r=m_(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(s_.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this._drawPendingPt(),this.addData(s_.C,t,e,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,r,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,r){return this._drawPendingPt(),this.addData(s_.Q,t,e,n,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(t,e,n,r,i,o){this._drawPendingPt(),b_[0]=r,b_[1]=i,Lo(b_,o),r=b_[0],i=b_[1];var a=i-r;return this.addData(s_.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=v_(i)*n+t,this._yi=y_(i)*n+e,this},t.prototype.arcTo=function(t,e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},t.prototype.rect=function(t,e,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,r),this.addData(s_.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(s_.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!w_||(this.data=new Float32Array(e));for(var n=0;e>n;n++)this.data[n]=t[n];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,r=this._len,i=0;e>i;i++)n+=t[i].len();w_&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(var i=0;e>i;i++)for(var o=t[i].data,a=0;a<o.length;a++)this.data[r++]=o[a];this._len=r},t.prototype.addData=function(){if(this._saveData){var t=this.data;this._len+arguments.length>t.length&&(this._expandData(),t=this.data);for(var e=0;e<arguments.length;e++)t[this._len++]=arguments[e]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,w_&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){h_[0]=h_[1]=f_[0]=f_[1]=Number.MAX_VALUE,c_[0]=c_[1]=p_[0]=p_[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,r=0,i=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(n=e[t],r=e[t+1],i=n,o=r),a){case s_.M:n=i=e[t++],r=o=e[t++],f_[0]=i,f_[1]=o,p_[0]=i,p_[1]=o;break;case s_.L:Co(n,r,e[t],e[t+1],f_,p_),n=e[t++],r=e[t++];break;case s_.C:ko(n,r,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],f_,p_),n=e[t++],r=e[t++];break;case s_.Q:Do(n,r,e[t++],e[t++],e[t],e[t+1],f_,p_),n=e[t++],r=e[t++];break;case s_.A:var l=e[t++],u=e[t++],h=e[t++],c=e[t++],f=e[t++],p=e[t++]+f;t+=1;var d=!e[t++];s&&(i=v_(f)*h+l,o=y_(f)*c+u),Io(l,u,h,c,f,p,d,f_,p_),n=v_(p)*h+l,r=y_(p)*c+u;break;case s_.R:i=n=e[t++],o=r=e[t++];var g=e[t++],v=e[t++];Co(i,o,i+g,o+v,f_,p_);break;case s_.Z:n=i,r=o}me(h_,h_,f_),_e(c_,c_,p_)}return 0===t&&(h_[0]=h_[1]=c_[0]=c_[1]=0),new Fv(h_[0],h_[1],c_[0]-h_[0],c_[1]-h_[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,r=this._uy,i=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,h=0,c=0;e>c;){var f=t[c++],p=1===c;p&&(i=t[c],o=t[c+1],a=i,s=o);var d=-1;switch(f){case s_.M:i=a=t[c++],o=s=t[c++];break;case s_.L:var g=t[c++],v=t[c++],y=g-i,m=v-o;(m_(y)>n||m_(m)>r||c===e-1)&&(d=Math.sqrt(y*y+m*m),i=g,o=v);break;case s_.C:var _=t[c++],x=t[c++],g=t[c++],v=t[c++],w=t[c++],b=t[c++];d=gn(i,o,_,x,g,v,w,b,10),i=w,o=b;break;case s_.Q:var _=t[c++],x=t[c++],g=t[c++],v=t[c++];d=bn(i,o,_,x,g,v,10),i=g,o=v;break;case s_.A:var S=t[c++],M=t[c++],T=t[c++],C=t[c++],k=t[c++],D=t[c++],I=D+k;c+=1;{!t[c++]}p&&(a=v_(k)*T+S,s=y_(k)*C+M),d=g_(T,C)*d_(x_,Math.abs(D)),i=v_(I)*T+S,o=y_(I)*C+M;break;case s_.R:a=i=t[c++],s=o=t[c++];var A=t[c++],L=t[c++];d=2*A+2*L;break;case s_.Z:var y=a-i,m=s-o;d=Math.sqrt(y*y+m*m),i=a,o=s}d>=0&&(l[h++]=d,u+=d)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,r,i,o,a,s,l,u,h,c,f,p=this.data,d=this._ux,g=this._uy,v=this._len,y=1>e,m=0,_=0,x=0;if(!y||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,h=e*u))t:for(var w=0;v>w;){var b=p[w++],S=1===w;switch(S&&(i=p[w],o=p[w+1],n=i,r=o),b!==s_.L&&x>0&&(t.lineTo(c,f),x=0),b){case s_.M:n=i=p[w++],r=o=p[w++],t.moveTo(i,o);break;case s_.L:a=p[w++],s=p[w++];var M=m_(a-i),T=m_(s-o);if(M>d||T>g){if(y){var C=l[_++];if(m+C>h){var k=(h-m)/C;t.lineTo(i*(1-k)+a*k,o*(1-k)+s*k);break t}m+=C}t.lineTo(a,s),i=a,o=s,x=0}else{var D=M*M+T*T;D>x&&(c=a,f=s,x=D)}break;case s_.C:var I=p[w++],A=p[w++],L=p[w++],O=p[w++],P=p[w++],R=p[w++];if(y){var C=l[_++];if(m+C>h){var k=(h-m)/C;pn(i,I,L,P,k,l_),pn(o,A,O,R,k,u_),t.bezierCurveTo(l_[1],u_[1],l_[2],u_[2],l_[3],u_[3]);break t}m+=C}t.bezierCurveTo(I,A,L,O,P,R),i=P,o=R;break;case s_.Q:var I=p[w++],A=p[w++],L=p[w++],O=p[w++];if(y){var C=l[_++];if(m+C>h){var k=(h-m)/C;xn(i,I,L,k,l_),xn(o,A,O,k,u_),t.quadraticCurveTo(l_[1],u_[1],l_[2],u_[2]);break t}m+=C}t.quadraticCurveTo(I,A,L,O),i=L,o=O;break;case s_.A:var N=p[w++],B=p[w++],E=p[w++],z=p[w++],F=p[w++],V=p[w++],H=p[w++],W=!p[w++],U=E>z?E:z,G=m_(E-z)>.001,q=F+V,X=!1;if(y){var C=l[_++];m+C>h&&(q=F+V*(h-m)/C,X=!0),m+=C}if(G&&t.ellipse?t.ellipse(N,B,E,z,H,F,q,W):t.arc(N,B,U,F,q,W),X)break t;S&&(n=v_(F)*E+N,r=y_(F)*z+B),i=v_(q)*E+N,o=y_(q)*z+B;break;case s_.R:n=i=p[w],r=o=p[w+1],a=p[w++],s=p[w++];var Y=p[w++],j=p[w++];if(y){var C=l[_++];if(m+C>h){var Z=h-m;t.moveTo(a,s),t.lineTo(a+d_(Z,Y),s),Z-=Y,Z>0&&t.lineTo(a+Y,s+d_(Z,j)),Z-=j,Z>0&&t.lineTo(a+g_(Y-Z,0),s+j),Z-=Y,Z>0&&t.lineTo(a,s+g_(j-Z,0));break t}m+=C}t.rect(a,s,Y,j);break;case s_.Z:if(y){var C=l[_++];if(m+C>h){var k=(h-m)/C;t.lineTo(i*(1-k)+n*k,o*(1-k)+r*k);break t}m+=C}t.closePath(),i=n,o=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=s_,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),M_=2*Math.PI,T_=2*Math.PI,C_=S_.CMD,k_=2*Math.PI,D_=1e-4,I_=[-1,-1,-1],A_=[-1,-1],L_=c({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Gm),O_={style:c({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},qm.style)},P_=sm.concat(["invisible","culling","z","z2","zlevel","parent"]),R_=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.update=function(){var e=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new n;i.buildPath===n.prototype.buildPath&&(i.buildPath=function(t){e.buildPath(t,e.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<P_.length;++s)i[P_[s]]=this[P_[s]];i.__dirty|=Zv}else this._decalEl&&(this._decalEl=null)},n.prototype.getDecalElement=function(){return this._decalEl},n.prototype._init=function(e){var n=w(e);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var o=n[i],a=e[o];"style"===o?this.style?h(this.style,a):this.useStyle(a):"shape"===o?h(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},n.prototype.getDefaultStyle=function(){return null},n.prototype.getDefaultShape=function(){return{}},n.prototype.canBeInsideText=function(){return this.hasFill()},n.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(C(t)){var e=Gn(t,0);return e>.5?$y:e>.2?Jy:Qy}if(t)return Qy}return $y},n.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(C(e)){var n=this.__zr,r=!(!n||!n.isDarkMode()),i=Gn(t,0)<Ky;if(r===i)return e}},n.prototype.buildPath=function(){},n.prototype.pathUpdated=function(){this.__dirty&=~$v},n.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},n.prototype.createPathProxy=function(){this.path=new S_(!1)},n.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},n.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},n.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&$v)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},n.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect(),i=this.style;if(t=n[0],e=n[1],r.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),qo(o,a/s,t,e)))return!0}if(this.hasFill())return Go(o,t,e)}return!1},n.prototype.dirtyShape=function(){this.__dirty|=$v,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},n.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},n.prototype.animateShape=function(t){return this.animate("shape",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},n.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},n.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:h(n,t),this.dirtyShape(),this},n.prototype.shapeChanged=function(){return!!(this.__dirty&$v)},n.prototype.createStyle=function(t){return Z(L_,t)},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=h({},this.shape))},n.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=h({},r.shape),h(s,n.shape)):(s=h({},i?this.shape:r.shape),h(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=h({},this.shape);for(var u={},c=w(s),f=0;f<c.length;f++){var p=c[f];"object"==typeof s[p]?this.shape[p]=s[p]:u[p]=s[p]}this._transitionState(e,{shape:u},a)}else this.shape=s,this.dirtyShape()},n.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(r.shape=n),r},n.prototype.getAnimationStyleProps=function(){return O_},n.prototype.isZeroArea=function(){return!1},n.extend=function(t){var r=function(n){function r(e){var r=n.call(this,e)||this;return t.init&&t.init.call(r,e),r}return e(r,n),r.prototype.getDefaultStyle=function(){return s(t.style)},r.prototype.getDefaultShape=function(){return s(t.shape)},r}(n);for(var i in t)"function"==typeof t[i]&&(r.prototype[i]=t[i]);return r},n.initDefaultProps=function(){var t=n.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=Zv|Kv|$v}(),n}(jm),N_=c({strokeFirst:!0,font:Fg,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},L_),B_=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},n.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},n.prototype.createStyle=function(t){return Z(N_,t)},n.prototype.setBoundingRect=function(t){this._rect=t},n.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=Nr(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var r=t.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},n.initDefaultProps=function(){var t=n.prototype;t.dirtyRectTolerance=10}(),n}(jm);B_.prototype.type="tspan";var E_=c({x:0,y:0},Gm),z_={style:c({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},qm.style)},F_=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.createStyle=function(t){return Z(E_,t)},n.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r=Xo(e.image)?e.image:this.__image;if(!r)return 0;var i="width"===t?"height":"width",o=e[i];return null==o?r[t]:r[t]/r[i]*o},n.prototype.getWidth=function(){return this._getSize("width")},n.prototype.getHeight=function(){return this._getSize("height")},n.prototype.getAnimationStyleProps=function(){return z_},n.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Fv(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},n}(jm);F_.prototype.type="image";var V_=Math.round,H_=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),W_={},U_=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new H_},n.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=Zo(W_,e,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,r=e.y,i=e.width,o=e.height;e.r?Yo(t,e):t.rect(n,r,i,o)},n.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},n}(R_);U_.prototype.type="rect";var G_={fill:"#000"},q_=2,X_={style:c({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},qm.style)},Y_=function(t){function n(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=G_,n.attr(e),n}return e(n,t),n.prototype.childrenRef=function(){return this._children},n.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},n.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},n.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},n.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},n.prototype._updateSubTexts=function(){this._childCursor=0,ta(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},n.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},n.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},n.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new Fv(0,0,0,0),e=this._children,n=[],r=null,i=0;i<e.length;i++){var o=e[i],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),r=r||t.clone(),r.union(t)):(r=r||a.clone(),r.union(a))}this._rect=r||t}return this._rect},n.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||G_},n.prototype.setTextContent=function(){},n.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,r=t.rich||n&&{};return h(t,e),n&&r?(this._mergeRich(r,n),t.rich=r):r&&(t.rich=r),t},n.prototype._mergeRich=function(t,e){for(var n=w(e),r=0;r<n.length;r++){var i=n[r];t[i]=t[i]||{},h(t[i],e[i])}},n.prototype.getAnimationStyleProps=function(){return X_},n.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},n.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||Fg,n=t.padding,r=oa(t),i=_o(r,t),o=aa(t),a=!!t.backgroundColor,s=i.outerHeight,l=i.outerWidth,u=i.contentWidth,h=i.lines,c=i.lineHeight,f=this._defaultStyle,p=t.x||0,d=t.y||0,g=t.align||f.align||"left",v=t.verticalAlign||f.verticalAlign||"top",y=p,m=Er(d,i.contentHeight,v);if(o||n){var _=Br(p,l,g),x=Er(d,s,v);
o&&this._renderBackground(t,t,_,x,l,s)}m+=c/2,n&&(y=ia(p,g,n),"top"===v?m+=n[0]:"bottom"===v&&(m-=n[2]));for(var w=0,b=!1,S=(ra("fill"in t?t.fill:(b=!0,f.fill))),M=(na("stroke"in t?t.stroke:a||f.autoStroke&&!b?null:(w=q_,f.stroke))),T=t.textShadowBlur>0,C=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),k=i.calculatedLineHeight,D=0;D<h.length;D++){var I=this._getOrCreateChild(B_),A=I.createStyle();I.useStyle(A),A.text=h[D],A.x=y,A.y=m,g&&(A.textAlign=g),A.textBaseline="middle",A.opacity=t.opacity,A.strokeFirst=!0,T&&(A.shadowBlur=t.textShadowBlur||0,A.shadowColor=t.textShadowColor||"transparent",A.shadowOffsetX=t.textShadowOffsetX||0,A.shadowOffsetY=t.textShadowOffsetY||0),A.stroke=M,A.fill=S,M&&(A.lineWidth=t.lineWidth||w,A.lineDash=t.lineDash,A.lineDashOffset=t.lineDashOffset||0),A.font=e,Qo(A,t),m+=c,C&&I.setBoundingRect(new Fv(Br(A.x,t.width,A.textAlign),Er(A.y,k,A.textBaseline),u,k))}},n.prototype._updateRichTexts=function(){var t=this.style,e=oa(t),n=xo(e,t),r=n.width,i=n.outerWidth,o=n.outerHeight,a=t.padding,s=t.x||0,l=t.y||0,u=this._defaultStyle,h=t.align||u.align,c=t.verticalAlign||u.verticalAlign,f=Br(s,i,h),p=Er(l,o,c),d=f,g=p;a&&(d+=a[3],g+=a[0]);var v=d+r;aa(t)&&this._renderBackground(t,t,f,p,i,o);for(var y=!!t.backgroundColor,m=0;m<n.lines.length;m++){for(var _=n.lines[m],x=_.tokens,w=x.length,b=_.lineHeight,S=_.width,M=0,T=d,C=v,k=w-1,D=void 0;w>M&&(D=x[M],!D.align||"left"===D.align);)this._placeToken(D,t,b,g,T,"left",y),S-=D.width,T+=D.width,M++;for(;k>=0&&(D=x[k],"right"===D.align);)this._placeToken(D,t,b,g,C,"right",y),S-=D.width,C-=D.width,k--;for(T+=(r-(T-d)-(v-C)-S)/2;k>=M;)D=x[M],this._placeToken(D,t,b,g,T+D.width/2,"center",y),T+=D.width,M++;g+=b}},n.prototype._placeToken=function(t,e,n,r,i,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=r+n/2;"top"===l?u=r+t.height/2:"bottom"===l&&(u=r+n-t.height/2);var h=!t.isLineHolder&&aa(s);h&&this._renderBackground(s,e,"right"===o?i-t.width:"center"===o?i-t.width/2:i,u-t.height/2,t.width,t.height);var c=!!s.backgroundColor,f=t.textPadding;f&&(i=ia(i,o,f),u-=t.height/2-f[0]-t.innerHeight/2);var p=this._getOrCreateChild(B_),d=p.createStyle();p.useStyle(d);var g=this._defaultStyle,v=!1,y=0,m=ra("fill"in s?s.fill:"fill"in e?e.fill:(v=!0,g.fill)),_=na("stroke"in s?s.stroke:"stroke"in e?e.stroke:c||a||g.autoStroke&&!v?null:(y=q_,g.stroke)),x=s.textShadowBlur>0||e.textShadowBlur>0;d.text=t.text,d.x=i,d.y=u,x&&(d.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,d.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",d.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,d.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),d.textAlign=o,d.textBaseline="middle",d.font=t.font||Fg,d.opacity=F(s.opacity,e.opacity,1),Qo(d,s),_&&(d.lineWidth=F(s.lineWidth,e.lineWidth,y),d.lineDash=z(s.lineDash,e.lineDash),d.lineDashOffset=e.lineDashOffset||0,d.stroke=_),m&&(d.fill=m);var w=t.contentWidth,b=t.contentHeight;p.setBoundingRect(new Fv(Br(d.x,w,d.textAlign),Er(d.y,b,d.textBaseline),w,b))},n.prototype._renderBackground=function(t,e,n,r,i,o){var a,s,l=t.backgroundColor,u=t.borderWidth,h=t.borderColor,c=l&&l.image,f=l&&!c,p=t.borderRadius,d=this;if(f||t.lineHeight||u&&h){a=this._getOrCreateChild(U_),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=r,g.width=i,g.height=o,g.r=p,a.dirtyShape()}if(f){var v=a.style;v.fill=l||null,v.fillOpacity=z(t.fillOpacity,1)}else if(c){s=this._getOrCreateChild(F_),s.onload=function(){d.dirtyStyle()};var y=s.style;y.image=l.image,y.x=n,y.y=r,y.width=i,y.height=o}if(u&&h){var v=a.style;v.lineWidth=u,v.stroke=h,v.strokeOpacity=z(t.strokeOpacity,1),v.lineDash=t.borderDash,v.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=F(t.opacity,e.opacity,1)},n.makeFont=function(t){var e="";return Jo(t)&&(e=[t.fontStyle,t.fontWeight,$o(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&U(e)||t.textFont||t.font},n}(jm),j_={left:!0,right:1,center:1},Z_={top:1,bottom:1,middle:1},K_=["fontStyle","fontWeight","fontSize","fontFamily"],$_=Xi(),Q_=function(t,e,n,r){if(r){var i=$_(r);i.dataIndex=n,i.dataType=e,i.seriesIndex=t,"group"===r.type&&r.traverse(function(r){var i=$_(r);i.seriesIndex=t,i.dataIndex=n,i.dataType=e})}},J_=1,tx={},ex=Xi(),nx=Xi(),rx=0,ix=1,ox=2,ax=["emphasis","blur","select"],sx=["normal","emphasis","blur","select"],lx=10,ux=9,hx="highlight",cx="downplay",fx="select",px="unselect",dx="toggleSelect",gx=new gy(100),vx=["emphasis","blur","select"],yx={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"},mx=S_.CMD,_x=[[],[],[]],xx=Math.sqrt,bx=Math.atan2,Sx=Math.sqrt,Mx=Math.sin,Tx=Math.cos,Cx=Math.PI,kx=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Dx=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,Ix=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.applyTransform=function(){},n}(R_),Ax=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),Lx=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new Ax},n.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},n}(R_);Lx.prototype.type="circle";var Ox=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),Px=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new Ox},n.prototype.buildPath=function(t,e){var n=.5522848,r=e.cx,i=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(r-o,i),t.bezierCurveTo(r-o,i-l,r-s,i-a,r,i-a),t.bezierCurveTo(r+s,i-a,r+o,i-l,r+o,i),t.bezierCurveTo(r+o,i+l,r+s,i+a,r,i+a),t.bezierCurveTo(r-s,i+a,r-o,i+l,r-o,i),t.closePath()},n}(R_);Px.prototype.type="ellipse";var Rx=Math.PI,Nx=2*Rx,Bx=Math.sin,Ex=Math.cos,zx=Math.acos,Fx=Math.atan2,Vx=Math.abs,Hx=Math.sqrt,Wx=Math.max,Ux=Math.min,Gx=1e-4,qx=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return t}(),Xx=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new qx},n.prototype.buildPath=function(t,e){ds(t,e)},n.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},n}(R_);Xx.prototype.type="sector";var Yx=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),jx=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new Yx},n.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=2*Math.PI;t.moveTo(n+e.r,r),t.arc(n,r,e.r,0,i,!1),t.moveTo(n+e.r0,r),t.arc(n,r,e.r0,0,i,!0)},n}(R_);jx.prototype.type="ring";var Zx=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),Kx=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new Zx},n.prototype.buildPath=function(t,e){vs(t,e,!0)},n}(R_);Kx.prototype.type="polygon";var $x=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),Qx=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new $x},n.prototype.buildPath=function(t,e){vs(t,e,!1)},n}(R_);Qx.prototype.type="polyline";var Jx={},tw=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),ew=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new tw},n.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=jo(Jx,e,this.style);n=a.x1,r=a.y1,i=a.x2,o=a.y2}else n=e.x1,r=e.y1,i=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,r),1>s&&(i=n*(1-s)+i*s,o=r*(1-s)+o*s),t.lineTo(i,o))},n.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},n}(R_);ew.prototype.type="line";var nw=[],rw=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}(),iw=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new rw},n.prototype.buildPath=function(t,e){var n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,h=e.percent;0!==h&&(t.moveTo(n,r),null==l||null==u?(1>h&&(xn(n,a,i,h,nw),a=nw[1],i=nw[2],xn(r,s,o,h,nw),s=nw[1],o=nw[2]),t.quadraticCurveTo(a,s,i,o)):(1>h&&(pn(n,a,l,i,h,nw),a=nw[1],l=nw[2],i=nw[3],pn(r,s,u,o,h,nw),s=nw[1],u=nw[2],o=nw[3]),t.bezierCurveTo(a,s,l,u,i,o)))},n.prototype.pointAt=function(t){return ys(this.shape,t,!1)},n.prototype.tangentAt=function(t){var e=ys(this.shape,t,!0);return fe(e,e)},n}(R_);iw.prototype.type="bezier-curve";var ow=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),aw=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new ow},n.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*i+n,u*i+r),t.arc(n,r,i,o,a,!s)},n}(R_);aw.prototype.type="arc";var sw=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return e(n,t),n.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},n.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},n.prototype.buildPath=function(t,e){for(var n=e.paths||[],r=0;r<n.length;r++)n[r].buildPath(t,n[r].shape,!0)},n.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},n.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),R_.prototype.getBoundingRect.call(this)},n}(R_),lw=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),uw=function(t){function n(e,n,r,i,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=a||!1,s}return e(n,t),n}(lw),hw=function(t){function n(e,n,r,i,o){var a=t.call(this,i)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return e(n,t),n}(lw),cw=[0,0],fw=[0,0],pw=new Av,dw=new Av,gw=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;4>n;n++)this._corners[n]=new Av;for(var n=0;2>n;n++)this._axes[n]=new Av;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,r=this._axes,i=t.x,o=t.y,a=i+t.width,s=o+t.height;if(n[0].set(i,o),n[1].set(a,o),n[2].set(a,s),n[3].set(i,s),e)for(var l=0;4>l;l++)n[l].transform(e);Av.sub(r[0],n[1],n[0]),Av.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var l=0;2>l;l++)this._origin[l]=r[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,r=!e;return pw.set(1/0,1/0),dw.set(0,0),!this._intersectCheckOneSide(this,t,pw,dw,r,1)&&(n=!1,r)?n:!this._intersectCheckOneSide(t,this,pw,dw,r,-1)&&(n=!1,r)?n:(r||Av.copy(e,n?pw:dw),n)},t.prototype._intersectCheckOneSide=function(t,e,n,r,i,o){for(var a=!0,s=0;2>s;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,cw),this._getProjMinMaxOnAxis(s,e._corners,fw),cw[1]<fw[0]||cw[0]>fw[1]){if(a=!1,i)return a;var u=Math.abs(fw[0]-cw[1]),h=Math.abs(cw[0]-fw[1]);Math.min(u,h)>r.len()&&(h>u?Av.scale(r,l,-u*o):Av.scale(r,l,h*o))}else if(n){var u=Math.abs(fw[0]-cw[1]),h=Math.abs(cw[0]-fw[1]);Math.min(u,h)<n.len()&&(h>u?Av.scale(n,l,u*o):Av.scale(n,l,-h*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var r=this._axes[t],i=this._origin,o=e[0].dot(r)+i[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(r)+i[t];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},t}(),vw=[],yw=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return e(n,t),n.prototype.traverse=function(t,e){t.call(e,this)},n.prototype.useStyle=function(){this.style={}},n.prototype.getCursor=function(){return this._cursor},n.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},n.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},n.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},n.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},n.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},n.prototype.getDisplayables=function(){return this._displayables},n.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},n.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(var e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},n.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},n.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Fv(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(vw)),t.union(r)}this._rect=t}return this._rect},n.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();if(r.contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++){var o=this._displayables[i];if(o.contain(t,e))return!0}return!1},n}(jm),mw=Xi(),_w=Math.max,xw=Math.min,ww={},bw=us,Sw=hs;Is("circle",Lx),Is("ellipse",Px),Is("sector",Xx),Is("ring",jx),Is("polygon",Kx),Is("polyline",Qx),Is("rect",U_),Is("line",ew),Is("bezierCurve",iw),Is("arc",aw);var Mw={},Tw=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Cw=["align","lineHeight","width","height","tag","verticalAlign"],kw=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],Dw=Xi(),Iw=["textStyle","color"],Aw=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Lw=new Y_,Ow=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Iw):null)},t.prototype.getFont=function(){return Ks({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Aw.length;n++)e[Aw[n]]=this.getShallow(Aw[n]);return Lw.useStyle(e),Lw.update(),Lw.getBoundingRect()},t}(),Pw=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Rw=uo(Pw),Nw=function(){function t(){}return t.prototype.getLineStyle=function(t){return Rw(this,t)},t}(),Bw=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Ew=uo(Bw),zw=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return Ew(this,t,e)},t}(),Fw=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(){for(var t=[],e=3;e<arguments.length;e++)t[e-3]=arguments[e]},t.prototype.mergeOption=function(t){l(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,r=null==n?n:n[t];if(null==r&&!e){var i=this.parentModel;i&&(r=i.getShallow(t))}return r},t.prototype.getModel=function(e,n){var r=null!=e,i=r?this.parsePath(e):null,o=r?this._doGet(i):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(o,n,this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){var t=this.constructor;return new t(s(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!Bg.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var r=0;r<t.length&&(!t[r]||(n=n&&"object"==typeof n?n[t[r]]:null,null!=n));r++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();no(Fw),oo(Fw),d(Fw,Nw),d(Fw,zw),d(Fw,Bm),d(Fw,Ow);var Vw=Math.round(10*Math.random()),Hw={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Ww={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表，"},series:{single:{prefix:"",withName:"图表类型是{seriesType}，表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}，",withoutName:"第{seriesId}个系列是一个{seriesType}，",separator:{middle:"；",end:"。"}}},data:{allData:"其数据是——",partialData:"其中，前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"，",end:""}}}},Uw="ZH",Gw="EN",qw=Gw,Xw={},Yw={},jw=Bg.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(Uw)>-1?Uw:qw}():qw;el(Gw,Hw),el(Uw,Ww);var Zw=1e3,Kw=60*Zw,$w=60*Kw,Qw=24*$w,Jw=365*Qw,tb={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},eb="{yyyy}-{MM}-{dd}",nb={year:"{yyyy}",month:"{yyyy}-{MM}",day:eb,hour:eb+" "+tb.hour,minute:eb+" "+tb.minute,second:eb+" "+tb.second,millisecond:tb.none},rb=["year","month","day","hour","minute","second","millisecond"],ib=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"],ob=H,ab=["a","b","c","d","e","f","g"],sb=function(t,e){return"{"+t+(null==e?"":e)+"}"},lb=v,ub=["left","right","top","bottom","width","height"],hb=[["width","left","right"],["height","top","bottom"]],cb=(S(Nl,"vertical"),S(Nl,"horizontal"),Xi()),fb=function(t){function n(e,n,r){var i=t.call(this,e,n,r)||this;return i.uid=Qs("ec_cpt_model"),i}return e(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=El(this),r=n?Fl(t):{},i=e.getTheme();l(t,i.get(this.mainType)),l(t,this.getDefaultOption()),n&&zl(t,r,n)},n.prototype.mergeOption=function(t){l(this.option,t,!0);var e=El(this);e&&zl(this.option,t,e)},n.prototype.optionUpdated=function(){},n.prototype.getDefaultOption=function(){var t=this.constructor;if(!eo(t))return t.defaultOption;var e=cb(this);if(!e.defaultOption){for(var n=[],r=t;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var o={},a=n.length-1;a>=0;a--)o=l(o,n[a],!0);e.defaultOption=o}return e.defaultOption},n.prototype.getReferringComponents=function(t,e){var n=t+"Index",r=t+"Id";return Zi(this.ecModel,t,{index:this.get(n,!0),id:this.get(r,!0)},e)},n.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},n.prototype.getZLevelKey=function(){return""},n.prototype.setZLevel=function(t){this.option.zlevel=t},n.protoInitialize=function(){var t=n.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),n}(Fw);io(fb,Fw),lo(fb),Js(fb),tl(fb,Hl);var pb="";"undefined"!=typeof navigator&&(pb=navigator.platform||"");var db,gb,vb="rgba(0, 0, 0, 0.2)",yb={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:vb,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:vb,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:vb,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:vb,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:vb,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:vb,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:pb.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},mb=Y(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),_b="original",xb="arrayRows",wb="objectRows",bb="keyedColumns",Sb="typedArray",Mb="unknown",Tb="column",Cb="row",kb={Must:1,Might:2,Not:3},Db=Xi(),Ib=Y(),Ab=Xi(),Lb=(Xi(),function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var r=ki(this.get("color",!0)),i=this.get("colorLayer",!0);return $l(this,Ab,r,i,t,e,n)},t.prototype.clearColorPalette=function(){Ql(this,Ab)},t}()),Ob="\x00_ec_inner",Pb=1,Rb=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(t,e,n,r,i,o){r=r||{},this.option=null,this._theme=new Fw(r),this._locale=new Fw(i),this._optionManager=o},n.prototype.setOption=function(t,e,n){var r=ru(e);this._optionManager.setOption(t,n,r),this._resetOption(null,r)},n.prototype.resetOption=function(t,e){return this._resetOption(t,ru(e))},n.prototype._resetOption=function(t,e){var n=!1,r=this._optionManager;if(!t||"recreate"===t){var i=r.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):gb(this,i),n=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=r.getMediaOption(this);a.length&&v(a,function(t){n=!0,this._mergeOption(t,e)},this)}return n},n.prototype.mergeOption=function(t){this._mergeOption(t,null)},n.prototype._mergeOption=function(t,e){function n(e){var n=Zl(this,e,ki(t[e])),a=i.get(e),s=a?c&&c.get(e)?"replaceMerge":"normalMerge":"replaceAll",l=Li(a,n,s);Ui(l,e,fb),r[e]=null,i.set(e,null),o.set(e,0);var u,f=[],p=[],d=0;v(l,function(t,n){var r=t.existing,i=t.newOption;if(i){var o="series"===e,a=fb.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(u)return;u=!0}if(r&&r.constructor===a)r.name=t.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=h({componentIndex:n},t.keyInfo);r=new a(i,this,this,s),h(r,s),t.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(f.push(r.option),p.push(r),d++):(f.push(void 0),p.push(void 0))},this),r[e]=f,i.set(e,p),o.set(e,d),"series"===e&&db(this)}var r=this.option,i=this._componentsMap,o=this._componentsCount,a=[],u=Y(),c=e&&e.replaceMergeMainTypeMap;Wl(this),v(t,function(t,e){null!=t&&(fb.hasClass(e)?e&&(a.push(e),u.set(e,!0)):r[e]=null==r[e]?s(t):l(r[e],t,!0))}),c&&c.each(function(t,e){fb.hasClass(e)&&!u.get(e)&&(a.push(e),u.set(e,!0))}),fb.topologicalTravel(a,fb.getAllClassMainTypes(),n,this),this._seriesIndices||db(this)},n.prototype.getOption=function(){var t=s(this.option);return v(t,function(e,n){if(fb.hasClass(n)){for(var r=ki(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!Wi(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}}),delete t[Ob],t},n.prototype.getTheme=function(){return this._theme},n.prototype.getLocaleModel=function(){return this._locale},n.prototype.setUpdatePayload=function(t){this._payload=t},n.prototype.getUpdatePayload=function(){return this._payload},n.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var r=n[e||0];if(r)return r;if(null==e)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},n.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n=t.index,r=t.id,i=t.name,o=this._componentsMap.get(e);if(!o||!o.length)return[];var a;return null!=n?(a=[],v(ki(n),function(t){o[t]&&a.push(o[t])})):a=null!=r?eu("id",r,o):null!=i?eu("name",i,o):_(o,function(t){return!!t}),nu(a,t)},n.prototype.findComponents=function(t){function e(t){var e=i+"Index",n=i+"Id",r=i+"Name";return!t||null==t[e]&&null==t[n]&&null==t[r]?null:{mainType:i,index:t[e],id:t[n],name:t[r]}}function n(e){return t.filter?_(e,t.filter):e}var r=t.query,i=t.mainType,o=e(r),a=o?this.queryComponents(o):_(this._componentsMap.get(i),function(t){return!!t});return n(nu(a,t))},n.prototype.eachComponent=function(t,e,n){var r=this._componentsMap;if(T(t)){var i=e,o=t;r.each(function(t,e){for(var n=0;t&&n<t.length;n++){var r=t[n];r&&o.call(i,e,r,r.componentIndex)}})}else for(var a=C(t)?r.get(t):I(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},n.prototype.getSeriesByName=function(t){var e=Vi(t,null);return _(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},n.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},n.prototype.getSeriesByType=function(t){return _(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},n.prototype.getSeries=function(){return _(this._componentsMap.get("series"),function(t){return!!t})},n.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},n.prototype.eachSeries=function(t,e){v(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)},this)},n.prototype.eachRawSeries=function(t,e){v(this._componentsMap.get("series"),function(n){n&&t.call(e,n,n.componentIndex)})},n.prototype.eachSeriesByType=function(t,e,n){v(this._seriesIndices,function(r){var i=this._componentsMap.get("series")[r];i.subType===t&&e.call(n,i,r)},this)},n.prototype.eachRawSeriesByType=function(t,e,n){return v(this.getSeriesByType(t),e,n)},n.prototype.isSeriesFiltered=function(t){return null==this._seriesIndicesMap.get(t.componentIndex)},n.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},n.prototype.filterSeries=function(t,e){var n=[];v(this._seriesIndices,function(r){var i=this._componentsMap.get("series")[r];t.call(e,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=Y(n)},n.prototype.restoreData=function(t){db(this);var e=this._componentsMap,n=[];e.each(function(t,e){fb.hasClass(e)&&n.push(e)}),fb.topologicalTravel(n,fb.getAllClassMainTypes(),function(n){v(e.get(n),function(e){!e||"series"===n&&Jl(e,t)||e.restoreData()})})},n.internalField=function(){db=function(t){var e=t._seriesIndices=[];v(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=Y(e)},gb=function(t,e){t.option={},t.option[Ob]=Pb,t._componentsMap=Y({series:[]}),t._componentsCount=Y();var n=e.aria;I(n)&&null==n.enabled&&(n.enabled=!0),tu(e,t._theme.option),l(e,yb,!1),t._mergeOption(e,null)}}(),n}(Fw);d(Rb,Lb);var Nb,Bb,Eb,zb,Fb,Vb,Hb=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Wb=function(){function t(t){v(Hb,function(e){this[e]=iv(t[e],t)
},this)}return t}(),Ub={},Gb=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];v(Ub,function(r){var i=r.create(t,e);n=n.concat(i||[])}),this._coordinateSystems=n},t.prototype.update=function(t,e){v(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){Ub[t]=e},t.get=function(t){return Ub[t]},t}(),qb=/^(min|max)?(.+)$/,Xb=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e){t&&(v(ki(t.series),function(t){t&&t.data&&L(t.data)&&G(t.data)}),v(ki(t.dataset),function(t){t&&t.source&&L(t.source)&&G(t.source)})),t=s(t);var n=this._optionBackup,r=iu(t,e,!n);this._newBaseOption=r.baseOption,n?(r.timelineOptions.length&&(n.timelineOptions=r.timelineOptions),r.mediaList.length&&(n.mediaList=r.mediaList),r.mediaDefault&&(n.mediaDefault=r.mediaDefault)):this._optionBackup=r},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],s(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var r=t.getComponent("timeline");r&&(e=s(n[r.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(){var t=this._api.getWidth(),e=this._api.getHeight(),n=this._mediaList,r=this._mediaDefault,i=[],o=[];if(!n.length&&!r)return o;for(var a=0,l=n.length;l>a;a++)ou(n[a].query,t,e)&&i.push(a);return!i.length&&r&&(i=[-1]),i.length&&!su(i,this._currentMediaIndices)&&(o=y(i,function(t){return s(-1===t?r.option:n[t].option)})),this._currentMediaIndices=i,o},t}(),Yb=v,jb=I,Zb=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],Kb=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],$b=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Qb=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]],Jb=function(){function t(t){this.data=t.data||(t.sourceFormat===bb?{}:[]),this.sourceFormat=t.sourceFormat||Mb,this.seriesLayoutBy=t.seriesLayoutBy||Tb,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var r=e[n];null==r.type&&Yl(this,n)===kb.Must&&(r.type="ordinal")}}return t}(),tS=function(){function t(t,e){var n=Du(t)?t:Au(t);this._source=n;var r=this._data=n.data;n.sourceFormat===Sb&&(this._offset=0,this._dimSize=e,this._data=r),Fb(this,r,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(){},t.prototype.appendData=function(){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){function t(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}var e;Fb=function(t,e,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine,c=zb[Hu(a,s)];if(h(t,c),a===Sb)t.getItem=n,t.count=i,t.fillStorage=r;else{var f=zu(a,s);t.getItem=iv(f,null,e,l,u);var p=Fu(a,s);t.count=iv(p,null,e,l,u)}};var n=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,r=this._dimSize,i=r*t,o=0;r>o;o++)e[o]=n[i+o];return e},r=function(t,e,n,r){for(var i=this._data,o=this._dimSize,a=0;o>a;a++){for(var s=r[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],h=e-t,c=n[a],f=0;h>f;f++){var p=i[f*o+a];c[t+f]=p,l>p&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};e={},e[xb+"_"+Tb]={pure:!0,appendData:t},e[xb+"_"+Cb]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[wb]={pure:!0,appendData:t},e[bb]={pure:!0,appendData:function(t){var e=this._data;v(t,function(t,n){for(var r=e[n]||(e[n]=[]),i=0;i<(t||[]).length;i++)r.push(t[i])})}},e[_b]={appendData:t},e[Sb]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},zb=e}(),t}(),eS=function(t,e,n,r){return t[r]},nS=(Nb={},Nb[xb+"_"+Tb]=function(t,e,n,r){return t[r+e]},Nb[xb+"_"+Cb]=function(t,e,n,r,i){r+=e;for(var o=i||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},Nb[wb]=eS,Nb[bb]=function(t,e,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=n[a].name,l=t[s];o[a]=l?l[r]:null}return o},Nb[_b]=eS,Nb),rS=function(t){return t.length},iS=(Bb={},Bb[xb+"_"+Tb]=function(t,e){return Math.max(0,t.length-e)},Bb[xb+"_"+Cb]=function(t,e){var n=t[0];return n?Math.max(0,n.length-e):0},Bb[wb]=rS,Bb[bb]=function(t,e,n){var r=n[0].name,i=t[r];return i?i.length:0},Bb[_b]=rS,Bb),oS=function(t,e){return t[e]},aS=(Eb={},Eb[xb]=oS,Eb[wb]=function(t,e,n){return t[n]},Eb[bb]=oS,Eb[_b]=function(t,e){var n=Ii(t);return n instanceof Array?n[e]:n},Eb[Sb]=oS,Eb),sS=/\{@(.+?)\}/g,lS=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),r=this.getRawValue(t,e),i=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,h=this.mainType,c="series"===h,f=n.userOutput&&n.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:i,data:a,dataType:e,value:r,color:l,borderColor:u,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,r,i,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);if(o&&(s.value=o.interpolatedValue),null!=r&&M(s.value)&&(s.value=s.value[r]),!i){var l=a.getItemModel(t);i=l.get("normal"===e?["label","formatter"]:[e,"label","formatter"])}if(T(i))return s.status=e,s.dimensionIndex=r,i(s);if(C(i)){var u=Al(i,s);return u.replace(sS,function(e,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1));var s=Wu(a,t,i);if(o&&M(o.interpolatedValue)){var l=a.getDimensionIndex(i);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""})}},t.prototype.getRawValue=function(t,e){return Wu(this.getData(e),t)},t.prototype.formatTooltip=function(){},t}(),uS=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){function e(t){return!(t>=1)&&(t=1),t}var n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!r&&(o=this._plan(this.context));var a=e(this._modBy),s=this._modDataCount||0,l=e(t&&t.modBy),u=t&&t.modDataCount||0;(a!==l||s!==u)&&(o="reset");var h;(this._dirty||"reset"===o)&&(this._dirty=!1,h=this._doReset(r)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(null!=c?this._dueIndex+c:1/0,this._dueEnd);if(!r&&(h||p>f)){var d=this._progress;if(M(d))for(var g=0;g<d.length;g++)this._doProgress(d[g],f,p,l,u);else this._doProgress(d,f,p,l,u)}this._dueIndex=p;var v=null!=this._settedOutputEnd?this._settedOutputEnd:p;this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,r,i){hS.reset(e,n,r,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:hS.next},this.context)},t.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,n;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),M(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),hS=function(){function t(){return n>r?r++:null}function e(){var t=r%a*i+Math.ceil(r/a),e=r>=n?null:o>t?t:r;return r++,e}var n,r,i,o,a,s={reset:function(l,u,h,c){r=l,n=u,i=h,o=c,a=Math.ceil(o/i),s.next=i>1&&o>0?e:t}};return s}(),cS=(Y({number:function(t){return parseFloat(t)},time:function(t){return+di(t)},trim:function(t){return C(t)?U(t):t}}),{lt:function(t,e){return e>t},lte:function(t,e){return e>=t},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}}),fS=(function(){function t(t,e){if(!D(e)){var n="";Ti(n)}this._opFn=cS[t],this._rvalFloat=xi(e)}return t.prototype.evaluate=function(t){return D(t)?this._opFn(t,this._rvalFloat):this._opFn(xi(t),this._rvalFloat)},t}(),function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=D(t)?t:xi(t),r=D(e)?e:xi(e),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=C(t),s=C(e);a&&(n=s?t:0),s&&(r=a?e:0)}return r>n?this._resultLT:n>r?-this._resultLT:0},t}(),function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=xi(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=xi(t)===this._rvalFloat)}return this._isEQ?e:!e},t}(),function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(){},t.prototype.retrieveValueFromItem=function(){},t.prototype.convertValue=function(t,e){return Gu(t,e)},t}()),pS=Y(),dS="undefined",gS=typeof Uint32Array===dS?Array:Uint32Array,vS=typeof Uint16Array===dS?Array:Uint16Array,yS=typeof Int32Array===dS?Array:Int32Array,mS=typeof Float64Array===dS?Array:Float64Array,_S={"float":mS,"int":yS,ordinal:Array,number:Array,time:mS},xS=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Y()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=t.getSource(),i=this.defaultDimValueGetter=Vb[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];Eu(r);this._dimensions=y(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(t);if(null!=i){if(r[i].type===e)return i}else i=r.length;return r[i]={type:e},n.set(t,i),this._chunks[i]=new _S[e||"float"](this._rawCount),this._rawExtent[i]=eh(),i},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],r=this._dimensions[t],i=this._rawExtent,o=r.ordinalOffset||0,a=n.length;0===o&&(i[t]=eh());for(var s=i[t],l=o;a>l;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=e,r.ordinalOffset=a,r.type="ordinal"},t.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var r=e.count();return e.persistent||(r+=n),r>n&&this._initDataFromProvider(n,r,!0),[n,r]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,r=this._dimensions,i=r.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;i>l;l++){var u=r[l];rh(n,l,u.type,s,!0)}for(var h=[],c=a;s>c;c++)for(var f=c-a,p=0;i>p;p++){var u=r[p],d=Vb.arrayRows.call(this,t[f]||h,u.property,f,p);n[p][c]=d;var g=o[p];d<g[0]&&(g[0]=d),d>g[1]&&(g[1]=d)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=y(o,function(t){return t.property}),u=0;a>u;u++){var h=o[u];s[u]||(s[u]=eh()),rh(i,u,h.type,e,n)}if(r.fillStorage)r.fillStorage(t,e,i,s);else for(var c=[],f=t;e>f;f++){c=r.getItem(f,c);for(var p=0;a>p;p++){var d=i[p],g=this._dimValueGetter(c,l[p],f,p);d[f]=g;var v=s[p];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return 0/0;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:0/0},t.prototype.getValues=function(t,e){var n=[],r=[];if(null==e){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=t;for(var i=0,o=r.length;o>i;i++)n.push(this.get(r[i],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return 0/0;var n=this._chunks[t];return n?n[e]:0/0},t.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var r=0,i=this.count();i>r;r++){var o=this.get(t,r);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(t){var e=[];this.each([t],function(t){isNaN(t)||e.push(t)});var n=e.sort(function(t,e){return t-e}),r=this.count();return 0===r?0:r%2===1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||0>t)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var r=0,i=this._count-1;i>=r;){var o=(r+i)/2|0;if(e[o]<t)r=o+1;else{if(!(e[o]>t))return o;i=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var r=this._chunks,i=r[t],o=[];if(!i)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,h=this.count();h>u;u++){var c=this.getRawIndex(u),f=e-i[c],p=Math.abs(f);n>=p&&((a>p||p===a&&f>=0&&0>s)&&(a=p,s=f,l=0),f===s&&(o[l++]=u))}return o.length=l,o},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,r=this._count;if(n===Array){t=new n(r);for(var i=0;r>i;i++)t[i]=e[i]}else t=new n(e.buffer,0,r)}else{var n=th(this._rawCount);t=new n(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=th(n._rawCount),o=new i(r),a=[],s=t.length,l=0,u=t[0],h=n._chunks,c=0;r>c;c++){var f=void 0,p=n.getRawIndex(c);if(0===s)f=e(c);else if(1===s){var d=h[u][p];f=e(d,c)}else{for(var g=0;s>g;g++)a[g]=h[t[g]][p];a[g]=c,f=e.apply(null,a)}f&&(o[l++]=p)}return r>l&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var r=w(t),i=r.length;if(!i)return this;var o=e.count(),a=th(e._rawCount),s=new a(o),l=0,u=r[0],h=t[u][0],c=t[u][1],f=e._chunks,p=!1;if(!e._indices){var d=0;if(1===i){for(var g=f[r[0]],v=0;n>v;v++){var y=g[v];(y>=h&&c>=y||isNaN(y))&&(s[l++]=d),d++}p=!0}else if(2===i){for(var g=f[r[0]],m=f[r[1]],_=t[r[1]][0],x=t[r[1]][1],v=0;n>v;v++){var y=g[v],b=m[v];(y>=h&&c>=y||isNaN(y))&&(b>=_&&x>=b||isNaN(b))&&(s[l++]=d),d++}p=!0}}if(!p)if(1===i)for(var v=0;o>v;v++){var S=e.getRawIndex(v),y=f[r[0]][S];(y>=h&&c>=y||isNaN(y))&&(s[l++]=S)}else for(var v=0;o>v;v++){for(var M=!0,S=e.getRawIndex(v),T=0;i>T;T++){var C=r[T],y=f[C][S];(y<t[C][0]||y>t[C][1])&&(M=!1)}M&&(s[l++]=e.getRawIndex(v))}return o>l&&(e._indices=s),e._count=l,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var r=t._chunks,i=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=eh();for(var h=0;a>h;h++){for(var c=t.getRawIndex(h),f=0;o>f;f++)s[f]=r[e[f]][c];s[o]=h;var p=n&&n.apply(null,s);if(null!=p){"object"!=typeof p&&(i[0]=p,p=i);for(var u=0;u<p.length;u++){var d=e[u],g=p[u],v=l[d],y=r[d];y&&(y[c]=g),g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,r,i,o=this.clone([t],!0),a=o._chunks,s=a[t],l=this.count(),u=0,h=Math.floor(1/e),c=this.getRawIndex(0),f=new(th(this._rawCount))(Math.min(2*(Math.ceil(l/h)+2),l));f[u++]=c;for(var p=1;l-1>p;p+=h){for(var d=Math.min(p+h,l-1),g=Math.min(p+2*h,l),v=(g+d)/2,y=0,m=d;g>m;m++){var _=this.getRawIndex(m),x=s[_];isNaN(x)||(y+=x)}y/=g-d;var w=p,b=Math.min(p+h,l),S=p-1,M=s[c];n=-1,i=w;for(var T=-1,C=0,m=w;b>m;m++){var _=this.getRawIndex(m),x=s[_];isNaN(x)?(C++,0>T&&(T=_)):(r=Math.abs((S-v)*(x-M)-(S-m)*(y-M)),r>n&&(n=r,i=_))}C>0&&b-w>C&&(f[u++]=Math.min(T,i),i=Math.max(T,i)),f[u++]=i,c=i}return f[u++]=this.getRawIndex(l-1),o._count=u,o._indices=f,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,n,r){for(var i=this.clone([t],!0),o=i._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=i._rawExtent[t]=eh(),c=new(th(this._rawCount))(Math.ceil(u/s)),f=0,p=0;u>p;p+=s){s>u-p&&(s=u-p,a.length=s);for(var d=0;s>d;d++){var g=this.getRawIndex(p+d);a[d]=l[g]}var v=n(a),y=this.getRawIndex(Math.min(p+r(a,v)||0,u-1));l[y]=v,v<h[0]&&(h[0]=v),v>h[1]&&(h[1]=v),c[f++]=y}return i._count=f,i._indices=c,i._updateGetRawIdx(),i},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,o=this.count();o>i;i++){var a=this.getRawIndex(i);switch(n){case 0:e(i);break;case 1:e(r[t[0]][a],i);break;case 2:e(r[t[0]][a],r[t[1]][a],i);break;default:for(var s=0,l=[];n>s;s++)l[s]=r[t[s]][a];l[s]=i,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=eh();if(!e)return n;var r,i=this.count(),o=!this._indices;if(o)return this._rawExtent[t].slice();if(r=this._extent[t])return r.slice();r=n;for(var a=r[0],s=r[1],l=0;i>l;l++){var u=this.getRawIndex(l),h=e[u];a>h&&(a=h),h>s&&(s=h)}return r=[a,s],this._extent[t]=r,r},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][e]);return n},t.prototype.clone=function(e,n){var r=new t,i=this._chunks,o=e&&m(e,function(t,e){return t[e]=!0,t},{});if(o)for(var a=0;a<i.length;a++)r._chunks[a]=o[a]?nh(i[a]):i[a];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=s(this._extent),t._rawExtent=s(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var r=0;n>r;r++)e[r]=this._indices[r]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,r){return Gu(t[r],this._dimensions[r])}Vb={arrayRows:t,objectRows:function(t,e,n,r){return Gu(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return Gu(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}(),wS=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(oh(n)){var o=n,a=void 0,s=void 0,l=void 0;if(i){var u=r[0];u.prepareSource(),l=u.getSource(),a=l.data,s=l.sourceFormat,e=[u._getVersionSign()]}else a=o.get("data",!0),s=L(a)?Sb:_b,e=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},f=z(h.seriesLayoutBy,c.seriesLayoutBy)||null,p=z(h.sourceHeader,c.sourceHeader),d=z(h.dimensions,c.dimensions),g=f!==c.seriesLayoutBy||!!p!=!!c.sourceHeader||d;t=g?[Iu(a,{seriesLayoutBy:f,sourceHeader:p,dimensions:d},s)]:[]}else{var v=n;if(i){var y=this._applyTransform(r);t=y.sourceList,e=y.upstreamSignList}else{var m=v.get("source",!0);t=[Iu(m,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),r=e.get("fromTransformResult",!0);if(null!=r){var i="";1!==t.length&&ah(i)}var o,a=[],s=[];return v(t,function(t){t.prepareSource();var e=t.getSource(r||0),n="";null==r||e||ah(n),a.push(e),s.push(t._getVersionSign())}),n?o=$u(n,a,{datasetIndex:e.componentIndex}):null!=r&&(o=[Lu(a[0])]),{sourceList:o,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var r=0,i=this._storeList,o=i[r];o||(o=i[r]={});var a=o[n];if(!a){var s=this._getUpstreamSourceManagers()[0];oh(this._sourceHost)&&s?a=s._innerGetDataStore(t,e,n):(a=new xS,a.initData(new tS(e,t.length),t)),o[n]=a}return a},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(oh(t)){var e=ql(t);return e?[e.getSourceManager()]:[]}return y(Xl(t),function(t){return t.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var t,e,n,r=this._sourceHost;if(oh(r))t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}(),bS=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=bi()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var r="richText"===n?this._generateStyleName():null,i=Ll({color:e,type:t,renderMode:n,markerId:r});return C(i)?i:(this.richTextStyles[r]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};M(e)?v(e,function(t){return h(n,t)}):h(n,e);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+t+"}"},t}(),Xi()),SS="__universalTransitionEnabled",MS=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return e(n,t),n.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Uu({count:dh,reset:gh}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var r=bS(this).sourceManager=new wS(this);r.prepareSource();var i=this.getInitialData(t,n);yh(i,this),this.dataTask.context.data=i,bS(this).dataBeforeProcessed=i,fh(this),this._initSelectedMapFromData(i)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=El(this),r=n?Fl(t):{},i=this.subType;fb.hasClass(i)&&(i+="Series"),l(t,e.getTheme().get(this.subType)),l(t,this.getDefaultOption()),Di(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&zl(t,r,n)},n.prototype.mergeOption=function(t,e){t=l(this.option,t,!0),this.fillDataTextStyle(t.data);var n=El(this);n&&zl(this.option,t,n);var r=bS(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(t,e);yh(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,bS(this).dataBeforeProcessed=i,fh(this),this._initSelectedMapFromData(i)},n.prototype.fillDataTextStyle=function(t){if(t&&!L(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Di(t[n],"label",e)},n.prototype.getInitialData=function(){},n.prototype.appendData=function(t){var e=this.getRawData();e.appendData(t.data)},n.prototype.getData=function(t){var e=_h(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return bS(this).data},n.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},n.prototype.setData=function(t){var e=_h(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}bS(this).data=t},n.prototype.getEncode=function(){var t=this.get("encode",!0);return t?Y(t):void 0},n.prototype.getSourceManager=function(){return bS(this).sourceManager},n.prototype.getSource=function(){return this.getSourceManager().getSource()},n.prototype.getRawData=function(){return bS(this).dataBeforeProcessed},n.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},n.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},n.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},n.prototype.formatTooltip=function(t,e){return uh({series:this,dataIndex:t,multipleSeries:e})},n.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(Bg.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},n.prototype.restoreData=function(){this.dataTask.dirty()},n.prototype.getColorFromPalette=function(t,e,n){var r=this.ecModel,i=Lb.prototype.getColorFromPalette.call(this,t,e,n);return i||(i=r.getColorFromPalette(t,e,n)),i},n.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},n.prototype.getProgressive=function(){return this.get("progressive")},n.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},n.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},n.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(e);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=t[o],s=ch(i,a);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},n.prototype.toggleSelect=function(t,e){for(var n=[],r=0;r<t.length;r++)n[0]=t[r],this.isSelected(t[r],e)?this.unselect(n,e):this.select(n,e)},n.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=w(t),n=[],r=0;r<e.length;r++){var i=t[e[r]];i>=0&&n.push(i)}return n},n.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(e);return("all"===n||n[ch(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},n.prototype.isUniversalTransitionEnabled=function(){if(this[SS])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},n.prototype._innerSelect=function(t,e){var n,r,i=this.option,o=i.selectedMode,a=e.length;if(o&&a)if("series"===o)i.selectedMap="all";else if("multiple"===o){I(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;a>l;l++){var u=e[l],h=ch(t,u);s[h]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(u)}}else if("single"===o||o===!0){var c=e[a-1],h=ch(t,c);i.selectedMap=(n={},n[h]=!0,n),this._selectedDataIndicesMap=(r={},r[h]=t.getRawIndex(c),r)}},n.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each(function(n){var r=t.getRawDataItem(n);r&&r.selected&&e.push(n)}),e.length>0&&this._innerSelect(t,e)}},n.registerClass=function(t){return fb.registerClass(t)},n.protoInitialize=function(){var t=n.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),n}(fb);d(MS,lS),d(MS,Lb),io(MS,fb);var TS=function(){function t(){this.group=new gm,this.uid=Qs("viewComponent")}return t.prototype.init=function(){},t.prototype.render=function(){},t.prototype.dispose=function(){},t.prototype.updateView=function(){},t.prototype.updateLayout=function(){},t.prototype.updateVisual=function(){},t.prototype.toggleBlurSeries=function(){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();no(TS),lo(TS);var CS=Xi(),kS=xh(),DS=function(){function t(){this.group=new gm,this.uid=Qs("viewChart"),this.renderTask=Uu({plan:Sh,reset:Mh}),this.renderTask.context={view:this}}return t.prototype.init=function(){},t.prototype.render=function(){},t.prototype.highlight=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&bh(i,r,"emphasis")},t.prototype.downplay=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&bh(i,r,"normal")},t.prototype.remove=function(){this.group.removeAll()},t.prototype.dispose=function(){},t.prototype.updateView=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateLayout=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateVisual=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.eachRendered=function(t){Vs(this.group,t)},t.markUpdateMethod=function(t,e){CS(t).updateMethod=e},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();no(DS,["dispose"]),lo(DS);var IS,AS={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},LS=Xi(),OS={itemStyle:uo(Bw,!0),lineStyle:uo(Pw,!0)},PS={lineStyle:"stroke",itemStyle:"fill"},RS={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),o=Ch(t,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=kh(t,r),u=a[l],c=T(u)?u:null,f="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||f){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=p,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||T(a.fill)?p:a.fill,a.stroke="auto"===a.stroke||T(a.stroke)?p:a.stroke}return n.setVisual("style",a),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c?(n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var r=t.getDataParams(n),i=h({},a);i[l]=c(r),e.setItemVisual(n,"style",i)}}):void 0}},NS=new Fw,BS={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=Ch(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[r]){NS.option=n[r];
var a=i(NS),s=t.ensureUniqueItemVisual(e,"style");h(s,a),NS.option.decal&&(t.setItemVisual(e,"decal",NS.option.decal),NS.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},ES={performRawSeries:!0,overallReset:function(t){var e=Y();t.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var r=t.type+"-"+n,i=e.get(r);i||(i={},e.set(r,i)),LS(t).scope=i}}),t.eachSeries(function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),r={},i=e.getData(),o=LS(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=kh(e,a);i.each(function(t){var e=i.getRawIndex(t);r[e]=t}),n.each(function(t){var a=r[t],l=i.getItemVisual(a,"colorFromPalette");if(l){var u=i.ensureUniqueItemVisual(a,"style"),h=n.getName(t)||t+"",c=n.count();u[s]=e.getColorFromPalette(h,o,c)}})}})}},zS=Math.PI,FS=function(){function t(t,e,n,r){this._stageTaskMap=Y(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),r=n.context,i=!e&&n.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,a=r&&r.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),r=t.getData(),i=r.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,a=t.get("large")&&i>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Y();t.eachSeries(function(t){var r=t.getProgressive(),i=t.uid;n.set(i,{id:i,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:r&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),e._pipe(t,t.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;v(this._allHandlers,function(r){var i=t.get(r.uid)||t.set(r.uid,{}),o="";W(!(r.reset&&r.overallReset),o),r.reset&&this._createSeriesStageTask(r,i,e,n),r.overallReset&&this._createOverallStageTask(r,i,e,n)},this)},t.prototype.prepareView=function(t,e,n,r){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=r,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,r){function i(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}r=r||{};var o=!1,a=this;v(t,function(t){if(!r.visualType||r.visualType===t.visualType){var s=a._stageTaskMap.get(t.uid),l=s.seriesTaskMap,u=s.overallTask;if(u){var h,c=u.agentStubMap;c.each(function(t){i(r,t)&&(t.dirty(),h=!0)}),h&&u.dirty(),a.updatePayload(u,n);var f=a.getPerformArgs(u,r.block);c.each(function(t){t.perform(f)}),u.perform(f)&&(o=!0)}else l&&l.each(function(s){i(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(o=!0)})}}),this.unfinished=o||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,r){function i(e){var i=e.uid,l=s.set(i,a&&a.get(i)||Uu({plan:Ph,reset:Rh,count:Bh}));l.context={model:e,ecModel:n,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(e,l)}var o=this,a=e.seriesTaskMap,s=e.seriesTaskMap=Y(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(i):l?n.eachRawSeriesByType(l,i):u&&u(n,r).each(i)},t.prototype._createOverallStageTask=function(t,e,n,r){function i(t){var e=t.uid,n=l.set(e,s&&s.get(e)||(f=!0,Uu({reset:Ah,onDirty:Oh})));n.context={model:t,overallProgress:c},n.agent=a,n.__block=c,o._pipe(t,n)}var o=this,a=e.overallTask=e.overallTask||Uu({reset:Ih});a.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=Y(),u=t.seriesType,h=t.getTargetSeries,c=!0,f=!1,p="";W(!t.createOnAllSeries,p),u?n.eachRawSeriesByType(u,i):h?h(n,r).each(i):(c=!1,v(n.getSeries(),i)),f&&a.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},t.wrapStageHandler=function(t,e){return T(t)&&(t={overallReset:t,seriesType:Eh(t)}),t.uid=Qs("stageHandler"),e&&(t.visualType=e),t},t}(),VS=Nh(0),HS={},WS={};zh(HS,Rb),zh(WS,Wb),HS.eachSeriesByType=HS.eachRawSeriesByType=function(t){IS=t},HS.eachComponent=function(t){"series"===t.mainType&&t.subType&&(IS=t.subType)};var US=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],GS={color:US,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],US]},qS="#B9B8CE",XS="#100C2A",YS=function(){return{axisLine:{lineStyle:{color:qS}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},jS=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],ZS={darkMode:!0,color:jS,backgroundColor:XS,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:qS}},textStyle:{color:qS},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:qS}},dataZoom:{borderColor:"#71708A",textStyle:{color:qS},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:qS}},timeline:{lineStyle:{color:qS},label:{color:qS},controlStyle:{color:qS,borderColor:qS}},calendar:{itemStyle:{color:XS},dayLabel:{color:qS},monthLabel:{color:qS},yearLabel:{color:qS}},timeAxis:YS(),logAxis:YS(),valueAxis:YS(),categoryAxis:YS(),line:{symbol:"circle"},graph:{color:jS},gauge:{title:{color:qS},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:qS},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};ZS.categoryAxis.splitLine.show=!1;var KS=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},r={};if(C(t)){var i=Ji(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};v(t,function(t,i){for(var s=!1,l=0;l<o.length;l++){var u=o[l],h=i.lastIndexOf(u);if(h>0&&h===i.length-u.length){var c=i.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(i)&&(n[i]=t,s=!0),s||(r[i]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:r}},t.prototype.filter=function(t,e){function n(t,e,n,r){return null==t[n]||e[r||n]===t[n]}var r=this.eventInfo;if(!r)return!0;var i=r.targetEl,o=r.packedEvent,a=r.model,s=r.view;if(!a||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return n(l,a,"mainType")&&n(l,a,"subType")&&n(l,a,"index","componentIndex")&&n(l,a,"name")&&n(l,a,"id")&&n(u,o,"name")&&n(u,o,"dataIndex")&&n(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,i,o))},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),$S=["symbol","symbolSize","symbolRotate","symbolOffset"],QS=$S.concat(["symbolKeepAspect"]),JS={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){function n(e,n){for(var r=t.getRawValue(n),i=t.getDataParams(n),a=0;a<c.length;a++){var s=c[a];e.setItemVisual(n,s,o[s](r,i))}}var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},o={},a=!1,s=0;s<$S.length;s++){var l=$S[s],u=t.get(l);T(u)?(a=!0,o[l]=u):i[l]=u}if(i.symbol=i.symbol||t.defaultSymbol,r.setVisual(h({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),!e.isSeriesFiltered(t)){var c=w(o);return{dataEach:a?n:null}}}}},tM={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){function n(t,e){for(var n=t.getItemModel(e),r=0;r<QS.length;r++){var i=QS[r],o=n.getShallow(i,!0);null!=o&&t.setItemVisual(e,i,o)}}if(t.hasSymbolVisual&&!e.isSeriesFiltered(t)){var r=t.getData();return{dataEach:r.hasItemOption?n:null}}}},eM=Math.round(9*Math.random()),nM="function"==typeof Object.defineProperty,rM=function(){function t(){this._id="__ec_inner_"+eM++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return nM?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype["delete"]=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),iM=R_.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r+o),t.lineTo(n-i,r+o),t.closePath()}}),oM=R_.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r),t.lineTo(n,r+o),t.lineTo(n-i,r),t.closePath()}}),aM=R_.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,i=e.width/5*3,o=Math.max(i,e.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),h=Math.cos(u)*a,c=Math.sin(u),f=Math.cos(u),p=.6*a,d=.7*a;t.moveTo(n-h,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+h-c*p,l+s+f*p,n,r-d,n,r),t.bezierCurveTo(n,r-d,n-h+c*p,l+s+f*p,n-h,l+s),t.closePath()}}),sM=R_.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,i=e.x,o=e.y,a=r/3*2;t.moveTo(i,o),t.lineTo(i+a,o+n),t.lineTo(i,o+n/4*3),t.lineTo(i-a,o+n),t.lineTo(i,o),t.closePath()}}),lM={line:ew,rect:U_,roundRect:U_,square:U_,circle:Lx,diamond:oM,pin:aM,arrow:sM,triangle:iM},uM={line:function(t,e,n,r,i){i.x1=t,i.y1=e+r/2,i.x2=t+n,i.y2=e+r/2},rect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r},roundRect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(t,e,n,r,i){var o=Math.min(n,r);i.x=t,i.y=e,i.width=o,i.height=o},circle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.r=Math.min(n,r)/2},diamond:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r},pin:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},arrow:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},triangle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r}},hM={};v(lM,function(t,e){hM[e]=new t});var cM=R_.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=Vr(t,e,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(r.y=n.y+.4*n.height),r},buildPath:function(t,e,n){var r=e.symbolType;if("none"!==r){var i=hM[r];i||(r="rect",i=hM[r]),uM[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n)}}}),fM=new S_(!0),pM=["shadowBlur","shadowOffsetX","shadowOffsetY"],dM=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],gM=1,vM=2,yM=3,mM=4,_M=new rM,xM=new gy(100),wM=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"],bM=new mv,SM={},MM="5.4.2",TM={zrender:"5.4.3"},CM=1,kM=800,DM=900,IM=1e3,AM=2e3,LM=5e3,OM=1e3,PM=1100,RM=2e3,NM=3e3,BM=4e3,EM=4500,zM=4600,FM=5e3,VM=6e3,HM=7e3,WM={PROCESSOR:{FILTER:IM,SERIES_FILTER:kM,STATISTIC:LM},VISUAL:{LAYOUT:OM,PROGRESSIVE_LAYOUT:PM,GLOBAL:RM,CHART:NM,POST_CHART_LAYOUT:zM,COMPONENT:BM,BRUSH:FM,CHART_ITEM:EM,ARIA:VM,DECAL:HM}},UM="__flagInMainProcess",GM="__pendingUpdate",qM="__needsUpdateStatus",XM=/^[a-zA-Z0-9_]+$/,YM="__connectUpdateStatus",jM=0,ZM=1,KM=2,$M=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n}(mv),QM=$M.prototype;QM.on=Pc("on"),QM.off=Pc("off");var JM,tT,eT,nT,rT,iT,oT,aT,sT,lT,uT,hT,cT,fT,pT,dT,gT,vT,yT=function(t){function n(e,n,r){function i(t,e){return t.__prio-e.__prio}var o=t.call(this,new KS)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],r=r||{},C(n)&&(n=TT[n]),o._dom=e;var a="canvas",l="auto",u=!1,h=o._zr=Kr(e,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:z(r.useDirtyRect,u),useCoarsePointer:z(r.useCoarsePointer,l),pointerSize:r.pointerSize});o._ssr=r.ssr,o._throttledZrFlush=Th(iv(h.flush,h),17),n=s(n),n&&Tu(n,!0),o._theme=n,o._locale=nl(r.locale||jw),o._coordSysMgr=new Gb;var c=o._api=pT(o);return rn(MT,i),rn(bT,i),o._scheduler=new FS(o,c,bT,MT),o._messageCenter=new $M,o._initEvents(),o.resize=iv(o.resize,o),h.animation.on("frame",o._onframe,o),lT(h,o),uT(h,o),G(o),o}return e(n,t),n.prototype._onframe=function(){if(!this._disposed){vT(this);var t=this._scheduler;if(this[GM]){var e=this[GM].silent;this[UM]=!0;try{JM(this),nT.update.call(this,null,this[GM].updateParams)}catch(n){throw this[UM]=!1,this[GM]=null,n}this._zr.flush(),this[UM]=!1,this[GM]=null,aT.call(this,e),sT.call(this,e)}else if(t.unfinished){var r=CM,i=this._model,o=this._api;t.unfinished=!1;do{var a=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),iT(this,i),t.performVisualTasks(i),fT(this,this._model,o,"remain",{}),r-=+new Date-a}while(r>0&&t.unfinished);t.unfinished||this._zr.flush()}}},n.prototype.getDom=function(){return this._dom},n.prototype.getId=function(){return this.id},n.prototype.getZr=function(){return this._zr},n.prototype.isSSR=function(){return this._ssr},n.prototype.setOption=function(t,e,n){if(!this[UM]&&!this._disposed){var r,i,o;if(I(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,o=e.transition,e=e.notMerge),this[UM]=!0,!this._model||e){var a=new Xb(this._api),s=this._theme,l=this._model=new Rb;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:i},ST);var u={seriesTransition:o,optionChanged:!0};if(n)this[GM]={silent:r,updateParams:u},this[UM]=!1,this.getZr().wakeUp();else{try{JM(this),nT.update.call(this,null,u)}catch(h){throw this[GM]=null,this[UM]=!1,h}this._ssr||this._zr.flush(),this[GM]=null,this[UM]=!1,aT.call(this,r),sT.call(this,r)}}},n.prototype.setTheme=function(){},n.prototype.getModel=function(){return this._model},n.prototype.getOption=function(){return this._model&&this._model.getOption()},n.prototype.getWidth=function(){return this._zr.getWidth()},n.prototype.getHeight=function(){return this._zr.getHeight()},n.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Bg.hasGlobalWindow&&window.devicePixelRatio||1},n.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},n.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},n.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},n.prototype.getSvgDataURL=function(){if(Bg.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return v(e,function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()}},n.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,r=[],i=this;v(e,function(t){n.eachComponent({mainType:t},function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(r.push(e),e.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return v(r,function(t){t.group.ignore=!1}),o}},n.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(DT[n]){var a=o,l=o,u=-o,h=-o,c=[],f=t&&t.pixelRatio||this.getDevicePixelRatio();v(kT,function(o){if(o.group===n){var f=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(s(t)),p=o.getDom().getBoundingClientRect();a=r(p.left,a),l=r(p.top,l),u=i(p.right,u),h=i(p.bottom,h),c.push({dom:f,left:p.left,top:p.top})}}),a*=f,l*=f,u*=f,h*=f;var p=u-a,d=h-l,g=Gg.createCanvas(),y=Kr(g,{renderer:e?"svg":"canvas"});if(y.resize({width:p,height:d}),e){var m="";return v(c,function(t){var e=t.left-a,n=t.top-l;m+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return t.connectedBackgroundColor&&y.add(new U_({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),v(c,function(t){var e=new F_({style:{x:t.left*f-a,y:t.top*f-l,image:t.dom}});y.add(e)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},n.prototype.convertToPixel=function(t,e){return rT(this,"convertToPixel",t,e)},n.prototype.convertFromPixel=function(t,e){return rT(this,"convertFromPixel",t,e)},n.prototype.containPixel=function(t,e){if(!this._disposed){var n,r=this._model,i=Yi(r,t);return v(i,function(t,r){r.indexOf("Models")>=0&&v(t,function(t){var i=t.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(e);else if("seriesModels"===r){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}},this)},this),!!n}},n.prototype.getVisual=function(t,e){var n=this._model,r=Yi(n,t,{defaultMainType:"series"}),i=r.seriesModel,o=i.getData(),a=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?o.indexOfRawIndex(r.dataIndex):null;return null!=a?Fh(o,a,e):Vh(o,e)},n.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},n.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},n.prototype._initEvents=function(){var t=this;v(_T,function(e){var n=function(n){var r,i=t.getModel(),o=n.target,a="globalout"===e;if(a?r={}:o&&Gh(o,function(t){var e=$_(t);if(e&&null!=e.dataIndex){var n=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return r=n&&n.getDataParams(e.dataIndex,e.dataType)||{},!0}return e.eventData?(r=h({},e.eventData),!0):void 0},!0),r){var s=r.componentType,l=r.componentIndex;("markLine"===s||"markPoint"===s||"markArea"===s)&&(s="series",l=r.seriesIndex);var u=s&&null!=l&&i.getComponent(s,l),c=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];r.event=n,r.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:r,model:u,view:c},t.trigger(e,r)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)}),v(wT,function(e,n){t._messageCenter.on(n,function(t){this.trigger(n,t)},t)}),v(["selectchanged"],function(e){t._messageCenter.on(e,function(t){this.trigger(e,t)},t)}),Uh(this._messageCenter,this,this._api)},n.prototype.isDisposed=function(){return this._disposed},n.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},n.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this.getDom();t&&Ki(this.getDom(),LT,"");var e=this,n=e._api,r=e._model;v(e._componentsViews,function(t){t.dispose(r,n)}),v(e._chartsViews,function(t){t.dispose(r,n)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete kT[e.id]}},n.prototype.resize=function(t){if(!this[UM]&&!this._disposed){this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),r=t&&t.silent;this[GM]&&(null==r&&(r=this[GM].silent),n=!0,this[GM]=null),this[UM]=!0;try{n&&JM(this),nT.update.call(this,{type:"resize",animation:h({duration:0},t&&t.animation)})}catch(i){throw this[UM]=!1,i}this[UM]=!1,aT.call(this,r),sT.call(this,r)}}},n.prototype.showLoading=function(t,e){if(!this._disposed&&(I(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),CT[t])){var n=CT[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}},n.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},n.prototype.makeActionFromEvent=function(t){var e=h({},t);return e.type=wT[t.type],e},n.prototype.dispatchAction=function(t,e){if(!this._disposed&&(I(e)||(e={silent:!!e}),xT[t.type]&&this._model)){if(this[UM])return void this._pendingActions.push(t);var n=e.silent;oT.call(this,t,n);var r=e.flush;r?this._zr.flush():r!==!1&&Bg.browser.weChat&&this._throttledZrFlush(),aT.call(this,n),sT.call(this,n)}},n.prototype.updateLabelLayout=function(){bM.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},n.prototype.appendData=function(t){if(!this._disposed){var e=t.seriesIndex,n=this.getModel(),r=n.getSeriesByIndex(e);r.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},n.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function n(t){var e=[],n=[],r=!1;if(t.eachComponent(function(t,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:i.componentIndex,type:t,key:s})}),r){var i,o,a=e.concat(n);rn(a,function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),v(a,function(e){var n=t.getComponent(e.type,e.idx),r=e.zlevel,a=e.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)})}}function r(t){for(var e=[],n=t.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&e.push(i)}t.selected&&t.states.select&&e.push("select"),t.hoverState===ox&&t.states.emphasis?e.push("emphasis"):t.hoverState===ix&&t.states.blur&&e.push("blur"),t.useStates(e)}function i(t,e){var n=t._zr,r=n.storage,i=0;r.traverse(function(t){t.isGroup||i++}),i>e.get("hoverLayerThreshold")&&!Bg.node&&!Bg.worker&&e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}})}function o(t,e){var n=t.get("blendMode")||null;e.eachRendered(function(t){t.isGroup||(t.style.blend=n)})}function a(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,r=t.get("zlevel")||0;e.eachRendered(function(t){return s(t,n,r,-1/0),!0})}}function s(t,e,n,r){var i=t.getTextContent(),o=t.getTextGuideLine(),a=t.isGroup;if(a)for(var l=t.childrenRef(),u=0;u<l.length;u++)r=Math.max(s(l[u],e,n,r),r);else t.z=e,t.zlevel=n,r=Math.max(t.z2,r);if(i&&(i.z=e,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),o){var h=t.textGuideLineConfig;o.z=e,o.zlevel=n,isFinite(r)&&(o.z2=r+(h&&h.showAbove?1:-1))}return r}function l(t,e){e.eachRendered(function(t){if(!bs(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}})}function u(t,e){var n=t.getModel("stateAnimation"),i=t.isAnimationEnabled(),o=n.get("duration"),a=o>0?{duration:o,delay:n.get("delay"),easing:n.get("easing")}:null;e.eachRendered(function(t){if(t.states&&t.states.emphasis){if(bs(t))return;if(t instanceof R_&&Ja(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(i){t.stateTransition=a;var n=t.getTextContent(),o=t.getTextGuideLine();n&&(n.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&r(t)}})}JM=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),tT(t,!0),tT(t,!1),e.plan()},tT=function(t,e){function n(t){var n=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,h=!n&&a[u];if(!h){var c=Ji(t.type),f=e?TS.getClass(c.main,c.sub):DS.getClass(c.sub);h=new f,h.init(r,l),a[u]=h,o.push(h),s.add(h.group)}t.__viewId=h.__id=u,h.__alive=!0,h.__model=t,h.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&i.prepareView(h,t,r,l)}for(var r=t._model,i=t._scheduler,o=e?t._componentsViews:t._chartsViews,a=e?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,u=0;u<o.length;u++)o[u].__alive=!1;e?r.eachComponent(function(t,e){"series"!==t&&n(e)}):r.eachSeries(n);for(var u=0;u<o.length;){var h=o[u];h.__alive?u++:(!e&&h.renderTask.dispose(),s.remove(h.group),h.dispose(r,l),o.splice(u,1),a[h.__id]===h&&delete a[h.__id],h.__id=h.group.__ecComponentInfo=null)}},eT=function(t,e,n,r,i){function o(r){r&&r.__alive&&r[e]&&r[e](r.__model,a,t._api,n)}var a=t._model;if(a.setUpdatePayload(n),!r)return void v([].concat(t._componentsViews).concat(t._chartsViews),o);var s={};s[r+"Id"]=n[r+"Id"],s[r+"Index"]=n[r+"Index"],s[r+"Name"]=n[r+"Name"];var l={mainType:r,query:s};i&&(l.subType=i);var u,h=n.excludeSeriesId;null!=h&&(u=Y(),v(ki(h),function(t){var e=Vi(t,null);null!=e&&u.set(e,!0)})),a&&a.eachComponent(l,function(e){var r=u&&null!=u.get(e.id);if(!r)if(Qa(n))if(e instanceof MS)n.type!==hx||n.notBlur||e.get(["emphasis","disabled"])||Ba(e,n,t._api);else{var i=Ea(e.mainType,e.componentIndex,n.name,t._api),o=i.focusSelf,a=i.dispatchers;n.type===hx&&o&&!n.notBlur&&Na(e.mainType,e.componentIndex,t._api),a&&v(a,function(t){n.type===hx?Ca(t):ka(t)})}else $a(n)&&e instanceof MS&&(Va(e,n,t._api),Ha(e),gT(t))},t),a&&a.eachComponent(l,function(e){var n=u&&null!=u.get(e.id);n||o(t["series"===r?"_chartsMap":"_componentsMap"][e.__viewId])},t)},nT={prepareAndUpdate:function(t){JM(this),nT.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var r=this._model,i=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),a.create(r,i),s.performDataProcessorTasks(r,e),iT(this,r),a.update(r,i),t(r),s.performVisualTasks(r,e),hT(this,r,i,e,n);var l=r.get("backgroundColor")||"transparent",u=r.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),bM.trigger("afterupdate",r,i)}},updateTransform:function(e){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(e);var o=[];r.eachComponent(function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,r,i,e);l&&l.update&&o.push(s)}else o.push(s)}});var a=Y();r.eachSeries(function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,r,i,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)}),t(r),this._scheduler.performVisualTasks(r,e,{setDirty:!0,dirtyMap:a}),fT(this,r,i,e,{},a),bM.trigger("afterupdate",r,i)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),DS.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),hT(this,n,this._api,e,{}),bM.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries(function(t){t.getData().clearAllVisual()}),DS.markUpdateMethod(e,"updateVisual"),t(r),this._scheduler.performVisualTasks(r,e,{visualType:"visual",setDirty:!0}),r.eachComponent(function(t,i){if("series"!==t){var o=n.getViewOfComponentModel(i);o&&o.__alive&&o.updateVisual(i,r,n._api,e)}}),r.eachSeries(function(t){var i=n._chartsMap[t.__viewId];i.updateVisual(t,r,n._api,e)}),bM.trigger("afterupdate",r,this._api))},updateLayout:function(t){nT.update.call(this,t)}},rT=function(t,e,n,r){if(!t._disposed)for(var i,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=Yi(o,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(i=u[e](o,s,r)))return i}},iT=function(t,e){var n=t._chartsMap,r=t._scheduler;e.eachSeries(function(t){r.updateStreamModes(t,n[t.__viewId])})},oT=function(t,e){var n=this,r=this.getModel(),i=t.type,o=t.escapeConnect,a=xT[i],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),f=null!=l[0]&&Ji(l[0]);this[UM]=!0;var p=[t],d=!1;t.batch&&(d=!0,p=y(t.batch,function(e){return e=c(h({},e),t),e.batch=null,e}));var g,m=[],_=$a(t),x=Qa(t);if(x&&Pa(this._api),v(p,function(e){if(g=a.action(e,n._model,n._api),g=g||h({},e),g.type=s.event||g.type,m.push(g),x){var r=ji(t),i=r.queryOptionMap,o=r.mainTypeSpecified,l=o?i.keys()[0]:"series";eT(n,u,e,l),gT(n)}else _?(eT(n,u,e,"series"),gT(n)):f&&eT(n,u,e,f.main,f.sub)}),"none"!==u&&!x&&!_&&!f)try{this[GM]?(JM(this),nT.update.call(this,t),this[GM]=null):nT[u].call(this,t)}catch(w){throw this[UM]=!1,w}if(g=d?{type:s.event||i,escapeConnect:o,batch:m}:m[0],this[UM]=!1,!e){var b=this._messageCenter;if(b.trigger(g.type,g),_){var S={type:"selectchanged",escapeConnect:o,selected:Wa(r),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};b.trigger(S.type,S)}}},aT=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();oT.call(this,n,t)}},sT=function(t){!t&&this.trigger("updated")},lT=function(t,e){t.on("rendered",function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[GM]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},uT=function(t,e){t.on("mouseover",function(t){var n=t.target,r=Gh(n,Za);r&&(za(r,t,e._api),gT(e))}).on("mouseout",function(t){var n=t.target,r=Gh(n,Za);r&&(Fa(r,t,e._api),gT(e))}).on("click",function(t){var n=t.target,r=Gh(n,function(t){return null!=$_(t).dataIndex},!0);if(r){var i=r.selected?"unselect":"select",o=$_(r);e._api.dispatchAction({type:i,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}})},hT=function(t,e,r,i,o){n(e),cT(t,e,r,i,o),v(t._chartsViews,function(t){t.__alive=!1}),fT(t,e,r,i,o),v(t._chartsViews,function(t){t.__alive||t.remove(e,r)})},cT=function(t,e,n,r,i,o){v(o||t._componentsViews,function(t){var i=t.__model;l(i,t),t.render(i,e,n,r),a(i,t),u(i,t)})},fT=function(t,e,n,r,s,c){var f=t._scheduler;s=h(s||{},{updatedSeries:e.getSeries()}),bM.trigger("series:beforeupdate",e,n,s);var p=!1;e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var i=n.renderTask;f.updatePayload(i,r),l(e,n),c&&c.get(e.uid)&&i.dirty(),i.perform(f.getPerformArgs(i))&&(p=!0),n.group.silent=!!e.get("silent"),o(e,n),Ha(e)}),f.unfinished=p||f.unfinished,bM.trigger("series:layoutlabels",e,n,s),bM.trigger("series:transition",e,n,s),e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];a(e,n),u(e,n)}),i(t,e),bM.trigger("series:afterupdate",e,n,s)},gT=function(t){t[qM]=!0,t.getZr().wakeUp()},vT=function(t){t[qM]&&(t.getZr().storage.traverse(function(t){bs(t)||r(t)}),t[qM]=!1)},pT=function(t){return new(function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return e(r,n),r.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},r.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},r.prototype.enterEmphasis=function(e,n){Ca(e,n),gT(t)
},r.prototype.leaveEmphasis=function(e,n){ka(e,n),gT(t)},r.prototype.enterBlur=function(e){Da(e),gT(t)},r.prototype.leaveBlur=function(e){Ia(e),gT(t)},r.prototype.enterSelect=function(e){Aa(e),gT(t)},r.prototype.leaveSelect=function(e){La(e),gT(t)},r.prototype.getModel=function(){return t.getModel()},r.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},r.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},r}(Wb))(t)},dT=function(t){function e(t,e){for(var n=0;n<t.length;n++){var r=t[n];r[YM]=e}}v(wT,function(n,r){t._messageCenter.on(r,function(n){if(DT[t.group]&&t[YM]!==jM){if(n&&n.escapeConnect)return;var r=t.makeActionFromEvent(n),i=[];v(kT,function(e){e!==t&&e.group===t.group&&i.push(e)}),e(i,jM),v(i,function(t){t[YM]!==ZM&&t.dispatchAction(r)}),e(i,KM)}})})}}(),n}(mv),mT=yT.prototype;mT.on=Oc("on"),mT.off=Oc("off"),mT.one=function(t,e,n){function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];e&&e.apply&&e.apply(this,n),i.off(t,r)}var i=this;this.on.call(this,t,r,n)};var _T=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],xT={},wT={},bT=[],ST=[],MT=[],TT={},CT={},kT={},DT={},IT=+new Date-0,AT=+new Date-0,LT="_echarts_instance_",OT=Ec,PT=[],RT=Ku;$c(RM,RS),$c(EM,BS),$c(EM,ES),$c(RM,JS),$c(EM,tM),$c(HM,Ic),Wc(Tu),Uc(DM,Cu),Jc("default",Dh),Yc({type:hx,event:hx,update:hx},Q),Yc({type:cx,event:cx,update:cx},Q),Yc({type:fx,event:fx,update:fx},Q),Yc({type:px,event:px,update:px},Q),Yc({type:dx,event:dx,update:dx},Q),Hc("light",GS),Hc("dark",ZS);var NT,BT,ET,zT,FT,VT,HT,WT={},UT=function(){function t(t,e,n,r,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||of,this._newKeyGetter=r||of,this.context=i,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},r=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=r[o],s=n[a],l=rf(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,r,o,"_newKeyGetter");for(var a=0;a<i.length;a++){var s=i[a],l=n[s],u=r[s],h=rf(l),c=rf(u);if(h>1&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===h&&c>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),r[s]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(h>1)for(var f=0;h>f;f++)this._remove&&this._remove(l[f]);else this._remove&&this._remove(l)}this._performRestAdd(o,r)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e[r],o=rf(i);if(o>1)for(var a=0;o>a;a++)this._add&&this._add(i[a]);else 1===o&&this._add&&this._add(i);e[r]=null}},t.prototype._initIndexMap=function(t,e,n,r){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[r](t[o],o);if(i||(n[o]=a),e){var s=e[a],l=rf(s);0===l?(e[a]=o,i&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),GT=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}(),qT=function(){function t(t){this.otherDims={},null!=t&&h(this,t)}return t}(),XT=Xi(),YT={"float":"f","int":"i",ordinal:"o",number:"n",time:"t"},jT=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=ff(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return z(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;return e?e[t]:void 0},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Eu(this.source),n=!pf(t),r="",i=[],o=0,a=0;t>o;o++){var s=void 0,l=void 0,u=void 0,h=this.dimensions[a];if(h&&h.storeDimIndex===o)s=e?h.name:null,l=h.type,u=h.ordinalMeta,a++;else{var c=this.getSourceDimension(o);c&&(s=e?c.name:null,l=c.type)}i.push({property:s,type:l,ordinalMeta:u}),!e||null==s||h&&h.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=YT[l]||"f",u&&(r+=u.uid),r+="$"}var f=this.source,p=[f.seriesLayoutBy,f.startIndex,r].join("$$");return{dimensions:i,hash:p}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(r=i.name),n++;else{var o=this.getSourceDimension(e);o&&(r=o.name)}t.push(r)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}(),ZT=I,KT=y,$T="undefined"==typeof Int32Array?Array:Int32Array,QT="e\x00\x00",JT=-1,tC=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],eC=["_approximateExtent"],nC=function(){function t(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,r=!1;hf(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"];for(var i={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var h=n[u],c=C(h)?new qT({name:h}):h instanceof qT?h:new qT(h),f=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=f,c.coordDimIndex=0);var p=c.otherDims=c.otherDims||{};o.push(f),i[f]=c,null!=l[f]&&(s=!0),c.createInvertedIndices&&(a[f]=[]),0===p.itemName&&(this._nameDimIdx=u),0===p.itemId&&(this._idDimIdx=u),r&&(c.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var d=this._dimIdxToName=Y();v(o,function(t){d.set(i[t].storeDimIndex,t)})}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var r=this._schema.getSourceDimension(e);return r?r.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){return D(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0)?+t:void 0},t.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var r=n.encode[t];return r?r[e]:null},t.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,n=e.encode[t];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var r,i=this;if(t instanceof xS&&(r=t),!r){var o=this.dimensions,a=Du(t)||g(t)?new tS(t,o.length):t;r=new xS;var s=KT(o,function(t){return{type:i._dimInfos[t].type,property:t}});r.initData(a,s,n)}this._store=r,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=af(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),r=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=r;i>a;a++){var s=a-r;this._nameList[a]=e[s],o&&HT(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var r=this._dimInfos[e[n]];r.ordinalMeta&&t.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==Sb&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,r=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,a=r.getSource().sourceFormat,s=a===_b;if(s&&!r.pure)for(var l=[],u=t;e>u;u++){var h=r.getItem(u,l);if(!this.hasItemOption&&Ai(h)&&(this.hasItemOption=!0),h){var c=h.name;null==i[u]&&null!=c&&(i[u]=Vi(c,null));var f=h.id;null==o[u]&&null!=f&&(o[u]=Vi(f,null))}}if(this._shouldMakeIdFromName())for(var u=t;e>u;u++)HT(this,u);NT(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){ZT(t)?h(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=ET(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),r=this._store.getOrdinalMeta(t);return r?r.categories[n]:n},t.prototype.getId=function(t){return BT(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,r=this._dimInfos[t];return r?n.get(r.storeDimIndex,e):void 0},t.prototype.getByRawIndex=function(t,e){var n=this._store,r=this._dimInfos[t];return r?n.getByRawIndex(r.storeDimIndex,e):void 0},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,r=this._store;return M(t)?r.getValues(KT(t,function(t){return n._getStoreDimIndex(t)}),e):r.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,r=e.length;r>n;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();n>e;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],r=n[e];return null==r||isNaN(r)?JT:r},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){T(t)&&(n=e,e=t,t=[]);var r=n||this,i=KT(zT(t),this._getStoreDimIndex,this);this._store.each(i,r?iv(e,r):e)},t.prototype.filterSelf=function(t,e,n){T(t)&&(n=e,e=t,t=[]);var r=n||this,i=KT(zT(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?iv(e,r):e),this},t.prototype.selectRange=function(t){var e=this,n={},r=w(t),i=[];return v(r,function(r){var o=e._getStoreDimIndex(r);n[o]=t[r],i.push(o)}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){T(t)&&(n=e,e=t,t=[]),n=n||this;var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},n),r},t.prototype.map=function(t,e,n,r){var i=n||r||this,o=KT(zT(t),this._getStoreDimIndex,this),a=VT(this);return a._store=this._store.map(o,i?iv(e,i):e),a},t.prototype.modify=function(t,e,n,r){var i=n||r||this,o=KT(zT(t),this._getStoreDimIndex,this);this._store.modify(o,i?iv(e,i):e)},t.prototype.downSample=function(t,e,n,r){var i=VT(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,r),i},t.prototype.lttbDownSample=function(t,e){var n=VT(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new Fw(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new UT(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return BT(t,e)},function(t){return BT(e,t)})},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},ZT(t)?h(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],r=n&&n[e];return null==r?this.getVisual(e):r},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,r=n[t];r||(r=n[t]={});var i=r[e];return null==i&&(i=this.getVisual(e),M(i)?i=i.slice():ZT(i)&&(i=h({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,ZT(e)?h(r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){ZT(t)?h(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?h(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Q_(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){v(this._graphicEls,function(n,r){n&&t&&t.call(e,n,r)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:KT(this.dimensions,this._getDimInfo,this),this.hostModel)),FT(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];T(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(V(arguments)))})},t.internalField=function(){NT=function(t){var e=t._invertedIndicesMap;v(e,function(n,r){var i=t._dimInfos[r],o=i.ordinalMeta,a=t._store;if(o){n=e[r]=new $T(o.categories.length);for(var s=0;s<n.length;s++)n[s]=JT;for(var s=0;s<a.count();s++)n[a.get(i.storeDimIndex,s)]=s}})},ET=function(t,e,n){return Vi(t._getCategory(e,n),null)},BT=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=ET(t,t._idDimIdx,e)),null==n&&(n=QT+e),n},zT=function(t){return M(t)||(t=null!=t?[t]:[]),t},VT=function(e){var n=new t(e._schema?e._schema:KT(e.dimensions,e._getDimInfo,e),e.hostModel);return FT(n,e),n},FT=function(t,e){v(tC.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,v(eC,function(n){t[n]=s(e[n])}),t._calculationInfo=h({},e._calculationInfo)},HT=function(t,e){var n=t._nameList,r=t._idList,i=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=r[e];if(null==a&&null!=i&&(n[e]=a=ET(t,i,e)),null==s&&null!=o&&(r[e]=s=ET(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),r[e]=s}}}(),t}(),rC=function(){function t(t){this.coordSysDims=[],this.axisMap=Y(),this.categoryAxisMap=Y(),this.coordSysName=t}return t}(),iC={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",Im).models[0],o=t.getReferringComponents("yAxis",Im).models[0];e.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),xf(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),xf(o)&&(r.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",Im).models[0];e.coordSysDims=["single"],n.set("single",i),xf(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",Im).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),xf(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),xf(a)&&(r.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var i=t.ecModel,o=i.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();v(o.parallelAxisIndex,function(t,o){var s=i.getComponent("parallelAxis",t),l=a[o];n.set(l,s),xf(s)&&(r.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})}},oC=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();lo(oC);var aC=0,sC=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++aC}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&y(r,Af);return new t({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!C(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var r=this._getOrCreateMap();return e=r.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e)):e=0/0),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Y(this.categories))},t}(),lC=function(t){function n(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new sC({})),M(r)&&(r=new sC({categories:y(r,function(t){return I(t)?t.value:t})})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return e(n,t),n.prototype.parse=function(t){return null==t?0/0:C(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},n.prototype.contain=function(t){return t=this.parse(t),Nf(t,this._extent)&&null!=this._ordinalMeta.categories[t]},n.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Bf(t,this._extent)},n.prototype.scale=function(t){return t=Math.round(Ef(t,this._extent)),this.getRawOrdinalNumber(t)},n.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},n.prototype.getMinorTicks=function(){},n.prototype.setSortInfo=function(t){if(null==t)return void(this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null);for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);a>i;++i){var s=e[i];n[i]=s,r[s]=i}for(var l=0;o>i;++i){for(;null!=r[l];)l++;n.push(l),r[l]=i}},n.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},n.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},n.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},n.prototype.count=function(){return this._extent[1]-this._extent[0]+1},n.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},n.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},n.prototype.getOrdinalMeta=function(){return this._ordinalMeta},n.prototype.calcNiceTicks=function(){},n.prototype.calcNiceExtent=function(){},n.type="ordinal",n}(oC);oC.registerClass(lC);var uC=ii,hC=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return e(n,t),n.prototype.parse=function(t){return t},n.prototype.contain=function(t){return Nf(t,this._extent)},n.prototype.normalize=function(t){return Bf(t,this._extent)},n.prototype.scale=function(t){return Ef(t,this._extent)},n.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},n.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},n.prototype.getInterval=function(){return this._interval},n.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Of(t)},n.prototype.getTicks=function(t){var e=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!e)return o;var a=1e4;n[0]<r[0]&&o.push(t?{value:uC(r[0]-e,i)}:{value:n[0]});for(var s=r[0];s<=r[1]&&(o.push({value:s}),s=uC(s+e,i),s!==o[o.length-1].value);)if(o.length>a)return[];var l=o.length?o[o.length-1].value:r[1];return n[1]>l&&o.push(t?{value:uC(l+e,i)}:{value:n[1]}),o},n.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<e.length;i++){for(var o=e[i],a=e[i-1],s=0,l=[],u=o.value-a.value,h=u/t;t-1>s;){var c=uC(a.value+(s+1)*h);c>r[0]&&c<r[1]&&l.push(c),s++}n.push(l)}return n},n.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;null==n?n=ai(t.value)||0:"auto"===n&&(n=this._intervalPrecision);var r=uC(t.value,n,!0);return Dl(r)},n.prototype.calcNiceTicks=function(t,e,n){t=t||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){0>i&&(i=-i,r.reverse());var o=Lf(r,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},n.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax?e[0]-=n/2:(e[1]+=n/2,e[0]-=n/2)}else e[1]=1;var r=e[1]-e[0];isFinite(r)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=uC(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=uC(Math.ceil(e[1]/i)*i))},n.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},n.type="interval",n}(oC);oC.registerClass(hC);var cC="__ec_stack_",fC=function(t,e,n,r){for(;r>n;){var i=n+r>>>1;t[i][1]<e?n=i+1:r=i}return n},pC=function(t){function n(e){var n=t.call(this,e)||this;return n.type="time",n}return e(n,t),n.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return ul(t.value,nb[ll(al(this._minLevelUnit))]||nb.second,e,this.getSetting("locale"))},n.prototype.getFormattedLabel=function(t,e,n){var r=this.getSetting("useUTC"),i=this.getSetting("locale");return hl(t,e,n,i,r)},n.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var r=this.getSetting("useUTC"),i=tp(this._minLevelUnit,this._approxInterval,r,e);return n=n.concat(i),n.push({value:e[1],level:0}),n},n.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=Qw,e[1]+=Qw),e[1]===-1/0&&1/0===e[0]){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-Qw}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},n.prototype.calcNiceTicks=function(t,e,n){t=t||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=dC.length,a=Math.min(fC(dC,this._approxInterval,0,o),o-1);this._interval=dC[a][1],this._minLevelUnit=dC[Math.max(a-1,0)][0]},n.prototype.parse=function(t){return D(t)?t:+di(t)},n.prototype.contain=function(t){return Nf(this.parse(t),this._extent)},n.prototype.normalize=function(t){return Bf(this.parse(t),this._extent)},n.prototype.scale=function(t){return Ef(t,this._extent)},n.type="time",n}(hC),dC=[["second",Zw],["minute",Kw],["hour",$w],["quarter-day",6*$w],["half-day",12*$w],["day",1.2*Qw],["half-week",3.5*Qw],["week",7*Qw],["month",31*Qw],["quarter",95*Qw],["half-year",Jw/2],["year",Jw]];oC.registerClass(pC);var gC=oC.prototype,vC=hC.prototype,yC=ii,mC=Math.floor,_C=Math.ceil,xC=Math.pow,wC=Math.log,bC=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new hC,e._interval=0,e}return e(n,t),n.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,r=e.getExtent(),i=vC.getTicks.call(this,t);return y(i,function(t){var e=t.value,i=ii(xC(this.base,e));return i=e===n[0]&&this._fixMin?ep(i,r[0]):i,i=e===n[1]&&this._fixMax?ep(i,r[1]):i,{value:i}},this)},n.prototype.setExtent=function(t,e){var n=wC(this.base);t=wC(Math.max(0,t))/n,e=wC(Math.max(0,e))/n,vC.setExtent.call(this,t,e)},n.prototype.getExtent=function(){var t=this.base,e=gC.getExtent.call(this);e[0]=xC(t,e[0]),e[1]=xC(t,e[1]);var n=this._originalScale,r=n.getExtent();return this._fixMin&&(e[0]=ep(e[0],r[0])),this._fixMax&&(e[1]=ep(e[1],r[1])),e},n.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=wC(t[0])/wC(e),t[1]=wC(t[1])/wC(e),gC.unionExtent.call(this,t)},n.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},n.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(1/0===n||0>=n)){var r=gi(n),i=t/n*r;for(.5>=i&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var o=[ii(_C(e[0]/r)*r),ii(mC(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},n.prototype.calcNiceExtent=function(t){vC.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},n.prototype.parse=function(t){return t},n.prototype.contain=function(t){return t=wC(t)/wC(this.base),Nf(t,this._extent)},n.prototype.normalize=function(t){return t=wC(t)/wC(this.base),Bf(t,this._extent)},n.prototype.scale=function(t){return t=Ef(t,this._extent),xC(this.base,t)},n.type="log",n}(oC),SC=bC.prototype;SC.getMinorTicks=vC.getMinorTicks,SC.getLabel=vC.getLabel,oC.registerClass(bC);var MC=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[0/0,0/0]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=this._modelMinRaw=e.get("min",!0);T(i)?this._modelMinNum=rp(t,i({min:n[0],max:n[1]})):"dataMin"!==i&&(this._modelMinNum=rp(t,i));var o=this._modelMaxRaw=e.get("max",!0);if(T(o)?this._modelMaxNum=rp(t,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=rp(t,o)),r)this._axisDataLen=e.getCategories().length;else{var a=e.get("boundaryGap"),s=M(a)?a:[a||0,a||0];this._boundaryGapInner="boolean"==typeof s[0]||"boolean"==typeof s[1]?[0,0]:[Fr(s[0],1),Fr(s[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=t?r?0:0/0:e-i[0]*o),null==s&&(s=t?r?r-1:0/0:n+i[1]*o),(null==a||!isFinite(a))&&(a=0/0),(null==s||!isFinite(s))&&(s=0/0);var h=B(a)||B(s)||t&&!r;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),0>a&&0>s&&!u&&(s=0));var c=this._determinedMin,f=this._determinedMax;return null!=c&&(a=c,l=!0),null!=f&&(s=f,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[CC[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=TC[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),TC={min:"_determinedMin",max:"_determinedMax"},CC={min:"_dataMin",max:"_dataMax"},kC=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},t.prototype.getCoordSysModel=function(){},t}(),DC={isDimensionStacked:Sf,enableDataStack:wf,getStackedDimension:Mf},IC=(Object.freeze||Object)({createList:fp,getLayoutRect:Bl,dataStack:DC,createScale:pp,mixinAxisModelCommonMethods:dp,getECData:$_,createTextStyle:gp,createDimensions:df,createSymbol:Xh,enableHoverEmphasis:Ua}),AC=[],LC={registerPreprocessor:Wc,registerProcessor:Uc,registerPostInit:Gc,registerPostUpdate:qc,registerUpdateLifecycle:Xc,registerAction:Yc,registerCoordinateSystem:jc,registerLayout:Kc,registerVisual:$c,registerTransform:RT,registerLoading:Jc,registerMap:ef,registerImpl:Ac,PRIORITY:WM,ComponentModel:fb,ComponentView:TS,SeriesModel:MS,ChartView:DS,registerComponentModel:function(t){fb.registerClass(t)},registerComponentView:function(t){TS.registerClass(t)},registerSeriesModel:function(t){MS.registerClass(t)},registerChartView:function(t){DS.registerClass(t)},registerSubTypeDefaulter:function(t,e){fb.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){ti(t,e)}},OC=1e-8,PC=[],RC=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),NC=function(){function t(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return t}(),BC=function(){function t(t){this.type="linestring",this.points=t}return t}(),EC=function(t){function n(e,n,r){var i=t.call(this,e)||this;return i.type="geoJSON",i.geometries=n,i._center=r&&[r[0],r[1]],i}return e(n,t),n.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,r=0;r<e.length;r++){var i=e[r],o=i.exterior,a=o&&o.length;a>n&&(t=i,n=a)}if(t)return wp(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},n.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return v(i,function(e){"polygon"===e.type?xp(e.exterior,n,r,t):v(e.points,function(e){xp(e,n,r,t)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),e=new Fv(n[0],n[1],r[0]-n[0],r[1]-n[1]),t||(this._rect=e),e},n.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;
if(!e.contain(t[0],t[1]))return!1;t:for(var r=0,i=n.length;i>r;r++){var o=n[r];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(mp(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(mp(s[l],t[0],t[1]))continue t;return!0}}}return!1},n.prototype.transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=i.width/i.height;n?r||(r=n/o):n=o*r;for(var a=new Fv(t,e,n,r),s=i.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var h=l[u];"polygon"===h.type?(_p(h.exterior,s),v(h.interiors,function(t){_p(t,s)})):v(h.points,function(t){_p(t,s)})}i=this._rect,i.copy(a),this._center=[i.x+i.width/2,i.y+i.height/2]},n.prototype.cloneShallow=function(t){null==t&&(t=this.name);var e=new n(t,this.geometries,this._center);return e._rect=this._rect,e.transformTo=null,e},n}(RC),zC=(function(t){function n(e,n){var r=t.call(this,e)||this;return r.type="geoSVG",r._elOnlyForCalculate=n,r}return e(n,t),n.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],r=Ee(PC),i=t;i&&!i.isGeoSVGGraphicRoot;)Fe(r,i.getLocalTransform(),r),i=i.parent;return Ue(r,r),ye(n,n,r),n},n}(RC),(Object.freeze||Object)({linearMap:ni,round:ii,asc:oi,getPrecision:ai,getPrecisionSafe:si,getPixelPrecision:li,getPercentWithPrecision:ui,MAX_SAFE_INTEGER:Sm,remRadian:fi,isRadianAroundZero:pi,parseDate:di,quantity:gi,quantityExponent:vi,nice:yi,quantile:mi,reformIntervals:_i,isNumeric:wi,numericToNumber:xi})),FC=(Object.freeze||Object)({parse:di,format:ul}),VC=(Object.freeze||Object)({extendShape:ks,extendPath:Ds,makePath:Ls,makeImage:Os,mergePath:Sw,resizePath:Rs,createIcon:zs,updateProps:xs,initProps:ws,getTransform:Ns,clipPointsByRect:Bs,clipRectByRect:Es,registerShape:Is,getShapeClass:As,Group:gm,Image:F_,Text:Y_,Circle:Lx,Ellipse:Px,Sector:Xx,Ring:jx,Polygon:Kx,Polyline:Qx,Rect:U_,Line:ew,BezierCurve:iw,Arc:aw,IncrementalDisplayable:yw,CompoundPath:sw,LinearGradient:uw,RadialGradient:hw,BoundingRect:Fv}),HC=(Object.freeze||Object)({addCommas:Dl,toCamelCase:Il,normalizeCssArray:ob,encodeHTML:Ce,formatTpl:Al,getTooltipMarker:Ll,formatTime:Ol,capitalFirst:Pl,truncateText:go,getTextRect:kl}),WC=(Object.freeze||Object)({map:y,each:v,indexOf:f,inherits:p,reduce:m,filter:_,bind:iv,curry:S,isArray:M,isString:C,isObject:I,isFunction:T,extend:h,defaults:c,clone:s,merge:l}),UC=Xi(),GC=[0,1],qC=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=n&&r>=t},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return li(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&"ordinal"===r.type&&(n=n.slice(),Vp(n,r.count())),ni(t,GC,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&(n=n.slice(),Vp(n,r.count()));var i=ni(t,n,GC,e);return this.scale.scale(i)},t.prototype.pointToData=function(){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=kp(this,e),r=n.ticks,i=y(r,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this),o=e.get("alignWithLabel");return Hp(this,i,o,t.clamp),i},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&100>e||(e=5);var n=this.scale.getMinorTicks(e),r=y(n,function(t){return y(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this);return r},t.prototype.getViewLabels=function(){return Cp(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(t[1]-t[0]);return Math.abs(r)/n},t.prototype.calculateCategoryInterval=function(){return Bp(this)},t}(),XC=2*Math.PI,YC=S_.CMD,jC=["top","right","bottom","left"],ZC=[],KC=new Av,$C=new Av,QC=new Av,JC=new Av,tk=new Av,ek=[],nk=new Av,rk=["align","verticalAlign","width","height","fontSize"],ik=new am,ok=Xi(),ak=Xi(),sk=["x","y","rotation"],lk=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,r,i){var o=r.style,a=r.__hostTarget,s=a.textConfig||{},l=r.getComputedTransform(),u=r.getBoundingRect().plain();Fv.applyTransform(u,u,l),l?ik.setLocalTransform(l):(ik.x=ik.y=ik.rotation=ik.originX=ik.originY=0,ik.scaleX=ik.scaleY=1);var h,c=r.__hostTarget;if(c){h=c.getBoundingRect().plain();var f=c.getComputedTransform();Fv.applyTransform(h,h,f)}var p=h&&c.getTextGuideLine();this._labelList.push({label:r,labelLine:p,seriesModel:n,dataIndex:t,dataType:e,layoutOption:i,computedLayoutOption:null,rect:u,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:p&&p.ignore,x:ik.x,y:ik.y,scaleX:ik.scaleX,scaleY:ik.scaleY,rotation:ik.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:r.cursor,attachedPos:s.position,attachedRot:s.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,r=n.get("labelLayout");(T(r)||w(r).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var i=t.getTextContent(),o=$_(t);i&&!i.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,n,i,r)})},t.prototype.updateLayoutConfig=function(t){function e(t,e){return function(){Qp(t,e)}}for(var n=t.getWidth(),r=t.getHeight(),i=0;i<this._labelList.length;i++){var o=this._labelList[i],a=o.label,s=a.__hostTarget,l=o.defaultAttr,u=void 0;u=T(o.layoutOption)?o.layoutOption(cd(o,s)):o.layoutOption,u=u||{},o.computedLayoutOption=u;var h=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=u.x||null!=u.y?null:l.attachedPos,rotation:null!=u.rotate?u.rotate*h:l.attachedRot,offset:[u.dx||0,u.dy||0]});var c=!1;if(null!=u.x?(a.x=ri(u.x,n),a.setStyle("x",0),c=!0):(a.x=l.x,a.setStyle("x",l.style.x)),null!=u.y?(a.y=ri(u.y,r),a.setStyle("y",0),c=!0):(a.y=l.y,a.setStyle("y",l.style.y)),u.labelLinePoints){var f=s.getTextGuideLine();f&&(f.setShape({points:u.labelLinePoints}),c=!1)}var p=ok(a);p.needsUpdateLabelLine=c,a.rotation=null!=u.rotate?u.rotate*h:l.rotation,a.scaleX=l.scaleX,a.scaleY=l.scaleY;for(var d=0;d<rk.length;d++){var g=rk[d];a.setStyle(g,null!=u[g]?u[g]:l.style[g])}if(u.draggable){if(a.draggable=!0,a.cursor="move",s){var v=o.seriesModel;if(null!=o.dataIndex){var y=o.seriesModel.getData(o.dataType);v=y.getItemModel(o.dataIndex)}a.on("drag",e(s,v.getModel("labelLine")))}}else a.off("drag"),a.cursor=l.cursor}},t.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),r=od(this._labelList),i=_(r,function(t){return"shiftX"===t.layoutOption.moveOverlap}),o=_(r,function(t){return"shiftY"===t.layoutOption.moveOverlap});sd(i,0,e),ld(o,0,n);var a=_(r,function(t){return t.layoutOption.hideOverlap});ud(a)},t.prototype.processLabelsOverall=function(){var t=this;v(this._chartViewList,function(e){var n=e.__model,r=e.ignoreLabelLineUpdate,i=n.isAnimationEnabled();e.group.traverse(function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var o=!r,a=e.getTextContent();!o&&a&&(o=ok(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,n),i&&t._animateLabels(e,n)})})},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),r=$_(t),i=r.dataIndex;if(n&&null!=i){var o=e.getData(r.dataType),a=o.getItemModel(i),s={},l=o.getItemVisual(i,"style"),u=o.getVisual("drawType");s.stroke=l[u];var h=a.getModel("labelLine");rd(t,id(a),s),Qp(t,h)}},t.prototype._animateLabels=function(t,e){var n=t.getTextContent(),r=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!bs(t))){var i=ok(n),o=i.oldLayout,a=$_(t),s=a.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},u=e.getData(a.dataType);if(o){n.attr(o);var h=t.prevStates;h&&(f(h,"select")>=0&&n.attr(i.oldLayoutSelect),f(h,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),xs(n,l,e,s)}else if(n.attr(l),!Dw(n).valueAnimation){var c=z(n.style.opacity,1);n.style.opacity=0,ws(n,{style:{opacity:c}},e,s)}if(i.oldLayout=l,n.states.select){var p=i.oldLayoutSelect={};fd(p,l,sk),fd(p,n.states.select,sk)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};fd(d,l,sk),fd(d,n.states.emphasis,sk)}$s(n,s,u,e,e)}if(r&&!r.ignore&&!r.invisible){var i=ak(r),o=i.oldLayout,g={points:r.shape.points};o?(r.attr({shape:o}),xs(r,{shape:g},e)):(r.setShape(g),r.style.strokePercent=0,ws(r,{style:{strokePercent:1}},e)),i.oldLayout=g}},t}(),uk=Xi();vp(pd);var hk=function(t){function n(e,n,r){var i=t.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;r=r||Zy,"string"==typeof e?o=dd(e,n,r):I(e)&&(o=e,e=o.id),i.id=e,i.dom=o;var a=o.style;return a&&(K(o),o.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),i.painter=n,i.dpr=r,i}return e(n,t),n.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},n.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},n.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},n.prototype.setUnpainted=function(){this.__firstTimePaint=!0},n.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=dd("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},n.prototype.createRepaintRects=function(t,e,n,r){function i(t){if(t.isFinite()&&!t.isZero())if(0===o.length){var e=new Fv(0,0,0,0);e.copy(t),o.push(e)}else{for(var n=!1,r=1/0,i=0,u=0;u<o.length;++u){var h=o[u];if(h.intersect(t)){var c=new Fv(0,0,0,0);c.copy(h),c.union(t),o[u]=c,n=!0;break}if(s){l.copy(t),l.union(h);var f=t.width*t.height,p=h.width*h.height,d=l.width*l.height,g=d-f-p;r>g&&(r=g,i=u)}}if(s&&(o[i].union(t),n=!0),!n){var e=new Fv(0,0,0,0);e.copy(t),o.push(e)}s||(s=o.length>=a)}}if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;for(var o=[],a=this.maxRepaintRectCount,s=!1,l=new Fv(0,0,0,0),u=this.__startIndex;u<this.__endIndex;++u){var h=t[u];if(h){var c=h.shouldBePainted(n,r,!0,!0),f=h.__isRendered&&(h.__dirty&Zv||!c)?h.getPrevPaintRect():null;f&&i(f);var p=c&&(h.__dirty&Zv||!h.__isRendered)?h.getPaintRect():null;p&&i(p)}}for(var u=this.__prevStartIndex;u<this.__prevEndIndex;++u){var h=e[u],c=h.shouldBePainted(n,r,!0,!0);if(h&&(!c||!h.__zr)&&h.__isRendered){var f=h.getPrevPaintRect();f&&i(f)}}var d;do{d=!1;for(var u=0;u<o.length;)if(o[u].isZero())o.splice(u,1);else{for(var g=u+1;g<o.length;)o[u].intersect(o[g])?(d=!0,o[u].union(o[g]),o.splice(g,1)):g++;u++}}while(d);return this._paintRects=o,o},n.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},n.prototype.resize=function(t,e){var n=this.dpr,r=this.dom,i=r.style,o=this.domBack;i&&(i.width=t+"px",i.height=e+"px"),r.width=t*n,r.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},n.prototype.clear=function(t,e,n){function r(t,n,r,i){if(o.clearRect(t,n,r,i),e&&"transparent"!==e){var a=void 0;if(P(e)){var s=e.global||e.__width===r&&e.__height===i;a=s&&e.__canvasGradient||Kh(o,e,{x:0,y:0,width:r,height:i}),e.__canvasGradient=a,e.__width=r,e.__height=i}else R(e)&&(e.scaleX=e.scaleX||h,e.scaleY=e.scaleY||h,a=sc(o,e,{dirty:function(){c.setUnpainted(),c.__painter.refresh()}}));o.save(),o.fillStyle=a||e,o.fillRect(t,n,r,i),o.restore()}l&&(o.save(),o.globalAlpha=u,o.drawImage(f,t,n,r,i),o.restore())}var i=this.dom,o=this.ctx,a=i.width,s=i.height;e=e||this.clearColor;var l=this.motionBlur&&!t,u=this.lastFrameAlpha,h=this.dpr,c=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,a/h,s/h));var f=this.domBack;!n||l?r(0,0,a,s):n.length&&v(n,function(t){r(t.x*h,t.y*h,t.width*h,t.height*h)})},n}(mv),ck=1e5,fk=314159,pk=.01,dk=.001,gk=function(){function t(t,e,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=h({},n||{}),this.dpr=n.devicePixelRatio||Zy,this._singleCanvas=r,this.root=t;var i=t.style;i&&(K(t),t.innerHTML=""),this.storage=e;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(r){var s=t,l=s.width,u=s.height;null!=n.width&&(l=n.width),null!=n.height&&(u=n.height),this.dpr=n.devicePixelRatio||1,s.width=l*this.dpr,s.height=u*this.dpr,this._width=l,this._height=u;var c=new hk(s,this,this.dpr);c.__builtin__=!0,c.initContext(),a[fk]=c,c.zlevel=fk,o.push(fk),this._domRoot=t}else{this._width=Jh(t,0,n),this._height=Jh(t,1,n);var f=this._domRoot=vd(this._width,this._height);t.appendChild(f)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();return t?{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}:void 0},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var i=0;i<r.length;i++){var o=r[i],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===i?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;e>o;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(ck)),r||(r=n.ctx,r.save()),wc(r,a,i,o===e-1))}r&&r.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(ck)},t.prototype.paintOne=function(t,e){xc(t,e)},t.prototype._paintList=function(t,e,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e,n),o=i.finished,a=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer(function(t){t.afterBrush&&t.afterBrush()});else{var s=this;ty(function(){s._paintList(t,e,n,r)})}}},t.prototype._compositeManually=function(){var t=this.getLayer(fk).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(r){r.virtual&&t.drawImage(r.dom,0,0,e,n)})},t.prototype._doPaintList=function(t,e,n){for(var r=this,i=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&i.push(l)}for(var u=!0,h=!1,c=function(a){var s=i[a],l=s.ctx,c=o&&s.createRepaintRects(t,e,f._width,f._height),p=n?s.__startIndex:s.__drawIndex,d=!n&&s.incremental&&Date.now,g=d&&Date.now(),v=s.zlevel===f._zlevelList[0]?f._backgroundColor:null;if(s.__startIndex===s.__endIndex)s.clear(!1,v,c);else if(p===s.__startIndex){var y=t[p];y.incremental&&y.notClear&&!n||s.clear(!1,v,c)}-1===p&&(console.error("For some unknown reason. drawIndex is -1"),p=s.__startIndex);var m,_=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(m=p;m<s.__endIndex;m++){var i=t[m];if(i.__inHover&&(h=!0),r._doPaintEl(i,s,o,e,n,m===s.__endIndex-1),d){var a=Date.now()-g;if(a>15)break}}n.prevElClipPaths&&l.restore()};if(c)if(0===c.length)m=s.__endIndex;else for(var x=f.dpr,w=0;w<c.length;++w){var b=c[w];l.save(),l.beginPath(),l.rect(b.x*x,b.y*x,b.width*x,b.height*x),l.clip(),_(b),l.restore()}else l.save(),_(),l.restore();s.__drawIndex=m,s.__drawIndex<s.__endIndex&&(u=!1)},f=this,p=0;p<i.length;p++)c(p);return Bg.wxa&&v(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:u,needsRefreshHover:h}},t.prototype._doPaintEl=function(t,e,n,r,i,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!r||s&&s.intersect(r))&&(wc(a,t,i,o),t.setPrevPaintRect(s))}else wc(a,t,i,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=fk);var n=this._layers[t];return n||(n=new hk("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?l(n,this._layerConfig[t],!0):this._layerConfig[t-pk]&&l(n,this._layerConfig[t-pk],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,r=this._zlevelList,i=r.length,o=this._domRoot,a=null,s=-1;if(!n[t]&&gd(e)){if(i>0&&t>r[0]){for(s=0;i-1>s&&!(r[s]<t&&r[s+1]>t);s++);a=n[r[s]]}if(r.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];t.call(e,this._layers[i],i)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__&&t.call(e,o,i)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__||t.call(e,o,i)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){s&&(s.__endIndex!==t&&(s.__dirty=!0),s.__endIndex=t)}if(this.eachBuiltinLayer(function(t){t.__dirty=t.__used=!1}),this._singleCanvas)for(var n=1;n<t.length;n++){var r=t[n];if(r.zlevel!==t[n-1].zlevel||r.incremental){this._needsManuallyCompositing=!0;break}}var i,o,s=null,l=0;for(o=0;o<t.length;o++){var r=t[o],u=r.zlevel,h=void 0;i!==u&&(i=u,l=0),r.incremental?(h=this.getLayer(u+dk,this._needsManuallyCompositing),h.incremental=!0,l=1):h=this.getLayer(u+(l>0?pk:0),this._needsManuallyCompositing),h.__builtin__||a("ZLevel "+u+" has been used by unkown layer "+h.id),h!==s&&(h.__used=!0,h.__startIndex!==o&&(h.__dirty=!0),h.__startIndex=o,h.__drawIndex=h.incremental?-1:o,e(o),s=h),r.__dirty&Zv&&!r.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=o))}e(o),this.eachBuiltinLayer(function(t){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,v(this._layers,function(t){t.setUnpainted()})},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?l(n[t],e,!0):n[t]=e;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];if(i===t||i===t+pk){var o=this._layers[i];l(o,n[t],!0)}}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,r=e[t];r&&(r.dom.parentNode.removeChild(r.dom),delete e[t],n.splice(f(n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts,i=this.root;if(null!=t&&(r.width=t),null!=e&&(r.height=e),t=Jh(i,0,r),e=Jh(i,1,r),n.style.display="",this._width!==t||e!==this._height){n.style.width=t+"px",n.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(fk).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[fk].dom;var e=new hk("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var r=e.dom.width,i=e.dom.height;this.eachLayer(function(t){t.__builtin__?n.drawImage(t.dom,0,0,r,i):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;l>s;s++){var u=a[s];wc(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),vk=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return e(n,t),n.prototype.init=function(e,n,r){t.prototype.init.call(this,e,n,r),this._sourceManager=new wS(this),ih(this)},n.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),ih(this)},n.prototype.optionUpdated=function(){this._sourceManager.dirty()},n.prototype.getSourceManager=function(){return this._sourceManager},n.type="dataset",n.defaultOption={seriesLayoutBy:Tb},n}(fb),yk=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return e(n,t),n.type="dataset",n}(TS);vp([yd,md]),vp(pd);var mk=2*Math.PI,_k=Math.PI/180,xk=Math.PI/180,wk=function(t){function n(e,n,r){var i=t.call(this)||this;i.z2=2;var o=new Y_;return i.setTextContent(o),i.updateData(e,n,r,!0),i}return e(n,t),n.prototype.updateData=function(t,e,n,r){var i=this,o=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),l=t.getItemLayout(e),u=h(Dd(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))return void i.setShape(u);if(r){i.setShape(u);var c=o.getShallow("animationType");o.ecModel.ssr?(ws(i,{scaleX:0,scaleY:0},o,{dataIndex:e,isFrom:!0}),i.originX=u.cx,i.originY=u.cy):"scale"===c?(i.shape.r=l.r0,ws(i,{shape:{r:l.r}},o,e)):null!=n?(i.setShape({startAngle:n,endAngle:n}),ws(i,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,e)):(i.shape.endAngle=l.startAngle,xs(i,{shape:{endAngle:l.endAngle}},o,e))}else Cs(i),xs(i,{shape:u},o,e);i.useStyle(t.getItemVisual(e,"style")),Ya(i,a);var f=(l.startAngle+l.endAngle)/2,p=o.get("selectedOffset"),d=Math.cos(f)*p,g=Math.sin(f)*p,v=a.getShallow("cursor");v&&i.attr("cursor",v),this._updateLabel(o,t,e),i.ensureState("emphasis").shape=h({r:l.r+(s.get("scale")?s.get("scaleSize")||0:0)},Dd(s.getModel("itemStyle"),l)),h(i.ensureState("select"),{x:d,y:g,shape:Dd(a.getModel(["select","itemStyle"]),l)}),h(i.ensureState("blur"),{shape:Dd(a.getModel(["blur","itemStyle"]),l)});var y=i.getTextGuideLine(),m=i.getTextContent();y&&h(y.ensureState("select"),{x:d,y:g}),h(m.ensureState("select"),{x:d,y:g}),qa(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},n.prototype._updateLabel=function(t,e,n){var r=this,i=e.getItemModel(n),o=i.getModel("labelLine"),a=e.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;Us(r,Gs(i),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var u=r.getTextContent();r.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var h=t.get(["label","position"]);if("outside"!==h&&"outer"!==h)r.removeTextGuideLine();else{var c=this.getTextGuideLine();c||(c=new Qx,this.setTextGuideLine(c)),rd(this,id(i),{stroke:s,opacity:F(o.get(["lineStyle","opacity"]),l,1)})}},n}(Xx),bk=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return e(n,t),n.prototype.render=function(t,e,n){var r,i=t.getData(),o=this._data,a=this.group;if(!o&&i.count()>0){for(var s=i.getItemLayout(0),l=1;isNaN(s&&s.startAngle)&&l<i.count();++l)s=i.getItemLayout(l);s&&(r=s.startAngle)}if(this._emptyCircleSector&&a.remove(this._emptyCircleSector),0===i.count()&&t.get("showEmptyCircle")){var u=new Xx({shape:xd(t,n)});u.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=u,a.add(u)}i.diff(o).add(function(t){var e=new wk(i,t,r);i.setItemGraphicEl(t,e),a.add(e)}).update(function(t,e){var n=o.getItemGraphicEl(e);n.updateData(i,t,r),n.off("click"),a.add(n),i.setItemGraphicEl(t,n)}).remove(function(e){var n=o.getItemGraphicEl(e);Ts(n,t,e)}).execute(),kd(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=i)},n.prototype.dispose=function(){},n.prototype.containPoint=function(t,e){var n=e.getData(),r=n.getItemLayout(0);if(r){var i=t[0]-r.cx,o=t[1]-r.cy,a=Math.sqrt(i*i+o*o);return a<=r.r&&a>=r.r0}},n.type="pie",n}(DS),Sk=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},t.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},t.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},t}(),Mk=Xi(),Tk=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Sk(iv(this.getData,this),iv(this.getRawData,this)),this._defaultLabelLine(e)},n.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},n.prototype.getInitialData=function(){return Id(this,{coordDimensions:["value"],encodeDefaulter:S(Gl,this)})},n.prototype.getDataParams=function(e){var n=this.getData(),r=Mk(n),i=r.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(t){o.push(t)}),i=r.seats=hi(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=i[e]||0,a.$vars.push("percent"),a},n.prototype._defaultLabelLine=function(t){Di(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},n.type="series.pie",n.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},n}(MS);vp(Ld);var Ck=Math.sin,kk=Math.cos,Dk=Math.PI,Ik=2*Math.PI,Ak=180/Dk,Lk=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){this._add("C",t,e,n,r,i,o)},t.prototype.quadraticCurveTo=function(t,e,n,r){this._add("Q",t,e,n,r)},t.prototype.arc=function(t,e,n,r,i,o){this.ellipse(t,e,n,n,0,r,i,o)},t.prototype.ellipse=function(t,e,n,r,i,o,a,s){var l=a-o,u=!s,h=Math.abs(l),c=Yn(h-Ik)||(u?l>=Ik:-l>=Ik),f=l>0?l%Ik:l%Ik+Ik,p=!1;p=c?!0:Yn(h)?!1:f>=Dk==!!u;var d=t+n*kk(o),g=e+r*Ck(o);this._start&&this._add("M",d,g);var v=Math.round(i*Ak);if(c){var y=1/this._p,m=(u?1:-1)*(Ik-y);this._add("A",n,r,v,1,+u,t+n*kk(o+m),e+r*Ck(o+m)),y>.01&&this._add("A",n,r,v,0,+u,d,g)}else{var _=t+n*kk(a),x=e+r*Ck(a);this._add("A",n,r,v,+p,+u,_,x)}},t.prototype.rect=function(t,e,n,r){this._add("M",t,e),this._add("l",n,0),this._add("l",0,r),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t){for(var e=[],n=this._p,r=1;r<arguments.length;r++){var i=arguments[r];if(isNaN(i))return void(this._invalid=!0);e.push(Math.round(i*n)/n)}this._d.push(t+e.join(" ")),this._start="Z"===t},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),Ok="none",Pk=Math.round,Rk=["lineCap","miterLimit","lineJoin"],Nk=y(Rk,function(t){return"stroke-"+t.toLowerCase()}),Bk="http://www.w3.org/2000/svg",Ek="http://www.w3.org/1999/xlink",zk="http://www.w3.org/2000/xmlns/",Fk="http://www.w3.org/XML/1998/namespace",Vk={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Hk="transform-origin",Wk={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"},Uk=Math.round,Gk={circle:[rg(["cx","cy","r"])],polyline:[eg,ng],polygon:[eg,ng]},qk=58,Xk=120,Yk=Bd("",""),jk=0,Zk=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=Lg("refreshHover"),this.configLayer=Lg("configLayer"),this.storage=e,this._opts=n=h({},n),this.root=t,this._id="zr"+jk++,this._oldVNode=Wd(n.width,n.height),t&&!n.ssr){var r=this._viewport=document.createElement("div");r.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=Nd("svg");kg(null,this._oldVNode),r.appendChild(i),t.appendChild(r)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();return t?{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}:void 0},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",Ag(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return lg(t,Hd(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=Hd(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress;var o=[],a=this._bgVNode=Og(n,r,this._backgroundColor,i);a&&o.push(a);var s=t.compress?null:this._mainVNode=Bd("g","main",{},[]);this._paintList(e,i,s?s.children:o),s&&o.push(s);var l=y(w(i.defs),function(t){return i.defs[t]});if(l.length&&o.push(Bd("defs","defs",{},l)),t.animation){var u=Vd(i.cssNodes,i.cssAnims,{newline:!0});if(u){var h=Bd("style","stl",{},[],u);o.push(h)}}return Wd(n,r,o,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},Fd(this.renderToVNode({animation:z(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:z(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var r,i,o=t.length,a=[],s=0,l=0,u=0;o>u;u++){var h=t[u];
if(!h.invisible){var c=h.__clipPaths,f=c&&c.length||0,p=i&&i.length||0,d=void 0;for(d=Math.max(f-1,p-1);d>=0&&(!c||!i||c[d]!==i[d]);d--);for(var g=p-1;g>d;g--)s--,r=a[s-1];for(var v=d+1;f>v;v++){var y={};fg(c[v],y,e);var m=Bd("g","clip-g-"+l++,y,[]);(r?r.children:n).push(m),a[s++]=m,r=m}i=c;var _=lg(h,e);_&&(r?r.children:n).push(_)}}},t.prototype.resize=function(t,e){var n=this._opts,r=this.root,i=this._viewport;if(null!=t&&(n.width=t),null!=e&&(n.height=e),r&&i&&(i.style.display="none",t=Jh(r,0,n),e=Jh(r,1,n),i.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,i){var o=i.style;o.width=t+"px",o.height=e+"px"}if(nr(this._backgroundColor))this.refresh();else{var a=this._svgDom;a&&(a.setAttribute("width",t),a.setAttribute("height",e));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",t),s.setAttribute("height",e))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=Ty(e),e&&n+"base64,"+e):n+"charset=UTF-8,"+encodeURIComponent(e)},t}();ti("svg",Zk),t.version=MM,t.dependencies=TM,t.PRIORITY=WM,t.init=Nc,t.connect=Bc,t.disConnect=Ec,t.disconnect=OT,t.dispose=zc,t.getInstanceByDom=Fc,t.getInstanceById=Vc,t.registerTheme=Hc,t.registerPreprocessor=Wc,t.registerProcessor=Uc,t.registerPostInit=Gc,t.registerPostUpdate=qc,t.registerUpdateLifecycle=Xc,t.registerAction=Yc,t.registerCoordinateSystem=jc,t.getCoordinateSystemDimensions=Zc,t.registerLayout=Kc,t.registerVisual=$c,t.registerLoading=Jc,t.setCanvasCreator=tf,t.registerMap=ef,t.getMap=nf,t.registerTransform=RT,t.dataTool=WT,t.registerLocale=el,t.zrender=xm,t.matrix=Iv,t.vector=gv,t.zrUtil=hv,t.color=wy,t.helper=IC,t.number=zC,t.time=FC,t.graphic=VC,t.format=HC,t.util=WC,t.List=nC,t.ComponentModel=fb,t.ComponentView=TS,t.SeriesModel=MS,t.ChartView=DS,t.extendComponentModel=Wp,t.extendComponentView=Up,t.extendSeriesModel=Gp,t.extendChartView=qp,t.throttle=Th,t.use=vp,t.setPlatformAPI=i,t.parseGeoJSON=Tp,t.parseGeoJson=Tp,t.env=Bg,t.Model=Fw,t.Axis=qC,t.innerDrawElementOnCanvas=xc});