import{b as kL,g as OL,c as bm,a as NL,d as BL,e as wm,f as VL,h as zL,i as Tm,j as GL,k as FL,l as Cm,m as HL,n as $L}from"./index.ff1c8ac7.js";import{_ as wn,k as WL,r as la,a as Rs,I as To,b as Da,o as gt,c as _t,f as $,d as je,e as Ir,F as Ye,h as Ze,n as Mw,t as Xt,J as UL,K as Lw,H as YL,p as Co,l as Ao,L as le,M as wl,N as Tl,g as $t,i as pn,C as gh,O as ZL,s as XL,P as qL}from"./index.699f1124.js";import{w as KL}from"./index.c2385adf.js";import"./index.efab2b32.js";/*! *****************************************************************************
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 Dd=function(r,e){return Dd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(t[i]=a[i])},Dd(r,e)};function k(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Dd(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var JL=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),QL=function(){function r(){this.browser=new JL,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=typeof window!="undefined"}return r}(),Gi=new QL;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Gi.wxa=!0,Gi.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?Gi.worker=!0:typeof navigator=="undefined"?(Gi.node=!0,Gi.svgSupported=!0):jL(navigator.userAgent,Gi);function jL(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),n=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),i&&(t.ie=!0,t.version=i[1]),n&&(t.edge=!0,t.version=n[1],t.newEdge=+n[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect!="undefined",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document!="undefined";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var It=Gi,cg=12,Iw="sans-serif",ti=cg+"px "+Iw,tI=20,eI=100,rI="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function aI(r){var e={};if(typeof JSON=="undefined")return e;for(var t=0;t<r.length;t++){var a=String.fromCharCode(t+32),i=(r.charCodeAt(t)-tI)/eI;e[a]=i}return e}var iI=aI(rI),pa={createCanvas:function(){return typeof document!="undefined"&&document.createElement("canvas")},measureText:function(){var r,e;return function(t,a){if(!r){var i=pa.createCanvas();r=i&&i.getContext("2d")}if(r)return e!==a&&(e=r.font=a||ti),r.measureText(t);t=t||"",a=a||ti;var n=/^([0-9]*?)px$/.exec(a),o=+(n&&n[1])||cg,s=0;if(a.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=iI[t[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,e,t){var a=new Image;return a.onload=e,a.onerror=t,a.src=r,a}},Pw=Yr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),Rw=Yr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),Do=Object.prototype.toString,yh=Array.prototype,nI=yh.forEach,oI=yh.filter,dg=yh.slice,sI=yh.map,Am=function(){}.constructor,ql=Am?Am.prototype:null,pg="__proto__",lI=2311;function Ew(){return lI++}function gg(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console!="undefined"&&console.error.apply(console,r)}function et(r){if(r==null||typeof r!="object")return r;var e=r,t=Do.call(r);if(t==="[object Array]"){if(!Es(r)){e=[];for(var a=0,i=r.length;a<i;a++)e[a]=et(r[a])}}else if(Rw[t]){if(!Es(r)){var n=r.constructor;if(n.from)e=n.from(r);else{e=new n(r.length);for(var a=0,i=r.length;a<i;a++)e[a]=r[a]}}}else if(!Pw[t]&&!Es(r)&&!qs(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==pg&&(e[o]=et(r[o]))}return e}function ft(r,e,t){if(!tt(e)||!tt(r))return t?et(e):r;for(var a in e)if(e.hasOwnProperty(a)&&a!==pg){var i=r[a],n=e[a];tt(n)&&tt(i)&&!z(n)&&!z(i)&&!qs(n)&&!qs(i)&&!Dm(n)&&!Dm(i)&&!Es(n)&&!Es(i)?ft(i,n,t):(t||!(a in r))&&(r[a]=et(e[a]))}return r}function yg(r,e){for(var t=r[0],a=1,i=r.length;a<i;a++)t=ft(t,r[a],e);return t}function V(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==pg&&(r[t]=e[t]);return r}function Q(r,e,t){for(var a=St(e),i=0;i<a.length;i++){var n=a[i];(t?e[n]!=null:r[n]==null)&&(r[n]=e[n])}return r}pa.createCanvas;function ct(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,a=r.length;t<a;t++)if(r[t]===e)return t}return-1}function uI(r,e){var t=r.prototype;function a(){}a.prototype=e.prototype,r.prototype=new a;for(var i in t)t.hasOwnProperty(i)&&(r.prototype[i]=t[i]);r.prototype.constructor=r,r.superClass=e}function ee(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(e),i=0;i<a.length;i++){var n=a[i];n!=="constructor"&&(t?e[n]!=null:r[n]==null)&&(r[n]=e[n])}else Q(r,e,t)}function xe(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function A(r,e,t){if(!!(r&&e))if(r.forEach&&r.forEach===nI)r.forEach(e,t);else if(r.length===+r.length)for(var a=0,i=r.length;a<i;a++)e.call(t,r[a],a,r);else for(var n in r)r.hasOwnProperty(n)&&e.call(t,r[n],n,r)}function G(r,e,t){if(!r)return[];if(!e)return mg(r);if(r.map&&r.map===sI)return r.map(e,t);for(var a=[],i=0,n=r.length;i<n;i++)a.push(e.call(t,r[i],i,r));return a}function Yr(r,e,t,a){if(!!(r&&e)){for(var i=0,n=r.length;i<n;i++)t=e.call(a,t,r[i],i,r);return t}}function Et(r,e,t){if(!r)return[];if(!e)return mg(r);if(r.filter&&r.filter===oI)return r.filter(e,t);for(var a=[],i=0,n=r.length;i<n;i++)e.call(t,r[i],i,r)&&a.push(r[i]);return a}function fI(r,e,t){if(!!(r&&e)){for(var a=0,i=r.length;a<i;a++)if(e.call(t,r[a],a,r))return r[a]}}function St(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function hI(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return function(){return r.apply(e,t.concat(dg.call(arguments)))}}var Y=ql&&J(ql.bind)?ql.call.bind(ql.bind):hI;function ot(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(dg.call(arguments)))}}function z(r){return Array.isArray?Array.isArray(r):Do.call(r)==="[object Array]"}function J(r){return typeof r=="function"}function U(r){return typeof r=="string"}function Md(r){return Do.call(r)==="[object String]"}function Ct(r){return typeof r=="number"}function tt(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function Dm(r){return!!Pw[Do.call(r)]}function Xe(r){return!!Rw[Do.call(r)]}function qs(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function mh(r){return r.colorStops!=null}function vI(r){return r.image!=null}function cI(r){return Do.call(r)==="[object RegExp]"}function Ks(r){return r!==r}function ue(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,a=r.length;t<a;t++)if(r[t]!=null)return r[t]}function ut(r,e){return r!=null?r:e}function ua(r,e,t){return r!=null?r:e!=null?e:t}function mg(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return dg.apply(r,e)}function _g(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function Le(r,e){if(!r)throw new Error(e)}function br(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var kw="__ec_primitive__";function Sf(r){r[kw]=!0}function Es(r){return r[kw]}var dI=function(){function r(e){this.data={};var t=z(e);this.data={};var a=this;e instanceof r?e.each(i):e&&A(e,i);function i(n,o){t?a.set(n,o):a.set(o,n)}}return r.prototype.get=function(e){return this.data.hasOwnProperty(e)?this.data[e]:null},r.prototype.set=function(e,t){return this.data[e]=t},r.prototype.each=function(e,t){for(var a in this.data)this.data.hasOwnProperty(a)&&e.call(t,this.data[a],a)},r.prototype.keys=function(){return St(this.data)},r.prototype.removeKey=function(e){delete this.data[e]},r}();function K(r){return new dI(r)}function xf(r,e){for(var t=new r.constructor(r.length+e.length),a=0;a<r.length;a++)t[a]=r[a];for(var i=r.length,a=0;a<e.length;a++)t[a+i]=e[a];return t}function _h(r,e){var t;if(Object.create)t=Object.create(r);else{var a=function(){};a.prototype=r,t=new a}return e&&V(t,e),t}function Ow(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Z(r,e){return r.hasOwnProperty(e)}function jt(){}var Qu=180/Math.PI;function Tn(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function Ce(r,e){return r[0]=e[0],r[1]=e[1],r}function fa(r){return[r[0],r[1]]}function pI(r,e,t){return r[0]=e,r[1]=t,r}function Mm(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function Ld(r,e,t,a){return r[0]=e[0]+t[0]*a,r[1]=e[1]+t[1]*a,r}function Ji(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function Id(r){return Math.sqrt(gI(r))}function gI(r){return r[0]*r[0]+r[1]*r[1]}function ju(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function Mo(r,e){var t=Id(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function Pd(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var Ga=Pd;function yI(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var nn=yI;function tf(r,e,t,a){return r[0]=e[0]+a*(t[0]-e[0]),r[1]=e[1]+a*(t[1]-e[1]),r}function ce(r,e,t){var a=e[0],i=e[1];return r[0]=t[0]*a+t[2]*i+t[4],r[1]=t[1]*a+t[3]*i+t[5],r}function Fa(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function Ha(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var Pn=function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r}(),mI=function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Pn(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var a=e.offsetX,i=e.offsetY,n=a-this._x,o=i-this._y;this._x=a,this._y=i,t.drift(n,o,e),this.handler.dispatchToElement(new Pn(t,e),"drag",e.event);var s=this.handler.findHover(a,i,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Pn(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Pn(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Pn(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Pn(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r}(),_I=mI,SI=function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,a,i){this._$handlers||(this._$handlers={});var n=this._$handlers;if(typeof t=="function"&&(i=a,a=t,t=null),!a||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),n[e]||(n[e]=[]);for(var s=0;s<n[e].length;s++)if(n[e][s].h===a)return this;var l={h:a,query:t,ctx:i||this,callAtLast:a.zrEventfulCallAtLast},u=n[e].length-1,f=n[e][u];return f&&f.callAtLast?n[e].splice(u,0,l):n[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var a=this._$handlers;if(!a)return this;if(!e)return this._$handlers={},this;if(t){if(a[e]){for(var i=[],n=0,o=a[e].length;n<o;n++)a[e][n].h!==t&&i.push(a[e][n]);a[e]=i}a[e]&&a[e].length===0&&delete a[e]}else delete a[e];return this},r.prototype.trigger=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var i=this._$handlers[e],n=this._$eventProcessor;if(i)for(var o=t.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(n&&n.filter&&u.query!=null&&!n.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return n&&n.afterTrigger&&n.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var i=this._$handlers[e],n=this._$eventProcessor;if(i)for(var o=t.length,s=t[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(n&&n.filter&&f.query!=null&&!n.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,t[0]);break;case 2:f.h.call(s,t[0],t[1]);break;default:f.h.apply(s,t.slice(1,o-1));break}}return n&&n.afterTrigger&&n.afterTrigger(e),this},r}(),cr=SI,xI=Math.log(2);function Rd(r,e,t,a,i,n){var o=a+"-"+i,s=r.length;if(n.hasOwnProperty(o))return n[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~i)/xI);return r[t][l]}for(var u=a|1<<t,f=t+1;a&1<<f;)f++;for(var h=0,c=0,v=0;c<s;c++){var d=1<<c;d&i||(h+=(v%2?-1:1)*r[t][c]*Rd(r,e-1,f,u,i|d,n),v++)}return n[o]=h,h}function Lm(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],a={},i=Rd(t,8,0,0,0,a);if(i!==0){for(var n=[],o=0;o<8;o++)for(var s=0;s<8;s++)n[s]==null&&(n[s]=0),n[s]+=((o+s)%2?-1:1)*Rd(t,7,o===0?1:0,1<<o,1<<s,a)/i*e[o];return function(l,u,f){var h=u*n[6]+f*n[7]+1;l[0]=(u*n[0]+f*n[1]+n[2])/h,l[1]=(u*n[3]+f*n[4]+n[5])/h}}}var Im="___zrEVENTSAVED",ov=[];function bI(r,e,t,a,i){return Ed(ov,e,a,i,!0)&&Ed(r,t,ov[0],ov[1])}function Ed(r,e,t,a,i){if(e.getBoundingClientRect&&It.domSupported&&!Nw(e)){var n=e[Im]||(e[Im]={}),o=wI(e,n),s=TI(o,n,i);if(s)return s(r,t,a),!0}return!1}function wI(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var a=["left","right"],i=["top","bottom"],n=0;n<4;n++){var o=document.createElement("div"),s=o.style,l=n%2,u=(n>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",i[u]+":0",a[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function TI(r,e,t){for(var a=t?"invTrans":"trans",i=e[a],n=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,c=f.left,v=f.top;o.push(c,v),l=l&&n&&c===n[h]&&v===n[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[a]=t?Lm(s,o):Lm(o,s))}function Nw(r){return r.nodeName.toUpperCase()==="CANVAS"}var CI=/([&<>"'])/g,AI={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ke(r){return r==null?"":(r+"").replace(CI,function(e,t){return AI[t]})}var DI=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,sv=[],MI=It.browser.firefox&&+It.browser.version.split(".")[0]<39;function kd(r,e,t,a){return t=t||{},a?Pm(r,e,t):MI&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):Pm(r,e,t),t}function Pm(r,e,t){if(It.domSupported&&r.getBoundingClientRect){var a=e.clientX,i=e.clientY;if(Nw(r)){var n=r.getBoundingClientRect();t.zrX=a-n.left,t.zrY=i-n.top;return}else if(Ed(sv,r,a,i)){t.zrX=sv[0],t.zrY=sv[1];return}}t.zrX=t.zrY=0}function Sg(r){return r||window.event}function er(r,e,t){if(e=Sg(e),e.zrX!=null)return e;var a=e.type,i=a&&a.indexOf("touch")>=0;if(i){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&kd(r,o,e,t)}else{kd(r,e,e,t);var n=LI(e);e.zrDelta=n?n/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&DI.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function LI(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;if(t==null||a==null)return e;var i=Math.abs(a!==0?a:t),n=a>0?-1:a<0?1:t>0?-1:1;return 3*i*n}function Od(r,e,t,a){r.addEventListener(e,t,a)}function II(r,e,t,a){r.removeEventListener(e,t,a)}var ga=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function Rm(r){return r.which===2||r.which===3}var PI=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var i=e.touches;if(!!i){for(var n={points:[],touches:[],target:t,event:e},o=0,s=i.length;o<s;o++){var l=i[o],u=kd(a,l,{});n.points.push([u.zrX,u.zrY]),n.touches.push(l)}this._track.push(n)}},r.prototype._recognize=function(e){for(var t in lv)if(lv.hasOwnProperty(t)){var a=lv[t](this._track,e);if(a)return a}},r}();function Em(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function RI(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var lv={pinch:function(r,e){var t=r.length;if(!!t){var a=(r[t-1]||{}).points,i=(r[t-2]||{}).points||a;if(i&&i.length>1&&a&&a.length>1){var n=Em(a)/Em(i);!isFinite(n)&&(n=1),e.pinchScale=n;var o=RI(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function hr(){return[1,0,0,1,0,0]}function Sh(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function xg(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function ha(r,e,t){var a=e[0]*t[0]+e[2]*t[1],i=e[1]*t[0]+e[3]*t[1],n=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=a,r[1]=i,r[2]=n,r[3]=o,r[4]=s,r[5]=l,r}function Zr(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function Cn(r,e,t){var a=e[0],i=e[2],n=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(t),f=Math.cos(t);return r[0]=a*f+o*u,r[1]=-a*u+o*f,r[2]=i*f+s*u,r[3]=-i*u+f*s,r[4]=f*n+u*l,r[5]=f*l-u*n,r}function bg(r,e,t){var a=t[0],i=t[1];return r[0]=e[0]*a,r[1]=e[1]*i,r[2]=e[2]*a,r[3]=e[3]*i,r[4]=e[4]*a,r[5]=e[5]*i,r}function Lo(r,e){var t=e[0],a=e[2],i=e[4],n=e[1],o=e[3],s=e[5],l=t*o-n*a;return l?(l=1/l,r[0]=o*l,r[1]=-n*l,r[2]=-a*l,r[3]=t*l,r[4]=(a*s-o*i)*l,r[5]=(n*i-t*s)*l,r):null}function EI(r){var e=hr();return xg(e,r),e}var kI=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,a=this.y-e.y;return Math.sqrt(t*t+a*a)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,a=this.y-e.y;return t*t+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(!!e){var t=this.x,a=this.y;return this.x=e[0]*t+e[2]*a+e[4],this.y=e[1]*t+e[3]*a+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,a){e.x=t,e.y=a},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,a){e.x=t.x+a.x,e.y=t.y+a.y},r.sub=function(e,t,a){e.x=t.x-a.x,e.y=t.y-a.y},r.scale=function(e,t,a){e.x=t.x*a,e.y=t.y*a},r.scaleAndAdd=function(e,t,a,i){e.x=t.x+a.x*i,e.y=t.y+a.y*i},r.lerp=function(e,t,a,i){var n=1-i;e.x=n*t.x+i*a.x,e.y=n*t.y+i*a.y},r}(),lt=kI,Kl=Math.min,Jl=Math.max,pi=new lt,gi=new lt,yi=new lt,mi=new lt,Uo=new lt,Yo=new lt,OI=function(){function r(e,t,a,i){a<0&&(e=e+a,a=-a),i<0&&(t=t+i,i=-i),this.x=e,this.y=t,this.width=a,this.height=i}return r.prototype.union=function(e){var t=Kl(e.x,this.x),a=Kl(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Jl(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Jl(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=t,this.y=a},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,a=e.width/t.width,i=e.height/t.height,n=hr();return Zr(n,n,[-t.x,-t.y]),bg(n,n,[a,i]),Zr(n,n,[e.x,e.y]),n},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var a=this,i=a.x,n=a.x+a.width,o=a.y,s=a.y+a.height,l=e.x,u=e.x+e.width,f=e.y,h=e.y+e.height,c=!(n<l||u<i||s<f||h<o);if(t){var v=1/0,d=0,p=Math.abs(n-l),g=Math.abs(u-i),y=Math.abs(s-f),m=Math.abs(h-o),_=Math.min(p,g),S=Math.min(y,m);n<l||u<i?_>d&&(d=_,p<g?lt.set(Yo,-p,0):lt.set(Yo,g,0)):_<v&&(v=_,p<g?lt.set(Uo,p,0):lt.set(Uo,-g,0)),s<f||h<o?S>d&&(d=S,y<m?lt.set(Yo,0,-y):lt.set(Yo,0,m)):_<v&&(v=_,y<m?lt.set(Uo,0,y):lt.set(Uo,0,-m))}return t&&lt.copy(t,c?Uo:Yo),c},r.prototype.contain=function(e,t){var a=this;return e>=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,a){if(!a){e!==t&&r.copy(e,t);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var i=a[0],n=a[3],o=a[4],s=a[5];e.x=t.x*i+o,e.y=t.y*n+s,e.width=t.width*i,e.height=t.height*n,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}pi.x=yi.x=t.x,pi.y=mi.y=t.y,gi.x=mi.x=t.x+t.width,gi.y=yi.y=t.y+t.height,pi.transform(a),mi.transform(a),gi.transform(a),yi.transform(a),e.x=Kl(pi.x,gi.x,yi.x,mi.x),e.y=Kl(pi.y,gi.y,yi.y,mi.y);var l=Jl(pi.x,gi.x,yi.x,mi.x),u=Jl(pi.y,gi.y,yi.y,mi.y);e.width=l-e.x,e.height=u-e.y},r}(),ht=OI,Bw="silent";function NI(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:BI}}function BI(){ga(this.event)}var VI=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(cr),Zo=function(){function r(e,t){this.x=e,this.y=t}return r}(),zI=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],uv=new ht(0,0,0,0),Vw=function(r){k(e,r);function e(t,a,i,n,o){var s=r.call(this)||this;return s._hovered=new Zo(0,0),s.storage=t,s.painter=a,s.painterRoot=n,s._pointerSize=o,i=i||new VI,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new _I(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(A(zI,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,i=t.zrY,n=zw(this,a,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=n?new Zo(a,i):this.findHover(a,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Zo(0,0)},e.prototype.dispatch=function(t,a){var i=this[t];i&&i.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,i){t=t||{};var n=t.target;if(!(n&&n.silent)){for(var o="on"+a,s=NI(a,t,i);n&&(n[o]&&(s.cancelBubble=!!n[o].call(n,s)),n.trigger(a,s),n=n.__hostTarget?n.__hostTarget:n.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,i){var n=this.storage.getDisplayList(),o=new Zo(t,a);if(km(n,o,t,a,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ht(t-u,a-u,l,l),h=n.length-1;h>=0;h--){var c=n[h];c!==i&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(uv.copy(c.getBoundingRect()),c.transform&&uv.applyTransform(c.transform),uv.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=v)for(var y=0;y<p;y+=d){var m=t+g*Math.cos(y),_=a+g*Math.sin(y);if(km(s,o,m,_,i),o.target)return o}}return o},e.prototype.processGesture=function(t,a){this._gestureMgr||(this._gestureMgr=new PI);var i=this._gestureMgr;a==="start"&&i.clear();var n=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(a==="end"&&i.clear(),n){var o=n.type;t.gestureEvent=o;var s=new Zo;s.target=n.target,this.dispatchToElement(s,o,n.event)}},e}(cr);A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){Vw.prototype[r]=function(e){var t=e.zrX,a=e.zrY,i=zw(this,t,a),n,o;if((r!=="mouseup"||!i)&&(n=this.findHover(t,a),o=n.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Ga(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,r,e)}});function GI(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,i=void 0,n=!1;a;){if(a.ignoreClip&&(n=!0),!n){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1;a.silent&&(i=!0)}var s=a.__hostTarget;a=s||a.parent}return i?Bw:!0}return!1}function km(r,e,t,a,i){for(var n=r.length-1;n>=0;n--){var o=r[n],s=void 0;if(o!==i&&!o.ignore&&(s=GI(o,t,a))&&(!e.topTarget&&(e.topTarget=o),s!==Bw)){e.target=o;break}}}function zw(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var FI=Vw,Gw=32,Xo=7;function HI(r){for(var e=0;r>=Gw;)e|=r&1,r>>=1;return r+e}function Om(r,e,t,a){var i=e+1;if(i===t)return 1;if(a(r[i++],r[e])<0){for(;i<t&&a(r[i],r[i-1])<0;)i++;$I(r,e,i)}else for(;i<t&&a(r[i],r[i-1])>=0;)i++;return i-e}function $I(r,e,t){for(t--;e<t;){var a=r[e];r[e++]=r[t],r[t--]=a}}function Nm(r,e,t,a,i){for(a===e&&a++;a<t;a++){for(var n=r[a],o=e,s=a,l;o<s;)l=o+s>>>1,i(n,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=n}}function fv(r,e,t,a,i,n){var o=0,s=0,l=1;if(n(r,e[t+i])>0){for(s=a-i;l<s&&n(r,e[t+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&n(r,e[t+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);n(r,e[t+f])>0?o=f+1:l=f}return l}function hv(r,e,t,a,i,n){var o=0,s=0,l=1;if(n(r,e[t+i])<0){for(s=i+1;l<s&&n(r,e[t+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=a-i;l<s&&n(r,e[t+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);n(r,e[t+f])<0?l=f:o=f+1}return l}function WI(r,e){var t=Xo,a,i,n=0;r.length;var o=[];a=[],i=[];function s(v,d){a[n]=v,i[n]=d,n+=1}function l(){for(;n>1;){var v=n-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]<i[v+1]&&v--;else if(i[v]>i[v+1])break;f(v)}}function u(){for(;n>1;){var v=n-2;v>0&&i[v-1]<i[v+1]&&v--,f(v)}}function f(v){var d=a[v],p=i[v],g=a[v+1],y=i[v+1];i[v]=p+y,v===n-3&&(a[v+1]=a[v+2],i[v+1]=i[v+2]),n--;var m=hv(r[g],r,d,p,0,e);d+=m,p-=m,p!==0&&(y=fv(r[d+p-1],r,g,y,y-1,e),y!==0&&(p<=y?h(d,p,g,y):c(d,p,g,y)))}function h(v,d,p,g){var y=0;for(y=0;y<d;y++)o[y]=r[v+y];var m=0,_=p,S=v;if(r[S++]=r[_++],--g===0){for(y=0;y<d;y++)r[S+y]=o[m+y];return}if(d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var b=t,x,w,T;;){x=0,w=0,T=!1;do if(e(r[_],o[m])<0){if(r[S++]=r[_++],w++,x=0,--g===0){T=!0;break}}else if(r[S++]=o[m++],x++,w=0,--d===1){T=!0;break}while((x|w)<b);if(T)break;do{if(x=hv(r[_],o,m,d,0,e),x!==0){for(y=0;y<x;y++)r[S+y]=o[m+y];if(S+=x,m+=x,d-=x,d<=1){T=!0;break}}if(r[S++]=r[_++],--g===0){T=!0;break}if(w=fv(o[m],r,_,g,0,e),w!==0){for(y=0;y<w;y++)r[S+y]=r[_+y];if(S+=w,_+=w,g-=w,g===0){T=!0;break}}if(r[S++]=o[m++],--d===1){T=!0;break}b--}while(x>=Xo||w>=Xo);if(T)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[S+y]=o[m+y]}}function c(v,d,p,g){var y=0;for(y=0;y<g;y++)o[y]=r[p+y];var m=v+d-1,_=g-1,S=p+g-1,b=0,x=0;if(r[S--]=r[m--],--d===0){for(b=S-(g-1),y=0;y<g;y++)r[b+y]=o[y];return}if(g===1){for(S-=d,m-=d,x=S+1,b=m+1,y=d-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_];return}for(var w=t;;){var T=0,C=0,D=!1;do if(e(o[_],r[m])<0){if(r[S--]=r[m--],T++,C=0,--d===0){D=!0;break}}else if(r[S--]=o[_--],C++,T=0,--g===1){D=!0;break}while((T|C)<w);if(D)break;do{if(T=d-hv(o[_],r,v,d,d-1,e),T!==0){for(S-=T,m-=T,d-=T,x=S+1,b=m+1,y=T-1;y>=0;y--)r[x+y]=r[b+y];if(d===0){D=!0;break}}if(r[S--]=o[_--],--g===1){D=!0;break}if(C=g-fv(r[m],o,0,g,g-1,e),C!==0){for(S-=C,_-=C,g-=C,x=S+1,b=_+1,y=0;y<C;y++)r[x+y]=o[b+y];if(g<=1){D=!0;break}}if(r[S--]=r[m--],--d===0){D=!0;break}w--}while(T>=Xo||C>=Xo);if(D)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),g===1){for(S-=d,m-=d,x=S+1,b=m+1,y=d-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),y=0;y<g;y++)r[b+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function ef(r,e,t,a){t||(t=0),a||(a=r.length);var i=a-t;if(!(i<2)){var n=0;if(i<Gw){n=Om(r,t,a,e),Nm(r,t,a,t+n,e);return}var o=WI(r,e),s=HI(i);do{if(n=Om(r,t,a,e),n<s){var l=i;l>s&&(l=s),Nm(r,t,t+l,t+n,e),n=l}o.pushRun(t,n),o.mergeRuns(),i-=n,t+=n}while(i!==0);o.forceMergeRuns()}}var $e=1,Ss=2,Qn=4,Bm=!1;function vv(){Bm||(Bm=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Vm(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var UI=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Vm}return r.prototype.traverse=function(e,t){for(var a=0;a<this._roots.length;a++)this._roots[a].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var a=this._displayList;return(e||!a.length)&&this.updateDisplayList(t),a},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,a=this._displayList,i=0,n=t.length;i<n;i++)this._updateAndAddDisplayable(t[i],null,e);a.length=this._displayListLen,ef(a,Vm)},r.prototype._updateAndAddDisplayable=function(e,t,a){if(!(e.ignore&&!a)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath();if(e.ignoreClip)t=null;else if(i){t?t=t.slice():t=[];for(var n=i,o=e;n;)n.parent=o,n.updateTransform(),t.push(n),o=n,n=n.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=$e),this._updateAndAddDisplayable(u,t,a)}e.__dirty=0}else{var f=e;t&&t.length?f.__clipPaths=t:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(vv(),f.z=0),isNaN(f.z2)&&(vv(),f.z2=0),isNaN(f.zlevel)&&(vv(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,a);var c=e.getTextGuideLine();c&&this._updateAndAddDisplayable(c,t,a);var v=e.getTextContent();v&&this._updateAndAddDisplayable(v,t,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,a=e.length;t<a;t++)this.delRoot(e[t]);return}var i=ct(this._roots,e);i>=0&&this._roots.splice(i,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),YI=UI,Fw;Fw=It.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Nd=Fw,rf={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)))},elasticOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-rf.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?rf.bounceIn(r*2)*.5:rf.bounceOut(r*2-1)*.5+.5}},Hw=rf,Ql=Math.pow,Ka=Math.sqrt,bf=1e-8,$w=1e-4,zm=Ka(3),jl=1/3,zr=Tn(),nr=Tn(),lo=Tn();function $a(r){return r>-bf&&r<bf}function Ww(r){return r>bf||r<-bf}function ie(r,e,t,a,i){var n=1-i;return n*n*(n*r+3*i*e)+i*i*(i*a+3*n*t)}function Gm(r,e,t,a,i){var n=1-i;return 3*(((e-r)*n+2*(t-e)*i)*n+(a-t)*i*i)}function wf(r,e,t,a,i,n){var o=a+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-i,f=s*s-3*o*l,h=s*l-9*o*u,c=l*l-3*s*u,v=0;if($a(f)&&$a(h))if($a(s))n[0]=0;else{var d=-l/s;d>=0&&d<=1&&(n[v++]=d)}else{var p=h*h-4*f*c;if($a(p)){var g=h/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(n[v++]=d),y>=0&&y<=1&&(n[v++]=y)}else if(p>0){var m=Ka(p),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-Ql(-_,jl):_=Ql(_,jl),S<0?S=-Ql(-S,jl):S=Ql(S,jl);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(n[v++]=d)}else{var b=(2*f*s-3*o*h)/(2*Ka(f*f*f)),x=Math.acos(b)/3,w=Ka(f),T=Math.cos(x),d=(-s-2*w*T)/(3*o),y=(-s+w*(T+zm*Math.sin(x)))/(3*o),C=(-s+w*(T-zm*Math.sin(x)))/(3*o);d>=0&&d<=1&&(n[v++]=d),y>=0&&y<=1&&(n[v++]=y),C>=0&&C<=1&&(n[v++]=C)}}return v}function Uw(r,e,t,a,i){var n=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if($a(o)){if(Ww(n)){var u=-s/n;u>=0&&u<=1&&(i[l++]=u)}}else{var f=n*n-4*o*s;if($a(f))i[0]=-n/(2*o);else if(f>0){var h=Ka(f),u=(-n+h)/(2*o),c=(-n-h)/(2*o);u>=0&&u<=1&&(i[l++]=u),c>=0&&c<=1&&(i[l++]=c)}}return l}function ei(r,e,t,a,i,n){var o=(e-r)*i+r,s=(t-e)*i+e,l=(a-t)*i+t,u=(s-o)*i+o,f=(l-s)*i+s,h=(f-u)*i+u;n[0]=r,n[1]=o,n[2]=u,n[3]=h,n[4]=h,n[5]=f,n[6]=l,n[7]=a}function Yw(r,e,t,a,i,n,o,s,l,u,f){var h,c=.005,v=1/0,d,p,g,y;zr[0]=l,zr[1]=u;for(var m=0;m<1;m+=.05)nr[0]=ie(r,t,i,o,m),nr[1]=ie(e,a,n,s,m),g=nn(zr,nr),g<v&&(h=m,v=g);v=1/0;for(var _=0;_<32&&!(c<$w);_++)d=h-c,p=h+c,nr[0]=ie(r,t,i,o,d),nr[1]=ie(e,a,n,s,d),g=nn(nr,zr),d>=0&&g<v?(h=d,v=g):(lo[0]=ie(r,t,i,o,p),lo[1]=ie(e,a,n,s,p),y=nn(lo,zr),p<=1&&y<v?(h=p,v=y):c*=.5);return f&&(f[0]=ie(r,t,i,o,h),f[1]=ie(e,a,n,s,h)),Ka(v)}function ZI(r,e,t,a,i,n,o,s,l){for(var u=r,f=e,h=0,c=1/l,v=1;v<=l;v++){var d=v*c,p=ie(r,t,i,o,d),g=ie(e,a,n,s,d),y=p-u,m=g-f;h+=Math.sqrt(y*y+m*m),u=p,f=g}return h}function se(r,e,t,a){var i=1-a;return i*(i*r+2*a*e)+a*a*t}function Bd(r,e,t,a){return 2*((1-a)*(e-r)+a*(t-e))}function XI(r,e,t,a,i){var n=r-2*e+t,o=2*(e-r),s=r-a,l=0;if($a(n)){if(Ww(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*n*s;if($a(f)){var u=-o/(2*n);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var h=Ka(f),u=(-o+h)/(2*n),c=(-o-h)/(2*n);u>=0&&u<=1&&(i[l++]=u),c>=0&&c<=1&&(i[l++]=c)}}return l}function Zw(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function Js(r,e,t,a,i){var n=(e-r)*a+r,o=(t-e)*a+e,s=(o-n)*a+n;i[0]=r,i[1]=n,i[2]=s,i[3]=s,i[4]=o,i[5]=t}function Xw(r,e,t,a,i,n,o,s,l){var u,f=.005,h=1/0;zr[0]=o,zr[1]=s;for(var c=0;c<1;c+=.05){nr[0]=se(r,t,i,c),nr[1]=se(e,a,n,c);var v=nn(zr,nr);v<h&&(u=c,h=v)}h=1/0;for(var d=0;d<32&&!(f<$w);d++){var p=u-f,g=u+f;nr[0]=se(r,t,i,p),nr[1]=se(e,a,n,p);var v=nn(nr,zr);if(p>=0&&v<h)u=p,h=v;else{lo[0]=se(r,t,i,g),lo[1]=se(e,a,n,g);var y=nn(lo,zr);g<=1&&y<h?(u=g,h=y):f*=.5}}return l&&(l[0]=se(r,t,i,u),l[1]=se(e,a,n,u)),Ka(h)}function qI(r,e,t,a,i,n,o){for(var s=r,l=e,u=0,f=1/o,h=1;h<=o;h++){var c=h*f,v=se(r,t,i,c),d=se(e,a,n,c),p=v-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=v,l=d}return u}var KI=/cubic-bezier\(([0-9,\.e ]+)\)/;function wg(r){var e=r&&KI.exec(r);if(e){var t=e[1].split(","),a=+br(t[0]),i=+br(t[1]),n=+br(t[2]),o=+br(t[3]);if(isNaN(a+i+n+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:wf(0,a,n,1,l,s)&&ie(0,i,o,1,s[0])}}}var JI=function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||jt,this.ondestroy=e.ondestroy||jt,this.onrestart=e.onrestart||jt,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var a=this._life,i=e-this._startTime-this._pausedTime,n=i/a;n<0&&(n=0),n=Math.min(n,1);var o=this.easingFunc,s=o?o(n):n;if(this.onframe(s),n===1)if(this.loop){var l=i%a;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=J(e)?e:Hw[e]||wg(e)},r}(),QI=JI,qw=function(){function r(e){this.value=e}return r}(),jI=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new qw(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),tP=function(){function r(e){this._list=new jI,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,i=this._map,n=null;if(i[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete i[l.key],n=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new qw(t),s.key=e,a.insertEntry(s),i[e]=s}return n},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(t!=null)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),Cl=tP,Fm={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 Tr(r){return r=Math.round(r),r<0?0:r>255?255:r}function eP(r){return r=Math.round(r),r<0?0:r>360?360:r}function Qs(r){return r<0?0:r>1?1:r}function cv(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Tr(parseFloat(e)/100*255):Tr(parseInt(e,10))}function on(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Qs(parseFloat(e)/100):Qs(parseFloat(e))}function dv(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function Wa(r,e,t){return r+(e-r)*t}function tr(r,e,t,a,i){return r[0]=e,r[1]=t,r[2]=a,r[3]=i,r}function Vd(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var Kw=new Cl(20),tu=null;function Rn(r,e){tu&&Vd(tu,e),tu=Kw.put(r,tu||e.slice())}function We(r,e){if(!!r){e=e||[];var t=Kw.get(r);if(t)return Vd(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in Fm)return Vd(e,Fm[a]),Rn(r,e),e;var i=a.length;if(a.charAt(0)==="#"){if(i===4||i===5){var n=parseInt(a.slice(1,4),16);if(!(n>=0&&n<=4095)){tr(e,0,0,0,1);return}return tr(e,(n&3840)>>4|(n&3840)>>8,n&240|(n&240)>>4,n&15|(n&15)<<4,i===5?parseInt(a.slice(4),16)/15:1),Rn(r,e),e}else if(i===7||i===9){var n=parseInt(a.slice(1,7),16);if(!(n>=0&&n<=16777215)){tr(e,0,0,0,1);return}return tr(e,(n&16711680)>>16,(n&65280)>>8,n&255,i===9?parseInt(a.slice(7),16)/255:1),Rn(r,e),e}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===i){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?tr(e,+u[0],+u[1],+u[2],1):tr(e,0,0,0,1);f=on(u.pop());case"rgb":if(u.length>=3)return tr(e,cv(u[0]),cv(u[1]),cv(u[2]),u.length===3?f:on(u[3])),Rn(r,e),e;tr(e,0,0,0,1);return;case"hsla":if(u.length!==4){tr(e,0,0,0,1);return}return u[3]=on(u[3]),zd(u,e),Rn(r,e),e;case"hsl":if(u.length!==3){tr(e,0,0,0,1);return}return zd(u,e),Rn(r,e),e;default:return}}tr(e,0,0,0,1)}}function zd(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=on(r[1]),i=on(r[2]),n=i<=.5?i*(a+1):i+a-i*a,o=i*2-n;return e=e||[],tr(e,Tr(dv(o,n,t+1/3)*255),Tr(dv(o,n,t)*255),Tr(dv(o,n,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function rP(r){if(!!r){var e=r[0]/255,t=r[1]/255,a=r[2]/255,i=Math.min(e,t,a),n=Math.max(e,t,a),o=n-i,s=(n+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(n+i):u=o/(2-n-i);var f=((n-e)/6+o/2)/o,h=((n-t)/6+o/2)/o,c=((n-a)/6+o/2)/o;e===n?l=c-h:t===n?l=1/3+f-c:a===n&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return r[3]!=null&&v.push(r[3]),v}}function Gd(r,e){var t=We(r);if(t){for(var a=0;a<3;a++)e<0?t[a]=t[a]*(1-e)|0:t[a]=(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return va(t,t.length===4?"rgba":"rgb")}}function pv(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var a=r*(e.length-1),i=Math.floor(a),n=Math.ceil(a),o=e[i],s=e[n],l=a-i;return t[0]=Tr(Wa(o[0],s[0],l)),t[1]=Tr(Wa(o[1],s[1],l)),t[2]=Tr(Wa(o[2],s[2],l)),t[3]=Qs(Wa(o[3],s[3],l)),t}}function aP(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var a=r*(e.length-1),i=Math.floor(a),n=Math.ceil(a),o=We(e[i]),s=We(e[n]),l=a-i,u=va([Tr(Wa(o[0],s[0],l)),Tr(Wa(o[1],s[1],l)),Tr(Wa(o[2],s[2],l)),Qs(Wa(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:i,rightIndex:n,value:a}:u}}function ks(r,e,t,a){var i=We(r);if(r)return i=rP(i),e!=null&&(i[0]=eP(e)),t!=null&&(i[1]=on(t)),a!=null&&(i[2]=on(a)),va(zd(i),"rgba")}function Tf(r,e){var t=We(r);if(t&&e!=null)return t[3]=Qs(e),va(t,"rgba")}function va(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function Cf(r,e){var t=We(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var Af=Math.round;function co(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=We(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e==null?1:e}}var Hm=1e-4;function Ua(r){return r<Hm&&r>-Hm}function eu(r){return Af(r*1e3)/1e3}function Fd(r){return Af(r*1e4)/1e4}function iP(r){return"matrix("+eu(r[0])+","+eu(r[1])+","+eu(r[2])+","+eu(r[3])+","+Fd(r[4])+","+Fd(r[5])+")"}var nP={left:"start",right:"end",center:"middle",middle:"middle"};function oP(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function sP(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function lP(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function Jw(r){return r&&!!r.image}function uP(r){return r&&!!r.svgElement}function fP(r){return Jw(r)||uP(r)}function Qw(r){return r.type==="linear"}function jw(r){return r.type==="radial"}function hP(r){return r&&(r.type==="linear"||r.type==="radial")}function xh(r){return"url(#"+r+")"}function tT(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function eT(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*Qu,i=ut(r.scaleX,1),n=ut(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),a&&l.push("rotate("+a+")"),(i!==1||n!==1)&&l.push("scale("+i+","+n+")"),(o||s)&&l.push("skew("+Af(o*Qu)+"deg, "+Af(s*Qu)+"deg)"),l.join(" ")}var vP=function(){return It.hasGlobalWindow&&J(window.btoa)?function(r){return window.btoa(unescape(r))}:typeof Buffer!="undefined"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),Hd=Array.prototype.slice;function ia(r,e,t){return(e-r)*t+r}function gv(r,e,t,a){for(var i=e.length,n=0;n<i;n++)r[n]=ia(e[n],t[n],a);return r}function cP(r,e,t,a){for(var i=e.length,n=i&&e[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<n;s++)r[o][s]=ia(e[o][s],t[o][s],a)}return r}function ru(r,e,t,a){for(var i=e.length,n=0;n<i;n++)r[n]=e[n]+t[n]*a;return r}function $m(r,e,t,a){for(var i=e.length,n=i&&e[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<n;s++)r[o][s]=e[o][s]+t[o][s]*a}return r}function dP(r,e){for(var t=r.length,a=e.length,i=t>a?e:r,n=Math.min(t,a),o=i[n-1]||{color:[0,0,0,0],offset:0},s=n;s<Math.max(t,a);s++)i.push({offset:o.offset,color:o.color.slice()})}function pP(r,e,t){var a=r,i=e;if(!(!a.push||!i.push)){var n=a.length,o=i.length;if(n!==o){var s=n>o;if(s)a.length=o;else for(var l=n;l<o;l++)a.push(t===1?i[l]:Hd.call(i[l]))}for(var u=a[0]&&a[0].length,l=0;l<a.length;l++)if(t===1)isNaN(a[l])&&(a[l]=i[l]);else for(var f=0;f<u;f++)isNaN(a[l][f])&&(a[l][f]=i[l][f])}}function Os(r){if(xe(r)){var e=r.length;if(xe(r[0])){for(var t=[],a=0;a<e;a++)t.push(Hd.call(r[a]));return t}return Hd.call(r)}return r}function af(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function gP(r){return xe(r&&r[0])?2:1}var au=0,nf=1,rT=2,xs=3,$d=4,Wd=5,Wm=6;function Um(r){return r===$d||r===Wd}function iu(r){return r===nf||r===rT}var qo=[0,0,0,0],yP=function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,a){this._needsSort=!0;var i=this.keyframes,n=i.length,o=!1,s=Wm,l=t;if(xe(t)){var u=gP(t);s=u,(u===1&&!Ct(t[0])||u===2&&!Ct(t[0][0]))&&(o=!0)}else if(Ct(t)&&!Ks(t))s=au;else if(U(t))if(!isNaN(+t))s=au;else{var f=We(t);f&&(l=f,s=xs)}else if(mh(t)){var h=V({},l);h.colorStops=G(t.colorStops,function(v){return{offset:v.offset,color:We(v.color)}}),Qw(t)?s=$d:jw(t)&&(s=Wd),l=h}n===0?this.valType=s:(s!==this.valType||s===Wm)&&(o=!0),this.discrete=this.discrete||o;var c={time:e,value:l,rawValue:t,percent:0};return a&&(c.easing=a,c.easingFunc=J(a)?a:Hw[a]||wg(a)),i.push(c),c},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(p,g){return p.time-g.time});for(var i=this.valType,n=a.length,o=a[n-1],s=this.discrete,l=iu(i),u=Um(i),f=0;f<n;f++){var h=a[f],c=h.value,v=o.value;h.percent=h.time/e,s||(l&&f!==n-1?pP(c,v,i):u&&dP(c.colorStops,v.colorStops))}if(!s&&i!==Wd&&t&&this.needsAnimate()&&t.needsAnimate()&&i===t.valType&&!t._finished){this._additiveTrack=t;for(var d=a[0].value,f=0;f<n;f++)i===au?a[f].additiveValue=a[f].value-d:i===xs?a[f].additiveValue=ru([],a[f].value,d,-1):iu(i)&&(a[f].additiveValue=i===nf?ru([],a[f].value,d,-1):$m([],a[f].value,d,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var a=this._additiveTrack!=null,i=a?"additiveValue":"value",n=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=n===xs,f,h=this._lastFr,c=Math.min,v,d;if(s===1)v=d=o[0];else{if(t<0)f=0;else if(t<this._lastFrP){var p=c(h+1,s-1);for(f=p;f>=0&&!(o[f].percent<=t);f--);f=c(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>t);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(!!(v&&d)){this._lastFr=f,this._lastFrP=t;var g=d.percent-v.percent,y=g===0?1:c((t-v.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=a?this._additiveValue:u?qo:e[l];if((iu(n)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?v.rawValue:d.rawValue;else if(iu(n))n===nf?gv(m,v[i],d[i],y):cP(m,v[i],d[i],y);else if(Um(n)){var _=v[i],S=d[i],b=n===$d;e[l]={type:b?"linear":"radial",x:ia(_.x,S.x,y),y:ia(_.y,S.y,y),colorStops:G(_.colorStops,function(w,T){var C=S.colorStops[T];return{offset:ia(w.offset,C.offset,y),color:af(gv([],w.color,C.color,y))}}),global:S.global},b?(e[l].x2=ia(_.x2,S.x2,y),e[l].y2=ia(_.y2,S.y2,y)):e[l].r=ia(_.r,S.r,y)}else if(u)gv(m,v[i],d[i],y),a||(e[l]=af(m));else{var x=ia(v[i],d[i],y);a?this._additiveValue=x:e[l]=x}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,i=this._additiveValue;t===au?e[a]=e[a]+i:t===xs?(We(e[a],qo),ru(qo,qo,i,1),e[a]=af(qo)):t===nf?ru(e[a],e[a],i,1):t===rT&&$m(e[a],e[a],i,1)},r}(),Tg=function(){function r(e,t,a,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&i){gg("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,a){return this.whenWithKeys(e,t,St(t),a)},r.prototype.whenWithKeys=function(e,t,a,i){for(var n=this._tracks,o=0;o<a.length;o++){var s=a[o],l=n[s];if(!l){l=n[s]=new yP(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,c=h[h.length-1];u=c&&c.value,f.valType===xs&&u&&(u=af(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Os(u),i),this._trackKeys.push(s)}l.addKeyframe(e,Os(t[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a<t;a++)e[a].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var a=0;a<t.length;a++)t[a].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,a=0;a<t.length;a++)e[t[a]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,a=this._additiveAnimators;if(a)for(var i=0;i<a.length;i++){var n=a[i].getTrack(e);n&&(t=n)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,a=[],i=this._maxTime||0,n=0;n<this._trackKeys.length;n++){var o=this._trackKeys[n],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(t._target[s.propName]=h.rawValue),s.setFinished()}else a.push(s)}if(a.length||this._force){var c=new QI({life:i,loop:this._loop,delay:this._delay||0,onframe:function(v){t._started=2;var d=t._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(t._additiveAnimators=null)}for(var g=0;g<a.length;g++)a[g].step(t._target,v);var y=t._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](t._target,v)},ondestroy:function(){t._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),e&&c.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(!!this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return G(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var a=this._tracks,i=this._trackKeys,n=0;n<e.length;n++){var o=a[e[n]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,n=0;n<i.length;n++)if(!a[i[n]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,a){if(!!e){t=t||this._trackKeys;for(var i=0;i<t.length;i++){var n=t[i],o=this._tracks[n];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[a?0:s.length-1];l&&(e[n]=Os(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||St(e);for(var a=0;a<t.length;a++){var i=t[a],n=this._tracks[i];if(!!n){var o=n.keyframes;if(o.length>1){var s=o.pop();n.addKeyframe(s.time,e[i]),n.prepare(this._maxTime,n.getAdditiveTrack())}}}},r}();function ao(){return new Date().getTime()}var mP=function(r){k(e,r);function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,t=t||{},a.stage=t.stage||{},a}return 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 a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(!!t.animation){var a=t.prev,i=t.next;a?a.next=i:this._head=i,i?i.prev=a:this._tail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=ao()-this._pausedTime,i=a-this._time,n=this._head;n;){var o=n.next,s=n.step(a,i);s&&(n.ondestroy(),this.removeClip(n)),n=o}this._time=a,t||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function a(){t._running&&(Nd(a),!t._paused&&t.update())}Nd(a)},e.prototype.start=function(){this._running||(this._time=ao(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=ao(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=ao()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,a){a=a||{},this.start();var i=new Tg(t,a.loop);return this.addAnimator(i),i},e}(cr),_P=mP,SP=300,yv=It.domSupported,mv=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=G(r,function(i){var n=i.replace("mouse","pointer");return t.hasOwnProperty(n)?n:i});return{mouse:r,touch:e,pointer:a}}(),Ym={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Zm=!1;function Ud(r){var e=r.pointerType;return e==="pen"||e==="touch"}function xP(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function _v(r){r&&(r.zrByTouch=!0)}function bP(r,e){return er(r.dom,new wP(r,e),!0)}function aT(r,e){for(var t=e,a=!1;t&&t.nodeType!==9&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var wP=function(){function r(e,t){this.stopPropagation=jt,this.stopImmediatePropagation=jt,this.preventDefault=jt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),_r={mousedown:function(r){r=er(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=er(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=er(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=er(this.dom,r);var e=r.toElement||r.relatedTarget;aT(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Zm=!0,r=er(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Zm||(r=er(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=er(this.dom,r),_v(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),_r.mousemove.call(this,r),_r.mousedown.call(this,r)},touchmove:function(r){r=er(this.dom,r),_v(r),this.handler.processGesture(r,"change"),_r.mousemove.call(this,r)},touchend:function(r){r=er(this.dom,r),_v(r),this.handler.processGesture(r,"end"),_r.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<SP&&_r.click.call(this,r)},pointerdown:function(r){_r.mousedown.call(this,r)},pointermove:function(r){Ud(r)||_r.mousemove.call(this,r)},pointerup:function(r){_r.mouseup.call(this,r)},pointerout:function(r){Ud(r)||_r.mouseout.call(this,r)}};A(["click","dblclick","contextmenu"],function(r){_r[r]=function(e){e=er(this.dom,e),this.trigger(r,e)}});var Yd={pointermove:function(r){Ud(r)||Yd.mousemove.call(this,r)},pointerup:function(r){Yd.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function TP(r,e){var t=e.domHandlers;It.pointerEventsSupported?A(mv.pointer,function(a){of(e,a,function(i){t[a].call(r,i)})}):(It.touchEventsSupported&&A(mv.touch,function(a){of(e,a,function(i){t[a].call(r,i),xP(e)})}),A(mv.mouse,function(a){of(e,a,function(i){i=Sg(i),e.touching||t[a].call(r,i)})}))}function CP(r,e){It.pointerEventsSupported?A(Ym.pointer,t):It.touchEventsSupported||A(Ym.mouse,t);function t(a){function i(n){n=Sg(n),aT(r,n.target)||(n=bP(r,n),e.domHandlers[a].call(r,n))}of(e,a,i,{capture:!0})}}function of(r,e,t,a){r.mounted[e]=t,r.listenerOpts[e]=a,Od(r.domTarget,e,t,a)}function Sv(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&II(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var Xm=function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r}(),AP=function(r){k(e,r);function e(t,a){var i=r.call(this)||this;return i.__pointerCapturing=!1,i.dom=t,i.painterRoot=a,i._localHandlerScope=new Xm(t,_r),yv&&(i._globalHandlerScope=new Xm(document,Yd)),TP(i,i._localHandlerScope),i}return e.prototype.dispose=function(){Sv(this._localHandlerScope),yv&&Sv(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,yv&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var a=this._globalHandlerScope;t?CP(this,a):Sv(a)}},e}(cr),DP=AP,iT=1;It.hasGlobalWindow&&(iT=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Df=iT,Zd=.4,Xd="#333",qd="#ccc",MP="#eee",qm=Sh,Km=5e-5;function _i(r){return r>Km||r<-Km}var Si=[],En=[],xv=hr(),bv=Math.abs,LP=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return _i(this.rotation)||_i(this.x)||_i(this.y)||_i(this.scaleX-1)||_i(this.scaleY-1)||_i(this.skewX)||_i(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&qm(a);return}a=a||hr(),t?this.getLocalTransform(a):qm(a),e&&(t?ha(a,e,a):xg(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Si);var a=Si[0]<0?-1:1,i=Si[1]<0?-1:1,n=((Si[0]-a)*t+a)/Si[0]||0,o=((Si[1]-i)*t+i)/Si[1]||0;e[0]*=n,e[1]*=n,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||hr(),Lo(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(!!e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),n=Math.PI/2+i-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(n),t=Math.sqrt(t),this.skewX=n,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(!!this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(ha(En,e.invTransform,t),t=En);var a=this.originX,i=this.originY;(a||i)&&(xv[4]=a,xv[5]=i,ha(En,t,xv),En[4]-=a,En[5]-=i,t=En),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],i=this.invTransform;return i&&ce(a,a,i),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],i=this.transform;return i&&ce(a,a,i),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&bv(e[0]-1)>1e-10&&bv(e[3]-1)>1e-10?Math.sqrt(bv(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){nT(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,i=e.originY||0,n=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,h=e.y,c=e.skewX?Math.tan(e.skewX):0,v=e.skewY?Math.tan(-e.skewY):0;if(a||i||s||l){var d=a+s,p=i+l;t[4]=-d*n-c*p*o,t[5]=-p*o-v*d*n}else t[4]=t[5]=0;return t[0]=n,t[3]=o,t[1]=v*n,t[2]=c*o,u&&Cn(t,t,u),t[4]+=a+f,t[5]+=i+h,t},r.initDefaultProps=function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),r}(),Xr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function nT(r,e){for(var t=0;t<Xr.length;t++){var a=Xr[t];r[a]=e[a]}}var oa=LP,Jm={};function Ue(r,e){e=e||ti;var t=Jm[e];t||(t=Jm[e]=new Cl(500));var a=t.get(r);return a==null&&(a=pa.measureText(r,e).width,t.put(r,a)),a}function Qm(r,e,t,a){var i=Ue(r,e),n=bh(e),o=bs(0,i,t),s=jn(0,n,a),l=new ht(o,s,i,n);return l}function Al(r,e,t,a){var i=((r||"")+"").split(`
`),n=i.length;if(n===1)return Qm(i[0],e,t,a);for(var o=new ht(0,0,0,0),s=0;s<i.length;s++){var l=Qm(i[s],e,t,a);s===0?o.copy(l):o.union(l)}return o}function bs(r,e,t){return t==="right"?r-=e:t==="center"&&(r-=e/2),r}function jn(r,e,t){return t==="middle"?r-=e/2:t==="bottom"&&(r-=e),r}function bh(r){return Ue("\u56FD",r)}function Ar(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function Mf(r,e,t){var a=e.position||"inside",i=e.distance!=null?e.distance:5,n=t.height,o=t.width,s=n/2,l=t.x,u=t.y,f="left",h="top";if(a instanceof Array)l+=Ar(a[0],t.width),u+=Ar(a[1],t.height),f=null,h=null;else switch(a){case"left":l-=i,u+=s,f="right",h="middle";break;case"right":l+=i+o,u+=s,h="middle";break;case"top":l+=o/2,u-=i,f="center",h="bottom";break;case"bottom":l+=o/2,u+=n+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=o-i,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=n-i,f="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=n-i,h="bottom";break;case"insideBottomRight":l+=o-i,u+=n-i,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var wv="__zr_normal__",Tv=Xr.concat(["ignore"]),IP=Yr(Xr,function(r,e){return r[e]=!0,r},{ignore:!1}),kn={},PP=new ht(0,0,0,0),Cg=function(){function r(e){this.id=Ew(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,a){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,i=a.local,n=t.innerTransformable,o=void 0,s=void 0,l=!1;n.parent=i?this:null;var u=!1;if(n.copyTransform(t),a.position!=null){var f=PP;a.layoutRect?f.copy(a.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(kn,a,f):Mf(kn,a,f),n.x=kn.x,n.y=kn.y,o=kn.align,s=kn.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var c=void 0,v=void 0;h==="center"?(c=f.width*.5,v=f.height*.5):(c=Ar(h[0],f.width),v=Ar(h[1],f.height)),u=!0,n.originX=-n.x+c+(i?0:f.x),n.originY=-n.y+v+(i?0:f.y)}}a.rotation!=null&&(n.rotation=a.rotation);var d=a.offset;d&&(n.x+=d[0],n.y+=d[1],u||(n.originX=-d[0],n.originY=-d[1]));var p=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;p&&this.canBeInsideText()?(y=a.insideFill,m=a.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=a.outsideFill,m=a.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=$e,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?qd:Xd},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&We(t);a||(a=[255,255,255,1]);for(var i=a[3],n=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*i+(n?0:255)*(1-i);return a[3]=1,va(a,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},V(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(tt(e))for(var a=e,i=St(a),n=0;n<i.length;n++){var o=i[n];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,a=0;a<this.animators.length;a++){var i=this.animators[a],n=i.__fromStateTransition;if(!(i.getLoop()||n&&n!==wv)){var o=i.targetName,s=o?t[o]:t;i.saveTo(s)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Tv)},r.prototype._savePrimaryToNormal=function(e,t,a){for(var i=0;i<a.length;i++){var n=a[i];e[n]!=null&&!(n in t)&&(t[n]=this[n])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(wv,!1,e)},r.prototype.useState=function(e,t,a,i){var n=e===wv,o=this.hasState();if(!(!o&&n)){var s=this.currentStates,l=this.stateTransition;if(!(ct(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!n&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!n){gg("State "+e+" not exists.");return}n||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!a&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,c=this._textGuide;return h&&h.useState(e,t,a,f),c&&c.useState(e,t,a,f),n?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~$e),u}}},r.prototype.useStates=function(e,t,a){if(!e.length)this.clearStates();else{var i=[],n=this.currentStates,o=e.length,s=o===n.length;if(s){for(var l=0;l<o;l++)if(e[l]!==n[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&i.push(f)}var h=i[o-1],c=!!(h&&h.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(e.join(","),v,this._normalState,!1,!t&&!this.__inHover&&d&&d.duration>0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(e,t,c),g&&g.useStates(e,t,c),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~$e)}},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=ct(this.currentStates,e);if(t>=0){var a=this.currentStates.slice();a.splice(t,1),this.useStates(a)}},r.prototype.replaceState=function(e,t,a){var i=this.currentStates.slice(),n=ct(i,e),o=ct(i,t)>=0;n>=0?o?i.splice(n,1):i[n]=t:a&&!o&&i.push(t),this.useStates(i)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},a,i=0;i<e.length;i++){var n=e[i];V(t,n),n.textConfig&&(a=a||{},V(a,n.textConfig))}return a&&(t.textConfig=a),t},r.prototype._applyStateObj=function(e,t,a,i,n,o){var s=!(t&&i);t&&t.textConfig?(this.textConfig=V({},i?this.textConfig:a.textConfig),V(this.textConfig,t.textConfig)):s&&a.textConfig&&(this.textConfig=a.textConfig);for(var l={},u=!1,f=0;f<Tv.length;f++){var h=Tv[f],c=n&&IP[h];t&&t[h]!=null?c?(u=!0,l[h]=t[h]):this[h]=t[h]:s&&a[h]!=null&&(c?(u=!0,l[h]=a[h]):this[h]=a[h])}if(!n)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(t||a)[d]:t||a)}u&&this._transitionState(e,l,o)},r.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new oa,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),V(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=$e;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,a=this._textGuide;t&&(t.__inHover=e),a&&(a.__inHover=e)},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var a=0;a<t.length;a++)e.animation.addAnimator(t[a]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(!!this.__zr){this.__zr=null;var t=this.animators;if(t)for(var a=0;a<t.length;a++)e.animation.removeAnimator(t[a]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,a){var i=e?this[e]:this,n=new Tg(i,t,a);return e&&(n.targetName=e),this.addAnimator(n,e),n},r.prototype.addAnimator=function(e,t){var a=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(t)}).done(function(){var n=i.animators,o=ct(n,e);o>=0&&n.splice(o,1)}),this.animators.push(e),a&&a.animation.addAnimator(e),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var a=this.animators,i=a.length,n=[],o=0;o<i;o++){var s=a[o];!e||e===s.scope?s.stop(t):n.push(s)}return this.animators=n,this},r.prototype.animateTo=function(e,t,a){Cv(this,e,t,a)},r.prototype.animateFrom=function(e,t,a){Cv(this,e,t,a,!0)},r.prototype._transitionState=function(e,t,a,i){for(var n=Cv(this,t,a,i),o=0;o<n.length;o++)n[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var e=r.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=$e;function t(a,i,n,o){Object.defineProperty(e,a,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[n]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[n]},set:function(f){l[n]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(t("position","_legacyPos","x","y"),t("scale","_legacyScale","scaleX","scaleY"),t("origin","_legacyOrigin","originX","originY"))}(),r}();ee(Cg,cr);ee(Cg,oa);function Cv(r,e,t,a,i){t=t||{};var n=[];oT(r,"",r,e,t,a,n,i);var o=n.length,s=!1,l=t.done,u=t.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),n.length>0&&t.during&&n[0].during(function(d,p){t.during(p)});for(var c=0;c<n.length;c++){var v=n[c];f&&v.done(f),h&&v.aborted(h),t.force&&v.duration(t.duration),v.start(t.easing)}return n}function Av(r,e,t){for(var a=0;a<t;a++)r[a]=e[a]}function RP(r){return xe(r[0])}function EP(r,e,t){if(xe(e[t]))if(xe(r[t])||(r[t]=[]),Xe(e[t])){var a=e[t].length;r[t].length!==a&&(r[t]=new e[t].constructor(a),Av(r[t],e[t],a))}else{var i=e[t],n=r[t],o=i.length;if(RP(i))for(var s=i[0].length,l=0;l<o;l++)n[l]?Av(n[l],i[l],s):n[l]=Array.prototype.slice.call(i[l]);else Av(n,i,o);n.length=i.length}else r[t]=e[t]}function kP(r,e){return r===e||xe(r)&&xe(e)&&OP(r,e)}function OP(r,e){var t=r.length;if(t!==e.length)return!1;for(var a=0;a<t;a++)if(r[a]!==e[a])return!1;return!0}function oT(r,e,t,a,i,n,o,s){for(var l=St(a),u=i.duration,f=i.delay,h=i.additive,c=i.setToFinal,v=!tt(n),d=r.animators,p=[],g=0;g<l.length;g++){var y=l[g],m=a[y];if(m!=null&&t[y]!=null&&(v||n[y]))if(tt(m)&&!xe(m)&&!mh(m)){if(e){s||(t[y]=m,r.updateDuringAnimation(e));continue}oT(r,y,t[y],m,i,n&&n[y],o,s)}else p.push(y);else s||(t[y]=m,r.updateDuringAnimation(e),p.push(y))}var _=p.length;if(!h&&_)for(var S=0;S<d.length;S++){var b=d[S];if(b.targetName===e){var x=b.stopTracks(p);if(x){var w=ct(d,b);d.splice(w,1)}}}if(i.force||(p=Et(p,function(M){return!kP(a[M],t[M])}),_=p.length),_>0||i.force&&!o.length){var T=void 0,C=void 0,D=void 0;if(s){C={},c&&(T={});for(var S=0;S<_;S++){var y=p[S];C[y]=t[y],c?T[y]=a[y]:t[y]=a[y]}}else if(c){D={};for(var S=0;S<_;S++){var y=p[S];D[y]=Os(t[y]),EP(t,a,y)}}var b=new Tg(t,!1,!1,h?Et(d,function(L){return L.targetName===e}):null);b.targetName=e,i.scope&&(b.scope=i.scope),c&&T&&b.whenWithKeys(0,T,p),D&&b.whenWithKeys(0,D,p),b.whenWithKeys(u==null?500:u,s?C:a,p).delay(f||0),r.addAnimator(b,e),o.push(b)}}var sT=Cg,lT=function(r){k(e,r);function e(t){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(t),a}return 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 a=this._children,i=0;i<a.length;i++)if(a[i].name===t)return a[i]},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,a){if(t&&t!==this&&t.parent!==this&&a&&a.parent===this){var i=this._children,n=i.indexOf(a);n>=0&&(i.splice(n,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,a){var i=ct(this._children,t);return i>=0&&this.replaceAt(a,i),this},e.prototype.replaceAt=function(t,a){var i=this._children,n=i[a];if(t&&t!==this&&t.parent!==this&&t!==n){i[a]=t,n.parent=null;var o=this.__zr;o&&n.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var a=this.__zr;a&&a!==t.__zr&&t.addSelfToZr(a),a&&a.refresh()},e.prototype.remove=function(t){var a=this.__zr,i=this._children,n=ct(i,t);return n<0?this:(i.splice(n,1),t.parent=null,a&&t.removeSelfFromZr(a),a&&a.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,a=this.__zr,i=0;i<t.length;i++){var n=t[i];a&&n.removeSelfFromZr(a),n.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,a){for(var i=this._children,n=0;n<i.length;n++){var o=i[n];t.call(a,o,n)}return this},e.prototype.traverse=function(t,a){for(var i=0;i<this._children.length;i++){var n=this._children[i],o=t.call(a,n);n.isGroup&&!o&&n.traverse(t,a)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var a=0;a<this._children.length;a++){var i=this._children[a];i.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var a=0;a<this._children.length;a++){var i=this._children[a];i.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var a=new ht(0,0,0,0),i=t||this._children,n=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(n);f?(ht.applyTransform(a,u,f),o=o||a.clone(),o.union(a)):(o=o||u.clone(),o.union(u))}}return o||a},e}(sT);lT.prototype.type="group";var at=lT;/*!
* 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 sf={},uT={};function NP(r){delete uT[r]}function BP(r){if(!r)return!1;if(typeof r=="string")return Cf(r,1)<Zd;if(r.colorStops){for(var e=r.colorStops,t=0,a=e.length,i=0;i<a;i++)t+=Cf(e[i].color,1);return t/=a,t<Zd}return!1}var VP=function(){function r(e,t,a){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,a=a||{},this.dom=t,this.id=e;var n=new YI,o=a.renderer||"canvas";sf[o]||(o=St(sf)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new sf[o](t,n,a,e),l=a.ssr||s.ssrOnly;this.storage=n,this.painter=s;var u=!It.node&&!It.worker&&!l?new DP(s.getViewportRoot(),s.root):null,f=a.useCoarsePointer,h=f==null||f==="auto"?It.touchEventsSupported:!!f,c=44,v;h&&(v=ut(a.pointerSize,c)),this.handler=new FI(n,s,u,s.root,v),this.animation=new _P({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(e){!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh()},r.prototype.setBackgroundColor=function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=BP(e)},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},r.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},r.prototype.flush=function(){this._flush(!1)},r.prototype._flush=function(e){var t,a=ao();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var i=ao();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-a})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},r.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},r.prototype.clearAnimation=function(){this.animation.clear()},r.prototype.getWidth=function(){return this.painter.getWidth()},r.prototype.getHeight=function(){return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},r.prototype.on=function(e,t,a){return this.handler.on(e,t,a),this},r.prototype.off=function(e,t){this.handler.off(e,t)},r.prototype.trigger=function(e,t){this.handler.trigger(e,t)},r.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof at&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},r.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,NP(this.id)},r}();function jm(r,e){var t=new VP(Ew(),r,e);return uT[t.id]=t,t}function zP(r,e){sf[r]=e}var t0=1e-4,fT=20;function GP(r){return r.replace(/^\s+|\s+$/g,"")}function Rt(r,e,t,a){var i=e[0],n=e[1],o=t[0],s=t[1],l=n-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=i)return o;if(r>=n)return s}else{if(r>=i)return o;if(r<=n)return s}else{if(r===i)return o;if(r===n)return s}return(r-i)/l*u+o}function H(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return U(r)?GP(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function qt(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),fT),r=(+r).toFixed(e),t?r:+r}function ur(r){return r.sort(function(e,t){return e-t}),r}function Fr(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return FP(r)}function FP(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),a=t>0?+e.slice(t+1):0,i=t>0?t:e.length,n=e.indexOf("."),o=n<0?0:i-1-n;return Math.max(0,o-a)}function hT(r,e){var t=Math.log,a=Math.LN10,i=Math.floor(t(r[1]-r[0])/a),n=Math.round(t(Math.abs(e[1]-e[0]))/a),o=Math.min(Math.max(-i+n,0),20);return isFinite(o)?o:20}function HP(r,e){var t=Yr(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(t===0)return[];for(var a=Math.pow(10,e),i=G(r,function(v){return(isNaN(v)?0:v)/t*a*100}),n=a*100,o=G(i,function(v){return Math.floor(v)}),s=Yr(o,function(v,d){return v+d},0),l=G(i,function(v,d){return v-o[d]});s<n;){for(var u=Number.NEGATIVE_INFINITY,f=null,h=0,c=l.length;h<c;++h)l[h]>u&&(u=l[h],f=h);++o[f],l[f]=0,++s}return G(o,function(v){return v/a})}function $P(r,e){var t=Math.max(Fr(r),Fr(e)),a=r+e;return t>fT?a:qt(a,t)}var e0=9007199254740991;function vT(r){var e=Math.PI*2;return(r%e+e)%e}function Lf(r){return r>-t0&&r<t0}var WP=/^(?:(\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 qr(r){if(r instanceof Date)return r;if(U(r)){var e=WP.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else 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)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function UP(r){return Math.pow(10,Ag(r))}function Ag(r){if(r===0)return 0;var e=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,e)>=10&&e++,e}function cT(r,e){var t=Ag(r),a=Math.pow(10,t),i=r/a,n;return e?i<1.5?n=1:i<2.5?n=2:i<4?n=3:i<7?n=5:n=10:i<1?n=1:i<2?n=2:i<3?n=3:i<5?n=5:n=10,r=n*a,t>=-20?+r.toFixed(t<0?-t:0):r}function Dv(r,e){var t=(r.length-1)*e+1,a=Math.floor(t),i=+r[a-1],n=t-a;return n?i+n*(r[a]-i):i}function r0(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,a=0;a<r.length;){for(var i=r[a].interval,n=r[a].close,o=0;o<2;o++)i[o]<=e&&(i[o]=e,n[o]=o?1:1-t),e=i[o],t=n[o];i[0]===i[1]&&n[0]*n[1]!==1?r.splice(a,1):a++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function ya(r){var e=parseFloat(r);return e==r&&(e!==0||!U(r)||r.indexOf("x")<=0)?e:NaN}function dT(r){return!isNaN(ya(r))}function pT(){return Math.round(Math.random()*9)}function gT(r,e){return e===0?r:gT(e,r%e)}function a0(r,e){return r==null?e:e==null?r:r*e/gT(r,e)}function Pt(r){throw new Error(r)}function i0(r,e,t){return(e-r)*t+r}var yT="series\0",mT="\0_ec_\0";function kt(r){return r instanceof Array?r:r==null?[]:[r]}function gn(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var a=0,i=t.length;a<i;a++){var n=t[a];!r.emphasis[e].hasOwnProperty(n)&&r[e].hasOwnProperty(n)&&(r.emphasis[e][n]=r[e][n])}}}var n0=["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 Io(r){return tt(r)&&!z(r)&&!(r instanceof Date)?r.value:r}function YP(r){return tt(r)&&!(r instanceof Array)}function _T(r,e,t){var a=t==="normalMerge",i=t==="replaceMerge",n=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=K();A(e,function(l,u){if(!tt(l)){e[u]=null;return}});var s=ZP(r,o,t);return(a||i)&&XP(s,r,o,e),a&&qP(s,e),a||i?KP(s,e,i):n&&JP(s,e),QP(s),s}function ZP(r,e,t){var a=[];if(t==="replaceAll")return a;for(var i=0;i<r.length;i++){var n=r[i];n&&n.id!=null&&e.set(n.id,i),a.push({existing:t==="replaceMerge"||js(n)?null:n,newOption:null,keyInfo:null,brandNew:null})}return a}function XP(r,e,t,a){A(a,function(i,n){if(!(!i||i.id==null)){var o=Ns(i.id),s=t.get(o);if(s!=null){var l=r[s];Le(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=e[s],a[n]=null}}})}function qP(r,e){A(e,function(t,a){if(!(!t||t.name==null))for(var i=0;i<r.length;i++){var n=r[i].existing;if(!r[i].newOption&&n&&(n.id==null||t.id==null)&&!js(t)&&!js(n)&&ST("name",n,t)){r[i].newOption=t,e[a]=null;return}}})}function KP(r,e,t){A(e,function(a){if(!!a){for(var i,n=0;(i=r[n])&&(i.newOption||js(i.existing)||i.existing&&a.id!=null&&!ST("id",a,i.existing));)n++;i?(i.newOption=a,i.brandNew=t):r.push({newOption:a,brandNew:t,existing:null,keyInfo:null}),n++}})}function JP(r,e){A(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function QP(r){var e=K();A(r,function(t){var a=t.existing;a&&e.set(a.id,t)}),A(r,function(t){var a=t.newOption;Le(!a||a.id==null||!e.get(a.id)||e.get(a.id)===t,"id duplicates: "+(a&&a.id)),a&&a.id!=null&&e.set(a.id,t),!t.keyInfo&&(t.keyInfo={})}),A(r,function(t,a){var i=t.existing,n=t.newOption,o=t.keyInfo;if(!!tt(n)){if(o.name=n.name!=null?Ns(n.name):i?i.name:yT+a,i)o.id=Ns(i.id);else if(n.id!=null)o.id=Ns(n.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function ST(r,e,t){var a=re(e[r],null),i=re(t[r],null);return a!=null&&i!=null&&a===i}function Ns(r){return re(r,"")}function re(r,e){return r==null?e:U(r)?r:Ct(r)||Md(r)?r+"":e}function Dg(r){var e=r.name;return!!(e&&e.indexOf(yT))}function js(r){return r&&r.id!=null&&Ns(r.id).indexOf(mT)===0}function jP(r){return mT+r}function tR(r,e,t){A(r,function(a){var i=a.newOption;tt(i)&&(a.keyInfo.mainType=e,a.keyInfo.subType=eR(e,i,a.existing,t))})}function eR(r,e,t,a){var i=e.type?e.type:t?t.subType:a.determineSubType(r,e);return i}function rR(r,e){var t={},a={};return i(r||[],t),i(e||[],a,t),[n(t),n(a)];function i(o,s,l){for(var u=0,f=o.length;u<f;u++){var h=re(o[u].seriesId,null);if(h==null)return;for(var c=kt(o[u].dataIndex),v=l&&l[h],d=0,p=c.length;d<p;d++){var g=c[d];v&&v[g]?v[g]=null:(s[h]||(s[h]={}))[g]=1}}}function n(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=n(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function yn(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return z(e.dataIndex)?G(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return z(e.name)?G(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function Dt(){var r="__ec_inner_"+aR++;return function(e){return e[r]||(e[r]={})}}var aR=pT();function Bs(r,e,t){var a=Mg(e,t),i=a.mainTypeSpecified,n=a.queryOptionMap,o=a.others,s=o,l=t?t.defaultMainType:null;return!i&&l&&n.set(l,{}),n.each(function(u,f){var h=Dl(r,f,u,{useDefault:l===f,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function Mg(r,e){var t;if(U(r)){var a={};a[r+"Index"]=0,t=a}else t=r;var i=K(),n={},o=!1;return A(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){n[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();if(!(!f||!h||e&&e.includeMainTypes&&ct(e.includeMainTypes,f)<0)){o=o||!!f;var c=i.get(f)||i.set(f,{});c[h]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:n}}var Qt={useDefault:!0,enableAll:!1,enableNone:!1},iR={useDefault:!1,enableAll:!0,enableNone:!0};function Dl(r,e,t,a){a=a||Qt;var i=t.index,n=t.id,o=t.name,s={models:null,specified:i!=null||n!=null||o!=null};if(!s.specified){var l=void 0;return s.models=a.useDefault&&(l=r.getComponent(e))?[l]:[],s}return i==="none"||i===!1?(Le(a.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(Le(a.enableAll,'`"all"` is not a valid value on index option.'),i=n=o=null),s.models=r.queryComponents({mainType:e,index:i,id:n,name:o}),s)}function xT(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function nR(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function oR(r){return r==="auto"?It.domSupported?"html":"richText":r||"html"}function Kd(r,e){var t=K(),a=[];return A(r,function(i){var n=e(i);(t.get(n)||(a.push(n),t.set(n,[]))).push(i)}),{keys:a,buckets:t}}function bT(r,e,t,a,i){var n=e==null||e==="auto";if(a==null)return a;if(Ct(a)){var o=i0(t||0,a,i);return qt(o,n?Math.max(Fr(t||0),Fr(a)):e)}else{if(U(a))return i<1?t:a;for(var s=[],l=t,u=a,f=Math.max(l?l.length:0,u.length),h=0;h<f;++h){var c=r.getDimensionInfo(h);if(c&&c.type==="ordinal")s[h]=(i<1&&l?l:u)[h];else{var v=l&&l[h]?l[h]:0,d=u[h],o=i0(v,d,i);s[h]=qt(o,n?Math.max(Fr(v),Fr(d)):e)}}return s}}var sR=".",xi="___EC__COMPONENT__CONTAINER___",wT="___EC__EXTENDED_CLASS___";function Hr(r){var e={main:"",sub:""};if(r){var t=r.split(sR);e.main=t[0]||"",e.sub=t[1]||""}return e}function lR(r){Le(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function uR(r){return!!(r&&r[wT])}function Lg(r,e){r.$constructor=r,r.extend=function(t){var a=this,i;return fR(a)?i=function(n){k(o,n);function o(){return n.apply(this,arguments)||this}return o}(a):(i=function(){(t.$constructor||a).apply(this,arguments)},uI(i,this)),V(i.prototype,t),i[wT]=!0,i.extend=this.extend,i.superCall=cR,i.superApply=dR,i.superClass=a,i}}function fR(r){return J(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function TT(r,e){r.extend=e.extend}var hR=Math.round(Math.random()*10);function vR(r){var e=["__\0is_clz",hR++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function cR(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return this.superClass.prototype[e].apply(r,t)}function dR(r,e,t){return this.superClass.prototype[e].apply(r,t)}function wh(r){var e={};r.registerClass=function(a){var i=a.type||a.prototype.type;if(i){lR(i),a.prototype.type=i;var n=Hr(i);if(!n.sub)e[n.main]=a;else if(n.sub!==xi){var o=t(n);o[n.sub]=a}}return a},r.getClass=function(a,i,n){var o=e[a];if(o&&o[xi]&&(o=i?o[i]:null),n&&!o)throw new Error(i?"Component "+a+"."+(i||"")+" is used but not imported.":a+".type should be specified.");return o},r.getClassesByMainType=function(a){var i=Hr(a),n=[],o=e[i.main];return o&&o[xi]?A(o,function(s,l){l!==xi&&n.push(s)}):n.push(o),n},r.hasClass=function(a){var i=Hr(a);return!!e[i.main]},r.getAllClassMainTypes=function(){var a=[];return A(e,function(i,n){a.push(n)}),a},r.hasSubTypes=function(a){var i=Hr(a),n=e[i.main];return n&&n[xi]};function t(a){var i=e[a.main];return(!i||!i[xi])&&(i=e[a.main]={},i[xi]=!0),i}}function mn(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(a,i,n){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(i&&ct(i,l)>=0||n&&ct(n,l)<0)){var u=a.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var pR=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],gR=mn(pR),yR=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return gR(this,e,t)},r}(),Jd=new Cl(50);function mR(r){if(typeof r=="string"){var e=Jd.get(r);return e&&e.image}else return r}function Ig(r,e,t,a,i){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var n=Jd.get(r),o={hostEl:t,cb:a,cbPayload:i};return n?(e=n.image,!Th(e)&&n.pending.push(o)):(e=pa.loadImage(r,o0,o0),e.__zrImageSrc=r,Jd.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function o0(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<r.pending.length;e++){var t=r.pending[e],a=t.cb;a&&a(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function Th(r){return r&&r.width&&r.height}var Mv=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function _R(r,e,t,a,i){if(!e)return"";var n=(r+"").split(`
`);i=CT(e,t,a,i);for(var o=0,s=n.length;o<s;o++)n[o]=AT(n[o],i);return n.join(`
`)}function CT(r,e,t,a){a=a||{};var i=V({},a);i.font=e,t=ut(t,"..."),i.maxIterations=ut(a.maxIterations,2);var n=i.minChar=ut(a.minChar,0);i.cnCharWidth=Ue("\u56FD",e);var o=i.ascCharWidth=Ue("a",e);i.placeholder=ut(a.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<n&&s>=o;l++)s-=o;var u=Ue(t,e);return u>s&&(t="",u=0),s=r-u,i.ellipsis=t,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=r,i}function AT(r,e){var t=e.containerWidth,a=e.font,i=e.contentWidth;if(!t)return"";var n=Ue(r,a);if(n<=t)return r;for(var o=0;;o++){if(n<=i||o>=e.maxIterations){r+=e.ellipsis;break}var s=o===0?SR(r,i,e.ascCharWidth,e.cnCharWidth):n>0?Math.floor(r.length*i/n):0;r=r.substr(0,s),n=Ue(r,a)}return r===""&&(r=e.placeholder),r}function SR(r,e,t,a){for(var i=0,n=0,o=r.length;n<o&&i<e;n++){var s=r.charCodeAt(n);i+=0<=s&&s<=127?t:a}return n}function xR(r,e){r!=null&&(r+="");var t=e.overflow,a=e.padding,i=e.font,n=t==="truncate",o=bh(i),s=ut(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",f=e.width,h;f!=null&&(t==="break"||t==="breakAll")?h=r?DT(r,e.font,f,t==="breakAll",0).lines:[]:h=r?r.split(`
`):[];var c=h.length*s,v=ut(e.height,c);if(c>v&&u){var d=Math.floor(v/s);h=h.slice(0,d)}if(r&&n&&f!=null)for(var p=CT(f,i,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),g=0;g<h.length;g++)h[g]=AT(h[g],p);for(var y=v,m=0,g=0;g<h.length;g++)m=Math.max(Ue(h[g],i),m);f==null&&(f=m);var _=m;return a&&(y+=a[0]+a[2],_+=a[1]+a[3],f+=a[1]+a[3]),l&&(_=f),{lines:h,height:v,outerWidth:_,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:m,contentHeight:c,width:f}}var bR=function(){function r(){}return r}(),s0=function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r}(),wR=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return r}();function TR(r,e){var t=new wR;if(r!=null&&(r+=""),!r)return t;for(var a=e.width,i=e.height,n=e.overflow,o=(n==="break"||n==="breakAll")&&a!=null?{width:a,accumWidth:0,breakAll:n==="breakAll"}:null,s=Mv.lastIndex=0,l;(l=Mv.exec(r))!=null;){var u=l.index;u>s&&Lv(t,r.substring(s,u),e,o),Lv(t,l[2],e,o,l[1]),s=Mv.lastIndex}s<r.length&&Lv(t,r.substring(s,r.length),e,o);var f=[],h=0,c=0,v=e.padding,d=n==="truncate",p=e.lineOverflow==="truncate";function g(O,B,F){O.width=B,O.lineHeight=F,h+=F,c=Math.max(c,B)}t:for(var y=0;y<t.lines.length;y++){for(var m=t.lines[y],_=0,S=0,b=0;b<m.tokens.length;b++){var x=m.tokens[b],w=x.styleName&&e.rich[x.styleName]||{},T=x.textPadding=w.padding,C=T?T[1]+T[3]:0,D=x.font=w.font||e.font;x.contentHeight=bh(D);var M=ut(w.height,x.contentHeight);if(x.innerHeight=M,T&&(M+=T[0]+T[2]),x.height=M,x.lineHeight=ua(w.lineHeight,e.lineHeight,M),x.align=w&&w.align||e.align,x.verticalAlign=w&&w.verticalAlign||"middle",p&&i!=null&&h+x.lineHeight>i){b>0?(m.tokens=m.tokens.slice(0,b),g(m,S,_),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break t}var L=w.width,I=L==null||L==="auto";if(typeof L=="string"&&L.charAt(L.length-1)==="%")x.percentWidth=L,f.push(x),x.contentWidth=Ue(x.text,D);else{if(I){var P=w.backgroundColor,R=P&&P.image;R&&(R=mR(R),Th(R)&&(x.width=Math.max(x.width,R.width*M/R.height)))}var E=d&&a!=null?a-S:null;E!=null&&E<x.width?!I||E<C?(x.text="",x.width=x.contentWidth=0):(x.text=_R(x.text,E-C,D,e.ellipsis,{minChar:e.truncateMinChar}),x.width=x.contentWidth=Ue(x.text,D)):x.contentWidth=Ue(x.text,D)}x.width+=C,S+=x.width,w&&(_=Math.max(_,x.lineHeight))}g(m,S,_)}t.outerWidth=t.width=ut(a,c),t.outerHeight=t.height=ut(i,h),t.contentHeight=h,t.contentWidth=c,v&&(t.outerWidth+=v[1]+v[3],t.outerHeight+=v[0]+v[2]);for(var y=0;y<f.length;y++){var x=f[y],N=x.percentWidth;x.width=parseInt(N,10)/100*t.width}return t}function Lv(r,e,t,a,i){var n=e==="",o=i&&t.rich[i]||{},s=r.lines,l=o.font||t.font,u=!1,f,h;if(a){var c=o.padding,v=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Ar(o.width,a.width)+v;s.length>0&&d+a.accumWidth>a.width&&(f=e.split(`
`),u=!0),a.accumWidth=d}else{var p=DT(e,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=p.accumWidth+v,h=p.linesWidths,f=p.lines}}else f=e.split(`
`);for(var g=0;g<f.length;g++){var y=f[g],m=new bR;if(m.styleName=i,m.text=y,m.isLineHolder=!y&&!n,typeof o.width=="number"?m.width=o.width:m.width=h?h[g]:Ue(y,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new s0)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=m:(y||!S||n)&&_.push(m)}else s.push(new s0([m]))}}function CR(r){var e=r.charCodeAt(0);return e>=33&&e<=383}var AR=Yr(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function DR(r){return CR(r)?!!AR[r]:!0}function DT(r,e,t,a,i){for(var n=[],o=[],s="",l="",u=0,f=0,h=0;h<r.length;h++){var c=r.charAt(h);if(c===`
`){l&&(s+=l,f+=u),n.push(s),o.push(f),s="",l="",u=0,f=0;continue}var v=Ue(c,e),d=a?!1:!DR(c);if(n.length?f+v>t:i+f+v>t){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),n.push(s),o.push(f-u),l+=c,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),n.push(s),o.push(f),s=c,f=v)):d?(n.push(l),o.push(u),l=c,u=v):(n.push(c),o.push(v));continue}f+=v,d?(l+=c,u+=v):(l&&(s+=l,l="",u=0),s+=c)}return!n.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(n.push(s),o.push(f)),n.length===1&&(f+=i),{accumWidth:f,lines:n,linesWidths:o}}var Qd="__zr_style_"+Math.round(Math.random()*10),sn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ch={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};sn[Qd]=!0;var l0=["z","z2","invisible"],MR=["invisible"],LR=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var a=St(t),i=0;i<a.length;i++){var n=a[i];n==="style"?this.useStyle(t[n]):r.prototype.attrKV.call(this,n,t[n])}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,a,i,n){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&IR(this,t,a)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(n&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,a){return this.rectContain(t,a)},e.prototype.traverse=function(t,a){t.call(a,this)},e.prototype.rectContain=function(t,a){var i=this.transformCoordToLocal(t,a),n=this.getBoundingRect();return n.contain(i[0],i[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var a=this.transform,i=this.getBoundingRect(),n=this.style,o=n.shadowBlur||0,s=n.shadowOffsetX||0,l=n.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new ht(0,0,0,0)),a?ht.applyTransform(t,i,a):t.copy(i),(o||s||l)&&(t.width+=o*2+Math.abs(s),t.height+=o*2+Math.abs(l),t.x=Math.min(t.x,t.x+s-o),t.y=Math.min(t.y,t.y+l-o));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+u*2),t.height=Math.ceil(t.height+1+u*2))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new ht(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){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,a){t!=="style"?r.prototype.attrKV.call(this,t,a):this.style?this.setStyle(a):this.useStyle(a)},e.prototype.setStyle=function(t,a){return typeof t=="string"?this.style[t]=a:V(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=Ss,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Ss)},e.prototype.styleUpdated=function(){this.__dirty&=~Ss},e.prototype.createStyle=function(t){return _h(sn,t)},e.prototype.useStyle=function(t){t[Qd]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[Qd]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.style&&!a.style&&(a.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,a,l0)},e.prototype._applyStateObj=function(t,a,i,n,o,s){r.prototype._applyStateObj.call(this,t,a,i,n,o,s);var l=!(a&&n),u;if(a&&a.style?o?n?u=a.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,a.style)):(u=this._mergeStyle(this.createStyle(),n?this.style:i.style),this._mergeStyle(u,a.style)):l&&(u=i.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=St(f),c=0;c<h.length;c++){var v=h[c];v in u&&(u[v]=u[v],this.style[v]=f[v])}for(var d=St(u),c=0;c<d.length;c++){var v=d[c];this.style[v]=this.style[v]}this._transitionState(t,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?MR:l0,c=0;c<p.length;c++){var v=p[c];a&&a[v]!=null?this[v]=a[v]:l&&i[v]!=null&&(this[v]=i[v])}},e.prototype._mergeStates=function(t){for(var a=r.prototype._mergeStates.call(this,t),i,n=0;n<t.length;n++){var o=t[n];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(a.style=i),a},e.prototype._mergeStyle=function(t,a){return V(t,a),t},e.prototype.getAnimationStyleProps=function(){return Ch},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=$e|Ss}(),e}(sT),Iv=new ht(0,0,0,0),Pv=new ht(0,0,0,0);function IR(r,e,t){return Iv.copy(r.getBoundingRect()),r.transform&&Iv.applyTransform(r.transform),Pv.width=e,Pv.height=t,!Iv.intersect(Pv)}var vr=LR,Oe=Math.min,Ne=Math.max,Rv=Math.sin,Ev=Math.cos,bi=Math.PI*2,nu=Tn(),ou=Tn(),su=Tn();function Ah(r,e,t){if(r.length!==0){for(var a=r[0],i=a[0],n=a[0],o=a[1],s=a[1],l=1;l<r.length;l++)a=r[l],i=Oe(i,a[0]),n=Ne(n,a[0]),o=Oe(o,a[1]),s=Ne(s,a[1]);e[0]=i,e[1]=o,t[0]=n,t[1]=s}}function u0(r,e,t,a,i,n){i[0]=Oe(r,t),i[1]=Oe(e,a),n[0]=Ne(r,t),n[1]=Ne(e,a)}var f0=[],h0=[];function PR(r,e,t,a,i,n,o,s,l,u){var f=Uw,h=ie,c=f(r,t,i,o,f0);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<c;v++){var d=h(r,t,i,o,f0[v]);l[0]=Oe(d,l[0]),u[0]=Ne(d,u[0])}c=f(e,a,n,s,h0);for(var v=0;v<c;v++){var p=h(e,a,n,s,h0[v]);l[1]=Oe(p,l[1]),u[1]=Ne(p,u[1])}l[0]=Oe(r,l[0]),u[0]=Ne(r,u[0]),l[0]=Oe(o,l[0]),u[0]=Ne(o,u[0]),l[1]=Oe(e,l[1]),u[1]=Ne(e,u[1]),l[1]=Oe(s,l[1]),u[1]=Ne(s,u[1])}function RR(r,e,t,a,i,n,o,s){var l=Zw,u=se,f=Ne(Oe(l(r,t,i),1),0),h=Ne(Oe(l(e,a,n),1),0),c=u(r,t,i,f),v=u(e,a,n,h);o[0]=Oe(r,i,c),o[1]=Oe(e,n,v),s[0]=Ne(r,i,c),s[1]=Ne(e,n,v)}function ER(r,e,t,a,i,n,o,s,l){var u=Fa,f=Ha,h=Math.abs(i-n);if(h%bi<1e-4&&h>1e-4){s[0]=r-t,s[1]=e-a,l[0]=r+t,l[1]=e+a;return}if(nu[0]=Ev(i)*t+r,nu[1]=Rv(i)*a+e,ou[0]=Ev(n)*t+r,ou[1]=Rv(n)*a+e,u(s,nu,ou),f(l,nu,ou),i=i%bi,i<0&&(i=i+bi),n=n%bi,n<0&&(n=n+bi),i>n&&!o?n+=bi:i<n&&o&&(i+=bi),o){var c=n;n=i,i=c}for(var v=0;v<n;v+=Math.PI/2)v>i&&(su[0]=Ev(v)*t+r,su[1]=Rv(v)*a+e,u(s,su,s),f(l,su,l))}var Ot={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},wi=[],Ti=[],Pr=[],Ma=[],Rr=[],Er=[],kv=Math.min,Ov=Math.max,Ci=Math.cos,Ai=Math.sin,ea=Math.abs,jd=Math.PI,Na=jd*2,Nv=typeof Float32Array!="undefined",Ko=[];function Bv(r){var e=Math.round(r/jd*1e8)/1e8;return e%2*jd}function MT(r,e){var t=Bv(r[0]);t<0&&(t+=Na);var a=t-r[0],i=r[1];i+=a,!e&&i-t>=Na?i=t+Na:e&&t-i>=Na?i=t-Na:!e&&t>i?i=t+(Na-Bv(t-i)):e&&t<i&&(i=t-(Na-Bv(i-t))),r[0]=t,r[1]=i}var Kr=function(){function r(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(e,t,a){a=a||0,a>0&&(this._ux=ea(a/Df/e)||0,this._uy=ea(a/Df/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Ot.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var a=ea(e-this._xi),i=ea(t-this._yi),n=a>this._ux||i>this._uy;if(this.addData(Ot.L,e,t),this._ctx&&n&&this._ctx.lineTo(e,t),n)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=a*a+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,a,i,n,o){return this._drawPendingPt(),this.addData(Ot.C,e,t,a,i,n,o),this._ctx&&this._ctx.bezierCurveTo(e,t,a,i,n,o),this._xi=n,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,a,i){return this._drawPendingPt(),this.addData(Ot.Q,e,t,a,i),this._ctx&&this._ctx.quadraticCurveTo(e,t,a,i),this._xi=a,this._yi=i,this},r.prototype.arc=function(e,t,a,i,n,o){this._drawPendingPt(),Ko[0]=i,Ko[1]=n,MT(Ko,o),i=Ko[0],n=Ko[1];var s=n-i;return this.addData(Ot.A,e,t,a,a,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,a,i,n,o),this._xi=Ci(n)*a+e,this._yi=Ai(n)*a+t,this},r.prototype.arcTo=function(e,t,a,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,a,i,n),this},r.prototype.rect=function(e,t,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,a,i),this.addData(Ot.R,e,t,a,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ot.Z);var e=this._ctx,t=this._x0,a=this._y0;return e&&e.closePath(),this._xi=t,this._yi=a,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&Nv&&(this.data=new Float32Array(t));for(var a=0;a<t;a++)this.data[a]=e[a];this._len=t},r.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,a=0,i=this._len,n=0;n<t;n++)a+=e[n].len();Nv&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+a));for(var n=0;n<t;n++)for(var o=e[n].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},r.prototype.addData=function(e,t,a,i,n,o,s,l,u){if(!!this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},r.prototype.toStatic=function(){if(!!this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Nv&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){Pr[0]=Pr[1]=Rr[0]=Rr[1]=Number.MAX_VALUE,Ma[0]=Ma[1]=Er[0]=Er[1]=-Number.MAX_VALUE;var e=this.data,t=0,a=0,i=0,n=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(t=e[o],a=e[o+1],i=t,n=a),s){case Ot.M:t=i=e[o++],a=n=e[o++],Rr[0]=i,Rr[1]=n,Er[0]=i,Er[1]=n;break;case Ot.L:u0(t,a,e[o],e[o+1],Rr,Er),t=e[o++],a=e[o++];break;case Ot.C:PR(t,a,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Rr,Er),t=e[o++],a=e[o++];break;case Ot.Q:RR(t,a,e[o++],e[o++],e[o],e[o+1],Rr,Er),t=e[o++],a=e[o++];break;case Ot.A:var u=e[o++],f=e[o++],h=e[o++],c=e[o++],v=e[o++],d=e[o++]+v;o+=1;var p=!e[o++];l&&(i=Ci(v)*h+u,n=Ai(v)*c+f),ER(u,f,h,c,v,d,p,Rr,Er),t=Ci(d)*h+u,a=Ai(d)*c+f;break;case Ot.R:i=t=e[o++],n=a=e[o++];var g=e[o++],y=e[o++];u0(i,n,i+g,n+y,Rr,Er);break;case Ot.Z:t=i,a=n;break}Fa(Pr,Pr,Rr),Ha(Ma,Ma,Er)}return o===0&&(Pr[0]=Pr[1]=Ma[0]=Ma[1]=0),new ht(Pr[0],Pr[1],Ma[0]-Pr[0],Ma[1]-Pr[1])},r.prototype._calculateLength=function(){var e=this.data,t=this._len,a=this._ux,i=this._uy,n=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,h=0,c=0;c<t;){var v=e[c++],d=c===1;d&&(n=e[c],o=e[c+1],s=n,l=o);var p=-1;switch(v){case Ot.M:n=s=e[c++],o=l=e[c++];break;case Ot.L:{var g=e[c++],y=e[c++],m=g-n,_=y-o;(ea(m)>a||ea(_)>i||c===t-1)&&(p=Math.sqrt(m*m+_*_),n=g,o=y);break}case Ot.C:{var S=e[c++],b=e[c++],g=e[c++],y=e[c++],x=e[c++],w=e[c++];p=ZI(n,o,S,b,g,y,x,w,10),n=x,o=w;break}case Ot.Q:{var S=e[c++],b=e[c++],g=e[c++],y=e[c++];p=qI(n,o,S,b,g,y,10),n=g,o=y;break}case Ot.A:var T=e[c++],C=e[c++],D=e[c++],M=e[c++],L=e[c++],I=e[c++],P=I+L;c+=1,e[c++],d&&(s=Ci(L)*D+T,l=Ai(L)*M+C),p=Ov(D,M)*kv(Na,Math.abs(I)),n=Ci(P)*D+T,o=Ai(P)*M+C;break;case Ot.R:{s=n=e[c++],l=o=e[c++];var R=e[c++],E=e[c++];p=R*2+E*2;break}case Ot.Z:{var m=s-n,_=l-o;p=Math.sqrt(m*m+_*_),n=s,o=l;break}}p>=0&&(u[h++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var a=this.data,i=this._ux,n=this._uy,o=this._len,s,l,u,f,h,c,v=t<1,d,p,g=0,y=0,m,_=0,S,b;if(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=t*p,!m))return;t:for(var x=0;x<o;){var w=a[x++],T=x===1;switch(T&&(u=a[x],f=a[x+1],s=u,l=f),w!==Ot.L&&_>0&&(e.lineTo(S,b),_=0),w){case Ot.M:s=u=a[x++],l=f=a[x++],e.moveTo(u,f);break;case Ot.L:{h=a[x++],c=a[x++];var C=ea(h-u),D=ea(c-f);if(C>i||D>n){if(v){var M=d[y++];if(g+M>m){var L=(m-g)/M;e.lineTo(u*(1-L)+h*L,f*(1-L)+c*L);break t}g+=M}e.lineTo(h,c),u=h,f=c,_=0}else{var I=C*C+D*D;I>_&&(S=h,b=c,_=I)}break}case Ot.C:{var P=a[x++],R=a[x++],E=a[x++],N=a[x++],O=a[x++],B=a[x++];if(v){var M=d[y++];if(g+M>m){var L=(m-g)/M;ei(u,P,E,O,L,wi),ei(f,R,N,B,L,Ti),e.bezierCurveTo(wi[1],Ti[1],wi[2],Ti[2],wi[3],Ti[3]);break t}g+=M}e.bezierCurveTo(P,R,E,N,O,B),u=O,f=B;break}case Ot.Q:{var P=a[x++],R=a[x++],E=a[x++],N=a[x++];if(v){var M=d[y++];if(g+M>m){var L=(m-g)/M;Js(u,P,E,L,wi),Js(f,R,N,L,Ti),e.quadraticCurveTo(wi[1],Ti[1],wi[2],Ti[2]);break t}g+=M}e.quadraticCurveTo(P,R,E,N),u=E,f=N;break}case Ot.A:var F=a[x++],W=a[x++],X=a[x++],j=a[x++],nt=a[x++],Mt=a[x++],Lt=a[x++],pt=!a[x++],rt=X>j?X:j,mt=ea(X-j)>.001,vt=nt+Mt,q=!1;if(v){var M=d[y++];g+M>m&&(vt=nt+Mt*(m-g)/M,q=!0),g+=M}if(mt&&e.ellipse?e.ellipse(F,W,X,j,Lt,nt,vt,pt):e.arc(F,W,rt,nt,vt,pt),q)break t;T&&(s=Ci(nt)*X+F,l=Ai(nt)*j+W),u=Ci(vt)*X+F,f=Ai(vt)*j+W;break;case Ot.R:s=u=a[x],l=f=a[x+1],h=a[x++],c=a[x++];var st=a[x++],Gt=a[x++];if(v){var M=d[y++];if(g+M>m){var xt=m-g;e.moveTo(h,c),e.lineTo(h+kv(xt,st),c),xt-=st,xt>0&&e.lineTo(h+st,c+kv(xt,Gt)),xt-=Gt,xt>0&&e.lineTo(h+Ov(st-xt,0),c+Gt),xt-=st,xt>0&&e.lineTo(h,c+Ov(Gt-xt,0));break t}g+=M}e.rect(h,c,st,Gt);break;case Ot.Z:if(v){var M=d[y++];if(g+M>m){var L=(m-g)/M;e.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break t}g+=M}e.closePath(),u=s,f=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.CMD=Ot,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),r}();function Va(r,e,t,a,i,n,o){if(i===0)return!1;var s=i,l=0,u=r;if(o>e+s&&o>a+s||o<e-s&&o<a-s||n>r+s&&n>t+s||n<r-s&&n<t-s)return!1;if(r!==t)l=(e-a)/(r-t),u=(r*a-t*e)/(r-t);else return Math.abs(n-r)<=s/2;var f=l*n-o+u,h=f*f/(l*l+1);return h<=s/2*s/2}function kR(r,e,t,a,i,n,o,s,l,u,f){if(l===0)return!1;var h=l;if(f>e+h&&f>a+h&&f>n+h&&f>s+h||f<e-h&&f<a-h&&f<n-h&&f<s-h||u>r+h&&u>t+h&&u>i+h&&u>o+h||u<r-h&&u<t-h&&u<i-h&&u<o-h)return!1;var c=Yw(r,e,t,a,i,n,o,s,u,f,null);return c<=h/2}function LT(r,e,t,a,i,n,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>a+u&&l>n+u||l<e-u&&l<a-u&&l<n-u||s>r+u&&s>t+u&&s>i+u||s<r-u&&s<t-u&&s<i-u)return!1;var f=Xw(r,e,t,a,i,n,s,l,null);return f<=u/2}var v0=Math.PI*2;function Ya(r){return r%=v0,r<0&&(r+=v0),r}var Jo=Math.PI*2;function OR(r,e,t,a,i,n,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>t||f+u<t)return!1;if(Math.abs(a-i)%Jo<1e-4)return!0;if(n){var h=a;a=Ya(i),i=Ya(h)}else a=Ya(a),i=Ya(i);a>i&&(i+=Jo);var c=Math.atan2(l,s);return c<0&&(c+=Jo),c>=a&&c<=i||c+Jo>=a&&c+Jo<=i}function na(r,e,t,a,i,n){if(n>e&&n>a||n<e&&n<a||a===e)return 0;var o=(n-e)/(a-e),s=a<e?1:-1;(o===1||o===0)&&(s=a<e?.5:-.5);var l=o*(t-r)+r;return l===i?1/0:l>i?s:0}var La=Kr.CMD,Di=Math.PI*2,NR=1e-4;function BR(r,e){return Math.abs(r-e)<NR}var Ae=[-1,-1,-1],ar=[-1,-1];function VR(){var r=ar[0];ar[0]=ar[1],ar[1]=r}function zR(r,e,t,a,i,n,o,s,l,u){if(u>e&&u>a&&u>n&&u>s||u<e&&u<a&&u<n&&u<s)return 0;var f=wf(e,a,n,s,u,Ae);if(f===0)return 0;for(var h=0,c=-1,v=void 0,d=void 0,p=0;p<f;p++){var g=Ae[p],y=g===0||g===1?.5:1,m=ie(r,t,i,o,g);m<l||(c<0&&(c=Uw(e,a,n,s,ar),ar[1]<ar[0]&&c>1&&VR(),v=ie(e,a,n,s,ar[0]),c>1&&(d=ie(e,a,n,s,ar[1]))),c===2?g<ar[0]?h+=v<e?y:-y:g<ar[1]?h+=d<v?y:-y:h+=s<d?y:-y:g<ar[0]?h+=v<e?y:-y:h+=s<v?y:-y)}return h}function GR(r,e,t,a,i,n,o,s){if(s>e&&s>a&&s>n||s<e&&s<a&&s<n)return 0;var l=XI(e,a,n,s,Ae);if(l===0)return 0;var u=Zw(e,a,n);if(u>=0&&u<=1){for(var f=0,h=se(e,a,n,u),c=0;c<l;c++){var v=Ae[c]===0||Ae[c]===1?.5:1,d=se(r,t,i,Ae[c]);d<o||(Ae[c]<u?f+=h<e?v:-v:f+=n<h?v:-v)}return f}else{var v=Ae[0]===0||Ae[0]===1?.5:1,d=se(r,t,i,Ae[0]);return d<o?0:n<e?v:-v}}function FR(r,e,t,a,i,n,o,s){if(s-=e,s>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Ae[0]=-l,Ae[1]=l;var u=Math.abs(a-i);if(u<1e-4)return 0;if(u>=Di-1e-4){a=0,i=Di;var f=n?1:-1;return o>=Ae[0]+r&&o<=Ae[1]+r?f:0}if(a>i){var h=a;a=i,i=h}a<0&&(a+=Di,i+=Di);for(var c=0,v=0;v<2;v++){var d=Ae[v];if(d+r>o){var p=Math.atan2(s,d),f=n?1:-1;p<0&&(p=Di+p),(p>=a&&p<=i||p+Di>=a&&p+Di<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),c+=f)}}return c}function IT(r,e,t,a,i){for(var n=r.data,o=r.len(),s=0,l=0,u=0,f=0,h=0,c,v,d=0;d<o;){var p=n[d++],g=d===1;switch(p===La.M&&d>1&&(t||(s+=na(l,u,f,h,a,i))),g&&(l=n[d],u=n[d+1],f=l,h=u),p){case La.M:f=n[d++],h=n[d++],l=f,u=h;break;case La.L:if(t){if(Va(l,u,n[d],n[d+1],e,a,i))return!0}else s+=na(l,u,n[d],n[d+1],a,i)||0;l=n[d++],u=n[d++];break;case La.C:if(t){if(kR(l,u,n[d++],n[d++],n[d++],n[d++],n[d],n[d+1],e,a,i))return!0}else s+=zR(l,u,n[d++],n[d++],n[d++],n[d++],n[d],n[d+1],a,i)||0;l=n[d++],u=n[d++];break;case La.Q:if(t){if(LT(l,u,n[d++],n[d++],n[d],n[d+1],e,a,i))return!0}else s+=GR(l,u,n[d++],n[d++],n[d],n[d+1],a,i)||0;l=n[d++],u=n[d++];break;case La.A:var y=n[d++],m=n[d++],_=n[d++],S=n[d++],b=n[d++],x=n[d++];d+=1;var w=!!(1-n[d++]);c=Math.cos(b)*_+y,v=Math.sin(b)*S+m,g?(f=c,h=v):s+=na(l,u,c,v,a,i);var T=(a-y)*S/_+y;if(t){if(OR(y,m,S,b,b+x,w,e,T,i))return!0}else s+=FR(y,m,S,b,b+x,w,T,i);l=Math.cos(b+x)*_+y,u=Math.sin(b+x)*S+m;break;case La.R:f=l=n[d++],h=u=n[d++];var C=n[d++],D=n[d++];if(c=f+C,v=h+D,t){if(Va(f,h,c,h,e,a,i)||Va(c,h,c,v,e,a,i)||Va(c,v,f,v,e,a,i)||Va(f,v,f,h,e,a,i))return!0}else s+=na(c,h,c,v,a,i),s+=na(f,v,f,h,a,i);break;case La.Z:if(t){if(Va(l,u,f,h,e,a,i))return!0}else s+=na(l,u,f,h,a,i);l=f,u=h;break}}return!t&&!BR(u,h)&&(s+=na(l,u,f,h,a,i)||0),s!==0}function HR(r,e,t){return IT(r,0,!1,e,t)}function $R(r,e,t,a){return IT(r,e,!0,t,a)}var If=Q({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},sn),WR={style:Q({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ch.style)},Vv=Xr.concat(["invisible","culling","z","z2","zlevel","parent"]),UR=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var a=this.style;if(a.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){t.buildPath(l,t.shape)}),i.silent=!0;var n=i.style;for(var o in a)n[o]!==a[o]&&(n[o]=a[o]);n.fill=a.fill?a.decal:null,n.decal=null,n.shadowColor=null,a.strokeFirst&&(n.stroke=null);for(var s=0;s<Vv.length;++s)i[Vv[s]]=this[Vv[s]];i.__dirty|=$e}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var a=St(t);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var n=0;n<a.length;n++){var o=a[n],s=t[o];o==="style"?this.style?V(this.style,s):this.useStyle(s):o==="shape"?V(this.shape,s):r.prototype.attrKV.call(this,o,s)}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(t!=="none"){if(U(t)){var a=Cf(t,0);return a>.5?Xd:a>.2?MP:qd}else if(t)return qd}return Xd},e.prototype.getInsideTextStroke=function(t){var a=this.style.fill;if(U(a)){var i=this.__zr,n=!!(i&&i.isDarkMode()),o=Cf(t,0)<Zd;if(n===o)return a}},e.prototype.buildPath=function(t,a,i){},e.prototype.pathUpdated=function(){this.__dirty&=~Qn},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 Kr(!1)},e.prototype.hasStroke=function(){var t=this.style,a=t.stroke;return!(a==null||a==="none"||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,a=this.style,i=!t;if(i){var n=!1;this.path||(n=!0,this.createPathProxy());var o=this.path;(n||this.__dirty&Qn)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||i){s.copy(t);var l=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f==null?4:f)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,a){var i=this.transformCoordToLocal(t,a),n=this.getBoundingRect(),o=this.style;if(t=i[0],a=i[1],n.contain(t,a)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),$R(s,l/u,t,a)))return!0}if(this.hasFill())return HR(s,t,a)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Qn,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){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,a){t==="shape"?this.setShape(a):r.prototype.attrKV.call(this,t,a)},e.prototype.setShape=function(t,a){var i=this.shape;return i||(i=this.shape={}),typeof t=="string"?i[t]=a:V(i,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Qn)},e.prototype.createStyle=function(t){return _h(If,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.shape&&!a.shape&&(a.shape=V({},this.shape))},e.prototype._applyStateObj=function(t,a,i,n,o,s){r.prototype._applyStateObj.call(this,t,a,i,n,o,s);var l=!(a&&n),u;if(a&&a.shape?o?n?u=a.shape:(u=V({},i.shape),V(u,a.shape)):(u=V({},n?this.shape:i.shape),V(u,a.shape)):l&&(u=i.shape),u)if(o){this.shape=V({},this.shape);for(var f={},h=St(u),c=0;c<h.length;c++){var v=h[c];typeof u[v]=="object"?this.shape[v]=u[v]:f[v]=u[v]}this._transitionState(t,{shape:f},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(t){for(var a=r.prototype._mergeStates.call(this,t),i,n=0;n<t.length;n++){var o=t[n];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(a.shape=i),a},e.prototype.getAnimationStyleProps=function(){return WR},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var a=function(n){k(o,n);function o(s){var l=n.call(this,s)||this;return t.init&&t.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return et(t.style)},o.prototype.getDefaultShape=function(){return et(t.shape)},o}(e);for(var i in t)typeof t[i]=="function"&&(a.prototype[i]=t[i]);return a},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=$e|Ss|Qn}(),e}(vr),yt=UR,YR=Q({strokeFirst:!0,font:ti,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},If),PT=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var t=this.style,a=t.stroke;return a!=null&&a!=="none"&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.createStyle=function(t){return _h(YR,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var a=t.text;a!=null?a+="":a="";var i=Al(a,t.font,t.textAlign,t.textBaseline);if(i.x+=t.x||0,i.y+=t.y||0,this.hasStroke()){var n=t.lineWidth;i.x-=n/2,i.y-=n/2,i.width+=n,i.height+=n}this._rect=i}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(vr);PT.prototype.type="tspan";var tl=PT,ZR=Q({x:0,y:0},sn),XR={style:Q({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ch.style)};function qR(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var RT=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return _h(ZR,t)},e.prototype._getSize=function(t){var a=this.style,i=a[t];if(i!=null)return i;var n=qR(a.image)?a.image:this.__image;if(!n)return 0;var o=t==="width"?"height":"width",s=a[o];return s==null?n[t]:n[t]/n[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return XR},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ht(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(vr);RT.prototype.type="image";var ge=RT;function KR(r,e){var t=e.x,a=e.y,i=e.width,n=e.height,o=e.r,s,l,u,f;i<0&&(t=t+i,i=-i),n<0&&(a=a+n,n=-n),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>i&&(h=s+l,s*=i/h,l*=i/h),u+f>i&&(h=u+f,u*=i/h,f*=i/h),l+u>n&&(h=l+u,l*=n/h,u*=n/h),s+f>n&&(h=s+f,s*=n/h,f*=n/h),r.moveTo(t+s,a),r.lineTo(t+i-l,a),l!==0&&r.arc(t+i-l,a+l,l,-Math.PI/2,0),r.lineTo(t+i,a+n-u),u!==0&&r.arc(t+i-u,a+n-u,u,0,Math.PI/2),r.lineTo(t+f,a+n),f!==0&&r.arc(t+f,a+n-f,f,Math.PI/2,Math.PI),r.lineTo(t,a+s),s!==0&&r.arc(t+s,a+s,s,Math.PI,Math.PI*1.5)}var io=Math.round;function ET(r,e,t){if(!!e){var a=e.x1,i=e.x2,n=e.y1,o=e.y2;r.x1=a,r.x2=i,r.y1=n,r.y2=o;var s=t&&t.lineWidth;return s&&(io(a*2)===io(i*2)&&(r.x1=r.x2=Qi(a,s,!0)),io(n*2)===io(o*2)&&(r.y1=r.y2=Qi(n,s,!0))),r}}function kT(r,e,t){if(!!e){var a=e.x,i=e.y,n=e.width,o=e.height;r.x=a,r.y=i,r.width=n,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=Qi(a,s,!0),r.y=Qi(i,s,!0),r.width=Math.max(Qi(a+n,s,!1)-r.x,n===0?0:1),r.height=Math.max(Qi(i+o,s,!1)-r.y,o===0?0:1)),r}}function Qi(r,e,t){if(!e)return r;var a=io(r*2);return(a+io(e))%2===0?a/2:(a+(t?1:-1))/2}var JR=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),QR={},OT=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new JR},e.prototype.buildPath=function(t,a){var i,n,o,s;if(this.subPixelOptimize){var l=kT(QR,a,this.style);i=l.x,n=l.y,o=l.width,s=l.height,l.r=a.r,a=l}else i=a.x,n=a.y,o=a.width,s=a.height;a.r?KR(t,a):t.rect(i,n,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(yt);OT.prototype.type="rect";var bt=OT,c0={fill:"#000"},d0=2,jR={style:Q({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},Ch.style)},NT=function(r){k(e,r);function e(t){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=c0,a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var a=this._children[t];a.zlevel=this.zlevel,a.z=this.z,a.z2=this.z2,a.culling=this.culling,a.cursor=this.cursor,a.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):r.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var a=this.innerTransformable;return a?a.getLocalTransform(t):r.prototype.getLocalTransform.call(this,t)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,rE(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var a=0;a<this._children.length;a++)this._children[a].__zr=t},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var a=0;a<this._children.length;a++)this._children[a].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new ht(0,0,0,0),a=this._children,i=[],n=null,o=0;o<a.length;o++){var s=a[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(t.copy(l),t.applyTransform(u),n=n||t.clone(),n.union(t)):(n=n||l.clone(),n.union(l))}this._rect=n||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||c0},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,a){if(!a)return t;var i=a.rich,n=t.rich||i&&{};return V(t,a),i&&n?(this._mergeRich(n,i),t.rich=n):n&&(t.rich=n),t},e.prototype._mergeRich=function(t,a){for(var i=St(a),n=0;n<i.length;n++){var o=i[n];t[o]=t[o]||{},V(t[o],a[o])}},e.prototype.getAnimationStyleProps=function(){return jR},e.prototype._getOrCreateChild=function(t){var a=this._children[this._childCursor];return(!a||!(a instanceof t))&&(a=new t),this._children[this._childCursor++]=a,a.__zr=this.__zr,a.parent=this,a},e.prototype._updatePlainTexts=function(){var t=this.style,a=t.font||ti,i=t.padding,n=x0(t),o=xR(n,t),s=zv(t),l=!!t.backgroundColor,u=o.outerHeight,f=o.outerWidth,h=o.contentWidth,c=o.lines,v=o.lineHeight,d=this._defaultStyle,p=t.x||0,g=t.y||0,y=t.align||d.align||"left",m=t.verticalAlign||d.verticalAlign||"top",_=p,S=jn(g,o.contentHeight,m);if(s||i){var b=bs(p,f,y),x=jn(g,u,m);s&&this._renderBackground(t,t,b,x,f,u)}S+=v/2,i&&(_=S0(p,y,i),m==="top"?S+=i[0]:m==="bottom"&&(S-=i[2]));for(var w=0,T=!1,C=_0("fill"in t?t.fill:(T=!0,d.fill)),D=m0("stroke"in t?t.stroke:!l&&(!d.autoStroke||T)?(w=d0,d.stroke):null),M=t.textShadowBlur>0,L=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),I=o.calculatedLineHeight,P=0;P<c.length;P++){var R=this._getOrCreateChild(tl),E=R.createStyle();R.useStyle(E),E.text=c[P],E.x=_,E.y=S,y&&(E.textAlign=y),E.textBaseline="middle",E.opacity=t.opacity,E.strokeFirst=!0,M&&(E.shadowBlur=t.textShadowBlur||0,E.shadowColor=t.textShadowColor||"transparent",E.shadowOffsetX=t.textShadowOffsetX||0,E.shadowOffsetY=t.textShadowOffsetY||0),E.stroke=D,E.fill=C,D&&(E.lineWidth=t.lineWidth||w,E.lineDash=t.lineDash,E.lineDashOffset=t.lineDashOffset||0),E.font=a,g0(E,t),S+=v,L&&R.setBoundingRect(new ht(bs(E.x,t.width,E.textAlign),jn(E.y,I,E.textBaseline),h,I))}},e.prototype._updateRichTexts=function(){var t=this.style,a=x0(t),i=TR(a,t),n=i.width,o=i.outerWidth,s=i.outerHeight,l=t.padding,u=t.x||0,f=t.y||0,h=this._defaultStyle,c=t.align||h.align,v=t.verticalAlign||h.verticalAlign,d=bs(u,o,c),p=jn(f,s,v),g=d,y=p;l&&(g+=l[3],y+=l[0]);var m=g+n;zv(t)&&this._renderBackground(t,t,d,p,o,s);for(var _=!!t.backgroundColor,S=0;S<i.lines.length;S++){for(var b=i.lines[S],x=b.tokens,w=x.length,T=b.lineHeight,C=b.width,D=0,M=g,L=m,I=w-1,P=void 0;D<w&&(P=x[D],!P.align||P.align==="left");)this._placeToken(P,t,T,y,M,"left",_),C-=P.width,M+=P.width,D++;for(;I>=0&&(P=x[I],P.align==="right");)this._placeToken(P,t,T,y,L,"right",_),C-=P.width,L-=P.width,I--;for(M+=(n-(M-g)-(m-L)-C)/2;D<=I;)P=x[D],this._placeToken(P,t,T,y,M+P.width/2,"center",_),M+=P.width,D++;y+=T}},e.prototype._placeToken=function(t,a,i,n,o,s,l){var u=a.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,h=n+i/2;f==="top"?h=n+t.height/2:f==="bottom"&&(h=n+i-t.height/2);var c=!t.isLineHolder&&zv(u);c&&this._renderBackground(u,a,s==="right"?o-t.width:s==="center"?o-t.width/2:o,h-t.height/2,t.width,t.height);var v=!!u.backgroundColor,d=t.textPadding;d&&(o=S0(o,s,d),h-=t.height/2-d[0]-t.innerHeight/2);var p=this._getOrCreateChild(tl),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=_0("fill"in u?u.fill:"fill"in a?a.fill:(m=!0,y.fill)),b=m0("stroke"in u?u.stroke:"stroke"in a?a.stroke:!v&&!l&&(!y.autoStroke||m)?(_=d0,y.stroke):null),x=u.textShadowBlur>0||a.textShadowBlur>0;g.text=t.text,g.x=o,g.y=h,x&&(g.shadowBlur=u.textShadowBlur||a.textShadowBlur||0,g.shadowColor=u.textShadowColor||a.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||a.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||a.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=t.font||ti,g.opacity=ua(u.opacity,a.opacity,1),g0(g,u),b&&(g.lineWidth=ua(u.lineWidth,a.lineWidth,_),g.lineDash=ut(u.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=b),S&&(g.fill=S);var w=t.contentWidth,T=t.contentHeight;p.setBoundingRect(new ht(bs(g.x,w,g.textAlign),jn(g.y,T,g.textBaseline),w,T))},e.prototype._renderBackground=function(t,a,i,n,o,s){var l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,h=l&&l.image,c=l&&!h,v=t.borderRadius,d=this,p,g;if(c||t.lineHeight||u&&f){p=this._getOrCreateChild(bt),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=i,y.y=n,y.width=o,y.height=s,y.r=v,p.dirtyShape()}if(c){var m=p.style;m.fill=l||null,m.fillOpacity=ut(t.fillOpacity,1)}else if(h){g=this._getOrCreateChild(ge),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=n,_.width=o,_.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=ut(t.strokeOpacity,1),m.lineDash=t.borderDash,m.lineDashOffset=t.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=ua(t.opacity,a.opacity,1)},e.makeFont=function(t){var a="";return VT(t)&&(a=[t.fontStyle,t.fontWeight,BT(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),a&&br(a)||t.textFont||t.font},e}(vr),tE={left:!0,right:1,center:1},eE={top:1,bottom:1,middle:1},p0=["fontStyle","fontWeight","fontSize","fontFamily"];function BT(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?cg+"px":r+"px"}function g0(r,e){for(var t=0;t<p0.length;t++){var a=p0[t],i=e[a];i!=null&&(r[a]=i)}}function VT(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function rE(r){return y0(r),A(r.rich,y0),r}function y0(r){if(r){r.font=NT.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||tE[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||eE[t]?t:"top";var a=r.padding;a&&(r.padding=_g(r.padding))}}function m0(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function _0(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function S0(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function x0(r){var e=r.text;return e!=null&&(e+=""),e}function zv(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var Tt=NT,it=Dt(),tp=function(r,e,t,a){if(a){var i=it(a);i.dataIndex=t,i.dataType=e,i.seriesIndex=r,a.type==="group"&&a.traverse(function(n){var o=it(n);o.seriesIndex=r,o.dataIndex=t,o.dataType=e})}},b0=1,w0={},zT=Dt(),Pg=Dt(),Rg=0,Ml=1,Dh=2,Ie=["emphasis","blur","select"],el=["normal","emphasis","blur","select"],Po=10,aE=9,ln="highlight",lf="downplay",Vs="select",uf="unselect",zs="toggleSelect";function On(r){return r!=null&&r!=="none"}var T0=new Cl(100);function C0(r){if(U(r)){var e=T0.get(r);return e||(e=Gd(r,-.1),T0.put(r,e)),e}else if(mh(r)){var t=V({},r);return t.colorStops=G(r.colorStops,function(a){return{offset:a.offset,color:Gd(a.color,-.1)}}),t}return r}function Mh(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function GT(r){Mh(r,"emphasis",Dh)}function FT(r){r.hoverState===Dh&&Mh(r,"normal",Rg)}function Eg(r){Mh(r,"blur",Ml)}function HT(r){r.hoverState===Ml&&Mh(r,"normal",Rg)}function iE(r){r.selected=!0}function nE(r){r.selected=!1}function A0(r,e,t){e(r,t)}function wa(r,e,t){A0(r,e,t),r.isGroup&&r.traverse(function(a){A0(a,e,t)})}function Pf(r,e){switch(e){case"emphasis":r.hoverState=Dh;break;case"normal":r.hoverState=Rg;break;case"blur":r.hoverState=Ml;break;case"select":r.selected=!0}}function oE(r,e,t,a){for(var i=r.style,n={},o=0;o<e.length;o++){var s=e[o],l=i[s];n[s]=l==null?a&&a[s]:l}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&u.targetName==="style"&&u.saveTo(n,e)}return n}function sE(r,e,t,a){var i=t&&ct(t,"select")>=0,n=!1;if(r instanceof yt){var o=zT(r),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(On(s)||On(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(n=!0,a=V({},a),u=V({},u),u.fill=s):!On(u.fill)&&On(s)?(n=!0,a=V({},a),u=V({},u),u.fill=C0(s)):!On(u.stroke)&&On(l)&&(n||(a=V({},a),u=V({},u)),u.stroke=C0(l)),a.style=u}}if(a&&a.z2==null){n||(a=V({},a));var f=r.z2EmphasisLift;a.z2=r.z2+(f!=null?f:Po)}return a}function lE(r,e,t){if(t&&t.z2==null){t=V({},t);var a=r.z2SelectLift;t.z2=r.z2+(a!=null?a:aE)}return t}function uE(r,e,t){var a=ct(r.currentStates,e)>=0,i=r.style.opacity,n=a?null:oE(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=V({},t),o=V({opacity:a?i:n.opacity*.1},o),t.style=o),t}function Gv(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return sE(this,r,e,t);if(r==="blur")return uE(this,r,t);if(r==="select")return lE(this,r,t)}return t}function _n(r){r.stateProxy=Gv;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=Gv),t&&(t.stateProxy=Gv)}function D0(r,e){!YT(r,e)&&!r.__highByOuter&&wa(r,GT)}function M0(r,e){!YT(r,e)&&!r.__highByOuter&&wa(r,FT)}function ma(r,e){r.__highByOuter|=1<<(e||0),wa(r,GT)}function _a(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&wa(r,FT)}function $T(r){wa(r,Eg)}function kg(r){wa(r,HT)}function WT(r){wa(r,iE)}function UT(r){wa(r,nE)}function YT(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function ZT(r){var e=r.getModel(),t=[],a=[];e.eachComponent(function(i,n){var o=Pg(n),s=i==="series",l=s?r.getViewOfSeriesModel(n):r.getViewOfComponentModel(n);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){HT(u)}),s&&t.push(n)),o.isBlured=!1}),A(a,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(t,!1,e)})}function ep(r,e,t,a){var i=a.getModel();t=t||"coordinateSystem";function n(u,f){for(var h=0;h<f.length;h++){var c=u.getItemGraphicEl(f[h]);c&&kg(c)}}if(r!=null&&!(!e||e==="none")){var o=i.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var f=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var c=h&&s?h===s:f;if(!(t==="series"&&!f||t==="coordinateSystem"&&!c||e==="series"&&f)){var v=a.getViewOfSeriesModel(u);if(v.group.traverse(function(g){Eg(g)}),xe(e))n(u.getData(),e);else if(tt(e))for(var d=St(e),p=0;p<d.length;p++)n(u.getData(d[p]),e[d[p]]);l.push(u),Pg(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var h=a.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,i)}})}}function rp(r,e,t){if(!(r==null||e==null)){var a=t.getModel().getComponent(r,e);if(!!a){Pg(a).isBlured=!0;var i=t.getViewOfComponentModel(a);!i||!i.focusBlurEnabled||i.group.traverse(function(n){Eg(n)})}}}function fE(r,e,t){var a=r.seriesIndex,i=r.getData(e.dataType);if(!!i){var n=yn(i,e);n=(z(n)?n[0]:n)||0;var o=i.getItemGraphicEl(n);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=it(o);ep(a,u.focus,u.blurScope,t)}else{var f=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);f!=null&&ep(a,f,h,t)}}}function Og(r,e,t,a){var i={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return i;var n=a.getModel().getComponent(r,e);if(!n)return i;var o=a.getViewOfComponentModel(n);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(it(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function hE(r,e,t){var a=it(r),i=Og(a.componentMainType,a.componentIndex,a.componentHighDownName,t),n=i.dispatchers,o=i.focusSelf;n?(o&&rp(a.componentMainType,a.componentIndex,t),A(n,function(s){return D0(s,e)})):(ep(a.seriesIndex,a.focus,a.blurScope,t),a.focus==="self"&&rp(a.componentMainType,a.componentIndex,t),D0(r,e))}function vE(r,e,t){ZT(t);var a=it(r),i=Og(a.componentMainType,a.componentIndex,a.componentHighDownName,t).dispatchers;i?A(i,function(n){return M0(n,e)}):M0(r,e)}function cE(r,e,t){if(!!ip(e)){var a=e.dataType,i=r.getData(a),n=yn(i,e);z(n)||(n=[n]),r[e.type===zs?"toggleSelect":e.type===Vs?"select":"unselect"](n,a)}}function L0(r){var e=r.getAllData();A(e,function(t){var a=t.data,i=t.type;a.eachItemGraphicEl(function(n,o){r.isSelected(o,i)?WT(n):UT(n)})})}function dE(r){var e=[];return r.eachSeries(function(t){var a=t.getAllData();A(a,function(i){i.data;var n=i.type,o=t.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:t.seriesIndex};n!=null&&(s.dataType=n),e.push(s)}})}),e}function un(r,e,t){ji(r,!0),wa(r,_n),ap(r,e,t)}function pE(r){ji(r,!1)}function Ut(r,e,t,a){a?pE(r):un(r,e,t)}function ap(r,e,t){var a=it(r);e!=null?(a.focus=e,a.blurScope=t):a.focus&&(a.focus=null)}var I0=["emphasis","blur","select"],gE={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function pe(r,e,t,a){t=t||"itemStyle";for(var i=0;i<I0.length;i++){var n=I0[i],o=e.getModel([n,t]),s=r.ensureState(n);s.style=a?a(o):o[gE[t]]()}}function ji(r,e){var t=e===!1,a=r;r.highDownSilentOnTouch&&(a.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||a.__highDownDispatcher)&&(a.__highByOuter=a.__highByOuter||0,a.__highDownDispatcher=!t)}function rl(r){return!!(r&&r.__highDownDispatcher)}function yE(r,e,t){var a=it(r);a.componentMainType=e.mainType,a.componentIndex=e.componentIndex,a.componentHighDownName=t}function mE(r){var e=w0[r];return e==null&&b0<=32&&(e=w0[r]=b0++),e}function ip(r){var e=r.type;return e===Vs||e===uf||e===zs}function P0(r){var e=r.type;return e===ln||e===lf}function _E(r){var e=zT(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var Nn=Kr.CMD,SE=[[],[],[]],R0=Math.sqrt,xE=Math.atan2;function XT(r,e){if(!!e){var t=r.data,a=r.len(),i,n,o,s,l,u,f=Nn.M,h=Nn.C,c=Nn.L,v=Nn.R,d=Nn.A,p=Nn.Q;for(o=0,s=0;o<a;){switch(i=t[o++],s=o,n=0,i){case f:n=1;break;case c:n=1;break;case h:n=3;break;case p:n=2;break;case d:var g=e[4],y=e[5],m=R0(e[0]*e[0]+e[1]*e[1]),_=R0(e[2]*e[2]+e[3]*e[3]),S=xE(-e[1]/_,e[0]/m);t[o]*=m,t[o++]+=g,t[o]*=_,t[o++]+=y,t[o++]*=m,t[o++]*=_,t[o++]+=S,t[o++]+=S,o+=2,s=o;break;case v:u[0]=t[o++],u[1]=t[o++],ce(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[o++],u[1]+=t[o++],ce(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<n;l++){var b=SE[l];b[0]=t[o++],b[1]=t[o++],ce(b,b,e),t[s++]=b[0],t[s++]=b[1]}}r.increaseVersion()}}var Fv=Math.sqrt,lu=Math.sin,uu=Math.cos,Qo=Math.PI;function E0(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function np(r,e){return(r[0]*e[0]+r[1]*e[1])/(E0(r)*E0(e))}function k0(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(np(r,e))}function O0(r,e,t,a,i,n,o,s,l,u,f){var h=l*(Qo/180),c=uu(h)*(r-t)/2+lu(h)*(e-a)/2,v=-1*lu(h)*(r-t)/2+uu(h)*(e-a)/2,d=c*c/(o*o)+v*v/(s*s);d>1&&(o*=Fv(d),s*=Fv(d));var p=(i===n?-1:1)*Fv((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,g=p*o*v/s,y=p*-s*c/o,m=(r+t)/2+uu(h)*g-lu(h)*y,_=(e+a)/2+lu(h)*g+uu(h)*y,S=k0([1,0],[(c-g)/o,(v-y)/s]),b=[(c-g)/o,(v-y)/s],x=[(-1*c-g)/o,(-1*v-y)/s],w=k0(b,x);if(np(b,x)<=-1&&(w=Qo),np(b,x)>=1&&(w=0),w<0){var T=Math.round(w/Qo*1e6)/1e6;w=Qo*2+T%2*Qo}f.addData(u,m,_,o,s,S,w,h,n)}var bE=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,wE=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function TE(r){var e=new Kr;if(!r)return e;var t=0,a=0,i=t,n=a,o,s=Kr.CMD,l=r.match(bE);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],h=f.charAt(0),c=void 0,v=f.match(wE)||[],d=v.length,p=0;p<d;p++)v[p]=parseFloat(v[p]);for(var g=0;g<d;){var y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0,T=t,C=a,D=void 0,M=void 0;switch(h){case"l":t+=v[g++],a+=v[g++],c=s.L,e.addData(c,t,a);break;case"L":t=v[g++],a=v[g++],c=s.L,e.addData(c,t,a);break;case"m":t+=v[g++],a+=v[g++],c=s.M,e.addData(c,t,a),i=t,n=a,h="l";break;case"M":t=v[g++],a=v[g++],c=s.M,e.addData(c,t,a),i=t,n=a,h="L";break;case"h":t+=v[g++],c=s.L,e.addData(c,t,a);break;case"H":t=v[g++],c=s.L,e.addData(c,t,a);break;case"v":a+=v[g++],c=s.L,e.addData(c,t,a);break;case"V":a=v[g++],c=s.L,e.addData(c,t,a);break;case"C":c=s.C,e.addData(c,v[g++],v[g++],v[g++],v[g++],v[g++],v[g++]),t=v[g-2],a=v[g-1];break;case"c":c=s.C,e.addData(c,v[g++]+t,v[g++]+a,v[g++]+t,v[g++]+a,v[g++]+t,v[g++]+a),t+=v[g-2],a+=v[g-1];break;case"S":y=t,m=a,D=e.len(),M=e.data,o===s.C&&(y+=t-M[D-4],m+=a-M[D-3]),c=s.C,T=v[g++],C=v[g++],t=v[g++],a=v[g++],e.addData(c,y,m,T,C,t,a);break;case"s":y=t,m=a,D=e.len(),M=e.data,o===s.C&&(y+=t-M[D-4],m+=a-M[D-3]),c=s.C,T=t+v[g++],C=a+v[g++],t+=v[g++],a+=v[g++],e.addData(c,y,m,T,C,t,a);break;case"Q":T=v[g++],C=v[g++],t=v[g++],a=v[g++],c=s.Q,e.addData(c,T,C,t,a);break;case"q":T=v[g++]+t,C=v[g++]+a,t+=v[g++],a+=v[g++],c=s.Q,e.addData(c,T,C,t,a);break;case"T":y=t,m=a,D=e.len(),M=e.data,o===s.Q&&(y+=t-M[D-4],m+=a-M[D-3]),t=v[g++],a=v[g++],c=s.Q,e.addData(c,y,m,t,a);break;case"t":y=t,m=a,D=e.len(),M=e.data,o===s.Q&&(y+=t-M[D-4],m+=a-M[D-3]),t+=v[g++],a+=v[g++],c=s.Q,e.addData(c,y,m,t,a);break;case"A":_=v[g++],S=v[g++],b=v[g++],x=v[g++],w=v[g++],T=t,C=a,t=v[g++],a=v[g++],c=s.A,O0(T,C,t,a,x,w,_,S,b,c,e);break;case"a":_=v[g++],S=v[g++],b=v[g++],x=v[g++],w=v[g++],T=t,C=a,t+=v[g++],a+=v[g++],c=s.A,O0(T,C,t,a,x,w,_,S,b,c,e);break}}(h==="z"||h==="Z")&&(c=s.Z,e.addData(c),t=i,a=n),o=c}return e.toStatic(),e}var qT=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e}(yt);function KT(r){return r.setData!=null}function JT(r,e){var t=TE(r),a=V({},e);return a.buildPath=function(i){if(KT(i)){i.setData(t.data);var n=i.getContext();n&&i.rebuildPath(n,1)}else{var n=i;t.rebuildPath(n,1)}},a.applyTransform=function(i){XT(t,i),this.dirtyShape()},a}function QT(r,e){return new qT(JT(r,e))}function CE(r,e){var t=JT(r,e),a=function(i){k(n,i);function n(o){var s=i.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return n}(qT);return a}function AE(r,e){for(var t=[],a=r.length,i=0;i<a;i++){var n=r[i];t.push(n.getUpdatedPathProxy(!0))}var o=new yt(e);return o.createPathProxy(),o.buildPath=function(s){if(KT(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function Ng(r,e){e=e||{};var t=new yt;return r.shape&&t.setShape(r.shape),t.setStyle(r.style),e.bakeTransform?XT(t.path,r.getComputedTransform()):e.toLocal?t.setLocalTransform(r.getComputedTransform()):t.copyTransform(r),t.buildPath=r.buildPath,t.applyTransform=t.applyTransform,t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t}var DE=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),jT=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new DE},e.prototype.buildPath=function(t,a){t.moveTo(a.cx+a.r,a.cy),t.arc(a.cx,a.cy,a.r,0,Math.PI*2)},e}(yt);jT.prototype.type="circle";var Jr=jT,ME=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),tC=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new ME},e.prototype.buildPath=function(t,a){var i=.5522848,n=a.cx,o=a.cy,s=a.rx,l=a.ry,u=s*i,f=l*i;t.moveTo(n-s,o),t.bezierCurveTo(n-s,o-f,n-u,o-l,n,o-l),t.bezierCurveTo(n+u,o-l,n+s,o-f,n+s,o),t.bezierCurveTo(n+s,o+f,n+u,o+l,n,o+l),t.bezierCurveTo(n-u,o+l,n-s,o+f,n-s,o),t.closePath()},e}(yt);tC.prototype.type="ellipse";var Bg=tC,eC=Math.PI,Hv=eC*2,Mi=Math.sin,Bn=Math.cos,LE=Math.acos,me=Math.atan2,N0=Math.abs,Gs=Math.sqrt,ws=Math.max,kr=Math.min,mr=1e-4;function IE(r,e,t,a,i,n,o,s){var l=t-r,u=a-e,f=o-i,h=s-n,c=h*l-f*u;if(!(c*c<mr))return c=(f*(e-n)-h*(r-i))/c,[r+c*l,e+c*u]}function fu(r,e,t,a,i,n,o){var s=r-t,l=e-a,u=(o?n:-n)/Gs(s*s+l*l),f=u*l,h=-u*s,c=r+f,v=e+h,d=t+f,p=a+h,g=(c+d)/2,y=(v+p)/2,m=d-c,_=p-v,S=m*m+_*_,b=i-n,x=c*p-d*v,w=(_<0?-1:1)*Gs(ws(0,b*b*S-x*x)),T=(x*_-m*w)/S,C=(-x*m-_*w)/S,D=(x*_+m*w)/S,M=(-x*m+_*w)/S,L=T-g,I=C-y,P=D-g,R=M-y;return L*L+I*I>P*P+R*R&&(T=D,C=M),{cx:T,cy:C,x0:-f,y0:-h,x1:T*(i/b-1),y1:C*(i/b-1)}}function PE(r){var e;if(z(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function RE(r,e){var t,a=ws(e.r,0),i=ws(e.r0||0,0),n=a>0,o=i>0;if(!(!n&&!o)){if(n||(a=i,i=0),i>a){var s=a;a=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,h=e.cy,c=!!e.clockwise,v=N0(u-l),d=v>Hv&&v%Hv;if(d>mr&&(v=d),!(a>mr))r.moveTo(f,h);else if(v>Hv-mr)r.moveTo(f+a*Bn(l),h+a*Mi(l)),r.arc(f,h,a,l,u,!c),i>mr&&(r.moveTo(f+i*Bn(u),h+i*Mi(u)),r.arc(f,h,i,u,l,c));else{var p=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0,T=void 0,C=void 0,D=void 0,M=void 0,L=void 0,I=void 0,P=void 0,R=a*Bn(l),E=a*Mi(l),N=i*Bn(u),O=i*Mi(u),B=v>mr;if(B){var F=e.cornerRadius;F&&(t=PE(F),p=t[0],g=t[1],y=t[2],m=t[3]);var W=N0(a-i)/2;if(_=kr(W,y),S=kr(W,m),b=kr(W,p),x=kr(W,g),C=w=ws(_,S),D=T=ws(b,x),(w>mr||T>mr)&&(M=a*Bn(u),L=a*Mi(u),I=i*Bn(l),P=i*Mi(l),v<eC)){var X=IE(R,E,I,P,M,L,N,O);if(X){var j=R-X[0],nt=E-X[1],Mt=M-X[0],Lt=L-X[1],pt=1/Mi(LE((j*Mt+nt*Lt)/(Gs(j*j+nt*nt)*Gs(Mt*Mt+Lt*Lt)))/2),rt=Gs(X[0]*X[0]+X[1]*X[1]);C=kr(w,(a-rt)/(pt+1)),D=kr(T,(i-rt)/(pt-1))}}}if(!B)r.moveTo(f+R,h+E);else if(C>mr){var mt=kr(y,C),vt=kr(m,C),q=fu(I,P,R,E,a,mt,c),st=fu(M,L,N,O,a,vt,c);r.moveTo(f+q.cx+q.x0,h+q.cy+q.y0),C<w&&mt===vt?r.arc(f+q.cx,h+q.cy,C,me(q.y0,q.x0),me(st.y0,st.x0),!c):(mt>0&&r.arc(f+q.cx,h+q.cy,mt,me(q.y0,q.x0),me(q.y1,q.x1),!c),r.arc(f,h,a,me(q.cy+q.y1,q.cx+q.x1),me(st.cy+st.y1,st.cx+st.x1),!c),vt>0&&r.arc(f+st.cx,h+st.cy,vt,me(st.y1,st.x1),me(st.y0,st.x0),!c))}else r.moveTo(f+R,h+E),r.arc(f,h,a,l,u,!c);if(!(i>mr)||!B)r.lineTo(f+N,h+O);else if(D>mr){var mt=kr(p,D),vt=kr(g,D),q=fu(N,O,M,L,i,-vt,c),st=fu(R,E,I,P,i,-mt,c);r.lineTo(f+q.cx+q.x0,h+q.cy+q.y0),D<T&&mt===vt?r.arc(f+q.cx,h+q.cy,D,me(q.y0,q.x0),me(st.y0,st.x0),!c):(vt>0&&r.arc(f+q.cx,h+q.cy,vt,me(q.y0,q.x0),me(q.y1,q.x1),!c),r.arc(f,h,i,me(q.cy+q.y1,q.cx+q.x1),me(st.cy+st.y1,st.cx+st.x1),c),mt>0&&r.arc(f+st.cx,h+st.cy,mt,me(st.y1,st.x1),me(st.y0,st.x0),!c))}else r.lineTo(f+N,h+O),r.arc(f,h,i,u,l,c)}r.closePath()}}}var EE=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),rC=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new EE},e.prototype.buildPath=function(t,a){RE(t,a)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(yt);rC.prototype.type="sector";var Ve=rC,kE=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),aC=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new kE},e.prototype.buildPath=function(t,a){var i=a.cx,n=a.cy,o=Math.PI*2;t.moveTo(i+a.r,n),t.arc(i,n,a.r,0,o,!1),t.moveTo(i+a.r0,n),t.arc(i,n,a.r0,0,o,!0)},e}(yt);aC.prototype.type="ring";var Lh=aC;function OE(r,e,t,a){var i=[],n=[],o=[],s=[],l,u,f,h;if(a){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=r.length;c<v;c++)Fa(f,f,r[c]),Ha(h,h,r[c]);Fa(f,f,a[0]),Ha(h,h,a[1])}for(var c=0,v=r.length;c<v;c++){var d=r[c];if(t)l=r[c?c-1:v-1],u=r[(c+1)%v];else if(c===0||c===v-1){i.push(fa(r[c]));continue}else l=r[c-1],u=r[c+1];Ji(n,u,l),ju(n,n,e);var p=Pd(d,l),g=Pd(d,u),y=p+g;y!==0&&(p/=y,g/=y),ju(o,n,-p),ju(s,n,g);var m=Mm([],d,o),_=Mm([],d,s);a&&(Ha(m,m,f),Fa(m,m,h),Ha(_,_,f),Fa(_,_,h)),i.push(m),i.push(_)}return t&&i.push(i.shift()),i}function iC(r,e,t){var a=e.smooth,i=e.points;if(i&&i.length>=2){if(a){var n=OE(i,a,t,e.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(t?o:o-1);s++){var l=n[s*2],u=n[s*2+1],f=i[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;s<h;s++)r.lineTo(i[s][0],i[s][1])}t&&r.closePath()}}var NE=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),nC=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new NE},e.prototype.buildPath=function(t,a){iC(t,a,!0)},e}(yt);nC.prototype.type="polygon";var ze=nC,BE=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),oC=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new BE},e.prototype.buildPath=function(t,a){iC(t,a,!1)},e}(yt);oC.prototype.type="polyline";var Ge=oC,VE={},zE=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),sC=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new zE},e.prototype.buildPath=function(t,a){var i,n,o,s;if(this.subPixelOptimize){var l=ET(VE,a,this.style);i=l.x1,n=l.y1,o=l.x2,s=l.y2}else i=a.x1,n=a.y1,o=a.x2,s=a.y2;var u=a.percent;u!==0&&(t.moveTo(i,n),u<1&&(o=i*(1-u)+o*u,s=n*(1-u)+s*u),t.lineTo(o,s))},e.prototype.pointAt=function(t){var a=this.shape;return[a.x1*(1-t)+a.x2*t,a.y1*(1-t)+a.y2*t]},e}(yt);sC.prototype.type="line";var fe=sC,Re=[],GE=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r}();function B0(r,e,t){var a=r.cpx2,i=r.cpy2;return a!=null||i!=null?[(t?Gm:ie)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?Gm:ie)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?Bd:se)(r.x1,r.cpx1,r.x2,e),(t?Bd:se)(r.y1,r.cpy1,r.y2,e)]}var lC=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new GE},e.prototype.buildPath=function(t,a){var i=a.x1,n=a.y1,o=a.x2,s=a.y2,l=a.cpx1,u=a.cpy1,f=a.cpx2,h=a.cpy2,c=a.percent;c!==0&&(t.moveTo(i,n),f==null||h==null?(c<1&&(Js(i,l,o,c,Re),l=Re[1],o=Re[2],Js(n,u,s,c,Re),u=Re[1],s=Re[2]),t.quadraticCurveTo(l,u,o,s)):(c<1&&(ei(i,l,f,o,c,Re),l=Re[1],f=Re[2],o=Re[3],ei(n,u,h,s,c,Re),u=Re[1],h=Re[2],s=Re[3]),t.bezierCurveTo(l,u,f,h,o,s)))},e.prototype.pointAt=function(t){return B0(this.shape,t,!1)},e.prototype.tangentAt=function(t){var a=B0(this.shape,t,!0);return Mo(a,a)},e}(yt);lC.prototype.type="bezier-curve";var Ih=lC,FE=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),uC=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new FE},e.prototype.buildPath=function(t,a){var i=a.cx,n=a.cy,o=Math.max(a.r,0),s=a.startAngle,l=a.endAngle,u=a.clockwise,f=Math.cos(s),h=Math.sin(s);t.moveTo(f*o+i,h*o+n),t.arc(i,n,o,s,l,!u)},e}(yt);uC.prototype.type="arc";var Vg=uC,HE=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="compound",t}return e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,a=this.shapeChanged(),i=0;i<t.length;i++)a=a||t[i].shapeChanged();a&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],a=this.getGlobalScale(),i=0;i<t.length;i++)t[i].path||t[i].createPathProxy(),t[i].path.setScale(a[0],a[1],t[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,a){for(var i=a.paths||[],n=0;n<i.length;n++)i[n].buildPath(t,i[n].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],a=0;a<t.length;a++)t[a].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),yt.prototype.getBoundingRect.call(this)},e}(yt),zg=HE,$E=function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r}(),fC=$E,WE=function(r){k(e,r);function e(t,a,i,n,o,s){var l=r.call(this,o)||this;return l.x=t==null?0:t,l.y=a==null?0:a,l.x2=i==null?1:i,l.y2=n==null?0:n,l.type="linear",l.global=s||!1,l}return e}(fC),Ll=WE,UE=function(r){k(e,r);function e(t,a,i,n,o){var s=r.call(this,n)||this;return s.x=t==null?.5:t,s.y=a==null?.5:a,s.r=i==null?.5:i,s.type="radial",s.global=o||!1,s}return e}(fC),hC=UE,Li=[0,0],Ii=[0,0],hu=new lt,vu=new lt,YE=function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var a=0;a<4;a++)this._corners[a]=new lt;for(var a=0;a<2;a++)this._axes[a]=new lt;e&&this.fromBoundingRect(e,t)}return r.prototype.fromBoundingRect=function(e,t){var a=this._corners,i=this._axes,n=e.x,o=e.y,s=n+e.width,l=o+e.height;if(a[0].set(n,o),a[1].set(s,o),a[2].set(s,l),a[3].set(n,l),t)for(var u=0;u<4;u++)a[u].transform(t);lt.sub(i[0],a[1],a[0]),lt.sub(i[1],a[3],a[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(a[0])},r.prototype.intersect=function(e,t){var a=!0,i=!t;return hu.set(1/0,1/0),vu.set(0,0),!this._intersectCheckOneSide(this,e,hu,vu,i,1)&&(a=!1,i)||!this._intersectCheckOneSide(e,this,hu,vu,i,-1)&&(a=!1,i)||i||lt.copy(t,a?hu:vu),a},r.prototype._intersectCheckOneSide=function(e,t,a,i,n,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,Li),this._getProjMinMaxOnAxis(l,t._corners,Ii),Li[1]<Ii[0]||Li[0]>Ii[1]){if(s=!1,n)return s;var f=Math.abs(Ii[0]-Li[1]),h=Math.abs(Li[0]-Ii[1]);Math.min(f,h)>i.len()&&(f<h?lt.scale(i,u,-f*o):lt.scale(i,u,h*o))}else if(a){var f=Math.abs(Ii[0]-Li[1]),h=Math.abs(Li[0]-Ii[1]);Math.min(f,h)<a.len()&&(f<h?lt.scale(a,u,f*o):lt.scale(a,u,-h*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(e,t,a){for(var i=this._axes[e],n=this._origin,o=t[0].dot(i)+n[e],s=o,l=o,u=1;u<t.length;u++){var f=t[u].dot(i)+n[e];s=Math.min(f,s),l=Math.max(f,l)}a[0]=s,a[1]=l},r}(),Rf=YE,ZE=[],XE=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e.prototype.traverse=function(t,a){t.call(a,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,a){a?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,a){a=a||!1;for(var i=0;i<t.length;i++)this.addDisplayable(t[i],a)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var a=this._cursor;a<this._displayables.length;a++)t&&t(this._displayables[a]);for(var a=0;a<this._temporaryDisplayables.length;a++)t&&t(this._temporaryDisplayables[a])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var a=this._displayables[t];a.parent=this,a.update(),a.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var a=this._temporaryDisplayables[t];a.parent=this,a.update(),a.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new ht(1/0,1/0,-1/0,-1/0),a=0;a<this._displayables.length;a++){var i=this._displayables[a],n=i.getBoundingRect().clone();i.needLocalTransform()&&n.applyTransform(i.getLocalTransform(ZE)),t.union(n)}this._rect=t}return this._rect},e.prototype.contain=function(t,a){var i=this.transformCoordToLocal(t,a),n=this.getBoundingRect();if(n.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(t,a))return!0}return!1},e}(vr),qE=XE,vC=Dt();function Ro(r,e,t,a,i){var n;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();n=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,h=void 0;a?(u=ut(a.duration,200),f=ut(a.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),n&&(n.duration!=null&&(u=n.duration),n.easing!=null&&(f=n.easing),n.delay!=null&&(h=n.delay)),J(h)&&(h=h(t,i)),J(u)&&(u=u(t));var c={duration:u||0,delay:h,easing:f};return c}else return null}function Gg(r,e,t,a,i,n,o){var s=!1,l;J(i)?(o=n,n=i,i=null):tt(i)&&(n=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=r==="leave";u||e.stopAnimation("leave");var f=Ro(r,a,i,u?l||{}:null,a&&a.getAnimationDelayParams?a.getAnimationDelayParams(e,i):null);if(f&&f.duration>0){var h=f.duration,c=f.delay,v=f.easing,d={duration:h,delay:c||0,easing:v,done:n,force:!!n||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,d):e.animateTo(t,d)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),n&&n()}function At(r,e,t,a,i,n){Gg("update",r,e,t,a,i,n)}function Ft(r,e,t,a,i,n){Gg("enter",r,e,t,a,i,n)}function uo(r){if(!r.__zr)return!0;for(var e=0;e<r.animators.length;e++){var t=r.animators[e];if(t.scope==="leave")return!0}return!1}function ri(r,e,t,a,i,n){uo(r)||Gg("leave",r,e,t,a,i,n)}function V0(r,e,t,a){r.removeTextContent(),r.removeTextGuideLine(),ri(r,{style:{opacity:0}},e,t,a)}function al(r,e,t){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(i){i.isGroup||V0(i,e,t,a)}):V0(r,e,t,a)}function Dr(r){vC(r).oldStyle=r.style}function KE(r){return vC(r).oldStyle}var Ef=Math.max,kf=Math.min,op={};function JE(r){return yt.extend(r)}var QE=CE;function jE(r,e){return QE(r,e)}function Mr(r,e){op[r]=e}function Fg(r){if(op.hasOwnProperty(r))return op[r]}function Ph(r,e,t,a){var i=QT(r,e);return t&&(a==="center"&&(t=dC(t,i.getBoundingRect())),pC(i,t)),i}function cC(r,e,t){var a=new ge({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(t==="center"){var n={width:i.width,height:i.height};a.setStyle(dC(e,n))}}});return a}function dC(r,e){var t=e.width/e.height,a=r.height*t,i;a<=r.width?i=r.height:(a=r.width,i=a/t);var n=r.x+r.width/2,o=r.y+r.height/2;return{x:n-a/2,y:o-i/2,width:a,height:i}}var sr=AE;function pC(r,e){if(!!r.applyTransform){var t=r.getBoundingRect(),a=t.calculateTransform(e);r.applyTransform(a)}}function po(r,e){return ET(r,r,{lineWidth:e}),r}function tk(r){return kT(r.shape,r.shape,r.style),r}var ff=Qi;function fn(r,e){for(var t=Sh([]);r&&r!==e;)ha(t,r.getLocalTransform(),t),r=r.parent;return t}function Cr(r,e,t){return e&&!xe(e)&&(e=oa.getLocalTransform(e)),t&&(e=Lo([],e)),ce([],r,e)}function Rh(r,e,t){var a=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),n=[r==="left"?-a:r==="right"?a:0,r==="top"?-i:r==="bottom"?i:0];return n=Cr(n,e,t),Math.abs(n[0])>Math.abs(n[1])?n[0]>0?"right":"left":n[1]>0?"bottom":"top"}function z0(r){return!r.isGroup}function ek(r){return r.shape!=null}function Il(r,e,t){if(!r||!e)return;function a(o){var s={};return o.traverse(function(l){z0(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return ek(o)&&(s.shape=V({},o.shape)),s}var n=a(r);e.traverse(function(o){if(z0(o)&&o.anid){var s=n[o.anid];if(s){var l=i(o);o.attr(i(s)),At(o,l,t,it(o).dataIndex)}}})}function gC(r,e){return G(r,function(t){var a=t[0];a=Ef(a,e.x),a=kf(a,e.x+e.width);var i=t[1];return i=Ef(i,e.y),i=kf(i,e.y+e.height),[a,i]})}function rk(r,e){var t=Ef(r.x,e.x),a=kf(r.x+r.width,e.x+e.width),i=Ef(r.y,e.y),n=kf(r.y+r.height,e.y+e.height);if(a>=t&&n>=i)return{x:t,y:i,width:a-t,height:n-i}}function Pl(r,e,t){var a=V({rectHover:!0},e),i=a.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),Q(i,t),new ge(a)):Ph(r.replace("path://",""),a,t,"center")}function Ts(r,e,t,a,i){for(var n=0,o=i[i.length-1];n<i.length;n++){var s=i[n];if(yC(r,e,t,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function yC(r,e,t,a,i,n,o,s){var l=t-r,u=a-e,f=o-i,h=s-n,c=$v(f,h,l,u);if(ak(c))return!1;var v=r-i,d=e-n,p=$v(v,d,l,u)/c;if(p<0||p>1)return!1;var g=$v(v,d,f,h)/c;return!(g<0||g>1)}function $v(r,e,t,a){return r*a-t*e}function ak(r){return r<=1e-6&&r>=-1e-6}function Eo(r){var e=r.itemTooltipOption,t=r.componentModel,a=r.itemName,i=U(e)?{formatter:e}:e,n=t.mainType,o=t.componentIndex,s={componentType:n,name:a,$vars:["name"]};s[n+"Index"]=o;var l=r.formatterParamsExtra;l&&A(St(l),function(f){Z(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=it(r.el);u.componentMainType=n,u.componentIndex=o,u.tooltipConfig={name:a,option:Q({content:a,formatterParams:s},i)}}function G0(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function ui(r,e){if(r)if(z(r))for(var t=0;t<r.length;t++)G0(r[t],e);else G0(r,e)}Mr("circle",Jr);Mr("ellipse",Bg);Mr("sector",Ve);Mr("ring",Lh);Mr("polygon",ze);Mr("polyline",Ge);Mr("rect",bt);Mr("line",fe);Mr("bezierCurve",Ih);Mr("arc",Vg);var Rl=Object.freeze(Object.defineProperty({__proto__:null,updateProps:At,initProps:Ft,removeElement:ri,removeElementWithFadeOut:al,isElementRemoved:uo,extendShape:JE,extendPath:jE,registerShape:Mr,getShapeClass:Fg,makePath:Ph,makeImage:cC,mergePath:sr,resizePath:pC,subPixelOptimizeLine:po,subPixelOptimizeRect:tk,subPixelOptimize:ff,getTransform:fn,applyTransform:Cr,transformDirection:Rh,groupTransition:Il,clipPointsByRect:gC,clipRectByRect:rk,createIcon:Pl,linePolygonIntersect:Ts,lineLineIntersect:yC,setTooltipConfig:Eo,traverseElements:ui,Group:at,Image:ge,Text:Tt,Circle:Jr,Ellipse:Bg,Sector:Ve,Ring:Lh,Polygon:ze,Polyline:Ge,Rect:bt,Line:fe,BezierCurve:Ih,Arc:Vg,IncrementalDisplayable:qE,CompoundPath:zg,LinearGradient:Ll,RadialGradient:hC,BoundingRect:ht,OrientedBoundingRect:Rf,Point:lt,Path:yt},Symbol.toStringTag,{value:"Module"})),Eh={};function mC(r,e){for(var t=0;t<Ie.length;t++){var a=Ie[t],i=e[a],n=r.ensureState(a);n.style=n.style||{},n.style.text=i}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function sp(r,e,t){var a=r.labelFetcher,i=r.labelDataIndex,n=r.labelDimIndex,o=e.normal,s;a&&(s=a.getFormattedLabel(i,"normal",null,n,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=J(r.defaultText)?r.defaultText(i,r,t):r.defaultText);for(var l={normal:s},u=0;u<Ie.length;u++){var f=Ie[u],h=e[f];l[f]=ut(a?a.getFormattedLabel(i,f,null,n,h&&h.get("formatter")):null,s)}return l}function we(r,e,t,a){t=t||Eh;for(var i=r instanceof Tt,n=!1,o=0;o<el.length;o++){var s=e[el[o]];if(s&&s.getShallow("show")){n=!0;break}}var l=i?r:r.getTextContent();if(n){i||(l||(l=new Tt,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=sp(t,e),f=e.normal,h=!!f.getShallow("show"),c=Bt(f,a&&a.normal,t,!1,!i);c.text=u.normal,i||r.setTextConfig(Of(f,t,!1));for(var o=0;o<Ie.length;o++){var v=Ie[o],s=e[v];if(s){var d=l.ensureState(v),p=!!ut(s.getShallow("show"),h);if(p!==h&&(d.ignore=!p),d.style=Bt(s,a&&a[v],t,!0,!i),d.style.text=u[v],!i){var g=r.ensureState(v);g.textConfig=Of(s,t,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(c.x=l.style.x),l.style.y!=null&&(c.y=l.style.y),l.ignore=!h,l.useStyle(c),l.dirty(),t.enableTextSetter&&(ko(l).setLabelText=function(y){var m=sp(t,e,y);mC(l,m)})}else l&&(l.ignore=!0);r.dirty()}function he(r,e){e=e||"label";for(var t={normal:r.getModel(e)},a=0;a<Ie.length;a++){var i=Ie[a];t[i]=r.getModel([i,e])}return t}function Bt(r,e,t,a,i){var n={};return ik(n,r,t,a,i),e&&V(n,e),n}function Of(r,e,t){e=e||{};var a={},i,n=r.getShallow("rotate"),o=ut(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return i=r.getShallow("position")||(t?null:"inside"),i==="outside"&&(i=e.defaultOutsidePosition||"top"),i!=null&&(a.position=i),s!=null&&(a.offset=s),n!=null&&(n*=Math.PI/180,a.rotation=n),o!=null&&(a.distance=o),a.outsideFill=r.get("color")==="inherit"?e.inheritColor||null:"auto",a}function ik(r,e,t,a,i){t=t||Eh;var n=e.ecModel,o=n&&n.option.textStyle,s=nk(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=e.getModel(["rich",u]);W0(l[u]={},f,o,t,a,i,!1,!0)}}l&&(r.rich=l);var h=e.get("overflow");h&&(r.overflow=h);var c=e.get("minMargin");c!=null&&(r.margin=c),W0(r,e,o,t,a,i,!0,!1)}function nk(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||Eh).rich;if(t){e=e||{};for(var a=St(t),i=0;i<a.length;i++){var n=a[i];e[n]=1}}r=r.parentModel}return e}var F0=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],H0=["align","lineHeight","width","height","tag","verticalAlign"],$0=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function W0(r,e,t,a,i,n,o,s){t=!i&&t||Eh;var l=a&&a.inheritColor,u=e.getShallow("color"),f=e.getShallow("textBorderColor"),h=ut(e.getShallow("opacity"),t.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),n||(u=u||t.color,f=f||t.textBorderColor),u!=null&&(r.fill=u),f!=null&&(r.stroke=f);var c=ut(e.getShallow("textBorderWidth"),t.textBorderWidth);c!=null&&(r.lineWidth=c);var v=ut(e.getShallow("textBorderType"),t.textBorderType);v!=null&&(r.lineDash=v);var d=ut(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);d!=null&&(r.lineDashOffset=d),!i&&h==null&&!s&&(h=a&&a.defaultOpacity),h!=null&&(r.opacity=h),!i&&!n&&r.fill==null&&a.inheritColor&&(r.fill=a.inheritColor);for(var p=0;p<F0.length;p++){var g=F0[p],y=ut(e.getShallow(g),t[g]);y!=null&&(r[g]=y)}for(var p=0;p<H0.length;p++){var g=H0[p],y=e.getShallow(g);y!=null&&(r[g]=y)}if(r.verticalAlign==null){var m=e.getShallow("baseline");m!=null&&(r.verticalAlign=m)}if(!o||!a.disableBox){for(var p=0;p<$0.length;p++){var g=$0[p],y=e.getShallow(g);y!=null&&(r[g]=y)}var _=e.getShallow("borderType");_!=null&&(r.borderDash=_),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor=l)}}function _C(r,e){var t=e&&e.getModel("textStyle");return br([r.fontStyle||t&&t.getShallow("fontStyle")||"",r.fontWeight||t&&t.getShallow("fontWeight")||"",(r.fontSize||t&&t.getShallow("fontSize")||12)+"px",r.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var ko=Dt();function SC(r,e,t,a){if(!!r){var i=ko(r);i.prevValue=i.value,i.value=t;var n=e.normal;i.valueAnimation=n.get("valueAnimation"),i.valueAnimation&&(i.precision=n.get("precision"),i.defaultInterpolatedText=a,i.statesModels=e)}}function xC(r,e,t,a,i){var n=ko(r);if(!n.valueAnimation||n.prevValue===n.value)return;var o=n.defaultInterpolatedText,s=ut(n.interpolatedValue,n.prevValue),l=n.value;function u(f){var h=bT(t,n.precision,s,l,f);n.interpolatedValue=f===1?null:h;var c=sp({labelDataIndex:e,labelFetcher:i,defaultText:o?o(h):h+""},n.statesModels,h);mC(r,c)}r.percent=0,(n.prevValue==null?Ft:At)(r,{percent:1},a,e,null,u)}var ok=["textStyle","color"],Wv=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Uv=new Tt,sk=function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(ok):null)},r.prototype.getFont=function(){return _C({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},a=0;a<Wv.length;a++)t[Wv[a]]=this.getShallow(Wv[a]);return Uv.useStyle(t),Uv.update(),Uv.getBoundingRect()},r}(),lk=sk,bC=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],uk=mn(bC),fk=function(){function r(){}return r.prototype.getLineStyle=function(e){return uk(this,e)},r}(),wC=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],hk=mn(wC),vk=function(){function r(){}return r.prototype.getItemStyle=function(e,t){return hk(this,e,t)},r}(),An=function(){function r(e,t,a){this.parentModel=t,this.ecModel=a,this.option=e}return r.prototype.init=function(e,t,a){},r.prototype.mergeOption=function(e,t){ft(this.option,e,!0)},r.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},r.prototype.getShallow=function(e,t){var a=this.option,i=a==null?a:a[e];if(i==null&&!t){var n=this.parentModel;n&&(i=n.getShallow(e))}return i},r.prototype.getModel=function(e,t){var a=e!=null,i=a?this.parsePath(e):null,n=a?this._doGet(i):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new r(n,t,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var e=this.constructor;return new e(et(this.option))},r.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},r.prototype.resolveParentPath=function(e){return e},r.prototype.isAnimationEnabled=function(){if(!It.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(e,t){var a=this.option;if(!e)return a;for(var i=0;i<e.length&&!(!!e[i]&&(a=a&&typeof a=="object"?a[e[i]]:null,a==null));i++);return a==null&&t&&(a=t._doGet(this.resolveParentPath(e),t.parentModel)),a},r}();Lg(An);vR(An);ee(An,fk);ee(An,vk);ee(An,yR);ee(An,lk);var Vt=An,ck=Math.round(Math.random()*10);function Oo(r){return[r||"",ck++].join("_")}function dk(r){var e={};r.registerSubTypeDefaulter=function(t,a){var i=Hr(t);e[i.main]=a},r.determineSubType=function(t,a){var i=a.type;if(!i){var n=Hr(t).main;r.hasSubTypes(t)&&e[n]&&(i=e[n](a))}return i}}function pk(r,e){r.topologicalTravel=function(n,o,s,l){if(!n.length)return;var u=t(o),f=u.graph,h=u.noEntryList,c={};for(A(n,function(m){c[m]=!0});h.length;){var v=h.pop(),d=f[v],p=!!c[v];p&&(s.call(l,v,d.originalDeps.slice()),delete c[v]),A(d.successor,p?y:g)}A(c,function(){var m="";throw new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&h.push(m)}function y(m){c[m]=!0,g(m)}};function t(n){var o={},s=[];return A(n,function(l){var u=a(o,l),f=u.originalDeps=e(l),h=i(f,n);u.entryCount=h.length,u.entryCount===0&&s.push(l),A(h,function(c){ct(u.predecessor,c)<0&&u.predecessor.push(c);var v=a(o,c);ct(v.successor,c)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function a(n,o){return n[o]||(n[o]={predecessor:[],successor:[]}),n[o]}function i(n,o){var s=[];return A(n,function(l){ct(o,l)>=0&&s.push(l)}),s}}function fi(r,e){return ft(ft({},r,!0),e,!0)}var gk={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},yk={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}},Nf="ZH",Hg="EN",il=Hg,hf={},$g={},TC=It.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(Nf)>-1?Nf:il}():il;function CC(r,e){r=r.toUpperCase(),$g[r]=new Vt(e),hf[r]=e}function mk(r){if(U(r)){var e=hf[r.toUpperCase()]||{};return r===Nf||r===Hg?et(e):ft(et(e),et(hf[il]),!1)}else return ft(et(r),et(hf[il]),!1)}function lp(r){return $g[r]}function _k(){return $g[il]}CC(Hg,gk);CC(Nf,yk);var Wg=1e3,Ug=Wg*60,Fs=Ug*60,lr=Fs*24,U0=lr*365,Cs={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}"},cu="{yyyy}-{MM}-{dd}",Y0={year:"{yyyy}",month:"{yyyy}-{MM}",day:cu,hour:cu+" "+Cs.hour,minute:cu+" "+Cs.minute,second:cu+" "+Cs.second,millisecond:Cs.none},Yv=["year","month","day","hour","minute","second","millisecond"],AC=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Pi(r,e){return r+="","0000".substr(0,e-r.length)+r}function fo(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function Sk(r){return r===fo(r)}function xk(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function kh(r,e,t,a){var i=qr(r),n=i[Yg(t)](),o=i[ho(t)]()+1,s=Math.floor((o-1)/3)+1,l=i[Oh(t)](),u=i["get"+(t?"UTC":"")+"Day"](),f=i[nl(t)](),h=(f-1)%12+1,c=i[Nh(t)](),v=i[Bh(t)](),d=i[Vh(t)](),p=a instanceof Vt?a:lp(a||TC)||_k(),g=p.getModel("time"),y=g.get("month"),m=g.get("monthAbbr"),_=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,n+"").replace(/{yy}/g,n%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,Pi(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Pi(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Pi(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Pi(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Pi(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,Pi(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Pi(d,3)).replace(/{S}/g,d+"")}function bk(r,e,t,a,i){var n=null;if(U(t))n=t;else if(J(t))n=t(r.value,e,{level:r.level});else{var o=V({},Cs);if(r.level>0)for(var s=0;s<Yv.length;++s)o[Yv[s]]="{primary|"+o[Yv[s]]+"}";var l=t?t.inherit===!1?t:Q(t,o):o,u=DC(r.value,i);if(l[u])n=l[u];else if(l.inherit){for(var f=AC.indexOf(u),s=f-1;s>=0;--s)if(l[u]){n=l[u];break}n=n||o.none}if(z(n)){var h=r.level==null?0:r.level>=0?r.level:n.length+r.level;h=Math.min(h,n.length-1),n=n[h]}}return kh(new Date(r.value),n,i,a)}function DC(r,e){var t=qr(r),a=t[ho(e)]()+1,i=t[Oh(e)](),n=t[nl(e)](),o=t[Nh(e)](),s=t[Bh(e)](),l=t[Vh(e)](),u=l===0,f=u&&s===0,h=f&&o===0,c=h&&n===0,v=c&&i===1,d=v&&a===1;return d?"year":v?"month":c?"day":h?"hour":f?"minute":u?"second":"millisecond"}function Z0(r,e,t){var a=Ct(r)?qr(r):r;switch(e=e||DC(r,t),e){case"year":return a[Yg(t)]();case"half-year":return a[ho(t)]()>=6?1:0;case"quarter":return Math.floor((a[ho(t)]()+1)/4);case"month":return a[ho(t)]();case"day":return a[Oh(t)]();case"half-day":return a[nl(t)]()/24;case"hour":return a[nl(t)]();case"minute":return a[Nh(t)]();case"second":return a[Bh(t)]();case"millisecond":return a[Vh(t)]()}}function Yg(r){return r?"getUTCFullYear":"getFullYear"}function ho(r){return r?"getUTCMonth":"getMonth"}function Oh(r){return r?"getUTCDate":"getDate"}function nl(r){return r?"getUTCHours":"getHours"}function Nh(r){return r?"getUTCMinutes":"getMinutes"}function Bh(r){return r?"getUTCSeconds":"getSeconds"}function Vh(r){return r?"getUTCMilliseconds":"getMilliseconds"}function wk(r){return r?"setUTCFullYear":"setFullYear"}function MC(r){return r?"setUTCMonth":"setMonth"}function LC(r){return r?"setUTCDate":"setDate"}function IC(r){return r?"setUTCHours":"setHours"}function PC(r){return r?"setUTCMinutes":"setMinutes"}function RC(r){return r?"setUTCSeconds":"setSeconds"}function EC(r){return r?"setUTCMilliseconds":"setMilliseconds"}function kC(r){if(!dT(r))return U(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function OC(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,a){return a.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var No=_g;function up(r,e,t){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&br(f)?f:"-"}function n(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?qr(r):r;if(isNaN(+l)){if(s)return"-"}else return kh(l,a,t)}if(e==="ordinal")return Md(r)?i(r):Ct(r)&&n(r)?r+"":"-";var u=ya(r);return n(u)?kC(u):Md(r)?i(r):typeof r=="boolean"?r+"":"-"}var X0=["a","b","c","d","e","f","g"],Zv=function(r,e){return"{"+r+(e==null?"":e)+"}"};function NC(r,e,t){z(e)||(e=[e]);var a=e.length;if(!a)return"";for(var i=e[0].$vars||[],n=0;n<i.length;n++){var o=X0[n];r=r.replace(Zv(o),Zv(o,0))}for(var s=0;s<a;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];r=r.replace(Zv(X0[l],s),t?ke(u):u)}return r}function Tk(r,e,t){return A(e,function(a,i){r=r.replace("{"+i+"}",t?ke(a):a)}),r}function Ck(r,e){var t=U(r)?{color:r,extraCssText:e}:r||{},a=t.color,i=t.type;e=t.extraCssText;var n=t.renderMode||"html";if(!a)return"";if(n==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+ke(a)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ke(a)+";"+(e||"")+'"></span>';var o=t.markerId||"markerX";return{renderMode:n,content:"{"+o+"|}  ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function Sn(r,e){return e=e||"transparent",U(r)?r:tt(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function Bf(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var vf=A,BC=["left","right","top","bottom","width","height"],tn=[["width","left","right"],["height","top","bottom"]];function Zg(r,e,t,a,i){var n=0,o=0;a==null&&(a=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),h=e.childAt(u+1),c=h&&h.getBoundingRect(),v,d;if(r==="horizontal"){var p=f.width+(c?-c.x+f.x:0);v=n+p,v>a||l.newline?(n=0,v=p,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(c?-c.y+f.y:0);d=o+g,d>i||l.newline?(n+=s+t,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=n,l.y=o,l.markRedraw(),r==="horizontal"?n=v+t:o=d+t)})}var hn=Zg;ot(Zg,"vertical");ot(Zg,"horizontal");function Ak(r,e,t){var a=e.width,i=e.height,n=H(r.left,a),o=H(r.top,i),s=H(r.right,a),l=H(r.bottom,i);return(isNaN(n)||isNaN(parseFloat(r.left)))&&(n=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=a),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=i),t=No(t||0),{width:Math.max(s-n-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function ae(r,e,t){t=No(t||0);var a=e.width,i=e.height,n=H(r.left,a),o=H(r.top,i),s=H(r.right,a),l=H(r.bottom,i),u=H(r.width,a),f=H(r.height,i),h=t[2]+t[0],c=t[1]+t[3],v=r.aspect;switch(isNaN(u)&&(u=a-s-c-n),isNaN(f)&&(f=i-l-h-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>a/i?u=a*.8:f=i*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(n)&&(n=a-s-u-c),isNaN(o)&&(o=i-l-f-h),r.left||r.right){case"center":n=a/2-u/2-t[3];break;case"right":n=a-u-c;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-f/2-t[0];break;case"bottom":o=i-f-h;break}n=n||0,o=o||0,isNaN(u)&&(u=a-c-n-(s||0)),isNaN(f)&&(f=i-h-o-(l||0));var d=new ht(n+t[3],o+t[0],u,f);return d.margin=t,d}function zh(r,e,t,a,i,n){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(n=n||r,n.x=r.x,n.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new ht(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var h=ae(Q({width:u.width,height:u.height},e),t,a),c=o?h.x-u.x:0,v=s?h.y-u.y:0;return l==="raw"?(n.x=c,n.y=v):(n.x+=c,n.y+=v),n===r&&r.markRedraw(),!0}function Dk(r,e){return r[tn[e][0]]!=null||r[tn[e][1]]!=null&&r[tn[e][2]]!=null}function ol(r){var e=r.layoutMode||r.constructor.layoutMode;return tt(e)?e:e?{type:e}:null}function ai(r,e,t){var a=t&&t.ignoreSize;!z(a)&&(a=[a,a]);var i=o(tn[0],0),n=o(tn[1],1);u(tn[0],r,i),u(tn[1],r,n);function o(f,h){var c={},v=0,d={},p=0,g=2;if(vf(f,function(_){d[_]=r[_]}),vf(f,function(_){s(e,_)&&(c[_]=d[_]=e[_]),l(c,_)&&v++,l(d,_)&&p++}),a[h])return l(e,f[1])?d[f[2]]=null:l(e,f[2])&&(d[f[1]]=null),d;if(p===g||!v)return d;if(v>=g)return c;for(var y=0;y<f.length;y++){var m=f[y];if(!s(c,m)&&s(r,m)){c[m]=r[m];break}}return c}function s(f,h){return f.hasOwnProperty(h)}function l(f,h){return f[h]!=null&&f[h]!=="auto"}function u(f,h,c){vf(f,function(v){h[v]=c[v]})}}function Bo(r){return VC({},r)}function VC(r,e){return e&&r&&vf(BC,function(t){e.hasOwnProperty(t)&&(r[t]=e[t])}),r}var Mk=Dt(),Vo=function(r){k(e,r);function e(t,a,i){var n=r.call(this,t,a,i)||this;return n.uid=Oo("ec_cpt_model"),n}return e.prototype.init=function(t,a,i){this.mergeDefaultAndTheme(t,i)},e.prototype.mergeDefaultAndTheme=function(t,a){var i=ol(this),n=i?Bo(t):{},o=a.getTheme();ft(t,o.get(this.mainType)),ft(t,this.getDefaultOption()),i&&ai(t,n,i)},e.prototype.mergeOption=function(t,a){ft(this.option,t,!0);var i=ol(this);i&&ai(this.option,t,i)},e.prototype.optionUpdated=function(t,a){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!uR(t))return t.defaultOption;var a=Mk(this);if(!a.defaultOption){for(var i=[],n=t;n;){var o=n.prototype.defaultOption;o&&i.push(o),n=n.superClass}for(var s={},l=i.length-1;l>=0;l--)s=ft(s,i[l],!0);a.defaultOption=s}return a.defaultOption},e.prototype.getReferringComponents=function(t,a){var i=t+"Index",n=t+"Id";return Dl(this.ecModel,t,{index:this.get(i,!0),id:this.get(n,!0)},a)},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=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Vt);TT(Vo,Vt);wh(Vo);dk(Vo);pk(Vo,Lk);function Lk(r){var e=[];return A(Vo.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=G(e,function(t){return Hr(t).main}),r!=="dataset"&&ct(e,"dataset")<=0&&e.unshift("dataset"),e}var wt=Vo,zC="";typeof navigator!="undefined"&&(zC=navigator.platform||"");var Vn="rgba(0, 0, 0, 0.2)",Ik={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Vn,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Vn,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Vn,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Vn,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Vn,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Vn,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:zC.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},GC=K(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),dr="original",be="arrayRows",pr="objectRows",Qr="keyedColumns",Ja="typedArray",FC="unknown",Ur="column",zo="row",ve={Must:1,Might:2,Not:3},HC=Dt();function Pk(r){HC(r).datasetMap=K()}function $C(r,e,t){var a={},i=qg(e);if(!i||!r)return a;var n=[],o=[],s=e.ecModel,l=HC(s).datasetMap,u=i.uid+"_"+t.seriesLayoutBy,f,h;r=r.slice(),A(r,function(p,g){var y=tt(p)?p:r[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,h=d(y)),a[y.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});A(r,function(p,g){var y=p.name,m=d(p);if(f==null){var _=c.valueWayDim;v(a[y],_,m),v(o,_,m),c.valueWayDim+=m}else if(f===g)v(a[y],0,m),v(n,0,m);else{var _=c.categoryWayDim;v(a[y],_,m),v(o,_,m),c.categoryWayDim+=m}});function v(p,g,y){for(var m=0;m<y;m++)p.push(g+m)}function d(p){var g=p.dimsDef;return g?g.length:1}return n.length&&(a.itemName=n),o.length&&(a.seriesName=o),a}function Xg(r,e,t){var a={},i=qg(r);if(!i)return a;var n=e.sourceFormat,o=e.dimensionsDefine,s;(n===pr||n===Qr)&&A(o,function(f,h){(tt(f)?f.name:f)==="name"&&(s=h)});var l=function(){for(var f={},h={},c=[],v=0,d=Math.min(5,t);v<d;v++){var p=UC(e.data,n,e.seriesLayoutBy,o,e.startIndex,v);c.push(p);var g=p===ve.Not;if(g&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!g&&c[f.n]===ve.Not)&&(f.n=v),y(f)&&c[f.n]!==ve.Not)return f;g||(p===ve.Might&&h.v==null&&v!==s&&(h.v=v),(h.n==null||h.n===h.v)&&(h.n=v))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(h)?h:null}();if(l){a.value=[l.v];var u=s!=null?s:l.n;a.itemName=[u],a.seriesName=[u]}return a}function qg(r){var e=r.get("data",!0);if(!e)return Dl(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Qt).models[0]}function Rk(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Dl(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Qt).models}function WC(r,e){return UC(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function UC(r,e,t,a,i,n){var o,s=5;if(Xe(r))return ve.Not;var l,u;if(a){var f=a[n];tt(f)?(l=f.name,u=f.type):U(f)&&(l=f)}if(u!=null)return u==="ordinal"?ve.Must:ve.Not;if(e===be){var h=r;if(t===zo){for(var c=h[n],v=0;v<(c||[]).length&&v<s;v++)if((o=S(c[i+v]))!=null)return o}else for(var v=0;v<h.length&&v<s;v++){var d=h[i+v];if(d&&(o=S(d[n]))!=null)return o}}else if(e===pr){var p=r;if(!l)return ve.Not;for(var v=0;v<p.length&&v<s;v++){var g=p[v];if(g&&(o=S(g[l]))!=null)return o}}else if(e===Qr){var y=r;if(!l)return ve.Not;var c=y[l];if(!c||Xe(c))return ve.Not;for(var v=0;v<c.length&&v<s;v++)if((o=S(c[v]))!=null)return o}else if(e===dr)for(var m=r,v=0;v<m.length&&v<s;v++){var g=m[v],_=Io(g);if(!z(_))return ve.Not;if((o=S(_[n]))!=null)return o}function S(b){var x=U(b);if(b!=null&&isFinite(b)&&b!=="")return x?ve.Might:ve.Not;if(x&&b!=="-")return ve.Must}return ve.Not}var fp=K();function Ek(r,e){Le(fp.get(r)==null&&e),fp.set(r,e)}function kk(r,e,t){var a=fp.get(e);if(!a)return t;var i=a(r);return i?t.concat(i):t}var q0=Dt(),Ok=Dt(),Kg=function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,a){var i=kt(this.get("color",!0)),n=this.get("colorLayer",!0);return YC(this,q0,i,n,e,t,a)},r.prototype.clearColorPalette=function(){Bk(this,q0)},r}();function hp(r,e,t,a){var i=kt(r.get(["aria","decal","decals"]));return YC(r,Ok,i,null,e,t,a)}function Nk(r,e){for(var t=r.length,a=0;a<t;a++)if(r[a].length>e)return r[a];return r[t-1]}function YC(r,e,t,a,i,n,o){n=n||r;var s=e(n),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!a?t:Nk(a,o);if(f=f||t,!(!f||!f.length)){var h=f[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%f.length,h}}function Bk(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var du,jo,K0,J0="\0_ec_inner",Vk=1,ZC=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,a,i,n,o,s){n=n||{},this.option=null,this._theme=new Vt(n),this._locale=new Vt(o),this._optionManager=s},e.prototype.setOption=function(t,a,i){var n=t_(a);this._optionManager.setOption(t,i,n),this._resetOption(null,n)},e.prototype.resetOption=function(t,a){return this._resetOption(t,t_(a))},e.prototype._resetOption=function(t,a){var i=!1,n=this._optionManager;if(!t||t==="recreate"){var o=n.mountOption(t==="recreate");!this.option||t==="recreate"?K0(this,o):(this.restoreData(),this._mergeOption(o,a)),i=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=n.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,a))}if(!t||t==="recreate"||t==="media"){var l=n.getMediaOption(this);l.length&&A(l,function(u){i=!0,this._mergeOption(u,a)},this)}return i},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,a){var i=this.option,n=this._componentsMap,o=this._componentsCount,s=[],l=K(),u=a&&a.replaceMergeMainTypeMap;Pk(this),A(t,function(h,c){h!=null&&(wt.hasClass(c)?c&&(s.push(c),l.set(c,!0)):i[c]=i[c]==null?et(h):ft(i[c],h,!0))}),u&&u.each(function(h,c){wt.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),wt.topologicalTravel(s,wt.getAllClassMainTypes(),f,this);function f(h){var c=kk(this,h,kt(t[h])),v=n.get(h),d=v?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",p=_T(v,c,d);tR(p,h,wt),i[h]=null,n.set(h,null),o.set(h,0);var g=[],y=[],m=0,_;A(p,function(S,b){var x=S.existing,w=S.newOption;if(!w)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=h==="series",C=wt.getClass(h,S.keyInfo.subType,!T);if(!C)return;if(h==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===C)x.name=S.keyInfo.name,x.mergeOption(w,this),x.optionUpdated(w,!1);else{var D=V({componentIndex:b},S.keyInfo);x=new C(w,this,this,D),V(x,D),S.brandNew&&(x.__requireNewView=!0),x.init(w,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),y.push(x),m++):(g.push(void 0),y.push(void 0))},this),i[h]=g,n.set(h,y),o.set(h,m),h==="series"&&du(this)}this._seriesIndices||du(this)},e.prototype.getOption=function(){var t=et(this.option);return A(t,function(a,i){if(wt.hasClass(i)){for(var n=kt(a),o=n.length,s=!1,l=o-1;l>=0;l--)n[l]&&!js(n[l])?s=!0:(n[l]=null,!s&&o--);n.length=o,t[i]=n}}),delete t[J0],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,a){var i=this._componentsMap.get(t);if(i){var n=i[a||0];if(n)return n;if(a==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},e.prototype.queryComponents=function(t){var a=t.mainType;if(!a)return[];var i=t.index,n=t.id,o=t.name,s=this._componentsMap.get(a);if(!s||!s.length)return[];var l;return i!=null?(l=[],A(kt(i),function(u){s[u]&&l.push(s[u])})):n!=null?l=Q0("id",n,s):o!=null?l=Q0("name",o,s):l=Et(s,function(u){return!!u}),j0(l,t)},e.prototype.findComponents=function(t){var a=t.query,i=t.mainType,n=s(a),o=n?this.queryComponents(n):Et(this._componentsMap.get(i),function(u){return!!u});return l(j0(o,t));function s(u){var f=i+"Index",h=i+"Id",c=i+"Name";return u&&(u[f]!=null||u[h]!=null||u[c]!=null)?{mainType:i,index:u[f],id:u[h],name:u[c]}:null}function l(u){return t.filter?Et(u,t.filter):u}},e.prototype.eachComponent=function(t,a,i){var n=this._componentsMap;if(J(t)){var o=a,s=t;n.each(function(h,c){for(var v=0;h&&v<h.length;v++){var d=h[v];d&&s.call(o,c,d,d.componentIndex)}})}else for(var l=U(t)?n.get(t):tt(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var f=l[u];f&&a.call(i,f,f.componentIndex)}},e.prototype.getSeriesByName=function(t){var a=re(t,null);return Et(this._componentsMap.get("series"),function(i){return!!i&&a!=null&&i.name===a})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Et(this._componentsMap.get("series"),function(a){return!!a&&a.subType===t})},e.prototype.getSeries=function(){return Et(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,a){jo(this),A(this._seriesIndices,function(i){var n=this._componentsMap.get("series")[i];t.call(a,n,i)},this)},e.prototype.eachRawSeries=function(t,a){A(this._componentsMap.get("series"),function(i){i&&t.call(a,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(t,a,i){jo(this),A(this._seriesIndices,function(n){var o=this._componentsMap.get("series")[n];o.subType===t&&a.call(i,o,n)},this)},e.prototype.eachRawSeriesByType=function(t,a,i){return A(this.getSeriesByType(t),a,i)},e.prototype.isSeriesFiltered=function(t){return jo(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,a){jo(this);var i=[];A(this._seriesIndices,function(n){var o=this._componentsMap.get("series")[n];t.call(a,o,n)&&i.push(n)},this),this._seriesIndices=i,this._seriesIndicesMap=K(i)},e.prototype.restoreData=function(t){du(this);var a=this._componentsMap,i=[];a.each(function(n,o){wt.hasClass(o)&&i.push(o)}),wt.topologicalTravel(i,wt.getAllClassMainTypes(),function(n){A(a.get(n),function(o){o&&(n!=="series"||!zk(o,t))&&o.restoreData()})})},e.internalField=function(){du=function(t){var a=t._seriesIndices=[];A(t._componentsMap.get("series"),function(i){i&&a.push(i.componentIndex)}),t._seriesIndicesMap=K(a)},jo=function(t){},K0=function(t,a){t.option={},t.option[J0]=Vk,t._componentsMap=K({series:[]}),t._componentsCount=K();var i=a.aria;tt(i)&&i.enabled==null&&(i.enabled=!0),Gk(a,t._theme.option),ft(a,Ik,!1),t._mergeOption(a,null)}}(),e}(Vt);function zk(r,e){if(e){var t=e.seriesIndex,a=e.seriesId,i=e.seriesName;return t!=null&&r.componentIndex!==t||a!=null&&r.id!==a||i!=null&&r.name!==i}}function Gk(r,e){var t=r.color&&!r.colorLayer;A(e,function(a,i){i==="colorLayer"&&t||wt.hasClass(i)||(typeof a=="object"?r[i]=r[i]?ft(r[i],a,!1):et(a):r[i]==null&&(r[i]=a))})}function Q0(r,e,t){if(z(e)){var a=K();return A(e,function(n){if(n!=null){var o=re(n,null);o!=null&&a.set(n,!0)}}),Et(t,function(n){return n&&a.get(n[r])})}else{var i=re(e,null);return Et(t,function(n){return n&&i!=null&&n[r]===i})}}function j0(r,e){return e.hasOwnProperty("subType")?Et(r,function(t){return t&&t.subType===e.subType}):r}function t_(r){var e=K();return r&&A(kt(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}ee(ZC,Kg);var XC=ZC,Fk=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Hk=function(){function r(e){A(Fk,function(t){this[t]=Y(e[t],e)},this)}return r}(),qC=Hk,Xv={},$k=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(e,t){var a=[];A(Xv,function(i,n){var o=i.create(e,t);a=a.concat(o||[])}),this._coordinateSystems=a},r.prototype.update=function(e,t){A(this._coordinateSystems,function(a){a.update&&a.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(e,t){Xv[e]=t},r.get=function(e){return Xv[e]},r}(),El=$k,Wk=/^(min|max)?(.+)$/,Uk=function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,a){e&&(A(kt(e.series),function(o){o&&o.data&&Xe(o.data)&&Sf(o.data)}),A(kt(e.dataset),function(o){o&&o.source&&Xe(o.source)&&Sf(o.source)})),e=et(e);var i=this._optionBackup,n=Yk(e,t,!i);this._newBaseOption=n.baseOption,i?(n.timelineOptions.length&&(i.timelineOptions=n.timelineOptions),n.mediaList.length&&(i.mediaList=n.mediaList),n.mediaDefault&&(i.mediaDefault=n.mediaDefault)):this._optionBackup=n},r.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],et(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,a=this._timelineOptions;if(a.length){var i=e.getComponent("timeline");i&&(t=et(a[i.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),a=this._api.getHeight(),i=this._mediaList,n=this._mediaDefault,o=[],s=[];if(!i.length&&!n)return s;for(var l=0,u=i.length;l<u;l++)Zk(i[l].query,t,a)&&o.push(l);return!o.length&&n&&(o=[-1]),o.length&&!qk(o,this._currentMediaIndices)&&(s=G(o,function(f){return et(f===-1?n.option:i[f].option)})),this._currentMediaIndices=o,s},r}();function Yk(r,e,t){var a=[],i,n,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,h=!!(l||s||o&&o.timeline);o?(n=o,n.timeline||(n.timeline=s)):((h||f)&&(r.options=r.media=null),n=r),f&&z(u)&&A(u,function(v){v&&v.option&&(v.query?a.push(v):i||(i=v))}),c(n),A(l,function(v){return c(v)}),A(a,function(v){return c(v.option)});function c(v){A(e,function(d){d(v,t)})}return{baseOption:n,timelineOptions:l||[],mediaDefault:i,mediaList:a}}function Zk(r,e,t){var a={width:e,height:t,aspectratio:e/t},i=!0;return A(r,function(n,o){var s=o.match(Wk);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();Xk(a[u],n,l)||(i=!1)}}),i}function Xk(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function qk(r,e){return r.join(",")===e.join(",")}var Kk=Uk,gr=A,sl=tt,e_=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function qv(r){var e=r&&r.itemStyle;if(!!e)for(var t=0,a=e_.length;t<a;t++){var i=e_[t],n=e.normal,o=e.emphasis;n&&n[i]&&(r[i]=r[i]||{},r[i].normal?ft(r[i].normal,n[i]):r[i].normal=n[i],n[i]=null),o&&o[i]&&(r[i]=r[i]||{},r[i].emphasis?ft(r[i].emphasis,o[i]):r[i].emphasis=o[i],o[i]=null)}}function Se(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var a=r[e].normal,i=r[e].emphasis;a&&(t?(r[e].normal=r[e].emphasis=null,Q(r[e],a)):r[e]=a),i&&(r.emphasis=r.emphasis||{},r.emphasis[e]=i,i.focus&&(r.emphasis.focus=i.focus),i.blurScope&&(r.emphasis.blurScope=i.blurScope))}}function As(r){Se(r,"itemStyle"),Se(r,"lineStyle"),Se(r,"areaStyle"),Se(r,"label"),Se(r,"labelLine"),Se(r,"upperLabel"),Se(r,"edgeLabel")}function Jt(r,e){var t=sl(r)&&r[e],a=sl(t)&&t.textStyle;if(a)for(var i=0,n=n0.length;i<n;i++){var o=n0[i];a.hasOwnProperty(o)&&(t[o]=a[o])}}function rr(r){r&&(As(r),Jt(r,"label"),r.emphasis&&Jt(r.emphasis,"label"))}function Jk(r){if(!!sl(r)){qv(r),As(r),Jt(r,"label"),Jt(r,"upperLabel"),Jt(r,"edgeLabel"),r.emphasis&&(Jt(r.emphasis,"label"),Jt(r.emphasis,"upperLabel"),Jt(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(qv(e),rr(e));var t=r.markLine;t&&(qv(t),rr(t));var a=r.markArea;a&&rr(a);var i=r.data;if(r.type==="graph"){i=i||r.nodes;var n=r.links||r.edges;if(n&&!Xe(n))for(var o=0;o<n.length;o++)rr(n[o]);A(r.categories,function(u){As(u)})}if(i&&!Xe(i))for(var o=0;o<i.length;o++)rr(i[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)rr(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)z(l[o])?(rr(l[o][0]),rr(l[o][1])):rr(l[o]);r.type==="gauge"?(Jt(r,"axisLabel"),Jt(r,"title"),Jt(r,"detail")):r.type==="treemap"?(Se(r.breadcrumb,"itemStyle"),A(r.levels,function(u){As(u)})):r.type==="tree"&&As(r.leaves)}}function ra(r){return z(r)?r:r?[r]:[]}function r_(r){return(z(r)?r[0]:r)||{}}function Qk(r,e){gr(ra(r.series),function(a){sl(a)&&Jk(a)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),gr(t,function(a){gr(ra(r[a]),function(i){i&&(Jt(i,"axisLabel"),Jt(i.axisPointer,"label"))})}),gr(ra(r.parallel),function(a){var i=a&&a.parallelAxisDefault;Jt(i,"axisLabel"),Jt(i&&i.axisPointer,"label")}),gr(ra(r.calendar),function(a){Se(a,"itemStyle"),Jt(a,"dayLabel"),Jt(a,"monthLabel"),Jt(a,"yearLabel")}),gr(ra(r.radar),function(a){Jt(a,"name"),a.name&&a.axisName==null&&(a.axisName=a.name,delete a.name),a.nameGap!=null&&a.axisNameGap==null&&(a.axisNameGap=a.nameGap,delete a.nameGap)}),gr(ra(r.geo),function(a){sl(a)&&(rr(a),gr(ra(a.regions),function(i){rr(i)}))}),gr(ra(r.timeline),function(a){rr(a),Se(a,"label"),Se(a,"itemStyle"),Se(a,"controlStyle",!0);var i=a.data;z(i)&&A(i,function(n){tt(n)&&(Se(n,"label"),Se(n,"itemStyle"))})}),gr(ra(r.toolbox),function(a){Se(a,"iconStyle"),gr(a.feature,function(i){Se(i,"iconStyle")})}),Jt(r_(r.axisPointer),"label"),Jt(r_(r.tooltip).axisPointer,"label")}function jk(r,e){for(var t=e.split(","),a=r,i=0;i<t.length&&(a=a&&a[t[i]],a!=null);i++);return a}function tO(r,e,t,a){for(var i=e.split(","),n=r,o,s=0;s<i.length-1;s++)o=i[s],n[o]==null&&(n[o]={}),n=n[o];(a||n[i[s]]==null)&&(n[i[s]]=t)}function a_(r){r&&A(eO,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var eO=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],rO=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Kv=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ts(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<Kv.length;t++){var a=Kv[t][1],i=Kv[t][0];e[a]!=null&&(e[i]=e[a])}}function i_(r){!r||r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function n_(r){!r||r.downplay&&!r.blur&&(r.blur=r.downplay)}function aO(r){!r||r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function KC(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&KC(r[t].children,e)}function JC(r,e){Qk(r,e),r.series=kt(r.series),A(r.series,function(t){if(!!tt(t)){var a=t.type;if(a==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow);else if(a==="pie"||a==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise),i_(t.label);var i=t.data;if(i&&!Xe(i))for(var n=0;n<i.length;n++)i_(i[n]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(a==="gauge"){var o=jk(t,"pointer.color");o!=null&&tO(t,"itemStyle.color",o)}else if(a==="bar"){ts(t),ts(t.backgroundStyle),ts(t.emphasis);var i=t.data;if(i&&!Xe(i))for(var n=0;n<i.length;n++)typeof i[n]=="object"&&(ts(i[n]),ts(i[n]&&i[n].emphasis))}else if(a==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),n_(t),KC(t.data,n_)}else a==="graph"||a==="sankey"?aO(t):a==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&Q(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),a_(t)}}),r.dataRange&&(r.visualMap=r.dataRange),A(rO,function(t){var a=r[t];a&&(z(a)||(a=[a]),A(a,function(i){a_(i)}))})}function iO(r){var e=K();r.eachSeries(function(t){var a=t.get("stack");if(a){var i=e.get(a)||e.set(a,[]),n=t.getData(),o={stackResultDimension:n.getCalculationInfo("stackResultDimension"),stackedOverDimension:n.getCalculationInfo("stackedOverDimension"),stackedDimension:n.getCalculationInfo("stackedDimension"),stackedByDimension:n.getCalculationInfo("stackedByDimension"),isStackedByIndex:n.getCalculationInfo("isStackedByIndex"),data:n,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&n.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),e.each(nO)}function nO(r){A(r,function(e,t){var a=[],i=[NaN,NaN],n=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(n,function(u,f,h){var c=o.get(e.stackedDimension,h);if(isNaN(c))return i;var v,d;s?d=o.getRawIndex(h):v=o.get(e.stackedByDimension,h);for(var p=NaN,g=t-1;g>=0;g--){var y=r[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,v)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&c>=0&&m>0||l==="samesign"&&c<=0&&m<0){c=$P(c,m),p=m;break}}}return a[0]=c,a[1]=p,a})})}var Gh=function(){function r(e){this.data=e.data||(e.sourceFormat===Qr?{}:[]),this.sourceFormat=e.sourceFormat||FC,this.seriesLayoutBy=e.seriesLayoutBy||Ur,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var a=0;a<t.length;a++){var i=t[a];i.type==null&&WC(this,a)===ve.Must&&(i.type="ordinal")}}return r}();function Jg(r){return r instanceof Gh}function vp(r,e,t){t=t||QC(r);var a=e.seriesLayoutBy,i=sO(r,t,a,e.sourceHeader,e.dimensions),n=new Gh({data:r,sourceFormat:t,seriesLayoutBy:a,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:et(e)});return n}function Qg(r){return new Gh({data:r,sourceFormat:Xe(r)?Ja:dr})}function oO(r){return new Gh({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:et(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function QC(r){var e=FC;if(Xe(r))e=Ja;else if(z(r)){r.length===0&&(e=be);for(var t=0,a=r.length;t<a;t++){var i=r[t];if(i!=null){if(z(i)){e=be;break}else if(tt(i)){e=pr;break}}}}else if(tt(r)){for(var n in r)if(Z(r,n)&&xe(r[n])){e=Qr;break}}return e}function sO(r,e,t,a,i){var n,o;if(!r)return{dimensionsDefine:o_(i),startIndex:o,dimensionsDetectedCount:n};if(e===be){var s=r;a==="auto"||a==null?s_(function(u){u!=null&&u!=="-"&&(U(u)?o==null&&(o=1):o=0)},t,s,10):o=Ct(a)?a:a?1:0,!i&&o===1&&(i=[],s_(function(u,f){i[f]=u!=null?u+"":""},t,s,1/0)),n=i?i.length:t===zo?s.length:s[0]?s[0].length:null}else if(e===pr)i||(i=lO(r));else if(e===Qr)i||(i=[],A(r,function(u,f){i.push(f)}));else if(e===dr){var l=Io(r[0]);n=z(l)&&l.length||1}return{startIndex:o,dimensionsDefine:o_(i),dimensionsDetectedCount:n}}function lO(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t){var a=[];return A(t,function(i,n){a.push(n)}),a}}function o_(r){if(!!r){var e=K();return G(r,function(t,a){t=tt(t)?t:{name:t};var i={name:t.name,displayName:t.displayName,type:t.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var n=e.get(i.name);return n?i.name+="-"+n.count++:e.set(i.name,{count:1}),i})}}function s_(r,e,t,a){if(e===zo)for(var i=0;i<t.length&&i<a;i++)r(t[i]?t[i][0]:null,i);else for(var n=t[0]||[],i=0;i<n.length&&i<a;i++)r(n[i],i)}function jC(r){var e=r.sourceFormat;return e===pr||e===Qr}var Ri,Ei,ki,l_,u_,tA=function(){function r(e,t){var a=Jg(e)?e:Qg(e);this._source=a;var i=this._data=a.data;a.sourceFormat===Ja&&(this._offset=0,this._dimSize=t,this._data=i),u_(this,i,a)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(e,t){},r.prototype.appendData=function(e){},r.prototype.clean=function(){},r.protoInitialize=function(){var e=r.prototype;e.pure=!1,e.persistent=!0}(),r.internalField=function(){var e;u_=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,h=l.startIndex,c=l.dimensionsDefine,v=l_[jg(u,f)];if(V(o,v),u===Ja)o.getItem=t,o.count=i,o.fillStorage=a;else{var d=eA(u,f);o.getItem=Y(d,null,s,h,c);var p=rA(u,f);o.count=Y(p,null,s,h,c)}};var t=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,h=0;h<u;h++)s[h]=l[f+h];return s},a=function(o,s,l,u){for(var f=this._data,h=this._dimSize,c=0;c<h;c++){for(var v=u[c],d=v[0]==null?1/0:v[0],p=v[1]==null?-1/0:v[1],g=s-o,y=l[c],m=0;m<g;m++){var _=f[m*h+c];y[o+m]=_,_<d&&(d=_),_>p&&(p=_)}v[0]=d,v[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};l_=(e={},e[be+"_"+Ur]={pure:!0,appendData:n},e[be+"_"+zo]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[pr]={pure:!0,appendData:n},e[Qr]={pure:!0,appendData:function(o){var s=this._data;A(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},e[dr]={appendData:n},e[Ja]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function n(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),f_=function(r,e,t,a){return r[a]},uO=(Ri={},Ri[be+"_"+Ur]=function(r,e,t,a){return r[a+e]},Ri[be+"_"+zo]=function(r,e,t,a,i){a+=e;for(var n=i||[],o=r,s=0;s<o.length;s++){var l=o[s];n[s]=l?l[a]:null}return n},Ri[pr]=f_,Ri[Qr]=function(r,e,t,a,i){for(var n=i||[],o=0;o<t.length;o++){var s=t[o].name,l=r[s];n[o]=l?l[a]:null}return n},Ri[dr]=f_,Ri);function eA(r,e){var t=uO[jg(r,e)];return t}var h_=function(r,e,t){return r.length},fO=(Ei={},Ei[be+"_"+Ur]=function(r,e,t){return Math.max(0,r.length-e)},Ei[be+"_"+zo]=function(r,e,t){var a=r[0];return a?Math.max(0,a.length-e):0},Ei[pr]=h_,Ei[Qr]=function(r,e,t){var a=t[0].name,i=r[a];return i?i.length:0},Ei[dr]=h_,Ei);function rA(r,e){var t=fO[jg(r,e)];return t}var Jv=function(r,e,t){return r[e]},hO=(ki={},ki[be]=Jv,ki[pr]=function(r,e,t){return r[t]},ki[Qr]=Jv,ki[dr]=function(r,e,t){var a=Io(r);return a instanceof Array?a[e]:a},ki[Ja]=Jv,ki);function aA(r){var e=hO[r];return e}function jg(r,e){return r===be?r+"_"+e:r}function go(r,e,t){if(!!r){var a=r.getRawDataItem(e);if(a!=null){var i=r.getStore(),n=i.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=i.getDimensionProperty(o);return aA(n)(a,o,s)}else{var l=a;return n===dr&&(l=Io(a)),l}}}}var vO=/\{@(.+?)\}/g,ty=function(){function r(){}return r.prototype.getDataParams=function(e,t){var a=this.getData(t),i=this.getRawValue(e,t),n=a.getRawIndex(e),o=a.getName(e),s=a.getRawDataItem(e),l=a.getItemVisual(e,"style"),u=l&&l[a.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,h=this.mainType,c=h==="series",v=a.userOutput&&a.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:n,data:s,dataType:t,value:i,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,a,i,n,o){t=t||"normal";var s=this.getData(a),l=this.getDataParams(e,a);if(o&&(l.value=o.interpolatedValue),i!=null&&z(l.value)&&(l.value=l.value[i]),!n){var u=s.getItemModel(e);n=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(J(n))return l.status=t,l.dimensionIndex=i,n(l);if(U(n)){var f=NC(n,l);return f.replace(vO,function(h,c){var v=c.length,d=c;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var p=go(s,e,d);if(o&&z(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(e,t){return go(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,a){},r}();function v_(r){var e,t;return tt(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function Hs(r){return new cO(r)}var cO=function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,a=e&&e.skip;if(this._dirty&&t){var i=this.context;i.data=i.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var n;this._plan&&!a&&(n=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(n="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||n==="reset")&&(this._dirty=!1,h=this._doReset(a)),this._modBy=l,this._modDataCount=u;var c=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!a&&(h||v<d)){var p=this._progress;if(z(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],v,d,l,u);else this._doProgress(p,v,d,l,u)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(e,t,a,i,n){c_.reset(t,a,i,n),this._callingProgress=e,this._callingProgress({start:t,end:a,count:a-t,next:c_.next},this.context)},r.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,a;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(a=t.forceFirstProgress,t=t.progress),z(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),a},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},r}(),c_=function(){var r,e,t,a,i,n={reset:function(l,u,f,h){e=l,r=u,t=f,a=h,i=Math.ceil(a/t),n.next=t>1&&a>0?s:o}};return n;function o(){return e<r?e++:null}function s(){var l=e%i*t+Math.ceil(e/i),u=e>=r?null:l<a?l:e;return e++,u}}();function Qa(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!Ct(r)&&r!=null&&r!=="-"&&(r=+qr(r)),r==null||r===""?NaN:+r)}var dO=K({number:function(r){return parseFloat(r)},time:function(r){return+qr(r)},trim:function(r){return U(r)?br(r):r}});function iA(r){return dO.get(r)}var nA={lt:function(r,e){return r<e},lte:function(r,e){return r<=e},gt:function(r,e){return r>e},gte:function(r,e){return r>=e}},pO=function(){function r(e,t){if(!Ct(t)){var a="";Pt(a)}this._opFn=nA[e],this._rvalFloat=ya(t)}return r.prototype.evaluate=function(e){return Ct(e)?this._opFn(e,this._rvalFloat):this._opFn(ya(e),this._rvalFloat)},r}(),oA=function(){function r(e,t){var a=e==="desc";this._resultLT=a?1:-1,t==null&&(t=a?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var a=Ct(e)?e:ya(e),i=Ct(t)?t:ya(t),n=isNaN(a),o=isNaN(i);if(n&&(a=this._incomparable),o&&(i=this._incomparable),n&&o){var s=U(e),l=U(t);s&&(a=l?e:0),l&&(i=s?t:0)}return a<i?this._resultLT:a>i?-this._resultLT:0},r}(),gO=function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ya(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var a=typeof e;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(t=ya(e)===this._rvalFloat)}return this._isEQ?t:!t},r}();function yO(r,e){return r==="eq"||r==="ne"?new gO(r==="eq",e):Z(nA,r)?new pO(r,e):null}var mO=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return Qa(e,t)},r}();function _O(r,e){var t=new mO,a=r.data,i=t.sourceFormat=r.sourceFormat,n=r.startIndex,o="";r.seriesLayoutBy!==Ur&&Pt(o);var s=[],l={},u=r.dimensionsDefine;if(u)A(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";Z(l,y)&&Pt(_),l[y]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var h=eA(i,Ur);e.__isBuiltIn&&(t.getRawDataItem=function(p){return h(a,n,s,p)},t.getRawData=Y(SO,null,r)),t.cloneRawData=Y(xO,null,r);var c=rA(i,Ur);t.count=Y(c,null,a,n,s);var v=aA(i);t.retrieveValue=function(p,g){var y=h(a,n,s,p);return d(y,g)};var d=t.retrieveValueFromItem=function(p,g){if(p!=null){var y=s[g];if(y)return v(p,g,y.name)}};return t.getDimensionInfo=Y(bO,null,s,l),t.cloneAllDimensionInfo=Y(wO,null,s),t}function SO(r){var e=r.sourceFormat;if(!ey(e)){var t="";Pt(t)}return r.data}function xO(r){var e=r.sourceFormat,t=r.data;if(!ey(e)){var a="";Pt(a)}if(e===be){for(var i=[],n=0,o=t.length;n<o;n++)i.push(t[n].slice());return i}else if(e===pr){for(var i=[],n=0,o=t.length;n<o;n++)i.push(V({},t[n]));return i}}function bO(r,e,t){if(t!=null){if(Ct(t)||!isNaN(t)&&!Z(e,t))return r[t];if(Z(e,t))return e[t]}}function wO(r){return et(r)}var sA=K();function TO(r){r=et(r);var e=r.type,t="";e||Pt(t);var a=e.split(":");a.length!==2&&Pt(t);var i=!1;a[0]==="echarts"&&(e=a[1],i=!0),r.__isBuiltIn=i,sA.set(e,r)}function CO(r,e,t){var a=kt(r),i=a.length,n="";i||Pt(n);for(var o=0,s=i;o<s;o++){var l=a[o];e=AO(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function AO(r,e,t,a){var i="";e.length||Pt(i),tt(r)||Pt(i);var n=r.type,o=sA.get(n);o||Pt(i);var s=G(e,function(u){return _O(u,o)}),l=kt(o.transform({upstream:s[0],upstreamList:s,config:et(r.config)}));return G(l,function(u,f){var h="";tt(u)||Pt(h),u.data||Pt(h);var c=QC(u.data);ey(c)||Pt(h);var v,d=e[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),v={seriesLayoutBy:Ur,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:Ur,sourceHeader:0,dimensions:u.dimensions};return vp(u.data,v,null)})}function ey(r){return r===be||r===pr}var Fh="undefined",DO=typeof Uint32Array===Fh?Array:Uint32Array,MO=typeof Uint16Array===Fh?Array:Uint16Array,lA=typeof Int32Array===Fh?Array:Int32Array,d_=typeof Float64Array===Fh?Array:Float64Array,uA={float:d_,int:lA,ordinal:Array,number:Array,time:d_},Qv;function es(r){return r>65535?DO:MO}function zn(){return[1/0,-1/0]}function LO(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function p_(r,e,t,a,i){var n=uA[t||"float"];if(i){var o=r[e],s=o&&o.length;if(s!==a){for(var l=new n(a),u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new n(a)}var cp=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=K()}return r.prototype.initData=function(e,t,a){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),n=this.defaultDimValueGetter=Qv[i.sourceFormat];this._dimValueGetter=a||n,this._rawExtent=[],jC(i),this._dimensions=G(t,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(e,t){var a=this._calcDimNameToIdx,i=this._dimensions,n=a.get(e);if(n!=null){if(i[n].type===t)return n}else n=i.length;return i[n]={type:t},a.set(e,n),this._chunks[n]=new uA[t||"float"](this._rawCount),this._rawExtent[n]=zn(),n},r.prototype.collectOrdinalMeta=function(e,t){var a=this._chunks[e],i=this._dimensions[e],n=this._rawExtent,o=i.ordinalOffset||0,s=a.length;o===0&&(n[e]=zn());for(var l=n[e],u=o;u<s;u++){var f=a[u]=t.parseAndCollect(a[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=t,i.ordinalOffset=s,i.type="ordinal"},r.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],a=t.ordinalMeta;return a},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){var t=this._provider,a=this.count();t.appendData(e);var i=t.count();return t.persistent||(i+=a),a<i&&this._initDataFromProvider(a,i,!0),[a,i]},r.prototype.appendValues=function(e,t){for(var a=this._chunks,i=this._dimensions,n=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<n;u++){var f=i[u];p_(a,u,f.type,l,!0)}for(var h=[],c=s;c<l;c++)for(var v=c-s,d=0;d<n;d++){var f=i[d],p=Qv.arrayRows.call(this,e[v]||h,f.property,v,d);a[d][c]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,a){for(var i=this._provider,n=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=G(o,function(m){return m.property}),f=0;f<s;f++){var h=o[f];l[f]||(l[f]=zn()),p_(n,f,h.type,t,a)}if(i.fillStorage)i.fillStorage(e,t,n,l);else for(var c=[],v=e;v<t;v++){c=i.getItem(v,c);for(var d=0;d<s;d++){var p=n[d],g=this._dimValueGetter(c,u[d],v,d);p[v]=g;var y=l[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var a=this._chunks[e];return a?a[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var a=[],i=[];if(t==null){t=e,e=[];for(var n=0;n<this._dimensions.length;n++)i.push(n)}else i=e;for(var n=0,o=i.length;n<o;n++)a.push(this.get(i[n],t));return a},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var a=this._chunks[e];return a?a[t]:NaN},r.prototype.getSum=function(e){var t=this._chunks[e],a=0;if(t)for(var i=0,n=this.count();i<n;i++){var o=this.get(e,i);isNaN(o)||(a+=o)}return a},r.prototype.getMedian=function(e){var t=[];this.each([e],function(n){isNaN(n)||t.push(n)});var a=t.sort(function(n,o){return n-o}),i=this.count();return i===0?0:i%2===1?a[(i-1)/2]:(a[i/2]+a[i/2-1])/2},r.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,a=t[e];if(a!=null&&a<this._count&&a===e)return e;for(var i=0,n=this._count-1;i<=n;){var o=(i+n)/2|0;if(t[o]<e)i=o+1;else if(t[o]>e)n=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(e,t,a){var i=this._chunks,n=i[e],o=[];if(!n)return o;a==null&&(a=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f<h;f++){var c=this.getRawIndex(f),v=t-n[c],d=Math.abs(v);d<=a&&((d<s||d===s&&v>=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var a=t.constructor,i=this._count;if(a===Array){e=new a(i);for(var n=0;n<i;n++)e[n]=t[n]}else e=new a(t.buffer,0,i)}else{var a=es(this._rawCount);e=new a(this.count());for(var n=0;n<e.length;n++)e[n]=n}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var a=this.clone(),i=a.count(),n=es(a._rawCount),o=new n(i),s=[],l=e.length,u=0,f=e[0],h=a._chunks,c=0;c<i;c++){var v=void 0,d=a.getRawIndex(c);if(l===0)v=t(c);else if(l===1){var p=h[f][d];v=t(p,c)}else{for(var g=0;g<l;g++)s[g]=h[e[g]][d];s[g]=c,v=t.apply(null,s)}v&&(o[u++]=d)}return u<i&&(a._indices=o),a._count=u,a._extent=[],a._updateGetRawIdx(),a},r.prototype.selectRange=function(e){var t=this.clone(),a=t._count;if(!a)return this;var i=St(e),n=i.length;if(!n)return this;var o=t.count(),s=es(t._rawCount),l=new s(o),u=0,f=i[0],h=e[f][0],c=e[f][1],v=t._chunks,d=!1;if(!t._indices){var p=0;if(n===1){for(var g=v[i[0]],y=0;y<a;y++){var m=g[y];(m>=h&&m<=c||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(n===2){for(var g=v[i[0]],_=v[i[1]],S=e[i[1]][0],b=e[i[1]][1],y=0;y<a;y++){var m=g[y],x=_[y];(m>=h&&m<=c||isNaN(m))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(n===1)for(var y=0;y<o;y++){var w=t.getRawIndex(y),m=v[i[0]][w];(m>=h&&m<=c||isNaN(m))&&(l[u++]=w)}else for(var y=0;y<o;y++){for(var T=!0,w=t.getRawIndex(y),C=0;C<n;C++){var D=i[C],m=v[D][w];(m<e[D][0]||m>e[D][1])&&(T=!1)}T&&(l[u++]=t.getRawIndex(y))}return u<o&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var a=this.clone(e);return this._updateDims(a,e,t),a},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,a){for(var i=e._chunks,n=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<t.length;f++)u[t[f]]=zn();for(var h=0;h<s;h++){for(var c=e.getRawIndex(h),v=0;v<o;v++)l[v]=i[t[v]][c];l[o]=h;var d=a&&a.apply(null,l);if(d!=null){typeof d!="object"&&(n[0]=d,d=n);for(var f=0;f<d.length;f++){var p=t[f],g=d[f],y=u[p],m=i[p];m&&(m[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(e,t){var a=this.clone([e],!0),i=a._chunks,n=i[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,h,c,v=new(es(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),y=(g+p)/2,m=0,_=p;_<g;_++){var S=this.getRawIndex(_),b=n[S];isNaN(b)||(m+=b)}m/=g-p;var x=d,w=Math.min(d+l,o),T=d-1,C=n[u];f=-1,c=x;for(var D=-1,M=0,_=x;_<w;_++){var S=this.getRawIndex(_),b=n[S];if(isNaN(b)){M++,D<0&&(D=S);continue}h=Math.abs((T-y)*(b-C)-(T-_)*(m-C)),h>f&&(f=h,c=S)}M>0&&M<w-x&&(v[s++]=Math.min(D,c),c=Math.max(D,c)),v[s++]=c,u=c}return v[s++]=this.getRawIndex(o-1),a._count=s,a._indices=v,a.getRawIndex=this._getRawIdx,a},r.prototype.downSample=function(e,t,a,i){for(var n=this.clone([e],!0),o=n._chunks,s=[],l=Math.floor(1/t),u=o[e],f=this.count(),h=n._rawExtent[e]=zn(),c=new(es(this._rawCount))(Math.ceil(f/l)),v=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var y=a(s),m=this.getRawIndex(Math.min(d+i(s,y)||0,f-1));u[m]=y,y<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),c[v++]=m}return n._count=v,n._indices=c,n._updateGetRawIdx(),n},r.prototype.each=function(e,t){if(!!this._count)for(var a=e.length,i=this._chunks,n=0,o=this.count();n<o;n++){var s=this.getRawIndex(n);switch(a){case 0:t(n);break;case 1:t(i[e[0]][s],n);break;case 2:t(i[e[0]][s],i[e[1]][s],n);break;default:for(var l=0,u=[];l<a;l++)u[l]=i[e[l]][s];u[l]=n,t.apply(null,u)}}},r.prototype.getDataExtent=function(e){var t=this._chunks[e],a=zn();if(!t)return a;var i=this.count(),n=!this._indices,o;if(n)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=a;for(var s=o[0],l=o[1],u=0;u<i;u++){var f=this.getRawIndex(u),h=t[f];h<s&&(s=h),h>l&&(l=h)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var a=[],i=this._chunks,n=0;n<i.length;n++)a.push(i[n][t]);return a},r.prototype.clone=function(e,t){var a=new r,i=this._chunks,n=e&&Yr(e,function(s,l){return s[l]=!0,s},{});if(n)for(var o=0;o<i.length;o++)a._chunks[o]=n[o]?LO(i[o]):i[o];else a._chunks=i;return this._copyCommonProps(a),t||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=et(this._extent),e._rawExtent=et(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var a=this._indices.length;t=new e(a);for(var i=0;i<a;i++)t[i]=this._indices[i]}else t=new e(this._indices);return t}return null},r.prototype._getRawIdxIdentity=function(e){return e},r.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function e(t,a,i,n){return Qa(t[n],this._dimensions[n])}Qv={arrayRows:e,objectRows:function(t,a,i,n){return Qa(t[a],this._dimensions[n])},keyedColumns:e,original:function(t,a,i,n){var o=t&&(t.value==null?t:t.value);return Qa(o instanceof Array?o[n]:o,this._dimensions[n])},typedArray:function(t,a,i,n){return t[n]}}}(),r}(),fA=function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),a=!!t.length,i,n;if(pu(e)){var o=e,s=void 0,l=void 0,u=void 0;if(a){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,n=[f._getVersionSign()]}else s=o.get("data",!0),l=Xe(s)?Ja:dr,n=[];var h=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},v=ut(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=ut(h.sourceHeader,c.sourceHeader),p=ut(h.dimensions,c.dimensions),g=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||p;i=g?[vp(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var y=e;if(a){var m=this._applyTransform(t);i=m.sourceList,n=m.upstreamSignList}else{var _=y.get("source",!0);i=[vp(_,this._getSourceMetaRawOption(),null)],n=[]}}this._setLocalSource(i,n)},r.prototype._applyTransform=function(e){var t=this._sourceHost,a=t.get("transform",!0),i=t.get("fromTransformResult",!0);if(i!=null){var n="";e.length!==1&&y_(n)}var o,s=[],l=[];return A(e,function(u){u.prepareSource();var f=u.getSource(i||0),h="";i!=null&&!f&&y_(h),s.push(f),l.push(u._getVersionSign())}),a?o=CO(a,s,{datasetIndex:t.componentIndex}):i!=null&&(o=[oO(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var a=e[t];if(a._isDirty()||this._upstreamSignList[t]!==a._getVersionSign())return!0}},r.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var a=this._getUpstreamSourceManagers();return a[0]&&a[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,a){var i=0,n=this._storeList,o=n[i];o||(o=n[i]={});var s=o[a];if(!s){var l=this._getUpstreamSourceManagers()[0];pu(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,a):(s=new cp,s.initData(new tA(t,e.length),e)),o[a]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(pu(e)){var t=qg(e);return t?[t.getSourceManager()]:[]}else return G(Rk(e),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,a,i;if(pu(e))t=e.get("seriesLayoutBy",!0),a=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var n=e;t=n.get("seriesLayoutBy",!0),a=n.get("sourceHeader",!0),i=n.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:a,dimensions:i}},r}();function g_(r){var e=r.option.transform;e&&Sf(r.option.transform)}function pu(r){return r.mainType==="series"}function y_(r){throw new Error(r)}var hA="line-height:1";function vA(r,e){var t=r.color||"#6e7079",a=r.fontSize||12,i=r.fontWeight||"400",n=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+ke(a+"")+"px;color:"+ke(t)+";font-weight:"+ke(i+""),valueStyle:"font-size:"+ke(o+"")+"px;color:"+ke(n)+";font-weight:"+ke(s+"")}:{nameStyle:{fontSize:a,fill:t,fontWeight:i},valueStyle:{fontSize:o,fill:n,fontWeight:s}}}var IO=[0,10,20,30],PO=["",`
`,`

`,`


`];function oe(r,e){return e.type=r,e}function dp(r){return r.type==="section"}function cA(r){return dp(r)?RO:EO}function dA(r){if(dp(r)){var e=0,t=r.blocks.length,a=t>1||t>0&&!r.noHeader;return A(r.blocks,function(i){var n=dA(i);n>=e&&(e=n+ +(a&&(!n||dp(i)&&!i.noHeader)))}),e}return 0}function RO(r,e,t,a){var i=e.noHeader,n=kO(dA(e)),o=[],s=e.blocks||[];Le(!s||z(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Z(u,l)){var f=new oA(u[l],null);s.sort(function(d,p){return f.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(d,p){var g=e.valueFormatter,y=cA(d)(g?V(V({},r),{valueFormatter:g}):r,d,p>0?n.html:0,a);y!=null&&o.push(y)});var h=r.renderMode==="richText"?o.join(n.richText):pp(o.join(""),i?t:n.html);if(i)return h;var c=up(e.header,"ordinal",r.useUTC),v=vA(a,r.renderMode).nameStyle;return r.renderMode==="richText"?pA(r,c,v)+n.richText+h:pp('<div style="'+v+";"+hA+';">'+ke(c)+"</div>"+h,t)}function EO(r,e,t,a){var i=r.renderMode,n=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=z(S)?S:[S],G(S,function(b,x){return up(b,z(v)?v[x]:v,u)})};if(!(n&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),c=n?"":up(l,"ordinal",u),v=e.valueType,d=o?[]:f(e.value),p=!s||!n,g=!s&&n,y=vA(a,i),m=y.nameStyle,_=y.valueStyle;return i==="richText"?(s?"":h)+(n?"":pA(r,c,m))+(o?"":BO(r,d,p,g,_)):pp((s?"":h)+(n?"":OO(c,!s,m))+(o?"":NO(d,p,g,_)),t)}}function m_(r,e,t,a,i,n){if(!!r){var o=cA(r),s={useUTC:i,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,n)}}function kO(r){return{html:IO[r],richText:PO[r]}}function pp(r,e){var t='<div style="clear:both"></div>',a="margin: "+e+"px 0 0";return'<div style="'+a+";"+hA+';">'+r+t+"</div>"}function OO(r,e,t){var a=e?"margin-left:2px":"";return'<span style="'+t+";"+a+'">'+ke(r)+"</span>"}function NO(r,e,t,a){var i=t?"10px":"20px",n=e?"float:right;margin-left:"+i:"";return r=z(r)?r:[r],'<span style="'+n+";"+a+'">'+G(r,function(o){return ke(o)}).join("&nbsp;&nbsp;")+"</span>"}function pA(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function BO(r,e,t,a,i){var n=[i],o=a?10:20;return t&&n.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(z(e)?e.join("  "):e,n)}function gA(r,e){var t=r.getData().getItemVisual(e,"style"),a=t[r.visualDrawType];return Sn(a)}function yA(r,e){var t=r.get("padding");return t!=null?t:e==="richText"?[8,10]:10}var jv=function(){function r(){this.richTextStyles={},this._nextStyleNameId=pT()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,a){var i=a==="richText"?this._generateStyleName():null,n=Ck({color:t,type:e,renderMode:a,markerId:i});return U(n)?n:(this.richTextStyles[i]=n.style,n.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};z(t)?A(t,function(n){return V(a,n)}):V(a,t);var i=this._generateStyleName();return this.richTextStyles[i]=a,"{"+i+"|"+e+"}"},r}();function mA(r){var e=r.series,t=r.dataIndex,a=r.multipleSeries,i=e.getData(),n=i.mapDimensionsAll("defaultedTooltip"),o=n.length,s=e.getRawValue(t),l=z(s),u=gA(e,t),f,h,c,v;if(o>1||l&&!o){var d=VO(s,e,t,n,u);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var p=i.getDimensionInfo(n[0]);v=f=go(i,t,n[0]),h=p.type}else v=f=l?s[0]:s;var g=Dg(e),y=g&&e.name||"",m=i.getName(t),_=a?y:m;return oe("section",{header:y,noHeader:a||!g,sortParam:v,blocks:[oe("nameValue",{markerType:"item",markerColor:u,name:_,noName:!br(_),value:f,valueType:h})].concat(c||[])})}function VO(r,e,t,a,i){var n=e.getData(),o=Yr(r,function(h,c,v){var d=n.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?A(a,function(h){f(go(n,t,h),h)}):A(r,f);function f(h,c){var v=n.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?u.push(oe("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:h,valueType:v.type})):(s.push(h),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Ia=Dt();function gu(r,e){return r.getName(e)||r.getId(e)}var cf="__universalTransitionEnabled",Hh=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,a,i){this.seriesIndex=this.componentIndex,this.dataTask=Hs({count:GO,reset:FO}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i);var n=Ia(this).sourceManager=new fA(this);n.prepareSource();var o=this.getInitialData(t,i);S_(o,this),this.dataTask.context.data=o,Ia(this).dataBeforeProcessed=o,__(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,a){var i=ol(this),n=i?Bo(t):{},o=this.subType;wt.hasClass(o)&&(o+="Series"),ft(t,a.getTheme().get(this.subType)),ft(t,this.getDefaultOption()),gn(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&ai(t,n,i)},e.prototype.mergeOption=function(t,a){t=ft(this.option,t,!0),this.fillDataTextStyle(t.data);var i=ol(this);i&&ai(this.option,t,i);var n=Ia(this).sourceManager;n.dirty(),n.prepareSource();var o=this.getInitialData(t,a);S_(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ia(this).dataBeforeProcessed=o,__(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Xe(t))for(var a=["show"],i=0;i<t.length;i++)t[i]&&t[i].label&&gn(t[i],"label",a)},e.prototype.getInitialData=function(t,a){},e.prototype.appendData=function(t){var a=this.getRawData();a.appendData(t.data)},e.prototype.getData=function(t){var a=gp(this);if(a){var i=a.context.data;return t==null?i:i.getLinkedData(t)}else return Ia(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var a=gp(this);if(a){var i=a.context;i.outputData=t,a!==this.dataTask&&(i.data=t)}Ia(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return K(t)},e.prototype.getSourceManager=function(){return Ia(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Ia(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,a,i){return mA({series:this,dataIndex:t,multipleSeries:a})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(It.node&&!(t&&t.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,a,i){var n=this.ecModel,o=Kg.prototype.getColorFromPalette.call(this,t,a,i);return o||(o=n.getColorFromPalette(t,a,i)),o},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,a){this._innerSelect(this.getData(a),t)},e.prototype.unselect=function(t,a){var i=this.option.selectedMap;if(!!i){var n=this.option.selectedMode,o=this.getData(a);if(n==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var l=t[s],u=gu(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,a){for(var i=[],n=0;n<t.length;n++)i[0]=t[n],this.isSelected(t[n],a)?this.unselect(i,a):this.select(i,a)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,a=St(t),i=[],n=0;n<a.length;n++){var o=t[a[n]];o>=0&&i.push(o)}return i},e.prototype.isSelected=function(t,a){var i=this.option.selectedMap;if(!i)return!1;var n=this.getData(a);return(i==="all"||i[gu(n,t)])&&!n.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[cf])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,a){var i,n,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){tt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var h=a[f],c=gu(t,h);u[c]=!0,this._selectedDataIndicesMap[c]=t.getRawIndex(h)}}else if(s==="single"||s===!0){var v=a[l-1],c=gu(t,v);o.selectedMap=(i={},i[c]=!0,i),this._selectedDataIndicesMap=(n={},n[c]=t.getRawIndex(v),n)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var a=[];t.hasItemOption&&t.each(function(i){var n=t.getRawDataItem(i);n&&n.selected&&a.push(i)}),a.length>0&&this._innerSelect(t,a)}},e.registerClass=function(t){return wt.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(wt);ee(Hh,ty);ee(Hh,Kg);TT(Hh,wt);function __(r){var e=r.name;Dg(r)||(r.name=zO(r)||e)}function zO(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),a=[];return A(t,function(i){var n=e.getDimensionInfo(i);n.displayName&&a.push(n.displayName)}),a.join(" ")}function GO(r){return r.model.getRawData().count()}function FO(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),HO}function HO(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function S_(r,e){A(xf(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,ot($O,e))})}function $O(r,e){var t=gp(r);return t&&t.setOutputEnd((e||this).count()),e}function gp(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var a=t.currentTask;if(a){var i=a.agentStubMap;i&&(a=i.get(r.uid))}return a}}var Ht=Hh,ry=function(){function r(){this.group=new at,this.uid=Oo("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,i){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,i){},r.prototype.updateLayout=function(e,t,a,i){},r.prototype.updateVisual=function(e,t,a,i){},r.prototype.toggleBlurSeries=function(e,t,a){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();Lg(ry);wh(ry);var Yt=ry;function Go(){var r=Dt();return function(e){var t=r(e),a=e.pipelineContext,i=!!t.large,n=!!t.progressiveRender,o=t.large=!!(a&&a.large),s=t.progressiveRender=!!(a&&a.progressiveRender);return(i!==o||n!==s)&&"reset"}}var _A=Dt(),WO=Go(),ay=function(){function r(){this.group=new at,this.uid=Oo("viewChart"),this.renderTask=Hs({plan:UO,reset:YO}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,i){},r.prototype.highlight=function(e,t,a,i){var n=e.getData(i&&i.dataType);!n||b_(n,i,"emphasis")},r.prototype.downplay=function(e,t,a,i){var n=e.getData(i&&i.dataType);!n||b_(n,i,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,i){this.render(e,t,a,i)},r.prototype.updateLayout=function(e,t,a,i){this.render(e,t,a,i)},r.prototype.updateVisual=function(e,t,a,i){this.render(e,t,a,i)},r.prototype.eachRendered=function(e){ui(this.group,e)},r.markUpdateMethod=function(e,t){_A(e).updateMethod=t},r.protoInitialize=function(){var e=r.prototype;e.type="chart"}(),r}();function x_(r,e,t){r&&rl(r)&&(e==="emphasis"?ma:_a)(r,t)}function b_(r,e,t){var a=yn(r,e),i=e&&e.highlightKey!=null?mE(e.highlightKey):null;a!=null?A(kt(a),function(n){x_(r.getItemGraphicEl(n),t,i)}):r.eachItemGraphicEl(function(n){x_(n,t,i)})}Lg(ay);wh(ay);function UO(r){return WO(r.model)}function YO(r){var e=r.model,t=r.ecModel,a=r.api,i=r.payload,n=e.pipelineContext.progressiveRender,o=r.view,s=i&&_A(i).updateMethod,l=n?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,a,i),ZO[l]}var ZO={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},zt=ay,Vf="\0__throttleOriginMethod",w_="\0__throttleRate",T_="\0__throttleType";function iy(r,e,t){var a,i=0,n=0,o=null,s,l,u,f;e=e||0;function h(){n=new Date().getTime(),o=null,r.apply(l,u||[])}var c=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];a=new Date().getTime(),l=this,u=v;var p=f||e,g=f||t;f=null,s=a-(g?i:n)-p,clearTimeout(o),g?o=setTimeout(h,p):s>=0?h():o=setTimeout(h,-s),i=a};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function Fo(r,e,t,a){var i=r[e];if(!!i){var n=i[Vf]||i,o=i[T_],s=i[w_];if(s!==t||o!==a){if(t==null||!a)return r[e]=n;i=r[e]=iy(n,t,a==="debounce"),i[Vf]=n,i[T_]=a,i[w_]=t}return i}}function ll(r,e){var t=r[e];t&&t[Vf]&&(t.clear&&t.clear(),r[e]=t[Vf])}var C_=Dt(),A_={itemStyle:mn(wC,!0),lineStyle:mn(bC,!0)},XO={lineStyle:"stroke",itemStyle:"fill"};function SA(r,e){var t=r.visualStyleMapper||A_[e];return t||(console.warn("Unkown style type '"+e+"'."),A_.itemStyle)}function xA(r,e){var t=r.visualDrawType||XO[e];return t||(console.warn("Unkown style type '"+e+"'."),"fill")}var qO={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",i=r.getModel(a),n=SA(r,a),o=n(i),s=i.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=xA(r,a),u=o[l],f=J(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var c=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=c,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||J(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||J(o.stroke)?c:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),g=V({},o);g[l]=f(p),v.setItemVisual(d,"style",g)}}}},rs=new Vt,KO={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",i=SA(r,a),n=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){rs.option=l[a];var u=i(rs),f=o.ensureUniqueItemVisual(s,"style");V(f,u),rs.option.decal&&(o.setItemVisual(s,"decal",rs.option.decal),rs.option.decal.dirty=!0),n in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},JO={performRawSeries:!0,overallReset:function(r){var e=K();r.eachSeries(function(t){var a=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+a,n=e.get(i);n||(n={},e.set(i,n)),C_(t).scope=n}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var a=t.getRawData(),i={},n=t.getData(),o=C_(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=xA(t,s);n.each(function(u){var f=n.getRawIndex(u);i[f]=u}),a.each(function(u){var f=i[u],h=n.getItemVisual(f,"colorFromPalette");if(h){var c=n.ensureUniqueItemVisual(f,"style"),v=a.getName(u)||u+"",d=a.count();c[l]=t.getColorFromPalette(v,o,d)}})}})}},yu=Math.PI;function QO(r,e){e=e||{},Q(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 t=new at,a=new bt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(a);var i=new Tt({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),n=new bt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(n);var o;return e.showSpinner&&(o=new Vg({shape:{startAngle:-yu/2,endAngle:-yu/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:yu*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:yu*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),n.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var jO=function(){function r(e,t,a,i){this._stageTaskMap=K(),this.ecInstance=e,this.api=t,a=this._dataProcessorHandlers=a.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=a.concat(i)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(a){var i=a.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(e,t){if(!!e.__pipeline){var a=this._pipelineMap.get(e.__pipeline.id),i=a.context,n=!t&&a.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>a.blockIndex,o=n?a.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var a=this._pipelineMap.get(e.uid),i=e.getData(),n=i.count(),o=a.progressiveEnabled&&t.incrementalPrepareRender&&n>=a.threshold,s=e.get("large")&&n>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?n:null;e.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,a=t._pipelineMap=K();e.eachSeries(function(i){var n=i.getProgressive(),o=i.uid;a.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:n&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),t._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),a=this.api;A(this._allHandlers,function(i){var n=e.get(i.uid)||e.set(i.uid,{}),o="";Le(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,n,t,a),i.overallReset&&this._createOverallStageTask(i,n,t,a)},this)},r.prototype.prepareView=function(e,t,a,i){var n=e.renderTask,o=n.context;o.model=t,o.ecModel=a,o.api=i,n.__block=!e.incrementalPrepareRender,this._pipe(t,n)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,a){this._performStageTasks(this._visualHandlers,e,t,a)},r.prototype._performStageTasks=function(e,t,a,i){i=i||{};var n=!1,o=this;A(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(g){s(i,g)&&(g.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,a);var p=o.getPerformArgs(c,i.block);d.each(function(g){g.perform(p)}),c.perform(p)&&(n=!0)}else h&&h.each(function(g,y){s(i,g)&&g.dirty();var m=o.getPerformArgs(g,i.block);m.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(m)&&(n=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=n||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(a){t=a.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,a,i){var n=this,o=t.seriesTaskMap,s=t.seriesTaskMap=K(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?a.eachRawSeries(f):l?a.eachRawSeriesByType(l,f):u&&u(a,i).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||Hs({plan:iN,reset:nN,count:sN}));v.context={model:h,ecModel:a,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:n},n._pipe(h,v)}},r.prototype._createOverallStageTask=function(e,t,a,i){var n=this,o=t.overallTask=t.overallTask||Hs({reset:tN});o.context={ecModel:a,api:i,overallReset:e.overallReset,scheduler:n};var s=o.agentStubMap,l=o.agentStubMap=K(),u=e.seriesType,f=e.getTargetSeries,h=!0,c=!1,v="";Le(!e.createOnAllSeries,v),u?a.eachRawSeriesByType(u,d):f?f(a,i).each(d):(h=!1,A(a.getSeries(),d));function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(c=!0,Hs({reset:eN,onDirty:aN})));y.context={model:p,overallProgress:h},y.agent=o,y.__block=h,n._pipe(p,y)}c&&o.dirty()},r.prototype._pipe=function(e,t){var a=e.uid,i=this._pipelineMap.get(a);!i.head&&(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},r.wrapStageHandler=function(e,t){return J(e)&&(e={overallReset:e,seriesType:lN(e)}),e.uid=Oo("stageHandler"),t&&(e.visualType=t),e},r}();function tN(r){r.overallReset(r.ecModel,r.api,r.payload)}function eN(r){return r.overallProgress&&rN}function rN(){this.agent.dirty(),this.getDownstream().dirty()}function aN(){this.agent&&this.agent.dirty()}function iN(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function nN(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=kt(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?G(e,function(t,a){return bA(a)}):oN}var oN=bA(0);function bA(r){return function(e,t){var a=t.data,i=t.resetDefines[r];if(i&&i.dataEach)for(var n=e.start;n<e.end;n++)i.dataEach(a,n);else i&&i.progress&&i.progress(e,a)}}function sN(r){return r.data.count()}function lN(r){zf=null;try{r(ul,wA)}catch{}return zf}var ul={},wA={},zf;TA(ul,XC);TA(wA,qC);ul.eachSeriesByType=ul.eachRawSeriesByType=function(r){zf=r};ul.eachComponent=function(r){r.mainType==="series"&&r.subType&&(zf=r.subType)};function TA(r,e){for(var t in e.prototype)r[t]=jt}var CA=jO,D_=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],uN={color:D_,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],D_]},Te="#B9B8CE",M_="#100C2A",mu=function(){return{axisLine:{lineStyle:{color:Te}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},L_=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],AA={darkMode:!0,color:L_,backgroundColor:M_,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Te}},textStyle:{color:Te},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Te}},dataZoom:{borderColor:"#71708A",textStyle:{color:Te},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:Te}},timeline:{lineStyle:{color:Te},label:{color:Te},controlStyle:{color:Te,borderColor:Te}},calendar:{itemStyle:{color:M_},dayLabel:{color:Te},monthLabel:{color:Te},yearLabel:{color:Te}},timeAxis:mu(),logAxis:mu(),valueAxis:mu(),categoryAxis:mu(),line:{symbol:"circle"},graph:{color:L_},gauge:{title:{color:Te},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Te},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};AA.categoryAxis.splitLine.show=!1;var fN=AA,hN=function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},a={},i={};if(U(e)){var n=Hr(e);t.mainType=n.main||null,t.subType=n.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};A(e,function(l,u){for(var f=!1,h=0;h<o.length;h++){var c=o[h],v=u.lastIndexOf(c);if(v>0&&v===u.length-c.length){var d=u.slice(0,v);d!=="data"&&(t.mainType=d,t[c.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(a[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:t,dataQuery:a,otherQuery:i}},r.prototype.filter=function(e,t){var a=this.eventInfo;if(!a)return!0;var i=a.targetEl,n=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,n,"name")&&f(u,n,"dataIndex")&&f(u,n,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,i,n));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),yp=["symbol","symbolSize","symbolRotate","symbolOffset"],I_=yp.concat(["symbolKeepAspect"]),vN={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},i={},n=!1,o=0;o<yp.length;o++){var s=yp[o],l=r.get(s);J(l)?(n=!0,i[s]=l):a[s]=l}if(a.symbol=a.symbol||r.defaultSymbol,t.setVisual(V({legendIcon:r.legendIcon||a.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},a)),e.isSeriesFiltered(r))return;var u=St(i);function f(h,c){for(var v=r.getRawValue(c),d=r.getDataParams(c),p=0;p<u.length;p++){var g=u[p];h.setItemVisual(c,g,i[g](v,d))}}return{dataEach:n?f:null}}},cN={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function a(i,n){for(var o=i.getItemModel(n),s=0;s<I_.length;s++){var l=I_[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(n,l,u)}}return{dataEach:t.hasItemOption?a:null}}};function ny(r,e,t){switch(t){case"color":var a=r.getItemVisual(e,"style");return a[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t)}}function kl(r,e){switch(e){case"color":var t=r.getVisual("style");return t[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e)}}function DA(r,e,t,a){switch(t){case"color":var i=r.ensureUniqueItemVisual(e,"style");i[r.getVisual("drawType")]=a,r.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(e,"style").opacity=a;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(e,t,a);break}}function MA(r,e){function t(a,i){var n=[];return a.eachComponent({mainType:"series",subType:r,query:i},function(o){n.push(o.seriesIndex)}),n}A([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(a){e(a[0],function(i,n,o){i=V({},i),o.dispatchAction(V(i,{type:a[1],seriesIndex:t(n,i)}))})})}function Gn(r,e,t,a,i){var n=r+e;t.isSilent(n)||a.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var h=o.getData(),c=yn(h,i.fromActionPayload);t.trigger(n,{type:n,seriesId:o.id,name:z(c)?h.getName(c[0]):h.getName(c),selected:U(l)?l:V({},l)})}})}function dN(r,e,t){r.on("selectchanged",function(a){var i=t.getModel();a.isFromClick?(Gn("map","selectchanged",e,i,a),Gn("pie","selectchanged",e,i,a)):a.fromAction==="select"?(Gn("map","selected",e,i,a),Gn("pie","selected",e,i,a)):a.fromAction==="unselect"&&(Gn("map","unselected",e,i,a),Gn("pie","unselected",e,i,a))})}function en(r,e,t){for(var a;r&&!(e(r)&&(a=r,t));)r=r.__hostTarget||r.parent;return a}var pN=Math.round(Math.random()*9),gN=typeof Object.defineProperty=="function",yN=function(){function r(){this._id="__ec_inner_"+pN++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var a=this._guard(e);return gN?Object.defineProperty(a,this._id,{value:t,enumerable:!1,configurable:!0}):a[this._id]=t,this},r.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},r.prototype.has=function(e){return!!this._guard(e)[this._id]},r.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},r}(),mN=yN,_N=yt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,a=e.cy,i=e.width/2,n=e.height/2;r.moveTo(t,a-n),r.lineTo(t+i,a+n),r.lineTo(t-i,a+n),r.closePath()}}),SN=yt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,a=e.cy,i=e.width/2,n=e.height/2;r.moveTo(t,a-n),r.lineTo(t+i,a),r.lineTo(t,a+n),r.lineTo(t-i,a),r.closePath()}}),xN=yt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,a=e.y,i=e.width/5*3,n=Math.max(i,e.height),o=i/2,s=o*o/(n-o),l=a-n+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,h=Math.sin(u),c=Math.cos(u),v=o*.6,d=o*.7;r.moveTo(t-f,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+f-h*v,l+s+c*v,t,a-d,t,a),r.bezierCurveTo(t,a-d,t-f+h*v,l+s+c*v,t-f,l+s),r.closePath()}}),bN=yt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,a=e.width,i=e.x,n=e.y,o=a/3*2;r.moveTo(i,n),r.lineTo(i+o,n+t),r.lineTo(i,n+t/4*3),r.lineTo(i-o,n+t),r.lineTo(i,n),r.closePath()}}),wN={line:fe,rect:bt,roundRect:bt,square:bt,circle:Jr,diamond:SN,pin:xN,arrow:bN,triangle:_N},TN={line:function(r,e,t,a,i){i.x1=r,i.y1=e+a/2,i.x2=r+t,i.y2=e+a/2},rect:function(r,e,t,a,i){i.x=r,i.y=e,i.width=t,i.height=a},roundRect:function(r,e,t,a,i){i.x=r,i.y=e,i.width=t,i.height=a,i.r=Math.min(t,a)/4},square:function(r,e,t,a,i){var n=Math.min(t,a);i.x=r,i.y=e,i.width=n,i.height=n},circle:function(r,e,t,a,i){i.cx=r+t/2,i.cy=e+a/2,i.r=Math.min(t,a)/2},diamond:function(r,e,t,a,i){i.cx=r+t/2,i.cy=e+a/2,i.width=t,i.height=a},pin:function(r,e,t,a,i){i.x=r+t/2,i.y=e+a/2,i.width=t,i.height=a},arrow:function(r,e,t,a,i){i.x=r+t/2,i.y=e+a/2,i.width=t,i.height=a},triangle:function(r,e,t,a,i){i.cx=r+t/2,i.cy=e+a/2,i.width=t,i.height=a}},Gf={};A(wN,function(r,e){Gf[e]=new r});var CN=yt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var a=Mf(r,e,t),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(a.y=t.y+t.height*.4),a},buildPath:function(r,e,t){var a=e.symbolType;if(a!=="none"){var i=Gf[a];i||(a="rect",i=Gf[a]),TN[a](e.x,e.y,e.width,e.height,i.shape),i.buildPath(r,i.shape,t)}}});function AN(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||"#fff",t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function te(r,e,t,a,i,n,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=cC(r.slice(8),new ht(e,t,a,i),o?"center":"cover"):r.indexOf("path://")===0?l=Ph(r.slice(7),{},new ht(e,t,a,i),o?"center":"cover"):l=new CN({shape:{symbolType:r,x:e,y:t,width:a,height:i}}),l.__isEmptyBrush=s,l.setColor=AN,n&&l.setColor(n),l}function Ol(r){return z(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Ho(r,e){if(r!=null)return z(r)||(r=[r,r]),[H(r[0],e[0])||0,H(ut(r[1],r[0]),e[1])||0]}function rn(r){return isFinite(r)}function DN(r,e,t){var a=e.x==null?0:e.x,i=e.x2==null?1:e.x2,n=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(a=a*t.width+t.x,i=i*t.width+t.x,n=n*t.height+t.y,o=o*t.height+t.y),a=rn(a)?a:0,i=rn(i)?i:1,n=rn(n)?n:0,o=rn(o)?o:0;var s=r.createLinearGradient(a,n,i,o);return s}function MN(r,e,t){var a=t.width,i=t.height,n=Math.min(a,i),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*a+t.x,s=s*i+t.y,l=l*n),o=rn(o)?o:.5,s=rn(s)?s:.5,l=l>=0&&rn(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function mp(r,e,t){for(var a=e.type==="radial"?MN(r,e,t):DN(r,e,t),i=e.colorStops,n=0;n<i.length;n++)a.addColorStop(i[n].offset,i[n].color);return a}function LN(r,e){if(r===e||!r&&!e)return!1;if(!r||!e||r.length!==e.length)return!0;for(var t=0;t<r.length;t++)if(r[t]!==e[t])return!0;return!1}function _u(r){return parseInt(r,10)}function no(r,e,t){var a=["width","height"][e],i=["clientWidth","clientHeight"][e],n=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(t[a]!=null&&t[a]!=="auto")return parseFloat(t[a]);var s=document.defaultView.getComputedStyle(r);return(r[i]||_u(s[a])||_u(r.style[a]))-(_u(s[n])||0)-(_u(s[o])||0)|0}function IN(r,e){return!r||r==="solid"||!(e>0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:Ct(r)?[r]:z(r)?r:null}function oy(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&IN(e.lineDash,e.lineWidth),a=e.lineDashOffset;if(t){var i=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(t=G(t,function(n){return n/i}),a/=i)}return[t,a]}var PN=new Kr(!0);function Ff(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function P_(r){return typeof r=="string"&&r!=="none"}function Hf(r){var e=r.fill;return e!=null&&e!=="none"}function R_(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function E_(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function _p(r,e,t){var a=Ig(e.image,e.__image,t);if(Th(a)){var i=r.createPattern(a,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var n=new DOMMatrix;n.translateSelf(e.x||0,e.y||0),n.rotateSelf(0,0,(e.rotation||0)*Qu),n.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(n)}return i}}function RN(r,e,t,a){var i,n=Ff(t),o=Hf(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||PN,h=e.__dirty;if(!a){var c=t.fill,v=t.stroke,d=o&&!!c.colorStops,p=n&&!!v.colorStops,g=o&&!!c.image,y=n&&!!v.image,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0;(d||p)&&(x=e.getBoundingRect()),d&&(m=h?mp(r,c,x):e.__canvasFillGradient,e.__canvasFillGradient=m),p&&(_=h?mp(r,v,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),g&&(S=h||!e.__canvasFillPattern?_p(r,c,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(b=h||!e.__canvasStrokePattern?_p(r,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),d?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),p?r.strokeStyle=_:y&&(b?r.strokeStyle=b:n=!1)}var w=e.getGlobalScale();f.setScale(w[0],w[1],e.segmentIgnoreThreshold);var T,C;r.setLineDash&&t.lineDash&&(i=oy(e),T=i[0],C=i[1]);var D=!0;(u||h&Qn)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),D=!1),f.reset(),e.buildPath(f,e.shape,a),f.toStatic(),e.pathUpdated()),D&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=C),a||(t.strokeFirst?(n&&E_(r,t),o&&R_(r,t)):(o&&R_(r,t),n&&E_(r,t))),T&&r.setLineDash([])}function EN(r,e,t){var a=e.__image=Ig(t.image,e.__image,e,e.onload);if(!(!a||!Th(a))){var i=t.x||0,n=t.y||0,o=e.getWidth(),s=e.getHeight(),l=a.width/a.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=a.width,s=a.height),t.sWidth&&t.sHeight){var u=t.sx||0,f=t.sy||0;r.drawImage(a,u,f,t.sWidth,t.sHeight,i,n,o,s)}else if(t.sx&&t.sy){var u=t.sx,f=t.sy,h=o-u,c=s-f;r.drawImage(a,u,f,h,c,i,n,o,s)}else r.drawImage(a,i,n,o,s)}}function kN(r,e,t){var a,i=t.text;if(i!=null&&(i+=""),i){r.font=t.font||ti,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var n=void 0,o=void 0;r.setLineDash&&t.lineDash&&(a=oy(e),n=a[0],o=a[1]),n&&(r.setLineDash(n),r.lineDashOffset=o),t.strokeFirst?(Ff(t)&&r.strokeText(i,t.x,t.y),Hf(t)&&r.fillText(i,t.x,t.y)):(Hf(t)&&r.fillText(i,t.x,t.y),Ff(t)&&r.strokeText(i,t.x,t.y)),n&&r.setLineDash([])}}var k_=["shadowBlur","shadowOffsetX","shadowOffsetY"],O_=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function LA(r,e,t,a,i){var n=!1;if(!a&&(t=t||{},e===t))return!1;if(a||e.opacity!==t.opacity){Be(r,i),n=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?sn.opacity:o}(a||e.blend!==t.blend)&&(n||(Be(r,i),n=!0),r.globalCompositeOperation=e.blend||sn.blend);for(var s=0;s<k_.length;s++){var l=k_[s];(a||e[l]!==t[l])&&(n||(Be(r,i),n=!0),r[l]=r.dpr*(e[l]||0))}return(a||e.shadowColor!==t.shadowColor)&&(n||(Be(r,i),n=!0),r.shadowColor=e.shadowColor||sn.shadowColor),n}function N_(r,e,t,a,i){var n=fl(e,i.inHover),o=a?null:t&&fl(t,i.inHover)||{};if(n===o)return!1;var s=LA(r,n,o,a,i);if((a||n.fill!==o.fill)&&(s||(Be(r,i),s=!0),P_(n.fill)&&(r.fillStyle=n.fill)),(a||n.stroke!==o.stroke)&&(s||(Be(r,i),s=!0),P_(n.stroke)&&(r.strokeStyle=n.stroke)),(a||n.opacity!==o.opacity)&&(s||(Be(r,i),s=!0),r.globalAlpha=n.opacity==null?1:n.opacity),e.hasStroke()){var l=n.lineWidth,u=l/(n.strokeNoScale&&e.getLineScale?e.getLineScale():1);r.lineWidth!==u&&(s||(Be(r,i),s=!0),r.lineWidth=u)}for(var f=0;f<O_.length;f++){var h=O_[f],c=h[0];(a||n[c]!==o[c])&&(s||(Be(r,i),s=!0),r[c]=n[c]||h[1])}return s}function ON(r,e,t,a,i){return LA(r,fl(e,i.inHover),t&&fl(t,i.inHover),a,i)}function IA(r,e){var t=e.transform,a=r.dpr||1;t?r.setTransform(a*t[0],a*t[1],a*t[2],a*t[3],a*t[4],a*t[5]):r.setTransform(a,0,0,a,0,0)}function NN(r,e,t){for(var a=!1,i=0;i<r.length;i++){var n=r[i];a=a||n.isZeroArea(),IA(e,n),e.beginPath(),n.buildPath(e,n.shape),e.clip()}t.allClipped=a}function BN(r,e){return r&&e?r[0]!==e[0]||r[1]!==e[1]||r[2]!==e[2]||r[3]!==e[3]||r[4]!==e[4]||r[5]!==e[5]:!(!r&&!e)}var B_=1,V_=2,z_=3,G_=4;function VN(r){var e=Hf(r),t=Ff(r);return!(r.lineDash||!(+e^+t)||e&&typeof r.fill!="string"||t&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function Be(r,e){e.batchFill&&r.fill(),e.batchStroke&&r.stroke(),e.batchFill="",e.batchStroke=""}function fl(r,e){return e&&r.__hoverStyle||r.style}function PA(r,e){an(r,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function an(r,e,t,a){var i=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~$e,e.__isRendered=!1;return}var n=e.__clipPaths,o=t.prevElClipPaths,s=!1,l=!1;if((!o||LN(n,o))&&(o&&o.length&&(Be(r,t),r.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),n&&n.length&&(Be(r,t),r.save(),NN(n,r,t),s=!0),t.prevElClipPaths=n),t.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var f=e instanceof yt&&e.autoBatch&&VN(e.style);s||BN(i,u.transform)?(Be(r,t),IA(r,e)):f||Be(r,t);var h=fl(e,t.inHover);e instanceof yt?(t.lastDrawType!==B_&&(l=!0,t.lastDrawType=B_),N_(r,e,u,l,t),(!f||!t.batchFill&&!t.batchStroke)&&r.beginPath(),RN(r,e,h,f),f&&(t.batchFill=h.fill||"",t.batchStroke=h.stroke||"")):e instanceof tl?(t.lastDrawType!==z_&&(l=!0,t.lastDrawType=z_),N_(r,e,u,l,t),kN(r,e,h)):e instanceof ge?(t.lastDrawType!==V_&&(l=!0,t.lastDrawType=V_),ON(r,e,u,l,t),EN(r,e,h)):e.getTemporalDisplayables&&(t.lastDrawType!==G_&&(l=!0,t.lastDrawType=G_),zN(r,e,t)),f&&a&&Be(r,t),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function zN(r,e,t){var a=e.getDisplayables(),i=e.getTemporalDisplayables();r.save();var n={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover},o,s;for(o=e.getCursor(),s=a.length;o<s;o++){var l=a[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),an(r,l,n,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),n.prevEl=l}for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),an(r,l,n,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),n.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var tc=new mN,F_=new Cl(100),H_=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function yo(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),a=e.getZr(),i=a.painter.type==="svg";r.dirty&&tc.delete(r);var n=tc.get(r);if(n)return n;var o=Q(r,{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});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/t,tc.set(r,s),r.dirty=!1,s;function l(u){for(var f=[t],h=!0,c=0;c<H_.length;++c){var v=o[H_[c]];if(v!=null&&!z(v)&&!U(v)&&!Ct(v)&&typeof v!="boolean"){h=!1;break}f.push(v)}var d;if(h){d=f.join(",")+(i?"-svg":"");var p=F_.get(d);p&&(i?u.svgElement=p:u.image=p)}var g=EA(o.dashArrayX),y=GN(o.dashArrayY),m=RA(o.symbol),_=FN(g),S=kA(y),b=!i&&pa.createCanvas(),x=i&&{tag:"g",attrs:{},key:"dcl",children:[]},w=C(),T;b&&(b.width=w.width*t,b.height=w.height*t,T=b.getContext("2d")),D(),h&&F_.put(d,b||x),u.image=b,u.svgElement=x,u.svgWidth=w.width,u.svgHeight=w.height;function C(){for(var M=1,L=0,I=_.length;L<I;++L)M=a0(M,_[L]);for(var P=1,L=0,I=m.length;L<I;++L)P=a0(P,m[L].length);M*=P;var R=S*_.length*m.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function D(){T&&(T.clearRect(0,0,b.width,b.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,b.width,b.height)));for(var M=0,L=0;L<y.length;++L)M+=y[L];if(M<=0)return;for(var I=-S,P=0,R=0,E=0;I<w.height;){if(P%2===0){for(var N=R/2%m.length,O=0,B=0,F=0;O<w.width*2;){for(var W=0,L=0;L<g[E].length;++L)W+=g[E][L];if(W<=0)break;if(B%2===0){var X=(1-o.symbolSize)*.5,j=O+g[E][B]*X,nt=I+y[P]*X,Mt=g[E][B]*o.symbolSize,Lt=y[P]*o.symbolSize,pt=F/2%m[N].length;rt(j,nt,Mt,Lt,m[N][pt])}O+=g[E][B],++F,++B,B===g[E].length&&(B=0)}++E,E===g.length&&(E=0)}I+=y[P],++R,++P,P===y.length&&(P=0)}function rt(mt,vt,q,st,Gt){var xt=i?1:t,Zt=te(Gt,mt*xt,vt*xt,q*xt,st*xt,o.color,o.symbolKeepAspect);if(i){var Wt=a.painter.renderOneToVNode(Zt);Wt&&x.children.push(Wt)}else PA(T,Zt)}}}}function RA(r){if(!r||r.length===0)return[["rect"]];if(U(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!U(r[t])){e=!1;break}if(e)return RA([r]);for(var a=[],t=0;t<r.length;++t)U(r[t])?a.push([r[t]]):a.push(r[t]);return a}function EA(r){if(!r||r.length===0)return[[0,0]];if(Ct(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,a=0;a<r.length;++a)if(!Ct(r[a])){t=!1;break}if(t)return EA([r]);for(var i=[],a=0;a<r.length;++a)if(Ct(r[a])){var e=Math.ceil(r[a]);i.push([e,e])}else{var e=G(r[a],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function GN(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(Ct(r)){var e=Math.ceil(r);return[e,e]}var t=G(r,function(a){return Math.ceil(a)});return r.length%2?t.concat(t):t}function FN(r){return G(r,function(e){return kA(e)})}function kA(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}function HN(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var a=t.getData();a.hasItemVisual()&&a.each(function(o){var s=a.getItemVisual(o,"decal");if(s){var l=a.ensureUniqueItemVisual(o,"style");l.decal=yo(s,e)}});var i=a.getVisual("decal");if(i){var n=a.getVisual("style");n.decal=yo(i,e)}}})}var $N=new cr,Sr=$N,OA={};function WN(r,e){OA[r]=e}function UN(r){return OA[r]}var YN=typeof window!="undefined",ZN=1,XN=800,qN=900,KN=1e3,JN=2e3,QN=5e3,NA=1e3,jN=1100,sy=2e3,BA=3e3,tB=4e3,$h=4500,eB=4600,rB=5e3,aB=6e3,VA=7e3,iB={PROCESSOR:{FILTER:KN,SERIES_FILTER:XN,STATISTIC:QN},VISUAL:{LAYOUT:NA,PROGRESSIVE_LAYOUT:jN,GLOBAL:sy,CHART:BA,POST_CHART_LAYOUT:eB,COMPONENT:tB,BRUSH:rB,CHART_ITEM:$h,ARIA:aB,DECAL:VA}},_e="__flagInMainProcess",Ee="__pendingUpdate",ec="__needsUpdateStatus",$_=/^[a-zA-Z0-9_]+$/,rc="__connectUpdateStatus",W_=0,nB=1,oB=2;function zA(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){this.id;return}return FA(this,r,e)}}function GA(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return FA(this,r,e)}}function FA(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),cr.prototype[e].apply(r,t)}var HA=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(cr),$A=HA.prototype;$A.on=GA("on");$A.off=GA("off");var Fn,ac,Su,Pa,ic,nc,oc,as,is,U_,Y_,sc,Z_,xu,X_,WA,qe,q_,UA=function(r){k(e,r);function e(t,a,i){var n=r.call(this,new hN)||this;n._chartsViews=[],n._chartsMap={},n._componentsViews=[],n._componentsMap={},n._pendingActions=[],i=i||{},U(a)&&(a=YA[a]),n._dom=t;var o="canvas",s="auto",l=!1,u=n._zr=jm(t,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:ut(i.useDirtyRect,l),useCoarsePointer:ut(i.useCoarsePointer,s),pointerSize:i.pointerSize});n._ssr=i.ssr,n._throttledZrFlush=iy(Y(u.flush,u),17),a=et(a),a&&JC(a,!0),n._theme=a,n._locale=mk(i.locale||TC),n._coordSysMgr=new El;var f=n._api=X_(n);function h(c,v){return c.__prio-v.__prio}return ef(Wf,h),ef(Sp,h),n._scheduler=new CA(n,f,Sp,Wf),n._messageCenter=new HA,n._initEvents(),n.resize=Y(n.resize,n),u.animation.on("frame",n._onframe,n),U_(u,n),Y_(u,n),Sf(n),n}return e.prototype._onframe=function(){if(!this._disposed){q_(this);var t=this._scheduler;if(this[Ee]){var a=this[Ee].silent;this[_e]=!0;try{Fn(this),Pa.update.call(this,null,this[Ee].updateParams)}catch(l){throw this[_e]=!1,this[Ee]=null,l}this._zr.flush(),this[_e]=!1,this[Ee]=null,as.call(this,a),is.call(this,a)}else if(t.unfinished){var i=ZN,n=this._model,o=this._api;t.unfinished=!1;do{var s=+new Date;t.performSeriesTasks(n),t.performDataProcessorTasks(n),nc(this,n),t.performVisualTasks(n),xu(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>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,a,i){if(!this[_e]){if(this._disposed){this.id;return}var n,o,s;if(tt(a)&&(i=a.lazyUpdate,n=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[_e]=!0,!this._model||a){var l=new Kk(this._api),u=this._theme,f=this._model=new XC;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},xp);var h={seriesTransition:s,optionChanged:!0};if(i)this[Ee]={silent:n,updateParams:h},this[_e]=!1,this.getZr().wakeUp();else{try{Fn(this),Pa.update.call(this,null,h)}catch(c){throw this[Ee]=null,this[_e]=!1,c}this._ssr||this._zr.flush(),this[Ee]=null,this[_e]=!1,as.call(this,n),is.call(this,n)}}},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||YN&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var a=this._zr.painter;return a.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(!!It.svgSupported){var t=this._zr,a=t.storage.getDisplayList();return A(a,function(i){i.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var a=t.excludeComponents,i=this._model,n=[],o=this;A(a,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(n.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return A(n,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var a=t.type==="svg",i=this.group,n=Math.min,o=Math.max,s=1/0;if(K_[i]){var l=s,u=s,f=-s,h=-s,c=[],v=t&&t.pixelRatio||this.getDevicePixelRatio();A(Ws,function(_,S){if(_.group===i){var b=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(et(t)),x=_.getDom().getBoundingClientRect();l=n(x.left,l),u=n(x.top,u),f=o(x.right,f),h=o(x.bottom,h),c.push({dom:b,left:x.left,top:x.top})}}),l*=v,u*=v,f*=v,h*=v;var d=f-l,p=h-u,g=pa.createCanvas(),y=jm(g,{renderer:a?"svg":"canvas"});if(y.resize({width:d,height:p}),a){var m="";return A(c,function(_){var S=_.left-l,b=_.top-u;m+='<g transform="translate('+S+","+b+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new bt({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),A(c,function(_){var S=new ge({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,a){return ic(this,"convertToPixel",t,a)},e.prototype.convertFromPixel=function(t,a){return ic(this,"convertFromPixel",t,a)},e.prototype.containPixel=function(t,a){if(this._disposed){this.id;return}var i=this._model,n,o=Bs(i,t);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)n=n||!!f.containPoint(a);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(n=n||h.containPoint(a,u))}},this)},this),!!n},e.prototype.getVisual=function(t,a){var i=this._model,n=Bs(i,t,{defaultMainType:"series"}),o=n.seriesModel,s=o.getData(),l=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?s.indexOfRawIndex(n.dataIndex):null;return l!=null?ny(s,l,a):kl(s,a)},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=this;A(sB,function(a){var i=function(n){var o=t.getModel(),s=n.target,l,u=a==="globalout";if(u?l={}:s&&en(s,function(d){var p=it(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType)||{},!0}else if(p.eventData)return l=V({},p.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var c=f&&h!=null&&o.getComponent(f,h),v=c&&t[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];l.event=n,l.type=a,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:c,view:v},t.trigger(a,l)}};i.zrEventfulCallAtLast=!0,t._zr.on(a,i,t)}),A($s,function(a,i){t._messageCenter.on(i,function(n){this.trigger(i,n)},t)}),A(["selectchanged"],function(a){t._messageCenter.on(a,function(i){this.trigger(a,i)},t)}),dN(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&xT(this.getDom(),uy,"");var a=this,i=a._api,n=a._model;A(a._componentsViews,function(o){o.dispose(n,i)}),A(a._chartsViews,function(o){o.dispose(n,i)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete Ws[a.id]},e.prototype.resize=function(t){if(!this[_e]){if(this._disposed){this.id;return}this._zr.resize(t);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var i=a.resetOption("media"),n=t&&t.silent;this[Ee]&&(n==null&&(n=this[Ee].silent),i=!0,this[Ee]=null),this[_e]=!0;try{i&&Fn(this),Pa.update.call(this,{type:"resize",animation:V({duration:0},t&&t.animation)})}catch(o){throw this[_e]=!1,o}this[_e]=!1,as.call(this,n),is.call(this,n)}}},e.prototype.showLoading=function(t,a){if(this._disposed){this.id;return}if(tt(t)&&(a=t,t=""),t=t||"default",this.hideLoading(),!!bp[t]){var i=bp[t](this._api,a),n=this._zr;this._loadingFX=i,n.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var a=V({},t);return a.type=$s[t.type],a},e.prototype.dispatchAction=function(t,a){if(this._disposed){this.id;return}if(tt(a)||(a={silent:!!a}),!!$f[t.type]&&!!this._model){if(this[_e]){this._pendingActions.push(t);return}var i=a.silent;oc.call(this,t,i);var n=a.flush;n?this._zr.flush():n!==!1&&It.browser.weChat&&this._throttledZrFlush(),as.call(this,i),is.call(this,i)}},e.prototype.updateLabelLayout=function(){Sr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var a=t.seriesIndex,i=this.getModel(),n=i.getSeriesByIndex(a);n.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Fn=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),ac(h,!0),ac(h,!1),c.plan()},ac=function(h,c){for(var v=h._model,d=h._scheduler,p=c?h._componentsViews:h._chartsViews,g=c?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_<p.length;_++)p[_].__alive=!1;c?v.eachComponent(function(x,w){x!=="series"&&S(w)}):v.eachSeries(S);function S(x){var w=x.__requireNewView;x.__requireNewView=!1;var T="_ec_"+x.id+"_"+x.type,C=!w&&g[T];if(!C){var D=Hr(x.type),M=c?Yt.getClass(D.main,D.sub):zt.getClass(D.sub);C=new M,C.init(v,m),g[T]=C,p.push(C),y.add(C.group)}x.__viewId=C.__id=T,C.__alive=!0,C.__model=x,C.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!c&&d.prepareView(C,x,v,m)}for(var _=0;_<p.length;){var b=p[_];b.__alive?_++:(!c&&b.renderTask.dispose(),y.remove(b.group),b.dispose(v,m),p.splice(_,1),g[b.__id]===b&&delete g[b.__id],b.__id=b.group.__ecComponentInfo=null)}},Su=function(h,c,v,d,p){var g=h._model;if(g.setUpdatePayload(v),!d){A([].concat(h._componentsViews).concat(h._chartsViews),b);return}var y={};y[d+"Id"]=v[d+"Id"],y[d+"Index"]=v[d+"Index"],y[d+"Name"]=v[d+"Name"];var m={mainType:d,query:y};p&&(m.subType=p);var _=v.excludeSeriesId,S;_!=null&&(S=K(),A(kt(_),function(x){var w=re(x,null);w!=null&&S.set(w,!0)})),g&&g.eachComponent(m,function(x){var w=S&&S.get(x.id)!==null;if(!w)if(P0(v))if(x instanceof Ht)v.type===ln&&!v.notBlur&&!x.get(["emphasis","disabled"])&&fE(x,v,h._api);else{var T=Og(x.mainType,x.componentIndex,v.name,h._api),C=T.focusSelf,D=T.dispatchers;v.type===ln&&C&&!v.notBlur&&rp(x.mainType,x.componentIndex,h._api),D&&A(D,function(M){v.type===ln?ma(M):_a(M)})}else ip(v)&&x instanceof Ht&&(cE(x,v,h._api),L0(x),qe(h))},h),g&&g.eachComponent(m,function(x){var w=S&&S.get(x.id)!==null;w||b(h[d==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},h);function b(x){x&&x.__alive&&x[c]&&x[c](x.__model,g,h._api,v)}},Pa={prepareAndUpdate:function(h){Fn(this),Pa.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,c){var v=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,y=this._scheduler;if(!!v){v.setUpdatePayload(h),y.restoreData(v,h),y.performSeriesTasks(v),g.create(v,d),y.performDataProcessorTasks(v,h),nc(this,v),g.update(v,d),t(v),y.performVisualTasks(v,h),sc(this,v,d,h,c);var m=v.get("backgroundColor")||"transparent",_=v.get("darkMode");p.setBackgroundColor(m),_!=null&&_!=="auto"&&p.setDarkMode(_),Sr.trigger("afterupdate",v,d)}},updateTransform:function(h){var c=this,v=this._model,d=this._api;if(!!v){v.setUpdatePayload(h);var p=[];v.eachComponent(function(y,m){if(y!=="series"){var _=c.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,v,d,h);S&&S.update&&p.push(_)}else p.push(_)}});var g=K();v.eachSeries(function(y){var m=c._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,v,d,h);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),t(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0,dirtyMap:g}),xu(this,v,d,h,{},g),Sr.trigger("afterupdate",v,d)}},updateView:function(h){var c=this._model;!c||(c.setUpdatePayload(h),zt.markUpdateMethod(h,"updateView"),t(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0}),sc(this,c,this._api,h,{}),Sr.trigger("afterupdate",c,this._api))},updateVisual:function(h){var c=this,v=this._model;!v||(v.setUpdatePayload(h),v.eachSeries(function(d){d.getData().clearAllVisual()}),zt.markUpdateMethod(h,"updateVisual"),t(v),this._scheduler.performVisualTasks(v,h,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,p){if(d!=="series"){var g=c.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,v,c._api,h)}}),v.eachSeries(function(d){var p=c._chartsMap[d.__viewId];p.updateVisual(d,v,c._api,h)}),Sr.trigger("afterupdate",v,this._api))},updateLayout:function(h){Pa.update.call(this,h)}},ic=function(h,c,v,d){if(h._disposed){h.id;return}for(var p=h._model,g=h._coordSysMgr.getCoordinateSystems(),y,m=Bs(p,v),_=0;_<g.length;_++){var S=g[_];if(S[c]&&(y=S[c](p,m,d))!=null)return y}},nc=function(h,c){var v=h._chartsMap,d=h._scheduler;c.eachSeries(function(p){d.updateStreamModes(p,v[p.__viewId])})},oc=function(h,c){var v=this,d=this.getModel(),p=h.type,g=h.escapeConnect,y=$f[p],m=y.actionInfo,_=(m.update||"update").split(":"),S=_.pop(),b=_[0]!=null&&Hr(_[0]);this[_e]=!0;var x=[h],w=!1;h.batch&&(w=!0,x=G(h.batch,function(P){return P=Q(V({},P),h),P.batch=null,P}));var T=[],C,D=ip(h),M=P0(h);if(M&&ZT(this._api),A(x,function(P){if(C=y.action(P,v._model,v._api),C=C||V({},P),C.type=m.event||C.type,T.push(C),M){var R=Mg(h),E=R.queryOptionMap,N=R.mainTypeSpecified,O=N?E.keys()[0]:"series";Su(v,S,P,O),qe(v)}else D?(Su(v,S,P,"series"),qe(v)):b&&Su(v,S,P,b.main,b.sub)}),S!=="none"&&!M&&!D&&!b)try{this[Ee]?(Fn(this),Pa.update.call(this,h),this[Ee]=null):Pa[S].call(this,h)}catch(P){throw this[_e]=!1,P}if(w?C={type:m.event||p,escapeConnect:g,batch:T}:C=T[0],this[_e]=!1,!c){var L=this._messageCenter;if(L.trigger(C.type,C),D){var I={type:"selectchanged",escapeConnect:g,selected:dE(d),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};L.trigger(I.type,I)}}},as=function(h){for(var c=this._pendingActions;c.length;){var v=c.shift();oc.call(this,v,h)}},is=function(h){!h&&this.trigger("updated")},U_=function(h,c){h.on("rendered",function(v){c.trigger("rendered",v),h.animation.isFinished()&&!c[Ee]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},Y_=function(h,c){h.on("mouseover",function(v){var d=v.target,p=en(d,rl);p&&(hE(p,v,c._api),qe(c))}).on("mouseout",function(v){var d=v.target,p=en(d,rl);p&&(vE(p,v,c._api),qe(c))}).on("click",function(v){var d=v.target,p=en(d,function(m){return it(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=it(p);c._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function t(h){h.clearColorPalette(),h.eachSeries(function(c){c.clearColorPalette()})}function a(h){var c=[],v=[],d=!1;if(h.eachComponent(function(m,_){var S=_.get("zlevel")||0,b=_.get("z")||0,x=_.getZLevelKey();d=d||!!x,(m==="series"?v:c).push({zlevel:S,z:b,idx:_.componentIndex,type:m,key:x})}),d){var p=c.concat(v),g,y;ef(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),A(p,function(m){var _=h.getComponent(m.type,m.idx),S=m.zlevel,b=m.key;g!=null&&(S=Math.max(g,S)),b?(S===g&&b!==y&&S++,y=b):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}}sc=function(h,c,v,d,p){a(c),Z_(h,c,v,d,p),A(h._chartsViews,function(g){g.__alive=!1}),xu(h,c,v,d,p),A(h._chartsViews,function(g){g.__alive||g.remove(c,v)})},Z_=function(h,c,v,d,p,g){A(g||h._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,c,v,d),s(m,y),f(m,y)})},xu=function(h,c,v,d,p,g){var y=h._scheduler;p=V(p||{},{updatedSeries:c.getSeries()}),Sr.trigger("series:beforeupdate",c,v,p);var m=!1;c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;y.updatePayload(b,d),u(_,S),g&&g.get(_.uid)&&b.dirty(),b.perform(y.getPerformArgs(b))&&(m=!0),S.group.silent=!!_.get("silent"),o(_,S),L0(_)}),y.unfinished=m||y.unfinished,Sr.trigger("series:layoutlabels",c,v,p),Sr.trigger("series:transition",c,v,p),c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];s(_,S),f(_,S)}),n(h,c),Sr.trigger("series:afterupdate",c,v,p)},qe=function(h){h[ec]=!0,h.getZr().wakeUp()},q_=function(h){!h[ec]||(h.getZr().storage.traverse(function(c){uo(c)||i(c)}),h[ec]=!1)};function i(h){for(var c=[],v=h.currentStates,d=0;d<v.length;d++){var p=v[d];p==="emphasis"||p==="blur"||p==="select"||c.push(p)}h.selected&&h.states.select&&c.push("select"),h.hoverState===Dh&&h.states.emphasis?c.push("emphasis"):h.hoverState===Ml&&h.states.blur&&c.push("blur"),h.useStates(c)}function n(h,c){var v=h._zr,d=v.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>c.get("hoverLayerThreshold")&&!It.node&&!It.worker&&c.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=h._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(h,c){if(!h.preventAutoZ){var v=h.get("z")||0,d=h.get("zlevel")||0;c.eachRendered(function(p){return l(p,v,d,-1/0),!0})}}function l(h,c,v,d){var p=h.getTextContent(),g=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_<m.length;_++)d=Math.max(l(m[_],c,v,d),d);else h.z=c,h.zlevel=v,d=Math.max(h.z2,d);if(p&&(p.z=c,p.zlevel=v,isFinite(d)&&(p.z2=d+2)),g){var S=h.textGuideLineConfig;g.z=c,g.zlevel=v,isFinite(d)&&(g.z2=d+(S&&S.showAbove?1:-1))}return d}function u(h,c){c.eachRendered(function(v){if(!uo(v)){var d=v.getTextContent(),p=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(h,c){var v=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),p=v.get("duration"),g=p>0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(y){if(y.states&&y.states.emphasis){if(uo(y))return;if(y instanceof yt&&_E(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&i(y)}})}X_=function(h){return new(function(c){k(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return h._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){ma(d,p),qe(h)},v.prototype.leaveEmphasis=function(d,p){_a(d,p),qe(h)},v.prototype.enterBlur=function(d){$T(d),qe(h)},v.prototype.leaveBlur=function(d){kg(d),qe(h)},v.prototype.enterSelect=function(d){WT(d),qe(h)},v.prototype.leaveSelect=function(d){UT(d),qe(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},v}(qC))(h)},WA=function(h){function c(v,d){for(var p=0;p<v.length;p++){var g=v[p];g[rc]=d}}A($s,function(v,d){h._messageCenter.on(d,function(p){if(K_[h.group]&&h[rc]!==W_){if(p&&p.escapeConnect)return;var g=h.makeActionFromEvent(p),y=[];A(Ws,function(m){m!==h&&m.group===h.group&&y.push(m)}),c(y,W_),A(y,function(m){m[rc]!==nB&&m.dispatchAction(g)}),c(y,oB)}})})}}(),e}(cr),ly=UA.prototype;ly.on=zA("on");ly.off=zA("off");ly.one=function(r,e,t){var a=this;function i(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];e&&e.apply&&e.apply(this,n),a.off(r,i)}this.on.call(this,r,i,t)};var sB=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var $f={},$s={},Sp=[],xp=[],Wf=[],YA={},bp={},Ws={},K_={},lB=+new Date-0,uy="_echarts_instance_";function Wh(r,e,t){var a=!(t&&t.ssr);if(a){var i=uB(r);if(i)return i}var n=new UA(r,e,t);return n.id="ec_"+lB++,Ws[n.id]=n,a&&xT(r,uy,n.id),WA(n),Sr.trigger("afterinit",n),n}function uB(r){return Ws[nR(r,uy)]}function ZA(r,e){YA[r]=e}function XA(r){ct(xp,r)<0&&xp.push(r)}function qA(r,e){hy(Sp,r,e,JN)}function fB(r){fy("afterinit",r)}function hB(r){fy("afterupdate",r)}function fy(r,e){Sr.on(r,e)}function jr(r,e,t){J(e)&&(t=e,e="");var a=tt(r)?r.type:[r,r={event:e}][0];r.event=(r.event||a).toLowerCase(),e=r.event,!$s[e]&&(Le($_.test(a)&&$_.test(e)),$f[a]||($f[a]={action:t,actionInfo:r}),$s[e]=a)}function vB(r,e){El.register(r,e)}function cB(r,e){hy(Wf,r,e,NA,"layout")}function Dn(r,e){hy(Wf,r,e,BA,"visual")}var J_=[];function hy(r,e,t,a,i){if((J(e)||tt(e))&&(t=e,e=a),!(ct(J_,t)>=0)){J_.push(t);var n=CA.wrapStageHandler(t,i);n.__prio=e,n.__raw=t,r.push(n)}}function KA(r,e){bp[r]=e}function Nl(r,e,t){var a=UN("registerMap");a&&a(r,e,t)}var dB=TO;Dn(sy,qO);Dn($h,KO);Dn($h,JO);Dn(sy,vN);Dn($h,cN);Dn(VA,HN);XA(JC);qA(qN,iO);KA("default",QO);jr({type:ln,event:ln,update:ln},jt);jr({type:lf,event:lf,update:lf},jt);jr({type:Vs,event:Vs,update:Vs},jt);jr({type:uf,event:uf,update:uf},jt);jr({type:zs,event:zs,update:zs},jt);ZA("light",uN);ZA("dark",fN);var Q_=[],pB={registerPreprocessor:XA,registerProcessor:qA,registerPostInit:fB,registerPostUpdate:hB,registerUpdateLifecycle:fy,registerAction:jr,registerCoordinateSystem:vB,registerLayout:cB,registerVisual:Dn,registerTransform:dB,registerLoading:KA,registerMap:Nl,registerImpl:WN,PRIORITY:iB,ComponentModel:wt,ComponentView:Yt,SeriesModel:Ht,ChartView:zt,registerComponentModel:function(r){wt.registerClass(r)},registerComponentView:function(r){Yt.registerClass(r)},registerSeriesModel:function(r){Ht.registerClass(r)},registerChartView:function(r){zt.registerClass(r)},registerSubTypeDefaulter:function(r,e){wt.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){zP(r,e)}};function dt(r){if(z(r)){A(r,function(e){dt(e)});return}ct(Q_,r)>=0||(Q_.push(r),J(r)&&(r={install:r}),r.install(pB))}function ns(r){return r==null?0:r.length||1}function j_(r){return r}var gB=function(){function r(e,t,a,i,n,o){this._old=e,this._new=t,this._oldKeyGetter=a||j_,this._newKeyGetter=i||j_,this.context=n,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,a={},i=new Array(e.length),n=new Array(t.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(t,a,n,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],l=a[s],u=ns(l);if(u>1){var f=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(f,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(n,a)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,a={},i={},n=[],o=[];this._initIndexMap(e,a,n,"_oldKeyGetter"),this._initIndexMap(t,i,o,"_newKeyGetter");for(var s=0;s<n.length;s++){var l=n[s],u=a[l],f=i[l],h=ns(u),c=ns(f);if(h>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(h===1&&c===1)this._update&&this._update(f,u),i[l]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(h>1)for(var v=0;v<h;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},r.prototype._performRestAdd=function(e,t){for(var a=0;a<e.length;a++){var i=e[a],n=t[i],o=ns(n);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(n[s]);else o===1&&this._add&&this._add(n);t[i]=null}},r.prototype._initIndexMap=function(e,t,a,i){for(var n=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[i](e[o],o);if(n||(a[o]=s),!!t){var l=t[s],u=ns(l);u===0?(t[s]=o,n&&a.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r}(),Sa=gB,yB=function(){function r(e,t){this._encode=e,this._schema=t}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r}();function mB(r,e){var t={},a=t.encode={},i=K(),n=[],o=[],s={};A(r.dimensions,function(c){var v=r.getDimensionInfo(c),d=v.coordDim;if(d){var p=v.coordDimIndex;lc(a,d)[p]=c,v.isExtraCoord||(i.set(d,1),_B(v.type)&&(n[0]=c),lc(s,d)[p]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}GC.each(function(g,y){var m=lc(a,y),_=v.otherDims[y];_!=null&&_!==!1&&(m[_]=v.name)})});var l=[],u={};i.each(function(c,v){var d=a[v];u[v]=d[0],l=l.concat(d)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=G(l,function(c){return r.getDimensionInfo(c).storeDimIndex}),t.encodeFirstDimNotExtra=u;var f=a.label;f&&f.length&&(n=f.slice());var h=a.tooltip;return h&&h.length?o=h.slice():o.length||(o=n.slice()),a.defaultedLabel=n,a.defaultedTooltip=o,t.userOutput=new yB(s,e),t}function lc(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function Uf(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function _B(r){return!(r==="ordinal"||r==="time")}var SB=function(){function r(e){this.otherDims={},e!=null&&V(this,e)}return r}(),df=SB,xB=Dt(),bB={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},JA=function(){function r(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=tD(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return ut(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=jC(this.source),a=!eD(e),i="",n=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=t?h.name:null,u=h.type,f=h.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(l=t?c.name:null,u=c.type)}n.push({property:l,type:u,ordinalMeta:f}),t&&l!=null&&(!h||!h.isCalculationCoord)&&(i+=a?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=bB[u]||"f",f&&(i+=f.uid),i+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,i].join("$$");return{dimensions:n,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,a=0;t<this._fullDimCount;t++){var i=void 0,n=this.dimensions[a];if(n&&n.storeDimIndex===t)n.isCalculationCoord||(i=n.name),a++;else{var o=this.getSourceDimension(t);o&&(i=o.name)}e.push(i)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function QA(r){return r instanceof JA}function jA(r){for(var e=K(),t=0;t<(r||[]).length;t++){var a=r[t],i=tt(a)?a.name:a;i!=null&&e.get(i)==null&&e.set(i,t)}return e}function tD(r){var e=xB(r);return e.dimNameMap||(e.dimNameMap=jA(r.dimensionsDefine))}function eD(r){return r>30}var os=tt,Ra=G,wB=typeof Int32Array=="undefined"?Array:Int32Array,TB="e\0\0",t1=-1,CB=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],AB=["_approximateExtent"],e1,bu,ss,ls,uc,wu,fc,DB=function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var a,i=!1;QA(e)?(a=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,a=e),a=a||["x","y"];for(var n={},o=[],s={},l=!1,u={},f=0;f<a.length;f++){var h=a[f],c=U(h)?new df({name:h}):h instanceof df?h:new df(h),v=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=v,c.coordDimIndex=0);var d=c.otherDims=c.otherDims||{};o.push(v),n[v]=c,u[v]!=null&&(l=!0),c.createInvertedIndices&&(s[v]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),i&&(c.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=n,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=K();A(o,function(g){p.set(n[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var a=this._dimIdxToName.get(t);if(a!=null)return a;var i=this._schema.getSourceDimension(t);if(i)return i.name},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var a=this._getDimInfo(e);return a?a.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(Ct(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},r.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(a){return t.hasOwnProperty(a)?t[a]:void 0}:function(a){return t[a]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var a=this._dimSummary;if(t==null)return a.encodeFirstDimNotExtra[e];var i=a.encode[e];return i?i[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,a=t.encode[e];return(a||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,a){var i=this,n;if(e instanceof cp&&(n=e),!n){var o=this.dimensions,s=Jg(e)||xe(e)?new tA(e,o.length):e;n=new cp;var l=Ra(o,function(u){return{type:i._dimInfos[u].type,property:u}});n.initData(s,l,a)}this._store=n,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,n.count()),this._dimSummary=mB(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var a=this._store.appendValues(e,t.length),i=a.start,n=a.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=i;s<n;s++){var l=s-i;this._nameList[s]=t[l],o&&fc(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,a=0;a<t.length;a++){var i=this._dimInfos[t[a]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Ja&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var a=this._store,i=a.getProvider();this._updateOrdinalMeta();var n=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===dr;if(l&&!i.pure)for(var u=[],f=e;f<t;f++){var h=i.getItem(f,u);if(!this.hasItemOption&&YP(h)&&(this.hasItemOption=!0),h){var c=h.name;n[f]==null&&c!=null&&(n[f]=re(c,null));var v=h.id;o[f]==null&&v!=null&&(o[f]=re(v,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<t;f++)fc(this,f);e1(this)}},r.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){os(e)?V(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),a=this._nameList[t];return a==null&&this._nameDimIdx!=null&&(a=ss(this,this._nameDimIdx,t)),a==null&&(a=""),a},r.prototype._getCategory=function(e,t){var a=this._store.get(e,t),i=this._store.getOrdinalMeta(e);return i?i.categories[a]:a},r.prototype.getId=function(e){return bu(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var a=this._store,i=this._dimInfos[e];if(i)return a.get(i.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var a=this._store,i=this._dimInfos[e];if(i)return a.getByRawIndex(i.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var a=this,i=this._store;return z(e)?i.getValues(Ra(e,function(n){return a._getStoreDimIndex(n)}),t):i.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,a=0,i=t.length;a<i;a++)if(isNaN(this._store.get(t[a],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,a=this._store.count();t<a;t++)if(this.getName(t)===e)return t;return-1},r.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},r.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},r.prototype.rawIndexOf=function(e,t){var a=e&&this._invertedIndicesMap[e],i=a[t];return i==null||isNaN(i)?t1:i},r.prototype.indicesOfNearest=function(e,t,a){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,a)},r.prototype.each=function(e,t,a){J(e)&&(a=t,t=e,e=[]);var i=a||this,n=Ra(ls(e),this._getStoreDimIndex,this);this._store.each(n,i?Y(t,i):t)},r.prototype.filterSelf=function(e,t,a){J(e)&&(a=t,t=e,e=[]);var i=a||this,n=Ra(ls(e),this._getStoreDimIndex,this);return this._store=this._store.filter(n,i?Y(t,i):t),this},r.prototype.selectRange=function(e){var t=this,a={},i=St(e);return A(i,function(n){var o=t._getStoreDimIndex(n);a[o]=e[n]}),this._store=this._store.selectRange(a),this},r.prototype.mapArray=function(e,t,a){J(e)&&(a=t,t=e,e=[]),a=a||this;var i=[];return this.each(e,function(){i.push(t&&t.apply(this,arguments))},a),i},r.prototype.map=function(e,t,a,i){var n=a||i||this,o=Ra(ls(e),this._getStoreDimIndex,this),s=wu(this);return s._store=this._store.map(o,n?Y(t,n):t),s},r.prototype.modify=function(e,t,a,i){var n=a||i||this,o=Ra(ls(e),this._getStoreDimIndex,this);this._store.modify(o,n?Y(t,n):t)},r.prototype.downSample=function(e,t,a,i){var n=wu(this);return n._store=this._store.downSample(this._getStoreDimIndex(e),t,a,i),n},r.prototype.lttbDownSample=function(e,t){var a=wu(this);return a._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),a},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,a=this.getRawDataItem(e);return new Vt(a,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new Sa(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(a){return bu(e,a)},function(a){return bu(t,a)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},os(e)?V(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var a=this._itemVisuals[e],i=a&&a[t];return i==null?this.getVisual(t):i},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var a=this._itemVisuals,i=a[e];i||(i=a[e]={});var n=i[t];return n==null&&(n=this.getVisual(t),z(n)?n=n.slice():os(n)&&(n=V({},n)),i[t]=n),n},r.prototype.setItemVisual=function(e,t,a){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,os(t)?V(i,t):i[t]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){os(e)?V(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,a){this._itemLayouts[e]=a?V(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var a=this.hostModel&&this.hostModel.seriesIndex;tp(a,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){A(this._graphicEls,function(a,i){a&&e&&e.call(t,a,i)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:Ra(this.dimensions,this._getDimInfo,this),this.hostModel)),uc(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var a=this[e];!J(a)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=a.apply(this,arguments);return t.apply(this,[i].concat(mg(arguments)))})},r.internalField=function(){e1=function(e){var t=e._invertedIndicesMap;A(t,function(a,i){var n=e._dimInfos[i],o=n.ordinalMeta,s=e._store;if(o){a=t[i]=new wB(o.categories.length);for(var l=0;l<a.length;l++)a[l]=t1;for(var l=0;l<s.count();l++)a[s.get(n.storeDimIndex,l)]=l}})},ss=function(e,t,a){return re(e._getCategory(t,a),null)},bu=function(e,t){var a=e._idList[t];return a==null&&e._idDimIdx!=null&&(a=ss(e,e._idDimIdx,t)),a==null&&(a=TB+t),a},ls=function(e){return z(e)||(e=e!=null?[e]:[]),e},wu=function(e){var t=new r(e._schema?e._schema:Ra(e.dimensions,e._getDimInfo,e),e.hostModel);return uc(t,e),t},uc=function(e,t){A(CB.concat(t.__wrappedMethods||[]),function(a){t.hasOwnProperty(a)&&(e[a]=t[a])}),e.__wrappedMethods=t.__wrappedMethods,A(AB,function(a){e[a]=et(t[a])}),e._calculationInfo=V({},t._calculationInfo)},fc=function(e,t){var a=e._nameList,i=e._idList,n=e._nameDimIdx,o=e._idDimIdx,s=a[t],l=i[t];if(s==null&&n!=null&&(a[t]=s=ss(e,n,t)),l==null&&o!=null&&(i[t]=l=ss(e,o,t)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[t]=l}}}(),r}(),Me=DB;function Bl(r,e){Jg(r)||(r=Qg(r)),e=e||{};var t=e.coordDimensions||[],a=e.dimensionsDefine||r.dimensionsDefine||[],i=K(),n=[],o=LB(r,t,a,e.dimensionsCount),s=e.canOmitUnusedDimensions&&eD(o),l=a===r.dimensionsDefine,u=l?tD(r):jA(a),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var h=K(f),c=new lA(o),v=0;v<c.length;v++)c[v]=-1;function d(C){var D=c[C];if(D<0){var M=a[C],L=tt(M)?M:{name:M},I=new df,P=L.name;P!=null&&u.get(P)!=null&&(I.name=I.displayName=P),L.type!=null&&(I.type=L.type),L.displayName!=null&&(I.displayName=L.displayName);var R=n.length;return c[C]=R,I.storeDimIndex=C,n.push(I),I}return n[D]}if(!s)for(var v=0;v<o;v++)d(v);h.each(function(C,D){var M=kt(C).slice();if(M.length===1&&!U(M[0])&&M[0]<0){h.set(D,!1);return}var L=h.set(D,[]);A(M,function(I,P){var R=U(I)?u.get(I):I;R!=null&&R<o&&(L[P]=R,g(d(R),D,P))})});var p=0;A(t,function(C){var D,M,L,I;if(U(C))D=C,I={};else{I=C,D=I.name;var P=I.ordinalMeta;I.ordinalMeta=null,I=V({},I),I.ordinalMeta=P,M=I.dimsDef,L=I.otherDims,I.name=I.coordDim=I.coordDimIndex=I.dimsDef=I.otherDims=null}var R=h.get(D);if(R!==!1){if(R=kt(R),!R.length)for(var E=0;E<(M&&M.length||1);E++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&R.push(p++)}A(R,function(N,O){var B=d(N);if(l&&I.type!=null&&(B.type=I.type),g(Q(B,I),D,O),B.name==null&&M){var F=M[O];!tt(F)&&(F={name:F}),B.name=B.displayName=F.name,B.defaultTooltip=F.defaultTooltip}L&&Q(B.otherDims,L)})}});function g(C,D,M){GC.get(D)!=null?C.otherDims[D]=M:(C.coordDim=D,C.coordDimIndex=M,i.set(D,!0))}var y=e.generateCoord,m=e.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function b(C){C.name==null&&(C.name=C.coordDim)}if(s)A(n,function(C){b(C)}),n.sort(function(C,D){return C.storeDimIndex-D.storeDimIndex});else for(var x=0;x<o;x++){var w=d(x),T=w.coordDim;T==null&&(w.coordDim=IB(S,i,_),w.coordDimIndex=0,(!y||m<=0)&&(w.isExtraCoord=!0),m--),b(w),w.type==null&&(WC(r,x)===ve.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return MB(n),new JA({source:r,dimensions:n,fullDimensionCount:o,dimensionOmitted:s})}function MB(r){for(var e=K(),t=0;t<r.length;t++){var a=r[t],i=a.name,n=e.get(i)||0;n>0&&(a.name=i+(n-1)),n++,e.set(i,n)}}function LB(r,e,t,a){var i=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,a||0);return A(e,function(n){var o;tt(n)&&(o=n.dimsDef)&&(i=Math.max(i,o.length))}),i}function IB(r,e,t){var a=e.data;if(t||a.hasOwnProperty(r)){for(var i=0;a.hasOwnProperty(r+i);)i++;r+=i}return e.set(r,!0),r}var PB=function(){function r(e){this.coordSysDims=[],this.axisMap=K(),this.categoryAxisMap=K(),this.coordSysName=e}return r}();function RB(r){var e=r.get("coordinateSystem"),t=new PB(e),a=EB[e];if(a)return a(r,t,t.axisMap,t.categoryAxisMap),t}var EB={cartesian2d:function(r,e,t,a){var i=r.getReferringComponents("xAxis",Qt).models[0],n=r.getReferringComponents("yAxis",Qt).models[0];e.coordSysDims=["x","y"],t.set("x",i),t.set("y",n),Hn(i)&&(a.set("x",i),e.firstCategoryDimIndex=0),Hn(n)&&(a.set("y",n),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,a){var i=r.getReferringComponents("singleAxis",Qt).models[0];e.coordSysDims=["single"],t.set("single",i),Hn(i)&&(a.set("single",i),e.firstCategoryDimIndex=0)},polar:function(r,e,t,a){var i=r.getReferringComponents("polar",Qt).models[0],n=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",n),t.set("angle",o),Hn(n)&&(a.set("radius",n),e.firstCategoryDimIndex=0),Hn(o)&&(a.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,a){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,a){var i=r.ecModel,n=i.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=n.dimensions.slice();A(n.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];t.set(f,u),Hn(u)&&(a.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Hn(r){return r.get("type")==="category"}function kB(r,e,t){t=t||{};var a=t.byIndex,i=t.stackedCoordDimension,n,o,s;OB(e)?n=e:(o=e.schema,n=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,h,c;if(A(n,function(m,_){U(m)&&(n[_]=m={name:m}),l&&!m.isExtraCoord&&(!a&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(f=m))}),f&&!a&&!u&&(a=!0),f){h="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,p=0;A(n,function(m){m.coordDim===v&&p++});var g={name:h,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},y={name:c,coordDim:c,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(c,d),y.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(n.push(g),n.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:h}}function OB(r){return!QA(r.schema)}function ii(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function rD(r,e){return ii(r,e)?r.getCalculationInfo("stackResultDimension"):e}function NB(r,e){var t=r.get("coordinateSystem"),a=El.get(t),i;return e&&e.coordSysDims&&(i=G(e.coordSysDims,function(n){var o={name:n},s=e.axisMap.get(n);if(s){var l=s.get("type");o.type=Uf(l)}return o})),i||(i=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),i}function BB(r,e,t){var a,i;return t&&A(r,function(n,o){var s=n.coordDim,l=t.categoryAxisMap.get(s);l&&(a==null&&(a=o),n.ordinalMeta=l.getOrdinalMeta(),e&&(n.createInvertedIndices=!0)),n.otherDims.itemName!=null&&(i=!0)}),!i&&a!=null&&(r[a].otherDims.itemName=0),a}function Ta(r,e,t){t=t||{};var a=e.getSourceManager(),i,n=!1;r?(n=!0,i=Qg(r)):(i=a.getSource(),n=i.sourceFormat===dr);var o=RB(e),s=NB(e,o),l=t.useEncodeDefaulter,u=J(l)?l:l?ot($C,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!n},h=Bl(i,f),c=BB(h.dimensions,t.createInvertedIndices,o),v=n?null:a.getSharedDataStore(h),d=kB(e,{schema:h,store:v}),p=new Me(h,e);p.setCalculationInfo(d);var g=c!=null&&VB(i)?function(y,m,_,S){return S===c?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(n?i:v,null,g),p}function VB(r){if(r.sourceFormat===dr){var e=zB(r.data||[]);return!z(Io(e))}}function zB(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}var aD=function(){function r(e){this._setting=e||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(e){return this._setting[e]},r.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var a=this._extent;isNaN(e)||(a[0]=e),isNaN(t)||(a[1]=t)},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();wh(aD);var Ca=aD,GB=0,FB=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++GB}return r.createByAxisModel=function(e){var t=e.option,a=t.data,i=a&&G(a,HB);return new r({categories:i,needCollect:!i,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,a=this._needCollect;if(!U(e)&&!a)return e;if(a&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var i=this._getOrCreateMap();return t=i.get(e),t==null&&(a?(t=this.categories.length,this.categories[t]=e,i.set(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=K(this.categories))},r}();function HB(r){return tt(r)&&r.value!=null?r.value:r+""}var wp=FB;function Tp(r){return r.type==="interval"||r.type==="log"}function $B(r,e,t,a){var i={},n=r[1]-r[0],o=i.interval=cT(n/e,!0);t!=null&&o<t&&(o=i.interval=t),a!=null&&o>a&&(o=i.interval=a);var s=i.intervalPrecision=iD(o),l=i.niceTickExtent=[qt(Math.ceil(r[0]/o)*o,s),qt(Math.floor(r[1]/o)*o,s)];return WB(l,r),i}function hc(r){var e=Math.pow(10,Ag(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,qt(t*e)}function iD(r){return Fr(r)+2}function r1(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function WB(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),r1(r,0,e),r1(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function Uh(r,e){return r>=e[0]&&r<=e[1]}function Yh(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function Zh(r,e){return r*(e[1]-e[0])+e[0]}var nD=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;a.type="ordinal";var i=a.getSetting("ordinalMeta");return i||(i=new wp({})),z(i)&&(i=new wp({categories:G(i,function(n){return tt(n)?n.value:n})})),a._ordinalMeta=i,a._extent=a.getSetting("extent")||[0,i.categories.length-1],a}return e.prototype.parse=function(t){return t==null?NaN:U(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Uh(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Yh(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Zh(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],a=this._extent,i=a[0];i<=a[1];)t.push({value:i}),i++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=t.ordinalNumbers,i=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o<l;++o){var u=a[o];i[o]=u,n[u]=o}for(var f=0;o<s;++o){for(;n[f]!=null;)f++;i.push(f),n[f]=o}},e.prototype._getTickNumber=function(t){var a=this._ticksByOrdinalNumber;return a&&t>=0&&t<a.length?a[t]:t},e.prototype.getRawOrdinalNumber=function(t){var a=this._ordinalNumbersByTick;return a&&t>=0&&t<a.length?a[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var a=this.getRawOrdinalNumber(t.value),i=this._ordinalMeta.categories[a];return i==null?"":i+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,a){this.unionExtent(t.getApproximateExtent(a))},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}(Ca);Ca.registerClass(nD);var vy=nD,Oi=qt,oD=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Uh(t,this._extent)},e.prototype.normalize=function(t){return Yh(t,this._extent)},e.prototype.scale=function(t){return Zh(t,this._extent)},e.prototype.setExtent=function(t,a){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(a)||(i[1]=parseFloat(a))},e.prototype.unionExtent=function(t){var a=this._extent;t[0]<a[0]&&(a[0]=t[0]),t[1]>a[1]&&(a[1]=t[1]),this.setExtent(a[0],a[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=iD(t)},e.prototype.getTicks=function(t){var a=this._interval,i=this._extent,n=this._niceExtent,o=this._intervalPrecision,s=[];if(!a)return s;var l=1e4;i[0]<n[0]&&(t?s.push({value:Oi(n[0]-a,o)}):s.push({value:i[0]}));for(var u=n[0];u<=n[1]&&(s.push({value:u}),u=Oi(u+a,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:n[1];return i[1]>f&&(t?s.push({value:Oi(f+a,o)}):s.push({value:i[1]})),s},e.prototype.getMinorTicks=function(t){for(var a=this.getTicks(!0),i=[],n=this.getExtent(),o=1;o<a.length;o++){for(var s=a[o],l=a[o-1],u=0,f=[],h=s.value-l.value,c=h/t;u<t-1;){var v=Oi(l.value+(u+1)*c);v>n[0]&&v<n[1]&&f.push(v),u++}i.push(f)}return i},e.prototype.getLabel=function(t,a){if(t==null)return"";var i=a&&a.precision;i==null?i=Fr(t.value)||0:i==="auto"&&(i=this._intervalPrecision);var n=Oi(t.value,i,!0);return kC(n)},e.prototype.calcNiceTicks=function(t,a,i){t=t||5;var n=this._extent,o=n[1]-n[0];if(!!isFinite(o)){o<0&&(o=-o,n.reverse());var s=$B(n,t,a,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var a=this._extent;if(a[0]===a[1])if(a[0]!==0){var i=Math.abs(a[0]);t.fixMax||(a[1]+=i/2),a[0]-=i/2}else a[1]=1;var n=a[1]-a[0];isFinite(n)||(a[0]=0,a[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval;t.fixMin||(a[0]=Oi(Math.floor(a[0]/o)*o)),t.fixMax||(a[1]=Oi(Math.ceil(a[1]/o)*o))},e.prototype.setNiceExtent=function(t,a){this._niceExtent=[t,a]},e.type="interval",e}(Ca);Ca.registerClass(oD);var ni=oD,sD=typeof Float32Array!="undefined",UB=sD?Float32Array:Array;function $r(r){return z(r)?sD?new Float32Array(r):r:new UB(r)}var Cp="__ec_stack_";function cy(r){return r.get("stack")||Cp+r.seriesIndex}function dy(r){return r.dim+r.index}function YB(r){var e=[],t=r.axis,a="axis0";if(t.type==="category"){for(var i=t.getBandWidth(),n=0;n<r.count;n++)e.push(Q({bandWidth:i,axisKey:a,stackId:Cp+n},r));for(var o=fD(e),s=[],n=0;n<r.count;n++){var l=o[a][Cp+n];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function lD(r,e){var t=[];return e.eachSeriesByType(r,function(a){cD(a)&&t.push(a)}),t}function ZB(r){var e={};A(r,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=l.getData(),c=f.dim+"_"+f.index,v=h.getDimensionIndex(h.mapDimension(f.dim)),d=h.getStore(),p=0,g=d.count();p<g;++p){var y=d.get(v,p);e[c]?e[c].push(y):e[c]=[y]}});var t={};for(var a in e)if(e.hasOwnProperty(a)){var i=e[a];if(i){i.sort(function(l,u){return l-u});for(var n=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(n=n===null?s:Math.min(n,s))}t[a]=n}}return t}function uD(r){var e=ZB(r),t=[];return A(r,function(a){var i=a.coordinateSystem,n=i.getBaseAxis(),o=n.getExtent(),s;if(n.type==="category")s=n.getBandWidth();else if(n.type==="value"||n.type==="time"){var l=n.dim+"_"+n.index,u=e[l],f=Math.abs(o[1]-o[0]),h=n.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=u?f/c*u:f}else{var v=a.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=H(a.get("barWidth"),s),p=H(a.get("barMaxWidth"),s),g=H(a.get("barMinWidth")||(dD(a)?.5:1),s),y=a.get("barGap"),m=a.get("barCategoryGap");t.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:dy(n),stackId:cy(a)})}),fD(t)}function fD(r){var e={};A(r,function(a,i){var n=a.axisKey,o=a.bandWidth,s=e[n]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[n]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=a.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=a.barMaxWidth;h&&(l[u].maxWidth=h);var c=a.barMinWidth;c&&(l[u].minWidth=c);var v=a.barGap;v!=null&&(s.gap=v);var d=a.barCategoryGap;d!=null&&(s.categoryGap=d)});var t={};return A(e,function(a,i){t[i]={};var n=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=St(n).length;s=Math.max(35-l*4,15)+"%"}var u=H(s,o),f=H(a.gap,1),h=a.remainedWidth,c=a.autoWidthCount,v=(h-u)/(c+(c-1)*f);v=Math.max(v,0),A(n,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,h-=S+f*S,c--}else{var S=v;m&&m<S&&(S=Math.min(m,h)),_&&_>S&&(S=_),S!==v&&(y.width=S,h-=S+f*S,c--)}}),v=(h-u)/(c+(c-1)*f),v=Math.max(v,0);var d=0,p;A(n,function(y,m){y.width||(y.width=v),p=y,d+=y.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;A(n,function(y,m){t[i][m]=t[i][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),t}function XB(r,e,t){if(r&&e){var a=r[dy(e)];return a!=null&&t!=null?a[cy(t)]:a}}function hD(r,e){var t=lD(r,e),a=uD(t);A(t,function(i){var n=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=cy(i),u=a[dy(s)][l],f=u.offset,h=u.width;n.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function vD(r){return{seriesType:r,plan:Go(),reset:function(e){if(!!cD(e)){var t=e.getData(),a=e.coordinateSystem,i=a.getBaseAxis(),n=a.getOtherAxis(i),o=t.getDimensionIndex(t.mapDimension(n.dim)),s=t.getDimensionIndex(t.mapDimension(i.dim)),l=e.get("showBackground",!0),u=t.mapDimension(n.dim),f=t.getCalculationInfo("stackResultDimension"),h=ii(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),c=n.isHorizontal(),v=qB(i,n),d=dD(e),p=e.get("barMinHeight")||0,g=f&&t.getDimensionIndex(f),y=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&$r(b*3),w=d&&l&&$r(b*3),T=d&&$r(b),C=a.master.getRect(),D=c?C.width:C.height,M,L=S.getStore(),I=0;(M=_.next())!=null;){var P=L.get(h?g:o,M),R=L.get(s,M),E=v,N=void 0;h&&(N=+P-L.get(o,M));var O=void 0,B=void 0,F=void 0,W=void 0;if(c){var X=a.dataToPoint([P,R]);if(h){var j=a.dataToPoint([N,R]);E=j[0]}O=E,B=X[1]+m,F=X[0]-E,W=y,Math.abs(F)<p&&(F=(F<0?-1:1)*p)}else{var X=a.dataToPoint([R,P]);if(h){var j=a.dataToPoint([R,N]);E=j[1]}O=X[0]+m,B=E,F=y,W=X[1]-E,Math.abs(W)<p&&(W=(W<=0?-1:1)*p)}d?(x[I]=O,x[I+1]=B,x[I+2]=c?F:W,w&&(w[I]=c?C.x:O,w[I+1]=c?B:C.y,w[I+2]=D),T[M]=M):S.setItemLayout(M,{x:O,y:B,width:F,height:W}),I+=3}d&&S.setLayout({largePoints:x,largeDataIndices:T,largeBackgroundPoints:w,valueAxisHorizontal:c})}}}}}}function cD(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function dD(r){return r.pipelineContext&&r.pipelineContext.large}function qB(r,e){return e.toGlobalCoord(e.dataToCoord(e.type==="log"?1:0))}var KB=function(r,e,t,a){for(;t<a;){var i=t+a>>>1;r[i][1]<e?t=i+1:a=i}return t},pD=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="time",a}return e.prototype.getLabel=function(t){var a=this.getSetting("useUTC");return kh(t.value,Y0[xk(fo(this._minLevelUnit))]||Y0.second,a,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,a,i){var n=this.getSetting("useUTC"),o=this.getSetting("locale");return bk(t,a,i,o,n)},e.prototype.getTicks=function(){var t=this._interval,a=this._extent,i=[];if(!t)return i;i.push({value:a[0],level:0});var n=this.getSetting("useUTC"),o=aV(this._minLevelUnit,this._approxInterval,n,a);return i=i.concat(o),i.push({value:a[1],level:0}),i},e.prototype.calcNiceExtent=function(t){var a=this._extent;if(a[0]===a[1]&&(a[0]-=lr,a[1]+=lr),a[1]===-1/0&&a[0]===1/0){var i=new Date;a[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),a[0]=a[1]-lr}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,a,i){t=t||10;var n=this._extent,o=n[1]-n[0];this._approxInterval=o/t,a!=null&&this._approxInterval<a&&(this._approxInterval=a),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=Tu.length,l=Math.min(KB(Tu,this._approxInterval,0,s),s-1);this._interval=Tu[l][1],this._minLevelUnit=Tu[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return Ct(t)?t:+qr(t)},e.prototype.contain=function(t){return Uh(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Yh(this.parse(t),this._extent)},e.prototype.scale=function(t){return Zh(t,this._extent)},e.type="time",e}(ni),Tu=[["second",Wg],["minute",Ug],["hour",Fs],["quarter-day",Fs*6],["half-day",Fs*12],["day",lr*1.2],["half-week",lr*3.5],["week",lr*7],["month",lr*31],["quarter",lr*95],["half-year",U0/2],["year",U0]];function JB(r,e,t,a){var i=qr(e),n=qr(t),o=function(d){return Z0(i,d,a)===Z0(n,d,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},h=function(){return f()&&o("minute")},c=function(){return h()&&o("second")},v=function(){return c()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return c();case"millisecond":return v()}}function QB(r,e){return r/=lr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function jB(r){var e=30*lr;return r/=e,r>6?6:r>3?3:r>2?2:1}function tV(r){return r/=Fs,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function a1(r,e){return r/=e?Ug:Wg,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function eV(r){return cT(r,!0)}function rV(r,e,t){var a=new Date(r);switch(fo(e)){case"year":case"month":a[MC(t)](0);case"day":a[LC(t)](1);case"hour":a[IC(t)](0);case"minute":a[PC(t)](0);case"second":a[RC(t)](0),a[EC(t)](0)}return a.getTime()}function aV(r,e,t,a){var i=1e4,n=AC,o=0;function s(D,M,L,I,P,R,E){for(var N=new Date(M),O=M,B=N[I]();O<L&&O<=a[1];)E.push({value:O}),B+=D,N[P](B),O=N.getTime();E.push({value:O,notAdd:!0})}function l(D,M,L){var I=[],P=!M.length;if(!JB(fo(D),a[0],a[1],t)){P&&(M=[{value:rV(new Date(a[0]),D,t)},{value:a[1]}]);for(var R=0;R<M.length-1;R++){var E=M[R].value,N=M[R+1].value;if(E!==N){var O=void 0,B=void 0,F=void 0,W=!1;switch(D){case"year":O=Math.max(1,Math.round(e/lr/365)),B=Yg(t),F=wk(t);break;case"half-year":case"quarter":case"month":O=jB(e),B=ho(t),F=MC(t);break;case"week":case"half-week":case"day":O=QB(e),B=Oh(t),F=LC(t),W=!0;break;case"half-day":case"quarter-day":case"hour":O=tV(e),B=nl(t),F=IC(t);break;case"minute":O=a1(e,!0),B=Nh(t),F=PC(t);break;case"second":O=a1(e,!1),B=Bh(t),F=RC(t);break;case"millisecond":O=eV(e),B=Vh(t),F=EC(t);break}s(O,E,N,B,F,W,I),D==="year"&&L.length>1&&R===0&&L.unshift({value:L[0].value-O})}}for(var R=0;R<I.length;R++)L.push(I[R]);return I}}for(var u=[],f=[],h=0,c=0,v=0;v<n.length&&o++<i;++v){var d=fo(n[v]);if(!!Sk(n[v])){l(n[v],u[u.length-1]||[],f);var p=n[v+1]?fo(n[v+1]):null;if(d!==p){if(f.length){c=h,f.sort(function(D,M){return D.value-M.value});for(var g=[],y=0;y<f.length;++y){var m=f[y].value;(y===0||f[y-1].value!==m)&&(g.push(f[y]),m>=a[0]&&m<=a[1]&&h++)}var _=(a[1]-a[0])/e;if(h>_*1.5&&c>_/1.5||(u.push(g),h>_||r===n[v]))break}f=[]}}}for(var S=Et(G(u,function(D){return Et(D,function(M){return M.value>=a[0]&&M.value<=a[1]&&!M.notAdd})}),function(D){return D.length>0}),b=[],x=S.length-1,v=0;v<S.length;++v)for(var w=S[v],T=0;T<w.length;++T)b.push({value:w[T].value,level:x-v});b.sort(function(D,M){return D.value-M.value});for(var C=[],v=0;v<b.length;++v)(v===0||b[v].value!==b[v-1].value)&&C.push(b[v]);return C}Ca.registerClass(pD);var gD=pD,i1=Ca.prototype,Us=ni.prototype,iV=qt,nV=Math.floor,oV=Math.ceil,Cu=Math.pow,yr=Math.log,py=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new ni,t._interval=0,t}return e.prototype.getTicks=function(t){var a=this._originalScale,i=this._extent,n=a.getExtent(),o=Us.getTicks.call(this,t);return G(o,function(s){var l=s.value,u=qt(Cu(this.base,l));return u=l===i[0]&&this._fixMin?Au(u,n[0]):u,u=l===i[1]&&this._fixMax?Au(u,n[1]):u,{value:u}},this)},e.prototype.setExtent=function(t,a){var i=yr(this.base);t=yr(Math.max(0,t))/i,a=yr(Math.max(0,a))/i,Us.setExtent.call(this,t,a)},e.prototype.getExtent=function(){var t=this.base,a=i1.getExtent.call(this);a[0]=Cu(t,a[0]),a[1]=Cu(t,a[1]);var i=this._originalScale,n=i.getExtent();return this._fixMin&&(a[0]=Au(a[0],n[0])),this._fixMax&&(a[1]=Au(a[1],n[1])),a},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var a=this.base;t[0]=yr(t[0])/yr(a),t[1]=yr(t[1])/yr(a),i1.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,a){this.unionExtent(t.getApproximateExtent(a))},e.prototype.calcNiceTicks=function(t){t=t||10;var a=this._extent,i=a[1]-a[0];if(!(i===1/0||i<=0)){var n=UP(i),o=t/i*n;for(o<=.5&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0;)n*=10;var s=[qt(oV(a[0]/n)*n),qt(nV(a[1]/n)*n)];this._interval=n,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){Us.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 t=yr(t)/yr(this.base),Uh(t,this._extent)},e.prototype.normalize=function(t){return t=yr(t)/yr(this.base),Yh(t,this._extent)},e.prototype.scale=function(t){return t=Zh(t,this._extent),Cu(this.base,t)},e.type="log",e}(Ca),yD=py.prototype;yD.getMinorTicks=Us.getMinorTicks;yD.getLabel=Us.getLabel;function Au(r,e){return iV(r,Fr(e))}Ca.registerClass(py);var sV=py,lV=function(){function r(e,t,a){this._prepareParams(e,t,a)}return r.prototype._prepareParams=function(e,t,a){a[1]<a[0]&&(a=[NaN,NaN]),this._dataMin=a[0],this._dataMax=a[1];var i=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&t.getNeedCrossZero&&t.getNeedCrossZero();var n=this._modelMinRaw=t.get("min",!0);J(n)?this._modelMinNum=Du(e,n({min:a[0],max:a[1]})):n!=="dataMin"&&(this._modelMinNum=Du(e,n));var o=this._modelMaxRaw=t.get("max",!0);if(J(o)?this._modelMaxNum=Du(e,o({min:a[0],max:a[1]})):o!=="dataMax"&&(this._modelMaxNum=Du(e,o)),i)this._axisDataLen=t.getCategories().length;else{var s=t.get("boundaryGap"),l=z(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Ar(l[0],1),Ar(l[1],1)]}},r.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,a=this._dataMax,i=this._axisDataLen,n=this._boundaryGapInner,o=e?null:a-t||Math.abs(t),s=this._modelMinRaw==="dataMin"?t:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?a:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=e?i?0:NaN:t-n[0]*o),l==null&&(l=e?i?i-1:NaN:a+n[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=Ks(s)||Ks(l)||e&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(e,t){this[fV[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var a=uV[e];this[a]=t},r.prototype.freeze=function(){this.frozen=!0},r}(),uV={min:"_determinedMin",max:"_determinedMax"},fV={min:"_dataMin",max:"_dataMax"};function mD(r,e,t){var a=r.rawExtentInfo;return a||(a=new lV(r,e,t),r.rawExtentInfo=a,a)}function Du(r,e){return e==null?null:Ks(e)?NaN:r.parse(e)}function _D(r,e){var t=r.type,a=mD(r,e,r.getExtent()).calculate();r.setBlank(a.isBlank);var i=a.min,n=a.max,o=e.ecModel;if(o&&t==="time"){var s=lD("bar",o),l=!1;if(A(s,function(h){l=l||h.getBaseAxis()===e.axis}),l){var u=uD(s),f=hV(i,n,e,u);i=f.min,n=f.max}}return{extent:[i,n],fixMin:a.minFixed,fixMax:a.maxFixed}}function hV(r,e,t,a){var i=t.axis.getExtent(),n=i[1]-i[0],o=XB(a,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;A(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;A(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-r,h=1-(s+l)/n,c=f/h-f;return e+=c*(l/u),r-=c*(s/u),{min:r,max:e}}function mo(r,e){var t=e,a=_D(r,t),i=a.extent,n=t.get("splitNumber");r instanceof sV&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l=o==="interval"||o==="time";r.setExtent(i[0],i[1]),r.calcNiceExtent({splitNumber:n,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Xh(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new vy({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new gD({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Ca.getClass(e)||ni)}}function vV(r){var e=r.scale.getExtent(),t=e[0],a=e[1];return!(t>0&&a>0||t<0&&a<0)}function Vl(r){var e=r.getLabelModel().get("formatter"),t=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(a){return function(i,n){return r.scale.getFormattedLabel(i,n,a)}}(e):U(e)?function(a){return function(i){var n=r.scale.getLabel(i),o=a.replace("{value}",n!=null?n:"");return o}}(e):J(e)?function(a){return function(i,n){return t!=null&&(n=i.value-t),a(gy(r,i),n,i.level!=null?{level:i.level}:null)}}(e):function(a){return r.scale.getLabel(a)}}function gy(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function cV(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var a,i,n=t.getExtent();t instanceof vy?i=t.count():(a=t.getTicks(),i=a.length);var o=r.getLabelModel(),s=Vl(r),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;f<i;f+=u){var h=a?a[f]:{value:n[0]+f},c=s(h,f),v=o.getTextRect(c),d=dV(v,o.get("rotate")||0);l?l.union(d):l=d}return l}}function dV(r,e){var t=e*Math.PI/180,a=r.width,i=r.height,n=a*Math.abs(Math.cos(t))+Math.abs(i*Math.sin(t)),o=a*Math.abs(Math.sin(t))+Math.abs(i*Math.cos(t)),s=new ht(r.x,r.y,n,o);return s}function yy(r){var e=r.get("interval");return e==null?"auto":e}function SD(r){return r.type==="category"&&yy(r.getLabelModel())===0}function Yf(r,e){var t={};return A(r.mapDimensionsAll(e),function(a){t[rD(r,a)]=!0}),St(t)}function pV(r,e,t){e&&A(Yf(e,t),function(a){var i=e.getApproximateExtent(a);i[0]<r[0]&&(r[0]=i[0]),i[1]>r[1]&&(r[1]=i[1])})}var zl=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r}(),gV=1e-8;function n1(r,e){return Math.abs(r-e)<gV}function Zi(r,e,t){var a=0,i=r[0];if(!i)return!1;for(var n=1;n<r.length;n++){var o=r[n];a+=na(i[0],i[1],o[0],o[1],e,t),i=o}var s=r[0];return(!n1(i[0],s[0])||!n1(i[1],s[1]))&&(a+=na(i[0],i[1],s[0],s[1],e,t)),a!==0}var yV=[];function vc(r,e){for(var t=0;t<r.length;t++)ce(r[t],r[t],e)}function o1(r,e,t,a){for(var i=0;i<r.length;i++){var n=r[i];a&&(n=a.project(n)),n&&isFinite(n[0])&&isFinite(n[1])&&(Fa(e,e,n),Ha(t,t,n))}}function mV(r){for(var e=0,t=0,a=0,i=r.length,n=r[i-1][0],o=r[i-1][1],s=0;s<i;s++){var l=r[s][0],u=r[s][1],f=n*u-l*o;e+=f,t+=(n+l)*f,a+=(o+u)*f,n=l,o=u}return e?[t/e/3,a/e/3,e]:[r[0][0]||0,r[0][1]||0]}var xD=function(){function r(e){this.name=e}return r.prototype.setCenter=function(e){this._center=e},r.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},r}(),s1=function(){function r(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return r}(),l1=function(){function r(e){this.type="linestring",this.points=e}return r}(),bD=function(r){k(e,r);function e(t,a,i){var n=r.call(this,t)||this;return n.type="geoJSON",n.geometries=a,n._center=i&&[i[0],i[1]],n}return e.prototype.calcCenter=function(){for(var t=this.geometries,a,i=0,n=0;n<t.length;n++){var o=t[n],s=o.exterior,l=s&&s.length;l>i&&(a=o,i=l)}if(a)return mV(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var a=this._rect;if(a&&!t)return a;var i=[1/0,1/0],n=[-1/0,-1/0],o=this.geometries;return A(o,function(s){s.type==="polygon"?o1(s.exterior,i,n,t):A(s.points,function(l){o1(l,i,n,t)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(n[0])&&isFinite(n[1])||(i[0]=i[1]=n[0]=n[1]=0),a=new ht(i[0],i[1],n[0]-i[0],n[1]-i[1]),t||(this._rect=a),a},e.prototype.contain=function(t){var a=this.getBoundingRect(),i=this.geometries;if(!a.contain(t[0],t[1]))return!1;t:for(var n=0,o=i.length;n<o;n++){var s=i[n];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Zi(l,t[0],t[1])){for(var f=0;f<(u?u.length:0);f++)if(Zi(u[f],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,a,i,n){var o=this.getBoundingRect(),s=o.width/o.height;i?n||(n=i/s):i=s*n;for(var l=new ht(t,a,i,n),u=o.calculateTransform(l),f=this.geometries,h=0;h<f.length;h++){var c=f[h];c.type==="polygon"?(vc(c.exterior,u),A(c.interiors,function(v){vc(v,u)})):A(c.points,function(v){vc(v,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(t){t==null&&(t=this.name);var a=new e(t,this.geometries,this._center);return a._rect=this._rect,a.transformTo=null,a},e}(xD),_V=function(r){k(e,r);function e(t,a){var i=r.call(this,t)||this;return i.type="geoSVG",i._elOnlyForCalculate=a,i}return e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,a=t.getBoundingRect(),i=[a.x+a.width/2,a.y+a.height/2],n=Sh(yV),o=t;o&&!o.isGeoSVGGraphicRoot;)ha(n,o.getLocalTransform(),n),o=o.parent;return Lo(n,n),ce(i,i,n),i},e}(xD);function SV(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;t==null&&(t=1024);var a=e.features;return A(a,function(i){var n=i.geometry,o=n.encodeOffsets,s=n.coordinates;if(!!o)switch(n.type){case"LineString":n.coordinates=wD(s,o,t);break;case"Polygon":cc(s,o,t);break;case"MultiLineString":cc(s,o,t);break;case"MultiPolygon":A(s,function(l,u){return cc(l,o[u],t)})}}),e.UTF8Encoding=!1,e}function cc(r,e,t){for(var a=0;a<r.length;a++)r[a]=wD(r[a],e[a],t)}function wD(r,e,t){for(var a=[],i=e[0],n=e[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=n,i=s,n=l,a.push([s/t,l/t])}return a}function xV(r,e){return r=SV(r),G(Et(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var a=t.properties,i=t.geometry,n=[];switch(i.type){case"Polygon":var o=i.coordinates;n.push(new s1(o[0],o.slice(1)));break;case"MultiPolygon":A(i.coordinates,function(l){l[0]&&n.push(new s1(l[0],l.slice(1)))});break;case"LineString":n.push(new l1([i.coordinates]));break;case"MultiLineString":n.push(new l1(i.coordinates))}var s=new bD(a[e||"name"],n,a.cp);return s.properties=a,s})}var hl=Dt();function bV(r){return r.type==="category"?TV(r):AV(r)}function wV(r,e){return r.type==="category"?CV(r,e):{ticks:G(r.scale.getTicks(),function(t){return t.value})}}function TV(r){var e=r.getLabelModel(),t=TD(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function TD(r,e){var t=CD(r,"labels"),a=yy(e),i=AD(t,a);if(i)return i;var n,o;return J(a)?n=LD(r,a):(o=a==="auto"?DV(r):a,n=MD(r,o)),DD(t,a,{labels:n,labelCategoryInterval:o})}function CV(r,e){var t=CD(r,"ticks"),a=yy(e),i=AD(t,a);if(i)return i;var n,o;if((!e.get("show")||r.scale.isBlank())&&(n=[]),J(a))n=LD(r,a,!0);else if(a==="auto"){var s=TD(r,r.getLabelModel());o=s.labelCategoryInterval,n=G(s.labels,function(l){return l.tickValue})}else o=a,n=MD(r,o,!0);return DD(t,a,{ticks:n,tickCategoryInterval:o})}function AV(r){var e=r.scale.getTicks(),t=Vl(r);return{labels:G(e,function(a,i){return{level:a.level,formattedLabel:t(a,i),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function CD(r,e){return hl(r)[e]||(hl(r)[e]=[])}function AD(r,e){for(var t=0;t<r.length;t++)if(r[t].key===e)return r[t].value}function DD(r,e,t){return r.push({key:e,value:t}),t}function DV(r){var e=hl(r).autoInterval;return e!=null?e:hl(r).autoInterval=r.calculateCategoryInterval()}function MV(r){var e=LV(r),t=Vl(r),a=(e.axisRotate-e.labelRotate)/180*Math.PI,i=r.scale,n=i.getExtent(),o=i.count();if(n[1]-n[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=n[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(a)),h=Math.abs(u*Math.sin(a)),c=0,v=0;l<=n[1];l+=s){var d=0,p=0,g=Al(t({value:l}),e.font,"center","top");d=g.width*1.3,p=g.height*1.3,c=Math.max(c,d,7),v=Math.max(v,p,7)}var y=c/f,m=v/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=hl(r.model),b=r.getExtent(),x=S.lastAutoInterval,w=S.lastTickCount;return x!=null&&w!=null&&Math.abs(x-_)<=1&&Math.abs(w-o)<=1&&x>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function LV(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function MD(r,e,t){var a=Vl(r),i=r.scale,n=i.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=n[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=SD(r),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&u!==n[0]&&p(n[0]);for(var d=u;d<=n[1];d+=l)p(d);v&&d-l!==n[1]&&p(n[1]);function p(g){var y={value:g};s.push(t?g:{formattedLabel:a(y),rawLabel:i.getLabel(y),tickValue:g})}return s}function LD(r,e,t){var a=r.scale,i=Vl(r),n=[];return A(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;e(o.value,s)&&n.push(t?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),n}var u1=[0,1],IV=function(){function r(e,t,a){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=a||[0,0]}return r.prototype.contain=function(e){var t=this._extent,a=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=a&&e<=i},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return hT(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var a=this._extent;a[0]=e,a[1]=t},r.prototype.dataToCoord=function(e,t){var a=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&i.type==="ordinal"&&(a=a.slice(),f1(a,i.count())),Rt(e,u1,a,t)},r.prototype.coordToData=function(e,t){var a=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(a=a.slice(),f1(a,i.count()));var n=Rt(e,a,u1,t);return this.scale.scale(n)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),a=wV(this,t),i=a.ticks,n=G(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return PV(this,n,o,e.clamp),n},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var a=this.scale.getMinorTicks(t),i=G(a,function(n){return G(n,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(){return bV(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),a=t[1]-t[0]+(this.onBand?1:0);a===0&&(a=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/a},r.prototype.calculateCategoryInterval=function(){return MV(this)},r}();function f1(r,e){var t=r[1]-r[0],a=e,i=t/a/2;r[0]+=i,r[1]-=i}function PV(r,e,t,a){var i=e.length;if(!r.onBand||t||!i)return;var n=r.getExtent(),o,s;if(i===1)e[0].coord=n[0],o=e[1]={coord:n[0]};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;A(e,function(v){v.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*s},e.push(o)}var h=n[0]>n[1];c(e[0].coord,n[0])&&(a?e[0].coord=n[0]:e.shift()),a&&c(n[0],e[0].coord)&&e.unshift({coord:n[0]}),c(n[1],o.coord)&&(a?o.coord=n[1]:e.pop()),a&&c(o.coord,n[1])&&e.push({coord:n[1]});function c(v,d){return v=qt(v),d=qt(d),h?v>d:v<d}}var Lr=IV,us=Math.PI*2,Ni=Kr.CMD,RV=["top","right","bottom","left"];function EV(r,e,t,a,i){var n=t.width,o=t.height;switch(r){case"top":a.set(t.x+n/2,t.y-e),i.set(0,-1);break;case"bottom":a.set(t.x+n/2,t.y+o+e),i.set(0,1);break;case"left":a.set(t.x-e,t.y+o/2),i.set(-1,0);break;case"right":a.set(t.x+n+e,t.y+o/2),i.set(1,0);break}}function kV(r,e,t,a,i,n,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*t+r,h=s*t+e;if(Math.abs(a-i)%us<1e-4)return l[0]=f,l[1]=h,u-t;if(n){var c=a;a=Ya(i),i=Ya(c)}else a=Ya(a),i=Ya(i);a>i&&(i+=us);var v=Math.atan2(s,o);if(v<0&&(v+=us),v>=a&&v<=i||v+us>=a&&v+us<=i)return l[0]=f,l[1]=h,u-t;var d=t*Math.cos(a)+r,p=t*Math.sin(a)+e,g=t*Math.cos(i)+r,y=t*Math.sin(i)+e,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function Zf(r,e,t,a,i,n,o,s){var l=i-r,u=n-e,f=t-r,h=a-e,c=Math.sqrt(f*f+h*h);f/=c,h/=c;var v=l*f+u*h,d=v/c;s&&(d=Math.min(Math.max(d,0),1)),d*=c;var p=o[0]=r+d*f,g=o[1]=e+d*h;return Math.sqrt((p-i)*(p-i)+(g-n)*(g-n))}function ID(r,e,t,a,i,n,o){t<0&&(r=r+t,t=-t),a<0&&(e=e+a,a=-a);var s=r+t,l=e+a,u=o[0]=Math.min(Math.max(i,r),s),f=o[1]=Math.min(Math.max(n,e),l);return Math.sqrt((u-i)*(u-i)+(f-n)*(f-n))}var xr=[];function OV(r,e,t){var a=ID(e.x,e.y,e.width,e.height,r.x,r.y,xr);return t.set(xr[0],xr[1]),a}function NV(r,e,t){for(var a=0,i=0,n=0,o=0,s,l,u=1/0,f=e.data,h=r.x,c=r.y,v=0;v<f.length;){var d=f[v++];v===1&&(a=f[v],i=f[v+1],n=a,o=i);var p=u;switch(d){case Ni.M:n=f[v++],o=f[v++],a=n,i=o;break;case Ni.L:p=Zf(a,i,f[v],f[v+1],h,c,xr,!0),a=f[v++],i=f[v++];break;case Ni.C:p=Yw(a,i,f[v++],f[v++],f[v++],f[v++],f[v],f[v+1],h,c,xr),a=f[v++],i=f[v++];break;case Ni.Q:p=Xw(a,i,f[v++],f[v++],f[v],f[v+1],h,c,xr),a=f[v++],i=f[v++];break;case Ni.A:var g=f[v++],y=f[v++],m=f[v++],_=f[v++],S=f[v++],b=f[v++];v+=1;var x=!!(1-f[v++]);s=Math.cos(S)*m+g,l=Math.sin(S)*_+y,v<=1&&(n=s,o=l);var w=(h-g)*_/m+g;p=kV(g,y,_,S,S+b,x,w,c,xr),a=Math.cos(S+b)*m+g,i=Math.sin(S+b)*_+y;break;case Ni.R:n=a=f[v++],o=i=f[v++];var T=f[v++],C=f[v++];p=ID(n,o,T,C,h,c,xr);break;case Ni.Z:p=Zf(a,i,n,o,h,c,xr,!0),a=n,i=o;break}p<u&&(u=p,t.set(xr[0],xr[1]))}return u}var wr=new lt,Nt=new lt,Kt=new lt,Wr=new lt,Gr=new lt;function h1(r,e){if(!!r){var t=r.getTextGuideLine(),a=r.getTextContent();if(!!(a&&t)){var i=r.textGuideLineConfig||{},n=[[0,0],[0,0],[0,0]],o=i.candidates||RV,s=a.getBoundingRect().clone();s.applyTransform(a.getComputedTransform());var l=1/0,u=i.anchor,f=r.getComputedTransform(),h=f&&Lo([],f),c=e.get("length2")||0;u&&Kt.copy(u);for(var v=0;v<o.length;v++){var d=o[v];EV(d,0,s,wr,Wr),lt.scaleAndAdd(Nt,wr,Wr,c),Nt.transform(h);var p=r.getBoundingRect(),g=u?u.distance(Nt):r instanceof yt?NV(Nt,r.path,Kt):OV(Nt,p,Kt);g<l&&(l=g,Nt.transform(f),Kt.transform(f),Kt.toArray(n[0]),Nt.toArray(n[1]),wr.toArray(n[2]))}PD(n,e.get("minTurnAngle")),t.setShape({points:n})}}}var Xf=[],De=new lt;function PD(r,e){if(e<=180&&e>0){e=e/180*Math.PI,wr.fromArray(r[0]),Nt.fromArray(r[1]),Kt.fromArray(r[2]),lt.sub(Wr,wr,Nt),lt.sub(Gr,Kt,Nt);var t=Wr.len(),a=Gr.len();if(!(t<.001||a<.001)){Wr.scale(1/t),Gr.scale(1/a);var i=Wr.dot(Gr),n=Math.cos(e);if(n<i){var o=Zf(Nt.x,Nt.y,Kt.x,Kt.y,wr.x,wr.y,Xf,!1);De.fromArray(Xf),De.scaleAndAdd(Gr,o/Math.tan(Math.PI-e));var s=Kt.x!==Nt.x?(De.x-Nt.x)/(Kt.x-Nt.x):(De.y-Nt.y)/(Kt.y-Nt.y);if(isNaN(s))return;s<0?lt.copy(De,Nt):s>1&&lt.copy(De,Kt),De.toArray(r[1])}}}}function BV(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,wr.fromArray(r[0]),Nt.fromArray(r[1]),Kt.fromArray(r[2]),lt.sub(Wr,Nt,wr),lt.sub(Gr,Kt,Nt);var a=Wr.len(),i=Gr.len();if(!(a<.001||i<.001)){Wr.scale(1/a),Gr.scale(1/i);var n=Wr.dot(e),o=Math.cos(t);if(n<o){var s=Zf(Nt.x,Nt.y,Kt.x,Kt.y,wr.x,wr.y,Xf,!1);De.fromArray(Xf);var l=Math.PI/2,u=Math.acos(Gr.dot(e)),f=l+u-t;if(f>=l)lt.copy(De,Kt);else{De.scaleAndAdd(Gr,s/Math.tan(Math.PI/2-f));var h=Kt.x!==Nt.x?(De.x-Nt.x)/(Kt.x-Nt.x):(De.y-Nt.y)/(Kt.y-Nt.y);if(isNaN(h))return;h<0?lt.copy(De,Nt):h>1&&lt.copy(De,Kt)}De.toArray(r[1])}}}}function v1(r,e,t,a){var i=t==="normal",n=i?r:r.ensureState(t);n.ignore=e;var o=a.get("smooth");o&&o===!0&&(o=.3),n.shape=n.shape||{},o>0&&(n.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();i?r.useStyle(s):n.style=s}function VV(r,e){var t=e.smooth,a=e.points;if(!!a)if(r.moveTo(a[0][0],a[0][1]),t>0&&a.length>=3){var i=Ga(a[0],a[1]),n=Ga(a[1],a[2]);if(!i||!n){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(i,n)*t,s=tf([],a[1],a[0],o/i),l=tf([],a[1],a[2],o/n),u=tf([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var f=1;f<a.length;f++)r.lineTo(a[f][0],a[f][1])}function my(r,e,t){var a=r.getTextGuideLine(),i=r.getTextContent();if(!i){a&&r.removeTextGuideLine();return}for(var n=e.normal,o=n.get("show"),s=i.ignore,l=0;l<el.length;l++){var u=el[l],f=e[u],h=u==="normal";if(f){var c=f.get("show"),v=h?s:ut(i.states[u]&&i.states[u].ignore,s);if(v||!ut(c,o)){var d=h?a:a&&a.states[u];d&&(d.ignore=!0);continue}a||(a=new Ge,r.setTextGuideLine(a),!h&&(s||!o)&&v1(a,!0,"normal",e.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),v1(a,!1,u,f)}}if(a){Q(a.style,t),a.style.fill=null;var p=n.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,a.buildPath=VV}}function _y(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},a=0;a<Ie.length;a++){var i=Ie[a];t[i]=r.getModel([i,e])}return t}function RD(r){for(var e=[],t=0;t<r.length;t++){var a=r[t];if(!a.defaultAttr.ignore){var i=a.label,n=i.getComputedTransform(),o=i.getBoundingRect(),s=!n||n[1]<1e-5&&n[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(n),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new Rf(o,n):null;e.push({label:i,labelLine:a.labelLine,rect:u,localRect:o,obb:f,priority:a.priority,defaultAttr:a.defaultAttr,layoutOption:a.computedLayoutOption,axisAligned:s,transform:n})}}return e}function ED(r,e,t,a,i,n){var o=r.length;if(o<2)return;r.sort(function(T,C){return T.rect[e]-C.rect[e]});for(var s=0,l,u=!1,f=0,h=0;h<o;h++){var c=r[h],v=c.rect;l=v[e]-s,l<0&&(v[e]-=l,c.label[e]-=l,u=!0);var d=Math.max(-l,0);f+=d,s=v[e]+v[t]}f>0&&n&&b(-f/o,0,o);var p=r[0],g=r[o-1],y,m;_(),y<0&&x(-y,.8),m<0&&x(m,.8),_(),S(y,m,1),S(m,y,-1),_(),y<0&&w(-y),m<0&&w(m);function _(){y=p.rect[e]-a,m=i-g.rect[e]-g.rect[t]}function S(T,C,D){if(T<0){var M=Math.min(C,-T);if(M>0){b(M*D,0,o);var L=M+T;L<0&&x(-L*D,1)}else x(-T*D,1)}}function b(T,C,D){T!==0&&(u=!0);for(var M=C;M<D;M++){var L=r[M],I=L.rect;I[e]+=T,L.label[e]+=T}}function x(T,C){for(var D=[],M=0,L=1;L<o;L++){var I=r[L-1].rect,P=Math.max(r[L].rect[e]-I[e]-I[t],0);D.push(P),M+=P}if(!!M){var R=Math.min(Math.abs(T)/M,C);if(T>0)for(var L=0;L<o-1;L++){var E=D[L]*R;b(E,0,L+1)}else for(var L=o-1;L>0;L--){var E=D[L-1]*R;b(-E,L,o)}}}function w(T){var C=T<0?-1:1;T=Math.abs(T);for(var D=Math.ceil(T/(o-1)),M=0;M<o-1;M++)if(C>0?b(D,0,M+1):b(-D,o-M-1,o),T-=D,T<=0)return}return u}function zV(r,e,t,a){return ED(r,"x","width",e,t,a)}function kD(r,e,t,a){return ED(r,"y","height",e,t,a)}function OD(r){var e=[];r.sort(function(p,g){return g.priority-p.priority});var t=new ht(0,0,0,0);function a(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var i=0;i<r.length;i++){var n=r[i],o=n.axisAligned,s=n.localRect,l=n.transform,u=n.label,f=n.labelLine;t.copy(n.rect),t.width-=.1,t.height-=.1,t.x+=.05,t.y+=.05;for(var h=n.obb,c=!1,v=0;v<e.length;v++){var d=e[v];if(!!t.intersect(d.rect)){if(o&&d.axisAligned){c=!0;break}if(d.obb||(d.obb=new Rf(d.localRect,d.transform)),h||(h=new Rf(s,l)),h.intersect(d.obb)){c=!0;break}}}c?(a(u),f&&a(f)):(u.attr("ignore",n.defaultAttr.ignore),f&&f.attr("ignore",n.defaultAttr.labelGuideIgnore),e.push(n))}}function GV(r){if(r){for(var e=[],t=0;t<r.length;t++)e.push(r[t].slice());return e}}function FV(r,e){var t=r.label,a=e&&e.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:GV(a&&a.shape.points)}}var c1=["align","verticalAlign","width","height","fontSize"],Fe=new oa,dc=Dt(),HV=Dt();function Mu(r,e,t){for(var a=0;a<t.length;a++){var i=t[a];e[i]!=null&&(r[i]=e[i])}}var Lu=["x","y","rotation"],$V=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(e,t,a,i,n){var o=i.style,s=i.__hostTarget,l=s.textConfig||{},u=i.getComputedTransform(),f=i.getBoundingRect().plain();ht.applyTransform(f,f,u),u?Fe.setLocalTransform(u):(Fe.x=Fe.y=Fe.rotation=Fe.originX=Fe.originY=0,Fe.scaleX=Fe.scaleY=1);var h=i.__hostTarget,c;if(h){c=h.getBoundingRect().plain();var v=h.getComputedTransform();ht.applyTransform(c,c,v)}var d=c&&h.getTextGuideLine();this._labelList.push({label:i,labelLine:d,seriesModel:a,dataIndex:e,dataType:t,layoutOption:n,computedLayoutOption:null,rect:f,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:d&&d.ignore,x:Fe.x,y:Fe.y,scaleX:Fe.scaleX,scaleY:Fe.scaleY,rotation:Fe.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:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var a=e.__model,i=a.get("labelLayout");!(J(i)||St(i).length)||e.group.traverse(function(n){if(n.ignore)return!0;var o=n.getTextContent(),s=it(n);o&&!o.disableLabelLayout&&t._addLabel(s.dataIndex,s.dataType,a,o,i)})},r.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),a=e.getHeight();function i(_,S){return function(){h1(_,S)}}for(var n=0;n<this._labelList.length;n++){var o=this._labelList[n],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;J(o.layoutOption)?f=o.layoutOption(FV(o,l)):f=o.layoutOption,f=f||{},o.computedLayoutOption=f;var h=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*h:u.attachedRot,offset:[f.dx||0,f.dy||0]});var c=!1;if(f.x!=null?(s.x=H(f.x,t),s.setStyle("x",0),c=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=H(f.y,a),s.setStyle("y",0),c=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var v=l.getTextGuideLine();v&&(v.setShape({points:f.labelLinePoints}),c=!1)}var d=dc(s);d.needsUpdateLabelLine=c,s.rotation=f.rotate!=null?f.rotate*h:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<c1.length;p++){var g=c1[p];s.setStyle(g,f[g]!=null?f[g]:u.style[g])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);y=m.getItemModel(o.dataIndex)}s.on("drag",i(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(e){var t=e.getWidth(),a=e.getHeight(),i=RD(this._labelList),n=Et(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Et(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});zV(n,0,t),kD(o,0,a);var s=Et(i,function(l){return l.layoutOption.hideOverlap});OD(s)},r.prototype.processLabelsOverall=function(){var e=this;A(this._chartViewList,function(t){var a=t.__model,i=t.ignoreLabelLineUpdate,n=a.isAnimationEnabled();t.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,l=o.getTextContent();!s&&l&&(s=dc(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,a),n&&e._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(e,t){var a=e.getTextContent(),i=it(e),n=i.dataIndex;if(a&&n!=null){var o=t.getData(i.dataType),s=o.getItemModel(n),l={},u=o.getItemVisual(n,"style"),f=o.getVisual("drawType");l.stroke=u[f];var h=s.getModel("labelLine");my(e,_y(s),l),h1(e,h)}},r.prototype._animateLabels=function(e,t){var a=e.getTextContent(),i=e.getTextGuideLine();if(a&&(e.forceLabelAnimation||!a.ignore&&!a.invisible&&!e.disableLabelAnimation&&!uo(e))){var n=dc(a),o=n.oldLayout,s=it(e),l=s.dataIndex,u={x:a.x,y:a.y,rotation:a.rotation},f=t.getData(s.dataType);if(o){a.attr(o);var c=e.prevStates;c&&(ct(c,"select")>=0&&a.attr(n.oldLayoutSelect),ct(c,"emphasis")>=0&&a.attr(n.oldLayoutEmphasis)),At(a,u,t,l)}else if(a.attr(u),!ko(a).valueAnimation){var h=ut(a.style.opacity,1);a.style.opacity=0,Ft(a,{style:{opacity:h}},t,l)}if(n.oldLayout=u,a.states.select){var v=n.oldLayoutSelect={};Mu(v,u,Lu),Mu(v,a.states.select,Lu)}if(a.states.emphasis){var d=n.oldLayoutEmphasis={};Mu(d,u,Lu),Mu(d,a.states.emphasis,Lu)}xC(a,l,f,t,t)}if(i&&!i.ignore&&!i.invisible){var n=HV(i),o=n.oldLayout,p={points:i.shape.points};o?(i.attr({shape:o}),At(i,{shape:p},t)):(i.setShape(p),i.style.strokePercent=0,Ft(i,{style:{strokePercent:1}},t)),n.oldLayout=p}},r}(),WV=$V,pc=Dt();function UV(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){var i=pc(t).labelManager;i||(i=pc(t).labelManager=new WV),i.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,a){var i=pc(t).labelManager;a.updatedSeries.forEach(function(n){i.addLabelsOfSeries(t.getViewOfSeriesModel(n))}),i.updateLayoutConfig(t),i.layout(t),i.processLabelsOverall()})}var gc=Math.sin,yc=Math.cos,ND=Math.PI,Bi=Math.PI*2,YV=180/ND,ZV=function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,a,i,n,o){this._add("C",e,t,a,i,n,o)},r.prototype.quadraticCurveTo=function(e,t,a,i){this._add("Q",e,t,a,i)},r.prototype.arc=function(e,t,a,i,n,o){this.ellipse(e,t,a,a,0,i,n,o)},r.prototype.ellipse=function(e,t,a,i,n,o,s,l){var u=s-o,f=!l,h=Math.abs(u),c=Ua(h-Bi)||(f?u>=Bi:-u>=Bi),v=u>0?u%Bi:u%Bi+Bi,d=!1;c?d=!0:Ua(h)?d=!1:d=v>=ND==!!f;var p=e+a*yc(o),g=t+i*gc(o);this._start&&this._add("M",p,g);var y=Math.round(n*YV);if(c){var m=1/this._p,_=(f?1:-1)*(Bi-m);this._add("A",a,i,y,1,+f,e+a*yc(o+_),t+i*gc(o+_)),m>.01&&this._add("A",a,i,y,0,+f,p,g)}else{var S=e+a*yc(s),b=t+i*gc(s);this._add("A",a,i,y,+d,+f,S,b)}},r.prototype.rect=function(e,t,a,i){this._add("M",e,t),this._add("l",a,0),this._add("l",0,i),this._add("l",-a,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,a,i,n,o,s,l,u){for(var f=[],h=this._p,c=1;c<arguments.length;c++){var v=arguments[c];if(isNaN(v)){this._invalid=!0;return}f.push(Math.round(v*h)/h)}this._d.push(e+f.join(" ")),this._start=e==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r}(),BD=ZV,Ys="none",XV=Math.round;function qV(r){var e=r.fill;return e!=null&&e!==Ys}function KV(r){var e=r.stroke;return e!=null&&e!==Ys}var Ap=["lineCap","miterLimit","lineJoin"],JV=G(Ap,function(r){return"stroke-"+r.toLowerCase()});function QV(r,e,t,a){var i=e.opacity==null?1:e.opacity;if(t instanceof ge){r("opacity",i);return}if(qV(e)){var n=co(e.fill);r("fill",n.color);var o=e.fillOpacity!=null?e.fillOpacity*n.opacity*i:n.opacity*i;(a||o<1)&&r("fill-opacity",o)}else r("fill",Ys);if(KV(e)){var s=co(e.stroke);r("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,f=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*i:s.opacity*i,h=e.strokeFirst;if((a||u!==1)&&r("stroke-width",u),(a||h)&&r("paint-order",h?"stroke":"fill"),(a||f<1)&&r("stroke-opacity",f),e.lineDash){var c=oy(t),v=c[0],d=c[1];v&&(d=XV(d||0),r("stroke-dasharray",v.join(",")),(d||a)&&r("stroke-dashoffset",d))}else a&&r("stroke-dasharray",Ys);for(var p=0;p<Ap.length;p++){var g=Ap[p];if(a||e[g]!==If[g]){var y=e[g]||If[g];y&&r(JV[p],y)}}}else a&&r("stroke",Ys)}var VD="http://www.w3.org/2000/svg",zD="http://www.w3.org/1999/xlink",jV="http://www.w3.org/2000/xmlns/",t5="http://www.w3.org/XML/1998/namespace";function GD(r){return document.createElementNS(VD,r)}function ne(r,e,t,a,i){return{tag:r,attrs:t||{},children:a,text:i,key:e}}function e5(r,e){var t=[];if(e)for(var a in e){var i=e[a],n=a;i!==!1&&(i!==!0&&i!=null&&(n+='="'+i+'"'),t.push(n))}return"<"+r+" "+t.join(" ")+">"}function r5(r){return"</"+r+">"}function Sy(r,e){e=e||{};var t=e.newline?`
`:"";function a(i){var n=i.children,o=i.tag,s=i.attrs;return e5(o,s)+ke(i.text)+(n?""+t+G(n,function(l){return a(l)}).join(t)+t:"")+r5(o)}return a(r)}function a5(r,e,t){t=t||{};var a=t.newline?`
`:"",i=" {"+a,n=a+"}",o=G(St(r),function(l){return l+i+G(St(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+n}).join(a),s=G(St(e),function(l){return"@keyframes "+l+i+G(St(e[l]),function(u){return u+i+G(St(e[l][u]),function(f){var h=e[l][u][f];return f==="d"&&(h='path("'+h+'")'),f+":"+h+";"}).join(a)+n}).join(a)+n}).join(a);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(a)}function Dp(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function d1(r,e,t,a){return ne("svg","root",{width:r,height:e,xmlns:VD,"xmlns:xlink":zD,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+e:!1},t)}var p1={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"},Fi="transform-origin";function i5(r,e,t){var a=V({},r.shape);V(a,e),r.buildPath(t,a);var i=new BD;return i.reset(tT(r)),t.rebuildPath(i,1),i.generateStr(),i.getStr()}function n5(r,e){var t=e.originX,a=e.originY;(t||a)&&(r[Fi]=t+"px "+a+"px")}var o5={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function FD(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function s5(r,e,t){var a=r.shape.paths,i={},n,o;if(A(a,function(l){var u=Dp(t.zrId);u.animation=!0,qh(l,{},u,!0);var f=u.cssAnims,h=u.cssNodes,c=St(f),v=c.length;if(!!v){o=c[v-1];var d=f[o];for(var p in d){var g=d[p];i[p]=i[p]||{d:""},i[p].d+=g.d||""}for(var y in h){var m=h[y].animation;m.indexOf(o)>=0&&(n=m)}}}),!!n){e.d=!1;var s=FD(i,t);return n.replace(o,s)}}function g1(r){return U(r)?p1[r]?"cubic-bezier("+p1[r]+")":wg(r)?r:"":""}function qh(r,e,t,a){var i=r.animators,n=i.length,o=[];if(r instanceof zg){var s=s5(r,e,t);if(s)o.push(s);else if(!n)return}else if(!n)return;for(var l={},u=0;u<n;u++){var f=i[u],h=[f.getMaxTime()/1e3+"s"],c=g1(f.getClip().easing),v=f.getDelay();c?h.push(c):h.push("linear"),v&&h.push(v/1e3+"s"),f.getLoop()&&h.push("infinite");var d=h.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(f)}function p(m){var _=m[1],S=_.length,b={},x={},w={},T="animation-timing-function";function C(rt,mt,vt){for(var q=rt.getTracks(),st=rt.getMaxTime(),Gt=0;Gt<q.length;Gt++){var xt=q[Gt];if(xt.needsAnimate()){var Zt=xt.keyframes,Wt=xt.propName;if(vt&&(Wt=vt(Wt)),Wt)for(var ye=0;ye<Zt.length;ye++){var ta=Zt[ye],Pe=Math.round(ta.time/st*100)+"%",Xl=g1(ta.easing),Aa=ta.rawValue;(U(Aa)||Ct(Aa))&&(mt[Pe]=mt[Pe]||{},mt[Pe][Wt]=ta.rawValue,Xl&&(mt[Pe][T]=Xl))}}}}for(var D=0;D<S;D++){var M=_[D],L=M.targetName;L?L==="shape"&&C(M,x):!a&&C(M,b)}for(var I in b){var P={};nT(P,r),V(P,b[I]);var R=eT(P),E=b[I][T];w[I]=R?{transform:R}:{},n5(w[I],P),E&&(w[I][T]=E)}var N,O=!0;for(var I in x){w[I]=w[I]||{};var B=!N,E=x[I][T];B&&(N=new Kr);var F=N.len();N.reset(),w[I].d=i5(r,x[I],N);var W=N.len();if(!B&&F!==W){O=!1;break}E&&(w[I][T]=E)}if(!O)for(var I in w)delete w[I].d;if(!a)for(var D=0;D<S;D++){var M=_[D],L=M.targetName;L==="style"&&C(M,w,function(q){return o5[q]})}for(var X=St(w),j=!0,nt,D=1;D<X.length;D++){var Mt=X[D-1],Lt=X[D];if(w[Mt][Fi]!==w[Lt][Fi]){j=!1;break}nt=w[Mt][Fi]}if(j&&nt){for(var I in w)w[I][Fi]&&delete w[I][Fi];e[Fi]=nt}if(Et(X,function(rt){return St(w[rt]).length>0}).length){var pt=FD(w,t);return pt+" "+m[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}var vl=Math.round;function HD(r){return r&&U(r.src)}function $D(r){return r&&J(r.toDataURL)}function xy(r,e,t,a){QV(function(i,n){var o=i==="fill"||i==="stroke";o&&hP(n)?p5(e,r,i,a):o&&fP(n)?g5(t,r,i,a):r[i]=n},e,t,!1),d5(t,r,a)}function y1(r){return Ua(r[0]-1)&&Ua(r[1])&&Ua(r[2])&&Ua(r[3]-1)}function l5(r){return Ua(r[4])&&Ua(r[5])}function by(r,e,t){if(e&&!(l5(e)&&y1(e))){var a=t?10:1e4;r.transform=y1(e)?"translate("+vl(e[4]*a)/a+" "+vl(e[5]*a)/a+")":iP(e)}}function m1(r,e,t){for(var a=r.points,i=[],n=0;n<a.length;n++)i.push(vl(a[n][0]*t)/t),i.push(vl(a[n][1]*t)/t);e.points=i.join(" ")}function _1(r){return!r.smooth}function u5(r){var e=G(r,function(t){return typeof t=="string"?[t,t]:t});return function(t,a,i){for(var n=0;n<e.length;n++){var o=e[n],s=t[o[0]];s!=null&&(a[o[1]]=vl(s*i)/i)}}}var f5={circle:[u5(["cx","cy","r"])],polyline:[m1,_1],polygon:[m1,_1]};function h5(r){for(var e=r.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function WD(r,e){var t=r.style,a=r.shape,i=f5[r.type],n={},o=e.animation,s="path",l=r.style.strokePercent,u=e.compress&&tT(r)||4;if(i&&!e.willUpdate&&!(i[1]&&!i[1](a))&&!(o&&h5(r))&&!(l<1)){s=r.type;var f=Math.pow(10,u);i[0](a,n,f)}else{r.path||r.createPathProxy();var h=r.path;r.shapeChanged()&&(h.beginPath(),r.buildPath(h,r.shape),r.pathUpdated());var c=h.getVersion(),v=r,d=v.__svgPathBuilder;(v.__svgPathVersion!==c||!d||l!==v.__svgPathStrokePercent)&&(d||(d=v.__svgPathBuilder=new BD),d.reset(u),h.rebuildPath(d,l),d.generateStr(),v.__svgPathVersion=c,v.__svgPathStrokePercent=l),n.d=d.getStr()}return by(n,r.transform),xy(n,t,r,e),e.animation&&qh(r,n,e),ne(s,r.id+"",n)}function v5(r,e){var t=r.style,a=t.image;if(a&&!U(a)&&(HD(a)?a=a.src:$D(a)&&(a=a.toDataURL())),!!a){var i=t.x||0,n=t.y||0,o=t.width,s=t.height,l={href:a,width:o,height:s};return i&&(l.x=i),n&&(l.y=n),by(l,r.transform),xy(l,t,r,e),e.animation&&qh(r,l,e),ne("image",r.id+"",l)}}function c5(r,e){var t=r.style,a=t.text;if(a!=null&&(a+=""),!(!a||isNaN(t.x)||isNaN(t.y))){var i=t.font||ti,n=t.x||0,o=oP(t.y||0,bh(i),t.textBaseline),s=nP[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(VT(t)){var u="",f=t.fontStyle,h=BT(t.fontSize);if(!parseFloat(h))return;var c=t.fontFamily||Iw,v=t.fontWeight;u+="font-size:"+h+";font-family:"+c+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),v&&v!=="normal"&&(u+="font-weight:"+v+";"),l.style=u}else l.style="font: "+i;return a.match(/\s/)&&(l["xml:space"]="preserve"),n&&(l.x=n),o&&(l.y=o),by(l,r.transform),xy(l,t,r,e),e.animation&&qh(r,l,e),ne("text",r.id+"",l,void 0,a)}}function S1(r,e){if(r instanceof yt)return WD(r,e);if(r instanceof ge)return v5(r,e);if(r instanceof tl)return c5(r,e)}function d5(r,e,t){var a=r.style;if(sP(a)){var i=lP(r),n=t.shadowCache,o=n[i];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=a.shadowOffsetX||0,h=a.shadowOffsetY||0,c=a.shadowBlur,v=co(a.shadowColor),d=v.opacity,p=v.color,g=c/2/l,y=c/2/u,m=g+" "+y;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=ne("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[ne("feDropShadow","",{dx:f/l,dy:h/u,stdDeviation:m,"flood-color":p,"flood-opacity":d})]),n[i]=o}e.filter=xh(o)}}function p5(r,e,t,a){var i=r[t],n,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(Qw(i))n="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(jw(i))n="radialGradient",o.cx=ut(i.x,.5),o.cy=ut(i.y,.5),o.r=ut(i.r,.5);else return;for(var s=i.colorStops,l=[],u=0,f=s.length;u<f;++u){var h=Fd(s[u].offset)*100+"%",c=s[u].color,v=co(c),d=v.color,p=v.opacity,g={offset:h};g["stop-color"]=d,p<1&&(g["stop-opacity"]=p),l.push(ne("stop",u+"",g))}var y=ne(n,"",o,l),m=Sy(y),_=a.gradientCache,S=_[m];S||(S=a.zrId+"-g"+a.gradientIdx++,_[m]=S,o.id=S,a.defs[S]=ne(n,S,o,l)),e[t]=xh(S)}function g5(r,e,t,a){var i=r.style[t],n={patternUnits:"userSpaceOnUse"},o;if(Jw(i)){var s=i.imageWidth,l=i.imageHeight,u=void 0,f=i.image;if(U(f)?u=f:HD(f)?u=f.src:$D(f)&&(u=f.toDataURL()),typeof Image=="undefined"){var h="Image width/height must been given explictly in svg-ssr renderer.";Le(s,h),Le(l,h)}else if(s==null||l==null){var c=function(m,_){if(m){var S=m.elm,b=m.attrs.width=s||_.width,x=m.attrs.height=l||_.height;S&&(S.setAttribute("width",b),S.setAttribute("height",x))}},v=Ig(u,null,r,function(m){c(d,m),c(o,m)});v&&v.width&&v.height&&(s=s||v.width,l=l||v.height)}o=ne("image","img",{href:u,width:s,height:l}),n.width=s,n.height=l}else i.svgElement&&(o=et(i.svgElement),n.width=i.svgWidth,n.height=i.svgHeight);if(!!o){n.patternTransform=eT(i);var d=ne("pattern","",n,[o]),p=Sy(d),g=a.patternCache,y=g[p];y||(y=a.zrId+"-p"+a.patternIdx++,g[p]=y,n.id=y,d=a.defs[y]=ne("pattern",y,n,[o])),e[t]=xh(y)}}function y5(r,e,t){var a=t.clipPathCache,i=t.defs,n=a[r.id];if(!n){n=t.zrId+"-c"+t.clipPathIdx++;var o={id:n};a[r.id]=n,i[n]=ne("clipPath",n,o,[WD(r,t)])}e["clip-path"]=xh(n)}function x1(r){return document.createTextNode(r)}function Xi(r,e,t){r.insertBefore(e,t)}function b1(r,e){r.removeChild(e)}function w1(r,e){r.appendChild(e)}function UD(r){return r.parentNode}function YD(r){return r.nextSibling}function mc(r,e){r.textContent=e}var T1=58,m5=120,_5=ne("","");function Mp(r){return r===void 0}function Vr(r){return r!==void 0}function S5(r,e,t){for(var a={},i=e;i<=t;++i){var n=r[i].key;n!==void 0&&(a[n]=i)}return a}function Ds(r,e){var t=r.key===e.key,a=r.tag===e.tag;return a&&t}function cl(r){var e,t=r.children,a=r.tag;if(Vr(a)){var i=r.elm=GD(a);if(wy(_5,r),z(t))for(e=0;e<t.length;++e){var n=t[e];n!=null&&w1(i,cl(n))}else Vr(r.text)&&!tt(r.text)&&w1(i,x1(r.text))}else r.elm=x1(r.text);return r.elm}function ZD(r,e,t,a,i){for(;a<=i;++a){var n=t[a];n!=null&&Xi(r,cl(n),e)}}function qf(r,e,t,a){for(;t<=a;++t){var i=e[t];if(i!=null)if(Vr(i.tag)){var n=UD(i.elm);b1(n,i.elm)}else b1(r,i.elm)}}function wy(r,e){var t,a=e.elm,i=r&&r.attrs||{},n=e.attrs||{};if(i!==n){for(t in n){var o=n[t],s=i[t];s!==o&&(o===!0?a.setAttribute(t,""):o===!1?a.removeAttribute(t):t.charCodeAt(0)!==m5?a.setAttribute(t,o):t==="xmlns:xlink"||t==="xmlns"?a.setAttributeNS(jV,t,o):t.charCodeAt(3)===T1?a.setAttributeNS(t5,t,o):t.charCodeAt(5)===T1?a.setAttributeNS(zD,t,o):a.setAttribute(t,o))}for(t in i)t in n||a.removeAttribute(t)}}function x5(r,e,t){for(var a=0,i=0,n=e.length-1,o=e[0],s=e[n],l=t.length-1,u=t[0],f=t[l],h,c,v,d;a<=n&&i<=l;)o==null?o=e[++a]:s==null?s=e[--n]:u==null?u=t[++i]:f==null?f=t[--l]:Ds(o,u)?(to(o,u),o=e[++a],u=t[++i]):Ds(s,f)?(to(s,f),s=e[--n],f=t[--l]):Ds(o,f)?(to(o,f),Xi(r,o.elm,YD(s.elm)),o=e[++a],f=t[--l]):Ds(s,u)?(to(s,u),Xi(r,s.elm,o.elm),s=e[--n],u=t[++i]):(Mp(h)&&(h=S5(e,a,n)),c=h[u.key],Mp(c)?Xi(r,cl(u),o.elm):(v=e[c],v.tag!==u.tag?Xi(r,cl(u),o.elm):(to(v,u),e[c]=void 0,Xi(r,v.elm,o.elm))),u=t[++i]);(a<=n||i<=l)&&(a>n?(d=t[l+1]==null?null:t[l+1].elm,ZD(r,d,t,i,l)):qf(r,e,a,n))}function to(r,e){var t=e.elm=r.elm,a=r.children,i=e.children;r!==e&&(wy(r,e),Mp(e.text)?Vr(a)&&Vr(i)?a!==i&&x5(t,a,i):Vr(i)?(Vr(r.text)&&mc(t,""),ZD(t,null,i,0,i.length-1)):Vr(a)?qf(t,a,0,a.length-1):Vr(r.text)&&mc(t,""):r.text!==e.text&&(Vr(a)&&qf(t,a,0,a.length-1),mc(t,e.text)))}function b5(r,e){if(Ds(r,e))to(r,e);else{var t=r.elm,a=UD(t);cl(e),a!==null&&(Xi(a,e.elm,YD(t)),qf(a,[r],0,0))}return e}var w5=0,T5=function(){function r(e,t,a){if(this.type="svg",this.refreshHover=C1(),this.configLayer=C1(),this.storage=t,this._opts=a=V({},a),this.root=e,this._id="zr"+w5++,this._oldVNode=d1(a.width,a.height),e&&!a.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var n=this._svgDom=this._oldVNode.elm=GD("svg");wy(null,this._oldVNode),i.appendChild(n),e.appendChild(i)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",b5(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return S1(e,Dp(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),a=this._backgroundColor,i=this._width,n=this._height,o=Dp(this._id);o.animation=e.animation,o.willUpdate=e.willUpdate,o.compress=e.compress;var s=[];if(a&&a!=="none"){var l=co(a),u=l.color,f=l.opacity;this._bgVNode=ne("rect","bg",{width:i,height:n,x:"0",y:"0",id:"0",fill:u,"fill-opacity":f}),s.push(this._bgVNode)}else this._bgVNode=null;var h=e.compress?null:this._mainVNode=ne("g","main",{},[]);this._paintList(t,o,h?h.children:s),h&&s.push(h);var c=G(St(o.defs),function(p){return o.defs[p]});if(c.length&&s.push(ne("defs","defs",{},c)),e.animation){var v=a5(o.cssNodes,o.cssAnims,{newline:!0});if(v){var d=ne("style","stl",{},[],v);s.push(d)}}return d1(i,n,s,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},Sy(this.renderToVNode({animation:ut(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:ut(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e;var t=this._bgVNode;if(t&&t.elm){var a=co(e),i=a.color,n=a.opacity;t.elm.setAttribute("fill",i),n<1&&t.elm.setAttribute("fill-opacity",n)}},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,a){for(var i=e.length,n=[],o=0,s,l,u=0,f=0;f<i;f++){var h=e[f];if(!h.invisible){var c=h.__clipPaths,v=c&&c.length||0,d=l&&l.length||0,p=void 0;for(p=Math.max(v-1,d-1);p>=0&&!(c&&l&&c[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=n[o-1];for(var y=p+1;y<v;y++){var m={};y5(c[y],m,t);var _=ne("g","clip-g-"+u++,m,[]);(s?s.children:a).push(_),n[o++]=_,s=_}l=c;var S=S1(h,t);S&&(s?s.children:a).push(S)}}},r.prototype.resize=function(e,t){var a=this._opts,i=this.root,n=this._viewport;if(e!=null&&(a.width=e),t!=null&&(a.height=t),i&&n&&(n.style.display="none",e=no(i,0,a),t=no(i,1,a),n.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,n){var o=n.style;o.width=e+"px",o.height=t+"px"}var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t))}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(e){var t=encodeURIComponent(this.renderToString()),a="data:image/svg+xml;";return e?(t=vP(t),t&&a+"base64,"+t):a+"charset=UTF-8,"+t},r}();function C1(r){return function(){}}var C5=T5;function A5(r){r.registerPainter("svg",C5)}function A1(r,e,t){var a=pa.createCanvas(),i=e.getWidth(),n=e.getHeight(),o=a.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=n+"px",a.setAttribute("data-zr-dom-id",r)),a.width=i*t,a.height=n*t,a}var D5=function(r){k(e,r);function e(t,a,i){var n=r.call(this)||this;n.motionBlur=!1,n.lastFrameAlpha=.7,n.dpr=1,n.virtual=!1,n.config={},n.incremental=!1,n.zlevel=0,n.maxRepaintRectCount=5,n.__dirty=!0,n.__firstTimePaint=!0,n.__used=!1,n.__drawIndex=0,n.__startIndex=0,n.__endIndex=0,n.__prevStartIndex=null,n.__prevEndIndex=null;var o;i=i||Df,typeof t=="string"?o=A1(t,a,i):tt(t)&&(o=t,t=o.id),n.id=t,n.dom=o;var s=o.style;return s&&(Ow(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),n.painter=a,n.dpr=i,n}return 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=A1("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,a,i,n){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new ht(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new ht(0,0,0,0);_.copy(m),o.push(_)}else{for(var S=!1,b=1/0,x=0,w=0;w<o.length;++w){var T=o[w];if(T.intersect(m)){var C=new ht(0,0,0,0);C.copy(T),C.union(m),o[w]=C,S=!0;break}else if(l){u.copy(m),u.union(T);var D=m.width*m.height,M=T.width*T.height,L=u.width*u.height,I=L-D-M;I<b&&(b=I,x=w)}}if(l&&(o[x].union(m),S=!0),!S){var _=new ht(0,0,0,0);_.copy(m),o.push(_)}l||(l=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var c=t[h];if(c){var v=c.shouldBePainted(i,n,!0,!0),d=c.__isRendered&&(c.__dirty&$e||!v)?c.getPrevPaintRect():null;d&&f(d);var p=v&&(c.__dirty&$e||!c.__isRendered)?c.getPaintRect():null;p&&f(p)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var c=a[h],v=c.shouldBePainted(i,n,!0,!0);if(c&&(!v||!c.__zr)&&c.__isRendered){var d=c.getPrevPaintRect();d&&f(d)}}var g;do{g=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var y=h+1;y<o.length;)o[h].intersect(o[y])?(g=!0,o[h].union(o[y]),o.splice(y,1)):y++;h++}}while(g);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,a){var i=this.dpr,n=this.dom,o=n.style,s=this.domBack;o&&(o.width=t+"px",o.height=a+"px"),n.width=t*i,n.height=a*i,s&&(s.width=t*i,s.height=a*i,i!==1&&this.ctxBack.scale(i,i))},e.prototype.clear=function(t,a,i){var n=this.dom,o=this.ctx,s=n.width,l=n.height;a=a||this.clearColor;var u=this.motionBlur&&!t,f=this.lastFrameAlpha,h=this.dpr,c=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(n,0,0,s/h,l/h));var v=this.domBack;function d(p,g,y,m){if(o.clearRect(p,g,y,m),a&&a!=="transparent"){var _=void 0;mh(a)?(_=a.__canvasGradient||mp(o,a,{x:0,y:0,width:y,height:m}),a.__canvasGradient=_):vI(a)&&(a.scaleX=a.scaleX||h,a.scaleY=a.scaleY||h,_=_p(o,a,{dirty:function(){c.setUnpainted(),c.__painter.refresh()}})),o.save(),o.fillStyle=_||a,o.fillRect(p,g,y,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(v,p,g,y,m),o.restore())}!i||u?d(0,0,s,l):i.length&&A(i,function(p){d(p.x*h,p.y*h,p.width*h,p.height*h)})},e}(cr),_c=D5,D1=1e5,Vi=314159,Iu=.01,M5=.001;function L5(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function I5(r,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+r+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}var P5=function(){function r(e,t,a,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var n=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=a=V({},a||{}),this.dpr=a.devicePixelRatio||Df,this._singleCanvas=n,this.root=e;var o=e.style;o&&(Ow(e),e.innerHTML=""),this.storage=t;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(n){var f=e,h=f.width,c=f.height;a.width!=null&&(h=a.width),a.height!=null&&(c=a.height),this.dpr=a.devicePixelRatio||1,f.width=h*this.dpr,f.height=c*this.dpr,this._width=h,this._height=c;var v=new _c(f,this,this.dpr);v.__builtin__=!0,v.initContext(),l[Vi]=v,v.zlevel=Vi,s.push(Vi),this._domRoot=e}else{this._width=no(e,0,a),this._height=no(e,1,a);var u=this._domRoot=I5(this._width,this._height);e.appendChild(u)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),a=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,a,e,this._redrawId);for(var n=0;n<i.length;n++){var o=i[n],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=n===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(e){var t=e.length,a=this._hoverlayer;if(a&&a.clear(),!!t){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},n,o=0;o<t;o++){var s=e[o];s.__inHover&&(a||(a=this._hoverlayer=this.getLayer(D1)),n||(n=a.ctx,n.save()),an(n,s,i,o===t-1))}n&&n.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(D1)},r.prototype.paintOne=function(e,t){PA(e,t)},r.prototype._paintList=function(e,t,a,i){if(this._redrawId===i){a=a||!1,this._updateLayerStatus(e);var n=this._doPaintList(e,t,a),o=n.finished,s=n.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Nd(function(){l._paintList(e,t,a,i)})}}},r.prototype._compositeManually=function(){var e=this.getLayer(Vi).ctx,t=this._domRoot.width,a=this._domRoot.height;e.clearRect(0,0,t,a),this.eachBuiltinLayer(function(i){i.virtual&&e.drawImage(i.dom,0,0,t,a)})},r.prototype._doPaintList=function(e,t,a){for(var i=this,n=[],o=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||a)&&n.push(u)}for(var f=!0,h=!1,c=function(p){var g=n[p],y=g.ctx,m=o&&g.createRepaintRects(e,t,v._width,v._height),_=a?g.__startIndex:g.__drawIndex,S=!a&&g.incremental&&Date.now,b=S&&Date.now(),x=g.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,x,m);else if(_===g.__startIndex){var w=e[_];(!w.incremental||!w.notClear||a)&&g.clear(!1,x,m)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var T,C=function(I){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(T=_;T<g.__endIndex;T++){var R=e[T];if(R.__inHover&&(h=!0),i._doPaintEl(R,g,o,I,P,T===g.__endIndex-1),S){var E=Date.now()-b;if(E>15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var D=v.dpr,M=0;M<m.length;++M){var L=m[M];y.save(),y.beginPath(),y.rect(L.x*D,L.y*D,L.width*D,L.height*D),y.clip(),C(L),y.restore()}else y.save(),C(),y.restore();g.__drawIndex=T,g.__drawIndex<g.__endIndex&&(f=!1)},v=this,d=0;d<n.length;d++)c(d);return It.wxa&&A(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:f,needsRefreshHover:h}},r.prototype._doPaintEl=function(e,t,a,i,n,o){var s=t.ctx;if(a){var l=e.getPaintRect();(!i||l&&l.intersect(i))&&(an(s,e,n,o),e.setPrevPaintRect(l))}else an(s,e,n,o)},r.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Vi);var a=this._layers[e];return a||(a=new _c("zr_"+e,this,this.dpr),a.zlevel=e,a.__builtin__=!0,this._layerConfig[e]?ft(a,this._layerConfig[e],!0):this._layerConfig[e-Iu]&&ft(a,this._layerConfig[e-Iu],!0),t&&(a.virtual=t),this.insertLayer(e,a),a.initContext()),a},r.prototype.insertLayer=function(e,t){var a=this._layers,i=this._zlevelList,n=i.length,o=this._domRoot,s=null,l=-1;if(!a[e]&&!!L5(t)){if(n>0&&e>i[0]){for(l=0;l<n-1&&!(i[l]<e&&i[l+1]>e);l++);s=a[i[l]]}if(i.splice(l+1,0,e),a[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},r.prototype.eachLayer=function(e,t){for(var a=this._zlevelList,i=0;i<a.length;i++){var n=a[i];e.call(t,this._layers[n],n)}},r.prototype.eachBuiltinLayer=function(e,t){for(var a=this._zlevelList,i=0;i<a.length;i++){var n=a[i],o=this._layers[n];o.__builtin__&&e.call(t,o,n)}},r.prototype.eachOtherLayer=function(e,t){for(var a=this._zlevelList,i=0;i<a.length;i++){var n=a[i],o=this._layers[n];o.__builtin__||e.call(t,o,n)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(h,c){h.__dirty=h.__used=!1});function t(h){n&&(n.__endIndex!==h&&(n.__dirty=!0),n.__endIndex=h)}if(this._singleCanvas)for(var a=1;a<e.length;a++){var i=e[a];if(i.zlevel!==e[a-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var n=null,o=0,s,l;for(l=0;l<e.length;l++){var i=e[l],u=i.zlevel,f=void 0;s!==u&&(s=u,o=0),i.incremental?(f=this.getLayer(u+M5,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?Iu:0),this._needsManuallyCompositing),f.__builtin__||gg("ZLevel "+u+" has been used by unkown layer "+f.id),f!==n&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,t(l),n=f),i.__dirty&$e&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,A(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var a=this._layerConfig;a[e]?ft(a[e],t,!0):a[e]=t;for(var i=0;i<this._zlevelList.length;i++){var n=this._zlevelList[i];if(n===e||n===e+Iu){var o=this._layers[n];ft(o,a[e],!0)}}}},r.prototype.delLayer=function(e){var t=this._layers,a=this._zlevelList,i=t[e];!i||(i.dom.parentNode.removeChild(i.dom),delete t[e],a.splice(ct(a,e),1))},r.prototype.resize=function(e,t){if(this._domRoot.style){var a=this._domRoot;a.style.display="none";var i=this._opts,n=this.root;if(e!=null&&(i.width=e),t!=null&&(i.height=t),e=no(n,0,i),t=no(n,1,i),a.style.display="",this._width!==e||t!==this._height){a.style.width=e+"px",a.style.height=t+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this.getLayer(Vi).resize(e,t)}return this},r.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[Vi].dom;var t=new _c("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var a=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=t.dom.width,n=t.dom.height;this.eachLayer(function(h){h.__builtin__?a.drawImage(h.dom,0,0,i,n):h.renderToCanvas&&(a.save(),h.renderToCanvas(a),a.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];an(a,f,o,l===u-1)}return t.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}(),R5=P5;function E5(r){r.registerPainter("canvas",R5)}var k5=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){return Ta(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var a=new at,i=te("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);a.add(i),i.setStyle(t.lineStyle);var n=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=n==="none"?"circle":n,l=t.itemHeight*.8,u=te(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);a.add(u),u.setStyle(t.itemStyle);var f=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),a},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}(Ht),O5=k5;function _o(r,e){var t=r.mapDimensionsAll("defaultedLabel"),a=t.length;if(a===1){var i=go(r,e,t[0]);return i!=null?i+"":null}else if(a){for(var n=[],o=0;o<t.length;o++)n.push(go(r,e,t[o]));return n.join(" ")}}function XD(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!z(e))return e+"";for(var a=[],i=0;i<t.length;i++){var n=r.getDimensionIndex(t[i]);n>=0&&a.push(e[n])}return a.join(" ")}var N5=function(r){k(e,r);function e(t,a,i,n){var o=r.call(this)||this;return o.updateData(t,a,i,n),o}return e.prototype._createSymbol=function(t,a,i,n,o){this.removeAll();var s=te(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),s.drift=B5,this._symbolType=t,this.add(s)},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(){ma(this.childAt(0))},e.prototype.downplay=function(){_a(this.childAt(0))},e.prototype.setZ=function(t,a){var i=this.childAt(0);i.zlevel=t,i.z=a},e.prototype.setDraggable=function(t,a){var i=this.childAt(0);i.draggable=t,i.cursor=!a&&t?"move":i.cursor},e.prototype.updateData=function(t,a,i,n){this.silent=!1;var o=t.getItemVisual(a,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,a),u=o!==this._symbolType,f=n&&n.disableAnimation;if(u){var h=t.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,t,a,l,h)}else{var c=this.childAt(0);c.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?c.attr(v):At(c,v,s,a),Dr(c)}if(this._updateCommon(t,a,l,i,n),u){var c=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,Ft(c,v,s,a)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,a,i,n,o){var s=this.childAt(0),l=t.hostModel,u,f,h,c,v,d,p,g,y;if(n&&(u=n.emphasisItemStyle,f=n.blurItemStyle,h=n.selectItemStyle,c=n.focus,v=n.blurScope,p=n.labelStatesModels,g=n.hoverScale,y=n.cursorStyle,d=n.emphasisDisabled),!n||t.hasItemOption){var m=n&&n.itemModel?n.itemModel:t.getItemModel(a),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=he(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=t.getItemVisual(a,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=Ho(t.getItemVisual(a,"symbolOffset"),i);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var x=t.getItemVisual(a,"style"),w=x.fill;if(s instanceof ge){var T=s.style;s.useStyle(V({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(V({},x)):s.useStyle(x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=t.getItemVisual(a,"liftZ"),D=this._z2;C!=null?D==null&&(this._z2=s.z2,s.z2+=C):D!=null&&(s.z2=D,this._z2=null);var M=o&&o.useNameLabel;we(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:L,inheritColor:w,defaultOpacity:x.opacity});function L(R){return M?t.getName(R):_o(t,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),Ut(this,c,v,d)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,a,i){var n=this.childAt(0),o=it(this).dataIndex,s=i&&i.animation;if(this.silent=n.silent=!0,i&&i.fadeLabel){var l=n.getTextContent();l&&ri(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){n.removeTextContent()}})}else n.removeTextContent();ri(n,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,a){return Ol(t.getItemVisual(a,"symbolSize"))},e}(at);function B5(r,e){this.parent.drift(r,e)}var Gl=N5;function Sc(r,e,t,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a.isIgnore&&a.isIgnore(t))&&!(a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function M1(r){return r!=null&&!tt(r)&&(r={isIgnore:r}),r||{}}function L1(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:he(e),cursorStyle:e.get("cursor")}}var V5=function(){function r(e){this.group=new at,this._SymbolCtor=e||Gl}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=M1(t);var a=this.group,i=e.hostModel,n=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=L1(e),u={disableAnimation:s},f=t.getSymbolPoint||function(h){return e.getItemLayout(h)};n||a.removeAll(),e.diff(n).add(function(h){var c=f(h);if(Sc(e,c,h,t)){var v=new o(e,h,l,u);v.setPosition(c),e.setItemGraphicEl(h,v),a.add(v)}}).update(function(h,c){var v=n.getItemGraphicEl(c),d=f(h);if(!Sc(e,d,h,t)){a.remove(v);return}var p=e.getItemVisual(h,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==p)a.remove(v),v=new o(e,h,l,u),v.setPosition(d);else{v.updateData(e,h,l,u);var y={x:d[0],y:d[1]};s?v.attr(y):At(v,y,i)}a.add(v),e.setItemGraphicEl(h,v)}).remove(function(h){var c=n.getItemGraphicEl(h);c&&c.fadeOut(function(){a.remove(c)},i)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(a,i){var n=e._getSymbolPoint(i);a.setPosition(n),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=L1(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){this._progressiveEls=[],a=M1(a);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var n=e.start;n<e.end;n++){var o=t.getItemLayout(n);if(Sc(t,o,n,a)){var s=new this._SymbolCtor(t,n,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(n,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(e){ui(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,a=this._data;a&&e?a.eachItemGraphicEl(function(i){i.fadeOut(function(){t.remove(i)},a.hostModel)}):t.removeAll()},r}(),Fl=V5;function qD(r,e,t){var a=r.getBaseAxis(),i=r.getOtherAxis(a),n=z5(i,t),o=a.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=G(r.dimensions,function(d){return e.mapDimension(d)}),c=!1,v=e.getCalculationInfo("stackResultDimension");return ii(e,h[0])&&(c=!0,h[0]=v),ii(e,h[1])&&(c=!0,h[1]=v),{dataDimsForPoint:h,valueStart:n,valueAxisDim:s,baseAxisDim:o,stacked:!!c,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function z5(r,e){var t=0,a=r.scale.getExtent();return e==="start"?t=a[0]:e==="end"?t=a[1]:Ct(e)&&!isNaN(e)?t=e:a[0]>0?t=a[0]:a[1]<0&&(t=a[1]),t}function KD(r,e,t,a){var i=NaN;r.stacked&&(i=t.get(t.getCalculationInfo("stackedOverDimension"),a)),isNaN(i)&&(i=r.valueStart);var n=r.baseDataOffset,o=[];return o[n]=t.get(r.baseDim,a),o[1-n]=i,e.dataToPoint(o)}function G5(r,e){var t=[];return e.diff(r).add(function(a){t.push({cmd:"+",idx:a})}).update(function(a,i){t.push({cmd:"=",idx:i,idx1:a})}).remove(function(a){t.push({cmd:"-",idx:a})}).execute(),t}function F5(r,e,t,a,i,n,o,s){for(var l=G5(r,e),u=[],f=[],h=[],c=[],v=[],d=[],p=[],g=qD(i,e,o),y=r.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],b=!0,x=void 0,w=void 0;switch(S.cmd){case"=":x=S.idx*2,w=S.idx1*2;var T=y[x],C=y[x+1],D=m[w],M=m[w+1];(isNaN(T)||isNaN(C))&&(T=D,C=M),u.push(T,C),f.push(D,M),h.push(t[x],t[x+1]),c.push(a[w],a[w+1]),p.push(e.getRawIndex(S.idx1));break;case"+":var L=S.idx,I=g.dataDimsForPoint,P=i.dataToPoint([e.get(I[0],L),e.get(I[1],L)]);w=L*2,u.push(P[0],P[1]),f.push(m[w],m[w+1]);var R=KD(g,i,e,L);h.push(R[0],R[1]),c.push(a[w],a[w+1]),p.push(e.getRawIndex(L));break;case"-":b=!1}b&&(v.push(S),d.push(d.length))}d.sort(function(Mt,Lt){return p[Mt]-p[Lt]});for(var E=u.length,N=$r(E),O=$r(E),B=$r(E),F=$r(E),W=[],_=0;_<d.length;_++){var X=d[_],j=_*2,nt=X*2;N[j]=u[nt],N[j+1]=u[nt+1],O[j]=f[nt],O[j+1]=f[nt+1],B[j]=h[nt],B[j+1]=h[nt+1],F[j]=c[nt],F[j+1]=c[nt+1],W[_]=v[X]}return{current:N,next:O,stackedOnCurrent:B,stackedOnNext:F,status:W}}var Ea=Math.min,ka=Math.max;function vn(r,e){return isNaN(r)||isNaN(e)}function Lp(r,e,t,a,i,n,o,s,l){for(var u,f,h,c,v,d,p=t,g=0;g<a;g++){var y=e[p*2],m=e[p*2+1];if(p>=i||p<0)break;if(vn(y,m)){if(l){p+=n;continue}break}if(p===t)r[n>0?"moveTo":"lineTo"](y,m),h=y,c=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){p+=n;continue}if(o>0){for(var b=p+n,x=e[b*2],w=e[b*2+1];x===y&&w===m&&g<a;)g++,b+=n,p+=n,x=e[b*2],w=e[b*2+1],y=e[p*2],m=e[p*2+1],_=y-u,S=m-f;var T=g+1;if(l)for(;vn(x,w)&&T<a;)T++,b+=n,x=e[b*2],w=e[b*2+1];var C=.5,D=0,M=0,L=void 0,I=void 0;if(T>=a||vn(x,w))v=y,d=m;else{D=x-u,M=w-f;var P=y-u,R=x-y,E=m-f,N=w-m,O=void 0,B=void 0;if(s==="x"){O=Math.abs(P),B=Math.abs(R);var F=D>0?1:-1;v=y-F*O*o,d=m,L=y+F*B*o,I=m}else if(s==="y"){O=Math.abs(E),B=Math.abs(N);var W=M>0?1:-1;v=y,d=m-W*O*o,L=y,I=m+W*B*o}else O=Math.sqrt(P*P+E*E),B=Math.sqrt(R*R+N*N),C=B/(B+O),v=y-D*o*(1-C),d=m-M*o*(1-C),L=y+D*o*C,I=m+M*o*C,L=Ea(L,ka(x,y)),I=Ea(I,ka(w,m)),L=ka(L,Ea(x,y)),I=ka(I,Ea(w,m)),D=L-y,M=I-m,v=y-D*O/B,d=m-M*O/B,v=Ea(v,ka(u,y)),d=Ea(d,ka(f,m)),v=ka(v,Ea(u,y)),d=ka(d,Ea(f,m)),D=y-v,M=m-d,L=y+D*B/O,I=m+M*B/O}r.bezierCurveTo(h,c,v,d,y,m),h=L,c=I}else r.lineTo(y,m)}u=y,f=m,p+=n}return g}var JD=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),H5=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polyline",a}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new JD},e.prototype.buildPath=function(t,a){var i=a.points,n=0,o=i.length/2;if(a.connectNulls){for(;o>0&&vn(i[o*2-2],i[o*2-1]);o--);for(;n<o&&vn(i[n*2],i[n*2+1]);n++);}for(;n<o;)n+=Lp(t,i,n,o,o,1,a.smooth,a.smoothMonotone,a.connectNulls)+1},e.prototype.getPointOn=function(t,a){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,n=i.data,o=Kr.CMD,s,l,u=a==="x",f=[],h=0;h<n.length;){var c=n[h++],v=void 0,d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(c){case o.M:s=n[h++],l=n[h++];break;case o.L:if(v=n[h++],d=n[h++],_=u?(t-s)/(v-s):(t-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[t,S]:[S,t]}s=v,l=d;break;case o.C:v=n[h++],d=n[h++],p=n[h++],g=n[h++],y=n[h++],m=n[h++];var b=u?wf(s,v,p,y,t,f):wf(l,d,g,m,t,f);if(b>0)for(var x=0;x<b;x++){var w=f[x];if(w<=1&&w>=0){var S=u?ie(l,d,g,m,w):ie(s,v,p,y,w);return u?[t,S]:[S,t]}}s=y,l=m;break}}},e}(yt),$5=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(JD),QD=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polygon",a}return e.prototype.getDefaultShape=function(){return new $5},e.prototype.buildPath=function(t,a){var i=a.points,n=a.stackedOnPoints,o=0,s=i.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&vn(i[s*2-2],i[s*2-1]);s--);for(;o<s&&vn(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=Lp(t,i,o,s,s,1,a.smooth,l,a.connectNulls);Lp(t,n,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,t.closePath()}},e}(yt);function jD(r,e,t,a,i){var n=r.getArea(),o=n.x,s=n.y,l=n.width,u=n.height,f=t.get(["lineStyle","width"])||2;o-=f/2,s-=f/2,l+=f,u+=f,o=Math.floor(o),l=Math.round(l);var h=new bt({shape:{x:o,y:s,width:l,height:u}});if(e){var c=r.getBaseAxis(),v=c.isHorizontal(),d=c.inverse;v?(d&&(h.shape.x+=l),h.shape.width=0):(d||(h.shape.y+=u),h.shape.height=0);var p=J(i)?function(g){i(g,h)}:null;Ft(h,{shape:{width:l,height:u,x:o,y:s}},t,null,a,p)}return h}function tM(r,e,t){var a=r.getArea(),i=qt(a.r0,1),n=qt(a.r,1),o=new Ve({shape:{cx:qt(r.cx,1),cy:qt(r.cy,1),r0:i,r:n,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});if(e){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=a.startAngle:o.shape.r=i,Ft(o,{shape:{endAngle:a.endAngle,r:n}},t)}return o}function Kh(r,e,t,a,i){if(r){if(r.type==="polar")return tM(r,e,t);if(r.type==="cartesian2d")return jD(r,e,t,a,i)}else return null;return null}function Mn(r,e){return r.type===e}function I1(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function P1(r){for(var e=1/0,t=1/0,a=-1/0,i=-1/0,n=0;n<r.length;){var o=r[n++],s=r[n++];isNaN(o)||(e=Math.min(o,e),a=Math.max(o,a)),isNaN(s)||(t=Math.min(s,t),i=Math.max(s,i))}return[[e,t],[a,i]]}function R1(r,e){var t=P1(r),a=t[0],i=t[1],n=P1(e),o=n[0],s=n[1];return Math.max(Math.abs(a[0]-o[0]),Math.abs(a[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function E1(r){return Ct(r)?r:r?.5:0}function W5(r,e,t){if(!t.valueDim)return[];for(var a=e.count(),i=$r(a*2),n=0;n<a;n++){var o=KD(t,r,e,n);i[n*2]=o[0],i[n*2+1]=o[1]}return i}function Oa(r,e,t,a){var i=e.getBaseAxis(),n=i.dim==="x"||i.dim==="radius"?0:1,o=[],s=0,l=[],u=[],f=[],h=[];if(a){for(s=0;s<r.length;s+=2)!isNaN(r[s])&&!isNaN(r[s+1])&&h.push(r[s],r[s+1]);r=h}for(s=0;s<r.length-2;s+=2)switch(f[0]=r[s+2],f[1]=r[s+3],u[0]=r[s],u[1]=r[s+1],o.push(u[0],u[1]),t){case"end":l[n]=f[n],l[1-n]=u[1-n],o.push(l[0],l[1]);break;case"middle":var c=(u[n]+f[n])/2,v=[];l[n]=v[n]=c,l[1-n]=u[1-n],v[1-n]=f[1-n],o.push(l[0],l[1]),o.push(v[0],v[1]);break;default:l[n]=u[n],l[1-n]=f[1-n],o.push(l[0],l[1])}return o.push(r[s++],r[s++]),o}function U5(r,e){var t=[],a=r.length,i,n;function o(f,h,c){var v=f.coord,d=(c-v)/(h.coord-v),p=aP(d,[f.color,h.color]);return{coord:c,color:p}}for(var s=0;s<a;s++){var l=r[s],u=l.coord;if(u<0)i=l;else if(u>e){n?t.push(o(n,l,e)):i&&t.push(o(i,l,0),o(i,l,e));break}else i&&(t.push(o(i,l,0)),i=null),t.push(l),n=l}return t}function Y5(r,e,t){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&e.type==="cartesian2d"){for(var i,n,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){n=a[o];break}}if(!!n){var l=e.getAxis(i),u=G(n.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=n.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var c=U5(u,i==="x"?t.getWidth():t.getHeight()),v=c.length;if(!v&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var d=10,p=c[0].coord-d,g=c[v-1].coord+d,y=g-p;if(y<.001)return"transparent";A(c,function(_){_.offset=(_.coord-p)/y}),c.push({offset:v?c[v-1].offset:.5,color:h[1]||"transparent"}),c.unshift({offset:v?c[0].offset:.5,color:h[0]||"transparent"});var m=new Ll(0,0,0,0,c,!0);return m[i]=p,m[i+"2"]=g,m}}}function Z5(r,e,t){var a=r.get("showAllSymbol"),i=a==="auto";if(!(a&&!i)){var n=t.getAxesByScale("ordinal")[0];if(!!n&&!(i&&X5(n,e))){var o=e.mapDimension(n.dim),s={};return A(n.getViewLabels(),function(l){var u=n.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function X5(r,e){var t=r.getExtent(),a=Math.abs(t[1]-t[0])/r.scale.count();isNaN(a)&&(a=0);for(var i=e.count(),n=Math.max(1,Math.round(i/5)),o=0;o<i;o+=n)if(Gl.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function q5(r,e){return isNaN(r)||isNaN(e)}function K5(r){for(var e=r.length/2;e>0&&q5(r[e*2-2],r[e*2-1]);e--);return e-1}function k1(r,e){return[r[e*2],r[e*2+1]]}function J5(r,e,t){for(var a=r.length/2,i=t==="x"?0:1,n,o,s=0,l=-1,u=0;u<a;u++)if(o=r[u*2+i],!(isNaN(o)||isNaN(r[u*2+1-i]))){if(u===0){n=o;continue}if(n<=e&&o>=e||n>=e&&o<=e){l=u;break}s=u,n=o}return{range:[s,l],t:(e-n)/(o-n)}}function eM(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<Ie.length;e++)if(r.get([Ie[e],"endLabel","show"]))return!0;return!1}function xc(r,e,t,a){if(Mn(e,"cartesian2d")){var i=a.getModel("endLabel"),n=i.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=eM(a)?function(v,d){r._endLabelOnDuring(v,d,o,s,n,i,e)}:null,u=e.getBaseAxis().isHorizontal(),f=jD(e,t,a,function(){var v=r._endLabel;v&&t&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!a.get("clip",!0)){var h=f.shape,c=Math.max(h.width,h.height);u?(h.y-=c,h.height+=c*2):(h.x-=c,h.width+=c*2)}return l&&l(1,f),f}else return tM(e,t,a)}function Q5(r,e){var t=e.getBaseAxis(),a=t.isHorizontal(),i=t.inverse,n=a?i?"right":"left":"center",o=a?"middle":i?"top":"bottom";return{normal:{align:r.get("align")||n,verticalAlign:r.get("verticalAlign")||o}}}var j5=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new at,a=new Fl;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=t},e.prototype.render=function(t,a,i){var n=this,o=t.coordinateSystem,s=this.group,l=t.getData(),u=t.getModel("lineStyle"),f=t.getModel("areaStyle"),h=l.getLayout("points")||[],c=o.type==="polar",v=this._coordSys,d=this._symbolDraw,p=this._polyline,g=this._polygon,y=this._lineGroup,m=t.get("animation"),_=!f.isEmpty(),S=f.get("origin"),b=qD(o,l,S),x=_&&W5(o,l,b),w=t.get("showSymbol"),T=t.get("connectNulls"),C=w&&!c&&Z5(t,l,o),D=this._data;D&&D.eachItemGraphicEl(function(Lt,pt){Lt.__temp&&(s.remove(Lt),D.setItemGraphicEl(pt,null))}),w||d.remove(),s.add(y);var M=c?!1:t.get("step"),L;o&&o.getArea&&t.get("clip",!0)&&(L=o.getArea(),L.width!=null?(L.x-=.1,L.y-=.1,L.width+=.2,L.height+=.2):L.r0&&(L.r0-=.5,L.r+=.5)),this._clipShapeForSymbol=L;var I=Y5(l,o,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(p&&v.type===o.type&&M===this._step))w&&d.updateData(l,{isIgnore:C,clipShape:L,disableAnimation:!0,getSymbolPoint:function(Lt){return[h[Lt*2],h[Lt*2+1]]}}),m&&this._initSymbolLabelAnimation(l,o,L),M&&(h=Oa(h,o,M,T),x&&(x=Oa(x,o,M,T))),p=this._newPolyline(h),_?g=this._newPolygon(h,x):g&&(y.remove(g),g=this._polygon=null),c||this._initOrUpdateEndLabel(t,o,Sn(I)),y.setClipPath(xc(this,o,!0,t));else{_&&!g?g=this._newPolygon(h,x):g&&!_&&(y.remove(g),g=this._polygon=null),c||this._initOrUpdateEndLabel(t,o,Sn(I));var P=y.getClipPath();if(P){var R=xc(this,o,!1,t);Ft(P,{shape:R.shape},t)}else y.setClipPath(xc(this,o,!0,t));w&&d.updateData(l,{isIgnore:C,clipShape:L,disableAnimation:!0,getSymbolPoint:function(Lt){return[h[Lt*2],h[Lt*2+1]]}}),(!I1(this._stackedOnPoints,x)||!I1(this._points,h))&&(m?this._doUpdateAnimation(l,x,o,i,M,S,T):(M&&(h=Oa(h,o,M,T),x&&(x=Oa(x,o,M,T))),p.setShape({points:h}),g&&g.setShape({points:h,stackedOnPoints:x})))}var E=t.getModel("emphasis"),N=E.get("focus"),O=E.get("blurScope"),B=E.get("disabled");if(p.useStyle(Q(u.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),pe(p,t,"lineStyle"),p.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var F=p.getState("emphasis").style;F.lineWidth=+p.style.lineWidth+1}it(p).seriesIndex=t.seriesIndex,Ut(p,N,O,B);var W=E1(t.get("smooth")),X=t.get("smoothMonotone");if(p.setShape({smooth:W,smoothMonotone:X,connectNulls:T}),g){var j=l.getCalculationInfo("stackedOnSeries"),nt=0;g.useStyle(Q(f.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),j&&(nt=E1(j.get("smooth"))),g.setShape({smooth:W,stackedOnSmooth:nt,smoothMonotone:X,connectNulls:T}),pe(g,t,"areaStyle"),it(g).seriesIndex=t.seriesIndex,Ut(g,N,O,B)}var Mt=function(Lt){n._changePolyState(Lt)};l.eachItemGraphicEl(function(Lt){Lt&&(Lt.onHoverStateChange=Mt)}),this._polyline.onHoverStateChange=Mt,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=h,this._step=M,this._valueOrigin=S,t.get("triggerLineEvent")&&(this.packEventData(t,p),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,a){it(a).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,a,i,n){var o=t.getData(),s=yn(o,n);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var c=t.get("zlevel")||0,v=t.get("z")||0;u=new Gl(o,s),u.x=f,u.y=h,u.setZ(c,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else zt.prototype.highlight.call(this,t,a,i,n)},e.prototype.downplay=function(t,a,i,n){var o=t.getData(),s=yn(o,n);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else zt.prototype.downplay.call(this,t,a,i,n)},e.prototype._changePolyState=function(t){var a=this._polygon;Pf(this._polyline,t),a&&Pf(a,t)},e.prototype._newPolyline=function(t){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new H5({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},e.prototype._newPolygon=function(t,a){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new QD({shape:{points:t,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(t,a,i){var n,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(n=s.isHorizontal(),o=!1):a.type==="polar"&&(n=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");J(f)&&(f=f(null));var h=u.get("animationDelay")||0,c=J(h)?h(null):h;t.eachItemGraphicEl(function(v,d){var p=v;if(p){var g=[v.x,v.y],y=void 0,m=void 0,_=void 0;if(i)if(o){var S=i,b=a.pointToCoord(g);n?(y=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,m=S.r,_=b[0])}else{var x=i;n?(y=x.x,m=x.x+x.width,_=v.x):(y=x.y+x.height,m=x.y,_=v.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var T=J(h)?h(d):f*w+c,C=p.getSymbolPath(),D=C.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,a,i){var n=t.getModel("endLabel");if(eM(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Tt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=K5(l);f>=0&&(we(s,he(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:f,defaultText:function(h,c,v){return v!=null?XD(o,v):_o(o,h)},enableTextSetter:!0},Q5(n,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,a,i,n,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&n.originalX==null&&(n.originalX=u.x,n.originalY=u.y);var h=i.getLayout("points"),c=i.hostModel,v=c.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=a.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?p:0)*(m?-1:1),x=(y?0:-p)*(m?-1:1),w=y?"x":"y",T=J5(h,S,w),C=T.range,D=C[1]-C[0],M=void 0;if(D>=1){if(D>1&&!v){var L=k1(h,C[0]);u.attr({x:L[0]+b,y:L[1]+x}),o&&(M=c.getRawValue(C[0]))}else{var L=f.getPointOn(S,w);L&&u.attr({x:L[0]+b,y:L[1]+x});var I=c.getRawValue(C[0]),P=c.getRawValue(C[1]);o&&(M=bT(i,d,I,P,T.t))}n.lastFrameIndex=C[0]}else{var R=t===1||n.lastFrameIndex>0?C[0]:0,L=k1(h,R);o&&(M=c.getRawValue(R)),u.attr({x:L[0]+b,y:L[1]+x})}o&&ko(u).setLabelText(M)}},e.prototype._doUpdateAnimation=function(t,a,i,n,o,s,l){var u=this._polyline,f=this._polygon,h=t.hostModel,c=F5(this._data,t,this._stackedOnPoints,a,this._coordSys,i,this._valueOrigin),v=c.current,d=c.stackedOnCurrent,p=c.next,g=c.stackedOnNext;if(o&&(v=Oa(c.current,i,o,l),d=Oa(c.stackedOnCurrent,i,o,l),p=Oa(c.next,i,o,l),g=Oa(c.stackedOnNext,i,o,l)),R1(v,p)>3e3||f&&R1(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=c.current,u.shape.points=v;var y={shape:{points:p}};c.current!==v&&(y.shape.__points=c.next),u.stopAnimation(),At(u,y,h),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),At(f,{shape:{stackedOnPoints:g}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=c.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=t.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,T=0;T<m.length;T++){var C=m[T].el,D=m[T].ptIdx*2;C.x=w[D],C.y=w[D+1],C.markRedraw()}})},e.prototype.remove=function(t){var a=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(n,o){n.__temp&&(a.remove(n),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(zt),tz=j5;function Hl(r,e){return{seriesType:r,plan:Go(),reset:function(t){var a=t.getData(),i=t.coordinateSystem,n=t.pipelineContext,o=e||n.large;if(!!i){var s=G(i.dimensions,function(v){return a.mapDimension(v)}).slice(0,2),l=s.length,u=a.getCalculationInfo("stackResultDimension");ii(a,s[0])&&(s[0]=u),ii(a,s[1])&&(s[1]=u);var f=a.getStore(),h=a.getDimensionIndex(s[0]),c=a.getDimensionIndex(s[1]);return l&&{progress:function(v,d){for(var p=v.end-v.start,g=o&&$r(p*l),y=[],m=[],_=v.start,S=0;_<v.end;_++){var b=void 0;if(l===1){var x=f.get(h,_);b=i.dataToPoint(x,null,m)}else y[0]=f.get(h,_),y[1]=f.get(c,_),b=i.dataToPoint(y,null,m);o?(g[S++]=b[0],g[S++]=b[1]):d.setItemLayout(_,b.slice())}o&&d.setLayout("points",g)}}}}}}var ez={average:function(r){for(var e=0,t=0,a=0;a<r.length;a++)isNaN(r[a])||(e+=r[a],t++);return t===0?NaN:e/t},sum:function(r){for(var e=0,t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){for(var e=-1/0,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},rz=function(r){return Math.round(r.length/2)};function rM(r){return{seriesType:r,reset:function(e,t,a){var i=e.getData(),n=e.get("sampling"),o=e.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&n){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=a.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(h||1),v=Math.round(s/c);if(isFinite(v)&&v>1){n==="lttb"&&e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/v));var d=void 0;U(n)?d=ez[n]:J(n)&&(d=n),d&&e.setData(i.downSample(i.mapDimension(u.dim),1/v,d,rz))}}}}}function az(r){r.registerChartView(tz),r.registerSeriesModel(O5),r.registerLayout(Hl("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),a=e.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,rM("line"))}var aM=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return Ta(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t){var a=this.coordinateSystem;if(a&&a.clampData){var i=a.dataToPoint(a.clampData(t)),n=this.getData(),o=n.getLayout("offset"),s=n.getLayout("size"),l=a.getBaseAxis().isHorizontal()?0:1;return i[l]+=o+s/2,i}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}(Ht);Ht.registerClass(aM);var Kf=aM,iz=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return Ta(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>t&&(t=a),t},e.prototype.brushSelector=function(t,a,i){return i.rect(a.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=fi(Kf.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}(Kf),nz=iz,oz=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),sz=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="sausage",a}return e.prototype.getDefaultShape=function(){return new oz},e.prototype.buildPath=function(t,a){var i=a.cx,n=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,f=a.startAngle,h=a.endAngle,c=a.clockwise,v=Math.PI*2,d=c?h-f<v:f-h<v;d||(f=h-(c?v:-v));var p=Math.cos(f),g=Math.sin(f),y=Math.cos(h),m=Math.sin(h);d?(t.moveTo(p*o+i,g*o+n),t.arc(p*u+i,g*u+n,l,-Math.PI+f,f,!c)):t.moveTo(p*s+i,g*s+n),t.arc(i,n,s,f,h,!c),t.arc(y*u+i,m*u+n,l,h-Math.PI*2,h-Math.PI,!c),o!==0&&t.arc(i,n,o,h,f,c)},e}(yt),Jf=sz;function lz(r,e){e=e||{};var t=e.isRoundCap;return function(a,i,n){var o=i.position;if(!o||o instanceof Array)return Mf(a,i,n);var s=r(o),l=i.distance!=null?i.distance:5,u=this.shape,f=u.cx,h=u.cy,c=u.r,v=u.r0,d=(c+v)/2,p=u.startAngle,g=u.endAngle,y=(p+g)/2,m=t?Math.abs(c-v)/2:0,_=Math.cos,S=Math.sin,b=f+c*_(p),x=h+c*S(p),w="left",T="top";switch(s){case"startArc":b=f+(v-l)*_(y),x=h+(v-l)*S(y),w="center",T="top";break;case"insideStartArc":b=f+(v+l)*_(y),x=h+(v+l)*S(y),w="center",T="bottom";break;case"startAngle":b=f+d*_(p)+Pu(p,l+m,!1),x=h+d*S(p)+Ru(p,l+m,!1),w="right",T="middle";break;case"insideStartAngle":b=f+d*_(p)+Pu(p,-l+m,!1),x=h+d*S(p)+Ru(p,-l+m,!1),w="left",T="middle";break;case"middle":b=f+d*_(y),x=h+d*S(y),w="center",T="middle";break;case"endArc":b=f+(c+l)*_(y),x=h+(c+l)*S(y),w="center",T="bottom";break;case"insideEndArc":b=f+(c-l)*_(y),x=h+(c-l)*S(y),w="center",T="top";break;case"endAngle":b=f+d*_(g)+Pu(g,l+m,!0),x=h+d*S(g)+Ru(g,l+m,!0),w="left",T="middle";break;case"insideEndAngle":b=f+d*_(g)+Pu(g,-l+m,!0),x=h+d*S(g)+Ru(g,-l+m,!0),w="right",T="middle";break;default:return Mf(a,i,n)}return a=a||{},a.x=b,a.y=x,a.align=w,a.verticalAlign=T,a}}function uz(r,e,t,a){if(Ct(a)){r.setTextConfig({rotation:a});return}else if(z(e)){r.setTextConfig({rotation:0});return}var i=r.shape,n=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(n+o)/2,l,u=t(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=n;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function Pu(r,e,t){return e*Math.sin(r)*(t?-1:1)}function Ru(r,e,t){return e*Math.cos(r)*(t?1:-1)}var bc=Math.max,wc=Math.min;function fz(r,e){var t=r.getArea&&r.getArea();if(Mn(r,"cartesian2d")){var a=r.getBaseAxis();if(a.type!=="category"||!a.onBand){var i=e.getLayout("bandWidth");a.isHorizontal()?(t.x-=i,t.width+=i*2):(t.y-=i,t.height+=i*2)}}return t}var hz=function(r){k(e,r);function e(){var t=r.call(this)||this;return t.type=e.type,t._isFirstFrame=!0,t}return e.prototype.render=function(t,a,i,n){this._model=t,this._removeOnRenderedListener(i),this._updateDrawMode(t);var o=t.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,a,i):this._renderNormal(t,a,i,n))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,a){this._progressiveEls=[],this._incrementalRenderLarge(t,a)},e.prototype.eachRendered=function(t){ui(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t,a,i,n){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.getBaseAxis(),h;u.type==="cartesian2d"?h=f.isHorizontal():u.type==="polar"&&(h=f.dim==="angle");var c=t.isAnimationEnabled()?t:null,v=vz(t,u);v&&this._enableRealtimeSort(v,s,i);var d=t.get("clip",!0)||v,p=fz(u,s);o.removeClipPath();var g=t.get("roundCap",!0),y=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],b=this._backgroundEls,x=n&&n.isInitSort,w=n&&n.type==="changeAxisOrder";function T(M){var L=Eu[u.type](s,M),I=_z(u,h,L);return I.useStyle(m.getItemStyle()),u.type==="cartesian2d"&&I.setShape("r",_),S[M]=I,I}s.diff(l).add(function(M){var L=s.getItemModel(M),I=Eu[u.type](s,M,L);if(y&&T(M),!(!s.hasValue(M)||!z1[u.type](I))){var P=!1;d&&(P=O1[u.type](p,I));var R=N1[u.type](t,s,M,I,h,c,f.model,!1,g);v&&(R.forceLabelAnimation=!0),G1(R,s,M,L,I,t,h,u.type==="polar"),x?R.attr({shape:I}):v?B1(v,c,R,I,M,h,!1,!1):Ft(R,{shape:I},t,M),s.setItemGraphicEl(M,R),o.add(R),R.ignore=P}}).update(function(M,L){var I=s.getItemModel(M),P=Eu[u.type](s,M,I);if(y){var R=void 0;b.length===0?R=T(L):(R=b[L],R.useStyle(m.getItemStyle()),u.type==="cartesian2d"&&R.setShape("r",_),S[M]=R);var E=Eu[u.type](s,M),N=nM(h,E,u);At(R,{shape:N},c,M)}var O=l.getItemGraphicEl(L);if(!s.hasValue(M)||!z1[u.type](P)){o.remove(O);return}var B=!1;if(d&&(B=O1[u.type](p,P),B&&o.remove(O)),O?Dr(O):O=N1[u.type](t,s,M,P,h,c,f.model,!!O,g),v&&(O.forceLabelAnimation=!0),w){var F=O.getTextContent();if(F){var W=ko(F);W.prevValue!=null&&(W.prevValue=W.value)}}else G1(O,s,M,I,P,t,h,u.type==="polar");x?O.attr({shape:P}):v?B1(v,c,O,P,M,h,!0,w):At(O,{shape:P},t,M,null),s.setItemGraphicEl(M,O),O.ignore=B,o.add(O)}).remove(function(M){var L=l.getItemGraphicEl(M);L&&al(L,t,M)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new at);C.removeAll();for(var D=0;D<S.length;++D)C.add(S[D]);o.add(C),this._backgroundEls=S,this._data=s},e.prototype._renderLarge=function(t,a,i){this._clear(),H1(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,a){this._removeBackground(),H1(a,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var a=t.get("clip",!0)&&Kh(t.coordinateSystem,!1,t),i=this.group;a?i.setClipPath(a):i.removeClipPath()},e.prototype._enableRealtimeSort=function(t,a,i){var n=this;if(!!a.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(a,t,i),this._isFirstFrame=!1;else{var s=function(l){var u=a.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){n._updateSortWithinSameData(a,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,a,i){var n=[];return t.each(t.mapDimension(a.dim),function(o,s){var l=i(s);l=l==null?NaN:l,n.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),n.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:G(n,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,a,i){for(var n=i.scale,o=t.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=n.getOrdinalMeta().categories.length;l<u;++l){var f=t.rawIndexOf(o,n.getRawOrdinalNumber(l)),h=f<0?Number.MIN_VALUE:a(t.indexOfRawIndex(f));if(h>s)return!0;s=h}return!1},e.prototype._isOrderDifferentInView=function(t,a){for(var i=a.scale,n=i.getExtent(),o=Math.max(0,n[0]),s=Math.min(n[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,a,i,n){if(!!this._isOrderChangedWithinSameData(t,a,i)){var o=this._dataSort(t,i,a);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(n),n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,a,i){var n=a.baseAxis,o=this._dataSort(t,n,function(s){return t.get(t.mapDimension(a.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.index,sortInfo:o})},e.prototype.remove=function(t,a){this._clear(this._model),this._removeOnRenderedListener(a)},e.prototype.dispose=function(t,a){this._removeOnRenderedListener(a)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var a=this.group,i=this._data;t&&t.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(n){al(n,t,it(n).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(zt),O1={cartesian2d:function(r,e){var t=e.width<0?-1:1,a=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height);var i=r.x+r.width,n=r.y+r.height,o=bc(e.x,r.x),s=wc(e.x+e.width,i),l=bc(e.y,r.y),u=wc(e.y+e.height,n),f=s<o,h=u<l;return e.x=f&&o>i?s:o,e.y=h&&l>n?u:l,e.width=f?0:s-o,e.height=h?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height),f||h},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}var i=wc(e.r,r.r),n=bc(e.r0,r.r0);e.r=i,e.r0=n;var o=i-n<0;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}return o}},N1={cartesian2d:function(r,e,t,a,i,n,o,s,l){var u=new bt({shape:V({},a),z2:1});if(u.__dataIndex=t,u.name="item",n){var f=u.shape,h=i?"height":"width";f[h]=0}return u},polar:function(r,e,t,a,i,n,o,s,l){var u=!i&&l?Jf:Ve,f=new u({shape:a,z2:1});f.name="item";var h=iM(i);if(f.calculateTextPosition=lz(h,{isRoundCap:u===Jf}),n){var c=f.shape,v=i?"r":"endAngle",d={};c[v]=i?0:a.startAngle,d[v]=a[v],(s?At:Ft)(f,{shape:d},n)}return f}};function vz(r,e){var t=r.get("realtimeSort",!0),a=e.getBaseAxis();if(t&&a.type==="category"&&e.type==="cartesian2d")return{baseAxis:a,otherAxis:e.getOtherAxis(a)}}function B1(r,e,t,a,i,n,o,s){var l,u;n?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?At:Ft)(t,{shape:l},e,i,null);var f=e?r.baseAxis.model:null;(o?At:Ft)(t,{shape:u},f,i)}function V1(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var cz=["x","y","width","height"],dz=["cx","cy","r","startAngle","endAngle"],z1={cartesian2d:function(r){return!V1(r,cz)},polar:function(r){return!V1(r,dz)}},Eu={cartesian2d:function(r,e,t){var a=r.getItemLayout(e),i=t?gz(t,a):0,n=a.width>0?1:-1,o=a.height>0?1:-1;return{x:a.x+n*i/2,y:a.y+o*i/2,width:a.width-n*i,height:a.height-o*i}},polar:function(r,e,t){var a=r.getItemLayout(e);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function pz(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function iM(r){return function(e){var t=e?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+t;default:return a}}}(r)}function G1(r,e,t,a,i,n,o,s){var l=e.getItemVisual(t,"style");s||r.setShape("r",a.get(["itemStyle","borderRadius"])||0),r.useStyle(l);var u=a.getShallow("cursor");u&&r.attr("cursor",u);var f=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",h=he(a);we(r,h,{labelFetcher:n,labelDataIndex:t,defaultText:_o(n.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var c=r.getTextContent();if(s&&c){var v=a.get(["label","position"]);r.textConfig.inside=v==="middle"?!0:null,uz(r,v==="outside"?f:v,iM(o),a.get(["label","rotate"]))}SC(c,h,n.getRawValue(t),function(p){return XD(e,p)});var d=a.getModel(["emphasis"]);Ut(r,d.get("focus"),d.get("blurScope"),d.get("disabled")),pe(r,a),pz(i)&&(r.style.fill="none",r.style.stroke="none",A(r.states,function(p){p.style&&(p.style.fill=p.style.stroke="none")}))}function gz(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),n=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(a,i,n)}var yz=function(){function r(){}return r}(),F1=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="largeBar",a}return e.prototype.getDefaultShape=function(){return new yz},e.prototype.buildPath=function(t,a){for(var i=a.points,n=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<i.length;f+=3)l[n]=u,l[o]=i[f+2],s[n]=i[f+n],s[o]=i[f+o],t.rect(s[0],s[1],l[0],l[1])},e}(yt);function H1(r,e,t,a){var i=r.getData(),n=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=r.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var f=new F1({shape:{points:u},incremental:!!a,silent:!0,z2:0});f.baseDimIdx=n,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),e.add(f),t&&t.push(f)}var h=new F1({shape:{points:i.getLayout("largePoints")},incremental:!!a,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=n,h.largeDataIndices=o,h.barWidth=s,e.add(h),h.useStyle(i.getVisual("style")),it(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",$1),h.on("mousemove",$1)),t&&t.push(h)}var $1=iy(function(r){var e=this,t=mz(e,r.offsetX,r.offsetY);it(e).dataIndex=t>=0?t:null},30,!1);function mz(r,e,t){for(var a=r.baseDimIdx,i=1-a,n=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=n.length/3;f<h;f++){var c=f*3;if(l[a]=u,l[i]=n[c+2],s[a]=n[c+a],s[i]=n[c+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function nM(r,e,t){if(Mn(t,"cartesian2d")){var a=e,i=t.getArea();return{x:r?a.x:i.x,y:r?i.y:a.y,width:r?a.width:i.width,height:r?i.height:a.height}}else{var i=t.getArea(),n=e;return{cx:i.cx,cy:i.cy,r0:r?i.r0:n.r0,r:r?i.r:n.r,startAngle:r?n.startAngle:0,endAngle:r?n.endAngle:Math.PI*2}}}function _z(r,e,t){var a=r.type==="polar"?Ve:bt;return new a({shape:nM(e,t,r),silent:!0,z2:0})}var Sz=hz;function xz(r){r.registerChartView(Sz),r.registerSeriesModel(nz),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ot(hD,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,vD("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,rM("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var a=e.componentType||"series";t.eachComponent({mainType:a,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})})}var ku=Math.PI*2,W1=Math.PI/180;function oM(r,e){return ae(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function sM(r,e){var t=oM(r,e),a=r.get("center"),i=r.get("radius");z(i)||(i=[0,i]),z(a)||(a=[a,a]);var n=H(t.width,e.getWidth()),o=H(t.height,e.getHeight()),s=Math.min(n,o),l=H(i[0],s/2),u=H(i[1],s/2),f,h,c=r.coordinateSystem;if(c){var v=c.dataToPoint(a);f=v[0]||0,h=v[1]||0}else f=H(a[0],n)+t.x,h=H(a[1],o)+t.y;return{cx:f,cy:h,r0:l,r:u}}function bz(r,e,t){e.eachSeriesByType(r,function(a){var i=a.getData(),n=i.mapDimension("value"),o=oM(a,t),s=sM(a,t),l=s.cx,u=s.cy,f=s.r,h=s.r0,c=-a.get("startAngle")*W1,v=a.get("minAngle")*W1,d=0;i.each(n,function(D){!isNaN(D)&&d++});var p=i.getSum(n),g=Math.PI/(p||d)*2,y=a.get("clockwise"),m=a.get("roseType"),_=a.get("stillShowZeroSum"),S=i.getDataExtent(n);S[0]=0;var b=ku,x=0,w=c,T=y?1:-1;if(i.setLayout({viewRect:o,r:f}),i.each(n,function(D,M){var L;if(isNaN(D)){i.setItemLayout(M,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:h,r:m?NaN:f});return}m!=="area"?L=p===0&&_?g:D*g:L=ku/d,L<v?(L=v,b-=v):x+=D;var I=w+T*L;i.setItemLayout(M,{angle:L,startAngle:w,endAngle:I,clockwise:y,cx:l,cy:u,r0:h,r:m?Rt(D,S,[h,f]):f}),w=I}),b<ku&&d)if(b<=.001){var C=ku/d;i.each(n,function(D,M){if(!isNaN(D)){var L=i.getItemLayout(M);L.angle=C,L.startAngle=c+T*M*C,L.endAngle=c+T*(M+1)*C}})}else g=b/x,w=c,i.each(n,function(D,M){if(!isNaN(D)){var L=i.getItemLayout(M),I=L.angle===v?v:D*g;L.startAngle=w,L.endAngle=w+T*I,w+=T*I}})})}function $l(r){return{seriesType:r,reset:function(e,t){var a=t.findComponents({mainType:"legend"});if(!(!a||!a.length)){var i=e.getData();i.filterSelf(function(n){for(var o=i.getName(n),s=0;s<a.length;s++)if(!a[s].isSelected(o))return!1;return!0})}}}}var wz=Math.PI/180;function U1(r,e,t,a,i,n,o,s,l,u){if(r.length<2)return;function f(p){for(var g=p.rB,y=g*g,m=0;m<p.list.length;m++){var _=p.list[m],S=Math.abs(_.label.y-t),b=a+_.len,x=b*b,w=Math.sqrt((1-Math.abs(S*S/y))*x),T=e+(w+_.len2)*i,C=T-_.label.x,D=_.targetTextWidth-C*i;lM(_,D,!0),_.label.x=T}}function h(p){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<p.length;m++)if(p[m].labelAlignTo==="none"){var _=p[m],S=_.label.y>t?y:g,b=Math.abs(_.label.y-t);if(b>=S.maxY){var x=_.label.x-e-_.len2*i,w=a+_.len,T=Math.abs(x)<w?Math.sqrt(b*b/(1-x*x/w/w)):w;S.rB=T,S.maxY=b}S.list.push(_)}f(g),f(y)}for(var c=r.length,v=0;v<c;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var d=r[v].label.x-u;r[v].linePoints[1][0]+=d,r[v].label.x=u}kD(r,l,l+o)&&h(r)}function Tz(r,e,t,a,i,n,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,h=-Number.MAX_VALUE,c=0;c<r.length;c++){var v=r[c].label;Tc(r[c])||(v.x<e?(f=Math.min(f,v.x),l.push(r[c])):(h=Math.max(h,v.x),u.push(r[c])))}for(var c=0;c<r.length;c++){var d=r[c];if(!Tc(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?v.x<e?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+i-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<e?g=f-o-d.bleedMargin:g=o+i-h-d.bleedMargin:v.x<e?g=v.x-o-d.bleedMargin:g=o+i-v.x-d.bleedMargin,d.targetTextWidth=g,lM(d,g)}}U1(u,e,t,a,1,i,n,o,s,h),U1(l,e,t,a,-1,i,n,o,s,f);for(var c=0;c<r.length;c++){var d=r[c];if(!Tc(d)&&d.linePoints){var v=d.label,p=d.linePoints,y=d.labelAlignTo==="edge",m=v.style.padding,_=m?m[1]+m[3]:0,S=v.style.backgroundColor?0:_,b=d.rect.width+S,x=p[1][0]-p[2][0];y?v.x<e?p[2][0]=o+d.edgeDistance+b+d.labelDistance:p[2][0]=o+i-d.edgeDistance-b-d.labelDistance:(v.x<e?p[2][0]=v.x+d.labelDistance:p[2][0]=v.x-d.labelDistance,p[1][0]=p[2][0]+x),p[1][1]=p[2][1]=v.y}}}function lM(r,e,t){if(t===void 0&&(t=!1),r.labelStyleWidth==null){var a=r.label,i=a.style,n=r.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,f=n.width+(o?0:l);if(e<f||t){var h=n.height;if(u&&u.match("break")){a.setStyle("backgroundColor",null),a.setStyle("width",e-l);var c=a.getBoundingRect();a.setStyle("width",Math.ceil(c.width)),a.setStyle("backgroundColor",o)}else{var v=e-l,d=e<f?v:t?v>r.unconstrainedWidth?null:v:null;a.setStyle("width",d)}var p=a.getBoundingRect();n.width=p.width;var g=(a.style.margin||0)+2.1;n.height=p.height+g,n.y-=(n.height-h)/2}}}function Tc(r){return r.position==="center"}function Cz(r){var e=r.getData(),t=[],a,i,n=!1,o=(r.get("minShowLabelAngle")||0)*wz,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,h=s.y,c=s.height;function v(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var w in x.states)if(x.states[w].ignore===!1)return!0;return!1}e.each(function(x){var w=e.getItemGraphicEl(x),T=w.shape,C=w.getTextContent(),D=w.getTextGuideLine(),M=e.getItemModel(x),L=M.getModel("label"),I=L.get("position")||M.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),R=L.get("alignTo"),E=H(L.get("edgeDistance"),u),N=L.get("bleedMargin"),O=M.getModel("labelLine"),B=O.get("length");B=H(B,u);var F=O.get("length2");if(F=H(F,u),Math.abs(T.endAngle-T.startAngle)<o){A(C.states,v),A(D.states,v),C.ignore=D.ignore=!0;return}if(!!d(C)){var W=(T.startAngle+T.endAngle)/2,X=Math.cos(W),j=Math.sin(W),nt,Mt,Lt,pt;a=T.cx,i=T.cy;var rt=I==="inside"||I==="inner";if(I==="center")nt=T.cx,Mt=T.cy,pt="center";else{var mt=(rt?(T.r+T.r0)/2*X:T.r*X)+a,vt=(rt?(T.r+T.r0)/2*j:T.r*j)+i;if(nt=mt+X*3,Mt=vt+j*3,!rt){var q=mt+X*(B+l-T.r),st=vt+j*(B+l-T.r),Gt=q+(X<0?-1:1)*F,xt=st;R==="edge"?nt=X<0?f+E:f+u-E:nt=Gt+(X<0?-P:P),Mt=xt,Lt=[[mt,vt],[q,st],[Gt,xt]]}pt=rt?"center":R==="edge"?X>0?"right":"left":X>0?"left":"right"}var Zt=Math.PI,Wt=0,ye=L.get("rotate");if(Ct(ye))Wt=ye*(Zt/180);else if(I==="center")Wt=0;else if(ye==="radial"||ye===!0){var ta=X<0?-W+Zt:-W;Wt=ta}else if(ye==="tangential"&&I!=="outside"&&I!=="outer"){var Pe=Math.atan2(X,j);Pe<0&&(Pe=Zt*2+Pe);var Xl=j>0;Xl&&(Pe=Zt+Pe),Wt=Pe-Zt}if(n=!!Wt,C.x=nt,C.y=Mt,C.rotation=Wt,C.setStyle({verticalAlign:"middle"}),rt){C.setStyle({align:pt});var nv=C.states.select;nv&&(nv.x+=C.x,nv.y+=C.y)}else{var Aa=C.getBoundingRect().clone();Aa.applyTransform(C.getComputedTransform());var xm=(C.style.margin||0)+2.1;Aa.y-=xm/2,Aa.height+=xm,t.push({label:C,labelLine:D,position:I,len:B,len2:F,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new lt(X,j),linePoints:Lt,textAlign:pt,labelDistance:P,labelAlignTo:R,edgeDistance:E,bleedMargin:N,rect:Aa,unconstrainedWidth:Aa.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:rt})}}),!n&&r.get("avoidLabelOverlap")&&Tz(t,a,i,l,u,c,f,h);for(var p=0;p<t.length;p++){var g=t[p],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(A(y.states,v),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var b=g.linePoints;_||!b?(A(m.states,v),m.ignore=!0):(PD(b,g.minTurnAngle),BV(b,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:b}),y.__hostTarget.textGuideLineConfig={anchor:new lt(b[0][0],b[0][1])})}}}function oo(r,e,t){var a=r.get("borderRadius");if(a==null)return t?{cornerRadius:0}:null;z(a)||(a=[a,a,a,a]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:G(a,function(n){return Ar(n,i)})}}var Az=function(r){k(e,r);function e(t,a,i){var n=r.call(this)||this;n.z2=2;var o=new Tt;return n.setTextContent(o),n.updateData(t,a,i,!0),n}return e.prototype.updateData=function(t,a,i,n){var o=this,s=t.hostModel,l=t.getItemModel(a),u=l.getModel("emphasis"),f=t.getItemLayout(a),h=V(oo(l.getModel("itemStyle"),f,!0),f);if(isNaN(h.startAngle)){o.setShape(h);return}if(n){o.setShape(h);var c=s.getShallow("animationType");s.ecModel.ssr?(Ft(o,{scaleX:0,scaleY:0},s,{dataIndex:a,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):c==="scale"?(o.shape.r=f.r0,Ft(o,{shape:{r:f.r}},s,a)):i!=null?(o.setShape({startAngle:i,endAngle:i}),Ft(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,a)):(o.shape.endAngle=f.startAngle,At(o,{shape:{endAngle:f.endAngle}},s,a))}else Dr(o),At(o,{shape:h},s,a);o.useStyle(t.getItemVisual(a,"style")),pe(o,l);var v=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(v)*d,g=Math.sin(v)*d,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,t,a),o.ensureState("emphasis").shape=V({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},oo(u.getModel("itemStyle"),f)),V(o.ensureState("select"),{x:p,y:g,shape:oo(l.getModel(["select","itemStyle"]),f)}),V(o.ensureState("blur"),{shape:oo(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&V(m.ensureState("select"),{x:p,y:g}),V(_.ensureState("select"),{x:p,y:g}),Ut(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,a,i){var n=this,o=a.getItemModel(i),s=o.getModel("labelLine"),l=a.getItemVisual(i,"style"),u=l&&l.fill,f=l&&l.opacity;we(n,he(o),{labelFetcher:a.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:t.getFormattedLabel(i,"normal")||a.getName(i)});var h=n.getTextContent();n.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var c=t.get(["label","position"]);if(c!=="outside"&&c!=="outer")n.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new Ge,this.setTextGuideLine(v)),my(this,_y(o),{stroke:u,opacity:ua(s.get(["lineStyle","opacity"]),f,1)})}},e}(Ve),Dz=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,a,i,n){var o=t.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h<o.count();++h)f=o.getItemLayout(h);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var c=new Ve({shape:sM(t,i)});c.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,l.add(c)}o.diff(s).add(function(v){var d=new Az(o,v,u);o.setItemGraphicEl(v,d),l.add(d)}).update(function(v,d){var p=s.getItemGraphicEl(d);p.updateData(o,v,u),p.off("click"),l.add(p),o.setItemGraphicEl(v,p)}).remove(function(v){var d=s.getItemGraphicEl(v);al(d,t,v)}).execute(),Cz(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,a){var i=a.getData(),n=i.getItemLayout(0);if(n){var o=t[0]-n.cx,s=t[1]-n.cy,l=Math.sqrt(o*o+s*s);return l<=n.r&&l>=n.r0}},e.type="pie",e}(zt),Mz=Dz;function $o(r,e,t){e=z(e)&&{coordDimensions:e}||V({encodeDefine:r.getEncode()},e);var a=r.getSource(),i=Bl(a,e).dimensions,n=new Me(i,r);return n.initData(a,t),n}var Lz=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var a=this._getDataWithEncodedVisual();return a.getItemVisual(e,t)},r}(),Wl=Lz,Iz=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Wl(Y(this.getData,this),Y(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){var t=$o(this,{coordDimensions:["value"],encodeDefaulter:ot(Xg,this)}),a=[];return t.each(t.mapDimension("value"),function(i){a.push(i)}),this.seats=HP(a,t.hostModel.get("percentPrecision")),t},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.call(this,t);return a.percent=this.seats[t],a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){gn(t,"labelLine",["show"]);var a=t.labelLine,i=t.emphasis.labelLine;a.show=a.show&&t.label.show,i.show=i.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,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}(Ht),Pz=Iz;function Rz(r){return{seriesType:r,reset:function(e,t){var a=e.getData();a.filterSelf(function(i){var n=a.mapDimension("value"),o=a.get(n,i);return!(Ct(o)&&!isNaN(o)&&o<0)})}}}function Ez(r){r.registerChartView(Mz),r.registerSeriesModel(Pz),MA("pie",r.registerAction),r.registerLayout(ot(bz,"pie")),r.registerProcessor($l("pie")),r.registerProcessor(Rz("pie"))}var kz=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,a){return Ta(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,a,i){return i.point(a.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}(Ht),Oz=kz,uM=4,Nz=function(){function r(){}return r}(),Bz=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return e.prototype.getDefaultShape=function(){return new Nz},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,a){var i=a.points,n=a.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&n[0]<uM,f=this.softClipShape,h;if(u){this._ctx=l;return}for(this._ctx=null,h=this._off;h<i.length;){var c=i[h++],v=i[h++];isNaN(c)||isNaN(v)||f&&!f.contain(c,v)||(s.x=c-n[0]/2,s.y=v-n[1]/2,s.width=n[0],s.height=n[1],o.buildPath(t,s,!0))}this.incremental&&(this._off=h,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,a=t.points,i=t.size,n=this._ctx,o=this.softClipShape,s;if(!!n){for(s=this._off;s<a.length;){var l=a[s++],u=a[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||n.fillRect(l-i[0]/2,u-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,a){for(var i=this.shape,n=i.points,o=i.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=n.length/2-1;u>=0;u--){var f=u*2,h=n[f]-s/2,c=n[f+1]-l/2;if(t>=h&&a>=c&&t<=h+s&&a<=c+l)return u}return-1},e.prototype.contain=function(t,a){var i=this.transformCoordToLocal(t,a),n=this.getBoundingRect();if(t=i[0],a=i[1],n.contain(t,a)){var o=this.hoverDataIdx=this.findDataIndex(t,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,i=a.points,n=a.size,o=n[0],s=n[1],l=1/0,u=1/0,f=-1/0,h=-1/0,c=0;c<i.length;){var v=i[c++],d=i[c++];l=Math.min(v,l),f=Math.max(v,f),u=Math.min(d,u),h=Math.max(d,h)}t=this._rect=new ht(l-o/2,u-s/2,f-l+o,h-u+s)}return t},e}(yt),Vz=function(){function r(){this.group=new at}return r.prototype.updateData=function(e,t){this._clear();var a=this._create();a.setShape({points:e.getLayout("points")}),this._setCommon(a,e,t)},r.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(a){if(a.startIndex!=null){var i=(a.endIndex-a.startIndex)*2,n=a.startIndex*4*2;t=new Float32Array(t.buffer,n,i)}a.setShape("points",t),a.reset()})},r.prototype.incrementalPrepareUpdate=function(e){this._clear()},r.prototype.incrementalUpdate=function(e,t,a){var i=this._newAdded[0],n=t.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+n.length);l.set(o),l.set(n,s),i.endIndex=e.end,i.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:n}),this._setCommon(u,t,a)}},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new Bz({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},r.prototype._setCommon=function(e,t,a){var i=t.hostModel;a=a||{};var n=t.getVisual("symbolSize");e.setShape("size",n instanceof Array?n:[n,n]),e.softClipShape=a.clipShape||null,e.symbolProxy=te(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<uM;e.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=it(e);u.seriesIndex=i.seriesIndex,e.on("mousemove",function(f){u.dataIndex=null;var h=e.hoverDataIdx;h>=0&&(u.dataIndex=h+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),zz=Vz,Gz=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){var n=t.getData(),o=this._updateSymbolDraw(n,t);o.updateData(n,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,i){var n=t.getData(),o=this._updateSymbolDraw(n,t);o.incrementalPrepareUpdate(n),this._finished=!1},e.prototype.incrementalRender=function(t,a,i){this._symbolDraw.incrementalUpdate(t,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=t.end===a.getData().count()},e.prototype.updateTransform=function(t,a,i){var n=t.getData();if(this.group.dirty(),!this._finished||n.count()>1e4)return{update:!0};var o=Hl("").reset(t,a,i);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(n)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var a=t.coordinateSystem,i=a&&a.getArea&&a.getArea();return t.get("clip",!0)?i:null},e.prototype._updateSymbolDraw=function(t,a){var i=this._symbolDraw,n=a.pipelineContext,o=n.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new zz:new Fl,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(zt),Fz=Gz,Hz=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return 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}(wt),$z=Hz,Ip=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Qt).models[0]},e.type="cartesian2dAxis",e}(wt);ee(Ip,zl);var fM={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,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Wz=ft({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},fM),Ty=ft({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}}},fM),Uz=ft({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Ty),Yz=Q({logBase:10},Ty),hM={category:Wz,value:Ty,time:Uz,log:Yz},Zz={value:1,category:1,time:1,log:1};function So(r,e,t,a){A(Zz,function(i,n){var o=ft(ft({},hM[n],!0),a,!0),s=function(l){k(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+n,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var c=ol(this),v=c?Bo(f):{},d=h.getTheme();ft(f,d.get(n+"Axis")),ft(f,this.getDefaultOption()),f.type=Y1(f),c&&ai(f,v,c)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=wp.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+n,u.defaultOption=o,u}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",Y1)}function Y1(r){return r.type||(r.data?"category":"value")}var Xz=function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return G(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Et(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r}(),qz=Xz,Pp=["x","y"];function Z1(r){return r.type==="interval"||r.type==="time"}var Kz=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=Pp,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!Z1(t)||!Z1(a))){var i=t.getExtent(),n=a.getExtent(),o=this.dataToPoint([i[0],n[0]]),s=this.dataToPoint([i[1],n[1]]),l=i[1]-i[0],u=n[1]-n[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,c=o[0]-i[0]*f,v=o[1]-n[0]*h,d=this._transform=[f,0,0,h,c,v];this._invTransform=Lo([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var a=this.getAxis("x"),i=this.getAxis("y");return a.contain(a.toLocalCoord(t[0]))&&i.contain(i.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,a){var i=this.dataToPoint(t),n=this.dataToPoint(a),o=this.getArea(),s=new ht(i[0],i[1],n[0]-i[0],n[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,a,i){i=i||[];var n=t[0],o=t[1];if(this._transform&&n!=null&&isFinite(n)&&o!=null&&isFinite(o))return ce(i,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(n,a)),i[1]=l.toGlobalCoord(l.dataToCoord(o,a)),i},e.prototype.clampData=function(t,a){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,o=i.getExtent(),s=n.getExtent(),l=i.parse(t[0]),u=n.parse(t[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},e.prototype.pointToData=function(t,a){var i=[];if(this._invTransform)return ce(i,t,this._invTransform);var n=this.getAxis("x"),o=this.getAxis("y");return i[0]=n.coordToData(n.toLocalCoord(t[0]),a),i[1]=o.coordToData(o.toLocalCoord(t[1]),a),i},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(t[0],t[1]),n=Math.min(a[0],a[1]),o=Math.max(t[0],t[1])-i,s=Math.max(a[0],a[1])-n;return new ht(i,n,o,s)},e}(qz),Jz=function(r){k(e,r);function e(t,a,i,n,o){var s=r.call(this,t,a,i)||this;return s.index=0,s.type=n||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),t&&a[0]>a[1]&&a.reverse(),a},e.prototype.pointToData=function(t,a){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),a)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Lr),Qz=Jz;function Rp(r,e,t){t=t||{};var a=r.coordinateSystem,i=e.axis,n={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,f=a.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],c={left:0,right:1,top:0,bottom:1,onZero:2},v=e.get("offset")||0,d=u==="x"?[h[2]-v,h[3]+v]:[h[0]-v,h[1]+v];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[c.onZero]=Math.max(Math.min(p,d[1]),d[0])}n.position=[u==="y"?d[c[l]]:h[0],u==="x"?d[c[l]]:h[3]],n.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=g[s],n.labelOffset=o?d[c[s]]-d[c.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),ue(t.labelInside,e.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var y=e.get(["axisLabel","rotate"]);return n.labelRotate=l==="top"?-y:y,n.z2=1,n}function X1(r){return r.get("coordinateSystem")==="cartesian2d"}function q1(r){var e={xAxisModel:null,yAxisModel:null};return A(e,function(t,a){var i=a.replace(/Model$/,""),n=r.getReferringComponents(i,Qt).models[0];e[a]=n}),e}var Cc=Math.log;function vM(r,e,t){var a=ni.prototype,i=a.getTicks.call(t),n=a.getTicks.call(t,!0),o=i.length-1,s=a.getInterval.call(t),l=_D(r,e),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var c=Cc(r.base);u=[Cc(u[0])/c,Cc(u[1])/c]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var v=a.getExtent.call(r);f&&(u[0]=v[0]),h&&(u[1]=v[1]);var d=a.getInterval.call(r),p=u[0],g=u[1];if(f&&h)d=(g-p)/o;else if(f)for(g=u[0]+d*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)d=hc(d),g=u[0]+d*o;else if(h)for(p=u[1]-d*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)d=hc(d),p=u[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=hc(d));var m=d*o;g=Math.ceil(u[1]/d)*d,p=qt(g-m),p<0&&u[0]>=0?(p=0,g=qt(m)):g>0&&u[1]<=0&&(g=0,p=-qt(m))}var _=(i[0].value-n[0].value)/s,S=(i[o].value-n[o].value)/s;a.setExtent.call(r,p+d*_,g+d*S),a.setInterval.call(r,d),(_||S)&&a.setNiceExtent.call(r,p+d,g-d)}var jz=function(){function r(e,t,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Pp,this._initCartesian(e,t,a),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var a=this._axesMap;this._updateScale(e,this.model);function i(o){var s,l=St(o),u=l.length;if(!!u){for(var f=[],h=u-1;h>=0;h--){var c=+l[h],v=o[c],d=v.model,p=v.scale;Tp(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(mo(p,d),Tp(p)&&(s=v))}f.length&&(s||(s=f.pop(),mo(s.scale,s.model)),A(f,function(g){vM(g.scale,g.model,s.scale)}))}}i(a.x),i(a.y);var n={};A(a.x,function(o){K1(a,"y",o,n)}),A(a.y,function(o){K1(a,"x",o,n)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,a){var i=e.getBoxLayoutParams(),n=!a&&e.get("containLabel"),o=ae(i,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),n&&(A(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=cV(u);if(f){var h=u.isHorizontal()?"height":"width",c=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+c,u.position==="top"?o.y+=f.height+c:u.position==="left"&&(o.x+=f.width+c)}}}),l()),A(this._coordsList,function(u){u.calcAffineTransform()});function l(){A(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],c=u.inverse?1:0;u.setExtent(h[c],h[1-c]),t3(u,f?o.x:o.y)})}},r.prototype.getAxis=function(e,t){var a=this._axesMap[e];if(a!=null)return a[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var a="x"+e+"y"+t;return this._coordsMap[a]}tt(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,n=this._coordsList;i<n.length;i++)if(n[i].getAxis("x").index===e||n[i].getAxis("y").index===t)return n[i]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,a){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.dataToPoint(a):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(a)):null},r.prototype.convertFromPixel=function(e,t,a){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.pointToData(a):i.axis?i.axis.coordToData(i.axis.toLocalCoord(a)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,a=e.xAxisModel||t&&t.getReferringComponents("xAxis",Qt).models[0],i=e.yAxisModel||t&&t.getReferringComponents("yAxis",Qt).models[0],n=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,ct(o,s)<0&&(s=null);else if(a&&i)s=this.getCartesian(a.componentIndex,i.componentIndex);else if(a)l=this.getAxis("x",a.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(n){var u=n.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,a){var i=this,n=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,A(s.x,function(f,h){A(s.y,function(c,v){var d="x"+h+"y"+v,p=new Kz(d);p.master=i,p.model=e,i._coordsMap[d]=p,i._coordsList.push(p),p.addAxis(f),p.addAxis(c)})});function u(f){return function(h,c){if(!!Ac(h,e)){var v=h.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new Qz(f,Xh(h),[0,0],h.get("type"),v),p=d.type==="category";d.onBand=p&&h.get("boundaryGap"),d.inverse=h.get("inverse"),h.axis=d,d.model=h,d.grid=n,d.index=c,n._axesList.push(d),s[f][c]=d,l[f]++}}}},r.prototype._updateScale=function(e,t){A(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var n=i.model.get("categorySortInfo");i.scale.setSortInfo(n)}}),e.eachSeries(function(i){if(X1(i)){var n=q1(i),o=n.xAxisModel,s=n.yAxisModel;if(!Ac(o,t)||!Ac(s,t))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),f=l.getAxis("x"),h=l.getAxis("y");a(u,f),a(u,h)}},this);function a(i,n){A(Yf(i,n.dim),function(o){n.scale.unionExtentFromData(i,o)})}},r.prototype.getTooltipAxes=function(e){var t=[],a=[];return A(this.getCartesians(),function(i){var n=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(n);ct(t,n)<0&&t.push(n),ct(a,o)<0&&a.push(o)}),{baseAxes:t,otherAxes:a}},r.create=function(e,t){var a=[];return e.eachComponent("grid",function(i,n){var o=new r(i,e,t);o.name="grid_"+n,o.resize(i,t,!0),i.coordinateSystem=o,a.push(o)}),e.eachSeries(function(i){if(!!X1(i)){var n=q1(i),o=n.xAxisModel,s=n.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),a},r.dimensions=Pp,r}();function Ac(r,e){return r.getCoordSysModel()===e}function K1(r,e,t,a){t.getAxesOnZeroOf=function(){return n?[n]:[]};var i=r[e],n,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)J1(i[l])&&(n=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&J1(i[u])&&!a[f(i[u])]){n=i[u];break}n&&(a[f(n)]=!0);function f(h){return h.dim+"_"+h.index}}function J1(r){return r&&r.type!=="category"&&r.type!=="time"&&vV(r)}function t3(r,e){var t=r.getExtent(),a=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(i){return i+e}:function(i){return a-i+e},r.toLocalCoord=r.dim==="x"?function(i){return i-e}:function(i){return a-i+e}}var e3=jz,Za=Math.PI,cn=function(){function r(e,t){this.group=new at,this.opt=t,this.axisModel=e,Q(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var a=new at({x:t.position[0],y:t.position[1],rotation:t.rotation});a.updateTransform(),this._transformGroup=a}return r.prototype.hasBuilder=function(e){return!!Q1[e]},r.prototype.add=function(e){Q1[e](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(e,t,a){var i=vT(t-e),n,o;return Lf(i)?(o=a>0?"top":"bottom",n="center"):Lf(i-Za)?(o=a>0?"bottom":"top",n="center"):(o="middle",i>0&&i<Za?n=a>0?"right":"left":n=a>0?"left":"right"),{rotation:i,textAlign:n,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r}(),Q1={axisLine:function(r,e,t,a){var i=e.get(["axisLine","show"]);if(i==="auto"&&r.handleAutoShown&&(i=r.handleAutoShown("axisLine")),!!i){var n=e.axis.getExtent(),o=a.transform,s=[n[0],0],l=[n[1],0],u=s[0]>l[0];o&&(ce(s,s,o),ce(l,l,o));var f=V({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new fe({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});po(h.shape,h.style.lineWidth),h.anid="line",t.add(h);var c=e.get(["axisLine","symbol"]);if(c!=null){var v=e.get(["axisLine","symbolSize"]);U(c)&&(c=[c,c]),(U(v)||Ct(v))&&(v=[v,v]);var d=Ho(e.get(["axisLine","symbolOffset"])||0,v),p=v[0],g=v[1];A([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(c[m]!=="none"&&c[m]!=null){var _=te(c[m],-p/2,-g/2,p,g,f.stroke,!0),S=y.r+y.offset,b=u?l:s;_.attr({rotation:y.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(r,e,t,a){var i=i3(t,a,e,r),n=o3(t,a,e,r);if(a3(e,n,i),n3(t,a,e,r.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=RD(G(n,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));OD(o)}},axisName:function(r,e,t,a){var i=ue(r.axisName,e.get("name"));if(!!i){var n=e.get("nameLocation"),o=r.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),f=u[0]>u[1]?-1:1,h=[n==="start"?u[0]-f*l:n==="end"?u[1]+f*l:(u[0]+u[1])/2,tS(n)?r.labelOffset+o*l:0],c,v=e.get("nameRotate");v!=null&&(v=v*Za/180);var d;tS(n)?c=cn.innerTextLayout(r.rotation,v!=null?v:r.rotation,o):(c=r3(r.rotation,n,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(c.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=e.get("nameTruncate",!0)||{},y=g.ellipsis,m=ue(r.nameTruncateMaxWidth,g.maxWidth,d),_=new Tt({x:h[0],y:h[1],rotation:c.rotation,silent:cn.isLabelSilent(e),style:Bt(s,{text:i,font:p,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||c.textAlign,verticalAlign:s.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(Eo({el:_,componentModel:e,itemName:i}),_.__fullText=i,_.anid="name",e.get("triggerEvent")){var S=cn.makeAxisEventDataBase(e);S.targetType="axisName",S.name=i,it(_).eventData=S}a.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function r3(r,e,t,a){var i=vT(t-r),n,o,s=a[0]>a[1],l=e==="start"&&!s||e!=="start"&&s;return Lf(i-Za/2)?(o=l?"bottom":"top",n="center"):Lf(i-Za*1.5)?(o=l?"top":"bottom",n="center"):(o="middle",i<Za*1.5&&i>Za/2?n=l?"left":"right":n=l?"right":"left"),{rotation:i,textAlign:n,textVerticalAlign:o}}function a3(r,e,t){if(!SD(r.axis)){var a=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var n=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],f=t[1],h=t[t.length-1],c=t[t.length-2];a===!1?(Ke(n),Ke(u)):j1(n,o)&&(a?(Ke(o),Ke(f)):(Ke(n),Ke(u))),i===!1?(Ke(s),Ke(h)):j1(l,s)&&(i?(Ke(l),Ke(c)):(Ke(s),Ke(h)))}}function Ke(r){r&&(r.ignore=!0)}function j1(r,e){var t=r&&r.getBoundingRect().clone(),a=e&&e.getBoundingRect().clone();if(!(!t||!a)){var i=Sh([]);return Cn(i,i,-r.rotation),t.applyTransform(ha([],i,r.getLocalTransform())),a.applyTransform(ha([],i,e.getLocalTransform())),t.intersect(a)}}function tS(r){return r==="middle"||r==="center"}function cM(r,e,t,a,i){for(var n=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=t,e&&(ce(o,o,e),ce(s,s,e));var f=new fe({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});po(f.shape,f.style.lineWidth),f.anid=i+"_"+r[l].tickValue,n.push(f)}return n}function i3(r,e,t,a){var i=t.axis,n=t.getModel("axisTick"),o=n.get("show");if(o==="auto"&&a.handleAutoShown&&(o=a.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=n.getModel("lineStyle"),l=a.tickDirection*n.get("length"),u=i.getTicksCoords(),f=cM(u,e.transform,l,Q(s.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)r.add(f[h]);return f}}function n3(r,e,t,a){var i=t.axis,n=t.getModel("minorTick");if(!(!n.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(!!o.length)for(var s=n.getModel("lineStyle"),l=a*n.get("length"),u=Q(s.getLineStyle(),Q(t.getModel("axisTick").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var h=cM(o[f],e.transform,l,u,"minorticks_"+f),c=0;c<h.length;c++)r.add(h[c])}}function o3(r,e,t,a){var i=t.axis,n=ue(a.axisLabelShow,t.get(["axisLabel","show"]));if(!(!n||i.scale.isBlank())){var o=t.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(ue(a.labelRotate,o.get("rotate"))||0)*Za/180,f=cn.innerTextLayout(a.rotation,u,a.labelDirection),h=t.getCategories&&t.getCategories(!0),c=[],v=cn.isLabelSilent(t),d=t.get("triggerEvent");return A(l,function(p,g){var y=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,m=p.formattedLabel,_=p.rawLabel,S=o;if(h&&h[y]){var b=h[y];tt(b)&&b.textStyle&&(S=new Vt(b.textStyle,o,t.ecModel))}var x=S.getTextColor()||t.get(["axisLine","lineStyle","color"]),w=i.dataToCoord(y),T=new Tt({x:w,y:a.labelOffset+a.labelDirection*s,rotation:f.rotation,silent:v,z2:10+(p.level||0),style:Bt(S,{text:m,align:S.getShallow("align",!0)||f.textAlign,verticalAlign:S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||f.textVerticalAlign,fill:J(x)?x(i.type==="category"?_:i.type==="value"?y+"":y,g):x})});if(T.anid="label_"+y,d){var C=cn.makeAxisEventDataBase(t);C.targetType="axisLabel",C.value=_,C.tickIndex=g,i.type==="category"&&(C.dataIndex=y),it(T).eventData=C}e.add(T),T.updateTransform(),c.push(T),r.add(T),T.decomposeTransform()}),c}}var xa=cn;function s3(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return l3(t,r,e),t.seriesInvolved&&f3(t,r),t}function l3(r,e,t){var a=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),n=i.get("link",!0)||[],o=[];A(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=dl(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,h=f.getModel("tooltip",a);if(A(s.getAxes(),ot(p,!1,null)),s.getTooltipAxes&&a&&h.get("show")){var c=h.get("trigger")==="axis",v=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(c||v)&&A(d.baseAxes,ot(p,v?"cross":!0,c)),v&&A(d.otherAxes,ot(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",i),S=_.get("show");if(!(!S||S==="auto"&&!g&&!Ep(_))){y==null&&(y=_.get("triggerTooltip")),_=g?u3(m,h,i,e,g,y):_;var b=_.get("snap"),x=dl(m.model),w=y||b||m.type==="category",T=r.axesInfo[x]={key:x,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,involveSeries:w,snap:b,useHandle:Ep(_),seriesModels:[],linkGroup:null};u[x]=T,r.seriesInvolved=r.seriesInvolved||w;var C=h3(n,m);if(C!=null){var D=o[C]||(o[C]={axesInfo:{}});D.axesInfo[x]=T,D.mapper=n[C].mapper,T.linkGroup=D}}}})}function u3(r,e,t,a,i,n){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};A(s,function(c){l[c]=et(o.get(c))}),l.snap=r.type!=="category"&&!!n,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f!=null?f:!0,!n){var h=l.lineStyle=o.get("crossStyle");h&&Q(u,h.textStyle)}}return r.model.getModel("axisPointer",new Vt(l,t,a))}function f3(r,e){e.eachSeries(function(t){var a=t.coordinateSystem,i=t.get(["tooltip","trigger"],!0),n=t.get(["tooltip","show"],!0);!a||i==="none"||i===!1||i==="item"||n===!1||t.get(["axisPointer","show"],!0)===!1||A(r.coordSysAxesInfo[dl(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function h3(r,e){for(var t=e.model,a=e.dim,i=0;i<r.length;i++){var n=r[i]||{};if(Dc(n[a+"AxisId"],t.id)||Dc(n[a+"AxisIndex"],t.componentIndex)||Dc(n[a+"AxisName"],t.name))return i}}function Dc(r,e){return r==="all"||z(r)&&ct(r,e)>=0||r===e}function v3(r){var e=Cy(r);if(!!e){var t=e.axisPointerModel,a=e.axis.scale,i=t.option,n=t.get("status"),o=t.get("value");o!=null&&(o=a.parse(o));var s=Ep(t);n==null&&(i.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function Cy(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[dl(r)]}function c3(r){var e=Cy(r);return e&&e.axisPointerModel}function Ep(r){return!!r.get(["handle","show"])}function dl(r){return r.type+"||"+r.id}var eS={},d3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i,n){this.axisPointerClass&&v3(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,i,!0)},e.prototype.updateAxisPointer=function(t,a,i,n){this._doUpdateAxisPointerClass(t,i,!1)},e.prototype.remove=function(t,a){var i=this._axisPointer;i&&i.remove(a)},e.prototype.dispose=function(t,a){this._disposeAxisPointer(a),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,a,i){var n=e.getAxisPointerClass(this.axisPointerClass);if(!!n){var o=c3(t);o?(this._axisPointer||(this._axisPointer=new n)).render(t,o,a,i):this._disposeAxisPointer(a)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,a){eS[t]=a},e.getAxisPointerClass=function(t){return t&&eS[t]},e.type="axis",e}(Yt),Ln=d3,kp=Dt();function dM(r,e,t,a){var i=t.axis;if(!i.scale.isBlank()){var n=t.getModel("splitArea"),o=n.getModel("areaStyle"),s=o.get("color"),l=a.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:n,clamp:!0});if(!!u.length){var f=s.length,h=kp(r).splitAreaColors,c=K(),v=0;if(h)for(var d=0;d<u.length;d++){var p=h.get(u[d].tickValue);if(p!=null){v=(p+(f-1)*d)%f;break}}var g=i.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=z(s)?s:[s];for(var d=1;d<u.length;d++){var m=i.toGlobalCoord(u[d].coord),_=void 0,S=void 0,b=void 0,x=void 0;i.isHorizontal()?(_=g,S=l.y,b=m-_,x=l.height,g=_+b):(_=l.x,S=g,b=l.width,x=m-S,g=S+x);var w=u[d-1].tickValue;w!=null&&c.set(w,v),e.add(new bt({anid:w!=null?"area_"+w:null,shape:{x:_,y:S,width:b,height:x},style:Q({fill:s[v]},y),autoBatch:!0,silent:!0})),v=(v+1)%f}kp(r).splitAreaColors=c}}}function pM(r){kp(r).splitAreaColors=null}var p3=["axisLine","axisTickLabel","axisName"],g3=["splitArea","splitLine","minorSplitLine"],gM=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,a,i,n){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new at,this.group.add(this._axisGroup),!!t.get("show")){var s=t.getCoordSysModel(),l=Rp(s,t),u=new xa(t,V({handleAutoShown:function(h){for(var c=s.coordinateSystem.getCartesians(),v=0;v<c.length;v++)if(Tp(c[v].getOtherAxis(t.axis).scale))return!0;return!1}},l));A(p3,u.add,u),this._axisGroup.add(u.getGroup()),A(g3,function(h){t.get([h,"show"])&&y3[h](this,this._axisGroup,t,s)},this);var f=n&&n.type==="changeAxisOrder"&&n.isInitSort;f||Il(o,this._axisGroup,t),r.prototype.render.call(this,t,a,i,n)}},e.prototype.remove=function(){pM(this)},e.type="cartesianAxis",e}(Ln),y3={splitLine:function(r,e,t,a){var i=t.axis;if(!i.scale.isBlank()){var n=t.getModel("splitLine"),o=n.getModel("lineStyle"),s=o.get("color");s=z(s)?s:[s];for(var l=a.coordinateSystem.getRect(),u=i.isHorizontal(),f=0,h=i.getTicksCoords({tickModel:n}),c=[],v=[],d=o.getLineStyle(),p=0;p<h.length;p++){var g=i.toGlobalCoord(h[p].coord);u?(c[0]=g,c[1]=l.y,v[0]=g,v[1]=l.y+l.height):(c[0]=l.x,c[1]=g,v[0]=l.x+l.width,v[1]=g);var y=f++%s.length,m=h[p].tickValue,_=new fe({anid:m!=null?"line_"+h[p].tickValue:null,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:v[0],y2:v[1]},style:Q({stroke:s[y]},d),silent:!0});po(_.shape,d.lineWidth),e.add(_)}}},minorSplitLine:function(r,e,t,a){var i=t.axis,n=t.getModel("minorSplitLine"),o=n.getModel("lineStyle"),s=a.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(!!u.length)for(var f=[],h=[],c=o.getLineStyle(),v=0;v<u.length;v++)for(var d=0;d<u[v].length;d++){var p=i.toGlobalCoord(u[v][d].coord);l?(f[0]=p,f[1]=s.y,h[0]=p,h[1]=s.y+s.height):(f[0]=s.x,f[1]=p,h[0]=s.x+s.width,h[1]=p);var g=new fe({anid:"minor_line_"+u[v][d].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:c,silent:!0});po(g.shape,c.lineWidth),e.add(g)}},splitArea:function(r,e,t,a){dM(r,e,t,a)}},yM=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e}(gM),m3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=yM.type,t}return e.type="yAxis",e}(gM),_3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,a){this.group.removeAll(),t.get("show")&&this.group.add(new bt({shape:t.coordinateSystem.getRect(),style:Q({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Yt),rS={offset:0};function mM(r){r.registerComponentView(_3),r.registerComponentModel($z),r.registerCoordinateSystem("cartesian2d",e3),So(r,"x",Ip,rS),So(r,"y",Ip,rS),r.registerComponentView(yM),r.registerComponentView(m3),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function S3(r){dt(mM),r.registerSeriesModel(Oz),r.registerChartView(Fz),r.registerLayout(Hl("scatter"))}function x3(r){r.eachSeriesByType("radar",function(e){var t=e.getData(),a=[],i=e.coordinateSystem;if(!!i){var n=i.getIndicatorAxes();A(n,function(o,s){t.each(t.mapDimension(n[s].dim),function(l,u){a[u]=a[u]||[];var f=i.dataToPoint(l,s);a[u][s]=aS(f)?f:iS(i)})}),t.each(function(o){var s=fI(a[o],function(l){return aS(l)})||iS(i);a[o].push(s.slice()),t.setItemLayout(o,a[o])})}})}function aS(r){return!isNaN(r[0])&&!isNaN(r[1])}function iS(r){return[r.cx,r.cy]}function b3(r){var e=r.polar;if(e){z(e)||(e=[e]);var t=[];A(e,function(a,i){a.indicator?(a.type&&!a.shape&&(a.shape=a.type),r.radar=r.radar||[],z(r.radar)||(r.radar=[r.radar]),r.radar.push(a)):t.push(a)}),r.polar=t}A(r.series,function(a){a&&a.type==="radar"&&a.polarIndex&&(a.radarIndex=a.polarIndex)})}var w3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){var n=t.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(c,v){var d=c.getItemVisual(v,"symbol")||"circle";if(d!=="none"){var p=Ol(c.getItemVisual(v,"symbolSize")),g=te(d,-1,-1,2,2),y=c.getItemVisual(v,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:y*Math.PI/180||0}),g}}function f(c,v,d,p,g,y){d.removeAll();for(var m=0;m<v.length-1;m++){var _=u(p,g);_&&(_.__dimIdx=m,c[m]?(_.setPosition(c[m]),Rl[y?"initProps":"updateProps"](_,{x:v[m][0],y:v[m][1]},t,g)):_.setPosition(v[m]),d.add(_))}}function h(c){return G(c,function(v){return[n.cx,n.cy]})}s.diff(l).add(function(c){var v=s.getItemLayout(c);if(!!v){var d=new ze,p=new Ge,g={shape:{points:v}};d.shape.points=h(v),p.shape.points=h(v),Ft(d,g,t,c),Ft(p,g,t,c);var y=new at,m=new at;y.add(p),y.add(d),y.add(m),f(p.shape.points,v,m,s,c,!0),s.setItemGraphicEl(c,y)}}).update(function(c,v){var d=l.getItemGraphicEl(v),p=d.childAt(0),g=d.childAt(1),y=d.childAt(2),m={shape:{points:s.getItemLayout(c)}};!m.shape.points||(f(p.shape.points,m.shape.points,y,s,c,!1),Dr(g),Dr(p),At(p,m,t),At(g,m,t),s.setItemGraphicEl(c,d))}).remove(function(c){o.remove(l.getItemGraphicEl(c))}).execute(),s.eachItemGraphicEl(function(c,v){var d=s.getItemModel(v),p=c.childAt(0),g=c.childAt(1),y=c.childAt(2),m=s.getItemVisual(v,"style"),_=m.fill;o.add(c),p.useStyle(Q(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),pe(p,d,"lineStyle"),pe(g,d,"areaStyle");var S=d.getModel("areaStyle"),b=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=b,A(["emphasis","select","blur"],function(T){var C=d.getModel([T,"areaStyle"]),D=C.isEmpty()&&C.parentModel.isEmpty();g.ensureState(T).ignore=D&&b}),g.useStyle(Q(S.getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var x=d.getModel("emphasis"),w=x.getModel("itemStyle").getItemStyle();y.eachChild(function(T){if(T instanceof ge){var C=T.style;T.useStyle(V({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},m))}else T.useStyle(m),T.setColor(_),T.style.strokeNoScale=!0;var D=T.ensureState("emphasis");D.style=et(w);var M=s.getStore().get(s.getDimensionIndex(T.__dimIdx),v);(M==null||isNaN(M))&&(M=""),we(T,he(d),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:T.__dimIdx,defaultText:M,inheritColor:_,defaultOpacity:m.opacity})}),Ut(c,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(zt),T3=w3,C3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Wl(Y(this.getData,this),Y(this.getRawData,this))},e.prototype.getInitialData=function(t,a){return $o(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,a,i){var n=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,f=gA(this,t);return oe("section",{header:u,sortBlocks:!0,blocks:G(s,function(h){var c=n.get(n.mapDimension(h.dim),t);return oe("nameValue",{markerType:"subItem",markerColor:f,name:h.name,value:c,sortParam:c})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var a=this.getData(),i=this.coordinateSystem,n=a.getValues(G(i.dimensions,function(u){return a.mapDimension(u)}),t),o=0,s=n.length;o<s;o++)if(!isNaN(n[o])){var l=i.getIndicatorAxes();return i.coordToPoint(l[o].dataToCoord(n[o]),o)}}},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}(Ht),A3=C3,fs=hM.value;function Ou(r,e){return Q({show:e},r)}var D3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),a=this.get("splitNumber"),i=this.get("scale"),n=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),h=this.get("axisNameGap"),c=this.get("triggerEvent"),v=G(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=Q({color:d.color},l));var g=ft(et(d),{boundaryGap:t,splitNumber:a,scale:i,axisLine:n,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:p,triggerEvent:c},!1);if(U(f)){var y=g.name;g.name=f.replace("{value}",y!=null?y:"")}else J(f)&&(g.name=f(g.name,g));var m=new Vt(g,null,this.ecModel);return ee(m,zl.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=v},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:ft({lineStyle:{color:"#bbb"}},fs.axisLine),axisLabel:Ou(fs.axisLabel,!1),axisTick:Ou(fs.axisTick,!1),splitLine:Ou(fs.splitLine,!0),splitArea:Ou(fs.splitArea,!0),indicator:[]},e}(wt),M3=D3,L3=["axisLine","axisTickLabel","axisName"],I3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){var n=this.group;n.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var a=t.coordinateSystem,i=a.getIndicatorAxes(),n=G(i,function(o){var s=o.model.get("showName")?o.name:"",l=new xa(o.model,{axisName:s,position:[a.cx,a.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});A(n,function(o){A(L3,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var a=t.coordinateSystem,i=a.getIndicatorAxes();if(!i.length)return;var n=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),h=s.get("show"),c=l.get("color"),v=u.get("color"),d=z(c)?c:[c],p=z(v)?v:[v],g=[],y=[];function m(R,E,N){var O=N%E.length;return R[O]=R[O]||[],O}if(n==="circle")for(var _=i[0].getTicksCoords(),S=a.cx,b=a.cy,x=0;x<_.length;x++){if(f){var w=m(g,d,x);g[w].push(new Jr({shape:{cx:S,cy:b,r:_[x].coord}}))}if(h&&x<_.length-1){var w=m(y,p,x);y[w].push(new Lh({shape:{cx:S,cy:b,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var T,C=G(i,function(R,E){var N=R.getTicksCoords();return T=T==null?N.length-1:Math.min(N.length-1,T),G(N,function(O){return a.coordToPoint(O.coord,E)})}),D=[],x=0;x<=T;x++){for(var M=[],L=0;L<i.length;L++)M.push(C[L][x]);if(M[0]&&M.push(M[0].slice()),f){var w=m(g,d,x);g[w].push(new Ge({shape:{points:M}}))}if(h&&D){var w=m(y,p,x-1);y[w].push(new ze({shape:{points:M.concat(D)}}))}D=M.slice().reverse()}var I=l.getLineStyle(),P=u.getAreaStyle();A(y,function(R,E){this.group.add(sr(R,{style:Q({stroke:"none",fill:p[E%p.length]},P),silent:!0}))},this),A(g,function(R,E){this.group.add(sr(R,{style:Q({fill:"none",stroke:d[E%d.length]},I),silent:!0}))},this)},e.type="radar",e}(Yt),P3=I3,R3=function(r){k(e,r);function e(t,a,i){var n=r.call(this,t,a,i)||this;return n.type="value",n.angle=0,n.name="",n}return e}(Lr),E3=R3,k3=function(){function r(e,t,a){this.dimensions=[],this._model=e,this._indicatorAxes=G(e.getIndicatorModels(),function(i,n){var o="indicator_"+n,s=new E3(o,new ni);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),s},this),this.resize(e,a)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var a=this._indicatorAxes[t];return this.coordToPoint(a.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var a=this._indicatorAxes[t],i=a.angle,n=this.cx+e*Math.cos(i),o=this.cy-e*Math.sin(i);return[n,o]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,i=Math.sqrt(t*t+a*a);t/=i,a/=i;for(var n=Math.atan2(-a,t),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],h=Math.abs(n-f.angle);h<o&&(s=f,l=u,o=h)}return[l,+(s&&s.coordToData(i))]},r.prototype.resize=function(e,t){var a=e.get("center"),i=t.getWidth(),n=t.getHeight(),o=Math.min(i,n)/2;this.cx=H(a[0],i),this.cy=H(a[1],n),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(U(s)||Ct(s))&&(s=[0,s]),this.r0=H(s[0],o),this.r=H(s[1],o),A(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var f=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;f=Math.atan2(Math.sin(f),Math.cos(f)),l.angle=f},this)},r.prototype.update=function(e,t){var a=this._indicatorAxes,i=this._model;A(a,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==i)){var u=s.getData();A(a,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var n=i.get("splitNumber"),o=new ni;o.setExtent(0,n),o.setInterval(1),A(a,function(s,l){vM(s.scale,s.model,o)})},r.prototype.convertToPixel=function(e,t,a){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,a){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var a=[];return e.eachComponent("radar",function(i){var n=new r(i,e,t);a.push(n),i.coordinateSystem=n}),e.eachSeriesByType("radar",function(i){i.get("coordinateSystem")==="radar"&&(i.coordinateSystem=a[i.get("radarIndex")||0])}),a},r.dimensions=[],r}(),O3=k3;function N3(r){r.registerCoordinateSystem("radar",O3),r.registerComponentModel(M3),r.registerComponentView(P3),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(a){t.setItemVisual(a,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}function B3(r){dt(N3),r.registerChartView(T3),r.registerSeriesModel(A3),r.registerLayout(x3),r.registerProcessor($l("radar")),r.registerPreprocessor(b3)}var nS="\0_ec_interaction_mutex";function V3(r,e,t){var a=Ay(r);a[e]=t}function z3(r,e,t){var a=Ay(r),i=a[e];i===t&&(a[e]=null)}function oS(r,e){return!!Ay(r)[e]}function Ay(r){return r[nS]||(r[nS]={})}jr({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},jt);var G3=function(r){k(e,r);function e(t){var a=r.call(this)||this;a._zr=t;var i=Y(a._mousedownHandler,a),n=Y(a._mousemoveHandler,a),o=Y(a._mouseupHandler,a),s=Y(a._mousewheelHandler,a),l=Y(a._pinchHandler,a);return a.enable=function(u,f){this.disable(),this._opt=Q(et(f)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(t.on("mousedown",i),t.on("mousemove",n),t.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(t.on("mousewheel",s),t.on("pinch",l))},a.disable=function(){t.off("mousedown",i),t.off("mousemove",n),t.off("mouseup",o),t.off("mousewheel",s),t.off("pinch",l)},a}return 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(!Rm(t)){for(var a=t.target;a;){if(a.draggable)return;a=a.__hostTarget||a.parent}var i=t.offsetX,n=t.offsetY;this.pointerChecker&&this.pointerChecker(t,i,n)&&(this._x=i,this._y=n,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(!(!this._dragging||!pf("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||oS(this._zr,"globalPan"))){var a=t.offsetX,i=t.offsetY,n=this._x,o=this._y,s=a-n,l=i-o;this._x=a,this._y=i,this._opt.preventDefaultMouseMove&&ga(t.event),_M(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:n,oldY:o,newX:a,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){Rm(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var a=pf("zoomOnMouseWheel",t,this._opt),i=pf("moveOnMouseWheel",t,this._opt),n=t.wheelDelta,o=Math.abs(n),s=t.offsetX,l=t.offsetY;if(!(n===0||!a&&!i)){if(a){var u=o>3?1.4:o>1?1.2:1.1,f=n>0?u:1/u;Mc(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(i){var h=Math.abs(n),c=(n>0?1:-1)*(h>3?.4:h>1?.15:.05);Mc(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!oS(this._zr,"globalPan")){var a=t.pinchScale>1?1.1:1/1.1;Mc(this,"zoom",null,t,{scale:a,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(cr);function Mc(r,e,t,a,i){r.pointerChecker&&r.pointerChecker(a,i.originX,i.originY)&&(ga(a.event),_M(r,e,t,a,i))}function _M(r,e,t,a,i){i.isAvailableBehavior=Y(pf,null,t,a),r.trigger(e,i)}function pf(r,e,t){var a=t[r];return!r||a&&(!U(a)||e.event[a+"Key"])}var Ul=G3;function Dy(r,e,t){var a=r.target;a.x+=e,a.y+=t,a.dirty()}function My(r,e,t,a){var i=r.target,n=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=e,n){var s=n.min||0,l=n.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,i.x-=(t-i.x)*(u-1),i.y-=(a-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var F3={axisPointer:1,tooltip:1,brush:1};function Jh(r,e,t){var a=e.getComponentByElement(r.topTarget),i=a&&a.coordinateSystem;return a&&a!==t&&!F3.hasOwnProperty(a.mainType)&&i&&i.model!==t}function SM(r){if(U(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var Lc,Qf={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"},sS=St(Qf),jf={"alignment-baseline":"textBaseline","stop-color":"stopColor"},lS=St(jf),H3=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var a=SM(e);this._defsUsePending=[];var i=new at;this._root=i;var n=[],o=a.getAttribute("viewBox")||"",s=parseFloat(a.getAttribute("width")||t.width),l=parseFloat(a.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),He(a,i,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,i,n,null,!1,!1),u=u.nextSibling;U3(this._defs,this._defsUsePending),this._defsUsePending=[];var f,h;if(o){var c=Qh(o);c.length>=4&&(f={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(f&&s!=null&&l!=null&&(h=bM(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var v=i;i=new at,i.add(v),v.scaleX=v.scaleY=h.scale,v.x=h.x,v.y=h.y}return!t.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new bt({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:f,viewBoxTransform:h,named:n}},r.prototype._parseNode=function(e,t,a,i,n,o){var s=e.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(n=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!n){var f=Lc[s];if(f&&Z(Lc,s)){l=f.call(this,e,t);var h=e.getAttribute("name");if(h){var c={name:h,namedFrom:null,svgNodeTagLower:s,el:l};a.push(c),s==="g"&&(u=c)}else i&&a.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});t.add(l)}}var v=uS[s];if(v&&Z(uS,s)){var d=v.call(this,e),p=e.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,a,u,n,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(e,t){var a=new tl({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Je(t,a),He(e,a,this._defsUsePending,!1,!1),$3(a,t);var i=a.style,n=i.fontSize;n&&n<9&&(i.fontSize=9,a.scaleX*=n/9,a.scaleY*=n/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=a.getBoundingRect();return this._textX+=s.width,t.add(a),a},r.internalField=function(){Lc={g:function(e,t){var a=new at;return Je(t,a),He(e,a,this._defsUsePending,!1,!1),a},rect:function(e,t){var a=new bt;return Je(t,a),He(e,a,this._defsUsePending,!1,!1),a.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),a.silent=!0,a},circle:function(e,t){var a=new Jr;return Je(t,a),He(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),a.silent=!0,a},line:function(e,t){var a=new fe;return Je(t,a),He(e,a,this._defsUsePending,!1,!1),a.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),a.silent=!0,a},ellipse:function(e,t){var a=new Bg;return Je(t,a),He(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),a.silent=!0,a},polygon:function(e,t){var a=e.getAttribute("points"),i;a&&(i=vS(a));var n=new ze({shape:{points:i||[]},silent:!0});return Je(t,n),He(e,n,this._defsUsePending,!1,!1),n},polyline:function(e,t){var a=e.getAttribute("points"),i;a&&(i=vS(a));var n=new Ge({shape:{points:i||[]},silent:!0});return Je(t,n),He(e,n,this._defsUsePending,!1,!1),n},image:function(e,t){var a=new ge;return Je(t,a),He(e,a,this._defsUsePending,!1,!1),a.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),a.silent=!0,a},text:function(e,t){var a=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",n=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(n),this._textY=parseFloat(i)+parseFloat(o);var s=new at;return Je(t,s),He(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var a=e.getAttribute("x"),i=e.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),i!=null&&(this._textY=parseFloat(i));var n=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new at;return Je(t,s),He(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(n),this._textY+=parseFloat(o),s},path:function(e,t){var a=e.getAttribute("d")||"",i=QT(a);return Je(t,i),He(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),r}(),uS={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),i=parseInt(r.getAttribute("y2")||"0",10),n=new Ll(e,t,a,i);return fS(r,n),hS(r,n),n},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),i=new hC(e,t,a);return fS(r,i),hS(r,i),i}};function fS(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function hS(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var a=t.getAttribute("offset"),i=void 0;a&&a.indexOf("%")>0?i=parseInt(a,10)/100:a?i=parseFloat(a):i=0;var n={};xM(t,n,n);var o=n.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:o})}t=t.nextSibling}}function Je(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Q(e.__inheritedStyle,r.__inheritedStyle))}function vS(r){for(var e=Qh(r),t=[],a=0;a<e.length;a+=2){var i=parseFloat(e[a]),n=parseFloat(e[a+1]);t.push([i,n])}return t}function He(r,e,t,a,i){var n=e,o=n.__inheritedStyle=n.__inheritedStyle||{},s={};r.nodeType===1&&(X3(r,e),xM(r,o,s),a||q3(r,o,s)),n.style=n.style||{},o.fill!=null&&(n.style.fill=cS(n,"fill",o.fill,t)),o.stroke!=null&&(n.style.stroke=cS(n,"stroke",o.stroke,t)),A(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(n.style[l]=parseFloat(o[l]))}),A(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(n.style[l]=o[l])}),i&&(n.__selfStyle=s),o.lineDash&&(n.style.lineDash=G(Qh(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(n.invisible=!0),o.display==="none"&&(n.ignore=!0)}function $3(r,e){var t=e.__selfStyle;if(t){var a=t.textBaseline,i=a;!a||a==="auto"||a==="baseline"?i="alphabetic":a==="before-edge"||a==="text-before-edge"?i="top":a==="after-edge"||a==="text-after-edge"?i="bottom":(a==="central"||a==="mathematical")&&(i="middle"),r.style.textBaseline=i}var n=e.__inheritedStyle;if(n){var o=n.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var W3=/^url\(\s*#(.*?)\)/;function cS(r,e,t,a){var i=t&&t.match(W3);if(i){var n=br(i[1]);a.push([r,e,n]);return}return t==="none"&&(t=null),t}function U3(r,e){for(var t=0;t<e.length;t++){var a=e[t];a[0].style[a[1]]=r[a[2]]}}var Y3=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Qh(r){return r.match(Y3)||[]}var Z3=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Ic=Math.PI/180;function X3(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var a=[],i=null;t.replace(Z3,function(h,c,v){return a.push(c,v),""});for(var n=a.length-1;n>0;n-=2){var o=a[n],s=a[n-1],l=Qh(o);switch(i=i||hr(),s){case"translate":Zr(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":bg(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Cn(i,i,-parseFloat(l[0])*Ic);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Ic);ha(i,[1,0,u,1,0,0],i);break;case"skewY":var f=Math.tan(parseFloat(l[0])*Ic);ha(i,[1,f,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}e.setLocalTransform(i)}}var dS=/([^\s:;]+)\s*:\s*([^:;]+)/g;function xM(r,e,t){var a=r.getAttribute("style");if(!!a){dS.lastIndex=0;for(var i;(i=dS.exec(a))!=null;){var n=i[1],o=Z(Qf,n)?Qf[n]:null;o&&(e[o]=i[2]);var s=Z(jf,n)?jf[n]:null;s&&(t[s]=i[2])}}}function q3(r,e,t){for(var a=0;a<sS.length;a++){var i=sS[a],n=r.getAttribute(i);n!=null&&(e[Qf[i]]=n)}for(var a=0;a<lS.length;a++){var i=lS[a],n=r.getAttribute(i);n!=null&&(t[jf[i]]=n)}}function bM(r,e){var t=e.width/r.width,a=e.height/r.height,i=Math.min(t,a);return{scale:i,x:-(r.x+r.width/2)*i+(e.x+e.width/2),y:-(r.y+r.height/2)*i+(e.y+e.height/2)}}function K3(r,e){var t=new H3;return t.parse(r,e)}var J3=K(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Q3=function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=K(),this._freedGraphics=[],this._mapName=e,this._parsedXML=SM(t)}return r.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=tG(e.named),a=t.regions,i=t.regionsMap;this._regions=a,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,a;try{t=e&&K3(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},a=t.root,Le(a!=null)}catch(g){throw new Error(`Invalid svg format
`+g.message)}var i=new at;i.add(a),i.isGeoSVGGraphicRoot=!0;var n=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,h=void 0,c=void 0;if(n!=null?(u=0,h=n):s&&(u=s.x,h=s.width),o!=null?(f=0,c=o):s&&(f=s.y,c=s.height),u==null||f==null){var v=a.getBoundingRect();u==null&&(u=v.x,h=v.width),f==null&&(f=v.y,c=v.height)}l=this._boundingRect=new ht(u,f,h,c)}if(s){var d=bM(s,l);a.scaleX=a.scaleY=d.scale,a.x=d.x,a.y=d.y}i.setClipPath(new bt({shape:l.plain()}));var p=[];return A(t.named,function(g){J3.get(g.svgNodeTagLower)!=null&&(p.push(g),j3(g.el))}),{root:i,boundingRect:l,named:p}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,a),a)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);a&&(t.removeKey(e),this._freedGraphics.push(a))},r}();function j3(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function tG(r){var e=[],t=K();return A(r,function(a){if(a.namedFrom==null){var i=new _V(a.name,a.el);e.push(i),t.set(a.name,i)}}),{regions:e,regionsMap:t}}var Op=[126,25],pS="\u5357\u6D77\u8BF8\u5C9B",Hi=[[[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]]];for(var zi=0;zi<Hi.length;zi++)for(var $n=0;$n<Hi[zi].length;$n++)Hi[zi][$n][0]/=10.5,Hi[zi][$n][1]/=-10.5/.75,Hi[zi][$n][0]+=Op[0],Hi[zi][$n][1]+=Op[1];function eG(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===pS)return;e.push(new bD(pS,G(Hi,function(a){return{type:"polygon",exterior:a}}),Op))}}var rG={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function aG(r,e){if(r==="china"){var t=rG[e.name];if(t){var a=e.getCenter();a[0]+=t[0]/10.5,a[1]+=-t[1]/(10.5/.75),e.setCenter(a)}}}var iG=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function nG(r,e){r==="china"&&e.name==="\u53F0\u6E7E"&&e.geometries.push({type:"polygon",exterior:iG[0]})}var oG="name",sG=function(){function r(e,t,a){this.type="geoJSON",this._parsedMap=K(),this._mapName=e,this._specialAreas=a,this._geoJSON=uG(t)}return r.prototype.load=function(e,t){t=t||oG;var a=this._parsedMap.get(t);if(!a){var i=this._parseToRegions(t);a=this._parsedMap.set(t,{regions:i,boundingRect:lG(i)})}var n=K(),o=[];return A(a.regions,function(s){var l=s.name;e&&Z(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),n.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new ht(0,0,0,0),regionsMap:n}},r.prototype._parseToRegions=function(e){var t=this._mapName,a=this._geoJSON,i;try{i=a?xV(a,e):[]}catch(n){throw new Error(`Invalid geoJson format
`+n.message)}return eG(t,i),A(i,function(n){var o=n.name;aG(t,n),nG(t,n);var s=this._specialAreas&&this._specialAreas[o];s&&n.transformTo(s.left,s.top,s.width,s.height)},this),i},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function lG(r){for(var e,t=0;t<r.length;t++){var a=r[t].getBoundingRect();e=e||a.clone(),e.union(a)}return e}function uG(r){return U(r)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var hs=K(),ba={registerMap:function(r,e,t){if(e.svg){var a=new Q3(r,e.svg);hs.set(r,a)}else{var i=e.geoJson||e.geoJSON;i&&!e.features?t=e.specialAreas:i=e;var a=new sG(r,i,t);hs.set(r,a)}},getGeoResource:function(r){return hs.get(r)},getMapForUser:function(r){var e=hs.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var a=hs.get(r);if(!!a)return a.load(e,t)}},Ly=["rect","circle","line","ellipse","polygon","polyline","path"],fG=K(Ly),hG=K(Ly.concat(["g"])),vG=K(Ly.concat(["g"])),wM=Dt();function Nu(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function gS(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var cG=function(){function r(e){var t=new at;this.uid=Oo("ec_map_draw"),this._controller=new Ul(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new at),t.add(this._svgGroup=new at)}return r.prototype.draw=function(e,t,a,i,n){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===e&&(s=y.getData())});var l=e.coordinateSystem,u=this._regionsGroup,f=this.group,h=l.getTransformInfo(),c=h.raw,v=h.roam,d=!u.childAt(0)||n;d?(f.x=v.x,f.y=v.y,f.scaleX=v.scaleX,f.scaleY=v.scaleY,f.dirty()):At(f,v,e);var p=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:a,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:c};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,a),this._updateMapSelectHandler(e,u,a,i)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=K(),a=K(),i=this._regionsGroup,n=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(v,d){return d&&(v=d(v)),v&&[v[0]*n.scaleX+n.x,v[1]*n.scaleY+n.y]}function h(v){for(var d=[],p=!u&&l&&l.project,g=0;g<v.length;++g){var y=f(v[g],p);y&&d.push(y)}return d}function c(v){return{shape:{points:h(v)}}}i.removeAll(),A(e.geo.regions,function(v){var d=v.name,p=t.get(d),g=a.get(d)||{},y=g.dataIdx,m=g.regionModel;p||(p=t.set(d,new at),i.add(p),y=s?s.indexOfName(d):null,m=e.isGeo?o.getRegionModel(d):s?s.getItemModel(y):null,a.set(d,{dataIdx:y,regionModel:m}));var _=[],S=[];A(v.geometries,function(w){if(w.type==="polygon"){var T=[w.exterior].concat(w.interiors||[]);u&&(T=bS(T,u)),A(T,function(D){_.push(new ze(c(D)))})}else{var C=w.points;u&&(C=bS(C,u,!0)),A(C,function(D){S.push(new Ge(c(D)))})}});var b=f(v.getCenter(),l&&l.project);function x(w,T){if(!!w.length){var C=new zg({culling:!0,segmentIgnoreThreshold:1,shape:{paths:w}});p.add(C),yS(e,C,y,m),mS(e,C,d,m,o,y,b),T&&(gS(C),A(C.states,gS))}}x(_),x(S,!0)}),t.each(function(v,d){var p=a.get(d),g=p.dataIdx,y=p.regionModel;_S(e,v,d,y,o,g),SS(e,v,d,y,o),xS(e,v,d,y,o)},this)},r.prototype._buildSVG=function(e){var t=e.geo.map,a=e.transformInfoRaw;this._svgGroup.x=a.x,this._svgGroup.y=a.y,this._svgGroup.scaleX=a.scaleX,this._svgGroup.scaleY=a.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var i=this._svgDispatcherMap=K(),n=!1;A(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,f=o.svgNodeTagLower,h=o.el,c=u?u.indexOfName(s):null,v=l.getRegionModel(s);if(fG.get(f)!=null&&h instanceof vr&&yS(e,h,c,v),h instanceof vr&&(h.culling=!0),h.z2EmphasisLift=0,!o.namedFrom&&(vG.get(f)!=null&&mS(e,h,s,v,l,c,null),_S(e,h,s,v,l,c),SS(e,h,s,v,l),hG.get(f)!=null)){var d=xS(e,h,s,v,l);d==="self"&&(n=!0);var p=i.get(s)||i.set(s,[]);p.push(h)}},this),this._enableBlurEntireSVG(n,e)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var a=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=a.opacity;this._svgGraphicRecord.root.traverse(function(n){if(!n.isGroup){_n(n);var o=n.ensureState("blur").style||{};o.opacity==null&&i!=null&&(o.opacity=i),n.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var a=t.coordinateSystem;if(a.resourceType==="geoJSON"){var i=this._regionsGroupByName;if(i){var n=i.get(e);return n?[n]:[]}}else if(a.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},r.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},r.prototype._useSVG=function(e){var t=ba.getGeoResource(e);if(t&&t.type==="geoSVG"){var a=t.useGraphic(this.uid);this._svgGroup.add(a.root),this._svgGraphicRecord=a,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=ba.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(e,t,a){var i=e.coordinateSystem,n=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=i.getZoom(),n.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}n.off("pan").on("pan",function(u){this._mouseDownFlag=!1,Dy(o,u.dx,u.dy),a.dispatchAction(V(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),n.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,My(o,u.scale,u.originX,u.originY),a.dispatchAction(V(l(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),n.setPointerChecker(function(u,f,h){return i.containPoint([f,h])&&!Jh(u,a,e)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=wM(t).ignore)})},r.prototype._updateMapSelectHandler=function(e,t,a,i){var n=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){n._mouseDownFlag=!0}),t.on("click",function(o){!n._mouseDownFlag||(n._mouseDownFlag=!1)}))},r}();function yS(r,e,t,a){var i=a.getModel("itemStyle"),n=a.getModel(["emphasis","itemStyle"]),o=a.getModel(["blur","itemStyle"]),s=a.getModel(["select","itemStyle"]),l=Nu(i),u=Nu(n),f=Nu(s),h=Nu(o),c=r.data;if(c){var v=c.getItemVisual(t,"style"),d=c.getItemVisual(t,"decal");r.isVisualEncodedByVisualMap&&v.fill&&(l.fill=v.fill),d&&(l.decal=yo(d,r.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=f,e.ensureState("blur").style=h,_n(e)}function mS(r,e,t,a,i,n,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),n)),f=s&&s.getItemLayout(n);if(l||u||f&&f.showLabel){var h=l?t:n,c=void 0;(!s||n>=0)&&(c=i);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;we(e,he(a),{labelFetcher:c,labelDataIndex:h,defaultText:t},v);var d=e.getTextContent();if(d&&(wM(d).ignore=d.ignore,e.textConfig&&o)){var p=e.getBoundingRect().clone();e.textConfig.layoutRect=p,e.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function _S(r,e,t,a,i,n){r.data?r.data.setItemGraphicEl(n,e):it(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:t,region:a&&a.option||{}}}function SS(r,e,t,a,i){r.data||Eo({el:e,componentModel:i,itemName:t,itemTooltipOption:a.get("tooltip")})}function xS(r,e,t,a,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var n=a.getModel("emphasis"),o=n.get("focus");return Ut(e,o,n.get("blurScope"),n.get("disabled")),r.isGeo&&yE(e,i,t),o}function bS(r,e,t){var a=[],i;function n(){i=[]}function o(){i.length&&(a.push(i),i=[])}var s=e({polygonStart:n,polygonEnd:o,lineStart:n,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),A(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),a}var TM=cG,dG=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i,n){if(!(n&&n.type==="mapToggleSelect"&&n.from===this.uid)){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&n&&n.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),n&&n.type==="geoRoam"&&n.componentType==="series"&&n.seriesId===t.id){var s=this._mapDraw;s&&o.add(s.group)}else if(t.needsDrawMap){var s=this._mapDraw||new TM(i);o.add(s.group),s.draw(t,a,i,this,n),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&a.getComponent("legend")&&this._renderSymbols(t,a,i)}}},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,a,i){var n=t.originalData,o=this.group;n.each(n.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=n.getItemLayout(l);if(!(!u||!u.point)){var f=u.point,h=u.offset,c=new Jr({style:{fill:t.getData().getVisual("style").fill},shape:{cx:f[0]+h*9,cy:f[1],r:3},silent:!0,z2:8+(h?0:Po+1)});if(!h){var v=t.mainSeries.getData(),d=n.getName(l),p=v.indexOfName(d),g=n.getItemModel(l),y=g.getModel("label"),m=v.getItemGraphicEl(p);we(c,he(g),{labelFetcher:{getFormattedLabel:function(_,S){return t.getFormattedLabel(p,S)}},defaultText:d}),c.disableLabelAnimation=!0,y.get("position")||c.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(_){Pf(c,_)}}o.add(c)}}})},e.type="map",e}(zt),pG=dG,gG=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(a){if(a!=null){var i=this.getData().getName(a),n=this.coordinateSystem,o=n.getRegion(i);return o&&n.dataToPoint(o.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var a=$o(this,{coordDimensions:["value"],encodeDefaulter:ot(Xg,this)}),i=K(),n=[],o=0,s=a.count();o<s;o++){var l=a.getName(o);i.set(l,!0)}var u=ba.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return A(u.regions,function(f){var h=f.name;i.get(h)||n.push(h)}),a.appendValues([],n),a},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return t!=null?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var a=this.getData();return a.get(a.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var a=this.getData();return a.getItemModel(a.indexOfName(t))},e.prototype.formatTooltip=function(t,a,i){for(var n=this.getData(),o=this.getRawValue(t),s=n.getName(t),l=this.seriesGroup,u=[],f=0;f<l.length;f++){var h=l[f].originalData.indexOfName(s),c=n.mapDimension("value");isNaN(l[f].originalData.get(c,h))||u.push(l[f].name)}return oe("section",{header:u.join(", "),noHeader:!u.length,blocks:[oe("nameValue",{name:s,value:o})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var a=t.icon||"roundRect",i=te(a,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return i.setStyle(t.itemStyle),i.style.stroke="none",a.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},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}(Ht),yG=gG;function mG(r,e){var t={};return A(r,function(a){a.each(a.mapDimension("value"),function(i,n){var o="ec-"+a.getName(n);t[o]=t[o]||[],isNaN(i)||t[o].push(i)})}),r[0].map(r[0].mapDimension("value"),function(a,i){for(var n="ec-"+r[0].getName(i),o=0,s=1/0,l=-1/0,u=t[n].length,f=0;f<u;f++)s=Math.min(s,t[n][f]),l=Math.max(l,t[n][f]),o+=t[n][f];var h;return e==="min"?h=s:e==="max"?h=l:e==="average"?h=o/u:h=o,u===0?NaN:h})}function _G(r){var e={};r.eachSeriesByType("map",function(t){var a=t.getHostGeoModel(),i=a?"o"+a.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)}),A(e,function(t,a){for(var i=mG(G(t,function(o){return o.getData()}),t[0].get("mapValueCalculation")),n=0;n<t.length;n++)t[n].originalData=t[n].getData();for(var n=0;n<t.length;n++)t[n].seriesGroup=t,t[n].needsDrawMap=n===0&&!t[n].getHostGeoModel(),t[n].setData(i.cloneShallow()),t[n].mainSeries=t[0]})}function SG(r){var e={};r.eachSeriesByType("map",function(t){var a=t.getMapType();if(!(t.getHostGeoModel()||e[a])){var i={};A(t.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,f){var h=l.getName(f),c=s.getRegion(h);if(!(!c||isNaN(u))){var v=i[h]||0,d=s.dataToPoint(c.getCenter());i[h]=v+1,l.setItemLayout(f,{point:d,offset:v})}})});var n=t.getData();n.each(function(o){var s=n.getName(o),l=n.getItemLayout(o)||{};l.showLabel=!i[s],n.setItemLayout(o,l)}),e[a]=!0}})}var wS=ce,xG=function(r){k(e,r);function e(t){var a=r.call(this)||this;return a.type="view",a.dimensions=["x","y"],a._roamTransformable=new oa,a._rawTransformable=new oa,a.name=t,a}return e.prototype.setBoundingRect=function(t,a,i,n){return this._rect=new ht(t,a,i,n),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,a,i,n){this._transformTo(t,a,i,n),this._viewRect=new ht(t,a,i,n)},e.prototype._transformTo=function(t,a,i,n){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new ht(t,a,i,n));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(t,a){!t||(this._center=[H(t[0],a.getWidth()),H(t[1],a.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var a=this.zoomLimit;a&&(a.max!=null&&(t=Math.min(a.max,t)),a.min!=null&&(t=Math.max(a.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),a=t.x+t.width/2,i=t.y+t.height/2;return[a,i]},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(),a=this._roamTransformable,i=this.getDefaultCenter(),n=this.getCenter(),o=this.getZoom();n=ce([],n,t),i=ce([],i,t),a.originX=n[0],a.originY=n[1],a.x=i[0]-n[0],a.y=i[1]-n[1],a.scaleX=a.scaleY=o,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,a=this._rawTransformable;a.parent=t,t.updateTransform(),a.updateTransform(),xg(this.transform||(this.transform=[]),a.transform||hr()),this._rawTransform=a.getLocalTransform(),this.invTransform=this.invTransform||[],Lo(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,a=this._roamTransformable,i=new oa;return i.transform=a.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.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,a,i){var n=a?this._rawTransform:this.transform;return i=i||[],n?wS(i,t,n):Ce(i,t)},e.prototype.pointToData=function(t){var a=this.invTransform;return a?wS([],t,a):[t[0],t[1]]},e.prototype.convertToPixel=function(t,a,i){var n=TS(a);return n===this?n.dataToPoint(i):null},e.prototype.convertFromPixel=function(t,a,i){var n=TS(a);return n===this?n.pointToData(i):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(oa);function TS(r){var e=r.seriesModel;return e?e.coordinateSystem:null}var Yl=xG,bG={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},CM=["lng","lat"],AM=function(r){k(e,r);function e(t,a,i){var n=r.call(this,t)||this;n.dimensions=CM,n.type="geo",n._nameCoordMap=K(),n.map=a;var o=i.projection,s=ba.load(a,i.nameMap,i.nameProperty),l=ba.getGeoResource(a);n.resourceType=l?l.type:null;var u=n.regions=s.regions,f=bG[l.type];n._regionsMap=s.regionsMap,n.regions=s.regions,n.projection=o;var h;if(o)for(var c=0;c<u.length;c++){var v=u[c].getBoundingRect(o);h=h||v.clone(),h.union(v)}else h=s.boundingRect;return n.setBoundingRect(h.x,h.y,h.width,h.height),n.aspectScale=o?1:ut(i.aspectScale,f.aspectScale),n._invertLongitute=o?!1:f.invertLongitute,n}return e.prototype._transformTo=function(t,a,i,n){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new ht(t,a,i,n));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var a=this.regions,i=0;i<a.length;i++){var n=a[i];if(n.type==="geoJSON"&&n.contain(t))return a[i]}},e.prototype.addGeoCoord=function(t,a){this._nameCoordMap.set(t,a)},e.prototype.getGeoCoord=function(t){var a=this._regionsMap.get(t);return this._nameCoordMap.get(t)||a&&a.getCenter()},e.prototype.dataToPoint=function(t,a,i){if(U(t)&&(t=this.getGeoCoord(t)),t){var n=this.projection;return n&&(t=n.project(t)),t&&this.projectedToPoint(t,a,i)}},e.prototype.pointToData=function(t){var a=this.projection;return a&&(t=a.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(t){return r.prototype.pointToData.call(this,t)},e.prototype.projectedToPoint=function(t,a,i){return r.prototype.dataToPoint.call(this,t,a,i)},e.prototype.convertToPixel=function(t,a,i){var n=CS(a);return n===this?n.dataToPoint(i):null},e.prototype.convertFromPixel=function(t,a,i){var n=CS(a);return n===this?n.pointToData(i):null},e}(Yl);ee(AM,Yl);function CS(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",Qt).models[0]||{}).coordinateSystem:null}var AS=AM;function DS(r,e){var t=r.get("boundingCoords");if(t!=null){var a=t[0],i=t[1];if(isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])){var n=this.projection;if(n){var o=a[0],s=a[1],l=i[0],u=i[1];a=[1/0,1/0],i=[-1/0,-1/0];var f=function(x,w,T,C){for(var D=T-x,M=C-w,L=0;L<=100;L++){var I=L/100,P=n.project([x+D*I,w+M*I]);Fa(a,a,P),Ha(i,i,P)}};f(o,s,l,s),f(l,s,l,u),f(l,u,o,u),f(o,u,l,s)}this.setBoundingRect(a[0],a[1],i[0]-a[0],i[1]-a[1])}}var h=this.getBoundingRect(),c=r.get("layoutCenter"),v=r.get("layoutSize"),d=e.getWidth(),p=e.getHeight(),g=h.width/h.height*this.aspectScale,y=!1,m,_;c&&v&&(m=[H(c[0],d),H(c[1],p)],_=H(v,Math.min(d,p)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(_)&&(y=!0));var S;if(y)S={},g>1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var b=r.getBoxLayoutParams();b.aspect=g,S=ae(b,{width:d,height:p})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center"),e),this.setZoom(r.get("zoom"))}function wG(r,e){A(e.get("geoCoord"),function(t,a){r.addGeoCoord(a,t)})}var TG=function(){function r(){this.dimensions=CM}return r.prototype.create=function(e,t){var a=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new AS(l+s,l,V({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=DS,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=a[l]}});var n={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();n[s]=n[s]||[],n[s].push(o)}}),A(n,function(o,s){var l=G(o,function(f){return f.get("nameMap")}),u=new AS(s,s,V({nameMap:yg(l)},i(o[0])));u.zoomLimit=ue.apply(null,G(o,function(f){return f.get("scaleLimit")})),a.push(u),u.resize=DS,u.resize(o[0],t),A(o,function(f){f.coordinateSystem=u,wG(u,f)})}),a},r.prototype.getFilledRegions=function(e,t,a,i){for(var n=(e||[]).slice(),o=K(),s=0;s<n.length;s++)o.set(n[s].name,n[s]);var l=ba.load(t,a,i);return A(l.regions,function(u){var f=u.name;!o.get(f)&&n.push({name:f})}),n},r}(),CG=new TG,DM=CG,AG=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a,i){var n=ba.getGeoResource(t.map);if(n&&n.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(t,i),gn(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,a=this.option;a.regions=DM.getFilledRegions(a.regions,a.map,a.nameMap,a.nameProperty);var i={};this._optionModelMap=Yr(a.regions||[],function(n,o){var s=o.name;return s&&(n.set(s,new Vt(o,t,t.ecModel)),o.selected&&(i[s]=!0)),n},K()),a.selectedMap||(a.selectedMap=i)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Vt(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,a){var i=this.getRegionModel(t),n=a==="normal"?i.get(["label","formatter"]):i.get(["emphasis","label","formatter"]),o={name:t};if(J(n))return o.status=a,n(o);if(U(n))return n.replace("{a}",t!=null?t:"")},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var a=this.option,i=a.selectedMode;if(!!i){i!=="multiple"&&(a.selectedMap=null);var n=a.selectedMap||(a.selectedMap={});n[t]=!0}},e.prototype.unSelect=function(t){var a=this.option.selectedMap;a&&(a[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var a=this.option.selectedMap;return!!(a&&a[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}(wt),DG=AG;function MS(r,e){return r.pointToProjected?r.pointToProjected(e):r.pointToData(e)}function Iy(r,e,t,a){var i=r.getZoom(),n=r.getCenter(),o=e.zoom,s=r.projectedToPoint?r.projectedToPoint(n):r.dataToPoint(n);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,r.setCenter(MS(r,s),a)),o!=null){if(t){var l=t.min||0,u=t.max||1/0;o=Math.max(Math.min(i*o,u),l)/i}r.scaleX*=o,r.scaleY*=o;var f=(e.originX-r.x)*(o-1),h=(e.originY-r.y)*(o-1);r.x-=f,r.y-=h,r.updateTransform(),r.setCenter(MS(r,s),a),r.setZoom(o*i)}return{center:r.getCenter(),zoom:r.getZoom()}}var MG=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,a){this._api=a},e.prototype.render=function(t,a,i,n){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new TM(i));var o=this._mapDraw;o.draw(t,a,i,this,n),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,a,i)},e.prototype._handleRegionClick=function(t){var a;en(t.target,function(i){return(a=it(i).eventData)!=null},!0),a&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:a.name})},e.prototype.updateSelectStatus=function(t,a,i){var n=this;this._mapDraw.group.traverse(function(o){var s=it(o).eventData;if(s)return n._model.isSelected(s.name)?i.enterSelect(o):i.leaveSelect(o),!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}(Yt),LG=MG;function IG(r,e,t){ba.registerMap(r,e,t)}function MM(r){r.registerCoordinateSystem("geo",DM),r.registerComponentModel(DG),r.registerComponentView(LG),r.registerImpl("registerMap",IG),r.registerImpl("getMap",function(t){return ba.getMapForUser(t)});function e(t,a){a.update="geo:updateSelectStatus",r.registerAction(a,function(i,n){var o={},s=[];return n.eachComponent({mainType:"geo",query:i},function(l){l[t](i.name);var u=l.coordinateSystem;A(u.regions,function(h){o[h.name]=l.isSelected(h.name)||!1});var f=[];A(o,function(h,c){o[c]&&f.push(c)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:i.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,a,i){var n=t.componentType||"series";a.eachComponent({mainType:n,query:t},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=Iy(s,t,o.get("scaleLimit"),i);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),n==="series"&&A(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function PG(r){dt(MM),r.registerChartView(pG),r.registerSeriesModel(yG),r.registerLayout(SG),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,_G),MA("map",r.registerAction)}function RG(r){var e=r;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t=[e],a,i;a=t.pop();)if(i=a.children,a.isExpand&&i.length)for(var n=i.length,o=n-1;o>=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function EG(r,e){var t=r.isExpand?r.children:[],a=r.parentNode.children,i=r.hierNode.i?a[r.hierNode.i-1]:null;if(t.length){NG(r);var n=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;i?(r.hierNode.prelim=i.hierNode.prelim+e(r,i),r.hierNode.modifier=r.hierNode.prelim-n):r.hierNode.prelim=n}else i&&(r.hierNode.prelim=i.hierNode.prelim+e(r,i));r.parentNode.hierNode.defaultAncestor=BG(r,i,r.parentNode.hierNode.defaultAncestor||a[0],e)}function kG(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function LS(r){return arguments.length?r:GG}function Ms(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function OG(r,e){return ae(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function NG(r){for(var e=r.children,t=e.length,a=0,i=0;--t>=0;){var n=e[t];n.hierNode.prelim+=a,n.hierNode.modifier+=a,i+=n.hierNode.change,a+=n.hierNode.shift+i}}function BG(r,e,t,a){if(e){for(var i=r,n=r,o=n.parentNode.children[0],s=e,l=i.hierNode.modifier,u=n.hierNode.modifier,f=o.hierNode.modifier,h=s.hierNode.modifier;s=Pc(s),n=Rc(n),s&&n;){i=Pc(i),o=Rc(o),i.hierNode.ancestor=r;var c=s.hierNode.prelim+h-n.hierNode.prelim-u+a(s,n);c>0&&(zG(VG(s,r,t),r,c),u+=c,l+=c),h+=s.hierNode.modifier,u+=n.hierNode.modifier,l+=i.hierNode.modifier,f+=o.hierNode.modifier}s&&!Pc(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=h-l),n&&!Rc(o)&&(o.hierNode.thread=n,o.hierNode.modifier+=u-f,t=r)}return t}function Pc(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function Rc(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function VG(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function zG(r,e,t){var a=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=a,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=a}function GG(r,e){return r.parentNode===e.parentNode?1:2}var FG=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),HG=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new FG},e.prototype.buildPath=function(t,a){var i=a.childPoints,n=i.length,o=a.parentPoint,s=i[0],l=i[n-1];if(n===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=a.orient,f=u==="TB"||u==="BT"?0:1,h=1-f,c=H(a.forkPosition,1),v=[];v[f]=o[f],v[h]=o[h]+(l[h]-o[h])*c,t.moveTo(o[0],o[1]),t.lineTo(v[0],v[1]),t.moveTo(s[0],s[1]),v[f]=s[f],t.lineTo(v[0],v[1]),v[f]=l[f],t.lineTo(v[0],v[1]),t.lineTo(l[0],l[1]);for(var d=1;d<n-1;d++){var p=i[d];t.moveTo(p[0],p[1]),v[f]=p[f],t.lineTo(v[0],v[1])}},e}(yt),$G=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new at,t}return e.prototype.init=function(t,a){this._controller=new Ul(a.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,a,i){var n=t.getData(),o=t.layoutInfo,s=this._mainGroup,l=t.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(t,i),this._updateController(t,a,i);var u=this._data;n.diff(u).add(function(f){IS(n,f)&&PS(n,f,null,s,t)}).update(function(f,h){var c=u.getItemGraphicEl(h);if(!IS(n,f)){c&&ES(u,h,c,s,t);return}PS(n,f,c,s,t)}).remove(function(f){var h=u.getItemGraphicEl(f);h&&ES(u,f,h,s,t)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&n.eachItemGraphicEl(function(f,h){f.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:h})})}),this._data=n},e.prototype._updateViewCoordSys=function(t,a){var i=t.getData(),n=[];i.each(function(h){var c=i.getItemLayout(h);c&&!isNaN(c.x)&&!isNaN(c.y)&&n.push([+c.x,+c.y])});var o=[],s=[];Ah(n,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var f=t.coordinateSystem=new Yl;f.zoomLimit=t.get("scaleLimit"),f.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),f.setCenter(t.get("center"),a),f.setZoom(t.get("zoom")),this.group.attr({x:f.x,y:f.y,scaleX:f.scaleX,scaleY:f.scaleY}),this._min=o,this._max=s},e.prototype._updateController=function(t,a,i){var n=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,f,h){var c=l.getBoundingRect();return c.applyTransform(l.transform),c.contain(f,h)&&!Jh(u,i,t)}),o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){Dy(s,u.dx,u.dy),i.dispatchAction({seriesId:t.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){My(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),n._updateNodeAndLinkScale(t),i.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(t){var a=t.getData(),i=this._getNodeGlobalScale(t);a.eachItemGraphicEl(function(n,o){n.setSymbolScale(i)})},e.prototype._getNodeGlobalScale=function(t){var a=t.coordinateSystem;if(a.type!=="view")return 1;var i=this._nodeScaleRatio,n=a.scaleX||1,o=a.getZoom(),s=(o-1)*i+1;return s/n},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}(zt);function IS(r,e){var t=r.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function PS(r,e,t,a,i){var n=!t,o=r.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",f=r.tree.root,h=o.parentNode===f?o:o.parentNode||o,c=r.getItemGraphicEl(h.dataIndex),v=h.getLayout(),d=c?{x:c.__oldX,y:c.__oldY,rawX:c.__radialOldRawX,rawY:c.__radialOldRawY}:v,p=o.getLayout();n?(t=new Gl(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.x=d.x,t.y=d.y):t.updateData(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=p.rawX,t.__radialRawY=p.rawY,a.add(t),r.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,At(t,{x:p.x,y:p.y},i);var g=t.getSymbolPath();if(i.get("layout")==="radial"){var y=f.children[0],m=y.getLayout(),_=y.children.length,S=void 0,b=void 0;if(p.x===m.x&&o.isExpand===!0&&y.children.length){var x={x:(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2};S=Math.atan2(x.y-m.y,x.x-m.x),S<0&&(S=Math.PI*2+S),b=x.x<m.x,b&&(S=S-Math.PI)}else S=Math.atan2(p.y-m.y,p.x-m.x),S<0&&(S=Math.PI*2+S),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(b=p.x<m.x,b&&(S=S-Math.PI)):(b=p.x>m.x,b||(S=S-Math.PI));var w=b?"left":"right",T=s.getModel("label"),C=T.get("rotate"),D=C*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:T.get("position")||w,rotation:C==null?-S:D,origin:"center"}),M.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),I=L==="relative"?xf(o.getAncestorsIndices(),o.getDescendantIndices()):L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;I&&(it(t).focus=I),WG(i,o,f,t,d,v,p,a),t.__edge&&(t.onHoverStateChange=function(P){if(P!=="blur"){var R=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===Ml||Pf(t.__edge,P)}})}function WG(r,e,t,a,i,n,o,s){var l=e.getModel(),u=r.get("edgeShape"),f=r.get("layout"),h=r.getOrient(),c=r.get(["lineStyle","curveness"]),v=r.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=a.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(p||(p=a.__edge=new Ih({shape:Np(f,h,c,i,i)})),At(p,{shape:Np(f,h,c,n,o)},r));else if(u==="polyline"&&f==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var g=e.children,y=[],m=0;m<g.length;m++){var _=g[m].getLayout();y.push([_.x,_.y])}p||(p=a.__edge=new HG({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:h,forkPosition:v}})),At(p,{shape:{parentPoint:[o.x,o.y],childPoints:y}},r)}p&&!(u==="polyline"&&!e.isExpand)&&(p.useStyle(Q({strokeNoScale:!0,fill:null},d)),pe(p,l,"lineStyle"),_n(p),s.add(p))}function RS(r,e,t,a,i){var n=e.tree.root,o=LM(n,r),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(r.dataIndex);if(!!u){var f=e.getItemGraphicEl(s.dataIndex),h=f.__edge,c=u.__edge||(s.isExpand===!1||s.children.length===1?h:void 0),v=a.get("edgeShape"),d=a.get("layout"),p=a.get("orient"),g=a.get(["lineStyle","curveness"]);c&&(v==="curve"?ri(c,{shape:Np(d,p,g,l,l),style:{opacity:0}},a,{cb:function(){t.remove(c)},removeOpt:i}):v==="polyline"&&a.get("layout")==="orthogonal"&&ri(c,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},a,{cb:function(){t.remove(c)},removeOpt:i}))}}function LM(r,e){for(var t=e.parentNode===r?e:e.parentNode||e,a;a=t.getLayout(),a==null;)t=t.parentNode===r?t:t.parentNode||t;return{source:t,sourceLayout:a}}function ES(r,e,t,a,i){var n=r.tree.getNodeByDataIndex(e),o=r.tree.root,s=LM(o,n).sourceLayout,l={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};ri(t,{x:s.x+1,y:s.y+1},i,{cb:function(){a.remove(t),r.setItemGraphicEl(e,null)},removeOpt:l}),t.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),n.children.forEach(function(u){RS(u,r,a,i,l)}),RS(n,r,a,i,l)}function Np(r,e,t,a,i){var n,o,s,l,u,f,h,c;if(r==="radial"){u=a.rawX,h=a.rawY,f=i.rawX,c=i.rawY;var v=Ms(u,h),d=Ms(u,h+(c-h)*t),p=Ms(f,c+(h-c)*t),g=Ms(f,c);return{x1:v.x||0,y1:v.y||0,x2:g.x||0,y2:g.y||0,cpx1:d.x||0,cpy1:d.y||0,cpx2:p.x||0,cpy2:p.y||0}}else u=a.x,h=a.y,f=i.x,c=i.y,(e==="LR"||e==="RL")&&(n=u+(f-u)*t,o=h,s=f+(u-f)*t,l=c),(e==="TB"||e==="BT")&&(n=u,o=h+(c-h)*t,s=f,l=c+(h-c)*t);return{x1:u,y1:h,x2:f,y2:c,cpx1:n,cpy1:o,cpx2:s,cpy2:l}}var UG=$G,fr=Dt();function IM(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,PM(e,t,r),A(t,function(a){A(e.TRANSFERABLE_METHODS,function(i){a.wrapMethod(i,ot(YG,r))})}),e.wrapMethod("cloneShallow",ot(XG,r)),A(e.CHANGABLE_METHODS,function(a){e.wrapMethod(a,ot(ZG,r))}),Le(t[e.dataType]===e)}function YG(r,e){if(JG(this)){var t=V({},fr(this).datas);t[this.dataType]=e,PM(e,t,r)}else Py(e,this.dataType,fr(this).mainData,r);return e}function ZG(r,e){return r.struct&&r.struct.update(),e}function XG(r,e){return A(fr(e).datas,function(t,a){t!==e&&Py(t.cloneShallow(),a,e,r)}),e}function qG(r){var e=fr(this).mainData;return r==null||e==null?e:fr(e).datas[r]}function KG(){var r=fr(this).mainData;return r==null?[{data:r}]:G(St(fr(r).datas),function(e){return{type:e,data:fr(r).datas[e]}})}function JG(r){return fr(r).mainData===r}function PM(r,e,t){fr(r).datas={},A(e,function(a,i){Py(a,i,r,t)})}function Py(r,e,t,a){fr(t).datas[e]=r,fr(r).mainData=t,r.dataType=e,a.struct&&(r[a.structAttr]=a.struct,a.struct[a.datasAttr[e]]=r),r.getLinkedData=qG,r.getLinkedDataAll=KG}var QG=function(){function r(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(e,t,a){J(e)&&(a=t,t=e,e=null),e=e||{},U(e)&&(e={order:e});var i=e.order||"preorder",n=this[e.attr||"children"],o;i==="preorder"&&(o=t.call(a,this));for(var s=0;!o&&s<n.length;s++)n[s].eachNode(e,t,a);i==="postorder"&&t.call(a,this)},r.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var a=0;a<this.children.length;a++){var i=this.children[a];i.updateDepthAndHeight(e+1),i.height>t&&(t=i.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,a=this.children,i=a.length;t<i;t++){var n=a[t].getNodeById(e);if(n)return n}},r.prototype.contains=function(e){if(e===this)return!0;for(var t=0,a=this.children,i=a.length;t<i;t++){var n=a[t].contains(e);if(n)return n}},r.prototype.getAncestors=function(e){for(var t=[],a=e?this:this.parentNode;a;)t.push(a),a=a.parentNode;return t.reverse(),t},r.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},r.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},r.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},r.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,a=t.data.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},r.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},r.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},r}(),jG=function(){function r(e){this.type="tree",this._nodes=[],this.hostModel=e}return r.prototype.eachNode=function(e,t,a){this.root.eachNode(e,t,a)},r.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},r.prototype.getNodeById=function(e){return this.root.getNodeById(e)},r.prototype.update=function(){for(var e=this.data,t=this._nodes,a=0,i=t.length;a<i;a++)t[a].dataIndex=-1;for(var a=0,i=e.count();a<i;a++)t[e.getRawIndex(a)].dataIndex=a},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(e,t,a){var i=new r(t),n=[],o=1;s(e);function s(f,h){var c=f.value;o=Math.max(o,z(c)?c.length:1),n.push(f);var v=new QG(re(f.name,""),i);h?tF(v,h):i.root=v,i._nodes.push(v);var d=f.children;if(d)for(var p=0;p<d.length;p++)s(d[p],v)}i.root.updateDepthAndHeight(0);var l=Bl(n,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Me(l,t);return u.initData(n),a&&a(u),IM({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},r}();function tF(r,e){var t=e.children;r.parentNode!==e&&(t.push(r),r.parentNode=e)}var Ry=jG;function pl(r,e,t){if(r&&ct(e,r.type)>=0){var a=t.getData().tree.root,i=r.targetNode;if(U(i)&&(i=a.getNodeById(i)),i&&a.contains(i))return{node:i};var n=r.targetNodeId;if(n!=null&&(i=a.getNodeById(n)))return{node:i}}}function RM(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function Ey(r,e){var t=RM(r);return ct(t,e)>=0}function jh(r,e){for(var t=[];r;){var a=r.dataIndex;t.push({name:r.name,dataIndex:a,value:e.getRawValue(a)}),r=r.parentNode}return t.reverse(),t}var eF=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var a={name:t.name,children:t.data},i=t.leaves||{},n=new Vt(i,this,this.ecModel),o=Ry.createTree(a,this,s);function s(h){h.wrapMethod("getItemModel",function(c,v){var d=o.getNodeByDataIndex(v);return d&&d.children.length&&d.isExpand||(c.parentModel=n),c})}var l=0;o.eachNode("preorder",function(h){h.depth>l&&(l=h.depth)});var u=t.expandAndCollapse,f=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(h){var c=h.hostTree.data.getRawDataItem(h.dataIndex);h.isExpand=c&&c.collapsed!=null?!c.collapsed:h.depth<=f}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(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,a,i){for(var n=this.getData().tree,o=n.root.children[0],s=n.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return oe("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=jh(i,this),a.collapsed=!i.isExpand,a},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}(Ht),rF=eF;function aF(r,e,t){for(var a=[r],i=[],n;n=a.pop();)if(i.push(n),n.isExpand){var o=n.children;if(o.length)for(var s=0;s<o.length;s++)a.push(o[s])}for(;n=i.pop();)e(n,t)}function vs(r,e){for(var t=[r],a;a=t.pop();)if(e(a),a.isExpand){var i=a.children;if(i.length)for(var n=i.length-1;n>=0;n--)t.push(i[n])}}function iF(r,e){r.eachSeriesByType("tree",function(t){nF(t,e)})}function nF(r,e){var t=OG(r,e);r.layoutInfo=t;var a=r.get("layout"),i=0,n=0,o=null;a==="radial"?(i=2*Math.PI,n=Math.min(t.height,t.width)/2,o=LS(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(i=t.width,n=t.height,o=LS());var s=r.getData().tree.root,l=s.children[0];if(l){RG(s),aF(l,EG,o),s.hierNode.modifier=-l.hierNode.prelim,vs(l,kG);var u=l,f=l,h=l;vs(l,function(_){var S=_.getLayout().x;S<u.getLayout().x&&(u=_),S>f.getLayout().x&&(f=_),_.depth>h.depth&&(h=_)});var c=u===f?1:o(u,f)/2,v=c-u.getLayout().x,d=0,p=0,g=0,y=0;if(a==="radial")d=i/(f.getLayout().x+c+v),p=n/(h.depth-1||1),vs(l,function(_){g=(_.getLayout().x+v)*d,y=(_.depth-1)*p;var S=Ms(g,y);_.setLayout({x:S.x,y:S.y,rawX:g,rawY:y},!0)});else{var m=r.getOrient();m==="RL"||m==="LR"?(p=n/(f.getLayout().x+c+v),d=i/(h.depth-1||1),vs(l,function(_){y=(_.getLayout().x+v)*p,g=m==="LR"?(_.depth-1)*d:i-(_.depth-1)*d,_.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(d=i/(f.getLayout().x+c+v),p=n/(h.depth-1||1),vs(l,function(_){g=(_.getLayout().x+v)*d,y=m==="TB"?(_.depth-1)*p:n-(_.depth-1)*p,_.setLayout({x:g,y},!0)}))}}}function oF(r){r.eachSeriesByType("tree",function(e){var t=e.getData(),a=t.tree;a.eachNode(function(i){var n=i.getModel(),o=n.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(i.dataIndex,"style");V(s,o)})})}function sF(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=e.dataIndex,n=a.getData().tree,o=n.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,a){t.eachComponent({mainType:"series",subType:"tree",query:e},function(i){var n=i.coordinateSystem,o=Iy(n,e,void 0,a);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function lF(r){r.registerChartView(UG),r.registerSeriesModel(rF),r.registerLayout(iF),r.registerVisual(oF),sF(r)}var kS=["treemapZoomToNode","treemapRender","treemapMove"];function uF(r){for(var e=0;e<kS.length;e++)r.registerAction({type:kS[e],update:"updateView"},jt);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,a){a.eachComponent({mainType:"series",subType:"treemap",query:t},i);function i(n,o){var s=["treemapZoomToNode","treemapRootToNode"],l=pl(t,s,n);if(l){var u=n.getViewRoot();u&&(t.direction=Ey(u,l.node)?"rollUp":"drillDown"),n.resetViewRoot(l.node)}}})}function EM(r){var e=r.getData(),t=e.tree,a={};t.eachNode(function(i){for(var n=i;n&&n.depth>1;)n=n.parentNode;var o=hp(r.ecModel,n.name||n.dataIndex+"",a);i.setVisual("decal",o)})}var fF=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,a){var i={name:t.name,children:t.data};kM(i);var n=t.levels||[],o=this.designatedVisualItemStyle={},s=new Vt({itemStyle:o},this,a);n=t.levels=hF(n,a);var l=G(n||[],function(h){return new Vt(h,s,a)},this),u=Ry.createTree(i,this,f);function f(h){h.wrapMethod("getItemModel",function(c,v){var d=u.getNodeByDataIndex(v),p=d?l[d.depth]:null;return c.parentModel=p||s,c})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,a,i){var n=this.getData(),o=this.getRawValue(t),s=n.getName(t);return oe("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=jh(i,this),a.treePathInfo=a.treeAncestors,a},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},V(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var a=this._idIndexMap;a||(a=this._idIndexMap=K(),this._idIndexMapCount=0);var i=a.get(t);return i==null&&a.set(t,i=this._idIndexMapCount++),i},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){EM(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:"\u25B6",zoomToNodeRatio:.32*.32,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}(Ht);function kM(r){var e=0;A(r.children,function(a){kM(a);var i=a.value;z(i)&&(i=i[0]),e+=i});var t=r.value;z(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}function hF(r,e){var t=kt(e.get("color")),a=kt(e.get(["aria","decal","decals"]));if(!!t){r=r||[];var i,n;A(r,function(s){var l=new Vt(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(n=!0)});var o=r[0]||(r[0]={});return i||(o.color=t.slice()),!n&&a&&(o.decal=a.slice()),r}}var vF=fF,cF=8,OS=8,Ec=5,dF=function(){function r(e){this.group=new at,e.add(this.group)}return r.prototype.render=function(e,t,a,i){var n=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!n.get("show")||!a)){var s=n.getModel("itemStyle"),l=n.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),h={pos:{left:n.get("left"),right:n.get("right"),top:n.get("top"),bottom:n.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:n.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(a,h,u),this._renderContent(e,h,s,l,u,f,i),zh(o,h.pos,h.box)}},r.prototype._prepare=function(e,t,a){for(var i=e;i;i=i.parentNode){var n=re(i.getModel().get("name"),""),o=a.getTextRect(n),s=Math.max(o.width+cF*2,t.emptyItemWidth);t.totalWidth+=s+OS,t.renderList.push({node:i,text:n,width:s})}},r.prototype._renderContent=function(e,t,a,i,n,o,s){for(var l=0,u=t.emptyItemWidth,f=e.get(["breadcrumb","height"]),h=Ak(t.pos,t.box),c=t.totalWidth,v=t.renderList,d=i.getModel("itemStyle").getItemStyle(),p=v.length-1;p>=0;p--){var g=v[p],y=g.node,m=g.width,_=g.text;c>h.width&&(c-=m-u,m=u,_=null);var S=new ze({shape:{points:pF(l,0,m,f,p===v.length-1,p===0)},style:Q(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new Tt({style:Bt(n,{text:_})}),textConfig:{position:"inside"},z2:Po*1e4,onclick:ot(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Bt(o,{text:_}),S.ensureState("emphasis").style=d,Ut(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),gF(S,e,y),l+=m+OS}},r.prototype.remove=function(){this.group.removeAll()},r}();function pF(r,e,t,a,i,n){var o=[[i?r:r-Ec,e],[r+t,e],[r+t,e+a],[i?r:r-Ec,e+a]];return!n&&o.splice(2,0,[r+t+Ec,e+a/2]),!i&&o.push([r,e+a/2]),o}function gF(r,e,t){it(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&jh(t,e)}}var yF=dF,mF=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,a,i,n){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:a,delay:i,easing:n}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,a=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,n=this._storage.length;i<n;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:a,aborted:a})}return this},r}();function _F(){return new mF}var Bp=at,NS=bt,BS=3,VS="label",zS="upperLabel",SF=Po*10,xF=Po*2,bF=Po*3,$i=mn([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),GS=function(r){var e=$i(r);return e.stroke=e.fill=e.lineWidth=null,e},th=Dt(),wF=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=cs(),t}return e.prototype.render=function(t,a,i,n){var o=a.findComponents({mainType:"series",subType:"treemap",query:n});if(!(ct(o,t)<0)){this.seriesModel=t,this.api=i,this.ecModel=a;var s=["treemapZoomToNode","treemapRootToNode"],l=pl(n,s,t),u=n&&n.type,f=t.layoutInfo,h=!this._oldTree,c=this._storage,v=u==="treemapRootToNode"&&l&&c?{rootNodeGroup:c.nodeGroup[l.node.getRawIndex()],direction:n.direction}:null,d=this._giveContainerGroup(f),p=t.get("animation"),g=this._doRender(d,t,v);p&&!h&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(d,g,t,v):g.renderFinally(),this._resetController(i),this._renderBreadcrumb(t,i,l)}},e.prototype._giveContainerGroup=function(t){var a=this._containerGroup;return a||(a=this._containerGroup=new Bp,this._initEvents(a),this.group.add(a)),a.x=t.x,a.y=t.y,a},e.prototype._doRender=function(t,a,i){var n=a.getData().tree,o=this._oldTree,s=cs(),l=cs(),u=this._storage,f=[];function h(g,y,m,_){return TF(a,l,u,i,s,f,g,y,m,_)}v(n.root?[n.root]:[],o&&o.root?[o.root]:[],t,n===o||!o,0);var c=d(u);return this._oldTree=n,this._storage=l,{lastsForAnimation:s,willDeleteEls:c,renderFinally:p};function v(g,y,m,_,S){_?(y=g,A(g,function(w,T){!w.isRemoved()&&x(T,T)})):new Sa(y,g,b,b).add(x).update(x).remove(ot(x,null)).execute();function b(w){return w.getId()}function x(w,T){var C=w!=null?g[w]:null,D=T!=null?y[T]:null,M=h(C,D,m,S);M&&v(C&&C.viewChildren||[],D&&D.viewChildren||[],M,_,S+1)}}function d(g){var y=cs();return g&&A(g,function(m,_){var S=y[_];A(m,function(b){b&&(S.push(b),th(b).willDelete=!0)})}),y}function p(){A(c,function(g){A(g,function(y){y.parent&&y.parent.remove(y)})}),A(f,function(g){g.invisible=!0,g.dirty()})}},e.prototype._doAnimation=function(t,a,i,n){var o=i.get("animationDurationUpdate"),s=i.get("animationEasing"),l=(J(o)?0:o)||0,u=(J(s)?null:s)||"cubicOut",f=_F();A(a.willDeleteEls,function(h,c){A(h,function(v,d){if(!v.invisible){var p=v.parent,g,y=th(p);if(n&&n.direction==="drillDown")g=p===n.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,_=0;y.willDelete||(m=y.nodeWidth/2,_=y.nodeHeight/2),g=c==="nodeGroup"?{x:m,y:_,style:{opacity:0}}:{shape:{x:m,y:_,width:0,height:0},style:{opacity:0}}}g&&f.add(v,g,l,0,u)}})}),A(this._storage,function(h,c){A(h,function(v,d){var p=a.lastsForAnimation[c][d],g={};!p||(v instanceof at?p.oldX!=null&&(g.x=v.x,g.y=v.y,v.x=p.oldX,v.y=p.oldY):(p.oldShape&&(g.shape=V({},v.shape),v.setShape(p.oldShape)),p.fadein?(v.setStyle("opacity",0),g.style={opacity:1}):v.style.opacity!==1&&(g.style={opacity:1})),f.add(v,g,l,0,u))})},this),this._state="animating",f.finished(Y(function(){this._state="ready",a.renderFinally()},this)).start()},e.prototype._resetController=function(t){var a=this._controller;a||(a=this._controller=new Ul(t.getZr()),a.enable(this.seriesModel.get("roam")),a.on("pan",Y(this._onPan,this)),a.on("zoom",Y(this._onZoom,this)));var i=new ht(0,0,t.getWidth(),t.getHeight());a.setPointerChecker(function(n,o,s){return i.contain(o,s)})},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>BS||Math.abs(t.dy)>BS)){var a=this.seriesModel.getData().tree.root;if(!a)return;var i=a.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+t.dx,y:i.y+t.dy,width:i.width,height:i.height}})}},e.prototype._onZoom=function(t){var a=t.originX,i=t.originY;if(this._state!=="animating"){var n=this.seriesModel.getData().tree.root;if(!n)return;var o=n.getLayout();if(!o)return;var s=new ht(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;a-=l.x,i-=l.y;var u=hr();Zr(u,u,[-a,-i]),bg(u,u,[t.scale,t.scale]),Zr(u,u,[a,i]),s.applyTransform(u),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 a=this;t.on("click",function(i){if(a._state==="ready"){var n=a.seriesModel.get("nodeClick",!0);if(!!n){var o=a.findTarget(i.offsetX,i.offsetY);if(!!o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if(n==="zoomToNode")a._zoomToNode(o);else if(n==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&Bf(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(t,a,i){var n=this;i||(i=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2),i||(i={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new yF(this.group))).render(t,a,i.node,function(o){n._state!=="animating"&&(Ey(t.getViewRoot(),o)?n._rootToNode({node:o}):n._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=cs(),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,a){var i,n=this.seriesModel.getViewRoot();return n.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,a),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},e.type="treemap",e}(zt);function cs(){return{nodeGroup:[],background:[],content:[]}}function TF(r,e,t,a,i,n,o,s,l,u){if(!o)return;var f=o.getLayout(),h=r.getData(),c=o.getModel();if(h.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var v=f.width,d=f.height,p=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,b=_&&_.length,x=c.getModel("itemStyle"),w=c.getModel(["emphasis","itemStyle"]),T=c.getModel(["blur","itemStyle"]),C=c.getModel(["select","itemStyle"]),D=x.get("borderRadius")||0,M=nt("nodeGroup",Bp);if(!M)return;if(l.add(M),M.x=f.x||0,M.y=f.y||0,M.markRedraw(),th(M).nodeWidth=v,th(M).nodeHeight=d,f.isAboveViewRoot)return M;var L=nt("background",NS,u,xF);L&&B(M,L,b&&f.upperLabelHeight);var I=c.getModel("emphasis"),P=I.get("focus"),R=I.get("blurScope"),E=I.get("disabled"),N=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(b)rl(M)&&ji(M,!1),L&&(ji(L,!E),h.setItemGraphicEl(o.dataIndex,L),ap(L,N,R));else{var O=nt("content",NS,u,bF);O&&F(M,O),L.disableMorphing=!0,L&&rl(L)&&ji(L,!1),ji(M,!E),h.setItemGraphicEl(o.dataIndex,M),ap(M,N,R)}return M;function B(pt,rt,mt){var vt=it(rt);if(vt.dataIndex=o.dataIndex,vt.seriesIndex=r.seriesIndex,rt.setShape({x:0,y:0,width:v,height:d,r:D}),g)W(rt);else{rt.invisible=!1;var q=o.getVisual("style"),st=q.stroke,Gt=GS(x);Gt.fill=st;var xt=$i(w);xt.fill=w.get("borderColor");var Zt=$i(T);Zt.fill=T.get("borderColor");var Wt=$i(C);if(Wt.fill=C.get("borderColor"),mt){var ye=v-2*p;X(rt,st,q.opacity,{x:p,y:0,width:ye,height:S})}else rt.removeTextContent();rt.setStyle(Gt),rt.ensureState("emphasis").style=xt,rt.ensureState("blur").style=Zt,rt.ensureState("select").style=Wt,_n(rt)}pt.add(rt)}function F(pt,rt){var mt=it(rt);mt.dataIndex=o.dataIndex,mt.seriesIndex=r.seriesIndex;var vt=Math.max(v-2*p,0),q=Math.max(d-2*p,0);if(rt.culling=!0,rt.setShape({x:p,y:p,width:vt,height:q,r:D}),g)W(rt);else{rt.invisible=!1;var st=o.getVisual("style"),Gt=st.fill,xt=GS(x);xt.fill=Gt,xt.decal=st.decal;var Zt=$i(w),Wt=$i(T),ye=$i(C);X(rt,Gt,st.opacity,null),rt.setStyle(xt),rt.ensureState("emphasis").style=Zt,rt.ensureState("blur").style=Wt,rt.ensureState("select").style=ye,_n(rt)}pt.add(rt)}function W(pt){!pt.invisible&&n.push(pt)}function X(pt,rt,mt,vt){var q=c.getModel(vt?zS:VS),st=re(c.get("name"),null),Gt=q.getShallow("show");we(pt,he(c,vt?zS:VS),{defaultText:Gt?st:null,inheritColor:rt,defaultOpacity:mt,labelFetcher:r,labelDataIndex:o.dataIndex});var xt=pt.getTextContent();if(!!xt){var Zt=xt.style,Wt=_g(Zt.padding||0);vt&&(pt.setTextConfig({layoutRect:vt}),xt.disableLabelLayout=!0),xt.beforeUpdate=function(){var ta=Math.max((vt?vt.width:pt.shape.width)-Wt[1]-Wt[3],0),Pe=Math.max((vt?vt.height:pt.shape.height)-Wt[0]-Wt[2],0);(Zt.width!==ta||Zt.height!==Pe)&&xt.setStyle({width:ta,height:Pe})},Zt.truncateMinChar=2,Zt.lineOverflow="truncate",j(Zt,vt,f);var ye=xt.getState("emphasis");j(ye?ye.style:null,vt,f)}}function j(pt,rt,mt){var vt=pt?pt.text:null;if(!rt&&mt.isLeafRoot&&vt!=null){var q=r.get("drillDownIcon",!0);pt.text=q?q+" "+vt:vt}}function nt(pt,rt,mt,vt){var q=m!=null&&t[pt][m],st=i[pt];return q?(t[pt][m]=null,Mt(st,q)):g||(q=new rt,q instanceof vr&&(q.z2=CF(mt,vt)),Lt(st,q)),e[pt][y]=q}function Mt(pt,rt){var mt=pt[y]={};rt instanceof Bp?(mt.oldX=rt.x,mt.oldY=rt.y):mt.oldShape=V({},rt.shape)}function Lt(pt,rt){var mt=pt[y]={},vt=o.parentNode,q=rt instanceof at;if(vt&&(!a||a.direction==="drillDown")){var st=0,Gt=0,xt=i.background[vt.getRawIndex()];!a&&xt&&xt.oldShape&&(st=xt.oldShape.width,Gt=xt.oldShape.height),q?(mt.oldX=0,mt.oldY=Gt):mt.oldShape={x:st,y:Gt,width:0,height:0}}mt.fadein=!q}}function CF(r,e){return r*SF+e}var AF=wF,gl=A,DF=tt,eh=-1,ky=function(){function r(e){var t=e.mappingMethod,a=e.type,i=this.option=et(e);this.type=a,this.mappingMethod=t,this._normalizeData=IF[t];var n=r.visualHandlers[a];this.applyVisual=n.applyVisual,this.getColorMapper=n.getColorMapper,this._normalizedToVisual=n._normalizedToVisual[t],t==="piecewise"?(kc(i),MF(i)):t==="category"?i.categories?LF(i):kc(i,!0):(Le(t!=="linear"||i.dataExtent),kc(i))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return Y(this._normalizeData,this)},r.listVisualTypes=function(){return St(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,a){tt(e)?A(e,t,a):t.call(a,e)},r.mapVisual=function(e,t,a){var i,n=z(e)?[]:tt(e)?{}:(i=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(a,o,s);i?n=l:n[s]=l}),n},r.retrieveVisuals=function(e){var t={},a;return e&&gl(r.visualHandlers,function(i,n){e.hasOwnProperty(n)&&(t[n]=e[n],a=!0)}),a?t:null},r.prepareVisualTypes=function(e){if(z(e))e=e.slice();else if(DF(e)){var t=[];gl(e,function(a,i){t.push(i)}),e=t}else return[];return e.sort(function(a,i){return i==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,a){for(var i,n=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||U(l)&&l===e+"")return o;a&&c(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],f=u.interval,h=u.close;if(f){if(f[0]===-1/0){if(Vu(h[1],e,f[1]))return o}else if(f[1]===1/0){if(Vu(h[0],f[0],e))return o}else if(Vu(h[0],f[0],e)&&Vu(h[1],e,f[1]))return o;a&&c(f[0],o),a&&c(f[1],o)}}if(a)return e===1/0?t.length-1:e===-1/0?0:i;function c(v,d){var p=Math.abs(v-e);p<n&&(n=p,i=d)}},r.visualHandlers={color:{applyVisual:ds("color"),getColorMapper:function(){var e=this.option;return Y(e.mappingMethod==="category"?function(t,a){return!a&&(t=this._normalizeData(t)),Ls.call(this,t)}:function(t,a,i){var n=!!i;return!a&&(t=this._normalizeData(t)),i=pv(t,e.parsedVisual,i),n?i:va(i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return va(pv(e,this.option.parsedVisual),"rgba")},category:Ls,piecewise:function(e,t){var a=zp.call(this,t);return a==null&&(a=va(pv(e,this.option.parsedVisual),"rgba")),a},fixed:Wi}},colorHue:Bu(function(e,t){return ks(e,t)}),colorSaturation:Bu(function(e,t){return ks(e,null,t)}),colorLightness:Bu(function(e,t){return ks(e,null,null,t)}),colorAlpha:Bu(function(e,t){return Tf(e,t)}),decal:{applyVisual:ds("decal"),_normalizedToVisual:{linear:null,category:Ls,piecewise:null,fixed:null}},opacity:{applyVisual:ds("opacity"),_normalizedToVisual:Vp([0,1])},liftZ:{applyVisual:ds("liftZ"),_normalizedToVisual:{linear:Wi,category:Wi,piecewise:Wi,fixed:Wi}},symbol:{applyVisual:function(e,t,a){var i=this.mapValueToVisual(e);a("symbol",i)},_normalizedToVisual:{linear:FS,category:Ls,piecewise:function(e,t){var a=zp.call(this,t);return a==null&&(a=FS.call(this,e)),a},fixed:Wi}},symbolSize:{applyVisual:ds("symbolSize"),_normalizedToVisual:Vp([0,1])}},r}();function MF(r){var e=r.pieceList;r.hasSpecialVisual=!1,A(e,function(t,a){t.originIndex=a,t.visual!=null&&(r.hasSpecialVisual=!0)})}function LF(r){var e=r.categories,t=r.categoryMap={},a=r.visual;if(gl(e,function(o,s){t[o]=s}),!z(a)){var i=[];tt(a)?gl(a,function(o,s){var l=t[s];i[l!=null?l:eh]=o}):i[eh]=a,a=OM(r,i)}for(var n=e.length-1;n>=0;n--)a[n]==null&&(delete t[e[n]],e.pop())}function kc(r,e){var t=r.visual,a=[];tt(t)?gl(t,function(n){a.push(n)}):t!=null&&a.push(t);var i={color:1,symbol:1};!e&&a.length===1&&!i.hasOwnProperty(r.type)&&(a[1]=a[0]),OM(r,a)}function Bu(r){return{applyVisual:function(e,t,a){var i=this.mapValueToVisual(e);a("color",r(t("color"),i))},_normalizedToVisual:Vp([0,1])}}function FS(r){var e=this.option.visual;return e[Math.round(Rt(r,[0,1],[0,e.length-1],!0))]||{}}function ds(r){return function(e,t,a){a(r,this.mapValueToVisual(e))}}function Ls(r){var e=this.option.visual;return e[this.option.loop&&r!==eh?r%e.length:r]}function Wi(){return this.option.visual[0]}function Vp(r){return{linear:function(e){return Rt(e,r,this.option.visual,!0)},category:Ls,piecewise:function(e,t){var a=zp.call(this,t);return a==null&&(a=Rt(e,r,this.option.visual,!0)),a},fixed:Wi}}function zp(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var a=ky.findPieceIndex(r,t),i=t[a];if(i&&i.visual)return i.visual[this.type]}}function OM(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=G(e,function(t){var a=We(t);return a||[0,0,0,1]})),e}var IF={linear:function(r){return Rt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=ky.findPieceIndex(r,e,!0);if(t!=null)return Rt(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e==null?eh:e},fixed:jt};function Vu(r,e,t){return r?e<=t:e<t}var de=ky,PF="itemStyle",NM=Dt(),RF={seriesType:"treemap",reset:function(r){var e=r.getData().tree,t=e.root;t.isRemoved()||BM(t,{},r.getViewRoot().getAncestors(),r)}};function BM(r,e,t,a){var i=r.getModel(),n=r.getLayout(),o=r.hostTree.data;if(!(!n||n.invisible||!n.isInView)){var s=i.getModel(PF),l=EF(s,e,a),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),f=s.get("borderColor"),h=s.get("borderColorSaturation"),c;h!=null&&(c=HS(l),f=kF(h,c)),u.stroke=f;var v=r.viewChildren;if(!v||!v.length)c=HS(l),u.fill=c;else{var d=OF(r,i,n,s,l,v);A(v,function(p,g){if(p.depth>=t.length||p===t[p.depth]){var y=NF(i,l,p,g,d,a);BM(p,y,t,a)}})}}}function EF(r,e,t){var a=V({},e),i=t.designatedVisualItemStyle;return A(["color","colorAlpha","colorSaturation"],function(n){i[n]=e[n];var o=r.get(n);i[n]=null,o!=null&&(a[n]=o)}),a}function HS(r){var e=Oc(r,"color");if(e){var t=Oc(r,"colorAlpha"),a=Oc(r,"colorSaturation");return a&&(e=ks(e,null,null,a)),t&&(e=Tf(e,t)),e}}function kF(r,e){return e!=null?ks(e,null,null,r):null}function Oc(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function OF(r,e,t,a,i,n){if(!(!n||!n.length)){var o=Nc(e,"color")||i.color!=null&&i.color!=="none"&&(Nc(e,"colorAlpha")||Nc(e,"colorSaturation"));if(!!o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var f=e.get("colorMappingBy"),h={type:o.name,dataExtent:u,visual:o.range};h.type==="color"&&(f==="index"||f==="id")?(h.mappingMethod="category",h.loop=!0):h.mappingMethod="linear";var c=new de(h);return NM(c).drColorMappingBy=f,c}}}function Nc(r,e){var t=r.get(e);return z(t)&&t.length?{name:e,range:t}:null}function NF(r,e,t,a,i,n){var o=V({},e);if(i){var s=i.type,l=s==="color"&&NM(i).drColorMappingBy,u=l==="index"?a:l==="id"?n.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var yl=Math.max,rh=Math.min,$S=ue,Oy=A,VM=["itemStyle","borderWidth"],BF=["itemStyle","gapWidth"],VF=["upperLabel","show"],zF=["upperLabel","height"],GF={seriesType:"treemap",reset:function(r,e,t,a){var i=t.getWidth(),n=t.getHeight(),o=r.option,s=ae(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=H($S(s.width,l[0]),i),f=H($S(s.height,l[1]),n),h=a&&a.type,c=["treemapZoomToNode","treemapRootToNode"],v=pl(a,c,r),d=h==="treemapRender"||h==="treemapMove"?a.rootRect:null,p=r.getViewRoot(),g=RM(p);if(h!=="treemapMove"){var y=h==="treemapZoomToNode"?YF(r,v,p,u,f):d?[d.width,d.height]:[u,f],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var _={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};p.setLayout(S),zM(p,_,!1,0),S=p.getLayout(),Oy(g,function(x,w){var T=(g[w+1]||p).getValue();x.setLayout(V({dataExtent:[T,T],borderWidth:0,upperHeight:0},S))})}var b=r.getData().tree.root;b.setLayout(ZF(s,d,v),!0),r.setLayoutInfo(s),GM(b,new ht(-s.x,-s.y,i,n),g,p,0)}};function zM(r,e,t,a){var i,n;if(!r.isRemoved()){var o=r.getLayout();i=o.width,n=o.height;var s=r.getModel(),l=s.get(VM),u=s.get(BF)/2,f=FM(s),h=Math.max(l,f),c=l-u,v=h-u;r.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:f},!0),i=yl(i-2*c,0),n=yl(n-c-v,0);var d=i*n,p=FF(r,s,d,e,t,a);if(!!p.length){var g={x:c,y:v,width:i,height:n},y=rh(i,n),m=1/0,_=[];_.area=0;for(var S=0,b=p.length;S<b;){var x=p[S];_.push(x),_.area+=x.getLayout().area;var w=UF(_,y,e.squareRatio);w<=m?(S++,m=w):(_.area-=_.pop().getLayout().area,WS(_,y,g,u,!1),y=rh(g.width,g.height),_.length=_.area=0,m=1/0)}if(_.length&&WS(_,y,g,u,!0),!t){var T=s.get("childrenVisibleMin");T!=null&&d<T&&(t=!0)}for(var S=0,b=p.length;S<b;S++)zM(p[S],e,t,a+1)}}}function FF(r,e,t,a,i,n){var o=r.children||[],s=a.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=a.leafDepth!=null&&a.leafDepth<=n;if(i&&!l)return r.viewChildren=[];o=Et(o,function(v){return!v.isRemoved()}),$F(o,s);var u=WF(e,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=HF(e,t,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var f=0,h=o.length;f<h;f++){var c=o[f].getValue()/u.sum*t;o[f].setLayout({area:c})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function HF(r,e,t,a,i){if(!a)return t;for(var n=r.get("visibleMin"),o=i.length,s=o,l=o-1;l>=0;l--){var u=i[a==="asc"?o-l-1:l].getValue();u/t*e<n&&(s=l,t-=u)}return a==="asc"?i.splice(0,o-s):i.splice(s,o-s),t}function $F(r,e){return e&&r.sort(function(t,a){var i=e==="asc"?t.getValue()-a.getValue():a.getValue()-t.getValue();return i===0?e==="asc"?t.dataIndex-a.dataIndex:a.dataIndex-t.dataIndex:i}),r}function WF(r,e,t){for(var a=0,i=0,n=e.length;i<n;i++)a+=e[i].getValue();var o=r.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&t?(s=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&s.reverse()):(s=[1/0,-1/0],Oy(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:a,dataExtent:s}}function UF(r,e,t){for(var a=0,i=1/0,n=0,o=void 0,s=r.length;n<s;n++)o=r[n].getLayout().area,o&&(o<i&&(i=o),o>a&&(a=o));var l=r.area*r.area,u=e*e*t;return l?yl(u*a/l,l/(u*i)):1/0}function WS(r,e,t,a,i){var n=e===t.width?0:1,o=1-n,s=["x","y"],l=["width","height"],u=t[s[n]],f=e?r.area/e:0;(i||f>t[l[o]])&&(f=t[l[o]]);for(var h=0,c=r.length;h<c;h++){var v=r[h],d={},p=f?v.getLayout().area/f:0,g=d[l[o]]=yl(f-2*a,0),y=t[s[n]]+t[l[n]]-u,m=h===c-1||y<p?y:p,_=d[l[n]]=yl(m-2*a,0);d[s[o]]=t[s[o]]+rh(a,g/2),d[s[n]]=u+rh(a,_/2),u+=m,v.setLayout(d,!0)}t[s[o]]+=f,t[l[o]]-=f}function YF(r,e,t,a,i){var n=(e||{}).node,o=[a,i];if(!n||n===t)return o;for(var s,l=a*i,u=l*r.option.zoomToNodeRatio;s=n.parentNode;){for(var f=0,h=s.children,c=0,v=h.length;c<v;c++)f+=h[c].getValue();var d=n.getValue();if(d===0)return o;u*=f/d;var p=s.getModel(),g=p.get(VM),y=Math.max(g,FM(p));u+=4*g*g+(3*g+y)*Math.pow(u,.5),u>e0&&(u=e0),n=s}u<l&&(u=l);var m=Math.pow(u/l,.5);return[a*m,i*m]}function ZF(r,e,t){if(e)return{x:e.x,y:e.y};var a={x:0,y:0};if(!t)return a;var i=t.node,n=i.getLayout();if(!n)return a;for(var o=[n.width/2,n.height/2],s=i;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function GM(r,e,t,a,i){var n=r.getLayout(),o=t[i],s=o&&o===r;if(!(o&&!s||i===t.length&&r!==a)){r.setLayout({isInView:!0,invisible:!s&&!e.intersect(n),isAboveViewRoot:s},!0);var l=new ht(e.x-n.x,e.y-n.y,e.width,e.height);Oy(r.viewChildren||[],function(u){GM(u,l,t,a,i+1)})}}function FM(r){return r.get(VF)?r.get(zF):0}function XF(r){r.registerSeriesModel(vF),r.registerChartView(AF),r.registerVisual(RF),r.registerLayout(GF),uF(r)}function qF(r){var e=r.findComponents({mainType:"legend"});!e||!e.length||r.eachSeriesByType("graph",function(t){var a=t.getCategoriesData(),i=t.getGraph(),n=i.data,o=a.mapArray(a.getName);n.filterSelf(function(s){var l=n.getItemModel(s),u=l.getShallow("category");if(u!=null){Ct(u)&&(u=o[u]);for(var f=0;f<e.length;f++)if(!e[f].isSelected(u))return!1}return!0})})}function KF(r){var e={};r.eachSeriesByType("graph",function(t){var a=t.getCategoriesData(),i=t.getData(),n={};a.each(function(o){var s=a.getName(o);n["ec-"+s]=o;var l=a.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=t.getColorFromPalette(s,e)),a.setItemVisual(o,"style",u);for(var f=["symbol","symbolSize","symbolKeepAspect"],h=0;h<f.length;h++){var c=l.getShallow(f[h],!0);c!=null&&a.setItemVisual(o,f[h],c)}}),a.count()&&i.each(function(o){var s=i.getItemModel(o),l=s.getShallow("category");if(l!=null){U(l)&&(l=n["ec-"+l]);var u=a.getItemVisual(l,"style"),f=i.ensureUniqueItemVisual(o,"style");V(f,u);for(var h=["symbol","symbolSize","symbolKeepAspect"],c=0;c<h.length;c++)i.setItemVisual(o,h[c],a.getItemVisual(l,h[c]))}})})}function zu(r){return r instanceof Array||(r=[r,r]),r}function JF(r){r.eachSeriesByType("graph",function(e){var t=e.getGraph(),a=e.getEdgeData(),i=zu(e.get("edgeSymbol")),n=zu(e.get("edgeSymbolSize"));a.setVisual("fromSymbol",i&&i[0]),a.setVisual("toSymbol",i&&i[1]),a.setVisual("fromSymbolSize",n&&n[0]),a.setVisual("toSymbolSize",n&&n[1]),a.setVisual("style",e.getModel("lineStyle").getLineStyle()),a.each(function(o){var s=a.getItemModel(o),l=t.getEdgeByIndex(o),u=zu(s.getShallow("symbol",!0)),f=zu(s.getShallow("symbolSize",!0)),h=s.getModel("lineStyle").getLineStyle(),c=a.ensureUniqueItemVisual(o,"style");switch(V(c,h),c.stroke){case"source":{var v=l.node1.getVisual("style");c.stroke=v&&v.fill;break}case"target":{var v=l.node2.getVisual("style");c.stroke=v&&v.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),f[0]&&l.setVisual("fromSymbolSize",f[0]),f[1]&&l.setVisual("toSymbolSize",f[1])})})}var Gp="-->",tv=function(r){return r.get("autoCurveness")||null},HM=function(r,e){var t=tv(r),a=20,i=[];if(Ct(t))a=t;else if(z(t)){r.__curvenessList=t;return}e>a&&(a=e);var n=a%2?a+2:a+3;i=[];for(var o=0;o<n;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=i},ml=function(r,e,t){var a=[r.id,r.dataIndex].join("."),i=[e.id,e.dataIndex].join(".");return[t.uid,a,i].join(Gp)},$M=function(r){var e=r.split(Gp);return[e[0],e[2],e[1]].join(Gp)},QF=function(r,e){var t=ml(r.node1,r.node2,e);return e.__edgeMap[t]},jF=function(r,e){var t=Fp(ml(r.node1,r.node2,e),e),a=Fp(ml(r.node2,r.node1,e),e);return t+a},Fp=function(r,e){var t=e.__edgeMap;return t[r]?t[r].length:0};function t4(r){!tv(r)||(r.__curvenessList=[],r.__edgeMap={},HM(r))}function e4(r,e,t,a){if(!!tv(t)){var i=ml(r,e,t),n=t.__edgeMap,o=n[$M(i)];n[i]&&!o?n[i].isForward=!0:o&&n[i]&&(o.isForward=!0,n[i].isForward=!1),n[i]=n[i]||[],n[i].push(a)}}function Ny(r,e,t,a){var i=tv(e),n=z(i);if(!i)return null;var o=QF(r,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===t){s=l;break}var u=jF(r,e);HM(e,u),r.lineStyle=r.lineStyle||{};var f=ml(r.node1,r.node2,e),h=e.__curvenessList,c=n||u%2?0:1;if(o.isForward)return h[c+s];var v=$M(f),d=Fp(v,e),p=h[s+d+c];return a?n?i&&i[0]===0?(d+c)%2?p:-p:((d%2?0:1)+c)%2?p:-p:(d+c)%2?p:-p:h[s+d+c]}function WM(r){var e=r.coordinateSystem;if(!(e&&e.type!=="view")){var t=r.getGraph();t.eachNode(function(a){var i=a.getModel();a.setLayout([+i.get("x"),+i.get("y")])}),By(t,r)}}function By(r,e){r.eachEdge(function(t,a){var i=ua(t.getModel().get(["lineStyle","curveness"]),-Ny(t,e,a,!0),0),n=fa(t.node1.getLayout()),o=fa(t.node2.getLayout()),s=[n,o];+i&&s.push([(n[0]+o[0])/2-(n[1]-o[1])*i,(n[1]+o[1])/2-(o[0]-n[0])*i]),t.setLayout(s)})}function r4(r,e){r.eachSeriesByType("graph",function(t){var a=t.get("layout"),i=t.coordinateSystem;if(i&&i.type!=="view"){var n=t.getData(),o=[];A(i.dimensions,function(c){o=o.concat(n.mapDimensionsAll(c))});for(var s=0;s<n.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var h=n.get(o[f],s);isNaN(h)||(u=!0),l.push(h)}u?n.setItemLayout(s,i.dataToPoint(l)):n.setItemLayout(s,[NaN,NaN])}By(n.graph,t)}else(!a||a==="none")&&WM(t)})}function Is(r){var e=r.coordinateSystem;if(e.type!=="view")return 1;var t=r.option.nodeScaleRatio,a=e.scaleX,i=e.getZoom(),n=(i-1)*t+1;return n/a}function Ps(r){var e=r.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var US=Math.PI,Bc=[];function Vy(r,e,t,a){var i=r.coordinateSystem;if(!(i&&i.type!=="view")){var n=i.getBoundingRect(),o=r.getData(),s=o.graph,l=n.width/2+n.x,u=n.height/2+n.y,f=Math.min(n.width,n.height)/2,h=o.count();if(o.setLayout({cx:l,cy:u}),!!h){if(t){var c=i.pointToData(a),v=c[0],d=c[1],p=[v-l,d-u];Mo(p,p),ju(p,p,f),t.setLayout([l+p[0],u+p[1]],!0);var g=r.get(["circular","rotateLabel"]);UM(t,g,l,u)}a4[e](r,s,o,f,l,u,h),s.eachEdge(function(y,m){var _=ua(y.getModel().get(["lineStyle","curveness"]),Ny(y,r,m),0),S=fa(y.node1.getLayout()),b=fa(y.node2.getLayout()),x,w=(S[0]+b[0])/2,T=(S[1]+b[1])/2;+_&&(_*=3,x=[l*_+w*(1-_),u*_+T*(1-_)]),y.setLayout([S,b,x])})}}}var a4={value:function(r,e,t,a,i,n,o){var s=0,l=t.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(f){var h=f.getValue("value"),c=u*(l?h:1)/2;s+=c,f.setLayout([a*Math.cos(s)+i,a*Math.sin(s)+n]),s+=c})},symbolSize:function(r,e,t,a,i,n,o){var s=0;Bc.length=o;var l=Is(r);e.eachNode(function(h){var c=Ps(h);isNaN(c)&&(c=2),c<0&&(c=0),c*=l;var v=Math.asin(c/2/a);isNaN(v)&&(v=US/2),Bc[h.dataIndex]=v,s+=v*2});var u=(2*US-s)/o/2,f=0;e.eachNode(function(h){var c=u+Bc[h.dataIndex];f+=c,(!h.getLayout()||!h.getLayout().fixed)&&h.setLayout([a*Math.cos(f)+i,a*Math.sin(f)+n]),f+=c})}};function UM(r,e,t,a){var i=r.getGraphicEl();if(!!i){var n=r.getModel(),o=n.get(["label","rotate"])||0,s=i.getSymbolPath();if(e){var l=r.getLayout(),u=Math.atan2(l[1]-a,l[0]-t);u<0&&(u=Math.PI*2+u);var f=l[0]<t;f&&(u=u-Math.PI);var h=f?"left":"right";s.setTextConfig({rotation:-u,position:h,origin:"center"});var c=s.ensureState("emphasis");V(c.textConfig||(c.textConfig={}),{position:h})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function i4(r){r.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&Vy(e,"symbolSize")})}var Wn=Ld;function n4(r,e,t){for(var a=r,i=e,n=t.rect,o=n.width,s=n.height,l=[n.x+o/2,n.y+s/2],u=t.gravity==null?.1:t.gravity,f=0;f<a.length;f++){var h=a[f];h.p||(h.p=Tn(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=fa(h.p),h.edges=null}var c=t.friction==null?.6:t.friction,v=c,d,p;return{warmUp:function(){v=c*.8},setFixed:function(g){a[g].fixed=!0},setUnfixed:function(g){a[g].fixed=!1},beforeStep:function(g){d=g},afterStep:function(g){p=g},step:function(g){d&&d(a,i);for(var y=[],m=a.length,_=0;_<i.length;_++){var S=i[_];if(!S.ignoreForceLayout){var b=S.n1,x=S.n2;Ji(y,x.p,b.p);var w=Id(y)-S.d,T=x.w/(b.w+x.w);isNaN(T)&&(T=0),Mo(y,y),!b.fixed&&Wn(b.p,b.p,y,T*w*v),!x.fixed&&Wn(x.p,x.p,y,-(1-T)*w*v)}}for(var _=0;_<m;_++){var C=a[_];C.fixed||(Ji(y,l,C.p),Wn(C.p,C.p,y,u*v))}for(var _=0;_<m;_++)for(var b=a[_],D=_+1;D<m;D++){var x=a[D];Ji(y,x.p,b.p);var w=Id(y);w===0&&(pI(y,Math.random()-.5,Math.random()-.5),w=1);var M=(b.rep+x.rep)/w/w;!b.fixed&&Wn(b.pp,b.pp,y,M),!x.fixed&&Wn(x.pp,x.pp,y,-M)}for(var L=[],_=0;_<m;_++){var C=a[_];C.fixed||(Ji(L,C.p,C.pp),Wn(C.p,C.p,L,v),Ce(C.pp,C.p))}v=v*.992;var I=v<.01;p&&p(a,i,I),g&&g(I)}}}function o4(r){r.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var a=e.preservedPoints||{},i=e.getGraph(),n=i.data,o=i.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?n.each(function(_){var S=n.getId(_);n.setItemLayout(_,a[S]||[NaN,NaN])}):!l||l==="none"?WM(e):l==="circular"&&Vy(e,"value");var u=n.getDataExtent("value"),f=o.getDataExtent("value"),h=s.get("repulsion"),c=s.get("edgeLength"),v=z(h)?h:[h,h],d=z(c)?c:[c,c];d=[d[1],d[0]];var p=n.mapArray("value",function(_,S){var b=n.getItemLayout(S),x=Rt(_,u,v);return isNaN(x)&&(x=(v[0]+v[1])/2),{w:x,rep:x,fixed:n.getItemModel(S).get("fixed"),p:!b||isNaN(b[0])||isNaN(b[1])?null:b}}),g=o.mapArray("value",function(_,S){var b=i.getEdgeByIndex(S),x=Rt(_,f,d);isNaN(x)&&(x=(d[0]+d[1])/2);var w=b.getModel(),T=ua(b.getModel().get(["lineStyle","curveness"]),-Ny(b,e,S,!0),0);return{n1:p[b.node1.dataIndex],n2:p[b.node2.dataIndex],d:x,curveness:T,ignoreForceLayout:w.get("ignoreForceLayout")}}),y=t.getBoundingRect(),m=n4(p,g,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(_,S){for(var b=0,x=_.length;b<x;b++)_[b].fixed&&Ce(_[b].p,i.getNodeByIndex(b).getLayout())}),m.afterStep(function(_,S,b){for(var x=0,w=_.length;x<w;x++)_[x].fixed||i.getNodeByIndex(x).setLayout(_[x].p),a[n.getId(x)]=_[x].p;for(var x=0,w=S.length;x<w;x++){var T=S[x],C=i.getEdgeByIndex(x),D=T.n1.p,M=T.n2.p,L=C.getLayout();L=L?L.slice():[],L[0]=L[0]||[],L[1]=L[1]||[],Ce(L[0],D),Ce(L[1],M),+T.curveness&&(L[2]=[(D[0]+M[0])/2-(D[1]-M[1])*T.curveness,(D[1]+M[1])/2-(M[0]-D[0])*T.curveness]),C.setLayout(L)}}),e.forceLayout=m,e.preservedPoints=a,m.step()}else e.forceLayout=null})}function s4(r,e,t){var a=V(r.getBoxLayoutParams(),{aspect:t});return ae(a,{width:e.getWidth(),height:e.getHeight()})}function l4(r,e){var t=[];return r.eachSeriesByType("graph",function(a){var i=a.get("coordinateSystem");if(!i||i==="view"){var n=a.getData(),o=n.mapArray(function(g){var y=n.getItemModel(g);return[+y.get("x"),+y.get("y")]}),s=[],l=[];Ah(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),f=s4(a,e,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var h=l[0]-s[0],c=l[1]-s[1],v=f.width,d=f.height,p=a.coordinateSystem=new Yl;p.zoomLimit=a.get("scaleLimit"),p.setBoundingRect(s[0],s[1],h,c),p.setViewRect(f.x,f.y,v,d),p.setCenter(a.get("center"),e),p.setZoom(a.get("zoom")),t.push(p)}}),t}var YS=fe.prototype,Vc=Ih.prototype,YM=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}();(function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(YM);function zc(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var u4=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-line",a}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new YM},e.prototype.buildPath=function(t,a){zc(a)?YS.buildPath.call(this,t,a):Vc.buildPath.call(this,t,a)},e.prototype.pointAt=function(t){return zc(this.shape)?YS.pointAt.call(this,t):Vc.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var a=this.shape,i=zc(a)?[a.x2-a.x1,a.y2-a.y1]:Vc.tangentAt.call(this,t);return Mo(i,i)},e}(yt),f4=u4,Gc=["fromSymbol","toSymbol"];function ZS(r){return"_"+r+"Type"}function XS(r,e,t){var a=e.getItemVisual(t,r);if(!(!a||a==="none")){var i=e.getItemVisual(t,r+"Size"),n=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=Ol(i),u=Ho(o||0,l),f=te(a,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=n==null||isNaN(n)?void 0:+n*Math.PI/180||0,f.name=r,f}}function h4(r){var e=new f4({name:"line",subPixelOptimize:!0});return Hp(e.shape,r),e}function Hp(r,e){r.x1=e[0][0],r.y1=e[0][1],r.x2=e[1][0],r.y2=e[1][1],r.percent=1;var t=e[2];t?(r.cpx1=t[0],r.cpy1=t[1]):(r.cpx1=NaN,r.cpy1=NaN)}var v4=function(r){k(e,r);function e(t,a,i){var n=r.call(this)||this;return n._createLine(t,a,i),n}return e.prototype._createLine=function(t,a,i){var n=t.hostModel,o=t.getItemLayout(a),s=h4(o);s.shape.percent=0,Ft(s,{shape:{percent:1}},n,a),this.add(s),A(Gc,function(l){var u=XS(l,t,a);this.add(u),this[ZS(l)]=t.getItemVisual(a,l)},this),this._updateCommonStl(t,a,i)},e.prototype.updateData=function(t,a,i){var n=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(a),l={shape:{}};Hp(l.shape,s),At(o,l,n,a),A(Gc,function(u){var f=t.getItemVisual(a,u),h=ZS(u);if(this[h]!==f){this.remove(this.childOfName(u));var c=XS(u,t,a);this.add(c)}this[h]=f},this),this._updateCommonStl(t,a,i)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,a,i){var n=t.hostModel,o=this.childOfName("line"),s=i&&i.emphasisLineStyle,l=i&&i.blurLineStyle,u=i&&i.selectLineStyle,f=i&&i.labelStatesModels,h=i&&i.emphasisDisabled,c=i&&i.focus,v=i&&i.blurScope;if(!i||t.hasItemOption){var d=t.getItemModel(a),p=d.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),h=p.get("disabled"),c=p.get("focus"),v=p.get("blurScope"),f=he(d)}var g=t.getItemVisual(a,"style"),y=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,A(Gc,function(x){var w=this.childOfName(x);if(w){w.setColor(y),w.style.opacity=g.opacity;for(var T=0;T<Ie.length;T++){var C=Ie[T],D=o.getState(C);if(D){var M=D.style||{},L=w.ensureState(C),I=L.style||(L.style={});M.stroke!=null&&(I[w.__isEmptyBrush?"stroke":"fill"]=M.stroke),M.opacity!=null&&(I.opacity=M.opacity)}}w.markRedraw()}},this);var m=n.getRawValue(a);we(this,f,{labelDataIndex:a,labelFetcher:{getFormattedLabel:function(x,w){return n.getFormattedLabel(x,w,t.dataType)}},inheritColor:y||"#000",defaultOpacity:g.opacity,defaultText:(m==null?t.getName(a):isFinite(m)?qt(m):m)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var b=S.get("distance");z(b)||(b=[b,b]),_.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),Ut(this,c,v,h)},e.prototype.highlight=function(){ma(this)},e.prototype.downplay=function(){_a(this)},e.prototype.updateLayout=function(t,a){this.setLinePoints(t.getItemLayout(a))},e.prototype.setLinePoints=function(t){var a=this.childOfName("line");Hp(a.shape,t),a.dirty()},e.prototype.beforeUpdate=function(){var t=this,a=t.childOfName("fromSymbol"),i=t.childOfName("toSymbol"),n=t.getTextContent();if(!a&&!i&&(!n||n.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=t.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),h=l.pointAt(u),c=Ji([],h,f);Mo(c,c);function v(D,M){var L=D.__specifiedRotation;if(L==null){var I=l.tangentAt(M);D.attr("rotation",(M===1?-1:1)*Math.PI/2-Math.atan2(I[1],I[0]))}else D.attr("rotation",L)}if(a&&(a.setPosition(f),v(a,0),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&(i.setPosition(h),v(i,1),i.scaleX=i.scaleY=o*u,i.markRedraw()),n&&!n.ignore){n.x=n.y=0,n.originX=n.originY=0;var d=void 0,p=void 0,g=n.__labelDistance,y=g[0]*o,m=g[1]*o,_=u/2,S=l.tangentAt(_),b=[S[1],-S[0]],x=l.pointAt(_);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var w=S[0]<0?-1:1;if(n.__position!=="start"&&n.__position!=="end"){var T=-Math.atan2(S[1],S[0]);h[0]<f[0]&&(T=Math.PI+T),n.rotation=T}var C=void 0;switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":C=-m,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":C=m,p="top";break;default:C=0,p="middle"}switch(n.__position){case"end":n.x=c[0]*y+h[0],n.y=c[1]*m+h[1],d=c[0]>.8?"left":c[0]<-.8?"right":"center",p=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":n.x=-c[0]*y+f[0],n.y=-c[1]*m+f[1],d=c[0]>.8?"right":c[0]<-.8?"left":"center",p=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=y*w+f[0],n.y=f[1]+C,d=S[0]<0?"right":"left",n.originX=-y*w,n.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=x[0],n.y=x[1]+C,d="center",n.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-y*w+h[0],n.y=h[1]+C,d=S[0]>=0?"right":"left",n.originX=y*w,n.originY=-C;break}n.scaleX=n.scaleY=o,n.setStyle({verticalAlign:n.__verticalAlign||p,align:n.__align||d})}},e}(at),zy=v4,c4=function(){function r(e){this.group=new at,this._LineCtor=e||zy}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var a=this,i=a.group,n=a._lineData;a._lineData=e,n||i.removeAll();var o=qS(e);e.diff(n).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(n,e,l,s,o)}).remove(function(s){i.remove(n.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;!e||e.eachItemGraphicEl(function(t,a){t.updateLayout(e,a)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=qS(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function a(s){!s.isGroup&&!d4(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var n=t.getItemLayout(i);if(Fc(n)){var o=new this._LineCtor(t,i,this._seriesScope);o.traverse(a),this.group.add(o),t.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){ui(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,a){var i=e.getItemLayout(t);if(!!Fc(i)){var n=new this._LineCtor(e,t,a);e.setItemGraphicEl(t,n),this.group.add(n)}},r.prototype._doUpdate=function(e,t,a,i,n){var o=e.getItemGraphicEl(a);if(!Fc(t.getItemLayout(i))){this.group.remove(o);return}o?o.updateData(t,i,n):o=new this._LineCtor(t,i,n),t.setItemGraphicEl(i,o),this.group.add(o)},r}();function d4(r){return r.animators&&r.animators.length>0}function qS(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:he(e)}}function KS(r){return isNaN(r[0])||isNaN(r[1])}function Fc(r){return r&&!KS(r[0])&&!KS(r[1])}var Gy=c4,Hc=[],$c=[],Wc=[],Un=se,Uc=nn,JS=Math.abs;function QS(r,e,t){for(var a=r[0],i=r[1],n=r[2],o=1/0,s,l=t*t,u=.1,f=.1;f<=.9;f+=.1){Hc[0]=Un(a[0],i[0],n[0],f),Hc[1]=Un(a[1],i[1],n[1],f);var h=JS(Uc(Hc,e)-l);h<o&&(o=h,s=f)}for(var c=0;c<32;c++){var v=s+u;$c[0]=Un(a[0],i[0],n[0],s),$c[1]=Un(a[1],i[1],n[1],s),Wc[0]=Un(a[0],i[0],n[0],v),Wc[1]=Un(a[1],i[1],n[1],v);var h=Uc($c,e)-l;if(JS(h)<.01)break;var d=Uc(Wc,e)-l;u/=2,h<0?d>=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function Yc(r,e){var t=[],a=Js,i=[[],[],[]],n=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),h=s.getVisual("toSymbol");u.__original||(u.__original=[fa(u[0]),fa(u[1])],u[2]&&u.__original.push(fa(u[2])));var c=u.__original;if(u[2]!=null){if(Ce(i[0],c[0]),Ce(i[1],c[2]),Ce(i[2],c[1]),f&&f!=="none"){var v=Ps(s.node1),d=QS(i,c[0],v*e);a(i[0][0],i[1][0],i[2][0],d,t),i[0][0]=t[3],i[1][0]=t[4],a(i[0][1],i[1][1],i[2][1],d,t),i[0][1]=t[3],i[1][1]=t[4]}if(h&&h!=="none"){var v=Ps(s.node2),d=QS(i,c[1],v*e);a(i[0][0],i[1][0],i[2][0],d,t),i[1][0]=t[1],i[2][0]=t[2],a(i[0][1],i[1][1],i[2][1],d,t),i[1][1]=t[1],i[2][1]=t[2]}Ce(u[0],i[0]),Ce(u[1],i[2]),Ce(u[2],i[1])}else{if(Ce(n[0],c[0]),Ce(n[1],c[1]),Ji(o,n[1],n[0]),Mo(o,o),f&&f!=="none"){var v=Ps(s.node1);Ld(n[0],n[0],o,v*e)}if(h&&h!=="none"){var v=Ps(s.node2);Ld(n[1],n[1],o,-v*e)}Ce(u[0],n[0]),Ce(u[1],n[1])}})}function jS(r){return r.type==="view"}var p4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){var i=new Fl,n=new Gy,o=this.group;this._controller=new Ul(a.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(n.group),this._symbolDraw=i,this._lineDraw=n,this._firstRender=!0},e.prototype.render=function(t,a,i){var n=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(jS(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):At(u,f,t)}Yc(t.getGraph(),Is(t));var h=t.getData();s.updateData(h);var c=t.getEdgeData();l.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,a,i),clearTimeout(this._layoutTimeout);var v=t.forceLayout,d=t.get(["force","layoutAnimation"]);v&&this._startForceLayoutIteration(v,d);var p=t.get("layout");h.graph.eachNode(function(_){var S=_.dataIndex,b=_.getGraphicEl(),x=_.getModel();if(!!b){b.off("drag").off("dragend");var w=x.get("draggable");w&&b.on("drag",function(C){switch(p){case"force":v.warmUp(),!n._layouting&&n._startForceLayoutIteration(v,d),v.setFixed(S),h.setItemLayout(S,[b.x,b.y]);break;case"circular":h.setItemLayout(S,[b.x,b.y]),_.setLayout({fixed:!0},!0),Vy(t,"symbolSize",_,[C.offsetX,C.offsetY]),n.updateLayout(t);break;case"none":default:h.setItemLayout(S,[b.x,b.y]),By(t.getGraph(),t),n.updateLayout(t);break}}).on("dragend",function(){v&&v.setUnfixed(S)}),b.setDraggable(w&&!!v,!!x.get("cursor"));var T=x.get(["emphasis","focus"]);T==="adjacency"&&(it(b).focus=_.getAdjacentDataIndices())}}),h.graph.eachEdge(function(_){var S=_.getGraphicEl(),b=_.getModel().get(["emphasis","focus"]);!S||b==="adjacency"&&(it(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var g=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=h.getLayout("cx"),m=h.getLayout("cy");h.graph.eachNode(function(_){UM(_,g,y,m)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,a){var i=this;(function n(){t.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(a?i._layoutTimeout=setTimeout(n,16):n())})})()},e.prototype._updateController=function(t,a,i){var n=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,f,h){var c=l.getBoundingRect();return c.applyTransform(l.transform),c.contain(f,h)&&!Jh(u,i,t)}),!jS(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){Dy(s,u.dx,u.dy),i.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){My(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),n._updateNodeAndLinkScale(),Yc(t.getGraph(),Is(t)),n._lineDraw.updateLayout(),i.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,a=t.getData(),i=Is(t);a.eachItemGraphicEl(function(n,o){n&&n.setSymbolScale(i)})},e.prototype.updateLayout=function(t){Yc(t.getGraph(),Is(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(zt),g4=p4;function Yn(r){return"_EC_"+r}var y4=function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var a=this._nodesMap;if(!a[Yn(e)]){var i=new Ui(e,t);return i.hostGraph=this,this.nodes.push(i),a[Yn(e)]=i,i}},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[Yn(e)]},r.prototype.addEdge=function(e,t,a){var i=this._nodesMap,n=this._edgesMap;if(Ct(e)&&(e=this.nodes[e]),Ct(t)&&(t=this.nodes[t]),e instanceof Ui||(e=i[Yn(e)]),t instanceof Ui||(t=i[Yn(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new ZM(e,t,a);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),n[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof Ui&&(e=e.id),t instanceof Ui&&(t=t.id);var a=this._edgesMap;return this._directed?a[e+"-"+t]:a[e+"-"+t]||a[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var a=this.nodes,i=a.length,n=0;n<i;n++)a[n].dataIndex>=0&&e.call(t,a[n],n)},r.prototype.eachEdge=function(e,t){for(var a=this.edges,i=a.length,n=0;n<i;n++)a[n].dataIndex>=0&&a[n].node1.dataIndex>=0&&a[n].node2.dataIndex>=0&&e.call(t,a[n],n)},r.prototype.breadthFirstTraverse=function(e,t,a,i){if(t instanceof Ui||(t=this._nodesMap[Yn(t)]),!!t){for(var n=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(i,t,null))for(var s=[t];s.length;)for(var l=s.shift(),u=l[n],o=0;o<u.length;o++){var f=u[o],h=f.node1===l?f.node2:f.node1;if(!h.__visited){if(e.call(i,h,l))return;s.push(h),h.__visited=!0}}}},r.prototype.update=function(){for(var e=this.data,t=this.edgeData,a=this.nodes,i=this.edges,n=0,o=a.length;n<o;n++)a[n].dataIndex=-1;for(var n=0,o=e.count();n<o;n++)a[e.getRawIndex(n)].dataIndex=n;t.filterSelf(function(s){var l=i[t.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var n=0,o=i.length;n<o;n++)i[n].dataIndex=-1;for(var n=0,o=t.count();n<o;n++)i[t.getRawIndex(n)].dataIndex=n},r.prototype.clone=function(){for(var e=new r(this._directed),t=this.nodes,a=this.edges,i=0;i<t.length;i++)e.addNode(t[i].id,t[i].dataIndex);for(var i=0;i<a.length;i++){var n=a[i];e.addEdge(n.node1.id,n.node2.id,n.dataIndex)}return e},r}(),Ui=function(){function r(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e==null?"":e,this.dataIndex=t==null?-1:t}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,a=t.data.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var a=this.edges[t];a.dataIndex<0||(e.edge.push(a.dataIndex),e.node.push(a.node1.dataIndex,a.node2.dataIndex))}return e},r}(),ZM=function(){function r(e,t,a){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=a==null?-1:a}return r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,a=t.edgeData.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r}();function XM(r,e){return{getValue:function(t){var a=this[r][e];return a.getStore().get(a.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,a){this.dataIndex>=0&&this[r][e].setItemVisual(this.dataIndex,t,a)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,a){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,a)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}ee(Ui,XM("hostGraph","data"));ee(ZM,XM("hostGraph","edgeData"));var m4=y4;function qM(r,e,t,a,i){for(var n=new m4(a),o=0;o<r.length;o++)n.addNode(ue(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var f=e[o],h=f.source,c=f.target;n.addEdge(h,c,u)&&(l.push(f),s.push(ue(re(f.id,null),h+" > "+c)),u++)}var v=t.get("coordinateSystem"),d;if(v==="cartesian2d"||v==="polar")d=Ta(r,t);else{var p=El.get(v),g=p?p.dimensions||[]:[];ct(g,"value")<0&&g.concat(["value"]);var y=Bl(r,{coordDimensions:g,encodeDefine:t.getEncode()}).dimensions;d=new Me(y,t),d.initData(r)}var m=new Me(["value"],t);return m.initData(l,s),i&&i(d,m),IM({mainData:d,struct:n,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),n.update(),n}var _4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var a=this;function i(){return a._categoriesData}this.legendVisualProvider=new Wl(i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),gn(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,a){var i=t.edges||t.links||[],n=t.data||t.nodes||[],o=this;if(n&&i){t4(this);var s=qM(n,i,this,!0,l);return A(s.edges,function(u){e4(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,g=d.getShallow("category"),y=p[g];return y&&(y.parentModel=d.parentModel,d.parentModel=y),d});var h=Vt.prototype.getModel;function c(d,p){var g=h.call(this,d,p);return g.resolveParentPath=v,g}f.wrapMethod("getItemModel",function(d){return d.resolveParentPath=v,d.getModel=c,d});function v(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},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,a,i){if(i==="edge"){var n=this.getData(),o=this.getDataParams(t,i),s=n.graph.getEdgeByIndex(t),l=n.getName(s.node1.dataIndex),u=n.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),oe("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var h=mA({series:this,dataIndex:t,multipleSeries:a});return h},e.prototype._updateCategoriesData=function(){var t=G(this.option.categories||[],function(i){return i.value!=null?i:V({value:0},i)}),a=new Me(["value"],this);a.initData(t),this._categoriesData=a,this._categoriesModels=a.mapArray(function(i){return a.getItemModel(i)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&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}(Ht),S4=_4,x4={type:"graphRoam",event:"graphRoam",update:"none"};function b4(r){r.registerChartView(g4),r.registerSeriesModel(S4),r.registerProcessor(qF),r.registerVisual(KF),r.registerVisual(JF),r.registerLayout(r4),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,i4),r.registerLayout(o4),r.registerCoordinateSystem("graphView",{dimensions:Yl.dimensions,create:l4}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},jt),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},jt),r.registerAction(x4,function(e,t,a){t.eachComponent({mainType:"series",query:e},function(i){var n=i.coordinateSystem,o=Iy(n,e,void 0,a);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var w4=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),T4=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="pointer",a}return e.prototype.getDefaultShape=function(){return new w4},e.prototype.buildPath=function(t,a){var i=Math.cos,n=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-i(l)*s*(s>=o/3?1:2),f=a.y-n(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,t.moveTo(u,f),t.lineTo(a.x+i(l)*s,a.y+n(l)*s),t.lineTo(a.x+i(a.angle)*o,a.y+n(a.angle)*o),t.lineTo(a.x-i(l)*s,a.y-n(l)*s),t.lineTo(u,f)},e}(yt),C4=T4;function A4(r,e){var t=r.get("center"),a=e.getWidth(),i=e.getHeight(),n=Math.min(a,i),o=H(t[0],e.getWidth()),s=H(t[1],e.getHeight()),l=H(r.get("radius"),n/2);return{cx:o,cy:s,r:l}}function Gu(r,e){var t=r==null?"":r+"";return e&&(U(e)?t=e.replace("{value}",t):J(e)&&(t=e(r))),t}var D4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){this.group.removeAll();var n=t.get(["axisLine","lineStyle","color"]),o=A4(t,i);this._renderMain(t,a,i,n,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,a,i,n,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,f=-t.get("endAngle")/180*Math.PI,h=t.getModel("axisLine"),c=h.get("roundCap"),v=c?Jf:Ve,d=h.get("show"),p=h.getModel("lineStyle"),g=p.get("width"),y=[u,f];MT(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=0;d&&S<n.length;S++){var b=Math.min(Math.max(n[S][0],0),1);f=u+m*b;var x=new v({shape:{startAngle:_,endAngle:f,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});x.setStyle({fill:n[S][1]}),x.setStyle(p.getLineStyle(["color","width"])),s.add(x),_=f}var w=function(T){if(T<=0)return n[0][1];var C;for(C=0;C<n.length;C++)if(n[C][0]>=T&&(C===0?0:n[C-1][0])<T)return n[C][1];return n[C-1][1]};this._renderTicks(t,a,i,w,o,u,f,l,g),this._renderTitleAndDetail(t,a,i,w,o),this._renderAnchor(t,o),this._renderPointer(t,a,i,w,o,u,f,l,g)},e.prototype._renderTicks=function(t,a,i,n,o,s,l,u,f){for(var h=this.group,c=o.cx,v=o.cy,d=o.r,p=+t.get("min"),g=+t.get("max"),y=t.getModel("splitLine"),m=t.getModel("axisTick"),_=t.getModel("axisLabel"),S=t.get("splitNumber"),b=m.get("splitNumber"),x=H(y.get("length"),d),w=H(m.get("length"),d),T=s,C=(l-s)/S,D=C/b,M=y.getModel("lineStyle").getLineStyle(),L=m.getModel("lineStyle").getLineStyle(),I=y.get("distance"),P,R,E=0;E<=S;E++){if(P=Math.cos(T),R=Math.sin(T),y.get("show")){var N=I?I+f:f,O=new fe({shape:{x1:P*(d-N)+c,y1:R*(d-N)+v,x2:P*(d-x-N)+c,y2:R*(d-x-N)+v},style:M,silent:!0});M.stroke==="auto"&&O.setStyle({stroke:n(E/S)}),h.add(O)}if(_.get("show")){var N=_.get("distance")+I,B=Gu(qt(E/S*(g-p)+p),_.get("formatter")),F=n(E/S),W=P*(d-x-N)+c,X=R*(d-x-N)+v,j=_.get("rotate"),nt=0;j==="radial"?(nt=-T+2*Math.PI,nt>Math.PI/2&&(nt+=Math.PI)):j==="tangential"?nt=-T-Math.PI/2:Ct(j)&&(nt=j*Math.PI/180),nt===0?h.add(new Tt({style:Bt(_,{text:B,x:W,y:X,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:F}),silent:!0})):h.add(new Tt({style:Bt(_,{text:B,x:W,y:X,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:W,originY:X,rotation:nt}))}if(m.get("show")&&E!==S){var N=m.get("distance");N=N?N+f:f;for(var Mt=0;Mt<=b;Mt++){P=Math.cos(T),R=Math.sin(T);var Lt=new fe({shape:{x1:P*(d-N)+c,y1:R*(d-N)+v,x2:P*(d-w-N)+c,y2:R*(d-w-N)+v},silent:!0,style:L});L.stroke==="auto"&&Lt.setStyle({stroke:n((E+Mt/b)/S)}),h.add(Lt),T+=D}T-=D}else T+=C}},e.prototype._renderPointer=function(t,a,i,n,o,s,l,u,f){var h=this.group,c=this._data,v=this._progressEls,d=[],p=t.get(["pointer","show"]),g=t.getModel("progress"),y=g.get("show"),m=t.getData(),_=m.mapDimension("value"),S=+t.get("min"),b=+t.get("max"),x=[S,b],w=[s,l];function T(D,M){var L=m.getItemModel(D),I=L.getModel("pointer"),P=H(I.get("width"),o.r),R=H(I.get("length"),o.r),E=t.get(["pointer","icon"]),N=I.get("offsetCenter"),O=H(N[0],o.r),B=H(N[1],o.r),F=I.get("keepAspect"),W;return E?W=te(E,O-P/2,B-R,P,R,null,F):W=new C4({shape:{angle:-Math.PI/2,width:P,r:R,x:O,y:B}}),W.rotation=-(M+Math.PI/2),W.x=o.cx,W.y=o.cy,W}function C(D,M){var L=g.get("roundCap"),I=L?Jf:Ve,P=g.get("overlap"),R=P?g.get("width"):f/m.count(),E=P?o.r-R:o.r-(D+1)*R,N=P?o.r:o.r-D*R,O=new I({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:E,r:N}});return P&&(O.z2=b-m.get(_,D)%b),O}(y||p)&&(m.diff(c).add(function(D){var M=m.get(_,D);if(p){var L=T(D,s);Ft(L,{rotation:-((isNaN(+M)?w[0]:Rt(M,x,w,!0))+Math.PI/2)},t),h.add(L),m.setItemGraphicEl(D,L)}if(y){var I=C(D,s),P=g.get("clip");Ft(I,{shape:{endAngle:Rt(M,x,w,P)}},t),h.add(I),tp(t.seriesIndex,m.dataType,D,I),d[D]=I}}).update(function(D,M){var L=m.get(_,D);if(p){var I=c.getItemGraphicEl(M),P=I?I.rotation:s,R=T(D,P);R.rotation=P,At(R,{rotation:-((isNaN(+L)?w[0]:Rt(L,x,w,!0))+Math.PI/2)},t),h.add(R),m.setItemGraphicEl(D,R)}if(y){var E=v[M],N=E?E.shape.endAngle:s,O=C(D,N),B=g.get("clip");At(O,{shape:{endAngle:Rt(L,x,w,B)}},t),h.add(O),tp(t.seriesIndex,m.dataType,D,O),d[D]=O}}).execute(),m.each(function(D){var M=m.getItemModel(D),L=M.getModel("emphasis"),I=L.get("focus"),P=L.get("blurScope"),R=L.get("disabled");if(p){var E=m.getItemGraphicEl(D),N=m.getItemVisual(D,"style"),O=N.fill;if(E instanceof ge){var B=E.style;E.useStyle(V({image:B.image,x:B.x,y:B.y,width:B.width,height:B.height},N))}else E.useStyle(N),E.type!=="pointer"&&E.setColor(O);E.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),E.style.fill==="auto"&&E.setStyle("fill",n(Rt(m.get(_,D),x,[0,1],!0))),E.z2EmphasisLift=0,pe(E,M),Ut(E,I,P,R)}if(y){var F=d[D];F.useStyle(m.getItemVisual(D,"style")),F.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),F.z2EmphasisLift=0,pe(F,M),Ut(F,I,P,R)}}),this._progressEls=d)},e.prototype._renderAnchor=function(t,a){var i=t.getModel("anchor"),n=i.get("show");if(n){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),f=te(s,a.cx-o/2+H(l[0],a.r),a.cy-o/2+H(l[1],a.r),o,o,null,u);f.z2=i.get("showAbove")?1:0,f.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(t,a,i,n,o){var s=this,l=t.getData(),u=l.mapDimension("value"),f=+t.get("min"),h=+t.get("max"),c=new at,v=[],d=[],p=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){v[y]=new Tt({silent:!0}),d[y]=new Tt({silent:!0})}).update(function(y,m){v[y]=s._titleEls[m],d[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new at,b=n(Rt(_,[f,h],[0,1],!0)),x=m.getModel("title");if(x.get("show")){var w=x.get("offsetCenter"),T=o.cx+H(w[0],o.r),C=o.cy+H(w[1],o.r),D=v[y];D.attr({z2:g?0:2,style:Bt(x,{x:T,y:C,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:b})}),S.add(D)}var M=m.getModel("detail");if(M.get("show")){var L=M.get("offsetCenter"),I=o.cx+H(L[0],o.r),P=o.cy+H(L[1],o.r),R=H(M.get("width"),o.r),E=H(M.get("height"),o.r),N=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:b,D=d[y],O=M.get("formatter");D.attr({z2:g?0:2,style:Bt(M,{x:I,y:P,text:Gu(_,O),width:isNaN(R)?null:R,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:N})}),SC(D,{normal:M},_,function(F){return Gu(F,O)}),p&&xC(D,y,l,t,{getFormattedLabel:function(F,W,X,j,nt,Mt){return Gu(Mt?Mt.interpolatedValue:_,O)}}),S.add(D)}c.add(S)}),this.group.add(c),this._titleEls=v,this._detailEls=d},e.type="gauge",e}(zt),M4=D4,L4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,a){return $o(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}(Ht),I4=L4;function P4(r){r.registerChartView(M4),r.registerSeriesModel(I4)}var R4=["itemStyle","opacity"],E4=function(r){k(e,r);function e(t,a){var i=r.call(this)||this,n=i,o=new Ge,s=new Tt;return n.setTextContent(s),i.setTextGuideLine(o),i.updateData(t,a,!0),i}return e.prototype.updateData=function(t,a,i){var n=this,o=t.hostModel,s=t.getItemModel(a),l=t.getItemLayout(a),u=s.getModel("emphasis"),f=s.get(R4);f=f==null?1:f,i||Dr(n),n.useStyle(t.getItemVisual(a,"style")),n.style.lineJoin="round",i?(n.setShape({points:l.points}),n.style.opacity=0,Ft(n,{style:{opacity:f}},o,a)):At(n,{style:{opacity:f},shape:{points:l.points}},o,a),pe(n,s),this._updateLabel(t,a),Ut(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,a){var i=this,n=this.getTextGuideLine(),o=i.getTextContent(),s=t.hostModel,l=t.getItemModel(a),u=t.getItemLayout(a),f=u.label,h=t.getItemVisual(a,"style"),c=h.fill;we(o,he(l),{labelFetcher:t.hostModel,labelDataIndex:a,defaultOpacity:h.opacity,defaultText:t.getName(a)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}}),i.setTextConfig({local:!0,inside:!!f.inside,insideStroke:c,outsideFill:c});var v=f.linePoints;n.setShape({points:v}),i.textGuideLineConfig={anchor:v?new lt(v[0][0],v[0][1]):null},At(o,{style:{x:f.x,y:f.y}},s,a),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),my(i,_y(l),{stroke:c})},e}(ze),k4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,a,i){var n=t.getData(),o=this._data,s=this.group;n.diff(o).add(function(l){var u=new E4(n,l);n.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(n,l),s.add(f),n.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);al(u,t,l)}).execute(),this._data=n},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(zt),O4=k4,N4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Wl(Y(this.getData,this),Y(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,a){return $o(this,{coordDimensions:["value"],encodeDefaulter:ot(Xg,this)})},e.prototype._defaultLabelLine=function(t){gn(t,"labelLine",["show"]);var a=t.labelLine,i=t.emphasis.labelLine;a.show=a.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var a=this.getData(),i=r.prototype.getDataParams.call(this,t),n=a.mapDimension("value"),o=a.getSum(n);return i.percent=o?+(a.get(n,t)/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}(Ht),B4=N4;function V4(r,e){return ae(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function z4(r,e){for(var t=r.mapDimension("value"),a=r.mapArray(t,function(l){return l}),i=[],n=e==="ascending",o=0,s=r.count();o<s;o++)i[o]=o;return J(e)?i.sort(e):e!=="none"&&i.sort(function(l,u){return n?a[l]-a[u]:a[u]-a[l]}),i}function G4(r){var e=r.hostModel,t=e.get("orient");r.each(function(a){var i=r.getItemModel(a),n=i.getModel("label"),o=n.get("position"),s=i.getModel("labelLine"),l=r.getItemLayout(a),u=l.points,f=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",h,c,v,d;if(f)o==="insideLeft"?(c=(u[0][0]+u[3][0])/2+5,v=(u[0][1]+u[3][1])/2,h="left"):o==="insideRight"?(c=(u[1][0]+u[2][0])/2-5,v=(u[1][1]+u[2][1])/2,h="right"):(c=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,v=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,h="center"),d=[[c,v],[c,v]];else{var p=void 0,g=void 0,y=void 0,m=void 0,_=s.get("length");o==="left"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=p-_,c=y-5,h="right"):o==="right"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=p+_,c=y+5,h="left"):o==="top"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=g-_,v=m-5,h="center"):o==="bottom"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=g+_,v=m+5,h="center"):o==="rightTop"?(p=t==="horizontal"?u[3][0]:u[1][0],g=t==="horizontal"?u[3][1]:u[1][1],t==="horizontal"?(m=g-_,v=m-5,h="center"):(y=p+_,c=y+5,h="top")):o==="rightBottom"?(p=u[2][0],g=u[2][1],t==="horizontal"?(m=g+_,v=m+5,h="center"):(y=p+_,c=y+5,h="bottom")):o==="leftTop"?(p=u[0][0],g=t==="horizontal"?u[0][1]:u[1][1],t==="horizontal"?(m=g-_,v=m-5,h="center"):(y=p-_,c=y-5,h="right")):o==="leftBottom"?(p=t==="horizontal"?u[1][0]:u[3][0],g=t==="horizontal"?u[1][1]:u[2][1],t==="horizontal"?(m=g+_,v=m+5,h="center"):(y=p-_,c=y-5,h="right")):(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,t==="horizontal"?(m=g+_,v=m+5,h="center"):(y=p+_,c=y+5,h="left")),t==="horizontal"?(y=p,c=y):(m=g,v=m),d=[[p,g],[y,m]]}l.label={linePoints:d,x:c,y:v,verticalAlign:"middle",textAlign:h,inside:f}})}function F4(r,e){r.eachSeriesByType("funnel",function(t){var a=t.getData(),i=a.mapDimension("value"),n=t.get("sort"),o=V4(t,e),s=t.get("orient"),l=o.width,u=o.height,f=z4(a,n),h=o.x,c=o.y,v=s==="horizontal"?[H(t.get("minSize"),u),H(t.get("maxSize"),u)]:[H(t.get("minSize"),l),H(t.get("maxSize"),l)],d=a.getDataExtent(i),p=t.get("min"),g=t.get("max");p==null&&(p=Math.min(d[0],0)),g==null&&(g=d[1]);var y=t.get("funnelAlign"),m=t.get("gap"),_=s==="horizontal"?l:u,S=(_-m*(a.count()-1))/a.count(),b=function(P,R){if(s==="horizontal"){var E=a.get(i,P)||0,N=Rt(E,[p,g],v,!0),O=void 0;switch(y){case"top":O=c;break;case"center":O=c+(u-N)/2;break;case"bottom":O=c+(u-N);break}return[[R,O],[R,O+N]]}var B=a.get(i,P)||0,F=Rt(B,[p,g],v,!0),W;switch(y){case"left":W=h;break;case"center":W=h+(l-F)/2;break;case"right":W=h+l-F;break}return[[W,R],[W+F,R]]};n==="ascending"&&(S=-S,m=-m,s==="horizontal"?h+=l:c+=u,f=f.reverse());for(var x=0;x<f.length;x++){var w=f[x],T=f[x+1],C=a.getItemModel(w);if(s==="horizontal"){var D=C.get(["itemStyle","width"]);D==null?D=S:(D=H(D,l),n==="ascending"&&(D=-D));var M=b(w,h),L=b(T,h+D);h+=D+m,a.setItemLayout(w,{points:M.concat(L.slice().reverse())})}else{var I=C.get(["itemStyle","height"]);I==null?I=S:(I=H(I,u),n==="ascending"&&(I=-I));var M=b(w,c),L=b(T,c+I);c+=I+m,a.setItemLayout(w,{points:M.concat(L.slice().reverse())})}}G4(a)})}function H4(r){r.registerChartView(O4),r.registerSeriesModel(B4),r.registerLayout(F4),r.registerProcessor($l("funnel"))}var $4=.3,W4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new at,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,a,i,n){this._progressiveEls=null;var o=this._dataGroup,s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.dimensions,h=ex(t);s.diff(l).add(c).update(v).remove(d).execute();function c(g){var y=tx(s,o,g,f,u);Zc(y,s,g,h)}function v(g,y){var m=l.getItemGraphicEl(y),_=KM(s,g,f,u);s.setItemGraphicEl(g,m),At(m,{shape:{points:_}},t,g),Dr(m),Zc(m,s,g,h)}function d(g){var y=l.getItemGraphicEl(g);o.remove(y)}if(!this._initialized){this._initialized=!0;var p=U4(u,t,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(p)}this._data=s},e.prototype.incrementalPrepareRender=function(t,a,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,a,i){for(var n=a.getData(),o=a.coordinateSystem,s=o.dimensions,l=ex(a),u=this._progressiveEls=[],f=t.start;f<t.end;f++){var h=tx(n,this._dataGroup,f,s,o);h.incremental=!0,Zc(h,n,f,l),u.push(h)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(zt);function U4(r,e,t){var a=r.model,i=r.getRect(),n=new bt({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),o=a.get("layout")==="horizontal"?"width":"height";return n.setShape(o,0),Ft(n,{shape:{width:i.width,height:i.height}},e,t),n}function KM(r,e,t,a){for(var i=[],n=0;n<t.length;n++){var o=t[n],s=r.get(r.mapDimension(o),e);Y4(s,a.getAxis(o).type)||i.push(a.dataToPoint(s,o))}return i}function tx(r,e,t,a,i){var n=KM(r,t,a,i),o=new Ge({shape:{points:n},z2:10});return e.add(o),r.setItemGraphicEl(t,o),o}function ex(r){var e=r.get("smooth",!0);return e===!0&&(e=$4),e=ya(e),Ks(e)&&(e=0),{smooth:e}}function Zc(r,e,t,a){r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.setShape("smooth",a.smooth);var i=e.getItemModel(t),n=i.getModel("emphasis");pe(r,i,"lineStyle"),Ut(r,n.get("focus"),n.get("blurScope"),n.get("disabled"))}function Y4(r,e){return e==="category"?r==null:r==null||isNaN(r)}var Z4=W4,X4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.getInitialData=function(t,a){return Ta(null,this,{useEncodeDefaulter:Y(q4,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var a=this.coordinateSystem,i=this.getData(),n=[];return a.eachActiveState(i,function(o,s){t===o&&n.push(i.getRawIndex(s))}),n},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}(Ht);function q4(r){var e=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(!!e){var t={};return A(e.dimensions,function(a){var i=K4(a);t[a]=i}),t}}function K4(r){return+r.replace("dim","")}var J4=X4,Q4=["lineStyle","opacity"],j4={seriesType:"parallel",reset:function(r,e){var t=r.coordinateSystem,a={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(i,n){t.eachActiveState(n,function(o,s){var l=a[o];if(o==="normal"&&n.hasItemOption){var u=n.getItemModel(s).get(Q4,!0);u!=null&&(l=u)}var f=n.ensureUniqueItemVisual(s,"style");f.opacity=l},i.start,i.end)}}}},tH=j4;function eH(r){rH(r),aH(r)}function rH(r){if(!r.parallel){var e=!1;A(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function aH(r){var e=kt(r.parallelAxis);A(e,function(t){if(!!tt(t)){var a=t.parallelIndex||0,i=kt(r.parallel)[a];i&&i.parallelAxisDefault&&ft(t,i.parallelAxisDefault,!1)}})}var iH=5,nH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){this._model=t,this._api=i,this._handlers||(this._handlers={},A(oH,function(n,o){i.getZr().on(o,this._handlers[o]=Y(n,this))},this)),Fo(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,a){ll(this,"_throttledDispatchExpand"),A(this._handlers,function(i,n){a.getZr().off(n,i)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(V({type:"parallelAxisExpand"},t))},e.type="parallel",e}(Yt),oH={mousedown:function(r){Xc(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(Xc(this,"click")&&e){var t=[r.offsetX,r.offsetY],a=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(a>iH)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!Xc(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=t.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function Xc(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var sH=nH,lH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var a=this.option;t&&ft(a,t,!0),this._initDimensions()},e.prototype.contains=function(t,a){var i=t.get("parallelIndex");return i!=null&&a.getComponent("parallel",i)===this},e.prototype.setAxisExpand=function(t){A(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){t.hasOwnProperty(a)&&(this.option[a]=t[a])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],a=this.parallelAxisIndex=[],i=Et(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(n){return(n.get("parallelIndex")||0)===this.componentIndex},this);A(i,function(n){t.push("dim"+n.get("dim")),a.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}(wt),uH=lH,fH=function(r){k(e,r);function e(t,a,i,n,o){var s=r.call(this,t,a,i)||this;return s.type=n||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(Lr),hH=fH;function In(r,e,t,a,i,n){r=r||0;var o=t[1]-t[0];if(i!=null&&(i=Zn(i,[0,o])),n!=null&&(n=Math.max(n,i!=null?i:0)),a==="all"){var s=Math.abs(e[1]-e[0]);s=Zn(s,[0,o]),i=n=Zn(s,[i,n]),a=0}e[0]=Zn(e[0],t),e[1]=Zn(e[1],t);var l=qc(e,a);e[a]+=r;var u=i||0,f=t.slice();l.sign<0?f[0]+=u:f[1]-=u,e[a]=Zn(e[a],f);var h;return h=qc(e,a),i!=null&&(h.sign!==l.sign||h.span<i)&&(e[1-a]=e[a]+l.sign*i),h=qc(e,a),n!=null&&h.span>n&&(e[1-a]=e[a]+h.sign*n),e}function qc(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Zn(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var Kc=A,JM=Math.min,QM=Math.max,rx=Math.floor,vH=Math.ceil,ax=qt,cH=Math.PI,dH=function(){function r(e,t,a){this.type="parallel",this._axesMap=K(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var i=e.dimensions,n=e.parallelAxisIndex;Kc(i,function(o,s){var l=n[s],u=t.getComponent("parallelAxis",l),f=this._axesMap.set(o,new hH(o,Xh(u),[0,0],u.get("type"),l)),h=f.type==="category";f.onBand=h&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),a=t.axisBase,i=t.layoutBase,n=t.pixelDimIndex,o=e[1-n],s=e[n];return o>=a&&o<=a+t.axisLength&&s>=i&&s<=i+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(a){if(!!e.contains(a,t)){var i=a.getData();Kc(this.dimensions,function(n){var o=this._axesMap.get(n);o.scale.unionExtentFromData(i,i.mapDimension(n)),mo(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=ae(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,a=["x","y"],i=["width","height"],n=e.get("layout"),o=n==="horizontal"?0:1,s=t[i[o]],l=[0,s],u=this.dimensions.length,f=Fu(e.get("axisExpandWidth"),l),h=Fu(e.get("axisExpandCount")||0,[0,u]),c=e.get("axisExpandable")&&u>3&&u>h&&h>1&&f>0&&s>0,v=e.get("axisExpandWindow"),d;if(v)d=Fu(v[1]-v[0],l),v[1]=v[0]+d;else{d=Fu(f*(h-1),l);var p=e.get("axisExpandCenter")||rx(u/2);v=[f*p-d/2],v[1]=v[0]+d}var g=(s-d)/(u-h);g<3&&(g=0);var y=[rx(ax(v[0]/f,1))+1,vH(ax(v[1]/f,1))-1],m=g/f*v[0];return{layout:n,pixelDimIndex:o,layoutBase:t[a[o]],layoutLength:s,axisBase:t[a[1-o]],axisLength:t[i[1-o]],axisExpandable:c,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:v,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,a=this.dimensions,i=this._makeLayoutInfo(),n=i.layout;t.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),Kc(a,function(o,s){var l=(i.axisExpandable?gH:pH)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},f={horizontal:cH/2,vertical:0},h=[u[n].x+e.x,u[n].y+e.y],c=f[n],v=hr();Cn(v,v,c),Zr(v,v,h),this._axesLayout[o]={position:h,rotation:c,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,a,i){a==null&&(a=0),i==null&&(i=e.count());var n=this._axesMap,o=this.dimensions,s=[],l=[];A(o,function(g){s.push(e.mapDimension(g)),l.push(n.get(g).model)});for(var u=this.hasAxisBrushed(),f=a;f<i;f++){var h=void 0;if(!u)h="normal";else{h="active";for(var c=e.getValues(s,f),v=0,d=o.length;v<d;v++){var p=l[v].getActiveState(c[v]);if(p==="inactive"){h="inactive";break}}}t(h,f)}},r.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,a=!1,i=0,n=e.length;i<n;i++)t.get(e[i]).model.getActiveState()!=="normal"&&(a=!0);return a},r.prototype.axisCoordToPoint=function(e,t){var a=this._axesLayout[t];return Cr([e,0],a.transform)},r.prototype.getAxisLayout=function(e){return et(this._axesLayout[e])},r.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),a=t.pixelDimIndex,i=t.axisExpandWindow.slice(),n=i[1]-i[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:i};var s=e[a]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",f=t.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),c=h[0]!=null;if(f)c&&f&&s<n*h[0]?(u="jump",l=s-n*h[2]):c&&f&&s>n*(1-h[0])?(u="jump",l=s-n*(1-h[2])):(l=s-n*h[1])>=0&&(l=s-n*(1-h[1]))<=0&&(l=0),l*=t.axisExpandWidth/f,l?In(l,i,o,"all"):u="none";else{var v=i[1]-i[0],d=o[1]*s/v;i=[QM(0,d-v/2)],i[1]=JM(o[1],i[0]+v),i[0]=i[1]-v}return{axisExpandWindow:i,behavior:u}},r}();function Fu(r,e){return JM(QM(r,e[0]),e[1])}function pH(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function gH(r,e){var t=e.layoutLength,a=e.axisExpandWidth,i=e.axisCount,n=e.axisCollapseWidth,o=e.winInnerIndices,s,l=n,u=!1,f;return r<o[0]?(s=r*n,f=n):r<=o[1]?(s=e.axisExpandWindow0Pos+r*a-e.axisExpandWindow[0],l=a,u=!0):(s=t-(i-1-r)*n,f=n),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}var yH=dH;function mH(r,e){var t=[];return r.eachComponent("parallel",function(a,i){var n=new yH(a,r,e);n.name="parallel_"+i,n.resize(a,e),a.coordinateSystem=n,n.model=a,t.push(n)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="parallel"){var i=a.getReferringComponents("parallel",Qt).models[0];a.coordinateSystem=i.coordinateSystem}}),t}var _H={create:mH},SH=_H,jM=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return mn([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var a=this.activeIntervals=et(t);if(a)for(var i=a.length-1;i>=0;i--)ur(a[i])},e.prototype.getActiveState=function(t){var a=this.activeIntervals;if(!a.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(a.length===1){var i=a[0];if(i[0]<=t&&t<=i[1])return"active"}else for(var n=0,o=a.length;n<o;n++)if(a[n][0]<=t&&t<=a[n][1])return"active";return"inactive"},e}(wt);ee(jM,zl);var ix=jM,xn=!0,_l=Math.min,xo=Math.max,xH=Math.pow,bH=1e4,wH=6,TH=6,nx="globalPan",CH={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},AH={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},ox={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},DH=0,MH=function(r){k(e,r);function e(t){var a=r.call(this)||this;return a._track=[],a._covers=[],a._handlers={},a._zr=t,a.group=new at,a._uid="brushController_"+DH++,A(OH,function(i,n){this._handlers[n]=Y(i,this)},a),a}return e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var a=this._zr;this._enableGlobalPan||V3(a,nx,this._uid),A(this._handlers,function(i,n){a.on(n,i)}),this._brushType=t.brushType,this._brushOption=ft(et(ox),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;z3(t,nx,this._uid),A(this._handlers,function(a,i){t.off(i,a)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var a=this._panels={};A(t,function(i){a[i.panelId]=et(i)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var a=this.group;return this._zr.add(a),a.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=a.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=G(t,function(c){return ft(et(ox),c,!0)});var a="\0-brush-index-",i=this._covers,n=this._covers=[],o=this,s=this._creatingCover;return new Sa(i,t,u,l).add(f).update(f).remove(h).execute(),this;function l(c,v){return(c.id!=null?c.id:a+v)+"-"+c.brushType}function u(c,v){return l(c.__brushOption,v)}function f(c,v){var d=t[c];if(v!=null&&i[v]===s)n[c]=i[v];else{var p=n[c]=v!=null?(i[v].__brushOption=d,i[v]):e2(o,t2(o,d));Fy(o,p)}}function h(c){i[c]!==s&&o.group.remove(i[c])}},e.prototype.unmount=function(){return this.enableBrush(!1),$p(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(cr);function t2(r,e){var t=ev[e.brushType].createCover(r,e);return t.__brushOption=e,a2(t,e),r.group.add(t),t}function e2(r,e){var t=Hy(e);return t.endCreating&&(t.endCreating(r,e),a2(e,e.__brushOption)),e}function r2(r,e){var t=e.__brushOption;Hy(e).updateCoverShape(r,e,t.range,t)}function a2(r,e){var t=e.z;t==null&&(t=bH),r.traverse(function(a){a.z=t,a.z2=t})}function Fy(r,e){Hy(e).updateCommon(r,e),r2(r,e)}function Hy(r){return ev[r.__brushOption.brushType]}function $y(r,e,t){var a=r._panels;if(!a)return xn;var i,n=r._transform;return A(a,function(o){o.isTargetByCursor(e,t,n)&&(i=o)}),i}function i2(r,e){var t=r._panels;if(!t)return xn;var a=e.__brushOption.panelId;return a!=null?t[a]:xn}function $p(r){var e=r._covers,t=e.length;return A(e,function(a){r.group.remove(a)},r),e.length=0,!!t}function bn(r,e){var t=G(r._covers,function(a){var i=a.__brushOption,n=et(i.range);return{brushType:i.brushType,panelId:i.panelId,range:n}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function LH(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],a=e[0],i=t[0]-a[0],n=t[1]-a[1],o=xH(i*i+n*n,.5);return o>wH}function n2(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function o2(r,e,t,a){var i=new at;return i.add(new bt({name:"main",style:Wy(t),silent:!0,draggable:!0,cursor:"move",drift:ot(sx,r,e,i,["n","s","w","e"]),ondragend:ot(bn,e,{isEnd:!0})})),A(a,function(n){i.add(new bt({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ot(sx,r,e,i,n),ondragend:ot(bn,e,{isEnd:!0})}))}),i}function s2(r,e,t,a){var i=a.brushStyle.lineWidth||0,n=xo(i,TH),o=t[0][0],s=t[1][0],l=o-i/2,u=s-i/2,f=t[0][1],h=t[1][1],c=f-n+i/2,v=h-n+i/2,d=f-o,p=h-s,g=d+i,y=p+i;aa(r,e,"main",o,s,d,p),a.transformable&&(aa(r,e,"w",l,u,n,y),aa(r,e,"e",c,u,n,y),aa(r,e,"n",l,u,g,n),aa(r,e,"s",l,v,g,n),aa(r,e,"nw",l,u,n,n),aa(r,e,"ne",c,u,n,n),aa(r,e,"sw",l,v,n,n),aa(r,e,"se",c,v,n,n))}function Wp(r,e){var t=e.__brushOption,a=t.transformable,i=e.childAt(0);i.useStyle(Wy(t)),i.attr({silent:!a,cursor:a?"move":"default"}),A([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var o=e.childOfName(n.join("")),s=n.length===1?Up(r,n[0]):PH(r,n);o&&o.attr({silent:!a,invisible:!a,cursor:a?AH[s]+"-resize":null})})}function aa(r,e,t,a,i,n,o){var s=e.childOfName(t);s&&s.setShape(EH(Uy(r,e,[[a,i],[a+n,i+o]])))}function Wy(r){return Q({strokeNoScale:!0},r.brushStyle)}function l2(r,e,t,a){var i=[_l(r,t),_l(e,a)],n=[xo(r,t),xo(e,a)];return[[i[0],n[0]],[i[1],n[1]]]}function IH(r){return fn(r.group)}function Up(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},i=Rh(t[e],IH(r));return a[i]}function PH(r,e){var t=[Up(r,e[0]),Up(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function sx(r,e,t,a,i,n){var o=t.__brushOption,s=r.toRectRange(o.range),l=u2(e,i,n);A(a,function(u){var f=CH[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(l2(s[0][0],s[1][0],s[0][1],s[1][1])),Fy(e,t),bn(e,{isEnd:!1})}function RH(r,e,t,a){var i=e.__brushOption.range,n=u2(r,t,a);A(i,function(o){o[0]+=n[0],o[1]+=n[1]}),Fy(r,e),bn(r,{isEnd:!1})}function u2(r,e,t){var a=r.group,i=a.transformCoordToLocal(e,t),n=a.transformCoordToLocal(0,0);return[i[0]-n[0],i[1]-n[1]]}function Uy(r,e,t){var a=i2(r,e);return a&&a!==xn?a.clipPath(t,r._transform):et(t)}function EH(r){var e=_l(r[0][0],r[1][0]),t=_l(r[0][1],r[1][1]),a=xo(r[0][0],r[1][0]),i=xo(r[0][1],r[1][1]);return{x:e,y:t,width:a-e,height:i-t}}function kH(r,e,t){if(!(!r._brushType||NH(r,e.offsetX,e.offsetY))){var a=r._zr,i=r._covers,n=$y(r,e,t);if(!r._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(n&&(n===xn||s.panelId===n.panelId)&&ev[s.brushType].contain(i[o],t[0],t[1]))return}n&&a.setCursorStyle("crosshair")}}function Yp(r){var e=r.event;e.preventDefault&&e.preventDefault()}function Zp(r,e,t){return r.childOfName("main").contain(e,t)}function f2(r,e,t,a){var i=r._creatingCover,n=r._creatingPanel,o=r._brushOption,s;if(r._track.push(t.slice()),LH(r)||i){if(n&&!i){o.brushMode==="single"&&$p(r);var l=et(o);l.brushType=lx(l.brushType,n),l.panelId=n===xn?null:n.panelId,i=r._creatingCover=t2(r,l),r._covers.push(i)}if(i){var u=ev[lx(r._brushType,n)],f=i.__brushOption;f.range=u.getCreatingRange(Uy(r,i,r._track)),a&&(e2(r,i),u.updateCommon(r,i)),r2(r,i),s={isEnd:a}}}else a&&o.brushMode==="single"&&o.removeOnClick&&$y(r,e,t)&&$p(r)&&(s={isEnd:a,removeOnClick:!0});return s}function lx(r,e){return r==="auto"?e.defaultBrushType:r}var OH={mousedown:function(r){if(this._dragging)ux(this,r);else if(!r.target||!r.target.draggable){Yp(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=$y(this,r,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var e=r.offsetX,t=r.offsetY,a=this.group.transformCoordToLocal(e,t);if(kH(this,r,a),this._dragging){Yp(r);var i=f2(this,r,a,!1);i&&bn(this,i)}},mouseup:function(r){ux(this,r)}};function ux(r,e){if(r._dragging){Yp(e);var t=e.offsetX,a=e.offsetY,i=r.group.transformCoordToLocal(t,a),n=f2(r,e,i,!0);r._dragging=!1,r._track=[],r._creatingCover=null,n&&bn(r,n)}}function NH(r,e,t){var a=r._zr;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var ev={lineX:fx(0),lineY:fx(1),rect:{createCover:function(r,e){function t(a){return a}return o2({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=n2(r);return l2(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,a){s2(r,e,t,a)},updateCommon:Wp,contain:Zp},polygon:{createCover:function(r,e){var t=new at;return t.add(new Ge({name:"main",style:Wy(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new ze({name:"main",draggable:!0,drift:ot(RH,r,e),ondragend:ot(bn,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,a){e.childAt(0).setShape({points:Uy(r,e,t)})},updateCommon:Wp,contain:Zp}};function fx(r){return{createCover:function(e,t){return o2({toRectRange:function(a){var i=[a,[0,100]];return r&&i.reverse(),i},fromRectRange:function(a){return a[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=n2(e),a=_l(t[0][r],t[1][r]),i=xo(t[0][r],t[1][r]);return[a,i]},updateCoverShape:function(e,t,a,i){var n,o=i2(e,t);if(o!==xn&&o.getLinearBrushOtherExtent)n=o.getLinearBrushOtherExtent(r);else{var s=e._zr;n=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,n];r&&l.reverse(),s2(e,t,l,i)},updateCommon:Wp,contain:Zp}}var Yy=MH;function h2(r){return r=Zy(r),function(e){return gC(e,r)}}function v2(r,e){return r=Zy(r),function(t){var a=e!=null?e:t,i=a?r.width:r.height,n=a?r.x:r.y;return[n,n+(i||0)]}}function c2(r,e,t){var a=Zy(r);return function(i,n){return a.contain(n[0],n[1])&&!Jh(i,e,t)}}function Zy(r){return ht.create(r)}var BH=["axisLine","axisTickLabel","axisName"],VH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){r.prototype.init.apply(this,arguments),(this._brushController=new Yy(a.getZr())).on("brush",Y(this._onBrush,this))},e.prototype.render=function(t,a,i,n){if(!zH(t,a,n)){this.axisModel=t,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new at,this.group.add(this._axisGroup),!!t.get("show")){var s=FH(t,a),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,h=t.axis.dim,c=l.getAxisLayout(h),v=V({strokeContainThreshold:f},c),d=new xa(t,v);A(BH,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(v,u,t,s,f,i),Il(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,a,i,n,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),h=ht.create({x:l[0],y:-o/2,width:u,height:o});h.x-=f,h.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:h2(h),isTargetByCursor:c2(h,s,n),getLinearBrushOtherExtent:v2(h,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(GH(i))},e.prototype._onBrush=function(t){var a=t.areas,i=this.axisModel,n=i.axis,o=G(a,function(s){return[n.coordToData(s.range[0],!0),n.coordToData(s.range[1],!0)]});(!i.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Yt);function zH(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function GH(r){var e=r.axis;return G(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function FH(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var HH=VH,$H={type:"axisAreaSelect",event:"axisAreaSelected"};function WH(r){r.registerAction($H,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(a){a.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(a){a.setAxisExpand(e)})})}var UH={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function d2(r){r.registerComponentView(sH),r.registerComponentModel(uH),r.registerCoordinateSystem("parallel",SH),r.registerPreprocessor(eH),r.registerComponentModel(ix),r.registerComponentView(HH),So(r,"parallel",ix,UH),WH(r)}function YH(r){dt(d2),r.registerChartView(Z4),r.registerSeriesModel(J4),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,tH)}var ZH=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),XH=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new ZH},e.prototype.buildPath=function(t,a){var i=a.extent;t.moveTo(a.x1,a.y1),t.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),a.orient==="vertical"?(t.lineTo(a.x2+i,a.y2),t.bezierCurveTo(a.cpx2+i,a.cpy2,a.cpx1+i,a.cpy1,a.x1+i,a.y1)):(t.lineTo(a.x2,a.y2+i),t.bezierCurveTo(a.cpx2,a.cpy2+i,a.cpx1,a.cpy1+i,a.x1,a.y1+i)),t.closePath()},e.prototype.highlight=function(){ma(this)},e.prototype.downplay=function(){_a(this)},e}(yt),qH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,a,i){var n=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,f=l.height,h=t.getData(),c=t.getData("edge"),v=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(d){var p=new XH,g=it(p);g.dataIndex=d.dataIndex,g.seriesIndex=t.seriesIndex,g.dataType="edge";var y=d.getModel(),m=y.getModel("lineStyle"),_=m.get("curveness"),S=d.node1.getLayout(),b=d.node1.getModel(),x=b.get("localX"),w=b.get("localY"),T=d.node2.getLayout(),C=d.node2.getModel(),D=C.get("localX"),M=C.get("localY"),L=d.getLayout(),I,P,R,E,N,O,B,F;switch(p.shape.extent=Math.max(1,L.dy),p.shape.orient=v,v==="vertical"?(I=(x!=null?x*u:S.x)+L.sy,P=(w!=null?w*f:S.y)+S.dy,R=(D!=null?D*u:T.x)+L.ty,E=M!=null?M*f:T.y,N=I,O=P*(1-_)+E*_,B=R,F=P*_+E*(1-_)):(I=(x!=null?x*u:S.x)+S.dx,P=(w!=null?w*f:S.y)+L.sy,R=D!=null?D*u:T.x,E=(M!=null?M*f:T.y)+L.ty,N=I*(1-_)+R*_,O=P,B=I*_+R*(1-_),F=E),p.setShape({x1:I,y1:P,x2:R,y2:E,cpx1:N,cpy1:O,cpx2:B,cpy2:F}),p.useStyle(m.getItemStyle()),p.style.fill){case"source":p.style.fill=d.node1.getVisual("color"),p.style.decal=d.node1.getVisual("style").decal;break;case"target":p.style.fill=d.node2.getVisual("color"),p.style.decal=d.node2.getVisual("style").decal;break;case"gradient":var W=d.node1.getVisual("color"),X=d.node2.getVisual("color");U(W)&&U(X)&&(p.style.fill=new Ll(0,0,+(v==="horizontal"),+(v==="vertical"),[{color:W,offset:0},{color:X,offset:1}]))}var j=y.getModel("emphasis");pe(p,y,"lineStyle",function(Mt){return Mt.getItemStyle()}),s.add(p),c.setItemGraphicEl(d.dataIndex,p);var nt=j.get("focus");Ut(p,nt==="adjacency"?d.getAdjacentDataIndices():nt,j.get("blurScope"),j.get("disabled")),it(p).dataType="edge"}),o.eachNode(function(d){var p=d.getLayout(),g=d.getModel(),y=g.get("localX"),m=g.get("localY"),_=g.getModel("emphasis"),S=new bt({shape:{x:y!=null?y*u:p.x,y:m!=null?m*f:p.y,width:p.dx,height:p.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});we(S,he(g),{labelFetcher:t,labelDataIndex:d.dataIndex,defaultText:d.id}),S.disableLabelAnimation=!0,S.setStyle("fill",d.getVisual("color")),S.setStyle("decal",d.getVisual("style").decal),pe(S,g),s.add(S),h.setItemGraphicEl(d.dataIndex,S),it(S).dataType="node";var b=_.get("focus");Ut(S,b==="adjacency"?d.getAdjacentDataIndices():b,_.get("blurScope"),_.get("disabled"))}),h.eachItemGraphicEl(function(d,p){var g=h.getItemModel(p);g.get("draggable")&&(d.drift=function(y,m){n._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:h.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/f})},d.ondragend=function(){n._focusAdjacencyDisabled=!1},d.draggable=!0,d.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(KH(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(zt);function KH(r,e,t){var a=new bt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Ft(a,{shape:{width:r.width+20}},e,t),a}var JH=qH,QH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){var i=t.edges||t.links,n=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new Vt(o[l],this,a));if(n&&i){var u=qM(n,i,this,!0,f);return u.data}function f(h,c){h.wrapMethod("getItemModel",function(v,d){var p=v.parentModel,g=p.getData().getItemLayout(d);if(g){var y=g.depth,m=p.levelModels[y];m&&(v.parentModel=m)}return v}),c.wrapMethod("getItemModel",function(v,d){var p=v.parentModel,g=p.getGraph().getEdgeByIndex(d),y=g.node1.getLayout();if(y){var m=y.depth,_=p.levelModels[m];_&&(v.parentModel=_)}return v})}},e.prototype.setNodePosition=function(t,a){var i=this.option.data||this.option.nodes,n=i[t];n.localX=a[0],n.localY=a[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,a,i){function n(v){return isNaN(v)||v==null}if(i==="edge"){var o=this.getDataParams(t,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return oe("nameValue",{name:u,value:l,noValue:n(l)})}else{var f=this.getGraph().getNodeByIndex(t),h=f.getLayout().value,c=this.getDataParams(t,i).data.name;return oe("nameValue",{name:c!=null?c+"":null,value:h,noValue:n(h)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,a){var i=r.prototype.getDataParams.call(this,t,a);if(i.value==null&&a==="node"){var n=this.getGraph().getNodeByIndex(t),o=n.getLayout().value;i.value=o}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},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}(Ht),jH=QH;function t$(r,e){r.eachSeriesByType("sankey",function(t){var a=t.get("nodeWidth"),i=t.get("nodeGap"),n=e$(t,e);t.layoutInfo=n;var o=n.width,s=n.height,l=t.getGraph(),u=l.nodes,f=l.edges;a$(u);var h=Et(u,function(p){return p.getLayout().value===0}),c=h.length!==0?0:t.get("layoutIterations"),v=t.get("orient"),d=t.get("nodeAlign");r$(u,f,a,i,o,s,c,v,d)})}function e$(r,e){return ae(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function r$(r,e,t,a,i,n,o,s,l){i$(r,e,t,i,n,s,l),l$(r,e,n,i,a,o,s),y$(r,s)}function a$(r){A(r,function(e){var t=ja(e.outEdges,ah),a=ja(e.inEdges,ah),i=e.getValue()||0,n=Math.max(t,a,i);e.setLayout({value:n},!0)})}function i$(r,e,t,a,i,n,o){for(var s=[],l=[],u=[],f=[],h=0,c=0;c<e.length;c++)s[c]=1;for(var c=0;c<r.length;c++)l[c]=r[c].inEdges.length,l[c]===0&&u.push(r[c]);for(var v=-1;u.length;){for(var d=0;d<u.length;d++){var p=u[d],g=p.hostGraph.data.getRawDataItem(p.dataIndex),y=g.depth!=null&&g.depth>=0;y&&g.depth>v&&(v=g.depth),p.setLayout({depth:y?g.depth:h},!0),n==="vertical"?p.setLayout({dy:t},!0):p.setLayout({dx:t},!0);for(var m=0;m<p.outEdges.length;m++){var _=p.outEdges[m],S=e.indexOf(_);s[S]=0;var b=_.node2,x=r.indexOf(b);--l[x]===0&&f.indexOf(b)<0&&f.push(b)}}++h,u=f,f=[]}for(var c=0;c<s.length;c++)if(s[c]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var w=v>h-1?v:h-1;o&&o!=="left"&&n$(r,o,n,w);var T=n==="vertical"?(i-t)/w:(a-t)/w;s$(r,T,n)}function p2(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function n$(r,e,t,a){if(e==="right"){for(var i=[],n=r,o=0;n.length;){for(var s=0;s<n.length;s++){var l=n[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var f=l.inEdges[u];i.indexOf(f.node1)<0&&i.push(f.node1)}}n=i,i=[],++o}A(r,function(h){p2(h)||h.setLayout({depth:Math.max(0,a-h.getLayout().skNodeHeight)},!0)})}else e==="justify"&&o$(r,a)}function o$(r,e){A(r,function(t){!p2(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function s$(r,e,t){A(r,function(a){var i=a.getLayout().depth*e;t==="vertical"?a.setLayout({y:i},!0):a.setLayout({x:i},!0)})}function l$(r,e,t,a,i,n,o){var s=u$(r,o);f$(s,e,t,a,i,o),Jc(s,i,t,a,o);for(var l=1;n>0;n--)l*=.99,h$(s,l,o),Jc(s,i,t,a,o),g$(s,l,o),Jc(s,i,t,a,o)}function u$(r,e){var t=[],a=e==="vertical"?"y":"x",i=Kd(r,function(n){return n.getLayout()[a]});return i.keys.sort(function(n,o){return n-o}),A(i.keys,function(n){t.push(i.buckets.get(n))}),t}function f$(r,e,t,a,i,n){var o=1/0;A(r,function(s){var l=s.length,u=0;A(s,function(h){u+=h.getLayout().value});var f=n==="vertical"?(a-(l-1)*i)/u:(t-(l-1)*i)/u;f<o&&(o=f)}),A(r,function(s){A(s,function(l,u){var f=l.getLayout().value*o;n==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:f},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:f},!0))})}),A(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function Jc(r,e,t,a,i){var n=i==="vertical"?"x":"y";A(r,function(o){o.sort(function(p,g){return p.getLayout()[n]-g.getLayout()[n]});for(var s,l,u,f=0,h=o.length,c=i==="vertical"?"dx":"dy",v=0;v<h;v++)l=o[v],u=f-l.getLayout()[n],u>0&&(s=l.getLayout()[n]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[n]+l.getLayout()[c]+e;var d=i==="vertical"?a:t;if(u=f-e-d,u>0){s=l.getLayout()[n]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var v=h-2;v>=0;--v)l=o[v],u=l.getLayout()[n]+l.getLayout()[c]+e-f,u>0&&(s=l.getLayout()[n]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[n]}})}function h$(r,e,t){A(r.slice().reverse(),function(a){A(a,function(i){if(i.outEdges.length){var n=ja(i.outEdges,v$,t)/ja(i.outEdges,ah);if(isNaN(n)){var o=i.outEdges.length;n=o?ja(i.outEdges,c$,t)/o:0}if(t==="vertical"){var s=i.getLayout().x+(n-oi(i,t))*e;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(n-oi(i,t))*e;i.setLayout({y:l},!0)}}})})}function v$(r,e){return oi(r.node2,e)*r.getValue()}function c$(r,e){return oi(r.node2,e)}function d$(r,e){return oi(r.node1,e)*r.getValue()}function p$(r,e){return oi(r.node1,e)}function oi(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function ah(r){return r.getValue()}function ja(r,e,t){for(var a=0,i=r.length,n=-1;++n<i;){var o=+e(r[n],t);isNaN(o)||(a+=o)}return a}function g$(r,e,t){A(r,function(a){A(a,function(i){if(i.inEdges.length){var n=ja(i.inEdges,d$,t)/ja(i.inEdges,ah);if(isNaN(n)){var o=i.inEdges.length;n=o?ja(i.inEdges,p$,t)/o:0}if(t==="vertical"){var s=i.getLayout().x+(n-oi(i,t))*e;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(n-oi(i,t))*e;i.setLayout({y:l},!0)}}})})}function y$(r,e){var t=e==="vertical"?"x":"y";A(r,function(a){a.outEdges.sort(function(i,n){return i.node2.getLayout()[t]-n.node2.getLayout()[t]}),a.inEdges.sort(function(i,n){return i.node1.getLayout()[t]-n.node1.getLayout()[t]})}),A(r,function(a){var i=0,n=0;A(a.outEdges,function(o){o.setLayout({sy:i},!0),i+=o.getLayout().dy}),A(a.inEdges,function(o){o.setLayout({ty:n},!0),n+=o.getLayout().dy})})}function m$(r){r.eachSeriesByType("sankey",function(e){var t=e.getGraph(),a=t.nodes;if(a.length){var i=1/0,n=-1/0;A(a,function(o){var s=o.getLayout().value;s<i&&(i=s),s>n&&(n=s)}),A(a,function(o){var s=new de({type:"color",mappingMethod:"linear",dataExtent:[i,n],visual:e.get("color")}),l=s.mapValueToVisual(o.getLayout().value),u=o.getModel().get(["itemStyle","color"]);u!=null?(o.setVisual("color",u),o.setVisual("style",{fill:u})):(o.setVisual("color",l),o.setVisual("style",{fill:l}))})}})}function _$(r){r.registerChartView(JH),r.registerSeriesModel(jH),r.registerLayout(t$),r.registerVisual(m$),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(a){a.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var g2=function(){function r(){}return r.prototype.getInitialData=function(e,t){var a,i=t.getComponent("xAxis",this.get("xAxisIndex")),n=t.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=n.get("type"),l;o==="category"?(e.layout="horizontal",a=i.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",a=n.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],f=e.layout==="horizontal"?0:1,h=this._baseAxisDim=u[f],c=u[1-f],v=[i,n],d=v[f].get("type"),p=v[1-f].get("type"),g=e.data;if(g&&l){var y=[];A(g,function(S,b){var x;z(S)?(x=S.slice(),S.unshift(b)):z(S.value)?(x=V({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,y.push(x)}),e.data=y}var m=this.defaultValueDimensions,_=[{name:h,type:Uf(d),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:Uf(p),dimsDef:m.slice()}];return $o(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:ot($C,_,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r}(),y2=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return 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}(Ht);ee(y2,g2,!0);var S$=y2,x$=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){var n=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;n.diff(s).add(function(u){if(n.hasValue(u)){var f=n.getItemLayout(u),h=hx(f,n,u,l,!0);n.setItemGraphicEl(u,h),o.add(h)}}).update(function(u,f){var h=s.getItemGraphicEl(f);if(!n.hasValue(u)){o.remove(h);return}var c=n.getItemLayout(u);h?(Dr(h),m2(c,h,n,u)):h=hx(c,n,u,l),o.add(h),n.setItemGraphicEl(u,h)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=n},e.prototype.remove=function(t){var a=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(n){n&&a.remove(n)})},e.type="boxplot",e}(zt),b$=function(){function r(){}return r}(),w$=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="boxplotBoxPath",a}return e.prototype.getDefaultShape=function(){return new b$},e.prototype.buildPath=function(t,a){var i=a.points,n=0;for(t.moveTo(i[n][0],i[n][1]),n++;n<4;n++)t.lineTo(i[n][0],i[n][1]);for(t.closePath();n<i.length;n++)t.moveTo(i[n][0],i[n][1]),n++,t.lineTo(i[n][0],i[n][1])},e}(yt);function hx(r,e,t,a,i){var n=r.ends,o=new w$({shape:{points:i?T$(n,a,r):n}});return m2(r,o,e,t,i),o}function m2(r,e,t,a,i){var n=t.hostModel,o=Rl[i?"initProps":"updateProps"];o(e,{shape:{points:r.ends}},n,a),e.useStyle(t.getItemVisual(a,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=t.getItemModel(a),l=s.getModel("emphasis");pe(e,s),Ut(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function T$(r,e,t){return G(r,function(a){return a=a.slice(),a[e]=t.initBaseline,a})}var C$=x$;function A$(r,e){}var Zs=A;function D$(r){var e=M$(r);Zs(e,function(t){var a=t.seriesModels;!a.length||(L$(t),Zs(a,function(i,n){I$(i,t.boxOffsetList[n],t.boxWidthList[n])}))})}function M$(r){var e=[],t=[];return r.eachSeriesByType("boxplot",function(a){var i=a.getBaseAxis(),n=ct(t,i);n<0&&(n=t.length,t[n]=i,e[n]={axis:i,seriesModels:[]}),e[n].seriesModels.push(a)}),e}function L$(r){var e=r.axis,t=r.seriesModels,a=t.length,i=r.boxWidthList=[],n=r.boxOffsetList=[],o=[],s;if(e.type==="category")s=e.getBandWidth();else{var l=0;Zs(t,function(d){l=Math.max(l,d.getData().count())});var u=e.getExtent();s=Math.abs(u[1]-u[0])/l}Zs(t,function(d){var p=d.get("boxWidth");z(p)||(p=[p,p]),o.push([H(p[0],s)||0,H(p[1],s)||0])});var f=s*.8-2,h=f/a*.3,c=(f-h*(a-1))/a,v=c/2-f/2;Zs(t,function(d,p){n.push(v),v+=h+c,i.push(Math.min(Math.max(c,o[p][0]),o[p][1]))})}function I$(r,e,t){var a=r.coordinateSystem,i=r.getData(),n=t/2,o=r.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=i.mapDimension(l[o]),f=i.mapDimensionsAll(l[s]);if(u==null||f.length<5)return;for(var h=0;h<i.count();h++){var c=i.get(u,h),v=_(c,f[2],h),d=_(c,f[0],h),p=_(c,f[1],h),g=_(c,f[3],h),y=_(c,f[4],h),m=[];S(m,p,!1),S(m,g,!0),m.push(d,p,y,g),b(m,d),b(m,y),b(m,v),i.setItemLayout(h,{initBaseline:v[s],ends:m})}function _(x,w,T){var C=i.get(w,T),D=[];D[o]=x,D[s]=C;var M;return isNaN(x)||isNaN(C)?M=[NaN,NaN]:(M=a.dataToPoint(D),M[o]+=e),M}function S(x,w,T){var C=w.slice(),D=w.slice();C[o]+=n,D[o]-=n,T?x.push(C,D):x.push(D,C)}function b(x,w){var T=w.slice(),C=w.slice();T[o]-=n,C[o]+=n,x.push(T,C)}}function P$(r,e){e=e||{};for(var t=[],a=[],i=e.boundIQR,n=i==="none"||i===0,o=0;o<r.length;o++){var s=ur(r[o].slice()),l=Dv(s,.25),u=Dv(s,.5),f=Dv(s,.75),h=s[0],c=s[s.length-1],v=(i==null?1.5:i)*(f-l),d=n?h:Math.max(h,l-v),p=n?c:Math.min(c,f+v),g=e.itemNameFormatter,y=J(g)?g({value:o}):U(g)?g.replace("{value}",o+""):o+"";t.push([y,d,l,u,f,p]);for(var m=0;m<s.length;m++){var _=s[m];if(_<d||_>p){var S=[y,_];a.push(S)}}}return{boxData:t,outliers:a}}var R$={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==be){var a="";Pt(a)}var i=P$(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function E$(r){r.registerSeriesModel(S$),r.registerChartView(C$),r.registerVisual(A$),r.registerLayout(D$),r.registerTransform(R$)}var k$=["color","borderColor"],O$=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,a,i){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,a,i,n){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,a):this._incrementalRenderNormal(t,a)},e.prototype.eachRendered=function(t){ui(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t){var a=t.getData(),i=this._data,n=this.group,o=a.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||n.removeAll(),a.diff(i).add(function(f){if(a.hasValue(f)){var h=a.getItemLayout(f);if(s&&vx(u,h))return;var c=Qc(h,f,!0);Ft(c,{shape:{points:h.ends}},t,f),jc(c,a,f,o),n.add(c),a.setItemGraphicEl(f,c)}}).update(function(f,h){var c=i.getItemGraphicEl(h);if(!a.hasValue(f)){n.remove(c);return}var v=a.getItemLayout(f);if(s&&vx(u,v)){n.remove(c);return}c?(At(c,{shape:{points:v.ends}},t,f),Dr(c)):c=Qc(v),jc(c,a,f,o),n.add(c),a.setItemGraphicEl(f,c)}).remove(function(f){var h=i.getItemGraphicEl(f);h&&n.remove(h)}).execute(),this._data=a},e.prototype._renderLarge=function(t){this._clear(),dx(t,this.group);var a=t.get("clip",!0)?Kh(t.coordinateSystem,!1,t):null;a?this.group.setClipPath(a):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,a){for(var i=a.getData(),n=i.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=i.getItemLayout(o),l=Qc(s);jc(l,i,o,n),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,a){dx(a,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}(zt),N$=function(){function r(){}return r}(),B$=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="normalCandlestickBox",a}return e.prototype.getDefaultShape=function(){return new N$},e.prototype.buildPath=function(t,a){var i=a.points;this.__simpleBox?(t.moveTo(i[4][0],i[4][1]),t.lineTo(i[6][0],i[6][1])):(t.moveTo(i[0][0],i[0][1]),t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]),t.lineTo(i[3][0],i[3][1]),t.closePath(),t.moveTo(i[4][0],i[4][1]),t.lineTo(i[5][0],i[5][1]),t.moveTo(i[6][0],i[6][1]),t.lineTo(i[7][0],i[7][1]))},e}(yt);function Qc(r,e,t){var a=r.ends;return new B$({shape:{points:t?V$(a,r):a},z2:100})}function vx(r,e){for(var t=!0,a=0;a<e.ends.length;a++)if(r.contain(e.ends[a][0],e.ends[a][1])){t=!1;break}return t}function jc(r,e,t,a){var i=e.getItemModel(t);r.useStyle(e.getItemVisual(t,"style")),r.style.strokeNoScale=!0,r.__simpleBox=a,pe(r,i)}function V$(r,e){return G(r,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}var z$=function(){function r(){}return r}(),cx=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="largeCandlestickBox",a}return e.prototype.getDefaultShape=function(){return new z$},e.prototype.buildPath=function(t,a){for(var i=a.points,n=0;n<i.length;)if(this.__sign===i[n++]){var o=i[n++];t.moveTo(o,i[n++]),t.lineTo(o,i[n++])}else n+=3},e}(yt);function dx(r,e,t,a){var i=r.getData(),n=i.getLayout("largePoints"),o=new cx({shape:{points:n},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new cx({shape:{points:n},__sign:-1,ignoreCoarsePointer:!0});e.add(s),px(1,o,r),px(-1,s,r),a&&(o.incremental=!0,s.incremental=!0),t&&t.push(o,s)}function px(r,e,t,a){var i=t.get(["itemStyle",r>0?"borderColor":"borderColor0"])||t.get(["itemStyle",r>0?"color":"color0"]),n=t.getModel("itemStyle").getItemStyle(k$);e.useStyle(n),e.style.fill=null,e.style.stroke=i}var G$=O$,_2=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,a,i){var n=a.getItemLayout(t);return n&&i.rect(n.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",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Ht);ee(_2,g2,!0);var F$=_2;function H$(r){!r||!z(r.series)||A(r.series,function(e){tt(e)&&e.type==="k"&&(e.type="candlestick")})}var $$=["itemStyle","borderColor"],W$=["itemStyle","borderColor0"],U$=["itemStyle","color"],Y$=["itemStyle","color0"],Z$={seriesType:"candlestick",plan:Go(),performRawSeries:!0,reset:function(r,e){function t(n,o){return o.get(n>0?U$:Y$)}function a(n,o){return o.get(n>0?$$:W$)}if(!e.isSeriesFiltered(r)){var i=r.pipelineContext.large;return!i&&{progress:function(n,o){for(var s;(s=n.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,f=l.getItemStyle();f.fill=t(u,l),f.stroke=a(u,l)||f.fill;var h=o.ensureUniqueItemVisual(s,"style");V(h,f)}}}}}},X$=Z$,q$={seriesType:"candlestick",plan:Go(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),a=K$(r,t),i=0,n=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[i])),l=G(t.mapDimensionsAll(o[n]),t.getDimensionIndex,t),u=l[0],f=l[1],h=l[2],c=l[3];if(t.setLayout({candleWidth:a,isSimpleBox:a<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?d:v};function v(p,g){for(var y,m=g.getStore();(y=p.next())!=null;){var _=m.get(s,y),S=m.get(u,y),b=m.get(f,y),x=m.get(h,y),w=m.get(c,y),T=Math.min(S,b),C=Math.max(S,b),D=R(T,_),M=R(C,_),L=R(x,_),I=R(w,_),P=[];E(P,M,0),E(P,D,1),P.push(O(I),O(M),O(L),O(D)),g.setItemLayout(y,{sign:gx(m,y,S,b,f),initBaseline:S>b?M[n]:D[n],ends:P,brushRect:N(x,w,_)})}function R(B,F){var W=[];return W[i]=F,W[n]=B,isNaN(F)||isNaN(B)?[NaN,NaN]:e.dataToPoint(W)}function E(B,F,W){var X=F.slice(),j=F.slice();X[i]=ff(X[i]+a/2,1,!1),j[i]=ff(j[i]-a/2,1,!0),W?B.push(X,j):B.push(j,X)}function N(B,F,W){var X=R(B,W),j=R(F,W);return X[i]-=a/2,j[i]-=a/2,{x:X[0],y:X[1],width:a,height:j[1]-X[1]}}function O(B){return B[i]=ff(B[i],1),B}}function d(p,g){for(var y=$r(p.count*4),m=0,_,S=[],b=[],x,w=g.getStore();(x=p.next())!=null;){var T=w.get(s,x),C=w.get(u,x),D=w.get(f,x),M=w.get(h,x),L=w.get(c,x);if(isNaN(T)||isNaN(M)||isNaN(L)){y[m++]=NaN,m+=3;continue}y[m++]=gx(w,x,C,D,f),S[i]=T,S[n]=M,_=e.dataToPoint(S,null,b),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[n]=L,_=e.dataToPoint(S,null,b),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function gx(r,e,t,a,i){var n;return t>a?n=-1:t<a?n=1:n=e>0?r.get(i,e-1)<=a?1:-1:1,n}function K$(r,e){var t=r.getBaseAxis(),a,i=t.type==="category"?t.getBandWidth():(a=t.getExtent(),Math.abs(a[1]-a[0])/e.count()),n=H(ut(r.get("barMaxWidth"),i),i),o=H(ut(r.get("barMinWidth"),1),i),s=r.get("barWidth");return s!=null?H(s,i):Math.max(Math.min(i/2,n),o)}var J$=q$;function Q$(r){r.registerChartView(G$),r.registerSeriesModel(F$),r.registerPreprocessor(H$),r.registerVisual(X$),r.registerLayout(J$)}function yx(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(a){a.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var j$=function(r){k(e,r);function e(t,a){var i=r.call(this)||this,n=new Gl(t,a),o=new at;return i.add(n),i.add(o),i.updateData(t,a),i}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var a=t.symbolType,i=t.color,n=t.rippleNumber,o=this.childAt(1),s=0;s<n;s++){var l=te(a,-1,-1,2,2,i);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/n*t.period+t.effectOffset;l.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(t.period,{opacity:0}).delay(u).start(),o.add(l)}yx(o,t)},e.prototype.updateEffectAnimation=function(t){for(var a=this._effectCfg,i=this.childAt(1),n=["symbolType","period","rippleScale","rippleNumber"],o=0;o<n.length;o++){var s=n[o];if(a[s]!==t[s]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}yx(i,t)},e.prototype.highlight=function(){ma(this)},e.prototype.downplay=function(){_a(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,a){var i=this,n=t.hostModel;this.childAt(0).updateData(t,a);var o=this.childAt(1),s=t.getItemModel(a),l=t.getItemVisual(a,"symbol"),u=Ol(t.getItemVisual(a,"symbolSize")),f=t.getItemVisual(a,"style"),h=f&&f.fill,c=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",h)});var v=Ho(t.getItemVisual(a,"symbolOffset"),u);v&&(o.x=v[0],o.y=v[1]);var d=t.getItemVisual(a,"symbolRotate");o.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=n.get("showEffectOn"),p.rippleScale=s.get(["rippleEffect","scale"]),p.brushType=s.get(["rippleEffect","brushType"]),p.period=s.get(["rippleEffect","period"])*1e3,p.effectOffset=a/t.count(),p.z=n.getShallow("z")||0,p.zlevel=n.getShallow("zlevel")||0,p.symbolType=l,p.color=h,p.rippleEffectColor=s.get(["rippleEffect","color"]),p.rippleNumber=s.get(["rippleEffect","number"]),p.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?p.showEffectOn!=="render"&&i.startEffectAnimation(p):g==="normal"&&p.showEffectOn!=="render"&&i.stopEffectAnimation()}),this._effectCfg=p,Ut(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(at),tW=j$,eW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._symbolDraw=new Fl(tW)},e.prototype.render=function(t,a,i){var n=t.getData(),o=this._symbolDraw;o.updateData(n,{clipShape:this._getClipShape(t)}),this.group.add(o.group)},e.prototype._getClipShape=function(t){var a=t.coordinateSystem,i=a&&a.getArea&&a.getArea();return t.get("clip",!0)?i:null},e.prototype.updateTransform=function(t,a,i){var n=t.getData();this.group.dirty();var o=Hl("").reset(t,a,i);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var a=t.coordinateSystem;a&&a.getRoamTransform&&(this.group.transform=EI(a.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(zt),rW=eW,aW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,a){return Ta(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,a,i){return i.point(a.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}(Ht),iW=aW;function nW(r){r.registerChartView(rW),r.registerSeriesModel(iW),r.registerLayout(Hl("effectScatter"))}var oW=function(r){k(e,r);function e(t,a,i){var n=r.call(this)||this;return n.add(n.createLine(t,a,i)),n._updateEffectSymbol(t,a),n}return e.prototype.createLine=function(t,a,i){return new zy(t,a,i)},e.prototype._updateEffectSymbol=function(t,a){var i=t.getItemModel(a),n=i.getModel("effect"),o=n.get("symbolSize"),s=n.get("symbol");z(o)||(o=[o,o]);var l=t.getItemVisual(a,"style"),u=n.get("color")||l&&l.stroke,f=this.childAt(1);this._symbolType!==s&&(this.remove(f),f=te(s,-.5,-.5,1,1,u),f.z2=100,f.culling=!0,this.add(f)),f&&(f.setStyle("shadowColor",u),f.setStyle(n.getItemStyle(["color"])),f.scaleX=o[0],f.scaleY=o[1],f.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(t,n,a))},e.prototype._updateEffectAnimation=function(t,a,i){var n=this.childAt(1);if(!!n){var o=t.getItemLayout(i),s=a.get("period")*1e3,l=a.get("loop"),u=a.get("roundTrip"),f=a.get("constantSpeed"),h=ue(a.get("delay"),function(v){return v/t.count()*s/3});if(n.ignore=!0,this._updateAnimationPoints(n,o),f>0&&(s=this._getLineLength(n)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){n.stopAnimation();var c=void 0;J(h)?c=h(i):c=h,n.__t>0&&(c=-s*n.__t),this._animateSymbol(n,s,c,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,a,i,n,o){if(a>0){t.__t=0;var s=this,l=t.animate("",n).when(o?a*2:a,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(t)});n||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return Ga(t.__p1,t.__cp1)+Ga(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,a){t.__p1=a[0],t.__p2=a[1],t.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},e.prototype.updateData=function(t,a,i){this.childAt(0).updateData(t,a,i),this._updateEffectSymbol(t,a)},e.prototype._updateSymbolPosition=function(t){var a=t.__p1,i=t.__p2,n=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=se,f=Bd;s[0]=u(a[0],n[0],i[0],o),s[1]=u(a[1],n[1],i[1],o);var h=t.__t<1?f(a[0],n[0],i[0],o):f(i[0],n[0],a[0],1-o),c=t.__t<1?f(a[1],n[1],i[1],o):f(i[1],n[1],a[1],1-o);t.rotation=-Math.atan2(c,h)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT<t.__t?(t.scaleY=Ga(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):t.__lastT===1?t.scaleY=2*Ga(a,s):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=s[0],t.y=s[1]},e.prototype.updateLayout=function(t,a){this.childAt(0).updateLayout(t,a);var i=t.getItemModel(a).getModel("effect");this._updateEffectAnimation(t,i,a)},e}(at),S2=oW,sW=function(r){k(e,r);function e(t,a,i){var n=r.call(this)||this;return n._createPolyline(t,a,i),n}return e.prototype._createPolyline=function(t,a,i){var n=t.getItemLayout(a),o=new Ge({shape:{points:n}});this.add(o),this._updateCommonStl(t,a,i)},e.prototype.updateData=function(t,a,i){var n=t.hostModel,o=this.childAt(0),s={shape:{points:t.getItemLayout(a)}};At(o,s,n,a),this._updateCommonStl(t,a,i)},e.prototype._updateCommonStl=function(t,a,i){var n=this.childAt(0),o=t.getItemModel(a),s=i&&i.emphasisLineStyle,l=i&&i.focus,u=i&&i.blurScope,f=i&&i.emphasisDisabled;if(!i||t.hasItemOption){var h=o.getModel("emphasis");s=h.getModel("lineStyle").getLineStyle(),f=h.get("disabled"),l=h.get("focus"),u=h.get("blurScope")}n.useStyle(t.getItemVisual(a,"style")),n.style.fill=null,n.style.strokeNoScale=!0;var c=n.ensureState("emphasis");c.style=s,Ut(this,l,u,f)},e.prototype.updateLayout=function(t,a){var i=this.childAt(0);i.setShape("points",t.getItemLayout(a))},e}(at),x2=sW,lW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return e.prototype.createLine=function(t,a,i){return new x2(t,a,i)},e.prototype._updateAnimationPoints=function(t,a){this._points=a;for(var i=[0],n=0,o=1;o<a.length;o++){var s=a[o-1],l=a[o];n+=Ga(s,l),i.push(n)}if(n===0){this._length=0;return}for(var o=0;o<i.length;o++)i[o]/=n;this._offsets=i,this._length=n},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var a=t.__t<1?t.__t:2-t.__t,i=this._points,n=this._offsets,o=i.length;if(!!n){var s=this._lastFrame,l;if(a<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(n[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(n[l]>a);l++);l=Math.min(l-1,o-2)}var f=(a-n[l])/(n[l+1]-n[l]),h=i[l],c=i[l+1];t.x=h[0]*(1-f)+f*c[0],t.y=h[1]*(1-f)+f*c[1];var v=t.__t<1?c[0]-h[0]:h[0]-c[0],d=t.__t<1?c[1]-h[1]:h[1]-c[1];t.rotation=-Math.atan2(d,v)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,t.ignore=!1}},e}(S2),uW=lW,fW=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),hW=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return 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 fW},e.prototype.buildPath=function(t,a){var i=a.segs,n=a.curveness,o;if(a.polyline)for(o=this._off;o<i.length;){var s=i[o++];if(s>0){t.moveTo(i[o++],i[o++]);for(var l=1;l<s;l++)t.lineTo(i[o++],i[o++])}}else for(o=this._off;o<i.length;){var u=i[o++],f=i[o++],h=i[o++],c=i[o++];if(t.moveTo(u,f),n>0){var v=(u+h)/2-(f-c)*n,d=(f+c)/2-(h-u)*n;t.quadraticCurveTo(v,d,h,c)}else t.lineTo(h,c)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,a){var i=this.shape,n=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u<n.length;){var f=n[u++];if(f>0)for(var h=n[u++],c=n[u++],v=1;v<f;v++){var d=n[u++],p=n[u++];if(Va(h,c,d,p,s,t,a))return l}l++}else for(var l=0,u=0;u<n.length;){var h=n[u++],c=n[u++],d=n[u++],p=n[u++];if(o>0){var g=(h+d)/2-(c-p)*o,y=(c+p)/2-(d-h)*o;if(LT(h,c,g,y,d,p,s,t,a))return l}else if(Va(h,c,d,p,s,t,a))return l;l++}return-1},e.prototype.contain=function(t,a){var i=this.transformCoordToLocal(t,a),n=this.getBoundingRect();if(t=i[0],a=i[1],n.contain(t,a)){var o=this.hoverDataIdx=this.findDataIndex(t,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,i=a.segs,n=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<i.length;){var f=i[u++],h=i[u++];n=Math.min(f,n),s=Math.max(f,s),o=Math.min(h,o),l=Math.max(h,l)}t=this._rect=new ht(n,o,s,l)}return t},e}(yt),vW=function(){function r(){this.group=new at}return r.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},r.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(e,t){var a=this._newAdded[0],i=t.getLayout("linesPoints"),n=a&&a.shape.segs;if(n&&n.length<2e4){var o=n.length,s=new Float32Array(o+i.length);s.set(n),s.set(i,o),a.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:i}),this._setCommon(l,t),l.__startIndex=e.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new hW({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},r.prototype._setCommon=function(e,t,a){var i=t.hostModel;e.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),e.useStyle(i.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var n=t.getVisual("style");n&&n.stroke&&e.setStyle("stroke",n.stroke),e.setStyle("fill",null);var o=it(e);o.seriesIndex=i.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.hoverDataIdx;l>0&&(o.dataIndex=l+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),cW=vW,dW={seriesType:"lines",plan:Go(),reset:function(r){var e=r.coordinateSystem;if(!!e){var t=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(i,n){var o=[];if(a){var s=void 0,l=i.end-i.start;if(t){for(var u=0,f=i.start;f<i.end;f++)u+=r.getLineCoordsCount(f);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var h=0,c=[],f=i.start;f<i.end;f++){var v=r.getLineCoords(f,o);t&&(s[h++]=v);for(var d=0;d<v;d++)c=e.dataToPoint(o[d],!1,c),s[h++]=c[0],s[h++]=c[1]}n.setLayout("linesPoints",s)}else for(var f=i.start;f<i.end;f++){var p=n.getItemModel(f),v=r.getLineCoords(f,o),g=[];if(t)for(var y=0;y<v;y++)g.push(e.dataToPoint(o[y]));else{g[0]=e.dataToPoint(o[0]),g[1]=e.dataToPoint(o[1]);var m=p.get(["lineStyle","curveness"]);+m&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*m,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*m])}n.setItemLayout(f,g)}}}}}},b2=dW,pW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){var n=t.getData(),o=this._updateLineDraw(n,t),s=t.get("zlevel"),l=t.get(["effect","trailLength"]),u=i.getZr(),f=u.painter.getType()==="svg";f||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!f&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&l>0&&(f||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(n);var h=t.get("clip",!0)&&Kh(t.coordinateSystem,!1,t);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,i){var n=t.getData(),o=this._updateLineDraw(n,t);o.incrementalPrepareUpdate(n),this._clearLayer(i),this._finished=!1},e.prototype.incrementalRender=function(t,a,i){this._lineDraw.incrementalUpdate(t,a.getData()),this._finished=t.end===a.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,a,i){var n=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=b2.reset(t,a,i);s.progress&&s.progress({start:0,end:n.count(),count:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(i)},e.prototype._updateLineDraw=function(t,a){var i=this._lineDraw,n=this._showEffect(a),o=!!a.get("polyline"),s=a.pipelineContext,l=s.large;return(!i||n!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new cW:new Gy(o?n?uW:x2:n?S2:zy),this._hasEffet=n,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var a=t.getZr(),i=a.painter.getType()==="svg";!i&&this._lastZlevel!=null&&a.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},e.prototype.dispose=function(t,a){this.remove(t,a)},e.type="lines",e}(zt),gW=pW,yW=typeof Uint32Array=="undefined"?Array:Uint32Array,mW=typeof Float64Array=="undefined"?Array:Float64Array;function mx(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(r.data=G(e,function(t){var a=[t[0].coord,t[1].coord],i={coords:a};return t[0].name&&(i.fromName=t[0].name),t[1].name&&(i.toName=t[1].name),yg([i,t[0],t[1]])}))}var _W=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],mx(t);var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(mx(t),t.data){var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var a=this._processFlatCoordsArray(t.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=xf(this._flatCoords,a.flatCoords),this._flatCoordsOffset=xf(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),t.data=new Float32Array(a.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var a=this.getData().getItemModel(t),i=a.option instanceof Array?a.option:a.getShallow("coords");return i},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,a){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[t*2],n=this._flatCoordsOffset[t*2+1],o=0;o<n;o++)a[o]=a[o]||[],a[o][0]=this._flatCoords[i+o*2],a[o][1]=this._flatCoords[i+o*2+1];return n}else{for(var s=this._getCoordsFromItemModel(t),o=0;o<s.length;o++)a[o]=a[o]||[],a[o][0]=s[o][0],a[o][1]=s[o][1];return s.length}},e.prototype._processFlatCoordsArray=function(t){var a=0;if(this._flatCoords&&(a=this._flatCoords.length),Ct(t[0])){for(var i=t.length,n=new yW(i),o=new mW(i),s=0,l=0,u=0,f=0;f<i;){u++;var h=t[f++];n[l++]=s+a,n[l++]=h;for(var c=0;c<h;c++){var v=t[f++],d=t[f++];o[s++]=v,o[s++]=d}}return{flatCoordsOffset:new Uint32Array(n.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,a){var i=new Me(["value"],this);return i.hasItemOption=!1,i.initData(t.data,[],function(n,o,s,l){if(n instanceof Array)return NaN;i.hasItemOption=!0;var u=n.value;if(u!=null)return u instanceof Array?u[l]:u}),i},e.prototype.formatTooltip=function(t,a,i){var n=this.getData(),o=n.getItemModel(t),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),oe("nameValue",{name:f.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),a=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&a>0?a+"":""},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}(Ht),SW=_W;function Hu(r){return r instanceof Array||(r=[r,r]),r}var xW={seriesType:"lines",reset:function(r){var e=Hu(r.get("symbol")),t=Hu(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",e&&e[0]),a.setVisual("toSymbol",e&&e[1]),a.setVisual("fromSymbolSize",t&&t[0]),a.setVisual("toSymbolSize",t&&t[1]);function i(n,o){var s=n.getItemModel(o),l=Hu(s.getShallow("symbol",!0)),u=Hu(s.getShallow("symbolSize",!0));l[0]&&n.setItemVisual(o,"fromSymbol",l[0]),l[1]&&n.setItemVisual(o,"toSymbol",l[1]),u[0]&&n.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&n.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:a.hasItemOption?i:null}}},bW=xW;function wW(r){r.registerChartView(gW),r.registerSeriesModel(SW),r.registerLayout(b2),r.registerVisual(bW)}var TW=256,CW=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=pa.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,a,i,n,o){var s=this._getBrush(),l=this._getGradient(n,"inRange"),u=this._getGradient(n,"outOfRange"),f=this.pointSize+this.blurSize,h=this.canvas,c=h.getContext("2d"),v=e.length;h.width=t,h.height=a;for(var d=0;d<v;++d){var p=e[d],g=p[0],y=p[1],m=p[2],_=i(m);c.globalAlpha=_,c.drawImage(s,g-f,y-f)}if(!h.width||!h.height)return h;for(var S=c.getImageData(0,0,h.width,h.height),b=S.data,x=0,w=b.length,T=this.minOpacity,C=this.maxOpacity,D=C-T;x<w;){var _=b[x+3]/256,M=Math.floor(_*(TW-1))*4;if(_>0){var L=o(_)?l:u;_>0&&(_=_*D+T),b[x++]=L[M],b[x++]=L[M+1],b[x++]=L[M+2],b[x++]=L[M+3]*_*256}else x+=4}return c.putImageData(S,0,0),h},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=pa.createCanvas()),t=this.pointSize+this.blurSize,a=t*2;e.width=a,e.height=a;var i=e.getContext("2d");return i.clearRect(0,0,a,a),i.shadowOffsetX=a,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),e},r.prototype._getGradient=function(e,t){for(var a=this._gradientPixels,i=a[t]||(a[t]=new Uint8ClampedArray(256*4)),n=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,n),i[o++]=n[0],i[o++]=n[1],i[o++]=n[2],i[o++]=n[3];return i},r}(),AW=CW;function DW(r,e,t){var a=r[1]-r[0];e=G(e,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var i=e.length,n=0;return function(o){var s;for(s=n;s<i;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){n=s;break}}if(s===i)for(s=n-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){n=s;break}}return s>=0&&s<i&&t[s]}}function MW(r,e){var t=r[1]-r[0];return e=[(e[0]-r[0])/t,(e[1]-r[0])/t],function(a){return a>=e[0]&&a<=e[1]}}function _x(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var LW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){var n;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(n=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,i,0,t.getData().count()):_x(o)&&this._renderOnGeo(o,t,n,i)},e.prototype.incrementalPrepareRender=function(t,a,i){this.group.removeAll()},e.prototype.incrementalRender=function(t,a,i,n){var o=a.coordinateSystem;o&&(_x(o)?this.render(a,i,n):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(a,n,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){ui(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,a,i,n,o){var s=t.coordinateSystem,l=Mn(s,"cartesian2d"),u,f,h,c;if(l){var v=s.getAxis("x"),d=s.getAxis("y");u=v.getBandWidth()+.5,f=d.getBandWidth()+.5,h=v.scale.getExtent(),c=d.scale.getExtent()}for(var p=this.group,g=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),m=t.getModel(["blur","itemStyle"]).getItemStyle(),_=t.getModel(["select","itemStyle"]).getItemStyle(),S=t.get(["itemStyle","borderRadius"]),b=he(t),x=t.getModel("emphasis"),w=x.get("focus"),T=x.get("blurScope"),C=x.get("disabled"),D=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],M=i;M<n;M++){var L=void 0,I=g.getItemVisual(M,"style");if(l){var P=g.get(D[0],M),R=g.get(D[1],M);if(isNaN(g.get(D[2],M))||P<h[0]||P>h[1]||R<c[0]||R>c[1])continue;var E=s.dataToPoint([P,R]);L=new bt({shape:{x:E[0]-u/2,y:E[1]-f/2,width:u,height:f},style:I})}else{if(isNaN(g.get(D[1],M)))continue;L=new bt({z2:1,shape:s.dataToRect([g.get(D[0],M)]).contentShape,style:I})}if(g.hasItemOption){var N=g.getItemModel(M),O=N.getModel("emphasis");y=O.getModel("itemStyle").getItemStyle(),m=N.getModel(["blur","itemStyle"]).getItemStyle(),_=N.getModel(["select","itemStyle"]).getItemStyle(),S=N.get(["itemStyle","borderRadius"]),w=O.get("focus"),T=O.get("blurScope"),C=O.get("disabled"),b=he(N)}L.shape.r=S;var B=t.getRawValue(M),F="-";B&&B[2]!=null&&(F=B[2]+""),we(L,b,{labelFetcher:t,labelDataIndex:M,defaultOpacity:I.opacity,defaultText:F}),L.ensureState("emphasis").style=y,L.ensureState("blur").style=m,L.ensureState("select").style=_,Ut(L,w,T,C),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),p.add(L),g.setItemGraphicEl(M,L),this._progressiveEls&&this._progressiveEls.push(L)}},e.prototype._renderOnGeo=function(t,a,i,n){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new AW;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var f=t.getViewRect().clone(),h=t.getRoamTransform();f.applyTransform(h);var c=Math.max(f.x,0),v=Math.max(f.y,0),d=Math.min(f.width+f.x,n.getWidth()),p=Math.min(f.height+f.y,n.getHeight()),g=d-c,y=p-v,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,T,C){var D=t.dataToPoint([w,T]);return D[0]-=c,D[1]-=v,D.push(C),D}),S=i.getExtent(),b=i.type==="visualMap.continuous"?MW(S,i.option.range):DW(S,i.getPieceList(),i.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var x=new ge({style:{width:g,height:y,x:c,y:v,image:u.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(zt),IW=LW,PW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return Ta(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=El.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},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}(Ht),RW=PW;function EW(r){r.registerChartView(IW),r.registerSeriesModel(RW)}var kW=["itemStyle","borderWidth"],Sx=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],td=new Jr,OW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){var n=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),h=l.master.getRect(),c={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:f,valueDim:Sx[+f],categoryDim:Sx[1-+f]};return o.diff(s).add(function(v){if(!!o.hasValue(v)){var d=bx(o,v),p=xx(o,v,d,c),g=Tx(o,c,p);o.setItemGraphicEl(v,g),n.add(g),Ax(g,c,p)}}).update(function(v,d){var p=s.getItemGraphicEl(d);if(!o.hasValue(v)){n.remove(p);return}var g=bx(o,v),y=xx(o,v,g,c),m=M2(o,y);p&&m!==p.__pictorialShapeStr&&(n.remove(p),o.setItemGraphicEl(v,null),p=null),p?HW(p,c,y):p=Tx(o,c,y,!0),o.setItemGraphicEl(v,p),p.__pictorialSymbolMeta=y,n.add(p),Ax(p,c,y)}).remove(function(v){var d=s.getItemGraphicEl(v);d&&Cx(s,v,d.__pictorialSymbolMeta.animationModel,d)}).execute(),this._data=o,this.group},e.prototype.remove=function(t,a){var i=this.group,n=this._data;t.get("animation")?n&&n.eachItemGraphicEl(function(o){Cx(n,it(o).dataIndex,t,o)}):i.removeAll()},e.type="pictorialBar",e}(zt);function xx(r,e,t,a){var i=r.getItemLayout(e),n=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=t.get("symbolPatternSize")||2,h=t.isAnimationEnabled(),c={dataIndex:e,layout:i,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:n,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:h?t:null,hoverScale:h&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};NW(t,n,i,a,c),BW(r,e,i,n,o,c.boundingLength,c.pxSign,f,a,c),VW(t,c.symbolScale,u,a,c);var v=c.symbolSize,d=Ho(t.get("symbolOffset"),v);return zW(t,v,i,n,o,d,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,a,c),c}function NW(r,e,t,a,i){var n=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[n.wh]<=0),f;if(z(o)){var h=[ed(s,o[0])-l,ed(s,o[1])-l];h[1]<h[0]&&h.reverse(),f=h[u]}else o!=null?f=ed(s,o)-l:e?f=a.coordSysExtent[n.index][u]-l:f=t[n.wh];i.boundingLength=f,e&&(i.repeatCutLength=t[n.wh]),i.pxSign=f>0?1:-1}function ed(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function BW(r,e,t,a,i,n,o,s,l,u){var f=l.valueDim,h=l.categoryDim,c=Math.abs(t[h.wh]),v=r.getItemVisual(e,"symbolSize"),d;z(v)?d=v.slice():v==null?d=["100%","100%"]:d=[v,v],d[h.index]=H(d[h.index],c),d[f.index]=H(d[f.index],a?c:Math.abs(n)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[f.index]*=(l.isHorizontal?-1:1)*o}function VW(r,e,t,a,i){var n=r.get(kW)||0;n&&(td.attr({scaleX:e[0],scaleY:e[1],rotation:t}),td.updateTransform(),n/=td.getLineScale(),n*=e[a.valueDim.index]),i.valueLineWidth=n||0}function zW(r,e,t,a,i,n,o,s,l,u,f,h){var c=f.categoryDim,v=f.valueDim,d=h.pxSign,p=Math.max(e[v.index]+s,0),g=p;if(a){var y=Math.abs(l),m=ue(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=H(m,e[v.index]),b=Math.max(p+S*2,0),x=_?0:S*2,w=dT(a),T=w?a:Dx((y+x)/b),C=y-T*p;S=C/2/(_?T:Math.max(T-1,1)),b=p+S*2,x=_?0:S*2,!w&&a!=="fixed"&&(T=u?Dx((Math.abs(u)+x)/b):0),g=T*b-x,h.repeatTimes=T,h.symbolMargin=S}var D=d*(g/2),M=h.pathPosition=[];M[c.index]=t[c.wh]/2,M[v.index]=o==="start"?D:o==="end"?l-D:l/2,n&&(M[0]+=n[0],M[1]+=n[1]);var L=h.bundlePosition=[];L[c.index]=t[c.xy],L[v.index]=t[v.xy];var I=h.barRectShape=V({},t);I[v.wh]=d*Math.max(Math.abs(t[v.wh]),Math.abs(M[v.index]+D)),I[c.wh]=t[c.wh];var P=h.clipShape={};P[c.xy]=-t[c.xy],P[c.wh]=f.ecSize[c.wh],P[v.xy]=0,P[v.wh]=t[v.wh]}function w2(r){var e=r.symbolPatternSize,t=te(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function T2(r,e,t,a){var i=r.__pictorialBundle,n=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,f=0,h=n[e.valueDim.index]+o+t.symbolMargin*2;for(Xy(r,function(p){p.__pictorialAnimationIndex=f,p.__pictorialRepeatTimes=u,f<u?vo(p,null,d(f),t,a):vo(p,null,{scaleX:0,scaleY:0},t,a,function(){i.remove(p)}),f++});f<u;f++){var c=w2(t);c.__pictorialAnimationIndex=f,c.__pictorialRepeatTimes=u,i.add(c);var v=d(f);vo(c,{x:v.x,y:v.y,scaleX:0,scaleY:0},{scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation},t,a)}function d(p){var g=s.slice(),y=t.pxSign,m=p;return(t.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-p),g[l.index]=h*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function C2(r,e,t,a){var i=r.__pictorialBundle,n=r.__pictorialMainPath;n?vo(n,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,a):(n=r.__pictorialMainPath=w2(t),i.add(n),vo(n,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,a))}function A2(r,e,t){var a=V({},e.barRectShape),i=r.__pictorialBarRect;i?vo(i,null,{shape:a},e,t):(i=r.__pictorialBarRect=new bt({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,r.add(i))}function D2(r,e,t,a){if(t.symbolClip){var i=r.__pictorialClipPath,n=V({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(i)At(i,{shape:n},s,l);else{n[o.wh]=0,i=new bt({shape:n}),r.__pictorialBundle.setClipPath(i),r.__pictorialClipPath=i;var u={};u[o.wh]=t.clipShape[o.wh],Rl[a?"updateProps":"initProps"](i,{shape:u},s,l)}}}function bx(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=GW,t.isAnimationEnabled=FW,t}function GW(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function FW(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Tx(r,e,t,a){var i=new at,n=new at;return i.add(n),i.__pictorialBundle=n,n.x=t.bundlePosition[0],n.y=t.bundlePosition[1],t.symbolRepeat?T2(i,e,t):C2(i,e,t),A2(i,t,a),D2(i,e,t,a),i.__pictorialShapeStr=M2(r,t),i.__pictorialSymbolMeta=t,i}function HW(r,e,t){var a=t.animationModel,i=t.dataIndex,n=r.__pictorialBundle;At(n,{x:t.bundlePosition[0],y:t.bundlePosition[1]},a,i),t.symbolRepeat?T2(r,e,t,!0):C2(r,e,t,!0),A2(r,t,!0),D2(r,e,t,!0)}function Cx(r,e,t,a){var i=a.__pictorialBarRect;i&&i.removeTextContent();var n=[];Xy(a,function(o){n.push(o)}),a.__pictorialMainPath&&n.push(a.__pictorialMainPath),a.__pictorialClipPath&&(t=null),A(n,function(o){ri(o,{scaleX:0,scaleY:0},t,e,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(e,null)}function M2(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Xy(r,e,t){A(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&e.call(t,a)})}function vo(r,e,t,a,i,n){e&&r.attr(e),a.symbolClip&&!i?t&&r.attr(t):t&&Rl[i?"updateProps":"initProps"](r,t,a.animationModel,a.dataIndex,n)}function Ax(r,e,t){var a=t.dataIndex,i=t.itemModel,n=i.getModel("emphasis"),o=n.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),f=n.get("focus"),h=n.get("blurScope"),c=n.get("scale");Xy(r,function(p){if(p instanceof ge){var g=p.style;p.useStyle(V({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else p.useStyle(t.style);var y=p.ensureState("emphasis");y.style=o,c&&(y.scaleX=p.scaleX*1.1,y.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=t.z2});var v=e.valueDim.posDesc[+(t.boundingLength>0)],d=r.__pictorialBarRect;we(d,he(i),{labelFetcher:e.seriesModel,labelDataIndex:a,defaultText:_o(e.seriesModel.getData(),a),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:v}),Ut(r,f,h,n.get("disabled"))}function Dx(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}var $W=OW,WW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=fi(Kf.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Kf),UW=WW;function YW(r){r.registerChartView($W),r.registerSeriesModel(UW),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ot(hD,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,vD("pictorialBar"))}var ZW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,a,i){var n=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=n.getLayout("layoutInfo"),f=u.rect,h=u.boundaryGap;s.x=0,s.y=f.y+h[0];function c(g){return g.name}var v=new Sa(this._layersSeries||[],l,c,c),d=[];v.add(Y(p,this,"add")).update(Y(p,this,"update")).remove(Y(p,this,"remove")).execute();function p(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],b=[],x,w=l[y].indices,T=0;T<w.length;T++){var C=n.getItemLayout(w[T]),D=C.x,M=C.y0,L=C.y;S.push(D,M),b.push(D,M+L),x=n.getItemVisual(w[T],"style")}var I,P=n.getItemLayout(w[0]),R=t.getModel("label"),E=R.get("margin"),N=t.getModel("emphasis");if(g==="add"){var O=d[y]=new at;I=new QD({shape:{points:S,stackedOnPoints:b,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),O.add(I),s.add(O),t.isAnimationEnabled()&&I.setClipPath(XW(I.getBoundingRect(),t,function(){I.removeClipPath()}))}else{var O=_[m];I=O.childAt(0),s.add(O),d[y]=O,At(I,{shape:{points:S,stackedOnPoints:b}},t),Dr(I)}we(I,he(t),{labelDataIndex:w[T-1],defaultText:n.getName(w[T-1]),inheritColor:x.fill},{normal:{verticalAlign:"middle"}}),I.setTextConfig({position:null,local:!0});var B=I.getTextContent();B&&(B.x=P.x-E,B.y=P.y0+P.y/2),I.useStyle(x),n.setItemGraphicEl(y,I),pe(I,t),Ut(I,N.get("focus"),N.get("blurScope"),N.get("disabled"))}this._layersSeries=l,this._layers=d},e.type="themeRiver",e}(zt);function XW(r,e,t){var a=new bt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Ft(a,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},e,t),a}var qW=ZW,rd=2,KW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Wl(Y(this.getData,this),Y(this.getRawData,this))},e.prototype.fixData=function(t){var a=t.length,i={},n=Kd(t,function(c){return i.hasOwnProperty(c[0]+"")||(i[c[0]+""]=-1),c[2]}),o=[];n.buckets.each(function(c,v){o.push({name:v,dataList:c})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,f=0;f<o[l].dataList.length;++f){var h=o[l].dataList[f][0]+"";i[h]=l}for(var h in i)i.hasOwnProperty(h)&&i[h]!==l&&(i[h]=l,t[a]=[h,0,u],a++)}return t},e.prototype.getInitialData=function(t,a){for(var i=this.getReferringComponents("singleAxis",Qt).models[0],n=i.get("type"),o=Et(t.data,function(d){return d[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=K(),f=0,h=0;h<s.length;++h)l.push(s[h][rd]),u.get(s[h][rd])||(u.set(s[h][rd],f),f++);var c=Bl(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Uf(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,v=new Me(c,this);return v.initData(s),v},e.prototype.getLayerSeries=function(){for(var t=this.getData(),a=t.count(),i=[],n=0;n<a;++n)i[n]=n;var o=t.mapDimension("single"),s=Kd(i,function(u){return t.get("name",u)}),l=[];return s.buckets.each(function(u,f){u.sort(function(h,c){return t.get(o,h)-t.get(o,c)}),l.push({name:f,indices:u})}),l},e.prototype.getAxisTooltipData=function(t,a,i){z(t)||(t=t?[t]:[]);for(var n=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,f=0;f<l;++f){for(var h=Number.MAX_VALUE,c=-1,v=o[f].indices.length,d=0;d<v;++d){var p=n.get(t[0],o[f].indices[d]),g=Math.abs(p-a);g<=h&&(u=p,h=g,c=o[f].indices[d])}s.push(c)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(t,a,i){var n=this.getData(),o=n.getName(t),s=n.get(n.mapDimension("value"),t);return oe("nameValue",{name:o,value:s})},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}(Ht),JW=KW;function QW(r,e){r.eachSeriesByType("themeRiver",function(t){var a=t.getData(),i=t.coordinateSystem,n={},o=i.getRect();n.rect=o;var s=t.get("boundaryGap"),l=i.getAxis();if(n.boundaryGap=s,l.orient==="horizontal"){s[0]=H(s[0],o.height),s[1]=H(s[1],o.height);var u=o.height-s[0]-s[1];Mx(a,t,u)}else{s[0]=H(s[0],o.width),s[1]=H(s[1],o.width);var f=o.width-s[0]-s[1];Mx(a,t,f)}a.setLayout("layoutInfo",n)})}function Mx(r,e,t){if(!!r.count())for(var a=e.coordinateSystem,i=e.getLayerSeries(),n=r.mapDimension("single"),o=r.mapDimension("value"),s=G(i,function(g){return G(g.indices,function(y){var m=a.dataToPoint(r.get(n,y));return m[1]=r.get(o,y),m})}),l=jW(s),u=l.y0,f=t/l.max,h=i.length,c=i[0].indices.length,v,d=0;d<c;++d){v=u[d]*f,r.setItemLayout(i[0].indices[d],{layerIndex:0,x:s[0][d][0],y0:v,y:s[0][d][1]*f});for(var p=1;p<h;++p)v+=s[p-1][d][1]*f,r.setItemLayout(i[p].indices[d],{layerIndex:p,x:s[p][d][0],y0:v,y:s[p][d][1]*f})}}function jW(r){for(var e=r.length,t=r[0].length,a=[],i=[],n=0,o=0;o<t;++o){for(var s=0,l=0;l<e;++l)s+=r[l][o][1];s>n&&(n=s),a.push(s)}for(var u=0;u<t;++u)i[u]=(n-a[u])/2;n=0;for(var f=0;f<t;++f){var h=a[f]+i[f];h>n&&(n=h)}return{y0:i,max:n}}function t6(r){r.registerChartView(qW),r.registerSeriesModel(JW),r.registerLayout(QW),r.registerProcessor($l("themeRiver"))}var e6=2,r6=4,a6=function(r){k(e,r);function e(t,a,i,n){var o=r.call(this)||this;o.z2=e6,o.textConfig={inside:!0},it(o).seriesIndex=a.seriesIndex;var s=new Tt({z2:r6,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,a,i,n),o}return e.prototype.updateData=function(t,a,i,n,o){this.node=a,a.piece=this,i=i||this._seriesModel,n=n||this._ecModel;var s=this;it(s).dataIndex=a.dataIndex;var l=a.getModel(),u=l.getModel("emphasis"),f=a.getLayout(),h=V({},f);h.label=null;var c=a.getVisual("style");c.lineJoin="bevel";var v=a.getVisual("decal");v&&(c.decal=yo(v,o));var d=oo(l.getModel("itemStyle"),h,!0);V(h,d),A(Ie,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var b=oo(S,h);b&&(_.shape=b)}),t?(s.setShape(h),s.shape.r=f.r0,At(s,{shape:{r:f.r}},i,a.dataIndex)):(At(s,{shape:h},i),Dr(s)),s.useStyle(c),this._updateLabel(i);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=i||this._seriesModel,this._ecModel=n||this._ecModel;var g=u.get("focus"),y=g==="ancestor"?a.getAncestorsIndices():g==="descendant"?a.getDescendantIndices():g;Ut(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var a=this,i=this.node.getModel(),n=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),h=this,c=h.getTextContent(),v=this.node.dataIndex,d=n.get("minAngle")/180*Math.PI,p=n.get("show")&&!(d!=null&&Math.abs(s)<d);c.ignore=!p,A(el,function(y){var m=y==="normal"?i.getModel("label"):i.getModel([y,"label"]),_=y==="normal",S=_?c:c.ensureState(y),b=t.getFormattedLabel(v,y);_&&(b=b||a.node.name),S.style=Bt(m,{},null,y!=="normal",!0),b&&(S.style.text=b);var x=m.get("show");x!=null&&!_&&(S.ignore=!x);var w=g(m,"position"),T=_?h:h.states[y],C=T.style.fill;T.textConfig={outsideFill:m.get("color")==="inherit"?C:null,inside:w!=="outside"};var D,M=g(m,"distance")||0,L=g(m,"align");w==="outside"?(D=o.r+M,L=l>Math.PI/2?"right":"left"):!L||L==="center"?(s===2*Math.PI&&o.r0===0?D=0:D=(o.r+o.r0)/2,L="center"):L==="left"?(D=o.r0+M,l>Math.PI/2&&(L="right")):L==="right"&&(D=o.r-M,l>Math.PI/2&&(L="left")),S.style.align=L,S.style.verticalAlign=g(m,"verticalAlign")||"middle",S.x=D*u+o.cx,S.y=D*f+o.cy;var I=g(m,"rotate"),P=0;I==="radial"?(P=-l,P<-Math.PI/2&&(P+=Math.PI)):I==="tangential"?(P=Math.PI/2-l,P>Math.PI/2?P-=Math.PI:P<-Math.PI/2&&(P+=Math.PI)):Ct(I)&&(P=I*Math.PI/180),S.rotation=P});function g(y,m){var _=y.get(m);return _==null?n.get(m):_}c.dirtyStyle()},e}(Ve),Lx=a6,Xp="sunburstRootToNode",Ix="sunburstHighlight",i6="sunburstUnhighlight";function n6(r){r.registerAction({type:Xp,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i,n){var o=pl(e,[Xp],i);if(o){var s=i.getViewRoot();s&&(e.direction=Ey(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),r.registerAction({type:Ix,update:"none"},function(e,t,a){e=V({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},i);function i(n){var o=pl(e,[Ix],n);o&&(e.dataIndex=o.node.dataIndex)}a.dispatchAction(V(e,{type:"highlight"}))}),r.registerAction({type:i6,update:"updateView"},function(e,t,a){e=V({},e),a.dispatchAction(V(e,{type:"downplay"}))})}var o6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i,n){var o=this;this.seriesModel=t,this.api=i,this.ecModel=a;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),f=this.group,h=t.get("renderLabelForZeroData"),c=[];u.eachNode(function(m){c.push(m)});var v=this._oldChildren||[];d(c,v),y(l,u),this._initEvents(),this._oldChildren=c;function d(m,_){if(m.length===0&&_.length===0)return;new Sa(_,m,S,S).add(b).update(b).remove(ot(b,null)).execute();function S(x){return x.getId()}function b(x,w){var T=x==null?null:m[x],C=w==null?null:_[w];p(T,C)}}function p(m,_){if(!h&&m&&!m.getValue()&&(m=null),m!==l&&_!==l){if(_&&_.piece)m?(_.piece.updateData(!1,m,t,a,i),s.setItemGraphicEl(m.dataIndex,_.piece)):g(_);else if(m){var S=new Lx(m,t,a,i);f.add(S),s.setItemGraphicEl(m.dataIndex,S)}}}function g(m){!m||m.piece&&(f.remove(m.piece),m.piece=null)}function y(m,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,t,a,i):(o.virtualPiece=new Lx(m,t,a,i),f.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(a){var i=!1,n=t.seriesModel.getViewRoot();n.eachNode(function(o){if(!i&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";Bf(u,f)}}i=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Xp,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,a){var i=a.getData(),n=i.getItemLayout(0);if(n){var o=t[0]-n.cx,s=t[1]-n.cy,l=Math.sqrt(o*o+s*s);return l<=n.r&&l>=n.r0}},e.type="sunburst",e}(zt),s6=o6,l6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,a){var i={name:t.name,children:t.data};L2(i);var n=this._levelModels=G(t.levels||[],function(l){return new Vt(l,this,a)},this),o=Ry.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var h=o.getNodeByDataIndex(f),c=n[h.depth];return c&&(u.parentModel=c),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return a.treePathInfo=jh(i,this),a},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 a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){EM(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}(Ht);function L2(r){var e=0;A(r.children,function(a){L2(a);var i=a.value;z(i)&&(i=i[0]),e+=i});var t=r.value;z(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}var u6=l6,Px=Math.PI/180;function f6(r,e,t){e.eachSeriesByType(r,function(a){var i=a.get("center"),n=a.get("radius");z(n)||(n=[0,n]),z(i)||(i=[i,i]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=H(i[0],o),f=H(i[1],s),h=H(n[0],l/2),c=H(n[1],l/2),v=-a.get("startAngle")*Px,d=a.get("minAngle")*Px,p=a.getData().tree.root,g=a.getViewRoot(),y=g.depth,m=a.get("sort");m!=null&&I2(g,m);var _=0;A(g.children,function(E){!isNaN(E.getValue())&&_++});var S=g.getValue(),b=Math.PI/(S||_)*2,x=g.depth>0,w=g.height-(x?-1:1),T=(c-h)/(w||1),C=a.get("clockwise"),D=a.get("stillShowZeroSum"),M=C?1:-1,L=function(E,N){if(!!E){var O=N;if(E!==p){var B=E.getValue(),F=S===0&&D?b:B*b;F<d&&(F=d),O=N+M*F;var W=E.depth-y-(x?-1:1),X=h+T*W,j=h+T*(W+1),nt=a.getLevelModel(E);if(nt){var Mt=nt.get("r0",!0),Lt=nt.get("r",!0),pt=nt.get("radius",!0);pt!=null&&(Mt=pt[0],Lt=pt[1]),Mt!=null&&(X=H(Mt,l/2)),Lt!=null&&(j=H(Lt,l/2))}E.setLayout({angle:F,startAngle:N,endAngle:O,clockwise:C,cx:u,cy:f,r0:X,r:j})}if(E.children&&E.children.length){var rt=0;A(E.children,function(mt){rt+=L(mt,N+rt)})}return O-N}};if(x){var I=h,P=h+T,R=Math.PI*2;p.setLayout({angle:R,startAngle:v,endAngle:v+R,clockwise:C,cx:u,cy:f,r0:I,r:P})}L(g,v)})}function I2(r,e){var t=r.children||[];r.children=h6(t,e),t.length&&A(r.children,function(a){I2(a,e)})}function h6(r,e){if(J(e)){var t=G(r,function(i,n){var o=i.getValue();return{params:{depth:i.depth,height:i.height,dataIndex:i.dataIndex,getValue:function(){return o}},index:n}});return t.sort(function(i,n){return e(i.params,n.params)}),G(t,function(i){return r[i.index]})}else{var a=e==="asc";return r.sort(function(i,n){var o=(i.getValue()-n.getValue())*(a?1:-1);return o===0?(i.dataIndex-n.dataIndex)*(a?-1:1):o})}}function v6(r){var e={};function t(a,i,n){for(var o=a;o&&o.depth>1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",e);return a.depth>1&&U(s)&&(s=Gd(s,(a.depth-1)/(n-1)*.5)),s}r.eachSeriesByType("sunburst",function(a){var i=a.getData(),n=i.tree;n.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,a,n.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");V(u,l)})})}function c6(r){r.registerChartView(s6),r.registerSeriesModel(u6),r.registerLayout(ot(f6,"sunburst")),r.registerProcessor(ot($l,"sunburst")),r.registerVisual(v6),n6(r)}var Rx={color:"fill",borderColor:"stroke"},d6={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ca=Dt(),p6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,a){return Ta(null,this)},e.prototype.getDataParams=function(t,a,i){var n=r.prototype.getDataParams.call(this,t,a);return i&&(n.info=ca(i).info),n},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Ht),g6=p6;function y6(r,e){return e=e||[0,0],G(["x","y"],function(t,a){var i=this.getAxis(t),n=e[a],o=r[a]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(n-o)-i.dataToCoord(n+o))},this)}function m6(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:Y(y6,r)}}}function _6(r,e){return e=e||[0,0],G([0,1],function(t){var a=e[t],i=r[t]/2,n=[],o=[];return n[t]=a-i,o[t]=a+i,n[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(n)[t]-this.dataToPoint(o)[t])},this)}function S6(r){var e=r.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r.getZoom()},api:{coord:function(t){return r.dataToPoint(t)},size:Y(_6,r)}}}function x6(r,e){var t=this.getAxis(),a=e instanceof Array?e[0]:e,i=(r instanceof Array?r[0]:r)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(a-i)-t.dataToCoord(a+i))}function b6(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:Y(x6,r)}}}function w6(r,e){return e=e||[0,0],G(["Radius","Angle"],function(t,a){var i="get"+t+"Axis",n=this[i](),o=e[a],s=r[a]/2,l=n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(o-s)-n.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function T6(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),a=e.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(i){var n=e.dataToRadius(i[0]),o=t.dataToAngle(i[1]),s=r.coordToPoint([n,o]);return s.push(n,o*Math.PI/180),s},size:Y(w6,r)}}}function C6(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(a,i){return r.dataToPoint(a,i)}}}}function P2(r,e,t,a){return r&&(r.legacy||r.legacy!==!1&&!t&&!a&&e!=="tspan"&&(e==="text"||Z(r,"text")))}function R2(r,e,t){var a=r,i,n,o;if(e==="text")o=a;else{o={},Z(a,"text")&&(o.text=a.text),Z(a,"rich")&&(o.rich=a.rich),Z(a,"textFill")&&(o.fill=a.textFill),Z(a,"textStroke")&&(o.stroke=a.textStroke),Z(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Z(a,"fontSize")&&(o.fontSize=a.fontSize),Z(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Z(a,"fontWeight")&&(o.fontWeight=a.fontWeight),n={type:"text",style:o,silent:!0},i={};var s=Z(a,"textPosition");t?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),Z(a,"textPosition")&&(i.position=a.textPosition),Z(a,"textOffset")&&(i.offset=a.textOffset),Z(a,"textRotation")&&(i.rotation=a.textRotation),Z(a,"textDistance")&&(i.distance=a.textDistance)}return Ex(o,r),A(o.rich,function(l){Ex(l,l)}),{textConfig:i,textContent:n}}function Ex(r,e){!e||(e.font=e.textFont||e.font,Z(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),Z(e,"textAlign")&&(r.align=e.textAlign),Z(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),Z(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),Z(e,"textWidth")&&(r.width=e.textWidth),Z(e,"textHeight")&&(r.height=e.textHeight),Z(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),Z(e,"textPadding")&&(r.padding=e.textPadding),Z(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),Z(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),Z(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),Z(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),Z(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),Z(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),Z(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function kx(r,e,t){var a=r;a.textPosition=a.textPosition||t.position||"inside",t.offset!=null&&(a.textOffset=t.offset),t.rotation!=null&&(a.textRotation=t.rotation),t.distance!=null&&(a.textDistance=t.distance);var i=a.textPosition.indexOf("inside")>=0,n=r.fill||"#000";Ox(a,e);var o=a.textFill==null;return i?o&&(a.textFill=t.insideFill||"#fff",!a.textStroke&&t.insideStroke&&(a.textStroke=t.insideStroke),!a.textStroke&&(a.textStroke=n),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||t.outsideFill||"#000"),!a.textStroke&&t.outsideStroke&&(a.textStroke=t.outsideStroke)),a.text=e.text,a.rich=e.rich,A(e.rich,function(s){Ox(s,s)}),a}function Ox(r,e){!e||(Z(e,"fill")&&(r.textFill=e.fill),Z(e,"stroke")&&(r.textStroke=e.fill),Z(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),Z(e,"font")&&(r.font=e.font),Z(e,"fontStyle")&&(r.fontStyle=e.fontStyle),Z(e,"fontWeight")&&(r.fontWeight=e.fontWeight),Z(e,"fontSize")&&(r.fontSize=e.fontSize),Z(e,"fontFamily")&&(r.fontFamily=e.fontFamily),Z(e,"align")&&(r.textAlign=e.align),Z(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),Z(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),Z(e,"width")&&(r.textWidth=e.width),Z(e,"height")&&(r.textHeight=e.height),Z(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),Z(e,"padding")&&(r.textPadding=e.padding),Z(e,"borderColor")&&(r.textBorderColor=e.borderColor),Z(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),Z(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),Z(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),Z(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),Z(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),Z(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),Z(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),Z(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),Z(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),Z(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var E2={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Nx=St(E2);Yr(Xr,function(r,e){return r[e]=1,r},{});Xr.join(", ");var ih=["","style","shape","extra"],bo=Dt();function qy(r,e,t,a,i){var n=r+"Animation",o=Ro(r,a,i)||{},s=bo(e).userDuring;return o.duration>0&&(o.during=s?Y(I6,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),V(o,t[n]),o}function gf(r,e,t,a){a=a||{};var i=a.dataIndex,n=a.isInit,o=a.clearStyle,s=t.isAnimationEnabled(),l=bo(r),u=e.style;l.userDuring=e.during;var f={},h={};if(R6(r,e,h),Vx("shape",e,h),Vx("extra",e,h),!n&&s&&(P6(r,e,f),Bx("shape",r,e,f),Bx("extra",r,e,f),E6(r,e,u,f)),h.style=u,A6(r,h,o),M6(r,e),s)if(n){var c={};A(ih,function(d){var p=d?e[d]:e;p&&p.enterFrom&&(d&&(c[d]=c[d]||{}),V(d?c[d]:c,p.enterFrom))});var v=qy("enter",r,e,t,i);v.duration>0&&r.animateFrom(c,v)}else D6(r,e,i||0,t,f);k2(r,e),u?r.dirty():r.markRedraw()}function k2(r,e){for(var t=bo(r).leaveToProps,a=0;a<ih.length;a++){var i=ih[a],n=i?e[i]:e;n&&n.leaveTo&&(t||(t=bo(r).leaveToProps={}),i&&(t[i]=t[i]||{}),V(i?t[i]:t,n.leaveTo))}}function rv(r,e,t,a){if(r){var i=r.parent,n=bo(r).leaveToProps;if(n){var o=qy("update",r,e,t,0);o.done=function(){i.remove(r),a&&a()},r.animateTo(n,o)}else i.remove(r),a&&a()}}function dn(r){return r==="all"}function A6(r,e,t){var a=e.style;if(!r.isGroup&&a){if(t){r.useStyle({});for(var i=r.animators,n=0;n<i.length;n++){var o=i[n];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(a)}e&&(e.style=null,e&&r.attr(e),e.style=a)}function D6(r,e,t,a,i){if(i){var n=qy("update",r,e,a,t);n.duration>0&&r.animateFrom(i,n)}}function M6(r,e){Z(e,"silent")&&(r.silent=e.silent),Z(e,"ignore")&&(r.ignore=e.ignore),r instanceof vr&&Z(e,"invisible")&&(r.invisible=e.invisible),r instanceof yt&&Z(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var Nr={},L6={setTransform:function(r,e){return Nr.el[r]=e,this},getTransform:function(r){return Nr.el[r]},setShape:function(r,e){var t=Nr.el,a=t.shape||(t.shape={});return a[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=Nr.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=Nr.el,a=t.style;return a&&(a[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=Nr.el.style;if(e)return e[r]},setExtra:function(r,e){var t=Nr.el.extra||(Nr.el.extra={});return t[r]=e,this},getExtra:function(r){var e=Nr.el.extra;if(e)return e[r]}};function I6(){var r=this,e=r.el;if(!!e){var t=bo(e).userDuring,a=r.userDuring;if(t!==a){r.el=r.userDuring=null;return}Nr.el=e,a(L6)}}function Bx(r,e,t,a){var i=t[r];if(!!i){var n=e[r],o;if(n){var s=t.transition,l=i.transition;if(l)if(!o&&(o=a[r]={}),dn(l))V(o,n);else for(var u=kt(l),f=0;f<u.length;f++){var h=u[f],c=n[h];o[h]=c}else if(dn(s)||ct(s,r)>=0){!o&&(o=a[r]={});for(var v=St(n),f=0;f<v.length;f++){var h=v[f],c=n[h];k6(i[h],c)&&(o[h]=c)}}}}}function Vx(r,e,t){var a=e[r];if(!!a)for(var i=t[r]={},n=St(a),o=0;o<n.length;o++){var s=n[o];i[s]=Os(a[s])}}function P6(r,e,t){for(var a=e.transition,i=dn(a)?Xr:kt(a||[]),n=0;n<i.length;n++){var o=i[n];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];t[o]=s}}}function R6(r,e,t){for(var a=0;a<Nx.length;a++){var i=Nx[a],n=E2[i],o=e[i];o&&(t[n[0]]=o[0],t[n[1]]=o[1])}for(var a=0;a<Xr.length;a++){var s=Xr[a];e[s]!=null&&(t[s]=e[s])}}function E6(r,e,t,a){if(!!t){var i=r.style,n;if(i){var o=t.transition,s=e.transition;if(o&&!dn(o)){var l=kt(o);!n&&(n=a.style={});for(var u=0;u<l.length;u++){var f=l[u],h=i[f];n[f]=h}}else if(r.getAnimationStyleProps&&(dn(s)||dn(o)||ct(s,"style")>=0)){var c=r.getAnimationStyleProps(),v=c?c.style:null;if(v){!n&&(n=a.style={});for(var d=St(t),u=0;u<d.length;u++){var f=d[u];if(v[f]){var h=i[f];n[f]=h}}}}}}}function k6(r,e){return xe(r)?r!==e:r!=null&&isFinite(r)}var O2=Dt(),O6=["percent","easing","shape","style","extra"];function N2(r){r.stopAnimation("keyframe"),r.attr(O2(r))}function nh(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if(z(e)){A(e,function(s){nh(r,s,t)});return}var a=e.keyframes,i=e.duration;if(t&&i==null){var n=Ro("enter",t,0);i=n&&n.duration}if(!(!a||!i)){var o=O2(r);A(ih,function(s){if(!(s&&!r[s])){var l;a.sort(function(u,f){return u.percent-f.percent}),A(a,function(u){var f=r.animators,h=s?u[s]:u;if(!!h){var c=St(h);if(s||(c=Et(c,function(p){return ct(O6,p)<0})),!!c.length){l||(l=r.animate(s,e.loop,!0),l.scope="keyframe");for(var v=0;v<f.length;v++)f[v]!==l&&f[v].targetName===l.targetName&&f[v].stopTracks(c);s&&(o[s]=o[s]||{});var d=s?o[s]:o;A(c,function(p){d[p]=((s?r[s]:r)||{})[p]}),l.whenWithKeys(i*u.percent,h,c,u.easing)}}}),l&&l.delay(e.delay||0).duration(i).start(e.easing)}})}}}var da="emphasis",Xa="normal",Ky="blur",Jy="select",si=[Xa,da,Ky,Jy],ad={normal:["itemStyle"],emphasis:[da,"itemStyle"],blur:[Ky,"itemStyle"],select:[Jy,"itemStyle"]},id={normal:["label"],emphasis:[da,"label"],blur:[Ky,"label"],select:[Jy,"label"]},N6=["x","y"],B6="e\0\0",Qe={normal:{},emphasis:{},blur:{},select:{}},V6={cartesian2d:m6,geo:S6,single:b6,polar:T6,calendar:C6};function qp(r){return r instanceof yt}function Kp(r){return r instanceof vr}function z6(r,e){e.copyTransform(r),Kp(e)&&Kp(r)&&(e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e.invisible=r.invisible,e.ignore=r.ignore,qp(e)&&qp(r)&&e.setShape(r.shape))}var G6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i,n){this._progressiveEls=null;var o=this._data,s=t.getData(),l=this.group,u=zx(t,s,a,i);o||l.removeAll(),s.diff(o).add(function(h){nd(i,null,h,u(h,n),t,l,s)}).remove(function(h){var c=o.getItemGraphicEl(h);c&&rv(c,ca(c).option,t)}).update(function(h,c){var v=o.getItemGraphicEl(c);nd(i,v,h,u(h,n),t,l,s)}).execute();var f=t.get("clip",!0)?Kh(t.coordinateSystem,!1,t):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,a,i){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,a,i,n,o){var s=a.getData(),l=zx(a,s,i,n),u=this._progressiveEls=[];function f(v){v.isGroup||(v.incremental=!0,v.ensureState("emphasis").hoverLayer=!0)}for(var h=t.start;h<t.end;h++){var c=nd(null,null,h,l(h,o),a,this.group,s);c&&(c.traverse(f),u.push(c))}},e.prototype.eachRendered=function(t){ui(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,a,i,n){var o=a.element;if(o==null||i.name===o)return!0;for(;(i=i.__hostTarget||i.parent)&&i!==this.group;)if(i.name===o)return!0;return!1},e.type="custom",e}(zt),F6=G6;function Qy(r){var e=r.type,t;if(e==="path"){var a=r.shape,i=a.width!=null&&a.height!=null?{x:a.x||0,y:a.y||0,width:a.width,height:a.height}:null,n=z2(a);t=Ph(n,null,i,a.layout||"center"),ca(t).customPathData=n}else if(e==="image")t=new ge({}),ca(t).customImagePath=r.style.image;else if(e==="text")t=new Tt({});else if(e==="group")t=new at;else{if(e==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=Fg(e);if(!o){var s="";Pt(s)}t=new o}return ca(t).customGraphicType=e,t.name=r.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function jy(r,e,t,a,i,n,o){N2(e);var s=i&&i.normal.cfg;s&&e.setTextConfig(s),a&&a.transition==null&&(a.transition=N6);var l=a&&a.style;if(l){if(e.type==="text"){var u=l;Z(u,"textFill")&&(u.fill=u.textFill),Z(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,h=qp(e)?l.decal:null;r&&h&&(h.dirty=!0,f=yo(h,r)),l.__decalPattern=f}if(Kp(e)&&l){var f=l.__decalPattern;f&&(l.decal=f)}gf(e,a,n,{dataIndex:t,isInit:o,clearStyle:!0}),nh(e,a.keyframeAnimation,n)}function B2(r,e,t,a,i){var n=e.isGroup?null:e,o=i&&i[r].cfg;if(n){var s=n.ensureState(r);if(a===!1){var l=n.getState(r);l&&(l.style=null)}else s.style=a||null;o&&(s.textConfig=o),_n(n)}}function H6(r,e,t){if(!r.isGroup){var a=r,i=t.currentZ,n=t.currentZLevel;a.z=i,a.zlevel=n;var o=e.z2;o!=null&&(a.z2=o||0);for(var s=0;s<si.length;s++)$6(a,e,si[s])}}function $6(r,e,t){var a=t===Xa,i=a?e:oh(e,t),n=i?i.z2:null,o;n!=null&&(o=a?r:r.ensureState(t),o.z2=n||0)}function zx(r,e,t,a){var i=r.get("renderItem"),n=r.coordinateSystem,o={};n&&(o=n.prepareCustoms?n.prepareCustoms(n):V6[n.type](n));for(var s=Q({getWidth:a.getWidth,getHeight:a.getHeight,getZr:a.getZr,getDevicePixelRatio:a.getDevicePixelRatio,value:S,style:x,ordinalRawValue:b,styleEmphasis:w,visual:D,barLayout:M,currentSeriesIndices:L,font:I},o.api||{}),l={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:o.coordSys,dataInsideLength:e.count(),encode:W6(r.getData())},u,f,h={},c={},v={},d={},p=0;p<si.length;p++){var g=si[p];v[g]=r.getModel(ad[g]),d[g]=r.getModel(id[g])}function y(P){return P===u?f||(f=e.getItemModel(P)):e.getItemModel(P)}function m(P,R){return e.hasItemOption?P===u?h[R]||(h[R]=y(P).getModel(ad[R])):y(P).getModel(ad[R]):v[R]}function _(P,R){return e.hasItemOption?P===u?c[R]||(c[R]=y(P).getModel(id[R])):y(P).getModel(id[R]):d[R]}return function(P,R){return u=P,f=null,h={},c={},i&&i(Q({dataIndexInside:P,dataIndex:e.getRawIndex(P),actionType:R?R.type:null},l),s)};function S(P,R){return R==null&&(R=u),e.getStore().get(e.getDimensionIndex(P||0),R)}function b(P,R){R==null&&(R=u),P=P||0;var E=e.getDimensionInfo(P);if(!E){var N=e.getDimensionIndex(P);return N>=0?e.getStore().get(N,R):void 0}var O=e.get(E.name,R),B=E&&E.ordinalMeta;return B?B.categories[O]:O}function x(P,R){R==null&&(R=u);var E=e.getItemVisual(R,"style"),N=E&&E.fill,O=E&&E.opacity,B=m(R,Xa).getItemStyle();N!=null&&(B.fill=N),O!=null&&(B.opacity=O);var F={inheritColor:U(N)?N:"#000"},W=_(R,Xa),X=Bt(W,null,F,!1,!0);X.text=W.getShallow("show")?ut(r.getFormattedLabel(R,Xa),_o(e,R)):null;var j=Of(W,F,!1);return C(P,B),B=kx(B,X,j),P&&T(B,P),B.legacy=!0,B}function w(P,R){R==null&&(R=u);var E=m(R,da).getItemStyle(),N=_(R,da),O=Bt(N,null,null,!0,!0);O.text=N.getShallow("show")?ua(r.getFormattedLabel(R,da),r.getFormattedLabel(R,Xa),_o(e,R)):null;var B=Of(N,null,!0);return C(P,E),E=kx(E,O,B),P&&T(E,P),E.legacy=!0,E}function T(P,R){for(var E in R)Z(R,E)&&(P[E]=R[E])}function C(P,R){P&&(P.textFill&&(R.textFill=P.textFill),P.textPosition&&(R.textPosition=P.textPosition))}function D(P,R){if(R==null&&(R=u),Z(Rx,P)){var E=e.getItemVisual(R,"style");return E?E[Rx[P]]:null}if(Z(d6,P))return e.getItemVisual(R,P)}function M(P){if(n.type==="cartesian2d"){var R=n.getBaseAxis();return YB(Q({axis:R},P))}}function L(){return t.getCurrentSeriesIndices()}function I(P){return _C(P,t)}}function W6(r){var e={};return A(r.dimensions,function(t){var a=r.getDimensionInfo(t);if(!a.isExtraCoord){var i=a.coordDim,n=e[i]=e[i]||[];n[a.coordDimIndex]=r.getDimensionIndex(t)}}),e}function nd(r,e,t,a,i,n,o){if(!a){n.remove(e);return}var s=tm(r,e,t,a,i,n);return s&&o.setItemGraphicEl(t,s),s&&Ut(s,a.focus,a.blurScope,a.emphasisDisabled),s}function tm(r,e,t,a,i,n){var o=-1,s=e;e&&V2(e,a,i)&&(o=ct(n.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=Qy(a),s&&z6(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Qe.normal.cfg=Qe.normal.conOpt=Qe.emphasis.cfg=Qe.emphasis.conOpt=Qe.blur.cfg=Qe.blur.conOpt=Qe.select.cfg=Qe.select.conOpt=null,Qe.isLegacy=!1,Y6(u,t,a,i,l,Qe),U6(u,t,a,i,l),jy(r,u,t,a,Qe,i,l),Z(a,"info")&&(ca(u).info=a.info);for(var f=0;f<si.length;f++){var h=si[f];if(h!==Xa){var c=oh(a,h),v=em(a,c,h);B2(h,u,c,v,Qe)}}return H6(u,a,i),a.type==="group"&&Z6(r,u,t,a,i),o>=0?n.replaceAt(u,o):n.add(u),u}function V2(r,e,t){var a=ca(r),i=e.type,n=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||i!=null&&i!==a.customGraphicType||i==="path"&&J6(n)&&z2(n)!==a.customPathData||i==="image"&&Z(o,"image")&&o.image!==a.customImagePath}function U6(r,e,t,a,i){var n=t.clipPath;if(n===!1)r&&r.getClipPath()&&r.removeClipPath();else if(n){var o=r.getClipPath();o&&V2(o,n,a)&&(o=null),o||(o=Qy(n),r.setClipPath(o)),jy(null,o,e,n,null,a,i)}}function Y6(r,e,t,a,i,n){if(!r.isGroup){Gx(t,null,n),Gx(t,da,n);var o=n.normal.conOpt,s=n.emphasis.conOpt,l=n.blur.conOpt,u=n.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=n.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=Qy(o),r.setTextContent(f)),jy(null,f,e,o,null,a,i);for(var h=o&&o.style,c=0;c<si.length;c++){var v=si[c];if(v!==Xa){var d=n[v].conOpt;B2(v,f,d,em(o,d,v),null)}}h?f.dirty():f.markRedraw()}}}}function Gx(r,e,t){var a=e?oh(r,e):r,i=e?em(r,a,da):r.style,n=r.type,o=a?a.textConfig:null,s=r.textContent,l=s?e?oh(s,e):s:null;if(i&&(t.isLegacy||P2(i,n,!!o,!!l))){t.isLegacy=!0;var u=R2(i,n,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var f=l;!f.type&&(f.type="text")}var h=e?t[e]:t.normal;h.cfg=o,h.conOpt=l}function oh(r,e){return e?r?r[e]:null:r}function em(r,e,t){var a=e&&e.style;return a==null&&t===da&&r&&(a=r.styleEmphasis),a}function Z6(r,e,t,a,i){var n=a.children,o=n?n.length:0,s=a.$mergeChildren,l=s==="byName"||a.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){q6({api:r,oldChildren:e.children()||[],newChildren:n||[],dataIndex:t,seriesModel:i,group:e});return}u&&e.removeAll();for(var f=0;f<o;f++){var h=n[f],c=e.childAt(f);h?(h.ignore==null&&(h.ignore=!1),tm(r,c,t,h,i,e)):c.ignore=!0}for(var v=e.childCount()-1;v>=f;v--){var d=e.childAt(v);X6(e,d,i)}}}function X6(r,e,t){e&&rv(e,ca(r).option,t)}function q6(r){new Sa(r.oldChildren,r.newChildren,Fx,Fx,r).add(Hx).update(Hx).remove(K6).execute()}function Fx(r,e){var t=r&&r.name;return t!=null?t:B6+e}function Hx(r,e){var t=this.context,a=r!=null?t.newChildren[r]:null,i=e!=null?t.oldChildren[e]:null;tm(t.api,i,t.dataIndex,a,t.seriesModel,t.group)}function K6(r){var e=this.context,t=e.oldChildren[r];t&&rv(t,ca(t).option,e.seriesModel)}function z2(r){return r&&(r.pathData||r.d)}function J6(r){return r&&(Z(r,"pathData")||Z(r,"d"))}function Q6(r){r.registerChartView(F6),r.registerSeriesModel(g6)}var qi=Dt(),$x=et,od=Y,j6=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,a,i){var n=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=a,!(!i&&this._lastValue===n&&this._lastStatus===o)){this._lastValue=n,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,n,e,t,a);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new at,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),a.getZr().add(s);else{var c=ot(Wx,t,h);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,t)}Yx(s,t,!0),this._renderHandle(n)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var a=t.get("animation"),i=e.axis,n=i.type==="category",o=t.get("snap");if(!o&&!n)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(n&&i.getBandWidth()>s)return!0;if(o){var l=Cy(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(e,t,a,i,n){},r.prototype.createPointerEl=function(e,t,a,i){var n=t.pointer;if(n){var o=qi(e).pointerEl=new Rl[n.type]($x(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,a,i){if(t.label){var n=qi(e).labelEl=new Tt($x(t.label));e.add(n),Ux(n,i)}},r.prototype.updatePointerEl=function(e,t,a){var i=qi(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),a(i,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,a,i){var n=qi(e).labelEl;n&&(n.setStyle(t.label.style),a(n,{x:t.label.x,y:t.label.y}),Ux(n,i))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,a=this._api.getZr(),i=this._handle,n=t.getModel("handle"),o=t.get("status");if(!n.get("show")||!o||o==="hide"){i&&a.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Pl(n.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){ga(u.event)},onmousedown:od(this._onHandleDragMove,this,0,0),drift:od(this._onHandleDragMove,this),ondragend:od(this._onHandleDragEnd,this)}),a.add(i)),Yx(i,t,!1),i.setStyle(n.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=n.get("size");z(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,Fo(this,"_doDispatchAxisPointer",n.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){Wx(this._axisPointerModel,!t&&this._moveAnimation,this._handle,sd(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var a=this._handle;if(!!a){this._dragging=!0;var i=this.updateHandleTransform(sd(a),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,a.stopAnimation(),a.attr(sd(i)),qi(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(!!e){var t=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(!!e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),a=this._group,i=this._handle;t&&a&&(this._lastGraphicKey=null,a&&t.remove(a),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),ll(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,a){return a=a||0,{x:e[a],y:e[1-a],width:t[a],height:t[1-a]}},r}();function Wx(r,e,t,a){G2(qi(t).lastProp,a)||(qi(t).lastProp=a,e?At(t,a,r):(t.stopAnimation(),t.attr(a)))}function G2(r,e){if(tt(r)&&tt(e)){var t=!0;return A(e,function(a,i){t=t&&G2(r[i],a)}),!!t}else return r===e}function Ux(r,e){r[e.get(["label","show"])?"show":"hide"]()}function sd(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function Yx(r,e,t){var a=e.get("z"),i=e.get("zlevel");r&&r.traverse(function(n){n.type!=="group"&&(a!=null&&(n.z=a),i!=null&&(n.zlevel=i),n.silent=t)})}var rm=j6;function am(r){var e=r.get("type"),t=r.getModel(e+"Style"),a;return e==="line"?(a=t.getLineStyle(),a.fill=null):e==="shadow"&&(a=t.getAreaStyle(),a.stroke=null),a}function F2(r,e,t,a,i){var n=t.get("value"),o=H2(n,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=No(s.get("padding")||0),u=s.getFont(),f=Al(o,u),h=i.position,c=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=i.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var p=i.verticalAlign;p==="bottom"&&(h[1]-=v),p==="middle"&&(h[1]-=v/2),t9(h,c,v,a);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:Bt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function t9(r,e,t,a){var i=a.getWidth(),n=a.getHeight();r[0]=Math.min(r[0]+e,i)-e,r[1]=Math.min(r[1]+t,n)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function H2(r,e,t,a,i){r=e.scale.parse(r);var n=e.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:gy(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};A(a,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),U(o)?n=o.replace("{value}",n):J(o)&&(n=o(s))}return n}function im(r,e,t){var a=hr();return Cn(a,a,t.rotation),Zr(a,a,t.position),Cr([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],a)}function $2(r,e,t,a,i,n){var o=xa.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=i.get(["label","margin"]),F2(e,a,i,n,{position:im(a.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function nm(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function W2(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function Zx(r,e,t,a,i,n){return{cx:r,cy:e,r0:t,r:a,startAngle:i,endAngle:n,clockwise:!0}}var e9=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,i,n,o){var s=i.axis,l=s.grid,u=n.get("type"),f=Xx(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var c=am(n),v=r9[u](s,h,f);v.style=c,t.graphicKey=v.type,t.pointer=v}var d=Rp(l.model,i);$2(a,t,d,i,n,o)},e.prototype.getHandleTransform=function(t,a,i){var n=Rp(a.axis.grid.model,a,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var o=im(a.axis,t,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,i,n){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Xx(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[t.x,t.y];h[f]+=a[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var c=(u[1]+u[0])/2,v=[c,c];v[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:v,tooltipOption:d[f]}},e}(rm);function Xx(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var r9={line:function(r,e,t){var a=nm([e,t[0]],[e,t[1]],qx(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=Math.max(1,r.getBandWidth()),i=t[1]-t[0];return{type:"Rect",shape:W2([e-a/2,t[0]],[a,i],qx(r))}}};function qx(r){return r.dim==="x"?0:1}var a9=e9,i9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!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}(wt),n9=i9,sa=Dt(),o9=A;function U2(r,e,t){if(!It.node){var a=e.getZr();sa(a).records||(sa(a).records={}),s9(a,e);var i=sa(a).records[r]||(sa(a).records[r]={});i.handler=t}}function s9(r,e){if(sa(r).initialized)return;sa(r).initialized=!0,t("click",ot(Kx,"click")),t("mousemove",ot(Kx,"mousemove")),t("globalout",u9);function t(a,i){r.on(a,function(n){var o=f9(e);o9(sa(r).records,function(s){s&&i(s,n,o.dispatchAction)}),l9(o.pendings,e)})}}function l9(r,e){var t=r.showTip.length,a=r.hideTip.length,i;t?i=r.showTip[t-1]:a&&(i=r.hideTip[a-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function u9(r,e,t){r.handler("leave",null,t)}function Kx(r,e,t,a){e.handler(r,t,a)}function f9(r){var e={showTip:[],hideTip:[]},t=function(a){var i=e[a.type];i?i.push(a):(a.dispatchAction=t,r.dispatchAction(a))};return{dispatchAction:t,pendings:e}}function Jp(r,e){if(!It.node){var t=e.getZr(),a=(sa(t).records||{})[r];a&&(sa(t).records[r]=null)}}var h9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){var n=a.getComponent("tooltip"),o=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";U2("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,a){Jp("axisPointer",a)},e.prototype.dispose=function(t,a){Jp("axisPointer",a)},e.type="axisPointer",e}(Yt),v9=h9;function Y2(r,e){var t=[],a=r.seriesIndex,i;if(a==null||!(i=e.getSeriesByIndex(a)))return{point:[]};var n=i.getData(),o=yn(n,r);if(o==null||o<0||z(o))return{point:[]};var s=n.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)t=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,c=u.dim,v=h==="x"||h==="radius"?1:0,d=n.mapDimension(c),p=[];p[v]=n.get(d,o),p[1-v]=n.get(n.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(p)||[]}else t=l.dataToPoint(n.getValues(G(l.dimensions,function(y){return n.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),t=[g.x+g.width/2,g.y+g.height/2]}return{point:t,el:s}}var Jx=Dt();function c9(r,e,t){var a=r.currTrigger,i=[r.x,r.y],n=r,o=r.dispatchAction||Y(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(!!s){yf(i)&&(i=Y2({seriesIndex:n.seriesIndex,dataIndex:n.dataIndex},e).point);var l=yf(i),u=n.axesInfo,f=s.axesInfo,h=a==="leave"||yf(i),c={},v={},d={list:[],map:{}},p={showPointer:ot(p9,v),showTooltip:ot(g9,d)};A(s.coordSysMap,function(y,m){var _=l||y.containPoint(i);A(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,w=S9(u,S);if(!h&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=x.pointToData(i)),T!=null&&Qx(S,T,p,!1,c)}})});var g={};return A(f,function(y,m){var _=y.linkGroup;_&&!v[m]&&A(_.axesInfo,function(S,b){var x=v[b];if(S!==y&&x){var w=x.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,jx(S),jx(y)))),g[y.key]=w}})}),A(g,function(y,m){Qx(f[m],y,p,!0,c)}),y9(v,f,c),m9(d,i,r,o),_9(f,o,t),c}}function Qx(r,e,t,a,i){var n=r.axis;if(!(n.scale.isBlank()||!n.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=d9(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&V(i,s[0]),!a&&r.snap&&n.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function d9(r,e){var t=e.axis,a=t.dim,i=r,n=[],o=Number.MAX_VALUE,s=-1;return A(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(a),h,c;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,t);c=v.dataIndices,h=v.nestestValue}else{if(c=l.getData().indicesOfNearest(f[0],r,t.type==="category"?.5:null),!c.length)return;h=l.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var d=r-h,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,i=h,n.length=0),A(c,function(g){n.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:n,snapToValue:i}}function p9(r,e,t,a){r[e.key]={value:t,payloadBatch:a}}function g9(r,e,t,a){var i=t.payloadBatch,n=e.axis,o=n.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=dl(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:n.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function y9(r,e,t){var a=t.axesInfo=[];A(e,function(i,n){var o=i.axisPointerModel.option,s=r[n];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function m9(r,e,t,a){if(yf(e)||!r.list.length){a({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function _9(r,e,t){var a=t.getZr(),i="axisPointerLastHighlights",n=Jx(a)[i]||{},o=Jx(a)[i]={};A(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&A(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],l=[];A(n,function(u,f){!o[f]&&l.push(u)}),A(o,function(u,f){!n[f]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function S9(r,e){for(var t=0;t<(r||[]).length;t++){var a=r[t];if(e.axis.dim===a.axisDim&&e.axis.model.componentIndex===a.axisIndex)return a}}function jx(r){var e=r.axis.model,t={},a=t.axisDim=r.axis.dim;return t.axisIndex=t[a+"AxisIndex"]=e.componentIndex,t.axisName=t[a+"AxisName"]=e.name,t.axisId=t[a+"AxisId"]=e.id,t}function yf(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Zl(r){Ln.registerAxisPointerClass("CartesianAxisPointer",a9),r.registerComponentModel(n9),r.registerComponentView(v9),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!z(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=s3(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},c9)}function x9(r){dt(mM),dt(Zl)}var b9=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,i,n,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),h=s.dataToCoord(a),c=n.get("type");if(c&&c!=="none"){var v=am(n),d=T9[c](s,l,h,f);d.style=v,t.graphicKey=d.type,t.pointer=d}var p=n.get(["label","margin"]),g=w9(a,i,n,l,p);F2(t,i,n,o,g)},e}(rm);function w9(r,e,t,a,i){var n=e.axis,o=n.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,f,h;if(n.dim==="radius"){var c=hr();Cn(c,c,s),Zr(c,c,[a.cx,a.cy]),u=Cr([o,-i],c);var v=e.getModel("axisLabel").get("rotate")||0,d=xa.innerTextLayout(s,v*Math.PI/180,-1);f=d.textAlign,h=d.textVerticalAlign}else{var p=l[1];u=a.coordToPoint([p+i,o]);var g=a.cx,y=a.cy;f=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",h=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:h}}var T9={line:function(r,e,t,a){return r.dim==="angle"?{type:"Line",shape:nm(e.coordToPoint([a[0],t]),e.coordToPoint([a[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,a){var i=Math.max(1,r.getBandWidth()),n=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:Zx(e.cx,e.cy,a[0],a[1],(-t-i/2)*n,(-t+i/2)*n)}:{type:"Sector",shape:Zx(e.cx,e.cy,t-i/2,t+i/2,0,Math.PI*2)}}},C9=b9,A9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var a,i=this.ecModel;return i.eachComponent(t,function(n){n.getCoordSysModel()===this&&(a=n)},this),a},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(wt),D9=A9,om=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Qt).models[0]},e.type="polarAxis",e}(wt);ee(om,zl);var M9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(om),L9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(om),sm=function(r){k(e,r);function e(t,a){return r.call(this,"radius",t,a)||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e}(Lr);sm.prototype.dataToRadius=Lr.prototype.dataToCoord;sm.prototype.radiusToData=Lr.prototype.coordToData;var I9=sm,P9=Dt(),lm=function(r){k(e,r);function e(t,a){return r.call(this,"angle",t,a||[0,360])||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,a=t.getLabelModel(),i=t.scale,n=i.getExtent(),o=i.count();if(n[1]-n[0]<1)return 0;var s=n[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),f=Al(s==null?"":s+"",a.getFont(),"center","top"),h=Math.max(f.height,7),c=h/u;isNaN(c)&&(c=1/0);var v=Math.max(0,Math.floor(c)),d=P9(t.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-v)<=1&&Math.abs(g-o)<=1&&p>v?v=p:(d.lastTickCount=o,d.lastAutoInterval=v),v},e}(Lr);lm.prototype.dataToAngle=Lr.prototype.dataToCoord;lm.prototype.angleToData=Lr.prototype.coordToData;var R9=lm,Z2=["radius","angle"],E9=function(){function r(e){this.dimensions=Z2,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new I9,this._angleAxis=new R9,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],a=this._angleAxis,i=this._radiusAxis;return a.scale.type===e&&t.push(a),i.scale.type===e&&t.push(i),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},r.prototype.pointToData=function(e,t){var a=this.pointToCoord(e);return[this._radiusAxis.radiusToData(a[0],t),this._angleAxis.angleToData(a[1],t)]},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,i=this.getAngleAxis(),n=i.getExtent(),o=Math.min(n[0],n[1]),s=Math.max(n[0],n[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+a*a);t/=l,a/=l;for(var u=Math.atan2(-a,t)/Math.PI*180,f=u<o?1:-1;u<o||u>s;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(e){var t=e[0],a=e[1]/180*Math.PI,i=Math.cos(a)*t+this.cx,n=-Math.sin(a)*t+this.cy;return[i,n]},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),a=t.getExtent().slice();a[0]>a[1]&&a.reverse();var i=e.getExtent(),n=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-i[0]*n,endAngle:-i[1]*n,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,f=l*l+u*u-1e-4,h=this.r,c=this.r0;return f<=h*h&&f>=c*c}}},r.prototype.convertToPixel=function(e,t,a){var i=tb(t);return i===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var i=tb(t);return i===this?this.pointToData(a):null},r}();function tb(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}var k9=E9;function O9(r,e,t){var a=e.get("center"),i=t.getWidth(),n=t.getHeight();r.cx=H(a[0],i),r.cy=H(a[1],n);var o=r.getRadiusAxis(),s=Math.min(i,n)/2,l=e.get("radius");l==null?l=[0,"100%"]:z(l)||(l=[0,l]);var u=[H(l[0],s),H(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function N9(r,e){var t=this,a=t.getAngleAxis(),i=t.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();A(Yf(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),A(Yf(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),mo(a.scale,a.model),mo(i.scale,i.model),a.type==="category"&&!a.onBand){var n=a.getExtent(),o=360/a.scale.count();a.inverse?n[1]+=o:n[1]-=o,a.setExtent(n[0],n[1])}}function B9(r){return r.mainType==="angleAxis"}function eb(r,e){if(r.type=e.get("type"),r.scale=Xh(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),B9(e)){r.inverse=r.inverse!==e.get("clockwise");var t=e.get("startAngle");r.setExtent(t,t+(r.inverse?-360:360))}e.axis=r,r.model=e}var V9={dimensions:Z2,create:function(r,e){var t=[];return r.eachComponent("polar",function(a,i){var n=new k9(i+"");n.update=N9;var o=n.getRadiusAxis(),s=n.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");eb(o,l),eb(s,u),O9(n,a,e),t.push(n),a.coordinateSystem=n,n.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var i=a.getReferringComponents("polar",Qt).models[0];a.coordinateSystem=i.coordinateSystem}}),t}},z9=V9,G9=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function $u(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var a=r.coordToPoint([e[0],t]),i=r.coordToPoint([e[1],t]);return{x1:a[0],y1:a[1],x2:i[0],y2:i[1]}}function Wu(r){var e=r.getRadiusAxis();return e.inverse?0:1}function rb(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var F9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,a){if(this.group.removeAll(),!!t.get("show")){var i=t.axis,n=i.polar,o=n.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=G(i.getViewLabels(),function(f){f=et(f);var h=i.scale,c=h.type==="ordinal"?h.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=i.dataToCoord(c),f});rb(u),rb(s),A(G9,function(f){t.get([f,"show"])&&(!i.scale.isBlank()||f==="axisLine")&&H9[f](this.group,t,n,s,l,o,u)},this)}},e.type="angleAxis",e}(Ln),H9={axisLine:function(r,e,t,a,i,n){var o=e.getModel(["axisLine","lineStyle"]),s=Wu(t),l=s?0:1,u;n[l]===0?u=new Jr({shape:{cx:t.cx,cy:t.cy,r:n[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new Lh({shape:{cx:t.cx,cy:t.cy,r:n[s],r0:n[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,r.add(u)},axisTick:function(r,e,t,a,i,n){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=n[Wu(t)],u=G(a,function(f){return new fe({shape:$u(t,[l,l+s],f.coord)})});r.add(sr(u,{style:Q(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,a,i,n){if(!!i.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=n[Wu(t)],f=[],h=0;h<i.length;h++)for(var c=0;c<i[h].length;c++)f.push(new fe({shape:$u(t,[u,u+l],i[h][c].coord)}));r.add(sr(f,{style:Q(s.getModel("lineStyle").getLineStyle(),Q(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,e,t,a,i,n,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),f=e.get("triggerEvent");A(o,function(h,c){var v=l,d=h.tickValue,p=n[Wu(t)],g=t.coordToPoint([p+u,h.coord]),y=t.cx,m=t.cy,_=Math.abs(g[0]-y)/p<.3?"center":g[0]>y?"left":"right",S=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[d]){var b=s[d];tt(b)&&b.textStyle&&(v=new Vt(b.textStyle,l,l.ecModel))}var x=new Tt({silent:xa.isLabelSilent(e),style:Bt(v,{x:g[0],y:g[1],fill:v.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:_,verticalAlign:S})});if(r.add(x),f){var w=xa.makeAxisEventDataBase(e);w.targetType="axisLabel",w.value=h.rawLabel,it(x).eventData=w}},this)},splitLine:function(r,e,t,a,i,n){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=0;h<a.length;h++){var c=u++%l.length;f[c]=f[c]||[],f[c].push(new fe({shape:$u(t,n,a[h].coord)}))}for(var h=0;h<f.length;h++)r.add(sr(f[h],{style:Q({stroke:l[h%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(r,e,t,a,i,n){if(!!i.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var f=0;f<i[u].length;f++)l.push(new fe({shape:$u(t,n,i[u][f].coord)}));r.add(sr(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(r,e,t,a,i,n){if(!!a.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=Math.PI/180,c=-a[0].coord*h,v=Math.min(n[0],n[1]),d=Math.max(n[0],n[1]),p=e.get("clockwise"),g=1,y=a.length;g<=y;g++){var m=g===y?a[0].coord:a[g].coord,_=u++%l.length;f[_]=f[_]||[],f[_].push(new Ve({shape:{cx:t.cx,cy:t.cy,r0:v,r:d,startAngle:c,endAngle:-m*h,clockwise:p},silent:!0})),c=-m*h}for(var g=0;g<f.length;g++)r.add(sr(f[g],{style:Q({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}},$9=F9,W9=["axisLine","axisTickLabel","axisName"],U9=["splitLine","splitArea","minorSplitLine"],Y9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,a){if(this.group.removeAll(),!!t.get("show")){var i=this._axisGroup,n=this._axisGroup=new at;this.group.add(n);var o=t.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),f=o.getMinorTicksCoords(),h=l.getExtent()[0],c=o.getExtent(),v=X9(s,t,h),d=new xa(t,v);A(W9,d.add,d),n.add(d.getGroup()),Il(i,n,t),A(U9,function(p){t.get([p,"show"])&&!o.scale.isBlank()&&Z9[p](this.group,t,s,h,c,u,f)},this)}},e.type="radiusAxis",e}(Ln),Z9={splitLine:function(r,e,t,a,i,n){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=0;h<n.length;h++){var c=u++%l.length;f[c]=f[c]||[],f[c].push(new Jr({shape:{cx:t.cx,cy:t.cy,r:Math.max(n[h].coord,0)}}))}for(var h=0;h<f.length;h++)r.add(sr(f[h],{style:Q({stroke:l[h%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,e,t,a,i,n,o){if(!!o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var h=0;h<o[f].length;h++)u.push(new Jr({shape:{cx:t.cx,cy:t.cy,r:o[f][h].coord}}));r.add(sr(u,{style:Q({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,e,t,a,i,n){if(!!n.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=n[0].coord,c=1;c<n.length;c++){var v=u++%l.length;f[v]=f[v]||[],f[v].push(new Ve({shape:{cx:t.cx,cy:t.cy,r0:h,r:n[c].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),h=n[c].coord}for(var c=0;c<f.length;c++)r.add(sr(f[c],{style:Q({fill:l[c%l.length]},s.getAreaStyle()),silent:!0}))}}};function X9(r,e,t){return{position:[r.cx,r.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}var q9=Y9;function X2(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function q2(r,e){return e.dim+r.model.componentIndex}function K9(r,e,t){var a={},i=J9(Et(e.getSeriesByType(r),function(n){return!e.isSeriesFiltered(n)&&n.coordinateSystem&&n.coordinateSystem.type==="polar"}));e.eachSeriesByType(r,function(n){if(n.coordinateSystem.type==="polar"){var o=n.getData(),s=n.coordinateSystem,l=s.getBaseAxis(),u=q2(s,l),f=X2(n),h=i[u][f],c=h.offset,v=h.width,d=s.getOtherAxis(l),p=n.coordinateSystem.cx,g=n.coordinateSystem.cy,y=n.get("barMinHeight")||0,m=n.get("barMinAngle")||0;a[f]=a[f]||[];for(var _=o.mapDimension(d.dim),S=o.mapDimension(l.dim),b=ii(o,_),x=l.dim!=="radius"||!n.get("roundCap",!0),w=d.dataToCoord(0),T=0,C=o.count();T<C;T++){var D=o.get(_,T),M=o.get(S,T),L=D>=0?"p":"n",I=w;b&&(a[f][M]||(a[f][M]={p:w,n:w}),I=a[f][M][L]);var P=void 0,R=void 0,E=void 0,N=void 0;if(d.dim==="radius"){var O=d.dataToCoord(D)-w,B=l.dataToCoord(M);Math.abs(O)<y&&(O=(O<0?-1:1)*y),P=I,R=I+O,E=B-c,N=E-v,b&&(a[f][M][L]=R)}else{var F=d.dataToCoord(D,x)-w,W=l.dataToCoord(M);Math.abs(F)<m&&(F=(F<0?-1:1)*m),P=W+c,R=P+v,E=I,N=I+F,b&&(a[f][M][L]=N)}o.setItemLayout(T,{cx:p,cy:g,r0:P,r:R,startAngle:-E*Math.PI/180,endAngle:-N*Math.PI/180,clockwise:E>=N})}}})}function J9(r){var e={};A(r,function(a,i){var n=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=q2(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/n.count(),h=e[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=h.stacks;e[l]=h;var v=X2(a);c[v]||h.autoWidthCount++,c[v]=c[v]||{width:0,maxWidth:0};var d=H(a.get("barWidth"),f),p=H(a.get("barMaxWidth"),f),g=a.get("barGap"),y=a.get("barCategoryGap");d&&!c[v].width&&(d=Math.min(h.remainedWidth,d),c[v].width=d,h.remainedWidth-=d),p&&(c[v].maxWidth=p),g!=null&&(h.gap=g),y!=null&&(h.categoryGap=y)});var t={};return A(e,function(a,i){t[i]={};var n=a.stacks,o=a.bandWidth,s=H(a.categoryGap,o),l=H(a.gap,1),u=a.remainedWidth,f=a.autoWidthCount,h=(u-s)/(f+(f-1)*l);h=Math.max(h,0),A(n,function(p,g){var y=p.maxWidth;y&&y<h&&(y=Math.min(y,u),p.width&&(y=Math.min(y,p.width)),u-=y,p.width=y,f--)}),h=(u-s)/(f+(f-1)*l),h=Math.max(h,0);var c=0,v;A(n,function(p,g){p.width||(p.width=h),v=p,c+=p.width*(1+l)}),v&&(c-=v.width*l);var d=-c/2;A(n,function(p,g){t[i][g]=t[i][g]||{offset:d,width:p.width},d+=p.width*(1+l)})}),t}var Q9={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},j9={splitNumber:5},t8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e}(Yt);function e8(r){dt(Zl),Ln.registerAxisPointerClass("PolarAxisPointer",C9),r.registerCoordinateSystem("polar",z9),r.registerComponentModel(D9),r.registerComponentView(t8),So(r,"angle",M9,Q9),So(r,"radius",L9,j9),r.registerComponentView($9),r.registerComponentView(q9),r.registerLayout(ot(K9,"bar"))}function Qp(r,e){e=e||{};var t=r.coordinateSystem,a=r.axis,i={},n=a.position,o=a.orient,s=t.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]}};i.position=[o==="vertical"?u.vertical[n]:l[0],o==="horizontal"?u.horizontal[n]:l[3]];var f={horizontal:0,vertical:1};i.rotation=Math.PI/2*f[o];var h={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=h[n],r.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),ue(e.labelInside,r.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var c=e.rotate;return c==null&&(c=r.get(["axisLabel","rotate"])),i.labelRotation=n==="top"?-c:c,i.z2=1,i}var r8=["axisLine","axisTickLabel","axisName"],a8=["splitArea","splitLine"],i8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return e.prototype.render=function(t,a,i,n){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new at;var l=Qp(t),u=new xa(t,l);A(r8,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),A(a8,function(f){t.get([f,"show"])&&n8[f](this,this.group,this._axisGroup,t)},this),Il(s,this._axisGroup,t),r.prototype.render.call(this,t,a,i,n)},e.prototype.remove=function(){pM(this)},e.type="singleAxis",e}(Ln),n8={splitLine:function(r,e,t,a){var i=a.axis;if(!i.scale.isBlank()){var n=a.getModel("splitLine"),o=n.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=a.coordinateSystem.getRect(),f=i.isHorizontal(),h=[],c=0,v=i.getTicksCoords({tickModel:n}),d=[],p=[],g=0;g<v.length;++g){var y=i.toGlobalCoord(v[g].coord);f?(d[0]=y,d[1]=u.y,p[0]=y,p[1]=u.y+u.height):(d[0]=u.x,d[1]=y,p[0]=u.x+u.width,p[1]=y);var m=new fe({shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},silent:!0});po(m.shape,l);var _=c++%s.length;h[_]=h[_]||[],h[_].push(m)}for(var S=o.getLineStyle(["color"]),g=0;g<h.length;++g)e.add(sr(h[g],{style:Q({stroke:s[g%s.length]},S),silent:!0}))}},splitArea:function(r,e,t,a){dM(r,t,a,a)}},o8=i8,K2=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return 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}(wt);ee(K2,zl.prototype);var ld=K2,s8=function(r){k(e,r);function e(t,a,i,n,o){var s=r.call(this,t,a,i)||this;return s.type=n||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.pointToData=function(t,a){return this.coordinateSystem.pointToData(t)[0]},e}(Lr),l8=s8,J2=["single"],u8=function(){function r(e,t,a){this.type="single",this.dimension="single",this.dimensions=J2,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var i=this.dimension,n=new l8(i,Xh(e),[0,0],e.get("type"),e.get("position")),o=n.type==="category";n.onBand=o&&e.get("boundaryGap"),n.inverse=e.get("inverse"),n.orient=e.get("orient"),e.axis=n,n.model=e,n.coordinateSystem=this,this._axis=n},r.prototype.update=function(e,t){e.eachSeries(function(a){if(a.coordinateSystem===this){var i=a.getData();A(i.mapDimensionsAll(this.dimension),function(n){this._axis.scale.unionExtentFromData(i,n)},this),mo(this._axis.scale,this._axis.model)}},this)},r.prototype.resize=function(e,t){this._rect=ae({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,a=t.isHorizontal(),i=a?[0,e.width]:[0,e.height],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),this._updateAxisTransform(t,a?e.x:e.y)},r.prototype._updateAxisTransform=function(e,t){var a=e.getExtent(),i=a[0]+a[1],n=e.isHorizontal();e.toGlobalCoord=n?function(o){return o+t}:function(o){return i-o+t},e.toLocalCoord=n?function(o){return o-t}:function(o){return i-o+t}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(e){var t=this.getRect(),a=this.getAxis(),i=a.orient;return i==="horizontal"?a.contain(a.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:a.contain(a.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(e){var t=this.getAxis(),a=this.getRect(),i=[],n=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),i[n]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-n]=n===0?a.y+a.height/2:a.x+a.width/2,i},r.prototype.convertToPixel=function(e,t,a){var i=ab(t);return i===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var i=ab(t);return i===this?this.pointToData(a):null},r}();function ab(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function f8(r,e){var t=[];return r.eachComponent("singleAxis",function(a,i){var n=new u8(a,r,e);n.name="single_"+i,n.resize(a,e),a.coordinateSystem=n,t.push(n)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="singleAxis"){var i=a.getReferringComponents("singleAxis",Qt).models[0];a.coordinateSystem=i&&i.coordinateSystem}}),t}var h8={create:f8,dimensions:J2},v8=h8,ib=["x","y"],c8=["width","height"],d8=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,i,n,o){var s=i.axis,l=s.coordinateSystem,u=ud(l,1-sh(s)),f=l.dataToPoint(a)[0],h=n.get("type");if(h&&h!=="none"){var c=am(n),v=p8[h](s,f,u);v.style=c,t.graphicKey=v.type,t.pointer=v}var d=Qp(i);$2(a,t,d,i,n,o)},e.prototype.getHandleTransform=function(t,a,i){var n=Qp(a,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var o=im(a.axis,t,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,i,n){var o=i.axis,s=o.coordinateSystem,l=sh(o),u=ud(s,l),f=[t.x,t.y];f[l]+=a[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var h=ud(s,1-l),c=(h[1]+h[0])/2,v=[c,c];return v[l]=f[l],{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:v,tooltipOption:{verticalAlign:"middle"}}},e}(rm),p8={line:function(r,e,t){var a=nm([e,t[0]],[e,t[1]],sh(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=r.getBandWidth(),i=t[1]-t[0];return{type:"Rect",shape:W2([e-a/2,t[0]],[a,i],sh(r))}}};function sh(r){return r.isHorizontal()?0:1}function ud(r,e){var t=r.getRect();return[t[ib[e]],t[ib[e]]+t[c8[e]]]}var g8=d8,y8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(Yt);function m8(r){dt(Zl),Ln.registerAxisPointerClass("SingleAxisPointer",g8),r.registerComponentView(y8),r.registerComponentView(o8),r.registerComponentModel(ld),So(r,"single",ld,ld.defaultOption),r.registerCoordinateSystem("single",v8)}var _8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a,i){var n=Bo(t);r.prototype.init.apply(this,arguments),nb(t,n)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),nb(this.option,t)},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}(wt);function nb(r,e){var t=r.cellSize,a;z(t)?a=t:a=r.cellSize=[t,t],a.length===1&&(a[1]=a[0]);var i=G([0,1],function(n){return Dk(e,n)&&(a[n]="auto"),a[n]!=null&&a[n]!=="auto"});ai(r,e,{type:"box",ignoreSize:i})}var S8=_8,x8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){var n=this.group;n.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(t,s,n),this._renderLines(t,s,l,n),this._renderYearText(t,s,l,n),this._renderMonthText(t,u,l,n),this._renderWeekText(t,u,s,l,n)},e.prototype._renderDayRect=function(t,a,i){for(var n=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=n.getCellWidth(),l=n.getCellHeight(),u=a.start.time;u<=a.end.time;u=n.getNextNDay(u,1).time){var f=n.dataToRect([u],!1).tl,h=new bt({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});i.add(h)}},e.prototype._renderLines=function(t,a,i,n){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=a.start,c=0;h.time<=a.end.time;c++){d(h.formatedDate),c===0&&(h=s.getDateInfo(a.start.y+"-"+a.start.m));var v=h.date;v.setMonth(v.getMonth()+1),h=s.getDateInfo(v)}d(s.getNextNDay(a.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToRect([p],!1).tl);var g=o._getLinePointsOfOneWeek(t,p,i);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,n)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,i),l,n),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,i),l,n)},e.prototype._getEdgesPoints=function(t,a,i){var n=[t[0].slice(),t[t.length-1].slice()],o=i==="horizontal"?0:1;return n[0][o]=n[0][o]-a/2,n[1][o]=n[1][o]+a/2,n},e.prototype._drawSplitline=function(t,a,i){var n=new Ge({z2:20,shape:{points:t},style:a});i.add(n)},e.prototype._getLinePointsOfOneWeek=function(t,a,i){for(var n=t.coordinateSystem,o=n.getDateInfo(a),s=[],l=0;l<7;l++){var u=n.getNextNDay(o.time,l),f=n.dataToRect([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[i==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,a){return U(t)&&t?Tk(t,a):J(t)?t(a):a.nameMap},e.prototype._yearTextPositionControl=function(t,a,i,n,o){var s=a[0],l=a[1],u=["center","bottom"];n==="bottom"?(l+=o,u=["center","top"]):n==="left"?s-=o:n==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(n==="left"||n==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,a,i,n){var o=t.getModel("yearLabel");if(!!o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,h=(u[0][1]+u[1][1])/2,c=i==="horizontal"?0:1,v={top:[f,u[c][1]],bottom:[f,u[1-c][1]],left:[u[1-c][0],h],right:[u[c][0],h]},d=a.start.y;+a.end.y>+a.start.y&&(d=d+"-"+a.end.y);var p=o.get("formatter"),g={start:a.start.y,end:a.end.y,nameMap:d},y=this._formatterLabel(p,g),m=new Tt({z2:30,style:Bt(o,{text:y})});m.attr(this._yearTextPositionControl(m,v[l],i,l,s)),n.add(m)}},e.prototype._monthTextPositionControl=function(t,a,i,n,o){var s="left",l="top",u=t[0],f=t[1];return i==="horizontal"?(f=f+o,a&&(s="center"),n==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),n==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,a,i,n){var o=t.getModel("monthLabel");if(!!o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),h=[this._tlpoints,this._blpoints];(!s||U(s))&&(s&&(a=lp(s)||a),s=a.get(["time","monthAbbr"])||[]);var c=u==="start"?0:1,v=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=f==="center",p=0;p<h[c].length-1;p++){var g=h[c][p].slice(),y=this._firstDayOfMonth[p];if(d){var m=this._firstDayPoints[p];g[v]=(m[v]+h[0][p+1][v])/2}var _=o.get("formatter"),S=s[+y.m-1],b={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:S},x=this._formatterLabel(_,b),w=new Tt({z2:30,style:V(Bt(o,{text:x}),this._monthTextPositionControl(g,d,i,u,l))});n.add(w)}}},e.prototype._weekTextPositionControl=function(t,a,i,n,o){var s="center",l="middle",u=t[0],f=t[1],h=i==="start";return a==="horizontal"?(u=u+n+(h?1:-1)*o[0]/2,s=h?"right":"left"):(f=f+n+(h?1:-1)*o[1]/2,l=h?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,a,i,n,o){var s=t.getModel("dayLabel");if(!!s.get("show")){var l=t.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),h=s.get("margin"),c=l.getFirstDayOfWeek();if(!f||U(f)){f&&(a=lp(f)||a);var v=a.get(["time","dayOfWeekShort"]);f=v||G(a.get(["time","dayOfWeekAbbr"]),function(b){return b[0]})}var d=l.getNextNDay(i.end.time,7-i.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];h=H(h,Math.min(p[1],p[0])),u==="start"&&(d=l.getNextNDay(i.start.time,-(7+i.fweek)).time,h=-h);for(var g=0;g<7;g++){var y=l.getNextNDay(d,g),m=l.dataToRect([y.time],!1).center,_=g;_=Math.abs((g+c)%7);var S=new Tt({z2:30,style:V(Bt(s,{text:f[_]}),this._weekTextPositionControl(m,n,u,h,p))});o.add(S)}}},e.type="calendar",e}(Yt),b8=x8,fd=864e5,w8=function(){function r(e,t,a){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=e}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(e){e=qr(e);var t=e.getFullYear(),a=e.getMonth()+1,i=a<10?"0"+a:""+a,n=e.getDate(),o=n<10?"0"+n:""+n,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:i,d:o,day:s,time:e.getTime(),formatedDate:t+"-"+i+"-"+o,date:e}},r.prototype.getNextNDay=function(e,t){return t=t||0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},r.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var a=this._rangeInfo.weeks||1,i=["width","height"],n=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[a,7]:[7,a];A([0,1],function(h){f(n,h)&&(o[i[h]]=n[h]*s[h])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=ae(o,l);A([0,1],function(h){f(n,h)||(n[h]=u[i[h]]/s[h])});function f(h,c){return h[c]!=null&&h[c]!=="auto"}this._sw=n[0],this._sh=n[1]},r.prototype.dataToPoint=function(e,t){z(e)&&(e=e[0]),t==null&&(t=!0);var a=this.getDateInfo(e),i=this._rangeInfo,n=a.formatedDate;if(t&&!(a.time>=i.start.time&&a.time<i.end.time+fd))return[NaN,NaN];var o=a.day,s=this._getRangeInfo([i.start.time,n]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},r.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},r.prototype.dataToRect=function(e,t){var a=this.dataToPoint(e,t);return{contentShape:{x:a[0]-(this._sw-this._lineWidth)/2,y:a[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:a,tl:[a[0]-this._sw/2,a[1]-this._sh/2],tr:[a[0]+this._sw/2,a[1]-this._sh/2],br:[a[0]+this._sw/2,a[1]+this._sh/2],bl:[a[0]-this._sw/2,a[1]+this._sh/2]}},r.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,a=Math.floor((e[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(a,t-1,i):this._getDateByWeeksAndDay(t,a-1,i)},r.prototype.convertToPixel=function(e,t,a){var i=ob(t);return i===this?i.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var i=ob(t);return i===this?i.pointToData(a):null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(z(e)&&e.length===1&&(e=e[0]),z(e))t=e;else{var a=e.toString();if(/^\d{4}$/.test(a)&&(t=[a+"-01-01",a+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(a)){var i=this.getDateInfo(a),n=i.date;n.setMonth(n.getMonth()+1);var o=this.getNextNDay(n,-1);t=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(a)&&(t=[a,a])}if(!t)return e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],a;t[0].time>t[1].time&&(a=!0,t.reverse());var i=Math.floor(t[1].time/fd)-Math.floor(t[0].time/fd)+1,n=new Date(t[0].time),o=n.getDate(),s=t[1].date.getDate();n.setDate(o+i-1);var l=n.getDate();if(l!==s)for(var u=n.getTime()-t[1].time>0?1:-1;(l=n.getDate())!==s&&(n.getTime()-t[1].time)*u>0;)i-=u,n.setDate(l-u);var f=Math.floor((i+t[0].day+6)/7),h=a?-f+1:f-1;return a&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:i,weeks:f,nthWeek:h,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,a){var i=this._getRangeInfo(a);if(e>i.weeks||e===0&&t<i.fweek||e===i.weeks&&t>i.lweek)return null;var n=(e-1)*7-i.fweek+t,o=new Date(i.start.time);return o.setDate(+i.start.d+n),this.getDateInfo(o)},r.create=function(e,t){var a=[];return e.eachComponent("calendar",function(i){var n=new r(i);a.push(n),i.coordinateSystem=n}),e.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=a[i.get("calendarIndex")||0])}),a},r.dimensions=["time","value"],r}();function ob(r){var e=r.calendarModel,t=r.seriesModel,a=e?e.coordinateSystem:t?t.coordinateSystem:null;return a}var T8=w8;function C8(r){r.registerComponentModel(S8),r.registerComponentView(b8),r.registerCoordinateSystem("calendar",T8)}function A8(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var a=e.parentOption;a?e.parentId=a.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function sb(r,e){var t;return A(e,function(a){r[a]!=null&&r[a]!=="auto"&&(t=!0)}),t}function D8(r,e,t){var a=V({},t),i=r[e],n=t.$action||"merge";n==="merge"?i?(ft(i,a,!0),ai(i,a,{ignoreSize:!0}),VC(t,i),Uu(t,i),Uu(t,i,"shape"),Uu(t,i,"style"),Uu(t,i,"extra"),t.clipPath=i.clipPath):r[e]=a:n==="replace"?r[e]=a:n==="remove"&&i&&(r[e]=null)}var Q2=["transition","enterFrom","leaveTo"],M8=Q2.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Uu(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var a=t?Q2:M8,i=0;i<a.length;i++){var n=a[i];r[n]==null&&e[n]!=null&&(r[n]=e[n])}}function L8(r,e){if(!!r&&(r.hv=e.hv=[sb(e,["left","right"]),sb(e,["top","bottom"])],r.type==="group")){var t=r,a=e;t.width==null&&(t.width=a.width=0),t.height==null&&(t.height=a.height=0)}}var I8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,a){var i=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,t,a),this.option.elements=i},e.prototype.optionUpdated=function(t,a){var i=this.option,n=(a?i:t).elements,o=i.elements=a?[]:i.elements,s=[];this._flatten(n,s,null);var l=_T(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];A(l,function(f,h){var c=f.newOption;!c||(u.push(c),A8(f,c),D8(o,h,c),L8(o[h],c))},this),i.elements=Et(o,function(f){return f&&delete f.$action,f!=null})},e.prototype._flatten=function(t,a,i){A(t,function(n){if(!!n){i&&(n.parentOption=i),a.push(n);var o=n.children;o&&o.length&&this._flatten(o,a,n),delete n.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(wt),lb={path:null,compoundPath:null,group:at,image:ge,text:Tt},ir=Dt(),P8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._elMap=K()},e.prototype.render=function(t,a,i){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,i)},e.prototype._updateElements=function(t){var a=t.useElOptionsToUpdate();if(!!a){var i=this._elMap,n=this.group,o=t.get("z"),s=t.get("zlevel");A(a,function(l){var u=re(l.id,null),f=u!=null?i.get(u):null,h=re(l.parentId,null),c=h!=null?i.get(h):n,v=l.type,d=l.style;v==="text"&&d&&l.hv&&l.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var p=l.textContent,g=l.textConfig;if(d&&P2(d,v,!!g,!!p)){var y=R2(d,v,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!p&&y.textContent&&(p=y.textContent)}var m=R8(l),_=l.$action||"merge",S=_==="merge",b=_==="replace";if(S){var x=!f,w=f;x?w=ub(u,c,l.type,i):(w&&(ir(w).isNew=!1),N2(w)),w&&(gf(w,m,t,{isInit:x}),fb(w,l,o,s))}else if(b){mf(f,l,i,t);var T=ub(u,c,l.type,i);T&&(gf(T,m,t,{isInit:!0}),fb(T,l,o,s))}else _==="remove"&&(k2(f,l),mf(f,l,i,t));var C=i.get(u);if(C&&p)if(S){var D=C.getTextContent();D?D.attr(p):C.setTextContent(new Tt(p))}else b&&C.setTextContent(new Tt(p));if(C){var M=l.clipPath;if(M){var L=M.type,I=void 0,x=!1;if(S){var P=C.getClipPath();x=!P||ir(P).type!==L,I=x?jp(L):P}else b&&(x=!0,I=jp(L));C.setClipPath(I),gf(I,M,t,{isInit:x}),nh(I,M.keyframeAnimation,t)}var R=ir(C);C.setTextConfig(g),R.option=l,E8(C,t,l),Eo({el:C,componentModel:t,itemName:C.name,itemTooltipOption:l.tooltip}),nh(C,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,a){for(var i=t.option.elements,n=this.group,o=this._elMap,s=a.getWidth(),l=a.getHeight(),u=["x","y"],f=0;f<i.length;f++){var h=i[f],c=re(h.id,null),v=c!=null?o.get(c):null;if(!(!v||!v.isGroup)){var d=v.parent,p=d===n,g=ir(v),y=ir(d);g.width=H(g.option.width,p?s:y.width)||0,g.height=H(g.option.height,p?l:y.height)||0}}for(var f=i.length-1;f>=0;f--){var h=i[f],c=re(h.id,null),v=c!=null?o.get(c):null;if(!!v){var d=v.parent,y=ir(d),m=d===n?{width:s,height:l}:{width:y.width,height:y.height},_={},S=zh(v,h,m,null,{hv:h.hv,boundingMode:h.bounding},_);if(!ir(v).isNew&&S){for(var b=h.transition,x={},w=0;w<u.length;w++){var T=u[w],C=_[T];b&&(dn(b)||ct(b,T)>=0)?x[T]=C:v[T]=C}At(v,x,t,0)}else v.attr(_)}}},e.prototype._clear=function(){var t=this,a=this._elMap;a.each(function(i){mf(i,ir(i).option,a,t._lastGraphicModel)}),this._elMap=K()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Yt);function jp(r){var e=Z(lb,r)?lb[r]:Fg(r),t=new e({});return ir(t).type=r,t}function ub(r,e,t,a){var i=jp(t);return e.add(i),a.set(r,i),ir(i).id=r,ir(i).isNew=!0,i}function mf(r,e,t,a){var i=r&&r.parent;i&&(r.type==="group"&&r.traverse(function(n){mf(n,e,t,a)}),rv(r,e,a),t.removeKey(ir(r).id))}function fb(r,e,t,a){r.isGroup||A([["cursor",vr.prototype.cursor],["zlevel",a||0],["z",t||0],["z2",0]],function(i){var n=i[0];Z(e,n)?r[n]=ut(e[n],i[1]):r[n]==null&&(r[n]=i[1])}),A(St(e),function(i){if(i.indexOf("on")===0){var n=e[i];r[i]=J(n)?n:null}}),Z(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function R8(r){return r=V({},r),A(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(BC),function(e){delete r[e]}),r}function E8(r,e,t){var a=it(r).eventData;!r.silent&&!r.ignore&&!a&&(a=it(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),a&&(a.info=t.info)}function k8(r){r.registerComponentModel(I8),r.registerComponentView(P8),r.registerPreprocessor(function(e){var t=e.graphic;z(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var hb=["x","y","radius","angle","single"],O8=["cartesian2d","polar","singleAxis"];function N8(r){var e=r.get("coordinateSystem");return ct(O8,e)>=0}function qa(r){return r+"Axis"}function B8(r,e){var t=K(),a=[],i=K();r.eachComponent({mainType:"dataZoom",query:e},function(f){i.get(f.uid)||s(f)});var n;do n=!1,r.eachComponent("dataZoom",o);while(n);function o(f){!i.get(f.uid)&&l(f)&&(s(f),n=!0)}function s(f){i.set(f.uid,!0),a.push(f),u(f)}function l(f){var h=!1;return f.eachTargetAxis(function(c,v){var d=t.get(c);d&&d[v]&&(h=!0)}),h}function u(f){f.eachTargetAxis(function(h,c){(t.get(h)||t.set(h,[]))[c]=!0})}return a}function j2(r){var e=r.ecModel,t={infoList:[],infoMap:K()};return r.eachTargetAxis(function(a,i){var n=e.getComponent(qa(a),i);if(!!n){var o=n.getCoordSysModel();if(!!o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(n)}}}),t}var hd=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r}(),V8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,a,i){var n=vb(t);this.settledOption=n,this.mergeDefaultAndTheme(t,i),this._doInit(n)},e.prototype.mergeOption=function(t){var a=vb(t);ft(this.option,t,!0),ft(this.settledOption,a,!0),this._doInit(a)},e.prototype._doInit=function(t){var a=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var i=this.settledOption;A([["start","startValue"],["end","endValue"]],function(n,o){this._rangePropMode[o]==="value"&&(a[n[0]]=i[n[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),a=this._targetAxisInfoMap=K(),i=this._fillSpecifiedTargetAxis(a);i?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(n){n.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var a=!1;return A(hb,function(i){var n=this.getReferringComponents(qa(i),iR);if(!!n.specified){a=!0;var o=new hd;A(n.models,function(s){o.add(s.componentIndex)}),t.set(i,o)}},this),a},e.prototype._fillAutoTargetAxisByOrient=function(t,a){var i=this.ecModel,n=!0;if(n){var o=a==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(n){var s=i.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===a}});l(s,"single")}function l(u,f){var h=u[0];if(!!h){var c=new hd;if(c.add(h.componentIndex),t.set(f,c),n=!1,f==="x"||f==="y"){var v=h.getReferringComponents("grid",Qt).models[0];v&&A(u,function(d){h.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",Qt).models[0]&&c.add(d.componentIndex)})}}}n&&A(hb,function(u){if(!!n){var f=i.findComponents({mainType:qa(u),filter:function(c){return c.get("type",!0)==="category"}});if(f[0]){var h=new hd;h.add(f[0].componentIndex),t.set(u,h),n=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(a){!t&&(t=a)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var a=this._rangePropMode,i=this.get("rangeMode");A([["start","startValue"],["end","endValue"]],function(n,o){var s=t[n[0]]!=null,l=t[n[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":i?a[o]=i[o]:s&&(a[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(a,i){t==null&&(t=this.ecModel.getComponent(qa(a),i))},this),t},e.prototype.eachTargetAxis=function(t,a){this._targetAxisInfoMap.each(function(i,n){A(i.indexList,function(o){t.call(a,n,o)})})},e.prototype.getAxisProxy=function(t,a){var i=this.getAxisModel(t,a);if(i)return i.__dzAxisProxy},e.prototype.getAxisModel=function(t,a){var i=this._targetAxisInfoMap.get(t);if(i&&i.indexMap[a])return this.ecModel.getComponent(qa(t),a)},e.prototype.setRawRange=function(t){var a=this.option,i=this.settledOption;A([["start","startValue"],["end","endValue"]],function(n){(t[n[0]]!=null||t[n[1]]!=null)&&(a[n[0]]=i[n[0]]=t[n[0]],a[n[1]]=i[n[1]]=t[n[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var a=this.option;A(["start","startValue","end","endValue"],function(i){a[i]=t[i]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,a){if(t==null&&a==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(t,a).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var a,i=this._targetAxisInfoMap.keys(),n=0;n<i.length;n++)for(var o=i[n],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;a||(a=u)}return a},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}(wt);function vb(r){var e={};return A(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}var Sl=V8,z8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(Sl),G8=z8,F8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i,n){this.dataZoomModel=t,this.ecModel=a,this.api=i},e.type="dataZoom",e}(Yt),um=F8,H8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(um),$8=H8,eo=A,cb=ur,W8=function(){function r(e,t,a,i){this._dimName=e,this._axisIndex=t,this.ecModel=i,this._dataZoomModel=a}return r.prototype.hostedBy=function(e){return this._dataZoomModel===e},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(N8(t)){var a=qa(this._dimName),i=t.getReferringComponents(a,Qt).models[0];i&&this._axisIndex===i.componentIndex&&e.push(t)}},this),e},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return et(this._minMaxSpan)},r.prototype.calculateDataWindow=function(e){var t=this._dataExtent,a=this.getAxisModel(),i=a.axis.scale,n=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;eo(["start","end"],function(c,v){var d=e[c],p=e[c+"Value"];n[v]==="percent"?(d==null&&(d=o[v]),p=i.parse(Rt(d,o,t))):(u=!0,p=p==null?t[v]:i.parse(p),d=Rt(p,t,o)),l[v]=p,s[v]=d}),cb(l),cb(s);var f=this._minMaxSpan;u?h(l,s,t,o,!1):h(s,l,o,t,!0);function h(c,v,d,p,g){var y=g?"Span":"ValueSpan";In(0,c,d,"all",f["min"+y],f["max"+y]);for(var m=0;m<2;m++)v[m]=Rt(c[m],d,p,!0),g&&(v[m]=i.parse(v[m]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=U8(this,this._dimName,t),this._updateMinMaxSpan();var a=this.calculateDataWindow(e.settledOption);this._valueWindow=a.valueWindow,this._percentWindow=a.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var a=this._dimName,i=this.getTargetSeriesModels(),n=e.get("filterMode"),o=this._valueWindow;if(n==="none")return;eo(i,function(l){var u=l.getData(),f=u.mapDimensionsAll(a);if(!!f.length){if(n==="weakFilter"){var h=u.getStore(),c=G(f,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var d,p,g,y=0;y<f.length;y++){var m=h.get(c[y],v),_=!isNaN(m),S=m<o[0],b=m>o[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(d=!0),b&&(p=!0)}return g&&d&&p})}else eo(f,function(v){if(n==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});eo(f,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,a=this._dataExtent;eo(["min","max"],function(i){var n=t.get(i+"Span"),o=t.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?n=Rt(a[0]+o,a,[0,100],!0):n!=null&&(o=Rt(n,[0,100],a,!0)-a[0]),e[i+"Span"]=n,e[i+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,a=this._valueWindow;if(!!t){var i=hT(a,[0,500]);i=Math.min(i,20);var n=e.axis.scale.rawExtentInfo;t[0]!==0&&n.setDeterminedMinMax("min",+a[0].toFixed(i)),t[1]!==100&&n.setDeterminedMinMax("max",+a[1].toFixed(i)),n.freeze()}},r}();function U8(r,e,t){var a=[1/0,-1/0];eo(t,function(o){pV(a,o.getData(),e)});var i=r.getAxisModel(),n=mD(i.axis.scale,i,a).calculate();return[n.min,n.max]}var Y8=W8,Z8={getTargetSeries:function(r){function e(i){r.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(o,s){var l=r.getComponent(qa(o),s);i(o,s,l,n)})})}e(function(i,n,o,s){o.__dzAxisProxy=null});var t=[];e(function(i,n,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Y8(i,n,s,r),t.push(o.__dzAxisProxy))});var a=K();return A(t,function(i){A(i.getTargetSeriesModels(),function(n){a.set(n.uid,n)})}),a},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(a,i){t.getAxisProxy(a,i).reset(t)}),t.eachTargetAxis(function(a,i){t.getAxisProxy(a,i).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var a=t.findRepresentativeAxisProxy();if(a){var i=a.getDataPercentWindow(),n=a.getDataValueWindow();t.setCalculatedRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]})}})}},X8=Z8;function q8(r){r.registerAction("dataZoom",function(e,t){var a=B8(t,e);A(a,function(i){i.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var db=!1;function fm(r){db||(db=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,X8),q8(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function K8(r){r.registerComponentModel(G8),r.registerComponentView($8),fm(r)}var or=function(){function r(){}return r}(),tL={};function ro(r,e){tL[r]=e}function eL(r){return tL[r]}var J8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;A(this.option.feature,function(a,i){var n=eL(i);n&&(n.getDefaultOption&&(n.defaultOption=n.getDefaultOption(t)),ft(a,n.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}(wt),Q8=J8;function j8(r,e,t){var a=e.getBoxLayoutParams(),i=e.get("padding"),n={width:t.getWidth(),height:t.getHeight()},o=ae(a,n,i);hn(e.get("orient"),r,e.get("itemGap"),o.width,o.height),zh(r,a,n,i)}function rL(r,e){var t=No(e.get("padding")),a=e.getItemStyle(["color","opacity"]);return a.fill=e.get("backgroundColor"),r=new bt({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:a,silent:!0,z2:-1}),r}var tU=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,i,n){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},f=this._features||(this._features={}),h=[];A(u,function(d,p){h.push(p)}),new Sa(this._featureNames||[],h).add(c).update(c).remove(ot(c,null)).execute(),this._featureNames=h;function c(d,p){var g=h[d],y=h[p],m=u[g],_=new Vt(m,t,t.ecModel),S;if(n&&n.newTitle!=null&&n.featureName===g&&(m.title=n.newTitle),g&&!y){if(eU(g))S={onclick:_.option.onclick,featureName:g};else{var b=eL(g);if(!b)return;S=new b}f[g]=S}else if(S=f[y],!S)return;S.uid=Oo("toolbox-feature"),S.model=_,S.ecModel=a,S.api=i;var x=S instanceof or;if(!g&&y){x&&S.dispose&&S.dispose(a,i);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(a,i);return}v(_,S,g),_.setIconStatus=function(w,T){var C=this.option,D=this.iconPaths;C.iconStatus=C.iconStatus||{},C.iconStatus[w]=T,D[w]&&(T==="emphasis"?ma:_a)(D[w])},S instanceof or&&S.render&&S.render(_,a,i,n)}function v(d,p,g){var y=d.getModel("iconStyle"),m=d.getModel(["emphasis","iconStyle"]),_=p instanceof or&&p.getIcons?p.getIcons():d.get("icon"),S=d.get("title")||{},b,x;U(_)?(b={},b[g]=_):b=_,U(S)?(x={},x[g]=S):x=S;var w=d.iconPaths={};A(b,function(T,C){var D=Pl(T,{},{x:-s/2,y:-s/2,width:s,height:s});D.setStyle(y.getItemStyle());var M=D.ensureState("emphasis");M.style=m.getItemStyle();var L=new Tt({style:{text:x[C],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});D.setTextContent(L),Eo({el:D,componentModel:t,itemName:C,formatterParamsExtra:{title:x[C]}}),D.__title=x[C],D.on("mouseover",function(){var I=m.getItemStyle(),P=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";L.setStyle({fill:m.get("textFill")||I.fill||I.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),D.setTextConfig({position:m.get("textPosition")||P}),L.ignore=!t.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",C])!=="emphasis"&&i.leaveEmphasis(this),L.hide()}),(d.get(["iconStatus",C])==="emphasis"?ma:_a)(D),o.add(D),D.on("click",Y(p.onclick,p,a,i,C)),w[C]=D})}j8(o,t,i),o.add(rL(o.getBoundingRect(),t)),l||o.eachChild(function(d){var p=d.__title,g=d.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=d.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!J(_)&&p){var S=_.style||(_.style={}),b=Al(p,Tt.makeFont(S)),x=d.x+o.x,w=d.y+o.y+s,T=!1;w+b.height>i.getHeight()&&(y.position="top",T=!0);var C=T?-5-b.height:s+10;x+b.width/2>i.getWidth()?(y.position=["100%",C],S.align="right"):x-b.width/2<0&&(y.position=[0,C],S.align="left")}})},e.prototype.updateView=function(t,a,i,n){A(this._features,function(o){o instanceof or&&o.updateView&&o.updateView(o.model,a,i,n)})},e.prototype.remove=function(t,a){A(this._features,function(i){i instanceof or&&i.remove&&i.remove(t,a)}),this.group.removeAll()},e.prototype.dispose=function(t,a){A(this._features,function(i){i instanceof or&&i.dispose&&i.dispose(t,a)})},e.type="toolbox",e}(Yt);function eU(r){return r.indexOf("my")===0}var rU=tU,aU=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){var i=this.model,n=i.get("name")||t.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=It.browser;if(J(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=n+"."+s,f.target="_blank",f.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var c=l.split(","),v=c[0].indexOf("base64")>-1,d=o?decodeURIComponent(c[1]):c[1];v&&(d=window.atob(d));var p=n+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),S.focus(),b.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var x=i.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',T=window.open();T.document.write(w),T.document.title=n}},e.getDefaultOption=function(t){var a={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"])};return a},e}(or),iU=aU,pb="__ec_magicType_stack__",nU=[["line","bar"],["stack"]],oU=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,a=t.get("icon"),i={};return A(t.get("type"),function(n){a[n]&&(i[n]=a[n])}),i},e.getDefaultOption=function(t){var a={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:{}};return a},e.prototype.onclick=function(t,a,i){var n=this.model,o=n.get(["seriesIndex",i]);if(!!gb[i]){var s={series:[]},l=function(h){var c=h.subType,v=h.id,d=gb[i](c,v,h,n);d&&(Q(d,h.option),s.series.push(d));var p=h.coordinateSystem;if(p&&p.type==="cartesian2d"&&(i==="line"||i==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=h.getReferringComponents(m,Qt).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var b=0;b<=S;b++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=i==="bar"}}};A(nU,function(h){ct(h,i)>=0&&A(h,function(c){n.setIconStatus(c,"normal")})}),n.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=i;i==="stack"&&(u=ft({stack:n.option.title.tiled,tiled:n.option.title.stack},n.option.title),n.get(["iconStatus",i])!=="emphasis"&&(f="tiled")),a.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},e}(or),gb={line:function(r,e,t,a){if(r==="bar")return ft({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,e,t,a){if(r==="line")return ft({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,e,t,a){var i=t.get("stack")===pb;if(r==="line"||r==="bar")return a.setIconStatus("stack",i?"normal":"emphasis"),ft({id:e,stack:i?"":pb},a.get(["option","stack"])||{},!0)}};jr({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var sU=oU,av=new Array(60).join("-"),wo="	";function lU(r){var e={},t=[],a=[];return r.eachRawSeries(function(i){var n=i.coordinateSystem;if(n&&(n.type==="cartesian2d"||n.type==="polar")){var o=n.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:n.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(i)}else t.push(i)}else t.push(i)}),{seriesGroupByCategoryAxis:e,other:t,meta:a}}function uU(r){var e=[];return A(r,function(t,a){var i=t.categoryAxis,n=t.valueAxis,o=n.dim,s=[" "].concat(G(t.series,function(v){return v.name})),l=[i.model.getCategories()];A(t.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(wo)],f=0;f<l[0].length;f++){for(var h=[],c=0;c<l.length;c++)h.push(l[c][f]);u.push(h.join(wo))}e.push(u.join(`
`))}),e.join(`

`+av+`

`)}function fU(r){return G(r,function(e){var t=e.getRawData(),a=[e.name],i=[];return t.each(t.dimensions,function(){for(var n=arguments.length,o=arguments[n-1],s=t.getName(o),l=0;l<n-1;l++)i[l]=arguments[l];a.push((s?s+wo:"")+i.join(wo))}),a.join(`
`)}).join(`

`+av+`

`)}function hU(r){var e=lU(r);return{value:Et([uU(e.seriesGroupByCategoryAxis),fU(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`

`+av+`

`),meta:e.meta}}function lh(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function vU(r){var e=r.slice(0,r.indexOf(`
`));if(e.indexOf(wo)>=0)return!0}var tg=new RegExp("["+wo+"]+","g");function cU(r){for(var e=r.split(/\n+/g),t=lh(e.shift()).split(tg),a=[],i=G(t,function(l){return{name:l,data:[]}}),n=0;n<e.length;n++){var o=lh(e[n]).split(tg);a.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[n]=o[s])}return{series:i,categories:a}}function dU(r){for(var e=r.split(/\n+/g),t=lh(e.shift()),a=[],i=0;i<e.length;i++){var n=lh(e[i]);if(!!n){var o=n.split(tg),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),a[i]={name:s,value:[]},l=a[i].value):l=a[i]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?a[i].value=l[0]:a[i]=l[0])}}return{name:t,data:a}}function pU(r,e){var t=r.split(new RegExp(`
*`+av+`
*`,"g")),a={series:[]};return A(t,function(i,n){if(vU(i)){var o=cU(i),s=e[n],l=s.axisDim+"Axis";s&&(a[l]=a[l]||[],a[l][s.axisIndex]={data:o.categories},a.series=a.series.concat(o.series))}else{var o=dU(i);a.series.push(o)}}),a}var gU=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){setTimeout(function(){a.dispatchAction({type:"hideTip"})});var i=a.getDom(),n=this.model;this._dom&&i.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=n.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=n.get("lang")||[];s.innerHTML=l[0]||n.get("title"),s.style.cssText="margin:10px 20px",s.style.color=n.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var h=n.get("optionToContent"),c=n.get("contentToOption"),v=hU(t);if(J(h)){var d=h(a.getOption());U(d)?u.innerHTML=d:qs(d)&&u.appendChild(d)}else{f.readOnly=n.get("readOnly");var p=f.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=n.get("textColor"),p.borderColor=n.get("textareaBorderColor"),p.backgroundColor=n.get("textareaColor"),f.value=v.value,u.appendChild(f)}var g=v.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");m+=";background-color:"+n.get("buttonColor"),m+=";color:"+n.get("buttonTextColor");var b=this;function x(){i.removeChild(o),b._dom=null}Od(_,"click",x),Od(S,"click",function(){if(c==null&&h!=null||c!=null&&h==null){x();return}var w;try{J(c)?w=c(u,a.getOption()):w=pU(f.value,g)}catch(T){throw x(),new Error("Data view format error "+T)}w&&a.dispatchAction({type:"changeDataView",newOption:w}),x()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!n.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},e.prototype.remove=function(t,a){this._dom&&a.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,a){this.remove(t,a)},e.getDefaultOption=function(t){var a={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"};return a},e}(or);function yU(r,e){return G(r,function(t,a){var i=e&&e[a];if(tt(i)&&!z(i)){var n=tt(t)&&!z(t);n||(t={value:t});var o=i.name!=null&&t.name==null;return t=Q(t,i),o&&delete t.name,t}else return t})}jr({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];A(r.newOption.series,function(a){var i=e.getSeriesByName(a.name)[0];if(!i)t.push(V({type:"scatter"},a));else{var n=i.get("data");t.push({name:a.name,data:yU(a.data,n)})}}),e.mergeOption(Q({series:t},r.newOption))});var mU=gU,aL=A,iL=Dt();function _U(r,e){var t=hm(r);aL(e,function(a,i){for(var n=t.length-1;n>=0;n--){var o=t[n];if(o[i])break}if(n<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();t[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),t.push(e)}function SU(r){var e=hm(r),t=e[e.length-1];e.length>1&&e.pop();var a={};return aL(t,function(i,n){for(var o=e.length-1;o>=0;o--)if(i=e[o][n],i){a[n]=i;break}}),a}function xU(r){iL(r).snapshots=null}function bU(r){return hm(r).length}function hm(r){var e=iL(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var wU=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){xU(t),a.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var a={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"])};return a},e}(or);jr({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var TU=wU,CU=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],AU=function(){function r(e,t,a){var i=this;this._targetInfoList=[];var n=yb(t,e);A(DU,function(o,s){(!a||!a.include||ct(a.include,s)>=0)&&o(n,i._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(a,i,n){if((a.coordRanges||(a.coordRanges=[])).push(i),!a.coordRange){a.coordRange=i;var o=vd[a.brushType](0,n,i);a.__rangeOffset={offset:xb[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,a){A(e,function(i){var n=this.findTargetInfo(i,t);n&&n!==!0&&A(n.coordSyses,function(o){var s=vd[i.brushType](1,o,i.range,!0);a(i,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){A(e,function(a){var i=this.findTargetInfo(a,t);if(a.range=a.range||[],i&&i!==!0){a.panelId=i.panelId;var n=vd[a.brushType](0,i.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?xb[a.brushType](n.values,o.offset,MU(n.xyMinMax,o.xyMinMax)):n.values}},this)},r.prototype.makePanelOpts=function(e,t){return G(this._targetInfoList,function(a){var i=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:t?t(a):null,clipPath:h2(i),isTargetByCursor:c2(i,e,a.coordSysModel),getLinearBrushOtherExtent:v2(i)}})},r.prototype.controlSeries=function(e,t,a){var i=this.findTargetInfo(e,a);return i===!0||i&&ct(i.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var a=this._targetInfoList,i=yb(t,e),n=0;n<a.length;n++){var o=a[n],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<mb.length;l++)if(mb[l](i,o))return o}return!0},r}();function eg(r){return r[0]>r[1]&&r.reverse(),r}function yb(r,e){return Bs(r,e,{includeMainTypes:CU})}var DU={grid:function(r,e){var t=r.xAxisModels,a=r.yAxisModels,i=r.gridModels,n=K(),o={},s={};!t&&!a&&!i||(A(t,function(l){var u=l.axis.grid.model;n.set(u.id,u),o[u.id]=!0}),A(a,function(l){var u=l.axis.grid.model;n.set(u.id,u),s[u.id]=!0}),A(i,function(l){n.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),n.each(function(l){var u=l.coordinateSystem,f=[];A(u.getCartesians(),function(h,c){(ct(t,h.getAxis("x").model)>=0||ct(a,h.getAxis("y").model)>=0)&&f.push(h)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:_b.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){A(r.geoModels,function(t){var a=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:a,coordSyses:[a],getPanelRect:_b.geo})})}},mb=[function(r,e){var t=r.xAxisModel,a=r.yAxisModel,i=r.gridModel;return!i&&t&&(i=t.axis.grid.model),!i&&a&&(i=a.axis.grid.model),i&&i===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],_b={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(fn(r)),e}},vd={lineX:ot(Sb,0),lineY:ot(Sb,1),rect:function(r,e,t,a){var i=r?e.pointToData([t[0][0],t[1][0]],a):e.dataToPoint([t[0][0],t[1][0]],a),n=r?e.pointToData([t[0][1],t[1][1]],a):e.dataToPoint([t[0][1],t[1][1]],a),o=[eg([i[0],n[0]]),eg([i[1],n[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,a){var i=[[1/0,-1/0],[1/0,-1/0]],n=G(t,function(o){var s=r?e.pointToData(o,a):e.dataToPoint(o,a);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:n,xyMinMax:i}}};function Sb(r,e,t,a){var i=t.getAxis(["x","y"][r]),n=eg(G([0,1],function(s){return e?i.coordToData(i.toLocalCoord(a[s]),!0):i.toGlobalCoord(i.dataToCoord(a[s]))})),o=[];return o[r]=n,o[1-r]=[NaN,NaN],{values:n,xyMinMax:o}}var xb={lineX:ot(bb,0),lineY:ot(bb,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return G(r,function(a,i){return[a[0]-t[0]*e[i][0],a[1]-t[1]*e[i][1]]})}};function bb(r,e,t,a){return[e[0]-a[r]*t[0],e[1]-a[r]*t[1]]}function MU(r,e){var t=wb(r),a=wb(e),i=[t[0]/a[0],t[1]/a[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function wb(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var vm=AU,rg=A,LU=jP("toolbox-dataZoom_"),IU=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,i,n){this._brushController||(this._brushController=new Yy(i.getZr()),this._brushController.on("brush",Y(this._onBrush,this)).mount()),EU(t,a,this,n,i),RU(t,a)},e.prototype.onclick=function(t,a,i){PU[i].call(this)},e.prototype.remove=function(t,a){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,a){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var a=t.areas;if(!t.isEnd||!a.length)return;var i={},n=this.ecModel;this._brushController.updateCovers([]);var o=new vm(cm(this.model),n,{include:["grid"]});o.matchOutputRanges(a,n,function(u,f,h){if(h.type==="cartesian2d"){var c=u.brushType;c==="rect"?(s("x",h,f[0]),s("y",h,f[1])):s({lineX:"x",lineY:"y"}[c],h,f)}}),_U(n,i),this._dispatchZoomAction(i);function s(u,f,h){var c=f.getAxis(u),v=c.model,d=l(u,v,n),p=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(h=In(0,h.slice(),c.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(i[d.id]={dataZoomId:d.id,startValue:h[0],endValue:h[1]})}function l(u,f,h){var c;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,f.componentIndex);d&&(c=v)}),c}},e.prototype._dispatchZoomAction=function(t){var a=[];rg(t,function(i,n){a.push(et(i))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},e.getDefaultOption=function(t){var a={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)"}};return a},e}(or),PU={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(SU(this.ecModel))}};function cm(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function RU(r,e){r.setIconStatus("back",bU(e)>1?"emphasis":"normal")}function EU(r,e,t,a,i){var n=t._isZoomActive;a&&a.type==="takeGlobalCursor"&&(n=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),t._isZoomActive=n,r.setIconStatus("zoom",n?"emphasis":"normal");var o=new vm(cm(r),e,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(n&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}Ek("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var a=e.getModel(t),i=[],n=cm(a),o=Bs(r,n);rg(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),rg(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var h=l.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:LU+u+h};c[f]=h,i.push(c)}return i});var kU=IU;function OU(r){r.registerComponentModel(Q8),r.registerComponentView(rU),ro("saveAsImage",iU),ro("magicType",sU),ro("dataView",mU),ro("dataZoom",kU),ro("restore",TU),dt(K8)}var NU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return 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}(wt),BU=NU;function nL(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function oL(r){if(!!It.domSupported){for(var e=document.documentElement.style,t=0,a=r.length;t<a;t++)if(r[t]in e)return r[t]}}var sL=oL(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),VU=oL(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function lL(r,e){if(!r)return e;e=OC(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function zU(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?e?t[e]:t:null}var GU=lL(VU,"transition"),dm=lL(sL,"transform"),FU="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(It.transform3dSupported?"will-change:transform;":"");function HU(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function $U(r,e,t){if(!U(t)||t==="inside")return"";var a=r.get("backgroundColor"),i=r.get("borderWidth");e=Sn(e);var n=HU(t),o=Math.max(Math.round(i)*1.5,6),s="",l=dm+":",u;ct(["left","right"],n)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=n==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=n==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+i,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*i)/2+Math.SQRT2*i-(c-h)/2)*100)/100;s+=";"+n+":-"+v+"px";var d=e+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+a+";"];return'<div style="'+p.join("")+'"></div>'}function WU(r,e){var t="cubic-bezier(0.23,1,0.32,1)",a=" "+r/2+"s "+t,i="opacity"+a+",visibility"+a;return e||(a=" "+r+"s "+t,i+=It.transformSupported?","+dm+a:",left"+a+",top"+a),GU+":"+i}function Tb(r,e,t){var a=r.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!It.transformSupported)return t?"top:"+i+";left:"+a+";":[["top",i],["left",a]];var n=It.transform3dSupported,o="translate"+(n?"3d":"")+"("+a+","+i+(n?",0":"")+")";return t?"top:0;left:0;"+dm+":"+o+";":[["top",0],["left",0],[sL,o]]}function UU(r){var e=[],t=r.get("fontSize"),a=r.getTextColor();a&&e.push("color:"+a),e.push("font:"+r.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var i=r.get("textShadowColor"),n=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return i&&n&&e.push("text-shadow:"+o+"px "+s+"px "+n+"px "+i),A(["decoration","align"],function(l){var u=r.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function YU(r,e,t){var a=[],i=r.get("transitionDuration"),n=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=yA(r,"html"),c=l+"px "+u+"px "+o+"px "+s;return a.push("box-shadow:"+c),e&&i&&a.push(WU(i,t)),n&&a.push("background-color:"+n),A(["width","color","radius"],function(v){var d="border-"+v,p=OC(d),g=r.get(p);g!=null&&a.push(d+":"+g+(v==="color"?"":"px"))}),a.push(UU(f)),h!=null&&a.push("padding:"+No(h).join("px ")+"px"),a.join(";")+";"}function Cb(r,e,t,a,i){var n=e&&e.painter;if(t){var o=n&&n.getViewportRoot();o&&bI(r,o,document.body,a,i)}else{r[0]=a,r[1]=i;var s=n&&n.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var ZU=function(){function r(e,t,a){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,It.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=t.getZr(),o=this._appendToBody=a&&a.appendToBody;Cb(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(i):e.appendChild(i),this._container=e;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();er(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){var t=this._container,a=zU(t,"position"),i=t.style;i.position!=="absolute"&&a!=="absolute"&&(i.position="relative");var n=e.get("alwaysShowContent");n&&this._moveIfResized(),this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,i=a.style,n=this._styleCoord;a.innerHTML?i.cssText=FU+YU(e,!this._firstShow,this._longHide)+Tb(n[0],n[1],!0)+("border-color:"+Sn(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,a,i,n){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(U(n)&&a.get("trigger")==="item"&&!nL(a)&&(s=$U(a,i,n)),U(e))o.innerHTML=e+s;else if(e){o.innerHTML="",z(e)||(e=[e]);for(var l=0;l<e.length;l++)qs(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},r.prototype.moveTo=function(e,t){var a=this._styleCoord;if(Cb(a,this._zr,this._appendToBody,e,t),a[0]!=null&&a[1]!=null){var i=this.el.style,n=Tb(a[0],a[1]);A(n,function(o){i[o[0]]=o[1]})}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",It.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Y(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},r}(),XU=ZU,qU=function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=e.getZr(),Db(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return r.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized()},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(e,t,a,i,n){var o=this;tt(e)&&Pt(""),this.el&&this._zr.remove(this.el);var s=a.getModel("textStyle");this.el=new Tt({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:a.get(["textStyle","color"]),padding:yA(a,"richText"),verticalAlign:"top",align:"left"},z:a.get("z")}),A(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=a.get(u)}),A(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),a=Ab(e.style);return[t.width+a.left+a.right,t.height+a.top+a.bottom]},r.prototype.moveTo=function(e,t){var a=this.el;if(a){var i=this._styleCoord;Db(i,this._zr,e,t),e=i[0],t=i[1];var n=a.style,o=Ba(n.borderWidth||0),s=Ab(n);a.x=e+o+s.left,a.y=t+o+s.top,a.markRedraw()}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Y(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function Ba(r){return Math.max(0,r)}function Ab(r){var e=Ba(r.shadowBlur||0),t=Ba(r.shadowOffsetX||0),a=Ba(r.shadowOffsetY||0);return{left:Ba(e-t),right:Ba(e+t),top:Ba(e-a),bottom:Ba(e+a)}}function Db(r,e,t,a){r[0]=t,r[1]=a,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var KU=qU,JU=new bt({shape:{x:-1,y:-1,width:2,height:2}}),QU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){if(!(It.node||!a.getDom())){var i=t.getComponent("tooltip"),n=this._renderMode=oR(i.get("renderMode"));this._tooltipContent=n==="richText"?new KU(a):new XU(a.getDom(),a,{appendToBody:i.get("appendToBody",!0)})}},e.prototype.render=function(t,a,i){if(!(It.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=a,this._api=i,this._alwaysShowContent=t.get("alwaysShowContent");var n=this._tooltipContent;n.update(t),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?Fo(this,"_updatePosition",50,"fixRate"):ll(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,a=t.get("triggerOn");U2("itemTooltip",this._api,Y(function(i,n,o){a!=="none"&&(a.indexOf(i)>=0?this._tryShow(n,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,a=this._ecModel,i=this._api,n=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&n!=="none"&&n!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(t,a,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,a,i,n){if(!(n.from===this.uid||It.node||!i.getDom())){var o=Mb(n,i);this._ticket="";var s=n.dataByCoordSys,l=r7(n,a,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:n.position,positionDefault:"bottom"},o)}else if(n.tooltip&&n.x!=null&&n.y!=null){var f=JU;f.x=n.x,f.y=n.y,f.update(),it(f).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:f},o)}else if(s)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:s,tooltipOption:n.tooltipOption},o);else if(n.seriesIndex!=null){if(this._manuallyAxisShowTip(t,a,i,n))return;var h=Y2(n,a),c=h.point[0],v=h.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:h.el,position:n.position,positionDefault:"bottom"},o)}else n.x!=null&&n.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},o))}},e.prototype.manuallyHideTip=function(t,a,i,n){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,n.from!==this.uid&&this._hide(Mb(n,i))},e.prototype._manuallyAxisShowTip=function(t,a,i,n){var o=n.seriesIndex,s=n.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(!!u){var f=u.getData(),h=ps([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:n.position}),!0}}},e.prototype._tryShow=function(t,a){var i=t.target,n=this._tooltipModel;if(!!n){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(i){this._lastDataByCoordSys=null;var s,l;en(i,function(u){if(it(u).dataIndex!=null)return s=u,!0;if(it(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(t,s,a):l?this._showComponentItemTooltip(t,l,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},e.prototype._showOrMove=function(t,a){var i=t.get("showDelay");a=Y(a,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(a,i):a()},e.prototype._showAxisTooltip=function(t,a){var i=this._ecModel,n=this._tooltipModel,o=[a.offsetX,a.offsetY],s=ps([a.tooltipOption],n),l=this._renderMode,u=[],f=oe("section",{blocks:[],noHeader:!0}),h=[],c=new jv;A(t,function(m){A(m.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=H2(b,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),w=oe("section",{header:x,noHeader:!br(x),sortBlocks:!0,blocks:[]});f.blocks.push(w),A(_.seriesDataIndices,function(T){var C=i.getSeriesByIndex(T.seriesIndex),D=T.dataIndexInside,M=C.getDataParams(D);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=gy(S.axis,{value:b}),M.axisValueLabel=x,M.marker=c.makeTooltipMarker("item",Sn(M.color),l);var L=v_(C.formatTooltip(D,!0,null)),I=L.frag;if(I){var P=ps([C],n).get("valueFormatter");w.blocks.push(P?V({valueFormatter:P},I):I)}L.text&&h.push(L.text),u.push(M)}})}})}),f.blocks.reverse(),h.reverse();var v=a.position,d=s.get("order"),p=m_(f,c,l,d,i.get("useUTC"),s.get("textStyle"));p&&h.unshift(p);var g=l==="richText"?`

`:"<br/>",y=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],v,null,c)})},e.prototype._showSeriesItemTooltip=function(t,a,i){var n=this._ecModel,o=it(a),s=o.seriesIndex,l=n.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,c=u.getData(h),v=this._renderMode,d=t.positionDefault,p=ps([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,h),m=new jv;y.marker=m.makeTooltipMarker("item",Sn(y.color),v);var _=v_(u.formatTooltip(f,!1,h)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,w=x?m_(b?V({valueFormatter:b},x):x,m,v,S,n.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,w,y,T,t.offsetX,t.offsetY,t.position,t.target,m)}),i({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,a,i){var n=it(a),o=n.tooltipConfig,s=o.option||{};if(U(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(n.componentMainType,n.componentIndex);f&&u.push(f),u.push({formatter:s.content});var h=t.positionDefault,c=ps(u,this._tooltipModel,h?{position:h}:null),v=c.get("content"),d=Math.random()+"",p=new jv;this._showOrMove(c,function(){var g=et(c.get("formatterParams")||{});this._showTooltipContent(c,v,g,d,t.offsetX,t.offsetY,t.position,a,p)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,a,i,n,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var c=t.get("formatter");l=l||t.get("position");var v=a,d=this._getNearestPoint([o,s],i,t.get("trigger"),t.get("borderColor")),p=d.color;if(c)if(U(c)){var g=t.ecModel.get("useUTC"),y=z(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=c,m&&(v=kh(y.axisValue,v,g)),v=NC(v,i,!0)}else if(J(c)){var _=Y(function(S,b){S===this._ticket&&(h.setContent(b,f,t,p,l),this._updatePosition(t,l,o,s,h,i,u))},this);this._ticket=n,v=c(i,n,_)}else v=c;h.setContent(v,f,t,p,l),h.show(t,p),this._updatePosition(t,l,o,s,h,i,u)}},e.prototype._getNearestPoint=function(t,a,i,n){if(i==="axis"||z(a))return{color:n||(this._renderMode==="html"?"#fff":"none")};if(!z(a))return{color:n||a.color||a.borderColor}},e.prototype._updatePosition=function(t,a,i,n,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||t.get("position");var h=o.getSize(),c=t.get("align"),v=t.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),J(a)&&(a=a([i,n],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),z(a))i=H(a[0],u),n=H(a[1],f);else if(tt(a)){var p=a;p.width=h[0],p.height=h[1];var g=ae(p,{width:u,height:f});i=g.x,n=g.y,c=null,v=null}else if(U(a)&&l){var y=e7(a,d,h,t.get("borderWidth"));i=y[0],n=y[1]}else{var y=jU(i,n,o,u,f,c?null:20,v?null:20);i=y[0],n=y[1]}if(c&&(i-=Lb(c)?h[0]/2:c==="right"?h[0]:0),v&&(n-=Lb(v)?h[1]/2:v==="bottom"?h[1]:0),nL(t)){var y=t7(i,n,o,u,f);i=y[0],n=y[1]}o.moveTo(i,n)},e.prototype._updateContentNotChangedOnAxis=function(t,a){var i=this._lastDataByCoordSys,n=this._cbParamsList,o=!!i&&i.length===t.length;return o&&A(i,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&A(u,function(c,v){var d=h[v]||{},p=c.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&p.length===g.length,o&&A(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),n&&A(c.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],S=n[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=a,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,a){It.node||!a.getDom()||(ll(this,"_updatePosition"),this._tooltipContent.dispose(),Jp("itemTooltip",a))},e.type="tooltip",e}(Yt);function ps(r,e,t){var a=e.ecModel,i;t?(i=new Vt(t,a,a),i=new Vt(e.option,i,a)):i=e;for(var n=r.length-1;n>=0;n--){var o=r[n];o&&(o instanceof Vt&&(o=o.get("tooltip",!0)),U(o)&&(o={formatter:o}),o&&(i=new Vt(o,i,a)))}return i}function Mb(r,e){return r.dispatchAction||Y(e.dispatchAction,e)}function jU(r,e,t,a,i,n,o){var s=t.getSize(),l=s[0],u=s[1];return n!=null&&(r+l+n+2>a?r-=l+n:r+=n),o!=null&&(e+u+o>i?e-=u+o:e+=o),[r,e]}function t7(r,e,t,a,i){var n=t.getSize(),o=n[0],s=n[1];return r=Math.min(r+o,a)-o,e=Math.min(e+s,i)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function e7(r,e,t,a){var i=t[0],n=t[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-i/2,l=e.y+f/2-n/2;break;case"top":s=e.x+u/2-i/2,l=e.y-n-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+f+o;break;case"left":s=e.x-i-o,l=e.y+f/2-n/2;break;case"right":s=e.x+u+o,l=e.y+f/2-n/2}return[s,l]}function Lb(r){return r==="center"||r==="middle"}function r7(r,e,t){var a=Mg(r).queryOptionMap,i=a.keys()[0];if(!(!i||i==="series")){var n=Dl(e,i,a.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=n.models[0];if(!!o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=it(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}var a7=QU;function i7(r){dt(Zl),r.registerComponentModel(BU),r.registerComponentView(a7),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},jt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},jt)}var n7=["rect","polygon","keep","clear"];function o7(r,e){var t=kt(r?r.brush:[]);if(!!t.length){var a=[];A(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var i=r&&r.toolbox;z(i)&&(i=i[0]),i||(i={feature:{}},r.toolbox=[i]);var n=i.feature||(i.feature={}),o=n.brush||(n.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),s7(s),e&&!s.length&&s.push.apply(s,n7)}}function s7(r){var e={};A(r,function(t){e[t]=1}),r.length=0,A(e,function(t,a){r.push(a)})}var Ib=A;function Pb(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function ag(r,e,t){var a={};return Ib(e,function(n){var o=a[n]=i();Ib(r[n],function(s,l){if(!!de.isValidType(l)){var u={type:l,visual:s};t&&t(u,n),o[l]=new de(u),l==="opacity"&&(u=et(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new de(u))}})}),a;function i(){var n=function(){};n.prototype.__hidden=n.prototype;var o=new n;return o}}function uL(r,e,t){var a;A(t,function(i){e.hasOwnProperty(i)&&Pb(e[i])&&(a=!0)}),a&&A(t,function(i){e.hasOwnProperty(i)&&Pb(e[i])?r[i]=et(e[i]):delete r[i]})}function l7(r,e,t,a,i,n){var o={};A(r,function(h){var c=de.prepareVisualTypes(e[h]);o[h]=c});var s;function l(h){return ny(t,s,h)}function u(h,c){DA(t,s,h,c)}n==null?t.each(f):t.each([n],f);function f(h,c){s=n==null?h:c;var v=t.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var d=a.call(i,h),p=e[d],g=o[d],y=0,m=g.length;y<m;y++){var _=g[y];p[_]&&p[_].applyVisual(h,l,u)}}}function u7(r,e,t,a){var i={};return A(r,function(n){var o=de.prepareVisualTypes(e[n]);i[n]=o}),{progress:function(o,s){var l;a!=null&&(l=s.getDimensionIndex(a));function u(b){return ny(s,h,b)}function f(b,x){DA(s,h,b,x)}for(var h,c=s.getStore();(h=o.next())!=null;){var v=s.getRawDataItem(h);if(!(v&&v.visualMap===!1))for(var d=a!=null?c.get(l,h):h,p=t(d),g=e[p],y=i[p],m=0,_=y.length;m<_;m++){var S=y[m];g[S]&&g[S].applyVisual(d,u,f)}}}}}function f7(r){var e=r.brushType,t={point:function(a){return Rb[e].point(a,t,r)},rect:function(a){return Rb[e].rect(a,t,r)}};return t}var Rb={lineX:Eb(0),lineY:Eb(1),rect:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])},rect:function(r,e,t){return r&&t.boundingRect.intersect(r)}},polygon:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])&&Zi(t.range,r[0],r[1])},rect:function(r,e,t){var a=t.range;if(!r||a.length<=1)return!1;var i=r.x,n=r.y,o=r.width,s=r.height,l=a[0];if(Zi(a,i,n)||Zi(a,i+o,n)||Zi(a,i,n+s)||Zi(a,i+o,n+s)||ht.create(r).contain(l[0],l[1])||Ts(i,n,i+o,n,a)||Ts(i,n,i,n+s,a)||Ts(i+o,n,i+o,n+s,a)||Ts(i,n+s,i+o,n+s,a))return!0}}};function Eb(r){var e=["x","y"],t=["width","height"];return{point:function(a,i,n){if(a){var o=n.range,s=a[r];return gs(s,o)}},rect:function(a,i,n){if(a){var o=n.range,s=[a[e[r]],a[e[r]]+a[t[r]]];return s[1]<s[0]&&s.reverse(),gs(s[0],o)||gs(s[1],o)||gs(o[0],s)||gs(o[1],s)}}}}function gs(r,e){return e[0]<=r&&r<=e[1]}var kb=["inBrush","outOfBrush"],cd="__ecBrushSelect",ig="__ecInBrushSelectEvent";function fL(r){r.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new vm(e.option,r);t.setInputRanges(e.areas,r)})}function h7(r,e,t){var a=[],i,n;r.eachComponent({mainType:"brush"},function(o){t&&t.type==="takeGlobalCursor"&&o.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),fL(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:et(o.areas),selected:[]};a.push(l);var u=o.option,f=u.brushLink,h=[],c=[],v=[],d=!1;s||(i=u.throttleType,n=u.throttleDelay);var p=G(o.areas,function(b){var x=p7[b.brushType],w=Q({boundingRect:x?x(b):void 0},b);return w.selectors=f7(w),w}),g=ag(o.option,kb,function(b){b.mappingMethod="fixed"});z(f)&&A(f,function(b){h[b]=1});function y(b){return f==="all"||!!h[b]}function m(b){return!!b.length}r.eachSeries(function(b,x){var w=v[x]=[];b.subType==="parallel"?_(b,x):S(b,x,w)});function _(b,x){var w=b.coordinateSystem;d=d||w.hasAxisBrushed(),y(x)&&w.eachActiveState(b.getData(),function(T,C){T==="active"&&(c[C]=1)})}function S(b,x,w){if(!(!b.brushSelector||d7(o,x))&&(A(p,function(C){o.brushTargetManager.controlSeries(C,b,r)&&w.push(C),d=d||m(w)}),y(x)&&m(w))){var T=b.getData();T.each(function(C){Ob(b,w,T,C)&&(c[C]=1)})}}r.eachSeries(function(b,x){var w={seriesId:b.id,seriesIndex:x,seriesName:b.name,dataIndex:[]};l.selected.push(w);var T=v[x],C=b.getData(),D=y(x)?function(M){return c[M]?(w.dataIndex.push(C.getRawIndex(M)),"inBrush"):"outOfBrush"}:function(M){return Ob(b,T,C,M)?(w.dataIndex.push(C.getRawIndex(M)),"inBrush"):"outOfBrush"};(y(x)?d:m(T))&&l7(kb,g,C,D)})}),v7(e,i,n,a,t)}function v7(r,e,t,a,i){if(!!i){var n=r.getZr();if(!n[ig]){n[cd]||(n[cd]=c7);var o=Fo(n,cd,t,e);o(r,a)}}}function c7(r,e){if(!r.isDisposed()){var t=r.getZr();t[ig]=!0,r.dispatchAction({type:"brushSelect",batch:e}),t[ig]=!1}}function Ob(r,e,t,a){for(var i=0,n=e.length;i<n;i++){var o=e[i];if(r.brushSelector(a,t,o.selectors,o))return!0}}function d7(r,e){var t=r.option.seriesIndex;return t!=null&&t!=="all"&&(z(t)?ct(t,e)<0:e!==t)}var p7={rect:function(r){return Nb(r.range)},polygon:function(r){for(var e,t=r.range,a=0,i=t.length;a<i;a++){e=e||[[1/0,-1/0],[1/0,-1/0]];var n=t[a];n[0]<e[0][0]&&(e[0][0]=n[0]),n[0]>e[0][1]&&(e[0][1]=n[0]),n[1]<e[1][0]&&(e[1][0]=n[1]),n[1]>e[1][1]&&(e[1][1]=n[1])}return e&&Nb(e)}};function Nb(r){return new ht(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var g7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.ecModel=t,this.api=a,this.model,(this._brushController=new Yy(a.getZr())).on("brush",Y(this._onBrush,this)).mount()},e.prototype.render=function(t,a,i,n){this.model=t,this._updateController(t,a,i,n)},e.prototype.updateTransform=function(t,a,i,n){fL(a),this._updateController(t,a,i,n)},e.prototype.updateVisual=function(t,a,i,n){this.updateTransform(t,a,i,n)},e.prototype.updateView=function(t,a,i,n){this._updateController(t,a,i,n)},e.prototype._updateController=function(t,a,i,n){(!n||n.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(i)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var a=this.model.id,i=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:et(i),$from:a}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:et(i),$from:a})},e.type="brush",e}(Yt),y7=g7,m7="#ddd",_7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,a){var i=this.option;!a&&uL(i,t,["inBrush","outOfBrush"]);var n=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:m7},n.hasOwnProperty("liftZ")||(n.liftZ=5)},e.prototype.setAreas=function(t){!t||(this.areas=G(t,function(a){return Bb(this.option,a)},this))},e.prototype.setBrushOption=function(t){this.brushOption=Bb(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}(wt);function Bb(r,e){return ft({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Vt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var S7=_7,x7=["rect","polygon","lineX","lineY","keep","clear"],b7=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,i){var n,o,s;a.eachComponent({mainType:"brush"},function(l){n=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=n,this._brushMode=o,A(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===n)?"emphasis":"normal")})},e.prototype.updateView=function(t,a,i){this.render(t,a,i)},e.prototype.getIcons=function(){var t=this.model,a=t.get("icon",!0),i={};return A(t.get("type",!0),function(n){a[n]&&(i[n]=a[n])}),i},e.prototype.onclick=function(t,a,i){var n=this._brushType,o=this._brushMode;i==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?n:n===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var a={show:!0,type:x7.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"])};return a},e}(or),w7=b7;function T7(r){r.registerComponentView(y7),r.registerComponentModel(S7),r.registerPreprocessor(o7),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,h7),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(a){a.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},jt),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},jt),ro("brush",w7)}var C7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return 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}(wt),A7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){if(this.group.removeAll(),!!t.get("show")){var n=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=ut(t.get("textBaseline"),t.get("textVerticalAlign")),f=new Tt({style:Bt(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),c=t.get("subtext"),v=new Tt({style:Bt(s,{text:c,fill:s.getTextColor(),y:h.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),g=t.get("triggerEvent",!0);f.silent=!d&&!g,v.silent=!p&&!g,d&&f.on("click",function(){Bf(d,"_"+t.get("target"))}),p&&v.on("click",function(){Bf(p,"_"+t.get("subtarget"))}),it(f).eventData=it(v).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,n.add(f),c&&n.add(v);var y=n.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=ae(m,{width:i.getWidth(),height:i.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),n.x=_.x,n.y=_.y,n.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),v.setStyle(S),y=n.getBoundingRect();var b=_.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var w=new bt({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});n.add(w)}},e.type="title",e}(Yt);function D7(r){r.registerComponentModel(C7),r.registerComponentView(A7)}var M7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,a,i){this.mergeDefaultAndTheme(t,i),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var a=this._data.count();this.option.loop?t=(t%a+a)%a:(t>=a&&(t=a-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=this.option,a=t.data||[],i=t.axisType,n=this._names=[],o;i==="category"?(o=[],A(a,function(u,f){var h=re(Io(u),""),c;tt(u)?(c=et(u),c.value=f):c=f,o.push(c),n.push(h)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new Me([{name:"value",type:s}],this);l.initData(o,n)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")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}(wt),Vb=M7,hL=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=fi(Vb.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}(Vb);ee(hL,ty.prototype);var L7=hL,I7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(Yt),P7=I7,R7=function(r){k(e,r);function e(t,a,i,n){var o=r.call(this,t,a,i)||this;return o.type=n||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(Lr),E7=R7,dd=Math.PI,zb=Dt(),k7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.api=a},e.prototype.render=function(t,a,i){if(this.model=t,this.api=i,this.ecModel=a,this.group.removeAll(),t.get("show",!0)){var n=this._layout(t,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(n,t);t.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return oe("nameValue",{noName:!0,value:f})},A(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](n,o,l,t)},this),this._renderAxisLabel(n,s,l,t),this._position(n,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,a){var i=t.get(["label","position"]),n=t.get("orient"),o=N7(t,a),s;i==null||i==="auto"?s=n==="horizontal"?o.y+o.height/2<a.getHeight()/2?"-":"+":o.x+o.width/2<a.getWidth()/2?"+":"-":U(i)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[n][i]:s=i;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:dd/2},h=n==="vertical"?o.height:o.width,c=t.getModel("controlStyle"),v=c.get("show",!0),d=v?c.get("itemSize"):0,p=v?c.get("itemGap"):0,g=d+p,y=t.get(["label","rotate"])||0;y=y*dd/180;var m,_,S,b=c.get("position",!0),x=v&&c.get("showPlayBtn",!0),w=v&&c.get("showPrevBtn",!0),T=v&&c.get("showNextBtn",!0),C=0,D=h;b==="left"||b==="bottom"?(x&&(m=[0,0],C+=g),w&&(_=[C,0],C+=g),T&&(S=[D-d,0],D-=g)):(x&&(m=[D-d,0],D-=g),w&&(_=[0,0],C+=g),T&&(S=[D-d,0],D-=g));var M=[C,D];return t.get("inverse")&&M.reverse(),{viewRect:o,mainLength:h,orient:n,rotation:f[n],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[n],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[n],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:M,controlSize:d,controlGap:p}},e.prototype._position=function(t,a){var i=this._mainGroup,n=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=hr(),l=o.x,u=o.y+o.height;Zr(s,s,[-l,-u]),Cn(s,s,-dd/2),Zr(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),h=m(i.getBoundingRect()),c=m(n.getBoundingRect()),v=[i.x,i.y],d=[n.x,n.y];d[0]=v[0]=f[0][0];var p=t.labelPosOpt;if(p==null||U(p)){var g=p==="+"?0:1;_(v,h,f,1,g),_(d,c,f,1,1-g)}else{var g=p>=0?0:1;_(v,h,f,1,g),d[1]=v[1]+p}i.setPosition(v),n.setPosition(d),i.rotation=n.rotation=t.rotation,y(i),y(n);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,b,x,w,T){S[w]+=x[w][T]-b[w][T]}},e.prototype._createAxis=function(t,a){var i=a.getData(),n=a.get("axisType"),o=O7(a,n);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new E7("value",o,t.axisExtent,n);return l.model=a,l},e.prototype._createGroup=function(t){var a=this[t]=new at;return this.group.add(a),a},e.prototype._renderAxisLine=function(t,a,i,n){var o=i.getExtent();if(!!n.get(["lineStyle","show"])){var s=new fe({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:V({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new fe({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Q({lineCap:"round",lineWidth:s.style.lineWidth},n.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},e.prototype._renderAxisTick=function(t,a,i,n){var o=this,s=n.getData(),l=i.scale.getTicks();this._tickSymbols=[],A(l,function(u){var f=i.dataToCoord(u.value),h=s.getItemModel(u.value),c=h.getModel("itemStyle"),v=h.getModel(["emphasis","itemStyle"]),d=h.getModel(["progress","itemStyle"]),p={x:f,y:0,onclick:Y(o._changeTimeline,o,u.value)},g=Gb(h,c,a,p);g.ensureState("emphasis").style=v.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),un(g);var y=it(g);h.get("tooltip")?(y.dataIndex=u.value,y.dataModel=n):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,a,i,n){var o=this,s=i.getLabelModel();if(!!s.get("show")){var l=n.getData(),u=i.getViewLabels();this._tickLabels=[],A(u,function(f){var h=f.tickValue,c=l.getItemModel(h),v=c.getModel("label"),d=c.getModel(["emphasis","label"]),p=c.getModel(["progress","label"]),g=i.dataToCoord(f.tickValue),y=new Tt({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:Y(o._changeTimeline,o,h),silent:!1,style:Bt(v,{text:f.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Bt(d),y.ensureState("progress").style=Bt(p),a.add(y),un(y),zb(y).dataIndex=h,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,a,i,n){var o=t.controlSize,s=t.rotation,l=n.getModel("controlStyle").getItemStyle(),u=n.getModel(["emphasis","controlStyle"]).getItemStyle(),f=n.getPlayState(),h=n.get("inverse",!0);c(t.nextBtnPosition,"next",Y(this._changeTimeline,this,h?"-":"+")),c(t.prevBtnPosition,"prev",Y(this._changeTimeline,this,h?"+":"-")),c(t.playPosition,f?"stop":"play",Y(this._handlePlayClick,this,!f),!0);function c(v,d,p,g){if(!!v){var y=Ar(ut(n.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=B7(n,d+"Icon",m,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,a.add(_),un(_)}}},e.prototype._renderCurrentPointer=function(t,a,i,n){var o=n.getData(),s=n.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(h){h.draggable=!0,h.drift=Y(u._handlePointerDrag,u),h.ondragend=Y(u._handlePointerDragend,u),Fb(h,u._progressLine,s,i,n,!0)},onUpdate:function(h){Fb(h,u._progressLine,s,i,n)}};this._currentPointer=Gb(l,l,this._mainGroup,{},this._currentPointer,f)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,a,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,a){var i=this._toAxisCoord(t)[0],n=this._axis,o=ur(n.getExtent().slice());i>o[1]&&(i=o[1]),i<o[0]&&(i=o[0]),this._currentPointer.x=i,this._currentPointer.markRedraw(),this._progressLine.shape.x2=i,this._progressLine.dirty();var s=this._findNearestTick(i),l=this.model;(a||s!==l.getCurrentIndex()&&l.get("realtime"))&&this._changeTimeline(s)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var a=t.model;t._changeTimeline(a.getCurrentIndex()+(a.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var a=this._mainGroup.getLocalTransform();return Cr(t,a,!0)},e.prototype._findNearestTick=function(t){var a=this.model.getData(),i=1/0,n,o=this._axis;return a.each(["value"],function(s,l){var u=o.dataToCoord(s),f=Math.abs(u-t);f<i&&(i=f,n=l)}),n},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var a=this.model.getCurrentIndex();t==="+"?t=a+1:t==="-"&&(t=a-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),a=this._tickSymbols,i=this._tickLabels;if(a)for(var n=0;n<a.length;n++)a&&a[n]&&a[n].toggleState("progress",n<t);if(i)for(var n=0;n<i.length;n++)i&&i[n]&&i[n].toggleState("progress",zb(i[n]).dataIndex<=t)},e.type="timeline.slider",e}(P7);function O7(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new vy({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new gD({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new ni}}function N7(r,e){return ae(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},r.get("padding"))}function B7(r,e,t,a){var i=a.style,n=Pl(r.get(["controlStyle",e]),a||{},new ht(t[0],t[1],t[2],t[3]));return i&&n.setStyle(i),n}function Gb(r,e,t,a,i,n){var o=e.get("color");if(i)i.setColor(o),t.add(i),n&&n.onUpdate(i);else{var s=r.get("symbol");i=te(s,-1,-1,2,2,o),i.setStyle("strokeNoScale",!0),t.add(i),n&&n.onCreate(i)}var l=e.getItemStyle(["color"]);i.setStyle(l),a=ft({rectHover:!0,z2:100},a,!0);var u=Ol(r.get("symbolSize"));a.scaleX=u[0]/2,a.scaleY=u[1]/2;var f=Ho(r.get("symbolOffset"),u);f&&(a.x=(a.x||0)+f[0],a.y=(a.y||0)+f[1]);var h=r.get("symbolRotate");return a.rotation=(h||0)*Math.PI/180||0,i.attr(a),i.updateTransform(),i}function Fb(r,e,t,a,i,n){if(!r.dragging){var o=i.getModel("checkpointStyle"),s=a.dataToCoord(i.getData().get("value",t));if(n||!o.get("animation",!0))r.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}var V7=k7;function z7(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,a){var i=t.getComponent("timeline");return i&&e.currentIndex!=null&&(i.setCurrentIndex(e.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),a.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),Q({currentIndex:i.option.currentIndex},e)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var a=t.getComponent("timeline");a&&e.playState!=null&&a.setPlayState(e.playState)})}function G7(r){var e=r&&r.timeline;z(e)||(e=e?[e]:[]),A(e,function(t){!t||F7(t)})}function F7(r){var e=r.type,t={number:"value",time:"time"};if(t[e]&&(r.axisType=t[e],delete r.type),Hb(r),Ki(r,"controlPosition")){var a=r.controlStyle||(r.controlStyle={});Ki(a,"position")||(a.position=r.controlPosition),a.position==="none"&&!Ki(a,"show")&&(a.show=!1,delete a.position),delete r.controlPosition}A(r.data||[],function(i){tt(i)&&!z(i)&&(!Ki(i,"value")&&Ki(i,"name")&&(i.value=i.name),Hb(i))})}function Hb(r){var e=r.itemStyle||(r.itemStyle={}),t=e.emphasis||(e.emphasis={}),a=r.label||r.label||{},i=a.normal||(a.normal={}),n={normal:1,emphasis:1};A(a,function(o,s){!n[s]&&!Ki(i,s)&&(i[s]=o)}),t.label&&!Ki(a,"emphasis")&&(a.emphasis=t.label,delete t.label)}function Ki(r,e){return r.hasOwnProperty(e)}function H7(r){r.registerComponentModel(L7),r.registerComponentView(V7),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),z7(r),r.registerPreprocessor(G7)}function pm(r,e){if(!r)return!1;for(var t=z(r)?r:[r],a=0;a<t.length;a++)if(t[a]&&t[a][e])return!0;return!1}function Yu(r){gn(r,"label",["show"])}var Zu=Dt(),vL=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t}return e.prototype.init=function(t,a,i){this.mergeDefaultAndTheme(t,i),this._mergeOption(t,i,!1,!0)},e.prototype.isAnimationEnabled=function(){if(It.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,a){this._mergeOption(t,a,!1,!1)},e.prototype._mergeOption=function(t,a,i,n){var o=this.mainType;i||a.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Zu(s)[o];if(!l||!l.data){Zu(s)[o]=null;return}u?u._mergeOption(l,a,!0):(n&&Yu(l),A(l.data,function(f){f instanceof Array?(Yu(f[0]),Yu(f[1])):Yu(f)}),u=this.createMarkerModelFromSeries(l,this,a),V(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Zu(s)[o]=u},this)},e.prototype.formatTooltip=function(t,a,i){var n=this.getData(),o=this.getRawValue(t),s=n.getName(t);return oe("section",{header:this.name,blocks:[oe("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.getMarkerModelFromSeries=function(t,a){return Zu(t)[a]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(wt);ee(vL,ty.prototype);var li=vL,$7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,i){return new e(t,a,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}(li),W7=$7;function ng(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function U7(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function Xu(r,e,t,a,i,n){var o=[],s=ii(e,a),l=s?e.getCalculationInfo("stackResultDimension"):a,u=gm(e,l,r),f=e.indicesOfNearest(l,u)[0];o[i]=e.get(t,f),o[n]=e.get(l,f);var h=e.get(a,f),c=Fr(e.get(a,f));return c=Math.min(c,20),c>=0&&(o[n]=+o[n].toFixed(c)),[o,h]}var pd={min:ot(Xu,"min"),max:ot(Xu,"max"),average:ot(Xu,"average"),median:ot(Xu,"median")};function xl(r,e){var t=r.getData(),a=r.coordinateSystem;if(e&&!U7(e)&&!z(e.coord)&&a){var i=a.dimensions,n=cL(e,t,a,r);if(e=et(e),e.type&&pd[e.type]&&n.baseAxis&&n.valueAxis){var o=ct(i,n.baseAxis.dim),s=ct(i,n.valueAxis.dim),l=pd[e.type](t,n.baseDataDim,n.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else{for(var u=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis],f=0;f<2;f++)pd[u[f]]&&(u[f]=gm(t,t.mapDimension(i[f]),u[f]));e.coord=u}}return e}function cL(r,e,t,a){var i={};return r.valueIndex!=null||r.valueDim!=null?(i.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,i.valueAxis=t.getAxis(Y7(a,i.valueDataDim)),i.baseAxis=t.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=a.getBaseAxis(),i.valueAxis=t.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function Y7(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function bl(r,e){return r&&r.containData&&e.coord&&!ng(e)?r.containData(e.coord):!0}function Z7(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!ng(e)&&!ng(t)?r.containZone(e.coord,t.coord):!0}function dL(r,e){return r?function(t,a,i,n){var o=n<2?t.coord&&t.coord[n]:t.value;return Qa(o,e[n])}:function(t,a,i,n){return Qa(t.value,e[n])}}function gm(r,e,t){if(t==="average"){var a=0,i=0;return r.each(e,function(n,o){isNaN(n)||(a+=n,i++)}),a/i}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var gd=Dt(),X7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=K()},e.prototype.render=function(t,a,i){var n=this,o=this.markerGroupMap;o.each(function(s){gd(s).keep=!1}),a.eachSeries(function(s){var l=li.getMarkerModelFromSeries(s,n.type);l&&n.renderSeries(s,l,a,i)}),o.each(function(s){!gd(s).keep&&n.group.remove(s.group)})},e.prototype.markKeep=function(t){gd(t).keep=!0},e.prototype.toggleBlurSeries=function(t,a){var i=this;A(t,function(n){var o=li.getMarkerModelFromSeries(n,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?$T(l):kg(l))})}})},e.type="marker",e}(Yt),ym=X7;function $b(r,e,t){var a=e.coordinateSystem;r.each(function(i){var n=r.getItemModel(i),o,s=H(n.get("x"),t.getWidth()),l=H(n.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(r.getValues(r.dimensions,i));else if(a){var u=r.get(a.dimensions[0],i),f=r.get(a.dimensions[1],i);o=a.dataToPoint([u,f])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(i,o)})}var q7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,i){a.eachSeries(function(n){var o=li.getMarkerModelFromSeries(n,"markPoint");o&&($b(o.getData(),n,i),this.markerGroupMap.get(n.id).updateLayout())},this)},e.prototype.renderSeries=function(t,a,i,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Fl),h=K7(o,t,a);a.setData(h),$b(a.getData(),t,n),h.each(function(c){var v=h.getItemModel(c),d=v.getShallow("symbol"),p=v.getShallow("symbolSize"),g=v.getShallow("symbolRotate"),y=v.getShallow("symbolOffset"),m=v.getShallow("symbolKeepAspect");if(J(d)||J(p)||J(g)||J(y)){var _=a.getRawValue(c),S=a.getDataParams(c);J(d)&&(d=d(_,S)),J(p)&&(p=p(_,S)),J(g)&&(g=g(_,S)),J(y)&&(y=y(_,S))}var b=v.getModel("itemStyle").getItemStyle(),x=kl(l,"color");b.fill||(b.fill=x),h.setItemVisual(c,{symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:b})}),f.updateData(h),this.group.add(f.group),h.eachItemGraphicEl(function(c){c.traverse(function(v){it(v).dataModel=a})}),this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markPoint",e}(ym);function K7(r,e,t){var a;r?a=G(r&&r.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return V(V({},l),{name:s,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var i=new Me(a,t),n=G(t.get("data"),ot(xl,e));r&&(n=Et(n,ot(bl,r)));var o=dL(!!r,a);return i.initData(n,null,o),i}var J7=q7;function Q7(r){r.registerComponentModel(W7),r.registerComponentView(J7),r.registerPreprocessor(function(e){pm(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var j7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,i){return new e(t,a,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}(li),tY=j7,qu=Dt(),eY=function(r,e,t,a){var i=r.getData(),n;if(z(a))n=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var s=void 0,l=void 0;if(a.yAxis!=null||a.xAxis!=null)s=e.getAxis(a.yAxis!=null?"y":"x"),l=ue(a.yAxis,a.xAxis);else{var u=cL(a,i,e,r);s=u.valueAxis;var f=rD(i,u.valueDataDim);l=gm(i,f,o)}var h=s.dim==="x"?0:1,c=1-h,v=et(a),d={coord:[]};v.type=null,v.coord=[],v.coord[c]=-1/0,d.coord[c]=1/0;var p=t.get("precision");p>=0&&Ct(l)&&(l=+l.toFixed(Math.min(p,20))),v.coord[h]=d.coord[h]=l,n=[v,d,{type:o,valueIndex:a.valueIndex,value:l}]}else n=[]}var g=[xl(r,n[0]),xl(r,n[1]),V({},n[2])];return g[2].type=g[2].type||null,ft(g[2],g[0]),ft(g[2],g[1]),g};function uh(r){return!isNaN(r)&&!isFinite(r)}function Wb(r,e,t,a){var i=1-r,n=a.dimensions[r];return uh(e[i])&&uh(t[i])&&e[r]===t[r]&&a.getAxis(n).containData(e[r])}function rY(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,a=e[1].coord;if(t&&a&&(Wb(1,t,a,r)||Wb(0,t,a,r)))return!0}return bl(r,e[0])&&bl(r,e[1])}function yd(r,e,t,a,i){var n=a.coordinateSystem,o=r.getItemModel(e),s,l=H(o.get("x"),i.getWidth()),u=H(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,e));else{var f=n.dimensions,h=r.get(f[0],e),c=r.get(f[1],e);s=n.dataToPoint([h,c])}if(Mn(n,"cartesian2d")){var v=n.getAxis("x"),d=n.getAxis("y"),f=n.dimensions;uh(r.get(f[0],e))?s[0]=v.toGlobalCoord(v.getExtent()[t?0:1]):uh(r.get(f[1],e))&&(s[1]=d.toGlobalCoord(d.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var aY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,i){a.eachSeries(function(n){var o=li.getMarkerModelFromSeries(n,"markLine");if(o){var s=o.getData(),l=qu(o).from,u=qu(o).to;l.each(function(f){yd(l,f,!0,n,i),yd(u,f,!1,n,i)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(n.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,a,i,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Gy);this.group.add(f.group);var h=iY(o,t,a),c=h.from,v=h.to,d=h.line;qu(a).from=c,qu(a).to=v,a.setData(d);var p=a.get("symbol"),g=a.get("symbolSize"),y=a.get("symbolRotate"),m=a.get("symbolOffset");z(p)||(p=[p,p]),z(g)||(g=[g,g]),z(y)||(y=[y,y]),z(m)||(m=[m,m]),h.from.each(function(S){_(c,S,!0),_(v,S,!1)}),d.each(function(S){var b=d.getItemModel(S).getModel("lineStyle").getLineStyle();d.setItemLayout(S,[c.getItemLayout(S),v.getItemLayout(S)]),b.stroke==null&&(b.stroke=c.getItemVisual(S,"style").fill),d.setItemVisual(S,{fromSymbolKeepAspect:c.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(S,"symbolOffset"),fromSymbolRotate:c.getItemVisual(S,"symbolRotate"),fromSymbolSize:c.getItemVisual(S,"symbolSize"),fromSymbol:c.getItemVisual(S,"symbol"),toSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:v.getItemVisual(S,"symbolOffset"),toSymbolRotate:v.getItemVisual(S,"symbolRotate"),toSymbolSize:v.getItemVisual(S,"symbolSize"),toSymbol:v.getItemVisual(S,"symbol"),style:b})}),f.updateData(d),h.line.eachItemGraphicEl(function(S){it(S).dataModel=a,S.traverse(function(b){it(b).dataModel=a})});function _(S,b,x){var w=S.getItemModel(b);yd(S,b,x,t,n);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=kl(l,"color")),S.setItemVisual(b,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:ut(w.get("symbolOffset",!0),m[x?0:1]),symbolRotate:ut(w.get("symbolRotate",!0),y[x?0:1]),symbolSize:ut(w.get("symbolSize"),g[x?0:1]),symbol:ut(w.get("symbol",!0),p[x?0:1]),style:T})}this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markLine",e}(ym);function iY(r,e,t){var a;r?a=G(r&&r.dimensions,function(u){var f=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return V(V({},f),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var i=new Me(a,t),n=new Me(a,t),o=new Me([],t),s=G(t.get("data"),ot(eY,e,r,t));r&&(s=Et(s,ot(rY,r)));var l=dL(!!r,a);return i.initData(G(s,function(u){return u[0]}),null,l),n.initData(G(s,function(u){return u[1]}),null,l),o.initData(G(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:n,line:o}}var nY=aY;function oY(r){r.registerComponentModel(tY),r.registerComponentView(nY),r.registerPreprocessor(function(e){pm(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var sY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,i){return new e(t,a,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}(li),lY=sY,Ku=Dt(),uY=function(r,e,t,a){var i=xl(r,a[0]),n=xl(r,a[1]),o=i.coord,s=n.coord;o[0]=ue(o[0],-1/0),o[1]=ue(o[1],-1/0),s[0]=ue(s[0],1/0),s[1]=ue(s[1],1/0);var l=yg([{},i,n]);return l.coord=[i.coord,n.coord],l.x0=i.x,l.y0=i.y,l.x1=n.x,l.y1=n.y,l};function fh(r){return!isNaN(r)&&!isFinite(r)}function Ub(r,e,t,a){var i=1-r;return fh(e[i])&&fh(t[i])}function fY(r,e){var t=e.coord[0],a=e.coord[1],i={coord:t,x:e.x0,y:e.y0},n={coord:a,x:e.x1,y:e.y1};return Mn(r,"cartesian2d")?t&&a&&(Ub(1,t,a)||Ub(0,t,a))?!0:Z7(r,i,n):bl(r,i)||bl(r,n)}function Yb(r,e,t,a,i){var n=a.coordinateSystem,o=r.getItemModel(e),s,l=H(o.get(t[0]),i.getWidth()),u=H(o.get(t[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(t,e));else{var f=r.get(t[0],e),h=r.get(t[1],e),c=[f,h];n.clampData&&n.clampData(c,c),s=n.dataToPoint(c,!0)}if(Mn(n,"cartesian2d")){var v=n.getAxis("x"),d=n.getAxis("y"),f=r.get(t[0],e),h=r.get(t[1],e);fh(f)?s[0]=v.toGlobalCoord(v.getExtent()[t[0]==="x0"?0:1]):fh(h)&&(s[1]=d.toGlobalCoord(d.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var Zb=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],hY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,i){a.eachSeries(function(n){var o=li.getMarkerModelFromSeries(n,"markArea");if(o){var s=o.getData();s.each(function(l){var u=G(Zb,function(h){return Yb(s,l,h,n,i)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,a,i,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new at});this.group.add(f.group),this.markKeep(f);var h=vY(o,t,a);a.setData(h),h.each(function(c){var v=G(Zb,function(T){return Yb(h,c,T,t,n)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),y=p.getExtent(),m=[d.parse(h.get("x0",c)),d.parse(h.get("x1",c))],_=[p.parse(h.get("y0",c)),p.parse(h.get("y1",c))];ur(m),ur(_);var S=!(g[0]>m[1]||g[1]<m[0]||y[0]>_[1]||y[1]<_[0]),b=!S;h.setItemLayout(c,{points:v,allClipped:b});var x=h.getItemModel(c).getModel("itemStyle").getItemStyle(),w=kl(l,"color");x.fill||(x.fill=w,U(x.fill)&&(x.fill=Tf(x.fill,.4))),x.stroke||(x.stroke=w),h.setItemVisual(c,"style",x)}),h.diff(Ku(f).data).add(function(c){var v=h.getItemLayout(c);if(!v.allClipped){var d=new ze({shape:{points:v.points}});h.setItemGraphicEl(c,d),f.group.add(d)}}).update(function(c,v){var d=Ku(f).data.getItemGraphicEl(v),p=h.getItemLayout(c);p.allClipped?d&&f.group.remove(d):(d?At(d,{shape:{points:p.points}},a,c):d=new ze({shape:{points:p.points}}),h.setItemGraphicEl(c,d),f.group.add(d))}).remove(function(c){var v=Ku(f).data.getItemGraphicEl(c);f.group.remove(v)}).execute(),h.eachItemGraphicEl(function(c,v){var d=h.getItemModel(v),p=h.getItemVisual(v,"style");c.useStyle(h.getItemVisual(v,"style")),we(c,he(d),{labelFetcher:a,labelDataIndex:v,defaultText:h.getName(v)||"",inheritColor:U(p.fill)?Tf(p.fill,1):"#000"}),pe(c,d),Ut(c,null,null,d.get(["emphasis","disabled"])),it(c).dataModel=a}),Ku(f).data=h,f.group.silent=a.get("silent")||t.get("silent")},e.type="markArea",e}(ym);function vY(r,e,t){var a,i,n=["x0","y0","x1","y1"];if(r){var o=G(r&&r.dimensions,function(u){var f=e.getData(),h=f.getDimensionInfo(f.mapDimension(u))||{};return V(V({},h),{name:u,ordinalMeta:null})});i=G(n,function(u,f){return{name:u,type:o[f%2].type}}),a=new Me(i,t)}else i=[{name:"value",type:"float"}],a=new Me(i,t);var s=G(t.get("data"),ot(uY,e,r,t));r&&(s=Et(s,ot(fY,r)));var l=r?function(u,f,h,c){var v=u.coord[Math.floor(c/2)][c%2];return Qa(v,i[c])}:function(u,f,h,c){return Qa(u.value,i[c])};return a.initData(s,null,l),a.hasItemOption=!0,a}var cY=hY;function dY(r){r.registerComponentModel(lY),r.registerComponentView(cY),r.registerPreprocessor(function(e){pm(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var pY=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},gY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,a,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),this._updateSelector(t)},e.prototype._updateSelector=function(t){var a=t.selector,i=this.ecModel;a===!0&&(a=t.selector=["all","inverse"]),z(a)&&A(a,function(n,o){U(n)&&(n={type:n}),a[o]=ft(n,pY(i,n.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var a=!1,i=0;i<t.length;i++){var n=t[i].get("name");if(this.isSelected(n)){this.select(n),a=!0;break}}!a&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var a=[],i=[];t.eachRawSeries(function(s){var l=s.name;i.push(l);var u;if(s.legendVisualProvider){var f=s.legendVisualProvider,h=f.getAllNames();t.isSeriesFiltered(s)||(i=i.concat(h)),h.length?a=a.concat(h):u=!0}else u=!0;u&&Dg(s)&&a.push(s.name)}),this._availableNames=i;var n=this.get("data")||a,o=G(n,function(s){return(U(s)||Ct(s))&&(s={name:s}),new Vt(s,this,this.ecModel)},this);this._data=o},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var a=this.option.selected,i=this.get("selectedMode");if(i==="single"){var n=this._data;A(n,function(o){a[o.get("name")]=!1})}a[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var a=this.option.selected;a.hasOwnProperty(t)||(a[t]=!0),this[a[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,a=this.option.selected;A(t,function(i){a[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,a=this.option.selected;A(t,function(i){var n=i.get("name",!0);a.hasOwnProperty(n)||(a[n]=!0),a[n]=!a[n]})},e.prototype.isSelected=function(t){var a=this.option.selected;return!(a.hasOwnProperty(t)&&!a[t])&&ct(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{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}(wt),og=gY,Xn=ot,sg=A,Ju=at,yY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Ju),this.group.add(this._selectorGroup=new Ju),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,a,i){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,a,i,l,s,u);var f=t.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},c=t.get("padding"),v=ae(f,h,c),d=this.layoutInner(t,o,v,n,l,u),p=ae(Q({width:d.width,height:d.height},f),h,c);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=rL(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,a,i,n,o,s,l){var u=this.getContentGroup(),f=K(),h=a.get("selectedMode"),c=[];i.eachRawSeries(function(v){!v.get("legendHoverLink")&&c.push(v.id)}),sg(a.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===`
`)){var g=new Ju;g.newline=!0,u.add(g);return}var y=i.getSeriesByName(p)[0];if(!f.get(p))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),b=m.getVisual("style"),x=this._createItem(y,p,d,v,a,t,_,b,S,h,n);x.on("click",Xn(Xb,p,null,n,c)).on("mouseover",Xn(lg,y.name,null,n,c)).on("mouseout",Xn(ug,y.name,null,n,c)),f.set(p,!0)}else i.eachRawSeries(function(w){if(!f.get(p)&&w.legendVisualProvider){var T=w.legendVisualProvider;if(!T.containName(p))return;var C=T.indexOfName(p),D=T.getItemVisual(C,"style"),M=T.getItemVisual(C,"legendIcon"),L=We(D.fill);L&&L[3]===0&&(L[3]=.2,D=V(V({},D),{fill:va(L,"rgba")}));var I=this._createItem(w,p,d,v,a,t,{},D,M,h,n);I.on("click",Xn(Xb,null,p,n,c)).on("mouseover",Xn(lg,null,p,n,c)).on("mouseout",Xn(ug,null,p,n,c)),f.set(p,!0)}},this)},this),o&&this._createSelector(o,a,n,s,l)},e.prototype._createSelector=function(t,a,i,n,o){var s=this.getSelectorGroup();sg(t,function(u){var f=u.type,h=new Tt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var c=a.getModel("selectorLabel"),v=a.getModel(["emphasis","selectorLabel"]);we(h,{normal:c,emphasis:v},{defaultText:u.title}),un(h)})},e.prototype._createItem=function(t,a,i,n,o,s,l,u,f,h,c){var v=t.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(a),y=n.get("symbolRotate"),m=n.get("symbolKeepAspect"),_=n.get("icon");f=_||f||"roundRect";var S=mY(f,n,l,u,v,g,c),b=new Ju,x=n.getModel("textStyle");if(J(t.getLegendIcon)&&(!_||_==="inherit"))b.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;b.add(_Y({itemWidth:d,itemHeight:p,icon:f,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,C=s,D=o.get("formatter"),M=a;U(D)&&D?M=D.replace("{name}",a!=null?a:""):J(D)&&(M=D(a));var L=n.get("inactiveColor");b.add(new Tt({style:Bt(x,{text:M,x:T,y:p/2,fill:g?x.getTextColor():L,align:C,verticalAlign:"middle"})}));var I=new bt({shape:b.getBoundingRect(),invisible:!0}),P=n.getModel("tooltip");return P.get("show")&&Eo({el:I,componentModel:o,itemName:a,itemTooltipOption:P.option}),b.add(I),b.eachChild(function(R){R.silent=!0}),I.silent=!h,this.getContentGroup().add(b),un(b),b.__legendDataIndex=i,b},e.prototype.layoutInner=function(t,a,i,n,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();hn(t.get("orient"),l,t.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){hn("horizontal",u,t.get("selectorItemGap",!0));var c=u.getBoundingRect(),v=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?v[p]+=f[g]+d:h[p]+=c[g]+d,v[1-p]+=f[y]/2-c[y]/2,u.x=v[0],u.y=v[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=f[g]+d+c[g],_[y]=Math.max(f[y],c[y]),_[m]=Math.min(0,c[m]+v[1-p]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Yt);function mY(r,e,t,a,i,n,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),sg(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?a.decal:yo(h,o),u.fill==="inherit"&&(u.fill=a[i]),u.stroke==="inherit"&&(u.stroke=a[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?a:t).opacity),s(u,a);var c=e.getModel("lineStyle"),v=c.getLineStyle();if(s(v,t),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),v.stroke==="auto"&&(v.stroke=a.fill),!n){var d=e.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?a.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),v.stroke=c.get("inactiveColor"),v.lineWidth=c.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function _Y(r){var e=r.icon||"roundRect",t=te(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function Xb(r,e,t,a){ug(r,e,t,a),t.dispatchAction({type:"legendToggleSelect",name:r!=null?r:e}),lg(r,e,t,a)}function pL(r){for(var e=r.getZr().storage.getDisplayList(),t,a=0,i=e.length;a<i&&!(t=e[a].states.emphasis);)a++;return t&&t.hoverLayer}function lg(r,e,t,a){pL(t)||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:a})}function ug(r,e,t,a){pL(t)||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:a})}var gL=yY;function SY(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var a=0;a<e.length;a++)if(!e[a].isSelected(t.name))return!1;return!0})}function ys(r,e,t){var a={},i=r==="toggleSelected",n;return t.eachComponent("legend",function(o){i&&n!=null?o[n?"select":"unSelect"](e.name):r==="allSelect"||r==="inverseSelect"?o[r]():(o[r](e.name),n=o.isSelected(e.name));var s=o.getData();A(s,function(l){var u=l.get("name");if(!(u===`
`||u==="")){var f=o.isSelected(u);a.hasOwnProperty(u)?a[u]=a[u]&&f:a[u]=f}})}),r==="allSelect"||r==="inverseSelect"?{selected:a}:{name:e.name,selected:a}}function xY(r){r.registerAction("legendToggleSelect","legendselectchanged",ot(ys,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",ot(ys,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",ot(ys,"inverseSelect")),r.registerAction("legendSelect","legendselected",ot(ys,"select")),r.registerAction("legendUnSelect","legendunselected",ot(ys,"unSelect"))}function yL(r){r.registerComponentModel(og),r.registerComponentView(gL),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,SY),r.registerSubTypeDefaulter("legend",function(){return"plain"}),xY(r)}var bY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,a,i){var n=Bo(t);r.prototype.init.call(this,t,a,i),qb(this,t,n)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),qb(this,this.option,t)},e.type="legend.scroll",e.defaultOption=fi(og.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}(og);function qb(r,e,t){var a=r.getOrient(),i=[1,1];i[a.index]=0,ai(e,t,{type:"box",ignoreSize:!!i})}var wY=bY,Kb=at,md=["width","height"],_d=["x","y"],TY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new Kb),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Kb)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,a,i,n,o,s,l){var u=this;r.prototype.renderInner.call(this,t,a,i,n,o,s,l);var f=this._controllerGroup,h=a.get("pageIconSize",!0),c=z(h)?h:[h,h];d("pagePrev",0);var v=a.getModel("pageTextStyle");f.add(new Tt({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=Pl(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:Y(u._pageGo,u,y,a,n)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});m.name=p,f.add(m)}},e.prototype.layoutInner=function(t,a,i,n,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=md[u],h=_d[u],c=md[1-u],v=_d[1-u];o&&hn("horizontal",l,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=et(i);o&&(y[f]=i[f]-p[f]-d);var m=this._layoutContentAndController(t,n,y,u,f,c,v,h);if(o){if(s==="end")g[u]+=m[f]+d;else{var _=p[f]+d;g[u]-=_,m[h]-=_}m[f]+=p[f]+d,g[1-u]+=m[v]+m[c]/2-p[c]/2,m[c]=Math.max(m[c],p[c]),m[v]=Math.min(m[v],p[v]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,a,i,n,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,c=this._controllerGroup;hn(t.get("orient"),f,t.get("itemGap"),n?i.width:null,n?null:i.height),hn("horizontal",c,t.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=c.getBoundingRect(),p=this._showController=v[o]>i[o],g=[-v.x,-v.y];a||(g[n]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=ut(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var S=t.get("pageButtonPosition",!0);S==="end"?m[n]+=i[o]-d[o]:y[n]+=d[o]+_}m[1-n]+=v[s]/2-d[s]/2,f.setPosition(g),h.setPosition(y),c.setPosition(m);var b={x:0,y:0};if(b[o]=p?i[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+m[1-n]),h.__rectSize=i[o],p){var x={x:0,y:0};x[o]=Math.max(i[o]-d[o]-_,0),x[s]=b[s],h.setClipPath(new bt({shape:x})),h.__rectSize=x[o]}else c.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return w.pageIndex!=null&&At(f,{x:w.contentPosition[0],y:w.contentPosition[1]},p?t:null),this._updatePageInfoView(t,w),b},e.prototype._pageGo=function(t,a,i){var n=this._getPageInfo(a)[t];n!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:a.id})},e.prototype._updatePageInfoView=function(t,a){var i=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",c=a[h]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",c?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var n=i.childOfName("pageText"),o=t.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;n&&o&&n.setStyle("text",U(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var a=t.get("scrollDataIndex",!0),i=this.getContentGroup(),n=this._containerGroup.__rectSize,o=t.getOrient().index,s=md[o],l=_d[o],u=this._findTargetItemIndex(a),f=i.children(),h=f[u],c=f.length,v=c?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var p=S(h);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=c;++g)_=S(f[g]),(!_&&m.e>y.s+n||_&&!b(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function S(x){if(x){var w=x.getBoundingRect(),T=w[l]+x[l];return{s:T,e:T+w[s],i:x.__legendDataIndex}}}function b(x,w){return x.e>=w&&x.s<=w+n}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var a,i=this.getContentGroup(),n;return i.eachChild(function(o,s){var l=o.__legendDataIndex;n==null&&l!=null&&(n=s),l===t&&(a=s)}),a!=null?a:n},e.type="legend.scroll",e}(gL),CY=TY;function AY(r){r.registerAction("legendScroll","legendscroll",function(e,t){var a=e.scrollDataIndex;a!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(a)})})}function DY(r){dt(yL),r.registerComponentModel(wY),r.registerComponentView(CY),AY(r)}function MY(r){dt(yL),dt(DY)}var LY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=fi(Sl.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Sl),IY=LY,mm=Dt();function PY(r,e,t){mm(r).coordSysRecordMap.each(function(a){var i=a.dataZoomInfoMap.get(e.uid);i&&(i.getRange=t)})}function RY(r,e){for(var t=mm(r).coordSysRecordMap,a=t.keys(),i=0;i<a.length;i++){var n=a[i],o=t.get(n),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||mL(t,o))}}}function mL(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function EY(r,e){var t={model:e,containsPoint:ot(OY,e),dispatchAction:ot(kY,r),dataZoomInfoMap:null,controller:null},a=t.controller=new Ul(r.getZr());return A(["pan","zoom","scrollMove"],function(i){a.on(i,function(n){var o=[];t.dataZoomInfoMap.each(function(s){if(!!n.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,n);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&t.dispatchAction(o)})}),t}function kY(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function OY(r,e,t,a){return r.coordinateSystem.containPoint([t,a])}function NY(r){var e,t="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return r.each(function(n){var o=n.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;a[t+s]>a[t+e]&&(e=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function BY(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var a=mm(t),i=a.coordSysRecordMap||(a.coordSysRecordMap=K());i.each(function(n){n.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(n){var o=j2(n);A(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,EY(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=K());f.set(n.uid,{dzReferCoordSysInfo:s,model:n,getRange:null})})}),i.each(function(n){var o=n.controller,s,l=n.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){mL(i,n);return}var f=NY(l);o.enable(f.controlType,f.opt),o.setPointerChecker(n.containsPoint),Fo(n,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var VY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,a,i){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),PY(i,t,{pan:Y(Sd.pan,this),zoom:Y(Sd.zoom,this),scrollMove:Y(Sd.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){RY(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(um),Sd={zoom:function(r,e,t,a){var i=this.range,n=i.slice(),o=r.axisModels[0];if(!!o){var s=xd[e](null,[a.originX,a.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(n[1]-n[0])+n[0],u=Math.max(1/a.scale,0);n[0]=(n[0]-l)*u+l,n[1]=(n[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(In(0,n,[0,100],0,f.minSpan,f.maxSpan),this.range=n,i[0]!==n[0]||i[1]!==n[1])return n}},pan:Jb(function(r,e,t,a,i,n){var o=xd[a]([n.oldX,n.oldY],[n.newX,n.newY],e,i,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:Jb(function(r,e,t,a,i,n){var o=xd[a]([0,0],[n.scrollDelta,n.scrollDelta],e,i,t);return o.signal*(r[1]-r[0])*n.scrollDelta})};function Jb(r){return function(e,t,a,i){var n=this.range,o=n.slice(),s=e.axisModels[0];if(!!s){var l=r(o,s,e,t,a,i);if(In(l,o,[0,100],"all"),this.range=o,n[0]!==o[0]||n[1]!==o[1])return o}}}var xd={grid:function(r,e,t,a,i){var n=t.axis,o={},s=i.model.coordinateSystem.getRect();return r=r||[0,0],n.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=n.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=n.inverse?-1:1),o},polar:function(r,e,t,a,i){var n=t.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=n.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=n.inverse?-1:1),o},singleAxis:function(r,e,t,a,i){var n=t.axis,o=i.model.coordinateSystem.getRect(),s={};return r=r||[0,0],n.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=n.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=n.inverse?-1:1),s}},zY=VY;function _L(r){fm(r),r.registerComponentModel(IY),r.registerComponentView(zY),BY(r)}var GY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=fi(Sl.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:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Sl),FY=GY,ms=bt,Qb=7,HY=1,bd=30,$Y=7,_s="horizontal",jb="vertical",WY=5,UY=["line","bar","candlestick","scatter"],YY={easing:"cubicOut",duration:100,delay:0},ZY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,a){this.api=a,this._onBrush=Y(this._onBrush,this),this._onBrushEnd=Y(this._onBrushEnd,this)},e.prototype.render=function(t,a,i,n){if(r.prototype.render.apply(this,arguments),Fo(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!n||n.type!=="dataZoom"||n.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){ll(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 a=this._displayables.sliderGroup=new at;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(a),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,a=this.api,i=t.get("brushSelect"),n=i?$Y:0,o=this._findCoordRect(),s={width:a.getWidth(),height:a.getHeight()},l=this._orient===_s?{right:s.width-o.x-o.width,top:s.height-bd-Qb-n,width:o.width,height:bd}:{right:Qb,top:o.y,width:bd,height:o.height},u=Bo(t.option);A(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var f=ae(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===jb&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,a=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),o=n&&n.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===_s&&!o?{scaleY:l?1:-1,scaleX:1}:i===_s&&o?{scaleY:l?1:-1,scaleX:-1}:i===jb&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=a.x-u.x,t.y=a.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,a=this._size,i=this._displayables.sliderGroup,n=t.get("brushSelect");i.add(new ms({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new ms({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:Y(this._onClickPanel,this)}),s=this.api.getZr();n?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var a=this._size,i=this._shadowSize||[],n=t.series,o=n.getRawData(),s=n.getShadowDim&&n.getShadowDim(),l=s&&o.getDimensionInfo(s)?n.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==i[0]||a[1]!==i[1]){var h=o.getDataExtent(l),c=(h[1]-h[0])*.3;h=[h[0]-c,h[1]+c];var v=[0,a[1]],d=[0,a[0]],p=[[a[0],0],[0,0]],g=[],y=d[1]/(o.count()-1),m=0,_=Math.round(o.count()/a[0]),S;o.each([l],function(C,D){if(_>0&&D%_){m+=y;return}var M=C==null||isNaN(C)||C==="",L=M?0:Rt(C,h,v,!0);M&&!S&&D?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&S&&(p.push([m,0]),g.push([m,0])),p.push([m,L]),g.push([m,L]),m+=y,S=M}),u=this._shadowPolygonPts=p,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var b=this.dataZoomModel;function x(C){var D=b.getModel(C?"selectedDataBackground":"dataBackground"),M=new at,L=new ze({shape:{points:u},segmentIgnoreThreshold:1,style:D.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new Ge({shape:{points:f},segmentIgnoreThreshold:1,style:D.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(L),M.add(I),M}for(var w=0;w<3;w++){var T=x(w===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,a=t.get("showDataShadow");if(a!==!1){var i,n=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();A(l,function(u){if(!i&&!(a!==!0&&ct(UY,u.get("type"))<0)){var f=n.getComponent(qa(o),s).axis,h=XY(o),c,v=u.coordinateSystem;h!=null&&v.getOtherAxis&&(c=v.getOtherAxis(f).inverse),h=u.getData().mapDimension(h),i={thisAxis:f,series:u,thisDim:o,otherDim:h,otherAxisInverse:c}}},this)},this),i}},e.prototype._renderHandle=function(){var t=this.group,a=this._displayables,i=a.handles=[null,null],n=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,h=l.get("brushSelect"),c=a.filler=new ms({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(c),o.add(new ms({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:HY,fill:"rgba(0,0,0,0)"}})),A([0,1],function(_){var S=l.get("handleIcon");!Gf[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=te(S,-1,0,2,2,null,!0);b.attr({cursor:tw(this._orient),draggable:!0,drift:Y(this._onDragMove,this,_),ondragend:Y(this._onDragEnd,this),onmouseover:Y(this._showDataInfo,this,!0),onmouseout:Y(this._showDataInfo,this,!1),z2:5});var x=b.getBoundingRect(),w=l.get("handleSize");this._handleHeight=H(w,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),un(b);var T=l.get("handleColor");T!=null&&(b.style.fill=T),o.add(i[_]=b);var C=l.getModel("textStyle");t.add(n[_]=new Tt({silent:!0,invisible:!0,style:Bt(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var v=c;if(h){var d=H(l.get("moveHandleSize"),s[1]),p=a.moveHandle=new bt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=a.moveHandleIcon=te(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));v=a.moveZone=new bt({invisible:!0,shape:{y:s[1]-m,height:d+m}}),v.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(v)}v.attr({draggable:!0,cursor:tw(this._orient),drift:Y(this._onDragMove,this,"all"),ondragstart:Y(this._showDataInfo,this,!0),ondragend:Y(this._onDragEnd,this),onmouseover:Y(this._showDataInfo,this,!0),onmouseout:Y(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[Rt(t[0],[0,100],a,!0),Rt(t[1],[0,100],a,!0)]},e.prototype._updateInterval=function(t,a){var i=this.dataZoomModel,n=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];In(a,n,o,i.get("zoomLock")?"all":t,s.minSpan!=null?Rt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Rt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=ur([Rt(n[0],o,l,!0),Rt(n[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var a=this._displayables,i=this._handleEnds,n=ur(i.slice()),o=this._size;A([0,1],function(v){var d=a.handles[v],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:i[v]+(v?-1:1),y:o[1]/2-p/2})},this),a.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:o[1]});var s={x:n[0],width:n[1]-n[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,n[0],n[1],o[0]],f=0;f<l.length;f++){var h=l[f],c=h.getClipPath();c||(c=new bt,h.setClipPath(c)),c.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var a=this.dataZoomModel,i=this._displayables,n=i.handleLabels,o=this._orient,s=["",""];if(a.get("showDetail")){var l=a.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,f=this._range,h=t?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(h[0],u),this._formatLabel(h[1],u)]}}var c=ur(this._handleEnds.slice());v.call(this,0),v.call(this,1);function v(d){var p=fn(i.handles[d].parent,this.group),g=Rh(d===0?"right":"left",p),y=this._handleWidth/2+WY,m=Cr([c[d]+(d===0?-y:y),this._size[1]/2],p);n[d].setStyle({x:m[0],y:m[1],verticalAlign:o===_s?"middle":g,align:o===_s?g:"center",text:s[d]})}},e.prototype._formatLabel=function(t,a){var i=this.dataZoomModel,n=i.get("labelFormatter"),o=i.get("labelPrecision");(o==null||o==="auto")&&(o=a.getPixelPrecision());var s=t==null||isNaN(t)?"":a.type==="category"||a.type==="time"?a.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return J(n)?n(t,s):U(n)?n.replace("{value}",s):s},e.prototype._showDataInfo=function(t){t=this._dragging||t;var a=this._displayables,i=a.handleLabels;i[0].attr("invisible",!t),i[1].attr("invisible",!t),a.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](a.moveHandle,1)},e.prototype._onDragMove=function(t,a,i,n){this._dragging=!0,ga(n.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Cr([a,i],o,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var a=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(i[0]<0||i[0]>a[0]||i[1]<0||i[1]>a[1])){var n=this._handleEnds,o=(n[0]+n[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var a=t.offsetX,i=t.offsetY;this._brushStart=new lt(a,i),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(!!this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var i=a.shape,n=+new Date;if(!(n-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=ur([Rt(i.x,o,s,!0),Rt(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(ga(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,a){var i=this._displayables,n=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new ms({silent:!0,style:n.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,a),f=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:h[1]})},e.prototype._dispatchZoomAction=function(t){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?YY:null,start:a[0],end:a[1]})},e.prototype._findCoordRect=function(){var t,a=j2(this.dataZoomModel).infoList;if(!t&&a.length){var i=a[0].model.coordinateSystem;t=i.getRect&&i.getRect()}if(!t){var n=this.api.getWidth(),o=this.api.getHeight();t={x:n*.2,y:o*.2,width:n*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(um);function XY(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function tw(r){return r==="vertical"?"ns-resize":"ew-resize"}var qY=ZY;function SL(r){r.registerComponentModel(FY),r.registerComponentView(qY),fm(r)}function KY(r){dt(_L),dt(SL)}var JY={get:function(r,e,t){var a=et((QY[r]||{})[e]);return t&&z(a)?a[a.length-1]:a}},QY={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]}},xL=JY,ew=de.mapVisual,jY=de.eachVisual,tZ=z,rw=A,eZ=ur,rZ=Rt,aZ=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,a,i){this.mergeDefaultAndTheme(t,i)},e.prototype.optionUpdated=function(t,a){var i=this.option;!a&&uL(i,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var a=this.stateList;t=Y(t,this),this.controllerVisuals=ag(this.option.controller,a,t),this.targetVisuals=ag(this.option.target,a,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,a=[];return t==null||t==="all"?this.ecModel.eachSeries(function(i,n){a.push(n)}):a=kt(t),a},e.prototype.eachTargetSeries=function(t,a){A(this.getTargetSeriesIndices(),function(i){var n=this.ecModel.getSeriesByIndex(i);n&&t.call(a,n)},this)},e.prototype.isTargetSeries=function(t){var a=!1;return this.eachTargetSeries(function(i){i===t&&(a=!0)}),a},e.prototype.formatValueText=function(t,a,i){var n=this.option,o=n.precision,s=this.dataBound,l=n.formatter,u;i=i||["<",">"],z(t)&&(t=t.slice(),u=!0);var f=a?t:u?[h(t[0]),h(t[1])]:h(t);if(U(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(J(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?i[0]+" "+f[1]:t[1]===s[1]?i[1]+" "+f[0]:f[0]+" - "+f[1];return f;function h(c){return c===s[0]?"min":c===s[1]?"max":(+c).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,a=eZ([t.min,t.max]);this._dataExtent=a},e.prototype.getDataDimensionIndex=function(t){var a=this.option.dimension;if(a!=null)return t.getDimensionIndex(a);for(var i=t.dimensions,n=i.length-1;n>=0;n--){var o=i[n],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,a=this.option,i={inRange:a.inRange,outOfRange:a.outOfRange},n=a.target||(a.target={}),o=a.controller||(a.controller={});ft(n,i),ft(o,i);var s=this.isCategory();l.call(this,n),l.call(this,o),u.call(this,n,"inRange","outOfRange"),f.call(this,o);function l(h){tZ(a.color)&&!h.inRange&&(h.inRange={color:a.color.slice().reverse()}),h.inRange=h.inRange||{color:t.get("gradientColor")}}function u(h,c,v){var d=h[c],p=h[v];d&&!p&&(p=h[v]={},rw(d,function(g,y){if(!!de.isValidType(y)){var m=xL.get(y,"inactive",s);m!=null&&(p[y]=m,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(h){var c=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,v=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";rw(this.stateList,function(y){var m=this.itemSize,_=h[y];_||(_=h[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=c&&et(c)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=v&&et(v)||(s?m[0]:[m[0],m[0]])),_.symbol=ew(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var b=-1/0;jY(S,function(x){x>b&&(b=x)}),_.symbolSize=ew(S,function(x){return rZ(x,[0,b],[0,m[0]],!0)})}},this)}},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}(wt),hh=aZ,aw=[20,140],iZ=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=aw[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=aw[1])},e.prototype._resetRange=function(){var t=this.getExtent(),a=this.option.range;!a||a.auto?(t.auto=1,this.option.range=t):z(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],t[0]),a[1]=Math.min(a[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),A(this.stateList,function(t){var a=this.option.controller[t].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),a=ur((this.get("range")||[]).slice());return a[0]>t[1]&&(a[0]=t[1]),a[1]>t[1]&&(a[1]=t[1]),a[0]<t[0]&&(a[0]=t[0]),a[1]<t[0]&&(a[1]=t[0]),a},e.prototype.getValueState=function(t){var a=this.option.range,i=this.getExtent();return(a[0]<=i[0]||a[0]<=t)&&(a[1]>=i[1]||t<=a[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[];return this.eachTargetSeries(function(i){var n=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&n.push(l)},this),a.push({seriesId:i.id,dataIndex:n})},this),a},e.prototype.getVisualMeta=function(t){var a=iw(this,"outOfRange",this.getExtent()),i=iw(this,"inRange",this.option.range.slice()),n=[];function o(v,d){n.push({value:v,color:t(v,d)})}for(var s=0,l=0,u=i.length,f=a.length;l<f&&(!i.length||a[l]<=i[0]);l++)a[l]<i[s]&&o(a[l],"outOfRange");for(var h=1;s<u;s++,h=0)h&&n.length&&o(i[s],"outOfRange"),o(i[s],"inRange");for(var h=1;l<f;l++)(!i.length||i[i.length-1]<a[l])&&(h&&(n.length&&o(n[n.length-1].value,"outOfRange"),h=0),o(a[l],"outOfRange"));var c=n.length;return{stops:n,outerColors:[c?n[0].color:"transparent",c?n[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=fi(hh.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}(hh);function iw(r,e,t){if(t[0]===t[1])return t.slice();for(var a=200,i=(t[1]-t[0])/a,n=t[0],o=[],s=0;s<=a&&n<t[1];s++)o.push(n),n+=i;return o.push(t[1]),o}var nZ=iZ,oZ=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,a){this.ecModel=t,this.api=a},e.prototype.render=function(t,a,i,n){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,a,i,n)},e.prototype.renderBackground=function(t){var a=this.visualMapModel,i=No(a.get("padding")||0),n=t.getBoundingRect();t.add(new bt({z2:-1,silent:!0,shape:{x:n.x-i[3],y:n.y-i[0],width:n.width+i[3]+i[1],height:n.height+i[0]+i[2]},style:{fill:a.get("backgroundColor"),stroke:a.get("borderColor"),lineWidth:a.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,a,i){i=i||{};var n=i.forceState,o=this.visualMapModel,s={};if(a==="color"){var l=o.get("contentColor");s.color=l}function u(v){return s[v]}function f(v,d){s[v]=d}var h=o.controllerVisuals[n||o.getValueState(t)],c=de.prepareVisualTypes(h);return A(c,function(v){var d=h[v];i.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",d=h.__alphaForOpacity),de.dependsOn(v,a)&&d&&d.applyVisual(t,u,f)}),s[a]},e.prototype.positionGroup=function(t){var a=this.visualMapModel,i=this.api;zh(t,a.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},e.prototype.doRender=function(t,a,i,n){},e.type="visualMap",e}(Yt),bL=oZ,nw=[["left","right","width"],["top","bottom","height"]];function wL(r,e,t){var a=r.option,i=a.align;if(i!=null&&i!=="auto")return i;for(var n={width:e.getWidth(),height:e.getHeight()},o=a.orient==="horizontal"?1:0,s=nw[o],l=[0,null,10],u={},f=0;f<3;f++)u[nw[1-o][f]]=l[f],u[s[f]]=f===2?t[0]:a[s[f]];var h=[["x","width",3],["y","height",0]][o],c=ae(u,n,a.padding);return s[(c.margin[h[2]]||0)+c[h[0]]+c[h[1]]*.5<n[h[1]]*.5?0:1]}function _f(r,e){return A(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var Br=Rt,sZ=A,ow=Math.min,wd=Math.max,lZ=12,uZ=6,fZ=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.doRender=function(t,a,i,n){this._api=i,(!n||n.type!=="selectDataRange"||n.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,a=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(a);var i=t.get("text");this._renderEndsText(a,i,0),this._renderEndsText(a,i,1),this._updateView(!0),this.renderBackground(a),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(a)},e.prototype._renderEndsText=function(t,a,i){if(!!a){var n=a[1-i];n=n!=null?n+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],u),h=this._applyTransform(i===0?"bottom":"top",u),c=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new Tt({style:Bt(v,{x:f[0],y:f[1],verticalAlign:c==="horizontal"?"middle":h,align:c==="horizontal"?h:"center",text:n})}))}},e.prototype._renderBar=function(t){var a=this.visualMapModel,i=this._shapes,n=a.itemSize,o=this._orient,s=this._useHandle,l=wL(a,this.api,n),u=i.mainGroup=this._createBarGroup(l),f=new at;u.add(f),f.add(i.outOfRange=sw()),f.add(i.inRange=sw(null,s?uw(this._orient):null,Y(this._dragHandle,this,"all",!1),Y(this._dragHandle,this,"all",!0))),f.setClipPath(new bt({shape:{x:0,y:0,width:n[0],height:n[1],r:3}}));var h=a.textStyleModel.getTextRect("\u56FD"),c=wd(h.width,h.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(a,u,0,n,c,o),this._createHandle(a,u,1,n,c,o)),this._createIndicator(a,u,n,c,o),t.add(u)},e.prototype._createHandle=function(t,a,i,n,o,s){var l=Y(this._dragHandle,this,i,!1),u=Y(this._dragHandle,this,i,!0),f=Ar(t.get("handleSize"),n[0]),h=te(t.get("handleIcon"),-f/2,-f/2,f,f,null,!0),c=uw(this._orient);h.attr({cursor:c,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){ga(y.event)}}),h.x=n[0]/2,h.useStyle(t.getModel("handleStyle").getItemStyle()),h.setStyle({strokeNoScale:!0,strokeFirst:!0}),h.style.lineWidth*=2,h.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),ji(h,!0),a.add(h);var v=this.visualMapModel.textStyleModel,d=new Tt({cursor:c,draggable:!0,drift:l,onmousemove:function(y){ga(y.event)},ondragend:u,style:Bt(v,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[f,0],g=this._shapes;g.handleThumbs[i]=h,g.handleLabelPoints[i]=p,g.handleLabels[i]=d},e.prototype._createIndicator=function(t,a,i,n,o){var s=Ar(t.get("indicatorSize"),i[0]),l=te(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof ge){var f=l.style;l.useStyle(V({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);a.add(l);var h=this.visualMapModel.textStyleModel,c=new Tt({silent:!0,invisible:!0,style:Bt(h,{x:0,y:0,text:""})});this.group.add(c);var v=[(o==="horizontal"?n/2:uZ)+i[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=c,d.indicatorLabelPoint=v,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,a,i,n){if(!!this._useHandle){if(this._dragging=!a,!a){var o=this._applyTransform([i,n],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}a===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),a?!this._hovering&&this._clearHoverLinkToSeries():lw(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,a=this._dataInterval=t.getSelected(),i=t.getExtent(),n=[0,t.itemSize[1]];this._handleEnds=[Br(a[0],i,n,!0),Br(a[1],i,n,!0)]},e.prototype._updateInterval=function(t,a){a=a||0;var i=this.visualMapModel,n=this._handleEnds,o=[0,i.itemSize[1]];In(a,n,o,t,0);var s=i.getExtent();this._dataInterval=[Br(n[0],o,s,!0),Br(n[1],o,s,!0)]},e.prototype._updateView=function(t){var a=this.visualMapModel,i=a.getExtent(),n=this._shapes,o=[0,a.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),u=this._createBarVisual(i,i,o,"outOfRange");n.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),n.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,a,i,n){var o={forceState:n,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(i,l);return{barColor:new Ll(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,a){var i=100,n=[],o=(t[1]-t[0])/i;n.push({color:this.getControllerVisual(t[0],"color",a),offset:0});for(var s=1;s<i;s++){var l=t[0]+o*s;if(l>t[1])break;n.push({color:this.getControllerVisual(l,"color",a),offset:s/i})}return n.push({color:this.getControllerVisual(t[1],"color",a),offset:1}),n},e.prototype._createBarPoints=function(t,a){var i=this.visualMapModel.itemSize;return[[i[0]-a[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-a[1],t[1]]]},e.prototype._createBarGroup=function(t){var a=this._orient,i=this.visualMapModel.get("inverse");return new at(a==="horizontal"&&!i?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&i?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!i?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,a){if(!!this._useHandle){var i=this._shapes,n=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=n.itemSize,u=n.getExtent();sZ([0,1],function(f){var h=o[f];h.setStyle("fill",a.handlesColor[f]),h.y=t[f];var c=Br(t[f],[0,l[1]],u,!0),v=this.getControllerVisual(c,"symbolSize");h.scaleX=h.scaleY=v/l[0],h.x=l[0]-v/2;var d=Cr(i.handleLabelPoints[f],fn(h,this.group));s[f].setStyle({x:d[0],y:d[1],text:n.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,a,i,n){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,h=f.indicator;if(!!h){h.attr("invisible",!1);var c={convertOpacityToAlpha:!0},v=this.getControllerVisual(t,"color",c),d=this.getControllerVisual(t,"symbolSize"),p=Br(t,s,u,!0),g=l[0]-d/2,y={x:h.x,y:h.y};h.y=p,h.x=g;var m=Cr(f.indicatorLabelPoint,fn(h,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),b=this._orient,x=b==="horizontal";_.setStyle({text:(i||"")+o.formatValueText(a),verticalAlign:x?S:"middle",align:x?"center":S});var w={x:g,y:p,style:{fill:v}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};h.x=y.x,h.y=y.y,h.animateTo(w,C),_.animateTo(T,C)}else h.attr(w),_.attr(T);this._firstShowIndicator=!1;var D=this._shapes.handleLabels;if(D)for(var M=0;M<D.length;M++)this._api.enterBlur(D[M])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(a){if(t._hovering=!0,!t._dragging){var i=t.visualMapModel.itemSize,n=t._applyTransform([a.offsetX,a.offsetY],t._shapes.mainGroup,!0,!0);n[1]=ow(wd(0,n[1]),i[1]),t._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=i[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,a){var i=this.visualMapModel,n=i.itemSize;if(!!i.option.hoverLink){var o=[0,n[1]],s=i.getExtent();t=ow(wd(o[0],t),o[1]);var l=hZ(i,s,o),u=[t-l,t+l],f=Br(t,o,s,!0),h=[Br(u[0],o,s,!0),Br(u[1],o,s,!0)];u[0]<o[0]&&(h[0]=-1/0),u[1]>o[1]&&(h[1]=1/0),a&&(h[0]===-1/0?this._showIndicator(f,h[1],"< ",l):h[1]===1/0?this._showIndicator(f,h[0],"> ",l):this._showIndicator(f,f,"\u2248 ",l));var c=this._hoverLinkDataIndices,v=[];(a||lw(i))&&(v=this._hoverLinkDataIndices=i.findTargetDataIndices(h));var d=rR(c,v);this._dispatchHighDown("downplay",_f(d[0],i)),this._dispatchHighDown("highlight",_f(d[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var a;if(en(t.target,function(l){var u=it(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var i=this.ecModel.getSeriesByIndex(a.seriesIndex),n=this.visualMapModel;if(!!n.isTargetSeries(i)){var o=i.getData(a.dataType),s=o.getStore().get(n.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var i=0;i<a.length;i++)this._api.leaveBlur(a[i])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",_f(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,a,i,n){var o=fn(a,n?null:this.group);return z(t)?Cr(t,o,i):Rh(t,o,i)},e.prototype._dispatchHighDown=function(t,a){a&&a.length&&this.api.dispatchAction({type:t,batch:a})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(bL);function sw(r,e,t,a){return new ze({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(i){ga(i.event)},ondragend:a})}function hZ(r,e,t){var a=lZ/2,i=r.get("hoverLinkDataSize");return i&&(a=Br(i,e,t,!0)/2),a}function lw(r){var e=r.get("hoverLinkOnHandle");return!!(e==null?r.get("realtime"):e)}function uw(r){return r==="vertical"?"ns-resize":"ew-resize"}var vZ=fZ,cZ={type:"selectDataRange",event:"dataRangeSelected",update:"update"},dZ=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},pZ=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(a){var i=r.pipelineContext;!a.isTargetSeries(r)||i&&i.large||t.push(u7(a.stateList,a.targetVisuals,Y(a.getValueState,a),a.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),a=[];e.eachComponent("visualMap",function(i){if(i.isTargetSeries(r)){var n=i.getVisualMeta(Y(gZ,null,r,i))||{stops:[],outerColors:[]},o=i.getDataDimensionIndex(t);o>=0&&(n.dimension=o,a.push(n))}}),r.getData().setVisual("visualMeta",a)}}];function gZ(r,e,t,a){for(var i=e.targetVisuals[a],n=de.prepareVisualTypes(i),o={color:kl(r.getData(),"color")},s=0,l=n.length;s<l;s++){var u=n[s],f=i[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(t,h,c)}return o.color;function h(v){return o[v]}function c(v,d){o[v]=d}}var fw=A;function yZ(r){var e=r&&r.visualMap;z(e)||(e=e?[e]:[]),fw(e,function(t){if(!!t){qn(t,"splitList")&&!qn(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var a=t.pieces;a&&z(a)&&fw(a,function(i){tt(i)&&(qn(i,"start")&&!qn(i,"min")&&(i.min=i.start),qn(i,"end")&&!qn(i,"max")&&(i.max=i.end))})}})}function qn(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var hw=!1;function TL(r){hw||(hw=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(cZ,dZ),A(pZ,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(yZ))}function CL(r){r.registerComponentModel(nZ),r.registerComponentView(vZ),TL(r)}var mZ=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],_Z[this._mode].call(this,this._pieceList),this._resetSelected(t,a);var n=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=et(n)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=G(this._pieceList,function(l){return l=et(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,a={},i=de.listVisualTypes(),n=this.isCategory();A(t.pieces,function(s){A(i,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),A(a,function(s,l){var u=!1;A(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&A(this.stateList,function(f){(t[f]||(t[f]={}))[l]=xL.get(l,f==="inRange"?"active":"inactive",n)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,a){var i=this.option,n=this._pieceList,o=(a?i:t).selected||{};if(i.selected=o,A(n,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),i.selectedMode==="single"){var s=!1;A(n,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?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=et(t)},e.prototype.getValueState=function(t){var a=de.findPieceIndex(t,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[],i=this._pieceList;return this.eachTargetSeries(function(n){var o=[],s=n.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=de.findPieceIndex(l,i);f===t&&o.push(u)},this),a.push({seriesId:n.id,dataIndex:o})},this),a},e.prototype.getRepresentValue=function(t){var a;if(this.isCategory())a=t.value;else if(t.value!=null)a=t.value;else{var i=t.interval||[];a=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return a},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var a=[],i=["",""],n=this;function o(f,h){var c=n.getRepresentValue({interval:f});h||(h=n.getValueState(c));var v=t(c,h);f[0]===-1/0?i[0]=v:f[1]===1/0?i[1]=v:a.push({value:f[0],color:v},{value:f[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return A(s,function(f){var h=f.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:a,outerColors:i}},e.type="visualMap.piecewise",e.defaultOption=fi(hh.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}(hh),_Z={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),a=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var n=(a[1]-a[0])/i;+n.toFixed(t)!==n&&t<5;)t++;e.precision=t,n=+n.toFixed(t),e.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o<i;s+=n,o++){var l=o===i-1?a[1]:s+n;r.push({interval:[s,l],close:[1,1]})}e.maxOpen&&r.push({interval:[a[1],1/0],close:[0,0]}),r0(r),A(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;A(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),vw(e,r)},pieces:function(r){var e=this.option;A(e.pieces,function(t,a){tt(t)||(t={value:t});var i={text:"",index:a};if(t.label!=null&&(i.text=t.label),t.hasOwnProperty("value")){var n=i.value=t.value;i.interval=[n,n],i.close=[1,1]}else{for(var o=i.interval=[],s=i.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],h=0;h<2;h++){for(var c=[["gte","gt","min"],["lte","lt","max"]][h],v=0;v<3&&o[h]==null;v++)o[h]=t[c[v]],s[h]=l[v],f[h]=v===2;o[h]==null&&(o[h]=u[h])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(i.value=o[0])}i.visual=de.retrieveVisuals(t),r.push(i)},this),vw(e,r),r0(r),A(r,function(t){var a=t.close,i=[["<","\u2264"][a[1]],[">","\u2265"][a[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,i)},this)}};function vw(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var SZ=mZ,xZ=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var a=this.visualMapModel,i=a.get("textGap"),n=a.textStyleModel,o=n.getFont(),s=n.getTextColor(),l=this._getItemAlign(),u=a.itemSize,f=this._getViewData(),h=f.endsText,c=ue(a.get("showLabel",!0),!h);h&&this._renderEndsText(t,h[0],u,c,l),A(f.viewPieceList,function(v){var d=v.piece,p=new at;p.onclick=Y(this._onItemClick,this,d),this._enableHoverLink(p,v.indexInModelPieceList);var g=a.getRepresentValue(d);if(this._createItemSymbol(p,g,[0,0,u[0],u[1]]),c){var y=this.visualMapModel.getValueState(g);p.add(new Tt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:d.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(p)},this),h&&this._renderEndsText(t,h[1],u,c,l),hn(a.get("orient"),t,a.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,a){var i=this;t.on("mouseover",function(){return n("highlight")}).on("mouseout",function(){return n("downplay")});var n=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:_f(s.findTargetDataIndices(a),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,a=t.option;if(a.orient==="vertical")return wL(t,this.api,t.itemSize);var i=a.align;return(!i||i==="auto")&&(i="left"),i},e.prototype._renderEndsText=function(t,a,i,n,o){if(!!a){var s=new at,l=this.visualMapModel.textStyleModel;s.add(new Tt({style:Bt(l,{x:n?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:n?o:"center",text:a})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,a=G(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=t.get("text"),n=t.get("orient"),o=t.get("inverse");return(n==="horizontal"?o:!o)?a.reverse():i&&(i=i.slice().reverse()),{viewPieceList:a,endsText:i}},e.prototype._createItemSymbol=function(t,a,i){t.add(te(this.getControllerVisual(a,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(a,"color")))},e.prototype._onItemClick=function(t){var a=this.visualMapModel,i=a.option,n=i.selectedMode;if(!!n){var o=et(i.selected),s=a.getSelectedMapKey(t);n==="single"||n===!0?(o[s]=!0,A(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(bL),bZ=xZ;function AL(r){r.registerComponentModel(SZ),r.registerComponentView(bZ),TL(r)}function wZ(r){dt(CL),dt(AL)}var TZ={label:{enabled:!0},decal:{show:!1}},cw=Dt(),CZ={};function AZ(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var a=et(TZ);ft(a.label,r.getLocaleModel().get("aria"),!1),ft(t.option,a,!1),i(),n();function i(){var u=t.getModel("decal"),f=u.get("show");if(f){var h=K();r.eachSeries(function(c){if(!c.isColorBySeries()){var v=h.get(c.type);v||(v={},h.set(c.type,v)),cw(c).scope=v}}),r.eachRawSeries(function(c){if(r.isSeriesFiltered(c))return;if(J(c.enableAriaDecal)){c.enableAriaDecal();return}var v=c.getData();if(c.isColorBySeries()){var m=hp(c.ecModel,c.name,CZ,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,m))}else{var d=c.getRawData(),p={},g=cw(c).scope;v.each(function(b){var x=v.getRawIndex(b);p[x]=b});var y=d.count();d.each(function(b){var x=p[b],w=d.getName(b)||b+"",T=hp(c.ecModel,w,g,y),C=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",S(C,T))})}function S(b,x){var w=b?V(V({},x),b):x;return w.dirty=!0,w}})}}function n(){var u=r.getLocaleModel().get("aria"),f=t.getModel("label");if(f.option=Q(f.option,u),!!f.get("enabled")){var h=e.getZr().dom;if(f.get("description")){h.setAttribute("aria-label",f.get("description"));return}var c=r.getSeriesCount(),v=f.get(["data","maxCount"])||10,d=f.get(["series","maxCount"])||10,p=Math.min(c,d),g;if(!(c<1)){var y=s();if(y){var m=f.get(["general","withTitle"]);g=o(m,{title:y})}else g=f.get(["general","withoutTitle"]);var _=[],S=c>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);g+=o(S,{seriesCount:c}),r.eachSeries(function(T,C){if(C<p){var D=void 0,M=T.get("name"),L=M?"withName":"withoutName";D=c>1?f.get(["series","multiple",L]):f.get(["series","single",L]),D=o(D,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var I=T.getData();if(I.count()>v){var P=f.get(["data","partialData"]);D+=o(P,{displayCnt:v})}else D+=f.get(["data","allData"]);for(var R=f.get(["data","separator","middle"]),E=f.get(["data","separator","end"]),N=[],O=0;O<I.count();O++)if(O<v){var B=I.getName(O),F=I.getValues(O),W=f.get(["data",B?"withName":"withoutName"]);N.push(o(W,{name:B,value:F.join(R)}))}D+=N.join(R)+E,_.push(D)}});var b=f.getModel(["series","multiple","separator"]),x=b.get("middle"),w=b.get("end");g+=_.join(x)+w,h.setAttribute("aria-label",g)}}}function o(u,f){if(!U(u))return u;var h=u;return A(f,function(c,v){h=h.replace(new RegExp("\\{\\s*"+v+"\\s*\\}","g"),c)}),h}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){return r.getLocaleModel().get(["series","typeNames"])[u]||"\u81EA\u5B9A\u4E49\u56FE"}}function DZ(r){if(!(!r||!r.aria)){var e=r.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},A(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function MZ(r){r.registerPreprocessor(DZ),r.registerVisual(r.PRIORITY.VISUAL.ARIA,AZ)}var dw={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},LZ=function(){function r(e){var t=this._condVal=U(e)?new RegExp(e):cI(e)?e:null;if(t==null){var a="";Pt(a)}}return r.prototype.evaluate=function(e){var t=typeof e;return U(t)?this._condVal.test(e):Ct(t)?this._condVal.test(e+""):!1},r}(),IZ=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),PZ=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},r}(),RZ=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},r}(),EZ=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),kZ=function(){function r(){}return r.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,a=t(this.valueGetterParam),i=e?this.valueParser(a):null,n=0;n<this.subCondList.length;n++)if(!this.subCondList[n].evaluate(e?i:a))return!1;return!0},r}();function _m(r,e){if(r===!0||r===!1){var t=new IZ;return t.value=r,t}var a="";return DL(r)||Pt(a),r.and?pw("and",r,e):r.or?pw("or",r,e):r.not?OZ(r,e):NZ(r,e)}function pw(r,e,t){var a=e[r],i="";z(a)||Pt(i),a.length||Pt(i);var n=r==="and"?new PZ:new RZ;return n.children=G(a,function(o){return _m(o,t)}),n.children.length||Pt(i),n}function OZ(r,e){var t=r.not,a="";DL(t)||Pt(a);var i=new EZ;return i.child=_m(t,e),i.child||Pt(a),i}function NZ(r,e){for(var t="",a=e.prepareGetValue(r),i=[],n=St(r),o=r.parser,s=o?iA(o):null,l=0;l<n.length;l++){var u=n[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var f=Z(dw,u)?dw[u]:u,h=r[u],c=s?s(h):h,v=yO(f,c)||f==="reg"&&new LZ(c);v||Pt(t),i.push(v)}}i.length||Pt(t);var d=new kZ;return d.valueGetterParam=a,d.valueParser=s,d.getValue=e.getValue,d.subCondList=i,d}function DL(r){return tt(r)&&!xe(r)}var BZ=function(){function r(e,t){this._cond=_m(e,t)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}();function VZ(r,e){return new BZ(r,e)}var zZ={type:"echarts:filter",transform:function(r){for(var e=r.upstream,t,a=VZ(r.config,{valueGetterAttrMap:K({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;Z(s,"dimension")||Pt(l);var f=e.getDimensionInfo(u);return f||Pt(l),{dimIdx:f.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),i=[],n=0,o=e.count();n<o;n++)t=e.getRawDataItem(n),a.evaluate()&&i.push(t);return{data:i}}},GZ={type:"echarts:sort",transform:function(r){var e=r.upstream,t=r.config,a="",i=kt(t);i.length||Pt(a);var n=[];A(i,function(f){var h=f.dimension,c=f.order,v=f.parser,d=f.incomparable;if(h==null&&Pt(a),c!=="asc"&&c!=="desc"&&Pt(a),d&&d!=="min"&&d!=="max"){var p="";Pt(p)}if(c!=="asc"&&c!=="desc"){var g="";Pt(g)}var y=e.getDimensionInfo(h);y||Pt(a);var m=v?iA(v):null;v&&!m&&Pt(a),n.push({dimIdx:y.index,parser:m,comparator:new oA(c,d)})});var o=e.sourceFormat;o!==be&&o!==pr&&Pt(a);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(f,h){for(var c=0;c<n.length;c++){var v=n[c],d=e.retrieveValueFromItem(f,v.dimIdx),p=e.retrieveValueFromItem(h,v.dimIdx);v.parser&&(d=v.parser(d),p=v.parser(p));var g=v.comparator.evaluate(d,p);if(g!==0)return g}return 0}),{data:s}}};function FZ(r){r.registerTransform(zZ),r.registerTransform(GZ)}var HZ=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,a,i){r.prototype.init.call(this,t,a,i),this._sourceManager=new fA(this),g_(this)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),g_(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Ur},e}(wt),$Z=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e}(Yt);function WZ(r){r.registerComponentModel(HZ),r.registerComponentView($Z)}var Or=Kr.CMD;function so(r,e){return Math.abs(r-e)<1e-5}function fg(r){var e=r.data,t=r.len(),a=[],i,n=0,o=0,s=0,l=0;function u(I,P){i&&i.length>2&&a.push(i),i=[I,P]}function f(I,P,R,E){so(I,R)&&so(P,E)||i.push(I,P,R,E,R,E)}function h(I,P,R,E,N,O){var B=Math.abs(P-I),F=Math.tan(B/4)*4/3,W=P<I?-1:1,X=Math.cos(I),j=Math.sin(I),nt=Math.cos(P),Mt=Math.sin(P),Lt=X*N+R,pt=j*O+E,rt=nt*N+R,mt=Mt*O+E,vt=N*F*W,q=O*F*W;i.push(Lt-vt*j,pt+q*X,rt+vt*Mt,mt-q*nt,rt,mt)}for(var c,v,d,p,g=0;g<t;){var y=e[g++],m=g===1;switch(m&&(n=e[g],o=e[g+1],s=n,l=o,(y===Or.L||y===Or.C||y===Or.Q)&&(i=[s,l])),y){case Or.M:n=s=e[g++],o=l=e[g++],u(s,l);break;case Or.L:c=e[g++],v=e[g++],f(n,o,c,v),n=c,o=v;break;case Or.C:i.push(e[g++],e[g++],e[g++],e[g++],n=e[g++],o=e[g++]);break;case Or.Q:c=e[g++],v=e[g++],d=e[g++],p=e[g++],i.push(n+2/3*(c-n),o+2/3*(v-o),d+2/3*(c-d),p+2/3*(v-p),d,p),n=d,o=p;break;case Or.A:var _=e[g++],S=e[g++],b=e[g++],x=e[g++],w=e[g++],T=e[g++]+w;g+=1;var C=!e[g++];c=Math.cos(w)*b+_,v=Math.sin(w)*x+S,m?(s=c,l=v,u(s,l)):f(n,o,c,v),n=Math.cos(T)*b+_,o=Math.sin(T)*x+S;for(var D=(C?-1:1)*Math.PI/2,M=w;C?M>T:M<T;M+=D){var L=C?Math.max(M+D,T):Math.min(M+D,T);h(M,L,_,S,b,x)}break;case Or.R:s=n=e[g++],l=o=e[g++],c=s+e[g++],v=l+e[g++],u(c,l),f(c,l,c,v),f(c,v,s,v),f(s,v,s,l),f(s,l,c,l);break;case Or.Z:i&&f(n,o,s,l),n=s,o=l;break}}return i&&i.length>2&&a.push(i),a}function hg(r,e,t,a,i,n,o,s,l,u){if(so(r,t)&&so(e,a)&&so(i,o)&&so(n,s)){l.push(o,s);return}var f=2/u,h=f*f,c=o-r,v=s-e,d=Math.sqrt(c*c+v*v);c/=d,v/=d;var p=t-r,g=a-e,y=i-o,m=n-s,_=p*p+g*g,S=y*y+m*m;if(_<h&&S<h){l.push(o,s);return}var b=c*p+v*g,x=-c*y-v*m,w=_-b*b,T=S-x*x;if(w<h&&b>=0&&T<h&&x>=0){l.push(o,s);return}var C=[],D=[];ei(r,t,i,o,.5,C),ei(e,a,n,s,.5,D),hg(C[0],D[0],C[1],D[1],C[2],D[2],C[3],D[3],l,u),hg(C[4],D[4],C[5],D[5],C[6],D[6],C[7],D[7],l,u)}function UZ(r,e){var t=fg(r),a=[];e=e||1;for(var i=0;i<t.length;i++){var n=t[i],o=[],s=n[0],l=n[1];o.push(s,l);for(var u=2;u<n.length;){var f=n[u++],h=n[u++],c=n[u++],v=n[u++],d=n[u++],p=n[u++];hg(s,l,f,h,c,v,d,p,o,e),s=d,l=p}a.push(o)}return a}function ML(r,e,t){var a=r[e],i=r[1-e],n=Math.abs(a/i),o=Math.ceil(Math.sqrt(n*t)),s=Math.floor(t/o);s===0&&(s=1,o=t);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,h=t-f;if(h>0)for(var u=0;u<h;u++)l[u%o]+=1;return l}function gw(r,e,t){for(var a=r.r0,i=r.r,n=r.startAngle,o=r.endAngle,s=Math.abs(o-n),l=s*i,u=i-a,f=l>Math.abs(u),h=ML([l,u],f?0:1,e),c=(f?s:u)/h.length,v=0;v<h.length;v++)for(var d=(f?u:s)/h[v],p=0;p<h[v];p++){var g={};f?(g.startAngle=n+c*v,g.endAngle=n+c*(v+1),g.r0=a+d*p,g.r=a+d*(p+1)):(g.startAngle=n+d*p,g.endAngle=n+d*(p+1),g.r0=a+c*v,g.r=a+c*(v+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,t.push(g)}}function YZ(r,e,t){for(var a=r.width,i=r.height,n=a>i,o=ML([a,i],n?0:1,e),s=n?"width":"height",l=n?"height":"width",u=n?"x":"y",f=n?"y":"x",h=r[s]/o.length,c=0;c<o.length;c++)for(var v=r[l]/o[c],d=0;d<o[c];d++){var p={};p[u]=c*h,p[f]=d*v,p[s]=h,p[l]=v,p.x+=r.x,p.y+=r.y,t.push(p)}}function yw(r,e,t,a){return r*a-t*e}function ZZ(r,e,t,a,i,n,o,s){var l=t-r,u=a-e,f=o-i,h=s-n,c=yw(f,h,l,u);if(Math.abs(c)<1e-6)return null;var v=r-i,d=e-n,p=yw(v,d,f,h)/c;return p<0||p>1?null:new lt(p*l+r,p*u+e)}function XZ(r,e,t){var a=new lt;lt.sub(a,t,e),a.normalize();var i=new lt;lt.sub(i,r,e);var n=i.dot(a);return n}function Kn(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function qZ(r,e,t){for(var a=r.length,i=[],n=0;n<a;n++){var o=r[n],s=r[(n+1)%a],l=ZZ(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&i.push({projPt:XZ(l,e,t),pt:l,idx:n})}if(i.length<2)return[{points:r},{points:r}];i.sort(function(g,y){return g.projPt-y.projPt});var u=i[0],f=i[i.length-1];if(f.idx<u.idx){var h=u;u=f,f=h}for(var c=[u.pt.x,u.pt.y],v=[f.pt.x,f.pt.y],d=[c],p=[v],n=u.idx+1;n<=f.idx;n++)Kn(d,r[n].slice());Kn(d,v),Kn(d,c);for(var n=f.idx+1;n<=u.idx+a;n++)Kn(p,r[n%a].slice());return Kn(p,c),Kn(p,v),[{points:d},{points:p}]}function mw(r){var e=r.points,t=[],a=[];Ah(e,t,a);var i=new ht(t[0],t[1],a[0]-t[0],a[1]-t[1]),n=i.width,o=i.height,s=i.x,l=i.y,u=new lt,f=new lt;return n>o?(u.x=f.x=s+n/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+n),qZ(e,u,f)}function vh(r,e,t,a){if(t===1)a.push(e);else{var i=Math.floor(t/2),n=r(e);vh(r,n[0],i,a),vh(r,n[1],t-i,a)}return a}function KZ(r,e){for(var t=[],a=0;a<e;a++)t.push(Ng(r));return t}function JZ(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function QZ(r){for(var e=[],t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}function jZ(r,e){var t=[],a=r.shape,i;switch(r.type){case"rect":YZ(a,e,t),i=bt;break;case"sector":gw(a,e,t),i=Ve;break;case"circle":gw({r0:0,r:a.r,startAngle:0,endAngle:Math.PI*2,cx:a.cx,cy:a.cy},e,t),i=Ve;break;default:var n=r.getComputedTransform(),o=n?Math.sqrt(Math.max(n[0]*n[0]+n[1]*n[1],n[2]*n[2]+n[3]*n[3])):1,s=G(UZ(r.getUpdatedPathProxy(),o),function(y){return QZ(y)}),l=s.length;if(l===0)vh(mw,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var f=0,h=G(s,function(y){var m=[],_=[];Ah(y,m,_);var S=(_[1]-m[1])*(_[0]-m[0]);return f+=S,{poly:y,area:S}});h.sort(function(y,m){return m.area-y.area});for(var c=e,u=0;u<l;u++){var v=h[u];if(c<=0)break;var d=u===l-1?c:Math.ceil(v.area/f*e);d<0||(vh(mw,{points:v.poly},d,t),c-=d)}}i=ze;break}if(!i)return KZ(r,e);for(var p=[],u=0;u<t.length;u++){var g=new i;g.setShape(t[u]),JZ(r,g),p.push(g)}return p}function tX(r,e){var t=r.length,a=e.length;if(t===a)return[r,e];for(var i=[],n=[],o=t<a?r:e,s=Math.min(t,a),l=Math.abs(a-t)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,h=[o[0],o[1]],c=l,v=2;v<s;){var d=o[v-2],p=o[v-1],g=o[v++],y=o[v++],m=o[v++],_=o[v++],S=o[v++],b=o[v++];if(c<=0){h.push(g,y,m,_,S,b);continue}for(var x=Math.min(c,f-1)+1,w=1;w<=x;w++){var T=w/x;ei(d,g,m,S,T,i),ei(p,y,_,b,T,n),d=i[3],p=n[3],h.push(i[1],n[1],i[2],n[2],d,p),g=i[5],y=n[5],m=i[6],_=n[6]}c-=x-1}return o===r?[h,e]:[r,h]}function _w(r,e){for(var t=r.length,a=r[t-2],i=r[t-1],n=[],o=0;o<e.length;)n[o++]=a,n[o++]=i;return n}function eX(r,e){for(var t,a,i,n=[],o=[],s=0;s<Math.max(r.length,e.length);s++){var l=r[s],u=e[s],f=void 0,h=void 0;l?u?(t=tX(l,u),f=t[0],h=t[1],a=f,i=h):(h=_w(i||l,l),f=l):(f=_w(a||u,u),h=u),n.push(f),o.push(h)}return[n,o]}function Sw(r){for(var e=0,t=0,a=0,i=r.length,n=0,o=i-2;n<i;o=n,n+=2){var s=r[o],l=r[o+1],u=r[n],f=r[n+1],h=s*f-u*l;e+=h,t+=(s+u)*h,a+=(l+f)*h}return e===0?[r[0]||0,r[1]||0]:[t/e/3,a/e/3,e]}function rX(r,e,t,a){for(var i=(r.length-2)/6,n=1/0,o=0,s=r.length,l=s-2,u=0;u<i;u++){for(var f=u*6,h=0,c=0;c<s;c+=2){var v=c===0?f:(f+c-2)%l+2,d=r[v]-t[0],p=r[v+1]-t[1],g=e[c]-a[0],y=e[c+1]-a[1],m=g-d,_=y-p;h+=m*m+_*_}h<n&&(n=h,o=u)}return o}function aX(r){for(var e=[],t=r.length,a=0;a<t;a+=2)e[a]=r[t-a-2],e[a+1]=r[t-a-1];return e}function iX(r,e,t,a){for(var i=[],n,o=0;o<r.length;o++){var s=r[o],l=e[o],u=Sw(s),f=Sw(l);n==null&&(n=u[2]<0!=f[2]<0);var h=[],c=[],v=0,d=1/0,p=[],g=s.length;n&&(s=aX(s));for(var y=rX(s,l,u,f)*6,m=g-2,_=0;_<m;_+=2){var S=(y+_)%m+2;h[_+2]=s[S]-u[0],h[_+3]=s[S+1]-u[1]}if(h[0]=s[y]-u[0],h[1]=s[y+1]-u[1],t>0)for(var b=a/t,x=-a/2;x<=a/2;x+=b){for(var w=Math.sin(x),T=Math.cos(x),C=0,_=0;_<s.length;_+=2){var D=h[_],M=h[_+1],L=l[_]-f[0],I=l[_+1]-f[1],P=L*T-I*w,R=L*w+I*T;p[_]=P,p[_+1]=R;var E=P-D,N=R-M;C+=E*E+N*N}if(C<d){d=C,v=x;for(var O=0;O<p.length;O++)c[O]=p[O]}}else for(var B=0;B<g;B+=2)c[B]=l[B]-f[0],c[B+1]=l[B+1]-f[1];i.push({from:h,to:c,fromCp:u,toCp:f,rotation:-v})}return i}function ch(r){return r.__isCombineMorphing}var LL="__mOriginal_";function dh(r,e,t){var a=LL+e,i=r[a]||r[e];r[a]||(r[a]=r[e]);var n=t.replace,o=t.after,s=t.before;r[e]=function(){var l=arguments,u;return s&&s.apply(this,l),n?u=n.apply(this,l):u=i.apply(this,l),o&&o.apply(this,l),u}}function Xs(r,e){var t=LL+e;r[t]&&(r[e]=r[t],r[t]=null)}function xw(r,e){for(var t=0;t<r.length;t++)for(var a=r[t],i=0;i<a.length;){var n=a[i],o=a[i+1];a[i++]=e[0]*n+e[2]*o+e[4],a[i++]=e[1]*n+e[3]*o+e[5]}}function IL(r,e){var t=r.getUpdatedPathProxy(),a=e.getUpdatedPathProxy(),i=eX(fg(t),fg(a)),n=i[0],o=i[1],s=r.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&xw(n,s),l&&xw(o,l),dh(e,"updateTransform",{replace:u}),e.transform=null;var f=iX(n,o,10,Math.PI),h=[];dh(e,"buildPath",{replace:function(c){for(var v=e.__morphT,d=1-v,p=[],g=0;g<f.length;g++){var y=f[g],m=y.from,_=y.to,S=y.rotation*v,b=y.fromCp,x=y.toCp,w=Math.sin(S),T=Math.cos(S);tf(p,b,x,v);for(var C=0;C<m.length;C+=2){var D=m[C],M=m[C+1],L=_[C],I=_[C+1],P=D*d+L*v,R=M*d+I*v;h[C]=P*T-R*w+p[0],h[C+1]=P*w+R*T+p[1]}var E=h[0],N=h[1];c.moveTo(E,N);for(var C=2;C<m.length;){var L=h[C++],I=h[C++],O=h[C++],B=h[C++],F=h[C++],W=h[C++];E===L&&N===I&&O===F&&B===W?c.lineTo(F,W):c.bezierCurveTo(L,I,O,B,F,W),E=F,N=W}}}})}function Sm(r,e,t){if(!r||!e)return e;var a=t.done,i=t.during;IL(r,e),e.__morphT=0;function n(){Xs(e,"buildPath"),Xs(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},Q({during:function(o){e.dirtyShape(),i&&i(o)},done:function(){n(),a&&a()}},t)),e}function nX(r,e,t,a,i,n){var o=16;r=i===t?0:Math.round(32767*(r-t)/(i-t)),e=n===a?0:Math.round(32767*(e-a)/(n-a));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,h=0;(r&u)>0&&(f=1),(e&u)>0&&(h=1),s+=u*u*(3*f^h),h===0&&(f===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function ph(r){var e=1/0,t=1/0,a=-1/0,i=-1/0,n=G(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),h=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),t=Math.min(h,t),a=Math.max(f,a),i=Math.max(h,i),[f,h]}),o=G(n,function(s,l){return{cp:s,z:nX(s[0],s[1],e,t,a,i),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function PL(r){return jZ(r.path,r.count)}function vg(){return{fromIndividuals:[],toIndividuals:[],count:0}}function oX(r,e,t){var a=[];function i(b){for(var x=0;x<b.length;x++){var w=b[x];ch(w)?i(w.childrenRef()):w instanceof yt&&a.push(w)}}i(r);var n=a.length;if(!n)return vg();var o=t.dividePath||PL,s=o({path:e,count:n});if(s.length!==n)return console.error("Invalid morphing: unmatched splitted path"),vg();a=ph(a),s=ph(s);for(var l=t.done,u=t.during,f=t.individualDelay,h=new oa,c=0;c<n;c++){var v=a[c],d=s[c];d.parent=e,d.copyTransform(h),f||IL(v,d)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function p(b){for(var x=0;x<s.length;x++)s[x].addSelfToZr(b)}dh(e,"addSelfToZr",{after:function(b){p(b)}}),dh(e,"removeSelfFromZr",{after:function(b){for(var x=0;x<s.length;x++)s[x].removeSelfFromZr(b)}});function g(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Xs(e,"addSelfToZr"),Xs(e,"removeSelfFromZr")}var y=s.length;if(f)for(var m=y,_=function(){m--,m===0&&(g(),l&&l())},c=0;c<y;c++){var S=f?Q({delay:(t.delay||0)+f(c,y,a[c],s[c]),done:_},t):t;Sm(a[c],s[c],S)}else e.__morphT=0,e.animateTo({__morphT:1},Q({during:function(b){for(var x=0;x<y;x++){var w=s[x];w.__morphT=e.__morphT,w.dirtyShape()}u&&u(b)},done:function(){g();for(var b=0;b<r.length;b++)Xs(r[b],"updateTransform");l&&l()}},t));return e.__zr&&p(e.__zr),{fromIndividuals:a,toIndividuals:s,count:y}}function sX(r,e,t){var a=e.length,i=[],n=t.dividePath||PL;function o(v){for(var d=0;d<v.length;d++){var p=v[d];ch(p)?o(p.childrenRef()):p instanceof yt&&i.push(p)}}if(ch(r)){o(r.childrenRef());var s=i.length;if(s<a)for(var l=0,u=s;u<a;u++)i.push(Ng(i[l++%s]));i.length=a}else{i=n({path:r,count:a});for(var f=r.getComputedTransform(),u=0;u<i.length;u++)i[u].setLocalTransform(f);if(i.length!==a)return console.error("Invalid morphing: unmatched splitted path"),vg()}i=ph(i),e=ph(e);for(var h=t.individualDelay,u=0;u<a;u++){var c=h?Q({delay:(t.delay||0)+h(u,a,i[u],e[u])},t):t;Sm(i[u],e[u],c)}return{fromIndividuals:i,toIndividuals:e,count:e.length}}function bw(r){return z(r[0])}function ww(r,e){for(var t=[],a=r.length,i=0;i<a;i++)t.push({one:r[i],many:[]});for(var i=0;i<e.length;i++){var n=e[i].length,o=void 0;for(o=0;o<n;o++)t[o%a].many.push(e[i][o])}for(var s=0,i=a-1;i>=0;i--)if(!t[i].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var n=l.length,u=Math.ceil(n/2);t[i].many=l.slice(u,n),t[s].many=l.slice(0,u),s++}return t}var lX={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a<r.count;a++){var i=Ng(r.path);i.setStyle("opacity",t),e.push(i)}return e},split:null};function Td(r,e,t,a,i,n){if(!r.length||!e.length)return;var o=Ro("update",a,i);if(!(o&&o.duration>0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;bw(r)&&(u=r,f=e),bw(e)&&(u=e,f=r);function h(y,m,_,S,b){var x=y.many,w=y.one;if(x.length===1&&!b){var T=m?x[0]:w,C=m?w:x[0];if(ch(T))h({many:[T],one:C},!0,_,S,!0);else{var D=s?Q({delay:s(_,S)},l):l;Sm(T,C,D),n(T,C,T,C,D)}}else for(var M=Q({dividePath:lX[t],individualDelay:s&&function(N,O,B,F){return s(N+_,S)}},l),L=m?oX(x,w,M):sX(w,x,M),I=L.fromIndividuals,P=L.toIndividuals,R=I.length,E=0;E<R;E++){var D=s?Q({delay:s(E,R)},l):l;n(I[E],P[E],m?x[E]:y.one,m?y.one:x[E],D)}}for(var c=u?u===r:r.length>e.length,v=u?ww(f,u):ww(c?e:r,[c?r:e]),d=0,p=0;p<v.length;p++)d+=v[p].many.length;for(var g=0,p=0;p<v.length;p++)h(v[p],c,g,d),g+=v[p].many.length}function Yi(r){if(!r)return[];if(z(r)){for(var e=[],t=0;t<r.length;t++)e.push(Yi(r[t]));return e}var a=[];return r.traverse(function(i){i instanceof yt&&!i.disableMorphing&&!i.invisible&&!i.ignore&&a.push(i)}),a}var RL=1e4,uX=Dt();function fX(r){for(var e=r.dimensions,t=0;t<e.length;t++){var a=r.getDimensionInfo(e[t]);if(a&&a.otherDims.itemGroupId===0)return e[t]}}function Tw(r){var e=[];return A(r,function(t){var a=t.data;if(!(a.count()>RL))for(var i=a.getIndices(),n=fX(a),o=0;o<i.length;o++)e.push({data:a,dim:t.dim||n,divide:t.divide,dataIndex:o})}),e}function Cd(r,e,t){r.traverse(function(a){a instanceof yt&&Ft(a,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function Ad(r){if(r.parent){var e=r.getComputedTransform();r.setLocalTransform(e),r.parent.remove(r)}}function Jn(r){r.stopAnimation(),r.isGroup&&r.traverse(function(e){e.stopAnimation()})}function hX(r,e,t){var a=Ro("update",t,e);a&&r.traverse(function(i){if(i instanceof vr){var n=KE(i);n&&i.animateFrom({style:n},a)}})}function vX(r,e){var t=r.length;if(t!==e.length)return!1;for(var a=0;a<t;a++){var i=r[a],n=e[a];if(i.data.getId(i.dataIndex)!==n.data.getId(n.dataIndex))return!1}return!0}function EL(r,e,t){var a=Tw(r),i=Tw(e);function n(y,m,_,S,b){(_||y)&&m.animateFrom({style:_&&_!==y?V(V({},_.style),y.style):y.style},b)}function o(y){for(var m=0;m<y.length;m++)if(y[m].dim)return y[m].dim}var s=o(a),l=o(i),u=!1;function f(y,m){return function(_){var S=_.data,b=_.dataIndex;if(m)return S.getId(b);var x=S.hostModel&&S.hostModel.get("dataGroupId"),w=y?s||l:l||s,T=w&&S.getDimensionInfo(w),C=T&&T.ordinalMeta;if(T){var D=S.get(T.name,b);return C&&C.categories[D]||D+""}var M=S.getRawDataItem(b);return M&&M.groupId?M.groupId+"":x||S.getId(b)}}var h=vX(a,i),c={};if(!h)for(var v=0;v<i.length;v++){var d=i[v],p=d.data.getItemGraphicEl(d.dataIndex);p&&(c[p.id]=!0)}function g(y,m){var _=a[m],S=i[y],b=S.data.hostModel,x=_.data.getItemGraphicEl(_.dataIndex),w=S.data.getItemGraphicEl(S.dataIndex);if(x===w){w&&hX(w,S.dataIndex,b);return}x&&c[x.id]||w&&(Jn(w),x?(Jn(x),Ad(x),u=!0,Td(Yi(x),Yi(w),S.divide,b,y,n)):Cd(w,b,y))}new Sa(a,i,f(!0,h),f(!1,h),null,"multiple").update(g).updateManyToOne(function(y,m){var _=i[y],S=_.data,b=S.hostModel,x=S.getItemGraphicEl(_.dataIndex),w=Et(G(m,function(T){return a[T].data.getItemGraphicEl(a[T].dataIndex)}),function(T){return T&&T!==x&&!c[T.id]});x&&(Jn(x),w.length?(A(w,function(T){Jn(T),Ad(T)}),u=!0,Td(Yi(w),Yi(x),_.divide,b,y,n)):Cd(x,b,_.dataIndex))}).updateOneToMany(function(y,m){var _=a[m],S=_.data.getItemGraphicEl(_.dataIndex);if(!(S&&c[S.id])){var b=Et(G(y,function(w){return i[w].data.getItemGraphicEl(i[w].dataIndex)}),function(w){return w&&w!==S}),x=i[y[0]].data.hostModel;b.length&&(A(b,function(w){return Jn(w)}),S?(Jn(S),Ad(S),u=!0,Td(Yi(S),Yi(b),_.divide,x,y[0],n)):A(b,function(w){return Cd(w,x,y[0])}))}}).updateManyToMany(function(y,m){new Sa(m,y,function(_){return a[_].data.getId(a[_].dataIndex)},function(_){return i[_].data.getId(i[_].dataIndex)}).update(function(_,S){g(y[_],m[S])}).execute()}).execute(),u&&A(e,function(y){var m=y.data,_=m.hostModel,S=_&&t.getViewOfSeriesModel(_),b=Ro("update",_,0);S&&_.isAnimationEnabled()&&b&&b.duration>0&&S.group.traverse(function(x){x instanceof yt&&!x.animators.length&&x.animateFrom({style:{opacity:0}},b)})})}function Cw(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function Aw(r){return z(r)?r.sort().join(","):r}function za(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function cX(r,e){var t=K(),a=K(),i=K();return A(r.oldSeries,function(n,o){var s=r.oldData[o],l=Cw(n),u=Aw(l);a.set(u,s),z(l)&&A(l,function(f){i.set(f,{data:s,key:u})})}),A(e.updatedSeries,function(n){if(n.isUniversalTransitionEnabled()&&n.isAnimationEnabled()){var o=n.getData(),s=Cw(n),l=Aw(s),u=a.get(l);if(u)t.set(l,{oldSeries:[{divide:za(u),data:u}],newSeries:[{divide:za(o),data:o}]});else if(z(s)){var f=[];A(s,function(v){var d=a.get(v);d&&f.push({divide:za(d),data:d})}),f.length&&t.set(l,{oldSeries:f,newSeries:[{data:o,divide:za(o)}]})}else{var h=i.get(s);if(h){var c=t.get(h.key);c||(c={oldSeries:[{data:h.data,divide:za(h.data)}],newSeries:[]},t.set(h.key,c)),c.newSeries.push({data:o,divide:za(o)})}}}}),t}function Dw(r,e){for(var t=0;t<r.length;t++){var a=e.seriesIndex!=null&&e.seriesIndex===r[t].seriesIndex||e.seriesId!=null&&e.seriesId===r[t].id;if(a)return t}}function dX(r,e,t,a){var i=[],n=[];A(kt(r.from),function(o){var s=Dw(e.oldSeries,o);s>=0&&i.push({data:e.oldData[s],divide:za(e.oldData[s]),dim:o.dimension})}),A(kt(r.to),function(o){var s=Dw(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();n.push({data:l,divide:za(l),dim:o.dimension})}}),i.length>0&&n.length>0&&EL(i,n,a)}function pX(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){A(kt(a.seriesTransition),function(i){A(kt(i.to),function(n){for(var o=a.updatedSeries,s=0;s<o.length;s++)(n.seriesIndex!=null&&n.seriesIndex===o[s].seriesIndex||n.seriesId!=null&&n.seriesId===o[s].id)&&(o[s][cf]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(e,t,a){var i=uX(t);if(i.oldSeries&&a.updatedSeries&&a.optionChanged){var n=a.seriesTransition;if(n)A(kt(n),function(c){dX(c,i,a,t)});else{var o=cX(i,a);A(o.keys(),function(c){var v=o.get(c);EL(v.oldSeries,v.newSeries,t)})}A(a.updatedSeries,function(c){c[cf]&&(c[cf]=!1)})}for(var s=e.getSeries(),l=i.oldSeries=[],u=i.oldData=[],f=0;f<s.length;f++){var h=s[f].getData();h.count()<RL&&(l.push(s[f]),u.push(h))}})}dt([E5]);dt([A5]);dt([az,xz,Ez,S3,B3,PG,lF,XF,b4,P4,H4,YH,_$,E$,Q$,nW,wW,EW,YW,t6,c6,Q6]);dt(x9);dt(e8);dt(MM);dt(m8);dt(d2);dt(C8);dt(k8);dt(OU);dt(i7);dt(Zl);dt(T7);dt(D7);dt(H7);dt(Q7);dt(oY);dt(dY);dt(MY);dt(KY);dt(_L);dt(SL);dt(wZ);dt(CL);dt(AL);dt(MZ);dt(FZ);dt(WZ);dt(pX);dt(UV);const Wo=r=>(Co("data-v-63aa4060"),r=r(),Ao(),r),gX={class:"tab"},yX=["onClick"],mX=Wo(()=>$("div",{style:{height:"16px"}},null,-1)),_X={class:"btnsWrap"},SX=YL("\u641C\u7D22"),xX=Wo(()=>$("div",{style:{height:"15vh"}},null,-1)),bX={class:"numBox"},wX={class:"val"},TX=Wo(()=>$("div",{class:"des"},"\u4E13\u5229\u6570\u91CF",-1)),CX={class:"val"},AX=Wo(()=>$("div",{class:"des"},"\u4E13\u5BB6\u6570\u91CF",-1)),DX={class:"val"},MX=Wo(()=>$("div",{class:"des"},"\u9700\u6C42\u6570\u91CF",-1)),LX={class:"val"},IX=Wo(()=>$("div",{class:"des"},"\u4F01\u4E1A\u6570\u91CF",-1)),PX={__name:"index1",setup(r){const e=WL(),t=la({queryType:void 0,keyword:"",queryType:"2"}),a=la({queryType:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u641C\u7D22\u7C7B\u578B"}],keyword:[{required:!0,trigger:"blur",message:"\u8BF7\u9009\u62E9\u641C\u7D22\u5173\u952E\u8BCD"}]}),i=Rs(),n=Rs(["enterprise","achievement","lab","patent","expert","technologyDemand"]),o=async(f,h,c)=>{console.log(f),await i.value.validate();const v=e.resolve({path:`/searchList/${f}`,query:{keyword:h,queryType:c}});e.push(v)};function s(){o(n.value[l.tabIndex],t.keyword,t.queryType)}const l=la({keyword:"",tabList:["\u627E\u4F01\u4E1A","\u627E\u6210\u679C","\u627E\u5B9E\u9A8C\u5BA4","\u627E\u4E13\u5229","\u627E\u4E13\u5BB6","\u63A5\u9700\u6C42"],tabIndex:0,banner:"",data:{expert_count:0,company_count:0,patent_count:0,achievement_count:0,demand_count:0,docking_count:0}}),u=f=>{l.tabIndex=f,i.value.resetFields("queryType")};return To(()=>{kL({locals:"\u9996\u9875\u80CC\u666F"}).then(f=>{l.banner=f.data[0].images}),OL().then(f=>{l.data=f.data})}),(f,h)=>{const c=Da("el-col"),v=Da("el-row");Da("el-option"),Da("el-select");const d=Da("el-form-item"),p=Da("el-input"),g=Da("el-button"),y=Da("el-form");return gt(),_t("div",{class:"box",style:Lw([{"background-size":"cover","background-color":"#fff"},{backgroundImage:l.banner?`url(${l.banner})`:""}])},[$("div",null,[je(v,null,{default:Ir(()=>[je(c,{push:4,sm:10,md:12},{default:Ir(()=>[$("div",gX,[(gt(!0),_t(Ye,null,Ze(l.tabList,(m,_)=>(gt(),_t("div",{class:Mw({active:l.tabIndex==_}),onClick:S=>u(_)},Xt(m),11,yX))),256))])]),_:1})]),_:1}),mX,je(y,{model:t,rules:a,ref_key:"queryRef",ref:i},{default:Ir(()=>[je(v,null,{default:Ir(()=>[je(c,{push:4,sm:10,md:12},{default:Ir(()=>[je(d,{prop:"keyword"},{default:Ir(()=>[je(p,{modelValue:t.keyword,"onUpdate:modelValue":h[1]||(h[1]=m=>t.keyword=m),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u68C0\u7D22\u8BCD"},UL({_:2},[void 0]),1032,["modelValue"])]),_:1})]),_:1}),je(c,{push:4,sm:10,md:8},{default:Ir(()=>[$("div",_X,[je(g,{class:"x_btns",type:"primary",icon:"Search",onClick:s},{default:Ir(()=>[SX]),_:1})])]),_:1})]),_:1})]),_:1},8,["model","rules"]),xX,je(v,null,{default:Ir(()=>[je(c,{push:3,pull:3,span:18},{default:Ir(()=>[$("div",bX,[$("div",null,[$("div",wX,Xt(l.data.patent_count),1),TX]),$("div",null,[$("div",CX,Xt(l.data.expert_count),1),AX]),$("div",null,[$("div",DX,Xt(l.data.demand_count),1),MX]),$("div",null,[$("div",LX,Xt(l.data.company_count),1),IX])])]),_:1})]),_:1})])],4)}}};var RX=wn(PX,[["__scopeId","data-v-63aa4060"]]);var iv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB8AAAAWCAYAAAA4oUfxAAABw0lEQVRIS72WIUhdcRTGfx8YDAsLBoOgwsKCMqttTRZFw8rYBINB2GDFgUGZsDKYsGARtIyVhQ0WBioWo+GZpmAwLBoMCwuDT47cK/fd957vf9/zvVNeeOec7/y//3e++xcJYXsQeAucSfqWUJKUonZZtueAj8AYsCBpt11N6v8twW0/ATaBp4VmvQW3PQS8BxaBgdIpegNuO4BeA6vAwxbUfQdqqbQCf4BjSSfNam5otz2TUfy4QuMqqafAhqQvxSLZ/gwsV+nURW4w90LS3+gR4Cl0d4HXULoPPJP0/1btmdA+AK+aCC3vcAScJ04yDEwAI03y1yStN6ya7SngU2nF8vrKarc9D+wADwpD/APG79rz50AwEebSMXgm6PCKvRKjb+50uIKtrmSTVz55PrXtr0AcKI+fbe01mzzuLVg46NRebS8BWwXwWhJ4YfqBUGmi4OrSbIeQ4+7zOK0E3gloYfCyn+z3Bdx2XNvvkuLXeg5uexT4BZSte7JrcNuxii9bXMkjIPY8HiPF2JW0cB/gscOHFfQQDjkt6bLf4PF1m5UUv/QLPNZzG3gn6Spn6T7A829BM+Yv4jEB/JAUD4u6uAYooZFFZ75IMwAAAABJRU5ErkJggg==";const hi=r=>(Co("data-v-dd7a5c24"),r=r(),Ao(),r),EX={class:"box3"},kX=hi(()=>$("div",{class:"tit"},"\u4E13\u5BB6\u5206\u5E03\u5730\u56FE",-1)),OX=hi(()=>$("img",{src:iv},null,-1)),NX=[OX],BX={ref:"map",class:"map echartsDom",id:"map"},VX={class:"leftBox"},zX=hi(()=>$("div",{class:"head"},[$("div",{class:"a"},"\u5730\u533A"),$("div",{class:"b"},"\u4E13\u5BB6\u6570\u91CF")],-1)),GX={class:"a"},FX={class:"b"},HX={key:1},$X=hi(()=>$("div",{class:"a"},"\u6682\u65E0",-1)),WX=hi(()=>$("div",{class:"b"},"\u6682\u65E0",-1)),UX=[$X,WX],YX={class:"rightBox"},ZX=hi(()=>$("div",{class:"head"},[$("div",{class:"a"},"\u9886\u57DF"),$("div",{class:"b"},"\u4E13\u5BB6\u6570\u91CF")],-1)),XX=["title"],qX={class:"b"},KX={key:1},JX=hi(()=>$("div",{class:"a"},"\u6682\u65E0",-1)),QX=hi(()=>$("div",{class:"b"},"\u6682\u65E0",-1)),jX=[JX,QX],tq={__name:"index3",setup(r){const{proxy:e}=gh(),t=le(!0);let a={};const i=le({}),n=le({}),o=async(d,p)=>{var g,y,m,_;if(p=="province"){const S=d.substring(0,2)+"0000";let b={};if(i.value.length&&i.value[0].code.substring(0,2)==d.substring(0,2)&&i.value[0].code.substring(2,4)!=d.substring(2,4))b=i.value;else{const x=await NL(S);i.value=x.count,n.value=(g=x.industry)!=null?g:{},b=x.count}return b.find(x=>x.code==d)||!1}else if(p=="city"){const S=d.substring(0,4)+"00";let b={};if(i.value.length&&i.value[0].code.substring(0,4)==d.substring(0,4)&&i.value[0].code.substring(4,6)!=d.substring(4,6))b=i.value;else{const x=await BL(S);i.value=x.count,n.value=(y=x.industry)!=null?y:{},b=x.count}return b.find(x=>x.code==d)||!1}else{if(Object.keys(a).length)return n.value=(m=a.industry)!=null?m:{},i.value=(_=a.count)!=null?_:{},a.count.find(S=>S.code==d)||!1;{const{count:S,industry:b}=await bm();return n.value=b!=null?b:{},S.find(x=>x.code==d)||!1}}},s=la({loading:!1,isShowGoBack:!1,nameType:"",cityName:"china",areaCode:1e4,AreaCodeStack:["\u4E2D\u56FD"],geoJsonData:"",echartsMap:null,map:null,uimap:null,district:null,polygons:[],cityCode:"100000",citySelect:null,districtSelect:null,opts:{},areaData:{},mapData:[],zip:{},codeList:[],isCodeListLoadComplete:!1,downloadTips:"\u4E0B\u8F7DgeoJson\u6570\u636E",isShowTips:!1}),l=d=>{const p={};for(const g of d)p[g.code]=g;return p};To(()=>{bm().then(y=>{var m;a=y,i.value=y.count,n.value=(m=y.industry)!=null?m:{},t.value=!1});let d=document.body.clientHeight,p=document.body.clientWidth,g=e.$refs.map;g.style.width=p+"px",g.style.height=d-80+"px",s.echartsMap=Wh(g),s.echartsMap.on("click",f),setTimeout(()=>{s.map=new AMap.Map("container",{resizeEnable:!0,center:[116.30946,39.937629],zoom:3}),s.opts={subdistrict:1,showbiz:!1},s.district=new AMap.DistrictSearch(s.opts),s.district.search("\u4E2D\u56FD",(y,m)=>{y=="complete"&&h(m.districtList[0],"",1e5)})},1e3)});function u(){s.isShowGoBack=!1,t.value=!0,s.district.search("\u4E2D\u56FD",async(d,p)=>{d=="complete"&&(await h(p.districtList[0],"",1e5),i.value=l(a.count))})}async function f(d){d.data.cityCode!="710000"&&d.data.level!="district"&&d.data.level!="street"&&(console.log(d.data.level,d.data.cityCode),await o(d.data.cityCode,d.data.level),s.cityCode=d.data.cityCode,s.cityName=d.data.name,s.district.setLevel(d.data.level),s.district.setExtensions("all"),s.isShowGoBack=!0,t.value=!0,s.district.search(s.cityCode,(p,g)=>{if(p==="complete"){if(d.data.level=="district")return;s.AreaCodeStack.push(g.districtList[0].adcode),h(g.districtList[0],d.data.level,s.cityCode)}}))}async function h(d,p,g){var y=d.districtList;if(y){var m=y[0].level;if(m==="street"){let w=s.geoJsonData.features,T={};for(let D in w)w[D].properties.name==s.cityName&&(T.features=[].concat(w[D]));s.mapData=[];let C=await o(x,p);C&&console.log("1 searchRegionData(cityCode)",C),s.mapData.push({name:s.cityName,value:C?C.count:0,level:m}),v(s.cityName,T),s.geoJsonData=T;return}s.mapData=[];for(var _=0,S=y.length;_<S;_++){var b=y[_].name,x=y[_].adcode;let w=await o(x,p);w&&console.log("2 searchRegionData(cityCode)",w),s.mapData.push({name:b,value:w?w.count:0,cityCode:x,level:m})}c(g)}}function c(d){AMapUI.loadUI(["geo/DistrictExplorer"],p=>{var g=window.districtExplorer=new p({eventSupport:!0,map:s.map});g.loadAreaNode(d,(y,m)=>{if(y){console.error(y);return}let _={};_.features=m.getSubFeatures(),console.log("------------------");for(var S=0;S<_.features.length;S++)(_.features[S].properties.adcode==81e4||_.features[S].properties.adcode==82e4)&&(_.features.splice(S,1),S--);console.log("------------------"),v(s.cityName,_)})})}function v(d,p){if(p){Nl(d,p);var g={visualMap:{type:"piecewise",left:"center",bottom:"30",orient:"horizontal",padding:5,pieces:[{gte:0,lte:99,label:"99",color:"#CAE9FD"},{gte:100,lte:299,label:"100-299",color:"#7ED2F7"},{gte:300,lte:499,label:"299-499",color:"#039DDD"},{gte:500,label:"500",color:"#0D4884"}],textStyle:{color:"#fff"},visibility:"off"},tooltip:{trigger:"item",formatter:`{b}
{c}\u4EBA`},series:[{name:"\u6570\u636E\u540D\u79F0",type:"map",roam:!1,top:"15%",bottom:s.isShowGoBack?"8%":"-20%",mapType:d,selectedMode:"single",showLegendSymbol:!1,visibility:"off",backgroundColor:"transparent",itemStyle:{normal:{color:"#333333",areaColor:"#fff",borderColor:"#666666",borderWidth:.5,label:{show:!0,textStyle:{color:"#333333"}}},emphasis:{areaColor:"rgb(38, 219, 11)",borderColor:"#666666",areaStyle:{color:"#333333"},label:{show:!0,textStyle:{color:"#333333"}}}},data:s.mapData}]};s.echartsMap.setOption(g),t.value=!1}}return(d,p)=>{const g=wl("loading");return Tl((gt(),_t("div",EX,[kX,s.isShowGoBack?(gt(),_t("div",{key:0,class:"close-back",onClick:u},NX)):pn("",!0),$("div",BX,null,512),$("div",VX,[zX,Object.keys($t(i)).length>0?(gt(!0),_t(Ye,{key:0},Ze($t(i),y=>(gt(),_t("div",null,[$("div",GX,Xt(y.name),1),$("div",FX,Xt(y.count),1)]))),256)):(gt(),_t("div",HX,UX))]),$("div",YX,[ZX,Object.keys($t(n)).length>0?(gt(!0),_t(Ye,{key:0},Ze($t(n),(y,m)=>(gt(),_t("div",null,[$("div",{class:"a",title:m},Xt(m),9,XX),$("div",qX,Xt(y!=null?y:0),1)]))),256)):(gt(),_t("div",KX,jX))])])),[[g,$t(t)]])}}};var eq=wn(tq,[["__scopeId","data-v-dd7a5c24"]]);const vi=r=>(Co("data-v-610f33fc"),r=r(),Ao(),r),rq={class:"box3"},aq=vi(()=>$("div",{class:"tit"},"\u6280\u672F\u5206\u5E03\u5730\u56FE",-1)),iq=vi(()=>$("img",{src:iv},null,-1)),nq=[iq],oq={ref:"map",class:"map echartsDom",id:"map"},sq={class:"leftBox"},lq=vi(()=>$("div",{class:"head"},[$("div",{class:"a"},"\u5730\u533A"),$("div",{class:"b"},"\u6210\u679C\u6570\u91CF")],-1)),uq={class:"a"},fq={class:"b"},hq={key:1},vq=vi(()=>$("div",{class:"a"},"\u6682\u65E0",-1)),cq=vi(()=>$("div",{class:"b"},"\u6682\u65E0",-1)),dq=[vq,cq],pq={class:"rightBox"},gq=vi(()=>$("div",{class:"head"},[$("div",{class:"a"},"\u9886\u57DF"),$("div",{class:"b"},"\u6210\u679C\u6570\u91CF")],-1)),yq=["title"],mq={class:"b"},_q={key:1},Sq=vi(()=>$("div",{class:"a"},"\u6682\u65E0",-1)),xq=vi(()=>$("div",{class:"b"},"\u6682\u65E0",-1)),bq=[Sq,xq],wq={__name:"index5",setup(r){const{proxy:e}=gh(),t=le(!0);let a={};const i=le({}),n=le({}),o=async(v,d)=>{var p,g,y,m;if(d=="province"){const _=v.substring(0,2)+"0000";let S={};if(i.value.length&&i.value[0].code.substring(0,2)==v.substring(0,2)&&i.value[0].code.substring(2,4)!=v.substring(2,4))S=i.value;else{const b=await VL(_);i.value=b.count,n.value=(p=b.industry)!=null?p:{},S=b.count}return S.find(b=>b.code==v)||!1}else if(d=="city"){const _=v.substring(0,4)+"00";let S={};if(i.value.length&&i.value[0].code.substring(0,4)==v.substring(0,4)&&i.value[0].code.substring(4,6)!=v.substring(4,6))S=i.value;else{const b=await zL(_);i.value=b.count,n.value=(g=b.industry)!=null?g:{},S=b.count}return S.find(b=>b.code==v)||!1}else{if(Object.keys(a).length)return n.value=(y=a.industry)!=null?y:{},i.value=(m=a.count)!=null?m:{},a.count.find(_=>_.code==v)||!1;{const{count:_,industry:S}=await wm();return n.value=S!=null?S:{},_.find(b=>b.code==v)||!1}}},s=la({loading:!1,isShowGoBack:!1,nameType:"",cityName:"china",areaCode:1e4,AreaCodeStack:["\u4E2D\u56FD"],geoJsonData:"",echartsMap:null,map:null,uimap:null,district:null,polygons:[],cityCode:"100000",citySelect:null,districtSelect:null,opts:{},areaData:{},mapData:[],zip:{},codeList:[],isCodeListLoadComplete:!1,downloadTips:"\u4E0B\u8F7DgeoJson\u6570\u636E",isShowTips:!1});To(()=>{wm().then(g=>{var y;a=g,i.value=g.count,n.value=(y=g.industry)!=null?y:{},t.value=!1});let v=document.body.clientHeight,d=document.body.clientWidth,p=e.$refs.map;p.style.width=d+"px",p.style.height=v-80+"px",s.echartsMap=Wh(p),s.echartsMap.on("click",u),setTimeout(()=>{s.map=new AMap.Map("container",{resizeEnable:!0,center:[116.30946,39.937629],zoom:3}),s.opts={subdistrict:1,showbiz:!1},s.district=new AMap.DistrictSearch(s.opts),s.district.search("\u4E2D\u56FD",(g,y)=>{g=="complete"&&f(y.districtList[0],"",1e5)})},3e3)});function l(){s.isShowGoBack=!1,t.value=!0,s.district.search("\u4E2D\u56FD",async(v,d)=>{v=="complete"&&(await f(d.districtList[0],"",1e5),i.value=a.count)})}async function u(v){v.data.cityCode!="710000"&&v.data.level!="district"&&v.data.level!="street"&&(await o(v.data.cityCode,v.data.level),s.cityCode=v.data.cityCode,s.cityName=v.data.name,s.district.setLevel(v.data.level),s.district.setExtensions("all"),s.isShowGoBack=!0,t.value=!0,s.district.search(s.cityCode,(d,p)=>{if(d==="complete"){if(v.data.level=="district")return;s.AreaCodeStack.push(p.districtList[0].adcode),f(p.districtList[0],v.data.level,s.cityCode)}}))}async function f(v,d,p){var g=v.districtList;if(g){var y=g[0].level;if(y==="street"){let x=s.geoJsonData.features,w={};for(let C in x)x[C].properties.name==s.cityName&&(w.features=[].concat(x[C]));s.mapData=[];let T=await o(b,d);T&&console.log("1 searchRegionData(cityCode)",T),s.mapData.push({name:s.cityName,value:T?T.count:0,level:y}),c(s.cityName,w),s.geoJsonData=w;return}s.mapData=[];for(var m=0,_=g.length;m<_;m++){var S=g[m].name,b=g[m].adcode;let x=await o(b,d);x&&console.log("2 searchRegionData(cityCode)",x),s.mapData.push({name:S,value:x?x.count:0,cityCode:b,level:y})}h(p)}}function h(v){AMapUI.loadUI(["geo/DistrictExplorer"],d=>{var p=window.districtExplorer=new d({eventSupport:!0,map:s.map});p.loadAreaNode(v,(g,y)=>{if(g){console.error(g);return}let m={};m.features=y.getSubFeatures(),console.log("------------------");for(var _=0;_<m.features.length;_++)(m.features[_].properties.adcode==81e4||m.features[_].properties.adcode==82e4)&&(m.features.splice(_,1),_--);console.log("------------------"),c(s.cityName,m)})})}function c(v,d){if(d){Nl(v,d);var p={visualMap:{type:"piecewise",left:"center",bottom:"30",orient:"horizontal",padding:5,pieces:[{gte:0,lte:99,label:"99",color:"#CAE9FD"},{gte:100,lte:299,label:"100-299",color:"#7ED2F7"},{gte:300,lte:499,label:"299-499",color:"#039DDD"},{gte:500,label:"500",color:"#0D4884"}],textStyle:{color:"#fff"},visibility:"off"},tooltip:{trigger:"item",formatter:`{b}
{c}\u4E2A`},series:[{name:"\u6570\u636E\u540D\u79F0",type:"map",roam:!1,top:"15%",bottom:s.isShowGoBack?"8%":"-20%",mapType:v,selectedMode:"single",showLegendSymbol:!1,visibility:"off",backgroundColor:"transparent",itemStyle:{normal:{color:"#333333",areaColor:"#fff",borderColor:"#666666",borderWidth:.5,label:{show:!0,textStyle:{color:"#333333"}}},emphasis:{areaColor:"rgb(38, 219, 11)",borderColor:"#666666",areaStyle:{color:"#333333"},label:{show:!0,textStyle:{color:"#333333"}}}},data:s.mapData}]};s.echartsMap.setOption(p),t.value=!1}}return(v,d)=>{const p=wl("loading");return Tl((gt(),_t("div",rq,[aq,s.isShowGoBack?(gt(),_t("div",{key:0,class:"close-back",onClick:l},nq)):pn("",!0),$("div",oq,null,512),$("div",sq,[lq,Object.keys($t(i)).length>0?(gt(!0),_t(Ye,{key:0},Ze($t(i),g=>(gt(),_t("div",null,[$("div",uq,Xt(g.name),1),$("div",fq,Xt(g.count),1)]))),256)):(gt(),_t("div",hq,dq))]),$("div",pq,[gq,Object.keys($t(n)).length>0?(gt(!0),_t(Ye,{key:0},Ze($t(n),(g,y)=>(gt(),_t("div",null,[$("div",{class:"a",title:y},Xt(y),9,yq),$("div",mq,Xt(g),1)]))),256)):(gt(),_t("div",_q,bq))])])),[[p,$t(t)]])}}};var Tq=wn(wq,[["__scopeId","data-v-610f33fc"]]);const ci=r=>(Co("data-v-7d9cead4"),r=r(),Ao(),r),Cq={class:"box3"},Aq=ci(()=>$("div",{class:"tit"},"\u9700\u6C42\u5206\u5E03\u5730\u56FE",-1)),Dq=ci(()=>$("img",{src:iv},null,-1)),Mq=[Dq],Lq={ref:"map",class:"map echartsDom",id:"map"},Iq={class:"leftBox"},Pq=ci(()=>$("div",{class:"head"},[$("div",{class:"a"},"\u5730\u533A"),$("div",{class:"b"},"\u9700\u6C42\u6570\u91CF")],-1)),Rq={class:"a"},Eq={class:"b"},kq={key:1},Oq=ci(()=>$("div",{class:"a"},"\u6682\u65E0",-1)),Nq=ci(()=>$("div",{class:"b"},"\u6682\u65E0",-1)),Bq=[Oq,Nq],Vq={class:"rightBox"},zq=ci(()=>$("div",{class:"head"},[$("div",{class:"a"},"\u9886\u57DF"),$("div",{class:"b"},"\u9700\u6C42\u6570\u91CF")],-1)),Gq=["title"],Fq={class:"b"},Hq={key:1},$q=ci(()=>$("div",{class:"a"},"\u6682\u65E0",-1)),Wq=ci(()=>$("div",{class:"b"},"\u6682\u65E0",-1)),Uq=[$q,Wq],Yq={__name:"index6",setup(r){const{proxy:e}=gh(),t=le(!0);let a={};const i=le({}),n=le({}),o=async(v,d)=>{var p,g,y,m;if(d=="province"){const _=v.substring(0,2)+"0000";let S={};if(i.value.length&&i.value[0].code.substring(0,2)==v.substring(0,2)&&i.value[0].code.substring(2,4)!=v.substring(2,4))S=i.value;else{const b=await GL(_);i.value=b.count,n.value=(p=b.industry)!=null?p:{},S=b.count}return S.find(b=>b.code==v)||!1}else if(d=="city"){const _=v.substring(0,4)+"00";let S={};if(i.value.length&&i.value[0].code.substring(0,4)==v.substring(0,4)&&i.value[0].code.substring(4,6)!=v.substring(4,6))S=i.value;else{const b=await FL(_);i.value=b.count,n.value=(g=b.industry)!=null?g:{},S=b.count}return S.find(b=>b.code==v)||!1}else{if(Object.keys(a).length)return n.value=(y=a.industry)!=null?y:{},i.value=(m=a.count)!=null?m:{},a.count.find(_=>_.code==v)||!1;{const{count:_,industry:S}=await Tm();return n.value=S!=null?S:{},_.find(b=>b.code==v)||!1}}},s=la({loading:!1,isShowGoBack:!1,nameType:"",cityName:"china",areaCode:1e4,AreaCodeStack:["\u4E2D\u56FD"],geoJsonData:"",echartsMap:null,map:null,uimap:null,district:null,polygons:[],cityCode:"100000",citySelect:null,districtSelect:null,opts:{},areaData:{},mapData:[],zip:{},codeList:[],isCodeListLoadComplete:!1,downloadTips:"\u4E0B\u8F7DgeoJson\u6570\u636E",isShowTips:!1});To(()=>{Tm().then(g=>{var y;a=g,i.value=g.count,n.value=(y=g.industry)!=null?y:{},t.value=!1});let v=document.body.clientHeight,d=document.body.clientWidth,p=e.$refs.map;p.style.width=d+"px",p.style.height=v-80+"px",s.echartsMap=Wh(p),s.echartsMap.on("click",u),setTimeout(()=>{s.map=new AMap.Map("container",{resizeEnable:!0,center:[116.30946,39.937629],zoom:3}),s.opts={subdistrict:1,showbiz:!1},s.district=new AMap.DistrictSearch(s.opts),s.district.search("\u4E2D\u56FD",(g,y)=>{g=="complete"&&f(y.districtList[0],"",1e5)})},4e3)});function l(){s.isShowGoBack=!1,t.value=!0,s.district.search("\u4E2D\u56FD",async(v,d)=>{v=="complete"&&(await f(d.districtList[0],"",1e5),i.value=a.count)})}async function u(v){v.data.cityCode!="710000"&&v.data.level!="district"&&v.data.level!="street"&&(await o(v.data.cityCode,v.data.level),s.cityCode=v.data.cityCode,s.cityName=v.data.name,s.district.setLevel(v.data.level),s.district.setExtensions("all"),s.isShowGoBack=!0,t.value=!0,s.district.search(s.cityCode,(d,p)=>{if(d==="complete"){if(v.data.level=="district")return;s.AreaCodeStack.push(p.districtList[0].adcode),f(p.districtList[0],v.data.level,s.cityCode)}}))}async function f(v,d,p){var g=v.districtList;if(g){var y=g[0].level;if(y==="street"){let x=s.geoJsonData.features,w={};for(let C in x)x[C].properties.name==s.cityName&&(w.features=[].concat(x[C]));s.mapData=[];let T=await o(b,d);T&&console.log("1 searchRegionData(cityCode)",T),s.mapData.push({name:s.cityName,value:T?T.count:0,level:y}),c(s.cityName,w),s.geoJsonData=w;return}s.mapData=[];for(var m=0,_=g.length;m<_;m++){var S=g[m].name,b=g[m].adcode;let x=await o(b,d);x&&console.log("2 searchRegionData(cityCode)",x),s.mapData.push({name:S,value:x?x.count:0,cityCode:b,level:y})}h(p)}}function h(v){AMapUI.loadUI(["geo/DistrictExplorer"],d=>{var p=window.districtExplorer=new d({eventSupport:!0,map:s.map});p.loadAreaNode(v,(g,y)=>{if(g){console.error(g);return}let m={};m.features=y.getSubFeatures(),console.log("------------------");for(var _=0;_<m.features.length;_++)(m.features[_].properties.adcode==81e4||m.features[_].properties.adcode==82e4)&&(m.features.splice(_,1),_--);console.log("------------------"),c(s.cityName,m)})})}function c(v,d){if(d){Nl(v,d);var p={visualMap:{type:"piecewise",left:"center",bottom:"30",orient:"horizontal",padding:5,pieces:[{gte:0,lte:99,label:"99",color:"#CAE9FD"},{gte:100,lte:299,label:"100-299",color:"#7ED2F7"},{gte:300,lte:499,label:"299-499",color:"#039DDD"},{gte:500,label:"500",color:"#0D4884"}],textStyle:{color:"#333333"},visibility:"off"},tooltip:{trigger:"item",formatter:`{b}
{c}\u4E2A`},series:[{name:"\u6570\u636E\u540D\u79F0",type:"map",roam:!1,top:"15%",bottom:s.isShowGoBack?"8%":"-20%",mapType:v,selectedMode:"single",showLegendSymbol:!1,visibility:"off",backgroundColor:"transparent",itemStyle:{normal:{color:"#333333",areaColor:"#fff",borderColor:"#666666",borderWidth:.5,label:{show:!0,textStyle:{color:"#333333"}}},emphasis:{areaColor:"rgb(38, 219, 11)",borderColor:"#666666",areaStyle:{color:"#333333"},label:{show:!0,textStyle:{color:"#333333"}}}},data:s.mapData}]};s.echartsMap.setOption(p),t.value=!1}}return(v,d)=>{const p=wl("loading");return Tl((gt(),_t("div",Cq,[Aq,s.isShowGoBack?(gt(),_t("div",{key:0,class:"close-back",onClick:l},Mq)):pn("",!0),$("div",Lq,null,512),$("div",Iq,[Pq,Object.keys($t(i)).length>0?(gt(!0),_t(Ye,{key:0},Ze($t(i),g=>(gt(),_t("div",null,[$("div",Rq,Xt(g.name),1),$("div",Eq,Xt(g.count),1)]))),256)):(gt(),_t("div",kq,Bq))]),$("div",Vq,[zq,Object.keys($t(n)).length>0?(gt(!0),_t(Ye,{key:0},Ze($t(n),(g,y)=>(gt(),_t("div",null,[$("div",{class:"a",title:y},Xt(y),9,Gq),$("div",Fq,Xt(g),1)]))),256)):(gt(),_t("div",Hq,Uq))])])),[[p,$t(t)]])}}};var Zq=wn(Yq,[["__scopeId","data-v-7d9cead4"]]);const di=r=>(Co("data-v-68e8e5b6"),r=r(),Ao(),r),Xq={class:"box3"},qq=di(()=>$("div",{class:"tit"},"\u4F01\u4E1A\u5730\u56FE",-1)),Kq=di(()=>$("img",{src:iv},null,-1)),Jq=[Kq],Qq={ref:"map",class:"map echartsDom",id:"map"},jq={class:"leftBox"},tK=di(()=>$("div",{class:"head"},[$("div",{class:"a"},"\u5730\u533A"),$("div",{class:"b"},"\u4F01\u4E1A\u6570\u91CF")],-1)),eK={class:"a"},rK={class:"b"},aK={key:1},iK=di(()=>$("div",{class:"a"},"\u6682\u65E0",-1)),nK=di(()=>$("div",{class:"b"},"\u6682\u65E0",-1)),oK=[iK,nK],sK={class:"rightBox"},lK=di(()=>$("div",{class:"head"},[$("div",{class:"a"},"\u9886\u57DF"),$("div",{class:"b"},"\u4F01\u4E1A\u6570\u91CF")],-1)),uK=["title"],fK={class:"b"},hK={key:1},vK=di(()=>$("div",{class:"a"},"\u6682\u65E0",-1)),cK=di(()=>$("div",{class:"b"},"\u6682\u65E0",-1)),dK=[vK,cK],pK={__name:"index7",setup(r){const{proxy:e}=gh(),t=le(!0);let a={};const i=le({}),n=le({}),o=async(v,d)=>{var p,g,y,m;if(d=="province"){const _=v.substring(0,2)+"0000";let S={};if(i.value.length&&i.value[0].code.substring(0,2)==v.substring(0,2)&&i.value[0].code.substring(2,4)!=v.substring(2,4))S=i.value;else{const b=await HL(_);i.value=b.count,n.value=(p=b.industry)!=null?p:{},S=b.count}return S.find(b=>b.code==v)||!1}else if(d=="city"){const _=v.substring(0,4)+"00";let S={};if(i.value.length&&i.value[0].code.substring(0,4)==v.substring(0,4)&&i.value[0].code.substring(4,6)!=v.substring(4,6))S=i.value;else{const b=await $L(_);i.value=b.count,n.value=(g=b.industry)!=null?g:{},S=b.count}return S.find(b=>b.code==v)||!1}else{if(Object.keys(a).length)return n.value=(y=a.industry)!=null?y:{},i.value=(m=a.count)!=null?m:{},a.count.find(_=>_.code==v)||!1;{const{count:_,industry:S}=await Cm();return n.value=S!=null?S:{},_.find(b=>b.code==v)||!1}}},s=la({loading:!1,isShowGoBack:!1,nameType:"",cityName:"china",areaCode:1e4,AreaCodeStack:["\u4E2D\u56FD"],geoJsonData:"",echartsMap:null,map:null,uimap:null,district:null,polygons:[],cityCode:"100000",citySelect:null,districtSelect:null,opts:{},areaData:{},mapData:[],zip:{},codeList:[],isCodeListLoadComplete:!1,downloadTips:"\u4E0B\u8F7DgeoJson\u6570\u636E",isShowTips:!1});To(()=>{Cm().then(g=>{var y;a=g,i.value=g.count,n.value=(y=g.industry)!=null?y:{},t.value=!1});let v=document.body.clientHeight,d=document.body.clientWidth,p=e.$refs.map;p.style.width=d+"px",p.style.height=v-80+"px",s.echartsMap=Wh(p),s.echartsMap.on("click",u),setTimeout(()=>{s.map=new AMap.Map("container",{resizeEnable:!0,center:[116.30946,39.937629],zoom:3}),s.opts={subdistrict:1,showbiz:!1},s.district=new AMap.DistrictSearch(s.opts),s.district.search("\u4E2D\u56FD",(g,y)=>{g=="complete"&&f(y.districtList[0],"",1e5)})},5e3)});function l(){s.isShowGoBack=!1,t.value=!0,s.district.search("\u4E2D\u56FD",async(v,d)=>{v=="complete"&&(await f(d.districtList[0],"",1e5),i.value=a.count)})}async function u(v){v.data.cityCode!="710000"&&v.data.level!="district"&&v.data.level!="street"&&(await o(v.data.cityCode,v.data.level),s.cityCode=v.data.cityCode,s.cityName=v.data.name,s.district.setLevel(v.data.level),s.district.setExtensions("all"),s.isShowGoBack=!0,t.value=!0,s.district.search(s.cityCode,(d,p)=>{if(d==="complete"){if(v.data.level=="district")return;s.AreaCodeStack.push(p.districtList[0].adcode),f(p.districtList[0],v.data.level,s.cityCode)}}))}async function f(v,d,p){var g=v.districtList;if(g){var y=g[0].level;if(y==="street"){let x=s.geoJsonData.features,w={};for(let C in x)x[C].properties.name==s.cityName&&(w.features=[].concat(x[C]));s.mapData=[];let T=await o(b,d);T&&console.log("1 searchRegionData(cityCode)",T),s.mapData.push({name:s.cityName,value:T?T.count:0,level:y}),c(s.cityName,w),s.geoJsonData=w;return}s.mapData=[];for(var m=0,_=g.length;m<_;m++){var S=g[m].name,b=g[m].adcode;let x=await o(b,d);x&&console.log("2 searchRegionData(cityCode)",x),s.mapData.push({name:S,value:x?x.count:0,cityCode:b,level:y})}h(p)}}function h(v){AMapUI.loadUI(["geo/DistrictExplorer"],d=>{var p=window.districtExplorer=new d({eventSupport:!0,map:s.map});p.loadAreaNode(v,(g,y)=>{if(g){console.error(g);return}let m={};m.features=y.getSubFeatures(),console.log("------------------");for(var _=0;_<m.features.length;_++)(m.features[_].properties.adcode==81e4||m.features[_].properties.adcode==82e4)&&(m.features.splice(_,1),_--);console.log("------------------"),c(s.cityName,m)})})}function c(v,d){if(d){Nl(v,d);var p={visualMap:{type:"piecewise",left:"center",bottom:"30",orient:"horizontal",padding:5,pieces:[{gte:0,lte:99,label:"99",color:"#CAE9FD"},{gte:100,lte:299,label:"100-299",color:"#7ED2F7"},{gte:300,lte:499,label:"299-499",color:"#039DDD"},{gte:500,label:"500",color:"#0D4884"}],textStyle:{color:"#fff"},visibility:"off"},tooltip:{trigger:"item",formatter:`{b}
{c}\u4E2A`},series:[{name:"\u6570\u636E\u540D\u79F0",type:"map",roam:!1,top:"15%",bottom:s.isShowGoBack?"8%":"-20%",mapType:v,selectedMode:"single",showLegendSymbol:!1,visibility:"off",backgroundColor:"transparent",itemStyle:{normal:{color:"#333333",areaColor:"#fff",borderColor:"#666666",borderWidth:.5,label:{show:!0,textStyle:{color:"#333333"}}},emphasis:{areaColor:"rgb(38, 219, 11)",borderColor:"#666666",areaStyle:{color:"#333333"},label:{show:!0,textStyle:{color:"#333333"}}}},data:s.mapData}]};s.echartsMap.setOption(p),t.value=!1}}return(v,d)=>{const p=wl("loading");return Tl((gt(),_t("div",Xq,[qq,s.isShowGoBack?(gt(),_t("div",{key:0,class:"close-back",onClick:l},Jq)):pn("",!0),$("div",Qq,null,512),$("div",jq,[tK,Object.keys($t(i)).length>0?(gt(!0),_t(Ye,{key:0},Ze($t(i),g=>(gt(),_t("div",null,[$("div",eK,Xt(g.name),1),$("div",rK,Xt(g.count),1)]))),256)):(gt(),_t("div",aK,oK))]),$("div",sK,[lK,Object.keys($t(n)).length>0?(gt(!0),_t(Ye,{key:0},Ze($t(n),(g,y)=>(gt(),_t("div",null,[$("div",{class:"a",title:y},Xt(y),9,uK),$("div",fK,Xt(g),1)]))),256)):(gt(),_t("div",hK,dK))])])),[[p,$t(t)]])}}};var gK=wn(pK,[["__scopeId","data-v-68e8e5b6"]]);const yK=r=>(Co("data-v-410919c9"),r=r(),Ao(),r),mK={class:"box"},_K={class:"wrap"},SK=yK(()=>$("div",{class:"tit"},"\u5168\u56FD\u670D\u52A1\u7AD9\u70B9",-1)),xK={class:"content"},bK=["href"],wK={key:0,class:"more"},TK={__name:"index8",setup(r){const e=la({platformInfo:{}});function t(){const a={code:200,message:"ok",data:{34e4:{name:"\u5B89\u5FBD\u7701",code:"340000",domain:"",children:[{name:"\u5408\u80A5\u5E02",code:"340100",domain:"https://www.casshare.com",children:null}]}}};e.platformInfo=a.data}return t(),(a,i)=>(gt(),_t("div",mK,[$("div",_K,[$("div",null,[SK,$("div",xK,[$("div",null,[(gt(!0),_t(Ye,null,Ze(e.platformInfo,(n,o,s)=>(gt(),_t("div",{class:"item",key:s},[$("div",null,Xt(n.name),1),(gt(!0),_t(Ye,null,Ze(n.children,l=>(gt(),_t("p",{key:l.code},[l.domain?(gt(),_t("a",{key:0,href:l.domain,target:"_blank"},Xt(l.name),9,bK)):pn("",!0)]))),128))]))),128))])]),e.platformInfo.length>15?(gt(),_t("div",wK,"\u67E5\u770B\u66F4\u591A")):pn("",!0)])]),je(KL,{style:{width:"100%"}})]))}};var CK=wn(TK,[["__scopeId","data-v-410919c9"]]);const AK={class:"indicator"},DK=["id","onClick"],MK=["data-index"],LK={__name:"index",setup(r){const e=Rs(!0);setTimeout(()=>{e.value=!1},500);const t=Rs(),a=Rs();To(()=>{a.value.addEventListener("DOMMouseScroll",u)});const i=ZL(()=>f.boxList.length),n=()=>{f.fullpage.current+1<=i.value&&(f.fullpage.current+=1,s(f.fullpage.current))},o=()=>{f.fullpage.current-1>0&&(f.fullpage.current-=1,s(f.fullpage.current))};function s(c){f.fullpage.isScrolling=!0,l(c),setTimeout(()=>{f.fullpage.isScrolling=!1},1010)}function l(c){let v=t.value.clientHeight,d;d=-(c-1)*v+"px",a.value.style.transform=`translateY(${d})`,f.fullpage.current=c}function u(c){let v=c||window.event;if(v.stopPropagation?v.stopPropagation():v.returnValue=!1,f.fullpage.isScrolling)return!1;let d=c.originalEvent||c;f.fullpage.deltaY=d.deltaY||d.detail,f.fullpage.deltaY>0?n():f.fullpage.deltaY<0&&o()}let f=la({fullpage:{current:1,isScrolling:!1,deltaY:0},showBox:0,boxList:[{comp:le(RX),zIndex:1,title:"index1"},{comp:le(eq),zIndex:1,title:"index3"},{comp:le(Tq),zIndex:1,title:"index5"},{comp:le(Zq),zIndex:1,title:"index6"},{comp:le(gK),zIndex:1,title:"index7"},{comp:le(CK),zIndex:1,title:"index8"}],animate:{in:"animate__animated animate__fadeInDown",out:"animate__animated animate__fadeOutDown"}});const h=c=>{if(c!=f.fullpage.current)if(c>f.fullpage.current)for(let v=f.fullpage.current;v<c;v++)n();else for(let v=f.fullpage.current;v>c;v--)o()};return(c,v)=>{const d=wl("loading");return Tl((gt(),_t("div",{class:"fullPage",ref_key:"fullPageRef",ref:t},[$("div",AK,[(gt(!0),_t(Ye,null,Ze($t(i),p=>(gt(),_t("div",{class:Mw([`${$t(f).fullpage.current==p?"active":""}`,"point"]),key:p,id:p.toString(),onClick:g=>h(p)},null,10,DK))),128))]),$("div",{class:"fullPageContainer","data-index":$t(f).fullpage.current,ref_key:"fullPageContainerRef",ref:a,onMousewheel:u},[(gt(!0),_t(Ye,null,Ze($t(f).boxList,(p,g)=>(gt(),_t("div",{class:"section",key:g,style:Lw(`z-index: ${p.zIndex};`)},[Math.abs($t(f).fullpage.current-(g+1))<=1?(gt(),XL(qL(p.comp),{key:0})):pn("",!0)],4))),128))],40,MK)])),[[d,e.value]])}}};var kK=wn(LK,[["__scopeId","data-v-751f2df8"]]);export{kK as default};
