import{c as t}from"./__commonjsHelpers__.js?v=1763625242172";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var e=function(t,n){return(e=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,n)};function n(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var i=function(){return function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}}(),r=new(function(){return function(){this.browser=new i,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}}());"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(r.wxa=!0,r.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?r.worker=!0:!r.hasGlobalWindow||"Deno"in window?(r.node=!0,r.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]);r&&(n.ie=!0,n.version=r[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}(navigator.userAgent,r);var o="sans-serif",a="12px "+o;var s=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-20)/100;e[i]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),l={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,i){if(!t){var r=l.createCanvas();t=r&&r.getContext("2d")}if(t)return e!==i&&(e=t.font=i||a),t.measureText(n);n=n||"";var o=/((?:\d+)?\.?\d*)px/.exec(i=i||a),u=o&&+o[1]||12,h=0;if(i.indexOf("mono")>=0)h=u*n.length;else for(var c=0;c<n.length;c++){var d=s[n[c]];h+=null==d?u:d*u}return{width:h}}}(),loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}};function u(t){for(var e in l)t[e]&&(l[e]=t[e])}var h=E(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),c=E(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),d=Object.prototype.toString,p=Array.prototype,f=p.forEach,g=p.filter,v=p.slice,m=p.map,y=function(){}.constructor,x=y?y.prototype:null,_="__proto__",b=2311;function w(){return b++}function S(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function M(t){if(null==t||"object"!=typeof t)return t;var e=t,n=d.call(t);if("[object Array]"===n){if(!ht(t)){e=[];for(var i=0,r=t.length;i<r;i++)e[i]=M(t[i])}}else if(c[n]){if(!ht(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(i=0,r=t.length;i<r;i++)e[i]=t[i]}}}else if(!h[n]&&!ht(t)&&!K(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==_&&(e[a]=M(t[a]));return e}function I(t,e,n){if(!X(e)||!X(t))return n?M(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==_){var r=t[i],o=e[i];!X(o)||!X(r)||H(o)||H(r)||K(o)||K(r)||j(o)||j(r)||ht(o)||ht(r)?!n&&i in t||(t[i]=M(e[i])):I(r,o,n)}return t}function T(t,e){for(var n=t[0],i=1,r=t.length;i<r;i++)n=I(n,t[i],e);return n}function C(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==_&&(t[n]=e[n]);return t}function A(t,e,n){for(var i=B(e),r=0,o=i.length;r<o;r++){var a=i[r];(n?null!=e[a]:null==t[a])&&(t[a]=e[a])}return t}var D=l.createCanvas;function L(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function k(t,e){var n=t.prototype;function i(){}for(var r in i.prototype=e.prototype,t.prototype=new i,n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e}function P(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else A(t,e,n)}function O(t){return!!t&&("string"!=typeof t&&"number"==typeof t.length)}function R(t,e,n){if(t&&e)if(t.forEach&&t.forEach===f)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function N(t,e,n){if(!t)return[];if(!e)return rt(t);if(t.map&&t.map===m)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}function E(t,e,n,i){if(t&&e){for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}}function z(t,e,n){if(!t)return[];if(!e)return rt(t);if(t.filter&&t.filter===g)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function V(t,e,n){if(t&&e)for(var i=0,r=t.length;i<r;i++)if(e.call(n,t[i],i,t))return t[i]}function B(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}var G=x&&W(x.bind)?x.call.bind(x.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(v.call(arguments)))}};function F(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(v.call(arguments)))}}function H(t){return Array.isArray?Array.isArray(t):"[object Array]"===d.call(t)}function W(t){return"function"==typeof t}function U(t){return"string"==typeof t}function Y(t){return"[object String]"===d.call(t)}function Z(t){return"number"==typeof t}function X(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function j(t){return!!h[d.call(t)]}function q(t){return!!c[d.call(t)]}function K(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function $(t){return null!=t.colorStops}function J(t){return null!=t.image}function Q(t){return"[object RegExp]"===d.call(t)}function tt(t){return t!=t}function et(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function nt(t,e){return null!=t?t:e}function it(t,e,n){return null!=t?t:null!=e?e:n}function rt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return v.apply(t,e)}function ot(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 at(t,e){if(!t)throw new Error(e)}function st(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var lt="__ec_primitive__";function ut(t){t[lt]=!0}function ht(t){return t[lt]}var ct=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 B(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),dt="function"==typeof Map;var pt=function(){function t(e){var n=H(e);this.data=dt?new Map:new ct;var i=this;function r(t,e){n?i.set(t,e):i.set(e,t)}e instanceof t?e.each(r):e&&R(e,r)}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,i){t.call(e,n,i)}))},t.prototype.keys=function(){var t=this.data.keys();return dt?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function ft(t){return new pt(t)}function gt(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var r=t.length;for(i=0;i<e.length;i++)n[i+r]=e[i];return n}function vt(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&C(n,e),n}function mt(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function yt(t,e){return t.hasOwnProperty(e)}function xt(){}var _t=180/Math.PI;const bt=Object.freeze(Object.defineProperty({__proto__:null,HashMap:pt,RADIAN_TO_DEGREE:_t,assert:at,bind:G,clone:M,concatArray:gt,createCanvas:D,createHashMap:ft,createObject:vt,curry:F,defaults:A,disableUserSelect:mt,each:R,eqNaN:tt,extend:C,filter:z,find:V,guid:w,hasOwn:yt,indexOf:L,inherits:k,isArray:H,isArrayLike:O,isBuiltInObject:j,isDom:K,isFunction:W,isGradientObject:$,isImagePatternObject:J,isNumber:Z,isObject:X,isPrimitive:ht,isRegExp:Q,isString:U,isStringSafe:Y,isTypedArray:q,keys:B,logError:S,map:N,merge:I,mergeAll:T,mixin:P,noop:xt,normalizeCssArray:ot,reduce:E,retrieve:et,retrieve2:nt,retrieve3:it,setAsPrimitive:ut,slice:rt,trim:st},Symbol.toStringTag,{value:"Module"}));function wt(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function St(t,e){return t[0]=e[0],t[1]=e[1],t}function Mt(t){return[t[0],t[1]]}function It(t,e,n){return t[0]=e,t[1]=n,t}function Tt(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Ct(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function At(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function Dt(t){return Math.sqrt(kt(t))}var Lt=Dt;function kt(t){return t[0]*t[0]+t[1]*t[1]}var Pt=kt;function Ot(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function Rt(t,e){var n=Dt(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function Nt(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Et=Nt;function zt(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Vt=zt;function Bt(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function Gt(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function Ft(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function Ht(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}const Wt=Object.freeze(Object.defineProperty({__proto__:null,add:Tt,applyTransform:Gt,clone:Mt,copy:St,create:wt,dist:Et,distSquare:Vt,distance:Nt,distanceSquare:zt,div:function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},len:Dt,lenSquare:kt,length:Lt,lengthSquare:Pt,lerp:Bt,max:Ht,min:Ft,mul:function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:Rt,scale:Ot,scaleAndAdd:Ct,set:It,sub:At},Symbol.toStringTag,{value:"Module"}));var Ut=function(){return function(t,e){this.target=t,this.topTarget=e&&e.topTarget}}(),Yt=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 Ut(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.handler.dispatchToElement(new Ut(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new Ut(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new Ut(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Ut(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Ut(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),Zt=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===n)return this;var s={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[t].length-1,u=r[t][l];return u&&u.callAtLast?r[t].splice(l,0,s):r[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 i=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},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 i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.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 r&&r.afterTrigger&&r.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 i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.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 r&&r.afterTrigger&&r.afterTrigger(t),this},t}(),Xt=Math.log(2);function jt(t,e,n,i,r,o){var a=i+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/Xt);return t[n][l]}for(var u=i|1<<n,h=n+1;i&1<<h;)h++;for(var c=0,d=0,p=0;d<s;d++){var f=1<<d;f&r||(c+=(p%2?-1:1)*t[n][d]*jt(t,e-1,h,u,r|f,o),p++)}return o[a]=c,c}function qt(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=jt(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*jt(n,7,0===a?1:0,1<<a,1<<s,i)/r*e[a];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}var Kt="___zrEVENTSAVED",$t=[];function Jt(t,e,n,i,o){if(e.getBoundingClientRect&&r.domSupported&&!Qt(e)){var a=e[Kt]||(e[Kt]={}),s=function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=o%2,l=(o>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,a),l=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var h=t[u].getBoundingClientRect(),c=2*u,d=h.left,p=h.top;a.push(d,p),l=l&&o&&d===o[c]&&p===o[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?qt(s,a):qt(a,s))}(s,a,o);if(l)return l(t,n,i),!0}return!1}function Qt(t){return"CANVAS"===t.nodeName.toUpperCase()}var te=/([&<>"'])/g,ee={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ne(t){return null==t?"":(t+"").replace(te,(function(t,e){return ee[e]}))}var ie=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,re=[],oe=r.browser.firefox&&+r.browser.version.split(".")[0]<39;function ae(t,e,n,i){return n=n||{},i?se(t,e,n):oe&&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):se(t,e,n),n}function se(t,e,n){if(r.domSupported&&t.getBoundingClientRect){var i=e.clientX,o=e.clientY;if(Qt(t)){var a=t.getBoundingClientRect();return n.zrX=i-a.left,void(n.zrY=o-a.top)}if(Jt(re,t,i,o))return n.zrX=re[0],void(n.zrY=re[1])}n.zrX=n.zrY=0}function le(t){return t||window.event}function ue(t,e,n){if(null!=(e=le(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&ae(t,r,e,n)}else{ae(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;if(null==n||null==i)return e;return 3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&ie.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function he(t,e,n,i){t.addEventListener(e,n,i)}var ce=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function de(t){return 2===t.which||3===t.which}var pe=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 i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o<a;o++){var s=i[o],l=ae(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in ge)if(ge.hasOwnProperty(e)){var n=ge[e](this._track,t);if(n)return n}},t}();function fe(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var ge={pinch:function(t,e){var n=t.length;if(n){var i,r=(t[n-1]||{}).points,o=(t[n-2]||{}).points||r;if(o&&o.length>1&&r&&r.length>1){var a=fe(r)/fe(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function ve(){return[1,0,0,1,0,0]}function me(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function ye(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 xe(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=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]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function _e(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 be(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],h=Math.sin(n),c=Math.cos(n);return t[0]=r*c+s*h,t[1]=-r*h+s*c,t[2]=o*c+l*h,t[3]=-o*h+c*l,t[4]=c*(a-i[0])+h*(u-i[1])+i[0],t[5]=c*(u-i[1])-h*(a-i[0])+i[1],t}function we(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function Se(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function Me(t){var e=[1,0,0,1,0,0];return ye(e,t),e}const Ie=Object.freeze(Object.defineProperty({__proto__:null,clone:Me,copy:ye,create:ve,identity:me,invert:Se,mul:xe,rotate:be,scale:we,translate:_e},Symbol.toStringTag,{value:"Module"}));var Te=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,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}(),Ce=Math.min,Ae=Math.max,De=new Te,Le=new Te,ke=new Te,Pe=new Te,Oe=new Te,Re=new Te,Ne=function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=Ce(t.x,this.x),n=Ce(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ae(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ae(t.y+t.height,this.y+this.height)-n:this.height=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,i=t.height/e.height,r=[1,0,0,1,0,0];return _e(r,r,[-e.x,-e.y]),we(r,r,[n,i]),_e(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,d=!(o<l||u<r||s<h||c<a);if(n){var p=1/0,f=0,g=Math.abs(o-l),v=Math.abs(u-r),m=Math.abs(s-h),y=Math.abs(c-a),x=Math.min(g,v),_=Math.min(m,y);o<l||u<r?x>f&&(f=x,g<v?Te.set(Re,-g,0):Te.set(Re,v,0)):x<p&&(p=x,g<v?Te.set(Oe,g,0):Te.set(Oe,-v,0)),s<h||c<a?_>f&&(f=_,m<y?Te.set(Re,0,-m):Te.set(Re,0,y)):x<p&&(p=x,m<y?Te.set(Oe,0,m):Te.set(Oe,0,-y))}return n&&Te.copy(n,d?Oe:Re),d},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,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,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))}De.x=ke.x=n.x,De.y=Pe.y=n.y,Le.x=Pe.x=n.x+n.width,Le.y=ke.y=n.y+n.height,De.transform(i),Pe.transform(i),Le.transform(i),ke.transform(i),e.x=Ce(De.x,Le.x,ke.x,Pe.x),e.y=Ce(De.y,Le.y,ke.y,Pe.y);var l=Ae(De.x,Le.x,ke.x,Pe.x),u=Ae(De.y,Le.y,ke.y,Pe.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),Ee="silent";function ze(){ce(this.event)}var Ve=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return n(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Zt),Be=function(){return function(t,e){this.x=t,this.y=e}}(),Ge=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Fe=new Ne(0,0,0,0),He=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new Be(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new Ve,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new Yt(a),a}return n(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(R(Ge,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=Ye(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new Be(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(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.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})},e.prototype.resize=function(){this._hovered=new Be(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(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:ze}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new Be(t,e);if(Ue(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Ne(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var h=i[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(Fe.copy(h.getBoundingRect()),h.transform&&Fe.applyTransform(h.transform),Fe.intersect(l)&&o.push(h))}if(o.length)for(var c=Math.PI/12,d=2*Math.PI,p=0;p<s;p+=4)for(var f=0;f<d;f+=c){if(Ue(o,r,t+p*Math.cos(f),e+p*Math.sin(f),n),r.target)return r}}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new pe);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new Be;o.target=i.target,this.dispatchToElement(o,r,i.event)}},e}(Zt);function We(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1}i.silent&&(r=!0);var s=i.__hostTarget;i=s||i.parent}return!r||Ee}return!1}function Ue(t,e,n,i,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=We(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==Ee)){e.target=a;break}}}function Ye(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}R(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){He.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=Ye(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Et(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));function Ze(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r<n&&i(t[r],t[r-1])<0;)r++;!function(t,e,n){n--;for(;e<n;){var i=t[e];t[e++]=t[n],t[n--]=i}}(t,e,r)}else for(;r<n&&i(t[r],t[r-1])>=0;)r++;return r-e}function Xe(t,e,n,i,r){for(i===e&&i++;i<n;i++){for(var o,a=t[i],s=e,l=i;s<l;)r(a,t[o=s+l>>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function je(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l<s&&o(t,e[n+r+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(t,e[n+r-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a<l;){var h=a+(l-a>>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function qe(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;l<s&&o(t,e[n+r-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l<s&&o(t,e[n+r+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var h=a+(l-a>>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function Ke(t,e){var n,i,r=7,o=0,a=[];function s(s){var l=n[s],u=i[s],h=n[s+1],c=i[s+1];i[s]=u+c,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var d=qe(t[h],t,l,u,0,e);l+=d,0!==(u-=d)&&0!==(c=je(t[l+u-1],t,h,c,c-1,e))&&(u<=c?function(n,i,o,s){var l=0;for(l=0;l<i;l++)a[l]=t[n+l];var u=0,h=o,c=n;if(t[c++]=t[h++],0==--s){for(l=0;l<i;l++)t[c+l]=a[u+l];return}if(1===i){for(l=0;l<s;l++)t[c+l]=t[h+l];return void(t[c+s]=a[u])}var d,p,f,g=r;for(;;){d=0,p=0,f=!1;do{if(e(t[h],a[u])<0){if(t[c++]=t[h++],p++,d=0,0==--s){f=!0;break}}else if(t[c++]=a[u++],d++,p=0,1==--i){f=!0;break}}while((d|p)<g);if(f)break;do{if(0!==(d=qe(t[h],a,u,i,0,e))){for(l=0;l<d;l++)t[c+l]=a[u+l];if(c+=d,u+=d,(i-=d)<=1){f=!0;break}}if(t[c++]=t[h++],0==--s){f=!0;break}if(0!==(p=je(a[u],t,h,s,0,e))){for(l=0;l<p;l++)t[c+l]=t[h+l];if(c+=p,h+=p,0===(s-=p)){f=!0;break}}if(t[c++]=a[u++],1==--i){f=!0;break}g--}while(d>=7||p>=7);if(f)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(l=0;l<s;l++)t[c+l]=t[h+l];t[c+s]=a[u]}else{if(0===i)throw new Error;for(l=0;l<i;l++)t[c+l]=a[u+l]}}(l,u,h,c):function(n,i,o,s){var l=0;for(l=0;l<s;l++)a[l]=t[o+l];var u=n+i-1,h=s-1,c=o+s-1,d=0,p=0;if(t[c--]=t[u--],0==--i){for(d=c-(s-1),l=0;l<s;l++)t[d+l]=a[l];return}if(1===s){for(p=(c-=i)+1,d=(u-=i)+1,l=i-1;l>=0;l--)t[p+l]=t[d+l];return void(t[c]=a[h])}var f=r;for(;;){var g=0,v=0,m=!1;do{if(e(a[h],t[u])<0){if(t[c--]=t[u--],g++,v=0,0==--i){m=!0;break}}else if(t[c--]=a[h--],v++,g=0,1==--s){m=!0;break}}while((g|v)<f);if(m)break;do{if(0!==(g=i-qe(a[h],t,n,i,i-1,e))){for(i-=g,p=(c-=g)+1,d=(u-=g)+1,l=g-1;l>=0;l--)t[p+l]=t[d+l];if(0===i){m=!0;break}}if(t[c--]=a[h--],1==--s){m=!0;break}if(0!==(v=s-je(t[u],a,0,s,s-1,e))){for(s-=v,p=(c-=v)+1,d=(h-=v)+1,l=0;l<v;l++)t[p+l]=a[d+l];if(s<=1){m=!0;break}}if(t[c--]=t[u--],0==--i){m=!0;break}f--}while(g>=7||v>=7);if(m)break;f<0&&(f=0),f+=2}(r=f)<1&&(r=1);if(1===s){for(p=(c-=i)+1,d=(u-=i)+1,l=i-1;l>=0;l--)t[p+l]=t[d+l];t[c]=a[h]}else{if(0===s)throw new Error;for(d=c-(s-1),l=0;l<s;l++)t[d+l]=a[l]}}(l,u,h,c))}return n=[],i=[],{mergeRuns:function(){for(;o>1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]<i[t+1]&&t--;else if(i[t]>i[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]<i[t+1]&&t--,s(t)}},pushRun:function(t,e){n[o]=t,i[o]=e,o+=1}}}function $e(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(r<2)){var o=0;if(r<32)Xe(t,n,i,n+(o=Ze(t,n,i,e)),e);else{var a=Ke(t,e),s=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(r);do{if((o=Ze(t,n,i,e))<s){var l=r;l>s&&(l=s),Xe(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}}var Je=!1;function Qe(){Je||(Je=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function tn(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var en,nn=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=tn}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,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,$e(n,tn)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e=e?e.slice():[];for(var r=i,o=t;r;)r.parent=o,r.updateTransform(),e.push(r),o=r,r=r.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=1),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)&&(Qe(),u.z=0),isNaN(u.z2)&&(Qe(),u.z2=0),isNaN(u.zlevel)&&(Qe(),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 d=t.getTextContent();d&&this._updateAndAddDisplayable(d,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;e<n;e++)this.delRoot(t[e]);else{var i=L(this._roots,t);i>=0&&this._roots.splice(i,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}();en=r.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var rn={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*(2-Math.pow(2,-10*(t-1)))},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;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-rn.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*rn.bounceIn(2*t):.5*rn.bounceOut(2*t-1)+.5}},on=Math.pow,an=Math.sqrt,sn=1e-8,ln=1e-4,un=an(3),hn=1/3,cn=wt(),dn=wt(),pn=wt();function fn(t){return t>-1e-8&&t<sn}function gn(t){return t>sn||t<-1e-8}function vn(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function mn(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function yn(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,d=l*l-3*s*u,p=0;if(fn(h)&&fn(c)){if(fn(s))o[0]=0;else(M=-l/s)>=0&&M<=1&&(o[p++]=M)}else{var f=c*c-4*h*d;if(fn(f)){var g=c/h,v=-g/2;(M=-s/a+g)>=0&&M<=1&&(o[p++]=M),v>=0&&v<=1&&(o[p++]=v)}else if(f>0){var m=an(f),y=h*s+1.5*a*(-c+m),x=h*s+1.5*a*(-c-m);(M=(-s-((y=y<0?-on(-y,hn):on(y,hn))+(x=x<0?-on(-x,hn):on(x,hn))))/(3*a))>=0&&M<=1&&(o[p++]=M)}else{var _=(2*h*s-3*a*c)/(2*an(h*h*h)),b=Math.acos(_)/3,w=an(h),S=Math.cos(b),M=(-s-2*w*S)/(3*a),I=(v=(-s+w*(S+un*Math.sin(b)))/(3*a),(-s+w*(S-un*Math.sin(b)))/(3*a));M>=0&&M<=1&&(o[p++]=M),v>=0&&v<=1&&(o[p++]=v),I>=0&&I<=1&&(o[p++]=I)}}return p}function xn(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(fn(a)){if(gn(o))(h=-s/o)>=0&&h<=1&&(r[l++]=h)}else{var u=o*o-4*a*s;if(fn(u))r[0]=-o/(2*a);else if(u>0){var h,c=an(u),d=(-o-c)/(2*a);(h=(-o+c)/(2*a))>=0&&h<=1&&(r[l++]=h),d>=0&&d<=1&&(r[l++]=d)}}return l}function _n(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function bn(t,e,n,i,r,o,a,s,l,u,h){var c,d,p,f,g,v=.005,m=1/0;cn[0]=l,cn[1]=u;for(var y=0;y<1;y+=.05)dn[0]=vn(t,n,r,a,y),dn[1]=vn(e,i,o,s,y),(f=Vt(cn,dn))<m&&(c=y,m=f);m=1/0;for(var x=0;x<32&&!(v<ln);x++)d=c-v,p=c+v,dn[0]=vn(t,n,r,a,d),dn[1]=vn(e,i,o,s,d),f=Vt(dn,cn),d>=0&&f<m?(c=d,m=f):(pn[0]=vn(t,n,r,a,p),pn[1]=vn(e,i,o,s,p),g=Vt(pn,cn),p<=1&&g<m?(c=p,m=g):v*=.5);return h&&(h[0]=vn(t,n,r,a,c),h[1]=vn(e,i,o,s,c)),an(m)}function wn(t,e,n,i,r,o,a,s,l){for(var u=t,h=e,c=0,d=1/l,p=1;p<=l;p++){var f=p*d,g=vn(t,n,r,a,f),v=vn(e,i,o,s,f),m=g-u,y=v-h;c+=Math.sqrt(m*m+y*y),u=g,h=v}return c}function Sn(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function Mn(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function In(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function Tn(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function Cn(t,e,n,i,r,o,a,s,l){var u,h=.005,c=1/0;cn[0]=a,cn[1]=s;for(var d=0;d<1;d+=.05){dn[0]=Sn(t,n,r,d),dn[1]=Sn(e,i,o,d),(v=Vt(cn,dn))<c&&(u=d,c=v)}c=1/0;for(var p=0;p<32&&!(h<ln);p++){var f=u-h,g=u+h;dn[0]=Sn(t,n,r,f),dn[1]=Sn(e,i,o,f);var v=Vt(dn,cn);if(f>=0&&v<c)u=f,c=v;else{pn[0]=Sn(t,n,r,g),pn[1]=Sn(e,i,o,g);var m=Vt(pn,cn);g<=1&&m<c?(u=g,c=m):h*=.5}}return l&&(l[0]=Sn(t,n,r,u),l[1]=Sn(e,i,o,u)),an(c)}function An(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,h=1/a,c=1;c<=a;c++){var d=c*h,p=Sn(t,n,r,d),f=Sn(e,i,o,d),g=p-s,v=f-l;u+=Math.sqrt(g*g+v*v),s=p,l=f}return u}var Dn=/cubic-bezier\(([0-9,\.e ]+)\)/;function Ln(t){var e=t&&Dn.exec(t);if(e){var n=e[1].split(","),i=+st(n[0]),r=+st(n[1]),o=+st(n[2]),a=+st(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:yn(0,i,o,1,t,s)&&vn(0,r,a,1,s[0])}}}var kn=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||xt,this.ondestroy=t.ondestroy||xt,this.onrestart=t.onrestart||xt,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){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=W(t)?t:rn[t]||Ln(t)},t}(),Pn=function(){return function(t){this.value=t}}(),On=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new Pn(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}(),Rn=function(){function t(t){this._list=new On,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new Pn(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),Nn={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]};function En(t){return(t=Math.round(t))<0?0:t>255?255:t}function zn(t){return t<0?0:t>1?1:t}function Vn(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?En(parseFloat(e)/100*255):En(parseInt(e,10))}function Bn(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?zn(parseFloat(e)/100):zn(parseFloat(e))}function Gn(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function Fn(t,e,n){return t+(e-t)*n}function Hn(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function Wn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Un=new Rn(20),Yn=null;function Zn(t,e){Yn&&Wn(Yn,e),Yn=Un.put(t,Yn||e.slice())}function Xn(t,e){if(t){e=e||[];var n=Un.get(t);if(n)return Wn(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in Nn)return Wn(e,Nn[i]),Zn(t,e),e;var r,o=i.length;if("#"===i.charAt(0))return 4===o||5===o?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(Hn(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===o?parseInt(i.slice(4),16)/15:1),Zn(t,e),e):void Hn(e,0,0,0,1):7===o||9===o?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(Hn(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===o?parseInt(i.slice(7),16)/255:1),Zn(t,e),e):void Hn(e,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),h=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?Hn(e,+u[0],+u[1],+u[2],1):Hn(e,0,0,0,1);h=Bn(u.pop());case"rgb":return u.length>=3?(Hn(e,Vn(u[0]),Vn(u[1]),Vn(u[2]),3===u.length?h:Bn(u[3])),Zn(t,e),e):void Hn(e,0,0,0,1);case"hsla":return 4!==u.length?void Hn(e,0,0,0,1):(u[3]=Bn(u[3]),jn(u,e),Zn(t,e),e);case"hsl":return 3!==u.length?void Hn(e,0,0,0,1):(jn(u,e),Zn(t,e),e);default:return}}Hn(e,0,0,0,1)}}function jn(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=Bn(t[1]),r=Bn(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return Hn(e=e||[],En(255*Gn(a,o,n+1/3)),En(255*Gn(a,o,n)),En(255*Gn(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function qn(t,e){var n=Xn(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return ni(n,4===n.length?"rgba":"rgb")}}function Kn(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=En(Fn(a[0],s[0],l)),n[1]=En(Fn(a[1],s[1],l)),n[2]=En(Fn(a[2],s[2],l)),n[3]=zn(Fn(a[3],s[3],l)),n}}var $n=Kn;function Jn(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=Xn(e[r]),s=Xn(e[o]),l=i-r,u=ni([En(Fn(a[0],s[0],l)),En(Fn(a[1],s[1],l)),En(Fn(a[2],s[2],l)),zn(Fn(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}var Qn=Jn;function ti(t,e,n,i){var r=Xn(t);if(t)return r=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?e=d-c:r===s?e=1/3+h-d:o===s&&(e=2/3+c-h),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}(r),null!=e&&(r[0]=function(t){return(t=Math.round(t))<0?0:t>360?360:t}(e)),null!=n&&(r[1]=Bn(n)),null!=i&&(r[2]=Bn(i)),ni(jn(r),"rgba")}function ei(t,e){var n=Xn(t);if(n&&null!=e)return n[3]=zn(e),ni(n,"rgba")}function ni(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 ii(t,e){var n=Xn(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var ri=new Rn(100);function oi(t){if(U(t)){var e=ri.get(t);return e||(e=qn(t,-.1),ri.put(t,e)),e}if($(t)){var n=C({},t);return n.colorStops=N(t.colorStops,(function(t){return{offset:t.offset,color:qn(t.color,-.1)}})),n}return t}const ai=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:Kn,fastMapToColor:$n,lerp:Jn,lift:qn,liftColor:oi,lum:ii,mapToColor:Qn,modifyAlpha:ei,modifyHSL:ti,parse:Xn,random:function(){return ni([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:ni,toHex:function(t){var e=Xn(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}},Symbol.toStringTag,{value:"Module"}));var si=Math.round;function li(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=Xn(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var ui=1e-4;function hi(t){return t<ui&&t>-1e-4}function ci(t){return si(1e3*t)/1e3}function di(t){return si(1e4*t)/1e4}var pi={left:"start",right:"end",center:"middle",middle:"middle"};function fi(t){return t&&!!t.image}function gi(t){return fi(t)||function(t){return t&&!!t.svgElement}(t)}function vi(t){return"linear"===t.type}function mi(t){return"radial"===t.type}function yi(t){return t&&("linear"===t.type||"radial"===t.type)}function xi(t){return"url(#"+t+")"}function _i(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 bi(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*_t,r=nt(t.scaleX,1),o=nt(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),i&&l.push("rotate("+i+")"),1===r&&1===o||l.push("scale("+r+","+o+")"),(a||s)&&l.push("skew("+si(a*_t)+"deg, "+si(s*_t)+"deg)"),l.join(" ")}var wi=r.hasGlobalWindow&&W(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return null},Si=Array.prototype.slice;function Mi(t,e,n){return(e-t)*n+t}function Ii(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=Mi(e[o],n[o],i);return t}function Ti(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+n[o]*i;return t}function Ci(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function Ai(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,i);s++)r.push({offset:a.offset,color:a.color.slice()})}function Di(t,e,n){var i=t,r=e;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a)if(o>a)i.length=a;else for(var s=o;s<a;s++)i.push(1===n?r[s]:Si.call(r[s]));var l=i[0]&&i[0].length;for(s=0;s<i.length;s++)if(1===n)isNaN(i[s])&&(i[s]=r[s]);else for(var u=0;u<l;u++)isNaN(i[s][u])&&(i[s][u]=r[s][u])}}function Li(t){if(O(t)){var e=t.length;if(O(t[0])){for(var n=[],i=0;i<e;i++)n.push(Si.call(t[i]));return n}return Si.call(t)}return t}function ki(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 Pi(t){return 4===t||5===t}function Oi(t){return 1===t||2===t}var Ri=[0,0,0,0],Ni=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 i=this.keyframes,r=i.length,o=!1,a=6,s=e;if(O(e)){var l=function(t){return O(t&&t[0])?2:1}(e);a=l,(1===l&&!Z(e[0])||2===l&&!Z(e[0][0]))&&(o=!0)}else if(Z(e)&&!tt(e))a=0;else if(U(e))if(isNaN(+e)){var u=Xn(e);u&&(s=u,a=3)}else a=0;else if($(e)){var h=C({},s);h.colorStops=N(e.colorStops,(function(t){return{offset:t.offset,color:Xn(t.color)}})),vi(e)?a=4:mi(e)&&(a=5),s=h}0===r?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var c={time:t,value:s,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=W(n)?n:rn[n]||Ln(n)),i.push(c),c},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=Oi(i),l=Pi(i),u=0;u<r;u++){var h=n[u],c=h.value,d=o.value;h.percent=h.time/t,a||(s&&u!==r-1?Di(c,d,i):l&&Ai(c.colorStops,d.colorStops))}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;var p=n[0].value;for(u=0;u<r;u++)0===i?n[u].additiveValue=n[u].value-p:3===i?n[u].additiveValue=Ti([],n[u].value,p,-1):Oi(i)&&(n[u].additiveValue=1===i?Ti([],n[u].value,p,-1):Ci([],n[u].value,p,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,h=this.propName,c=3===s,d=this._lastFr,p=Math.min;if(1===u)i=r=l[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=p(d+1,u-1);n>=0&&!(l[n].percent<=e);n--);n=p(n,u-2)}else{for(n=d;n<u&&!(l[n].percent>e);n++);n=p(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var f=r.percent-i.percent,g=0===f?1:p((e-i.percent)/f,1);r.easingFunc&&(g=r.easingFunc(g));var v=o?this._additiveValue:c?Ri:t[h];if(!Oi(s)&&!c||v||(v=this._additiveValue=[]),this.discrete)t[h]=g<1?i.rawValue:r.rawValue;else if(Oi(s))1===s?Ii(v,i[a],r[a],g):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=Mi(e[a][s],n[a][s],i)}}(v,i[a],r[a],g);else if(Pi(s)){var m=i[a],y=r[a],x=4===s;t[h]={type:x?"linear":"radial",x:Mi(m.x,y.x,g),y:Mi(m.y,y.y,g),colorStops:N(m.colorStops,(function(t,e){var n=y.colorStops[e];return{offset:Mi(t.offset,n.offset,g),color:ki(Ii([],t.color,n.color,g))}})),global:y.global},x?(t[h].x2=Mi(m.x2,y.x2,g),t[h].y2=Mi(m.y2,y.y2,g)):t[h].r=Mi(m.r,y.r,g)}else if(c)Ii(v,i[a],r[a],g),o||(t[h]=ki(v));else{var _=Mi(i[a],r[a],g);o?this._additiveValue=_:t[h]=_}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(Xn(t[n],Ri),Ti(Ri,Ri,i,1),t[n]=ki(Ri)):1===e?Ti(t[n],t[n],i,1):2===e&&Ci(t[n],t[n],i,1)},t}(),Ei=function(){function t(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?S("Can' use additive animation on looped animation."):(this._additiveAnimators=i,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,B(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o],s=r[a];if(!s){s=r[a]=new Ni(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var h=u.keyframes,c=h[h.length-1];l=c&&c.value,3===u.valType&&l&&(l=ki(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,Li(l),i),this._trackKeys.push(a)}s.addKeyframe(t,Li(e[a]),i)}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;n<e;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 i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(i,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 kn({life:i,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var i=e._additiveAnimators;if(i){for(var r=!1,o=0;o<i.length;o++)if(i[o]._clip){r=!0;break}r||(e._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(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 N(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,i=this._trackKeys,r=0;r<t.length;r++){var o=n[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[r]=Li(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||B(t);for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}();function zi(){return(new Date).getTime()}var Vi,Bi,Gi=function(t){function e(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 n(e,t),e.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},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.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}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=zi()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,en((function e(){t._running&&(en(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=zi(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=zi(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=zi()-this._pauseStart,this._paused=!1)},e.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},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new Ei(t,e.loop);return this.addAnimator(n),n},e}(Zt),Fi=r.domSupported,Hi=(Bi={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Vi=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:N(Vi,(function(t){var e=t.replace("mouse","pointer");return Bi.hasOwnProperty(e)?e:t}))}),Wi=["mousemove","mouseup"],Ui=["pointermove","pointerup"],Yi=!1;function Zi(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Xi(t){t&&(t.zrByTouch=!0)}function ji(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var qi=function(){return function(t,e){this.stopPropagation=xt,this.stopImmediatePropagation=xt,this.preventDefault=xt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}}(),Ki={mousedown:function(t){t=ue(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=ue(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=ue(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){ji(this,(t=ue(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Yi=!0,t=ue(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Yi||(t=ue(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Xi(t=ue(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Ki.mousemove.call(this,t),Ki.mousedown.call(this,t)},touchmove:function(t){Xi(t=ue(this.dom,t)),this.handler.processGesture(t,"change"),Ki.mousemove.call(this,t)},touchend:function(t){Xi(t=ue(this.dom,t)),this.handler.processGesture(t,"end"),Ki.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Ki.click.call(this,t)},pointerdown:function(t){Ki.mousedown.call(this,t)},pointermove:function(t){Zi(t)||Ki.mousemove.call(this,t)},pointerup:function(t){Ki.mouseup.call(this,t)},pointerout:function(t){Zi(t)||Ki.mouseout.call(this,t)}};R(["click","dblclick","contextmenu"],(function(t){Ki[t]=function(e){e=ue(this.dom,e),this.trigger(t,e)}}));var $i={pointermove:function(t){Zi(t)||$i.mousemove.call(this,t)},pointerup:function(t){$i.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))}};function Ji(t,e){var n=e.domHandlers;r.pointerEventsSupported?R(Hi.pointer,(function(i){tr(e,i,(function(e){n[i].call(t,e)}))})):(r.touchEventsSupported&&R(Hi.touch,(function(i){tr(e,i,(function(r){n[i].call(t,r),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),R(Hi.mouse,(function(i){tr(e,i,(function(r){r=le(r),e.touching||n[i].call(t,r)}))})))}function Qi(t,e){function n(n){tr(e,n,(function(i){i=le(i),ji(t,i.target)||(i=function(t,e){return ue(t.dom,new qi(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))}),{capture:!0})}r.pointerEventsSupported?R(Ui,n):r.touchEventsSupported||R(Wi,n)}function tr(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,he(t.domTarget,e,n,i)}function er(t){var e,n,i,r,o=t.mounted;for(var a in o)o.hasOwnProperty(a)&&(e=t.domTarget,n=a,i=o[a],r=t.listenerOpts[a],e.removeEventListener(n,i,r));t.mounted={}}var nr=function(){return function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}}(),ir=function(t){function e(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new nr(e,Ki),Fi&&(i._globalHandlerScope=new nr(document,$i)),Ji(i,i._localHandlerScope),i}return n(e,t),e.prototype.dispose=function(){er(this._localHandlerScope),Fi&&er(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Fi&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?Qi(this,e):er(e)}},e}(Zt),rr=1;r.hasGlobalWindow&&(rr=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var or=rr,ar="#333",sr="#ccc",lr=me,ur=5e-5;function hr(t){return t>ur||t<-5e-5}var cr=[],dr=[],pr=[1,0,0,1,0,0],fr=Math.abs,gr=function(){function t(){}var e;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 hr(this.rotation)||hr(this.x)||hr(this.y)||hr(this.scaleX-1)||hr(this.scaleY-1)||hr(this.skewX)||hr(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||[1,0,0,1,0,0],e?this.getLocalTransform(n):lr(n),t&&(e?xe(n,t,n):ye(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(lr(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(cr);var n=cr[0]<0?-1:1,i=cr[1]<0?-1:1,r=((cr[0]-n)*e+n)/cr[0]||0,o=((cr[1]-i)*e+i)/cr[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],Se(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],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,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&&(t.invTransform=t.invTransform||[1,0,0,1,0,0],xe(dr,t.invTransform,e),e=dr);var n=this.originX,i=this.originY;(n||i)&&(pr[4]=n,pr[5]=i,xe(dr,e,pr),dr[4]-=n,dr[5]-=i,e=dr),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],i=this.invTransform;return i&&Gt(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&Gt(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&fr(t[0]-1)>1e-10&&fr(t[3]-1)>1e-10?Math.sqrt(fr(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){mr(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=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,d=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var p=n+a,f=i+s;e[4]=-p*r-c*f*o,e[5]=-f*o-d*p*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=d*r,e[2]=c*o,l&&be(e,e,l),e[4]+=n+u,e[5]+=i+h,e},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t}(),vr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function mr(t,e){for(var n=0;n<vr.length;n++){var i=vr[n];t[i]=e[i]}}var yr={};function xr(t,e){var n=yr[e=e||a];n||(n=yr[e]=new Rn(500));var i=n.get(t);return null==i&&(i=l.measureText(t,e).width,n.put(t,i)),i}function _r(t,e,n,i){var r=xr(t,e),o=Mr(e),a=wr(0,r,n),s=Sr(0,o,i);return new Ne(a,s,r,o)}function br(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return _r(r[0],e,n,i);for(var o=new Ne(0,0,0,0),a=0;a<r.length;a++){var s=_r(r[a],e,n,i);0===a?o.copy(s):o.union(s)}return o}function wr(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Sr(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function Mr(t){return xr("国",t)}function Ir(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Tr(t,e,n){var i=e.position||"inside",r=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(i instanceof Array)l+=Ir(i[0],n.width),u+=Ir(i[1],n.height),h=null,c=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}var Cr="__zr_normal__",Ar=vr.concat(["ignore"]),Dr=E(vr,(function(t,e){return t[e]=!0,t}),{ignore:!1}),Lr={},kr=new Ne(0,0,0,0),Pr=function(){function t(t){this.id=w(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[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,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(e),null!=n.position){var u=kr;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Lr,n,u):Tr(Lr,n,u),r.x=Lr.x,r.y=Lr.y,o=Lr.align,a=Lr.verticalAlign;var h=n.origin;if(h&&null!=n.rotation){var c=void 0,d=void 0;"center"===h?(c=.5*u.width,d=.5*u.height):(c=Ir(h[0],u.width),d=Ir(h[1],u.height)),l=!0,r.originX=-r.x+c+(i?0:u.x),r.originY=-r.y+d+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var p=n.offset;p&&(r.x+=p[0],r.y+=p[1],l||(r.originX=-p[0],r.originY=-p[1]));var f=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,m=void 0,y=void 0;f&&this.canBeInsideText()?(v=n.insideFill,m=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=m&&"auto"!==m||(m=this.getInsideTextStroke(v),y=!0)):(v=n.outsideFill,m=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=m&&"auto"!==m||(m=this.getOutsideStroke(v),y=!0)),(v=v||"#000")===g.fill&&m===g.stroke&&y===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=v,g.stroke=m,g.autoStroke=y,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=1,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?sr:ar},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&Xn(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,ni(n,"rgba")},t.prototype.traverse=function(t,e){},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||{},C(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(X(t))for(var n=B(t),i=0;i<n.length;i++){var r=n[i];this.attrKV(r,t[r])}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 i=this.animators[n],r=i.__fromStateTransition;if(!(i.getLoop()||r&&r!==Cr)){var o=i.targetName,a=o?e[o]:e;i.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,Ar)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},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(Cr,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===Cr;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!(L(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,h=this._textGuide;return u&&u.useState(t,e,n,l),h&&h.useState(t,e,n,l),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}S("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s<o;s++)if(t[s]!==r[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&i.push(u)}var h=i[o-1],c=!!(h&&h.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(i),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!e&&!this.__inHover&&p&&p.duration>0,p);var f=this._textContent,g=this._textGuide;f&&f.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&=-2)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},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=L(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 i=this.currentStates.slice(),r=L(i,t),o=L(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];C(n,r),r.textConfig&&C(e=e||{},r.textConfig)}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,i,r,o){var a=!(e&&i);e&&e.textConfig?(this.textConfig=C({},i?this.textConfig:n.textConfig),C(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<Ar.length;u++){var h=Ar[u],c=r&&Dr[h];e&&null!=e[h]?c?(l=!0,s[h]=e[h]):this[h]=e[h]:a&&null!=n[h]&&(c?(l=!0,s[h]=n[h]):this[h]=n[h])}if(!r)for(u=0;u<this.animators.length;u++){var d=this.animators[u],p=d.targetName;d.getLoop()||d.__changeFinalValue(p?(e||n)[p]: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 gr,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),C(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|=1;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 i=t?this[t]:this,r=new Ei(i,e,n);return t&&(r.targetName=t),this.addAnimator(r,t),r},t.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during((function(){i.updateDuringAnimation(e)})).done((function(){var e=i.animators,n=L(e,t);n>=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,n){Or(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){Or(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,i){for(var r=Or(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;function n(t,n,i,r){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[r]},set:function(e){t[r]=e}})}Object.defineProperty(e,t,{get:function(){this[n]||o(this,this[n]=[]);return this[n]},set:function(t){this[i]=t[0],this[r]=t[1],this[n]=t,o(this,t)}})}e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=1,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function Or(t,e,n,i,r){var o=[];Er(t,"",t,e,n=n||{},i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,h=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},c=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var d=0;d<o.length;d++){var p=o[d];h&&p.done(h),c&&p.aborted(c),n.force&&p.duration(n.duration),p.start(n.easing)}return o}function Rr(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function Nr(t,e,n){if(O(e[n]))if(O(t[n])||(t[n]=[]),q(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),Rr(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(O(r[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?Rr(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else Rr(o,r,a);o.length=r.length}else t[n]=e[n]}function Er(t,e,n,i,r,o,a,s){for(var l=B(i),u=r.duration,h=r.delay,c=r.additive,d=r.setToFinal,p=!X(o),f=t.animators,g=[],v=0;v<l.length;v++){var m=l[v],y=i[m];if(null!=y&&null!=n[m]&&(p||o[m]))if(!X(y)||O(y)||$(y))g.push(m);else{if(e){s||(n[m]=y,t.updateDuringAnimation(e));continue}Er(t,m,n[m],y,r,o&&o[m],a,s)}else s||(n[m]=y,t.updateDuringAnimation(e),g.push(m))}var x=g.length;if(!c&&x)for(var _=0;_<f.length;_++){if((w=f[_]).targetName===e)if(w.stopTracks(g)){var b=L(f,w);f.splice(b,1)}}if(r.force||(g=z(g,(function(t){return e=i[t],r=n[t],!(e===r||O(e)&&O(r)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}(e,r));var e,r})),x=g.length),x>0||r.force&&!a.length){var w,S=void 0,M=void 0,I=void 0;if(s){M={},d&&(S={});for(_=0;_<x;_++){M[m=g[_]]=n[m],d?S[m]=i[m]:n[m]=i[m]}}else if(d){I={};for(_=0;_<x;_++){I[m=g[_]]=Li(n[m]),Nr(n,i,m)}}(w=new Ei(n,!1,!1,c?z(f,(function(t){return t.targetName===e})):null)).targetName=e,r.scope&&(w.scope=r.scope),d&&S&&w.whenWithKeys(0,S,g),I&&w.whenWithKeys(0,I,g),w.whenWithKeys(null==u?500:u,s?M:i,g).delay(h||0),t.addAnimator(w,e),a.push(w)}}P(Pr,Zt),P(Pr,gr);var zr=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return n(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=L(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.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()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=L(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=t.call(e,i);i.isGroup&&!r&&i.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].removeSelfFromZr(e)}},e.prototype.getBoundingRect=function(t){for(var e=new Ne(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(i);l?(Ne.applyTransform(e,s,l),(r=r||e.clone()).union(e)):(r=r||s.clone()).union(s)}}return r||e},e}(Pr);zr.prototype.type="group";
/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/
var Vr={},Br={};var Gr,Fr=function(){function t(t,e,n){var i=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 o=new nn,a=n.renderer||"canvas";Vr[a]||(a=B(Vr)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var s=new Vr[a](e,o,n,t),l=n.ssr||s.ssrOnly;this.storage=o,this.painter=s;var u,h=r.node||r.worker||l?null:new ir(s.getViewportRoot(),s.root),c=n.useCoarsePointer;(null==c||"auto"===c?r.touchEventsSupported:!!c)&&(u=nt(n.pointerSize,44)),this.handler=new He(o,s,h,s.root,u),this.animation=new Gi({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return ii(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=ii(e[r].color,1);return(n/=i)<.4}return!1}(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){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(t){var e,n=zi();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=zi();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-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._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof zr&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){var t;this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,t=this.id,delete Br[t])},t}();function Hr(t,e){var n=new Fr(w(),t,e);return Br[n.id]=n,n}function Wr(t,e){Vr[t]=e}function Ur(t){if("function"==typeof Gr)return Gr(t)}function Yr(t){Gr=t}const Zr=Object.freeze(Object.defineProperty({__proto__:null,dispose:function(t){t.dispose()},disposeAll:function(){for(var t in Br)Br.hasOwnProperty(t)&&Br[t].dispose();Br={}},getElementSSRData:Ur,getInstance:function(t){return Br[t]},init:Hr,registerPainter:Wr,registerSSRDataGetter:Yr,version:"5.6.1"},Symbol.toStringTag,{value:"Module"}));var Xr=1e-4;function jr(t,e,n,i){var r=e[0],o=e[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i)if(l>0){if(t<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function qr(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 U(t)?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function Kr(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function $r(t){return t.sort((function(t,e){return t-e})),t}function Jr(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return Qr(t)}function Qr(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function to(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function eo(t,e){var n=E(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];for(var i=Math.pow(10,e),r=N(t,(function(t){return(isNaN(t)?0:t)/n*i*100})),o=100*i,a=N(r,(function(t){return Math.floor(t)})),s=E(a,(function(t,e){return t+e}),0),l=N(r,(function(t,e){return t-a[e]}));s<o;){for(var u=Number.NEGATIVE_INFINITY,h=null,c=0,d=l.length;c<d;++c)l[c]>u&&(u=l[c],h=c);++a[h],l[h]=0,++s}return N(a,(function(t){return t/i}))}function no(t,e){var n=Math.max(Jr(t),Jr(e)),i=t+e;return n>20?i:Kr(i,n)}var io=9007199254740991;function ro(t){var e=2*Math.PI;return(t%e+e)%e}function oo(t){return t>-1e-4&&t<Xr}var ao=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function so(t){if(t instanceof Date)return t;if(U(t)){var e=ao.exec(t);if(!e)return new Date(NaN);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 null==t?new Date(NaN):new Date(Math.round(t))}function lo(t){return Math.pow(10,uo(t))}function uo(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 ho(t,e){var n=uo(t),i=Math.pow(10,n),r=t/i;return t=(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,n>=-20?+t.toFixed(n<0?-n:0):t}function co(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function po(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,i=0;i<t.length;){for(var r=t[i].interval,o=t[i].close,a=0;a<2;a++)r[a]<=e&&(r[a]=e,o[a]=a?1:1-n),e=r[a],n=o[a];r[0]===r[1]&&o[0]*o[1]!=1?t.splice(i,1):i++}return t;function s(t,e,n){return t.interval[n]<e.interval[n]||t.interval[n]===e.interval[n]&&(t.close[n]-e.close[n]==(n?-1:1)||!n&&s(t,e,1))}}function fo(t){var e=parseFloat(t);return e==t&&(0!==e||!U(t)||t.indexOf("x")<=0)?e:NaN}function go(t){return!isNaN(fo(t))}function vo(){return Math.round(9*Math.random())}function mo(t,e){return 0===e?t:mo(e,t%e)}function yo(t,e){return null==t?e:null==e?t:t*e/mo(t,e)}"undefined"!=typeof console&&console.warn&&console.log;function xo(t){throw new Error(t)}function _o(t,e,n){return(e-t)*n+t}var bo="series\0",wo="\0_ec_\0";function So(t){return t instanceof Array?t:null==t?[]:[t]}function Mo(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var Io=["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"];function To(t){return!X(t)||H(t)||t instanceof Date?t:t.value}function Co(t){return X(t)&&!(t instanceof Array)}function Ao(t,e,n){var i="normalMerge"===n,r="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=ft();R(e,(function(t,n){X(t)||(e[n]=null)}));var s,l,u=function(t,e,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),i.push({existing:"replaceMerge"===n||Oo(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}(t,a,n);return(i||r)&&function(t,e,n,i){R(i,(function(r,o){if(r&&null!=r.id){var a=Lo(r.id),s=n.get(a);if(null!=s){var l=t[s];at(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=e[s],i[o]=null}}}))}(u,t,a,e),i&&function(t,e){R(e,(function(n,i){if(n&&null!=n.name)for(var r=0;r<t.length;r++){var o=t[r].existing;if(!t[r].newOption&&o&&(null==o.id||null==n.id)&&!Oo(n)&&!Oo(o)&&Do("name",o,n))return t[r].newOption=n,void(e[i]=null)}}))}(u,e),i||r?function(t,e,n){R(e,(function(e){if(e){for(var i,r=0;(i=t[r])&&(i.newOption||Oo(i.existing)||i.existing&&null!=e.id&&!Do("id",e,i.existing));)r++;i?(i.newOption=e,i.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),r++}}))}(u,e,r):o&&function(t,e){R(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}(u,e),s=u,l=ft(),R(s,(function(t){var e=t.existing;e&&l.set(e.id,t)})),R(s,(function(t){var e=t.newOption;at(!e||null==e.id||!l.get(e.id)||l.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&l.set(e.id,t),!t.keyInfo&&(t.keyInfo={})})),R(s,(function(t,e){var n=t.existing,i=t.newOption,r=t.keyInfo;if(X(i)){if(r.name=null!=i.name?Lo(i.name):n?n.name:bo+e,n)r.id=Lo(n.id);else if(null!=i.id)r.id=Lo(i.id);else{var o=0;do{r.id="\0"+r.name+"\0"+o++}while(l.get(r.id))}l.set(r.id,t)}})),u}function Do(t,e,n){var i=ko(e[t],null),r=ko(n[t],null);return null!=i&&null!=r&&i===r}function Lo(t){return ko(t,"")}function ko(t,e){return null==t?e:U(t)?t:Z(t)||Y(t)?t+"":e}function Po(t){var e=t.name;return!(!e||!e.indexOf(bo))}function Oo(t){return t&&null!=t.id&&0===Lo(t.id).indexOf(wo)}function Ro(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?H(e.dataIndex)?N(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?H(e.name)?N(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function No(){var t="__ec_inner_"+Eo++;return function(e){return e[t]||(e[t]={})}}var Eo=vo();function zo(t,e,n){var i=Vo(e,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=n?n.defaultMainType:null;return!r&&s&&o.set(s,{}),o.each((function(e,i){var r=Fo(t,i,e,{useDefault:s===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[i+"Models"]=r.models,a[i+"Model"]=r.models[0]})),a}function Vo(t,e){var n;if(U(t)){var i={};i[t+"Index"]=0,n=i}else n=t;var r=ft(),o={},a=!1;return R(n,(function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&L(e.includeMainTypes,s)<0))a=a||!!s,(r.get(s)||r.set(s,{}))[l]=t}else o[n]=t})),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var Bo={useDefault:!0,enableAll:!1,enableNone:!1},Go={useDefault:!1,enableAll:!0,enableNone:!0};function Fo(t,e,n,i){i=i||Bo;var r=n.index,o=n.id,a=n.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===r||!1===r?(at(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===r&&(at(i.enableAll,'`"all"` is not a valid value on index option.'),r=o=a=null),s.models=t.queryComponents({mainType:e,index:r,id:o,name:a}),s)}function Ho(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function Wo(t,e){var n=ft(),i=[];return R(t,(function(t){var r=e(t);(n.get(r)||(i.push(r),n.set(r,[]))).push(t)})),{keys:i,buckets:n}}function Uo(t,e,n,i,r){var o=null==e||"auto"===e;if(null==i)return i;if(Z(i))return Kr(f=_o(n||0,i,r),o?Math.max(Jr(n||0),Jr(i)):e);if(U(i))return r<1?n:i;for(var a=[],s=n,l=i,u=Math.max(s?s.length:0,l.length),h=0;h<u;++h){var c=t.getDimensionInfo(h);if(c&&"ordinal"===c.type)a[h]=(r<1&&s?s:l)[h];else{var d=s&&s[h]?s[h]:0,p=l[h],f=_o(d,p,r);a[h]=Kr(f,o?Math.max(Jr(d),Jr(p)):e)}}return a}var Yo="___EC__COMPONENT__CONTAINER___",Zo="___EC__EXTENDED_CLASS___";function Xo(t){var e={main:"",sub:""};if(t){var n=t.split(".");e.main=n[0]||"",e.sub=n[1]||""}return e}function jo(t,e){t.$constructor=t,t.extend=function(t){var e,i,r=this;return W(i=r)&&/^class\s/.test(Function.prototype.toString.call(i))?e=function(t){function e(){return t.apply(this,arguments)||this}return n(e,t),e}(r):(e=function(){(t.$constructor||r).apply(this,arguments)},k(e,this)),C(e.prototype,t),e[Zo]=!0,e.extend=this.extend,e.superCall=$o,e.superApply=Jo,e.superClass=r,e}}function qo(t,e){t.extend=e.extend}var Ko=Math.round(10*Math.random());function $o(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function Jo(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Qo(t){var e={};t.registerClass=function(t){var n,i=t.type||t.prototype.type;if(i){at(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=i),'componentType "'+n+'" illegal'),t.prototype.type=i;var r=Xo(i);if(r.sub){if(r.sub!==Yo){var o=function(t){var n=e[t.main];n&&n[Yo]||((n=e[t.main]={})[Yo]=!0);return n}(r);o[r.sub]=t}}else e[r.main]=t}return t},t.getClass=function(t,n,i){var r=e[t];if(r&&r[Yo]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var n=Xo(t),i=[],r=e[n.main];return r&&r[Yo]?R(r,(function(t,e){e!==Yo&&i.push(t)})):i.push(r),i},t.hasClass=function(t){var n=Xo(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return R(e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){var n=Xo(t),i=e[n.main];return i&&i[Yo]}}function ta(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,i,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(i&&L(i,s)>=0||r&&L(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var ea=ta([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),na=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return ea(this,t,e)},t}(),ia=new Rn(50);function ra(t){if("string"==typeof t){var e=ia.get(t);return e&&e.image}return t}function oa(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=ia.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?!sa(e=o.image)&&o.pending.push(a):((e=l.loadImage(t,aa,aa)).__zrImageSrc=t,ia.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function aa(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function sa(t){return t&&t.width&&t.height}var la=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function ua(t,e,n,i,r,o){if(!n)return t.text="",void(t.isTruncated=!1);var a=(e+"").split("\n");o=ha(n,i,r,o);for(var s=!1,l={},u=0,h=a.length;u<h;u++)ca(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;t.text=a.join("\n"),t.isTruncated=s}function ha(t,e,n,i){var r=C({},i=i||{});r.font=e,n=nt(n,"..."),r.maxIterations=nt(i.maxIterations,2);var o=r.minChar=nt(i.minChar,0);r.cnCharWidth=xr("国",e);var a=r.ascCharWidth=xr("a",e);r.placeholder=nt(i.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<o&&s>=a;l++)s-=a;var u=xr(n,e);return u>s&&(n="",u=0),s=t-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=t,r}function ca(t,e,n){var i=n.containerWidth,r=n.font,o=n.contentWidth;if(!i)return t.textLine="",void(t.isTruncated=!1);var a=xr(e,r);if(a<=i)return t.textLine=e,void(t.isTruncated=!1);for(var s=0;;s++){if(a<=o||s>=n.maxIterations){e+=n.ellipsis;break}var l=0===s?da(e,o,n.ascCharWidth,n.cnCharWidth):a>0?Math.floor(e.length*o/a):0;a=xr(e=e.substr(0,l),r)}""===e&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}function da(t,e,n,i){for(var r=0,o=0,a=t.length;o<a&&r<e;o++){var s=t.charCodeAt(o);r+=0<=s&&s<=127?n:i}return o}var pa=function(){return function(){}}(),fa=function(){return function(t){this.tokens=[],t&&(this.tokens=t)}}(),ga=function(){return function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}}();function va(t,e,n,i,r){var o,a,s=""===e,l=r&&n.rich[r]||{},u=t.lines,h=l.font||n.font,c=!1;if(i){var d=l.padding,p=d?d[1]+d[3]:0;if(null!=l.width&&"auto"!==l.width){var f=Ir(l.width,i.width)+p;u.length>0&&f+i.accumWidth>i.width&&(o=e.split("\n"),c=!0),i.accumWidth=f}else{var g=xa(e,h,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v<o.length;v++){var m=o[v],y=new pa;if(y.styleName=r,y.text=m,y.isLineHolder=!m&&!s,"number"==typeof l.width?y.width=l.width:y.width=a?a[v]:xr(m,h),v||c)u.push(new fa([y]));else{var x=(u[u.length-1]||(u[0]=new fa)).tokens,_=x.length;1===_&&x[0].isLineHolder?x[0]=y:(m||!_||s)&&x.push(y)}}}var ma=E(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function ya(t){return!function(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!ma[t]}function xa(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,h=0,c=0;c<t.length;c++){var d=t.charAt(c);if("\n"!==d){var p=xr(d,e),f=!i&&!ya(d);(o.length?h+p>n:r+h+p>n)?h?(s||l)&&(f?(s||(s=l,l="",h=u=0),o.push(s),a.push(h-u),l+=d,s="",h=u+=p):(l&&(s+=l,l="",u=0),o.push(s),a.push(h),s=d,h=p)):f?(o.push(l),a.push(u),l=d,u=p):(o.push(d),a.push(p)):(h+=p,f?(l+=d,u+=p):(l&&(s+=l,l="",u=0),s+=d))}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+=r),{accumWidth:h,lines:o,linesWidths:a}}var _a="__zr_style_"+Math.round(10*Math.random()),ba={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},wa={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ba[_a]=!0;var Sa=["z","z2","invisible"],Ma=["invisible"],Ia=function(t){function e(e){return t.call(this,e)||this}var i;return n(e,t),e.prototype._init=function(e){for(var n=B(e),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,n,i){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,n){Ta.copy(t.getBoundingRect()),t.transform&&Ta.applyTransform(t.transform);return Ca.width=e,Ca.height=n,!Ta.intersect(Ca)}(this,t,e)||r&&!r[0]&&!r[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(i&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),i=this.style,r=i.shadowBlur||0,o=i.shadowOffsetX||0,a=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new Ne(0,0,0,0)),e?Ne.applyTransform(t,n,e):t.copy(n),(r||o||a)&&(t.width+=2*r+Math.abs(o),t.height+=2*r+Math.abs(a),t.x=Math.min(t.x,t.x+o-r),t.y=Math.min(t.y,t.y+a-r));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},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new Ne(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:C(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(2&this.__dirty)},e.prototype.styleUpdated=function(){this.__dirty&=-3},e.prototype.createStyle=function(t){return vt(ba,t)},e.prototype.useStyle=function(t){t[_a]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[_a]},e.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,Sa)},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.style?o?r?s=n.style:(s=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(s,n.style)):l&&(s=i.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var h=B(u),c=0;c<h.length;c++){(p=h[c])in s&&(s[p]=s[p],this.style[p]=u[p])}var d=B(s);for(c=0;c<d.length;c++){var p=d[c];this.style[p]=this.style[p]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var f=this.__inHover?Ma:Sa;for(c=0;c<f.length;c++){p=f[c];n&&null!=n[p]?this[p]=n[p]:l&&null!=i[p]&&(this[p]=i[p])}},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(t,e){return C(t,e),t},e.prototype.getAnimationStyleProps=function(){return wa},e.initDefaultProps=((i=e.prototype).type="displayable",i.invisible=!1,i.z=0,i.z2=0,i.zlevel=0,i.culling=!1,i.cursor="pointer",i.rectHover=!1,i.incremental=!1,i._rect=null,i.dirtyRectTolerance=0,void(i.__dirty=3)),e}(Pr),Ta=new Ne(0,0,0,0),Ca=new Ne(0,0,0,0);var Aa=Math.min,Da=Math.max,La=Math.sin,ka=Math.cos,Pa=2*Math.PI,Oa=wt(),Ra=wt(),Na=wt();function Ea(t,e,n){if(0!==t.length){for(var i=t[0],r=i[0],o=i[0],a=i[1],s=i[1],l=1;l<t.length;l++)i=t[l],r=Aa(r,i[0]),o=Da(o,i[0]),a=Aa(a,i[1]),s=Da(s,i[1]);e[0]=r,e[1]=a,n[0]=o,n[1]=s}}function za(t,e,n,i,r,o){r[0]=Aa(t,n),r[1]=Aa(e,i),o[0]=Da(t,n),o[1]=Da(e,i)}var Va=[],Ba=[];function Ga(t,e,n,i,r,o,a,s,l,u){var h=xn,c=vn,d=h(t,n,r,a,Va);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<d;p++){var f=c(t,n,r,a,Va[p]);l[0]=Aa(f,l[0]),u[0]=Da(f,u[0])}d=h(e,i,o,s,Ba);for(p=0;p<d;p++){var g=c(e,i,o,s,Ba[p]);l[1]=Aa(g,l[1]),u[1]=Da(g,u[1])}l[0]=Aa(t,l[0]),u[0]=Da(t,u[0]),l[0]=Aa(a,l[0]),u[0]=Da(a,u[0]),l[1]=Aa(e,l[1]),u[1]=Da(e,u[1]),l[1]=Aa(s,l[1]),u[1]=Da(s,u[1])}function Fa(t,e,n,i,r,o,a,s){var l=In,u=Sn,h=Da(Aa(l(t,n,r),1),0),c=Da(Aa(l(e,i,o),1),0),d=u(t,n,r,h),p=u(e,i,o,c);a[0]=Aa(t,r,d),a[1]=Aa(e,o,p),s[0]=Da(t,r,d),s[1]=Da(e,o,p)}function Ha(t,e,n,i,r,o,a,s,l){var u=Ft,h=Ht,c=Math.abs(r-o);if(c%Pa<1e-4&&c>1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(Oa[0]=ka(r)*n+t,Oa[1]=La(r)*i+e,Ra[0]=ka(o)*n+t,Ra[1]=La(o)*i+e,u(s,Oa,Ra),h(l,Oa,Ra),(r%=Pa)<0&&(r+=Pa),(o%=Pa)<0&&(o+=Pa),r>o&&!a?o+=Pa:r<o&&a&&(r+=Pa),a){var d=o;o=r,r=d}for(var p=0;p<o;p+=Math.PI/2)p>r&&(Na[0]=ka(p)*n+t,Na[1]=La(p)*i+e,u(s,Na,s),h(l,Na,l))}var Wa={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ua=[],Ya=[],Za=[],Xa=[],ja=[],qa=[],Ka=Math.min,$a=Math.max,Ja=Math.cos,Qa=Math.sin,ts=Math.abs,es=Math.PI,ns=2*es,is="undefined"!=typeof Float32Array,rs=[];function os(t){return Math.round(t/es*1e8)/1e8%2*es}function as(t,e){var n=os(t[0]);n<0&&(n+=ns);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=ns?r=n+ns:e&&n-r>=ns?r=n-ns:!e&&n>r?r=n+(ns-os(n-r)):e&&n<r&&(r=n-(ns-os(r-n))),t[0]=n,t[1]=r}var ss=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=[])}var e;return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){(n=n||0)>0&&(this._ux=ts(n/or/t)||0,this._uy=ts(n/or/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(Wa.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=ts(t-this._xi),i=ts(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(Wa.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(Wa.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Wa.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),rs[0]=i,rs[1]=r,as(rs,o),i=rs[0];var a=(r=rs[1])-i;return this.addData(Wa.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=Ja(r)*n+t,this._yi=Qa(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Wa.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Wa.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||!is||(this.data=new Float32Array(e));for(var n=0;n<e;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,i=this._len,r=0;r<e;r++)n+=t[r].len();is&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(r=0;r<e;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},t.prototype.addData=function(t,e,n,i,r,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var h=0;h<arguments.length;h++)u[this._len++]=arguments[h]}},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,is&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){Za[0]=Za[1]=ja[0]=ja[1]=Number.MAX_VALUE,Xa[0]=Xa[1]=qa[0]=qa[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(r=n=e[t],o=i=e[t+1]),a){case Wa.M:n=r=e[t++],i=o=e[t++],ja[0]=r,ja[1]=o,qa[0]=r,qa[1]=o;break;case Wa.L:za(n,i,e[t],e[t+1],ja,qa),n=e[t++],i=e[t++];break;case Wa.C:Ga(n,i,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],ja,qa),n=e[t++],i=e[t++];break;case Wa.Q:Fa(n,i,e[t++],e[t++],e[t],e[t+1],ja,qa),n=e[t++],i=e[t++];break;case Wa.A:var l=e[t++],u=e[t++],h=e[t++],c=e[t++],d=e[t++],p=e[t++]+d;t+=1;var f=!e[t++];s&&(r=Ja(d)*h+l,o=Qa(d)*c+u),Ha(l,u,h,c,d,p,f,ja,qa),n=Ja(p)*h+l,i=Qa(p)*c+u;break;case Wa.R:za(r=n=e[t++],o=i=e[t++],r+e[t++],o+e[t++],ja,qa);break;case Wa.Z:n=r,i=o}Ft(Za,Za,ja),Ht(Xa,Xa,qa)}return 0===t&&(Za[0]=Za[1]=Xa[0]=Xa[1]=0),new Ne(Za[0],Za[1],Xa[0]-Za[0],Xa[1]-Za[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,h=0,c=0;c<e;){var d=t[c++],p=1===c;p&&(a=r=t[c],s=o=t[c+1]);var f=-1;switch(d){case Wa.M:r=a=t[c++],o=s=t[c++];break;case Wa.L:var g=t[c++],v=(x=t[c++])-o;(ts(D=g-r)>n||ts(v)>i||c===e-1)&&(f=Math.sqrt(D*D+v*v),r=g,o=x);break;case Wa.C:var m=t[c++],y=t[c++],x=(g=t[c++],t[c++]),_=t[c++],b=t[c++];f=wn(r,o,m,y,g,x,_,b,10),r=_,o=b;break;case Wa.Q:f=An(r,o,m=t[c++],y=t[c++],g=t[c++],x=t[c++],10),r=g,o=x;break;case Wa.A:var w=t[c++],S=t[c++],M=t[c++],I=t[c++],T=t[c++],C=t[c++],A=C+T;c+=1,p&&(a=Ja(T)*M+w,s=Qa(T)*I+S),f=$a(M,I)*Ka(ns,Math.abs(C)),r=Ja(A)*M+w,o=Qa(A)*I+S;break;case Wa.R:a=r=t[c++],s=o=t[c++],f=2*t[c++]+2*t[c++];break;case Wa.Z:var D=a-r;v=s-o;f=Math.sqrt(D*D+v*v),r=a,o=s}f>=0&&(l[h++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,h,c,d=this.data,p=this._ux,f=this._uy,g=this._len,v=e<1,m=0,y=0,x=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var _=0;_<g;){var b=d[_++],w=1===_;switch(w&&(n=r=d[_],i=o=d[_+1]),b!==Wa.L&&x>0&&(t.lineTo(h,c),x=0),b){case Wa.M:n=r=d[_++],i=o=d[_++],t.moveTo(r,o);break;case Wa.L:a=d[_++],s=d[_++];var S=ts(a-r),M=ts(s-o);if(S>p||M>f){if(v){if(m+(j=l[y++])>u){var I=(u-m)/j;t.lineTo(r*(1-I)+a*I,o*(1-I)+s*I);break t}m+=j}t.lineTo(a,s),r=a,o=s,x=0}else{var T=S*S+M*M;T>x&&(h=a,c=s,x=T)}break;case Wa.C:var C=d[_++],A=d[_++],D=d[_++],L=d[_++],k=d[_++],P=d[_++];if(v){if(m+(j=l[y++])>u){_n(r,C,D,k,I=(u-m)/j,Ua),_n(o,A,L,P,I,Ya),t.bezierCurveTo(Ua[1],Ya[1],Ua[2],Ya[2],Ua[3],Ya[3]);break t}m+=j}t.bezierCurveTo(C,A,D,L,k,P),r=k,o=P;break;case Wa.Q:C=d[_++],A=d[_++],D=d[_++],L=d[_++];if(v){if(m+(j=l[y++])>u){Tn(r,C,D,I=(u-m)/j,Ua),Tn(o,A,L,I,Ya),t.quadraticCurveTo(Ua[1],Ya[1],Ua[2],Ya[2]);break t}m+=j}t.quadraticCurveTo(C,A,D,L),r=D,o=L;break;case Wa.A:var O=d[_++],R=d[_++],N=d[_++],E=d[_++],z=d[_++],V=d[_++],B=d[_++],G=!d[_++],F=N>E?N:E,H=ts(N-E)>.001,W=z+V,U=!1;if(v)m+(j=l[y++])>u&&(W=z+V*(u-m)/j,U=!0),m+=j;if(H&&t.ellipse?t.ellipse(O,R,N,E,B,z,W,G):t.arc(O,R,F,z,W,G),U)break t;w&&(n=Ja(z)*N+O,i=Qa(z)*E+R),r=Ja(W)*N+O,o=Qa(W)*E+R;break;case Wa.R:n=r=d[_],i=o=d[_+1],a=d[_++],s=d[_++];var Y=d[_++],Z=d[_++];if(v){if(m+(j=l[y++])>u){var X=u-m;t.moveTo(a,s),t.lineTo(a+Ka(X,Y),s),(X-=Y)>0&&t.lineTo(a+Y,s+Ka(X,Z)),(X-=Z)>0&&t.lineTo(a+$a(Y-X,0),s+Z),(X-=Y)>0&&t.lineTo(a,s+$a(Z-X,0));break t}m+=j}t.rect(a,s,Y,Z);break;case Wa.Z:if(v){var j;if(m+(j=l[y++])>u){I=(u-m)/j;t.lineTo(r*(1-I)+n*I,o*(1-I)+i*I);break t}m+=j}t.closePath(),r=n,o=i}}},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=Wa,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t}();function ls(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0;if(a>e+s&&a>i+s||a<e-s&&a<i-s||o>t+s&&o>n+s||o<t-s&&o<n-s)return!1;if(t===n)return Math.abs(o-t)<=s/2;var u=(l=(e-i)/(t-n))*o-a+(t*i-n*e)/(t-n);return u*u/(l*l+1)<=s/2*s/2}function us(t,e,n,i,r,o,a,s,l,u,h){if(0===l)return!1;var c=l;return!(h>e+c&&h>i+c&&h>o+c&&h>s+c||h<e-c&&h<i-c&&h<o-c&&h<s-c||u>t+c&&u>n+c&&u>r+c&&u>a+c||u<t-c&&u<n-c&&u<r-c&&u<a-c)&&bn(t,e,n,i,r,o,a,s,u,h,null)<=c/2}function hs(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;return!(l>e+u&&l>i+u&&l>o+u||l<e-u&&l<i-u&&l<o-u||s>t+u&&s>n+u&&s>r+u||s<t-u&&s<n-u&&s<r-u)&&Cn(t,e,n,i,r,o,s,l,null)<=u/2}var cs=2*Math.PI;function ds(t){return(t%=cs)<0&&(t+=cs),t}var ps=2*Math.PI;function fs(t,e,n,i,r,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||h+u<n)return!1;if(Math.abs(i-r)%ps<1e-4)return!0;if(o){var c=i;i=ds(r),r=ds(c)}else i=ds(i),r=ds(r);i>r&&(r+=ps);var d=Math.atan2(l,s);return d<0&&(d+=ps),d>=i&&d<=r||d+ps>=i&&d+ps<=r}function gs(t,e,n,i,r,o){if(o>e&&o>i||o<e&&o<i)return 0;if(i===e)return 0;var a=(o-e)/(i-e),s=i<e?1:-1;1!==a&&0!==a||(s=i<e?.5:-.5);var l=a*(n-t)+t;return l===r?1/0:l>r?s:0}var vs=ss.CMD,ms=2*Math.PI;var ys=[-1,-1,-1],xs=[-1,-1];function _s(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||u<e&&u<i&&u<o&&u<s)return 0;var h,c=yn(e,i,o,s,u,ys);if(0===c)return 0;for(var d=0,p=-1,f=void 0,g=void 0,v=0;v<c;v++){var m=ys[v],y=0===m||1===m?.5:1;vn(t,n,r,a,m)<l||(p<0&&(p=xn(e,i,o,s,xs),xs[1]<xs[0]&&p>1&&(h=void 0,h=xs[0],xs[0]=xs[1],xs[1]=h),f=vn(e,i,o,s,xs[0]),p>1&&(g=vn(e,i,o,s,xs[1]))),2===p?m<xs[0]?d+=f<e?y:-y:m<xs[1]?d+=g<f?y:-y:d+=s<g?y:-y:m<xs[0]?d+=f<e?y:-y:d+=s<f?y:-y)}return d}function bs(t,e,n,i,r,o,a,s){if(s>e&&s>i&&s>o||s<e&&s<i&&s<o)return 0;var l=function(t,e,n,i,r){var o=t-2*e+n,a=2*(e-t),s=t-i,l=0;if(fn(o))gn(a)&&(h=-s/a)>=0&&h<=1&&(r[l++]=h);else{var u=a*a-4*o*s;if(fn(u))(h=-a/(2*o))>=0&&h<=1&&(r[l++]=h);else if(u>0){var h,c=an(u),d=(-a-c)/(2*o);(h=(-a+c)/(2*o))>=0&&h<=1&&(r[l++]=h),d>=0&&d<=1&&(r[l++]=d)}}return l}(e,i,o,s,ys);if(0===l)return 0;var u=In(e,i,o);if(u>=0&&u<=1){for(var h=0,c=Sn(e,i,o,u),d=0;d<l;d++){var p=0===ys[d]||1===ys[d]?.5:1;Sn(t,n,r,ys[d])<a||(ys[d]<u?h+=c<e?p:-p:h+=o<c?p:-p)}return h}p=0===ys[0]||1===ys[0]?.5:1;return Sn(t,n,r,ys[0])<a?0:o<e?p:-p}function ws(t,e,n,i,r,o,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);ys[0]=-l,ys[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=ms-1e-4){i=0,r=ms;var h=o?1:-1;return a>=ys[0]+t&&a<=ys[1]+t?h:0}if(i>r){var c=i;i=r,r=c}i<0&&(i+=ms,r+=ms);for(var d=0,p=0;p<2;p++){var f=ys[p];if(f+t>a){var g=Math.atan2(s,f);h=o?1:-1;g<0&&(g=ms+g),(g>=i&&g<=r||g+ms>=i&&g+ms<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(h=-h),d+=h)}}return d}function Ss(t,e,n,i,r){for(var o,a,s,l,u=t.data,h=t.len(),c=0,d=0,p=0,f=0,g=0,v=0;v<h;){var m=u[v++],y=1===v;switch(m===vs.M&&v>1&&(n||(c+=gs(d,p,f,g,i,r))),y&&(f=d=u[v],g=p=u[v+1]),m){case vs.M:d=f=u[v++],p=g=u[v++];break;case vs.L:if(n){if(ls(d,p,u[v],u[v+1],e,i,r))return!0}else c+=gs(d,p,u[v],u[v+1],i,r)||0;d=u[v++],p=u[v++];break;case vs.C:if(n){if(us(d,p,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],e,i,r))return!0}else c+=_s(d,p,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],i,r)||0;d=u[v++],p=u[v++];break;case vs.Q:if(n){if(hs(d,p,u[v++],u[v++],u[v],u[v+1],e,i,r))return!0}else c+=bs(d,p,u[v++],u[v++],u[v],u[v+1],i,r)||0;d=u[v++],p=u[v++];break;case vs.A:var x=u[v++],_=u[v++],b=u[v++],w=u[v++],S=u[v++],M=u[v++];v+=1;var I=!!(1-u[v++]);o=Math.cos(S)*b+x,a=Math.sin(S)*w+_,y?(f=o,g=a):c+=gs(d,p,o,a,i,r);var T=(i-x)*w/b+x;if(n){if(fs(x,_,w,S,S+M,I,e,T,r))return!0}else c+=ws(x,_,w,S,S+M,I,T,r);d=Math.cos(S+M)*b+x,p=Math.sin(S+M)*w+_;break;case vs.R:if(f=d=u[v++],g=p=u[v++],o=f+u[v++],a=g+u[v++],n){if(ls(f,g,o,g,e,i,r)||ls(o,g,o,a,e,i,r)||ls(o,a,f,a,e,i,r)||ls(f,a,f,g,e,i,r))return!0}else c+=gs(o,g,o,a,i,r),c+=gs(f,a,f,g,i,r);break;case vs.Z:if(n){if(ls(d,p,f,g,e,i,r))return!0}else c+=gs(d,p,f,g,i,r);d=f,p=g}}return n||(s=p,l=g,Math.abs(s-l)<1e-4)||(c+=gs(d,p,f,g,i,r)||0),0!==c}var Ms=A({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ba),Is={style:A({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},wa.style)},Ts=vr.concat(["invisible","culling","z","z2","zlevel","parent"]),Cs=function(t){function e(e){return t.call(this,e)||this}var i;return n(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<Ts.length;++s)r[Ts[s]]=this[Ts[s]];r.__dirty|=1}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=B(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var o=n[r],a=e[o];"style"===o?this.style?C(this.style,a):this.useStyle(a):"shape"===o?C(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(U(t)){var e=ii(t,0);return e>.5?ar:e>.2?"#eee":sr}if(t)return sr}return ar},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(U(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===ii(t,0)<.4)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=-5},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new ss(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||4&this.__dirty)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.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},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,i){return Ss(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return Ss(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:C(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(4&this.__dirty)},e.prototype.createStyle=function(t){return vt(Ms,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=C({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=C({},i.shape),C(s,n.shape)):(s=C({},r?this.shape:i.shape),C(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=C({},this.shape);for(var u={},h=B(s),c=0;c<h.length;c++){var d=h[c];"object"==typeof s[d]?this.shape[d]=s[d]:u[d]=s[d]}this._transitionState(e,{shape:u},a)}else this.shape=s,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return Is},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var i=function(e){function i(n){var i=e.call(this,n)||this;return t.init&&t.init.call(i,n),i}return n(i,e),i.prototype.getDefaultStyle=function(){return M(t.style)},i.prototype.getDefaultShape=function(){return M(t.shape)},i}(e);for(var r in t)"function"==typeof t[r]&&(i.prototype[r]=t[r]);return i},e.initDefaultProps=((i=e.prototype).type="path",i.strokeContainThreshold=5,i.segmentIgnoreThreshold=0,i.subPixelOptimize=!1,i.autoBatch=!1,void(i.__dirty=7)),e}(Ia),As=A({strokeFirst:!0,font:a,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Ms),Ds=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return vt(As,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=br(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(Ia);Ds.prototype.type="tspan";var Ls=A({x:0,y:0},ba),ks={style:A({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},wa.style)};var Ps=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.createStyle=function(t){return vt(Ls,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i,r=(i=e.image)&&"string"!=typeof i&&i.width&&i.height?e.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return ks},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Ne(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Ia);Ps.prototype.type="image";var Os=Math.round;function Rs(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(Os(2*i)===Os(2*r)&&(t.x1=t.x2=Es(i,s,!0)),Os(2*o)===Os(2*a)&&(t.y1=t.y2=Es(o,s,!0)),t):t}}function Ns(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=Es(i,s,!0),t.y=Es(r,s,!0),t.width=Math.max(Es(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Es(r+a,s,!1)-t.y,0===a?0:1),t):t}}function Es(t,e,n){if(!e)return t;var i=Os(2*t);return(i+Os(e))%2==0?i/2:(i+(n?1:-1))/2}var zs=function(){return function(){this.x=0,this.y=0,this.width=0,this.height=0}}(),Vs={},Bs=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultShape=function(){return new zs},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=Ns(Vs,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?function(t,e){var n,i,r,o,a,s=e.x,l=e.y,u=e.width,h=e.height,c=e.r;u<0&&(s+=u,u=-u),h<0&&(l+=h,h=-h),"number"==typeof c?n=i=r=o=c:c instanceof Array?1===c.length?n=i=r=o=c[0]:2===c.length?(n=r=c[0],i=o=c[1]):3===c.length?(n=c[0],i=o=c[1],r=c[2]):(n=c[0],i=c[1],r=c[2],o=c[3]):n=i=r=o=0,n+i>u&&(n*=u/(a=n+i),i*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),i+r>h&&(i*=h/(a=i+r),r*=h/a),n+o>h&&(n*=h/(a=n+o),o*=h/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+h-r),0!==r&&t.arc(s+u-r,l+h-r,r,0,Math.PI/2),t.lineTo(s+o,l+h),0!==o&&t.arc(s+o,l+h-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,i,r,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Cs);Bs.prototype.type="rect";var Gs={fill:"#000"},Fs={style:A({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},wa.style)},Hs=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Gs,n.attr(e),n}return n(e,t),e.prototype.childrenRef=function(){return this._children},e.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}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){var t;this._childCursor=0,qs(t=this.style),R(t.rich,qs),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new Ne(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Gs},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,i=t.rich||n&&{};return C(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,e){for(var n=B(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},C(t[r],e[r])}},e.prototype.getAnimationStyleProps=function(){return Fs},e.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},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||a,n=t.padding,i=function(t,e){null!=t&&(t+="");var n,i=e.overflow,r=e.padding,o=e.font,a="truncate"===i,s=Mr(o),l=nt(e.lineHeight,s),u=!!e.backgroundColor,h="truncate"===e.lineOverflow,c=!1,d=e.width,p=(n=null==d||"break"!==i&&"breakAll"!==i?t?t.split("\n"):[]:t?xa(t,e.font,d,"breakAll"===i,0).lines:[]).length*l,f=nt(e.height,p);if(p>f&&h){var g=Math.floor(f/l);c=c||n.length>g,n=n.slice(0,g)}if(t&&a&&null!=d)for(var v=ha(d,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m={},y=0;y<n.length;y++)ca(m,n[y],v),n[y]=m.textLine,c=c||m.isTruncated;var x=f,_=0;for(y=0;y<n.length;y++)_=Math.max(xr(n[y],o),_);null==d&&(d=_);var b=_;return r&&(x+=r[0]+r[2],b+=r[1]+r[3],d+=r[1]+r[3]),u&&(b=d),{lines:n,height:f,outerWidth:b,outerHeight:x,lineHeight:l,calculatedLineHeight:s,contentWidth:_,contentHeight:p,width:d,isTruncated:c}}(Qs(t),t),r=tl(t),o=!!t.backgroundColor,s=i.outerHeight,l=i.outerWidth,u=i.contentWidth,h=i.lines,c=i.lineHeight,d=this._defaultStyle;this.isTruncated=!!i.isTruncated;var p=t.x||0,f=t.y||0,g=t.align||d.align||"left",v=t.verticalAlign||d.verticalAlign||"top",m=p,y=Sr(f,i.contentHeight,v);if(r||n){var x=wr(p,l,g),_=Sr(f,s,v);r&&this._renderBackground(t,t,x,_,l,s)}y+=c/2,n&&(m=Js(p,g,n),"top"===v?y+=n[0]:"bottom"===v&&(y-=n[2]));for(var b=0,w=!1,S=($s("fill"in t?t.fill:(w=!0,d.fill))),M=(Ks("stroke"in t?t.stroke:o||d.autoStroke&&!w?null:(b=2,d.stroke))),I=t.textShadowBlur>0,T=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),C=i.calculatedLineHeight,A=0;A<h.length;A++){var D=this._getOrCreateChild(Ds),L=D.createStyle();D.useStyle(L),L.text=h[A],L.x=m,L.y=y,g&&(L.textAlign=g),L.textBaseline="middle",L.opacity=t.opacity,L.strokeFirst=!0,I&&(L.shadowBlur=t.textShadowBlur||0,L.shadowColor=t.textShadowColor||"transparent",L.shadowOffsetX=t.textShadowOffsetX||0,L.shadowOffsetY=t.textShadowOffsetY||0),L.stroke=M,L.fill=S,M&&(L.lineWidth=t.lineWidth||b,L.lineDash=t.lineDash,L.lineDashOffset=t.lineDashOffset||0),L.font=e,Xs(L,t),y+=c,T&&D.setBoundingRect(new Ne(wr(L.x,u,L.textAlign),Sr(L.y,C,L.textBaseline),u,C))}},e.prototype._updateRichTexts=function(){var t=this.style,e=function(t,e){var n=new ga;if(null!=t&&(t+=""),!t)return n;for(var i,r=e.width,o=e.height,a=e.overflow,s="break"!==a&&"breakAll"!==a||null==r?null:{width:r,accumWidth:0,breakAll:"breakAll"===a},l=la.lastIndex=0;null!=(i=la.exec(t));){var u=i.index;u>l&&va(n,t.substring(l,u),e,s),va(n,i[2],e,s,i[1]),l=la.lastIndex}l<t.length&&va(n,t.substring(l,t.length),e,s);var h=[],c=0,d=0,p=e.padding,f="truncate"===a,g="truncate"===e.lineOverflow,v={};function m(t,e,n){t.width=e,t.lineHeight=n,c+=n,d=Math.max(d,e)}t:for(var y=0;y<n.lines.length;y++){for(var x=n.lines[y],_=0,b=0,w=0;w<x.tokens.length;w++){var S=(R=x.tokens[w]).styleName&&e.rich[R.styleName]||{},M=R.textPadding=S.padding,I=M?M[1]+M[3]:0,T=R.font=S.font||e.font;R.contentHeight=Mr(T);var C=nt(S.height,R.contentHeight);if(R.innerHeight=C,M&&(C+=M[0]+M[2]),R.height=C,R.lineHeight=it(S.lineHeight,e.lineHeight,C),R.align=S&&S.align||e.align,R.verticalAlign=S&&S.verticalAlign||"middle",g&&null!=o&&c+R.lineHeight>o){var A=n.lines.length;w>0?(x.tokens=x.tokens.slice(0,w),m(x,b,_),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y),n.isTruncated=n.isTruncated||n.lines.length<A;break t}var D=S.width,L=null==D||"auto"===D;if("string"==typeof D&&"%"===D.charAt(D.length-1))R.percentWidth=D,h.push(R),R.contentWidth=xr(R.text,T);else{if(L){var k=S.backgroundColor,P=k&&k.image;P&&sa(P=ra(P))&&(R.width=Math.max(R.width,P.width*C/P.height))}var O=f&&null!=r?r-b:null;null!=O&&O<R.width?!L||O<I?(R.text="",R.width=R.contentWidth=0):(ua(v,R.text,O-I,T,e.ellipsis,{minChar:e.truncateMinChar}),R.text=v.text,n.isTruncated=n.isTruncated||v.isTruncated,R.width=R.contentWidth=xr(R.text,T)):R.contentWidth=xr(R.text,T)}R.width+=I,b+=R.width,S&&(_=Math.max(_,R.lineHeight))}m(x,b,_)}for(n.outerWidth=n.width=nt(r,d),n.outerHeight=n.height=nt(o,c),n.contentHeight=c,n.contentWidth=d,p&&(n.outerWidth+=p[1]+p[3],n.outerHeight+=p[0]+p[2]),y=0;y<h.length;y++){var R,N=(R=h[y]).percentWidth;R.width=parseInt(N,10)/100*n.width}return n}(Qs(t),t),n=e.width,i=e.outerWidth,r=e.outerHeight,o=t.padding,a=t.x||0,s=t.y||0,l=this._defaultStyle,u=t.align||l.align,h=t.verticalAlign||l.verticalAlign;this.isTruncated=!!e.isTruncated;var c=wr(a,i,u),d=Sr(s,r,h),p=c,f=d;o&&(p+=o[3],f+=o[0]);var g=p+n;tl(t)&&this._renderBackground(t,t,c,d,i,r);for(var v=!!t.backgroundColor,m=0;m<e.lines.length;m++){for(var y=e.lines[m],x=y.tokens,_=x.length,b=y.lineHeight,w=y.width,S=0,M=p,I=g,T=_-1,C=void 0;S<_&&(!(C=x[S]).align||"left"===C.align);)this._placeToken(C,t,b,f,M,"left",v),w-=C.width,M+=C.width,S++;for(;T>=0&&"right"===(C=x[T]).align;)this._placeToken(C,t,b,f,I,"right",v),w-=C.width,I-=C.width,T--;for(M+=(n-(M-p)-(g-I)-w)/2;S<=T;)C=x[S],this._placeToken(C,t,b,f,M+C.width/2,"center",v),M+=C.width,S++;f+=b}},e.prototype._placeToken=function(t,e,n,i,r,o,s){var l=e.rich[t.styleName]||{};l.text=t.text;var u=t.verticalAlign,h=i+n/2;"top"===u?h=i+t.height/2:"bottom"===u&&(h=i+n-t.height/2),!t.isLineHolder&&tl(l)&&this._renderBackground(l,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,h-t.height/2,t.width,t.height);var c=!!l.backgroundColor,d=t.textPadding;d&&(r=Js(r,o,d),h-=t.height/2-d[0]-t.innerHeight/2);var p=this._getOrCreateChild(Ds),f=p.createStyle();p.useStyle(f);var g=this._defaultStyle,v=!1,m=0,y=$s("fill"in l?l.fill:"fill"in e?e.fill:(v=!0,g.fill)),x=Ks("stroke"in l?l.stroke:"stroke"in e?e.stroke:c||s||g.autoStroke&&!v?null:(m=2,g.stroke)),_=l.textShadowBlur>0||e.textShadowBlur>0;f.text=t.text,f.x=r,f.y=h,_&&(f.shadowBlur=l.textShadowBlur||e.textShadowBlur||0,f.shadowColor=l.textShadowColor||e.textShadowColor||"transparent",f.shadowOffsetX=l.textShadowOffsetX||e.textShadowOffsetX||0,f.shadowOffsetY=l.textShadowOffsetY||e.textShadowOffsetY||0),f.textAlign=o,f.textBaseline="middle",f.font=t.font||a,f.opacity=it(l.opacity,e.opacity,1),Xs(f,l),x&&(f.lineWidth=it(l.lineWidth,e.lineWidth,m),f.lineDash=nt(l.lineDash,e.lineDash),f.lineDashOffset=e.lineDashOffset||0,f.stroke=x),y&&(f.fill=y);var b=t.contentWidth,w=t.contentHeight;p.setBoundingRect(new Ne(wr(f.x,b,f.textAlign),Sr(f.y,w,f.textBaseline),b,w))},e.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l,u=t.backgroundColor,h=t.borderWidth,c=t.borderColor,d=u&&u.image,p=u&&!d,f=t.borderRadius,g=this;if(p||t.lineHeight||h&&c){(a=this._getOrCreateChild(Bs)).useStyle(a.createStyle()),a.style.fill=null;var v=a.shape;v.x=n,v.y=i,v.width=r,v.height=o,v.r=f,a.dirtyShape()}if(p)(l=a.style).fill=u||null,l.fillOpacity=nt(t.fillOpacity,1);else if(d){(s=this._getOrCreateChild(Ps)).onload=function(){g.dirtyStyle()};var m=s.style;m.image=u.image,m.x=n,m.y=i,m.width=r,m.height=o}h&&c&&((l=a.style).lineWidth=h,l.stroke=c,l.strokeOpacity=nt(t.strokeOpacity,1),l.lineDash=t.borderDash,l.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var y=(a||s).style;y.shadowBlur=t.shadowBlur||0,y.shadowColor=t.shadowColor||"transparent",y.shadowOffsetX=t.shadowOffsetX||0,y.shadowOffsetY=t.shadowOffsetY||0,y.opacity=it(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return js(t)&&(e=[t.fontStyle,t.fontWeight,Zs(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&st(e)||t.textFont||t.font},e}(Ia),Ws={left:!0,right:1,center:1},Us={top:1,bottom:1,middle:1},Ys=["fontStyle","fontWeight","fontSize","fontFamily"];function Zs(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?"12px":t+"px":t}function Xs(t,e){for(var n=0;n<Ys.length;n++){var i=Ys[n],r=e[i];null!=r&&(t[i]=r)}}function js(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function qs(t){if(t){t.font=Hs.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||Ws[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||Us[n]?n:"top",t.padding&&(t.padding=ot(t.padding))}}function Ks(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function $s(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Js(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Qs(t){var e=t.text;return null!=e&&(e+=""),e}function tl(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var el=No(),nl=function(t,e,n,i){if(i){var r=el(i);r.dataIndex=n,r.dataType=e,r.seriesIndex=t,r.ssrType="chart","group"===i.type&&i.traverse((function(i){var r=el(i);r.seriesIndex=t,r.dataIndex=n,r.dataType=e,r.ssrType="chart"}))}},il=1,rl={},ol=No(),al=No(),sl=["emphasis","blur","select"],ll=["normal","emphasis","blur","select"],ul=10,hl="highlight",cl="downplay",dl="select",pl="unselect",fl="toggleSelect";function gl(t){return null!=t&&"none"!==t}function vl(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function ml(t){vl(t,"emphasis",2)}function yl(t){2===t.hoverState&&vl(t,"normal",0)}function xl(t){vl(t,"blur",1)}function _l(t){1===t.hoverState&&vl(t,"normal",0)}function bl(t){t.selected=!0}function wl(t){t.selected=!1}function Sl(t,e,n){e(t,n)}function Ml(t,e,n){Sl(t,e,n),t.isGroup&&t.traverse((function(t){Sl(t,e,n)}))}function Il(t,e){switch(e){case"emphasis":t.hoverState=2;break;case"normal":t.hoverState=0;break;case"blur":t.hoverState=1;break;case"select":t.selected=!0}}function Tl(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,i){var r=n&&L(n,"select")>=0,o=!1;if(t instanceof Cs){var a=ol(t),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(gl(s)||gl(l)){var u=(i=i||{}).style||{};"inherit"===u.fill?(o=!0,i=C({},i),(u=C({},u)).fill=s):!gl(u.fill)&&gl(s)?(o=!0,i=C({},i),(u=C({},u)).fill=oi(s)):!gl(u.stroke)&&gl(l)&&(o||(i=C({},i),u=C({},u)),u.stroke=oi(l)),i.style=u}}if(i&&null==i.z2){o||(i=C({},i));var h=t.z2EmphasisLift;i.z2=t.z2+(null!=h?h:ul)}return i}(this,0,e,n);if("blur"===t)return function(t,e,n){var i=L(t.currentStates,e)>=0,r=t.style.opacity,o=i?null:function(t,e,n,i){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(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}(t,["opacity"],e,{opacity:1}),a=(n=n||{}).style||{};return null==a.opacity&&(n=C({},n),a=C({opacity:i?r:.1*o.opacity},a),n.style=a),n}(this,t,n);if("select"===t)return function(t,e,n){if(n&&null==n.z2){n=C({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:9)}return n}(this,0,n)}return n}function Cl(t){t.stateProxy=Tl;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=Tl),n&&(n.stateProxy=Tl)}function Al(t,e){!El(t,e)&&!t.__highByOuter&&Ml(t,ml)}function Dl(t,e){!El(t,e)&&!t.__highByOuter&&Ml(t,yl)}function Ll(t,e){t.__highByOuter|=1<<(e||0),Ml(t,ml)}function kl(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Ml(t,yl)}function Pl(t){Ml(t,xl)}function Ol(t){Ml(t,_l)}function Rl(t){Ml(t,bl)}function Nl(t){Ml(t,wl)}function El(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function zl(t){var e=t.getModel(),n=[],i=[];e.eachComponent((function(e,r){var o=al(r),a="series"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse((function(t){_l(t)})),a&&n.push(r)),o.isBlured=!1})),R(i,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function Vl(t,e,n,i){var r=i.getModel();function o(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&Ol(i)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=r.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries((function(t){var r=a===t,u=t.coordinateSystem;if(u&&u.master&&(u=u.master),!("series"===n&&!r||"coordinateSystem"===n&&!(u&&s?u===s:r)||"series"===e&&r)){if(i.getViewOfSeriesModel(t).group.traverse((function(t){t.__highByOuter&&r&&"self"===e||xl(t)})),O(e))o(t.getData(),e);else if(X(e))for(var h=B(e),c=0;c<h.length;c++)o(t.getData(h[c]),e[h[c]]);l.push(t),al(t).isBlured=!0}})),r.eachComponent((function(t,e){if("series"!==t){var n=i.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,r)}}))}}function Bl(t,e,n){if(null!=t&&null!=e){var i=n.getModel().getComponent(t,e);if(i){al(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse((function(t){xl(t)}))}}}function Gl(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return r;var o=i.getModel().getComponent(t,e);if(!o)return r;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===el(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function Fl(t){R(t.getAllData(),(function(e){var n=e.data,i=e.type;n.eachItemGraphicEl((function(e,n){t.isSelected(n,i)?Rl(e):Nl(e)}))}))}function Hl(t){var e=[];return t.eachSeries((function(t){R(t.getAllData(),(function(n){n.data;var i=n.type,r=t.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}}))})),e}function Wl(t,e,n){ql(t,!0),Ml(t,Cl),Yl(t,e,n)}function Ul(t,e,n,i){i?function(t){ql(t,!1)}(t):Wl(t,e,n)}function Yl(t,e,n){var i=el(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}var Zl=["emphasis","blur","select"],Xl={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function jl(t,e,n,i){n=n||"itemStyle";for(var r=0;r<Zl.length;r++){var o=Zl[r],a=e.getModel([o,n]);t.ensureState(o).style=i?i(a):a[Xl[n]]()}}function ql(t,e){var n=!1===e,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function Kl(t){return!(!t||!t.__highDownDispatcher)}function $l(t){var e=t.type;return e===dl||e===pl||e===fl}function Jl(t){var e=t.type;return e===hl||e===cl}var Ql=ss.CMD,tu=[[],[],[]],eu=Math.sqrt,nu=Math.atan2;function iu(t,e){if(e){var n,i,r,o,a,s,l=t.data,u=t.len(),h=Ql.M,c=Ql.C,d=Ql.L,p=Ql.R,f=Ql.A,g=Ql.Q;for(r=0,o=0;r<u;){switch(n=l[r++],o=r,i=0,n){case h:case d:i=1;break;case c:i=3;break;case g:i=2;break;case f:var v=e[4],m=e[5],y=eu(e[0]*e[0]+e[1]*e[1]),x=eu(e[2]*e[2]+e[3]*e[3]),_=nu(-e[1]/x,e[0]/y);l[r]*=y,l[r++]+=v,l[r]*=x,l[r++]+=m,l[r++]*=y,l[r++]*=x,l[r++]+=_,l[r++]+=_,o=r+=2;break;case p:s[0]=l[r++],s[1]=l[r++],Gt(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],Gt(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<i;a++){var b=tu[a];b[0]=l[r++],b[1]=l[r++],Gt(b,b,e),l[o++]=b[0],l[o++]=b[1]}}t.increaseVersion()}}var ru=Math.sqrt,ou=Math.sin,au=Math.cos,su=Math.PI;function lu(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function uu(t,e){return(t[0]*e[0]+t[1]*e[1])/(lu(t)*lu(e))}function hu(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(uu(t,e))}function cu(t,e,n,i,r,o,a,s,l,u,h){var c=l*(su/180),d=au(c)*(t-n)/2+ou(c)*(e-i)/2,p=-1*ou(c)*(t-n)/2+au(c)*(e-i)/2,f=d*d/(a*a)+p*p/(s*s);f>1&&(a*=ru(f),s*=ru(f));var g=(r===o?-1:1)*ru((a*a*(s*s)-a*a*(p*p)-s*s*(d*d))/(a*a*(p*p)+s*s*(d*d)))||0,v=g*a*p/s,m=g*-s*d/a,y=(t+n)/2+au(c)*v-ou(c)*m,x=(e+i)/2+ou(c)*v+au(c)*m,_=hu([1,0],[(d-v)/a,(p-m)/s]),b=[(d-v)/a,(p-m)/s],w=[(-1*d-v)/a,(-1*p-m)/s],S=hu(b,w);if(uu(b,w)<=-1&&(S=su),uu(b,w)>=1&&(S=0),S<0){var M=Math.round(S/su*1e6)/1e6;S=2*su+M%2*su}h.addData(u,y,x,a,s,_,S,c,o)}var du=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,pu=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var fu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.applyTransform=function(t){},e}(Cs);function gu(t){return null!=t.setData}function vu(t,e){var n=function(t){var e=new ss;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=ss.CMD,l=t.match(du);if(!l)return e;for(var u=0;u<l.length;u++){for(var h=l[u],c=h.charAt(0),d=void 0,p=h.match(pu)||[],f=p.length,g=0;g<f;g++)p[g]=parseFloat(p[g]);for(var v=0;v<f;){var m=void 0,y=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,M=i,I=r,T=void 0,C=void 0;switch(c){case"l":i+=p[v++],r+=p[v++],d=s.L,e.addData(d,i,r);break;case"L":i=p[v++],r=p[v++],d=s.L,e.addData(d,i,r);break;case"m":i+=p[v++],r+=p[v++],d=s.M,e.addData(d,i,r),o=i,a=r,c="l";break;case"M":i=p[v++],r=p[v++],d=s.M,e.addData(d,i,r),o=i,a=r,c="L";break;case"h":i+=p[v++],d=s.L,e.addData(d,i,r);break;case"H":i=p[v++],d=s.L,e.addData(d,i,r);break;case"v":r+=p[v++],d=s.L,e.addData(d,i,r);break;case"V":r=p[v++],d=s.L,e.addData(d,i,r);break;case"C":d=s.C,e.addData(d,p[v++],p[v++],p[v++],p[v++],p[v++],p[v++]),i=p[v-2],r=p[v-1];break;case"c":d=s.C,e.addData(d,p[v++]+i,p[v++]+r,p[v++]+i,p[v++]+r,p[v++]+i,p[v++]+r),i+=p[v-2],r+=p[v-1];break;case"S":m=i,y=r,T=e.len(),C=e.data,n===s.C&&(m+=i-C[T-4],y+=r-C[T-3]),d=s.C,M=p[v++],I=p[v++],i=p[v++],r=p[v++],e.addData(d,m,y,M,I,i,r);break;case"s":m=i,y=r,T=e.len(),C=e.data,n===s.C&&(m+=i-C[T-4],y+=r-C[T-3]),d=s.C,M=i+p[v++],I=r+p[v++],i+=p[v++],r+=p[v++],e.addData(d,m,y,M,I,i,r);break;case"Q":M=p[v++],I=p[v++],i=p[v++],r=p[v++],d=s.Q,e.addData(d,M,I,i,r);break;case"q":M=p[v++]+i,I=p[v++]+r,i+=p[v++],r+=p[v++],d=s.Q,e.addData(d,M,I,i,r);break;case"T":m=i,y=r,T=e.len(),C=e.data,n===s.Q&&(m+=i-C[T-4],y+=r-C[T-3]),i=p[v++],r=p[v++],d=s.Q,e.addData(d,m,y,i,r);break;case"t":m=i,y=r,T=e.len(),C=e.data,n===s.Q&&(m+=i-C[T-4],y+=r-C[T-3]),i+=p[v++],r+=p[v++],d=s.Q,e.addData(d,m,y,i,r);break;case"A":x=p[v++],_=p[v++],b=p[v++],w=p[v++],S=p[v++],cu(M=i,I=r,i=p[v++],r=p[v++],w,S,x,_,b,d=s.A,e);break;case"a":x=p[v++],_=p[v++],b=p[v++],w=p[v++],S=p[v++],cu(M=i,I=r,i+=p[v++],r+=p[v++],w,S,x,_,b,d=s.A,e)}}"z"!==c&&"Z"!==c||(d=s.Z,e.addData(d),i=o,r=a),n=d}return e.toStatic(),e}(t),i=C({},e);return i.buildPath=function(t){if(gu(t)){t.setData(n.data),(e=t.getContext())&&t.rebuildPath(e,1)}else{var e=t;n.rebuildPath(e,1)}},i.applyTransform=function(t){iu(n,t),this.dirtyShape()},i}function mu(t,e){return new fu(vu(t,e))}function yu(t,e){e=e||{};var n=new Cs;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?iu(n.path,t.getComputedTransform()):e.toLocal?n.setLocalTransform(t.getComputedTransform()):n.copyTransform(t),n.buildPath=t.buildPath,n.applyTransform=n.applyTransform,n.z=t.z,n.z2=t.z2,n.zlevel=t.zlevel,n}var xu=function(){return function(){this.cx=0,this.cy=0,this.r=0}}(),_u=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultShape=function(){return new xu},e.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)},e}(Cs);_u.prototype.type="circle";var bu=function(){return function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}}(),wu=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultShape=function(){return new bu},e.prototype.buildPath=function(t,e){var n=.5522848,i=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(i-o,r),t.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),t.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),t.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),t.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),t.closePath()},e}(Cs);wu.prototype.type="ellipse";var Su=Math.PI,Mu=2*Su,Iu=Math.sin,Tu=Math.cos,Cu=Math.acos,Au=Math.atan2,Du=Math.abs,Lu=Math.sqrt,ku=Math.max,Pu=Math.min,Ou=1e-4;function Ru(t,e,n,i,r,o,a){var s=t-n,l=e-i,u=(a?o:-o)/Lu(s*s+l*l),h=u*l,c=-u*s,d=t+h,p=e+c,f=n+h,g=i+c,v=(d+f)/2,m=(p+g)/2,y=f-d,x=g-p,_=y*y+x*x,b=r-o,w=d*g-f*p,S=(x<0?-1:1)*Lu(ku(0,b*b*_-w*w)),M=(w*x-y*S)/_,I=(-w*y-x*S)/_,T=(w*x+y*S)/_,C=(-w*y+x*S)/_,A=M-v,D=I-m,L=T-v,k=C-m;return A*A+D*D>L*L+k*k&&(M=T,I=C),{cx:M,cy:I,x0:-h,y0:-c,x1:M*(r/b-1),y1:I*(r/b-1)}}function Nu(t,e){var n,i=ku(e.r,0),r=ku(e.r0||0,0),o=i>0;if(o||r>0){if(o||(i=r,r=0),r>i){var a=i;i=r,r=a}var s=e.startAngle,l=e.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=e.cx,h=e.cy,c=!!e.clockwise,d=Du(l-s),p=d>Mu&&d%Mu;if(p>Ou&&(d=p),i>Ou)if(d>Mu-Ou)t.moveTo(u+i*Tu(s),h+i*Iu(s)),t.arc(u,h,i,s,l,!c),r>Ou&&(t.moveTo(u+r*Tu(l),h+r*Iu(l)),t.arc(u,h,r,l,s,c));else{var f=void 0,g=void 0,v=void 0,m=void 0,y=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,M=void 0,I=void 0,T=void 0,C=void 0,A=void 0,D=void 0,L=i*Tu(s),k=i*Iu(s),P=r*Tu(l),O=r*Iu(l),R=d>Ou;if(R){var N=e.cornerRadius;N&&(f=(n=function(t){var e;if(H(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}(N))[0],g=n[1],v=n[2],m=n[3]);var E=Du(i-r)/2;if(y=Pu(E,v),x=Pu(E,m),_=Pu(E,f),b=Pu(E,g),M=w=ku(y,x),I=S=ku(_,b),(w>Ou||S>Ou)&&(T=i*Tu(l),C=i*Iu(l),A=r*Tu(s),D=r*Iu(s),d<Su)){var z=function(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,h=a-r,c=s-o,d=c*l-h*u;if(!(d*d<Ou))return[t+(d=(h*(e-o)-c*(t-r))/d)*l,e+d*u]}(L,k,A,D,T,C,P,O);if(z){var V=L-z[0],B=k-z[1],G=T-z[0],F=C-z[1],W=1/Iu(Cu((V*G+B*F)/(Lu(V*V+B*B)*Lu(G*G+F*F)))/2),U=Lu(z[0]*z[0]+z[1]*z[1]);M=Pu(w,(i-U)/(W+1)),I=Pu(S,(r-U)/(W-1))}}}if(R)if(M>Ou){var Y=Pu(v,M),Z=Pu(m,M),X=Ru(A,D,L,k,i,Y,c),j=Ru(T,C,P,O,i,Z,c);t.moveTo(u+X.cx+X.x0,h+X.cy+X.y0),M<w&&Y===Z?t.arc(u+X.cx,h+X.cy,M,Au(X.y0,X.x0),Au(j.y0,j.x0),!c):(Y>0&&t.arc(u+X.cx,h+X.cy,Y,Au(X.y0,X.x0),Au(X.y1,X.x1),!c),t.arc(u,h,i,Au(X.cy+X.y1,X.cx+X.x1),Au(j.cy+j.y1,j.cx+j.x1),!c),Z>0&&t.arc(u+j.cx,h+j.cy,Z,Au(j.y1,j.x1),Au(j.y0,j.x0),!c))}else t.moveTo(u+L,h+k),t.arc(u,h,i,s,l,!c);else t.moveTo(u+L,h+k);if(r>Ou&&R)if(I>Ou){Y=Pu(f,I),X=Ru(P,O,T,C,r,-(Z=Pu(g,I)),c),j=Ru(L,k,A,D,r,-Y,c);t.lineTo(u+X.cx+X.x0,h+X.cy+X.y0),I<S&&Y===Z?t.arc(u+X.cx,h+X.cy,I,Au(X.y0,X.x0),Au(j.y0,j.x0),!c):(Z>0&&t.arc(u+X.cx,h+X.cy,Z,Au(X.y0,X.x0),Au(X.y1,X.x1),!c),t.arc(u,h,r,Au(X.cy+X.y1,X.cx+X.x1),Au(j.cy+j.y1,j.cx+j.x1),c),Y>0&&t.arc(u+j.cx,h+j.cy,Y,Au(j.y1,j.x1),Au(j.y0,j.x0),!c))}else t.lineTo(u+P,h+O),t.arc(u,h,r,l,s,c);else t.lineTo(u+P,h+O)}else t.moveTo(u,h);t.closePath()}}}var Eu=function(){return function(){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}}(),zu=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultShape=function(){return new Eu},e.prototype.buildPath=function(t,e){Nu(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Cs);zu.prototype.type="sector";var Vu=function(){return function(){this.cx=0,this.cy=0,this.r=0,this.r0=0}}(),Bu=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultShape=function(){return new Vu},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(Cs);function Gu(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=function(t,e,n,i){var r,o,a,s,l=[],u=[],h=[],c=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,p=t.length;d<p;d++)Ft(a,a,t[d]),Ht(s,s,t[d]);Ft(a,a,i[0]),Ht(s,s,i[1])}for(d=0,p=t.length;d<p;d++){var f=t[d];if(n)r=t[d?d-1:p-1],o=t[(d+1)%p];else{if(0===d||d===p-1){l.push(Mt(t[d]));continue}r=t[d-1],o=t[d+1]}At(u,o,r),Ot(u,u,e);var g=Nt(f,r),v=Nt(f,o),m=g+v;0!==m&&(g/=m,v/=m),Ot(h,u,-g),Ot(c,u,v);var y=Tt([],f,h),x=Tt([],f,c);i&&(Ht(y,y,a),Ft(y,y,s),Ht(x,x,a),Ft(x,x,s)),l.push(y),l.push(x)}return n&&l.push(l.shift()),l}(r,i,n,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],h=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{t.moveTo(r[0][0],r[0][1]);s=1;for(var c=r.length;s<c;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}Bu.prototype.type="ring";var Fu=function(){return function(){this.points=null,this.smooth=0,this.smoothConstraint=null}}(),Hu=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultShape=function(){return new Fu},e.prototype.buildPath=function(t,e){Gu(t,e,!0)},e}(Cs);Hu.prototype.type="polygon";var Wu=function(){return function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}}(),Uu=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Wu},e.prototype.buildPath=function(t,e){Gu(t,e,!1)},e}(Cs);Uu.prototype.type="polyline";var Yu={},Zu=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}}(),Xu=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Zu},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=Rs(Yu,e,this.style);n=a.x1,i=a.y1,r=a.x2,o=a.y2}else n=e.x1,i=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,i),s<1&&(r=n*(1-s)+r*s,o=i*(1-s)+o*s),t.lineTo(r,o))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(Cs);Xu.prototype.type="line";var ju=[],qu=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}}();function Ku(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?mn:vn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?mn:vn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?Mn:Sn)(t.x1,t.cpx1,t.x2,e),(n?Mn:Sn)(t.y1,t.cpy1,t.y2,e)]}var $u=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new qu},e.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=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,i),null==l||null==u?(h<1&&(Tn(n,a,r,h,ju),a=ju[1],r=ju[2],Tn(i,s,o,h,ju),s=ju[1],o=ju[2]),t.quadraticCurveTo(a,s,r,o)):(h<1&&(_n(n,a,l,r,h,ju),a=ju[1],l=ju[2],r=ju[3],_n(i,s,u,o,h,ju),s=ju[1],u=ju[2],o=ju[3]),t.bezierCurveTo(a,s,l,u,r,o)))},e.prototype.pointAt=function(t){return Ku(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=Ku(this.shape,t,!0);return Rt(e,e)},e}(Cs);$u.prototype.type="bezier-curve";var Ju=function(){return function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}}(),Qu=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Ju},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=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*r+n,u*r+i),t.arc(n,i,r,o,a,!s)},e}(Cs);Qu.prototype.type="arc";var th=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return n(e,t),e.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()},e.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)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Cs.prototype.getBoundingRect.call(this)},e}(Cs),eh=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),nh=function(t){function e(e,n,i,r,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==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return n(e,t),e}(eh),ih=function(t){function e(e,n,i,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return n(e,t),e}(eh),rh=[0,0],oh=[0,0],ah=new Te,sh=new Te,lh=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Te;for(n=0;n<2;n++)this._axes[n]=new Te;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,s),n[3].set(r,s),e)for(var l=0;l<4;l++)n[l].transform(e);Te.sub(i[0],n[1],n[0]),Te.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,i=!e;return ah.set(1/0,1/0),sh.set(0,0),!this._intersectCheckOneSide(this,t,ah,sh,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,ah,sh,i,-1)&&(n=!1,i)||i||Te.copy(e,n?ah:sh),n},t.prototype._intersectCheckOneSide=function(t,e,n,i,r,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,rh),this._getProjMinMaxOnAxis(s,e._corners,oh),rh[1]<oh[0]||rh[0]>oh[1]){if(a=!1,r)return a;var u=Math.abs(oh[0]-rh[1]),h=Math.abs(rh[0]-oh[1]);Math.min(u,h)>i.len()&&(u<h?Te.scale(i,l,-u*o):Te.scale(i,l,h*o))}else if(n){u=Math.abs(oh[0]-rh[1]),h=Math.abs(rh[0]-oh[1]);Math.min(u,h)<n.len()&&(u<h?Te.scale(n,l,u*o):Te.scale(n,l,-h*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,o=e[0].dot(i)+r[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(i)+r[t];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},t}(),uh=[],hh=function(t){function e(){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 n(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){(e=this._displayables[t]).parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){var e;(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Ne(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(uh)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++){if(this._displayables[i].contain(t,e))return!0}return!1},e}(Ia),ch=No();function dh(t,e,n,i,r){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s="update"===t;if(e&&e.isAnimationEnabled()){var l=void 0,u=void 0,h=void 0;return i?(l=nt(i.duration,200),u=nt(i.easing,"cubicOut"),h=0):(l=e.getShallow(s?"animationDurationUpdate":"animationDuration"),u=e.getShallow(s?"animationEasingUpdate":"animationEasing"),h=e.getShallow(s?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(l=o.duration),null!=o.easing&&(u=o.easing),null!=o.delay&&(h=o.delay)),W(h)&&(h=h(n,r)),W(l)&&(l=l(n)),{duration:l||0,delay:h,easing:u}}return null}function ph(t,e,n,i,r,o,a){var s,l=!1;W(r)?(a=o,o=r,r=null):X(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var h=dh(t,i,r,u?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null);if(h&&h.duration>0){var c={duration:h.duration,delay:h.delay||0,easing:h.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,c):e.animateTo(n,c)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function fh(t,e,n,i,r,o){ph("update",t,e,n,i,r,o)}function gh(t,e,n,i,r,o){ph("enter",t,e,n,i,r,o)}function vh(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){if("leave"===t.animators[e].scope)return!0}return!1}function mh(t,e,n,i,r,o){vh(t)||ph("leave",t,e,n,i,r,o)}function yh(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),mh(t,{style:{opacity:0}},e,n,i)}function xh(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||yh(t,e,n,i)})):yh(t,e,n,i)}function _h(t){ch(t).oldStyle=t.style}var bh=Math.max,wh=Math.min,Sh={};function Mh(t){return Cs.extend(t)}var Ih=function(t,e){var i=vu(t,e);return function(t){function e(e){var n=t.call(this,e)||this;return n.applyTransform=i.applyTransform,n.buildPath=i.buildPath,n}return n(e,t),e}(fu)};function Th(t,e){return Ih(t,e)}function Ch(t,e){Sh[t]=e}function Ah(t){if(Sh.hasOwnProperty(t))return Sh[t]}function Dh(t,e,n,i){var r=mu(t,e);return n&&("center"===i&&(n=kh(n,r.getBoundingRect())),Oh(r,n)),r}function Lh(t,e,n){var i=new Ps({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(kh(e,r))}}});return i}function kh(t,e){var n,i=e.width/e.height,r=t.height*i;return n=r<=t.width?t.height:(r=t.width)/i,{x:t.x+t.width/2-r/2,y:t.y+t.height/2-n/2,width:r,height:n}}var Ph=function(t,e){for(var n=[],i=t.length,r=0;r<i;r++){var o=t[r];n.push(o.getUpdatedPathProxy(!0))}var a=new Cs(e);return a.createPathProxy(),a.buildPath=function(t){if(gu(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a};function Oh(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function Rh(t,e){return Rs(t,t,{lineWidth:e}),t}var Nh=Es;function Eh(t,e){for(var n=me([]);t&&t!==e;)xe(n,t.getLocalTransform(),n),t=t.parent;return n}function zh(t,e,n){return e&&!O(e)&&(e=gr.getLocalTransform(e)),n&&(e=Se([],e)),Gt([],t,e)}function Vh(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return o=zh(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Bh(t){return!t.isGroup}function Gh(t,e,n){if(t&&e){var i,r=(i={},t.traverse((function(t){Bh(t)&&t.anid&&(i[t.anid]=t)})),i);e.traverse((function(t){if(Bh(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),fh(t,i,n,el(t).dataIndex)}}}))}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=C({},t.shape)),e}}function Fh(t,e){return N(t,(function(t){var n=t[0];n=bh(n,e.x),n=wh(n,e.x+e.width);var i=t[1];return i=bh(i,e.y),[n,i=wh(i,e.y+e.height)]}))}function Hh(t,e){var n=bh(t.x,e.x),i=wh(t.x+t.width,e.x+e.width),r=bh(t.y,e.y),o=wh(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function Wh(t,e,n){var i=C({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),A(r,n),new Ps(i)):Dh(t.replace("path://",""),i,n,"center")}function Uh(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(Yh(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function Yh(t,e,n,i,r,o,a,s){var l,u=n-t,h=i-e,c=a-r,d=s-o,p=Zh(c,d,u,h);if((l=p)<=1e-6&&l>=-1e-6)return!1;var f=t-r,g=e-o,v=Zh(f,g,u,h)/p;if(v<0||v>1)return!1;var m=Zh(f,g,c,d)/p;return!(m<0||m>1)}function Zh(t,e,n,i){return t*i-n*e}function Xh(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=U(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&R(B(l),(function(t){yt(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=el(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:A({content:i,encodeHTMLContent:!0,formatterParams:s},r)}}function jh(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function qh(t,e){if(t)if(H(t))for(var n=0;n<t.length;n++)jh(t[n],e);else jh(t,e)}Ch("circle",_u),Ch("ellipse",wu),Ch("sector",zu),Ch("ring",Bu),Ch("polygon",Hu),Ch("polyline",Uu),Ch("rect",Bs),Ch("line",Xu),Ch("bezierCurve",$u),Ch("arc",Qu);const Kh=Object.freeze(Object.defineProperty({__proto__:null,Arc:Qu,BezierCurve:$u,BoundingRect:Ne,Circle:_u,CompoundPath:th,Ellipse:wu,Group:zr,Image:Ps,IncrementalDisplayable:hh,Line:Xu,LinearGradient:nh,OrientedBoundingRect:lh,Path:Cs,Point:Te,Polygon:Hu,Polyline:Uu,RadialGradient:ih,Rect:Bs,Ring:Bu,Sector:zu,Text:Hs,applyTransform:zh,clipPointsByRect:Fh,clipRectByRect:Hh,createIcon:Wh,extendPath:Th,extendShape:Mh,getShapeClass:Ah,getTransform:Eh,groupTransition:Gh,initProps:gh,isElementRemoved:vh,lineLineIntersect:Yh,linePolygonIntersect:Uh,makeImage:Lh,makePath:Dh,mergePath:Ph,registerShape:Ch,removeElement:mh,removeElementWithFadeOut:xh,resizePath:Oh,setTooltipConfig:Xh,subPixelOptimize:Nh,subPixelOptimizeLine:Rh,subPixelOptimizeRect:function(t){return Ns(t.shape,t.shape,t.style),t},transformDirection:Vh,traverseElements:qh,updateProps:fh},Symbol.toStringTag,{value:"Module"}));var $h={};function Jh(t,e){for(var n=0;n<sl.length;n++){var i=sl[n],r=e[i],o=t.ensureState(i);o.style=o.style||{},o.style.text=r}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}function Qh(t,e,n){var i,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;r&&(i=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=W(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:i},u=0;u<sl.length;u++){var h=sl[u],c=e[h];l[h]=nt(r?r.getFormattedLabel(o,h,null,a,c&&c.get("formatter")):null,i)}return l}function tc(t,e,n,i){n=n||$h;for(var r=t instanceof Hs,o=!1,a=0;a<ll.length;a++){if((d=e[ll[a]])&&d.getShallow("show")){o=!0;break}}var s=r?t:t.getTextContent();if(o){r||(s||(s=new Hs,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=Qh(n,e),u=e.normal,h=!!u.getShallow("show"),c=nc(u,i&&i.normal,n,!1,!r);c.text=l.normal,r||t.setTextConfig(ic(u,n,!1));for(a=0;a<sl.length;a++){var d,p=sl[a];if(d=e[p]){var f=s.ensureState(p),g=!!nt(d.getShallow("show"),h);if(g!==h&&(f.ignore=!g),f.style=nc(d,i&&i[p],n,!0,!r),f.style.text=l[p],!r)t.ensureState(p).textConfig=ic(d,n,!0)}}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(c.x=s.style.x),null!=s.style.y&&(c.y=s.style.y),s.ignore=!h,s.useStyle(c),s.dirty(),n.enableTextSetter&&(uc(s).setLabelText=function(t){var i=Qh(n,e,t);Jh(s,i)})}else s&&(s.ignore=!0);t.dirty()}function ec(t,e){e=e||"label";for(var n={normal:t.getModel(e)},i=0;i<sl.length;i++){var r=sl[i];n[r]=t.getModel([r,e])}return n}function nc(t,e,n,i,r){var o={};return function(t,e,n,i,r){n=n||$h;var o,a=e.ecModel,s=a&&a.option.textStyle,l=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||$h).rich;if(n){e=e||{};for(var i=B(n),r=0;r<i.length;r++){e[i[r]]=1}}t=t.parentModel}return e}(e);if(l)for(var u in o={},l)if(l.hasOwnProperty(u)){var h=e.getModel(["rich",u]);sc(o[u]={},h,s,n,i,r,!1,!0)}o&&(t.rich=o);var c=e.get("overflow");c&&(t.overflow=c);var d=e.get("minMargin");null!=d&&(t.margin=d);sc(t,e,s,n,i,r,!0,!1)}(o,t,n,i,r),e&&C(o,e),o}function ic(t,e,n){e=e||{};var i,r={},o=t.getShallow("rotate"),a=nt(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return"outside"===(i=t.getShallow("position")||(n?null:"inside"))&&(i=e.defaultOutsidePosition||"top"),null!=i&&(r.position=i),null!=s&&(r.offset=s),null!=o&&(o*=Math.PI/180,r.rotation=o),null!=a&&(r.distance=a),r.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",r}var rc=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],oc=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],ac=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function sc(t,e,n,i,r,o,a,s){n=!r&&n||$h;var l=i&&i.inheritColor,u=e.getShallow("color"),h=e.getShallow("textBorderColor"),c=nt(e.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||(u=l||null),"inherit"!==h&&"auto"!==h||(h=l||null),o||(u=u||n.color,h=h||n.textBorderColor),null!=u&&(t.fill=u),null!=h&&(t.stroke=h);var d=nt(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=d&&(t.lineWidth=d);var p=nt(e.getShallow("textBorderType"),n.textBorderType);null!=p&&(t.lineDash=p);var f=nt(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=f&&(t.lineDashOffset=f),r||null!=c||s||(c=i&&i.defaultOpacity),null!=c&&(t.opacity=c),r||o||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var g=0;g<rc.length;g++){var v=rc[g];null!=(y=nt(e.getShallow(v),n[v]))&&(t[v]=y)}for(g=0;g<oc.length;g++){v=oc[g];null!=(y=e.getShallow(v))&&(t[v]=y)}if(null==t.verticalAlign){var m=e.getShallow("baseline");null!=m&&(t.verticalAlign=m)}if(!a||!i.disableBox){for(g=0;g<ac.length;g++){var y;v=ac[g];null!=(y=e.getShallow(v))&&(t[v]=y)}var x=e.getShallow("borderType");null!=x&&(t.borderDash=x),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function lc(t,e){var n=e&&e.getModel("textStyle");return st([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(" "))}var uc=No();function hc(t,e,n,i){if(t){var r=uc(t);r.prevValue=r.value,r.value=n;var o=e.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=i,r.statesModels=e)}}function cc(t,e,n,i,r){var o=uc(t);if(o.valueAnimation&&o.prevValue!==o.value){var a=o.defaultInterpolatedText,s=nt(o.interpolatedValue,o.prevValue),l=o.value;t.percent=0,(null==o.prevValue?gh:fh)(t,{percent:1},i,e,null,(function(i){var u=Uo(n,o.precision,s,l,i);o.interpolatedValue=1===i?null:u;var h=Qh({labelDataIndex:e,labelFetcher:r,defaultText:a?a(u):u+""},o.statesModels,u);Jh(t,h)}))}}var dc,pc,fc=["textStyle","color"],gc=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],vc=new Hs,mc=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(fc):null)},t.prototype.getFont=function(){return lc({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<gc.length;n++)e[gc[n]]=this.getShallow(gc[n]);return vc.useStyle(e),vc.update(),vc.getBoundingRect()},t}(),yc=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],xc=ta(yc),_c=function(){function t(){}return t.prototype.getLineStyle=function(t){return xc(this,t)},t}(),bc=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],wc=ta(bc),Sc=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return wc(this,t,e)},t}(),Mc=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){},t.prototype.mergeOption=function(t,e){I(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,i=null==n?n:n[t];if(null==i&&!e){var r=this.parentModel;r&&(i=r.getShallow(t))}return i},t.prototype.getModel=function(e,n){var i=null!=e,r=i?this.parsePath(e):null;return new t(i?this._doGet(r):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)(M(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(!r.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 i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();jo(Mc),dc=Mc,pc=["__\0is_clz",Ko++].join("_"),dc.prototype[pc]=!0,dc.isInstance=function(t){return!(!t||!t[pc])},P(Mc,_c),P(Mc,Sc),P(Mc,na),P(Mc,mc);var Ic=Math.round(10*Math.random());function Tc(t){return[t||"",Ic++].join("_")}function Cc(t,e){return I(I({},t,!0),e,!0)}var Ac="ZH",Dc="EN",Lc=Dc,kc={},Pc={},Oc=r.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||Lc).toUpperCase().indexOf(Ac)>-1?Ac:Lc;function Rc(t,e){t=t.toUpperCase(),Pc[t]=new Mc(e),kc[t]=e}function Nc(t){return Pc[t]}Rc(Dc,{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",custom:"Custom chart",chart:"Chart"}},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:". "}}}}),Rc(Ac,{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:"旭日图",custom:"自定义图表",chart:"图表"}},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:""}}}});var Ec=1e3,zc=6e4,Vc=36e5,Bc=864e5,Gc=31536e6,Fc={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}"},Hc="{yyyy}-{MM}-{dd}",Wc={year:"{yyyy}",month:"{yyyy}-{MM}",day:Hc,hour:Hc+" "+Fc.hour,minute:Hc+" "+Fc.minute,second:Hc+" "+Fc.second,millisecond:Fc.none},Uc=["year","month","day","hour","minute","second","millisecond"],Yc=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Zc(t,e){return"0000".substr(0,e-(t+="").length)+t}function Xc(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 jc(t){return t===Xc(t)}function qc(t,e,n,i){var r=so(t),o=r[Jc(n)](),a=r[Qc(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[td(n)](),u=r["get"+(n?"UTC":"")+"Day"](),h=r[ed(n)](),c=(h-1)%12+1,d=r[nd(n)](),p=r[id(n)](),f=r[rd(n)](),g=h>=12?"pm":"am",v=g.toUpperCase(),m=(i instanceof Mc?i:Nc(i||Oc)||Pc[Lc]).getModel("time"),y=m.get("month"),x=m.get("monthAbbr"),_=m.get("dayOfWeek"),b=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,v+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,Zc(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,x[a-1]).replace(/{MM}/g,Zc(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Zc(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Zc(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,Zc(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Zc(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Zc(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Zc(f,3)).replace(/{S}/g,f+"")}function Kc(t,e){var n=so(t),i=n[Qc(e)]()+1,r=n[td(e)](),o=n[ed(e)](),a=n[nd(e)](),s=n[id(e)](),l=0===n[rd(e)](),u=l&&0===s,h=u&&0===a,c=h&&0===o,d=c&&1===r;return d&&1===i?"year":d?"month":c?"day":h?"hour":u?"minute":l?"second":"millisecond"}function $c(t,e,n){var i=Z(t)?so(t):t;switch(e=e||Kc(t,n)){case"year":return i[Jc(n)]();case"half-year":return i[Qc(n)]()>=6?1:0;case"quarter":return Math.floor((i[Qc(n)]()+1)/4);case"month":return i[Qc(n)]();case"day":return i[td(n)]();case"half-day":return i[ed(n)]()/24;case"hour":return i[ed(n)]();case"minute":return i[nd(n)]();case"second":return i[id(n)]();case"millisecond":return i[rd(n)]()}}function Jc(t){return t?"getUTCFullYear":"getFullYear"}function Qc(t){return t?"getUTCMonth":"getMonth"}function td(t){return t?"getUTCDate":"getDate"}function ed(t){return t?"getUTCHours":"getHours"}function nd(t){return t?"getUTCMinutes":"getMinutes"}function id(t){return t?"getUTCSeconds":"getSeconds"}function rd(t){return t?"getUTCMilliseconds":"getMilliseconds"}function od(t){return t?"setUTCFullYear":"setFullYear"}function ad(t){return t?"setUTCMonth":"setMonth"}function sd(t){return t?"setUTCDate":"setDate"}function ld(t){return t?"setUTCHours":"setHours"}function ud(t){return t?"setUTCMinutes":"setMinutes"}function hd(t){return t?"setUTCSeconds":"setSeconds"}function cd(t){return t?"setUTCMilliseconds":"setMilliseconds"}function dd(t){if(!go(t))return U(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function pd(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}var fd=ot;function gd(t,e,n){function i(t){return t&&st(t)?t:"-"}function r(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?so(t):t;if(!isNaN(+s))return qc(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return Y(t)?i(t):Z(t)&&r(t)?t+"":"-";var l=fo(t);return r(l)?dd(l):Y(t)?i(t):"boolean"==typeof t?t+"":"-"}var vd=["a","b","c","d","e","f","g"],md=function(t,e){return"{"+t+(null==e?"":e)+"}"};function yd(t,e,n){H(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=vd[o];t=t.replace(md(a),md(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(md(vd[l],s),n?ne(u):u)}return t}function xd(t,e){var n=U(t)?{color:t,extraCssText:e}:t||{},i=n.color,r=n.type;e=n.extraCssText;var o=n.renderMode||"html";return i?"html"===o?"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+ne(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ne(i)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|}  ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}function _d(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=so(e),r=n?"getUTC":"get",o=i[r+"FullYear"](),a=i[r+"Month"]()+1,s=i[r+"Date"](),l=i[r+"Hours"](),u=i[r+"Minutes"](),h=i[r+"Seconds"](),c=i[r+"Milliseconds"]();return t=t.replace("MM",Zc(a,2)).replace("M",a).replace("yyyy",o).replace("yy",Zc(o%100+"",2)).replace("dd",Zc(s,2)).replace("d",s).replace("hh",Zc(l,2)).replace("h",l).replace("mm",Zc(u,2)).replace("m",u).replace("ss",Zc(h,2)).replace("s",h).replace("SSS",Zc(c,3))}function bd(t,e){return e=e||"transparent",U(t)?t:X(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function wd(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var Sd=R,Md=["left","right","top","bottom","width","height"],Id=[["width","left","right"],["height","top","bottom"]];function Td(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(l,u){var h,c,d=l.getBoundingRect(),p=e.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===t){var g=d.width+(f?-f.x+d.x:0);(h=o+g)>i||l.newline?(o=0,h=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var v=d.height+(f?-f.y+d.y:0);(c=a+v)>r||l.newline?(o+=s+n,a=0,c=v,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=h+n:a=c+n)}))}var Cd=Td;function Ad(t,e,n){n=fd(n||0);var i=e.width,r=e.height,o=qr(t.left,i),a=qr(t.top,r),s=qr(t.right,i),l=qr(t.bottom,r),u=qr(t.width,i),h=qr(t.height,r),c=n[2]+n[0],d=n[1]+n[3],p=t.aspect;switch(isNaN(u)&&(u=i-s-d-o),isNaN(h)&&(h=r-l-c-a),null!=p&&(isNaN(u)&&isNaN(h)&&(p>i/r?u=.8*i:h=.8*r),isNaN(u)&&(u=p*h),isNaN(h)&&(h=u/p)),isNaN(o)&&(o=i-s-u-d),isNaN(a)&&(a=r-l-h-c),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-d}switch(t.top||t.bottom){case"middle":case"center":a=r/2-h/2-n[0];break;case"bottom":a=r-h-c}o=o||0,a=a||0,isNaN(u)&&(u=i-d-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));var f=new Ne(o+n[3],a+n[0],u,h);return f.margin=n,f}function Dd(t,e,n,i,r,o){var a,s=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],u=r&&r.boundingMode||"all";if((o=o||t).x=t.x,o.y=t.y,!s&&!l)return!1;if("raw"===u)a="group"===t.type?new Ne(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(a=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();(a=a.clone()).applyTransform(h)}var c=Ad(A({width:a.width,height:a.height},e),n,i),d=s?c.x-a.x:0,p=l?c.y-a.y:0;return"raw"===u?(o.x=d,o.y=p):(o.x+=d,o.y+=p),o===t&&t.markRedraw(),!0}function Ld(t){var e=t.layoutMode||t.constructor.layoutMode;return X(e)?e:e?{type:e}:null}function kd(t,e,n){var i=n&&n.ignoreSize;!H(i)&&(i=[i,i]);var r=a(Id[0],0),o=a(Id[1],1);function a(n,r){var o={},a=0,u={},h=0;if(Sd(n,(function(e){u[e]=t[e]})),Sd(n,(function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&h++})),i[r])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(2!==h&&a){if(a>=2)return o;for(var c=0;c<n.length;c++){var d=n[c];if(!s(o,d)&&s(t,d)){o[d]=t[d];break}}return o}return u}function s(t,e){return t.hasOwnProperty(e)}function l(t,e){return null!=t[e]&&"auto"!==t[e]}function u(t,e,n){Sd(t,(function(t){e[t]=n[t]}))}u(Id[0],t,r),u(Id[1],t,o)}function Pd(t){return Od({},t)}function Od(t,e){return e&&t&&Sd(Md,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}F(Td,"vertical"),F(Td,"horizontal");var Rd=No(),Nd=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=Tc("ec_cpt_model"),r}var i;return n(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=Ld(this),i=n?Pd(t):{};I(t,e.getTheme().get(this.mainType)),I(t,this.getDefaultOption()),n&&kd(t,i,n)},e.prototype.mergeOption=function(t,e){I(this.option,t,!0);var n=Ld(this);n&&kd(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!function(t){return!(!t||!t[Zo])}(t))return t.defaultOption;var e=Rd(this);if(!e.defaultOption){for(var n=[],i=t;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;a>=0;a--)o=I(o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return Fo(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},e.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")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=((i=e.prototype).type="component",i.id="",i.name="",i.mainType="",i.subType="",void(i.componentIndex=0)),e}(Mc);qo(Nd,Mc),Qo(Nd),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=Xo(t);e[i.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=Xo(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r}}(Nd),function(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,i,r,o){if(t.length){var a=function(t){var i={},r=[];return R(t,(function(o){var a=n(i,o),s=function(t,e){var n=[];return R(t,(function(t){L(e,t)>=0&&n.push(t)})),n}(a.originalDeps=e(o),t);a.entryCount=s.length,0===a.entryCount&&r.push(o),R(s,(function(t){L(a.predecessor,t)<0&&a.predecessor.push(t);var e=n(i,t);L(e.successor,t)<0&&e.successor.push(o)}))})),{graph:i,noEntryList:r}}(i),s=a.graph,l=a.noEntryList,u={};for(R(t,(function(t){u[t]=!0}));l.length;){var h=l.pop(),c=s[h],d=!!u[h];d&&(r.call(o,h,c.originalDeps.slice()),delete u[h]),R(c.successor,d?f:p)}R(u,(function(){throw new Error("")}))}function p(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function f(t){u[t]=!0,p(t)}}}(Nd,(function(t){var e=[];R(Nd.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=N(e,(function(t){return Xo(t).main})),"dataset"!==t&&L(e,"dataset")<=0&&e.unshift("dataset");return e}));var Ed="";"undefined"!=typeof navigator&&(Ed=navigator.platform||"");var zd="rgba(0, 0, 0, 0.2)";const Vd={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:zd,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:zd,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:zd,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:zd,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:zd,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:zd,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Ed.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};var Bd=ft(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Gd="original",Fd="arrayRows",Hd="objectRows",Wd="keyedColumns",Ud="typedArray",Yd="unknown",Zd="column",Xd="row",jd=1,qd=2,Kd=3,$d=No();function Jd(t,e,n){var i={},r=tp(e);if(!r||!t)return i;var o,a,s=[],l=[],u=e.ecModel,h=$d(u).datasetMap,c=r.uid+"_"+n.seriesLayoutBy;R(t=t.slice(),(function(e,n){var r=X(e)?e:t[n]={name:e};"ordinal"===r.type&&null==o&&(o=n,a=f(r)),i[r.name]=[]}));var d=h.get(c)||h.set(c,{categoryWayDim:a,valueWayDim:0});function p(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function f(t){var e=t.dimsDef;return e?e.length:1}return R(t,(function(t,e){var n=t.name,r=f(t);if(null==o){var a=d.valueWayDim;p(i[n],a,r),p(l,a,r),d.valueWayDim+=r}else if(o===e)p(i[n],0,r),p(s,0,r);else{a=d.categoryWayDim;p(i[n],a,r),p(l,a,r),d.categoryWayDim+=r}})),s.length&&(i.itemName=s),l.length&&(i.seriesName=l),i}function Qd(t,e,n){var i={};if(!tp(t))return i;var r,o=e.sourceFormat,a=e.dimensionsDefine;o!==Hd&&o!==Wd||R(a,(function(t,e){"name"===(X(t)?t.name:t)&&(r=e)}));var s=function(){for(var t={},i={},s=[],l=0,u=Math.min(5,n);l<u;l++){var h=np(e.data,o,e.seriesLayoutBy,a,e.startIndex,l);s.push(h);var c=h===Kd;if(c&&null==t.v&&l!==r&&(t.v=l),(null==t.n||t.n===t.v||!c&&s[t.n]===Kd)&&(t.n=l),d(t)&&s[t.n]!==Kd)return t;c||(h===qd&&null==i.v&&l!==r&&(i.v=l),null!=i.n&&i.n!==i.v||(i.n=l))}function d(t){return null!=t.v&&null!=t.n}return d(t)?t:d(i)?i:null}();if(s){i.value=[s.v];var l=null!=r?r:s.n;i.itemName=[l],i.seriesName=[l]}return i}function tp(t){if(!t.get("data",!0))return Fo(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Bo).models[0]}function ep(t,e){return np(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function np(t,e,n,i,r,o){var a,s,l;if(q(t))return Kd;if(i){var u=i[o];X(u)?(s=u.name,l=u.type):U(u)&&(s=u)}if(null!=l)return"ordinal"===l?jd:Kd;if(e===Fd){var h=t;if(n===Xd){for(var c=h[o],d=0;d<(c||[]).length&&d<5;d++)if(null!=(a=y(c[r+d])))return a}else for(d=0;d<h.length&&d<5;d++){var p=h[r+d];if(p&&null!=(a=y(p[o])))return a}}else if(e===Hd){var f=t;if(!s)return Kd;for(d=0;d<f.length&&d<5;d++){if((v=f[d])&&null!=(a=y(v[s])))return a}}else if(e===Wd){if(!s)return Kd;if(!(c=t[s])||q(c))return Kd;for(d=0;d<c.length&&d<5;d++)if(null!=(a=y(c[d])))return a}else if(e===Gd){var g=t;for(d=0;d<g.length&&d<5;d++){var v,m=To(v=g[d]);if(!H(m))return Kd;if(null!=(a=y(m[o])))return a}}function y(t){var e=U(t);return null!=t&&Number.isFinite(Number(t))&&""!==t?e?qd:Kd:e&&"-"!==t?jd:void 0}return Kd}var ip=ft();var rp,op,ap,sp=No(),lp=No(),up=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var i=So(this.get("color",!0)),r=this.get("colorLayer",!0);return cp(this,sp,i,r,t,e,n)},t.prototype.clearColorPalette=function(){var t,e;(e=sp)(t=this).paletteIdx=0,e(t).paletteNameMap={}},t}();function hp(t,e,n,i){var r=So(t.get(["aria","decal","decals"]));return cp(t,lp,r,null,e,n,i)}function cp(t,e,n,i,r,o,a){var s=e(o=o||t),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var h=null!=a&&i?function(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}(i,a):n;if((h=h||n)&&h.length){var c=h[l];return r&&(u[r]=c),s.paletteIdx=(l+1)%h.length,c}}var dp="\0_ec_inner",pp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new Mc(i),this._locale=new Mc(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=vp(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,vp(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):ap(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&R(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=ft(),s=e&&e.replaceMergeMainTypeMap;$d(this).datasetMap=ft(),R(t,(function(t,e){null!=t&&(Nd.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?M(t):I(n[e],t,!0))})),s&&s.each((function(t,e){Nd.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),Nd.topologicalTravel(o,Nd.getAllClassMainTypes(),(function(e){var o=function(t,e,n){var i=ip.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}(this,e,So(t[e])),a=i.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=Ao(a,o,l);(function(t,e,n){R(t,(function(t){var i=t.newOption;X(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,i){return e.type?e.type:n?n.subType:i.determineSubType(t,e)}(e,i,t.existing,n))}))})(u,e,Nd),n[e]=null,i.set(e,null),r.set(e,0);var h,c=[],d=[],p=0;R(u,(function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,a=Nd.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(h)return;h=!0}if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=C({componentIndex:n},t.keyInfo);C(i=new a(r,this,this,s),s),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(c.push(i.option),d.push(i),p++):(c.push(void 0),d.push(void 0))}),this),n[e]=c,i.set(e,d),r.set(e,p),"series"===e&&rp(this)}),this),this._seriesIndices||rp(this)},e.prototype.getOption=function(){var t=M(this.option);return R(t,(function(e,n){if(Nd.hasClass(n)){for(var i=So(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!Oo(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}})),delete t[dp],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,o=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=i?(n=[],R(So(i),(function(t){a[t]&&n.push(a[t])}))):n=null!=r?fp("id",r,a):null!=o?fp("name",o,a):z(a,(function(t){return!!t})),gp(n,t)):[]},e.prototype.findComponents=function(t){var e,n,i,r,o,a=t.query,s=t.mainType,l=(n=s+"Index",i=s+"Id",r=s+"Name",!(e=a)||null==e[n]&&null==e[i]&&null==e[r]?null:{mainType:s,index:e[n],id:e[i],name:e[r]}),u=l?this.queryComponents(l):z(this._componentsMap.get(s),(function(t){return!!t}));return o=gp(u,t),t.filter?z(o,t.filter):o},e.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(W(t)){var r=e,o=t;i.each((function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&o.call(r,e,i,i.componentIndex)}}))}else for(var a=U(t)?i.get(t):X(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=ko(t,null);return z(this._componentsMap.get("series"),(function(t){return!!t&&null!=e&&t.name===e}))},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return z(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return z(this._componentsMap.get("series"),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){op(this),R(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)}),this)},e.prototype.eachRawSeries=function(t,e){R(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,n){op(this),R(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)}),this)},e.prototype.eachRawSeriesByType=function(t,e,n){return R(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return op(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){op(this);var n=[];R(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];t.call(e,r,i)&&n.push(i)}),this),this._seriesIndices=n,this._seriesIndicesMap=ft(n)},e.prototype.restoreData=function(t){rp(this);var e=this._componentsMap,n=[];e.each((function(t,e){Nd.hasClass(e)&&n.push(e)})),Nd.topologicalTravel(n,Nd.getAllClassMainTypes(),(function(n){R(e.get(n),(function(e){!e||"series"===n&&function(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}(e,t)||e.restoreData()}))}))},e.internalField=(rp=function(t){var e=t._seriesIndices=[];R(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=ft(e)},op=function(t){},void(ap=function(t,e){t.option={},t.option[dp]=1,t._componentsMap=ft({series:[]}),t._componentsCount=ft();var n,i,r,o=e.aria;X(o)&&null==o.enabled&&(o.enabled=!0),n=e,i=t._theme.option,r=n.color&&!n.colorLayer,R(i,(function(t,e){"colorLayer"===e&&r||Nd.hasClass(e)||("object"==typeof t?n[e]=n[e]?I(n[e],t,!1):M(t):null==n[e]&&(n[e]=t))})),I(e,Vd,!1),t._mergeOption(e,null)})),e}(Mc);function fp(t,e,n){if(H(e)){var i=ft();return R(e,(function(t){null!=t&&(null!=ko(t,null)&&i.set(t,!0))})),z(n,(function(e){return e&&i.get(e[t])}))}var r=ko(e,null);return z(n,(function(e){return e&&null!=r&&e[t]===r}))}function gp(t,e){return e.hasOwnProperty("subType")?z(t,(function(t){return t&&t.subType===e.subType})):t}function vp(t){var e=ft();return t&&R(So(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}P(pp,up);var mp=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],yp=function(){return function(t){R(mp,(function(e){this[e]=G(t[e],t)}),this)}}(),xp={},_p=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];R(xp,(function(i,r){var o=i.create(t,e);n=n.concat(o||[])})),this._coordinateSystems=n},t.prototype.update=function(t,e){R(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){xp[t]=e},t.get=function(t){return xp[t]},t}(),bp=/^(min|max)?(.+)$/,wp=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(R(So(t.series),(function(t){t&&t.data&&q(t.data)&&ut(t.data)})),R(So(t.dataset),(function(t){t&&t.source&&q(t.source)&&ut(t.source)}))),t=M(t);var i=this._optionBackup,r=function(t,e,n){var i,r,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,h=!!t.media,c=!!(l||s||a&&a.timeline);a?(r=a).timeline||(r.timeline=s):((c||h)&&(t.options=t.media=null),r=t);h&&H(u)&&R(u,(function(t){t&&t.option&&(t.query?o.push(t):i||(i=t))}));function d(t){R(e,(function(e){e(t,n)}))}return d(r),R(l,(function(t){return d(t)})),R(o,(function(t){return d(t.option)})),{baseOption:r,timelineOptions:l||[],mediaDefault:i,mediaList:o}}(t,e,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.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=[],M(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=M(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n,i=this._api.getWidth(),r=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var u=0,h=o.length;u<h;u++)Sp(o[u].query,i,r)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(e=s,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(l=N(s,(function(t){return M(-1===t?a.option:o[t].option)}))),this._currentMediaIndices=s,l},t}();function Sp(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return R(t,(function(t,e){var n=e.match(bp);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e})(i[a],t,o)||(r=!1)}})),r}var Mp=R,Ip=X,Tp=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Cp(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=Tp.length;n<i;n++){var r=Tp[n],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?I(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?I(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function Ap(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,A(t[e],i)):t[e]=i),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function Dp(t){Ap(t,"itemStyle"),Ap(t,"lineStyle"),Ap(t,"areaStyle"),Ap(t,"label"),Ap(t,"labelLine"),Ap(t,"upperLabel"),Ap(t,"edgeLabel")}function Lp(t,e){var n=Ip(t)&&t[e],i=Ip(n)&&n.textStyle;if(i)for(var r=0,o=Io.length;r<o;r++){var a=Io[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}function kp(t){t&&(Dp(t),Lp(t,"label"),t.emphasis&&Lp(t.emphasis,"label"))}function Pp(t){return H(t)?t:t?[t]:[]}function Op(t){return(H(t)?t[0]:t)||{}}function Rp(t,e){Mp(Pp(t.series),(function(t){Ip(t)&&function(t){if(Ip(t)){Cp(t),Dp(t),Lp(t,"label"),Lp(t,"upperLabel"),Lp(t,"edgeLabel"),t.emphasis&&(Lp(t.emphasis,"label"),Lp(t.emphasis,"upperLabel"),Lp(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Cp(e),kp(e));var n=t.markLine;n&&(Cp(n),kp(n));var i=t.markArea;i&&kp(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!q(o))for(var a=0;a<o.length;a++)kp(o[a]);R(t.categories,(function(t){Dp(t)}))}if(r&&!q(r))for(a=0;a<r.length;a++)kp(r[a]);if((e=t.markPoint)&&e.data){var s=e.data;for(a=0;a<s.length;a++)kp(s[a])}if((n=t.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)H(l[a])?(kp(l[a][0]),kp(l[a][1])):kp(l[a])}"gauge"===t.type?(Lp(t,"axisLabel"),Lp(t,"title"),Lp(t,"detail")):"treemap"===t.type?(Ap(t.breadcrumb,"itemStyle"),R(t.levels,(function(t){Dp(t)}))):"tree"===t.type&&Dp(t.leaves)}}(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Mp(n,(function(e){Mp(Pp(t[e]),(function(t){t&&(Lp(t,"axisLabel"),Lp(t.axisPointer,"label"))}))})),Mp(Pp(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;Lp(e,"axisLabel"),Lp(e&&e.axisPointer,"label")})),Mp(Pp(t.calendar),(function(t){Ap(t,"itemStyle"),Lp(t,"dayLabel"),Lp(t,"monthLabel"),Lp(t,"yearLabel")})),Mp(Pp(t.radar),(function(t){Lp(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)})),Mp(Pp(t.geo),(function(t){Ip(t)&&(kp(t),Mp(Pp(t.regions),(function(t){kp(t)})))})),Mp(Pp(t.timeline),(function(t){kp(t),Ap(t,"label"),Ap(t,"itemStyle"),Ap(t,"controlStyle",!0);var e=t.data;H(e)&&R(e,(function(t){X(t)&&(Ap(t,"label"),Ap(t,"itemStyle"))}))})),Mp(Pp(t.toolbox),(function(t){Ap(t,"iconStyle"),Mp(t.feature,(function(t){Ap(t,"iconStyle")}))})),Lp(Op(t.axisPointer),"label"),Lp(Op(t.tooltip).axisPointer,"label")}function Np(t){t&&R(Ep,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var Ep=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],zp=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Vp=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Bp(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<Vp.length;n++){var i=Vp[n][1],r=Vp[n][0];null!=e[i]&&(e[r]=e[i])}}function Gp(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Fp(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Hp(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&Hp(t[n].children,e)}function Wp(t,e){Rp(t,e),t.series=So(t.series),R(t.series,(function(t){if(X(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){if(null!=t.clockWise&&(t.clockwise=t.clockWise),Gp(t.label),(r=t.data)&&!q(r))for(var n=0;n<r.length;n++)Gp(r[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var i=function(t,e){for(var n=e.split(","),i=t,r=0;r<n.length&&null!=(i=i&&i[n[r]]);r++);return i}(t,"pointer.color");null!=i&&function(t,e,n){for(var i,r=e.split(","),o=t,a=0;a<r.length-1;a++)null==o[i=r[a]]&&(o[i]={}),o=o[i];null==o[r[a]]&&(o[r[a]]=n)}(t,"itemStyle.color",i)}else if("bar"===e){var r;if(Bp(t),Bp(t.backgroundStyle),Bp(t.emphasis),(r=t.data)&&!q(r))for(n=0;n<r.length;n++)"object"==typeof r[n]&&(Bp(r[n]),Bp(r[n]&&r[n].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),Fp(t),Hp(t.data,Fp)}else"graph"===e||"sankey"===e?function(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&A(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),Np(t)}})),t.dataRange&&(t.visualMap=t.dataRange),R(zp,(function(e){var n=t[e];n&&(H(n)||(n=[n]),R(n,(function(t){Np(t)})))}))}function Up(t){R(t,(function(e,n){var i=[],r=[NaN,NaN],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,d,p=a.get(e.stackedDimension,h);if(isNaN(p))return r;s?d=a.getRawIndex(h):c=a.get(e.stackedByDimension,h);for(var f=NaN,g=n-1;g>=0;g--){var v=t[g];if(s||(d=v.data.rawIndexOf(v.stackedByDimension,c)),d>=0){var m=v.data.getByRawIndex(v.stackResultDimension,d);if("all"===l||"positive"===l&&m>0||"negative"===l&&m<0||"samesign"===l&&p>=0&&m>0||"samesign"===l&&p<=0&&m<0){p=no(p,m),f=m;break}}}return i[0]=p,i[1]=f,i}))}))}var Yp,Zp,Xp,jp,qp,Kp=function(){return function(t){this.data=t.data||(t.sourceFormat===Wd?{}:[]),this.sourceFormat=t.sourceFormat||Yd,this.seriesLayoutBy=t.seriesLayoutBy||Zd,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 i=e[n];null==i.type&&ep(this,n)===jd&&(i.type="ordinal")}}}();function $p(t){return t instanceof Kp}function Jp(t,e,n){n=n||tf(t);var i=e.seriesLayoutBy,r=function(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:ef(r),startIndex:a,dimensionsDetectedCount:o};if(e===Fd){var s=t;"auto"===i||null==i?nf((function(t){null!=t&&"-"!==t&&(U(t)?null==a&&(a=1):a=0)}),n,s,10):a=Z(i)?i:i?1:0,r||1!==a||(r=[],nf((function(t,e){r[e]=null!=t?t+"":""}),n,s,1/0)),o=r?r.length:n===Xd?s.length:s[0]?s[0].length:null}else if(e===Hd)r||(r=function(t){var e,n=0;for(;n<t.length&&!(e=t[n++]););if(e)return B(e)}(t));else if(e===Wd)r||(r=[],R(t,(function(t,e){r.push(e)})));else if(e===Gd){var l=To(t[0]);o=H(l)&&l.length||1}return{startIndex:a,dimensionsDefine:ef(r),dimensionsDetectedCount:o}}(t,n,i,e.sourceHeader,e.dimensions);return new Kp({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:M(e)})}function Qp(t){return new Kp({data:t,sourceFormat:q(t)?Ud:Gd})}function tf(t){var e=Yd;if(q(t))e=Ud;else if(H(t)){0===t.length&&(e=Fd);for(var n=0,i=t.length;n<i;n++){var r=t[n];if(null!=r){if(H(r)||q(r)){e=Fd;break}if(X(r)){e=Hd;break}}}}else if(X(t))for(var o in t)if(yt(t,o)&&O(t[o])){e=Wd;break}return e}function ef(t){if(t){var e=ft();return N(t,(function(t,n){var i={name:(t=X(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var r=e.get(i.name);return r?i.name+="-"+r.count++:e.set(i.name,{count:1}),i}))}}function nf(t,e,n,i){if(e===Xd)for(var r=0;r<n.length&&r<i;r++)t(n[r]?n[r][0]:null,r);else{var o=n[0]||[];for(r=0;r<o.length&&r<i;r++)t(o[r],r)}}function rf(t){var e=t.sourceFormat;return e===Hd||e===Wd}var of=function(){function t(t,e){var n=$p(t)?t:Qp(t);this._source=n;var i=this._data=n.data;n.sourceFormat===Ud&&(this._offset=0,this._dimSize=e,this._data=i),qp(this,i,n)}var e;return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=((e=t.prototype).pure=!1,void(e.persistent=!0)),t.internalField=function(){var t;qp=function(t,r,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine;if(C(t,jp[gf(a,s)]),a===Ud)t.getItem=e,t.count=i,t.fillStorage=n;else{var h=lf(a,s);t.getItem=G(h,null,r,l,u);var c=cf(a,s);t.count=G(c,null,r,l,u)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;o<i;o++)e[o]=n[r+o];return e},n=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],h=e-t,c=n[a],d=0;d<h;d++){var p=r[d*o+a];c[t+d]=p,p<l&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={})[Fd+"_"+Zd]={pure:!0,appendData:r},t[Fd+"_"+Xd]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Hd]={pure:!0,appendData:r},t[Wd]={pure:!0,appendData:function(t){var e=this._data;R(t,(function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])}))}},t[Gd]={appendData:r},t[Ud]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},jp=t}(),t}(),af=function(t,e,n,i){return t[i]},sf=((Yp={})[Fd+"_"+Zd]=function(t,e,n,i){return t[i+e]},Yp[Fd+"_"+Xd]=function(t,e,n,i,r){i+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},Yp[Hd]=af,Yp[Wd]=function(t,e,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=t[n[a].name];o[a]=s?s[i]:null}return o},Yp[Gd]=af,Yp);function lf(t,e){return sf[gf(t,e)]}var uf=function(t,e,n){return t.length},hf=((Zp={})[Fd+"_"+Zd]=function(t,e,n){return Math.max(0,t.length-e)},Zp[Fd+"_"+Xd]=function(t,e,n){var i=t[0];return i?Math.max(0,i.length-e):0},Zp[Hd]=uf,Zp[Wd]=function(t,e,n){var i=t[n[0].name];return i?i.length:0},Zp[Gd]=uf,Zp);function cf(t,e){return hf[gf(t,e)]}var df=function(t,e,n){return t[e]},pf=((Xp={})[Fd]=df,Xp[Hd]=function(t,e,n){return t[n]},Xp[Wd]=df,Xp[Gd]=function(t,e,n){var i=To(t);return i instanceof Array?i[e]:i},Xp[Ud]=df,Xp);function ff(t){return pf[t]}function gf(t,e){return t===Fd?t+"_"+e:t}function vf(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=r.getDimensionProperty(a);return ff(o)(i,a,s)}var l=i;return o===Gd&&(l=To(i)),l}}}var mf=/\{@(.+?)\}/g,yf=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=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,d=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:r,data:a,dataType:e,value:i,color:l,borderColor:u,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,i,r,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);(o&&(s.value=o.interpolatedValue),null!=i&&H(s.value)&&(s.value=s.value[i]),r)||(r=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]));return W(r)?(s.status=e,s.dimensionIndex=i,r(s)):U(r)?yd(r,s).replace(mf,(function(e,n){var i=n.length,r=n;"["===r.charAt(0)&&"]"===r.charAt(i-1)&&(r=+r.slice(1,i-1));var s=vf(a,t,r);if(o&&H(o.interpolatedValue)){var l=a.getDimensionIndex(r);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""})):void 0},t.prototype.getRawValue=function(t,e){return vf(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function xf(t){var e,n;return X(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function _f(t){return new bf(t)}var bf=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){var e,n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var o,a=h(this._modBy),s=this._modDataCount||0,l=h(t&&t.modBy),u=t&&t.modDataCount||0;function h(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,p=Math.min(null!=c?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(o||d<p)){var f=this._progress;if(H(f))for(var g=0;g<f.length;g++)this._doProgress(f[g],d,p,l,u);else this._doProgress(f,d,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,i,r){wf.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:wf.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),H(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.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}(),wf=function(){var t,e,n,i,r,o={reset:function(l,u,h,c){e=l,t=u,n=h,i=c,r=Math.ceil(i/n),o.next=n>1&&i>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%r*n+Math.ceil(e/r),a=e>=t?null:o<i?o:e;return e++,a}}();function Sf(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||Z(t)||null==t||"-"===t||(t=+so(t)),null==t||""===t?NaN:Number(t))}var Mf=ft({number:function(t){return parseFloat(t)},time:function(t){return+so(t)},trim:function(t){return U(t)?st(t):t}});function If(t){return Mf.get(t)}var Tf={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},Cf=function(){function t(t,e){if(!Z(e)){xo("")}this._opFn=Tf[t],this._rvalFloat=fo(e)}return t.prototype.evaluate=function(t){return Z(t)?this._opFn(t,this._rvalFloat):this._opFn(fo(t),this._rvalFloat)},t}(),Af=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=Z(t)?t:fo(t),i=Z(e)?e:fo(e),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=U(t),s=U(e);a&&(n=s?t:0),s&&(i=a?e:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t}(),Df=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=fo(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=fo(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function Lf(t,e){return"eq"===t||"ne"===t?new Df("eq"===t,e):yt(Tf,t)?new Cf(t,e):null}var kf=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return Sf(t,e)},t}();function Pf(t){if(!Vf(t.sourceFormat)){xo("")}return t.data}function Of(t){var e=t.sourceFormat,n=t.data;if(!Vf(e)){xo("")}if(e===Fd){for(var i=[],r=0,o=n.length;r<o;r++)i.push(n[r].slice());return i}if(e===Hd){for(i=[],r=0,o=n.length;r<o;r++)i.push(C({},n[r]));return i}}function Rf(t,e,n){if(null!=n)return Z(n)||!isNaN(n)&&!yt(e,n)?t[n]:yt(e,n)?e[n]:void 0}function Nf(t){return M(t)}var Ef=ft();function zf(t,e,n,i){e.length||xo(""),X(t)||xo("");var r=t.type,o=Ef.get(r);o||xo("");var a=N(e,(function(t){return function(t,e){var n=new kf,i=t.data,r=n.sourceFormat=t.sourceFormat,o=t.startIndex;t.seriesLayoutBy!==Zd&&xo("");var a=[],s={},l=t.dimensionsDefine;if(l)R(l,(function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};a.push(i),null!=n&&(yt(s,n)&&xo(""),s[n]=i)}));else for(var u=0;u<t.dimensionsDetectedCount;u++)a.push({index:u});var h=lf(r,Zd);e.__isBuiltIn&&(n.getRawDataItem=function(t){return h(i,o,a,t)},n.getRawData=G(Pf,null,t)),n.cloneRawData=G(Of,null,t);var c=cf(r,Zd);n.count=G(c,null,i,o,a);var d=ff(r);n.retrieveValue=function(t,e){var n=h(i,o,a,t);return p(n,e)};var p=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=a[e];return n?d(t,e,n.name):void 0}};return n.getDimensionInfo=G(Rf,null,a,s),n.cloneAllDimensionInfo=G(Nf,null,a),n}(t,o)}));return N(So(o.transform({upstream:a[0],upstreamList:a,config:M(t.config)})),(function(t,n){var i;X(t)||xo(""),t.data||xo(""),Vf(tf(t.data))||xo("");var r=e[0];if(r&&0===n&&!t.dimensions){var o=r.startIndex;o&&(t.data=r.data.slice(0,o).concat(t.data)),i={seriesLayoutBy:Zd,sourceHeader:o,dimensions:r.metaRawOption.dimensions}}else i={seriesLayoutBy:Zd,sourceHeader:0,dimensions:t.dimensions};return Jp(t.data,i,null)}))}function Vf(t){return t===Fd||t===Hd}var Bf,Gf="undefined",Ff=typeof Uint32Array===Gf?Array:Uint32Array,Hf=typeof Uint16Array===Gf?Array:Uint16Array,Wf=typeof Int32Array===Gf?Array:Int32Array,Uf=typeof Float64Array===Gf?Array:Float64Array,Yf={float:Uf,int:Wf,ordinal:Array,number:Array,time:Uf};function Zf(t){return t>65535?Ff:Hf}function Xf(t,e,n,i,r){var o=Yf[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(i)}var jf=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ft()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),r=this.defaultDimValueGetter=Bf[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[],rf(i),this._dimensions=N(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,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new Yf[e||"float"](this._rawCount),this._rawExtent[r]=[1/0,-1/0],r},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[t]=[1/0,-1/0]);for(var s=r[t],l=o;l<a;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]))}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},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 i=e.count();return e.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<r;l++){Xf(n,l,(p=i[l]).type,s,!0)}for(var u=[],h=a;h<s;h++)for(var c=h-a,d=0;d<r;d++){var p=i[d],f=Bf.arrayRows.call(this,t[c]||u,p.property,c,d);n[d][h]=f;var g=o[d];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=N(o,(function(t){return t.property})),u=0;u<a;u++){var h=o[u];s[u]||(s[u]=[1/0,-1/0]),Xf(r,u,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,r,s);else for(var c=[],d=t;d<e;d++){c=i.getItem(d,c);for(var p=0;p<a;p++){var f=r[p],g=this._dimValueGetter(c,l[p],d,p);f[d]=g;var v=s[p];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}!i.persistent&&i.clean&&i.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 NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=t;r=0;for(var o=i.length;r<o;r++)n.push(this.get(i[r],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,i=this.count();n<i;n++){var r=this.get(t,n);isNaN(r)||(e+=r)}return e},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})),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,r=this._count-1;i<=r;){var o=(i+r)/2|0;if(e[o]<t)i=o+1;else{if(!(e[o]>t))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],r=[];if(!i)return r;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var h=e-i[this.getRawIndex(l)],c=Math.abs(h);c<=n&&((c<o||c===o&&h>=0&&a<0)&&(o=c,a=h,s=0),h===a&&(r[s++]=l))}return r.length=s,r},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r<i;r++)t[r]=e[r]}else t=new n(e.buffer,0,i)}else{t=new(n=Zf(this._rawCount))(this.count());for(r=0;r<t.length;r++)t[r]=r}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=new(Zf(n._rawCount))(i),o=[],a=t.length,s=0,l=t[0],u=n._chunks,h=0;h<i;h++){var c=void 0,d=n.getRawIndex(h);if(0===a)c=e(h);else if(1===a){c=e(u[l][d],h)}else{for(var p=0;p<a;p++)o[p]=u[t[p]][d];o[p]=h,c=e.apply(null,o)}c&&(r[s++]=d)}return s<i&&(n._indices=r),n._count=s,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=B(t),r=i.length;if(!r)return this;var o=e.count(),a=new(Zf(e._rawCount))(o),s=0,l=i[0],u=t[l][0],h=t[l][1],c=e._chunks,d=!1;if(!e._indices){var p=0;if(1===r){for(var f=c[i[0]],g=0;g<n;g++){((x=f[g])>=u&&x<=h||isNaN(x))&&(a[s++]=p),p++}d=!0}else if(2===r){f=c[i[0]];var v=c[i[1]],m=t[i[1]][0],y=t[i[1]][1];for(g=0;g<n;g++){var x=f[g],_=v[g];(x>=u&&x<=h||isNaN(x))&&(_>=m&&_<=y||isNaN(_))&&(a[s++]=p),p++}d=!0}}if(!d)if(1===r)for(g=0;g<o;g++){var b=e.getRawIndex(g);((x=c[i[0]][b])>=u&&x<=h||isNaN(x))&&(a[s++]=b)}else for(g=0;g<o;g++){for(var w=!0,S=(b=e.getRawIndex(g),0);S<r;S++){var M=i[S];((x=c[M][b])<t[M][0]||x>t[M][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return s<o&&(e._indices=a),e._count=s,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 i=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=[1/0,-1/0];for(var h=0;h<a;h++){for(var c=t.getRawIndex(h),d=0;d<o;d++)s[d]=i[e[d]][c];s[o]=h;var p=n&&n.apply(null,s);if(null!=p){"object"!=typeof p&&(r[0]=p,p=r);for(u=0;u<p.length;u++){var f=e[u],g=p[u],v=l[f],m=i[f];m&&(m[c]=g),g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),h=this.getRawIndex(0),c=new(Zf(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));c[l++]=h;for(var d=1;d<s-1;d+=u){for(var p=Math.min(d+u,s-1),f=Math.min(d+2*u,s),g=(f+p)/2,v=0,m=p;m<f;m++){var y=a[I=this.getRawIndex(m)];isNaN(y)||(v+=y)}v/=f-p;var x=d,_=Math.min(d+u,s),b=d-1,w=a[h];n=-1,r=x;var S=-1,M=0;for(m=x;m<_;m++){var I;y=a[I=this.getRawIndex(m)];isNaN(y)?(M++,S<0&&(S=I)):(i=Math.abs((b-g)*(y-w)-(b-m)*(v-w)))>n&&(n=i,r=I)}M>0&&M<_-x&&(c[l++]=Math.min(S,r),r=Math.max(S,r)),c[l++]=r,h=r}return c[l++]=this.getRawIndex(s-1),o._count=l,o._indices=c,o.getRawIndex=this._getRawIdx,o},t.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),i=n._chunks,r=Math.floor(1/e),o=i[t],a=this.count(),s=new(Zf(this._rawCount))(2*Math.ceil(a/r)),l=0,u=0;u<a;u+=r){var h=u,c=o[this.getRawIndex(h)],d=u,p=o[this.getRawIndex(d)],f=r;u+r>a&&(f=a-u);for(var g=0;g<f;g++){var v=o[this.getRawIndex(u+g)];v<c&&(c=v,h=u+g),v>p&&(p=v,d=u+g)}var m=this.getRawIndex(h),y=this.getRawIndex(d);h<d?(s[l++]=m,s[l++]=y):(s[l++]=y,s[l++]=m)}return n._count=l,n._indices=s,n._updateGetRawIdx(),n},t.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=r._rawExtent[t]=[1/0,-1/0],c=new(Zf(this._rawCount))(Math.ceil(u/s)),d=0,p=0;p<u;p+=s){s>u-p&&(s=u-p,a.length=s);for(var f=0;f<s;f++){var g=this.getRawIndex(p+f);a[f]=l[g]}var v=n(a),m=this.getRawIndex(Math.min(p+i(a,v)||0,u-1));l[m]=v,v<h[0]&&(h[0]=v),v>h[1]&&(h[1]=v),c[d++]=m}return r._count=d,r._indices=c,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][a],r);break;case 2:e(i[t[0]][a],i[t[1]][a],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=[1/0,-1/0];if(!e)return n;var i,r=this.count();if(!this._indices)return this._rawExtent[t].slice();if(i=this._extent[t])return i.slice();for(var o=(i=n)[0],a=i[1],s=0;s<r;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return i=[o,a],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][e]);return n},t.prototype.clone=function(e,n){var i,r,o=new t,a=this._chunks,s=e&&E(e,(function(t,e){return t[e]=!0,t}),{});if(s)for(var l=0;l<a.length;l++)o._chunks[l]=s[l]?(i=a[l],r=void 0,(r=i.constructor)===Array?i.slice():new r(i)):a[l];else o._chunks=a;return this._copyCommonProps(o),n||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=M(this._extent),t._rawExtent=M(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 i=0;i<n;i++)e[i]=this._indices[i]}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,i){return Sf(t[i],this._dimensions[i])}Bf={arrayRows:t,objectRows:function(t,e,n,i){return Sf(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return Sf(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}(),qf=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,i=this._getUpstreamSourceManagers(),r=!!i.length;if($f(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,e=[u._getVersionSign()]}else s=q(a=o.get("data",!0))?Ud:Gd,e=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},d=nt(h.seriesLayoutBy,c.seriesLayoutBy)||null,p=nt(h.sourceHeader,c.sourceHeader),f=nt(h.dimensions,c.dimensions);t=d!==c.seriesLayoutBy||!!p!=!!c.sourceHeader||f?[Jp(a,{seriesLayoutBy:d,sourceHeader:p,dimensions:f},s)]:[]}else{var g=n;if(r){var v=this._applyTransform(i);t=v.sourceList,e=v.upstreamSignList}else{t=[Jp(g.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);if(null!=r){1!==t.length&&Jf("")}var o,a=[],s=[];return R(t,(function(t){t.prepareSource();var e=t.getSource(r||0);null==r||e||Jf(""),a.push(e),s.push(t._getVersionSign())})),i?e=function(t,e){var n=So(t),i=n.length;i||xo("");for(var r=0,o=i;r<o;r++)e=zf(n[r],e),r!==o-1&&(e.length=Math.max(e.length,1));return e}(i,a,n.componentIndex):null!=r&&(e=[(o=a[0],new Kp({data:o.data,sourceFormat:o.sourceFormat,seriesLayoutBy:o.seriesLayoutBy,dimensionsDefine:M(o.dimensionsDefine),startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount}))]),{sourceList:e,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 i=this._storeList,r=i[0];r||(r=i[0]={});var o=r[n];if(!o){var a=this._getUpstreamSourceManagers()[0];$f(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new jf).initData(new of(e,t.length),t),r[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if($f(t)){var e=tp(t);return e?[e.getSourceManager()]:[]}return N(function(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?Fo(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Bo).models:[]}(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;if($f(i))t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function Kf(t){t.option.transform&&ut(t.option.transform)}function $f(t){return"series"===t.mainType}function Jf(t){throw new Error(t)}function Qf(t){var e=t.lineHeight;return null==e?"line-height:1":"line-height:"+ne(e+"")+"px"}function tg(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,r=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+ne(i+"")+"px;color:"+ne(n)+";font-weight:"+ne(r+""),valueStyle:"font-size:"+ne(a+"")+"px;color:"+ne(o)+";font-weight:"+ne(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var eg=[0,10,20,30],ng=["","\n","\n\n","\n\n\n"];function ig(t,e){return e.type=t,e}function rg(t){return"section"===t.type}function og(t){return rg(t)?sg:lg}function ag(t){if(rg(t)){var e=0,n=t.blocks.length,i=n>1||n>0&&!t.noHeader;return R(t.blocks,(function(t){var n=ag(t);n>=e&&(e=n+ +(i&&(!n||rg(t)&&!t.noHeader)))})),e}return 0}function sg(t,e,n,i){var r,o=e.noHeader,a=(r=ag(e),{html:eg[r],richText:ng[r]}),s=[],l=e.blocks||[];at(!l||H(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var h={valueAsc:"asc",valueDesc:"desc"};if(yt(h,u)){var c=new Af(h[u],null);l.sort((function(t,e){return c.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===u&&l.reverse()}R(l,(function(n,r){var o=e.valueFormatter,l=og(n)(o?C(C({},t),{valueFormatter:o}):t,n,r>0?a.html:0,i);null!=l&&s.push(l)}));var d="richText"===t.renderMode?s.join(a.richText):hg(i,s.join(""),o?n:a.html);if(o)return d;var p=gd(e.header,"ordinal",t.useUTC),f=tg(i,t.renderMode).nameStyle,g=Qf(i);return"richText"===t.renderMode?cg(t,p,f)+a.richText+d:hg(i,'<div style="'+f+";"+g+';">'+ne(p)+"</div>"+d,n)}function lg(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,h=e.valueFormatter||t.valueFormatter||function(t){return N(t=H(t)?t:[t],(function(t,e){return gd(t,H(p)?p[e]:p,u)}))};if(!o||!a){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),d=o?"":gd(l,"ordinal",u),p=e.valueType,f=a?[]:h(e.value,e.dataIndex),g=!s||!o,v=!s&&o,m=tg(i,r),y=m.nameStyle,x=m.valueStyle;return"richText"===r?(s?"":c)+(o?"":cg(t,d,y))+(a?"":function(t,e,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(H(e)?e.join("  "):e,o)}(t,f,g,v,x)):hg(i,(s?"":c)+(o?"":function(t,e,n){return'<span style="'+n+";"+(e?"margin-left:2px":"")+'">'+ne(t)+"</span>"}(d,!s,y))+(a?"":function(t,e,n,i){var r=n?"10px":"20px",o=e?"float:right;margin-left:"+r:"";return t=H(t)?t:[t],'<span style="'+o+";"+i+'">'+N(t,(function(t){return ne(t)})).join("&nbsp;&nbsp;")+"</span>"}(f,g,v,x)),n)}}function ug(t,e,n,i,r,o){if(t)return og(t)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function hg(t,e,n){return'<div style="'+("margin: "+n+"px 0 0")+";"+Qf(t)+';">'+e+'<div style="clear:both"></div></div>'}function cg(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function dg(t,e){return bd(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function pg(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var fg=function(){function t(){this.richTextStyles={},this._nextStyleNameId=vo()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=xd({color:e,type:t,renderMode:n,markerId:i});return U(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};H(e)?R(e,(function(t){return C(n,t)})):C(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}();function gg(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),h=u.length,c=o.getRawValue(a),d=H(c),p=dg(o,a);if(h>1||d&&!h){var f=function(t,e,n,i,r){var o=e.getData(),a=E(t,(function(t,e,n){var i=o.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName}),!1),s=[],l=[],u=[];function h(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(ig("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return i.length?R(i,(function(t){h(vf(o,n,t),t)})):R(t,h),{inlineValues:s,inlineValueTypes:l,blocks:u}}(c,o,a,u,p);e=f.inlineValues,n=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(h){var g=l.getDimensionInfo(u[0]);r=e=vf(l,a,u[0]),n=g.type}else r=e=d?c[0]:c;var v=Po(o),m=v&&o.name||"",y=l.getName(a),x=s?m:y;return ig("section",{header:m,noHeader:s||!v,sortParam:r,blocks:[ig("nameValue",{markerType:"item",markerColor:p,name:x,noName:!st(x),value:e,valueType:n,dataIndex:a})].concat(i||[])})}var vg=No();function mg(t,e){return t.getName(e)||t.getId(e)}var yg="__universalTransitionEnabled",xg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}var i;return n(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=_f({count:bg,reset:wg}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(vg(this).sourceManager=new qf(this)).prepareSource();var i=this.getInitialData(t,n);Mg(i,this),this.dataTask.context.data=i,vg(this).dataBeforeProcessed=i,_g(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=Ld(this),i=n?Pd(t):{},r=this.subType;Nd.hasClass(r)&&(r+="Series"),I(t,e.getTheme().get(this.subType)),I(t,this.getDefaultOption()),Mo(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&kd(t,i,n)},e.prototype.mergeOption=function(t,e){t=I(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Ld(this);n&&kd(this.option,t,n);var i=vg(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);Mg(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,vg(this).dataBeforeProcessed=r,_g(this),this._initSelectedMapFromData(r)},e.prototype.fillDataTextStyle=function(t){if(t&&!q(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Mo(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){this.getRawData().appendData(t.data)},e.prototype.getData=function(t){var e=Tg(this);if(e){var n=e.context.data;return null!=t&&n.getLinkedData?n.getLinkedData(t):n}return vg(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=Tg(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}vg(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return ft(t)},e.prototype.getSourceManager=function(){return vg(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return vg(this).dataBeforeProcessed},e.prototype.getColorBy=function(){return this.get("colorBy")||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,e,n){return gg({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(r.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=up.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=mg(r,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=B(t),n=[],i=0;i<e.length;i++){var r=t[e[i]];r>=0&&n.push(r)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[mg(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[yg])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,i,r=this.option,o=r.selectedMode,a=e.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){X(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l<a;l++){var u=e[l];s[c=mg(t,u)]=!0,this._selectedDataIndicesMap[c]=t.getRawIndex(u)}}else if("single"===o||!0===o){var h=e[a-1],c=mg(t,h);r.selectedMap=((n={})[c]=!0,n),this._selectedDataIndicesMap=((i={})[c]=t.getRawIndex(h),i)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)})),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return Nd.registerClass(t)},e.protoInitialize=((i=e.prototype).type="series.__base__",i.seriesIndex=0,i.ignoreStyleOnData=!1,i.hasSymbolVisual=!1,i.defaultSymbol="circle",i.visualStyleAccessPath="itemStyle",void(i.visualDrawType="fill")),e}(Nd);function _g(t){var e=t.name;Po(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return R(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}(t)||e)}function bg(t){return t.model.getRawData().count()}function wg(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Sg}function Sg(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Mg(t,e){R(gt(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,F(Ig,e))}))}function Ig(t,e){var n=Tg(t);return n&&n.setOutputEnd((e||this).count()),e}function Tg(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}P(xg,yf),P(xg,up),qo(xg,Nd);var Cg=function(){function t(){this.group=new zr,this.uid=Tc("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();function Ag(){var t=No();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}jo(Cg),Qo(Cg);var Dg=No(),Lg=Ag(),kg=function(){function t(){this.group=new zr,this.uid=Tc("viewChart"),this.renderTask=_f({plan:Rg,reset:Ng}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.highlight=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&Og(r,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&Og(r,i,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){qh(this.group,t)},t.markUpdateMethod=function(t,e){Dg(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function Pg(t,e,n){t&&Kl(t)&&("emphasis"===e?Ll:kl)(t,n)}function Og(t,e,n){var i=Ro(t,e),r=e&&null!=e.highlightKey?function(t){var e=rl[t];return null==e&&il<=32&&(e=rl[t]=il++),e}(e.highlightKey):null;null!=i?R(So(i),(function(e){Pg(t.getItemGraphicEl(e),n,r)})):t.eachItemGraphicEl((function(t){Pg(t,n,r)}))}function Rg(t){return Lg(t.model)}function Ng(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&Dg(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),Eg[l]}jo(kg),Qo(kg);var Eg={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)}}},zg="\0__throttleOriginMethod",Vg="\0__throttleRate",Bg="\0__throttleType";function Gg(t,e,n){var i,r,o,a,s,l=0,u=0,h=null;function c(){u=(new Date).getTime(),h=null,t.apply(o,a||[])}e=e||0;var d=function(){for(var t=[],d=0;d<arguments.length;d++)t[d]=arguments[d];i=(new Date).getTime(),o=this,a=t;var p=s||e,f=s||n;s=null,r=i-(f?l:u)-p,clearTimeout(h),f?h=setTimeout(c,p):r>=0?c():h=setTimeout(c,-r),l=i};return d.clear=function(){h&&(clearTimeout(h),h=null)},d.debounceNextCall=function(t){s=t},d}function Fg(t,e,n,i){var r=t[e];if(r){var o=r[zg]||r,a=r[Bg];if(r[Vg]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=Gg(o,n,"debounce"===i))[zg]=o,r[Bg]=i,r[Vg]=n}return r}}function Hg(t,e){var n=t[e];n&&n[zg]&&(n.clear&&n.clear(),t[e]=n[zg])}var Wg=No(),Ug={itemStyle:ta(bc,!0),lineStyle:ta(yc,!0)},Yg={lineStyle:"stroke",itemStyle:"fill"};function Zg(t,e){var n=t.visualStyleMapper||Ug[e];return n||(console.warn("Unknown style type '"+e+"'."),Ug.itemStyle)}function Xg(t,e){var n=t.visualDrawType||Yg[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var jg={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=Zg(t,i)(r),a=r.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=Xg(t,i),l=o[s],u=W(l)?l:null,h="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||h){var c=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=c,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||W(o.fill)?c:o.fill,o.stroke="auto"===o.stroke||W(o.stroke)?c:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=C({},o);r[s]=u(i),e.setItemVisual(n,"style",r)}}}},qg=new Mc,Kg={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=Zg(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){qg.option=n[i];var a=r(qg);C(t.ensureUniqueItemVisual(e,"style"),a),qg.option.decal&&(t.setItemVisual(e,"decal",qg.option.decal),qg.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},$g={performRawSeries:!0,overallReset:function(t){var e=ft();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),Wg(t).scope=r}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=Wg(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=Xg(e,a);r.each((function(t){var e=r.getRawIndex(t);i[e]=t})),n.each((function(t){var a=i[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",h=n.count();l[s]=e.getColorFromPalette(u,o,h)}}))}}))}},Jg=Math.PI;var Qg=function(){function t(t,e,n,i){this._stageTaskMap=ft(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}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),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=ft();t.eachSeries((function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;R(this._allHandlers,(function(i){var r=t.get(i.uid)||t.set(i.uid,{});at(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)}),this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},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,i){i=i||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}R(t,(function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,h=l.overallTask;if(h){var c,d=h.agentStubMap;d.each((function(t){a(i,t)&&(t.dirty(),c=!0)})),c&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,i.block);d.each((function(t){t.perform(p)})),h.perform(p)&&(r=!0)}else u&&u.each((function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)}))}})),this.unfinished=r||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,i){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=ft(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||_f({plan:rv,reset:ov,count:lv}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||_f({reset:tv});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=ft(),l=t.seriesType,u=t.getTargetSeries,h=!0,c=!1;function d(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(c=!0,_f({reset:ev,onDirty:iv})));n.context={model:t,overallProgress:h},n.agent=o,n.__block=h,r._pipe(t,n)}at(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,d):u?u(n,i).each(d):(h=!1,R(n.getSeries(),d)),c&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return W(t)&&(t={overallReset:t,seriesType:uv(t)}),t.uid=Tc("stageHandler"),e&&(t.visualType=e),t},t}();function tv(t){t.overallReset(t.ecModel,t.api,t.payload)}function ev(t){return t.overallProgress&&nv}function nv(){this.agent.dirty(),this.getDownstream().dirty()}function iv(){this.agent&&this.agent.dirty()}function rv(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function ov(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=So(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?N(e,(function(t,e){return sv(e)})):av}var av=sv(0);function sv(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(e,i)}}function lv(t){return t.data.count()}function uv(t){hv=null;try{t(cv,dv)}catch(e){}return hv}var hv,cv={},dv={};function pv(t,e){for(var n in e.prototype)t[n]=xt}pv(cv,pp),pv(dv,yp),cv.eachSeriesByType=cv.eachRawSeriesByType=function(t){hv=t},cv.eachComponent=function(t){"series"===t.mainType&&t.subType&&(hv=t.subType)};var fv=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const gv={color:fv,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],fv]};var vv="#B9B8CE",mv="#100C2A",yv=function(){return{axisLine:{lineStyle:{color:vv}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},xv=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],_v={darkMode:!0,color:xv,backgroundColor:mv,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:vv},pageTextStyle:{color:vv}},textStyle:{color:vv},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:vv}},dataZoom:{borderColor:"#71708A",textStyle:{color:vv},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:vv}},timeline:{lineStyle:{color:vv},label:{color:vv},controlStyle:{color:vv,borderColor:vv}},calendar:{itemStyle:{color:mv},dayLabel:{color:vv},monthLabel:{color:vv},yearLabel:{color:vv}},timeAxis:yv(),logAxis:yv(),valueAxis:yv(),categoryAxis:yv(),line:{symbol:"circle"},graph:{color:xv},gauge:{title:{color:vv},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:vv},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};_v.categoryAxis.splitLine.show=!1;var bv=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(U(t)){var r=Xo(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};R(t,(function(t,r){for(var s=!1,l=0;l<o.length;l++){var u=o[l],h=r.lastIndexOf(u);if(h>0&&h===r.length-u.length){var c=r.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),wv=["symbol","symbolSize","symbolRotate","symbolOffset"],Sv=wv.concat(["symbolKeepAspect"]),Mv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a<wv.length;a++){var s=wv[a],l=t.get(s);W(l)?(o=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,n.setVisual(C({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),!e.isSeriesFiltered(t)){var u=B(r);return{dataEach:o?function(e,n){for(var i=t.getRawValue(n),o=t.getDataParams(n),a=0;a<u.length;a++){var s=u[a];e.setItemVisual(n,s,r[s](i,o))}}:null}}}}},Iv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),i=0;i<Sv.length;i++){var r=Sv[i],o=n.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}:null}}};function Tv(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}function Cv(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function Av(t,e,n,i){switch(n){case"color":t.ensureUniqueItemVisual(e,"style")[t.getVisual("drawType")]=i,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,i)}}function Dv(t,e){function n(e,n){var i=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){i.push(t.seriesIndex)})),i}R([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,i,r){e=C({},e),r.dispatchAction(C(e,{type:t[1],seriesIndex:n(i,e)}))}))}))}function Lv(t,e,n,i,r){var o=t+e;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,i=t.option.selectedMap,a=r.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),u=Ro(l,r.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:H(u)?l.getName(u[0]):l.getName(u),selected:U(i)?i:C({},i)})}}))}function kv(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}var Pv=Math.round(9*Math.random()),Ov="function"==typeof Object.defineProperty,Rv=function(){function t(){this._id="__ec_inner_"+Pv++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return Ov?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)},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}(),Nv=Cs.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i+o),t.lineTo(n-r,i+o),t.closePath()}}),Ev=Cs.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i),t.lineTo(n,i+o),t.lineTo(n-r,i),t.closePath()}}),zv=Cs.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),h=Math.cos(u)*a,c=Math.sin(u),d=Math.cos(u),p=.6*a,f=.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+d*p,n,i-f,n,i),t.bezierCurveTo(n,i-f,n-h+c*p,l+s+d*p,n-h,l+s),t.closePath()}}),Vv=Cs.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,o=e.y,a=i/3*2;t.moveTo(r,o),t.lineTo(r+a,o+n),t.lineTo(r,o+n/4*3),t.lineTo(r-a,o+n),t.lineTo(r,o),t.closePath()}}),Bv={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var o=Math.min(n,i);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},Gv={};R({line:Xu,rect:Bs,roundRect:Bs,square:Bs,circle:_u,diamond:Ev,pin:zv,arrow:Vv,triangle:Nv},(function(t,e){Gv[e]=new t}));var Fv=Cs.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=Tr(t,e,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=Gv[i];r||(r=Gv[i="rect"]),Bv[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}});function Hv(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 Wv(t,e,n,i,r,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?Lh(t.slice(8),new Ne(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?Dh(t.slice(7),{},new Ne(e,n,i,r),a?"center":"cover"):new Fv({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=l,s.setColor=Hv,o&&s.setColor(o),s}function Uv(t){return H(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function Yv(t,e){if(null!=t)return H(t)||(t=[t,t]),[qr(t[0],e[0])||0,qr(nt(t[1],t[0]),e[1])||0]}function Zv(t){return isFinite(t)}function Xv(t,e,n){for(var i="radial"===e.type?function(t,e,n){var i=n.width,r=n.height,o=Math.min(i,r),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(a=a*i+n.x,s=s*r+n.y,l*=o),a=Zv(a)?a:.5,s=Zv(s)?s:.5,l=l>=0&&Zv(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)}(t,e,n):function(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),i=Zv(i)?i:0,r=Zv(r)?r:1,o=Zv(o)?o:0,a=Zv(a)?a:0,t.createLinearGradient(i,o,r,a)}(t,e,n),r=e.colorStops,o=0;o<r.length;o++)i.addColorStop(r[o].offset,r[o].color);return i}function jv(t){return parseInt(t,10)}function qv(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var s=document.defaultView.getComputedStyle(t);return(t[r]||jv(s[i])||jv(t.style[i]))-(jv(s[o])||0)-(jv(s[a])||0)|0}function Kv(t){var e,n,i=t.style,r=i.lineDash&&i.lineWidth>0&&(e=i.lineDash,n=i.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:Z(e)?[e]:H(e)?e:null:null),o=i.lineDashOffset;if(r){var a=i.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(r=N(r,(function(t){return t/a})),o/=a)}return[r,o]}var $v=new ss(!0);function Jv(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Qv(t){return"string"==typeof t&&"none"!==t}function tm(t){var e=t.fill;return null!=e&&"none"!==e}function em(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 nm(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 im(t,e,n){var i=oa(e.image,e.__image,n);if(sa(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*_t),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}var rm=["shadowBlur","shadowOffsetX","shadowOffsetY"],om=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function am(t,e,n,i,r){var o=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){um(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?ba.opacity:a}(i||e.blend!==n.blend)&&(o||(um(t,r),o=!0),t.globalCompositeOperation=e.blend||ba.blend);for(var s=0;s<rm.length;s++){var l=rm[s];(i||e[l]!==n[l])&&(o||(um(t,r),o=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==n.shadowColor)&&(o||(um(t,r),o=!0),t.shadowColor=e.shadowColor||ba.shadowColor),o}function sm(t,e,n,i,r){var o=hm(e,r.inHover),a=i?null:n&&hm(n,r.inHover)||{};if(o===a)return!1;var s=am(t,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(um(t,r),s=!0),Qv(o.fill)&&(t.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(um(t,r),s=!0),Qv(o.stroke)&&(t.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(um(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(um(t,r),s=!0),t.lineWidth=l)}for(var u=0;u<om.length;u++){var h=om[u],c=h[0];(i||o[c]!==a[c])&&(s||(um(t,r),s=!0),t[c]=o[c]||h[1])}return s}function lm(t,e){var n=e.transform,i=t.dpr||1;n?t.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):t.setTransform(i,0,0,i,0,0)}function um(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function hm(t,e){return e&&t.__hoverStyle||t.style}function cm(t,e){dm(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function dm(t,e,n,i){var r=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=-2,void(e.__isRendered=!1);var o=e.__clipPaths,s=n.prevElClipPaths,l=!1,u=!1;if(s&&!function(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}(o,s)||(s&&s.length&&(um(t,n),t.restore(),u=l=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(um(t,n),t.save(),function(t,e,n){for(var i=!1,r=0;r<t.length;r++){var o=t[r];i=i||o.isZeroArea(),lm(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=i}(o,t,n),l=!0),n.prevElClipPaths=o),n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var h=n.prevEl;h||(u=l=!0);var c,d,p=e instanceof Cs&&e.autoBatch&&function(t){var e=tm(t),n=Jv(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)}(e.style);l||(c=r,d=h.transform,c&&d?c[0]!==d[0]||c[1]!==d[1]||c[2]!==d[2]||c[3]!==d[3]||c[4]!==d[4]||c[5]!==d[5]:c||d)?(um(t,n),lm(t,e)):p||um(t,n);var f=hm(e,n.inHover);e instanceof Cs?(1!==n.lastDrawType&&(u=!0,n.lastDrawType=1),sm(t,e,h,u,n),p&&(n.batchFill||n.batchStroke)||t.beginPath(),function(t,e,n,i){var r,o=Jv(n),a=tm(n),s=n.strokePercent,l=s<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var h=e.path||$v,c=e.__dirty;if(!i){var d=n.fill,p=n.stroke,f=a&&!!d.colorStops,g=o&&!!p.colorStops,v=a&&!!d.image,m=o&&!!p.image,y=void 0,x=void 0,_=void 0,b=void 0,w=void 0;(f||g)&&(w=e.getBoundingRect()),f&&(y=c?Xv(t,d,w):e.__canvasFillGradient,e.__canvasFillGradient=y),g&&(x=c?Xv(t,p,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),v&&(_=c||!e.__canvasFillPattern?im(t,d,e):e.__canvasFillPattern,e.__canvasFillPattern=_),m&&(b=c||!e.__canvasStrokePattern?im(t,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),f?t.fillStyle=y:v&&(_?t.fillStyle=_:a=!1),g?t.strokeStyle=x:m&&(b?t.strokeStyle=b:o=!1)}var S,M,I=e.getGlobalScale();h.setScale(I[0],I[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(S=(r=Kv(e))[0],M=r[1]);var T=!0;(u||4&c)&&(h.setDPR(t.dpr),l?h.setContext(null):(h.setContext(t),T=!1),h.reset(),e.buildPath(h,e.shape,i),h.toStatic(),e.pathUpdated()),T&&h.rebuildPath(t,l?s:1),S&&(t.setLineDash(S),t.lineDashOffset=M),i||(n.strokeFirst?(o&&nm(t,n),a&&em(t,n)):(a&&em(t,n),o&&nm(t,n))),S&&t.setLineDash([])}(t,e,f,p),p&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):e instanceof Ds?(3!==n.lastDrawType&&(u=!0,n.lastDrawType=3),sm(t,e,h,u,n),function(t,e,n){var i,r=n.text;if(null!=r&&(r+=""),r){t.font=n.font||a,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,s=void 0;t.setLineDash&&n.lineDash&&(o=(i=Kv(e))[0],s=i[1]),o&&(t.setLineDash(o),t.lineDashOffset=s),n.strokeFirst?(Jv(n)&&t.strokeText(r,n.x,n.y),tm(n)&&t.fillText(r,n.x,n.y)):(tm(n)&&t.fillText(r,n.x,n.y),Jv(n)&&t.strokeText(r,n.x,n.y)),o&&t.setLineDash([])}}(t,e,f)):e instanceof Ps?(2!==n.lastDrawType&&(u=!0,n.lastDrawType=2),function(t,e,n,i,r){am(t,hm(e,r.inHover),n&&hm(n,r.inHover),i,r)}(t,e,h,u,n),function(t,e,n){var i=e.__image=oa(n.image,e.__image,e,e.onload);if(i&&sa(i)){var r=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,h=n.sy||0;t.drawImage(i,u,h,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){var c=a-(u=n.sx),d=s-(h=n.sy);t.drawImage(i,u,h,c,d,r,o,a,s)}else t.drawImage(i,r,o,a,s)}}(t,e,f)):e.getTemporalDisplayables&&(4!==n.lastDrawType&&(u=!0,n.lastDrawType=4),function(t,e,n){var i=e.getDisplayables(),r=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=i.length;o<a;o++){(h=i[o]).beforeBrush&&h.beforeBrush(),h.innerBeforeBrush(),dm(t,h,s,o===a-1),h.innerAfterBrush(),h.afterBrush&&h.afterBrush(),s.prevEl=h}for(var l=0,u=r.length;l<u;l++){var h;(h=r[l]).beforeBrush&&h.beforeBrush(),h.innerBeforeBrush(),dm(t,h,s,l===u-1),h.innerAfterBrush(),h.afterBrush&&h.afterBrush(),s.prevEl=h}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,n)),p&&i&&um(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}var pm=new Rv,fm=new Rn(100),gm=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function vm(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type;t.dirty&&pm.delete(t);var o=pm.get(t);if(o)return o;var a=A(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"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(t){for(var e,o=[n],s=!0,u=0;u<gm.length;++u){var h=a[gm[u]];if(null!=h&&!H(h)&&!U(h)&&!Z(h)&&"boolean"!=typeof h){s=!1;break}o.push(h)}if(s){e=o.join(",")+(r?"-svg":"");var c=fm.get(e);c&&(r?t.svgElement=c:t.image=c)}var d,p=ym(a.dashArrayX),f=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(Z(t)){var e=Math.ceil(t);return[e,e]}var n=N(t,(function(t){return Math.ceil(t)}));return t.length%2?n.concat(n):n}(a.dashArrayY),g=mm(a.symbol),v=(b=p,N(b,(function(t){return xm(t)}))),m=xm(f),y=!r&&l.createCanvas(),x=r&&{tag:"g",attrs:{},key:"dcl",children:[]},_=function(){for(var t=1,e=0,n=v.length;e<n;++e)t=yo(t,v[e]);var i=1;for(e=0,n=g.length;e<n;++e)i=yo(i,g[e].length);t*=i;var r=m*v.length*g.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();var b;y&&(y.width=_.width*n,y.height=_.height*n,d=y.getContext("2d"));(function(){d&&(d.clearRect(0,0,y.width,y.height),a.backgroundColor&&(d.fillStyle=a.backgroundColor,d.fillRect(0,0,y.width,y.height)));for(var t=0,e=0;e<f.length;++e)t+=f[e];if(t<=0)return;var o=-m,s=0,l=0,u=0;for(;o<_.height;){if(s%2==0){for(var h=l/2%g.length,c=0,v=0,b=0;c<2*_.width;){var w=0;for(e=0;e<p[u].length;++e)w+=p[u][e];if(w<=0)break;if(v%2==0){var S=.5*(1-a.symbolSize),M=c+p[u][v]*S,I=o+f[s]*S,T=p[u][v]*a.symbolSize,C=f[s]*a.symbolSize,A=b/2%g[h].length;D(M,I,T,C,g[h][A])}c+=p[u][v],++b,++v===p[u].length&&(v=0)}++u===p.length&&(u=0)}o+=f[s],++l,++s===f.length&&(s=0)}function D(t,e,o,s,l){var u=r?1:n,h=Wv(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(r){var c=i.painter.renderOneToVNode(h);c&&x.children.push(c)}else cm(d,h)}})(),s&&fm.put(e,y||x);t.image=y,t.svgElement=x,t.svgWidth=_.width,t.svgHeight=_.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/n,pm.set(t,s),t.dirty=!1,s}function mm(t){if(!t||0===t.length)return[["rect"]];if(U(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!U(t[n])){e=!1;break}if(e)return mm([t]);var i=[];for(n=0;n<t.length;++n)U(t[n])?i.push([t[n]]):i.push(t[n]);return i}function ym(t){if(!t||0===t.length)return[[0,0]];if(Z(t))return[[r=Math.ceil(t),r]];for(var e=!0,n=0;n<t.length;++n)if(!Z(t[n])){e=!1;break}if(e)return ym([t]);var i=[];for(n=0;n<t.length;++n)if(Z(t[n])){var r=Math.ceil(t[n]);i.push([r,r])}else{(r=N(t[n],(function(t){return Math.ceil(t)}))).length%2==1?i.push(r.concat(r)):i.push(r)}return i}function xm(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}var _m=new Zt,bm={};function wm(t){return bm[t]}var Sm=2e3,Mm=4500,Im={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:Sm,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:Mm,ARIA:6e3,DECAL:7e3}},Tm="__flagInMainProcess",Cm="__pendingUpdate",Am="__needsUpdateStatus",Dm=/^[a-zA-Z0-9_]+$/,Lm="__connectUpdateStatus";function km(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return Om(this,t,e);this.id}}function Pm(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Om(this,t,e)}}function Om(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),Zt.prototype[e].apply(t,n)}var Rm,Nm,Em,zm,Vm,Bm,Gm,Fm,Hm,Wm,Um,Ym,Zm,Xm,jm,qm,Km,$m,Jm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(Zt),Qm=Jm.prototype;Qm.on=Pm("on"),Qm.off=Pm("off");var ty=function(t){function e(e,n,i){var r=t.call(this,new bv)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],i=i||{},U(n)&&(n=ly[n]),r._dom=e;i.ssr&&Yr((function(t){var e=el(t),n=e.dataIndex;if(null!=n){var i=ft();return i.set("series_index",e.seriesIndex),i.set("data_index",n),e.ssrType&&i.set("ssr_type",e.ssrType),i}}));var o=r._zr=Hr(e,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:nt(i.useDirtyRect,!1),useCoarsePointer:nt(i.useCoarsePointer,"auto"),pointerSize:i.pointerSize});r._ssr=i.ssr,r._throttledZrFlush=Gg(G(o.flush,o),17),(n=M(n))&&Wp(n,!0),r._theme=n,r._locale=function(t){if(U(t)){var e=kc[t.toUpperCase()]||{};return t===Ac||t===Dc?M(e):I(M(e),M(kc[Lc]),!1)}return I(M(t),M(kc[Lc]),!1)}(i.locale||Oc),r._coordSysMgr=new _p;var a=r._api=jm(r);function s(t,e){return t.__prio-e.__prio}return $e(sy,s),$e(oy,s),r._scheduler=new Qg(r,a,oy,sy),r._messageCenter=new Jm,r._initEvents(),r.resize=G(r.resize,r),o.animation.on("frame",r._onframe,r),Wm(o,r),Um(o,r),ut(r),r}return n(e,t),e.prototype._onframe=function(){if(!this._disposed){$m(this);var t=this._scheduler;if(this[Cm]){var e=this[Cm].silent;this[Tm]=!0;try{Rm(this),zm.update.call(this,null,this[Cm].updateParams)}catch(a){throw this[Tm]=!1,this[Cm]=null,a}this._zr.flush(),this[Tm]=!1,this[Cm]=null,Fm.call(this,e),Hm.call(this,e)}else if(t.unfinished){var n=1,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),Bm(this,i),t.performVisualTasks(i),Xm(this,this._model,r,"remain",{}),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[Tm])if(this._disposed)this.id;else{var i,r,o;if(X(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[Tm]=!0,!this._model||e){var a=new wp(this._api),s=this._theme,l=this._model=new pp;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},ay);var u={seriesTransition:o,optionChanged:!0};if(n)this[Cm]={silent:i,updateParams:u},this[Tm]=!1,this.getZr().wakeUp();else{try{Rm(this),zm.update.call(this,null,u)}catch(h){throw this[Cm]=null,this[Tm]=!1,h}this._ssr||this._zr.flush(),this[Cm]=null,this[Tm]=!1,Fm.call(this,i),Hm.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||r.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(r.svgSupported){var t=this._zr;return R(t.storage.getDisplayList(),(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;R(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return R(i,(function(t){t.group.ignore=!1})),o}this.id},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(cy[n]){var a=o,s=o,u=-1/0,h=-1/0,c=[],d=t&&t.pixelRatio||this.getDevicePixelRatio();R(hy,(function(o,l){if(o.group===n){var d=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(M(t)),p=o.getDom().getBoundingClientRect();a=i(p.left,a),s=i(p.top,s),u=r(p.right,u),h=r(p.bottom,h),c.push({dom:d,left:p.left,top:p.top})}}));var p=(u*=d)-(a*=d),f=(h*=d)-(s*=d),g=l.createCanvas(),v=Hr(g,{renderer:e?"svg":"canvas"});if(v.resize({width:p,height:f}),e){var m="";return R(c,(function(t){var e=t.left-a,n=t.top-s;m+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),v.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return t.connectedBackgroundColor&&v.add(new Bs({shape:{x:0,y:0,width:p,height:f},style:{fill:t.connectedBackgroundColor}})),R(c,(function(t){var e=new Ps({style:{x:t.left*d-a,y:t.top*d-s,image:t.dom}});v.add(e)})),v.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}this.id},e.prototype.convertToPixel=function(t,e){return Vm(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return Vm(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){var n;if(!this._disposed)return R(zo(this._model,t),(function(t,i){i.indexOf("Models")>=0&&R(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}}),this)}),this),!!n;this.id},e.prototype.getVisual=function(t,e){var n=zo(this._model,t,{defaultMainType:"series"}),i=n.seriesModel.getData(),r=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=r?Tv(i,r,e):Cv(i,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t,e,n,i=this;R(ny,(function(t){var e=function(e){var n,r=i.getModel(),o=e.target;if("globalout"===t?n={}:o&&kv(o,(function(t){var e=el(t);if(e&&null!=e.dataIndex){var i=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return n=i&&i.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return n=C({},e.eventData),!0}),!0),n){var a=n.componentType,s=n.componentIndex;"markLine"!==a&&"markPoint"!==a&&"markArea"!==a||(a="series",s=n.seriesIndex);var l=a&&null!=s&&r.getComponent(a,s),u=l&&i["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];n.event=e,n.type=t,i._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:l,view:u},i.trigger(t,n)}};e.zrEventfulCallAtLast=!0,i._zr.on(t,e,i)})),R(ry,(function(t,e){i._messageCenter.on(e,(function(t){this.trigger(e,t)}),i)})),R(["selectchanged"],(function(t){i._messageCenter.on(t,(function(e){this.trigger(t,e)}),i)})),t=this._messageCenter,e=this,n=this._api,t.on("selectchanged",(function(t){var i=n.getModel();t.isFromClick?(Lv("map","selectchanged",e,i,t),Lv("pie","selectchanged",e,i,t)):"select"===t.fromAction?(Lv("map","selected",e,i,t),Lv("pie","selected",e,i,t)):"unselect"===t.fromAction&&(Lv("map","unselected",e,i,t),Lv("pie","unselected",e,i,t))}))},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,this.getDom()&&Ho(this.getDom(),fy,"");var t=this,e=t._api,n=t._model;R(t._componentsViews,(function(t){t.dispose(n,e)})),R(t._chartsViews,(function(t){t.dispose(n,e)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete hy[t.id]}},e.prototype.resize=function(t){if(!this[Tm])if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[Cm]&&(null==i&&(i=this[Cm].silent),n=!0,this[Cm]=null),this[Tm]=!0;try{n&&Rm(this),zm.update.call(this,{type:"resize",animation:C({duration:0},t&&t.animation)})}catch(r){throw this[Tm]=!1,r}this[Tm]=!1,Fm.call(this,i),Hm.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)this.id;else if(X(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),uy[t]){var n=uy[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=C({},t);return e.type=ry[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)this.id;else if(X(e)||(e={silent:!!e}),iy[t.type]&&this._model)if(this[Tm])this._pendingActions.push(t);else{var n=e.silent;Gm.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&r.browser.weChat&&this._throttledZrFlush(),Fm.call(this,n),Hm.call(this,n)}},e.prototype.updateLabelLayout=function(){_m.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)this.id;else{var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),2===t.hoverState&&t.states.emphasis?e.push("emphasis"):1===t.hoverState&&t.states.blur&&e.push("blur"),t.useStates(e)}function i(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,i=t.get("zlevel")||0;e.eachRendered((function(t){return o(t,n,i,-1/0),!0}))}}function o(t,e,n,i){var r=t.getTextContent(),a=t.getTextGuideLine();if(t.isGroup)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=Math.max(o(s[l],e,n,i),i);else t.z=e,t.zlevel=n,i=Math.max(t.z2,i);if(r&&(r.z=e,r.zlevel=n,isFinite(i)&&(r.z2=i+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=n,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function a(t,e){e.eachRendered((function(t){if(!vh(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 s(t,n){var i=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered((function(t){if(t.states&&t.states.emphasis){if(vh(t))return;if(t instanceof Cs&&function(t){var e=ol(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}(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(r){t.stateTransition=a;var i=t.getTextContent(),o=t.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}}))}Rm=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Nm(t,!0),Nm(t,!1),e.plan()},Nm=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<r.length;l++)r[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,h=!l&&o[u];if(!h){var c=Xo(t.type);(h=new(e?Cg.getClass(c.main,c.sub):kg.getClass(c.sub))).init(n,s),o[u]=h,r.push(h),a.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,n,s)}e?n.eachComponent((function(t,e){"series"!==t&&u(e)})):n.eachSeries(u);for(l=0;l<r.length;){var h=r[l];h.__alive?l++:(!e&&h.renderTask.dispose(),a.remove(h.group),h.dispose(n,s),r.splice(l,1),o[h.__id]===h&&delete o[h.__id],h.__id=h.group.__ecComponentInfo=null)}},Em=function(t,e,n,i,r){var o=t._model;if(o.setUpdatePayload(n),i){var a={};a[i+"Id"]=n[i+"Id"],a[i+"Index"]=n[i+"Index"],a[i+"Name"]=n[i+"Name"];var s={mainType:i,query:a};r&&(s.subType=r);var l,u=n.excludeSeriesId;null!=u&&(l=ft(),R(So(u),(function(t){var e=ko(t,null);null!=e&&l.set(e,!0)}))),o&&o.eachComponent(s,(function(e){if(!(l&&null!=l.get(e.id)))if(Jl(n))if(e instanceof xg)n.type!==hl||n.notBlur||e.get(["emphasis","disabled"])||function(t,e,n){var i=t.seriesIndex,r=t.getData(e.dataType);if(r){var o=Ro(r,e);o=(H(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a)for(var s=r.count(),l=0;!a&&l<s;)a=r.getItemGraphicEl(l++);if(a){var u=el(a);Vl(i,u.focus,u.blurScope,n)}else{var h=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);null!=h&&Vl(i,h,c,n)}}}(e,n,t._api);else{var i=Gl(e.mainType,e.componentIndex,n.name,t._api),r=i.focusSelf,o=i.dispatchers;n.type===hl&&r&&!n.notBlur&&Bl(e.mainType,e.componentIndex,t._api),o&&R(o,(function(t){n.type===hl?Ll(t):kl(t)}))}else $l(n)&&e instanceof xg&&(!function(t,e){if($l(e)){var n=e.dataType,i=Ro(t.getData(n),e);H(i)||(i=[i]),t[e.type===fl?"toggleSelect":e.type===dl?"select":"unselect"](i,n)}}(e,n,t._api),Fl(e),Km(t))}),t),o&&o.eachComponent(s,(function(e){l&&null!=l.get(e.id)||h(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else R([].concat(t._componentsViews).concat(t._chartsViews),h);function h(i){i&&i.__alive&&i[e]&&i[e](i.__model,o,t._api,n)}},zm={prepareAndUpdate:function(t){Rm(this),zm.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var i=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(e),s.restoreData(i,e),s.performSeriesTasks(i),a.create(i,r),s.performDataProcessorTasks(i,e),Bm(this,i),a.update(i,r),t(i),s.performVisualTasks(i,e),Ym(this,i,r,e,n);var l=i.get("backgroundColor")||"transparent",u=i.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),_m.trigger("afterupdate",i,r)}},updateTransform:function(e){var n=this,i=this._model,r=this._api;if(i){i.setUpdatePayload(e);var o=[];i.eachComponent((function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,i,r,e);l&&l.update&&o.push(s)}else o.push(s)}}));var a=ft();i.eachSeries((function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,i,r,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)})),t(i),this._scheduler.performVisualTasks(i,e,{setDirty:!0,dirtyMap:a}),Xm(this,i,r,e,{},a),_m.trigger("afterupdate",i,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),kg.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),Ym(this,n,this._api,e,{}),_m.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,i=this._model;i&&(i.setUpdatePayload(e),i.eachSeries((function(t){t.getData().clearAllVisual()})),kg.markUpdateMethod(e,"updateVisual"),t(i),this._scheduler.performVisualTasks(i,e,{visualType:"visual",setDirty:!0}),i.eachComponent((function(t,r){if("series"!==t){var o=n.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,n._api,e)}})),i.eachSeries((function(t){n._chartsMap[t.__viewId].updateVisual(t,i,n._api,e)})),_m.trigger("afterupdate",i,this._api))},updateLayout:function(t){zm.update.call(this,t)}},Vm=function(t,e,n,i){if(t._disposed)t.id;else for(var r,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=zo(o,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(r=u[e](o,s,i)))return r}},Bm=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries((function(t){i.updateStreamModes(t,n[t.__viewId])}))},Gm=function(t,e){var n=this,i=this.getModel(),r=t.type,o=t.escapeConnect,a=iy[r],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),h=null!=l[0]&&Xo(l[0]);this[Tm]=!0;var c=[t],d=!1;t.batch&&(d=!0,c=N(t.batch,(function(e){return(e=A(C({},e),t)).batch=null,e})));var p,f=[],g=$l(t),v=Jl(t);if(v&&zl(this._api),R(c,(function(e){if((p=(p=a.action(e,n._model,n._api))||C({},e)).type=s.event||p.type,f.push(p),v){var i=Vo(t),r=i.queryOptionMap,o=i.mainTypeSpecified?r.keys()[0]:"series";Em(n,u,e,o),Km(n)}else g?(Em(n,u,e,"series"),Km(n)):h&&Em(n,u,e,h.main,h.sub)})),"none"!==u&&!v&&!g&&!h)try{this[Cm]?(Rm(this),zm.update.call(this,t),this[Cm]=null):zm[u].call(this,t)}catch(x){throw this[Tm]=!1,x}if(p=d?{type:s.event||r,escapeConnect:o,batch:f}:f[0],this[Tm]=!1,!e){var m=this._messageCenter;if(m.trigger(p.type,p),g){var y={type:"selectchanged",escapeConnect:o,selected:Hl(i),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};m.trigger(y.type,y)}}},Fm=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();Gm.call(this,n,t)}},Hm=function(t){!t&&this.trigger("updated")},Wm=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[Cm]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},Um=function(t,e){t.on("mouseover",(function(t){var n=kv(t.target,Kl);n&&(!function(t,e,n){var i=el(t),r=Gl(i.componentMainType,i.componentIndex,i.componentHighDownName,n),o=r.dispatchers,a=r.focusSelf;o?(a&&Bl(i.componentMainType,i.componentIndex,n),R(o,(function(t){return Al(t,e)}))):(Vl(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&Bl(i.componentMainType,i.componentIndex,n),Al(t,e))}(n,t,e._api),Km(e))})).on("mouseout",(function(t){var n=kv(t.target,Kl);n&&(!function(t,e,n){zl(n);var i=el(t),r=Gl(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;r?R(r,(function(t){return Dl(t,e)})):Dl(t,e)}(n,t,e._api),Km(e))})).on("click",(function(t){var n=kv(t.target,(function(t){return null!=el(t).dataIndex}),!0);if(n){var i=n.selected?"unselect":"select",r=el(n);e._api.dispatchAction({type:i,dataType:r.dataType,dataIndexInside:r.dataIndex,seriesIndex:r.seriesIndex,isFromClick:!0})}}))},Ym=function(t,e,n,i,r){!function(t){var e=[],n=[],i=!1;if(t.eachComponent((function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})})),i){var r,o,a=e.concat(n);$e(a,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),R(a,(function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,a=e.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setZLevel(i)}))}}(e),Zm(t,e,n,i,r),R(t._chartsViews,(function(t){t.__alive=!1})),Xm(t,e,n,i,r),R(t._chartsViews,(function(t){t.__alive||t.remove(e,n)}))},Zm=function(t,e,n,r,o,l){R(l||t._componentsViews,(function(t){var o=t.__model;a(o,t),t.render(o,e,n,r),i(o,t),s(o,t)}))},Xm=function(t,e,n,o,l,u){var h=t._scheduler;l=C(l||{},{updatedSeries:e.getSeries()}),_m.trigger("series:beforeupdate",e,n,l);var c=!1;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var i=n.renderTask;h.updatePayload(i,o),a(e,n),u&&u.get(e.uid)&&i.dirty(),i.perform(h.getPerformArgs(i))&&(c=!0),n.group.silent=!!e.get("silent"),function(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}(e,n),Fl(e)})),h.unfinished=c||h.unfinished,_m.trigger("series:layoutlabels",e,n,l),_m.trigger("series:transition",e,n,l),e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];i(e,n),s(e,n)})),function(t,e){var n=t._zr,i=n.storage,o=0;i.traverse((function(t){t.isGroup||o++})),o>e.get("hoverLayerThreshold")&&!r.node&&!r.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)}))}}))}(t,e),_m.trigger("series:afterupdate",e,n,l)},Km=function(t){t[Am]=!0,t.getZr().wakeUp()},$m=function(t){t[Am]&&(t.getZr().storage.traverse((function(t){vh(t)||e(t)})),t[Am]=!1)},jm=function(t){return new(function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return n(i,e),i.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},i.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},i.prototype.enterEmphasis=function(e,n){Ll(e,n),Km(t)},i.prototype.leaveEmphasis=function(e,n){kl(e,n),Km(t)},i.prototype.enterBlur=function(e){Pl(e),Km(t)},i.prototype.leaveBlur=function(e){Ol(e),Km(t)},i.prototype.enterSelect=function(e){Rl(e),Km(t)},i.prototype.leaveSelect=function(e){Nl(e),Km(t)},i.prototype.getModel=function(){return t.getModel()},i.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},i.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},i}(yp))(t)},qm=function(t){function e(t,e){for(var n=0;n<t.length;n++){t[n][Lm]=e}}R(ry,(function(n,i){t._messageCenter.on(i,(function(n){if(cy[t.group]&&0!==t[Lm]){if(n&&n.escapeConnect)return;var i=t.makeActionFromEvent(n),r=[];R(hy,(function(e){e!==t&&e.group===t.group&&r.push(e)})),e(r,0),R(r,(function(t){1!==t[Lm]&&t.dispatchAction(i)})),e(r,2)}}))}))}}(),e}(Zt),ey=ty.prototype;ey.on=km("on"),ey.off=km("off"),ey.one=function(t,e,n){var i=this;this.on.call(this,t,(function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e&&e.apply&&e.apply(this,r),i.off(t,n)}),n)};var ny=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var iy={},ry={},oy=[],ay=[],sy=[],ly={},uy={},hy={},cy={},dy=+new Date-0,py=+new Date-0,fy="_echarts_instance_";function gy(t,e,n){var i=!(n&&n.ssr);if(i){var r=yy(t);if(r)return r}var o=new ty(t,e,n);return o.id="ec_"+dy++,hy[o.id]=o,i&&Ho(t,fy,o.id),qm(o),_m.trigger("afterinit",o),o}function vy(t){cy[t]=!1}var my=vy;function yy(t){return hy[function(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,fy)]}function xy(t,e){ly[t]=e}function _y(t){L(ay,t)<0&&ay.push(t)}function by(t,e){ky(oy,t,e,2e3)}function wy(t){My("afterinit",t)}function Sy(t){My("afterupdate",t)}function My(t,e){_m.on(t,e)}function Iy(t,e,n){W(e)&&(n=e,e="");var i=X(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,ry[e]||(at(Dm.test(i)&&Dm.test(e)),iy[i]||(iy[i]={action:n,actionInfo:t}),ry[e]=i)}function Ty(t,e){_p.register(t,e)}function Cy(t){var e=_p.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function Ay(t,e){ky(sy,t,e,1e3,"layout")}function Dy(t,e){ky(sy,t,e,3e3,"visual")}var Ly=[];function ky(t,e,n,i,r){if((W(e)||X(e))&&(n=e,e=i),!(L(Ly,n)>=0)){Ly.push(n);var o=Qg.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function Py(t,e){uy[t]=e}function Oy(t,e,n){var i=wm("registerMap");i&&i(t,e,n)}function Ry(t){var e=wm("getMap");return e&&e(t)}var Ny=function(t){var e=(t=M(t)).type;e||xo("");var n=e.split(":");2!==n.length&&xo("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,Ef.set(e,t)};Dy(Sm,jg),Dy(Mm,Kg),Dy(Mm,$g),Dy(Sm,Mv),Dy(Mm,Iv),Dy(7e3,(function(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=vm(n,e))}));var r=i.getVisual("decal");if(r)i.getVisual("style").decal=vm(r,e)}}))})),_y(Wp),by(900,(function(t){var e=ft();t.eachSeries((function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}})),e.each(Up)})),Py("default",(function(t,e){A(e=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 zr,i=new Bs({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,o=new Hs({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Bs({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((r=new Qu({shape:{startAngle:-Jg/2,endAngle:-Jg/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Jg/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Jg/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.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&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n})),Iy({type:hl,event:hl,update:hl},xt),Iy({type:cl,event:cl,update:cl},xt),Iy({type:dl,event:dl,update:dl},xt),Iy({type:pl,event:pl,update:pl},xt),Iy({type:fl,event:fl,update:fl},xt),xy("light",gv),xy("dark",_v);function Ey(t){return null==t?0:t.length||1}function zy(t){return t}var Vy=function(){function t(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||zy,this._newKeyGetter=i||zy,this.context=r,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={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=i[o],s=n[a],l=Ey(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(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=n[s],u=i[s],h=Ey(l),c=Ey(u);if(h>1&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===h&&c>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),i[s]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(h>1)for(var d=0;d<h;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[i],o=Ey(r);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[i](t[o],o);if(r||(n[o]=a),e){var s=e[a],l=Ey(s);0===l?(e[a]=o,r&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),By=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}();function Gy(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Fy(t){return"category"===t?"ordinal":"time"===t?"time":"float"}var Hy=function(){return function(t){this.otherDims={},null!=t&&C(this,t)}}(),Wy=No(),Uy={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Yy=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=jy(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return nt(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=rf(this.source),n=!qy(t),i="",r=[],o=0,a=0;o<t;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)}r.push({property:s,type:l,ordinalMeta:u}),!e||null==s||h&&h.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=Uy[l]||"f",u&&(i+=u.uid),i+="$"}var d=this.source;return{dimensions:r,hash:[d.seriesLayoutBy,d.startIndex,i].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===e)r.isCalculationCoord||(i=r.name),n++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function Zy(t){return t instanceof Yy}function Xy(t){for(var e=ft(),n=0;n<(t||[]).length;n++){var i=t[n],r=X(i)?i.name:i;null!=r&&null==e.get(r)&&e.set(r,n)}return e}function jy(t){var e=Wy(t);return e.dimNameMap||(e.dimNameMap=Xy(t.dimensionsDefine))}function qy(t){return t>30}var Ky,$y,Jy,Qy,tx,ex,nx,ix=X,rx=N,ox="undefined"==typeof Int32Array?Array:Int32Array,ax=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],sx=["_approximateExtent"],lx=function(){function t(t,e){var n;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","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i=!1;Zy(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var h=n[u],c=U(h)?new Hy({name:h}):h instanceof Hy?h:new Hy(h),d=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=d,c.coordDimIndex=0);var p=c.otherDims=c.otherDims||{};o.push(d),r[d]=c,null!=l[d]&&(s=!0),c.createInvertedIndices&&(a[d]=[]),0===p.itemName&&(this._nameDimIdx=u),0===p.itemId&&(this._idDimIdx=u),i&&(c.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var f=this._dimIdxToName=ft();R(o,(function(t){f.set(r[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 i=this._schema.getSourceDimension(e);return i?i.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){if(Z(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},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 i=n.encode[t];return i?i[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var i,r=this;if(t instanceof jf&&(i=t),!i){var o=this.dimensions,a=$p(t)||O(t)?new of(t,o.length):t;i=new jf;var s=rx(o,(function(t){return{type:r._dimInfos[t].type,property:t}}));i.initData(a,s,n)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=function(t,e){var n={},i=n.encode={},r=ft(),o=[],a=[],s={};R(t.dimensions,(function(e){var n,l=t.getDimensionInfo(e),u=l.coordDim;if(u){var h=l.coordDimIndex;Gy(i,u)[h]=e,l.isExtraCoord||(r.set(u,1),"ordinal"!==(n=l.type)&&"time"!==n&&(o[0]=e),Gy(s,u)[h]=t.getDimensionIndex(l.name)),l.defaultTooltip&&a.push(e)}Bd.each((function(t,e){var n=Gy(i,e),r=l.otherDims[e];null!=r&&!1!==r&&(n[r]=l.name)}))}));var l=[],u={};r.each((function(t,e){var n=i[e];u[e]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=N(l,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=u;var h=i.label;h&&h.length&&(o=h.slice());var c=i.tooltip;return c&&c.length?a=c.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new By(s,e),n}(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&&e.length),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=i;a<r;a++){var s=a-i;this._nameList[a]=e[s],o&&nx(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==Ud&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,r=this._idList;if(n.getSource().sourceFormat===Gd&&!n.pure)for(var o=[],a=t;a<e;a++){var s=n.getItem(a,o);if(!this.hasItemOption&&Co(s)&&(this.hasItemOption=!0),s){var l=s.name;null==i[a]&&null!=l&&(i[a]=ko(l,null));var u=s.id;null==r[a]&&null!=u&&(r[a]=ko(u,null))}}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)nx(this,a);Ky(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){ix(t)?C(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=Jy(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},t.prototype.getId=function(t){return $y(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},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,i=this._store;return H(t)?i.getValues(rx(t,(function(t){return n._getStoreDimIndex(t)})),e):i.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;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();e<n;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],i=n&&n[e];return null==i||isNaN(i)?-1:i},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){W(t)&&(n=e,e=t,t=[]);var i=n||this,r=rx(Qy(t),this._getStoreDimIndex,this);this._store.each(r,i?G(e,i):e)},t.prototype.filterSelf=function(t,e,n){W(t)&&(n=e,e=t,t=[]);var i=n||this,r=rx(Qy(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?G(e,i):e),this},t.prototype.selectRange=function(t){var e=this,n={};return R(B(t),(function(i){var r=e._getStoreDimIndex(i);n[r]=t[i]})),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){W(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,(function(){i.push(e&&e.apply(this,arguments))}),n),i},t.prototype.map=function(t,e,n,i){var r=n||i||this,o=rx(Qy(t),this._getStoreDimIndex,this),a=ex(this);return a._store=this._store.map(o,r?G(e,r):e),a},t.prototype.modify=function(t,e,n,i){var r=n||i||this,o=rx(Qy(t),this._getStoreDimIndex,this);this._store.modify(o,r?G(e,r):e)},t.prototype.downSample=function(t,e,n,i){var r=ex(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},t.prototype.minmaxDownSample=function(t,e){var n=ex(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},t.prototype.lttbDownSample=function(t,e){var n=ex(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 Mc(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new Vy(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return $y(t,e)}),(function(t){return $y(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||{},ix(t)?C(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(H(r=this.getVisual(e))?r=r.slice():ix(r)&&(r=C({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,ix(e)?C(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){ix(t)?C(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?C(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;nl(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){R(this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:rx(this.dimensions,this._getDimInfo,this),this.hostModel)),tx(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];W(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(rt(arguments)))})},t.internalField=(Ky=function(t){var e=t._invertedIndicesMap;R(e,(function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new ox(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}}))},Jy=function(t,e,n){return ko(t._getCategory(e,n),null)},$y=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=Jy(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},Qy=function(t){return H(t)||(t=null!=t?[t]:[]),t},ex=function(e){var n=new t(e._schema?e._schema:rx(e.dimensions,e._getDimInfo,e),e.hostModel);return tx(n,e),n},tx=function(t,e){R(ax.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,R(sx,(function(n){t[n]=M(e[n])})),t._calculationInfo=C({},e._calculationInfo)},void(nx=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=i[e];if(null==a&&null!=r&&(n[e]=a=Jy(t,r,e)),null==s&&null!=o&&(i[e]=s=Jy(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),i[e]=s}})),t}();function ux(t,e){return hx(t,e).dimensions}function hx(t,e){$p(t)||(t=Qp(t));var n=(e=e||{}).coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],r=ft(),o=[],a=function(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return R(e,(function(t){var e;X(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))})),r}(t,n,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&qy(a),l=i===t.dimensionsDefine,u=l?jy(t):Xy(i),h=e.encodeDefine;!h&&e.encodeDefaulter&&(h=e.encodeDefaulter(t,a));for(var c=ft(h),d=new Wf(a),p=0;p<d.length;p++)d[p]=-1;function f(t){var e=d[t];if(e<0){var n=i[t],r=X(n)?n:{name:n},a=new Hy,s=r.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=r.type&&(a.type=r.type),null!=r.displayName&&(a.displayName=r.displayName);var l=o.length;return d[t]=l,a.storeDimIndex=t,o.push(a),a}return o[e]}if(!s)for(p=0;p<a;p++)f(p);c.each((function(t,e){var n=So(t).slice();if(1===n.length&&!U(n[0])&&n[0]<0)c.set(e,!1);else{var i=c.set(e,[]);R(n,(function(t,n){var r=U(t)?u.get(t):t;null!=r&&r<a&&(i[n]=r,v(f(r),e,n))}))}}));var g=0;function v(t,e,n){null!=Bd.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,r.set(e,!0))}R(n,(function(t){var e,n,i,r;if(U(t))e=t,r={};else{e=(r=t).name;var o=r.ordinalMeta;r.ordinalMeta=null,(r=C({},r)).ordinalMeta=o,n=r.dimsDef,i=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var s=c.get(e);if(!1!==s){if(!(s=So(s)).length)for(var u=0;u<(n&&n.length||1);u++){for(;g<a&&null!=f(g).coordDim;)g++;g<a&&s.push(g++)}R(s,(function(t,o){var a=f(t);if(l&&null!=r.type&&(a.type=r.type),v(A(a,r),e,o),null==a.name&&n){var s=n[o];!X(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}i&&A(a.otherDims,i)}))}}));var m=e.generateCoord,y=e.generateCoordCount,x=null!=y;y=m?y||1:0;var _=m||"value";function b(t){null==t.name&&(t.name=t.coordDim)}if(s)R(o,(function(t){b(t)})),o.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var w=0;w<a;w++){var S=f(w);null==S.coordDim&&(S.coordDim=cx(_,r,x),S.coordDimIndex=0,(!m||y<=0)&&(S.isExtraCoord=!0),y--),b(S),null!=S.type||ep(t,w)!==jd&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return function(t){for(var e=ft(),n=0;n<t.length;n++){var i=t[n],r=i.name,o=e.get(r)||0;o>0&&(i.name=r+(o-1)),o++,e.set(r,o)}}(o),new Yy({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function cx(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}var dx=function(){return function(t){this.coordSysDims=[],this.axisMap=ft(),this.categoryAxisMap=ft(),this.coordSysName=t}}();var px={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",Bo).models[0],o=t.getReferringComponents("yAxis",Bo).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),fx(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),fx(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",Bo).models[0];e.coordSysDims=["single"],n.set("single",r),fx(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",Bo).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),fx(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),fx(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();R(o.parallelAxisIndex,(function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),fx(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function fx(t){return"category"===t.get("type")}function gx(t,e,n){var i,r,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(t){return!Zy(t.schema)}(e)?(r=e.schema,i=r.dimensions,o=e.store):i=e;var l,u,h,c,d=!(!t||!t.get("stack"));if(R(i,(function(t,e){U(t)&&(i[e]=t={name:t}),d&&!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="__\0ecstackresult_"+t.id,c="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,f=u.type,g=0;R(i,(function(t){t.coordDim===p&&g++}));var v={name:h,coordDim:p,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:c,coordDim:c,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(v.storeDimIndex=o.ensureCalculationDimension(c,f),m.storeDimIndex=o.ensureCalculationDimension(h,f)),r.appendCalculationDimension(v),r.appendCalculationDimension(m)):(i.push(v),i.push(m))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:h}}function vx(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function mx(t,e){return vx(t,e)?t.getCalculationInfo("stackResultDimension"):e}function yx(t,e,n){n=n||{};var i,r=e.getSourceManager(),o=!1;t?(o=!0,i=Qp(t)):o=(i=r.getSource()).sourceFormat===Gd;var a=function(t){var e=t.get("coordinateSystem"),n=new dx(e),i=px[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}(e),s=function(t,e){var n,i=t.get("coordinateSystem"),r=_p.get(i);return e&&e.coordSysDims&&(n=N(e.coordSysDims,(function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get("type");n.type=Fy(r)}return n}))),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}(e,a),l=n.useEncodeDefaulter,u=W(l)?l:l?F(Jd,s,e):null,h=hx(i,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),c=function(t,e,n){var i,r;return n&&R(t,(function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)})),r||null==i||(t[i].otherDims.itemName=0),i}(h.dimensions,n.createInvertedIndices,a),d=o?null:r.getSharedDataStore(h),p=gx(e,{schema:h,store:d}),f=new lx(h,e);f.setCalculationInfo(p);var g=null!=c&&function(t){if(t.sourceFormat===Gd){var e=function(t){var e=0;for(;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return!H(To(e))}}(i)?function(t,e,n,i){return i===c?n:this.defaultDimValueGetter(t,e,n,i)}:null;return f.hasItemOption=!1,f.initData(o?i:d,null,g),f}var xx=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}();Qo(xx);var _x=0,bx=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++_x}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&N(i,Sx);return new t({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!U(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=ft(this.categories))},t}();function Sx(t){return X(t)&&null!=t.value?t.value:t+""}function Mx(t){return"interval"===t.type||"log"===t.type}function Ix(t,e,n,i){var r={},o=t[1]-t[0],a=r.interval=ho(o/e,!0);null!=n&&a<n&&(a=r.interval=n),null!=i&&a>i&&(a=r.interval=i);var s=r.intervalPrecision=Cx(a);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Ax(t,0,e),Ax(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(r.niceTickExtent=[Kr(Math.ceil(t[0]/a)*a,s),Kr(Math.floor(t[1]/a)*a,s)],t),r}function Tx(t){var e=Math.pow(10,uo(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Kr(n*e)}function Cx(t){return Jr(t)+2}function Ax(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Dx(t,e){return t>=e[0]&&t<=e[1]}function Lx(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function kx(t,e){return t*(e[1]-e[0])+e[0]}var Px=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new bx({})),H(i)&&(i=new bx({categories:N(i,(function(t){return X(t)?t.value:t}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return n(e,t),e.prototype.parse=function(t){return null==t?NaN:U(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return Dx(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return Lx(t=this._getTickNumber(this.parse(t)),this._extent)},e.prototype.scale=function(t){return t=Math.round(kx(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r<a;++r){var s=e[r];n[r]=s,i[s]=r}for(var l=0;r<o;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(xx);xx.registerClass(Px);var Ox=Kr,Rx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return n(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Dx(t,this._extent)},e.prototype.normalize=function(t){return Lx(t,this._extent)},e.prototype.scale=function(t){return kx(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.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])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Cx(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;n[0]<i[0]&&(t?o.push({value:Ox(i[0]-e,r)}):o.push({value:n[0]}));for(var a=i[0];a<=i[1]&&(o.push({value:a}),(a=Ox(a+e,r))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:i[1];return n[1]>s&&(t?o.push({value:Ox(s+e,r)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<e.length;r++){for(var o=e[r],a=e[r-1],s=0,l=[],u=(o.value-a.value)/t;s<t-1;){var h=Ox(a.value+(s+1)*u);h>i[0]&&h<i[1]&&l.push(h),s++}n.push(l)}return n},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=Jr(t.value)||0:"auto"===n&&(n=this._intervalPrecision),dd(Ox(t.value,n,!0))},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var o=Ix(i,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.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[1]+=n/2),e[0]-=n/2}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=Ox(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=Ox(Math.ceil(e[1]/r)*r))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(xx);xx.registerClass(Rx);var Nx="undefined"!=typeof Float32Array,Ex=Nx?Float32Array:Array;function zx(t){return H(t)?Nx?new Float32Array(t):t:new Ex(t)}var Vx="__ec_stack_";function Bx(t){return t.get("stack")||Vx+t.seriesIndex}function Gx(t){return t.dim+t.index}function Fx(t,e){var n=[];return e.eachSeriesByType(t,(function(t){Zx(t)&&n.push(t)})),n}function Hx(t){var e=function(t){var e={};R(t,(function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=t.getData(),r=n.dim+"_"+n.index,o=i.getDimensionIndex(i.mapDimension(n.dim)),a=i.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(o,s);e[r]?e[r].push(u):e[r]=[u]}}));var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];if(r){r.sort((function(t,e){return t-e}));for(var o=null,a=1;a<r.length;++a){var s=r[a]-r[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}(t),n=[];return R(t,(function(t){var i,r=t.coordinateSystem.getBaseAxis(),o=r.getExtent();if("category"===r.type)i=r.getBandWidth();else if("value"===r.type||"time"===r.type){var a=r.dim+"_"+r.index,s=e[a],l=Math.abs(o[1]-o[0]),u=r.scale.getExtent(),h=Math.abs(u[1]-u[0]);i=s?l/h*s:l}else{var c=t.getData();i=Math.abs(o[1]-o[0])/c.count()}var d=qr(t.get("barWidth"),i),p=qr(t.get("barMaxWidth"),i),f=qr(t.get("barMinWidth")||(Xx(t)?.5:1),i),g=t.get("barGap"),v=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:d,barMaxWidth:p,barMinWidth:f,barGap:g,barCategoryGap:v,axisKey:Gx(r),stackId:Bx(t)})})),Wx(n)}function Wx(t){var e={};R(t,(function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var h=t.barMinWidth;h&&(a[s].minWidth=h);var c=t.barGap;null!=c&&(o.gap=c);var d=t.barCategoryGap;null!=d&&(o.categoryGap=d)}));var n={};return R(e,(function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=B(i).length;o=Math.max(35-4*a,15)+"%"}var s=qr(o,r),l=qr(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,c=(u-s)/(h+(h-1)*l);c=Math.max(c,0),R(i,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,h--}else{var i=c;e&&e<i&&(i=Math.min(e,u)),n&&n>i&&(i=n),i!==c&&(t.width=i,u-=i+l*i,h--)}})),c=(u-s)/(h+(h-1)*l),c=Math.max(c,0);var d,p=0;R(i,(function(t,e){t.width||(t.width=c),d=t,p+=t.width*(1+l)})),d&&(p-=d.width*l);var f=-p/2;R(i,(function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:f,width:t.width},f+=t.width*(1+l)}))})),n}function Ux(t,e){var n=Fx(t,e),i=Hx(n);R(n,(function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),r=Bx(t),o=i[Gx(n)][r],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})}))}function Yx(t){return{seriesType:t,plan:Ag(),reset:function(t){if(Zx(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(r.dim)),a=e.getDimensionIndex(e.mapDimension(i.dim)),s=t.get("showBackground",!0),l=e.mapDimension(r.dim),u=e.getCalculationInfo("stackResultDimension"),h=vx(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),c=r.isHorizontal(),d=function(t,e){var n=e.model.get("startValue");n||(n=0);return e.toGlobalCoord(e.dataToCoord("log"===e.type?n>0?n:1:n))}(0,r),p=Xx(t),f=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),v=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(t,e){for(var i,r=t.count,l=p&&zx(3*r),u=p&&s&&zx(3*r),y=p&&zx(r),x=n.master.getRect(),_=c?x.width:x.height,b=e.getStore(),w=0;null!=(i=t.next());){var S=b.get(h?g:o,i),M=b.get(a,i),I=d,T=void 0;h&&(T=+S-b.get(o,i));var C=void 0,A=void 0,D=void 0,L=void 0;if(c){var k=n.dataToPoint([S,M]);if(h)I=n.dataToPoint([T,M])[0];C=I,A=k[1]+m,D=k[0]-I,L=v,Math.abs(D)<f&&(D=(D<0?-1:1)*f)}else{k=n.dataToPoint([M,S]);if(h)I=n.dataToPoint([M,T])[1];C=k[0]+m,A=I,D=v,L=k[1]-I,Math.abs(L)<f&&(L=(L<=0?-1:1)*f)}p?(l[w]=C,l[w+1]=A,l[w+2]=c?D:L,u&&(u[w]=c?x.x:C,u[w+1]=c?A:x.y,u[w+2]=_),y[i]=i):e.setItemLayout(i,{x:C,y:A,width:D,height:L}),w+=3}p&&e.setLayout({largePoints:l,largeDataIndices:y,largeBackgroundPoints:u,valueAxisHorizontal:c})}}}}}}function Zx(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function Xx(t){return t.pipelineContext&&t.pipelineContext.large}var jx=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return n(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return qc(t.value,Wc[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Xc(this._minLevelUnit))]||Wc.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC");return function(t,e,n,i,r){var o=null;if(U(n))o=n;else if(W(n))o=n(t.value,e,{level:t.level});else{var a=C({},Fc);if(t.level>0)for(var s=0;s<Uc.length;++s)a[Uc[s]]="{primary|"+a[Uc[s]]+"}";var l=n?!1===n.inherit?n:A(n,a):a,u=Kc(t.value,r);if(l[u])o=l[u];else if(l.inherit){for(s=Yc.indexOf(u)-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(H(o)){var h=null==t.level?0:t.level>=0?t.level:o.length+t.level;o=o[h=Math.min(h,o.length-1)]}}return qc(new Date(t.value),o,r,i)}(t,e,n,this.getSetting("locale"),i)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),r=function(t,e,n,i){var r=1e4,o=Yc,a=0;function s(t,e,n,r,o,a,s){for(var l=new Date(e),u=e,h=l[r]();u<n&&u<=i[1];)s.push({value:u}),h+=t,l[o](h),u=l.getTime();s.push({value:u,notAdd:!0})}function l(t,r,o){var a=[],l=!r.length;if(!function(t,e,n,i){var r=so(e),o=so(n),a=function(t){return $c(r,t,i)===$c(o,t,i)},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")},d=function(){return c()&&a("second")},p=function(){return d()&&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 d();case"millisecond":return p()}}(Xc(t),i[0],i[1],n)){l&&(r=[{value:e_(new Date(i[0]),t,n)},{value:i[1]}]);for(var u=0;u<r.length-1;u++){var h=r[u].value,c=r[u+1].value;if(h!==c){var d=void 0,p=void 0,f=void 0,g=!1;switch(t){case"year":d=Math.max(1,Math.round(e/Bc/365)),p=Jc(n),f=od(n);break;case"half-year":case"quarter":case"month":d=$x(e),p=Qc(n),f=ad(n);break;case"week":case"half-week":case"day":d=Kx(e),p=td(n),f=sd(n),g=!0;break;case"half-day":case"quarter-day":case"hour":d=Jx(e),p=ed(n),f=ld(n);break;case"minute":d=Qx(e,!0),p=nd(n),f=ud(n);break;case"second":d=Qx(e,!1),p=id(n),f=hd(n);break;case"millisecond":d=t_(e),p=rd(n),f=cd(n)}s(d,h,c,p,f,g,a),"year"===t&&o.length>1&&0===u&&o.unshift({value:o[0].value-d})}}for(u=0;u<a.length;u++)o.push(a[u]);return a}}for(var u=[],h=[],c=0,d=0,p=0;p<o.length&&a++<r;++p){var f=Xc(o[p]);if(jc(o[p]))if(l(o[p],u[u.length-1]||[],h),f!==(o[p+1]?Xc(o[p+1]):null)){if(h.length){d=c,h.sort((function(t,e){return t.value-e.value}));for(var g=[],v=0;v<h.length;++v){var m=h[v].value;0!==v&&h[v-1].value===m||(g.push(h[v]),m>=i[0]&&m<=i[1]&&c++)}var y=(i[1]-i[0])/e;if(c>1.5*y&&d>y/1.5)break;if(u.push(g),c>y||t===o[p])break}h=[]}}var x=z(N(u,(function(t){return z(t,(function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return t.length>0})),_=[],b=x.length-1;for(p=0;p<x.length;++p)for(var w=x[p],S=0;S<w.length;++S)_.push({value:w[S].value,level:b-p});_.sort((function(t,e){return t.value-e.value}));var M=[];for(p=0;p<_.length;++p)0!==p&&_[p].value===_[p-1].value||M.push(_[p]);return M}(this._minLevelUnit,this._approxInterval,i,e);return(n=n.concat(r)).push({value:e[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=Bc,e[1]+=Bc),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-Bc}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=qx.length,a=Math.min(function(t,e,n,i){for(;n<i;){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n}(qx,this._approxInterval,0,o),o-1);this._interval=qx[a][1],this._minLevelUnit=qx[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return Z(t)?t:+so(t)},e.prototype.contain=function(t){return Dx(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Lx(this.parse(t),this._extent)},e.prototype.scale=function(t){return kx(t,this._extent)},e.type="time",e}(Rx),qx=[["second",Ec],["minute",zc],["hour",Vc],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",Gc/2],["year",Gc]];function Kx(t,e){return(t/=Bc)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function $x(t){return(t/=2592e6)>6?6:t>3?3:t>2?2:1}function Jx(t){return(t/=Vc)>12?12:t>6?6:t>3.5?4:t>2?2:1}function Qx(t,e){return(t/=e?zc:Ec)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function t_(t){return ho(t,!0)}function e_(t,e,n){var i=new Date(t);switch(Xc(e)){case"year":case"month":i[ad(n)](0);case"day":i[sd(n)](1);case"hour":i[ld(n)](0);case"minute":i[ud(n)](0);case"second":i[hd(n)](0),i[cd(n)](0)}return i.getTime()}xx.registerClass(jx);var n_=xx.prototype,i_=Rx.prototype,r_=Kr,o_=Math.floor,a_=Math.ceil,s_=Math.pow,l_=Math.log,u_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Rx,e._interval=0,e}return n(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();return N(i_.getTicks.call(this,t),(function(t){var e=t.value,r=Kr(s_(this.base,e));return r=e===n[0]&&this._fixMin?c_(r,i[0]):r,{value:r=e===n[1]&&this._fixMax?c_(r,i[1]):r}}),this)},e.prototype.setExtent=function(t,e){var n=l_(this.base);t=l_(Math.max(0,t))/n,e=l_(Math.max(0,e))/n,i_.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=n_.getExtent.call(this);e[0]=s_(t,e[0]),e[1]=s_(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=c_(e[0],n[0])),this._fixMax&&(e[1]=c_(e[1],n[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=l_(t[0])/l_(e),t[1]=l_(t[1])/l_(e),n_.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i=lo(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var r=[Kr(a_(e[0]/i)*i),Kr(o_(e[1]/i)*i)];this._interval=i,this._niceExtent=r}},e.prototype.calcNiceExtent=function(t){i_.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Dx(t=l_(t)/l_(this.base),this._extent)},e.prototype.normalize=function(t){return Lx(t=l_(t)/l_(this.base),this._extent)},e.prototype.scale=function(t){return t=kx(t,this._extent),s_(this.base,t)},e.type="log",e}(xx),h_=u_.prototype;function c_(t,e){return r_(t,Jr(e))}h_.getMinorTicks=i_.getMinorTicks,h_.getLabel=i_.getLabel,xx.registerClass(u_);var d_=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var r=e.get("min",!0);null==r&&(r=e.get("startValue",!0));var o=this._modelMinRaw=r;W(o)?this._modelMinNum=v_(t,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=v_(t,o));var a=this._modelMaxRaw=e.get("max",!0);if(W(a)?this._modelMaxNum=v_(t,a({min:n[0],max:n[1]})):"dataMax"!==a&&(this._modelMaxNum=v_(t,a)),i)this._axisDataLen=e.getCategories().length;else{var s=e.get("boundaryGap"),l=H(s)?s:[s||0,s||0];"boolean"==typeof l[0]||"boolean"==typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Ir(l[0],1),Ir(l[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,r=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?i?0:NaN:e-r[0]*o),null==s&&(s=t?i?i-1:NaN:n+r[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var h=tt(a)||tt(s)||t&&!i;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var c=this._determinedMin,d=this._determinedMax;return null!=c&&(a=c,l=!0),null!=d&&(s=d,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[f_[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[p_[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),p_={min:"_determinedMin",max:"_determinedMax"},f_={min:"_dataMin",max:"_dataMax"};function g_(t,e,n){var i=t.rawExtentInfo;return i||(i=new d_(t,e,n),t.rawExtentInfo=i,i)}function v_(t,e){return null==e?null:tt(e)?NaN:t.parse(e)}function m_(t,e){var n=t.type,i=g_(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var r=i.min,o=i.max,a=e.ecModel;if(a&&"time"===n){var s=Fx("bar",a),l=!1;if(R(s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var u=Hx(s),h=function(t,e,n,i){var r=n.axis.getExtent(),o=Math.abs(r[1]-r[0]),a=function(t,e,n){if(t&&e){var i=t[Gx(e)];return null!=i&&null!=n?i[Bx(n)]:i}}(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;R(a,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;R(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=h/(1-(s+l)/o)-h;return e+=c*(l/u),t-=c*(s/u),{min:t,max:e}}(r,o,e,u);r=h.min,o=h.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function y_(t,e){var n=e,i=m_(t,n),r=i.extent,o=n.get("splitNumber");t instanceof u_&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function x_(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Px({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new jx({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(xx.getClass(e)||Rx)}}function __(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,i){return t.scale.getFormattedLabel(n,i,e)}}(e):U(e)?function(e){return function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")}}(e):W(e)?function(e){return function(i,r){return null!=n&&(r=i.value-n),e(b_(t,i),r,null!=i.level?{level:i.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function b_(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function w_(t){var e=t.get("interval");return null==e?"auto":e}function S_(t){return"category"===t.type&&0===w_(t.getLabelModel())}function M_(t,e){var n={};return R(t.mapDimensionsAll(e),(function(e){n[mx(t,e)]=!0})),B(n)}var I_=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}();function T_(t){return yx(null,t)}var C_={isDimensionStacked:vx,enableDataStack:gx,getStackedDimension:mx};function A_(t,e){var n=e;e instanceof Mc||(n=new Mc(e));var i=x_(n);return i.setExtent(t[0],t[1]),y_(i,n),i}function D_(t){P(t,I_)}const L_=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:ux,createList:T_,createScale:A_,createSymbol:Wv,createTextStyle:function(t,e){return nc(t,null,null,"normal"!==(e=e||{}).state)},dataStack:C_,enableHoverEmphasis:Wl,getECData:el,getLayoutRect:Ad,mixinAxisModelCommonMethods:D_},Symbol.toStringTag,{value:"Module"}));var k_=[],P_={registerPreprocessor:_y,registerProcessor:by,registerPostInit:wy,registerPostUpdate:Sy,registerUpdateLifecycle:My,registerAction:Iy,registerCoordinateSystem:Ty,registerLayout:Ay,registerVisual:Dy,registerTransform:Ny,registerLoading:Py,registerMap:Oy,registerImpl:function(t,e){bm[t]=e},PRIORITY:Im,ComponentModel:Nd,ComponentView:Cg,SeriesModel:xg,ChartView:kg,registerComponentModel:function(t){Nd.registerClass(t)},registerComponentView:function(t){Cg.registerClass(t)},registerSeriesModel:function(t){xg.registerClass(t)},registerChartView:function(t){kg.registerClass(t)},registerSubTypeDefaulter:function(t,e){Nd.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Wr(t,e)}};function O_(t){H(t)?R(t,(function(t){O_(t)})):L(k_,t)>=0||(k_.push(t),W(t)&&(t={install:t}),t.install(P_))}function R_(t,e){return Math.abs(t-e)<1e-8}function N_(t,e,n){var i=0,r=t[0];if(!r)return!1;for(var o=1;o<t.length;o++){var a=t[o];i+=gs(r[0],r[1],a[0],a[1],e,n),r=a}var s=t[0];return R_(r[0],s[0])&&R_(r[1],s[1])||(i+=gs(r[0],r[1],s[0],s[1],e,n)),0!==i}var E_=[];function z_(t,e){for(var n=0;n<t.length;n++)Gt(t[n],t[n],e)}function V_(t,e,n,i){for(var r=0;r<t.length;r++){var o=t[r];i&&(o=i.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(Ft(e,e,o),Ht(n,n,o))}}var B_=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}(),G_=function(){return function(t,e){this.type="polygon",this.exterior=t,this.interiors=e}}(),F_=function(){return function(t){this.type="linestring",this.points=t}}(),H_=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.type="geoJSON",r.geometries=n,r._center=i&&[i[0],i[1]],r}return n(e,t),e.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,i=0;i<e.length;i++){var r=e[i],o=r.exterior,a=o&&o.length;a>n&&(t=r,n=a)}if(t)return function(t){for(var e=0,n=0,i=0,r=t.length,o=t[r-1][0],a=t[r-1][1],s=0;s<r;s++){var l=t[s][0],u=t[s][1],h=o*u-l*a;e+=h,n+=(o+l)*h,i+=(a+u)*h,o=l,a=u}return e?[n/e/3,i/e/3,e]:[t[0][0]||0,t[0][1]||0]}(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],i=[-1/0,-1/0];return R(this.geometries,(function(e){"polygon"===e.type?V_(e.exterior,n,i,t):R(e.points,(function(e){V_(e,n,i,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),e=new Ne(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,r=n.length;i<r;i++){var o=n[i];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(N_(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(N_(s[l],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=r.width/r.height;n?i||(i=n/o):n=o*i;for(var a=new Ne(t,e,n,i),s=r.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var h=l[u];"polygon"===h.type?(z_(h.exterior,s),R(h.interiors,(function(t){z_(t,s)}))):R(h.points,(function(t){z_(t,s)}))}(r=this._rect).copy(a),this._center=[r.x+r.width/2,r.y+r.height/2]},e.prototype.cloneShallow=function(t){null==t&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(B_),W_=function(t){function e(e,n){var i=t.call(this,e)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return n(e,t),e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],i=me(E_),r=t;r&&!r.isGeoSVGGraphicRoot;)xe(i,r.getLocalTransform(),i),r=r.parent;return Se(i,i),Gt(n,n,i),n},e}(B_);function U_(t,e,n){for(var i=0;i<t.length;i++)t[i]=Y_(t[i],e[i],n)}function Y_(t,e,n){for(var i=[],r=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),r=s+=r,o=l+=o,i.push([s/n,l/n])}return i}function Z_(t,e){return N(z((t=function(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;return null==n&&(n=1024),R(e.features,(function(t){var e=t.geometry,i=e.encodeOffsets,r=e.coordinates;if(i)switch(e.type){case"LineString":e.coordinates=Y_(r,i,n);break;case"Polygon":case"MultiLineString":U_(r,i,n);break;case"MultiPolygon":R(r,(function(t,e){return U_(t,i[e],n)}))}})),e.UTF8Encoding=!1,e}(t)).features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,i=t.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new G_(o[0],o.slice(1)));break;case"MultiPolygon":R(i.coordinates,(function(t){t[0]&&r.push(new G_(t[0],t.slice(1)))}));break;case"LineString":r.push(new F_([i.coordinates]));break;case"MultiLineString":r.push(new F_(i.coordinates))}var a=new H_(n[e||"name"],r,n.cp);return a.properties=n,a}))}const X_=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:io,asc:$r,getPercentWithPrecision:function(t,e,n){return t[e]&&eo(t,n)[e]||0},getPixelPrecision:to,getPrecision:Jr,getPrecisionSafe:Qr,isNumeric:go,isRadianAroundZero:oo,linearMap:jr,nice:ho,numericToNumber:fo,parseDate:so,quantile:co,quantity:lo,quantityExponent:uo,reformIntervals:po,remRadian:ro,round:Kr},Symbol.toStringTag,{value:"Module"})),j_=Object.freeze(Object.defineProperty({__proto__:null,format:qc,parse:so},Symbol.toStringTag,{value:"Module"})),q_=Object.freeze(Object.defineProperty({__proto__:null,Arc:Qu,BezierCurve:$u,BoundingRect:Ne,Circle:_u,CompoundPath:th,Ellipse:wu,Group:zr,Image:Ps,IncrementalDisplayable:hh,Line:Xu,LinearGradient:nh,Polygon:Hu,Polyline:Uu,RadialGradient:ih,Rect:Bs,Ring:Bu,Sector:zu,Text:Hs,clipPointsByRect:Fh,clipRectByRect:Hh,createIcon:Wh,extendPath:Th,extendShape:Mh,getShapeClass:Ah,getTransform:Eh,initProps:gh,makeImage:Lh,makePath:Dh,mergePath:Ph,registerShape:Ch,resizePath:Oh,updateProps:fh},Symbol.toStringTag,{value:"Module"})),K_=Object.freeze(Object.defineProperty({__proto__:null,addCommas:dd,capitalFirst:function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},encodeHTML:ne,formatTime:_d,formatTpl:yd,getTextRect:function(t,e,n,i,r,o,a,s){return new Hs({style:{text:t,font:e,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()},getTooltipMarker:xd,normalizeCssArray:fd,toCamelCase:pd,truncateText:function(t,e,n,i,r){var o={};return ua(o,t,e,n,i,r),o.text}},Symbol.toStringTag,{value:"Module"})),$_=Object.freeze(Object.defineProperty({__proto__:null,bind:G,clone:M,curry:F,defaults:A,each:R,extend:C,filter:z,indexOf:L,inherits:k,isArray:H,isFunction:W,isObject:X,isString:U,map:N,merge:I,reduce:E},Symbol.toStringTag,{value:"Module"}));var J_=No();function Q_(t,e){var n=N(e,(function(e){return t.scale.parse(e)}));return"time"===t.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function tb(t){var e=t.getLabelModel().get("customValues");if(e){var n=__(t),i=t.scale.getExtent();return{labels:N(z(Q_(t,e),(function(t){return t>=i[0]&&t<=i[1]})),(function(e){var i={value:e};return{formattedLabel:n(i),rawLabel:t.scale.getLabel(i),tickValue:e}}))}}return"category"===t.type?function(t){var e=t.getLabelModel(),n=nb(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=__(t);return{labels:N(e,(function(e,i){return{level:e.level,formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}(t)}function eb(t,e){var n=t.getTickModel().get("customValues");if(n){var i=t.scale.getExtent();return{ticks:z(Q_(t,n),(function(t){return t>=i[0]&&t<=i[1]}))}}return"category"===t.type?function(t,e){var n,i,r=ib(t,"ticks"),o=w_(e),a=rb(r,o);if(a)return a;e.get("show")&&!t.scale.isBlank()||(n=[]);if(W(o))n=sb(t,o,!0);else if("auto"===o){var s=nb(t,t.getLabelModel());i=s.labelCategoryInterval,n=N(s.labels,(function(t){return t.tickValue}))}else n=ab(t,i=o,!0);return ob(r,o,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:N(t.scale.getTicks(),(function(t){return t.value}))}}function nb(t,e){var n,i,r=ib(t,"labels"),o=w_(e),a=rb(r,o);return a||(W(o)?n=sb(t,o):(i="auto"===o?function(t){var e=J_(t).autoInterval;return null!=e?e:J_(t).autoInterval=t.calculateCategoryInterval()}(t):o,n=ab(t,i)),ob(r,o,{labels:n,labelCategoryInterval:i}))}function ib(t,e){return J_(t)[e]||(J_(t)[e]=[])}function rb(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function ob(t,e,n){return t.push({key:e,value:n}),n}function ab(t,e,n){var i=__(t),r=t.scale,o=r.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],h=r.count();0!==u&&l>1&&h/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=S_(t),d=a.get("showMinLabel")||c,p=a.get("showMaxLabel")||c;d&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t})}return p&&f-l!==o[1]&&g(o[1]),s}function sb(t,e,n){var i=t.scale,r=__(t),o=[];return R(i.getTicks(),(function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})})),o}var lb=[0,1],ub=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]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return to(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,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&hb(n=n.slice(),i.count()),jr(t,lb,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&hb(n=n.slice(),i.count());var r=jr(t,n,lb,e);return this.scale.scale(r)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=N(eb(this,e).ticks,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this);return function(t,e,n,i){var r=e.length;if(!t.onBand||n||!r)return;var o,a,s=t.getExtent();if(1===r)e[0].coord=s[0],o=e[1]={coord:s[1],tickValue:e[0].tickValue};else{var l=e[r-1].tickValue-e[0].tickValue,u=(e[r-1].coord-e[0].coord)/l;R(e,(function(t){t.coord-=u/2}));var h=t.scale.getExtent();a=1+h[1]-e[r-1].tickValue,o={coord:e[r-1].coord+u*a,tickValue:h[1]+1},e.push(o)}var c=s[0]>s[1];d(e[0].coord,s[0])&&(i?e[0].coord=s[0]:e.shift());i&&d(s[0],e[0].coord)&&e.unshift({coord:s[0]});d(s[1],o.coord)&&(i?o.coord=s[1]:e.pop());i&&d(o.coord,s[1])&&e.push({coord:s[1]});function d(t,e){return t=Kr(t),e=Kr(e),c?t>e:t<e}}(this,n,e.get("alignWithLabel"),t.clamp),n},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");return t>0&&t<100||(t=5),N(this.scale.getMinorTicks(t),(function(t){return N(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},t.prototype.getViewLabels=function(){return tb(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 i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return function(t){var e=function(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()}}(t),n=__(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,o=r.getExtent(),a=r.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(i)),c=Math.abs(u*Math.sin(i)),d=0,p=0;l<=o[1];l+=s){var f,g,v=br(n({value:l}),e.font,"center","top");f=1.3*v.width,g=1.3*v.height,d=Math.max(d,f,7),p=Math.max(p,g,7)}var m=d/h,y=p/c;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(m,y))),_=J_(t.model),b=t.getExtent(),w=_.lastAutoInterval,S=_.lastTickCount;return null!=w&&null!=S&&Math.abs(w-x)<=1&&Math.abs(S-a)<=1&&w>x&&_.axisExtent0===b[0]&&_.axisExtent1===b[1]?x=w:(_.lastTickCount=a,_.lastAutoInterval=x,_.axisExtent0=b[0],_.axisExtent1=b[1]),x}(this)},t}();function hb(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}var cb=2*Math.PI,db=ss.CMD,pb=["top","right","bottom","left"];function fb(t,e,n,i,r){var o=n.width,a=n.height;switch(t){case"top":i.set(n.x+o/2,n.y-e),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+e),r.set(0,1);break;case"left":i.set(n.x-e,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+e,n.y+a/2),r.set(1,0)}}function gb(t,e,n,i,r,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s),h=(a/=u)*n+t,c=(s/=u)*n+e;if(Math.abs(i-r)%cb<1e-4)return l[0]=h,l[1]=c,u-n;if(o){var d=i;i=ds(r),r=ds(d)}else i=ds(i),r=ds(r);i>r&&(r+=cb);var p=Math.atan2(s,a);if(p<0&&(p+=cb),p>=i&&p<=r||p+cb>=i&&p+cb<=r)return l[0]=h,l[1]=c,u-n;var f=n*Math.cos(i)+t,g=n*Math.sin(i)+e,v=n*Math.cos(r)+t,m=n*Math.sin(r)+e,y=(f-a)*(f-a)+(g-s)*(g-s),x=(v-a)*(v-a)+(m-s)*(m-s);return y<x?(l[0]=f,l[1]=g,Math.sqrt(y)):(l[0]=v,l[1]=m,Math.sqrt(x))}function vb(t,e,n,i,r,o,a,s){var l=r-t,u=o-e,h=n-t,c=i-e,d=Math.sqrt(h*h+c*c),p=(l*(h/=d)+u*(c/=d))/d;s&&(p=Math.min(Math.max(p,0),1)),p*=d;var f=a[0]=t+p*h,g=a[1]=e+p*c;return Math.sqrt((f-r)*(f-r)+(g-o)*(g-o))}function mb(t,e,n,i,r,o,a){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i);var s=t+n,l=e+i,u=a[0]=Math.min(Math.max(r,t),s),h=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-r)*(u-r)+(h-o)*(h-o))}var yb=[];function xb(t,e,n){var i=mb(e.x,e.y,e.width,e.height,t.x,t.y,yb);return n.set(yb[0],yb[1]),i}function _b(t,e,n){for(var i,r,o=0,a=0,s=0,l=0,u=1/0,h=e.data,c=t.x,d=t.y,p=0;p<h.length;){var f=h[p++];1===p&&(s=o=h[p],l=a=h[p+1]);var g=u;switch(f){case db.M:o=s=h[p++],a=l=h[p++];break;case db.L:g=vb(o,a,h[p],h[p+1],c,d,yb,!0),o=h[p++],a=h[p++];break;case db.C:g=bn(o,a,h[p++],h[p++],h[p++],h[p++],h[p],h[p+1],c,d,yb),o=h[p++],a=h[p++];break;case db.Q:g=Cn(o,a,h[p++],h[p++],h[p],h[p+1],c,d,yb),o=h[p++],a=h[p++];break;case db.A:var v=h[p++],m=h[p++],y=h[p++],x=h[p++],_=h[p++],b=h[p++];p+=1;var w=!!(1-h[p++]);i=Math.cos(_)*y+v,r=Math.sin(_)*x+m,p<=1&&(s=i,l=r),g=gb(v,m,x,_,_+b,w,(c-v)*x/y+v,d,yb),o=Math.cos(_+b)*y+v,a=Math.sin(_+b)*x+m;break;case db.R:g=mb(s=o=h[p++],l=a=h[p++],h[p++],h[p++],c,d,yb);break;case db.Z:g=vb(o,a,s,l,c,d,yb,!0),o=s,a=l}g<u&&(u=g,n.set(yb[0],yb[1]))}return u}var bb=new Te,wb=new Te,Sb=new Te,Mb=new Te,Ib=new Te;function Tb(t,e){if(t){var n=t.getTextGuideLine(),i=t.getTextContent();if(i&&n){var r=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||pb,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=r.anchor,h=t.getComputedTransform(),c=h&&Se([],h),d=e.get("length2")||0;u&&Sb.copy(u);for(var p=0;p<a.length;p++){fb(a[p],0,s,bb,Mb),Te.scaleAndAdd(wb,bb,Mb,d),wb.transform(c);var f=t.getBoundingRect(),g=u?u.distance(wb):t instanceof Cs?_b(wb,t.path,Sb):xb(wb,f,Sb);g<l&&(l=g,wb.transform(h),Sb.transform(h),Sb.toArray(o[0]),wb.toArray(o[1]),bb.toArray(o[2]))}Db(o,e.get("minTurnAngle")),n.setShape({points:o})}}}var Cb=[],Ab=new Te;function Db(t,e){if(e<=180&&e>0){e=e/180*Math.PI,bb.fromArray(t[0]),wb.fromArray(t[1]),Sb.fromArray(t[2]),Te.sub(Mb,bb,wb),Te.sub(Ib,Sb,wb);var n=Mb.len(),i=Ib.len();if(!(n<.001||i<.001)){Mb.scale(1/n),Ib.scale(1/i);var r=Mb.dot(Ib);if(Math.cos(e)<r){var o=vb(wb.x,wb.y,Sb.x,Sb.y,bb.x,bb.y,Cb,!1);Ab.fromArray(Cb),Ab.scaleAndAdd(Ib,o/Math.tan(Math.PI-e));var a=Sb.x!==wb.x?(Ab.x-wb.x)/(Sb.x-wb.x):(Ab.y-wb.y)/(Sb.y-wb.y);if(isNaN(a))return;a<0?Te.copy(Ab,wb):a>1&&Te.copy(Ab,Sb),Ab.toArray(t[1])}}}}function Lb(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,bb.fromArray(t[0]),wb.fromArray(t[1]),Sb.fromArray(t[2]),Te.sub(Mb,wb,bb),Te.sub(Ib,Sb,wb);var i=Mb.len(),r=Ib.len();if(!(i<.001||r<.001))if(Mb.scale(1/i),Ib.scale(1/r),Mb.dot(e)<Math.cos(n)){var o=vb(wb.x,wb.y,Sb.x,Sb.y,bb.x,bb.y,Cb,!1);Ab.fromArray(Cb);var a=Math.PI/2,s=a+Math.acos(Ib.dot(e))-n;if(s>=a)Te.copy(Ab,Sb);else{Ab.scaleAndAdd(Ib,o/Math.tan(Math.PI/2-s));var l=Sb.x!==wb.x?(Ab.x-wb.x)/(Sb.x-wb.x):(Ab.y-wb.y)/(Sb.y-wb.y);if(isNaN(l))return;l<0?Te.copy(Ab,wb):l>1&&Te.copy(Ab,Sb)}Ab.toArray(t[1])}}}function kb(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function Pb(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=Et(i[0],i[1]),o=Et(i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=Bt([],i[1],i[0],a/r),l=Bt([],i[1],i[2],a/o),u=Bt([],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],i[2][0],i[2][1])}else for(var h=1;h<i.length;h++)t.lineTo(i[h][0],i[h][1])}function Ob(t,e,n){var i=t.getTextGuideLine(),r=t.getTextContent();if(r){for(var o=e.normal,a=o.get("show"),s=r.ignore,l=0;l<ll.length;l++){var u=ll[l],h=e[u],c="normal"===u;if(h){var d=h.get("show");if((c?s:nt(r.states[u]&&r.states[u].ignore,s))||!nt(d,a)){var p=c?i:i&&i.states[u];p&&(p.ignore=!0),i&&kb(i,!0,u,h);continue}i||(i=new Uu,t.setTextGuideLine(i),c||!s&&a||kb(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),kb(i,!1,u,h)}}if(i){A(i.style,n),i.style.fill=null;var f=o.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=f||!1,i.buildPath=Pb}}else i&&t.removeTextGuideLine()}function Rb(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},i=0;i<sl.length;i++){var r=sl[i];n[r]=t.getModel([r,e])}return n}function Nb(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];if(!i.defaultAttr.ignore){var r=i.label,o=r.getComputedTransform(),a=r.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=r.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 lh(a,o):null;e.push({label:r,labelLine:i.labelLine,rect:u,localRect:a,obb:h,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:o})}}return e}function Eb(t,e,n,i,r,o){var a=t.length;if(!(a<2)){t.sort((function(t,n){return t.rect[e]-n.rect[e]}));for(var s,l=0,u=!1,h=0,c=0;c<a;c++){var d=t[c],p=d.rect;(s=p[e]-l)<0&&(p[e]-=s,d.label[e]-=s,u=!0),h+=Math.max(-s,0),l=p[e]+p[n]}h>0&&o&&_(-h/a,0,a);var f,g,v=t[0],m=t[a-1];return y(),f<0&&b(-f,.8),g<0&&b(g,.8),y(),x(f,g,1),x(g,f,-1),y(),f<0&&w(-f),g<0&&w(g),u}function y(){f=v.rect[e]-i,g=r-m.rect[e]-m.rect[n]}function x(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){_(i*n,0,a);var r=i+t;r<0&&b(-r*n,1)}else b(-t*n,1)}}function _(n,i,r){0!==n&&(u=!0);for(var o=i;o<r;o++){var a=t[o];a.rect[e]+=n,a.label[e]+=n}}function b(i,r){for(var o=[],s=0,l=1;l<a;l++){var u=t[l-1].rect,h=Math.max(t[l].rect[e]-u[e]-u[n],0);o.push(h),s+=h}if(s){var c=Math.min(Math.abs(i)/s,r);if(i>0)for(l=0;l<a-1;l++){_(o[l]*c,0,l+1)}else for(l=a-1;l>0;l--){_(-(o[l-1]*c),l,a)}}}function w(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),i=0;i<a-1;i++)if(e>0?_(n,0,i+1):_(-n,a-i-1,a),(t-=n)<=0)return}}function zb(t,e,n,i){return Eb(t,"y","height",e,n,i)}function Vb(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new Ne(0,0,0,0);function i(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var r=0;r<t.length;r++){var o=t[r],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,h=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var c=o.obb,d=!1,p=0;p<e.length;p++){var f=e[p];if(n.intersect(f.rect)){if(a&&f.axisAligned){d=!0;break}if(f.obb||(f.obb=new lh(f.localRect,f.transform)),c||(c=new lh(s,l)),c.intersect(f.obb)){d=!0;break}}}d?(i(u),h&&i(h)):(u.attr("ignore",o.defaultAttr.ignore),h&&h.attr("ignore",o.defaultAttr.labelGuideIgnore),e.push(o))}}function Bb(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function Gb(t,e){var n=t.label,i=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:Bb(i&&i.shape.points)}}var Fb=["align","verticalAlign","width","height","fontSize"],Hb=new gr,Wb=No(),Ub=No();function Yb(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null!=e[r]&&(t[r]=e[r])}}var Zb=["x","y","rotation"],Xb=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,i,r){var o=i.style,a=i.__hostTarget.textConfig||{},s=i.getComputedTransform(),l=i.getBoundingRect().plain();Ne.applyTransform(l,l,s),s?Hb.setLocalTransform(s):(Hb.x=Hb.y=Hb.rotation=Hb.originX=Hb.originY=0,Hb.scaleX=Hb.scaleY=1),Hb.rotation=ds(Hb.rotation);var u,h=i.__hostTarget;if(h){u=h.getBoundingRect().plain();var c=h.getComputedTransform();Ne.applyTransform(u,u,c)}var d=u&&h.getTextGuideLine();this._labelList.push({label:i,labelLine:d,seriesModel:n,dataIndex:t,dataType:e,layoutOption:r,computedLayoutOption:null,rect:l,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:d&&d.ignore,x:Hb.x,y:Hb.y,scaleX:Hb.scaleX,scaleY:Hb.scaleY,rotation:Hb.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:a.position,attachedRot:a.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");(W(i)||B(i).length)&&t.group.traverse((function(t){if(t.ignore)return!0;var r=t.getTextContent(),o=el(t);r&&!r.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,n,r,i)}))},t.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function i(t,e){return function(){Tb(t,e)}}for(var r=0;r<this._labelList.length;r++){var o=this._labelList[r],a=o.label,s=a.__hostTarget,l=o.defaultAttr,u=void 0;u=(u=W(o.layoutOption)?o.layoutOption(Gb(o,s)):o.layoutOption)||{},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=qr(u.x,e),a.setStyle("x",0),c=!0):(a.x=l.x,a.setStyle("x",l.style.x)),null!=u.y?(a.y=qr(u.y,n),a.setStyle("y",0),c=!0):(a.y=l.y,a.setStyle("y",l.style.y)),u.labelLinePoints){var d=s.getTextGuideLine();d&&(d.setShape({points:u.labelLinePoints}),c=!1)}Wb(a).needsUpdateLabelLine=c,a.rotation=null!=u.rotate?u.rotate*h:l.rotation,a.scaleX=l.scaleX,a.scaleY=l.scaleY;for(var p=0;p<Fb.length;p++){var f=Fb[p];a.setStyle(f,null!=u[f]?u[f]:l.style[f])}if(u.draggable){if(a.draggable=!0,a.cursor="move",s){var g=o.seriesModel;if(null!=o.dataIndex)g=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex);a.on("drag",i(s,g.getModel("labelLine")))}}else a.off("drag"),a.cursor=l.cursor}},t.prototype.layout=function(t){var e,n=t.getWidth(),i=t.getHeight(),r=Nb(this._labelList),o=z(r,(function(t){return"shiftX"===t.layoutOption.moveOverlap})),a=z(r,(function(t){return"shiftY"===t.layoutOption.moveOverlap}));Eb(o,"x","width",0,n,e),zb(a,0,i),Vb(z(r,(function(t){return t.layoutOption.hideOverlap})))},t.prototype.processLabelsOverall=function(){var t=this;R(this._chartViewList,(function(e){var n=e.__model,i=e.ignoreLabelLineUpdate,r=n.isAnimationEnabled();e.group.traverse((function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var o=!i,a=e.getTextContent();!o&&a&&(o=Wb(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,n),r&&t._animateLabels(e,n)}))}))},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=el(t),r=i.dataIndex;if(n&&null!=r){var o=e.getData(i.dataType),a=o.getItemModel(r),s={},l=o.getItemVisual(r,"style");if(l){var u=o.getVisual("drawType");s.stroke=l[u]}var h=a.getModel("labelLine");Ob(t,Rb(a),s),Tb(t,h)}},t.prototype._animateLabels=function(t,e){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!vh(t))){var r=(p=Wb(n)).oldLayout,o=el(t),a=o.dataIndex,s={x:n.x,y:n.y,rotation:n.rotation},l=e.getData(o.dataType);if(r){n.attr(r);var u=t.prevStates;u&&(L(u,"select")>=0&&n.attr(p.oldLayoutSelect),L(u,"emphasis")>=0&&n.attr(p.oldLayoutEmphasis)),fh(n,s,e,a)}else if(n.attr(s),!uc(n).valueAnimation){var h=nt(n.style.opacity,1);n.style.opacity=0,gh(n,{style:{opacity:h}},e,a)}if(p.oldLayout=s,n.states.select){var c=p.oldLayoutSelect={};Yb(c,s,Zb),Yb(c,n.states.select,Zb)}if(n.states.emphasis){var d=p.oldLayoutEmphasis={};Yb(d,s,Zb),Yb(d,n.states.emphasis,Zb)}cc(n,a,l,e,e)}if(i&&!i.ignore&&!i.invisible){r=(p=Ub(i)).oldLayout;var p,f={points:i.shape.points};r?(i.attr({shape:r}),fh(i,{shape:f},e)):(i.setShape(f),i.style.strokePercent=0,gh(i,{style:{strokePercent:1}},e)),p.oldLayout=f}},t}(),jb=No();function qb(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var i=jb(e).labelManager;i||(i=jb(e).labelManager=new Xb),i.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var i=jb(e).labelManager;n.updatedSeries.forEach((function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()}))}function Kb(t,e,n){var i=l.createCanvas(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}var $b=function(t){function e(e,n,i){var r,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||or,"string"==typeof e?r=Kb(e,n,i):X(e)&&(e=(r=e).id),o.id=e,o.dom=r;var a=r.style;return a&&(mt(r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=i,o}return n(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Kb("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new Ne(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length){(e=new Ne(0,0,0,0)).copy(t),o.push(e)}else{for(var e,n=!1,i=1/0,r=0,u=0;u<o.length;++u){var h=o[u];if(h.intersect(t)){var c=new Ne(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 d=t.width*t.height,p=h.width*h.height,f=l.width*l.height-d-p;f<i&&(i=f,r=u)}}if(s&&(o[r].union(t),n=!0),!n)(e=new Ne(0,0,0,0)).copy(t),o.push(e);s||(s=o.length>=a)}}for(var h=this.__startIndex;h<this.__endIndex;++h){if(p=t[h]){var c=p.shouldBePainted(n,i,!0,!0);(f=p.__isRendered&&(1&p.__dirty||!c)?p.getPrevPaintRect():null)&&u(f);var d=c&&(1&p.__dirty||!p.__isRendered)?p.getPaintRect():null;d&&u(d)}}for(h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var p,f;c=(p=e[h])&&p.shouldBePainted(n,i,!0,!0);if(p&&(!c||!p.__zr)&&p.__isRendered)(f=p.getPrevPaintRect())&&u(f)}do{r=!1;for(h=0;h<o.length;)if(o[h].isZero())o.splice(h,1);else{for(var g=h+1;g<o.length;)o[h].intersect(o[g])?(r=!0,o[h].union(o[g]),o.splice(g,1)):g++;h++}}while(r);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var i=this.dom,r=this.ctx,o=i.width,a=i.height;e=e||this.clearColor;var s=this.motionBlur&&!t,l=this.lastFrameAlpha,u=this.dpr,h=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,o/u,a/u));var c=this.domBack;function d(t,n,i,o){if(r.clearRect(t,n,i,o),e&&"transparent"!==e){var a=void 0;if($(e))a=(e.global||e.__width===i&&e.__height===o)&&e.__canvasGradient||Xv(r,e,{x:0,y:0,width:i,height:o}),e.__canvasGradient=a,e.__width=i,e.__height=o;else J(e)&&(e.scaleX=e.scaleX||u,e.scaleY=e.scaleY||u,a=im(r,e,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));r.save(),r.fillStyle=a||e,r.fillRect(t,n,i,o),r.restore()}s&&(r.save(),r.globalAlpha=l,r.drawImage(c,t,n,i,o),r.restore())}!n||s?d(0,0,o,a):n.length&&R(n,(function(t){d(t.x*u,t.y*u,t.width*u,t.height*u)}))},e}(Zt),Jb=1e5,Qb=314159,tw=.01;var ew=function(){function t(t,e,n,i){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=C({},n||{}),this.dpr=n.devicePixelRatio||or,this._singleCanvas=r,this.root=t,t.style&&(mt(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 h=new $b(s,this,this.dpr);h.__builtin__=!0,h.initContext(),a[314159]=h,h.zlevel=Qb,o.push(Qb),this._domRoot=t}else{this._width=qv(t,0,n),this._height=qv(t,1,n);var c=this._domRoot=function(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}(this._width,this._height);t.appendChild(c)}}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();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var r=0;r<i.length;r++){var o=i[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?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 i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(Jb)),i||(i=n.ctx).save(),dm(i,a,r,o===e-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(Jb)},t.prototype.paintOne=function(t,e){cm(t,e)},t.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,n),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer((function(t){t.afterBrush&&t.afterBrush()}));else{var s=this;en((function(){s._paintList(t,e,n,i)}))}}},t.prototype._compositeManually=function(){var t=this.getLayer(Qb).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer((function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)}))},t.prototype._doPaintList=function(t,e,n){for(var i=this,o=[],a=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&o.push(u)}for(var h=!0,c=!1,d=function(r){var s,l=o[r],u=l.ctx,d=a&&l.createRepaintRects(t,e,p._width,p._height),f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,v=g&&Date.now(),m=l.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,m,d);else if(f===l.__startIndex){var y=t[f];y.incremental&&y.notClear&&!n||l.clear(!1,m,d)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var x=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(s=f;s<l.__endIndex;s++){var r=t[s];if(r.__inHover&&(c=!0),i._doPaintEl(r,l,a,e,n,s===l.__endIndex-1),g)if(Date.now()-v>15)break}n.prevElClipPaths&&u.restore()};if(d)if(0===d.length)s=l.__endIndex;else for(var _=p.dpr,b=0;b<d.length;++b){var w=d[b];u.save(),u.beginPath(),u.rect(w.x*_,w.y*_,w.width*_,w.height*_),u.clip(),x(w),u.restore()}else u.save(),x(),u.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(h=!1)},p=this,f=0;f<o.length;f++)d(f);return r.wxa&&R(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:h,needsRefreshHover:c}},t.prototype._doPaintEl=function(t,e,n,i,r,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!i||s&&s.intersect(i))&&(dm(a,t,r,o),t.setPrevPaintRect(s))}else dm(a,t,r,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Qb);var n=this._layers[t];return n||((n=new $b("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?I(n,this._layerConfig[t],!0):this._layerConfig[t-tw]&&I(n,this._layerConfig[t-tw],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,r=i.length,o=this._domRoot,a=null,s=-1;if(!n[t]&&function(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}(e)){if(r>0&&t>i[0]){for(s=0;s<r-1&&!(i[s]<t&&i[s+1]>t);s++);a=n[i[s]]}if(i.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||(e.painter=this)}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];t.call(e,this._layers[r],r)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){o&&(o.__endIndex!==t&&(o.__dirty=!0),o.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var n=1;n<t.length;n++){if((s=t[n]).zlevel!==t[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}}var i,r,o=null,a=0;for(r=0;r<t.length;r++){var s,l=(s=t[r]).zlevel,u=void 0;i!==l&&(i=l,a=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,a=1):u=this.getLayer(l+(a>0?tw:0),this._needsManuallyCompositing),u.__builtin__||S("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==r&&(u.__dirty=!0),u.__startIndex=r,u.incremental?u.__drawIndex=-1:u.__drawIndex=r,e(r),o=u),1&s.__dirty&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=r))}e(r),this.eachBuiltinLayer((function(t,e){!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,R(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?I(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];if(r===t||r===t+tw)I(this._layers[r],n[t],!0)}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(L(n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,r=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=qv(r,0,i),e=qv(r,1,i),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",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(Qb).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[314159].dom;var e=new $b("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 i=e.dom.width,r=e.dom.height;this.eachLayer((function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,r):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;s<l;s++){var u=a[s];dm(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();function nw(t){t.registerPainter("canvas",ew)}var iw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return n(e,t),e.prototype.init=function(e,n,i){t.prototype.init.call(this,e,n,i),this._sourceManager=new qf(this),Kf(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),Kf(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Zd},e}(Nd),rw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return n(e,t),e.type="dataset",e}(Cg);function ow(t){t.registerComponentModel(iw),t.registerComponentView(rw)}O_([nw,ow]),O_(qb);var aw=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return N(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),z(this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),sw={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function lw(t,e){if("china"===t){var n=sw[e.name];if(n){var i=e.getCenter();i[0]+=n[0]/10.5,i[1]+=-n[1]/14,e.setCenter(i)}}}var uw={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function hw(t,e){if("world"===t){var n=uw[e.name];if(n){var i=[n[0],n[1]];e.setCenter(i)}}}function cw(t){return"_EC_"+t}var dw=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[cw(t)]){var i=new pw(t,e);return i.hostGraph=this,this.nodes.push(i),n[cw(t)]=i,i}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[cw(t)]},t.prototype.addEdge=function(t,e,n){var i=this._nodesMap,r=this._edgesMap;if(Z(t)&&(t=this.nodes[t]),Z(e)&&(e=this.nodes[e]),t instanceof pw||(t=i[cw(t)]),e instanceof pw||(e=i[cw(e)]),t&&e){var o=t.id+"-"+e.id,a=new fw(t,e,n);return a.hostGraph=this,this._directed&&(t.outEdges.push(a),e.inEdges.push(a)),t.edges.push(a),t!==e&&e.edges.push(a),this.edges.push(a),r[o]=a,a}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof pw&&(t=t.id),e instanceof pw&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&t.call(e,n[r],r)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},t.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof pw||(e=this._nodesMap[cw(e)]),e){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(i,e,null))for(var a=[e];a.length;){var s=a.shift(),l=s[r];for(o=0;o<l.length;o++){var u=l[o],h=u.node1===s?u.node2:u.node1;if(!h.__visited){if(t.call(i,h,s))return;a.push(h),h.__visited=!0}}}}},t.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,i=this.edges,r=0,o=n.length;r<o;r++)n[r].dataIndex=-1;for(r=0,o=t.count();r<o;r++)n[t.getRawIndex(r)].dataIndex=r;e.filterSelf((function(t){var n=i[e.getRawIndex(t)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(r=0,o=i.length;r<o;r++)i[r].dataIndex=-1;for(r=0,o=e.count();r<o;r++)i[e.getRawIndex(r)].dataIndex=r},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,i=this.edges,r=0;r<n.length;r++)e.addNode(n[r].id,n[r].dataIndex);for(r=0;r<i.length;r++){var o=i[r];e.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return e},t}(),pw=function(){function t(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},t.prototype.getTrajectoryDataIndices=function(){for(var t=ft(),e=ft(),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);for(var r=[i.node1],o=[i.node2],a=0;a<r.length;){var s=r[a];a++,e.set(s.dataIndex,!0);for(var l=0;l<s.inEdges.length;l++)t.set(s.inEdges[l].dataIndex,!0),r.push(s.inEdges[l].node1)}for(a=0;a<o.length;){var u=o[a];a++,e.set(u.dataIndex,!0);for(l=0;l<u.outEdges.length;l++)t.set(u.outEdges[l].dataIndex,!0),o.push(u.outEdges[l].node2)}}}return{edge:t.keys(),node:e.keys()}},t}(),fw=function(){function t(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}return t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t.prototype.getTrajectoryDataIndices=function(){var t=ft(),e=ft();t.set(this.dataIndex,!0);for(var n=[this.node1],i=[this.node2],r=0;r<n.length;){var o=n[r];r++,e.set(o.dataIndex,!0);for(var a=0;a<o.inEdges.length;a++)t.set(o.inEdges[a].dataIndex,!0),n.push(o.inEdges[a].node1)}for(r=0;r<i.length;){var s=i[r];r++,e.set(s.dataIndex,!0);for(a=0;a<s.outEdges.length;a++)t.set(s.outEdges[a].dataIndex,!0),i.push(s.outEdges[a].node2)}return{edge:t.keys(),node:e.keys()}},t}();function gw(t,e){return{getValue:function(n){var i=this[t][e];return i.getStore().get(i.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}P(pw,gw("hostGraph","data")),P(fw,gw("hostGraph","edgeData"));var vw=No();function mw(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,Sw(e,n,t),R(n,(function(n){R(e.TRANSFERABLE_METHODS,(function(e){n.wrapMethod(e,F(yw,t))}))})),e.wrapMethod("cloneShallow",F(_w,t)),R(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,F(xw,t))})),at(n[e.dataType]===e)}function yw(t,e){if(vw(i=this).mainData===i){var n=C({},vw(this).datas);n[this.dataType]=e,Sw(e,n,t)}else Mw(e,this.dataType,vw(this).mainData,t);var i;return e}function xw(t,e){return t.struct&&t.struct.update(),e}function _w(t,e){return R(vw(e).datas,(function(n,i){n!==e&&Mw(n.cloneShallow(),i,e,t)})),e}function bw(t){var e=vw(this).mainData;return null==t||null==e?e:vw(e).datas[t]}function ww(){var t=vw(this).mainData;return null==t?[{data:t}]:N(B(vw(t).datas),(function(e){return{type:e,data:vw(t).datas[e]}}))}function Sw(t,e,n){vw(t).datas={},R(e,(function(e,i){Mw(e,i,t,n)}))}function Mw(t,e,n,i){vw(n).datas[e]=t,vw(t).mainData=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=bw,t.getLinkedDataAll=ww}const Iw=Object.freeze(Object.defineProperty({__proto__:null,Axis:ub,ChartView:kg,ComponentModel:Nd,ComponentView:Cg,List:lx,Model:Mc,PRIORITY:Im,SeriesModel:xg,color:ai,connect:function(t){if(H(t)){var e=t;t=null,R(e,(function(e){null!=e.group&&(t=e.group)})),t=t||"g_"+py++,R(e,(function(e){e.group=t}))}return cy[t]=!0,t},dataTool:{},dependencies:{zrender:"5.6.1"},disConnect:my,disconnect:vy,dispose:function(t){U(t)?t=hy[t]:t instanceof ty||(t=yy(t)),t instanceof ty&&!t.isDisposed()&&t.dispose()},env:r,extendChartView:function(t){var e=kg.extend(t);return kg.registerClass(e),e},extendComponentModel:function(t){var e=Nd.extend(t);return Nd.registerClass(e),e},extendComponentView:function(t){var e=Cg.extend(t);return Cg.registerClass(e),e},extendSeriesModel:function(t){var e=xg.extend(t);return xg.registerClass(e),e},format:K_,getCoordinateSystemDimensions:Cy,getInstanceByDom:yy,getInstanceById:function(t){return hy[t]},getMap:Ry,graphic:q_,helper:L_,init:gy,innerDrawElementOnCanvas:cm,matrix:Ie,number:X_,parseGeoJSON:Z_,parseGeoJson:Z_,registerAction:Iy,registerCoordinateSystem:Ty,registerLayout:Ay,registerLoading:Py,registerLocale:Rc,registerMap:Oy,registerPostInit:wy,registerPostUpdate:Sy,registerPreprocessor:_y,registerProcessor:by,registerTheme:xy,registerTransform:Ny,registerUpdateLifecycle:My,registerVisual:Dy,setCanvasCreator:function(t){u({createCanvas:t})},setPlatformAPI:u,throttle:Gg,time:j_,use:O_,util:$_,vector:Wt,version:"5.6.0",zrUtil:bt,zrender:Zr},Symbol.toStringTag,{value:"Module"}));var Tw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return n(e,t),e.prototype.getInitialData=function(t){return yx(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new zr,n=Wv("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,a=.8*t.itemHeight,s=Wv(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?r:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(xg);function Cw(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=vf(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push(vf(t,e,n[a]));return o.join(" ")}}function Aw(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!H(e))return e+"";for(var i=[],r=0;r<n.length;r++){var o=t.getDimensionIndex(n[r]);o>=0&&i.push(e[o])}return i.join(" ")}var Dw=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return n(e,t),e.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var o=Wv(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=Lw,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Ll(this.childAt(0))},e.prototype.downplay=function(){kl(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,i,r){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var h=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,h)}else{(d=this.childAt(0)).silent=!1;var c={scaleX:s[0]/2,scaleY:s[1]/2};u?d.attr(c):fh(d,c,a,n),_h(d)}if(this._updateCommon(t,n,s,i,r),l){var d=this.childAt(0);if(!u){c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,gh(d,c,a,n)}}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,l,u,h,c,d,p,f=this.childAt(0),g=t.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,c=i.labelStatesModels,d=i.hoverScale,p=i.cursorStyle,h=i.emphasisDisabled),!i||t.hasItemOption){var v=i&&i.itemModel?i.itemModel:t.getItemModel(e),m=v.getModel("emphasis");o=m.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=m.get("focus"),u=m.get("blurScope"),h=m.get("disabled"),c=ec(v),d=m.getShallow("scale"),p=v.getShallow("cursor")}var y=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(y||0)*Math.PI/180||0);var x=Yv(t.getItemVisual(e,"symbolOffset"),n);x&&(f.x=x[0],f.y=x[1]),p&&f.attr("cursor",p);var _=t.getItemVisual(e,"style"),b=_.fill;if(f instanceof Ps){var w=f.style;f.useStyle(C({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},_))}else f.__isEmptyBrush?f.useStyle(C({},_)):f.useStyle(_),f.style.decal=null,f.setColor(b,r&&r.symbolInnerColor),f.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),M=this._z2;null!=S?null==M&&(this._z2=f.z2,f.z2+=S):null!=M&&(f.z2=M,this._z2=null);var I=r&&r.useNameLabel;tc(f,c,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return I?t.getName(e):Cw(t,e)},inheritColor:b,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var T=f.ensureState("emphasis");T.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a;var A=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;T.scaleX=this._sizeX*A,T.scaleY=this._sizeY*A,this.setSymbolScale(1),Ul(this,l,u,h)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=el(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&mh(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();mh(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return Uv(t.getItemVisual(e,"symbolSize"))},e}(zr);function Lw(t,e){this.parent.drift(t,e)}function kw(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function Pw(t){return null==t||X(t)||(t={isIgnore:t}),t||{}}function Ow(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:ec(e),cursorStyle:e.get("cursor")}}var Rw=function(){function t(t){this.group=new zr,this._SymbolCtor=t||Dw}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=Pw(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=Ow(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add((function(i){var r=u(i);if(kw(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}})).update((function(h,c){var d=r.getItemGraphicEl(c),p=u(h);if(kw(t,p,h,e)){var f=t.getItemVisual(h,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==f)n.remove(d),(d=new o(t,h,s,l)).setPosition(p);else{d.updateData(t,h,s,l);var v={x:p[0],y:p[1]};a?d.attr(v):fh(d,v,i)}n.add(d),t.setItemGraphicEl(h,d)}else n.remove(d)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),i)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Ow(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=Pw(n);for(var r=t.start;r<t.end;r++){var o=e.getItemLayout(r);if(kw(e,o,r,n)){var a=new this._SymbolCtor(e,r,this._seriesScope);a.traverse(i),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(r,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){qh(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}),n.hostModel)})):e.removeAll()},t}();function Nw(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),o=function(t,e){var n=0,i=t.scale.getExtent();"start"===e?n=i[0]:"end"===e?n=i[1]:Z(e)&&!isNaN(e)?n=e:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]);return n}(r,n),a=i.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),h="x"===s||"radius"===s?1:0,c=N(t.dimensions,(function(t){return e.mapDimension(t)})),d=!1,p=e.getCalculationInfo("stackResultDimension");return vx(e,c[0])&&(d=!0,c[0]=p),vx(e,c[1])&&(d=!0,c[1]=p),{dataDimsForPoint:c,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:h,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Ew(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var zw=Math.min,Vw=Math.max;function Bw(t,e){return isNaN(t)||isNaN(e)}function Gw(t,e,n,i,r,o,a,s,l){for(var u,h,c,d,p,f,g=n,v=0;v<i;v++){var m=e[2*g],y=e[2*g+1];if(g>=r||g<0)break;if(Bw(m,y)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](m,y),c=m,d=y;else{var x=m-u,_=y-h;if(x*x+_*_<.5){g+=o;continue}if(a>0){for(var b=g+o,w=e[2*b],S=e[2*b+1];w===m&&S===y&&v<i;)v++,g+=o,w=e[2*(b+=o)],S=e[2*b+1],x=(m=e[2*g])-u,_=(y=e[2*g+1])-h;var M=v+1;if(l)for(;Bw(w,S)&&M<i;)M++,w=e[2*(b+=o)],S=e[2*b+1];var I=.5,T=0,C=0,A=void 0,D=void 0;if(M>=i||Bw(w,S))p=m,f=y;else{T=w-u,C=S-h;var L=m-u,k=w-m,P=y-h,O=S-y,R=void 0,N=void 0;if("x"===s){var E=T>0?1:-1;p=m-E*(R=Math.abs(L))*a,f=y,A=m+E*(N=Math.abs(k))*a,D=y}else if("y"===s){var z=C>0?1:-1;p=m,f=y-z*(R=Math.abs(P))*a,A=m,D=y+z*(N=Math.abs(O))*a}else R=Math.sqrt(L*L+P*P),p=m-T*a*(1-(I=(N=Math.sqrt(k*k+O*O))/(N+R))),f=y-C*a*(1-I),D=y+C*a*I,A=zw(A=m+T*a*I,Vw(w,m)),D=zw(D,Vw(S,y)),A=Vw(A,zw(w,m)),f=y-(C=(D=Vw(D,zw(S,y)))-y)*R/N,p=zw(p=m-(T=A-m)*R/N,Vw(u,m)),f=zw(f,Vw(h,y)),A=m+(T=m-(p=Vw(p,zw(u,m))))*N/R,D=y+(C=y-(f=Vw(f,zw(h,y))))*N/R}t.bezierCurveTo(c,d,p,f,m,y),c=A,d=D}else t.lineTo(m,y)}u=m,h=y,g+=o}return v}var Fw=function(){return function(){this.smooth=0,this.smoothConstraint=!0}}(),Hw=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return n(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Fw},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&Bw(n[2*r-2],n[2*r-1]);r--);for(;i<r&&Bw(n[2*i],n[2*i+1]);i++);}for(;i<r;)i+=Gw(t,n,i,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path.data,o=ss.CMD,a="x"===e,s=[],l=0;l<r.length;){var u=void 0,h=void 0,c=void 0,d=void 0,p=void 0,f=void 0,g=void 0;switch(r[l++]){case o.M:n=r[l++],i=r[l++];break;case o.L:if(u=r[l++],h=r[l++],(g=a?(t-n)/(u-n):(t-i)/(h-i))<=1&&g>=0){var v=a?(h-i)*g+i:(u-n)*g+n;return a?[t,v]:[v,t]}n=u,i=h;break;case o.C:u=r[l++],h=r[l++],c=r[l++],d=r[l++],p=r[l++],f=r[l++];var m=a?yn(n,u,c,p,t,s):yn(i,h,d,f,t,s);if(m>0)for(var y=0;y<m;y++){var x=s[y];if(x<=1&&x>=0){v=a?vn(i,h,d,f,x):vn(n,u,c,p,x);return a?[t,v]:[v,t]}}n=p,i=f}}},e}(Cs),Ww=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(Fw),Uw=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return n(e,t),e.prototype.getDefaultShape=function(){return new Ww},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&Bw(n[2*o-2],n[2*o-1]);o--);for(;r<o&&Bw(n[2*r],n[2*r+1]);r++);}for(;r<o;){var s=Gw(t,n,r,o,o,1,e.smooth,a,e.connectNulls);Gw(t,i,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},e}(Cs);function Yw(t,e,n,i,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,h=n.get(["lineStyle","width"])||0;a-=h/2,s-=h/2,l+=h,u+=h,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var c=new Bs({shape:{x:a,y:s,width:l,height:u}});if(e){var d=t.getBaseAxis(),p=d.isHorizontal(),f=d.inverse;p?(f&&(c.shape.x+=l),c.shape.width=0):(f||(c.shape.y+=u),c.shape.height=0);var g=W(r)?function(t){r(t,c)}:null;gh(c,{shape:{width:l,height:u,x:a,y:s}},n,null,i,g)}return c}function Zw(t,e,n){var i=t.getArea(),r=Kr(i.r0,1),o=Kr(i.r,1),a=new zu({shape:{cx:Kr(t.cx,1),cy:Kr(t.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=i.startAngle:a.shape.r=r,gh(a,{shape:{endAngle:i.endAngle,r:o}},n));return a}function Xw(t,e,n,i,r){return t?"polar"===t.type?Zw(t,e,n):"cartesian2d"===t.type?Yw(t,e,n,i,r):null:null}function jw(t,e){return t.type===e}function qw(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function Kw(t){for(var e=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[e,n],[i,r]]}function $w(t,e){var n=Kw(t),i=n[0],r=n[1],o=Kw(e),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function Jw(t){return Z(t)?t:t?.5:0}function Qw(t,e,n,i,r){var o=n.getBaseAxis(),a="x"===o.dim||"radius"===o.dim?0:1,s=[],l=0,u=[],h=[],c=[],d=[];if(r){for(l=0;l<t.length;l+=2){var p=e||t;isNaN(p[l])||isNaN(p[l+1])||d.push(t[l],t[l+1])}t=d}for(l=0;l<t.length-2;l+=2)switch(c[0]=t[l+2],c[1]=t[l+3],h[0]=t[l],h[1]=t[l+1],s.push(h[0],h[1]),i){case"end":u[a]=c[a],u[1-a]=h[1-a],s.push(u[0],u[1]);break;case"middle":var f=(h[a]+c[a])/2,g=[];u[a]=g[a]=f,u[1-a]=h[1-a],g[1-a]=c[1-a],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[a]=h[a],u[1-a]=c[1-a],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function tS(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var r,o,a=i.length-1;a>=0;a--){var s=t.getDimensionInfo(i[a].dimension);if("x"===(r=s&&s.coordDim)||"y"===r){o=i[a];break}}if(o){var l=e.getAxis(r),u=N(o.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),h=u.length,c=o.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),c.reverse());var d=function(t,e){var n,i,r=[],o=t.length;function a(t,e,n){var i=t.coord;return{coord:n,color:Jn((n-i)/(e.coord-i),[t.color,e.color])}}for(var s=0;s<o;s++){var l=t[s],u=l.coord;if(u<0)n=l;else{if(u>e){i?r.push(a(i,l,e)):n&&r.push(a(n,l,0),a(n,l,e));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}(u,"x"===r?n.getWidth():n.getHeight()),p=d.length;if(!p&&h)return u[0].coord<0?c[1]?c[1]:u[h-1].color:c[0]?c[0]:u[0].color;var f=d[0].coord-10,g=d[p-1].coord+10,v=g-f;if(v<.001)return"transparent";R(d,(function(t){t.offset=(t.coord-f)/v})),d.push({offset:p?d[p-1].offset:.5,color:c[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:c[0]||"transparent"});var m=new nh(0,0,0,0,d,!0);return m[r]=f,m[r+"2"]=g,m}}}function eS(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!function(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*Dw.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return R(o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function nS(t,e){return[t[2*e],t[2*e+1]]}function iS(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<sl.length;e++)if(t.get([sl[e],"endLabel","show"]))return!0;return!1}function rS(t,e,n,i){if(jw(e,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=iS(i)?function(n,i){t._endLabelOnDuring(n,i,a,s,o,r,e)}:null,u=e.getBaseAxis().isHorizontal(),h=Yw(e,n,i,(function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})}),l);if(!i.get("clip",!0)){var c=h.shape,d=Math.max(c.width,c.height);u?(c.y-=d,c.height+=2*d):(c.x-=d,c.width+=2*d)}return l&&l(1,h),h}return Zw(e,n,i)}var oS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.init=function(){var t=new zr,e=new Rw;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t,this._changePolyState=G(this._changePolyState,this)},e.prototype.render=function(t,e,n){var i=t.coordinateSystem,r=this.group,o=t.getData(),a=t.getModel("lineStyle"),s=t.getModel("areaStyle"),l=o.getLayout("points")||[],u="polar"===i.type,h=this._coordSys,c=this._symbolDraw,d=this._polyline,p=this._polygon,f=this._lineGroup,g=!e.ssr&&t.get("animation"),v=!s.isEmpty(),m=s.get("origin"),y=Nw(i,o,m),x=v&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),r=zx(2*i),o=0;o<i;o++){var a=Ew(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(i,o,y),_=t.get("showSymbol"),b=t.get("connectNulls"),w=_&&!u&&eS(t,o,i),S=this._data;S&&S.eachItemGraphicEl((function(t,e){t.__temp&&(r.remove(t),S.setItemGraphicEl(e,null))})),_||c.remove(),r.add(f);var M,I=!u&&t.get("step");i&&i.getArea&&t.get("clip",!0)&&(null!=(M=i.getArea()).width?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var T=tS(o,i,n)||o.getVisual("style")[o.getVisual("drawType")];if(d&&h.type===i.type&&I===this._step){v&&!p?p=this._newPolygon(l,x):p&&!v&&(f.remove(p),p=this._polygon=null),u||this._initOrUpdateEndLabel(t,i,bd(T));var C=f.getClipPath();if(C)gh(C,{shape:rS(this,i,!1,t).shape},t);else f.setClipPath(rS(this,i,!0,t));_&&c.updateData(o,{isIgnore:w,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),qw(this._stackedOnPoints,x)&&qw(this._points,l)||(g?this._doUpdateAnimation(o,x,i,n,I,m,b):(I&&(x&&(x=Qw(x,l,i,I,b)),l=Qw(l,null,i,I,b)),d.setShape({points:l}),p&&p.setShape({points:l,stackedOnPoints:x})))}else _&&c.updateData(o,{isIgnore:w,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),g&&this._initSymbolLabelAnimation(o,i,M),I&&(x&&(x=Qw(x,l,i,I,b)),l=Qw(l,null,i,I,b)),d=this._newPolyline(l),v?p=this._newPolygon(l,x):p&&(f.remove(p),p=this._polygon=null),u||this._initOrUpdateEndLabel(t,i,bd(T)),f.setClipPath(rS(this,i,!0,t));var D=t.getModel("emphasis"),L=D.get("focus"),k=D.get("blurScope"),P=D.get("disabled");(d.useStyle(A(a.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"})),jl(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"]))&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1);el(d).seriesIndex=t.seriesIndex,Ul(d,L,k,P);var O=Jw(t.get("smooth")),R=t.get("smoothMonotone");if(d.setShape({smooth:O,smoothMonotone:R,connectNulls:b}),p){var N=o.getCalculationInfo("stackedOnSeries"),E=0;p.useStyle(A(s.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),N&&(E=Jw(N.get("smooth"))),p.setShape({smooth:O,stackedOnSmooth:E,smoothMonotone:R,connectNulls:b}),jl(p,t,"areaStyle"),el(p).seriesIndex=t.seriesIndex,Ul(p,L,k,P)}var z=this._changePolyState;o.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=z)})),this._polyline.onHoverStateChange=z,this._data=o,this._coordSys=i,this._stackedOnPoints=x,this._points=l,this._step=I,this._valueOrigin=m,t.get("triggerLineEvent")&&(this.packEventData(t,d),p&&this.packEventData(t,p))},e.prototype.packEventData=function(t,e){el(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=Ro(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var h=t.get("zlevel")||0,c=t.get("z")||0;(s=new Dw(r,o)).x=l,s.y=u,s.setZ(h,c);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=c,d.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else kg.prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=Ro(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else kg.prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;Il(this._polyline,t),e&&Il(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new Hw({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Uw({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");W(l)&&(l=l(null));var u=s.get("animationDelay")||0,h=W(u)?u(null):u;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var c=[t.x,t.y],d=void 0,p=void 0,f=void 0;if(n)if(r){var g=n,v=e.pointToCoord(c);i?(d=g.startAngle,p=g.endAngle,f=-v[1]/180*Math.PI):(d=g.r0,p=g.r,f=v[0])}else{var m=n;i?(d=m.x,p=m.x+m.width,f=t.x):(d=m.y+m.height,p=m.y,f=t.y)}var y=p===d?0:(f-d)/(p-d);a&&(y=1-y);var x=W(u)?u(o):l*y+h,_=s.getSymbolPath(),b=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:x}),_.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(iS(t)){var r=t.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new Hs({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(t){for(var e,n,i=t.length/2;i>0&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}(a);l>=0&&(tc(o,ec(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?Aw(r,n):Cw(r,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),h=n.hostModel,c=h.get("connectNulls"),d=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),v=f.inverse,m=e.shape,y=v?g?m.x:m.y+m.height:g?m.x+m.width:m.y,x=(g?p:0)*(v?-1:1),_=(g?0:-p)*(v?-1:1),b=g?"x":"y",w=function(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(r=t[2*u+a],!isNaN(r)&&!isNaN(t[2*u+1-a]))if(0!==u){if(i<=e&&r>=e||i>=e&&r<=e){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}(u,y,b),S=w.range,M=S[1]-S[0],I=void 0;if(M>=1){if(M>1&&!c){var T=nS(u,S[0]);s.attr({x:T[0]+x,y:T[1]+_}),r&&(I=h.getRawValue(S[0]))}else{(T=l.getPointOn(y,b))&&s.attr({x:T[0]+x,y:T[1]+_});var C=h.getRawValue(S[0]),A=h.getRawValue(S[1]);r&&(I=Uo(n,d,C,A,w.t))}i.lastFrameIndex=S[0]}else{var D=1===t||i.lastFrameIndex>0?S[0]:0;T=nS(u,D);r&&(I=h.getRawValue(D)),s.attr({x:T[0]+x,y:T[1]+_})}if(r){var L=uc(s);"function"==typeof L.setLabelText&&L.setLabelText(I)}}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,h=function(t,e,n,i,r,o,a){for(var s=function(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}(t,e),l=[],u=[],h=[],c=[],d=[],p=[],f=[],g=Nw(r,e,a),v=t.getLayout("points")||[],m=e.getLayout("points")||[],y=0;y<s.length;y++){var x=s[y],_=!0,b=void 0,w=void 0;switch(x.cmd){case"=":b=2*x.idx,w=2*x.idx1;var S=v[b],M=v[b+1],I=m[w],T=m[w+1];(isNaN(S)||isNaN(M))&&(S=I,M=T),l.push(S,M),u.push(I,T),h.push(n[b],n[b+1]),c.push(i[w],i[w+1]),f.push(e.getRawIndex(x.idx1));break;case"+":var C=x.idx,A=g.dataDimsForPoint,D=r.dataToPoint([e.get(A[0],C),e.get(A[1],C)]);w=2*C,l.push(D[0],D[1]),u.push(m[w],m[w+1]);var L=Ew(g,r,e,C);h.push(L[0],L[1]),c.push(i[w],i[w+1]),f.push(e.getRawIndex(C));break;case"-":_=!1}_&&(d.push(x),p.push(p.length))}p.sort((function(t,e){return f[t]-f[e]}));var k=l.length,P=zx(k),O=zx(k),R=zx(k),N=zx(k),E=[];for(y=0;y<p.length;y++){var z=p[y],V=2*y,B=2*z;P[V]=l[B],P[V+1]=l[B+1],O[V]=u[B],O[V+1]=u[B+1],R[V]=h[B],R[V+1]=h[B+1],N[V]=c[B],N[V+1]=c[B+1],E[y]=d[z]}return{current:P,next:O,stackedOnCurrent:R,stackedOnNext:N,status:E}}(this._data,t,this._stackedOnPoints,e,this._coordSys,0,this._valueOrigin),c=h.current,d=h.stackedOnCurrent,p=h.next,f=h.stackedOnNext;if(r&&(d=Qw(h.stackedOnCurrent,h.current,n,r,a),c=Qw(h.current,null,n,r,a),f=Qw(h.stackedOnNext,h.next,n,r,a),p=Qw(h.next,null,n,r,a)),$w(c,p)>3e3||l&&$w(d,f)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f})));s.shape.__points=h.current,s.shape.points=c;var g={shape:{points:p}};h.current!==c&&(g.shape.__points=h.next),s.stopAnimation(),fh(s,g,u),l&&(l.setShape({points:c,stackedOnPoints:d}),l.stopAnimation(),fh(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],m=h.status,y=0;y<m.length;y++){if("="===m[y].cmd){var x=t.getItemGraphicEl(m[y].idx1);x&&v.push({el:x,ptIdx:y})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<v.length;e++){var n=v[e].el,i=2*v[e].ptIdx;n.x=t[i],n.y=t[i+1],n.markRedraw()}}))},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(t,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(kg);function aS(t,e){return{seriesType:t,plan:Ag(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,r=t.pipelineContext,o=e||r.large;if(i){var a=N(i.dimensions,(function(t){return n.mapDimension(t)})).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");vx(n,a[0])&&(a[0]=l),vx(n,a[1])&&(a[1]=l);var u=n.getStore(),h=n.getDimensionIndex(a[0]),c=n.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,r=o&&zx(n*s),a=[],l=[],d=t.start,p=0;d<t.end;d++){var f=void 0;if(1===s){var g=u.get(h,d);f=i.dataToPoint(g,null,l)}else a[0]=u.get(h,d),a[1]=u.get(c,d),f=i.dataToPoint(a,null,l);o?(r[p++]=f[0],r[p++]=f[1]):e.setItemLayout(d,f.slice())}o&&e.setLayout("points",r)}}}}}}var sS={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},lS=function(t){return Math.round(t.length/2)};function uS(t){return{seriesType:t,reset:function(t,e,n){var i=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),h=n.getDevicePixelRatio(),c=Math.abs(u[1]-u[0])*(h||1),d=Math.round(a/c);if(isFinite(d)&&d>1){"lttb"===r?t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/d)):"minmax"===r&&t.setData(i.minmaxDownSample(i.mapDimension(l.dim),1/d));var p=void 0;U(r)?p=sS[r]:W(r)&&(p=r),p&&t.setData(i.downSample(i.mapDimension(l.dim),1/d,p,lS))}}}}}function hS(t){t.registerChartView(oS),t.registerSeriesModel(Tw),t.registerLayout(aS("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,uS("line"))}var cS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.getInitialData=function(t,e){return yx(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,n){var i=this.coordinateSystem;if(i&&i.clampData){var r=i.clampData(t),o=i.dataToPoint(r);if(n)R(i.getAxes(),(function(t,n){if("category"===t.type&&null!=e){var i=t.getTicksCoords(),a=t.getTickModel().get("alignWithLabel"),s=r[n],l="x1"===e[n]||"y1"===e[n];if(l&&!a&&(s+=1),i.length<2)return;if(2===i.length)return void(o[n]=t.toGlobalCoord(t.getExtent()[l?1:0]));for(var u=void 0,h=void 0,c=1,d=0;d<i.length;d++){var p=i[d].coord,f=d===i.length-1?i[d-1].tickValue+c:i[d].tickValue;if(f===s){h=p;break}if(f<s)u=p;else if(null!=u&&f>s){h=(p+u)/2;break}1===d&&(c=f-i[0].tickValue)}null==h&&(u?u&&(h=i[i.length-1].coord):h=i[0].coord),o[n]=t.toGlobalCoord(h)}}));else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),u=i.getBaseAxis().isHorizontal()?0:1;o[u]+=s+l/2}return o}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(xg);xg.registerClass(cS);var dS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.getInitialData=function(){return yx(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Cc(cS.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(cS),pS=function(){return function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}}(),fS=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return n(e,t),e.prototype.getDefaultShape=function(){return new pS},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,u=e.endAngle,h=e.clockwise,c=2*Math.PI,d=h?u-l<c:l-u<c;d||(l=u-(h?c:-c));var p=Math.cos(l),f=Math.sin(l),g=Math.cos(u),v=Math.sin(u);d?(t.moveTo(p*r+n,f*r+i),t.arc(p*s+n,f*s+i,a,-Math.PI+l,l,!h)):t.moveTo(p*o+n,f*o+i),t.arc(n,i,o,l,u,!h),t.arc(g*s+n,v*s+i,a,u-2*Math.PI,u-Math.PI,!h),0!==r&&t.arc(n,i,r,u,l,h)},e}(Cs);function gS(t,e,n){return e*Math.sin(t)*(n?-1:1)}function vS(t,e,n){return e*Math.cos(t)*(n?1:-1)}function mS(t,e,n){var i=t.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;H(i)||(i=[i,i,i,i]);var r=Math.abs(e.r||0-e.r0||0);return{cornerRadius:N(i,(function(t){return Ir(t,r)}))}}var yS=Math.max,xS=Math.min;var _S=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return n(e,t),e.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var r=t.get("coordinateSystem");"cartesian2d"!==r&&"polar"!==r||(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){qh(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,i){var r,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?r=u.isHorizontal():"polar"===l.type&&(r="angle"===u.dim);var h=t.isAnimationEnabled()?t:null,c=function(t,e){var n=t.get("realtimeSort",!0),i=e.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===e.type)return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}(t,l);c&&this._enableRealtimeSort(c,a,n);var d=t.get("clip",!0)||c,p=function(t,e){var n=t.getArea&&t.getArea();if(jw(t,"cartesian2d")){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}(l,a);o.removeClipPath();var f=t.get("roundCap",!0),g=t.get("showBackground",!0),v=t.getModel("backgroundStyle"),m=v.get("borderRadius")||0,y=[],x=this._backgroundEls,_=i&&i.isInitSort,b=i&&"changeAxisOrder"===i.type;function w(t){var e=AS[l.type](a,t),n=function(t,e,n){var i="polar"===t.type?zu:Bs;return new i({shape:NS(e,n,t),silent:!0,z2:0})}(l,r,e);return n.useStyle(v.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",m):n.setShape("cornerRadius",m),y[t]=n,n}a.diff(s).add((function(e){var n=a.getItemModel(e),i=AS[l.type](a,e,n);if(g&&w(e),a.hasValue(e)&&CS[l.type](i)){var s=!1;d&&(s=bS[l.type](p,i));var v=wS[l.type](t,a,e,i,r,h,u.model,!1,f);c&&(v.forceLabelAnimation=!0),LS(v,a,e,n,i,t,r,"polar"===l.type),_?v.attr({shape:i}):c?SS(c,h,v,i,e,r,!1,!1):gh(v,{shape:i},t,e),a.setItemGraphicEl(e,v),o.add(v),v.ignore=s}})).update((function(e,n){var i=a.getItemModel(e),S=AS[l.type](a,e,i);if(g){var M=void 0;0===x.length?M=w(n):((M=x[n]).useStyle(v.getItemStyle()),"cartesian2d"===l.type?M.setShape("r",m):M.setShape("cornerRadius",m),y[e]=M);var I=AS[l.type](a,e);fh(M,{shape:NS(r,I,l)},h,e)}var T=s.getItemGraphicEl(n);if(a.hasValue(e)&&CS[l.type](S)){var C=!1;if(d&&(C=bS[l.type](p,S))&&o.remove(T),T?_h(T):T=wS[l.type](t,a,e,S,r,h,u.model,!!T,f),c&&(T.forceLabelAnimation=!0),b){var A=T.getTextContent();if(A){var D=uc(A);null!=D.prevValue&&(D.prevValue=D.value)}}else LS(T,a,e,i,S,t,r,"polar"===l.type);_?T.attr({shape:S}):c?SS(c,h,T,S,e,r,!0,b):fh(T,{shape:S},t,e,null),a.setItemGraphicEl(e,T),T.ignore=C,o.add(T)}else o.remove(T)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&xh(n,t,e)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new zr);S.removeAll();for(var M=0;M<y.length;++M)S.add(y[M]);o.add(S),this._backgroundEls=y,this._data=a},e.prototype._renderLarge=function(t,e,n){this._clear(),OS(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),OS(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&Xw(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var i=this;if(e.count()){var r=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var o=function(t){var n=e.getItemGraphicEl(t),i=n&&n.shape;return i&&Math.abs(r.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(e,o,r,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var i=[];return t.each(t.mapDimension(e.dim),(function(t,e){var r=n(e);r=null==r?NaN:r,i.push({dataIndex:e,mappedValue:r,ordinalNumber:t})})),i.sort((function(t,e){return e.mappedValue-t.mappedValue})),{ordinalNumbers:N(i,(function(t){return t.ordinalNumber}))}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var i=n.scale,r=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(r,i.getRawOrdinalNumber(a)),u=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){xh(e,t,el(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(kg),bS={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=yS(e.x,t.x),s=xS(e.x+e.width,r),l=yS(e.y,t.y),u=xS(e.y+e.height,o),h=s<a,c=u<l;return e.x=h&&a>r?s:a,e.y=c&&l>o?u:l,e.width=h?0:s-a,e.height=c?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),h||c},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var r=xS(e.r,t.r),o=yS(e.r0,t.r0);e.r=r,e.r0=o;var a=r-o<0;if(n<0){i=e.r;e.r=e.r0,e.r0=i}return a}},wS={cartesian2d:function(t,e,n,i,r,o,a,s,l){var u=new Bs({shape:C({},i),z2:1});(u.__dataIndex=n,u.name="item",o)&&(u.shape[r?"height":"width"]=0);return u},polar:function(t,e,n,i,r,o,a,s,l){var u=!r&&l?fS:zu,h=new u({shape:i,z2:1});h.name="item";var c,d,p=DS(r);if(h.calculateTextPosition=(c=p,d=({isRoundCap:u===fS}||{}).isRoundCap,function(t,e,n){var i=e.position;if(!i||i instanceof Array)return Tr(t,e,n);var r=c(i),o=null!=e.distance?e.distance:5,a=this.shape,s=a.cx,l=a.cy,u=a.r,h=a.r0,p=(u+h)/2,f=a.startAngle,g=a.endAngle,v=(f+g)/2,m=d?Math.abs(u-h)/2:0,y=Math.cos,x=Math.sin,_=s+u*y(f),b=l+u*x(f),w="left",S="top";switch(r){case"startArc":_=s+(h-o)*y(v),b=l+(h-o)*x(v),w="center",S="top";break;case"insideStartArc":_=s+(h+o)*y(v),b=l+(h+o)*x(v),w="center",S="bottom";break;case"startAngle":_=s+p*y(f)+gS(f,o+m,!1),b=l+p*x(f)+vS(f,o+m,!1),w="right",S="middle";break;case"insideStartAngle":_=s+p*y(f)+gS(f,-o+m,!1),b=l+p*x(f)+vS(f,-o+m,!1),w="left",S="middle";break;case"middle":_=s+p*y(v),b=l+p*x(v),w="center",S="middle";break;case"endArc":_=s+(u+o)*y(v),b=l+(u+o)*x(v),w="center",S="bottom";break;case"insideEndArc":_=s+(u-o)*y(v),b=l+(u-o)*x(v),w="center",S="top";break;case"endAngle":_=s+p*y(g)+gS(g,o+m,!0),b=l+p*x(g)+vS(g,o+m,!0),w="left",S="middle";break;case"insideEndAngle":_=s+p*y(g)+gS(g,-o+m,!0),b=l+p*x(g)+vS(g,-o+m,!0),w="right",S="middle";break;default:return Tr(t,e,n)}return(t=t||{}).x=_,t.y=b,t.align=w,t.verticalAlign=S,t}),o){var f=r?"r":"endAngle",g={};h.shape[f]=r?i.r0:i.startAngle,g[f]=i[f],(s?fh:gh)(h,{shape:g},o)}return h}};function SS(t,e,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?fh:gh)(n,{shape:l},e,r,null),(a?fh:gh)(n,{shape:u},e?t.baseAxis.model:null,r)}function MS(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var IS=["x","y","width","height"],TS=["cx","cy","r","startAngle","endAngle"],CS={cartesian2d:function(t){return!MS(t,IS)},polar:function(t){return!MS(t,TS)}},AS={cartesian2d:function(t,e,n){var i=t.getItemLayout(e),r=n?function(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=t.get(["itemStyle","borderWidth"])||0,r=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,r,o)}(n,i):0,o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function DS(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function LS(t,e,n,i,r,o,a,s){var l=e.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var u=t.shape;C(u,mS(i.getModel("itemStyle"),u,!0)),t.setShape(u)}}else{var h=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",h)}t.useStyle(l);var c=i.getShallow("cursor");c&&t.attr("cursor",c);var d=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",p=ec(i);tc(t,p,{labelFetcher:o,labelDataIndex:n,defaultText:Cw(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var f=t.getTextContent();if(s&&f){var g=i.get(["label","position"]);t.textConfig.inside="middle"===g||null,function(t,e,n,i){if(Z(i))t.setTextConfig({rotation:i});else if(H(e))t.setTextConfig({rotation:0});else{var r,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=l;break;case"startAngle":case"insideStartAngle":r=a;break;case"endAngle":case"insideEndAngle":r=s;break;default:return void t.setTextConfig({rotation:0})}var h=1.5*Math.PI-r;"middle"===u&&h>Math.PI/2&&h<1.5*Math.PI&&(h-=Math.PI),t.setTextConfig({rotation:h})}}(t,"outside"===g?d:g,DS(a),i.get(["label","rotate"]))}hc(f,p,o.getRawValue(n),(function(t){return Aw(e,t)}));var v=i.getModel(["emphasis"]);Ul(t,v.get("focus"),v.get("blurScope"),v.get("disabled")),jl(t,i),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(r)&&(t.style.fill="none",t.style.stroke="none",R(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}var kS=function(){return function(){}}(),PS=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return n(e,t),e.prototype.getDefaultShape=function(){return new kS},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[i]=s,a[r]=n[l+2],o[i]=n[l+i],o[r]=n[l+r],t.rect(o[0],o[1],a[0],a[1])},e}(Cs);function OS(t,e,n,i){var r=t.getData(),o=r.getLayout("valueAxisHorizontal")?1:0,a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=t.getModel("backgroundStyle"),u=r.getLayout("largeBackgroundPoints");if(u){var h=new PS({shape:{points:u},incremental:!!i,silent:!0,z2:0});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,h.useStyle(l.getItemStyle()),e.add(h),n&&n.push(h)}var c=new PS({shape:{points:r.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,e.add(c),c.useStyle(r.getVisual("style")),c.style.stroke=null,el(c).seriesIndex=t.seriesIndex,t.get("silent")||(c.on("mousedown",RS),c.on("mousemove",RS)),n&&n.push(c)}var RS=Gg((function(t){var e=function(t,e,n){for(var i=t.baseDimIdx,r=1-i,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,h=0,c=o.length/3;h<c;h++){var d=3*h;if(l[i]=u,l[r]=o[d+2],s[i]=o[d+i],s[r]=o[d+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[h]}return-1}(this,t.offsetX,t.offsetY);el(this).dataIndex=e>=0?e:null}),30,!1);function NS(t,e,n){if(jw(n,"cartesian2d")){var i=e,r=n.getArea();return{x:t?i.x:r.x,y:t?r.y:i.y,width:t?i.width:r.width,height:t?r.height:i.height}}var o=e;return{cx:(r=n.getArea()).cx,cy:r.cy,r0:t?r.r0:o.r0,r:t?r.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}function ES(t){t.registerChartView(_S),t.registerSeriesModel(dS),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,F(Ux,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Yx("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,uS("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))}var zS=2*Math.PI,VS=Math.PI/180;function BS(t,e){return Ad(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function GS(t,e){var n=BS(t,e),i=t.get("center"),r=t.get("radius");H(r)||(r=[0,r]);var o,a,s=qr(n.width,e.getWidth()),l=qr(n.height,e.getHeight()),u=Math.min(s,l),h=qr(r[0],u/2),c=qr(r[1],u/2),d=t.coordinateSystem;if(d){var p=d.dataToPoint(i);o=p[0]||0,a=p[1]||0}else H(i)||(i=[i,i]),o=qr(i[0],s)+n.x,a=qr(i[1],l)+n.y;return{cx:o,cy:a,r0:h,r:c}}function FS(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),i=e.mapDimension("value"),r=BS(t,n),o=GS(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,h=-t.get("startAngle")*VS,c=t.get("endAngle"),d=t.get("padAngle")*VS;c="auto"===c?h-zS:-c*VS;var p=t.get("minAngle")*VS+d,f=0;e.each(i,(function(t){!isNaN(t)&&f++}));var g=e.getSum(i),v=Math.PI/(g||f)*2,m=t.get("clockwise"),y=t.get("roseType"),x=t.get("stillShowZeroSum"),_=e.getDataExtent(i);_[0]=0;var b=m?1:-1,w=[h,c],S=b*d/2;as(w,!m),h=w[0],c=w[1];var M=HS(t);M.startAngle=h,M.endAngle=c,M.clockwise=m;var I=Math.abs(c-h),T=I,C=0,A=h;if(e.setLayout({viewRect:r,r:l}),e.each(i,(function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:a,cy:s,r0:u,r:y?NaN:l});else{(i="area"!==y?0===g&&x?v:t*v:I/f)<p?(i=p,T-=p):C+=t;var r=A+b*i,o=0,h=0;d>i?h=o=A+b*i/2:(o=A+S,h=r-S),e.setItemLayout(n,{angle:i,startAngle:o,endAngle:h,clockwise:m,cx:a,cy:s,r0:u,r:y?jr(t,_,[u,l]):l}),A=r}})),T<zS&&f)if(T<=.001){var D=I/f;e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n);i.angle=D;var r=0,o=0;D<d?o=r=h+b*(n+.5)*D:(r=h+b*n*D+S,o=h+b*(n+1)*D-S),i.startAngle=r,i.endAngle=o}}))}else v=T/C,A=h,e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n),r=i.angle===p?p:t*v,o=0,a=0;r<d?a=o=A+b*r/2:(o=A+S,a=A+b*r-S),i.startAngle=o,i.endAngle=a,A+=b*r}}))}))}var HS=No();function WS(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf((function(t){for(var e=i.getName(t),r=0;r<n.length;r++)if(!n[r].isSelected(e))return!1;return!0}))}}}}var US=Math.PI/180;function YS(t,e,n,i,r,o,a,s,l,u){if(!(t.length<2)){for(var h=t.length,c=0;c<h;c++)if("outer"===t[c].position&&"labelLine"===t[c].labelAlignTo){var d=t[c].label.x-u;t[c].linePoints[1][0]+=d,t[c].label.x=u}zb(t,l,l+a)&&function(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,h=Math.abs(l.label.y-n);if(h>=u.maxY){var c=l.label.x-e-l.len2*r,d=i+l.len,f=Math.abs(c)<d?Math.sqrt(h*h/(1-c*c/d/d)):d;u.rB=f,u.maxY=h}u.list.push(l)}p(o),p(a)}(t)}function p(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=i+l.len,c=h*h,d=Math.sqrt(Math.abs((1-u*u/a)*c)),p=e+(d+l.len2)*r,f=p-l.label.x;ZS(l,l.targetTextWidth-f*r,!0),l.label.x=p}}}function ZS(t,e,n){if(void 0===n&&(n=!1),null==t.labelStyleWidth){var i=t.label,r=i.style,o=t.rect,a=r.backgroundColor,s=r.padding,l=s?s[1]+s[3]:0,u=r.overflow,h=o.width+(a?0:l);if(e<h||n){var c=o.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var d=i.getBoundingRect();i.setStyle("width",Math.ceil(d.width)),i.setStyle("backgroundColor",a)}else{var p=e-l,f=e<h?p:n?p>t.unconstrainedWidth?null:p:null;i.setStyle("width",f)}var g=i.getBoundingRect();o.width=g.width;var v=(i.style.margin||0)+2.1;o.height=g.height+v,o.y-=(o.height-c)/2}}}function XS(t){return"center"===t.position}function jS(t){var e,n,i=t.getData(),r=[],o=!1,a=(t.get("minShowLabelAngle")||0)*US,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,h=s.x,c=s.y,d=s.height;function p(t){t.ignore=!0}i.each((function(t){var s=i.getItemGraphicEl(t),c=s.shape,d=s.getTextContent(),f=s.getTextGuideLine(),g=i.getItemModel(t),v=g.getModel("label"),m=v.get("position")||g.get(["emphasis","label","position"]),y=v.get("distanceToLabelLine"),x=v.get("alignTo"),_=qr(v.get("edgeDistance"),u),b=v.get("bleedMargin"),w=g.getModel("labelLine"),S=w.get("length");S=qr(S,u);var M=w.get("length2");if(M=qr(M,u),Math.abs(c.endAngle-c.startAngle)<a)return R(d.states,p),d.ignore=!0,void(f&&(R(f.states,p),f.ignore=!0));if(function(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}(d)){var I,T,C,A,D=(c.startAngle+c.endAngle)/2,L=Math.cos(D),k=Math.sin(D);e=c.cx,n=c.cy;var P="inside"===m||"inner"===m;if("center"===m)I=c.cx,T=c.cy,A="center";else{var O=(P?(c.r+c.r0)/2*L:c.r*L)+e,N=(P?(c.r+c.r0)/2*k:c.r*k)+n;if(I=O+3*L,T=N+3*k,!P){var E=O+L*(S+l-c.r),z=N+k*(S+l-c.r),V=E+(L<0?-1:1)*M;I="edge"===x?L<0?h+_:h+u-_:V+(L<0?-y:y),T=z,C=[[O,N],[E,z],[V,z]]}A=P?"center":"edge"===x?L>0?"right":"left":L>0?"left":"right"}var B=Math.PI,G=0,F=v.get("rotate");if(Z(F))G=F*(B/180);else if("center"===m)G=0;else if("radial"===F||!0===F){G=L<0?-D+B:-D}else if("tangential"===F&&"outside"!==m&&"outer"!==m){var H=Math.atan2(L,k);H<0&&(H=2*B+H),k>0&&(H=B+H),G=H-B}if(o=!!G,d.x=I,d.y=T,d.rotation=G,d.setStyle({verticalAlign:"middle"}),P){d.setStyle({align:A});var W=d.states.select;W&&(W.x+=d.x,W.y+=d.y)}else{var U=d.getBoundingRect().clone();U.applyTransform(d.getComputedTransform());var Y=(d.style.margin||0)+2.1;U.y-=Y/2,U.height+=Y,r.push({label:d,labelLine:f,position:m,len:S,len2:M,minTurnAngle:w.get("minTurnAngle"),maxSurfaceAngle:w.get("maxSurfaceAngle"),surfaceNormal:new Te(L,k),linePoints:C,textAlign:A,labelDistance:y,labelAlignTo:x,edgeDistance:_,bleedMargin:b,rect:U,unconstrainedWidth:U.width,labelStyleWidth:d.style.width})}s.setTextConfig({inside:P})}})),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,i,r,o,a,s){for(var l=[],u=[],h=Number.MAX_VALUE,c=-Number.MAX_VALUE,d=0;d<t.length;d++){var p=t[d].label;XS(t[d])||(p.x<e?(h=Math.min(h,p.x),l.push(t[d])):(c=Math.max(c,p.x),u.push(t[d])))}for(d=0;d<t.length;d++)if(!XS(v=t[d])&&v.linePoints){if(null!=v.labelStyleWidth)continue;p=v.label;var f=v.linePoints,g=void 0;g="edge"===v.labelAlignTo?p.x<e?f[2][0]-v.labelDistance-a-v.edgeDistance:a+r-v.edgeDistance-f[2][0]-v.labelDistance:"labelLine"===v.labelAlignTo?p.x<e?h-a-v.bleedMargin:a+r-c-v.bleedMargin:p.x<e?p.x-a-v.bleedMargin:a+r-p.x-v.bleedMargin,v.targetTextWidth=g,ZS(v,g)}for(YS(u,e,n,i,1,0,o,0,s,c),YS(l,e,n,i,-1,0,o,0,s,h),d=0;d<t.length;d++){var v;if(!XS(v=t[d])&&v.linePoints){p=v.label,f=v.linePoints;var m="edge"===v.labelAlignTo,y=p.style.padding,x=y?y[1]+y[3]:0,_=p.style.backgroundColor?0:x,b=v.rect.width+_,w=f[1][0]-f[2][0];m?p.x<e?f[2][0]=a+v.edgeDistance+b+v.labelDistance:f[2][0]=a+r-v.edgeDistance-b-v.labelDistance:(p.x<e?f[2][0]=p.x+v.labelDistance:f[2][0]=p.x-v.labelDistance,f[1][0]=f[2][0]+w),f[1][1]=f[2][1]=p.y}}}(r,e,n,l,u,d,h,c);for(var f=0;f<r.length;f++){var g=r[f],v=g.label,m=g.labelLine,y=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:g.textAlign}),y&&(R(v.states,p),v.ignore=!0);var x=v.states.select;x&&(x.x+=v.x,x.y+=v.y)}if(m){var _=g.linePoints;y||!_?(R(m.states,p),m.ignore=!0):(Db(_,g.minTurnAngle),Lb(_,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:_}),v.__hostTarget.textGuideLineConfig={anchor:new Te(_[0][0],_[0][1])})}}}var qS=function(t){function e(e,n,i){var r=t.call(this)||this;r.z2=2;var o=new Hs;return r.setTextContent(o),r.updateData(e,n,i,!0),r}return n(e,t),e.prototype.updateData=function(t,e,n,i){var r=this,o=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),l=t.getItemLayout(e),u=C(mS(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))r.setShape(u);else{if(i){r.setShape(u);var h=o.getShallow("animationType");o.ecModel.ssr?(gh(r,{scaleX:0,scaleY:0},o,{dataIndex:e,isFrom:!0}),r.originX=u.cx,r.originY=u.cy):"scale"===h?(r.shape.r=l.r0,gh(r,{shape:{r:l.r}},o,e)):null!=n?(r.setShape({startAngle:n,endAngle:n}),gh(r,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,e)):(r.shape.endAngle=l.startAngle,fh(r,{shape:{endAngle:l.endAngle}},o,e))}else _h(r),fh(r,{shape:u},o,e);r.useStyle(t.getItemVisual(e,"style")),jl(r,a);var c=(l.startAngle+l.endAngle)/2,d=o.get("selectedOffset"),p=Math.cos(c)*d,f=Math.sin(c)*d,g=a.getShallow("cursor");g&&r.attr("cursor",g),this._updateLabel(o,t,e),r.ensureState("emphasis").shape=C({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},mS(s.getModel("itemStyle"),l)),C(r.ensureState("select"),{x:p,y:f,shape:mS(a.getModel(["select","itemStyle"]),l)}),C(r.ensureState("blur"),{shape:mS(a.getModel(["blur","itemStyle"]),l)});var v=r.getTextGuideLine(),m=r.getTextContent();v&&C(v.ensureState("select"),{x:p,y:f}),C(m.ensureState("select"),{x:p,y:f}),Ul(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var i=this,r=e.getItemModel(n),o=r.getModel("labelLine"),a=e.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;tc(i,ec(r),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var u=i.getTextContent();i.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var h=t.get(["label","position"]);if("outside"!==h&&"outer"!==h)i.removeTextGuideLine();else{var c=this.getTextGuideLine();c||(c=new Uu,this.setTextGuideLine(c)),Ob(this,Rb(r),{stroke:s,opacity:it(o.get(["lineStyle","opacity"]),l,1)})}},e}(zu),KS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return n(e,t),e.prototype.render=function(t,e,n,i){var r,o=t.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(r=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var h=HS(t),c=new zu({shape:C(GS(t,n),h)});c.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,s.add(c)}o.diff(a).add((function(t){var e=new qS(o,t,r);o.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){var n=a.getItemGraphicEl(e);n.updateData(o,t,r),n.off("click"),s.add(n),o.setItemGraphicEl(t,n)})).remove((function(e){xh(a.getItemGraphicEl(e),t,e)})).execute(),jS(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},e.type="pie",e}(kg);function $S(t,e,n){e=H(e)&&{coordDimensions:e}||C({encodeDefine:t.getEncode()},e);var i=t.getSource(),r=hx(i,e).dimensions,o=new lx(r,t);return o.initData(i,n),o}var JS=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){return this._getRawData().indexOfName(t)>=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}(),QS=No(),tM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new JS(G(this.getData,this),G(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return $S(this,{coordDimensions:["value"],encodeDefaulter:F(Qd,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=QS(n),r=i.seats;if(!r){var o=[];n.each(n.mapDimension("value"),(function(t){o.push(t)})),r=i.seats=eo(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=r[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){Mo(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},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,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"},e}(xg);function eM(t){t.registerChartView(KS),t.registerSeriesModel(tM),Dv("pie",t.registerAction),t.registerLayout(F(FS,"pie")),t.registerProcessor(WS("pie")),t.registerProcessor({seriesType:"pie",reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),i=n.get(e,t);return!(Z(i)&&!isNaN(i)&&i<0)}))}})}var nM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return n(e,t),e.prototype.getInitialData=function(t,e){return yx(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(xg),iM=function(){return function(){}}(),rM=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return n(e,t),e.prototype.getDefaultShape=function(){return new iM},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,i=e.points,r=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&r[0]<4,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<i.length;){var h=i[n++],c=i[n++];isNaN(h)||isNaN(c)||(u&&!u.contain(h,c)||(a.x=h-r[0]/2,a.y=c-r[1]/2,a.width=r[0],a.height=r[1],o.buildPath(t,a,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},e.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,i=e.size,r=this._ctx,o=this.softClipShape;if(r){for(t=this._off;t<n.length;){var a=n[t++],s=n[t++];isNaN(a)||isNaN(s)||(o&&!o.contain(a,s)||r.fillRect(a-i[0]/2,s-i[1]/2,i[0],i[1]))}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,i=n.points,r=n.size,o=Math.max(r[0],4),a=Math.max(r[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,u=i[l]-o/2,h=i[l+1]-a/2;if(t>=u&&e>=h&&t<=u+o&&e<=h+a)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return t=n[0],e=n[1],i.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,i=e.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,u=-1/0,h=0;h<n.length;){var c=n[h++],d=n[h++];a=Math.min(c,a),l=Math.max(c,l),s=Math.min(d,s),u=Math.max(d,u)}t=this._rect=new Ne(a-r/2,s-o/2,l-a+r,u-s+o)}return t},e}(Cs),oM=function(){function t(){this.group=new zr}return t.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},t.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild((function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),i=4*t.startIndex*2;e=new Float32Array(e.buffer,i,n)}t.setShape("points",e),t.reset()}))},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n){var i=this._newAdded[0],r=e.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+r.length);s.set(o),s.set(r,a),i.endIndex=t.end,i.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:r}),this._setCommon(l,e,n)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new rM({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;n=n||{};var r=e.getVisual("symbolSize");t.setShape("size",r instanceof Array?r:[r,r]),t.softClipShape=n.clipShape||null,t.symbolProxy=Wv(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<4;t.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("style"),s=a&&a.fill;s&&t.setColor(s);var l=el(t);l.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){l.dataIndex=null;var n=t.hoverDataIdx;n>=0&&(l.dataIndex=n+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),aM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.render=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=aS("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var e=t.coordinateSystem;return e&&e.getArea&&e.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new oM:new Rw,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(kg),sM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(Nd),lM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Bo).models[0]},e.type="cartesian2dAxis",e}(Nd);P(lM,I_);var uM={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},hM=I({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},uM),cM=I({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},uM);const dM={category:hM,value:cM,time:I({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},cM),log:A({logBase:10},cM)};var pM={value:1,category:1,time:1,log:1};function fM(t,e,i,r){R(pM,(function(o,a){var s=I(I({},dM[a],!0),r,!0),l=function(t){function i(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+a,n}return n(i,t),i.prototype.mergeDefaultAndTheme=function(t,e){var n=Ld(this),i=n?Pd(t):{};I(t,e.getTheme().get(a+"Axis")),I(t,this.getDefaultOption()),t.type=gM(t),n&&kd(t,i,n)},i.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=bx.createByAxisModel(this))},i.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},i.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},i.type=e+"Axis."+a,i.defaultOption=s,i}(i);t.registerComponentModel(l)})),t.registerSubTypeDefaulter(e+"Axis",gM)}function gM(t){return t.type||(t.data?"category":"value")}var vM=["x","y"];function mM(t){return"interval"===t.type||"time"===t.type}var yM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=vM,e}return n(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(mM(t)&&mM(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,h=r[0]-n[0]*l,c=r[1]-i[0]*u,d=this._transform=[l,0,0,u,h,c];this._invTransform=Se([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),r=this.getArea(),o=new Ne(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return Gt(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return Gt(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1])-t,r=Math.min(n[0],n[1])-t,o=Math.max(e[0],e[1])-i+t,a=Math.max(n[0],n[1])-r+t;return new Ne(i,r,o,a)},e}(aw),xM=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return n(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(ub);function _M(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,h=i.getRect(),c=[h.x,h.x+h.width,h.y,h.y+h.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,f="x"===u?[c[2]-p,c[3]+p]:[c[0]-p,c[1]+p];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[d.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===u?f[d[l]]:c[0],"x"===u?f[d[l]]:c[3]],o.rotation=Math.PI/2*("x"===u?0:1);o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?f[d[s]]-f[d.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),et(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var v=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-v:v,o.z2=1,o}function bM(t){return"cartesian2d"===t.get("coordinateSystem")}function wM(t){var e={xAxisModel:null,yAxisModel:null};return R(e,(function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,Bo).models[0];e[i]=o})),e}var SM=Math.log;function MM(t,e,n){var i=Rx.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=m_(t,e),u=l.extent,h=l.fixMin,c=l.fixMax;if("log"===t.type){var d=SM(t.base);u=[SM(u[0])/d,SM(u[1])/d]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:h,fixMax:c});var p=i.getExtent.call(t);h&&(u[0]=p[0]),c&&(u[1]=p[1]);var f=i.getInterval.call(t),g=u[0],v=u[1];if(h&&c)f=(v-g)/a;else if(h)for(v=u[0]+f*a;v<u[1]&&isFinite(v)&&isFinite(u[1]);)f=Tx(f),v=u[0]+f*a;else if(c)for(g=u[1]-f*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)f=Tx(f),g=u[1]-f*a;else{t.getTicks().length-1>a&&(f=Tx(f));var m=f*a;(g=Kr((v=Math.ceil(u[1]/f)*f)-m))<0&&u[0]>=0?(g=0,v=Kr(m)):v>0&&u[1]<=0&&(v=0,g=-Kr(m))}var y=(r[0].value-o[0].value)/s,x=(r[a].value-o[a].value)/s;i.setExtent.call(t,g+f*y,v+f*x),i.setInterval.call(t,f),(y||x)&&i.setNiceExtent.call(t,g+f,v-f)}var IM=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=vM,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=B(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=t[+n[o]],s=a.model,l=a.scale;Mx(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):(y_(l,s),Mx(l)&&(e=a))}r.length&&(e||y_((e=r.pop()).scale,e.model),R(r,(function(t){MM(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};R(n.x,(function(t){CM(n,"y",t,r)})),R(n.y,(function(t){CM(n,"x",t,r)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),r=!n&&t.get("containLabel"),o=Ad(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){R(a,(function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e?o.x:o.y)}))}s(),r&&(R(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=function(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent();r=n instanceof Px?n.count():(i=n.getTicks()).length;var a,s,l,u,h,c,d,p=t.getLabelModel(),f=__(t),g=1;r>40&&(g=Math.ceil(r/40));for(var v=0;v<r;v+=g){var m=f(i?i[v]:{value:o[0]+v},v),y=(s=p.getTextRect(m),l=void 0,u=void 0,h=void 0,c=void 0,d=void 0,l=(p.get("rotate")||0)*Math.PI/180,u=s.width,h=s.height,c=u*Math.abs(Math.cos(l))+Math.abs(h*Math.sin(l)),d=u*Math.abs(Math.sin(l))+Math.abs(h*Math.cos(l)),new Ne(s.x,s.y,c,d));a?a.union(y):a=y}return a}}(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);o[n]-=e[n]+i,"top"===t.position?o.y+=e.height+i:"left"===t.position&&(o.x+=e.width+i)}}})),s()),R(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}X(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===t||r[i].getAxis("y").index===e)return r[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",Bo).models[0],o=t.yAxisModel||i&&i.getReferringComponents("yAxis",Bo).models[0],a=t.gridModel,s=this._coordsList;if(i)L(s,e=i.coordinateSystem)<0&&(e=null);else if(r&&o)e=this.getCartesian(r.componentIndex,o.componentIndex);else if(r)n=this.getAxis("x",r.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){a.coordinateSystem===this&&(e=this._coordsList[0])}return{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var i=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(e){return function(n,i){if(TM(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new xM(e,x_(n),[0,0],n.get("type"),l),h="category"===u.type;u.onBand=h&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=r,u.index=i,r._axesList.push(u),a[e][i]=u,s[e]++}}}this._axesMap=a,R(a.x,(function(e,n){R(a.y,(function(r,o){var a="x"+n+"y"+o,s=new yM(a);s.master=i,s.model=t,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(r)}))}))},t.prototype._updateScale=function(t,e){function n(t,e){R(M_(t,e.dim),(function(n){e.scale.unionExtentFromData(t,n)}))}R(this._axesList,(function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}})),t.eachSeries((function(t){if(bM(t)){var i=wM(t),r=i.xAxisModel,o=i.yAxisModel;if(!TM(r,e)||!TM(o,e))return;var a=this.getCartesian(r.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}}),this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return R(this.getCartesians(),(function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(r);L(e,r)<0&&e.push(r),L(n,o)<0&&n.push(o)})),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",(function(r,o){var a=new t(r,e,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)})),e.eachSeries((function(t){if(bM(t)){var e=wM(t),n=e.xAxisModel,i=e.yAxisModel,r=n.getCoordSysModel().coordinateSystem;t.coordinateSystem=r.getCartesian(n.componentIndex,i.componentIndex)}})),i},t.dimensions=vM,t}();function TM(t,e){return t.getCoordSysModel()===e}function CM(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)AM(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&AM(o[u])&&!i[h(o[u])]){r=o[u];break}r&&(i[h(r)]=!0)}function h(t){return t.dim+"_"+t.index}}function AM(t){return t&&"category"!==t.type&&"time"!==t.type&&function(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}(t)}var DM=Math.PI,LM=function(){function t(t,e){this.group=new zr,this.opt=e,this.axisModel=t,A(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new zr({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!kM[t]},t.prototype.add=function(t){kM[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,r,o=ro(e-t);return oo(o)?(r=n>0?"top":"bottom",i="center"):oo(o-DM)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<DM?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),kM={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(Gt(s,s,a),Gt(l,l,a));var h=C({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Xu({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:h,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Rh(c.shape,c.style.lineWidth),c.anid="line",n.add(c);var d=e.get(["axisLine","symbol"]);if(null!=d){var p=e.get(["axisLine","symbolSize"]);U(d)&&(d=[d,d]),(U(p)||Z(p))&&(p=[p,p]);var f=Yv(e.get(["axisLine","symbolOffset"])||0,p),g=p[0],v=p[1];R([{rotate:t.rotation+Math.PI/2,offset:f[0],r:0},{rotate:t.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,i){if("none"!==d[i]&&null!=d[i]){var r=Wv(d[i],-g/2,-v/2,g,v,h.stroke,!0),o=e.r+e.offset,a=u?l:s;r.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(t,e,n,i){var r=function(t,e,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");"auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick"));if(!a||r.scale.isBlank())return;for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),u=NM(r.getTicksCoords(),e.transform,l,A(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<u.length;h++)t.add(u[h]);return u}(n,i,e,t),o=function(t,e,n,i){var r=n.axis,o=et(i.axisLabelShow,n.get(["axisLabel","show"]));if(!o||r.scale.isBlank())return;var a=n.getModel("axisLabel"),s=a.get("margin"),l=r.getViewLabels(),u=(et(i.labelRotate,a.get("rotate"))||0)*DM/180,h=LM.innerTextLayout(i.rotation,u,i.labelDirection),c=n.getCategories&&n.getCategories(!0),d=[],p=LM.isLabelSilent(n),f=n.get("triggerEvent");return R(l,(function(o,u){var g="ordinal"===r.scale.type?r.scale.getRawOrdinalNumber(o.tickValue):o.tickValue,v=o.formattedLabel,m=o.rawLabel,y=a;if(c&&c[g]){var x=c[g];X(x)&&x.textStyle&&(y=new Mc(x.textStyle,a,n.ecModel))}var _=y.getTextColor()||n.get(["axisLine","lineStyle","color"]),b=r.dataToCoord(g),w=y.getShallow("align",!0)||h.textAlign,S=nt(y.getShallow("alignMinLabel",!0),w),M=nt(y.getShallow("alignMaxLabel",!0),w),I=y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||h.textVerticalAlign,T=nt(y.getShallow("verticalAlignMinLabel",!0),I),C=nt(y.getShallow("verticalAlignMaxLabel",!0),I),A=new Hs({x:b,y:i.labelOffset+i.labelDirection*s,rotation:h.rotation,silent:p,z2:10+(o.level||0),style:nc(y,{text:v,align:0===u?S:u===l.length-1?M:w,verticalAlign:0===u?T:u===l.length-1?C:I,fill:W(_)?_("category"===r.type?m:"value"===r.type?g+"":g,u):_})});if(A.anid="label_"+g,Xh({el:A,componentModel:n,itemName:v,formatterParamsExtra:{isTruncated:function(){return A.isTruncated},value:m,tickIndex:u}}),f){var D=LM.makeAxisEventDataBase(n);D.targetType="axisLabel",D.value=m,D.tickIndex=u,"category"===r.type&&(D.dataIndex=g),el(A).eventData=D}e.add(A),A.updateTransform(),d.push(A),t.add(A),A.decomposeTransform()})),d}(n,i,e,t);(function(t,e,n){if(S_(t.axis))return;var i=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],h=n[1],c=n[n.length-1],d=n[n.length-2];!1===i?(PM(o),PM(u)):OM(o,a)&&(i?(PM(a),PM(h)):(PM(o),PM(u)));!1===r?(PM(s),PM(c)):OM(l,s)&&(r?(PM(l),PM(d)):(PM(s),PM(c)))}(e,o,r),function(t,e,n,i){var r=n.axis,o=n.getModel("minorTick");if(!o.get("show")||r.scale.isBlank())return;var a=r.getMinorTicksCoords();if(!a.length)return;for(var s=o.getModel("lineStyle"),l=i*o.get("length"),u=A(s.getLineStyle(),A(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),h=0;h<a.length;h++)for(var c=NM(a[h],e.transform,l,u,"minorticks_"+h),d=0;d<c.length;d++)t.add(c[d])}(n,i,e,t.tickDirection),e.get(["axisLabel","hideOverlap"]))&&Vb(Nb(N(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}}))))},axisName:function(t,e,n,i){var r=et(t.axisName,e.get("name"));if(r){var o,a,s=e.get("nameLocation"),l=t.nameDirection,u=e.getModel("nameTextStyle"),h=e.get("nameGap")||0,c=e.axis.getExtent(),d=c[0]>c[1]?-1:1,p=["start"===s?c[0]-d*h:"end"===s?c[1]+d*h:(c[0]+c[1])/2,RM(s)?t.labelOffset+l*h:0],f=e.get("nameRotate");null!=f&&(f=f*DM/180),RM(s)?o=LM.innerTextLayout(t.rotation,null!=f?f:t.rotation,l):(o=function(t,e,n,i){var r,o,a=ro(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;oo(a-DM/2)?(o=l?"bottom":"top",r="center"):oo(a-1.5*DM)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*DM&&a>DM/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:r,textVerticalAlign:o}}(t.rotation,s,f||0,c),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),v=e.get("nameTruncate",!0)||{},m=v.ellipsis,y=et(t.nameTruncateMaxWidth,v.maxWidth,a),x=new Hs({x:p[0],y:p[1],rotation:o.rotation,silent:LM.isLabelSilent(e),style:nc(u,{text:r,font:g,overflow:"truncate",width:y,ellipsis:m,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Xh({el:x,componentModel:e,itemName:r}),x.__fullText=r,x.anid="name",e.get("triggerEvent")){var _=LM.makeAxisEventDataBase(e);_.targetType="axisName",_.name=r,el(x).eventData=_}i.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function PM(t){t&&(t.ignore=!0)}function OM(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=me([]);return be(r,r,-t.rotation),n.applyTransform(xe([],r,t.getLocalTransform())),i.applyTransform(xe([],r,e.getLocalTransform())),n.intersect(i)}}function RM(t){return"middle"===t||"center"===t}function NM(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(Gt(a,a,e),Gt(s,s,e));var h=new Xu({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});Rh(h.shape,h.style.lineWidth),h.anid=r+"_"+t[l].tickValue,o.push(h)}return o}function EM(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];R(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=GM(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model.getModel("tooltip",i);if(R(n.getAxes(),F(p,!1,null)),n.getTooltipAxes&&i&&u.get("show")){var h="axis"===u.get("trigger"),c="cross"===u.get(["axisPointer","type"]),d=n.getTooltipAxes(u.get(["axisPointer","axis"]));(h||c)&&R(d.baseAxes,F(p,!c||"cross",h)),c&&R(d.otherAxes,F(p,"cross",!1))}}function p(i,s,h){var c=h.model.getModel("axisPointer",r),d=c.get("show");if(d&&("auto"!==d||i||BM(c))){null==s&&(s=c.get("triggerTooltip")),c=i?function(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s={};R(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){s[t]=M(a.get(t))})),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===r){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var h=s.lineStyle=a.get("crossStyle");h&&A(l,h.textStyle)}}return t.model.getModel("axisPointer",new Mc(s,n,i))}(h,u,r,e,i,s):c;var p=c.get("snap"),f=c.get("triggerEmphasis"),g=GM(h.model),v=s||p||"category"===h.type,m=t.axesInfo[g]={key:g,axis:h,coordSys:n,axisPointerModel:c,triggerTooltip:s,triggerEmphasis:f,involveSeries:v,snap:p,useHandle:BM(c),seriesModels:[],linkGroup:null};l[g]=m,t.seriesInvolved=t.seriesInvolved||v;var y=function(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(zM(o[i+"AxisId"],n.id)||zM(o[i+"AxisIndex"],n.componentIndex)||zM(o[i+"AxisName"],n.name))return r}}(o,h);if(null!=y){var x=a[y]||(a[y]={axesInfo:{}});x.axesInfo[g]=m,x.mapper=o[y].mapper,m.linkGroup=x}}}}))}(n,t,e),n.seriesInvolved&&function(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==e.get(["axisPointer","show"],!0)&&R(t.coordSysAxesInfo[GM(n.model)],(function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}(n,t),n}function zM(t,e){return"all"===t||H(t)&&L(t,e)>=0||t===e}function VM(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[GM(t)]}function BM(t){return!!t.get(["handle","show"])}function GM(t){return t.type+"||"+t.id}var FM={},HM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.render=function(e,n,i,r){this.axisPointerClass&&function(t){var e=VM(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=BM(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},e.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,i){var r=e.getAxisPointerClass(this.axisPointerClass);if(r){var o=function(t){var e=VM(t);return e&&e.axisPointerModel}(t);o?(this._axisPointer||(this._axisPointer=new r)).render(t,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){FM[t]=e},e.getAxisPointerClass=function(t){return t&&FM[t]},e.type="axis",e}(Cg),WM=No();function UM(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var h=s.length,c=WM(t).splitAreaColors,d=ft(),p=0;if(c)for(var f=0;f<u.length;f++){var g=c.get(u[f].tickValue);if(null!=g){p=(g+(h-1)*f)%h;break}}var v=r.toGlobalCoord(u[0].coord),m=a.getAreaStyle();s=H(s)?s:[s];for(f=1;f<u.length;f++){var y=r.toGlobalCoord(u[f].coord),x=void 0,_=void 0,b=void 0,w=void 0;r.isHorizontal()?(x=v,_=l.y,b=y-x,w=l.height,v=x+b):(x=l.x,_=v,b=l.width,v=_+(w=y-_));var S=u[f-1].tickValue;null!=S&&d.set(S,p),e.add(new Bs({anid:null!=S?"area_"+S:null,shape:{x:x,y:_,width:b,height:w},style:A({fill:s[p]},m),autoBatch:!0,silent:!0})),p=(p+1)%h}WM(t).splitAreaColors=d}}}function YM(t){WM(t).splitAreaColors=null}var ZM=["axisLine","axisTickLabel","axisName"],XM=["splitArea","splitLine","minorSplitLine"],jM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return n(e,t),e.prototype.render=function(e,n,i,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new zr,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=_M(a,e),l=new LM(e,C({handleAutoShown:function(t){for(var n=a.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if(Mx(n[i].getOtherAxis(e.axis).scale))return!0;return!1}},s));R(ZM,l.add,l),this._axisGroup.add(l.getGroup()),R(XM,(function(t){e.get([t,"show"])&&qM[t](this,this._axisGroup,e,a)}),this),r&&"changeAxisOrder"===r.type&&r.isInitSort||Gh(o,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)}},e.prototype.remove=function(){YM(this)},e.type="cartesianAxis",e}(HM),qM={splitLine:function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color"),l=!1!==o.get("showMinLine"),u=!1!==o.get("showMaxLine");s=H(s)?s:[s];for(var h=i.coordinateSystem.getRect(),c=r.isHorizontal(),d=0,p=r.getTicksCoords({tickModel:o}),f=[],g=[],v=a.getLineStyle(),m=0;m<p.length;m++){var y=r.toGlobalCoord(p[m].coord);if((0!==m||l)&&(m!==p.length-1||u)){var x=p[m].tickValue;c?(f[0]=y,f[1]=h.y,g[0]=y,g[1]=h.y+h.height):(f[0]=h.x,f[1]=y,g[0]=h.x+h.width,g[1]=y);var _=d++%s.length,b=new Xu({anid:null!=x?"line_"+x:null,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:g[0],y2:g[1]},style:A({stroke:s[_]},v),silent:!0});Rh(b.shape,v.lineWidth),e.add(b)}}}},minorSplitLine:function(t,e,n,i){var r=n.axis,o=n.getModel("minorSplitLine").getModel("lineStyle"),a=i.coordinateSystem.getRect(),s=r.isHorizontal(),l=r.getMinorTicksCoords();if(l.length)for(var u=[],h=[],c=o.getLineStyle(),d=0;d<l.length;d++)for(var p=0;p<l[d].length;p++){var f=r.toGlobalCoord(l[d][p].coord);s?(u[0]=f,u[1]=a.y,h[0]=f,h[1]=a.y+a.height):(u[0]=a.x,u[1]=f,h[0]=a.x+a.width,h[1]=f);var g=new Xu({anid:"minor_line_"+l[d][p].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:h[0],y2:h[1]},style:c,silent:!0});Rh(g.shape,c.lineWidth),e.add(g)}},splitArea:function(t,e,n,i){UM(t,e,n,i)}},KM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.type="xAxis",e}(jM),$M=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=KM.type,e}return n(e,t),e.type="yAxis",e}(jM),JM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return n(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new Bs({shape:t.coordinateSystem.getRect(),style:A({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Cg),QM={offset:0};function tI(t){t.registerComponentView(JM),t.registerComponentModel(sM),t.registerCoordinateSystem("cartesian2d",IM),fM(t,"x",lM,QM),fM(t,"y",lM,QM),t.registerComponentView(KM),t.registerComponentView($M),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}function eI(t){t.eachSeriesByType("radar",(function(t){var e=t.getData(),n=[],i=t.coordinateSystem;if(i){var r=i.getIndicatorAxes();R(r,(function(t,o){e.each(e.mapDimension(r[o].dim),(function(t,e){n[e]=n[e]||[];var r=i.dataToPoint(t,o);n[e][o]=nI(r)?r:iI(i)}))})),e.each((function(t){var r=V(n[t],(function(t){return nI(t)}))||iI(i);n[t].push(r.slice()),e.setItemLayout(t,n[t])}))}}))}function nI(t){return!isNaN(t[0])&&!isNaN(t[1])}function iI(t){return[t.cx,t.cy]}function rI(t){var e=t.polar;if(e){H(e)||(e=[e]);var n=[];R(e,(function(e,i){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],H(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)})),t.polar=n}R(t.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}var oI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.render=function(t,e,n){var i=t.coordinateSystem,r=this.group,o=t.getData(),a=this._data;function s(t,e){var n=t.getItemVisual(e,"symbol")||"circle";if("none"!==n){var i=Uv(t.getItemVisual(e,"symbolSize")),r=Wv(n,-1,-1,2,2),o=t.getItemVisual(e,"symbolRotate")||0;return r.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:o*Math.PI/180||0}),r}}function l(e,n,i,r,o,a){i.removeAll();for(var l=0;l<n.length-1;l++){var u=s(r,o);u&&(u.__dimIdx=l,e[l]?(u.setPosition(e[l]),Kh[a?"initProps":"updateProps"](u,{x:n[l][0],y:n[l][1]},t,o)):u.setPosition(n[l]),i.add(u))}}function u(t){return N(t,(function(t){return[i.cx,i.cy]}))}o.diff(a).add((function(e){var n=o.getItemLayout(e);if(n){var i=new Hu,r=new Uu,a={shape:{points:n}};i.shape.points=u(n),r.shape.points=u(n),gh(i,a,t,e),gh(r,a,t,e);var s=new zr,h=new zr;s.add(r),s.add(i),s.add(h),l(r.shape.points,n,h,o,e,!0),o.setItemGraphicEl(e,s)}})).update((function(e,n){var i=a.getItemGraphicEl(n),r=i.childAt(0),s=i.childAt(1),u=i.childAt(2),h={shape:{points:o.getItemLayout(e)}};h.shape.points&&(l(r.shape.points,h.shape.points,u,o,e,!1),_h(s),_h(r),fh(r,h,t),fh(s,h,t),o.setItemGraphicEl(e,i))})).remove((function(t){r.remove(a.getItemGraphicEl(t))})).execute(),o.eachItemGraphicEl((function(t,e){var n=o.getItemModel(e),i=t.childAt(0),a=t.childAt(1),s=t.childAt(2),l=o.getItemVisual(e,"style"),u=l.fill;r.add(t),i.useStyle(A(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),jl(i,n,"lineStyle"),jl(a,n,"areaStyle");var h=n.getModel("areaStyle"),c=h.isEmpty()&&h.parentModel.isEmpty();a.ignore=c,R(["emphasis","select","blur"],(function(t){var e=n.getModel([t,"areaStyle"]),i=e.isEmpty()&&e.parentModel.isEmpty();a.ensureState(t).ignore=i&&c})),a.useStyle(A(h.getAreaStyle(),{fill:u,opacity:.7,decal:l.decal}));var d=n.getModel("emphasis"),p=d.getModel("itemStyle").getItemStyle();s.eachChild((function(t){if(t instanceof Ps){var i=t.style;t.useStyle(C({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},l))}else t.useStyle(l),t.setColor(u),t.style.strokeNoScale=!0;t.ensureState("emphasis").style=M(p);var r=o.getStore().get(o.getDimensionIndex(t.__dimIdx),e);(null==r||isNaN(r))&&(r=""),tc(t,ec(n),{labelFetcher:o.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:r,inheritColor:u,defaultOpacity:l.opacity})})),Ul(t,d.get("focus"),d.get("blurScope"),d.get("disabled"))})),this._data=o},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(kg),aI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return n(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new JS(G(this.getData,this),G(this.getRawData,this))},e.prototype.getInitialData=function(t,e){return $S(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.coordinateSystem.getIndicatorAxes(),o=this.getData().getName(t),a=""===o?this.name:o,s=dg(this,t);return ig("section",{header:a,sortBlocks:!0,blocks:N(r,(function(e){var n=i.get(i.mapDimension(e.dim),t);return ig("nameValue",{markerType:"subItem",markerColor:s,name:e.name,value:n,sortParam:n})}))})},e.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,i=e.getValues(N(n.dimensions,(function(t){return e.mapDimension(t)})),t),r=0,o=i.length;r<o;r++)if(!isNaN(i[r])){var a=n.getIndicatorAxes();return n.coordToPoint(a[r].dataToCoord(i[r]),r)}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(xg),sI=dM.value;function lI(t,e){return A({show:e},t)}var uI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),r=this.get("axisTick"),o=this.get("axisLabel"),a=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),u=this.get("axisNameGap"),h=this.get("triggerEvent"),c=N(this.get("indicator")||[],(function(c){null!=c.max&&c.max>0&&!c.min?c.min=0:null!=c.min&&c.min<0&&!c.max&&(c.max=0);var d=a;null!=c.color&&(d=A({color:c.color},a));var p=I(M(c),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:c.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:d,triggerEvent:h},!1);if(U(l)){var f=p.name;p.name=l.replace("{value}",null!=f?f:"")}else W(l)&&(p.name=l(p.name,p));var g=new Mc(p,null,this.ecModel);return P(g,I_.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=c},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:I({lineStyle:{color:"#bbb"}},sI.axisLine),axisLabel:lI(sI.axisLabel,!1),axisTick:lI(sI.axisTick,!1),splitLine:lI(sI.splitLine,!0),splitArea:lI(sI.splitArea,!0),indicator:[]},e}(Nd),hI=["axisLine","axisTickLabel","axisName"],cI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem;R(N(e.getIndicatorAxes(),(function(t){var n=t.model.get("showName")?t.name:"";return new LM(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})})),(function(t){R(hI,t.add,t),this.group.add(t.getGroup())}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),r=t.getModel("splitLine"),o=t.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),u=o.get("show"),h=a.get("color"),c=s.get("color"),d=H(h)?h:[h],p=H(c)?c:[c],f=[],g=[];if("circle"===i)for(var v=n[0].getTicksCoords(),m=e.cx,y=e.cy,x=0;x<v.length;x++){if(l)f[C(f,d,x)].push(new _u({shape:{cx:m,cy:y,r:v[x].coord}}));if(u&&x<v.length-1)g[C(g,p,x)].push(new Bu({shape:{cx:m,cy:y,r0:v[x].coord,r:v[x+1].coord}}))}else{var _,b=N(n,(function(t,n){var i=t.getTicksCoords();return _=null==_?i.length-1:Math.min(i.length-1,_),N(i,(function(t){return e.coordToPoint(t.coord,n)}))})),w=[];for(x=0;x<=_;x++){for(var S=[],M=0;M<n.length;M++)S.push(b[M][x]);if(S[0]&&S.push(S[0].slice()),l)f[C(f,d,x)].push(new Uu({shape:{points:S}}));if(u&&w)g[C(g,p,x-1)].push(new Hu({shape:{points:S.concat(w)}}));w=S.slice().reverse()}}var I=a.getLineStyle(),T=s.getAreaStyle();R(g,(function(t,e){this.group.add(Ph(t,{style:A({stroke:"none",fill:p[e%p.length]},T),silent:!0}))}),this),R(f,(function(t,e){this.group.add(Ph(t,{style:A({fill:"none",stroke:d[e%d.length]},I),silent:!0}))}),this)}function C(t,e,n){var i=n%e.length;return t[i]=t[i]||[],i}},e.type="radar",e}(Cg),dI=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.type="value",r.angle=0,r.name="",r}return n(e,t),e}(ub),pI=function(){function t(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=N(t.getIndicatorModels(),(function(t,e){var n="indicator_"+e,i=new dI(n,new Rx);return i.name=t.get("name"),i.model=t,t.axis=i,this.dimensions.push(n),i}),this),this.resize(t,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},t.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(n),this.cy-t*Math.sin(n)]},t.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var r,o=Math.atan2(-n,e),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],h=Math.abs(o-u.angle);h<a&&(r=u,s=l,a=h)}return[s,+(r&&r.coordToData(i))]},t.prototype.resize=function(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r)/2;this.cx=qr(n[0],i),this.cy=qr(n[1],r),this.startAngle=t.get("startAngle")*Math.PI/180;var a=t.get("radius");(U(a)||Z(a))&&(a=[0,a]),this.r0=qr(a[0],o),this.r=qr(a[1],o),R(this._indicatorAxes,(function(t,e){t.setExtent(this.r0,this.r);var n=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),t.angle=n}),this)},t.prototype.update=function(t,e){var n=this._indicatorAxes,i=this._model;R(n,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeriesByType("radar",(function(e,r){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===i){var o=e.getData();R(n,(function(t){t.scale.unionExtentFromData(o,o.mapDimension(t.dim))}))}}),this);var r=i.get("splitNumber"),o=new Rx;o.setExtent(0,r),o.setInterval(1),R(n,(function(t,e){MM(t.scale,t.model,o)}))},t.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.create=function(e,n){var i=[];return e.eachComponent("radar",(function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o})),e.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])})),i},t.dimensions=[],t}();function fI(t){t.registerCoordinateSystem("radar",pI),t.registerComponentModel(uI),t.registerComponentView(cI),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each((function(t){e.setItemVisual(t,"legendIcon","roundRect")})),e.setVisual("legendIcon","roundRect")}})}var gI="\0_ec_interaction_mutex";function vI(t,e){return!!mI(t)[e]}function mI(t){return t[gI]||(t[gI]={})}Iy({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},xt);var yI=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var i=G(n._mousedownHandler,n),r=G(n._mousemoveHandler,n),o=G(n._mouseupHandler,n),a=G(n._mousewheelHandler,n),s=G(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=A(M(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",i),e.on("mousemove",r),e.on("mouseup",o)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",a),e.on("pinch",s))},n.disable=function(){e.off("mousedown",i),e.off("mousemove",r),e.off("mouseup",o),e.off("mousewheel",a),e.off("pinch",s)},n}return n(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!de(t)){for(var e=t.target;e;){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&bI("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!vI(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,i=this._x,r=this._y,o=e-i,a=n-r;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&ce(t.event),_I(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:i,oldY:r,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){de(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=bI("zoomOnMouseWheel",t,this._opt),n=bI("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,r=Math.abs(i),o=t.offsetX,a=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1;xI(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(i);xI(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){vI(this._zr,"globalPan")||xI(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(Zt);function xI(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(ce(i.event),_I(t,e,n,i,r))}function _I(t,e,n,i,r){r.isAvailableBehavior=G(bI,null,n,i),t.trigger(e,r)}function bI(t,e,n){var i=n[t];return!t||i&&(!U(i)||e.event[i+"Key"])}function wI(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function SI(t,e,n,i){var r=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/t.zoom;t.zoom=a,r.x-=(n-r.x)*(u-1),r.y-=(i-r.y)*(u-1),r.scaleX*=u,r.scaleY*=u,r.dirty()}var MI,II={axisPointer:1,tooltip:1,brush:1};function TI(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!II.hasOwnProperty(i.mainType)&&r&&r.model!==n}function CI(t){U(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));var e=t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}var AI={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},DI=B(AI),LI={"alignment-baseline":"textBaseline","stop-color":"stopColor"},kI=B(LI),PI=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=CI(t);this._defsUsePending=[];var i=new zr;this._root=i;var r=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),VI(n,i,null,!0,!1);for(var l,u,h=n.firstChild;h;)this._parseNode(h,i,r,null,!1,!1),h=h.nextSibling;if(function(t,e){for(var n=0;n<e.length;n++){var i=e[n];i[0].style[i[1]]=t[i[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],o){var c=HI(o);c.length>=4&&(l={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(l&&null!=a&&null!=s&&(u=XI(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var d=i;(i=new zr).add(d),d.scaleX=d.scaleY=u.scale,d.x=u.x,d.y=u.y}return e.ignoreRootClip||null==a||null==s||i.setClipPath(new Bs({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:r}},t.prototype._parseNode=function(t,e,n,i,r,o){var a,s=t.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!r){var u=MI[s];if(u&&yt(MI,s)){a=u.call(this,t,e);var h=t.getAttribute("name");if(h){var c={name:h,namedFrom:null,svgNodeTagLower:s,el:a};n.push(c),"g"===s&&(l=c)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});e.add(a)}}var d=OI[s];if(d&&yt(OI,s)){var p=d.call(this,t),f=t.getAttribute("id");f&&(this._defs[f]=p)}}if(a&&a.isGroup)for(var g=t.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,r,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var n=new Ds({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});EI(e,n),VI(t,n,this._defsUsePending,!1,!1),function(t,e){var n=e.__selfStyle;if(n){var i=n.textBaseline,r=i;i&&"auto"!==i?"baseline"===i?r="alphabetic":"before-edge"===i||"text-before-edge"===i?r="top":"after-edge"===i||"text-after-edge"===i?r="bottom":"central"!==i&&"mathematical"!==i||(r="middle"):r="alphabetic",t.style.textBaseline=r}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}(n,e);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=void(MI={g:function(t,e){var n=new zr;return EI(e,n),VI(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new Bs;return EI(e,n),VI(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new _u;return EI(e,n),VI(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new Xu;return EI(e,n),VI(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new wu;return EI(e,n),VI(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,i=t.getAttribute("points");i&&(n=zI(i));var r=new Hu({shape:{points:n||[]},silent:!0});return EI(e,r),VI(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var n,i=t.getAttribute("points");i&&(n=zI(i));var r=new Uu({shape:{points:n||[]},silent:!0});return EI(e,r),VI(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var n=new Ps;return EI(e,n),VI(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new zr;return EI(e,a),VI(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new zr;return EI(e,a),VI(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(t,e){var n=mu(t.getAttribute("d")||"");return EI(e,n),VI(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),t}(),OI={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),r=parseInt(t.getAttribute("y2")||"0",10),o=new nh(e,n,i,r);return RI(t,o),NI(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10),r=new ih(e,n,i);return RI(t,r),NI(t,r),r}};function RI(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function NI(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};ZI(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:r,color:a})}n=n.nextSibling}}function EI(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),A(e.__inheritedStyle,t.__inheritedStyle))}function zI(t){for(var e=HI(t),n=[],i=0;i<e.length;i+=2){var r=parseFloat(e[i]),o=parseFloat(e[i+1]);n.push([r,o])}return n}function VI(t,e,n,i,r){var o=e,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===t.nodeType&&(function(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=[],r=null;n.replace(WI,(function(t,e,n){return i.push(e,n),""}));for(var o=i.length-1;o>0;o-=2){var a=i[o],s=i[o-1],l=HI(a);switch(r=r||[1,0,0,1,0,0],s){case"translate":_e(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":we(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":be(r,r,-parseFloat(l[0])*UI,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":xe(r,[1,0,Math.tan(parseFloat(l[0])*UI),1,0,0],r);break;case"skewY":xe(r,[1,Math.tan(parseFloat(l[0])*UI),0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5])}}e.setLocalTransform(r)}}(t,e),ZI(t,a,s),i||function(t,e,n){for(var i=0;i<DI.length;i++){var r=DI[i];null!=(o=t.getAttribute(r))&&(e[AI[r]]=o)}for(i=0;i<kI.length;i++){var o;r=kI[i];null!=(o=t.getAttribute(r))&&(n[LI[r]]=o)}}(t,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=GI(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=GI(o,"stroke",a.stroke,n)),R(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){null!=a[t]&&(o.style[t]=parseFloat(a[t]))})),R(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(t){null!=a[t]&&(o.style[t]=a[t])})),r&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=N(HI(a.lineDash),(function(t){return parseFloat(t)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}var BI=/^url\(\s*#(.*?)\)/;function GI(t,e,n,i){var r=n&&n.match(BI);if(!r)return"none"===n&&(n=null),n;var o=st(r[1]);i.push([t,e,o])}var FI=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function HI(t){return t.match(FI)||[]}var WI=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,UI=Math.PI/180;var YI=/([^\s:;]+)\s*:\s*([^:;]+)/g;function ZI(t,e,n){var i,r=t.getAttribute("style");if(r)for(YI.lastIndex=0;null!=(i=YI.exec(r));){var o=i[1],a=yt(AI,o)?AI[o]:null;a&&(e[a]=i[2]);var s=yt(LI,o)?LI[o]:null;s&&(n[s]=i[2])}}function XI(t,e){var n=e.width/t.width,i=e.height/t.height,r=Math.min(n,i);return{scale:r,x:-(t.x+t.width/2)*r+(e.x+e.width/2),y:-(t.y+t.height/2)*r+(e.y+e.height/2)}}var jI=ft(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),qI=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=ft(),this._freedGraphics=[],this._mapName=t,this._parsedXML=CI(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=function(t){var e=[],n=ft();return R(t,(function(t){if(null==t.namedFrom){var i=new W_(t.name,t.el);e.push(i),n.set(t.name,i)}})),{regions:e,regionsMap:n}}(t.named),n=e.regions,i=e.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n,i,r;try{at(null!=(n=(e=t&&(i=t,r={ignoreViewBox:!0,ignoreRootClip:!0},(new PI).parse(i,r))||{}).root))}catch(m){throw new Error("Invalid svg format\n"+m.message)}var o=new zr;o.add(n),o.isGeoSVGGraphicRoot=!0;var a=e.width,s=e.height,l=e.viewBoxRect,u=this._boundingRect;if(!u){var h=void 0,c=void 0,d=void 0,p=void 0;if(null!=a?(h=0,d=a):l&&(h=l.x,d=l.width),null!=s?(c=0,p=s):l&&(c=l.y,p=l.height),null==h||null==c){var f=n.getBoundingRect();null==h&&(h=f.x,d=f.width),null==c&&(c=f.y,p=f.height)}u=this._boundingRect=new Ne(h,c,d,p)}if(l){var g=XI(l,u);n.scaleX=n.scaleY=g.scale,n.x=g.x,n.y=g.y}o.setClipPath(new Bs({shape:u.plain()}));var v=[];return R(e.named,(function(t){var e;null!=jI.get(t.svgNodeTagLower)&&(v.push(t),(e=t.el).silent=!1,e.isGroup&&e.traverse((function(t){t.silent=!1})))})),{root:o,boundingRect:u,named:v}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}();for(var KI=[126,25],$I="南海诸岛",JI=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],QI=0;QI<JI.length;QI++)for(var tT=0;tT<JI[QI].length;tT++)JI[QI][tT][0]/=10.5,JI[QI][tT][1]/=-14,JI[QI][tT][0]+=KI[0],JI[QI][tT][1]+=KI[1];var eT=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];var nT=function(){function t(t,e,n){var i;this.type="geoJSON",this._parsedMap=ft(),this._mapName=t,this._specialAreas=n,this._geoJSON=U(i=e)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(i):new Function("return ("+i+");")():i}return t.prototype.load=function(t,e){e=e||"name";var n=this._parsedMap.get(e);if(!n){var i=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:i,boundingRect:iT(i)})}var r=ft(),o=[];return R(n.regions,(function(e){var n=e.name;t&&yt(t,n)&&(e=e.cloneShallow(n=t[n])),o.push(e),r.set(n,e)})),{regions:o,boundingRect:n.boundingRect||new Ne(0,0,0,0),regionsMap:r}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,i=this._geoJSON;try{e=i?Z_(i,t):[]}catch(r){throw new Error("Invalid geoJson format\n"+r.message)}return function(t,e){if("china"===t){for(var n=0;n<e.length;n++)if(e[n].name===$I)return;e.push(new H_($I,N(JI,(function(t){return{type:"polygon",exterior:t}})),KI))}}(n,e),R(e,(function(t){var e=t.name;lw(n,t),function(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:eT[0]})}(n,t);var i=this._specialAreas&&this._specialAreas[e];i&&t.transformTo(i.left,i.top,i.width,i.height)}),this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function iT(t){for(var e,n=0;n<t.length;n++){var i=t[n].getBoundingRect();(e=e||i.clone()).union(i)}return e}var rT=ft();const oT=function(t,e,n){if(e.svg){var i=new qI(t,e.svg);rT.set(t,i)}else{var r=e.geoJson||e.geoJSON;r&&!e.features?n=e.specialAreas:r=e;i=new nT(t,r,n);rT.set(t,i)}},aT=function(t){return rT.get(t)},sT=function(t){var e=rT.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},lT=function(t,e,n){var i=rT.get(t);if(i)return i.load(e,n)};var uT=["rect","circle","line","ellipse","polygon","polyline","path"],hT=ft(uT),cT=ft(uT.concat(["g"])),dT=ft(uT.concat(["g"])),pT=No();function fT(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function gT(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var vT=function(){function t(t){var e=new zr;this.uid=Tc("ec_map_draw"),this._controller=new yI(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new zr),e.add(this._svgGroup=new zr)}return t.prototype.draw=function(t,e,n,i,r){var o="geo"===t.mainType,a=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},(function(e){a||e.getHostGeoModel()!==t||(a=e.getData())}));var s=t.coordinateSystem,l=this._regionsGroup,u=this.group,h=s.getTransformInfo(),c=h.raw,d=h.roam;!l.childAt(0)||r?(u.x=d.x,u.y=d.y,u.scaleX=d.scaleX,u.scaleY=d.scaleY,u.dirty()):fh(u,d,t);var p=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,f={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:c};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,i)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=ft(),n=ft(),i=this._regionsGroup,r=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,s=t.geo.projection,l=s&&s.stream;function u(t,e){return e&&(t=e(t)),t&&[t[0]*r.scaleX+r.x,t[1]*r.scaleY+r.y]}function h(t){for(var e=[],n=!l&&s&&s.project,i=0;i<t.length;++i){var r=u(t[i],n);r&&e.push(r)}return e}function c(t){return{shape:{points:h(t)}}}i.removeAll(),R(t.geo.regions,(function(r){var h=r.name,d=e.get(h),p=n.get(h)||{},f=p.dataIdx,g=p.regionModel;if(!d){d=e.set(h,new zr),i.add(d),f=a?a.indexOfName(h):null;var v=(g=t.isGeo?o.getRegionModel(h):a?a.getItemModel(f):null).get("silent",!0);null!=v&&(d.silent=v),n.set(h,{dataIdx:f,regionModel:g})}var m=[],y=[];R(r.geometries,(function(t){if("polygon"===t.type){var e=[t.exterior].concat(t.interiors||[]);l&&(e=wT(e,l)),R(e,(function(t){m.push(new Hu(c(t)))}))}else{var n=t.points;l&&(n=wT(n,l,!0)),R(n,(function(t){y.push(new Uu(c(t)))}))}}));var x=u(r.getCenter(),s&&s.project);function _(e,n){if(e.length){var i=new th({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});d.add(i),mT(t,i,f,g),yT(t,i,h,g,o,f,x),n&&(gT(i),R(i.states,gT))}}_(m),_(y,!0)})),e.each((function(e,i){var r=n.get(i),a=r.dataIdx,s=r.regionModel;xT(t,e,i,s,o,a),_T(t,e,i,s,o),bT(t,e,i,s,o)}),this)},t.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var i=this._svgDispatcherMap=ft(),r=!1;R(this._svgGraphicRecord.named,(function(e){var n=e.name,o=t.mapOrGeoModel,a=t.data,s=e.svgNodeTagLower,l=e.el,u=a?a.indexOfName(n):null,h=o.getRegionModel(n);null!=hT.get(s)&&l instanceof Ia&&mT(t,l,u,h),l instanceof Ia&&(l.culling=!0);var c=h.get("silent",!0);(null!=c&&(l.silent=c),l.z2EmphasisLift=0,e.namedFrom)||(null!=dT.get(s)&&yT(t,l,n,h,o,u,null),xT(t,l,n,h,o,u),_T(t,l,n,h,o),null!=cT.get(s)&&("self"===bT(t,l,n,h,o)&&(r=!0),(i.get(n)||i.set(n,[])).push(l)))}),this),this._enableBlurEntireSVG(r,t)},t.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse((function(t){if(!t.isGroup){Cl(t);var e=t.ensureState("blur").style||{};null==e.opacity&&null!=n&&(e.opacity=n),t.ensureState("emphasis")}}))}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];var n=e.coordinateSystem;if("geoJSON"===n.resourceType){var i=this._regionsGroupByName;if(i){var r=i.get(t);return r?[r]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},t.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},t.prototype._useSVG=function(t){var e=aT(t);if(e&&"geoSVG"===e.type){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},t.prototype._freeSVG=function(){var t=this._svgMapName;if(null!=t){var e=aT(t);e&&"geoSVG"===e.type&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(t,e,n){var i=t.coordinateSystem,r=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=i.getZoom(),r.enable(t.get("roam")||!1);var a=t.mainType;function s(){var e={type:"geoRoam",componentType:a};return e[a+"Id"]=t.id,e}r.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,wI(o,t.dx,t.dy),n.dispatchAction(C(s(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))}),this),r.off("zoom").on("zoom",(function(t){this._mouseDownFlag=!1,SI(o,t.scale,t.originX,t.originY),n.dispatchAction(C(s(),{totalZoom:o.zoom,zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))}),this),r.setPointerChecker((function(e,r,o){return i.containPoint([r,o])&&!TI(e,n,t)}))},t.prototype.resetForLabelLayout=function(){this.group.traverse((function(t){var e=t.getTextContent();e&&(e.ignore=pT(e).ignore)}))},t.prototype._updateMapSelectHandler=function(t,e,n,i){var r=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",(function(){r._mouseDownFlag=!0})),e.on("click",(function(t){r._mouseDownFlag&&(r._mouseDownFlag=!1)})))},t}();function mT(t,e,n,i){var r=i.getModel("itemStyle"),o=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=fT(r),u=fT(o),h=fT(s),c=fT(a),d=t.data;if(d){var p=d.getItemVisual(n,"style"),f=d.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),f&&(l.decal=vm(f,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=h,e.ensureState("blur").style=c,Cl(e)}function yT(t,e,n,i,r,o,a){var s=t.data,l=t.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),h=s&&s.getItemLayout(o);if(l||u||h&&h.showLabel){var c=l?n:o,d=void 0;(!s||o>=0)&&(d=r);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;tc(e,ec(i),{labelFetcher:d,labelDataIndex:c,defaultText:n},p);var f=e.getTextContent();if(f&&(pT(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function xT(t,e,n,i,r,o){t.data?t.data.setItemGraphicEl(o,e):el(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function _T(t,e,n,i,r){t.data||Xh({el:e,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function bT(t,e,n,i,r){e.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return Ul(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&function(t,e,n){var i=el(t);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=n}(e,r,n),a}function wT(t,e,n){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),R(t,(function(t){s.lineStart();for(var e=0;e<t.length;e++)s.point(t[e][0],t[e][1]);s.lineEnd()})),!n&&s.polygonEnd(),r}var ST=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.render=function(t,e,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id)(o=this._mapDraw)&&r.add(o.group);else if(t.needsDrawMap){var o=this._mapDraw||new vT(n);r.add(o.group),o.draw(t,e,n,this,i),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,e,n){var i=t.originalData,r=this.group;i.each(i.mapDimension("value"),(function(e,n){if(!isNaN(e)){var o=i.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new _u({style:{fill:t.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:11)});if(!s){var u=t.mainSeries.getData(),h=i.getName(n),c=u.indexOfName(h),d=i.getItemModel(n),p=d.getModel("label"),f=u.getItemGraphicEl(c);tc(l,ec(d),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(c,n)}},defaultText:h}),l.disableLabelAnimation=!0,p.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(t){Il(l,t)}}r.add(l)}}}))},e.type="map",e}(kg),MT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.getCenter())}},n}return n(e,t),e.prototype.getInitialData=function(t){for(var e=$S(this,{coordDimensions:["value"],encodeDefaulter:F(Qd,this)}),n=ft(),i=[],r=0,o=e.count();r<o;r++){var a=e.getName(r);n.set(a,r)}return R(lT(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,(function(t){var r,o=t.name,a=n.get(o),s=t.properties&&t.properties.echartsStyle;null==a?(r={name:o},i.push(r)):r=e.getRawDataItem(a),s&&I(r,s)})),e.appendData(i),e},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},e.prototype.formatTooltip=function(t,e,n){for(var i=this.getData(),r=this.getRawValue(t),o=i.getName(t),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(o),h=i.mapDimension("value");isNaN(a[l].originalData.get(h,u))||s.push(a[l].name)}return ig("section",{header:s.join(", "),noHeader:!s.length,blocks:[ig("nameValue",{name:o,value:r})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",n=Wv(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(xg);function IT(t){var e={};t.eachSeriesByType("map",(function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)})),R(e,(function(t,e){for(var n,i,r,o=(n=N(t,(function(t){return t.getData()})),i=t[0].get("mapValueCalculation"),r={},R(n,(function(t){t.each(t.mapDimension("value"),(function(e,n){var i="ec-"+t.getName(n);r[i]=r[i]||[],isNaN(e)||r[i].push(e)}))})),n[0].map(n[0].mapDimension("value"),(function(t,e){for(var o="ec-"+n[0].getName(e),a=0,s=1/0,l=-1/0,u=r[o].length,h=0;h<u;h++)s=Math.min(s,r[o][h]),l=Math.max(l,r[o][h]),a+=r[o][h];return 0===u?NaN:"min"===i?s:"max"===i?l:"average"===i?a/u:a}))),a=0;a<t.length;a++)t[a].originalData=t[a].getData();for(a=0;a<t.length;a++)t[a].seriesGroup=t,t[a].needsDrawMap=0===a&&!t[a].getHostGeoModel(),t[a].setData(o.cloneShallow()),t[a].mainSeries=t[0]}))}function TT(t){var e={};t.eachSeriesByType("map",(function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!e[i]){var r={};R(n.seriesGroup,(function(e){var n=e.coordinateSystem,i=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&i.each(i.mapDimension("value"),(function(t,e){var o=i.getName(e),a=n.getRegion(o);if(a&&!isNaN(t)){var s=r[o]||0,l=n.dataToPoint(a.getCenter());r[o]=s+1,i.setItemLayout(e,{point:l,offset:s})}}))}));var o=n.getData();o.each((function(t){var e=o.getName(t),n=o.getItemLayout(t)||{};n.showLabel=!r[e],o.setItemLayout(t,n)})),e[i]=!0}}))}var CT=Gt,AT=function(t){function e(e){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new gr,n._rawTransformable=new gr,n.name=e,n}return n(e,t),e.prototype.setBoundingRect=function(t,e,n,i){return this._rect=new Ne(t,e,n,i),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,e,n,i){this._transformTo(t,e,n,i),this._viewRect=new Ne(t,e,n,i)},e.prototype._transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new Ne(t,e,n,i));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},e.prototype.setCenter=function(t,e){t&&(this._center=[qr(t[0],e.getWidth()),qr(t[1],e.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),r=this.getZoom();i=Gt([],i,t),n=Gt([],n,t),e.originX=i[0],e.originY=i[1],e.x=n[0]-i[0],e.y=n[1]-i[1],e.scaleX=e.scaleY=r,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),ye(this.transform||(this.transform=[]),e.transform||[1,0,0,1,0,0]),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],Se(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new gr;return n.transform=e.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,e,n){var i=e?this._rawTransform:this.transform;return n=n||[],i?CT(n,t,i):St(n,t)},e.prototype.pointToData=function(t){var e=this.invTransform;return e?CT([],t,e):[t[0],t[1]]},e.prototype.convertToPixel=function(t,e,n){var i=DT(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=DT(e);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(gr);function DT(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var LT={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},kT=["lng","lat"],PT=function(t){function e(e,n,i){var r=t.call(this,e)||this;r.dimensions=kT,r.type="geo",r._nameCoordMap=ft(),r.map=n;var o=i.projection,a=lT(n,i.nameMap,i.nameProperty),s=aT(n);r.resourceType=s?s.type:null;var l,u=r.regions=a.regions,h=LT[s.type];if(r._regionsMap=a.regionsMap,r.regions=a.regions,r.projection=o,o)for(var c=0;c<u.length;c++){var d=u[c].getBoundingRect(o);(l=l||d.clone()).union(d)}else l=a.boundingRect;return r.setBoundingRect(l.x,l.y,l.width,l.height),r.aspectScale=o?1:nt(i.aspectScale,h.aspectScale),r._invertLongitute=!o&&h.invertLongitute,r}return n(e,t),e.prototype._transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=this._invertLongitute;r=r.clone(),o&&(r.y=-r.y-r.height);var a=this._rawTransformable;a.transform=r.calculateTransform(new Ne(t,e,n,i));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++){var i=e[n];if("geoJSON"===i.type&&i.contain(t))return e[n]}},e.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},e.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},e.prototype.dataToPoint=function(t,e,n){if(U(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.projectedToPoint(t,e,n)}},e.prototype.pointToData=function(t){var e=this.projection;return e&&(t=e.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(e){return t.prototype.pointToData.call(this,e)},e.prototype.projectedToPoint=function(e,n,i){return t.prototype.dataToPoint.call(this,e,n,i)},e.prototype.convertToPixel=function(t,e,n){var i=OT(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=OT(e);return i===this?i.pointToData(n):null},e}(AT);function OT(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",Bo).models[0]||{}).coordinateSystem:null}function RT(t,e){var n=t.get("boundingCoords");if(null!=n){var i=n[0],r=n[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(r[0])&&isFinite(r[1])){var o=this.projection;if(o){var a=i[0],s=i[1],l=r[0],u=r[1];i=[1/0,1/0],r=[-1/0,-1/0];var h=function(t,e,n,a){for(var s=n-t,l=a-e,u=0;u<=100;u++){var h=u/100,c=o.project([t+s*h,e+l*h]);Ft(i,i,c),Ht(r,r,c)}};h(a,s,l,s),h(l,s,l,u),h(l,u,a,u),h(a,u,l,s)}this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}else;}var c,d,p,f=this.getBoundingRect(),g=t.get("layoutCenter"),v=t.get("layoutSize"),m=e.getWidth(),y=e.getHeight(),x=f.width/f.height*this.aspectScale,_=!1;if(g&&v&&(c=[qr(g[0],m),qr(g[1],y)],d=qr(v,Math.min(m,y)),isNaN(c[0])||isNaN(c[1])||isNaN(d)||(_=!0)),_)p={},x>1?(p.width=d,p.height=d/x):(p.height=d,p.width=d*x),p.y=c[1]-p.height/2,p.x=c[0]-p.width/2;else{var b=t.getBoxLayoutParams();b.aspect=x,p=Ad(b,{width:m,height:y})}this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}P(PT,AT);var NT=function(){function t(){this.dimensions=kT}return t.prototype.create=function(t,e){var n=[];function i(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,r){var o=t.get("map"),a=new PT(o+r,o,C({nameMap:t.get("nameMap")},i(t)));a.zoomLimit=t.get("scaleLimit"),n.push(a),t.coordinateSystem=a,a.model=t,a.resize=RT,a.resize(t,e)})),t.eachSeries((function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}}));var r={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();r[e]=r[e]||[],r[e].push(t)}})),R(r,(function(t,r){var o=N(t,(function(t){return t.get("nameMap")})),a=new PT(r,r,C({nameMap:T(o)},i(t[0])));a.zoomLimit=et.apply(null,N(t,(function(t){return t.get("scaleLimit")}))),n.push(a),a.resize=RT,a.resize(t[0],e),R(t,(function(t){t.coordinateSystem=a,function(t,e){R(e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}(a,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var r=(t||[]).slice(),o=ft(),a=0;a<r.length;a++)o.set(r[a].name,r[a]);return R(lT(e,n,i).regions,(function(t){var e=t.name,n=o.get(e),i=t.properties&&t.properties.echartsStyle;n||(n={name:e},r.push(n)),i&&I(n,i)})),r},t}(),ET=new NT,zT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.init=function(t,e,n){var i=aT(t.map);if(i&&"geoJSON"===i.type){var r=t.itemStyle=t.itemStyle||{};"color"in r||(r.color="#eee")}this.mergeDefaultAndTheme(t,n),Mo(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=ET.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var n={};this._optionModelMap=E(e.regions||[],(function(e,i){var r=i.name;return r&&(e.set(r,new Mc(i,t,t.ecModel)),i.selected&&(n[r]=!0)),e}),ft()),e.selectedMap||(e.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Mc(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),i="normal"===e?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),r={name:t};return W(i)?(r.status=e,i(r)):U(i)?i.replace("{a}",null!=t?t:""):void 0},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var e=this.option,n=e.selectedMode;n&&("multiple"!==n&&(e.selectedMap=null),(e.selectedMap||(e.selectedMap={}))[t]=!0)},e.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(Nd);function VT(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function BT(t,e,n,i){var r=t.getZoom(),o=t.getCenter(),a=e.zoom,s=t.projectedToPoint?t.projectedToPoint(o):t.dataToPoint(o);if(null!=e.dx&&null!=e.dy&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(VT(t,s),i)),null!=a){if(n){var l=n.min||0,u=n.max||1/0;a=Math.max(Math.min(r*a,u),l)/r}t.scaleX*=a,t.scaleY*=a;var h=(e.originX-t.x)*(a-1),c=(e.originY-t.y)*(a-1);t.x-=h,t.y-=c,t.updateTransform(),t.setCenter(VT(t,s),i),t.setZoom(a*r)}return{center:t.getCenter(),zoom:t.getZoom()}}var GT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return n(e,t),e.prototype.init=function(t,e){this._api=e},e.prototype.render=function(t,e,n,i){if(this._model=t,!t.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new vT(n));var r=this._mapDraw;r.draw(t,e,n,this,i),r.group.on("click",this._handleRegionClick,this),r.group.silent=t.get("silent"),this.group.add(r.group),this.updateSelectStatus(t,e,n)},e.prototype._handleRegionClick=function(t){var e;kv(t.target,(function(t){return null!=(e=el(t).eventData)}),!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},e.prototype.updateSelectStatus=function(t,e,n){var i=this;this._mapDraw.group.traverse((function(t){var e=el(t).eventData;if(e)return i._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0}))},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(Cg);function FT(t,e,n){oT(t,e,n)}function HT(t){function e(e,n){n.update="geo:updateSelectStatus",t.registerAction(n,(function(t,n){var i={},r=[];return n.eachComponent({mainType:"geo",query:t},(function(n){n[e](t.name),R(n.coordinateSystem.regions,(function(t){i[t.name]=n.isSelected(t.name)||!1}));var o=[];R(i,(function(t,e){i[e]&&o.push(e)})),r.push({geoIndex:n.componentIndex,name:o})})),{selected:i,allSelected:r,name:t.name}}))}t.registerCoordinateSystem("geo",ET),t.registerComponentModel(zT),t.registerComponentView(GT),t.registerImpl("registerMap",FT),t.registerImpl("getMap",(function(t){return sT(t)})),e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e,n){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},(function(e){var r=e.coordinateSystem;if("geo"===r.type){var o=BT(r,t,e.get("scaleLimit"),n);e.setCenter&&e.setCenter(o.center),e.setZoom&&e.setZoom(o.zoom),"series"===i&&R(e.seriesGroup,(function(t){t.setCenter(o.center),t.setZoom(o.zoom)}))}}))}))}function WT(t){O_(HT),t.registerChartView(ST),t.registerSeriesModel(MT),t.registerLayout(TT),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,IT),Dv("map",t.registerAction)}function UT(t,e){var n=t.isExpand?t.children:[],i=t.parentNode.children,r=t.hierNode.i?i[t.hierNode.i-1]:null;if(n.length){!function(t){var e=t.children,n=e.length,i=0,r=0;for(;--n>=0;){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=function(t,e,n,i){if(e){for(var r=t,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,u=o.hierNode.modifier,h=a.hierNode.modifier,c=s.hierNode.modifier;s=jT(s),o=qT(o),s&&o;){r=jT(r),a=qT(a),r.hierNode.ancestor=t;var d=s.hierNode.prelim+c-o.hierNode.prelim-u+i(s,o);d>0&&($T(KT(s,t,n),t,d),u+=d,l+=d),c+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,h+=a.hierNode.modifier}s&&!jT(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=c-l),o&&!qT(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-h,n=t)}return n}(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function YT(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function ZT(t){return arguments.length?t:JT}function XT(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function jT(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function qT(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function KT(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function $T(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function JT(t,e){return t.parentNode===e.parentNode?1:2}var QT=function(){return function(){this.parentPoint=[],this.childPoints=[]}}(),tC=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new QT},e.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,o=n[0],a=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,h=qr(e.forkPosition,1),c=[];c[l]=r[l],c[u]=r[u]+(a[u]-r[u])*h,t.moveTo(r[0],r[1]),t.lineTo(c[0],c[1]),t.moveTo(o[0],o[1]),c[l]=o[l],t.lineTo(c[0],c[1]),c[l]=a[l],t.lineTo(c[0],c[1]),t.lineTo(a[0],a[1]);for(var d=1;d<i-1;d++){var p=n[d];t.moveTo(p[0],p[1]),c[l]=p[l],t.lineTo(c[0],c[1])}},e}(Cs),eC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new zr,n}return n(e,t),e.prototype.init=function(t,e){this._controller=new yI(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,e,n){var i=t.getData(),r=t.layoutInfo,o=this._mainGroup;"radial"===t.get("layout")?(o.x=r.x+r.width/2,o.y=r.y+r.height/2):(o.x=r.x,o.y=r.y),this._updateViewCoordSys(t,n),this._updateController(t,e,n);var a=this._data;i.diff(a).add((function(e){nC(i,e)&&iC(i,e,null,o,t)})).update((function(e,n){var r=a.getItemGraphicEl(n);nC(i,e)?iC(i,e,r,o,t):r&&aC(a,n,r,o,t)})).remove((function(e){var n=a.getItemGraphicEl(e);n&&aC(a,e,n,o,t)})).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===t.get("expandAndCollapse")&&i.eachItemGraphicEl((function(e,i){e.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:i})}))})),this._data=i},e.prototype._updateViewCoordSys=function(t,e){var n=t.getData(),i=[];n.each((function(t){var e=n.getItemLayout(t);!e||isNaN(e.x)||isNaN(e.y)||i.push([+e.x,+e.y])}));var r=[],o=[];Ea(i,r,o);var a=this._min,s=this._max;o[0]-r[0]==0&&(r[0]=a?a[0]:r[0]-1,o[0]=s?s[0]:o[0]+1),o[1]-r[1]==0&&(r[1]=a?a[1]:r[1]-1,o[1]=s?s[1]:o[1]+1);var l=t.coordinateSystem=new AT;l.zoomLimit=t.get("scaleLimit"),l.setBoundingRect(r[0],r[1],o[0]-r[0],o[1]-r[1]),l.setCenter(t.get("center"),e),l.setZoom(t.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=r,this._max=o},e.prototype._updateController=function(t,e,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(e,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!TI(e,n,t)})),r.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(e){wI(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){SI(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(t),n.updateLabelLayout()}))},e.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl((function(t,e){t.setSymbolScale(n)}))},e.prototype._getNodeGlobalScale=function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,i=e.scaleX||1;return((e.getZoom()-1)*n+1)/i},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(kg);function nC(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function iC(t,e,n,i,r){var o=!n,a=t.tree.getNodeByDataIndex(e),s=a.getModel(),l=a.getVisual("style").fill,u=!1===a.isExpand&&0!==a.children.length?l:"#fff",h=t.tree.root,c=a.parentNode===h?a:a.parentNode||a,d=t.getItemGraphicEl(c.dataIndex),p=c.getLayout(),f=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:p,g=a.getLayout();o?((n=new Dw(t,e,null,{symbolInnerColor:u,useNameLabel:!0})).x=f.x,n.y=f.y):n.updateData(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,i.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,fh(n,{x:g.x,y:g.y},r);var v=n.getSymbolPath();if("radial"===r.get("layout")){var m=h.children[0],y=m.getLayout(),x=m.children.length,_=void 0,b=void 0;if(g.x===y.x&&!0===a.isExpand&&m.children.length){var w={x:(m.children[0].getLayout().x+m.children[x-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.children[x-1].getLayout().y)/2};(_=Math.atan2(w.y-y.y,w.x-y.x))<0&&(_=2*Math.PI+_),(b=w.x<y.x)&&(_-=Math.PI)}else(_=Math.atan2(g.y-y.y,g.x-y.x))<0&&(_=2*Math.PI+_),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(b=g.x<y.x)&&(_-=Math.PI):(b=g.x>y.x)||(_-=Math.PI);var S=b?"left":"right",M=s.getModel("label"),I=M.get("rotate"),T=I*(Math.PI/180),C=v.getTextContent();C&&(v.setTextConfig({position:M.get("position")||S,rotation:null==I?-_:T,origin:"center"}),C.setStyle("verticalAlign","middle"))}var D=s.get(["emphasis","focus"]),L="relative"===D?gt(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===D?a.getAncestorsIndices():"descendant"===D?a.getDescendantIndices():null;L&&(el(n).focus=L),function(t,e,n,i,r,o,a,s){var l=e.getModel(),u=t.get("edgeShape"),h=t.get("layout"),c=t.getOrient(),d=t.get(["lineStyle","curveness"]),p=t.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&(g||(g=i.__edge=new $u({shape:sC(h,c,d,r,r)})),fh(g,{shape:sC(h,c,d,o,a)},t));else if("polyline"===u&&"orthogonal"===h&&e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var v=e.children,m=[],y=0;y<v.length;y++){var x=v[y].getLayout();m.push([x.x,x.y])}g||(g=i.__edge=new tC({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:c,forkPosition:p}})),fh(g,{shape:{parentPoint:[a.x,a.y],childPoints:m}},t)}g&&("polyline"!==u||e.isExpand)&&(g.useStyle(A({strokeNoScale:!0,fill:null},f)),jl(g,l,"lineStyle"),Cl(g),s.add(g))}(r,a,h,n,f,p,g,i),n.__edge&&(n.onHoverStateChange=function(e){if("blur"!==e){var i=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex);i&&1===i.hoverState||Il(n.__edge,e)}})}function rC(t,e,n,i,r){var o=oC(e.tree.root,t),a=o.source,s=o.sourceLayout,l=e.getItemGraphicEl(t.dataIndex);if(l){var u=e.getItemGraphicEl(a.dataIndex).__edge,h=l.__edge||(!1===a.isExpand||1===a.children.length?u:void 0),c=i.get("edgeShape"),d=i.get("layout"),p=i.get("orient"),f=i.get(["lineStyle","curveness"]);h&&("curve"===c?mh(h,{shape:sC(d,p,f,s,s),style:{opacity:0}},i,{cb:function(){n.remove(h)},removeOpt:r}):"polyline"===c&&"orthogonal"===i.get("layout")&&mh(h,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},i,{cb:function(){n.remove(h)},removeOpt:r}))}}function oC(t,e){for(var n,i=e.parentNode===t?e:e.parentNode||e;null==(n=i.getLayout());)i=i.parentNode===t?i:i.parentNode||i;return{source:i,sourceLayout:n}}function aC(t,e,n,i,r){var o=t.tree.getNodeByDataIndex(e),a=oC(t.tree.root,o).sourceLayout,s={duration:r.get("animationDurationUpdate"),easing:r.get("animationEasingUpdate")};mh(n,{x:a.x+1,y:a.y+1},r,{cb:function(){i.remove(n),t.setItemGraphicEl(e,null)},removeOpt:s}),n.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:s}),o.children.forEach((function(e){rC(e,t,i,r,s)})),rC(o,t,i,r,s)}function sC(t,e,n,i,r){var o,a,s,l,u,h,c,d;if("radial"===t){u=i.rawX,c=i.rawY,h=r.rawX,d=r.rawY;var p=XT(u,c),f=XT(u,c+(d-c)*n),g=XT(h,d+(c-d)*n),v=XT(h,d);return{x1:p.x||0,y1:p.y||0,x2:v.x||0,y2:v.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}}return u=i.x,c=i.y,h=r.x,d=r.y,"LR"!==e&&"RL"!==e||(o=u+(h-u)*n,a=c,s=h+(u-h)*n,l=d),"TB"!==e&&"BT"!==e||(o=u,a=c+(d-c)*n,s=h,l=d+(c-d)*n),{x1:u,y1:c,x2:h,y2:d,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}var lC=function(){function t(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(t,e,n){W(t)&&(n=e,e=t,t=null),U(t=t||{})&&(t={order:t});var i,r=t.order||"preorder",o=this[t.attr||"children"];"preorder"===r&&(i=e.call(n,this));for(var a=0;!i&&a<o.length;a++)o[a].eachNode(t,e,n);"postorder"===r&&e.call(n,this)},t.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>e&&(e=i.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].getNodeById(t);if(r)return r}},t.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].contains(t);if(r)return r}},t.prototype.getAncestors=function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},t.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},t.prototype.getDescendantIndices=function(){var t=[];return this.eachNode((function(e){t.push(e.dataIndex)})),t},t.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},t.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},t.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},t.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},t}(),uC=function(){function t(t){this.type="tree",this._nodes=[],this.hostModel=t}return t.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},t.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},t.prototype.getNodeById=function(t){return this.root.getNodeById(t)},t.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n<i;n++)e[n].dataIndex=-1;for(n=0,i=t.count();n<i;n++)e[t.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,i){var r=new t(n),o=[],a=1;!function t(e,n){var i=e.value;a=Math.max(a,H(i)?i.length:1),o.push(e);var s=new lC(ko(e.name,""),r);n?function(t,e){var n=e.children;if(t.parentNode===e)return;n.push(t),t.parentNode=e}(s,n):r.root=s,r._nodes.push(s);var l=e.children;if(l)for(var u=0;u<l.length;u++)t(l[u],s)}(e),r.root.updateDepthAndHeight(0);var s=hx(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,l=new lx(s,n);return l.initData(o),i&&i(l),mw({mainData:l,struct:r,structAttr:"tree"}),r.update(),r},t}();function hC(t,e,n){if(t&&L(e,t.type)>=0){var i=n.getData().tree.root,r=t.targetNode;if(U(r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function cC(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function dC(t,e){return L(cC(t),e)>=0}function pC(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}var fC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return n(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i=new Mc(n,this,this.ecModel),r=uC.createTree(e,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=i),t}))}));var o=0;r.eachNode("preorder",(function(t){t.depth>o&&(o=t.depth)}));var a=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:o;return r.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a})),r.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,n){for(var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(t),a=o.getValue(),s=o.name;o&&o!==r;)s=o.parentNode.name+"."+s,o=o.parentNode;return ig("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=pC(i,this),n.collapsed=!i.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(xg);function gC(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function vC(t,e){t.eachSeriesByType("tree",(function(t){!function(t,e){var n=function(t,e){return Ad(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=n;var i=t.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=ZT((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(r=n.width,o=n.height,a=ZT());var s=t.getData().tree.root,l=s.children[0];if(l){!function(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,i,r=[e];n=r.pop();)if(i=n.children,n.isExpand&&i.length)for(var o=i.length-1;o>=0;o--){var a=i[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(a)}}(s),function(t,e,n){for(var i,r=[t],o=[];i=r.pop();)if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s<a.length;s++)r.push(a[s])}for(;i=o.pop();)e(i,n)}(l,UT,a),s.hierNode.modifier=-l.hierNode.prelim,gC(l,YT);var u=l,h=l,c=l;gC(l,(function(t){var e=t.getLayout().x;e<u.getLayout().x&&(u=t),e>h.getLayout().x&&(h=t),t.depth>c.depth&&(c=t)}));var d=u===h?1:a(u,h)/2,p=d-u.getLayout().x,f=0,g=0,v=0,m=0;if("radial"===i)f=r/(h.getLayout().x+d+p),g=o/(c.depth-1||1),gC(l,(function(t){v=(t.getLayout().x+p)*f,m=(t.depth-1)*g;var e=XT(v,m);t.setLayout({x:e.x,y:e.y,rawX:v,rawY:m},!0)}));else{var y=t.getOrient();"RL"===y||"LR"===y?(g=o/(h.getLayout().x+d+p),f=r/(c.depth-1||1),gC(l,(function(t){m=(t.getLayout().x+p)*g,v="LR"===y?(t.depth-1)*f:r-(t.depth-1)*f,t.setLayout({x:v,y:m},!0)}))):"TB"!==y&&"BT"!==y||(f=r/(h.getLayout().x+d+p),g=o/(c.depth-1||1),gC(l,(function(t){v=(t.getLayout().x+p)*f,m="TB"===y?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:v,y:m},!0)})))}}}(t,e)}))}function mC(t){t.eachSeriesByType("tree",(function(t){var e=t.getData();e.tree.eachNode((function(t){var n=t.getModel().getModel("itemStyle").getItemStyle();C(e.ensureUniqueItemVisual(t.dataIndex,"style"),n)}))}))}var yC=["treemapZoomToNode","treemapRender","treemapMove"];function xC(t){var e=t.getData().tree,n={};e.eachNode((function(e){for(var i=e;i&&i.depth>1;)i=i.parentNode;var r=hp(t.ecModel,i.name||i.dataIndex+"",n);e.setVisual("decal",r)}))}var _C=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return n(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};bC(n);var i=t.levels||[],r=this.designatedVisualItemStyle={},o=new Mc({itemStyle:r},this,e);i=t.levels=function(t,e){var n,i,r=So(e.get("color")),o=So(e.get(["aria","decal","decals"]));if(!r)return;t=t||[],R(t,(function(t){var e=new Mc(t),r=e.get("color"),o=e.get("decal");(e.get(["itemStyle","color"])||r&&"none"!==r)&&(n=!0),(e.get(["itemStyle","decal"])||o&&"none"!==o)&&(i=!0)}));var a=t[0]||(t[0]={});n||(a.color=r.slice());!i&&o&&(a.decal=o.slice());return t}(i,e);var a=N(i||[],(function(t){return new Mc(t,o,e)}),this),s=uC.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=s.getNodeByDataIndex(e),i=n?a[n.depth]:null;return t.parentModel=i||o,t}))}));return s.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t);return ig("nameValue",{name:i.getName(t),value:r})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=pC(i,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},C(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=ft(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){xC(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(xg);function bC(t){var e=0;R(t.children,(function(t){bC(t);var n=t.value;H(n)&&(n=n[0]),e+=n}));var n=t.value;H(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),H(t.value)?t.value[0]=n:t.value=n}var wC=function(){function t(t){this.group=new zr,t.add(this.group)}return t.prototype.render=function(t,e,n,i){var r=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=r.getModel("emphasis"),l=a.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),h={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,h,l),this._renderContent(t,h,a,s,l,u,i),Dd(o,h.pos,h.box)}},t.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var r=ko(i.getModel().get("name"),""),o=n.getTextRect(r),a=Math.max(o.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:i,text:r,width:a})}},t.prototype._renderContent=function(t,e,n,i,r,o,a){for(var s,l,u,h,c,d,p,f,g,v=0,m=e.emptyItemWidth,y=t.get(["breadcrumb","height"]),x=(s=e.pos,l=e.box,h=l.width,c=l.height,d=qr(s.left,h),p=qr(s.top,c),f=qr(s.right,h),g=qr(s.bottom,c),(isNaN(d)||isNaN(parseFloat(s.left)))&&(d=0),(isNaN(f)||isNaN(parseFloat(s.right)))&&(f=h),(isNaN(p)||isNaN(parseFloat(s.top)))&&(p=0),(isNaN(g)||isNaN(parseFloat(s.bottom)))&&(g=c),u=fd(u||0),{width:Math.max(f-d-u[1]-u[3],0),height:Math.max(g-p-u[0]-u[2],0)}),_=e.totalWidth,b=e.renderList,w=i.getModel("itemStyle").getItemStyle(),S=b.length-1;S>=0;S--){var M=b[S],I=M.node,T=M.width,C=M.text;_>x.width&&(_-=T-m,T=m,C=null);var D=new Hu({shape:{points:SC(v,0,T,y,S===b.length-1,0===S)},style:A(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Hs({style:nc(r,{text:C})}),textConfig:{position:"inside"},z2:1e5,onclick:F(a,I)});D.disableLabelAnimation=!0,D.getTextContent().ensureState("emphasis").style=nc(o,{text:C}),D.ensureState("emphasis").style=w,Ul(D,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(D),MC(D,t,I),v+=T+8}},t.prototype.remove=function(){this.group.removeAll()},t}();function SC(t,e,n,i,r,o){var a=[[r?t:t-5,e],[t+n,e],[t+n,e+i],[r?t:t-5,e+i]];return!o&&a.splice(2,0,[t+n+5,e+i/2]),!r&&a.push([t,e+i/2]),a}function MC(t,e,n){el(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&pC(n,e)}}var IC=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,i,r){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:r}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){--e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,r=this._storage.length;i<r;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},t}();var TC=zr,CC=Bs,AC="label",DC="upperLabel",LC=ta([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),kC=function(t){var e=LC(t);return e.stroke=e.fill=e.lineWidth=null,e},PC=No(),OC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage={nodeGroup:[],background:[],content:[]},n}return n(e,t),e.prototype.render=function(t,e,n,i){if(!(L(e.findComponents({mainType:"series",subType:"treemap",query:i}),t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var r=hC(i,["treemapZoomToNode","treemapRootToNode"],t),o=i&&i.type,a=t.layoutInfo,s=!this._oldTree,l=this._storage,u="treemapRootToNode"===o&&r&&l?{rootNodeGroup:l.nodeGroup[r.node.getRawIndex()],direction:i.direction}:null,h=this._giveContainerGroup(a),c=t.get("animation"),d=this._doRender(h,t,u);!c||s||o&&"treemapZoomToNode"!==o&&"treemapRootToNode"!==o?d.renderFinally():this._doAnimation(h,d,t,u),this._resetController(n),this._renderBreadcrumb(t,n,r)}},e.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new TC,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},e.prototype._doRender=function(t,e,n){var i=e.getData().tree,r=this._oldTree,o={nodeGroup:[],background:[],content:[]},a={nodeGroup:[],background:[],content:[]},s=this._storage,l=[];function u(t,i,r,u){return function(t,e,n,i,r,o,a,s,l,u){if(!a)return;var h=a.getLayout(),c=t.getData(),d=a.getModel();if(c.setItemGraphicEl(a.dataIndex,null),!h||!h.isInView)return;var p=h.width,f=h.height,g=h.borderWidth,v=h.invisible,m=a.getRawIndex(),y=s&&s.getRawIndex(),x=a.viewChildren,_=h.upperHeight,b=x&&x.length,w=d.getModel("itemStyle"),S=d.getModel(["emphasis","itemStyle"]),M=d.getModel(["blur","itemStyle"]),I=d.getModel(["select","itemStyle"]),T=w.get("borderRadius")||0,A=H("nodeGroup",TC);if(!A)return;if(l.add(A),A.x=h.x||0,A.y=h.y||0,A.markRedraw(),PC(A).nodeWidth=p,PC(A).nodeHeight=f,h.isAboveViewRoot)return A;var D=H("background",CC,u,20);D&&z(A,D,b&&h.upperLabelHeight);var L=d.getModel("emphasis"),k=L.get("focus"),P=L.get("blurScope"),O=L.get("disabled"),R="ancestor"===k?a.getAncestorsIndices():"descendant"===k?a.getDescendantIndices():k;if(b)Kl(A)&&ql(A,!1),D&&(ql(D,!O),c.setItemGraphicEl(a.dataIndex,D),Yl(D,R,P));else{var N=H("content",CC,u,30);N&&V(A,N),D.disableMorphing=!0,D&&Kl(D)&&ql(D,!1),ql(A,!O),c.setItemGraphicEl(a.dataIndex,A);var E=d.getShallow("cursor");E&&N.attr("cursor",E),Yl(A,R,P)}return A;function z(e,n,i){var r=el(n);if(r.dataIndex=a.dataIndex,r.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:p,height:f,r:T}),v)B(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=kC(w);l.fill=s;var u=LC(S);u.fill=S.get("borderColor");var h=LC(M);h.fill=M.get("borderColor");var c=LC(I);if(c.fill=I.get("borderColor"),i){var d=p-2*g;G(n,s,o.opacity,{x:g,y:0,width:d,height:_})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=h,n.ensureState("select").style=c,Cl(n)}e.add(n)}function V(e,n){var i=el(n);i.dataIndex=a.dataIndex,i.seriesIndex=t.seriesIndex;var r=Math.max(p-2*g,0),o=Math.max(f-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:r,height:o,r:T}),v)B(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=kC(w);u.fill=l,u.decal=s.decal;var h=LC(S),c=LC(M),d=LC(I);G(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=h,n.ensureState("blur").style=c,n.ensureState("select").style=d,Cl(n)}e.add(n)}function B(t){!t.invisible&&o.push(t)}function G(e,n,i,r){var o=d.getModel(r?DC:AC),s=ko(d.get("name"),null),l=o.getShallow("show");tc(e,ec(d,r?DC:AC),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:t,labelDataIndex:a.dataIndex});var u=e.getTextContent();if(u){var c=u.style,p=ot(c.padding||0);r&&(e.setTextConfig({layoutRect:r}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var t=Math.max((r?r.width:e.shape.width)-p[1]-p[3],0),n=Math.max((r?r.height:e.shape.height)-p[0]-p[2],0);c.width===t&&c.height===n||u.setStyle({width:t,height:n})},c.truncateMinChar=2,c.lineOverflow="truncate",F(c,r,h);var f=u.getState("emphasis");F(f?f.style:null,r,h)}}function F(e,n,i){var r=e?e.text:null;if(!n&&i.isLeafRoot&&null!=r){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+r:r}}function H(t,i,o,a){var s=null!=y&&n[t][y],l=r[t];return s?(n[t][y]=null,W(l,s)):v||((s=new i)instanceof Ia&&(s.z2=function(t,e){return 100*t+e}(o,a)),U(l,s)),e[t][m]=s}function W(t,e){var n=t[m]={};e instanceof TC?(n.oldX=e.x,n.oldY=e.y):n.oldShape=C({},e.shape)}function U(t,e){var n=t[m]={},o=a.parentNode,s=e instanceof zr;if(o&&(!i||"drillDown"===i.direction)){var l=0,u=0,h=r.background[o.getRawIndex()];!i&&h&&h.oldShape&&(l=h.oldShape.width,u=h.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}}(e,a,s,n,o,l,t,i,r,u)}!function t(e,n,i,r,o){r?(n=e,R(e,(function(t,e){!t.isRemoved()&&s(e,e)}))):new Vy(n,e,a,a).add(s).update(s).remove(F(s,null)).execute();function a(t){return t.getId()}function s(a,s){var l=null!=a?e[a]:null,h=null!=s?n[s]:null,c=u(l,h,i,o);c&&t(l&&l.viewChildren||[],h&&h.viewChildren||[],c,r,o+1)}}(i.root?[i.root]:[],r&&r.root?[r.root]:[],t,i===r||!r,0);var h,c,d=(c={nodeGroup:[],background:[],content:[]},(h=s)&&R(h,(function(t,e){var n=c[e];R(t,(function(t){t&&(n.push(t),PC(t).willDelete=!0)}))})),c);if(this._oldTree=i,this._storage=a,this._controllerHost){var p=this.seriesModel.layoutInfo,f=i.root.getLayout();f.width===p.width&&f.height===p.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:o,willDeleteEls:d,renderFinally:function(){R(d,(function(t){R(t,(function(t){t.parent&&t.parent.remove(t)}))})),R(l,(function(t){t.invisible=!0,t.dirty()}))}}},e.prototype._doAnimation=function(t,e,n,i){var r=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=(W(r)?0:r)||0,s=(W(o)?null:o)||"cubicOut",l=new IC;R(e.willDeleteEls,(function(t,e){R(t,(function(t,n){if(!t.invisible){var r,o=t.parent,u=PC(o);if(i&&"drillDown"===i.direction)r=o===i.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var h=0,c=0;u.willDelete||(h=u.nodeWidth/2,c=u.nodeHeight/2),r="nodeGroup"===e?{x:h,y:c,style:{opacity:0}}:{shape:{x:h,y:c,width:0,height:0},style:{opacity:0}}}r&&l.add(t,r,a,0,s)}}))})),R(this._storage,(function(t,n){R(t,(function(t,i){var r=e.lastsForAnimation[n][i],o={};r&&(t instanceof zr?null!=r.oldX&&(o.x=t.x,o.y=t.y,t.x=r.oldX,t.y=r.oldY):(r.oldShape&&(o.shape=C({},t.shape),t.setShape(r.oldShape)),r.fadein?(t.setStyle("opacity",0),o.style={opacity:1}):1!==t.style.opacity&&(o.style={opacity:1})),l.add(t,o,a,0,s))}))}),this),this._state="animating",l.finished(G((function(){this._state="ready",e.renderFinally()}),this)).start()},e.prototype._resetController=function(t){var e=this._controller,n=this._controllerHost;n||(this._controllerHost={target:this.group},n=this._controllerHost),e||((e=this._controller=new yI(t.getZr())).enable(this.seriesModel.get("roam")),n.zoomLimit=this.seriesModel.get("scaleLimit"),n.zoom=this.seriesModel.get("zoom"),e.on("pan",G(this._onPan,this)),e.on("zoom",G(this._onZoom,this)));var i=new Ne(0,0,t.getWidth(),t.getHeight());e.setPointerChecker((function(t,e,n){return i.contain(e,n)}))},e.prototype._clearController=function(){var t=this._controller;this._controllerHost=null,t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if("animating"!==this._state&&(Math.abs(t.dx)>3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY,i=t.scale;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var o=r.getLayout();if(!o)return;var a,s=new Ne(o.x,o.y,o.width,o.height),l=this._controllerHost;a=l.zoomLimit;var u=l.zoom=l.zoom||1;if(u*=i,a){var h=a.min||0,c=a.max||1/0;u=Math.max(Math.min(c,u),h)}var d=u/l.zoom;l.zoom=u;var p=this.seriesModel.layoutInfo,f=[1,0,0,1,0,0];_e(f,f,[-(e-=p.x),-(n-=p.y)]),we(f,f,[d,d]),_e(f,f,[e,n]),s.applyTransform(f),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var i=e.findTarget(t.offsetX,t.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)e._rootToNode(i);else if("zoomToNode"===n)e._zoomToNode(i);else if("link"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&wd(a,s)}}}}}),this)},e.prototype._renderBreadcrumb=function(t,e,n){var i=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new wC(this.group))).render(t,e,n.node,(function(e){"animating"!==i._state&&(dC(t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}}),this),n},e.type="treemap",e}(kg);var RC=R,NC=X,EC=-1,zC=function(){function t(e){var n=e.mappingMethod,i=e.type,r=this.option=M(e);this.type=i,this.mappingMethod=n,this._normalizeData=XC[n];var o=t.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(VC(r),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,R(e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}(r)):"category"===n?r.categories?function(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(RC(e,(function(t,e){n[t]=e})),!H(i)){var r=[];X(i)?RC(i,(function(t,e){var i=n[e];r[null!=i?i:EC]=t})):r[-1]=i,i=ZC(t,r)}for(var o=e.length-1;o>=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}(r):VC(r,!0):(at("linear"!==n||r.dataExtent),VC(r))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return G(this._normalizeData,this)},t.listVisualTypes=function(){return B(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){X(t)?R(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var r,o=H(e)?[]:X(e)?{}:(r=!0,null);return t.eachVisual(e,(function(t,e){var a=n.call(i,t,e);r?o=a:o[e]=a})),o},t.retrieveVisuals=function(e){var n,i={};return e&&RC(t.visualHandlers,(function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)})),n?i:null},t.prepareVisualTypes=function(t){if(H(t))t=t.slice();else{if(!NC(t))return[];var e=[];RC(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var i,r=1/0,o=0,a=e.length;o<a;o++){var s=e[o].value;if(null!=s){if(s===t||U(s)&&s===t+"")return o;n&&c(s,o)}}for(o=0,a=e.length;o<a;o++){var l=e[o],u=l.interval,h=l.close;if(u){if(u[0]===-1/0){if(jC(h[1],t,u[1]))return o}else if(u[1]===1/0){if(jC(h[0],u[0],t))return o}else if(jC(h[0],u[0],t)&&jC(h[1],t,u[1]))return o;n&&c(u[0],o),n&&c(u[1],o)}}if(n)return t===1/0?e.length-1:t===-1/0?0:i;function c(e,n){var o=Math.abs(e-t);o<r&&(r=o,i=n)}},t.visualHandlers={color:{applyVisual:FC("color"),getColorMapper:function(){var t=this.option;return G("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),HC.call(this,t)}:function(e,n,i){var r=!!i;return!n&&(e=this._normalizeData(e)),i=Kn(e,t.parsedVisual,i),r?i:ni(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return ni(Kn(t,this.option.parsedVisual),"rgba")},category:HC,piecewise:function(t,e){var n=YC.call(this,e);return null==n&&(n=ni(Kn(t,this.option.parsedVisual),"rgba")),n},fixed:WC}},colorHue:BC((function(t,e){return ti(t,e)})),colorSaturation:BC((function(t,e){return ti(t,null,e)})),colorLightness:BC((function(t,e){return ti(t,null,null,e)})),colorAlpha:BC((function(t,e){return ei(t,e)})),decal:{applyVisual:FC("decal"),_normalizedToVisual:{linear:null,category:HC,piecewise:null,fixed:null}},opacity:{applyVisual:FC("opacity"),_normalizedToVisual:UC([0,1])},liftZ:{applyVisual:FC("liftZ"),_normalizedToVisual:{linear:WC,category:WC,piecewise:WC,fixed:WC}},symbol:{applyVisual:function(t,e,n){n("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:GC,category:HC,piecewise:function(t,e){var n=YC.call(this,e);return null==n&&(n=GC.call(this,t)),n},fixed:WC}},symbolSize:{applyVisual:FC("symbolSize"),_normalizedToVisual:UC([0,1])}},t}();function VC(t,e){var n=t.visual,i=[];X(n)?RC(n,(function(t){i.push(t)})):null!=n&&i.push(n);e||1!==i.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(i[1]=i[0]),ZC(t,i)}function BC(t){return{applyVisual:function(e,n,i){var r=this.mapValueToVisual(e);i("color",t(n("color"),r))},_normalizedToVisual:UC([0,1])}}function GC(t){var e=this.option.visual;return e[Math.round(jr(t,[0,1],[0,e.length-1],!0))]||{}}function FC(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function HC(t){var e=this.option.visual;return e[this.option.loop&&t!==EC?t%e.length:t]}function WC(){return this.option.visual[0]}function UC(t){return{linear:function(e){return jr(e,t,this.option.visual,!0)},category:HC,piecewise:function(e,n){var i=YC.call(this,n);return null==i&&(i=jr(e,t,this.option.visual,!0)),i},fixed:WC}}function YC(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=n[zC.findPieceIndex(t,n)];if(i&&i.visual)return i.visual[this.type]}}function ZC(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=N(e,(function(t){var e=Xn(t);return e||[0,0,0,1]}))),e}var XC={linear:function(t){return jr(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=zC.findPieceIndex(t,e,!0);if(null!=n)return jr(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?EC:e},fixed:xt};function jC(t,e,n){return t?e<=n:e<n}var qC=No();const KC={seriesType:"treemap",reset:function(t){var e=t.getData().tree.root;e.isRemoved()||$C(e,{},t.getViewRoot().getAncestors(),t)}};function $C(t,e,n,i){var r=t.getModel(),o=t.getLayout(),a=t.hostTree.data;if(o&&!o.invisible&&o.isInView){var s,l=r.getModel("itemStyle"),u=function(t,e,n){var i=C({},e),r=n.designatedVisualItemStyle;return R(["color","colorAlpha","colorSaturation"],(function(n){r[n]=e[n];var o=t.get(n);r[n]=null,null!=o&&(i[n]=o)})),i}(l,e,i),h=a.ensureUniqueItemVisual(t.dataIndex,"style"),c=l.get("borderColor"),d=l.get("borderColorSaturation");null!=d&&(c=function(t,e){return null!=e?ti(e,null,null,t):null}(d,s=JC(u))),h.stroke=c;var p=t.viewChildren;if(p&&p.length){var f=function(t,e,n,i,r,o){if(!o||!o.length)return;var a=tA(e,"color")||null!=r.color&&"none"!==r.color&&(tA(e,"colorAlpha")||tA(e,"colorSaturation"));if(!a)return;var s=e.get("visualMin"),l=e.get("visualMax"),u=n.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var h=e.get("colorMappingBy"),c={type:a.name,dataExtent:u,visual:a.range};"color"!==c.type||"index"!==h&&"id"!==h?c.mappingMethod="linear":(c.mappingMethod="category",c.loop=!0);var d=new zC(c);return qC(d).drColorMappingBy=h,d}(0,r,o,0,u,p);R(p,(function(t,e){if(t.depth>=n.length||t===n[t.depth]){var o=function(t,e,n,i,r,o){var a=C({},e);if(r){var s=r.type,l="color"===s&&qC(r).drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=r.mapValueToVisual(u)}return a}(r,u,t,e,f,i);$C(t,o,n,i)}}))}else s=JC(u),h.fill=s}}function JC(t){var e=QC(t,"color");if(e){var n=QC(t,"colorAlpha"),i=QC(t,"colorSaturation");return i&&(e=ti(e,null,null,i)),n&&(e=ei(e,n)),e}}function QC(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function tA(t,e){var n=t.get(e);return H(n)&&n.length?{name:e,range:n}:null}var eA=Math.max,nA=Math.min,iA=et,rA=R,oA=["itemStyle","borderWidth"],aA=["itemStyle","gapWidth"],sA=["upperLabel","show"],lA=["upperLabel","height"];const uA={seriesType:"treemap",reset:function(t,e,n,i){var r=n.getWidth(),o=n.getHeight(),a=t.option,s=Ad(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=qr(iA(s.width,l[0]),r),h=qr(iA(s.height,l[1]),o),c=i&&i.type,d=hC(i,["treemapZoomToNode","treemapRootToNode"],t),p="treemapRender"===c||"treemapMove"===c?i.rootRect:null,f=t.getViewRoot(),g=cC(f);if("treemapMove"!==c){var v="treemapZoomToNode"===c?function(t,e,n,i,r){var o,a=(e||{}).node,s=[i,r];if(!a||a===n)return s;var l=i*r,u=l*t.option.zoomToNodeRatio;for(;o=a.parentNode;){for(var h=0,c=o.children,d=0,p=c.length;d<p;d++)h+=c[d].getValue();var f=a.getValue();if(0===f)return s;u*=h/f;var g=o.getModel(),v=g.get(oA);(u+=4*v*v+(3*v+Math.max(v,fA(g)))*Math.pow(u,.5))>io&&(u=io),a=o}u<l&&(u=l);var m=Math.pow(u/l,.5);return[i*m,r*m]}(t,d,f,u,h):p?[p.width,p.height]:[u,h],m=a.sort;m&&"asc"!==m&&"desc"!==m&&(m="desc");var y={squareRatio:a.squareRatio,sort:m,leafDepth:a.leafDepth};f.hostTree.clearLayouts();var x={x:0,y:0,width:v[0],height:v[1],area:v[0]*v[1]};f.setLayout(x),hA(f,y,!1,0),x=f.getLayout(),rA(g,(function(t,e){var n=(g[e+1]||f).getValue();t.setLayout(C({dataExtent:[n,n],borderWidth:0,upperHeight:0},x))}))}var _=t.getData().tree.root;_.setLayout(function(t,e,n){if(e)return{x:e.x,y:e.y};var i={x:0,y:0};if(!n)return i;var r=n.node,o=r.getLayout();if(!o)return i;var a=[o.width/2,o.height/2],s=r;for(;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:t.width/2-a[0],y:t.height/2-a[1]}}(s,p,d),!0),t.setLayoutInfo(s),pA(_,new Ne(-s.x,-s.y,r,o),g,f,0)}};function hA(t,e,n,i){var r,o;if(!t.isRemoved()){var a=t.getLayout();r=a.width,o=a.height;var s=t.getModel(),l=s.get(oA),u=s.get(aA)/2,h=fA(s),c=Math.max(l,h),d=l-u,p=c-u;t.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:h},!0);var f=(r=eA(r-2*d,0))*(o=eA(o-d-p,0)),g=function(t,e,n,i,r,o){var a=t.children||[],s=i.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=i.leafDepth&&i.leafDepth<=o;if(r&&!l)return t.viewChildren=[];a=z(a,(function(t){return!t.isRemoved()})),function(t,e){e&&t.sort((function(t,n){var i="asc"===e?t.getValue()-n.getValue():n.getValue()-t.getValue();return 0===i?"asc"===e?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:i}))}(a,s);var u=function(t,e,n){for(var i=0,r=0,o=e.length;r<o;r++)i+=e[r].getValue();var a,s=t.get("visualDimension");e&&e.length?"value"===s&&n?(a=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],rA(e,(function(t){var e=t.getValue(s);e<a[0]&&(a[0]=e),e>a[1]&&(a[1]=e)}))):a=[NaN,NaN];return{sum:i,dataExtent:a}}(e,a,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=function(t,e,n,i,r){if(!i)return n;for(var o=t.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*e<o&&(s=l,n-=u)}return"asc"===i?r.splice(0,a-s):r.splice(s,a-s),n}(e,n,u.sum,s,a),0===u.sum)return t.viewChildren=[];for(var h=0,c=a.length;h<c;h++){var d=a[h].getValue()/u.sum*n;a[h].setLayout({area:d})}l&&(a.length&&t.setLayout({isLeafRoot:!0},!0),a.length=0);return t.viewChildren=a,t.setLayout({dataExtent:u.dataExtent},!0),a}(t,s,f,e,n,i);if(g.length){var v={x:d,y:p,width:r,height:o},m=nA(r,o),y=1/0,x=[];x.area=0;for(var _=0,b=g.length;_<b;){var w=g[_];x.push(w),x.area+=w.getLayout().area;var S=cA(x,m,e.squareRatio);S<=y?(_++,y=S):(x.area-=x.pop().getLayout().area,dA(x,m,v,u,!1),m=nA(v.width,v.height),x.length=x.area=0,y=1/0)}if(x.length&&dA(x,m,v,u,!0),!n){var M=s.get("childrenVisibleMin");null!=M&&f<M&&(n=!0)}for(_=0,b=g.length;_<b;_++)hA(g[_],e,n,i+1)}}}function cA(t,e,n){for(var i=0,r=1/0,o=0,a=void 0,s=t.length;o<s;o++)(a=t[o].getLayout().area)&&(a<r&&(r=a),a>i&&(i=a));var l=t.area*t.area,u=e*e*n;return l?eA(u*i/l,l/(u*r)):1/0}function dA(t,e,n,i,r){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],h=e?t.area/e:0;(r||h>n[l[a]])&&(h=n[l[a]]);for(var c=0,d=t.length;c<d;c++){var p=t[c],f={},g=h?p.getLayout().area/h:0,v=f[l[a]]=eA(h-2*i,0),m=n[s[o]]+n[l[o]]-u,y=c===d-1||m<g?m:g,x=f[l[o]]=eA(y-2*i,0);f[s[a]]=n[s[a]]+nA(i,v/2),f[s[o]]=u+nA(i,x/2),u+=y,p.setLayout(f,!0)}n[s[a]]+=h,n[l[a]]-=h}function pA(t,e,n,i,r){var o=t.getLayout(),a=n[r],s=a&&a===t;if(!(a&&!s||r===n.length&&t!==i)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(o),isAboveViewRoot:s},!0);var l=new Ne(e.x-o.x,e.y-o.y,e.width,e.height);rA(t.viewChildren||[],(function(t){pA(t,l,n,i,r+1)}))}}function fA(t){return t.get(sA)?t.get(lA):0}function gA(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getGraph().data,r=n.mapArray(n.getName);i.filterSelf((function(t){var n=i.getItemModel(t).getShallow("category");if(null!=n){Z(n)&&(n=r[n]);for(var o=0;o<e.length;o++)if(!e[o].isSelected(n))return!1}return!0}))}))}function vA(t){var e={};t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getData(),r={};n.each((function(i){var o=n.getName(i);r["ec-"+o]=i;var a=n.getItemModel(i),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=t.getColorFromPalette(o,e)),n.setItemVisual(i,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var h=a.getShallow(l[u],!0);null!=h&&n.setItemVisual(i,l[u],h)}})),n.count()&&i.each((function(t){var e=i.getItemModel(t).getShallow("category");if(null!=e){U(e)&&(e=r["ec-"+e]);var o=n.getItemVisual(e,"style");C(i.ensureUniqueItemVisual(t,"style"),o);for(var a=["symbol","symbolSize","symbolKeepAspect"],s=0;s<a.length;s++)i.setItemVisual(t,a[s],n.getItemVisual(e,a[s]))}}))}))}function mA(t){return t instanceof Array||(t=[t,t]),t}function yA(t){t.eachSeriesByType("graph",(function(t){var e=t.getGraph(),n=t.getEdgeData(),i=mA(t.get("edgeSymbol")),r=mA(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each((function(t){var i=n.getItemModel(t),r=e.getEdgeByIndex(t),o=mA(i.getShallow("symbol",!0)),a=mA(i.getShallow("symbolSize",!0)),s=i.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(t,"style");switch(C(l,s),l.stroke){case"source":var u=r.node1.getVisual("style");l.stroke=u&&u.fill;break;case"target":u=r.node2.getVisual("style");l.stroke=u&&u.fill}o[0]&&r.setVisual("fromSymbol",o[0]),o[1]&&r.setVisual("toSymbol",o[1]),a[0]&&r.setVisual("fromSymbolSize",a[0]),a[1]&&r.setVisual("toSymbolSize",a[1])}))}))}var xA="--\x3e",_A=function(t){return t.get("autoCurveness")||null},bA=function(t,e){var n=_A(t),i=20,r=[];if(Z(n))i=n;else if(H(n))return void(t.__curvenessList=n);e>i&&(i=e);var o=i%2?i+2:i+3;r=[];for(var a=0;a<o;a++)r.push((a%2?a+1:a)/10*(a%2?-1:1));t.__curvenessList=r},wA=function(t,e,n){var i=[t.id,t.dataIndex].join("."),r=[e.id,e.dataIndex].join(".");return[n.uid,i,r].join(xA)},SA=function(t){var e=t.split(xA);return[e[0],e[2],e[1]].join(xA)},MA=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function IA(t,e,n,i){var r=_A(e),o=H(r);if(!r)return null;var a=function(t,e){var n=wA(t.node1,t.node2,e);return e.__edgeMap[n]}(t,e);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var u=function(t,e){return MA(wA(t.node1,t.node2,e),e)+MA(wA(t.node2,t.node1,e),e)}(t,e);bA(e,u),t.lineStyle=t.lineStyle||{};var h=wA(t.node1,t.node2,e),c=e.__curvenessList,d=o||u%2?0:1;if(a.isForward)return c[d+s];var p=SA(h),f=MA(p,e),g=c[s+f+d];return i?o?r&&0===r[0]?(f+d)%2?g:-g:((f%2?0:1)+d)%2?g:-g:(f+d)%2?g:-g:c[s+f+d]}function TA(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode((function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])})),CA(n,t)}}function CA(t,e){t.eachEdge((function(t,n){var i=it(t.getModel().get(["lineStyle","curveness"]),-IA(t,e,n,!0),0),r=Mt(t.node1.getLayout()),o=Mt(t.node2.getLayout()),a=[r,o];+i&&a.push([(r[0]+o[0])/2-(r[1]-o[1])*i,(r[1]+o[1])/2-(o[0]-r[0])*i]),t.setLayout(a)}))}function AA(t,e){t.eachSeriesByType("graph",(function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var i=t.getData(),r=[];R(n.dimensions,(function(t){r=r.concat(i.mapDimensionsAll(t))}));for(var o=0;o<i.count();o++){for(var a=[],s=!1,l=0;l<r.length;l++){var u=i.get(r[l],o);isNaN(u)||(s=!0),a.push(u)}s?i.setItemLayout(o,n.dataToPoint(a)):i.setItemLayout(o,[NaN,NaN])}CA(i.graph,t)}else e&&"none"!==e||TA(t)}))}function DA(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=t.option.nodeScaleRatio,i=e.scaleX;return((e.getZoom()-1)*n+1)/i}function LA(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var kA=Math.PI,PA=[];function OA(t,e,n,i){var r=t.coordinateSystem;if(!r||"view"===r.type){var o=r.getBoundingRect(),a=t.getData(),s=a.graph,l=o.width/2+o.x,u=o.height/2+o.y,h=Math.min(o.width,o.height)/2,c=a.count();if(a.setLayout({cx:l,cy:u}),c){if(n){var d=r.pointToData(i),p=d[0],f=d[1],g=[p-l,f-u];Rt(g,g),Ot(g,g,h),n.setLayout([l+g[0],u+g[1]],!0),NA(n,t.get(["circular","rotateLabel"]),l,u)}RA[e](t,s,a,h,l,u,c),s.eachEdge((function(e,n){var i,r=it(e.getModel().get(["lineStyle","curveness"]),IA(e,t,n),0),o=Mt(e.node1.getLayout()),a=Mt(e.node2.getLayout()),s=(o[0]+a[0])/2,h=(o[1]+a[1])/2;+r&&(i=[l*(r*=3)+s*(1-r),u*r+h*(1-r)]),e.setLayout([o,a,i])}))}}}var RA={value:function(t,e,n,i,r,o,a){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||a);e.eachNode((function(t){var e=t.getValue("value"),n=u*(l?e:1)/2;s+=n,t.setLayout([i*Math.cos(s)+r,i*Math.sin(s)+o]),s+=n}))},symbolSize:function(t,e,n,i,r,o,a){var s=0;PA.length=a;var l=DA(t);e.eachNode((function(t){var e=LA(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=l;var n=Math.asin(e/2/i);isNaN(n)&&(n=kA/2),PA[t.dataIndex]=n,s+=2*n}));var u=(2*kA-s)/a/2,h=0;e.eachNode((function(t){var e=u+PA[t.dataIndex];h+=e,(!t.getLayout()||!t.getLayout().fixed)&&t.setLayout([i*Math.cos(h)+r,i*Math.sin(h)+o]),h+=e}))}};function NA(t,e,n,i){var r=t.getGraphicEl();if(r){var o=t.getModel().get(["label","rotate"])||0,a=r.getSymbolPath();if(e){var s=t.getLayout(),l=Math.atan2(s[1]-i,s[0]-n);l<0&&(l=2*Math.PI+l);var u=s[0]<n;u&&(l-=Math.PI);var h=u?"left":"right";a.setTextConfig({rotation:-l,position:h,origin:"center"});var c=a.ensureState("emphasis");C(c.textConfig||(c.textConfig={}),{position:h})}else a.setTextConfig({rotation:o*=Math.PI/180})}}function EA(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&OA(t,"symbolSize")}))}var zA=Ct;function VA(t){t.eachSeriesByType("graph",(function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var n=t.preservedPoints||{},i=t.getGraph(),r=i.data,o=i.edgeData,a=t.getModel("force"),s=a.get("initLayout");t.preservedPoints?r.each((function(t){var e=r.getId(t);r.setItemLayout(t,n[e]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&OA(t,"value"):TA(t);var l=r.getDataExtent("value"),u=o.getDataExtent("value"),h=a.get("repulsion"),c=a.get("edgeLength"),d=H(h)?h:[h,h],p=H(c)?c:[c,c];p=[p[1],p[0]];var f=r.mapArray("value",(function(t,e){var n=r.getItemLayout(e),i=jr(t,l,d);return isNaN(i)&&(i=(d[0]+d[1])/2),{w:i,rep:i,fixed:r.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),g=o.mapArray("value",(function(e,n){var r=i.getEdgeByIndex(n),o=jr(e,u,p);isNaN(o)&&(o=(p[0]+p[1])/2);var a=r.getModel(),s=it(r.getModel().get(["lineStyle","curveness"]),-IA(r,t,n,!0),0);return{n1:f[r.node1.dataIndex],n2:f[r.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}})),v=e.getBoundingRect(),m=function(t,e,n){for(var i=t,r=e,o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],u=null==n.gravity?.1:n.gravity,h=0;h<i.length;h++){var c=i[h];c.p||(c.p=wt(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),c.pp=Mt(c.p),c.edges=null}var d,p,f=null==n.friction?.6:n.friction,g=f;return{warmUp:function(){g=.8*f},setFixed:function(t){i[t].fixed=!0},setUnfixed:function(t){i[t].fixed=!1},beforeStep:function(t){d=t},afterStep:function(t){p=t},step:function(t){d&&d(i,r);for(var e=[],n=i.length,o=0;o<r.length;o++){var a=r[o];if(!a.ignoreForceLayout){var s=a.n1;At(e,(v=a.n2).p,s.p);var h=Dt(e)-a.d,c=v.w/(s.w+v.w);isNaN(c)&&(c=0),Rt(e,e),!s.fixed&&zA(s.p,s.p,e,c*h*g),!v.fixed&&zA(v.p,v.p,e,-(1-c)*h*g)}}for(o=0;o<n;o++)(x=i[o]).fixed||(At(e,l,x.p),zA(x.p,x.p,e,u*g));for(o=0;o<n;o++){s=i[o];for(var f=o+1;f<n;f++){var v;At(e,(v=i[f]).p,s.p),0===(h=Dt(e))&&(It(e,Math.random()-.5,Math.random()-.5),h=1);var m=(s.rep+v.rep)/h/h;!s.fixed&&zA(s.pp,s.pp,e,m),!v.fixed&&zA(v.pp,v.pp,e,-m)}}var y=[];for(o=0;o<n;o++){var x;(x=i[o]).fixed||(At(y,x.p,x.pp),zA(x.p,x.p,y,g),St(x.pp,x.p))}var _=(g*=.992)<.01;p&&p(i,r,_),t&&t(_)}}}(f,g,{rect:v,gravity:a.get("gravity"),friction:a.get("friction")});m.beforeStep((function(t,e){for(var n=0,r=t.length;n<r;n++)t[n].fixed&&St(t[n].p,i.getNodeByIndex(n).getLayout())})),m.afterStep((function(t,e,o){for(var a=0,s=t.length;a<s;a++)t[a].fixed||i.getNodeByIndex(a).setLayout(t[a].p),n[r.getId(a)]=t[a].p;for(a=0,s=e.length;a<s;a++){var l=e[a],u=i.getEdgeByIndex(a),h=l.n1.p,c=l.n2.p,d=u.getLayout();(d=d?d.slice():[])[0]=d[0]||[],d[1]=d[1]||[],St(d[0],h),St(d[1],c),+l.curveness&&(d[2]=[(h[0]+c[0])/2-(h[1]-c[1])*l.curveness,(h[1]+c[1])/2-(c[0]-h[0])*l.curveness]),u.setLayout(d)}})),t.forceLayout=m,t.preservedPoints=n,m.step()}else t.forceLayout=null}))}function BA(t,e){var n=[];return t.eachSeriesByType("graph",(function(t){var i=t.get("coordinateSystem");if(!i||"view"===i){var r=t.getData(),o=[],a=[];Ea(r.mapArray((function(t){var e=r.getItemModel(t);return[+e.get("x"),+e.get("y")]})),o,a),a[0]-o[0]==0&&(a[0]+=1,o[0]-=1),a[1]-o[1]==0&&(a[1]+=1,o[1]-=1);var s=(a[0]-o[0])/(a[1]-o[1]),l=function(t,e,n){return Ad(C(t.getBoxLayoutParams(),{aspect:n}),{width:e.getWidth(),height:e.getHeight()})}(t,e,s);isNaN(s)&&(o=[l.x,l.y],a=[l.x+l.width,l.y+l.height]);var u=a[0]-o[0],h=a[1]-o[1],c=l.width,d=l.height,p=t.coordinateSystem=new AT;p.zoomLimit=t.get("scaleLimit"),p.setBoundingRect(o[0],o[1],u,h),p.setViewRect(l.x,l.y,c,d),p.setCenter(t.get("center"),e),p.setZoom(t.get("zoom")),n.push(p)}})),n}var GA=Xu.prototype,FA=$u.prototype,HA=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}}();function WA(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}n(e,t)}(HA);var UA=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-line",n}return n(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new HA},e.prototype.buildPath=function(t,e){WA(e)?GA.buildPath.call(this,t,e):FA.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return WA(this.shape)?GA.pointAt.call(this,t):FA.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,n=WA(e)?[e.x2-e.x1,e.y2-e.y1]:FA.tangentAt.call(this,t);return Rt(n,n)},e}(Cs),YA=["fromSymbol","toSymbol"];function ZA(t){return"_"+t+"Type"}function XA(t,e,n){var i=e.getItemVisual(n,t);if(!i||"none"===i)return i;var r=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=Uv(r);return i+l+Yv(a||0,l)+(o||"")+(s||"")}function jA(t,e,n){var i=e.getItemVisual(n,t);if(i&&"none"!==i){var r=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=Uv(r),u=Yv(a||0,l),h=Wv(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return h.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,h.name=t,h}}function qA(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}var KA=function(t){function e(e,n,i){var r=t.call(this)||this;return r._createLine(e,n,i),r}return n(e,t),e.prototype._createLine=function(t,e,n){var i=t.hostModel,r=function(t){var e=new UA({name:"line",subPixelOptimize:!0});return qA(e.shape,t),e}(t.getItemLayout(e));r.shape.percent=0,gh(r,{shape:{percent:1}},i,e),this.add(r),R(YA,(function(n){var i=jA(n,t,e);this.add(i),this[ZA(n)]=XA(n,t,e)}),this),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),o=t.getItemLayout(e),a={shape:{}};qA(a.shape,o),fh(r,a,i,e),R(YA,(function(n){var i=XA(n,t,e),r=ZA(n);if(this[r]!==i){this.remove(this.childOfName(n));var o=jA(n,t,e);this.add(o)}this[r]=i}),this),this._updateCommonStl(t,e,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),o=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,u=n&&n.emphasisDisabled,h=n&&n.focus,c=n&&n.blurScope;if(!n||t.hasItemOption){var d=t.getItemModel(e),p=d.getModel("emphasis");o=p.getModel("lineStyle").getLineStyle(),a=d.getModel(["blur","lineStyle"]).getLineStyle(),s=d.getModel(["select","lineStyle"]).getLineStyle(),u=p.get("disabled"),h=p.get("focus"),c=p.get("blurScope"),l=ec(d)}var f=t.getItemVisual(e,"style"),g=f.stroke;r.useStyle(f),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,r.ensureState("blur").style=a,r.ensureState("select").style=s,R(YA,(function(t){var e=this.childOfName(t);if(e){e.setColor(g),e.style.opacity=f.opacity;for(var n=0;n<sl.length;n++){var i=sl[n],o=r.getState(i);if(o){var a=o.style||{},s=e.ensureState(i),l=s.style||(s.style={});null!=a.stroke&&(l[e.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}e.markRedraw()}}),this);var v=i.getRawValue(e);tc(this,l,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,n){return i.getFormattedLabel(e,n,t.dataType)}},inheritColor:g||"#000",defaultOpacity:f.opacity,defaultText:(null==v?t.getName(e):isFinite(v)?Kr(v):v)+""});var m=this.getTextContent();if(m){var y=l.normal;m.__align=m.style.align,m.__verticalAlign=m.style.verticalAlign,m.__position=y.get("position")||"middle";var x=y.get("distance");H(x)||(x=[x,x]),m.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),Ul(this,h,c,u)},e.prototype.highlight=function(){Ll(this)},e.prototype.downplay=function(){kl(this)},e.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},e.prototype.setLinePoints=function(t){var e=this.childOfName("line");qA(e.shape,t),e.dirty()},e.prototype.beforeUpdate=function(){var t=this,e=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.getTextContent();if(e||n||i&&!i.ignore){for(var r=1,o=this.parent;o;)o.scaleX&&(r/=o.scaleX),o=o.parent;var a=t.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),u=a.pointAt(s),h=At([],u,l);if(Rt(h,h),e&&(e.setPosition(l),S(e,0),e.scaleX=e.scaleY=r*s,e.markRedraw()),n&&(n.setPosition(u),S(n,1),n.scaleX=n.scaleY=r*s,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var c=void 0,d=void 0,p=i.__labelDistance,f=p[0]*r,g=p[1]*r,v=s/2,m=a.tangentAt(v),y=[m[1],-m[0]],x=a.pointAt(v);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]);var _=m[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var b=-Math.atan2(m[1],m[0]);u[0]<l[0]&&(b=Math.PI+b),i.rotation=b}var w=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":w=-g,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":w=g,d="top";break;default:w=0,d="middle"}switch(i.__position){case"end":i.x=h[0]*f+u[0],i.y=h[1]*g+u[1],c=h[0]>.8?"left":h[0]<-.8?"right":"center",d=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":i.x=-h[0]*f+l[0],i.y=-h[1]*g+l[1],c=h[0]>.8?"right":h[0]<-.8?"left":"center",d=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=f*_+l[0],i.y=l[1]+w,c=m[0]<0?"right":"left",i.originX=-f*_,i.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+w,c="center",i.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-f*_+u[0],i.y=u[1]+w,c=m[0]>=0?"right":"left",i.originX=f*_,i.originY=-w}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||c})}}}function S(t,e){var n=t.__specifiedRotation;if(null==n){var i=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else t.attr("rotation",n)}},e}(zr),$A=function(){function t(t){this.group=new zr,this._LineCtor=t||KA}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=t,r||i.removeAll();var o=JA(t);t.diff(r).add((function(n){e._doAdd(t,n,o)})).update((function(n,i){e._doUpdate(r,t,i,n,o)})).remove((function(t){i.remove(r.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=JA(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||function(t){return t.animators&&t.animators.length>0}(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=t.start;i<t.end;i++){if(tD(e.getItemLayout(i))){var r=new this._LineCtor(e,i,this._seriesScope);r.traverse(n),this.group.add(r),e.setItemGraphicEl(i,r),this._progressiveEls.push(r)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(t){qh(this._progressiveEls||this.group,t)},t.prototype._doAdd=function(t,e,n){if(tD(t.getItemLayout(e))){var i=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,i),this.group.add(i)}},t.prototype._doUpdate=function(t,e,n,i,r){var o=t.getItemGraphicEl(n);tD(e.getItemLayout(i))?(o?o.updateData(e,i,r):o=new this._LineCtor(e,i,r),e.setItemGraphicEl(i,o),this.group.add(o)):this.group.remove(o)},t}();function JA(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:ec(e)}}function QA(t){return isNaN(t[0])||isNaN(t[1])}function tD(t){return t&&!QA(t[0])&&!QA(t[1])}var eD=[],nD=[],iD=[],rD=Sn,oD=Vt,aD=Math.abs;function sD(t,e,n){for(var i,r=t[0],o=t[1],a=t[2],s=1/0,l=n*n,u=.1,h=.1;h<=.9;h+=.1){eD[0]=rD(r[0],o[0],a[0],h),eD[1]=rD(r[1],o[1],a[1],h),(p=aD(oD(eD,e)-l))<s&&(s=p,i=h)}for(var c=0;c<32;c++){var d=i+u;nD[0]=rD(r[0],o[0],a[0],i),nD[1]=rD(r[1],o[1],a[1],i),iD[0]=rD(r[0],o[0],a[0],d),iD[1]=rD(r[1],o[1],a[1],d);var p=oD(nD,e)-l;if(aD(p)<.01)break;var f=oD(iD,e)-l;u/=2,p<0?f>=0?i+=u:i-=u:f>=0?i-=u:i+=u}return i}function lD(t,e){var n=[],i=Tn,r=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),u=t.getVisual("fromSymbol"),h=t.getVisual("toSymbol");l.__original||(l.__original=[Mt(l[0]),Mt(l[1])],l[2]&&l.__original.push(Mt(l[2])));var c=l.__original;if(null!=l[2]){if(St(r[0],c[0]),St(r[1],c[2]),St(r[2],c[1]),u&&"none"!==u){var d=LA(t.node1),p=sD(r,c[0],d*e);i(r[0][0],r[1][0],r[2][0],p,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],p,n),r[0][1]=n[3],r[1][1]=n[4]}if(h&&"none"!==h){d=LA(t.node2),p=sD(r,c[1],d*e);i(r[0][0],r[1][0],r[2][0],p,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],p,n),r[1][1]=n[1],r[2][1]=n[2]}St(l[0],r[0]),St(l[1],r[2]),St(l[2],r[1])}else{if(St(o[0],c[0]),St(o[1],c[1]),At(a,o[1],o[0]),Rt(a,a),u&&"none"!==u){d=LA(t.node1);Ct(o[0],o[0],a,d*e)}if(h&&"none"!==h){d=LA(t.node2);Ct(o[1],o[1],a,-d*e)}St(l[0],o[0]),St(l[1],o[1])}}))}function uD(t){return"view"===t.type}var hD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.init=function(t,e){var n=new Rw,i=new $A,r=this.group;this._controller=new yI(e.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(uD(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):fh(s,l,t)}lD(t.getGraph(),DA(t));var u=t.getData();o.updateData(u);var h=t.getEdgeData();a.updateData(h),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var c=t.forceLayout,d=t.get(["force","layoutAnimation"]);c&&this._startForceLayoutIteration(c,d);var p=t.get("layout");u.graph.eachNode((function(e){var n=e.dataIndex,r=e.getGraphicEl(),o=e.getModel();if(r){r.off("drag").off("dragend");var a=o.get("draggable");a&&r.on("drag",(function(o){switch(p){case"force":c.warmUp(),!i._layouting&&i._startForceLayoutIteration(c,d),c.setFixed(n),u.setItemLayout(n,[r.x,r.y]);break;case"circular":u.setItemLayout(n,[r.x,r.y]),e.setLayout({fixed:!0},!0),OA(t,"symbolSize",e,[o.offsetX,o.offsetY]),i.updateLayout(t);break;default:u.setItemLayout(n,[r.x,r.y]),CA(t.getGraph(),t),i.updateLayout(t)}})).on("dragend",(function(){c&&c.setUnfixed(n)})),r.setDraggable(a,!!o.get("cursor")),"adjacency"===o.get(["emphasis","focus"])&&(el(r).focus=e.getAdjacentDataIndices())}})),u.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(el(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var f="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),g=u.getLayout("cx"),v=u.getLayout("cy");u.graph.eachNode((function(t){NA(t,f,g,v)})),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e){var n=this;!function i(){t.step((function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(i,16):i())}))}()},e.prototype._updateController=function(t,e,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(e,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!TI(e,n,t)})),uD(t.coordinateSystem)?(r.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(e){wI(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){SI(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(),lD(t.getGraph(),DA(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):r.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=DA(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(n)}))},e.prototype.updateLayout=function(t){lD(t.getGraph(),DA(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(kg);function cD(t,e,n,i,r){for(var o=new dw(i),a=0;a<t.length;a++)o.addNode(et(t[a].id,t[a].name,a),a);var s=[],l=[],u=0;for(a=0;a<e.length;a++){var h=e[a],c=h.source,d=h.target;o.addEdge(c,d,u)&&(l.push(h),s.push(et(ko(h.id,null),c+" > "+d)),u++)}var p,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)p=yx(t,n);else{var g=_p.get(f),v=g&&g.dimensions||[];L(v,"value")<0&&v.concat(["value"]);var m=hx(t,{coordDimensions:v,encodeDefine:n.getEncode()}).dimensions;(p=new lx(m,n)).initData(t)}var y=new lx(["value"],n);return y.initData(l,s),r&&r(p,y),mw({mainData:p,struct:o,structAttr:"graph",datas:{node:p,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var dD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return n(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new JS(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),Mo(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n,i=t.edges||t.links||[],r=t.data||t.nodes||[],o=this;if(r&&i){_A(n=this)&&(n.__curvenessList=[],n.__edgeMap={},bA(n));var a=cD(r,i,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t){var e=o._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t}));var n=Mc.prototype.getModel;function i(t,e){var i=n.call(this,t,e);return i.resolveParentPath=r,i}function r(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=r,t.getModel=i,t}))}));return R(a.edges,(function(t){!function(t,e,n,i){if(_A(n)){var r=wA(t,e,n),o=n.__edgeMap,a=o[SA(r)];o[r]&&!a?o[r].isForward=!0:a&&o[r]&&(a.isForward=!0,o[r].isForward=!1),o[r]=o[r]||[],o[r].push(i)}}(t.node1,t.node2,this,t.dataIndex)}),this),a.data}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),o=i.graph.getEdgeByIndex(t),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),ig("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}return gg({series:this,dataIndex:t,multipleSeries:e})},e.prototype._updateCategoriesData=function(){var t=N(this.option.categories||[],(function(t){return null!=t.value?t:C({value:0},t)})),e=new lx(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(xg),pD={type:"graphRoam",event:"graphRoam",update:"none"};var fD=function(){return function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}}(),gD=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return n(e,t),e.prototype.getDefaultShape=function(){return new fD},e.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)},e}(Cs);function vD(t,e){var n=null==t?"":t+"";return e&&(U(e)?n=e.replace("{value}",n):W(e)&&(n=e(t))),n}var mD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),r=function(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r);return{cx:qr(n[0],e.getWidth()),cy:qr(n[1],e.getHeight()),r:qr(t.get("radius"),o/2)}}(t,n);this._renderMain(t,e,n,i,r),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,i,r){var o=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),h=u.get("roundCap")?fS:zu,c=u.get("show"),d=u.getModel("lineStyle"),p=d.get("width"),f=[s,l];as(f,!a);for(var g=(l=f[1])-(s=f[0]),v=s,m=[],y=0;c&&y<i.length;y++){var x=new h({shape:{startAngle:v,endAngle:l=s+g*Math.min(Math.max(i[y][0],0),1),cx:r.cx,cy:r.cy,clockwise:a,r0:r.r-p,r:r.r},silent:!0});x.setStyle({fill:i[y][1]}),x.setStyle(d.getLineStyle(["color","width"])),m.push(x),v=l}m.reverse(),R(m,(function(t){return o.add(t)}));var _=function(t){if(t<=0)return i[0][1];var e;for(e=0;e<i.length;e++)if(i[e][0]>=t&&(0===e?0:i[e-1][0])<t)return i[e][1];return i[e-1][1]};this._renderTicks(t,e,n,_,r,s,l,a,p),this._renderTitleAndDetail(t,e,n,_,r),this._renderAnchor(t,r),this._renderPointer(t,e,n,_,r,s,l,a,p)},e.prototype._renderTicks=function(t,e,n,i,r,o,a,s,l){for(var u,h,c=this.group,d=r.cx,p=r.cy,f=r.r,g=+t.get("min"),v=+t.get("max"),m=t.getModel("splitLine"),y=t.getModel("axisTick"),x=t.getModel("axisLabel"),_=t.get("splitNumber"),b=y.get("splitNumber"),w=qr(m.get("length"),f),S=qr(y.get("length"),f),M=o,I=(a-o)/_,T=I/b,C=m.getModel("lineStyle").getLineStyle(),A=y.getModel("lineStyle").getLineStyle(),D=m.get("distance"),L=0;L<=_;L++){if(u=Math.cos(M),h=Math.sin(M),m.get("show")){var k=new Xu({shape:{x1:u*(f-(P=D?D+l:l))+d,y1:h*(f-P)+p,x2:u*(f-w-P)+d,y2:h*(f-w-P)+p},style:C,silent:!0});"auto"===C.stroke&&k.setStyle({stroke:i(L/_)}),c.add(k)}if(x.get("show")){var P=x.get("distance")+D,O=vD(Kr(L/_*(v-g)+g),x.get("formatter")),R=i(L/_),N=u*(f-w-P)+d,E=h*(f-w-P)+p,z=x.get("rotate"),V=0;"radial"===z?(V=-M+2*Math.PI)>Math.PI/2&&(V+=Math.PI):"tangential"===z?V=-M-Math.PI/2:Z(z)&&(V=z*Math.PI/180),0===V?c.add(new Hs({style:nc(x,{text:O,x:N,y:E,verticalAlign:h<-.8?"top":h>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:R}),silent:!0})):c.add(new Hs({style:nc(x,{text:O,x:N,y:E,verticalAlign:"middle",align:"center"},{inheritColor:R}),silent:!0,originX:N,originY:E,rotation:V}))}if(y.get("show")&&L!==_){P=(P=y.get("distance"))?P+l:l;for(var B=0;B<=b;B++){u=Math.cos(M),h=Math.sin(M);var G=new Xu({shape:{x1:u*(f-P)+d,y1:h*(f-P)+p,x2:u*(f-S-P)+d,y2:h*(f-S-P)+p},silent:!0,style:A});"auto"===A.stroke&&G.setStyle({stroke:i((L+B/b)/_)}),c.add(G),M+=T}M-=T}else M+=I}},e.prototype._renderPointer=function(t,e,n,i,r,o,a,s,l){var u=this.group,h=this._data,c=this._progressEls,d=[],p=t.get(["pointer","show"]),f=t.getModel("progress"),g=f.get("show"),v=t.getData(),m=v.mapDimension("value"),y=+t.get("min"),x=+t.get("max"),_=[y,x],b=[o,a];function w(e,n){var i,o=v.getItemModel(e).getModel("pointer"),a=qr(o.get("width"),r.r),s=qr(o.get("length"),r.r),l=t.get(["pointer","icon"]),u=o.get("offsetCenter"),h=qr(u[0],r.r),c=qr(u[1],r.r),d=o.get("keepAspect");return(i=l?Wv(l,h-a/2,c-s,a,s,null,d):new gD({shape:{angle:-Math.PI/2,width:a,r:s,x:h,y:c}})).rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function S(t,e){var n=f.get("roundCap")?fS:zu,i=f.get("overlap"),a=i?f.get("width"):l/v.count(),u=i?r.r-a:r.r-(t+1)*a,h=i?r.r:r.r-t*a,c=new n({shape:{startAngle:o,endAngle:e,cx:r.cx,cy:r.cy,clockwise:s,r0:u,r:h}});return i&&(c.z2=jr(v.get(m,t),[y,x],[100,0],!0)),c}(g||p)&&(v.diff(h).add((function(e){var n=v.get(m,e);if(p){var i=w(e,o);gh(i,{rotation:-((isNaN(+n)?b[0]:jr(n,_,b,!0))+Math.PI/2)},t),u.add(i),v.setItemGraphicEl(e,i)}if(g){var r=S(e,o),a=f.get("clip");gh(r,{shape:{endAngle:jr(n,_,b,a)}},t),u.add(r),nl(t.seriesIndex,v.dataType,e,r),d[e]=r}})).update((function(e,n){var i=v.get(m,e);if(p){var r=h.getItemGraphicEl(n),a=r?r.rotation:o,s=w(e,a);s.rotation=a,fh(s,{rotation:-((isNaN(+i)?b[0]:jr(i,_,b,!0))+Math.PI/2)},t),u.add(s),v.setItemGraphicEl(e,s)}if(g){var l=c[n],y=S(e,l?l.shape.endAngle:o),x=f.get("clip");fh(y,{shape:{endAngle:jr(i,_,b,x)}},t),u.add(y),nl(t.seriesIndex,v.dataType,e,y),d[e]=y}})).execute(),v.each((function(t){var e=v.getItemModel(t),n=e.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(p){var s=v.getItemGraphicEl(t),l=v.getItemVisual(t,"style"),u=l.fill;if(s instanceof Ps){var h=s.style;s.useStyle(C({image:h.image,x:h.x,y:h.y,width:h.width,height:h.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i(jr(v.get(m,t),_,[0,1],!0))),s.z2EmphasisLift=0,jl(s,e),Ul(s,r,o,a)}if(g){var c=d[t];c.useStyle(v.getItemVisual(t,"style")),c.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),c.z2EmphasisLift=0,jl(c,e),Ul(c,r,o,a)}})),this._progressEls=d)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor");if(n.get("show")){var i=n.get("size"),r=n.get("icon"),o=n.get("offsetCenter"),a=n.get("keepAspect"),s=Wv(r,e.cx-i/2+qr(o[0],e.r),e.cy-i/2+qr(o[1],e.r),i,i,null,a);s.z2=n.get("showAbove")?1:0,s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},e.prototype._renderTitleAndDetail=function(t,e,n,i,r){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),h=new zr,c=[],d=[],p=t.isAnimationEnabled(),f=t.get(["pointer","showAbove"]);a.diff(this._data).add((function(t){c[t]=new Hs({silent:!0}),d[t]=new Hs({silent:!0})})).update((function(t,e){c[t]=o._titleEls[e],d[t]=o._detailEls[e]})).execute(),a.each((function(e){var n=a.getItemModel(e),o=a.get(s,e),g=new zr,v=i(jr(o,[l,u],[0,1],!0)),m=n.getModel("title");if(m.get("show")){var y=m.get("offsetCenter"),x=r.cx+qr(y[0],r.r),_=r.cy+qr(y[1],r.r);(A=c[e]).attr({z2:f?0:2,style:nc(m,{x:x,y:_,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:v})}),g.add(A)}var b=n.getModel("detail");if(b.get("show")){var w=b.get("offsetCenter"),S=r.cx+qr(w[0],r.r),M=r.cy+qr(w[1],r.r),I=qr(b.get("width"),r.r),T=qr(b.get("height"),r.r),C=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:v,A=d[e],D=b.get("formatter");A.attr({z2:f?0:2,style:nc(b,{x:S,y:M,text:vD(o,D),width:isNaN(I)?null:I,height:isNaN(T)?null:T,align:"center",verticalAlign:"middle"},{inheritColor:C})}),hc(A,{normal:b},o,(function(t){return vD(t,D)})),p&&cc(A,e,a,t,{getFormattedLabel:function(t,e,n,i,r,a){return vD(a?a.interpolatedValue:o,D)}}),g.add(A)}h.add(g)})),this.group.add(h),this._titleEls=c,this._detailEls=d},e.type="gauge",e}(kg),yD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return n(e,t),e.prototype.getInitialData=function(t,e){return $S(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(xg);var xD=["itemStyle","opacity"],_D=function(t){function e(e,n){var i=t.call(this)||this,r=i,o=new Uu,a=new Hs;return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(e,n,!0),i}return n(e,t),e.prototype.updateData=function(t,e,n){var i=this,r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=o.getModel("emphasis"),l=o.get(xD);l=null==l?1:l,n||_h(i),i.useStyle(t.getItemVisual(e,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,gh(i,{style:{opacity:l}},r,e)):fh(i,{style:{opacity:l},shape:{points:a.points}},r,e),jl(i,o),this._updateLabel(t,e),Ul(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e).label,l=t.getItemVisual(e,"style"),u=l.fill;tc(r,ec(a),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:l.opacity,defaultText:t.getName(e)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}}),n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:u,outsideFill:u});var h=s.linePoints;i.setShape({points:h}),n.textGuideLineConfig={anchor:h?new Te(h[0][0],h[0][1]):null},fh(r,{style:{x:s.x,y:s.y}},o,e),r.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),Ob(n,Rb(a),{stroke:u})},e}(Hu),bD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return n(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._data,o=this.group;i.diff(r).add((function(t){var e=new _D(i,t);i.setItemGraphicEl(t,e),o.add(e)})).update((function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),o.add(n),i.setItemGraphicEl(t,n)})).remove((function(e){xh(r.getItemGraphicEl(e),t,e)})).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(kg),wD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new JS(G(this.getData,this),G(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return $S(this,{coordDimensions:["value"],encodeDefaulter:F(Qd,this)})},e.prototype._defaultLabelLine=function(t){Mo(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},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(xg);function SD(t,e){t.eachSeriesByType("funnel",(function(t){var n=t.getData(),i=n.mapDimension("value"),r=t.get("sort"),o=function(t,e){return Ad(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),a=t.get("orient"),s=o.width,l=o.height,u=function(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,(function(t){return t})),r=[],o="ascending"===e,a=0,s=t.count();a<s;a++)r[a]=a;return W(e)?r.sort(e):"none"!==e&&r.sort((function(t,e){return o?i[t]-i[e]:i[e]-i[t]})),r}(n,r),h=o.x,c=o.y,d="horizontal"===a?[qr(t.get("minSize"),l),qr(t.get("maxSize"),l)]:[qr(t.get("minSize"),s),qr(t.get("maxSize"),s)],p=n.getDataExtent(i),f=t.get("min"),g=t.get("max");null==f&&(f=Math.min(p[0],0)),null==g&&(g=p[1]);var v=t.get("funnelAlign"),m=t.get("gap"),y=(("horizontal"===a?s:l)-m*(n.count()-1))/n.count(),x=function(t,e){if("horizontal"===a){var r=jr(n.get(i,t)||0,[f,g],d,!0),o=void 0;switch(v){case"top":o=c;break;case"center":o=c+(l-r)/2;break;case"bottom":o=c+(l-r)}return[[e,o],[e,o+r]]}var u,p=jr(n.get(i,t)||0,[f,g],d,!0);switch(v){case"left":u=h;break;case"center":u=h+(s-p)/2;break;case"right":u=h+s-p}return[[u,e],[u+p,e]]};"ascending"===r&&(y=-y,m=-m,"horizontal"===a?h+=s:c+=l,u=u.reverse());for(var _=0;_<u.length;_++){var b=u[_],w=u[_+1],S=n.getItemModel(b);if("horizontal"===a){var M=S.get(["itemStyle","width"]);null==M?M=y:(M=qr(M,s),"ascending"===r&&(M=-M));var I=x(b,h),T=x(w,h+M);h+=M+m,n.setItemLayout(b,{points:I.concat(T.slice().reverse())})}else{var C=S.get(["itemStyle","height"]);null==C?C=y:(C=qr(C,l),"ascending"===r&&(C=-C));I=x(b,c),T=x(w,c+C);c+=C+m,n.setItemLayout(b,{points:I.concat(T.slice().reverse())})}}!function(t){var e=t.hostModel.get("orient");t.each((function(n){var i,r,o,a,s=t.getItemModel(n),l=s.getModel("label").get("position"),u=s.getModel("labelLine"),h=t.getItemLayout(n),c=h.points,d="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(d)"insideLeft"===l?(r=(c[0][0]+c[3][0])/2+5,o=(c[0][1]+c[3][1])/2,i="left"):"insideRight"===l?(r=(c[1][0]+c[2][0])/2-5,o=(c[1][1]+c[2][1])/2,i="right"):(r=(c[0][0]+c[1][0]+c[2][0]+c[3][0])/4,o=(c[0][1]+c[1][1]+c[2][1]+c[3][1])/4,i="center"),a=[[r,o],[r,o]];else{var p=void 0,f=void 0,g=void 0,v=void 0,m=u.get("length");"left"===l?(p=(c[3][0]+c[0][0])/2,f=(c[3][1]+c[0][1])/2,r=(g=p-m)-5,i="right"):"right"===l?(p=(c[1][0]+c[2][0])/2,f=(c[1][1]+c[2][1])/2,r=(g=p+m)+5,i="left"):"top"===l?(p=(c[3][0]+c[0][0])/2,o=(v=(f=(c[3][1]+c[0][1])/2)-m)-5,i="center"):"bottom"===l?(p=(c[1][0]+c[2][0])/2,o=(v=(f=(c[1][1]+c[2][1])/2)+m)+5,i="center"):"rightTop"===l?(p="horizontal"===e?c[3][0]:c[1][0],f="horizontal"===e?c[3][1]:c[1][1],"horizontal"===e?(o=(v=f-m)-5,i="center"):(r=(g=p+m)+5,i="top")):"rightBottom"===l?(p=c[2][0],f=c[2][1],"horizontal"===e?(o=(v=f+m)+5,i="center"):(r=(g=p+m)+5,i="bottom")):"leftTop"===l?(p=c[0][0],f="horizontal"===e?c[0][1]:c[1][1],"horizontal"===e?(o=(v=f-m)-5,i="center"):(r=(g=p-m)-5,i="right")):"leftBottom"===l?(p="horizontal"===e?c[1][0]:c[3][0],f="horizontal"===e?c[1][1]:c[2][1],"horizontal"===e?(o=(v=f+m)+5,i="center"):(r=(g=p-m)-5,i="right")):(p=(c[1][0]+c[2][0])/2,f=(c[1][1]+c[2][1])/2,"horizontal"===e?(o=(v=f+m)+5,i="center"):(r=(g=p+m)+5,i="left")),"horizontal"===e?r=g=p:o=v=f,a=[[p,f],[g,v]]}h.label={linePoints:a,x:r,y:o,verticalAlign:"middle",textAlign:i,inside:d}}))}(n)}))}var MD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new zr,n._initialized=!1,n}return n(e,t),e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._dataGroup,o=t.getData(),a=this._data,s=t.coordinateSystem,l=s.dimensions,u=CD(t);if(o.diff(a).add((function(t){AD(TD(o,r,t,l,s),o,t,u)})).update((function(e,n){var i=a.getItemGraphicEl(n),r=ID(o,e,l,s);o.setItemGraphicEl(e,i),fh(i,{shape:{points:r}},t,e),_h(i),AD(i,o,e,u)})).remove((function(t){var e=a.getItemGraphicEl(t);r.remove(e)})).execute(),!this._initialized){this._initialized=!0;var h=function(t,e,n){var i=t.model,r=t.getRect(),o=new Bs({shape:{x:r.x,y:r.y,width:r.width,height:r.height}}),a="horizontal"===i.get("layout")?"width":"height";return o.setShape(a,0),gh(o,{shape:{width:r.width,height:r.height}},e,n),o}(s,t,(function(){setTimeout((function(){r.removeClipPath()}))}));r.setClipPath(h)}this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,e,n){for(var i=e.getData(),r=e.coordinateSystem,o=r.dimensions,a=CD(e),s=this._progressiveEls=[],l=t.start;l<t.end;l++){var u=TD(i,this._dataGroup,l,o,r);u.incremental=!0,AD(u,i,l,a),s.push(u)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(kg);function ID(t,e,n,i){for(var r,o=[],a=0;a<n.length;a++){var s=n[a],l=t.get(t.mapDimension(s),e);r=l,("category"===i.getAxis(s).type?null==r:null==r||isNaN(r))||o.push(i.dataToPoint(l,s))}return o}function TD(t,e,n,i,r){var o=ID(t,n,i,r),a=new Uu({shape:{points:o},z2:10});return e.add(a),t.setItemGraphicEl(n,a),a}function CD(t){var e=t.get("smooth",!0);return!0===e&&(e=.3),tt(e=fo(e))&&(e=0),{smooth:e}}function AD(t,e,n,i){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",i.smooth);var r=e.getItemModel(n),o=r.getModel("emphasis");jl(t,r,"lineStyle"),Ul(t,o.get("focus"),o.get("blurScope"),o.get("disabled"))}var DD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return n(e,t),e.prototype.getInitialData=function(t,e){return yx(null,this,{useEncodeDefaulter:G(LD,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,(function(e,r){t===e&&i.push(n.getRawIndex(r))})),i},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(xg);function LD(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return R(e.dimensions,(function(t){var e=+t.replace("dim","");n[t]=e})),n}}var kD=["lineStyle","opacity"],PD={seriesType:"parallel",reset:function(t,e){var n=t.coordinateSystem,i={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(t,e){n.eachActiveState(e,(function(t,n){var r=i[t];if("normal"===t&&e.hasItemOption){var o=e.getItemModel(n).get(kD,!0);null!=o&&(r=o)}e.ensureUniqueItemVisual(n,"style").opacity=r}),t.start,t.end)}}}};function OD(t){!function(t){if(t.parallel)return;var e=!1;R(t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}(t),function(t){var e=So(t.parallelAxis);R(e,(function(e){if(X(e)){var n=e.parallelIndex||0,i=So(t.parallel)[n];i&&i.parallelAxisDefault&&I(e,i.parallelAxisDefault,!1)}}))}(t)}var RD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.render=function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},R(ND,(function(t,e){n.getZr().on(e,this._handlers[e]=G(t,this))}),this)),Fg(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,e){Hg(this,"_throttledDispatchExpand"),R(this._handlers,(function(t,n){e.getZr().off(n,t)})),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(C({type:"parallelAxisExpand"},t))},e.type="parallel",e}(Cg),ND={mousedown:function(t){ED(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(ED(this,"click")&&e){var n=[t.offsetX,t.offsetY];if(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2)>5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&ED(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function ED(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var zD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&I(e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){R(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[];R(z(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this),(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(Nd),VD=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return n(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(ub);function BD(t,e,n,i,r,o){t=t||0;var a=n[1]-n[0];if(null!=r&&(r=FD(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(e[1]-e[0]);s=FD(s,[0,a]),r=o=FD(s,[r,o]),i=0}e[0]=FD(e[0],n),e[1]=FD(e[1],n);var l=GD(e,i);e[i]+=t;var u,h=r||0,c=n.slice();return l.sign<0?c[0]+=h:c[1]-=h,e[i]=FD(e[i],c),u=GD(e,i),null!=r&&(u.sign!==l.sign||u.span<r)&&(e[1-i]=e[i]+l.sign*r),u=GD(e,i),null!=o&&u.span>o&&(e[1-i]=e[i]+u.sign*o),e}function GD(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function FD(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var HD=R,WD=Math.min,UD=Math.max,YD=Math.floor,ZD=Math.ceil,XD=Kr,jD=Math.PI,qD=function(){function t(t,e,n){this.type="parallel",this._axesMap=ft(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=t.dimensions,r=t.parallelAxisIndex;HD(i,(function(t,n){var i=r[n],o=e.getComponent("parallelAxis",i),a=this._axesMap.set(t,new VD(t,x_(o),[0,0],o.get("type"),i)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this}),this)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,r=e.pixelDimIndex,o=t[1-r],a=t[r];return o>=n&&o<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var i=n.getData();HD(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),y_(e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=Ad(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],u=this.dimensions.length,h=KD(e.get("axisExpandWidth"),l),c=KD(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>c&&c>1&&h>0&&s>0,p=e.get("axisExpandWindow");p?(t=KD(p[1]-p[0],l),p[1]=p[0]+t):(t=KD(h*(c-1),l),(p=[h*(e.get("axisExpandCenter")||YD(u/2))-t/2])[1]=p[0]+t);var f=(s-t)/(u-c);f<3&&(f=0);var g=[YD(XD(p[0]/h,1))+1,ZD(XD(p[1]/h,1))-1],v=f/h*p[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:d,axisExpandWidth:h,axisCollapseWidth:f,axisExpandWindow:p,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:v}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;e.each((function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),HD(n,(function(e,n){var o=(i.axisExpandable?JD:$D)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:jD/2,vertical:0},l=[a[r].x+t.x,a[r].y+t.y],u=s[r],h=[1,0,0,1,0,0];be(h,h,u),_e(h,h,l),this._axesLayout[e]={position:l,rotation:u,transform:h,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];R(o,(function(e){a.push(t.mapDimension(e)),s.push(r.get(e).model)}));for(var l=this.hasAxisBrushed(),u=n;u<i;u++){var h=void 0;if(l){h="active";for(var c=t.getValues(a,u),d=0,p=o.length;d<p;d++){if("inactive"===s[d].getActiveState(c[d])){h="inactive";break}}}else h="normal";e(h,u)}},t.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,i=0,r=t.length;i<r;i++)"normal"!==e.get(t[i]).model.getActiveState()&&(n=!0);return n},t.prototype.axisCoordToPoint=function(t,e){return zh([t,0],this._axesLayout[e].transform)},t.prototype.getAxisLayout=function(t){return M(this._axesLayout[t])},t.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,i=e.axisExpandWindow.slice(),r=i[1]-i[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var a,s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",u=e.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),c=null!=h[0];if(u)c&&u&&s<r*h[0]?(l="jump",a=s-r*h[2]):c&&u&&s>r*(1-h[0])?(l="jump",a=s-r*(1-h[2])):(a=s-r*h[1])>=0&&(a=s-r*(1-h[1]))<=0&&(a=0),(a*=e.axisExpandWidth/u)?BD(a,i,o,"all"):l="none";else{var d=i[1]-i[0];(i=[UD(0,o[1]*s/d-d/2)])[1]=WD(o[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:l}},t}();function KD(t,e){return WD(UD(t,e[0]),e[1])}function $D(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function JD(t,e){var n,i,r=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,h=!1;return t<l[0]?(n=t*s,i=s):t<=l[1]?(n=e.axisExpandWindow0Pos+t*o-e.axisExpandWindow[0],u=o,h=!0):(n=r-(a-1-t)*s,i=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:h,nameTruncateMaxWidth:i}}var QD={create:function(t,e){var n=[];return t.eachComponent("parallel",(function(i,r){var o=new qD(i,t,e);o.name="parallel_"+r,o.resize(i,e),i.coordinateSystem=o,o.model=i,n.push(o)})),t.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var e=t.getReferringComponents("parallel",Bo).models[0];t.coordinateSystem=e.coordinateSystem}})),n}},tL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return n(e,t),e.prototype.getAreaSelectStyle=function(){return ta([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=M(t);if(e)for(var n=e.length-1;n>=0;n--)$r(e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;i<r;i++)if(e[i][0]<=t&&t<=e[i][1])return"active";return"inactive"},e}(Nd);P(tL,I_);var eL=!0,nL=Math.min,iL=Math.max,rL=Math.pow,oL="globalPan",aL={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},sL={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},lL={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},uL=0,hL=function(t){function e(e){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new zr,n._uid="brushController_"+uL++,R(zL,(function(t,e){this._handlers[e]=G(t,this)}),n),n}return n(e,t),e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var e=this._zr;this._enableGlobalPan||function(t,e,n){mI(t)[e]=n}(e,oL,this._uid),R(this._handlers,(function(t,n){e.on(n,t)})),this._brushType=t.brushType,this._brushOption=I(M(lL),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;!function(t,e,n){var i=mI(t);i[e]===n&&(i[e]=null)}(t,oL,this._uid),R(this._handlers,(function(e,n){t.off(n,e)})),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var e=this._panels={};R(t,(function(t){e[t.panelId]=M(t)}))}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=N(t,(function(t){return I(M(lL),t,!0)}));var e=this._covers,n=this._covers=[],i=this,r=this._creatingCover;return new Vy(e,t,(function(t,e){return o(t.__brushOption,e)}),o).add(a).update(a).remove((function(t){e[t]!==r&&i.group.remove(e[t])})).execute(),this;function o(t,e){return(null!=t.id?t.id:"\0-brush-index-"+e)+"-"+t.brushType}function a(o,a){var s=t[o];if(null!=a&&e[a]===r)n[o]=e[a];else{var l=n[o]=null!=a?(e[a].__brushOption=s,e[a]):dL(i,cL(i,s));gL(i,l)}}},e.prototype.unmount=function(){return this.enableBrush(!1),xL(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(Zt);function cL(t,e){var n=BL[e.brushType].createCover(t,e);return n.__brushOption=e,fL(n,e),t.group.add(n),n}function dL(t,e){var n=vL(e);return n.endCreating&&(n.endCreating(t,e),fL(e,e.__brushOption)),e}function pL(t,e){var n=e.__brushOption;vL(e).updateCoverShape(t,e,n.range,n)}function fL(t,e){var n=e.z;null==n&&(n=1e4),t.traverse((function(t){t.z=n,t.z2=n}))}function gL(t,e){vL(e).updateCommon(t,e),pL(t,e)}function vL(t){return BL[t.__brushOption.brushType]}function mL(t,e,n){var i,r=t._panels;if(!r)return eL;var o=t._transform;return R(r,(function(t){t.isTargetByCursor(e,n,o)&&(i=t)})),i}function yL(t,e){var n=t._panels;if(!n)return eL;var i=e.__brushOption.panelId;return null!=i?n[i]:eL}function xL(t){var e=t._covers,n=e.length;return R(e,(function(e){t.group.remove(e)}),t),e.length=0,!!n}function _L(t,e){var n=N(t._covers,(function(t){var e=t.__brushOption,n=M(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}}));t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function bL(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function wL(t,e,n,i){var r=new zr;return r.add(new Bs({name:"main",style:TL(n),silent:!0,draggable:!0,cursor:"move",drift:F(DL,t,e,r,["n","s","w","e"]),ondragend:F(_L,e,{isEnd:!0})})),R(i,(function(n){r.add(new Bs({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:F(DL,t,e,r,n),ondragend:F(_L,e,{isEnd:!0})}))})),r}function SL(t,e,n,i){var r=i.brushStyle.lineWidth||0,o=iL(r,6),a=n[0][0],s=n[1][0],l=a-r/2,u=s-r/2,h=n[0][1],c=n[1][1],d=h-o+r/2,p=c-o+r/2,f=h-a,g=c-s,v=f+r,m=g+r;IL(t,e,"main",a,s,f,g),i.transformable&&(IL(t,e,"w",l,u,o,m),IL(t,e,"e",d,u,o,m),IL(t,e,"n",l,u,v,o),IL(t,e,"s",l,p,v,o),IL(t,e,"nw",l,u,o,o),IL(t,e,"ne",d,u,o,o),IL(t,e,"sw",l,p,o,o),IL(t,e,"se",d,p,o,o))}function ML(t,e){var n=e.__brushOption,i=n.transformable,r=e.childAt(0);r.useStyle(TL(n)),r.attr({silent:!i,cursor:i?"move":"default"}),R([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var r=e.childOfName(n.join("")),o=1===n.length?AL(t,n[0]):function(t,e){var n=[AL(t,e[0]),AL(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}(t,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?sL[o]+"-resize":null})}))}function IL(t,e,n,i,r,o,a){var s,l,u,h,c,d=e.childOfName(n);d&&d.setShape((s=PL(t,e,[[i,r],[i+o,r+a]]),l=nL(s[0][0],s[1][0]),u=nL(s[0][1],s[1][1]),h=iL(s[0][0],s[1][0]),c=iL(s[0][1],s[1][1]),{x:l,y:u,width:h-l,height:c-u}))}function TL(t){return A({strokeNoScale:!0},t.brushStyle)}function CL(t,e,n,i){var r=[nL(t,n),nL(e,i)],o=[iL(t,n),iL(e,i)];return[[r[0],o[0]],[r[1],o[1]]]}function AL(t,e){var n=Vh({w:"left",e:"right",n:"top",s:"bottom"}[e],function(t){return Eh(t.group)}(t));return{left:"w",right:"e",top:"n",bottom:"s"}[n]}function DL(t,e,n,i,r,o){var a=n.__brushOption,s=t.toRectRange(a.range),l=kL(e,r,o);R(i,(function(t){var e=aL[t];s[e[0]][e[1]]+=l[e[0]]})),a.range=t.fromRectRange(CL(s[0][0],s[1][0],s[0][1],s[1][1])),gL(e,n),_L(e,{isEnd:!1})}function LL(t,e,n,i){var r=e.__brushOption.range,o=kL(t,n,i);R(r,(function(t){t[0]+=o[0],t[1]+=o[1]})),gL(t,e),_L(t,{isEnd:!1})}function kL(t,e,n){var i=t.group,r=i.transformCoordToLocal(e,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function PL(t,e,n){var i=yL(t,e);return i&&i!==eL?i.clipPath(n,t._transform):M(n)}function OL(t){var e=t.event;e.preventDefault&&e.preventDefault()}function RL(t,e,n){return t.childOfName("main").contain(e,n)}function NL(t,e,n,i){var r,o=t._creatingCover,a=t._creatingPanel,s=t._brushOption;if(t._track.push(n.slice()),function(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],i=e[0],r=n[0]-i[0],o=n[1]-i[1];return rL(r*r+o*o,.5)>6}(t)||o){if(a&&!o){"single"===s.brushMode&&xL(t);var l=M(s);l.brushType=EL(l.brushType,a),l.panelId=a===eL?null:a.panelId,o=t._creatingCover=cL(t,l),t._covers.push(o)}if(o){var u=BL[EL(t._brushType,a)];o.__brushOption.range=u.getCreatingRange(PL(t,o,t._track)),i&&(dL(t,o),u.updateCommon(t,o)),pL(t,o),r={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&mL(t,e,n)&&xL(t)&&(r={isEnd:i,removeOnClick:!0});return r}function EL(t,e){return"auto"===t?e.defaultBrushType:t}var zL={mousedown:function(t){if(this._dragging)VL(this,t);else if(!t.target||!t.target.draggable){OL(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=mL(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,i=this.group.transformCoordToLocal(e,n);if(function(t,e,n){if(t._brushType&&!function(t,e,n){var i=t._zr;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}(t,e.offsetX,e.offsetY)){var i=t._zr,r=t._covers,o=mL(t,e,n);if(!t._dragging)for(var a=0;a<r.length;a++){var s=r[a].__brushOption;if(o&&(o===eL||s.panelId===o.panelId)&&BL[s.brushType].contain(r[a],n[0],n[1]))return}o&&i.setCursorStyle("crosshair")}}(this,t,i),this._dragging){OL(t);var r=NL(this,t,i,!1);r&&_L(this,r)}},mouseup:function(t){VL(this,t)}};function VL(t,e){if(t._dragging){OL(e);var n=e.offsetX,i=e.offsetY,r=t.group.transformCoordToLocal(n,i),o=NL(t,e,r,!0);t._dragging=!1,t._track=[],t._creatingCover=null,o&&_L(t,o)}}var BL={lineX:GL(0),lineY:GL(1),rect:{createCover:function(t,e){function n(t){return t}return wL({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=bL(t);return CL(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,i){SL(t,e,n,i)},updateCommon:ML,contain:RL},polygon:{createCover:function(t,e){var n=new zr;return n.add(new Uu({name:"main",style:TL(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Hu({name:"main",draggable:!0,drift:F(LL,t,e),ondragend:F(_L,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:PL(t,e,n)})},updateCommon:ML,contain:RL}};function GL(t){return{createCover:function(e,n){return wL({toRectRange:function(e){var n=[e,[0,100]];return t&&n.reverse(),n},fromRectRange:function(e){return e[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=bL(e);return[nL(n[0][t],n[1][t]),iL(n[0][t],n[1][t])]},updateCoverShape:function(e,n,i,r){var o,a=yL(e,n);if(a!==eL&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[i,o];t&&l.reverse(),SL(e,n,l,r)},updateCommon:ML,contain:RL}}function FL(t){return t=UL(t),function(e){return Fh(e,t)}}function HL(t,e){return t=UL(t),function(n){var i=null!=e?e:n,r=i?t.width:t.height,o=i?t.x:t.y;return[o,o+(r||0)]}}function WL(t,e,n){var i=UL(t);return function(t,r){return i.contain(r[0],r[1])&&!TI(t,e,n)}}function UL(t){return Ne.create(t)}var YL=["axisLine","axisTickLabel","axisName"],ZL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments),(this._brushController=new hL(n.getZr())).on("brush",G(this._onBrush,this))},e.prototype.render=function(t,e,n,i){if(!function(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}(t,e,i)){this.axisModel=t,this.api=n,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new zr,this.group.add(this._axisGroup),t.get("show")){var o=function(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}(t,e),a=o.coordinateSystem,s=t.getAreaSelectStyle(),l=s.width,u=t.axis.dim,h=C({strokeContainThreshold:l},a.getAxisLayout(u)),c=new LM(t,h);R(YL,c.add,c),this._axisGroup.add(c.getGroup()),this._refreshBrushController(h,s,t,o,l,n),Gh(r,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,n,i,r,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=Ne.create({x:a[0],y:-r/2,width:s,height:r});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:FL(u),isTargetByCursor:WL(u,o,i),getLinearBrushOtherExtent:HL(u,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(function(t){var e=t.axis;return N(t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}(n))},e.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,i=n.axis,r=N(e,(function(t){return[i.coordToData(t.range[0],!0),i.coordToData(t.range[1],!0)]}));(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:r})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Cg);var XL={type:"axisAreaSelect",event:"axisAreaSelected"};var jL={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function qL(t){t.registerComponentView(RD),t.registerComponentModel(zD),t.registerCoordinateSystem("parallel",QD),t.registerPreprocessor(OD),t.registerComponentModel(tL),t.registerComponentView(ZL),fM(t,"parallel",tL,jL),function(t){t.registerAction(XL,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),t.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))}(t)}var KL=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}}(),$L=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultShape=function(){return new KL},e.prototype.buildPath=function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},e.prototype.highlight=function(){Ll(this)},e.prototype.downplay=function(){kl(this)},e}(Cs),JL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return n(e,t),e.prototype.render=function(t,e,n){var i=this,r=t.getGraph(),o=this.group,a=t.layoutInfo,s=a.width,l=a.height,u=t.getData(),h=t.getData("edge"),c=t.get("orient");this._model=t,o.removeAll(),o.x=a.x,o.y=a.y,r.eachEdge((function(e){var n=new $L,i=el(n);i.dataIndex=e.dataIndex,i.seriesIndex=t.seriesIndex,i.dataType="edge";var r,a,u,d,p,f,g,v,m=e.getModel(),y=m.getModel("lineStyle"),x=y.get("curveness"),_=e.node1.getLayout(),b=e.node1.getModel(),w=b.get("localX"),S=b.get("localY"),M=e.node2.getLayout(),I=e.node2.getModel(),T=I.get("localX"),C=I.get("localY"),A=e.getLayout();n.shape.extent=Math.max(1,A.dy),n.shape.orient=c,"vertical"===c?(r=(null!=w?w*s:_.x)+A.sy,a=(null!=S?S*l:_.y)+_.dy,u=(null!=T?T*s:M.x)+A.ty,p=r,f=a*(1-x)+(d=null!=C?C*l:M.y)*x,g=u,v=a*x+d*(1-x)):(r=(null!=w?w*s:_.x)+_.dx,a=(null!=S?S*l:_.y)+A.sy,p=r*(1-x)+(u=null!=T?T*s:M.x)*x,f=a,g=r*x+u*(1-x),v=d=(null!=C?C*l:M.y)+A.ty),n.setShape({x1:r,y1:a,x2:u,y2:d,cpx1:p,cpy1:f,cpx2:g,cpy2:v}),n.useStyle(y.getItemStyle()),QL(n.style,c,e);var D=""+m.get("value"),L=ec(m,"edgeLabel");tc(n,L,{labelFetcher:{getFormattedLabel:function(e,n,i,r,o,a){return t.getFormattedLabel(e,n,"edge",r,it(o,L.normal&&L.normal.get("formatter"),D),a)}},labelDataIndex:e.dataIndex,defaultText:D}),n.setTextConfig({position:"inside"});var k=m.getModel("emphasis");jl(n,m,"lineStyle",(function(t){var n=t.getItemStyle();return QL(n,c,e),n})),o.add(n),h.setItemGraphicEl(e.dataIndex,n);var P=k.get("focus");Ul(n,"adjacency"===P?e.getAdjacentDataIndices():"trajectory"===P?e.getTrajectoryDataIndices():P,k.get("blurScope"),k.get("disabled"))})),r.eachNode((function(e){var n=e.getLayout(),i=e.getModel(),r=i.get("localX"),a=i.get("localY"),h=i.getModel("emphasis"),c=i.get(["itemStyle","borderRadius"])||0,d=new Bs({shape:{x:null!=r?r*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy,r:c},style:i.getModel("itemStyle").getItemStyle(),z2:10});tc(d,ec(i),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(e,n,"node")}},labelDataIndex:e.dataIndex,defaultText:e.id}),d.disableLabelAnimation=!0,d.setStyle("fill",e.getVisual("color")),d.setStyle("decal",e.getVisual("style").decal),jl(d,i),o.add(d),u.setItemGraphicEl(e.dataIndex,d),el(d).dataType="node";var p=h.get("focus");Ul(d,"adjacency"===p?e.getAdjacentDataIndices():"trajectory"===p?e.getTrajectoryDataIndices():p,h.get("blurScope"),h.get("disabled"))})),u.eachItemGraphicEl((function(e,r){u.getItemModel(r).get("draggable")&&(e.drift=function(e,o){i._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:u.getRawIndex(r),localX:this.shape.x/s,localY:this.shape.y/l})},e.ondragend=function(){i._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move")})),!this._data&&t.isAnimationEnabled()&&o.setClipPath(function(t,e,n){var i=new Bs({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return gh(i,{shape:{width:t.width+20}},e,n),i}(o.getBoundingRect(),t,(function(){o.removeClipPath()}))),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(kg);function QL(t,e,n){switch(t.fill){case"source":t.fill=n.node1.getVisual("color"),t.decal=n.node1.getVisual("style").decal;break;case"target":t.fill=n.node2.getVisual("color"),t.decal=n.node2.getVisual("style").decal;break;case"gradient":var i=n.node1.getVisual("color"),r=n.node2.getVisual("color");U(i)&&U(r)&&(t.fill=new nh(0,0,+("horizontal"===e),+("vertical"===e),[{color:i,offset:0},{color:r,offset:1}]))}}var tk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[],r=t.levels||[];this.levelModels=[];for(var o=this.levelModels,a=0;a<r.length;a++)null!=r[a].depth&&r[a].depth>=0&&(o[r[a].depth]=new Mc(r[a],this,e));return cD(i,n,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getData().getItemLayout(e);if(i){var r=i.depth,o=n.levelModels[r];o&&(t.parentModel=o)}return t})),e.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getGraph().getEdgeByIndex(e).node1.getLayout();if(i){var r=i.depth,o=n.levelModels[r];o&&(t.parentModel=o)}return t}))})).data},e.prototype.setNodePosition=function(t,e){var n=(this.option.data||this.option.nodes)[t];n.localX=e[0],n.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}if("edge"===n){var r=this.getDataParams(t,n),o=r.data,a=r.value;return ig("nameValue",{name:o.source+" -- "+o.target,value:a,noValue:i(a)})}var s=this.getGraph().getNodeByIndex(t).getLayout().value,l=this.getDataParams(t,n).data.name;return ig("nameValue",{name:null!=l?l+"":null,value:s,noValue:i(s)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(e).getLayout().value;i.value=r}return i},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(xg);function ek(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),i=t.get("nodeGap"),r=function(t,e){return Ad(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=r;var o=r.width,a=r.height,s=t.getGraph(),l=s.nodes,u=s.edges;!function(t){R(t,(function(t){var e=ck(t.outEdges,hk),n=ck(t.inEdges,hk),i=t.getValue()||0,r=Math.max(e,n,i);t.setLayout({value:r},!0)}))}(l),function(t,e,n,i,r,o,a,s,l){(function(t,e,n,i,r,o,a){for(var s=[],l=[],u=[],h=[],c=0,d=0;d<e.length;d++)s[d]=1;for(d=0;d<t.length;d++)l[d]=t[d].inEdges.length,0===l[d]&&u.push(t[d]);var p=-1;for(;u.length;){for(var f=0;f<u.length;f++){var g=u[f],v=g.hostGraph.data.getRawDataItem(g.dataIndex),m=null!=v.depth&&v.depth>=0;m&&v.depth>p&&(p=v.depth),g.setLayout({depth:m?v.depth:c},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var y=0;y<g.outEdges.length;y++){var x=g.outEdges[y];s[e.indexOf(x)]=0;var _=x.node2;0==--l[t.indexOf(_)]&&h.indexOf(_)<0&&h.push(_)}}++c,u=h,h=[]}for(d=0;d<s.length;d++)if(1===s[d])throw new Error("Sankey is a DAG, the original data has cycle!");var b=p>c-1?p:c-1;a&&"left"!==a&&function(t,e,n,i){if("right"===e){for(var r=[],o=t,a=0;o.length;){for(var s=0;s<o.length;s++){var l=o[s];l.setLayout({skNodeHeight:a},!0);for(var u=0;u<l.inEdges.length;u++){var h=l.inEdges[u];r.indexOf(h.node1)<0&&r.push(h.node1)}}o=r,r=[],++a}R(t,(function(t){nk(t)||t.setLayout({depth:Math.max(0,i-t.getLayout().skNodeHeight)},!0)}))}else"justify"===e&&function(t,e){R(t,(function(t){nk(t)||t.outEdges.length||t.setLayout({depth:e},!0)}))}(t,i)}(t,a,0,b);var w="vertical"===o?(r-n)/b:(i-n)/b;!function(t,e,n){R(t,(function(t){var i=t.getLayout().depth*e;"vertical"===n?t.setLayout({y:i},!0):t.setLayout({x:i},!0)}))}(t,w,o)})(t,e,n,r,o,s,l),function(t,e,n,i,r,o,a){var s=function(t,e){var n=[],i="vertical"===e?"y":"x",r=Wo(t,(function(t){return t.getLayout()[i]}));return r.keys.sort((function(t,e){return t-e})),R(r.keys,(function(t){n.push(r.buckets.get(t))})),n}(t,a);(function(t,e,n,i,r,o){var a=1/0;R(t,(function(t){var e=t.length,s=0;R(t,(function(t){s+=t.getLayout().value}));var l="vertical"===o?(i-(e-1)*r)/s:(n-(e-1)*r)/s;l<a&&(a=l)})),R(t,(function(t){R(t,(function(t,e){var n=t.getLayout().value*a;"vertical"===o?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))}))})),R(e,(function(t){var e=+t.getValue()*a;t.setLayout({dy:e},!0)}))})(s,e,n,i,r,a),ik(s,r,n,i,a);for(var l=1;o>0;o--)rk(s,l*=.99,a),ik(s,r,n,i,a),dk(s,l,a),ik(s,r,n,i,a)}(t,e,o,r,i,a,s),function(t,e){var n="vertical"===e?"x":"y";R(t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]}))})),R(t,(function(t){var e=0,n=0;R(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),R(t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}(t,s)}(l,u,n,i,o,a,0!==z(l,(function(t){return 0===t.getLayout().value})).length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))}))}function nk(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function ik(t,e,n,i,r){var o="vertical"===r?"x":"y";R(t,(function(t){var a,s,l;t.sort((function(t,e){return t.getLayout()[o]-e.getLayout()[o]}));for(var u=0,h=t.length,c="vertical"===r?"dx":"dy",d=0;d<h;d++)(l=u-(s=t[d]).getLayout()[o])>0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[c]+e;if((l=u-e-("vertical"===r?i:n))>0){a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(d=h-2;d>=0;--d)(l=(s=t[d]).getLayout()[o]+s.getLayout()[c]+e-u)>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}}))}function rk(t,e,n){R(t.slice().reverse(),(function(t){R(t,(function(t){if(t.outEdges.length){var i=ck(t.outEdges,ok,n)/ck(t.outEdges,hk);if(isNaN(i)){var r=t.outEdges.length;i=r?ck(t.outEdges,ak,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-uk(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-uk(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function ok(t,e){return uk(t.node2,e)*t.getValue()}function ak(t,e){return uk(t.node2,e)}function sk(t,e){return uk(t.node1,e)*t.getValue()}function lk(t,e){return uk(t.node1,e)}function uk(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function hk(t){return t.getValue()}function ck(t,e,n){for(var i=0,r=t.length,o=-1;++o<r;){var a=+e(t[o],n);isNaN(a)||(i+=a)}return i}function dk(t,e,n){R(t,(function(t){R(t,(function(t){if(t.inEdges.length){var i=ck(t.inEdges,sk,n)/ck(t.inEdges,hk);if(isNaN(i)){var r=t.inEdges.length;i=r?ck(t.inEdges,lk,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-uk(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-uk(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function pk(t){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph(),n=e.nodes,i=e.edges;if(n.length){var r=1/0,o=-1/0;R(n,(function(t){var e=t.getLayout().value;e<r&&(r=e),e>o&&(o=e)})),R(n,(function(e){var n=new zC({type:"color",mappingMethod:"linear",dataExtent:[r,o],visual:t.get("color")}).mapValueToVisual(e.getLayout().value),i=e.getModel().get(["itemStyle","color"]);null!=i?(e.setVisual("color",i),e.setVisual("style",{fill:i})):(e.setVisual("color",n),e.setVisual("style",{fill:n}))}))}i.length&&R(i,(function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)}))}))}var fk=function(){function t(){}return t.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&null!=e.get(t)},t.prototype.getInitialData=function(t,e){var n,i,r=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(t.layout="horizontal",n=r.getOrdinalMeta(),i=!this._hasEncodeRule("x")):"category"===s?(t.layout="vertical",n=o.getOrdinalMeta(),i=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var l=["x","y"],u="horizontal"===t.layout?0:1,h=this._baseAxisDim=l[u],c=l[1-u],d=[r,o],p=d[u].get("type"),f=d[1-u].get("type"),g=t.data;if(g&&i){var v=[];R(g,(function(t,e){var n;H(t)?(n=t.slice(),t.unshift(e)):H(t.value)?((n=C({},t)).value=n.value.slice(),t.value.unshift(e)):n=t,v.push(n)})),t.data=v}var m=this.defaultValueDimensions,y=[{name:h,type:Fy(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:Fy(f),dimsDef:m.slice()}];return $S(this,{coordDimensions:y,dimensionsCount:m.length+1,encodeDefaulter:F(Jd,y,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),gk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return n(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(xg);P(gk,fk,!0);var vk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===t.get("layout")?1:0;i.diff(o).add((function(t){if(i.hasValue(t)){var e=xk(i.getItemLayout(t),i,t,a,!0);i.setItemGraphicEl(t,e),r.add(e)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?(_h(n),_k(s,n,i,t)):n=xk(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=i},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},e.type="boxplot",e}(kg),mk=function(){return function(){}}(),yk=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return n(e,t),e.prototype.getDefaultShape=function(){return new mk},e.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),i++,t.lineTo(n[i][0],n[i][1])},e}(Cs);function xk(t,e,n,i,r){var o=t.ends,a=new yk({shape:{points:r?bk(o,i,t):o}});return _k(t,a,e,n,r),a}function _k(t,e,n,i,r){var o=n.hostModel;(0,Kh[r?"initProps":"updateProps"])(e,{shape:{points:t.ends}},o,i),e.useStyle(n.getItemVisual(i,"style")),e.style.strokeNoScale=!0,e.z2=100;var a=n.getItemModel(i),s=a.getModel("emphasis");jl(e,a),Ul(e,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function bk(t,e,n){return N(t,(function(t){return(t=t.slice())[e]=n.initBaseline,t}))}var wk=R;function Sk(t){var e=function(t){var e=[],n=[];return t.eachSeriesByType("boxplot",(function(t){var i=t.getBaseAxis(),r=L(n,i);r<0&&(r=n.length,n[r]=i,e[r]={axis:i,seriesModels:[]}),e[r].seriesModels.push(t)})),e}(t);wk(e,(function(t){var e=t.seriesModels;e.length&&(!function(t){var e,n=t.axis,i=t.seriesModels,r=i.length,o=t.boxWidthList=[],a=t.boxOffsetList=[],s=[];if("category"===n.type)e=n.getBandWidth();else{var l=0;wk(i,(function(t){l=Math.max(l,t.getData().count())}));var u=n.getExtent();e=Math.abs(u[1]-u[0])/l}wk(i,(function(t){var n=t.get("boxWidth");H(n)||(n=[n,n]),s.push([qr(n[0],e)||0,qr(n[1],e)||0])}));var h=.8*e-2,c=h/r*.3,d=(h-c*(r-1))/r,p=d/2-h/2;wk(i,(function(t,e){a.push(p),p+=c+d,o.push(Math.min(Math.max(d,s[e][0]),s[e][1]))}))}(t),wk(e,(function(e,n){!function(t,e,n){var i=t.coordinateSystem,r=t.getData(),o=n/2,a="horizontal"===t.get("layout")?0:1,s=1-a,l=["x","y"],u=r.mapDimension(l[a]),h=r.mapDimensionsAll(l[s]);if(null==u||h.length<5)return;for(var c=0;c<r.count();c++){var d=r.get(u,c),p=x(d,h[2],c),f=x(d,h[0],c),g=x(d,h[1],c),v=x(d,h[3],c),m=x(d,h[4],c),y=[];_(y,g,!1),_(y,v,!0),y.push(f,g,m,v),b(y,f),b(y,m),b(y,p),r.setItemLayout(c,{initBaseline:p[s],ends:y})}function x(t,n,o){var l,u=r.get(n,o),h=[];return h[a]=t,h[s]=u,isNaN(t)||isNaN(u)?l=[NaN,NaN]:(l=i.dataToPoint(h))[a]+=e,l}function _(t,e,n){var i=e.slice(),r=e.slice();i[a]+=o,r[a]-=o,n?t.push(i,r):t.push(r,i)}function b(t,e){var n=e.slice(),i=e.slice();n[a]-=o,i[a]+=o,t.push(n,i)}}(e,t.boxOffsetList[n],t.boxWidthList[n])})))}))}var Mk={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==Fd){xo("")}var n=function(t,e){for(var n=[],i=[],r=(e=e||{}).boundIQR,o="none"===r||0===r,a=0;a<t.length;a++){var s=$r(t[a].slice()),l=co(s,.25),u=co(s,.5),h=co(s,.75),c=s[0],d=s[s.length-1],p=(null==r?1.5:r)*(h-l),f=o?c:Math.max(c,l-p),g=o?d:Math.min(d,h+p),v=e.itemNameFormatter,m=W(v)?v({value:a}):U(v)?v.replace("{value}",a+""):a+"";n.push([m,f,l,u,h,g]);for(var y=0;y<s.length;y++){var x=s[y];if(x<f||x>g){var _=[m,x];i.push(_)}}}return{boxData:n,outliers:i}}(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};var Ik=["itemStyle","borderColor"],Tk=["itemStyle","borderColor0"],Ck=["itemStyle","borderColorDoji"],Ak=["itemStyle","color"],Dk=["itemStyle","color0"];function Lk(t,e){return e.get(t>0?Ak:Dk)}function kk(t,e){return e.get(0===t?Ck:t>0?Ik:Tk)}var Pk={seriesType:"candlestick",plan:Ag(),performRawSeries:!0,reset:function(t,e){if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var n;null!=(n=t.next());){var i=e.getItemModel(n),r=e.getItemLayout(n).sign,o=i.getItemStyle();o.fill=Lk(r,i),o.stroke=kk(r,i)||o.fill,C(e.ensureUniqueItemVisual(n,"style"),o)}}}}},Ok=["color","borderColor"],Rk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){qh(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,i=this.group,r=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),e.diff(n).add((function(n){if(e.hasValue(n)){var a=e.getItemLayout(n);if(o&&Vk(s,a))return;var l=zk(a,n,!0);gh(l,{shape:{points:a.ends}},t,n),Bk(l,e,n,r),i.add(l),e.setItemGraphicEl(n,l)}})).update((function(a,l){var u=n.getItemGraphicEl(l);if(e.hasValue(a)){var h=e.getItemLayout(a);o&&Vk(s,h)?i.remove(u):(u?(fh(u,{shape:{points:h.ends}},t,a),_h(u)):u=zk(h),Bk(u,e,a,r),i.add(u),e.setItemGraphicEl(a,u))}else i.remove(u)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),Wk(t,this.group);var e=t.get("clip",!0)?Xw(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){for(var n,i=e.getData(),r=i.getLayout("isSimpleBox");null!=(n=t.next());){var o=zk(i.getItemLayout(n));Bk(o,i,n,r),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},e.prototype._incrementalRenderLarge=function(t,e){Wk(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(kg),Nk=function(){return function(){}}(),Ek=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return n(e,t),e.prototype.getDefaultShape=function(){return new Nk},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(Cs);function zk(t,e,n){var i=t.ends;return new Ek({shape:{points:n?Gk(i,t):i},z2:100})}function Vk(t,e){for(var n=!0,i=0;i<e.ends.length;i++)if(t.contain(e.ends[i][0],e.ends[i][1])){n=!1;break}return n}function Bk(t,e,n,i){var r=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=i,jl(t,r);var o=e.getItemLayout(n).sign;R(t.states,(function(t,e){var n=r.getModel(e),i=Lk(o,n),a=kk(o,n)||i,s=t.style||(t.style={});i&&(s.fill=i),a&&(s.stroke=a)}));var a=r.getModel("emphasis");Ul(t,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function Gk(t,e){return N(t,(function(t){return(t=t.slice())[1]=e.initBaseline,t}))}var Fk=function(){return function(){}}(),Hk=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeCandlestickBox",n}return n(e,t),e.prototype.getDefaultShape=function(){return new Fk},e.prototype.buildPath=function(t,e){for(var n=e.points,i=0;i<n.length;)if(this.__sign===n[i++]){var r=n[i++];t.moveTo(r,n[i++]),t.lineTo(r,n[i++])}else i+=3},e}(Cs);function Wk(t,e,n,i){var r=t.getData().getLayout("largePoints"),o=new Hk({shape:{points:r},__sign:1,ignoreCoarsePointer:!0});e.add(o);var a=new Hk({shape:{points:r},__sign:-1,ignoreCoarsePointer:!0});e.add(a);var s=new Hk({shape:{points:r},__sign:0,ignoreCoarsePointer:!0});e.add(s),Uk(1,o,t),Uk(-1,a,t),Uk(0,s,t),i&&(o.incremental=!0,a.incremental=!0),n&&n.push(o,a)}function Uk(t,e,n,i){var r=kk(t,n)||Lk(t,n),o=n.getModel("itemStyle").getItemStyle(Ok);e.useStyle(o),e.style.fill=null,e.style.stroke=r}var Yk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return n(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var i=e.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(xg);function Zk(t){t&&H(t.series)&&R(t.series,(function(t){X(t)&&"k"===t.type&&(t.type="candlestick")}))}P(Yk,fk,!0);var Xk={seriesType:"candlestick",plan:Ag(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),i=function(t,e){var n,i=t.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=qr(nt(t.get("barMaxWidth"),r),r),a=qr(nt(t.get("barMinWidth"),1),r),s=t.get("barWidth");return null!=s?qr(s,r):Math.max(Math.min(r/2,o),a)}(t,n),r=["x","y"],o=n.getDimensionIndex(n.mapDimension(r[0])),a=N(n.mapDimensionsAll(r[1]),n.getDimensionIndex,n),s=a[0],l=a[1],u=a[2],h=a[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(o<0||a.length<4))return{progress:t.pipelineContext.large?function(n,i){var r,a,c=zx(4*n.count),d=0,p=[],f=[],g=i.getStore(),v=!!t.get(["itemStyle","borderColorDoji"]);for(;null!=(a=n.next());){var m=g.get(o,a),y=g.get(s,a),x=g.get(l,a),_=g.get(u,a),b=g.get(h,a);isNaN(m)||isNaN(_)||isNaN(b)?(c[d++]=NaN,d+=3):(c[d++]=jk(g,a,y,x,l,v),p[0]=m,p[1]=_,r=e.dataToPoint(p,null,f),c[d++]=r?r[0]:NaN,c[d++]=r?r[1]:NaN,p[1]=b,r=e.dataToPoint(p,null,f),c[d++]=r?r[1]:NaN)}i.setLayout("largePoints",c)}:function(t,n){var r,a=n.getStore();for(;null!=(r=t.next());){var c=a.get(o,r),d=a.get(s,r),p=a.get(l,r),f=a.get(u,r),g=a.get(h,r),v=Math.min(d,p),m=Math.max(d,p),y=M(v,c),x=M(m,c),_=M(f,c),b=M(g,c),w=[];I(w,x,0),I(w,y,1),w.push(C(b),C(x),C(_),C(y));var S=!!n.getItemModel(r).get(["itemStyle","borderColorDoji"]);n.setItemLayout(r,{sign:jk(a,r,d,p,l,S),initBaseline:d>p?x[1]:y[1],ends:w,brushRect:T(f,g,c)})}function M(t,n){var i=[];return i[0]=n,i[1]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function I(t,e,n){var r=e.slice(),o=e.slice();r[0]=Nh(r[0]+i/2,1,!1),o[0]=Nh(o[0]-i/2,1,!0),n?t.push(r,o):t.push(o,r)}function T(t,e,n){var r=M(t,n),o=M(e,n);return r[0]-=i/2,o[0]-=i/2,{x:r[0],y:r[1],width:i,height:o[1]-r[1]}}function C(t){return t[0]=Nh(t[0],1),t}}}}};function jk(t,e,n,i,r,o){return n>i?-1:n<i?1:o?0:e>0?t.get(r,e-1)<=i?1:-1:1}function qk(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}var Kk=function(t){function e(e,n){var i=t.call(this)||this,r=new Dw(e,n),o=new zr;return i.add(r),i.add(o),i.updateData(e,n),i}return n(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=t.rippleNumber,r=this.childAt(1),o=0;o<i;o++){var a=Wv(e,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-o/i*t.period+t.effectOffset;a.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),r.add(a)}qk(r,t)},e.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],r=0;r<i.length;r++){var o=i[r];if(e[o]!==t[o])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}qk(n,t)},e.prototype.highlight=function(){Ll(this)},e.prototype.downplay=function(){kl(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,e){var n=this,i=t.hostModel;this.childAt(0).updateData(t,e);var r=this.childAt(1),o=t.getItemModel(e),a=t.getItemVisual(e,"symbol"),s=Uv(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"style"),u=l&&l.fill,h=o.getModel("emphasis");r.setScale(s),r.traverse((function(t){t.setStyle("fill",u)}));var c=Yv(t.getItemVisual(e,"symbolOffset"),s);c&&(r.x=c[0],r.y=c[1]);var d=t.getItemVisual(e,"symbolRotate");r.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=o.get(["rippleEffect","scale"]),p.brushType=o.get(["rippleEffect","brushType"]),p.period=1e3*o.get(["rippleEffect","period"]),p.effectOffset=e/t.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=a,p.color=u,p.rippleEffectColor=o.get(["rippleEffect","color"]),p.rippleNumber=o.get(["rippleEffect","number"]),"render"===p.showEffectOn?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(t){"emphasis"===t?"render"!==p.showEffectOn&&n.startEffectAnimation(p):"normal"===t&&"render"!==p.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=p,Ul(this,h.get("focus"),h.get("blurScope"),h.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(zr),$k=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.init=function(){this._symbolDraw=new Rw(Kk)},e.prototype.render=function(t,e,n){var i=t.getData(),r=this._symbolDraw;r.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(r.group)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype.updateTransform=function(t,e,n){var i=t.getData();this.group.dirty();var r=aS("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var e=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=Me(e.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(kg),Jk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return n(e,t),e.prototype.getInitialData=function(t,e){return yx(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(xg);var Qk=function(t){function e(e,n,i){var r=t.call(this)||this;return r.add(r.createLine(e,n,i)),r._updateEffectSymbol(e,n),r}return n(e,t),e.prototype.createLine=function(t,e,n){return new KA(t,e,n)},e.prototype._updateEffectSymbol=function(t,e){var n=t.getItemModel(e).getModel("effect"),i=n.get("symbolSize"),r=n.get("symbol");H(i)||(i=[i,i]);var o=t.getItemVisual(e,"style"),a=n.get("color")||o&&o.stroke,s=this.childAt(1);this._symbolType!==r&&(this.remove(s),(s=Wv(r,-.5,-.5,1,1,a)).z2=100,s.culling=!0,this.add(s)),s&&(s.setStyle("shadowColor",a),s.setStyle(n.getItemStyle(["color"])),s.scaleX=i[0],s.scaleY=i[1],s.setColor(a),this._symbolType=r,this._symbolScale=i,this._updateEffectAnimation(t,n,e))},e.prototype._updateEffectAnimation=function(t,e,n){var i=this.childAt(1);if(i){var r=t.getItemLayout(n),o=1e3*e.get("period"),a=e.get("loop"),s=e.get("roundTrip"),l=e.get("constantSpeed"),u=et(e.get("delay"),(function(e){return e/t.count()*o/3}));if(i.ignore=!0,this._updateAnimationPoints(i,r),l>0&&(o=this._getLineLength(i)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){i.stopAnimation();var h=void 0;h=W(u)?u(n):u,i.__t>0&&(h=-o*i.__t),this._animateSymbol(i,o,h,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},e.prototype._animateSymbol=function(t,e,n,i,r){if(e>0){t.__t=0;var o=this,a=t.animate("",i).when(r?2*e:e,{__t:r?2:1}).delay(n).during((function(){o._updateSymbolPosition(t)}));i||a.done((function(){o.remove(t)})),a.start()}},e.prototype._getLineLength=function(t){return Et(t.__p1,t.__cp1)+Et(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t<1?t.__t:2-t.__t,o=[t.x,t.y],a=o.slice(),s=Sn,l=Mn;o[0]=s(e[0],i[0],n[0],r),o[1]=s(e[1],i[1],n[1],r);var u=t.__t<1?l(e[0],i[0],n[0],r):l(n[0],i[0],e[0],1-r),h=t.__t<1?l(e[1],i[1],n[1],r):l(n[1],i[1],e[1],1-r);t.rotation=-Math.atan2(h,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT<t.__t?(t.scaleY=1.05*Et(a,o),1===r&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)):1===t.__lastT?t.scaleY=2*Et(e,o):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=o[0],t.y=o[1]},e.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},e}(zr),tP=function(t){function e(e,n,i){var r=t.call(this)||this;return r._createPolyline(e,n,i),r}return n(e,t),e.prototype._createPolyline=function(t,e,n){var i=t.getItemLayout(e),r=new Uu({shape:{points:i}});this.add(r),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel;fh(this.childAt(0),{shape:{points:t.getItemLayout(e)}},i,e),this._updateCommonStl(t,e,n)},e.prototype._updateCommonStl=function(t,e,n){var i=this.childAt(0),r=t.getItemModel(e),o=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var u=r.getModel("emphasis");o=u.getModel("lineStyle").getLineStyle(),l=u.get("disabled"),a=u.get("focus"),s=u.get("blurScope")}i.useStyle(t.getItemVisual(e,"style")),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=o,Ul(this,a,s,l)},e.prototype.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},e}(zr),eP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return n(e,t),e.prototype.createLine=function(t,e,n){return new tP(t,e,n)},e.prototype._updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,r=1;r<e.length;r++){var o=e[r-1],a=e[r];i+=Et(o,a),n.push(i)}if(0!==i){for(r=0;r<n.length;r++)n[r]/=i;this._offsets=n,this._length=i}else this._length=0},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var e=t.__t<1?t.__t:2-t.__t,n=this._points,i=this._offsets,r=n.length;if(i){var o,a=this._lastFrame;if(e<this._lastFramePercent){for(o=Math.min(a+1,r-1);o>=0&&!(i[o]<=e);o--);o=Math.min(o,r-2)}else{for(o=a;o<r&&!(i[o]>e);o++);o=Math.min(o-1,r-2)}var s=(e-i[o])/(i[o+1]-i[o]),l=n[o],u=n[o+1];t.x=l[0]*(1-s)+s*u[0],t.y=l[1]*(1-s)+s*u[1];var h=t.__t<1?u[0]-l[0]:l[0]-u[0],c=t.__t<1?u[1]-l[1]:l[1]-u[1];t.rotation=-Math.atan2(c,h)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(Qk),nP=function(){return function(){this.polyline=!1,this.curveness=0,this.segs=[]}}(),iP=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return n(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new nP},e.prototype.buildPath=function(t,e){var n,i=e.segs,r=e.curveness;if(e.polyline)for(n=this._off;n<i.length;){var o=i[n++];if(o>0){t.moveTo(i[n++],i[n++]);for(var a=1;a<o;a++)t.lineTo(i[n++],i[n++])}}else for(n=this._off;n<i.length;){var s=i[n++],l=i[n++],u=i[n++],h=i[n++];if(t.moveTo(s,l),r>0){var c=(s+u)/2-(l-h)*r,d=(l+h)/2-(u-s)*r;t.quadraticCurveTo(c,d,u,h)}else t.lineTo(u,h)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<i.length;){var l=i[s++];if(l>0)for(var u=i[s++],h=i[s++],c=1;c<l;c++){if(ls(u,h,d=i[s++],p=i[s++],o,t,e))return a}a++}else for(a=0,s=0;s<i.length;){u=i[s++],h=i[s++];var d=i[s++],p=i[s++];if(r>0){if(hs(u,h,(u+d)/2-(h-p)*r,(h+p)/2-(d-u)*r,d,p,o,t,e))return a}else if(ls(u,h,d,p,o,t,e))return a;a++}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return t=n[0],e=n[1],i.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape.segs,n=1/0,i=1/0,r=-1/0,o=-1/0,a=0;a<e.length;){var s=e[a++],l=e[a++];n=Math.min(s,n),r=Math.max(s,r),i=Math.min(l,i),o=Math.max(l,o)}t=this._rect=new Ne(n,i,r,o)}return t},e}(Cs),rP=function(){function t(){this.group=new zr}return t.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(t,e){var n=this._newAdded[0],i=e.getLayout("linesPoints"),r=n&&n.shape.segs;if(r&&r.length<2e4){var o=r.length,a=new Float32Array(o+i.length);a.set(r),a.set(i,o),n.setShape({segs:a})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:i}),this._setCommon(s,e),s.__startIndex=t.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new iP({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("style");r&&r.stroke&&t.setStyle("stroke",r.stroke),t.setStyle("fill",null);var o=el(t);o.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){o.dataIndex=null;var n=t.hoverDataIdx;n>0&&(o.dataIndex=n+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),oP={seriesType:"lines",plan:Ag(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),i=t.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,h=r.start;h<r.end;h++)u+=t.getLineCoordsCount(h);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var c=0,d=[];for(h=r.start;h<r.end;h++){var p=t.getLineCoords(h,a);n&&(s[c++]=p);for(var f=0;f<p;f++)d=e.dataToPoint(a[f],!1,d),s[c++]=d[0],s[c++]=d[1]}o.setLayout("linesPoints",s)}else for(h=r.start;h<r.end;h++){var g=o.getItemModel(h),v=(p=t.getLineCoords(h,a),[]);if(n)for(var m=0;m<p;m++)v.push(e.dataToPoint(a[m]));else{v[0]=e.dataToPoint(a[0]),v[1]=e.dataToPoint(a[1]);var y=g.get(["lineStyle","curveness"]);+y&&(v[2]=[(v[0][0]+v[1][0])/2-(v[0][1]-v[1][1])*y,(v[0][1]+v[1][1])/2-(v[1][0]-v[0][0])*y])}o.setItemLayout(h,v)}}}}}},aP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t),o=t.get("zlevel"),a=t.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a>0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var u=t.get("clip",!0)&&Xw(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,n){var i=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=oP.reset(t,e,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,i=this._showEffect(e),r=!!e.get("polyline"),o=e.pipelineContext.large;return n&&i===this._hasEffet&&r===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new rP:new $A(r?i?eP:tP:i?Qk:KA),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=o),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr();"svg"===e.painter.getType()||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}(kg),sP="undefined"==typeof Uint32Array?Array:Uint32Array,lP="undefined"==typeof Float64Array?Array:Float64Array;function uP(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=N(e,(function(t){var e={coords:[t[0].coord,t[1].coord]};return t[0].name&&(e.fromName=t[0].name),t[1].name&&(e.toName=t[1].name),T([e,t[0],t[1]])})))}var hP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return n(e,t),e.prototype.init=function(e){e.data=e.data||[],uP(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(uP(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=gt(this._flatCoords,e.flatCoords),this._flatCoordsOffset=gt(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t);return e.option instanceof Array?e.option:e.getShallow("coords")},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;r<i;r++)e[r]=e[r]||[],e[r][0]=this._flatCoords[n+2*r],e[r][1]=this._flatCoords[n+2*r+1];return i}var o=this._getCoordsFromItemModel(t);for(r=0;r<o.length;r++)e[r]=e[r]||[],e[r][0]=o[r][0],e[r][1]=o[r][1];return o.length},e.prototype._processFlatCoordsArray=function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),Z(t[0])){for(var n=t.length,i=new sP(n),r=new lP(n),o=0,a=0,s=0,l=0;l<n;){s++;var u=t[l++];i[a++]=o+e,i[a++]=u;for(var h=0;h<u;h++){var c=t[l++],d=t[l++];r[o++]=c,r[o++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,e){var n=new lx(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],(function(t,e,i,r){if(t instanceof Array)return NaN;n.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[r]:o:void 0})),n},e.prototype.formatTooltip=function(t,e,n){var i=this.getData().getItemModel(t),r=i.get("name");if(r)return r;var o=i.get("fromName"),a=i.get("toName"),s=[];return null!=o&&s.push(o),null!=a&&s.push(a),ig("nameValue",{name:s.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(xg);function cP(t){return t instanceof Array||(t=[t,t]),t}var dP={seriesType:"lines",reset:function(t){var e=cP(t.get("symbol")),n=cP(t.get("symbolSize")),i=t.getData();return i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?function(t,e){var n=t.getItemModel(e),i=cP(n.getShallow("symbol",!0)),r=cP(n.getShallow("symbolSize",!0));i[0]&&t.setItemVisual(e,"fromSymbol",i[0]),i[1]&&t.setItemVisual(e,"toSymbol",i[1]),r[0]&&t.setItemVisual(e,"fromSymbolSize",r[0]),r[1]&&t.setItemVisual(e,"toSymbolSize",r[1])}:null}}};var pP=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=l.createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,h=this.canvas,c=h.getContext("2d"),d=t.length;h.width=e,h.height=n;for(var p=0;p<d;++p){var f=t[p],g=f[0],v=f[1],m=i(f[2]);c.globalAlpha=m,c.drawImage(a,g-u,v-u)}if(!h.width||!h.height)return h;for(var y=c.getImageData(0,0,h.width,h.height),x=y.data,_=0,b=x.length,w=this.minOpacity,S=this.maxOpacity-w;_<b;){m=x[_+3]/256;var M=4*Math.floor(255*m);if(m>0){var I=o(m)?s:l;m>0&&(m=m*S+w),x[_++]=I[M],x[_++]=I[M+1],x[_++]=I[M+2],x[_++]=I[M+3]*m*256}else _+=4}return c.putImageData(y,0,0),h},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=l.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},t}();function fP(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var gP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.render=function(t,e,n){var i;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(i=e)}))})),this._progressiveEls=null,this.group.removeAll();var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):fP(r)&&this._renderOnGeo(r,t,i,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,i){var r=e.coordinateSystem;r&&(fP(r)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){qh(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,r){var o,a,s,l,u=t.coordinateSystem,h=jw(u,"cartesian2d");if(h){var c=u.getAxis("x"),d=u.getAxis("y");o=c.getBandWidth()+.5,a=d.getBandWidth()+.5,s=c.scale.getExtent(),l=d.scale.getExtent()}for(var p=this.group,f=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),v=t.getModel(["blur","itemStyle"]).getItemStyle(),m=t.getModel(["select","itemStyle"]).getItemStyle(),y=t.get(["itemStyle","borderRadius"]),x=ec(t),_=t.getModel("emphasis"),b=_.get("focus"),w=_.get("blurScope"),S=_.get("disabled"),M=h?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],I=n;I<i;I++){var T=void 0,C=f.getItemVisual(I,"style");if(h){var A=f.get(M[0],I),D=f.get(M[1],I);if(isNaN(f.get(M[2],I))||isNaN(A)||isNaN(D)||A<s[0]||A>s[1]||D<l[0]||D>l[1])continue;var L=u.dataToPoint([A,D]);T=new Bs({shape:{x:L[0]-o/2,y:L[1]-a/2,width:o,height:a},style:C})}else{if(isNaN(f.get(M[1],I)))continue;T=new Bs({z2:1,shape:u.dataToRect([f.get(M[0],I)]).contentShape,style:C})}if(f.hasItemOption){var k=f.getItemModel(I),P=k.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),v=k.getModel(["blur","itemStyle"]).getItemStyle(),m=k.getModel(["select","itemStyle"]).getItemStyle(),y=k.get(["itemStyle","borderRadius"]),b=P.get("focus"),w=P.get("blurScope"),S=P.get("disabled"),x=ec(k)}T.shape.r=y;var O=t.getRawValue(I),R="-";O&&null!=O[2]&&(R=O[2]+""),tc(T,x,{labelFetcher:t,labelDataIndex:I,defaultOpacity:C.opacity,defaultText:R}),T.ensureState("emphasis").style=g,T.ensureState("blur").style=v,T.ensureState("select").style=m,Ul(T,b,w,S),T.incremental=r,r&&(T.states.emphasis.hoverLayer=!0),p.add(T),f.setItemGraphicEl(I,T),this._progressiveEls&&this._progressiveEls.push(T)}},e.prototype._renderOnGeo=function(t,e,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new pP;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),u=t.getRoamTransform();l.applyTransform(u);var h=Math.max(l.x,0),c=Math.max(l.y,0),d=Math.min(l.width+l.x,i.getWidth()),p=Math.min(l.height+l.y,i.getHeight()),f=d-h,g=p-c,v=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],m=a.mapArray(v,(function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=h,r[1]-=c,r.push(i),r})),y=n.getExtent(),x="visualMap.continuous"===n.type?function(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}(y,n.option.range):function(t,e,n){var i=t[1]-t[0],r=(e=N(e,(function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}}))).length,o=0;return function(t){var i;for(i=o;i<r;i++)if((a=e[i].interval)[0]<=t&&t<=a[1]){o=i;break}if(i===r)for(i=o-1;i>=0;i--){var a;if((a=e[i].interval)[0]<=t&&t<=a[1]){o=i;break}}return i>=0&&i<r&&n[i]}}(y,n.getPieceList(),n.option.selected);s.update(m,f,g,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:o.color.getColorMapper()},x);var _=new Ps({style:{width:f,height:g,x:h,y:c,image:s.canvas},silent:!0});this.group.add(_)},e.type="heatmap",e}(kg),vP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.getInitialData=function(t,e){return yx(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=_p.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(xg);var mP=["itemStyle","borderWidth"],yP=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],xP=new _u,_P=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.render=function(t,e,n){var i=this.group,r=t.getData(),o=this._data,a=t.coordinateSystem,s=a.getBaseAxis().isHorizontal(),l=a.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:yP[+s],categoryDim:yP[1-+s]};r.diff(o).add((function(t){if(r.hasValue(t)){var e=AP(r,t),n=bP(r,t,e,u),o=kP(r,u,n);r.setItemGraphicEl(t,o),i.add(o),EP(o,u,n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(r.hasValue(t)){var a=AP(r,t),s=bP(r,t,a,u),l=OP(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(t,null),n=null),n?function(t,e,n){var i=n.animationModel,r=n.dataIndex,o=t.__pictorialBundle;fh(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,r),n.symbolRepeat?MP(t,e,n,!0):IP(t,e,n,!0);TP(t,n,!0),CP(t,e,n,!0)}(n,u,s):n=kP(r,u,s,!0),r.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,i.add(n),EP(n,u,s)}else i.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&PP(o,t,e.__pictorialSymbolMeta.animationModel,e)})).execute();var h=t.get("clip",!0)?Xw(t.coordinateSystem,!1,t):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=r,this.group},e.prototype.remove=function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl((function(e){PP(i,el(e).dataIndex,t,e)})):n.removeAll()},e.type="pictorialBar",e}(kg);function bP(t,e,n,i){var r=t.getItemLayout(e),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=(n.get("symbolRotate")||0)*Math.PI/180||0,u=n.get("symbolPatternSize")||2,h=n.isAnimationEnabled(),c={dataIndex:e,layout:r,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:l,animationModel:h?n:null,hoverScale:h&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};!function(t,e,n,i,r){var o,a=i.valueDim,s=t.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),h=1-+(n[a.wh]<=0);if(H(s)){var c=[wP(l,s[0])-u,wP(l,s[1])-u];c[1]<c[0]&&c.reverse(),o=c[h]}else o=null!=s?wP(l,s)-u:e?i.coordSysExtent[a.index][h]-u:n[a.wh];r.boundingLength=o,e&&(r.repeatCutLength=n[a.wh]);var d="x"===a.xy,p=l.inverse;r.pxSign=d&&!p||!d&&p?o>=0?1:-1:o>0?1:-1}(n,o,r,i,c),function(t,e,n,i,r,o,a,s,l,u){var h,c=l.valueDim,d=l.categoryDim,p=Math.abs(n[d.wh]),f=t.getItemVisual(e,"symbolSize");h=H(f)?f.slice():null==f?["100%","100%"]:[f,f];h[d.index]=qr(h[d.index],p),h[c.index]=qr(h[c.index],i?p:Math.abs(o)),u.symbolSize=h;var g=u.symbolScale=[h[0]/s,h[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*a}(t,e,r,o,0,c.boundingLength,c.pxSign,u,i,c),function(t,e,n,i,r){var o=t.get(mP)||0;o&&(xP.attr({scaleX:e[0],scaleY:e[1],rotation:n}),xP.updateTransform(),o/=xP.getLineScale(),o*=e[i.valueDim.index]);r.valueLineWidth=o||0}(n,c.symbolScale,l,i,c);var d=c.symbolSize,p=Yv(n.get("symbolOffset"),d);return function(t,e,n,i,r,o,a,s,l,u,h,c){var d=h.categoryDim,p=h.valueDim,f=c.pxSign,g=Math.max(e[p.index]+s,0),v=g;if(i){var m=Math.abs(l),y=et(t.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1));var _=qr(y,e[p.index]),b=Math.max(g+2*_,0),w=x?0:2*_,S=go(i),M=S?i:zP((m+w)/b);b=g+2*(_=(m-M*g)/2/(x?M:Math.max(M-1,1))),w=x?0:2*_,S||"fixed"===i||(M=u?zP((Math.abs(u)+w)/b):0),v=M*b-w,c.repeatTimes=M,c.symbolMargin=_}var I=f*(v/2),T=c.pathPosition=[];T[d.index]=n[d.wh]/2,T[p.index]="start"===a?I:"end"===a?l-I:l/2,o&&(T[0]+=o[0],T[1]+=o[1]);var A=c.bundlePosition=[];A[d.index]=n[d.xy],A[p.index]=n[p.xy];var D=c.barRectShape=C({},n);D[p.wh]=f*Math.max(Math.abs(n[p.wh]),Math.abs(T[p.index]+I)),D[d.wh]=n[d.wh];var L=c.clipShape={};L[d.xy]=-n[d.xy],L[d.wh]=h.ecSize[d.wh],L[p.xy]=0,L[p.wh]=n[p.wh]}(n,d,r,o,0,p,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,i,c),c}function wP(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function SP(t){var e=t.symbolPatternSize,n=Wv(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function MP(t,e,n,i){var r=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,h=0,c=o[e.valueDim.index]+a+2*n.symbolMargin;for(RP(t,(function(t){t.__pictorialAnimationIndex=h,t.__pictorialRepeatTimes=u,h<u?NP(t,null,f(h),n,i):NP(t,null,{scaleX:0,scaleY:0},n,i,(function(){r.remove(t)})),h++}));h<u;h++){var d=SP(n);d.__pictorialAnimationIndex=h,d.__pictorialRepeatTimes=u,r.add(d);var p=f(h);NP(d,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,i)}function f(t){var e=s.slice(),i=n.pxSign,r=t;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(r=u-1-t),e[l.index]=c*(r-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function IP(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?NP(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=t.__pictorialMainPath=SP(n),r.add(o),NP(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function TP(t,e,n){var i=C({},e.barRectShape),r=t.__pictorialBarRect;r?NP(r,null,{shape:i},e,n):((r=t.__pictorialBarRect=new Bs({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,t.add(r))}function CP(t,e,n,i){if(n.symbolClip){var r=t.__pictorialClipPath,o=C({},n.clipShape),a=e.valueDim,s=n.animationModel,l=n.dataIndex;if(r)fh(r,{shape:o},s,l);else{o[a.wh]=0,r=new Bs({shape:o}),t.__pictorialBundle.setClipPath(r),t.__pictorialClipPath=r;var u={};u[a.wh]=n.clipShape[a.wh],Kh[i?"updateProps":"initProps"](r,{shape:u},s,l)}}}function AP(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=DP,n.isAnimationEnabled=LP,n}function DP(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function LP(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function kP(t,e,n,i){var r=new zr,o=new zr;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?MP(r,e,n):IP(r,0,n),TP(r,n,i),CP(r,e,n,i),r.__pictorialShapeStr=OP(t,n),r.__pictorialSymbolMeta=n,r}function PP(t,e,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];RP(i,(function(t){o.push(t)})),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),R(o,(function(t){mh(t,{scaleX:0,scaleY:0},n,e,(function(){i.parent&&i.parent.remove(i)}))})),t.setItemGraphicEl(e,null)}function OP(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function RP(t,e,n){R(t.__pictorialBundle.children(),(function(i){i!==t.__pictorialBarRect&&e.call(n,i)}))}function NP(t,e,n,i,r,o){e&&t.attr(e),i.symbolClip&&!r?n&&t.attr(n):n&&Kh[r?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,o)}function EP(t,e,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),h=o.get("focus"),c=o.get("blurScope"),d=o.get("scale");RP(t,(function(t){if(t instanceof Ps){var e=t.style;t.useStyle(C({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var i=t.ensureState("emphasis");i.style=a,d&&(i.scaleX=1.1*t.scaleX,i.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,u&&(t.cursor=u),t.z2=n.z2}));var p=e.valueDim.posDesc[+(n.boundingLength>0)],f=t.__pictorialBarRect;f.ignoreClip=!0,tc(f,ec(r),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:Cw(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),Ul(t,h,c,o.get("disabled"))}function zP(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var VP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return n(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Cc(cS.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(cS);var BP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return n(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this,o=this.group,a=t.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function h(t){return t.name}o.x=0,o.y=l.y+u[0];var c=new Vy(this._layersSeries||[],a,h,h),d=[];function p(e,n,s){var l=r._layers;if("remove"!==e){for(var u,h,c=[],p=[],f=a[n].indices,g=0;g<f.length;g++){var v=i.getItemLayout(f[g]),m=v.x,y=v.y0,x=v.y;c.push(m,y),p.push(m,y+x),u=i.getItemVisual(f[g],"style")}var _=i.getItemLayout(f[0]),b=t.getModel("label").get("margin"),w=t.getModel("emphasis");if("add"===e){var S=d[n]=new zr;h=new Uw({shape:{points:c,stackedOnPoints:p,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),S.add(h),o.add(S),t.isAnimationEnabled()&&h.setClipPath(function(t,e,n){var i=new Bs({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return gh(i,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,n),i}(h.getBoundingRect(),t,(function(){h.removeClipPath()})))}else{S=l[s];h=S.childAt(0),o.add(S),d[n]=S,fh(h,{shape:{points:c,stackedOnPoints:p}},t),_h(h)}tc(h,ec(t),{labelDataIndex:f[g-1],defaultText:i.getName(f[g-1]),inheritColor:u.fill},{normal:{verticalAlign:"middle"}}),h.setTextConfig({position:null,local:!0});var M=h.getTextContent();M&&(M.x=_.x-b,M.y=_.y0+_.y/2),h.useStyle(u),i.setItemGraphicEl(n,h),jl(h,t),Ul(h,w.get("focus"),w.get("blurScope"),w.get("disabled"))}else o.remove(l[n])}c.add(G(p,this,"add")).update(G(p,this,"update")).remove(G(p,this,"remove")).execute(),this._layersSeries=a,this._layers=d},e.type="themeRiver",e}(kg);var GP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new JS(G(this.getData,this),G(this.getRawData,this))},e.prototype.fixData=function(t){var e=t.length,n={},i=Wo(t,(function(t){return n.hasOwnProperty(t[0]+"")||(n[t[0]+""]=-1),t[2]})),r=[];i.buckets.each((function(t,e){r.push({name:e,dataList:t})}));for(var o=r.length,a=0;a<o;++a){for(var s=r[a].name,l=0;l<r[a].dataList.length;++l){var u=r[a].dataList[l][0]+"";n[u]=a}for(var u in n)n.hasOwnProperty(u)&&n[u]!==a&&(n[u]=a,t[e]=[u,0,s],e++)}return t},e.prototype.getInitialData=function(t,e){for(var n=this.getReferringComponents("singleAxis",Bo).models[0].get("type"),i=z(t.data,(function(t){return void 0!==t[2]})),r=this.fixData(i||[]),o=[],a=this.nameMap=ft(),s=0,l=0;l<r.length;++l)o.push(r[l][2]),a.get(r[l][2])||(a.set(r[l][2],s),s++);var u=hx(r,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Fy(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new lx(u,this);return h.initData(r),h},e.prototype.getLayerSeries=function(){for(var t=this.getData(),e=t.count(),n=[],i=0;i<e;++i)n[i]=i;var r=t.mapDimension("single"),o=Wo(n,(function(e){return t.get("name",e)})),a=[];return o.buckets.each((function(e,n){e.sort((function(e,n){return t.get(r,e)-t.get(r,n)})),a.push({name:n,indices:e})})),a},e.prototype.getAxisTooltipData=function(t,e,n){H(t)||(t=t?[t]:[]);for(var i,r=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,h=-1,c=o[l].indices.length,d=0;d<c;++d){var p=r.get(t[0],o[l].indices[d]),f=Math.abs(p-e);f<=u&&(i=p,u=f,h=o[l].indices[d])}a.push(h)}return{dataIndices:a,nestestValue:i}},e.prototype.formatTooltip=function(t,e,n){var i=this.getData();return ig("nameValue",{name:i.getName(t),value:i.get(i.mapDimension("value"),t)})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(xg);function FP(t,e){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),n=t.coordinateSystem,i={},r=n.getRect();i.rect=r;var o=t.get("boundaryGap"),a=n.getAxis();(i.boundaryGap=o,"horizontal"===a.orient)?(o[0]=qr(o[0],r.height),o[1]=qr(o[1],r.height),HP(e,t,r.height-o[0]-o[1])):(o[0]=qr(o[0],r.width),o[1]=qr(o[1],r.width),HP(e,t,r.width-o[0]-o[1]));e.setLayout("layoutInfo",i)}))}function HP(t,e,n){if(t.count())for(var i,r=e.coordinateSystem,o=e.getLayerSeries(),a=t.mapDimension("single"),s=t.mapDimension("value"),l=N(o,(function(e){return N(e.indices,(function(e){var n=r.dataToPoint(t.get(a,e));return n[1]=t.get(s,e),n}))})),u=function(t){for(var e=t.length,n=t[0].length,i=[],r=[],o=0,a=0;a<n;++a){for(var s=0,l=0;l<e;++l)s+=t[l][a][1];s>o&&(o=s),i.push(s)}for(var u=0;u<n;++u)r[u]=(o-i[u])/2;o=0;for(var h=0;h<n;++h){var c=i[h]+r[h];c>o&&(o=c)}return{y0:r,max:o}}(l),h=u.y0,c=n/u.max,d=o.length,p=o[0].indices.length,f=0;f<p;++f){i=h[f]*c,t.setItemLayout(o[0].indices[f],{layerIndex:0,x:l[0][f][0],y0:i,y:l[0][f][1]*c});for(var g=1;g<d;++g)i+=l[g-1][f][1]*c,t.setItemLayout(o[g].indices[f],{layerIndex:g,x:l[g][f][0],y0:i,y:l[g][f][1]*c})}}var WP=function(t){function e(e,n,i,r){var o=t.call(this)||this;o.z2=2,o.textConfig={inside:!0},el(o).seriesIndex=n.seriesIndex;var a=new Hs({z2:4,silent:e.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,e,n,i,r),o}return n(e,t),e.prototype.updateData=function(t,e,n,i,r){this.node=e,e.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var o=this;el(o).dataIndex=e.dataIndex;var a=e.getModel(),s=a.getModel("emphasis"),l=e.getLayout(),u=C({},l);u.label=null;var h=e.getVisual("style");h.lineJoin="bevel";var c=e.getVisual("decal");c&&(h.decal=vm(c,r));var d=mS(a.getModel("itemStyle"),u,!0);C(u,d),R(sl,(function(t){var e=o.ensureState(t),n=a.getModel([t,"itemStyle"]);e.style=n.getItemStyle();var i=mS(n,u);i&&(e.shape=i)})),t?(o.setShape(u),o.shape.r=l.r0,gh(o,{shape:{r:l.r}},n,e.dataIndex)):(fh(o,{shape:u},n),_h(o)),o.useStyle(h),this._updateLabel(n);var p=a.getShallow("cursor");p&&o.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var f=s.get("focus");Ul(this,"relative"===f?gt(e.getAncestorsIndices(),e.getDescendantIndices()):"ancestor"===f?e.getAncestorsIndices():"descendant"===f?e.getDescendantIndices():f,s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t){var e=this,n=this.node.getModel(),i=n.getModel("label"),r=this.node.getLayout(),o=r.endAngle-r.startAngle,a=(r.startAngle+r.endAngle)/2,s=Math.cos(a),l=Math.sin(a),u=this,h=u.getTextContent(),c=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(null!=d&&Math.abs(o)<d);function f(t,e){var n=t.get(e);return null==n?i.get(e):n}h.ignore=!p,R(ll,(function(i){var d="normal"===i?n.getModel("label"):n.getModel([i,"label"]),p="normal"===i,g=p?h:h.ensureState(i),v=t.getFormattedLabel(c,i);p&&(v=v||e.node.name),g.style=nc(d,{},null,"normal"!==i,!0),v&&(g.style.text=v);var m=d.get("show");null==m||p||(g.ignore=!m);var y,x=f(d,"position"),_=p?u:u.states[i],b=_.style.fill;_.textConfig={outsideFill:"inherit"===d.get("color")?b:null,inside:"outside"!==x};var w=f(d,"distance")||0,S=f(d,"align"),M=f(d,"rotate"),I=.5*Math.PI,T=1.5*Math.PI,C=ds("tangential"===M?Math.PI/2-a:a),A=C>I&&!oo(C-I)&&C<T;"outside"===x?(y=r.r+w,S=A?"right":"left"):S&&"center"!==S?"left"===S?(y=r.r0+w,S=A?"right":"left"):"right"===S&&(y=r.r-w,S=A?"left":"right"):(y=o===2*Math.PI&&0===r.r0?0:(r.r+r.r0)/2,S="center"),g.style.align=S,g.style.verticalAlign=f(d,"verticalAlign")||"middle",g.x=y*s+r.cx,g.y=y*l+r.cy;var D=0;"radial"===M?D=ds(-a)+(A?Math.PI:0):"tangential"===M?D=ds(Math.PI/2-a)+(A?Math.PI:0):Z(M)&&(D=M*Math.PI/180),g.rotation=ds(D)})),h.dirtyStyle()},e}(zu),UP="sunburstRootToNode",YP="sunburstHighlight";var ZP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.render=function(t,e,n,i){var r=this;this.seriesModel=t,this.api=n,this.ecModel=e;var o=t.getData(),a=o.tree.root,s=t.getViewRoot(),l=this.group,u=t.get("renderLabelForZeroData"),h=[];s.eachNode((function(t){h.push(t)}));var c,d,p=this._oldChildren||[];!function(i,r){if(0===i.length&&0===r.length)return;function s(t){return t.getId()}function h(s,h){!function(i,r){u||!i||i.getValue()||(i=null);if(i!==a&&r!==a)if(r&&r.piece)i?(r.piece.updateData(!1,i,t,e,n),o.setItemGraphicEl(i.dataIndex,r.piece)):function(t){if(!t)return;t.piece&&(l.remove(t.piece),t.piece=null)}(r);else if(i){var s=new WP(i,t,e,n);l.add(s),o.setItemGraphicEl(i.dataIndex,s)}}(null==s?null:i[s],null==h?null:r[h])}new Vy(r,i,s,s).add(h).update(h).remove(F(h,null)).execute()}(h,p),c=a,(d=s).depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,c,t,e,n):(r.virtualPiece=new WP(c,t,e,n),l.add(r.virtualPiece)),d.piece.off("click"),r.virtualPiece.on("click",(function(t){r._rootToNode(d.parentNode)}))):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null),this._initEvents(),this._oldChildren=h},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var n=!1;t.seriesModel.getViewRoot().eachNode((function(i){if(!n&&i.piece&&i.piece===e.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");if(a)wd(a,o.get("target",!0)||"_blank")}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:UP,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},e.type="sunburst",e}(kg),XP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return n(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};jP(n);var i=this._levelModels=N(t.levels||[],(function(t){return new Mc(t,this,e)}),this),r=uC.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e),o=i[n.depth];return o&&(t.parentModel=o),t}))}));return r.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=pC(i,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){xC(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(xg);function jP(t){var e=0;R(t.children,(function(t){jP(t);var n=t.value;H(n)&&(n=n[0]),e+=n}));var n=t.value;H(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),H(t.value)?t.value[0]=n:t.value=n}var qP=Math.PI/180;function KP(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),i=t.get("radius");H(i)||(i=[0,i]),H(e)||(e=[e,e]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=qr(e[0],r),l=qr(e[1],o),u=qr(i[0],a/2),h=qr(i[1],a/2),c=-t.get("startAngle")*qP,d=t.get("minAngle")*qP,p=t.getData().tree.root,f=t.getViewRoot(),g=f.depth,v=t.get("sort");null!=v&&$P(f,v);var m=0;R(f.children,(function(t){!isNaN(t.getValue())&&m++}));var y=f.getValue(),x=Math.PI/(y||m)*2,_=f.depth>0,b=f.height-(_?-1:1),w=(h-u)/(b||1),S=t.get("clockwise"),M=t.get("stillShowZeroSum"),I=S?1:-1,T=function(e,n){if(e){var i=n;if(e!==p){var r=e.getValue(),o=0===y&&M?x:r*x;o<d&&(o=d),i=n+I*o;var h=e.depth-g-(_?-1:1),c=u+w*h,f=u+w*(h+1),v=t.getLevelModel(e);if(v){var m=v.get("r0",!0),b=v.get("r",!0),C=v.get("radius",!0);null!=C&&(m=C[0],b=C[1]),null!=m&&(c=qr(m,a/2)),null!=b&&(f=qr(b,a/2))}e.setLayout({angle:o,startAngle:n,endAngle:i,clockwise:S,cx:s,cy:l,r0:c,r:f})}if(e.children&&e.children.length){var A=0;R(e.children,(function(t){A+=T(t,n+A)}))}return i-n}};if(_){var C=u,A=u+w,D=2*Math.PI;p.setLayout({angle:D,startAngle:c,endAngle:c+D,clockwise:S,cx:s,cy:l,r0:C,r:A})}T(f,c)}))}function $P(t,e){var n=t.children||[];t.children=function(t,e){if(W(e)){var n=N(t,(function(t,e){var n=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return n}},index:e}}));return n.sort((function(t,n){return e(t.params,n.params)})),N(n,(function(e){return t[e.index]}))}var i="asc"===e;return t.sort((function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(i?-1:1):n}))}(n,e),n.length&&R(t.children,(function(t){$P(t,e)}))}function JP(t){var e={};t.eachSeriesByType("sunburst",(function(t){var n=t.getData(),i=n.tree;i.eachNode((function(r){var o=r.getModel().getModel("itemStyle").getItemStyle();o.fill||(o.fill=function(t,n,i){for(var r=t;r&&r.depth>1;)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",e);return t.depth>1&&U(o)&&(o=qn(o,(t.depth-1)/(i-1)*.5)),o}(r,t,i.root.height)),C(n.ensureUniqueItemVisual(r.dataIndex,"style"),o)}))}))}var QP={color:"fill",borderColor:"stroke"},tO={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},eO=No(),nO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return yx(null,this)},e.prototype.getDataParams=function(e,n,i){var r=t.prototype.getDataParams.call(this,e,n);return i&&(r.info=eO(i).info),r},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(xg);function iO(t,e){return e=e||[0,0],N(["x","y"],(function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))}),this)}function rO(t,e){return e=e||[0,0],N([0,1],(function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function oO(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function aO(t,e){return e=e||[0,0],N(["Radius","Angle"],(function(n,i){var r=this["get"+n+"Axis"](),o=e[i],a=t[i]/2,s="category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a));return"Angle"===n&&(s=s*Math.PI/180),s}),this)}function sO(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||yt(t,"text")))}function lO(t,e,n){var i,r,o,a=t;if("text"===e)o=a;else{o={},yt(a,"text")&&(o.text=a.text),yt(a,"rich")&&(o.rich=a.rich),yt(a,"textFill")&&(o.fill=a.textFill),yt(a,"textStroke")&&(o.stroke=a.textStroke),yt(a,"fontFamily")&&(o.fontFamily=a.fontFamily),yt(a,"fontSize")&&(o.fontSize=a.fontSize),yt(a,"fontStyle")&&(o.fontStyle=a.fontStyle),yt(a,"fontWeight")&&(o.fontWeight=a.fontWeight),r={type:"text",style:o,silent:!0},i={};var s=yt(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),yt(a,"textPosition")&&(i.position=a.textPosition),yt(a,"textOffset")&&(i.offset=a.textOffset),yt(a,"textRotation")&&(i.rotation=a.textRotation),yt(a,"textDistance")&&(i.distance=a.textDistance)}return uO(o,t),R(o.rich,(function(t){uO(t,t)})),{textConfig:i,textContent:r}}function uO(t,e){e&&(e.font=e.textFont||e.font,yt(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),yt(e,"textAlign")&&(t.align=e.textAlign),yt(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),yt(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),yt(e,"textWidth")&&(t.width=e.textWidth),yt(e,"textHeight")&&(t.height=e.textHeight),yt(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),yt(e,"textPadding")&&(t.padding=e.textPadding),yt(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),yt(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),yt(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),yt(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),yt(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),yt(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),yt(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function hO(t,e,n){var i=t;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,o=t.fill||"#000";cO(i,e);var a=null==i.textFill;return r?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=t.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,R(e.rich,(function(t){cO(t,t)})),i}function cO(t,e){e&&(yt(e,"fill")&&(t.textFill=e.fill),yt(e,"stroke")&&(t.textStroke=e.fill),yt(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),yt(e,"font")&&(t.font=e.font),yt(e,"fontStyle")&&(t.fontStyle=e.fontStyle),yt(e,"fontWeight")&&(t.fontWeight=e.fontWeight),yt(e,"fontSize")&&(t.fontSize=e.fontSize),yt(e,"fontFamily")&&(t.fontFamily=e.fontFamily),yt(e,"align")&&(t.textAlign=e.align),yt(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),yt(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),yt(e,"width")&&(t.textWidth=e.width),yt(e,"height")&&(t.textHeight=e.height),yt(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),yt(e,"padding")&&(t.textPadding=e.padding),yt(e,"borderColor")&&(t.textBorderColor=e.borderColor),yt(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),yt(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),yt(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),yt(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),yt(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),yt(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),yt(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),yt(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),yt(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),yt(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var dO={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},pO=B(dO);E(vr,(function(t,e){return t[e]=1,t}),{}),vr.join(", ");var fO=["","style","shape","extra"],gO=No();function vO(t,e,n,i,r){var o=t+"Animation",a=dh(t,i,r)||{},s=gO(e).userDuring;return a.duration>0&&(a.during=s?G(SO,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),C(a,n[o]),a}function mO(t,e,n,i){var r=(i=i||{}).dataIndex,o=i.isInit,a=i.clearStyle,s=n.isAnimationEnabled(),l=gO(t),u=e.style;l.userDuring=e.during;var h={},c={};if(function(t,e,n){for(var i=0;i<pO.length;i++){var r=pO[i],o=dO[r],a=e[r];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(i=0;i<vr.length;i++){var s=vr[i];null!=e[s]&&(n[s]=e[s])}}(0,e,c),IO("shape",e,c),IO("extra",e,c),!o&&s&&(function(t,e,n){for(var i=e.transition,r=_O(i)?vr:So(i||[]),o=0;o<r.length;o++){var a=r[o];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=t[a];n[a]=s}}}(t,e,h),MO("shape",t,e,h),MO("extra",t,e,h),function(t,e,n,i){if(!n)return;var r,o=t.style;if(o){var a=n.transition,s=e.transition;if(a&&!_O(a)){var l=So(a);!r&&(r=i.style={});for(var u=0;u<l.length;u++){var h=o[f=l[u]];r[f]=h}}else if(t.getAnimationStyleProps&&(_O(s)||_O(a)||L(s,"style")>=0)){var c=t.getAnimationStyleProps(),d=c?c.style:null;if(d){!r&&(r=i.style={});var p=B(n);for(u=0;u<p.length;u++){var f;if(d[f=p[u]]){h=o[f];r[f]=h}}}}}}(t,e,u,h)),c.style=u,function(t,e,n){var i=e.style;if(!t.isGroup&&i){if(n){t.useStyle({});for(var r=t.animators,o=0;o<r.length;o++){var a=r[o];"style"===a.targetName&&a.changeTarget(t.style)}}t.setStyle(i)}e&&(e.style=null,e&&t.attr(e),e.style=i)}(t,c,a),function(t,e){yt(e,"silent")&&(t.silent=e.silent),yt(e,"ignore")&&(t.ignore=e.ignore),t instanceof Ia&&yt(e,"invisible")&&(t.invisible=e.invisible);t instanceof Cs&&yt(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}(t,e),s)if(o){var d={};R(fO,(function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(d[t]=d[t]||{}),C(t?d[t]:d,n.enterFrom))}));var p=vO("enter",t,e,n,r);p.duration>0&&t.animateFrom(d,p)}else!function(t,e,n,i,r){if(r){var o=vO("update",t,e,i,n);o.duration>0&&t.animateFrom(r,o)}}(t,e,r||0,n,h);yO(t,e),u?t.dirty():t.markRedraw()}function yO(t,e){for(var n=gO(t).leaveToProps,i=0;i<fO.length;i++){var r=fO[i],o=r?e[r]:e;o&&o.leaveTo&&(n||(n=gO(t).leaveToProps={}),r&&(n[r]=n[r]||{}),C(r?n[r]:n,o.leaveTo))}}function xO(t,e,n,i){if(t){var r=t.parent,o=gO(t).leaveToProps;if(o){var a=vO("update",t,e,n,0);a.done=function(){r.remove(t)},t.animateTo(o,a)}else r.remove(t)}}function _O(t){return"all"===t}var bO={},wO={setTransform:function(t,e){return bO.el[t]=e,this},getTransform:function(t){return bO.el[t]},setShape:function(t,e){var n=bO.el;return(n.shape||(n.shape={}))[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=bO.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=bO.el,i=n.style;return i&&(i[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=bO.el.style;if(e)return e[t]},setExtra:function(t,e){return(bO.el.extra||(bO.el.extra={}))[t]=e,this},getExtra:function(t){var e=bO.el.extra;if(e)return e[t]}};function SO(){var t=this,e=t.el;if(e){var n=gO(e).userDuring,i=t.userDuring;n===i?(bO.el=e,i(wO)):t.el=t.userDuring=null}}function MO(t,e,n,i){var r=n[t];if(r){var o,a=e[t];if(a){var s=n.transition,l=r.transition;if(l)if(!o&&(o=i[t]={}),_O(l))C(o,a);else for(var u=So(l),h=0;h<u.length;h++){var c=a[p=u[h]];o[p]=c}else if(_O(s)||L(s,t)>=0){!o&&(o=i[t]={});var d=B(a);for(h=0;h<d.length;h++){var p;c=a[p=d[h]];TO(r[p],c)&&(o[p]=c)}}}}}function IO(t,e,n){var i=e[t];if(i)for(var r=n[t]={},o=B(i),a=0;a<o.length;a++){var s=o[a];r[s]=Li(i[s])}}function TO(t,e){return O(t)?t!==e:null!=t&&isFinite(t)}var CO=No(),AO=["percent","easing","shape","style","extra"];function DO(t){t.stopAnimation("keyframe"),t.attr(CO(t))}function LO(t,e,n){if(n.isAnimationEnabled()&&e)if(H(e))R(e,(function(e){LO(t,e,n)}));else{var i=e.keyframes,r=e.duration;if(n&&null==r){var o=dh("enter",n,0);r=o&&o.duration}if(i&&r){var a=CO(t);R(fO,(function(n){var o;n&&!t[n]||(i.sort((function(t,e){return t.percent-e.percent})),R(i,(function(i){var s=t.animators,l=n?i[n]:i;if(l){var u=B(l);if(n||(u=z(u,(function(t){return L(AO,t)<0}))),u.length){o||((o=t.animate(n,e.loop,!0)).scope="keyframe");for(var h=0;h<s.length;h++)s[h]!==o&&s[h].targetName===o.targetName&&s[h].stopTracks(u);n&&(a[n]=a[n]||{});var c=n?a[n]:a;R(u,(function(e){c[e]=((n?t[n]:t)||{})[e]})),o.whenWithKeys(r*i.percent,l,u,i.easing)}}})),o&&o.delay(e.delay||0).duration(r).start(e.easing))}))}}}var kO="emphasis",PO="normal",OO="blur",RO="select",NO=[PO,kO,OO,RO],EO={normal:["itemStyle"],emphasis:[kO,"itemStyle"],blur:[OO,"itemStyle"],select:[RO,"itemStyle"]},zO={normal:["label"],emphasis:[kO,"label"],blur:[OO,"label"],select:[RO,"label"]},VO=["x","y"],BO={normal:{},emphasis:{},blur:{},select:{}},GO={cartesian2d:function(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:G(iO,t)}}},geo:function(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:G(rO,t)}}},single:function(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:G(oO,t)}}},polar:function(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:G(aO,t)}}},calendar:function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}};function FO(t){return t instanceof Cs}function HO(t){return t instanceof Ia}var WO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._data,o=t.getData(),a=this.group,s=jO(t,o,e,n);r||a.removeAll(),o.diff(r).add((function(e){KO(n,null,e,s(e,i),t,a,o)})).remove((function(e){var n=r.getItemGraphicEl(e);n&&xO(n,eO(n).option,t)})).update((function(e,l){var u=r.getItemGraphicEl(l);KO(n,u,e,s(e,i),t,a,o)})).execute();var l=t.get("clip",!0)?Xw(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,i,r){var o=e.getData(),a=jO(e,o,n,i),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var u=t.start;u<t.end;u++){var h=KO(null,null,u,a(u,r),e,this.group,o);h&&(h.traverse(l),s.push(h))}},e.prototype.eachRendered=function(t){qh(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,e,n,i){var r=e.element;if(null==r||n.name===r)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===r)return!0;return!1},e.type="custom",e}(kg);function UO(t){var e,n=t.type;if("path"===n){var i=t.shape,r=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,o=aR(i);e=Dh(o,null,r,i.layout||"center"),eO(e).customPathData=o}else if("image"===n)e=new Ps({}),eO(e).customImagePath=t.style.image;else if("text"===n)e=new Hs({});else if("group"===n)e=new zr;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=Ah(n);if(!a){xo("")}e=new a}return eO(e).customGraphicType=n,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function YO(t,e,n,i,r,o,a){DO(e);var s=r&&r.normal.cfg;s&&e.setTextConfig(s),i&&null==i.transition&&(i.transition=VO);var l=i&&i.style;if(l){if("text"===e.type){var u=l;yt(u,"textFill")&&(u.fill=u.textFill),yt(u,"textStroke")&&(u.stroke=u.textStroke)}var h=void 0,c=FO(e)?l.decal:null;t&&c&&(c.dirty=!0,h=vm(c,t)),l.__decalPattern=h}HO(e)&&(l&&(h=l.__decalPattern)&&(l.decal=h));mO(e,i,o,{dataIndex:n,isInit:a,clearStyle:!0}),LO(e,i.keyframeAnimation,o)}function ZO(t,e,n,i,r){var o=e.isGroup?null:e,a=r&&r[t].cfg;if(o){var s=o.ensureState(t);if(!1===i){var l=o.getState(t);l&&(l.style=null)}else s.style=i||null;a&&(s.textConfig=a),Cl(o)}}function XO(t,e,n){var i=n===PO,r=i?e:tR(e,n),o=r?r.z2:null;null!=o&&((i?t:t.ensureState(n)).z2=o||0)}function jO(t,e,n,i){var r=t.get("renderItem"),o=t.coordinateSystem,a={};o&&(a=o.prepareCustoms?o.prepareCustoms(o):GO[o.type](o));for(var s,l,u=A({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:function(t,n){return null==n&&(n=s),e.getStore().get(e.getDimensionIndex(t||0),n)},style:function(n,i){null==i&&(i=s);var r=e.getItemVisual(i,"style"),o=r&&r.fill,a=r&&r.opacity,l=y(i,PO).getItemStyle();null!=o&&(l.fill=o),null!=a&&(l.opacity=a);var u={inheritColor:U(o)?o:"#000"},h=x(i,PO),c=nc(h,null,u,!1,!0);c.text=h.getShallow("show")?nt(t.getFormattedLabel(i,PO),Cw(e,i)):null;var d=ic(h,u,!1);return b(n,l),l=hO(l,c,d),n&&_(l,n),l.legacy=!0,l},ordinalRawValue:function(t,n){null==n&&(n=s),t=t||0;var i=e.getDimensionInfo(t);if(!i){var r=e.getDimensionIndex(t);return r>=0?e.getStore().get(r,n):void 0}var o=e.get(i.name,n),a=i&&i.ordinalMeta;return a?a.categories[o]:o},styleEmphasis:function(n,i){null==i&&(i=s);var r=y(i,kO).getItemStyle(),o=x(i,kO),a=nc(o,null,null,!0,!0);a.text=o.getShallow("show")?it(t.getFormattedLabel(i,kO),t.getFormattedLabel(i,PO),Cw(e,i)):null;var l=ic(o,null,!0);return b(n,r),r=hO(r,a,l),n&&_(r,n),r.legacy=!0,r},visual:function(t,n){if(null==n&&(n=s),yt(QP,t)){var i=e.getItemVisual(n,"style");return i?i[QP[t]]:null}if(yt(tO,t))return e.getItemVisual(n,t)},barLayout:function(t){if("cartesian2d"===o.type){return function(t){var e=[],n=t.axis,i="axis0";if("category"===n.type){for(var r=n.getBandWidth(),o=0;o<t.count;o++)e.push(A({bandWidth:r,axisKey:i,stackId:Vx+o},t));var a=Wx(e),s=[];for(o=0;o<t.count;o++){var l=a[i][Vx+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}(A({axis:o.getBaseAxis()},t))}},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(t){return lc(t,n)}},a.api||{}),h={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:a.coordSys,dataInsideLength:e.count(),encode:qO(t.getData())},c={},d={},p={},f={},g=0;g<NO.length;g++){var v=NO[g];p[v]=t.getModel(EO[v]),f[v]=t.getModel(zO[v])}function m(t){return t===s?l||(l=e.getItemModel(t)):e.getItemModel(t)}function y(t,n){return e.hasItemOption?t===s?c[n]||(c[n]=m(t).getModel(EO[n])):m(t).getModel(EO[n]):p[n]}function x(t,n){return e.hasItemOption?t===s?d[n]||(d[n]=m(t).getModel(zO[n])):m(t).getModel(zO[n]):f[n]}return function(t,n){return s=t,l=null,c={},d={},r&&r(A({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},h),u)};function _(t,e){for(var n in e)yt(e,n)&&(t[n]=e[n])}function b(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}}function qO(t){var e={};return R(t.dimensions,(function(n){var i=t.getDimensionInfo(n);if(!i.isExtraCoord){var r=i.coordDim;(e[r]=e[r]||[])[i.coordDimIndex]=t.getDimensionIndex(n)}})),e}function KO(t,e,n,i,r,o,a){if(i){var s=$O(t,e,n,i,r,o);return s&&a.setItemGraphicEl(n,s),s&&Ul(s,i.focus,i.blurScope,i.emphasisDisabled),s}o.remove(e)}function $O(t,e,n,i,r,o){var a=-1,s=e;e&&JO(e,i,r)&&(a=L(o.childrenRef(),e),e=null);var l,u,h=!e,c=e;c?c.clearStates():(c=UO(i),s&&(l=s,(u=c).copyTransform(l),HO(u)&&HO(l)&&(u.setStyle(l.style),u.z=l.z,u.z2=l.z2,u.zlevel=l.zlevel,u.invisible=l.invisible,u.ignore=l.ignore,FO(u)&&FO(l)&&u.setShape(l.shape)))),!1===i.morph?c.disableMorphing=!0:c.disableMorphing&&(c.disableMorphing=!1),BO.normal.cfg=BO.normal.conOpt=BO.emphasis.cfg=BO.emphasis.conOpt=BO.blur.cfg=BO.blur.conOpt=BO.select.cfg=BO.select.conOpt=null,BO.isLegacy=!1,function(t,e,n,i,r,o){if(t.isGroup)return;QO(n,null,o),QO(n,kO,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var h=t.getTextContent();if(!1===a)h&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},h?h.clearStates():(h=UO(a),t.setTextContent(h)),YO(null,h,e,a,null,i,r);for(var c=a&&a.style,d=0;d<NO.length;d++){var p=NO[d];if(p!==PO){var f=o[p].conOpt;ZO(p,h,0,eR(a,f,p),null)}}c?h.dirty():h.markRedraw()}}}(c,n,i,r,h,BO),function(t,e,n,i,r){var o=n.clipPath;if(!1===o)t&&t.getClipPath()&&t.removeClipPath();else if(o){var a=t.getClipPath();a&&JO(a,o,i)&&(a=null),a||(a=UO(o),t.setClipPath(a)),YO(null,a,e,o,null,i,r)}}(c,n,i,r,h),YO(t,c,n,i,BO,r,h),yt(i,"info")&&(eO(c).info=i.info);for(var d=0;d<NO.length;d++){var p=NO[d];if(p!==PO){var f=tR(i,p);ZO(p,c,0,eR(i,f,p),BO)}}return function(t,e,n){if(!t.isGroup){var i=t,r=n.currentZ,o=n.currentZLevel;i.z=r,i.zlevel=o;var a=e.z2;null!=a&&(i.z2=a||0);for(var s=0;s<NO.length;s++)XO(i,e,NO[s])}}(c,i,r),"group"===i.type&&function(t,e,n,i,r){var o=i.children,a=o?o.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,u=!1===s;if(!a&&!l&&!u)return;if(l)return h={api:t,oldChildren:e.children()||[],newChildren:o||[],dataIndex:n,seriesModel:r,group:e},void new Vy(h.oldChildren,h.newChildren,iR,iR,h).add(rR).update(rR).remove(oR).execute();var h;u&&e.removeAll();for(var c=0;c<a;c++){var d=o[c],p=e.childAt(c);d?(null==d.ignore&&(d.ignore=!1),$O(t,p,n,d,r,e)):p.ignore=!0}for(var f=e.childCount()-1;f>=c;f--){var g=e.childAt(f);nR(e,g,r)}}(t,c,n,i,r),a>=0?o.replaceAt(c,a):o.add(c),c}function JO(t,e,n){var i,r=eO(t),o=e.type,a=e.shape,s=e.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==r.customGraphicType||"path"===o&&((i=a)&&(yt(i,"pathData")||yt(i,"d")))&&aR(a)!==r.customPathData||"image"===o&&yt(s,"image")&&s.image!==r.customImagePath}function QO(t,e,n){var i=e?tR(t,e):t,r=e?eR(t,i,kO):t.style,o=t.type,a=i?i.textConfig:null,s=t.textContent,l=s?e?tR(s,e):s:null;if(r&&(n.isLegacy||sO(r,o,!!a,!!l))){n.isLegacy=!0;var u=lO(r,o,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var h=l;!h.type&&(h.type="text")}var c=e?n[e]:n.normal;c.cfg=a,c.conOpt=l}function tR(t,e){return e?t?t[e]:null:t}function eR(t,e,n){var i=e&&e.style;return null==i&&n===kO&&t&&(i=t.styleEmphasis),i}function nR(t,e,n){e&&xO(e,eO(t).option,n)}function iR(t,e){var n=t&&t.name;return null!=n?n:"e\0\0"+e}function rR(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,r=null!=e?n.oldChildren[e]:null;$O(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function oR(t){var e=this.context,n=e.oldChildren[t];n&&xO(n,eO(n).option,e.seriesModel)}function aR(t){return t&&(t.pathData||t.d)}var sR=No(),lR=M,uR=G,hR=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,e);if(a){var c=F(cR,e,h);this.updatePointerEl(a,l,c),this.updateLabelEl(a,l,c,e)}else a=this._group=new zr,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);gR(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=VM(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;if(r){var o=sR(t).pointerEl=new Kh[r.type](lR(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=sR(t).labelEl=new Hs(lR(e.label));t.add(r),pR(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=sR(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=sR(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),pR(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=Wh(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){ce(t.event)},onmousedown:uR(this._onHandleDragMove,this,0,0),drift:uR(this._onHandleDragMove,this),ondragend:uR(this._onHandleDragEnd,this)}),i.add(r)),gR(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");H(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,Fg(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){cR(this._axisPointerModel,!e&&this._moveAnimation,this._handle,fR(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(fR(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(fR(i)),sR(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Hg(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}();function cR(t,e,n,i){dR(sR(n).lastProp,i)||(sR(n).lastProp=i,e?fh(n,i,t):(n.stopAnimation(),n.attr(i)))}function dR(t,e){if(X(t)&&X(e)){var n=!0;return R(e,(function(e,i){n=n&&dR(t[i],e)})),!!n}return t===e}function pR(t,e){t[e.get(["label","show"])?"show":"hide"]()}function fR(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function gR(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)}))}function vR(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle()).fill=null:"shadow"===n&&((e=i.getAreaStyle()).stroke=null),e}function mR(t,e,n,i,r){var o=yR(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=fd(a.get("padding")||0),l=a.getFont(),u=br(o,l),h=r.position,c=u.width+s[1]+s[3],d=u.height+s[0]+s[2],p=r.align;"right"===p&&(h[0]-=c),"center"===p&&(h[0]-=c/2);var f=r.verticalAlign;"bottom"===f&&(h[1]-=d),"middle"===f&&(h[1]-=d/2),function(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(h,c,d,i);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:nc(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function yR(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:b_(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};R(i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)})),U(a)?o=a.replace("{value}",o):W(a)&&(o=a(s))}return o}function xR(t,e,n){var i=[1,0,0,1,0,0];return be(i,i,n.rotation),_e(i,i,n.position),zh([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function _R(t,e,n,i,r,o){var a=LM.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),mR(e,i,r,o,{position:xR(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function bR(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function wR(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function SR(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var MR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=IR(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var h=vR(i),c=TR[s](o,u,l);c.style=h,t.graphicKey=c.type,t.pointer=c}_R(e,t,_M(a.model,n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=_M(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=xR(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=IR(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var h=(s[1]+s[0])/2,c=[h,h];c[l]=u[l];return{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:c,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(hR);function IR(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var TR={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:bR([e,n[0]],[e,n[1]],CR(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:wR([e-i/2,n[0]],[i,r],CR(t))}}};function CR(t){return"x"===t.dim?0:1}var AR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(Nd),DR=No(),LR=R;function kR(t,e,n){if(!r.node){var i=e.getZr();DR(i).records||(DR(i).records={}),function(t,e){if(DR(t).initialized)return;function n(n,i){t.on(n,(function(n){var r=function(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}(e);LR(DR(t).records,(function(t){t&&i(t,n,r.dispatchAction)})),function(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]);n&&(n.dispatchAction=null,e.dispatchAction(n))}(r.pendings,e)}))}DR(t).initialized=!0,n("click",F(OR,"click")),n("mousemove",F(OR,"mousemove")),n("globalout",PR)}(i,e),(DR(i).records[t]||(DR(i).records[t]={})).handler=n}}function PR(t,e,n){t.handler("leave",null,n)}function OR(t,e,n,i){e.handler(t,n,i)}function RR(t,e){if(!r.node){var n=e.getZr();(DR(n).records||{})[t]&&(DR(n).records[t]=null)}}var NR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";kR("axisPointer",n,(function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){RR("axisPointer",e)},e.prototype.dispose=function(t,e){RR("axisPointer",e)},e.type="axisPointer",e}(Cg);function ER(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=Ro(o,t);if(null==a||a<0||H(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u).dim,c=u.dim,d="x"===h||"radius"===h?1:0,p=o.mapDimension(c),f=[];f[d]=o.get(p,a),f[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(o.getValues(N(l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),i=[g.x+g.width/2,g.y+g.height/2]}return{point:i,el:s}}var zR=No();function VR(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||G(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){WR(r)&&(r=ER({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=WR(r),u=o.axesInfo,h=s.axesInfo,c="leave"===i||WR(r),d={},p={},f={list:[],map:{}},g={showPointer:F(GR,p),showTooltip:F(FR,f)};R(s.coordSysMap,(function(t,e){var n=l||t.containPoint(r);R(s.coordSysAxesInfo[e],(function(t,e){var i=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(u,t);if(!c&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&BR(t,a,g,!1,d)}}))}));var v={};return R(h,(function(t,e){var n=t.linkGroup;n&&!p[e]&&R(n.axesInfo,(function(e,i){var r=p[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,HR(e),HR(t)))),v[t.key]=o}}))})),R(v,(function(t,e){BR(h[e],t,g,!0,d)})),function(t,e,n){var i=n.axesInfo=[];R(e,(function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}(p,h,d),function(t,e,n,i){if(WR(e)||!t.list.length)return void i({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}(f,r,t,a),function(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=zR(i)[r]||{},a=zR(i)[r]={};R(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&R(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];R(o,(function(t,e){!a[e]&&l.push(t)})),R(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(h,0,n),d}}function BR(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=function(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return R(e.seriesModels,(function(e,l){var u,h,c=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(c,t,n);h=d.dataIndices,u=d.nestestValue}else{if(!(h=e.getData().indicesOfNearest(c[0],t,"category"===n.type?.5:null)).length)return;u=e.getData().get(c[0],h[0])}if(null!=u&&isFinite(u)){var p=t-u,f=Math.abs(p);f<=a&&((f<a||p>=0&&s<0)&&(a=f,s=p,r=u,o.length=0),R(h,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:r}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&C(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function GR(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function FR(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=GM(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function HR(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function WR(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function UR(t){HM.registerAxisPointerClass("CartesianAxisPointer",MR),t.registerComponentModel(AR),t.registerComponentView(NR),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!H(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=EM(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},VR)}function YR(t){O_(tI),O_(UR)}var ZR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o).getExtent(),l=o.dataToCoord(e),u=i.get("type");if(u&&"none"!==u){var h=vR(i),c=XR[u](o,a,l,s);c.style=h,t.graphicKey=c.type,t.pointer=c}var d=function(t,e,n,i,r){var o=e.axis,a=o.dataToCoord(t),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,h,c=i.getRadiusAxis().getExtent();if("radius"===o.dim){var d=[1,0,0,1,0,0];be(d,d,s),_e(d,d,[i.cx,i.cy]),l=zh([a,-r],d);var p=e.getModel("axisLabel").get("rotate")||0,f=LM.innerTextLayout(s,p*Math.PI/180,-1);u=f.textAlign,h=f.textVerticalAlign}else{var g=c[1];l=i.coordToPoint([g+r,a]);var v=i.cx,m=i.cy;u=Math.abs(l[0]-v)/g<.3?"center":l[0]>v?"left":"right",h=Math.abs(l[1]-m)/g<.3?"middle":l[1]>m?"top":"bottom"}return{position:l,align:u,verticalAlign:h}}(e,n,0,a,i.get(["label","margin"]));mR(t,n,i,r,d)},e}(hR);var XR={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:bR(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var r=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:SR(e.cx,e.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:SR(e.cx,e.cy,n-r/2,n+r/2,0,2*Math.PI)}}},jR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(Nd),qR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Bo).models[0]},e.type="polarAxis",e}(Nd);P(qR,I_);var KR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.type="angleAxis",e}(qR),$R=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.type="radiusAxis",e}(qR),JR=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return n(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(ub);JR.prototype.dataToRadius=ub.prototype.dataToCoord,JR.prototype.radiusToData=ub.prototype.coordToData;var QR=No(),tN=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return n(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),n=t.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],a=t.dataToCoord(o+1)-t.dataToCoord(o),s=Math.abs(a),l=br(null==o?"":o+"",e.getFont(),"center","top"),u=Math.max(l.height,7)/s;isNaN(u)&&(u=1/0);var h=Math.max(0,Math.floor(u)),c=QR(t.model),d=c.lastAutoInterval,p=c.lastTickCount;return null!=d&&null!=p&&Math.abs(d-h)<=1&&Math.abs(p-r)<=1&&d>h?h=d:(c.lastTickCount=r,c.lastAutoInterval=h),h},e}(ub);tN.prototype.dataToAngle=ub.prototype.dataToCoord,tN.prototype.angleToData=ub.prototype.coordToData;var eN=["radius","angle"],nN=function(){function t(t){this.dimensions=eN,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new JR,this._angleAxis=new tN,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){return this["_"+t+"Axis"]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=l<o?1:-1;l<o||l>a;)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var n=t.getExtent(),i=Math.PI/180,r=1e-4;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,o=n*n+i*i,a=this.r,s=this.r0;return a!==s&&o-r<=a*a&&o+r>=s*s}}},t.prototype.convertToPixel=function(t,e,n){return iN(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return iN(e)===this?this.pointToData(n):null},t}();function iN(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}function rN(t,e){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var e=t.getData();R(M_(e,"radius"),(function(t){r.scale.unionExtentFromData(e,t)})),R(M_(e,"angle"),(function(t){i.scale.unionExtentFromData(e,t)}))}})),y_(i.scale,i.model),y_(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function oN(t,e){var n;if(t.type=e.get("type"),t.scale=x_(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),function(t){return"angleAxis"===t.mainType}(e)){t.inverse=t.inverse!==e.get("clockwise");var i=e.get("startAngle"),r=null!==(n=e.get("endAngle"))&&void 0!==n?n:i+(t.inverse?-360:360);t.setExtent(i,r)}e.axis=t,t.model=e}var aN={dimensions:eN,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,i){var r=new nN(i+"");r.update=rN;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");oN(o,s),oN(a,l),function(t,e,n){var i=e.get("center"),r=n.getWidth(),o=n.getHeight();t.cx=qr(i[0],r),t.cy=qr(i[1],o);var a=t.getRadiusAxis(),s=Math.min(r,o)/2,l=e.get("radius");null==l?l=[0,"100%"]:H(l)||(l=[0,l]);var u=[qr(l[0],s),qr(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}(r,t,e),n.push(r),t.coordinateSystem=r,r.model=t})),t.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",Bo).models[0];t.coordinateSystem=e.coordinateSystem}})),n}},sN=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function lN(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function uN(t){return t.getRadiusAxis().inverse?0:1}function hN(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var cN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return n(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=N(n.getViewLabels(),(function(t){t=M(t);var e=n.scale,i="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(i),t}));hN(s),hN(o),R(sN,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||dN[e](this.group,t,i,o,a,r,s)}),this)}},e.type="angleAxis",e}(HM),dN={axisLine:function(t,e,n,i,r,o){var a,s=e.getModel(["axisLine","lineStyle"]),l=n.getAngleAxis(),u=Math.PI/180,h=l.getExtent(),c=uN(n),d=c?0:1,p=360===Math.abs(h[1]-h[0])?"Circle":"Arc";(a=0===o[d]?new Kh[p]({shape:{cx:n.cx,cy:n.cy,r:o[c],startAngle:-h[0]*u,endAngle:-h[1]*u,clockwise:l.inverse},style:s.getLineStyle(),z2:1,silent:!0}):new Bu({shape:{cx:n.cx,cy:n.cy,r:o[c],r0:o[d]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(a)},axisTick:function(t,e,n,i,r,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[uN(n)],u=N(i,(function(t){return new Xu({shape:lN(n,[l,l+s],t.coord)})}));t.add(Ph(u,{style:A(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[uN(n)],h=[],c=0;c<r.length;c++)for(var d=0;d<r[c].length;d++)h.push(new Xu({shape:lN(n,[u,u+l],r[c][d].coord)}));t.add(Ph(h,{style:A(s.getModel("lineStyle").getLineStyle(),A(a.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,i,r,o,a){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),h=e.get("triggerEvent");R(a,(function(i,r){var a=l,c=i.tickValue,d=o[uN(n)],p=n.coordToPoint([d+u,i.coord]),f=n.cx,g=n.cy,v=Math.abs(p[0]-f)/d<.3?"center":p[0]>f?"left":"right",m=Math.abs(p[1]-g)/d<.3?"middle":p[1]>g?"top":"bottom";if(s&&s[c]){var y=s[c];X(y)&&y.textStyle&&(a=new Mc(y.textStyle,l,l.ecModel))}var x=new Hs({silent:LM.isLabelSilent(e),style:nc(a,{x:p[0],y:p[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:v,verticalAlign:m})});if(t.add(x),h){var _=LM.makeAxisEventDataBase(e);_.targetType="axisLabel",_.value=i.rawLabel,el(x).eventData=_}}),this)},splitLine:function(t,e,n,i,r,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],h=0;h<i.length;h++){var c=l++%s.length;u[c]=u[c]||[],u[c].push(new Xu({shape:lN(n,o,i[h].coord)}))}for(h=0;h<u.length;h++)t.add(Ph(u[h],{style:A({stroke:s[h%s.length]},a.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<r.length;l++)for(var u=0;u<r[l].length;u++)s.push(new Xu({shape:lN(n,o,r[l][u].coord)}));t.add(Ph(s,{style:a.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,i,r,o){if(i.length){var a=e.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],h=Math.PI/180,c=-i[0].coord*h,d=Math.min(o[0],o[1]),p=Math.max(o[0],o[1]),f=e.get("clockwise"),g=1,v=i.length;g<=v;g++){var m=g===v?i[0].coord:i[g].coord,y=l++%s.length;u[y]=u[y]||[],u[y].push(new zu({shape:{cx:n.cx,cy:n.cy,r0:d,r:p,startAngle:c,endAngle:-m*h,clockwise:f},silent:!0})),c=-m*h}for(g=0;g<u.length;g++)t.add(Ph(u[g],{style:A({fill:s[g%s.length]},a.getAreaStyle()),silent:!0}))}}},pN=["axisLine","axisTickLabel","axisName"],fN=["splitLine","splitArea","minorSplitLine"],gN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return n(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=this._axisGroup,i=this._axisGroup=new zr;this.group.add(i);var r=t.axis,o=r.polar,a=o.getAngleAxis(),s=r.getTicksCoords(),l=r.getMinorTicksCoords(),u=a.getExtent()[0],h=r.getExtent(),c=function(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}(o,t,u),d=new LM(t,c);R(pN,d.add,d),i.add(d.getGroup()),Gh(n,i,t),R(fN,(function(e){t.get([e,"show"])&&!r.scale.isBlank()&&vN[e](this.group,t,o,u,h,s,l)}),this)}},e.type="radiusAxis",e}(HM),vN={splitLine:function(t,e,n,i,r,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0,u=n.getAngleAxis(),h=Math.PI/180,c=u.getExtent(),d=360===Math.abs(c[1]-c[0])?"Circle":"Arc";s=s instanceof Array?s:[s];for(var p=[],f=0;f<o.length;f++){var g=l++%s.length;p[g]=p[g]||[],p[g].push(new Kh[d]({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[f].coord,0),startAngle:-c[0]*h,endAngle:-c[1]*h,clockwise:u.inverse}}))}for(f=0;f<p.length;f++)t.add(Ph(p[f],{style:A({stroke:s[f%s.length],fill:null},a.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,i,r,o,a){if(a.length){for(var s=e.getModel("minorSplitLine").getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var h=0;h<a[u].length;h++)l.push(new _u({shape:{cx:n.cx,cy:n.cy,r:a[u][h].coord}}));t.add(Ph(l,{style:A({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,i,r,o){if(o.length){var a=e.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],h=o[0].coord,c=1;c<o.length;c++){var d=l++%s.length;u[d]=u[d]||[],u[d].push(new zu({shape:{cx:n.cx,cy:n.cy,r0:h,r:o[c].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),h=o[c].coord}for(c=0;c<u.length;c++)t.add(Ph(u[c],{style:A({fill:s[c%s.length]},a.getAreaStyle()),silent:!0}))}}};function mN(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function yN(t,e){return e.dim+t.model.componentIndex}function xN(t,e,n){var i={},r=function(t){var e={};R(t,(function(t,n){var i=t.getData(),r=t.coordinateSystem,o=r.getBaseAxis(),a=yN(r,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/i.count(),u=e[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=u.stacks;e[a]=u;var c=mN(t);h[c]||u.autoWidthCount++,h[c]=h[c]||{width:0,maxWidth:0};var d=qr(t.get("barWidth"),l),p=qr(t.get("barMaxWidth"),l),f=t.get("barGap"),g=t.get("barCategoryGap");d&&!h[c].width&&(d=Math.min(u.remainedWidth,d),h[c].width=d,u.remainedWidth-=d),p&&(h[c].maxWidth=p),null!=f&&(u.gap=f),null!=g&&(u.categoryGap=g)}));var n={};return R(e,(function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=qr(t.categoryGap,r),a=qr(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),R(i,(function(t,e){var n=t.maxWidth;n&&n<u&&(n=Math.min(n,s),t.width&&(n=Math.min(n,t.width)),s-=n,t.width=n,l--)})),u=(s-o)/(l+(l-1)*a),u=Math.max(u,0);var h,c=0;R(i,(function(t,e){t.width||(t.width=u),h=t,c+=t.width*(1+a)})),h&&(c-=h.width*a);var d=-c/2;R(i,(function(t,i){n[e][i]=n[e][i]||{offset:d,width:t.width},d+=t.width*(1+a)}))})),n}(z(e.getSeriesByType(t),(function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type})));e.eachSeriesByType(t,(function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,o=n.getBaseAxis(),a=yN(n,o),s=mN(t),l=r[a][s],u=l.offset,h=l.width,c=n.getOtherAxis(o),d=t.coordinateSystem.cx,p=t.coordinateSystem.cy,f=t.get("barMinHeight")||0,g=t.get("barMinAngle")||0;i[s]=i[s]||[];for(var v=e.mapDimension(c.dim),m=e.mapDimension(o.dim),y=vx(e,v),x="radius"!==o.dim||!t.get("roundCap",!0),_=c.model.get("startValue"),b=c.dataToCoord(_||0),w=0,S=e.count();w<S;w++){var M=e.get(v,w),I=e.get(m,w),T=M>=0?"p":"n",C=b;y&&(i[s][I]||(i[s][I]={p:b,n:b}),C=i[s][I][T]);var A=void 0,D=void 0,L=void 0,k=void 0;if("radius"===c.dim){var P=c.dataToCoord(M)-b,O=o.dataToCoord(I);Math.abs(P)<f&&(P=(P<0?-1:1)*f),A=C,D=C+P,k=(L=O-u)-h,y&&(i[s][I][T]=D)}else{var R=c.dataToCoord(M,x)-b,N=o.dataToCoord(I);Math.abs(R)<g&&(R=(R<0?-1:1)*g),D=(A=N+u)+h,L=C,k=C+R,y&&(i[s][I][T]=k)}e.setItemLayout(w,{cx:d,cy:p,r0:A,r:D,startAngle:-L*Math.PI/180,endAngle:-k*Math.PI/180,clockwise:L>=k})}}}))}var _N={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},bN={splitNumber:5},wN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.type="polar",e}(Cg);function SN(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,r={},o=i.position,a=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]];r.rotation=Math.PI/2*{horizontal:0,vertical:1}[a];r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,right:1,left:-1}[o],t.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),et(e.labelInside,t.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var h=e.rotate;return null==h&&(h=t.get(["axisLabel","rotate"])),r.labelRotation="top"===o?-h:h,r.z2=1,r}var MN=["axisLine","axisTickLabel","axisName"],IN=["splitArea","splitLine"],TN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return n(e,t),e.prototype.render=function(e,n,i,r){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new zr;var s=SN(e),l=new LM(e,s);R(MN,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),R(IN,(function(t){e.get([t,"show"])&&CN[t](this,this.group,this._axisGroup,e)}),this),Gh(a,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)},e.prototype.remove=function(){YM(this)},e.type="singleAxis",e}(HM),CN={splitLine:function(t,e,n,i){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=a.get("width"),u=i.coordinateSystem.getRect(),h=r.isHorizontal(),c=[],d=0,p=r.getTicksCoords({tickModel:o}),f=[],g=[],v=0;v<p.length;++v){var m=r.toGlobalCoord(p[v].coord);h?(f[0]=m,f[1]=u.y,g[0]=m,g[1]=u.y+u.height):(f[0]=u.x,f[1]=m,g[0]=u.x+u.width,g[1]=m);var y=new Xu({shape:{x1:f[0],y1:f[1],x2:g[0],y2:g[1]},silent:!0});Rh(y.shape,l);var x=d++%s.length;c[x]=c[x]||[],c[x].push(y)}var _=a.getLineStyle(["color"]);for(v=0;v<c.length;++v)e.add(Ph(c[v],{style:A({stroke:s[v%s.length]},_),silent:!0}))}},splitArea:function(t,e,n,i){UM(t,n,i,i)}},AN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(Nd);P(AN,I_.prototype);var DN=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a.position=o||"bottom",a}return n(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]},e}(ub),LN=["single"],kN=function(){function t(t,e,n){this.type="single",this.dimension="single",this.dimensions=LN,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=this.dimension,r=new DN(i,x_(t),[0,0],t.get("type"),t.get("position")),o="category"===r.type;r.onBand=o&&t.get("boundaryGap"),r.inverse=t.get("inverse"),r.orient=t.get("orient"),t.axis=r,r.model=t,r.coordinateSystem=this,this._axis=r},t.prototype.update=function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();R(e.mapDimensionsAll(this.dimension),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),y_(this._axis.scale,this._axis.model)}}),this)},t.prototype.resize=function(t,e){this._rect=Ad({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],r=e.inverse?1:0;e.setExtent(i[r],i[1-r]),this._updateAxisTransform(e,n?t.x:t.y)},t.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),i=n[0]+n[1],r=t.isHorizontal();t.toGlobalCoord=r?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=r?function(t){return t-e}:function(t){return i-t+e}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},t.prototype.convertToPixel=function(t,e,n){return PN(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return PN(e)===this?this.pointToData(n):null},t}();function PN(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var ON={create:function(t,e){var n=[];return t.eachComponent("singleAxis",(function(i,r){var o=new kN(i,t,e);o.name="single_"+r,o.resize(i,e),i.coordinateSystem=o,n.push(o)})),t.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",Bo).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),n},dimensions:LN},RN=["x","y"],NN=["width","height"],EN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.coordinateSystem,s=BN(a,1-VN(o)),l=a.dataToPoint(e)[0],u=i.get("type");if(u&&"none"!==u){var h=vR(i),c=zN[u](o,l,s);c.style=h,t.graphicKey=c.type,t.pointer=c}_R(e,t,SN(n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=SN(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=xR(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.coordinateSystem,a=VN(r),s=BN(o,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=BN(o,1-a),h=(u[1]+u[0])/2,c=[h,h];return c[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}},e}(hR),zN={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:bR([e,n[0]],[e,n[1]],VN(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:wR([e-i/2,n[0]],[i,r],VN(t))}}};function VN(t){return t.isHorizontal()?0:1}function BN(t,e){var n=t.getRect();return[n[RN[e]],n[RN[e]]+n[NN[e]]]}var GN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.type="single",e}(Cg);var FN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.init=function(e,n,i){var r=Pd(e);t.prototype.init.apply(this,arguments),HN(e,r)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),HN(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(Nd);function HN(t,e){var n,i=t.cellSize;1===(n=H(i)?i:t.cellSize=[i,i]).length&&(n[1]=n[0]);var r=N([0,1],(function(t){return function(t,e){return null!=t[Id[e][0]]||null!=t[Id[e][1]]&&null!=t[Id[e][2]]}(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));kd(t,e,{type:"box",ignoreSize:r})}var WN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,s,a,i),this._renderWeekText(t,s,o,a,i)},e.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new Bs({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(u)}},e.prototype._renderLines=function(t,e,n,i){var r=this,o=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,h=0;u.time<=e.end.time;h++){d(u.formatedDate),0===h&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var c=u.date;c.setMonth(c.getMonth()+1),u=o.getDateInfo(c)}function d(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}d(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},e.prototype._getEdgesPoints=function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},e.prototype._drawSplitline=function(t,e,n){var i=new Uu({z2:20,shape:{points:t},style:e});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,r=i.getDateInfo(e),o=[],a=0;a<7;a++){var s=i.getNextNDay(r.time,a),l=i.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},e.prototype._formatterLabel=function(t,e){return U(t)&&t?(n=t,R(e,(function(t,e){n=n.replace("{"+e+"}",t)})),n):W(t)?t(e):e.nameMap;var n},e.prototype._yearTextPositionControl=function(t,e,n,i,r){var o=e[0],a=e[1],s=["center","bottom"];"bottom"===i?(a+=r,s=["center","top"]):"left"===i?o-=r:"right"===i?(o+=r,s=["center","top"]):a-=r;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,i){var r=t.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,h="horizontal"===n?0:1,c={top:[l,s[h][1]],bottom:[l,s[1-h][1]],left:[s[1-h][0],u],right:[s[h][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var p=r.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(p,f),v=new Hs({z2:30,style:nc(r,{text:g}),silent:r.get("silent")});v.attr(this._yearTextPositionControl(v,c[a],n,a,o)),i.add(v)}},e.prototype._monthTextPositionControl=function(t,e,n,i,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(o="center"),"start"===i&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,n,i){var r=t.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),a=r.get("margin"),s=r.get("position"),l=r.get("align"),u=[this._tlpoints,this._blpoints];o&&!U(o)||(o&&(e=Nc(o)||e),o=e.get(["time","monthAbbr"])||[]);var h="start"===s?0:1,c="horizontal"===n?0:1;a="start"===s?-a:a;for(var d="center"===l,p=r.get("silent"),f=0;f<u[h].length-1;f++){var g=u[h][f].slice(),v=this._firstDayOfMonth[f];if(d){var m=this._firstDayPoints[f];g[c]=(m[c]+u[0][f+1][c])/2}var y=r.get("formatter"),x=o[+v.m-1],_={yyyy:v.y,yy:(v.y+"").slice(2),MM:v.m,M:+v.m,nameMap:x},b=this._formatterLabel(y,_),w=new Hs({z2:30,style:C(nc(r,{text:b}),this._monthTextPositionControl(g,d,n,s,a)),silent:p});i.add(w)}}},e.prototype._weekTextPositionControl=function(t,e,n,i,r){var o="center",a="middle",s=t[0],l=t[1],u="start"===n;return"horizontal"===e?(s=s+i+(u?1:-1)*r[0]/2,o=u?"right":"left"):(l=l+i+(u?1:-1)*r[1]/2,a=u?"bottom":"top"),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderWeekText=function(t,e,n,i,r){var o=t.getModel("dayLabel");if(o.get("show")){var a=t.coordinateSystem,s=o.get("position"),l=o.get("nameMap"),u=o.get("margin"),h=a.getFirstDayOfWeek();if(!l||U(l))l&&(e=Nc(l)||e),l=e.get(["time","dayOfWeekShort"])||N(e.get(["time","dayOfWeekAbbr"]),(function(t){return t[0]}));var c=a.getNextNDay(n.end.time,7-n.lweek).time,d=[a.getCellWidth(),a.getCellHeight()];u=qr(u,Math.min(d[1],d[0])),"start"===s&&(c=a.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var p=o.get("silent"),f=0;f<7;f++){var g,v=a.getNextNDay(c,f),m=a.dataToRect([v.time],!1).center;g=Math.abs((f+h)%7);var y=new Hs({z2:30,style:C(nc(o,{text:l[g]}),this._weekTextPositionControl(m,i,s,u,d)),silent:p});r.add(y)}}},e.type="calendar",e}(Cg),UN=864e5,YN=function(){function t(e,n,i){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(t){var e=(t=so(t)).getFullYear(),n=t.getMonth()+1,i=n<10?"0"+n:""+n,r=t.getDate(),o=r<10?"0"+r:""+r,a=t.getDay();return{y:e+"",m:i,d:o,day:a=Math.abs((a+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+i+"-"+o,date:t}},t.prototype.getNextNDay=function(t,e){return 0===(e=e||0)||(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},t.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],r=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];R([0,1],(function(t){u(r,t)&&(o[i[t]]=r[t]*a[t])}));var s={width:e.getWidth(),height:e.getHeight()},l=this._rect=Ad(o,s);function u(t,e){return null!=t[e]&&"auto"!==t[e]}R([0,1],(function(t){u(r,t)||(r[t]=l[i[t]]/a[t])})),this._sw=r[0],this._sh=r[1]},t.prototype.dataToPoint=function(t,e){H(t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,r=n.formatedDate;if(e&&!(n.time>=i.start.time&&n.time<i.end.time+UN))return[NaN,NaN];var o=n.day,a=this._getRangeInfo([i.start.time,r]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]:[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},t.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},t.prototype.dataToRect=function(t,e){var n=this.dataToPoint(t,e);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},t.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,e-1,i):this._getDateByWeeksAndDay(e,n-1,i)},t.prototype.convertToPixel=function(t,e,n){var i=ZN(e);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=ZN(e);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var t,e=this._model.get("range");if(H(e)&&1===e.length&&(e=e[0]),H(e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),r=i.date;r.setMonth(r.getMonth()+1);var o=this.getNextNDay(r,-1);t=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return e;var a=this._getRangeInfo(t);return a.start.time>a.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var i=Math.floor(n[1].time/UN)-Math.floor(n[0].time/UN)+1,r=new Date(n[0].time),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a)for(var l=r.getTime()-n[1].time>0?1:-1;(s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0;)i-=l,r.setDate(s-l);var u=Math.floor((i+n[0].day+6)/7),h=e?1-u:u-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:h,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&e<i.fweek||t===i.weeks&&e>i.lweek)return null;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},t.create=function(e,n){var i=[];return e.eachComponent("calendar",(function(e){var n=new t(e);i.push(n),e.coordinateSystem=n})),e.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])})),i},t.dimensions=["time","value"],t}();function ZN(t){var e=t.calendarModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem:null}function XN(t,e){var n;return R(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}var jN=["transition","enterFrom","leaveTo"],qN=jN.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function KN(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?jN:qN,r=0;r<i.length;r++){var o=i[r];null==t[o]&&null!=e[o]&&(t[o]=e[o])}}var $N=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return n(e,t),e.prototype.mergeOption=function(e,n){var i=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,e,n),this.option.elements=i},e.prototype.optionUpdated=function(t,e){var n=this.option,i=(e?n:t).elements,r=n.elements=e?[]:n.elements,o=[];this._flatten(i,o,null);var a=Ao(r,o,"normalMerge"),s=this._elOptionsToUpdate=[];R(a,(function(t,e){var n=t.newOption;n&&(s.push(n),function(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}(t,n),function(t,e,n){var i=C({},n),r=t[e],o=n.$action||"merge";"merge"===o?r?(I(r,i,!0),kd(r,i,{ignoreSize:!0}),Od(n,r),KN(n,r),KN(n,r,"shape"),KN(n,r,"style"),KN(n,r,"extra"),n.clipPath=r.clipPath):t[e]=i:"replace"===o?t[e]=i:"remove"===o&&r&&(t[e]=null)}(r,e,n),function(t,e){if(t&&(t.hv=e.hv=[XN(e,["left","right"]),XN(e,["top","bottom"])],"group"===t.type)){var n=t,i=e;null==n.width&&(n.width=i.width=0),null==n.height&&(n.height=i.height=0)}}(r[e],n))}),this),n.elements=z(r,(function(t){return t&&delete t.$action,null!=t}))},e.prototype._flatten=function(t,e,n){R(t,(function(t){if(t){n&&(t.parentOption=n),e.push(t);var i=t.children;i&&i.length&&this._flatten(i,e,t),delete t.children}}),this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(Nd),JN={path:null,compoundPath:null,group:zr,image:Ps,text:Hs},QN=No(),tE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.init=function(){this._elMap=ft()},e.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,i=this.group,r=t.get("z"),o=t.get("zlevel");R(e,(function(e){var a=ko(e.id,null),s=null!=a?n.get(a):null,l=ko(e.parentId,null),u=null!=l?n.get(l):i,h=e.type,c=e.style;"text"===h&&c&&e.hv&&e.hv[1]&&(c.textVerticalAlign=c.textBaseline=c.verticalAlign=c.align=null);var d=e.textContent,p=e.textConfig;if(c&&sO(c,h,!!p,!!d)){var f=lO(c,h,!0);!p&&f.textConfig&&(p=e.textConfig=f.textConfig),!d&&f.textContent&&(d=f.textContent)}var g=function(t){return t=C({},t),R(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Md),(function(e){delete t[e]})),t}(e),v=e.$action||"merge",m="merge"===v,y="replace"===v;if(m){var x=s;(T=!s)?x=nE(a,u,e.type,n):(x&&(QN(x).isNew=!1),DO(x)),x&&(mO(x,g,t,{isInit:T}),rE(x,e,r,o))}else if(y){iE(s,e,n,t);var _=nE(a,u,e.type,n);_&&(mO(_,g,t,{isInit:!0}),rE(_,e,r,o))}else"remove"===v&&(yO(s,e),iE(s,e,n,t));var b=n.get(a);if(b&&d)if(m){var w=b.getTextContent();w?w.attr(d):b.setTextContent(new Hs(d))}else y&&b.setTextContent(new Hs(d));if(b){var S=e.clipPath;if(S){var M=S.type,I=void 0,T=!1;if(m){var A=b.getClipPath();I=(T=!A||QN(A).type!==M)?eE(M):A}else y&&(T=!0,I=eE(M));b.setClipPath(I),mO(I,S,t,{isInit:T}),LO(I,S.keyframeAnimation,t)}var D=QN(b);b.setTextConfig(p),D.option=e,function(t,e,n){var i=el(t).eventData;t.silent||t.ignore||i||(i=el(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name});i&&(i.info=n.info)}(b,t,e),Xh({el:b,componentModel:t,itemName:b.name,itemTooltipOption:e.tooltip}),LO(b,e.keyframeAnimation,t)}}))}},e.prototype._relocate=function(t,e){for(var n=t.option.elements,i=this.group,r=this._elMap,o=e.getWidth(),a=e.getHeight(),s=["x","y"],l=0;l<n.length;l++){if((f=null!=(p=ko((d=n[l]).id,null))?r.get(p):null)&&f.isGroup){var u=(g=f.parent)===i,h=QN(f),c=QN(g);h.width=qr(h.option.width,u?o:c.width)||0,h.height=qr(h.option.height,u?a:c.height)||0}}for(l=n.length-1;l>=0;l--){var d,p,f;if(f=null!=(p=ko((d=n[l]).id,null))?r.get(p):null){var g=f.parent,v=(c=QN(g),{}),m=Dd(f,d,g===i?{width:o,height:a}:{width:c.width,height:c.height},null,{hv:d.hv,boundingMode:d.bounding},v);if(!QN(f).isNew&&m){for(var y=d.transition,x={},_=0;_<s.length;_++){var b=s[_],w=v[b];y&&(_O(y)||L(y,b)>=0)?x[b]=w:f[b]=w}fh(f,x,t,0)}else f.attr(v)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){iE(n,QN(n).option,e,t._lastGraphicModel)})),this._elMap=ft()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Cg);function eE(t){var e=new(yt(JN,t)?JN[t]:Ah(t))({});return QN(e).type=t,e}function nE(t,e,n,i){var r=eE(n);return e.add(r),i.set(t,r),QN(r).id=t,QN(r).isNew=!0,r}function iE(t,e,n,i){t&&t.parent&&("group"===t.type&&t.traverse((function(t){iE(t,e,n,i)})),xO(t,e,i),n.removeKey(QN(t).id))}function rE(t,e,n,i){t.isGroup||R([["cursor",Ia.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];yt(e,i)?t[i]=nt(e[i],n[1]):null==t[i]&&(t[i]=n[1])})),R(B(e),(function(n){if(0===n.indexOf("on")){var i=e[n];t[n]=W(i)?i:null}})),yt(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}function oE(t){t.registerComponentModel($N),t.registerComponentView(tE),t.registerPreprocessor((function(t){var e=t.graphic;H(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}))}var aE=["x","y","radius","angle","single"],sE=["cartesian2d","polar","singleAxis"];function lE(t){return t+"Axis"}function uE(t,e){var n,i=ft(),r=[],o=ft();t.eachComponent({mainType:"dataZoom",query:e},(function(t){o.get(t.uid)||s(t)}));do{n=!1,t.eachComponent("dataZoom",a)}while(n);function a(t){!o.get(t.uid)&&function(t){var e=!1;return t.eachTargetAxis((function(t,n){var r=i.get(t);r&&r[n]&&(e=!0)})),e}(t)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),r.push(t),t.eachTargetAxis((function(t,e){(i.get(t)||i.set(t,[]))[e]=!0}))}return r}function hE(t){var e=t.ecModel,n={infoList:[],infoMap:ft()};return t.eachTargetAxis((function(t,i){var r=e.getComponent(lE(t),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(r)}}})),n}var cE=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),dE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return n(e,t),e.prototype.init=function(t,e,n){var i=pE(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=pE(t);I(this.option,t,!0),I(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;R([["start","startValue"],["end","endValue"]],(function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=ft();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return R(aE,(function(n){var i=this.getReferringComponents(lE(n),Go);if(i.specified){e=!0;var r=new cE;R(i.models,(function(t){r.add(t.componentIndex)})),t.set(n,r)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0;if(i){var r="vertical"===e?"y":"x";o(n.findComponents({mainType:r+"Axis"}),r)}i&&o(n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single");function o(e,n){var r=e[0];if(r){var o=new cE;if(o.add(r.componentIndex),t.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",Bo).models[0];a&&R(e,(function(t){r.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",Bo).models[0]&&o.add(t.componentIndex)}))}}}i&&R(aE,(function(e){if(i){var r=n.findComponents({mainType:lE(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var o=new cE;o.add(r[0].componentIndex),t.set(e,o),i=!1}}}),this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");R([["start","startValue"],["end","endValue"]],(function(i,r){var o=null!=t[i[0]],a=null!=t[i[1]];o&&!a?e[r]="percent":!o&&a?e[r]="value":n?e[r]=n[r]:o&&(e[r]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(lE(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,i){R(n.indexList,(function(n){t.call(e,i,n)}))}))},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(lE(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;R([["start","startValue"],["end","endValue"]],(function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;R(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var r=n[i],o=this._targetAxisInfoMap.get(r),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(r,o.indexList[a]);if(s.hostedBy(this))return s;e||(e=s)}return e},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(Nd);function pE(t){var e={};return R(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}var fE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.type="dataZoom.select",e}(dE),gE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.render=function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}(Cg),vE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.type="dataZoom.select",e}(gE),mE=R,yE=$r,xE=function(){function t(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries((function(e){if(function(t){var e=t.get("coordinateSystem");return L(sE,e)>=0}(e)){var n=lE(this._dimName),i=e.getReferringComponents(n,Bo).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}}),this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return M(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,i=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];mE(["start","end"],(function(l,u){var h=t[l],c=t[l+"Value"];"percent"===r[u]?(null==h&&(h=o[u]),c=i.parse(jr(h,o,n))):(e=!0,h=jr(c=null==c?n[u]:i.parse(c),n,o)),s[u]=null==c||isNaN(c)?n[u]:c,a[u]=null==h||isNaN(h)?o[u]:h})),yE(s),yE(a);var l=this._minMaxSpan;function u(t,e,n,r,o){var a=o?"Span":"ValueSpan";BD(0,t,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=jr(t[s],n,r,!0),o&&(e[s]=i.parse(e[s]))}return e?u(s,a,n,o,!1):u(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function(t,e,n){var i=[1/0,-1/0];mE(n,(function(t){!function(t,e,n){e&&R(M_(e,n),(function(n){var i=e.getApproximateExtent(n);i[0]<t[0]&&(t[0]=i[0]),i[1]>t[1]&&(t[1]=i[1])}))}(i,t.getData(),e)}));var r=t.getAxisModel(),o=g_(r.axis.scale,r,i).calculate();return[o.min,o.max]}(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._valueWindow;"none"!==r&&mE(i,(function(t){var e=t.getData(),i=e.mapDimensionsAll(n);if(i.length){if("weakFilter"===r){var a=e.getStore(),s=N(i,(function(t){return e.getDimensionIndex(t)}),e);e.filterSelf((function(t){for(var e,n,r,l=0;l<i.length;l++){var u=a.get(s[l],t),h=!isNaN(u),c=u<o[0],d=u>o[1];if(h&&!c&&!d)return!0;h&&(r=!0),c&&(e=!0),d&&(n=!0)}return r&&e&&n}))}else mE(i,(function(n){if("empty"===r)t.setData(e=e.map(n,(function(t){return function(t){return t>=o[0]&&t<=o[1]}(t)?t:NaN})));else{var i={};i[n]=o,e.selectRange(i)}}));mE(i,(function(t){e.setApproximateExtent(o,t)}))}}))}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;mE(["min","max"],(function(i){var r=e.get(i+"Span"),o=e.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=jr(n[0]+o,n,[0,100],!0):null!=r&&(o=jr(r,[0,100],n,!0)-n[0]),t[i+"Span"]=r,t[i+"ValueSpan"]=o}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=to(n,[0,500]);i=Math.min(i,20);var r=t.axis.scale.rawExtentInfo;0!==e[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==e[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},t}();var _E={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,r){var o=t.getComponent(lE(i),r);e(i,r,o,n)}))}))}e((function(t,e,n,i){n.__dzAxisProxy=null}));var n=[];e((function(e,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new xE(e,i,o,t),n.push(r.__dzAxisProxy))}));var i=ft();return R(n,(function(t){R(t.getTargetSeriesModels(),(function(t){i.set(t.uid,t)}))})),i},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,i){t.getAxisProxy(n,i).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}};var bE=!1;function wE(t){bE||(bE=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,_E),function(t){t.registerAction("dataZoom",(function(t,e){R(uE(e,t),(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function SE(t){t.registerComponentModel(fE),t.registerComponentView(vE),wE(t)}var ME=function(){return function(){}}(),IE={};function TE(t,e){IE[t]=e}function CE(t){return IE[t]}var AE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;R(this.option.feature,(function(t,n){var i=CE(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),I(t,i.defaultOption))}))},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(Nd);function DE(t,e){var n=fd(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new Bs({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}var LE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(t,e,n,i){var r=this.group;if(r.removeAll(),t.get("show")){var o=+t.get("itemSize"),a="vertical"===t.get("orient"),s=t.get("feature")||{},l=this._features||(this._features={}),u=[];R(s,(function(t,e){u.push(e)})),new Vy(this._featureNames||[],u).add(h).update(h).remove(F(h,null)).execute(),this._featureNames=u,function(t,e,n){var i=e.getBoxLayoutParams(),r=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=Ad(i,o,r);Cd(e.get("orient"),t,e.get("itemGap"),a.width,a.height),Dd(t,i,o,r)}(r,t,n),r.add(DE(r.getBoundingRect(),t)),a||r.eachChild((function(t){var e=t.__title,i=t.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=t.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!W(l)&&e){var u=l.style||(l.style={}),h=br(e,Hs.makeFont(u)),c=t.x+r.x,d=!1;t.y+r.y+o+h.height>n.getHeight()&&(a.position="top",d=!0);var p=d?-5-h.height:o+10;c+h.width/2>n.getWidth()?(a.position=["100%",p],u.align="right"):c-h.width/2<0&&(a.position=[0,p],u.align="left")}}))}function h(h,c){var d,p=u[h],f=u[c],g=s[p],v=new Mc(g,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===p&&(g.title=i.newTitle),p&&!f){if(function(t){return 0===t.indexOf("my")}(p))d={onclick:v.option.onclick,featureName:p};else{var m=CE(p);if(!m)return;d=new m}l[p]=d}else if(!(d=l[f]))return;d.uid=Tc("toolbox-feature"),d.model=v,d.ecModel=e,d.api=n;var y=d instanceof ME;p||!f?!v.get("show")||y&&d.unusable?y&&d.remove&&d.remove(e,n):(!function(i,s,l){var u,h,c=i.getModel("iconStyle"),d=i.getModel(["emphasis","iconStyle"]),p=s instanceof ME&&s.getIcons?s.getIcons():i.get("icon"),f=i.get("title")||{};U(p)?(u={})[l]=p:u=p;U(f)?(h={})[l]=f:h=f;var g=i.iconPaths={};R(u,(function(l,u){var p=Wh(l,{},{x:-o/2,y:-o/2,width:o,height:o});p.setStyle(c.getItemStyle()),p.ensureState("emphasis").style=d.getItemStyle();var f=new Hs({style:{text:h[u],align:d.get("textAlign"),borderRadius:d.get("textBorderRadius"),padding:d.get("textPadding"),fill:null,font:lc({fontStyle:d.get("textFontStyle"),fontFamily:d.get("textFontFamily"),fontSize:d.get("textFontSize"),fontWeight:d.get("textFontWeight")},e)},ignore:!0});p.setTextContent(f),Xh({el:p,componentModel:t,itemName:u,formatterParamsExtra:{title:h[u]}}),p.__title=h[u],p.on("mouseover",(function(){var e=d.getItemStyle(),i=a?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";f.setStyle({fill:d.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:d.get("textBackgroundColor")}),p.setTextConfig({position:d.get("textPosition")||i}),f.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",u])&&n.leaveEmphasis(this),f.hide()})),("emphasis"===i.get(["iconStatus",u])?Ll:kl)(p),r.add(p),p.on("click",G(s.onclick,s,e,n,u)),g[u]=p}))}(v,d,p),v.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?Ll:kl)(i[t])},d instanceof ME&&d.render&&d.render(v,e,n,i)):y&&d.dispose&&d.dispose(e,n)}},e.prototype.updateView=function(t,e,n,i){R(this._features,(function(t){t instanceof ME&&t.updateView&&t.updateView(t.model,e,n,i)}))},e.prototype.remove=function(t,e){R(this._features,(function(n){n instanceof ME&&n.remove&&n.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){R(this._features,(function(n){n instanceof ME&&n.dispose&&n.dispose(t,e)}))},e.type="toolbox",e}(Cg);var kE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o="svg"===e.getZr().painter.getType(),a=o?"svg":n.get("type",!0)||"png",s=e.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),l=r.browser;if("function"!=typeof MouseEvent||!l.newEdge&&(l.ie||l.edge))if(window.navigator.msSaveOrOpenBlob||o){var u=s.split(","),h=u[0].indexOf("base64")>-1,c=o?decodeURIComponent(u[1]):u[1];h&&(c=window.atob(c));var d=i+"."+a;if(window.navigator.msSaveOrOpenBlob){for(var p=c.length,f=new Uint8Array(p);p--;)f[p]=c.charCodeAt(p);var g=new Blob([f]);window.navigator.msSaveOrOpenBlob(g,d)}else{var v=document.createElement("iframe");document.body.appendChild(v);var m=v.contentWindow,y=m.document;y.open("image/svg+xml","replace"),y.write(c),y.close(),m.focus(),y.execCommand("SaveAs",!0,d),document.body.removeChild(v)}}else{var x=n.get("lang"),_='<body style="margin:0;"><img src="'+s+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',b=window.open();b.document.write(_),b.document.title=i}else{var w=document.createElement("a");w.download=i+"."+a,w.target="_blank",w.href=s;var S=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});w.dispatchEvent(S)}},e.getDefaultOption=function(t){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},e}(ME),PE="__ec_magicType_stack__",OE=[["line","bar"],["stack"]],RE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return R(t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},e.getDefaultOption=function(t){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},e.prototype.onclick=function(t,e,n){var i=this.model,r=i.get(["seriesIndex",n]);if(NE[n]){var o,a={series:[]};R(OE,(function(t){L(t,n)>=0&&R(t,(function(t){i.setIconStatus(t,"normal")}))})),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},(function(t){var e=t.subType,r=t.id,o=NE[n](e,r,t,i);o&&(A(o,t.option),a.series.push(o));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim+"Axis",h=t.getReferringComponents(u,Bo).models[0].componentIndex;a[u]=a[u]||[];for(var c=0;c<=h;c++)a[u][h]=a[u][h]||{};a[u][h].boundaryGap="bar"===n}}}));var s=n;"stack"===n&&(o=I({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(s="tiled")),e.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:o,featureName:"magicType"})}},e}(ME),NE={line:function(t,e,n,i){if("bar"===t)return I({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(t,e,n,i){if("line"===t)return I({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(t,e,n,i){var r=n.get("stack")===PE;if("line"===t||"bar"===t)return i.setIconStatus("stack",r?"normal":"emphasis"),I({id:e,stack:r?"":PE},i.get(["option","stack"])||{},!0)}};Iy({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var EE=new Array(60).join("-"),zE="\t";function VE(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var BE=new RegExp("[\t]+","g");function GE(t,e){var n=t.split(new RegExp("\n*"+EE+"\n*","g")),i={series:[]};return R(n,(function(t,n){if(function(t){if(t.slice(0,t.indexOf("\n")).indexOf(zE)>=0)return!0}(t)){var r=function(t){for(var e=t.split(/\n+/g),n=[],i=N(VE(e.shift()).split(BE),(function(t){return{name:t,data:[]}})),r=0;r<e.length;r++){var o=VE(e[r]).split(BE);n.push(o.shift());for(var a=0;a<o.length;a++)i[a]&&(i[a].data[r]=o[a])}return{series:i,categories:n}}(t),o=e[n],a=o.axisDim+"Axis";o&&(i[a]=i[a]||[],i[a][o.axisIndex]={data:r.categories},i.series=i.series.concat(r.series))}else{r=function(t){for(var e=t.split(/\n+/g),n=VE(e.shift()),i=[],r=0;r<e.length;r++){var o=VE(e[r]);if(o){var a=o.split(BE),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),i[r]={name:s,value:[]},l=i[r].value):l=i[r]=[];for(var h=0;h<a.length;h++)l.push(+a[h]);1===l.length&&(u?i[r].value=l[0]:i[r]=l[0])}}return{name:n,data:i}}(t);i.series.push(r)}})),i}var FE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.onclick=function(t,e){setTimeout((function(){e.dispatchAction({type:"hideTip"})}));var n=e.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var r=document.createElement("div");r.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",r.style.backgroundColor=i.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=i.get("lang")||[];o.innerHTML=a[0]||i.get("title"),o.style.cssText="margin:10px 20px",o.style.color=i.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var u=i.get("optionToContent"),h=i.get("contentToOption"),c=function(t){var e,n,i,r=function(t){var e={},n=[],i=[];return t.eachRawSeries((function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(t);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:i}}(t);return{value:z([(n=r.seriesGroupByCategoryAxis,i=[],R(n,(function(t,e){var n=t.categoryAxis,r=t.valueAxis.dim,o=[" "].concat(N(t.series,(function(t){return t.name}))),a=[n.model.getCategories()];R(t.series,(function(t){var e=t.getRawData();a.push(t.getRawData().mapArray(e.mapDimension(r),(function(t){return t})))}));for(var s=[o.join(zE)],l=0;l<a[0].length;l++){for(var u=[],h=0;h<a.length;h++)u.push(a[h][l]);s.push(u.join(zE))}i.push(s.join("\n"))})),i.join("\n\n"+EE+"\n\n")),(e=r.other,N(e,(function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,r=arguments[t-1],o=e.getName(r),a=0;a<t-1;a++)i[a]=arguments[a];n.push((o?o+zE:"")+i.join(zE))})),n.join("\n")})).join("\n\n"+EE+"\n\n"))],(function(t){return!!t.replace(/[\n\t\s]/g,"")})).join("\n\n"+EE+"\n\n"),meta:r.meta}}(t);if(W(u)){var d=u(e.getOption());U(d)?s.innerHTML=d:K(d)&&s.appendChild(d)}else{l.readOnly=i.get("readOnly");var p=l.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),l.value=c.value,s.appendChild(l)}var f=c.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var v="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",m=document.createElement("div"),y=document.createElement("div");v+=";background-color:"+i.get("buttonColor"),v+=";color:"+i.get("buttonTextColor");var x=this;function _(){n.removeChild(r),x._dom=null}he(m,"click",_),he(y,"click",(function(){if(null==h&&null!=u||null!=h&&null==u)_();else{var t;try{t=W(h)?h(s,e.getOption()):GE(l.value,f)}catch(n){throw _(),new Error("Data view format error "+n)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),_()}})),m.innerHTML=a[1],y.innerHTML=a[2],y.style.cssText=m.style.cssText=v,!i.get("readOnly")&&g.appendChild(y),g.appendChild(m),r.appendChild(o),r.appendChild(s),r.appendChild(g),s.style.height=n.clientHeight-80+"px",n.appendChild(r),this._dom=r},e.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.getDefaultOption=function(t){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},e}(ME);function HE(t,e){return N(t,(function(t,n){var i=e&&e[n];if(X(i)&&!H(i)){X(t)&&!H(t)||(t={value:t});var r=null!=i.name&&null==t.name;return t=A(t,i),r&&delete t.name,t}return t}))}Iy({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var n=[];R(t.newOption.series,(function(t){var i=e.getSeriesByName(t.name)[0];if(i){var r=i.get("data");n.push({name:t.name,data:HE(t.data,r)})}else n.push(C({type:"scatter"},t))})),e.mergeOption(A({series:n},t.newOption))}));var WE=R,UE=No();function YE(t){var e=UE(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var ZE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.onclick=function(t,e){!function(t){UE(t).snapshots=null}(t),e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])}},e}(ME);Iy({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var XE=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],jE=function(){function t(t,e,n){var i=this;this._targetInfoList=[];var r=KE(e,t);R($E,(function(t,e){(!n||!n.include||L(n.include,e)>=0)&&t(r,i._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=tz[t.brushType](0,n,e);t.__rangeOffset={offset:nz[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){R(t,(function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&R(i.coordSyses,(function(i){var r=tz[t.brushType](1,i,t.range,!0);n(t,r.values,i,e)}))}),this)},t.prototype.setInputRanges=function(t,e){R(t,(function(t){var n,i,r,o,a,s=this.findTargetInfo(t,e);if(t.range=t.range||[],s&&!0!==s){t.panelId=s.panelId;var l=tz[t.brushType](0,s.coordSys,t.coordRange),u=t.__rangeOffset;t.range=u?nz[t.brushType](l.values,u.offset,(n=l.xyMinMax,i=u.xyMinMax,r=rz(n),o=rz(i),a=[r[0]/o[0],r[1]/o[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):l.values}}),this)},t.prototype.makePanelOpts=function(t,e){return N(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:FL(i),isTargetByCursor:WL(i,t,n.coordSysModel),getLinearBrushOtherExtent:HL(i)}}))},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&L(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=KE(e,t),r=0;r<n.length;r++){var o=n[r],a=t.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<JE.length;s++)if(JE[s](i,o))return o}return!0},t}();function qE(t){return t[0]>t[1]&&t.reverse(),t}function KE(t,e){return zo(t,e,{includeMainTypes:XE})}var $E={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,r=t.gridModels,o=ft(),a={},s={};(n||i||r)&&(R(n,(function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0})),R(i,(function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0})),R(r,(function(t){o.set(t.id,t),a[t.id]=!0,s[t.id]=!0})),o.each((function(t){var r=t.coordinateSystem,o=[];R(r.getCartesians(),(function(t,e){(L(n,t.getAxis("x").model)>=0||L(i,t.getAxis("y").model)>=0)&&o.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:QE.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){R(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:QE.geo})}))}},JE=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],QE={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Eh(t)),e}},tz={lineX:F(ez,0),lineY:F(ez,1),rect:function(t,e,n,i){var r=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),o=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),a=[qE([r[0],o[0]]),qE([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,i){var r=[[1/0,-1/0],[1/0,-1/0]];return{values:N(n,(function(n){var o=t?e.pointToData(n,i):e.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o})),xyMinMax:r}}};function ez(t,e,n,i){var r=n.getAxis(["x","y"][t]),o=qE(N([0,1],(function(t){return e?r.coordToData(r.toLocalCoord(i[t]),!0):r.toGlobalCoord(r.dataToCoord(i[t]))}))),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var nz={lineX:F(iz,0),lineY:F(iz,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return N(t,(function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]}))}};function iz(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function rz(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var oz,az,sz=R,lz=wo+"toolbox-dataZoom_",uz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new hL(n.getZr()),this._brushController.on("brush",G(this._onBrush,this)).mount()),function(t,e,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive);n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new jE(cz(t),e,{include:["grid"]}),s=a.makePanelOpts(r,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}(t,e,this,i,n),function(t,e){t.setIconStatus("back",function(t){return YE(t).length}(e)>1?"emphasis":"normal")}(t,e)},e.prototype.onclick=function(t,e,n){hz[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},i=this.ecModel;this._brushController.updateCovers([]),new jE(cz(this.model),i,{include:["grid"]}).matchOutputRanges(e,i,(function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(r("x",n,e[0]),r("y",n,e[1])):r({lineX:"x",lineY:"y"}[i],n,e)}})),function(t,e){var n=YE(t);WE(e,(function(e,i){for(var r=n.length-1;r>=0&&!n[r][i];r--);if(r<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var a=o.getPercentRange();n[0][i]={dataZoomId:i,start:a[0],end:a[1]}}}})),n.push(e)}(i,n),this._dispatchZoomAction(n)}function r(t,e,r){var o=e.getAxis(t),a=o.model,s=function(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(t,e.componentIndex)&&(i=n)})),i}(t,a,i),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(r=BD(0,r.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:r[0],endValue:r[1]})}},e.prototype._dispatchZoomAction=function(t){var e=[];sz(t,(function(t,n){e.push(M(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},e}(ME),hz={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(function(t){var e=YE(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return WE(n,(function(t,n){for(var r=e.length-1;r>=0;r--)if(t=e[r][n]){i[n]=t;break}})),i}(this.ecModel))}};function cz(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}oz="dataZoom",az=function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var i=e.getModel(n),r=[],o=zo(t,cz(i));return sz(o.xAxisModels,(function(t){return a(t,"xAxis","xAxisIndex")})),sz(o.yAxisModels,(function(t){return a(t,"yAxis","yAxisIndex")})),r}function a(t,e,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:lz+e+o};a[n]=o,r.push(a)}},at(null==ip.get(oz)&&az),ip.set(oz,az);var dz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(Nd);function pz(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function fz(t){if(r.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}var gz=fz(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function vz(t,e){if(!t)return e;e=pd(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var mz=vz(fz(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),yz=vz(gz,"transform"),xz="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(r.transform3dSupported?"will-change:transform;":"");function _z(t,e,n){var i=t.toFixed(0)+"px",o=e.toFixed(0)+"px";if(!r.transformSupported)return n?"top:"+o+";left:"+i+";":[["top",o],["left",i]];var a=r.transform3dSupported,s="translate"+(a?"3d":"")+"("+i+","+o+(a?",0":"")+")";return n?"top:0;left:0;"+yz+":"+s+";":[["top",0],["left",0],[gz,s]]}function bz(t,e,n){var i=[],o=t.get("transitionDuration"),a=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),h=t.get("shadowOffsetY"),c=t.getModel("textStyle"),d=pg(t,"html"),p=u+"px "+h+"px "+s+"px "+l;return i.push("box-shadow:"+p),e&&o&&i.push(function(t,e){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+t/2+"s "+n,o="opacity"+i+",visibility"+i;return e||(i=" "+t+"s "+n,o+=r.transformSupported?","+yz+i:",left"+i+",top"+i),mz+":"+o}(o,n)),a&&i.push("background-color:"+a),R(["width","color","radius"],(function(e){var n="border-"+e,r=pd(n),o=t.get(r);null!=o&&i.push(n+":"+o+("color"===e?"":"px"))})),i.push(function(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var r=nt(t.get("lineHeight"),Math.round(3*n/2));n&&e.push("line-height:"+r+"px");var o=t.get("textShadowColor"),a=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return o&&a&&e.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),R(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}(c)),null!=d&&i.push("padding:"+fd(d).join("px ")+"px"),i.join(";")+";"}function wz(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&function(t,e,n,i,r){Jt($t,e,i,r,!0)&&Jt(t,n,$t[0],$t[1])}(t,a,n,i,r)}else{t[0]=i,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var Sz=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,r.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),o=e.appendTo,a=o&&(U(o)?document.querySelector(o):K(o)?o:W(o)&&o(t.getDom()));wz(this._styleCoord,i,a,t.getWidth()/2,t.getHeight()/2),(a||t.getDom()).appendChild(n),this._api=t,this._container=a;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!s._enterable){var e=i.handler;ue(i.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=(o="position",(a=(r=e).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r))?a[o]:null),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative")}var r,o,a,s=t.get("alwaysShowContent");s&&this._moveIfResized(),this._alwaysShowContent=s,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=xz+bz(t,!this._firstShow,this._longHide)+_z(r[0],r[1],!0)+"border-color:"+bd(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null!=t){var a="";if(U(r)&&"item"===n.get("trigger")&&!pz(n)&&(a=function(t,e,n){if(!U(n)||"inside"===n)return"";var i=t.get("backgroundColor"),r=t.get("borderWidth");e=bd(e);var o,a,s="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",l=Math.max(1.5*Math.round(r),6),u="",h=yz+":";L(["left","right"],s)>-1?(u+="top:50%",h+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(u+="left:50%",h+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var c=a*Math.PI/180,d=l+r,p=d*Math.abs(Math.cos(c))+d*Math.abs(Math.sin(c)),f=e+" solid "+r+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",(u+=";"+s+":-"+Math.round(100*((p-Math.SQRT2*r)/2+Math.SQRT2*r-(p-d)/2))/100+"px")+";"+h+";","border-bottom:"+f,"border-right:"+f,"background-color:"+i+";"].join("")+'"></div>'}(n,i,r)),U(t))o.innerHTML=t+a;else if(t){o.innerHTML="",H(t)||(t=[t]);for(var s=0;s<t.length;s++)K(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},t.prototype.moveTo=function(t,e){if(this.el){var n=this._styleCoord;if(wz(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style;R(_z(n[0],n[1]),(function(t){i[t[0]]=t[1]}))}}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",r.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(G(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},t}(),Mz=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),Cz(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,i,r){var o=this;X(t)&&xo(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new Hs({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:pg(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),R(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){o.el.style[t]=n.get(t)})),R(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){o.el.style[t]=a.get(t)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=Tz(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;Cz(i,this._zr,t,e),t=i[0],e=i[1];var r=n.style,o=Iz(r.borderWidth||0),a=Tz(r);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(G(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function Iz(t){return Math.max(0,t)}function Tz(t){var e=Iz(t.shadowBlur||0),n=Iz(t.shadowOffsetX||0),i=Iz(t.shadowOffsetY||0);return{left:Iz(e-n),right:Iz(e+n),top:Iz(e-i),bottom:Iz(e+i)}}function Cz(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var Az=new Bs({shape:{x:-1,y:-1,width:2,height:2}}),Dz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.init=function(t,e){if(!r.node&&e.getDom()){var n,i=t.getComponent("tooltip"),o=this._renderMode="auto"===(n=i.get("renderMode"))?r.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===o?new Mz(e):new Sz(e,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(t,e,n){if(!r.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?Fg(this,"_updatePosition",50,"fixRate"):Hg(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");kR("itemTooltip",this._api,G((function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!r.node&&n.getDom()){var o=kz(i,n);this._ticket="";var a=i.dataByCoordSys,s=function(t,e,n){var i=Vo(t).queryOptionMap,r=i.keys()[0];if(!r||"series"===r)return;var o=Fo(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(!a)return;var s,l=n.getViewOfComponentModel(a);if(l.group.traverse((function(e){var n=el(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s)return{componentMainType:r,componentIndex:a.componentIndex,el:s}}(i,e,n);if(s){var l=s.el.getBoundingRect().clone();l.applyTransform(s.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:s.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&null!=i.x&&null!=i.y){var u=Az;u.x=i.x,u.y=i.y,u.update(),el(u).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:u},o)}else if(a)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:a,tooltipOption:i.tooltipOption},o);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var h=ER(i,e),c=h.point[0],d=h.point[1];null!=c&&null!=d&&this._tryShow({offsetX:c,offsetY:d,target:h.el,position:i.position,positionDefault:"bottom"},o)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(kz(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s)if("axis"===Lz([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var r,o;if("legend"===el(n).ssrType)return;this._lastDataByCoordSys=null,kv(n,(function(t){return null!=el(t).dataIndex?(r=t,!0):null!=el(t).tooltipConfig?(o=t,!0):void 0}),!0),r?this._showSeriesItemTooltip(t,r,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=G(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=Lz([e.tooltipOption],i),a=this._renderMode,s=[],l=ig("section",{blocks:[],noHeader:!0}),u=[],h=new fg;R(t,(function(t){R(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=yR(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),c=ig("section",{header:o,noHeader:!st(o),sortBlocks:!0,blocks:[]});l.blocks.push(c),R(t.seriesDataIndices,(function(l){var d=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,f=d.getDataParams(p);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=b_(e.axis,{value:r}),f.axisValueLabel=o,f.marker=h.makeTooltipMarker("item",bd(f.color),a);var g=xf(d.formatTooltip(p,!0,null)),v=g.frag;if(v){var m=Lz([d],i).get("valueFormatter");c.blocks.push(m?C({valueFormatter:m},v):v)}g.text&&u.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),u.reverse();var c=e.position,d=o.get("order"),p=ug(l,h,a,d,n.get("useUTC"),o.get("textStyle"));p&&u.unshift(p);var f="richText"===a?"\n\n":"<br/>",g=u.join(f);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,c,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",r[0],r[1],c,null,h)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=el(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,h=s.getData(u),c=this._renderMode,d=t.positionDefault,p=Lz([h.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),f=p.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),v=new fg;g.marker=v.makeTooltipMarker("item",bd(g.color),c);var m=xf(s.formatTooltip(l,!1,u)),y=p.get("order"),x=p.get("valueFormatter"),_=m.frag,b=_?ug(x?C({valueFormatter:x},_):_,v,c,y,i.get("useUTC"),p.get("textStyle")):m.text,w="item_"+s.name+"_"+l;this._showOrMove(p,(function(){this._showTooltipContent(p,b,g,w,t.offsetX,t.offsetY,t.position,t.target,v)})),n({type:"showTip",dataIndexInside:l,dataIndex:h.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i="html"===this._renderMode,r=el(e),o=r.tooltipConfig.option||{},a=o.encodeHTMLContent;if(U(o)){o={content:o,formatter:o},a=!0}a&&i&&o.content&&((o=M(o)).content=ne(o.content));var s=[o],l=this._ecModel.getComponent(r.componentMainType,r.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=t.positionDefault,h=Lz(s,this._tooltipModel,u?{position:u}:null),c=h.get("content"),d=Math.random()+"",p=new fg;this._showOrMove(h,(function(){var n=M(h.get("formatterParams")||{});this._showTooltipContent(h,c,n,d,t.offsetX,t.offsetY,t.position,e,p)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var h=t.get("formatter");a=a||t.get("position");var c=e,d=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")).color;if(h)if(U(h)){var p=t.ecModel.get("useUTC"),f=H(n)?n[0]:n;c=h,f&&f.axisType&&f.axisType.indexOf("time")>=0&&(c=qc(f.axisValue,c,p)),c=yd(c,n,!0)}else if(W(h)){var g=G((function(e,i){e===this._ticket&&(u.setContent(i,l,t,d,a),this._updatePosition(t,a,r,o,u,n,s))}),this);this._ticket=i,c=h(n,i,g)}else c=h;u.setContent(c,l,t,d,a),u.show(t,d),this._updatePosition(t,a,r,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||H(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:H(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),h=t.get("align"),c=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),W(e)&&(e=e([n,i],o,r.el,d,{viewSize:[s,l],contentSize:u.slice()})),H(e))n=qr(e[0],s),i=qr(e[1],l);else if(X(e)){var p=e;p.width=u[0],p.height=u[1];var f=Ad(p,{width:s,height:l});n=f.x,i=f.y,h=null,c=null}else if(U(e)&&a){var g=function(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+h/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+h+a;break;case"left":s=e.x-r-a,l=e.y+h/2-o/2;break;case"right":s=e.x+u+a,l=e.y+h/2-o/2}return[s,l]}(e,d,u,t.get("borderWidth"));n=g[0],i=g[1]}else{g=function(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];null!=o&&(t+l+o+2>i?t-=l+o:t+=o);null!=a&&(e+u+a>r?e-=u+a:e+=a);return[t,e]}(n,i,r,s,l,h?null:20,c?null:20);n=g[0],i=g[1]}if(h&&(n-=Pz(h)?u[0]/2:"right"===h?u[0]:0),c&&(i-=Pz(c)?u[1]/2:"bottom"===c?u[1]:0),pz(t)){g=function(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(n,i,r,s,l);n=g[0],i=g[1]}r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&R(n,(function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(r=r&&a.length===s.length)&&R(a,(function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&R(a,(function(t,e){var n=l[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),i&&R(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!r.node&&e.getDom()&&(Hg(this,"_updatePosition"),this._tooltipContent.dispose(),RR("itemTooltip",e))},e.type="tooltip",e}(Cg);function Lz(t,e,n){var i,r=e.ecModel;n?(i=new Mc(n,r,r),i=new Mc(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof Mc&&(a=a.get("tooltip",!0)),U(a)&&(a={formatter:a}),a&&(i=new Mc(a,i,r)))}return i}function kz(t,e){return t.dispatchAction||G(e.dispatchAction,e)}function Pz(t){return"center"===t||"middle"===t}function Oz(t){O_(UR),t.registerComponentModel(dz),t.registerComponentView(Dz),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},xt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},xt)}var Rz=["rect","polygon","keep","clear"];function Nz(t,e){var n=So(t?t.brush:[]);if(n.length){var i=[];R(n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))}));var r=t&&t.toolbox;H(r)&&(r=r[0]),r||(r={feature:{}},t.toolbox=[r]);var o,a,s=r.feature||(r.feature={}),l=s.brush||(s.brush={}),u=l.type||(l.type=[]);u.push.apply(u,i),a={},R(o=u,(function(t){a[t]=1})),o.length=0,R(a,(function(t,e){o.push(e)})),e&&!u.length&&u.push.apply(u,Rz)}}var Ez=R;function zz(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function Vz(t,e,n){var i={};return Ez(e,(function(e){var r,o=i[e]=((r=function(){}).prototype.__hidden=r.prototype,new r);Ez(t[e],(function(t,i){if(zC.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),o[i]=new zC(r),"opacity"===i&&((r=M(r)).type="colorAlpha",o.__hidden.__alphaForOpacity=new zC(r))}}))})),i}function Bz(t,e,n){var i;R(n,(function(t){e.hasOwnProperty(t)&&zz(e[t])&&(i=!0)})),i&&R(n,(function(n){e.hasOwnProperty(n)&&zz(e[n])?t[n]=M(e[n]):delete t[n]}))}var Gz={lineX:Fz(0),lineY:Fz(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&N_(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var r=t.x,o=t.y,a=t.width,s=t.height,l=i[0];return!!(N_(i,r,o)||N_(i,r+a,o)||N_(i,r,o+s)||N_(i,r+a,o+s)||Ne.create(t).contain(l[0],l[1])||Uh(r,o,r+a,o,i)||Uh(r,o,r,o+s,i)||Uh(r+a,o,r+a,o+s,i)||Uh(r,o+s,r+a,o+s,i))||void 0}}};function Fz(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e){var r=i.range;return Hz(e[t],r)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]<s[0]&&s.reverse(),Hz(s[0],a)||Hz(s[1],a)||Hz(a[0],s)||Hz(a[1],s)}}}}function Hz(t,e){return e[0]<=t&&t<=e[1]}var Wz=["inBrush","outOfBrush"],Uz="__ecBrushSelect",Yz="__ecInBrushSelectEvent";function Zz(t){t.eachComponent({mainType:"brush"},(function(e){(e.brushTargetManager=new jE(e.option,t)).setInputRanges(e.areas,t)}))}function Xz(t,e,n){var i,r,o=[];t.eachComponent({mainType:"brush"},(function(t){n&&"takeGlobalCursor"===n.type&&t.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),Zz(t),t.eachComponent({mainType:"brush"},(function(e,n){var a={brushId:e.id,brushIndex:n,brushName:e.name,areas:M(e.areas),selected:[]};o.push(a);var s=e.option,l=s.brushLink,u=[],h=[],c=[],d=!1;n||(i=s.throttleType,r=s.throttleDelay);var p=N(e.areas,(function(t){var e=Kz[t.brushType],n=A({boundingRect:e?e(t):void 0},t);return n.selectors=function(t){var e=t.brushType,n={point:function(i){return Gz[e].point(i,n,t)},rect:function(i){return Gz[e].rect(i,n,t)}};return n}(n),n})),f=Vz(e.option,Wz,(function(t){t.mappingMethod="fixed"}));function g(t){return"all"===l||!!u[t]}function v(t){return!!t.length}H(l)&&R(l,(function(t){u[t]=1})),t.eachSeries((function(n,i){var r=c[i]=[];"parallel"===n.subType?function(t,e){var n=t.coordinateSystem;d=d||n.hasAxisBrushed(),g(e)&&n.eachActiveState(t.getData(),(function(t,e){"active"===t&&(h[e]=1)}))}(n,i):function(n,i,r){if(!n.brushSelector||function(t,e){var n=t.option.seriesIndex;return null!=n&&"all"!==n&&(H(n)?L(n,e)<0:e!==n)}(e,i))return;if(R(p,(function(i){e.brushTargetManager.controlSeries(i,n,t)&&r.push(i),d=d||v(r)})),g(i)&&v(r)){var o=n.getData();o.each((function(t){qz(n,r,o,t)&&(h[t]=1)}))}}(n,i,r)})),t.eachSeries((function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};a.selected.push(n);var i=c[e],r=t.getData(),o=g(e)?function(t){return h[t]?(n.dataIndex.push(r.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return qz(t,i,r,e)?(n.dataIndex.push(r.getRawIndex(e)),"inBrush"):"outOfBrush"};(g(e)?d:v(i))&&function(t,e,n,i,r){var o,a={};function s(t){return Tv(n,o,t)}function l(t,e){Av(n,o,t,e)}R(t,(function(t){var n=zC.prepareVisualTypes(e[t]);a[t]=n})),n.each((function(t,u){o=t;var h=n.getRawDataItem(o);if(!h||!1!==h.visualMap)for(var c=i.call(r,t),d=e[c],p=a[c],f=0,g=p.length;f<g;f++){var v=p[f];d[v]&&d[v].applyVisual(t,s,l)}}))}(Wz,f,r,o)}))})),function(t,e,n,i,r){if(!r)return;var o=t.getZr();if(o[Yz])return;o[Uz]||(o[Uz]=jz);var a=Fg(o,Uz,n,e);a(t,i)}(e,i,r,o,n)}function jz(t,e){if(!t.isDisposed()){var n=t.getZr();n[Yz]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[Yz]=!1}}function qz(t,e,n,i){for(var r=0,o=e.length;r<o;r++){var a=e[r];if(t.brushSelector(i,n,a.selectors,a))return!0}}var Kz={rect:function(t){return $z(t.range)},polygon:function(t){for(var e,n=t.range,i=0,r=n.length;i<r;i++){e=e||[[1/0,-1/0],[1/0,-1/0]];var o=n[i];o[0]<e[0][0]&&(e[0][0]=o[0]),o[0]>e[0][1]&&(e[0][1]=o[0]),o[1]<e[1][0]&&(e[1][0]=o[1]),o[1]>e[1][1]&&(e[1][1]=o[1])}return e&&$z(e)}};function $z(t){return new Ne(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var Jz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new hL(e.getZr())).on("brush",G(this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},e.prototype.updateTransform=function(t,e,n,i){Zz(e),this._updateController(t,e,n,i)},e.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},e.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},e.prototype._updateController=function(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:M(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:M(n),$from:e})},e.type="brush",e}(Cg),Qz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return n(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&Bz(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=N(t,(function(t){return tV(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=tV(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(Nd);function tV(t,e){return I({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Mc(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var eV=["rect","polygon","lineX","lineY","keep","clear"],nV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(t,e,n){var i,r,o;e.eachComponent({mainType:"brush"},(function(t){i=t.brushType,r=t.brushOption.brushMode||"single",o=o||!!t.areas.length})),this._brushType=i,this._brushMode=r,R(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?o:e===i)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return R(t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},e.prototype.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},e.getDefaultOption=function(t){return{show:!0,type:eV.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])}},e}(ME);var iV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return n(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(Nd),rV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=nt(t.get("textBaseline"),t.get("textVerticalAlign")),l=new Hs({style:nc(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),h=t.get("subtext"),c=new Hs({style:nc(o,{text:h,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!d&&!f,c.silent=!p&&!f,d&&l.on("click",(function(){wd(d,"_"+t.get("target"))})),p&&c.on("click",(function(){wd(p,"_"+t.get("subtarget"))})),el(l).eventData=el(c).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),h&&i.add(c);var g=i.getBoundingRect(),v=t.getBoxLayoutParams();v.width=g.width,v.height=g.height;var m=Ad(v,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?m.x+=m.width:"center"===a&&(m.x+=m.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?m.y+=m.height:"middle"===s&&(m.y+=m.height/2),s=s||"top"),i.x=m.x,i.y=m.y,i.markRedraw();var y={align:a,verticalAlign:s};l.setStyle(y),c.setStyle(y),g=i.getBoundingRect();var x=m.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var b=new Bs({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});i.add(b)}},e.type="title",e}(Cg);function oV(t){t.registerComponentModel(iV),t.registerComponentView(rV)}var aV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return n(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],i=e.axisType,r=this._names=[];"category"===i?(t=[],R(n,(function(e,n){var i,o=ko(To(e),"");X(e)?(i=M(e)).value=n:i=n,t.push(i),r.push(o)}))):t=n;var o={category:"ordinal",time:"time",value:"number"}[i]||"number";(this._data=new lx([{name:"value",type:o}],this)).initData(t,r)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(Nd),sV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.type="timeline.slider",e.defaultOption=Cc(aV.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(aV);P(sV,yf.prototype);var lV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.type="timeline",e}(Cg),uV=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i)||this;return o.type=r||"value",o}return n(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(ub),hV=Math.PI,cV=No(),dV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,t);t.formatTooltip=function(t){return ig("nameValue",{noName:!0,value:a.scale.getLabel({value:t})})},R(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](i,r,a,t)}),this),this._renderAxisLabel(i,o,a,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,i,r,o,a=t.get(["label","position"]),s=t.get("orient"),l=function(t,e){return Ad(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e),u={horizontal:"center",vertical:(n=null==a||"auto"===a?"horizontal"===s?l.y+l.height/2<e.getHeight()/2?"-":"+":l.x+l.width/2<e.getWidth()/2?"+":"-":U(a)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[s][a]:a)>=0||"+"===n?"left":"right"},h={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:hV/2},d="vertical"===s?l.height:l.width,p=t.getModel("controlStyle"),f=p.get("show",!0),g=f?p.get("itemSize"):0,v=f?p.get("itemGap"):0,m=g+v,y=t.get(["label","rotate"])||0;y=y*hV/180;var x=p.get("position",!0),_=f&&p.get("showPlayBtn",!0),b=f&&p.get("showPrevBtn",!0),w=f&&p.get("showNextBtn",!0),S=0,M=d;"left"===x||"bottom"===x?(_&&(i=[0,0],S+=m),b&&(r=[S,0],S+=m),w&&(o=[M-g,0],M-=m)):(_&&(i=[M-g,0],M-=m),b&&(r=[0,0],S+=m),w&&(o=[M-g,0],M-=m));var I=[S,M];return t.get("inverse")&&I.reverse(),{viewRect:l,mainLength:d,orient:s,rotation:c[s],labelRotation:y,labelPosOpt:n,labelAlign:t.get(["label","align"])||u[s],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||h[s],playPosition:i,prevBtnPosition:r,nextBtnPosition:o,axisExtent:I,controlSize:g,controlGap:v}},e.prototype._position=function(t,e){var n=this._mainGroup,i=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var o=[1,0,0,1,0,0],a=r.x,s=r.y+r.height;_e(o,o,[-a,-s]),be(o,o,-hV/2),_e(o,o,[a,s]),(r=r.clone()).applyTransform(o)}var l=v(r),u=v(n.getBoundingRect()),h=v(i.getBoundingRect()),c=[n.x,n.y],d=[i.x,i.y];d[0]=c[0]=l[0][0];var p,f=t.labelPosOpt;null==f||U(f)?(m(c,u,l,1,p="+"===f?0:1),m(d,h,l,1,1-p)):(m(c,u,l,1,p=f>=0?0:1),d[1]=c[1]+f);function g(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function v(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function m(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}n.setPosition(c),i.setPosition(d),n.rotation=i.rotation=t.rotation,g(n),g(i)},e.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType"),r=function(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new Px({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new jx({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new Rx}}(e,i);r.getTicks=function(){return n.mapArray(["value"],(function(t){return{value:t}}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var a=new uV("value",r,t.axisExtent,i);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new zr;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new Xu({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:C({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new Xu({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:A({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],R(a,(function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),h=s.getModel(["progress","itemStyle"]),c={x:a,y:0,onclick:G(r._changeTimeline,r,t.value)},d=pV(s,l,e,c);d.ensureState("emphasis").style=u.getItemStyle(),d.ensureState("progress").style=h.getItemStyle(),Wl(d);var p=el(d);s.get("tooltip")?(p.dataIndex=t.value,p.dataModel=i):p.dataIndex=p.dataModel=null,r._tickSymbols.push(d)}))},e.prototype._renderAxisLabel=function(t,e,n,i){var r=this;if(n.getLabelModel().get("show")){var o=i.getData(),a=n.getViewLabels();this._tickLabels=[],R(a,(function(i){var a=i.tickValue,s=o.getItemModel(a),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),h=s.getModel(["progress","label"]),c=n.dataToCoord(i.tickValue),d=new Hs({x:c,y:0,rotation:t.labelRotation-t.rotation,onclick:G(r._changeTimeline,r,a),silent:!1,style:nc(l,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});d.ensureState("emphasis").style=nc(u),d.ensureState("progress").style=nc(h),e.add(d),Wl(d),cV(d).dataIndex=a,r._tickLabels.push(d)}))}},e.prototype._renderControl=function(t,e,n,i){var r=t.controlSize,o=t.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function h(t,n,l,u){if(t){var h=Ir(nt(i.get(["controlStyle",n+"BtnSize"]),r),r),c=function(t,e,n,i){var r=i.style,o=Wh(t.get(["controlStyle",e]),i||{},new Ne(n[0],n[1],n[2],n[3]));r&&o.setStyle(r);return o}(i,n+"Icon",[0,-h/2,h,h],{x:t[0],y:t[1],originX:r/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});c.ensureState("emphasis").style=s,e.add(c),Wl(c)}}h(t.nextBtnPosition,"next",G(this._changeTimeline,this,u?"-":"+")),h(t.prevBtnPosition,"prev",G(this._changeTimeline,this,u?"+":"-")),h(t.playPosition,l?"stop":"play",G(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=G(s._handlePointerDrag,s),t.ondragend=G(s._handlePointerDragend,s),fV(t,s._progressLine,o,n,i,!0)},onUpdate:function(t){fV(t,s._progressLine,o,n,i)}};this._currentPointer=pV(a,a,this._mainGroup,{},this._currentPointer,l)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],i=$r(this._axis.getExtent().slice());n>i[1]&&(n=i[1]),n<i[0]&&(n=i[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var r=this._progressLine;r&&(r.shape.x2=n,r.dirty());var o=this._findNearestTick(n),a=this.model;(e||o!==a.getCurrentIndex()&&a.get("realtime"))&&this._changeTimeline(o)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var e=t.model;t._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){return zh(t,this._mainGroup.getLocalTransform(),!0)},e.prototype._findNearestTick=function(t){var e,n=this.model.getData(),i=1/0,r=this._axis;return n.each(["value"],(function(n,o){var a=r.dataToCoord(n),s=Math.abs(a-t);s<i&&(i=s,e=o)})),e},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,n=this._tickLabels;if(e)for(var i=0;i<e.length;i++)e&&e[i]&&e[i].toggleState("progress",i<t);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",cV(n[i]).dataIndex<=t)},e.type="timeline.slider",e}(lV);function pV(t,e,n,i,r,o){var a=e.get("color");r?(r.setColor(a),n.add(r),o&&o.onUpdate(r)):((r=Wv(t.get("symbol"),-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(r),o&&o.onCreate(r));var s=e.getItemStyle(["color"]);r.setStyle(s),i=I({rectHover:!0,z2:100},i,!0);var l=Uv(t.get("symbolSize"));i.scaleX=l[0]/2,i.scaleY=l[1]/2;var u=Yv(t.get("symbolOffset"),l);u&&(i.x=(i.x||0)+u[0],i.y=(i.y||0)+u[1]);var h=t.get("symbolRotate");return i.rotation=(h||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function fV(t,e,n,i,r,o){if(!t.dragging){var a=r.getModel("checkpointStyle"),s=i.dataToCoord(r.getData().get("value",n));if(o||!a.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}function gV(t){var e=t&&t.timeline;H(e)||(e=e?[e]:[]),R(e,(function(t){t&&function(t){var e=t.type,n={number:"value",time:"time"};n[e]&&(t.axisType=n[e],delete t.type);if(vV(t),mV(t,"controlPosition")){var i=t.controlStyle||(t.controlStyle={});mV(i,"position")||(i.position=t.controlPosition),"none"!==i.position||mV(i,"show")||(i.show=!1,delete i.position),delete t.controlPosition}R(t.data||[],(function(t){X(t)&&!H(t)&&(!mV(t,"value")&&mV(t,"name")&&(t.value=t.name),vV(t))}))}(t)}))}function vV(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),i=t.label||t.label||{},r=i.normal||(i.normal={}),o={normal:1,emphasis:1};R(i,(function(t,e){o[e]||mV(r,e)||(r[e]=t)})),n.label&&!mV(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function mV(t,e){return t.hasOwnProperty(e)}function yV(t,e){if(!t)return!1;for(var n=H(t)?t:[t],i=0;i<n.length;i++)if(n[i]&&n[i][e])return!0;return!1}function xV(t){Mo(t,"label",["show"])}var _V=No(),bV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n}return n(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(r.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,n,i){var r=this.mainType;n||e.eachSeries((function(t){var n=t.get(this.mainType,!0),o=_V(t)[r];n&&n.data?(o?o._mergeOption(n,e,!0):(i&&xV(n),R(n.data,(function(t){t instanceof Array?(xV(t[0]),xV(t[1])):xV(t)})),C(o=this.createMarkerModelFromSeries(n,this,e),{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),_V(t)[r]=o):_V(t)[r]=null}),this)},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t),o=i.getName(t);return ig("section",{header:this.name,blocks:[ig("nameValue",{name:o,value:r,noName:!o,noValue:null==r})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,e){var n=yf.prototype.getDataParams.call(this,t,e),i=this.__hostSeries;return i&&(n.seriesId=i.id,n.seriesName=i.name,n.seriesType=i.subType),n},e.getMarkerModelFromSeries=function(t,e){return _V(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(Nd);P(bV,yf.prototype);var wV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(bV);function SV(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function MV(t,e,n,i,r,o){var a=[],s=vx(e,i)?e.getCalculationInfo("stackResultDimension"):i,l=LV(e,s,t),u=e.indicesOfNearest(s,l)[0];a[r]=e.get(n,u),a[o]=e.get(s,u);var h=e.get(i,u),c=Jr(e.get(i,u));return(c=Math.min(c,20))>=0&&(a[o]=+a[o].toFixed(c)),[a,h]}var IV={min:F(MV,"min"),max:F(MV,"max"),average:F(MV,"average"),median:F(MV,"median")};function TV(t,e){if(e){var n=t.getData(),i=t.coordinateSystem,r=i&&i.dimensions;if(!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!H(e.coord)&&H(r)){var o=CV(e,n,i,t);if((e=M(e)).type&&IV[e.type]&&o.baseAxis&&o.valueAxis){var a=L(r,o.baseAxis.dim),s=L(r,o.valueAxis.dim),l=IV[e.type](n,o.baseDataDim,o.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&H(r))for(var u=e.coord,h=0;h<2;h++)IV[u[h]]&&(u[h]=LV(n,n.mapDimension(r[h]),u[h]));else e.coord=[];return e}}function CV(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(function(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function AV(t,e){return!(t&&t.containData&&e.coord&&!SV(e))||t.containData(e.coord)}function DV(t,e){return t?function(t,n,i,r){return Sf(r<2?t.coord&&t.coord[r]:t.value,e[r])}:function(t,n,i,r){return Sf(t.value,e[r])}}function LV(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,(function(t,e){isNaN(t)||(i+=t,r++)})),i/r}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var kV=No(),PV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.init=function(){this.markerGroupMap=ft()},e.prototype.render=function(t,e,n){var i=this,r=this.markerGroupMap;r.each((function(t){kV(t).keep=!1})),e.eachSeries((function(t){var r=bV.getMarkerModelFromSeries(t,i.type);r&&i.renderSeries(t,r,e,n)})),r.each((function(t){!kV(t).keep&&i.group.remove(t.group)}))},e.prototype.markKeep=function(t){kV(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;R(t,(function(t){var i=bV.getMarkerModelFromSeries(t,n.type);i&&i.getData().eachItemGraphicEl((function(t){t&&(e?Pl(t):Ol(t))}))}))},e.type="marker",e}(Cg);function OV(t,e,n){var i=e.coordinateSystem;t.each((function(r){var o,a=t.getItemModel(r),s=qr(a.get("x"),n.getWidth()),l=qr(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(i){var u=t.get(i.dimensions[0],r),h=t.get(i.dimensions[1],r);o=i.dataToPoint([u,h])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(r,o)}))}var RV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=bV.getMarkerModelFromSeries(t,"markPoint");e&&(OV(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new Rw),u=function(t,e,n){var i;i=t?N(t&&t.dimensions,(function(t){return C(C({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new lx(i,n),o=N(n.get("data"),F(TV,e));t&&(o=z(o,F(AV,t)));var a=DV(!!t,i);return r.initData(o,null,a),r}(r,t,e);e.setData(u),OV(e.getData(),t,i),u.each((function(t){var n=u.getItemModel(t),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(W(i)||W(r)||W(o)||W(s)){var h=e.getRawValue(t),c=e.getDataParams(t);W(i)&&(i=i(h,c)),W(r)&&(r=r(h,c)),W(o)&&(o=o(h,c)),W(s)&&(s=s(h,c))}var d=n.getModel("itemStyle").getItemStyle(),p=Cv(a,"color");d.fill||(d.fill=p),u.setItemVisual(t,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:d})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(t){t.traverse((function(t){el(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(PV);var NV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(bV),EV=No(),zV=function(t,e,n,i){var r,o=t.getData();if(H(i))r=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=e.getAxis(null!=i.yAxis?"y":"x"),l=et(i.yAxis,i.xAxis);else{var u=CV(i,o,e,t);s=u.valueAxis,l=LV(o,mx(o,u.valueDataDim),a)}var h="x"===s.dim?0:1,c=1-h,d=M(i),p={coord:[]};d.type=null,d.coord=[],d.coord[c]=-1/0,p.coord[c]=1/0;var f=n.get("precision");f>=0&&Z(l)&&(l=+l.toFixed(Math.min(f,20))),d.coord[h]=p.coord[h]=l,r=[d,p,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var g=[TV(t,r[0]),TV(t,r[1]),C({},r[2])];return g[2].type=g[2].type||null,I(g[2],g[0]),I(g[2],g[1]),g};function VV(t){return!isNaN(t)&&!isFinite(t)}function BV(t,e,n,i){var r=1-t,o=i.dimensions[t];return VV(e[r])&&VV(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function GV(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(BV(1,n,i,t)||BV(0,n,i,t)))return!0}return AV(t,e[0])&&AV(t,e[1])}function FV(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=qr(s.get("x"),r.getWidth()),u=qr(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var h=a.dimensions,c=t.get(h[0],e),d=t.get(h[1],e);o=a.dataToPoint([c,d])}if(jw(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");h=a.dimensions;VV(t.get(h[0],e))?o[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):VV(t.get(h[1],e))&&(o[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}var HV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=bV.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),r=EV(e).from,o=EV(e).to;r.each((function(e){FV(r,e,!0,t,n),FV(o,e,!1,t,n)})),i.each((function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new $A);this.group.add(l.group);var u=function(t,e,n){var i;i=t?N(t&&t.dimensions,(function(t){return C(C({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new lx(i,n),o=new lx(i,n),a=new lx([],n),s=N(n.get("data"),F(zV,e,t,n));t&&(s=z(s,F(GV,t)));var l=DV(!!t,i);return r.initData(N(s,(function(t){return t[0]})),null,l),o.initData(N(s,(function(t){return t[1]})),null,l),a.initData(N(s,(function(t){return t[2]}))),a.hasItemOption=!0,{from:r,to:o,line:a}}(r,t,e),h=u.from,c=u.to,d=u.line;EV(e).from=h,EV(e).to=c,e.setData(d);var p=e.get("symbol"),f=e.get("symbolSize"),g=e.get("symbolRotate"),v=e.get("symbolOffset");function m(e,n,r){var o=e.getItemModel(n);FV(e,n,r,t,i);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Cv(a,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:nt(o.get("symbolOffset",!0),v[r?0:1]),symbolRotate:nt(o.get("symbolRotate",!0),g[r?0:1]),symbolSize:nt(o.get("symbolSize"),f[r?0:1]),symbol:nt(o.get("symbol",!0),p[r?0:1]),style:s})}H(p)||(p=[p,p]),H(f)||(f=[f,f]),H(g)||(g=[g,g]),H(v)||(v=[v,v]),u.from.each((function(t){m(h,t,!0),m(c,t,!1)})),d.each((function(t){var e=d.getItemModel(t).getModel("lineStyle").getLineStyle();d.setItemLayout(t,[h.getItemLayout(t),c.getItemLayout(t)]),null==e.stroke&&(e.stroke=h.getItemVisual(t,"style").fill),d.setItemVisual(t,{fromSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(t,"symbolOffset"),fromSymbolRotate:h.getItemVisual(t,"symbolRotate"),fromSymbolSize:h.getItemVisual(t,"symbolSize"),fromSymbol:h.getItemVisual(t,"symbol"),toSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:c.getItemVisual(t,"symbolOffset"),toSymbolRotate:c.getItemVisual(t,"symbolRotate"),toSymbolSize:c.getItemVisual(t,"symbolSize"),toSymbol:c.getItemVisual(t,"symbol"),style:e})})),l.updateData(d),u.line.eachItemGraphicEl((function(t){el(t).dataModel=e,t.traverse((function(t){el(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(PV);var WV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(bV),UV=No(),YV=function(t,e,n,i){var r=i[0],o=i[1];if(r&&o){var a=TV(t,r),s=TV(t,o),l=a.coord,u=s.coord;l[0]=et(l[0],-1/0),l[1]=et(l[1],-1/0),u[0]=et(u[0],1/0),u[1]=et(u[1],1/0);var h=T([{},a,s]);return h.coord=[a.coord,s.coord],h.x0=a.x,h.y0=a.y,h.x1=s.x,h.y1=s.y,h}};function ZV(t){return!isNaN(t)&&!isFinite(t)}function XV(t,e,n,i){var r=1-t;return ZV(e[r])&&ZV(n[r])}function jV(t,e){var n=e.coord[0],i=e.coord[1],r={coord:n,x:e.x0,y:e.y0},o={coord:i,x:e.x1,y:e.y1};return jw(t,"cartesian2d")?!(!n||!i||!XV(1,n,i)&&!XV(0,n,i))||function(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!SV(e)&&!SV(n))||t.containZone(e.coord,n.coord)}(t,r,o):AV(t,r)||AV(t,o)}function qV(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=qr(s.get(n[0]),r.getWidth()),u=qr(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition){var h=t.getValues(["x0","y0"],e),c=t.getValues(["x1","y1"],e),d=a.clampData(h),p=a.clampData(c),f=[];"x0"===n[0]?f[0]=d[0]>p[0]?c[0]:h[0]:f[0]=d[0]>p[0]?h[0]:c[0],"y0"===n[1]?f[1]=d[1]>p[1]?c[1]:h[1]:f[1]=d[1]>p[1]?h[1]:c[1],o=i.getMarkerPosition(f,n,!0)}else{var g=[y=t.get(n[0],e),x=t.get(n[1],e)];a.clampData&&a.clampData(g,g),o=a.dataToPoint(g,!0)}if(jw(a,"cartesian2d")){var v=a.getAxis("x"),m=a.getAxis("y"),y=t.get(n[0],e),x=t.get(n[1],e);ZV(y)?o[0]=v.toGlobalCoord(v.getExtent()["x0"===n[0]?0:1]):ZV(x)&&(o[1]=m.toGlobalCoord(m.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var KV=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],$V=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=bV.getMarkerModelFromSeries(t,"markArea");if(e){var i=e.getData();i.each((function(e){var r=N(KV,(function(r){return qV(i,e,r,t,n)}));i.setItemLayout(e,r),i.getItemGraphicEl(e).setShape("points",r)}))}}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new zr});this.group.add(l.group),this.markKeep(l);var u=function(t,e,n){var i,r,o=["x0","y0","x1","y1"];if(t){var a=N(t&&t.dimensions,(function(t){var n=e.getData();return C(C({},n.getDimensionInfo(n.mapDimension(t))||{}),{name:t,ordinalMeta:null})}));r=N(o,(function(t,e){return{name:t,type:a[e%2].type}})),i=new lx(r,n)}else i=new lx(r=[{name:"value",type:"float"}],n);var s=N(n.get("data"),F(YV,e,t,n));t&&(s=z(s,F(jV,t)));var l=t?function(t,e,n,i){return Sf(t.coord[Math.floor(i/2)][i%2],r[i])}:function(t,e,n,i){return Sf(t.value,r[i])};return i.initData(s,null,l),i.hasItemOption=!0,i}(r,t,e);e.setData(u),u.each((function(e){var n=N(KV,(function(n){return qV(u,e,n,t,i)})),o=r.getAxis("x").scale,s=r.getAxis("y").scale,l=o.getExtent(),h=s.getExtent(),c=[o.parse(u.get("x0",e)),o.parse(u.get("x1",e))],d=[s.parse(u.get("y0",e)),s.parse(u.get("y1",e))];$r(c),$r(d);var p=!!(l[0]>c[1]||l[1]<c[0]||h[0]>d[1]||h[1]<d[0]);u.setItemLayout(e,{points:n,allClipped:p});var f=u.getItemModel(e).getModel("itemStyle").getItemStyle(),g=Cv(a,"color");f.fill||(f.fill=g,U(f.fill)&&(f.fill=ei(f.fill,.4))),f.stroke||(f.stroke=g),u.setItemVisual(e,"style",f)})),u.diff(UV(l).data).add((function(t){var e=u.getItemLayout(t);if(!e.allClipped){var n=new Hu({shape:{points:e.points}});u.setItemGraphicEl(t,n),l.group.add(n)}})).update((function(t,n){var i=UV(l).data.getItemGraphicEl(n),r=u.getItemLayout(t);r.allClipped?i&&l.group.remove(i):(i?fh(i,{shape:{points:r.points}},e,t):i=new Hu({shape:{points:r.points}}),u.setItemGraphicEl(t,i),l.group.add(i))})).remove((function(t){var e=UV(l).data.getItemGraphicEl(t);l.group.remove(e)})).execute(),u.eachItemGraphicEl((function(t,n){var i=u.getItemModel(n),r=u.getItemVisual(n,"style");t.useStyle(u.getItemVisual(n,"style")),tc(t,ec(i),{labelFetcher:e,labelDataIndex:n,defaultText:u.getName(n)||"",inheritColor:U(r.fill)?ei(r.fill,1):"#000"}),jl(t,i),Ul(t,null,null,i.get(["emphasis","disabled"])),el(t).dataModel=e})),UV(l).data=u,l.group.silent=e.get("silent")||t.get("silent")},e.type="markArea",e}(PV);var JV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return n(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),H(e)&&R(e,(function(t,i){U(t)&&(t={type:t}),e[i]=I(t,function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries((function(i){var r,o=i.name;if(n.push(o),i.legendVisualProvider){var a=i.legendVisualProvider.getAllNames();t.isSeriesFiltered(i)||(n=n.concat(a)),a.length?e=e.concat(a):r=!0}else r=!0;r&&Po(i)&&e.push(i.name)})),this._availableNames=n;var i=this.get("data")||e,r=ft(),o=N(i,(function(t){return(U(t)||Z(t))&&(t={name:t}),r.get(t.name)?null:(r.set(t.name,!0),new Mc(t,this,this.ecModel))}),this);this._data=z(o,(function(t){return!!t}))},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&R(this._data,(function(t){e[t.get("name")]=!1}));e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;R(t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;R(t,(function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]}))},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&L(this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(Nd),QV=F,tB=R,eB=zr,nB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return n(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new eB),this.group.add(this._selectorGroup=new eB),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(r,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},h=t.get("padding"),c=Ad(l,u,h),d=this.layoutInner(t,r,c,i,a,s),p=Ad(A({width:d.width,height:d.height},l),u,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=DE(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,i,r,o,a){var s=this.getContentGroup(),l=ft(),u=e.get("selectedMode"),h=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&h.push(t.id)})),tB(e.getData(),(function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var c=new eB;return c.newline=!0,void s.add(c)}var d=n.getSeriesByName(a)[0];if(!l.get(a))if(d){var p=d.getData(),f=p.getVisual("legendLineStyle")||{},g=p.getVisual("legendIcon"),v=p.getVisual("style"),m=this._createItem(d,a,o,r,e,t,f,v,g,u,i);m.on("click",QV(iB,a,null,i,h)).on("mouseover",QV(oB,d.name,null,i,h)).on("mouseout",QV(aB,d.name,null,i,h)),n.ssr&&m.eachChild((function(t){var e=el(t);e.seriesIndex=d.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),l.set(a,!0)}else n.eachRawSeries((function(s){if(!l.get(a)&&s.legendVisualProvider){var c=s.legendVisualProvider;if(!c.containName(a))return;var d=c.indexOfName(a),p=c.getItemVisual(d,"style"),f=c.getItemVisual(d,"legendIcon"),g=Xn(p.fill);g&&0===g[3]&&(g[3]=.2,p=C(C({},p),{fill:ni(g,"rgba")}));var v=this._createItem(s,a,o,r,e,t,{},p,f,u,i);v.on("click",QV(iB,null,a,i,h)).on("mouseover",QV(oB,null,a,i,h)).on("mouseout",QV(aB,null,a,i,h)),n.ssr&&v.eachChild((function(t){var e=el(t);e.seriesIndex=s.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),l.set(a,!0)}}),this)}),this),r&&this._createSelector(r,e,i,o,a)},e.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();tB(t,(function(t){var i=t.type,r=new Hs({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect",legendId:e.id})}});o.add(r),tc(r,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),Wl(r)}))},e.prototype._createItem=function(t,e,n,i,r,o,a,s,l,u,h){var c=t.visualDrawType,d=r.get("itemWidth"),p=r.get("itemHeight"),f=r.isSelected(e),g=i.get("symbolRotate"),v=i.get("symbolKeepAspect"),m=i.get("icon"),y=function(t,e,n,i,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),tB(t,(function(n,i){"inherit"===t[i]&&(t[i]=e[i])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle(),h=0===t.lastIndexOf("empty",0)?"fill":"stroke",c=l.getShallow("decal");u.decal=c&&"inherit"!==c?vm(c,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]);"inherit"===u.stroke&&(u.stroke=i[h]);"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity);s(u,i);var d=e.getModel("lineStyle"),p=d.getLineStyle();if(s(p,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===p.stroke&&(p.stroke=i.fill),!o){var f=e.get("inactiveBorderWidth"),g=u[h];u.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}(l=m||l||"roundRect",i,a,s,c,f,h),x=new eB,_=i.getModel("textStyle");if(!W(t.getLegendIcon)||m&&"inherit"!==m){var b="inherit"===m&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;x.add(function(t){var e=t.icon||"roundRect",n=Wv(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:d,itemHeight:p,icon:l,iconRotate:b,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:v}))}else x.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:l,iconRotate:g,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:v}));var w="left"===o?d+5:-5,S=o,M=r.get("formatter"),I=e;U(M)&&M?I=M.replace("{name}",null!=e?e:""):W(M)&&(I=M(e));var T=f?_.getTextColor():i.get("inactiveColor");x.add(new Hs({style:nc(_,{text:I,x:w,y:p/2,fill:T,align:S,verticalAlign:"middle"},{inheritColor:T})}));var C=new Bs({shape:x.getBoundingRect(),style:{fill:"transparent"}}),A=i.getModel("tooltip");return A.get("show")&&Xh({el:C,componentModel:r,itemName:e,itemTooltipOption:A.option}),x.add(C),x.eachChild((function(t){t.silent=!0})),C.silent=!u,this.getContentGroup().add(x),Wl(x),x.__legendDataIndex=n,x},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();Cd(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){Cd("horizontal",s,t.get("selectorItemGap",!0));var h=s.getBoundingRect(),c=[-h.x,-h.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",v=0===p?"y":"x";"end"===o?c[p]+=l[f]+d:u[p]+=h[f]+d,c[1-p]+=l[g]/2-h[g]/2,s.x=c[0],s.y=c[1],a.x=u[0],a.y=u[1];var m={x:0,y:0};return m[f]=l[f]+d+h[f],m[g]=Math.max(l[g],h[g]),m[v]=Math.min(0,h[v]+c[1-p]),m}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Cg);function iB(t,e,n,i){aB(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),oB(t,e,n,i)}function rB(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;i<r&&!(e=n[i].states.emphasis);)i++;return e&&e.hoverLayer}function oB(t,e,n,i){rB(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function aB(t,e,n,i){rB(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}function sB(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0}))}function lB(t,e,n){var i="allSelect"===t||"inverseSelect"===t,r={},o=[];n.eachComponent({mainType:"legend",query:e},(function(n){i?n[t]():n[t](e.name),uB(n,r),o.push(n.componentIndex)}));var a={};return n.eachComponent("legend",(function(t){R(r,(function(e,n){t[e?"select":"unSelect"](n)})),uB(t,a)})),i?{selected:a,legendIndex:o}:{name:e.name,selected:a}}function uB(t,e){var n=e||{};return R(t.getData(),(function(e){var i=e.get("name");if("\n"!==i&&""!==i){var r=t.isSelected(i);yt(n,i)?n[i]=n[i]&&r:n[i]=r}})),n}function hB(t){t.registerComponentModel(JV),t.registerComponentView(nB),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,sB),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),function(t){t.registerAction("legendToggleSelect","legendselectchanged",F(lB,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",F(lB,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",F(lB,"inverseSelect")),t.registerAction("legendSelect","legendselected",F(lB,"select")),t.registerAction("legendUnSelect","legendunselected",F(lB,"unSelect"))}(t)}var cB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,i){var r=Pd(e);t.prototype.init.call(this,e,n,i),dB(this,e,r)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),dB(this,this.option,e)},e.type="legend.scroll",e.defaultOption=Cc(JV.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(JV);function dB(t,e,n){var i=[1,1];i[t.getOrient().index]=0,kd(e,n,{type:"box",ignoreSize:!!i})}var pB=zr,fB=["width","height"],gB=["x","y"],vB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return n(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new pB),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new pB)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,i,r,o,a,s){var l=this;t.prototype.renderInner.call(this,e,n,i,r,o,a,s);var u=this._controllerGroup,h=n.get("pageIconSize",!0),c=H(h)?h:[h,h];p("pagePrev",0);var d=n.getModel("pageTextStyle");function p(t,e){var i=t+"DataIndex",o=Wh(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:G(l._pageGo,l,i,n,r)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});o.name=t,u.add(o)}u.add(new Hs({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1)},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getSelectorGroup(),s=t.getOrient().index,l=fB[s],u=gB[s],h=fB[1-s],c=gB[1-s];r&&Cd("horizontal",a,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),p=a.getBoundingRect(),f=[-p.x,-p.y],g=M(n);r&&(g[l]=n[l]-p[l]-d);var v=this._layoutContentAndController(t,i,g,s,l,h,c,u);if(r){if("end"===o)f[s]+=v[l]+d;else{var m=p[l]+d;f[s]-=m,v[u]-=m}v[l]+=p[l]+d,f[1-s]+=v[c]+v[h]/2-p[h]/2,v[h]=Math.max(v[h],p[h]),v[c]=Math.min(v[c],p[c]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return v},e.prototype._layoutContentAndController=function(t,e,n,i,r,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,h=this._controllerGroup;Cd(t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),Cd("horizontal",h,t.get("pageButtonItemGap",!0));var c=l.getBoundingRect(),d=h.getBoundingRect(),p=this._showController=c[r]>n[r],f=[-c.x,-c.y];e||(f[i]=l[s]);var g=[0,0],v=[-d.x,-d.y],m=nt(t.get("pageButtonGap",!0),t.get("itemGap",!0));p&&("end"===t.get("pageButtonPosition",!0)?v[i]+=n[r]-d[r]:g[i]+=d[r]+m);v[1-i]+=c[o]/2-d[o]/2,l.setPosition(f),u.setPosition(g),h.setPosition(v);var y={x:0,y:0};if(y[r]=p?n[r]:c[r],y[o]=Math.max(c[o],d[o]),y[a]=Math.min(0,d[a]+v[1-i]),u.__rectSize=n[r],p){var x={x:0,y:0};x[r]=Math.max(n[r]-d[r]-m,0),x[o]=y[o],u.setClipPath(new Bs({shape:x})),u.__rectSize=x[r]}else h.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var _=this._getPageInfo(t);return null!=_.pageIndex&&fh(l,{x:_.contentPosition[0],y:_.contentPosition[1]},p?t:null),this._updatePageInfoView(t,_),y},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;R(["pagePrev","pageNext"],(function(i){var r=null!=e[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")}));var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",U(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=fB[r],a=gB[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],h=l.length,c=h?1:0,d={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var p=y(u);d.contentPosition[r]=-p.s;for(var f=s+1,g=p,v=p,m=null;f<=h;++f)(!(m=y(l[f]))&&v.e>g.s+i||m&&!x(m,g.s))&&(g=v.i>g.i?v:m)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),v=m;for(f=s-1,g=p,v=p,m=null;f>=-1;--f)(m=y(l[f]))&&x(v,m.s)||!(g.i<v.i)||(v=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=m;return d;function y(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function x(t,e){return t.e>=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)})),null!=e?e:n):0;var e,n},e.type="legend.scroll",e}(nB);function mB(t){O_(hB),t.registerComponentModel(cB),t.registerComponentView(vB),function(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}(t)}function yB(t){O_(hB),O_(mB)}var xB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.type="dataZoom.inside",e.defaultOption=Cc(dE.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(dE),_B=No();function bB(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function wB(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function SB(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}function MB(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=_B(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=ft());i.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){R(hE(t).infoList,(function(n){var r=n.model.uid,o=i.get(r)||i.set(r,function(t,e){var n={model:e,containsPoint:F(SB,e),dispatchAction:F(wB,t),dataZoomInfoMap:null,controller:null},i=n.controller=new yI(t.getZr());return R(["pan","zoom","scrollMove"],(function(t){i.on(t,(function(e){var i=[];n.dataZoomInfoMap.each((function(r){if(e.isAvailableBehavior(r.model.option)){var o=(r.getRange||{})[t],a=o&&o(r.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!r.model.get("disabled",!0)&&a&&i.push({dataZoomId:r.model.id,start:a[0],end:a[1]})}})),i.length&&n.dispatchAction(i)}))})),n}(e,n.model));(o.dataZoomInfoMap||(o.dataZoomInfoMap=ft())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),i.each((function(t){var e,n=t.controller,r=t.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(e=r.get(o))}if(e){var a=function(t){var e,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return t.each((function(t){var o=t.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");i[n+a]>i[n+e]&&(e=a),r=r&&o.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}(r);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),Fg(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else bB(i,t)}))}))}var IB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return n(e,t),e.prototype.render=function(e,n,i){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),function(t,e,n){_B(t).coordSysRecordMap.each((function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)}))}(i,e,{pan:G(TB.pan,this),zoom:G(TB.zoom,this),scrollMove:G(TB.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var n=_B(t).coordSysRecordMap,i=n.keys(),r=0;r<i.length;r++){var o=i[r],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=e.uid;s.get(l)&&(s.removeKey(l),s.keys().length||bB(n,a))}}}(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(gE),TB={zoom:function(t,e,n,i){var r=this.range,o=r.slice(),a=t.axisModels[0];if(a){var s=AB[e](null,[i.originX,i.originY],a,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return BD(0,o,[0,100],0,h.minSpan,h.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:CB((function(t,e,n,i,r,o){var a=AB[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:CB((function(t,e,n,i,r,o){return AB[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n).signal*(t[1]-t[0])*o.scrollDelta}))};function CB(t){return function(e,n,i,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s)return BD(t(a,s,e,n,i,r),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}var AB={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};function DB(t){wE(t),t.registerComponentModel(xB),t.registerComponentView(IB),MB(t)}var LB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Cc(dE.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(dE),kB=Bs,PB="horizontal",OB="vertical",RB=["line","bar","candlestick","scatter"],NB={easing:"cubicOut",duration:100,delay:0},EB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return n(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=G(this._onBrush,this),this._onBrushEnd=G(this._onBrushEnd,this)},e.prototype.render=function(e,n,i,r){if(t.prototype.render.apply(this,arguments),Fg(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Hg(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new zr;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,i=this._findCoordRect(),r={width:e.getWidth(),height:e.getHeight()},o=this._orient===PB?{right:r.width-i.x-i.width,top:r.height-30-7-n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},a=Pd(t.option);R(["right","top","width","height"],(function(t){"ph"===a[t]&&(a[t]=o[t])}));var s=Ad(a,r);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===OB&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==PB||r?n===PB&&r?{scaleY:a?1:-1,scaleX:-1}:n!==OB||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new kB({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new kB({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:G(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(r)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,r=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),a=o&&r.getDimensionInfo(o)?i.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||a!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var u=r.getDataExtent(a),h=.3*(u[1]-u[0]);u=[u[0]-h,u[1]+h];var c,d=[0,e[1]],p=[0,e[0]],f=[[e[0],0],[0,0]],g=[],v=p[1]/(r.count()-1),m=0,y=Math.round(r.count()/e[0]);r.each([a],(function(t,e){if(y>0&&e%y)m+=v;else{var n=null==t||isNaN(t)||""===t,i=n?0:jr(t,u,d,!0);n&&!c&&e?(f.push([f[f.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&c&&(f.push([m,0]),g.push([m,0])),f.push([m,i]),g.push([m,i]),m+=v,c=n}})),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=r,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var x,_,b,w,S,M=this.dataZoomModel,I=0;I<3;I++){var T=(x=1===I,_=void 0,b=void 0,w=void 0,S=void 0,_=M.getModel(x?"selectedDataBackground":"dataBackground"),b=new zr,w=new Hu({shape:{points:s},segmentIgnoreThreshold:1,style:_.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),S=new Uu({shape:{points:l},segmentIgnoreThreshold:1,style:_.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19}),b.add(w),b.add(S),b);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}}}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,i=this.ecModel;return t.eachTargetAxis((function(r,o){R(t.getAxisProxy(r,o).getTargetSeriesModels(),(function(t){if(!(n||!0!==e&&L(RB,t.get("type"))<0)){var a,s=i.getComponent(lE(r),o).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[r],u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:r,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),h=e.filler=new kB({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(h),r.add(new kB({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),R([0,1],(function(e){var o=a.get("handleIcon");!Gv[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=Wv(o,-1,0,2,2,null,!0);s.attr({cursor:zB(this._orient),draggable:!0,drift:G(this._onDragMove,this,e),ondragend:G(this._onDragEnd,this),onmouseover:G(this._showDataInfo,this,!0),onmouseout:G(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=qr(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),Wl(s);var h=a.get("handleColor");null!=h&&(s.style.fill=h),r.add(n[e]=s);var c=a.getModel("textStyle"),d=(a.get("handleLabel")||{}).show||!1;t.add(i[e]=new Hs({silent:!0,invisible:!d,style:nc(c,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:c.getTextColor(),font:c.getFont()}),z2:10}))}),this);var c=h;if(u){var d=qr(a.get("moveHandleSize"),o[1]),p=e.moveHandle=new Bs({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:d}}),f=.8*d,g=e.moveHandleIcon=Wv(a.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=o[1]+d/2-.5,p.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(o[1]/2,Math.max(d,10));(c=e.moveZone=new Bs({invisible:!0,shape:{y:o[1]-v,height:d+v}})).on("mouseover",(function(){s.enterEmphasis(p)})).on("mouseout",(function(){s.leaveEmphasis(p)})),r.add(p),r.add(g),r.add(c)}c.attr({draggable:!0,cursor:zB(this._orient),drift:G(this._onDragMove,this,"all"),ondragstart:G(this._showDataInfo,this,!0),ondragend:G(this._onDragEnd,this),onmouseover:G(this._showDataInfo,this,!0),onmouseout:G(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[jr(t[0],[0,100],e,!0),jr(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];BD(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?jr(o.minSpan,a,r,!0):null,null!=o.maxSpan?jr(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=$r([jr(i[0],r,a,!0),jr(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=$r(n.slice()),r=this._size;R([0,1],(function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:r[1]/2-o/2})}),this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;l<a.length;l++){var u=a[l],h=u.getClipPath();h||(h=new Bs,u.setClipPath(h)),h.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,o=["",""];if(e.get("showDetail")){var a=e.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=t?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var h=$r(this._handleEnds.slice());function c(t){var e=Eh(n.handles[t].parent,this.group),a=Vh(0===t?"right":"left",e),s=this._handleWidth/2+5,l=zh([h[t]+(0===t?-s:s),this._size[1]/2],e);i[t].setStyle({x:l[0],y:l[1],verticalAlign:r===PB?"middle":a,align:r===PB?a:"center",text:o[t]})}c.call(this,0),c.call(this,1)},e.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),r=n.get("labelPrecision");null!=r&&"auto"!==r||(r=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(r,20));return W(i)?i(t,o):U(i)?i.replace("{value}",o):o},e.prototype._showDataInfo=function(t){var e=(this.dataZoomModel.get("handleLabel")||{}).show||!1,n=this.dataZoomModel.getModel(["emphasis","handleLabel"]).get("show")||!1,i=t||this._dragging?n:e,r=this._displayables,o=r.handleLabels;o[0].attr("invisible",!i),o[1].attr("invisible",!i),r.moveHandle&&this.api[i?"enterEmphasis":"leaveEmphasis"](r.moveHandle,1)},e.prototype._onDragMove=function(t,e,n,i){this._dragging=!0,ce(i.event);var r=zh([e,n],this._displayables.sliderGroup.getLocalTransform(),!0),o=this._updateInterval(t,r[0]),a=this.dataZoomModel.get("realtime");this._updateView(!a),o&&a&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new Te(e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),r=[0,100];this._range=$r([jr(n.x,i,r,!0),jr(n.x+n.width,i,r,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(ce(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new kB({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?NB:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=hE(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),r=this.api.getHeight();t={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return t},e.type="dataZoom.slider",e}(gE);function zB(t){return"vertical"===t?"ns-resize":"ew-resize"}function VB(t){t.registerComponentModel(LB),t.registerComponentView(EB),wE(t)}function BB(t){O_(DB),O_(VB)}var GB=function(t,e,n){var i=M((FB[t]||{})[e]);return n&&H(i)?i[i.length-1]:i},FB={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},HB=zC.mapVisual,WB=zC.eachVisual,UB=H,YB=R,ZB=$r,XB=jr,jB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return n(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&Bz(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=G(t,this),this.controllerVisuals=Vz(this.option.controller,e,t),this.targetVisuals=Vz(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=So(t),e},e.prototype.eachTargetSeries=function(t,e){R(this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,n){var i,r=this.option,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],H(t)&&(t=t.slice(),i=!0);var l=e?t:i?[u(t[0]),u(t[1])]:u(t);return U(s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):W(s)?i?s(t[0],t[1]):s(t):i?t[0]===a[0]?n[0]+" "+l[1]:t[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,e=ZB([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var r=n[i],o=t.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),r=e.controller||(e.controller={});I(i,n),I(r,n);var o=this.isCategory();function a(n){UB(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}a.call(this,i),a.call(this,r),function(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},YB(i,(function(t,e){if(zC.isValidType(e)){var n=GB(e,"inactive",o);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}.call(this,i,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol()||"roundRect";YB(this.stateList,(function(a){var s=this.itemSize,l=t[a];l||(l=t[a]={color:o?i:[i]}),null==l.symbol&&(l.symbol=e&&M(e)||(o?r:[r])),null==l.symbolSize&&(l.symbolSize=n&&M(n)||(o?s[0]:[s[0],s[0]])),l.symbol=HB(l.symbol,(function(t){return"none"===t?r:t}));var u=l.symbolSize;if(null!=u){var h=-1/0;WB(u,(function(t){t>h&&(h=t)})),l.symbolSize=HB(u,(function(t){return XB(t,[0,h],[0,s[0]],!0)}))}}),this)}.call(this,r)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(Nd),qB=[20,140],KB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=qB[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=qB[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):H(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),R(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}),this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=$r((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},e.prototype.getValueState=function(t){var e=this.option.range,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),(function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},e.prototype.getVisualMeta=function(t){var e=$B(this,"outOfRange",this.getExtent()),n=$B(this,"inRange",this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;a<l&&(!n.length||e[a]<=n[0]);a++)e[a]<n[o]&&r(e[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&i.length&&r(n[o],"outOfRange"),r(n[o],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<e[a])&&(u&&(i.length&&r(i[i.length-1].value,"outOfRange"),u=0),r(e[a],"outOfRange"));var h=i.length;return{stops:i,outerColors:[h?i[0].color:"transparent",h?i[h-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=Cc(jB.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(jB);function $B(t,e,n){if(n[0]===n[1])return n.slice();for(var i=(n[1]-n[0])/200,r=n[0],o=[],a=0;a<=200&&r<n[1];a++)o.push(r),r+=i;return o.push(n[1]),o}var JB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return n(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,n,i){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,n,i):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,n=fd(e.get("padding")||0),i=t.getBoundingRect();t.add(new Bs({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,e,n){var i=(n=n||{}).forceState,r=this.visualMapModel,o={};if("color"===e){var a=r.get("contentColor");o.color=a}function s(t){return o[t]}function l(t,e){o[t]=e}var u=r.controllerVisuals[i||r.getValueState(t)];return R(zC.prepareVisualTypes(u),(function(i){var r=u[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",r=u.__alphaForOpacity),zC.dependsOn(i,e)&&r&&r.applyVisual(t,s,l)})),o[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;Dd(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,e,n,i){},e.type="visualMap",e}(Cg),QB=[["left","right","width"],["top","bottom","height"]];function tG(t,e,n){var i=t.option,r=i.align;if(null!=r&&"auto"!==r)return r;for(var o={width:e.getWidth(),height:e.getHeight()},a="horizontal"===i.orient?1:0,s=QB[a],l=[0,null,10],u={},h=0;h<3;h++)u[QB[1-a][h]]=l[h],u[s[h]]=2===h?n[0]:i[s[h]];var c=[["x","width",3],["y","height",0]][a],d=Ad(u,o,i.padding);return s[(d.margin[c[2]]||0)+d[c[0]]+.5*d[c[1]]<.5*o[c[1]]?0:1]}function eG(t,e){return R(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}var nG=jr,iG=R,rG=Math.min,oG=Math.max,aG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return n(e,t),e.prototype.init=function(e,n){t.prototype.init.call(this,e,n),this._hoverLinkFromSeriesMouseOver=G(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=G(this._hideIndicator,this)},e.prototype.doRender=function(t,e,n,i){i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},e.prototype._renderEndsText=function(t,e,n){if(e){var i=e[1-n];i=null!=i?i+"":"";var r=this.visualMapModel,o=r.get("textGap"),a=r.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),u=this._applyTransform(0===n?"bottom":"top",s),h=this._orient,c=this.visualMapModel.textStyleModel;this.group.add(new Hs({style:nc(c,{x:l[0],y:l[1],verticalAlign:"horizontal"===h?"middle":u,align:"horizontal"===h?u:"center",text:i})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,i=e.itemSize,r=this._orient,o=this._useHandle,a=tG(e,this.api,i),s=n.mainGroup=this._createBarGroup(a),l=new zr;s.add(l),l.add(n.outOfRange=sG()),l.add(n.inRange=sG(null,o?uG(this._orient):null,G(this._dragHandle,this,"all",!1),G(this._dragHandle,this,"all",!0))),l.setClipPath(new Bs({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var u=e.textStyleModel.getTextRect("国"),h=oG(u.width,u.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,s,0,i,h,r),this._createHandle(e,s,1,i,h,r)),this._createIndicator(e,s,i,h,r),t.add(s)},e.prototype._createHandle=function(t,e,n,i,r,o){var a=G(this._dragHandle,this,n,!1),s=G(this._dragHandle,this,n,!0),l=Ir(t.get("handleSize"),i[0]),u=Wv(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),h=uG(this._orient);u.attr({cursor:h,draggable:!0,drift:a,ondragend:s,onmousemove:function(t){ce(t.event)}}),u.x=i[0]/2,u.useStyle(t.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),ql(u,!0),e.add(u);var c=this.visualMapModel.textStyleModel,d=new Hs({cursor:h,draggable:!0,drift:a,onmousemove:function(t){ce(t.event)},ondragend:s,style:nc(c,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[l,0],f=this._shapes;f.handleThumbs[n]=u,f.handleLabelPoints[n]=p,f.handleLabels[n]=d},e.prototype._createIndicator=function(t,e,n,i,r){var o=Ir(t.get("indicatorSize"),n[0]),a=Wv(t.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=t.getModel("indicatorStyle").getItemStyle();if(a instanceof Ps){var l=a.style;a.useStyle(C({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else a.useStyle(s);e.add(a);var u=this.visualMapModel.textStyleModel,h=new Hs({silent:!0,invisible:!0,style:nc(u,{x:0,y:0,text:""})});this.group.add(h);var c=[("horizontal"===r?i/2:6)+n[0]/2,0],d=this._shapes;d.indicator=a,d.indicatorLabel=h,d.indicatorLabelPoint=c,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,n,i){if(this._useHandle){if(this._dragging=!e,!e){var r=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,r[1]),this._hideIndicator(),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():lG(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[nG(e[0],n,i,!0),nG(e[1],n,i,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];BD(e,i,r,t,0);var o=n.getExtent();this._dataInterval=[nG(i[0],r,o,!0),nG(i[1],r,o,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,r=[0,e.itemSize[1]],o=t?r:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},e.prototype._createBarVisual=function(t,e,n,i){var r={forceState:i,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,r),a=[this.getControllerVisual(t[0],"symbolSize",r),this.getControllerVisual(t[1],"symbolSize",r)],s=this._createBarPoints(n,a);return{barColor:new nh(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var n=[],i=(t[1]-t[0])/100;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var r=1;r<100;r++){var o=t[0]+i*r;if(o>t[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:r/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new zr("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent(),l=this._applyTransform("left",n.mainGroup);iG([0,1],(function(u){var h=r[u];h.setStyle("fill",e.handlesColor[u]),h.y=t[u];var c=nG(t[u],[0,a[1]],s,!0),d=this.getControllerVisual(c,"symbolSize");h.scaleX=h.scaleY=d/a[0],h.x=a[0]-d/2;var p=zh(n.handleLabelPoints[u],Eh(h,this.group));if("horizontal"===this._orient){var f="left"===l||"top"===l?(a[0]-d)/2:(a[0]-d)/-2;p[1]+=f}o[u].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var h=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),c=this.getControllerVisual(t,"symbolSize"),d=nG(t,o,s,!0),p=a[0]-c/2,f={x:u.x,y:u.y};u.y=d,u.x=p;var g=zh(l.indicatorLabelPoint,Eh(u,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var m=this._applyTransform("left",l.mainGroup),y="horizontal"===this._orient;v.setStyle({text:(n||"")+r.formatValueText(e),verticalAlign:y?m:"middle",align:y?"center":m});var x={x:p,y:d,style:{fill:h}},_={style:{x:g[0],y:g[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var b={duration:100,easing:"cubicInOut",additive:!0};u.x=f.x,u.y=f.y,u.animateTo(x,b),v.animateTo(_,b)}else u.attr(x),v.attr(_);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var S=0;S<w.length;S++)this.api.enterBlur(w[S])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);i[1]=rG(oG(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,e){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],o=n.getExtent();t=rG(oG(r[0],t),r[1]);var a=function(t,e,n){var i=6,r=t.get("hoverLinkDataSize");r&&(i=nG(r,e,n,!0)/2);return i}(n,o,r),s=[t-a,t+a],l=nG(t,r,o,!0),u=[nG(s[0],r,o,!0),nG(s[1],r,o,!0)];s[0]<r[0]&&(u[0]=-1/0),s[1]>r[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var h=this._hoverLinkDataIndices,c=[];(e||lG(n))&&(c=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var d=function(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[o(n),o(i)];function r(t,e,n){for(var i=0,r=t.length;i<r;i++){var o=ko(t[i].seriesId,null);if(null==o)return;for(var a=So(t[i].dataIndex),s=n&&n[o],l=0,u=a.length;l<u;l++){var h=a[l];s&&s[h]?s[h]=null:(e[o]||(e[o]={}))[h]=1}}}function o(t,e){var n=[];for(var i in t)if(t.hasOwnProperty(i)&&null!=t[i])if(e)n.push(+i);else{var r=o(t[i],!0);r.length&&n.push({seriesId:i,dataIndex:r})}return n}}(h,c);this._dispatchHighDown("downplay",eG(d[0],n)),this._dispatchHighDown("highlight",eG(d[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if(kv(t.target,(function(t){var n=el(t);if(null!=n.dataIndex)return e=n,!0}),!0),e){var n=this.ecModel.getSeriesByIndex(e.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var r=n.getData(e.dataType),o=r.getStore().get(i.getDataDimensionIndex(r),e.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n<e.length;n++)this.api.leaveBlur(e[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",eG(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,e,n,i){var r=Eh(e,i?null:this.group);return H(t)?zh(t,r,n):Vh(t,r,n)},e.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(JB);function sG(t,e,n,i){return new Hu({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){ce(t.event)},ondragend:i})}function lG(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function uG(t){return"vertical"===t?"ns-resize":"ew-resize"}var hG={type:"selectDataRange",event:"dataRangeSelected",update:"update"},cG=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))},dG=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",(function(e){var i,r,o,a,s,l=t.pipelineContext;!e.isTargetSeries(t)||l&&l.large||n.push((i=e.stateList,r=e.targetVisuals,o=G(e.getValueState,e),a=e.getDataDimensionIndex(t.getData()),s={},R(i,(function(t){var e=zC.prepareVisualTypes(r[t]);s[t]=e})),{progress:function(t,e){var n,i;function l(t){return Tv(e,i,t)}function u(t,n){Av(e,i,t,n)}null!=a&&(n=e.getDimensionIndex(a));for(var h=e.getStore();null!=(i=t.next());){var c=e.getRawDataItem(i);if(!c||!1!==c.visualMap)for(var d=null!=a?h.get(n,i):i,p=o(d),f=r[p],g=s[p],v=0,m=g.length;v<m;v++){var y=g[v];f[y]&&f[y].applyVisual(d,l,u)}}}}))})),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),i=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var r=e.getVisualMeta(G(pG,null,t,e))||{stops:[],outerColors:[]},o=e.getDataDimensionIndex(n);o>=0&&(r.dimension=o,i.push(r))}})),t.getData().setVisual("visualMeta",i)}}];function pG(t,e,n,i){for(var r=e.targetVisuals[i],o=zC.prepareVisualTypes(r),a={color:Cv(t.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],h=r["opacity"===u?"__alphaForOpacity":u];h&&h.applyVisual(n,c,d)}return a.color;function c(t){return a[t]}function d(t,e){a[t]=e}}var fG=R;function gG(t){var e=t&&t.visualMap;H(e)||(e=e?[e]:[]),fG(e,(function(t){if(t){vG(t,"splitList")&&!vG(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&H(e)&&fG(e,(function(t){X(t)&&(vG(t,"start")&&!vG(t,"min")&&(t.min=t.start),vG(t,"end")&&!vG(t,"max")&&(t.max=t.end))}))}}))}function vG(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var mG=!1;function yG(t){mG||(mG=!0,t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(hG,cG),R(dG,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(gG))}function xG(t){t.registerComponentModel(KB),t.registerComponentView(aG),yG(t)}var _G=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return n(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],bG[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var r=this.option.categories;this.resetVisual((function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=M(r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=N(this._pieceList,(function(t){return t=M(t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},i=zC.listVisualTypes(),r=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}R(e.pieces,(function(t){R(i,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),R(n,(function(t,n){var i=!1;R(this.stateList,(function(t){i=i||o(e,t,n)||o(e.target,t,n)}),this),!i&&R(this.stateList,(function(t){(e[t]||(e[t]={}))[n]=GB(n,"inRange"===t?"active":"inactive",r)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,r=(e?n:t).selected||{};if(n.selected=r,R(i,(function(t,e){var n=this.getSelectedMapKey(t);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var o=!1;R(i,(function(t,e){var n=this.getSelectedMapKey(t);r[n]&&(o?r[n]=!1:o=!0)}),this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=M(t)},e.prototype.getValueState=function(t){var e=zC.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),(function(e,i){zC.findPieceIndex(e,n)===t&&r.push(i)}),this),e.push({seriesId:i.id,dataIndex:r})}),this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),(o=r[r.length-1].interval[1])!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return R(r,(function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],"outOfRange"),s(e.slice()),a=e[1])}),this),{stops:e,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=t(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=Cc(jB.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(jB),bG={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;for(var o=(i[1]-i[0])/r;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<r;s+=o,a++){var l=a===r-1?i[1]:s+o;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),po(t),R(t,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(t){var e=this.option;R(e.categories,(function(e){t.push({text:this.formatValueText(e,!0),value:e})}),this),wG(e,t)},pieces:function(t){var e=this.option;R(e.pieces,(function(e,n){X(e)||(e={value:e});var i={text:"",index:n};if(null!=e.label&&(i.text=e.label),e.hasOwnProperty("value")){var r=i.value=e.value;i.interval=[r,r],i.close=[1,1]}else{for(var o=i.interval=[],a=i.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],h=0;h<2;h++){for(var c=[["gte","gt","min"],["lte","lt","max"]][h],d=0;d<3&&null==o[h];d++)o[h]=e[c[d]],a[h]=s[d],u[h]=2===d;null==o[h]&&(o[h]=l[h])}u[0]&&o[1]===1/0&&(a[0]=0),u[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(i.value=o[0])}i.visual=zC.retrieveVisuals(e),t.push(i)}),this),wG(e,t),po(t),R(t,(function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function wG(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var SG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,h=et(e.get("showLabel",!0),!u),c=!e.get("selectedMode");u&&this._renderEndsText(t,u[0],s,h,a),R(l.viewPieceList,(function(i){var l=i.piece,u=new zr;u.onclick=G(this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var d=e.getRepresentValue(l);if(this._createItemSymbol(u,d,[0,0,s[0],s[1]],c),h){var p=this.visualMapModel.getValueState(d);u.add(new Hs({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===p?.5:1},silent:c}))}t.add(u)}),this),u&&this._renderEndsText(t,u[1],s,h,a),Cd(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:eG(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return tG(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,i,r){if(e){var o=new zr,a=this.visualMapModel.textStyleModel;o.add(new Hs({style:nc(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=N(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),i=t.get("orient"),r=t.get("inverse");return("horizontal"===i?r:!r)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n,i){var r=Wv(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color"));r.silent=i,t.add(r)},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=n.selectedMode;if(i){var r=M(n.selected),o=e.getSelectedMapKey(t);"single"===i||!0===i?(r[o]=!0,R(r,(function(t,e){r[e]=e===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},e.type="visualMap.piecewise",e}(JB);function MG(t){t.registerComponentModel(_G),t.registerComponentView(SG),yG(t)}function IG(t){O_(xG),O_(MG)}var TG={label:{enabled:!0},decal:{show:!1}},CG=No(),AG={};function DG(t,e){var n=t.getModel("aria");if(n.get("enabled")){var i=M(TG);I(i.label,t.getLocaleModel().get("aria"),!1),I(n.option,i,!1),function(){if(n.getModel("decal").get("show")){var e=ft();t.eachSeries((function(t){if(!t.isColorBySeries()){var n=e.get(t.type);n||(n={},e.set(t.type,n)),CG(t).scope=n}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if(W(e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var i=hp(e.ecModel,e.name,AG,t.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",u(r,i))}else{var o=e.getRawData(),a={},s=CG(e).scope;n.each((function(t){var e=n.getRawIndex(t);a[e]=t}));var l=o.count();o.each((function(t){var i=a[t],r=o.getName(t)||t+"",h=hp(e.ecModel,r,s,l),c=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",u(c,h))}))}}function u(t,e){var n=t?C(C({},e),t):e;return n.dirty=!0,n}}))}}(),function(){var i=e.getZr().dom;if(!i)return;var o=t.getLocaleModel().get("aria"),a=n.getModel("label");if(a.option=A(a.option,o),!a.get("enabled"))return;if(i.setAttribute("role","img"),a.get("description"))return void i.setAttribute("aria-label",a.get("description"));var s,l=t.getSeriesCount(),u=a.get(["data","maxCount"])||10,h=a.get(["series","maxCount"])||10,c=Math.min(l,h);if(l<1)return;var d=function(){var e=t.get("title");e&&e.length&&(e=e[0]);return e&&e.text}();s=d?r(a.get(["general","withTitle"]),{title:d}):a.get(["general","withoutTitle"]);var p=[];s+=r(l>1?a.get(["series","multiple","prefix"]):a.get(["series","single","prefix"]),{seriesCount:l}),t.eachSeries((function(e,n){if(n<c){var i=void 0,o=e.get("name")?"withName":"withoutName";i=r(i=l>1?a.get(["series","multiple",o]):a.get(["series","single",o]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(_=e.subType,b=t.getLocaleModel().get(["series","typeNames"]),b[_]||b.chart)});var s=e.getData();if(s.count()>u)i+=r(a.get(["data","partialData"]),{displayCnt:u});else i+=a.get(["data","allData"]);for(var h=a.get(["data","separator","middle"]),d=a.get(["data","separator","end"]),f=a.get(["data","excludeDimensionId"]),g=[],v=0;v<s.count();v++)if(v<u){var m=s.getName(v),y=f?z(s.getValues(v),(function(t,e){return-1===L(f,e)})):s.getValues(v),x=a.get(["data",m?"withName":"withoutName"]);g.push(r(x,{name:m,value:y.join(h)}))}i+=g.join(h)+d,p.push(i)}var _,b}));var f=a.getModel(["series","multiple","separator"]),g=f.get("middle"),v=f.get("end");s+=p.join(g)+v,i.setAttribute("aria-label",s)}()}function r(t,e){if(!U(t))return t;var n=t;return R(e,(function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),n}}function LG(t){if(t&&t.aria){var e=t.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},R(["description","general","series","data"],(function(t){null!=e[t]&&(e.label[t]=e[t])}))}}var kG={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},PG=function(){function t(t){if(null==(this._condVal=U(t)?new RegExp(t):Q(t)?t:null)){xo("")}}return t.prototype.evaluate=function(t){var e=typeof t;return U(e)?this._condVal.test(t):!!Z(e)&&this._condVal.test(t+"")},t}(),OG=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),RG=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},t}(),NG=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},t}(),EG=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),zG=function(){function t(){}return t.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),n=t?this.valueParser(e):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?n:e))return!1;return!0},t}();function VG(t,e){if(!0===t||!1===t){var n=new OG;return n.value=t,n}return GG(t)||xo(""),t.and?BG("and",t,e):t.or?BG("or",t,e):t.not?function(t,e){var n=t.not,i="";GG(n)||xo(i);var r=new EG;r.child=VG(n,e),r.child||xo(i);return r}(t,e):function(t,e){for(var n="",i=e.prepareGetValue(t),r=[],o=B(t),a=t.parser,s=a?If(a):null,l=0;l<o.length;l++){var u=o[l];if("parser"!==u&&!e.valueGetterAttrMap.get(u)){var h=yt(kG,u)?kG[u]:u,c=t[u],d=s?s(c):c,p=Lf(h,d)||"reg"===h&&new PG(d);p||xo(n),r.push(p)}}r.length||xo(n);var f=new zG;return f.valueGetterParam=i,f.valueParser=s,f.getValue=e.getValue,f.subCondList=r,f}(t,e)}function BG(t,e,n){var i=e[t];H(i)||xo(""),i.length||xo("");var r="and"===t?new RG:new NG;return r.children=N(i,(function(t){return VG(t,n)})),r.children.length||xo(""),r}function GG(t){return X(t)&&!O(t)}var FG=function(){function t(t,e){this._cond=VG(t,e)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();var HG={type:"echarts:filter",transform:function(t){for(var e,n,i,r=t.upstream,o=(n=t.config,i={valueGetterAttrMap:ft({dimension:!0}),prepareGetValue:function(t){var e=t.dimension;yt(t,"dimension")||xo("");var n=r.getDimensionInfo(e);return n||xo(""),{dimIdx:n.index}},getValue:function(t){return r.retrieveValueFromItem(e,t.dimIdx)}},new FG(n,i)),a=[],s=0,l=r.count();s<l;s++)e=r.getRawDataItem(s),o.evaluate()&&a.push(e);return{data:a}}},WG={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,i="",r=So(n);r.length||xo(i);var o=[];R(r,(function(t){var n=t.dimension,r=t.order,a=t.parser,s=t.incomparable;if(null==n&&xo(i),"asc"!==r&&"desc"!==r&&xo(i),s&&"min"!==s&&"max"!==s){xo("")}if("asc"!==r&&"desc"!==r){xo("")}var l=e.getDimensionInfo(n);l||xo(i);var u=a?If(a):null;a&&!u&&xo(i),o.push({dimIdx:l.index,parser:u,comparator:new Af(r,s)})}));var a=e.sourceFormat;a!==Fd&&a!==Hd&&xo(i);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort((function(t,n){for(var i=0;i<o.length;i++){var r=o[i],a=e.retrieveValueFromItem(t,r.dimIdx),s=e.retrieveValueFromItem(n,r.dimIdx);r.parser&&(a=r.parser(a),s=r.parser(s));var l=r.comparator.evaluate(a,s);if(0!==l)return l}return 0})),{data:s}}};function UG(t){t.registerTransform(HG),t.registerTransform(WG)}var YG=ss.CMD;function ZG(t,e){return Math.abs(t-e)<1e-5}function XG(t){var e,n,i,r,o,a,s,l,u,h,c,d,p,f,g,v,m,y,x,_,b,w,S,M,I=t.data,T=t.len(),C=[],A=0,D=0,L=0,k=0;function P(t,n){e&&e.length>2&&C.push(e),e=[t,n]}function O(t,n,i,r){ZG(t,i)&&ZG(n,r)||e.push(t,n,i,r,i,r)}for(var R=0;R<T;){var N=I[R++],E=1===R;switch(E&&(L=A=I[R],k=D=I[R+1],N!==YG.L&&N!==YG.C&&N!==YG.Q||(e=[L,k])),N){case YG.M:A=L=I[R++],D=k=I[R++],P(L,k);break;case YG.L:O(A,D,n=I[R++],i=I[R++]),A=n,D=i;break;case YG.C:e.push(I[R++],I[R++],I[R++],I[R++],A=I[R++],D=I[R++]);break;case YG.Q:n=I[R++],i=I[R++],r=I[R++],o=I[R++],e.push(A+2/3*(n-A),D+2/3*(i-D),r+2/3*(n-r),o+2/3*(i-o),r,o),A=r,D=o;break;case YG.A:var z=I[R++],V=I[R++],B=I[R++],G=I[R++],F=I[R++],H=I[R++]+F;R+=1;var W=!I[R++];n=Math.cos(F)*B+z,i=Math.sin(F)*G+V,E?P(L=n,k=i):O(A,D,n,i),A=Math.cos(H)*B+z,D=Math.sin(H)*G+V;for(var U=(W?-1:1)*Math.PI/2,Y=F;W?Y>H:Y<H;Y+=U){var Z=W?Math.max(Y+U,H):Math.min(Y+U,H);a=Y,s=Z,l=z,u=V,h=B,c=G,d=void 0,p=void 0,f=void 0,g=void 0,v=void 0,m=void 0,y=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,M=void 0,d=Math.abs(s-a),p=4*Math.tan(d/4)/3,f=s<a?-1:1,g=Math.cos(a),v=Math.sin(a),m=Math.cos(s),y=Math.sin(s),x=g*h+l,_=v*c+u,b=m*h+l,w=y*c+u,S=h*p*f,M=c*p*f,e.push(x-S*v,_+M*g,b+S*y,w-M*m,b,w)}break;case YG.R:L=A=I[R++],k=D=I[R++],n=L+I[R++],i=k+I[R++],P(n,k),O(n,k,n,i),O(n,i,L,i),O(L,i,L,k),O(L,k,n,k);break;case YG.Z:e&&O(A,D,L,k),A=L,D=k}}return e&&e.length>2&&C.push(e),C}function jG(t,e,n,i,r,o,a,s,l,u){if(ZG(t,n)&&ZG(e,i)&&ZG(r,a)&&ZG(o,s))l.push(a,s);else{var h=2/u,c=h*h,d=a-t,p=s-e,f=Math.sqrt(d*d+p*p);d/=f,p/=f;var g=n-t,v=i-e,m=r-a,y=o-s,x=g*g+v*v,_=m*m+y*y;if(x<c&&_<c)l.push(a,s);else{var b=d*g+p*v,w=-d*m-p*y;if(x-b*b<c&&b>=0&&_-w*w<c&&w>=0)l.push(a,s);else{var S=[],M=[];_n(t,n,r,a,.5,S),_n(e,i,o,s,.5,M),jG(S[0],M[0],S[1],M[1],S[2],M[2],S[3],M[3],l,u),jG(S[4],M[4],S[5],M[5],S[6],M[6],S[7],M[7],l,u)}}}}function qG(t,e,n){var i=t[e],r=t[1-e],o=Math.abs(i/r),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);0===s&&(s=1,a=n);for(var l=[],u=0;u<a;u++)l.push(s);var h=n-a*s;if(h>0)for(u=0;u<h;u++)l[u%a]+=1;return l}function KG(t,e,n){for(var i=t.r0,r=t.r,o=t.startAngle,a=t.endAngle,s=Math.abs(a-o),l=s*r,u=r-i,h=l>Math.abs(u),c=qG([l,u],h?0:1,e),d=(h?s:u)/c.length,p=0;p<c.length;p++)for(var f=(h?u:s)/c[p],g=0;g<c[p];g++){var v={};h?(v.startAngle=o+d*p,v.endAngle=o+d*(p+1),v.r0=i+f*g,v.r=i+f*(g+1)):(v.startAngle=o+f*g,v.endAngle=o+f*(g+1),v.r0=i+d*p,v.r=i+d*(p+1)),v.clockwise=t.clockwise,v.cx=t.cx,v.cy=t.cy,n.push(v)}}function $G(t,e,n,i){return t*i-n*e}function JG(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,h=a-r,c=s-o,d=$G(h,c,l,u);if(Math.abs(d)<1e-6)return null;var p=$G(t-r,e-o,h,c)/d;return p<0||p>1?null:new Te(p*l+t,p*u+e)}function QG(t,e,n){var i=new Te;Te.sub(i,n,e),i.normalize();var r=new Te;return Te.sub(r,t,e),r.dot(i)}function tF(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function eF(t){var e=t.points,n=[],i=[];Ea(e,n,i);var r=new Ne(n[0],n[1],i[0]-n[0],i[1]-n[1]),o=r.width,a=r.height,s=r.x,l=r.y,u=new Te,h=new Te;return o>a?(u.x=h.x=s+o/2,u.y=l,h.y=l+a):(u.y=h.y=l+a/2,u.x=s,h.x=s+o),function(t,e,n){for(var i=t.length,r=[],o=0;o<i;o++){var a=t[o],s=t[(o+1)%i],l=JG(a[0],a[1],s[0],s[1],e.x,e.y,n.x,n.y);l&&r.push({projPt:QG(l,e,n),pt:l,idx:o})}if(r.length<2)return[{points:t},{points:t}];r.sort((function(t,e){return t.projPt-e.projPt}));var u=r[0],h=r[r.length-1];if(h.idx<u.idx){var c=u;u=h,h=c}var d=[u.pt.x,u.pt.y],p=[h.pt.x,h.pt.y],f=[d],g=[p];for(o=u.idx+1;o<=h.idx;o++)tF(f,t[o].slice());for(tF(f,p),tF(f,d),o=h.idx+1;o<=u.idx+i;o++)tF(g,t[o%i].slice());return tF(g,d),tF(g,p),[{points:f},{points:g}]}(e,u,h)}function nF(t,e,n,i){if(1===n)i.push(e);else{var r=Math.floor(n/2),o=t(e);nF(t,o[0],r,i),nF(t,o[1],n-r,i)}return i}function iF(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function rF(t,e){var n,i=[],r=t.shape;switch(t.type){case"rect":!function(t,e,n){for(var i=t.width,r=t.height,o=i>r,a=qG([i,r],o?0:1,e),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",h=o?"y":"x",c=t[s]/a.length,d=0;d<a.length;d++)for(var p=t[l]/a[d],f=0;f<a[d];f++){var g={};g[u]=d*c,g[h]=f*p,g[s]=c,g[l]=p,g.x+=t.x,g.y+=t.y,n.push(g)}}(r,e,i),n=Bs;break;case"sector":KG(r,e,i),n=zu;break;case"circle":KG({r0:0,r:r.r,startAngle:0,endAngle:2*Math.PI,cx:r.cx,cy:r.cy},e,i),n=zu;break;default:var o=t.getComputedTransform(),a=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,s=N(function(t,e){var n=XG(t),i=[];e=e||1;for(var r=0;r<n.length;r++){var o=n[r],a=[],s=o[0],l=o[1];a.push(s,l);for(var u=2;u<o.length;){var h=o[u++],c=o[u++],d=o[u++],p=o[u++],f=o[u++],g=o[u++];jG(s,l,h,c,d,p,f,g,a,e),s=f,l=g}i.push(a)}return i}(t.getUpdatedPathProxy(),a),(function(t){return function(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}(t)})),l=s.length;if(0===l)nF(eF,{points:s[0]},e,i);else if(l===e)for(var u=0;u<l;u++)i.push({points:s[u]});else{var h=0,c=N(s,(function(t){var e=[],n=[];Ea(t,e,n);var i=(n[1]-e[1])*(n[0]-e[0]);return h+=i,{poly:t,area:i}}));c.sort((function(t,e){return e.area-t.area}));var d=e;for(u=0;u<l;u++){var p=c[u];if(d<=0)break;var f=u===l-1?d:Math.ceil(p.area/h*e);f<0||(nF(eF,{points:p.poly},f,i),d-=f)}}n=Hu}if(!n)return function(t,e){for(var n=[],i=0;i<e;i++)n.push(yu(t));return n}(t,e);var g=[];for(u=0;u<i.length;u++){var v=new n;v.setShape(i[u]),iF(t,v),g.push(v)}return g}function oF(t,e){var n=t.length,i=e.length;if(n===i)return[t,e];for(var r=[],o=[],a=n<i?t:e,s=Math.min(n,i),l=Math.abs(i-n)/6,u=(s-2)/6,h=Math.ceil(l/u)+1,c=[a[0],a[1]],d=l,p=2;p<s;){var f=a[p-2],g=a[p-1],v=a[p++],m=a[p++],y=a[p++],x=a[p++],_=a[p++],b=a[p++];if(d<=0)c.push(v,m,y,x,_,b);else{for(var w=Math.min(d,h-1)+1,S=1;S<=w;S++){var M=S/w;_n(f,v,y,_,M,r),_n(g,m,x,b,M,o),f=r[3],g=o[3],c.push(r[1],o[1],r[2],o[2],f,g),v=r[5],m=o[5],y=r[6],x=o[6]}d-=w-1}}return a===t?[c,e]:[t,c]}function aF(t,e){for(var n=t.length,i=t[n-2],r=t[n-1],o=[],a=0;a<e.length;)o[a++]=i,o[a++]=r;return o}function sF(t){for(var e=0,n=0,i=0,r=t.length,o=0,a=r-2;o<r;a=o,o+=2){var s=t[a],l=t[a+1],u=t[o],h=t[o+1],c=s*h-u*l;e+=c,n+=(s+u)*c,i+=(l+h)*c}return 0===e?[t[0]||0,t[1]||0]:[n/e/3,i/e/3,e]}function lF(t,e,n,i){for(var r=(t.length-2)/6,o=1/0,a=0,s=t.length,l=s-2,u=0;u<r;u++){for(var h=6*u,c=0,d=0;d<s;d+=2){var p=0===d?h:(h+d-2)%l+2,f=t[p]-n[0],g=t[p+1]-n[1],v=e[d]-i[0]-f,m=e[d+1]-i[1]-g;c+=v*v+m*m}c<o&&(o=c,a=u)}return a}function uF(t){for(var e=[],n=t.length,i=0;i<n;i+=2)e[i]=t[n-i-2],e[i+1]=t[n-i-1];return e}function hF(t){return t.__isCombineMorphing}var cF="__mOriginal_";function dF(t,e,n){var i=cF+e,r=t[i]||t[e];t[i]||(t[i]=t[e]);var o=n.replace,a=n.after,s=n.before;t[e]=function(){var t,e=arguments;return s&&s.apply(this,e),t=o?o.apply(this,e):r.apply(this,e),a&&a.apply(this,e),t}}function pF(t,e){var n=cF+e;t[n]&&(t[e]=t[n],t[n]=null)}function fF(t,e){for(var n=0;n<t.length;n++)for(var i=t[n],r=0;r<i.length;){var o=i[r],a=i[r+1];i[r++]=e[0]*o+e[2]*a+e[4],i[r++]=e[1]*o+e[3]*a+e[5]}}function gF(t,e){var n=t.getUpdatedPathProxy(),i=e.getUpdatedPathProxy(),r=function(t,e){for(var n,i,r,o=[],a=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],u=e[s],h=void 0,c=void 0;l?u?(i=h=(n=oF(l,u))[0],r=c=n[1]):(c=aF(r||l,l),h=l):(h=aF(i||u,u),c=u),o.push(h),a.push(c)}return[o,a]}(XG(n),XG(i)),o=r[0],a=r[1],s=t.getComputedTransform(),l=e.getComputedTransform();s&&fF(o,s),l&&fF(a,l),dF(e,"updateTransform",{replace:function(){this.transform=null}}),e.transform=null;var u=function(t,e,n,i){for(var r,o=[],a=0;a<t.length;a++){var s=t[a],l=e[a],u=sF(s),h=sF(l);null==r&&(r=u[2]<0!=h[2]<0);var c=[],d=[],p=0,f=1/0,g=[],v=s.length;r&&(s=uF(s));for(var m=6*lF(s,l,u,h),y=v-2,x=0;x<y;x+=2){var _=(m+x)%y+2;c[x+2]=s[_]-u[0],c[x+3]=s[_+1]-u[1]}c[0]=s[m]-u[0],c[1]=s[m+1]-u[1];for(var b=i/n,w=-i/2;w<=i/2;w+=b){var S=Math.sin(w),M=Math.cos(w),I=0;for(x=0;x<s.length;x+=2){var T=c[x],C=c[x+1],A=l[x]-h[0],D=l[x+1]-h[1],L=A*M-D*S,k=A*S+D*M;g[x]=L,g[x+1]=k;var P=L-T,O=k-C;I+=P*P+O*O}if(I<f){f=I,p=w;for(var R=0;R<g.length;R++)d[R]=g[R]}}o.push({from:c,to:d,fromCp:u,toCp:h,rotation:-p})}return o}(o,a,10,Math.PI),h=[];dF(e,"buildPath",{replace:function(t){for(var n=e.__morphT,i=1-n,r=[],o=0;o<u.length;o++){var a=u[o],s=a.from,l=a.to,c=a.rotation*n,d=a.fromCp,p=a.toCp,f=Math.sin(c),g=Math.cos(c);Bt(r,d,p,n);for(var v=0;v<s.length;v+=2){var m=s[v],y=s[v+1],x=m*i+(S=l[v])*n,_=y*i+(M=l[v+1])*n;h[v]=x*g-_*f+r[0],h[v+1]=x*f+_*g+r[1]}var b=h[0],w=h[1];t.moveTo(b,w);for(v=2;v<s.length;){var S=h[v++],M=h[v++],I=h[v++],T=h[v++],C=h[v++],A=h[v++];b===S&&w===M&&I===C&&T===A?t.lineTo(C,A):t.bezierCurveTo(S,M,I,T,C,A),b=C,w=A}}}})}function vF(t,e,n){if(!t||!e)return e;var i=n.done,r=n.during;return gF(t,e),e.__morphT=0,e.animateTo({__morphT:1},A({during:function(t){e.dirtyShape(),r&&r(t)},done:function(){pF(e,"buildPath"),pF(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape(),i&&i()}},n)),e}function mF(t,e,n,i,r,o){t=r===n?0:Math.round(32767*(t-n)/(r-n)),e=o===i?0:Math.round(32767*(e-i)/(o-i));for(var a,s=0,l=32768;l>0;l/=2){var u=0,h=0;(t&l)>0&&(u=1),(e&l)>0&&(h=1),s+=l*l*(3*u^h),0===h&&(1===u&&(t=l-1-t,e=l-1-e),a=t,t=e,e=a)}return s}function yF(t){var e=1/0,n=1/0,i=-1/0,r=-1/0,o=N(t,(function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),n=Math.min(l,n),i=Math.max(s,i),r=Math.max(l,r),[s,l]}));return N(o,(function(o,a){return{cp:o,z:mF(o[0],o[1],e,n,i,r),path:t[a]}})).sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function xF(t){return rF(t.path,t.count)}function _F(t){return H(t[0])}function bF(t,e){for(var n=[],i=t.length,r=0;r<i;r++)n.push({one:t[r],many:[]});for(r=0;r<e.length;r++){var o=e[r].length,a=void 0;for(a=0;a<o;a++)n[a%i].many.push(e[r][a])}var s=0;for(r=i-1;r>=0;r--)if(!n[r].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[r].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var wF={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),i=0;i<t.count;i++){var r=yu(t.path);r.setStyle("opacity",n),e.push(r)}return e},split:null};function SF(t,e,n,i,r,o){if(t.length&&e.length){var a=dh("update",i,r);if(a&&a.duration>0){var s,l,u=i.getModel("universalTransition").get("delay"),h=Object.assign({setToFinal:!0},a);_F(t)&&(s=t,l=e),_F(e)&&(s=e,l=t);for(var c=s?s===t:t.length>e.length,d=s?bF(l,s):bF(c?e:t,[c?t:e]),p=0,f=0;f<d.length;f++)p+=d[f].many.length;var g=0;for(f=0;f<d.length;f++)v(d[f],c,g,p),g+=d[f].many.length}}function v(t,e,i,r,a){var s=t.many,l=t.one;if(1!==s.length||a)for(var c=A({dividePath:wF[n],individualDelay:u&&function(t,e,n,o){return u(t+i,r)}},h),d=e?function(t,e,n){var i=[];!function t(e){for(var n=0;n<e.length;n++){var r=e[n];hF(r)?t(r.childrenRef()):r instanceof Cs&&i.push(r)}}(t);var r=i.length;if(!r)return{fromIndividuals:[],toIndividuals:[],count:0};var o=(n.dividePath||xF)({path:e,count:r});if(o.length!==r)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0};i=yF(i),o=yF(o);for(var a=n.done,s=n.during,l=n.individualDelay,u=new gr,h=0;h<r;h++){var c=i[h],d=o[h];d.parent=e,d.copyTransform(u),l||gF(c,d)}function p(t){for(var e=0;e<o.length;e++)o[e].addSelfToZr(t)}function f(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,pF(e,"addSelfToZr"),pF(e,"removeSelfFromZr")}e.__isCombineMorphing=!0,e.childrenRef=function(){return o},dF(e,"addSelfToZr",{after:function(t){p(t)}}),dF(e,"removeSelfFromZr",{after:function(t){for(var e=0;e<o.length;e++)o[e].removeSelfFromZr(t)}});var g=o.length;if(l){var v=g,m=function(){0==--v&&(f(),a&&a())};for(h=0;h<g;h++){var y=l?A({delay:(n.delay||0)+l(h,g,i[h],o[h]),done:m},n):n;vF(i[h],o[h],y)}}else e.__morphT=0,e.animateTo({__morphT:1},A({during:function(t){for(var n=0;n<g;n++){var i=o[n];i.__morphT=e.__morphT,i.dirtyShape()}s&&s(t)},done:function(){f();for(var e=0;e<t.length;e++)pF(t[e],"updateTransform");a&&a()}},n));return e.__zr&&p(e.__zr),{fromIndividuals:i,toIndividuals:o,count:g}}(s,l,c):function(t,e,n){var i=e.length,r=[],o=n.dividePath||xF;if(hF(t)){!function t(e){for(var n=0;n<e.length;n++){var i=e[n];hF(i)?t(i.childrenRef()):i instanceof Cs&&r.push(i)}}(t.childrenRef());var a=r.length;if(a<i)for(var s=0,l=a;l<i;l++)r.push(yu(r[s++%a]));r.length=i}else{r=o({path:t,count:i});var u=t.getComputedTransform();for(l=0;l<r.length;l++)r[l].setLocalTransform(u);if(r.length!==i)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0}}r=yF(r),e=yF(e);var h=n.individualDelay;for(l=0;l<i;l++){var c=h?A({delay:(n.delay||0)+h(l,i,r[l],e[l])},n):n;vF(r[l],e[l],c)}return{fromIndividuals:r,toIndividuals:e,count:e.length}}(l,s,c),p=d.fromIndividuals,f=d.toIndividuals,g=p.length,m=0;m<g;m++){y=u?A({delay:u(m,g)},h):h;o(p[m],f[m],e?s[m]:t.one,e?t.one:s[m],y)}else{var y,x=e?s[0]:l,_=e?l:s[0];if(hF(x))v({many:[x],one:_},!0,i,r,!0);else vF(x,_,y=u?A({delay:u(i,r)},h):h),o(x,_,x,_,y)}}}function MF(t){if(!t)return[];if(H(t)){for(var e=[],n=0;n<t.length;n++)e.push(MF(t[n]));return e}var i=[];return t.traverse((function(t){t instanceof Cs&&!t.disableMorphing&&!t.invisible&&!t.ignore&&i.push(t)})),i}var IF=No();function TF(t,e,n,i){var r=function(t,e){for(var n=t.dimensions,i=0;i<n.length;i++){var r=t.getDimensionInfo(n[i]);if(r&&0===r.otherDims[e])return n[i]}}(t,i?"itemChildGroupId":"itemGroupId");if(r){var o=function(t,e,n){var i=t.getDimensionInfo(n),r=i&&i.ordinalMeta;if(i){var o=t.get(i.name,e);return r&&r.categories[o]||o+""}}(t,e,r);return o}var a=t.getRawDataItem(e),s=i?"childGroupId":"groupId";return a&&a[s]?a[s]+"":i?void 0:n||t.getId(e)}function CF(t){var e=[];return R(t,(function(t){var n=t.data,i=t.dataGroupId;if(!(n.count()>1e4))for(var r=n.getIndices(),o=0;o<r.length;o++)e.push({data:n,groupId:TF(n,o,i,!1),childGroupId:TF(n,o,i,!0),divide:t.divide,dataIndex:o})})),e}function AF(t,e,n){t.traverse((function(t){t instanceof Cs&&gh(t,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})}))}function DF(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function LF(t){t.stopAnimation(),t.isGroup&&t.traverse((function(t){t.stopAnimation()}))}function kF(t,e,n){var i=dh("update",n,e);i&&t.traverse((function(t){if(t instanceof Ia){var e=function(t){return ch(t).oldStyle}(t);e&&t.animateFrom({style:e},i)}}))}function PF(t,e,n){var i=CF(t),r=CF(e);function o(t,e,n,i,r){(n||t)&&e.animateFrom({style:n&&n!==t?C(C({},n.style),t.style):t.style},r)}var a=!1,s=0,l=ft(),u=ft();i.forEach((function(t){t.groupId&&l.set(t.groupId,!0),t.childGroupId&&u.set(t.childGroupId,!0)}));for(var h=0;h<r.length;h++){var c=r[h].groupId;if(u.get(c)){s=1;break}var d=r[h].childGroupId;if(d&&l.get(d)){s=2;break}}function p(t,e){return function(n){var i=n.data,r=n.dataIndex;return e?i.getId(r):t?1===s?n.childGroupId:n.groupId:2===s?n.childGroupId:n.groupId}}var f=function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++){var r=t[i],o=e[i];if(r.data.getId(r.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}(i,r),g={};if(!f)for(h=0;h<r.length;h++){var v=r[h],m=v.data.getItemGraphicEl(v.dataIndex);m&&(g[m.id]=!0)}function y(t,e){var n=i[e],s=r[t],l=s.data.hostModel,u=n.data.getItemGraphicEl(n.dataIndex),h=s.data.getItemGraphicEl(s.dataIndex);u!==h?u&&g[u.id]||h&&(LF(h),u?(LF(u),DF(u),a=!0,SF(MF(u),MF(h),s.divide,l,t,o)):AF(h,l,t)):h&&kF(h,s.dataIndex,l)}new Vy(i,r,p(!0,f),p(!1,f),null,"multiple").update(y).updateManyToOne((function(t,e){var n=r[t],s=n.data,l=s.hostModel,u=s.getItemGraphicEl(n.dataIndex),h=z(N(e,(function(t){return i[t].data.getItemGraphicEl(i[t].dataIndex)})),(function(t){return t&&t!==u&&!g[t.id]}));u&&(LF(u),h.length?(R(h,(function(t){LF(t),DF(t)})),a=!0,SF(MF(h),MF(u),n.divide,l,t,o)):AF(u,l,n.dataIndex))})).updateOneToMany((function(t,e){var n=i[e],s=n.data.getItemGraphicEl(n.dataIndex);if(!s||!g[s.id]){var l=z(N(t,(function(t){return r[t].data.getItemGraphicEl(r[t].dataIndex)})),(function(t){return t&&t!==s})),u=r[t[0]].data.hostModel;l.length&&(R(l,(function(t){return LF(t)})),s?(LF(s),DF(s),a=!0,SF(MF(s),MF(l),n.divide,u,t[0],o)):R(l,(function(e){return AF(e,u,t[0])})))}})).updateManyToMany((function(t,e){new Vy(e,t,(function(t){return i[t].data.getId(i[t].dataIndex)}),(function(t){return r[t].data.getId(r[t].dataIndex)})).update((function(n,i){y(t[n],e[i])})).execute()})).execute(),a&&R(e,(function(t){var e=t.data.hostModel,i=e&&n.getViewOfSeriesModel(e),r=dh("update",e,0);i&&e.isAnimationEnabled()&&r&&r.duration>0&&i.group.traverse((function(t){t instanceof Cs&&!t.animators.length&&t.animateFrom({style:{opacity:0}},r)}))}))}function OF(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function RF(t){return H(t)?t.sort().join(","):t}function NF(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function EF(t,e){for(var n=0;n<t.length;n++){if(null!=e.seriesIndex&&e.seriesIndex===t[n].seriesIndex||null!=e.seriesId&&e.seriesId===t[n].id)return n}}function zF(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){R(So(n.seriesTransition),(function(t){R(So(t.to),(function(t){for(var e=n.updatedSeries,i=0;i<e.length;i++)(null!=t.seriesIndex&&t.seriesIndex===e[i].seriesIndex||null!=t.seriesId&&t.seriesId===e[i].id)&&(e[i][yg]=!0)}))}))})),t.registerUpdateLifecycle("series:transition",(function(t,e,n){var i=IF(e);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var r=n.seriesTransition;if(r)R(So(r),(function(t){!function(t,e,n,i){var r=[],o=[];R(So(t.from),(function(t){var n=EF(e.oldSeries,t);n>=0&&r.push({dataGroupId:e.oldDataGroupIds[n],data:e.oldData[n],divide:NF(e.oldData[n]),groupIdDim:t.dimension})})),R(So(t.to),(function(t){var i=EF(n.updatedSeries,t);if(i>=0){var r=n.updatedSeries[i].getData();o.push({dataGroupId:e.oldDataGroupIds[i],data:r,divide:NF(r),groupIdDim:t.dimension})}})),r.length>0&&o.length>0&&PF(r,o,i)}(t,i,n,e)}));else{var o=function(t,e){var n=ft(),i=ft(),r=ft();return R(t.oldSeries,(function(e,n){var o=t.oldDataGroupIds[n],a=t.oldData[n],s=OF(e),l=RF(s);i.set(l,{dataGroupId:o,data:a}),H(s)&&R(s,(function(t){r.set(t,{key:l,dataGroupId:o,data:a})}))})),R(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),o=t.getData(),a=OF(t),s=RF(a),l=i.get(s);if(l)n.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:NF(l.data),data:l.data}],newSeries:[{dataGroupId:e,divide:NF(o),data:o}]});else if(H(a)){var u=[];R(a,(function(t){var e=i.get(t);e.data&&u.push({dataGroupId:e.dataGroupId,divide:NF(e.data),data:e.data})})),u.length&&n.set(s,{oldSeries:u,newSeries:[{dataGroupId:e,data:o,divide:NF(o)}]})}else{var h=r.get(a);if(h){var c=n.get(h.key);c||(c={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:NF(h.data)}],newSeries:[]},n.set(h.key,c)),c.newSeries.push({dataGroupId:e,data:o,divide:NF(o)})}}}})),n}(i,n);R(o.keys(),(function(t){var n=o.get(t);PF(n.oldSeries,n.newSeries,e)}))}R(n.updatedSeries,(function(t){t[yg]&&(t[yg]=!1)}))}for(var a=t.getSeries(),s=i.oldSeries=[],l=i.oldDataGroupIds=[],u=i.oldData=[],h=0;h<a.length;h++){var c=a[h].getData();c.count()<1e4&&(s.push(a[h]),l.push(a[h].get("dataGroupId")),u.push(c))}}))}var VF=Math.sin,BF=Math.cos,GF=Math.PI,FF=2*Math.PI,HF=180/GF,WF=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,i,r,o){this._add("C",t,e,n,i,r,o)},t.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},t.prototype.arc=function(t,e,n,i,r,o){this.ellipse(t,e,n,n,0,i,r,o)},t.prototype.ellipse=function(t,e,n,i,r,o,a,s){var l=a-o,u=!s,h=Math.abs(l),c=hi(h-FF)||(u?l>=FF:-l>=FF),d=l>0?l%FF:l%FF+FF,p=!1;p=!!c||!hi(h)&&d>=GF==!!u;var f=t+n*BF(o),g=e+i*VF(o);this._start&&this._add("M",f,g);var v=Math.round(r*HF);if(c){var m=1/this._p,y=(u?1:-1)*(FF-m);this._add("A",n,i,v,1,+u,t+n*BF(o+y),e+i*VF(o+y)),m>.01&&this._add("A",n,i,v,0,+u,f,g)}else{var x=t+n*BF(a),_=e+i*VF(a);this._add("A",n,i,v,+p,+u,x,_)}},t.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,i,r,o,a,s,l){for(var u=[],h=this._p,c=1;c<arguments.length;c++){var d=arguments[c];if(isNaN(d))return void(this._invalid=!0);u.push(Math.round(d*h)/h)}this._d.push(t+u.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}(),UF="none",YF=Math.round;var ZF=["lineCap","miterLimit","lineJoin"],XF=N(ZF,(function(t){return"stroke-"+t.toLowerCase()}));function jF(t,e,n,i){var r=null==e.opacity?1:e.opacity;if(n instanceof Ps)t("opacity",r);else{if(function(t){var e=t.fill;return null!=e&&e!==UF}(e)){var o=li(e.fill);t("fill",o.color);var a=null!=e.fillOpacity?e.fillOpacity*o.opacity*r:o.opacity*r;a<1&&t("fill-opacity",a)}else t("fill",UF);if(function(t){var e=t.stroke;return null!=e&&e!==UF}(e)){var s=li(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*r:s.opacity*r,c=e.strokeFirst;if(1!==u&&t("stroke-width",u),c&&t("paint-order",c?"stroke":"fill"),h<1&&t("stroke-opacity",h),e.lineDash){var d=Kv(n),p=d[0],f=d[1];p&&(f=YF(f||0),t("stroke-dasharray",p.join(",")),(f||i)&&t("stroke-dashoffset",f))}for(var g=0;g<ZF.length;g++){var v=ZF[g];if(e[v]!==Ms[v]){var m=e[v]||Ms[v];m&&t(XF[g],m)}}}}}var qF="http://www.w3.org/2000/svg",KF="http://www.w3.org/1999/xlink",$F="ecmeta_";function JF(t){return document.createElementNS(qF,t)}function QF(t,e,n,i,r){return{tag:t,attrs:n||{},children:i,text:r,key:e}}function tH(t,e){var n=(e=e||{}).newline?"\n":"";return function t(e){var i=e.children,r=e.tag,o=e.attrs,a=e.text;return function(t,e){var n=[];if(e)for(var i in e){var r=e[i],o=i;!1!==r&&(!0!==r&&null!=r&&(o+='="'+r+'"'),n.push(o))}return"<"+t+" "+n.join(" ")+">"}(r,o)+("style"!==r?ne(a):a||"")+(i?""+n+N(i,(function(e){return t(e)})).join(n)+n:"")+("</"+r+">")}(t)}function eH(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function nH(t,e,n,i){return QF("svg","root",{width:t,height:e,xmlns:qF,"xmlns:xlink":KF,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var iH=0;function rH(){return iH++}var oH={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"},aH="transform-origin";function sH(t,e,n){var i=C({},t.shape);C(i,e),t.buildPath(n,i);var r=new WF;return r.reset(_i(t)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}function lH(t,e){var n=e.originX,i=e.originY;(n||i)&&(t[aH]=n+"px "+i+"px")}var uH={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function hH(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function cH(t){return U(t)?oH[t]?"cubic-bezier("+oH[t]+")":Ln(t)?t:"":""}function dH(t,e,n,i){var r=t.animators,o=r.length,a=[];if(t instanceof th){var s=function(t,e,n){var i,r,o=t.shape.paths,a={};if(R(o,(function(t){var e=eH(n.zrId);e.animation=!0,dH(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=B(o),u=l.length;if(u){var h=o[r=l[u-1]];for(var c in h){var d=h[c];a[c]=a[c]||{d:""},a[c].d+=d.d||""}for(var p in s){var f=s[p].animation;f.indexOf(r)>=0&&(i=f)}}})),i){e.d=!1;var s=hH(a,n);return i.replace(r,s)}}(t,e,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u<o;u++){var h=r[u],c=[h.getMaxTime()/1e3+"s"],d=cH(h.getClip().easing),p=h.getDelay();d?c.push(d):c.push("linear"),p&&c.push(p/1e3+"s"),h.getLoop()&&c.push("infinite");var f=c.join(" ");l[f]=l[f]||[f,[]],l[f][1].push(h)}function g(r){var o,a=r[1],s=a.length,l={},u={},h={},c="animation-timing-function";function d(t,e,n){for(var i=t.getTracks(),r=t.getMaxTime(),o=0;o<i.length;o++){var a=i[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],d=Math.round(h.time/r*100)+"%",p=cH(h.easing),f=h.rawValue;(U(f)||Z(f))&&(e[d]=e[d]||{},e[d][l]=h.rawValue,p&&(e[d][c]=p))}}}}for(var p=0;p<s;p++){(S=(w=a[p]).targetName)?"shape"===S&&d(w,u):!i&&d(w,l)}for(var f in l){var g={};mr(g,t),C(g,l[f]);var v=bi(g),m=l[f][c];h[f]=v?{transform:v}:{},lH(h[f],g),m&&(h[f][c]=m)}var y=!0;for(var f in u){h[f]=h[f]||{};var x=!o;m=u[f][c];x&&(o=new ss);var _=o.len();o.reset(),h[f].d=sH(t,u[f],o);var b=o.len();if(!x&&_!==b){y=!1;break}m&&(h[f][c]=m)}if(!y)for(var f in h)delete h[f].d;if(!i)for(p=0;p<s;p++){var w,S;"style"===(S=(w=a[p]).targetName)&&d(w,h,(function(t){return uH[t]}))}var M,I=B(h),T=!0;for(p=1;p<I.length;p++){var A=I[p-1],D=I[p];if(h[A][aH]!==h[D][aH]){T=!1;break}M=h[A][aH]}if(T&&M){for(var f in h)h[f][aH]&&delete h[f][aH];e[aH]=M}if(z(I,(function(t){return B(h[t]).length>0})).length)return hH(h,n)+" "+r[0]+" both"}for(var v in l){(s=g(l[v]))&&a.push(s)}if(a.length){var m=n.zrId+"-cls-"+rH();n.cssNodes["."+m]={animation:a.join(",")},e.class=m}}function pH(t,e,n,i){var r=JSON.stringify(t),o=n.cssStyleCache[r];o||(o=n.zrId+"-cls-"+rH(),n.cssStyleCache[r]=o,n.cssNodes["."+o+":hover"]=t),e.class=e.class?e.class+" "+o:o}var fH=Math.round;function gH(t){return t&&U(t.src)}function vH(t){return t&&W(t.toDataURL)}function mH(t,e,n,i){jF((function(r,o){var a="fill"===r||"stroke"===r;a&&yi(o)?AH(e,t,r,i):a&&gi(o)?DH(n,t,r,i):t[r]=o,a&&i.ssr&&"none"===o&&(t["pointer-events"]="visible")}),e,n,!1),function(t,e,n){var i=t.style;if(function(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}(i)){var r=function(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(",")}(t),o=n.shadowCache,a=o[r];if(!a){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var h=i.shadowOffsetX||0,c=i.shadowOffsetY||0,d=i.shadowBlur,p=li(i.shadowColor),f=p.opacity,g=p.color,v=d/2/l+" "+d/2/u;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=QF("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[QF("feDropShadow","",{dx:h/l,dy:c/u,stdDeviation:v,"flood-color":g,"flood-opacity":f})]),o[r]=a}e.filter=xi(a)}}(n,t,i)}function yH(t,e){var n=Ur(e);n&&(n.each((function(e,n){null!=e&&(t[($F+n).toLowerCase()]=e+"")})),e.isSilent()&&(t[$F+"silent"]="true"))}function xH(t){return hi(t[0]-1)&&hi(t[1])&&hi(t[2])&&hi(t[3]-1)}function _H(t,e,n){if(e&&(!function(t){return hi(t[4])&&hi(t[5])}(e)||!xH(e))){var i=1e4;t.transform=xH(e)?"translate("+fH(e[4]*i)/i+" "+fH(e[5]*i)/i+")":function(t){return"matrix("+ci(t[0])+","+ci(t[1])+","+ci(t[2])+","+ci(t[3])+","+di(t[4])+","+di(t[5])+")"}(e)}}function bH(t,e,n){for(var i=t.points,r=[],o=0;o<i.length;o++)r.push(fH(i[o][0]*n)/n),r.push(fH(i[o][1]*n)/n);e.points=r.join(" ")}function wH(t){return!t.smooth}var SH,MH,IH={circle:[(SH=["cx","cy","r"],MH=N(SH,(function(t){return"string"==typeof t?[t,t]:t})),function(t,e,n){for(var i=0;i<MH.length;i++){var r=MH[i],o=t[r[0]];null!=o&&(e[r[1]]=fH(o*n)/n)}})],polyline:[bH,wH],polygon:[bH,wH]};function TH(t,e){var n=t.style,i=t.shape,r=IH[t.type],o={},a=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&_i(t)||4;if(!r||e.willUpdate||r[1]&&!r[1](i)||a&&function(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return!0;return!1}(t)||l<1){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 d=c.getVersion(),p=t,f=p.__svgPathBuilder;p.__svgPathVersion===d&&f&&l===p.__svgPathStrokePercent||(f||(f=p.__svgPathBuilder=new WF),f.reset(u),c.rebuildPath(f,l),f.generateStr(),p.__svgPathVersion=d,p.__svgPathStrokePercent=l),o.d=f.getStr()}else{s=t.type;var g=Math.pow(10,u);r[0](i,o,g)}return _H(o,t.transform),mH(o,n,t,e),yH(o,t),e.animation&&dH(t,o,e),e.emphasis&&function(t,e,n){if(!t.ignore)if(t.isSilent())pH(u={"pointer-events":"none"},e,n);else{var i=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},r=i.fill;if(!r){var o=t.style&&t.style.fill,a=t.states.select&&t.states.select.style&&t.states.select.style.fill,s=t.currentStates.indexOf("select")>=0&&a||o;s&&(r=oi(s))}var l=i.lineWidth;l&&(l/=!i.strokeNoScale&&t.transform?t.transform[0]:1);var u={cursor:"pointer"};r&&(u.fill=r),i.stroke&&(u.stroke=i.stroke),l&&(u["stroke-width"]=l),pH(u,e,n)}}(t,o,e),QF(s,t.id+"",o)}function CH(t,e){return t instanceof Cs?TH(t,e):t instanceof Ps?function(t,e){var n=t.style,i=n.image;if(i&&!U(i)&&(gH(i)?i=i.src:vH(i)&&(i=i.toDataURL())),i){var r=n.x||0,o=n.y||0,a={href:i,width:n.width,height:n.height};return r&&(a.x=r),o&&(a.y=o),_H(a,t.transform),mH(a,n,t,e),yH(a,t),e.animation&&dH(t,a,e),QF("image",t.id+"",a)}}(t,e):t instanceof Ds?function(t,e){var n=t.style,i=n.text;if(null!=i&&(i+=""),i&&!isNaN(n.x)&&!isNaN(n.y)){var r=n.font||a,s=n.x||0,l=function(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}(n.y||0,Mr(r),n.textBaseline),u={"dominant-baseline":"central","text-anchor":pi[n.textAlign]||n.textAlign};if(js(n)){var h="",c=n.fontStyle,d=Zs(n.fontSize);if(!parseFloat(d))return;var p=n.fontFamily||o,f=n.fontWeight;h+="font-size:"+d+";font-family:"+p+";",c&&"normal"!==c&&(h+="font-style:"+c+";"),f&&"normal"!==f&&(h+="font-weight:"+f+";"),u.style=h}else u.style="font: "+r;return i.match(/\s/)&&(u["xml:space"]="preserve"),s&&(u.x=s),l&&(u.y=l),_H(u,t.transform),mH(u,n,t,e),yH(u,t),e.animation&&dH(t,u,e),QF("text",t.id+"",u,void 0,i)}}(t,e):void 0}function AH(t,e,n,i){var r,o=t[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(vi(o))r="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!mi(o))return;r="radialGradient",a.cx=nt(o.x,.5),a.cy=nt(o.y,.5),a.r=nt(o.r,.5)}for(var s=o.colorStops,l=[],u=0,h=s.length;u<h;++u){var c=100*di(s[u].offset)+"%",d=li(s[u].color),p=d.color,f=d.opacity,g={offset:c};g["stop-color"]=p,f<1&&(g["stop-opacity"]=f),l.push(QF("stop",u+"",g))}var v=tH(QF(r,"",a,l)),m=i.gradientCache,y=m[v];y||(y=i.zrId+"-g"+i.gradientIdx++,m[v]=y,a.id=y,i.defs[y]=QF(r,y,a,l)),e[n]=xi(y)}function DH(t,e,n,i){var r,o=t.style[n],a=t.getBoundingRect(),s={},l=o.repeat,u="no-repeat"===l,h="repeat-x"===l,c="repeat-y"===l;if(fi(o)){var d=o.imageWidth,p=o.imageHeight,f=void 0,g=o.image;if(U(g)?f=g:gH(g)?f=g.src:vH(g)&&(f=g.toDataURL()),"undefined"==typeof Image){var v="Image width/height must been given explictly in svg-ssr renderer.";at(d,v),at(p,v)}else if(null==d||null==p){var m=function(t,e){if(t){var n=t.elm,i=d||e.width,r=p||e.height;"pattern"===t.tag&&(h?(r=1,i/=a.width):c&&(i=1,r/=a.height)),t.attrs.width=i,t.attrs.height=r,n&&(n.setAttribute("width",i),n.setAttribute("height",r))}},y=oa(f,null,t,(function(t){u||m(w,t),m(r,t)}));y&&y.width&&y.height&&(d=d||y.width,p=p||y.height)}r=QF("image","img",{href:f,width:d,height:p}),s.width=d,s.height=p}else o.svgElement&&(r=M(o.svgElement),s.width=o.svgWidth,s.height=o.svgHeight);if(r){var x,_;u?x=_=1:h?(_=1,x=s.width/a.width):c?(x=1,_=s.height/a.height):s.patternUnits="userSpaceOnUse",null==x||isNaN(x)||(s.width=x),null==_||isNaN(_)||(s.height=_);var b=bi(o);b&&(s.patternTransform=b);var w=QF("pattern","",s,[r]),S=tH(w),I=i.patternCache,T=I[S];T||(T=i.zrId+"-p"+i.patternIdx++,I[S]=T,s.id=T,w=i.defs[T]=QF("pattern",T,s,[r])),e[n]=xi(T)}}function LH(t,e,n){var i=n.clipPathCache,r=n.defs,o=i[t.id];if(!o){var a={id:o=n.zrId+"-c"+n.clipPathIdx++};i[t.id]=o,r[o]=QF("clipPath",o,a,[TH(t,n)])}e["clip-path"]=xi(o)}function kH(t){return document.createTextNode(t)}function PH(t,e,n){t.insertBefore(e,n)}function OH(t,e){t.removeChild(e)}function RH(t,e){t.appendChild(e)}function NH(t){return t.parentNode}function EH(t){return t.nextSibling}function zH(t,e){t.textContent=e}var VH=QF("","");function BH(t){return void 0===t}function GH(t){return void 0!==t}function FH(t,e,n){for(var i={},r=e;r<=n;++r){var o=t[r].key;void 0!==o&&(i[o]=r)}return i}function HH(t,e){var n=t.key===e.key;return t.tag===e.tag&&n}function WH(t){var e,n=t.children,i=t.tag;if(GH(i)){var r=t.elm=JF(i);if(ZH(VH,t),H(n))for(e=0;e<n.length;++e){var o=n[e];null!=o&&RH(r,WH(o))}else GH(t.text)&&!X(t.text)&&RH(r,kH(t.text))}else t.elm=kH(t.text);return t.elm}function UH(t,e,n,i,r){for(;i<=r;++i){var o=n[i];null!=o&&PH(t,WH(o),e)}}function YH(t,e,n,i){for(;n<=i;++n){var r=e[n];if(null!=r)if(GH(r.tag))OH(NH(r.elm),r.elm);else OH(t,r.elm)}}function ZH(t,e){var n,i=e.elm,r=t&&t.attrs||{},o=e.attrs||{};if(r!==o){for(n in o){var a=o[n];r[n]!==a&&(!0===a?i.setAttribute(n,""):!1===a?i.removeAttribute(n):"style"===n?i.style.cssText=a:120!==n.charCodeAt(0)?i.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS("http://www.w3.org/2000/xmlns/",n,a):58===n.charCodeAt(3)?i.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,a):58===n.charCodeAt(5)?i.setAttributeNS(KF,n,a):i.setAttribute(n,a))}for(n in r)n in o||i.removeAttribute(n)}}function XH(t,e){var n=e.elm=t.elm,i=t.children,r=e.children;t!==e&&(ZH(t,e),BH(e.text)?GH(i)&&GH(r)?i!==r&&function(t,e,n){for(var i,r,o,a=0,s=0,l=e.length-1,u=e[0],h=e[l],c=n.length-1,d=n[0],p=n[c];a<=l&&s<=c;)null==u?u=e[++a]:null==h?h=e[--l]:null==d?d=n[++s]:null==p?p=n[--c]:HH(u,d)?(XH(u,d),u=e[++a],d=n[++s]):HH(h,p)?(XH(h,p),h=e[--l],p=n[--c]):HH(u,p)?(XH(u,p),PH(t,u.elm,EH(h.elm)),u=e[++a],p=n[--c]):HH(h,d)?(XH(h,d),PH(t,h.elm,u.elm),h=e[--l],d=n[++s]):(BH(i)&&(i=FH(e,a,l)),BH(r=i[d.key])||(o=e[r]).tag!==d.tag?PH(t,WH(d),u.elm):(XH(o,d),e[r]=void 0,PH(t,o.elm,u.elm)),d=n[++s]);(a<=l||s<=c)&&(a>l?UH(t,null==n[c+1]?null:n[c+1].elm,n,s,c):YH(t,e,a,l))}(n,i,r):GH(r)?(GH(t.text)&&zH(n,""),UH(n,null,r,0,r.length-1)):GH(i)?YH(n,i,0,i.length-1):GH(t.text)&&zH(n,""):t.text!==e.text&&(GH(i)&&YH(n,i,0,i.length-1),zH(n,e.text)))}var jH=0,qH=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=function(){},this.configLayer=function(){},this.storage=e,this._opts=n=C({},n),this.root=t,this._id="zr"+jH++,this._oldVNode=nH(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=JF("svg");ZH(null,this._oldVNode),i.appendChild(r),t.appendChild(i)}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();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||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",function(t,e){if(HH(t,e))XH(t,e);else{var n=t.elm,i=NH(n);WH(e),null!==i&&(PH(i,e.elm,EH(n)),YH(i,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return CH(t,eH(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,i=this._height,r=eH(this._id);r.animation=t.animation,r.willUpdate=t.willUpdate,r.compress=t.compress,r.emphasis=t.emphasis,r.ssr=this._opts.ssr;var o=[],a=this._bgVNode=function(t,e,n,i){var r;if(n&&"none"!==n)if(r=QF("rect","bg",{width:t,height:e,x:"0",y:"0"}),yi(n))AH({fill:n},r.attrs,"fill",i);else if(gi(n))DH({style:{fill:n},dirty:xt,getBoundingRect:function(){return{width:t,height:e}}},r.attrs,"fill",i);else{var o=li(n),a=o.color,s=o.opacity;r.attrs.fill=a,s<1&&(r.attrs["fill-opacity"]=s)}return r}(n,i,this._backgroundColor,r);a&&o.push(a);var s=t.compress?null:this._mainVNode=QF("g","main",{},[]);this._paintList(e,r,s?s.children:o),s&&o.push(s);var l=N(B(r.defs),(function(t){return r.defs[t]}));if(l.length&&o.push(QF("defs","defs",{},l)),t.animation){var u=function(t,e,n){var i=(n=n||{}).newline?"\n":"",r=" {"+i,o=i+"}",a=N(B(t),(function(e){return e+r+N(B(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(i)+o})).join(i),s=N(B(e),(function(t){return"@keyframes "+t+r+N(B(e[t]),(function(n){return n+r+N(B(e[t][n]),(function(i){var r=e[t][n][i];return"d"===i&&(r='path("'+r+'")'),i+":"+r+";"})).join(i)+o})).join(i)+o})).join(i);return a||s?["<![CDATA[",a,s,"]]>"].join(i):""}(r.cssNodes,r.cssAnims,{newline:!0});if(u){var h=QF("style","stl",{},[],u);o.push(h)}}return nH(n,i,o,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},tH(this.renderToVNode({animation:nt(t.cssAnimation,!0),emphasis:nt(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:nt(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 i,r,o=t.length,a=[],s=0,l=0,u=0;u<o;u++){var h=t[u];if(!h.invisible){var c=h.__clipPaths,d=c&&c.length||0,p=r&&r.length||0,f=void 0;for(f=Math.max(d-1,p-1);f>=0&&(!c||!r||c[f]!==r[f]);f--);for(var g=p-1;g>f;g--)i=a[--s-1];for(var v=f+1;v<d;v++){var m={};LH(c[v],m,e);var y=QF("g","clip-g-"+l++,m,[]);(i?i.children:n).push(y),a[s++]=y,i=y}r=c;var x=CH(h,e);x&&(i?i.children:n).push(x)}}},t.prototype.resize=function(t,e){var n=this._opts,i=this.root,r=this._viewport;if(null!=t&&(n.width=t),null!=e&&(n.height=e),i&&r&&(r.style.display="none",t=qv(i,0,n),e=qv(i,1,n),r.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,r){var o=r.style;o.width=t+"px",o.height=e+"px"}if(gi(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=wi(e))&&n+"base64,"+e:n+"charset=UTF-8,"+encodeURIComponent(e)},t}();var KH,$H={},JH={},QH={};function tW(){if(KH)return QH;var e;KH=1,"undefined"!=typeof window?e=window.__DEV__:void 0!==t&&(e=t.__DEV__),void 0===e&&(e=!0);var n=e;return QH.__DEV__=n,QH}var eW,nW,iW,rW,oW={};function aW(){if(nW)return eW;nW=1;var t=2311;return eW=function(){return t++}}function sW(){if(rW)return iW;rW=1;var t={};return t="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:"undefined"==typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:function(t){var e={},n={},i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]);r&&(n.ie=!0,n.version=r[1]);o&&(n.edge=!0,n.version=o[1]);a&&(n.weChat=!0);return{browser:n,os:e,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!=typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!n.ie&&!n.edge,pointerEventsSupported:"onpointerdown"in window&&(n.edge||n.ie&&n.version>=11),domSupported:"undefined"!=typeof document}}(navigator.userAgent),iW=t}var lW,uW={};function hW(){if(lW)return uW;lW=1;var t={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},e={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},n=Object.prototype.toString,i=Array.prototype,r=i.forEach,o=i.filter,a=i.slice,s=i.map,l=i.reduce,u={};function h(i){if(null==i||"object"!=typeof i)return i;var r=i,o=n.call(i);if("[object Array]"===o){if(!w(i)){r=[];for(var a=0,s=i.length;a<s;a++)r[a]=h(i[a])}}else if(e[o]){if(!w(i)){var l=i.constructor;if(i.constructor.from)r=l.from(i);else{r=new l(i.length);for(a=0,s=i.length;a<s;a++)r[a]=h(i[a])}}}else if(!t[o]&&!w(i)&&!_(i))for(var u in r={},i)i.hasOwnProperty(u)&&(r[u]=h(i[u]));return r}function c(t,e,n){if(!y(e)||!y(t))return n?h(e):t;for(var i in e)if(e.hasOwnProperty(i)){var r=t[i],o=e[i];!y(o)||!y(r)||m(o)||m(r)||_(o)||_(r)||x(o)||x(r)||w(o)||w(r)?!n&&i in t||(t[i]=h(e[i])):c(r,o,n)}return t}function d(t,e,n){for(var i in e)e.hasOwnProperty(i)&&(n?null!=e[i]:null==t[i])&&(t[i]=e[i]);return t}var p,f=function(){return u.createCanvas()};function g(t,e,n){if(t&&e)if(t.forEach&&t.forEach===r)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,o=t.length;i<o;i++)e.call(n,t[i],i,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(n,t[a],a,t)}function v(t,e){var n=a.call(arguments,2);return function(){return t.apply(e,n.concat(a.call(arguments)))}}function m(t){return"[object Array]"===n.call(t)}function y(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function x(e){return!!t[n.call(e)]}function _(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}u.createCanvas=function(){return document.createElement("canvas")};var b="__ec_primitive__";function w(t){return t[b]}function S(t){var e=m(t);this.data={};var n=this;function i(t,i){e?n.set(t,i):n.set(i,t)}t instanceof S?t.each(i):t&&g(t,i)}return S.prototype={constructor:S,get:function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},set:function(t,e){return this.data[t]=e},each:function(t,e){for(var n in void 0!==e&&(t=v(t,e)),this.data)this.data.hasOwnProperty(n)&&t(this.data[n],n)},removeKey:function(t){delete this.data[t]}},uW.$override=function(t,e){"createCanvas"===t&&(p=null),u[t]=e},uW.clone=h,uW.merge=c,uW.mergeAll=function(t,e){for(var n=t[0],i=1,r=t.length;i<r;i++)n=c(n,t[i],e);return n},uW.extend=function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},uW.defaults=d,uW.createCanvas=f,uW.getContext=function(){return p||(p=f().getContext("2d")),p},uW.indexOf=function(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1},uW.inherits=function(t,e){var n=t.prototype;function i(){}for(var r in i.prototype=e.prototype,t.prototype=new i,n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e},uW.mixin=function(t,e,n){d(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,n)},uW.isArrayLike=function(t){if(t)return"string"!=typeof t&&"number"==typeof t.length},uW.each=g,uW.map=function(t,e,n){if(t&&e){if(t.map&&t.map===s)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}},uW.reduce=function(t,e,n,i){if(t&&e){if(t.reduce&&t.reduce===l)return t.reduce(e,n,i);for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}},uW.filter=function(t,e,n){if(t&&e){if(t.filter&&t.filter===o)return t.filter(e,n);for(var i=[],r=0,a=t.length;r<a;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}},uW.find=function(t,e,n){if(t&&e)for(var i=0,r=t.length;i<r;i++)if(e.call(n,t[i],i,t))return t[i]},uW.bind=v,uW.curry=function(t){var e=a.call(arguments,1);return function(){return t.apply(this,e.concat(a.call(arguments)))}},uW.isArray=m,uW.isFunction=function(t){return"function"==typeof t},uW.isString=function(t){return"[object String]"===n.call(t)},uW.isObject=y,uW.isBuiltInObject=x,uW.isTypedArray=function(t){return!!e[n.call(t)]},uW.isDom=_,uW.eqNaN=function(t){return t!=t},uW.retrieve=function(t){for(var e=0,n=arguments.length;e<n;e++)if(null!=arguments[e])return arguments[e]},uW.retrieve2=function(t,e){return null!=t?t:e},uW.retrieve3=function(t,e,n){return null!=t?t:null!=e?e:n},uW.slice=function(){return Function.call.apply(a,arguments)},uW.normalizeCssArray=function(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},uW.assert=function(t,e){if(!t)throw new Error(e)},uW.trim=function(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},uW.setAsPrimitive=function(t){t[b]=!0},uW.isPrimitive=w,uW.createHashMap=function(t){return new S(t)},uW.concatArray=function(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var r=t.length;for(i=0;i<e.length;i++)n[i+r]=e[i];return n},uW.noop=function(){},uW}var cW,dW,pW,fW,gW,vW={};function mW(){if(cW)return vW;cW=1;var t="undefined"==typeof Float32Array?Array:Float32Array;function e(t){return Math.sqrt(i(t))}var n=e;function i(t){return t[0]*t[0]+t[1]*t[1]}var r=i;function o(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var a=o;function s(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var l=s;return vW.create=function(e,n){var i=new t(2);return null==e&&(e=0),null==n&&(n=0),i[0]=e,i[1]=n,i},vW.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},vW.clone=function(e){var n=new t(2);return n[0]=e[0],n[1]=e[1],n},vW.set=function(t,e,n){return t[0]=e,t[1]=n,t},vW.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},vW.scaleAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},vW.sub=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t},vW.len=e,vW.length=n,vW.lenSquare=i,vW.lengthSquare=r,vW.mul=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},vW.div=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},vW.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},vW.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},vW.normalize=function(t,n){var i=e(n);return 0===i?(t[0]=0,t[1]=0):(t[0]=n[0]/i,t[1]=n[1]/i),t},vW.distance=o,vW.dist=a,vW.distanceSquare=s,vW.distSquare=l,vW.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},vW.lerp=function(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t},vW.applyTransform=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t},vW.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},vW.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},vW}function yW(){if(gW)return fW;gW=1;var t=Array.prototype.slice,e=function(t){this._$handlers={},this._$eventProcessor=t};function n(t,e,n,i,r,o){var a=t._$handlers;if("function"==typeof n&&(r=i,i=n,n=null),!i||!e)return t;n=function(t,e){var n=t._$eventProcessor;return null!=e&&n&&n.normalizeQuery&&(e=n.normalizeQuery(e)),e}(t,n),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===i)return t;var l={h:i,one:o,query:n,ctx:r||t,callAtLast:i.zrEventfulCallAtLast},u=a[e].length-1,h=a[e][u];return h&&h.callAtLast?a[e].splice(u,0,l):a[e].push(l),t}return e.prototype={constructor:e,one:function(t,e,i,r){return n(this,t,e,i,r,!0)},on:function(t,e,i,r){return n(this,t,e,i,r,!1)},isSilent:function(t){var e=this._$handlers;return!e[t]||!e[t].length},off:function(t,e){var n=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},trigger:function(e){var n=this._$handlers[e],i=this._$eventProcessor;if(n){var r=arguments,o=r.length;o>3&&(r=t.call(r,1));for(var a=n.length,s=0;s<a;){var l=n[s];if(i&&i.filter&&null!=l.query&&!i.filter(e,l.query))s++;else{switch(o){case 1:l.h.call(l.ctx);break;case 2:l.h.call(l.ctx,r[1]);break;case 3:l.h.call(l.ctx,r[1],r[2]);break;default:l.h.apply(l.ctx,r)}l.one?(n.splice(s,1),a--):s++}}}return i&&i.afterTrigger&&i.afterTrigger(e),this},triggerWithContext:function(e){var n=this._$handlers[e],i=this._$eventProcessor;if(n){var r=arguments,o=r.length;o>4&&(r=t.call(r,1,r.length-1));for(var a=r[r.length-1],s=n.length,l=0;l<s;){var u=n[l];if(i&&i.filter&&null!=u.query&&!i.filter(e,u.query))l++;else{switch(o){case 1:u.h.call(a);break;case 2:u.h.call(a,r[1]);break;case 3:u.h.call(a,r[1],r[2]);break;default:u.h.apply(a,r)}u.one?(n.splice(l,1),s--):l++}}}return i&&i.afterTrigger&&i.afterTrigger(e),this}},fW=e}var xW,_W,bW,wW,SW,MW,IW,TW={},CW={},AW={};function DW(){if(_W)return CW;_W=1;var t=sW(),e=function(){if(xW)return AW;xW=1;var t=Math.log(2);function e(n,i,r,o,a,s){var l=o+"-"+a,u=n.length;if(s.hasOwnProperty(l))return s[l];if(1===i){var h=Math.round(Math.log((1<<u)-1&~a)/t);return n[r][h]}for(var c=o|1<<r,d=r+1;o&1<<d;)d++;for(var p=0,f=0,g=0;f<u;f++){var v=1<<f;v&a||(p+=(g%2?-1:1)*n[r][f]*e(n,i-1,d,c,a|v,s),g++)}return s[l]=p,p}return AW.buildTransformer=function(t,n){var i=[[t[0],t[1],1,0,0,0,-n[0]*t[0],-n[0]*t[1]],[0,0,0,t[0],t[1],1,-n[1]*t[0],-n[1]*t[1]],[t[2],t[3],1,0,0,0,-n[2]*t[2],-n[2]*t[3]],[0,0,0,t[2],t[3],1,-n[3]*t[2],-n[3]*t[3]],[t[4],t[5],1,0,0,0,-n[4]*t[4],-n[4]*t[5]],[0,0,0,t[4],t[5],1,-n[5]*t[4],-n[5]*t[5]],[t[6],t[7],1,0,0,0,-n[6]*t[6],-n[6]*t[7]],[0,0,0,t[6],t[7],1,-n[7]*t[6],-n[7]*t[7]]],r={},o=e(i,8,0,0,0,r);if(0!==o){for(var a=[],s=0;s<8;s++)for(var l=0;l<8;l++)null==a[l]&&(a[l]=0),a[l]+=((s+l)%2?-1:1)*e(i,7,0===s?1:0,1<<s,1<<l,r)/o*n[s];return function(t,e,n){var i=e*a[6]+n*a[7]+1;t[0]=(e*a[0]+n*a[1]+a[2])/i,t[1]=(e*a[3]+n*a[4]+a[5])/i}}},AW}(),n=e.buildTransformer,i="___zrEVENTSAVED",r=[];function o(e,r,o,s,l){if(r.getBoundingClientRect&&t.domSupported&&!a(r)){var u=r[i]||(r[i]={}),h=function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=o%2,l=(o>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(r,u),c=function(t,e,i){for(var r=i?"invTrans":"trans",o=e[r],a=e.srcCoords,s=!0,l=[],u=[],h=0;h<4;h++){var c=t[h].getBoundingClientRect(),d=2*h,p=c.left,f=c.top;l.push(p,f),s=s&&a&&p===a[d]&&f===a[d+1],u.push(t[h].offsetLeft,t[h].offsetTop)}return s&&o?o:(e.srcCoords=l,e[r]=i?n(u,l):n(l,u))}(h,u,l);if(c)return c(e,o,s),!0}return!1}function a(t){return"CANVAS"===t.nodeName.toUpperCase()}return CW.transformLocalCoord=function(t,e,n,i,a){return o(r,e,i,a,!0)&&o(t,n,r[0],r[1])},CW.transformCoordWithViewport=o,CW.isCanvasEl=a,CW}function LW(){if(bW)return TW;bW=1;var t=yW();TW.Dispatcher=t;var e=sW(),n=DW(),i=n.isCanvasEl,r=n.transformCoordWithViewport,o="undefined"!=typeof window&&!!window.addEventListener,a=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,s=[];function l(t,n,i,r){return i=i||{},r||!e.canvasSupported?u(t,n,i):e.browser.firefox&&null!=n.layerX&&n.layerX!==n.offsetX?(i.zrX=n.layerX,i.zrY=n.layerY):null!=n.offsetX?(i.zrX=n.offsetX,i.zrY=n.offsetY):u(t,n,i),i}function u(t,n,o){if(e.domSupported&&t.getBoundingClientRect){var a=n.clientX,l=n.clientY;if(i(t)){var u=t.getBoundingClientRect();return o.zrX=a-u.left,void(o.zrY=l-u.top)}if(r(s,t,a,l))return o.zrX=s[0],void(o.zrY=s[1])}o.zrX=o.zrY=0}function h(t){return t||window.event}var c=o?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};return TW.clientToLocal=l,TW.getNativeEvent=h,TW.normalizeEvent=function(t,e,n){if(null!=(e=h(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&l(t,r,e,n)}else l(t,e,e,n),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var o=e.button;return null==e.which&&void 0!==o&&a.test(e.type)&&(e.which=1&o?1:2&o?3:4&o?2:0),e},TW.addEventListener=function(t,e,n,i){o?t.addEventListener(e,n,i):t.attachEvent("on"+e,n)},TW.removeEventListener=function(t,e,n,i){o?t.removeEventListener(e,n,i):t.detachEvent("on"+e,n)},TW.stop=c,TW.isMiddleOrRightButtonOnMouseUpDown=function(t){return 2===t.which||3===t.which},TW.notLeftMouse=function(t){return t.which>1},TW}function kW(){if(IW)return MW;IW=1;var t=hW(),e=mW(),n=function(){if(pW)return dW;function t(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}function e(t,e){return{target:t,topTarget:e&&e.topTarget}}return pW=1,t.prototype={constructor:t,_dragStart:function(t){for(var n=t.target;n&&!n.draggable;)n=n.parent;n&&(this._draggingTarget=n,n.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.dispatchToElement(e(n,t),"dragstart",t.event))},_drag:function(t){var n=this._draggingTarget;if(n){var i=t.offsetX,r=t.offsetY,o=i-this._x,a=r-this._y;this._x=i,this._y=r,n.drift(o,a,t),this.dispatchToElement(e(n,t),"drag",t.event);var s=this.findHover(i,r,n).target,l=this._dropTarget;this._dropTarget=s,n!==s&&(l&&s!==l&&this.dispatchToElement(e(l,t),"dragleave",t.event),s&&s!==l&&this.dispatchToElement(e(s,t),"dragenter",t.event))}},_dragEnd:function(t){var n=this._draggingTarget;n&&(n.dragging=!1),this.dispatchToElement(e(n,t),"dragend",t.event),this._dropTarget&&this.dispatchToElement(e(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null}},dW=t}(),i=yW(),r=LW(),o=function(){if(SW)return wW;SW=1;var t=LW(),e=function(){this._track=[]};function n(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}e.prototype={constructor:e,recognize:function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},clear:function(){return this._track.length=0,this},_doTrack:function(e,n,i){var r=e.touches;if(r){for(var o={points:[],touches:[],target:n,event:e},a=0,s=r.length;a<s;a++){var l=r[a],u=t.clientToLocal(i,l,{});o.points.push([u.zrX,u.zrY]),o.touches.push(l)}this._track.push(o)}},_recognize:function(t){for(var e in i)if(i.hasOwnProperty(e)){var n=i[e](this._track,t);if(n)return n}}};var i={pinch:function(t,e){var i=t.length;if(i){var r,o=(t[i-1]||{}).points,a=(t[i-2]||{}).points||o;if(a&&a.length>1&&o&&o.length>1){var s=n(o)/n(a);!isFinite(s)&&(s=1),e.pinchScale=s;var l=[((r=o)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return e.pinchX=l[0],e.pinchY=l[1],{type:"pinch",target:t[0].target,event:e}}}}};return wW=e}(),a="silent";function s(){r.stop(this.event)}function l(){}l.prototype.dispose=function(){};var u=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],h=function(t,e,r,o){i.call(this),this.storage=t,this.painter=e,this.painterRoot=o,r=r||new l,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,n.call(this),this.setHandlerProxy(r)};function c(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i,r=t;r;){if(r.clipPath&&!r.clipPath.contain(e,n))return!1;r.silent&&(i=!0),r=r.parent}return!i||a}return!1}function d(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}return h.prototype={constructor:h,setHandlerProxy:function(e){this.proxy&&this.proxy.dispose(),e&&(t.each(u,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},mousemove:function(t){var e=t.zrX,n=t.zrY,i=d(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?{x:e,y:n}:this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},mouseout:function(t){var e=t.zrEventControl,n=t.zrIsToLocalDOM;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&!n&&this.trigger("globalout",{type:"globalout",event:t})},resize:function(t){this._hovered={}},dispatch:function(t,e){var n=this[t];n&&n.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(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:s}}(e,t,n);i&&(i[r]&&(o.cancelBubble=i[r].call(i,o)),i.trigger(e,o),i=i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer((function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},findHover:function(t,e,n){for(var i=this.storage.getDisplayList(),r={x:t,y:e},o=i.length-1;o>=0;o--){var s;if(i[o]!==n&&!i[o].ignore&&(s=c(i[o],t,e))&&(!r.topTarget&&(r.topTarget=i[o]),s!==a)){r.target=i[o];break}}return r},processGesture:function(t,e){this._gestureMgr||(this._gestureMgr=new o);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r,this.dispatchToElement({target:i.target},r,i.event)}}},t.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){h.prototype[t]=function(n){var i,r,o=n.zrX,a=n.zrY,s=d(this,o,a);if("mouseup"===t&&s||(r=(i=this.findHover(o,a)).target),"mousedown"===t)this._downEl=r,this._downPoint=[n.zrX,n.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||e.dist(this._downPoint,[n.zrX,n.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,n)}})),t.mixin(h,i),t.mixin(h,n),MW=h}var PW,OW,RW,NW,EW,zW,VW,BW={};function GW(){if(PW)return BW;PW=1;var t="undefined"==typeof Float32Array?Array:Float32Array;function e(){var e=new t(6);return n(e),e}function n(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function i(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}return BW.create=e,BW.identity=n,BW.copy=i,BW.mul=function(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=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]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t},BW.translate=function(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},BW.rotate=function(t,e,n){var i=e[0],r=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]=i*h+a*u,t[1]=-i*u+a*h,t[2]=r*h+s*u,t[3]=-r*u+h*s,t[4]=h*o+u*l,t[5]=h*l-u*o,t},BW.scale=function(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t},BW.invert=function(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null},BW.clone=function(t){var n=e();return i(n,t),n},BW}function FW(){if(RW)return OW;RW=1;var t=GW(),e=mW(),n=t.identity,i=5e-5;function r(t){return t>i||t<-5e-5}var o=function(t){(t=t||{}).position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},a=o.prototype;a.transform=null,a.needLocalTransform=function(){return r(this.rotation)||r(this.position[0])||r(this.position[1])||r(this.scale[0]-1)||r(this.scale[1]-1)};var s=[];a.updateTransform=function(){var e=this.parent,i=e&&e.transform,r=this.needLocalTransform(),o=this.transform;if(r||i){o=o||t.create(),r?this.getLocalTransform(o):n(o),i&&(r?t.mul(o,e.transform,o):t.copy(o,e.transform)),this.transform=o;var a=this.globalScaleRatio;if(null!=a&&1!==a){this.getGlobalScale(s);var l=s[0]<0?-1:1,u=s[1]<0?-1:1,h=((s[0]-l)*a+l)/s[0]||0,c=((s[1]-u)*a+u)/s[1]||0;o[0]*=h,o[1]*=h,o[2]*=c,o[3]*=c}this.invTransform=this.invTransform||t.create(),t.invert(this.invTransform,o)}else o&&n(o)},a.getLocalTransform=function(t){return o.getLocalTransform(this,t)},a.setTransform=function(t){var e=this.transform,n=t.dpr||1;e?t.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):t.setTransform(n,0,0,n,0,0)},a.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var l=[],u=t.create();return a.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=this.position,o=this.scale;r(e-1)&&(e=Math.sqrt(e)),r(n-1)&&(n=Math.sqrt(n)),t[0]<0&&(e=-e),t[3]<0&&(n=-n),i[0]=t[4],i[1]=t[5],o[0]=e,o[1]=n,this.rotation=Math.atan2(-t[1]/n,t[0]/e)}},a.decomposeTransform=function(){if(this.transform){var e=this.parent,n=this.transform;e&&e.transform&&(t.mul(l,e.invTransform,n),n=l);var i=this.origin;i&&(i[0]||i[1])&&(u[4]=i[0],u[5]=i[1],t.mul(l,n,u),l[4]-=i[0],l[5]-=i[1],n=l),this.setLocalTransform(n)}},a.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)},a.transformCoordToLocal=function(t,n){var i=[t,n],r=this.invTransform;return r&&e.applyTransform(i,i,r),i},a.transformCoordToGlobal=function(t,n){var i=[t,n],r=this.transform;return r&&e.applyTransform(i,i,r),i},o.getLocalTransform=function(e,i){n(i=i||[]);var r=e.origin,o=e.scale||[1,1],a=e.rotation||0,s=e.position||[0,0];return r&&(i[4]-=r[0],i[5]-=r[1]),t.scale(i,i,o),a&&t.rotate(i,i,a),r&&(i[4]+=r[0],i[5]+=r[1]),i[4]+=s[0],i[5]+=s[1],i},OW=o}function HW(){if(VW)return zW;VW=1;var t=function(){if(EW)return NW;EW=1;var t={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*(2-Math.pow(2,-10*(t-1)))},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;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(e){return 1-t.bounceOut(1-e)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(e){return e<.5?.5*t.bounceIn(2*e):.5*t.bounceOut(2*e-1)+.5}};return NW=t}();function e(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart,this._pausedTime=0,this._paused=!1}return e.prototype={constructor:e,step:function(e,n){if(this._initialized||(this._startTime=e+this._delay,this._initialized=!0),this._paused)this._pausedTime+=n;else{var i=(e-this._startTime-this._pausedTime)/this._life;if(!(i<0)){i=Math.min(i,1);var r=this.easing,o="string"==typeof r?t[r]:r,a="function"==typeof o?o(i):i;return this.fire("frame",a),1===i?this.loop?(this.restart(e),"restart"):(this._needsRemove=!0,"destroy"):null}}},restart:function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(t,e){this[t="on"+t]&&this[t](this._target,e)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}},zW=e}var WW,UW,YW,ZW,XW,jW={};function qW(){if(UW)return WW;UW=1;var t=function(){this.head=null,this.tail=null,this._len=0},e=t.prototype;e.insert=function(t){var e=new n(t);return this.insertEntry(e),e},e.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++},e.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--},e.len=function(){return this._len},e.clear=function(){this.head=this.tail=null,this._len=0};var n=function(t){this.value=t,this.next,this.prev},i=function(e){this._list=new t,this._map={},this._maxSize=e||10,this._lastRemovedEntry=null},r=i.prototype;return r.put=function(t,e){var i=this._list,r=this._map,o=null;if(null==r[t]){var a=i.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=i.head;i.remove(l),delete r[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new n(e),s.key=t,i.insertEntry(s),r[t]=s}return o},r.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.clear=function(){this._list.clear(),this._map={}},WW=i}function KW(){if(YW)return jW;YW=1;var t=qW(),e={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]};function n(t){return(t=Math.round(t))<0?0:t>255?255:t}function i(t){return t<0?0:t>1?1:t}function r(t){return t.length&&"%"===t.charAt(t.length-1)?n(parseFloat(t)/100*255):n(parseInt(t,10))}function o(t){return t.length&&"%"===t.charAt(t.length-1)?i(parseFloat(t)/100):i(parseFloat(t))}function a(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function s(t,e,n){return t+(e-t)*n}function l(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var h=new t(20),c=null;function d(t,e){c&&u(c,e),c=h.put(t,c||e.slice())}function p(t,n){if(t){n=n||[];var i=h.get(t);if(i)return u(n,i);var a,s=(t+="").replace(/ /g,"").toLowerCase();if(s in e)return u(n,e[s]),d(t,n),n;if("#"===s.charAt(0))return 4===s.length?(a=parseInt(s.substr(1),16))>=0&&a<=4095?(l(n,(3840&a)>>4|(3840&a)>>8,240&a|(240&a)>>4,15&a|(15&a)<<4,1),d(t,n),n):void l(n,0,0,0,1):7===s.length?(a=parseInt(s.substr(1),16))>=0&&a<=16777215?(l(n,(16711680&a)>>16,(65280&a)>>8,255&a,1),d(t,n),n):void l(n,0,0,0,1):void 0;var c=s.indexOf("("),p=s.indexOf(")");if(-1!==c&&p+1===s.length){var g=s.substr(0,c),v=s.substr(c+1,p-(c+1)).split(","),m=1;switch(g){case"rgba":if(4!==v.length)return void l(n,0,0,0,1);m=o(v.pop());case"rgb":return 3!==v.length?void l(n,0,0,0,1):(l(n,r(v[0]),r(v[1]),r(v[2]),m),d(t,n),n);case"hsla":return 4!==v.length?void l(n,0,0,0,1):(v[3]=o(v[3]),f(v,n),d(t,n),n);case"hsl":return 3!==v.length?void l(n,0,0,0,1):(f(v,n),d(t,n),n);default:return}}l(n,0,0,0,1)}}function f(t,e){var i=(parseFloat(t[0])%360+360)%360/360,r=o(t[1]),s=o(t[2]),u=s<=.5?s*(r+1):s+r-s*r,h=2*s-u;return l(e=e||[],n(255*a(h,u,i+1/3)),n(255*a(h,u,i)),n(255*a(h,u,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function g(t,e,r){if(e&&e.length&&t>=0&&t<=1){r=r||[];var o=t*(e.length-1),a=Math.floor(o),l=Math.ceil(o),u=e[a],h=e[l],c=o-a;return r[0]=n(s(u[0],h[0],c)),r[1]=n(s(u[1],h[1],c)),r[2]=n(s(u[2],h[2],c)),r[3]=i(s(u[3],h[3],c)),r}}var v=g;function m(t,e,r){if(e&&e.length&&t>=0&&t<=1){var o=t*(e.length-1),a=Math.floor(o),l=Math.ceil(o),u=p(e[a]),h=p(e[l]),c=o-a,d=x([n(s(u[0],h[0],c)),n(s(u[1],h[1],c)),n(s(u[2],h[2],c)),i(s(u[3],h[3],c))],"rgba");return r?{color:d,leftIndex:a,rightIndex:l,value:o}:d}}var y=m;function x(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+")"}}return jW.parse=p,jW.lift=function(t,e){var n=p(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:t[i]<0&&(n[i]=0);return x(n,4===n.length?"rgba":"rgb")}},jW.toHex=function(t){var e=p(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)},jW.fastLerp=g,jW.fastMapToColor=v,jW.lerp=m,jW.mapToColor=y,jW.modifyHSL=function(t,e,n,i){if(t=p(t))return t=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?e=d-c:r===s?e=1/3+h-d:o===s&&(e=2/3+c-h),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}(t),null!=e&&(t[0]=function(t){return(t=Math.round(t))<0?0:t>360?360:t}(e)),null!=n&&(t[1]=o(n)),null!=i&&(t[2]=o(i)),x(f(t),"rgba")},jW.modifyAlpha=function(t,e){if((t=p(t))&&null!=e)return t[3]=i(e),x(t,"rgba")},jW.stringify=x,jW}function $W(){if(XW)return ZW;XW=1;var t=HW(),e=KW(),n=hW().isArrayLike,i=Array.prototype.slice;function r(t,e){return t[e]}function o(t,e,n){t[e]=n}function a(t,e,n){return(e-t)*n+t}function s(t,e,n){return n>.5?e:t}function l(t,e,n,i,r){var o=t.length;if(1===r)for(var s=0;s<o;s++)i[s]=a(t[s],e[s],n);else{var l=o&&t[0].length;for(s=0;s<o;s++)for(var u=0;u<l;u++)i[s][u]=a(t[s][u],e[s][u],n)}}function u(t,e,n){var r=t.length,o=e.length;if(r!==o)if(r>o)t.length=o;else for(var a=r;a<o;a++)t.push(1===n?e[a]:i.call(e[a]));var s=t[0]&&t[0].length;for(a=0;a<t.length;a++)if(1===n)isNaN(t[a])&&(t[a]=e[a]);else for(var l=0;l<s;l++)isNaN(t[a][l])&&(t[a][l]=e[a][l])}function h(t,e,n){if(t===e)return!0;var i=t.length;if(i!==e.length)return!1;if(1===n){for(var r=0;r<i;r++)if(t[r]!==e[r])return!1}else{var o=t[0].length;for(r=0;r<i;r++)for(var a=0;a<o;a++)if(t[r][a]!==e[r][a])return!1}return!0}function c(t,e,n,i,r,o,a,s,l){var u=t.length;if(1===l)for(var h=0;h<u;h++)s[h]=d(t[h],e[h],n[h],i[h],r,o,a);else{var c=t[0].length;for(h=0;h<u;h++)for(var p=0;p<c;p++)s[h][p]=d(t[h][p],e[h][p],n[h][p],i[h][p],r,o,a)}}function d(t,e,n,i,r,o,a){var s=.5*(n-t),l=.5*(i-e);return(2*(e-n)+s+l)*a+(-3*(e-n)-2*s-l)*o+s*r+e}function p(t){if(n(t)){var e=t.length;if(n(t[0])){for(var r=[],o=0;o<e;o++)r.push(i.call(t[o]));return r}return i.call(t)}return t}function f(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function g(i,r,o,p,g,v){var m=i._getter,y=i._setter,x="spline"===r,_=p.length;if(_){var b,w=p[0].value,S=n(w),M=!1,I=!1,T=S?function(t){var e=t[t.length-1].value;return n(e&&e[0])?2:1}(p):0;p.sort((function(t,e){return t.time-e.time})),b=p[_-1].time;for(var C=[],A=[],D=p[0].value,L=!0,k=0;k<_;k++){C.push(p[k].time/b);var P=p[k].value;if(S&&h(P,D,T)||!S&&P===D||(L=!1),D=P,"string"==typeof P){var O=e.parse(P);O?(P=O,M=!0):I=!0}A.push(P)}if(v||!L){var R=A[_-1];for(k=0;k<_-1;k++)S?u(A[k],R,T):!isNaN(A[k])||isNaN(R)||I||M||(A[k]=R);S&&u(m(i._target,g),R,T);var N,E,z,V,B,G=0,F=0;if(M)var H=[0,0,0,0];var W=new t({target:i._target,life:b,loop:i._loop,delay:i._delay,onframe:function(t,e){var n;if(e<0)n=0;else if(e<F){for(n=Math.min(G+1,_-1);n>=0&&!(C[n]<=e);n--);n=Math.min(n,_-2)}else{for(n=G;n<_&&!(C[n]>e);n++);n=Math.min(n-1,_-2)}G=n,F=e;var i=C[n+1]-C[n];if(0!==i)if(N=(e-C[n])/i,x)if(z=A[n],E=A[0===n?n:n-1],V=A[n>_-2?_-1:n+1],B=A[n>_-3?_-1:n+2],S)c(E,z,V,B,N,N*N,N*N*N,m(t,g),T);else{if(M)r=c(E,z,V,B,N,N*N,N*N*N,H,1),r=f(H);else{if(I)return s(z,V,N);r=d(E,z,V,B,N,N*N,N*N*N)}y(t,g,r)}else if(S)l(A[n],A[n+1],N,m(t,g),T);else{var r;if(M)l(A[n],A[n+1],N,H,1),r=f(H);else{if(I)return s(A[n],A[n+1],N);r=a(A[n],A[n+1],N)}y(t,g,r)}},ondestroy:o});return r&&"spline"!==r&&(W.easing=r),W}}}var v=function(t,e,n,i){this._tracks={},this._target=t,this._loop=e||!1,this._getter=n||r,this._setter=i||o,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};return v.prototype={when:function(t,e){var n=this._tracks;for(var i in e)if(e.hasOwnProperty(i)){if(!n[i]){n[i]=[];var r=this._getter(this._target,i);if(null==r)continue;0!==t&&n[i].push({time:0,value:p(r)})}n[i].push({time:t,value:e[i]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;t<this._clipList.length;t++)this._clipList[t].pause();this._paused=!0},resume:function(){for(var t=0;t<this._clipList.length;t++)this._clipList[t].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var t=this._doneList,e=t.length,n=0;n<e;n++)t[n].call(this)},start:function(t,e){var n,i=this,r=0,o=function(){--r||i._doneCallback()};for(var a in this._tracks)if(this._tracks.hasOwnProperty(a)){var s=g(this,t,o,this._tracks[a],a,e);s&&(this._clipList.push(s),r++,this.animation&&this.animation.addClip(s),n=s)}if(n){var l=n.onframe;n.onframe=function(t,e){l(t,e);for(var n=0;n<i._onframeList.length;n++)i._onframeList[n](t,e)}}return r||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,n=this.animation,i=0;i<e.length;i++){var r=e[i];t&&r.onframe(this._target,1),n&&n.removeClip(r)}e.length=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}},ZW=v}var JW,QW,tU,eU,nU,iU,rU,oU,aU,sU,lU,uU,hU,cU,dU,pU,fU,gU={};function vU(){if(JW)return gU;JW=1;var t=1;"undefined"!=typeof window&&(t=Math.max(window.devicePixelRatio||1,1));var e=t;return gU.debugMode=0,gU.devicePixelRatio=e,gU}function mU(){if(tU)return QW;tU=1;var t=function(){};return 1===vU().debugMode&&(t=console.error),QW=t}function yU(){if(nU)return eU;nU=1;var t=$W(),e=mU(),n=hW(),i=n.isString,r=n.isFunction,o=n.isObject,a=n.isArrayLike,s=n.indexOf,l=function(){this.animators=[]};function u(t,e,n,o,a,s,l,u){i(o)?(s=a,a=o,o=0):r(a)?(s=a,a="linear",o=0):r(o)?(s=o,o=0):r(n)?(s=n,n=500):n||(n=500),t.stopAnimation(),h(t,"",t,e,n,o,u);var c=t.animators.slice(),d=c.length;function p(){--d||s&&s()}d||s&&s();for(var f=0;f<c.length;f++)c[f].done(p).start(a,l)}function h(t,e,n,i,r,s,l){var u={},d=0;for(var p in i)i.hasOwnProperty(p)&&(null!=n[p]?o(i[p])&&!a(i[p])?h(t,e?e+"."+p:p,n[p],i[p],r,s,l):(l?(u[p]=n[p],c(t,e,p,i[p])):u[p]=i[p],d++):null==i[p]||l||c(t,e,p,i[p]));d>0&&t.animate(e,!1).when(null==r?500:r,u).delay(s||0)}function c(t,e,n,i){if(e){var r={};r[e]={},r[e][n]=i,t.attr(r)}else t.attr(n,i)}return l.prototype={constructor:l,animate:function(n,i){var r,o=!1,a=this,l=this.__zr;if(n){var u=n.split("."),h=a;o="shape"===u[0];for(var c=0,d=u.length;c<d;c++)h&&(h=h[u[c]]);h&&(r=h)}else r=a;if(r){var p=a.animators,f=new t(r,i);return f.during((function(t){a.dirty(o)})).done((function(){p.splice(s(p,f),1)})),p.push(f),l&&l.animation.addAnimator(f),f}e('Property "'+n+'" is not existed in element '+a.id)},stopAnimation:function(t){for(var e=this.animators,n=e.length,i=0;i<n;i++)e[i].stop(t);return e.length=0,this},animateTo:function(t,e,n,i,r,o){u(this,t,e,n,i,r,o)},animateFrom:function(t,e,n,i,r,o){u(this,t,e,n,i,r,o,!0)}},eU=l}function xU(){if(rU)return iU;rU=1;var t=aW(),e=yW(),n=FW(),i=yU(),r=hW(),o=function(r){n.call(this,r),e.call(this,r),i.call(this,r),this.id=r.id||t()};return o.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(t,e){},attrKV:function(t,e){if("position"===t||"scale"===t||"origin"===t){if(e){var n=this[t];n||(n=this[t]=[]),n[0]=e[0],n[1]=e[1]}}else this[t]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(r.isObject(t))for(var n in t)t.hasOwnProperty(n)&&this.attrKV(n,t[n]);return this.dirty(!1),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},r.mixin(o,i),r.mixin(o,n),r.mixin(o,e),iU=o}function _U(){if(aU)return oU;aU=1;var t=mW(),e=GW(),n=t.applyTransform,i=Math.min,r=Math.max;function o(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return o.prototype={constructor:o,union:function(t){var e=i(t.x,this.x),n=i(t.y,this.y);this.width=r(t.x+t.width,this.x+this.width)-e,this.height=r(t.y+t.height,this.y+this.height)-n,this.x=e,this.y=n},applyTransform:function(){var t=[],e=[],o=[],a=[];return function(s){if(s){t[0]=o[0]=this.x,t[1]=a[1]=this.y,e[0]=a[0]=this.x+this.width,e[1]=o[1]=this.y+this.height,n(t,t,s),n(e,e,s),n(o,o,s),n(a,a,s),this.x=i(t[0],e[0],o[0],a[0]),this.y=i(t[1],e[1],o[1],a[1]);var l=r(t[0],e[0],o[0],a[0]),u=r(t[1],e[1],o[1],a[1]);this.width=l-this.x,this.height=u-this.y}}}(),calculateTransform:function(t){var n=this,i=t.width/n.width,r=t.height/n.height,o=e.create();return e.translate(o,o,[-n.x,-n.y]),e.scale(o,o,[i,r]),e.translate(o,o,[t.x,t.y]),o},intersect:function(t){if(!t)return!1;t instanceof o||(t=o.create(t));var e=this,n=e.x,i=e.x+e.width,r=e.y,a=e.y+e.height,s=t.x,l=t.x+t.width,u=t.y,h=t.y+t.height;return!(i<s||l<n||a<u||h<r)},contain:function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},clone:function(){return new o(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},o.create=function(t){return new o(t.x,t.y,t.width,t.height)},oU=o}function bU(){if(lU)return sU;lU=1;var t=hW(),e=xU(),n=_U(),i=function(t){for(var n in t=t||{},e.call(this,t),t)t.hasOwnProperty(n)&&(this[n]=t[n]);this._children=[],this.__storage=null,this.__dirty=!0};return i.prototype={constructor:i,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},childCount:function(){return this._children.length},add:function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,n=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof i&&t.addChildrenToStorage(e)),n&&n.refresh()},remove:function(e){var n=this.__zr,r=this.__storage,o=this._children,a=t.indexOf(o,e);return a<0||(o.splice(a,1),e.parent=null,r&&(r.delFromStorage(e),e instanceof i&&e.delChildrenFromStorage(r)),n&&n.refresh()),this},removeAll:function(){var t,e,n=this._children,r=this.__storage;for(e=0;e<n.length;e++)t=n[e],r&&(r.delFromStorage(t),t instanceof i&&t.delChildrenFromStorage(r)),t.parent=null;return n.length=0,this},eachChild:function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},traverse:function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n];t.call(e,i),"group"===i.type&&i.traverse(t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children.length;e++){var n=this._children[e];t.addToStorage(n),n instanceof i&&n.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children.length;e++){var n=this._children[e];t.delFromStorage(n),n instanceof i&&n.delChildrenFromStorage(t)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(var e=null,i=new n(0,0,0,0),r=t||this._children,o=[],a=0;a<r.length;a++){var s=r[a];if(!s.ignore&&!s.invisible){var l=s.getBoundingRect(),u=s.getLocalTransform(o);u?(i.copy(l),i.applyTransform(u),(e=e||i.clone()).union(i)):(e=e||l.clone()).union(l)}}return e||i}},t.inherits(i,e),sU=i}function wU(){if(hU)return uU;hU=1;function t(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r<n&&i(t[r],t[r-1])<0;)r++;!function(t,e,n){n--;for(;e<n;){var i=t[e];t[e++]=t[n],t[n--]=i}}(t,e,r)}else for(;r<n&&i(t[r],t[r-1])>=0;)r++;return r-e}function e(t,e,n,i,r){for(i===e&&i++;i<n;i++){for(var o,a=t[i],s=e,l=i;s<l;)r(a,t[o=s+l>>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function n(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l<s&&o(t,e[n+r+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(t,e[n+r-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a<l;){var h=a+(l-a>>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function i(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;l<s&&o(t,e[n+r-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l<s&&o(t,e[n+r+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var h=a+(l-a>>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function r(t,e){var r,o,a=7,s=0;t.length;var l=[];function u(u){var h=r[u],c=o[u],d=r[u+1],p=o[u+1];o[u]=c+p,u===s-3&&(r[u+1]=r[u+2],o[u+1]=o[u+2]),s--;var f=i(t[d],t,h,c,0,e);h+=f,0!==(c-=f)&&0!==(p=n(t[h+c-1],t,d,p,p-1,e))&&(c<=p?function(r,o,s,u){var h=0;for(h=0;h<o;h++)l[h]=t[r+h];var c=0,d=s,p=r;if(t[p++]=t[d++],0==--u){for(h=0;h<o;h++)t[p+h]=l[c+h];return}if(1===o){for(h=0;h<u;h++)t[p+h]=t[d+h];return void(t[p+u]=l[c])}var f,g,v,m=a;for(;;){f=0,g=0,v=!1;do{if(e(t[d],l[c])<0){if(t[p++]=t[d++],g++,f=0,0==--u){v=!0;break}}else if(t[p++]=l[c++],f++,g=0,1==--o){v=!0;break}}while((f|g)<m);if(v)break;do{if(0!==(f=i(t[d],l,c,o,0,e))){for(h=0;h<f;h++)t[p+h]=l[c+h];if(p+=f,c+=f,(o-=f)<=1){v=!0;break}}if(t[p++]=t[d++],0==--u){v=!0;break}if(0!==(g=n(l[c],t,d,u,0,e))){for(h=0;h<g;h++)t[p+h]=t[d+h];if(p+=g,d+=g,0===(u-=g)){v=!0;break}}if(t[p++]=l[c++],1==--o){v=!0;break}m--}while(f>=7||g>=7);if(v)break;m<0&&(m=0),m+=2}if((a=m)<1&&(a=1),1===o){for(h=0;h<u;h++)t[p+h]=t[d+h];t[p+u]=l[c]}else{if(0===o)throw new Error;for(h=0;h<o;h++)t[p+h]=l[c+h]}}(h,c,d,p):function(r,o,s,u){var h=0;for(h=0;h<u;h++)l[h]=t[s+h];var c=r+o-1,d=u-1,p=s+u-1,f=0,g=0;if(t[p--]=t[c--],0==--o){for(f=p-(u-1),h=0;h<u;h++)t[f+h]=l[h];return}if(1===u){for(g=(p-=o)+1,f=(c-=o)+1,h=o-1;h>=0;h--)t[g+h]=t[f+h];return void(t[p]=l[d])}var v=a;for(;;){var m=0,y=0,x=!1;do{if(e(l[d],t[c])<0){if(t[p--]=t[c--],m++,y=0,0==--o){x=!0;break}}else if(t[p--]=l[d--],y++,m=0,1==--u){x=!0;break}}while((m|y)<v);if(x)break;do{if(0!==(m=o-i(l[d],t,r,o,o-1,e))){for(o-=m,g=(p-=m)+1,f=(c-=m)+1,h=m-1;h>=0;h--)t[g+h]=t[f+h];if(0===o){x=!0;break}}if(t[p--]=l[d--],1==--u){x=!0;break}if(0!==(y=u-n(t[c],l,0,u,u-1,e))){for(u-=y,g=(p-=y)+1,f=(d-=y)+1,h=0;h<y;h++)t[g+h]=l[f+h];if(u<=1){x=!0;break}}if(t[p--]=t[c--],0==--o){x=!0;break}v--}while(m>=7||y>=7);if(x)break;v<0&&(v=0),v+=2}(a=v)<1&&(a=1);if(1===u){for(g=(p-=o)+1,f=(c-=o)+1,h=o-1;h>=0;h--)t[g+h]=t[f+h];t[p]=l[d]}else{if(0===u)throw new Error;for(f=p-(u-1),h=0;h<u;h++)t[f+h]=l[h]}}(h,c,d,p))}r=[],o=[],this.mergeRuns=function(){for(;s>1;){var t=s-2;if(t>=1&&o[t-1]<=o[t]+o[t+1]||t>=2&&o[t-2]<=o[t]+o[t-1])o[t-1]<o[t+1]&&t--;else if(o[t]>o[t+1])break;u(t)}},this.forceMergeRuns=function(){for(;s>1;){var t=s-2;t>0&&o[t-1]<o[t+1]&&t--,u(t)}},this.pushRun=function(t,e){r[s]=t,o[s]=e,s+=1}}return uU=function(n,i,o,a){o||(o=0),a||(a=n.length);var s=a-o;if(!(s<2)){var l=0;if(s<32)e(n,o,a,o+(l=t(n,o,a,i)),i);else{var u=new r(n,i),h=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(s);do{if((l=t(n,o,a,i))<h){var c=s;c>h&&(c=h),e(n,o,o+c,o+l,i),l=c}u.pushRun(o,l),u.mergeRuns(),s-=l,o+=l}while(0!==s);u.forceMergeRuns()}}}}function SU(){if(fU)return pU;fU=1;var t={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};return pU=function(e,n,i){return t.hasOwnProperty(n)?i*e.dpr:i}}var MU,IU,TU,CU,AU,DU,LU,kU,PU,OU={};function RU(){if(MU)return OU;MU=1;return OU.ContextCachedBy={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},OU.WILL_BE_RESTORED=9,OU}function NU(){if(TU)return IU;TU=1;var t=SU(),e=RU().ContextCachedBy,n=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],i=function(t){this.extendFrom(t,!1)};function r(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),i=isNaN(i)?0:i,r=isNaN(r)?1:r,o=isNaN(o)?0:o,a=isNaN(a)?0:a,t.createLinearGradient(i,o,r,a)}function o(t,e,n){var i=n.width,r=n.height,o=Math.min(i,r),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(a=a*i+n.x,s=s*r+n.y,l*=o),t.createRadialGradient(a,s,0,a,s,l)}for(var a=i.prototype={constructor:i,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(i,r,o){var a=this,s=o&&o.style,l=!s||i.__attrCachedBy!==e.STYLE_BIND;i.__attrCachedBy=e.STYLE_BIND;for(var u=0;u<n.length;u++){var h=n[u],c=h[0];(l||a[c]!==s[c])&&(i[c]=t(i,c,a[c]||h[1]))}if((l||a.fill!==s.fill)&&(i.fillStyle=a.fill),(l||a.stroke!==s.stroke)&&(i.strokeStyle=a.stroke),(l||a.opacity!==s.opacity)&&(i.globalAlpha=null==a.opacity?1:a.opacity),(l||a.blend!==s.blend)&&(i.globalCompositeOperation=a.blend||"source-over"),this.hasStroke()){var d=a.lineWidth;i.lineWidth=d/(this.strokeNoScale&&r&&r.getLineScale?r.getLineScale():1)}},hasFill:function(){var t=this.fill;return null!=t&&"none"!==t},hasStroke:function(){var t=this.stroke;return null!=t&&"none"!==t&&this.lineWidth>0},extendFrom:function(t,e){if(t)for(var n in t)!t.hasOwnProperty(n)||!0!==e&&(!1===e?this.hasOwnProperty(n):null==t[n])||(this[n]=t[n])},set:function(t,e){"string"==typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,n){for(var i=("radial"===e.type?o:r)(t,e,n),a=e.colorStops,s=0;s<a.length;s++)i.addColorStop(a[s].offset,a[s].color);return i}},s=0;s<n.length;s++){var l=n[s];l[0]in a||(a[l[0]]=l[1])}return i.getGradient=a.getGradient,IU=i}function EU(){if(AU)return CU;AU=1;var t=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};return t.prototype.getCanvasPattern=function(t){return t.createPattern(this.image,this.repeat||"repeat")},CU=t}function zU(){if(PU)return kU;PU=1;var t="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)};return kU=t}var VU,BU,GU={},FU={},HU={};function WU(){if(VU)return HU;VU=1;var t=new(qW())(50);function e(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function n(t){return t&&t.width&&t.height}return HU.findExistImage=function(e){if("string"==typeof e){var n=t.get(e);return n&&n.image}return e},HU.createOrUpdateImage=function(i,r,o,a,s){if(i){if("string"==typeof i){if(r&&r.__zrImageSrc===i||!o)return r;var l=t.get(i),u={hostEl:o,cb:a,cbPayload:s};return l?!n(r=l.image)&&l.pending.push(u):((r=new Image).onload=r.onerror=e,t.put(i,r.__cachedImgObj={image:r,pending:[u]}),r.src=r.__zrImageSrc=i),r}return i}return r},HU.isImageReady=n,HU}function UU(){if(BU)return FU;BU=1;var t=_U(),e=WU(),n=hW(),i=n.getContext,r=n.extend,o=n.retrieve2,a=n.retrieve3,s=n.trim,l={},u=0,h=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,c="12px sans-serif",d={};function p(t,e){var n=t+":"+(e=e||c);if(l[n])return l[n];for(var i=(t+"").split("\n"),r=0,o=0,a=i.length;o<a;o++)r=Math.max(w(i[o],e).width,r);return u>5e3&&(u=0,l={}),u++,l[n]=r,r}function f(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function g(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function v(t,e,n){var i=e.textPosition,r=e.textDistance,o=n.x,a=n.y;r=r||0;var s=n.height,l=n.width,u=s/2,h="left",c="top";switch(i){case"left":o-=r,a+=u,h="right",c="middle";break;case"right":o+=r+l,a+=u,c="middle";break;case"top":o+=l/2,a-=r,h="center",c="bottom";break;case"bottom":o+=l/2,a+=s+r,h="center";break;case"inside":o+=l/2,a+=u,h="center",c="middle";break;case"insideLeft":o+=r,a+=u,c="middle";break;case"insideRight":o+=l-r,a+=u,h="right",c="middle";break;case"insideTop":o+=l/2,a+=r,h="center";break;case"insideBottom":o+=l/2,a+=s-r,h="center",c="bottom";break;case"insideTopLeft":o+=r,a+=r;break;case"insideTopRight":o+=l-r,a+=r,h="right";break;case"insideBottomLeft":o+=r,a+=s-r,c="bottom";break;case"insideBottomRight":o+=l-r,a+=s-r,h="right",c="bottom"}return(t=t||{}).x=o,t.y=a,t.textAlign=h,t.textVerticalAlign=c,t}function m(t,e,n,i,r){if(!e)return"";var o=(t+"").split("\n");r=y(e,n,i,r);for(var a=0,s=o.length;a<s;a++)o[a]=x(o[a],r);return o.join("\n")}function y(t,e,n,i){(i=r({},i)).font=e;n=o(n,"...");i.maxIterations=o(i.maxIterations,2);var a=i.minChar=o(i.minChar,0);i.cnCharWidth=p("国",e);var s=i.ascCharWidth=p("a",e);i.placeholder=o(i.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<a&&l>=s;u++)l-=s;var h=p(n,e);return h>l&&(n="",h=0),l=t-h,i.ellipsis=n,i.ellipsisWidth=h,i.contentWidth=l,i.containerWidth=t,i}function x(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=p(t,i);if(o<=n)return t;for(var a=0;;a++){if(o<=r||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?_(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;o=p(t=t.substr(0,s),i)}return""===t&&(t=e.placeholder),t}function _(t,e,n,i){for(var r=0,o=0,a=t.length;o<a&&r<e;o++){var s=t.charCodeAt(o);r+=0<=s&&s<=127?n:i}return o}function b(t){return p("国",t)}function w(t,e){return d.measureText(t,e)}function S(t,e,n,i,r){null!=t&&(t+="");var a=o(i,b(e)),s=t?t.split("\n"):[],l=s.length*a,u=l,h=!0;if(n&&(u+=n[0]+n[2]),t&&r){h=!1;var c=r.outerHeight,d=r.outerWidth;if(null!=c&&u>c)t="",s=[];else if(null!=d)for(var p=y(d-(n?n[1]+n[3]:0),e,r.ellipsis,{minChar:r.minChar,placeholder:r.placeholder}),f=0,g=s.length;f<g;f++)s[f]=x(s[f],p)}return{lines:s,height:l,outerHeight:u,lineHeight:a,canCacheByTextString:h}}function M(t,n){var i={lines:[],width:0,height:0};if(null!=t&&(t+=""),!t)return i;for(var r,s=h.lastIndex=0;null!=(r=h.exec(t));){var l=r.index;l>s&&I(i,t.substring(s,l)),I(i,r[2],r[1]),s=h.lastIndex}s<t.length&&I(i,t.substring(s,t.length));var u=i.lines,c=0,d=0,f=[],g=n.textPadding,v=n.truncate,y=v&&v.outerWidth,x=v&&v.outerHeight;g&&(null!=y&&(y-=g[1]+g[3]),null!=x&&(x-=g[0]+g[2]));for(var _=0;_<u.length;_++){for(var w=u[_],S=0,M=0,T=0;T<w.tokens.length;T++){var C=(z=w.tokens[T]).styleName&&n.rich[z.styleName]||{},A=z.textPadding=C.textPadding,D=z.font=C.font||n.font,L=z.textHeight=o(C.textHeight,b(D));if(A&&(L+=A[0]+A[2]),z.height=L,z.lineHeight=a(C.textLineHeight,n.textLineHeight,L),z.textAlign=C&&C.textAlign||n.textAlign,z.textVerticalAlign=C&&C.textVerticalAlign||"middle",null!=x&&c+z.lineHeight>x)return{lines:[],width:0,height:0};z.textWidth=p(z.text,D);var k=C.textWidth,P=null==k||"auto"===k;if("string"==typeof k&&"%"===k.charAt(k.length-1))z.percentWidth=k,f.push(z),k=0;else{if(P){k=z.textWidth;var O=C.textBackgroundColor,R=O&&O.image;R&&(R=e.findExistImage(R),e.isImageReady(R)&&(k=Math.max(k,R.width*L/R.height)))}var N=A?A[1]+A[3]:0;k+=N;var E=null!=y?y-M:null;null!=E&&E<k&&(!P||E<N?(z.text="",z.textWidth=k=0):(z.text=m(z.text,E-N,D,v.ellipsis,{minChar:v.minChar}),z.textWidth=p(z.text,D),k=z.textWidth+N))}M+=z.width=k,C&&(S=Math.max(S,z.lineHeight))}w.width=M,w.lineHeight=S,c+=S,d=Math.max(d,M)}i.outerWidth=i.width=o(n.textWidth,d),i.outerHeight=i.height=o(n.textHeight,c),g&&(i.outerWidth+=g[1]+g[3],i.outerHeight+=g[0]+g[2]);for(_=0;_<f.length;_++){var z,V=(z=f[_]).percentWidth;z.width=parseInt(V,10)/100*d}return i}function I(t,e,n){for(var i=""===e,r=e.split("\n"),o=t.lines,a=0;a<r.length;a++){var s=r[a],l={styleName:n,text:s,isLineHolder:!s&&!i};if(a)o.push({tokens:[l]});else{var u=(o[o.length-1]||(o[0]={tokens:[]})).tokens,h=u.length;1===h&&u[0].isLineHolder?u[0]=l:(s||!h||i)&&u.push(l)}}}return d.measureText=function(t,e){var n=i();return n.font=e||c,n.measureText(t)},FU.DEFAULT_FONT=c,FU.$override=function(t,e){d[t]=e},FU.getWidth=p,FU.getBoundingRect=function(e,n,i,r,o,a,s,l){return s?function(e,n,i,r,o,a,s,l){var u=M(e,{rich:s,truncate:l,font:n,textAlign:i,textPadding:o,textLineHeight:a}),h=u.outerWidth,c=u.outerHeight,d=f(0,h,i),p=g(0,c,r);return new t(d,p,h,c)}(e,n,i,r,o,a,s,l):function(e,n,i,r,o,a,s){var l=S(e,n,o,a,s),u=p(e,n);o&&(u+=o[1]+o[3]);var h=l.outerHeight,c=f(0,u,i),d=g(0,h,r),v=new t(c,d,u,h);return v.lineHeight=l.lineHeight,v}(e,n,i,r,o,a,l)},FU.adjustTextX=f,FU.adjustTextY=g,FU.calculateTextPosition=v,FU.adjustTextPositionOnRect=function(t,e,n){return v({},{textPosition:t,textDistance:n},e)},FU.truncateText=m,FU.getLineHeight=b,FU.measureText=w,FU.parsePlainText=S,FU.parseRichText=M,FU.makeFont=function(t){var e=(t.fontSize||t.fontFamily)&&[t.fontStyle,t.fontWeight,(t.fontSize||12)+"px",t.fontFamily||"sans-serif"].join(" ");return e&&s(e)||t.textFont||t.font},FU}var YU,ZU,XU,jU,qU,KU,$U,JU,QU,tY,eY,nY,iY,rY,oY,aY={};function sY(){if(YU)return aY;return YU=1,aY.buildPath=function(t,e){var n,i,r,o,a,s=e.x,l=e.y,u=e.width,h=e.height,c=e.r;u<0&&(s+=u,u=-u),h<0&&(l+=h,h=-h),"number"==typeof c?n=i=r=o=c:c instanceof Array?1===c.length?n=i=r=o=c[0]:2===c.length?(n=r=c[0],i=o=c[1]):3===c.length?(n=c[0],i=o=c[1],r=c[2]):(n=c[0],i=c[1],r=c[2],o=c[3]):n=i=r=o=0,n+i>u&&(n*=u/(a=n+i),i*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),i+r>h&&(i*=h/(a=i+r),r*=h/a),n+o>h&&(n*=h/(a=n+o),o*=h/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+h-r),0!==r&&t.arc(s+u-r,l+h-r,r,0,Math.PI/2),t.lineTo(s+o,l+h),0!==o&&t.arc(s+o,l+h-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)},aY}function lY(){if(ZU)return GU;ZU=1;var t=hW(),e=t.retrieve2,n=t.retrieve3,i=t.each,r=t.normalizeCssArray,o=t.isString,a=t.isObject,s=UU(),l=sY(),u=WU(),h=SU(),c=RU(),d=c.ContextCachedBy,p=c.WILL_BE_RESTORED,f=s.DEFAULT_FONT,g={left:1,right:1,center:1},v={top:1,bottom:1,middle:1},m=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],y={},x={};function _(t){if(t){t.font=s.makeFont(t);var e=t.textAlign;"middle"===e&&(e="center"),t.textAlign=null==e||g[e]?e:"left";var n=t.textVerticalAlign||t.textBaseline;"center"===n&&(n="middle"),t.textVerticalAlign=null==n||v[n]?n:"top",t.textPadding&&(t.textPadding=r(t.textPadding))}}function b(t,e,n,i,r){if(n&&e.textRotation){var o=e.textOrigin;"center"===o?(i=n.width/2+n.x,r=n.height/2+n.y):o&&(i=o[0]+n.x,r=o[1]+n.y),t.translate(i,r),t.rotate(-e.textRotation),t.translate(-i,-r)}}function w(t,i,r,o,a,s,l,u){var h=o.rich[r.styleName]||{};h.text=r.text;var c=r.textVerticalAlign,d=s+a/2;"top"===c?d=s+r.height/2:"bottom"===c&&(d=s+a-r.height/2),!r.isLineHolder&&S(h)&&M(t,i,h,"right"===u?l-r.width:"center"===u?l-r.width/2:l,d-r.height/2,r.width,r.height);var p=r.textPadding;p&&(l=k(l,u,p),d-=r.height/2-p[2]-r.textHeight/2),C(i,"shadowBlur",n(h.textShadowBlur,o.textShadowBlur,0)),C(i,"shadowColor",h.textShadowColor||o.textShadowColor||"transparent"),C(i,"shadowOffsetX",n(h.textShadowOffsetX,o.textShadowOffsetX,0)),C(i,"shadowOffsetY",n(h.textShadowOffsetY,o.textShadowOffsetY,0)),C(i,"textAlign",u),C(i,"textBaseline","middle"),C(i,"font",r.font||f);var g=A(h.textStroke||o.textStroke,m),v=D(h.textFill||o.textFill),m=e(h.textStrokeWidth,o.textStrokeWidth);g&&(C(i,"lineWidth",m),C(i,"strokeStyle",g),i.strokeText(r.text,l,d)),v&&(C(i,"fillStyle",v),i.fillText(r.text,l,d))}function S(t){return!!(t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor)}function M(t,e,n,i,r,s,h){var c=n.textBackgroundColor,d=n.textBorderWidth,p=n.textBorderColor,f=o(c);if(C(e,"shadowBlur",n.textBoxShadowBlur||0),C(e,"shadowColor",n.textBoxShadowColor||"transparent"),C(e,"shadowOffsetX",n.textBoxShadowOffsetX||0),C(e,"shadowOffsetY",n.textBoxShadowOffsetY||0),f||d&&p){e.beginPath();var g=n.textBorderRadius;g?l.buildPath(e,{x:i,y:r,width:s,height:h,r:g}):e.rect(i,r,s,h),e.closePath()}if(f)if(C(e,"fillStyle",c),null!=n.fillOpacity){var v=e.globalAlpha;e.globalAlpha=n.fillOpacity*n.opacity,e.fill(),e.globalAlpha=v}else e.fill();else if(a(c)){var m=c.image;(m=u.createOrUpdateImage(m,null,t,I,c))&&u.isImageReady(m)&&e.drawImage(m,i,r,s,h)}if(d&&p)if(C(e,"lineWidth",d),C(e,"strokeStyle",p),null!=n.strokeOpacity){v=e.globalAlpha;e.globalAlpha=n.strokeOpacity*n.opacity,e.stroke(),e.globalAlpha=v}else e.stroke()}function I(t,e){e.image=t}function T(t,e,n,i){var r=n.x||0,o=n.y||0,a=n.textAlign,l=n.textVerticalAlign;if(i){var u=n.textPosition;if(u instanceof Array)r=i.x+L(u[0],i.width),o=i.y+L(u[1],i.height);else{var h=e&&e.calculateTextPosition?e.calculateTextPosition(y,n,i):s.calculateTextPosition(y,n,i);r=h.x,o=h.y,a=a||h.textAlign,l=l||h.textVerticalAlign}var c=n.textOffset;c&&(r+=c[0],o+=c[1])}return(t=t||{}).baseX=r,t.baseY=o,t.textAlign=a,t.textVerticalAlign=l,t}function C(t,e,n){return t[e]=h(t,e,n),t[e]}function A(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function D(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function L(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function k(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}return GU.normalizeTextStyle=function(t){return _(t),i(t.rich,_),t},GU.renderText=function(t,e,n,i,r,o){i.rich?function(t,e,n,i,r,o){o!==p&&(e.__attrCachedBy=d.NONE);var a=t.__textCotentBlock;a&&!t.__dirtyText||(a=t.__textCotentBlock=s.parseRichText(n,i));!function(t,e,n,i,r){var o=n.width,a=n.outerWidth,l=n.outerHeight,u=i.textPadding,h=T(x,t,i,r),c=h.baseX,d=h.baseY,p=h.textAlign,f=h.textVerticalAlign;b(e,i,r,c,d);var g=s.adjustTextX(c,a,p),v=s.adjustTextY(d,l,f),m=g,y=v;u&&(m+=u[3],y+=u[0]);var _=m+o;S(i)&&M(t,e,i,g,v,a,l);for(var I=0;I<n.lines.length;I++){for(var C,A=n.lines[I],D=A.tokens,L=D.length,k=A.lineHeight,P=A.width,O=0,R=m,N=_,E=L-1;O<L&&(!(C=D[O]).textAlign||"left"===C.textAlign);)w(t,e,C,i,k,y,R,"left"),P-=C.width,R+=C.width,O++;for(;E>=0&&"right"===(C=D[E]).textAlign;)w(t,e,C,i,k,y,N,"right"),P-=C.width,N-=C.width,E--;for(R+=(o-(R-m)-(_-N)-P)/2;O<=E;)w(t,e,C=D[O],i,k,y,R+C.width/2,"center"),R+=C.width,O++;y+=k}}(t,e,a,i,r)}(t,e,n,i,r,o):function(t,e,n,i,r,o){var a,l=S(i),u=!1,c=e.__attrCachedBy===d.PLAIN_TEXT;o!==p?(o&&(a=o.style,u=!l&&c&&a),e.__attrCachedBy=l?d.NONE:d.PLAIN_TEXT):c&&(e.__attrCachedBy=d.NONE);var g=i.font||f;u&&g===(a.font||f)||(e.font=g);var v=t.__computedFont;t.__styleFont!==g&&(t.__styleFont=g,v=t.__computedFont=e.font);var y=i.textPadding,_=i.textLineHeight,w=t.__textCotentBlock;w&&!t.__dirtyText||(w=t.__textCotentBlock=s.parsePlainText(n,v,y,_,i.truncate));var I=w.outerHeight,C=w.lines,L=w.lineHeight,P=T(x,t,i,r),O=P.baseX,R=P.baseY,N=P.textAlign||"left",E=P.textVerticalAlign;b(e,i,r,O,R);var z=s.adjustTextY(R,I,E),V=O,B=z;if(l||y){var G=s.getWidth(n,v);y&&(G+=y[1]+y[3]);var F=s.adjustTextX(O,G,N);l&&M(t,e,i,F,z,G,I),y&&(V=k(O,N,y),B+=y[0])}e.textAlign=N,e.textBaseline="middle",e.globalAlpha=i.opacity||1;for(var H=0;H<m.length;H++){var W=m[H],U=W[0],Y=W[1],Z=i[U];u&&Z===a[U]||(e[Y]=h(e,Y,Z||W[2]))}B+=L/2;var X=i.textStrokeWidth,j=u?a.textStrokeWidth:null,q=!u||X!==j,K=!u||q||i.textStroke!==a.textStroke,$=A(i.textStroke,X),J=D(i.textFill);$&&(q&&(e.lineWidth=X),K&&(e.strokeStyle=$));J&&(u&&i.textFill===a.textFill||(e.fillStyle=J));if(1===C.length)$&&e.strokeText(C[0],V,B),J&&e.fillText(C[0],V,B);else for(H=0;H<C.length;H++)$&&e.strokeText(C[H],V,B),J&&e.fillText(C[H],V,B),B+=L}(t,e,n,i,r,o)},GU.getBoxPosition=T,GU.getStroke=A,GU.getFill=D,GU.parsePercent=L,GU.needDrawText=function(t,e){return null!=t&&(t||e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor||e.textPadding)},GU}function uY(){if(jU)return XU;jU=1;var t=lY(),e=_U(),n=RU().WILL_BE_RESTORED,i=new e,r=function(){};return r.prototype={constructor:r,drawRectText:function(e,r){var o=this.style;r=o.textRect||r,this.__dirty&&t.normalizeTextStyle(o,!0);var a=o.text;if(null!=a&&(a+=""),t.needDrawText(a,o)){e.save();var s=this.transform;o.transformText?this.setTransform(e):s&&(i.copy(r),i.applyTransform(s),r=i),t.renderText(this,e,a,o,r,n),e.restore()}}},XU=r}function hY(){if(KU)return qU;KU=1;var t=hW(),e=NU(),n=xU(),i=uY();function r(t){for(var i in t=t||{},n.call(this,t),t)t.hasOwnProperty(i)&&"style"!==i&&(this[i]=t[i]);this.style=new e(t.style,this),this._rect=null,this.__clipPaths=null}return r.prototype={constructor:r,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(t){},afterBrush:function(t){},brush:function(t,e){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?n.prototype.attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this},useStyle:function(t){return this.style=new e(t,this),this.dirty(!1),this},calculateTextPosition:null},t.inherits(r,n),t.mixin(r,i),qU=r}function cY(){if(JU)return $U;JU=1;var t=hY(),e=_U(),n=hW(),i=WU();function r(e){t.call(this,e)}return r.prototype={constructor:r,type:"image",brush:function(t,e){var n=this.style,r=n.image;n.bind(t,this,e);var o=this._image=i.createOrUpdateImage(r,this._image,this,this.onload);if(o&&i.isImageReady(o)){var a=n.x||0,s=n.y||0,l=n.width,u=n.height,h=o.width/o.height;if(null==l&&null!=u?l=u*h:null==u&&null!=l?u=l/h:null==l&&null==u&&(l=o.width,u=o.height),this.setTransform(t),n.sWidth&&n.sHeight){var c=n.sx||0,d=n.sy||0;t.drawImage(o,c,d,n.sWidth,n.sHeight,a,s,l,u)}else if(n.sx&&n.sy){var p=l-(c=n.sx),f=u-(d=n.sy);t.drawImage(o,c,d,p,f,a,s,l,u)}else t.drawImage(o,a,s,l,u);null!=n.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new e(t.x||0,t.y||0,t.width||0,t.height||0)),this._rect}},n.inherits(r,t),$U=r}function dY(){if(tY)return QU;tY=1;var t=vU().devicePixelRatio,e=hW(),n=mU(),i=_U(),r=wU(),o=function(){if(LU)return DU;LU=1;var t=hW(),e=vU().devicePixelRatio,n=NU(),i=EU();function r(){return!1}function o(e,n,i){var r=t.createCanvas(),o=n.getWidth(),a=n.getHeight(),s=r.style;return s&&(s.position="absolute",s.left=0,s.top=0,s.width=o+"px",s.height=a+"px",r.setAttribute("data-zr-dom-id",e)),r.width=o*i,r.height=a*i,r}var a=function(n,i,a){var s;a=a||e,"string"==typeof n?s=o(n,i,a):t.isObject(n)&&(n=(s=n).id),this.id=n,this.dom=s;var l=s.style;l&&(s.onselectstart=r,l["-webkit-user-select"]="none",l["user-select"]="none",l["-webkit-touch-callout"]="none",l["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",l.padding=0,l.margin=0,l["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=i,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=a};return a.prototype={constructor:a,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var t=this.dpr;this.domBack=o("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},resize:function(t,e){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},clear:function(t,e){var r,o=this.dom,a=this.ctx,s=o.width,l=o.height,u=(e=e||this.clearColor,this.motionBlur&&!t),h=this.lastFrameAlpha,c=this.dpr;if(u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,s/c,l/c)),a.clearRect(0,0,s,l),e&&"transparent"!==e&&(e.colorStops?(r=e.__canvasGradient||n.getGradient(a,e,{x:0,y:0,width:s,height:l}),e.__canvasGradient=r):e.image&&(r=i.prototype.getCanvasPattern.call(e,a)),a.save(),a.fillStyle=r||e,a.fillRect(0,0,s,l),a.restore()),u){var d=this.domBack;a.save(),a.globalAlpha=h,a.drawImage(d,0,0,s,l),a.restore()}}},DU=a}(),a=zU(),s=cY(),l=sW(),u=1e5,h=314159,c=.01;function d(t){return parseInt(t,10)}var p=new i(0,0,0,0),f=new i(0,0,0,0);var g=function(n,i,r){this.type="canvas";var a=!n.nodeName||"CANVAS"===n.nodeName.toUpperCase();this._opts=r=e.extend({},r||{}),this.dpr=r.devicePixelRatio||t,this._singleCanvas=a,this.root=n;var s=n.style;s&&(s["-webkit-tap-highlight-color"]="transparent",s["-webkit-user-select"]=s["user-select"]=s["-webkit-touch-callout"]="none",n.innerHTML=""),this.storage=i;var l=this._zlevelList=[],u=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,a){var c=n.width,d=n.height;null!=r.width&&(c=r.width),null!=r.height&&(d=r.height),this.dpr=r.devicePixelRatio||1,n.width=c*this.dpr,n.height=d*this.dpr,this._width=c,this._height=d;var p=new o(n,this,this.dpr);p.__builtin__=!0,p.initContext(),u[314159]=p,p.zlevel=h,l.push(h),this._domRoot=n}else{this._width=this._getSize(0),this._height=this._getSize(1);var f=this._domRoot=function(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}(this._width,this._height);n.appendChild(f)}this._hoverlayer=null,this._hoverElements=[]};return g.prototype={constructor:g,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(t){var e=this.storage.getDisplayList(!0),n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,t,this._redrawId);for(var i=0;i<n.length;i++){var r=n[i],o=this._layers[r];if(!o.__builtin__&&o.refresh){var a=0===i?this._backgroundColor:null;o.refresh(a)}}return this.refreshHover(),this},addHover:function(t,e){if(!t.__hoverMir){var n=new t.constructor({style:t.style,shape:t.shape,z:t.z,z2:t.z2,silent:t.silent});return n.__from=t,t.__hoverMir=n,e&&n.setStyle(e),this._hoverElements.push(n),n}},removeHover:function(t){var n=t.__hoverMir,i=this._hoverElements,r=e.indexOf(i,n);r>=0&&i.splice(r,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,n=0;n<e.length;n++){var i=e[n].__from;i&&(i.__hoverMir=null)}e.length=0},refreshHover:function(){var t=this._hoverElements,e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){r(t,this.storage.displayableSortFunc),n||(n=this._hoverlayer=this.getLayer(u));var i={};n.ctx.save();for(var o=0;o<e;){var a=t[o],s=a.__from;s&&s.__zr?(o++,s.invisible||(a.transform=s.transform,a.invTransform=s.invTransform,a.__clipPaths=s.__clipPaths,this._doPaintEl(a,n,!0,i))):(t.splice(o,1),s.__hoverMir=null,e--)}n.ctx.restore()}},getHoverLayer:function(){return this.getLayer(u)},_paintList:function(t,e,n){if(this._redrawId===n){e=e||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e);if(this._needsManuallyCompositing&&this._compositeManually(),!i){var r=this;a((function(){r._paintList(t,e,n)}))}}},_compositeManually:function(){var t=this.getLayer(h).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer((function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)}))},_doPaintList:function(t,n){for(var i=[],r=0;r<this._zlevelList.length;r++){var o=this._zlevelList[r];(u=this._layers[o]).__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&i.push(u)}for(var a=!0,s=0;s<i.length;s++){var u,h=(u=i[s]).ctx,c={};h.save();var d=n?u.__startIndex:u.__drawIndex,p=!n&&u.incremental&&Date.now,f=p&&Date.now(),g=u.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(u.__startIndex===u.__endIndex)u.clear(!1,g);else if(d===u.__startIndex){var v=t[d];v.incremental&&v.notClear&&!n||u.clear(!1,g)}-1===d&&(console.error("For some unknown reason. drawIndex is -1"),d=u.__startIndex);for(var m=d;m<u.__endIndex;m++){var y=t[m];if(this._doPaintEl(y,u,n,c),y.__dirty=y.__dirtyText=!1,p)if(Date.now()-f>15)break}u.__drawIndex=m,u.__drawIndex<u.__endIndex&&(a=!1),c.prevElClipPaths&&h.restore(),h.restore()}return l.wxa&&e.each(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),a},_doPaintEl:function(t,e,n,i){var r=e.ctx,o=t.transform;if((e.__dirty||n)&&!t.invisible&&0!==t.style.opacity&&(!o||o[0]||o[3])&&(!t.culling||!function(t,e,n){return p.copy(t.getBoundingRect()),t.transform&&p.applyTransform(t.transform),f.width=e,f.height=n,!p.intersect(f)}(t,this._width,this._height))){var a=t.__clipPaths,s=i.prevElClipPaths;s&&!function(t,e){if(t===e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}(a,s)||(s&&(r.restore(),i.prevElClipPaths=null,i.prevEl=null),a&&(r.save(),function(t,e){for(var n=0;n<t.length;n++){var i=t[n];i.setTransform(e),e.beginPath(),i.buildPath(e,i.shape),e.clip(),i.restoreTransform(e)}}(a,r),i.prevElClipPaths=a)),t.beforeBrush&&t.beforeBrush(r),t.brush(r,i.prevEl||null),i.prevEl=t,t.afterBrush&&t.afterBrush(r)}},getLayer:function(t,n){this._singleCanvas&&!this._needsManuallyCompositing&&(t=h);var i=this._layers[t];return i||((i=new o("zr_"+t,this,this.dpr)).zlevel=t,i.__builtin__=!0,this._layerConfig[t]?e.merge(i,this._layerConfig[t],!0):this._layerConfig[t-c]&&e.merge(i,this._layerConfig[t-c],!0),n&&(i.virtual=n),this.insertLayer(t,i),i.initContext()),i},insertLayer:function(t,e){var i=this._layers,r=this._zlevelList,o=r.length,a=null,s=-1,l=this._domRoot;if(i[t])n("ZLevel "+t+" has been used already");else if(function(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}(e)){if(o>0&&t>r[0]){for(s=0;s<o-1&&!(r[s]<t&&r[s+1]>t);s++);a=i[r[s]]}if(r.splice(s+1,0,t),i[t]=e,!e.virtual)if(a){var u=a.dom;u.nextSibling?l.insertBefore(e.dom,u.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom)}else n("Layer of zlevel "+t+" is not valid")},eachLayer:function(t,e){var n,i,r=this._zlevelList;for(i=0;i<r.length;i++)n=r[i],t.call(e,this._layers[n],n)},eachBuiltinLayer:function(t,e){var n,i,r,o=this._zlevelList;for(r=0;r<o.length;r++)i=o[r],(n=this._layers[i]).__builtin__&&t.call(e,n,i)},eachOtherLayer:function(t,e){var n,i,r,o=this._zlevelList;for(r=0;r<o.length;r++)i=o[r],(n=this._layers[i]).__builtin__||t.call(e,n,i)},getLayers:function(){return this._layers},_updateLayerStatus:function(t){function e(t){o&&(o.__endIndex!==t&&(o.__dirty=!0),o.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var i=1;i<t.length;i++){if((s=t[i]).zlevel!==t[i-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}}var r,o=null,a=0;for(i=0;i<t.length;i++){var s,l,u=(s=t[i]).zlevel;r!==u&&(r=u,a=0),s.incremental?((l=this.getLayer(u+.001,this._needsManuallyCompositing)).incremental=!0,a=1):l=this.getLayer(u+(a>0?c:0),this._needsManuallyCompositing),l.__builtin__||n("ZLevel "+u+" has been used by unkown layer "+l.id),l!==o&&(l.__used=!0,l.__startIndex!==i&&(l.__dirty=!0),l.__startIndex=i,l.incremental?l.__drawIndex=-1:l.__drawIndex=i,e(i),o=l),s.__dirty&&(l.__dirty=!0,l.incremental&&l.__drawIndex<0&&(l.__drawIndex=i))}e(i),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},setBackgroundColor:function(t){this._backgroundColor=t},configLayer:function(t,n){if(n){var i=this._layerConfig;i[t]?e.merge(i[t],n,!0):i[t]=n;for(var r=0;r<this._zlevelList.length;r++){var o=this._zlevelList[r];if(o===t||o===t+c){var a=this._layers[o];e.merge(a,i[t],!0)}}}},delLayer:function(t){var n=this._layers,i=this._zlevelList,r=n[t];r&&(r.dom.parentNode.removeChild(r.dom),delete n[t],i.splice(e.indexOf(i,t),1))},resize:function(t,n){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var r=this._opts;if(null!=t&&(r.width=t),null!=n&&(r.height=n),t=this._getSize(0),n=this._getSize(1),i.style.display="",this._width!==t||n!==this._height){for(var o in i.style.width=t+"px",i.style.height=n+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,n);e.each(this._progressiveLayers,(function(e){e.resize(t,n)})),this.refresh(!0)}this._width=t,this._height=n}else{if(null==t||null==n)return;this._width=t,this._height=n,this.getLayer(h).resize(t,n)}return this},clearLayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var e=new o("image",this,t.pixelRatio||this.dpr);if(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,i=e.dom.height,r=e.ctx;this.eachLayer((function(t){t.__builtin__?r.drawImage(t.dom,0,0,n,i):t.renderToCanvas&&(e.ctx.save(),t.renderToCanvas(e.ctx),e.ctx.restore())}))}else for(var a={},s=this.storage.getDisplayList(!0),l=0;l<s.length;l++){var u=s[l];this._doPaintEl(u,e,!0,a)}return e.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,n=["width","height"][t],i=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=e[n]&&"auto"!==e[n])return parseFloat(e[n]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[i]||d(s[n])||d(a.style[n]))-(d(s[r])||0)-(d(s[o])||0)|0},pathToImage:function(t,e){e=e||this.dpr;var n=document.createElement("canvas"),i=n.getContext("2d"),r=t.getBoundingRect(),o=t.style,a=o.shadowBlur*e,l=o.shadowOffsetX*e,u=o.shadowOffsetY*e,h=o.hasStroke()?o.lineWidth:0,c=Math.max(h/2,-l+a),d=Math.max(h/2,l+a),p=Math.max(h/2,-u+a),f=Math.max(h/2,u+a),g=r.width+c+d,v=r.height+p+f;n.width=g*e,n.height=v*e,i.scale(e,e),i.clearRect(0,0,g,v),i.dpr=e;var m={position:t.position,rotation:t.rotation,scale:t.scale};t.position=[c-r.x,p-r.y],t.rotation=0,t.scale=[1,1],t.updateTransform(),t&&t.brush(i);var y=new s({style:{x:0,y:0,image:n}});return null!=m.position&&(y.position=t.position=m.position),null!=m.rotation&&(y.rotation=t.rotation=m.rotation),null!=m.scale&&(y.scale=t.scale=m.scale),y}},QU=g}function pY(){if(rY)return iY;rY=1;var t=LW(),e=t.addEventListener,n=t.removeEventListener,i=t.normalizeEvent,r=t.getNativeEvent,o=hW(),a=yW(),s=sW(),l=s.domSupported,u=function(){var t=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:t,touch:["touchstart","touchend","touchmove"],pointer:o.map(t,(function(t){var n=t.replace("mouse","pointer");return e.hasOwnProperty(n)?n:t}))}}(),h=["mousemove","mouseup"],c=["pointermove","pointerup"];function d(t){return"mousewheel"===t&&s.browser.firefox?"DOMMouseScroll":t}function p(t){var e=t.pointerType;return"pen"===e||"touch"===e}function f(t){t&&(t.zrByTouch=!0)}function g(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}function v(t,e){this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}var m=v.prototype;m.stopPropagation=m.stopImmediatePropagation=m.preventDefault=o.noop;var y={mousedown:function(t){t=i(this.dom,t),this._mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=i(this.dom,t);var e=this._mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||M(this,!0),this.trigger("mousemove",t)},mouseup:function(t){t=i(this.dom,t),M(this,!1),this.trigger("mouseup",t)},mouseout:function(t){t=i(this.dom,t),this._pointerCapturing&&(t.zrEventControl="no_globalout");var e=t.toElement||t.relatedTarget;t.zrIsToLocalDOM=g(this,e),this.trigger("mouseout",t)},touchstart:function(t){f(t=i(this.dom,t)),this._lastTouchMoment=new Date,this.handler.processGesture(t,"start"),y.mousemove.call(this,t),y.mousedown.call(this,t)},touchmove:function(t){f(t=i(this.dom,t)),this.handler.processGesture(t,"change"),y.mousemove.call(this,t)},touchend:function(t){f(t=i(this.dom,t)),this.handler.processGesture(t,"end"),y.mouseup.call(this,t),+new Date-this._lastTouchMoment<300&&y.click.call(this,t)},pointerdown:function(t){y.mousedown.call(this,t)},pointermove:function(t){p(t)||y.mousemove.call(this,t)},pointerup:function(t){y.mouseup.call(this,t)},pointerout:function(t){p(t)||y.mouseout.call(this,t)}};o.each(["click","mousewheel","dblclick","contextmenu"],(function(t){y[t]=function(e){e=i(this.dom,e),this.trigger(t,e)}}));var x={pointermove:function(t){p(t)||x.mousemove.call(this,t)},pointerup:function(t){x.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this._pointerCapturing;M(this,!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function _(t,e){var n=e.domHandlers;s.pointerEventsSupported?o.each(u.pointer,(function(i){w(e,i,(function(e){n[i].call(t,e)}))})):(s.touchEventsSupported&&o.each(u.touch,(function(i){w(e,i,(function(r){n[i].call(t,r),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),o.each(u.mouse,(function(i){w(e,i,(function(o){o=r(o),e.touching||n[i].call(t,o)}))})))}function b(t,e){function n(n){w(e,n,(function(o){o=r(o),g(t,o.target)||(o=function(t,e){return i(t.dom,new v(t,e),!0)}(t,o),e.domHandlers[n].call(t,o))}),{capture:!0})}s.pointerEventsSupported?o.each(c,n):s.touchEventsSupported||o.each(h,n)}function w(t,n,i,r){t.mounted[n]=i,t.listenerOpts[n]=r,e(t.domTarget,d(n),i,r)}function S(t){var e=t.mounted;for(var i in e)e.hasOwnProperty(i)&&n(t.domTarget,d(i),e[i],t.listenerOpts[i]);t.mounted={}}function M(t,e){if(t._mayPointerCapture=null,l&&t._pointerCapturing^e){t._pointerCapturing=e;var n=t._globalHandlerScope;e?b(t,n):S(n)}}function I(t,e){this.domTarget=t,this.domHandlers=e,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function T(t,e){a.call(this),this.dom=t,this.painterRoot=e,this._localHandlerScope=new I(t,y),l&&(this._globalHandlerScope=new I(document,x)),this._pointerCapturing=!1,this._mayPointerCapture=null,_(this,this._localHandlerScope)}var C=T.prototype;return C.dispose=function(){S(this._localHandlerScope),l&&S(this._globalHandlerScope)},C.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},o.mixin(T,a),iY=T}function fY(){if(oY)return oW;oY=1;var t=aW(),e=sW(),n=hW(),i=kW(),r=function(){if(dU)return cU;dU=1;var t=hW(),e=sW(),n=bU(),i=wU();function r(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var o=function(){this._roots=[],this._displayList=[],this._displayListLen=0};return o.prototype={constructor:o,traverse:function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},getDisplayList:function(t,e){return e=e||!1,t&&this.updateDisplayList(e),this._displayList},updateDisplayList:function(t){this._displayListLen=0;for(var n=this._roots,o=this._displayList,a=0,s=n.length;a<s;a++)this._updateAndAddDisplayable(n[a],null,t);o.length=this._displayListLen,e.canvasSupported&&i(o,r)},_updateAndAddDisplayable:function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.__dirty&&t.update(),t.afterUpdate();var i=t.clipPath;if(i){e=e?e.slice():[];for(var r=i,o=t;r;)r.parent=o,r.updateTransform(),e.push(r),o=r,r=r.clipPath}if(t.isGroup){for(var a=t._children,s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty=!0),this._updateAndAddDisplayable(l,e,n)}t.__dirty=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){t.__storage!==this&&(t instanceof n&&t.addChildrenToStorage(this),this.addToStorage(t),this._roots.push(t))},delRoot:function(e){if(null==e){for(var i=0;i<this._roots.length;i++){var r=this._roots[i];r instanceof n&&r.delChildrenFromStorage(this)}return this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(e instanceof Array){i=0;for(var o=e.length;i<o;i++)this.delRoot(e[i])}else{var a=t.indexOf(this._roots,e);a>=0&&(this.delFromStorage(e),this._roots.splice(a,1),e instanceof n&&e.delChildrenFromStorage(this))}},addToStorage:function(t){return t&&(t.__storage=this,t.dirty(!1)),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:r},cU=o}(),o=dY(),a=function(){if(nY)return eY;nY=1;var t=hW(),e=LW().Dispatcher,n=zU(),i=$W(),r=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,e.call(this)};return r.prototype={constructor:r,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var e=t.getClips(),n=0;n<e.length;n++)this.addClip(e[n])},removeClip:function(e){var n=t.indexOf(this._clips,e);n>=0&&this._clips.splice(n,1)},removeAnimator:function(t){for(var e=t.getClips(),n=0;n<e.length;n++)this.removeClip(e[n]);t.animation=null},_update:function(){for(var t=(new Date).getTime()-this._pausedTime,e=t-this._time,n=this._clips,i=n.length,r=[],o=[],a=0;a<i;a++){var s=n[a],l=s.step(t,e);l&&(r.push(l),o.push(s))}for(a=0;a<i;)n[a]._needsRemove?(n[a]=n[i-1],n.pop(),i--):a++;for(i=r.length,a=0;a<i;a++)o[a].fire(r[a]);this._time=t,this.onframe(e),this.trigger("frame",e),this.stage.update&&this.stage.update()},_startLoop:function(){var t=this;this._running=!0,n((function e(){t._running&&(n(e),!t._paused&&t._update())}))},start:function(){this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(t,e){var n=new i(t,(e=e||{}).loop,e.getter,e.setter);return this.addAnimator(n),n}},t.mixin(r,e),eY=r}(),s=pY(),l=!e.canvasSupported,u={canvas:o},h={};var c=function(t,o,h){h=h||{},this.dom=o,this.id=t;var c=this,d=new r,p=h.renderer;if(l){if(!u.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");p="vml"}else p&&u[p]||(p="canvas");var f=new u[p](o,d,h,t);this.storage=d,this.painter=f;var g=e.node||e.worker?null:new s(f.getViewportRoot(),f.root);this.handler=new i(d,f,g,f.root),this.animation=new a({stage:{update:n.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var v=d.delFromStorage,m=d.addToStorage;d.delFromStorage=function(t){v.call(d,t),t&&t.removeSelfFromZr(c)},d.addToStorage=function(t){m.call(d,t),t.addSelfToZr(c)}};return c.prototype={constructor:c,getId:function(){return this.id},add:function(t){this.storage.addRoot(t),this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this._needsRefresh=!0},setBackgroundColor:function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var t;this._needsRefresh&&(t=!0,this.refreshImmediately()),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately()),t&&this.trigger("rendered")},addHover:function(t,e){if(this.painter.addHover){var n=this.painter.addHover(t,e);return this.refreshHover(),n}},removeHover:function(t){this.painter.removeHover&&(this.painter.removeHover(t),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(t,e){return this.painter.pathToImage(t,e)},setCursorStyle:function(t){this.handler.setCursorStyle(t)},findHover:function(t,e){return this.handler.findHover(t,e)},on:function(t,e,n){this.handler.on(t,e,n)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){this.handler.trigger(t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){var t;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,t=this.id,delete h[t]}},oW.version="4.3.2",oW.init=function(e,n){var i=new c(t(),e,n);return h[i.id]=i,i},oW.dispose=function(t){if(t)t.dispose();else{for(var e in h)h.hasOwnProperty(e)&&h[e].dispose();h={}}return this},oW.getInstance=function(t){return h[t]},oW.registerPainter=function(t,e){u[t]=e},oW}var gY,vY={};function mY(){if(gY)return vY;gY=1;var t=hW(),e=sW(),n=t.each,i=t.isObject,r=t.isArray,o="series\0";function a(t){return t instanceof Array?t:null==t?[]:[t]}function s(t){return i(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")}var l=0;function u(t,e){return t&&t.hasOwnProperty(e)}return vY.normalizeToArray=a,vY.defaultEmphasis=function(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}},vY.TEXT_STYLE_OPTIONS=["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"],vY.getDataItemValue=function(t){return!i(t)||r(t)||t instanceof Date?t:t.value},vY.isDataItemOption=function(t){return i(t)&&!(t instanceof Array)},vY.mappingToExists=function(e,r){r=(r||[]).slice();var o=t.map(e||[],(function(t,e){return{exist:t}}));return n(r,(function(t,e){if(i(t)){for(var n=0;n<o.length;n++)if(!o[n].option&&null!=t.id&&o[n].exist.id===t.id+"")return o[n].option=t,void(r[e]=null);for(n=0;n<o.length;n++){var a=o[n].exist;if(!(o[n].option||null!=a.id&&null!=t.id||null==t.name||s(t)||s(a)||a.name!==t.name+""))return o[n].option=t,void(r[e]=null)}}})),n(r,(function(t,e){if(i(t)){for(var n=0;n<o.length;n++){var r=o[n].exist;if(!o[n].option&&!s(r)&&null==t.id){o[n].option=t;break}}n>=o.length&&o.push({option:t})}})),o},vY.makeIdAndName=function(e){var r=t.createHashMap();n(e,(function(t,e){var n=t.exist;n&&r.set(n.id,t)})),n(e,(function(e,n){var i=e.option;t.assert(!i||null==i.id||!r.get(i.id)||r.get(i.id)===e,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&r.set(i.id,e),!e.keyInfo&&(e.keyInfo={})})),n(e,(function(t,e){var n=t.exist,a=t.option,s=t.keyInfo;if(i(a)){if(s.name=null!=a.name?a.name+"":n?n.name:o+e,n)s.id=n.id;else if(null!=a.id)s.id=a.id+"";else{var l=0;do{s.id="\0"+s.name+"\0"+l++}while(r.get(s.id))}r.set(s.id,t)}}))},vY.isNameSpecified=function(t){var e=t.name;return!(!e||!e.indexOf(o))},vY.isIdInner=s,vY.compressBatches=function(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[o(n),o(i)];function r(t,e,n){for(var i=0,r=t.length;i<r;i++)for(var o=t[i].seriesId,s=a(t[i].dataIndex),l=n&&n[o],u=0,h=s.length;u<h;u++){var c=s[u];l&&l[c]?l[c]=null:(e[o]||(e[o]={}))[c]=1}}function o(t,e){var n=[];for(var i in t)if(t.hasOwnProperty(i)&&null!=t[i])if(e)n.push(+i);else{var r=o(t[i],!0);r.length&&n.push({seriesId:i,dataIndex:r})}return n}},vY.queryDataIndex=function(e,n){return null!=n.dataIndexInside?n.dataIndexInside:null!=n.dataIndex?t.isArray(n.dataIndex)?t.map(n.dataIndex,(function(t){return e.indexOfRawIndex(t)})):e.indexOfRawIndex(n.dataIndex):null!=n.name?t.isArray(n.name)?t.map(n.name,(function(t){return e.indexOfName(t)})):e.indexOfName(n.name):void 0},vY.makeInner=function(){var t="__\0ec_inner_"+l+++"_"+Math.random().toFixed(5);return function(e){return e[t]||(e[t]={})}},vY.parseFinder=function(e,i,r){if(t.isString(i)){var o={};o[i+"Index"]=0,i=o}var a=r&&r.defaultMainType;!a||u(i,a+"Index")||u(i,a+"Id")||u(i,a+"Name")||(i[a+"Index"]=0);var s={};return n(i,(function(n,o){n=i[o];if("dataIndex"!==o&&"dataIndexInside"!==o){var a=o.match(/^(\w+)(Index|Id|Name)$/)||[],l=a[1],u=(a[2]||"").toLowerCase();if(!(!l||!u||null==n||"index"===u&&"none"===n||r&&r.includeMainTypes&&t.indexOf(r.includeMainTypes,l)<0)){var h={mainType:l};"index"===u&&"all"===n||(h[u]=n);var c=e.queryComponents(h);s[l+"Models"]=c,s[l+"Model"]=c[0]}}else s[o]=n})),s},vY.setAttribute=function(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n},vY.getAttribute=function(t,e){return t.getAttribute?t.getAttribute(e):t[e]},vY.getTooltipRenderMode=function(t){return"auto"===t?e.domSupported?"html":"richText":t||"html"},vY.groupData=function(e,n){var i=t.createHashMap(),r=[];return t.each(e,(function(t){var e=n(t);(i.get(e)||(r.push(e),i.set(e,[]))).push(t)})),{keys:r,buckets:i}},vY}var yY,xY,_Y,bY,wY,SY,MY,IY={};function TY(){if(yY)return IY;yY=1,tW().__DEV__;var t=hW(),e="___EC__COMPONENT__CONTAINER___";function n(t){var e={main:"",sub:""};return t&&(t=t.split("."),e.main=t[0]||"",e.sub=t[1]||""),e}var i=0;function r(e,n){var i=t.slice(arguments,2);return this.superClass.prototype[n].apply(e,i)}function o(t,e,n){return this.superClass.prototype[e].apply(t,n)}return IY.parseClassType=n,IY.enableClassExtend=function(e,n){e.$constructor=e,e.extend=function(e){var n=this,i=function(){e.$constructor?e.$constructor.apply(this,arguments):n.apply(this,arguments)};return t.extend(i.prototype,e),i.extend=this.extend,i.superCall=r,i.superApply=o,t.inherits(i,this),i.superClass=n,i}},IY.enableClassCheck=function(t){var e=["__\0is_clz",i++,Math.random().toFixed(3)].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}},IY.enableClassManagement=function(i,r){r=r||{};var o={};if(i.registerClass=function(i,r){if(r)if(function(e){t.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}(r),(r=n(r)).sub){if(r.sub!==e){var a=function(t){var n=o[t.main];n&&n[e]||((n=o[t.main]={})[e]=!0);return n}(r);a[r.sub]=i}}else o[r.main]=i;return i},i.getClass=function(t,n,i){var r=o[t];if(r&&r[e]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+t+"."+(n||"")+" not exists. Load it first.":t+".type should be specified.");return r},i.getClassesByMainType=function(i){i=n(i);var r=[],a=o[i.main];return a&&a[e]?t.each(a,(function(t,n){n!==e&&r.push(t)})):r.push(a),r},i.hasClass=function(t){return t=n(t),!!o[t.main]},i.getAllClassMainTypes=function(){var e=[];return t.each(o,(function(t,n){e.push(n)})),e},i.hasSubTypes=function(t){t=n(t);var i=o[t.main];return i&&i[e]},i.parseClassType=n,r.registerWhenExtend){var a=i.extend;a&&(i.extend=function(t){var e=a.call(this,t);return i.registerClass(e,t.type)})}return i},IY.setReadOnly=function(t,e){},IY}function CY(){if(_Y)return xY;_Y=1;var t=hW();return xY=function(e){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return function(n,i,r){for(var o={},a=0;a<e.length;a++){var s=e[a][1];if(!(i&&t.indexOf(i,s)>=0||r&&t.indexOf(r,s)<0)){var l=n.getShallow(s);null!=l&&(o[e[a][0]]=l)}}return o}},xY}var AY,DY={},LY={},kY={};function PY(){if(AY)return kY;AY=1;var t=mW(),e=t.create,n=t.distSquare,i=Math.pow,r=Math.sqrt,o=1e-8,a=1e-4,s=r(3),l=1/3,u=e(),h=e(),c=e();function d(t){return t>-1e-8&&t<o}function p(t){return t>o||t<-1e-8}function f(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function g(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}return kY.cubicAt=f,kY.cubicDerivativeAt=function(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)},kY.cubicRootAt=function(t,e,n,o,a,u){var h=o+3*(e-n)-t,c=3*(n-2*e+t),p=3*(e-t),f=t-a,g=c*c-3*h*p,v=c*p-9*h*f,m=p*p-3*c*f,y=0;if(d(g)&&d(v)){if(d(c))u[0]=0;else(D=-p/c)>=0&&D<=1&&(u[y++]=D)}else{var x=v*v-4*g*m;if(d(x)){var _=v/g,b=-_/2;(D=-c/h+_)>=0&&D<=1&&(u[y++]=D),b>=0&&b<=1&&(u[y++]=b)}else if(x>0){var w=r(x),S=g*c+1.5*h*(-v+w),M=g*c+1.5*h*(-v-w);(D=(-c-((S=S<0?-i(-S,l):i(S,l))+(M=M<0?-i(-M,l):i(M,l))))/(3*h))>=0&&D<=1&&(u[y++]=D)}else{var I=(2*g*c-3*h*v)/(2*r(g*g*g)),T=Math.acos(I)/3,C=r(g),A=Math.cos(T),D=(-c-2*C*A)/(3*h),L=(b=(-c+C*(A+s*Math.sin(T)))/(3*h),(-c+C*(A-s*Math.sin(T)))/(3*h));D>=0&&D<=1&&(u[y++]=D),b>=0&&b<=1&&(u[y++]=b),L>=0&&L<=1&&(u[y++]=L)}}return y},kY.cubicExtrema=function(t,e,n,i,o){var a=6*n-12*e+6*t,s=9*e+3*i-3*t-9*n,l=3*e-3*t,u=0;if(d(s)){if(p(a))(c=-l/a)>=0&&c<=1&&(o[u++]=c)}else{var h=a*a-4*s*l;if(d(h))o[0]=-a/(2*s);else if(h>0){var c,f=r(h),g=(-a-f)/(2*s);(c=(-a+f)/(2*s))>=0&&c<=1&&(o[u++]=c),g>=0&&g<=1&&(o[u++]=g)}}return u},kY.cubicSubdivide=function(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i},kY.cubicProjectPoint=function(t,e,i,o,s,l,d,p,g,v,m){var y,x,_,b,w,S=.005,M=1/0;u[0]=g,u[1]=v;for(var I=0;I<1;I+=.05)h[0]=f(t,i,s,d,I),h[1]=f(e,o,l,p,I),(b=n(u,h))<M&&(y=I,M=b);M=1/0;for(var T=0;T<32&&!(S<a);T++)x=y-S,_=y+S,h[0]=f(t,i,s,d,x),h[1]=f(e,o,l,p,x),b=n(h,u),x>=0&&b<M?(y=x,M=b):(c[0]=f(t,i,s,d,_),c[1]=f(e,o,l,p,_),w=n(c,u),_<=1&&w<M?(y=_,M=w):S*=.5);return m&&(m[0]=f(t,i,s,d,y),m[1]=f(e,o,l,p,y)),r(M)},kY.quadraticAt=g,kY.quadraticDerivativeAt=function(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))},kY.quadraticRootAt=function(t,e,n,i,o){var a=t-2*e+n,s=2*(e-t),l=t-i,u=0;if(d(a)){if(p(s))(c=-l/s)>=0&&c<=1&&(o[u++]=c)}else{var h=s*s-4*a*l;if(d(h))(c=-s/(2*a))>=0&&c<=1&&(o[u++]=c);else if(h>0){var c,f=r(h),g=(-s-f)/(2*a);(c=(-s+f)/(2*a))>=0&&c<=1&&(o[u++]=c),g>=0&&g<=1&&(o[u++]=g)}}return u},kY.quadraticExtremum=function(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i},kY.quadraticSubdivide=function(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n},kY.quadraticProjectPoint=function(t,e,i,o,s,l,d,p,f){var v,m=.005,y=1/0;u[0]=d,u[1]=p;for(var x=0;x<1;x+=.05){h[0]=g(t,i,s,x),h[1]=g(e,o,l,x),(S=n(u,h))<y&&(v=x,y=S)}y=1/0;for(var _=0;_<32&&!(m<a);_++){var b=v-m,w=v+m;h[0]=g(t,i,s,b),h[1]=g(e,o,l,b);var S=n(h,u);if(b>=0&&S<y)v=b,y=S;else{c[0]=g(t,i,s,w),c[1]=g(e,o,l,w);var M=n(c,u);w<=1&&M<y?(v=w,y=M):m*=.5}}return f&&(f[0]=g(t,i,s,v),f[1]=g(e,o,l,v)),r(y)},kY}var OY,RY,NY,EY={};function zY(){if(OY)return EY;OY=1;var t=mW(),e=PY(),n=Math.min,i=Math.max,r=Math.sin,o=Math.cos,a=2*Math.PI,s=t.create(),l=t.create(),u=t.create();var h=[],c=[];return EY.fromPoints=function(t,e,r){if(0!==t.length){var o,a=t[0],s=a[0],l=a[0],u=a[1],h=a[1];for(o=1;o<t.length;o++)a=t[o],s=n(s,a[0]),l=i(l,a[0]),u=n(u,a[1]),h=i(h,a[1]);e[0]=s,e[1]=u,r[0]=l,r[1]=h}},EY.fromLine=function(t,e,r,o,a,s){a[0]=n(t,r),a[1]=n(e,o),s[0]=i(t,r),s[1]=i(e,o)},EY.fromCubic=function(t,r,o,a,s,l,u,d,p,f){var g,v=e.cubicExtrema,m=e.cubicAt,y=v(t,o,s,u,h);for(p[0]=1/0,p[1]=1/0,f[0]=-1/0,f[1]=-1/0,g=0;g<y;g++){var x=m(t,o,s,u,h[g]);p[0]=n(x,p[0]),f[0]=i(x,f[0])}for(y=v(r,a,l,d,c),g=0;g<y;g++){var _=m(r,a,l,d,c[g]);p[1]=n(_,p[1]),f[1]=i(_,f[1])}p[0]=n(t,p[0]),f[0]=i(t,f[0]),p[0]=n(u,p[0]),f[0]=i(u,f[0]),p[1]=n(r,p[1]),f[1]=i(r,f[1]),p[1]=n(d,p[1]),f[1]=i(d,f[1])},EY.fromQuadratic=function(t,r,o,a,s,l,u,h){var c=e.quadraticExtremum,d=e.quadraticAt,p=i(n(c(t,o,s),1),0),f=i(n(c(r,a,l),1),0),g=d(t,o,s,p),v=d(r,a,l,f);u[0]=n(t,s,g),u[1]=n(r,l,v),h[0]=i(t,s,g),h[1]=i(r,l,v)},EY.fromArc=function(e,n,i,h,c,d,p,f,g){var v=t.min,m=t.max,y=Math.abs(c-d);if(y%a<1e-4&&y>1e-4)return f[0]=e-i,f[1]=n-h,g[0]=e+i,void(g[1]=n+h);if(s[0]=o(c)*i+e,s[1]=r(c)*h+n,l[0]=o(d)*i+e,l[1]=r(d)*h+n,v(f,s,l),m(g,s,l),(c%=a)<0&&(c+=a),(d%=a)<0&&(d+=a),c>d&&!p?d+=a:c<d&&p&&(c+=a),p){var x=d;d=c,c=x}for(var _=0;_<d;_+=Math.PI/2)_>c&&(u[0]=o(_)*i+e,u[1]=r(_)*h+n,v(f,u,f),m(g,u,g))},EY}function VY(){if(NY)return RY;NY=1;var t=PY(),e=mW(),n=zY(),i=_U(),r=vU().devicePixelRatio,o={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},a=[],s=[],l=[],u=[],h=Math.min,c=Math.max,d=Math.cos,p=Math.sin,f=Math.sqrt,g=Math.abs,v="undefined"!=typeof Float32Array,m=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};return m.prototype={constructor:m,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e,n){n=n||0,this._ux=g(n/r/t)||0,this._uy=g(n/r/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(o.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var n=g(t-this._xi)>this._ux||g(e-this._yi)>this._uy||this._len<5;return this.addData(o.L,t,e),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),n&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,n,i,r,a){return this.addData(o.C,t,e,n,i,r,a),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,n,i,r,a):this._ctx.bezierCurveTo(t,e,n,i,r,a)),this._xi=r,this._yi=a,this},quadraticCurveTo:function(t,e,n,i){return this.addData(o.Q,t,e,n,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},arc:function(t,e,n,i,r,a){return this.addData(o.A,t,e,n,n,i,r-i,0,a?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,a),this._xi=d(r)*n+t,this._yi=p(r)*n+e,this},arcTo:function(t,e,n,i,r){return this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},rect:function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(o.R,t,e,n,i),this},closePath:function(){this.addData(o.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,n=0;n<t.length;n++)e+=t[n];this._dashSum=e}return this},setLineDashOffset:function(t){return this._dashOffset=t,this},len:function(){return this._len},setData:function(t){var e=t.length;this.data&&this.data.length===e||!v||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();v&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(r=0;r<e;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},addData:function(t){if(this._saveData){var e=this.data;this._len+arguments.length>e.length&&(this._expandData(),e=this.data);for(var n=0;n<arguments.length;n++)e[this._len++]=arguments[n];this._prevCmd=t}},_expandData:function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(t,e){var n,i,r=this._dashSum,o=this._dashOffset,a=this._lineDash,s=this._ctx,l=this._xi,u=this._yi,d=t-l,p=e-u,g=f(d*d+p*p),v=l,m=u,y=a.length;for(o<0&&(o=r+o),v-=(o%=r)*(d/=g),m-=o*(p/=g);d>0&&v<=t||d<0&&v>=t||0===d&&(p>0&&m<=e||p<0&&m>=e);)v+=d*(n=a[i=this._dashIdx]),m+=p*n,this._dashIdx=(i+1)%y,d>0&&v<l||d<0&&v>l||p>0&&m<u||p<0&&m>u||s[i%2?"moveTo":"lineTo"](d>=0?h(v,t):c(v,t),p>=0?h(m,e):c(m,e));d=v-t,p=m-e,this._dashOffset=-f(d*d+p*p)},_dashedBezierTo:function(e,n,i,r,o,a){var s,l,u,h,c,d=this._dashSum,p=this._dashOffset,g=this._lineDash,v=this._ctx,m=this._xi,y=this._yi,x=t.cubicAt,_=0,b=this._dashIdx,w=g.length,S=0;for(p<0&&(p=d+p),p%=d,s=0;s<1;s+=.1)l=x(m,e,i,o,s+.1)-x(m,e,i,o,s),u=x(y,n,r,a,s+.1)-x(y,n,r,a,s),_+=f(l*l+u*u);for(;b<w&&!((S+=g[b])>p);b++);for(s=(S-p)/_;s<=1;)h=x(m,e,i,o,s),c=x(y,n,r,a,s),b%2?v.moveTo(h,c):v.lineTo(h,c),s+=g[b]/_,b=(b+1)%w;b%2!=0&&v.lineTo(o,a),l=o-h,u=a-c,this._dashOffset=-f(l*l+u*u)},_dashedQuadraticTo:function(t,e,n,i){var r=n,o=i;n=(n+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,i,r,o)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,v&&(this.data=new Float32Array(t)))},getBoundingRect:function(){a[0]=a[1]=l[0]=l[1]=Number.MAX_VALUE,s[0]=s[1]=u[0]=u[1]=-Number.MAX_VALUE;for(var t=this.data,r=0,h=0,c=0,f=0,g=0;g<t.length;){var v=t[g++];switch(1===g&&(c=r=t[g],f=h=t[g+1]),v){case o.M:r=c=t[g++],h=f=t[g++],l[0]=c,l[1]=f,u[0]=c,u[1]=f;break;case o.L:n.fromLine(r,h,t[g],t[g+1],l,u),r=t[g++],h=t[g++];break;case o.C:n.fromCubic(r,h,t[g++],t[g++],t[g++],t[g++],t[g],t[g+1],l,u),r=t[g++],h=t[g++];break;case o.Q:n.fromQuadratic(r,h,t[g++],t[g++],t[g],t[g+1],l,u),r=t[g++],h=t[g++];break;case o.A:var m=t[g++],y=t[g++],x=t[g++],_=t[g++],b=t[g++],w=t[g++]+b;g+=1;var S=1-t[g++];1===g&&(c=d(b)*x+m,f=p(b)*_+y),n.fromArc(m,y,x,_,b,w,S,l,u),r=d(w)*x+m,h=p(w)*_+y;break;case o.R:c=r=t[g++],f=h=t[g++];var M=t[g++],I=t[g++];n.fromLine(c,f,c+M,f+I,l,u);break;case o.Z:r=c,h=f}e.min(a,a,l),e.max(s,s,u)}return 0===g&&(a[0]=a[1]=s[0]=s[1]=0),new i(a[0],a[1],s[0]-a[0],s[1]-a[1])},rebuildPath:function(t){for(var e,n,i,r,a,s,l=this.data,u=this._ux,h=this._uy,c=this._len,f=0;f<c;){var v=l[f++];switch(1===f&&(e=i=l[f],n=r=l[f+1]),v){case o.M:e=i=l[f++],n=r=l[f++],t.moveTo(i,r);break;case o.L:a=l[f++],s=l[f++],(g(a-i)>u||g(s-r)>h||f===c-1)&&(t.lineTo(a,s),i=a,r=s);break;case o.C:t.bezierCurveTo(l[f++],l[f++],l[f++],l[f++],l[f++],l[f++]),i=l[f-2],r=l[f-1];break;case o.Q:t.quadraticCurveTo(l[f++],l[f++],l[f++],l[f++]),i=l[f-2],r=l[f-1];break;case o.A:var m=l[f++],y=l[f++],x=l[f++],_=l[f++],b=l[f++],w=l[f++],S=l[f++],M=l[f++],I=x>_?x:_,T=x>_?1:x/_,C=x>_?_/x:1,A=b+w;Math.abs(x-_)>.001?(t.translate(m,y),t.rotate(S),t.scale(T,C),t.arc(0,0,I,b,A,1-M),t.scale(1/T,1/C),t.rotate(-S),t.translate(-m,-y)):t.arc(m,y,I,b,A,1-M),1===f&&(e=d(b)*x+m,n=p(b)*_+y),i=d(A)*x+m,r=p(A)*_+y;break;case o.R:e=i=l[f],n=r=l[f+1],t.rect(l[f++],l[f++],l[f++],l[f++]);break;case o.Z:t.closePath(),i=e,r=n}}}},m.CMD=o,RY=m}var BY,GY={},FY={};function HY(){if(BY)return FY;return BY=1,FY.containStroke=function(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0;if(a>e+s&&a>i+s||a<e-s&&a<i-s||o>t+s&&o>n+s||o<t-s&&o<n-s)return!1;if(t===n)return Math.abs(o-t)<=s/2;var u=(l=(e-i)/(t-n))*o-a+(t*i-n*e)/(t-n);return u*u/(l*l+1)<=s/2*s/2},FY}var WY,UY={};var YY,ZY={};function XY(){if(YY)return ZY;YY=1;var t=PY().quadraticProjectPoint;return ZY.containStroke=function(e,n,i,r,o,a,s,l,u){if(0===s)return!1;var h=s;return!(u>n+h&&u>r+h&&u>a+h||u<n-h&&u<r-h&&u<a-h||l>e+h&&l>i+h&&l>o+h||l<e-h&&l<i-h&&l<o-h)&&t(e,n,i,r,o,a,l,u,null)<=h/2},ZY}var jY,qY,KY,$Y,JY,QY,tZ,eZ,nZ,iZ,rZ,oZ,aZ,sZ,lZ,uZ,hZ,cZ,dZ,pZ,fZ={},gZ={};function vZ(){if(jY)return gZ;jY=1;var t=2*Math.PI;return gZ.normalizeRadian=function(e){return(e%=t)<0&&(e+=t),e},gZ}function mZ(){if($Y)return KY;return $Y=1,KY=function(t,e,n,i,r,o){if(o>e&&o>i||o<e&&o<i)return 0;if(i===e)return 0;var a=i<e?1:-1,s=(o-e)/(i-e);1!==s&&0!==s||(a=i<e?.5:-.5);var l=s*(n-t)+t;return l===r?1/0:l>r?a:0}}function yZ(){if(JY)return GY;JY=1;var t=VY(),e=HY(),n=function(){if(WY)return UY;WY=1;var t=PY();return UY.containStroke=function(e,n,i,r,o,a,s,l,u,h,c){if(0===u)return!1;var d=u;return!(c>n+d&&c>r+d&&c>a+d&&c>l+d||c<n-d&&c<r-d&&c<a-d&&c<l-d||h>e+d&&h>i+d&&h>o+d&&h>s+d||h<e-d&&h<i-d&&h<o-d&&h<s-d)&&t.cubicProjectPoint(e,n,i,r,o,a,s,l,h,c,null)<=d/2},UY}(),i=XY(),r=function(){if(qY)return fZ;qY=1;var t=vZ().normalizeRadian,e=2*Math.PI;return fZ.containStroke=function(n,i,r,o,a,s,l,u,h){if(0===l)return!1;var c=l;u-=n,h-=i;var d=Math.sqrt(u*u+h*h);if(d-c>r||d+c<r)return!1;if(Math.abs(o-a)%e<1e-4)return!0;if(s){var p=o;o=t(a),a=t(p)}else o=t(o),a=t(a);o>a&&(a+=e);var f=Math.atan2(h,u);return f<0&&(f+=e),f>=o&&f<=a||f+e>=o&&f+e<=a},fZ}(),o=vZ().normalizeRadian,a=PY(),s=mZ(),l=t.CMD,u=2*Math.PI;var h=[-1,-1,-1],c=[-1,-1];function d(t,e,n,i,r,o,s,l,u,d){if(d>e&&d>i&&d>o&&d>l||d<e&&d<i&&d<o&&d<l)return 0;var p,f=a.cubicRootAt(e,i,o,l,d,h);if(0===f)return 0;for(var g,v,m=0,y=-1,x=0;x<f;x++){var _=h[x],b=0===_||1===_?.5:1;a.cubicAt(t,n,r,s,_)<u||(y<0&&(y=a.cubicExtrema(e,i,o,l,c),c[1]<c[0]&&y>1&&(p=void 0,p=c[0],c[0]=c[1],c[1]=p),g=a.cubicAt(e,i,o,l,c[0]),y>1&&(v=a.cubicAt(e,i,o,l,c[1]))),2===y?_<c[0]?m+=g<e?b:-b:_<c[1]?m+=v<g?b:-b:m+=l<v?b:-b:_<c[0]?m+=g<e?b:-b:m+=l<g?b:-b)}return m}function p(t,e,n,i,r,o,s,l){if(l>e&&l>i&&l>o||l<e&&l<i&&l<o)return 0;var u=a.quadraticRootAt(e,i,o,l,h);if(0===u)return 0;var c=a.quadraticExtremum(e,i,o);if(c>=0&&c<=1){for(var d=0,p=a.quadraticAt(e,i,o,c),f=0;f<u;f++){var g=0===h[f]||1===h[f]?.5:1;a.quadraticAt(t,n,r,h[f])<s||(h[f]<c?d+=p<e?g:-g:d+=o<p?g:-g)}return d}g=0===h[0]||1===h[0]?.5:1;return a.quadraticAt(t,n,r,h[0])<s?0:o<e?g:-g}function f(t,e,n,i,r,a,s,l){if((l-=e)>n||l<-n)return 0;var c=Math.sqrt(n*n-l*l);h[0]=-c,h[1]=c;var d=Math.abs(i-r);if(d<1e-4)return 0;if(d%u<1e-4){i=0,r=u;var p=a?1:-1;return s>=h[0]+t&&s<=h[1]+t?p:0}if(a){c=i;i=o(r),r=o(c)}else i=o(i),r=o(r);i>r&&(r+=u);for(var f=0,g=0;g<2;g++){var v=h[g];if(v+t>s){var m=Math.atan2(l,v);p=a?1:-1;m<0&&(m=u+m),(m>=i&&m<=r||m+u>=i&&m+u<=r)&&(m>Math.PI/2&&m<1.5*Math.PI&&(p=-p),f+=p)}}return f}function g(t,o,a,u,h){for(var c,g,v=0,m=0,y=0,x=0,_=0,b=0;b<t.length;){var w=t[b++];switch(w===l.M&&b>1&&(a||(v+=s(m,y,x,_,u,h))),1===b&&(x=m=t[b],_=y=t[b+1]),w){case l.M:m=x=t[b++],y=_=t[b++];break;case l.L:if(a){if(e.containStroke(m,y,t[b],t[b+1],o,u,h))return!0}else v+=s(m,y,t[b],t[b+1],u,h)||0;m=t[b++],y=t[b++];break;case l.C:if(a){if(n.containStroke(m,y,t[b++],t[b++],t[b++],t[b++],t[b],t[b+1],o,u,h))return!0}else v+=d(m,y,t[b++],t[b++],t[b++],t[b++],t[b],t[b+1],u,h)||0;m=t[b++],y=t[b++];break;case l.Q:if(a){if(i.containStroke(m,y,t[b++],t[b++],t[b],t[b+1],o,u,h))return!0}else v+=p(m,y,t[b++],t[b++],t[b],t[b+1],u,h)||0;m=t[b++],y=t[b++];break;case l.A:var S=t[b++],M=t[b++],I=t[b++],T=t[b++],C=t[b++],A=t[b++];b+=1;var D=1-t[b++],L=Math.cos(C)*I+S,k=Math.sin(C)*T+M;b>1?v+=s(m,y,L,k,u,h):(x=L,_=k);var P=(u-S)*T/I+S;if(a){if(r.containStroke(S,M,T,C,C+A,D,o,P,h))return!0}else v+=f(S,M,T,C,C+A,D,P,h);m=Math.cos(C+A)*I+S,y=Math.sin(C+A)*T+M;break;case l.R:x=m=t[b++],_=y=t[b++];L=x+t[b++],k=_+t[b++];if(a){if(e.containStroke(x,_,L,_,o,u,h)||e.containStroke(L,_,L,k,o,u,h)||e.containStroke(L,k,x,k,o,u,h)||e.containStroke(x,k,x,_,o,u,h))return!0}else v+=s(L,_,L,k,u,h),v+=s(x,k,x,_,u,h);break;case l.Z:if(a){if(e.containStroke(m,y,x,_,o,u,h))return!0}else v+=s(m,y,x,_,u,h);m=x,y=_}}return a||(c=y,g=_,Math.abs(c-g)<1e-4)||(v+=s(m,y,x,_,u,h)||0),0!==v}return GY.contain=function(t,e,n){return g(t,0,!1,e,n)},GY.containStroke=function(t,e,n,i){return g(t,e,!0,n,i)},GY}function xZ(){if(tZ)return QY;tZ=1;var t=hY(),e=hW(),n=VY(),i=yZ(),r=EU().prototype.getCanvasPattern,o=Math.abs,a=new n(!0);function s(e){t.call(this,e),this.path=null}return s.prototype={constructor:s,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(t,e){var n,i=this.style,o=this.path||a,s=i.hasStroke(),l=i.hasFill(),u=i.fill,h=i.stroke,c=l&&!!u.colorStops,d=s&&!!h.colorStops,p=l&&!!u.image,f=s&&!!h.image;(i.bind(t,this,e),this.setTransform(t),this.__dirty)&&(c&&(n=n||this.getBoundingRect(),this._fillGradient=i.getGradient(t,u,n)),d&&(n=n||this.getBoundingRect(),this._strokeGradient=i.getGradient(t,h,n)));c?t.fillStyle=this._fillGradient:p&&(t.fillStyle=r.call(u,t)),d?t.strokeStyle=this._strokeGradient:f&&(t.strokeStyle=r.call(h,t));var g=i.lineDash,v=i.lineDashOffset,m=!!t.setLineDash,y=this.getGlobalScale();if(o.setScale(y[0],y[1],this.segmentIgnoreThreshold),this.__dirtyPath||g&&!m&&s?(o.beginPath(t),g&&!m&&(o.setLineDash(g),o.setLineDashOffset(v)),this.buildPath(o,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),l)if(null!=i.fillOpacity){var x=t.globalAlpha;t.globalAlpha=i.fillOpacity*i.opacity,o.fill(t),t.globalAlpha=x}else o.fill(t);if(g&&m&&(t.setLineDash(g),t.lineDashOffset=v),s)if(null!=i.strokeOpacity){x=t.globalAlpha;t.globalAlpha=i.strokeOpacity*i.opacity,o.stroke(t),t.globalAlpha=x}else o.stroke(t);g&&m&&t.setLineDash([]),null!=i.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))},buildPath:function(t,e,n){},createPathProxy:function(){this.path=new n},getBoundingRect:function(){var t=this._rect,e=this.style,i=!t;if(i){var r=this.path;r||(r=this.path=new n),this.__dirtyPath&&(r.beginPath(),this.buildPath(r,this.shape,!1)),t=r.getBoundingRect()}if(this._rect=t,e.hasStroke()){var o=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||i){o.copy(t);var a=e.lineWidth,s=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(a=Math.max(a,this.strokeContainThreshold||4)),s>1e-10&&(o.width+=a/s,o.height+=a/s,o.x-=a/s/2,o.y-=a/s/2)}return o}return t},contain:function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect(),o=this.style;if(t=n[0],e=n[1],r.contain(t,e)){var a=this.path.data;if(o.hasStroke()){var s=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(o.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),i.containStroke(a,s/l,t,e)))return!0}if(o.hasFill())return i.contain(a,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(e,n){"shape"===e?(this.setShape(n),this.__dirtyPath=!0,this._rect=null):t.prototype.attrKV.call(this,e,n)},setShape:function(t,n){var i=this.shape;if(i){if(e.isObject(t))for(var r in t)t.hasOwnProperty(r)&&(i[r]=t[r]);else i[t]=n;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&o(t[0]-1)>1e-10&&o(t[3]-1)>1e-10?Math.sqrt(o(t[0]*t[3]-t[2]*t[1])):1}},s.extend=function(t){var n=function(e){s.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var n=t.shape;if(n){this.shape=this.shape||{};var i=this.shape;for(var r in n)!i.hasOwnProperty(r)&&n.hasOwnProperty(r)&&(i[r]=n[r])}t.init&&t.init.call(this,e)};for(var i in e.inherits(n,s),t)"style"!==i&&"shape"!==i&&(n.prototype[i]=t[i]);return n},e.inherits(s,t),QY=s}function _Z(){if(iZ)return LY;iZ=1;var t=xZ(),e=VY(),n=function(){if(nZ)return eZ;nZ=1;var t=VY(),e=mW().applyTransform,n=t.CMD,i=[[],[],[]],r=Math.sqrt,o=Math.atan2;return eZ=function(t,a){var s,l,u,h,c,d=t.data,p=n.M,f=n.C,g=n.L,v=n.R,m=n.A,y=n.Q;for(u=0,h=0;u<d.length;){switch(s=d[u++],h=u,l=0,s){case p:case g:l=1;break;case f:l=3;break;case y:l=2;break;case m:var x=a[4],_=a[5],b=r(a[0]*a[0]+a[1]*a[1]),w=r(a[2]*a[2]+a[3]*a[3]),S=o(-a[1]/w,a[0]/b);d[u]*=b,d[u++]+=x,d[u]*=w,d[u++]+=_,d[u++]*=b,d[u++]*=w,d[u++]+=S,d[u++]+=S,h=u+=2;break;case v:M[0]=d[u++],M[1]=d[u++],e(M,M,a),d[h++]=M[0],d[h++]=M[1],M[0]+=d[u++],M[1]+=d[u++],e(M,M,a),d[h++]=M[0],d[h++]=M[1]}for(c=0;c<l;c++){var M;(M=i[c])[0]=d[u++],M[1]=d[u++],e(M,M,a),d[h++]=M[0],d[h++]=M[1]}}},eZ}(),i=Math.sqrt,r=Math.sin,o=Math.cos,a=Math.PI,s=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},l=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(s(t)*s(e))},u=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(l(t,e))};function h(t,e,n,s,h,c,d,p,f,g,v){var m=f*(a/180),y=o(m)*(t-n)/2+r(m)*(e-s)/2,x=-1*r(m)*(t-n)/2+o(m)*(e-s)/2,_=y*y/(d*d)+x*x/(p*p);_>1&&(d*=i(_),p*=i(_));var b=(h===c?-1:1)*i((d*d*(p*p)-d*d*(x*x)-p*p*(y*y))/(d*d*(x*x)+p*p*(y*y)))||0,w=b*d*x/p,S=b*-p*y/d,M=(t+n)/2+o(m)*w-r(m)*S,I=(e+s)/2+r(m)*w+o(m)*S,T=u([1,0],[(y-w)/d,(x-S)/p]),C=[(y-w)/d,(x-S)/p],A=[(-1*y-w)/d,(-1*x-S)/p],D=u(C,A);l(C,A)<=-1&&(D=a),l(C,A)>=1&&(D=0),0===c&&D>0&&(D-=2*a),1===c&&D<0&&(D+=2*a),v.addData(g,M,I,d,p,T,D,m,c)}var c=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,d=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function p(t,i){var r=function(t){if(!t)return new e;for(var n,i=0,r=0,o=i,a=r,s=new e,l=e.CMD,u=t.match(c),p=0;p<u.length;p++){for(var f,g=u[p],v=g.charAt(0),m=g.match(d)||[],y=m.length,x=0;x<y;x++)m[x]=parseFloat(m[x]);for(var _=0;_<y;){var b,w,S,M,I,T,C,A=i,D=r;switch(v){case"l":i+=m[_++],r+=m[_++],f=l.L,s.addData(f,i,r);break;case"L":i=m[_++],r=m[_++],f=l.L,s.addData(f,i,r);break;case"m":i+=m[_++],r+=m[_++],f=l.M,s.addData(f,i,r),o=i,a=r,v="l";break;case"M":i=m[_++],r=m[_++],f=l.M,s.addData(f,i,r),o=i,a=r,v="L";break;case"h":i+=m[_++],f=l.L,s.addData(f,i,r);break;case"H":i=m[_++],f=l.L,s.addData(f,i,r);break;case"v":r+=m[_++],f=l.L,s.addData(f,i,r);break;case"V":r=m[_++],f=l.L,s.addData(f,i,r);break;case"C":f=l.C,s.addData(f,m[_++],m[_++],m[_++],m[_++],m[_++],m[_++]),i=m[_-2],r=m[_-1];break;case"c":f=l.C,s.addData(f,m[_++]+i,m[_++]+r,m[_++]+i,m[_++]+r,m[_++]+i,m[_++]+r),i+=m[_-2],r+=m[_-1];break;case"S":b=i,w=r;var L=s.len(),k=s.data;n===l.C&&(b+=i-k[L-4],w+=r-k[L-3]),f=l.C,A=m[_++],D=m[_++],i=m[_++],r=m[_++],s.addData(f,b,w,A,D,i,r);break;case"s":b=i,w=r,L=s.len(),k=s.data,n===l.C&&(b+=i-k[L-4],w+=r-k[L-3]),f=l.C,A=i+m[_++],D=r+m[_++],i+=m[_++],r+=m[_++],s.addData(f,b,w,A,D,i,r);break;case"Q":A=m[_++],D=m[_++],i=m[_++],r=m[_++],f=l.Q,s.addData(f,A,D,i,r);break;case"q":A=m[_++]+i,D=m[_++]+r,i+=m[_++],r+=m[_++],f=l.Q,s.addData(f,A,D,i,r);break;case"T":b=i,w=r,L=s.len(),k=s.data,n===l.Q&&(b+=i-k[L-4],w+=r-k[L-3]),i=m[_++],r=m[_++],f=l.Q,s.addData(f,b,w,i,r);break;case"t":b=i,w=r,L=s.len(),k=s.data,n===l.Q&&(b+=i-k[L-4],w+=r-k[L-3]),i+=m[_++],r+=m[_++],f=l.Q,s.addData(f,b,w,i,r);break;case"A":S=m[_++],M=m[_++],I=m[_++],T=m[_++],C=m[_++],h(A=i,D=r,i=m[_++],r=m[_++],T,C,S,M,I,f=l.A,s);break;case"a":S=m[_++],M=m[_++],I=m[_++],T=m[_++],C=m[_++],h(A=i,D=r,i+=m[_++],r+=m[_++],T,C,S,M,I,f=l.A,s)}}"z"!==v&&"Z"!==v||(f=l.Z,s.addData(f),i=o,r=a),n=f}return s.toStatic(),s}(t);return(i=i||{}).buildPath=function(t){if(t.setData){t.setData(r.data),(e=t.getContext())&&t.rebuildPath(e)}else{var e=t;r.rebuildPath(e)}},i.applyTransform=function(t){n(r,t),this.dirty(!0)},i}return LY.createFromString=function(e,n){return new t(p(e,n))},LY.extendFromString=function(e,n){return t.extend(p(e,n))},LY.mergePath=function(e,n){for(var i=[],r=e.length,o=0;o<r;o++){var a=e[o];a.path||a.createPathProxy(),a.__dirtyPath&&a.buildPath(a.path,a.shape,!0),i.push(a.path)}var s=new t(n);return s.createPathProxy(),s.buildPath=function(t){t.appendPath(i);var e=t.getContext();e&&t.rebuildPath(e)},s},LY}function bZ(){if(oZ)return rZ;oZ=1;var t=hY(),e=hW(),n=UU(),i=lY(),r=RU().ContextCachedBy,o=function(e){t.call(this,e)};return o.prototype={constructor:o,type:"text",brush:function(t,e){var n=this.style;this.__dirty&&i.normalizeTextStyle(n,!0),n.fill=n.stroke=n.shadowBlur=n.shadowColor=n.shadowOffsetX=n.shadowOffsetY=null;var o=n.text;null!=o&&(o+=""),i.needDrawText(o,n)?(this.setTransform(t),i.renderText(this,t,o,n,null,e),this.restoreTransform(t)):t.__attrCachedBy=r.NONE},getBoundingRect:function(){var t=this.style;if(this.__dirty&&i.normalizeTextStyle(t,!0),!this._rect){t.text;var e=n.getBoundingRect(t.text+"",t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich);if(e.x+=t.x||0,e.y+=t.y||0,i.getStroke(t.textStroke,t.textStrokeWidth)){var r=t.textStrokeWidth;e.x-=r/2,e.y-=r/2,e.width+=r,e.height+=r}this._rect=e}return this._rect}},e.inherits(o,t),rZ=o}function wZ(){if(sZ)return aZ;sZ=1;var t=xZ().extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,n){n&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}});return aZ=t}function SZ(){if(uZ)return lZ;uZ=1;var t=sW(),e=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];return lZ=function(n){return t.browser.ie&&t.browser.version>=11?function(){var t,i=this.__clipPaths,r=this.style;if(i)for(var o=0;o<i.length;o++){var a=i[o],s=a&&a.shape,l=a&&a.type;if(s&&("sector"===l&&s.startAngle===s.endAngle||"rect"===l&&(!s.width||!s.height))){for(var u=0;u<e.length;u++)e[u][2]=r[e[u][0]],r[e[u][0]]=e[u][1];t=!0;break}}if(n.apply(this,arguments),t)for(u=0;u<e.length;u++)r[e[u][0]]=e[u][2]}:n},lZ}var MZ,IZ,TZ,CZ,AZ,DZ,LZ,kZ,PZ,OZ={};function RZ(){if(AZ)return OZ;AZ=1;var t=function(){if(IZ)return MZ;IZ=1;var t=mW().distance;function e(t,e,n,i,r,o,a){var s=.5*(n-t),l=.5*(i-e);return(2*(e-n)+s+l)*a+(-3*(e-n)-2*s-l)*o+s*r+e}return MZ=function(n,i){for(var r=n.length,o=[],a=0,s=1;s<r;s++)a+=t(n[s-1],n[s]);var l=a/2;for(l=l<r?r:l,s=0;s<l;s++){var u,h,c,d=s/(l-1)*(i?r:r-1),p=Math.floor(d),f=d-p,g=n[p%r];i?(u=n[(p-1+r)%r],h=n[(p+1)%r],c=n[(p+2)%r]):(u=n[0===p?p:p-1],h=n[p>r-2?r-1:p+1],c=n[p>r-3?r-1:p+2]);var v=f*f,m=f*v;o.push([e(u[0],g[0],h[0],c[0],f,v,m),e(u[1],g[1],h[1],c[1],f,v,m)])}return o},MZ}(),e=function(){if(CZ)return TZ;CZ=1;var t=mW(),e=t.min,n=t.max,i=t.scale,r=t.distance,o=t.add,a=t.clone,s=t.sub;return TZ=function(t,l,u,h){var c,d,p,f,g=[],v=[],m=[],y=[];if(h){p=[1/0,1/0],f=[-1/0,-1/0];for(var x=0,_=t.length;x<_;x++)e(p,p,t[x]),n(f,f,t[x]);e(p,p,h[0]),n(f,f,h[1])}for(x=0,_=t.length;x<_;x++){var b=t[x];if(u)c=t[x?x-1:_-1],d=t[(x+1)%_];else{if(0===x||x===_-1){g.push(a(t[x]));continue}c=t[x-1],d=t[x+1]}s(v,d,c),i(v,v,l);var w=r(b,c),S=r(b,d),M=w+S;0!==M&&(w/=M,S/=M),i(m,v,-w),i(y,v,S);var I=o([],b,m),T=o([],b,y);h&&(n(I,I,p),e(I,I,f),n(T,T,p),e(T,T,f)),g.push(I),g.push(T)}return u&&g.push(g.shift()),g},TZ}();return OZ.buildPath=function(n,i,r){var o=i.points,a=i.smooth;if(o&&o.length>=2){if(a&&"spline"!==a){var s=e(o,a,r,i.smoothConstraint);n.moveTo(o[0][0],o[0][1]);for(var l=o.length,u=0;u<(r?l:l-1);u++){var h=s[2*u],c=s[2*u+1],d=o[(u+1)%l];n.bezierCurveTo(h[0],h[1],c[0],c[1],d[0],d[1])}}else{"spline"===a&&(o=t(o,r)),n.moveTo(o[0][0],o[0][1]);u=1;for(var p=o.length;u<p;u++)n.lineTo(o[u][0],o[u][1])}r&&n.closePath()}},OZ}function NZ(){if(LZ)return DZ;LZ=1;var t=xZ(),e=RZ(),n=t.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,n){e.buildPath(t,n,!0)}});return DZ=n}function EZ(){if(PZ)return kZ;PZ=1;var t=xZ(),e=RZ(),n=t.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,n){e.buildPath(t,n,!1)}});return kZ=n}var zZ,VZ,BZ,GZ,FZ,HZ,WZ,UZ,YZ,ZZ,XZ,jZ,qZ,KZ,$Z,JZ,QZ,tX,eX,nX,iX,rX,oX,aX,sX,lX,uX={};function hX(){if(zZ)return uX;zZ=1;var t=Math.round;function e(e,n,i){if(!n)return e;var r=t(2*e);return(r+t(n))%2==0?r/2:(r+(i?1:-1))/2}return uX.subPixelOptimizeLine=function(n,i,r){if(i){var o=i.x1,a=i.x2,s=i.y1,l=i.y2;n.x1=o,n.x2=a,n.y1=s,n.y2=l;var u=r&&r.lineWidth;u&&(t(2*o)===t(2*a)&&(n.x1=n.x2=e(o,u,!0)),t(2*s)===t(2*l)&&(n.y1=n.y2=e(s,u,!0)))}},uX.subPixelOptimizeRect=function(t,n,i){if(n){var r=n.x,o=n.y,a=n.width,s=n.height;t.x=r,t.y=o,t.width=a,t.height=s;var l=i&&i.lineWidth;l&&(t.x=e(r,l,!0),t.y=e(o,l,!0),t.width=Math.max(e(r+a,l,!1)-t.x,0===a?0:1),t.height=Math.max(e(o+s,l,!1)-t.y,0===s?0:1))}},uX.subPixelOptimize=e,uX}function cX(){if(BZ)return VZ;BZ=1;var t=xZ(),e=sY(),n=hX().subPixelOptimizeRect,i={},r=t.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,r){var o,a,s,l;this.subPixelOptimize?(n(i,r,this.style),o=i.x,a=i.y,s=i.width,l=i.height,i.r=r.r,r=i):(o=r.x,a=r.y,s=r.width,l=r.height),r.r?e.buildPath(t,r):t.rect(o,a,s,l),t.closePath()}});return VZ=r}function dX(){if(FZ)return GZ;FZ=1;var t=xZ(),e=hX().subPixelOptimizeLine,n={},i=t.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,i){var r,o,a,s;this.subPixelOptimize?(e(n,i,this.style),r=n.x1,o=n.y1,a=n.x2,s=n.y2):(r=i.x1,o=i.y1,a=i.x2,s=i.y2);var l=i.percent;0!==l&&(t.moveTo(r,o),l<1&&(a=r*(1-l)+a*l,s=o*(1-l)+s*l),t.lineTo(a,s))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}});return GZ=i}function pX(){if(qZ)return jZ;qZ=1;var t=function(t){this.colorStops=t||[]};return t.prototype={constructor:t,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}},jZ=t}function fX(){if($Z)return KZ;$Z=1;var t=hW(),e=pX(),n=function(t,n,i,r,o,a){this.x=null==t?0:t,this.y=null==n?0:n,this.x2=null==i?1:i,this.y2=null==r?0:r,this.type="linear",this.global=a||!1,e.call(this,o)};return n.prototype={constructor:n},t.inherits(n,e),KZ=n}function gX(){if(eX)return tX;eX=1;var t=hW().inherits,e=hY(),n=_U();function i(t){e.call(this,t),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}i.prototype.incremental=!0,i.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},i.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.dirty()},i.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},i.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},i.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){(e=this._displayables[t]).parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){var e;(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null}},i.prototype.brush=function(t,e){for(var n=this._cursor;n<this._displayables.length;n++){(i=this._displayables[n]).beforeBrush&&i.beforeBrush(t),i.brush(t,n===this._cursor?null:this._displayables[n-1]),i.afterBrush&&i.afterBrush(t)}this._cursor=n;for(n=0;n<this._temporaryDisplayables.length;n++){var i;(i=this._temporaryDisplayables[n]).beforeBrush&&i.beforeBrush(t),i.brush(t,0===n?null:this._temporaryDisplayables[n-1]),i.afterBrush&&i.afterBrush(t)}this._temporaryDisplayables=[],this.notClear=!0};var r=[];return i.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new n(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var i=this._displayables[e],o=i.getBoundingRect().clone();i.needLocalTransform()&&o.applyTransform(i.getLocalTransform(r)),t.union(o)}this._rect=t}return this._rect},i.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++){if(this._displayables[i].contain(t,e))return!0}return!1},t(i,e),tX=i}function vX(){if(nX)return DY;nX=1;var t=hW(),e=_Z(),n=KW(),i=GW(),r=mW(),o=xZ(),a=FW(),s=cY();DY.Image=s;var l=bU();DY.Group=l;var u=bZ();DY.Text=u;var h=wZ();DY.Circle=h;var c=function(){if(cZ)return hZ;cZ=1;var t=xZ(),e=SZ(),n=t.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:e(t.prototype.brush),buildPath:function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=e.startAngle,s=e.endAngle,l=e.clockwise,u=Math.cos(a),h=Math.sin(a);t.moveTo(u*r+n,h*r+i),t.lineTo(u*o+n,h*o+i),t.arc(n,i,o,a,s,!l),t.lineTo(Math.cos(s)*r+n,Math.sin(s)*r+i),0!==r&&t.arc(n,i,r,s,a,l),t.closePath()}});return hZ=n}();DY.Sector=c;var d=function(){if(pZ)return dZ;pZ=1;var t=xZ().extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)}});return dZ=t}();DY.Ring=d;var p=NZ();DY.Polygon=p;var f=EZ();DY.Polyline=f;var g=cX();DY.Rect=g;var v=dX();DY.Line=v;var m=function(){if(WZ)return HZ;WZ=1;var t=xZ(),e=mW(),n=PY(),i=n.quadraticSubdivide,r=n.cubicSubdivide,o=n.quadraticAt,a=n.cubicAt,s=n.quadraticDerivativeAt,l=n.cubicDerivativeAt,u=[];function h(t,e,n){var i=t.cpx2,r=t.cpy2;return null===i||null===r?[(n?l:a)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?l:a)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?s:o)(t.x1,t.cpx1,t.x2,e),(n?s:o)(t.y1,t.cpy1,t.y2,e)]}var c=t.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.x1,o=e.y1,a=e.x2,s=e.y2,l=e.cpx1,h=e.cpy1,c=e.cpx2,d=e.cpy2,p=e.percent;0!==p&&(t.moveTo(n,o),null==c||null==d?(p<1&&(i(n,l,a,p,u),l=u[1],a=u[2],i(o,h,s,p,u),h=u[1],s=u[2]),t.quadraticCurveTo(l,h,a,s)):(p<1&&(r(n,l,c,a,p,u),l=u[1],c=u[2],a=u[3],r(o,h,d,s,p,u),h=u[1],d=u[2],s=u[3]),t.bezierCurveTo(l,h,c,d,a,s)))},pointAt:function(t){return h(this.shape,t,!1)},tangentAt:function(t){var n=h(this.shape,t,!0);return e.normalize(n,n)}});return HZ=c}();DY.BezierCurve=m;var y=function(){if(YZ)return UZ;YZ=1;var t=xZ().extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+n,u*r+i),t.arc(n,i,r,o,a,!s)}});return UZ=t}();DY.Arc=y;var x=function(){if(XZ)return ZZ;XZ=1;var t=xZ(),e=t.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,n=0;n<e.length;n++)t=t||e[n].__dirtyPath;this.__dirtyPath=t,this.__dirty=this.__dirty||t},beforeBrush:function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},buildPath:function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},afterBrush:function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),t.prototype.getBoundingRect.call(this)}});return ZZ=e}();DY.CompoundPath=x;var _=fX();DY.LinearGradient=_;var b=function(){if(QZ)return JZ;QZ=1;var t=hW(),e=pX(),n=function(t,n,i,r,o){this.x=null==t?.5:t,this.y=null==n?.5:n,this.r=null==i?.5:i,this.type="radial",this.global=o||!1,e.call(this,r)};return n.prototype={constructor:n},t.inherits(n,e),JZ=n}();DY.RadialGradient=b;var w=_U();DY.BoundingRect=w;var S=gX();DY.IncrementalDisplayable=S;var M=hX(),I=Math.max,T=Math.min,C={},A="emphasis",D="normal",L=1,k={},P={};function O(t,e){P[t]=e}function R(t,n,i,r){var o=e.createFromString(t,n);return i&&("center"===r&&(i=N(i,o.getBoundingRect())),z(o,i)),o}function N(t,e){var n,i=e.width/e.height,r=t.height*i;return n=r<=t.width?t.height:(r=t.width)/i,{x:t.x+t.width/2-r/2,y:t.y+t.height/2-n/2,width:r,height:n}}var E=e.mergePath;function z(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}var V=M.subPixelOptimize;function B(t){return null!=t&&"none"!==t}var G=t.createHashMap(),F=0;function H(t){var e=t.__hoverStl;if(e&&!t.__highlighted){var n=t.__zr,i=t.useHoverLayer&&n&&"canvas"===n.painter.type;if(t.__highlighted=i?"layer":"plain",!(t.isGroup||!n&&t.useHoverLayer)){var r=t,o=t.style;i&&(o=(r=n.addHover(t)).style),rt(o),i||function(t){if(t.__hoverStlDirty){t.__hoverStlDirty=!1;var e=t.__hoverStl;if(e){var n=t.__cachedNormalStl={};t.__cachedNormalZ2=t.z2;var i=t.style;for(var r in e)null!=e[r]&&(n[r]=i[r]);n.fill=i.fill,n.stroke=i.stroke}else t.__cachedNormalStl=t.__cachedNormalZ2=null}}(r),o.extendFrom(e),W(o,e,"fill"),W(o,e,"stroke"),it(o),i||(t.dirty(!1),t.z2+=1)}}}function W(t,e,i){!B(e[i])&&B(t[i])&&(t[i]=function(t){if("string"!=typeof t)return t;var e=G.get(t);return e||(e=n.lift(t,-.1),F<1e4&&(G.set(t,e),F++)),e}(t[i]))}function U(t){var e=t.__highlighted;if(e&&(t.__highlighted=!1,!t.isGroup))if("layer"===e)t.__zr&&t.__zr.removeHover(t);else{var n=t.style,i=t.__cachedNormalStl;i&&(rt(n),t.setStyle(i),it(n));var r=t.__cachedNormalZ2;null!=r&&t.z2-r==1&&(t.z2=r)}}function Y(t,e,n){var i,r=D,o=D;t.__highlighted&&(r=A,i=!0),e(t,n),t.__highlighted&&(o=A,i=!0),t.isGroup&&t.traverse((function(t){!t.isGroup&&e(t,n)})),i&&t.__highDownOnUpdate&&t.__highDownOnUpdate(r,o)}function Z(t,e){e=t.__hoverStl=!1!==e&&(t.hoverStyle||e||{}),t.__hoverStlDirty=!0,t.__highlighted&&(t.__cachedNormalStl=null,U(t),H(t))}function X(t){!$(this,t)&&!this.__highByOuter&&Y(this,H)}function j(t){!$(this,t)&&!this.__highByOuter&&Y(this,U)}function q(t){this.__highByOuter|=1<<(t||0),Y(this,H)}function K(t){!(this.__highByOuter&=~(1<<(t||0)))&&Y(this,U)}function $(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function J(t,e){var n=!1===e;if(t.__highDownSilentOnTouch=t.highDownSilentOnTouch,t.__highDownOnUpdate=t.highDownOnUpdate,!n||t.__highDownDispatcher){var i=n?"off":"on";t[i]("mouseover",X)[i]("mouseout",j),t[i]("emphasis",q)[i]("normal",K),t.__highByOuter=t.__highByOuter||0,t.__highDownDispatcher=!n}}function Q(e,n,i,r,o){return tt(e,n,r,o),i&&t.extend(e,i),e}function tt(e,n,i,r){if((i=i||C).isRectText){var o;i.getTextPosition?o=i.getTextPosition(n,r):"outside"===(o=n.getShallow("position")||(r?null:"inside"))&&(o="top"),e.textPosition=o,e.textOffset=n.getShallow("offset");var a=n.getShallow("rotate");null!=a&&(a*=Math.PI/180),e.textRotation=a,e.textDistance=t.retrieve2(n.getShallow("distance"),r?null:5)}var s,l=n.ecModel,u=l&&l.option.textStyle,h=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||C).rich;if(n)for(var i in e=e||{},n)n.hasOwnProperty(i)&&(e[i]=1);t=t.parentModel}return e}(n);if(h)for(var c in s={},h)if(h.hasOwnProperty(c)){var d=n.getModel(["rich",c]);et(s[c]={},d,u,i,r)}return e.rich=s,et(e,n,u,i,r,!0),i.forceRich&&!i.textStyle&&(i.textStyle={}),e}function et(e,n,i,r,o,a){i=!o&&i||C,e.textFill=nt(n.getShallow("color"),r)||i.color,e.textStroke=nt(n.getShallow("textBorderColor"),r)||i.textBorderColor,e.textStrokeWidth=t.retrieve2(n.getShallow("textBorderWidth"),i.textBorderWidth),o||(a&&(e.insideRollbackOpt=r,it(e)),null==e.textFill&&(e.textFill=r.autoColor)),e.fontStyle=n.getShallow("fontStyle")||i.fontStyle,e.fontWeight=n.getShallow("fontWeight")||i.fontWeight,e.fontSize=n.getShallow("fontSize")||i.fontSize,e.fontFamily=n.getShallow("fontFamily")||i.fontFamily,e.textAlign=n.getShallow("align"),e.textVerticalAlign=n.getShallow("verticalAlign")||n.getShallow("baseline"),e.textLineHeight=n.getShallow("lineHeight"),e.textWidth=n.getShallow("width"),e.textHeight=n.getShallow("height"),e.textTag=n.getShallow("tag"),a&&r.disableBox||(e.textBackgroundColor=nt(n.getShallow("backgroundColor"),r),e.textPadding=n.getShallow("padding"),e.textBorderColor=nt(n.getShallow("borderColor"),r),e.textBorderWidth=n.getShallow("borderWidth"),e.textBorderRadius=n.getShallow("borderRadius"),e.textBoxShadowColor=n.getShallow("shadowColor"),e.textBoxShadowBlur=n.getShallow("shadowBlur"),e.textBoxShadowOffsetX=n.getShallow("shadowOffsetX"),e.textBoxShadowOffsetY=n.getShallow("shadowOffsetY")),e.textShadowColor=n.getShallow("textShadowColor")||i.textShadowColor,e.textShadowBlur=n.getShallow("textShadowBlur")||i.textShadowBlur,e.textShadowOffsetX=n.getShallow("textShadowOffsetX")||i.textShadowOffsetX,e.textShadowOffsetY=n.getShallow("textShadowOffsetY")||i.textShadowOffsetY}function nt(t,e){return"auto"!==t?t:e&&e.autoColor?e.autoColor:null}function it(t){var e,n=t.textPosition,i=t.insideRollbackOpt;if(i&&null==t.textFill){var r=i.autoColor,o=i.isRectText,a=i.useInsideStyle,s=!1!==a&&(!0===a||o&&n&&"string"==typeof n&&n.indexOf("inside")>=0),l=!s&&null!=r;(s||l)&&(e={textFill:t.textFill,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth}),s&&(t.textFill="#fff",null==t.textStroke&&(t.textStroke=r,null==t.textStrokeWidth&&(t.textStrokeWidth=2))),l&&(t.textFill=r)}t.insideRollback=e}function rt(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth,t.insideRollback=null)}function ot(t,e,n,i,r,o){if("function"==typeof r&&(o=r,r=null),i&&i.isAnimationEnabled()){var a=t?"Update":"",s=i.getShallow("animationDuration"+a),l=i.getShallow("animationEasing"+a),u=i.getShallow("animationDelay"+a);"function"==typeof u&&(u=u(r,i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null)),"function"==typeof s&&(s=s(r)),s>0?e.animateTo(n,s,u||0,l,o,!!o):(e.stopAnimation(),e.attr(n),o&&o())}else e.stopAnimation(),e.attr(n),o&&o()}function at(t,e,n,i,r){ot(!0,t,e,n,i,r)}function st(e,n,o){return n&&!t.isArrayLike(n)&&(n=a.getLocalTransform(n)),o&&(n=i.invert([],n)),r.applyTransform([],e,n)}function lt(t,e,n,i,r,o,a,s){var l,u=n-t,h=i-e,c=a-r,d=s-o,p=ut(c,d,u,h);if((l=p)<=1e-6&&l>=-1e-6)return!1;var f=t-r,g=e-o,v=ut(f,g,u,h)/p;if(v<0||v>1)return!1;var m=ut(f,g,c,d)/p;return!(m<0||m>1)}function ut(t,e,n,i){return t*i-n*e}return O("circle",h),O("sector",c),O("ring",d),O("polygon",p),O("polyline",f),O("rect",g),O("line",v),O("bezierCurve",m),O("arc",y),DY.Z2_EMPHASIS_LIFT=1,DY.CACHED_LABEL_STYLE_PROPERTIES={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},DY.extendShape=function(t){return o.extend(t)},DY.extendPath=function(t,n){return e.extendFromString(t,n)},DY.registerShape=O,DY.getShapeClass=function(t){if(P.hasOwnProperty(t))return P[t]},DY.makePath=R,DY.makeImage=function(t,e,n){var i=new s({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(N(e,r))}}});return i},DY.mergePath=E,DY.resizePath=z,DY.subPixelOptimizeLine=function(t){return M.subPixelOptimizeLine(t.shape,t.shape,t.style),t},DY.subPixelOptimizeRect=function(t){return M.subPixelOptimizeRect(t.shape,t.shape,t.style),t},DY.subPixelOptimize=V,DY.setElementHoverStyle=Z,DY.setHoverStyle=function(t,e){J(t,!0),Y(t,Z,e)},DY.setAsHighDownDispatcher=J,DY.isHighDownDispatcher=function(t){return!(!t||!t.__highDownDispatcher)},DY.getHighlightDigit=function(t){var e=k[t];return null==e&&L<=32&&(e=k[t]=L++),e},DY.setLabelStyle=function(e,n,i,r,o,a,s){var l,u=(o=o||C).labelFetcher,h=o.labelDataIndex,c=o.labelDimIndex,d=o.labelProp,p=i.getShallow("show"),f=r.getShallow("show");(p||f)&&(u&&(l=u.getFormattedLabel(h,"normal",null,c,d)),null==l&&(l=t.isFunction(o.defaultText)?o.defaultText(h,o):o.defaultText));var g=p?l:null,v=f?t.retrieve2(u?u.getFormattedLabel(h,"emphasis",null,c,d):null,l):null;null==g&&null==v||(Q(e,i,a,o),Q(n,r,s,o,!0)),e.text=g,n.text=v},DY.modifyLabelStyle=function(e,n,i){var r=e.style;n&&(rt(r),e.setStyle(n),it(r)),r=e.__hoverStl,i&&r&&(rt(r),t.extend(r,i),it(r))},DY.setTextStyle=Q,DY.setText=function(t,e,n){var i,r={isRectText:!0};!1===n?i=!0:r.autoColor=n,tt(t,e,r,i)},DY.getFont=function(e,n){var i=n&&n.getModel("textStyle");return t.trim([e.fontStyle||i&&i.getShallow("fontStyle")||"",e.fontWeight||i&&i.getShallow("fontWeight")||"",(e.fontSize||i&&i.getShallow("fontSize")||12)+"px",e.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" "))},DY.updateProps=at,DY.initProps=function(t,e,n,i,r){ot(!1,t,e,n,i,r)},DY.getTransform=function(t,e){for(var n=i.identity([]);t&&t!==e;)i.mul(n,t.getLocalTransform(),n),t=t.parent;return n},DY.applyTransform=st,DY.transformDirection=function(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return o=st(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"},DY.groupTransition=function(e,n,i,o){if(e&&n){var a,s=(a={},e.traverse((function(t){!t.isGroup&&t.anid&&(a[t.anid]=t)})),a);n.traverse((function(t){if(!t.isGroup&&t.anid){var e=s[t.anid];if(e){var n=l(t);t.attr(l(e)),at(t,n,i,t.dataIndex)}}}))}function l(e){var n={position:r.clone(e.position),rotation:e.rotation};return e.shape&&(n.shape=t.extend({},e.shape)),n}},DY.clipPointsByRect=function(e,n){return t.map(e,(function(t){var e=t[0];e=I(e,n.x),e=T(e,n.x+n.width);var i=t[1];return i=I(i,n.y),[e,i=T(i,n.y+n.height)]}))},DY.clipRectByRect=function(t,e){var n=I(t.x,e.x),i=T(t.x+t.width,e.x+e.width),r=I(t.y,e.y),o=T(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}},DY.createIcon=function(e,n,i){var r=(n=t.extend({rectHover:!0},n)).style={strokeNoScale:!0};if(i=i||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(r.image=e.slice(8),t.defaults(r,i),new s(n)):R(e.replace("path://",""),n,i,"center")},DY.linePolygonIntersect=function(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(lt(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}},DY.lineLineIntersect=lt,DY}function mX(){if(lX)return sX;lX=1;var t=hW(),e=sW(),n=mY().makeInner,i=TY(),r=i.enableClassExtend,o=i.enableClassCheck,a=function(){if(wY)return bY;wY=1;var t=CY()([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);return bY={getLineStyle:function(e){var n=t(this,e);return n.lineDash=this.getLineDash(n.lineWidth),n},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),n=Math.max(t,2),i=4*t;return"solid"!==e&&null!=e&&("dashed"===e?[i,i]:[n,n])}}}(),s=function(){if(MY)return SY;MY=1;var t=CY()([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]);return SY={getAreaStyle:function(e,n){return t(this,e,n)}}}(),l=function(){if(rX)return iX;rX=1;var t=UU(),e=vX(),n=["textStyle","color"];return iX={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(n):null)},getFont:function(){return e.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(e){return t.getBoundingRect(e,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}}}(),u=function(){if(aX)return oX;aX=1;var t=CY()([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]);return oX={getItemStyle:function(e,n){var i=t(this,e,n),r=this.getBorderLineDash();return r&&(i.lineDash=r),i},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}}}(),h=t.mixin,c=n();function d(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}function p(t,e,n){for(var i=0;i<e.length&&(!e[i]||null!=(t=t&&"object"==typeof t?t[e[i]]:null));i++);return null==t&&n&&(t=n.get(e)),t}function f(t,e){var n=c(t).getParent;return n?n.call(t,e):t.parentModel}return d.prototype={constructor:d,init:null,mergeOption:function(e){t.merge(this.option,e,!0)},get:function(t,e){return null==t?this.option:p(this.option,this.parsePath(t),!e&&f(this,t))},getShallow:function(t,e){var n=this.option,i=null==n?n:n[t],r=!e&&f(this,t);return null==i&&r&&(i=r.getShallow(t)),i},getModel:function(t,e){var n;return new d(null==t?this.option:p(this.option,t=this.parsePath(t)),e=e||(n=f(this,t))&&n.getModel(t),this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){return new(0,this.constructor)(t.clone(this.option))},setReadOnly:function(t){},parsePath:function(t){return"string"==typeof t&&(t=t.split(".")),t},customizeGetParent:function(t){c(this).getParent=t},isAnimationEnabled:function(){if(!e.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},r(d),o(d),h(d,a),h(d,s),h(d,l),h(d,u),sX=d}var yX,xX={};function _X(){if(yX)return xX;yX=1;var t=hW(),e=TY().parseClassType,n=0;return xX.getUID=function(t){return[t||"",n++,Math.random().toFixed(5)].join("_")},xX.enableSubTypeDefaulter=function(t){var n={};return t.registerSubTypeDefaulter=function(t,i){t=e(t),n[t.main]=i},t.determineSubType=function(i,r){var o=r.type;if(!o){var a=e(i).main;t.hasSubTypes(i)&&n[a]&&(o=n[a](r))}return o},t},xX.enableTopologicalTravel=function(e,n){function i(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}e.topologicalTravel=function(e,r,o,a){if(e.length){var s=function(e){var r={},o=[];return t.each(e,(function(a){var s=i(r,a),l=function(e,n){var i=[];return t.each(e,(function(e){t.indexOf(n,e)>=0&&i.push(e)})),i}(s.originalDeps=n(a),e);s.entryCount=l.length,0===s.entryCount&&o.push(a),t.each(l,(function(e){t.indexOf(s.predecessor,e)<0&&s.predecessor.push(e);var n=i(r,e);t.indexOf(n.successor,e)<0&&n.successor.push(a)}))})),{graph:r,noEntryList:o}}(r),l=s.graph,u=s.noEntryList,h={};for(t.each(e,(function(t){h[t]=!0}));u.length;){var c=u.pop(),d=l[c],p=!!h[c];p&&(o.call(a,c,d.originalDeps.slice()),delete h[c]),t.each(d.successor,p?g:f)}t.each(h,(function(){throw new Error("Circle dependency may exists")}))}function f(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}function g(t){h[t]=!0,f(t)}}},xX}var bX,wX={},SX={};function MX(){if(bX)return SX;bX=1;var t=hW(),e=1e-4;var n=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function i(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}return SX.linearMap=function(t,e,n,i){var r=e[1]-e[0],o=n[1]-n[0];if(0===r)return 0===o?n[0]:(n[0]+n[1])/2;if(i)if(r>0){if(t<=e[0])return n[0];if(t>=e[1])return n[1]}else{if(t>=e[0])return n[0];if(t<=e[1])return n[1]}else{if(t===e[0])return n[0];if(t===e[1])return n[1]}return(t-e[0])/r*o+n[0]},SX.parsePercent=function(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n},SX.round=function(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t},SX.asc=function(t){return t.sort((function(t,e){return t-e})),t},SX.getPrecision=function(t){if(t=+t,isNaN(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n},SX.getPrecisionSafe=function(t){var e=t.toString(),n=e.indexOf("e");if(n>0){var i=+e.slice(n+1);return i<0?-i:0}var r=e.indexOf(".");return r<0?0:e.length-1-r},SX.getPixelPrecision=function(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20},SX.getPercentWithPrecision=function(e,n,i){if(!e[n])return 0;var r=t.reduce(e,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===r)return 0;for(var o=Math.pow(10,i),a=t.map(e,(function(t){return(isNaN(t)?0:t)/r*o*100})),s=100*o,l=t.map(a,(function(t){return Math.floor(t)})),u=t.reduce(l,(function(t,e){return t+e}),0),h=t.map(a,(function(t,e){return t-l[e]}));u<s;){for(var c=Number.NEGATIVE_INFINITY,d=null,p=0,f=h.length;p<f;++p)h[p]>c&&(c=h[p],d=p);++l[d],h[d]=0,++u}return l[n]/o},SX.MAX_SAFE_INTEGER=9007199254740991,SX.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},SX.isRadianAroundZero=function(t){return t>-1e-4&&t<e},SX.parseDate=function(t){if(t instanceof Date)return t;if("string"==typeof t){var e=n.exec(t);if(!e)return new Date(NaN);if(e[8]){var i=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(i-=e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,i,+(e[5]||0),+e[6]||0,+e[7]||0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0)}return null==t?new Date(NaN):new Date(Math.round(t))},SX.quantity=function(t){return Math.pow(10,i(t))},SX.quantityExponent=i,SX.nice=function(t,e){var n=i(t),r=Math.pow(10,n),o=t/r;return t=(e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10)*r,n>=-20?+t.toFixed(n<0?-n:0):t},SX.quantile=function(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r},SX.reformIntervals=function(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,i=0;i<t.length;){for(var r=t[i].interval,o=t[i].close,a=0;a<2;a++)r[a]<=e&&(r[a]=e,o[a]=a?1:1-n),e=r[a],n=o[a];r[0]===r[1]&&o[0]*o[1]!=1?t.splice(i,1):i++}return t;function s(t,e,n){return t.interval[n]<e.interval[n]||t.interval[n]===e.interval[n]&&(t.close[n]-e.close[n]==(n?-1:1)||!n&&s(t,e,1))}},SX.isNumeric=function(t){return t-parseFloat(t)>=0},SX}var IX,TX,CX,AX,DX,LX,kX,PX,OX,RX,NX={};function EX(){if(IX)return NX;IX=1;var t=hW(),e=UU(),n=MX();var i=t.normalizeCssArray,r=/([&<>"'])/g,o={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function a(t){return null==t?"":(t+"").replace(r,(function(t,e){return o[e]}))}var s=["a","b","c","d","e","f","g"],l=function(t,e){return"{"+t+(null==e?"":e)+"}"};function u(t,e){return"0000".substr(0,e-(t+="").length)+t}var h=e.truncateText;return NX.addCommas=function(t){return isNaN(t)?"-":(t=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")},NX.toCamelCase=function(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},NX.normalizeCssArray=i,NX.encodeHTML=a,NX.formatTpl=function(e,n,i){t.isArray(n)||(n=[n]);var r=n.length;if(!r)return"";for(var o=n[0].$vars||[],u=0;u<o.length;u++){var h=s[u];e=e.replace(l(h),l(h,0))}for(var c=0;c<r;c++)for(var d=0;d<o.length;d++){var p=n[c][o[d]];e=e.replace(l(s[d],c),i?a(p):p)}return e},NX.formatTplSimple=function(e,n,i){return t.each(n,(function(t,n){e=e.replace("{"+n+"}",i?a(t):t)})),e},NX.getTooltipMarker=function(e,n){var i=(e=t.isString(e)?{color:e,extraCssText:n}:e||{}).color,r=e.type,o=(n=e.extraCssText,e.renderMode||"html"),s=e.markerId||"X";return i?"html"===o?"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+a(i)+";"+(n||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+a(i)+";"+(n||"")+'"></span>':{renderMode:o,content:"{marker"+s+"|}  ",style:{color:i}}:""},NX.formatTime=function(t,e,i){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var r=n.parseDate(e),o=i?"UTC":"",a=r["get"+o+"FullYear"](),s=r["get"+o+"Month"]()+1,l=r["get"+o+"Date"](),h=r["get"+o+"Hours"](),c=r["get"+o+"Minutes"](),d=r["get"+o+"Seconds"](),p=r["get"+o+"Milliseconds"]();return t=t.replace("MM",u(s,2)).replace("M",s).replace("yyyy",a).replace("yy",a%100).replace("dd",u(l,2)).replace("d",l).replace("hh",u(h,2)).replace("h",h).replace("mm",u(c,2)).replace("m",c).replace("ss",u(d,2)).replace("s",d).replace("SSS",u(p,3))},NX.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},NX.truncateText=h,NX.getTextBoundingRect=function(t){return e.getBoundingRect(t.text,t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich,t.truncate)},NX.getTextRect=function(t,n,i,r,o,a,s,l){return e.getBoundingRect(t,n,i,r,o,l,a,s)},NX.windowOpen=function(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location=t}else window.open(t,e)},NX}function zX(){if(TX)return wX;TX=1;var t=hW(),e=_U(),n=MX().parsePercent,i=EX(),r=t.each,o=["left","right","top","bottom","width","height"],a=[["width","left","right"],["height","top","bottom"]];function s(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(l,u){var h,c,d=l.position,p=l.getBoundingRect(),f=e.childAt(u+1),g=f&&f.getBoundingRect();if("horizontal"===t){var v=p.width+(g?-g.x+p.x:0);(h=o+v)>i||l.newline?(o=0,h=v,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var m=p.height+(g?-g.y+p.y:0);(c=a+m)>r||l.newline?(o+=s+n,a=0,c=m,s=p.width):s=Math.max(s,p.width)}l.newline||(d[0]=o,d[1]=a,"horizontal"===t?o=h+n:a=c+n)}))}var l=s,u=t.curry(s,"vertical"),h=t.curry(s,"horizontal");function c(t,r,o){o=i.normalizeCssArray(o||0);var a=r.width,s=r.height,l=n(t.left,a),u=n(t.top,s),h=n(t.right,a),c=n(t.bottom,s),d=n(t.width,a),p=n(t.height,s),f=o[2]+o[0],g=o[1]+o[3],v=t.aspect;switch(isNaN(d)&&(d=a-h-g-l),isNaN(p)&&(p=s-c-f-u),null!=v&&(isNaN(d)&&isNaN(p)&&(v>a/s?d=.8*a:p=.8*s),isNaN(d)&&(d=v*p),isNaN(p)&&(p=d/v)),isNaN(l)&&(l=a-h-d-g),isNaN(u)&&(u=s-c-p-f),t.left||t.right){case"center":l=a/2-d/2-o[3];break;case"right":l=a-d-g}switch(t.top||t.bottom){case"middle":case"center":u=s/2-p/2-o[0];break;case"bottom":u=s-p-f}l=l||0,u=u||0,isNaN(d)&&(d=a-g-l-(h||0)),isNaN(p)&&(p=s-f-u-(c||0));var m=new e(l+o[3],u+o[0],d,p);return m.margin=o,m}function d(t,e){return e&&t&&r(o,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}return wX.LOCATION_PARAMS=o,wX.HV_NAMES=a,wX.box=l,wX.vbox=u,wX.hbox=h,wX.getAvailableSize=function(t,e,r){var o=e.width,a=e.height,s=n(t.x,o),l=n(t.y,a),u=n(t.x2,o),h=n(t.y2,a);return(isNaN(s)||isNaN(parseFloat(t.x)))&&(s=0),(isNaN(u)||isNaN(parseFloat(t.x2)))&&(u=o),(isNaN(l)||isNaN(parseFloat(t.y)))&&(l=0),(isNaN(h)||isNaN(parseFloat(t.y2)))&&(h=a),r=i.normalizeCssArray(r||0),{width:Math.max(u-s-r[1]-r[3],0),height:Math.max(h-l-r[0]-r[2],0)}},wX.getLayoutRect=c,wX.positionElement=function(n,i,r,o,a){var s=!a||!a.hv||a.hv[0],l=!a||!a.hv||a.hv[1],u=a&&a.boundingMode||"all";if(s||l){var h;if("raw"===u)h="group"===n.type?new e(0,0,+i.width||0,+i.height||0):n.getBoundingRect();else if(h=n.getBoundingRect(),n.needLocalTransform()){var d=n.getLocalTransform();(h=h.clone()).applyTransform(d)}i=c(t.defaults({width:h.width,height:h.height},i),r,o);var p=n.position,f=s?i.x-h.x:0,g=l?i.y-h.y:0;n.attr("position","raw"===u?[f,g]:[p[0]+f,p[1]+g])}},wX.sizeCalculable=function(t,e){return null!=t[a[e][0]]||null!=t[a[e][1]]&&null!=t[a[e][2]]},wX.mergeLayoutParam=function(e,n,i){!t.isObject(i)&&(i={});var o=i.ignoreSize;!t.isArray(o)&&(o=[o,o]);var s=u(a[0],0),l=u(a[1],1);function u(t,i){var a={},s=0,l={},u=0;if(r(t,(function(t){l[t]=e[t]})),r(t,(function(t){h(n,t)&&(a[t]=l[t]=n[t]),c(a,t)&&s++,c(l,t)&&u++})),o[i])return c(n,t[1])?l[t[2]]=null:c(n,t[2])&&(l[t[1]]=null),l;if(2!==u&&s){if(s>=2)return a;for(var d=0;d<t.length;d++){var p=t[d];if(!h(a,p)&&h(e,p)){a[p]=e[p];break}}return a}return l}function h(t,e){return t.hasOwnProperty(e)}function c(t,e){return null!=t[e]&&"auto"!==t[e]}function d(t,e,n){r(t,(function(t){e[t]=n[t]}))}d(a[0],e,s),d(a[1],e,l)},wX.getLayoutParams=function(t){return d({},t)},wX.copyLayoutParams=d,wX}function VX(){if(LX)return DX;LX=1;var t=hW(),e=mX(),n=_X(),i=TY(),r=i.enableClassManagement,o=i.parseClassType,a=mY().makeInner,s=zX(),l=AX?CX:(AX=1,CX={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}}),u=a(),h=e.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,i,r,o){e.call(this,t,i,r,o),this.uid=n.getUID("ec_cpt_model")},init:function(t,e,n,i){this.mergeDefaultAndTheme(t,n)},mergeDefaultAndTheme:function(e,n){var i=this.layoutMode,r=i?s.getLayoutParams(e):{},o=n.getTheme();t.merge(e,o.get(this.mainType)),t.merge(e,this.getDefaultOption()),i&&s.mergeLayoutParam(e,r,i)},mergeOption:function(e,n){t.merge(this.option,e,!0);var i=this.layoutMode;i&&s.mergeLayoutParam(this.option,e,i)},optionUpdated:function(t,e){},getDefaultOption:function(){var e=u(this);if(!e.defaultOption){for(var n=[],i=this.constructor;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;a>=0;a--)o=t.merge(o,n[a],!0);e.defaultOption=o}return e.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});return r(h,{registerWhenExtend:!0}),n.enableSubTypeDefaulter(h),n.enableTopologicalTravel(h,(function(e){var n=[];t.each(h.getClassesByMainType(e),(function(t){n=n.concat(t.prototype.dependencies||[])})),n=t.map(n,(function(t){return o(t).main})),"dataset"!==e&&t.indexOf(n,"dataset")<=0&&n.unshift("dataset");return n})),t.mixin(h,l),DX=h}function BX(){if(RX)return OX;RX=1;var t=mY(),e=t.makeInner,n=t.normalizeToArray,i=e();var r={clearColorPalette:function(){i(this).colorIdx=0,i(this).colorNameMap={}},getColorFromPalette:function(t,e,r){var o=i(e=e||this),a=o.colorIdx||0,s=o.colorNameMap=o.colorNameMap||{};if(s.hasOwnProperty(t))return s[t];var l=n(this.get("color",!0)),u=this.get("colorLayer",!0),h=null!=r&&u?function(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}(u,r):l;if((h=h||l)&&h.length){var c=h[a];return t&&(s[t]=c),o.colorIdx=(a+1)%h.length,c}}};return OX=r}var GX,FX,HX,WX,UX,YX,ZX,XX,jX,qX,KX,$X,JX,QX,tj,ej,nj,ij,rj={},oj={};function aj(){if(GX)return oj;GX=1;return oj.SOURCE_FORMAT_ORIGINAL="original",oj.SOURCE_FORMAT_ARRAY_ROWS="arrayRows",oj.SOURCE_FORMAT_OBJECT_ROWS="objectRows",oj.SOURCE_FORMAT_KEYED_COLUMNS="keyedColumns",oj.SOURCE_FORMAT_UNKNOWN="unknown",oj.SOURCE_FORMAT_TYPED_ARRAY="typedArray",oj.SERIES_LAYOUT_BY_COLUMN="column",oj.SERIES_LAYOUT_BY_ROW="row",oj}function sj(){if(HX)return FX;HX=1;var t=hW(),e=t.createHashMap,n=t.isTypedArray,i=TY().enableClassCheck,r=aj(),o=r.SOURCE_FORMAT_ORIGINAL,a=r.SERIES_LAYOUT_BY_COLUMN,s=r.SOURCE_FORMAT_UNKNOWN,l=r.SOURCE_FORMAT_TYPED_ARRAY,u=r.SOURCE_FORMAT_KEYED_COLUMNS;function h(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===u?{}:[]),this.sourceFormat=t.sourceFormat||s,this.seriesLayoutBy=t.seriesLayoutBy||a,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&e(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}return h.seriesDataToSource=function(t){return new h({data:t,sourceFormat:n(t)?l:o,fromDataset:!1})},i(h),FX=h}function lj(){if(WX)return rj;WX=1,tW().__DEV__;var t=mY(),e=t.makeInner,n=t.getDataItemValue,i=hW(),r=i.createHashMap,o=i.each,a=i.map,s=i.isArray,l=i.isString,u=i.isObject,h=i.isTypedArray,c=i.isArrayLike,d=i.extend;i.assert;var p=sj(),f=aj(),g=f.SOURCE_FORMAT_ORIGINAL,v=f.SOURCE_FORMAT_ARRAY_ROWS,m=f.SOURCE_FORMAT_OBJECT_ROWS,y=f.SOURCE_FORMAT_KEYED_COLUMNS,x=f.SOURCE_FORMAT_UNKNOWN,_=f.SOURCE_FORMAT_TYPED_ARRAY,b=f.SERIES_LAYOUT_BY_ROW,w={Must:1,Might:2,Not:3},S=e();function M(t){if(t){var e=r();return a(t,(function(t,n){if(null==(t=d({},u(t)?t:{name:t})).name)return t;t.name+="",null==t.displayName&&(t.displayName=t.name);var i=e.get(t.name);return i?t.name+="-"+i.count++:e.set(t.name,{count:1}),t}))}}function I(t,e,n,i){if(null==i&&(i=1/0),e===b)for(var r=0;r<n.length&&r<i;r++)t(n[r]?n[r][0]:null,r);else{var o=n[0]||[];for(r=0;r<o.length&&r<i;r++)t(o[r],r)}}function T(t){var e=t.option;if(!e.data)return t.ecModel.getComponent("dataset",e.datasetIndex||0)}function C(t,e,i,r,o,a){var c,d,p;if(h(t))return w.Not;if(r){var f=r[a];u(f)?(d=f.name,p=f.type):l(f)&&(d=f)}if(null!=p)return"ordinal"===p?w.Must:w.Not;if(e===v)if(i===b){for(var x=t[a],_=0;_<(x||[]).length&&_<5;_++)if(null!=(c=T(x[o+_])))return c}else for(_=0;_<t.length&&_<5;_++){var S=t[o+_];if(S&&null!=(c=T(S[a])))return c}else if(e===m){if(!d)return w.Not;for(_=0;_<t.length&&_<5;_++){if((M=t[_])&&null!=(c=T(M[d])))return c}}else if(e===y){if(!d)return w.Not;if(!(x=t[d])||h(x))return w.Not;for(_=0;_<x.length&&_<5;_++)if(null!=(c=T(x[_])))return c}else if(e===g)for(_=0;_<t.length&&_<5;_++){var M=t[_],I=n(M);if(!s(I))return w.Not;if(null!=(c=T(I[a])))return c}function T(t){var e=l(t);return null!=t&&isFinite(t)&&""!==t?e?w.Might:w.Not:e&&"-"!==t?w.Must:void 0}return w.Not}return rj.BE_ORDINAL=w,rj.detectSourceFormat=function(t){var e=t.option.source,n=x;if(h(e))n=_;else if(s(e)){0===e.length&&(n=v);for(var i=0,r=e.length;i<r;i++){var o=e[i];if(null!=o){if(s(o)){n=v;break}if(u(o)){n=m;break}}}}else if(u(e)){for(var a in e)if(e.hasOwnProperty(a)&&c(e[a])){n=y;break}}else if(null!=e)throw new Error("Invalid data");S(t).sourceFormat=n},rj.getSource=function(t){return S(t).source},rj.resetSourceDefaulter=function(t){S(t).datasetMap=r()},rj.prepareSource=function(t){var e=t.option,i=e.data,r=h(i)?_:g,a=!1,u=e.seriesLayoutBy,c=e.sourceHeader,d=e.dimensions,f=T(t);if(f){var x=f.option;i=x.source,r=S(f).sourceFormat,a=!0,u=u||x.seriesLayoutBy,null==c&&(c=x.sourceHeader),d=d||x.dimensions}var w=function(t,e,i,r,a){if(!t)return{dimensionsDefine:M(a)};var u,h;if(e===v)"auto"===r||null==r?I((function(t){null!=t&&"-"!==t&&(l(t)?null==h&&(h=1):h=0)}),i,t,10):h=r?1:0,a||1!==h||(a=[],I((function(t,e){a[e]=null!=t?t:""}),i,t)),u=a?a.length:i===b?t.length:t[0]?t[0].length:null;else if(e===m)a||(a=function(t){var e,n=0;for(;n<t.length&&!(e=t[n++]););if(e){var i=[];return o(e,(function(t,e){i.push(e)})),i}}(t));else if(e===y)a||(a=[],o(t,(function(t,e){a.push(e)})));else if(e===g){var c=n(t[0]);u=s(c)&&c.length||1}return{startIndex:h,dimensionsDefine:M(a),dimensionsDetectCount:u}}(i,r,u,c,d);S(t).source=new p({data:i,fromDataset:a,seriesLayoutBy:u,sourceFormat:r,dimensionsDefine:w.dimensionsDefine,startIndex:w.startIndex,dimensionsDetectCount:w.dimensionsDetectCount,encodeDefine:e.encode})},rj.makeSeriesEncodeForAxisCoordSys=function(t,e,n){var i={},r=T(e);if(!r||!t)return i;var a,s,l=[],h=[],c=e.ecModel,d=S(c).datasetMap,p=r.uid+"_"+n.seriesLayoutBy;t=t.slice(),o(t,(function(e,n){!u(e)&&(t[n]={name:e}),"ordinal"===e.type&&null==a&&(a=n,s=v(t[n])),i[e.name]=[]}));var f=d.get(p)||d.set(p,{categoryWayDim:s,valueWayDim:0});function g(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function v(t){var e=t.dimsDef;return e?e.length:1}return o(t,(function(t,e){var n=t.name,r=v(t);if(null==a){var o=f.valueWayDim;g(i[n],o,r),g(h,o,r),f.valueWayDim+=r}else if(a===e)g(i[n],0,r),g(l,0,r);else{o=f.categoryWayDim;g(i[n],o,r),g(h,o,r),f.categoryWayDim+=r}})),l.length&&(i.itemName=l),h.length&&(i.seriesName=h),i},rj.makeSeriesEncodeForNameBased=function(t,e,n){var i={};if(!T(t))return i;var r,a=e.sourceFormat,s=e.dimensionsDefine;a!==m&&a!==y||o(s,(function(t,e){"name"===(u(t)?t.name:t)&&(r=e)}));var l=function(){for(var t={},i={},o=[],l=0,u=Math.min(5,n);l<u;l++){var h=C(e.data,a,e.seriesLayoutBy,s,e.startIndex,l);o.push(h);var c=h===w.Not;if(c&&null==t.v&&l!==r&&(t.v=l),(null==t.n||t.n===t.v||!c&&o[t.n]===w.Not)&&(t.n=l),d(t)&&o[t.n]!==w.Not)return t;c||(h===w.Might&&null==i.v&&l!==r&&(i.v=l),null!=i.n&&i.n!==i.v||(i.n=l))}function d(t){return null!=t.v&&null!=t.n}return d(t)?t:d(i)?i:null}();if(l){i.value=l.v;var h=null!=r?r:l.n;i.itemName=[h],i.seriesName=[h]}return i},rj.guessOrdinal=function(t,e){return C(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)},rj}function uj(){if(YX)return UX;YX=1,tW().__DEV__;var t=hW(),e=t.each,n=t.filter,i=t.map,r=t.isArray,o=t.indexOf,a=t.isObject,s=t.isString,l=t.createHashMap,u=t.assert,h=t.clone,c=t.merge,d=t.extend,p=t.mixin,f=mY(),g=mX(),v=VX(),m=function(){if(PX)return kX;PX=1;var t="";"undefined"!=typeof navigator&&(t=navigator.platform||"");var e={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:t.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};return kX=e}(),y=BX(),x=lj().resetSourceDefaulter,_="\0_ec_inner",b=g.extend({init:function(t,e,n,i){n=n||{},this.option=null,this._theme=new g(n),this._optionManager=i},setOption:function(t,e){u(!(_ in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption(null)},resetOption:function(t){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(r)):w.call(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(this.mergeOption(o),n=!0)}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this,this._api);a.length&&e(a,(function(t){this.mergeOption(t,n=!0)}),this)}return n},mergeOption:function(t){var n=this.option,i=this._componentsMap,o=[];x(this),e(t,(function(t,e){null!=t&&(v.hasClass(e)?e&&o.push(e):n[e]=null==n[e]?h(t):c(n[e],t,!0))})),v.topologicalTravel(o,v.getAllClassMainTypes(),(function(o,s){var l=f.normalizeToArray(t[o]),h=f.mappingToExists(i.get(o),l);f.makeIdAndName(h),e(h,(function(t,e){var n=t.option;a(n)&&(t.keyInfo.mainType=o,t.keyInfo.subType=function(t,e,n){var i=e.type?e.type:n?n.subType:v.determineSubType(t,e);return i}(o,n,t.exist))}));var c=function(t,n){r(n)||(n=n?[n]:[]);var i={};return e(n,(function(e){i[e]=(t.get(e)||[]).slice()})),i}(i,s);n[o]=[],i.set(o,[]),e(h,(function(t,e){var r=t.exist,s=t.option;if(u(a(s)||r,"Empty component definition"),s){var l=v.getClass(o,t.keyInfo.subType,!0);if(r&&r.constructor===l)r.name=t.keyInfo.name,r.mergeOption(s,this),r.optionUpdated(s,!1);else{var h=d({dependentModels:c,componentIndex:e},t.keyInfo);r=new l(s,this,this,h),d(r,h),r.init(s,this,this,h),r.optionUpdated(null,!0)}}else r.mergeOption({},this),r.optionUpdated({},!1);i.get(o)[e]=r,n[o][e]=r.option}),this),"series"===o&&S(this,i.get("series"))}),this),this._seriesIndicesMap=l(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var t=h(this.option);return e(t,(function(e,n){if(v.hasClass(n)){for(var i=(e=f.normalizeToArray(e)).length-1;i>=0;i--)f.isIdInner(e[i])&&e.splice(i,1);t[n]=e}})),delete t[_],t},getTheme:function(){return this._theme},getComponent:function(t,e){var n=this._componentsMap.get(t);if(n)return n[e||0]},queryComponents:function(t){var e=t.mainType;if(!e)return[];var a,s=t.index,l=t.id,u=t.name,h=this._componentsMap.get(e);if(!h||!h.length)return[];if(null!=s)r(s)||(s=[s]),a=n(i(s,(function(t){return h[t]})),(function(t){return!!t}));else if(null!=l){var c=r(l);a=n(h,(function(t){return c&&o(l,t.id)>=0||!c&&t.id===l}))}else if(null!=u){var d=r(u);a=n(h,(function(t){return d&&o(u,t.name)>=0||!d&&t.name===u}))}else a=h.slice();return M(a,t)},findComponents:function(t){var e,i,r,o,a,s=t.query,l=t.mainType,u=(i=l+"Index",r=l+"Id",o=l+"Name",!(e=s)||null==e[i]&&null==e[r]&&null==e[o]?null:{mainType:l,index:e[i],id:e[r],name:e[o]}),h=u?this.queryComponents(u):this._componentsMap.get(l);return a=M(h,t),t.filter?n(a,t.filter):a},eachComponent:function(t,n,i){var r=this._componentsMap;if("function"==typeof t)i=n,n=t,r.each((function(t,r){e(t,(function(t,e){n.call(i,r,t,e)}))}));else if(s(t))e(r.get(t),n,i);else if(a(t)){var o=this.findComponents(t);e(o,n,i)}},getSeriesByName:function(t){var e=this._componentsMap.get("series");return n(e,(function(e){return e.name===t}))},getSeriesByIndex:function(t){return this._componentsMap.get("series")[t]},getSeriesByType:function(t){var e=this._componentsMap.get("series");return n(e,(function(e){return e.subType===t}))},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(t,n){e(this._seriesIndices,(function(e){var i=this._componentsMap.get("series")[e];t.call(n,i,e)}),this)},eachRawSeries:function(t,n){e(this._componentsMap.get("series"),t,n)},eachSeriesByType:function(t,n,i){e(this._seriesIndices,(function(e){var r=this._componentsMap.get("series")[e];r.subType===t&&n.call(i,r,e)}),this)},eachRawSeriesByType:function(t,n,i){return e(this.getSeriesByType(t),n,i)},isSeriesFiltered:function(t){return null==this._seriesIndicesMap.get(t.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){S(this,n(this._componentsMap.get("series"),t,e))},restoreData:function(t){var n=this._componentsMap;S(this,n.get("series"));var i=[];n.each((function(t,e){i.push(e)})),v.topologicalTravel(i,v.getAllClassMainTypes(),(function(i,r){e(n.get(i),(function(e){("series"!==i||!function(t,e){if(e){var n=e.seiresIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}(e,t))&&e.restoreData()}))}))}});function w(t){var n,i,r;this.option={},this.option[_]=1,this._componentsMap=l({series:[]}),this._seriesIndices,this._seriesIndicesMap,n=t,i=this._theme.option,r=n.color&&!n.colorLayer,e(i,(function(t,e){"colorLayer"===e&&r||v.hasClass(e)||("object"==typeof t?n[e]=n[e]?c(n[e],t,!1):h(t):null==n[e]&&(n[e]=t))})),c(t,m,!1),this.mergeOption(t)}function S(t,e){t._seriesIndicesMap=l(t._seriesIndices=i(e,(function(t){return t.componentIndex}))||[])}function M(t,e){return e.hasOwnProperty("subType")?n(t,(function(t){return t.subType===e.subType})):t}return p(b,y),UX=b}function hj(){if(XX)return ZX;XX=1;var t=hW(),e=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];return ZX=function(n){t.each(e,(function(e){this[e]=t.bind(n[e],n)}),this)}}function cj(){if(qX)return jX;qX=1;var t=hW(),e={};function n(){this._coordinateSystems=[]}return n.prototype={constructor:n,create:function(n,i){var r=[];t.each(e,(function(t,e){var o=t.create(n,i);r=r.concat(o||[])})),this._coordinateSystems=r},update:function(e,n){t.each(this._coordinateSystems,(function(t){t.update&&t.update(e,n)}))},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},n.register=function(t,n){e[t]=n},n.get=function(t){return e[t]},jX=n}function dj(){if($X)return KX;$X=1;var t=hW(),e=mY(),n=VX(),i=t.each,r=t.clone,o=t.map,a=t.merge,s=/^(min|max)?(.+)$/;function l(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function u(e,n,r){var o,a,s=[],l=[],u=e.timeline;if(e.baseOption&&(a=e.baseOption),(u||e.options)&&(a=a||{},s=(e.options||[]).slice()),e.media){a=a||{};var h=e.media;i(h,(function(t){t&&t.option&&(t.query?l.push(t):o||(o=t))}))}return a||(a=e),a.timeline||(a.timeline=u),i([a].concat(s).concat(t.map(l,(function(t){return t.option}))),(function(t){i(n,(function(e){e(t,r)}))})),{baseOption:a,timelineOptions:s,mediaDefault:o,mediaList:l}}function h(e,n,i){var r={width:n,height:i,aspectratio:n/i},o=!0;return t.each(e,(function(t,e){var n=e.match(s);if(n&&n[1]&&n[2]){var i=n[1],a=n[2].toLowerCase();(function(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e})(r[a],t,i)||(o=!1)}})),o}return l.prototype={constructor:l,setOption:function(s,l){s&&t.each(e.normalizeToArray(s.series),(function(e){e&&e.data&&t.isTypedArray(e.data)&&t.setAsPrimitive(e.data)})),s=r(s);var h,c,d=this._optionBackup,p=u.call(this,s,l,!d);this._newBaseOption=p.baseOption,d?(h=d.baseOption,c=p.baseOption,i(c=c||{},(function(t,i){if(null!=t){var r=h[i];if(n.hasClass(i)){t=e.normalizeToArray(t),r=e.normalizeToArray(r);var s=e.mappingToExists(r,t);h[i]=o(s,(function(t){return t.option&&t.exist?a(t.exist,t.option,!0):t.exist||t.option}))}else h[i]=a(r,t,!0)}})),p.timelineOptions.length&&(d.timelineOptions=p.timelineOptions),p.mediaList.length&&(d.mediaList=p.mediaList),p.mediaDefault&&(d.mediaDefault=p.mediaDefault)):this._optionBackup=p},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=o(e.timelineOptions,r),this._mediaList=o(e.mediaList,r),this._mediaDefault=r(e.mediaDefault),this._currentMediaIndices=[],r(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=r(n[i.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e,n,i=this._api.getWidth(),a=this._api.getHeight(),s=this._mediaList,l=this._mediaDefault,u=[],c=[];if(!s.length&&!l)return c;for(var d=0,p=s.length;d<p;d++)h(s[d].query,i,a)&&u.push(d);return!u.length&&l&&(u=[-1]),u.length&&(e=u,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(c=o(u,(function(t){return r(-1===t?l.option:s[t].option)}))),this._currentMediaIndices=u,c}},KX=l}function pj(){if(QX)return JX;QX=1;var t=hW(),e=mY(),n=t.each,i=t.isObject,r=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function o(e){var n=e&&e.itemStyle;if(n)for(var i=0,o=r.length;i<o;i++){var a=r[i],s=n.normal,l=n.emphasis;s&&s[a]&&(e[a]=e[a]||{},e[a].normal?t.merge(e[a].normal,s[a]):e[a].normal=s[a],s[a]=null),l&&l[a]&&(e[a]=e[a]||{},e[a].emphasis?t.merge(e[a].emphasis,l[a]):e[a].emphasis=l[a],l[a]=null)}}function a(e,n,i){if(e&&e[n]&&(e[n].normal||e[n].emphasis)){var r=e[n].normal,o=e[n].emphasis;r&&(i?(e[n].normal=e[n].emphasis=null,t.defaults(e[n],r)):e[n]=r),o&&(e.emphasis=e.emphasis||{},e.emphasis[n]=o)}}function s(t){a(t,"itemStyle"),a(t,"lineStyle"),a(t,"areaStyle"),a(t,"label"),a(t,"labelLine"),a(t,"upperLabel"),a(t,"edgeLabel")}function l(t,n){var r=i(t)&&t[n],o=i(r)&&r.textStyle;if(o)for(var a=0,s=e.TEXT_STYLE_OPTIONS.length;a<s;a++){n=e.TEXT_STYLE_OPTIONS[a];o.hasOwnProperty(n)&&(r[n]=o[n])}}function u(t){t&&(s(t),l(t,"label"),t.emphasis&&l(t.emphasis,"label"))}function h(e){return t.isArray(e)?e:e?[e]:[]}function c(e){return(t.isArray(e)?e[0]:e)||{}}return JX=function(e,r){n(h(e.series),(function(e){i(e)&&function(e){if(i(e)){o(e),s(e),l(e,"label"),l(e,"upperLabel"),l(e,"edgeLabel"),e.emphasis&&(l(e.emphasis,"label"),l(e.emphasis,"upperLabel"),l(e.emphasis,"edgeLabel")),(r=e.markPoint)&&(o(r),u(r)),(h=e.markLine)&&(o(h),u(h));var n=e.markArea;n&&u(n);var r,h,c=e.data;if("graph"===e.type){c=c||e.nodes;var d=e.links||e.edges;if(d&&!t.isTypedArray(d))for(var p=0;p<d.length;p++)u(d[p]);t.each(e.categories,(function(t){s(t)}))}if(c&&!t.isTypedArray(c))for(p=0;p<c.length;p++)u(c[p]);if((r=e.markPoint)&&r.data){var f=r.data;for(p=0;p<f.length;p++)u(f[p])}if((h=e.markLine)&&h.data){var g=h.data;for(p=0;p<g.length;p++)t.isArray(g[p])?(u(g[p][0]),u(g[p][1])):u(g[p])}"gauge"===e.type?(l(e,"axisLabel"),l(e,"title"),l(e,"detail")):"treemap"===e.type?(a(e.breadcrumb,"itemStyle"),t.each(e.levels,(function(t){s(t)}))):"tree"===e.type&&s(e.leaves)}}(e)}));var d=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];r&&d.push("valueAxis","categoryAxis","logAxis","timeAxis"),n(d,(function(t){n(h(e[t]),(function(t){t&&(l(t,"axisLabel"),l(t.axisPointer,"label"))}))})),n(h(e.parallel),(function(t){var e=t&&t.parallelAxisDefault;l(e,"axisLabel"),l(e&&e.axisPointer,"label")})),n(h(e.calendar),(function(t){a(t,"itemStyle"),l(t,"dayLabel"),l(t,"monthLabel"),l(t,"yearLabel")})),n(h(e.radar),(function(t){l(t,"name")})),n(h(e.geo),(function(t){i(t)&&(u(t),n(h(t.regions),(function(t){u(t)})))})),n(h(e.timeline),(function(e){u(e),a(e,"label"),a(e,"itemStyle"),a(e,"controlStyle",!0);var n=e.data;t.isArray(n)&&t.each(n,(function(e){t.isObject(e)&&(a(e,"label"),a(e,"itemStyle"))}))})),n(h(e.toolbox),(function(t){a(t,"iconStyle"),n(t.feature,(function(t){a(t,"iconStyle")}))})),l(c(e.axisPointer),"label"),l(c(e.tooltip).axisPointer,"label")},JX}var fj,gj,vj,mj={};function yj(){if(fj)return mj;fj=1,tW().__DEV__;var t=hW();t.isTypedArray;var e=t.extend;t.assert;var n=t.each,i=t.isObject,r=mY(),o=r.getDataItemValue,a=r.isDataItemOption,s=MX().parseDate,l=sj(),u=aj(),h=u.SOURCE_FORMAT_TYPED_ARRAY,c=u.SOURCE_FORMAT_ARRAY_ROWS,d=u.SOURCE_FORMAT_ORIGINAL,p=u.SOURCE_FORMAT_OBJECT_ROWS;function f(t,n){l.isInstance(t)||(t=l.seriesDataToSource(t)),this._source=t;var i=this._data=t.data,r=t.sourceFormat;r===h&&(this._offset=0,this._dimSize=n,this._data=i);var o=v[r===c?r+"_"+t.seriesLayoutBy:r];e(this,o)}var g=f.prototype;g.pure=!1,g.persistent=!0,g.getSource=function(){return this._source};var v={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(t){return this._data[t+this._source.startIndex]},appendData:x},arrayRows_row:{pure:!0,count:function(){var t=this._data[0];return t?Math.max(0,t.length-this._source.startIndex):0},getItem:function(t){t+=this._source.startIndex;for(var e=[],n=this._data,i=0;i<n.length;i++){var r=n[i];e.push(r?r[t]:null)}return e},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:m,getItem:y,appendData:x},keyedColumns:{pure:!0,count:function(){var t=this._source.dimensionsDefine[0].name,e=this._data[t];return e?e.length:0},getItem:function(t){for(var e=[],n=this._source.dimensionsDefine,i=0;i<n.length;i++){var r=this._data[n[i].name];e.push(r?r[t]:null)}return e},appendData:function(t){var e=this._data;n(t,(function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])}))}},original:{count:m,getItem:y,appendData:x},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(t,e){t-=this._offset,e=e||[];for(var n=this._dimSize*t,i=0;i<this._dimSize;i++)e[i]=this._data[n+i];return e},appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}}};function m(){return this._data.length}function y(t){return this._data[t]}function x(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}var _={arrayRows:b,objectRows:function(t,e,n,i){return null!=n?t[i]:t},keyedColumns:b,original:function(t,e,n,i){var r=o(t);return null!=n&&r instanceof Array?r[n]:r},typedArray:b};function b(t,e,n,i){return null!=n?t[n]:t}var w={arrayRows:S,objectRows:function(t,e,n,i){return M(t[e],this._dimensionInfos[e])},keyedColumns:S,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return!this._rawData.pure&&a(t)&&(this.hasItemOption=!0),M(r instanceof Array?r[i]:r,this._dimensionInfos[e])},typedArray:function(t,e,n,i){return t[i]}};function S(t,e,n,i){return M(t[i],this._dimensionInfos[e])}function M(t,e){var n=e&&e.type;if("ordinal"===n){var i=e&&e.ordinalMeta;return i?i.parseAndCollect(t):t}return"time"===n&&"number"!=typeof t&&null!=t&&"-"!==t&&(t=+s(t)),null==t||""===t?NaN:+t}return mj.DefaultDataProvider=f,mj.defaultDimValueGetters=w,mj.retrieveRawValue=function(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r,o,a=t.getProvider().getSource().sourceFormat,s=t.getDimensionInfo(n);return s&&(r=s.name,o=s.index),_[a](i,e,o,r)}}},mj.retrieveRawAttr=function(t,e,n){if(t){var r=t.getProvider().getSource().sourceFormat;if(r===d||r===p){var o=t.getRawDataItem(e);return r!==d||i(o)||(o=null),o?o[n]:void 0}}},mj}function xj(){if(vj)return gj;vj=1;var t=yj().retrieveRawValue,e=EX(),n=e.getTooltipMarker,i=e.formatTpl,r=mY().getTooltipRenderMode,o=/\{@(.+?)\}/g,a={getDataParams:function(t,e){var i=this.getData(e),o=this.getRawValue(t,e),a=i.getRawIndex(t),s=i.getName(t),l=i.getRawDataItem(t),u=i.getItemVisual(t,"color"),h=i.getItemVisual(t,"borderColor"),c=this.ecModel.getComponent("tooltip"),d=c&&c.get("renderMode"),p=r(d),f=this.mainType,g="series"===f,v=i.userOutput;return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:g?this.subType:null,seriesIndex:this.seriesIndex,seriesId:g?this.id:null,seriesName:g?this.name:null,name:s,dataIndex:a,data:l,dataType:e,value:o,color:u,borderColor:h,dimensionNames:v?v.dimensionNames:null,encode:v?v.encode:null,marker:n({color:u,renderMode:p}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(e,n,r,a,s){n=n||"normal";var l=this.getData(r),u=l.getItemModel(e),h=this.getDataParams(e,r);null!=a&&h.value instanceof Array&&(h.value=h.value[a]);var c=u.get("normal"===n?[s||"label","formatter"]:[n,s||"label","formatter"]);return"function"==typeof c?(h.status=n,h.dimensionIndex=a,c(h)):"string"==typeof c?i(c,h).replace(o,(function(n,i){var r=i.length;return"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1)),t(l,e,i)})):void 0},getRawValue:function(e,n){return t(this.getData(n),e)},formatTooltip:function(){}};return gj=a}var _j,bj,wj,Sj,Mj,Ij,Tj,Cj,Aj,Dj={};function Lj(){if(_j)return Dj;_j=1;var t=hW();t.assert;var e=t.isArray;function n(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0,this.context}tW().__DEV__;var i=n.prototype;i.perform=function(t){var n,i=this._upstream,r=t&&t.skip;if(this._dirty&&i){var a=this.context;a.data=a.outputData=i.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(n=this._plan(this.context));var s,l=d(this._modBy),u=this._modDataCount||0,h=d(t&&t.modBy),c=t&&t.modDataCount||0;function d(t){return!(t>=1)&&(t=1),t}l===h&&u===c||(n="reset"),(this._dirty||"reset"===n)&&(this._dirty=!1,s=function(t,n){var i,r;t._dueIndex=t._outputDueEnd=t._dueEnd=0,t._settedOutputEnd=null,!n&&t._reset&&((i=t._reset(t.context))&&i.progress&&(r=i.forceFirstProgress,i=i.progress),e(i)&&!i.length&&(i=null));t._progress=i,t._modBy=t._modDataCount=null;var o=t._downstream;return o&&o.dirty(),r}(this,r)),this._modBy=h,this._modDataCount=c;var p=t&&t.step;if(this._dueEnd=i?i._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,g=Math.min(null!=p?this._dueIndex+p:1/0,this._dueEnd);if(!r&&(s||f<g)){var v=this._progress;if(e(v))for(var m=0;m<v.length;m++)o(this,v[m],f,g,h,c);else o(this,v,f,g,h,c)}this._dueIndex=g;var y=null!=this._settedOutputEnd?this._settedOutputEnd:g;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var r=function(){var t,e,n,i,r,o={reset:function(l,u,h,c){e=l,t=u,n=h,i=c,r=Math.ceil(i/n),o.next=n>1&&i>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%r*n+Math.ceil(e/r),a=e>=t?null:o<i?o:e;return e++,a}}();function o(t,e,n,i,o,a){r.reset(n,i,o,a),t._callingProgress=e,t._callingProgress({start:n,end:i,count:i-n,next:r.next},t.context)}return i.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},i.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},i.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},i.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},i.getUpstream=function(){return this._upstream},i.getDownstream=function(){return this._downstream},i.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},Dj.createTask=function(t){return new n(t)},Dj}function kj(){if(wj)return bj;wj=1,tW().__DEV__;var t=hW(),e=sW(),n=EX(),i=n.formatTime,r=n.encodeHTML,o=n.addCommas,a=n.getTooltipMarker,s=mY(),l=VX(),u=BX(),h=xj(),c=zX(),d=c.getLayoutParams,p=c.mergeLayoutParam,f=Lj().createTask,g=lj(),v=g.prepareSource,m=g.getSource,y=yj().retrieveRawValue,x=s.makeInner(),_=l.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(t,e,n,i){this.seriesIndex=this.componentIndex,this.dataTask=f({count:w,reset:S}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),v(this);var r=this.getInitialData(t,n);I(r,this),this.dataTask.context.data=r,x(this).dataBeforeProcessed=r,b(this)},mergeDefaultAndTheme:function(e,n){var i=this.layoutMode,r=i?d(e):{},o=this.subType;l.hasClass(o)&&(o+="Series"),t.merge(e,n.getTheme().get(this.subType)),t.merge(e,this.getDefaultOption()),s.defaultEmphasis(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&p(e,r,i)},mergeOption:function(e,n){e=t.merge(this.option,e,!0),this.fillDataTextStyle(e.data);var i=this.layoutMode;i&&p(this.option,e,i),v(this);var r=this.getInitialData(e,n);I(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,x(this).dataBeforeProcessed=r,b(this)},fillDataTextStyle:function(e){if(e&&!t.isTypedArray(e))for(var n=["show"],i=0;i<e.length;i++)e[i]&&e[i].label&&s.defaultEmphasis(e[i],"label",n)},getInitialData:function(){},appendData:function(t){this.getRawData().appendData(t.data)},getData:function(t){var e=C(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return x(this).data},setData:function(t){var e=C(this);if(e){var n=e.context;n.data!==t&&e.modifyOutputEnd&&e.setOutputEnd(t.count()),n.outputData=t,e!==this.dataTask&&(n.data=t)}x(this).data=t},getSource:function(){return m(this)},getRawData:function(){return x(this).dataBeforeProcessed},getBaseAxis:function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},formatTooltip:function(e,n,l,u){var h=this,c="html"===(u=u||"html")?"<br/>":"\n",d="richText"===u,p={},f=0;function g(t){return{renderMode:u,content:r(o(t)),style:p}}var v=this.getData(),m=v.mapDimension("defaultedTooltip",!0),x=m.length,_=this.getRawValue(e),b=t.isArray(_),w=v.getItemVisual(e,"color");t.isObject(w)&&w.colorStops&&(w=(w.colorStops[0]||{}).color),w=w||"transparent";var S=(x>1||b&&!x?function(s){var l=t.reduce(s,(function(t,e,n){var i=v.getDimensionInfo(n);return t|(i&&!1!==i.tooltip&&null!=i.displayName)}),0),c=[];function g(t,e){var s=v.getDimensionInfo(e);if(s&&!1!==s.otherDims.tooltip){var g=s.type,m="sub"+h.seriesIndex+"at"+f,y=a({color:w,type:"subItem",renderMode:u,markerId:m}),x="string"==typeof y?y:y.content,_=(l?x+r(s.displayName||"-")+": ":"")+r("ordinal"===g?t+"":"time"===g?n?"":i("yyyy/MM/dd hh:mm:ss",t):o(t));_&&c.push(_),d&&(p[m]=w,++f)}}m.length?t.each(m,(function(t){g(y(v,e,t),t)})):t.each(s,g);var x=l?d?"\n":"<br/>":"",_=x+c.join(x||", ");return{renderMode:u,content:_,style:p}}(_):g(x?y(v,e,m[0]):b?_[0]:_)).content,M=h.seriesIndex+"at"+f,I=a({color:w,type:"item",renderMode:u,markerId:M});p[M]=w,++f;var T=v.getName(e),C=this.name;s.isNameSpecified(this)||(C=""),C=C?r(C)+(n?": ":c):"";var A="string"==typeof I?I:I.content;return{html:n?A+C+S:C+A+(T?r(T)+": "+S:S),markers:p}},isAnimationEnabled:function(){if(e.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,n){var i=this.ecModel,r=u.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},coordDimToDataDim:function(t){return this.getRawData().mapDimension(t,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function b(e){var n=e.name;s.isNameSpecified(e)||(e.name=function(e){var n=e.getRawData(),i=n.mapDimension("seriesName",!0),r=[];return t.each(i,(function(t){var e=n.getDimensionInfo(t);e.displayName&&r.push(e.displayName)})),r.join(" ")}(e)||n)}function w(t){return t.model.getRawData().count()}function S(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),M}function M(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function I(e,n){t.each(e.CHANGABLE_METHODS,(function(i){e.wrapMethod(i,t.curry(T,n))}))}function T(t){var e=C(t);e&&e.setOutputEnd(this.count())}function C(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}return t.mixin(_,h),t.mixin(_,u),bj=_}function Pj(){if(Mj)return Sj;Mj=1;var t=bU(),e=_X(),n=TY(),i=function(){this.group=new t,this.uid=e.getUID("viewComponent")},r=i.prototype={constructor:i,init:function(t,e){},render:function(t,e,n,i){},dispose:function(){},filterForExposedEvent:null};return r.updateView=r.updateLayout=r.updateVisual=function(t,e,n,i){},n.enableClassExtend(i),n.enableClassManagement(i,{registerWhenExtend:!0}),Sj=i}function Oj(){if(Tj)return Ij;Tj=1;var t=mY().makeInner;return Ij=function(){var e=t();return function(t){var n=e(t),i=t.pipelineContext,r=n.large,o=n.progressiveRender,a=n.large=i&&i.large,s=n.progressiveRender=i&&i.progressiveRender;return!!(r^a||o^s)&&"reset"}}}function Rj(){if(Aj)return Cj;Aj=1;var t=hW().each,e=bU(),n=_X(),i=TY(),r=mY(),o=vX(),a=Lj().createTask,s=Oj(),l=r.makeInner(),u=s();function h(){this.group=new e,this.uid=n.getUID("viewChart"),this.renderTask=a({plan:f,reset:g}),this.renderTask.context={view:this}}h.prototype={type:"chart",init:function(t,e){},render:function(t,e,n,i){},highlight:function(t,e,n,i){p(t.getData(),i,"emphasis")},downplay:function(t,e,n,i){p(t.getData(),i,"normal")},remove:function(t,e){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var c=h.prototype;function d(t,e,n){if(t&&(t.trigger(e,n),t.isGroup&&!o.isHighDownDispatcher(t)))for(var i=0,r=t.childCount();i<r;i++)d(t.childAt(i),e,n)}function p(e,n,i){var a=r.queryDataIndex(e,n),s=n&&null!=n.highlightKey?o.getHighlightDigit(n.highlightKey):null;null!=a?t(r.normalizeToArray(a),(function(t){d(e.getItemGraphicEl(t),i,s)})):e.eachItemGraphicEl((function(t){d(t,i,s)}))}function f(t){return u(t.model)}function g(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&l(r).updateMethod,u=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==u&&a[u](e,n,i,r),v[u]}c.updateView=c.updateLayout=c.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},i.enableClassExtend(h,["dispose"]),i.enableClassManagement(h,{registerWhenExtend:!0}),h.markUpdateMethod=function(t,e){l(t).updateMethod=e};var v={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)}}};return Cj=h}var Nj,Ej,zj,Vj,Bj,Gj,Fj,Hj,Wj,Uj,Yj,Zj,Xj,jj,qj,Kj={};function $j(){if(Nj)return Kj;Nj=1;var t="\0__throttleOriginMethod",e="\0__throttleRate",n="\0__throttleType";function i(t,e,n){var i,r,o,a,s,l=0,u=0,h=null;function c(){u=(new Date).getTime(),h=null,t.apply(o,a||[])}e=e||0;var d=function(){i=(new Date).getTime(),o=this,a=arguments;var t=s||e,d=s||n;s=null,r=i-(d?l:u)-t,clearTimeout(h),d?h=setTimeout(c,t):r>=0?c():h=setTimeout(c,-r),l=i};return d.clear=function(){h&&(clearTimeout(h),h=null)},d.debounceNextCall=function(t){s=t},d}return Kj.throttle=i,Kj.createOrUpdate=function(r,o,a,s){var l=r[o];if(l){var u=l[t]||l,h=l[n];if(l[e]!==a||h!==s){if(null==a||!s)return r[o]=u;(l=r[o]=i(u,a,"debounce"===s))[t]=u,l[n]=s,l[e]=a}return l}},Kj.clear=function(e,n){var i=e[n];i&&i[t]&&(e[n]=i[t])},Kj}function Jj(){if(Bj)return Vj;Bj=1;return Vj={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:""}}}}}function Qj(){if(Yj)return Uj;Yj=1;var t=hW(),e=t.each,n=t.map,i=t.isFunction,r=t.createHashMap,o=t.noop,a=Lj().createTask,s=_X().getUID,l=uj(),u=hj(),h=mY().normalizeToArray;function c(t,e,n,i){this.ecInstance=t,this.api=e,this.unfinished;n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice();this._allHandlers=n.concat(i),this._stageTaskMap=r()}var d=c.prototype;function p(t,n,i,r,o){var a;function s(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}o=o||{},e(n,(function(e,n){if(!o.visualType||o.visualType===e.visualType){var l=t._stageTaskMap.get(e.uid),u=l.seriesTaskMap,h=l.overallTask;if(h){var c,d=h.agentStubMap;d.each((function(t){s(o,t)&&(t.dirty(),c=!0)})),c&&h.dirty(),f(h,r);var p=t.getPerformArgs(h,o.block);d.each((function(t){t.perform(p)})),a|=h.perform(p)}else u&&u.each((function(n,l){s(o,n)&&n.dirty();var u=t.getPerformArgs(n,o.block);u.skip=!e.performRawSeries&&i.isSeriesFiltered(n.context.model),f(n,r),a|=n.perform(u)}))}})),t.unfinished|=a}d.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},d.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},d.getPipeline=function(t){return this._pipelineMap.get(t)},d.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},d.restorePipelines=function(t){var e=this,n=e._pipelineMap=r();t.eachSeries((function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),M(e,t,t.dataTask)}))},d.prepareStageTasks=function(){var t=this._stageTaskMap,n=this.ecInstance.getModel(),i=this.api;e(this._allHandlers,(function(o){var s=t.get(o.uid)||t.set(o.uid,[]);o.reset&&function(t,e,n,i,o){var s=n.seriesTaskMap||(n.seriesTaskMap=r()),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(h):l?i.eachRawSeriesByType(l,h):u&&u(i,o).each(h);function h(n){var r=n.uid,l=s.get(r)||s.set(r,a({plan:x,reset:_,count:S}));l.context={model:n,ecModel:i,api:o,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:t},M(t,n,l)}var c=t._pipelineMap;s.each((function(t,e){c.get(e)||(t.dispose(),s.removeKey(e))}))}(this,o,s,n,i),o.overallReset&&function(t,n,i,o,s){var l=i.overallTask=i.overallTask||a({reset:g});l.context={ecModel:o,api:s,overallReset:n.overallReset,scheduler:t};var u=l.agentStubMap=l.agentStubMap||r(),h=n.seriesType,c=n.getTargetSeries,d=!0,p=n.modifyOutputEnd;h?o.eachRawSeriesByType(h,f):c?c(o,s).each(f):(d=!1,e(o.getSeries(),f));function f(e){var n=e.uid,i=u.get(n);i||(i=u.set(n,a({reset:v,onDirty:y})),l.dirty()),i.context={model:e,overallProgress:d,modifyOutputEnd:p},i.agent=l,i.__block=d,M(t,e,i)}var m=t._pipelineMap;u.each((function(t,e){m.get(e)||(t.dispose(),l.dirty(),u.removeKey(e))}))}(this,o,s,n,i)}),this)},d.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,M(this,e,r)},d.performDataProcessorTasks=function(t,e){p(this,this._dataProcessorHandlers,t,e,{block:!0})},d.performVisualTasks=function(t,e,n){p(this,this._visualHandlers,t,e,n)},d.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e|=t.dataTask.perform()})),this.unfinished|=e},d.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))};var f=d.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)};function g(t){t.overallReset(t.ecModel,t.api,t.payload)}function v(t,e){return t.overallProgress&&m}function m(){this.agent.dirty(),this.getDownstream().dirty()}function y(){this.agent&&this.agent.dirty()}function x(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)}function _(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=h(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?n(e,(function(t,e){return w(e)})):b}var b=w(0);function w(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(e,i)}}function S(t){return t.data.count()}function M(t,e,n){var i=e.uid,r=t._pipelineMap.get(i);!r.head&&(r.head=n),r.tail&&r.tail.pipe(n),r.tail=n,n.__idxInPipeline=r.count++,n.__pipeline=r}function I(t){T=null;try{t(C,A)}catch(e){}return T}c.wrapStageHandler=function(t,e){return i(t)&&(t={overallReset:t,seriesType:I(t)}),t.uid=s("stageHandler"),e&&(t.visualType=e),t};var T,C={},A={};function D(t,e){for(var n in e.prototype)t[n]=o}return D(C,l),D(A,u),C.eachSeriesByType=C.eachRawSeriesByType=function(t){T=t},C.eachComponent=function(t){"series"===t.mainType&&t.subType&&(T=t.subType)},Uj=c}var tq,eq={};function nq(){if(tq)return eq;tq=1;var t=VX(),e=Pj(),n=lj().detectSourceFormat,i=aj().SERIES_LAYOUT_BY_COLUMN;return t.extend({type:"dataset",defaultOption:{seriesLayoutBy:i,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){n(this)}}),e.extend({type:"dataset"}),eq}var iq,rq,oq,aq,sq,lq={};function uq(){if(oq)return lq;oq=1;var t=bU(),e=cY(),n=bZ(),i=wZ(),r=cX(),o=function(){if(rq)return iq;rq=1;var t=xZ().extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(t,e){var n=.5522848,i=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(i-o,r),t.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),t.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),t.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),t.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),t.closePath()}});return iq=t}(),a=dX(),s=xZ(),l=NZ(),u=EZ(),h=fX(),c=NU(),d=GW(),p=_Z().createFromString,f=hW(),g=f.isString,v=f.extend,m=f.defaults,y=f.trim,x=f.each,_=/[\s,]+/;function b(t){g(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));for(9===t.nodeType&&(t=t.firstChild);"svg"!==t.nodeName.toLowerCase()||1!==t.nodeType;)t=t.nextSibling;return t}function w(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}w.prototype.parse=function(e,n){n=n||{};var i=b(e);if(!i)throw new Error("Illegal svg");var o=new t;this._root=o;var a=i.getAttribute("viewBox")||"",s=parseFloat(i.getAttribute("width")||n.width),l=parseFloat(i.getAttribute("height")||n.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),A(i,o,null,!0);for(var u,h,c=i.firstChild;c;)this._parseNode(c,o),c=c.nextSibling;if(a){var d=y(a).split(_);d.length>=4&&(u={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(u&&null!=s&&null!=l&&(h=O(u,s,l),!n.ignoreViewBox)){var p=o;(o=new t).add(p),p.scale=h.scale.slice(),p.position=h.position.slice()}return n.ignoreRootClip||null==s||null==l||o.setClipPath(new r({shape:{x:0,y:0,width:s,height:l}})),{root:o,width:s,height:l,viewBoxRect:u,viewBoxTransform:h}},w.prototype._parseNode=function(t,e){var n,i,r=t.nodeName.toLowerCase();if("defs"===r?this._isDefine=!0:"text"===r&&(this._isText=!0),this._isDefine){if(i=M[r]){var o=i.call(this,t),a=t.getAttribute("id");a&&(this._defs[a]=o)}}else(i=S[r])&&(n=i.call(this,t,e),e.add(n));for(var s=t.firstChild;s;)1===s.nodeType&&this._parseNode(s,n),3===s.nodeType&&this._isText&&this._parseText(s,n),s=s.nextSibling;"defs"===r?this._isDefine=!1:"text"===r&&(this._isText=!1)},w.prototype._parseText=function(t,e){if(1===t.nodeType){var i=t.getAttribute("dx")||0,r=t.getAttribute("dy")||0;this._textX+=parseFloat(i),this._textY+=parseFloat(r)}var o=new n({style:{text:t.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});I(e,o),A(t,o,this._defs);var a=o.style.fontSize;a&&a<9&&(o.style.fontSize=9,o.scale=o.scale||[1,1],o.scale[0]*=a/9,o.scale[1]*=a/9);var s=o.getBoundingRect();return this._textX+=s.width,e.add(o),o};var S={g:function(e,n){var i=new t;return I(n,i),A(e,i,this._defs),i},rect:function(t,e){var n=new r;return I(e,n),A(t,n,this._defs),n.setShape({x:parseFloat(t.getAttribute("x")||0),y:parseFloat(t.getAttribute("y")||0),width:parseFloat(t.getAttribute("width")||0),height:parseFloat(t.getAttribute("height")||0)}),n},circle:function(t,e){var n=new i;return I(e,n),A(t,n,this._defs),n.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),r:parseFloat(t.getAttribute("r")||0)}),n},line:function(t,e){var n=new a;return I(e,n),A(t,n,this._defs),n.setShape({x1:parseFloat(t.getAttribute("x1")||0),y1:parseFloat(t.getAttribute("y1")||0),x2:parseFloat(t.getAttribute("x2")||0),y2:parseFloat(t.getAttribute("y2")||0)}),n},ellipse:function(t,e){var n=new o;return I(e,n),A(t,n,this._defs),n.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),rx:parseFloat(t.getAttribute("rx")||0),ry:parseFloat(t.getAttribute("ry")||0)}),n},polygon:function(t,e){var n=t.getAttribute("points");n&&(n=T(n));var i=new l({shape:{points:n||[]}});return I(e,i),A(t,i,this._defs),i},polyline:function(t,e){var n=new s;I(e,n),A(t,n,this._defs);var i=t.getAttribute("points");return i&&(i=T(i)),new u({shape:{points:i||[]}})},image:function(t,n){var i=new e;return I(n,i),A(t,i,this._defs),i.setStyle({image:t.getAttribute("xlink:href"),x:t.getAttribute("x"),y:t.getAttribute("y"),width:t.getAttribute("width"),height:t.getAttribute("height")}),i},text:function(e,n){var i=e.getAttribute("x")||0,r=e.getAttribute("y")||0,o=e.getAttribute("dx")||0,a=e.getAttribute("dy")||0;this._textX=parseFloat(i)+parseFloat(o),this._textY=parseFloat(r)+parseFloat(a);var s=new t;return I(n,s),A(e,s,this._defs),s},tspan:function(e,n){var i=e.getAttribute("x"),r=e.getAttribute("y");null!=i&&(this._textX=parseFloat(i)),null!=r&&(this._textY=parseFloat(r));var o=e.getAttribute("dx")||0,a=e.getAttribute("dy")||0,s=new t;return I(n,s),A(e,s,this._defs),this._textX+=o,this._textY+=a,s},path:function(t,e){var n=t.getAttribute("d")||"",i=p(n);return I(e,i),A(t,i,this._defs),i}},M={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||0,10),n=parseInt(t.getAttribute("y1")||0,10),i=parseInt(t.getAttribute("x2")||10,10),r=parseInt(t.getAttribute("y2")||0,10),o=new h(e,n,i,r);return function(t,e){var n=t.firstChild;for(;n;){if(1===n.nodeType){var i=n.getAttribute("offset");i=i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var r=n.getAttribute("stop-color")||"#000000";e.addColorStop(i,r)}n=n.nextSibling}}(t,o),o},radialgradient:function(t){}};function I(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),m(e.__inheritedStyle,t.__inheritedStyle))}function T(t){for(var e=y(t).split(_),n=[],i=0;i<e.length;i+=2){var r=parseFloat(e[i]),o=parseFloat(e[i+1]);n.push([r,o])}return n}var C={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function A(t,e,n,i){var r=e.__inheritedStyle||{},o="text"===e.type;if(1===t.nodeType&&(function(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=null,r=[];n.replace(k,(function(t,e,n){r.push(e,n)}));for(var o=r.length-1;o>0;o-=2){var a=r[o],s=r[o-1];switch(i=i||d.create(),s){case"translate":a=y(a).split(_),d.translate(i,i,[parseFloat(a[0]),parseFloat(a[1]||0)]);break;case"scale":a=y(a).split(_),d.scale(i,i,[parseFloat(a[0]),parseFloat(a[1]||a[0])]);break;case"rotate":a=y(a).split(_),d.rotate(i,i,parseFloat(a[0]));break;case"skew":a=y(a).split(_),console.warn("Skew transform is not supported yet");break;case"matrix":a=y(a).split(_);i[0]=parseFloat(a[0]),i[1]=parseFloat(a[1]),i[2]=parseFloat(a[2]),i[3]=parseFloat(a[3]),i[4]=parseFloat(a[4]),i[5]=parseFloat(a[5])}}e.setLocalTransform(i)}}(t,e),v(r,function(t){var e=t.getAttribute("style"),n={};if(!e)return n;var i,r={};P.lastIndex=0;for(;null!=(i=P.exec(e));)r[i[1]]=i[2];for(var o in C)C.hasOwnProperty(o)&&null!=r[o]&&(n[C[o]]=r[o]);return n}(t)),!i))for(var a in C)if(C.hasOwnProperty(a)){var s=t.getAttribute(a);null!=s&&(r[C[a]]=s)}var l=o?"textFill":"fill",u=o?"textStroke":"stroke";e.style=e.style||new c;var h=e.style;null!=r.fill&&h.set(l,L(r.fill,n)),null!=r.stroke&&h.set(u,L(r.stroke,n)),x(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){var e="lineWidth"===t&&o?"textStrokeWidth":t;null!=r[t]&&h.set(e,parseFloat(r[t]))})),r.textBaseline&&"auto"!==r.textBaseline||(r.textBaseline="alphabetic"),"alphabetic"===r.textBaseline&&(r.textBaseline="bottom"),"start"===r.textAlign&&(r.textAlign="left"),"end"===r.textAlign&&(r.textAlign="right"),x(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],(function(t){null!=r[t]&&h.set(t,r[t])})),r.lineDash&&(e.style.lineDash=y(r.lineDash).split(_)),h[u]&&"none"!==h[u]&&(e[u]=!0),e.__inheritedStyle=r}var D=/url\(\s*#(.*?)\)/;function L(t,e){var n=e&&t&&t.match(D);return n?e[y(n[1])]:t}var k=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;var P=/([^\s:;]+)\s*:\s*([^:;]+)/g;function O(t,e,n){var i=e/t.width,r=n/t.height,o=Math.min(i,r);return{scale:[o,o],position:[-(t.x+t.width/2)*o+e/2,-(t.y+t.height/2)*o+n/2]}}return lq.parseXML=b,lq.makeViewBoxTransform=O,lq.parseSVG=function(t,e){return(new w).parse(t,e)},lq}function hq(){if(sq)return aq;sq=1,tW().__DEV__;var t=hW(),e=t.createHashMap,n=t.isString,i=t.isArray,r=t.each;t.assert;var o=uq().parseXML,a=e(),s={registerMap:function(t,e,n){var o;return i(e)?o=e:e.svg?o=[{type:"svg",source:e.svg,specialAreas:e.specialAreas}]:(e.geoJson&&!e.features&&(n=e.specialAreas,e=e.geoJson),o=[{type:"geoJSON",source:e,specialAreas:n}]),r(o,(function(t){var e=t.type;"geoJson"===e&&(e=t.type="geoJSON"),(0,l[e])(t)})),a.set(t,o)},retrieveMap:function(t){return a.get(t)}},l={geoJSON:function(t){var e=t.source;t.geoJSON=n(e)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e},svg:function(t){t.svgXML=o(t.source)}};return aq=s}var cq,dq,pq={},fq={};function gq(){if(dq)return cq;function t(t){return t}function e(e,n,i,r,o){this._old=e,this._new=n,this._oldKeyGetter=i||t,this._newKeyGetter=r||t,this.context=o}function n(t,e,n,i,r){for(var o=0;o<t.length;o++){var a="_ec_"+r[i](t[o],o),s=e[a];null==s?(n.push(a),e[a]=o):(s.length||(e[a]=s=[s]),s.push(o))}}return dq=1,e.prototype={constructor:e,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t=this._old,e=this._new,i={},r=[],o=[];for(n(t,{},r,"_oldKeyGetter",this),n(e,i,o,"_newKeyGetter",this),a=0;a<t.length;a++){if(null!=(l=i[s=r[a]]))(h=l.length)?(1===h&&(i[s]=null),l=l.shift()):i[s]=null,this._update&&this._update(l,a);else this._remove&&this._remove(a)}for(var a=0;a<o.length;a++){var s=o[a];if(i.hasOwnProperty(s)){var l;if(null==(l=i[s]))continue;if(l.length)for(var u=0,h=l.length;u<h;u++)this._add&&this._add(l[u]);else this._add&&this._add(l)}}}},cq=e}var vq,mq,yq,xq,_q,bq,wq,Sq,Mq,Iq={};function Tq(){if(vq)return Iq;vq=1;var t=hW(),e=t.each,n=t.createHashMap;t.assert,tW().__DEV__;var i=n(["tooltip","label","itemName","itemId","seriesName"]);function r(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}return Iq.OTHER_DIMENSIONS=i,Iq.summarizeDimensions=function(t){var o={},a=o.encode={},s=n(),l=[],u=[],h=o.userOutput={dimensionNames:t.dimensions.slice(),encode:{}};e(t.dimensions,(function(e){var n,o=t.getDimensionInfo(e),c=o.coordDim;if(c){var d=o.coordDimIndex;r(a,c)[d]=e,o.isExtraCoord||(s.set(c,1),"ordinal"!==(n=o.type)&&"time"!==n&&(l[0]=e),r(h.encode,c)[d]=o.index),o.defaultTooltip&&u.push(e)}i.each((function(t,e){var n=r(a,e),i=o.otherDims[e];null!=i&&!1!==i&&(n[i]=o.name)}))}));var c=[],d={};s.each((function(t,e){var n=a[e];d[e]=n[0],c=c.concat(n)})),o.dataDimsOnCoord=c,o.encodeFirstDimNotExtra=d;var p=a.label;p&&p.length&&(l=p.slice());var f=a.tooltip;return f&&f.length?u=f.slice():u.length||(u=l.slice()),a.defaultedLabel=l,a.defaultedTooltip=u,o},Iq.getDimensionTypeByAxis=function(t){return"category"===t?"ordinal":"time"===t?"time":"float"},Iq}function Cq(){if(yq)return mq;yq=1;var t=hW();return mq=function(e){null!=e&&t.extend(this,e),this.otherDims={}}}function Aq(){if(_q)return xq;_q=1,tW().__DEV__;var t=hW(),e=mX(),n=gq(),i=sj(),r=yj(),o=r.defaultDimValueGetters,a=r.DefaultDataProvider,s=Tq().summarizeDimensions,l=Cq(),u=t.isObject,h="undefined",c={float:typeof Float64Array===h?Array:Float64Array,int:typeof Int32Array===h?Array:Int32Array,ordinal:Array,number:Array,time:Array},d=typeof Uint32Array===h?Array:Uint32Array,p=typeof Int32Array===h?Array:Int32Array,f=typeof Uint16Array===h?Array:Uint16Array;function g(t){return t._rawCount>65535?d:f}var v=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],m=["_extent","_approximateExtent","_rawExtent"];function y(e,n){t.each(v.concat(n.__wrappedMethods||[]),(function(t){n.hasOwnProperty(t)&&(e[t]=n[t])})),e.__wrappedMethods=n.__wrappedMethods,t.each(m,(function(i){e[i]=t.clone(n[i])})),e._calculationInfo=t.extend(n._calculationInfo)}var x=function(e,n){e=e||["x","y"];for(var i={},r=[],o={},a=0;a<e.length;a++){var u=e[a];t.isString(u)?u=new l({name:u}):u instanceof l||(u=new l(u));var h=u.name;u.type=u.type||"float",u.coordDim||(u.coordDim=h,u.coordDimIndex=0),u.otherDims=u.otherDims||{},r.push(h),i[h]=u,u.index=a,u.createInvertedIndices&&(o[h]=[])}this.dimensions=r,this._dimensionInfos=i,this.hostModel=n,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=s(this),this._invertedIndicesMap=o,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},_=x.prototype;function b(t,e,n,i,r){var o=c[e.type],a=i-1,s=e.name,l=t[s][a];if(l&&l.length<n){for(var u=new o(Math.min(r-a*n,n)),h=0;h<l.length;h++)u[h]=l[h];t[s][a]=u}for(var d=i*n;d<r;d+=n)t[s].push(new o(Math.min(r-d,n)))}function w(e){var n=e._invertedIndicesMap;t.each(n,(function(t,i){var r=e._dimensionInfos[i].ordinalMeta;if(r){t=n[i]=new p(r.categories.length);for(var o=0;o<t.length;o++)t[o]=-1;for(o=0;o<e._count;o++)t[e.get(i,o)]=o}}))}function S(t,e,n){var i;if(null!=e){var r=t._chunkSize,o=Math.floor(n/r),a=n%r,s=t.dimensions[e],l=t._storage[s][o];if(l){i=l[a];var u=t._dimensionInfos[s].ordinalMeta;u&&u.categories.length&&(i=u.categories[i])}}return i}function M(t){return t}function I(t){return t<this._count&&t>=0?this._indices[t]:-1}function T(t,e){var n=t._idList[e];return null==n&&(n=S(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n}function C(e){return t.isArray(e)||(e=[e]),e}function A(e,n){var i=e.dimensions,r=new x(t.map(i,e.getDimensionInfo,e),e.hostModel);y(r,e);for(var o=r._storage={},a=e._storage,s=0;s<i.length;s++){var l=i[s];a[l]&&(t.indexOf(n,l)>=0?(o[l]=D(a[l]),r._rawExtent[l]=L(),r._extent[l]=null):o[l]=a[l])}return r}function D(t){for(var e,n,i=new Array(t.length),r=0;r<t.length;r++)i[r]=(e=t[r],n=void 0,(n=e.constructor)===Array?e.slice():new n(e));return i}function L(){return[1/0,-1/0]}_.type="list",_.hasItemOption=!0,_.getDimension=function(t){return"number"!=typeof t&&(isNaN(t)||this._dimensionInfos.hasOwnProperty(t))||(t=this.dimensions[t]),t},_.getDimensionInfo=function(t){return this._dimensionInfos[this.getDimension(t)]},_.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},_.mapDimension=function(t,e){var n=this._dimensionsSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return!0===e?(i||[]).slice():i&&i[e]},_.initData=function(e,n,r){(i.isInstance(e)||t.isArrayLike(e))&&(e=new a(e,this.dimensions.length)),this._rawData=e,this._storage={},this._indices=null,this._nameList=n||[],this._idList=[],this._nameRepeatCount={},r||(this.hasItemOption=!1),this.defaultDimValueGetter=o[this._rawData.getSource().sourceFormat],this._dimValueGetter=r=r||this.defaultDimValueGetter,this._dimValueGetterArrayRows=o.arrayRows,this._rawExtent={},this._initDataFromProvider(0,e.count()),e.pure&&(this.hasItemOption=!1)},_.getProvider=function(){return this._rawData},_.appendData=function(t){var e=this._rawData,n=this.count();e.appendData(t);var i=e.count();e.persistent||(i+=n),this._initDataFromProvider(n,i)},_.appendValues=function(t,e){for(var n=this._chunkSize,i=this._storage,r=this.dimensions,o=r.length,a=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e?e.length:0),u=this._chunkCount,h=0;h<o;h++){a[m=r[h]]||(a[m]=L()),i[m]||(i[m]=[]),b(i,this._dimensionInfos[m],n,u,l),this._chunkCount=i[m].length}for(var c=new Array(o),d=s;d<l;d++){for(var p=d-s,f=Math.floor(d/n),g=d%n,v=0;v<o;v++){var m=r[v],y=this._dimValueGetterArrayRows(t[p]||c,m,p,v);i[m][f][g]=y;var x=a[m];y<x[0]&&(x[0]=y),y>x[1]&&(x[1]=y)}e&&(this._nameList[d]=e[p])}this._rawCount=this._count=l,this._extent={},w(this)},_._initDataFromProvider=function(t,e){if(!(t>=e)){for(var n,i=this._chunkSize,r=this._rawData,o=this._storage,a=this.dimensions,s=a.length,l=this._dimensionInfos,u=this._nameList,h=this._idList,c=this._rawExtent,d=this._nameRepeatCount={},p=this._chunkCount,f=0;f<s;f++){c[S=a[f]]||(c[S]=L());var g=l[S];0===g.otherDims.itemName&&(n=this._nameDimIdx=f),0===g.otherDims.itemId&&(this._idDimIdx=f),o[S]||(o[S]=[]),b(o,g,i,p,e),this._chunkCount=o[S].length}for(var v=new Array(s),m=t;m<e;m++){v=r.getItem(m,v);for(var y=Math.floor(m/i),x=m%i,_=0;_<s;_++){var S,M=o[S=a[_]][y],I=this._dimValueGetter(v,S,m,_);M[x]=I;var T=c[S];I<T[0]&&(T[0]=I),I>T[1]&&(T[1]=I)}if(!r.pure){var C=u[m];if(v&&null==C)if(null!=v.name)u[m]=C=v.name;else if(null!=n){var A=a[n],D=o[A][y];if(D){C=D[x];var k=l[A].ordinalMeta;k&&k.categories.length&&(C=k.categories[C])}}var P=null==v?null:v.id;null==P&&null!=C&&(d[C]=d[C]||0,P=C,d[C]>0&&(P+="__ec__"+d[C]),d[C]++),null!=P&&(h[m]=P)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent={},w(this)}},_.count=function(){return this._count},_.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array){r=new e(n);for(var i=0;i<n;i++)r[i]=t[i]}else r=new e(t.buffer,0,n)}else{var r=new(e=g(this))(this.count());for(i=0;i<r.length;i++)r[i]=i}return r},_.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._storage;if(!n[t])return NaN;e=this.getRawIndex(e);var i=Math.floor(e/this._chunkSize),r=e%this._chunkSize;return n[t][i][r]},_.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._storage[t];if(!n)return NaN;var i=Math.floor(e/this._chunkSize),r=e%this._chunkSize;return n[i][r]},_._getFast=function(t,e){var n=Math.floor(e/this._chunkSize),i=e%this._chunkSize;return this._storage[t][n][i]},_.getValues=function(e,n){var i=[];t.isArray(e)||(n=e,e=this.dimensions);for(var r=0,o=e.length;r<o;r++)i.push(this.get(e[r],n));return i},_.hasValue=function(t){for(var e=this._dimensionsSummary.dataDimsOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this.get(e[n],t)))return!1;return!0},_.getDataExtent=function(t){t=this.getDimension(t);var e=this._storage[t],n=L();if(!e)return n;var i,r=this.count();if(!this._indices)return this._rawExtent[t].slice();if(i=this._extent[t])return i.slice();for(var o=(i=n)[0],a=i[1],s=0;s<r;s++){var l=this._getFast(t,this.getRawIndex(s));l<o&&(o=l),l>a&&(a=l)}return i=[o,a],this._extent[t]=i,i},_.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},_.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},_.getCalculationInfo=function(t){return this._calculationInfo[t]},_.setCalculationInfo=function(e,n){u(e)?t.extend(this._calculationInfo,e):this._calculationInfo[e]=n},_.getSum=function(t){var e=0;if(this._storage[t])for(var n=0,i=this.count();n<i;n++){var r=this.get(t,n);isNaN(r)||(e+=r)}return e},_.getMedian=function(t){var e=[];this.each(t,(function(t,n){isNaN(t)||e.push(t)}));var n=[].concat(e).sort((function(t,e){return t-e})),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},_.rawIndexOf=function(t,e){var n=(t&&this._invertedIndicesMap[t])[e];return null==n||isNaN(n)?-1:n},_.indexOfName=function(t){for(var e=0,n=this.count();e<n;e++)if(this.getName(e)===t)return e;return-1},_.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,r=this._count-1;i<=r;){var o=(i+r)/2|0;if(e[o]<t)i=o+1;else{if(!(e[o]>t))return o;r=o-1}}return-1},_.indicesOfNearest=function(t,e,n){var i=[];if(!this._storage[t])return i;null==n&&(n=1/0);for(var r=1/0,o=-1,a=0,s=0,l=this.count();s<l;s++){var u=e-this.get(t,s),h=Math.abs(u);h<=n&&((h<r||h===r&&u>=0&&o<0)&&(r=h,o=u,a=0),u===o&&(i[a++]=s))}return i.length=a,i},_.getRawIndex=M,_.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],n=0;n<this.dimensions.length;n++){var i=this.dimensions[n];e.push(this.get(i,t))}return e},_.getName=function(t){var e=this.getRawIndex(t);return this._nameList[e]||S(this,this._nameDimIdx,e)||""},_.getId=function(t){return T(this,this.getRawIndex(t))},_.each=function(e,n,i,r){if(this._count){"function"==typeof e&&(r=i,i=n,n=e,e=[]),i=i||r||this;for(var o=(e=t.map(C(e),this.getDimension,this)).length,a=0;a<this.count();a++)switch(o){case 0:n.call(i,a);break;case 1:n.call(i,this.get(e[0],a),a);break;case 2:n.call(i,this.get(e[0],a),this.get(e[1],a),a);break;default:for(var s=0,l=[];s<o;s++)l[s]=this.get(e[s],a);l[s]=a,n.apply(i,l)}}},_.filterSelf=function(e,n,i,r){if(this._count){"function"==typeof e&&(r=i,i=n,n=e,e=[]),i=i||r||this,e=t.map(C(e),this.getDimension,this);for(var o=this.count(),a=new(g(this))(o),s=[],l=e.length,u=0,h=e[0],c=0;c<o;c++){var d,p=this.getRawIndex(c);if(0===l)d=n.call(i,c);else if(1===l){var f=this._getFast(h,p);d=n.call(i,f,c)}else{for(var v=0;v<l;v++)s[v]=this._getFast(h,p);s[v]=c,d=n.apply(i,s)}d&&(a[u++]=p)}return u<o&&(this._indices=a),this._count=u,this._extent={},this.getRawIndex=this._indices?I:M,this}},_.selectRange=function(t){if(this._count){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);var i=e.length;if(i){var r=this.count(),o=new(g(this))(r),a=0,s=e[0],l=t[s][0],u=t[s][1],h=!1;if(!this._indices){var c=0;if(1===i){for(var d=this._storage[e[0]],p=0;p<this._chunkCount;p++)for(var f=d[p],v=Math.min(this._count-p*this._chunkSize,this._chunkSize),m=0;m<v;m++){((w=f[m])>=l&&w<=u||isNaN(w))&&(o[a++]=c),c++}h=!0}else if(2===i){d=this._storage[s];var y=this._storage[e[1]],x=t[e[1]][0],_=t[e[1]][1];for(p=0;p<this._chunkCount;p++){f=d[p];var b=y[p];for(v=Math.min(this._count-p*this._chunkSize,this._chunkSize),m=0;m<v;m++){var w=f[m],S=b[m];(w>=l&&w<=u||isNaN(w))&&(S>=x&&S<=_||isNaN(S))&&(o[a++]=c),c++}}h=!0}}if(!h)if(1===i)for(m=0;m<r;m++){var T=this.getRawIndex(m);((w=this._getFast(s,T))>=l&&w<=u||isNaN(w))&&(o[a++]=T)}else for(m=0;m<r;m++){var C=!0;for(T=this.getRawIndex(m),p=0;p<i;p++){var A=e[p];((w=this._getFast(n,T))<t[A][0]||w>t[A][1])&&(C=!1)}C&&(o[a++]=this.getRawIndex(m))}return a<r&&(this._indices=o),this._count=a,this._extent={},this.getRawIndex=this._indices?I:M,this}}},_.mapArray=function(t,e,n,i){"function"==typeof t&&(i=n,n=e,e=t,t=[]),n=n||i||this;var r=[];return this.each(t,(function(){r.push(e&&e.apply(this,arguments))}),n),r},_.map=function(e,n,i,r){i=i||r||this;var o=A(this,e=t.map(C(e),this.getDimension,this));o._indices=this._indices,o.getRawIndex=o._indices?I:M;for(var a=o._storage,s=[],l=this._chunkSize,u=e.length,h=this.count(),c=[],d=o._rawExtent,p=0;p<h;p++){for(var f=0;f<u;f++)c[f]=this.get(e[f],p);c[u]=p;var g=n&&n.apply(i,c);if(null!=g){"object"!=typeof g&&(s[0]=g,g=s);for(var v=this.getRawIndex(p),m=Math.floor(v/l),y=v%l,x=0;x<g.length;x++){var _=e[x],b=g[x],w=d[_],S=a[_];S&&(S[m][y]=b),b<w[0]&&(w[0]=b),b>w[1]&&(w[1]=b)}}}return o},_.downSample=function(t,e,n,i){for(var r=A(this,[t]),o=r._storage,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=this._chunkSize,c=r._rawExtent[t],d=new(g(this))(u),p=0,f=0;f<u;f+=s){s>u-f&&(s=u-f,a.length=s);for(var v=0;v<s;v++){var m=this.getRawIndex(f+v),y=Math.floor(m/h),x=m%h;a[v]=l[y][x]}var _=n(a),b=this.getRawIndex(Math.min(f+i(a,_)||0,u-1)),w=b%h;l[Math.floor(b/h)][w]=_,_<c[0]&&(c[0]=_),_>c[1]&&(c[1]=_),d[p++]=b}return r._count=p,r._indices=d,r.getRawIndex=I,r},_.getItemModel=function(t){var n=this.hostModel;return new e(this.getRawDataItem(t),n,n&&n.ecModel)},_.diff=function(t){var e=this;return new n(t?t.getIndices():[],this.getIndices(),(function(e){return T(t,e)}),(function(t){return T(e,t)}))},_.getVisual=function(t){var e=this._visual;return e&&e[t]},_.setVisual=function(t,e){if(u(t))for(var n in t)t.hasOwnProperty(n)&&this.setVisual(n,t[n]);else this._visual=this._visual||{},this._visual[t]=e},_.setLayout=function(t,e){if(u(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},_.getLayout=function(t){return this._layout[t]},_.getItemLayout=function(t){return this._itemLayouts[t]},_.setItemLayout=function(e,n,i){this._itemLayouts[e]=i?t.extend(this._itemLayouts[e]||{},n):n},_.clearItemLayouts=function(){this._itemLayouts.length=0},_.getItemVisual=function(t,e,n){var i=this._itemVisuals[t],r=i&&i[e];return null!=r||n?r:this.getVisual(e)},_.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{},r=this.hasItemVisual;if(this._itemVisuals[t]=i,u(e))for(var o in e)e.hasOwnProperty(o)&&(i[o]=e[o],r[o]=!0);else i[e]=n,r[e]=!0},_.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var k=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};return _.setItemGraphicEl=function(t,e){var n=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=n&&n.seriesIndex,"group"===e.type&&e.traverse(k,e)),this._graphicEls[t]=e},_.getItemGraphicEl=function(t){return this._graphicEls[t]},_.eachItemGraphicEl=function(e,n){t.each(this._graphicEls,(function(t,i){t&&e&&e.call(n,t,i)}))},_.cloneShallow=function(e){if(!e){var n=t.map(this.dimensions,this.getDimensionInfo,this);e=new x(n,this.hostModel)}if(e._storage=this._storage,y(e,this),this._indices){var i=this._indices.constructor;e._indices=new i(this._indices)}else e._indices=null;return e.getRawIndex=e._indices?I:M,e},_.wrapMethod=function(e,n){var i=this[e];"function"==typeof i&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=i.apply(this,arguments);return n.apply(this,[e].concat(t.slice(arguments)))})},_.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],_.CHANGABLE_METHODS=["filterSelf","selectRange"],xq=x}function Dq(){if(wq)return bq;wq=1;var t=hW(),e=t.createHashMap,n=t.each,i=t.isString,r=t.defaults,o=t.extend,a=t.isObject,s=t.clone,l=mY().normalizeToArray,u=lj(),h=u.guessOrdinal,c=u.BE_ORDINAL,d=sj(),p=Tq().OTHER_DIMENSIONS,f=Cq();function g(t,e,n){if(n||null!=e.get(t)){for(var i=0;null!=e.get(t+i);)i++;t+=i}return e.set(t,!0),t}var v=function(t,u,v){d.isInstance(u)||(u=d.seriesDataToSource(u)),v=v||{},t=(t||[]).slice();for(var m=(v.dimsDef||[]).slice(),y=e(),x=e(),_=[],b=function(t,e,i,r){var o=Math.max(t.dimensionsDetectCount||1,e.length,i.length,r||0);return n(e,(function(t){var e=t.dimsDef;e&&(o=Math.max(o,e.length))})),o}(u,t,m,v.dimCount),w=0;w<b;w++){var S=m[w]=o({},a(m[w])?m[w]:{name:m[w]}),M=S.name,I=_[w]=new f;null!=M&&null==y.get(M)&&(I.name=I.displayName=M,y.set(M,w)),null!=S.type&&(I.type=S.type),null!=S.displayName&&(I.displayName=S.displayName)}var T=v.encodeDef;!T&&v.encodeDefaulter&&(T=v.encodeDefaulter(u,b)),(T=e(T)).each((function(t,e){if(1===(t=l(t).slice()).length&&!i(t[0])&&t[0]<0)T.set(e,!1);else{var r=T.set(e,[]);n(t,(function(t,n){i(t)&&(t=y.get(t)),null!=t&&t<b&&(r[n]=t,A(_[t],e,n))}))}}));var C=0;function A(t,e,n){null!=p.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,x.set(e,!0))}n(t,(function(t,e){var o,u,h;if(i(t))o=t,t={};else{o=t.name;var c=t.ordinalMeta;t.ordinalMeta=null,(t=s(t)).ordinalMeta=c,u=t.dimsDef,h=t.otherDims,t.name=t.coordDim=t.coordDimIndex=t.dimsDef=t.otherDims=null}if(!1!==(d=T.get(o))){var d;if(!(d=l(d)).length)for(var p=0;p<(u&&u.length||1);p++){for(;C<_.length&&null!=_[C].coordDim;)C++;C<_.length&&d.push(C++)}n(d,(function(e,n){var i=_[e];if(A(r(i,t),o,n),null==i.name&&u){var s=u[n];!a(s)&&(s={name:s}),i.name=i.displayName=s.name,i.defaultTooltip=s.defaultTooltip}h&&r(i.otherDims,h)}))}}));var D=v.generateCoord,L=v.generateCoordCount,k=null!=L;L=D?L||1:0;for(var P=D||"value",O=0;O<b;O++){null==(I=_[O]=_[O]||new f).coordDim&&(I.coordDim=g(P,x,k),I.coordDimIndex=0,(!D||L<=0)&&(I.isExtraCoord=!0),L--),null==I.name&&(I.name=g(I.coordDim,y)),null!=I.type||h(u,O,I.name)!==c.Must&&(!I.isExtraCoord||null==I.otherDims.itemName&&null==I.otherDims.seriesName)||(I.type="ordinal")}return _};return bq=v}function Lq(){if(Mq)return Sq;Mq=1;var t=Dq();return Sq=function(e,n){return t((n=n||{}).coordDimensions||[],e,{dimsDef:n.dimensionsDefine||e.dimensionsDefine,encodeDef:n.encodeDefine||e.encodeDefine,dimCount:n.dimensionsCount,encodeDefaulter:n.encodeDefaulter,generateCoord:n.generateCoord,generateCoordCount:n.generateCoordCount})}}var kq,Pq={};var Oq,Rq,Nq,Eq={};function zq(){if(Oq)return Eq;Oq=1;var t=hW(),e=t.each,n=t.isString;function i(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}return Eq.enableDataStack=function(t,i,r){var o,a,s,l,u=(r=r||{}).byIndex,h=r.stackedCoordDimension,c=!(!t||!t.get("stack"));if(e(i,(function(t,e){n(t)&&(i[e]=t={name:t}),c&&!t.isExtraCoord&&(u||o||!t.ordinalMeta||(o=t),a||"ordinal"===t.type||"time"===t.type||h&&h!==t.coordDim||(a=t))})),!a||u||o||(u=!0),a){s="__\0ecstackresult",l="__\0ecstackedover",o&&(o.createInvertedIndices=!0);var d=a.coordDim,p=a.type,f=0;e(i,(function(t){t.coordDim===d&&f++})),i.push({name:s,coordDim:d,coordDimIndex:f,type:p,isExtraCoord:!0,isCalculationCoord:!0}),f++,i.push({name:l,coordDim:l,coordDimIndex:f,type:p,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:a&&a.name,stackedByDimension:o&&o.name,isStackedByIndex:u,stackedOverDimension:l,stackResultDimension:s}},Eq.isDimensionStacked=i,Eq.getStackedDimension=function(t,e){return i(t,e)?t.getCalculationInfo("stackResultDimension"):e},Eq}function Vq(){if(Nq)return Rq;Nq=1;var t=hW(),e=Aq(),n=Lq(),i=aj().SOURCE_FORMAT_ORIGINAL,r=Tq().getDimensionTypeByAxis,o=mY().getDataItemValue,a=cj(),s=function(){if(kq)return Pq;kq=1,tW().__DEV__;var t=hW(),e=t.createHashMap;t.retrieve;var n=t.each;function i(t){this.coordSysName=t,this.coordSysDims=[],this.axisMap=e(),this.categoryAxisMap=e(),this.firstCategoryDimIndex=null}var r={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis")[0],a=t.getReferringComponents("yAxis")[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",a),o(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),o(a)&&(i.set("y",a),e.firstCategoryDimIndex,e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis")[0];e.coordSysDims=["single"],n.set("single",r),o(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar")[0],a=r.findAxisModel("radiusAxis"),s=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",s),o(a)&&(i.set("radius",a),e.firstCategoryDimIndex=0),o(s)&&(i.set("angle",s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,i,r){var a=t.ecModel,s=a.getComponent("parallel",t.get("parallelIndex")),l=e.coordSysDims=s.dimensions.slice();n(s.parallelAxisIndex,(function(t,n){var s=a.getComponent("parallelAxis",t),u=l[n];i.set(u,s),o(s)&&null==e.firstCategoryDimIndex&&(r.set(u,s),e.firstCategoryDimIndex=n)}))}};function o(t){return"category"===t.get("type")}return Pq.getCoordSysInfoBySeries=function(t){var e=t.get("coordinateSystem"),n=new i(e),o=r[e];if(o)return o(t,n,n.axisMap,n.categoryAxisMap),n},Pq}().getCoordSysInfoBySeries,l=sj(),u=zq().enableDataStack,h=lj().makeSeriesEncodeForAxisCoordSys;var c=function(c,d,p){p=p||{},l.isInstance(c)||(c=l.seriesDataToSource(c));var f,g=d.get("coordinateSystem"),v=a.get(g),m=s(d);m&&(f=t.map(m.coordSysDims,(function(t){var e={name:t},n=m.axisMap.get(t);if(n){var i=n.get("type");e.type=r(i)}return e}))),f||(f=v&&(v.getDimensionsInfo?v.getDimensionsInfo():v.dimensions.slice())||["x","y"]);var y,x,_=n(c,{coordDimensions:f,generateCoord:p.generateCoord,encodeDefaulter:p.useEncodeDefaulter?t.curry(h,f,d):null});m&&t.each(_,(function(t,e){var n=t.coordDim,i=m.categoryAxisMap.get(n);i&&(null==y&&(y=e),t.ordinalMeta=i.getOrdinalMeta()),null!=t.otherDims.itemName&&(x=!0)})),x||null==y||(_[y].otherDims.itemName=0);var b=u(d,_),w=new e(_,d);w.setCalculationInfo(b);var S=null!=y&&function(e){if(e.sourceFormat===i){var n=function(t){var e=0;for(;e<t.length&&null==t[e];)e++;return t[e]}(e.data||[]);return null!=n&&!t.isArray(o(n))}}(c)?function(t,e,n,i){return i===y?n:this.defaultDimValueGetter(t,e,n,i)}:null;return w.hasItemOption=!1,w.initData(c,null,S),w};return Rq=c}var Bq,Gq,Fq,Hq,Wq,Uq,Yq={};function Zq(){if(Gq)return Bq;Gq=1;var t=TY();function e(t){this._setting=t||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}return e.prototype.parse=function(t){return t},e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.contain=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},e.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},e.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},e.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e.prototype.getLabel=null,t.enableClassExtend(e),t.enableClassManagement(e,{registerWhenExtend:!0}),Bq=e}function Xq(){if(Hq)return Fq;Hq=1;var t=hW(),e=t.createHashMap,n=t.isObject,i=t.map;function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this._map}r.createByAxisModel=function(t){var e=t.option,n=e.data,o=n&&i(n,s);return new r({categories:o,needCollect:!o,deduplication:!1!==e.dedplication})};var o=r.prototype;function a(t){return t._map||(t._map=e(t.categories))}function s(t){return n(t)&&null!=t.value?t.value:t+""}return o.getOrdinal=function(t){return a(this).get(t)},o.parseAndCollect=function(t){var e,n=this._needCollect;if("string"!=typeof t&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=a(this);return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},Fq=r}var jq,qq,Kq,$q={};function Jq(){if(jq)return $q;jq=1;var t=MX(),e=t.round;function n(e){return t.getPrecisionSafe(e)+2}function i(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function r(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),i(t,0,e),i(t,1,e),t[0]>t[1]&&(t[0]=t[1])}return $q.intervalScaleNiceTicks=function(i,o,a,s){var l={},u=i[1]-i[0],h=l.interval=t.nice(u/o,!0);null!=a&&h<a&&(h=l.interval=a),null!=s&&h>s&&(h=l.interval=s);var c=l.intervalPrecision=n(h);return r(l.niceTickExtent=[e(Math.ceil(i[0]/h)*h,c),e(Math.floor(i[1]/h)*h,c)],i),l},$q.getIntervalPrecision=n,$q.fixExtent=r,$q}function Qq(){if(Kq)return qq;Kq=1;var t=MX(),e=EX(),n=Zq(),i=Jq(),r=t.round,o=n.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),o.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=i.getIntervalPrecision(t)},getTicks:function(t){var e=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,a=[];if(!e)return a;n[0]<i[0]&&(t?a.push(r(i[0]-e,o)):a.push(n[0]));for(var s=i[0];s<=i[1]&&(a.push(s),(s=r(s+e,o))!==a[a.length-1]);)if(a.length>1e4)return[];var l=a.length?a[a.length-1]:i[1];return n[1]>l&&(t?a.push(r(l+e,o)):a.push(n[1])),a},getMinorTicks:function(e){for(var n=this.getTicks(!0),i=[],r=this.getExtent(),o=1;o<n.length;o++){for(var a=n[o],s=n[o-1],l=0,u=[],h=(a-s)/e;l<e-1;){var c=t.round(s+(l+1)*h);c>r[0]&&c<r[1]&&u.push(c),l++}i.push(u)}return i},getLabel:function(n,i){if(null==n)return"";var o=i&&i.precision;return null==o?o=t.getPrecisionSafe(n)||0:"auto"===o&&(o=this._intervalPrecision),n=r(n,o,!0),e.addCommas(n)},niceTicks:function(t,e,n){t=t||5;var r=this._extent,o=r[1]-r[0];if(isFinite(o)){o<0&&(o=-o,r.reverse());var a=i.intervalScaleNiceTicks(r,t,e,n);this._intervalPrecision=a.intervalPrecision,this._interval=a.interval,this._niceExtent=a.niceTickExtent}},niceExtent:function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=e[0];t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval;t.fixMin||(e[0]=r(Math.floor(e[0]/o)*o)),t.fixMax||(e[1]=r(Math.ceil(e[1]/o)*o))}});return o.create=function(){return new o},qq=o}var tK,eK,nK,iK,rK,oK,aK,sK,lK={};function uK(){if(tK)return lK;tK=1;var t=hW(),e=MX().parsePercent,n=zq().isDimensionStacked,i=Oj(),r="__ec_stack_",o="undefined"!=typeof Float32Array?Float32Array:Array;function a(t){return t.get("stack")||r+t.seriesIndex}function s(t){return t.dim+t.index}function l(t,e){var n=[];return e.eachSeriesByType(t,(function(t){p(t)&&!f(t)&&n.push(t)})),n}function u(n){var i=function(e){var n={};t.each(e,(function(t){var e=t.coordinateSystem.getBaseAxis();if("time"===e.type||"value"===e.type)for(var i=t.getData(),r=e.dim+"_"+e.index,o=i.mapDimension(e.dim),a=0,s=i.count();a<s;++a){var l=i.get(o,a);n[r]?n[r].push(l):n[r]=[l]}}));var i=[];for(var r in n)if(n.hasOwnProperty(r)){var o=n[r];if(o){o.sort((function(t,e){return t-e}));for(var a=null,s=1;s<o.length;++s){var l=o[s]-o[s-1];l>0&&(a=null===a?l:Math.min(a,l))}i[r]=a}}return i}(n),r=[];return t.each(n,(function(t){var n,o=t.coordinateSystem.getBaseAxis(),l=o.getExtent();if("category"===o.type)n=o.getBandWidth();else if("value"===o.type||"time"===o.type){var u=o.dim+"_"+o.index,h=i[u],c=Math.abs(l[1]-l[0]),d=o.scale.getExtent(),p=Math.abs(d[1]-d[0]);n=h?c/p*h:c}else{var f=t.getData();n=Math.abs(l[1]-l[0])/f.count()}var g=e(t.get("barWidth"),n),v=e(t.get("barMaxWidth"),n),m=e(t.get("barMinWidth")||1,n),y=t.get("barGap"),x=t.get("barCategoryGap");r.push({bandWidth:n,barWidth:g,barMaxWidth:v,barMinWidth:m,barGap:y,barCategoryGap:x,axisKey:s(o),stackId:a(t)})})),h(r)}function h(n){var i={};t.each(n,(function(t,e){var n=t.axisKey,r=t.bandWidth,o=i[n]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},a=o.stacks;i[n]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var h=t.barMinWidth;h&&(a[s].minWidth=h);var c=t.barGap;null!=c&&(o.gap=c);var d=t.barCategoryGap;null!=d&&(o.categoryGap=d)}));var r={};return t.each(i,(function(n,i){r[i]={};var o=n.stacks,a=n.bandWidth,s=e(n.categoryGap,a),l=e(n.gap,1),u=n.remainedWidth,h=n.autoWidthCount,c=(u-s)/(h+(h-1)*l);c=Math.max(c,0),t.each(o,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,h--}else{var i=c;e&&e<i&&(i=Math.min(e,u)),n&&n>i&&(i=n),i!==c&&(t.width=i,u-=i+l*i,h--)}})),c=(u-s)/(h+(h-1)*l),c=Math.max(c,0);var d,p=0;t.each(o,(function(t,e){t.width||(t.width=c),d=t,p+=t.width*(1+l)})),d&&(p-=d.width*l);var f=-p/2;t.each(o,(function(t,e){r[i][e]=r[i][e]||{bandWidth:a,offset:f,width:t.width},f+=t.width*(1+l)}))})),r}function c(t,e,n){if(t&&e){var i=t[s(e)];return null!=i&&null!=n&&(i=i[a(n)]),i}}var d={seriesType:"bar",plan:i(),reset:function(t){if(p(t)&&f(t)){var e=t.getData(),n=t.coordinateSystem,i=n.grid.getRect(),r=n.getBaseAxis(),a=n.getOtherAxis(r),s=e.mapDimension(a.dim),l=e.mapDimension(r.dim),h=a.isHorizontal(),d=h?0:1,v=c(u([t]),r,t).width;return v>.5||(v=.5),{progress:function(t,e){var u,c=t.count,p=new o(2*c),f=new o(2*c),m=new o(c),y=[],x=[],_=0,b=0;for(;null!=(u=t.next());)x[d]=e.get(s,u),x[1-d]=e.get(l,u),y=n.dataToPoint(x,null,y),f[_]=h?i.x+i.width:y[0],p[_++]=y[0],f[_]=h?y[1]:i.y+i.height,p[_++]=y[1],m[b++]=u;e.setLayout({largePoints:p,largeDataIndices:m,largeBackgroundPoints:f,barWidth:v,valueAxisStart:g(r,a),backgroundStart:h?i.x:i.y,valueAxisHorizontal:h})}}}}};function p(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function f(t){return t.pipelineContext&&t.pipelineContext.large}function g(t,e,n){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}return lK.getLayoutOnAxis=function(e){var n=[],i=e.axis,o="axis0";if("category"===i.type){for(var a=i.getBandWidth(),s=0;s<e.count;s++)n.push(t.defaults({bandWidth:a,axisKey:o,stackId:r+s},e));var l=h(n),u=[];for(s=0;s<e.count;s++){var c=l[o][r+s];c.offsetCenter=c.offset+c.width/2,u.push(c)}return u}},lK.prepareLayoutBarSeries=l,lK.makeColumnLayout=u,lK.retrieveColumnLayout=c,lK.layout=function(e,i){var r=l(e,i),o=u(r),h={};t.each(r,(function(t){var e=t.getData(),i=t.coordinateSystem,r=i.getBaseAxis(),l=a(t),u=o[s(r)][l],c=u.offset,d=u.width,p=i.getOtherAxis(r),f=t.get("barMinHeight")||0;h[l]=h[l]||[],e.setLayout({bandWidth:u.bandWidth,offset:c,size:d});for(var v=e.mapDimension(p.dim),m=e.mapDimension(r.dim),y=n(e,v),x=p.isHorizontal(),_=g(r,p),b=0,w=e.count();b<w;b++){var S,M,I,T,C,A=e.get(v,b),D=e.get(m,b),L=A>=0?"p":"n",k=_;if(y&&(h[l][D]||(h[l][D]={p:_,n:_}),k=h[l][D][L]),x)S=k,M=(C=i.dataToPoint([A,D]))[1]+c,I=C[0]-_,T=d,Math.abs(I)<f&&(I=(I<0?-1:1)*f),isNaN(I)||y&&(h[l][D][L]+=I);else S=(C=i.dataToPoint([D,A]))[0]+c,M=k,I=d,T=C[1]-_,Math.abs(T)<f&&(T=(T<=0?-1:1)*f),isNaN(T)||y&&(h[l][D][L]+=T);e.setItemLayout(b,{x:S,y:M,width:I,height:T})}}),this)},lK.largeLayout=d,lK}function hK(){if(rK)return iK;rK=1;var t=hW(),e=Zq(),n=MX(),i=Qq(),r=e.prototype,o=i.prototype,a=n.getPrecisionSafe,s=n.round,l=Math.floor,u=Math.ceil,h=Math.pow,c=Math.log,d=e.extend({type:"log",base:10,$constructor:function(){e.apply(this,arguments),this._originalScale=new i},getTicks:function(e){var i=this._originalScale,r=this._extent,a=i.getExtent();return t.map(o.getTicks.call(this,e),(function(t){var e=n.round(h(this.base,t));return e=t===r[0]&&i.__fixMin?p(e,a[0]):e,e=t===r[1]&&i.__fixMax?p(e,a[1]):e}),this)},getMinorTicks:o.getMinorTicks,getLabel:o.getLabel,scale:function(t){return t=r.scale.call(this,t),h(this.base,t)},setExtent:function(t,e){var n=this.base;t=c(t)/c(n),e=c(e)/c(n),o.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,e=r.getExtent.call(this);e[0]=h(t,e[0]),e[1]=h(t,e[1]);var n=this._originalScale,i=n.getExtent();return n.__fixMin&&(e[0]=p(e[0],i[0])),n.__fixMax&&(e[1]=p(e[1],i[1])),e},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=c(t[0])/c(e),t[1]=c(t[1])/c(e),r.unionExtent.call(this,t)},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(i===1/0||i<=0)){var r=n.quantity(i);for(t/i*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var o=[n.round(u(e[0]/r)*r),n.round(l(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},niceExtent:function(t){o.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});function p(t,e){return s(t,a(e))}return t.each(["contain","normalize"],(function(t){d.prototype[t]=function(e){return e=c(e)/c(this.base),r[t].call(this,e)}})),d.create=function(){return new d},iK=d}function cK(){if(oK)return Yq;oK=1,tW().__DEV__;var t=hW(),e=function(){if(Uq)return Wq;Uq=1;var t=hW(),e=Zq(),n=Xq(),i=e.prototype,r=e.extend({type:"ordinal",init:function(e,i){e&&!t.isArray(e)||(e=new n({categories:e})),this._ordinalMeta=e,this._extent=i||[0,e.categories.length-1]},parse:function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},contain:function(t){return t=this.parse(t),i.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return i.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(i.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push(n),n++;return t},getLabel:function(t){if(!this.isBlank())return this._ordinalMeta.categories[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:t.noop,niceExtent:t.noop});return r.create=function(){return new r},Wq=r}(),n=Qq(),i=Zq(),r=MX(),o=uK(),a=o.prepareLayoutBarSeries,s=o.makeColumnLayout,l=o.retrieveColumnLayout,u=_U();function h(e,n){var i,o,u,h=e.type,c=n.getMin(),d=n.getMax(),p=e.getExtent();"ordinal"===h?i=n.getCategories().length:(o=n.get("boundaryGap"),t.isArray(o)||(o=[o||0,o||0]),"boolean"==typeof o[0]&&(o=[0,0]),o[0]=r.parsePercent(o[0],1),o[1]=r.parsePercent(o[1],1),u=p[1]-p[0]||Math.abs(p[0])),"dataMin"===c?c=p[0]:"function"==typeof c&&(c=c({min:p[0],max:p[1]})),"dataMax"===d?d=p[1]:"function"==typeof d&&(d=d({min:p[0],max:p[1]}));var f=null!=c,g=null!=d;null==c&&(c="ordinal"===h?i?0:NaN:p[0]-o[0]*u),null==d&&(d="ordinal"===h?i?i-1:NaN:p[1]+o[1]*u),(null==c||!isFinite(c))&&(c=NaN),(null==d||!isFinite(d))&&(d=NaN),e.setBlank(t.eqNaN(c)||t.eqNaN(d)||"ordinal"===h&&!e.getOrdinalMeta().categories.length),n.getNeedCrossZero()&&(c>0&&d>0&&!f&&(c=0),c<0&&d<0&&!g&&(d=0));var v=n.ecModel;if(v&&"time"===h){var m,y=a("bar",v);if(t.each(y,(function(t){m|=t.getBaseAxis()===n.axis})),m){var x=s(y),_=function(e,n,i,r){var o=i.axis.getExtent(),a=o[1]-o[0],s=l(r,i.axis);if(void 0===s)return{min:e,max:n};var u=1/0;t.each(s,(function(t){u=Math.min(t.offset,u)}));var h=-1/0;t.each(s,(function(t){h=Math.max(t.offset+t.width,h)})),u=Math.abs(u),h=Math.abs(h);var c=u+h,d=n-e,p=d/(1-(u+h)/a)-d;return n+=p*(h/c),e-=p*(u/c),{min:e,max:n}}(c,d,n,x);c=_.min,d=_.max}}return{extent:[c,d],fixMin:f,fixMax:g}}function c(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"string"==typeof e?e=function(e){return function(n){return n=t.scale.getLabel(n),e.replace("{value}",null!=n?n:"")}}(e):"function"==typeof e?function(i,r){return null!=n&&(r=i-n),e(d(t,i),r)}:function(e){return t.scale.getLabel(e)}}function d(t,e){return"category"===t.type?t.scale.getLabel(e):e}function p(t){var e=t.get("interval");return null==e?"auto":e}return function(){if(nK)return eK;nK=1;var t=hW(),e=MX(),n=EX(),i=Jq(),r=Qq(),o=r.prototype,a=Math.ceil,s=Math.floor,l=1e3,u=6e4,h=36e5,c=864e5,d=r.extend({type:"time",getLabel:function(t){var e=this._stepLvl,i=new Date(t);return n.formatTime(e[0],i,this.getSetting("useUTC"))},niceExtent:function(t){var n=this._extent;if(n[0]===n[1]&&(n[0]-=c,n[1]+=c),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-c}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(n[0]=e.round(s(n[0]/r)*r)),t.fixMax||(n[1]=e.round(a(n[1]/r)*r))},niceTicks:function(t,n,r){t=t||10;var o=this._extent,l=o[1]-o[0],u=l/t;null!=n&&u<n&&(u=n),null!=r&&u>r&&(u=r);var h=p.length,c=function(t,e,n,i){for(;n<i;){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n}(p,u,0,h),d=p[Math.min(c,h-1)],f=d[1];if("year"===d[0]){var g=l/f;f*=e.nice(g/t,!0)}var v=this.getSetting("useUTC")?0:60*new Date(+o[0]||+o[1]).getTimezoneOffset()*1e3,m=[Math.round(a((o[0]-v)/f)*f+v),Math.round(s((o[1]-v)/f)*f+v)];i.fixExtent(m,o),this._stepLvl=d,this._interval=f,this._niceExtent=m},parse:function(t){return+e.parseDate(t)}});t.each(["contain","normalize"],(function(t){d.prototype[t]=function(e){return o[t].call(this,this.parse(e))}}));var p=[["hh:mm:ss",l],["hh:mm:ss",5e3],["hh:mm:ss",1e4],["hh:mm:ss",15e3],["hh:mm:ss",3e4],["hh:mm\nMM-dd",u],["hh:mm\nMM-dd",3e5],["hh:mm\nMM-dd",6e5],["hh:mm\nMM-dd",9e5],["hh:mm\nMM-dd",18e5],["hh:mm\nMM-dd",h],["hh:mm\nMM-dd",72e5],["hh:mm\nMM-dd",216e5],["hh:mm\nMM-dd",432e5],["MM-dd\nyyyy",c],["MM-dd\nyyyy",1728e5],["MM-dd\nyyyy",2592e5],["MM-dd\nyyyy",3456e5],["MM-dd\nyyyy",432e6],["MM-dd\nyyyy",5184e5],["week",6048e5],["MM-dd\nyyyy",864e6],["week",12096e5],["week",18144e5],["month",26784e5],["week",36288e5],["month",53568e5],["week",6048e6],["quarter",8208e6],["month",107136e5],["month",13392e6],["half-year",16416e6],["month",214272e5],["month",26784e6],["year",32832e6]];d.create=function(t){return new d({useUTC:t.ecModel.get("useUTC")})},eK=d}(),hK(),Yq.getScaleExtent=h,Yq.niceScaleExtent=function(t,e){var n=h(t,e),i=n.extent,r=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var o=t.type;t.setExtent(i[0],i[1]),t.niceExtent({splitNumber:r,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===o||"time"===o?e.get("minInterval"):null,maxInterval:"interval"===o||"time"===o?e.get("maxInterval"):null});var a=e.get("interval");null!=a&&t.setInterval&&t.setInterval(a)},Yq.createScaleByModel=function(t,r){if(r=r||t.get("type"))switch(r){case"category":return new e(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case"value":return new n;default:return(i.getClass(r)||n).create(t)}},Yq.ifAxisCrossZero=function(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)},Yq.makeLabelFormatter=c,Yq.getAxisRawValue=d,Yq.estimateLabelUnionRect=function(t){var e=t.model,n=t.scale;if(e.get("axisLabel.show")&&!n.isBlank()){var i,r,o="category"===t.type,a=n.getExtent();r=o?n.count():(i=n.getTicks()).length;var s,l,h,d,p,f,g,v,m,y=t.getLabelModel(),x=c(t),_=1;r>40&&(_=Math.ceil(r/40));for(var b=0;b<r;b+=_){var w=x(i?i[b]:a[0]+b),S=y.getTextRect(w),M=(l=S,h=y.get("rotate")||0,d=void 0,p=void 0,f=void 0,g=void 0,v=void 0,m=void 0,d=h*Math.PI/180,p=l.plain(),f=p.width,g=p.height,v=f*Math.abs(Math.cos(d))+Math.abs(g*Math.sin(d)),m=f*Math.abs(Math.sin(d))+Math.abs(g*Math.cos(d)),new u(p.x,p.y,v,m));s?s.union(M):s=M}return s}},Yq.getOptionCategoryInterval=p,Yq.shouldShowAllLabels=function(t){return"category"===t.type&&0===p(t.getLabelModel())},Yq}function dK(){if(sK)return aK;sK=1;var t=hW(),e={getMin:function(e){var n=this.option,i=e||null==n.rangeStart?n.min:n.rangeStart;return this.axis&&null!=i&&"dataMin"!==i&&"function"!=typeof i&&!t.eqNaN(i)&&(i=this.axis.scale.parse(i)),i},getMax:function(e){var n=this.option,i=e||null==n.rangeEnd?n.max:n.rangeEnd;return this.axis&&null!=i&&"dataMax"!==i&&"function"!=typeof i&&!t.eqNaN(i)&&(i=this.axis.scale.parse(i)),i},getNeedCrossZero:function(){var t=this.option;return null==t.rangeStart&&null==t.rangeEnd&&!t.scale},getCoordSysModel:t.noop,setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};return aK=e}var pK,fK,gK={};function vK(){if(pK)return gK;pK=1;var t=hW(),e=vX(),n=_U(),i=UU().calculateTextPosition,r=e.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i+o),t.lineTo(n-r,i+o),t.closePath()}}),o=e.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i),t.lineTo(n,i+o),t.lineTo(n-r,i),t.closePath()}}),a=e.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),h=Math.cos(u)*a,c=Math.sin(u),d=Math.cos(u),p=.6*a,f=.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+d*p,n,i-f,n,i),t.bezierCurveTo(n,i-f,n-h+c*p,l+s+d*p,n-h,l+s),t.closePath()}}),s=e.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,o=e.y,a=i/3*2;t.moveTo(r,o),t.lineTo(r+a,o+n),t.lineTo(r,o+n/4*3),t.lineTo(r-a,o+n),t.lineTo(r,o),t.closePath()}}),l={line:e.Line,rect:e.Rect,roundRect:e.Rect,square:e.Rect,circle:e.Circle,diamond:o,pin:a,arrow:s,triangle:r},u={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var o=Math.min(n,i);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},h={};t.each(l,(function(t,e){h[e]=new t}));var c=e.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=i(t,e,n),o=this.shape;return o&&"pin"===o.symbolType&&"inside"===e.textPosition&&(r.y=n.y+.4*n.height),r},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=h[i];r||(r=h[i="rect"]),u[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}});function d(t,e){if("image"!==this.type){var n=this.style,i=this.shape;i&&"line"===i.symbolType?n.stroke=t:this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff"):(n.fill&&(n.fill=t),n.stroke&&(n.stroke=t)),this.dirty(!1)}}return gK.createSymbol=function(t,i,r,o,a,s,l){var u,h=0===t.indexOf("empty");return h&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(u=0===t.indexOf("image://")?e.makeImage(t.slice(8),new n(i,r,o,a),l?"center":"cover"):0===t.indexOf("path://")?e.makePath(t.slice(7),{},new n(i,r,o,a),l?"center":"cover"):new c({shape:{symbolType:t,x:i,y:r,width:o,height:a}})).__isEmptyBrush=h,u.setColor=d,u.setColor(s),u},gK}var mK,yK,xK,_K,bK,wK={};function SK(){if(mK)return wK;mK=1;var t=mZ();function e(t,e){return Math.abs(t-e)<1e-8}return wK.contain=function(n,i,r){var o=0,a=n[0];if(!a)return!1;for(var s=1;s<n.length;s++){var l=n[s];o+=t(a[0],a[1],l[0],l[1],i,r),a=l}var u=n[0];return e(a[0],u[0])&&e(a[1],u[1])||(o+=t(a[0],a[1],u[0],u[1],i,r)),0!==o},wK}function MK(){if(xK)return yK;xK=1;var t=_U(),e=zY(),n=mW(),i=SK();function r(t,e,n){if(this.name=t,this.geometries=e,n)n=[n[0],n[1]];else{var i=this.getBoundingRect();n=[i.x+i.width/2,i.y+i.height/2]}this.center=n}return r.prototype={constructor:r,properties:null,getBoundingRect:function(){var i=this._rect;if(i)return i;for(var r=Number.MAX_VALUE,o=[r,r],a=[-r,-r],s=[],l=[],u=this.geometries,h=0;h<u.length;h++)if("polygon"===u[h].type){var c=u[h].exterior;e.fromPoints(c,s,l),n.min(o,o,s),n.max(a,a,l)}return 0===h&&(o[0]=o[1]=a[0]=a[1]=0),this._rect=new t(o[0],o[1],a[0]-o[0],a[1]-o[1])},contain:function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var r=0,o=n.length;r<o;r++)if("polygon"===n[r].type){var a=n[r].exterior,s=n[r].interiors;if(i.contain(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(i.contain(s[l]))continue t;return!0}}return!1},transformTo:function(e,i,r,o){var a=this.getBoundingRect(),s=a.width/a.height;r?o||(o=r/s):r=s*o;for(var l=new t(e,i,r,o),u=a.calculateTransform(l),h=this.geometries,c=0;c<h.length;c++)if("polygon"===h[c].type){for(var d=h[c].exterior,p=h[c].interiors,f=0;f<d.length;f++)n.applyTransform(d[f],d[f],u);for(var g=0;g<(p?p.length:0);g++)for(f=0;f<p[g].length;f++)n.applyTransform(p[g][f],p[g][f],u)}(a=this._rect).copy(l),this.center=[a.x+a.width/2,a.y+a.height/2]},cloneShallow:function(t){null==t&&(t=this.name);var e=new r(t,this.geometries,this.center);return e._rect=this._rect,e.transformTo=null,e}},yK=r}function IK(){if(bK)return _K;bK=1;var t=hW(),e=MK();function n(t,e,n){for(var i=[],r=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),r=s+=r,o=l+=o,i.push([s/n,l/n])}return i}return _K=function(i,r){return function(t){if(!t.UTF8Encoding)return t;var e=t.UTF8Scale;null==e&&(e=1024);for(var i=t.features,r=0;r<i.length;r++)for(var o=i[r].geometry,a=o.coordinates,s=o.encodeOffsets,l=0;l<a.length;l++){var u=a[l];if("Polygon"===o.type)a[l]=n(u,s[l],e);else if("MultiPolygon"===o.type)for(var h=0;h<u.length;h++){var c=u[h];u[h]=n(c,s[l][h],e)}}t.UTF8Encoding=!1}(i),t.map(t.filter(i.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(n){var i=n.properties,o=n.geometry,a=o.coordinates,s=[];"Polygon"===o.type&&s.push({type:"polygon",exterior:a[0],interiors:a.slice(1)}),"MultiPolygon"===o.type&&t.each(a,(function(t){t[0]&&s.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})}));var l=new e(i[r||"name"],s,i.cp);return l.properties=i,l}))}}var TK,CK,AK,DK,LK,kK={};function PK(){if(TK)return kK;TK=1;var t=hW(),e=UU(),n=mY().makeInner,i=cK(),r=i.makeLabelFormatter,o=i.getOptionCategoryInterval,a=i.shouldShowAllLabels,s=n();function l(e,n){var i,r,a=u(e,"labels"),l=o(n),f=h(a,l);return f||(t.isFunction(l)?i=p(e,l):(r="auto"===l?function(t){var e=s(t).autoInterval;return null!=e?e:s(t).autoInterval=t.calculateCategoryInterval()}(e):l,i=d(e,r)),c(a,l,{labels:i,labelCategoryInterval:r}))}function u(t,e){return s(t)[e]||(s(t)[e]=[])}function h(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function c(t,e,n){return t.push({key:e,value:n}),n}function d(t,e,n){var i=r(t),o=t.scale,s=o.getExtent(),l=t.getLabelModel(),u=[],h=Math.max((e||0)+1,1),c=s[0],d=o.count();0!==c&&h>1&&d/h>2&&(c=Math.round(Math.ceil(c/h)*h));var p=a(t),f=l.get("showMinLabel")||p,g=l.get("showMaxLabel")||p;f&&c!==s[0]&&m(s[0]);for(var v=c;v<=s[1];v+=h)m(v);function m(t){u.push(n?t:{formattedLabel:i(t),rawLabel:o.getLabel(t),tickValue:t})}return g&&v-h!==s[1]&&m(s[1]),u}function p(e,n,i){var o=e.scale,a=r(e),s=[];return t.each(o.getTicks(),(function(t){var e=o.getLabel(t);n(t,e)&&s.push(i?t:{formattedLabel:a(t),rawLabel:e,tickValue:t})})),s}return kK.createAxisLabels=function(e){return"category"===e.type?function(t){var e=t.getLabelModel(),n=l(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(e):function(e){var n=e.scale.getTicks(),i=r(e);return{labels:t.map(n,(function(t,n){return{formattedLabel:i(t,n),rawLabel:e.scale.getLabel(t),tickValue:t}}))}}(e)},kK.createAxisTicks=function(e,n){return"category"===e.type?function(e,n){var i,r,a=u(e,"ticks"),s=o(n),f=h(a,s);if(f)return f;n.get("show")&&!e.scale.isBlank()||(i=[]);if(t.isFunction(s))i=p(e,s,!0);else if("auto"===s){var g=l(e,e.getLabelModel());r=g.labelCategoryInterval,i=t.map(g.labels,(function(t){return t.tickValue}))}else i=d(e,r=s,!0);return c(a,s,{ticks:i,tickCategoryInterval:r})}(e,n):{ticks:e.scale.getTicks()}},kK.calculateCategoryInterval=function(t){var n=function(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()}}(t),i=r(t),o=(n.axisRotate-n.labelRotate)/180*Math.PI,a=t.scale,l=a.getExtent(),u=a.count();if(l[1]-l[0]<1)return 0;var h=1;u>40&&(h=Math.max(1,Math.floor(u/40)));for(var c=l[0],d=t.dataToCoord(c+1)-t.dataToCoord(c),p=Math.abs(d*Math.cos(o)),f=Math.abs(d*Math.sin(o)),g=0,v=0;c<=l[1];c+=h){var m,y,x=e.getBoundingRect(i(c),n.font,"center","top");m=1.3*x.width,y=1.3*x.height,g=Math.max(g,m,7),v=Math.max(v,y,7)}var _=g/p,b=v/f;isNaN(_)&&(_=1/0),isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(Math.min(_,b))),S=s(t.model),M=t.getExtent(),I=S.lastAutoInterval,T=S.lastTickCount;return null!=I&&null!=T&&Math.abs(I-w)<=1&&Math.abs(T-u)<=1&&I>w&&S.axisExtend0===M[0]&&S.axisExtend1===M[1]?w=I:(S.lastTickCount=u,S.lastAutoInterval=w,S.axisExtend0=M[0],S.axisExtend1=M[1]),w},kK}function OK(){if(AK)return CK;AK=1;var t=hW(),e=t.each,n=t.map,i=MX(),r=i.linearMap,o=i.getPixelPrecision,a=i.round,s=PK(),l=s.createAxisTicks,u=s.createAxisLabels,h=s.calculateCategoryInterval,c=[0,1],d=function(t,e,n){this.dim=t,this.scale=e,this._extent=n||[0,0],this.inverse=!1,this.onBand=!1};function p(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}return d.prototype={constructor:d,contain:function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},containData:function(t){return this.scale.contain(t)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return o(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var n=this._extent;n[0]=t,n[1]=e},dataToCoord:function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&p(n=n.slice(),i.count()),r(t,c,n,e)},coordToData:function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&p(n=n.slice(),i.count());var o=r(t,n,c,e);return this.scale.scale(o)},pointToData:function(t,e){},getTicksCoords:function(t){var i=(t=t||{}).tickModel||this.getTickModel(),r=l(this,i).ticks,o=n(r,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this);return function(t,n,i,r){var o=n.length;if(!t.onBand||i||!o)return;var s,l,u=t.getExtent();if(1===o)n[0].coord=u[0],s=n[1]={coord:u[0]};else{var h=n[o-1].tickValue-n[0].tickValue,c=(n[o-1].coord-n[0].coord)/h;e(n,(function(t){t.coord-=c/2})),l=1+t.scale.getExtent()[1]-n[o-1].tickValue,s={coord:n[o-1].coord+c*l},n.push(s)}var d=u[0]>u[1];p(n[0].coord,u[0])&&(r?n[0].coord=u[0]:n.shift());r&&p(u[0],n[0].coord)&&n.unshift({coord:u[0]});p(u[1],s.coord)&&(r?s.coord=u[1]:n.pop());r&&p(s.coord,u[1])&&n.push({coord:u[1]});function p(t,e){return t=a(t),e=a(e),d?t>e:t<e}}(this,o,i.get("alignWithLabel"),t.clamp),o},getMinorTicksCoords:function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");t>0&&t<100||(t=5);var e=this.scale.getMinorTicks(t);return n(e,(function(t){return n(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},getViewLabels:function(){return u(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return h(this)}},CK=d}function RK(){if(DK)return pq;DK=1;var t=fY();pq.zrender=t;var e=GW();pq.matrix=e;var n=mW();pq.vector=n;var i=hW(),r=KW();pq.color=r;var o=vX(),a=MX();pq.number=a;var s=EX();pq.format=s;var l=$j();l.throttle,pq.throttle=l.throttle;var u=function(){if(fK)return fq;fK=1;var t=hW(),e=Vq(),n=cK(),i=dK(),r=mX(),o=zX();o.getLayoutRect,fq.getLayoutRect=o.getLayoutRect;var a=zq(),s=a.enableDataStack,l=a.isDimensionStacked,u=a.getStackedDimension,h=Dq();fq.completeDimensions=h;var c=Lq();fq.createDimensions=c;var d=vK();fq.createSymbol=d.createSymbol;var p={isDimensionStacked:l,enableDataStack:s,getStackedDimension:u};return fq.createList=function(t){return e(t.getSource(),t)},fq.dataStack=p,fq.createScale=function(e,o){var a=o;r.isInstance(o)||(a=new r(o),t.mixin(a,i));var s=n.createScaleByModel(a);return s.setExtent(e[0],e[1]),n.niceScaleExtent(s,a),s},fq.mixinAxisModelCommonMethods=function(e){t.mixin(e,i)},fq}();pq.helper=u;var h=IK();pq.parseGeoJSON=h;var c=Aq();pq.List=c;var d=mX();pq.Model=d;var p=OK();pq.Axis=p;var f=sW();pq.env=f;var g=h,v={};i.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],(function(t){v[t]=i[t]}));var m={};return i.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],(function(t){m[t]=o[t]})),pq.parseGeoJson=g,pq.util=v,pq.graphic=m,pq}function NK(){return LK||(LK=1,function(t){tW().__DEV__;var e=fY(),n=hW(),i=KW(),r=sW(),o=wU(),a=yW(),s=uj(),l=hj(),u=cj(),h=dj(),c=function(){if(ej)return tj;ej=1;var t=hW(),e=t.each,n=t.isArray,i=t.isObject,r=pj(),o=mY().normalizeToArray;function a(t){e(s,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var s=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],l=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];return tj=function(t,s){r(t,s),t.series=o(t.series),e(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);else if("gauge"===e){var n=function(t,e){e=e.split(",");for(var n=t,i=0;i<e.length&&null!=(n=n&&n[e[i]]);i++);return n}(t,"pointer.color");null!=n&&function(t,e,n){e=e.split(",");for(var i,r=t,o=0;o<e.length-1;o++)null==r[i=e[o]]&&(r[i]={}),r=r[i];null==r[e[o]]&&(r[e[o]]=n)}(t,"itemStyle.color",n)}a(t)}})),t.dataRange&&(t.visualMap=t.dataRange),e(l,(function(i){var r=t[i];r&&(n(r)||(r=[r]),e(r,(function(t){a(t)})))}))},tj}(),d=function(){if(ij)return nj;ij=1;var t=hW(),e=t.createHashMap,n=t.each;function i(t){n(t,(function(e,n){var i=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=a.map(o,(function(o,l,u){var h,c,d=a.get(e.stackedDimension,u);if(isNaN(d))return r;s?c=a.getRawIndex(u):h=a.get(e.stackedByDimension,u);for(var p=NaN,f=n-1;f>=0;f--){var g=t[f];if(s||(c=g.data.rawIndexOf(g.stackedByDimension,h)),c>=0){var v=g.data.getByRawIndex(g.stackResultDimension,c);if(d>=0&&v>0||d<=0&&v<0){d+=v,p=v;break}}}return i[0]=d,i[1]=p,i}));a.hostModel.setData(l),e.data=l}))}return nj=function(t){var n=e();t.eachSeries((function(t){var e=t.get("stack");if(e){var i=n.get(e)||n.set(e,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}})),n.each(i)}}(),p=VX(),f=kj(),g=Pj(),v=Rj(),m=vX(),y=mY(),x=$j().throttle,_=function(){if(zj)return Ej;zj=1;var t=pX(),e=hW().isFunction;return Ej={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,i){var r=n.getData(),o=(n.visualColorAccessPath||"itemStyle.color").split("."),a=n.get(o),s=!e(a)||a instanceof t?null:a;a&&!s||(a=n.getColorFromPalette(n.name,null,i.getSeriesCount())),r.setVisual("color",a);var l=(n.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),u=n.get(l);if(r.setVisual("borderColor",u),!i.isSeriesFiltered(n))return s&&r.each((function(t){r.setItemVisual(t,"color",s(n.getDataParams(t)))})),{dataEach:r.hasItemOption?function(t,e){var n=t.getItemModel(e),i=n.get(o,!0),r=n.get(l,!0);null!=i&&t.setItemVisual(e,"color",i),null!=r&&t.setItemVisual(e,"borderColor",r)}:null}}}}(),b=function(){if(Fj)return Gj;Fj=1;var t=hW(),e=Jj(),n=yj().retrieveRawValue;return Gj=function(i,r){var o,a=r.getModel("aria");if(a.get("show"))if(a.get("description"))i.setAttribute("aria-label",a.get("description"));else{var s=0;r.eachSeries((function(t,e){++s}),this);var l,u=a.get("data.maxCount")||10,h=a.get("series.maxCount")||10,c=Math.min(s,h);if(!(s<1)){var d=((o=r.getModel("title").option)&&o.length&&(o=o[0]),o&&o.text);l=d?f(g("general.withTitle"),{title:d}):g("general.withoutTitle");var p=[];l+=f(g(s>1?"series.multiple.prefix":"series.single.prefix"),{seriesCount:s}),r.eachSeries((function(t,i){if(i<c){var r,o=t.get("name"),a="series."+(s>1?"multiple":"single")+".";r=f(r=g(o?a+"withName":a+"withoutName"),{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:(y=t.subType,e.series.typeNames[y]||"自定义图")});var l=t.getData();window.data=l,l.count()>u?r+=f(g("data.partialData"),{displayCnt:u}):r+=g("data.allData");for(var h=[],d=0;d<l.count();d++)if(d<u){var v=l.getName(d),m=n(l,d);h.push(f(g(v?"data.withName":"data.withoutName"),{name:v,value:m}))}r+=h.join(g("data.separator.middle"))+g("data.separator.end"),p.push(r)}var y})),l+=p.join(g("series.multiple.separator.middle"))+g("series.multiple.separator.end"),i.setAttribute("aria-label",l)}}function f(e,n){if("string"!=typeof e)return e;var i=e;return t.each(n,(function(t,e){i=i.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),i}function g(t){var n=a.get(t);if(null==n){for(var i=t.split("."),r=e.aria,o=0;o<i.length;++o)r=r[i[o]];return r}return n}},Gj}(),w=function(){if(Wj)return Hj;Wj=1;var t=hW(),e=vX(),n=UU(),i=Math.PI;return Hj=function(r,o){o=o||{},t.defaults(o,{text:"loading",textColor:"#000",fontSize:"12px",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#c23531",spinnerRadius:10,lineWidth:5,zlevel:0});var a=new e.Group,s=new e.Rect({style:{fill:o.maskColor},zlevel:o.zlevel,z:1e4});a.add(s);var l=o.fontSize+" sans-serif",u=new e.Rect({style:{fill:"none",text:o.text,font:l,textPosition:"right",textDistance:10,textFill:o.textColor},zlevel:o.zlevel,z:10001});if(a.add(u),o.showSpinner){var h=new e.Arc({shape:{startAngle:-i/2,endAngle:-i/2+.1,r:o.spinnerRadius},style:{stroke:o.color,lineCap:"round",lineWidth:o.lineWidth},zlevel:o.zlevel,z:10001});h.animateShape(!0).when(1e3,{endAngle:3*i/2}).start("circularInOut"),h.animateShape(!0).when(1e3,{startAngle:3*i/2}).delay(300).start("circularInOut"),a.add(h)}return a.resize=function(){var t=n.getWidth(o.text,l),e=o.showSpinner?o.spinnerRadius:0,i=(r.getWidth()-2*e-(o.showSpinner&&t?10:0)-t)/2-(o.showSpinner?0:t/2),a=r.getHeight()/2;o.showSpinner&&h.setShape({cx:i,cy:a}),u.setShape({x:i-e,y:a-e,width:2*e,height:2*e}),s.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},a.resize(),a}}(),S=Qj(),M=function(){if(Xj)return Zj;Xj=1;var t=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];return Zj={color:t,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],t]}}(),I=function(){if(qj)return jj;qj=1;var t="#eee",e=function(){return{axisLine:{lineStyle:{color:t}},axisTick:{lineStyle:{color:t}},axisLabel:{textStyle:{color:t}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:t}}}},n=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],i={color:n,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:t},crossStyle:{color:t},label:{color:"#000"}}},legend:{textStyle:{color:t}},textStyle:{color:t},title:{textStyle:{color:t}},toolbox:{iconStyle:{normal:{borderColor:t}}},dataZoom:{textStyle:{color:t}},visualMap:{textStyle:{color:t}},timeline:{lineStyle:{color:t},itemStyle:{normal:{color:n[1]}},label:{normal:{textStyle:{color:t}}},controlStyle:{normal:{color:t,borderColor:t}}},timeAxis:e(),logAxis:e(),valueAxis:e(),categoryAxis:e(),line:{symbol:"circle"},graph:{color:n},gauge:{title:{textStyle:{color:t}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};return i.categoryAxis.splitLine.show=!1,jj=i}();nq();var T=hq(),C=n.assert,A=n.each,D=n.isFunction,L=n.isObject,k=p.parseClassType,P={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:3500,COMPONENT:4e3,BRUSH:5e3}},O="__flagInMainProcess",R="__optionUpdated",N=/^[a-zA-Z0-9_]+$/;function E(t,e){return function(n,i,r){e||!this._disposed?(n=n&&n.toLowerCase(),a.prototype[t].call(this,n,i,r)):this.id}}function z(){a.call(this)}function V(t,i,r){r=r||{},"string"==typeof i&&(i=lt[i]),this.id,this.group,this._dom=t;var s=this._zr=e.init(t,{renderer:r.renderer||"canvas",devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height});this._throttledZrFlush=x(n.bind(s.flush,s),17),(i=n.clone(i))&&c(i,!0),this._theme=i,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new u;var h,d,p=this._api=(d=(h=this)._coordSysMgr,n.extend(new l(h),{getCoordinateSystems:n.bind(d.getCoordinateSystems,d),getComponentByElement:function(t){for(;t;){var e=t.__ecComponentInfo;if(null!=e)return h._model.getComponent(e.mainType,e.index);t=t.parent}}}));function f(t,e){return t.__prio-e.__prio}o(st,f),o(rt,f),this._scheduler=new S(this,p,rt,st),a.call(this,this._ecEventProcessor=new et),this._messageCenter=new z,this._initEvents(),this.resize=n.bind(this.resize,this),this._pendingActions=[],s.animation.on("frame",this._onframe,this),function(t,e){t.on("rendered",(function(){e.trigger("rendered"),!t.animation.isFinished()||e[R]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))}(s,this),n.setAsPrimitive(this)}z.prototype.on=E("on",!0),z.prototype.off=E("off",!0),z.prototype.one=E("one",!0),n.mixin(z,a);var B=V.prototype;function G(t,e,n){if(this._disposed)this.id;else{var i,r=this._model,o=this._coordSysMgr.getCoordinateSystems();e=y.parseFinder(r,e);for(var a=0;a<o.length;a++){var s=o[a];if(s[t]&&null!=(i=s[t](r,e,n)))return i}}}B._onframe=function(){if(!this._disposed){var t=this._scheduler;if(this[R]){var e=this[R].silent;this[O]=!0,H(this),F.update.call(this),this[O]=!1,this[R]=!1,Z.call(this,e),X.call(this,e)}else if(t.unfinished){var n=1,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),U(this,i),t.performVisualTasks(i),$(this,this._model,r,"remain"),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},B.getDom=function(){return this._dom},B.getZr=function(){return this._zr},B.setOption=function(t,e,n){if(this._disposed)this.id;else{var i;if(L(e)&&(n=e.lazyUpdate,i=e.silent,e=e.notMerge),this[O]=!0,!this._model||e){var r=new h(this._api),o=this._theme,a=this._model=new s;a.scheduler=this._scheduler,a.init(null,null,o,r)}this._model.setOption(t,ot),n?(this[R]={silent:i},this[O]=!1):(H(this),F.update.call(this),this._zr.flush(),this[R]=!1,this[O]=!1,Z.call(this,i),X.call(this,i))}},B.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},B.getModel=function(){return this._model},B.getOption=function(){return this._model&&this._model.getOption()},B.getWidth=function(){return this._zr.getWidth()},B.getHeight=function(){return this._zr.getHeight()},B.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},B.getRenderedCanvas=function(t){if(r.canvasSupported)return(t=t||{}).pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor"),this._zr.painter.getRenderedCanvas(t)},B.getSvgDataURL=function(){if(r.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return n.each(e,(function(t){t.stopAnimation(!0)})),t.painter.toDataURL()}},B.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;A(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return A(i,(function(t){t.group.ignore=!1})),o}this.id},B.getConnectedDataURL=function(t){if(this._disposed)this.id;else if(r.canvasSupported){var i="svg"===t.type,o=this.group,a=Math.min,s=Math.max,l=1/0;if(ct[o]){var u=l,h=l,c=-1/0,d=-1/0,p=[],f=t&&t.pixelRatio||1;n.each(ht,(function(e,r){if(e.group===o){var l=i?e.getZr().painter.getSvgDom().innerHTML:e.getRenderedCanvas(n.clone(t)),f=e.getDom().getBoundingClientRect();u=a(f.left,u),h=a(f.top,h),c=s(f.right,c),d=s(f.bottom,d),p.push({dom:l,left:f.left,top:f.top})}}));var g=(c*=f)-(u*=f),v=(d*=f)-(h*=f),y=n.createCanvas(),x=e.init(y,{renderer:i?"svg":"canvas"});if(x.resize({width:g,height:v}),i){var _="";return A(p,(function(t){var e=t.left-u,n=t.top-h;_+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),x.painter.getSvgRoot().innerHTML=_,t.connectedBackgroundColor&&x.painter.setBackgroundColor(t.connectedBackgroundColor),x.refreshImmediately(),x.painter.toDataURL()}return t.connectedBackgroundColor&&x.add(new m.Rect({shape:{x:0,y:0,width:g,height:v},style:{fill:t.connectedBackgroundColor}})),A(p,(function(t){var e=new m.Image({style:{x:t.left*f-u,y:t.top*f-h,image:t.dom}});x.add(e)})),x.refreshImmediately(),y.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},B.convertToPixel=n.curry(G,"convertToPixel"),B.convertFromPixel=n.curry(G,"convertFromPixel"),B.containPixel=function(t,e){if(!this._disposed){var i,r=this._model;return t=y.parseFinder(r,t),n.each(t,(function(t,r){r.indexOf("Models")>=0&&n.each(t,(function(t){var n=t.coordinateSystem;if(n&&n.containPoint)i|=!!n.containPoint(e);else if("seriesModels"===r){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(i|=o.containPoint(e,t))}}),this)}),this),!!i}this.id},B.getVisual=function(t,e){var n=this._model,i=(t=y.parseFinder(n,t,{defaultMainType:"series"})).seriesModel.getData(),r=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?i.indexOfRawIndex(t.dataIndex):null;return null!=r?i.getItemVisual(r,e):i.getVisual(e)},B.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},B.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var F={prepareAndUpdate:function(t){H(this),F.update.call(this,t)},update:function(t){var e=this._model,n=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(e){s.restoreData(e,t),s.performSeriesTasks(e),a.create(e,n),s.performDataProcessorTasks(e,t),U(this,e),a.update(e,n),q(e),s.performVisualTasks(e,t),K(this,e,n,t);var l=e.get("backgroundColor")||"transparent";if(r.canvasSupported)o.setBackgroundColor(l);else{var u=i.parse(l);l=i.stringify(u,"rgb"),0===u[3]&&(l="transparent")}J(e,n)}},updateTransform:function(t){var e=this._model,i=this,r=this._api;if(e){var o=[];e.eachComponent((function(n,a){var s=i.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,e,r,t);l&&l.update&&o.push(s)}else o.push(s)}));var a=n.createHashMap();e.eachSeries((function(n){var o=i._chartsMap[n.__viewId];if(o.updateTransform){var s=o.updateTransform(n,e,r,t);s&&s.update&&a.set(n.uid,1)}else a.set(n.uid,1)})),q(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0,dirtyMap:a}),$(i,e,r,t,a),J(e,this._api)}},updateView:function(t){var e=this._model;e&&(v.markUpdateMethod(t,"updateView"),q(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),K(this,this._model,this._api,t),J(e,this._api))},updateVisual:function(t){F.update.call(this,t)},updateLayout:function(t){F.update.call(this,t)}};function H(t){var e=t._model,n=t._scheduler;n.restorePipelines(e),n.prepareStageTasks(),j(t,"component",e,n),j(t,"chart",e,n),n.plan()}function W(t,e,i,r,o){var a=t._model;if(r){var s={};s[r+"Id"]=i[r+"Id"],s[r+"Index"]=i[r+"Index"],s[r+"Name"]=i[r+"Name"];var l={mainType:r,query:s};o&&(l.subType=o);var u=i.excludeSeriesId;null!=u&&(u=n.createHashMap(y.normalizeToArray(u))),a&&a.eachComponent(l,(function(e){u&&null!=u.get(e.id)||h(t["series"===r?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else A(t._componentsViews.concat(t._chartsViews),h);function h(n){n&&n.__alive&&n[e]&&n[e](n.__model,a,t._api,i)}}function U(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries((function(t){i.updateStreamModes(t,n[t.__viewId])}))}function Y(t,e){var i=t.type,r=t.escapeConnect,o=nt[i],a=o.actionInfo,s=(a.update||"update").split(":"),l=s.pop();s=null!=s[0]&&k(s[0]),this[O]=!0;var u=[t],h=!1;t.batch&&(h=!0,u=n.map(t.batch,(function(e){return(e=n.defaults(n.extend({},e),t)).batch=null,e})));var c,d=[],p="highlight"===i||"downplay"===i;A(u,(function(t){(c=(c=o.action(t,this._model,this._api))||n.extend({},t)).type=a.event||c.type,d.push(c),p?W(this,l,t,"series"):s&&W(this,l,t,s.main,s.sub)}),this),"none"===l||p||s||(this[R]?(H(this),F.update.call(this,t),this[R]=!1):F[l].call(this,t)),c=h?{type:a.event||i,escapeConnect:r,batch:d}:d[0],this[O]=!1,!e&&this._messageCenter.trigger(c.type,c)}function Z(t){for(var e=this._pendingActions;e.length;){var n=e.shift();Y.call(this,n,t)}}function X(t){!t&&this.trigger("updated")}function j(t,e,n,i){for(var r="component"===e,o=r?t._componentsViews:t._chartsViews,a=r?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,u=0;u<o.length;u++)o[u].__alive=!1;function h(t){var e="_ec_"+t.id+"_"+t.type,u=a[e];if(!u){var h=k(t.type);(u=new(r?g.getClass(h.main,h.sub):v.getClass(h.sub))).init(n,l),a[e]=u,o.push(u),s.add(u.group)}t.__viewId=u.__id=e,u.__alive=!0,u.__model=t,u.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!r&&i.prepareView(u,t,n,l)}r?n.eachComponent((function(t,e){"series"!==t&&h(e)})):n.eachSeries(h);for(u=0;u<o.length;){var c=o[u];c.__alive?u++:(!r&&c.renderTask.dispose(),s.remove(c.group),c.dispose(n,l),o.splice(u,1),delete a[c.__id],c.__id=c.group.__ecComponentInfo=null)}}function q(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function K(t,e,n,i){!function(t,e,n,i){A(t._componentsViews,(function(t){var r=t.__model;t.render(r,e,n,i),tt(r,t)}))}(t,e,n,i),A(t._chartsViews,(function(t){t.__alive=!1})),$(t,e,n,i),A(t._chartsViews,(function(t){t.__alive||t.remove(e,n)}))}function $(t,e,n,i,o){var a,s=t._scheduler;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var r=n.renderTask;s.updatePayload(r,i),o&&o.get(e.uid)&&r.dirty(),a|=r.perform(s.getPerformArgs(r)),n.group.silent=!!e.get("silent"),tt(e,n),function(t,e){var n=t.get("blendMode")||null;e.group.traverse((function(t){t.isGroup||t.style.blend!==n&&t.setStyle("blend",n),t.eachPendingDisplayable&&t.eachPendingDisplayable((function(t){t.setStyle("blend",n)}))}))}(e,n)})),s.unfinished|=a,function(t,e){var n=t._zr,i=n.storage,o=0;i.traverse((function(t){o++})),o>e.get("hoverLayerThreshold")&&!r.node&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.group.traverse((function(t){t.useHoverLayer=!0}))}}))}(t,e),b(t._zr.dom,e)}function J(t,e){A(at,(function(n){n(t,e)}))}B.resize=function(t){if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[O]=!0,n&&H(this),F.update.call(this),this[O]=!1,Z.call(this,i),X.call(this,i)}}},B.showLoading=function(t,e){if(this._disposed)this.id;else if(L(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),ut[t]){var n=ut[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},B.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},B.makeActionFromEvent=function(t){var e=n.extend({},t);return e.type=it[t.type],e},B.dispatchAction=function(t,e){this._disposed?this.id:(L(e)||(e={silent:!!e}),nt[t.type]&&this._model&&(this[O]?this._pendingActions.push(t):(Y.call(this,t,e.silent),e.flush?this._zr.flush(!0):!1!==e.flush&&r.browser.weChat&&this._throttledZrFlush(),Z.call(this,e.silent),X.call(this,e.silent))))},B.appendData=function(t){if(this._disposed)this.id;else{var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0}},B.on=E("on",!1),B.off=E("off",!1),B.one=E("one",!1);var Q=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function tt(t,e){var n=t.get("z"),i=t.get("zlevel");e.group.traverse((function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=i&&(t.zlevel=i))}))}function et(){this.eventInfo}B._initEvents=function(){A(Q,(function(t){var e=function(e){var i,r=this.getModel(),o=e.target;if("globalout"===t)i={};else if(o&&null!=o.dataIndex){var a=o.dataModel||r.getSeriesByIndex(o.seriesIndex);i=a&&a.getDataParams(o.dataIndex,o.dataType,o)||{}}else o&&o.eventData&&(i=n.extend({},o.eventData));if(i){var s=i.componentType,l=i.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=i.seriesIndex);var u=s&&null!=l&&r.getComponent(s,l),h=u&&this["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];i.event=e,i.type=t,this._ecEventProcessor.eventInfo={targetEl:o,packedEvent:i,model:u,view:h},this.trigger(t,i)}};e.zrEventfulCallAtLast=!0,this._zr.on(t,e,this)}),this),A(it,(function(t,e){this._messageCenter.on(e,(function(t){this.trigger(e,t)}),this)}),this)},B.isDisposed=function(){return this._disposed},B.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},B.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,y.setAttribute(this.getDom(),ft,"");var t=this._api,e=this._model;A(this._componentsViews,(function(n){n.dispose(e,t)})),A(this._chartsViews,(function(n){n.dispose(e,t)})),this._zr.dispose(),delete ht[this.id]}},n.mixin(V,a),et.prototype={constructor:et,normalizeQuery:function(t){var e={},i={},r={};if(n.isString(t)){var o=k(t);e.mainType=o.main||null,e.subType=o.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};n.each(t,(function(t,n){for(var o=!1,l=0;l<a.length;l++){var u=a[l],h=n.lastIndexOf(u);if(h>0&&h===n.length-u.length){var c=n.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,o=!0)}}s.hasOwnProperty(n)&&(i[n]=t,o=!0),o||(r[n]=t)}))}return{cptQuery:e,dataQuery:i,otherQuery:r}},filter:function(t,e,n){var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,o=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return h(l,a,"mainType")&&h(l,a,"subType")&&h(l,a,"index","componentIndex")&&h(l,a,"name")&&h(l,a,"id")&&h(u,o,"name")&&h(u,o,"dataIndex")&&h(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,o));function h(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},afterTrigger:function(){this.eventInfo=null}};var nt={},it={},rt=[],ot=[],at=[],st=[],lt={},ut={},ht={},ct={},dt=new Date-0,pt=new Date-0,ft="_echarts_instance_";function gt(t){ct[t]=!1}var vt=gt;function mt(t){return ht[y.getAttribute(t,ft)]}function yt(t,e){lt[t]=e}function xt(t){ot.push(t)}function _t(t,e){St(rt,t,e,1e3)}function bt(t,e,n){"function"==typeof e&&(n=e,e="");var i=L(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,C(N.test(i)&&N.test(e)),nt[i]||(nt[i]={action:n,actionInfo:t}),it[e]=i}function wt(t,e){St(st,t,e,3e3,"visual")}function St(t,e,n,i,r){(D(e)||L(e))&&(n=e,e=i);var o=S.wrapStageHandler(n,r);return o.__prio=e,o.__raw=n,t.push(o),o}function Mt(t,e){ut[t]=e}wt(2e3,_),xt(c),_t(900,d),Mt("default",w),bt({type:"highlight",event:"highlight",update:"highlight"},n.noop),bt({type:"downplay",event:"downplay",update:"downplay"},n.noop),yt("light",M),yt("dark",I);t.version="4.9.0",t.dependencies={zrender:"4.3.2"},t.PRIORITY=P,t.init=function(t,e,n){var i=mt(t);if(i)return i;var r=new V(t,e,n);return r.id="ec_"+dt++,ht[r.id]=r,y.setAttribute(t,ft,r.id),function(t){var e="__connectUpdateStatus";function n(t,n){for(var i=0;i<t.length;i++)t[i][e]=n}A(it,(function(i,r){t._messageCenter.on(r,(function(i){if(ct[t.group]&&0!==t[e]){if(i&&i.escapeConnect)return;var r=t.makeActionFromEvent(i),o=[];A(ht,(function(e){e!==t&&e.group===t.group&&o.push(e)})),n(o,0),A(o,(function(t){1!==t[e]&&t.dispatchAction(r)})),n(o,2)}}))}))}(r),r},t.connect=function(t){if(n.isArray(t)){var e=t;t=null,A(e,(function(e){null!=e.group&&(t=e.group)})),t=t||"g_"+pt++,A(e,(function(e){e.group=t}))}return ct[t]=!0,t},t.disConnect=gt,t.disconnect=vt,t.dispose=function(t){"string"==typeof t?t=ht[t]:t instanceof V||(t=mt(t)),t instanceof V&&!t.isDisposed()&&t.dispose()},t.getInstanceByDom=mt,t.getInstanceById=function(t){return ht[t]},t.registerTheme=yt,t.registerPreprocessor=xt,t.registerProcessor=_t,t.registerPostUpdate=function(t){at.push(t)},t.registerAction=bt,t.registerCoordinateSystem=function(t,e){u.register(t,e)},t.getCoordinateSystemDimensions=function(t){var e=u.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()},t.registerLayout=function(t,e){St(st,t,e,1e3,"layout")},t.registerVisual=wt,t.registerLoading=Mt,t.extendComponentModel=function(t){return p.extend(t)},t.extendComponentView=function(t){return g.extend(t)},t.extendSeriesModel=function(t){return f.extend(t)},t.extendChartView=function(t){return v.extend(t)},t.setCanvasCreator=function(t){n.$override("createCanvas",t)},t.registerMap=function(t,e,n){T.registerMap(t,e,n)},t.getMap=function(t){var e=T.retrieveMap(t);return e&&e[0]&&{geoJson:e[0].geoJSON,specialAreas:e[0].specialAreas}},t.dataTool={};var It=RK();!function(){for(var e in It)It.hasOwnProperty(e)&&(t[e]=It[e])}()}(JH)),JH}var EK,zK,VK={};var BK,GK,FK,HK,WK,UK={};function YK(){if(BK)return UK;BK=1;var t=yj().retrieveRawValue;return UK.getDefaultLabel=function(e,n){var i=e.mapDimension("defaultedLabel",!0),r=i.length;if(1===r)return t(e,n,i[0]);if(r){for(var o=[],a=0;a<i.length;a++){var s=t(e,n,i[a]);o.push(s)}return o.join(" ")}},UK}function ZK(){if(FK)return GK;FK=1;var t=hW(),e=vK().createSymbol,n=vX(),i=MX().parsePercent,r=YK().getDefaultLabel;function o(t,e,i){n.Group.call(this),this.updateData(t,e,i)}var a=o.prototype,s=o.getSymbolSize=function(t,e){var n=t.getItemVisual(e,"symbolSize");return n instanceof Array?n.slice():[+n,+n]};function l(t){return[t[0]/2,t[1]/2]}function u(t,e){this.parent.drift(t,e)}a._createSymbol=function(t,n,i,r,o){this.removeAll();var a=n.getItemVisual(i,"color"),s=e(t,-1,-1,2,2,a,o);s.attr({z2:100,culling:!0,scale:l(r)}),s.drift=u,this._symbolType=t,this.add(s)},a.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},a.getSymbolPath=function(){return this.childAt(0)},a.getScale=function(){return this.childAt(0).scale},a.highlight=function(){this.childAt(0).trigger("emphasis")},a.downplay=function(){this.childAt(0).trigger("normal")},a.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},a.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},a.updateData=function(t,e,i){this.silent=!1;var r=t.getItemVisual(e,"symbol")||"circle",o=t.hostModel,a=s(t,e),u=r!==this._symbolType;if(u){var h=t.getItemVisual(e,"symbolKeepAspect");this._createSymbol(r,t,e,a,h)}else{(c=this.childAt(0)).silent=!1,n.updateProps(c,{scale:l(a)},o,e)}if(this._updateCommon(t,e,a,i),u){var c=this.childAt(0),d=i&&i.fadeIn,p={scale:c.scale.slice()};d&&(p.style={opacity:c.style.opacity}),c.scale=[0,0],d&&(c.style.opacity=0),n.initProps(c,p,o,e)}this._seriesModel=o};var h=["itemStyle"],c=["emphasis","itemStyle"],d=["label"],p=["emphasis","label"];function f(t,e){if(!this.incremental&&!this.useHoverLayer)if("emphasis"===e){var n=this.__symbolOriginalScale,i=n[1]/n[0],r={scale:[Math.max(1.1*n[0],n[0]+3),Math.max(1.1*n[1],n[1]+3*i)]};this.animateTo(r,400,"elasticOut")}else"normal"===e&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}return a._updateCommon=function(e,o,a,s){var u=this.childAt(0),g=e.hostModel,v=e.getItemVisual(o,"color");"image"!==u.type?u.useStyle({strokeNoScale:!0}):u.setStyle({opacity:1,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var m=s&&s.itemStyle,y=s&&s.hoverItemStyle,x=s&&s.symbolOffset,_=s&&s.labelModel,b=s&&s.hoverLabelModel,w=s&&s.hoverAnimation,S=s&&s.cursorStyle;if(!s||e.hasItemOption){var M=s&&s.itemModel?s.itemModel:e.getItemModel(o);m=M.getModel(h).getItemStyle(["color"]),y=M.getModel(c).getItemStyle(),x=M.getShallow("symbolOffset"),_=M.getModel(d),b=M.getModel(p),w=M.getShallow("hoverAnimation"),S=M.getShallow("cursor")}else y=t.extend({},y);var I=u.style,T=e.getItemVisual(o,"symbolRotate");u.attr("rotation",(T||0)*Math.PI/180||0),x&&u.attr("position",[i(x[0],a[0]),i(x[1],a[1])]),S&&u.attr("cursor",S),u.setColor(v,s&&s.symbolInnerColor),u.setStyle(m);var C=e.getItemVisual(o,"opacity");null!=C&&(I.opacity=C);var A=e.getItemVisual(o,"liftZ"),D=u.__z2Origin;null!=A?null==D&&(u.__z2Origin=u.z2,u.z2+=A):null!=D&&(u.z2=D,u.__z2Origin=null);var L=s&&s.useNameLabel;n.setLabelStyle(I,y,_,b,{labelFetcher:g,labelDataIndex:o,defaultText:function(t,n){return L?e.getName(t):r(e,t)},isRectText:!0,autoColor:v}),u.__symbolOriginalScale=l(a),u.hoverStyle=y,u.highDownOnUpdate=w&&g.isAnimationEnabled()?f:null,n.setHoverStyle(u)},a.fadeOut=function(t,e){var i=this.childAt(0);this.silent=i.silent=!0,(!e||!e.keepLabel)&&(i.style.text=null),n.updateProps(i,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,t)},t.inherits(o,n.Group),GK=o}function XK(){if(WK)return HK;WK=1;var t=vX(),e=ZK(),n=hW().isObject;function i(n){this.group=new t.Group,this._symbolCtor=n||e}var r=i.prototype;function o(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function a(t){return null==t||n(t)||(t={isIgnore:t}),t||{}}function s(t){var e=t.hostModel;return{itemStyle:e.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:e.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverAnimation:e.get("hoverAnimation"),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label"),cursorStyle:e.get("cursor")}}return r.updateData=function(e,n){n=a(n);var i=this.group,r=e.hostModel,l=this._data,u=this._symbolCtor,h=s(e);l||i.removeAll(),e.diff(l).add((function(t){var r=e.getItemLayout(t);if(o(e,r,t,n)){var a=new u(e,t,h);a.attr("position",r),e.setItemGraphicEl(t,a),i.add(a)}})).update((function(a,s){var c=l.getItemGraphicEl(s),d=e.getItemLayout(a);o(e,d,a,n)?(c?(c.updateData(e,a,h),t.updateProps(c,{position:d},r)):(c=new u(e,a)).attr("position",d),i.add(c),e.setItemGraphicEl(a,c)):i.remove(c)})).remove((function(t){var e=l.getItemGraphicEl(t);e&&e.fadeOut((function(){i.remove(e)}))})).execute(),this._data=e},r.isPersistent=function(){return!0},r.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl((function(e,n){var i=t.getItemLayout(n);e.attr("position",i)}))},r.incrementalPrepareUpdate=function(t){this._seriesScope=s(t),this._data=null,this.group.removeAll()},r.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=t.useHoverLayer=!0)}n=a(n);for(var r=t.start;r<t.end;r++){var s=e.getItemLayout(r);if(o(e,s,r,n)){var l=new this._symbolCtor(e,r,this._seriesScope);l.traverse(i),l.attr("position",s),this.group.add(l),e.setItemGraphicEl(r,l)}}},r.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}))})):e.removeAll()},HK=i}var jK,qK,KK,$K={};function JK(){if(jK)return $K;jK=1;var t=zq().isDimensionStacked,e=hW().map;return $K.prepareDataCoordInfo=function(n,i,r){var o,a=n.getBaseAxis(),s=n.getOtherAxis(a),l=function(t,e){var n=0,i=t.scale.getExtent();"start"===e?n=i[0]:"end"===e?n=i[1]:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]);return n}(s,r),u=a.dim,h=s.dim,c=i.mapDimension(h),d=i.mapDimension(u),p="x"===h||"radius"===h?1:0,f=e(n.dimensions,(function(t){return i.mapDimension(t)})),g=i.getCalculationInfo("stackResultDimension");return(o|=t(i,f[0]))&&(f[0]=g),(o|=t(i,f[1]))&&(f[1]=g),{dataDimsForPoint:f,valueStart:l,valueAxisDim:h,baseAxisDim:u,stacked:!!o,valueDim:c,baseDim:d,baseDataOffset:p,stackedOverDimension:i.getCalculationInfo("stackedOverDimension")}},$K.getStackedOnPoint=function(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)},$K}var QK,t$={};function e$(){if(QK)return t$;QK=1;var t=xZ(),e=mW(),n=SZ(),i=e.min,r=e.max,o=e.scaleAndAdd,a=e.copy,s=[],l=[],u=[];function h(t){return isNaN(t[0])||isNaN(t[1])}function c(t,e,n,i,r,o,a,s,l,u,h){return"none"!==u&&u?d.apply(this,arguments):p.apply(this,arguments)}function d(t,e,n,i,r,o,s,c,d,p,f){for(var g=0,v=n,m=0;m<i;m++){var y=e[v];if(v>=r||v<0)break;if(h(y)){if(f){v+=o;continue}break}if(v===n)t[o>0?"moveTo":"lineTo"](y[0],y[1]);else if(d>0){var x=e[g],_="y"===p?1:0,b=(y[_]-x[_])*d;a(l,x),l[_]=x[_]+b,a(u,y),u[_]=y[_]-b,t.bezierCurveTo(l[0],l[1],u[0],u[1],y[0],y[1])}else t.lineTo(y[0],y[1]);g=v,v+=o}return m}function p(t,n,c,d,p,f,g,v,m,y,x){for(var _=0,b=c,w=0;w<d;w++){var S=n[b];if(b>=p||b<0)break;if(h(S)){if(x){b+=f;continue}break}if(b===c)t[f>0?"moveTo":"lineTo"](S[0],S[1]),a(l,S);else if(m>0){var M=b+f,I=n[M];if(x)for(;I&&h(n[M]);)I=n[M+=f];var T=.5,C=n[_];if(!(I=n[M])||h(I))a(u,S);else{var A,D;if(h(I)&&!x&&(I=S),e.sub(s,I,C),"x"===y||"y"===y){var L="x"===y?0:1;A=Math.abs(S[L]-C[L]),D=Math.abs(S[L]-I[L])}else A=e.dist(S,C),D=e.dist(S,I);o(u,S,s,-m*(1-(T=D/(D+A))))}i(l,l,v),r(l,l,g),i(u,u,v),r(u,u,g),t.bezierCurveTo(l[0],l[1],u[0],u[1],S[0],S[1]),o(l,S,s,m*T)}else t.lineTo(S[0],S[1]);_=b,b+=f}return w}function f(t,e){var n=[1/0,1/0],i=[-1/0,-1/0];if(e)for(var r=0;r<t.length;r++){var o=t[r];o[0]<n[0]&&(n[0]=o[0]),o[1]<n[1]&&(n[1]=o[1]),o[0]>i[0]&&(i[0]=o[0]),o[1]>i[1]&&(i[1]=o[1])}return{min:e?n:i,max:e?i:n}}var g=t.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:n(t.prototype.brush),buildPath:function(t,e){var n=e.points,i=0,r=n.length,o=f(n,e.smoothConstraint);if(e.connectNulls){for(;r>0&&h(n[r-1]);r--);for(;i<r&&h(n[i]);i++);}for(;i<r;)i+=c(t,n,i,r,r,1,o.min,o.max,e.smooth,e.smoothMonotone,e.connectNulls)+1}}),v=t.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:n(t.prototype.brush),buildPath:function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length,a=e.smoothMonotone,s=f(n,e.smoothConstraint),l=f(i,e.smoothConstraint);if(e.connectNulls){for(;o>0&&h(n[o-1]);o--);for(;r<o&&h(n[r]);r++);}for(;r<o;){var u=c(t,n,r,o,o,1,s.min,s.max,e.smooth,a,e.connectNulls);c(t,i,r+u-1,u,o,-1,l.min,l.max,e.stackedOnSmooth,a,e.connectNulls),r+=u+1,t.closePath()}}});return t$.Polyline=g,t$.Polygon=v,t$}var n$,i$,r$,o$,a$,s$,l$,u$,h$,c$={};function d$(){if(n$)return c$;n$=1;var t=vX(),e=MX().round;function n(e,n,i){var r=e.getArea(),o=e.getBaseAxis().isHorizontal(),a=r.x,s=r.y,l=r.width,u=r.height,h=i.get("lineStyle.width")||2;a-=h/2,s-=h/2,l+=h,u+=h,a=Math.floor(a),l=Math.round(l);var c=new t.Rect({shape:{x:a,y:s,width:l,height:u}});return n&&(c.shape[o?"width":"height"]=0,t.initProps(c,{shape:{width:l,height:u}},i)),c}function i(n,i,r){var o=n.getArea(),a=new t.Sector({shape:{cx:e(n.cx,1),cy:e(n.cy,1),r0:e(o.r0,1),r:e(o.r,1),startAngle:o.startAngle,endAngle:o.endAngle,clockwise:o.clockwise}});return i&&(a.shape.endAngle=o.startAngle,t.initProps(a,{shape:{endAngle:o.endAngle}},r)),a}return c$.createGridClipPath=n,c$.createPolarClipPath=i,c$.createClipPath=function(t,e,r){return t?"polar"===t.type?i(t,e,r):"cartesian2d"===t.type?n(t,e,r):null:null},c$}function p$(){if(r$)return i$;r$=1,tW().__DEV__;var t=hW(),e=zY().fromPoints,n=XK(),i=ZK(),r=function(){if(KK)return qK;KK=1;var t=JK(),e=t.prepareDataCoordInfo,n=t.getStackedOnPoint;return qK=function(t,i,r,o,a,s,l,u){for(var h=function(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}(t,i),c=[],d=[],p=[],f=[],g=[],v=[],m=[],y=e(a,i,l),x=e(s,t,u),_=0;_<h.length;_++){var b=h[_],w=!0;switch(b.cmd){case"=":var S=t.getItemLayout(b.idx),M=i.getItemLayout(b.idx1);(isNaN(S[0])||isNaN(S[1]))&&(S=M.slice()),c.push(S),d.push(M),p.push(r[b.idx]),f.push(o[b.idx1]),m.push(i.getRawIndex(b.idx1));break;case"+":var I=b.idx;c.push(a.dataToPoint([i.get(y.dataDimsForPoint[0],I),i.get(y.dataDimsForPoint[1],I)])),d.push(i.getItemLayout(I).slice()),p.push(n(y,a,i,I)),f.push(o[I]),m.push(i.getRawIndex(I));break;case"-":I=b.idx;var T=t.getRawIndex(I);T!==I?(c.push(t.getItemLayout(I)),d.push(s.dataToPoint([t.get(x.dataDimsForPoint[0],I),t.get(x.dataDimsForPoint[1],I)])),p.push(r[I]),f.push(n(x,s,t,I)),m.push(T)):w=!1}w&&(g.push(b),v.push(v.length))}v.sort((function(t,e){return m[t]-m[e]}));var C=[],A=[],D=[],L=[],k=[];for(_=0;_<v.length;_++)I=v[_],C[_]=c[I],A[_]=d[I],D[_]=p[I],L[_]=f[I],k[_]=g[I];return{current:C,next:A,stackedOnCurrent:D,stackedOnNext:L,status:k}},qK}(),o=vX(),a=mY(),s=e$(),l=s.Polyline,u=s.Polygon,h=Rj(),c=JK(),d=c.prepareDataCoordInfo,p=c.getStackedOnPoint,f=d$(),g=f.createGridClipPath,v=f.createPolarClipPath;function m(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++){var i=t[n],r=e[n];if(i[0]!==r[0]||i[1]!==r[1])return}return!0}}function y(t,n){var i=[],r=[],o=[],a=[];return e(t,i,r),e(n,o,a),Math.max(Math.abs(i[0]-o[0]),Math.abs(i[1]-o[1]),Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]))}function x(t){return"number"==typeof t?t:t?.5:0}function _(t,e,n){for(var i=e.getBaseAxis(),r="x"===i.dim||"radius"===i.dim?0:1,o=[],a=0;a<t.length-1;a++){var s=t[a+1],l=t[a];o.push(l);var u=[];switch(n){case"end":u[r]=s[r],u[1-r]=l[1-r],o.push(u);break;case"middle":var h=(l[r]+s[r])/2,c=[];u[r]=c[r]=h,u[1-r]=l[1-r],c[1-r]=s[1-r],o.push(u),o.push(c);break;default:u[r]=l[r],u[1-r]=s[1-r],o.push(u)}}return t[a]&&o.push(t[a]),o}function b(e,n,r){var o=e.get("showAllSymbol"),a="auto"===o;if(!o||a){var s=r.getAxesByScale("ordinal")[0];if(s&&(!a||!function(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var o=e.count(),a=Math.max(1,Math.round(o/5)),s=0;s<o;s+=a)if(1.5*i.getSymbolSize(e,s)[t.isHorizontal()?1:0]>r)return!1;return!0}(s,n))){var l=n.mapDimension(s.dim),u={};return t.each(s.getViewLabels(),(function(t){u[t.tickValue]=1})),function(t){return!u.hasOwnProperty(n.get(l,t))}}}}function w(t,e,n){if("cartesian2d"===t.type){var i=t.getBaseAxis().isHorizontal(),r=g(t,e,n);if(!n.get("clip",!0)){var o=r.shape,a=Math.max(o.width,o.height);i?(o.y-=a,o.height+=2*a):(o.x-=a,o.width+=2*a)}return r}return v(t,e,n)}var S=h.extend({type:"line",init:function(){var t=new o.Group,e=new n;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(e,n,i){var r=e.coordinateSystem,a=this.group,s=e.getData(),l=e.getModel("lineStyle"),u=e.getModel("areaStyle"),h=s.mapArray(s.getItemLayout),c="polar"===r.type,f=this._coordSys,g=this._symbolDraw,v=this._polyline,y=this._polygon,S=this._lineGroup,M=e.get("animation"),I=!u.isEmpty(),T=u.get("origin"),C=function(t,e,n){if(!n.valueDim)return[];for(var i=[],r=0,o=e.count();r<o;r++)i.push(p(n,t,e,r));return i}(r,s,d(r,s,T)),A=e.get("showSymbol"),D=A&&!c&&b(e,s,r),L=this._data;L&&L.eachItemGraphicEl((function(t,e){t.__temp&&(a.remove(t),L.setItemGraphicEl(e,null))})),A||g.remove(),a.add(S);var k,P=!c&&e.get("step");r&&r.getArea&&e.get("clip",!0)&&(null!=(k=r.getArea()).width?(k.x-=.1,k.y-=.1,k.width+=.2,k.height+=.2):k.r0&&(k.r0-=.5,k.r1+=.5)),this._clipShapeForSymbol=k,v&&f.type===r.type&&P===this._step?(I&&!y?y=this._newPolygon(h,C,r,M):y&&!I&&(S.remove(y),y=this._polygon=null),S.setClipPath(w(r,!1,e)),A&&g.updateData(s,{isIgnore:D,clipShape:k}),s.eachItemGraphicEl((function(t){t.stopAnimation(!0)})),m(this._stackedOnPoints,C)&&m(this._points,h)||(M?this._updateAnimation(s,C,r,i,P,T):(P&&(h=_(h,r,P),C=_(C,r,P)),v.setShape({points:h}),y&&y.setShape({points:h,stackedOnPoints:C})))):(A&&g.updateData(s,{isIgnore:D,clipShape:k}),P&&(h=_(h,r,P),C=_(C,r,P)),v=this._newPolyline(h,r,M),I&&(y=this._newPolygon(h,C,r,M)),S.setClipPath(w(r,!0,e)));var O=function(e,n){var i=e.getVisual("visualMeta");if(i&&i.length&&e.count()&&"cartesian2d"===n.type){for(var r,a,s=i.length-1;s>=0;s--){var l=i[s].dimension,u=e.dimensions[l],h=e.getDimensionInfo(u);if("x"===(r=h&&h.coordDim)||"y"===r){a=i[s];break}}if(a){var c=n.getAxis(r),d=t.map(a.stops,(function(t){return{coord:c.toGlobalCoord(c.dataToCoord(t.value)),color:t.color}})),p=d.length,f=a.outerColors.slice();p&&d[0].coord>d[p-1].coord&&(d.reverse(),f.reverse());var g=d[0].coord-10,v=d[p-1].coord+10,m=v-g;if(m<.001)return"transparent";t.each(d,(function(t){t.offset=(t.coord-g)/m})),d.push({offset:p?d[p-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:f[0]||"transparent"});var y=new o.LinearGradient(0,0,0,0,d,!0);return y[r]=g,y[r+"2"]=v,y}}}(s,r)||s.getVisual("color");v.useStyle(t.defaults(l.getLineStyle(),{fill:"none",stroke:O,lineJoin:"bevel"}));var R=e.get("smooth");if(R=x(e.get("smooth")),v.setShape({smooth:R,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")}),y){var N=s.getCalculationInfo("stackedOnSeries"),E=0;y.useStyle(t.defaults(u.getAreaStyle(),{fill:O,opacity:.7,lineJoin:"bevel"})),N&&(E=x(N.get("smooth"))),y.setShape({smooth:R,stackedOnSmooth:E,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")})}this._data=s,this._coordSys=r,this._stackedOnPoints=C,this._points=h,this._step=P,this._valueOrigin=T},dispose:function(){},highlight:function(t,e,n,r){var o=t.getData(),s=a.queryDataIndex(o,r);if(!(s instanceof Array)&&null!=s&&s>=0){var l=o.getItemGraphicEl(s);if(!l){var u=o.getItemLayout(s);if(!u)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(u[0],u[1]))return;(l=new i(o,s)).position=u,l.setZ(t.get("zlevel"),t.get("z")),l.ignore=isNaN(u[0])||isNaN(u[1]),l.__temp=!0,o.setItemGraphicEl(s,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else h.prototype.highlight.call(this,t,e,n,r)},downplay:function(t,e,n,i){var r=t.getData(),o=a.queryDataIndex(r,i);if(null!=o&&o>=0){var s=r.getItemGraphicEl(o);s&&(s.__temp?(r.setItemGraphicEl(o,null),this.group.remove(s)):s.downplay())}else h.prototype.downplay.call(this,t,e,n,i)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new l({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new u({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_updateAnimation:function(t,e,n,i,a,s){var l=this._polyline,u=this._polygon,h=t.hostModel,c=r(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,s),d=c.current,p=c.stackedOnCurrent,f=c.next,g=c.stackedOnNext;if(a&&(d=_(c.current,n,a),p=_(c.stackedOnCurrent,n,a),f=_(c.next,n,a),g=_(c.stackedOnNext,n,a)),y(d,f)>3e3||u&&y(p,g)>3e3)return l.setShape({points:f}),void(u&&u.setShape({points:f,stackedOnPoints:g}));l.shape.__points=c.current,l.shape.points=d,o.updateProps(l,{shape:{points:f}},h),u&&(u.setShape({points:d,stackedOnPoints:p}),o.updateProps(u,{shape:{points:f,stackedOnPoints:g}},h));for(var v=[],m=c.status,x=0;x<m.length;x++){if("="===m[x].cmd){var b=t.getItemGraphicEl(m[x].idx1);b&&v.push({el:b,ptIdx:x})}}l.animators&&l.animators.length&&l.animators[0].during((function(){for(var t=0;t<v.length;t++){v[t].el.attr("position",l.shape.__points[v[t].ptIdx])}}))},remove:function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(t,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});return i$=S}function f$(){if(a$)return o$;a$=1;var t=hW().isFunction;return o$=function(e,n,i){return{seriesType:e,performRawSeries:!0,reset:function(e,r,o){var a=e.getData(),s=e.get("symbol"),l=e.get("symbolSize"),u=e.get("symbolKeepAspect"),h=e.get("symbolRotate"),c=t(s),d=t(l),p=t(h),f=c||d||p,g=!c&&s?s:n,v=d?null:l;if(a.setVisual({legendSymbol:i||g,symbol:g,symbolSize:v,symbolKeepAspect:u,symbolRotate:h}),!r.isSeriesFiltered(e))return{dataEach:a.hasItemOption||f?function(t,n){if(f){var i=e.getRawValue(n),r=e.getDataParams(n);c&&t.setItemVisual(n,"symbol",s(i,r)),d&&t.setItemVisual(n,"symbolSize",l(i,r)),p&&t.setItemVisual(n,"symbolRotate",h(i,r))}if(t.hasItemOption){var o=t.getItemModel(n),a=o.getShallow("symbol",!0),u=o.getShallow("symbolSize",!0),g=o.getShallow("symbolRotate",!0),v=o.getShallow("symbolKeepAspect",!0);null!=a&&t.setItemVisual(n,"symbol",a),null!=u&&t.setItemVisual(n,"symbolSize",u),null!=g&&t.setItemVisual(n,"symbolRotate",g),null!=v&&t.setItemVisual(n,"symbolKeepAspect",v)}}:null}}}}}function g$(){if(l$)return s$;l$=1;var t=hW().map,e=Oj(),n=zq().isDimensionStacked;return s$=function(i){return{seriesType:i,plan:e(),reset:function(e){var i=e.getData(),r=e.coordinateSystem,o=e.pipelineContext.large;if(r){var a=t(r.dimensions,(function(t){return i.mapDimension(t)})).slice(0,2),s=a.length,l=i.getCalculationInfo("stackResultDimension");return n(i,a[0])&&(a[0]=l),n(i,a[1])&&(a[1]=l),s&&{progress:function(t,e){for(var n=t.end-t.start,i=o&&new Float32Array(n*s),l=t.start,u=0,h=[],c=[];l<t.end;l++){var d;if(1===s){var p=e.get(a[0],l);d=!isNaN(p)&&r.dataToPoint(p,null,c)}else{p=h[0]=e.get(a[0],l);var f=h[1]=e.get(a[1],l);d=!isNaN(p)&&!isNaN(f)&&r.dataToPoint(h,null,c)}o?(i[u++]=d?d[0]:NaN,i[u++]=d?d[1]:NaN):e.setItemLayout(l,d&&d.slice()||[NaN,NaN])}o&&e.setLayout("symbolPoints",i)}}}}}},s$}var v$,m$,y$,x$,_$,b$,w$,S$,M$,I$,T$,C$,A$,D$,L$,k$,P$={};function O$(){if(x$)return y$;x$=1;var t=hW(),e=_U(),n=function(){if(m$)return v$;m$=1;var t=hW();function e(t){return this._axes[t]}var n=function(t){this._axes={},this._dimList=[],this.name=t||""};return n.prototype={constructor:n,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return t.map(this._dimList,e,this)},getAxesByScale:function(e){return e=e.toLowerCase(),t.filter(this.getAxes(),(function(t){return t.scale.type===e}))},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var n=this._dimList,i=t instanceof Array?[]:{},r=0;r<n.length;r++){var o=n[r],a=this._axes[o];i[o]=a[e](t[o])}return i}},v$=n}();function i(t){n.call(this,t)}return i.prototype={constructor:i,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},containData:function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},dataToPoint:function(t,e,n){var i=this.getAxis("x"),r=this.getAxis("y");return(n=n||[])[0]=i.toGlobalCoord(i.dataToCoord(t[0])),n[1]=r.toGlobalCoord(r.dataToCoord(t[1])),n},clampData:function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},pointToData:function(t,e){var n=this.getAxis("x"),i=this.getAxis("y");return(e=e||[])[0]=n.coordToData(n.toLocalCoord(t[0])),e[1]=i.coordToData(i.toLocalCoord(t[1])),e},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")},getArea:function(){var t=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(t[0],t[1]),r=Math.min(n[0],n[1]),o=Math.max(t[0],t[1])-i,a=Math.max(n[0],n[1])-r;return new e(i,r,o,a)}},t.inherits(i,n),y$=i}function R$(){if(S$)return w$;S$=1;var t=hW(),e={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},n={};return n.categoryAxis=t.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},e),n.valueAxis=t.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},e),n.timeAxis=t.defaults({scale:!0,min:"dataMin",max:"dataMax"},n.valueAxis),n.logAxis=t.defaults({scale:!0,logBase:10},n.valueAxis),w$=n}function N$(){if(I$)return M$;I$=1;var t=hW(),e=R$(),n=VX(),i=zX(),r=i.getLayoutParams,o=i.mergeLayoutParam,a=Xq(),s=["value","category","time","log"];return M$=function(i,l,u,h){t.each(s,(function(n){l.extend({type:i+"Axis."+n,mergeDefaultAndTheme:function(e,a){var s=this.layoutMode,l=s?r(e):{},h=a.getTheme();t.merge(e,h.get(n+"Axis")),t.merge(e,this.getDefaultOption()),e.type=u(i,e),s&&o(e,l,s)},optionUpdated:function(){"category"===this.option.type&&(this.__ordinalMeta=a.createByAxisModel(this))},getCategories:function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:t.mergeAll([{},e[n+"Axis"],h],!0)})})),n.registerSubTypeDefaulter(i+"Axis",t.curry(u,i))}}function E$(){if(C$)return T$;C$=1;var t=hW(),e=VX(),n=N$(),i=dK(),r=e.extend({type:"cartesian2dAxis",axis:null,init:function(){r.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){r.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){r.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function o(t,e){return e.type||(e.data?"category":"value")}t.merge(r.prototype,i);var a={offset:0};return n("x",r,o,a),n("y",r,o,a),T$=r}function z$(){if(k$)return L$;k$=1,tW().__DEV__;var t=hW(),e=t.isObject,n=t.each,i=t.map,r=t.indexOf;t.retrieve;var o=zX().getLayoutRect,a=cK(),s=a.createScaleByModel,l=a.ifAxisCrossZero,u=a.niceScaleExtent,h=a.estimateLabelUnionRect,c=O$(),d=function(){if(b$)return _$;b$=1;var t=hW(),e=OK(),n=function(t,n,i,r,o){e.call(this,t,n,i),this.type=r||"value",this.position=o||"bottom"};return n.prototype={constructor:n,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},getGlobalExtent:function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},t.inherits(n,e),_$=n}(),p=cj(),f=zq().getStackedDimension;function g(t,e,n){return t.getCoordSysModel()===e}function v(t,e,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,n),this.model=t}!function(){if(D$)return A$;D$=1,E$();var t=VX().extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});A$=t}();var m=v.prototype;function y(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=n.model,s=a.get("axisLine.onZero"),l=a.get("axisLine.onZeroAxisIndex");if(s){if(null!=l)x(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&x(o[u])&&!i[h(o[u])]){r=o[u];break}r&&(i[h(r)]=!0)}function h(t){return t.dim+"_"+t.index}}function x(t){return t&&"category"!==t.type&&"time"!==t.type&&l(t)}m.type="grid",m.axisPointerEnabled=!0,m.getRect=function(){return this._rect},m.update=function(t,e){var i=this._axesMap;this._updateScale(t,this.model),n(i.x,(function(t){u(t.scale,t.model)})),n(i.y,(function(t){u(t.scale,t.model)}));var r={};n(i.x,(function(t){y(i,"y",t,r)})),n(i.y,(function(t){y(i,"x",t,r)})),this.resize(this.model,e)},m.resize=function(t,e,i){var r=o(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=r;var a=this._axesList;function s(){n(a,(function(t){var e=t.isHorizontal(),n=e?[0,r.width]:[0,r.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e?r.x:r.y)}))}s(),!i&&t.get("containLabel")&&(n(a,(function(t){if(!t.model.get("axisLabel.inside")){var e=h(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get("axisLabel.margin");r[n]-=e[n]+i,"top"===t.position?r.y+=e.height+i:"left"===t.position&&(r.x+=e.width+i)}}})),s())},m.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n){if(null==e)for(var i in n)if(n.hasOwnProperty(i))return n[i];return n[e]}},m.getAxes=function(){return this._axesList.slice()},m.getCartesian=function(t,n){if(null!=t&&null!=n){var i="x"+t+"y"+n;return this._coordsMap[i]}e(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var r=0,o=this._coordsList;r<o.length;r++)if(o[r].getAxis("x").index===t||o[r].getAxis("y").index===n)return o[r]},m.getCartesians=function(){return this._coordsList.slice()},m.convertToPixel=function(t,e,n){var i=this._findConvertTarget(t,e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},m.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(t,e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},m._findConvertTarget=function(t,e){var n,i,o=e.seriesModel,a=e.xAxisModel||o&&o.getReferringComponents("xAxis")[0],s=e.yAxisModel||o&&o.getReferringComponents("yAxis")[0],l=e.gridModel,u=this._coordsList;if(o)n=o.coordinateSystem,r(u,n)<0&&(n=null);else if(a&&s)n=this.getCartesian(a.componentIndex,s.componentIndex);else if(a)i=this.getAxis("x",a.componentIndex);else if(s)i=this.getAxis("y",s.componentIndex);else if(l){l.coordinateSystem===this&&(n=this._coordsList[0])}return{cartesian:n,axis:i}},m.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},m._initCartesian=function(t,e,i){var r={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},a={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!a.x||!a.y)return this._axesMap={},void(this._axesList=[]);function l(e){return function(n,i){if(g(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=r.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=r.left?"right":"left"),r[l]=!0;var u=new d(e,s(n),[0,0],n.get("type"),l),h="category"===u.type;u.onBand=h&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=this,u.index=i,this._axesList.push(u),o[e][i]=u,a[e]++}}}this._axesMap=o,n(o.x,(function(e,i){n(o.y,(function(n,r){var o="x"+i+"y"+r,a=new c(o);a.grid=this,a.model=t,this._coordsMap[o]=a,this._coordsList.push(a),a.addAxis(e),a.addAxis(n)}),this)}),this)},m._updateScale=function(t,e){function i(t,e,i){n(t.mapDimension(e.dim,!0),(function(n){e.scale.unionExtentFromData(t,f(t,n))}))}n(this._axesList,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeries((function(t){if(w(t)){var n=b(t),r=n[0],o=n[1];if(!g(r,e)||!g(o,e))return;var a=this.getCartesian(r.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");"list"===s.type&&(i(s,l),i(s,u))}}),this)},m.getTooltipAxes=function(t){var e=[],i=[];return n(this.getCartesians(),(function(n){var o=null!=t&&"auto"!==t?n.getAxis(t):n.getBaseAxis(),a=n.getOtherAxis(o);r(e,o)<0&&e.push(o),r(i,a)<0&&i.push(a)})),{baseAxes:e,otherAxes:i}};var _=["xAxis","yAxis"];function b(t,e){return i(_,(function(e){return t.getReferringComponents(e)[0]}))}function w(t){return"cartesian2d"===t.get("coordinateSystem")}return v.create=function(t,e){var n=[];return t.eachComponent("grid",(function(i,r){var o=new v(i,t,e);o.name="grid_"+r,o.resize(i,e,!0),i.coordinateSystem=o,n.push(o)})),t.eachSeries((function(t){if(w(t)){var e=b(t),n=e[0],i=e[1],r=n.getCoordSysModel().coordinateSystem;t.coordinateSystem=r.getCartesian(n.componentIndex,i.componentIndex)}})),n},v.dimensions=v.prototype.dimensions=c.prototype.dimensions,p.register("cartesian2d",v),L$=v}var V$,B$,G$={},F$={};function H$(){if(B$)return V$;B$=1;var t=hW(),e=t.retrieve,n=t.defaults,i=t.extend,r=t.each,o=EX(),a=vX(),s=mX(),l=MX(),u=l.isRadianAroundZero,h=l.remRadian,c=vK().createSymbol,d=GW(),p=mW().applyTransform,f=cK().shouldShowAllLabels,g=Math.PI,v=function(t,e){this.opt=e,this.axisModel=t,n(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new a.Group;var i=new a.Group({position:e.position.slice(),rotation:e.rotation});i.updateTransform(),this._transform=i.transform,this._dumbGroup=i};v.prototype={constructor:v,hasBuilder:function(t){return!!m[t]},add:function(t){m[t].call(this)},getGroup:function(){return this.group}};var m={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var n=this.axisModel.axis.getExtent(),o=this._transform,s=[n[0],0],l=[n[1],0];o&&(p(s,s,o),p(l,l,o));var u=i({lineCap:"round"},e.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new a.Line({anid:"line",subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1}));var h=e.get("axisLine.symbol"),d=e.get("axisLine.symbolSize"),f=e.get("axisLine.symbolOffset")||0;if("number"==typeof f&&(f=[f,f]),null!=h){"string"==typeof h&&(h=[h,h]),"string"!=typeof d&&"number"!=typeof d||(d=[d,d]);var g=d[0],v=d[1];r([{rotate:t.rotation+Math.PI/2,offset:f[0],r:0},{rotate:t.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,n){if("none"!==h[n]&&null!=h[n]){var i=c(h[n],-g/2,-v/2,g,v,u.stroke,!0),r=e.r+e.offset,o=[s[0]+r*Math.cos(t.rotation),s[1]-r*Math.sin(t.rotation)];i.attr({rotation:e.rotate,position:o,silent:!0,z2:11}),this.group.add(i)}}),this)}}},axisTickLabel:function(){var t=this.axisModel,i=this.opt,o=function(t,e,i){var r=e.axis,o=e.getModel("axisTick");if(!o.get("show")||r.scale.isBlank())return;for(var a=o.getModel("lineStyle"),s=i.tickDirection*o.get("length"),l=M(r.getTicksCoords(),t._transform,s,n(a.getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")}),"ticks"),u=0;u<l.length;u++)t.group.add(l[u]);return l}(this,t,i),l=function(t,n,i){var o=n.axis,l=e(i.axisLabelShow,n.get("axisLabel.show"));if(!l||o.scale.isBlank())return;var u=n.getModel("axisLabel"),h=u.get("margin"),c=o.getViewLabels(),d=(e(i.labelRotate,u.get("rotate"))||0)*g/180,p=x(i.rotation,d,i.labelDirection),f=n.getCategories&&n.getCategories(!0),v=[],m=_(n),b=n.get("triggerEvent");return r(c,(function(e,r){var l=e.tickValue,c=e.formattedLabel,d=e.rawLabel,g=u;f&&f[l]&&f[l].textStyle&&(g=new s(f[l].textStyle,u,n.ecModel));var x=g.getTextColor()||n.get("axisLine.lineStyle.color"),_=[o.dataToCoord(l),i.labelOffset+i.labelDirection*h],w=new a.Text({anid:"label_"+l,position:_,rotation:p.rotation,silent:m,z2:10});a.setTextStyle(w.style,g,{text:c,textAlign:g.getShallow("align",!0)||p.textAlign,textVerticalAlign:g.getShallow("verticalAlign",!0)||g.getShallow("baseline",!0)||p.textVerticalAlign,textFill:"function"==typeof x?x("category"===o.type?d:"value"===o.type?l+"":l,r):x}),b&&(w.eventData=y(n),w.eventData.targetType="axisLabel",w.eventData.value=d),t._dumbGroup.add(w),w.updateTransform(),v.push(w),t.group.add(w),w.decomposeTransform()})),v}(this,t,i);!function(t,e,n){if(f(t.axis))return;var i=t.get("axisLabel.showMinLabel"),r=t.get("axisLabel.showMaxLabel");e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],h=n[1],c=n[n.length-1],d=n[n.length-2];!1===i?(b(o),b(u)):w(o,a)&&(i?(b(a),b(h)):(b(o),b(u)));!1===r?(b(s),b(c)):w(l,s)&&(r?(b(l),b(d)):(b(s),b(c)))}(t,l,o),function(t,e,i){var r=e.axis,o=e.getModel("minorTick");if(!o.get("show")||r.scale.isBlank())return;var a=r.getMinorTicksCoords();if(!a.length)return;for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),u=n(s.getLineStyle(),n(e.getModel("axisTick").getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")})),h=0;h<a.length;h++)for(var c=M(a[h],t._transform,l,u,"minorticks_"+h),d=0;d<c.length;d++)t.group.add(c[d])}(this,t,i)},axisName:function(){var t=this.opt,n=this.axisModel,r=e(t.axisName,n.get("name"));if(r){var s,l,c=n.get("nameLocation"),d=t.nameDirection,p=n.getModel("nameTextStyle"),f=n.get("nameGap")||0,v=this.axisModel.axis.getExtent(),m=v[0]>v[1]?-1:1,b=["start"===c?v[0]-m*f:"end"===c?v[1]+m*f:(v[0]+v[1])/2,S(c)?t.labelOffset+d*f:0],w=n.get("nameRotate");null!=w&&(w=w*g/180),S(c)?s=x(t.rotation,null!=w?w:t.rotation,d):(s=function(t,e,n,i){var r,o,a=h(n-t.rotation),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;u(a-g/2)?(o=l?"bottom":"top",r="center"):u(a-1.5*g)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*g&&a>g/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:r,textVerticalAlign:o}}(t,c,w||0,v),null!=(l=t.axisNameAvailableWidth)&&(l=Math.abs(l/Math.sin(s.rotation)),!isFinite(l)&&(l=null)));var M=p.getFont(),I=n.get("nameTruncate",!0)||{},T=I.ellipsis,C=e(t.nameTruncateMaxWidth,I.maxWidth,l),A=null!=T&&null!=C?o.truncateText(r,C,M,T,{minChar:2,placeholder:I.placeholder}):r,D=n.get("tooltip",!0),L=n.mainType,k={componentType:L,name:r,$vars:["name"]};k[L+"Index"]=n.componentIndex;var P=new a.Text({anid:"name",__fullText:r,__truncatedText:A,position:b,rotation:s.rotation,silent:_(n),z2:1,tooltip:D&&D.show?i({content:r,formatter:function(){return r},formatterParams:k},D):null});a.setTextStyle(P.style,p,{text:A,textFont:M,textFill:p.getTextColor()||n.get("axisLine.lineStyle.color"),textAlign:p.get("align")||s.textAlign,textVerticalAlign:p.get("verticalAlign")||s.textVerticalAlign}),n.get("triggerEvent")&&(P.eventData=y(n),P.eventData.targetType="axisName",P.eventData.name=r),this._dumbGroup.add(P),P.updateTransform(),this.group.add(P),P.decomposeTransform()}}},y=v.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},x=v.innerTextLayout=function(t,e,n){var i,r,o=h(e-t);return u(o)?(r=n>0?"top":"bottom",i="center"):u(o-g)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<g?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}};var _=v.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)};function b(t){t&&(t.ignore=!0)}function w(t,e,n){var i=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(i&&r){var o=d.identity([]);return d.rotate(o,o,-t.rotation),i.applyTransform(d.mul([],o,t.getLocalTransform())),r.applyTransform(d.mul([],o,e.getLocalTransform())),i.intersect(r)}}function S(t){return"middle"===t||"center"===t}function M(t,e,n,i,r){for(var o=[],s=[],l=[],u=0;u<t.length;u++){var h=t[u].coord;s[0]=h,s[1]=0,l[0]=h,l[1]=n,e&&(p(s,s,e),p(l,l,e));var c=new a.Line({anid:r+"_"+t[u].tickValue,subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:i,z2:2,silent:!0});o.push(c)}return o}return V$=v}var W$,U$,Y$,Z$={};function X$(){if(W$)return Z$;W$=1;var t=hW(),e=mX(),n=t.each,i=t.curry;function r(e,n){return"all"===e||t.isArray(e)&&t.indexOf(e,n)>=0||e===n}function o(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[s(t)]}function a(t){return!!t.get("handle.show")}function s(t){return t.type+"||"+t.id}return Z$.collect=function(o,l){var u={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(o,l,u){var h=l.getComponent("tooltip"),c=l.getComponent("axisPointer"),d=c.get("link",!0)||[],p=[];n(u.getCoordinateSystems(),(function(u){if(u.axisPointerEnabled){var f=s(u.model),g=o.coordSysAxesInfo[f]={};o.coordSysMap[f]=u;var v=u.model.getModel("tooltip",h);if(n(u.getAxes(),i(_,!1,null)),u.getTooltipAxes&&h&&v.get("show")){var m="axis"===v.get("trigger"),y="cross"===v.get("axisPointer.type"),x=u.getTooltipAxes(v.get("axisPointer.axis"));(m||y)&&n(x.baseAxes,i(_,!y||"cross",m)),y&&n(x.otherAxes,i(_,"cross",!1))}}function _(i,h,f){var m=f.model.getModel("axisPointer",c),y=m.get("show");if(y&&("auto"!==y||i||a(m))){null==h&&(h=m.get("triggerTooltip")),m=i?function(i,r,o,a,s,l){var u=r.getModel("axisPointer"),h={};n(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(e){h[e]=t.clone(u.get(e))})),h.snap="category"!==i.type&&!!l,"cross"===u.get("type")&&(h.type="line");var c=h.label||(h.label={});if(null==c.show&&(c.show=!1),"cross"===s){var d=u.get("label.show");if(c.show=null==d||d,!l){var p=h.lineStyle=u.get("crossStyle");p&&t.defaults(c,p.textStyle)}}return i.model.getModel("axisPointer",new e(h,o,a))}(f,v,c,l,i,h):m;var x=m.get("snap"),_=s(f.model),b=h||x||"category"===f.type,w=o.axesInfo[_]={key:_,axis:f,coordSys:u,axisPointerModel:m,triggerTooltip:h,involveSeries:b,snap:x,useHandle:a(m),seriesModels:[]};g[_]=w,o.seriesInvolved|=b;var S=function(t,e){for(var n=e.model,i=e.dim,o=0;o<t.length;o++){var a=t[o]||{};if(r(a[i+"AxisId"],n.id)||r(a[i+"AxisIndex"],n.componentIndex)||r(a[i+"AxisName"],n.name))return o}}(d,f);if(null!=S){var M=p[S]||(p[S]={axesInfo:{}});M.axesInfo[_]=w,M.mapper=d[S].mapper,w.linkGroup=M}}}}))}(u,o,l),u.seriesInvolved&&function(t,e){e.eachSeries((function(e){var i=e.coordinateSystem,r=e.get("tooltip.trigger",!0),o=e.get("tooltip.show",!0);i&&"none"!==r&&!1!==r&&"item"!==r&&!1!==o&&!1!==e.get("axisPointer.show",!0)&&n(t.coordSysAxesInfo[s(i.model)],(function(t){var n=t.axis;i.getAxis(n.dim)===n&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}),this)}(u,o),u},Z$.fixValue=function(t){var e=o(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,s=n.get("status"),l=n.get("value");null!=l&&(l=i.parse(l));var u=a(n);null==s&&(r.status=u?"show":"hide");var h=i.getExtent().slice();h[0]>h[1]&&h.reverse(),(null==l||l>h[1])&&(l=h[1]),l<h[0]&&(l=h[0]),r.value=l,u&&(r.status=e.axis.scale.isBlank()?"hide":"show")}},Z$.getAxisInfo=o,Z$.getAxisPointerModel=function(t){var e=o(t);return e&&e.axisPointerModel},Z$.makeKey=s,Z$}function j$(){if(Y$)return U$;Y$=1,tW().__DEV__;var t=NK(),e=X$(),n=t.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(t,r,o,a){this.axisPointerClass&&e.fixValue(t),n.superApply(this,"render",arguments),i(this,t,r,o,a,!0)},updateAxisPointer:function(t,e,n,r,o){i(this,t,e,n,r,!1)},remove:function(t,e){var i=this._axisPointer;i&&i.remove(e),n.superApply(this,"remove",arguments)},dispose:function(t,e){r(this,e),n.superApply(this,"dispose",arguments)}});function i(t,i,o,a,s,l){var u=n.getAxisPointerClass(t.axisPointerClass);if(u){var h=e.getAxisPointerModel(i);h?(t._axisPointer||(t._axisPointer=new u)).render(i,h,a,l):r(t,a)}}function r(t,e,n){var i=t._axisPointer;i&&i.dispose(e,n),t._axisPointer=null}var o=[];return n.registerAxisPointerClass=function(t,e){o[t]=e},n.getAxisPointerClass=function(t){return t&&o[t]},U$=n}var q$,K$={};function $$(){if(q$)return K$;q$=1;var t=hW();return K$.layout=function(e,n,i){i=i||{};var r=e.coordinateSystem,o=n.axis,a={},s=o.getAxesOnZeroOf()[0],l=o.position,u=s?"onZero":l,h=o.dim,c=r.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],p={left:0,right:1,top:0,bottom:1,onZero:2},f=n.get("offset")||0,g="x"===h?[d[2]-f,d[3]+f]:[d[0]-f,d[1]+f];if(s){var v=s.toGlobalCoord(s.dataToCoord(0));g[p.onZero]=Math.max(Math.min(v,g[1]),g[0])}a.position=["y"===h?g[p[u]]:d[0],"x"===h?g[p[u]]:d[3]],a.rotation=Math.PI/2*("x"===h?0:1),a.labelDirection=a.tickDirection=a.nameDirection={top:-1,bottom:1,left:-1,right:1}[l],a.labelOffset=s?g[p[l]]-g[p.onZero]:0,n.get("axisTick.inside")&&(a.tickDirection=-a.tickDirection),t.retrieve(i.labelInside,n.get("axisLabel.inside"))&&(a.labelDirection=-a.labelDirection);var m=n.get("axisLabel.rotate");return a.labelRotate="top"===u?-m:m,a.z2=1,a},K$}var J$,Q$,tJ,eJ,nJ,iJ={};function rJ(){if(J$)return iJ;J$=1;var t=hW(),e=vX();return iJ.rectCoordAxisBuildSplitArea=function(n,i,r,o){var a=r.axis;if(!a.scale.isBlank()){var s=r.getModel("splitArea"),l=s.getModel("areaStyle"),u=l.get("color"),h=o.coordinateSystem.getRect(),c=a.getTicksCoords({tickModel:s,clamp:!0});if(c.length){var d=u.length,p=n.__splitAreaColors,f=t.createHashMap(),g=0;if(p)for(var v=0;v<c.length;v++){var m=p.get(c[v].tickValue);if(null!=m){g=(m+(d-1)*v)%d;break}}var y=a.toGlobalCoord(c[0].coord),x=l.getAreaStyle();u=t.isArray(u)?u:[u];for(v=1;v<c.length;v++){var _,b,w,S,M=a.toGlobalCoord(c[v].coord);a.isHorizontal()?(_=y,b=h.y,w=M-_,S=h.height,y=_+w):(_=h.x,b=y,w=h.width,y=b+(S=M-b));var I=c[v-1].tickValue;null!=I&&f.set(I,g),i.add(new e.Rect({anid:null!=I?"area_"+I:null,shape:{x:_,y:b,width:w,height:S},style:t.defaults({fill:u[g]},x),silent:!0})),g=(g+1)%d}n.__splitAreaColors=f}}},iJ.rectCoordAxisHandleRemove=function(t){t.__splitAreaColors=null},iJ}function oJ(){return tJ||(tJ=1,E$(),function(){if(Q$)return F$;Q$=1;var t=hW(),e=vX(),n=H$(),i=j$(),r=$$(),o=rJ(),a=o.rectCoordAxisBuildSplitArea,s=o.rectCoordAxisHandleRemove,l=["axisLine","axisTickLabel","axisName"],u=["splitArea","splitLine","minorSplitLine"],h=i.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(i,o,a,s){this.group.removeAll();var c=this._axisGroup;if(this._axisGroup=new e.Group,this.group.add(this._axisGroup),i.get("show")){var d=i.getCoordSysModel(),p=r.layout(d,i),f=new n(i,p);t.each(l,f.add,f),this._axisGroup.add(f.getGroup()),t.each(u,(function(t){i.get(t+".show")&&this["_"+t](i,d)}),this),e.groupTransition(c,this._axisGroup,i),h.superCall(this,"render",i,o,a,s)}},remove:function(){s(this)},_splitLine:function(n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=t.isArray(s)?s:[s];for(var l=i.coordinateSystem.getRect(),u=r.isHorizontal(),h=0,c=r.getTicksCoords({tickModel:o}),d=[],p=[],f=a.getLineStyle(),g=0;g<c.length;g++){var v=r.toGlobalCoord(c[g].coord);u?(d[0]=v,d[1]=l.y,p[0]=v,p[1]=l.y+l.height):(d[0]=l.x,d[1]=v,p[0]=l.x+l.width,p[1]=v);var m=h++%s.length,y=c[g].tickValue;this._axisGroup.add(new e.Line({anid:null!=y?"line_"+c[g].tickValue:null,subPixelOptimize:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:t.defaults({stroke:s[m]},f),silent:!0}))}}},_minorSplitLine:function(t,n){var i=t.axis,r=t.getModel("minorSplitLine").getModel("lineStyle"),o=n.coordinateSystem.getRect(),a=i.isHorizontal(),s=i.getMinorTicksCoords();if(s.length)for(var l=[],u=[],h=r.getLineStyle(),c=0;c<s.length;c++)for(var d=0;d<s[c].length;d++){var p=i.toGlobalCoord(s[c][d].coord);a?(l[0]=p,l[1]=o.y,u[0]=p,u[1]=o.y+o.height):(l[0]=o.x,l[1]=p,u[0]=o.x+o.width,u[1]=p),this._axisGroup.add(new e.Line({anid:"minor_line_"+s[c][d].tickValue,subPixelOptimize:!0,shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:h,silent:!0}))}},_splitArea:function(t,e){a(this,this._axisGroup,t,e)}});h.extend({type:"xAxis"}),h.extend({type:"yAxis"})}()),G$}function aJ(){if(eJ)return P$;eJ=1;var t=NK(),e=hW(),n=vX();return z$(),oJ(),t.extendComponentView({type:"grid",render:function(t,i){this.group.removeAll(),t.get("show")&&this.group.add(new n.Rect({shape:t.coordinateSystem.getRect(),style:e.defaults({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))}}),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})),P$}function sJ(){if(nJ)return VK;nJ=1;var t=NK();!function(){if(zK)return EK;zK=1,tW().__DEV__;var t=Vq(),e=kj().extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(e,n){return t(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}});EK=e}(),p$();var e=f$(),n=g$(),i=function(){if(h$)return u$;h$=1;var t={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},e=function(t,e){return Math.round(t.length/2)};return u$=function(n){return{seriesType:n,modifyOutputEnd:!0,reset:function(n,i,r){var o=n.getData(),a=n.get("sampling"),s=n.coordinateSystem;if("cartesian2d"===s.type&&a){var l,u=s.getBaseAxis(),h=s.getOtherAxis(u),c=u.getExtent(),d=Math.abs(c[1]-c[0]),p=Math.round(o.count()/d);p>1&&("string"==typeof a?l=t[a]:"function"==typeof a&&(l=a),l&&n.setData(o.downSample(o.mapDimension(h.dim),1/p,l,e)))}}}}}();return aJ(),t.registerVisual(e("line","circle","line")),t.registerLayout(n("line")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,i("line")),VK}var lJ,uJ,hJ,cJ,dJ={};function pJ(){if(uJ)return lJ;uJ=1;var t=kj(),e=Vq(),n=t.extend({type:"series.__base_bar__",getInitialData:function(t,n){return e(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(t){var e=this.coordinateSystem;if(e){var n=e.dataToPoint(e.clampData(t)),i=this.getData(),r=i.getLayout("offset"),o=i.getLayout("size");return n[e.getBaseAxis().isHorizontal()?0:1]+=r+o/2,n}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});return lJ=n}var fJ,gJ,vJ,mJ,yJ,xJ,_J,bJ,wJ={};function SJ(){if(fJ)return wJ;fJ=1;var t=vX(),e=YK().getDefaultLabel;function n(t,e){"outside"===t.textPosition&&(t.textPosition=e)}return wJ.setLabel=function(i,r,o,a,s,l,u){var h=o.getModel("label"),c=o.getModel("emphasis.label");t.setLabelStyle(i,r,h,c,{labelFetcher:s,labelDataIndex:l,defaultText:e(s.getData(),l),isRectText:!0,autoColor:a}),n(i),n(r)},wJ}function MJ(){if(_J)return xJ;_J=1,tW().__DEV__;var t=NK(),e=hW(),n=vX(),i=SJ().setLabel,r=mX(),o=function(){if(vJ)return gJ;vJ=1;var t=CY()([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);return gJ={getBarItemStyle:function(e){var n=t(this,e);if(this.getBorderLineDash){var i=this.getBorderLineDash();i&&(n.lineDash=i)}return n}}}(),a=xZ(),s=bU(),l=$j().throttle,u=d$().createClipPath,h=function(){if(yJ)return mJ;yJ=1;var t=(0,vX().extendShape)({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,u=e.endAngle,h=e.clockwise,c=Math.cos(l),d=Math.sin(l),p=Math.cos(u),f=Math.sin(u);(h?u-l<2*Math.PI:l-u<2*Math.PI)&&(t.moveTo(c*r+n,d*r+i),t.arc(c*s+n,d*s+i,a,-Math.PI+l,l,!h)),t.arc(n,i,o,l,u,!h),t.moveTo(p*o+n,f*o+i),t.arc(p*s+n,f*s+i,a,u-2*Math.PI,u-Math.PI,!h),0!==r&&(t.arc(n,i,r,u,l,h),t.moveTo(c*r+n,f*r+i)),t.closePath()}});return mJ=t}(),c=["itemStyle","barBorderWidth"],d=[0,0];e.extend(r.prototype,o);var p=t.extendChartView({type:"bar",render:function(t,e,n){this._updateDrawMode(t);var i=t.get("coordinateSystem");return"cartesian2d"!==i&&"polar"!==i||(this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n)),this.group},incrementalPrepareRender:function(t,e,n){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,n,i){this._incrementalRenderLarge(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t,e,i){var r,o=this.group,a=t.getData(),l=this._data,u=t.coordinateSystem,h=u.getBaseAxis();"cartesian2d"===u.type?r=h.isHorizontal():"polar"===u.type&&(r="angle"===h.dim);var c=t.isAnimationEnabled()?t:null,d=t.get("clip",!0),p=function(t,e){var n=t.getArea&&t.getArea();if("cartesian2d"===t.type){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}(u,a);o.removeClipPath();var f=t.get("roundCap",!0),g=t.get("showBackground",!0),b=t.getModel("backgroundStyle"),S=b.get("barBorderRadius")||0,M=[],I=this._backgroundEls||[],C=function(t){var e=_[u.type](a,t),i=function(t,e,i){var r="polar"===t.type?n.Sector:n.Rect;return new r({shape:T(e,i,t),silent:!0,z2:0})}(u,r,e);return i.useStyle(b.getBarItemStyle()),"cartesian2d"===u.type&&i.setShape("r",S),M[t]=i,i};a.diff(l).add((function(e){var n=a.getItemModel(e),i=_[u.type](a,e,n);if(g&&C(e),a.hasValue(e)){if(d)if(v[u.type](p,i))return void o.remove(s);var s=m[u.type](e,i,r,c,!1,f);a.setItemGraphicEl(e,s),o.add(s),w(s,a,e,n,i,t,r,"polar"===u.type)}})).update((function(e,i){var s=a.getItemModel(e),h=_[u.type](a,e,s);if(g){var y;0===I.length?y=C(i):((y=I[i]).useStyle(b.getBarItemStyle()),"cartesian2d"===u.type&&y.setShape("r",S),M[e]=y);var x=_[u.type](a,e),A=T(r,x,u);n.updateProps(y,{shape:A},c,e)}var D=l.getItemGraphicEl(i);if(a.hasValue(e)){if(d)if(v[u.type](p,h))return void o.remove(D);D?n.updateProps(D,{shape:h},c,e):D=m[u.type](e,h,r,c,!0,f),a.setItemGraphicEl(e,D),o.add(D),w(D,a,e,s,h,t,r,"polar"===u.type)}else o.remove(D)})).remove((function(t){var e=l.getItemGraphicEl(t);"cartesian2d"===u.type?e&&y(t,c,e):e&&x(t,c,e)})).execute();var A=this._backgroundGroup||(this._backgroundGroup=new s);A.removeAll();for(var D=0;D<M.length;++D)A.add(M[D]);o.add(A),this._backgroundEls=M,this._data=a},_renderLarge:function(t,e,n){this._clear(),M(t,this.group);var i=t.get("clip",!0)?u(t.coordinateSystem,!1,t):null;i?this.group.setClipPath(i):this.group.removeClipPath()},_incrementalRenderLarge:function(t,e){this._removeBackground(),M(e,this.group,!0)},dispose:e.noop,remove:function(t){this._clear(t)},_clear:function(t){var e=this.group,n=this._data;t&&t.get("animation")&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){"sector"===e.type?x(e.dataIndex,t,e):y(e.dataIndex,t,e)}))):e.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),f=Math.max,g=Math.min,v={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=f(e.x,t.x),o=g(e.x+e.width,t.x+t.width),a=f(e.y,t.y),s=g(e.y+e.height,t.y+t.height);e.x=r,e.y=a,e.width=o-r,e.height=s-a;var l=e.width<0||e.height<0;return n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),l},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}i=g(e.r,t.r);var r=f(e.r0,t.r0);e.r=i,e.r0=r;var o=i-r<0;if(n<0){i=e.r;e.r=e.r0,e.r0=i}return o}},m={cartesian2d:function(t,i,r,o,a){var s=new n.Rect({shape:e.extend({},i),z2:1});if(s.name="item",o){var l=r?"height":"width",u={};s.shape[l]=0,u[l]=i[l],n[a?"updateProps":"initProps"](s,{shape:u},o,t)}return s},polar:function(t,i,r,o,a,s){var l=i.startAngle<i.endAngle,u=new(!r&&s?h:n.Sector)({shape:e.defaults({clockwise:l},i),z2:1});if(u.name="item",o){var c=r?"r":"endAngle",d={};u.shape[c]=r?0:i.startAngle,d[c]=i[c],n[a?"updateProps":"initProps"](u,{shape:d},o,t)}return u}};function y(t,e,i){i.style.text=null,n.updateProps(i,{shape:{width:0}},e,t,(function(){i.parent&&i.parent.remove(i)}))}function x(t,e,i){i.style.text=null,n.updateProps(i,{shape:{r:i.shape.r0}},e,t,(function(){i.parent&&i.parent.remove(i)}))}var _={cartesian2d:function(t,e,n){var i=t.getItemLayout(e),r=n?function(t,e){var n=t.get(c)||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),r=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,r)}(n,i):0,o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle}}};function b(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function w(t,r,o,a,s,l,u,h){var c=r.getItemVisual(o,"color"),d=r.getItemVisual(o,"opacity"),p=r.getVisual("borderColor"),f=a.getModel("itemStyle"),g=a.getModel("emphasis.itemStyle").getBarItemStyle();h||t.setShape("r",f.get("barBorderRadius")||0),t.useStyle(e.defaults({stroke:b(s)?"none":p,fill:b(s)?"none":c,opacity:d},f.getBarItemStyle()));var v=a.getShallow("cursor");v&&t.attr("cursor",v);var m=u?s.height>0?"bottom":"top":s.width>0?"left":"right";h||i(t.style,g,a,c,l,o,m),b(s)&&(g.fill=g.stroke="none"),n.setHoverStyle(t,g)}var S=a.extend({type:"largeBar",shape:{points:[]},buildPath:function(t,e){for(var n=e.points,i=this.__startPoint,r=this.__baseDimIdx,o=0;o<n.length;o+=2)i[r]=n[o+r],t.moveTo(i[0],i[1]),t.lineTo(n[o],n[o+1])}});function M(t,e,n){var i=t.getData(),r=[],o=i.getLayout("valueAxisHorizontal")?1:0;r[1-o]=i.getLayout("valueAxisStart");var a=i.getLayout("largeDataIndices"),s=i.getLayout("barWidth"),l=t.getModel("backgroundStyle");if(t.get("showBackground",!0)){var u=i.getLayout("largeBackgroundPoints"),h=[];h[1-o]=i.getLayout("backgroundStart");var c=new S({shape:{points:u},incremental:!!n,__startPoint:h,__baseDimIdx:o,__largeDataIndices:a,__barWidth:s,silent:!0,z2:0});!function(t,e,n){var i=e.get("borderColor")||e.get("color"),r=e.getItemStyle(["color","borderColor"]);t.useStyle(r),t.style.fill=null,t.style.stroke=i,t.style.lineWidth=n.getLayout("barWidth")}(c,l,i),e.add(c)}var d=new S({shape:{points:i.getLayout("largePoints")},incremental:!!n,__startPoint:r,__baseDimIdx:o,__largeDataIndices:a,__barWidth:s});e.add(d),function(t,e,n){var i=n.getVisual("borderColor")||n.getVisual("color"),r=e.getModel("itemStyle").getItemStyle(["color","borderColor"]);t.useStyle(r),t.style.fill=null,t.style.stroke=i,t.style.lineWidth=n.getLayout("barWidth")}(d,t,i),d.seriesIndex=t.seriesIndex,t.get("silent")||(d.on("mousedown",I),d.on("mousemove",I))}var I=l((function(t){var e=function(t,e,n){var i=t.__baseDimIdx,r=1-i,o=t.shape.points,a=t.__largeDataIndices,s=Math.abs(t.__barWidth/2),l=t.__startPoint[r];d[0]=e,d[1]=n;for(var u=d[i],h=d[1-i],c=u-s,p=u+s,f=0,g=o.length/2;f<g;f++){var v=2*f,m=o[v+i],y=o[v+r];if(m>=c&&m<=p&&(l<=y?h>=l&&h<=y:h>=y&&h<=l))return a[f]}return-1}(this,t.offsetX,t.offsetY);this.dataIndex=e>=0?e:null}),30,!1);function T(t,e,n){var i,r="polar"===n.type;return i=r?n.getArea():n.grid.getRect(),r?{cx:i.cx,cy:i.cy,r0:t?i.r0:e.r0,r:t?i.r:e.r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}:{x:t?e.x:i.x,y:t?i.y:e.y,width:t?e.width:i.width,height:t?i.height:e.height}}return xJ=p}function IJ(){if(bJ)return dJ;bJ=1;var t=NK(),e=hW(),n=uK(),i=n.layout,r=n.largeLayout;return z$(),function(){if(cJ)return hJ;cJ=1;var t=pJ().extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return!!this.get("large")&&this.get("progressive")},getProgressiveThreshold:function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},defaultOption:{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1}}});hJ=t}(),MJ(),aJ(),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,e.curry(i,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,r),t.registerVisual({seriesType:"bar",reset:function(t){t.getData().setVisual("legendSymbol","roundRect")}}),dJ}var TJ,CJ,AJ,DJ,LJ,kJ,PJ,OJ,RJ,NJ,EJ,zJ,VJ,BJ,GJ,FJ,HJ,WJ,UJ,YJ,ZJ,XJ={};function jJ(){if(CJ)return TJ;CJ=1;var t=Lq(),e=Aq(),n=hW(),i=n.extend,r=n.isArray;return TJ=function(n,o,a){o=r(o)&&{coordDimensions:o}||i({},o);var s=n.getSource(),l=t(s,o),u=new e(l,n);return u.initData(s,a),u}}function qJ(){if(DJ)return AJ;DJ=1;var t=hW(),e={updateSelectedMap:function(e){this._targetList=t.isArray(e)?e.slice():[],this._selectTargetMap=t.reduce(e||[],(function(t,e){return t.set(e.name,e),t}),t.createHashMap())},select:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);"single"===this.get("selectedMode")&&this._selectTargetMap.each((function(t){t.selected=!1})),n&&(n.selected=!0)},unSelect:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);n&&(n.selected=!1)},toggleSelected:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);if(null!=n)return this[n.selected?"unSelect":"select"](t,e),n.selected},isSelected:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);return n&&n.selected}};return AJ=e}function KJ(){if(kJ)return LJ;return kJ=1,LJ=function(t,e){this.getAllNames=function(){var t=e();return t.mapArray(t.getName)},this.containName=function(t){return e().indexOfName(t)>=0},this.indexOfName=function(e){return t().indexOfName(e)},this.getItemVisual=function(e,n){return t().getItemVisual(e,n)}}}function $J(){if(zJ)return EJ;zJ=1;var t=NK(),e=hW();return EJ=function(n,i){e.each(i,(function(e){e.update="updateView",t.registerAction(e,(function(t,i){var r={};return i.eachComponent({mainType:"series",subType:n,query:t},(function(n){n[e.method]&&n[e.method](t.name,t.dataIndex);var i=n.getData();i.each((function(t){var e=i.getName(t);r[e]=n.isSelected(e)||!1}))})),{name:t.name,selected:r,seriesId:t.seriesId}}))}))}}function JJ(){if(BJ)return VJ;BJ=1;var t=hW().createHashMap;return VJ=function(e){return{getTargetSeries:function(n){var i={},r=t();return n.eachSeriesByType(e,(function(t){t.__paletteScope=i,r.set(t.uid,t)})),r},reset:function(t,e){var n=t.getRawData(),i={},r=t.getData();r.each((function(t){var e=r.getRawIndex(t);i[e]=t})),n.each((function(e){var o,a=i[e],s=null!=a&&r.getItemVisual(a,"color",!0),l=null!=a&&r.getItemVisual(a,"borderColor",!0);if(s&&l||(o=n.getItemModel(e)),!s){var u=o.get("itemStyle.color")||t.getColorFromPalette(n.getName(e)||e+"",t.__paletteScope,n.count());null!=a&&r.setItemVisual(a,"color",u)}if(!l){var h=o.get("itemStyle.borderColor");null!=a&&r.setItemVisual(a,"borderColor",h)}}))}}}}function QJ(){if(FJ)return GJ;FJ=1;var t=UU(),e=MX().parsePercent,n=Math.PI/180;function i(t,e,n,i,r,o,a,s,l,u){function h(e,n,i,r){for(var o=e;o<n&&!(t[o].y+i>l+a);o++)if(t[o].y+=i,o>e&&o+1<n&&t[o+1].y>t[o].y+t[o].height)return void c(o,i/2);c(n-1,i/2)}function c(e,n){for(var i=e;i>=0&&!(t[i].y-n<l)&&(t[i].y-=n,!(i>0&&t[i].y>t[i-1].y+t[i-1].height));i--);}function d(t,e,n,i,r,o){for(var a=e?Number.MAX_VALUE:0,s=0,l=t.length;s<l;s++)if("none"===t[s].labelAlignTo){var u=Math.abs(t[s].y-i),h=t[s].len,c=t[s].len2,d=u<r+h?Math.sqrt((r+h+c)*(r+h+c)-u*u):Math.abs(t[s].x-n);e&&d>=a&&(d=a-10),!e&&d<=a&&(d=a+10),t[s].x=n+d*o,a=d}}t.sort((function(t,e){return t.y-e.y}));for(var p,f=0,g=t.length,v=[],m=[],y=0;y<g;y++){if("outer"===t[y].position&&"labelLine"===t[y].labelAlignTo){var x=t[y].x-u;t[y].linePoints[1][0]+=x,t[y].x=u}(p=t[y].y-f)<0&&h(y,g,-p),f=t[y].y+t[y].height}a-f<0&&c(g-1,f-a);for(y=0;y<g;y++)t[y].y>=n?m.push(t[y]):v.push(t[y]);d(v,!1,e,n,i,r),d(m,!0,e,n,i,r)}function r(t){return"center"===t.position}return GJ=function(o,a,s,l,u,h){var c,d,p=o.getData(),f=[],g=!1,v=(o.get("minShowLabelAngle")||0)*n;p.each((function(n){var i=p.getItemLayout(n),r=p.getItemModel(n),l=r.getModel("label"),h=l.get("position")||r.get("emphasis.label.position"),m=l.get("distanceToLabelLine"),y=l.get("alignTo"),x=e(l.get("margin"),s),_=l.get("bleedMargin"),b=l.getFont(),w=r.getModel("labelLine"),S=w.get("length");S=e(S,s);var M=w.get("length2");if(M=e(M,s),!(i.angle<v)){var I,T,C,A,D=(i.startAngle+i.endAngle)/2,L=Math.cos(D),k=Math.sin(D);c=i.cx,d=i.cy;var P,O=o.getFormattedLabel(n,"normal")||p.getName(n),R=t.getBoundingRect(O,b,A,"top"),N="inside"===h||"inner"===h;if("center"===h)I=i.cx,T=i.cy,A="center";else{var E=(N?(i.r+i.r0)/2*L:i.r*L)+c,z=(N?(i.r+i.r0)/2*k:i.r*k)+d;if(I=E+3*L,T=z+3*k,!N){var V=E+L*(S+a-i.r),B=z+k*(S+a-i.r),G=V+(L<0?-1:1)*M;I="edge"===y?L<0?u+x:u+s-x:G+(L<0?-m:m),T=B,C=[[E,z],[V,B],[G,B]]}A=N?"center":"edge"===y?L>0?"right":"left":L>0?"left":"right"}var F=l.get("rotate");P="number"==typeof F?F*(Math.PI/180):F?L<0?-D+Math.PI:-D:0,g=!!P,i.label={x:I,y:T,position:h,height:R.height,len:S,len2:M,linePoints:C,textAlign:A,verticalAlign:"middle",rotation:P,inside:N,labelDistance:m,labelAlignTo:y,labelMargin:x,bleedMargin:_,textRect:R,text:O,font:b},N||f.push(i.label)}})),!g&&o.get("avoidLabelOverlap")&&function(e,n,o,a,s,l,u,h){for(var c=[],d=[],p=Number.MAX_VALUE,f=-Number.MAX_VALUE,g=0;g<e.length;g++)r(e[g])||(e[g].x<n?(p=Math.min(p,e[g].x),c.push(e[g])):(f=Math.max(f,e[g].x),d.push(e[g])));for(i(d,n,o,a,1,0,l,0,h,f),i(c,n,o,a,-1,0,l,0,h,p),g=0;g<e.length;g++){var v=e[g];if(!r(v)){var m=v.linePoints;if(m){var y,x="edge"===v.labelAlignTo,_=v.textRect.width;(y=x?v.x<n?m[2][0]-v.labelDistance-u-v.labelMargin:u+s-v.labelMargin-m[2][0]-v.labelDistance:v.x<n?v.x-u-v.bleedMargin:u+s-v.x-v.bleedMargin)<v.textRect.width&&(v.text=t.truncateText(v.text,y,v.font),"edge"===v.labelAlignTo&&(_=t.getWidth(v.text,v.font)));var b=m[1][0]-m[2][0];x?v.x<n?m[2][0]=u+v.labelMargin+_+v.labelDistance:m[2][0]=u+s-v.labelMargin-_-v.labelDistance:(v.x<n?m[2][0]=v.x+v.labelDistance:m[2][0]=v.x-v.labelDistance,m[1][0]=m[2][0]+b),m[1][1]=m[2][1]=v.y}}}}(f,c,d,a,s,l,u,h)},GJ}function tQ(){if(WJ)return HJ;WJ=1;var t=MX(),e=t.parsePercent,n=t.linearMap,i=zX(),r=QJ(),o=hW(),a=2*Math.PI,s=Math.PI/180;return HJ=function(t,l,u,h){l.eachSeriesByType(t,(function(t){var l=t.getData(),h=l.mapDimension("value"),c=function(t,e){return i.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,u),d=t.get("center"),p=t.get("radius");o.isArray(p)||(p=[0,p]),o.isArray(d)||(d=[d,d]);var f=e(c.width,u.getWidth()),g=e(c.height,u.getHeight()),v=Math.min(f,g),m=e(d[0],f)+c.x,y=e(d[1],g)+c.y,x=e(p[0],v/2),_=e(p[1],v/2),b=-t.get("startAngle")*s,w=t.get("minAngle")*s,S=0;l.each(h,(function(t){!isNaN(t)&&S++}));var M=l.getSum(h),I=Math.PI/(M||S)*2,T=t.get("clockwise"),C=t.get("roseType"),A=t.get("stillShowZeroSum"),D=l.getDataExtent(h);D[0]=0;var L=a,k=0,P=b,O=T?1:-1;if(l.each(h,(function(t,e){var i;if(isNaN(t))l.setItemLayout(e,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:T,cx:m,cy:y,r0:x,r:C?NaN:_,viewRect:c});else{(i="area"!==C?0===M&&A?I:t*I:a/S)<w?(i=w,L-=w):k+=t;var r=P+O*i;l.setItemLayout(e,{angle:i,startAngle:P,endAngle:r,clockwise:T,cx:m,cy:y,r0:x,r:C?n(t,D,[x,_]):_,viewRect:c}),P=r}})),L<a&&S)if(L<=.001){var R=a/S;l.each(h,(function(t,e){if(!isNaN(t)){var n=l.getItemLayout(e);n.angle=R,n.startAngle=b+O*e*R,n.endAngle=b+O*(e+1)*R}}))}else I=L/k,P=b,l.each(h,(function(t,e){if(!isNaN(t)){var n=l.getItemLayout(e),i=n.angle===w?w:t*I;n.startAngle=P,n.endAngle=P+O*i,P+=O*i}}));r(t,_,c.width,c.height,c.x,c.y)}))}}function eQ(){if(YJ)return UJ;return YJ=1,UJ=function(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf((function(t){for(var e=i.getName(t),r=0;r<n.length;r++)if(!n[r].isSelected(e))return!1;return!0}))}}}},UJ}function nQ(){if(ZJ)return XJ;ZJ=1;var t=NK(),e=hW();!function(){if(OJ)return PJ;OJ=1;var t=NK(),e=jJ(),n=hW(),i=mY(),r=MX().getPercentWithPrecision,o=qJ(),a=yj().retrieveRawAttr,s=lj().makeSeriesEncodeForNameBased,l=KJ(),u=t.extendSeriesModel({type:"series.pie",init:function(t){u.superApply(this,"init",arguments),this.legendVisualProvider=new l(n.bind(this.getData,this),n.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(t)},mergeOption:function(t){u.superCall(this,"mergeOption",t),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(t,i){return e(this,{coordDimensions:["value"],encodeDefaulter:n.curry(s,this)})},_createSelectableList:function(){for(var t=this.getRawData(),e=t.mapDimension("value"),n=[],i=0,r=t.count();i<r;i++)n.push({name:t.getName(i),value:t.get(e,i),selected:a(t,i,"selected")});return n},getDataParams:function(t){var e=this.getData(),n=u.superCall(this,"getDataParams",t),i=[];return e.each(e.mapDimension("value"),(function(t){i.push(t)})),n.percent=r(i,t,e.hostModel.get("percentPrecision")),n.$vars.push("percent"),n},_defaultLabelLine:function(t){i.defaultEmphasis(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:!1,show:!0,position:"outer",alignTo:"none",margin:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationTypeUpdate:"transition",animationEasing:"cubicOut"}});n.mixin(u,o),PJ=u}(),function(){if(NJ)return RJ;NJ=1;var t=hW(),e=vX(),n=Rj();function i(t,e,n,i){var o=e.getData(),a=this.dataIndex,s=o.getName(a),l=e.get("selectedOffset");i.dispatchAction({type:"pieToggleSelect",from:t,name:s,seriesId:e.id}),o.each((function(t){r(o.getItemGraphicEl(t),o.getItemLayout(t),e.isSelected(o.getName(t)),l,n)}))}function r(t,e,n,i,r){var o=(e.startAngle+e.endAngle)/2,a=n?i:0,s=[Math.cos(o)*a,Math.sin(o)*a];r?t.animate().when(200,{position:s}).start("bounceOut"):t.attr("position",s)}function o(t,n){e.Group.call(this);var i=new e.Sector({z2:2}),r=new e.Polyline,o=new e.Text;this.add(i),this.add(r),this.add(o),this.updateData(t,n,!0)}var a=o.prototype;a.updateData=function(n,i,o){var a=this.childAt(0),s=this.childAt(1),l=this.childAt(2),u=n.hostModel,h=n.getItemModel(i),c=n.getItemLayout(i),d=t.extend({},c);d.label=null;var p=u.getShallow("animationTypeUpdate");o?(a.setShape(d),"scale"===u.getShallow("animationType")?(a.shape.r=c.r0,e.initProps(a,{shape:{r:c.r}},u,i)):(a.shape.endAngle=c.startAngle,e.updateProps(a,{shape:{endAngle:c.endAngle}},u,i))):"expansion"===p?a.setShape(d):e.updateProps(a,{shape:d},u,i);var f=n.getItemVisual(i,"color");a.useStyle(t.defaults({lineJoin:"bevel",fill:f},h.getModel("itemStyle").getItemStyle())),a.hoverStyle=h.getModel("emphasis.itemStyle").getItemStyle();var g=h.getShallow("cursor");g&&a.attr("cursor",g),r(this,n.getItemLayout(i),u.isSelected(n.getName(i)),u.get("selectedOffset"),u.get("animation"));var v=!o&&"transition"===p;this._updateLabel(n,i,v),this.highDownOnUpdate=u.get("silent")?null:function(t,e){var n=u.isAnimationEnabled()&&h.get("hoverAnimation");"emphasis"===e?(s.ignore=s.hoverIgnore,l.ignore=l.hoverIgnore,n&&(a.stopAnimation(!0),a.animateTo({shape:{r:c.r+u.get("hoverOffset")}},300,"elasticOut"))):(s.ignore=s.normalIgnore,l.ignore=l.normalIgnore,n&&(a.stopAnimation(!0),a.animateTo({shape:{r:c.r}},300,"elasticOut")))},e.setHoverStyle(this)},a._updateLabel=function(t,n,i){var r=this.childAt(1),o=this.childAt(2),a=t.hostModel,s=t.getItemModel(n),l=t.getItemLayout(n).label,u=t.getItemVisual(n,"color");if(!l||isNaN(l.x)||isNaN(l.y))o.ignore=o.normalIgnore=o.hoverIgnore=r.ignore=r.normalIgnore=r.hoverIgnore=!0;else{var h={points:l.linePoints||[[l.x,l.y],[l.x,l.y],[l.x,l.y]]},c={x:l.x,y:l.y};i?(e.updateProps(r,{shape:h},a,n),e.updateProps(o,{style:c},a,n)):(r.attr({shape:h}),o.attr({style:c})),o.attr({rotation:l.rotation,origin:[l.x,l.y],z2:10});var d=s.getModel("label"),p=s.getModel("emphasis.label"),f=s.getModel("labelLine"),g=s.getModel("emphasis.labelLine");u=t.getItemVisual(n,"color"),e.setLabelStyle(o.style,o.hoverStyle={},d,p,{labelFetcher:t.hostModel,labelDataIndex:n,defaultText:l.text,autoColor:u,useInsideStyle:!!l.inside},{textAlign:l.textAlign,textVerticalAlign:l.verticalAlign,opacity:t.getItemVisual(n,"opacity")}),o.ignore=o.normalIgnore=!d.get("show"),o.hoverIgnore=!p.get("show"),r.ignore=r.normalIgnore=!f.get("show"),r.hoverIgnore=!g.get("show"),r.setStyle({stroke:u,opacity:t.getItemVisual(n,"opacity")}),r.setStyle(f.getModel("lineStyle").getLineStyle()),r.hoverStyle=g.getModel("lineStyle").getLineStyle();var v=f.get("smooth");v&&!0===v&&(v=.4),r.setShape({smooth:v})}},t.inherits(o,e.Group);var s=n.extend({type:"pie",init:function(){var t=new e.Group;this._sectorGroup=t},render:function(e,n,r,a){if(!a||a.from!==this.uid){var s=e.getData(),l=this._data,u=this.group,h=n.get("animation"),c=!l,d=e.get("animationType"),p=e.get("animationTypeUpdate"),f=t.curry(i,this.uid,e,h,r),g=e.get("selectedMode");if(s.diff(l).add((function(t){var e=new o(s,t);c&&"scale"!==d&&e.eachChild((function(t){t.stopAnimation(!0)})),g&&e.on("click",f),s.setItemGraphicEl(t,e),u.add(e)})).update((function(t,e){var n=l.getItemGraphicEl(e);c||"transition"===p||n.eachChild((function(t){t.stopAnimation(!0)})),n.updateData(s,t),n.off("click"),g&&n.on("click",f),u.add(n),s.setItemGraphicEl(t,n)})).remove((function(t){var e=l.getItemGraphicEl(t);u.remove(e)})).execute(),h&&s.count()>0&&(c?"scale"!==d:"transition"!==p)){for(var v=s.getItemLayout(0),m=1;isNaN(v.startAngle)&&m<s.count();++m)v=s.getItemLayout(m);var y=Math.max(r.getWidth(),r.getHeight())/2,x=t.bind(u.removeClipPath,u);u.setClipPath(this._createClipPath(v.cx,v.cy,y,v.startAngle,v.clockwise,x,e,c))}else u.removeClipPath();this._data=s}},dispose:function(){},_createClipPath:function(t,n,i,r,o,a,s,l){var u=new e.Sector({shape:{cx:t,cy:n,r0:0,r:i,startAngle:r,endAngle:r,clockwise:o}});return(l?e.initProps:e.updateProps)(u,{shape:{endAngle:r+(o?1:-1)*Math.PI*2}},s,a),u},containPoint:function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}}});RJ=s}();var n=$J(),i=JJ(),r=tQ(),o=eQ();return n("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),t.registerVisual(i("pie")),t.registerLayout(e.curry(r,"pie")),t.registerProcessor(o("pie")),XJ}var iQ,rQ,oQ={};var aQ,sQ,lQ,uQ,hQ={};function cQ(){if(lQ)return hQ;lQ=1;var t=NK(),e=XK(),n=function(){if(sQ)return aQ;sQ=1;var t=vX(),e=vK().createSymbol,n=gX(),i=t.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(t,e){var n=e.points,i=e.size,r=this.symbolProxy,o=r.shape;if(!((t.getContext?t.getContext():t)&&i[0]<4))for(var a=0;a<n.length;){var s=n[a++],l=n[a++];isNaN(s)||isNaN(l)||this.softClipShape&&!this.softClipShape.contain(s,l)||(o.x=s-i[0]/2,o.y=l-i[1]/2,o.width=i[0],o.height=i[1],r.buildPath(t,o,!0))}},afterBrush:function(t){var e=this.shape,n=e.points,i=e.size;if(i[0]<4){this.setTransform(t);for(var r=0;r<n.length;){var o=n[r++],a=n[r++];isNaN(o)||isNaN(a)||this.softClipShape&&!this.softClipShape.contain(o,a)||t.fillRect(o-i[0]/2,a-i[1]/2,i[0],i[1])}this.restoreTransform(t)}},findDataIndex:function(t,e){for(var n=this.shape,i=n.points,r=n.size,o=Math.max(r[0],4),a=Math.max(r[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,u=i[l]-o/2,h=i[l+1]-a/2;if(t>=u&&e>=h&&t<=u+o&&e<=h+a)return s}return-1}});function r(){this.group=new t.Group}var o=r.prototype;return o.isPersistent=function(){return!this._incremental},o.updateData=function(t,e){this.group.removeAll();var n=new i({rectHover:!0,cursor:"default"});n.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(n,t,!1,e),this.group.add(n),this._incremental=null},o.updateLayout=function(t){if(!this._incremental){var e=t.getLayout("symbolPoints");this.group.eachChild((function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),i=4*t.startIndex*2;e=new Float32Array(e.buffer,i,n)}t.setShape("points",e)}))}},o.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new n({silent:!0})),this.group.add(this._incremental)):this._incremental=null},o.incrementalUpdate=function(t,e,n){var r;this._incremental?(r=new i,this._incremental.addDisplayable(r,!0)):((r=new i({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end})).incremental=!0,this.group.add(r)),r.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(r,e,!!this._incremental,n)},o._setCommon=function(t,n,i,r){var o=n.hostModel;r=r||{};var a=n.getVisual("symbolSize");t.setShape("size",a instanceof Array?a:[a,a]),t.softClipShape=r.clipShape||null,t.symbolProxy=e(n.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var s=t.shape.size[0]<4;t.useStyle(o.getModel("itemStyle").getItemStyle(s?["color","shadowBlur","shadowColor"]:["color"]));var l=n.getVisual("color");l&&t.setColor(l),i||(t.seriesIndex=o.seriesIndex,t.on("mousemove",(function(e){t.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>=0&&(t.dataIndex=n+(t.startIndex||0))})))},o.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},o._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()},aQ=r}(),i=g$();return t.extendChartView({type:"scatter",render:function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},incrementalPrepareRender:function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},incrementalRender:function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,n){var r=t.getData();if(this.group.dirty(),!this._finished||r.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var o=i().reset(t);o.progress&&o.progress({start:0,end:r.count()},r),this._symbolDraw.updateLayout(r)},_getClipShape:function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},_updateSymbolDraw:function(t,i){var r=this._symbolDraw,o=i.pipelineContext.large;return r&&o===this._isLargeDraw||(r&&r.remove(),r=this._symbolDraw=o?new n:new e,this._isLargeDraw=o,this.group.removeAll()),this.group.add(r.group),r},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}}),hQ}function dQ(){if(uQ)return oQ;uQ=1;var t=NK();!function(){if(rQ)return iQ;rQ=1;var t=Vq(),e=kj().extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(e,n){return t(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});iQ=e}(),cQ();var e=f$(),n=g$();return aJ(),t.registerVisual(e("scatter","circle")),t.registerLayout(n("scatter")),oQ}var pQ,fQ,gQ,vQ,mQ,yQ,xQ,_Q,bQ,wQ,SQ,MQ,IQ,TQ,CQ,AQ,DQ,LQ,kQ={},PQ={};function OQ(){if(vQ)return gQ;vQ=1;var t=hW(),e=function(){if(fQ)return pQ;fQ=1;var t=hW(),e=OK();function n(t,n,i){e.call(this,t,n,i),this.type="value",this.angle=0,this.name="",this.model}return t.inherits(n,e),pQ=n}(),n=Qq(),i=MX(),r=cK(),o=r.getScaleExtent,a=r.niceScaleExtent,s=cj(),l=hK();function u(i,r,o){this._model=i,this.dimensions=[],this._indicatorAxes=t.map(i.getIndicatorModels(),(function(t,i){var r="indicator_"+i,o=new e(r,"log"===t.get("axisType")?new l:new n);return o.name=t.get("name"),o.model=t,t.axis=o,this.dimensions.push(r),o}),this),this.resize(i,o),this.cx,this.cy,this.r,this.r0,this.startAngle}return u.prototype.getIndicatorAxes=function(){return this._indicatorAxes},u.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},u.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(n),this.cy-t*Math.sin(n)]},u.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var r,o=Math.atan2(-n,e),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],h=Math.abs(o-u.angle);h<a&&(r=u,s=l,a=h)}return[s,+(r&&r.coordToData(i))]},u.prototype.resize=function(e,n){var r=e.get("center"),o=n.getWidth(),a=n.getHeight(),s=Math.min(o,a)/2;this.cx=i.parsePercent(r[0],o),this.cy=i.parsePercent(r[1],a),this.startAngle=e.get("startAngle")*Math.PI/180;var l=e.get("radius");"string"!=typeof l&&"number"!=typeof l||(l=[0,l]),this.r0=i.parsePercent(l[0],s),this.r=i.parsePercent(l[1],s),t.each(this._indicatorAxes,(function(t,e){t.setExtent(this.r0,this.r);var n=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),t.angle=n}),this)},u.prototype.update=function(e,n){var r=this._indicatorAxes,s=this._model;t.each(r,(function(t){t.scale.setExtent(1/0,-1/0)})),e.eachSeriesByType("radar",(function(n,i){if("radar"===n.get("coordinateSystem")&&e.getComponent("radar",n.get("radarIndex"))===s){var o=n.getData();t.each(r,(function(t){t.scale.unionExtentFromData(o,o.mapDimension(t.dim))}))}}),this);var l=s.get("splitNumber");function u(t){var e=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),n=t/e;return 2===n?n=5:n*=2,n*e}t.each(r,(function(t,e){var n=o(t.scale,t.model).extent;a(t.scale,t.model);var r=t.model,s=t.scale,h=r.getMin(),c=r.getMax(),d=s.getInterval();if(null!=h&&null!=c)s.setExtent(+h,+c),s.setInterval((c-h)/l);else if(null!=h){do{p=h+d*l,s.setExtent(+h,p),s.setInterval(d),d=u(d)}while(p<n[1]&&isFinite(p)&&isFinite(n[1]))}else if(null!=c){do{f=c-d*l,s.setExtent(f,+c),s.setInterval(d),d=u(d)}while(f>n[0]&&isFinite(f)&&isFinite(n[0]))}else{s.getTicks().length-1>l&&(d=u(d));var p=Math.ceil(n[1]/d)*d,f=i.round(p-d*l);s.setExtent(f,p),s.setInterval(d)}}))},u.dimensions=[],u.create=function(t,e){var n=[];return t.eachComponent("radar",(function(i){var r=new u(i,t,e);n.push(r),i.coordinateSystem=r})),t.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("radarIndex")||0])})),n},s.register("radar",u),gQ=u}function RQ(){return bQ||(bQ=1,OQ(),function(){if(yQ)return mQ;yQ=1;var t=NK(),e=hW(),n=R$(),i=mX(),r=dK(),o=n.valueAxis;function a(t,n){return e.defaults({show:n},t)}var s=t.extendComponentModel({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),n=this.get("splitNumber"),o=this.get("scale"),a=this.get("axisLine"),s=this.get("axisTick"),l=this.get("axisType"),u=this.get("axisLabel"),h=this.get("name"),c=this.get("name.show"),d=this.get("name.formatter"),p=this.get("nameGap"),f=this.get("triggerEvent"),g=e.map(this.get("indicator")||[],(function(g){null!=g.max&&g.max>0&&!g.min?g.min=0:null!=g.min&&g.min<0&&!g.max&&(g.max=0);var v=h;if(null!=g.color&&(v=e.defaults({color:g.color},h)),g=e.merge(e.clone(g),{boundaryGap:t,splitNumber:n,scale:o,axisLine:a,axisTick:s,axisType:l,axisLabel:u,name:g.text,nameLocation:"end",nameGap:p,nameTextStyle:v,triggerEvent:f},!1),c||(g.name=""),"string"==typeof d){var m=g.name;g.name=d.replace("{value}",null!=m?m:"")}else"function"==typeof d&&(g.name=d(g.name,g));var y=e.extend(new i(g,null,this.ecModel),r);return y.mainType="radar",y.componentIndex=this.componentIndex,y}),this);this.getIndicatorModels=function(){return g}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:e.merge({lineStyle:{color:"#bbb"}},o.axisLine),axisLabel:a(o.axisLabel,!1),axisTick:a(o.axisTick,!1),axisType:"interval",splitLine:a(o.splitLine,!0),splitArea:a(o.splitArea,!0),indicator:[]}});mQ=s}(),function(){if(_Q)return xQ;_Q=1,tW().__DEV__;var t=NK(),e=hW(),n=H$(),i=vX(),r=["axisLine","axisTickLabel","axisName"],o=t.extendComponentView({type:"radar",render:function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var i=t.coordinateSystem,o=i.getIndicatorAxes(),a=e.map(o,(function(t){return new n(t.model,{position:[i.cx,i.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}));e.each(a,(function(t){e.each(r,t.add,t),this.group.add(t.getGroup())}),this)},_buildSplitLineAndArea:function(t){var n=t.coordinateSystem,r=n.getIndicatorAxes();if(r.length){var o=t.get("shape"),a=t.getModel("splitLine"),s=t.getModel("splitArea"),l=a.getModel("lineStyle"),u=s.getModel("areaStyle"),h=a.get("show"),c=s.get("show"),d=l.get("color"),p=u.get("color");d=e.isArray(d)?d:[d],p=e.isArray(p)?p:[p];var f=[],g=[];if("circle"===o)for(var v=r[0].getTicksCoords(),m=n.cx,y=n.cy,x=0;x<v.length;x++)h&&f[C(f,d,x)].push(new i.Circle({shape:{cx:m,cy:y,r:v[x].coord}})),c&&x<v.length-1&&g[C(g,p,x)].push(new i.Ring({shape:{cx:m,cy:y,r0:v[x].coord,r:v[x+1].coord}}));else{var _,b=e.map(r,(function(t,i){var r=t.getTicksCoords();return _=null==_?r.length-1:Math.min(r.length-1,_),e.map(r,(function(t){return n.coordToPoint(t.coord,i)}))})),w=[];for(x=0;x<=_;x++){for(var S=[],M=0;M<r.length;M++)S.push(b[M][x]);S[0]&&S.push(S[0].slice()),h&&f[C(f,d,x)].push(new i.Polyline({shape:{points:S}})),c&&w&&g[C(g,p,x-1)].push(new i.Polygon({shape:{points:S.concat(w)}})),w=S.slice().reverse()}}var I=l.getLineStyle(),T=u.getAreaStyle();e.each(g,(function(t,n){this.group.add(i.mergePath(t,{style:e.defaults({stroke:"none",fill:p[n%p.length]},T),silent:!0}))}),this),e.each(f,(function(t,n){this.group.add(i.mergePath(t,{style:e.defaults({fill:"none",stroke:d[n%d.length]},I),silent:!0}))}),this)}function C(t,e,n){var i=n%e.length;return t[i]=t[i]||[],i}}});xQ=o}()),PQ}function NQ(){if(IQ)return MQ;IQ=1;var t=NK(),e=vX(),n=hW(),i=vK();var r=t.extendChartView({type:"radar",render:function(t,r,o){var a=t.coordinateSystem,s=this.group,l=t.getData(),u=this._data;function h(t,e){var r=t.getItemVisual(e,"symbol")||"circle",o=t.getItemVisual(e,"color");if("none"!==r){var a=function(t){return n.isArray(t)||(t=[+t,+t]),t}(t.getItemVisual(e,"symbolSize")),s=i.createSymbol(r,-1,-1,2,2,o),l=t.getItemVisual(e,"symbolRotate")||0;return s.attr({style:{strokeNoScale:!0},z2:100,scale:[a[0]/2,a[1]/2],rotation:l*Math.PI/180||0}),s}}function c(n,i,r,o,a,s){r.removeAll();for(var l=0;l<i.length-1;l++){var u=h(o,a);u&&(u.__dimIdx=l,n[l]?(u.attr("position",n[l]),e[s?"initProps":"updateProps"](u,{position:i[l]},t,a)):u.attr("position",i[l]),r.add(u))}}function d(t){return n.map(t,(function(t){return[a.cx,a.cy]}))}l.diff(u).add((function(n){var i=l.getItemLayout(n);if(i){var r=new e.Polygon,o=new e.Polyline,a={shape:{points:i}};r.shape.points=d(i),o.shape.points=d(i),e.initProps(r,a,t,n),e.initProps(o,a,t,n);var s=new e.Group,u=new e.Group;s.add(o),s.add(r),s.add(u),c(o.shape.points,i,u,l,n,!0),l.setItemGraphicEl(n,s)}})).update((function(n,i){var r=u.getItemGraphicEl(i),o=r.childAt(0),a=r.childAt(1),s=r.childAt(2),h={shape:{points:l.getItemLayout(n)}};h.shape.points&&(c(o.shape.points,h.shape.points,s,l,n,!1),e.updateProps(o,h,t),e.updateProps(a,h,t),l.setItemGraphicEl(n,r))})).remove((function(t){s.remove(u.getItemGraphicEl(t))})).execute(),l.eachItemGraphicEl((function(t,i){var r=l.getItemModel(i),o=t.childAt(0),a=t.childAt(1),u=t.childAt(2),h=l.getItemVisual(i,"color");s.add(t),o.useStyle(n.defaults(r.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:h})),o.hoverStyle=r.getModel("emphasis.lineStyle").getLineStyle();var c=r.getModel("areaStyle"),d=r.getModel("emphasis.areaStyle"),p=c.isEmpty()&&c.parentModel.isEmpty(),f=d.isEmpty()&&d.parentModel.isEmpty();f=f&&p,a.ignore=p,a.useStyle(n.defaults(c.getAreaStyle(),{fill:h,opacity:.7})),a.hoverStyle=d.getAreaStyle();var g=r.getModel("itemStyle").getItemStyle(["color"]),v=r.getModel("emphasis.itemStyle").getItemStyle(),m=r.getModel("label"),y=r.getModel("emphasis.label");u.eachChild((function(t){t.setStyle(g),t.hoverStyle=n.clone(v);var r=l.get(l.dimensions[t.__dimIdx],i);(null==r||isNaN(r))&&(r=""),e.setLabelStyle(t.style,t.hoverStyle,m,y,{labelFetcher:l.hostModel,labelDataIndex:i,labelDimIndex:t.__dimIdx,defaultText:r,autoColor:h,isRectText:!0})})),t.highDownOnUpdate=function(t,e){a.attr("ignore","emphasis"===e?f:p)},e.setHoverStyle(t)})),this._data=l},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});return MQ=r}function EQ(){if(LQ)return kQ;LQ=1;var t=NK();RQ(),function(){if(SQ)return wQ;SQ=1;var t=kj(),e=jJ(),n=hW(),i=EX().encodeHTML,r=KJ(),o=t.extend({type:"series.radar",dependencies:["radar"],init:function(t){o.superApply(this,"init",arguments),this.legendVisualProvider=new r(n.bind(this.getData,this),n.bind(this.getRawData,this))},getInitialData:function(t,n){return e(this,{generateCoord:"indicator_",generateCoordCount:1/0})},formatTooltip:function(t,e,r,o){var a=this.getData(),s=this.coordinateSystem.getIndicatorAxes(),l=this.getData().getName(t),u="html"===o?"<br/>":"\n";return i(""===l?this.name:l)+u+n.map(s,(function(e,n){var r=a.get(a.mapDimension(e.dim),t);return i(e.name+" : "+r)})).join(u)},getTooltipPosition:function(t){if(null!=t)for(var e=this.getData(),i=this.coordinateSystem,r=e.getValues(n.map(i.dimensions,(function(t){return e.mapDimension(t)})),t,!0),o=0,a=r.length;o<a;o++)if(!isNaN(r[o])){var s=i.getIndicatorAxes();return i.coordToPoint(s[o].dataToCoord(r[o]),o)}},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}});wQ=o}(),NQ();var e=JJ(),n=f$(),i=function(){if(CQ)return TQ;CQ=1;var t=hW();function e(t){return!isNaN(t[0])&&!isNaN(t[1])}function n(t){return[t.cx,t.cy]}return TQ=function(i){i.eachSeriesByType("radar",(function(i){var r=i.getData(),o=[],a=i.coordinateSystem;if(a){var s=a.getIndicatorAxes();t.each(s,(function(t,i){r.each(r.mapDimension(s[i].dim),(function(t,r){o[r]=o[r]||[];var s=a.dataToPoint(t,i);o[r][i]=e(s)?s:n(a)}))})),r.each((function(i){var s=t.find(o[i],(function(t){return e(t)}))||n(a);o[i].push(s.slice()),r.setItemLayout(i,o[i])}))}}))}}(),r=eQ(),o=function(){if(DQ)return AQ;DQ=1;var t=hW();return AQ=function(e){var n=e.polar;if(n){t.isArray(n)||(n=[n]);var i=[];t.each(n,(function(n,r){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),e.radar=e.radar||[],t.isArray(e.radar)||(e.radar=[e.radar]),e.radar.push(n)):i.push(n)})),e.polar=i}t.each(e.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}}();return t.registerVisual(e("radar")),t.registerVisual(n("radar","circle")),t.registerLayout(i),t.registerProcessor(r("radar")),t.registerPreprocessor(o),kQ}var zQ,VQ,BQ,GQ,FQ,HQ,WQ,UQ,YQ,ZQ,XQ,jQ,qQ,KQ,$Q,JQ,QQ={};function t0(){if(ZQ)return YQ;ZQ=1;var t=hW().each,e=IK(),n=mY().makeInner,i=function(){if(VQ)return zQ;VQ=1;for(var t=hW(),e=MK(),n=[126,25],i=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],r=0;r<i.length;r++)for(var o=0;o<i[r].length;o++)i[r][o][0]/=10.5,i[r][o][1]/=-14,i[r][o][0]+=n[0],i[r][o][1]+=n[1];return zQ=function(r,o){"china"===r&&o.push(new e("南海诸岛",t.map(i,(function(t){return{type:"polygon",exterior:t}})),n))}}(),r=function(){if(GQ)return BQ;GQ=1;var t={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};return BQ=function(e,n){if("china"===e){var i=t[n.name];if(i){var r=n.center;r[0]+=i[0]/10.5,r[1]+=-i[1]/14}}}}(),o=function(){if(HQ)return FQ;HQ=1;var t={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};return FQ=function(e,n){if("world"===e){var i=t[n.name];if(i){var r=n.center;r[0]=i[0],r[1]=i[1]}}}}(),a=function(){if(UQ)return WQ;UQ=1;var t=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];return WQ=function(e,n){"china"===e&&"台湾"===n.name&&n.geometries.push({type:"polygon",exterior:t[0]})}}(),s=n();function l(t){for(var e,n=0;n<t.length;n++){var i=t[n].getBoundingRect();(e=e||i.clone()).union(i)}return e}return YQ={load:function(n,u,h){var c=s(u).parsed;if(c)return c;var d,p=u.specialAreas||{},f=u.geoJSON;try{d=f?e(f,h):[]}catch(g){throw new Error("Invalid geoJson format\n"+g.message)}return i(n,d),t(d,(function(t){var e=t.name;r(n,t),o(n,t),a(n,t);var i=p[e];i&&t.transformTo(i.left,i.top,i.width,i.height)})),s(u).parsed={regions:d,boundingRect:l(d)}}}}function e0(){if(KQ)return qQ;KQ=1,tW().__DEV__;var t=hW(),e=t.each,n=t.createHashMap,i=hq(),r=t0(),o=function(){if(jQ)return XQ;jQ=1;var t=uq(),e=t.parseSVG,n=t.makeViewBoxTransform,i=bU(),r=cX(),o=hW(),a=o.assert,s=o.createHashMap,l=_U(),u=(0,mY().makeInner)();function h(t,o){var s,u,h=t.svgXML;try{u=(s=h&&e(h,{ignoreViewBox:!0,ignoreRootClip:!0})||{}).root,a(null!=u)}catch(v){throw new Error("Invalid svg format\n"+v.message)}var c=s.width,d=s.height,p=s.viewBoxRect;if(o||(o=null==c||null==d?u.getBoundingRect():new l(0,0,0,0),null!=c&&(o.width=c),null!=d&&(o.height=d)),p){var f=n(p,o.width,o.height),g=u;(u=new i).add(g),g.scale=f.scale,g.position=f.position}return u.setClipPath(new r({shape:o.plain()})),{root:u,boundingRect:o}}return XQ={load:function(t,e){var n=u(e).originRoot;if(n)return{root:n,boundingRect:u(e).boundingRect};var i=h(e);return u(e).originRoot=i.root,u(e).boundingRect=i.boundingRect,i},makeGraphic:function(t,e,n){var i=u(e),r=i.rootMap||(i.rootMap=s()),o=r.get(n);if(o)return o;var a=i.originRoot,l=i.boundingRect;return i.originRootHostKey?o=h(e,l).root:(i.originRootHostKey=n,o=a),r.set(n,o)},removeGraphic:function(t,e,n){var i=u(e),r=i.rootMap;r&&r.removeKey(n),n===i.originRootHostKey&&(i.originRootHostKey=null)}}}(),a=_U(),s={geoJSON:r,svg:o},l={load:function(t,i,r){var o,l=[],u=n(),c=n(),d=h(t);return e(d,(function(n){var a=s[n.type].load(t,n,r);e(a.regions,(function(t){var e=t.name;i&&i.hasOwnProperty(e)&&(t=t.cloneShallow(e=i[e])),l.push(t),u.set(e,t),c.set(e,t.center)}));var h=a.boundingRect;h&&(o?o.union(h):o=h.clone())})),{regions:l,regionsMap:u,nameCoordMap:c,boundingRect:o||new a(0,0,0,0)}},makeGraphic:u("makeGraphic"),removeGraphic:u("removeGraphic")};function u(t){return function(n,i){var r=h(n),o=[];return e(r,(function(e){var r=s[e.type][t];r&&o.push(r(n,e,i))})),o}}function h(t){return i.retrieveMap(t)||[]}return qQ=l}var n0,i0,r0,o0={};function a0(){if(n0)return o0;n0=1;var t=NK(),e="\0_ec_interaction_mutex";function n(t){return t[e]||(t[e]={})}return t.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},(function(){})),o0.take=function(t,e,i){n(t)[e]=i},o0.release=function(t,e,i){var r=n(t);r[e]===i&&(r[e]=null)},o0.isTaken=function(t,e){return!!n(t)[e]},o0}function s0(){if(r0)return i0;r0=1;var t=hW(),e=yW(),n=LW(),i=a0();function r(n){this.pointerChecker,this._zr=n,this._opt={};var i=t.bind,r=i(o,this),h=i(a,this),c=i(s,this),d=i(l,this),p=i(u,this);e.call(this),this.setPointerChecker=function(t){this.pointerChecker=t},this.enable=function(e,i){this.disable(),this._opt=t.defaults(t.clone(i)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(n.on("mousedown",r),n.on("mousemove",h),n.on("mouseup",c)),!0!==e&&"scale"!==e&&"zoom"!==e||(n.on("mousewheel",d),n.on("pinch",p))},this.disable=function(){n.off("mousedown",r),n.off("mousemove",h),n.off("mouseup",c),n.off("mousewheel",d),n.off("pinch",p)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function o(t){if(!(n.isMiddleOrRightButtonOnMouseUpDown(t)||t.target&&t.target.draggable)){var e=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,i)&&(this._x=e,this._y=i,this._dragging=!0)}}function a(t){if(this._dragging&&d("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!i.isTaken(this._zr,"globalPan")){var e=t.offsetX,r=t.offsetY,o=this._x,a=this._y,s=e-o,l=r-a;this._x=e,this._y=r,this._opt.preventDefaultMouseMove&&n.stop(t.event),c(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:o,oldY:a,newX:e,newY:r})}}function s(t){n.isMiddleOrRightButtonOnMouseUpDown(t)||(this._dragging=!1)}function l(t){var e=d("zoomOnMouseWheel",t,this._opt),n=d("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,r=Math.abs(i),o=t.offsetX,a=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1;h(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?s:1/s,originX:o,originY:a})}if(n){var l=Math.abs(i);h(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a})}}}function u(t){i.isTaken(this._zr,"globalPan")||h(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY})}function h(t,e,i,r,o){t.pointerChecker&&t.pointerChecker(r,o.originX,o.originY)&&(n.stop(r.event),c(t,e,i,r,o))}function c(e,n,i,r,o){o.isAvailableBehavior=t.bind(d,null,i,r),e.trigger(n,o)}function d(e,n,i){var r=i[e];return!e||r&&(!t.isString(r)||n.event[r+"Key"])}return t.mixin(r,e),i0=r}var l0,u0={};function h0(){if(l0)return u0;return l0=1,u0.updateViewOnPan=function(t,e,n){var i=t.target,r=i.position;r[0]+=e,r[1]+=n,i.dirty()},u0.updateViewOnZoom=function(t,e,n,i){var r=t.target,o=t.zoomLimit,a=r.position,s=r.scale,l=t.zoom=t.zoom||1;if(l*=e,o){var u=o.min||0,h=o.max||1/0;l=Math.max(Math.min(h,l),u)}var c=l/t.zoom;t.zoom=l,a[0]-=(n-a[0])*(c-1),a[1]-=(i-a[1])*(c-1),s[0]*=c,s[1]*=c,r.dirty()},u0}var c0,d0,p0,f0,g0,v0={};function m0(){if(c0)return v0;c0=1;var t={axisPointer:1,tooltip:1,brush:1};return v0.onIrrelevantElement=function(e,n,i){var r=n.getComponentByElement(e.topTarget),o=r&&r.coordinateSystem;return r&&r!==i&&!t[r.mainType]&&o&&o.model!==i},v0}function y0(){if(p0)return d0;p0=1;var t=hW(),e=s0(),n=h0(),i=m0().onIrrelevantElement,r=vX(),o=e0(),a=_X().getUID,s=FW();function l(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function u(e,n){n.eachChild((function(n){t.each(n.__regions,(function(t){n.trigger(e.isSelected(t.name)?"emphasis":"normal")}))}))}function h(t,n){var i=new r.Group;this.uid=a("ec_map_draw"),this._controller=new e(t.getZr()),this._controllerHost={target:n?i:null},this.group=i,this._updateGroup=n,this._mouseDownFlag,this._mapName,this._initialized,i.add(this._regionsGroup=new r.Group),i.add(this._backgroundGroup=new r.Group)}return h.prototype={constructor:h,draw:function(e,n,i,o,a){var h="geo"===e.mainType,c=e.getData&&e.getData();h&&n.eachComponent({mainType:"series",subType:"map"},(function(t){c||t.getHostGeoModel()!==e||(c=t.getData())}));var d=e.coordinateSystem;this._updateBackground(d);var p,f=this._regionsGroup,g=this.group,v=d.getTransformInfo(),m=!f.childAt(0)||a;if(m)g.transform=v.roamTransform,g.decomposeTransform(),g.dirty();else{var y=new s;y.transform=v.roamTransform,y.decomposeTransform();var x={scale:y.scale,position:y.position};p=y.scale,r.updateProps(g,x,e)}var _=v.rawScale,b=v.rawPosition;f.removeAll();var w=["itemStyle"],S=["emphasis","itemStyle"],M=["label"],I=["emphasis","label"],T=t.createHashMap();t.each(d.regions,(function(n){var i=T.get(n.name)||T.set(n.name,new r.Group),o=new r.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});i.add(o);var a,s=(z=e.getRegionModel(n.name)||e).getModel(w),u=z.getModel(S),d=l(s),v=l(u),y=z.getModel(M),x=z.getModel(I);if(c){a=c.indexOfName(n.name);var C=c.getItemVisual(a,"color",!0);C&&(d.fill=C)}var A=function(t){return[t[0]*_[0]+b[0],t[1]*_[1]+b[1]]};t.each(n.geometries,(function(t){if("polygon"===t.type){for(var e=[],n=0;n<t.exterior.length;++n)e.push(A(t.exterior[n]));o.shape.paths.push(new r.Polygon({segmentIgnoreThreshold:1,shape:{points:e}}));for(n=0;n<(t.interiors?t.interiors.length:0);++n){for(var i=t.interiors[n],a=(e=[],0);a<i.length;++a)e.push(A(i[a]));o.shape.paths.push(new r.Polygon({segmentIgnoreThreshold:1,shape:{points:e}}))}}})),o.setStyle(d),o.style.strokeNoScale=!0,o.culling=!0;var D=y.get("show"),L=x.get("show"),k=c&&isNaN(c.get(c.mapDimension("value"),a)),P=c&&c.getItemLayout(a);if(h||k&&(D||L)||P&&P.showLabel){var O,R=h?n.name:a;(!c||a>=0)&&(O=e);var N=new r.Text({position:A(n.center.slice()),scale:[1/g.scale[0],1/g.scale[1]],z2:10,silent:!0});if(r.setLabelStyle(N.style,N.hoverStyle={},y,x,{labelFetcher:O,labelDataIndex:R,defaultText:n.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!m){var E=[1/p[0],1/p[1]];r.updateProps(N,{scale:E},e)}i.add(N)}if(c)c.setItemGraphicEl(a,i);else{var z=e.getRegionModel(n.name);o.eventData={componentType:"geo",componentIndex:e.componentIndex,geoIndex:e.componentIndex,name:n.name,region:z&&z.option||{}}}(i.__regions||(i.__regions=[])).push(n),i.highDownSilentOnTouch=!!e.get("selectedMode"),r.setHoverStyle(i,v),f.add(i)})),this._updateController(e,n,i),function(e,n,i,r,o){i.off("click"),i.off("mousedown"),n.get("selectedMode")&&(i.on("mousedown",(function(){e._mouseDownFlag=!0})),i.on("click",(function(a){if(e._mouseDownFlag){e._mouseDownFlag=!1;for(var s=a.target;!s.__regions;)s=s.parent;if(s){var l={type:("geo"===n.mainType?"geo":"map")+"ToggleSelect",batch:t.map(s.__regions,(function(t){return{name:t.name,from:o.uid}}))};l[n.mainType+"Id"]=n.id,r.dispatchAction(l),u(n,i)}}})))}(this,e,f,i,o),u(e,f)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&o.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(e){var n=e.map;this._mapName!==n&&t.each(o.makeGraphic(n,this.uid),(function(t){this._backgroundGroup.add(t)}),this),this._mapName=n},_updateController:function(e,r,o){var a=e.coordinateSystem,s=this._controller,l=this._controllerHost;l.zoomLimit=e.get("scaleLimit"),l.zoom=a.getZoom(),s.enable(e.get("roam")||!1);var u=e.mainType;function h(){var t={type:"geoRoam",componentType:u};return t[u+"Id"]=e.id,t}s.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,n.updateViewOnPan(l,e.dx,e.dy),o.dispatchAction(t.extend(h(),{dx:e.dx,dy:e.dy}))}),this),s.off("zoom").on("zoom",(function(e){if(this._mouseDownFlag=!1,n.updateViewOnZoom(l,e.scale,e.originX,e.originY),o.dispatchAction(t.extend(h(),{zoom:e.scale,originX:e.originX,originY:e.originY})),this._updateGroup){var i=this.group.scale;this._regionsGroup.traverse((function(t){"text"===t.type&&t.attr("scale",[1/i[0],1/i[1]])}))}}),this),s.setPointerChecker((function(t,n,r){return a.getViewRectAfterRoam().contain(n,r)&&!i(t,o,e)}))}},d0=h}var x0,_0,b0,w0,S0,M0,I0,T0,C0,A0,D0,L0,k0,P0,O0,R0,N0,E0={},z0={};function V0(){if(x0)return z0;return x0=1,z0.updateCenterAndZoom=function(t,e,n){var i=t.getZoom(),r=t.getCenter(),o=e.zoom,a=t.dataToPoint(r);if(null!=e.dx&&null!=e.dy){a[0]-=e.dx,a[1]-=e.dy;r=t.pointToData(a);t.setCenter(r)}if(null!=o){if(n){var s=n.min||0,l=n.max||1/0;o=Math.max(Math.min(i*o,l),s)/i}t.scale[0]*=o,t.scale[1]*=o;var u=t.position,h=(e.originX-u[0])*(o-1),c=(e.originY-u[1])*(o-1);u[0]-=h,u[1]-=c,t.updateTransform();r=t.pointToData(a);t.setCenter(r),t.setZoom(o*i)}return{center:t.getCenter(),zoom:t.getZoom()}},z0}function B0(){if(_0)return E0;_0=1;var t=NK(),e=hW(),n=V0().updateCenterAndZoom;return t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,i){var r=t.componentType||"series";i.eachComponent({mainType:r,query:t},(function(i){var o=i.coordinateSystem;if("geo"===o.type){var a=n(o,t,i.get("scaleLimit"));i.setCenter&&i.setCenter(a.center),i.setZoom&&i.setZoom(a.zoom),"series"===r&&e.each(i.seriesGroup,(function(t){t.setCenter(a.center),t.setZoom(a.zoom)}))}}))})),E0}function G0(){if(w0)return b0;w0=1;var t=hW(),e=mW(),n=GW(),i=_U(),r=FW(),o=e.applyTransform;function a(){r.call(this)}function s(t){this.name=t,this.zoomLimit,r.call(this),this._roamTransformable=new a,this._rawTransformable=new a,this._center,this._zoom}function l(t,e,n,i){var r=n.seriesModel,o=r?r.coordinateSystem:null;return o===this?o[t](i):null}return t.mixin(a,r),s.prototype={constructor:s,type:"view",dimensions:["x","y"],setBoundingRect:function(t,e,n,r){return this._rect=new i(t,e,n,r),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,e,n,r){this.transformTo(t,e,n,r),this._viewRect=new i(t,e,n,r)},transformTo:function(t,e,n,r){var o=this.getBoundingRect(),a=this._rawTransformable;a.transform=o.calculateTransform(new i(t,e,n,r)),a.decomposeTransform(),this._updateTransform()},setCenter:function(t){t&&(this._center=t,this._updateCenterAndZoom())},setZoom:function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var t=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,i=this.getDefaultCenter(),r=this.getCenter(),o=this.getZoom();r=e.applyTransform([],r,t),i=e.applyTransform([],i,t),n.origin=r,n.position=[i[0]-r[0],i[1]-r[1]],n.scale=[o,o],this._updateTransform()},_updateTransform:function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),n.copy(this.transform||(this.transform=[]),e.transform||n.create()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],n.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var e=this._roamTransformable.transform,i=this._rawTransformable;return{roamTransform:e?t.slice(e):n.create(),rawScale:t.slice(i.scale),rawPosition:t.slice(i.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t,n,i){var r=n?this._rawTransform:this.transform;return i=i||[],r?o(i,t,r):e.copy(i,t)},pointToData:function(t){var e=this.invTransform;return e?o([],t,e):[t[0],t[1]]},convertToPixel:t.curry(l,"dataToPoint"),convertFromPixel:t.curry(l,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},t.mixin(s,r),b0=s}function F0(){if(T0)return I0;T0=1,tW().__DEV__;var t=NK(),e=hW(),n=function(){if(M0)return S0;M0=1;var t=hW(),e=_U(),n=G0(),i=e0();function r(t,e,r,o){n.call(this,t),this.map=e;var a=i.load(e,r);this._nameCoordMap=a.nameCoordMap,this._regionsMap=a.regionsMap,this._invertLongitute=null==o||o,this.regions=a.regions,this._rect=a.boundingRect}function o(t,e,n,i){var r=n.geoModel,o=n.seriesModel,a=r?r.coordinateSystem:o?o.coordinateSystem||(o.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return a===this?a[t](i):null}return r.prototype={constructor:r,type:"geo",dimensions:["lng","lat"],containCoord:function(t){for(var e=this.regions,n=0;n<e.length;n++)if(e[n].contain(t))return!0;return!1},transformTo:function(t,n,i,r){var o=this.getBoundingRect(),a=this._invertLongitute;o=o.clone(),a&&(o.y=-o.y-o.height);var s=this._rawTransformable;if(s.transform=o.calculateTransform(new e(t,n,i,r)),s.decomposeTransform(),a){var l=s.scale;l[1]=-l[1]}s.updateTransform(),this._updateTransform()},getRegion:function(t){return this._regionsMap.get(t)},getRegionByCoord:function(t){for(var e=this.regions,n=0;n<e.length;n++)if(e[n].contain(t))return e[n]},addGeoCoord:function(t,e){this._nameCoordMap.set(t,e)},getGeoCoord:function(t){return this._nameCoordMap.get(t)},getBoundingRect:function(){return this._rect},dataToPoint:function(t,e,i){if("string"==typeof t&&(t=this.getGeoCoord(t)),t)return n.prototype.dataToPoint.call(this,t,e,i)},convertToPixel:t.curry(o,"dataToPoint"),convertFromPixel:t.curry(o,"pointToData")},t.mixin(r,n),S0=r}(),i=zX(),r=MX(),o=e0(),a=hq();function s(t,e){var n=t.get("boundingCoords");if(null!=n){var o=n[0],a=n[1];isNaN(o[0])||isNaN(o[1])||isNaN(a[0])||isNaN(a[1])||this.setBoundingRect(o[0],o[1],a[0]-o[0],a[1]-o[1])}var s,l=this.getBoundingRect(),u=t.get("layoutCenter"),h=t.get("layoutSize"),c=e.getWidth(),d=e.getHeight(),p=l.width/l.height*this.aspectScale,f=!1;if(u&&h&&(u=[r.parsePercent(u[0],c),r.parsePercent(u[1],d)],h=r.parsePercent(h,Math.min(c,d)),isNaN(u[0])||isNaN(u[1])||isNaN(h)||(f=!0)),f){var g={};p>1?(g.width=h,g.height=h/p):(g.height=h,g.width=h*p),g.y=u[1]-g.height/2,g.x=u[0]-g.width/2}else(s=t.getBoxLayoutParams()).aspect=p,g=i.getLayoutRect(s,{width:c,height:d});this.setViewRect(g.x,g.y,g.width,g.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function l(t,n){e.each(n.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}var u={dimensions:n.prototype.dimensions,create:function(t,i){var r=[];t.eachComponent("geo",(function(t,e){var o=t.get("map"),u=t.get("aspectScale"),h=!0,c=a.retrieveMap(o);c&&c[0]&&"svg"===c[0].type?(null==u&&(u=1),h=!1):null==u&&(u=.75);var d=new n(o+e,o,t.get("nameMap"),h);d.aspectScale=u,d.zoomLimit=t.get("scaleLimit"),r.push(d),l(d,t),t.coordinateSystem=d,d.model=t,d.resize=s,d.resize(t,i)})),t.eachSeries((function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=r[e]}}));var o={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();o[e]=o[e]||[],o[e].push(t)}})),e.each(o,(function(t,o){var a=e.map(t,(function(t){return t.get("nameMap")})),u=new n(o,o,e.mergeAll(a));u.zoomLimit=e.retrieve.apply(null,e.map(t,(function(t){return t.get("scaleLimit")}))),r.push(u),u.resize=s,u.aspectScale=t[0].get("aspectScale"),u.resize(t[0],i),e.each(t,(function(t){t.coordinateSystem=u,l(u,t)}))})),r},getFilledRegions:function(t,n,i){for(var r=(t||[]).slice(),a=e.createHashMap(),s=0;s<r.length;s++)a.set(r[s].name,r[s]);var l=o.load(n,i);return e.each(l.regions,(function(t){var e=t.name;!a.get(e)&&r.push({name:e})})),r}};return t.registerCoordinateSystem("geo",u),I0=u}function H0(){if(P0)return k0;P0=1;var t=hW();return k0=function(e){var n={};e.eachSeriesByType("map",(function(t){var e=t.getHostGeoModel(),i=e?"o"+e.id:"i"+t.getMapType();(n[i]=n[i]||[]).push(t)})),t.each(n,(function(e,n){for(var i,r,o,a=(i=t.map(e,(function(t){return t.getData()})),r=e[0].get("mapValueCalculation"),o={},t.each(i,(function(t){t.each(t.mapDimension("value"),(function(e,n){var i="ec-"+t.getName(n);o[i]=o[i]||[],isNaN(e)||o[i].push(e)}))})),i[0].map(i[0].mapDimension("value"),(function(t,e){for(var n="ec-"+i[0].getName(e),a=0,s=1/0,l=-1/0,u=o[n].length,h=0;h<u;h++)s=Math.min(s,o[n][h]),l=Math.max(l,o[n][h]),a+=o[n][h];return 0===u?NaN:"min"===r?s:"max"===r?l:"average"===r?a/u:a}))),s=0;s<e.length;s++)e[s].originalData=e[s].getData();for(s=0;s<e.length;s++)e[s].seriesGroup=e,e[s].needsDrawMap=0===s&&!e[s].getHostGeoModel(),e[s].setData(a.cloneShallow()),e[s].mainSeries=e[0]}))},k0}function W0(){if(N0)return QQ;N0=1;var t=NK();!function(){if(JQ)return $Q;JQ=1;var t=hW(),e=jJ(),n=kj(),i=EX(),r=i.encodeHTML,o=i.addCommas,a=qJ(),s=yj().retrieveRawAttr,l=e0(),u=lj().makeSeriesEncodeForNameBased,h=n.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(n){for(var i=e(this,{coordDimensions:["value"],encodeDefaulter:t.curry(u,this)}),r=i.mapDimension("value"),o=t.createHashMap(),a=[],h=[],c=0,d=i.count();c<d;c++){var p=i.getName(c);o.set(p,!0),a.push({name:p,value:i.get(r,c),selected:s(i,c,"selected")})}var f=l.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return t.each(f.regions,(function(t){var e=t.name;o.get(e)||(a.push({name:e}),h.push(e))})),this.updateSelectedMap(a),i.appendValues([],h),i},getHostGeoModel:function(){var t=this.option.geoIndex;return null!=t?this.dependentModels.geo[t]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},getRegionModel:function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},formatTooltip:function(t,e,n,i){for(var a=this.getData(),s=o(this.getRawValue(t)),l=a.getName(t),u=this.seriesGroup,h=[],c=0;c<u.length;c++){var d=u[c].originalData.indexOfName(l),p=a.mapDimension("value");isNaN(u[c].originalData.get(p,d))||h.push(r(u[c].name))}var f="html"===i?"<br/>":"\n";return h.join(", ")+f+r(l+" : "+s)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});t.mixin(h,a),$Q=h}(),function(){if(g0)return f0;g0=1;var t=NK(),e=hW(),n=vX(),i=y0(),r="__seriesMapHighDown",o="__seriesMapCallKey",a=t.extendChartView({type:"map",render:function(t,e,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===t.id)(a=this._mapDraw)&&o.add(a.group);else if(t.needsDrawMap){var a=this._mapDraw||new i(n,!0);o.add(a.group),a.draw(t,e,n,this,r),this._mapDraw=a}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(t,i,a){var u=t.originalData,h=this.group;u.each(u.mapDimension("value"),(function(i,a){if(!isNaN(i)){var c=u.getItemLayout(a);if(c&&c.point){var d=c.point,p=c.offset,f=new n.Circle({style:{fill:t.getData().getVisual("color")},shape:{cx:d[0]+9*p,cy:d[1],r:3},silent:!0,z2:8+(p?0:n.Z2_EMPHASIS_LIFT+1)});if(!p){var g=t.mainSeries.getData(),v=u.getName(a),m=g.indexOfName(v),y=u.getItemModel(a),x=y.getModel("label"),_=y.getModel("emphasis.label"),b=g.getItemGraphicEl(m),w=e.retrieve2(t.getFormattedLabel(m,"normal"),v),S=e.retrieve2(t.getFormattedLabel(m,"emphasis"),w),M=b[r],I=Math.random();if(!M){M=b[r]={};var T=e.curry(s,!0),C=e.curry(s,!1);b.on("mouseover",T).on("mouseout",C).on("emphasis",T).on("normal",C)}b[o]=I,e.extend(M,{recordVersion:I,circle:f,labelModel:x,hoverLabelModel:_,emphasisText:S,normalText:w}),l(M,!1)}h.add(f)}}}))}});function s(t){var e=this[r];e&&e.recordVersion===this[o]&&l(e,t)}function l(t,e){var i=t.circle,r=t.labelModel,o=t.hoverLabelModel,a=t.emphasisText,s=t.normalText;e?(i.style.extendFrom(n.setTextStyle({},o,{text:o.get("show")?a:null},{isRectText:!0,useInsideStyle:!1},!0)),i.__mapOriginalZ2=i.z2,i.z2+=n.Z2_EMPHASIS_LIFT):(n.setTextStyle(i.style,r,{text:r.get("show")?s:null,textPosition:r.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),i.dirty(!1),null!=i.__mapOriginalZ2&&(i.z2=i.__mapOriginalZ2,i.__mapOriginalZ2=null))}f0=a}(),B0(),F0();var e=function(){if(A0)return C0;A0=1;var t=hW();return C0=function(e){var n={};e.eachSeriesByType("map",(function(i){var r=i.getMapType();if(!i.getHostGeoModel()&&!n[r]){var o={};t.each(i.seriesGroup,(function(t){var n=t.coordinateSystem,i=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&i.each(i.mapDimension("value"),(function(t,e){var r=i.getName(e),a=n.getRegion(r);if(a&&!isNaN(t)){var s=o[r]||0,l=n.dataToPoint(a.center);o[r]=s+1,i.setItemLayout(e,{point:l,offset:s})}}))}));var a=i.getData();a.each((function(t){var e=a.getName(t),n=a.getItemLayout(t)||{};n.showLabel=!o[e],a.setItemLayout(t,n)})),n[r]=!0}}))}}(),n=L0?D0:(L0=1,D0=function(t){t.eachSeriesByType("map",(function(t){var e=t.get("color"),n=t.getModel("itemStyle"),i=n.get("areaColor"),r=n.get("color")||e[t.seriesIndex%e.length];t.getData().setVisual({areaColor:i,color:r})}))}),i=H0(),r=function(){if(R0)return O0;R0=1;var t=hW();return O0=function(e){t.each(e.series,(function(e){e&&"map"===e.type&&(e.map=e.map||e.mapType,t.defaults(e,e.mapLocation))}))}}(),o=$J();return t.registerLayout(e),t.registerVisual(n),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,i),t.registerPreprocessor(r),o("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}]),QQ}var U0,Y0,Z0,X0,j0,q0,K0={};function $0(){if(Y0)return U0;Y0=1;var t=hW(),e=t.each,n="\0__link_datas",i="\0__link_mainData";function r(e,r){if((a=this)[i]===a){var o=t.extend({},this[n]);o[this.dataType]=r,l(r,o,e)}else u(r,this.dataType,this[i],e);var a;return r}function o(t,e){return t.struct&&t.struct.update(this),e}function a(t,i){return e(i[n],(function(e,n){e!==i&&u(e.cloneShallow(),n,i,t)})),i}function s(t){var e=this[i];return null==t||null==e?e:e[n][t]}function l(t,i,r){t[n]={},e(i,(function(e,n){u(e,n,t,r)}))}function u(t,e,r,o){r[n][e]=t,t[i]=r,t.dataType=e,o.struct&&(t[o.structAttr]=o.struct,o.struct[o.datasAttr[e]]=t),t.getLinkedData=s}return U0=function(n){var i=n.mainData,s=n.datas;s||(s={main:i},n.datasAttr={main:"data"}),n.datas=n.mainData=null,l(i,s,n),e(s,(function(o){e(i.TRANSFERABLE_METHODS,(function(e){o.wrapMethod(e,t.curry(r,n))}))})),i.wrapMethod("cloneShallow",t.curry(a,n)),e(i.CHANGABLE_METHODS,(function(e){i.wrapMethod(e,t.curry(o,n))})),t.assert(s[i.dataType]===i)}}function J0(){if(X0)return Z0;X0=1;var t=hW(),e=$0(),n=Aq(),i=Lq(),r=function(t,e){this.name=t||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=e};function o(t){this.root,this.data,this._nodes=[],this.hostModel=t}return r.prototype={constructor:r,isRemoved:function(){return this.dataIndex<0},eachNode:function(e,n,i){"function"==typeof e&&(i=n,n=e,e=null),e=e||{},t.isString(e)&&(e={order:e});var r,o=e.order||"preorder",a=this[e.attr||"children"];"preorder"===o&&(r=n.call(i,this));for(var s=0;!r&&s<a.length;s++)a[s].eachNode(e,n,i);"postorder"===o&&n.call(i,this)},updateDepthAndHeight:function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>e&&(e=i.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].getNodeById(t);if(r)return r}},contains:function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].contains(t);if(r)return r}},getAncestors:function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},getValue:function(t){var e=this.hostTree.data;return e.get(e.getDimension(t||"value"),this.dataIndex)},setLayout:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},setVisual:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},getVisual:function(t,e){return this.hostTree.data.getItemVisual(this.dataIndex,t,e)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},isDescendantOf:function(t){return t!==this&&t.isAncestorOf(this)}},o.prototype={constructor:o,type:"tree",eachNode:function(t,e,n){this.root.eachNode(t,e,n)},getNodeByDataIndex:function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n<i;n++)e[n].dataIndex=-1;for(n=0,i=t.count();n<i;n++)e[t.getRawIndex(n)].dataIndex=n},clearLayouts:function(){this.data.clearItemLayouts()}},o.createTree=function(a,s,l){var u=new o(s),h=[],c=1;!function e(n,i){var o=n.value;c=Math.max(c,t.isArray(o)?o.length:1),h.push(n);var a=new r(n.name,u);i?function(t,e){var n=e.children;if(t.parentNode===e)return;n.push(t),t.parentNode=e}(a,i):u.root=a,u._nodes.push(a);var s=n.children;if(s)for(var l=0;l<s.length;l++)e(s[l],a)}(a),u.root.updateDepthAndHeight(0);var d=i(h,{coordDimensions:["value"],dimensionsCount:c}),p=new n(d,s);return p.initData(h),l&&l(p),e({mainData:p,struct:u,structAttr:"tree"}),u.update(),u},Z0=o}var Q0,t1,e1,n1={};function i1(){if(Q0)return n1;Q0=1;var t=zX();function e(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function n(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function i(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function r(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function o(t,e){return t.parentNode===e.parentNode?1:2}return n1.init=function(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e,n,i=[t];e=i.pop();)if(n=e.children,e.isExpand&&n.length)for(var r=n.length-1;r>=0;r--){var o=n[r];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:r,thread:null},i.push(o)}},n1.firstWalk=function(t,o){var a=t.isExpand?t.children:[],s=t.parentNode.children,l=t.hierNode.i?s[t.hierNode.i-1]:null;if(a.length){!function(t){var e=t.children,n=e.length,i=0,r=0;for(;--n>=0;){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}(t);var u=(a[0].hierNode.prelim+a[a.length-1].hierNode.prelim)/2;l?(t.hierNode.prelim=l.hierNode.prelim+o(t,l),t.hierNode.modifier=t.hierNode.prelim-u):t.hierNode.prelim=u}else l&&(t.hierNode.prelim=l.hierNode.prelim+o(t,l));t.parentNode.hierNode.defaultAncestor=function(t,o,a,s){if(o){for(var l=t,u=t,h=u.parentNode.children[0],c=o,d=l.hierNode.modifier,p=u.hierNode.modifier,f=h.hierNode.modifier,g=c.hierNode.modifier;c=e(c),u=n(u),c&&u;){l=e(l),h=n(h),l.hierNode.ancestor=t;var v=c.hierNode.prelim+g-u.hierNode.prelim-p+s(c,u);v>0&&(r(i(c,t,a),t,v),p+=v,d+=v),g+=c.hierNode.modifier,p+=u.hierNode.modifier,d+=l.hierNode.modifier,f+=h.hierNode.modifier}c&&!e(l)&&(l.hierNode.thread=c,l.hierNode.modifier+=g-d),u&&!n(h)&&(h.hierNode.thread=u,h.hierNode.modifier+=p-f,a=t)}return a}(t,l,t.parentNode.hierNode.defaultAncestor||s[0],o)},n1.secondWalk=function(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier},n1.separation=function(t){return arguments.length?t:o},n1.radialCoordinate=function(t,e){var n={};return t-=Math.PI/2,n.x=e*Math.cos(t),n.y=e*Math.sin(t),n},n1.getViewRect=function(e,n){return t.getLayoutRect(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},n1}function r1(){if(e1)return t1;e1=1;var t=hW(),e=vX(),n=ZK(),i=i1().radialCoordinate,r=NK(),o=zY(),a=G0(),s=h0(),l=s0(),u=m0().onIrrelevantElement;tW().__DEV__;var h=MX().parsePercent,c=e.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,o=n[0],a=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=h(e.forkPosition,1),d=[];d[l]=r[l],d[u]=r[u]+(a[u]-r[u])*c,t.moveTo(r[0],r[1]),t.lineTo(d[0],d[1]),t.moveTo(o[0],o[1]),d[l]=o[l],t.lineTo(d[0],d[1]),d[l]=a[l],t.lineTo(d[0],d[1]),t.lineTo(a[0],a[1]);for(var p=1;p<i-1;p++){var f=n[p];t.moveTo(f[0],f[1]),d[l]=f[l],t.lineTo(d[0],d[1])}}}),d=r.extendChartView({type:"tree",init:function(t,n){this._oldTree,this._mainGroup=new e.Group,this._controller=new l(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(t,e,n,i){var r=t.getData(),o=t.layoutInfo,a=this._mainGroup,s=t.get("layout");"radial"===s?a.attr("position",[o.x+o.width/2,o.y+o.height/2]):a.attr("position",[o.x,o.y]),this._updateViewCoordSys(t,o,s),this._updateController(t,e,n);var l=this._data,u={expandAndCollapse:t.get("expandAndCollapse"),layout:s,edgeShape:t.get("edgeShape"),edgeForkPosition:t.get("edgeForkPosition"),orient:t.getOrient(),curvature:t.get("lineStyle.curveness"),symbolRotate:t.get("symbolRotate"),symbolOffset:t.get("symbolOffset"),hoverAnimation:t.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};r.diff(l).add((function(e){p(r,e)&&g(r,e,null,a,t,u)})).update((function(e,n){var i=l.getItemGraphicEl(n);p(r,e)?g(r,e,i,a,t,u):i&&v(l,n,i,a,t,u)})).remove((function(e){var n=l.getItemGraphicEl(e);n&&v(l,e,n,a,t,u)})).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===u.expandAndCollapse&&r.eachItemGraphicEl((function(e,i){e.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:i})}))})),this._data=r},_updateViewCoordSys:function(t){var e=t.getData(),n=[];e.each((function(t){var i=e.getItemLayout(t);!i||isNaN(i.x)||isNaN(i.y)||n.push([+i.x,+i.y])}));var i=[],r=[];o.fromPoints(n,i,r);var s=this._min,l=this._max;r[0]-i[0]==0&&(i[0]=s?s[0]:i[0]-1,r[0]=l?l[0]:r[0]+1),r[1]-i[1]==0&&(i[1]=s?s[1]:i[1]-1,r[1]=l?l[1]:r[1]+1);var u=t.coordinateSystem=new a;u.zoomLimit=t.get("scaleLimit"),u.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1]),u.setCenter(t.get("center")),u.setZoom(t.get("zoom")),this.group.attr({position:u.position,scale:u.scale}),this._viewCoordSys=u,this._min=i,this._max=r},_updateController:function(t,e,n){var i=this._controller,r=this._controllerHost,o=this.group;i.setPointerChecker((function(e,i,r){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(i,r)&&!u(e,n,t)})),i.enable(t.get("roam")),r.zoomLimit=t.get("scaleLimit"),r.zoom=t.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(e){s.updateViewOnPan(r,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})}),this).on("zoom",(function(e){s.updateViewOnZoom(r,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),this._updateNodeAndLinkScale(t)}),this)},_updateNodeAndLinkScale:function(t){var e=t.getData(),n=this._getNodeGlobalScale(t),i=[n,n];e.eachItemGraphicEl((function(t,e){t.attr("scale",i)}))},_getNodeGlobalScale:function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,i=e.scale,r=i&&i[0]||1;return((e.getZoom()-1)*n+1)/r},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function p(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)&&"none"!==t.getItemVisual(e,"symbol")}function f(t,e,n){return n.itemModel=e,n.itemStyle=e.getModel("itemStyle").getItemStyle(),n.hoverItemStyle=e.getModel("emphasis.itemStyle").getItemStyle(),n.lineStyle=e.getModel("lineStyle").getLineStyle(),n.labelModel=e.getModel("label"),n.hoverLabelModel=e.getModel("emphasis.label"),!1===t.isExpand&&0!==t.children.length?n.symbolInnerColor=n.itemStyle.fill:n.symbolInnerColor="#fff",n}function g(i,r,o,a,s,l){var u=!o,h=i.tree.getNodeByDataIndex(r),d=h.getModel(),p=(l=f(h,d,l),i.tree.root),g=h.parentNode===p?h:h.parentNode||h,v=i.getItemGraphicEl(g.dataIndex),y=g.getLayout(),x=v?{x:v.position[0],y:v.position[1],rawX:v.__radialOldRawX,rawY:v.__radialOldRawY}:y,_=h.getLayout();u?(o=new n(i,r,l)).attr("position",[x.x,x.y]):o.updateData(i,r,l),o.__radialOldRawX=o.__radialRawX,o.__radialOldRawY=o.__radialRawY,o.__radialRawX=_.rawX,o.__radialRawY=_.rawY,a.add(o),i.setItemGraphicEl(r,o),e.updateProps(o,{position:[_.x,_.y]},s);var b=o.getSymbolPath();if("radial"===l.layout){var w,S,M=p.children[0],I=M.getLayout(),T=M.children.length;if(_.x===I.x&&!0===h.isExpand){var C={};C.x=(M.children[0].getLayout().x+M.children[T-1].getLayout().x)/2,C.y=(M.children[0].getLayout().y+M.children[T-1].getLayout().y)/2,(w=Math.atan2(C.y-I.y,C.x-I.x))<0&&(w=2*Math.PI+w),(S=C.x<I.x)&&(w-=Math.PI)}else(w=Math.atan2(_.y-I.y,_.x-I.x))<0&&(w=2*Math.PI+w),0===h.children.length||0!==h.children.length&&!1===h.isExpand?(S=_.x<I.x)&&(w-=Math.PI):(S=_.x>I.x)||(w-=Math.PI);var A=S?"left":"right",D=l.labelModel.get("rotate"),L=D*(Math.PI/180);b.setStyle({textPosition:l.labelModel.get("position")||A,textRotation:null==D?-w:L,textOrigin:"center",verticalAlign:"middle"})}!function(n,i,r,o,a,s,l,u,h){var d=h.edgeShape,p=o.__edge;if("curve"===d)i.parentNode&&i.parentNode!==r&&(p||(p=o.__edge=new e.BezierCurve({shape:m(h,a,a),style:t.defaults({opacity:0,strokeNoScale:!0},h.lineStyle)})),e.updateProps(p,{shape:m(h,s,l),style:t.defaults({opacity:1},h.lineStyle)},n));else if("polyline"===d&&"orthogonal"===h.layout&&i!==r&&i.children&&0!==i.children.length&&!0===i.isExpand){for(var f=i.children,g=[],v=0;v<f.length;v++){var y=f[v].getLayout();g.push([y.x,y.y])}p||(p=o.__edge=new c({shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]],orient:h.orient,forkPosition:h.edgeForkPosition},style:t.defaults({opacity:0,strokeNoScale:!0},h.lineStyle)})),e.updateProps(p,{shape:{parentPoint:[l.x,l.y],childPoints:g},style:t.defaults({opacity:1},h.lineStyle)},n)}u.add(p)}(s,h,p,o,x,y,_,a,l)}function v(t,n,i,r,o,a){for(var s,l=t.tree.getNodeByDataIndex(n),u=t.tree.root,h=l.getModel(),c=(a=f(l,h,a),l.parentNode===u?l:l.parentNode||l),d=a.edgeShape;null==(s=c.getLayout());)c=c.parentNode===u?c:c.parentNode||c;e.updateProps(i,{position:[s.x+1,s.y+1]},o,(function(){r.remove(i),t.setItemGraphicEl(n,null)})),i.fadeOut(null,{keepLabel:!0});var p=t.getItemGraphicEl(c.dataIndex).__edge,g=i.__edge||(!1===c.isExpand||1===c.children.length?p:void 0);d=a.edgeShape;g&&("curve"===d?e.updateProps(g,{shape:m(a,s,s),style:{opacity:0}},o,(function(){r.remove(g)})):"polyline"===d&&"orthogonal"===a.layout&&e.updateProps(g,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},o,(function(){r.remove(g)})))}function m(t,e,n){var r,o,a,s,l,u,h,c,d=t.orient;if("radial"===t.layout){l=e.rawX,h=e.rawY,u=n.rawX,c=n.rawY;var p=i(l,h),f=i(l,h+(c-h)*t.curvature),g=i(u,c+(h-c)*t.curvature),v=i(u,c);return{x1:p.x,y1:p.y,x2:v.x,y2:v.y,cpx1:f.x,cpy1:f.y,cpx2:g.x,cpy2:g.y}}return l=e.x,h=e.y,u=n.x,c=n.y,"LR"!==d&&"RL"!==d||(r=l+(u-l)*t.curvature,o=h,a=u+(l-u)*t.curvature,s=c),"TB"!==d&&"BT"!==d||(r=l,o=h+(c-h)*t.curvature,a=u,s=c+(h-c)*t.curvature),{x1:l,y1:h,x2:u,y2:c,cpx1:r,cpy1:o,cpx2:a,cpy2:s}}return t1=d}var o1,a1={};var s1,l1,u1,h1,c1={};function d1(){if(u1)return l1;u1=1;var t=(s1||(s1=1,c1.eachAfter=function(t,e,n){for(var i,r=[t],o=[];i=r.pop();)if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s<a.length;s++)r.push(a[s])}for(;i=o.pop();)e(i,n)},c1.eachBefore=function(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}),c1),e=t.eachAfter,n=t.eachBefore,i=i1(),r=i.init,o=i.firstWalk,a=i.secondWalk,s=i.separation,l=i.radialCoordinate,u=i.getViewRect;return l1=function(t,i){t.eachSeriesByType("tree",(function(t){!function(t,i){var h=u(t,i);t.layoutInfo=h;var c=t.get("layout"),d=0,p=0,f=null;"radial"===c?(d=2*Math.PI,p=Math.min(h.height,h.width)/2,f=s((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(d=h.width,p=h.height,f=s());var g=t.getData().tree.root,v=g.children[0];if(v){r(g),e(v,o,f),g.hierNode.modifier=-v.hierNode.prelim,n(v,a);var m=v,y=v,x=v;n(v,(function(t){var e=t.getLayout().x;e<m.getLayout().x&&(m=t),e>y.getLayout().x&&(y=t),t.depth>x.depth&&(x=t)}));var _=m===y?1:f(m,y)/2,b=_-m.getLayout().x,w=0,S=0,M=0,I=0;if("radial"===c)w=d/(y.getLayout().x+_+b),S=p/(x.depth-1||1),n(v,(function(t){M=(t.getLayout().x+b)*w,I=(t.depth-1)*S;var e=l(M,I);t.setLayout({x:e.x,y:e.y,rawX:M,rawY:I},!0)}));else{var T=t.getOrient();"RL"===T||"LR"===T?(S=p/(y.getLayout().x+_+b),w=d/(x.depth-1||1),n(v,(function(t){I=(t.getLayout().x+b)*S,M="LR"===T?(t.depth-1)*w:d-(t.depth-1)*w,t.setLayout({x:M,y:I},!0)}))):"TB"!==T&&"BT"!==T||(w=d/(y.getLayout().x+_+b),S=p/(x.depth-1||1),n(v,(function(t){M=(t.getLayout().x+b)*w,I="TB"===T?(t.depth-1)*S:p-(t.depth-1)*S,t.setLayout({x:M,y:I},!0)})))}}}(t,i)}))}}function p1(){if(h1)return K0;h1=1;var t=NK();!function(){if(q0)return j0;q0=1;var t=kj(),e=J0(),n=EX().encodeHTML,i=mX(),r=t.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(t){var n={name:t.name,children:t.data},r=t.leaves||{},o=new i(r,this,this.ecModel),a=e.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=a.getNodeByDataIndex(e);return n.children.length&&n.isExpand||(t.parentModel=o),t}))})),s=0;a.eachNode("preorder",(function(t){t.depth>s&&(s=t.depth)}));var l=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:s;return a.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=l})),a.data},getOrient:function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},formatTooltip:function(t){for(var e=this.getData().tree,i=e.root.children[0],r=e.getNodeByDataIndex(t),o=r.getValue(),a=r.name;r&&r!==i;)a=r.parentNode.name+"."+a,r=r.parentNode;return n(a+(isNaN(o)||null==o?"":" : "+o))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});j0=r}(),r1(),function(){if(o1)return a1;o1=1;var t=NK(),e=V0().updateCenterAndZoom;t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=t.dataIndex,i=e.getData().tree.getNodeByDataIndex(n);i.isExpand=!i.isExpand}))})),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,n){n.eachComponent({mainType:"series",subType:"tree",query:t},(function(n){var i=n.coordinateSystem,r=e(i,t);n.setCenter&&n.setCenter(r.center),n.setZoom&&n.setZoom(r.zoom)}))}))}();var e=f$(),n=d1();return t.registerVisual(e("tree","circle")),t.registerLayout(n),K0}var f1,g1,v1,m1,y1,x1={},_1={};function b1(){if(f1)return _1;f1=1;var t=hW();function e(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}return _1.retrieveTargetInfo=function(e,n,i){if(e&&t.indexOf(n,e.type)>=0){var r=i.getData().tree.root,o=e.targetNode;if("string"==typeof o&&(o=r.getNodeById(o)),o&&r.contains(o))return{node:o};var a=e.targetNodeId;if(null!=a&&(o=r.getNodeById(a)))return{node:o}}},_1.getPathToRoot=e,_1.aboveViewRoot=function(n,i){var r=e(n);return t.indexOf(r,i)>=0},_1.wrapTreePathInfo=function(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n},_1}function w1(){if(v1)return g1;v1=1;var t=hW(),e=kj(),n=J0(),i=mX(),r=EX(),o=r.encodeHTML,a=r.addCommas,s=b1().wrapTreePathInfo,l=e.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],preventUsingHoverLayer:!0,_viewRoot:null,defaultOption:{progressive:0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(e,r){var o={name:e.name,children:e.data};u(o);var a=e.levels||[],s=this.designatedVisualItemStyle={},l=new i({itemStyle:s},this,r);a=e.levels=function(e,n){var r,o=n.get("color");if(!o)return;if(e=e||[],t.each(e,(function(t){var e=new i(t),n=e.get("color");(e.get("itemStyle.color")||n&&"none"!==n)&&(r=!0)})),!r){(e[0]||(e[0]={})).color=o.slice()}return e}(a,r);var h=t.map(a||[],(function(t){return new i(t,l,r)}),this),c=n.createTree(o,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=c.getNodeByDataIndex(e),i=h[n.depth];return t.parentModel=i||l,t}))}));return c.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(e){var n=this.getData(),i=this.getRawValue(e),r=t.isArray(i)?a(i[0]):a(i),s=n.getName(e);return o(s+": "+r)},getDataParams:function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=s(i,this),n},setLayoutInfo:function(e){this.layoutInfo=this.layoutInfo||{},t.extend(this.layoutInfo,e)},mapIdToIndex:function(e){var n=this._idIndexMap;n||(n=this._idIndexMap=t.createHashMap(),this._idIndexMapCount=0);var i=n.get(e);return null==i&&n.set(e,i=this._idIndexMapCount++),i},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});function u(e){var n=0;t.each(e.children,(function(e){u(e);var i=e.value;t.isArray(i)&&(i=i[0]),n+=i}));var i=e.value;t.isArray(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=n),i<0&&(i=0),t.isArray(e.value)?e.value[0]=i:e.value=i}return g1=l}var S1,M1,I1,T1={};function C1(){if(I1)return M1;I1=1;var t=NK(),e=hW(),n=vX(),i=gq(),r=b1(),o=function(){if(y1)return m1;y1=1;var t=vX(),e=zX(),n=hW(),i=b1().wrapTreePathInfo;function r(e){this.group=new t.Group,e.add(this.group)}function o(t,e,n,i,r,o){var a=[[r?t:t-5,e],[t+n,e],[t+n,e+i],[r?t:t-5,e+i]];return!o&&a.splice(2,0,[t+n+5,e+i/2]),!r&&a.push([t,e+i/2]),a}function a(t,e,n){t.eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&i(n,e)}}return r.prototype={constructor:r,render:function(t,n,i,r){var o=t.getModel("breadcrumb"),a=this.group;if(a.removeAll(),o.get("show")&&i){var s=o.getModel("itemStyle"),l=s.getModel("textStyle"),u={pos:{left:o.get("left"),right:o.get("right"),top:o.get("top"),bottom:o.get("bottom")},box:{width:n.getWidth(),height:n.getHeight()},emptyItemWidth:o.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(i,u,l),this._renderContent(t,u,s,l,r),e.positionElement(a,u.pos,u.box)}},_prepare:function(t,e,n){for(var i=t;i;i=i.parentNode){var r=i.getModel().get("name"),o=n.getTextRect(r),a=Math.max(o.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:i,text:r,width:a})}},_renderContent:function(i,r,s,l,u){for(var h=0,c=r.emptyItemWidth,d=i.get("breadcrumb.height"),p=e.getAvailableSize(r.pos,r.box),f=r.totalWidth,g=r.renderList,v=g.length-1;v>=0;v--){var m=g[v],y=m.node,x=m.width,_=m.text;f>p.width&&(f-=x-c,x=c,_=null);var b=new t.Polygon({shape:{points:o(h,0,x,d,v===g.length-1,0===v)},style:n.defaults(s.getItemStyle(),{lineJoin:"bevel",text:_,textFill:l.getTextColor(),textFont:l.getFont()}),z:10,onclick:n.curry(u,y)});this.group.add(b),a(b,i,y),h+=x+8}},remove:function(){this.group.removeAll()}},m1=r}(),a=s0(),s=_U(),l=GW(),u=function(){if(S1)return T1;S1=1;var t=hW();return T1.createWrap=function(){var e,n=[],i={};return{add:function(e,r,o,a,s){return t.isString(a)&&(s=a,a=0),!i[e.id]&&(i[e.id]=1,n.push({el:e,target:r,time:o,delay:a,easing:s}),!0)},done:function(t){return e=t,this},start:function(){for(var t=n.length,r=0,o=n.length;r<o;r++){var a=n[r];a.el.animateTo(a.target,a.time,a.delay,a.easing,s)}return this;function s(){--t||(n.length=0,i={},e&&e())}}}},T1}(),h=CY(),c=EX().windowOpen,d=e.bind,p=n.Group,f=n.Rect,g=e.each,v=["label"],m=["emphasis","label"],y=["upperLabel"],x=["emphasis","upperLabel"],_=h([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),b=function(t){var e=_(t);return e.stroke=e.fill=e.lineWidth=null,e},w=t.extendChartView({type:"treemap",init:function(t,e){this._containerGroup,this._storage={nodeGroup:[],background:[],content:[]},this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(t,n,i,o){var a=n.findComponents({mainType:"series",subType:"treemap",query:o});if(!(e.indexOf(a,t)<0)){this.seriesModel=t,this.api=i,this.ecModel=n;var s=r.retrieveTargetInfo(o,["treemapZoomToNode","treemapRootToNode"],t),l=o&&o.type,u=t.layoutInfo,h=!this._oldTree,c=this._storage,d="treemapRootToNode"===l&&s&&c?{rootNodeGroup:c.nodeGroup[s.node.getRawIndex()],direction:o.direction}:null,p=this._giveContainerGroup(u),f=this._doRender(p,t,d);h||l&&"treemapZoomToNode"!==l&&"treemapRootToNode"!==l?f.renderFinally():this._doAnimation(p,f,t,d),this._resetController(i),this._renderBreadcrumb(t,i,s)}},_giveContainerGroup:function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new p,this._initEvents(e),this.group.add(e)),e.attr("position",[t.x,t.y]),e},_doRender:function(t,n,r){var o=n.getData().tree,a=this._oldTree,s={nodeGroup:[],background:[],content:[]},l={nodeGroup:[],background:[],content:[]},u=this._storage,h=[],c=e.curry(S,n,l,u,r,s,h);!function t(n,r,o,a,s){a?(r=n,g(n,(function(t,e){!t.isRemoved()&&u(e,e)}))):new i(r,n,l,l).add(u).update(u).remove(e.curry(u,null)).execute();function l(t){return t.getId()}function u(e,i){var l=null!=e?n[e]:null,u=null!=i?r[i]:null,h=c(l,u,o,s);h&&t(l&&l.viewChildren||[],u&&u.viewChildren||[],h,a,s+1)}}(o.root?[o.root]:[],a&&a.root?[a.root]:[],t,o===a||!a,0);var d,p,f=(p={nodeGroup:[],background:[],content:[]},(d=u)&&g(d,(function(t,e){var n=p[e];g(t,(function(t){t&&(n.push(t),t.__tmWillDelete=1)}))})),p);return this._oldTree=o,this._storage=l,{lastsForAnimation:s,willDeleteEls:f,renderFinally:function(){g(f,(function(t){g(t,(function(t){t.parent&&t.parent.remove(t)}))})),g(h,(function(t){t.invisible=!0,t.dirty()}))}}},_doAnimation:function(t,n,i,r){if(i.get("animation")){var o=i.get("animationDurationUpdate"),a=i.get("animationEasing"),s=u.createWrap();g(n.willDeleteEls,(function(t,e){g(t,(function(t,n){if(!t.invisible){var i,l=t.parent;if(r&&"drillDown"===r.direction)i=l===r.rootNodeGroup?{shape:{x:0,y:0,width:l.__tmNodeWidth,height:l.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,h=0;l.__tmWillDelete||(u=l.__tmNodeWidth/2,h=l.__tmNodeHeight/2),i="nodeGroup"===e?{position:[u,h],style:{opacity:0}}:{shape:{x:u,y:h,width:0,height:0},style:{opacity:0}}}i&&s.add(t,i,o,a)}}))})),g(this._storage,(function(t,i){g(t,(function(t,r){var l=n.lastsForAnimation[i][r],u={};l&&("nodeGroup"===i?l.old&&(u.position=t.position.slice(),t.attr("position",l.old)):(l.old&&(u.shape=e.extend({},t.shape),t.setShape(l.old)),l.fadein?(t.setStyle("opacity",0),u.style={opacity:1}):1!==t.style.opacity&&(u.style={opacity:1})),s.add(t,u,o,a))}))}),this),this._state="animating",s.done(d((function(){this._state="ready",n.renderFinally()}),this)).start()}},_resetController:function(t){var e=this._controller;e||((e=this._controller=new a(t.getZr())).enable(this.seriesModel.get("roam")),e.on("pan",d(this._onPan,this)),e.on("zoom",d(this._onZoom,this)));var n=new s(0,0,t.getWidth(),t.getHeight());e.setPointerChecker((function(t,e,i){return n.contain(e,i)}))},_clearController:function(){var t=this._controller;t&&(t.dispose(),t=null)},_onPan:function(t){if("animating"!==this._state&&(Math.abs(t.dx)>3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},_onZoom:function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new s(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;e-=a.x,n-=a.y;var u=l.create();l.translate(u,u,[-e,-n]),l.scale(u,u,[t.scale,t.scale]),l.translate(u,u,[e,n]),o.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},_initEvents:function(t){t.on("click",(function(t){if("ready"===this._state){var e=this.seriesModel.get("nodeClick",!0);if(e){var n=this.findTarget(t.offsetX,t.offsetY);if(n){var i=n.node;if(i.getLayout().isLeafRoot)this._rootToNode(n);else if("zoomToNode"===e)this._zoomToNode(n);else if("link"===e){var r=i.hostTree.data.getItemModel(i.dataIndex),o=r.get("link",!0),a=r.get("target",!0)||"blank";o&&c(o,a)}}}}}),this)},_renderBreadcrumb:function(t,e,n){n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new o(this.group))).render(t,e,n.node,d((function(e){"animating"!==this._state&&(r.aboveViewRoot(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))}),this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}}),this),n}});function S(t,i,r,o,a,s,l,u,h,c){if(l){var d=l.getLayout(),g=t.getData();if(g.setItemGraphicEl(l.dataIndex,null),d&&d.isInView){var w=d.width,S=d.height,I=d.borderWidth,T=d.invisible,C=l.getRawIndex(),A=u&&u.getRawIndex(),D=l.viewChildren,L=d.upperHeight,k=D&&D.length,P=l.getModel("itemStyle"),O=l.getModel("emphasis.itemStyle"),R=F("nodeGroup",p);if(R){if(h.add(R),R.attr("position",[d.x||0,d.y||0]),R.__tmNodeWidth=w,R.__tmNodeHeight=S,d.isAboveViewRoot)return R;var N=l.getModel(),E=F("background",f,c,1);if(E&&function(e,i,r){if(i.dataIndex=l.dataIndex,i.seriesIndex=t.seriesIndex,i.setShape({x:0,y:0,width:w,height:S}),T)V(i);else{i.invisible=!1;var o=l.getVisual("borderColor",!0),a=O.get("borderColor"),s=b(P);s.fill=o;var u=_(O);if(u.fill=a,r){var h=w-2*I;B(s,u,o,h,L,{x:I,y:0,width:h,height:L})}else s.text=u.text=null;i.setStyle(s),n.setElementHoverStyle(i,u)}e.add(i)}(R,E,k&&d.upperLabelHeight),k)n.isHighDownDispatcher(R)&&n.setAsHighDownDispatcher(R,!1),E&&(n.setAsHighDownDispatcher(E,!0),g.setItemGraphicEl(l.dataIndex,E));else{var z=F("content",f,c,2);z&&function(e,i){i.dataIndex=l.dataIndex,i.seriesIndex=t.seriesIndex;var r=Math.max(w-2*I,0),o=Math.max(S-2*I,0);if(i.culling=!0,i.setShape({x:I,y:I,width:r,height:o}),T)V(i);else{i.invisible=!1;var a=l.getVisual("color",!0),s=b(P);s.fill=a;var u=_(O);B(s,u,a,r,o),i.setStyle(s),n.setElementHoverStyle(i,u)}e.add(i)}(R,z),E&&n.isHighDownDispatcher(E)&&n.setAsHighDownDispatcher(E,!1),n.setAsHighDownDispatcher(R,!0),g.setItemGraphicEl(l.dataIndex,R)}return R}}}function V(t){!t.invisible&&s.push(t)}function B(i,r,o,a,s,u){var h=N.get("name"),c=N.getModel(u?y:v),p=N.getModel(u?x:m),f=c.getShallow("show");n.setLabelStyle(i,r,c,p,{defaultText:f?h:null,autoColor:o,isRectText:!0,labelFetcher:t,labelDataIndex:l.dataIndex,labelProp:u?"upperLabel":"label"}),G(i,u,d),G(r,u,d),u&&(i.textRect=e.clone(u)),i.truncate=f&&c.get("ellipsis")?{outerWidth:a,outerHeight:s,minChar:2}:null}function G(e,n,i){var r=e.text;if(!n&&i.isLeafRoot&&null!=r){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+r:r}}function F(t,n,s,u){var h=null!=A&&r[t][A],c=a[t];return h?(r[t][A]=null,function(t,n,i){var r=t[C]={};r.old="nodeGroup"===i?n.position.slice():e.extend({},n.shape)}(c,h,t)):T||((h=new n({z:M(s,u)})).__tmDepth=s,h.__tmStorageName=t,function(t,e,n){var i=t[C]={},r=l.parentNode;if(r&&(!o||"drillDown"===o.direction)){var s=0,u=0,h=a.background[r.getRawIndex()];!o&&h&&h.old&&(s=h.old.width,u=h.old.height),i.old="nodeGroup"===n?[0,u]:{x:s,y:u,width:0,height:0}}i.fadein="nodeGroup"!==n}(c,0,t)),i[t][C]=h}}function M(t,e){var n=10*t+e;return(n-1)/n}return M1=w}var A1,D1,L1,k1,P1,O1,R1,N1,E1={};function z1(){if(L1)return D1;L1=1;var t=hW(),e=KW(),n=MX().linearMap,i=t.each,r=t.isObject,o=-1,a=function(e){var n=e.mappingMethod,r=e.type,a=this.option=t.clone(e);this.type=r,this.mappingMethod=n,this._normalizeData=m[n];var u=s[r];this.applyVisual=u.applyVisual,this.getColorMapper=u.getColorMapper,this._doMap=u._doMap[n],"piecewise"===n?(l(a),function(e){var n=e.pieceList;e.hasSpecialVisual=!1,t.each(n,(function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)}))}(a)):"category"===n?a.categories?function(e){var n=e.categories,r=e.visual,a=e.categoryMap={};if(i(n,(function(t,e){a[t]=e})),!t.isArray(r)){var s=[];t.isObject(r)?i(r,(function(t,e){var n=a[e];s[null!=n?n:o]=t})):s[-1]=r,r=v(e,s)}for(var l=n.length-1;l>=0;l--)null==r[l]&&(delete a[n[l]],n.pop())}(a):l(a,!0):(t.assert("linear"!==n||a.dataExtent),l(a))};a.prototype={constructor:a,mapValueToVisual:function(t){var e=this._normalizeData(t);return this._doMap(e,t)},getNormalizer:function(){return t.bind(this._normalizeData,this)}};var s=a.visualHandlers={color:{applyVisual:c("color"),getColorMapper:function(){var n=this.option;return t.bind("category"===n.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),d.call(this,t)}:function(t,i,r){var o=!!r;return!i&&(t=this._normalizeData(t)),r=e.fastLerp(t,n.parsedVisual,r),o?r:e.stringify(r,"rgba")},this)},_doMap:{linear:function(t){return e.stringify(e.fastLerp(t,this.option.parsedVisual),"rgba")},category:d,piecewise:function(t,n){var i=g.call(this,n);return null==i&&(i=e.stringify(e.fastLerp(t,this.option.parsedVisual),"rgba")),i},fixed:p}},colorHue:u((function(t,n){return e.modifyHSL(t,n)})),colorSaturation:u((function(t,n){return e.modifyHSL(t,null,n)})),colorLightness:u((function(t,n){return e.modifyHSL(t,null,null,n)})),colorAlpha:u((function(t,n){return e.modifyAlpha(t,n)})),opacity:{applyVisual:c("opacity"),_doMap:f([0,1])},liftZ:{applyVisual:c("liftZ"),_doMap:{linear:p,category:p,piecewise:p,fixed:p}},symbol:{applyVisual:function(e,n,i){var o=this.mapValueToVisual(e);if(t.isString(o))i("symbol",o);else if(r(o))for(var a in o)o.hasOwnProperty(a)&&i(a,o[a])},_doMap:{linear:h,category:d,piecewise:function(t,e){var n=g.call(this,e);return null==n&&(n=h.call(this,t)),n},fixed:p}},symbolSize:{applyVisual:c("symbolSize"),_doMap:f([0,1])}};function l(e,n){var r=e.visual,o=[];t.isObject(r)?i(r,(function(t){o.push(t)})):null!=r&&o.push(r);n||1!==o.length||{color:1,symbol:1}.hasOwnProperty(e.type)||(o[1]=o[0]),v(e,o)}function u(t){return{applyVisual:function(e,n,i){e=this.mapValueToVisual(e),i("color",t(n("color"),e))},_doMap:f([0,1])}}function h(t){var e=this.option.visual;return e[Math.round(n(t,[0,1],[0,e.length-1],!0))]||{}}function c(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function d(t){var e=this.option.visual;return e[this.option.loop&&t!==o?t%e.length:t]}function p(){return this.option.visual[0]}function f(t){return{linear:function(e){return n(e,t,this.option.visual,!0)},category:d,piecewise:function(e,i){var r=g.call(this,i);return null==r&&(r=n(e,t,this.option.visual,!0)),r},fixed:p}}function g(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=n[a.findPieceIndex(t,n)];if(i&&i.visual)return i.visual[this.type]}}function v(n,i){return n.visual=i,"color"===n.type&&(n.parsedVisual=t.map(i,(function(t){return e.parse(t)}))),i}var m={linear:function(t){return n(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,i=a.findPieceIndex(t,e,!0);if(null!=i)return n(i,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?o:e},fixed:t.noop};function y(t,e,n){return t?e<=n:e<n}return a.listVisualTypes=function(){var e=[];return t.each(s,(function(t,n){e.push(n)})),e},a.addVisualHandler=function(t,e){s[t]=e},a.isValidType=function(t){return s.hasOwnProperty(t)},a.eachVisual=function(e,n,i){t.isObject(e)?t.each(e,n,i):n.call(i,e)},a.mapVisual=function(e,n,i){var r,o=t.isArray(e)?[]:t.isObject(e)?{}:(r=!0,null);return a.eachVisual(e,(function(t,e){var a=n.call(i,t,e);r?o=a:o[e]=a})),o},a.retrieveVisuals=function(t){var e,n={};return t&&i(s,(function(i,r){t.hasOwnProperty(r)&&(n[r]=t[r],e=!0)})),e?n:null},a.prepareVisualTypes=function(e){if(r(e)){var n=[];i(e,(function(t,e){n.push(e)})),e=n}else{if(!t.isArray(e))return[];e=e.slice()}return e.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),e},a.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},a.findPieceIndex=function(t,e,n){for(var i,r=1/0,o=0,a=e.length;o<a;o++){var s=e[o].value;if(null!=s){if(s===t||"string"==typeof s&&s===t+"")return o;n&&c(s,o)}}for(o=0,a=e.length;o<a;o++){var l=e[o],u=l.interval,h=l.close;if(u){if(u[0]===-1/0){if(y(h[1],t,u[1]))return o}else if(u[1]===1/0){if(y(h[0],u[0],t))return o}else if(y(h[0],u[0],t)&&y(h[1],t,u[1]))return o;n&&c(u[0],o),n&&c(u[1],o)}}if(n)return t===1/0?e.length-1:t===-1/0?0:i;function c(e,n){var o=Math.abs(e-t);o<r&&(r=o,i=n)}},D1=a}function V1(){if(P1)return k1;P1=1;var t=z1(),e=KW(),n=hW(),i=n.isArray;function r(i,a,l,u){var h=i.getModel(),c=i.getLayout();if(c&&!c.invisible&&c.isInView){var d,p=i.getModel("itemStyle"),f=function(t,e,i){var r=n.extend({},e),o=i.designatedVisualItemStyle;return n.each(["color","colorAlpha","colorSaturation"],(function(n){o[n]=e[n];var i=t.get(n);o[n]=null,null!=i&&(r[n]=i)})),r}(p,a,u),g=p.get("borderColor"),v=p.get("borderColorSaturation");null!=v&&(g=function(t,n){return null!=n?e.modifyHSL(n,null,null,t):null}(v,d=o(f))),i.setVisual("borderColor",g);var m=i.viewChildren;if(m&&m.length){var y=function(e,n,i,r,o,a){if(!a||!a.length)return;var l=s(n,"color")||null!=o.color&&"none"!==o.color&&(s(n,"colorAlpha")||s(n,"colorSaturation"));if(!l)return;var u=n.get("visualMin"),h=n.get("visualMax"),c=i.dataExtent.slice();null!=u&&u<c[0]&&(c[0]=u),null!=h&&h>c[1]&&(c[1]=h);var d=n.get("colorMappingBy"),p={type:l.name,dataExtent:c,visual:l.range};"color"!==p.type||"index"!==d&&"id"!==d?p.mappingMethod="linear":(p.mappingMethod="category",p.loop=!0);var f=new t(p);return f.__drColorMappingBy=d,f}(0,h,c,0,f,m);n.each(m,(function(t,e){if(t.depth>=l.length||t===l[t.depth]){var i=function(t,e,i,r,o,a){var s=n.extend({},e);if(o){var l=o.type,u="color"===l&&o.__drColorMappingBy,h="index"===u?r:"id"===u?a.mapIdToIndex(i.getId()):i.getValue(t.get("visualDimension"));s[l]=o.mapValueToVisual(h)}return s}(h,f,t,e,y,u);r(t,i,l,u)}}))}else d=o(f),i.setVisual("color",d)}}function o(t){var n=a(t,"color");if(n){var i=a(t,"colorAlpha"),r=a(t,"colorSaturation");return r&&(n=e.modifyHSL(n,null,null,r)),i&&(n=e.modifyAlpha(n,i)),n}}function a(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function s(t,e){var n=t.get(e);return i(n)&&n.length?{name:e,range:n}:null}return k1={seriesType:"treemap",reset:function(t,e,n,i){var o=t.getData().tree.root;o.isRemoved()||r(o,{},t.getViewRoot().getAncestors(),t)}}}function B1(){if(R1)return O1;R1=1;var t=hW(),e=_U(),n=MX(),i=n.parsePercent,r=n.MAX_SAFE_INTEGER,o=zX(),a=b1(),s=Math.max,l=Math.min,u=t.retrieve,h=t.each,c=["itemStyle","borderWidth"],d=["itemStyle","gapWidth"],p=["upperLabel","show"],f=["upperLabel","height"],g={seriesType:"treemap",reset:function(n,s,l,d){var p=l.getWidth(),f=l.getHeight(),g=n.option,m=o.getLayoutRect(n.getBoxLayoutParams(),{width:l.getWidth(),height:l.getHeight()}),y=g.size||[],b=i(u(m.width,y[0]),p),w=i(u(m.height,y[1]),f),S=d&&d.type,M=a.retrieveTargetInfo(d,["treemapZoomToNode","treemapRootToNode"],n),I="treemapRender"===S||"treemapMove"===S?d.rootRect:null,T=n.getViewRoot(),C=a.getPathToRoot(T);if("treemapMove"!==S){var A="treemapZoomToNode"===S?function(t,e,n,i,o){var a,s=(e||{}).node,l=[i,o];if(!s||s===n)return l;var u=i*o,h=u*t.option.zoomToNodeRatio;for(;a=s.parentNode;){for(var d=0,p=a.children,f=0,g=p.length;f<g;f++)d+=p[f].getValue();var v=s.getValue();if(0===v)return l;h*=d/v;var m=a.getModel(),y=m.get(c);(h+=4*y*y+(3*y+Math.max(y,_(m)))*Math.pow(h,.5))>r&&(h=r),s=a}h<u&&(h=u);var x=Math.pow(h/u,.5);return[i*x,o*x]}(n,M,T,b,w):I?[I.width,I.height]:[b,w],D=g.sort;D&&"asc"!==D&&"desc"!==D&&(D="desc");var L={squareRatio:g.squareRatio,sort:D,leafDepth:g.leafDepth};T.hostTree.clearLayouts();var k={x:0,y:0,width:A[0],height:A[1],area:A[0]*A[1]};T.setLayout(k),v(T,L,!1,0);k=T.getLayout();h(C,(function(e,n){var i=(C[n+1]||T).getValue();e.setLayout(t.extend({dataExtent:[i,i],borderWidth:0,upperHeight:0},k))}))}var P=n.getData().tree.root;P.setLayout(function(t,e,n){if(e)return{x:e.x,y:e.y};var i={x:0,y:0};if(!n)return i;var r=n.node,o=r.getLayout();if(!o)return i;var a=[o.width/2,o.height/2],s=r;for(;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:t.width/2-a[0],y:t.height/2-a[1]}}(m,I,M),!0),n.setLayoutInfo(m),x(P,new e(-m.x,-m.y,p,f),C,T,0)}};function v(e,n,i,r){var o,a;if(!e.isRemoved()){var u=e.getLayout();o=u.width,a=u.height;var p=(S=e.getModel()).get(c),f=S.get(d)/2,g=_(S),x=Math.max(p,g),b=p-f,w=x-f,S=e.getModel();e.setLayout({borderWidth:p,upperHeight:x,upperLabelHeight:g},!0);var M=(o=s(o-2*b,0))*(a=s(a-b-w,0)),I=function(e,n,i,r,o,a){var s=e.children||[],l=r.sort;"asc"!==l&&"desc"!==l&&(l=null);var u=null!=r.leafDepth&&r.leafDepth<=a;if(o&&!u)return e.viewChildren=[];s=t.filter(s,(function(t){return!t.isRemoved()})),function(t,e){e&&t.sort((function(t,n){var i="asc"===e?t.getValue()-n.getValue():n.getValue()-t.getValue();return 0===i?"asc"===e?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:i}))}(s,l);var c=function(t,e,n){for(var i=0,r=0,o=e.length;r<o;r++)i+=e[r].getValue();var a=t.get("visualDimension");if(e&&e.length)if("value"===a&&n)s=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&s.reverse();else{var s=[1/0,-1/0];h(e,(function(t){var e=t.getValue(a);e<s[0]&&(s[0]=e),e>s[1]&&(s[1]=e)}))}else s=[NaN,NaN];return{sum:i,dataExtent:s}}(n,s,l);if(0===c.sum)return e.viewChildren=[];if(c.sum=function(t,e,n,i,r){if(!i)return n;for(var o=t.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*e<o&&(s=l,n-=u)}return"asc"===i?r.splice(0,a-s):r.splice(s,a-s),n}(n,i,c.sum,l,s),0===c.sum)return e.viewChildren=[];for(var d=0,p=s.length;d<p;d++){var f=s[d].getValue()/c.sum*i;s[d].setLayout({area:f})}u&&(s.length&&e.setLayout({isLeafRoot:!0},!0),s.length=0);return e.viewChildren=s,e.setLayout({dataExtent:c.dataExtent},!0),s}(e,S,M,n,i,r);if(I.length){var T={x:b,y:w,width:o,height:a},C=l(o,a),A=1/0,D=[];D.area=0;for(var L=0,k=I.length;L<k;){var P=I[L];D.push(P),D.area+=P.getLayout().area;var O=m(D,C,n.squareRatio);O<=A?(L++,A=O):(D.area-=D.pop().getLayout().area,y(D,C,T,f,!1),C=l(T.width,T.height),D.length=D.area=0,A=1/0)}if(D.length&&y(D,C,T,f,!0),!i){var R=S.get("childrenVisibleMin");null!=R&&M<R&&(i=!0)}for(L=0,k=I.length;L<k;L++)v(I[L],n,i,r+1)}}}function m(t,e,n){for(var i,r=0,o=1/0,a=0,l=t.length;a<l;a++)(i=t[a].getLayout().area)&&(i<o&&(o=i),i>r&&(r=i));var u=t.area*t.area,h=e*e*n;return u?s(h*r/u,u/(h*o)):1/0}function y(t,e,n,i,r){var o=e===n.width?0:1,a=1-o,u=["x","y"],h=["width","height"],c=n[u[o]],d=e?t.area/e:0;(r||d>n[h[a]])&&(d=n[h[a]]);for(var p=0,f=t.length;p<f;p++){var g=t[p],v={},m=d?g.getLayout().area/d:0,y=v[h[a]]=s(d-2*i,0),x=n[u[o]]+n[h[o]]-c,_=p===f-1||x<m?x:m,b=v[h[o]]=s(_-2*i,0);v[u[a]]=n[u[a]]+l(i,y/2),v[u[o]]=c+l(i,b/2),c+=_,g.setLayout(v,!0)}n[u[a]]+=d,n[h[a]]-=d}function x(t,n,i,r,o){var a=t.getLayout(),s=i[o],l=s&&s===t;if(!(s&&!l||o===i.length&&t!==r)){t.setLayout({isInView:!0,invisible:!l&&!n.intersect(a),isAboveViewRoot:l},!0);var u=new e(n.x-a.x,n.y-a.y,n.width,n.height);h(t.viewChildren||[],(function(t){x(t,u,i,r,o+1)}))}}function _(t){return t.get(p)?t.get(f):0}return O1=g}function G1(){if(N1)return x1;N1=1;var t=NK();w1(),C1(),function(){if(A1)return E1;A1=1;for(var t=NK(),e=b1(),n=function(){},i=["treemapZoomToNode","treemapRender","treemapMove"],r=0;r<i.length;r++)t.registerAction({type:i[r],update:"updateView"},n);t.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,n){n.eachComponent({mainType:"series",subType:"treemap",query:t},(function(n,i){var r=e.retrieveTargetInfo(t,["treemapZoomToNode","treemapRootToNode"],n);if(r){var o=n.getViewRoot();o&&(t.direction=e.aboveViewRoot(o,r.node)?"rollUp":"drillDown"),n.resetViewRoot(r.node)}}))}))}();var e=V1(),n=B1();return t.registerVisual(e),t.registerLayout(n),x1}var F1,H1,W1,U1,Y1={};function Z1(){if(U1)return W1;U1=1;var t=hW(),e=Aq(),n=function(){if(H1)return F1;H1=1,tW().__DEV__;var t=hW(),e=TY().enableClassCheck;function n(t){return"_EC_"+t}var i=function(t){this._directed=t||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},r=i.prototype;function o(t,e){this.id=null==t?"":t,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==e?-1:e}function a(t,e,n){this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}r.type="graph",r.isDirected=function(){return this._directed},r.addNode=function(t,e){t=null==t?""+e:""+t;var i=this._nodesMap;if(!i[n(t)]){var r=new o(t,e);return r.hostGraph=this,this.nodes.push(r),i[n(t)]=r,r}},r.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.getNodeById=function(t){return this._nodesMap[n(t)]},r.addEdge=function(t,e,i){var r=this._nodesMap,s=this._edgesMap;if("number"==typeof t&&(t=this.nodes[t]),"number"==typeof e&&(e=this.nodes[e]),o.isInstance(t)||(t=r[n(t)]),o.isInstance(e)||(e=r[n(e)]),t&&e){var l=t.id+"-"+e.id,u=new a(t,e,i);return u.hostGraph=this,this._directed&&(t.outEdges.push(u),e.inEdges.push(u)),t.edges.push(u),t!==e&&e.edges.push(u),this.edges.push(u),s[l]=u,u}},r.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},r.getEdge=function(t,e){o.isInstance(t)&&(t=t.id),o.isInstance(e)&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},r.eachNode=function(t,e){for(var n=this.nodes,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&t.call(e,n[r],r)},r.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},r.breadthFirstTraverse=function(t,e,i,r){if(o.isInstance(e)||(e=this._nodesMap[n(e)]),e){for(var a="out"===i?"outEdges":"in"===i?"inEdges":"edges",s=0;s<this.nodes.length;s++)this.nodes[s].__visited=!1;if(!t.call(r,e,null))for(var l=[e];l.length;){var u=l.shift(),h=u[a];for(s=0;s<h.length;s++){var c=h[s],d=c.node1===u?c.node2:c.node1;if(!d.__visited){if(t.call(r,d,u))return;l.push(d),d.__visited=!0}}}}},r.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,i=this.edges,r=0,o=n.length;r<o;r++)n[r].dataIndex=-1;for(r=0,o=t.count();r<o;r++)n[t.getRawIndex(r)].dataIndex=r;for(e.filterSelf((function(t){var n=i[e.getRawIndex(t)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0})),r=0,o=i.length;r<o;r++)i[r].dataIndex=-1;for(r=0,o=e.count();r<o;r++)i[e.getRawIndex(r)].dataIndex=r},r.clone=function(){for(var t=new i(this._directed),e=this.nodes,n=this.edges,r=0;r<e.length;r++)t.addNode(e[r].id,e[r].dataIndex);for(r=0;r<n.length;r++){var o=n[r];t.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return t},o.prototype={constructor:o,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(t){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)}},a.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)};var s=function(t,e){return{getValue:function(n){var i=this[t][e];return i.get(i.getDimension(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n,i){return this[t][e].getItemVisual(this.dataIndex,n,i)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}};return t.mixin(o,s("hostGraph","data")),t.mixin(a,s("hostGraph","edgeData")),i.Node=o,i.Edge=a,e(o),e(a),F1=i}(),i=$0(),r=Lq(),o=cj(),a=Vq();return W1=function(s,l,u,h,c){for(var d=new n(h),p=0;p<s.length;p++)d.addNode(t.retrieve(s[p].id,s[p].name,p),p);var f=[],g=[],v=0;for(p=0;p<l.length;p++){var m=l[p],y=m.source,x=m.target;d.addEdge(y,x,v)&&(g.push(m),f.push(t.retrieve(m.id,y+" > "+x)),v++)}var _,b=u.get("coordinateSystem");if("cartesian2d"===b||"polar"===b)_=a(s,u);else{var w=o.get(b),S=w&&"view"!==w.type&&w.dimensions||[];t.indexOf(S,"value")<0&&S.concat(["value"]);var M=r(s,{coordDimensions:S});(_=new e(M,u)).initData(s)}var I=new e(["value"],u);return I.initData(g,f),c&&c(_,I),i({mainData:_,struct:d,structAttr:"graph",datas:{node:_,edge:I},datasAttr:{node:"data",edge:"edgeData"}}),d.update(),d},W1}var X1,j1,q1,K1,$1,J1,Q1,t2,e2,n2={};function i2(){if(X1)return n2;X1=1;var t=hW(),e="--\x3e",n=function(t){return t.get("autoCurveness")||null},i=function(e,i){var r=n(e),o=20,a=[];if("number"==typeof r)o=r;else if(t.isArray(r))return void(e.__curvenessList=r);i>o&&(o=i);var s=o%2?o+2:o+3;a=[];for(var l=0;l<s;l++)a.push((l%2?l+1:l)/10*(l%2?-1:1));e.__curvenessList=a},r=function(t,n,i){var r=[t.id,t.dataIndex].join("."),o=[n.id,n.dataIndex].join(".");return[i.uid,r,o].join(e)},o=function(t){var n=t.split(e);return[n[0],n[2],n[1]].join(e)},a=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};return n2.initCurvenessList=function(t){n(t)&&(t.__curvenessList=[],t.__edgeMap={},i(t))},n2.createEdgeMapForCurveness=function(t,e,i,a){if(n(i)){var s=r(t,e,i),l=i.__edgeMap,u=l[o(s)];l[s]&&!u?l[s].isForward=!0:u&&l[s]&&(u.isForward=!0,l[s].isForward=!1),l[s]=l[s]||[],l[s].push(a)}},n2.getCurvenessForEdge=function(e,s,l,u){var h=n(s),c=t.isArray(h);if(!h)return null;var d=function(t,e){var n=r(t.node1,t.node2,e);return e.__edgeMap[n]}(e,s);if(!d)return null;for(var p=-1,f=0;f<d.length;f++)if(d[f]===l){p=f;break}var g=function(t,e){return a(r(t.node1,t.node2,e),e)+a(r(t.node2,t.node1,e),e)}(e,s);i(s,g),e.lineStyle=e.lineStyle||{};var v=r(e.node1,e.node2,s),m=s.__curvenessList,y=c||g%2?0:1;if(d.isForward)return m[y+p];var x=o(v),_=a(x,s),b=m[p+_+y];return u?c?h&&0===h[0]?(_+y)%2?b:-b:((_%2?0:1)+y)%2?b:-b:(_+y)%2?b:-b:m[p+_+y]},n2}function r2(){if(Q1)return J1;Q1=1;var t=hW(),e=mW(),n=vK(),i=function(){if($1)return K1;$1=1;var t=vX(),e=mW(),n=t.Line.prototype,i=t.BezierCurve.prototype;function r(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var o=t.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(t,e){this[r(e)?"_buildPathLine":"_buildPathCurve"](t,e)},_buildPathLine:n.buildPath,_buildPathCurve:i.buildPath,pointAt:function(t){return this[r(this.shape)?"_pointAtLine":"_pointAtCurve"](t)},_pointAtLine:n.pointAt,_pointAtCurve:i.pointAt,tangentAt:function(t){var n=this.shape,i=r(n)?[n.x2-n.x1,n.y2-n.y1]:this._tangentAtCurve(t);return e.normalize(i,i)},_tangentAtCurve:i.tangentAt});return K1=o}(),r=vX(),o=MX().round,a=["fromSymbol","toSymbol"];function s(t){return"_"+t+"Type"}function l(e,i,r){var o=i.getItemVisual(r,e);if(o&&"none"!==o){var a=i.getItemVisual(r,"color"),s=i.getItemVisual(r,e+"Size"),l=i.getItemVisual(r,e+"Rotate");t.isArray(s)||(s=[s,s]);var u=n.createSymbol(o,-s[0]/2,-s[1]/2,s[0],s[1],a);return u.__specifiedRotation=null==l||isNaN(l)?void 0:+l*Math.PI/180||0,u.name=e,u}}function u(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}function h(t,e,n){r.Group.call(this),this._createLine(t,e,n)}var c=h.prototype;return c.beforeUpdate=function(){var t=this,n=t.childOfName("fromSymbol"),i=t.childOfName("toSymbol"),r=t.childOfName("label");if(n||i||!r.ignore){for(var o=1,a=this.parent;a;)a.scale&&(o/=a.scale[0]),a=a.parent;var s=t.childOfName("line");if(this.__dirty||s.__dirty){var l=s.shape.percent,u=s.pointAt(0),h=s.pointAt(l),c=e.sub([],h,u);if(e.normalize(c,c),n){if(n.attr("position",u),null==(p=n.__specifiedRotation)){var d=s.tangentAt(0);n.attr("rotation",Math.PI/2-Math.atan2(d[1],d[0]))}else n.attr("rotation",p);n.attr("scale",[o*l,o*l])}if(i){var p;if(i.attr("position",h),null==(p=i.__specifiedRotation)){d=s.tangentAt(1);i.attr("rotation",-Math.PI/2-Math.atan2(d[1],d[0]))}else i.attr("rotation",p);i.attr("scale",[o*l,o*l])}if(!r.ignore){var f,g,v,m;r.attr("position",h);var y=r.__labelDistance,x=y[0]*o,_=y[1]*o,b=l/2,w=[(d=s.tangentAt(b))[1],-d[0]],S=s.pointAt(b);w[1]>0&&(w[0]=-w[0],w[1]=-w[1]);var M,I=d[0]<0?-1:1;if("start"!==r.__position&&"end"!==r.__position){var T=-Math.atan2(d[1],d[0]);h[0]<u[0]&&(T=Math.PI+T),r.attr("rotation",T)}switch(r.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":M=-_,v="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":M=_,v="top";break;default:M=0,v="middle"}switch(r.__position){case"end":f=[c[0]*x+h[0],c[1]*_+h[1]],g=c[0]>.8?"left":c[0]<-.8?"right":"center",v=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":f=[-c[0]*x+u[0],-c[1]*_+u[1]],g=c[0]>.8?"right":c[0]<-.8?"left":"center",v=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":f=[x*I+u[0],u[1]+M],g=d[0]<0?"right":"left",m=[-x*I,-M];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":f=[S[0],S[1]+M],g="center",m=[0,-M];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":f=[-x*I+h[0],h[1]+M],g=d[0]>=0?"right":"left",m=[x*I,-M]}r.attr({style:{textVerticalAlign:r.__verticalAlign||v,textAlign:r.__textAlign||g},position:f,scale:[o,o],origin:m})}}}},c._createLine=function(e,n,o){var h=e.hostModel,c=function(t){var e=new i({name:"line",subPixelOptimize:!0});return u(e.shape,t),e}(e.getItemLayout(n));c.shape.percent=0,r.initProps(c,{shape:{percent:1}},h,n),this.add(c);var d=new r.Text({name:"label",lineLabelOriginalOpacity:1});this.add(d),t.each(a,(function(t){var i=l(t,e,n);this.add(i),this[s(t)]=e.getItemVisual(n,t)}),this),this._updateCommonStl(e,n,o)},c.updateData=function(e,n,i){var o=e.hostModel,h=this.childOfName("line"),c=e.getItemLayout(n),d={shape:{}};u(d.shape,c),r.updateProps(h,d,o,n),t.each(a,(function(t){var i=e.getItemVisual(n,t),r=s(t);if(this[r]!==i){this.remove(this.childOfName(t));var o=l(t,e,n);this.add(o)}this[r]=i}),this),this._updateCommonStl(e,n,i)},c._updateCommonStl=function(e,n,i){var s=e.hostModel,l=this.childOfName("line"),u=i&&i.lineStyle,h=i&&i.hoverLineStyle,c=i&&i.labelModel,d=i&&i.hoverLabelModel;if(!i||e.hasItemOption){var p=e.getItemModel(n);u=p.getModel("lineStyle").getLineStyle(),h=p.getModel("emphasis.lineStyle").getLineStyle(),c=p.getModel("label"),d=p.getModel("emphasis.label")}var f=e.getItemVisual(n,"color"),g=t.retrieve3(e.getItemVisual(n,"opacity"),u.opacity,1);l.useStyle(t.defaults({strokeNoScale:!0,fill:"none",stroke:f,opacity:g},u)),l.hoverStyle=h,t.each(a,(function(t){var e=this.childOfName(t);e&&(e.setColor(f),e.setStyle({opacity:g}))}),this);var v,m,y=c.getShallow("show"),x=d.getShallow("show"),_=this.childOfName("label");if((y||x)&&(v=f||"#000",null==(m=s.getFormattedLabel(n,"normal",e.dataType)))){var b=s.getRawValue(n);m=null==b?e.getName(n):isFinite(b)?o(b):b}var w=y?m:null,S=x?t.retrieve2(s.getFormattedLabel(n,"emphasis",e.dataType),m):null,M=_.style;if(null!=w||null!=S){r.setTextStyle(_.style,c,{text:w},{autoColor:v}),_.__textAlign=M.textAlign,_.__verticalAlign=M.textVerticalAlign,_.__position=c.get("position")||"middle";var I=c.get("distance");t.isArray(I)||(I=[I,I]),_.__labelDistance=I}_.hoverStyle=null!=S?{text:S,textFill:d.getTextColor(!0),fontStyle:d.getShallow("fontStyle"),fontWeight:d.getShallow("fontWeight"),fontSize:d.getShallow("fontSize"),fontFamily:d.getShallow("fontFamily")}:{text:null},_.ignore=!y&&!x,r.setHoverStyle(this)},c.highlight=function(){this.trigger("emphasis")},c.downplay=function(){this.trigger("normal")},c.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},c.setLinePoints=function(t){var e=this.childOfName("line");u(e.shape,t),e.dirty()},t.inherits(h,r.Group),J1=h}function o2(){if(e2)return t2;e2=1;var t=vX(),e=r2();function n(n){this._ctor=n||e,this.group=new t.Group}var i=n.prototype;function r(t){var e=t.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),hoverLineStyle:e.getModel("emphasis.lineStyle").getLineStyle(),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label")}}function o(t){return isNaN(t[0])||isNaN(t[1])}function a(t){return!o(t[0])&&!o(t[1])}return i.isPersistent=function(){return!0},i.updateData=function(t){var e=this,n=e.group,i=e._lineData;e._lineData=t,i||n.removeAll();var o=r(t);t.diff(i).add((function(n){!function(t,e,n,i){var r=e.getItemLayout(n);if(!a(r))return;var o=new t._ctor(e,n,i);e.setItemGraphicEl(n,o),t.group.add(o)}(e,t,n,o)})).update((function(n,r){!function(t,e,n,i,r,o){var s=e.getItemGraphicEl(i);if(!a(n.getItemLayout(r)))return void t.group.remove(s);s?s.updateData(n,r,o):s=new t._ctor(n,r,o);n.setItemGraphicEl(r,s),t.group.add(s)}(e,i,t,r,n,o)})).remove((function(t){n.remove(i.getItemGraphicEl(t))})).execute()},i.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},i.incrementalPrepareUpdate=function(t){this._seriesScope=r(t),this._lineData=null,this.group.removeAll()},i.incrementalUpdate=function(t,e){function n(t){t.isGroup||function(t){return t.animators&&t.animators.length>0}(t)||(t.incremental=t.useHoverLayer=!0)}for(var i=t.start;i<t.end;i++){if(a(e.getItemLayout(i))){var r=new this._ctor(e,i,this._seriesScope);r.traverse(n),this.group.add(r),e.setItemGraphicEl(i,r)}}},i.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},i._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()},t2=n}var a2,s2,l2,u2,h2,c2={};function d2(){if(a2)return c2;return a2=1,c2.getNodeGlobalScale=function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=t.option.nodeScaleRatio,i=e.scale,r=i&&i[0]||1;return((e.getZoom()-1)*n+1)/r},c2.getSymbolSize=function(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e},c2}function p2(){if(h2)return u2;h2=1;var t=NK(),e=hW(),n=XK(),i=o2(),r=s0(),o=h0(),a=m0().onIrrelevantElement,s=vX(),l=function(){if(l2)return s2;l2=1;var t=PY(),e=mW(),n=d2().getSymbolSize,i=[],r=[],o=[],a=t.quadraticAt,s=e.distSquare,l=Math.abs;function u(t,e,n){for(var u,h=t[0],c=t[1],d=t[2],p=1/0,f=n*n,g=.1,v=.1;v<=.9;v+=.1)i[0]=a(h[0],c[0],d[0],v),i[1]=a(h[1],c[1],d[1],v),(x=l(s(i,e)-f))<p&&(p=x,u=v);for(var m=0;m<32;m++){var y=u+g;r[0]=a(h[0],c[0],d[0],u),r[1]=a(h[1],c[1],d[1],u),o[0]=a(h[0],c[0],d[0],y),o[1]=a(h[1],c[1],d[1],y);var x=s(r,e)-f;if(l(x)<.01)break;var _=s(o,e)-f;g/=2,x<0?_>=0?u+=g:u-=g:_>=0?u-=g:u+=g}return u}return s2=function(i,r){var o=[],a=t.quadraticSubdivide,s=[[],[],[]],l=[[],[]],h=[];r/=2,i.eachEdge((function(t,i){var c=t.getLayout(),d=t.getVisual("fromSymbol"),p=t.getVisual("toSymbol");c.__original||(c.__original=[e.clone(c[0]),e.clone(c[1])],c[2]&&c.__original.push(e.clone(c[2])));var f=c.__original;if(null!=c[2]){if(e.copy(s[0],f[0]),e.copy(s[1],f[2]),e.copy(s[2],f[1]),d&&"none"!==d){var g=n(t.node1),v=u(s,f[0],g*r);a(s[0][0],s[1][0],s[2][0],v,o),s[0][0]=o[3],s[1][0]=o[4],a(s[0][1],s[1][1],s[2][1],v,o),s[0][1]=o[3],s[1][1]=o[4]}p&&"none"!==p&&(g=n(t.node2),v=u(s,f[1],g*r),a(s[0][0],s[1][0],s[2][0],v,o),s[1][0]=o[1],s[2][0]=o[2],a(s[0][1],s[1][1],s[2][1],v,o),s[1][1]=o[1],s[2][1]=o[2]),e.copy(c[0],s[0]),e.copy(c[1],s[2]),e.copy(c[2],s[1])}else e.copy(l[0],f[0]),e.copy(l[1],f[1]),e.sub(h,l[1],l[0]),e.normalize(h,h),d&&"none"!==d&&(g=n(t.node1),e.scaleAndAdd(l[0],l[0],h,g*r)),p&&"none"!==p&&(g=n(t.node2),e.scaleAndAdd(l[1],l[1],h,-g*r)),e.copy(c[0],l[0]),e.copy(c[1],l[1])}))}}(),u=d2().getNodeGlobalScale,h="__focusNodeAdjacency",c="__unfocusNodeAdjacency",d=["itemStyle","opacity"],p=["lineStyle","opacity"];function f(t,e){var n=t.getVisual("opacity");return null!=n?n:t.getModel().get(e)}function g(t,e,n){var i=t.getGraphicEl(),r=f(t,e);null!=n&&(null==r&&(r=1),r*=n),i.downplay&&i.downplay(),i.traverse((function(t){if(!t.isGroup){var e=t.lineLabelOriginalOpacity;null!=e&&null==n||(e=r),t.setStyle("opacity",e)}}))}function v(t,e){var n=f(t,e),i=t.getGraphicEl();i.traverse((function(t){!t.isGroup&&t.setStyle("opacity",n)})),i.highlight&&i.highlight()}var m=t.extendChartView({type:"graph",init:function(t,e){var o=new n,a=new i,s=this.group;this._controller=new r(e.getZr()),this._controllerHost={target:s},s.add(o.group),s.add(a.group),this._symbolDraw=o,this._lineDraw=a,this._firstRender=!0},render:function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,d=this.group;if("view"===r.type){var p={position:r.position,scale:r.scale};this._firstRender?d.attr(p):s.updateProps(d,p,t)}l(t.getGraph(),u(t));var f=t.getData();o.updateData(f);var g=t.getEdgeData();a.updateData(g),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var v=t.forceLayout,m=t.get("force.layoutAnimation");v&&this._startForceLayoutIteration(v,m),f.eachItemGraphicEl((function(e,r){var o=f.getItemModel(r);e.off("drag").off("dragend");var a=o.get("draggable");a&&e.on("drag",(function(){v&&(v.warmUp(),!this._layouting&&this._startForceLayoutIteration(v,m),v.setFixed(r),f.setItemLayout(r,e.position))}),this).on("dragend",(function(){v&&v.setUnfixed(r)}),this),e.setDraggable(a&&v),e[h]&&e.off("mouseover",e[h]),e[c]&&e.off("mouseout",e[c]),o.get("focusNodeAdjacency")&&(e.on("mouseover",e[h]=function(){i._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex})}),e.on("mouseout",e[c]=function(){i._dispatchUnfocus(n)}))}),this),f.graph.eachEdge((function(e){var r=e.getGraphicEl();r[h]&&r.off("mouseover",r[h]),r[c]&&r.off("mouseout",r[c]),e.getModel().get("focusNodeAdjacency")&&(r.on("mouseover",r[h]=function(){i._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,edgeDataIndex:e.dataIndex})}),r.on("mouseout",r[c]=function(){i._dispatchUnfocus(n)}))}));var y="circular"===t.get("layout")&&t.get("circular.rotateLabel"),x=f.getLayout("cx"),_=f.getLayout("cy");f.eachItemGraphicEl((function(t,e){var n=f.getItemModel(e).get("label.rotate")||0,i=t.getSymbolPath();if(y){var r=f.getItemLayout(e),o=Math.atan2(r[1]-_,r[0]-x);o<0&&(o=2*Math.PI+o);var a=r[0]<x;a&&(o-=Math.PI);var l=a?"left":"right";s.modifyLabelStyle(i,{textRotation:-o,textPosition:l,textOrigin:"center"},{textPosition:l})}else s.modifyLabelStyle(i,{textRotation:n*=Math.PI/180})})),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={},this._clearTimer()},_dispatchUnfocus:function(t,e){var n=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout((function(){n._unfocusDelayTimer=null,t.dispatchAction({type:"unfocusNodeAdjacency",seriesId:n._model.id})}),500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(t,n,i,r){var o=t.getData().graph,a=r.dataIndex,s=r.edgeDataIndex,l=o.getNodeByIndex(a),u=o.getEdgeByIndex(s);(l||u)&&(o.eachNode((function(t){g(t,d,.1)})),o.eachEdge((function(t){g(t,p,.1)})),l&&(v(l,d),e.each(l.edges,(function(t){t.dataIndex<0||(v(t,p),v(t.node1,d),v(t.node2,d))}))),u&&(v(u,p),v(u.node1,d),v(u.node2,d)))},unfocusNodeAdjacency:function(t,e,n,i){var r=t.getData().graph;r.eachNode((function(t){g(t,d)})),r.eachEdge((function(t){g(t,p)}))},_startForceLayoutIteration:function(t,e){var n=this;!function i(){t.step((function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(i,16):i())}))}()},_updateController:function(t,e,n){var i=this._controller,r=this._controllerHost,s=this.group;i.setPointerChecker((function(e,i,r){var o=s.getBoundingRect();return o.applyTransform(s.transform),o.contain(i,r)&&!a(e,n,t)})),"view"===t.coordinateSystem.type?(i.enable(t.get("roam")),r.zoomLimit=t.get("scaleLimit"),r.zoom=t.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(e){o.updateViewOnPan(r,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){o.updateViewOnZoom(r,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),this._updateNodeAndLinkScale(),l(t.getGraph(),u(t)),this._lineDraw.updateLayout()}),this)):i.disable()},_updateNodeAndLinkScale:function(){var t=this._model,e=t.getData(),n=u(t),i=[n,n];e.eachItemGraphicEl((function(t,e){t.attr("scale",i)}))},updateLayout:function(t){l(t.getGraph(),u(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});return u2=m}var f2,g2,v2,m2,y2,x2,_2,b2,w2={},S2={};function M2(){if(f2)return S2;f2=1;var t=NK();return t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},(function(){})),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},(function(){})),S2}var I2,T2,C2,A2={};function D2(){if(I2)return A2;I2=1;var t=mW(),e=hW(),n=i2().getCurvenessForEdge;function i(i,r){i.eachEdge((function(i,o){var a=e.retrieve3(i.getModel().get("lineStyle.curveness"),-n(i,r,o,!0),0),s=t.clone(i.node1.getLayout()),l=t.clone(i.node2.getLayout()),u=[s,l];+a&&u.push([(s[0]+l[0])/2-(s[1]-l[1])*a,(s[1]+l[1])/2-(l[0]-s[0])*a]),i.setLayout(u)}))}return A2.simpleLayout=function(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode((function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])})),i(n,t)}},A2.simpleLayoutEdge=i,A2}var L2,k2,P2,O2={};function R2(){if(L2)return O2;L2=1;var t=mW(),e=d2(),n=e.getSymbolSize,i=e.getNodeGlobalScale,r=hW(),o=i2().getCurvenessForEdge,a=Math.PI,s=[];var l={value:function(t,e,n,i,r,o,a,s){var l=0,u=i.getSum("value"),h=2*Math.PI/(u||s);n.eachNode((function(t){var e=t.getValue("value"),n=h*(u?e:1)/2;l+=n,t.setLayout([r*Math.cos(l)+o,r*Math.sin(l)+a]),l+=n}))},symbolSize:function(t,e,r,o,l,u,h,c){var d=0;s.length=c;var p=i(t);r.eachNode((function(t){var e=n(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=p;var i=Math.asin(e/2/l);isNaN(i)&&(i=a/2),s[t.dataIndex]=i,d+=2*i}));var f=(2*a-d)/c/2,g=0;r.eachNode((function(t){var e=f+s[t.dataIndex];g+=e,t.setLayout([l*Math.cos(g)+u,l*Math.sin(g)+h]),g+=e}))}};return O2.circularLayout=function(e,n){var i=e.coordinateSystem;if(!i||"view"===i.type){var a=i.getBoundingRect(),s=e.getData(),u=s.graph,h=a.width/2+a.x,c=a.height/2+a.y,d=Math.min(a.width,a.height)/2,p=s.count();s.setLayout({cx:h,cy:c}),p&&(l[n](e,i,u,s,d,h,c,p),u.eachEdge((function(n,i){var a,s=r.retrieve3(n.getModel().get("lineStyle.curveness"),o(n,e,i),0),l=t.clone(n.node1.getLayout()),u=t.clone(n.node2.getLayout()),d=(l[0]+u[0])/2,p=(l[1]+u[1])/2;+s&&(a=[h*(s*=3)+d*(1-s),c*s+p*(1-s)]),n.setLayout([l,u,a])})))}},O2}var N2,E2,z2,V2,B2,G2,F2={};function H2(){if(z2)return E2;z2=1;var t=function(){if(N2)return F2;N2=1;var t=mW(),e=t.scaleAndAdd;return F2.forceLayout=function(n,i,r){for(var o=r.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],u=null==r.gravity?.1:r.gravity,h=0;h<n.length;h++){var c=n[h];c.p||(c.p=t.create(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),c.pp=t.clone(c.p),c.edges=null}var d=null==r.friction?.6:r.friction,p=d;return{warmUp:function(){p=.8*d},setFixed:function(t){n[t].fixed=!0},setUnfixed:function(t){n[t].fixed=!1},step:function(r){for(var o=[],a=n.length,s=0;s<i.length;s++){var h=i[s];if(!h.ignoreForceLayout){var c=h.n1,d=h.n2;t.sub(o,d.p,c.p);var f=t.len(o)-h.d,g=d.w/(c.w+d.w);isNaN(g)&&(g=0),t.normalize(o,o),!c.fixed&&e(c.p,c.p,o,g*f*p),!d.fixed&&e(d.p,d.p,o,-(1-g)*f*p)}}for(s=0;s<a;s++)(x=n[s]).fixed||(t.sub(o,l,x.p),e(x.p,x.p,o,u*p));for(s=0;s<a;s++){c=n[s];for(var v=s+1;v<a;v++){d=n[v],t.sub(o,d.p,c.p),0===(f=t.len(o))&&(t.set(o,Math.random()-.5,Math.random()-.5),f=1);var m=(c.rep+d.rep)/f/f;!c.fixed&&e(c.pp,c.pp,o,m),!d.fixed&&e(d.pp,d.pp,o,-m)}}var y=[];for(s=0;s<a;s++){var x;(x=n[s]).fixed||(t.sub(y,x.p,x.pp),e(x.p,x.p,y,p),t.copy(x.pp,x.p))}p*=.992,r&&r(n,i,p<.01)}}},F2}(),e=t.forceLayout,n=D2().simpleLayout,i=R2().circularLayout,r=MX().linearMap,o=mW(),a=hW(),s=i2().getCurvenessForEdge;return E2=function(t){t.eachSeriesByType("graph",(function(t){if(!(y=t.coordinateSystem)||"view"===y.type)if("force"===t.get("layout")){var l=t.preservedPoints||{},u=t.getGraph(),h=u.data,c=u.edgeData,d=t.getModel("force"),p=d.get("initLayout");t.preservedPoints?h.each((function(t){var e=h.getId(t);h.setItemLayout(t,l[e]||[NaN,NaN])})):p&&"none"!==p?"circular"===p&&i(t,"value"):n(t);var f=h.getDataExtent("value"),g=c.getDataExtent("value"),v=d.get("repulsion"),m=d.get("edgeLength");a.isArray(v)||(v=[v,v]),a.isArray(m)||(m=[m,m]),m=[m[1],m[0]];var y,x=h.mapArray("value",(function(t,e){var n=h.getItemLayout(e),i=r(t,f,v);return isNaN(i)&&(i=(v[0]+v[1])/2),{w:i,rep:i,fixed:h.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),_=c.mapArray("value",(function(e,n){var i=u.getEdgeByIndex(n),o=r(e,g,m);isNaN(o)&&(o=(m[0]+m[1])/2);var l=i.getModel(),h=a.retrieve3(l.get("lineStyle.curveness"),-s(i,t,n,!0),0);return{n1:x[i.node1.dataIndex],n2:x[i.node2.dataIndex],d:o,curveness:h,ignoreForceLayout:l.get("ignoreForceLayout")}})),b=(y=t.coordinateSystem).getBoundingRect(),w=e(x,_,{rect:b,gravity:d.get("gravity"),friction:d.get("friction")}),S=w.step;w.step=function(t){for(var e=0,n=x.length;e<n;e++)x[e].fixed&&o.copy(x[e].p,u.getNodeByIndex(e).getLayout());S((function(e,n,i){for(var r=0,a=e.length;r<a;r++)e[r].fixed||u.getNodeByIndex(r).setLayout(e[r].p),l[h.getId(r)]=e[r].p;for(r=0,a=n.length;r<a;r++){var s=n[r],c=u.getEdgeByIndex(r),d=s.n1.p,p=s.n2.p,f=c.getLayout();(f=f?f.slice():[])[0]=f[0]||[],f[1]=f[1]||[],o.copy(f[0],d),o.copy(f[1],p),+s.curveness&&(f[2]=[(d[0]+p[0])/2-(d[1]-p[1])*s.curveness,(d[1]+p[1])/2-(p[0]-d[0])*s.curveness]),c.setLayout(f)}t&&t(i)}))},t.forceLayout=w,t.preservedPoints=l,w.step()}else t.forceLayout=null}))},E2}function W2(){if(B2)return V2;B2=1;var t=G0(),e=zX().getLayoutRect,n=zY();return V2=function(i,r){var o=[];return i.eachSeriesByType("graph",(function(i){var a=i.get("coordinateSystem");if(!a||"view"===a){var s=i.getData(),l=s.mapArray((function(t){var e=s.getItemModel(t);return[+e.get("x"),+e.get("y")]})),u=[],h=[];n.fromPoints(l,u,h),h[0]-u[0]==0&&(h[0]+=1,u[0]-=1),h[1]-u[1]==0&&(h[1]+=1,u[1]-=1);var c=(h[0]-u[0])/(h[1]-u[1]),d=function(t,n,i){var r=t.getBoxLayoutParams();return r.aspect=i,e(r,{width:n.getWidth(),height:n.getHeight()})}(i,r,c);isNaN(c)&&(u=[d.x,d.y],h=[d.x+d.width,d.y+d.height]);var p=h[0]-u[0],f=h[1]-u[1],g=d.width,v=d.height,m=i.coordinateSystem=new t;m.zoomLimit=i.get("scaleLimit"),m.setBoundingRect(u[0],u[1],p,f),m.setViewRect(d.x,d.y,g,v),m.setCenter(i.get("center")),m.setZoom(i.get("zoom")),o.push(m)}})),o}}function U2(){if(G2)return Y1;G2=1;var t=NK();!function(){if(q1)return j1;q1=1;var t=NK(),e=Aq(),n=hW(),i=mY().defaultEmphasis,r=mX(),o=EX().encodeHTML,a=Z1(),s=KJ(),l=i2(),u=l.initCurvenessList,h=l.createEdgeMapForCurveness,c=t.extendSeriesModel({type:"series.graph",init:function(t){c.superApply(this,"init",arguments);var e=this;function n(){return e._categoriesData}this.legendVisualProvider=new s(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeOption:function(t){c.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(t){c.superApply(this,"mergeDefaultAndTheme",arguments),i(t,["edgeLabel"],["show"])},getInitialData:function(t,e){var i=t.edges||t.links||[],o=t.data||t.nodes||[],s=this;if(o&&i){u(this);var l=a(o,i,this,!0,(function(t,n){t.wrapMethod("getItemModel",(function(t){var e=s._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t}));var i=s.getModel("edgeLabel"),o=new r({label:i.option},i.parentModel,e),a=s.getModel("emphasis.edgeLabel"),l=new r({emphasis:{label:a.option}},a.parentModel,e);function u(t){return(t=this.parsePath(t))&&"label"===t[0]?o:t&&"emphasis"===t[0]&&"label"===t[1]?l:this.parentModel}n.wrapMethod("getItemModel",(function(t){return t.customizeGetParent(u),t}))}));return n.each(l.edges,(function(t){h(t.node1,t.node2,this,t.dataIndex)}),this),l.data}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),a=i.graph.getEdgeByIndex(t),s=i.getName(a.node1.dataIndex),l=i.getName(a.node2.dataIndex),u=[];return null!=s&&u.push(s),null!=l&&u.push(l),u=o(u.join(" > ")),r.value&&(u+=" : "+o(r.value)),u}return c.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=n.map(this.option.categories||[],(function(t){return null!=t.value?t:n.extend({value:0},t)})),i=new e(["value"],this);i.initData(t),this._categoriesData=i,this._categoriesModels=i.mapArray((function(t){return i.getItemModel(t,!0)}))},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return c.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{label:{show:!0}}}});j1=c}(),p2(),function(){if(g2)return w2;g2=1;var t=NK(),e=V0().updateCenterAndZoom;M2(),t.registerAction({type:"graphRoam",event:"graphRoam",update:"none"},(function(t,n){n.eachComponent({mainType:"series",query:t},(function(n){var i=n.coordinateSystem,r=e(i,t);n.setCenter&&n.setCenter(r.center),n.setZoom&&n.setZoom(r.zoom)}))}))}();var e=(m2||(m2=1,v2=function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getGraph().data,r=n.mapArray(n.getName);i.filterSelf((function(t){var n=i.getItemModel(t).getShallow("category");if(null!=n){"number"==typeof n&&(n=r[n]);for(var o=0;o<e.length;o++)if(!e[o].isSelected(n))return!1}return!0}))}),this)}),v2),n=f$(),i=(x2||(x2=1,y2=function(t){var e={};t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getData(),r={};n.each((function(i){var o=n.getName(i);r["ec-"+o]=i;var a=n.getItemModel(i),s=a.get("itemStyle.color")||t.getColorFromPalette(o,e);n.setItemVisual(i,"color",s);for(var l=["opacity","symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var h=a.getShallow(l[u],!0);null!=h&&n.setItemVisual(i,l[u],h)}})),n.count()&&i.each((function(t){var e=i.getItemModel(t).getShallow("category");if(null!=e){"string"==typeof e&&(e=r["ec-"+e]);for(var o=["color","opacity","symbol","symbolSize","symbolKeepAspect"],a=0;a<o.length;a++)null==i.getItemVisual(t,o[a],!0)&&i.setItemVisual(t,o[a],n.getItemVisual(e,o[a]))}}))}))}),y2),r=function(){if(b2)return _2;function t(t){return t instanceof Array||(t=[t,t]),t}return b2=1,_2=function(e){e.eachSeriesByType("graph",(function(e){var n=e.getGraph(),i=e.getEdgeData(),r=t(e.get("edgeSymbol")),o=t(e.get("edgeSymbolSize")),a="lineStyle.color".split("."),s="lineStyle.opacity".split(".");i.setVisual("fromSymbol",r&&r[0]),i.setVisual("toSymbol",r&&r[1]),i.setVisual("fromSymbolSize",o&&o[0]),i.setVisual("toSymbolSize",o&&o[1]),i.setVisual("color",e.get(a)),i.setVisual("opacity",e.get(s)),i.each((function(e){var r=i.getItemModel(e),o=n.getEdgeByIndex(e),l=t(r.getShallow("symbol",!0)),u=t(r.getShallow("symbolSize",!0)),h=r.get(a),c=r.get(s);switch(h){case"source":h=o.node1.getVisual("color");break;case"target":h=o.node2.getVisual("color")}l[0]&&o.setVisual("fromSymbol",l[0]),l[1]&&o.setVisual("toSymbol",l[1]),u[0]&&o.setVisual("fromSymbolSize",u[0]),u[1]&&o.setVisual("toSymbolSize",u[1]),o.setVisual("color",h),o.setVisual("opacity",c)}))}))}}(),o=function(){if(C2)return T2;C2=1;var t=hW().each,e=D2(),n=e.simpleLayout,i=e.simpleLayoutEdge;return T2=function(e,r){e.eachSeriesByType("graph",(function(e){var r=e.get("layout"),o=e.coordinateSystem;if(o&&"view"!==o.type){var a=e.getData(),s=[];t(o.dimensions,(function(t){s=s.concat(a.mapDimension(t,!0))}));for(var l=0;l<a.count();l++){for(var u=[],h=!1,c=0;c<s.length;c++){var d=a.get(s[c],l);isNaN(d)||(h=!0),u.push(d)}h?a.setItemLayout(l,o.dataToPoint(u)):a.setItemLayout(l,[NaN,NaN])}i(a.graph,e)}else r&&"none"!==r||n(e)}))},T2}(),a=function(){if(P2)return k2;P2=1;var t=R2().circularLayout;return k2=function(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&t(e,"symbolSize")}))}}(),s=H2(),l=W2();return t.registerProcessor(e),t.registerVisual(n("graph","circle",null)),t.registerVisual(i),t.registerVisual(r),t.registerLayout(o),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,a),t.registerLayout(s),t.registerCoordinateSystem("graphView",{create:l}),Y1}var Y2,Z2,X2,j2,q2,K2,$2,J2={};function Q2(){if(K2)return q2;K2=1;var t=function(){if(j2)return X2;j2=1;var t=xZ().extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(t,e){var n=Math.cos,i=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)}});return X2=t}(),e=vX(),n=Rj(),i=MX(),r=i.parsePercent,o=i.round,a=i.linearMap;function s(t,e){return e&&("string"==typeof e?t=e.replace("{value}",null!=t?t:""):"function"==typeof e&&(t=e(t))),t}var l=2*Math.PI,u=n.extend({type:"gauge",render:function(t,e,n){this.group.removeAll();var i=t.get("axisLine.lineStyle.color"),o=function(t,e){var n=t.get("center"),i=e.getWidth(),o=e.getHeight(),a=Math.min(i,o);return{cx:r(n[0],e.getWidth()),cy:r(n[1],e.getHeight()),r:r(t.get("radius"),a/2)}}(t,n);this._renderMain(t,e,n,i,o)},dispose:function(){},_renderMain:function(t,n,i,r,o){for(var a=this.group,s=t.getModel("axisLine"),u=s.getModel("lineStyle"),h=t.get("clockwise"),c=-t.get("startAngle")/180*Math.PI,d=((m=-t.get("endAngle")/180*Math.PI)-c)%l,p=c,f=u.get("width"),g=s.get("show"),v=0;g&&v<r.length;v++){var m=c+d*Math.min(Math.max(r[v][0],0),1),y=new e.Sector({shape:{startAngle:p,endAngle:m,cx:o.cx,cy:o.cy,clockwise:h,r0:o.r-f,r:o.r},silent:!0});y.setStyle({fill:r[v][1]}),y.setStyle(u.getLineStyle(["color","borderWidth","borderColor"])),a.add(y),p=m}var x=function(t){if(t<=0)return r[0][1];for(var e=0;e<r.length;e++)if(r[e][0]>=t&&(0===e?0:r[e-1][0])<t)return r[e][1];return r[e-1][1]};if(!h){var _=c;c=m,m=_}this._renderTicks(t,n,i,x,o,c,m,h),this._renderPointer(t,n,i,x,o,c,m,h),this._renderTitle(t,n,i,x,o),this._renderDetail(t,n,i,x,o)},_renderTicks:function(t,n,i,a,l,u,h,c){for(var d=this.group,p=l.cx,f=l.cy,g=l.r,v=+t.get("min"),m=+t.get("max"),y=t.getModel("splitLine"),x=t.getModel("axisTick"),_=t.getModel("axisLabel"),b=t.get("splitNumber"),w=x.get("splitNumber"),S=r(y.get("length"),g),M=r(x.get("length"),g),I=u,T=(h-u)/b,C=T/w,A=y.getModel("lineStyle").getLineStyle(),D=x.getModel("lineStyle").getLineStyle(),L=0;L<=b;L++){var k=Math.cos(I),P=Math.sin(I);if(y.get("show")){var O=new e.Line({shape:{x1:k*g+p,y1:P*g+f,x2:k*(g-S)+p,y2:P*(g-S)+f},style:A,silent:!0});"auto"===A.stroke&&O.setStyle({stroke:a(L/b)}),d.add(O)}if(_.get("show")){var R=s(o(L/b*(m-v)+v),_.get("formatter")),N=_.get("distance"),E=a(L/b);d.add(new e.Text({style:e.setTextStyle({},_,{text:R,x:k*(g-S-N)+p,y:P*(g-S-N)+f,textVerticalAlign:P<-.4?"top":P>.4?"bottom":"middle",textAlign:k<-.4?"left":k>.4?"right":"center"},{autoColor:E}),silent:!0}))}if(x.get("show")&&L!==b){for(var z=0;z<=w;z++){k=Math.cos(I),P=Math.sin(I);var V=new e.Line({shape:{x1:k*g+p,y1:P*g+f,x2:k*(g-M)+p,y2:P*(g-M)+f},silent:!0,style:D});"auto"===D.stroke&&V.setStyle({stroke:a((L+z/w)/b)}),d.add(V),I+=C}I-=C}else I+=T}},_renderPointer:function(n,i,o,s,l,u,h,c){var d=this.group,p=this._data;if(n.get("pointer.show")){var f=[+n.get("min"),+n.get("max")],g=[u,h],v=n.getData(),m=v.mapDimension("value");v.diff(p).add((function(i){var r=new t({shape:{angle:u}});e.initProps(r,{shape:{angle:a(v.get(m,i),f,g,!0)}},n),d.add(r),v.setItemGraphicEl(i,r)})).update((function(t,i){var r=p.getItemGraphicEl(i);e.updateProps(r,{shape:{angle:a(v.get(m,t),f,g,!0)}},n),d.add(r),v.setItemGraphicEl(t,r)})).remove((function(t){var e=p.getItemGraphicEl(t);d.remove(e)})).execute(),v.eachItemGraphicEl((function(t,n){var i=v.getItemModel(n),o=i.getModel("pointer");t.setShape({x:l.cx,y:l.cy,width:r(o.get("width"),l.r),r:r(o.get("length"),l.r)}),t.useStyle(i.getModel("itemStyle").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",s(a(v.get(m,n),f,[0,1],!0))),e.setHoverStyle(t,i.getModel("emphasis.itemStyle").getItemStyle())})),this._data=v}else p&&p.eachItemGraphicEl((function(t){d.remove(t)}))},_renderTitle:function(t,n,i,o,s){var l=t.getData(),u=l.mapDimension("value"),h=t.getModel("title");if(h.get("show")){var c=h.get("offsetCenter"),d=s.cx+r(c[0],s.r),p=s.cy+r(c[1],s.r),f=+t.get("min"),g=+t.get("max"),v=t.getData().get(u,0),m=o(a(v,[f,g],[0,1],!0));this.group.add(new e.Text({silent:!0,style:e.setTextStyle({},h,{x:d,y:p,text:l.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:m,forceRich:!0})}))}},_renderDetail:function(t,n,i,o,l){var u=t.getModel("detail"),h=+t.get("min"),c=+t.get("max");if(u.get("show")){var d=u.get("offsetCenter"),p=l.cx+r(d[0],l.r),f=l.cy+r(d[1],l.r),g=r(u.get("width"),l.r),v=r(u.get("height"),l.r),m=t.getData(),y=m.get(m.mapDimension("value"),0),x=o(a(y,[h,c],[0,1],!0));this.group.add(new e.Text({silent:!0,style:e.setTextStyle({},u,{x:p,y:f,text:s(y,u.get("formatter")),textWidth:isNaN(g)?null:g,textHeight:isNaN(v)?null:v,textAlign:"center",textVerticalAlign:"middle"},{autoColor:x,forceRich:!0})}))}}});return q2=u}function t5(){return $2||($2=1,function(){if(Z2)return Y2;Z2=1;var t=jJ(),e=kj().extend({type:"series.gauge",getInitialData:function(e,n){return t(this,["value"])},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}}});Y2=e}(),Q2()),J2}var e5,n5,i5,r5,o5,a5,s5,l5={};function u5(){if(a5)return o5;a5=1,tW().__DEV__;var t=zX(),e=MX(),n=e.parsePercent,i=e.linearMap;return o5=function(e,r,o){e.eachSeriesByType("funnel",(function(e){var o=e.getData(),a=o.mapDimension("value"),s=e.get("sort"),l=function(e,n){return t.getLayoutRect(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})}(e,r),u=function(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,(function(t){return t})),r=[],o="ascending"===e,a=0,s=t.count();a<s;a++)r[a]=a;return"function"==typeof e?r.sort(e):"none"!==e&&r.sort((function(t,e){return o?i[t]-i[e]:i[e]-i[t]})),r}(o,s),h=e.get("orient"),c=l.width,d=l.height,p=l.x,f=l.y,g="horizontal"===h?[n(e.get("minSize"),d),n(e.get("maxSize"),d)]:[n(e.get("minSize"),c),n(e.get("maxSize"),c)],v=o.getDataExtent(a),m=e.get("min"),y=e.get("max");null==m&&(m=Math.min(v[0],0)),null==y&&(y=v[1]);var x=e.get("funnelAlign"),_=e.get("gap"),b=(("horizontal"===h?c:d)-_*(o.count()-1))/o.count(),w=function(t,e){if("horizontal"===h){var n,r=o.get(a,t)||0,s=i(r,[m,y],g,!0);switch(x){case"top":n=f;break;case"center":n=f+(d-s)/2;break;case"bottom":n=f+(d-s)}return[[e,n],[e,n+s]]}r=o.get(a,t)||0;var l,u=i(r,[m,y],g,!0);switch(x){case"left":l=p;break;case"center":l=p+(c-u)/2;break;case"right":l=p+c-u}return[[l,e],[l+u,e]]};"ascending"===s&&(b=-b,_=-_,"horizontal"===h?p+=c:f+=d,u=u.reverse());for(var S=0;S<u.length;S++){var M=u[S],I=u[S+1],T=o.getItemModel(M);if("horizontal"===h){var C=T.get("itemStyle.width");null==C?C=b:(C=n(C,c),"ascending"===s&&(C=-C));var A=w(M,p),D=w(I,p+C);p+=C+_,o.setItemLayout(M,{points:A.concat(D.slice().reverse())})}else{var L=T.get("itemStyle.height");null==L?L=b:(L=n(L,d),"ascending"===s&&(L=-L));A=w(M,"horizontal"===h?p:f),D=w(I,"horizontal"===h?p+C:f+L);f+=L+_,o.setItemLayout(M,{points:A.concat(D.slice().reverse())})}}!function(t){t.each((function(e){var n,i,r,o,a=t.getItemModel(e),s=a.getModel("label").get("position"),l=a.get("orient"),u=a.getModel("labelLine"),h=t.getItemLayout(e),c=h.points,d="inner"===s||"inside"===s||"center"===s||"insideLeft"===s||"insideRight"===s;if(d)"insideLeft"===s?(i=(c[0][0]+c[3][0])/2+5,r=(c[0][1]+c[3][1])/2,n="left"):"insideRight"===s?(i=(c[1][0]+c[2][0])/2-5,r=(c[1][1]+c[2][1])/2,n="right"):(i=(c[0][0]+c[1][0]+c[2][0]+c[3][0])/4,r=(c[0][1]+c[1][1]+c[2][1]+c[3][1])/4,n="center"),o=[[i,r],[i,r]];else{var p,f,g,v,m=u.get("length");"left"===s?(p=(c[3][0]+c[0][0])/2,f=(c[3][1]+c[0][1])/2,i=(g=p-m)-5,n="right"):"right"===s?(p=(c[1][0]+c[2][0])/2,f=(c[1][1]+c[2][1])/2,i=(g=p+m)+5,n="left"):"top"===s?(p=(c[3][0]+c[0][0])/2,r=(v=(f=(c[3][1]+c[0][1])/2)-m)-5,n="center"):"bottom"===s?(p=(c[1][0]+c[2][0])/2,r=(v=(f=(c[1][1]+c[2][1])/2)+m)+5,n="center"):"rightTop"===s?(p="horizontal"===l?c[3][0]:c[1][0],f="horizontal"===l?c[3][1]:c[1][1],"horizontal"===l?(r=(v=f-m)-5,n="center"):(i=(g=p+m)+5,n="top")):"rightBottom"===s?(p=c[2][0],f=c[2][1],"horizontal"===l?(r=(v=f+m)+5,n="center"):(i=(g=p+m)+5,n="bottom")):"leftTop"===s?(p=c[0][0],f="horizontal"===l?c[0][1]:c[1][1],"horizontal"===l?(r=(v=f-m)-5,n="center"):(i=(g=p-m)-5,n="right")):"leftBottom"===s?(p="horizontal"===l?c[1][0]:c[3][0],f="horizontal"===l?c[1][1]:c[2][1],"horizontal"===l?(r=(v=f+m)+5,n="center"):(i=(g=p-m)-5,n="right")):(p=(c[1][0]+c[2][0])/2,f=(c[1][1]+c[2][1])/2,"horizontal"===l?(r=(v=f+m)+5,n="center"):(i=(g=p+m)+5,n="left")),"horizontal"===l?i=g=p:r=v=f,o=[[p,f],[g,v]]}h.label={linePoints:o,x:i,y:r,verticalAlign:"middle",textAlign:n,inside:d}}))}(o)}))},o5}function h5(){if(s5)return l5;s5=1;var t=NK();!function(){if(n5)return e5;n5=1;var t=NK(),e=hW(),n=jJ(),i=mY().defaultEmphasis,r=lj().makeSeriesEncodeForNameBased,o=KJ(),a=t.extendSeriesModel({type:"series.funnel",init:function(t){a.superApply(this,"init",arguments),this.legendVisualProvider=new o(e.bind(this.getData,this),e.bind(this.getRawData,this)),this._defaultLabelLine(t)},getInitialData:function(t,i){return n(this,{coordDimensions:["value"],encodeDefaulter:e.curry(r,this)})},_defaultLabelLine:function(t){i(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},getDataParams:function(t){var e=this.getData(),n=a.superCall(this,"getDataParams",t),i=e.mapDimension("value"),r=e.getSum(i);return n.percent=r?+(e.get(i,t)/r*100).toFixed(2):0,n.$vars.push("percent"),n},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}});e5=a}(),function(){if(r5)return i5;r5=1;var t=vX(),e=hW(),n=Rj();function i(e,n){t.Group.call(this);var i=new t.Polygon,r=new t.Polyline,o=new t.Text;this.add(i),this.add(r),this.add(o),this.highDownOnUpdate=function(t,e){"emphasis"===e?(r.ignore=r.hoverIgnore,o.ignore=o.hoverIgnore):(r.ignore=r.normalIgnore,o.ignore=o.normalIgnore)},this.updateData(e,n,!0)}var r=i.prototype,o=["itemStyle","opacity"];r.updateData=function(n,i,r){var a=this.childAt(0),s=n.hostModel,l=n.getItemModel(i),u=n.getItemLayout(i),h=n.getItemModel(i).get(o);h=null==h?1:h,a.useStyle({}),r?(a.setShape({points:u.points}),a.setStyle({opacity:0}),t.initProps(a,{style:{opacity:h}},s,i)):t.updateProps(a,{style:{opacity:h},shape:{points:u.points}},s,i);var c=l.getModel("itemStyle"),d=n.getItemVisual(i,"color");a.setStyle(e.defaults({lineJoin:"round",fill:d},c.getItemStyle(["opacity"]))),a.hoverStyle=c.getModel("emphasis").getItemStyle(),this._updateLabel(n,i),t.setHoverStyle(this)},r._updateLabel=function(e,n){var i=this.childAt(1),r=this.childAt(2),o=e.hostModel,a=e.getItemModel(n),s=e.getItemLayout(n).label,l=e.getItemVisual(n,"color");t.updateProps(i,{shape:{points:s.linePoints||s.linePoints}},o,n),t.updateProps(r,{style:{x:s.x,y:s.y}},o,n),r.attr({rotation:s.rotation,origin:[s.x,s.y],z2:10});var u=a.getModel("label"),h=a.getModel("emphasis.label"),c=a.getModel("labelLine"),d=a.getModel("emphasis.labelLine");l=e.getItemVisual(n,"color"),t.setLabelStyle(r.style,r.hoverStyle={},u,h,{labelFetcher:e.hostModel,labelDataIndex:n,defaultText:e.getName(n),autoColor:l,useInsideStyle:!!s.inside},{textAlign:s.textAlign,textVerticalAlign:s.verticalAlign}),r.ignore=r.normalIgnore=!u.get("show"),r.hoverIgnore=!h.get("show"),i.ignore=i.normalIgnore=!c.get("show"),i.hoverIgnore=!d.get("show"),i.setStyle({stroke:l}),i.setStyle(c.getModel("lineStyle").getLineStyle()),i.hoverStyle=d.getModel("lineStyle").getLineStyle()},e.inherits(i,t.Group);var a=n.extend({type:"funnel",render:function(t,e,n){var r=t.getData(),o=this._data,a=this.group;r.diff(o).add((function(t){var e=new i(r,t);r.setItemGraphicEl(t,e),a.add(e)})).update((function(t,e){var n=o.getItemGraphicEl(e);n.updateData(r,t),a.add(n),r.setItemGraphicEl(t,n)})).remove((function(t){var e=o.getItemGraphicEl(t);a.remove(e)})).execute(),this._data=r},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});i5=a}();var e=JJ(),n=u5(),i=eQ();return t.registerVisual(e("funnel")),t.registerLayout(n),t.registerProcessor(i("funnel")),l5}var c5,d5,p5={},f5={};function g5(){if(d5)return c5;d5=1;var t=hW(),e=mY();return c5=function(n){!function(e){if(e.parallel)return;var n=!1;t.each(e.series,(function(t){t&&"parallel"===t.type&&(n=!0)})),n&&(e.parallel=[{}])}(n),function(n){var i=e.normalizeToArray(n.parallelAxis);t.each(i,(function(i){if(t.isObject(i)){var r=i.parallelIndex||0,o=e.normalizeToArray(n.parallel)[r];o&&o.parallelAxisDefault&&t.merge(i,o.parallelAxisDefault,!1)}}))}(n)}}var v5,m5,y5,x5,_5,b5,w5,S5,M5,I5,T5,C5={};function A5(){if(x5)return y5;function t(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function e(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}return x5=1,y5=function(n,i,r,o,a,s){n=n||0;var l=r[1]-r[0];if(null!=a&&(a=e(a,[0,l])),null!=s&&(s=Math.max(s,null!=a?a:0)),"all"===o){var u=Math.abs(i[1]-i[0]);u=e(u,[0,l]),a=s=e(u,[a,s]),o=0}i[0]=e(i[0],r),i[1]=e(i[1],r);var h=t(i,o);i[o]+=n;var c=a||0,d=r.slice();h.sign<0?d[0]+=c:d[1]-=c,i[o]=e(i[o],d);var p=t(i,o);return null!=a&&(p.sign!==h.sign||p.span<a)&&(i[1-o]=i[o]+h.sign*a),p=t(i,o),null!=s&&p.span>s&&(i[1-o]=i[o]+p.sign*s),i}}function D5(){if(b5)return _5;b5=1;var t=hW(),e=GW(),n=zX(),i=cK(),r=function(){if(m5)return v5;m5=1;var t=hW(),e=OK(),n=function(t,n,i,r,o){e.call(this,t,n,i),this.type=r||"value",this.axisIndex=o};return n.prototype={constructor:n,model:null,isHorizontal:function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")}},t.inherits(n,e),v5=n}(),o=vX(),a=MX(),s=A5(),l=t.each,u=Math.min,h=Math.max,c=Math.floor,d=Math.ceil,p=a.round,f=Math.PI;function g(e,n,i){this._axesMap=t.createHashMap(),this._axesLayout={},this.dimensions=e.dimensions,this._rect,this._model=e,this._init(e,n,i)}function v(t,e){return u(h(t,e[0]),e[1])}function m(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function y(t,e){var n,i,r=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,h=!1;return t<l[0]?(n=t*s,i=s):t<=l[1]?(n=e.axisExpandWindow0Pos+t*o-e.axisExpandWindow[0],u=o,h=!0):(n=r-(a-1-t)*s,i=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:h,nameTruncateMaxWidth:i}}return g.prototype={type:"parallel",constructor:g,_init:function(t,e,n){var o=t.dimensions,a=t.parallelAxisIndex;l(o,(function(t,n){var o=a[n],s=e.getComponent("parallelAxis",o),l=this._axesMap.set(t,new r(t,i.createScaleByModel(s),[0,0],s.get("type"),o)),u="category"===l.type;l.onBand=u&&s.get("boundaryGap"),l.inverse=s.get("inverse"),s.axis=l,l.model=s,l.coordinateSystem=s.coordinateSystem=this}),this)},update:function(t,e){this._updateAxesFromSeries(this._model,t)},containPoint:function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,r=e.pixelDimIndex,o=t[1-r],a=t[r];return o>=n&&o<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var r=n.getData();l(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(r,r.mapDimension(t)),i.niceScaleExtent(e.scale,e.model)}),this)}}),this)},resize:function(t,e){this._rect=n.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var t,e=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],u=this.dimensions.length,h=v(e.get("axisExpandWidth"),l),f=v(e.get("axisExpandCount")||0,[0,u]),g=e.get("axisExpandable")&&u>3&&u>f&&f>1&&h>0&&s>0,m=e.get("axisExpandWindow");m?(t=v(m[1]-m[0],l),m[1]=m[0]+t):(t=v(h*(f-1),l),(m=[h*(e.get("axisExpandCenter")||c(u/2))-t/2])[1]=m[0]+t);var y=(s-t)/(u-f);y<3&&(y=0);var x=[c(p(m[0]/h,1))+1,d(p(m[1]/h,1))-1],_=y/h*m[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:g,axisExpandWidth:h,axisCollapseWidth:y,axisExpandWindow:m,axisCount:u,winInnerIndices:x,axisExpandWindow0Pos:_}},_layoutAxes:function(){var t=this._rect,n=this._axesMap,i=this.dimensions,r=this._makeLayoutInfo(),o=r.layout;n.each((function(t){var e=[0,r.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),l(i,(function(n,i){var a=(r.axisExpandable?y:m)(i,r),s={horizontal:{x:a.position,y:r.axisLength},vertical:{x:0,y:a.position}},l={horizontal:f/2,vertical:0},u=[s[o].x+t.x,s[o].y+t.y],h=l[o],c=e.create();e.rotate(c,c,h),e.translate(c,c,u),this._axesLayout[n]={position:u,rotation:h,transform:c,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},getAxis:function(t){return this._axesMap.get(t)},dataToPoint:function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},eachActiveState:function(e,n,i,r){null==i&&(i=0),null==r&&(r=e.count());var o=this._axesMap,a=this.dimensions,s=[],l=[];t.each(a,(function(t){s.push(e.mapDimension(t)),l.push(o.get(t).model)}));for(var u=this.hasAxisBrushed(),h=i;h<r;h++){var c;if(u){c="active";for(var d=e.getValues(s,h),p=0,f=a.length;p<f;p++){if("inactive"===l[p].getActiveState(d[p])){c="inactive";break}}}else c="normal";n(c,h)}},hasAxisBrushed:function(){for(var t=this.dimensions,e=this._axesMap,n=!1,i=0,r=t.length;i<r;i++)"normal"!==e.get(t[i]).model.getActiveState()&&(n=!0);return n},axisCoordToPoint:function(t,e){var n=this._axesLayout[e];return o.applyTransform([t,0],n.transform)},getAxisLayout:function(e){return t.clone(this._axesLayout[e])},getSlidedAxisExpandWindow:function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,i=e.axisExpandWindow.slice(),r=i[1]-i[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var a,l=t[n]-e.layoutBase-e.axisExpandWindow0Pos,c="slide",d=e.axisCollapseWidth,p=this._model.get("axisExpandSlideTriggerArea"),f=null!=p[0];if(d)f&&d&&l<r*p[0]?(c="jump",a=l-r*p[2]):f&&d&&l>r*(1-p[0])?(c="jump",a=l-r*(1-p[2])):(a=l-r*p[1])>=0&&(a=l-r*(1-p[1]))<=0&&(a=0),(a*=e.axisExpandWidth/d)?s(a,i,o,"all"):c="none";else{r=i[1]-i[0];(i=[h(0,o[1]*l/r-r/2)])[1]=u(o[1],i[0]+r),i[0]=i[1]-r}return{axisExpandWindow:i,behavior:c}}},_5=g}function L5(){if(w5)return C5;w5=1;var t=D5();return cj().register("parallel",{create:function(e,n){var i=[];return e.eachComponent("parallel",(function(r,o){var a=new t(r,e,n);a.name="parallel_"+o,a.resize(r,n),r.coordinateSystem=a,a.model=r,i.push(a)})),e.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var n=e.queryComponents({mainType:"parallel",index:t.get("parallelIndex"),id:t.get("parallelId")})[0];t.coordinateSystem=n.coordinateSystem}})),i}}),C5}function k5(){if(T5)return I5;T5=1;var t=hW(),e=VX();!function(){if(M5)return S5;M5=1;var t=hW(),e=VX(),n=CY(),i=N$(),r=MX(),o=dK(),a=e.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return n([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(e){var n=this.activeIntervals=t.clone(e);if(n)for(var i=n.length-1;i>=0;i--)r.asc(n[i])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;i<r;i++)if(e[i][0]<=t&&t<=e[i][1])return"active";return"inactive"}});t.merge(a.prototype,o),i("parallel",a,(function(t,e){return e.type||(e.data?"category":"value")}),{type:"value",dim:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10}),S5=a}();var n=e.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},init:function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(e){var n=this.option;e&&t.merge(n,e,!0),this._initDimensions()},contains:function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},setAxisExpand:function(e){t.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},_initDimensions:function(){var e=this.dimensions=[],n=this.parallelAxisIndex=[],i=t.filter(this.dependentModels.parallelAxis,(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);t.each(i,(function(t){e.push("dim"+t.get("dim")),n.push(t.componentIndex)}))}});return I5=n}var P5,O5,R5,N5={},E5={};function z5(){if(R5)return O5;R5=1,tW().__DEV__;var t=hW(),e=yW(),n=vX(),i=a0(),r=gq(),o=t.curry,a=t.each,s=t.map,l=Math.min,u=Math.max,h=Math.pow,c="globalPan",d={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},p={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},f={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},g=0;function v(i){e.call(this),this._zr=i,this.group=new n.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+g++,this._handlers={},a(W,(function(e,n){this._handlers[n]=t.bind(e,this)}),this)}function m(t,e){var n=Y[e.brushType].createCover(t,e);return n.__brushOption=e,_(n,e),t.group.add(n),n}function y(t,e){var n=w(e);return n.endCreating&&(n.endCreating(t,e),_(e,e.__brushOption)),e}function x(t,e){var n=e.__brushOption;w(e).updateCoverShape(t,e,n.range,n)}function _(t,e){var n=e.z;null==n&&(n=1e4),t.traverse((function(t){t.z=n,t.z2=n}))}function b(t,e){w(e).updateCommon(t,e),x(t,e)}function w(t){return Y[t.__brushOption.brushType]}function S(t,e,n){var i,r=t._panels;if(!r)return!0;var o=t._transform;return a(r,(function(t){t.isTargetByCursor(e,n,o)&&(i=t)})),i}function M(t,e){var n=t._panels;if(!n)return!0;var i=e.__brushOption.panelId;return null==i||n[i]}function I(t){var e=t._covers,n=e.length;return a(e,(function(e){t.group.remove(e)}),t),e.length=0,!!n}function T(e,n){var i=s(e._covers,(function(e){var n=e.__brushOption,i=t.clone(n.range);return{brushType:n.brushType,panelId:n.panelId,range:i}}));e.trigger("brush",i,{isEnd:!!n.isEnd,removeOnClick:!!n.removeOnClick})}function C(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function A(t,e,i,r){var s=new n.Group;return s.add(new n.Rect({name:"main",style:P(i),silent:!0,draggable:!0,cursor:"move",drift:o(t,e,s,"nswe"),ondragend:o(T,e,{isEnd:!0})})),a(r,(function(i){s.add(new n.Rect({name:i,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:o(t,e,s,i),ondragend:o(T,e,{isEnd:!0})}))})),s}function D(t,e,n,i){var r=i.brushStyle.lineWidth||0,o=u(r,6),a=n[0][0],s=n[1][0],l=a-r/2,h=s-r/2,c=n[0][1],d=n[1][1],p=c-o+r/2,f=d-o+r/2,g=c-a,v=d-s,m=g+r,y=v+r;k(t,e,"main",a,s,g,v),i.transformable&&(k(t,e,"w",l,h,o,y),k(t,e,"e",p,h,o,y),k(t,e,"n",l,h,m,o),k(t,e,"s",l,f,m,o),k(t,e,"nw",l,h,o,o),k(t,e,"ne",p,h,o,o),k(t,e,"sw",l,f,o,o),k(t,e,"se",p,f,o,o))}function L(t,e){var n=e.__brushOption,i=n.transformable,r=e.childAt(0);r.useStyle(P(n)),r.attr({silent:!i,cursor:i?"move":"default"}),a(["w","e","n","s","se","sw","ne","nw"],(function(n){var r=e.childOfName(n),o=R(t,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?p[o]+"-resize":null})}))}function k(t,e,n,i,r,o,a){var s,h,c,d,p,f=e.childOfName(n);f&&f.setShape((s=V(t,e,[[i,r],[i+o,r+a]]),h=l(s[0][0],s[1][0]),c=l(s[0][1],s[1][1]),d=u(s[0][0],s[1][0]),p=u(s[0][1],s[1][1]),{x:h,y:c,width:d-h,height:p-c}))}function P(e){return t.defaults({strokeNoScale:!0},e.brushStyle)}function O(t,e,n,i){var r=[l(t,n),l(e,i)],o=[u(t,n),u(e,i)];return[[r[0],o[0]],[r[1],o[1]]]}function R(t,e){if(e.length>1)return("e"===(i=[R(t,(e=e.split(""))[0]),R(t,e[1])])[0]||"w"===i[0])&&i.reverse(),i.join("");var i=n.transformDirection({w:"left",e:"right",n:"top",s:"bottom"}[e],function(t){return n.getTransform(t.group)}(t));return{left:"w",right:"e",top:"n",bottom:"s"}[i]}function N(t,e,n,i,r,o,s,l){var u=i.__brushOption,h=t(u.range),c=z(n,o,s);a(r.split(""),(function(t){var e=d[t];h[e[0]][e[1]]+=c[e[0]]})),u.range=e(O(h[0][0],h[1][0],h[0][1],h[1][1])),b(n,i),T(n,{isEnd:!1})}function E(t,e,n,i,r){var o=e.__brushOption.range,s=z(t,n,i);a(o,(function(t){t[0]+=s[0],t[1]+=s[1]})),b(t,e),T(t,{isEnd:!1})}function z(t,e,n){var i=t.group,r=i.transformCoordToLocal(e,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function V(e,n,i){var r=M(e,n);return r&&!0!==r?r.clipPath(i,e._transform):t.clone(i)}function B(t){var e=t.event;e.preventDefault&&e.preventDefault()}function G(t,e,n){return t.childOfName("main").contain(e,n)}function F(e,n,i,r){var o,a=e._creatingCover,s=e._creatingPanel,l=e._brushOption;if(e._track.push(i.slice()),function(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],i=e[0],r=n[0]-i[0],o=n[1]-i[1];return h(r*r+o*o,.5)>6}(e)||a){if(s&&!a){"single"===l.brushMode&&I(e);var u=t.clone(l);u.brushType=H(u.brushType,s),u.panelId=!0===s?null:s.panelId,a=e._creatingCover=m(e,u),e._covers.push(a)}if(a){var c=Y[H(e._brushType,s)];a.__brushOption.range=c.getCreatingRange(V(e,a,e._track)),r&&(y(e,a),c.updateCommon(e,a)),x(e,a),o={isEnd:r}}}else r&&"single"===l.brushMode&&l.removeOnClick&&S(e,n,i)&&I(e)&&(o={isEnd:r,removeOnClick:!0});return o}function H(t,e){return"auto"===t?e.defaultBrushType:t}v.prototype={constructor:v,enableBrush:function(e){var n,r;return this._brushType&&(r=(n=this)._zr,i.release(r,c,n._uid),function(t,e){a(e,(function(e,n){t.off(n,e)}))}(r,n._handlers),n._brushType=n._brushOption=null),e.brushType&&function(e,n){var r=e._zr;e._enableGlobalPan||i.take(r,c,e._uid);(function(t,e){a(e,(function(e,n){t.on(n,e)}))})(r,e._handlers),e._brushType=n.brushType,e._brushOption=t.merge(t.clone(f),n,!0)}(this,e),this},setPanels:function(e){if(e&&e.length){var n=this._panels={};t.each(e,(function(e){n[e.panelId]=t.clone(e)}))}else this._panels=null;return this},mount:function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({position:t.position||[0,0],rotation:t.rotation||0,scale:t.scale||[1,1]}),this._transform=e.getLocalTransform(),this},eachCover:function(t,e){a(this._covers,t,e)},updateCovers:function(e){e=t.map(e,(function(e){return t.merge(t.clone(f),e,!0)}));var n=this._covers,i=this._covers=[],o=this,a=this._creatingCover;return new r(n,e,(function(t,e){return s(t.__brushOption,e)}),s).add(l).update(l).remove((function(t){n[t]!==a&&o.group.remove(n[t])})).execute(),this;function s(t,e){return(null!=t.id?t.id:"\0-brush-index-"+e)+"-"+t.brushType}function l(t,r){var s=e[t];if(null!=r&&n[r]===a)i[t]=n[r];else{var l=i[t]=null!=r?(n[r].__brushOption=s,n[r]):y(o,m(o,s));b(o,l)}}},unmount:function(){return this.enableBrush(!1),I(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},t.mixin(v,e);var W={mousedown:function(t){if(this._dragging)U(this,t);else if(!t.target||!t.target.draggable){B(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=S(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,i=this.group.transformCoordToLocal(e,n);if(function(t,e,n){if(t._brushType&&!function(t,e,n){var i=t._zr;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}(t,e)){var i=t._zr,r=t._covers,o=S(t,e,n);if(!t._dragging)for(var a=0;a<r.length;a++){var s=r[a].__brushOption;if(o&&(!0===o||s.panelId===o.panelId)&&Y[s.brushType].contain(r[a],n[0],n[1]))return}o&&i.setCursorStyle("crosshair")}}(this,t,i),this._dragging){B(t);var r=F(this,t,i,!1);r&&T(this,r)}},mouseup:function(t){U(this,t)}};function U(t,e){if(t._dragging){B(e);var n=e.offsetX,i=e.offsetY,r=t.group.transformCoordToLocal(n,i),o=F(t,e,r,!0);t._dragging=!1,t._track=[],t._creatingCover=null,o&&T(t,o)}}var Y={lineX:Z(0),lineY:Z(1),rect:{createCover:function(t,e){return A(o(N,(function(t){return t}),(function(t){return t})),t,e,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(t){var e=C(t);return O(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,i){D(t,e,n,i)},updateCommon:L,contain:G},polygon:{createCover:function(t,e){var i=new n.Group;return i.add(new n.Polyline({name:"main",style:P(e),silent:!0})),i},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new n.Polygon({name:"main",draggable:!0,drift:o(E,t,e),ondragend:o(T,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:V(t,e,n)})},updateCommon:L,contain:G}};function Z(t){return{createCover:function(e,n){return A(o(N,(function(e){var n=[e,[0,100]];return t&&n.reverse(),n}),(function(e){return e[t]})),e,n,[["w","e"],["n","s"]][t])},getCreatingRange:function(e){var n=C(e);return[l(n[0][t],n[1][t]),u(n[0][t],n[1][t])]},updateCoverShape:function(e,n,i,r){var o,a=M(e,n);if(!0!==a&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t,e._transform);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[i,o];t&&l.reverse(),D(e,n,l,r)},updateCommon:L,contain:G}}return O5=v}var V5,B5,G5,F5,H5,W5,U5,Y5,Z5,X5,j5,q5,K5={};function $5(){if(V5)return K5;V5=1;var t=_U(),e=m0().onIrrelevantElement,n=vX();function i(e){return t.create(e)}return K5.makeRectPanelClipPath=function(t){return t=i(t),function(e,i){return n.clipPointsByRect(e,t)}},K5.makeLinearBrushOtherExtent=function(t,e){return t=i(t),function(n){var i=null!=e?e:n,r=i?t.width:t.height,o=i?t.x:t.y;return[o,o+(r||0)]}},K5.makeRectIsTargetByCursor=function(t,n,r){return t=i(t),function(i,o,a){return t.contain(o[0],o[1])&&!e(i,n,r)}},K5}function J5(){if(G5)return B5;G5=1;var t=NK(),e=hW(),n=H$(),i=z5(),r=$5(),o=vX(),a=["axisLine","axisTickLabel","axisName"],s=t.extendComponentView({type:"parallelAxis",init:function(t,n){s.superApply(this,"init",arguments),(this._brushController=new i(n.getZr())).on("brush",e.bind(this._onBrush,this))},render:function(t,i,r,s){if(!function(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}(t,i,s)){this.axisModel=t,this.api=r,this.group.removeAll();var l=this._axisGroup;if(this._axisGroup=new o.Group,this.group.add(this._axisGroup),t.get("show")){var u=function(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}(t,i),h=u.coordinateSystem,c=t.getAreaSelectStyle(),d=c.width,p=t.axis.dim,f=h.getAxisLayout(p),g=e.extend({strokeContainThreshold:d},f),v=new n(t,g);e.each(a,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(g,c,t,u,d,r);var m=s&&!1===s.animation?null:t;o.groupTransition(l,this._axisGroup,m)}}},_refreshBrushController:function(t,n,i,a,s,l){var u=i.axis.getExtent(),h=u[1]-u[0],c=Math.min(30,.1*Math.abs(h)),d=o.BoundingRect.create({x:u[0],y:-s/2,width:h,height:s});d.x-=c,d.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,position:t.position}).setPanels([{panelId:"pl",clipPath:r.makeRectPanelClipPath(d),isTargetByCursor:r.makeRectIsTargetByCursor(d,l,a),getLinearBrushOtherExtent:r.makeLinearBrushOtherExtent(d,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(function(t){var n=t.axis;return e.map(t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[n.dataToCoord(t[0],!0),n.dataToCoord(t[1],!0)]}}))}(i))},_onBrush:function(t,n){var i=this.axisModel,r=i.axis,o=e.map(t,(function(t){return[r.coordToData(t.range[0],!0),r.coordToData(t.range[1],!0)]}));(!i.option.realtime===n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},dispose:function(){this._brushController.dispose()}});return B5=s}function Q5(){return F5||(F5=1,L5(),function(){if(P5)return E5;P5=1;var t=NK();t.registerAction({type:"axisAreaSelect",event:"axisAreaSelected"},(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),t.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))}(),J5()),N5}function t3(){if(H5)return f5;H5=1;var t=NK(),e=hW(),n=$j(),i=g5();L5(),k5(),Q5();t.extendComponentView({type:"parallel",render:function(t,i,o){this._model=t,this._api=o,this._handlers||(this._handlers={},e.each(r,(function(t,n){o.getZr().on(n,this._handlers[n]=e.bind(t,this))}),this)),n.createOrUpdate(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},dispose:function(t,n){e.each(this._handlers,(function(t,e){n.getZr().off(e,t)})),this._handlers=null},_throttledDispatchExpand:function(t){this._dispatchExpand(t)},_dispatchExpand:function(t){t&&this._api.dispatchAction(e.extend({type:"parallelAxisExpand"},t))}});var r={mousedown:function(t){o(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(o(this,"click")&&e){var n=[t.offsetX,t.offsetY];if(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2)>5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&o(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i&&null})}}};function o(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}return t.registerPreprocessor(i),f5}function e3(){if(U5)return W5;U5=1;var t=hW(),e=t.each,n=t.createHashMap,i=kj(),r=Vq(),o=i.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(t,i){var o=this.getSource();return function(t,i){if(t.encodeDefine)return;var r=i.ecModel.getComponent("parallel",i.get("parallelIndex"));if(!r)return;var o=t.encodeDefine=n();e(r.dimensions,(function(t){var e=+t.replace("dim","");o.set(t,e)}))}(o,this),r(o,this)},getRawIndicesByActiveState:function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,(function(e,r){t===e&&i.push(n.getRawIndex(r))})),i},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}});return W5=o}function n3(){if(Z5)return Y5;Z5=1;var t=vX(),e=Rj(),n=e.extend({type:"parallel",init:function(){this._dataGroup=new t.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(e,n,s,l){var u=this._dataGroup,h=e.getData(),c=this._data,d=e.coordinateSystem,p=d.dimensions,f=o(e);if(h.diff(c).add((function(t){a(r(h,u,t,p,d),h,t,f)})).update((function(n,r){var o=c.getItemGraphicEl(r),s=i(h,n,p,d);h.setItemGraphicEl(n,o);var u=l&&!1===l.animation?null:e;t.updateProps(o,{shape:{points:s}},u,n),a(o,h,n,f)})).remove((function(t){var e=c.getItemGraphicEl(t);u.remove(e)})).execute(),!this._initialized){this._initialized=!0;var g=function(e,n,i){var r=e.model,o=e.getRect(),a=new t.Rect({shape:{x:o.x,y:o.y,width:o.width,height:o.height}}),s="horizontal"===r.get("layout")?"width":"height";return a.setShape(s,0),t.initProps(a,{shape:{width:o.width,height:o.height}},n,i),a}(d,e,(function(){setTimeout((function(){u.removeClipPath()}))}));u.setClipPath(g)}this._data=h},incrementalPrepareRender:function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(t,e,n){for(var i=e.getData(),s=e.coordinateSystem,l=s.dimensions,u=o(e),h=t.start;h<t.end;h++){var c=r(i,this._dataGroup,h,l,s);c.incremental=!0,a(c,i,h,u)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});function i(t,e,n,i){for(var r,o=[],a=0;a<n.length;a++){var s=n[a],l=t.get(t.mapDimension(s),e);r=l,("category"===i.getAxis(s).type?null==r:null==r||isNaN(r))||o.push(i.dataToPoint(l,s))}return o}function r(e,n,r,o,a){var s=i(e,r,o,a),l=new t.Polyline({shape:{points:s},silent:!0,z2:10});return n.add(l),e.setItemGraphicEl(r,l),l}function o(t){var e=t.get("smooth",!0);return!0===e&&(e=.3),{lineStyle:t.getModel("lineStyle").getLineStyle(),smooth:null!=e?e:.3}}function a(t,e,n,i){var r=i.lineStyle;e.hasItemOption&&(r=e.getItemModel(n).getModel("lineStyle").getLineStyle());t.useStyle(r);var o=t.style;o.fill=null,o.stroke=e.getItemVisual(n,"color"),o.opacity=e.getItemVisual(n,"opacity"),i.smooth&&(t.shape.smooth=i.smooth)}return Y5=n}function i3(){if(q5)return p5;q5=1;var t=NK();t3(),e3(),n3();var e=function(){if(j5)return X5;j5=1;var t=["lineStyle","normal","opacity"];return X5={seriesType:"parallel",reset:function(e,n,i){var r=e.getModel("itemStyle"),o=e.getModel("lineStyle"),a=n.get("color"),s=o.get("color")||r.get("color")||a[e.seriesIndex%a.length],l=e.get("inactiveOpacity"),u=e.get("activeOpacity"),h=e.getModel("lineStyle").getLineStyle(),c=e.coordinateSystem,d=e.getData(),p={normal:h.opacity,active:u,inactive:l};return d.setVisual("color",s),{progress:function(e,n){c.eachActiveState(n,(function(e,i){var r=p[e];if("normal"===e&&n.hasItemOption){var o=n.getItemModel(i).get(t,!0);null!=o&&(r=o)}n.setItemVisual(i,"opacity",r)}),e.start,e.end)}}}}}();return t.registerVisual(e),p5}var r3,o3,a3,s3,l3={};function u3(){if(s3)return a3;s3=1;var t=vX(),e=NK(),n=hW(),i=["itemStyle","opacity"],r=["emphasis","itemStyle","opacity"],o=["lineStyle","opacity"],a=["emphasis","lineStyle","opacity"];function s(t,e){return t.getVisual("opacity")||t.getModel().get(e)}function l(t,e,n){var i=t.getGraphicEl(),r=s(t,e);null!=n&&(null==r&&(r=1),r*=n),i.downplay&&i.downplay(),i.traverse((function(t){"group"!==t.type&&t.setStyle("opacity",r)}))}function u(t,e){var n=s(t,e),i=t.getGraphicEl();i.traverse((function(t){"group"!==t.type&&t.setStyle("opacity",n)})),i.highlight&&i.highlight()}var h=t.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),c=e.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(e,n,i){var r=this,o=e.getGraph(),a=this.group,s=e.layoutInfo,l=s.width,u=s.height,c=e.getData(),d=e.getData("edge"),p=e.get("orient");this._model=e,a.removeAll(),a.attr("position",[s.x,s.y]),o.eachEdge((function(n){var i=new h;i.dataIndex=n.dataIndex,i.seriesIndex=e.seriesIndex,i.dataType="edge";var r,o,s,c,f,g,v,m,y=n.getModel("lineStyle"),x=y.get("curveness"),_=n.node1.getLayout(),b=n.node1.getModel(),w=b.get("localX"),S=b.get("localY"),M=n.node2.getLayout(),I=n.node2.getModel(),T=I.get("localX"),C=I.get("localY"),A=n.getLayout();switch(i.shape.extent=Math.max(1,A.dy),i.shape.orient=p,"vertical"===p?(r=(null!=w?w*l:_.x)+A.sy,o=(null!=S?S*u:_.y)+_.dy,s=(null!=T?T*l:M.x)+A.ty,f=r,g=o*(1-x)+(c=null!=C?C*u:M.y)*x,v=s,m=o*x+c*(1-x)):(r=(null!=w?w*l:_.x)+_.dx,o=(null!=S?S*u:_.y)+A.sy,f=r*(1-x)+(s=null!=T?T*l:M.x)*x,g=o,v=r*x+s*(1-x),m=c=(null!=C?C*u:M.y)+A.ty),i.setShape({x1:r,y1:o,x2:s,y2:c,cpx1:f,cpy1:g,cpx2:v,cpy2:m}),i.setStyle(y.getItemStyle()),i.style.fill){case"source":i.style.fill=n.node1.getVisual("color");break;case"target":i.style.fill=n.node2.getVisual("color")}t.setHoverStyle(i,n.getModel("emphasis.lineStyle").getItemStyle()),a.add(i),d.setItemGraphicEl(n.dataIndex,i)})),o.eachNode((function(n){var i=n.getLayout(),r=n.getModel(),o=r.get("localX"),s=r.get("localY"),h=r.getModel("label"),d=r.getModel("emphasis.label"),p=new t.Rect({shape:{x:null!=o?o*l:i.x,y:null!=s?s*u:i.y,width:i.dx,height:i.dy},style:r.getModel("itemStyle").getItemStyle()}),f=n.getModel("emphasis.itemStyle").getItemStyle();t.setLabelStyle(p.style,f,h,d,{labelFetcher:e,labelDataIndex:n.dataIndex,defaultText:n.id,isRectText:!0}),p.setStyle("fill",n.getVisual("color")),t.setHoverStyle(p,f),a.add(p),c.setItemGraphicEl(n.dataIndex,p),p.dataType="node"})),c.eachItemGraphicEl((function(t,n){var o=c.getItemModel(n);o.get("draggable")&&(t.drift=function(t,o){r._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(n),localX:this.shape.x/l,localY:this.shape.y/u})},t.ondragend=function(){r._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move"),t.highlight=function(){this.trigger("emphasis")},t.downplay=function(){this.trigger("normal")},t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),o.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){r._focusAdjacencyDisabled||(r._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,dataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){r._focusAdjacencyDisabled||r._dispatchUnfocus(i)}))})),d.eachItemGraphicEl((function(t,n){var o=d.getItemModel(n);t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),o.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){r._focusAdjacencyDisabled||(r._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,edgeDataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){r._focusAdjacencyDisabled||r._dispatchUnfocus(i)}))})),!this._data&&e.get("animation")&&a.setClipPath(function(e,n,i){var r=new t.Rect({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return t.initProps(r,{shape:{width:e.width+20}},n,i),r}(a.getBoundingRect(),e,(function(){a.removeClipPath()}))),this._data=e.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(t){var e=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout((function(){e._unfocusDelayTimer=null,t.dispatchAction({type:"unfocusNodeAdjacency",seriesId:e._model.id})}),500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(t,e,s,h){var c=t.getData(),d=c.graph,p=h.dataIndex,f=c.getItemModel(p),g=h.edgeDataIndex;if(null!=p||null!=g){var v=d.getNodeByIndex(p),m=d.getEdgeByIndex(g);if(d.eachNode((function(t){l(t,i,.1)})),d.eachEdge((function(t){l(t,o,.1)})),v){u(v,r);var y=f.get("focusNodeAdjacency");"outEdges"===y?n.each(v.outEdges,(function(t){t.dataIndex<0||(u(t,a),u(t.node2,r))})):"inEdges"===y?n.each(v.inEdges,(function(t){t.dataIndex<0||(u(t,a),u(t.node1,r))})):"allEdges"===y&&n.each(v.edges,(function(t){t.dataIndex<0||(u(t,a),t.node1!==v&&u(t.node1,r),t.node2!==v&&u(t.node2,r))}))}m&&(u(m,a),u(m.node1,r),u(m.node2,r))}},unfocusNodeAdjacency:function(t,e,n,r){var a=t.getGraph();a.eachNode((function(t){l(t,i)})),a.eachEdge((function(t){l(t,o)}))}});return a3=c}var h3,c3,d3,p3,f3,g3,v3={};function m3(){if(d3)return c3;d3=1;var t=zX(),e=hW(),n=mY().groupData;function i(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function r(t,n,i,r,o){var a="vertical"===o?"x":"y";e.each(t,(function(t){var e,s,l;t.sort((function(t,e){return t.getLayout()[a]-e.getLayout()[a]}));for(var u=0,h=t.length,c="vertical"===o?"dx":"dy",d=0;d<h;d++)(l=u-(s=t[d]).getLayout()[a])>0&&(e=s.getLayout()[a]+l,"vertical"===o?s.setLayout({x:e},!0):s.setLayout({y:e},!0)),u=s.getLayout()[a]+s.getLayout()[c]+n;if((l=u-n-("vertical"===o?r:i))>0)for(e=s.getLayout()[a]-l,"vertical"===o?s.setLayout({x:e},!0):s.setLayout({y:e},!0),u=e,d=h-2;d>=0;--d)(l=(s=t[d]).getLayout()[a]+s.getLayout()[c]+n-u)>0&&(e=s.getLayout()[a]-l,"vertical"===o?s.setLayout({x:e},!0):s.setLayout({y:e},!0)),u=s.getLayout()[a]}))}function o(t,n,i){e.each(t.slice().reverse(),(function(t){e.each(t,(function(t){if(t.outEdges.length){var e=d(t.outEdges,a,i)/d(t.outEdges,c,i);if(isNaN(e)){var r=t.outEdges.length;e=r?d(t.outEdges,s,i)/r:0}if("vertical"===i){var o=t.getLayout().x+(e-h(t,i))*n;t.setLayout({x:o},!0)}else{var l=t.getLayout().y+(e-h(t,i))*n;t.setLayout({y:l},!0)}}}))}))}function a(t,e){return h(t.node2,e)*t.getValue()}function s(t,e){return h(t.node2,e)}function l(t,e){return h(t.node1,e)*t.getValue()}function u(t,e){return h(t.node1,e)}function h(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function c(t){return t.getValue()}function d(t,e,n){for(var i=0,r=t.length,o=-1;++o<r;){var a=+e.call(t,t[o],n);isNaN(a)||(i+=a)}return i}function p(t,n,i){e.each(t,(function(t){e.each(t,(function(t){if(t.inEdges.length){var e=d(t.inEdges,l,i)/d(t.inEdges,c,i);if(isNaN(e)){var r=t.inEdges.length;e=r?d(t.inEdges,u,i)/r:0}if("vertical"===i){var o=t.getLayout().x+(e-h(t,i))*n;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(e-h(t,i))*n;t.setLayout({y:a},!0)}}}))}))}return c3=function(a,s,l){a.eachSeriesByType("sankey",(function(a){var l=a.get("nodeWidth"),u=a.get("nodeGap"),h=function(e,n){return t.getLayoutRect(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})}(a,s);a.layoutInfo=h;var f=h.width,g=h.height,v=a.getGraph(),m=v.nodes,y=v.edges;!function(t){e.each(t,(function(t){var e=d(t.outEdges,c),n=d(t.inEdges,c),i=t.getValue()||0,r=Math.max(e,n,i);t.setLayout({value:r},!0)}))}(m),function(t,a,s,l,u,h,c,d,f){(function(t,n,r,o,a,s,l){for(var u=[],h=[],c=[],d=[],p=0,f=0,g=0;g<n.length;g++)u[g]=1;for(g=0;g<t.length;g++)h[g]=t[g].inEdges.length,0===h[g]&&c.push(t[g]);var v=-1;for(;c.length;){for(var m=0;m<c.length;m++){var y=c[m],x=y.hostGraph.data.getRawDataItem(y.dataIndex),_=null!=x.depth&&x.depth>=0;_&&x.depth>v&&(v=x.depth),y.setLayout({depth:_?x.depth:p},!0),"vertical"===s?y.setLayout({dy:r},!0):y.setLayout({dx:r},!0);for(var b=0;b<y.outEdges.length;b++){var w=y.outEdges[b];u[n.indexOf(w)]=0;var S=w.node2;0==--h[t.indexOf(S)]&&d.indexOf(S)<0&&d.push(S)}}++p,c=d,d=[]}for(g=0;g<u.length;g++)if(1===u[g])throw new Error("Sankey is a DAG, the original data has cycle!");var M=v>p-1?v:p-1;l&&"left"!==l&&function(t,n,r,o){if("right"===n){for(var a=[],s=t,l=0;s.length;){for(var u=0;u<s.length;u++){var h=s[u];h.setLayout({skNodeHeight:l},!0);for(var c=0;c<h.inEdges.length;c++){var d=h.inEdges[c];a.indexOf(d.node1)<0&&a.push(d.node1)}}s=a,a=[],++l}e.each(t,(function(t){i(t)||t.setLayout({depth:Math.max(0,o-t.getLayout().skNodeHeight)},!0)}))}else"justify"===n&&function(t,n){e.each(t,(function(t){i(t)||t.outEdges.length||t.setLayout({depth:n},!0)}))}(t,o)}(t,l,0,M);f="vertical"===s?(a-r)/M:(o-r)/M;!function(t,n,i){e.each(t,(function(t){var e=t.getLayout().depth*n;"vertical"===i?t.setLayout({y:e},!0):t.setLayout({x:e},!0)}))}(t,f,s)})(t,a,s,u,h,d,f),function(t,i,a,s,l,u,h){var c=function(t,i){var r=[],o="vertical"===i?"y":"x",a=n(t,(function(t){return t.getLayout()[o]}));return a.keys.sort((function(t,e){return t-e})),e.each(a.keys,(function(t){r.push(a.buckets.get(t))})),r}(t,h);(function(t,n,i,r,o,a){var s=1/0;e.each(t,(function(t){var n=t.length,l=0;e.each(t,(function(t){l+=t.getLayout().value}));var u="vertical"===a?(r-(n-1)*o)/l:(i-(n-1)*o)/l;u<s&&(s=u)})),e.each(t,(function(t){e.each(t,(function(t,e){var n=t.getLayout().value*s;"vertical"===a?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))}))})),e.each(n,(function(t){var e=+t.getValue()*s;t.setLayout({dy:e},!0)}))})(c,i,a,s,l,h),r(c,l,a,s,h);for(var d=1;u>0;u--)o(c,d*=.99,h),r(c,l,a,s,h),p(c,d,h),r(c,l,a,s,h)}(t,a,h,u,l,c,d),function(t,n){var i="vertical"===n?"x":"y";e.each(t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[i]-e.node2.getLayout()[i]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[i]-e.node1.getLayout()[i]}))})),e.each(t,(function(t){var n=0,i=0;e.each(t.outEdges,(function(t){t.setLayout({sy:n},!0),n+=t.getLayout().dy})),e.each(t.inEdges,(function(t){t.setLayout({ty:i},!0),i+=t.getLayout().dy}))}))}(t,d)}(m,y,l,u,f,g,0!==e.filter(m,(function(t){return 0===t.getLayout().value})).length?0:a.get("layoutIterations"),a.get("orient"),a.get("nodeAlign"))}))},c3}function y3(){if(g3)return l3;g3=1;var t=NK();!function(){if(o3)return r3;o3=1;var t=kj(),e=Z1(),n=EX().encodeHTML,i=mX();tW().__DEV__;var r=t.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(t,n){for(var r=t.edges||t.links,o=t.data||t.nodes,a=t.levels,s=this.levelModels={},l=0;l<a.length;l++)null!=a[l].depth&&a[l].depth>=0&&(s[a[l].depth]=new i(a[l],this,n));if(o&&r)return e(o,r,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t,e){return t.customizeGetParent((function(t){var n=this.parentModel,i=n.getData().getItemLayout(e).depth;return n.levelModels[i]||this.parentModel})),t})),e.wrapMethod("getItemModel",(function(t,e){return t.customizeGetParent((function(t){var n=this.parentModel,i=n.getGraph().getEdgeByIndex(e).node1.getLayout().depth;return n.levelModels[i]||this.parentModel})),t}))})).data},setNodePosition:function(t,e){var n=this.option.data[t];n.localX=e[0],n.localY=e[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(t,e,i){if("edge"===i){var o=this.getDataParams(t,i),a=o.data,s=a.source+" -- "+a.target;return o.value&&(s+=" : "+o.value),n(s)}if("node"===i){var l=this.getGraph().getNodeByIndex(t).getLayout().value,u=this.getDataParams(t,i).data.name;return l&&(s=u+" : "+l),n(s)}return r.superCall(this,"formatTooltip",t,e)},optionUpdated:function(){var t=this.option;!0===t.focusNodeAdjacency&&(t.focusNodeAdjacency="allEdges")},getDataParams:function(t,e){var n=r.superCall(this,"getDataParams",t,e);if(null==n.value&&"node"===e){var i=this.getGraph().getNodeByIndex(t).getLayout().value;n.value=i}return n},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}});r3=r}(),u3(),function(){if(h3)return v3;h3=1;var t=NK();M2(),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))}();var e=m3(),n=function(){if(f3)return p3;f3=1;var t=z1(),e=hW();return p3=function(n,i){n.eachSeriesByType("sankey",(function(n){var i=n.getGraph().nodes;if(i.length){var r=1/0,o=-1/0;e.each(i,(function(t){var e=t.getLayout().value;e<r&&(r=e),e>o&&(o=e)})),e.each(i,(function(e){var i=new t({type:"color",mappingMethod:"linear",dataExtent:[r,o],visual:n.get("color")}).mapValueToVisual(e.getLayout().value),a=e.getModel().get("itemStyle.color");null!=a?e.setVisual("color",a):e.setVisual("color",i)}))}}))}}();return t.registerLayout(e),t.registerVisual(n),l3}var x3,_3,b3,w3,S3,M3,I3,T3,C3,A3,D3={},L3={};function k3(){if(x3)return L3;x3=1;var t=jJ(),e=hW(),n=Tq().getDimensionTypeByAxis,i=lj().makeSeriesEncodeForAxisCoordSys,r={_baseAxisDim:null,getInitialData:function(r,o){var a,s,l=o.getComponent("xAxis",this.get("xAxisIndex")),u=o.getComponent("yAxis",this.get("yAxisIndex")),h=l.get("type"),c=u.get("type");"category"===h?(r.layout="horizontal",a=l.getOrdinalMeta(),s=!0):"category"===c?(r.layout="vertical",a=u.getOrdinalMeta(),s=!0):r.layout=r.layout||"horizontal";var d=["x","y"],p="horizontal"===r.layout?0:1,f=this._baseAxisDim=d[p],g=d[1-p],v=[l,u],m=v[p].get("type"),y=v[1-p].get("type"),x=r.data;if(x&&s){var _=[];e.each(x,(function(t,n){var i;t.value&&e.isArray(t.value)?(i=t.value.slice(),t.value.unshift(n)):e.isArray(t)?(i=t.slice(),t.unshift(n)):i=t,_.push(i)})),r.data=_}var b=this.defaultValueDimensions,w=[{name:f,type:n(m),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:g,type:n(y),dimsDef:b.slice()}];return t(this,{coordDimensions:w,dimensionsCount:b.length+1,encodeDefaulter:e.curry(i,w,this)})},getBaseAxis:function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis}};return L3.seriesModelMixin=r,L3}function P3(){if(C3)return T3;C3=1;var t=hW(),e=MX().parsePercent,n=t.each;return T3=function(i){var r=function(e){var n=[],i=[];return e.eachSeriesByType("boxplot",(function(e){var r=e.getBaseAxis(),o=t.indexOf(i,r);o<0&&(o=i.length,i[o]=r,n[o]={axis:r,seriesModels:[]}),n[o].seriesModels.push(e)})),n}(i);n(r,(function(i){var r=i.seriesModels;r.length&&(!function(i){var r,o,a=i.axis,s=i.seriesModels,l=s.length,u=i.boxWidthList=[],h=i.boxOffsetList=[],c=[];if("category"===a.type)o=a.getBandWidth();else{var d=0;n(s,(function(t){d=Math.max(d,t.getData().count())})),r=a.getExtent(),Math.abs(r[1]-r[0])}n(s,(function(n){var i=n.get("boxWidth");t.isArray(i)||(i=[i,i]),c.push([e(i[0],o)||0,e(i[1],o)||0])}));var p=.8*o-2,f=p/l*.3,g=(p-f*(l-1))/l,v=g/2-p/2;n(s,(function(t,e){h.push(v),v+=f+g,u.push(Math.min(Math.max(g,c[e][0]),c[e][1]))}))}(i),n(r,(function(t,e){!function(t,e,n){var i=t.coordinateSystem,r=t.getData(),o=n/2,a="horizontal"===t.get("layout")?0:1,s=1-a,l=["x","y"],u=r.mapDimension(l[a]),h=r.mapDimension(l[s],!0);if(null==u||h.length<5)return;for(var c=0;c<r.count();c++){var d=r.get(u,c),p=x(d,h[2],c),f=x(d,h[0],c),g=x(d,h[1],c),v=x(d,h[3],c),m=x(d,h[4],c),y=[];_(y,g,0),_(y,v,1),y.push(f,g,m,v),b(y,f),b(y,m),b(y,p),r.setItemLayout(c,{initBaseline:p[s],ends:y})}function x(t,n,o){var l,u=r.get(n,o),h=[];return h[a]=t,h[s]=u,isNaN(t)||isNaN(u)?l=[NaN,NaN]:(l=i.dataToPoint(h))[a]+=e,l}function _(t,e,n){var i=e.slice(),r=e.slice();i[a]+=o,r[a]-=o,n?t.push(i,r):t.push(r,i)}function b(t,e){var n=e.slice(),i=e.slice();n[a]-=o,i[a]+=o,t.push(n,i)}}(t,i.boxOffsetList[e],i.boxWidthList[e])})))}))}}function O3(){if(A3)return D3;A3=1;var t=NK();!function(){if(b3)return _3;b3=1;var t=hW(),e=kj(),n=k3().seriesModelMixin,i=e.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});t.mixin(i,n,!0),_3=i}(),function(){if(S3)return w3;S3=1;var t=hW(),e=Rj(),n=vX(),i=xZ(),r=["itemStyle"],o=["emphasis","itemStyle"],a=e.extend({type:"boxplot",render:function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===t.get("layout")?1:0;i.diff(o).add((function(t){if(i.hasValue(t)){var e=l(i.getItemLayout(t),i,t,a,!0);i.setItemGraphicEl(t,e),r.add(e)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?u(s,n,i,t):n=l(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=i},remove:function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},dispose:t.noop}),s=i.extend({type:"boxplotBoxPath",shape:{},buildPath:function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),i++,t.lineTo(n[i][0],n[i][1])}});function l(t,e,n,i,r){var o=t.ends,a=new s({shape:{points:r?h(o,i,t):o}});return u(t,a,e,n,r),a}function u(t,e,i,a,s){var l=i.hostModel;(0,n[s?"initProps":"updateProps"])(e,{shape:{points:t.ends}},l,a);var u=i.getItemModel(a),h=u.getModel(r),c=i.getItemVisual(a,"color"),d=h.getItemStyle(["borderColor"]);d.stroke=c,d.strokeNoScale=!0,e.useStyle(d),e.z2=100;var p=u.getModel(o).getItemStyle();n.setHoverStyle(e,p)}function h(e,n,i){return t.map(e,(function(t){return(t=t.slice())[n]=i.initBaseline,t}))}w3=a}();var e=function(){if(I3)return M3;I3=1;var t=["itemStyle","borderColor"];return M3=function(e,n){var i=e.get("color");e.eachRawSeriesByType("boxplot",(function(n){var r=i[n.seriesIndex%i.length],o=n.getData();o.setVisual({legendSymbol:"roundRect",color:n.get(t)||r}),e.isSeriesFiltered(n)||o.each((function(e){var n=o.getItemModel(e);o.setItemVisual(e,{color:n.get(t,!0)})}))}))}}(),n=P3();return t.registerVisual(e),t.registerLayout(n),D3}var R3,N3,E3,z3,V3,B3,G3,F3,H3,W3,U3,Y3={};function Z3(){if(W3)return H3;W3=1;var t=vX().subPixelOptimize,e=Oj(),n=MX().parsePercent,i=hW().retrieve2,r="undefined"!=typeof Float32Array?Float32Array:Array,o={seriesType:"candlestick",plan:e(),reset:function(e){var o=e.coordinateSystem,s=e.getData(),l=function(t,e){var r,o=t.getBaseAxis(),a="category"===o.type?o.getBandWidth():(r=o.getExtent(),Math.abs(r[1]-r[0])/e.count()),s=n(i(t.get("barMaxWidth"),a),a),l=n(i(t.get("barMinWidth"),1),a),u=t.get("barWidth");return null!=u?n(u,a):Math.max(Math.min(a/2,s),l)}(e,s),u=["x","y"],h=s.mapDimension(u[0]),c=s.mapDimension(u[1],!0),d=c[0],p=c[1],f=c[2],g=c[3];if(s.setLayout({candleWidth:l,isSimpleBox:l<=1.3}),!(null==h||c.length<4))return{progress:e.pipelineContext.large?function(t,e){var n,i,s=new r(4*t.count),l=0,u=[],c=[];for(;null!=(i=t.next());){var v=e.get(h,i),m=e.get(d,i),y=e.get(p,i),x=e.get(f,i),_=e.get(g,i);isNaN(v)||isNaN(x)||isNaN(_)?(s[l++]=NaN,l+=3):(s[l++]=a(e,i,m,y,p),u[0]=v,u[1]=x,n=o.dataToPoint(u,null,c),s[l++]=n?n[0]:NaN,s[l++]=n?n[1]:NaN,u[1]=_,n=o.dataToPoint(u,null,c),s[l++]=n?n[1]:NaN)}e.setLayout("largePoints",s)}:function(e,n){var i;for(;null!=(i=e.next());){var r=n.get(h,i),s=n.get(d,i),u=n.get(p,i),c=n.get(f,i),v=n.get(g,i),m=Math.min(s,u),y=Math.max(s,u),x=M(m,r),_=M(y,r),b=M(c,r),w=M(v,r),S=[];I(S,_,0),I(S,x,1),S.push(C(w),C(_),C(b),C(x)),n.setItemLayout(i,{sign:a(n,i,s,u,p),initBaseline:s>u?_[1]:x[1],ends:S,brushRect:T(c,v,r)})}function M(t,e){var n=[];return n[0]=e,n[1]=t,isNaN(e)||isNaN(t)?[NaN,NaN]:o.dataToPoint(n)}function I(e,n,i){var r=n.slice(),o=n.slice();r[0]=t(r[0]+l/2,1,!1),o[0]=t(o[0]-l/2,1,!0),i?e.push(r,o):e.push(o,r)}function T(t,e,n){var i=M(t,n),r=M(e,n);return i[0]-=l/2,r[0]-=l/2,{x:i[0],y:i[1],width:l,height:r[1]-i[1]}}function C(e){return e[0]=t(e[0],1),e}}}}};function a(t,e,n,i,r){return n>i?-1:n<i?1:e>0?t.get(r,e-1)<=i?1:-1:1}return H3=o}function X3(){if(U3)return Y3;U3=1;var t=NK();!function(){if(N3)return R3;N3=1;var t=hW(),e=kj(),n=k3().seriesModelMixin,i=e.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,clip:!0,itemStyle:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},brushSelector:function(t,e,n){var i=e.getItemLayout(t);return i&&n.rect(i.brushRect)}});t.mixin(i,n,!0),R3=i}(),function(){if(z3)return E3;z3=1;var t=hW(),e=Rj(),n=vX(),i=xZ(),r=d$().createClipPath,o=["itemStyle"],a=["emphasis","itemStyle"],s=["color","color0","borderColor","borderColor0"],l=e.extend({type:"candlestick",render:function(t,e,n){this.group.removeClipPath(),this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},incrementalPrepareRender:function(t,e,n){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,n,i){this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t){var e=t.getData(),i=this._data,r=this.group,o=e.getLayout("isSimpleBox"),a=t.get("clip",!0),s=t.coordinateSystem,l=s.getArea&&s.getArea();this._data||r.removeAll(),e.diff(i).add((function(i){if(e.hasValue(i)){var s,u=e.getItemLayout(i);if(a&&c(l,u))return;s=h(u,i,!0),n.initProps(s,{shape:{points:u.ends}},t,i),d(s,e,i,o),r.add(s),e.setItemGraphicEl(i,s)}})).update((function(s,u){var p=i.getItemGraphicEl(u);if(e.hasValue(s)){var f=e.getItemLayout(s);a&&c(l,f)?r.remove(p):(p?n.updateProps(p,{shape:{points:f.ends}},t,s):p=h(f),d(p,e,s,o),r.add(p),e.setItemGraphicEl(s,p))}else r.remove(p)})).remove((function(t){var e=i.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=e},_renderLarge:function(t){this._clear(),g(t,this.group);var e=t.get("clip",!0)?r(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},_incrementalRenderNormal:function(t,e){for(var n,i=e.getData(),r=i.getLayout("isSimpleBox");null!=(n=t.next());){var o;d(o=h(i.getItemLayout(n)),i,n,r),o.incremental=!0,this.group.add(o)}},_incrementalRenderLarge:function(t,e){g(e,this.group,!0)},remove:function(t){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:t.noop}),u=i.extend({type:"normalCandlestickBox",shape:{},buildPath:function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))}});function h(t,e,n){var i=t.ends;return new u({shape:{points:n?p(i,t):i},z2:100})}function c(t,e){for(var n=!0,i=0;i<e.ends.length;i++)if(t.contain(e.ends[i][0],e.ends[i][1])){n=!1;break}return n}function d(t,e,i,r){var l=e.getItemModel(i),u=l.getModel(o),h=e.getItemVisual(i,"color"),c=e.getItemVisual(i,"borderColor")||h,d=u.getItemStyle(s);t.useStyle(d),t.style.strokeNoScale=!0,t.style.fill=h,t.style.stroke=c,t.__simpleBox=r;var p=l.getModel(a).getItemStyle();n.setHoverStyle(t,p)}function p(e,n){return t.map(e,(function(t){return(t=t.slice())[1]=n.initBaseline,t}))}var f=i.extend({type:"largeCandlestickBox",shape:{},buildPath:function(t,e){for(var n=e.points,i=0;i<n.length;)if(this.__sign===n[i++]){var r=n[i++];t.moveTo(r,n[i++]),t.lineTo(r,n[i++])}else i+=3}});function g(t,e,n){var i=t.getData(),r=i.getLayout("largePoints"),o=new f({shape:{points:r},__sign:1});e.add(o);var a=new f({shape:{points:r},__sign:-1});e.add(a),v(1,o,t,i),v(-1,a,t,i),n&&(o.incremental=!0,a.incremental=!0)}function v(t,e,n,i){var r=t>0?"P":"N",a=i.getVisual("borderColor"+r)||i.getVisual("color"+r),l=n.getModel(o).getItemStyle(s);e.useStyle(l),e.style.fill=null,e.style.stroke=a}E3=l}();var e=function(){if(B3)return V3;B3=1;var t=hW();return V3=function(e){e&&t.isArray(e.series)&&t.each(e.series,(function(e){t.isObject(e)&&"k"===e.type&&(e.type="candlestick")}))}}(),n=function(){if(F3)return G3;F3=1;var t=Oj(),e=["itemStyle","borderColor"],n=["itemStyle","borderColor0"],i=["itemStyle","color"],r=["itemStyle","color0"],o={seriesType:"candlestick",plan:t(),performRawSeries:!0,reset:function(t,o){if(t.getData().setVisual({legendSymbol:"roundRect",colorP:a(1,t),colorN:a(-1,t),borderColorP:s(1,t),borderColorN:s(-1,t)}),!o.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var n;null!=(n=t.next());){var i=e.getItemModel(n),r=e.getItemLayout(n).sign;e.setItemVisual(n,{color:a(r,i),borderColor:s(r,i)})}}};function a(t,e){return e.get(t>0?i:r)}function s(t,i){return i.get(t>0?e:n)}}};return G3=o}(),i=Z3();return t.registerPreprocessor(e),t.registerVisual(n),t.registerLayout(i),Y3}var j3,q3,K3,$3,J3,Q3,t4,e4={};function n4(){if($3)return K3;$3=1;var t=hW(),e=vK().createSymbol,n=vX().Group,i=MX().parsePercent,r=ZK();function o(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}function a(t,e){n.call(this);var i=new r(t,e),o=new n;this.add(i),this.add(o),o.beforeUpdate=function(){this.attr(i.getScale())},this.updateData(t,e)}var s=a.prototype;return s.stopEffectAnimation=function(){this.childAt(1).removeAll()},s.startEffectAnimation=function(t){for(var n=t.symbolType,i=t.color,r=this.childAt(1),a=0;a<3;a++){var s=e(n,-1,-1,2,2,i);s.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var l=-a/3*t.period+t.effectOffset;s.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(l).start(),s.animateStyle(!0).when(t.period,{opacity:0}).delay(l).start(),r.add(s)}o(r,t)},s.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale"],r=0;r<i.length;r++){var a=i[r];if(e[a]!==t[a])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}o(n,t)},s.highlight=function(){this.trigger("emphasis")},s.downplay=function(){this.trigger("normal")},s.updateData=function(e,n){var r=e.hostModel;this.childAt(0).updateData(e,n);var o=this.childAt(1),a=e.getItemModel(n),s=e.getItemVisual(n,"symbol"),l=function(e){return t.isArray(e)||(e=[+e,+e]),e}(e.getItemVisual(n,"symbolSize")),u=e.getItemVisual(n,"color");o.attr("scale",l),o.traverse((function(t){t.attr({fill:u})}));var h=a.getShallow("symbolOffset");if(h){var c=o.position;c[0]=i(h[0],l[0]),c[1]=i(h[1],l[1])}var d=e.getItemVisual(n,"symbolRotate");o.rotation=(d||0)*Math.PI/180||0;var p={};if(p.showEffectOn=r.get("showEffectOn"),p.rippleScale=a.get("rippleEffect.scale"),p.brushType=a.get("rippleEffect.brushType"),p.period=1e3*a.get("rippleEffect.period"),p.effectOffset=n/e.count(),p.z=a.getShallow("z")||0,p.zlevel=a.getShallow("zlevel")||0,p.symbolType=s,p.color=u,p.rippleEffectColor=a.get("rippleEffect.color"),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),"render"===p.showEffectOn)this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p;else{this._effectCfg=null,this.stopEffectAnimation();var f=this.childAt(0),g=function(){f.highlight(),"render"!==p.showEffectOn&&this.startEffectAnimation(p)},v=function(){f.downplay(),"render"!==p.showEffectOn&&this.stopEffectAnimation()};this.on("mouseover",g,this).on("mouseout",v,this).on("emphasis",g,this).on("normal",v,this)}this._effectCfg=p},s.fadeOut=function(t){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),t&&t()},t.inherits(a,n),K3=a}function i4(){if(t4)return e4;t4=1;var t=NK();!function(){if(q3)return j3;q3=1;var t=Vq(),e=kj().extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(e,n){return t(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});j3=e}(),function(){if(Q3)return J3;Q3=1;var t=NK(),e=XK(),n=n4(),i=GW(),r=g$(),o=t.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new e(n)},render:function(t,e,n){var i=t.getData(),r=this._symbolDraw;r.updateData(i),this.group.add(r.group)},updateTransform:function(t,e,n){var i=t.getData();this.group.dirty();var o=r().reset(t);o.progress&&o.progress({start:0,end:i.count()},i),this._symbolDraw.updateLayout(i)},_updateGroupTransform:function(t){var e=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=i.clone(e.getRoamTransform()),this.group.decomposeTransform())},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(e)},dispose:function(){}});J3=o}();var e=f$(),n=g$();return t.registerVisual(e("effectScatter","circle")),t.registerLayout(n("effectScatter")),e4}var r4,o4,a4,s4,l4,u4,h4,c4,d4,p4,f4,g4,v4,m4,y4,x4,_4,b4={};function w4(){if(s4)return a4;s4=1;var t=vX(),e=r2(),n=hW(),i=vK().createSymbol,r=mW(),o=PY();function a(e,n,i){t.Group.call(this),this.add(this.createLine(e,n,i)),this._updateEffectSymbol(e,n)}var s=a.prototype;return s.createLine=function(t,n,i){return new e(t,n,i)},s._updateEffectSymbol=function(t,e){var r=t.getItemModel(e).getModel("effect"),o=r.get("symbolSize"),a=r.get("symbol");n.isArray(o)||(o=[o,o]);var s=r.get("color")||t.getItemVisual(e,"color"),l=this.childAt(1);this._symbolType!==a&&(this.remove(l),(l=i(a,-.5,-.5,1,1,s)).z2=100,l.culling=!0,this.add(l)),l&&(l.setStyle("shadowColor",s),l.setStyle(r.getItemStyle(["color"])),l.attr("scale",o),l.setColor(s),l.attr("scale",o),this._symbolType=a,this._symbolScale=o,this._updateEffectAnimation(t,r,e))},s._updateEffectAnimation=function(t,e,i){var r=this.childAt(1);if(r){var o=this,a=t.getItemLayout(i),s=1e3*e.get("period"),l=e.get("loop"),u=e.get("constantSpeed"),h=n.retrieve(e.get("delay"),(function(e){return e/t.count()*s/3})),c="function"==typeof h;if(r.ignore=!0,this.updateAnimationPoints(r,a),u>0&&(s=this.getLineLength(r)/u*1e3),s!==this._period||l!==this._loop){r.stopAnimation();var d=h;c&&(d=h(i)),r.__t>0&&(d=-s*r.__t),r.__t=0;var p=r.animate("",l).when(s,{__t:1}).delay(d).during((function(){o.updateSymbolPosition(r)}));l||p.done((function(){o.remove(r)})),p.start()}this._period=s,this._loop=l}},s.getLineLength=function(t){return r.dist(t.__p1,t.__cp1)+r.dist(t.__cp1,t.__p2)},s.updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},s.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},s.updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,a=t.__t,s=t.position,l=[s[0],s[1]],u=o.quadraticAt,h=o.quadraticDerivativeAt;s[0]=u(e[0],i[0],n[0],a),s[1]=u(e[1],i[1],n[1],a);var c=h(e[0],i[0],n[0],a),d=h(e[1],i[1],n[1],a);if(t.rotation=-Math.atan2(d,c)-Math.PI/2,"line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)if(void 0!==t.__lastT&&t.__lastT<t.__t){var p=1.05*r.dist(l,s);t.attr("scale",[t.scale[0],p]),1===a&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)}else if(1===t.__lastT){p=2*r.dist(e,s);t.attr("scale",[t.scale[0],p])}else t.attr("scale",this._symbolScale);t.__lastT=t.__t,t.ignore=!1},s.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},n.inherits(a,t.Group),a4=a}function S4(){if(u4)return l4;u4=1;var t=vX(),e=hW();function n(e,n,i){t.Group.call(this),this._createPolyline(e,n,i)}var i=n.prototype;return i._createPolyline=function(e,n,i){var r=e.getItemLayout(n),o=new t.Polyline({shape:{points:r}});this.add(o),this._updateCommonStl(e,n,i)},i.updateData=function(e,n,i){var r=e.hostModel,o=this.childAt(0),a={shape:{points:e.getItemLayout(n)}};t.updateProps(o,a,r,n),this._updateCommonStl(e,n,i)},i._updateCommonStl=function(n,i,r){var o=this.childAt(0),a=n.getItemModel(i),s=n.getItemVisual(i,"color"),l=r&&r.lineStyle,u=r&&r.hoverLineStyle;r&&!n.hasItemOption||(l=a.getModel("lineStyle").getLineStyle(),u=a.getModel("emphasis.lineStyle").getLineStyle()),o.useStyle(e.defaults({strokeNoScale:!0,fill:"none",stroke:s},l)),o.hoverStyle=u,t.setHoverStyle(this)},i.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},e.inherits(n,t.Group),l4=n}function M4(){if(g4)return f4;g4=1;var t={seriesType:"lines",plan:Oj()(),reset:function(t){var e=t.coordinateSystem,n=t.get("polyline"),i=t.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s,l=r.end-r.start;if(n){for(var u=0,h=r.start;h<r.end;h++)u+=t.getLineCoordsCount(h);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var c=0,d=[];for(h=r.start;h<r.end;h++){var p=t.getLineCoords(h,a);n&&(s[c++]=p);for(var f=0;f<p;f++)d=e.dataToPoint(a[f],!1,d),s[c++]=d[0],s[c++]=d[1]}o.setLayout("linesPoints",s)}else for(h=r.start;h<r.end;h++){var g=o.getItemModel(h),v=(p=t.getLineCoords(h,a),[]);if(n)for(var m=0;m<p;m++)v.push(e.dataToPoint(a[m]));else{v[0]=e.dataToPoint(a[0]),v[1]=e.dataToPoint(a[1]);var y=g.get("lineStyle.curveness");+y&&(v[2]=[(v[0][0]+v[1][0])/2-(v[0][1]-v[1][1])*y,(v[0][1]+v[1][1])/2-(v[1][0]-v[0][0])*y])}o.setItemLayout(h,v)}}}}};return f4=t}function I4(){if(m4)return v4;m4=1,tW().__DEV__;var t=NK(),e=o2(),n=w4(),i=r2(),r=S4(),o=function(){if(c4)return h4;c4=1;var t=S4(),e=hW(),n=w4(),i=mW();function r(t,e,i){n.call(this,t,e,i),this._lastFrame=0,this._lastFramePercent=0}var o=r.prototype;return o.createLine=function(e,n,i){return new t(e,n,i)},o.updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],r=0,o=1;o<e.length;o++){var a=e[o-1],s=e[o];r+=i.dist(a,s),n.push(r)}if(0!==r){for(o=0;o<n.length;o++)n[o]/=r;this._offsets=n,this._length=r}},o.getLineLength=function(t){return this._length},o.updateSymbolPosition=function(t){var e=t.__t,n=this._points,r=this._offsets,o=n.length;if(r){var a=this._lastFrame;if(e<this._lastFramePercent){for(s=Math.min(a+1,o-1);s>=0&&!(r[s]<=e);s--);s=Math.min(s,o-2)}else{for(var s=a;s<o&&!(r[s]>e);s++);s=Math.min(s-1,o-2)}i.lerp(t.position,n[s],n[s+1],(e-r[s])/(r[s+1]-r[s]));var l=n[s+1][0]-n[s][0],u=n[s+1][1]-n[s][1];t.rotation=-Math.atan2(u,l)-Math.PI/2,this._lastFrame=s,this._lastFramePercent=e,t.ignore=!1}},e.inherits(r,n),h4=r}(),a=function(){if(p4)return d4;p4=1;var t=vX(),e=gX(),n=HY(),i=XY(),r=t.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(t,e){var n=e.segs,i=e.curveness;if(e.polyline)for(var r=0;r<n.length;){var o=n[r++];if(o>0){t.moveTo(n[r++],n[r++]);for(var a=1;a<o;a++)t.lineTo(n[r++],n[r++])}}else for(r=0;r<n.length;){var s=n[r++],l=n[r++],u=n[r++],h=n[r++];if(t.moveTo(s,l),i>0){var c=(s+u)/2-(l-h)*i,d=(l+h)/2-(u-s)*i;t.quadraticCurveTo(c,d,u,h)}else t.lineTo(u,h)}},findDataIndex:function(t,e){var r=this.shape,o=r.segs,a=r.curveness;if(r.polyline)for(var s=0,l=0;l<o.length;){var u=o[l++];if(u>0)for(var h=o[l++],c=o[l++],d=1;d<u;d++){var p=o[l++],f=o[l++];if(n.containStroke(h,c,p,f))return s}s++}else for(s=0,l=0;l<o.length;){if(h=o[l++],c=o[l++],p=o[l++],f=o[l++],a>0){var g=(h+p)/2-(c-f)*a,v=(c+f)/2-(p-h)*a;if(i.containStroke(h,c,g,v,p,f))return s}else if(n.containStroke(h,c,p,f))return s;s++}return-1}});function o(){this.group=new t.Group}var a=o.prototype;return a.isPersistent=function(){return!this._incremental},a.updateData=function(t){this.group.removeAll();var e=new r({rectHover:!0,cursor:"default"});e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},a.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>5e5?(this._incremental||(this._incremental=new e({silent:!0})),this.group.add(this._incremental)):this._incremental=null},a.incrementalUpdate=function(t,e){var n=new r;n.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(n,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=t.start,this.group.add(n))},a.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},a._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get("lineStyle.curveness")}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("color");r&&t.setStyle("stroke",r),t.setStyle("fill"),n||(t.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){t.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>0&&(t.dataIndex=n+t.__startIndex)})))},a._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()},d4=o}(),s=M4(),l=d$().createClipPath,u=t.extendChartView({type:"lines",init:function(){},render:function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t),o=t.get("zlevel"),a=t.get("effect.trailLength"),s=n.getZr(),u="svg"===s.painter.getType();u||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||u||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a&&(u||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var h=t.get("clip",!0)&&l(t.coordinateSystem,!1,t);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},incrementalPrepareRender:function(t,e,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},incrementalRender:function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,n){var i=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=s.reset(t);o.progress&&o.progress({start:0,end:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},_updateLineDraw:function(t,s){var l=this._lineDraw,u=this._showEffect(s),h=!!s.get("polyline"),c=s.pipelineContext.large;return l&&u===this._hasEffet&&h===this._isPolyline&&c===this._isLargeDraw||(l&&l.remove(),l=this._lineDraw=c?new a:new e(h?u?o:r:u?n:i),this._hasEffet=u,this._isPolyline=h,this._isLargeDraw=c,this.group.removeAll()),this.group.add(l.group),l},_showEffect:function(t){return!!t.get("effect.show")},_clearLayer:function(t){var e=t.getZr();"svg"===e.painter.getType()||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},dispose:function(){}});return v4=u}function T4(){if(_4)return b4;_4=1;var t=NK();!function(){if(o4)return r4;o4=1,tW().__DEV__;var t=kj(),e=Aq(),n=hW(),i=n.concatArray,r=n.mergeAll,o=n.map,a=EX().encodeHTML;cj();var s="undefined"==typeof Uint32Array?Array:Uint32Array,l="undefined"==typeof Float64Array?Array:Float64Array;function u(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=o(e,(function(t){var e={coords:[t[0].coord,t[1].coord]};return t[0].name&&(e.fromName=t[0].name),t[1].name&&(e.toName=t[1].name),r([e,t[0],t[1]])})))}var h=t.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(t){t.data=t.data||[],u(t);var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count)),h.superApply(this,"init",arguments)},mergeOption:function(t){if(u(t),t.data){var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count))}h.superApply(this,"mergeOption",arguments)},appendData:function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=i(this._flatCoords,e.flatCoords),this._flatCoordsOffset=i(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},_getCoordsFromItemModel:function(t){var e=this.getData().getItemModel(t);return e.option instanceof Array?e.option:e.getShallow("coords")},getLineCoordsCount:function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},getLineCoords:function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;r<i;r++)e[r]=e[r]||[],e[r][0]=this._flatCoords[n+2*r],e[r][1]=this._flatCoords[n+2*r+1];return i}var o=this._getCoordsFromItemModel(t);for(r=0;r<o.length;r++)e[r]=e[r]||[],e[r][0]=o[r][0],e[r][1]=o[r][1];return o.length},_processFlatCoordsArray:function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),"number"==typeof t[0]){for(var n=t.length,i=new s(n),r=new l(n),o=0,a=0,u=0,h=0;h<n;){u++;var c=t[h++];i[a++]=o+e,i[a++]=c;for(var d=0;d<c;d++){var p=t[h++],f=t[h++];r[o++]=p,r[o++]=f}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:r,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},getInitialData:function(t,n){var i=new e(["value"],this);return i.hasItemOption=!1,i.initData(t.data,[],(function(t,e,n,r){if(t instanceof Array)return NaN;i.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[r]:o:void 0})),i},formatTooltip:function(t){var e=this.getData().getItemModel(t),n=e.get("name");if(n)return n;var i=e.get("fromName"),r=e.get("toName"),o=[];return null!=i&&o.push(i),null!=r&&o.push(r),a(o.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}});r4=h}(),I4();var e=M4(),n=function(){if(x4)return y4;function t(t){return t instanceof Array||(t=[t,t]),t}x4=1;var e="lineStyle.opacity".split(".");return y4={seriesType:"lines",reset:function(n,i,r){var o=t(n.get("symbol")),a=t(n.get("symbolSize")),s=n.getData();return s.setVisual("fromSymbol",o&&o[0]),s.setVisual("toSymbol",o&&o[1]),s.setVisual("fromSymbolSize",a&&a[0]),s.setVisual("toSymbolSize",a&&a[1]),s.setVisual("opacity",n.get(e)),{dataEach:s.hasItemOption?function(n,i){var r=n.getItemModel(i),o=t(r.getShallow("symbol",!0)),a=t(r.getShallow("symbolSize",!0)),s=r.get(e);o[0]&&n.setItemVisual(i,"fromSymbol",o[0]),o[1]&&n.setItemVisual(i,"toSymbol",o[1]),a[0]&&n.setItemVisual(i,"fromSymbolSize",a[0]),a[1]&&n.setItemVisual(i,"toSymbolSize",a[1]),n.setItemVisual(i,"opacity",s)}:null}}}}();return t.registerLayout(e),t.registerVisual(n),b4}var C4,A4,D4,L4,k4,P4,O4,R4={};function N4(){if(P4)return k4;P4=1,tW().__DEV__;var t=NK(),e=vX(),n=function(){if(L4)return D4;L4=1;var t=hW();function e(){var e=t.createCanvas();this.canvas=e,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}return e.prototype={update:function(t,e,n,i,r,o){var a=this._getBrush(),s=this._getGradient(t,r,"inRange"),l=this._getGradient(t,r,"outOfRange"),u=this.pointSize+this.blurSize,h=this.canvas,c=h.getContext("2d"),d=t.length;h.width=e,h.height=n;for(var p=0;p<d;++p){var f=t[p],g=f[0],v=f[1],m=i(f[2]);c.globalAlpha=m,c.drawImage(a,g-u,v-u)}if(!h.width||!h.height)return h;for(var y=c.getImageData(0,0,h.width,h.height),x=y.data,_=0,b=x.length,w=this.minOpacity,S=this.maxOpacity-w;_<b;){m=x[_+3]/256;var M=4*Math.floor(255*m);if(m>0){var I=o(m)?s:l;m>0&&(m=m*S+w),x[_++]=I[M],x[_++]=I[M+1],x[_++]=I[M+2],x[_++]=I[M+3]*m*256}else _+=4}return c.putImageData(y,0,0),h},_getBrush:function(){var e=this._brushCanvas||(this._brushCanvas=t.createCanvas()),n=this.pointSize+this.blurSize,i=2*n;e.width=i,e.height=i;var r=e.getContext("2d");return r.clearRect(0,0,i,i),r.shadowOffsetX=i,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-n,n,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),e},_getGradient:function(t,e,n){for(var i=this._gradientPixels,r=i[n]||(i[n]=new Uint8ClampedArray(1024)),o=[0,0,0,0],a=0,s=0;s<256;s++)e[n](s/255,!0,o),r[a++]=o[0],r[a++]=o[1],r[a++]=o[2],r[a++]=o[3];return r}},D4=e}(),i=hW();var r=t.extendChartView({type:"heatmap",render:function(t,e,n){var i;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(i=e)}))})),this.group.removeAll(),this._incrementalDisplayable=null;var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):function(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}(r)&&this._renderOnGeo(r,t,i,n)},incrementalPrepareRender:function(t,e,n){this.group.removeAll()},incrementalRender:function(t,e,n,i){e.coordinateSystem&&this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,n,r,o,a){var s,l,u=t.coordinateSystem;if("cartesian2d"===u.type){var h=u.getAxis("x"),c=u.getAxis("y");s=h.getBandWidth(),l=c.getBandWidth()}for(var d=this.group,p=t.getData(),f="itemStyle",g="emphasis.itemStyle",v="label",m="emphasis.label",y=t.getModel(f).getItemStyle(["color"]),x=t.getModel(g).getItemStyle(),_=t.getModel(v),b=t.getModel(m),w=u.type,S="cartesian2d"===w?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],M=r;M<o;M++){var I;if("cartesian2d"===w){if(isNaN(p.get(S[2],M)))continue;var T=u.dataToPoint([p.get(S[0],M),p.get(S[1],M)]);I=new e.Rect({shape:{x:Math.floor(Math.round(T[0])-s/2),y:Math.floor(Math.round(T[1])-l/2),width:Math.ceil(s),height:Math.ceil(l)},style:{fill:p.getItemVisual(M,"color"),opacity:p.getItemVisual(M,"opacity")}})}else{if(isNaN(p.get(S[1],M)))continue;I=new e.Rect({z2:1,shape:u.dataToRect([p.get(S[0],M)]).contentShape,style:{fill:p.getItemVisual(M,"color"),opacity:p.getItemVisual(M,"opacity")}})}var C=p.getItemModel(M);p.hasItemOption&&(y=C.getModel(f).getItemStyle(["color"]),x=C.getModel(g).getItemStyle(),_=C.getModel(v),b=C.getModel(m));var A=t.getRawValue(M),D="-";A&&null!=A[2]&&(D=A[2]),e.setLabelStyle(y,x,_,b,{labelFetcher:t,labelDataIndex:M,defaultText:D,isRectText:!0}),I.setStyle(y),e.setHoverStyle(I,p.hasItemOption?x:i.extend({},x)),I.incremental=a,a&&(I.useHoverLayer=!0),d.add(I),p.setItemGraphicEl(M,I)}},_renderOnGeo:function(t,r,o,a){var s=o.targetVisuals.inRange,l=o.targetVisuals.outOfRange,u=r.getData(),h=this._hmLayer||this._hmLayer||new n;h.blurSize=r.get("blurSize"),h.pointSize=r.get("pointSize"),h.minOpacity=r.get("minOpacity"),h.maxOpacity=r.get("maxOpacity");var c=t.getViewRect().clone(),d=t.getRoamTransform();c.applyTransform(d);var p=Math.max(c.x,0),f=Math.max(c.y,0),g=Math.min(c.width+c.x,a.getWidth()),v=Math.min(c.height+c.y,a.getHeight()),m=g-p,y=v-f,x=[u.mapDimension("lng"),u.mapDimension("lat"),u.mapDimension("value")],_=u.mapArray(x,(function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=p,r[1]-=f,r.push(i),r})),b=o.getExtent(),w="visualMap.continuous"===o.type?function(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}(b,o.option.range):function(t,e,n){var r=t[1]-t[0],o=(e=i.map(e,(function(e){return{interval:[(e.interval[0]-t[0])/r,(e.interval[1]-t[0])/r]}}))).length,a=0;return function(t){for(var i=a;i<o;i++)if((r=e[i].interval)[0]<=t&&t<=r[1]){a=i;break}if(i===o)for(i=a-1;i>=0;i--){var r;if((r=e[i].interval)[0]<=t&&t<=r[1]){a=i;break}}return i>=0&&i<o&&n[i]}}(b,o.getPieceList(),o.option.selected);h.update(_,m,y,s.color.getNormalizer(),{inRange:s.color.getColorMapper(),outOfRange:l.color.getColorMapper()},w);var S=new e.Image({style:{width:m,height:y,x:p,y:f,image:h.canvas},silent:!0});this.group.add(S)},dispose:function(){}});return k4=r}function E4(){return O4||(O4=1,function(){if(A4)return C4;A4=1;var t=kj(),e=Vq(),n=cj(),i=t.extend({type:"series.heatmap",getInitialData:function(t,n){return e(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var t=n.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});C4=i}(),N4()),R4}var z4,V4,B4,G4,F4,H4={};function W4(){if(G4)return B4;G4=1;var t=NK(),e=hW(),n=vX(),i=vK().createSymbol,r=MX(),o=r.parsePercent,a=r.isNumeric,s=SJ().setLabel,l=["itemStyle","borderWidth"],u=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],h=new n.Circle,c=t.extendChartView({type:"pictorialBar",render:function(t,e,i){var r=this.group,o=t.getData(),a=this._data,s=t.coordinateSystem,l=!!s.getBaseAxis().isHorizontal(),h=s.grid.getRect(),c={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:t,coordSys:s,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:l,valueDim:u[+l],categoryDim:u[1-l]};return o.diff(a).add((function(t){if(o.hasValue(t)){var e=x(o,t),n=d(o,t,e,c),i=S(o,c,n);o.setItemGraphicEl(t,i),r.add(i),A(i,c,n)}})).update((function(t,e){var i=a.getItemGraphicEl(e);if(o.hasValue(t)){var s=x(o,t),l=d(o,t,s,c),u=I(o,l);i&&u!==i.__pictorialShapeStr&&(r.remove(i),o.setItemGraphicEl(t,null),i=null),i?function(t,e,i){var r=i.animationModel,o=i.dataIndex,a=t.__pictorialBundle;n.updateProps(a,{position:i.bundlePosition.slice()},r,o),i.symbolRepeat?g(t,e,i,!0):v(t,e,i,!0);m(t,i,!0),y(t,e,i,!0)}(i,c,l):i=S(o,c,l,!0),o.setItemGraphicEl(t,i),i.__pictorialSymbolMeta=l,r.add(i),A(i,c,l)}else r.remove(i)})).remove((function(t){var e=a.getItemGraphicEl(t);e&&M(a,t,e.__pictorialSymbolMeta.animationModel,e)})).execute(),this._data=o,this.group},dispose:e.noop,remove:function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl((function(e){M(i,e.dataIndex,t,e)})):n.removeAll()}});function d(t,n,i,r){var s=t.getItemLayout(n),u=i.get("symbolRepeat"),c=i.get("symbolClip"),d=i.get("symbolPosition")||"start",f=(i.get("symbolRotate")||0)*Math.PI/180||0,g=i.get("symbolPatternSize")||2,v=i.isAnimationEnabled(),m={dataIndex:n,layout:s,itemModel:i,symbolType:t.getItemVisual(n,"symbol")||"circle",color:t.getItemVisual(n,"color"),symbolClip:c,symbolRepeat:u,symbolRepeatDirection:i.get("symbolRepeatDirection"),symbolPatternSize:g,rotation:f,animationModel:v?i:null,hoverAnimation:v&&i.get("hoverAnimation"),z2:i.getShallow("z",!0)||0};!function(t,n,i,r,o){var a,s=r.valueDim,l=t.get("symbolBoundingData"),u=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),h=u.toGlobalCoord(u.dataToCoord(0)),c=1-+(i[s.wh]<=0);if(e.isArray(l)){var d=[p(u,l[0])-h,p(u,l[1])-h];d[1]<d[0]&&d.reverse(),a=d[c]}else a=null!=l?p(u,l)-h:n?r.coordSysExtent[s.index][c]-h:i[s.wh];o.boundingLength=a,n&&(o.repeatCutLength=i[s.wh]);o.pxSign=a>0?1:a<0?-1:0}(i,u,s,r,m),function(t,n,i,r,a,s,l,u,h,c){var d=h.valueDim,p=h.categoryDim,f=Math.abs(i[p.wh]),g=t.getItemVisual(n,"symbolSize");e.isArray(g)?g=g.slice():(null==g&&(g="100%"),g=[g,g]);g[p.index]=o(g[p.index],f),g[d.index]=o(g[d.index],r?f:Math.abs(s)),c.symbolSize=g;var v=c.symbolScale=[g[0]/u,g[1]/u];v[d.index]*=(h.isHorizontal?-1:1)*l}(t,n,s,u,0,m.boundingLength,m.pxSign,g,r,m),function(t,e,n,i,r){var o=t.get(l)||0;o&&(h.attr({scale:e.slice(),rotation:n}),h.updateTransform(),o/=h.getLineScale(),o*=e[i.valueDim.index]);r.valueLineWidth=o}(i,m.symbolScale,f,r,m);var y=m.symbolSize,x=i.get("symbolOffset");return e.isArray(x)&&(x=[o(x[0],y[0]),o(x[1],y[1])]),function(t,n,i,r,s,l,u,h,c,d,p,f){var g=p.categoryDim,v=p.valueDim,m=f.pxSign,y=Math.max(n[v.index]+h,0),x=y;if(r){var _=Math.abs(c),b=e.retrieve(t.get("symbolMargin"),"15%")+"",w=!1;b.lastIndexOf("!")===b.length-1&&(w=!0,b=b.slice(0,b.length-1)),b=o(b,n[v.index]);var S=Math.max(y+2*b,0),M=w?0:2*b,I=a(r),T=I?r:D((_+M)/S);S=y+2*(b=(_-T*y)/2/(w?T:T-1)),M=w?0:2*b,I||"fixed"===r||(T=d?D((Math.abs(d)+M)/S):0),x=T*S-M,f.repeatTimes=T,f.symbolMargin=b}var C=m*(x/2),A=f.pathPosition=[];A[g.index]=i[g.wh]/2,A[v.index]="start"===u?C:"end"===u?c-C:c/2,l&&(A[0]+=l[0],A[1]+=l[1]);var L=f.bundlePosition=[];L[g.index]=i[g.xy],L[v.index]=i[v.xy];var k=f.barRectShape=e.extend({},i);k[v.wh]=m*Math.max(Math.abs(i[v.wh]),Math.abs(A[v.index]+C)),k[g.wh]=i[g.wh];var P=f.clipShape={};P[g.xy]=-i[g.xy],P[g.wh]=p.ecSize[g.wh],P[v.xy]=0,P[v.wh]=i[v.wh]}(i,y,s,u,0,x,d,m.valueLineWidth,m.boundingLength,m.repeatCutLength,r,m),m}function p(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function f(t){var e=t.symbolPatternSize,n=i(t.symbolType,-e/2,-e/2,e,e,t.color);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function g(t,e,n,i){var r=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,h=0,c=o[e.valueDim.index]+a+2*n.symbolMargin;for(T(t,(function(t){t.__pictorialAnimationIndex=h,t.__pictorialRepeatTimes=u,h<u?C(t,null,g(h),n,i):C(t,null,{scale:[0,0]},n,i,(function(){r.remove(t)})),w(t,n),h++}));h<u;h++){var d=f(n);d.__pictorialAnimationIndex=h,d.__pictorialRepeatTimes=u,r.add(d);var p=g(h);C(d,{position:p.position,scale:[0,0]},{scale:p.scale,rotation:p.rotation},n,i),d.on("mouseover",v).on("mouseout",m),w(d,n)}function g(t){var e=s.slice(),i=n.pxSign,r=t;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(r=u-1-t),e[l.index]=c*(r-u/2+.5)+s[l.index],{position:e,scale:n.symbolScale.slice(),rotation:n.rotation}}function v(){T(t,(function(t){t.trigger("emphasis")}))}function m(){T(t,(function(t){t.trigger("normal")}))}}function v(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?C(o,null,{position:n.pathPosition.slice(),scale:n.symbolScale.slice(),rotation:n.rotation},n,i):(o=t.__pictorialMainPath=f(n),r.add(o),C(o,{position:n.pathPosition.slice(),scale:[0,0],rotation:n.rotation},{scale:n.symbolScale.slice()},n,i),o.on("mouseover",(function(){this.trigger("emphasis")})).on("mouseout",(function(){this.trigger("normal")}))),w(o,n)}function m(t,i,r){var o=e.extend({},i.barRectShape),a=t.__pictorialBarRect;a?C(a,null,{shape:o},i,r):(a=t.__pictorialBarRect=new n.Rect({z2:2,shape:o,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(a))}function y(t,i,r,o){if(r.symbolClip){var a=t.__pictorialClipPath,s=e.extend({},r.clipShape),l=i.valueDim,u=r.animationModel,h=r.dataIndex;if(a)n.updateProps(a,{shape:s},u,h);else{s[l.wh]=0,a=new n.Rect({shape:s}),t.__pictorialBundle.setClipPath(a),t.__pictorialClipPath=a;var c={};c[l.wh]=r.clipShape[l.wh],n[o?"updateProps":"initProps"](a,{shape:c},u,h)}}}function x(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=_,n.isAnimationEnabled=b,n}function _(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function b(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function w(t,e){t.off("emphasis").off("normal");var n=e.symbolScale.slice();e.hoverAnimation&&t.on("emphasis",(function(){this.animateTo({scale:[1.1*n[0],1.1*n[1]]},400,"elasticOut")})).on("normal",(function(){this.animateTo({scale:n.slice()},400,"elasticOut")}))}function S(t,e,i,r){var o=new n.Group,a=new n.Group;return o.add(a),o.__pictorialBundle=a,a.attr("position",i.bundlePosition.slice()),i.symbolRepeat?g(o,e,i):v(o,0,i),m(o,i,r),y(o,e,i,r),o.__pictorialShapeStr=I(t,i),o.__pictorialSymbolMeta=i,o}function M(t,i,r,o){var a=o.__pictorialBarRect;a&&(a.style.text=null);var s=[];T(o,(function(t){s.push(t)})),o.__pictorialMainPath&&s.push(o.__pictorialMainPath),o.__pictorialClipPath&&(r=null),e.each(s,(function(t){n.updateProps(t,{scale:[0,0]},r,i,(function(){o.parent&&o.parent.remove(o)}))})),t.setItemGraphicEl(i,null)}function I(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function T(t,n,i){e.each(t.__pictorialBundle.children(),(function(e){e!==t.__pictorialBarRect&&n.call(i,e)}))}function C(t,e,i,r,o,a){e&&t.attr(e),r.symbolClip&&!o?i&&t.attr(i):i&&n[o?"updateProps":"initProps"](t,i,r.animationModel,r.dataIndex,a)}function A(t,i,r){var o=r.color,a=r.dataIndex,l=r.itemModel,u=l.getModel("itemStyle").getItemStyle(["color"]),h=l.getModel("emphasis.itemStyle").getItemStyle(),c=l.getShallow("cursor");T(t,(function(t){t.setColor(o),t.setStyle(e.defaults({fill:o,opacity:r.opacity},u)),n.setHoverStyle(t,h),c&&(t.cursor=c),t.z2=r.z2}));var d={},p=i.valueDim.posDesc[+(r.boundingLength>0)],f=t.__pictorialBarRect;s(f.style,d,l,o,i.seriesModel,a,p),n.setHoverStyle(f,d)}function D(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}return B4=c}function U4(){if(F4)return H4;F4=1;var t=NK(),e=hW();z$(),function(){if(V4)return z4;V4=1;var t=pJ().extend({type:"series.pictorialBar",dependencies:["grid"],defaultOption:{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,hoverAnimation:!1},getInitialData:function(e){return e.stack=null,t.superApply(this,"getInitialData",arguments)}});z4=t}(),W4();var n=uK().layout,i=f$();return aJ(),t.registerLayout(e.curry(n,"pictorialBar")),t.registerVisual(i("pictorialBar","roundRect")),H4}var Y4,Z4,X4,j4,q4,K4={},$4={},J4={};function Q4(){if(j4)return X4;j4=1;var t=function(){if(Z4)return Y4;Z4=1;var t=hW(),e=OK(),n=function(t,n,i,r,o){e.call(this,t,n,i),this.type=r||"value",this.position=o||"bottom",this.orient=null};return n.prototype={constructor:n,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},pointToData:function(t,e){return this.coordinateSystem.pointToData(t,e)[0]},toGlobalCoord:null,toLocalCoord:null},t.inherits(n,e),Y4=n}(),e=cK(),n=zX().getLayoutRect,i=hW().each;function r(t,e,n){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(t,e,n),this.model=t}return r.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:r,_init:function(n,i,r){var o=this.dimension,a=new t(o,e.createScaleByModel(n),[0,0],n.get("type"),n.get("position")),s="category"===a.type;a.onBand=s&&n.get("boundaryGap"),a.inverse=n.get("inverse"),a.orient=n.get("orient"),n.axis=a,a.model=n,a.coordinateSystem=this,this._axis=a},update:function(t,n){t.eachSeries((function(t){if(t.coordinateSystem===this){var n=t.getData();i(n.mapDimension(this.dimension,!0),(function(t){this._axis.scale.unionExtentFromData(n,t)}),this),e.niceScaleExtent(this._axis.scale,this._axis.model)}}),this)},resize:function(t,e){this._rect=n({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],r=e.reverse?1:0;e.setExtent(i[r],i[1-r]),this._updateAxisTransform(e,n?t.x:t.y)},_updateAxisTransform:function(t,e){var n=t.getExtent(),i=n[0]+n[1],r=t.isHorizontal();t.toGlobalCoord=r?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=r?function(t){return t-e}:function(t){return i-t+e}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(t){var e=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i}},X4=r}var t6,e6,n6,i6,r6,o6={};function a6(){if(t6)return o6;t6=1;var t=hW();return o6.layout=function(e,n){n=n||{};var i=e.coordinateSystem,r=e.axis,o={},a=r.position,s=r.orient,l=i.getRect(),u=[l.x,l.x+l.width,l.y,l.y+l.height],h={horizontal:{top:u[2],bottom:u[3]},vertical:{left:u[0],right:u[1]}};o.position=["vertical"===s?h.vertical[a]:u[0],"horizontal"===s?h.horizontal[a]:u[3]],o.rotation=Math.PI/2*{horizontal:0,vertical:1}[s],o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,right:1,left:-1}[a],e.get("axisTick.inside")&&(o.tickDirection=-o.tickDirection),t.retrieve(n.labelInside,e.get("axisLabel.inside"))&&(o.labelDirection=-o.labelDirection);var c=n.rotate;return null==c&&(c=e.get("axisLabel.rotate")),o.labelRotation="top"===a?-c:c,o.z2=1,o},o6}var s6,l6,u6,h6,c6,d6,p6={};function f6(){if(l6)return s6;l6=1;var t=hW(),e=mY();return s6=function(n,i){var r,o=[],a=n.seriesIndex;if(null==a||!(r=i.getSeriesByIndex(a)))return{point:[]};var s=r.getData(),l=e.queryDataIndex(s,n);if(null==l||l<0||t.isArray(l))return{point:[]};var u=s.getItemGraphicEl(l),h=r.coordinateSystem;if(r.getTooltipPosition)o=r.getTooltipPosition(l)||[];else if(h&&h.dataToPoint)o=h.dataToPoint(s.getValues(t.map(h.dimensions,(function(t){return s.mapDimension(t)})),l,!0))||[];else if(u){var c=u.getBoundingRect().clone();c.applyTransform(u.transform),o=[c.x+c.width/2,c.y+c.height/2]}return{point:o,el:u}}}function g6(){if(h6)return u6;h6=1;var t=hW(),e=mY().makeInner,n=X$(),i=f6(),r=t.each,o=t.curry,a=e();function s(e,n,i,o,a){var s=e.axis;if(!s.scale.isBlank()&&s.containData(n))if(e.involveSeries){var l=function(t,e){var n=e.axis,i=n.dim,o=t,a=[],s=Number.MAX_VALUE,l=-1;return r(e.seriesModels,(function(e,u){var h,c,d=e.getData().mapDimension(i,!0);if(e.getAxisTooltipData){var p=e.getAxisTooltipData(d,t,n);c=p.dataIndices,h=p.nestestValue}else{if(!(c=e.getData().indicesOfNearest(d[0],t,"category"===n.type?.5:null)).length)return;h=e.getData().get(d[0],c[0])}if(null!=h&&isFinite(h)){var f=t-h,g=Math.abs(f);g<=s&&((g<s||f>=0&&l<0)&&(s=g,l=f,o=h,a.length=0),r(c,(function(t){a.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:a,snapToValue:o}}(n,e),u=l.payloadBatch,h=l.snapToValue;u[0]&&null==a.seriesIndex&&t.extend(a,u[0]),!o&&e.snap&&s.containData(h)&&null!=h&&(n=h),i.showPointer(e,n,u,a),i.showTooltip(e,l,h)}else i.showPointer(e,n)}function l(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function u(t,e,i,r){var o=i.payloadBatch,a=e.axis,s=a.model,l=e.axisPointerModel;if(e.triggerTooltip&&o.length){var u=e.coordSys.model,h=n.makeKey(u),c=t.map[h];c||(c=t.map[h]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:r,valueLabelOpt:{precision:l.get("label.precision"),formatter:l.get("label.formatter")},seriesDataIndices:o.slice()})}}function h(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function c(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}return u6=function(e,n,d){var p=e.currTrigger,f=[e.x,e.y],g=e,v=e.dispatchAction||t.bind(d.dispatchAction,d),m=n.getComponent("axisPointer").coordSysAxesInfo;if(m){c(f)&&(f=i({seriesIndex:g.seriesIndex,dataIndex:g.dataIndex},n).point);var y=c(f),x=g.axesInfo,_=m.axesInfo,b="leave"===p||c(f),w={},S={},M={list:[],map:{}},I={showPointer:o(l,S),showTooltip:o(u,M)};r(m.coordSysMap,(function(t,e){var n=y||t.containPoint(f);r(m.coordSysAxesInfo[e],(function(t,e){var i=t.axis,r=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(x,t);if(!b&&n&&(!x||r)){var o=r&&r.value;null!=o||y||(o=i.pointToData(f)),null!=o&&s(t,o,I,!1,w)}}))}));var T={};return r(_,(function(t,e){var n=t.linkGroup;n&&!S[e]&&r(n.axesInfo,(function(e,i){var r=S[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,h(e),h(t)))),T[t.key]=o}}))})),r(T,(function(t,e){s(_[e],t,I,!0,w)})),function(t,e,n){var i=n.axesInfo=[];r(e,(function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}(S,_,w),function(t,e,n,i){if(c(e)||!t.list.length)return void i({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}(M,f,e,v),function(e,n,i){var o=i.getZr(),s="axisPointerLastHighlights",l=a(o)[s]||{},u=a(o)[s]={};r(e,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&r(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;u[e]=t}))}));var h=[],c=[];t.each(l,(function(t,e){!u[e]&&c.push(t)})),t.each(u,(function(t,e){!l[e]&&h.push(t)})),c.length&&i.dispatchAction({type:"downplay",escapeConnect:!0,batch:c}),h.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,batch:h})}(_,0,d),w}},u6}var v6,m6,y6,x6,_6,b6={};function w6(){if(v6)return b6;v6=1;var t=hW(),e=sW(),n=(0,mY().makeInner)(),i=t.each;function r(t,e,n){t.handler("leave",null,n)}function o(t,e,n,i){e.handler(t,n,i)}return b6.register=function(a,s,l){if(!e.node){var u=s.getZr();n(u).records||(n(u).records={}),function(e,a){if(n(e).initialized)return;function s(t,r){e.on(t,(function(t){var o=function(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}(a);i(n(e).records,(function(e){e&&r(e,t,o.dispatchAction)})),function(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]);n&&(n.dispatchAction=null,e.dispatchAction(n))}(o.pendings,a)}))}n(e).initialized=!0,s("click",t.curry(o,"click")),s("mousemove",t.curry(o,"mousemove")),s("globalout",r)}(u,s),(n(u).records[a]||(n(u).records[a]={})).handler=l}},b6.unregister=function(t,i){if(!e.node){var r=i.getZr();(n(r).records||{})[t]&&(n(r).records[t]=null)}},b6}function S6(){if(_6)return x6;_6=1;var t=hW(),e=TY(),n=vX(),i=X$(),r=LW(),o=$j(),a=(0,mY().makeInner)(),s=t.clone,l=t.bind;function u(){}function h(t,e,i,r){c(a(i).lastProp,r)||(a(i).lastProp=r,e?n.updateProps(i,r,t):(i.stopAnimation(),i.attr(r)))}function c(e,n){if(t.isObject(e)&&t.isObject(n)){var i=!0;return t.each(n,(function(t,n){i=i&&c(e[n],t)})),!!i}return e===n}function d(t,e){t[e.get("label.show")?"show":"hide"]()}function p(t){return{position:t.position.slice(),rotation:t.rotation||0}}function f(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)}))}return u.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(e,i,r,o){var a=i.get("value"),s=i.get("status");if(this._axisModel=e,this._axisPointerModel=i,this._api=r,o||this._lastValue!==a||this._lastStatus!==s){this._lastValue=a,this._lastStatus=s;var l=this._group,u=this._handle;if(!s||"hide"===s)return l&&l.hide(),void(u&&u.hide());l&&l.show(),u&&u.show();var c={};this.makeElOption(c,a,e,i,r);var d=c.graphicKey;d!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=d;var p=this._moveAnimation=this.determineAnimation(e,i);if(l){var g=t.curry(h,i,p);this.updatePointerEl(l,c,g,i),this.updateLabelEl(l,c,g,i)}else l=this._group=new n.Group,this.createPointerEl(l,c,e,i),this.createLabelEl(l,c,e,i),r.getZr().add(l);f(l,i,!0),this._renderHandle(a)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var n=e.get("animation"),r=t.axis,o="category"===r.type,a=e.get("snap");if(!a&&!o)return!1;if("auto"===n||null==n){var s=this.animationThreshold;if(o&&r.getBandWidth()>s)return!0;if(a){var l=i.getAxisInfo(t).seriesDataCount,u=r.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return!0===n},makeElOption:function(t,e,n,i,r){},createPointerEl:function(t,e,i,r){var o=e.pointer;if(o){var l=a(t).pointerEl=new n[o.type](s(e.pointer));t.add(l)}},createLabelEl:function(t,e,i,r){if(e.label){var o=a(t).labelEl=new n.Rect(s(e.label));t.add(o),d(o,r)}},updatePointerEl:function(t,e,n){var i=a(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,n,i){var r=a(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{shape:e.label.shape,position:e.label.position}),d(r,i))},_renderHandle:function(e){if(!this._dragging&&this.updateHandleTransform){var i,a=this._axisPointerModel,s=this._api.getZr(),u=this._handle,h=a.getModel("handle"),c=a.get("status");if(!h.get("show")||!c||"hide"===c)return u&&s.remove(u),void(this._handle=null);this._handle||(i=!0,u=this._handle=n.createIcon(h.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){r.stop(t.event)},onmousedown:l(this._onHandleDragMove,this,0,0),drift:l(this._onHandleDragMove,this),ondragend:l(this._onHandleDragEnd,this)}),s.add(u)),f(u,a,!1);u.setStyle(h.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var d=h.get("size");t.isArray(d)||(d=[d,d]),u.attr("scale",[d[0]/2,d[1]/2]),o.createOrUpdate(this,"_doDispatchAxisPointer",h.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,i)}},_moveHandleToValue:function(t,e){h(this._axisPointerModel,!e&&this._moveAnimation,this._handle,p(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(p(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(p(i)),a(n).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},_onHandleDragEnd:function(t){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}},u.prototype.constructor=u,e.enableClassExtend(u),x6=u}var M6,I6,T6,C6,A6,D6,L6,k6,P6,O6,R6,N6,E6,z6,V6,B6,G6={};function F6(){if(M6)return G6;M6=1;var t=hW(),e=vX(),n=UU(),i=EX(),r=GW(),o=cK(),a=H$();function s(t,e,r,o,a){var s=l(r.get("value"),e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get("label.precision"),formatter:r.get("label.formatter")}),u=r.getModel("label"),h=i.normalizeCssArray(u.get("padding")||0),c=u.getFont(),d=n.getBoundingRect(s,c),p=a.position,f=d.width+h[1]+h[3],g=d.height+h[0]+h[2],v=a.align;"right"===v&&(p[0]-=f),"center"===v&&(p[0]-=f/2);var m=a.verticalAlign;"bottom"===m&&(p[1]-=g),"middle"===m&&(p[1]-=g/2),function(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(p,f,g,o);var y=u.get("backgroundColor");y&&"auto"!==y||(y=e.get("axisLine.lineStyle.color")),t.label={shape:{x:0,y:0,width:f,height:g,r:u.get("borderRadius")},position:p.slice(),style:{text:s,textFont:c,textFill:u.getTextColor(),textPosition:"inside",textPadding:h,fill:y,stroke:u.get("borderColor")||"transparent",lineWidth:u.get("borderWidth")||0,shadowBlur:u.get("shadowBlur"),shadowColor:u.get("shadowColor"),shadowOffsetX:u.get("shadowOffsetX"),shadowOffsetY:u.get("shadowOffsetY")},z2:10}}function l(e,n,i,r,a){e=n.scale.parse(e);var s=n.scale.getLabel(e,{precision:a.precision}),l=a.formatter;if(l){var u={value:o.getAxisRawValue(n,e),axisDimension:n.dim,axisIndex:n.index,seriesData:[]};t.each(r,(function(t){var e=i.getSeriesByIndex(t.seriesIndex),n=t.dataIndexInside,r=e&&e.getDataParams(n);r&&u.seriesData.push(r)})),t.isString(l)?s=l.replace("{value}",s):t.isFunction(l)&&(s=l(u))}return s}function u(t,n,i){var o=r.create();return r.rotate(o,o,i.rotation),r.translate(o,o,i.position),e.applyTransform([t.dataToCoord(n),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],o)}return G6.buildElStyle=function(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle()).fill=null:"shadow"===n&&((e=i.getAreaStyle()).stroke=null),e},G6.buildLabelElOption=s,G6.getValueLabel=l,G6.getTransformedPosition=u,G6.buildCartesianSingleLabelElOption=function(t,e,n,i,r,o){var l=a.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get("label.margin"),s(e,i,r,o,{position:u(i.axis,t,n),align:l.textAlign,verticalAlign:l.textVerticalAlign})},G6.makeLineShape=function(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}},G6.makeRectShape=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},G6.makeSectorShape=function(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}},G6}function H6(){if(T6)return I6;T6=1;var t=S6(),e=F6(),n=$$(),i=j$(),r=t.extend({makeElOption:function(t,i,r,s,l){var u=r.axis,h=u.grid,c=s.get("type"),d=o(h,u).getOtherAxis(u).getGlobalExtent(),p=u.toGlobalCoord(u.dataToCoord(i,!0));if(c&&"none"!==c){var f=e.buildElStyle(s),g=a[c](u,p,d);g.style=f,t.graphicKey=g.type,t.pointer=g}var v=n.layout(h.model,r);e.buildCartesianSingleLabelElOption(i,t,v,r,s,l)},getHandleTransform:function(t,i,r){var o=n.layout(i.axis.grid.model,i,{labelInside:!1});return o.labelMargin=r.get("handle.margin"),{position:e.getTransformedPosition(i.axis,t,o),rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n,i){var r=n.axis,a=r.grid,s=r.getGlobalExtent(!0),l=o(a,r).getOtherAxis(r).getGlobalExtent(),u="x"===r.dim?0:1,h=t.position;h[u]+=e[u],h[u]=Math.min(s[1],h[u]),h[u]=Math.max(s[0],h[u]);var c=(l[1]+l[0])/2,d=[c,c];d[u]=h[u];return{position:h,rotation:t.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][u]}}});function o(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var a={line:function(t,n,i){return{type:"Line",subPixelOptimize:!0,shape:e.makeLineShape([n,i[0]],[n,i[1]],s(t))}},shadow:function(t,n,i){var r=Math.max(1,t.getBandWidth()),o=i[1]-i[0];return{type:"Rect",shape:e.makeRectShape([n-r/2,i[0]],[r,o],s(t))}}};function s(t){return"x"===t.dim?0:1}return i.registerAxisPointerClass("CartesianAxisPointer",r),I6=r}function W6(){if(C6)return p6;C6=1;var t=NK(),e=hW(),n=X$(),i=g6();return function(){if(d6)return c6;d6=1;var t=NK().extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}});c6=t}(),function(){if(y6)return m6;y6=1;var t=NK(),e=w6(),n=t.extendComponentView({type:"axisPointer",render:function(t,n,i){var r=n.getComponent("tooltip"),o=t.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";e.register("axisPointer",i,(function(t,e,n){"none"!==o&&("leave"===t||o.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},remove:function(t,i){e.unregister(i.getZr(),"axisPointer"),n.superApply(this._model,"remove",arguments)},dispose:function(t,i){e.unregister("axisPointer",i),n.superApply(this._model,"dispose",arguments)}});m6=n}(),H6(),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!e.isArray(n)&&(t.axisPointer.link=[n])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=n.collect(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},i),p6}function U6(){if(L6)return $4;L6=1;var t=NK();return function(){if(q4)return J4;q4=1;var t=Q4();cj().register("single",{create:function(e,n){var i=[];return e.eachComponent("singleAxis",(function(r,o){var a=new t(r,e,n);a.name="single_"+o,a.resize(r,n),r.coordinateSystem=a,i.push(a)})),e.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var n=e.queryComponents({mainType:"singleAxis",index:t.get("singleAxisIndex"),id:t.get("singleAxisId")})[0];t.coordinateSystem=n&&n.coordinateSystem}})),i},dimensions:t.prototype.dimensions})}(),function(){if(n6)return e6;n6=1;var t=hW(),e=H$(),n=vX(),i=a6(),r=j$(),o=rJ(),a=o.rectCoordAxisBuildSplitArea,s=o.rectCoordAxisHandleRemove,l=["axisLine","axisTickLabel","axisName"],u=["splitArea","splitLine"],h=r.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(r,o,a,s){var c=this.group;c.removeAll();var d=this._axisGroup;this._axisGroup=new n.Group;var p=i.layout(r),f=new e(r,p);t.each(l,f.add,f),c.add(this._axisGroup),c.add(f.getGroup()),t.each(u,(function(t){r.get(t+".show")&&this["_"+t](r)}),this),n.groupTransition(d,this._axisGroup,r),h.superCall(this,"render",r,o,a,s)},remove:function(){s(this)},_splitLine:function(t){var e=t.axis;if(!e.scale.isBlank()){var i=t.getModel("splitLine"),r=i.getModel("lineStyle"),o=r.get("width"),a=r.get("color");a=a instanceof Array?a:[a];for(var s=t.coordinateSystem.getRect(),l=e.isHorizontal(),u=[],h=0,c=e.getTicksCoords({tickModel:i}),d=[],p=[],f=0;f<c.length;++f){var g=e.toGlobalCoord(c[f].coord);l?(d[0]=g,d[1]=s.y,p[0]=g,p[1]=s.y+s.height):(d[0]=s.x,d[1]=g,p[0]=s.x+s.width,p[1]=g);var v=h++%a.length;u[v]=u[v]||[],u[v].push(new n.Line({subPixelOptimize:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:{lineWidth:o},silent:!0}))}for(f=0;f<u.length;++f)this.group.add(n.mergePath(u[f],{style:{stroke:a[f%a.length],lineDash:r.getLineDash(o),lineWidth:o},silent:!0}))}},_splitArea:function(t){a(this,this._axisGroup,t,t)}});e6=h}(),function(){if(r6)return i6;r6=1;var t=hW(),e=VX(),n=N$(),i=dK(),r=e.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}});t.merge(r.prototype,i),n("single",r,(function(t,e){return e.type||(e.data?"category":"value")}),{left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}}),i6=r}(),W6(),function(){if(D6)return A6;D6=1;var t=S6(),e=F6(),n=a6(),i=j$(),r=["x","y"],o=["width","height"],a=t.extend({makeElOption:function(t,i,r,o,a){var h=r.axis,c=h.coordinateSystem,d=u(c,1-l(h)),p=c.dataToPoint(i)[0],f=o.get("type");if(f&&"none"!==f){var g=e.buildElStyle(o),v=s[f](h,p,d);v.style=g,t.graphicKey=v.type,t.pointer=v}var m=n.layout(r);e.buildCartesianSingleLabelElOption(i,t,m,r,o,a)},getHandleTransform:function(t,i,r){var o=n.layout(i,{labelInside:!1});return o.labelMargin=r.get("handle.margin"),{position:e.getTransformedPosition(i.axis,t,o),rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n,i){var r=n.axis,o=r.coordinateSystem,a=l(r),s=u(o,a),h=t.position;h[a]+=e[a],h[a]=Math.min(s[1],h[a]),h[a]=Math.max(s[0],h[a]);var c=u(o,1-a),d=(c[1]+c[0])/2,p=[d,d];return p[a]=h[a],{position:h,rotation:t.rotation,cursorPoint:p,tooltipOption:{verticalAlign:"middle"}}}}),s={line:function(t,n,i){return{type:"Line",subPixelOptimize:!0,shape:e.makeLineShape([n,i[0]],[n,i[1]],l(t))}},shadow:function(t,n,i){var r=t.getBandWidth(),o=i[1]-i[0];return{type:"Rect",shape:e.makeRectShape([n-r/2,i[0]],[r,o],l(t))}}};function l(t){return t.isHorizontal()?0:1}function u(t,e){var n=t.getRect();return[n[r[e]],n[r[e]]+n[o[e]]]}i.registerAxisPointerClass("SingleAxisPointer",a),A6=a}(),t.extendComponentView({type:"single"}),$4}function Y6(){if(R6)return O6;R6=1;var t=NK(),e=e$().Polygon,n=vX(),i=hW(),r=i.bind,o=i.extend,a=gq(),s=t.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(t,i,s){var l=t.getData(),u=this.group,h=t.getLayerSeries(),c=l.getLayout("layoutInfo"),d=c.rect,p=c.boundaryGap;function f(t){return t.name}u.attr("position",[0,d.y+p[0]]);var g=new a(this._layersSeries||[],h,f,f),v={};function m(i,r,a){var s=this._layers;if("remove"!==i){for(var c,d,p,f=[],g=[],m=h[r].indices,y=0;y<m.length;y++){var x=l.getItemLayout(m[y]),_=x.x,b=x.y0,w=x.y;f.push([_,b]),g.push([_,b+w]),c=l.getItemVisual(m[y],"color")}var S=l.getItemLayout(m[0]),M=l.getItemModel(m[y-1]),I=M.getModel("label"),T=I.get("margin");if("add"===i){var C=v[r]=new n.Group;d=new e({shape:{points:f,stackedOnPoints:g,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),p=new n.Text({style:{x:S.x-T,y:S.y0+S.y/2}}),C.add(d),C.add(p),u.add(C),d.setClipPath(function(t,e,i){var r=new n.Rect({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return n.initProps(r,{shape:{width:t.width+20,height:t.height+20}},e,i),r}(d.getBoundingRect(),t,(function(){d.removeClipPath()})))}else{C=s[a];d=C.childAt(0),p=C.childAt(1),u.add(C),v[r]=C,n.updateProps(d,{shape:{points:f,stackedOnPoints:g}},t),n.updateProps(p,{style:{x:S.x-T,y:S.y0+S.y/2}},t)}var A=M.getModel("emphasis.itemStyle"),D=M.getModel("itemStyle");n.setTextStyle(p.style,I,{text:I.get("show")?t.getFormattedLabel(m[y-1],"normal")||l.getName(m[y-1]):null,textVerticalAlign:"middle"}),d.setStyle(o({fill:c},D.getItemStyle(["color"]))),n.setHoverStyle(d,A.getItemStyle())}else u.remove(s[r])}g.add(r(m,this,"add")).update(r(m,this,"update")).remove(r(m,this,"remove")).execute(),this._layersSeries=h,this._layers=v},dispose:function(){}});return O6=s}function Z6(){if(B6)return K4;B6=1;var t=NK();U6(),function(){if(P6)return k6;P6=1;var t=kj(),e=Lq(),n=Tq().getDimensionTypeByAxis,i=Aq(),r=hW(),o=mY().groupData,a=EX().encodeHTML,s=KJ(),l=t.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(t){l.superApply(this,"init",arguments),this.legendVisualProvider=new s(r.bind(this.getData,this),r.bind(this.getRawData,this))},fixData:function(t){var e=t.length,n={},i=o(t,(function(t){return n.hasOwnProperty(t[0])||(n[t[0]]=-1),t[2]})),r=[];i.buckets.each((function(t,e){r.push({name:e,dataList:t})}));for(var a=r.length,s=0;s<a;++s){for(var l=r[s].name,u=0;u<r[s].dataList.length;++u){var h=r[s].dataList[u][0];n[h]=s}for(var h in n)n.hasOwnProperty(h)&&n[h]!==s&&(n[h]=s,t[e]=[],t[e][0]=h,t[e][1]=0,t[e][2]=l,e++)}return t},getInitialData:function(t,o){for(var a=o.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0].get("type"),s=r.filter(t.data,(function(t){return void 0!==t[2]})),l=this.fixData(s||[]),u=[],h=this.nameMap=r.createHashMap(),c=0,d=0;d<l.length;++d)u.push(l[d][2]),h.get(l[d][2])||(h.set(l[d][2],c),c++);var p=e(l,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:n(a)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),f=new i(p,this);return f.initData(l),f},getLayerSeries:function(){for(var t=this.getData(),e=t.count(),n=[],i=0;i<e;++i)n[i]=i;var r=t.mapDimension("single"),a=o(n,(function(e){return t.get("name",e)})),s=[];return a.buckets.each((function(e,n){e.sort((function(e,n){return t.get(r,e)-t.get(r,n)})),s.push({name:n,indices:e})})),s},getAxisTooltipData:function(t,e,n){r.isArray(t)||(t=t?[t]:[]);for(var i,o=this.getData(),a=this.getLayerSeries(),s=[],l=a.length,u=0;u<l;++u){for(var h=Number.MAX_VALUE,c=-1,d=a[u].indices.length,p=0;p<d;++p){var f=o.get(t[0],a[u].indices[p]),g=Math.abs(f-e);g<=h&&(i=f,h=g,c=a[u].indices[p])}s.push(c)}return{dataIndices:s,nestestValue:i}},formatTooltip:function(t){var e=this.getData(),n=e.getName(t),i=e.get(e.mapDimension("value"),t);return(isNaN(i)||null==i)&&(i="-"),a(n+" : "+i)},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",color:"#000",fontSize:11},emphasis:{label:{show:!0}}}});k6=l}(),Y6();var e=function(){if(E6)return N6;E6=1;var t=hW(),e=MX();function n(e,n,i){if(e.count())for(var r,o=n.coordinateSystem,a=n.getLayerSeries(),s=e.mapDimension("single"),l=e.mapDimension("value"),u=t.map(a,(function(n){return t.map(n.indices,(function(t){var n=o.dataToPoint(e.get(s,t));return n[1]=e.get(l,t),n}))})),h=function(t){for(var e=t.length,n=t[0].length,i=[],r=[],o=0,a={},s=0;s<n;++s){for(var l=0,u=0;l<e;++l)u+=t[l][s][1];u>o&&(o=u),i.push(u)}for(var h=0;h<n;++h)r[h]=(o-i[h])/2;o=0;for(var c=0;c<n;++c){var d=i[c]+r[c];d>o&&(o=d)}return a.y0=r,a.max=o,a}(u),c=h.y0,d=i/h.max,p=a.length,f=a[0].indices.length,g=0;g<f;++g){r=c[g]*d,e.setItemLayout(a[0].indices[g],{layerIndex:0,x:u[0][g][0],y0:r,y:u[0][g][1]*d});for(var v=1;v<p;++v)r+=u[v-1][g][1]*d,e.setItemLayout(a[v].indices[g],{layerIndex:v,x:u[v][g][0],y0:r,y:u[v][g][1]*d})}}return N6=function(t,i){t.eachSeriesByType("themeRiver",(function(t){var i=t.getData(),r=t.coordinateSystem,o={},a=r.getRect();o.rect=a;var s=t.get("boundaryGap"),l=r.getAxis();o.boundaryGap=s,"horizontal"===l.orient?(s[0]=e.parsePercent(s[0],a.height),s[1]=e.parsePercent(s[1],a.height),n(i,t,a.height-s[0]-s[1])):(s[0]=e.parsePercent(s[0],a.width),s[1]=e.parsePercent(s[1],a.width),n(i,t,a.width-s[0]-s[1])),i.setLayout("layoutInfo",o)}))}}(),n=function(){if(V6)return z6;V6=1;var t=hW().createHashMap;return z6=function(e){e.eachSeriesByType("themeRiver",(function(e){var n=e.getData(),i=e.getRawData(),r=e.get("color"),o=t();n.each((function(t){o.set(n.getRawIndex(t),t)})),i.each((function(t){var a=i.getName(t),s=r[(e.nameMap.get(a)-1)%r.length];i.setItemVisual(t,"color",s);var l=o.get(t);null!=l&&n.setItemVisual(l,"color",s)}))}))}}(),i=eQ();return t.registerLayout(e),t.registerVisual(n),t.registerProcessor(i("themeRiver")),K4}var X6,j6,q6,K6,$6,J6,Q6={};function t8(){if(j6)return X6;j6=1;var t=hW(),e=kj(),n=J0(),i=mX(),r=b1().wrapTreePathInfo,o=e.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(e,r){var o={name:e.name,children:e.data};a(o);var s=t.map(e.levels||[],(function(t){return new i(t,this,r)}),this),l=n.createTree(o,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=l.getNodeByDataIndex(e),i=s[n.depth];return i&&(t.parentModel=i),t}))}));return l.data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=r(i,this),n},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});function a(e){var n=0;t.each(e.children,(function(e){a(e);var i=e.value;t.isArray(i)&&(i=i[0]),n+=i}));var i=e.value;t.isArray(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=n),i<0&&(i=0),t.isArray(e.value)?e.value[0]=i:e.value=i}return X6=o}function e8(){if(K6)return q6;K6=1;var t=hW(),e=vX(),n="none",i="ancestor",r="self";function o(t,n,i){e.Group.call(this);var r=new e.Sector({z2:2});r.seriesIndex=n.seriesIndex;var o=new e.Text({z2:4,silent:t.getModel("label").get("silent")});function a(){o.ignore=o.hoverIgnore}function s(){o.ignore=o.normalIgnore}this.add(r),this.add(o),this.updateData(!0,t,"normal",n,i),this.on("emphasis",a).on("normal",s).on("mouseover",a).on("mouseout",s)}var a=o.prototype;return a.updateData=function(n,i,r,o,a){this.node=i,i.piece=this,o=o||this._seriesModel,a=a||this._ecModel;var s=this.childAt(0);s.dataIndex=i.dataIndex;var l=i.getModel(),u=i.getLayout(),h=t.extend({},u);h.label=null;var c=function(e,n,i){var r=e.getVisual("color"),o=e.getVisual("visualMeta");o&&0!==o.length||(r=null);var a=e.getModel("itemStyle").get("color");if(a)return a;if(r)return r;if(0===e.depth)return i.option.color[0];var s=i.option.color.length;a=i.option.color[function(e){var n=e;for(;n.depth>1;)n=n.parentNode;var i=e.getAncestors()[0];return t.indexOf(i.children,n)}(e)%s];return a}(i,0,a);!function(t,e,n){var i=e.getData();i.setItemVisual(t.dataIndex,"color",n)}(i,o,c);var d,p=l.getModel("itemStyle").getItemStyle();if("normal"===r)d=p;else{var f=l.getModel(r+".itemStyle").getItemStyle();d=t.merge(f,p)}d=t.defaults({lineJoin:"bevel",fill:d.fill||c},d),n?(s.setShape(h),s.shape.r=u.r0,e.updateProps(s,{shape:{r:u.r}},o,i.dataIndex),s.useStyle(d)):"object"==typeof d.fill&&d.fill.type||"object"==typeof s.style.fill&&s.style.fill.type?(e.updateProps(s,{shape:h},o),s.useStyle(d)):e.updateProps(s,{shape:h,style:d},o),this._updateLabel(o,c,r);var g=l.getShallow("cursor");if(g&&s.attr("cursor",g),n){var v=o.getShallow("highlightPolicy");this._initEvents(s,i,o,v)}this._seriesModel=o||this._seriesModel,this._ecModel=a||this._ecModel,e.setHoverStyle(this)},a.onEmphasis=function(t){var e=this;this.node.hostTree.root.eachNode((function(o){var a,s,l;o.piece&&(e.node===o?o.piece.updateData(!1,o,"emphasis"):(a=o,s=e.node,(l=t)!==n&&(l===r?a===s:l===i?a===s||a.isAncestorOf(s):a===s||a.isDescendantOf(s))?o.piece.childAt(0).trigger("highlight"):t!==n&&o.piece.childAt(0).trigger("downplay")))}))},a.onNormal=function(){this.node.hostTree.root.eachNode((function(t){t.piece&&t.piece.updateData(!1,t,"normal")}))},a.onHighlight=function(){this.updateData(!1,this.node,"highlight")},a.onDownplay=function(){this.updateData(!1,this.node,"downplay")},a._updateLabel=function(n,i,r){var o=this.node.getModel(),a=o.getModel("label"),s="normal"===r||"emphasis"===r?a:o.getModel(r+".label"),l=o.getModel("emphasis.label"),u=s.get("formatter")?r:"normal",h=t.retrieve(n.getFormattedLabel(this.node.dataIndex,u,null,null,"label"),this.node.name);!1===T("show")&&(h="");var c=this.node.getLayout(),d=s.get("minAngle");null==d&&(d=a.get("minAngle")),d=d/180*Math.PI;var p=c.endAngle-c.startAngle;null!=d&&Math.abs(p)<d&&(h="");var f=this.childAt(1);e.setLabelStyle(f.style,f.hoverStyle||{},a,l,{defaultText:s.getShallow("show")?h:null,autoColor:i,useInsideStyle:!0});var g,v=(c.startAngle+c.endAngle)/2,m=Math.cos(v),y=Math.sin(v),x=T("position"),_=T("distance")||0,b=T("align");"outside"===x?(g=c.r+_,b=v>Math.PI/2?"right":"left"):b&&"center"!==b?"left"===b?(g=c.r0+_,v>Math.PI/2&&(b="right")):"right"===b&&(g=c.r-_,v>Math.PI/2&&(b="left")):(g=(c.r+c.r0)/2,b="center"),f.attr("style",{text:h,textAlign:b,textVerticalAlign:T("verticalAlign")||"middle",opacity:T("opacity")});var w=g*m+c.cx,S=g*y+c.cy;f.attr("position",[w,S]);var M=T("rotate"),I=0;function T(t){var e=s.get(t);return null==e?a.get(t):e}"radial"===M?(I=-v)<-Math.PI/2&&(I+=Math.PI):"tangential"===M?(I=Math.PI/2-v)>Math.PI/2?I-=Math.PI:I<-Math.PI/2&&(I+=Math.PI):"number"==typeof M&&(I=M*Math.PI/180),f.attr("rotation",I)},a._initEvents=function(t,e,n,i){t.off("mouseover").off("mouseout").off("emphasis").off("normal");var r=this,o=function(){r.onEmphasis(i)},a=function(){r.onNormal()};n.isAnimationEnabled()&&t.on("mouseover",o).on("mouseout",a).on("emphasis",o).on("normal",a).on("downplay",(function(){r.onDownplay()})).on("highlight",(function(){r.onHighlight()}))},t.inherits(o,e.Group),q6=o}function n8(){if(J6)return $6;J6=1;var t=hW(),e=Rj(),n=e8(),i=gq(),r=EX().windowOpen,o=e.extend({type:"sunburst",init:function(){},render:function(e,r,o,a){var s=this;this.seriesModel=e,this.api=o,this.ecModel=r;var l=e.getData(),u=l.tree.root,h=e.getViewRoot(),c=this.group,d=e.get("renderLabelForZeroData"),p=[];h.eachNode((function(t){p.push(t)}));var f=this._oldChildren||[];if(function(o,a){if(0===o.length&&0===a.length)return;function s(t){return t.getId()}function h(t,i){!function(t,i){d||!t||t.getValue()||(t=null);if(t!==u&&i!==u)if(i&&i.piece)t?(i.piece.updateData(!1,t,"normal",e,r),l.setItemGraphicEl(t.dataIndex,i.piece)):function(t){if(!t)return;t.piece&&(c.remove(t.piece),t.piece=null)}(i);else if(t){var o=new n(t,e,r);c.add(o),l.setItemGraphicEl(t.dataIndex,o)}}(null==t?null:o[t],null==i?null:a[i])}new i(a,o,s,s).add(h).update(h).remove(t.curry(h,null)).execute()}(p,f),function(t,i){if(i.depth>0){s.virtualPiece?s.virtualPiece.updateData(!1,t,"normal",e,r):(s.virtualPiece=new n(t,e,r),c.add(s.virtualPiece)),i.piece._onclickEvent&&i.piece.off("click",i.piece._onclickEvent);var o=function(t){s._rootToNode(i.parentNode)};i.piece._onclickEvent=o,s.virtualPiece.on("click",o)}else s.virtualPiece&&(c.remove(s.virtualPiece),s.virtualPiece=null)}(u,h),a&&a.highlight&&a.highlight.piece){var g=e.getShallow("highlightPolicy");a.highlight.piece.onEmphasis(g)}else if(a&&a.unhighlight){var v=this.virtualPiece;!v&&u.children.length&&(v=u.children[0].piece),v&&v.onNormal()}this._initEvents(),this._oldChildren=p},dispose:function(){},_initEvents:function(){var t=this,e=function(e){var n=!1;t.seriesModel.getViewRoot().eachNode((function(i){if(!n&&i.piece&&i.piece.childAt(0)===e.target){var o=i.getModel().get("nodeClick");if("rootToNode"===o)t._rootToNode(i);else if("link"===o){var a=i.getModel(),s=a.get("link");if(s){var l=a.get("target",!0)||"_blank";r(s,l)}}n=!0}}))};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",e),this.group._onclickEvent=e},_rootToNode:function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:"sunburstRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},containPoint:function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}}});return $6=o}var i8,r8,o8,a8,s8={};function l8(){if(o8)return r8;o8=1;var t=MX().parsePercent,e=hW(),n=Math.PI/180;function i(t,n){var r=t.children||[];t.children=function(t,e){if("function"==typeof e)return t.sort(e);var n="asc"===e;return t.sort((function(t,e){var i=(t.getValue()-e.getValue())*(n?1:-1);return 0===i?(t.dataIndex-e.dataIndex)*(n?-1:1):i}))}(r,n),r.length&&e.each(t.children,(function(t){i(t,n)}))}return r8=function(r,o,a,s){o.eachSeriesByType(r,(function(r){var o=r.get("center"),s=r.get("radius");e.isArray(s)||(s=[0,s]),e.isArray(o)||(o=[o,o]);var l=a.getWidth(),u=a.getHeight(),h=Math.min(l,u),c=t(o[0],l),d=t(o[1],u),p=t(s[0],h/2),f=t(s[1],h/2),g=-r.get("startAngle")*n,v=r.get("minAngle")*n,m=r.getData().tree.root,y=r.getViewRoot(),x=y.depth,_=r.get("sort");null!=_&&i(y,_);var b=0;e.each(y.children,(function(t){!isNaN(t.getValue())&&b++}));var w=y.getValue(),S=Math.PI/(w||b)*2,M=y.depth>0,I=y.height-(M?-1:1),T=(f-p)/(I||1),C=r.get("clockwise"),A=r.get("stillShowZeroSum"),D=C?1:-1,L=function(n,i){if(n){var r=i;if(n!==m){var o=n.getValue(),a=0===w&&A?S:o*S;a<v&&(a=v),r=i+D*a;var s=n.depth-x-(M?-1:1),l=p+T*s,u=p+T*(s+1),f=n.getModel();null!=f.get("r0")&&(l=t(f.get("r0"),h/2)),null!=f.get("r")&&(u=t(f.get("r"),h/2)),n.setLayout({angle:a,startAngle:i,endAngle:r,clockwise:C,cx:c,cy:d,r0:l,r:u})}if(n.children&&n.children.length){var g=0;e.each(n.children,(function(t){g+=L(t,i+g)}))}return r-i}};if(M){var k=p,P=p+T,O=2*Math.PI;m.setLayout({angle:O,startAngle:g,endAngle:g+O,clockwise:C,cx:c,cy:d,r0:k,r:P})}L(y,g)}))}}function u8(){if(a8)return Q6;a8=1;var t=NK(),e=hW();t8(),n8(),function(){if(i8)return s8;i8=1;var t=NK(),e=b1(),n="sunburstRootToNode";t.registerAction({type:n,update:"updateView"},(function(t,i){i.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(i,r){var o=e.retrieveTargetInfo(t,[n],i);if(o){var a=i.getViewRoot();a&&(t.direction=e.aboveViewRoot(a,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}))}));var i="sunburstHighlight";t.registerAction({type:i,update:"updateView"},(function(t,n){n.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(n,r){var o=e.retrieveTargetInfo(t,[i],n);o&&(t.highlight=o.node)}))})),t.registerAction({type:"sunburstUnhighlight",update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e,n){t.unhighlight=!0}))}))}();var n=JJ(),i=l8(),r=eQ();return t.registerVisual(e.curry(n,"sunburst")),t.registerLayout(e.curry(i,"sunburst")),t.registerProcessor(e.curry(r,"sunburst")),Q6}var h8,c8,d8,p8,f8,g8,v8,m8,y8,x8,_8,b8={};function w8(){if(_8)return b8;_8=1,tW().__DEV__;var t=hW(),e=vX(),n=YK().getDefaultLabel,i=Vq(),r=uK().getLayoutOnAxis,o=gq(),a=kj(),s=mX(),l=Rj(),u=d$().createClipPath,h=function(){if(c8)return h8;c8=1;var t=hW();function e(e,n){return n=n||[0,0],t.map(["x","y"],(function(t,i){var r=this.getAxis(t),o=n[i],a=e[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))}),this)}return h8=function(n){var i=n.grid.getRect();return{coordSys:{type:"cartesian2d",x:i.x,y:i.y,width:i.width,height:i.height},api:{coord:function(t){return n.dataToPoint(t)},size:t.bind(e,n)}}}}(),c=function(){if(p8)return d8;p8=1;var t=hW();function e(e,n){return n=n||[0,0],t.map([0,1],(function(t){var i=n[t],r=e[t]/2,o=[],a=[];return o[t]=i-r,a[t]=i+r,o[1-t]=a[1-t]=n[1-t],Math.abs(this.dataToPoint(o)[t]-this.dataToPoint(a)[t])}),this)}return d8=function(n){var i=n.getBoundingRect();return{coordSys:{type:"geo",x:i.x,y:i.y,width:i.width,height:i.height,zoom:n.getZoom()},api:{coord:function(t){return n.dataToPoint(t)},size:t.bind(e,n)}}}}(),d=function(){if(g8)return f8;g8=1;var t=hW();function e(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}return f8=function(n){var i=n.getRect();return{coordSys:{type:"singleAxis",x:i.x,y:i.y,width:i.width,height:i.height},api:{coord:function(t){return n.dataToPoint(t)},size:t.bind(e,n)}}}}(),p=function(){if(m8)return v8;m8=1;var t=hW();function e(e,n){return t.map(["Radius","Angle"],(function(t,i){var r=this["get"+t+"Axis"](),o=n[i],a=e[i]/2,s="dataTo"+t,l="category"===r.type?r.getBandWidth():Math.abs(r[s](o-a)-r[s](o+a));return"Angle"===t&&(l=l*Math.PI/180),l}),this)}return v8=function(n){var i=n.getRadiusAxis(),r=n.getAngleAxis(),o=i.getExtent();return o[0]>o[1]&&o.reverse(),{coordSys:{type:"polar",cx:n.cx,cy:n.cy,r:o[1],r0:o[0]},api:{coord:t.bind((function(t){var e=i.dataToRadius(t[0]),o=r.dataToAngle(t[1]),a=n.coordToPoint([e,o]);return a.push(e,o*Math.PI/180),a})),size:t.bind(e,n)}}}}(),f=x8?y8:(x8=1,y8=function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}),g=e.CACHED_LABEL_STYLE_PROPERTIES,v=["itemStyle"],m=["emphasis","itemStyle"],y=["label"],x=["emphasis","label"],_={cartesian2d:h,geo:c,singleAxis:d,polar:p,calendar:f};function b(t,e,n,i,r){null==n[t]||r||(e[t]=n[t],n[t]=i[t])}function w(i,o,a,s){var l=i.get("renderItem"),u=i.coordinateSystem,h={};u&&(h=u.prepareCustoms?u.prepareCustoms():_[u.type](u));var c,d,p,f,g,b=t.defaults({getWidth:s.getWidth,getHeight:s.getHeight,getZr:s.getZr,getDevicePixelRatio:s.getDevicePixelRatio,value:function(t,e){return null==e&&(e=c),o.get(o.getDimension(t||0),e)},style:function(r,a){null==a&&(a=c),I(a);var s=d.getModel(v).getItemStyle();null!=g&&(s.fill=g);var l=o.getItemVisual(a,"opacity");null!=l&&(s.opacity=l);var u=r?A(r,p):p;return e.setTextStyle(s,u,null,{autoColor:g,isRectText:!0}),s.text=u.getShallow("show")?t.retrieve2(i.getFormattedLabel(a,"normal"),n(o,a)):null,r&&D(s,r),s},styleEmphasis:function(r,a){null==a&&(a=c),I(a);var s=d.getModel(m).getItemStyle(),l=r?A(r,f):f;return e.setTextStyle(s,l,null,{isRectText:!0},!0),s.text=l.getShallow("show")?t.retrieve3(i.getFormattedLabel(a,"emphasis"),i.getFormattedLabel(a,"normal"),n(o,a)):null,r&&D(s,r),s},visual:function(t,e){return null==e&&(e=c),o.getItemVisual(e,t)},barLayout:function(e){if(u.getBaseAxis){var n=u.getBaseAxis();return r(t.defaults({axis:n},e),s)}},currentSeriesIndices:function(){return a.getCurrentSeriesIndices()},font:function(t){return e.getFont(t,a)}},h.api||{}),w={context:{},seriesId:i.id,seriesName:i.name,seriesIndex:i.seriesIndex,coordSys:h.coordSys,dataInsideLength:o.count(),encode:S(i.getData())},M=!0;return function(e,n){return c=e,M=!0,l&&l(t.defaults({dataIndexInside:e,dataIndex:o.getRawIndex(e),actionType:n?n.type:null},w),b)};function I(t){null==t&&(t=c),M&&(d=o.getItemModel(t),p=d.getModel(y),f=d.getModel(x),g=o.getItemVisual(t,"color"),M=!1)}}function S(e){var n={};return t.each(e.dimensions,(function(t,i){var r=e.getDimensionInfo(t);if(!r.isExtraCoord){var o=r.coordDim;(n[o]=n[o]||[])[r.coordDimIndex]=i}})),n}function M(t,e,n,i,r,o){return(t=I(t,e,n,i,r,o,!0))&&o.setItemGraphicEl(e,t),t}function I(n,i,r,a,s,l,u){var h,c=!r,d=(r=r||{}).type,p=r.shape,f=r.style;if(n&&(c||null!=d&&d!==n.__customGraphicType||"path"===d&&((h=p)&&(h.hasOwnProperty("pathData")||h.hasOwnProperty("d")))&&k(p)!==n.__customPathData||"image"===d&&P(f,"image")&&f.image!==n.__customImagePath||"text"===d&&P(p,"text")&&f.text!==n.__customText)&&(s.remove(n),n=null),!c){var g=!n;return!n&&(n=function(t){var n,i=t.type;if("path"===i){var r=t.shape,o=null!=r.width&&null!=r.height?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,a=k(r);(n=e.makePath(a,null,o,r.layout||"center")).__customPathData=a}else if("image"===i)(n=new e.Image({})).__customImagePath=t.style.image;else if("text"===i)(n=new e.Text({})).__customText=t.style.text;else if("group"===i)n=new e.Group;else{if("compoundPath"===i)throw new Error('"compoundPath" is not supported yet.');n=new(e.getShapeClass(i))}return n.__customGraphicType=i,n.name=t.name,n}(r)),function(n,i,r,o,a,s,l){var u={},h=r.style||{};if(r.shape&&(u.shape=t.clone(r.shape)),r.position&&(u.position=r.position.slice()),r.scale&&(u.scale=r.scale.slice()),r.origin&&(u.origin=r.origin.slice()),r.rotation&&(u.rotation=r.rotation),"image"===n.type&&r.style){var c=u.style={};t.each(["x","y","width","height"],(function(t){b(t,c,h,n.style,s)}))}"text"===n.type&&r.style&&(c=u.style={},t.each(["x","y"],(function(t){b(t,c,h,n.style,s)})),!h.hasOwnProperty("textFill")&&h.fill&&(h.textFill=h.fill),!h.hasOwnProperty("textStroke")&&h.stroke&&(h.textStroke=h.stroke));if("group"!==n.type&&(n.useStyle(h),s)){n.style.opacity=0;var d=h.opacity;null==d&&(d=1),e.initProps(n,{style:{opacity:d}},o,i)}s?n.attr(u):e.updateProps(n,u,o,i),r.hasOwnProperty("z2")&&n.attr("z2",r.z2||0),r.hasOwnProperty("silent")&&n.attr("silent",r.silent),r.hasOwnProperty("invisible")&&n.attr("invisible",r.invisible),r.hasOwnProperty("ignore")&&n.attr("ignore",r.ignore),r.hasOwnProperty("info")&&n.attr("info",r.info);var p=r.styleEmphasis;e.setElementHoverStyle(n,p),l&&e.setAsHighDownDispatcher(n,!1!==p)}(n,i,r,a,0,g,u),"group"===d&&function(t,e,n,i,r){var a=n.children,s=a?a.length:0,l=n.$mergeChildren,u="byName"===l||n.diffChildrenByName,h=!1===l;if(!s&&!u&&!h)return;if(u)return c={oldChildren:t.children()||[],newChildren:a||[],dataIndex:e,animatableModel:i,group:t,data:r},void new o(c.oldChildren,c.newChildren,T,T,c).add(C).update(C).remove(L).execute();var c;h&&t.removeAll();for(var d=0;d<s;d++)a[d]&&I(t.childAt(d),e,a[d],i,t,r)}(n,i,r,a,l),s.add(n),n}}function T(t,e){var n=t&&t.name;return null!=n?n:"e\0\0"+e}function C(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null;I(null!=e?n.oldChildren[e]:null,n.dataIndex,i,n.animatableModel,n.group,n.data)}function A(e,n){var i=new s({},n);return t.each(g,(function(t,n){e.hasOwnProperty(t)&&(i.option[n]=e[t])})),i}function D(t,e){for(var n in e)!e.hasOwnProperty(n)&&g.hasOwnProperty(n)||(t[n]=e[n])}function L(t){var e=this.context,n=e.oldChildren[t];n&&e.group.remove(n)}function k(t){return t&&(t.pathData||t.d)}function P(t,e){return t&&t.hasOwnProperty(e)}return a.extend({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,useTransform:!0,clip:!1},getInitialData:function(t,e){return i(this.getSource(),this)},getDataParams:function(t,e,n){var i=a.prototype.getDataParams.apply(this,arguments);return n&&(i.info=n.info),i}}),l.extend({type:"custom",_data:null,render:function(t,e,n,i){var r=this._data,o=t.getData(),a=this.group,s=w(t,o,e,n);o.diff(r).add((function(e){M(null,e,s(e,i),t,a,o)})).update((function(e,n){M(r.getItemGraphicEl(n),e,s(e,i),t,a,o)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&a.remove(e)})).execute();var l=t.get("clip",!0)?u(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},incrementalPrepareRender:function(t,e,n){this.group.removeAll(),this._data=null},incrementalRender:function(t,e,n,i,r){var o=e.getData(),a=w(e,o,n,i);function s(t){t.isGroup||(t.incremental=!0,t.useHoverLayer=!0)}for(var l=t.start;l<t.end;l++){M(null,l,a(l,r),e,this.group,o).traverse(s)}},dispose:t.noop,filterForExposedEvent:function(t,e,n,i){var r=e.element;if(null==r||n.name===r)return!0;for(;(n=n.parent)&&n!==this.group;)if(n.name===r)return!0;return!1}}),b8}var S8;var M8,I8,T8={};function C8(){if(I8)return M8;I8=1;var t=hW(),e=MX().parsePercent,n=zq().isDimensionStacked;function i(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function r(t,e){return e.dim+t.model.componentIndex}return M8=function(o,a,s){var l={},u=function(n){var o={};t.each(n,(function(t,n){var a=t.getData(),s=t.coordinateSystem,l=s.getBaseAxis(),u=r(s,l),h=l.getExtent(),c="category"===l.type?l.getBandWidth():Math.abs(h[1]-h[0])/a.count(),d=o[u]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},p=d.stacks;o[u]=d;var f=i(t);p[f]||d.autoWidthCount++,p[f]=p[f]||{width:0,maxWidth:0};var g=e(t.get("barWidth"),c),v=e(t.get("barMaxWidth"),c),m=t.get("barGap"),y=t.get("barCategoryGap");g&&!p[f].width&&(g=Math.min(d.remainedWidth,g),p[f].width=g,d.remainedWidth-=g),v&&(p[f].maxWidth=v),null!=m&&(d.gap=m),null!=y&&(d.categoryGap=y)}));var a={};return t.each(o,(function(n,i){a[i]={};var r=n.stacks,o=n.bandWidth,s=e(n.categoryGap,o),l=e(n.gap,1),u=n.remainedWidth,h=n.autoWidthCount,c=(u-s)/(h+(h-1)*l);c=Math.max(c,0),t.each(r,(function(t,e){var n=t.maxWidth;n&&n<c&&(n=Math.min(n,u),t.width&&(n=Math.min(n,t.width)),u-=n,t.width=n,h--)})),c=(u-s)/(h+(h-1)*l),c=Math.max(c,0);var d,p=0;t.each(r,(function(t,e){t.width||(t.width=c),d=t,p+=t.width*(1+l)})),d&&(p-=d.width*l);var f=-p/2;t.each(r,(function(t,e){a[i][e]=a[i][e]||{offset:f,width:t.width},f+=t.width*(1+l)}))})),a}(t.filter(a.getSeriesByType(o),(function(t){return!a.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type})));a.eachSeriesByType(o,(function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),o=t.coordinateSystem,a=o.getBaseAxis(),s=r(o,a),h=i(t),c=u[s][h],d=c.offset,p=c.width,f=o.getOtherAxis(a),g=t.coordinateSystem.cx,v=t.coordinateSystem.cy,m=t.get("barMinHeight")||0,y=t.get("barMinAngle")||0;l[h]=l[h]||[];for(var x=e.mapDimension(f.dim),_=e.mapDimension(a.dim),b=n(e,x),w="radius"!==a.dim||!t.get("roundCap",!0),S="radius"===f.dim?f.dataToRadius(0):f.dataToAngle(0),M=0,I=e.count();M<I;M++){var T,C,A,D,L=e.get(x,M),k=e.get(_,M),P=L>=0?"p":"n",O=S;if(b&&(l[h][k]||(l[h][k]={p:S,n:S}),O=l[h][k][P]),"radius"===f.dim){var R=f.dataToRadius(L)-S,N=a.dataToAngle(k);Math.abs(R)<m&&(R=(R<0?-1:1)*m),T=O,C=O+R,D=(A=N-d)-p,b&&(l[h][k][P]=C)}else{var E=f.dataToAngle(L,w)-S,z=a.dataToRadius(k);Math.abs(E)<y&&(E=(E<0?-1:1)*y),C=(T=z+d)+p,A=O,D=O+E,b&&(l[h][k][P]=D)}e.setItemLayout(M,{cx:g,cy:v,r0:T,r:C,startAngle:-A*Math.PI/180,endAngle:-D*Math.PI/180})}}}),this)}}var A8,D8,L8,k8,P8,O8,R8={};function N8(){if(O8)return P8;O8=1;var t=function(){if(D8)return A8;D8=1;var t=hW(),e=OK();function n(t,n){e.call(this,"radius",t,n),this.type="category"}return n.prototype={constructor:n,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToRadius:e.prototype.dataToCoord,radiusToData:e.prototype.coordToData},t.inherits(n,e),A8=n}(),e=function(){if(k8)return L8;k8=1;var t=hW(),e=UU(),n=OK(),i=(0,mY().makeInner)();function r(t,e){e=e||[0,360],n.call(this,"angle",t,e),this.type="category"}return r.prototype={constructor:r,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToAngle:n.prototype.dataToCoord,angleToData:n.prototype.coordToData,calculateCategoryInterval:function(){var t=this,n=t.getLabelModel(),r=t.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=o[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),h=e.getBoundingRect(s,n.getFont(),"center","top"),c=Math.max(h.height,7)/u;isNaN(c)&&(c=1/0);var d=Math.max(0,Math.floor(c)),p=i(t.model),f=p.lastAutoInterval,g=p.lastTickCount;return null!=f&&null!=g&&Math.abs(f-d)<=1&&Math.abs(g-a)<=1&&f>d?d=f:(p.lastTickCount=a,p.lastAutoInterval=d),d}},t.inherits(r,n),L8=r}(),n=function(n){this.name=n||"",this.cx=0,this.cy=0,this._radiusAxis=new t,this._angleAxis=new e,this._radiusAxis.polar=this._angleAxis.polar=this};return n.prototype={type:"polar",axisPointerEnabled:!0,constructor:n,dimensions:["radius","angle"],model:null,containPoint:function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},containData:function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},getAxis:function(t){return this["_"+t+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},dataToPoint:function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},pointToData:function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},pointToCoord:function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=l<o?1:-1;l<o||l>a;)l+=360*u;return[s,l]},coordToPoint:function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]},getArea:function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var n=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,r=n*n+i*i,o=this.r,a=this.r0;return r<=o*o&&r>=a*a}}}},P8=n}var E8,z8,V8,B8,G8={};function F8(){if(V8)return z8;V8=1;var t=NK();!function(){if(E8)return G8;E8=1;var t=hW(),e=VX(),n=N$(),i=dK(),r=e.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});t.merge(r.prototype,i);var o={splitNumber:5};function a(t,e){return e.type||(e.data?"category":"value")}n("angle",r,a,{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}}),n("radius",r,a,o)}();var e=t.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(t){var e;return this.ecModel.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});return z8=e}function H8(){if(B8)return R8;B8=1,tW().__DEV__;var t=hW(),e=N8(),n=MX().parsePercent,i=cK(),r=i.createScaleByModel,o=i.niceScaleExtent,a=cj(),s=zq().getStackedDimension;function l(e,n){var i=this,r=i.getAngleAxis(),a=i.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===i){var n=e.getData();t.each(n.mapDimension("radius",!0),(function(t){a.scale.unionExtentFromData(n,s(n,t))})),t.each(n.mapDimension("angle",!0),(function(t){r.scale.unionExtentFromData(n,s(n,t))}))}})),o(r.scale,r.model),o(a.scale,a.model),"category"===r.type&&!r.onBand){var l=r.getExtent(),u=360/r.scale.count();r.inverse?l[1]+=u:l[1]-=u,r.setExtent(l[0],l[1])}}function u(t,e){if(t.type=e.get("type"),t.scale=r(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType){t.inverse^=e.get("clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}F8();var h={dimensions:e.prototype.dimensions,create:function(i,r){var o=[];return i.eachComponent("polar",(function(i,a){var s=new e(a);s.update=l;var h=s.getRadiusAxis(),c=s.getAngleAxis(),d=i.findAxisModel("radiusAxis"),p=i.findAxisModel("angleAxis");u(h,d),u(c,p),function(e,i,r){var o=i.get("center"),a=r.getWidth(),s=r.getHeight();e.cx=n(o[0],a),e.cy=n(o[1],s);var l=e.getRadiusAxis(),u=Math.min(a,s)/2,h=i.get("radius");null==h?h=[0,"100%"]:t.isArray(h)||(h=[0,h]),h=[n(h[0],u),n(h[1],u)],l.inverse?l.setExtent(h[1],h[0]):l.setExtent(h[0],h[1])}(s,i,r),o.push(s),i.coordinateSystem=s,s.model=i})),i.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var e=i.queryComponents({mainType:"polar",index:t.get("polarIndex"),id:t.get("polarId")})[0];t.coordinateSystem=e.coordinateSystem}})),o}};return a.register("polar",h),R8}var W8,U8,Y8,Z8={};function X8(){return Y8||(Y8=1,H8(),function(){if(U8)return W8;U8=1;var t=hW(),e=vX(),n=mX(),i=j$(),r=H$(),o=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function a(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function s(t){return t.getRadiusAxis().inverse?0:1}function l(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var u=i.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(e,n){if(this.group.removeAll(),e.get("show")){var i=e.axis,r=i.polar,a=r.getRadiusAxis().getExtent(),s=i.getTicksCoords(),u=i.getMinorTicksCoords(),h=t.map(i.getViewLabels(),(function(e){return(e=t.clone(e)).coord=i.dataToCoord(e.tickValue),e}));l(h),l(s),t.each(o,(function(t){!e.get(t+".show")||i.scale.isBlank()&&"axisLine"!==t||this["_"+t](e,r,s,u,a,h)}),this)}},_axisLine:function(t,n,i,r,o){var a,l=t.getModel("axisLine.lineStyle"),u=s(n),h=u?0:1;(a=0===o[h]?new e.Circle({shape:{cx:n.cx,cy:n.cy,r:o[u]},style:l.getLineStyle(),z2:1,silent:!0}):new e.Ring({shape:{cx:n.cx,cy:n.cy,r:o[u],r0:o[h]},style:l.getLineStyle(),z2:1,silent:!0})).style.fill=null,this.group.add(a)},_axisTick:function(n,i,r,o,l){var u=n.getModel("axisTick"),h=(u.get("inside")?-1:1)*u.get("length"),c=l[s(i)],d=t.map(r,(function(t){return new e.Line({shape:a(i,[c,c+h],t.coord)})}));this.group.add(e.mergePath(d,{style:t.defaults(u.getModel("lineStyle").getLineStyle(),{stroke:n.get("axisLine.lineStyle.color")})}))},_minorTick:function(n,i,r,o,l){if(o.length){for(var u=n.getModel("axisTick"),h=n.getModel("minorTick"),c=(u.get("inside")?-1:1)*h.get("length"),d=l[s(i)],p=[],f=0;f<o.length;f++)for(var g=0;g<o[f].length;g++)p.push(new e.Line({shape:a(i,[d,d+c],o[f][g].coord)}));this.group.add(e.mergePath(p,{style:t.defaults(h.getModel("lineStyle").getLineStyle(),t.defaults(u.getLineStyle(),{stroke:n.get("axisLine.lineStyle.color")}))}))}},_axisLabel:function(i,o,a,l,u,h){var c=i.getCategories(!0),d=i.getModel("axisLabel"),p=d.get("margin"),f=i.get("triggerEvent");t.each(h,(function(t,a){var l=d,h=t.tickValue,g=u[s(o)],v=o.coordToPoint([g+p,t.coord]),m=o.cx,y=o.cy,x=Math.abs(v[0]-m)/g<.3?"center":v[0]>m?"left":"right",_=Math.abs(v[1]-y)/g<.3?"middle":v[1]>y?"top":"bottom";c&&c[h]&&c[h].textStyle&&(l=new n(c[h].textStyle,d,d.ecModel));var b=new e.Text({silent:r.isLabelSilent(i)});this.group.add(b),e.setTextStyle(b.style,l,{x:v[0],y:v[1],textFill:l.getTextColor()||i.get("axisLine.lineStyle.color"),text:t.formattedLabel,textAlign:x,textVerticalAlign:_}),f&&(b.eventData=r.makeAxisEventDataBase(i),b.eventData.targetType="axisLabel",b.eventData.value=t.rawLabel)}),this)},_splitLine:function(n,i,r,o,s){var l=n.getModel("splitLine").getModel("lineStyle"),u=l.get("color"),h=0;u=u instanceof Array?u:[u];for(var c=[],d=0;d<r.length;d++){var p=h++%u.length;c[p]=c[p]||[],c[p].push(new e.Line({shape:a(i,s,r[d].coord)}))}for(d=0;d<c.length;d++)this.group.add(e.mergePath(c[d],{style:t.defaults({stroke:u[d%u.length]},l.getLineStyle()),silent:!0,z:n.get("z")}))},_minorSplitLine:function(t,n,i,r,o){if(r.length){for(var s=t.getModel("minorSplitLine").getModel("lineStyle"),l=[],u=0;u<r.length;u++)for(var h=0;h<r[u].length;h++)l.push(new e.Line({shape:a(n,o,r[u][h].coord)}));this.group.add(e.mergePath(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},_splitArea:function(n,i,r,o,a){if(r.length){var s=n.getModel("splitArea").getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var h=[],c=Math.PI/180,d=-r[0].coord*c,p=Math.min(a[0],a[1]),f=Math.max(a[0],a[1]),g=n.get("clockwise"),v=1;v<r.length;v++){var m=u++%l.length;h[m]=h[m]||[],h[m].push(new e.Sector({shape:{cx:i.cx,cy:i.cy,r0:p,r:f,startAngle:d,endAngle:-r[v].coord*c,clockwise:g},silent:!0})),d=-r[v].coord*c}for(v=0;v<h.length;v++)this.group.add(e.mergePath(h[v],{style:t.defaults({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}});W8=u}()),Z8}var j8,q8,K8,$8,J8,Q8;function t7(){if(q8)return j8;q8=1;var t=hW(),e=vX(),n=H$(),i=j$(),r=["axisLine","axisTickLabel","axisName"],o=["splitLine","splitArea","minorSplitLine"],a=i.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(e,i){if(this.group.removeAll(),e.get("show")){var a=e.axis,s=a.polar,l=s.getAngleAxis(),u=a.getTicksCoords(),h=a.getMinorTicksCoords(),c=l.getExtent()[0],d=a.getExtent(),p=function(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}(s,e,c),f=new n(e,p);t.each(r,f.add,f),this.group.add(f.getGroup()),t.each(o,(function(t){e.get(t+".show")&&!a.scale.isBlank()&&this["_"+t](e,s,c,d,u,h)}),this)}},_splitLine:function(n,i,r,o,a){var s=n.getModel("splitLine").getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var h=[],c=0;c<a.length;c++){var d=u++%l.length;h[d]=h[d]||[],h[d].push(new e.Circle({shape:{cx:i.cx,cy:i.cy,r:a[c].coord}}))}for(c=0;c<h.length;c++)this.group.add(e.mergePath(h[c],{style:t.defaults({stroke:l[c%l.length],fill:null},s.getLineStyle()),silent:!0}))},_minorSplitLine:function(n,i,r,o,a,s){if(s.length){for(var l=n.getModel("minorSplitLine").getModel("lineStyle"),u=[],h=0;h<s.length;h++)for(var c=0;c<s[h].length;c++)u.push(new e.Circle({shape:{cx:i.cx,cy:i.cy,r:s[h][c].coord}}));this.group.add(e.mergePath(u,{style:t.defaults({fill:null},l.getLineStyle()),silent:!0}))}},_splitArea:function(n,i,r,o,a){if(a.length){var s=n.getModel("splitArea").getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var h=[],c=a[0].coord,d=1;d<a.length;d++){var p=u++%l.length;h[p]=h[p]||[],h[p].push(new e.Sector({shape:{cx:i.cx,cy:i.cy,r0:c,r:a[d].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),c=a[d].coord}for(d=0;d<h.length;d++)this.group.add(e.mergePath(h[d],{style:t.defaults({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}});return j8=a}function e7(){if(J8)return $8;J8=1;var t=EX(),e=S6(),n=vX(),i=F6(),r=GW(),o=H$(),a=j$(),s=e.extend({makeElOption:function(e,a,s,u,h){var c=s.axis;"angle"===c.dim&&(this.animationThreshold=Math.PI/18);var d,p=c.polar,f=p.getOtherAxis(c).getExtent();d=c["dataTo"+t.capitalFirst(c.dim)](a);var g=u.get("type");if(g&&"none"!==g){var v=i.buildElStyle(u),m=l[g](c,p,d,f,v);m.style=v,e.graphicKey=m.type,e.pointer=m}var y=function(t,e,i,a,s){var l=e.axis,u=l.dataToCoord(t),h=a.getAngleAxis().getExtent()[0];h=h/180*Math.PI;var c,d,p,f=a.getRadiusAxis().getExtent();if("radius"===l.dim){var g=r.create();r.rotate(g,g,h),r.translate(g,g,[a.cx,a.cy]),c=n.applyTransform([u,-s],g);var v=e.getModel("axisLabel").get("rotate")||0,m=o.innerTextLayout(h,v*Math.PI/180,-1);d=m.textAlign,p=m.textVerticalAlign}else{var y=f[1];c=a.coordToPoint([y+s,u]);var x=a.cx,_=a.cy;d=Math.abs(c[0]-x)/y<.3?"center":c[0]>x?"left":"right",p=Math.abs(c[1]-_)/y<.3?"middle":c[1]>_?"top":"bottom"}return{position:c,align:d,verticalAlign:p}}(a,s,0,p,u.get("label.margin"));i.buildLabelElOption(e,s,u,h,y)}});var l={line:function(t,e,n,r,o){return"angle"===t.dim?{type:"Line",shape:i.makeLineShape(e.coordToPoint([r[0],n]),e.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,r,o){var a=Math.max(1,t.getBandWidth()),s=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:i.makeSectorShape(e.cx,e.cy,r[0],r[1],(-n-a/2)*s,(a/2-n)*s)}:{type:"Sector",shape:i.makeSectorShape(e.cx,e.cy,n-a/2,n+a/2,0,2*Math.PI)}}};return a.registerAxisPointerClass("PolarAxisPointer",s),$8=s}function n7(){if(Q8)return T8;Q8=1;var t=NK(),e=hW(),n=C8();return H8(),X8(),K8||(K8=1,H8(),t7()),W6(),e7(),t.registerLayout(e.curry(n,"bar")),t.extendComponentView({type:"polar"}),T8}var i7,r7,o7,a7,s7,l7={};function u7(){if(s7)return l7;s7=1;var t=NK(),e=hW();function n(n,i){i.update="updateView",t.registerAction(i,(function(t,i){var r={};return i.eachComponent({mainType:"geo",query:t},(function(i){i[n](t.name);var o=i.coordinateSystem;e.each(o.regions,(function(t){r[t.name]=i.isSelected(t.name)||!1}))})),{selected:r,name:t.name}}))}return function(){if(r7)return i7;r7=1;var t=hW(),e=mY(),n=VX(),i=mX(),r=qJ(),o=F0(),a=n.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(t){n.prototype.init.apply(this,arguments),e.defaultEmphasis(t,"label",["show"])},optionUpdated:function(){var e=this.option,n=this;e.regions=o.getFilledRegions(e.regions,e.map,e.nameMap),this._optionModelMap=t.reduce(e.regions||[],(function(t,e){return e.name&&t.set(e.name,new i(e,n)),t}),t.createHashMap()),this.updateSelectedMap(e.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(t){return this._optionModelMap.get(t)||new i(null,this,this.ecModel)},getFormattedLabel:function(t,e){e=e||"normal";var n=this.getRegionModel(t).get(("normal"===e?"":e+".")+"label.formatter"),i={name:t};return"function"==typeof n?(i.status=e,n(i)):"string"==typeof n?n.replace("{a}",null!=t?t:""):void 0},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t}});t.mixin(a,r),i7=a}(),F0(),function(){if(a7)return o7;a7=1;var t=y0(),e=NK().extendComponentView({type:"geo",init:function(e,n){var i=new t(n,!0);this._mapDraw=i,this.group.add(i.group)},render:function(t,e,n,i){if(!i||"geoToggleSelect"!==i.type||i.from!==this.uid){var r=this._mapDraw;t.get("show")?r.draw(t,e,n,this,i):this._mapDraw.group.removeAll(),this.group.silent=t.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});o7=e}(),B0(),n("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),n("select",{type:"geoSelect",event:"geoselected"}),n("unSelect",{type:"geoUnSelect",event:"geounselected"}),l7}var h7,c7,d7,p7,f7,g7,v7,m7={};function y7(){return v7||(v7=1,function(){if(c7)return h7;c7=1;var t=hW(),e=zX(),n=MX(),i=cj(),r=864e5;function o(t,e,n){this._model=t}function a(t,e,n,i){var r=n.calendarModel,o=n.seriesModel,a=r?r.coordinateSystem:o?o.coordinateSystem:null;return a===this?a[t](i):null}o.prototype={constructor:o,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(t){var e=(t=n.parseDate(t)).getFullYear(),i=t.getMonth()+1;i=i<10?"0"+i:i;var r=t.getDate();r=r<10?"0"+r:r;var o=t.getDay();return{y:e,m:i,d:r,day:o=Math.abs((o+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+i+"-"+r,date:t}},getNextNDay:function(t,e){return 0===(e=e||0)||(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},update:function(n,i){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var r=this._rangeInfo.weeks||1,o=["width","height"],a=this._model.get("cellSize").slice(),s=this._model.getBoxLayoutParams(),l="horizontal"===this._orient?[r,7]:[7,r];t.each([0,1],(function(t){c(a,t)&&(s[o[t]]=a[t]*l[t])}));var u={width:i.getWidth(),height:i.getHeight()},h=this._rect=e.getLayoutRect(s,u);function c(t,e){return null!=t[e]&&"auto"!==t[e]}t.each([0,1],(function(t){c(a,t)||(a[t]=h[o[t]]/l[t])})),this._sw=a[0],this._sh=a[1]},dataToPoint:function(e,n){t.isArray(e)&&(e=e[0]),null==n&&(n=!0);var i=this.getDateInfo(e),o=this._rangeInfo,a=i.formatedDate;if(n&&!(i.time>=o.start.time&&i.time<o.end.time+r))return[NaN,NaN];var s=i.day,l=this._getRangeInfo([o.start.time,a]).nthWeek;return"vertical"===this._orient?[this._rect.x+s*this._sw+this._sw/2,this._rect.y+l*this._sh+this._sh/2]:[this._rect.x+l*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]},pointToData:function(t){var e=this.pointToDate(t);return e&&e.time},dataToRect:function(t,e){var n=this.dataToPoint(t,e);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},pointToDate:function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,e-1,i):this._getDateByWeeksAndDay(e,n-1,i)},convertToPixel:t.curry(a,"dataToPoint"),convertFromPixel:t.curry(a,"pointToData"),_initRangeOption:function(){var e=this._model.get("range"),n=e;if(t.isArray(n)&&1===n.length&&(n=n[0]),/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),r=i.date;r.setMonth(r.getMonth()+1);var o=this.getNextNDay(r,-1);e=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n]);var a=this._getRangeInfo(e);return a.start.time>a.end.time&&e.reverse(),e},_getRangeInfo:function(t){var e;(t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])])[0].time>t[1].time&&(e=!0,t.reverse());var n=Math.floor(t[1].time/r)-Math.floor(t[0].time/r)+1,i=new Date(t[0].time),o=i.getDate(),a=t[1].date.getDate();i.setDate(o+n-1);var s=i.getDate();if(s!==a)for(var l=i.getTime()-t[1].time>0?1:-1;(s=i.getDate())!==a&&(i.getTime()-t[1].time)*l>0;)n-=l,i.setDate(s-l);var u=Math.floor((n+t[0].day+6)/7),h=e?1-u:u-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:u,nthWeek:h,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&e<i.fweek||t===i.weeks&&e>i.lweek)return!1;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(i.start.d+r),this.getDateInfo(o)}},o.dimensions=o.prototype.dimensions,o.getDimensionsInfo=o.prototype.getDimensionsInfo,o.create=function(t,e){var n=[];return t.eachComponent("calendar",(function(t){var e=new o(t);n.push(e),t.coordinateSystem=e})),t.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])})),n},i.register("calendar",o),h7=o}(),function(){if(p7)return d7;p7=1;var t=hW(),e=VX(),n=zX(),i=n.getLayoutParams,r=n.sizeCalculable,o=n.mergeLayoutParam,a=e.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(t,e,n,r){var o=i(t);a.superApply(this,"init",arguments),s(t,o)},mergeOption:function(t,e){a.superApply(this,"mergeOption",arguments),s(this.option,t)}});function s(e,n){var i=e.cellSize;t.isArray(i)?1===i.length&&(i[1]=i[0]):i=e.cellSize=[i,i];var a=t.map([0,1],(function(t){return r(n,t)&&(i[t]="auto"),null!=i[t]&&"auto"!==i[t]}));o(e,n,{type:"box",ignoreSize:a})}d7=a}(),function(){if(g7)return f7;g7=1;var t=NK(),e=hW(),n=vX(),i=EX(),r=MX(),o={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},a={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},s=t.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,a,i),this._renderWeekText(t,o,a,i)},_renderDayRect:function(t,e,i){for(var r=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),a=r.getCellWidth(),s=r.getCellHeight(),l=e.start.time;l<=e.end.time;l=r.getNextNDay(l,1).time){var u=r.dataToRect([l],!1).tl,h=new n.Rect({shape:{x:u[0],y:u[1],width:a,height:s},cursor:"default",style:o});i.add(h)}},_renderLines:function(t,e,n,i){var r=this,o=t.coordinateSystem,a=t.getModel("splitLine.lineStyle").getLineStyle(),s=t.get("splitLine.show"),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,h=0;u.time<=e.end.time;h++){d(u.formatedDate),0===h&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var c=u.date;c.setMonth(c.getMonth()+1),u=o.getDateInfo(c)}function d(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}d(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},_getEdgesPoints:function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},_drawSplitline:function(t,e,i){var r=new n.Polyline({z2:20,shape:{points:t},style:e});i.add(r)},_getLinePointsOfOneWeek:function(t,e,n){var i=t.coordinateSystem;e=i.getDateInfo(e);for(var r=[],o=0;o<7;o++){var a=i.getNextNDay(e.time,o),s=i.dataToRect([a.time],!1);r[2*a.day]=s.tl,r[2*a.day+1]=s["horizontal"===n?"bl":"tr"]}return r},_formatterLabel:function(t,e){return"string"==typeof t&&t?i.formatTplSimple(t,e):"function"==typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,n,i,r){e=e.slice();var o=["center","bottom"];"bottom"===i?(e[1]+=r,o=["center","top"]):"left"===i?e[0]-=r:"right"===i?(e[0]+=r,o=["center","top"]):e[1]-=r;var a=0;return"left"!==i&&"right"!==i||(a=Math.PI/2),{rotation:a,position:e,style:{textAlign:o[0],textVerticalAlign:o[1]}}},_renderYearText:function(t,e,i,r){var o=t.getModel("yearLabel");if(o.get("show")){var a=o.get("margin"),s=o.get("position");s||(s="horizontal"!==i?"top":"left");var l=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],u=(l[0][0]+l[1][0])/2,h=(l[0][1]+l[1][1])/2,c="horizontal"===i?0:1,d={top:[u,l[c][1]],bottom:[u,l[1-c][1]],left:[l[1-c][0],h],right:[l[c][0],h]},p=e.start.y;+e.end.y>+e.start.y&&(p=p+"-"+e.end.y);var f=o.get("formatter"),g={start:e.start.y,end:e.end.y,nameMap:p},v=this._formatterLabel(f,g),m=new n.Text({z2:30});n.setTextStyle(m.style,o,{text:v}),m.attr(this._yearTextPositionControl(m,d[s],i,s,a)),r.add(m)}},_monthTextPositionControl:function(t,e,n,i,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(o="center"),"start"===i&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,textAlign:o,textVerticalAlign:a}},_renderMonthText:function(t,i,r){var a=t.getModel("monthLabel");if(a.get("show")){var s=a.get("nameMap"),l=a.get("margin"),u=a.get("position"),h=a.get("align"),c=[this._tlpoints,this._blpoints];e.isString(s)&&(s=o[s.toUpperCase()]||[]);var d="start"===u?0:1,p="horizontal"===i?0:1;l="start"===u?-l:l;for(var f="center"===h,g=0;g<c[d].length-1;g++){var v=c[d][g].slice(),m=this._firstDayOfMonth[g];if(f){var y=this._firstDayPoints[g];v[p]=(y[p]+c[0][g+1][p])/2}var x=a.get("formatter"),_=s[+m.m-1],b={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:_},w=this._formatterLabel(x,b),S=new n.Text({z2:30});e.extend(n.setTextStyle(S.style,a,{text:w}),this._monthTextPositionControl(v,f,i,u,l)),r.add(S)}}},_weekTextPositionControl:function(t,e,n,i,r){var o="center",a="middle",s=t[0],l=t[1],u="start"===n;return"horizontal"===e?(s=s+i+(u?1:-1)*r[0]/2,o=u?"right":"left"):(l=l+i+(u?1:-1)*r[1]/2,a=u?"bottom":"top"),{x:s,y:l,textAlign:o,textVerticalAlign:a}},_renderWeekText:function(t,i,o,s){var l=t.getModel("dayLabel");if(l.get("show")){var u=t.coordinateSystem,h=l.get("position"),c=l.get("nameMap"),d=l.get("margin"),p=u.getFirstDayOfWeek();e.isString(c)&&(c=a[c.toUpperCase()]||[]);var f=u.getNextNDay(i.end.time,7-i.lweek).time,g=[u.getCellWidth(),u.getCellHeight()];d=r.parsePercent(d,g["horizontal"===o?0:1]),"start"===h&&(f=u.getNextNDay(i.start.time,-(7+i.fweek)).time,d=-d);for(var v=0;v<7;v++){var m,y=u.getNextNDay(f,v),x=u.dataToRect([y.time],!1).center;m=Math.abs((v+p)%7);var _=new n.Text({z2:30});e.extend(n.setTextStyle(_.style,l,{text:c[m]}),this._weekTextPositionControl(x,o,h,d,g)),s.add(_)}}}});f7=s}()),m7}var x7,_7={};function b7(){if(x7)return _7;x7=1,tW().__DEV__;var t=NK(),e=hW(),n=mY(),i=vX(),r=zX(),o=MX().parsePercent,a={path:null,compoundPath:null,group:i.Group,image:i.Image,text:i.Text};t.registerPreprocessor((function(t){var n=t.graphic;e.isArray(n)?n[0]&&n[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:n}]:n&&!n.elements&&(t.graphic=[{elements:[n]}])}));var s=t.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(t){var e=this.option.elements;this.option.elements=null,s.superApply(this,"mergeOption",arguments),this.option.elements=e},optionUpdated:function(t,i){var o=this.option,a=(i?o:t).elements,s=o.elements=i?[]:o.elements,l=[];this._flatten(a,l);var u=n.mappingToExists(s,l);n.makeIdAndName(u);var c=this._elOptionsToUpdate=[];e.each(u,(function(t,n){var i=t.option;i&&(c.push(i),function(t,e){var n=t.exist;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}(t,i),function(t,n,i){var o=e.extend({},i),a=t[n],s=i.$action||"merge";"merge"===s?a?(e.merge(a,o,!0),r.mergeLayoutParam(a,o,{ignoreSize:!0}),r.copyLayoutParams(i,a)):t[n]=o:"replace"===s?t[n]=o:"remove"===s&&a&&(t[n]=null)}(s,n,i),function(t,e){if(!t)return;t.hv=e.hv=[h(e,["left","right"]),h(e,["top","bottom"])],"group"===t.type&&(null==t.width&&(t.width=e.width=0),null==t.height&&(t.height=e.height=0))}(s[n],i))}),this);for(var d=s.length-1;d>=0;d--)null==s[d]?s.splice(d,1):delete s[d].$action},_flatten:function(t,n,i){e.each(t,(function(t){if(t){i&&(t.parentOption=i),n.push(t);var e=t.children;"group"===t.type&&e&&this._flatten(e,n,t),delete t.children}}),this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});function l(t,e,n,r){var o=n.type,s=new(a.hasOwnProperty(o)?a[o]:i.getShapeClass(o))(n);e.add(s),r.set(t,s),s.__ecGraphicId=t}function u(t,e){var n=t&&t.parent;n&&("group"===t.type&&t.traverse((function(t){u(t,e)})),e.removeKey(t.__ecGraphicId),n.remove(t))}function h(t,n){var i;return e.each(n,(function(e){null!=t[e]&&"auto"!==t[e]&&(i=!0)})),i}return t.extendComponentView({type:"graphic",init:function(t,n){this._elMap=e.createHashMap(),this._lastGraphicModel},render:function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},_updateElements:function(t){var n=t.useElOptionsToUpdate();if(n){var i=this._elMap,o=this.group;e.each(n,(function(n){var a=n.$action,s=n.id,h=i.get(s),c=n.parentId,d=null!=c?i.get(c):o,p=n.style;"text"===n.type&&p&&(n.hv&&n.hv[1]&&(p.textVerticalAlign=p.textBaseline=null),!p.hasOwnProperty("textFill")&&p.fill&&(p.textFill=p.fill),!p.hasOwnProperty("textStroke")&&p.stroke&&(p.textStroke=p.stroke));var f=function(t){return t=e.extend({},t),e.each(["id","parentId","$action","hv","bounding"].concat(r.LOCATION_PARAMS),(function(e){delete t[e]})),t}(n);a&&"merge"!==a?"replace"===a?(u(h,i),l(s,d,f,i)):"remove"===a&&u(h,i):h?h.attr(f):l(s,d,f,i);var g=i.get(s);g&&(g.__ecGraphicWidthOption=n.width,g.__ecGraphicHeightOption=n.height,function(t,e){var n=t.eventData;t.silent||t.ignore||n||(n=t.eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name});n&&(n.info=t.info)}(g,t))}))}},_relocate:function(t,e){for(var n=t.option.elements,i=this.group,a=this._elMap,s=e.getWidth(),l=e.getHeight(),u=0;u<n.length;u++){var h=n[u];if((d=a.get(h.id))&&d.isGroup){var c=(p=d.parent)===i;d.__ecGraphicWidth=o(d.__ecGraphicWidthOption,c?s:p.__ecGraphicWidth)||0,d.__ecGraphicHeight=o(d.__ecGraphicHeightOption,c?l:p.__ecGraphicHeight)||0}}for(u=n.length-1;u>=0;u--){var d;h=n[u];if(d=a.get(h.id)){var p,f=(p=d.parent)===i?{width:s,height:l}:{width:p.__ecGraphicWidth,height:p.__ecGraphicHeight};r.positionElement(d,h,f,null,{hv:h.hv,boundingMode:h.bounding})}}},_clear:function(){var t=this._elMap;t.each((function(e){u(e,t)})),this._elMap=e.createHashMap()},dispose:function(){this._clear()}}),_7}var w7,S7,M7,I7={},T7={};function C7(){if(w7)return T7;w7=1;var t={};return T7.register=function(e,n){t[e]=n},T7.get=function(e){return t[e]},T7}var A7,D7,L7,k7,P7,O7,R7,N7,E7,z7,V7,B7={};function G7(){if(A7)return B7;A7=1;var t=zX(),e=t.getLayoutRect,n=t.box,i=t.positionElement,r=EX(),o=vX();return B7.layout=function(t,r,o){var a=r.getBoxLayoutParams(),s=r.get("padding"),l={width:o.getWidth(),height:o.getHeight()},u=e(a,l,s);n(r.get("orient"),t,r.get("itemGap"),u.width,u.height),i(t,a,l,s)},B7.makeBackground=function(t,e){var n=r.normalizeCssArray(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new o.Rect({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})},B7}function F7(){if(L7)return D7;L7=1;var t=NK(),e=hW(),n=UU(),i=C7(),r=vX(),o=mX(),a=gq(),s=G7(),l=t.extendComponentView({type:"toolbox",render:function(t,l,u,h){var c=this.group;if(c.removeAll(),t.get("show")){var d=+t.get("itemSize"),p=t.get("feature")||{},f=this._features||(this._features={}),g=[];e.each(p,(function(t,e){g.push(e)})),new a(this._featureNames||[],g).add(v).update(v).remove(e.curry(v,null)).execute(),this._featureNames=g,s.layout(c,t,u),c.add(s.makeBackground(c.getBoundingRect(),t)),c.eachChild((function(t){var e=t.__title,i=t.hoverStyle;if(i&&e){var r=n.getBoundingRect(e,n.makeFont(i)),o=t.position[0]+c.position[0],a=!1;t.position[1]+c.position[1]+d+r.height>u.getHeight()&&(i.textPosition="top",a=!0);var s=a?-5-r.height:d+8;o+r.width/2>u.getWidth()?(i.textPosition=["100%",s],i.textAlign="right"):o-r.width/2<0&&(i.textPosition=[0,s],i.textAlign="left")}}))}function v(n,a){var s,v=g[n],m=g[a],y=p[v],x=new o(y,t,t.ecModel);if(h&&null!=h.newTitle&&h.featureName===v&&(y.title=h.newTitle),v&&!m){if(function(t){return 0===t.indexOf("my")}(v))s={model:x,onclick:x.option.onclick,featureName:v};else{var _=i.get(v);if(!_)return;s=new _(x,l,u)}f[v]=s}else{if(!(s=f[m]))return;s.model=x,s.ecModel=l,s.api=u}v||!m?x.get("show")&&!s.unusable?(!function(n,i,o){var a=n.getModel("iconStyle"),s=n.getModel("emphasis.iconStyle"),h=i.getIcons?i.getIcons():n.get("icon"),p=n.get("title")||{};if("string"==typeof h){var f=h,g=p;p={},(h={})[o]=f,p[o]=g}var v=n.iconPaths={};e.each(h,(function(o,h){var f=r.createIcon(o,{},{x:-d/2,y:-d/2,width:d,height:d});f.setStyle(a.getItemStyle()),f.hoverStyle=s.getItemStyle(),f.setStyle({text:p[h],textAlign:s.get("textAlign"),textBorderRadius:s.get("textBorderRadius"),textPadding:s.get("textPadding"),textFill:null});var g=t.getModel("tooltip");g&&g.get("show")&&f.attr("tooltip",e.extend({content:p[h],formatter:g.get("formatter",!0)||function(){return p[h]},formatterParams:{componentType:"toolbox",name:h,title:p[h],$vars:["name","title"]},position:g.get("position",!0)||"bottom"},g.option)),r.setHoverStyle(f),t.get("showTitle")&&(f.__title=p[h],f.on("mouseover",(function(){var e=s.getItemStyle(),n="vertical"===t.get("orient")?null==t.get("right")?"right":"left":null==t.get("bottom")?"bottom":"top";f.setStyle({textFill:s.get("textFill")||e.fill||e.stroke||"#000",textBackgroundColor:s.get("textBackgroundColor"),textPosition:s.get("textPosition")||n})})).on("mouseout",(function(){f.setStyle({textFill:null,textBackgroundColor:null})}))),f.trigger(n.get("iconStatus."+h)||"normal"),c.add(f),f.on("click",e.bind(i.onclick,i,l,u,h)),v[h]=f}))}(x,s,v),x.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&i[t].trigger(e)},s.render&&s.render(x,l,u,h)):s.remove&&s.remove(l,u):s.dispose&&s.dispose(l,u)}},updateView:function(t,n,i,r){e.each(this._features,(function(t){t.updateView&&t.updateView(t.model,n,i,r)}))},remove:function(t,n){e.each(this._features,(function(e){e.remove&&e.remove(t,n)})),this.group.removeAll()},dispose:function(t,n){e.each(this._features,(function(e){e.dispose&&e.dispose(t,n)}))}});return D7=l}function H7(){if(E7)return N7;E7=1;var t=NK(),e=hW(),n=LW(),i=Jj(),r=C7(),o=i.toolbox.dataView,a=new Array(60).join("-"),s="\t";function l(t){return e.map(t,(function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,r=arguments[t-1],o=e.getName(r),a=0;a<t-1;a++)i[a]=arguments[a];n.push((o?o+s:"")+i.join(s))})),n.join("\n")})).join("\n\n"+a+"\n\n")}function u(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var h=new RegExp("[\t]+","g");function c(t,n){var i=t.split(new RegExp("\n*"+a+"\n*","g")),r={series:[]};return e.each(i,(function(t,i){if(function(t){if(t.slice(0,t.indexOf("\n")).indexOf(s)>=0)return!0}(t)){var o=function(t){for(var n=t.split(/\n+/g),i=u(n.shift()).split(h),r=[],o=e.map(i,(function(t){return{name:t,data:[]}})),a=0;a<n.length;a++){var s=u(n[a]).split(h);r.push(s.shift());for(var l=0;l<s.length;l++)o[l]&&(o[l].data[a]=s[l])}return{series:o,categories:r}}(t),a=n[i],l=a.axisDim+"Axis";a&&(r[l]=r[l]||[],r[l][a.axisIndex]={data:o.categories},r.series=r.series.concat(o.series))}else{o=function(t){for(var e=t.split(/\n+/g),n=u(e.shift()),i=[],r=0;r<e.length;r++){var o=u(e[r]);if(o){var a,s=o.split(h),l="",c=!1;isNaN(s[0])?(c=!0,l=s[0],s=s.slice(1),i[r]={name:l,value:[]},a=i[r].value):a=i[r]=[];for(var d=0;d<s.length;d++)a.push(+s[d]);1===a.length&&(c?i[r].value=a[0]:i[r]=a[0])}}return{name:n,data:i}}(t);r.series.push(o)}})),r}function d(t){this._dom=null,this.model=t}function p(t,n){return e.map(t,(function(t,i){var r=n&&n[i];if(e.isObject(r)&&!e.isArray(r)){e.isObject(t)&&!e.isArray(t)||(t={value:t});var o=null!=r.name&&null==t.name;return t=e.defaults(t,r),o&&delete t.name,t}return t}))}return d.defaultOption={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.clone(o.title),lang:e.clone(o.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},d.prototype.onclick=function(t,i){var r=i.getDom(),o=this.model;this._dom&&r.removeChild(this._dom);var u=document.createElement("div");u.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",u.style.backgroundColor=o.get("backgroundColor")||"#fff";var h=document.createElement("h4"),d=o.get("lang")||[];h.innerHTML=d[0]||o.get("title"),h.style.cssText="margin: 10px 20px;",h.style.color=o.get("textColor");var p=document.createElement("div"),f=document.createElement("textarea");p.style.cssText="display:block;width:100%;overflow:auto;";var g=o.get("optionToContent"),v=o.get("contentToOption"),m=function(t){var n,i,r=function(t){var e={},n=[],i=[];return t.eachRawSeries((function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(t);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:i}}(t);return{value:e.filter([(n=r.seriesGroupByCategoryAxis,i=[],e.each(n,(function(t,n){var r=t.categoryAxis,o=t.valueAxis.dim,a=[" "].concat(e.map(t.series,(function(t){return t.name}))),l=[r.model.getCategories()];e.each(t.series,(function(t){var e=t.getRawData();l.push(t.getRawData().mapArray(e.mapDimension(o),(function(t){return t})))}));for(var u=[a.join(s)],h=0;h<l[0].length;h++){for(var c=[],d=0;d<l.length;d++)c.push(l[d][h]);u.push(c.join(s))}i.push(u.join("\n"))})),i.join("\n\n"+a+"\n\n")),l(r.other)],(function(t){return t.replace(/[\n\t\s]/g,"")})).join("\n\n"+a+"\n\n"),meta:r.meta}}(t);if("function"==typeof g){var y=g(i.getOption());"string"==typeof y?p.innerHTML=y:e.isDom(y)&&p.appendChild(y)}else p.appendChild(f),f.readOnly=o.get("readOnly"),f.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",f.style.color=o.get("textColor"),f.style.borderColor=o.get("textareaBorderColor"),f.style.backgroundColor=o.get("textareaColor"),f.value=m.value;var x=m.meta,_=document.createElement("div");_.style.cssText="position:absolute;bottom:0;left:0;right:0;";var b="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",w=document.createElement("div"),S=document.createElement("div");b+=";background-color:"+o.get("buttonColor"),b+=";color:"+o.get("buttonTextColor");var M=this;function I(){r.removeChild(u),M._dom=null}n.addEventListener(w,"click",I),n.addEventListener(S,"click",(function(){var t;try{t="function"==typeof v?v(p,i.getOption()):c(f.value,x)}catch(e){throw I(),new Error("Data view format error "+e)}t&&i.dispatchAction({type:"changeDataView",newOption:t}),I()})),w.innerHTML=d[1],S.innerHTML=d[2],S.style.cssText=b,w.style.cssText=b,!o.get("readOnly")&&_.appendChild(S),_.appendChild(w),u.appendChild(h),u.appendChild(p),u.appendChild(_),p.style.height=r.clientHeight-80+"px",r.appendChild(u),this._dom=u},d.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},d.prototype.dispose=function(t,e){this.remove(t,e)},r.register("dataView",d),t.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,n){var i=[];e.each(t.newOption.series,(function(t){var r=n.getSeriesByName(t.name)[0];if(r){var o=r.get("data");i.push({name:t.name,data:p(t.data,o)})}else i.push(e.extend({type:"scatter"},t))})),n.mergeOption(e.defaults({series:i},t.newOption))})),N7=d}function W7(){if(V7)return z7;V7=1,tW().__DEV__;var t=hW(),e=vX(),n=mY(),i=$5(),r=t.each,o=t.indexOf,a=t.curry,s=["dataToPoint","pointToData"],l=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function u(t,e,n){var i=this._targetInfoList=[],a={},s=d(e,t);r(p,(function(t,e){(!n||!n.include||o(n.include,e)>=0)&&t(s,i,a)}))}var h=u.prototype;function c(t){return t[0]>t[1]&&t.reverse(),t}function d(t,e){return n.parseFinder(t,e,{includeMainTypes:l})}h.setOutputRanges=function(t,e){this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=v[t.brushType](0,n,e);t.__rangeOffset={offset:y[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}}))},h.matchOutputRanges=function(e,n,i){r(e,(function(e){var r=this.findTargetInfo(e,n);r&&!0!==r&&t.each(r.coordSyses,(function(t){var r=v[e.brushType](1,t,e.range);i(e,r.values,t,n)}))}),this)},h.setInputRanges=function(t,e){r(t,(function(t){var n,i,r,o,a,s=this.findTargetInfo(t,e);if(t.range=t.range||[],s&&!0!==s){t.panelId=s.panelId;var l=v[t.brushType](0,s.coordSys,t.coordRange),u=t.__rangeOffset;t.range=u?y[t.brushType](l.values,u.offset,(n=l.xyMinMax,i=u.xyMinMax,r=_(n),o=_(i),a=[r[0]/o[0],r[1]/o[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):l.values}}),this)},h.makePanelOpts=function(e,n){return t.map(this._targetInfoList,(function(t){var r=t.getPanelRect();return{panelId:t.panelId,defaultBrushType:n&&n(t),clipPath:i.makeRectPanelClipPath(r),isTargetByCursor:i.makeRectIsTargetByCursor(r,e,t.coordSysModel),getLinearBrushOtherExtent:i.makeLinearBrushOtherExtent(r)}}))},h.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&o(i.coordSyses,e.coordinateSystem)>=0},h.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=d(e,t),r=0;r<n.length;r++){var o=n[r],a=t.panelId;if(a){if(o.panelId===a)return o}else for(r=0;r<f.length;r++)if(f[r](i,o))return o}return!0};var p={grid:function(e,n){var i=e.xAxisModels,a=e.yAxisModels,s=e.gridModels,l=t.createHashMap(),u={},h={};(i||a||s)&&(r(i,(function(t){var e=t.axis.grid.model;l.set(e.id,e),u[e.id]=!0})),r(a,(function(t){var e=t.axis.grid.model;l.set(e.id,e),h[e.id]=!0})),r(s,(function(t){l.set(t.id,t),u[t.id]=!0,h[t.id]=!0})),l.each((function(t){var e=t.coordinateSystem,s=[];r(e.getCartesians(),(function(t,e){(o(i,t.getAxis("x").model)>=0||o(a,t.getAxis("y").model)>=0)&&s.push(t)})),n.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:s[0],coordSyses:s,getPanelRect:g.grid,xAxisDeclared:u[t.id],yAxisDeclared:h[t.id]})})))},geo:function(t,e){r(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:g.geo})}))}},f=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],g={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var t=this.coordSys,n=t.getBoundingRect().clone();return n.applyTransform(e.getTransform(t)),n}},v={lineX:a(m,0),lineY:a(m,1),rect:function(t,e,n){var i=e[s[t]]([n[0][0],n[1][0]]),r=e[s[t]]([n[0][1],n[1][1]]),o=[c([i[0],r[0]]),c([i[1],r[1]])];return{values:o,xyMinMax:o}},polygon:function(e,n,i){var r=[[1/0,-1/0],[1/0,-1/0]];return{values:t.map(i,(function(t){var i=n[s[e]](t);return r[0][0]=Math.min(r[0][0],i[0]),r[1][0]=Math.min(r[1][0],i[1]),r[0][1]=Math.max(r[0][1],i[0]),r[1][1]=Math.max(r[1][1],i[1]),i})),xyMinMax:r}}};function m(e,n,i,r){var o=i.getAxis(["x","y"][e]),a=c(t.map([0,1],(function(t){return n?o.coordToData(o.toLocalCoord(r[t])):o.toGlobalCoord(o.dataToCoord(r[t]))}))),s=[];return s[e]=a,s[1-e]=[NaN,NaN],{values:a,xyMinMax:s}}var y={lineX:a(x,0),lineY:a(x,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(e,n,i){return t.map(e,(function(t,e){return[t[0]-i[0]*n[e][0],t[1]-i[1]*n[e][1]]}))}};function x(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function _(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}return z7=u}var U7,Y7={};function Z7(){if(U7)return Y7;U7=1;var t=hW().each,e="\0_ec_hist_store";function n(t){var n=t[e];return n||(n=t[e]=[{}]),n}return Y7.push=function(e,i){var r=n(e);t(i,(function(t,n){for(var i=r.length-1;i>=0;i--){if(r[i][n])break}if(i<0){var o=e.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(o){var a=o.getPercentRange();r[0][n]={dataZoomId:n,start:a[0],end:a[1]}}}})),r.push(i)},Y7.pop=function(e){var i=n(e),r=i[i.length-1];i.length>1&&i.pop();var o={};return t(r,(function(t,e){for(var n=i.length-1;n>=0;n--){if(t=i[n][e]){o[e]=t;break}}})),o},Y7.clear=function(t){t[e]=null},Y7.count=function(t){return n(t).length},Y7}var X7,j7={},q7={};function K7(){return X7||(X7=1,VX().registerSubTypeDefaulter("dataZoom",(function(){return"slider"}))),q7}var $7,J7,Q7,t9,e9,n9,i9,r9,o9,a9,s9,l9={};function u9(){if($7)return l9;$7=1;var t=hW(),e=EX(),n=["cartesian2d","polar","singleAxis"];function i(n,i){n=n.slice();var r=t.map(n,e.capitalFirst);i=(i||[]).slice();var o=t.map(i,e.capitalFirst);return function(e,a){t.each(n,(function(t,n){for(var s={name:t,capital:r[n]},l=0;l<i.length;l++)s[i[l]]=t+o[l];e.call(a,s)}))}}var r=i(["x","y","z","radius","angle","single"],["axisIndex","axis","index","id"]);return l9.isCoordSupported=function(e){return t.indexOf(n,e)>=0},l9.createNameEach=i,l9.eachAxisDim=r,l9.createLinkedNodesFinder=function(e,n,i){return function(o){var a,s={nodes:[],records:{}};if(n((function(t){s.records[t.name]={}})),!o)return s;r(o,s);do{a=!1,e(l)}while(a);function l(e){!function(e,n){return t.indexOf(n.nodes,e)>=0}(e,s)&&function(e,r){var o=!1;return n((function(n){t.each(i(e,n)||[],(function(t){r.records[n.name][t]&&(o=!0)}))})),o}(e,s)&&(r(e,s),a=!0)}return s};function r(e,r){r.nodes.push(e),n((function(n){t.each(i(e,n)||[],(function(t){r.records[n.name][t]=!0}))}))}},l9}function h9(){if(Q7)return J7;Q7=1;var t=hW(),e=MX(),n=u9(),i=A5(),r=t.each,o=e.asc,a=function(t,e,n,i){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=i,this._dataZoomModel=n};function s(t,n){var i=t.getAxisModel(),r=t._percentWindow,o=t._valueWindow;if(r){var a=e.getPixelPrecision(o,[0,500]);a=Math.min(a,20);var s=n||0===r[0]&&100===r[1];i.setRange(s?null:+o[0].toFixed(a),s?null:+o[1].toFixed(a))}}return a.prototype={constructor:a,hostedBy:function(t){return this._dataZoomModel===t},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],e=this.ecModel;return e.eachSeries((function(i){if(n.isCoordSupported(i.get("coordinateSystem"))){var r=this._dimName,o=e.queryComponents({mainType:r+"Axis",index:i.get(r+"AxisIndex"),id:i.get(r+"AxisId")})[0];this._axisIndex===(o&&o.componentIndex)&&t.push(i)}}),this),t},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,n,i=this._dimName,r=this.ecModel,o=this.getAxisModel();return"x"===i||"y"===i?(e="gridIndex",t="x"===i?"y":"x"):(e="polarIndex",t="angle"===i?"radius":"angle"),r.eachComponent(t+"Axis",(function(t){(t.get(e)||0)===(o.get(e)||0)&&(n=t)})),n},getMinMaxSpan:function(){return t.clone(this._minMaxSpan)},calculateDataWindow:function(t){var n,a=this._dataExtent,s=this.getAxisModel().axis.scale,l=this._dataZoomModel.getRangePropMode(),u=[0,100],h=[],c=[];r(["start","end"],(function(i,r){var o=t[i],d=t[i+"Value"];"percent"===l[r]?(null==o&&(o=u[r]),d=s.parse(e.linearMap(o,u,a))):(n=!0,d=null==d?a[r]:s.parse(d),o=e.linearMap(d,a,u)),c[r]=d,h[r]=o})),o(c),o(h);var d=this._minMaxSpan;function p(t,n,r,o,a){var l=a?"Span":"ValueSpan";i(0,t,r,"all",d["min"+l],d["max"+l]);for(var u=0;u<2;u++)n[u]=e.linearMap(t[u],r,o,!0),a&&(n[u]=s.parse(n[u]))}return n?p(c,h,a,u,!1):p(h,c,u,a,!0),{valueWindow:c,percentWindow:h}},reset:function(t){if(t===this._dataZoomModel){var n=this.getTargetSeriesModels();this._dataExtent=function(t,e,n){var i=[1/0,-1/0];r(n,(function(t){var n=t.getData();n&&r(n.mapDimension(e,!0),(function(t){var e=n.getApproximateExtent(t);e[0]<i[0]&&(i[0]=e[0]),e[1]>i[1]&&(i[1]=e[1])}))})),i[1]<i[0]&&(i=[NaN,NaN]);return function(t,e){var n=t.getAxisModel(),i=n.getMin(!0),r="category"===n.get("type"),o=r&&n.getCategories().length;null!=i&&"dataMin"!==i&&"function"!=typeof i?e[0]=i:r&&(e[0]=o>0?0:NaN);var a=n.getMax(!0);null!=a&&"dataMax"!==a&&"function"!=typeof a?e[1]=a:r&&(e[1]=o>0?o-1:NaN);n.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0))}(t,i),i}(this,this._dimName,n),function(t){var n=t._minMaxSpan={},i=t._dataZoomModel,o=t._dataExtent;r(["min","max"],(function(r){var a=i.get(r+"Span"),s=i.get(r+"ValueSpan");null!=s&&(s=t.getAxisModel().axis.scale.parse(s)),null!=s?a=e.linearMap(o[0]+s,o,[0,100],!0):null!=a&&(s=e.linearMap(a,[0,100],o,!0)-o[0]),n[r+"Span"]=a,n[r+"ValueSpan"]=s}))}(this);var i=this.calculateDataWindow(t.settledOption);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,s(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,s(this,!0))},filterData:function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),o=t.get("filterMode"),a=this._valueWindow;"none"!==o&&r(i,(function(t){var e=t.getData(),i=e.mapDimension(n,!0);i.length&&("weakFilter"===o?e.filterSelf((function(t){for(var n,r,o,s=0;s<i.length;s++){var l=e.get(i[s],t),u=!isNaN(l),h=l<a[0],c=l>a[1];if(u&&!h&&!c)return!0;u&&(o=!0),h&&(n=!0),c&&(r=!0)}return o&&n&&r})):r(i,(function(n){if("empty"===o)t.setData(e=e.map(n,(function(t){return function(t){return t>=a[0]&&t<=a[1]}(t)?t:NaN})));else{var i={};i[n]=a,e.selectRange(i)}})),r(i,(function(t){e.setApproximateExtent(a,t)})))}))}}},J7=a}function c9(){if(e9)return t9;e9=1,tW().__DEV__;var t=NK(),e=hW(),n=sW(),i=mY(),r=u9(),o=h9(),a=e.each,s=r.eachAxisDim,l=t.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(t,e,n){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var i=u(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this.doInit(i)},mergeOption:function(t){var n=u(t);e.merge(this.option,t,!0),e.merge(this.settledOption,n,!0),this.doInit(n)},doInit:function(t){var e=this.option;n.canvasSupported||(e.realtime=!1),this._setDefaultThrottle(t),h(this,t);var i=this.settledOption;a([["start","startValue"],["end","endValue"]],(function(t,n){"value"===this._rangePropMode[n]&&(e[t[0]]=i[t[0]]=null)}),this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis((function(e,n,i,r){var a=this.dependentModels[e.axis][n],s=a.__dzAxisProxy||(a.__dzAxisProxy=new o(e.name,n,this,r));t[e.name+"_"+n]=s}),this)},_resetTarget:function(){var t=this.option,e=this._judgeAutoMode();s((function(e){var n=e.axisIndex;t[n]=i.normalizeToArray(t[n])}),this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,e=!1;s((function(n){null!=t[n.axisIndex]&&(e=!0)}),this);var n=t.orient;return null==n&&e?"orient":e?void 0:(null==n&&(t.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var t=!0,n=this.get("orient",!0),i=this.option,r=this.dependentModels;if(t){var o="vertical"===n?"y":"x";r[o+"Axis"].length?(i[o+"AxisIndex"]=[0],t=!1):a(r.singleAxis,(function(e){t&&e.get("orient",!0)===n&&(i.singleAxisIndex=[e.componentIndex],t=!1)}))}t&&s((function(e){if(t){var n=[],r=this.dependentModels[e.axis];if(r.length&&!n.length)for(var o=0,a=r.length;o<a;o++)"category"===r[o].get("type")&&n.push(o);i[e.axisIndex]=n,n.length&&(t=!1)}}),this),t&&this.ecModel.eachSeries((function(t){this._isSeriesHasAllAxesTypeOf(t,"value")&&s((function(n){var r=i[n.axisIndex],o=t.get(n.axisIndex),a=t.get(n.axisId);o=t.ecModel.queryComponents({mainType:n.axis,index:o,id:a})[0].componentIndex,e.indexOf(r,o)<0&&r.push(o)}))}),this)},_autoSetOrient:function(){var t;this.eachTargetAxis((function(e){!t&&(t=e.name)}),this),this.option.orient="y"===t?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(t,e){var n=!0;return s((function(i){var r=t.get(i.axisIndex),o=this.dependentModels[i.axis][r];o&&o.get("type")===e||(n=!1)}),this),n},_setDefaultThrottle:function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var t;return s((function(e){if(null==t){var n=this.get(e.axisIndex);n.length&&(t=this.dependentModels[e.axis][n[0]])}}),this),t},eachTargetAxis:function(t,e){var n=this.ecModel;s((function(i){a(this.get(i.axisIndex),(function(r){t.call(e,i,r,this,n)}),this)}),this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},getAxisModel:function(t,e){var n=this.getAxisProxy(t,e);return n&&n.getAxisModel()},setRawRange:function(t){var e=this.option,n=this.settledOption;a([["start","startValue"],["end","endValue"]],(function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])}),this),h(this,t)},setCalculatedRange:function(t){var e=this.option;a(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var e=this._axisProxies;for(var n in e)if(e.hasOwnProperty(n)&&e[n].hostedBy(this))return e[n];for(var n in e)if(e.hasOwnProperty(n)&&!e[n].hostedBy(this))return e[n]},getRangePropMode:function(){return this._rangePropMode.slice()}});function u(t){var e={};return a(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}function h(t,e){var n=t._rangePropMode,i=t.get("rangeMode");a([["start","startValue"],["end","endValue"]],(function(t,r){var o=null!=e[t[0]],a=null!=e[t[1]];o&&!a?n[r]="percent":!o&&a?n[r]="value":i?n[r]=i[r]:o&&(n[r]="percent")}))}return t9=l}function d9(){if(i9)return n9;i9=1;var t=Pj().extend({type:"dataZoom",render:function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},getTargetCoordInfo:function(){var t=this.dataZoomModel,e=this.ecModel,n={};return t.eachTargetAxis((function(t,i){var r=e.getComponent(t.axis,i);if(r){var o=r.getCoordSysModel();o&&function(t,e,n,i){for(var r,o=0;o<n.length;o++)if(n[o].model===t){r=n[o];break}r||n.push(r={model:t,axisModels:[],coordIndex:i});r.axisModels.push(e)}(o,r,n[o.mainType]||(n[o.mainType]=[]),o.componentIndex)}}),this),n}});return n9=t}var p9,f9={};function g9(){if(p9)return f9;p9=1;var t=NK(),e=hW(),n=e.createHashMap,i=e.each;return t.registerProcessor({getTargetSeries:function(t){var e=n();return t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(t,n,r){var o=r.getAxisProxy(t.name,n);i(o.getTargetSeriesModels(),(function(t){e.set(t.uid,t)}))}))})),e},modifyOutputEnd:!0,overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(t,n,i){i.getAxisProxy(t.name,n).reset(i,e)})),t.eachTargetAxis((function(t,n,i){i.getAxisProxy(t.name,n).filterData(i,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy(),n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}))}}),f9}var v9,m9,y9,x9,_9,b9,w9,S9={};function M9(){if(v9)return S9;v9=1;var t=NK(),e=hW(),n=u9();return t.registerAction("dataZoom",(function(t,i){var r=n.createLinkedNodesFinder(e.bind(i.eachComponent,i,"dataZoom"),n.eachAxisDim,(function(t,e){return t.get(e.axisIndex)})),o=[];i.eachComponent({mainType:"dataZoom",query:t},(function(t,e){o.push.apply(o,r(t).nodes)})),e.each(o,(function(e,n){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))})),S9}function I9(){return m9||(m9=1,K7(),c9(),d9(),function(){if(o9)return r9;o9=1;var t=c9().extend({type:"dataZoom.select"});r9=t}(),function(){if(s9)return a9;s9=1;var t=d9().extend({type:"dataZoom.select"});a9=t}(),g9(),M9()),j7}function T9(){if(x9)return y9;x9=1;var t=NK(),e=hW(),n=z5(),i=W7(),r=Z7(),o=A5(),a=Jj(),s=C7();I9();var l=a.toolbox.dataZoom,u=e.each;function h(t,i,r){(this._brushController=new n(r.getZr())).on("brush",e.bind(this._onBrush,this)).mount(),this._isZoomActive}h.defaultOption={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.clone(l.title),brushStyle:{borderWidth:0,color:"rgba(0,0,0,0.2)"}};var c=h.prototype;c.render=function(t,e,n,o){this.model=t,this.ecModel=e,this.api=n,function(t,e,n,r,o){var a=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(a="dataZoomSelect"===r.key&&r.dataZoomSelectActive);n._isZoomActive=a,t.setIconStatus("zoom",a?"emphasis":"normal");var s=new i(p(t.option),e,{include:["grid"]});n._brushController.setPanels(s.makePanelOpts(o,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}))).enableBrush(!!a&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}(t,e,this,o,n),function(t,e){t.setIconStatus("back",r.count(e)>1?"emphasis":"normal")}(t,e)},c.onclick=function(t,e,n){d[n].call(this)},c.remove=function(t,e){this._brushController.unmount()},c.dispose=function(t,e){this._brushController.dispose()};var d={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(r.pop(this.ecModel))}};function p(t){var n={};return e.each(["xAxisIndex","yAxisIndex"],(function(e){n[e]=t[e],null==n[e]&&(n[e]="all"),(!1===n[e]||"none"===n[e])&&(n[e]=[])})),n}return c._onBrush=function(t,e){if(e.isEnd&&t.length){var n={},a=this.ecModel;this._brushController.updateCovers([]),new i(p(this.model.option),a,{include:["grid"]}).matchOutputRanges(t,a,(function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(s("x",n,e[0]),s("y",n,e[1])):s({lineX:"x",lineY:"y"}[i],n,e)}})),r.push(a,n),this._dispatchZoomAction(n)}function s(t,e,i){var r=e.getAxis(t),s=r.model,l=function(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(t,e.componentIndex)&&(i=n)})),i}(t,s,a),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(i=o(0,i.slice(),r.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:i[0],endValue:i[1]})}},c._dispatchZoomAction=function(t){var n=[];u(t,(function(t,i){n.push(e.clone(t))})),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},s.register("dataZoom",h),t.registerPreprocessor((function(t){if(t){var n=t.dataZoom||(t.dataZoom=[]);e.isArray(n)||(t.dataZoom=n=[n]);var i=t.toolbox;if(i&&(e.isArray(i)&&(i=i[0]),i&&i.feature)){var r=i.feature.dataZoom;o("xAxis",r),o("yAxis",r)}}function o(i,r){if(r){var o=i+"Index",a=r[o];null==a||"all"===a||e.isArray(a)||(a=!1===a||"none"===a?[]:[a]),function(n,i){var r=t[n];e.isArray(r)||(r=r?[r]:[]);u(r,i)}(i,(function(t,s){if(null==a||"all"===a||-1!==e.indexOf(a,s)){var l={type:"select",$fromToolbox:!0,filterMode:r.filterMode||"filter",id:"\0_ec_\0toolbox-dataZoom_"+i+s};l[o]=s,n.push(l)}}))}}})),y9=h}function C9(){return w9||(w9=1,function(){if(M7)return S7;M7=1;var t=NK(),e=hW(),n=C7(),i=t.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){i.superApply(this,"optionUpdated",arguments),e.each(this.option.feature,(function(t,i){var r=n.get(i);r&&e.merge(t,r.defaultOption)}))},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1}}});S7=i}(),F7(),function(){if(P7)return k7;P7=1;var t=sW(),e=Jj(),n=C7(),i=e.toolbox.saveAsImage;function r(t){this.model=t}r.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:i.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:i.lang.slice()},r.prototype.unusable=!t.canvasSupported,r.prototype.onclick=function(e,n){var i=this.model,r=i.get("name")||e.get("title.0.text")||"echarts",o="svg"===n.getZr().painter.getType()?"svg":i.get("type",!0)||"png",a=n.getConnectedDataURL({type:o,backgroundColor:i.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if("function"!=typeof MouseEvent||t.browser.ie||t.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var s=atob(a.split(",")[1]),l=s.length,u=new Uint8Array(l);l--;)u[l]=s.charCodeAt(l);var h=new Blob([u]);window.navigator.msSaveOrOpenBlob(h,r+"."+o)}else{var c=i.get("lang"),d='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(c&&c[0]||"")+'" /></body>';window.open().document.write(d)}else{var p=document.createElement("a");p.download=r+"."+o,p.target="_blank",p.href=a;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});p.dispatchEvent(f)}},n.register("saveAsImage",r),k7=r}(),function(){if(R7)return O7;R7=1;var t=NK(),e=hW(),n=Jj(),i=C7(),r=n.toolbox.magicType,o="__ec_magicType_stack__";function a(t){this.model=t}a.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.clone(r.title),option:{},seriesIndex:{}};var s=a.prototype;s.getIcons=function(){var t=this.model,n=t.get("icon"),i={};return e.each(t.get("type"),(function(t){n[t]&&(i[t]=n[t])})),i};var l={line:function(t,n,i,r){if("bar"===t)return e.merge({id:n,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},r.get("option.line")||{},!0)},bar:function(t,n,i,r){if("line"===t)return e.merge({id:n,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},r.get("option.bar")||{},!0)},stack:function(t,n,i,r){var a=i.get("stack")===o;if("line"===t||"bar"===t)return r.setIconStatus("stack",a?"normal":"emphasis"),e.merge({id:n,stack:a?"":o},r.get("option.stack")||{},!0)}},u=[["line","bar"],["stack"]];s.onclick=function(t,n,i){var a=this.model,s=a.get("seriesIndex."+i);if(l[i]){var h,c={series:[]};e.each(u,(function(t){e.indexOf(t,i)>=0&&e.each(t,(function(t){a.setIconStatus(t,"normal")}))})),a.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:null==s?null:{seriesIndex:s}},(function(n){var r=n.subType,o=n.id,s=l[i](r,o,n,a);s&&(e.defaults(s,n.option),c.series.push(s));var u=n.coordinateSystem;if(u&&"cartesian2d"===u.type&&("line"===i||"bar"===i)){var h=u.getAxesByScale("ordinal")[0];if(h){var d=h.dim+"Axis",p=t.queryComponents({mainType:d,index:n.get(name+"Index"),id:n.get(name+"Id")})[0].componentIndex;c[d]=c[d]||[];for(var f=0;f<=p;f++)c[d][p]=c[d][p]||{};c[d][p].boundaryGap="bar"===i}}})),"stack"===i&&(h=c.series&&c.series[0]&&c.series[0].stack===o?e.merge({stack:r.title.tiled},r.title):e.clone(r.title)),n.dispatchAction({type:"changeMagicType",currentType:i,newOption:c,newTitle:h,featureName:"magicType"})}},t.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)})),i.register("magicType",a),O7=a}(),H7(),T9(),function(){if(b9)return _9;b9=1;var t=NK(),e=Z7(),n=Jj(),i=C7(),r=n.toolbox.restore;function o(t){this.model=t}o.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:r.title},o.prototype.onclick=function(t,n,i){e.clear(t),n.dispatchAction({type:"restore",from:this.uid})},i.register("restore",o),t.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")})),_9=o}()),I7}var A9,D9,L9,k9,P9,O9,R9,N9,E9,z9={};function V9(){if(k9)return L9;k9=1;var t=hW(),e=KW(),n=LW(),i=DW(),r=sW(),o=EX(),a=t.each,s=o.toCamelCase,l=["","-webkit-","-moz-","-o-"];function u(n){var i,u,h,c=[],d=n.get("transitionDuration"),p=n.get("backgroundColor"),f=n.getModel("textStyle"),g=n.get("padding");return d&&c.push((h="left "+(i=d)+"s "+(u="cubic-bezier(0.23, 1, 0.32, 1)")+",top "+i+"s "+u,t.map(l,(function(t){return t+"transition:"+h})).join(";"))),p&&(r.canvasSupported?c.push("background-Color:"+p):(c.push("background-Color:#"+e.toHex(p)),c.push("filter:alpha(opacity=70)"))),a(["width","color","radius"],(function(t){var e="border-"+t,i=s(e),r=n.get(i);null!=r&&c.push(e+":"+r+("color"===t?"":"px"))})),c.push(function(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var r=t.get("lineHeight");null==r&&(r=Math.round(3*n/2)),n&&e.push("line-height:"+r+"px");var o=t.get("textShadowColor"),s=t.get("textShadowBlur")||0,l=t.get("textShadowOffsetX")||0,u=t.get("textShadowOffsetY")||0;return s&&e.push("text-shadow:"+l+"px "+u+"px "+s+"px "+o),a(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}(f)),null!=g&&c.push("padding:"+o.normalizeCssArray(g).join("px ")+"px"),c.join(";")+";"}function h(t,e,n,r,o){var a=e&&e.painter;if(n){var s=a&&a.getViewportRoot();s&&i.transformLocalCoord(t,s,document.body,r,o)}else{t[0]=r,t[1]=o;var l=a&&a.getViewportRootOffset();l&&(t[0]+=l.offsetLeft,t[1]+=l.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function c(t,e,i){if(r.wxa)return null;var o=document.createElement("div");o.domBelongToZr=!0,this.el=o;var a=this._zr=e.getZr(),s=this._appendToBody=i&&i.appendToBody;this._styleCoord=[0,0,0,0],h(this._styleCoord,a,s,e.getWidth()/2,e.getHeight()/2),s?document.body.appendChild(o):t.appendChild(o),this._container=t,this._show=!1,this._hideTimeout;var l=this;o.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},o.onmousemove=function(t){if(t=t||window.event,!l._enterable){var e=a.handler,i=a.painter.getViewportRoot();n.normalizeEvent(i,t,!0),e.dispatch("mousemove",t)}},o.onmouseleave=function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1}}return c.prototype={constructor:c,_enterable:!0,update:function(t){var e=this._container,n=e.currentStyle||document.defaultView.getComputedStyle(e),i=e.style;"absolute"!==i.position&&"absolute"!==n.position&&(i.position="relative"),t.get("alwaysShowContent")&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var t=this._styleCoord[2],e=this._styleCoord[3],n=t*this._zr.getWidth(),i=e*this._zr.getHeight();this.moveTo(n,i)},show:function(t){clearTimeout(this._hideTimeout);var e=this.el,n=this._styleCoord;e.style.cssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+u(t)+";left:"+n[0]+"px;top:"+n[1]+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",e.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var n=this._styleCoord;h(n,this._zr,this._appendToBody,t,e);var i=this.el.style;i.left=n[0]+"px",i.top=n[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(t.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var t=this.el.clientWidth,e=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var n=document.defaultView.getComputedStyle(this.el);n&&(t+=parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),e+=parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10))}return{width:t,height:e}}},L9=c}function B9(){if(N9)return R9;N9=1;var t=NK(),e=hW(),n=sW(),i=V9(),r=function(){if(O9)return P9;O9=1;var t=hW(),e=bZ(),n=vX();function i(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function r(t){var e=this._zr=t.getZr();this._styleCoord=[0,0,0,0],i(this._styleCoord,e,t.getWidth()/2,t.getHeight()/2),this._show=!1,this._hideTimeout}return r.prototype={constructor:r,_enterable:!0,update:function(t){t.get("alwaysShowContent")&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var t=this._styleCoord[2],e=this._styleCoord[3],n=t*this._zr.getWidth(),i=e*this._zr.getHeight();this.moveTo(n,i)},show:function(t){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(t,i,r){this.el&&this._zr.remove(this.el);for(var o={},a=t,s="{marker",l=a.indexOf(s);l>=0;){var u=a.indexOf("|}"),h=a.substr(l+7,u-l-7);h.indexOf("sub")>-1?o["marker"+h]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:i[h],textOffset:[3,0]}:o["marker"+h]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:i[h]},l=(a=a.substr(u+1)).indexOf("{marker")}var c=r.getModel("textStyle"),d=c.get("fontSize"),p=r.get("textLineHeight");null==p&&(p=Math.round(3*d/2)),this.el=new e({style:n.setTextStyle({},c,{rich:o,text:t,textBackgroundColor:r.get("backgroundColor"),textBorderRadius:r.get("borderRadius"),textFill:r.get("textStyle.color"),textPadding:r.get("padding"),textLineHeight:p}),z:r.get("z")}),this._zr.add(this.el);var f=this;this.el.on("mouseover",(function(){f._enterable&&(clearTimeout(f._hideTimeout),f._show=!0),f._inContent=!0})),this.el.on("mouseout",(function(){f._enterable&&f._show&&f.hideLater(f._hideDelay),f._inContent=!1}))},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el.getBoundingRect();return[t.width,t.height]},moveTo:function(t,e){if(this.el){var n=this._styleCoord;i(n,this._zr,t,e),this.el.attr("position",[n[0],n[1]])}},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(t.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},dispose:function(){clearTimeout(this._hideTimeout),this.el&&this._zr.remove(this.el)},getOuterSize:function(){var t=this.getSize();return{width:t[0],height:t[1]}}},P9=r}(),o=EX(),a=MX(),s=vX(),l=f6(),u=zX(),h=mX(),c=w6(),d=cK(),p=F6(),f=mY().getTooltipRenderMode,g=e.bind,v=e.each,m=a.parsePercent,y=new s.Rect({shape:{x:-1,y:-1,width:2,height:2}}),x=t.extendComponentView({type:"tooltip",init:function(t,e){if(!n.node){var o,a=t.getComponent("tooltip"),s=a.get("renderMode");this._renderMode=f(s),"html"===this._renderMode?(o=new i(e.getDom(),e,{appendToBody:a.get("appendToBody",!0)}),this._newLine="<br/>"):(o=new r(e),this._newLine="\n"),this._tooltipContent=o}},render:function(t,e,i){if(!n.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var r=this._tooltipContent;r.update(t),r.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel.get("triggerOn");c.register("itemTooltip",this._api,g((function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY})}))}},manuallyShowTip:function(t,e,i,r){if(r.from!==this.uid&&!n.node){var o=b(r,i);this._ticket="";var a=r.dataByCoordSys;if(r.tooltip&&null!=r.x&&null!=r.y){var s=y;s.position=[r.x,r.y],s.update(),s.tooltip=r.tooltip,this._tryShow({offsetX:r.x,offsetY:r.y,target:s},o)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:r.dataByCoordSys,tooltipOption:r.tooltipOption},o);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,r))return;var u=l(r,e),h=u.point[0],c=u.point[1];null!=h&&null!=c&&this._tryShow({offsetX:h,offsetY:c,position:r.position,target:u.el},o)}else null!=r.x&&null!=r.y&&(i.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:i.getZr().findHover(r.x,r.y).target},o))}},manuallyHideTip:function(t,e,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,i.from!==this.uid&&this._hide(b(i,n))},_manuallyAxisShowTip:function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s)if("axis"===(t=_([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model,t])).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},_tryShow:function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;i&&i.length?this._showAxisTooltip(i,t):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,n,e)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,n,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,n){var i=t.get("showDelay");n=e.bind(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},_showAxisTooltip:function(t,n){var i=this._ecModel,r=this._tooltipModel,a=[n.offsetX,n.offsetY],s=[],l=[],u=_([n.tooltipOption,r]),h=this._renderMode,c=this._newLine,f={};v(t,(function(t){v(t.dataByAxis,(function(t){var n=i.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value,a=[];if(n&&null!=r){var u=p.getValueLabel(r,n.axis,i,t.seriesDataIndices,t.valueLabelOpt);e.each(t.seriesDataIndices,(function(o){var s=i.getSeriesByIndex(o.seriesIndex),c=o.dataIndexInside,p=s&&s.getDataParams(c);if(p.axisDim=t.axisDim,p.axisIndex=t.axisIndex,p.axisType=t.axisType,p.axisId=t.axisId,p.axisValue=d.getAxisRawValue(n.axis,r),p.axisValueLabel=u,p){l.push(p);var g,v=s.formatTooltip(c,!0,null,h);if(e.isObject(v)){g=v.html;var m=v.markers;e.merge(f,m)}else g=v;a.push(g)}}));var g=u;"html"!==h?s.push(a.join(c)):s.push((g?o.encodeHTML(g)+c:"")+a.join(c))}}))}),this),s.reverse(),s=s.join(this._newLine+this._newLine);var g=n.position;this._showOrMove(u,(function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(u,g,a[0],a[1],this._tooltipContent,l):this._showTooltipContent(u,s,l,Math.random(),a[0],a[1],g,void 0,f)}))},_showSeriesItemTooltip:function(t,n,i){var r=this._ecModel,o=n.seriesIndex,a=r.getSeriesByIndex(o),s=n.dataModel||a,l=n.dataIndex,u=n.dataType,h=s.getData(u),c=_([h.getItemModel(l),s,a&&(a.coordinateSystem||{}).model,this._tooltipModel]),d=c.get("trigger");if(null==d||"item"===d){var p,f,g=s.getDataParams(l,u),v=s.formatTooltip(l,!1,u,this._renderMode);e.isObject(v)?(p=v.html,f=v.markers):(p=v,f=null);var m="item_"+s.name+"_"+l;this._showOrMove(c,(function(){this._showTooltipContent(c,p,g,m,t.offsetX,t.offsetY,t.position,t.target,f)})),i({type:"showTip",dataIndexInside:l,dataIndex:h.getRawIndex(l),seriesIndex:o,from:this.uid})}},_showComponentItemTooltip:function(t,e,n){var i=e.tooltip;if("string"==typeof i){i={content:i,formatter:i}}var r=new h(i,this._tooltipModel,this._ecModel),o=r.get("content"),a=Math.random();this._showOrMove(r,(function(){this._showTooltipContent(r,o,r.get("formatterParams")||{},a,t.offsetX,t.offsetY,t.position,e)})),n({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,n,i,r,a,s,l,u){if(this._ticket="",t.get("showContent")&&t.get("show")){var h=this._tooltipContent,c=t.get("formatter");s=s||t.get("position");var d=e;if(c&&"string"==typeof c)d=o.formatTpl(c,n,!0);else if("function"==typeof c){var p=g((function(e,i){e===this._ticket&&(h.setContent(i,u,t),this._updatePosition(t,s,r,a,h,n,l))}),this);this._ticket=i,d=c(n,i,p)}h.setContent(d,u,t),h.show(t),this._updatePosition(t,s,r,a,h,n,l)}},_updatePosition:function(t,n,i,r,o,a,s){var l=this._api.getWidth(),h=this._api.getHeight();n=n||t.get("position");var c=o.getSize(),d=t.get("align"),p=t.get("verticalAlign"),f=s&&s.getBoundingRect().clone();if(s&&f.applyTransform(s.transform),"function"==typeof n&&(n=n([i,r],a,o.el,f,{viewSize:[l,h],contentSize:c.slice()})),e.isArray(n))i=m(n[0],l),r=m(n[1],h);else if(e.isObject(n)){n.width=c[0],n.height=c[1];var g=u.getLayoutRect(n,{width:l,height:h});i=g.x,r=g.y,d=null,p=null}else if("string"==typeof n&&s){var v=function(t,e,n){var i=n[0],r=n[1],o=5,a=0,s=0,l=e.width,u=e.height;switch(t){case"inside":a=e.x+l/2-i/2,s=e.y+u/2-r/2;break;case"top":a=e.x+l/2-i/2,s=e.y-r-o;break;case"bottom":a=e.x+l/2-i/2,s=e.y+u+o;break;case"left":a=e.x-i-o,s=e.y+u/2-r/2;break;case"right":a=e.x+l+o,s=e.y+u/2-r/2}return[a,s]}(n,f,c);i=v[0],r=v[1]}else{v=function(t,e,n,i,r,o,a){var s=n.getOuterSize(),l=s.width,u=s.height;null!=o&&(t+l+o>i?t-=l+o:t+=o);null!=a&&(e+u+a>r?e-=u+a:e+=a);return[t,e]}(i,r,o,l,h,d?null:20,p?null:20);i=v[0],r=v[1]}if(d&&(i-=w(d)?c[0]/2:"right"===d?c[0]:0),p&&(r-=w(p)?c[1]/2:"bottom"===p?c[1]:0),t.get("confine")){v=function(t,e,n,i,r){var o=n.getOuterSize(),a=o.width,s=o.height;return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(i,r,o,l,h);i=v[0],r=v[1]}o.moveTo(i,r)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,n=!!e&&e.length===t.length;return n&&v(e,(function(e,i){var r=e.dataByAxis||{},o=(t[i]||{}).dataByAxis||[];(n&=r.length===o.length)&&v(r,(function(t,e){var i=o[e]||{},r=t.seriesDataIndices||[],a=i.seriesDataIndices||[];(n&=t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&r.length===a.length)&&v(r,(function(t,e){var i=a[e];n&=t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex}))}))})),this._lastDataByCoordSys=t,!!n},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){n.node||(this._tooltipContent.dispose(),c.unregister("itemTooltip",e))}});function _(t){for(var e=t.pop();t.length;){var n=t.pop();n&&(h.isInstance(n)&&(n=n.get("tooltip",!0)),"string"==typeof n&&(n={formatter:n}),e=new h(n,e,e.ecModel))}return e}function b(t,n){return t.dispatchAction||e.bind(n.dispatchAction,n)}function w(t){return"center"===t||"middle"===t}return R9=x}function G9(){if(E9)return z9;E9=1;var t=NK();return W6(),function(){if(D9)return A9;D9=1;var t=NK().extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});A9=t}(),B9(),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){})),z9}var F9,H9,W9={};function U9(){if(H9)return F9;H9=1;var t=hW(),e=["rect","polygon","keep","clear"];return F9=function(n,i){var r=n&&n.brush;if(t.isArray(r)||(r=r?[r]:[]),r.length){var o=[];t.each(r,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(o=o.concat(e))}));var a=n&&n.toolbox;t.isArray(a)&&(a=a[0]),a||(a={feature:{}},n.toolbox=[a]);var s,l,u=a.feature||(a.feature={}),h=u.brush||(u.brush={}),c=h.type||(h.type=[]);c.push.apply(c,o),s=c,l={},t.each(s,(function(t){l[t]=1})),s.length=0,t.each(l,(function(t,e){s.push(e)})),i&&!c.length&&c.push.apply(c,e)}}}var Y9,Z9,X9,j9,q9,K9,$9,J9,Q9={},ttt={};function ett(){if(Y9)return ttt;Y9=1;var t=hW(),e=z1(),n=t.each;function i(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}return ttt.createVisualMappings=function(i,r,o){var a={};return n(r,(function(r){var s,l=a[r]=((s=function(){}).prototype.__hidden=s.prototype,new s);n(i[r],(function(n,i){if(e.isValidType(i)){var a={type:i,visual:n};o&&o(a,r),l[i]=new e(a),"opacity"===i&&((a=t.clone(a)).type="colorAlpha",l.__hidden.__alphaForOpacity=new e(a))}}))})),a},ttt.replaceVisualOption=function(e,n,r){var o;t.each(r,(function(t){n.hasOwnProperty(t)&&i(n[t])&&(o=!0)})),o&&t.each(r,(function(r){n.hasOwnProperty(r)&&i(n[r])?e[r]=t.clone(n[r]):delete e[r]}))},ttt.applyVisual=function(n,i,r,o,a,s){var l,u={};function h(t){return r.getItemVisual(l,t)}function c(t,e){r.setItemVisual(l,t,e)}function d(t,e){l=null==s?t:e;var n=r.getRawDataItem(l);if(!n||!1!==n.visualMap)for(var d=o.call(a,t),p=i[d],f=u[d],g=0,v=f.length;g<v;g++){var m=f[g];p[m]&&p[m].applyVisual(t,h,c)}}t.each(n,(function(t){var n=e.prepareVisualTypes(i[t]);u[t]=n})),null==s?r.each(d):r.each([s],d)},ttt.incrementalApplyVisual=function(n,i,r,o){var a={};return t.each(n,(function(t){var n=e.prepareVisualTypes(i[t]);a[t]=n})),{progress:function(t,e){function n(t){return e.getItemVisual(l,t)}function s(t,n){e.setItemVisual(l,t,n)}var l;for(null!=o&&(o=e.getDimension(o));null!=(l=t.next());){var u=e.getRawDataItem(l);if(!u||!1!==u.visualMap)for(var h=null!=o?e.get(o,l,!0):l,c=r(h),d=i[c],p=a[c],f=0,g=p.length;f<g;f++){var v=p[f];d[v]&&d[v].applyVisual(h,n,s)}}}}},ttt}function ntt(){if(j9)return Q9;j9=1;var t=NK(),e=hW(),n=_U(),i=ett(),r=function(){if(X9)return Z9;X9=1;var t=SK(),e=_U(),n=vX().linePolygonIntersect,i={lineX:r(0),lineY:r(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(e,n,i){return e&&i.boundingRect.contain(e[0],e[1])&&t.contain(i.range,e[0],e[1])},rect:function(i,r,o){var a=o.range;if(!i||a.length<=1)return!1;var s=i.x,l=i.y,u=i.width,h=i.height,c=a[0];return!!(t.contain(a,s,l)||t.contain(a,s+u,l)||t.contain(a,s,l+h)||t.contain(a,s+u,l+h)||e.create(i).contain(c[0],c[1])||n(s,l,s+u,l,a)||n(s,l,s,l+h,a)||n(s+u,l,s+u,l+h,a)||n(s,l+h,s+u,l+h,a))||void 0}}};function r(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e){var r=i.range;return o(e[t],r)}},rect:function(i,r,a){if(i){var s=a.range,l=[i[e[t]],i[e[t]]+i[n[t]]];return l[1]<l[0]&&l.reverse(),o(l[0],s)||o(l[1],s)||o(s[0],l)||o(s[1],l)}}}}function o(t,e){return e[0]<=t&&t<=e[1]}return Z9=i}(),o=$j(),a=W7(),s=["inBrush","outOfBrush"],l="__ecBrushSelect",u="__ecInBrushSelectEvent",h=t.PRIORITY.VISUAL.BRUSH;function c(t){t.eachComponent({mainType:"brush"},(function(e){(e.brushTargetManager=new a(e.option,t)).setInputRanges(e.areas,t)}))}function d(t,e){if(!t.isDisposed()){var n=t.getZr();n[u]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[u]=!1}}function p(t,e,n,i){for(var r=0,o=e.length;r<o;r++){var a=e[r];if(t[a.brushType](i,n,a.selectors,a))return!0}}function f(t){var n=t.brushSelector;if(e.isString(n)){var i=[];return e.each(r,(function(t,e){i[e]=function(e,i,r,o){var a=i.getItemLayout(e);return t[n](a,r,o)}})),i}if(e.isFunction(n)){var o={};return e.each(r,(function(t,e){o[e]=n})),o}return n}t.registerLayout(h,(function(t,e,n){t.eachComponent({mainType:"brush"},(function(t){n&&"takeGlobalCursor"===n.type&&t.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),c(t)})),t.registerVisual(h,(function(t,n,a){var h,c,v=[];t.eachComponent({mainType:"brush"},(function(n,o){var a={brushId:n.id,brushIndex:o,brushName:n.name,areas:e.clone(n.areas),selected:[]};v.push(a);var l=n.option,u=l.brushLink,d=[],m=[],y=[],x=0;o||(h=l.throttleType,c=l.throttleDelay);var _=e.map(n.areas,(function(t){return function(t){var n=t.selectors={};return e.each(r[t.brushType],(function(e,i){n[i]=function(i){return e(i,n,t)}})),t}(e.defaults({boundingRect:g[t.brushType](t)},t))})),b=i.createVisualMappings(n.option,s,(function(t){t.mappingMethod="fixed"}));function w(t){return"all"===u||d[t]}function S(t){return!!t.length}e.isArray(u)&&e.each(u,(function(t){d[t]=1})),t.eachSeries((function(i,r){var o=y[r]=[];"parallel"===i.subType?function(t,e){var n=t.coordinateSystem;x|=n.hasAxisBrushed(),w(e)&&n.eachActiveState(t.getData(),(function(t,e){"active"===t&&(m[e]=1)}))}(i,r):function(i,r,o){var a=f(i);if(!a||function(t,n){var i=t.option.seriesIndex;return null!=i&&"all"!==i&&(e.isArray(i)?e.indexOf(i,n)<0:n!==i)}(n,r))return;if(e.each(_,(function(e){a[e.brushType]&&n.brushTargetManager.controlSeries(e,i,t)&&o.push(e),x|=S(o)})),w(r)&&S(o)){var s=i.getData();s.each((function(t){p(a,o,s,t)&&(m[t]=1)}))}}(i,r,o)})),t.eachSeries((function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};a.selected.push(n);var r=f(t),o=y[e],l=t.getData(),u=w(e)?function(t){return m[t]?(n.dataIndex.push(l.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(t){return p(r,o,l,t)?(n.dataIndex.push(l.getRawIndex(t)),"inBrush"):"outOfBrush"};(w(e)?x:S(o))&&i.applyVisual(s,b,l,u)}))})),function(t,e,n,i,r){if(!r)return;var a=t.getZr();if(a[u])return;a[l]||(a[l]=d);var s=o.createOrUpdate(a,l,n,e);s(t,i)}(n,h,c,v,a)}));var g={lineX:e.noop,lineY:e.noop,rect:function(t){return v(t.range)},polygon:function(t){for(var e,n=t.range,i=0,r=n.length;i<r;i++){e=e||[[1/0,-1/0],[1/0,-1/0]];var o=n[i];o[0]<e[0][0]&&(e[0][0]=o[0]),o[0]>e[0][1]&&(e[0][1]=o[0]),o[1]<e[1][0]&&(e[1][0]=o[1]),o[1]>e[1][1]&&(e[1][1]=o[1])}return e&&v(e)}};function v(t){return new n(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}return Q9.layoutCovers=c,Q9}var itt,rtt,ott,att,stt={};function ltt(){if(att)return W9;att=1;var t=NK(),e=U9();return ntt(),function(){if(K9)return q9;K9=1,tW().__DEV__;var t=NK(),e=hW(),n=ett(),i=mX(),r=["#ddd"],o=t.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,e){var i=this.option;!e&&n.replaceVisualOption(i,t,["inBrush","outOfBrush"]);var o=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:r},o.hasOwnProperty("liftZ")||(o.liftZ=5)},setAreas:function(t){t&&(this.areas=e.map(t,(function(t){return a(this.option,t)}),this))},setBrushOption:function(t){this.brushOption=a(this.option,t),this.brushType=this.brushOption.brushType}});function a(t,n){return e.merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new i(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},n,!0)}q9=o}(),function(){if(J9)return $9;J9=1;var t=NK(),e=hW(),n=z5(),i=ntt().layoutCovers,r=t.extendComponentView({type:"brush",init:function(t,i){this.ecModel=t,this.api=i,this.model,(this._brushController=new n(i.getZr())).on("brush",e.bind(this._onBrush,this)).mount()},render:function(t){return this.model=t,o.apply(this,arguments)},updateTransform:function(t,e){return i(e),o.apply(this,arguments)},updateView:o,dispose:function(){this._brushController.dispose()},_onBrush:function(t,n){var i=this.model.id;this.model.brushTargetManager.setOutputRanges(t,this.ecModel),(!n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:e.clone(t),$from:i}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:i,areas:e.clone(t),$from:i})}});function o(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())}$9=r}(),function(){if(itt)return stt;itt=1;var t=NK();t.registerAction({type:"brush",event:"brush"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},(function(){})),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},(function(){}))}(),function(){if(ott)return rtt;ott=1;var t=hW(),e=C7(),n=Jj().toolbox.brush;function i(t,e,n){this.model=t,this.ecModel=e,this.api=n,this._brushType,this._brushMode}i.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.clone(n.title)};var r=i.prototype;r.render=r.updateView=function(e,n,i){var r,o,a;n.eachComponent({mainType:"brush"},(function(t){r=t.brushType,o=t.brushOption.brushMode||"single",a|=t.areas.length})),this._brushType=r,this._brushMode=o,t.each(e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===o:"clear"===t?a:t===r)?"emphasis":"normal")}))},r.getIcons=function(){var e=this.model,n=e.get("icon",!0),i={};return t.each(e.get("type",!0),(function(t){n[t]&&(i[t]=n[t])})),i},r.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},e.register("brush",i),rtt=i}(),t.registerPreprocessor(e),W9}var utt,htt={};var ctt,dtt,ptt={};function ftt(){if(dtt)return ctt;dtt=1;var t=hW();function e(e){var i=e.itemStyle||(e.itemStyle={}),r=i.emphasis||(i.emphasis={}),o=e.label||e.label||{},a=o.normal||(o.normal={}),s={normal:1,emphasis:1};t.each(o,(function(t,e){s[e]||n(a,e)||(a[e]=t)})),r.label&&!n(o,"emphasis")&&(o.emphasis=r.label,delete r.label)}function n(t,e){return t.hasOwnProperty(e)}return ctt=function(i){var r=i&&i.timeline;t.isArray(r)||(r=r?[r]:[]),t.each(r,(function(i){i&&function(i){var r=i.type,o={number:"value",time:"time"};o[r]&&(i.axisType=o[r],delete i.type);if(e(i),n(i,"controlPosition")){var a=i.controlStyle||(i.controlStyle={});n(a,"position")||(a.position=i.controlPosition),"none"!==a.position||n(a,"show")||(a.show=!1,delete a.position),delete i.controlPosition}t.each(i.data||[],(function(i){t.isObject(i)&&!t.isArray(i)&&(!n(i,"value")&&n(i,"name")&&(i.value=i.name),e(i))}))}(i)}))}}var gtt;var vtt,mtt,ytt,xtt,_tt,btt,wtt,Stt,Mtt,Itt,Ttt,Ctt,Att={};function Dtt(){if(_tt)return xtt;_tt=1;var t=hW(),e=function(){if(ytt)return mtt;ytt=1;var t=hW(),e=VX(),n=Aq(),i=mY(),r=e.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(t,e,n){this._data,this._names,this.mergeDefaultAndTheme(t,n),this._initData()},mergeOption:function(t){r.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var e=this.option,r=e.data||[],o=e.axisType,a=this._names=[];if("category"===o){var s=[];t.each(r,(function(e,n){var r,o=i.getDataItemValue(e);t.isObject(e)?(r=t.clone(e)).value=n:r=n,s.push(r),t.isString(o)||null!=o&&!isNaN(o)||(o=""),a.push(o+"")})),r=s}var l={category:"ordinal",time:"time"}[o]||"number";(this._data=new n([{name:"value",type:l}],this)).initData(r,a)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}});return mtt=r}(),n=xj(),i=e.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});return t.mixin(i,n),xtt=i}function Ltt(){if(Ttt)return Itt;Ttt=1;var t=hW(),e=_U(),n=GW(),i=vX(),r=zX(),o=function(){if(wtt)return btt;wtt=1;var t=Pj().extend({type:"timeline"});return btt=t}(),a=function(){if(Mtt)return Stt;Mtt=1;var t=hW(),e=OK(),n=function(t,n,i,r){e.call(this,t,n,i),this.type=r||"value",this.model=null};return n.prototype={constructor:n,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},t.inherits(n,e),Stt=n}(),s=vK().createSymbol,l=cK(),u=MX(),h=EX().encodeHTML,c=t.bind,d=t.each,p=Math.PI,f=o.extend({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,n,i){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var r=this._layout(t,n),o=this._createGroup("mainGroup"),a=this._createGroup("labelGroup"),s=this._axis=this._createAxis(r,t);t.formatTooltip=function(t){return h(s.scale.getLabel(t))},d(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](r,o,s,t)}),this),this._renderAxisLabel(r,a,s,t),this._position(r,t)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(t,e){var n=t.get("label.position"),i=t.get("orient"),o=function(t,e){return r.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e);null==n||"auto"===n?n="horizontal"===i?o.y+o.height/2<e.getHeight()/2?"-":"+":o.x+o.width/2<e.getWidth()/2?"+":"-":isNaN(n)&&(n={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][n]);var a,s,l,u,h={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:p/2},f="vertical"===i?o.height:o.width,g=t.getModel("controlStyle"),v=g.get("show",!0),m=v?g.get("itemSize"):0,y=v?g.get("itemGap"):0,x=m+y,_=t.get("label.rotate")||0;_=_*p/180;var b=g.get("position",!0),w=v&&g.get("showPlayBtn",!0),S=v&&g.get("showPrevBtn",!0),M=v&&g.get("showNextBtn",!0),I=0,T=f;return"left"===b||"bottom"===b?(w&&(a=[0,0],I+=x),S&&(s=[I,0],I+=x),M&&(l=[T-m,0],T-=x)):(w&&(a=[T-m,0],T-=x),S&&(s=[0,0],I+=x),M&&(l=[T-m,0],T-=x)),u=[I,T],t.get("inverse")&&u.reverse(),{viewRect:o,mainLength:f,orient:i,rotation:d[i],labelRotation:_,labelPosOpt:n,labelAlign:t.get("label.align")||h[i],labelBaseline:t.get("label.verticalAlign")||t.get("label.baseline")||c[i],playPosition:a,prevBtnPosition:s,nextBtnPosition:l,axisExtent:u,controlSize:m,controlGap:y}},_position:function(t,e){var i=this._mainGroup,r=this._labelGroup,o=t.viewRect;if("vertical"===t.orient){var a=n.create(),s=o.x,l=o.y+o.height;n.translate(a,a,[-s,-l]),n.rotate(a,a,-p/2),n.translate(a,a,[s,l]),(o=o.clone()).applyTransform(a)}var u=y(o),h=y(i.getBoundingRect()),c=y(r.getBoundingRect()),d=i.position,f=r.position;f[0]=d[0]=u[0][0];var g,v=t.labelPosOpt;isNaN(v)?(x(d,h,u,1,g="+"===v?0:1),x(f,c,u,1,1-g)):(x(d,h,u,1,g=v>=0?0:1),f[1]=d[1]+v);function m(t){var e=t.position;t.origin=[u[0][0]-e[0],u[1][0]-e[1]]}function y(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function x(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}i.attr("position",d),r.attr("position",f),i.rotation=r.rotation=t.rotation,m(i),m(r)},_createAxis:function(t,e){var n=e.getData(),i=e.get("axisType"),r=l.createScaleByModel(e,i);r.getTicks=function(){return n.mapArray(["value"],(function(t){return t}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.niceTicks();var s=new a("value",r,t.axisExtent,i);return s.model=e,s},_createGroup:function(t){var e=this["_"+t]=new i.Group;return this.group.add(e),e},_renderAxisLine:function(e,n,r,o){var a=r.getExtent();o.get("lineStyle.show")&&n.add(new i.Line({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:t.extend({lineCap:"round"},o.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,n,r){var o=r.getData(),a=n.scale.getTicks();d(a,(function(t){var a=n.dataToCoord(t),s=o.getItemModel(t),l=s.getModel("itemStyle"),u=s.getModel("emphasis.itemStyle"),h={position:[a,0],onclick:c(this._changeTimeline,this,t)},d=g(s,l,e,h);i.setHoverStyle(d,u.getItemStyle()),s.get("tooltip")?(d.dataIndex=t,d.dataModel=r):d.dataIndex=d.dataModel=null}),this)},_renderAxisLabel:function(t,e,n,r){if(n.getLabelModel().get("show")){var o=r.getData(),a=n.getViewLabels();d(a,(function(r){var a=r.tickValue,s=o.getItemModel(a),l=s.getModel("label"),u=s.getModel("emphasis.label"),h=n.dataToCoord(r.tickValue),d=new i.Text({position:[h,0],rotation:t.labelRotation-t.rotation,onclick:c(this._changeTimeline,this,a),silent:!1});i.setTextStyle(d.style,l,{text:r.formattedLabel,textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline}),e.add(d),i.setHoverStyle(d,i.setTextStyle({},u))}),this)}},_renderControl:function(t,n,r,o){var a=t.controlSize,s=t.rotation,l=o.getModel("controlStyle").getItemStyle(),u=o.getModel("emphasis.controlStyle").getItemStyle(),h=[0,-a/2,a,a],d=o.getPlayState(),p=o.get("inverse",!0);function f(t,r,c,d){if(t){var p=function(t,n,r,o){var a=o.style,s=i.createIcon(t.get(n),o||{},new e(r[0],r[1],r[2],r[3]));a&&s.setStyle(a);return s}(o,r,h,{position:t,origin:[a/2,0],rotation:d?-s:0,rectHover:!0,style:l,onclick:c});n.add(p),i.setHoverStyle(p,u)}}f(t.nextBtnPosition,"controlStyle.nextIcon",c(this._changeTimeline,this,p?"-":"+")),f(t.prevBtnPosition,"controlStyle.prevIcon",c(this._changeTimeline,this,p?"+":"-")),f(t.playPosition,"controlStyle."+(d?"stopIcon":"playIcon"),c(this._handlePlayClick,this,!d),!0)},_renderCurrentPointer:function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=c(s._handlePointerDrag,s),t.ondragend=c(s._handlePointerDragend,s),v(t,o,n,i,!0)},onUpdate:function(t){v(t,o,n,i)}};this._currentPointer=g(a,a,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var n=this._toAxisCoord(t)[0],i=this._axis,r=u.asc(i.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.position[0]=n,this._currentPointer.dirty();var o=this._findNearestTick(n),a=this.model;(e||o!==a.getCurrentIndex()&&a.get("realtime"))&&this._changeTimeline(o)},_doPlayStop:function(){this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(c((function(){var t=this.model;this._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}),this),this.model.get("playInterval")))},_toAxisCoord:function(t){var e=this._mainGroup.getLocalTransform();return i.applyTransform(t,e,!0)},_findNearestTick:function(t){var e,n=this.model.getData(),i=1/0,r=this._axis;return n.each(["value"],(function(n,o){var a=r.dataToCoord(n),s=Math.abs(a-t);s<i&&(i=s,e=o)})),e},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})}});function g(e,n,i,r,o,a){var l=n.get("color");if(o)o.setColor(l),i.add(o),a&&a.onUpdate(o);else{var h=e.get("symbol");(o=s(h,-1,-1,2,2,l)).setStyle("strokeNoScale",!0),i.add(o),a&&a.onCreate(o)}var c=n.getItemStyle(["color","symbol","symbolSize"]);o.setStyle(c),r=t.merge({rectHover:!0,z2:100},r,!0);var d=e.get("symbolSize");(d=d instanceof Array?d.slice():[+d,+d])[0]/=2,d[1]/=2,r.scale=d;var p=e.get("symbolOffset");if(p){var f=r.position=r.position||[0,0];f[0]+=u.parsePercent(p[0],d[0]),f[1]+=u.parsePercent(p[1],d[1])}var g=e.get("symbolRotate");return r.rotation=(g||0)*Math.PI/180||0,o.attr(r),o.updateTransform(),o}function v(t,e,n,i,r){if(!t.dragging){var o=i.getModel("checkpointStyle"),a=n.dataToCoord(i.getData().get(["value"],e));r||!o.get("animation",!0)?t.attr({position:[a,0]}):(t.stopAnimation(!0),t.animateTo({position:[a,0]},o.get("animationDuration",!0),o.get("animationEasing",!0)))}}return Itt=f}function ktt(){if(Ctt)return ptt;Ctt=1;var t=NK(),e=ftt();return gtt||(gtt=1,VX().registerSubTypeDefaulter("timeline",(function(){return"slider"}))),function(){if(vtt)return Att;vtt=1;var t=NK(),e=hW();t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,n){var i=n.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.setPlayState(!1)),n.resetOption("timeline"),e.defaults({currentIndex:i.option.currentIndex},t)})),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)}))}(),Dtt(),Ltt(),t.registerPreprocessor(e),ptt}var Ptt,Ott,Rtt,Ntt,Ett={};function ztt(){if(Ott)return Ptt;Ott=1,tW().__DEV__;var t=NK(),e=hW(),n=sW(),i=mY(),r=EX(),o=xj(),a=r.addCommas,s=r.encodeHTML;function l(t){i.defaultEmphasis(t,"label",["show"])}var u=t.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},isAnimationEnabled:function(){if(n.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},mergeOption:function(t,e){this._mergeOption(t,e,!1,!1)},_mergeOption:function(t,n,i,r){var o=this.constructor,a=this.mainType+"Model";i||n.eachSeries((function(t){var i=t.get(this.mainType,!0),s=t[a];i&&i.data?(s?s._mergeOption(i,n,!0):(r&&l(i),e.each(i.data,(function(t){t instanceof Array?(l(t[0]),l(t[1])):l(t)})),s=new o(i,this,n),e.extend(s,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),s.__hostSeries=t),t[a]=s):t[a]=null}),this)},formatTooltip:function(t,n,i,r){var o=this.getData(),l=this.getRawValue(t),u=e.isArray(l)?e.map(l,a).join(", "):a(l),h=o.getName(t),c=s(this.name);return(null!=l||h)&&(c+="html"===r?"<br/>":"\n"),h&&(c+=s(h),null!=l&&(c+=" : ")),null!=l&&(c+=s(u)),c},getData:function(){return this._data},setData:function(t){this._data=t}});return e.mixin(u,o),Ptt=u}var Vtt,Btt,Gtt,Ftt,Htt,Wtt,Utt={};function Ytt(){if(Vtt)return Utt;Vtt=1;var t=hW(),e=MX(),n=zq().isDimensionStacked,i=t.indexOf;function r(t,i,r,o,a,s){var u=[],h=n(i,o)?i.getCalculationInfo("stackResultDimension"):o,c=l(i,h,t),d=i.indicesOfNearest(h,c)[0];u[a]=i.get(r,d),u[s]=i.get(h,d);var p=i.get(o,d),f=e.getPrecision(i.get(o,d));return(f=Math.min(f,20))>=0&&(u[s]=+u[s].toFixed(f)),[u,p]}var o=t.curry,a={min:o(r,"min"),max:o(r,"max"),average:o(r,"average")};function s(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(function(t,e){var n=t.getData(),i=n.dimensions;e=n.getDimension(e);for(var r=0;r<i.length;r++){var o=n.getDimensionInfo(i[r]);if(o.name===e)return o.coordDim}}(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function l(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,(function(t,e){isNaN(t)||(i+=t,r++)})),i/r}return"median"===n?t.getMedian(e):t.getDataExtent(e,!0)["max"===n?1:0]}return Utt.dataTransform=function(e,n){var r=e.getData(),o=e.coordinateSystem;if(n&&!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(n)&&!t.isArray(n.coord)&&o){var u=o.dimensions,h=s(n,r,o,e);if((n=t.clone(n)).type&&a[n.type]&&h.baseAxis&&h.valueAxis){var c=i(u,h.baseAxis.dim),d=i(u,h.valueAxis.dim),p=a[n.type](r,h.baseDataDim,h.valueDataDim,c,d);n.coord=p[0],n.value=p[1]}else{for(var f=[null!=n.xAxis?n.xAxis:n.radiusAxis,null!=n.yAxis?n.yAxis:n.angleAxis],g=0;g<2;g++)a[f[g]]&&(f[g]=l(r,r.mapDimension(u[g]),f[g]));n.coord=f}}return n},Utt.getAxisInfo=s,Utt.dataFilter=function(t,e){return!(t&&t.containData&&e.coord&&!function(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}(e))||t.containData(e.coord)},Utt.dimValueGetter=function(t,e,n,i){return i<2?t.coord&&t.coord[i]:t.value},Utt.numCalculate=l,Utt}function Ztt(){if(Gtt)return Btt;Gtt=1;var t=NK(),e=hW(),n=t.extendComponentView({type:"marker",init:function(){this.markerGroupMap=e.createHashMap()},render:function(t,e,n){var i=this.markerGroupMap;i.each((function(t){t.__keep=!1}));var r=this.type+"Model";e.eachSeries((function(t){var i=t[r];i&&this.renderSeries(t,i,e,n)}),this),i.each((function(t){!t.__keep&&this.group.remove(t.group)}),this)},renderSeries:function(){}});return Btt=n}function Xtt(){if(Htt)return Ftt;Htt=1;var t=hW(),e=XK(),n=MX(),i=Aq(),r=Ytt();function o(t,e,i){var r=e.coordinateSystem;t.each((function(o){var a,s=t.getItemModel(o),l=n.parsePercent(s.get("x"),i.getWidth()),u=n.parsePercent(s.get("y"),i.getHeight());if(isNaN(l)||isNaN(u)){if(e.getMarkerPosition)a=e.getMarkerPosition(t.getValues(t.dimensions,o));else if(r){var h=t.get(r.dimensions[0],o),c=t.get(r.dimensions[1],o);a=r.dataToPoint([h,c])}}else a=[l,u];isNaN(l)||(a[0]=l),isNaN(u)||(a[1]=u),t.setItemLayout(o,a)}))}var a=Ztt().extend({type:"markPoint",updateTransform:function(t,e,n){e.eachSeries((function(t){var e=t.markPointModel;e&&(o(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout(e))}),this)},renderSeries:function(n,a,s,l){var u=n.coordinateSystem,h=n.id,c=n.getData(),d=this.markerGroupMap,p=d.get(h)||d.set(h,new e),f=function(e,n,o){var a;a=e?t.map(e&&e.dimensions,(function(e){var i=n.getData().getDimensionInfo(n.getData().mapDimension(e))||{};return t.defaults({name:e},i)})):[{name:"value",type:"float"}];var s=new i(a,o),l=t.map(o.get("data"),t.curry(r.dataTransform,n));e&&(l=t.filter(l,t.curry(r.dataFilter,e)));return s.initData(l,null,e?r.dimValueGetter:function(t){return t.value}),s}(u,n,a);a.setData(f),o(a.getData(),n,l),f.each((function(e){var n=f.getItemModel(e),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=t.isFunction(i),l=t.isFunction(r),u=t.isFunction(o);if(s||l||u){var h=a.getRawValue(e),d=a.getDataParams(e);s&&(i=i(h,d)),l&&(r=r(h,d)),u&&(o=o(h,d))}f.setItemVisual(e,{symbol:i,symbolSize:r,symbolRotate:o,color:n.get("itemStyle.color")||c.getVisual("color")})})),p.updateData(f),this.group.add(p.group),f.eachItemGraphicEl((function(t){t.traverse((function(t){t.dataModel=a}))})),p.__keep=!0,p.group.silent=a.get("silent")||n.get("silent")}});return Ftt=a}function jtt(){if(Wtt)return Ett;Wtt=1;var t=NK();return function(){if(Ntt)return Rtt;Ntt=1;var t=ztt().extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});Rtt=t}(),Xtt(),t.registerPreprocessor((function(t){t.markPoint=t.markPoint||{}})),Ett}var qtt,Ktt,$tt,Jtt,Qtt,tet={};function eet(){if(Jtt)return $tt;Jtt=1;var t=hW(),e=Aq(),n=MX(),i=Ytt(),r=o2(),o=Ztt(),a=zq().getStackedDimension,s=function(e,n,r,o){var s=e.getData(),l=o.type;if(!t.isArray(o)&&("min"===l||"max"===l||"average"===l||"median"===l||null!=o.xAxis||null!=o.yAxis)){var u,h;if(null!=o.yAxis||null!=o.xAxis)u=n.getAxis(null!=o.yAxis?"y":"x"),h=t.retrieve(o.yAxis,o.xAxis);else{var c=i.getAxisInfo(o,s,n,e);u=c.valueAxis;var d=a(s,c.valueDataDim);h=i.numCalculate(s,d,l)}var p="x"===u.dim?0:1,f=1-p,g=t.clone(o),v={};g.type=null,g.coord=[],v.coord=[],g.coord[f]=-1/0,v.coord[f]=1/0;var m=r.get("precision");m>=0&&"number"==typeof h&&(h=+h.toFixed(Math.min(m,20))),g.coord[p]=v.coord[p]=h,o=[g,v,{type:l,valueIndex:o.valueIndex,value:h}]}return(o=[i.dataTransform(e,o[0]),i.dataTransform(e,o[1]),t.extend({},o[2])])[2].type=o[2].type||"",t.merge(o[2],o[0]),t.merge(o[2],o[1]),o};function l(t){return!isNaN(t)&&!isFinite(t)}function u(t,e,n,i){var r=1-t,o=i.dimensions[t];return l(e[r])&&l(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function h(t,e){if("cartesian2d"===t.type){var n=e[0].coord,r=e[1].coord;if(n&&r&&(u(1,n,r,t)||u(0,n,r,t)))return!0}return i.dataFilter(t,e[0])&&i.dataFilter(t,e[1])}function c(t,e,i,r,o){var a,s=r.coordinateSystem,u=t.getItemModel(e),h=n.parsePercent(u.get("x"),o.getWidth()),c=n.parsePercent(u.get("y"),o.getHeight());if(isNaN(h)||isNaN(c)){if(r.getMarkerPosition)a=r.getMarkerPosition(t.getValues(t.dimensions,e));else{var d=s.dimensions,p=t.get(d[0],e),f=t.get(d[1],e);a=s.dataToPoint([p,f])}if("cartesian2d"===s.type){var g=s.getAxis("x"),v=s.getAxis("y");d=s.dimensions;l(t.get(d[0],e))?a[0]=g.toGlobalCoord(g.getExtent()[i?0:1]):l(t.get(d[1],e))&&(a[1]=v.toGlobalCoord(v.getExtent()[i?0:1]))}isNaN(h)||(a[0]=h),isNaN(c)||(a[1]=c)}else a=[h,c];t.setItemLayout(e,a)}var d=o.extend({type:"markLine",updateTransform:function(t,e,n){e.eachSeries((function(t){var e=t.markLineModel;if(e){var i=e.getData(),r=e.__from,o=e.__to;r.each((function(e){c(r,e,!0,t,n),c(o,e,!1,t,n)})),i.each((function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},renderSeries:function(n,o,a,l){var u=n.coordinateSystem,d=n.id,p=n.getData(),f=this.markerGroupMap,g=f.get(d)||f.set(d,new r);this.group.add(g.group);var v=function(n,r,o){var a;a=n?t.map(n&&n.dimensions,(function(e){var n=r.getData().getDimensionInfo(r.getData().mapDimension(e))||{};return t.defaults({name:e},n)})):[{name:"value",type:"float"}];var l=new e(a,o),u=new e(a,o),c=new e([],o),d=t.map(o.get("data"),t.curry(s,r,n,o));n&&(d=t.filter(d,t.curry(h,n)));var p=n?i.dimValueGetter:function(t){return t.value};return l.initData(t.map(d,(function(t){return t[0]})),null,p),u.initData(t.map(d,(function(t){return t[1]})),null,p),c.initData(t.map(d,(function(t){return t[2]}))),c.hasItemOption=!0,{from:l,to:u,line:c}}(u,n,o),m=v.from,y=v.to,x=v.line;o.__from=m,o.__to=y,o.setData(x);var _=o.get("symbol"),b=o.get("symbolSize");function w(t,e,i){var r=t.getItemModel(e);c(t,e,i,n,l),t.setItemVisual(e,{symbolRotate:r.get("symbolRotate"),symbolSize:r.get("symbolSize")||b[i?0:1],symbol:r.get("symbol",!0)||_[i?0:1],color:r.get("itemStyle.color")||p.getVisual("color")})}t.isArray(_)||(_=[_,_]),"number"==typeof b&&(b=[b,b]),v.from.each((function(t){w(m,t,!0),w(y,t,!1)})),x.each((function(t){var e=x.getItemModel(t).get("lineStyle.color");x.setItemVisual(t,{color:e||m.getItemVisual(t,"color")}),x.setItemLayout(t,[m.getItemLayout(t),y.getItemLayout(t)]),x.setItemVisual(t,{fromSymbolRotate:m.getItemVisual(t,"symbolRotate"),fromSymbolSize:m.getItemVisual(t,"symbolSize"),fromSymbol:m.getItemVisual(t,"symbol"),toSymbolRotate:y.getItemVisual(t,"symbolRotate"),toSymbolSize:y.getItemVisual(t,"symbolSize"),toSymbol:y.getItemVisual(t,"symbol")})})),g.updateData(x),v.line.eachItemGraphicEl((function(t,e){t.traverse((function(t){t.dataModel=o}))})),g.__keep=!0,g.group.silent=o.get("silent")||n.get("silent")}});return $tt=d}function net(){if(Qtt)return tet;Qtt=1;var t=NK();return function(){if(Ktt)return qtt;Ktt=1;var t=ztt().extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});qtt=t}(),eet(),t.registerPreprocessor((function(t){t.markLine=t.markLine||{}})),tet}var iet,ret,oet={};var aet,set,uet={};function het(){if(aet)return uet;aet=1;var t=hW(),e=KW(),n=Aq(),i=MX(),r=vX(),o=Ytt(),a=Ztt(),s=function(e,n,i,r){var a=o.dataTransform(e,r[0]),s=o.dataTransform(e,r[1]),l=t.retrieve,u=a.coord,h=s.coord;u[0]=l(u[0],-1/0),u[1]=l(u[1],-1/0),h[0]=l(h[0],1/0),h[1]=l(h[1],1/0);var c=t.mergeAll([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c};function l(t){return!isNaN(t)&&!isFinite(t)}function u(t,e,n,i){var r=1-t;return l(e[r])&&l(n[r])}function h(t,e){var n=e.coord[0],i=e.coord[1];return!("cartesian2d"!==t.type||!n||!i||!u(1,n,i)&&!u(0,n,i))||(o.dataFilter(t,{coord:n,x:e.x0,y:e.y0})||o.dataFilter(t,{coord:i,x:e.x1,y:e.y1}))}function c(t,e,n,r,o){var a,s=r.coordinateSystem,u=t.getItemModel(e),h=i.parsePercent(u.get(n[0]),o.getWidth()),c=i.parsePercent(u.get(n[1]),o.getHeight());if(isNaN(h)||isNaN(c)){if(r.getMarkerPosition)a=r.getMarkerPosition(t.getValues(n,e));else{var d=[g=t.get(n[0],e),v=t.get(n[1],e)];s.clampData&&s.clampData(d,d),a=s.dataToPoint(d,!0)}if("cartesian2d"===s.type){var p=s.getAxis("x"),f=s.getAxis("y"),g=t.get(n[0],e),v=t.get(n[1],e);l(g)?a[0]=p.toGlobalCoord(p.getExtent()["x0"===n[0]?0:1]):l(v)&&(a[1]=f.toGlobalCoord(f.getExtent()["y0"===n[1]?0:1]))}isNaN(h)||(a[0]=h),isNaN(c)||(a[1]=c)}else a=[h,c];return a}var d=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];return a.extend({type:"markArea",updateTransform:function(e,n,i){n.eachSeries((function(e){var n=e.markAreaModel;if(n){var r=n.getData();r.each((function(n){var o=t.map(d,(function(t){return c(r,n,t,e,i)}));r.setItemLayout(n,o),r.getItemGraphicEl(n).setShape("points",o)}))}}),this)},renderSeries:function(i,o,a,u){var p=i.coordinateSystem,f=i.id,g=i.getData(),v=this.markerGroupMap,m=v.get(f)||v.set(f,{group:new r.Group});this.group.add(m.group),m.__keep=!0;var y=function(e,i,r){var o,a,l=["x0","y0","x1","y1"];e?(o=t.map(e&&e.dimensions,(function(e){var n=i.getData(),r=n.getDimensionInfo(n.mapDimension(e))||{};return t.defaults({name:e},r)})),a=new n(t.map(l,(function(t,e){return{name:t,type:o[e%2].type}})),r)):a=new n(o=[{name:"value",type:"float"}],r);var u=t.map(r.get("data"),t.curry(s,i,e,r));e&&(u=t.filter(u,t.curry(h,e)));var c=e?function(t,e,n,i){return t.coord[Math.floor(i/2)][i%2]}:function(t){return t.value};return a.initData(u,null,c),a.hasItemOption=!0,a}(p,i,o);o.setData(y),y.each((function(e){var n=t.map(d,(function(t){return c(y,e,t,i,u)})),r=!0;t.each(d,(function(t){if(r){var n=y.get(t[0],e),i=y.get(t[1],e);(l(n)||p.getAxis("x").containData(n))&&(l(i)||p.getAxis("y").containData(i))&&(r=!1)}})),y.setItemLayout(e,{points:n,allClipped:r}),y.setItemVisual(e,{color:g.getVisual("color")})})),y.diff(m.__data).add((function(t){var e=y.getItemLayout(t);if(!e.allClipped){var n=new r.Polygon({shape:{points:e.points}});y.setItemGraphicEl(t,n),m.group.add(n)}})).update((function(t,e){var n=m.__data.getItemGraphicEl(e),i=y.getItemLayout(t);i.allClipped?n&&m.group.remove(n):(n?r.updateProps(n,{shape:{points:i.points}},o,t):n=new r.Polygon({shape:{points:i.points}}),y.setItemGraphicEl(t,n),m.group.add(n))})).remove((function(t){var e=m.__data.getItemGraphicEl(t);m.group.remove(e)})).execute(),y.eachItemGraphicEl((function(n,i){var a=y.getItemModel(i),s=a.getModel("label"),l=a.getModel("emphasis.label"),u=y.getItemVisual(i,"color");n.useStyle(t.defaults(a.getModel("itemStyle").getItemStyle(),{fill:e.modifyAlpha(u,.4),stroke:u})),n.hoverStyle=a.getModel("emphasis.itemStyle").getItemStyle(),r.setLabelStyle(n.style,n.hoverStyle,s,l,{labelFetcher:o,labelDataIndex:i,defaultText:y.getName(i)||"",isRectText:!0,autoColor:u}),r.setHoverStyle(n,{}),n.dataModel=o})),m.__data=y,m.group.silent=o.get("silent")||i.get("silent")}}),uet}function cet(){if(set)return oet;set=1;var t=NK();return function(){if(ret)return iet;ret=1;var t=ztt().extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});iet=t}(),het(),t.registerPreprocessor((function(t){t.markArea=t.markArea||{}})),oet}var det,pet,fet={},get={};function vet(){if(pet)return det;pet=1;var t=NK(),e=hW(),n=mX(),i=mY().isNameSpecified,r=Jj().legend.selector,o={all:{type:"all",title:e.clone(r.all)},inverse:{type:"inverse",title:e.clone(r.inverse)}},a=t.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},mergeOption:function(t){a.superCall(this,"mergeOption",t),this._updateSelector(t)},_updateSelector:function(t){var n=t.selector;!0===n&&(n=t.selector=["all","inverse"]),e.isArray(n)&&e.each(n,(function(t,i){e.isString(t)&&(t={type:t}),n[i]=e.merge(t,o[t.type])}))},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}!e&&this.select(t[0].get("name"))}},_updateData:function(t){var r=[],o=[];t.eachRawSeries((function(e){var n,a=e.name;if(o.push(a),e.legendVisualProvider){var s=e.legendVisualProvider.getAllNames();t.isSeriesFiltered(e)||(o=o.concat(s)),s.length?r=r.concat(s):n=!0}else n=!0;n&&i(e)&&r.push(e.name)})),this._availableNames=o;var a=this.get("data")||r,s=e.map(a,(function(t){return"string"!=typeof t&&"number"!=typeof t||(t={name:t}),new n(t,this,this.ecModel)}),this);this._data=s},getData:function(){return this._data},select:function(t){var n=this.option.selected;if("single"===this.get("selectedMode")){var i=this._data;e.each(i,(function(t){n[t.get("name")]=!1}))}n[t]=!0},unSelect:function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},toggleSelected:function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},allSelect:function(){var t=this._data,n=this.option.selected;e.each(t,(function(t){n[t.get("name",!0)]=!0}))},inverseSelect:function(){var t=this._data,n=this.option.selected;e.each(t,(function(t){var e=t.get("name",!0);n.hasOwnProperty(e)||(n[e]=!0),n[e]=!n[e]}))},isSelected:function(t){var n=this.option.selected;return!(n.hasOwnProperty(t)&&!n[t])&&e.indexOf(this._availableNames,t)>=0},getOrient:function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}}});return det=a}var met,yet,xet,_et,bet,wet,Set,Met,Iet,Tet,Cet={};function Aet(){if(xet)return yet;xet=1,tW().__DEV__;var t=NK(),e=hW(),n=vK().createSymbol,i=vX(),r=G7().makeBackground,o=zX(),a=e.curry,s=e.each,l=i.Group,u=t.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new l),this._backgroundEl,this.group.add(this._selectorGroup=new l),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(t,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var s=t.get("align"),l=t.get("orient");s&&"auto"!==s||(s="right"===t.get("left")&&"vertical"===l?"right":"left");var u=t.get("selector",!0),h=t.get("selectorPosition",!0);!u||h&&"auto"!==h||(h="horizontal"===l?"end":"start"),this.renderInner(s,t,n,i,u,l,h);var c=t.getBoxLayoutParams(),d={width:i.getWidth(),height:i.getHeight()},p=t.get("padding"),f=o.getLayoutRect(c,d,p),g=this.layoutInner(t,s,f,a,u,h),v=o.getLayoutRect(e.defaults({width:g.width,height:g.height},c),d,p);this.group.attr("position",[v.x-g.x,v.y-g.y]),this.group.add(this._backgroundEl=r(g,t))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(t,n,i,r,o,u,h){var f=this.getContentGroup(),g=e.createHashMap(),v=n.get("selectedMode"),m=[];i.eachRawSeries((function(t){!t.get("legendHoverLink")&&m.push(t.id)})),s(n.getData(),(function(e,o){var s=e.get("name");if(this.newlineDisabled||""!==s&&"\n"!==s){var u=i.getSeriesByName(s)[0];if(!g.get(s))if(u){var h=u.getData(),y=h.getVisual("color"),x=h.getVisual("borderColor");"function"==typeof y&&(y=y(u.getDataParams(0))),"function"==typeof x&&(x=x(u.getDataParams(0)));var _=h.getVisual("legendSymbol")||"roundRect",b=h.getVisual("symbol");this._createItem(s,o,e,n,_,b,t,y,x,v).on("click",a(c,s,null,r,m)).on("mouseover",a(d,u.name,null,r,m)).on("mouseout",a(p,u.name,null,r,m)),g.set(s,!0)}else i.eachRawSeries((function(i){if(!g.get(s)&&i.legendVisualProvider){var l=i.legendVisualProvider;if(!l.containName(s))return;var u=l.indexOfName(s),h=l.getItemVisual(u,"color"),f=l.getItemVisual(u,"borderColor");this._createItem(s,o,e,n,"roundRect",null,t,h,f,v).on("click",a(c,null,s,r,m)).on("mouseover",a(d,null,s,r,m)).on("mouseout",a(p,null,s,r,m)),g.set(s,!0)}}),this)}else f.add(new l({newline:!0}))}),this),o&&this._createSelector(o,n,r,u,h)},_createSelector:function(t,e,n,r,o){var a=this.getSelectorGroup();s(t,(function(t){!function(t){var r=t.type,o=new i.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});a.add(o);var s=e.getModel("selectorLabel"),l=e.getModel("emphasis.selectorLabel");i.setLabelStyle(o.style,o.hoverStyle={},s,l,{defaultText:t.title,isRectText:!1}),i.setHoverStyle(o)}(t)}))},_createItem:function(t,r,o,a,s,u,c,d,p,f){var g=a.get("itemWidth"),v=a.get("itemHeight"),m=a.get("inactiveColor"),y=a.get("inactiveBorderColor"),x=a.get("symbolKeepAspect"),_=a.getModel("itemStyle"),b=a.isSelected(t),w=new l,S=o.getModel("textStyle"),M=o.get("icon"),I=o.getModel("tooltip"),T=I.parentModel,C=n(s=M||s,0,0,g,v,b?d:m,null==x||x);if(w.add(h(C,s,_,p,y,b)),!M&&u&&(u!==s||"none"===u)){var A=.8*v;"none"===u&&(u="circle");var D=n(u,(g-A)/2,(v-A)/2,A,A,b?d:m,null==x||x);w.add(h(D,u,_,p,y,b))}var L="left"===c?g+5:-5,k=c,P=a.get("formatter"),O=t;"string"==typeof P&&P?O=P.replace("{name}",null!=t?t:""):"function"==typeof P&&(O=P(t)),w.add(new i.Text({style:i.setTextStyle({},S,{text:O,x:L,y:v/2,textFill:b?S.getTextColor():m,textAlign:k,textVerticalAlign:"middle"})}));var R=new i.Rect({shape:w.getBoundingRect(),invisible:!0,tooltip:I.get("show")?e.extend({content:t,formatter:T.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:a.componentIndex,name:t,$vars:["name"]}},I.option):null});return w.add(R),w.eachChild((function(t){t.silent=!0})),R.silent=!f,this.getContentGroup().add(w),i.setHoverStyle(w),w.__legendDataIndex=r,w},layoutInner:function(t,e,n,i,r,a){var s=this.getContentGroup(),l=this.getSelectorGroup();o.box(t.get("orient"),s,t.get("itemGap"),n.width,n.height);var u=s.getBoundingRect(),h=[-u.x,-u.y];if(r){o.box("horizontal",l,t.get("selectorItemGap",!0));var c=l.getBoundingRect(),d=[-c.x,-c.y],p=t.get("selectorButtonGap",!0),f=t.getOrient().index,g=0===f?"width":"height",v=0===f?"height":"width",m=0===f?"y":"x";"end"===a?d[f]+=u[g]+p:h[f]+=c[g]+p,d[1-f]+=u[v]/2-c[v]/2,l.attr("position",d),s.attr("position",h);var y={x:0,y:0};return y[g]=u[g]+p+c[g],y[v]=Math.max(u[v],c[v]),y[m]=Math.min(0,c[m]+d[1-f]),y}return s.attr("position",h),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function h(t,e,n,i,r,o){var a;return"line"!==e&&e.indexOf("empty")<0?(a=n.getItemStyle(),t.style.stroke=i,o||(a.stroke=r)):a=n.getItemStyle(["borderWidth","borderColor"]),t.setStyle(a)}function c(t,e,n,i){p(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),d(t,e,n,i)}function d(t,e,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function p(t,e,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}return yet=u}function Det(){if(wet)return get;wet=1;var t=NK();vet(),function(){if(met)return Cet;met=1;var t=NK(),e=hW();function n(t,n,i){var r,o={},a="toggleSelected"===t;return i.eachComponent("legend",(function(i){a&&null!=r?i[r?"select":"unSelect"](n.name):"allSelect"===t||"inverseSelect"===t?i[t]():(i[t](n.name),r=i.isSelected(n.name));var s=i.getData();e.each(s,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isSelected(e);o.hasOwnProperty(e)?o[e]=o[e]&&n:o[e]=n}}))})),"allSelect"===t||"inverseSelect"===t?{selected:o}:{name:n.name,selected:o}}t.registerAction("legendToggleSelect","legendselectchanged",e.curry(n,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",e.curry(n,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",e.curry(n,"inverseSelect")),t.registerAction("legendSelect","legendselected",e.curry(n,"select")),t.registerAction("legendUnSelect","legendunselected",e.curry(n,"unSelect"))}(),Aet();var e=(bet||(bet=1,_et=function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0}))}),_et),n=VX();return t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,e),n.registerSubTypeDefaulter("legend",(function(){return"plain"})),get}var Let,ket;function Pet(){return ket||(ket=1,Det(),function(){if(Met)return Set;Met=1;var t=vet(),e=zX(),n=e.mergeLayoutParam,i=e.getLayoutParams,r=t.extend({type:"legend.scroll",setScrollDataIndex:function(t){this.option.scrollDataIndex=t},defaultOption:{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},init:function(t,e,n,a){var s=i(t);r.superCall(this,"init",t,e,n,a),o(this,t,s)},mergeOption:function(t,e){r.superCall(this,"mergeOption",t,e),o(this,this.option,t)}});function o(t,e,i){var r=[1,1];r[t.getOrient().index]=0,n(e,i,{type:"box",ignoreSize:r})}Set=r}(),function(){if(Tet)return Iet;Tet=1;var t=hW(),e=vX(),n=zX(),i=Aet(),r=e.Group,o=["width","height"],a=["x","y"],s=i.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){s.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new r),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new r),this._showController},resetInner:function(){s.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(n,i,r,o,a,l,u){var h=this;s.superCall(this,"renderInner",n,i,r,o,a,l,u);var c=this._controllerGroup,d=i.get("pageIconSize",!0);t.isArray(d)||(d=[d,d]),f("pagePrev",0);var p=i.getModel("pageTextStyle");function f(n,r){var a=n+"DataIndex",s=e.createIcon(i.get("pageIcons",!0)[i.getOrient().name][r],{onclick:t.bind(h._pageGo,h,a,i,o)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});s.name=n,c.add(s)}c.add(new e.Text({name:"pageText",style:{textFill:p.getTextColor(),font:p.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),f("pageNext",1)},layoutInner:function(e,i,r,s,l,u){var h=this.getSelectorGroup(),c=e.getOrient().index,d=o[c],p=a[c],f=o[1-c],g=a[1-c];l&&n.box("horizontal",h,e.get("selectorItemGap",!0));var v=e.get("selectorButtonGap",!0),m=h.getBoundingRect(),y=[-m.x,-m.y],x=t.clone(r);l&&(x[d]=r[d]-m[d]-v);var _=this._layoutContentAndController(e,s,x,c,d,f,g);if(l){if("end"===u)y[c]+=_[d]+v;else{var b=m[d]+v;y[c]-=b,_[p]-=b}_[d]+=m[d]+v,y[1-c]+=_[g]+_[f]/2-m[f]/2,_[f]=Math.max(_[f],m[f]),_[g]=Math.min(_[g],m[g]+y[1-c]),h.attr("position",y)}return _},_layoutContentAndController:function(i,r,o,a,s,l,u){var h=this.getContentGroup(),c=this._containerGroup,d=this._controllerGroup;n.box(i.get("orient"),h,i.get("itemGap"),a?o.width:null,a?null:o.height),n.box("horizontal",d,i.get("pageButtonItemGap",!0));var p=h.getBoundingRect(),f=d.getBoundingRect(),g=this._showController=p[s]>o[s],v=[-p.x,-p.y];r||(v[a]=h.position[a]);var m=[0,0],y=[-f.x,-f.y],x=t.retrieve2(i.get("pageButtonGap",!0),i.get("itemGap",!0));g&&("end"===i.get("pageButtonPosition",!0)?y[a]+=o[s]-f[s]:m[a]+=f[s]+x),y[1-a]+=p[l]/2-f[l]/2,h.attr("position",v),c.attr("position",m),d.attr("position",y);var _={x:0,y:0};if(_[s]=g?o[s]:p[s],_[l]=Math.max(p[l],f[l]),_[u]=Math.min(0,f[u]+y[1-a]),c.__rectSize=o[s],g){var b={x:0,y:0};b[s]=Math.max(o[s]-f[s]-x,0),b[l]=_[l],c.setClipPath(new e.Rect({shape:b})),c.__rectSize=b[s]}else d.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(i);return null!=w.pageIndex&&e.updateProps(h,{position:w.contentPosition},!!g&&i),this._updatePageInfoView(i,w),_},_pageGo:function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},_updatePageInfoView:function(e,n){var i=this._controllerGroup;t.each(["pagePrev","pageNext"],(function(t){var r=null!=n[t+"DataIndex"],o=i.childOfName(t);o&&(o.setStyle("fill",r?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")}));var r=i.childOfName("pageText"),o=e.get("pageFormatter"),a=n.pageIndex,s=null!=a?a+1:0,l=n.pageCount;r&&o&&r.setStyle("text",t.isString(o)?o.replace("{current}",s).replace("{total}",l):o({current:s,total:l}))},_getPageInfo:function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,s=o[r],l=a[r],u=this._findTargetItemIndex(e),h=n.children(),c=h[u],d=h.length,p=d?1:0,f={contentPosition:n.position.slice(),pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return f;var g=_(c);f.contentPosition[r]=-g.s;for(var v=u+1,m=g,y=g,x=null;v<=d;++v)(!(x=_(h[v]))&&y.e>m.s+i||x&&!b(x,m.s))&&(m=y.i>m.i?y:x)&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=m.i),++f.pageCount),y=x;for(v=u-1,m=g,y=g,x=null;v>=-1;--v)(x=_(h[v]))&&b(y,x.s)||!(m.i<y.i)||(y=m,null==f.pagePrevDataIndex&&(f.pagePrevDataIndex=m.i),++f.pageCount,++f.pageIndex),m=x;return f;function _(t){if(t){var e=t.getBoundingRect(),n=e[l]+t.position[r];return{s:n,e:n+e[s],i:t.__legendDataIndex}}}function b(t,e){return t.e>=e&&t.s<=e+i}},_findTargetItemIndex:function(t){return this._showController?(this.getContentGroup().eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)})),null!=e?e:n):0;var e,n}});Iet=s}(),Let||(Let=1,NK().registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))})))),fet}var Oet,Ret,Net,Eet,zet,Vet={};function Bet(){return zet||(zet=1,K7(),c9(),d9(),function(){if(Ret)return Oet;Ret=1;var t=c9().extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}});Oet=t}(),function(){if(Eet)return Net;Eet=1;var t=hW(),e=LW(),n=vX(),i=$j(),r=d9(),o=MX(),a=zX(),s=A5(),l=n.Rect,u=o.linearMap,h=o.asc,c=t.bind,d=t.each,p="horizontal",f="vertical",g=["line","bar","candlestick","scatter"],v=r.extend({type:"dataZoom.slider",init:function(t,e){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=e},render:function(t,e,n,r){v.superApply(this,"render",arguments),i.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.get("orient"),!1!==this.dataZoomModel.get("show")?(r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},remove:function(){v.superApply(this,"remove",arguments),i.clear(this,"_dispatchZoomAction")},dispose:function(){v.superApply(this,"dispose",arguments),i.clear(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group;t.removeAll(),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new n.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},_resetLocation:function(){var e=this.dataZoomModel,n=this.api,i=this._findCoordRect(),r={width:n.getWidth(),height:n.getHeight()},o=this._orient===p?{right:r.width-i.x-i.width,top:r.height-30-7,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},s=a.getLayoutParams(e.option);t.each(["right","top","width","height"],(function(t){"ph"===s[t]&&(s[t]=o[t])}));var l=a.getLayoutRect(s,r,e.padding);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===f&&this._size.reverse()},_positionGroup:function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.barGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==p||r?n===p&&r?{scale:a?[-1,1]:[-1,-1]}:n!==f||r?{scale:a?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:a?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:a?[1,1]:[1,-1]});var s=t.getBoundingRect([o]);t.attr("position",[e.x-s.x,e.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var e=this.dataZoomModel,n=this._size,i=this._displayables.barGroup;i.add(new l({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40})),i.add(new l({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:t.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(e){var i=this._size,r=e.series,o=r.getRawData(),a=r.getShadowDim?r.getShadowDim():e.otherDim;if(null!=a){var s=o.getDataExtent(a),l=.3*(s[1]-s[0]);s=[s[0]-l,s[1]+l];var h,c=[0,i[1]],d=[0,i[0]],p=[[i[0],0],[0,0]],f=[],g=d[1]/(o.count()-1),v=0,m=Math.round(o.count()/i[0]);o.each([a],(function(t,e){if(m>0&&e%m)v+=g;else{var n=null==t||isNaN(t)||""===t,i=n?0:u(t,s,c,!0);n&&!h&&e?(p.push([p[p.length-1][0],0]),f.push([f[f.length-1][0],0])):!n&&h&&(p.push([v,0]),f.push([v,0])),p.push([v,i]),f.push([v,i]),v+=g,h=n}}));var y=this.dataZoomModel;this._displayables.barGroup.add(new n.Polygon({shape:{points:p},style:t.defaults({fill:y.get("dataBackgroundColor")},y.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new n.Polyline({shape:{points:f},style:y.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var e=this.dataZoomModel,n=e.get("showDataShadow");if(!1!==n){var i,r=this.ecModel;return e.eachTargetAxis((function(o,a){var s=e.getAxisProxy(o.name,a).getTargetSeriesModels();t.each(s,(function(e){if(!(i||!0!==n&&t.indexOf(g,e.get("type"))<0)){var s,l=r.getComponent(o.axis,a).axis,u={x:"y",y:"x",radius:"angle",angle:"radius"}[o.name],h=e.coordinateSystem;null!=u&&h.getOtherAxis&&(s=h.getOtherAxis(l).inverse),u=e.getData().mapDimension(u),i={thisAxis:l,series:e,thisDim:o.name,otherDim:u,otherAxisInverse:s}}}),this)}),this),i}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],i=t.handleLabels=[],r=this._displayables.barGroup,a=this._size,s=this.dataZoomModel;r.add(t.filler=new l({draggable:!0,cursor:m(this._orient),drift:c(this._onDragMove,this,"all"),ondragstart:c(this._showDataInfo,this,!0),ondragend:c(this._onDragEnd,this),onmouseover:c(this._showDataInfo,this,!0),onmouseout:c(this._showDataInfo,this,!1),style:{fill:s.get("fillerColor"),textPosition:"inside"}})),r.add(new l({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{stroke:s.get("dataBackgroundColor")||s.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),d([0,1],(function(t){var a=n.createIcon(s.get("handleIcon"),{cursor:m(this._orient),draggable:!0,drift:c(this._onDragMove,this,t),ondragend:c(this._onDragEnd,this),onmouseover:c(this._showDataInfo,this,!0),onmouseout:c(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),l=a.getBoundingRect();this._handleHeight=o.parsePercent(s.get("handleSize"),this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,a.setStyle(s.getModel("handleStyle").getItemStyle());var u=s.get("handleColor");null!=u&&(a.style.fill=u),r.add(e[t]=a);var h=s.textStyleModel;this.group.add(i[t]=new n.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:h.getTextColor(),textFont:h.getFont()},z2:10}))}),this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[u(t[0],[0,100],e,!0),u(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];s(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?u(o.minSpan,a,r,!0):null,null!=o.maxSpan?u(o.maxSpan,a,r,!0):null);var l=this._range,c=this._range=h([u(i[0],r,a,!0),u(i[1],r,a,!0)]);return!l||l[0]!==c[0]||l[1]!==c[1]},_updateView:function(t){var e=this._displayables,n=this._handleEnds,i=h(n.slice()),r=this._size;d([0,1],(function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scale:[o/2,o/2],position:[n[t],r[1]/2-o/2]})}),this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]}),this._updateDataInfo(t)},_updateDataInfo:function(t){var e=this.dataZoomModel,i=this._displayables,r=i.handleLabels,o=this._orient,a=["",""];if(e.get("showDetail")){var s=e.findRepresentativeAxisProxy();if(s){var l=s.getAxisModel().axis,u=this._range,c=t?s.calculateDataWindow({start:u[0],end:u[1]}).valueWindow:s.getDataValueWindow();a=[this._formatLabel(c[0],l),this._formatLabel(c[1],l)]}}var d=h(this._handleEnds.slice());function f(t){var e=n.getTransform(i.handles[t].parent,this.group),s=n.transformDirection(0===t?"right":"left",e),l=this._handleWidth/2+5,u=n.applyTransform([d[t]+(0===t?-l:l),this._size[1]/2],e);r[t].setStyle({x:u[0],y:u[1],textVerticalAlign:o===p?"middle":s,textAlign:o===p?s:"center",text:a[t]})}f.call(this,0),f.call(this,1)},_formatLabel:function(e,n){var i=this.dataZoomModel,r=i.get("labelFormatter"),o=i.get("labelPrecision");null!=o&&"auto"!==o||(o=n.getPixelPrecision());var a=null==e||isNaN(e)?"":"category"===n.type||"time"===n.type?n.scale.getLabel(Math.round(e)):e.toFixed(Math.min(o,20));return t.isFunction(r)?r(e,a):t.isString(r)?r.replace("{value}",a):a},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t)},_onDragMove:function(t,i,r,o){this._dragging=!0,e.stop(o.event);var a=this._displayables.barGroup.getLocalTransform(),s=n.applyTransform([i,r],a,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction()},_onClickPanelClick:function(t){var e=this._size,n=this._displayables.barGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_findCoordRect:function(){var t;if(d(this.getTargetCoordInfo(),(function(e){if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}})),!t){var e=this.api.getWidth(),n=this.api.getHeight();t={x:.2*e,y:.2*n,width:.6*e,height:.6*n}}return t}});function m(t){return"vertical"===t?"ns-resize":"ew-resize"}Net=v}(),g9(),M9()),Vet}var Get,Fet,Het={};var Wet,Uet,Yet,Zet,Xet,jet={};function qet(){if(Wet)return jet;Wet=1;var t=hW(),e=s0(),n=$j(),i="\0_ec_dataZoom_roams";function r(t){var e=t.getZr();return e[i]||(e[i]={})}function o(e){t.each(e,(function(t,n){t.count||(t.controller.dispose(),delete e[n])}))}function a(t,e){t.dispatchAction({type:"dataZoom",batch:e})}return jet.register=function(i,s){var l=r(i),u=s.dataZoomId,h=s.coordId;t.each(l,(function(e,n){var i=e.dataZoomInfos;i[u]&&t.indexOf(s.allCoordIds,h)<0&&(delete i[u],e.count--)})),o(l);var c=l[h];c||((c=l[h]={coordId:h,dataZoomInfos:{},count:0}).controller=function(n,i){var r=new e(n.getZr());return t.each(["pan","zoom","scrollMove"],(function(e){r.on(e,(function(n){var r=[];t.each(i.dataZoomInfos,(function(t){if(n.isAvailableBehavior(t.dataZoomModel.option)){var o=(t.getRange||{})[e],a=o&&o(i.controller,n);!t.dataZoomModel.get("disabled",!0)&&a&&r.push({dataZoomId:t.dataZoomId,start:a[0],end:a[1]})}})),r.length&&i.dispatchAction(r)}))})),r}(i,c),c.dispatchAction=t.curry(a,i)),!c.dataZoomInfos[u]&&c.count++,c.dataZoomInfos[u]=s;var d,p,f,g,v,m=(d=c.dataZoomInfos,f="type_",g={type_true:2,type_move:1,type_false:0,type_undefined:-1},v=!0,t.each(d,(function(t){var e=t.dataZoomModel,n=!e.get("disabled",!0)&&(!e.get("zoomLock",!0)||"move");g[f+n]>g[f+p]&&(p=n),v&=e.get("preventDefaultMouseMove",!0)})),{controlType:p,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!v}});c.controller.enable(m.controlType,m.opt),c.controller.setPointerChecker(s.containsPoint),n.createOrUpdate(c,"dispatchAction",s.dataZoomModel.get("throttle",!0),"fixRate")},jet.unregister=function(e,n){var i=r(e);t.each(i,(function(t){t.controller.dispose();var e=t.dataZoomInfos;e[n]&&(delete e[n],t.count--)})),o(i)},jet.generateCoordId=function(t){return t.type+"\0_"+t.id},jet}function Ket(){return Zet||(Zet=1,K7(),c9(),d9(),function(){if(Fet)return Get;Fet=1;var t=c9().extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});Get=t}(),function(){if(Yet)return Uet;Yet=1;var t=hW(),e=d9(),n=A5(),i=qet(),r=t.bind,o=e.extend({type:"dataZoom.inside",init:function(t,e){this._range},render:function(e,n,s,l){o.superApply(this,"render",arguments),this._range=e.getPercentRange(),t.each(this.getTargetCoordInfo(),(function(n,o){var l=t.map(n,(function(t){return i.generateCoordId(t.model)}));t.each(n,(function(n){var u=n.model,h={};t.each(["pan","zoom","scrollMove"],(function(t){h[t]=r(a[t],this,n,o)}),this),i.register(s,{coordId:i.generateCoordId(u),allCoordIds:l,containsPoint:function(t,e,n){return u.coordinateSystem.containPoint([e,n])},dataZoomId:e.id,dataZoomModel:e,getRange:h})}),this)}),this)},dispose:function(){i.unregister(this.api,this.dataZoomModel.id),o.superApply(this,"dispose",arguments),this._range=null}}),a={zoom:function(t,e,i,r){var o=this._range,a=o.slice(),s=t.axisModels[0];if(s){var u=l[e](null,[r.originX,r.originY],s,i,t),h=(u.signal>0?u.pixelStart+u.pixelLength-u.pixel:u.pixel-u.pixelStart)/u.pixelLength*(a[1]-a[0])+a[0],c=Math.max(1/r.scale,0);a[0]=(a[0]-h)*c+h,a[1]=(a[1]-h)*c+h;var d=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return n(0,a,[0,100],0,d.minSpan,d.maxSpan),this._range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}},pan:s((function(t,e,n,i,r,o){var a=l[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:s((function(t,e,n,i,r,o){return l[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n).signal*(t[1]-t[0])*o.scrollDelta}))};function s(t){return function(e,i,r,o){var a=this._range,s=a.slice(),l=e.axisModels[0];if(l){var u=t(s,l,e,i,r,o);return n(u,s,[0,100],"all"),this._range=s,a[0]!==s[0]||a[1]!==s[1]?s:void 0}}}var l={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};Uet=o}(),g9(),M9()),Het}var $et,Jet,Qet={};function tnt(){if(Jet)return $et;Jet=1;var t=hW(),e=t.each;function n(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}return $et=function(i){var r=i&&i.visualMap;t.isArray(r)||(r=r?[r]:[]),e(r,(function(i){if(i){n(i,"splitList")&&!n(i,"pieces")&&(i.pieces=i.splitList,delete i.splitList);var r=i.pieces;r&&t.isArray(r)&&e(r,(function(e){t.isObject(e)&&(n(e,"start")&&!n(e,"min")&&(e.min=e.start),n(e,"end")&&!n(e,"max")&&(e.max=e.end))}))}}))}}var ent,nnt={};function int(){return ent||(ent=1,VX().registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"}))),nnt}var rnt,ont,ant,snt,lnt,unt,hnt,cnt,dnt,pnt={};function fnt(){if(rnt)return pnt;rnt=1;var t=NK(),e=hW(),n=ett(),i=z1(),r=t.PRIORITY.VISUAL.COMPONENT;function o(t,e,n,r){for(var o=e.targetVisuals[r],a=i.prepareVisualTypes(o),s={color:t.getData().getVisual("color")},l=0,u=a.length;l<u;l++){var h=a[l],c=o["opacity"===h?"__alphaForOpacity":h];c&&c.applyVisual(n,d,p)}return s.color;function d(t){return s[t]}function p(t,e){s[t]=e}}return t.registerVisual(r,{createOnAllSeries:!0,reset:function(t,i){var r=[];return i.eachComponent("visualMap",(function(i){var o=t.pipelineContext;!i.isTargetSeries(t)||o&&o.large||r.push(n.incrementalApplyVisual(i.stateList,i.targetVisuals,e.bind(i.getValueState,i),i.getDataDimension(t.getData())))})),r}}),t.registerVisual(r,{createOnAllSeries:!0,reset:function(t,n){var i=t.getData(),r=[];n.eachComponent("visualMap",(function(n){if(n.isTargetSeries(t)){var a=n.getVisualMeta(e.bind(o,null,t,n))||{stops:[],outerColors:[]},s=n.getDataDimension(i),l=i.getDimensionInfo(s);null!=l&&(a.dimension=l.index,r.push(a))}})),t.getData().setVisual("visualMeta",r)}}),pnt}function gnt(){if(ant)return ont;ant=1;var t=hW(),e={get:function(e,i,r){var o=t.clone((n[e]||{})[i]);return r&&t.isArray(o)?o[o.length-1]:o}},n={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};return ont=e}function vnt(){if(lnt)return snt;lnt=1;var t=NK(),e=hW(),n=sW(),i=gnt(),r=z1(),o=ett(),a=mY(),s=MX(),l=r.mapVisual,u=r.eachVisual,h=e.isArray,c=e.each,d=s.asc,p=s.linearMap,f=e.noop,g=t.extendComponentModel({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-1/0,1/0],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,dimension:null,inRange:null,outOfRange:null,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(t,e,n){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(t,n)},optionUpdated:function(t,e){var i=this.option;n.canvasSupported||(i.realtime=!1),!e&&o.replaceVisualOption(i,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(t){var n=this.stateList;t=e.bind(t,this),this.controllerVisuals=o.createVisualMappings(this.option.controller,n,t),this.targetVisuals=o.createVisualMappings(this.option.target,n,t)},getTargetSeriesIndices:function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=a.normalizeToArray(t),e},eachTargetSeries:function(t,n){e.each(this.getTargetSeriesIndices(),(function(e){t.call(n,this.ecModel.getSeriesByIndex(e))}),this)},isTargetSeries:function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},formatValueText:function(t,n,i){var r,o,a=this.option,s=a.precision,l=this.dataBound,u=a.formatter;return i=i||["<",">"],e.isArray(t)&&(t=t.slice(),r=!0),o=n?t:r?[h(t[0]),h(t[1])]:h(t),e.isString(u)?u.replace("{value}",r?o[0]:o).replace("{value2}",r?o[1]:o):e.isFunction(u)?r?u(t[0],t[1]):u(t):r?t[0]===l[0]?i[0]+" "+o[1]:t[1]===l[1]?i[1]+" "+o[0]:o[0]+" - "+o[1]:o;function h(t){return t===l[0]?"min":t===l[1]?"max":(+t).toFixed(Math.min(s,20))}},resetExtent:function(){var t=this.option,e=d([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this.option.dimension,n=t.dimensions;if(null!=e||n.length){if(null!=e)return t.getDimension(e);for(var i=t.dimensions,r=i.length-1;r>=0;r--){var o=i[r];if(!t.getDimensionInfo(o).isCalculationCoord)return o}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var t=this.ecModel,n=this.option,o={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),s=n.controller||(n.controller={});e.merge(a,o),e.merge(s,o);var d=this.isCategory();function f(r){h(n.color)&&!r.inRange&&(r.inRange={color:n.color.slice().reverse()}),r.inRange=r.inRange||{color:t.get("gradientColor")},c(this.stateList,(function(t){var n=r[t];if(e.isString(n)){var o=i.get(n,"active",d);o?(r[t]={},r[t][n]=o):delete r[t]}}),this)}f.call(this,a),f.call(this,s),function(t,e,n){var o=t[e],a=t[n];o&&!a&&(a=t[n]={},c(o,(function(t,e){if(r.isValidType(e)){var n=i.get(e,"inactive",d);null!=n&&(a[e]=n,"color"!==e||a.hasOwnProperty("opacity")||a.hasOwnProperty("colorAlpha")||(a.opacity=[0,0]))}})))}.call(this,a,"inRange","outOfRange"),function(t){var n=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,i=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,r=this.get("inactiveColor");c(this.stateList,(function(o){var a=this.itemSize,s=t[o];s||(s=t[o]={color:d?r:[r]}),null==s.symbol&&(s.symbol=n&&e.clone(n)||(d?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=i&&e.clone(i)||(d?a[0]:[a[0],a[0]])),s.symbol=l(s.symbol,(function(t){return"none"===t||"square"===t?"roundRect":t}));var h=s.symbolSize;if(null!=h){var c=-1/0;u(h,(function(t){t>c&&(c=t)})),s.symbolSize=l(h,(function(t){return p(t,[0,c],[0,a[0]],!0)}))}}),this)}.call(this,s)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:f,getValueState:f,getVisualMeta:f});return snt=g}function mnt(){if(dnt)return cnt;dnt=1;var t=NK(),e=hW(),n=vX(),i=EX(),r=zX(),o=z1(),a=t.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(t,e){this.ecModel=t,this.api=e,this.visualMapModel},render:function(t,e,n,i){this.visualMapModel=t,!1!==t.get("show")?this.doRender.apply(this,arguments):this.group.removeAll()},renderBackground:function(t){var e=this.visualMapModel,r=i.normalizeCssArray(e.get("padding")||0),o=t.getBoundingRect();t.add(new n.Rect({z2:-1,silent:!0,shape:{x:o.x-r[3],y:o.y-r[0],width:o.width+r[3]+r[1],height:o.height+r[0]+r[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},getControllerVisual:function(t,n,i){var r=(i=i||{}).forceState,a=this.visualMapModel,s={};if("symbol"===n&&(s.symbol=a.get("itemSymbol")),"color"===n){var l=a.get("contentColor");s.color=l}function u(t){return s[t]}function h(t,e){s[t]=e}var c=a.controllerVisuals[r||a.getValueState(t)],d=o.prepareVisualTypes(c);return e.each(d,(function(e){var r=c[e];i.convertOpacityToAlpha&&"opacity"===e&&(e="colorAlpha",r=c.__alphaForOpacity),o.dependsOn(e,n)&&r&&r.applyVisual(t,u,h)})),s[n]},positionGroup:function(t){var e=this.visualMapModel,n=this.api;r.positionElement(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},doRender:e.noop});return cnt=a}var ynt,xnt,_nt,bnt={};function wnt(){if(ynt)return bnt;ynt=1;var t=hW(),e=zX().getLayoutRect;return bnt.getItemAlign=function(t,n,i){var r=t.option,o=r.align;if(null!=o&&"auto"!==o)return o;for(var a={width:n.getWidth(),height:n.getHeight()},s="horizontal"===r.orient?1:0,l=[["left","right","width"],["top","bottom","height"]],u=l[s],h=[0,null,10],c={},d=0;d<3;d++)c[l[1-s][d]]=h[d],c[u[d]]=2===d?i[0]:r[u[d]];var p=[["x","width",3],["y","height",0]][s],f=e(c,a,r.padding);return u[(f.margin[p[2]]||0)+f[p[0]]+.5*f[p[1]]<.5*a[p[1]]?0:1]},bnt.makeHighDownBatch=function(e,n){return t.each(e||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(n?n.componentIndex:"")})),e},bnt}function Snt(){if(_nt)return xnt;_nt=1;var t=hW(),e=fX(),n=LW(),i=mnt(),r=vX(),o=MX(),a=A5(),s=wnt(),l=mY(),u=o.linearMap,h=t.each,c=Math.min,d=Math.max,p=i.extend({type:"visualMap.continuous",init:function(){p.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(t,e,n,i){i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},_buildView:function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},_renderEndsText:function(t,e,n){if(e){var i=e[1-n];i=null!=i?i+"":"";var o=this.visualMapModel,a=o.get("textGap"),s=o.itemSize,l=this._shapes.barGroup,u=this._applyTransform([s[0]/2,0===n?-a:s[1]+a],l),h=this._applyTransform(0===n?"bottom":"top",l),c=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new r.Text({style:{x:u[0],y:u[1],textVerticalAlign:"horizontal"===c?"middle":h,textAlign:"horizontal"===c?h:"center",text:i,textFont:d.getFont(),textFill:d.getTextColor()}}))}},_renderBar:function(e){var n=this.visualMapModel,i=this._shapes,r=n.itemSize,o=this._orient,a=this._useHandle,l=s.getItemAlign(n,this.api,r),u=i.barGroup=this._createBarGroup(l);u.add(i.outOfRange=f()),u.add(i.inRange=f(null,a?v(this._orient):null,t.bind(this._dragHandle,this,"all",!1),t.bind(this._dragHandle,this,"all",!0)));var h=n.textStyleModel.getTextRect("国"),c=d(h.width,h.height);a&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(u,0,r,c,o,l),this._createHandle(u,1,r,c,o,l)),this._createIndicator(u,r,c,o),e.add(u)},_createHandle:function(e,i,o,a,s){var l=t.bind(this._dragHandle,this,i,!1),u=t.bind(this._dragHandle,this,i,!0),h=f(function(t,e){return 0===t?[[0,0],[e,0],[e,-e]]:[[0,0],[e,0],[e,e]]}(i,a),v(this._orient),l,u);h.position[0]=o[0],e.add(h);var c=this.visualMapModel.textStyleModel,d=new r.Text({draggable:!0,drift:l,onmousemove:function(t){n.stop(t.event)},ondragend:u,style:{x:0,y:0,text:"",textFont:c.getFont(),textFill:c.getTextColor()}});this.group.add(d);var p=["horizontal"===s?a/2:1.5*a,"horizontal"===s?0===i?-1.5*a:1.5*a:0===i?-a/2:a/2],g=this._shapes;g.handleThumbs[i]=h,g.handleLabelPoints[i]=p,g.handleLabels[i]=d},_createIndicator:function(t,e,n,i){var o=f([[0,0]],"move");o.position[0]=e[0],o.attr({invisible:!0,silent:!0}),t.add(o);var a=this.visualMapModel.textStyleModel,s=new r.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:a.getFont(),textFill:a.getTextColor()}});this.group.add(s);var l=["horizontal"===i?n/2:9,0],u=this._shapes;u.indicator=o,u.indicatorLabel=s,u.indicatorLabelPoint=l},_dragHandle:function(t,e,n,i){if(this._useHandle){if(this._dragging=!e,!e){var r=this._applyTransform([n,i],this._shapes.barGroup,!0);this._updateInterval(t,r[1]),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():g(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},_resetInterval:function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[u(e[0],n,i,!0),u(e[1],n,i,!0)]},_updateInterval:function(t,e){e=e||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];a(e,i,r,t,0);var o=n.getExtent();this._dataInterval=[u(i[0],r,o,!0),u(i[1],r,o,!0)]},_updateView:function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,r=[0,e.itemSize[1]],o=t?r:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:a.barColor,opacity:a.opacity}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor,opacity:s.opacity}).setShape("points",s.barPoints),this._updateHandle(o,a)},_createBarVisual:function(t,n,i,r){var o={forceState:r,convertOpacityToAlpha:!0},a=this._makeColorGradient(t,o),s=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],l=this._createBarPoints(i,s);return{barColor:new e(0,0,0,1,a),barPoints:l,handlesColor:[a[0].color,a[a.length-1].color]}},_makeColorGradient:function(t,e){var n=[],i=(t[1]-t[0])/100;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var r=1;r<100;r++){var o=t[0]+i*r;if(o>t[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:r/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},_createBarPoints:function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new r.Group("horizontal"!==e||n?"horizontal"===e&&n?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==e||n?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:"bottom"===t?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,a=n.handleLabels;h([0,1],(function(s){var l=o[s];l.setStyle("fill",e.handlesColor[s]),l.position[1]=t[s];var u=r.applyTransform(n.handleLabelPoints[s],r.getTransform(l,this.group));a[s].setStyle({x:u[0],y:u[1],text:i.formatValueText(this._dataInterval[s]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===s?"bottom":"top":"left",n.barGroup)})}),this)}},_showIndicator:function(t,e,n,i){var o=this.visualMapModel,a=o.getExtent(),s=o.itemSize,l=[0,s[1]],h=u(t,a,l,!0),p=this._shapes,f=p.indicator;if(f){f.position[1]=h,f.attr("invisible",!1),f.setShape("points",function(t,e,n,i){return t?[[0,-c(e,d(n,0))],[6,0],[0,c(e,d(i-n,0))]]:[[0,0],[5,-5],[5,5]]}(!!n,i,h,s[1]));var g=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0});f.setStyle("fill",g);var v=r.applyTransform(p.indicatorLabelPoint,r.getTransform(f,this.group)),m=p.indicatorLabel;m.attr("invisible",!1);var y=this._applyTransform("left",p.barGroup),x=this._orient;m.setStyle({text:(n||"")+o.formatValueText(e),textVerticalAlign:"horizontal"===x?y:"middle",textAlign:"horizontal"===x?"center":y,x:v[0],y:v[1]})}},_enableHoverLinkToSeries:function(){var t=this;this._shapes.barGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.barGroup,!0,!0);i[1]=c(d(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},_enableHoverLinkFromSeries:function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(t,e){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],o=n.getExtent();t=c(d(r[0],t),r[1]);var a=function(t,e,n){var i=6,r=t.get("hoverLinkDataSize");r&&(i=u(r,e,n,!0)/2);return i}(n,o,r),h=[t-a,t+a],p=u(t,r,o,!0),f=[u(h[0],r,o,!0),u(h[1],r,o,!0)];h[0]<r[0]&&(f[0]=-1/0),h[1]>r[1]&&(f[1]=1/0),e&&(f[0]===-1/0?this._showIndicator(p,f[1],"< ",a):f[1]===1/0?this._showIndicator(p,f[0],"> ",a):this._showIndicator(p,p,"≈ ",a));var v=this._hoverLinkDataIndices,m=[];(e||g(n))&&(m=this._hoverLinkDataIndices=n.findTargetDataIndices(f));var y=l.compressBatches(v,m);this._dispatchHighDown("downplay",s.makeHighDownBatch(y[0],n)),this._dispatchHighDown("highlight",s.makeHighDownBatch(y[1],n))}},_hoverLinkFromSeriesMouseOver:function(t){var e=t.target,n=this.visualMapModel;if(e&&null!=e.dataIndex){var i=this.ecModel.getSeriesByIndex(e.seriesIndex);if(n.isTargetSeries(i)){var r=i.getData(e.dataType),o=r.get(n.getDataDimension(r),e.dataIndex,!0);isNaN(o)||this._showIndicator(o,o)}}},_hideIndicator:function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",s.makeHighDownBatch(t,this.visualMapModel)),t.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},_applyTransform:function(e,n,i,o){var a=r.getTransform(n,o?null:this.group);return r[t.isArray(e)?"applyTransform":"transformDirection"](e,a,i)},_dispatchHighDown:function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function f(t,e,i,o){return new r.Polygon({shape:{points:t},draggable:!!i,cursor:e,drift:i,onmousemove:function(t){n.stop(t.event)},ondragend:o})}function g(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function v(t){return"vertical"===t?"ns-resize":"ew-resize"}return xnt=p}var Mnt,Int,Tnt={};function Cnt(){if(Mnt)return Tnt;Mnt=1;return NK().registerAction({type:"selectDataRange",event:"dataRangeSelected",update:"update"},(function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))})),Tnt}function Ant(){if(Int)return Qet;Int=1;var t=NK(),e=tnt();return int(),fnt(),function(){if(hnt)return unt;hnt=1;var t=hW(),e=vnt(),n=MX(),i=[20,140],r=e.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(t,e){r.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},resetItemSize:function(){r.superApply(this,"resetItemSize",arguments);var t=this.itemSize;"horizontal"===this._orient&&t.reverse(),(null==t[0]||isNaN(t[0]))&&(t[0]=i[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=i[1])},_resetRange:function(){var e=this.getExtent(),n=this.option.range;!n||n.auto?(e.auto=1,this.option.range=e):t.isArray(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],e[0]),n[1]=Math.min(n[1],e[1]))},completeVisualOption:function(){e.prototype.completeVisualOption.apply(this,arguments),t.each(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=0)}),this)},setSelected:function(t){this.option.range=t.slice(),this._resetRange()},getSelected:function(){var t=this.getExtent(),e=n.asc((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},getValueState:function(t){var e=this.option.range,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimension(r),(function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},getVisualMeta:function(t){var e=o(this,"outOfRange",this.getExtent()),n=o(this,"inRange",this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var a=0,s=0,l=n.length,u=e.length;s<u&&(!n.length||e[s]<=n[0]);s++)e[s]<n[a]&&r(e[s],"outOfRange");for(var h=1;a<l;a++,h=0)h&&i.length&&r(n[a],"outOfRange"),r(n[a],"inRange");for(h=1;s<u;s++)(!n.length||n[n.length-1]<e[s])&&(h&&(i.length&&r(i[i.length-1].value,"outOfRange"),h=0),r(e[s],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}}});function o(t,e,n){if(n[0]===n[1])return n.slice();for(var i=(n[1]-n[0])/200,r=n[0],o=[],a=0;a<=200&&r<n[1];a++)o.push(r),r+=i;return o.push(n[1]),o}unt=r}(),Snt(),Cnt(),t.registerPreprocessor(e),Qet}var Dnt,Lnt,knt,Pnt,Ont,Rnt,Nnt={};function Ent(){if(Ont)return Nnt;Ont=1;var t=NK(),e=tnt();return int(),fnt(),function(){if(Lnt)return Dnt;Lnt=1,tW().__DEV__;var t=hW(),e=vnt(),n=z1(),i=gnt(),r=MX().reformIntervals,o=e.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(e,n){o.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var i=this._mode=this._determineMode();a[this._mode].call(this),this._resetSelected(e,n);var r=this.option.categories;this.resetVisual((function(e,n){"categories"===i?(e.mappingMethod="category",e.categories=t.clone(r)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=t.map(this._pieceList,(function(e){return e=t.clone(e),"inRange"!==n&&(e.visual=null),e})))}))},completeVisualOption:function(){var r=this.option,o={},a=n.listVisualTypes(),s=this.isCategory();function l(e,n,i){return e&&e[n]&&(t.isObject(e[n])?e[n].hasOwnProperty(i):e[n]===i)}t.each(r.pieces,(function(e){t.each(a,(function(t){e.hasOwnProperty(t)&&(o[t]=1)}))})),t.each(o,(function(e,n){var o=0;t.each(this.stateList,(function(t){o|=l(r,t,n)||l(r.target,t,n)}),this),!o&&t.each(this.stateList,(function(t){(r[t]||(r[t]={}))[n]=i.get(n,"inRange"===t?"active":"inactive",s)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(e,n){var i=this.option,r=this._pieceList,o=(n?i:e).selected||{};if(i.selected=o,t.each(r,(function(t,e){var n=this.getSelectedMapKey(t);o.hasOwnProperty(n)||(o[n]=!0)}),this),"single"===i.selectedMode){var a=!1;t.each(r,(function(t,e){var n=this.getSelectedMapKey(t);o[n]&&(a?o[n]=!1:a=!0)}),this)}},getSelectedMapKey:function(t){return"categories"===this._mode?t.value+"":t.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(e){this.option.selected=t.clone(e)},getValueState:function(t){var e=n.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries((function(i){var r=[],o=i.getData();o.each(this.getDataDimension(o),(function(e,i){n.findPieceIndex(e,this._pieceList)===t&&r.push(i)}),this),e.push({seriesId:i.id,dataIndex:r})}),this),e},getRepresentValue:function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},getVisualMeta:function(e){if(!this.isCategory()){var n=[],i=[],r=this,o=this._pieceList.slice();if(o.length){var a=o[0].interval[0];a!==-1/0&&o.unshift({interval:[-1/0,a]}),(a=o[o.length-1].interval[1])!==1/0&&o.push({interval:[a,1/0]})}else o.push({interval:[-1/0,1/0]});var s=-1/0;return t.each(o,(function(t){var e=t.interval;e&&(e[0]>s&&l([s,e[0]],"outOfRange"),l(e.slice()),s=e[1])}),this),{stops:n,outerColors:i}}function l(t,o){var a=r.getRepresentValue({interval:t});o||(o=r.getValueState(a));var s=e(a,o);t[0]===-1/0?i[0]=s:t[1]===1/0?i[1]=s:n.push({value:t[0],color:s},{value:t[1],color:s})}}}),a={splitNumber:function(){var e=this.option,n=this._pieceList,i=Math.min(e.precision,20),o=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var s=(o[1]-o[0])/a;+s.toFixed(i)!==s&&i<5;)i++;e.precision=i,s=+s.toFixed(i),e.minOpen&&n.push({interval:[-1/0,o[0]],close:[0,0]});for(var l=0,u=o[0];l<a;u+=s,l++){var h=l===a-1?o[1]:u+s;n.push({interval:[u,h],close:[1,1]})}e.maxOpen&&n.push({interval:[o[1],1/0],close:[0,0]}),r(n),t.each(n,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(){var e=this.option;t.each(e.categories,(function(t){this._pieceList.push({text:this.formatValueText(t,!0),value:t})}),this),s(e,this._pieceList)},pieces:function(){var e=this.option,i=this._pieceList;t.each(e.pieces,(function(e,r){t.isObject(e)||(e={value:e});var o={text:"",index:r};if(null!=e.label&&(o.text=e.label),e.hasOwnProperty("value")){var a=o.value=e.value;o.interval=[a,a],o.close=[1,1]}else{for(var s=o.interval=[],l=o.close=[0,0],u=[1,0,1],h=[-1/0,1/0],c=[],d=0;d<2;d++){for(var p=[["gte","gt","min"],["lte","lt","max"]][d],f=0;f<3&&null==s[d];f++)s[d]=e[p[f]],l[d]=u[f],c[d]=2===f;null==s[d]&&(s[d]=h[d])}c[0]&&s[1]===1/0&&(l[0]=0),c[1]&&s[0]===-1/0&&(l[1]=0),s[0]===s[1]&&l[0]&&l[1]&&(o.value=s[0])}o.visual=n.retrieveVisuals(e),i.push(o)}),this),s(e,i),r(i),t.each(i,(function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function s(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}Dnt=o}(),function(){if(Pnt)return knt;Pnt=1;var t=hW(),e=mnt(),n=vX(),i=vK().createSymbol,r=zX(),o=wnt(),a=e.extend({type:"visualMap.piecewise",doRender:function(){var e=this.group;e.removeAll();var i=this.visualMapModel,o=i.get("textGap"),a=i.textStyleModel,s=a.getFont(),l=a.getTextColor(),u=this._getItemAlign(),h=i.itemSize,c=this._getViewData(),d=c.endsText,p=t.retrieve(i.get("showLabel",!0),!d);d&&this._renderEndsText(e,d[0],h,p,u),t.each(c.viewPieceList,(function(r){var a=r.piece,c=new n.Group;c.onclick=t.bind(this._onItemClick,this,a),this._enableHoverLink(c,r.indexInModelPieceList);var d=i.getRepresentValue(a);if(this._createItemSymbol(c,d,[0,0,h[0],h[1]]),p){var f=this.visualMapModel.getValueState(d);c.add(new n.Text({style:{x:"right"===u?-o:h[0]+o,y:h[1]/2,text:a.text,textVerticalAlign:"middle",textAlign:u,textFont:s,textFill:l,opacity:"outOfRange"===f?.5:1}}))}e.add(c)}),this),d&&this._renderEndsText(e,d[1],h,p,u),r.box(i.get("orient"),e,i.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},_enableHoverLink:function(e,n){function i(t){var e=this.visualMapModel;e.option.hoverLink&&this.api.dispatchAction({type:t,batch:o.makeHighDownBatch(e.findTargetDataIndices(n),e)})}e.on("mouseover",t.bind(i,this,"highlight")).on("mouseout",t.bind(i,this,"downplay"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return o.getItemAlign(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},_renderEndsText:function(t,e,i,r,o){if(e){var a=new n.Group,s=this.visualMapModel.textStyleModel;a.add(new n.Text({style:{x:r?"right"===o?i[0]:0:i[0]/2,y:i[1]/2,textVerticalAlign:"middle",textAlign:r?o:"center",text:e,textFont:s.getFont(),textFill:s.getTextColor()}})),t.add(a)}},_getViewData:function(){var e=this.visualMapModel,n=t.map(e.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),i=e.get("text"),r=e.get("orient"),o=e.get("inverse");return("horizontal"===r?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},_createItemSymbol:function(t,e,n){t.add(i(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},_onItemClick:function(e){var n=this.visualMapModel,i=n.option,r=t.clone(i.selected),o=n.getSelectedMapKey(e);"single"===i.selectedMode?(r[o]=!0,t.each(r,(function(t,e){r[e]=e===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}});knt=a}(),Cnt(),t.registerPreprocessor(e),Nnt}var znt,Vnt,Bnt,Gnt,Fnt,Hnt={},Wnt={};function Unt(){if(znt)return Wnt;znt=1;var t,e=sW(),n="urn:schemas-microsoft-com:vml",i="undefined"==typeof window?null:window,r=!1,o=i&&i.document;if(o&&!e.canvasSupported)try{!o.namespaces.zrvml&&o.namespaces.add("zrvml",n),t=function(t){return o.createElement("<zrvml:"+t+' class="zrvml">')}}catch(a){t=function(t){return o.createElement("<"+t+' xmlns="'+n+'" class="zrvml">')}}return Wnt.doc=o,Wnt.createNode=function(e){return t(e)},Wnt.initVML=function(){if(!r&&o){r=!0;var t=o.styleSheets;t.length<31?o.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}},Wnt}function Ynt(){if(Vnt)return Hnt;Vnt=1;var t=sW(),e=mW().applyTransform,n=_U(),i=KW(),r=UU(),o=lY(),a=uY(),s=hY(),l=cY(),u=bZ(),h=xZ(),c=VY(),d=pX(),p=Unt(),f=c.CMD,g=Math.round,v=Math.sqrt,m=Math.abs,y=Math.cos,x=Math.sin,_=Math.max;if(!t.canvasSupported){var b=",",w="progid:DXImageTransform.Microsoft",S=21600,M=S/2,I=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=S+","+S,t.coordorigin="0,0"},T=function(t,e,n){return"rgb("+[t,e,n].join(",")+")"},C=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},A=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},D=function(t,e,n){return 1e5*(parseFloat(t)||0)+1e3*(parseFloat(e)||0)+n},L=o.parsePercent,k=function(t,e,n){var r=i.parse(e);n=+n,isNaN(n)&&(n=1),r&&(t.color=T(r[0],r[1],r[2]),t.opacity=n*r[3])},P=function(t){var e=i.parse(t);return[T(e[0],e[1],e[2]),e[3]]},O=function(t,n,i,r){var o="fill"===n,a=t.getElementsByTagName(n)[0];null!=i[n]&&"none"!==i[n]&&(o||!o&&i.lineWidth)?(t[o?"filled":"stroked"]="true",i[n]instanceof d&&A(t,a),a||(a=p.createNode(n)),o?function(t,n,i){var r=n.fill;if(null!=r)if(r instanceof d){var o,a=0,s=[0,0],l=0,u=1,h=i.getBoundingRect(),c=h.width,p=h.height;if("linear"===r.type){o="gradient";var f=i.transform,g=[r.x*c,r.y*p],v=[r.x2*c,r.y2*p];f&&(e(g,g,f),e(v,v,f));var m=v[0]-g[0],y=v[1]-g[1];(a=180*Math.atan2(m,y)/Math.PI)<0&&(a+=360),a<1e-6&&(a=0)}else{o="gradientradial",g=[r.x*c,r.y*p],f=i.transform;var x=i.scale,b=c,w=p;s=[(g[0]-h.x)/b,(g[1]-h.y)/w],f&&e(g,g,f),b/=x[0]*S,w/=x[1]*S;var M=_(b,w);l=0/M,u=2*r.r/M-l}var I=r.colorStops.slice();I.sort((function(t,e){return t.offset-e.offset}));for(var T=I.length,C=[],A=[],D=0;D<T;D++){var L=I[D],O=P(L.color);A.push(L.offset*u+l+" "+O[0]),0!==D&&D!==T-1||C.push(O)}if(T>=2){var R=C[0][0],N=C[1][0],E=C[0][1]*n.opacity,z=C[1][1]*n.opacity;t.type=o,t.method="none",t.focus="100%",t.angle=a,t.color=R,t.color2=N,t.colors=A.join(","),t.opacity=z,t.opacity2=E}"radial"===o&&(t.focusposition=s.join(","))}else k(t,r,n.opacity)}(a,i,r):function(t,e){e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e.stroke||e.stroke instanceof d||k(t,e.stroke,e.opacity)}(a,i),C(t,a)):(t[o?"filled":"stroked"]="false",A(t,a))},R=[[],[],[]];h.prototype.brushVML=function(t){var n=this.style,i=this._vmlEl;i||(i=p.createNode("shape"),I(i),this._vmlEl=i),O(i,"fill",n,this),O(i,"stroke",n,this);var r=this.transform,o=null!=r,a=i.getElementsByTagName("stroke")[0];if(a){var s=n.lineWidth;if(o&&!n.strokeNoScale){var l=r[0]*r[3]-r[1]*r[2];s*=v(m(l))}a.weight=s+"px"}var u=this.path||(this.path=new c);this.__dirtyPath&&(u.beginPath(),u.subPixelOptimize=!1,this.buildPath(u,this.shape),u.toStatic(),this.__dirtyPath=!1),i.path=function(t,n){var i,r,o,a,s,l,u=f.M,h=f.C,c=f.L,d=f.A,p=f.Q,m=[],_=t.data,w=t.len();for(a=0;a<w;){switch(r="",i=0,o=_[a++]){case u:r=" m ",i=1,s=_[a++],l=_[a++],R[0][0]=s,R[0][1]=l;break;case c:r=" l ",i=1,s=_[a++],l=_[a++],R[0][0]=s,R[0][1]=l;break;case p:case h:r=" c ",i=3;var I,T,C=_[a++],A=_[a++],D=_[a++],L=_[a++];o===p?(I=D,T=L,D=(D+2*C)/3,L=(L+2*A)/3,C=(s+2*C)/3,A=(l+2*A)/3):(I=_[a++],T=_[a++]),R[0][0]=C,R[0][1]=A,R[1][0]=D,R[1][1]=L,R[2][0]=I,R[2][1]=T,s=I,l=T;break;case d:var k=0,P=0,O=1,N=1,E=0;n&&(k=n[4],P=n[5],O=v(n[0]*n[0]+n[1]*n[1]),N=v(n[2]*n[2]+n[3]*n[3]),E=Math.atan2(-n[1]/N,n[0]/O));var z=_[a++],V=_[a++],B=_[a++],G=_[a++],F=_[a++]+E,H=_[a++]+F+E;a++;var W=_[a++],U=z+y(F)*B,Y=V+x(F)*G,Z=(C=z+y(H)*B,A=V+x(H)*G,W?" wa ":" at ");Math.abs(U-C)<1e-4&&(Math.abs(H-F)>.01?W&&(U+=270/S):Math.abs(Y-V)<1e-4?W&&U<z||!W&&U>z?A-=270/S:A+=270/S:W&&Y<V||!W&&Y>V?C+=270/S:C-=270/S),m.push(Z,g(((z-B)*O+k)*S-M),b,g(((V-G)*N+P)*S-M),b,g(((z+B)*O+k)*S-M),b,g(((V+G)*N+P)*S-M),b,g((U*O+k)*S-M),b,g((Y*N+P)*S-M),b,g((C*O+k)*S-M),b,g((A*N+P)*S-M)),s=C,l=A;break;case f.R:var X=R[0],j=R[1];X[0]=_[a++],X[1]=_[a++],j[0]=X[0]+_[a++],j[1]=X[1]+_[a++],n&&(e(X,X,n),e(j,j,n)),X[0]=g(X[0]*S-M),j[0]=g(j[0]*S-M),X[1]=g(X[1]*S-M),j[1]=g(j[1]*S-M),m.push(" m ",X[0],b,X[1]," l ",j[0],b,X[1]," l ",j[0],b,j[1]," l ",X[0],b,j[1]);break;case f.Z:m.push(" x ")}if(i>0){m.push(r);for(var q=0;q<i;q++){var K=R[q];n&&e(K,K,n),m.push(g(K[0]*S-M),b,g(K[1]*S-M),q<i-1?b:"")}}}return m.join("")}(u,this.transform),i.style.zIndex=D(this.zlevel,this.z,this.z2),C(t,i),null!=n.text?this.drawRectText(t,this.getBoundingRect()):this.removeRectText(t)},h.prototype.onRemove=function(t){A(t,this._vmlEl),this.removeRectText(t)},h.prototype.onAdd=function(t){C(t,this._vmlEl),this.appendRectText(t)};l.prototype.brushVML=function(t){var n,i,r,o=this.style,a=o.image;if("object"==typeof(r=a)&&r.tagName&&"IMG"===r.tagName.toUpperCase()){var s=a.src;if(s===this._imageSrc)n=this._imageWidth,i=this._imageHeight;else{var l=a.runtimeStyle,u=l.width,h=l.height;l.width="auto",l.height="auto",n=a.width,i=a.height,l.width=u,l.height=h,this._imageSrc=s,this._imageWidth=n,this._imageHeight=i}a=s}else a===this._imageSrc&&(n=this._imageWidth,i=this._imageHeight);if(a){var c=o.x||0,d=o.y||0,f=o.width,m=o.height,y=o.sWidth,x=o.sHeight,S=o.sx||0,M=o.sy||0,T=y&&x,A=this._vmlEl;A||(A=p.doc.createElement("div"),I(A),this._vmlEl=A);var L,k=A.style,P=!1,O=1,R=1;if(this.transform&&(L=this.transform,O=v(L[0]*L[0]+L[1]*L[1]),R=v(L[2]*L[2]+L[3]*L[3]),P=L[1]||L[2]),P){var N=[c,d],E=[c+f,d],z=[c,d+m],V=[c+f,d+m];e(N,N,L),e(E,E,L),e(z,z,L),e(V,V,L);var B=_(N[0],E[0],z[0],V[0]),G=_(N[1],E[1],z[1],V[1]),F=[];F.push("M11=",L[0]/O,b,"M12=",L[2]/R,b,"M21=",L[1]/O,b,"M22=",L[3]/R,b,"Dx=",g(c*O+L[4]),b,"Dy=",g(d*R+L[5])),k.padding="0 "+g(B)+"px "+g(G)+"px 0",k.filter=w+".Matrix("+F.join("")+", SizingMethod=clip)"}else L&&(c=c*O+L[4],d=d*R+L[5]),k.filter="",k.left=g(c)+"px",k.top=g(d)+"px";var H=this._imageEl,W=this._cropEl;H||(H=p.doc.createElement("div"),this._imageEl=H);var U=H.style;if(T){if(n&&i)U.width=g(O*n*f/y)+"px",U.height=g(R*i*m/x)+"px";else{var Y=new Image,Z=this;Y.onload=function(){Y.onload=null,n=Y.width,i=Y.height,U.width=g(O*n*f/y)+"px",U.height=g(R*i*m/x)+"px",Z._imageWidth=n,Z._imageHeight=i,Z._imageSrc=a},Y.src=a}W||((W=p.doc.createElement("div")).style.overflow="hidden",this._cropEl=W);var X=W.style;X.width=g((f+S*f/y)*O),X.height=g((m+M*m/x)*R),X.filter=w+".Matrix(Dx="+-S*f/y*O+",Dy="+-M*m/x*R+")",W.parentNode||A.appendChild(W),H.parentNode!==W&&W.appendChild(H)}else U.width=g(O*f)+"px",U.height=g(R*m)+"px",A.appendChild(H),W&&W.parentNode&&(A.removeChild(W),this._cropEl=null);var j="",q=o.opacity;q<1&&(j+=".Alpha(opacity="+g(100*q)+") "),j+=w+".AlphaImageLoader(src="+a+", SizingMethod=scale)",U.filter=j,A.style.zIndex=D(this.zlevel,this.z,this.z2),C(t,A),null!=o.text&&this.drawRectText(t,this.getBoundingRect())}},l.prototype.onRemove=function(t){A(t,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(t)},l.prototype.onAdd=function(t){C(t,this._vmlEl),this.appendRectText(t)};var N,E="normal",z={},V=0,B=document.createElement("div");r.$override("measureText",(function(t,e){var n=p.doc;N||((N=n.createElement("div")).style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",p.doc.body.appendChild(N));try{N.style.font=e}catch(i){}return N.innerHTML="",N.appendChild(n.createTextNode(t)),{width:N.offsetWidth}}));for(var G=new n,F=function(t,n,i,a){var s=this.style;this.__dirty&&o.normalizeTextStyle(s,!0);var l=s.text;if(null!=l&&(l+=""),l){if(s.rich){var u=r.parseRichText(l,s);l=[];for(var h=0;h<u.lines.length;h++){for(var c=u.lines[h].tokens,d=[],f=0;f<c.length;f++)d.push(c[f].text);l.push(d.join(""))}l=l.join("\n")}var v,m,y=s.textAlign,x=s.textVerticalAlign,_=function(t){var e=z[t];if(!e){V>100&&(V=0,z={});var n,i=B.style;try{i.font=t,n=i.fontFamily.split(",")[0]}catch(r){}e={style:i.fontStyle||E,variant:i.fontVariant||E,weight:i.fontWeight||E,size:0|parseFloat(i.fontSize||12),family:n||"Microsoft YaHei"},z[t]=e,V++}return e}(s.font),w=_.style+" "+_.variant+" "+_.weight+" "+_.size+'px "'+_.family+'"';i=i||r.getBoundingRect(l,w,y,x,s.textPadding,s.textLineHeight);var S=this.transform;if(S&&!a&&(G.copy(n),G.applyTransform(S),n=G),a)v=n.x,m=n.y;else{var M=s.textPosition;if(M instanceof Array)v=n.x+L(M[0],n.width),m=n.y+L(M[1],n.height),y=y||"left";else{var T=this.calculateTextPosition?this.calculateTextPosition({},s,n):r.calculateTextPosition({},s,n);v=T.x,m=T.y,y=y||T.textAlign,x=x||T.textVerticalAlign}}v=r.adjustTextX(v,i.width,y),m=r.adjustTextY(m,i.height,x),m+=i.height/2;var A,k,P,R=p.createNode,N=this._textVmlEl;N?k=(A=(P=N.firstChild).nextSibling).nextSibling:(N=R("line"),A=R("path"),k=R("textpath"),P=R("skew"),k.style["v-text-align"]="left",I(N),A.textpathok=!0,k.on=!0,N.from="0 0",N.to="1000 0.05",C(N,P),C(N,A),C(N,k),this._textVmlEl=N);var F=[v,m],H=N.style;S&&a?(e(F,F,S),P.on=!0,P.matrix=S[0].toFixed(3)+b+S[2].toFixed(3)+b+S[1].toFixed(3)+b+S[3].toFixed(3)+",0,0",P.offset=(g(F[0])||0)+","+(g(F[1])||0),P.origin="0 0",H.left="0px",H.top="0px"):(P.on=!1,H.left=g(v)+"px",H.top=g(m)+"px"),k.string=String(l).replace(/&/g,"&amp;").replace(/"/g,"&quot;");try{k.style.font=w}catch(W){}O(N,"fill",{fill:s.textFill,opacity:s.opacity},this),O(N,"stroke",{stroke:s.textStroke,opacity:s.opacity,lineDash:s.lineDash||null},this),N.style.zIndex=D(this.zlevel,this.z,this.z2),C(t,N)}},H=function(t){A(t,this._textVmlEl),this._textVmlEl=null},W=function(t){C(t,this._textVmlEl)},U=[a,s,l,h,u],Y=0;Y<U.length;Y++){var Z=U[Y].prototype;Z.drawRectText=F,Z.removeRectText=H,Z.appendRectText=W}u.prototype.brushVML=function(t){var e=this.style;null!=e.text?this.drawRectText(t,{x:e.x||0,y:e.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(t)},u.prototype.onRemove=function(t){this.removeRectText(t)},u.prototype.onAdd=function(t){this.appendRectText(t)}}return Hnt}function Znt(){if(Gnt)return Bnt;Gnt=1;var t=mU(),e=Unt(),n=hW().each;function i(t){return parseInt(t,10)}function r(t,n){e.initVML(),this.root=t,this.storage=n;var i=document.createElement("div"),r=document.createElement("div");i.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",r.style.cssText="position:absolute;left:0;top:0;",t.appendChild(i),this._vmlRoot=r,this._vmlViewport=i,this.resize();var o=n.delFromStorage,a=n.addToStorage;n.delFromStorage=function(t){o.call(n,t),t&&t.onRemove&&t.onRemove(r)},n.addToStorage=function(t){t.onAdd&&t.onAdd(r),a.call(n,t)},this._firstPaint=!0}return r.prototype={constructor:r,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0,!0);this._paintList(t)},_paintList:function(t){for(var e=this._vmlRoot,n=0;n<t.length;n++){var i=t[n];i.invisible||i.ignore?(i.__alreadyNotVisible||i.onRemove(e),i.__alreadyNotVisible=!0):(i.__alreadyNotVisible&&i.onAdd(e),i.__alreadyNotVisible=!1,i.__dirty&&(i.beforeBrush&&i.beforeBrush(),(i.brushVML||i.brush).call(i,e),i.afterBrush&&i.afterBrush())),i.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(e),this._firstPaint=!1)},resize:function(t,e){t=null==t?this._getWidth():t,e=null==e?this._getHeight():e;if(this._width!==t||this._height!==e){this._width=t,this._height=e;var n=this._vmlViewport.style;n.width=t+"px",n.height=e+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var t=this.root,e=t.currentStyle;return(t.clientWidth||i(e.width))-i(e.paddingLeft)-i(e.paddingRight)|0},_getHeight:function(){var t=this.root,e=t.currentStyle;return(t.clientHeight||i(e.height))-i(e.paddingTop)-i(e.paddingBottom)|0}},n(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],(function(e){var n;r.prototype[e]=(n=e,function(){t('In IE8.0 VML mode painter not support method "'+n+'"')})})),Bnt=r}var Xnt,jnt,qnt,Knt,$nt,Jnt,Qnt,tit,eit,nit,iit,rit,oit,ait,sit,lit,uit={},hit={};function cit(){if(Xnt)return hit;Xnt=1;return hit.createElement=function(t){return document.createElementNS("http://www.w3.org/2000/svg",t)},hit}function dit(){if(jnt)return uit;jnt=1;var t=cit().createElement,e=VY(),n=_U(),i=GW(),r=UU(),o=lY(),a=bZ(),s=e.CMD,l=Array.prototype.join,u="none",h=Math.round,c=Math.sin,d=Math.cos,p=Math.PI,f=2*Math.PI,g=180/p,v=1e-4;function m(t){return h(1e4*t)/1e4}function y(t){return t<v&&t>-1e-4}function x(t,e){e&&_(t,"transform","matrix("+l.call(e,",")+")")}function _(t,e,n){(!n||"linear"!==n.type&&"radial"!==n.type)&&t.setAttribute(e,n)}function b(t,e,n,i){if(function(t,e){var n=e?t.textFill:t.fill;return null!=n&&n!==u}(e,n)){var r=n?e.textFill:e.fill;_(t,"fill",r="transparent"===r?u:r),_(t,"fill-opacity",null!=e.fillOpacity?e.fillOpacity*e.opacity:e.opacity)}else _(t,"fill",u);if(function(t,e){var n=e?t.textStroke:t.stroke;return null!=n&&n!==u}(e,n)){var o=n?e.textStroke:e.stroke;_(t,"stroke",o="transparent"===o?u:o),_(t,"stroke-width",(n?e.textStrokeWidth:e.lineWidth)/(!n&&e.strokeNoScale?i.getLineScale():1)),_(t,"paint-order",n?"stroke":"fill"),_(t,"stroke-opacity",null!=e.strokeOpacity?e.strokeOpacity:e.opacity),e.lineDash?(_(t,"stroke-dasharray",e.lineDash.join(",")),_(t,"stroke-dashoffset",h(e.lineDashOffset||0))):_(t,"stroke-dasharray",""),e.lineCap&&_(t,"stroke-linecap",e.lineCap),e.lineJoin&&_(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&_(t,"stroke-miterlimit",e.miterLimit)}else _(t,"stroke",u)}var w={};w.brush=function(e){var n=e.style,i=e.__svgEl;i||(i=t("path"),e.__svgEl=i),e.path||e.createPathProxy();var r=e.path;if(e.__dirtyPath){r.beginPath(),r.subPixelOptimize=!1,e.buildPath(r,e.shape),e.__dirtyPath=!1;var o=function(t){for(var e=[],n=t.data,i=t.len(),r=0;r<i;){var o="",a=0;switch(n[r++]){case s.M:o="M",a=2;break;case s.L:o="L",a=2;break;case s.Q:o="Q",a=4;break;case s.C:o="C",a=6;break;case s.A:var l=n[r++],u=n[r++],v=n[r++],x=n[r++],_=n[r++],b=n[r++],w=n[r++],S=n[r++],M=Math.abs(b),I=y(M-f)||(S?b>=f:-b>=f),T=b>0?b%f:b%f+f,C=!1;C=!!I||!y(M)&&T>=p==!!S;var A=m(l+v*d(_)),D=m(u+x*c(_));I&&(b=S?f-1e-4:1e-4-f,C=!0,9===r&&e.push("M",A,D));var L=m(l+v*d(_+b)),k=m(u+x*c(_+b));e.push("A",m(v),m(x),h(w*g),+C,+S,L,k);break;case s.Z:o="Z";break;case s.R:L=m(n[r++]),k=m(n[r++]);var P=m(n[r++]),O=m(n[r++]);e.push("M",L,k,"L",L+P,k,"L",L+P,k+O,"L",L,k+O,"L",L,k)}o&&e.push(o);for(var R=0;R<a;R++)e.push(m(n[r++]))}return e.join(" ")}(r);o.indexOf("NaN")<0&&_(i,"d",o)}b(i,n,!1,e),x(i,e.transform),null!=n.text?D(e,e.getBoundingRect()):k(e)};var S={brush:function(e){var n=e.style,i=n.image;i instanceof HTMLImageElement&&(i=i.src);if(i){var r=n.x||0,o=n.y||0,a=n.width,s=n.height,l=e.__svgEl;l||(l=t("image"),e.__svgEl=l),i!==e.__imageSrc&&(!function(t,e,n){t.setAttributeNS("http://www.w3.org/1999/xlink",e,n)}(l,"href",i),e.__imageSrc=i),_(l,"width",a),_(l,"height",s),_(l,"x",r),_(l,"y",o),x(l,e.transform),null!=n.text?D(e,e.getBoundingRect()):k(e)}}},M={},I=new n,T={},C=[],A={left:"start",right:"end",center:"middle",middle:"middle"},D=function(e,n){var s=e.style,l=e.transform,u=e instanceof a||s.transformText;e.__dirty&&o.normalizeTextStyle(s,!0);var h=s.text;if(null!=h&&(h+=""),o.needDrawText(h,s)){null==h&&(h=""),!u&&l&&(I.copy(n),I.applyTransform(l),n=I);var c=e.__textSvgEl;c||(c=t("text"),e.__textSvgEl=c);var d=c.style,p=s.font||r.DEFAULT_FONT,f=c.__computedFont;p!==c.__styleFont&&(d.font=c.__styleFont=p,f=c.__computedFont=d.font);var g=s.textPadding,v=s.textLineHeight,m=e.__textCotentBlock;m&&!e.__dirtyText||(m=e.__textCotentBlock=r.parsePlainText(h,f,g,v,s.truncate));var y=m.outerHeight,_=m.lineHeight;o.getBoxPosition(T,e,s,n);var w=T.baseX,S=T.baseY,M=T.textAlign||"left",A=T.textVerticalAlign;!function(t,e,n,r,o,a,s){i.identity(C),e&&n&&i.copy(C,n);var l=r.textRotation;if(o&&l){var u=r.textOrigin;"center"===u?(a=o.width/2+o.x,s=o.height/2+o.y):u&&(a=u[0]+o.x,s=u[1]+o.y),C[4]-=a,C[5]-=s,i.rotate(C,C,l),C[4]+=a,C[5]+=s}x(t,C)}(c,u,l,s,n,w,S);var D=w,k=r.adjustTextY(S,y,A);g&&(D=function(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}(w,M,g),k+=g[0]),k+=_/2,b(c,s,!0,e);var P=m.canCacheByTextString,O=e.__tspanList||(e.__tspanList=[]),R=O.length;if(P&&e.__canCacheByTextString&&e.__text===h){if(e.__dirtyText&&R)for(var N=0;N<R;++N)L(O[N],M,D,k+N*_)}else{e.__text=h,e.__canCacheByTextString=P;var E=m.lines,z=E.length;for(N=0;N<z;N++){var V=O[N],B=E[N];V?V.__zrText!==B&&(V.innerHTML="",V.appendChild(document.createTextNode(B))):(V=O[N]=t("tspan"),c.appendChild(V),V.appendChild(document.createTextNode(B))),L(V,M,D,k+N*_)}if(R>z){for(;N<R;N++)c.removeChild(O[N]);O.length=z}}}};function L(t,e,n,i){_(t,"dominant-baseline","middle"),_(t,"text-anchor",A[e]),_(t,"x",n),_(t,"y",i)}function k(t){t&&t.__textSvgEl&&(t.__textSvgEl.parentNode&&t.__textSvgEl.parentNode.removeChild(t.__textSvgEl),t.__textSvgEl=null,t.__tspanList=[],t.__text=null)}return M.drawRectText=D,M.brush=function(t){null!=t.style.text?D(t,!1):k(t)},uit.path=w,uit.image=S,uit.text=M,uit}function pit(){if(Jnt)return $nt;Jnt=1;var t=cit().createElement,e=hW(),n=xZ(),i=cY(),r=bZ(),o=dit(),a=o.path,s=o.image,l=o.text;function u(t,e,n,i,r){this._zrId=t,this._svgRoot=e,this._tagNames="string"==typeof n?[n]:n,this._markLabel=i,this._domName=r||"_dom",this.nextId=0}return u.prototype.createElement=t,u.prototype.getDefs=function(t){var e=this._svgRoot,n=this._svgRoot.getElementsByTagName("defs");return 0===n.length?t?((n=e.insertBefore(this.createElement("defs"),e.firstChild)).contains||(n.contains=function(t){var e=n.children;if(!e)return!1;for(var i=e.length-1;i>=0;--i)if(e[i]===t)return!0;return!1}),n):null:n[0]},u.prototype.update=function(t,e){if(t){var n=this.getDefs(!1);if(t[this._domName]&&n.contains(t[this._domName]))"function"==typeof e&&e(t);else{var i=this.add(t);i&&(t[this._domName]=i)}}},u.prototype.addDom=function(t){this.getDefs(!0).appendChild(t)},u.prototype.removeDom=function(t){var e=this.getDefs(!1);e&&t[this._domName]&&(e.removeChild(t[this._domName]),t[this._domName]=null)},u.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var n=[];return e.each(this._tagNames,(function(e){var i=t.getElementsByTagName(e);n=n.concat([].slice.call(i))})),n},u.prototype.markAllUnused=function(){var t=this.getDoms(),n=this;e.each(t,(function(t){t[n._markLabel]="0"}))},u.prototype.markUsed=function(t){t&&(t[this._markLabel]="1")},u.prototype.removeUnused=function(){var t=this.getDefs(!1);if(t){var n=this.getDoms(),i=this;e.each(n,(function(e){"1"!==e[i._markLabel]&&t.removeChild(e)}))}},u.prototype.getSvgProxy=function(t){return t instanceof n?a:t instanceof i?s:t instanceof r?l:a},u.prototype.getTextSvgElement=function(t){return t.__textSvgEl},u.prototype.getSvgElement=function(t){return t.__svgEl},$nt=u}function fit(){if(ait)return oit;ait=1;var t=cit().createElement,e=hW(),n=mU(),i=xZ(),r=cY(),o=bZ(),a=function(){if(Knt)return qnt;function t(){}function e(t,e,n,i){for(var r=0,o=e.length,a=0,s=0;r<o;r++){var l=e[r];if(l.removed){for(u=[],h=s;h<s+l.count;h++)u.push(h);l.indices=u,s+=l.count}else{for(var u=[],h=a;h<a+l.count;h++)u.push(h);l.indices=u,a+=l.count,l.added||(s+=l.count)}}return e}Knt=1,t.prototype={diff:function(t,n,i){i||(i=function(t,e){return t===e}),this.equals=i;var r=this;t=t.slice();var o=(n=n.slice()).length,a=t.length,s=1,l=o+a,u=[{newPos:-1,components:[]}],h=this.extractCommon(u[0],n,t,0);if(u[0].newPos+1>=o&&h+1>=a){for(var c=[],d=0;d<n.length;d++)c.push(d);return[{indices:c,count:n.length}]}function p(){for(var i=-1*s;i<=s;i+=2){var l,h=u[i-1],c=u[i+1],d=(c?c.newPos:0)-i;h&&(u[i-1]=void 0);var p=h&&h.newPos+1<o,f=c&&0<=d&&d<a;if(p||f){if(!p||f&&h.newPos<c.newPos?(l={newPos:(g=c).newPos,components:g.components.slice(0)},r.pushComponent(l.components,void 0,!0)):((l=h).newPos++,r.pushComponent(l.components,!0,void 0)),d=r.extractCommon(l,n,t,i),l.newPos+1>=o&&d+1>=a)return e(r,l.components);u[i]=l}else u[i]=void 0}var g;s++}for(;s<=l;){var f=p();if(f)return f}},pushComponent:function(t,e,n){var i=t[t.length-1];i&&i.added===e&&i.removed===n?t[t.length-1]={count:i.count+1,added:e,removed:n}:t.push({count:1,added:e,removed:n})},extractCommon:function(t,e,n,i){for(var r=e.length,o=n.length,a=t.newPos,s=a-i,l=0;a+1<r&&s+1<o&&this.equals(e[a+1],n[s+1]);)a++,s++,l++;return l&&t.components.push({count:l}),t.newPos=a,s},tokenize:function(t){return t.slice()},join:function(t){return t.slice()}};var n=new t;return qnt=function(t,e,i){return n.diff(t,e,i)}}(),s=function(){if(tit)return Qnt;tit=1;var t=pit(),e=hW(),n=mU(),i=KW();function r(e,n){t.call(this,e,n,["linearGradient","radialGradient"],"__gradient_in_use__")}return e.inherits(r,t),r.prototype.addWithoutUpdate=function(t,n){if(n&&n.style){var i=this;e.each(["fill","stroke"],(function(e){if(n.style[e]&&("linear"===n.style[e].type||"radial"===n.style[e].type)){var r,o=n.style[e],a=i.getDefs(!0);o._dom?(r=o._dom,a.contains(o._dom)||i.addDom(r)):r=i.add(o),i.markUsed(n);var s=r.getAttribute("id");t.setAttribute(e,"url(#"+s+")")}}))}},r.prototype.add=function(t){var e;if("linear"===t.type)e=this.createElement("linearGradient");else{if("radial"!==t.type)return n("Illegal gradient type."),null;e=this.createElement("radialGradient")}return t.id=t.id||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-gradient-"+t.id),this.updateDom(t,e),this.addDom(e),e},r.prototype.update=function(e){var n=this;t.prototype.update.call(this,e,(function(){var t=e.type,i=e._dom.tagName;"linear"===t&&"linearGradient"===i||"radial"===t&&"radialGradient"===i?n.updateDom(e,e._dom):(n.removeDom(e),n.add(e))}))},r.prototype.updateDom=function(t,e){if("linear"===t.type)e.setAttribute("x1",t.x),e.setAttribute("y1",t.y),e.setAttribute("x2",t.x2),e.setAttribute("y2",t.y2);else{if("radial"!==t.type)return void n("Illegal gradient type.");e.setAttribute("cx",t.x),e.setAttribute("cy",t.y),e.setAttribute("r",t.r)}t.global?e.setAttribute("gradientUnits","userSpaceOnUse"):e.setAttribute("gradientUnits","objectBoundingBox"),e.innerHTML="";for(var r=t.colorStops,o=0,a=r.length;o<a;++o){var s=this.createElement("stop");s.setAttribute("offset",100*r[o].offset+"%");var l=r[o].color;if(l.indexOf("rgba")>-1){var u=i.parse(l)[3],h=i.toHex(l);s.setAttribute("stop-color","#"+h),s.setAttribute("stop-opacity",u)}else s.setAttribute("stop-color",r[o].color);e.appendChild(s)}t._dom=e},r.prototype.markUsed=function(e){if(e.style){var n=e.style.fill;n&&n._dom&&t.prototype.markUsed.call(this,n._dom),(n=e.style.stroke)&&n._dom&&t.prototype.markUsed.call(this,n._dom)}},Qnt=r}(),l=function(){if(nit)return eit;nit=1;var t=pit(),e=hW(),n=GW();function i(e,n){t.call(this,e,n,"clipPath","__clippath_in_use__")}return e.inherits(i,t),i.prototype.update=function(t){var e=this.getSvgElement(t);e&&this.updateDom(e,t.__clipPaths,!1);var n=this.getTextSvgElement(t);n&&this.updateDom(n,t.__clipPaths,!0),this.markUsed(t)},i.prototype.updateDom=function(t,e,i){if(e&&e.length>0){var r,o,a=this.getDefs(!0),s=e[0],l=i?"_textDom":"_dom";s[l]?(o=s[l].getAttribute("id"),r=s[l],a.contains(r)||a.appendChild(r)):(o="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(r=this.createElement("clipPath")).setAttribute("id",o),a.appendChild(r),s[l]=r);var u=this.getSvgProxy(s);if(s.transform&&s.parent.invTransform&&!i){var h=Array.prototype.slice.call(s.transform);n.mul(s.transform,s.parent.invTransform,s.transform),u.brush(s),s.transform=h}else u.brush(s);var c=this.getSvgElement(s);r.innerHTML="",r.appendChild(c.cloneNode()),t.setAttribute("clip-path","url(#"+o+")"),e.length>1&&this.updateDom(r,e.slice(1),i)}else t&&t.setAttribute("clip-path","none")},i.prototype.markUsed=function(n){var i=this;n.__clipPaths&&e.each(n.__clipPaths,(function(e){e._dom&&t.prototype.markUsed.call(i,e._dom),e._textDom&&t.prototype.markUsed.call(i,e._textDom)}))},eit=i}(),u=function(){if(rit)return iit;rit=1;var t=pit();function e(e,n){t.call(this,e,n,["filter"],"__filter_in_use__","_shadowDom")}function n(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY||t.textShadowBlur||t.textShadowOffsetX||t.textShadowOffsetY)}return hW().inherits(e,t),e.prototype.addWithoutUpdate=function(t,e){if(e&&n(e.style)){var i;e._shadowDom?(i=e._shadowDom,this.getDefs(!0).contains(e._shadowDom)||this.addDom(i)):i=this.add(e),this.markUsed(e);var r=i.getAttribute("id");t.style.filter="url(#"+r+")"}},e.prototype.add=function(t){var e=this.createElement("filter");return t._shadowDomId=t._shadowDomId||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-shadow-"+t._shadowDomId),this.updateDom(t,e),this.addDom(e),e},e.prototype.update=function(e,i){if(n(i.style)){var r=this;t.prototype.update.call(this,i,(function(){r.updateDom(i,i._shadowDom)}))}else this.remove(e,i)},e.prototype.remove=function(t,e){null!=e._shadowDomId&&(this.removeDom(t),t.style.filter="")},e.prototype.updateDom=function(t,e){var n=e.getElementsByTagName("feDropShadow");n=0===n.length?this.createElement("feDropShadow"):n[0];var i,r,o,a,s=t.style,l=t.scale&&t.scale[0]||1,u=t.scale&&t.scale[1]||1;if(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)i=s.shadowOffsetX||0,r=s.shadowOffsetY||0,o=s.shadowBlur,a=s.shadowColor;else{if(!s.textShadowBlur)return void this.removeDom(e,s);i=s.textShadowOffsetX||0,r=s.textShadowOffsetY||0,o=s.textShadowBlur,a=s.textShadowColor}n.setAttribute("dx",i/l),n.setAttribute("dy",r/u),n.setAttribute("flood-color",a);var h=o/2/l+" "+o/2/u;n.setAttribute("stdDeviation",h),e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width",Math.ceil(o/2*200)+"%"),e.setAttribute("height",Math.ceil(o/2*200)+"%"),e.appendChild(n),t._shadowDom=e},e.prototype.markUsed=function(e){e._shadowDom&&t.prototype.markUsed.call(this,e._shadowDom)},iit=e}(),h=dit(),c=h.path,d=h.image,p=h.text;function f(t){return parseInt(t,10)}function g(t,e){return e&&t&&e.parentNode!==t}function v(t,e,n){if(g(t,e)&&n){var i=n.nextSibling;i?t.insertBefore(e,i):t.appendChild(e)}}function m(t,e){if(g(t,e)){var n=t.firstChild;n?t.insertBefore(e,n):t.appendChild(e)}}function y(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)}function x(t){return t.__textSvgEl}function _(t){return t.__svgEl}var b=function(n,i,r,o){this.root=n,this.storage=i,this._opts=r=e.extend({},r||{});var a=t("svg");a.setAttribute("xmlns","http://www.w3.org/2000/svg"),a.setAttribute("version","1.1"),a.setAttribute("baseProfile","full"),a.style.cssText="user-select:none;position:absolute;left:0;top:0;";var h=t("g");a.appendChild(h);var c=t("g");a.appendChild(c),this.gradientManager=new s(o,c),this.clipPathManager=new l(o,c),this.shadowManager=new u(o,c);var d=document.createElement("div");d.style.cssText="overflow:hidden;position:relative",this._svgDom=a,this._svgRoot=c,this._backgroundRoot=h,this._viewport=d,n.appendChild(d),d.appendChild(a),this.resize(r.width,r.height),this._visibleList=[]};return b.prototype={constructor:b,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},setBackgroundColor:function(e){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var n=t("rect");n.setAttribute("width",this.getWidth()),n.setAttribute("height",this.getHeight()),n.setAttribute("x",0),n.setAttribute("y",0),n.setAttribute("id",0),n.style.fill=e,this._backgroundRoot.appendChild(n),this._backgroundNode=n},_paintList:function(t){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var e,n,s=this._svgRoot,l=this._visibleList,u=t.length,h=[];for(e=0;e<u;e++){var f=t[e],g=(n=f)instanceof i?c:n instanceof r?d:n instanceof o?p:c,b=_(f)||x(f);f.invisible||(f.__dirty&&(g&&g.brush(f),this.clipPathManager.update(f),f.style&&(this.gradientManager.update(f.style.fill),this.gradientManager.update(f.style.stroke),this.shadowManager.update(b,f)),f.__dirty=!1),h.push(f))}var w,S=a(l,h);for(e=0;e<S.length;e++){if((T=S[e]).removed)for(var M=0;M<T.count;M++){b=_(f=l[T.indices[M]]);var I=x(f);y(s,b),y(s,I)}}for(e=0;e<S.length;e++){var T;if((T=S[e]).added)for(M=0;M<T.count;M++){b=_(f=h[T.indices[M]]),I=x(f);w?v(s,b,w):m(s,b),b?v(s,I,b):w?v(s,I,w):m(s,I),v(s,I,b),w=I||b||w,this.gradientManager.addWithoutUpdate(b||I,f),this.shadowManager.addWithoutUpdate(b||I,f),this.clipPathManager.markUsed(f)}else if(!T.removed)for(M=0;M<T.count;M++){b=_(f=h[T.indices[M]]),I=x(f),b=_(f),I=x(f);this.gradientManager.markUsed(f),this.gradientManager.addWithoutUpdate(b||I,f),this.shadowManager.markUsed(f),this.shadowManager.addWithoutUpdate(b||I,f),this.clipPathManager.markUsed(f),I&&v(s,I,b),w=b||I||w}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=h},_getDefs:function(e){var n,i=this._svgDom;return 0===(n=i.getElementsByTagName("defs")).length?e?((n=i.insertBefore(t("defs"),i.firstChild)).contains||(n.contains=function(t){var e=n.children;if(!e)return!1;for(var i=e.length-1;i>=0;--i)if(e[i]===t)return!0;return!1}),n):null:n[0]},resize:function(t,e){var n=this._viewport;n.style.display="none";var i=this._opts;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!==t||this._height!==e){this._width=t,this._height=e;var r=n.style;r.width=t+"px",r.height=e+"px";var o=this._svgDom;o.setAttribute("width",t),o.setAttribute("height",e)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",t),this._backgroundNode.setAttribute("height",e))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,n=["width","height"][t],i=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=e[n]&&"auto"!==e[n])return parseFloat(e[n]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[i]||f(s[n])||f(a.style[n]))-(f(s[r])||0)-(f(s[o])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){return this.refresh(),"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(this._svgDom.outerHTML.replace(/></g,">\n\r<"))}},e.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],(function(t){var e;b.prototype[t]=(e=t,function(){n('In SVG mode painter not support method "'+e+'"')})})),oit=b}function git(){return lit||(lit=1,function(t){var e=NK();!function(){for(var n in e){if(null==e||!e.hasOwnProperty(n)||"default"===n||"__esModule"===n)return;t[n]=e[n]}}();var n=RK();!function(){for(var e in n){if(null==n||!n.hasOwnProperty(e)||"default"===e||"__esModule"===e)return;t[e]=n[e]}}(),nq(),sJ(),IJ(),nQ(),dQ(),EQ(),W0(),p1(),G1(),U2(),t5(),h5(),i3(),y3(),O3(),X3(),i4(),T4(),E4(),U4(),Z6(),u8(),w8(),S8||(S8=1,aJ(),H6(),W6()),n7(),u7(),U6(),t3(),y7(),b7(),C9(),G9(),W6(),ltt(),function(){if(utt)return htt;utt=1;var t=hW(),e=NK(),n=vX(),i=zX().getLayoutRect,r=EX().windowOpen;e.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),e.extendComponentView({type:"title",render:function(e,o,a){if(this.group.removeAll(),e.get("show")){var s=this.group,l=e.getModel("textStyle"),u=e.getModel("subtextStyle"),h=e.get("textAlign"),c=t.retrieve2(e.get("textBaseline"),e.get("textVerticalAlign")),d=new n.Text({style:n.setTextStyle({},l,{text:e.get("text"),textFill:l.getTextColor()},{disableBox:!0}),z2:10}),p=d.getBoundingRect(),f=e.get("subtext"),g=new n.Text({style:n.setTextStyle({},u,{text:f,textFill:u.getTextColor(),y:p.height+e.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),v=e.get("link"),m=e.get("sublink"),y=e.get("triggerEvent",!0);d.silent=!v&&!y,g.silent=!m&&!y,v&&d.on("click",(function(){r(v,"_"+e.get("target"))})),m&&g.on("click",(function(){r(m,"_"+e.get("subtarget"))})),d.eventData=g.eventData=y?{componentType:"title",componentIndex:e.componentIndex}:null,s.add(d),f&&s.add(g);var x=s.getBoundingRect(),_=e.getBoxLayoutParams();_.width=x.width,_.height=x.height;var b=i(_,{width:a.getWidth(),height:a.getHeight()},e.get("padding"));h||("middle"===(h=e.get("left")||e.get("right"))&&(h="center"),"right"===h?b.x+=b.width:"center"===h&&(b.x+=b.width/2)),c||("center"===(c=e.get("top")||e.get("bottom"))&&(c="middle"),"bottom"===c?b.y+=b.height:"middle"===c&&(b.y+=b.height/2),c=c||"top"),s.attr("position",[b.x,b.y]);var w={textAlign:h,textVerticalAlign:c};d.setStyle(w),g.setStyle(w),x=s.getBoundingRect();var S=b.margin,M=e.getItemStyle(["color","opacity"]);M.fill=e.get("backgroundColor");var I=new n.Rect({shape:{x:x.x-S[3],y:x.y-S[0],width:x.width+S[1]+S[3],height:x.height+S[0]+S[2],r:e.get("borderRadius")},style:M,subPixelOptimize:!0,silent:!0});s.add(I)}}})}(),ktt(),jtt(),net(),cet(),Pet(),Det(),Xet||(Xet=1,Bet(),Ket()),Ket(),Bet(),Rnt||(Rnt=1,Ant(),Ent()),Ant(),Ent(),Fnt||(Fnt=1,Ynt(),(0,fY().registerPainter)("vml",Znt())),sit||(sit=1,dit(),(0,fY().registerPainter)("svg",fit()))}($H)),$H}O_([nw]),O_([function(t){t.registerPainter("svg",qH)}]),O_([hS,ES,eM,function(t){O_(tI),t.registerSeriesModel(nM),t.registerChartView(aM),t.registerLayout(aS("scatter"))},function(t){O_(fI),t.registerChartView(oI),t.registerSeriesModel(aI),t.registerLayout(eI),t.registerProcessor(WS("radar")),t.registerPreprocessor(rI)},WT,function(t){t.registerChartView(eC),t.registerSeriesModel(fC),t.registerLayout(vC),t.registerVisual(mC),function(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=t.dataIndex,i=e.getData().tree.getNodeByDataIndex(n);i.isExpand=!i.isExpand}))})),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var i=BT(e.coordinateSystem,t,void 0,n);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)}))}))}(t)},function(t){t.registerSeriesModel(_C),t.registerChartView(OC),t.registerVisual(KC),t.registerLayout(uA),function(t){for(var e=0;e<yC.length;e++)t.registerAction({type:yC[e],update:"updateView"},xt);t.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"treemap",query:t},(function(e,n){var i=hC(t,["treemapZoomToNode","treemapRootToNode"],e);if(i){var r=e.getViewRoot();r&&(t.direction=dC(r,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}}))}))}(t)},function(t){t.registerChartView(hD),t.registerSeriesModel(dD),t.registerProcessor(gA),t.registerVisual(vA),t.registerVisual(yA),t.registerLayout(AA),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,EA),t.registerLayout(VA),t.registerCoordinateSystem("graphView",{dimensions:AT.dimensions,create:BA}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},xt),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},xt),t.registerAction(pD,(function(t,e,n){e.eachComponent({mainType:"series",query:t},(function(e){var i=BT(e.coordinateSystem,t,void 0,n);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)}))}))},function(t){t.registerChartView(mD),t.registerSeriesModel(yD)},function(t){t.registerChartView(bD),t.registerSeriesModel(wD),t.registerLayout(SD),t.registerProcessor(WS("funnel"))},function(t){O_(qL),t.registerChartView(MD),t.registerSeriesModel(DD),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,PD)},function(t){t.registerChartView(JL),t.registerSeriesModel(tk),t.registerLayout(ek),t.registerVisual(pk),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))},function(t){t.registerSeriesModel(gk),t.registerChartView(vk),t.registerLayout(Sk),t.registerTransform(Mk)},function(t){t.registerChartView(Rk),t.registerSeriesModel(Yk),t.registerPreprocessor(Zk),t.registerVisual(Pk),t.registerLayout(Xk)},function(t){t.registerChartView($k),t.registerSeriesModel(Jk),t.registerLayout(aS("effectScatter"))},function(t){t.registerChartView(aP),t.registerSeriesModel(hP),t.registerLayout(oP),t.registerVisual(dP)},function(t){t.registerChartView(gP),t.registerSeriesModel(vP)},function(t){t.registerChartView(_P),t.registerSeriesModel(VP),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,F(Ux,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Yx("pictorialBar"))},function(t){t.registerChartView(BP),t.registerSeriesModel(GP),t.registerLayout(FP),t.registerProcessor(WS("themeRiver"))},function(t){t.registerChartView(ZP),t.registerSeriesModel(XP),t.registerLayout(F(KP,"sunburst")),t.registerProcessor(F(WS,"sunburst")),t.registerVisual(JP),function(t){t.registerAction({type:UP,update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e,n){var i=hC(t,[UP],e);if(i){var r=e.getViewRoot();r&&(t.direction=dC(r,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}}))})),t.registerAction({type:YP,update:"none"},(function(t,e,n){t=C({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e){var n=hC(t,[YP],e);n&&(t.dataIndex=n.node.dataIndex)})),n.dispatchAction(C(t,{type:"highlight"}))})),t.registerAction({type:"sunburstUnhighlight",update:"updateView"},(function(t,e,n){t=C({},t),n.dispatchAction(C(t,{type:"downplay"}))}))}(t)},function(t){t.registerChartView(WO),t.registerSeriesModel(nO)}]),O_(YR),O_((function(t){O_(UR),HM.registerAxisPointerClass("PolarAxisPointer",ZR),t.registerCoordinateSystem("polar",aN),t.registerComponentModel(jR),t.registerComponentView(wN),fM(t,"angle",KR,_N),fM(t,"radius",$R,bN),t.registerComponentView(cN),t.registerComponentView(gN),t.registerLayout(F(xN,"bar"))})),O_(HT),O_((function(t){O_(UR),HM.registerAxisPointerClass("SingleAxisPointer",EN),t.registerComponentView(GN),t.registerComponentView(TN),t.registerComponentModel(AN),fM(t,"single",AN,AN.defaultOption),t.registerCoordinateSystem("single",ON)})),O_(qL),O_((function(t){t.registerComponentModel(FN),t.registerComponentView(WN),t.registerCoordinateSystem("calendar",YN)})),O_(oE),O_((function(t){t.registerComponentModel(AE),t.registerComponentView(LE),TE("saveAsImage",kE),TE("magicType",RE),TE("dataView",FE),TE("dataZoom",uz),TE("restore",ZE),O_(SE)})),O_(Oz),O_(UR),O_((function(t){t.registerComponentView(Jz),t.registerComponentModel(Qz),t.registerPreprocessor(Nz),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,Xz),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},xt),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},xt),TE("brush",nV)})),O_(oV),O_((function(t){t.registerComponentModel(sV),t.registerComponentView(dV),t.registerSubTypeDefaulter("timeline",(function(){return"slider"})),function(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e,n){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),A({currentIndex:i.option.currentIndex},t)})),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)}))}(t),t.registerPreprocessor(gV)})),O_((function(t){t.registerComponentModel(wV),t.registerComponentView(RV),t.registerPreprocessor((function(t){yV(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))})),O_((function(t){t.registerComponentModel(NV),t.registerComponentView(HV),t.registerPreprocessor((function(t){yV(t.series,"markLine")&&(t.markLine=t.markLine||{})}))})),O_((function(t){t.registerComponentModel(WV),t.registerComponentView($V),t.registerPreprocessor((function(t){yV(t.series,"markArea")&&(t.markArea=t.markArea||{})}))})),O_(yB),O_(BB),O_(DB),O_(VB),O_(IG),O_(xG),O_(MG),O_((function(t){t.registerPreprocessor(LG),t.registerVisual(t.PRIORITY.VISUAL.ARIA,DG)})),O_(UG),O_(ow),O_(zF),O_(qb);export{T_ as $,ub as A,ux as B,Nd as C,qn as D,Ne as E,lw as F,hw as G,Z_ as H,E as I,so as J,C_ as K,yd as L,Mc as M,ne as N,bx as O,dd as P,X as Q,Bs as R,lx as S,xd as T,_d as U,Cy as V,xg as W,kg as X,Wv as Y,Ps as Z,Kr as _,L as a,mw as a0,dw as a1,jr as a2,C as a3,Iw as a4,oV as a5,Oz as a6,YR as a7,BB as a8,oE as a9,ow as aa,UG as ab,yB as ac,IG as ad,WT as ae,qb as af,zF as ag,nw as ah,git as ai,gy as aj,hS as ak,ES as al,eM as am,Sy as b,_y as c,I as d,R as e,A as f,el as g,Hr as h,H as i,cm as j,Hs as k,nc as l,N as m,Cg as n,Qr as o,Xn as p,aw as q,wy as r,k as s,Ad as t,A_ as u,D_ as v,M as w,F as x,O_ as y,Ry as z};
