var BD=Object.defineProperty;var ry=Object.getOwnPropertySymbols;var VD=Object.prototype.hasOwnProperty,zD=Object.prototype.propertyIsEnumerable;var ay=(r,e,t)=>e in r?BD(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,iy=(r,e)=>{for(var t in e||(e={}))VD.call(e,t)&&ay(r,t,e[t]);if(ry)for(var t of ry(e))zD.call(e,t)&&ay(r,t,e[t]);return r};import{u as FD,f as GD}from"./index.99723322.js";import{a as HD,y as ny,o as WD,t as UD,n as YD,g as XD,p as $D,d as ZD,e as tn,f as Fa,h as Ga,i as rt,l as zr,F as lf,E as uf,q as qD}from"./vendor.42638b6b.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 hf=function(r,e){return hf=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])},hf(r,e)};function E(r,e){hf(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var ff=function(){return ff=Object.assign||function(e){for(var t,a=1,i=arguments.length;a<i;a++){t=arguments[a];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},ff.apply(this,arguments)};function oy(){for(var r=0,e=0,t=arguments.length;e<t;e++)r+=arguments[e].length;for(var a=Array(r),i=0,e=0;e<t;e++)for(var n=arguments[e],o=0,s=n.length;o<s;o++,i++)a[i]=n[o];return a}var KD=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),QD=function(){function r(){this.browser=new KD,this.node=!1,this.wxa=!1,this.worker=!1,this.canvasSupported=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1}return r}(),et=new QD;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(et.wxa=!0,et.canvasSupported=!0,et.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?(et.worker=!0,et.canvasSupported=!0):typeof navigator=="undefined"?(et.node=!0,et.canvasSupported=!0,et.svgSupported=!0):JD(navigator.userAgent,et);function JD(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.canvasSupported=!!document.createElement("canvas").getContext,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 sy={"[object Function]":!0,"[object RegExp]":!0,"[object Date]":!0,"[object Error]":!0,"[object CanvasGradient]":!0,"[object CanvasPattern]":!0,"[object Image]":!0,"[object Canvas]":!0},ly={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0},en=Object.prototype.toString,dl=Array.prototype,jD=dl.forEach,tM=dl.filter,vf=dl.slice,eM=dl.map,uy=function(){}.constructor,gl=uy?uy.prototype:null,hy={},rM=2311;function fy(){return rM++}function Fr(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console!="undefined"&&console.error.apply(console,r)}function $(r){if(r==null||typeof r!="object")return r;var e=r,t=en.call(r);if(t==="[object Array]"){if(!uo(r)){e=[];for(var a=0,i=r.length;a<i;a++)e[a]=$(r[a])}}else if(ly[t]){if(!uo(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(!sy[t]&&!uo(r)&&!so(r)){e={};for(var o in r)r.hasOwnProperty(o)&&(e[o]=$(r[o]))}return e}function at(r,e,t){if(!J(e)||!J(r))return t?$(e):r;for(var a in e)if(e.hasOwnProperty(a)){var i=r[a],n=e[a];J(n)&&J(i)&&!B(n)&&!B(i)&&!so(n)&&!so(i)&&!vy(n)&&!vy(i)&&!uo(n)&&!uo(i)?at(i,n,t):(t||!(a in r))&&(r[a]=$(e[a]))}return r}function cf(r,e){for(var t=r[0],a=1,i=r.length;a<i;a++)t=at(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)&&(r[t]=e[t]);return r}function X(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}var rn=function(){return hy.createCanvas()};hy.createCanvas=function(){return document.createElement("canvas")};function lt(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 aM(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 Ht(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 X(r,e,t)}function Te(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function A(r,e,t){if(!!(r&&e))if(r.forEach&&r.forEach===jD)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 H(r,e,t){if(!r)return[];if(!e)return gf(r);if(r.map&&r.map===eM)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 oo(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 kt(r,e,t){if(!r)return[];if(!e)return gf(r);if(r.filter&&r.filter===tM)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 iM(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 nM(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return function(){return r.apply(e,t.concat(vf.call(arguments)))}}var U=gl&&wt(gl.bind)?gl.call.bind(gl.bind):nM;function j(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(vf.call(arguments)))}}function B(r){return Array.isArray?Array.isArray(r):en.call(r)==="[object Array]"}function wt(r){return typeof r=="function"}function ft(r){return typeof r=="string"}function pf(r){return en.call(r)==="[object String]"}function df(r){return typeof r=="number"}function J(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function vy(r){return!!sy[en.call(r)]}function Pe(r){return!!ly[en.call(r)]}function so(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function oM(r){return r.colorStops!=null}function sM(r){return r.image!=null}function lM(r){return en.call(r)==="[object RegExp]"}function lo(r){return r!==r}function ee(){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 vt(r,e){return r!=null?r:e}function Gr(r,e,t){return r!=null?r:e!=null?e:t}function gf(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return vf.apply(r,e)}function yf(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 de(r,e){if(!r)throw new Error(e)}function Ha(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var cy="__ec_primitive__";function yl(r){r[cy]=!0}function uo(r){return r[cy]}var uM=function(){function r(e){this.data={};var t=B(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 Z(r){return new uM(r)}function py(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 ho(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 Y(r,e){return r.hasOwnProperty(e)}function nr(){}function Wa(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function ge(r,e){return r[0]=e[0],r[1]=e[1],r}function Hr(r){return[r[0],r[1]]}function hM(r,e,t){return r[0]=e,r[1]=t,r}function dy(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function mf(r,e,t,a){return r[0]=e[0]+t[0]*a,r[1]=e[1]+t[1]*a,r}function Ua(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function _f(r){return Math.sqrt(fM(r))}function fM(r){return r[0]*r[0]+r[1]*r[1]}function Sf(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function fo(r,e){var t=_f(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function ml(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var sa=ml;function vM(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var Ya=vM;function _l(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 re(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 Xa(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function $a(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var an=function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r}(),cM=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&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new an(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 an(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 an(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new an(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new an(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new an(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r}(),or=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,h=n[e][u];return h&&h.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){if(!this._$handlers)return this;var t=this._$handlers[e],a=this._$eventProcessor;if(t)for(var i=arguments,n=i.length,o=i[n-1],s=t.length,l=0;l<s;l++){var u=t[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(n){case 0:u.h.call(o);break;case 1:u.h.call(o,i[0]);break;case 2:u.h.call(o,i[0],i[1]);break;default:u.h.apply(o,i.slice(1,n-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},r}(),pM=Math.log(2);function xf(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)/pM);return r[t][l]}for(var u=a|1<<t,h=t+1;a&1<<h;)h++;for(var f=0,v=0,c=0;v<s;v++){var p=1<<v;p&i||(f+=(c%2?-1:1)*r[t][v]*xf(r,e-1,h,u,i|p,n),c++)}return n[o]=f,f}function gy(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=xf(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)*xf(t,7,o===0?1:0,1<<o,1<<s,a)/i*e[o];return function(l,u,h){var f=u*n[6]+h*n[7]+1;l[0]=(u*n[0]+h*n[1]+n[2])/f,l[1]=(u*n[3]+h*n[4]+n[5])/f}}}var yy="___zrEVENTSAVED",bf=[];function dM(r,e,t,a,i){return wf(bf,e,a,i,!0)&&wf(r,t,bf[0],bf[1])}function wf(r,e,t,a,i){if(e.getBoundingClientRect&&et.domSupported&&!my(e)){var n=e[yy]||(e[yy]={}),o=gM(e,n),s=yM(o,n,i);if(s)return s(r,t,a),!0}return!1}function gM(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 yM(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 h=r[u].getBoundingClientRect(),f=2*u,v=h.left,c=h.top;o.push(v,c),l=l&&n&&v===n[f]&&c===n[f+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[a]=t?gy(s,o):gy(o,s))}function my(r){return r.nodeName.toUpperCase()==="CANVAS"}var Tf=typeof window!="undefined"&&!!window.addEventListener,mM=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Af=[];function Cf(r,e,t,a){return t=t||{},a||!et.canvasSupported?_y(r,e,t):et.browser.firefox&&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):_y(r,e,t),t}function _y(r,e,t){if(et.domSupported&&r.getBoundingClientRect){var a=e.clientX,i=e.clientY;if(my(r)){var n=r.getBoundingClientRect();t.zrX=a-n.left,t.zrY=i-n.top;return}else if(wf(Af,r,a,i)){t.zrX=Af[0],t.zrY=Af[1];return}}t.zrX=t.zrY=0}function Df(r){return r||window.event}function Ve(r,e,t){if(e=Df(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&&Cf(r,o,e,t)}else{Cf(r,e,e,t);var n=_M(e);e.zrDelta=n?n/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&mM.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function _M(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 Mf(r,e,t,a){Tf?r.addEventListener(e,t,a):r.attachEvent("on"+e,t)}function SM(r,e,t,a){Tf?r.removeEventListener(e,t,a):r.detachEvent("on"+e,t)}var Wr=Tf?function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0}:function(r){r.returnValue=!1,r.cancelBubble=!0};function Sy(r){return r.which===2||r.which===3}var xM=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=Cf(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 Lf)if(Lf.hasOwnProperty(t)){var a=Lf[t](this._track,e);if(a)return a}},r}();function xy(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function bM(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Lf={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=xy(a)/xy(i);!isFinite(n)&&(n=1),e.pinchScale=n;var o=bM(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}},by="silent";function wM(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:TM}}function TM(){Wr(this.event)}var AM=function(r){E(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}(or),vo=function(){function r(e,t){this.x=e,this.y=t}return r}(),CM=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],wy=function(r){E(e,r);function e(t,a,i,n){var o=r.call(this)||this;return o._hovered=new vo(0,0),o.storage=t,o.painter=a,o.painterRoot=n,i=i||new AM,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new cM(o),o}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(A(CM,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=Ty(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 vo(a,i):this.findHover(a,i),u=l.target,h=this.proxy;h.setCursor&&h.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 vo(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=wM(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){for(var n=this.storage.getDisplayList(),o=new vo(t,a),s=n.length-1;s>=0;s--){var l=void 0;if(n[s]!==i&&!n[s].ignore&&(l=DM(n[s],t,a))&&(!o.topTarget&&(o.topTarget=n[s]),l!==by)){o.target=n[s];break}}return o},e.prototype.processGesture=function(t,a){this._gestureMgr||(this._gestureMgr=new xM);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 vo;s.target=n.target,this.dispatchToElement(s,o,n.event)}},e}(or);A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){wy.prototype[r]=function(e){var t=e.zrX,a=e.zrY,i=Ty(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||sa(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,r,e)}});function DM(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?by:!0}return!1}function Ty(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}function ze(){return[1,0,0,1,0,0]}function nn(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function co(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 Za(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 yr(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 qa(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),h=Math.cos(t);return r[0]=a*h+o*u,r[1]=-a*u+o*h,r[2]=i*h+s*u,r[3]=-i*u+h*s,r[4]=h*n+u*l,r[5]=h*l-u*n,r}function If(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 on(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 MM(r){var e=ze();return co(e,r),e}var Pf=nn,Ay=5e-5;function Ka(r){return r>Ay||r<-Ay}var Qa=[],sn=[],Rf=ze(),Ef=Math.abs,Ur=function(){function r(){}return 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.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return Ka(this.rotation)||Ka(this.x)||Ka(this.y)||Ka(this.scaleX-1)||Ka(this.scaleY-1)},r.prototype.updateTransform=function(){var e=this.parent,t=e&&e.transform,a=this.needLocalTransform(),i=this.transform;if(!(a||t)){i&&Pf(i);return}i=i||ze(),a?this.getLocalTransform(i):Pf(i),t&&(a?Za(i,e.transform,i):co(i,e.transform)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Qa);var a=Qa[0]<0?-1:1,i=Qa[1]<0?-1:1,n=((Qa[0]-a)*t+a)/Qa[0]||0,o=((Qa[1]-i)*t+i)/Qa[1]||0;e[0]*=n,e[1]*=n,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||ze(),on(this.invTransform,e)},r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,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];Ka(t-1)&&(t=Math.sqrt(t)),Ka(a-1)&&(a=Math.sqrt(a)),e[0]<0&&(t=-t),e[3]<0&&(a=-a),this.rotation=Math.atan2(-e[1]/a,e[0]/t),t<0&&a<0&&(this.rotation+=Math.PI,t=-t,a=-a),this.x=e[4],this.y=e[5],this.scaleX=t,this.scaleY=a}},r.prototype.decomposeTransform=function(){if(!!this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(Za(sn,e.invTransform,t),t=sn);var a=this.originX,i=this.originY;(a||i)&&(Rf[4]=a,Rf[5]=i,Za(sn,t,Rf),sn[4]-=a,sn[5]-=i,t=sn),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&&re(a,a,i),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],i=this.transform;return i&&re(a,a,i),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&Ef(e[0]-1)>1e-10&&Ef(e[3]-1)>1e-10?Math.sqrt(Ef(e[0]*e[3]-e[2]*e[1])):1},r.getLocalTransform=function(e,t){t=t||[],Pf(t);var a=e.originX||0,i=e.originY||0,n=e.scaleX,o=e.scaleY,s=e.rotation||0,l=e.x,u=e.y;return t[4]-=a,t[5]-=i,t[0]*=n,t[1]*=o,t[2]*=n,t[3]*=o,t[4]*=n,t[5]*=o,s&&qa(t,t,s),t[4]+=a,t[5]+=i,t[4]+=l,t[5]+=u,t},r.initDefaultProps=function(){var e=r.prototype;e.x=0,e.y=0,e.scaleX=1,e.scaleY=1,e.originX=0,e.originY=0,e.rotation=0,e.globalScaleRatio=1}(),r}(),Sl={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=1.70158*1.525;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-Sl.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?Sl.bounceIn(r*2)*.5:Sl.bounceOut(r*2-1)*.5+.5}},LM=function(){function r(e){this._initialized=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop==null?!1:e.loop,this.gap=e.gap||0,this.easing=e.easing||"linear",this.onframe=e.onframe,this.ondestroy=e.ondestroy,this.onrestart=e.onrestart}return r.prototype.step=function(e,t){if(this._initialized||(this._startTime=e+this._delay,this._initialized=!0),this._paused){this._pausedTime+=t;return}var a=(e-this._startTime-this._pausedTime)/this._life;a<0&&(a=0),a=Math.min(a,1);var i=this.easing,n=typeof i=="string"?Sl[i]:i,o=typeof n=="function"?n(a):a;if(this.onframe&&this.onframe(o),a===1)if(this.loop)this._restart(e),this.onrestart&&this.onrestart();else return!0;return!1},r.prototype._restart=function(e){var t=(e-this._startTime-this._pausedTime)%this._life;this._startTime=e-t+this.gap,this._pausedTime=0},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r}(),Cy=function(){function r(e){this.value=e}return r}(),IM=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new Cy(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}(),po=function(){function r(e){this._list=new IM,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 Cy(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}(),Dy={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 la(r){return r=Math.round(r),r<0?0:r>255?255:r}function PM(r){return r=Math.round(r),r<0?0:r>360?360:r}function xl(r){return r<0?0:r>1?1:r}function kf(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?la(parseFloat(e)/100*255):la(parseInt(e,10))}function ln(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?xl(parseFloat(e)/100):xl(parseFloat(e))}function Of(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 bl(r,e,t){return r+(e-r)*t}function Fe(r,e,t,a,i){return r[0]=e,r[1]=t,r[2]=a,r[3]=i,r}function Nf(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var My=new po(20),wl=null;function un(r,e){wl&&Nf(wl,e),wl=My.put(r,wl||e.slice())}function Ge(r,e){if(!!r){e=e||[];var t=My.get(r);if(t)return Nf(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in Dy)return Nf(e,Dy[a]),un(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)){Fe(e,0,0,0,1);return}return Fe(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),un(r,e),e}else if(i===7||i===9){var n=parseInt(a.slice(1,7),16);if(!(n>=0&&n<=16777215)){Fe(e,0,0,0,1);return}return Fe(e,(n&16711680)>>16,(n&65280)>>8,n&255,i===9?parseInt(a.slice(7),16)/255:1),un(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(","),h=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Fe(e,+u[0],+u[1],+u[2],1):Fe(e,0,0,0,1);h=ln(u.pop());case"rgb":if(u.length!==3){Fe(e,0,0,0,1);return}return Fe(e,kf(u[0]),kf(u[1]),kf(u[2]),h),un(r,e),e;case"hsla":if(u.length!==4){Fe(e,0,0,0,1);return}return u[3]=ln(u[3]),Bf(u,e),un(r,e),e;case"hsl":if(u.length!==3){Fe(e,0,0,0,1);return}return Bf(u,e),un(r,e),e;default:return}}Fe(e,0,0,0,1)}}function Bf(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=ln(r[1]),i=ln(r[2]),n=i<=.5?i*(a+1):i+a-i*a,o=i*2-n;return e=e||[],Fe(e,la(Of(o,n,t+1/3)*255),la(Of(o,n,t)*255),la(Of(o,n,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function RM(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 h=((n-e)/6+o/2)/o,f=((n-t)/6+o/2)/o,v=((n-a)/6+o/2)/o;e===n?l=v-f:t===n?l=1/3+h-v:a===n&&(l=2/3+f-h),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function Ly(r,e){var t=Ge(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 Yr(t,t.length===4?"rgba":"rgb")}}function Iy(r){var e=Ge(r);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Vf(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]=la(bl(o[0],s[0],l)),t[1]=la(bl(o[1],s[1],l)),t[2]=la(bl(o[2],s[2],l)),t[3]=xl(bl(o[3],s[3],l)),t}}function go(r,e,t,a){var i=Ge(r);if(r)return i=RM(i),e!=null&&(i[0]=PM(e)),t!=null&&(i[1]=ln(t)),a!=null&&(i[2]=ln(a)),Yr(Bf(i),"rgba")}function Tl(r,e){var t=Ge(r);if(t&&e!=null)return t[3]=xl(e),Yr(t,"rgba")}function Yr(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 Al(r,e){var t=Ge(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var zf=Array.prototype.slice;function yo(r,e,t){return(e-r)*t+r}function EM(r,e,t){return t>.5?e:r}function Py(r,e,t,a){for(var i=e.length,n=0;n<i;n++)r[n]=yo(e[n],t[n],a)}function kM(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]=yo(e[o][s],t[o][s],a)}}function Cl(r,e,t,a){for(var i=e.length,n=0;n<i;n++)r[n]=e[n]+t[n]*a;return r}function Ry(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 OM(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]:zf.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 h=0;h<u;h++)isNaN(a[l][h])&&(a[l][h]=i[l][h])}}function Ey(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 Ff(r,e,t,a,i,n,o){var s=(t-r)*.5,l=(a-e)*.5;return(2*(e-t)+s+l)*o+(-3*(e-t)-2*s-l)*n+s*i+e}function ky(r,e,t,a,i,n,o,s){for(var l=e.length,u=0;u<l;u++)r[u]=Ff(e[u],t[u],a[u],i[u],n,o,s)}function NM(r,e,t,a,i,n,o,s){for(var l=e.length,u=e[0].length,h=0;h<l;h++){r[h]||(r[1]=[]);for(var f=0;f<u;f++)r[h][f]=Ff(e[h][f],t[h][f],a[h][f],i[h][f],n,o,s)}}function mo(r){if(Te(r)){var e=r.length;if(Te(r[0])){for(var t=[],a=0;a<e;a++)t.push(zf.call(r[a]));return t}return zf.call(r)}return r}function _o(r){return r[0]=Math.floor(r[0]),r[1]=Math.floor(r[1]),r[2]=Math.floor(r[2]),"rgba("+r.join(",")+")"}function BM(r){return Te(r&&r[0])?2:1}var So=[0,0,0,0],VM=function(){function r(e){this.keyframes=[],this.maxTime=0,this.arrDim=0,this.interpolable=!0,this._needsSort=!1,this._isAllValueEqual=!0,this._lastFrame=0,this._lastFramePercent=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._isAllValueEqual&&this.keyframes.length>=2&&this.interpolable},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t){e>=this.maxTime?this.maxTime=e:this._needsSort=!0;var a=this.keyframes,i=a.length;if(this.interpolable)if(Te(t)){var n=BM(t);if(i>0&&this.arrDim!==n){this.interpolable=!1;return}if(n===1&&typeof t[0]!="number"||n===2&&typeof t[0][0]!="number"){this.interpolable=!1;return}if(i>0){var o=a[i-1];this._isAllValueEqual&&(n===1?Ey(t,o.value)||(this._isAllValueEqual=!1):this._isAllValueEqual=!1)}this.arrDim=n}else{if(this.arrDim>0){this.interpolable=!1;return}if(typeof t=="string"){var s=Ge(t);s?(t=s,this.isValueColor=!0):this.interpolable=!1}else if(typeof t!="number"||isNaN(t)){this.interpolable=!1;return}if(this._isAllValueEqual&&i>0){var o=a[i-1];this.isValueColor&&!Ey(o.value,t)?this._isAllValueEqual=!1:o.value!==t&&(this._isAllValueEqual=!1)}}var l={time:e,value:t,percent:0};return this.keyframes.push(l),l},r.prototype.prepare=function(e){var t=this.keyframes;this._needsSort&&t.sort(function(l,u){return l.time-u.time});for(var a=this.arrDim,i=t.length,n=t[i-1],o=0;o<i;o++)t[o].percent=t[o].time/this.maxTime,a>0&&o!==i-1&&OM(t[o].value,n.value,a);if(e&&this.needsAnimate()&&e.needsAnimate()&&a===e.arrDim&&this.isValueColor===e.isValueColor&&!e._finished){this._additiveTrack=e;for(var s=t[0].value,o=0;o<i;o++)a===0?this.isValueColor?t[o].additiveValue=Cl([],t[o].value,s,-1):t[o].additiveValue=t[o].value-s:a===1?t[o].additiveValue=Cl([],t[o].value,s,-1):a===2&&(t[o].additiveValue=Ry([],t[o].value,s,-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.keyframes,o=this.keyframes.length,s=this.propName,l=this.arrDim,u=this.isValueColor,h;if(t<0)h=0;else if(t<this._lastFramePercent){var f=Math.min(this._lastFrame+1,o-1);for(h=f;h>=0&&!(n[h].percent<=t);h--);h=Math.min(h,o-2)}else{for(h=this._lastFrame;h<o&&!(n[h].percent>t);h++);h=Math.min(h-1,o-2)}var v=n[h+1],c=n[h];if(!!(c&&v)){this._lastFrame=h,this._lastFramePercent=t;var p=v.percent-c.percent;if(p!==0){var d=(t-c.percent)/p,g=a?this._additiveValue:u?So:e[s];if((l>0||u)&&!g&&(g=this._additiveValue=[]),this.useSpline){var y=n[h][i],m=n[h===0?h:h-1][i],_=n[h>o-2?o-1:h+1][i],S=n[h>o-3?o-1:h+2][i];if(l>0)l===1?ky(g,m,y,_,S,d,d*d,d*d*d):NM(g,m,y,_,S,d,d*d,d*d*d);else if(u)ky(g,m,y,_,S,d,d*d,d*d*d),a||(e[s]=_o(g));else{var x=void 0;this.interpolable?x=Ff(m,y,_,S,d,d*d,d*d*d):x=_,a?this._additiveValue=x:e[s]=x}}else if(l>0)l===1?Py(g,c[i],v[i],d):kM(g,c[i],v[i],d);else if(u)Py(g,c[i],v[i],d),a||(e[s]=_o(g));else{var x=void 0;this.interpolable?x=yo(c[i],v[i],d):x=EM(c[i],v[i],d),a?this._additiveValue=x:e[s]=x}a&&this._addToTarget(e)}}}},r.prototype._addToTarget=function(e){var t=this.arrDim,a=this.propName,i=this._additiveValue;t===0?this.isValueColor?(Ge(e[a],So),Cl(So,So,i,1),e[a]=_o(So)):e[a]=e[a]+i:t===1?Cl(e[a],e[a],i,1):t===2&&Ry(e[a],e[a],i,1)},r}(),Gf=function(){function r(e,t,a){if(this._tracks={},this._trackKeys=[],this._delay=0,this._maxTime=0,this._paused=!1,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a){Fr("Can' use additive animation on looped animation.");return}this._additiveAnimators=a}return r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t){return this.whenWithKeys(e,t,St(t))},r.prototype.whenWithKeys=function(e,t,a){for(var i=this._tracks,n=0;n<a.length;n++){var o=a[n],s=i[o];if(!s){s=i[o]=new VM(o);var l=void 0,u=this._getAdditiveTrack(o);if(u){var h=u.keyframes[u.keyframes.length-1];l=h&&h.value,u.isValueColor&&l&&(l=_o(l))}else l=this._target[o];if(l==null)continue;e!==0&&s.addKeyframe(0,mo(l)),this._trackKeys.push(o)}s.addKeyframe(e,mo(t[o]))}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._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneList;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._abortedList;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,t){if(!(this._started>0)){this._started=1;for(var a=this,i=[],n=0;n<this._trackKeys.length;n++){var o=this._trackKeys[n],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes;if(s.prepare(l),s.needsAnimate())i.push(s);else if(!s.interpolable){var h=u[u.length-1];h&&(a._target[s.propName]=h.value)}}if(i.length||t){var f=new LM({life:this._maxTime,loop:this._loop,delay:this._delay,onframe:function(v){a._started=2;var c=a._additiveAnimators;if(c){for(var p=!1,d=0;d<c.length;d++)if(c[d]._clip){p=!0;break}p||(a._additiveAnimators=null)}for(var d=0;d<i.length;d++)i[d].step(a._target,v);var g=a._onframeList;if(g)for(var d=0;d<g.length;d++)g[d](a._target,v)},ondestroy:function(){a._doneCallback()}});this._clip=f,this.animation&&this.animation.addClip(f),e&&e!=="spline"&&(f.easing=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._onframeList||(this._onframeList=[]),this._onframeList.push(e)),this},r.prototype.done=function(e){return e&&(this._doneList||(this._doneList=[]),this._doneList.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedList||(this._abortedList=[]),this._abortedList.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},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&&(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.saveFinalToTarget=function(e,t){if(!!e){t=t||this._trackKeys;for(var a=0;a<t.length;a++){var i=t[a],n=this._tracks[i];if(!(!n||n.isFinished())){var o=n.keyframes,s=o[o.length-1];if(s){var l=mo(s.value);n.isValueColor&&(l=_o(l)),e[i]=l}}}}},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(n.getAdditiveTrack())}}}},r}(),nt=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}(),Dl=Math.min,Ml=Math.max,Ja=new nt,ja=new nt,ti=new nt,ei=new nt,xo=new nt,bo=new nt,ot=function(){function r(e,t,a,i){a<0&&isFinite(a)&&(e=e+a,a=-a),i<0&&isFinite(i)&&(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=Dl(e.x,this.x),a=Dl(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ml(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ml(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=ze();return yr(n,n,[-t.x,-t.y]),If(n,n,[a,i]),yr(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,h=e.y,f=e.y+e.height,v=!(n<l||u<i||s<h||f<o);if(t){var c=Infinity,p=0,d=Math.abs(n-l),g=Math.abs(u-i),y=Math.abs(s-h),m=Math.abs(f-o),_=Math.min(d,g),S=Math.min(y,m);n<l||u<i?_>p&&(p=_,d<g?nt.set(bo,-d,0):nt.set(bo,g,0)):_<c&&(c=_,d<g?nt.set(xo,d,0):nt.set(xo,-g,0)),s<h||f<o?S>p&&(p=S,y<m?nt.set(bo,0,-y):nt.set(bo,0,m)):_<c&&(c=_,y<m?nt.set(xo,0,y):nt.set(xo,0,-m))}return t&&nt.copy(t,v?xo:bo),v},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}Ja.x=ti.x=t.x,Ja.y=ei.y=t.y,ja.x=ei.x=t.x+t.width,ja.y=ti.y=t.y+t.height,Ja.transform(a),ei.transform(a),ja.transform(a),ti.transform(a),e.x=Dl(Ja.x,ja.x,ti.x,ei.x),e.y=Dl(Ja.y,ja.y,ti.y,ei.y);var l=Ml(Ja.x,ja.x,ti.x,ei.x),u=Ml(Ja.y,ja.y,ti.y,ei.y);e.width=l-e.x,e.height=u-e.y},r}(),Oy={},ri="12px sans-serif",Ll,Ny;function zM(r,e){return Ll||(Ll=rn().getContext("2d")),Ny!==e&&(Ny=Ll.font=e||ri),Ll.measureText(r)}var FM={measureText:zM};function Re(r,e){e=e||ri;var t=Oy[e];t||(t=Oy[e]=new po(500));var a=t.get(r);return a==null&&(a=FM.measureText(r,e).width,t.put(r,a)),a}function By(r,e,t,a){var i=Re(r,e),n=Il(e),o=To(0,i,t),s=hn(0,n,a),l=new ot(o,s,i,n);return l}function wo(r,e,t,a){var i=((r||"")+"").split(`
`),n=i.length;if(n===1)return By(i[0],e,t,a);for(var o=new ot(0,0,0,0),s=0;s<i.length;s++){var l=By(i[s],e,t,a);s===0?o.copy(l):o.union(l)}return o}function To(r,e,t){return t==="right"?r-=e:t==="center"&&(r-=e/2),r}function hn(r,e,t){return t==="middle"?r-=e/2:t==="bottom"&&(r-=e),r}function Il(r){return Re("\u56FD",r)}function He(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function Vy(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,h="left",f="top";if(a instanceof Array)l+=He(a[0],t.width),u+=He(a[1],t.height),h=null,f=null;else switch(a){case"left":l-=i,u+=s,h="right",f="middle";break;case"right":l+=i+o,u+=s,f="middle";break;case"top":l+=o/2,u-=i,h="center",f="bottom";break;case"bottom":l+=o/2,u+=n+i,h="center";break;case"inside":l+=o/2,u+=s,h="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=o-i,u+=s,h="right",f="middle";break;case"insideTop":l+=o/2,u+=i,h="center";break;case"insideBottom":l+=o/2,u+=n-i,h="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,h="right";break;case"insideBottomLeft":l+=i,u+=n-i,f="bottom";break;case"insideBottomRight":l+=o-i,u+=n-i,h="right",f="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=h,r.verticalAlign=f,r}var zy=1;typeof window!="undefined"&&(zy=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Pl=zy,Hf=.4,Wf="#333",Uf="#ccc",GM="#eee",Yf="__zr_normal__",Xf=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],HM={x:!0,y:!0,scaleX:!0,scaleY:!0,originX:!0,originY:!0,rotation:!0,ignore:!1},fn={},WM=new ot(0,0,0,0),We=function(){function r(e){this.id=fy(),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.attachedTransform,o=void 0,s=void 0,l=!1;i?n.parent=this:n.parent=null;var u=!1;if(n.x=t.x,n.y=t.y,n.originX=t.originX,n.originY=t.originY,n.rotation=t.rotation,n.scaleX=t.scaleX,n.scaleY=t.scaleY,a.position!=null){var h=WM;a.layoutRect?h.copy(a.layoutRect):h.copy(this.getBoundingRect()),i||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(fn,a,h):Vy(fn,a,h),n.x=fn.x,n.y=fn.y,o=fn.align,s=fn.verticalAlign;var f=a.origin;if(f&&a.rotation!=null){var v=void 0,c=void 0;f==="center"?(v=h.width*.5,c=h.height*.5):(v=He(f[0],h.width),c=He(f[1],h.height)),u=!0,n.originX=-n.x+v+(i?0:h.x),n.originY=-n.y+c+(i?0:h.y)}}a.rotation!=null&&(n.rotation=a.rotation);var p=a.offset;p&&(n.x+=p[0],n.y+=p[1],u||(n.originX=-p[0],n.originY=-p[1]));var d=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;d&&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)),l&&t.dirtyStyle(),t.markRedraw()}},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()?Uf:Wf},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&Ge(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,Yr(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(J(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(!(n&&n!==Yf)){var o=i.targetName,s=o?t[o]:t;i.saveFinalToTarget(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,Xf)},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(Yf,!1,e)},r.prototype.useState=function(e,t,a){var i=e===Yf,n=this.hasState();if(!(!n&&i)){var o=this.currentStates,s=this.stateTransition;if(!(lt(o,e)>=0&&(t||o.length===1))){var l;if(this.stateProxy&&!i&&(l=this.stateProxy(e)),l||(l=this.states&&this.states[e]),!l&&!i){Fr("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer);return u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,l,this._normalState,t,!a&&!this.__inHover&&s&&s.duration>0,s),this._textContent&&this._textContent.useState(e,t),this._textGuide&&this._textGuide.useState(e,t),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~r.REDARAW_BIT),l}}},r.prototype.useStates=function(e,t){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,n=e.length,o=n===i.length;if(o){for(var s=0;s<n;s++)if(e[s]!==i[s]){o=!1;break}}if(o)return;for(var s=0;s<n;s++){var l=e[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,e)),u||(u=this.states[l]),u&&a.push(u)}var h=!!(a[n-1]&&a[n-1].hoverLayer);h&&this._toggleHoverLayerFlag(!0);var f=this._mergeStates(a),v=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(e.join(","),f,this._normalState,!1,!t&&!this.__inHover&&v&&v.duration>0,v),this._textContent&&this._textContent.useStates(e),this._textGuide&&this._textGuide.useStates(e),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~r.REDARAW_BIT)}},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=lt(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=lt(i,e),o=lt(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,h=0;h<Xf.length;h++){var f=Xf[h],v=n&&HM[f];t&&t[f]!=null?v?(u=!0,l[f]=t[f]):this[f]=t[f]:s&&a[f]!=null&&(v?(u=!0,l[f]=a[f]):this[f]=a[f])}if(!n)for(var h=0;h<this.animators.length;h++){var c=this.animators[h],p=c.targetName;c.__changeFinalValue(p?(t||a)[p]:t||a)}u&&this._transitionState(e,l,o)},r.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");if(e===this)throw new Error("Recursive component attachment.");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;if(t!==e){if(t&&t!==e&&this.removeTextContent(),e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");e.attachedTransform=new Ur,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.attachedTransform=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|=r.REDARAW_BIT;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){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){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){var a=e?this[e]:this;if(!a){Fr('Property "'+e+'" is not existed in element '+this.id);return}var i=new Gf(a,t);return this.addAnimator(i,e),i},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=lt(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){$f(this,e,t,a)},r.prototype.animateFrom=function(e,t,a){$f(this,e,t,a,!0)},r.prototype._transitionState=function(e,t,a,i){for(var n=$f(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.REDARAW_BIT=1,r.initDefaultProps=function(){var e=r.prototype;e.type="element",e.name="",e.ignore=!1,e.silent=!1,e.isGroup=!1,e.draggable=!1,e.dragging=!1,e.ignoreClip=!1,e.__inHover=!1,e.__dirty=r.REDARAW_BIT;var t={};function a(n,o,s){t[n+o+s]||(console.warn("DEPRECATED: '"+n+"' has been deprecated. use '"+o+"', '"+s+"' instead"),t[n+o+s]=!0)}function i(n,o,s,l){Object.defineProperty(e,n,{get:function(){if(a(n,s,l),!this[o]){var h=this[o]=[];u(this,h)}return this[o]},set:function(h){a(n,s,l),this[s]=h[0],this[l]=h[1],this[o]=h,u(this,h)}});function u(h,f){Object.defineProperty(f,0,{get:function(){return h[s]},set:function(v){h[s]=v}}),Object.defineProperty(f,1,{get:function(){return h[l]},set:function(v){h[l]=v}})}}Object.defineProperty&&(!et.browser.ie||et.browser.version>8)&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),r}();Ht(We,or),Ht(We,Ur);function $f(r,e,t,a,i){t=t||{};var n=[];Fy(r,"",r,e,t,a,n,i);var o=n.length,s=!1,l=t.done,u=t.aborted,h=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},f=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),n.length>0&&t.during&&n[0].during(function(p,d){t.during(d)});for(var v=0;v<n.length;v++){var c=n[v];h&&c.done(h),f&&c.aborted(f),c.start(t.easing,t.force)}return n}function Zf(r,e,t){for(var a=0;a<t;a++)r[a]=e[a]}function UM(r){return Te(r[0])}function YM(r,e,t){if(Te(e[t]))if(Te(r[t])||(r[t]=[]),Pe(e[t])){var a=e[t].length;r[t].length!==a&&(r[t]=new e[t].constructor(a),Zf(r[t],e[t],a))}else{var i=e[t],n=r[t],o=i.length;if(UM(i))for(var s=i[0].length,l=0;l<o;l++)n[l]?Zf(n[l],i[l],s):n[l]=Array.prototype.slice.call(i[l]);else Zf(n,i,o);n.length=i.length}else r[t]=e[t]}function Fy(r,e,t,a,i,n,o,s){for(var l=[],u=[],h=St(a),f=i.duration,v=i.delay,c=i.additive,p=i.setToFinal,d=!J(n),g=0;g<h.length;g++){var y=h[g];if(t[y]!=null&&a[y]!=null&&(d||n[y]))if(J(a[y])&&!Te(a[y])){if(e){s||(t[y]=a[y],r.updateDuringAnimation(e));continue}Fy(r,y,t[y],a[y],i,n&&n[y],o,s)}else l.push(y),u.push(y);else s||(t[y]=a[y],r.updateDuringAnimation(e),u.push(y))}var m=l.length;if(m>0||i.force&&!o.length){for(var _=r.animators,S=[],x=0;x<_.length;x++)_[x].targetName===e&&S.push(_[x]);if(!c&&S.length)for(var x=0;x<S.length;x++){var b=S[x].stopTracks(u);if(b){var w=lt(_,S[x]);_.splice(w,1)}}var T=void 0,C=void 0,M=void 0;if(s){C={},p&&(T={});for(var x=0;x<m;x++){var y=l[x];C[y]=t[y],p?T[y]=a[y]:t[y]=a[y]}}else if(p){M={};for(var x=0;x<m;x++){var y=l[x];M[y]=mo(t[y]),YM(t,a,y)}}var D=new Gf(t,!1,c?S:null);D.targetName=e,i.scope&&(D.scope=i.scope),p&&T&&D.whenWithKeys(0,T,l),M&&D.whenWithKeys(0,M,l),D.whenWithKeys(f==null?500:f,s?C:a,l).delay(v||0),r.addAnimator(D,e),o.push(D)}}var Gy=32,Ao=7;function XM(r){for(var e=0;r>=Gy;)e|=r&1,r>>=1;return r+e}function Hy(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++;$M(r,e,i)}else for(;i<t&&a(r[i],r[i-1])>=0;)i++;return i-e}function $M(r,e,t){for(t--;e<t;){var a=r[e];r[e++]=r[t],r[t--]=a}}function Wy(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 qf(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 h=o+(l-o>>>1);n(r,e[t+h])>0?o=h+1:l=h}return l}function Kf(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 h=o+(l-o>>>1);n(r,e[t+h])<0?l=h:o=h+1}return l}function ZM(r,e){var t=Ao,a,i,n=0,o=[];a=[],i=[];function s(c,p){a[n]=c,i[n]=p,n+=1}function l(){for(;n>1;){var c=n-2;if(c>=1&&i[c-1]<=i[c]+i[c+1]||c>=2&&i[c-2]<=i[c]+i[c-1])i[c-1]<i[c+1]&&c--;else if(i[c]>i[c+1])break;h(c)}}function u(){for(;n>1;){var c=n-2;c>0&&i[c-1]<i[c+1]&&c--,h(c)}}function h(c){var p=a[c],d=i[c],g=a[c+1],y=i[c+1];i[c]=d+y,c===n-3&&(a[c+1]=a[c+2],i[c+1]=i[c+2]),n--;var m=Kf(r[g],r,p,d,0,e);p+=m,d-=m,d!==0&&(y=qf(r[p+d-1],r,g,y,y-1,e),y!==0&&(d<=y?f(p,d,g,y):v(p,d,g,y)))}function f(c,p,d,g){var y=0;for(y=0;y<p;y++)o[y]=r[c+y];var m=0,_=d,S=c;if(r[S++]=r[_++],--g==0){for(y=0;y<p;y++)r[S+y]=o[m+y];return}if(p===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var x=t,b,w,T;;){b=0,w=0,T=!1;do if(e(r[_],o[m])<0){if(r[S++]=r[_++],w++,b=0,--g==0){T=!0;break}}else if(r[S++]=o[m++],b++,w=0,--p==1){T=!0;break}while((b|w)<x);if(T)break;do{if(b=Kf(r[_],o,m,p,0,e),b!==0){for(y=0;y<b;y++)r[S+y]=o[m+y];if(S+=b,m+=b,p-=b,p<=1){T=!0;break}}if(r[S++]=r[_++],--g==0){T=!0;break}if(w=qf(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++],--p==1){T=!0;break}x--}while(b>=Ao||w>=Ao);if(T)break;x<0&&(x=0),x+=2}if(t=x,t<1&&(t=1),p===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(p===0)throw new Error;for(y=0;y<p;y++)r[S+y]=o[m+y]}}function v(c,p,d,g){var y=0;for(y=0;y<g;y++)o[y]=r[d+y];var m=c+p-1,_=g-1,S=d+g-1,x=0,b=0;if(r[S--]=r[m--],--p==0){for(x=S-(g-1),y=0;y<g;y++)r[x+y]=o[y];return}if(g===1){for(S-=p,m-=p,b=S+1,x=m+1,y=p-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_];return}for(var w=t;;){var T=0,C=0,M=!1;do if(e(o[_],r[m])<0){if(r[S--]=r[m--],T++,C=0,--p==0){M=!0;break}}else if(r[S--]=o[_--],C++,T=0,--g==1){M=!0;break}while((T|C)<w);if(M)break;do{if(T=p-Kf(o[_],r,c,p,p-1,e),T!==0){for(S-=T,m-=T,p-=T,b=S+1,x=m+1,y=T-1;y>=0;y--)r[b+y]=r[x+y];if(p===0){M=!0;break}}if(r[S--]=o[_--],--g==1){M=!0;break}if(C=g-qf(r[m],o,0,g,g-1,e),C!==0){for(S-=C,_-=C,g-=C,b=S+1,x=_+1,y=0;y<C;y++)r[b+y]=o[x+y];if(g<=1){M=!0;break}}if(r[S--]=r[m--],--p==0){M=!0;break}w--}while(T>=Ao||C>=Ao);if(M)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),g===1){for(S-=p,m-=p,b=S+1,x=m+1,y=p-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_]}else{if(g===0)throw new Error;for(x=S-(g-1),y=0;y<g;y++)r[x+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Qf(r,e,t,a){t||(t=0),a||(a=r.length);var i=a-t;if(!(i<2)){var n=0;if(i<Gy){n=Hy(r,t,a,e),Wy(r,t,a,t+n,e);return}var o=ZM(r,e),s=XM(i);do{if(n=Hy(r,t,a,e),n<s){var l=i;l>s&&(l=s),Wy(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 Uy=!1;function Jf(){Uy||(Uy=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Yy(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var qM=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Yy}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,et.canvasSupported&&Qf(a,Yy)},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|=We.REDARAW_BIT),this._updateAndAddDisplayable(u,t,a)}e.__dirty=0}else{var h=e;t&&t.length?h.__clipPaths=t:h.__clipPaths&&h.__clipPaths.length>0&&(h.__clipPaths=[]),isNaN(h.z)&&(Jf(),h.z=0),isNaN(h.z2)&&(Jf(),h.z2=0),isNaN(h.zlevel)&&(Jf(),h.zlevel=0),this._displayList[this._displayListLen++]=h}var f=e.getDecalElement&&e.getDecalElement();f&&this._updateAndAddDisplayable(f,t,a);var v=e.getTextGuideLine();v&&this._updateAndAddDisplayable(v,t,a);var c=e.getTextContent();c&&this._updateAndAddDisplayable(c,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=lt(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}(),Xy;Xy=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var jf=Xy,KM=function(r){E(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.onframe=t.onframe||function(){},a}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._clipsHead?(this._clipsTail.next=t,t.prev=this._clipsTail,t.next=null,this._clipsTail=t):this._clipsHead=this._clipsTail=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._clipsHead=i,i?i.prev=a:this._clipsTail=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=new Date().getTime()-this._pausedTime,i=a-this._time,n=this._clipsHead;n;){var o=n.next,s=n.step(a,i);s&&(n.ondestroy&&n.ondestroy(),this.removeClip(n)),n=o}this._time=a,t||(this.onframe(i),this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function a(){t._running&&(jf(a),!t._paused&&t.update())}jf(a)},e.prototype.start=function(){this._running||(this._time=new Date().getTime(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=new Date().getTime(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=new Date().getTime()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._clipsHead;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._clipsHead=this._clipsTail=null},e.prototype.isFinished=function(){return this._clipsHead==null},e.prototype.animate=function(t,a){a=a||{},this.start();var i=new Gf(t,a.loop);return this.addAnimator(i),i},e}(or),QM=300,tv=et.domSupported,ev=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=H(r,function(i){var n=i.replace("mouse","pointer");return t.hasOwnProperty(n)?n:i});return{mouse:r,touch:e,pointer:a}}(),$y={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Zy=!1;function rv(r){var e=r.pointerType;return e==="pen"||e==="touch"}function JM(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 av(r){r&&(r.zrByTouch=!0)}function jM(r,e){return Ve(r.dom,new tL(r,e),!0)}function qy(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 tL=function(){function r(e,t){this.stopPropagation=nr,this.stopImmediatePropagation=nr,this.preventDefault=nr,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),sr={mousedown:function(r){r=Ve(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Ve(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=Ve(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Ve(this.dom,r);var e=r.toElement||r.relatedTarget;qy(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Zy=!0,r=Ve(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Zy||(r=Ve(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Ve(this.dom,r),av(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),sr.mousemove.call(this,r),sr.mousedown.call(this,r)},touchmove:function(r){r=Ve(this.dom,r),av(r),this.handler.processGesture(r,"change"),sr.mousemove.call(this,r)},touchend:function(r){r=Ve(this.dom,r),av(r),this.handler.processGesture(r,"end"),sr.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<QM&&sr.click.call(this,r)},pointerdown:function(r){sr.mousedown.call(this,r)},pointermove:function(r){rv(r)||sr.mousemove.call(this,r)},pointerup:function(r){sr.mouseup.call(this,r)},pointerout:function(r){rv(r)||sr.mouseout.call(this,r)}};A(["click","dblclick","contextmenu"],function(r){sr[r]=function(e){e=Ve(this.dom,e),this.trigger(r,e)}});var iv={pointermove:function(r){rv(r)||iv.mousemove.call(this,r)},pointerup:function(r){iv.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 eL(r,e){var t=e.domHandlers;et.pointerEventsSupported?A(ev.pointer,function(a){Rl(e,a,function(i){t[a].call(r,i)})}):(et.touchEventsSupported&&A(ev.touch,function(a){Rl(e,a,function(i){t[a].call(r,i),JM(e)})}),A(ev.mouse,function(a){Rl(e,a,function(i){i=Df(i),e.touching||t[a].call(r,i)})}))}function rL(r,e){et.pointerEventsSupported?A($y.pointer,t):et.touchEventsSupported||A($y.mouse,t);function t(a){function i(n){n=Df(n),qy(r,n.target)||(n=jM(r,n),e.domHandlers[a].call(r,n))}Rl(e,a,i,{capture:!0})}}function Rl(r,e,t,a){r.mounted[e]=t,r.listenerOpts[e]=a,Mf(r.domTarget,e,t,a)}function nv(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&SM(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var Ky=function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r}(),aL=function(r){E(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 Ky(t,sr),tv&&(i._globalHandlerScope=new Ky(document,iv)),eL(i,i._localHandlerScope),i}return e.prototype.dispose=function(){nv(this._localHandlerScope),tv&&nv(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,tv&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var a=this._globalHandlerScope;t?rL(this,a):nv(a)}},e}(or),q=function(r){E(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){if(t&&(t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),t.__hostTarget))throw"This elemenet has been used as an attachment";return 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.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=lt(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 ot(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(),h=l.getLocalTransform(n);h?(ot.applyTransform(a,u,h),o=o||a.clone(),o.union(a)):(o=o||u.clone(),o.union(u))}}return o||a},e}(We);q.prototype.type="group";/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var iL=!et.canvasSupported,Co={},Qy={};function nL(r){delete Qy[r]}function oL(r){if(!r)return!1;if(typeof r=="string")return Al(r,1)<Hf;if(r.colorStops){for(var e=r.colorStops,t=0,a=e.length,i=0;i<a;i++)t+=Al(e[i].color,1);return t/=a,t<Hf}return!1}var sL=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 qM,o=a.renderer||"canvas";if(iL)throw new Error("IE8 support has been dropped since 5.0");if(Co[o]||(o=St(Co)[0]),!Co[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new Co[o](t,n,a,e);this.storage=n,this.painter=s;var l=!et.node&&!et.worker?new aL(s.getViewportRoot(),s.root):null;this.handler=new wy(n,s,l,s.root),this.animation=new KM({stage:{update:function(){return i._flush(!0)}}}),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=oL(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=new Date().getTime();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var i=new Date().getTime();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.addHover=function(e){},r.prototype.removeHover=function(e){},r.prototype.clearHover=function(){},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.pathToImage=function(e,t){if(this.painter.pathToImage)return this.painter.pathToImage(e,t)},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 q&&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,nL(this.id)},r}();function Jy(r,e){var t=new sL(fy(),r,e);return Qy[t.id]=t,t}function lL(r,e){Co[r]=e}var jy=1e-4;function uL(r){return r.replace(/^\s+|\s+$/g,"")}function Tt(r,e,t,a){var i=e[1]-e[0],n=t[1]-t[0];if(i===0)return n===0?t[0]:(t[0]+t[1])/2;if(a)if(i>0){if(r<=e[0])return t[0];if(r>=e[1])return t[1]}else{if(r>=e[0])return t[0];if(r<=e[1])return t[1]}else{if(r===e[0])return t[0];if(r===e[1])return t[1]}return(r-e[0])/i*n+t[0]}function F(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 typeof r=="string"?uL(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function ae(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),20),r=(+r).toFixed(e),t?r:+r}function Ue(r){return r.sort(function(e,t){return e-t}),r}function hL(r){if(r=+r,isNaN(r))return 0;for(var e=1,t=0;Math.round(r*e)/e!==r;)e*=10,t++;return t}function ai(r){var e=r.toString(),t=e.indexOf("e");if(t>0){var a=+e.slice(t+1);return a<0?-a:0}else{var i=e.indexOf(".");return i<0?0:e.length-1-i}}function tm(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 fL(r,e,t){if(!r[e])return 0;var a=oo(r,function(p,d){return p+(isNaN(d)?0:d)},0);if(a===0)return 0;for(var i=Math.pow(10,t),n=H(r,function(p){return(isNaN(p)?0:p)/a*i*100}),o=i*100,s=H(n,function(p){return Math.floor(p)}),l=oo(s,function(p,d){return p+d},0),u=H(n,function(p,d){return p-s[d]});l<o;){for(var h=Number.NEGATIVE_INFINITY,f=null,v=0,c=u.length;v<c;++v)u[v]>h&&(h=u[v],f=v);++s[f],u[f]=0,++l}return s[e]/i}var em=9007199254740991;function rm(r){var e=Math.PI*2;return(r%e+e)%e}function El(r){return r>-jy&&r<jy}var vL=/^(?:(\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 mr(r){if(r instanceof Date)return r;if(typeof r=="string"){var e=vL.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]||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]||0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function cL(r){return Math.pow(10,am(r))}function am(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 im(r,e){var t=am(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 ov(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 nm(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-Infinity,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,h){return l.interval[h]<u.interval[h]||l.interval[h]===u.interval[h]&&(l.close[h]-u.close[h]==(h?-1:1)||!h&&s(l,u,1))}}function Xr(r){var e=parseFloat(r);return e==r&&(e!==0||typeof r!="string"||r.indexOf("x")<=0)?e:NaN}function om(r){return!isNaN(Xr(r))}function sm(){return Math.round(Math.random()*9)}function lm(r,e){return e===0?r:lm(e,r%e)}function um(r,e){return r==null?e:e==null?r:r*e/lm(r,e)}function yt(r){throw new Error(r)}var hm="series\0",fm="\0_ec_\0";function Rt(r){return r instanceof Array?r:r==null?[]:[r]}function ii(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 vm=["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 Do(r){return J(r)&&!B(r)&&!(r instanceof Date)?r.value:r}function pL(r){return J(r)&&!(r instanceof Array)}function cm(r,e,t){var a=t==="normalMerge",i=t==="replaceMerge",n=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=Z();A(e,function(l,u){if(!J(l)){e[u]=null;return}});var s=dL(r,o,t);return(a||i)&&gL(s,r,o,e),a&&yL(s,e),a||i?mL(s,e,i):n&&_L(s,e),SL(s),s}function dL(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"||Lo(n)?null:n,newOption:null,keyInfo:null,brandNew:null})}return a}function gL(r,e,t,a){A(a,function(i,n){if(!(!i||i.id==null)){var o=Mo(i.id),s=t.get(o);if(s!=null){var l=r[s];de(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=e[s],a[n]=null}}})}function yL(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)&&!Lo(t)&&!Lo(n)&&pm("name",n,t)){r[i].newOption=t,e[a]=null;return}}})}function mL(r,e,t){A(e,function(a){if(!!a){for(var i,n=0;(i=r[n])&&(i.newOption||Lo(i.existing)||i.existing&&a.id!=null&&!pm("id",a,i.existing));)n++;i?(i.newOption=a,i.brandNew=t):r.push({newOption:a,brandNew:t,existing:null,keyInfo:null}),n++}})}function _L(r,e){A(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function SL(r){var e=Z();A(r,function(t){var a=t.existing;a&&e.set(a.id,t)}),A(r,function(t){var a=t.newOption;de(!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(!!J(n)){if(o.name=n.name!=null?Mo(n.name):i?i.name:hm+a,i)o.id=Mo(i.id);else if(n.id!=null)o.id=Mo(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 pm(r,e,t){var a=$t(e[r],null),i=$t(t[r],null);return a!=null&&i!=null&&a===i}function Mo(r){return $t(r,"")}function $t(r,e){if(r==null)return e;var t=typeof r;return t==="string"?r:t==="number"||pf(r)?r+"":e}function sv(r){var e=r.name;return!!(e&&e.indexOf(hm))}function Lo(r){return r&&r.id!=null&&Mo(r.id).indexOf(fm)===0}function xL(r){return fm+r}function bL(r,e,t){A(r,function(a){var i=a.newOption;J(i)&&(a.keyInfo.mainType=e,a.keyInfo.subType=wL(e,i,a.existing,t))})}function wL(r,e,t,a){var i=e.type?e.type:t?t.subType:a.determineSubType(r,e);return i}function TL(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,h=o.length;u<h;u++){var f=$t(o[u].seriesId,null);if(f==null)return;for(var v=Rt(o[u].dataIndex),c=l&&l[f],p=0,d=v.length;p<d;p++){var g=v[p];c&&c[g]?c[g]=null:(s[f]||(s[f]={}))[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 h=n(o[u],!0);h.length&&l.push({seriesId:u,dataIndex:h})}return l}}function ni(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return B(e.dataIndex)?H(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return B(e.name)?H(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function At(){var r="__ec_inner_"+AL++;return function(e){return e[r]||(e[r]={})}}var AL=sm();function oi(r,e,t){var a=lv(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,h){var f=Io(r,h,u,{useDefault:l===h,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[h+"Models"]=f.models,s[h+"Model"]=f.models[0]}),s}function lv(r,e){var t;if(ft(r)){var a={};a[r+"Index"]=0,t=a}else t=r;var i=Z(),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)$/)||[],h=u[1],f=(u[2]||"").toLowerCase();if(!(!h||!f||e&&e.includeMainTypes&&lt(e.includeMainTypes,h)<0)){o=o||!!h;var v=i.get(h)||i.set(h,{});v[f]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:n}}var Wt={useDefault:!0,enableAll:!1,enableNone:!1},CL={useDefault:!1,enableAll:!0,enableNone:!0};function Io(r,e,t,a){a=a||Wt;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?(de(a.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(de(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 dm(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function DL(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function ML(r){return r==="auto"?et.domSupported?"html":"richText":r||"html"}function uv(r,e){var t=Z(),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 gm(r,e,t,a,i){var n=e==null||e==="auto";if(a==null)return a;if(typeof a=="number"){var o=yo(t||0,a,i);return ae(o,n?Math.max(ai(t||0),ai(a)):e)}else{if(typeof a=="string")return i<1?t:a;for(var s=[],l=t,u=a,h=Math.max(l?l.length:0,u.length),f=0;f<h;++f){var v=r.getDimensionInfo(f);if(v.type==="ordinal")s[f]=(i<1&&l?l:u)[f];else{var c=l&&l[f]?l[f]:0,p=u[f],o=yo(c,p,i);s[f]=ae(o,n?Math.max(ai(c),ai(p)):e)}}return s}}var LL=".",si="___EC__COMPONENT__CONTAINER___",ym="___EC__EXTENDED_CLASS___";function _r(r){var e={main:"",sub:""};if(r){var t=r.split(LL);e.main=t[0]||"",e.sub=t[1]||""}return e}function IL(r){de(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function PL(r){return!!(r&&r[ym])}function hv(r,e){r.$constructor=r,r.extend=function(t){var a=this;function i(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];if(t.$constructor)t.$constructor.apply(this,arguments);else if(!RL(a))a.apply(this,arguments);else{var s=ho(i.prototype,new(a.bind.apply(a,oy([void 0],n))));return s}}return i[ym]=!0,V(i.prototype,t),i.extend=this.extend,i.superCall=OL,i.superApply=NL,aM(i,this),i.superClass=a,i}}function RL(r){return typeof r=="function"&&/^class\s/.test(Function.prototype.toString.call(r))}function mm(r,e){r.extend=e.extend}var EL=Math.round(Math.random()*10);function kL(r){var e=["__\0is_clz",EL++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function OL(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 NL(r,e,t){return this.superClass.prototype[e].apply(r,t)}function kl(r){var e={};r.registerClass=function(a){var i=a.type||a.prototype.type;if(i){IL(i),a.prototype.type=i;var n=_r(i);if(!n.sub)e[n.main]=a;else if(n.sub!==si){var o=t(n);o[n.sub]=a}}return a},r.getClass=function(a,i,n){var o=e[a];if(o&&o[si]&&(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=_r(a),n=[],o=e[i.main];return o&&o[si]?A(o,function(s,l){l!==si&&n.push(s)}):n.push(o),n},r.hasClass=function(a){var i=_r(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=_r(a),n=e[i.main];return n&&n[si]};function t(a){var i=e[a.main];return(!i||!i[si])&&(i=e[a.main]={},i[si]=!0),i}}function li(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&&lt(i,l)>=0||n&&lt(n,l)<0)){var u=a.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var BL=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],VL=li(BL),zL=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return VL(this,e,t)},r}(),fv=new po(50);function FL(r){if(typeof r=="string"){var e=fv.get(r);return e&&e.image}else return r}function vv(r,e,t,a,i){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var n=fv.get(r),o={hostEl:t,cb:a,cbPayload:i};return n?(e=n.image,!Ol(e)&&n.pending.push(o)):(e=new Image,e.onload=e.onerror=GL,fv.put(r,e.__cachedImgObj={image:e,pending:[o]}),e.src=e.__zrImageSrc=r),e}else return r;else return e}function GL(){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 Ol(r){return r&&r.width&&r.height}var cv=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function HL(r,e,t,a,i){if(!e)return"";var n=(r+"").split(`
`);i=_m(e,t,a,i);for(var o=0,s=n.length;o<s;o++)n[o]=Sm(n[o],i);return n.join(`
`)}function _m(r,e,t,a){a=a||{};var i=V({},a);i.font=e,t=vt(t,"..."),i.maxIterations=vt(a.maxIterations,2);var n=i.minChar=vt(a.minChar,0);i.cnCharWidth=Re("\u56FD",e);var o=i.ascCharWidth=Re("a",e);i.placeholder=vt(a.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<n&&s>=o;l++)s-=o;var u=Re(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 Sm(r,e){var t=e.containerWidth,a=e.font,i=e.contentWidth;if(!t)return"";var n=Re(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?WL(r,i,e.ascCharWidth,e.cnCharWidth):n>0?Math.floor(r.length*i/n):0;r=r.substr(0,s),n=Re(r,a)}return r===""&&(r=e.placeholder),r}function WL(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 UL(r,e){r!=null&&(r+="");var t=e.overflow,a=e.padding,i=e.font,n=t==="truncate",o=Il(i),s=vt(e.lineHeight,o),l=e.lineOverflow==="truncate",u=e.width,h;u!=null&&t==="break"||t==="breakAll"?h=r?bm(r,e.font,u,t==="breakAll",0).lines:[]:h=r?r.split(`
`):[];var f=h.length*s,v=vt(e.height,f);if(f>v&&l){var c=Math.floor(v/s);h=h.slice(0,c)}var p=v,d=u;if(a&&(p+=a[0]+a[2],d!=null&&(d+=a[1]+a[3])),r&&n&&d!=null)for(var g=_m(u,i,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y=0;y<h.length;y++)h[y]=Sm(h[y],g);if(u==null){for(var m=0,y=0;y<h.length;y++)m=Math.max(Re(h[y],i),m);u=m}return{lines:h,height:v,outerHeight:p,lineHeight:s,calculatedLineHeight:o,contentHeight:f,width:u}}var YL=function(){function r(){}return r}(),xm=function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r}(),XL=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 $L(r,e){var t=new XL;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=cv.lastIndex=0,l;(l=cv.exec(r))!=null;){var u=l.index;u>s&&pv(t,r.substring(s,u),e,o),pv(t,l[2],e,o,l[1]),s=cv.lastIndex}s<r.length&&pv(t,r.substring(s,r.length),e,o);var h=[],f=0,v=0,c=e.padding,p=n==="truncate",d=e.lineOverflow==="truncate";function g(O,G,z){O.width=G,O.lineHeight=z,f+=z,v=Math.max(v,G)}t:for(var y=0;y<t.lines.length;y++){for(var m=t.lines[y],_=0,S=0,x=0;x<m.tokens.length;x++){var b=m.tokens[x],w=b.styleName&&e.rich[b.styleName]||{},T=b.textPadding=w.padding,C=T?T[1]+T[3]:0,M=b.font=w.font||e.font;b.contentHeight=Il(M);var D=vt(w.height,b.contentHeight);if(b.innerHeight=D,T&&(D+=T[0]+T[2]),b.height=D,b.lineHeight=Gr(w.lineHeight,e.lineHeight,D),b.align=w&&w.align||e.align,b.verticalAlign=w&&w.verticalAlign||"middle",d&&i!=null&&f+b.lineHeight>i){x>0?(m.tokens=m.tokens.slice(0,x),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)==="%")b.percentWidth=L,h.push(b),b.contentWidth=Re(b.text,M);else{if(I){var P=w.backgroundColor,R=P&&P.image;R&&(R=FL(R),Ol(R)&&(b.width=Math.max(b.width,R.width*D/R.height)))}var k=p&&a!=null?a-S:null;k!=null&&k<b.width?!I||k<C?(b.text="",b.width=b.contentWidth=0):(b.text=HL(b.text,k-C,M,e.ellipsis,{minChar:e.truncateMinChar}),b.width=b.contentWidth=Re(b.text,M)):b.contentWidth=Re(b.text,M)}b.width+=C,S+=b.width,w&&(_=Math.max(_,b.lineHeight))}g(m,S,_)}t.outerWidth=t.width=vt(a,v),t.outerHeight=t.height=vt(i,f),t.contentHeight=f,t.contentWidth=v,c&&(t.outerWidth+=c[1]+c[3],t.outerHeight+=c[0]+c[2]);for(var y=0;y<h.length;y++){var b=h[y],N=b.percentWidth;b.width=parseInt(N,10)/100*t.width}return t}function pv(r,e,t,a,i){var n=e==="",o=i&&t.rich[i]||{},s=r.lines,l=o.font||t.font,u=!1,h,f;if(a){var v=o.padding,c=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var p=He(o.width,a.width)+c;s.length>0&&p+a.accumWidth>a.width&&(h=e.split(`
`),u=!0),a.accumWidth=p}else{var d=bm(e,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=d.accumWidth+c,f=d.linesWidths,h=d.lines}}else h=e.split(`
`);for(var g=0;g<h.length;g++){var y=h[g],m=new YL;if(m.styleName=i,m.text=y,m.isLineHolder=!y&&!n,typeof o.width=="number"?m.width=o.width:m.width=f?f[g]:Re(y,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new xm)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=m:(y||!S||n)&&_.push(m)}else s.push(new xm([m]))}}function ZL(r){var e=r.charCodeAt(0);return e>=33&&e<=255}var qL=oo(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function KL(r){return ZL(r)?!!qL[r]:!0}function bm(r,e,t,a,i){for(var n=[],o=[],s="",l="",u=0,h=0,f=0;f<r.length;f++){var v=r.charAt(f);if(v===`
`){l&&(s+=l,h+=u),n.push(s),o.push(h),s="",l="",u=0,h=0;continue}var c=Re(v,e),p=a?!1:!KL(v);if(n.length?h+c>t:i+h+c>t){h?(s||l)&&(p?(s||(s=l,l="",u=0,h=u),n.push(s),o.push(h-u),l+=v,u+=c,s="",h=u):(l&&(s+=l,h+=u,l="",u=0),n.push(s),o.push(h),s=v,h=c)):p?(n.push(l),o.push(u),l=v,u=c):(n.push(v),o.push(c));continue}h+=c,p?(l+=v,u+=c):(l&&(s+=l,l="",u=0),s+=v)}return!n.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(n.push(s),o.push(h)),n.length===1&&(h+=i),{accumWidth:h,lines:n,linesWidths:o}}var dv="__zr_style_"+Math.round(Math.random()*10),ui={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Nl={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ui[dv]=!0;var gv=["z","z2","invisible"],Sr=function(r){E(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&&QL(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 ot(0,0,0,0)),a?ot.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 ot(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(){this.markRedraw(),this.__dirty|=e.STYLE_CHANGED_BIT,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&e.STYLE_CHANGED_BIT)},e.prototype.styleUpdated=function(){this.__dirty&=~e.STYLE_CHANGED_BIT},e.prototype.createStyle=function(t){return ho(ui,t)},e.prototype.useStyle=function(t){t[dv]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[dv]},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,gv)},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 h=this.style;if(this.style=this.createStyle(l?{}:h),l)for(var f=St(h),v=0;v<f.length;v++){var c=f[v];c in u&&(u[c]=u[c],this.style[c]=h[c])}for(var p=St(u),v=0;v<p.length;v++){var c=p[v];this.style[c]=this.style[c]}this._transitionState(t,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var v=0;v<gv.length;v++){var c=gv[v];a&&a[c]!=null?this[c]=a[c]:l&&i[c]!=null&&(this[c]=i[c])}},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 Nl},e.STYLE_CHANGED_BIT=2,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=We.REDARAW_BIT|e.STYLE_CHANGED_BIT}(),e}(We),yv=new ot(0,0,0,0),mv=new ot(0,0,0,0);function QL(r,e,t){return yv.copy(r.getBoundingRect()),r.transform&&yv.applyTransform(r.transform),mv.width=e,mv.height=t,!yv.intersect(mv)}var Bl=Math.pow,ua=Math.sqrt,Vl=1e-8,wm=1e-4,Tm=ua(3),zl=1/3,xr=Wa(),Ye=Wa(),vn=Wa();function ha(r){return r>-Vl&&r<Vl}function Am(r){return r>Vl||r<-Vl}function Ot(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 Cm(r,e,t,a,i){var n=1-i;return 3*(((e-r)*n+2*(t-e)*i)*n+(a-t)*i*i)}function _v(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,h=s*s-3*o*l,f=s*l-9*o*u,v=l*l-3*s*u,c=0;if(ha(h)&&ha(f))if(ha(s))n[0]=0;else{var p=-l/s;p>=0&&p<=1&&(n[c++]=p)}else{var d=f*f-4*h*v;if(ha(d)){var g=f/h,p=-s/o+g,y=-g/2;p>=0&&p<=1&&(n[c++]=p),y>=0&&y<=1&&(n[c++]=y)}else if(d>0){var m=ua(d),_=h*s+1.5*o*(-f+m),S=h*s+1.5*o*(-f-m);_<0?_=-Bl(-_,zl):_=Bl(_,zl),S<0?S=-Bl(-S,zl):S=Bl(S,zl);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(n[c++]=p)}else{var x=(2*h*s-3*o*f)/(2*ua(h*h*h)),b=Math.acos(x)/3,w=ua(h),T=Math.cos(b),p=(-s-2*w*T)/(3*o),y=(-s+w*(T+Tm*Math.sin(b)))/(3*o),C=(-s+w*(T-Tm*Math.sin(b)))/(3*o);p>=0&&p<=1&&(n[c++]=p),y>=0&&y<=1&&(n[c++]=y),C>=0&&C<=1&&(n[c++]=C)}}return c}function Dm(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(ha(o)){if(Am(n)){var u=-s/n;u>=0&&u<=1&&(i[l++]=u)}}else{var h=n*n-4*o*s;if(ha(h))i[0]=-n/(2*o);else if(h>0){var f=ua(h),u=(-n+f)/(2*o),v=(-n-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function cn(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,h=(l-s)*i+s,f=(h-u)*i+u;n[0]=r,n[1]=o,n[2]=u,n[3]=f,n[4]=f,n[5]=h,n[6]=l,n[7]=a}function Mm(r,e,t,a,i,n,o,s,l,u,h){var f,v=.005,c=Infinity,p,d,g,y;xr[0]=l,xr[1]=u;for(var m=0;m<1;m+=.05)Ye[0]=Ot(r,t,i,o,m),Ye[1]=Ot(e,a,n,s,m),g=Ya(xr,Ye),g<c&&(f=m,c=g);c=Infinity;for(var _=0;_<32&&!(v<wm);_++)p=f-v,d=f+v,Ye[0]=Ot(r,t,i,o,p),Ye[1]=Ot(e,a,n,s,p),g=Ya(Ye,xr),p>=0&&g<c?(f=p,c=g):(vn[0]=Ot(r,t,i,o,d),vn[1]=Ot(e,a,n,s,d),y=Ya(vn,xr),d<=1&&y<c?(f=d,c=y):v*=.5);return h&&(h[0]=Ot(r,t,i,o,f),h[1]=Ot(e,a,n,s,f)),ua(c)}function JL(r,e,t,a,i,n,o,s,l){for(var u=r,h=e,f=0,v=1/l,c=1;c<=l;c++){var p=c*v,d=Ot(r,t,i,o,p),g=Ot(e,a,n,s,p),y=d-u,m=g-h;f+=Math.sqrt(y*y+m*m),u=d,h=g}return f}function ie(r,e,t,a){var i=1-a;return i*(i*r+2*a*e)+a*a*t}function Sv(r,e,t,a){return 2*((1-a)*(e-r)+a*(t-e))}function jL(r,e,t,a,i){var n=r-2*e+t,o=2*(e-r),s=r-a,l=0;if(ha(n)){if(Am(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var h=o*o-4*n*s;if(ha(h)){var u=-o/(2*n);u>=0&&u<=1&&(i[l++]=u)}else if(h>0){var f=ua(h),u=(-o+f)/(2*n),v=(-o-f)/(2*n);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function Lm(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function Po(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 Im(r,e,t,a,i,n,o,s,l){var u,h=.005,f=Infinity;xr[0]=o,xr[1]=s;for(var v=0;v<1;v+=.05){Ye[0]=ie(r,t,i,v),Ye[1]=ie(e,a,n,v);var c=Ya(xr,Ye);c<f&&(u=v,f=c)}f=Infinity;for(var p=0;p<32&&!(h<wm);p++){var d=u-h,g=u+h;Ye[0]=ie(r,t,i,d),Ye[1]=ie(e,a,n,d);var c=Ya(Ye,xr);if(d>=0&&c<f)u=d,f=c;else{vn[0]=ie(r,t,i,g),vn[1]=ie(e,a,n,g);var y=Ya(vn,xr);g<=1&&y<f?(u=g,f=y):h*=.5}}return l&&(l[0]=ie(r,t,i,u),l[1]=ie(e,a,n,u)),ua(f)}function t2(r,e,t,a,i,n,o){for(var s=r,l=e,u=0,h=1/o,f=1;f<=o;f++){var v=f*h,c=ie(r,t,i,v),p=ie(e,a,n,v),d=c-s,g=p-l;u+=Math.sqrt(d*d+g*g),s=c,l=p}return u}var Ae=Math.min,Ce=Math.max,xv=Math.sin,bv=Math.cos,hi=Math.PI*2,Fl=Wa(),Gl=Wa(),Hl=Wa();function wv(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=Ae(i,a[0]),n=Ce(n,a[0]),o=Ae(o,a[1]),s=Ce(s,a[1]);e[0]=i,e[1]=o,t[0]=n,t[1]=s}}function Pm(r,e,t,a,i,n){i[0]=Ae(r,t),i[1]=Ae(e,a),n[0]=Ce(r,t),n[1]=Ce(e,a)}var Rm=[],Em=[];function e2(r,e,t,a,i,n,o,s,l,u){var h=Dm,f=Ot,v=h(r,t,i,o,Rm);l[0]=Infinity,l[1]=Infinity,u[0]=-Infinity,u[1]=-Infinity;for(var c=0;c<v;c++){var p=f(r,t,i,o,Rm[c]);l[0]=Ae(p,l[0]),u[0]=Ce(p,u[0])}v=h(e,a,n,s,Em);for(var c=0;c<v;c++){var d=f(e,a,n,s,Em[c]);l[1]=Ae(d,l[1]),u[1]=Ce(d,u[1])}l[0]=Ae(r,l[0]),u[0]=Ce(r,u[0]),l[0]=Ae(o,l[0]),u[0]=Ce(o,u[0]),l[1]=Ae(e,l[1]),u[1]=Ce(e,u[1]),l[1]=Ae(s,l[1]),u[1]=Ce(s,u[1])}function r2(r,e,t,a,i,n,o,s){var l=Lm,u=ie,h=Ce(Ae(l(r,t,i),1),0),f=Ce(Ae(l(e,a,n),1),0),v=u(r,t,i,h),c=u(e,a,n,f);o[0]=Ae(r,i,v),o[1]=Ae(e,n,c),s[0]=Ce(r,i,v),s[1]=Ce(e,n,c)}function a2(r,e,t,a,i,n,o,s,l){var u=Xa,h=$a,f=Math.abs(i-n);if(f%hi<1e-4&&f>1e-4){s[0]=r-t,s[1]=e-a,l[0]=r+t,l[1]=e+a;return}if(Fl[0]=bv(i)*t+r,Fl[1]=xv(i)*a+e,Gl[0]=bv(n)*t+r,Gl[1]=xv(n)*a+e,u(s,Fl,Gl),h(l,Fl,Gl),i=i%hi,i<0&&(i=i+hi),n=n%hi,n<0&&(n=n+hi),i>n&&!o?n+=hi:i<n&&o&&(i+=hi),o){var v=n;n=i,i=v}for(var c=0;c<n;c+=Math.PI/2)c>i&&(Hl[0]=bv(c)*t+r,Hl[1]=xv(c)*a+e,u(s,Hl,s),h(l,Hl,l))}var Mt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},fi=[],vi=[],br=[],fa=[],wr=[],Tr=[],Ro=Math.min,Eo=Math.max,ci=Math.cos,pi=Math.sin,Wl=Math.sqrt,$r=Math.abs,Tv=Math.PI,va=Tv*2,Av=typeof Float32Array!="undefined",ko=[];function Cv(r){var e=Math.round(r/Tv*1e8)/1e8;return e%2*Tv}function km(r,e){var t=Cv(r[0]);t<0&&(t+=va);var a=t-r[0],i=r[1];i+=a,!e&&i-t>=va?i=t+va:e&&t-i>=va?i=t-va:!e&&t>i?i=t+(va-Cv(t-i)):e&&t<i&&(i=t-(va-Cv(i-t))),r[0]=t,r[1]=i}var Ar=function(){function r(e){this.dpr=1,this._version=0,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=$r(a/Pl/e)||0,this._uy=$r(a/Pl/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._lineDash&&(this._lineDash=null,this._dashOffset=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this.addData(Mt.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=$r(e-this._xi)>this._ux||$r(t-this._yi)>this._uy||this._len<5;return this.addData(Mt.L,e,t),this._ctx&&a&&(this._needsDash?this._dashedLineTo(e,t):this._ctx.lineTo(e,t)),a&&(this._xi=e,this._yi=t),this},r.prototype.bezierCurveTo=function(e,t,a,i,n,o){return this.addData(Mt.C,e,t,a,i,n,o),this._ctx&&(this._needsDash?this._dashedBezierTo(e,t,a,i,n,o):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.addData(Mt.Q,e,t,a,i),this._ctx&&(this._needsDash?this._dashedQuadraticTo(e,t,a,i):this._ctx.quadraticCurveTo(e,t,a,i)),this._xi=a,this._yi=i,this},r.prototype.arc=function(e,t,a,i,n,o){ko[0]=i,ko[1]=n,km(ko,o),i=ko[0],n=ko[1];var s=n-i;return this.addData(Mt.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=pi(n)*a+t,this},r.prototype.arcTo=function(e,t,a,i,n){return this._ctx&&this._ctx.arcTo(e,t,a,i,n),this},r.prototype.rect=function(e,t,a,i){return this._ctx&&this._ctx.rect(e,t,a,i),this.addData(Mt.R,e,t,a,i),this},r.prototype.closePath=function(){this.addData(Mt.Z);var e=this._ctx,t=this._x0,a=this._y0;return e&&(this._needsDash&&this._dashedLineTo(t,a),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.setLineDash=function(e){if(e instanceof Array){this._lineDash=e,this._dashIdx=0;for(var t=0,a=0;a<e.length;a++)t+=e[a];this._dashSum=t,this._needsDash=!0}else this._lineDash=null,this._needsDash=!1;return this},r.prototype.setLineDashOffset=function(e){return this._dashOffset=e,this},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&Av&&(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();Av&&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 h=this.data;this._len+arguments.length>h.length&&(this._expandData(),h=this.data);for(var f=0;f<arguments.length;f++)h[this._len++]=arguments[f]}},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._dashedLineTo=function(e,t){var a=this._dashSum,i=this._lineDash,n=this._ctx,o=this._dashOffset,s=this._xi,l=this._yi,u=e-s,h=t-l,f=Wl(u*u+h*h),v=s,c=l,p=i.length,d,g;for(u/=f,h/=f,o<0&&(o=a+o),o%=a,v-=o*u,c-=o*h;u>0&&v<=e||u<0&&v>=e||u===0&&(h>0&&c<=t||h<0&&c>=t);)g=this._dashIdx,d=i[g],v+=u*d,c+=h*d,this._dashIdx=(g+1)%p,!(u>0&&v<s||u<0&&v>s||h>0&&c<l||h<0&&c>l)&&n[g%2?"moveTo":"lineTo"](u>=0?Ro(v,e):Eo(v,e),h>=0?Ro(c,t):Eo(c,t));u=v-e,h=c-t,this._dashOffset=-Wl(u*u+h*h)},r.prototype._dashedBezierTo=function(e,t,a,i,n,o){var s=this._ctx,l=this._dashSum,u=this._dashOffset,h=this._lineDash,f=this._xi,v=this._yi,c=0,p=this._dashIdx,d=h.length,g,y,m,_,S,x=0;for(u<0&&(u=l+u),u%=l,g=0;g<1;g+=.1)y=Ot(f,e,a,n,g+.1)-Ot(f,e,a,n,g),m=Ot(v,t,i,o,g+.1)-Ot(v,t,i,o,g),c+=Wl(y*y+m*m);for(;p<d&&(x+=h[p],!(x>u));p++);for(g=(x-u)/c;g<=1;)_=Ot(f,e,a,n,g),S=Ot(v,t,i,o,g),p%2?s.moveTo(_,S):s.lineTo(_,S),g+=h[p]/c,p=(p+1)%d;p%2!=0&&s.lineTo(n,o),y=n-_,m=o-S,this._dashOffset=-Wl(y*y+m*m)},r.prototype._dashedQuadraticTo=function(e,t,a,i){var n=a,o=i;a=(a+2*e)/3,i=(i+2*t)/3,e=(this._xi+2*e)/3,t=(this._yi+2*t)/3,this._dashedBezierTo(e,t,a,i,n,o)},r.prototype.toStatic=function(){if(!!this._saveData){var e=this.data;e instanceof Array&&(e.length=this._len,Av&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){br[0]=br[1]=wr[0]=wr[1]=Number.MAX_VALUE,fa[0]=fa[1]=Tr[0]=Tr[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 Mt.M:t=i=e[o++],a=n=e[o++],wr[0]=i,wr[1]=n,Tr[0]=i,Tr[1]=n;break;case Mt.L:Pm(t,a,e[o],e[o+1],wr,Tr),t=e[o++],a=e[o++];break;case Mt.C:e2(t,a,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],wr,Tr),t=e[o++],a=e[o++];break;case Mt.Q:r2(t,a,e[o++],e[o++],e[o],e[o+1],wr,Tr),t=e[o++],a=e[o++];break;case Mt.A:var u=e[o++],h=e[o++],f=e[o++],v=e[o++],c=e[o++],p=e[o++]+c;o+=1;var d=!e[o++];l&&(i=ci(c)*f+u,n=pi(c)*v+h),a2(u,h,f,v,c,p,d,wr,Tr),t=ci(p)*f+u,a=pi(p)*v+h;break;case Mt.R:i=t=e[o++],n=a=e[o++];var g=e[o++],y=e[o++];Pm(i,n,i+g,n+y,wr,Tr);break;case Mt.Z:t=i,a=n;break}Xa(br,br,wr),$a(fa,fa,Tr)}return o===0&&(br[0]=br[1]=fa[0]=fa[1]=0),new ot(br[0],br[1],fa[0]-br[0],fa[1]-br[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,h=0,f=0,v=0;v<t;){var c=e[v++],p=v===1;p&&(n=e[v],o=e[v+1],s=n,l=o);var d=-1;switch(c){case Mt.M:n=s=e[v++],o=l=e[v++];break;case Mt.L:{var g=e[v++],y=e[v++],m=g-n,_=y-o;($r(m)>a||$r(_)>i||v===t-1)&&(d=Math.sqrt(m*m+_*_),n=g,o=y);break}case Mt.C:{var S=e[v++],x=e[v++],g=e[v++],y=e[v++],b=e[v++],w=e[v++];d=JL(n,o,S,x,g,y,b,w,10),n=b,o=w;break}case Mt.Q:{var S=e[v++],x=e[v++],g=e[v++],y=e[v++];d=t2(n,o,S,x,g,y,10),n=g,o=y;break}case Mt.A:var T=e[v++],C=e[v++],M=e[v++],D=e[v++],L=e[v++],I=e[v++],P=I+L;v+=1,e[v++],p&&(s=ci(L)*M+T,l=pi(L)*D+C),d=Eo(M,D)*Ro(va,Math.abs(I)),n=ci(P)*M+T,o=pi(P)*D+C;break;case Mt.R:{s=n=e[v++],l=o=e[v++];var R=e[v++],k=e[v++];d=R*2+k*2;break}case Mt.Z:{var m=s-n,_=l-o;d=Math.sqrt(m*m+_*_),n=s,o=l;break}}d>=0&&(u[f++]=d,h+=d)}return this._pathLen=h,h},r.prototype.rebuildPath=function(e,t){var a=this.data,i=this._ux,n=this._uy,o=this._len,s,l,u,h,f,v,c=t<1,p,d,g=0,y=0,m;if(c&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,d=this._pathLen,m=t*d,!m))return;t:for(var _=0;_<o;){var S=a[_++],x=_===1;switch(x&&(u=a[_],h=a[_+1],s=u,l=h),S){case Mt.M:s=u=a[_++],l=h=a[_++],e.moveTo(u,h);break;case Mt.L:{if(f=a[_++],v=a[_++],$r(f-u)>i||$r(v-h)>n||_===o-1){if(c){var b=p[y++];if(g+b>m){var w=(m-g)/b;e.lineTo(u*(1-w)+f*w,h*(1-w)+v*w);break t}g+=b}e.lineTo(f,v),u=f,h=v}break}case Mt.C:{var T=a[_++],C=a[_++],M=a[_++],D=a[_++],L=a[_++],I=a[_++];if(c){var b=p[y++];if(g+b>m){var w=(m-g)/b;cn(u,T,M,L,w,fi),cn(h,C,D,I,w,vi),e.bezierCurveTo(fi[1],vi[1],fi[2],vi[2],fi[3],vi[3]);break t}g+=b}e.bezierCurveTo(T,C,M,D,L,I),u=L,h=I;break}case Mt.Q:{var T=a[_++],C=a[_++],M=a[_++],D=a[_++];if(c){var b=p[y++];if(g+b>m){var w=(m-g)/b;Po(u,T,M,w,fi),Po(h,C,D,w,vi),e.quadraticCurveTo(fi[1],vi[1],fi[2],vi[2]);break t}g+=b}e.quadraticCurveTo(T,C,M,D),u=M,h=D;break}case Mt.A:var P=a[_++],R=a[_++],k=a[_++],N=a[_++],O=a[_++],G=a[_++],z=a[_++],W=!a[_++],K=k>N?k:N,_t=$r(k-N)>.001,mt=O+G,ut=!1;if(c){var b=p[y++];g+b>m&&(mt=O+G*(m-g)/b,ut=!0),g+=b}if(_t&&e.ellipse?e.ellipse(P,R,k,N,z,O,mt,W):e.arc(P,R,K,O,mt,W),ut)break t;x&&(s=ci(O)*k+P,l=pi(O)*N+R),u=ci(mt)*k+P,h=pi(mt)*N+R;break;case Mt.R:s=u=a[_],l=h=a[_+1],f=a[_++],v=a[_++];var tt=a[_++],bt=a[_++];if(c){var b=p[y++];if(g+b>m){var it=m-g;e.moveTo(f,v),e.lineTo(f+Ro(it,tt),v),it-=tt,it>0&&e.lineTo(f+tt,v+Ro(it,bt)),it-=bt,it>0&&e.lineTo(f+Eo(tt-it,0),v+bt),it-=tt,it>0&&e.lineTo(f,v+Eo(bt-it,0));break t}g+=b}e.rect(f,v,tt,bt);break;case Mt.Z:if(c){var b=p[y++];if(g+b>m){var w=(m-g)/b;e.lineTo(u*(1-w)+s*w,h*(1-w)+l*w);break t}g+=b}e.closePath(),u=s,h=l}}},r.CMD=Mt,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._needsDash=!1,e._dashOffset=0,e._dashIdx=0,e._dashSum=0,e._ux=0,e._uy=0}(),r}();function ca(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 h=l*n-o+u,f=h*h/(l*l+1);return f<=s/2*s/2}function i2(r,e,t,a,i,n,o,s,l,u,h){if(l===0)return!1;var f=l;if(h>e+f&&h>a+f&&h>n+f&&h>s+f||h<e-f&&h<a-f&&h<n-f&&h<s-f||u>r+f&&u>t+f&&u>i+f&&u>o+f||u<r-f&&u<t-f&&u<i-f&&u<o-f)return!1;var v=Mm(r,e,t,a,i,n,o,s,u,h,null);return v<=f/2}function Om(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 h=Im(r,e,t,a,i,n,s,l,null);return h<=u/2}var Nm=Math.PI*2;function pa(r){return r%=Nm,r<0&&(r+=Nm),r}var Oo=Math.PI*2;function n2(r,e,t,a,i,n,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=e;var h=Math.sqrt(s*s+l*l);if(h-u>t||h+u<t)return!1;if(Math.abs(a-i)%Oo<1e-4)return!0;if(n){var f=a;a=pa(i),i=pa(f)}else a=pa(a),i=pa(i);a>i&&(i+=Oo);var v=Math.atan2(l,s);return v<0&&(v+=Oo),v>=a&&v<=i||v+Oo>=a&&v+Oo<=i}function Zr(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?Infinity:l>i?s:0}var da=Ar.CMD,di=Math.PI*2,o2=1e-4;function s2(r,e){return Math.abs(r-e)<o2}var ye=[-1,-1,-1],Xe=[-1,-1];function l2(){var r=Xe[0];Xe[0]=Xe[1],Xe[1]=r}function u2(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 h=_v(e,a,n,s,u,ye);if(h===0)return 0;for(var f=0,v=-1,c=void 0,p=void 0,d=0;d<h;d++){var g=ye[d],y=g===0||g===1?.5:1,m=Ot(r,t,i,o,g);m<l||(v<0&&(v=Dm(e,a,n,s,Xe),Xe[1]<Xe[0]&&v>1&&l2(),c=Ot(e,a,n,s,Xe[0]),v>1&&(p=Ot(e,a,n,s,Xe[1]))),v===2?g<Xe[0]?f+=c<e?y:-y:g<Xe[1]?f+=p<c?y:-y:f+=s<p?y:-y:g<Xe[0]?f+=c<e?y:-y:f+=s<c?y:-y)}return f}function h2(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=jL(e,a,n,s,ye);if(l===0)return 0;var u=Lm(e,a,n);if(u>=0&&u<=1){for(var h=0,f=ie(e,a,n,u),v=0;v<l;v++){var c=ye[v]===0||ye[v]===1?.5:1,p=ie(r,t,i,ye[v]);p<o||(ye[v]<u?h+=f<e?c:-c:h+=n<f?c:-c)}return h}else{var c=ye[0]===0||ye[0]===1?.5:1,p=ie(r,t,i,ye[0]);return p<o?0:n<e?c:-c}}function f2(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);ye[0]=-l,ye[1]=l;var u=Math.abs(a-i);if(u<1e-4)return 0;if(u>=di-1e-4){a=0,i=di;var h=n?1:-1;return o>=ye[0]+r&&o<=ye[1]+r?h:0}if(a>i){var f=a;a=i,i=f}a<0&&(a+=di,i+=di);for(var v=0,c=0;c<2;c++){var p=ye[c];if(p+r>o){var d=Math.atan2(s,p),h=n?1:-1;d<0&&(d=di+d),(d>=a&&d<=i||d+di>=a&&d+di<=i)&&(d>Math.PI/2&&d<Math.PI*1.5&&(h=-h),v+=h)}}return v}function Bm(r,e,t,a,i){for(var n=r.data,o=r.len(),s=0,l=0,u=0,h=0,f=0,v,c,p=0;p<o;){var d=n[p++],g=p===1;switch(d===da.M&&p>1&&(t||(s+=Zr(l,u,h,f,a,i))),g&&(l=n[p],u=n[p+1],h=l,f=u),d){case da.M:h=n[p++],f=n[p++],l=h,u=f;break;case da.L:if(t){if(ca(l,u,n[p],n[p+1],e,a,i))return!0}else s+=Zr(l,u,n[p],n[p+1],a,i)||0;l=n[p++],u=n[p++];break;case da.C:if(t){if(i2(l,u,n[p++],n[p++],n[p++],n[p++],n[p],n[p+1],e,a,i))return!0}else s+=u2(l,u,n[p++],n[p++],n[p++],n[p++],n[p],n[p+1],a,i)||0;l=n[p++],u=n[p++];break;case da.Q:if(t){if(Om(l,u,n[p++],n[p++],n[p],n[p+1],e,a,i))return!0}else s+=h2(l,u,n[p++],n[p++],n[p],n[p+1],a,i)||0;l=n[p++],u=n[p++];break;case da.A:var y=n[p++],m=n[p++],_=n[p++],S=n[p++],x=n[p++],b=n[p++];p+=1;var w=!!(1-n[p++]);v=Math.cos(x)*_+y,c=Math.sin(x)*S+m,g?(h=v,f=c):s+=Zr(l,u,v,c,a,i);var T=(a-y)*S/_+y;if(t){if(n2(y,m,S,x,x+b,w,e,T,i))return!0}else s+=f2(y,m,S,x,x+b,w,T,i);l=Math.cos(x+b)*_+y,u=Math.sin(x+b)*S+m;break;case da.R:h=l=n[p++],f=u=n[p++];var C=n[p++],M=n[p++];if(v=h+C,c=f+M,t){if(ca(h,f,v,f,e,a,i)||ca(v,f,v,c,e,a,i)||ca(v,c,h,c,e,a,i)||ca(h,c,h,f,e,a,i))return!0}else s+=Zr(v,f,v,c,a,i),s+=Zr(h,c,h,f,a,i);break;case da.Z:if(t){if(ca(l,u,h,f,e,a,i))return!0}else s+=Zr(l,u,h,f,a,i);l=h,u=f;break}}return!t&&!s2(u,f)&&(s+=Zr(l,u,h,f,a,i)||0),s!==0}function v2(r,e,t){return Bm(r,0,!1,e,t)}function c2(r,e,t,a){return Bm(r,e,!0,t,a)}var Vm=X({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ui),p2={style:X({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Nl.style)},Dv=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],ct=function(r){E(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<Dv.length;++s)i[Dv[s]]=this[Dv[s]];i.__dirty|=We.REDARAW_BIT}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(ft(t)){var a=Al(t,0);return a>.5?Wf:a>.2?GM:Uf}else if(t)return Uf}return Wf},e.prototype.getInsideTextStroke=function(t){var a=this.style.fill;if(ft(a)){var i=this.__zr,n=!!(i&&i.isDarkMode()),o=Al(t,0)<Hf;if(n===o)return a}},e.prototype.buildPath=function(t,a,i){},e.prototype.pathUpdated=function(){this.__dirty&=~e.SHAPE_CHANGED_BIT},e.prototype.createPathProxy=function(){this.path=new Ar(!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&e.SHAPE_CHANGED_BIT)&&(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._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||i){s.copy(t);var l=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;if(!this.hasFill()){var h=this.strokeContainThreshold;u=Math.max(u,h==null?4:h)}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)),c2(s,l/u,t,a)))return!0}if(this.hasFill())return v2(s,t,a)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=e.SHAPE_CHANGED_BIT,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&e.SHAPE_CHANGED_BIT)},e.prototype.createStyle=function(t){return ho(Vm,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 h={},f=St(u),v=0;v<f.length;v++){var c=f[v];typeof u[c]=="object"?this.shape[c]=u[c]:h[c]=u[c]}this._transitionState(t,{shape:h},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 p2},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var a=function(n){E(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 $(t.style)},o.prototype.getDefaultShape=function(){return $(t.shape)},o}(e);for(var i in t)typeof t[i]=="function"&&(a.prototype[i]=t[i]);return a},e.SHAPE_CHANGED_BIT=4,e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=We.REDARAW_BIT|Sr.STYLE_CHANGED_BIT|e.SHAPE_CHANGED_BIT}(),e}(Sr),d2=X({strokeFirst:!0,font:ri,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Vm),gi=function(r){E(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 ho(d2,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=wo(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}(Sr);gi.prototype.type="tspan";var g2=X({x:0,y:0},ui),y2={style:X({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Nl.style)};function m2(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Zt=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return ho(g2,t)},e.prototype._getSize=function(t){var a=this.style,i=a[t];if(i!=null)return i;var n=m2(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 y2},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ot(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Sr);Zt.prototype.type="image";function _2(r,e){var t=e.x,a=e.y,i=e.width,n=e.height,o=e.r,s,l,u,h;i<0&&(t=t+i,i=-i),n<0&&(a=a+n,n=-n),typeof o=="number"?s=l=u=h=o:o instanceof Array?o.length===1?s=l=u=h=o[0]:o.length===2?(s=u=o[0],l=h=o[1]):o.length===3?(s=o[0],l=h=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],h=o[3]):s=l=u=h=0;var f;s+l>i&&(f=s+l,s*=i/f,l*=i/f),u+h>i&&(f=u+h,u*=i/f,h*=i/f),l+u>n&&(f=l+u,l*=n/f,u*=n/f),s+h>n&&(f=s+h,s*=n/f,h*=n/f),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+h,a+n),h!==0&&r.arc(t+h,a+n-h,h,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 pn=Math.round;function zm(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&&(pn(a*2)===pn(i*2)&&(r.x1=r.x2=yi(a,s,!0)),pn(n*2)===pn(o*2)&&(r.y1=r.y2=yi(n,s,!0))),r}}function Fm(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=yi(a,s,!0),r.y=yi(i,s,!0),r.width=Math.max(yi(a+n,s,!1)-r.x,n===0?0:1),r.height=Math.max(yi(i+o,s,!1)-r.y,o===0?0:1)),r}}function yi(r,e,t){if(!e)return r;var a=pn(r*2);return(a+pn(e))%2==0?a/2:(a+(t?1:-1))/2}var S2=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),x2={},pt=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new S2},e.prototype.buildPath=function(t,a){var i,n,o,s;if(this.subPixelOptimize){var l=Fm(x2,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?_2(t,a):t.rect(i,n,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(ct);pt.prototype.type="rect";var Gm={fill:"#000"},Hm=2,b2={style:X({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},Nl.style)},gt=function(r){E(e,r);function e(t){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=Gm,a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){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}var i=this.attachedTransform;if(i){i.updateTransform();var n=i.transform;n?(this.transform=this.transform||[],co(this.transform,n)):this.transform=null}else r.prototype.update.call(this)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),this.attachedTransform?this.attachedTransform.getComputedTransform():r.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,A2(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 ot(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||Gm},e.prototype.setTextContent=function(t){throw new Error("Can't attach text on another text")},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 b2},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||ri,i=t.padding,n=Ym(t),o=UL(n,t),s=Lv(t),l=!!t.backgroundColor,u=o.outerHeight,h=o.lines,f=o.lineHeight,v=this._defaultStyle,c=t.x||0,p=t.y||0,d=t.align||v.align||"left",g=t.verticalAlign||v.verticalAlign||"top",y=c,m=hn(p,o.contentHeight,g);if(s||i){var _=o.width;i&&(_+=i[1]+i[3]);var S=To(c,_,d),x=hn(p,u,g);s&&this._renderBackground(t,t,S,x,_,u)}m+=f/2,i&&(y=Um(c,d,i),g==="top"?m+=i[0]:g==="bottom"&&(m-=i[2]));for(var b=0,w=!1,T=C2("fill"in t?t.fill:(w=!0,v.fill)),C=Mv("stroke"in t?t.stroke:!l&&(!v.autoStroke||w)?(b=Hm,v.stroke):null),M=t.textShadowBlur>0,D=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),L=o.calculatedLineHeight,I=0;I<h.length;I++){var P=this._getOrCreateChild(gi),R=P.createStyle();P.useStyle(R),R.text=h[I],R.x=y,R.y=m,d&&(R.textAlign=d),R.textBaseline="middle",R.opacity=t.opacity,R.strokeFirst=!0,M&&(R.shadowBlur=t.textShadowBlur||0,R.shadowColor=t.textShadowColor||"transparent",R.shadowOffsetX=t.textShadowOffsetX||0,R.shadowOffsetY=t.textShadowOffsetY||0),C&&(R.stroke=C,R.lineWidth=t.lineWidth||b,R.lineDash=t.lineDash,R.lineDashOffset=t.lineDashOffset||0),T&&(R.fill=T),R.font=a,m+=f,D&&P.setBoundingRect(new ot(To(R.x,t.width,R.textAlign),hn(R.y,L,R.textBaseline),t.width,L))}},e.prototype._updateRichTexts=function(){var t=this.style,a=Ym(t),i=$L(a,t),n=i.width,o=i.outerWidth,s=i.outerHeight,l=t.padding,u=t.x||0,h=t.y||0,f=this._defaultStyle,v=t.align||f.align,c=t.verticalAlign||f.verticalAlign,p=To(u,o,v),d=hn(h,s,c),g=p,y=d;l&&(g+=l[3],y+=l[0]);var m=g+n;Lv(t)&&this._renderBackground(t,t,p,d,o,s);for(var _=!!t.backgroundColor,S=0;S<i.lines.length;S++){for(var x=i.lines[S],b=x.tokens,w=b.length,T=x.lineHeight,C=x.width,M=0,D=g,L=m,I=w-1,P=void 0;M<w&&(P=b[M],!P.align||P.align==="left");)this._placeToken(P,t,T,y,D,"left",_),C-=P.width,D+=P.width,M++;for(;I>=0&&(P=b[I],P.align==="right");)this._placeToken(P,t,T,y,L,"right",_),C-=P.width,L-=P.width,I--;for(D+=(n-(D-g)-(m-L)-C)/2;M<=I;)P=b[M],this._placeToken(P,t,T,y,D+P.width/2,"center",_),D+=P.width,M++;y+=T}},e.prototype._placeToken=function(t,a,i,n,o,s,l){var u=a.rich[t.styleName]||{};u.text=t.text;var h=t.verticalAlign,f=n+i/2;h==="top"?f=n+t.height/2:h==="bottom"&&(f=n+i-t.height/2);var v=!t.isLineHolder&&Lv(u);v&&this._renderBackground(u,a,s==="right"?o-t.width:s==="center"?o-t.width/2:o,f-t.height/2,t.width,t.height);var c=!!u.backgroundColor,p=t.textPadding;p&&(o=Um(o,s,p),f-=t.height/2-p[0]-t.innerHeight/2);var d=this._getOrCreateChild(gi),g=d.createStyle();d.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=Mv("fill"in u?u.fill:"fill"in a?a.fill:(m=!0,y.fill)),x=Mv("stroke"in u?u.stroke:"stroke"in a?a.stroke:!c&&!l&&(!y.autoStroke||m)?(_=Hm,y.stroke):null),b=u.textShadowBlur>0||a.textShadowBlur>0;g.text=t.text,g.x=o,g.y=f,b&&(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||ri,g.opacity=Gr(u.opacity,a.opacity,1),x&&(g.lineWidth=Gr(u.lineWidth,a.lineWidth,_),g.lineDash=vt(u.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=x),S&&(g.fill=S);var w=t.contentWidth,T=t.contentHeight;d.setBoundingRect(new ot(To(g.x,w,g.textAlign),hn(g.y,T,g.textBaseline),w,T))},e.prototype._renderBackground=function(t,a,i,n,o,s){var l=t.backgroundColor,u=t.borderWidth,h=t.borderColor,f=ft(l),v=t.borderRadius,c=this,p,d;if(f||u&&h){p=this._getOrCreateChild(pt),p.useStyle(p.createStyle()),p.style.fill=null;var g=p.shape;g.x=i,g.y=n,g.width=o,g.height=s,g.r=v,p.dirtyShape()}if(f){var y=p.style;y.fill=l||null,y.fillOpacity=vt(t.fillOpacity,1)}else if(l&&l.image){d=this._getOrCreateChild(Zt),d.onload=function(){c.dirtyStyle()};var m=d.style;m.image=l.image,m.x=i,m.y=n,m.width=o,m.height=s}if(u&&h){var y=p.style;y.lineWidth=u,y.stroke=h,y.strokeOpacity=vt(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var _=(p||d).style;_.shadowBlur=t.shadowBlur||0,_.shadowColor=t.shadowColor||"transparent",_.shadowOffsetX=t.shadowOffsetX||0,_.shadowOffsetY=t.shadowOffsetY||0,_.opacity=Gr(t.opacity,a.opacity,1)},e.makeFont=function(t){var a="";if(t.fontSize||t.fontFamily||t.fontWeight){var i="";typeof t.fontSize=="string"&&(t.fontSize.indexOf("px")!==-1||t.fontSize.indexOf("rem")!==-1||t.fontSize.indexOf("em")!==-1)?i=t.fontSize:isNaN(+t.fontSize)?i="12px":i=t.fontSize+"px",a=[t.fontStyle,t.fontWeight,i,t.fontFamily||"sans-serif"].join(" ")}return a&&Ha(a)||t.textFont||t.font},e}(Sr),w2={left:!0,right:1,center:1},T2={top:1,bottom:1,middle:1};function A2(r){return Wm(r),A(r.rich,Wm),r}function Wm(r){if(r){r.font=gt.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||w2[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||T2[t]?t:"top";var a=r.padding;a&&(r.padding=yf(r.padding))}}function Mv(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function C2(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function Um(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function Ym(r){var e=r.text;return e!=null&&(e+=""),e}function Lv(r){return!!(r.backgroundColor||r.borderWidth&&r.borderColor)}var Q=At(),Xm=1,$m={},Zm=At(),Iv=0,No=1,Ul=2,Ee=["emphasis","blur","select"],Bo=["normal","emphasis","blur","select"],dn=10,D2=9,mi="highlight",Yl="downplay",Vo="select",Xl="unselect",zo="toggleSelect";function gn(r){return r!=null&&r!=="none"}var qm=new po(100);function Km(r){if(typeof r!="string")return r;var e=qm.get(r);return e||(e=Ly(r,-.1),qm.put(r,e)),e}function $l(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function Qm(r){$l(r,"emphasis",Ul)}function Jm(r){r.hoverState===Ul&&$l(r,"normal",Iv)}function Pv(r){$l(r,"blur",No)}function jm(r){r.hoverState===No&&$l(r,"normal",Iv)}function M2(r){r.selected=!0}function L2(r){r.selected=!1}function t0(r,e,t){e(r,t)}function qr(r,e,t){t0(r,e,t),r.isGroup&&r.traverse(function(a){t0(a,e,t)})}function Zl(r,e){switch(e){case"emphasis":r.hoverState=Ul;break;case"normal":r.hoverState=Iv;break;case"blur":r.hoverState=No;break;case"select":r.selected=!0}}function I2(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.saveFinalToTarget(n,e)}return n}function P2(r,e,t,a){var i=t&&lt(t,"select")>=0,n=!1;if(r instanceof ct){var o=Zm(r),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(gn(s)||gn(l)){a=a||{};var u=a.style||{};!gn(u.fill)&&gn(s)?(n=!0,a=V({},a),u=V({},u),u.fill=Km(s)):!gn(u.stroke)&&gn(l)&&(n||(a=V({},a),u=V({},u)),u.stroke=Km(l)),a.style=u}}if(a&&a.z2==null){n||(a=V({},a));var h=r.z2EmphasisLift;a.z2=r.z2+(h!=null?h:dn)}return a}function R2(r,e,t){if(t&&t.z2==null){t=V({},t);var a=r.z2SelectLift;t.z2=r.z2+(a!=null?a:D2)}return t}function E2(r,e,t){var a=lt(r.currentStates,e)>=0,i=r.style.opacity,n=a?null:I2(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 Rv(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return P2(this,r,e,t);if(r==="blur")return E2(this,r,t);if(r==="select")return R2(this,r,t)}return t}function _i(r){r.stateProxy=Rv;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=Rv),t&&(t.stateProxy=Rv)}function e0(r,e){!s0(r,e)&&!r.__highByOuter&&qr(r,Qm)}function r0(r,e){!s0(r,e)&&!r.__highByOuter&&qr(r,Jm)}function Cr(r,e){r.__highByOuter|=1<<(e||0),qr(r,Qm)}function Dr(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&qr(r,Jm)}function a0(r){qr(r,Pv)}function i0(r){qr(r,jm)}function n0(r){qr(r,M2)}function o0(r){qr(r,L2)}function s0(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function l0(r){var e=r.getModel();e.eachComponent(function(t,a){var i=t==="series"?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);i.group.traverse(function(n){jm(n)})})}function Ev(r,e,t,a){var i=a.getModel();t=t||"coordinateSystem";function n(u,h){for(var f=0;f<h.length;f++){var v=u.getItemGraphicEl(h[f]);v&&i0(v)}}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 h=o===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var v=f&&s?f===s:h;if(!(t==="series"&&!h||t==="coordinateSystem"&&!v||e==="series"&&h)){var c=a.getViewOfSeriesModel(u);if(c.group.traverse(function(g){Pv(g)}),Te(e))n(u.getData(),e);else if(J(e))for(var p=St(e),d=0;d<p.length;d++)n(u.getData(p[d]),e[p[d]]);l.push(u)}}),i.eachComponent(function(u,h){if(u!=="series"){var f=a.getViewOfComponentModel(h);f&&f.blurSeries&&f.blurSeries(l,i)}})}}function kv(r,e,t){if(!(r==null||e==null)){var a=t.getModel().getComponent(r,e);if(!!a){var i=t.getViewOfComponentModel(a);!i||!i.focusBlurEnabled||i.group.traverse(function(n){Pv(n)})}}}function k2(r,e,t){var a=r.seriesIndex,i=r.getData(e.dataType),n=ni(i,e);n=(B(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=Q(o);Ev(a,u.focus,u.blurScope,t)}else{var h=r.get(["emphasis","focus"]),f=r.get(["emphasis","blurScope"]);h!=null&&Ev(a,h,f,t)}}function Ov(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(Q(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function O2(r,e,t){var a=Q(r),i=Ov(a.componentMainType,a.componentIndex,a.componentHighDownName,t),n=i.dispatchers,o=i.focusSelf;n?(o&&kv(a.componentMainType,a.componentIndex,t),A(n,function(s){return e0(s,e)})):(Ev(a.seriesIndex,a.focus,a.blurScope,t),a.focus==="self"&&kv(a.componentMainType,a.componentIndex,t),e0(r,e))}function N2(r,e,t){l0(t);var a=Q(r),i=Ov(a.componentMainType,a.componentIndex,a.componentHighDownName,t).dispatchers;i?A(i,function(n){return r0(n,e)}):r0(r,e)}function B2(r,e,t){if(!!Bv(e)){var a=e.dataType,i=r.getData(a),n=ni(i,e);B(n)||(n=[n]),r[e.type===zo?"toggleSelect":e.type===Vo?"select":"unselect"](n,a)}}function u0(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)?n0(n):o0(n)})})}function V2(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 Lt(r,e,t){yn(r,!0),qr(r,_i),Nv(r,e,t)}function Nv(r,e,t){var a=Q(r);e!=null?(a.focus=e,a.blurScope=t):a.focus&&(a.focus=null)}var h0=["emphasis","blur","select"],z2={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function oe(r,e,t,a){t=t||"itemStyle";for(var i=0;i<h0.length;i++){var n=h0[i],o=e.getModel([n,t]),s=r.ensureState(n);s.style=a?a(o):o[z2[t]]()}}function yn(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 ql(r){return!!(r&&r.__highDownDispatcher)}function F2(r,e,t){var a=Q(r);a.componentMainType=e.mainType,a.componentIndex=e.componentIndex,a.componentHighDownName=t}function G2(r){var e=$m[r];return e==null&&Xm<=32&&(e=$m[r]=Xm++),e}function Bv(r){var e=r.type;return e===Vo||e===Xl||e===zo}function Vv(r){var e=r.type;return e===mi||e===Yl}function H2(r){var e=Zm(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 mn=Ar.CMD,W2=[[],[],[]],f0=Math.sqrt,U2=Math.atan2;function Y2(r,e){var t=r.data,a=r.len(),i,n,o,s,l,u,h=mn.M,f=mn.C,v=mn.L,c=mn.R,p=mn.A,d=mn.Q;for(o=0,s=0;o<a;){switch(i=t[o++],s=o,n=0,i){case h:n=1;break;case v:n=1;break;case f:n=3;break;case d:n=2;break;case p:var g=e[4],y=e[5],m=f0(e[0]*e[0]+e[1]*e[1]),_=f0(e[2]*e[2]+e[3]*e[3]),S=U2(-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 c:u[0]=t[o++],u[1]=t[o++],re(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[o++],u[1]+=t[o++],re(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<n;l++){var x=W2[l];x[0]=t[o++],x[1]=t[o++],re(x,x,e),t[s++]=x[0],t[s++]=x[1]}}r.increaseVersion()}var zv=Math.sqrt,Kl=Math.sin,Ql=Math.cos,Fo=Math.PI;function v0(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Fv(r,e){return(r[0]*e[0]+r[1]*e[1])/(v0(r)*v0(e))}function c0(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(Fv(r,e))}function p0(r,e,t,a,i,n,o,s,l,u,h){var f=l*(Fo/180),v=Ql(f)*(r-t)/2+Kl(f)*(e-a)/2,c=-1*Kl(f)*(r-t)/2+Ql(f)*(e-a)/2,p=v*v/(o*o)+c*c/(s*s);p>1&&(o*=zv(p),s*=zv(p));var d=(i===n?-1:1)*zv((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,g=d*o*c/s,y=d*-s*v/o,m=(r+t)/2+Ql(f)*g-Kl(f)*y,_=(e+a)/2+Kl(f)*g+Ql(f)*y,S=c0([1,0],[(v-g)/o,(c-y)/s]),x=[(v-g)/o,(c-y)/s],b=[(-1*v-g)/o,(-1*c-y)/s],w=c0(x,b);if(Fv(x,b)<=-1&&(w=Fo),Fv(x,b)>=1&&(w=0),w<0){var T=Math.round(w/Fo*1e6)/1e6;w=Fo*2+T%2*Fo}h.addData(u,m,_,o,s,S,w,f,n)}var X2=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,$2=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Z2(r){var e=new Ar;if(!r)return e;var t=0,a=0,i=t,n=a,o,s=Ar.CMD,l=r.match(X2);if(!l)return e;for(var u=0;u<l.length;u++){for(var h=l[u],f=h.charAt(0),v=void 0,c=h.match($2)||[],p=c.length,d=0;d<p;d++)c[d]=parseFloat(c[d]);for(var g=0;g<p;){var y=void 0,m=void 0,_=void 0,S=void 0,x=void 0,b=void 0,w=void 0,T=t,C=a,M=void 0,D=void 0;switch(f){case"l":t+=c[g++],a+=c[g++],v=s.L,e.addData(v,t,a);break;case"L":t=c[g++],a=c[g++],v=s.L,e.addData(v,t,a);break;case"m":t+=c[g++],a+=c[g++],v=s.M,e.addData(v,t,a),i=t,n=a,f="l";break;case"M":t=c[g++],a=c[g++],v=s.M,e.addData(v,t,a),i=t,n=a,f="L";break;case"h":t+=c[g++],v=s.L,e.addData(v,t,a);break;case"H":t=c[g++],v=s.L,e.addData(v,t,a);break;case"v":a+=c[g++],v=s.L,e.addData(v,t,a);break;case"V":a=c[g++],v=s.L,e.addData(v,t,a);break;case"C":v=s.C,e.addData(v,c[g++],c[g++],c[g++],c[g++],c[g++],c[g++]),t=c[g-2],a=c[g-1];break;case"c":v=s.C,e.addData(v,c[g++]+t,c[g++]+a,c[g++]+t,c[g++]+a,c[g++]+t,c[g++]+a),t+=c[g-2],a+=c[g-1];break;case"S":y=t,m=a,M=e.len(),D=e.data,o===s.C&&(y+=t-D[M-4],m+=a-D[M-3]),v=s.C,T=c[g++],C=c[g++],t=c[g++],a=c[g++],e.addData(v,y,m,T,C,t,a);break;case"s":y=t,m=a,M=e.len(),D=e.data,o===s.C&&(y+=t-D[M-4],m+=a-D[M-3]),v=s.C,T=t+c[g++],C=a+c[g++],t+=c[g++],a+=c[g++],e.addData(v,y,m,T,C,t,a);break;case"Q":T=c[g++],C=c[g++],t=c[g++],a=c[g++],v=s.Q,e.addData(v,T,C,t,a);break;case"q":T=c[g++]+t,C=c[g++]+a,t+=c[g++],a+=c[g++],v=s.Q,e.addData(v,T,C,t,a);break;case"T":y=t,m=a,M=e.len(),D=e.data,o===s.Q&&(y+=t-D[M-4],m+=a-D[M-3]),t=c[g++],a=c[g++],v=s.Q,e.addData(v,y,m,t,a);break;case"t":y=t,m=a,M=e.len(),D=e.data,o===s.Q&&(y+=t-D[M-4],m+=a-D[M-3]),t+=c[g++],a+=c[g++],v=s.Q,e.addData(v,y,m,t,a);break;case"A":_=c[g++],S=c[g++],x=c[g++],b=c[g++],w=c[g++],T=t,C=a,t=c[g++],a=c[g++],v=s.A,p0(T,C,t,a,b,w,_,S,x,v,e);break;case"a":_=c[g++],S=c[g++],x=c[g++],b=c[g++],w=c[g++],T=t,C=a,t+=c[g++],a+=c[g++],v=s.A,p0(T,C,t,a,b,w,_,S,x,v,e);break}}(f==="z"||f==="Z")&&(v=s.Z,e.addData(v),t=i,a=n),o=v}return e.toStatic(),e}var d0=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e}(ct);function g0(r){return r.setData!=null}function y0(r,e){var t=Z2(r),a=V({},e);return a.buildPath=function(i){if(g0(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){Y2(t,i),this.dirtyShape()},a}function m0(r,e){return new d0(y0(r,e))}function q2(r,e){var t=y0(r,e),a=function(i){E(n,i);function n(o){var s=i.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return n}(d0);return a}function K2(r,e){for(var t=[],a=r.length,i=0;i<a;i++){var n=r[i];n.path||n.createPathProxy(),n.shapeChanged()&&n.buildPath(n.path,n.shape,!0),t.push(n.path)}var o=new ct(e);return o.createPathProxy(),o.buildPath=function(s){if(g0(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var Q2=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),lr=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Q2},e.prototype.buildPath=function(t,a,i){i&&t.moveTo(a.cx+a.r,a.cy),t.arc(a.cx,a.cy,a.r,0,Math.PI*2)},e}(ct);lr.prototype.type="circle";var J2=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),Jl=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new J2},e.prototype.buildPath=function(t,a){var i=.5522848,n=a.cx,o=a.cy,s=a.rx,l=a.ry,u=s*i,h=l*i;t.moveTo(n-s,o),t.bezierCurveTo(n-s,o-h,n-u,o-l,n,o-l),t.bezierCurveTo(n+u,o-l,n+s,o-h,n+s,o),t.bezierCurveTo(n+s,o+h,n+u,o+l,n,o+l),t.bezierCurveTo(n-u,o+l,n-s,o+h,n-s,o),t.closePath()},e}(ct);Jl.prototype.type="ellipse";var _0=Math.PI,j2=_0*2,Si=Math.sin,_n=Math.cos,tI=Math.acos,he=Math.atan2,S0=Math.abs,Go=Math.sqrt,Gv=Math.max,jl=Math.min,ur=1e-4;function eI(r,e,t,a,i,n,o,s){var l=t-r,u=a-e,h=o-i,f=s-n,v=f*l-h*u;if(!(v*v<ur))return v=(h*(e-n)-f*(r-i))/v,[r+v*l,e+v*u]}function tu(r,e,t,a,i,n,o){var s=r-t,l=e-a,u=(o?n:-n)/Go(s*s+l*l),h=u*l,f=-u*s,v=r+h,c=e+f,p=t+h,d=a+f,g=(v+p)/2,y=(c+d)/2,m=p-v,_=d-c,S=m*m+_*_,x=i-n,b=v*d-p*c,w=(_<0?-1:1)*Go(Gv(0,x*x*S-b*b)),T=(b*_-m*w)/S,C=(-b*m-_*w)/S,M=(b*_+m*w)/S,D=(-b*m+_*w)/S,L=T-g,I=C-y,P=M-g,R=D-y;return L*L+I*I>P*P+R*R&&(T=M,C=D),{cx:T,cy:C,x01:-h,y01:-f,x11:T*(i/x-1),y11:C*(i/x-1)}}function rI(r,e){var t=Gv(e.r,0),a=Gv(e.r0||0,0),i=t>0,n=a>0;if(!(!i&&!n)){if(i||(t=a,a=0),a>t){var o=t;t=a,a=o}var s=!!e.clockwise,l=e.startAngle,u=e.endAngle,h;if(l===u)h=0;else{var f=[l,u];km(f,!s),h=S0(f[0]-f[1])}var v=e.cx,c=e.cy,p=e.cornerRadius||0,d=e.innerCornerRadius||0;if(!(t>ur))r.moveTo(v,c);else if(h>j2-ur)r.moveTo(v+t*_n(l),c+t*Si(l)),r.arc(v,c,t,l,u,!s),a>ur&&(r.moveTo(v+a*_n(u),c+a*Si(u)),r.arc(v,c,a,u,l,s));else{var g=S0(t-a)/2,y=jl(g,p),m=jl(g,d),_=m,S=y,x=t*_n(l),b=t*Si(l),w=a*_n(u),T=a*Si(u),C=void 0,M=void 0,D=void 0,L=void 0;if((y>ur||m>ur)&&(C=t*_n(u),M=t*Si(u),D=a*_n(l),L=a*Si(l),h<_0)){var I=eI(x,b,D,L,C,M,w,T);if(I){var P=x-I[0],R=b-I[1],k=C-I[0],N=M-I[1],O=1/Si(tI((P*k+R*N)/(Go(P*P+R*R)*Go(k*k+N*N)))/2),G=Go(I[0]*I[0]+I[1]*I[1]);_=jl(m,(a-G)/(O-1)),S=jl(y,(t-G)/(O+1))}}if(!(h>ur))r.moveTo(v+x,c+b);else if(S>ur){var z=tu(D,L,x,b,t,S,s),W=tu(C,M,w,T,t,S,s);r.moveTo(v+z.cx+z.x01,c+z.cy+z.y01),S<y?r.arc(v+z.cx,c+z.cy,S,he(z.y01,z.x01),he(W.y01,W.x01),!s):(r.arc(v+z.cx,c+z.cy,S,he(z.y01,z.x01),he(z.y11,z.x11),!s),r.arc(v,c,t,he(z.cy+z.y11,z.cx+z.x11),he(W.cy+W.y11,W.cx+W.x11),!s),r.arc(v+W.cx,c+W.cy,S,he(W.y11,W.x11),he(W.y01,W.x01),!s))}else r.moveTo(v+x,c+b),r.arc(v,c,t,l,u,!s);if(!(a>ur)||!(h>ur))r.lineTo(v+w,c+T);else if(_>ur){var z=tu(w,T,C,M,a,-_,s),W=tu(x,b,D,L,a,-_,s);r.lineTo(v+z.cx+z.x01,c+z.cy+z.y01),_<m?r.arc(v+z.cx,c+z.cy,_,he(z.y01,z.x01),he(W.y01,W.x01),!s):(r.arc(v+z.cx,c+z.cy,_,he(z.y01,z.x01),he(z.y11,z.x11),!s),r.arc(v,c,a,he(z.cy+z.y11,z.cx+z.x11),he(W.cy+W.y11,W.cx+W.x11),s),r.arc(v+W.cx,c+W.cy,_,he(W.y11,W.x11),he(W.y01,W.x01),!s))}else r.lineTo(v+w,c+T),r.arc(v,c,a,u,l,s)}r.closePath()}}var aI=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,this.innerCornerRadius=0}return r}(),De=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new aI},e.prototype.buildPath=function(t,a){rI(t,a)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(ct);De.prototype.type="sector";var iI=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),Ho=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new iI},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}(ct);Ho.prototype.type="ring";function x0(r,e,t,a,i,n,o){var s=(t-r)*.5,l=(a-e)*.5;return(2*(e-t)+s+l)*o+(-3*(e-t)-2*s-l)*n+s*i+e}function nI(r,e){for(var t=r.length,a=[],i=0,n=1;n<t;n++)i+=ml(r[n-1],r[n]);var o=i/2;o=o<t?t:o;for(var n=0;n<o;n++){var s=n/(o-1)*(e?t:t-1),l=Math.floor(s),u=s-l,h=void 0,f=r[l%t],v=void 0,c=void 0;e?(h=r[(l-1+t)%t],v=r[(l+1)%t],c=r[(l+2)%t]):(h=r[l===0?l:l-1],v=r[l>t-2?t-1:l+1],c=r[l>t-3?t-1:l+2]);var p=u*u,d=u*p;a.push([x0(h[0],f[0],v[0],c[0],u,p,d),x0(h[1],f[1],v[1],c[1],u,p,d)])}return a}function oI(r,e,t,a){var i=[],n=[],o=[],s=[],l,u,h,f;if(a){h=[Infinity,Infinity],f=[-Infinity,-Infinity];for(var v=0,c=r.length;v<c;v++)Xa(h,h,r[v]),$a(f,f,r[v]);Xa(h,h,a[0]),$a(f,f,a[1])}for(var v=0,c=r.length;v<c;v++){var p=r[v];if(t)l=r[v?v-1:c-1],u=r[(v+1)%c];else if(v===0||v===c-1){i.push(Hr(r[v]));continue}else l=r[v-1],u=r[v+1];Ua(n,u,l),Sf(n,n,e);var d=ml(p,l),g=ml(p,u),y=d+g;y!==0&&(d/=y,g/=y),Sf(o,n,-d),Sf(s,n,g);var m=dy([],p,o),_=dy([],p,s);a&&($a(m,m,h),Xa(m,m,f),$a(_,_,h),Xa(_,_,f)),i.push(m),i.push(_)}return t&&i.push(i.shift()),i}function b0(r,e,t){var a=e.smooth,i=e.points;if(i&&i.length>=2){if(a&&a!=="spline"){var n=oI(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],h=i[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{a==="spline"&&(i=nI(i,t)),r.moveTo(i[0][0],i[0][1]);for(var s=1,f=i.length;s<f;s++)r.lineTo(i[s][0],i[s][1])}t&&r.closePath()}}var sI=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),me=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new sI},e.prototype.buildPath=function(t,a){b0(t,a,!0)},e}(ct);me.prototype.type="polygon";var lI=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),Me=function(r){E(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 lI},e.prototype.buildPath=function(t,a){b0(t,a,!1)},e}(ct);Me.prototype.type="polyline";var uI={},hI=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),Qt=function(r){E(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 hI},e.prototype.buildPath=function(t,a){var i,n,o,s;if(this.subPixelOptimize){var l=zm(uI,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}(ct);Qt.prototype.type="line";var Le=[],fI=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 w0(r,e,t){var a=r.cpx2,i=r.cpy2;return a===null||i===null?[(t?Cm:Ot)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?Cm:Ot)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?Sv:ie)(r.x1,r.cpx1,r.x2,e),(t?Sv:ie)(r.y1,r.cpy1,r.y2,e)]}var Wo=function(r){E(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 fI},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,h=a.cpx2,f=a.cpy2,v=a.percent;v!==0&&(t.moveTo(i,n),h==null||f==null?(v<1&&(Po(i,l,o,v,Le),l=Le[1],o=Le[2],Po(n,u,s,v,Le),u=Le[1],s=Le[2]),t.quadraticCurveTo(l,u,o,s)):(v<1&&(cn(i,l,h,o,v,Le),l=Le[1],h=Le[2],o=Le[3],cn(n,u,f,s,v,Le),u=Le[1],f=Le[2],s=Le[3]),t.bezierCurveTo(l,u,h,f,o,s)))},e.prototype.pointAt=function(t){return w0(this.shape,t,!1)},e.prototype.tangentAt=function(t){var a=w0(this.shape,t,!0);return fo(a,a)},e}(ct);Wo.prototype.type="bezier-curve";var vI=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}(),eu=function(r){E(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 vI},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,h=Math.cos(s),f=Math.sin(s);t.moveTo(h*o+i,f*o+n),t.arc(i,n,o,s,l,!u)},e}(ct);eu.prototype.type="arc";var T0=function(r){E(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),ct.prototype.getBoundingRect.call(this)},e}(ct),A0=function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r}(),Uo=function(r){E(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}(A0),C0=function(r){E(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}(A0),xi=[0,0],bi=[0,0],ru=new nt,au=new nt,iu=function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var a=0;a<4;a++)this._corners[a]=new nt;for(var a=0;a<2;a++)this._axes[a]=new nt;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);nt.sub(i[0],a[1],a[0]),nt.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 ru.set(Infinity,Infinity),au.set(0,0),!this._intersectCheckOneSide(this,e,ru,au,i,1)&&(a=!1,i)||!this._intersectCheckOneSide(e,this,ru,au,i,-1)&&(a=!1,i)||i||nt.copy(t,a?ru:au),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,xi),this._getProjMinMaxOnAxis(l,t._corners,bi),xi[1]<bi[0]||xi[0]>bi[1]){if(s=!1,n)return s;var h=Math.abs(bi[0]-xi[1]),f=Math.abs(xi[0]-bi[1]);Math.min(h,f)>i.len()&&(h<f?nt.scale(i,u,-h*o):nt.scale(i,u,f*o))}else if(a){var h=Math.abs(bi[0]-xi[1]),f=Math.abs(xi[0]-bi[1]);Math.min(h,f)<a.len()&&(h<f?nt.scale(a,u,h*o):nt.scale(a,u,-f*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 h=t[u].dot(i)+n[e];s=Math.min(h,s),l=Math.max(h,l)}a[0]=s,a[1]=l},r}(),cI=[],nu=function(r){E(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 ot(Infinity,Infinity,-Infinity,-Infinity),a=0;a<this._displayables.length;a++){var i=this._displayables[a],n=i.getBoundingRect().clone();i.needLocalTransform()&&n.applyTransform(i.getLocalTransform(cI)),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}(Sr),ou=Math.max,su=Math.min,Hv={};function pI(r){return ct.extend(r)}var dI=q2;function gI(r,e){return dI(r,e)}function hr(r,e){Hv[r]=e}function Wv(r){if(Hv.hasOwnProperty(r))return Hv[r]}function lu(r,e,t,a){var i=m0(r,e);return t&&(a==="center"&&(t=M0(t,i.getBoundingRect())),L0(i,t)),i}function D0(r,e,t){var a=new Zt({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(M0(e,n))}}});return a}function M0(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 $e=K2;function L0(r,e){if(!!r.applyTransform){var t=r.getBoundingRect(),a=t.calculateTransform(e);r.applyTransform(a)}}function yI(r){return zm(r.shape,r.shape,r.style),r}function mI(r){return Fm(r.shape,r.shape,r.style),r}var uu=yi;function Uv(r,e,t,a,i,n,o){var s=!1,l;typeof i=="function"?(o=n,n=i,i=null):J(i)&&(n=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=r==="update",h=r==="remove",f;if(a&&a.ecModel){var v=a.ecModel.getUpdatePayload();f=v&&v.animation}var c=a&&a.isAnimationEnabled();if(h||e.stopAnimation("remove"),c){var p=void 0,d=void 0,g=void 0;f?(p=f.duration||0,d=f.easing||"cubicOut",g=f.delay||0):h?(l=l||{},p=vt(l.duration,200),d=vt(l.easing,"cubicOut"),g=0):(p=a.getShallow(u?"animationDurationUpdate":"animationDuration"),d=a.getShallow(u?"animationEasingUpdate":"animationEasing"),g=a.getShallow(u?"animationDelayUpdate":"animationDelay")),typeof g=="function"&&(g=g(i,a.getAnimationDelayParams?a.getAnimationDelayParams(e,i):null)),typeof p=="function"&&(p=p(i)),p>0?s?e.animateFrom(t,{duration:p,delay:g||0,easing:d,done:n,force:!!n||!!o,scope:r,during:o}):e.animateTo(t,{duration:p,delay:g||0,easing:d,done:n,force:!!n||!!o,setToFinal:!0,scope:r,during:o}):(e.stopAnimation(),!s&&e.attr(t),n&&n())}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),n&&n()}function dt(r,e,t,a,i,n){Uv("update",r,e,t,a,i,n)}function Nt(r,e,t,a,i,n){Uv("init",r,e,t,a,i,n)}function ga(r,e,t,a,i,n){Sn(r)||Uv("remove",r,e,t,a,i,n)}function I0(r,e,t,a){r.removeTextContent(),r.removeTextGuideLine(),ga(r,{style:{opacity:0}},e,t,a)}function Yo(r,e,t){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(i){i.isGroup||I0(i,e,t,a)}):I0(r,e,t,a)}function Sn(r){if(!r.__zr)return!0;for(var e=0;e<r.animators.length;e++){var t=r.animators[e];if(t.scope==="remove")return!0}return!1}function wi(r,e){for(var t=nn([]);r&&r!==e;)Za(t,r.getLocalTransform(),t),r=r.parent;return t}function fr(r,e,t){return e&&!Te(e)&&(e=Ur.getLocalTransform(e)),t&&(e=on([],e)),re([],r,e)}function hu(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=fr(n,e,t),Math.abs(n[0])>Math.abs(n[1])?n[0]>0?"right":"left":n[1]>0?"bottom":"top"}function P0(r){return!r.isGroup}function _I(r){return r.shape!=null}function Xo(r,e,t){if(!r||!e)return;function a(o){var s={};return o.traverse(function(l){P0(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return _I(o)&&(s.shape=V({},o.shape)),s}var n=a(r);e.traverse(function(o){if(P0(o)&&o.anid){var s=n[o.anid];if(s){var l=i(o);o.attr(i(s)),dt(o,l,t,Q(o).dataIndex)}}})}function R0(r,e){return H(r,function(t){var a=t[0];a=ou(a,e.x),a=su(a,e.x+e.width);var i=t[1];return i=ou(i,e.y),i=su(i,e.y+e.height),[a,i]})}function SI(r,e){var t=ou(r.x,e.x),a=su(r.x+r.width,e.x+e.width),i=ou(r.y,e.y),n=su(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 $o(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),X(i,t),new Zt(a)):lu(r.replace("path://",""),a,t,"center")}function Zo(r,e,t,a,i){for(var n=0,o=i[i.length-1];n<i.length;n++){var s=i[n];if(E0(r,e,t,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function E0(r,e,t,a,i,n,o,s){var l=t-r,u=a-e,h=o-i,f=s-n,v=Yv(h,f,l,u);if(xI(v))return!1;var c=r-i,p=e-n,d=Yv(c,p,l,u)/v;if(d<0||d>1)return!1;var g=Yv(c,p,h,f)/v;return!(g<0||g>1)}function Yv(r,e,t,a){return r*a-t*e}function xI(r){return r<=1e-6&&r>=-1e-6}function xn(r){var e=r.itemTooltipOption,t=r.componentModel,a=r.itemName,i=ft(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(h){Y(s,h)||(s[h]=l[h],s.$vars.push(h))});var u=Q(r.el);u.componentMainType=n,u.componentIndex=o,u.tooltipConfig={name:a,option:X({content:a,formatterParams:s},i)}}hr("circle",lr),hr("ellipse",Jl),hr("sector",De),hr("ring",Ho),hr("polygon",me),hr("polyline",Me),hr("rect",pt),hr("line",Qt),hr("bezierCurve",Wo),hr("arc",eu);var qo=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",extendShape:pI,extendPath:gI,registerShape:hr,getShapeClass:Wv,makePath:lu,makeImage:D0,mergePath:$e,resizePath:L0,subPixelOptimizeLine:yI,subPixelOptimizeRect:mI,subPixelOptimize:uu,updateProps:dt,initProps:Nt,removeElement:ga,removeElementWithFadeOut:Yo,isElementRemoved:Sn,getTransform:wi,applyTransform:fr,transformDirection:hu,groupTransition:Xo,clipPointsByRect:R0,clipRectByRect:SI,createIcon:$o,linePolygonIntersect:Zo,lineLineIntersect:E0,setTooltipConfig:xn,Group:q,Image:Zt,Text:gt,Circle:lr,Ellipse:Jl,Sector:De,Ring:Ho,Polygon:me,Polyline:Me,Rect:pt,Line:Qt,BezierCurve:Wo,Arc:eu,IncrementalDisplayable:nu,CompoundPath:T0,LinearGradient:Uo,RadialGradient:C0,BoundingRect:ot,OrientedBoundingRect:iu,Point:nt,Path:ct}),fu={};function k0(r,e){for(var t=0;t<Ee.length;t++){var a=Ee[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 Xv(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=wt(r.defaultText)?r.defaultText(i,r,t):r.defaultText);for(var l={normal:s},u=0;u<Ee.length;u++){var h=Ee[u],f=e[h];l[h]=vt(a?a.getFormattedLabel(i,h,null,n,f&&f.get("formatter")):null,s)}return l}function fe(r,e,t,a){t=t||fu;for(var i=r instanceof gt,n=!1,o=0;o<Bo.length;o++){var s=e[Bo[o]];if(s&&s.getShallow("show")){n=!0;break}}var l=i?r:r.getTextContent();if(n){i||(l||(l=new gt,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=Xv(t,e),h=e.normal,f=!!h.getShallow("show"),v=Ft(h,a&&a.normal,t,!1,!i);v.text=u.normal,i||r.setTextConfig(vu(h,t,!1));for(var o=0;o<Ee.length;o++){var c=Ee[o],s=e[c];if(s){var p=l.ensureState(c),d=!!vt(s.getShallow("show"),f);if(d!==f&&(p.ignore=!d),p.style=Ft(s,a&&a[c],t,!0,!i),p.style.text=u[c],!i){var g=r.ensureState(c);g.textConfig=vu(s,t,!0)}}}l.silent=!!h.getShallow("silent"),l.style.x!=null&&(v.x=l.style.x),l.style.y!=null&&(v.y=l.style.y),l.ignore=!f,l.useStyle(v),l.dirty(),t.enableTextSetter&&(Ko(l).setLabelText=function(y){var m=Xv(t,e,y);k0(l,m)})}else l&&(l.ignore=!0);r.dirty()}function ne(r,e){e=e||"label";for(var t={normal:r.getModel(e)},a=0;a<Ee.length;a++){var i=Ee[a];t[i]=r.getModel([i,e])}return t}function Ft(r,e,t,a,i){var n={};return bI(n,r,t,a,i),e&&V(n,e),n}function vu(r,e,t){e=e||{};var a={},i,n=r.getShallow("rotate"),o=vt(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 bI(r,e,t,a,i){t=t||fu;var n=e.ecModel,o=n&&n.option.textStyle,s=wI(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var h=e.getModel(["rich",u]);V0(l[u]={},h,o,t,a,i,!1,!0)}}l&&(r.rich=l);var f=e.get("overflow");f&&(r.overflow=f);var v=e.get("minMargin");v!=null&&(r.margin=v),V0(r,e,o,t,a,i,!0,!1)}function wI(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||fu).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 O0=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],N0=["align","lineHeight","width","height","tag","verticalAlign"],B0=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function V0(r,e,t,a,i,n,o,s){t=!i&&t||fu;var l=a&&a.inheritColor,u=e.getShallow("color"),h=e.getShallow("textBorderColor"),f=vt(e.getShallow("opacity"),t.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(h==="inherit"||h==="auto")&&(l?h=l:h=null),n||(u=u||t.color,h=h||t.textBorderColor),u!=null&&(r.fill=u),h!=null&&(r.stroke=h);var v=vt(e.getShallow("textBorderWidth"),t.textBorderWidth);v!=null&&(r.lineWidth=v);var c=vt(e.getShallow("textBorderType"),t.textBorderType);c!=null&&(r.lineDash=c);var p=vt(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);p!=null&&(r.lineDashOffset=p),!i&&f==null&&!s&&(f=a&&a.defaultOpacity),f!=null&&(r.opacity=f),!i&&!n&&r.fill==null&&a.inheritColor&&(r.fill=a.inheritColor);for(var d=0;d<O0.length;d++){var g=O0[d],y=vt(e.getShallow(g),t[g]);y!=null&&(r[g]=y)}for(var d=0;d<N0.length;d++){var g=N0[d],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 d=0;d<B0.length;d++){var g=B0[d],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 z0(r,e){var t=e&&e.getModel("textStyle");return Ha([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=At();function F0(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 G0(r,e,t,a,i){var n=Ko(r);if(!n.valueAnimation)return;var o=n.defaultInterpolatedText,s=vt(n.interpolatedValue,n.prevValue),l=n.value;function u(h){var f=gm(t,n.precision,s,l,h);n.interpolatedValue=h===1?null:f;var v=Xv({labelDataIndex:e,labelFetcher:i,defaultText:o?o(f):f+""},n.statesModels,f);k0(r,v)}(s==null?Nt:dt)(r,{},a,e,null,u)}function TI(r,e,t){Q(r).dataIndex=e,Q(r).dataType=t}var AI=["textStyle","color"],$v=new gt,CI=function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(AI):null)},r.prototype.getFont=function(){return z0({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(e){return $v.useStyle({text:e,fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily"),verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline"),padding:this.getShallow("padding"),lineHeight:this.getShallow("lineHeight"),rich:this.getShallow("rich")}),$v.update(),$v.getBoundingRect()},r}(),Zv=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],DI=li(Zv),MI=function(){function r(){}return r.prototype.getLineStyle=function(e){return DI(this,e)},r}(),qv=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],LI=li(qv),II=function(){function r(){}return r.prototype.getItemStyle=function(e,t){return LI(this,e,t)},r}(),xt=function(){function r(e,t,a){this.parentModel=t,this.ecModel=a,this.option=e}return r.prototype.init=function(e,t,a){for(var i=[],n=3;n<arguments.length;n++)i[n-3]=arguments[n]},r.prototype.mergeOption=function(e,t){at(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($(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(!et.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}();hv(xt),kL(xt),Ht(xt,MI),Ht(xt,II),Ht(xt,zL),Ht(xt,CI);var PI=Math.round(Math.random()*10);function bn(r){return[r||"",PI++].join("_")}function RI(r){var e={};r.registerSubTypeDefaulter=function(t,a){var i=_r(t);e[i.main]=a},r.determineSubType=function(t,a){var i=a.type;if(!i){var n=_r(t).main;r.hasSubTypes(t)&&e[n]&&(i=e[n](a))}return i}}function EI(r,e){r.topologicalTravel=function(n,o,s,l){if(!n.length)return;var u=t(o),h=u.graph,f=u.noEntryList,v={};for(A(n,function(m){v[m]=!0});f.length;){var c=f.pop(),p=h[c],d=!!v[c];d&&(s.call(l,c,p.originalDeps.slice()),delete v[c]),A(p.successor,d?y:g)}A(v,function(){var m="";throw new Error(m)});function g(m){h[m].entryCount--,h[m].entryCount===0&&f.push(m)}function y(m){v[m]=!0,g(m)}};function t(n){var o={},s=[];return A(n,function(l){var u=a(o,l),h=u.originalDeps=e(l),f=i(h,n);u.entryCount=f.length,u.entryCount===0&&s.push(l),A(f,function(v){lt(u.predecessor,v)<0&&u.predecessor.push(v);var c=a(o,v);lt(c.successor,v)<0&&c.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){lt(o,l)>=0&&s.push(l)}),s}}function ya(r,e){return at(at({},r,!0),e,!0)}var kI={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:"Guage",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:". "}}}},OI={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:""}}}},cu="ZH",Kv="EN",Qo=Kv,pu={},Qv={},H0=et.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(cu)>-1?cu:Qo}():Qo;function W0(r,e){r=r.toUpperCase(),Qv[r]=new xt(e),pu[r]=e}function NI(r){if(ft(r)){var e=pu[r.toUpperCase()]||{};return r===cu||r===Kv?$(e):at($(e),$(pu[Qo]),!1)}else return at($(r),$(pu[Qo]),!1)}function BI(r){return Qv[r]}function VI(){return Qv[Qo]}W0(Kv,kI),W0(cu,OI);var Jv=1e3,jv=Jv*60,Jo=jv*60,Ze=Jo*24,U0=Ze*365,jo={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}"},du="{yyyy}-{MM}-{dd}",Y0={year:"{yyyy}",month:"{yyyy}-{MM}",day:du,hour:du+" "+jo.hour,minute:du+" "+jo.minute,second:du+" "+jo.second,millisecond:jo.none},tc=["year","month","day","hour","minute","second","millisecond"],X0=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ti(r,e){return r+="","0000".substr(0,e-r.length)+r}function wn(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 zI(r){return r===wn(r)}function FI(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function gu(r,e,t,a){var i=mr(r),n=i[ec(t)](),o=i[Tn(t)]()+1,s=Math.floor((o-1)/4)+1,l=i[yu(t)](),u=i["get"+(t?"UTC":"")+"Day"](),h=i[ts(t)](),f=(h-1)%12+1,v=i[mu(t)](),c=i[_u(t)](),p=i[Su(t)](),d=a instanceof xt?a:BI(a||H0)||VI(),g=d.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,Ti(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ti(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ti(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,Ti(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Ti(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,Ti(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,Ti(p,3)).replace(/{S}/g,p+"")}function GI(r,e,t,a,i){var n=null;if(typeof t=="string")n=t;else if(typeof t=="function")n=t(r.value,e,{level:r.level});else{var o=V({},jo);if(r.level>0)for(var s=0;s<tc.length;++s)o[tc[s]]="{primary|"+o[tc[s]]+"}";var l=t?t.inherit===!1?t:X(t,o):o,u=$0(r.value,i);if(l[u])n=l[u];else if(l.inherit){for(var h=X0.indexOf(u),s=h-1;s>=0;--s)if(l[u]){n=l[u];break}n=n||o.none}if(B(n)){var f=r.level==null?0:r.level>=0?r.level:n.length+r.level;f=Math.min(f,n.length-1),n=n[f]}}return gu(new Date(r.value),n,i,a)}function $0(r,e){var t=mr(r),a=t[Tn(e)]()+1,i=t[yu(e)](),n=t[ts(e)](),o=t[mu(e)](),s=t[_u(e)](),l=t[Su(e)](),u=l===0,h=u&&s===0,f=h&&o===0,v=f&&n===0,c=v&&i===1,p=c&&a===1;return p?"year":c?"month":v?"day":f?"hour":h?"minute":u?"second":"millisecond"}function Z0(r,e,t){var a=typeof r=="number"?mr(r):r;switch(e=e||$0(r,t),e){case"year":return a[ec(t)]();case"half-year":return a[Tn(t)]()>=6?1:0;case"quarter":return Math.floor((a[Tn(t)]()+1)/4);case"month":return a[Tn(t)]();case"day":return a[yu(t)]();case"half-day":return a[ts(t)]()/24;case"hour":return a[ts(t)]();case"minute":return a[mu(t)]();case"second":return a[_u(t)]();case"millisecond":return a[Su(t)]()}}function ec(r){return r?"getUTCFullYear":"getFullYear"}function Tn(r){return r?"getUTCMonth":"getMonth"}function yu(r){return r?"getUTCDate":"getDate"}function ts(r){return r?"getUTCHours":"getHours"}function mu(r){return r?"getUTCMinutes":"getMinutes"}function _u(r){return r?"getUTCSeconds":"getSeconds"}function Su(r){return r?"getUTCSeconds":"getSeconds"}function HI(r){return r?"setUTCFullYear":"setFullYear"}function q0(r){return r?"setUTCMonth":"setMonth"}function K0(r){return r?"setUTCDate":"setDate"}function Q0(r){return r?"setUTCHours":"setHours"}function J0(r){return r?"setUTCMinutes":"setMinutes"}function j0(r){return r?"setUTCSeconds":"setSeconds"}function t_(r){return r?"setUTCSeconds":"setSeconds"}function e_(r){if(!om(r))return ft(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function r_(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 An=yf,WI=/([&<>"'])/g,UI={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ke(r){return r==null?"":(r+"").replace(WI,function(e,t){return UI[t]})}function xu(r,e,t){var a="{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}";function i(h){return h&&Ha(h)?h:"-"}function n(h){return!!(h!=null&&!isNaN(h)&&isFinite(h))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?mr(r):r;if(isNaN(+l)){if(s)return"-"}else return gu(l,a,t)}if(e==="ordinal")return pf(r)?i(r):df(r)&&n(r)?r+"":"-";var u=Xr(r);return n(u)?e_(u):pf(r)?i(r):"-"}var a_=["a","b","c","d","e","f","g"],rc=function(r,e){return"{"+r+(e==null?"":e)+"}"};function i_(r,e,t){B(e)||(e=[e]);var a=e.length;if(!a)return"";for(var i=e[0].$vars||[],n=0;n<i.length;n++){var o=a_[n];r=r.replace(rc(o),rc(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(rc(a_[l],s),t?ke(u):u)}return r}function YI(r,e,t){return A(e,function(a,i){r=r.replace("{"+i+"}",t?ke(a):a)}),r}function XI(r,e){var t=ft(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 Ai(r,e){return e=e||"transparent",ft(r)?r:J(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function bu(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var wu=A,n_=["left","right","top","bottom","width","height"],Ci=[["width","left","right"],["height","top","bottom"]];function ac(r,e,t,a,i){var n=0,o=0;a==null&&(a=Infinity),i==null&&(i=Infinity);var s=0;e.eachChild(function(l,u){var h=l.getBoundingRect(),f=e.childAt(u+1),v=f&&f.getBoundingRect(),c,p;if(r==="horizontal"){var d=h.width+(v?-v.x+h.x:0);c=n+d,c>a||l.newline?(n=0,c=d,o+=s+t,s=h.height):s=Math.max(s,h.height)}else{var g=h.height+(v?-v.y+h.y:0);p=o+g,p>i||l.newline?(n+=s+t,o=0,p=g,s=h.width):s=Math.max(s,h.width)}l.newline||(l.x=n,l.y=o,l.markRedraw(),r==="horizontal"?n=c+t:o=p+t)})}var Di=ac;j(ac,"vertical"),j(ac,"horizontal");function $I(r,e,t){var a=e.width,i=e.height,n=F(r.left,a),o=F(r.top,i),s=F(r.right,a),l=F(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=An(t||0),{width:Math.max(s-n-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function qt(r,e,t){t=An(t||0);var a=e.width,i=e.height,n=F(r.left,a),o=F(r.top,i),s=F(r.right,a),l=F(r.bottom,i),u=F(r.width,a),h=F(r.height,i),f=t[2]+t[0],v=t[1]+t[3],c=r.aspect;switch(isNaN(u)&&(u=a-s-v-n),isNaN(h)&&(h=i-l-f-o),c!=null&&(isNaN(u)&&isNaN(h)&&(c>a/i?u=a*.8:h=i*.8),isNaN(u)&&(u=c*h),isNaN(h)&&(h=u/c)),isNaN(n)&&(n=a-s-u-v),isNaN(o)&&(o=i-l-h-f),r.left||r.right){case"center":n=a/2-u/2-t[3];break;case"right":n=a-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-h/2-t[0];break;case"bottom":o=i-h-f;break}n=n||0,o=o||0,isNaN(u)&&(u=a-v-n-(s||0)),isNaN(h)&&(h=i-f-o-(l||0));var p=new ot(n+t[3],o+t[0],u,h);return p.margin=t,p}function Tu(r,e,t,a,i){var n=!i||!i.hv||i.hv[0],o=!i||!i.hv||i.hv[1],s=i&&i.boundingMode||"all";if(!(!n&&!o)){var l;if(s==="raw")l=r.type==="group"?new ot(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(l=r.getBoundingRect(),r.needLocalTransform()){var u=r.getLocalTransform();l=l.clone(),l.applyTransform(u)}var h=qt(X({width:l.width,height:l.height},e),t,a),f=n?h.x-l.x:0,v=o?h.y-l.y:0;s==="raw"?(r.x=f,r.y=v):(r.x+=f,r.y+=v),r.markRedraw()}}function ZI(r,e){return r[Ci[e][0]]!=null||r[Ci[e][1]]!=null&&r[Ci[e][2]]!=null}function es(r){var e=r.layoutMode||r.constructor.layoutMode;return J(e)?e:e?{type:e}:null}function ma(r,e,t){var a=t&&t.ignoreSize;!B(a)&&(a=[a,a]);var i=o(Ci[0],0),n=o(Ci[1],1);u(Ci[0],r,i),u(Ci[1],r,n);function o(h,f){var v={},c=0,p={},d=0,g=2;if(wu(h,function(_){p[_]=r[_]}),wu(h,function(_){s(e,_)&&(v[_]=p[_]=e[_]),l(v,_)&&c++,l(p,_)&&d++}),a[f])return l(e,h[1])?p[h[2]]=null:l(e,h[2])&&(p[h[1]]=null),p;if(d===g||!c)return p;if(c>=g)return v;for(var y=0;y<h.length;y++){var m=h[y];if(!s(v,m)&&s(r,m)){v[m]=r[m];break}}return v}function s(h,f){return h.hasOwnProperty(f)}function l(h,f){return h[f]!=null&&h[f]!=="auto"}function u(h,f,v){wu(h,function(c){f[c]=v[c]})}}function Cn(r){return o_({},r)}function o_(r,e){return e&&r&&wu(n_,function(t){e.hasOwnProperty(t)&&(r[t]=e[t])}),r}var qI=At(),ht=function(r){E(e,r);function e(t,a,i){var n=r.call(this,t,a,i)||this;return n.uid=bn("ec_cpt_model"),n}return e.prototype.init=function(t,a,i){this.mergeDefaultAndTheme(t,i)},e.prototype.mergeDefaultAndTheme=function(t,a){var i=es(this),n=i?Cn(t):{},o=a.getTheme();at(t,o.get(this.mainType)),at(t,this.getDefaultOption()),i&&ma(t,n,i)},e.prototype.mergeOption=function(t,a){at(this.option,t,!0);var i=es(this);i&&ma(this.option,t,i)},e.prototype.optionUpdated=function(t,a){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!PL(t))return t.defaultOption;var a=qI(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=at(s,i[l],!0);a.defaultOption=s}return a.defaultOption},e.prototype.getReferringComponents=function(t,a){var i=t+"Index",n=t+"Id";return Io(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.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(xt);mm(ht,xt),kl(ht),RI(ht),EI(ht,KI);function KI(r){var e=[];return A(ht.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=H(e,function(t){return _r(t).main}),r!=="dataset"&&lt(e,"dataset")<=0&&e.unshift("dataset"),e}var s_="";typeof navigator!="undefined"&&(s_=navigator.platform||"");var Dn="rgba(0, 0, 0, 0.2)",QI={darkMode:"auto",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Dn,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Dn,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Dn,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Dn,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Dn,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Dn,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:s_.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},l_=Z(["tooltip","label","itemName","itemId","seriesName"]),Mr="original",ve="arrayRows",vr="objectRows",Kr="keyedColumns",_a="typedArray",u_="unknown",Lr="column",Mn="row",ce={Must:1,Might:2,Not:3},h_=At();function JI(r){h_(r).datasetMap=Z()}function f_(r,e,t){var a={},i=nc(e);if(!i||!r)return a;var n=[],o=[],s=e.ecModel,l=h_(s).datasetMap,u=i.uid+"_"+t.seriesLayoutBy,h,f;r=r.slice(),A(r,function(d,g){var y=J(d)?d:r[g]={name:d};y.type==="ordinal"&&h==null&&(h=g,f=p(y)),a[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});A(r,function(d,g){var y=d.name,m=p(d);if(h==null){var _=v.valueWayDim;c(a[y],_,m),c(o,_,m),v.valueWayDim+=m}else if(h===g)c(a[y],0,m),c(n,0,m);else{var _=v.categoryWayDim;c(a[y],_,m),c(o,_,m),v.categoryWayDim+=m}});function c(d,g,y){for(var m=0;m<y;m++)d.push(g+m)}function p(d){var g=d.dimsDef;return g?g.length:1}return n.length&&(a.itemName=n),o.length&&(a.seriesName=o),a}function ic(r,e,t){var a={},i=nc(r);if(!i)return a;var n=e.sourceFormat,o=e.dimensionsDefine,s;(n===vr||n===Kr)&&A(o,function(h,f){(J(h)?h.name:h)==="name"&&(s=f)});var l=function(){for(var h={},f={},v=[],c=0,p=Math.min(5,t);c<p;c++){var d=v_(e.data,n,e.seriesLayoutBy,o,e.startIndex,c);v.push(d);var g=d===ce.Not;if(g&&h.v==null&&c!==s&&(h.v=c),(h.n==null||h.n===h.v||!g&&v[h.n]===ce.Not)&&(h.n=c),y(h)&&v[h.n]!==ce.Not)return h;g||(d===ce.Might&&f.v==null&&c!==s&&(f.v=c),(f.n==null||f.n===f.v)&&(f.n=c))}function y(m){return m.v!=null&&m.n!=null}return y(h)?h:y(f)?f:null}();if(l){a.value=[l.v];var u=s!=null?s:l.n;a.itemName=[u],a.seriesName=[u]}return a}function nc(r){var e=r.get("data",!0);if(!e)return Io(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Wt).models[0]}function jI(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Io(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Wt).models}function tP(r,e){return v_(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function v_(r,e,t,a,i,n){var o,s=5;if(Pe(r))return ce.Not;var l,u;if(a){var h=a[n];J(h)?(l=h.name,u=h.type):ft(h)&&(l=h)}if(u!=null)return u==="ordinal"?ce.Must:ce.Not;if(e===ve){var f=r;if(t===Mn){for(var v=f[n],c=0;c<(v||[]).length&&c<s;c++)if((o=S(v[i+c]))!=null)return o}else for(var c=0;c<f.length&&c<s;c++){var p=f[i+c];if(p&&(o=S(p[n]))!=null)return o}}else if(e===vr){var d=r;if(!l)return ce.Not;for(var c=0;c<d.length&&c<s;c++){var g=d[c];if(g&&(o=S(g[l]))!=null)return o}}else if(e===Kr){var y=r;if(!l)return ce.Not;var v=y[l];if(!v||Pe(v))return ce.Not;for(var c=0;c<v.length&&c<s;c++)if((o=S(v[c]))!=null)return o}else if(e===Mr)for(var m=r,c=0;c<m.length&&c<s;c++){var g=m[c],_=Do(g);if(!B(_))return ce.Not;if((o=S(_[n]))!=null)return o}function S(x){var b=ft(x);if(x!=null&&isFinite(x)&&x!=="")return b?ce.Might:ce.Not;if(b&&x!=="-")return ce.Must}return ce.Not}var oc=Z();function eP(r,e){de(oc.get(r)==null&&e),oc.set(r,e)}function rP(r,e,t){var a=oc.get(e);if(!a)return t;var i=a(r);return i?t.concat(i):t}var c_=At(),aP=At(),sc=function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,a){var i=Rt(this.get("color",!0)),n=this.get("colorLayer",!0);return p_(this,c_,i,n,e,t,a)},r.prototype.clearColorPalette=function(){nP(this,c_)},r}();function lc(r,e,t,a){var i=Rt(r.get(["aria","decal","decals"]));return p_(r,aP,i,null,e,t,a)}function iP(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 p_(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 h=o==null||!a?t:iP(a,o);if(h=h||t,!(!h||!h.length)){var f=h[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%h.length,f}}function nP(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var Au,rs,d_,g_="\0_ec_inner",oP=1,uc=function(r){E(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 xt(n),this._locale=new xt(o),this._optionManager=s},e.prototype.setOption=function(t,a,i){var n=__(a);this._optionManager.setOption(t,i,n),this._resetOption(null,n)},e.prototype.resetOption=function(t,a){return this._resetOption(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"?d_(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=Z(),u=a&&a.replaceMergeMainTypeMap;JI(this),A(t,function(f,v){f!=null&&(ht.hasClass(v)?v&&(s.push(v),l.set(v,!0)):i[v]=i[v]==null?$(f):at(i[v],f,!0))}),u&&u.each(function(f,v){ht.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),ht.topologicalTravel(s,ht.getAllClassMainTypes(),h,this);function h(f){var v=rP(this,f,Rt(t[f])),c=n.get(f),p=c?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",d=cm(c,v,p);bL(d,f,ht),i[f]=null,n.set(f,null),o.set(f,0);var g=[],y=[],m=0;A(d,function(_,S){var x=_.existing,b=_.newOption;if(!b)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var w=f==="series",T=ht.getClass(f,_.keyInfo.subType,!w);if(!T)return;if(x&&x.constructor===T)x.name=_.keyInfo.name,x.mergeOption(b,this),x.optionUpdated(b,!1);else{var C=V({componentIndex:S},_.keyInfo);x=new T(b,this,this,C),V(x,C),_.brandNew&&(x.__requireNewView=!0),x.init(b,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[f]=g,n.set(f,y),o.set(f,m),f==="series"&&Au(this)}this._seriesIndices||Au(this)},e.prototype.getOption=function(){var t=$(this.option);return A(t,function(a,i){if(ht.hasClass(i)){for(var n=Rt(a),o=n.length,s=!1,l=o-1;l>=0;l--)n[l]&&!Lo(n[l])?s=!0:(n[l]=null,!s&&o--);n.length=o,t[i]=n}}),delete t[g_],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.getLocale=function(t){var a=this.getLocaleModel();return a.get(t)},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(Rt(i),function(u){s[u]&&l.push(s[u])})):n!=null?l=y_("id",n,s):o!=null?l=y_("name",o,s):l=kt(s,function(u){return!!u}),m_(l,t)},e.prototype.findComponents=function(t){var a=t.query,i=t.mainType,n=s(a),o=n?this.queryComponents(n):kt(this._componentsMap.get(i),function(u){return!!u});return l(m_(o,t));function s(u){var h=i+"Index",f=i+"Id",v=i+"Name";return u&&(u[h]!=null||u[f]!=null||u[v]!=null)?{mainType:i,index:u[h],id:u[f],name:u[v]}:null}function l(u){return t.filter?kt(u,t.filter):u}},e.prototype.eachComponent=function(t,a,i){var n=this._componentsMap;if(wt(t)){var o=a,s=t;n.each(function(f,v){for(var c=0;f&&c<f.length;c++){var p=f[c];p&&s.call(o,v,p,p.componentIndex)}})}else for(var l=ft(t)?n.get(t):J(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var h=l[u];h&&a.call(i,h,h.componentIndex)}},e.prototype.getSeriesByName=function(t){var a=$t(t,null);return kt(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 kt(this._componentsMap.get("series"),function(a){return!!a&&a.subType===t})},e.prototype.getSeries=function(){return kt(this._componentsMap.get("series").slice(),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,a){rs(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){rs(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 rs(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,a){rs(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=Z(i)},e.prototype.restoreData=function(t){Au(this);var a=this._componentsMap,i=[];a.each(function(n,o){ht.hasClass(o)&&i.push(o)}),ht.topologicalTravel(i,ht.getAllClassMainTypes(),function(n){A(a.get(n),function(o){o&&(n!=="series"||!sP(o,t))&&o.restoreData()})})},e.internalField=function(){Au=function(t){var a=t._seriesIndices=[];A(t._componentsMap.get("series"),function(i){i&&a.push(i.componentIndex)}),t._seriesIndicesMap=Z(a)},rs=function(t){},d_=function(t,a){t.option={},t.option[g_]=oP,t._componentsMap=Z({series:[]}),t._componentsCount=Z();var i=a.aria;J(i)&&i.enabled==null&&(i.enabled=!0),lP(a,t._theme.option),at(a,QI,!1),t._mergeOption(a,null)}}(),e}(xt);function sP(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 lP(r,e){var t=r.color&&!r.colorLayer;A(e,function(a,i){i==="colorLayer"&&t||ht.hasClass(i)||(typeof a=="object"?r[i]=r[i]?at(r[i],a,!1):$(a):r[i]==null&&(r[i]=a))})}function y_(r,e,t){if(B(e)){var a=Z();return A(e,function(n){if(n!=null){var o=$t(n,null);o!=null&&a.set(n,!0)}}),kt(t,function(n){return n&&a.get(n[r])})}else{var i=$t(e,null);return kt(t,function(n){return n&&i!=null&&n[r]===i})}}function m_(r,e){return e.hasOwnProperty("subType")?kt(r,function(t){return t&&t.subType===e.subType}):r}function __(r){var e=Z();return r&&A(Rt(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}Ht(uc,sc);var uP=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],S_=function(){function r(e){A(uP,function(t){this[t]=U(e[t],e)},this)}return r}(),hc={},as=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(e,t){var a=[];A(hc,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){hc[e]=t},r.get=function(e){return hc[e]},r}(),hP=/^(min|max)?(.+)$/,fP=function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,a){e&&(A(Rt(e.series),function(o){o&&o.data&&Pe(o.data)&&yl(o.data)}),A(Rt(e.dataset),function(o){o&&o.source&&Pe(o.source)&&yl(o.source)})),e=$(e);var i=this._optionBackup,n=vP(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=[],$(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=$(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++)cP(i[l].query,t,a)&&o.push(l);return!o.length&&n&&(o=[-1]),o.length&&!dP(o,this._currentMediaIndices)&&(s=H(o,function(h){return $(h===-1?n.option:i[h].option)})),this._currentMediaIndices=o,s},r}();function vP(r,e,t){var a=[],i,n,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,h=!!r.media,f=!!(l||s||o&&o.timeline);o?(n=o,n.timeline||(n.timeline=s)):((f||h)&&(r.options=r.media=null),n=r),h&&B(u)&&A(u,function(c){c&&c.option&&(c.query?a.push(c):i||(i=c))}),v(n),A(l,function(c){return v(c)}),A(a,function(c){return v(c.option)});function v(c){A(e,function(p){p(c,t)})}return{baseOption:n,timelineOptions:l||[],mediaDefault:i,mediaList:a}}function cP(r,e,t){var a={width:e,height:t,aspectratio:e/t},i=!0;return A(r,function(n,o){var s=o.match(hP);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();pP(a[u],n,l)||(i=!1)}}),i}function pP(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function dP(r,e){return r.join(",")===e.join(",")}var cr=A,is=J,x_=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function fc(r){var e=r&&r.itemStyle;if(!!e)for(var t=0,a=x_.length;t<a;t++){var i=x_[t],n=e.normal,o=e.emphasis;n&&n[i]&&(r[i]=r[i]||{},r[i].normal?at(r[i].normal,n[i]):r[i].normal=n[i],n[i]=null),o&&o[i]&&(r[i]=r[i]||{},r[i].emphasis?at(r[i].emphasis,o[i]):r[i].emphasis=o[i],o[i]=null)}}function pe(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,X(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 ns(r){pe(r,"itemStyle"),pe(r,"lineStyle"),pe(r,"areaStyle"),pe(r,"label"),pe(r,"labelLine"),pe(r,"upperLabel"),pe(r,"edgeLabel")}function Ut(r,e){var t=is(r)&&r[e],a=is(t)&&t.textStyle;if(a)for(var i=0,n=vm.length;i<n;i++){var o=vm[i];a.hasOwnProperty(o)&&(t[o]=a[o])}}function qe(r){r&&(ns(r),Ut(r,"label"),r.emphasis&&Ut(r.emphasis,"label"))}function gP(r){if(!!is(r)){fc(r),ns(r),Ut(r,"label"),Ut(r,"upperLabel"),Ut(r,"edgeLabel"),r.emphasis&&(Ut(r.emphasis,"label"),Ut(r.emphasis,"upperLabel"),Ut(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(fc(e),qe(e));var t=r.markLine;t&&(fc(t),qe(t));var a=r.markArea;a&&qe(a);var i=r.data;if(r.type==="graph"){i=i||r.nodes;var n=r.links||r.edges;if(n&&!Pe(n))for(var o=0;o<n.length;o++)qe(n[o]);A(r.categories,function(u){ns(u)})}if(i&&!Pe(i))for(var o=0;o<i.length;o++)qe(i[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)qe(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)B(l[o])?(qe(l[o][0]),qe(l[o][1])):qe(l[o]);r.type==="gauge"?(Ut(r,"axisLabel"),Ut(r,"title"),Ut(r,"detail")):r.type==="treemap"?(pe(r.breadcrumb,"itemStyle"),A(r.levels,function(u){ns(u)})):r.type==="tree"&&ns(r.leaves)}}function Qr(r){return B(r)?r:r?[r]:[]}function b_(r){return(B(r)?r[0]:r)||{}}function yP(r,e){cr(Qr(r.series),function(a){is(a)&&gP(a)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),cr(t,function(a){cr(Qr(r[a]),function(i){i&&(Ut(i,"axisLabel"),Ut(i.axisPointer,"label"))})}),cr(Qr(r.parallel),function(a){var i=a&&a.parallelAxisDefault;Ut(i,"axisLabel"),Ut(i&&i.axisPointer,"label")}),cr(Qr(r.calendar),function(a){pe(a,"itemStyle"),Ut(a,"dayLabel"),Ut(a,"monthLabel"),Ut(a,"yearLabel")}),cr(Qr(r.radar),function(a){Ut(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)}),cr(Qr(r.geo),function(a){is(a)&&(qe(a),cr(Qr(a.regions),function(i){qe(i)}))}),cr(Qr(r.timeline),function(a){qe(a),pe(a,"label"),pe(a,"itemStyle"),pe(a,"controlStyle",!0);var i=a.data;B(i)&&A(i,function(n){J(n)&&(pe(n,"label"),pe(n,"itemStyle"))})}),cr(Qr(r.toolbox),function(a){pe(a,"iconStyle"),cr(a.feature,function(i){pe(i,"iconStyle")})}),Ut(b_(r.axisPointer),"label"),Ut(b_(r.tooltip).axisPointer,"label")}function mP(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 _P(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 w_(r){r&&A(SP,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var SP=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],xP=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],vc=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function os(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<vc.length;t++){var a=vc[t][1],i=vc[t][0];e[a]!=null&&(e[i]=e[a])}}function T_(r){!r||r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function A_(r){!r||r.downplay&&!r.blur&&(r.blur=r.downplay)}function bP(r){!r||r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function C_(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&C_(r[t].children,e)}function D_(r,e){yP(r,e),r.series=Rt(r.series),A(r.series,function(t){if(!!J(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),T_(t.label);var i=t.data;if(i&&!Pe(i))for(var n=0;n<i.length;n++)T_(i[n]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(a==="gauge"){var o=mP(t,"pointer.color");o!=null&&_P(t,"itemStyle.color",o)}else if(a==="bar"){os(t),os(t.backgroundStyle),os(t.emphasis);var i=t.data;if(i&&!Pe(i))for(var n=0;n<i.length;n++)typeof i[n]=="object"&&(os(i[n]),os(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)),A_(t),C_(t.data,A_)}else a==="graph"||a==="sankey"?bP(t):a==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&X(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),w_(t)}}),r.dataRange&&(r.visualMap=r.dataRange),A(xP,function(t){var a=r[t];a&&(B(a)||(a=[a]),A(a,function(i){w_(i)}))})}function wP(r){var e=Z();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(TP)}function TP(r){A(r,function(e,t){var a=[],i=[NaN,NaN],n=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=o.map(n,function(u,h,f){var v=o.get(e.stackedDimension,f);if(isNaN(v))return i;var c,p;s?p=o.getRawIndex(f):c=o.get(e.stackedByDimension,f);for(var d=NaN,g=t-1;g>=0;g--){var y=r[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,c)),p>=0){var m=y.data.getByRawIndex(y.stackResultDimension,p);if(v>=0&&m>0||v<=0&&m<0){v+=m,d=m;break}}}return a[0]=v,a[1]=d,a});o.hostModel.setData(l),e.data=l})}var Cu=function(){function r(e){this.data=e.data||(e.sourceFormat===Kr?{}:[]),this.sourceFormat=e.sourceFormat||u_,this.seriesLayoutBy=e.seriesLayoutBy||Lr,this.startIndex=e.startIndex||0,this.dimensionsDefine=e.dimensionsDefine,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.encodeDefine=e.encodeDefine,this.metaRawOption=e.metaRawOption}return r}();function Du(r){return r instanceof Cu}function cc(r,e,t,a){t=t||L_(r);var i=e.seriesLayoutBy,n=CP(r,t,i,e.sourceHeader,e.dimensions),o=new Cu({data:r,sourceFormat:t,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,encodeDefine:M_(a),metaRawOption:$(e)});return o}function pc(r){return new Cu({data:r,sourceFormat:Pe(r)?_a:Mr})}function AP(r){return new Cu({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:$(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,encodeDefine:M_(r.encodeDefine)})}function M_(r){return r?Z(r):null}function L_(r){var e=u_;if(Pe(r))e=_a;else if(B(r)){r.length===0&&(e=ve);for(var t=0,a=r.length;t<a;t++){var i=r[t];if(i!=null){if(B(i)){e=ve;break}else if(J(i)){e=vr;break}}}}else if(J(r)){for(var n in r)if(Y(r,n)&&Te(r[n])){e=Kr;break}}return e}function CP(r,e,t,a,i){var n,o;if(!r)return{dimensionsDefine:I_(i),startIndex:o,dimensionsDetectedCount:n};if(e===ve){var s=r;a==="auto"||a==null?P_(function(u){u!=null&&u!=="-"&&(ft(u)?o==null&&(o=1):o=0)},t,s,10):o=df(a)?a:a?1:0,!i&&o===1&&(i=[],P_(function(u,h){i[h]=u!=null?u+"":""},t,s,Infinity)),n=i?i.length:t===Mn?s.length:s[0]?s[0].length:null}else if(e===vr)i||(i=DP(r));else if(e===Kr)i||(i=[],A(r,function(u,h){i.push(h)}));else if(e===Mr){var l=Do(r[0]);n=B(l)&&l.length||1}return{startIndex:o,dimensionsDefine:I_(i),dimensionsDetectedCount:n}}function DP(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 I_(r){if(!!r){var e=Z();return H(r,function(t,a){t=J(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 P_(r,e,t,a){if(e===Mn)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)}var Mi,Li,Ii,R_,E_,MP=function(){function r(e,t){var a=Du(e)?e:pc(e);this._source=a;var i=this._data=a.data;a.sourceFormat===_a&&(this._offset=0,this._dimSize=t,this._data=i),E_(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;E_=function(o,s,l){var u=l.sourceFormat,h=l.seriesLayoutBy,f=l.startIndex,v=l.dimensionsDefine,c=R_[gc(u,h)];if(V(o,c),u===_a)o.getItem=t,o.count=i,o.fillStorage=a;else{var p=O_(u,h);o.getItem=U(p,null,s,f,v);var d=B_(u,h);o.count=U(d,null,s,f,v)}};var t=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,h=u*o,f=0;f<u;f++)s[f]=l[h+f];return s},a=function(o,s,l,u){for(var h=this._data,f=this._dimSize,v=0;v<f;v++){for(var c=u[v],p=c[0]==null?Infinity:c[0],d=c[1]==null?-Infinity:c[1],g=s-o,y=l[v],m=0;m<g;m++){var _=h[m*f+v];y[o+m]=_,_<p&&(p=_),_>d&&(d=_)}c[0]=p,c[1]=d}},i=function(){return this._data?this._data.length/this._dimSize:0};R_=(e={},e[ve+"_"+Lr]={pure:!0,appendData:n},e[ve+"_"+Mn]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[vr]={pure:!0,appendData:n},e[Kr]={pure:!0,appendData:function(o){var s=this._data;A(o,function(l,u){for(var h=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)h.push(l[f])})}},e[Mr]={appendData:n},e[_a]={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}(),k_=function(r,e,t,a){return r[a]},LP=(Mi={},Mi[ve+"_"+Lr]=function(r,e,t,a){return r[a+e]},Mi[ve+"_"+Mn]=function(r,e,t,a){a+=e;for(var i=[],n=r,o=0;o<n.length;o++){var s=n[o];i.push(s?s[a]:null)}return i},Mi[vr]=k_,Mi[Kr]=function(r,e,t,a){for(var i=[],n=0;n<t.length;n++){var o=t[n].name,s=r[o];i.push(s?s[a]:null)}return i},Mi[Mr]=k_,Mi);function O_(r,e){var t=LP[gc(r,e)];return t}var N_=function(r,e,t){return r.length},IP=(Li={},Li[ve+"_"+Lr]=function(r,e,t){return Math.max(0,r.length-e)},Li[ve+"_"+Mn]=function(r,e,t){var a=r[0];return a?Math.max(0,a.length-e):0},Li[vr]=N_,Li[Kr]=function(r,e,t){var a=t[0].name,i=r[a];return i?i.length:0},Li[Mr]=N_,Li);function B_(r,e){var t=IP[gc(r,e)];return t}var dc=function(r,e,t){return e!=null?r[e]:r},PP=(Ii={},Ii[ve]=dc,Ii[vr]=function(r,e,t){return e!=null?r[t]:r},Ii[Kr]=dc,Ii[Mr]=function(r,e,t){var a=Do(r);return e==null||!(a instanceof Array)?a:a[e]},Ii[_a]=dc,Ii);function V_(r){var e=PP[r];return e}function gc(r,e){return r===ve?r+"_"+e:r}function Pi(r,e,t){if(!!r){var a=r.getRawDataItem(e);if(a!=null){var i=r.getProvider().getSource().sourceFormat,n,o,s=r.getDimensionInfo(t);return s&&(n=s.name,o=s.index),V_(i)(a,o,n)}}}var RP=/\{@(.+?)\}/g,yc=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"],h=l&&l.stroke,f=this.mainType,v=f==="series",c=a.userOutput;return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:n,data:s,dataType:t,value:i,color:u,borderColor:h,dimensionNames:c?c.dimensionNames:null,encode:c?c.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&&B(l.value)&&(l.value=l.value[i]),!n){var u=s.getItemModel(e);n=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(typeof n=="function")return l.status=t,l.dimensionIndex=i,n(l);if(typeof n=="string"){var h=i_(n,l);return h.replace(RP,function(f,v){var c=v.length,p=v.charAt(0)==="["&&v.charAt(c-1)==="]"?+v.slice(1,c-1):v,d=Pi(s,e,p);if(o&&B(o.interpolatedValue)){var g=s.getDimensionInfo(p);g&&(d=o.interpolatedValue[g.index])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(e,t){return Pi(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,a){},r}();function z_(r){var e,t;return J(r)?r.type&&(t=r):e=r,{markupText:e,markupFragment:t}}function ss(r){return new EP(r)}var EP=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=h(this._modBy),s=this._modDataCount||0,l=h(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(n="reset");function h(m){return!(m>=1)&&(m=1),m}var f;(this._dirty||n==="reset")&&(this._dirty=!1,f=this._doReset(a)),this._modBy=l,this._modDataCount=u;var v=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):Infinity,this._progress){var c=this._dueIndex,p=Math.min(v!=null?this._dueIndex+v:Infinity,this._dueEnd);if(!a&&(f||c<p)){var d=this._progress;if(B(d))for(var g=0;g<d.length;g++)this._doProgress(d[g],c,p,l,u);else this._doProgress(d,c,p,l,u)}this._dueIndex=p;var y=this._settedOutputEnd!=null?this._settedOutputEnd:p;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){F_.reset(t,a,i,n),this._callingProgress=e,this._callingProgress({start:t,end:a,count:a-t,next:F_.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),B(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}(),F_=function(){var r,e,t,a,i,n={reset:function(l,u,h,f){e=l,r=u,t=h,a=f,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 Mu(r,e){var t=e&&e.type;if(t==="ordinal"){var a=e&&e.ordinalMeta;return a?a.parseAndCollect(r):r}return t==="time"&&typeof r!="number"&&r!=null&&r!=="-"&&(r=+mr(r)),r==null||r===""?NaN:+r}var kP=Z({number:function(r){return parseFloat(r)},time:function(r){return+mr(r)},trim:function(r){return typeof r=="string"?Ha(r):r}});function G_(r){return kP.get(r)}var H_={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}},OP=function(){function r(e,t){if(typeof t!="number"){var a="";yt(a)}this._opFn=H_[e],this._rvalFloat=Xr(t)}return r.prototype.evaluate=function(e){return typeof e=="number"?this._opFn(e,this._rvalFloat):this._opFn(Xr(e),this._rvalFloat)},r}(),W_=function(){function r(e,t){var a=e==="desc";this._resultLT=a?1:-1,t==null&&(t=a?"min":"max"),this._incomparable=t==="min"?-Infinity:Infinity}return r.prototype.evaluate=function(e,t){var a=typeof e,i=typeof t,n=a==="number"?e:Xr(e),o=i==="number"?t:Xr(t),s=isNaN(n),l=isNaN(o);if(s&&(n=this._incomparable),l&&(o=this._incomparable),s&&l){var u=a==="string",h=i==="string";u&&(n=h?e:0),h&&(o=u?t:0)}return n<o?this._resultLT:n>o?-this._resultLT:0},r}(),NP=function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Xr(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=Xr(e)===this._rvalFloat)}return this._isEQ?t:!t},r}();function BP(r,e){return r==="eq"||r==="ne"?new NP(r==="eq",e):Y(H_,r)?new OP(r,e):null}var VP=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 Mu(e,t)},r}();function zP(r,e){var t=new VP,a=r.data,i=t.sourceFormat=r.sourceFormat,n=r.startIndex,o="";r.seriesLayoutBy!==Lr&&yt(o);var s=[],l={},u=r.dimensionsDefine;if(u)A(u,function(d,g){var y=d.name,m={index:g,name:y,displayName:d.displayName};if(s.push(m),y!=null){var _="";Y(l,y)&&yt(_),l[y]=m}});else for(var h=0;h<r.dimensionsDetectedCount;h++)s.push({index:h});var f=O_(i,Lr);e.__isBuiltIn&&(t.getRawDataItem=function(d){return f(a,n,s,d)},t.getRawData=U(FP,null,r)),t.cloneRawData=U(GP,null,r);var v=B_(i,Lr);t.count=U(v,null,a,n,s);var c=V_(i);t.retrieveValue=function(d,g){var y=f(a,n,s,d);return p(y,g)};var p=t.retrieveValueFromItem=function(d,g){if(d!=null){var y=s[g];if(y)return c(d,g,y.name)}};return t.getDimensionInfo=U(HP,null,s,l),t.cloneAllDimensionInfo=U(WP,null,s),t}function FP(r){var e=r.sourceFormat;if(!mc(e)){var t="";yt(t)}return r.data}function GP(r){var e=r.sourceFormat,t=r.data;if(!mc(e)){var a="";yt(a)}if(e===ve){for(var i=[],n=0,o=t.length;n<o;n++)i.push(t[n].slice());return i}else if(e===vr){for(var i=[],n=0,o=t.length;n<o;n++)i.push(V({},t[n]));return i}}function HP(r,e,t){if(t!=null){if(typeof t=="number"||!isNaN(t)&&!Y(e,t))return r[t];if(Y(e,t))return e[t]}}function WP(r){return $(r)}var U_=Z();function UP(r){r=$(r);var e=r.type,t="";e||yt(t);var a=e.split(":");a.length!==2&&yt(t);var i=!1;a[0]==="echarts"&&(e=a[1],i=!0),r.__isBuiltIn=i,U_.set(e,r)}function YP(r,e,t){var a=Rt(r),i=a.length,n="";i||yt(n);for(var o=0,s=i;o<s;o++){var l=a[o];e=XP(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function XP(r,e,t,a){var i="";e.length||yt(i),J(r)||yt(i);var n=r.type,o=U_.get(n);o||yt(i);var s=H(e,function(u){return zP(u,o)}),l=Rt(o.transform({upstream:s[0],upstreamList:s,config:$(r.config)}));return H(l,function(u,h){var f="";J(u)||yt(f),u.data||yt(f);var v=L_(u.data);mc(v)||yt(f);var c,p=e[0];if(p&&h===0&&!u.dimensions){var d=p.startIndex;d&&(u.data=p.data.slice(0,d).concat(u.data)),c={seriesLayoutBy:Lr,sourceHeader:d,dimensions:p.metaRawOption.dimensions}}else c={seriesLayoutBy:Lr,sourceHeader:0,dimensions:u.dimensions};return cc(u.data,c,null,null)})}function mc(r){return r===ve||r===vr}var Y_=function(){function r(e){this._sourceList=[],this._upstreamSignList=[],this._versionSignBase=0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[])},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()},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),a=!!t.length,i,n;if(_c(e)){var o=e,s=void 0,l=void 0,u=void 0;if(a){var h=t[0];h.prepareSource(),u=h.getSource(),s=u.data,l=u.sourceFormat,n=[h._getVersionSign()]}else s=o.get("data",!0),l=Pe(s)?_a:Mr,n=[];var f=this._getSourceMetaRawOption(),v=u?u.metaRawOption:null,c=vt(f.seriesLayoutBy,v?v.seriesLayoutBy:null),p=vt(f.sourceHeader,v?v.sourceHeader:null),d=vt(f.dimensions,v?v.dimensions:null);i=[cc(s,{seriesLayoutBy:c,sourceHeader:p,dimensions:d},l,o.get("encode",!0))]}else{var g=e;if(a){var y=this._applyTransform(t);i=y.sourceList,n=y.upstreamSignList}else{var m=g.get("source",!0);i=[cc(m,this._getSourceMetaRawOption(),null,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&&$_(n)}var o,s=[],l=[];return A(e,function(u){u.prepareSource();var h=u.getSource(i||0),f="";i!=null&&!h&&$_(f),s.push(h),l.push(u._getVersionSign())}),a?o=YP(a,s,{datasetIndex:t.componentIndex}):i!=null&&(o=[AP(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){var e=this._sourceList;if(!e.length)return!0;for(var t=this._getUpstreamSourceManagers(),a=0;a<t.length;a++){var i=t[a];if(i._isDirty()||this._upstreamSignList[a]!==i._getVersionSign())return!0}},r.prototype.getSource=function(e){return this._sourceList[e||0]},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(_c(e)){var t=nc(e);return t?[t.getSourceManager()]:[]}else return H(jI(e),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,a,i;if(_c(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 X_(r){var e=r.option.transform;e&&yl(r.option.transform)}function _c(r){return r.mainType==="series"}function $_(r){throw new Error(r)}var Z_="line-height:1";function q_(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 $P=[0,10,20,30],ZP=["",`
`,`

`,`


`];function Jt(r,e){return e.type=r,e}function Sc(r){return Y(K_,r.type)&&K_[r.type]}var K_={section:{planLayout:function(r){var e=r.blocks.length,t=e>1||e>0&&!r.noHeader,a=0;A(r.blocks,function(i){Sc(i).planLayout(i);var n=i.__gapLevelBetweenSubBlocks;n>=a&&(a=n+(t&&(!n||i.type==="section"&&!i.noHeader)?1:0))}),r.__gapLevelBetweenSubBlocks=a},build:function(r,e,t,a){var i=e.noHeader,n=J_(e),o=qP(r,e,i?t:n.html,a);if(i)return o;var s=xu(e.header,"ordinal",r.useUTC),l=q_(a,r.renderMode).nameStyle;return r.renderMode==="richText"?j_(r,s,l)+n.richText+o:xc('<div style="'+l+";"+Z_+';">'+ke(s)+"</div>"+o,t)}},nameValue:{planLayout:function(r){r.__gapLevelBetweenSubBlocks=0},build:function(r,e,t,a){var i=r.renderMode,n=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=e.value,h=r.useUTC;if(!(n&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),v=n?"":xu(l,"ordinal",h),c=e.valueType,p=o?[]:B(u)?H(u,function(S,x){return xu(S,B(c)?c[x]:c,h)}):[xu(u,B(c)?c[0]:c,h)],d=!s||!n,g=!s&&n,y=q_(a,i),m=y.nameStyle,_=y.valueStyle;return i==="richText"?(s?"":f)+(n?"":j_(r,v,m))+(o?"":JP(r,p,d,g,_)):xc((s?"":f)+(n?"":KP(v,!s,m))+(o?"":QP(p,d,g,_)),t)}}}};function qP(r,e,t,a){var i=[],n=e.blocks||[];de(!n||B(n)),n=n||[];var o=r.orderMode;if(e.sortBlocks&&o){n=n.slice();var s={valueAsc:"asc",valueDesc:"desc"};if(Y(s,o)){var l=new W_(s[o],null);n.sort(function(h,f){return l.evaluate(h.sortParam,f.sortParam)})}else o==="seriesDesc"&&n.reverse()}var u=J_(e);if(A(n,function(h,f){var v=Sc(h).build(r,h,f>0?u.html:0,a);v!=null&&i.push(v)}),!!i.length)return r.renderMode==="richText"?i.join(u.richText):xc(i.join(""),t)}function Q_(r,e,t,a,i,n){if(!!r){var o=Sc(r);o.planLayout(r);var s={useUTC:i,renderMode:t,orderMode:a,markupStyleCreator:e};return o.build(s,r,0,n)}}function J_(r){var e=r.__gapLevelBetweenSubBlocks;return{html:$P[e],richText:ZP[e]}}function xc(r,e){var t='<div style="clear:both"></div>',a="margin: "+e+"px 0 0";return'<div style="'+a+";"+Z_+';">'+r+t+"</div>"}function KP(r,e,t){var a=e?"margin-left:2px":"";return'<span style="'+t+";"+a+'">'+ke(r)+"</span>"}function QP(r,e,t,a){var i=t?"10px":"20px",n=e?"float:right;margin-left:"+i:"";return'<span style="'+n+";"+a+'">'+H(r,function(o){return ke(o)}).join("&nbsp;&nbsp;")+"</span>"}function j_(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function JP(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(e.join("  "),n)}function t1(r,e){var t=r.getData().getItemVisual(e,"style"),a=t[r.visualDrawType];return Ai(a)}function e1(r,e){var t=r.get("padding");return t!=null?t:e==="richText"?[8,10]:10}var bc=function(){function r(){this.richTextStyles={},this._nextStyleNameId=sm()}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=XI({color:t,type:e,renderMode:a,markerId:i});return ft(n)?n:(this.richTextStyles[i]=n.style,n.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};B(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 r1(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=B(s),u=t1(e,t),h,f,v,c;if(o>1||l&&!o){var p=jP(s,e,t,n,u);h=p.inlineValues,f=p.inlineValueTypes,v=p.blocks,c=p.inlineValues[0]}else if(o){var d=i.getDimensionInfo(n[0]);c=h=Pi(i,t,n[0]),f=d.type}else c=h=l?s[0]:s;var g=sv(e),y=g&&e.name||"",m=i.getName(t),_=a?y:m;return Jt("section",{header:y,noHeader:a||!g,sortParam:c,blocks:[Jt("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Ha(_),value:h,valueType:f})].concat(v||[])})}function jP(r,e,t,a,i){var n=e.getData(),o=oo(r,function(f,v,c){var p=n.getDimensionInfo(c);return f=f||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];a.length?A(a,function(f){h(Pi(n,t,f),f)}):A(r,h);function h(f,v){var c=n.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push(Jt("nameValue",{markerType:"subItem",markerColor:i,name:c.displayName,value:f,valueType:c.type})):(s.push(f),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Sa=At();function Lu(r,e){return r.getName(e)||r.getId(e)}var It=function(r){E(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=ss({count:eR,reset:rR}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i);var n=Sa(this).sourceManager=new Y_(this);n.prepareSource();var o=this.getInitialData(t,i);i1(o,this),this.dataTask.context.data=o,Sa(this).dataBeforeProcessed=o,a1(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,a){var i=es(this),n=i?Cn(t):{},o=this.subType;ht.hasClass(o)&&(o+="Series"),at(t,a.getTheme().get(this.subType)),at(t,this.getDefaultOption()),ii(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&ma(t,n,i)},e.prototype.mergeOption=function(t,a){t=at(this.option,t,!0),this.fillDataTextStyle(t.data);var i=es(this);i&&ma(this.option,t,i);var n=Sa(this).sourceManager;n.dirty(),n.prepareSource();var o=this.getInitialData(t,a);i1(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Sa(this).dataBeforeProcessed=o,a1(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Pe(t))for(var a=["show"],i=0;i<t.length;i++)t[i]&&t[i].label&&ii(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=wc(this);if(a){var i=a.context.data;return t==null?i:i.getLinkedData(t)}else return Sa(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=wc(this);if(a){var i=a.context;i.outputData=t,a!==this.dataTask&&(i.data=t)}Sa(this).data=t},e.prototype.getSource=function(){return Sa(this).sourceManager.getSource()},e.prototype.getRawData=function(){return Sa(this).dataBeforeProcessed},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,a,i){return r1({series:this,dataIndex:t,multipleSeries:a})},e.prototype.isAnimationEnabled=function(){if(et.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,a,i){var n=this.ecModel,o=sc.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)for(var n=this.getData(a),o=0;o<t.length;o++){var s=t[o],l=Lu(n,s);i[l]=!1,this._selectedDataIndicesMap[l]=-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(){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),o=Lu(n,t);return i[o]||!1},e.prototype._innerSelect=function(t,a){var i,n,o=this.option.selectedMode,s=a.length;if(!(!o||!s)){if(o==="multiple")for(var l=this.option.selectedMap||(this.option.selectedMap={}),u=0;u<s;u++){var h=a[u],f=Lu(t,h);l[f]=!0,this._selectedDataIndicesMap[f]=t.getRawIndex(h)}else if(o==="single"||o===!0){var v=a[s-1],f=Lu(t,v);this.option.selectedMap=(i={},i[f]=!0,i),this._selectedDataIndicesMap=(n={},n[f]=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 ht.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.useColorPaletteOnData=!1,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(ht);Ht(It,yc),Ht(It,sc),mm(It,ht);function a1(r){var e=r.name;sv(r)||(r.name=tR(r)||e)}function tR(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 eR(r){return r.model.getRawData().count()}function rR(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),aR}function aR(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function i1(r,e){A(oy(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,j(iR,e))})}function iR(r,e){var t=wc(r);return t&&t.setOutputEnd((e||this).count()),e}function wc(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 Et=function(){function r(){this.group=new q,this.uid=bn("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.blurSeries=function(e,t){},r}();hv(Et),kl(Et);function Ln(){var r=At();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 n1=At(),nR=Ln(),Ct=function(){function r(){this.group=new q,this.uid=bn("viewChart"),this.renderTask=ss({plan:oR,reset:sR}),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){s1(e.getData(),i,"emphasis")},r.prototype.downplay=function(e,t,a,i){s1(e.getData(),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.markUpdateMethod=function(e,t){n1(e).updateMethod=t},r.protoInitialize=function(){var e=r.prototype;e.type="chart"}(),r}();function o1(r,e,t){r&&(e==="emphasis"?Cr:Dr)(r,t)}function s1(r,e,t){var a=ni(r,e),i=e&&e.highlightKey!=null?G2(e.highlightKey):null;a!=null?A(Rt(a),function(n){o1(r.getItemGraphicEl(n),t,i)}):r.eachItemGraphicEl(function(n){o1(n,t,i)})}hv(Ct),kl(Ct);function oR(r){return nR(r.model)}function sR(r){var e=r.model,t=r.ecModel,a=r.api,i=r.payload,n=e.pipelineContext.progressiveRender,o=r.view,s=i&&n1(i).updateMethod,l=n?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,a,i),lR[l]}var lR={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)}}},Iu="\0__throttleOriginMethod",l1="\0__throttleRate",u1="\0__throttleType";function Tc(r,e,t){var a,i=0,n=0,o=null,s,l,u,h;e=e||0;function f(){n=new Date().getTime(),o=null,r.apply(l,u||[])}var v=function(){for(var c=[],p=0;p<arguments.length;p++)c[p]=arguments[p];a=new Date().getTime(),l=this,u=c;var d=h||e,g=h||t;h=null,s=a-(g?i:n)-d,clearTimeout(o),g?o=setTimeout(f,d):s>=0?f():o=setTimeout(f,-s),i=a};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){h=c},v}function ls(r,e,t,a){var i=r[e];if(!!i){var n=i[Iu]||i,o=i[u1],s=i[l1];if(s!==t||o!==a){if(t==null||!a)return r[e]=n;i=r[e]=Tc(n,t,a==="debounce"),i[Iu]=n,i[u1]=a,i[l1]=t}return i}}function uR(r,e){var t=r[e];t&&t[Iu]&&(r[e]=t[Iu])}var h1=At(),f1={itemStyle:li(qv,!0),lineStyle:li(Zv,!0)},hR={lineStyle:"stroke",itemStyle:"fill"};function v1(r,e){var t=r.visualStyleMapper||f1[e];return t||(console.warn("Unkown style type '"+e+"'."),f1.itemStyle)}function c1(r,e){var t=r.visualDrawType||hR[e];return t||(console.warn("Unkown style type '"+e+"'."),"fill")}var fR={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",i=r.getModel(a),n=v1(r,a),o=n(i),s=i.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=c1(r,a),u=o[l],h=wt(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||h||f){var v=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=v,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||typeof o.fill=="function"?v:o.fill,o.stroke=o.stroke==="auto"||typeof o.stroke=="function"?v:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&h)return t.setVisual("colorFromPalette",!1),{dataEach:function(c,p){var d=r.getDataParams(p),g=V({},o);g[l]=h(d),c.setItemVisual(p,"style",g)}}}},us=new xt,vR={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",i=v1(r,a),n=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){us.option=l[a];var u=i(us),h=o.ensureUniqueItemVisual(s,"style");V(h,u),us.option.decal&&(o.setItemVisual(s,"decal",us.option.decal),us.option.decal.dirty=!0),n in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},cR={performRawSeries:!0,overallReset:function(r){var e=Z();r.eachSeries(function(t){if(!!t.useColorPaletteOnData){var a=e.get(t.type);a||(a={},e.set(t.type,a)),h1(t).scope=a}}),r.eachSeries(function(t){if(!(!t.useColorPaletteOnData||r.isSeriesFiltered(t))){var a=t.getRawData(),i={},n=t.getData(),o=h1(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=c1(t,s);n.each(function(u){var h=n.getRawIndex(u);i[h]=u}),a.each(function(u){var h=i[u],f=n.getItemVisual(h,"colorFromPalette");if(f){var v=n.ensureUniqueItemVisual(h,"style"),c=a.getName(u)||u+"",p=a.count();v[l]=t.getColorFromPalette(c,o,p)}})}})}},Pu=Math.PI;function pR(r,e){e=e||{},X(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 q,a=new pt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(a);var i=new gt({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 pt({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 eu({shape:{startAngle:-Pu/2,endAngle:-Pu/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:Pu*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Pu*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),h=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:h}),n.setShape({x:u-l,y:h-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var p1=function(){function r(e,t,a,i){this._stageTaskMap=Z(),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=Z();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="";de(!(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 h=o._stageTaskMap.get(l.uid),f=h.seriesTaskMap,v=h.overallTask;if(v){var c,p=v.agentStubMap;p.each(function(g){s(i,g)&&(g.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,a);var d=o.getPerformArgs(v,i.block);p.each(function(g){g.perform(d)}),v.perform(d)&&(n=!0)}else f&&f.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=Z(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?a.eachRawSeries(h):l?a.eachRawSeriesByType(l,h):u&&u(a,i).each(h);function h(f){var v=f.uid,c=s.set(v,o&&o.get(v)||ss({plan:_R,reset:SR,count:bR}));c.context={model:f,ecModel:a,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:n},n._pipe(f,c)}},r.prototype._createOverallStageTask=function(e,t,a,i){var n=this,o=t.overallTask=t.overallTask||ss({reset:dR});o.context={ecModel:a,api:i,overallReset:e.overallReset,scheduler:n};var s=o.agentStubMap,l=o.agentStubMap=Z(),u=e.seriesType,h=e.getTargetSeries,f=!0,v=!1,c="";de(!e.createOnAllSeries,c),u?a.eachRawSeriesByType(u,p):h?h(a,i).each(p):(f=!1,A(a.getSeries(),p));function p(d){var g=d.uid,y=l.set(g,s&&s.get(g)||(v=!0,ss({reset:gR,onDirty:mR})));y.context={model:d,overallProgress:f},y.agent=o,y.__block=f,n._pipe(d,y)}v&&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 wt(e)&&(e={overallReset:e,seriesType:wR(e)}),e.uid=bn("stageHandler"),t&&(e.visualType=t),e},r}();function dR(r){r.overallReset(r.ecModel,r.api,r.payload)}function gR(r){return r.overallProgress&&yR}function yR(){this.agent.dirty(),this.getDownstream().dirty()}function mR(){this.agent&&this.agent.dirty()}function _R(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function SR(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Rt(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?H(e,function(t,a){return d1(a)}):xR}var xR=d1(0);function d1(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 bR(r){return r.data.count()}function wR(r){Ru=null;try{r(hs,g1)}catch(e){}return Ru}var hs={},g1={},Ru;y1(hs,uc),y1(g1,S_),hs.eachSeriesByType=hs.eachRawSeriesByType=function(r){Ru=r},hs.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Ru=r.subType)};function y1(r,e){for(var t in e.prototype)r[t]=nr}var m1=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],TR={color:m1,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],m1]},_e="#B9B8CE",_1="#100C2A",Eu=function(){return{axisLine:{lineStyle:{color:_e}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},S1=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],x1={darkMode:!0,color:S1,backgroundColor:_1,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:_e}},textStyle:{color:_e},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:_e}},dataZoom:{borderColor:"#71708A",textStyle:{color:_e},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:_e}},timeline:{lineStyle:{color:_e},label:{color:_e},controlStyle:{color:_e,borderColor:_e}},calendar:{itemStyle:{color:_1},dayLabel:{color:_e},monthLabel:{color:_e},yearLabel:{color:_e}},timeAxis:Eu(),logAxis:Eu(),valueAxis:Eu(),categoryAxis:Eu(),line:{symbol:"circle"},graph:{color:S1},gauge:{title:{color:_e},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:_e},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};x1.categoryAxis.splitLine.show=!1;var AR=function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},a={},i={};if(ft(e)){var n=_r(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 h=!1,f=0;f<o.length;f++){var v=o[f],c=u.lastIndexOf(v);if(c>0&&c===u.length-v.length){var p=u.slice(0,c);p!=="data"&&(t.mainType=p,t[v.toLowerCase()]=l,h=!0)}}s.hasOwnProperty(u)&&(a[u]=l,h=!0),h||(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 h(l,o,"mainType")&&h(l,o,"subType")&&h(l,o,"index","componentIndex")&&h(l,o,"name")&&h(l,o,"id")&&h(u,n,"name")&&h(u,n,"dataIndex")&&h(u,n,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,i,n));function h(f,v,c,p){return f[c]==null||v[p||c]===f[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),CR={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendSymbol&&t.setVisual("legendSymbol",r.legendSymbol),!r.hasSymbolVisual)return;var a=r.get("symbol"),i=r.get("symbolSize"),n=r.get("symbolKeepAspect"),o=r.get("symbolRotate"),s=r.get("symbolOffset"),l=wt(a),u=wt(i),h=wt(o),f=wt(s),v=l||u||h||f,c=!l&&a?a:r.defaultSymbol,p=u?null:i,d=h?null:o,g=f?null:s;if(t.setVisual({legendSymbol:r.legendSymbol||c,symbol:c,symbolSize:p,symbolKeepAspect:n,symbolRotate:d,symbolOffset:g}),e.isSeriesFiltered(r))return;function y(m,_){var S=r.getRawValue(_),x=r.getDataParams(_);l&&m.setItemVisual(_,"symbol",a(S,x)),u&&m.setItemVisual(_,"symbolSize",i(S,x)),h&&m.setItemVisual(_,"symbolRotate",o(S,x)),f&&m.setItemVisual(_,"symbolOffset",s(S,x))}return{dataEach:v?y:null}}},DR={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function a(i,n){var o=i.getItemModel(n),s=o.getShallow("symbol",!0),l=o.getShallow("symbolSize",!0),u=o.getShallow("symbolRotate",!0),h=o.getShallow("symbolOffset",!0),f=o.getShallow("symbolKeepAspect",!0);s!=null&&i.setItemVisual(n,"symbol",s),l!=null&&i.setItemVisual(n,"symbolSize",l),u!=null&&i.setItemVisual(n,"symbolRotate",u),h!=null&&i.setItemVisual(n,"symbolOffset",h),f!=null&&i.setItemVisual(n,"symbolKeepAspect",f)}return{dataEach:t.hasItemOption?a:null}}};function Ac(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 fs(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 b1(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}}var vs=Math.PI*2,Ri=Ar.CMD,MR=["top","right","bottom","left"];function LR(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 IR(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 h=o*t+r,f=s*t+e;if(Math.abs(a-i)%vs<1e-4)return l[0]=h,l[1]=f,u-t;if(n){var v=a;a=pa(i),i=pa(v)}else a=pa(a),i=pa(i);a>i&&(i+=vs);var c=Math.atan2(s,o);if(c<0&&(c+=vs),c>=a&&c<=i||c+vs>=a&&c+vs<=i)return l[0]=h,l[1]=f,u-t;var p=t*Math.cos(a)+r,d=t*Math.sin(a)+e,g=t*Math.cos(i)+r,y=t*Math.sin(i)+e,m=(p-o)*(p-o)+(d-s)*(d-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=p,l[1]=d,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function ku(r,e,t,a,i,n,o,s){var l=i-r,u=n-e,h=t-r,f=a-e,v=Math.sqrt(h*h+f*f);h/=v,f/=v;var c=l*h+u*f,p=c/v;s&&(p=Math.min(Math.max(p,0),1)),p*=v;var d=o[0]=r+p*h,g=o[1]=e+p*f;return Math.sqrt((d-i)*(d-i)+(g-n)*(g-n))}function w1(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),h=o[1]=Math.min(Math.max(n,e),l);return Math.sqrt((u-i)*(u-i)+(h-n)*(h-n))}var pr=[];function PR(r,e,t){var a=w1(e.x,e.y,e.width,e.height,r.x,r.y,pr);return t.set(pr[0],pr[1]),a}function RR(r,e,t){for(var a=0,i=0,n=0,o=0,s,l,u=Infinity,h=e.data,f=r.x,v=r.y,c=0;c<h.length;){var p=h[c++];c===1&&(a=h[c],i=h[c+1],n=a,o=i);var d=u;switch(p){case Ri.M:n=h[c++],o=h[c++],a=n,i=o;break;case Ri.L:d=ku(a,i,h[c],h[c+1],f,v,pr,!0),a=h[c++],i=h[c++];break;case Ri.C:d=Mm(a,i,h[c++],h[c++],h[c++],h[c++],h[c],h[c+1],f,v,pr),a=h[c++],i=h[c++];break;case Ri.Q:d=Im(a,i,h[c++],h[c++],h[c],h[c+1],f,v,pr),a=h[c++],i=h[c++];break;case Ri.A:var g=h[c++],y=h[c++],m=h[c++],_=h[c++],S=h[c++],x=h[c++];c+=1;var b=!!(1-h[c++]);s=Math.cos(S)*m+g,l=Math.sin(S)*_+y,c<=1&&(n=s,o=l);var w=(f-g)*_/m+g;d=IR(g,y,_,S,S+x,b,w,v,pr),a=Math.cos(S+x)*m+g,i=Math.sin(S+x)*_+y;break;case Ri.R:n=a=h[c++],o=i=h[c++];var T=h[c++],C=h[c++];d=w1(n,o,T,C,f,v,pr);break;case Ri.Z:d=ku(a,i,n,o,f,v,pr,!0),a=n,i=o;break}d<u&&(u=d,t.set(pr[0],pr[1]))}return u}var dr=new nt,Pt=new nt,Gt=new nt,Ir=new nt,Pr=new nt;function T1(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||MR,s=a.getBoundingRect().clone();s.applyTransform(a.getComputedTransform());var l=Infinity,u=i.anchor,h=r.getComputedTransform(),f=h&&on([],h),v=e.get("length2")||0;u&&Gt.copy(u);for(var c=0;c<o.length;c++){var p=o[c];LR(p,0,s,dr,Ir),nt.scaleAndAdd(Pt,dr,Ir,v),Pt.transform(f);var d=r.getBoundingRect(),g=u?u.distance(Pt):r instanceof ct?RR(Pt,r.path,Gt):PR(Pt,d,Gt);g<l&&(l=g,Pt.transform(h),Gt.transform(h),Gt.toArray(n[0]),Pt.toArray(n[1]),dr.toArray(n[2]))}A1(n,e.get("minTurnAngle")),t.setShape({points:n})}}}var Ou=[],Se=new nt;function A1(r,e){if(e<=180&&e>0){e=e/180*Math.PI,dr.fromArray(r[0]),Pt.fromArray(r[1]),Gt.fromArray(r[2]),nt.sub(Ir,dr,Pt),nt.sub(Pr,Gt,Pt);var t=Ir.len(),a=Pr.len();if(!(t<.001||a<.001)){Ir.scale(1/t),Pr.scale(1/a);var i=Ir.dot(Pr),n=Math.cos(e);if(n<i){var o=ku(Pt.x,Pt.y,Gt.x,Gt.y,dr.x,dr.y,Ou,!1);Se.fromArray(Ou),Se.scaleAndAdd(Pr,o/Math.tan(Math.PI-e));var s=Gt.x!==Pt.x?(Se.x-Pt.x)/(Gt.x-Pt.x):(Se.y-Pt.y)/(Gt.y-Pt.y);if(isNaN(s))return;s<0?nt.copy(Se,Pt):s>1&&nt.copy(Se,Gt),Se.toArray(r[1])}}}}function ER(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,dr.fromArray(r[0]),Pt.fromArray(r[1]),Gt.fromArray(r[2]),nt.sub(Ir,Pt,dr),nt.sub(Pr,Gt,Pt);var a=Ir.len(),i=Pr.len();if(!(a<.001||i<.001)){Ir.scale(1/a),Pr.scale(1/i);var n=Ir.dot(e),o=Math.cos(t);if(n<o){var s=ku(Pt.x,Pt.y,Gt.x,Gt.y,dr.x,dr.y,Ou,!1);Se.fromArray(Ou);var l=Math.PI/2,u=Math.acos(Pr.dot(e)),h=l+u-t;if(h>=l)nt.copy(Se,Gt);else{Se.scaleAndAdd(Pr,s/Math.tan(Math.PI/2-h));var f=Gt.x!==Pt.x?(Se.x-Pt.x)/(Gt.x-Pt.x):(Se.y-Pt.y)/(Gt.y-Pt.y);if(isNaN(f))return;f<0?nt.copy(Se,Pt):f>1&&nt.copy(Se,Gt)}Se.toArray(r[1])}}}}function C1(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 kR(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=sa(a[0],a[1]),n=sa(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=_l([],a[1],a[0],o/i),l=_l([],a[1],a[2],o/n),u=_l([],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 h=1;h<a.length;h++)r.lineTo(a[h][0],a[h][1])}function Cc(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<Bo.length;l++){var u=Bo[l],h=e[u],f=u==="normal";if(h){var v=h.get("show"),c=f?s:vt(i.states[u]&&i.states[u].ignore,s);if(c||!vt(v,o)){var p=f?a:a&&a.states.normal;p&&(p.ignore=!0);continue}a||(a=new Me,r.setTextGuideLine(a),!f&&(s||!o)&&C1(a,!0,"normal",e.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),C1(a,!1,u,h)}}if(a){X(a.style,t),a.style.fill=null;var d=n.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=d||!1,a.buildPath=kR}}function Dc(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},a=0;a<Ee.length;a++){var i=Ee[a];t[i]=r.getModel([i,e])}return t}function OR(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 h=s?new iu(o,n):null;e.push({label:i,labelLine:a.labelLine,rect:u,localRect:o,obb:h,priority:a.priority,defaultAttr:a.defaultAttr,layoutOption:a.computedLayoutOption,axisAligned:s,transform:n})}}return e}function D1(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,h=0,f=0;f<o;f++){var v=r[f],c=v.rect;l=c[e]-s,l<0&&(c[e]-=l,v.label[e]-=l,u=!0);var p=Math.max(-l,0);h+=p,s=c[e]+c[t]}h>0&&n&&x(-h/o,0,o);var d=r[0],g=r[o-1],y,m;_(),y<0&&b(-y,.8),m<0&&b(m,.8),_(),S(y,m,1),S(m,y,-1),_(),y<0&&w(-y),m<0&&w(m);function _(){y=d.rect[e]-a,m=i-g.rect[e]-g.rect[t]}function S(T,C,M){if(T<0){var D=Math.min(C,-T);if(D>0){x(D*M,0,o);var L=D+T;L<0&&b(-L*M,1)}else b(-T*M,1)}}function x(T,C,M){T!==0&&(u=!0);for(var D=C;D<M;D++){var L=r[D],I=L.rect;I[e]+=T,L.label[e]+=T}}function b(T,C){for(var M=[],D=0,L=1;L<o;L++){var I=r[L-1].rect,P=Math.max(r[L].rect[e]-I[e]-I[t],0);M.push(P),D+=P}if(!!D){var R=Math.min(Math.abs(T)/D,C);if(T>0)for(var L=0;L<o-1;L++){var k=M[L]*R;x(k,0,L+1)}else for(var L=o-1;L>0;L--){var k=M[L-1]*R;x(-k,L,o)}}}function w(T){var C=T<0?-1:1;T=Math.abs(T);for(var M=Math.ceil(T/(o-1)),D=0;D<o-1;D++)if(C>0?x(M,0,D+1):x(-M,o-D-1,o),T-=M,T<=0)return}return u}function NR(r,e,t,a){return D1(r,"x","width",e,t,a)}function M1(r,e,t,a){return D1(r,"y","height",e,t,a)}function BR(r){var e=[];r.sort(function(d,g){return g.priority-d.priority});var t=new ot(0,0,0,0);function a(d){if(!d.ignore){var g=d.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}d.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,h=n.labelLine;t.copy(n.rect),t.width-=.1,t.height-=.1,t.x+=.05,t.y+=.05;for(var f=n.obb,v=!1,c=0;c<e.length;c++){var p=e[c];if(!!t.intersect(p.rect)){if(o&&p.axisAligned){v=!0;break}if(p.obb||(p.obb=new iu(p.localRect,p.transform)),f||(f=new iu(s,l)),f.intersect(p.obb)){v=!0;break}}}v?(a(u),h&&a(h)):(u.attr("ignore",n.defaultAttr.ignore),h&&h.attr("ignore",n.defaultAttr.labelGuideIgnore),e.push(n))}}function VR(r){if(r){for(var e=[],t=0;t<r.length;t++)e.push(r[t].slice());return e}}function zR(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:VR(a&&a.shape.points)}}var L1=["align","verticalAlign","width","height","fontSize"],Oe=new Ur,Mc=At(),FR=At();function Nu(r,e,t){for(var a=0;a<t.length;a++){var i=t[a];e[i]!=null&&(r[i]=e[i])}}var Bu=["x","y","rotation"],GR=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(),h=i.getBoundingRect().plain();ot.applyTransform(h,h,u),u?Oe.setLocalTransform(u):(Oe.x=Oe.y=Oe.rotation=Oe.originX=Oe.originY=0,Oe.scaleX=Oe.scaleY=1);var f=i.__hostTarget,v;if(f){v=f.getBoundingRect().plain();var c=f.getComputedTransform();ot.applyTransform(v,v,c)}var p=v&&f.getTextGuideLine();this._labelList.push({label:i,labelLine:p,seriesModel:a,dataIndex:e,dataType:t,layoutOption:n,computedLayoutOption:null,rect:h,hostRect:v,priority:v?v.width*v.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:p&&p.ignore,x:Oe.x,y:Oe.y,scaleX:Oe.scaleX,scaleY:Oe.scaleY,rotation:Oe.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");!(wt(i)||St(i).length)||e.group.traverse(function(n){if(n.ignore)return!0;var o=n.getTextContent(),s=Q(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(){T1(_,S)}}for(var n=0;n<this._labelList.length;n++){var o=this._labelList[n],s=o.label,l=s.__hostTarget,u=o.defaultAttr,h=void 0;typeof o.layoutOption=="function"?h=o.layoutOption(zR(o,l)):h=o.layoutOption,h=h||{},o.computedLayoutOption=h;var f=Math.PI/180;l&&l.setTextConfig({local:!1,position:h.x!=null||h.y!=null?null:u.attachedPos,rotation:h.rotate!=null?h.rotate*f:u.attachedRot,offset:[h.dx||0,h.dy||0]});var v=!1;if(h.x!=null?(s.x=F(h.x,t),s.setStyle("x",0),v=!0):(s.x=u.x,s.setStyle("x",u.style.x)),h.y!=null?(s.y=F(h.y,a),s.setStyle("y",0),v=!0):(s.y=u.y,s.setStyle("y",u.style.y)),h.labelLinePoints){var c=l.getTextGuideLine();c&&(c.setShape({points:h.labelLinePoints}),v=!1)}var p=Mc(s);p.needsUpdateLabelLine=v,s.rotation=h.rotate!=null?h.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var d=0;d<L1.length;d++){var g=L1[d];s.setStyle(g,h[g]!=null?h[g]:u.style[g])}if(h.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=OR(this._labelList),n=kt(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=kt(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});NR(n,0,t),M1(o,0,a);var s=kt(i,function(l){return l.layoutOption.hideOverlap});BR(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)return!0;var s=!i,l=o.getTextContent();!s&&l&&(s=Mc(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,a),n&&e._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(e,t){var a=e.getTextContent(),i=Q(e),n=i.dataIndex;if(a&&n!=null){var o=t.getData(i.dataType),s=o.getItemModel(n),l={},u=o.getItemVisual(n,"style"),h=o.getVisual("drawType");l.stroke=u[h];var f=s.getModel("labelLine");Cc(e,Dc(s),l),T1(e,f)}},r.prototype._animateLabels=function(e,t){var a=e.getTextContent(),i=e.getTextGuideLine();if(a&&!a.ignore&&!a.invisible&&!e.disableLabelAnimation&&!Sn(e)){var n=Mc(a),o=n.oldLayout,s=Q(e),l=s.dataIndex,u={x:a.x,y:a.y,rotation:a.rotation},h=t.getData(s.dataType);if(o){a.attr(o);var v=e.prevStates;v&&(lt(v,"select")>=0&&a.attr(n.oldLayoutSelect),lt(v,"emphasis")>=0&&a.attr(n.oldLayoutEmphasis)),dt(a,u,t,l)}else if(a.attr(u),!Ko(a).valueAnimation){var f=vt(a.style.opacity,1);a.style.opacity=0,Nt(a,{style:{opacity:f}},t,l)}if(n.oldLayout=u,a.states.select){var c=n.oldLayoutSelect={};Nu(c,u,Bu),Nu(c,a.states.select,Bu)}if(a.states.emphasis){var p=n.oldLayoutEmphasis={};Nu(p,u,Bu),Nu(p,a.states.emphasis,Bu)}G0(a,l,h,t,t)}if(i&&!i.ignore&&!i.invisible){var n=FR(i),o=n.oldLayout,d={points:i.shape.points};o?(i.attr({shape:o}),dt(i,{shape:d},t)):(i.setShape(d),i.style.strokePercent=0,Nt(i,{style:{strokePercent:1}},t)),n.oldLayout=d}},r}();function I1(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 In(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=i.selected,u=0;u<l.length;u++)if(l[u].seriesIndex===s){var h=o.getData(),f=ni(h,i.fromActionPayload);t.trigger(n,{type:n,seriesId:o.id,name:B(f)?h.getName(f[0]):h.getName(f),selected:V({},o.option.selectedMap)})}})}function HR(r,e,t){r.on("selectchanged",function(a){var i=t.getModel();a.isFromClick?(In("map","selectchanged",e,i,a),In("pie","selectchanged",e,i,a)):a.fromAction==="select"?(In("map","selected",e,i,a),In("pie","selected",e,i,a)):a.fromAction==="unselect"&&(In("map","unselected",e,i,a),In("pie","unselected",e,i,a))})}function Pn(r,e,t){for(var a;r&&!(e(r)&&(a=r,t));)r=r.__hostTarget||r.parent;return a}var WR=Math.round(Math.random()*9),P1=function(){function r(){this._id="__ec_inner_"+WR++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var a=this._guard(e);return typeof Object.defineProperty=="function"?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}(),UR=ct.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()}}),YR=ct.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()}}),XR=ct.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),h=Math.cos(u)*o,f=Math.sin(u),v=Math.cos(u),c=o*.6,p=o*.7;r.moveTo(t-h,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+h-f*c,l+s+v*c,t,a-p,t,a),r.bezierCurveTo(t,a-p,t-h+f*c,l+s+v*c,t-h,l+s),r.closePath()}}),$R=ct.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()}}),ZR={line:Qt,rect:pt,roundRect:pt,square:pt,circle:lr,diamond:YR,pin:XR,arrow:$R,triangle:UR},qR={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}},Vu={};A(ZR,function(r,e){Vu[e]=new r});var KR=ct.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var a=Vy(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=Vu[a];i||(a="rect",i=Vu[a]),qR[a](e.x,e.y,e.width,e.height,i.shape),i.buildPath(r,i.shape,t)}}});function QR(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 Yt(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=D0(r.slice(8),new ot(e,t,a,i),o?"center":"cover"):r.indexOf("path://")===0?l=lu(r.slice(7),{},new ot(e,t,a,i),o?"center":"cover"):l=new KR({shape:{symbolType:r,x:e,y:t,width:a,height:i}}),l.__isEmptyBrush=s,l.setColor=QR,n&&l.setColor(n),l}function JR(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=isNaN(a)?0:a,i=isNaN(i)?1:i,n=isNaN(n)?0:n,o=isNaN(o)?0:o;var s=r.createLinearGradient(a,n,i,o);return s}function jR(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);var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Lc(r,e,t){for(var a=e.type==="radial"?jR(r,e,t):JR(r,e,t),i=e.colorStops,n=0;n<i.length;n++)a.addColorStop(i[n].offset,i[n].color);return a}function R1(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 Ic(r,e){return!r||r==="solid"||!(e>0)?null:(e=e||1,r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:df(r)?[r]:B(r)?r:null)}var tE=new Ar(!0);function zu(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function Fu(r){var e=r.fill;return e!=null&&e!=="none"}function E1(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 k1(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 Pc(r,e,t){var a=vv(e.image,e.__image,t);if(Ol(a)){var i=r.createPattern(a,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i.setTransform){var n=new DOMMatrix;n.rotateSelf(0,0,(e.rotation||0)/Math.PI*180),n.scaleSelf(e.scaleX||1,e.scaleY||1),n.translateSelf(e.x||0,e.y||0),i.setTransform(n)}return i}}function eE(r,e,t,a){var i=zu(t),n=Fu(t),o=t.strokePercent,s=o<1,l=!e.path;(!e.silent||s)&&l&&e.createPathProxy();var u=e.path||tE;if(!a){var h=t.fill,f=t.stroke,v=n&&!!h.colorStops,c=i&&!!f.colorStops,p=n&&!!h.image,d=i&&!!f.image,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0;(v||c)&&(S=e.getBoundingRect()),v&&(g=e.__dirty?Lc(r,h,S):e.__canvasFillGradient,e.__canvasFillGradient=g),c&&(y=e.__dirty?Lc(r,f,S):e.__canvasStrokeGradient,e.__canvasStrokeGradient=y),p&&(m=e.__dirty||!e.__canvasFillPattern?Pc(r,h,e):e.__canvasFillPattern,e.__canvasFillPattern=m),d&&(_=e.__dirty||!e.__canvasStrokePattern?Pc(r,f,e):e.__canvasStrokePattern,e.__canvasStrokePattern=m),v?r.fillStyle=g:p&&(m?r.fillStyle=m:n=!1),c?r.strokeStyle=y:d&&(_?r.strokeStyle=_:i=!1)}var x=t.lineDash&&t.lineWidth>0&&Ic(t.lineDash,t.lineWidth),b=t.lineDashOffset,w=!!r.setLineDash,T=e.getGlobalScale();if(u.setScale(T[0],T[1],e.segmentIgnoreThreshold),x){var C=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;C&&C!==1&&(x=H(x,function(D){return D/C}),b/=C)}var M=!0;(l||e.__dirty&ct.SHAPE_CHANGED_BIT||x&&!w&&i)&&(u.setDPR(r.dpr),s?u.setContext(null):(u.setContext(r),M=!1),u.reset(),x&&!w&&(u.setLineDash(x),u.setLineDashOffset(b)),e.buildPath(u,e.shape,a),u.toStatic(),e.pathUpdated()),M&&u.rebuildPath(r,s?o:1),x&&w&&(r.setLineDash(x),r.lineDashOffset=b),a||(t.strokeFirst?(i&&k1(r,t),n&&E1(r,t)):(n&&E1(r,t),i&&k1(r,t))),x&&w&&r.setLineDash([])}function rE(r,e,t){var a=e.__image=vv(t.image,e.__image,e,e.onload);if(!(!a||!Ol(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,h=t.sy||0;r.drawImage(a,u,h,t.sWidth,t.sHeight,i,n,o,s)}else if(t.sx&&t.sy){var u=t.sx,h=t.sy,f=o-u,v=s-h;r.drawImage(a,u,h,f,v,i,n,o,s)}else r.drawImage(a,i,n,o,s)}}function aE(r,e,t){var a=t.text;if(a!=null&&(a+=""),a){r.font=t.font||ri,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var i=void 0;if(r.setLineDash){var n=t.lineDash&&t.lineWidth>0&&Ic(t.lineDash,t.lineWidth),o=t.lineDashOffset;if(n){var s=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;s&&s!==1&&(n=H(n,function(l){return l/s}),o/=s),r.setLineDash(n),r.lineDashOffset=o,i=!0}}t.strokeFirst?(zu(t)&&r.strokeText(a,t.x,t.y),Fu(t)&&r.fillText(a,t.x,t.y)):(Fu(t)&&r.fillText(a,t.x,t.y),zu(t)&&r.strokeText(a,t.x,t.y)),i&&r.setLineDash([])}}var O1=["shadowBlur","shadowOffsetX","shadowOffsetY"],N1=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function B1(r,e,t,a,i){var n=!1;if(!a&&(t=t||{},e===t))return!1;if(a||e.opacity!==t.opacity){n||(Ie(r,i),n=!0);var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?ui.opacity:o}(a||e.blend!==t.blend)&&(n||(Ie(r,i),n=!0),r.globalCompositeOperation=e.blend||ui.blend);for(var s=0;s<O1.length;s++){var l=O1[s];(a||e[l]!==t[l])&&(n||(Ie(r,i),n=!0),r[l]=r.dpr*(e[l]||0))}return(a||e.shadowColor!==t.shadowColor)&&(n||(Ie(r,i),n=!0),r.shadowColor=e.shadowColor||ui.shadowColor),n}function V1(r,e,t,a,i){var n=cs(e,i.inHover),o=a?null:t&&cs(t,i.inHover)||{};if(n===o)return!1;var s=B1(r,n,o,a,i);if((a||n.fill!==o.fill)&&(s||(Ie(r,i),s=!0),r.fillStyle=n.fill),(a||n.stroke!==o.stroke)&&(s||(Ie(r,i),s=!0),r.strokeStyle=n.stroke),(a||n.opacity!==o.opacity)&&(s||(Ie(r,i),s=!0),r.globalAlpha=n.opacity==null?1:n.opacity),e.hasStroke()){var l=n.lineWidth,u=l/(n.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1);r.lineWidth!==u&&(s||(Ie(r,i),s=!0),r.lineWidth=u)}for(var h=0;h<N1.length;h++){var f=N1[h],v=f[0];(a||n[v]!==o[v])&&(s||(Ie(r,i),s=!0),r[v]=n[v]||f[1])}return s}function iE(r,e,t,a,i){return B1(r,cs(e,i.inHover),t&&cs(t,i.inHover),a,i)}function z1(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 nE(r,e,t){for(var a=!1,i=0;i<r.length;i++){var n=r[i];a=a||n.isZeroArea(),z1(e,n),e.beginPath(),n.buildPath(e,n.shape),e.clip()}t.allClipped=a}function oE(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 F1=1,G1=2,H1=3,W1=4;function sE(r){var e=Fu(r),t=zu(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 Ie(r,e){e.batchFill&&r.fill(),e.batchStroke&&r.stroke(),e.batchFill="",e.batchStroke=""}function cs(r,e){return e&&r.__hoverStyle||r.style}function U1(r,e){xa(r,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function xa(r,e,t,a){var i=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~We.REDARAW_BIT,e.__isRendered=!1;return}var n=e.__clipPaths,o=t.prevElClipPaths,s=!1,l=!1;if((!o||R1(n,o))&&(o&&o.length&&(Ie(r,t),r.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),n&&n.length&&(Ie(r,t),r.save(),nE(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 h=e instanceof ct&&e.autoBatch&&sE(e.style);s||oE(i,u.transform)?(Ie(r,t),z1(r,e)):h||Ie(r,t);var f=cs(e,t.inHover);e instanceof ct?(t.lastDrawType!==F1&&(l=!0,t.lastDrawType=F1),V1(r,e,u,l,t),(!h||!t.batchFill&&!t.batchStroke)&&r.beginPath(),eE(r,e,f,h),h&&(t.batchFill=f.fill||"",t.batchStroke=f.stroke||"")):e instanceof gi?(t.lastDrawType!==H1&&(l=!0,t.lastDrawType=H1),V1(r,e,u,l,t),aE(r,e,f)):e instanceof Zt?(t.lastDrawType!==G1&&(l=!0,t.lastDrawType=G1),iE(r,e,u,l,t),rE(r,e,f)):e instanceof nu&&(t.lastDrawType!==W1&&(l=!0,t.lastDrawType=W1),lE(r,e,t)),h&&a&&Ie(r,t),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function lE(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(),xa(r,l,n,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),n.prevEl=l}for(var u=0,h=i.length;u<h;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),xa(r,l,n,u===h-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),n.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var Rc=new P1,Y1=new po(100),X1=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function ps(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),a=e.getZr(),i=a.painter.type==="svg";r.dirty&&Rc.delete(r);var n=Rc.get(r);if(n)return n;var o=X(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,Rc.set(r,s),r.dirty=!1,s;function l(u){for(var h=[t],f=!0,v=0;v<X1.length;++v){var c=o[X1[v]],p=typeof c;if(c!=null&&!B(c)&&p!=="string"&&p!=="number"&&p!=="boolean"){f=!1;break}h.push(c)}var d;if(f){d=h.join(",")+(i?"-svg":"");var g=Y1.get(d);g&&(i?u.svgElement=g:u.image=g)}var y=Z1(o.dashArrayX),m=uE(o.dashArrayY),_=$1(o.symbol),S=hE(y),x=q1(m),b=!i&&rn(),w=i&&a.painter.createSVGElement("g"),T=M(),C;b&&(b.width=T.width*t,b.height=T.height*t,C=b.getContext("2d")),D(),f&&Y1.put(d,b||w),u.image=b,u.svgElement=w,u.svgWidth=T.width,u.svgHeight=T.height;function M(){for(var L=1,I=0,P=S.length;I<P;++I)L=um(L,S[I]);for(var R=1,I=0,P=_.length;I<P;++I)R=um(R,_[I].length);L*=R;var k=x*S.length*_.length;return{width:Math.max(1,Math.min(L,o.maxTileWidth)),height:Math.max(1,Math.min(k,o.maxTileHeight))}}function D(){C&&(C.clearRect(0,0,b.width,b.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,b.width,b.height)));for(var L=0,I=0;I<m.length;++I)L+=m[I];if(L<=0)return;for(var P=-x,R=0,k=0,N=0;P<T.height;){if(R%2==0){for(var O=k/2%_.length,G=0,z=0,W=0;G<T.width*2;){for(var K=0,I=0;I<y[N].length;++I)K+=y[N][I];if(K<=0)break;if(z%2==0){var _t=(1-o.symbolSize)*.5,mt=G+y[N][z]*_t,ut=P+m[R]*_t,tt=y[N][z]*o.symbolSize,bt=m[R]*o.symbolSize,it=W/2%_[O].length;Dt(mt,ut,tt,bt,_[O][it])}G+=y[N][z],++W,++z,z===y[N].length&&(z=0)}++N,N===y.length&&(N=0)}P+=m[R],++k,++R,R===m.length&&(R=0)}function Dt(Vt,Kt,zt,le,we){var ue=i?1:t,Vr=Yt(we,Vt*ue,Kt*ue,zt*ue,le*ue,o.color,o.symbolKeepAspect);i?w.appendChild(a.painter.paintOne(Vr)):U1(C,Vr)}}}}function $1(r){if(!r||r.length===0)return[["rect"]];if(typeof r=="string")return[[r]];for(var e=!0,t=0;t<r.length;++t)if(typeof r[t]!="string"){e=!1;break}if(e)return $1([r]);for(var a=[],t=0;t<r.length;++t)typeof r[t]=="string"?a.push([r[t]]):a.push(r[t]);return a}function Z1(r){if(!r||r.length===0)return[[0,0]];if(typeof r=="number"){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,a=0;a<r.length;++a)if(typeof r[a]!="number"){t=!1;break}if(t)return Z1([r]);for(var i=[],a=0;a<r.length;++a)if(typeof r[a]=="number"){var e=Math.ceil(r[a]);i.push([e,e])}else{var e=H(r[a],function(s){return Math.ceil(s)});e.length%2==1?i.push(e.concat(e)):i.push(e)}return i}function uE(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(typeof r=="number"){var e=Math.ceil(r);return[e,e]}var t=H(r,function(a){return Math.ceil(a)});return r.length%2?t.concat(t):t}function hE(r){return H(r,function(e){return q1(e)})}function q1(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2==1?e*2:e}function fE(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=ps(s,e)}});var i=a.getVisual("decal");if(i){var n=a.getVisual("style");n.decal=ps(i,e)}}})}function K1(r){if(ft(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 Ec,Gu={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"},Q1=St(Gu),Hu={"alignment-baseline":"textBaseline","stop-color":"stopColor"},J1=St(Hu),vE=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var a=K1(e);if(!a)throw new Error("Illegal svg");this._defsUsePending=[];var i=new q;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),Ne(a,i,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,i,n,null,!1,!1),u=u.nextSibling;dE(this._defs,this._defsUsePending),this._defsUsePending=[];var h,f;if(o){var v=ba(o);v.length>=4&&(h={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(h&&s!=null&&l!=null&&(f=oS(h,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var c=i;i=new q,i.add(c),c.scaleX=c.scaleY=f.scale,c.x=f.x,c.y=f.y}return!t.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new pt({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:h,viewBoxTransform:f,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 h=Ec[s];if(h&&Y(Ec,s)){l=h.call(this,e,t);var f=e.getAttribute("name");if(f){var v={name:f,namedFrom:null,svgNodeTagLower:s,el:l};a.push(v),s==="g"&&(u=v)}else i&&a.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});t.add(l)}}var c=j1[s];if(c&&Y(j1,s)){var p=c.call(this,e),d=e.getAttribute("id");d&&(this._defs[d]=p)}}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 gi({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ke(t,a),Ne(e,a,this._defsUsePending,!1,!1),cE(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(){Ec={g:function(e,t){var a=new q;return Ke(t,a),Ne(e,a,this._defsUsePending,!1,!1),a},rect:function(e,t){var a=new pt;return Ke(t,a),Ne(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 lr;return Ke(t,a),Ne(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 Qt;return Ke(t,a),Ne(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 Jl;return Ke(t,a),Ne(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=rS(a));var n=new me({shape:{points:i||[]},silent:!0});return Ke(t,n),Ne(e,n,this._defsUsePending,!1,!1),n},polyline:function(e,t){var a=e.getAttribute("points"),i;a&&(i=rS(a));var n=new Me({shape:{points:i||[]},silent:!0});return Ke(t,n),Ne(e,n,this._defsUsePending,!1,!1),n},image:function(e,t){var a=new Zt;return Ke(t,a),Ne(e,a,this._defsUsePending,!1,!1),a.setStyle({image:e.getAttribute("xlink: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 q;return Ke(t,s),Ne(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 q;return Ke(t,s),Ne(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=m0(a);return Ke(t,i),Ne(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),r}(),j1={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 Uo(e,t,a,i);return tS(r,n),eS(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 C0(e,t,a);return tS(r,i),eS(r,i),i}};function tS(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function eS(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={};nS(t,n,n);var o=n.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:o})}t=t.nextSibling}}function Ke(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),X(e.__inheritedStyle,r.__inheritedStyle))}function rS(r){for(var e=ba(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 Ne(r,e,t,a,i){var n=e,o=n.__inheritedStyle=n.__inheritedStyle||{},s={};r.nodeType===1&&(mE(r,e),nS(r,o,s),a||_E(r,o,s)),n.style=n.style||{},o.fill!=null&&(n.style.fill=aS(n,"fill",o.fill,t)),o.stroke!=null&&(n.style.stroke=aS(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=H(ba(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(n.invisible=!0),o.display==="none"&&(n.ignore=!0),n.z=-1e4,n.z2=-1e3}function cE(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 pE=/^url\(\s*#(.*?)\)/;function aS(r,e,t,a){var i=t&&t.match(pE);if(i){var n=Ha(i[1]);a.push([r,e,n]);return}return t==="none"&&(t=null),t}function dE(r,e){for(var t=0;t<e.length;t++){var a=e[t];a[0].style[a[1]]=r[a[2]]}}var gE=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function ba(r){return r.match(gE)||[]}var yE=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g;function mE(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var a=[],i=null;t.replace(yE,function(u,h,f){return a.push(h,f),""});for(var n=a.length-1;n>0;n-=2){var o=a[n],s=a[n-1],l=void 0;switch(i=i||ze(),s){case"translate":l=ba(o),yr(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":l=ba(o),If(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":l=ba(o),qa(i,i,-parseFloat(l[0])/180*Math.PI);break;case"skew":l=ba(o),console.warn("Skew transform is not supported yet");break;case"matrix":l=ba(o),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 iS=/([^\s:;]+)\s*:\s*([^:;]+)/g;function nS(r,e,t){var a=r.getAttribute("style");if(!!a){iS.lastIndex=0;for(var i;(i=iS.exec(a))!=null;){var n=i[1],o=Y(Gu,n)?Gu[n]:null;o&&(e[o]=i[2]);var s=Y(Hu,n)?Hu[n]:null;s&&(t[s]=i[2])}}}function _E(r,e,t){for(var a=0;a<Q1.length;a++){var i=Q1[a],n=r.getAttribute(i);n!=null&&(e[Gu[i]]=n)}for(var a=0;a<J1.length;a++){var i=J1[a],n=r.getAttribute(i);n!=null&&(t[Hu[i]]=n)}}function oS(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 SE(r,e){var t=new vE;return t.parse(r,e)}var xE=1e-8;function sS(r,e){return Math.abs(r-e)<xE}function Ei(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+=Zr(i[0],i[1],o[0],o[1],e,t),i=o}var s=r[0];return(!sS(i[0],s[0])||!sS(i[1],s[1]))&&(a+=Zr(i[0],i[1],s[0],s[1],e,t)),a!==0}var bE=[],lS=function(){function r(e){this.name=e}return r.prototype.getCenter=function(){},r}(),uS=function(r){E(e,r);function e(t,a,i){var n=r.call(this,t)||this;if(n.type="geoJSON",n.geometries=a,i)i=[i[0],i[1]];else{var o=n.getBoundingRect();i=[o.x+o.width/2,o.y+o.height/2]}return n._center=i,n}return e.prototype.getBoundingRect=function(){var t=this._rect;if(t)return t;for(var a=Number.MAX_VALUE,i=[a,a],n=[-a,-a],o=[],s=[],l=this.geometries,u=0;u<l.length;u++)if(l[u].type==="polygon"){var h=l[u].exterior;wv(h,o,s),Xa(i,i,o),$a(n,n,s)}return u===0&&(i[0]=i[1]=n[0]=n[1]=0),this._rect=new ot(i[0],i[1],n[0]-i[0],n[1]-i[1])},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++)if(i[n].type==="polygon"){var s=i[n].exterior,l=i[n].interiors;if(Ei(s,t[0],t[1])){for(var u=0;u<(l?l.length:0);u++)if(Ei(l[u],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 ot(t,a,i,n),u=o.calculateTransform(l),h=this.geometries,f=0;f<h.length;f++)if(h[f].type==="polygon"){for(var v=h[f].exterior,c=h[f].interiors,p=0;p<v.length;p++)re(v[p],v[p],u);for(var d=0;d<(c?c.length:0);d++)for(var p=0;p<c[d].length;p++)re(c[d][p],c[d][p],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.prototype.getCenter=function(){return this._center},e.prototype.setCenter=function(t){this._center=t},e}(lS),wE=function(r){E(e,r);function e(t,a){var i=r.call(this,t)||this;return i.type="geoSVG",i._elOnlyForCalculate=a,i}return e.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this._calculateCenter()),t},e.prototype._calculateCenter=function(){for(var t=this._elOnlyForCalculate,a=t.getBoundingRect(),i=[a.x+a.width/2,a.y+a.height/2],n=nn(bE),o=t;o&&!o.isGeoSVGGraphicRoot;)Za(n,o.getLocalTransform(),n),o=o.parent;return on(n,n),re(i,i,n),i},e}(lS),TE=Z(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),AE=function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=Z(),this._freedGraphics=[],this._mapName=e,this._parsedXML=K1(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=DE(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&&SE(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},a=t.root,de(a!=null)}catch(g){throw new Error(`Invalid svg format
`+g.message)}var i=new q;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,h=void 0,f=void 0,v=void 0;if(n!=null?(u=0,f=n):s&&(u=s.x,f=s.width),o!=null?(h=0,v=o):s&&(h=s.y,v=s.height),u==null||h==null){var c=a.getBoundingRect();u==null&&(u=c.x,f=c.width),h==null&&(h=c.y,v=c.height)}l=this._boundingRect=new ot(u,h,f,v)}if(s){var p=oS(s,l);a.scaleX=a.scaleY=p.scale,a.x=p.x,a.y=p.y}i.setClipPath(new pt({shape:l.plain()}));var d=[];return A(t.named,function(g){TE.get(g.svgNodeTagLower)!=null&&(d.push(g),CE(g.el))}),{root:i,boundingRect:l,named:d}},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 CE(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function DE(r){var e=[],t=Z();return A(r,function(a){if(a.namedFrom==null){var i=new wE(a.name,a.el);e.push(i),t.set(a.name,i)}}),{regions:e,regionsMap:t}}function ME(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;t==null&&(t=1024);for(var a=e.features,i=0;i<a.length;i++){var n=a[i],o=n.geometry;if(o.type==="Polygon")for(var s=o.coordinates,l=0;l<s.length;l++)s[l]=hS(s[l],o.encodeOffsets[l],t);else if(o.type==="MultiPolygon")for(var s=o.coordinates,l=0;l<s.length;l++)for(var u=s[l],h=0;h<u.length;h++)u[h]=hS(u[h],o.encodeOffsets[l][h],t)}return e.UTF8Encoding=!1,e}function hS(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 LE(r,e){return r=ME(r),H(kt(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var a=t.properties,i=t.geometry,n=[];if(i.type==="Polygon"){var o=i.coordinates;n.push({type:"polygon",exterior:o[0],interiors:o.slice(1)})}if(i.type==="MultiPolygon"){var o=i.coordinates;A(o,function(u){u[0]&&n.push({type:"polygon",exterior:u[0],interiors:u.slice(1)})})}var s=new uS(a[e||"name"],n,a.cp);return s.properties=a,s})}for(var kc=[126,25],ki=[[[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]]],Oi=0;Oi<ki.length;Oi++)for(var Rn=0;Rn<ki[Oi].length;Rn++)ki[Oi][Rn][0]/=10.5,ki[Oi][Rn][1]/=-10.5/.75,ki[Oi][Rn][0]+=kc[0],ki[Oi][Rn][1]+=kc[1];function IE(r,e){r==="china"&&e.push(new uS("\u5357\u6D77\u8BF8\u5C9B",H(ki,function(t){return{type:"polygon",exterior:t}}),kc))}var PE={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function RE(r,e){if(r==="china"){var t=PE[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 EE={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function kE(r,e){if(r==="world"){var t=EE[e.name];if(t){var a=[t[0],t[1]];e.setCenter(a)}}}var OE=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function NE(r,e){r==="china"&&e.name==="\u53F0\u6E7E"&&e.geometries.push({type:"polygon",exterior:OE[0]})}var BE="name",VE=function(){function r(e,t,a){this.type="geoJSON",this._parsedMap=Z(),this._mapName=e,this._specialAreas=a,this._geoJSON=FE(t)}return r.prototype.load=function(e,t){t=t||BE;var a=this._parsedMap.get(t);if(!a){var i=this._parseToRegions(t);a=this._parsedMap.set(t,{regions:i,boundingRect:zE(i)})}var n=Z(),o=[];return A(a.regions,function(s){var l=s.name;e&&e.hasOwnProperty(l)&&(s=s.cloneShallow(l=e[l])),o.push(s),n.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new ot(0,0,0,0),regionsMap:n}},r.prototype._parseToRegions=function(e){var t=this._mapName,a=this._geoJSON,i;try{i=a?LE(a,e):[]}catch(n){throw new Error(`Invalid geoJson format
`+n.message)}return IE(t,i),A(i,function(n){var o=n.name;RE(t,n),kE(t,n),NE(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 zE(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 FE(r){return ft(r)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var ds=Z(),wa={registerMap:function(r,e,t){if(e.svg){var a=new AE(r,e.svg);ds.set(r,a)}else{var i=e.geoJson||e.geoJSON;i&&!e.features?t=e.specialAreas:i=e;var a=new VE(r,i,t);ds.set(r,a)}},getGeoResource:function(r){return ds.get(r)},getMapForUser:function(r){var e=ds.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var a=ds.get(r);if(!!a)return a.load(e,t)}},GE=de,Xt=A,HE=wt,gs=J,Wu=lt,WE=typeof window!="undefined",UE=1,YE=800,XE=900,$E=1e3,ZE=2e3,qE=5e3,fS=1e3,KE=1100,Oc=2e3,vS=3e3,QE=4e3,Uu=4500,JE=4600,jE=5e3,tk=6e3,cS=7e3,ek={PROCESSOR:{FILTER:$E,SERIES_FILTER:YE,STATISTIC:qE},VISUAL:{LAYOUT:fS,PROGRESSIVE_LAYOUT:KE,GLOBAL:Oc,CHART:vS,POST_CHART_LAYOUT:JE,COMPONENT:QE,BRUSH:jE,CHART_ITEM:Uu,ARIA:tk,DECAL:cS}},Rr="__flagInMainProcess",Ta="__optionUpdated",Nc="__needsUpdateStatus",pS=/^[a-zA-Z0-9_]+$/,Bc="__connectUpdateStatus",dS=0,rk=1,ak=2;function gS(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){Be(this.id);return}return mS(this,r,e)}}function yS(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return mS(this,r,e)}}function mS(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),or.prototype[e].apply(r,t)}var _S=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(or),SS=_S.prototype;SS.on=yS("on"),SS.off=yS("off");var En,Vc,Yu,Aa,zc,Fc,Gc,ys,ms,xS,bS,_s,Hc,wS,Xu,Ss,TS,AS,CS,Qe,DS,MS=function(r){E(e,r);function e(t,a,i){var n=r.call(this,new AR)||this;n._chartsViews=[],n._chartsMap={},n._componentsViews=[],n._componentsMap={},n._pendingActions=[],i=i||{},typeof a=="string"&&(a=LS[a]),n._dom=t;var o="canvas",s=!1,l=n._zr=Jy(t,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,useDirtyRect:i.useDirtyRect==null?s:i.useDirtyRect});n._throttledZrFlush=Tc(U(l.flush,l),17),a=$(a),a&&D_(a,!0),n._theme=a,n._locale=NI(i.locale||H0),n._coordSysMgr=new as;var u=n._api=TS(n);function h(f,v){return f.__prio-v.__prio}return Qf(Zu,h),Qf(Uc,h),n._scheduler=new p1(n,u,Uc,Zu),n._messageCenter=new _S,n._labelManager=new GR,n._initEvents(),n.resize=U(n.resize,n),l.animation.on("frame",n._onframe,n),xS(l,n),bS(l,n),yl(n),n}return e.prototype._onframe=function(){if(!this._disposed){DS(this);var t=this._scheduler;if(this[Ta]){var a=this[Ta].silent;this[Rr]=!0,En(this),Aa.update.call(this),this._zr.flush(),this[Rr]=!1,this[Ta]=!1,ys.call(this,a),ms.call(this,a)}else if(t.unfinished){var i=UE,n=this._model,o=this._api;t.unfinished=!1;do{var s=+new Date;t.performSeriesTasks(n),t.performDataProcessorTasks(n),Fc(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.setOption=function(t,a,i){if(this._disposed){Be(this.id);return}var n,o,s;if(gs(a)&&(i=a.lazyUpdate,n=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[Rr]=!0,!this._model||a){var l=new fP(this._api),u=this._theme,h=this._model=new uc;h.scheduler=this._scheduler,h.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},Yc),CS(this,s),i?(this[Ta]={silent:n},this[Rr]=!1,this.getZr().wakeUp()):(En(this),Aa.update.call(this),this._zr.flush(),this[Ta]=!1,this[Rr]=!1,ys.call(this,n),ms.call(this,n))},e.prototype.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},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||WE&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){if(!!et.canvasSupported){t=V({},t||{}),t.pixelRatio=t.pixelRatio||this.getDevicePixelRatio(),t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var a=this._zr;return a.painter.getRenderedCanvas(t)}},e.prototype.getSvgDataURL=function(){if(!!et.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){Be(this.id);return}t=t||{};var a=t.excludeComponents,i=this._model,n=[],o=this;Xt(a,function(l){i.eachComponent({mainType:l},function(u){var h=o._componentsMap[u.__viewId];h.group.ignore||(n.push(h),h.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Xt(n,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){Be(this.id);return}if(!!et.canvasSupported){var a=t.type==="svg",i=this.group,n=Math.min,o=Math.max,s=Infinity;if(IS[i]){var l=s,u=s,h=-s,f=-s,v=[],c=t&&t.pixelRatio||this.getDevicePixelRatio();A(bs,function(_,S){if(_.group===i){var x=a?_.getZr().painter.getSvgDom().innerHTML:_.getRenderedCanvas($(t)),b=_.getDom().getBoundingClientRect();l=n(b.left,l),u=n(b.top,u),h=o(b.right,h),f=o(b.bottom,f),v.push({dom:x,left:b.left,top:b.top})}}),l*=c,u*=c,h*=c,f*=c;var p=h-l,d=f-u,g=rn(),y=Jy(g,{renderer:a?"svg":"canvas"});if(y.resize({width:p,height:d}),a){var m="";return Xt(v,function(_){var S=_.left-l,x=_.top-u;m+='<g transform="translate('+S+","+x+')">'+_.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 pt({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),Xt(v,function(_){var S=new Zt({style:{x:_.left*c-l,y:_.top*c-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 zc(this,"convertToPixel",t,a)},e.prototype.convertFromPixel=function(t,a){return zc(this,"convertFromPixel",t,a)},e.prototype.containPixel=function(t,a){if(this._disposed){Be(this.id);return}var i=this._model,n,o=oi(i,t);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var h=u.coordinateSystem;if(h&&h.containPoint)n=n||!!h.containPoint(a);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(n=n||f.containPoint(a,u))}},this)},this),!!n},e.prototype.getVisual=function(t,a){var i=this._model,n=oi(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?Ac(s,l,a):fs(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;Xt(ik,function(a){var i=function(n){var o=t.getModel(),s=n.target,l,u=a==="globalout";if(u?l={}:s&&Pn(s,function(p){var d=Q(p);if(d&&d.dataIndex!=null){var g=d.dataModel||o.getSeriesByIndex(d.seriesIndex);return l=g&&g.getDataParams(d.dataIndex,d.dataType)||{},!0}else if(d.eventData)return l=V({},d.eventData),!0},!0),l){var h=l.componentType,f=l.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",f=l.seriesIndex);var v=h&&f!=null&&o.getComponent(h,f),c=v&&t[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=n,l.type=a,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:c},t.trigger(a,l)}};i.zrEventfulCallAtLast=!0,t._zr.on(a,i,t)}),Xt(xs,function(a,i){t._messageCenter.on(i,function(n){this.trigger(i,n)},t)}),Xt(["selectchanged"],function(a){t._messageCenter.on(a,function(i){this.trigger(a,i)},t)}),HR(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){Be(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){Be(this.id);return}this._disposed=!0,dm(this.getDom(),qc,"");var t=this._api,a=this._model;Xt(this._componentsViews,function(i){i.dispose(a,t)}),Xt(this._chartsViews,function(i){i.dispose(a,t)}),this._zr.dispose(),delete bs[this.id]},e.prototype.resize=function(t){if(this._disposed){Be(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[Rr]=!0,i&&En(this),Aa.update.call(this,{type:"resize",animation:V({duration:0},t&&t.animation)}),this[Rr]=!1,ys.call(this,n),ms.call(this,n)}},e.prototype.showLoading=function(t,a){if(this._disposed){Be(this.id);return}if(gs(t)&&(a=t,t=""),t=t||"default",this.hideLoading(),!!Zc[t]){var i=Zc[t](this._api,a),n=this._zr;this._loadingFX=i,n.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){Be(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=xs[t.type],a},e.prototype.dispatchAction=function(t,a){if(this._disposed){Be(this.id);return}if(gs(a)||(a={silent:!!a}),!!$u[t.type]&&!!this._model){if(this[Rr]){this._pendingActions.push(t);return}var i=a.silent;Gc.call(this,t,i);var n=a.flush;n?this._zr.flush():n!==!1&&et.browser.weChat&&this._throttledZrFlush(),ys.call(this,i),ms.call(this,i)}},e.prototype.updateLabelLayout=function(){var t=this._labelManager;t.updateLayoutConfig(this._api),t.layout(this._api),t.processLabelsOverall()},e.prototype.appendData=function(t){if(this._disposed){Be(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(){En=function(u){var h=u._scheduler;h.restorePipelines(u._model),h.prepareStageTasks(),Vc(u,!0),Vc(u,!1),h.plan()},Vc=function(u,h){for(var f=u._model,v=u._scheduler,c=h?u._componentsViews:u._chartsViews,p=h?u._componentsMap:u._chartsMap,d=u._zr,g=u._api,y=0;y<c.length;y++)c[y].__alive=!1;h?f.eachComponent(function(S,x){S!=="series"&&m(x)}):f.eachSeries(m);function m(S){var x=S.__requireNewView;S.__requireNewView=!1;var b="_ec_"+S.id+"_"+S.type,w=!x&&p[b];if(!w){var T=_r(S.type),C=h?Et.getClass(T.main,T.sub):Ct.getClass(T.sub);w=new C,w.init(f,g),p[b]=w,c.push(w),d.add(w.group)}S.__viewId=w.__id=b,w.__alive=!0,w.__model=S,w.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!h&&v.prepareView(w,S,f,g)}for(var y=0;y<c.length;){var _=c[y];_.__alive?y++:(!h&&_.renderTask.dispose(),d.remove(_.group),_.dispose(f,g),c.splice(y,1),p[_.__id]===_&&delete p[_.__id],_.__id=_.group.__ecComponentInfo=null)}},Yu=function(u,h,f,v,c){var p=u._model;if(p.setUpdatePayload(f),!v){Xt([].concat(u._componentsViews).concat(u._chartsViews),_);return}var d={};d[v+"Id"]=f[v+"Id"],d[v+"Index"]=f[v+"Index"],d[v+"Name"]=f[v+"Name"];var g={mainType:v,query:d};c&&(g.subType=c);var y=f.excludeSeriesId,m;y!=null&&(m=Z(),Xt(Rt(y),function(S){var x=$t(S,null);x!=null&&m.set(x,!0)})),Vv(f)&&l0(u._api),p&&p.eachComponent(g,function(S){if(!m||m.get(S.id)==null){if(Vv(f))if(S instanceof It)f.type===mi&&!f.notBlur&&k2(S,f,u._api);else{var x=Ov(S.mainType,S.componentIndex,f.name,u._api),b=x.focusSelf,w=x.dispatchers;f.type===mi&&b&&!f.notBlur&&kv(S.mainType,S.componentIndex,u._api),w&&Xt(w,function(T){f.type===mi?Cr(T):Dr(T)})}else Bv(f)&&S instanceof It&&(B2(S,f,u._api),u0(S),Qe(u));_(u[v==="series"?"_chartsMap":"_componentsMap"][S.__viewId])}},u);function _(S){S&&S.__alive&&S[h]&&S[h](S.__model,p,u._api,f)}},Aa={prepareAndUpdate:function(u){En(this),Aa.update.call(this,u)},update:function(u){var h=this._model,f=this._api,v=this._zr,c=this._coordSysMgr,p=this._scheduler;if(!!h){h.setUpdatePayload(u),p.restoreData(h,u),p.performSeriesTasks(h),c.create(h,f),p.performDataProcessorTasks(h,u),Fc(this,h),c.update(h,f),_s(h),p.performVisualTasks(h,u),Hc(this,h,f,u);var d=h.get("backgroundColor")||"transparent",g=h.get("darkMode");if(et.canvasSupported)v.setBackgroundColor(d),g!=null&&g!=="auto"&&v.setDarkMode(g);else{var y=Ge(d);d=Yr(y,"rgb"),y[3]===0&&(d="transparent")}Ss(h,f)}},updateTransform:function(u){var h=this,f=this._model,v=this._api;if(!!f){f.setUpdatePayload(u);var c=[];f.eachComponent(function(d,g){if(d!=="series"){var y=h.getViewOfComponentModel(g);if(y&&y.__alive)if(y.updateTransform){var m=y.updateTransform(g,f,v,u);m&&m.update&&c.push(y)}else c.push(y)}});var p=Z();f.eachSeries(function(d){var g=h._chartsMap[d.__viewId];if(g.updateTransform){var y=g.updateTransform(d,f,v,u);y&&y.update&&p.set(d.uid,1)}else p.set(d.uid,1)}),_s(f),this._scheduler.performVisualTasks(f,u,{setDirty:!0,dirtyMap:p}),Xu(this,f,v,u,p),Ss(f,this._api)}},updateView:function(u){var h=this._model;!h||(h.setUpdatePayload(u),Ct.markUpdateMethod(u,"updateView"),_s(h),this._scheduler.performVisualTasks(h,u,{setDirty:!0}),Hc(this,this._model,this._api,u),Ss(h,this._api))},updateVisual:function(u){var h=this,f=this._model;!f||(f.setUpdatePayload(u),f.eachSeries(function(v){v.getData().clearAllVisual()}),Ct.markUpdateMethod(u,"updateVisual"),_s(f),this._scheduler.performVisualTasks(f,u,{visualType:"visual",setDirty:!0}),f.eachComponent(function(v,c){if(v!=="series"){var p=h.getViewOfComponentModel(c);p&&p.__alive&&p.updateVisual(c,f,h._api,u)}}),f.eachSeries(function(v){var c=h._chartsMap[v.__viewId];c.updateVisual(v,f,h._api,u)}),Ss(f,this._api))},updateLayout:function(u){Aa.update.call(this,u)}},zc=function(u,h,f,v){if(u._disposed){Be(u.id);return}for(var c=u._model,p=u._coordSysMgr.getCoordinateSystems(),d,g=oi(c,f),y=0;y<p.length;y++){var m=p[y];if(m[h]&&(d=m[h](c,g,v))!=null)return d}},Fc=function(u,h){var f=u._chartsMap,v=u._scheduler;h.eachSeries(function(c){v.updateStreamModes(c,f[c.__viewId])})},Gc=function(u,h){var f=this,v=this.getModel(),c=u.type,p=u.escapeConnect,d=$u[c],g=d.actionInfo,y=(g.update||"update").split(":"),m=y.pop(),_=y[0]!=null&&_r(y[0]);this[Rr]=!0;var S=[u],x=!1;u.batch&&(x=!0,S=H(u.batch,function(L){return L=X(V({},L),u),L.batch=null,L}));var b=[],w,T=Bv(u),C=Vv(u);if(Xt(S,function(L){if(w=d.action(L,f._model,f._api),w=w||V({},L),w.type=g.event||w.type,b.push(w),C){var I=lv(u),P=I.queryOptionMap,R=I.mainTypeSpecified,k=R?P.keys()[0]:"series";Yu(f,m,L,k),Qe(f)}else T?(Yu(f,m,L,"series"),Qe(f)):_&&Yu(f,m,L,_.main,_.sub)}),m!=="none"&&!C&&!T&&!_&&(this[Ta]?(En(this),Aa.update.call(this,u),this[Ta]=!1):Aa[m].call(this,u)),x?w={type:g.event||c,escapeConnect:p,batch:b}:w=b[0],this[Rr]=!1,!h){var M=this._messageCenter;if(M.trigger(w.type,w),T){var D={type:"selectchanged",escapeConnect:p,selected:V2(v),isFromClick:u.isFromClick||!1,fromAction:u.type,fromActionPayload:u};M.trigger(D.type,D)}}},ys=function(u){for(var h=this._pendingActions;h.length;){var f=h.shift();Gc.call(this,f,u)}},ms=function(u){!u&&this.trigger("updated")},xS=function(u,h){u.on("rendered",function(f){h.trigger("rendered",f),u.animation.isFinished()&&!h[Ta]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},bS=function(u,h){u.on("mouseover",function(f){var v=f.target,c=Pn(v,ql);c&&(O2(c,f,h._api),Qe(h))}).on("mouseout",function(f){var v=f.target,c=Pn(v,ql);c&&(N2(c,f,h._api),Qe(h))}).on("click",function(f){var v=f.target,c=Pn(v,function(g){return Q(g).dataIndex!=null},!0);if(c){var p=c.selected?"unselect":"select",d=Q(c);h._api.dispatchAction({type:p,dataType:d.dataType,dataIndexInside:d.dataIndex,seriesIndex:d.seriesIndex,isFromClick:!0})}})},_s=function(u){u.clearColorPalette(),u.eachSeries(function(h){h.clearColorPalette()})},Hc=function(u,h,f,v){wS(u,h,f,v),Xt(u._chartsViews,function(c){c.__alive=!1}),Xu(u,h,f,v),Xt(u._chartsViews,function(c){c.__alive||c.remove(h,f)})},wS=function(u,h,f,v,c){Xt(c||u._componentsViews,function(p){var d=p.__model;s(d,p),p.render(d,h,f,v),n(d,p),l(d,p)})},Xu=function(u,h,f,v,c){var p=u._scheduler,d=u._labelManager;d.clearLabels();var g=!1;h.eachSeries(function(y){var m=u._chartsMap[y.__viewId];m.__alive=!0;var _=m.renderTask;p.updatePayload(_,v),s(y,m),c&&c.get(y.uid)&&_.dirty(),_.perform(p.getPerformArgs(_))&&(g=!0),y.__transientTransitionOpt=null,m.group.silent=!!y.get("silent"),i(y,m),u0(y),d.addLabelsOfSeries(m)}),p.unfinished=g||p.unfinished,d.updateLayoutConfig(f),d.layout(f),d.processLabelsOverall(),h.eachSeries(function(y){var m=u._chartsMap[y.__viewId];n(y,m),l(y,m)}),a(u,h)},Ss=function(u,h){Xt($c,function(f){f(u,h)})},Qe=function(u){u[Nc]=!0,u.getZr().wakeUp()},DS=function(u){!u[Nc]||(u.getZr().storage.traverse(function(h){Sn(h)||t(h)}),u[Nc]=!1)};function t(u){for(var h=[],f=u.currentStates,v=0;v<f.length;v++){var c=f[v];c==="emphasis"||c==="blur"||c==="select"||h.push(c)}u.selected&&u.states.select&&h.push("select"),u.hoverState===Ul&&u.states.emphasis?h.push("emphasis"):u.hoverState===No&&u.states.blur&&h.push("blur"),u.useStates(h)}function a(u,h){var f=u._zr,v=f.storage,c=0;v.traverse(function(p){p.isGroup||c++}),c>h.get("hoverLayerThreshold")&&!et.node&&!et.worker&&h.eachSeries(function(p){if(!p.preventUsingHoverLayer){var d=u._chartsMap[p.__viewId];d.__alive&&d.group.traverse(function(g){g.states.emphasis&&(g.states.emphasis.hoverLayer=!0)})}})}function i(u,h){var f=u.get("blendMode")||null;h.group.traverse(function(v){v.isGroup||(v.style.blend=f),v.eachPendingDisplayable&&v.eachPendingDisplayable(function(c){c.style.blend=f})})}function n(u,h){u.preventAutoZ||o(h.group,u.get("z")||0,u.get("zlevel")||0,-Infinity)}function o(u,h,f,v){var c=u.getTextContent(),p=u.getTextGuideLine(),d=u.isGroup;if(d)for(var g=u.childrenRef(),y=0;y<g.length;y++)v=Math.max(o(g[y],h,f,v),v);else u.z=h,u.zlevel=f,v=Math.max(u.z2,v);if(c&&(c.z=h,c.zlevel=f,isFinite(v)&&(c.z2=v+2)),p){var m=u.textGuideLineConfig;p.z=h,p.zlevel=f,isFinite(v)&&(p.z2=v+(m&&m.showAbove?1:-1))}return v}function s(u,h){h.group.traverse(function(f){if(!Sn(f)){var v=f.getTextContent(),c=f.getTextGuideLine();f.stateTransition&&(f.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),c&&c.stateTransition&&(c.stateTransition=null),f.hasState()?(f.prevStates=f.currentStates,f.clearStates()):f.prevStates&&(f.prevStates=null)}})}function l(u,h){var f=u.getModel("stateAnimation"),v=u.isAnimationEnabled(),c=f.get("duration"),p=c>0?{duration:c,delay:f.get("delay"),easing:f.get("easing")}:null;h.group.traverse(function(d){if(d.states&&d.states.emphasis){if(Sn(d))return;if(d instanceof ct&&H2(d),d.__dirty){var g=d.prevStates;g&&d.useStates(g)}if(v){d.stateTransition=p;var y=d.getTextContent(),m=d.getTextGuideLine();y&&(y.stateTransition=p),m&&(m.stateTransition=p)}d.__dirty&&t(d)}})}TS=function(u){return new(function(h){E(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getCoordinateSystems=function(){return u._coordSysMgr.getCoordinateSystems()},f.prototype.getComponentByElement=function(v){for(;v;){var c=v.__ecComponentInfo;if(c!=null)return u._model.getComponent(c.mainType,c.index);v=v.parent}},f.prototype.enterEmphasis=function(v,c){Cr(v,c),Qe(u)},f.prototype.leaveEmphasis=function(v,c){Dr(v,c),Qe(u)},f.prototype.enterBlur=function(v){a0(v),Qe(u)},f.prototype.leaveBlur=function(v){i0(v),Qe(u)},f.prototype.enterSelect=function(v){n0(v),Qe(u)},f.prototype.leaveSelect=function(v){o0(v),Qe(u)},f.prototype.getModel=function(){return u.getModel()},f.prototype.getViewOfComponentModel=function(v){return u.getViewOfComponentModel(v)},f.prototype.getViewOfSeriesModel=function(v){return u.getViewOfSeriesModel(v)},f}(S_))(u)},AS=function(u){function h(f,v){for(var c=0;c<f.length;c++){var p=f[c];p[Bc]=v}}Xt(xs,function(f,v){u._messageCenter.on(v,function(c){if(IS[u.group]&&u[Bc]!==dS){if(c&&c.escapeConnect)return;var p=u.makeActionFromEvent(c),d=[];Xt(bs,function(g){g!==u&&g.group===u.group&&d.push(g)}),h(d,dS),Xt(d,function(g){g[Bc]!==rk&&g.dispatchAction(p)}),h(d,ak)}})})},CS=function(u,h){var f=u._model;A(Rt(h),function(v){var c,p=v.from,d=v.to;d==null&&yt(c);var g={includeMainTypes:["series"],enableAll:!1,enableNone:!1},y=p?oi(f,p,g):null,m=oi(f,d,g),_=m.seriesModel;_==null&&(c=""),y&&y.seriesModel!==_&&(c=""),c!=null&&yt(c),_.__transientTransitionOpt={from:p?p.dimension:null,to:d.dimension,dividingMethod:v.dividingMethod}})}}(),e}(or),Wc=MS.prototype;Wc.on=gS("on"),Wc.off=gS("off"),Wc.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 ik=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Be(r){}var $u={},xs={},Uc=[],Yc=[],Xc=[],$c=[],Zu=[],LS={},Zc={},bs={},IS={},nk=+new Date-0,qc="_echarts_instance_";function PS(r,e,t){var a=ok(r);if(a)return a;var i=new MS(r,e,t);return i.id="ec_"+nk++,bs[i.id]=i,dm(r,qc,i.id),AS(i),Xt(Xc,function(n){n(i)}),i}function ok(r){return bs[DL(r,qc)]}function RS(r,e){LS[r]=e}function ES(r){Wu(Yc,r)<0&&Yc.push(r)}function kS(r,e){Kc(Uc,r,e,ZE)}function sk(r){Wu(Xc,r)<0&&r&&Xc.push(r)}function lk(r){Wu($c,r)<0&&r&&$c.push(r)}function Er(r,e,t){typeof e=="function"&&(t=e,e="");var a=gs(r)?r.type:[r,r={event:e}][0];r.event=(r.event||a).toLowerCase(),e=r.event,!xs[e]&&(GE(pS.test(a)&&pS.test(e)),$u[a]||($u[a]={action:t,actionInfo:r}),xs[e]=a)}function uk(r,e){as.register(r,e)}function hk(r,e){Kc(Zu,r,e,fS,"layout")}function Ni(r,e){Kc(Zu,r,e,vS,"visual")}var OS=[];function Kc(r,e,t,a,i){if((HE(e)||gs(e))&&(t=e,e=a),!(Wu(OS,t)>=0)){OS.push(t);var n=p1.wrapStageHandler(t,i);n.__prio=e,n.__raw=t,r.push(n)}}function NS(r,e){Zc[r]=e}function fk(r,e,t){wa.registerMap(r,e,t)}var vk=UP;Ni(Oc,fR),Ni(Uu,vR),Ni(Uu,cR),Ni(Oc,CR),Ni(Uu,DR),Ni(cS,fE),ES(D_),kS(XE,wP),NS("default",pR),Er({type:mi,event:mi,update:mi},nr),Er({type:Yl,event:Yl,update:Yl},nr),Er({type:Vo,event:Vo,update:Vo},nr),Er({type:Xl,event:Xl,update:Xl},nr),Er({type:zo,event:zo,update:zo},nr),RS("light",TR),RS("dark",x1);var BS=[],ck={registerPreprocessor:ES,registerProcessor:kS,registerPostInit:sk,registerPostUpdate:lk,registerAction:Er,registerCoordinateSystem:uk,registerLayout:hk,registerVisual:Ni,registerTransform:vk,registerLoading:NS,registerMap:fk,PRIORITY:ek,ComponentModel:ht,ComponentView:Et,SeriesModel:It,ChartView:Ct,registerComponentModel:function(r){ht.registerClass(r)},registerComponentView:function(r){Et.registerClass(r)},registerSeriesModel:function(r){It.registerClass(r)},registerChartView:function(r){Ct.registerClass(r)},registerSubTypeDefaulter:function(r,e){ht.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){lL(r,e)}};function st(r){if(B(r)){A(r,function(e){st(e)});return}lt(BS,r)>=0||(BS.push(r),wt(r)&&(r={install:r}),r.install(ck))}function ws(r){return r==null?0:r.length||1}function VS(r){return r}var Ca=function(){function r(e,t,a,i,n,o){this._old=e,this._new=t,this._oldKeyGetter=a||VS,this._newKeyGetter=i||VS,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.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=ws(l);if(u>1){var h=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(h,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],h=i[l],f=ws(u),v=ws(h);if(f>1&&v===1)this._updateManyToOne&&this._updateManyToOne(h,u),i[l]=null;else if(f===1&&v>1)this._updateOneToMany&&this._updateOneToMany(h,u),i[l]=null;else if(f===1&&v===1)this._update&&this._update(h,u),i[l]=null;else if(f>1)for(var c=0;c<f;c++)this._remove&&this._remove(u[c]);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=ws(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=ws(l);u===0?(t[s]=o,n&&a.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r}();function pk(r){var e={},t=e.encode={},a=Z(),i=[],n=[],o=e.userOutput={dimensionNames:r.dimensions.slice(),encode:{}};A(r.dimensions,function(f){var v=r.getDimensionInfo(f),c=v.coordDim;if(c){var p=v.coordDimIndex;Qc(t,c)[p]=f,v.isExtraCoord||(a.set(c,1),dk(v.type)&&(i[0]=f),Qc(o.encode,c)[p]=v.index),v.defaultTooltip&&n.push(f)}l_.each(function(d,g){var y=Qc(t,g),m=v.otherDims[g];m!=null&&m!==!1&&(y[m]=v.name)})});var s=[],l={};a.each(function(f,v){var c=t[v];l[v]=c[0],s=s.concat(c)}),e.dataDimsOnCoord=s,e.encodeFirstDimNotExtra=l;var u=t.label;u&&u.length&&(i=u.slice());var h=t.tooltip;return h&&h.length?n=h.slice():n.length||(n=i.slice()),t.defaultedLabel=i,t.defaultedTooltip=n,e}function Qc(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function qu(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function dk(r){return!(r==="ordinal"||r==="time")}var Ts=function(){function r(e){this.otherDims={},e!=null&&V(this,e)}return r}(),zS=Math.floor,As=J,Je=H,Cs="undefined",FS=-1,gk="e\0\0",yk={float:typeof Float64Array===Cs?Array:Float64Array,int:typeof Int32Array===Cs?Array:Int32Array,ordinal:Array,number:Array,time:Array},mk=typeof Uint32Array===Cs?Array:Uint32Array,_k=typeof Int32Array===Cs?Array:Int32Array,Sk=typeof Uint16Array===Cs?Array:Uint16Array,xk=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx","_nameRepeatCount"],bk=["_extent","_approximateExtent","_rawExtent"],Jc,jc,kn,tp,On,Bi,Ku,Ds,ep,Qu,Ju,Ms,GS,rp,xe=function(){function r(e,t){this.type="list",this._count=0,this._rawCount=0,this._storage={},this._storageArr=[],this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._rawExtent={},this._extent={},this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!0,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"],this.getRawIndex=On,e=e||["x","y"];for(var a={},i=[],n={},o=0;o<e.length;o++){var s=e[o],l=ft(s)?new Ts({name:s}):s instanceof Ts?s:new Ts(s),u=l.name;l.type=l.type||"float",l.coordDim||(l.coordDim=u,l.coordDimIndex=0);var h=l.otherDims=l.otherDims||{};i.push(u),a[u]=l,l.index=o,l.createInvertedIndices&&(n[u]=[]),h.itemName===0&&(this._nameDimIdx=o,this._nameOrdinalMeta=l.ordinalMeta),h.itemId===0&&(this._idDimIdx=o,this._idOrdinalMeta=l.ordinalMeta)}this.dimensions=i,this._dimensionInfos=a,this.hostModel=t,this._dimensionsSummary=pk(this),this._invertedIndicesMap=n,this.userOutput=this._dimensionsSummary.userOutput}return r.prototype.getDimension=function(e){return(typeof e=="number"||!isNaN(e)&&!this._dimensionInfos.hasOwnProperty(e))&&(e=this.dimensions[e]),e},r.prototype.getDimensionInfo=function(e){return this._dimensionInfos[this.getDimension(e)]},r.prototype.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var a=this._dimensionsSummary;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._dimensionsSummary,a=t.encode[e];return(a||[]).slice()},r.prototype.initData=function(e,t,a){var i=Du(e)||Te(e),n=i?new MP(e,this.dimensions.length):e;this._rawData=n;var o=n.getSource().sourceFormat;this._storage={},this._indices=null,this._dontMakeIdFromName=this._idDimIdx!=null||o===_a||!!n.fillStorage,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},a||(this.hasItemOption=!1),this.defaultDimValueGetter=Jc[o],this._dimValueGetter=a=a||this.defaultDimValueGetter,this._dimValueGetterArrayRows=Jc.arrayRows,this._rawExtent={},this._initDataFromProvider(0,n.count()),n.pure&&(this.hasItemOption=!1)},r.prototype.getProvider=function(){return this._rawData},r.prototype.appendData=function(e){var t=this._rawData,a=this.count();t.appendData(e);var i=t.count();t.persistent||(i+=a),this._initDataFromProvider(a,i,!0)},r.prototype.appendValues=function(e,t){for(var a=this._storage,i=this.dimensions,n=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t?t.length:0),u=0;u<n;u++){var h=i[u];o[h]||(o[h]=Ms()),tp(a,this._dimensionInfos[h],l,!0)}for(var f=Je(i,function(_){return o[_]}),v=this._storageArr=Je(i,function(_){return a[_]}),c=[],p=s;p<l;p++){for(var d=p-s,g=0;g<n;g++){var h=i[g],y=this._dimValueGetterArrayRows(e[d]||c,h,d,g);v[g][p]=y;var m=f[g];y<m[0]&&(m[0]=y),y>m[1]&&(m[1]=y)}t&&(this._nameList[p]=t[d],this._dontMakeIdFromName||ep(this,p))}this._rawCount=this._count=l,this._extent={},jc(this)},r.prototype._initDataFromProvider=function(e,t,a){if(!(e>=t)){for(var i=this._rawData,n=this._storage,o=this.dimensions,s=o.length,l=this._dimensionInfos,u=this._nameList,h=this._idList,f=this._rawExtent,v=i.getSource().sourceFormat,c=v===Mr,p=0;p<s;p++){var d=o[p];f[d]||(f[d]=Ms()),tp(n,l[d],t,a)}var g=this._storageArr=Je(o,function(M){return n[M]}),y=Je(o,function(M){return f[M]});if(i.fillStorage)i.fillStorage(e,t,g,y);else for(var m=[],_=e;_<t;_++){m=i.getItem(_,m);for(var S=0;S<s;S++){var d=o[S],x=g[S],b=this._dimValueGetter(m,d,_,S);x[_]=b;var w=y[S];b<w[0]&&(w[0]=b),b>w[1]&&(w[1]=b)}if(c&&!i.pure&&m){var T=m.name;u[_]==null&&T!=null&&(u[_]=$t(T,null));var C=m.id;h[_]==null&&C!=null&&(h[_]=$t(C,null))}this._dontMakeIdFromName||ep(this,_)}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent={},jc(this)}},r.prototype.count=function(){return this._count},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=kn(this);e=new a(this.count());for(var n=0;n<e.length;n++)e[n]=n}return e},r.prototype.getByDimIdx=function(e,t){if(!(t>=0&&t<this._count))return NaN;var a=this._storageArr[e];return a?a[this.getRawIndex(t)]:NaN},r.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var a=this._storage[e];return a?a[this.getRawIndex(t)]:NaN},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var a=this._storage[e];return a?a[t]:NaN},r.prototype.getValues=function(e,t){var a=[];B(e)||(t=e,e=this.dimensions);for(var i=0,n=e.length;i<n;i++)a.push(this.get(e[i],t));return a},r.prototype.hasValue=function(e){for(var t=this._dimensionsSummary.dataDimsOnCoord,a=0,i=t.length;a<i;a++)if(isNaN(this.get(t[a],e)))return!1;return!0},r.prototype.getDataExtent=function(e){e=this.getDimension(e);var t=this._storage[e],a=Ms();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 h=this.getRawIndex(u),f=t[h];f<s&&(s=f),f>l&&(l=f)}return o=[s,l],this._extent[e]=o,o},r.prototype.getApproximateExtent=function(e){return e=this.getDimension(e),this._approximateExtent[e]||this.getDataExtent(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){As(e)?V(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getSum=function(e){var t=this._storage[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.rawIndexOf=function(e,t){var a=e&&this._invertedIndicesMap[e],i=a[t];return i==null||isNaN(i)?FS:i},r.prototype.indexOfName=function(e){for(var t=0,a=this.count();t<a;t++)if(this.getName(t)===e)return t;return-1},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._storage,n=i[e],o=[];if(!n)return o;a==null&&(a=Infinity);for(var s=Infinity,l=-1,u=0,h=0,f=this.count();h<f;h++){var v=this.getRawIndex(h),c=t-n[v],p=Math.abs(c);p<=a&&((p<s||p===s&&c>=0&&l<0)&&(s=p,l=c,u=0),c===l&&(o[u++]=h))}return o.length=u,o},r.prototype.getRawDataItem=function(e){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(e));for(var t=[],a=0;a<this.dimensions.length;a++){var i=this.dimensions[a];t.push(this.get(i,e))}return t},r.prototype.getName=function(e){var t=this.getRawIndex(e),a=this._nameList[t];return a==null&&this._nameDimIdx!=null&&(a=Ds(this,this._nameDimIdx,this._nameOrdinalMeta,t)),a==null&&(a=""),a},r.prototype.getId=function(e){return Ku(this,this.getRawIndex(e))},r.prototype.each=function(e,t,a,i){var n=this;if(!!this._count){typeof e=="function"&&(i=a,a=t,t=e,e=[]);for(var o=a||i||this,s=Je(Qu(e),this.getDimension,this),l=s.length,u=Je(s,function(g){return n._dimensionInfos[g].index}),h=this._storageArr,f=0,v=this.count();f<v;f++){var c=this.getRawIndex(f);switch(l){case 0:t.call(o,f);break;case 1:t.call(o,h[u[0]][c],f);break;case 2:t.call(o,h[u[0]][c],h[u[1]][c],f);break;default:for(var p=0,d=[];p<l;p++)d[p]=h[u[p]][c];d[p]=f,t.apply(o,d)}}}},r.prototype.filterSelf=function(e,t,a,i){var n=this;if(!!this._count){typeof e=="function"&&(i=a,a=t,t=e,e=[]);for(var o=a||i||this,s=Je(Qu(e),this.getDimension,this),l=this.count(),u=kn(this),h=new u(l),f=[],v=s.length,c=0,p=Je(s,function(b){return n._dimensionInfos[b].index}),d=p[0],g=this._storageArr,y=0;y<l;y++){var m=void 0,_=this.getRawIndex(y);if(v===0)m=t.call(o,y);else if(v===1){var S=g[d][_];m=t.call(o,S,y)}else{for(var x=0;x<v;x++)f[x]=g[p[x]][_];f[x]=y,m=t.apply(o,f)}m&&(h[c++]=_)}return c<l&&(this._indices=h),this._count=c,this._extent={},this.getRawIndex=this._indices?Bi:On,this}},r.prototype.selectRange=function(e){var t=this,a=this._count;if(!!a){var i=[];for(var n in e)e.hasOwnProperty(n)&&i.push(n);var o=i.length;if(!!o){var s=this.count(),l=kn(this),u=new l(s),h=0,f=i[0],v=Je(i,function(I){return t._dimensionInfos[I].index}),c=e[f][0],p=e[f][1],d=this._storageArr,g=!1;if(!this._indices){var y=0;if(o===1){for(var m=d[v[0]],_=0;_<a;_++){var S=m[_];(S>=c&&S<=p||isNaN(S))&&(u[h++]=y),y++}g=!0}else if(o===2){for(var m=d[v[0]],x=d[v[1]],b=e[i[1]][0],w=e[i[1]][1],_=0;_<a;_++){var S=m[_],T=x[_];(S>=c&&S<=p||isNaN(S))&&(T>=b&&T<=w||isNaN(T))&&(u[h++]=y),y++}g=!0}}if(!g)if(o===1)for(var _=0;_<s;_++){var C=this.getRawIndex(_),S=d[v[0]][C];(S>=c&&S<=p||isNaN(S))&&(u[h++]=C)}else for(var _=0;_<s;_++){for(var M=!0,C=this.getRawIndex(_),D=0;D<o;D++){var L=i[D],S=d[v[D]][C];(S<e[L][0]||S>e[L][1])&&(M=!1)}M&&(u[h++]=this.getRawIndex(_))}return h<s&&(this._indices=u),this._count=h,this._extent={},this.getRawIndex=this._indices?Bi:On,this}}},r.prototype.mapArray=function(e,t,a,i){typeof e=="function"&&(i=a,a=t,t=e,e=[]),a=a||i||this;var n=[];return this.each(e,function(){n.push(t&&t.apply(this,arguments))},a),n},r.prototype.map=function(e,t,a,i){var n=a||i||this,o=Je(Qu(e),this.getDimension,this),s=Ju(this,o),l=s._storage;s._indices=this._indices,s.getRawIndex=s._indices?Bi:On;for(var u=[],h=o.length,f=this.count(),v=[],c=s._rawExtent,p=0;p<f;p++){for(var d=0;d<h;d++)v[d]=this.get(o[d],p);v[h]=p;var g=t&&t.apply(n,v);if(g!=null){typeof g!="object"&&(u[0]=g,g=u);for(var y=this.getRawIndex(p),m=0;m<g.length;m++){var _=o[m],S=g[m],x=c[_],b=l[_];b&&(b[y]=S),S<x[0]&&(x[0]=S),S>x[1]&&(x[1]=S)}}}return s},r.prototype.downSample=function(e,t,a,i){for(var n=Ju(this,[e]),o=n._storage,s=[],l=zS(1/t),u=o[e],h=this.count(),f=n._rawExtent[e],v=new(kn(this))(h),c=0,p=0;p<h;p+=l){l>h-p&&(l=h-p,s.length=l);for(var d=0;d<l;d++){var g=this.getRawIndex(p+d);s[d]=u[g]}var y=a(s),m=this.getRawIndex(Math.min(p+i(s,y)||0,h-1));u[m]=y,y<f[0]&&(f[0]=y),y>f[1]&&(f[1]=y),v[c++]=m}return n._count=c,n._indices=v,n.getRawIndex=Bi,n},r.prototype.lttbDownSample=function(e,t){var a=Ju(this,[]),i=a._storage,n=i[e],o=this.count(),s=new(kn(this))(o),l=0,u=zS(1/t),h=this.getRawIndex(0),f,v,c;s[l++]=h;for(var p=1;p<o-1;p+=u){for(var d=Math.min(p+u,o-1),g=Math.min(p+u*2,o),y=(g+d)/2,m=0,_=d;_<g;_++){var S=this.getRawIndex(_),x=n[S];isNaN(x)||(m+=x)}m/=g-d;var b=p,w=Math.min(p+u,o),T=p-1,C=n[h];f=-1,c=b;for(var _=b;_<w;_++){var S=this.getRawIndex(_),x=n[S];isNaN(x)||(v=Math.abs((T-y)*(x-C)-(T-_)*(m-C)),v>f&&(f=v,c=S))}s[l++]=c,h=c}return s[l++]=this.getRawIndex(o-1),a._count=l,a._indices=s,a.getRawIndex=Bi,a},r.prototype.getItemModel=function(e){var t=this.hostModel,a=this.getRawDataItem(e);return new xt(a,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new Ca(e?e.getIndices():[],this.getIndices(),function(a){return Ku(e,a)},function(a){return Ku(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||{},As(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),B(n)?n=n.slice():As(n)&&(n=V({},n)),i[t]=n),n},r.prototype.setItemVisual=function(e,t,a){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,As(t)?V(i,t):i[t]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){if(As(e)){for(var a in e)e.hasOwnProperty(a)&&this.setLayout(a,e[a]);return}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;if(t){var i=Q(t);i.dataIndex=e,i.dataType=this.dataType,i.seriesIndex=a&&a.seriesIndex,t.type==="group"&&t.traverse(GS,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){if(!e){var t=Je(this.dimensions,this.getDimensionInfo,this);e=new r(t,this.hostModel)}if(e._storage=this._storage,e._storageArr=this._storageArr,rp(e,this),this._indices){var a=this._indices.constructor;if(a===Array){var i=this._indices.length;e._indices=new a(i);for(var n=0;n<i;n++)e._indices[n]=this._indices[n]}else e._indices=new a(this._indices)}else e._indices=null;return e.getRawIndex=e._indices?Bi:On,e},r.prototype.wrapMethod=function(e,t){var a=this[e];typeof a=="function"&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=a.apply(this,arguments);return t.apply(this,[i].concat(gf(arguments)))})},r.internalField=function(){Jc={arrayRows:e,objectRows:function(a,i,n,o){return Mu(a[i],this._dimensionInfos[i])},keyedColumns:e,original:function(a,i,n,o){var s=a&&(a.value==null?a:a.value);return!this._rawData.pure&&pL(a)&&(this.hasItemOption=!0),Mu(s instanceof Array?s[o]:s,this._dimensionInfos[i])},typedArray:function(a,i,n,o){return a[o]}};function e(a,i,n,o){return Mu(a[o],this._dimensionInfos[i])}jc=function(a){var i=a._invertedIndicesMap;A(i,function(n,o){var s=a._dimensionInfos[o],l=s.ordinalMeta;if(l){n=i[o]=new _k(l.categories.length);for(var u=0;u<n.length;u++)n[u]=FS;for(var u=0;u<a._count;u++)n[a.get(o,u)]=u}})},Ds=function(a,i,n,o){var s,l=a._storageArr[i];return l&&(s=l[o],n&&n.categories.length&&(s=n.categories[s])),$t(s,null)},kn=function(a){return a._rawCount>65535?mk:Sk},tp=function(a,i,n,o){var s=yk[i.type],l=i.name;if(o){var u=a[l],h=u&&u.length;if(h!==n){for(var f=new s(n),v=0;v<h;v++)f[v]=u[v];a[l]=f}}else a[l]=new s(n)},On=function(a){return a},Bi=function(a){return a<this._count&&a>=0?this._indices[a]:-1},Ku=function(a,i){var n=a._idList[i];return n==null&&a._idDimIdx!=null&&(n=Ds(a,a._idDimIdx,a._idOrdinalMeta,i)),n==null&&(n=gk+i),n},Qu=function(a){return B(a)||(a=a!=null?[a]:[]),a},Ju=function(a,i){var n=a.dimensions,o=new r(Je(n,a.getDimensionInfo,a),a.hostModel);rp(o,a);for(var s=o._storage={},l=a._storage,u=o._storageArr=[],h=0;h<n.length;h++){var f=n[h];l[f]&&(lt(i,f)>=0?(s[f]=t(l[f]),o._rawExtent[f]=Ms(),o._extent[f]=null):s[f]=l[f],u.push(s[f]))}return o};function t(a){var i=a.constructor;return i===Array?a.slice():new i(a)}Ms=function(){return[Infinity,-Infinity]},GS=function(a){var i=Q(a),n=Q(this);i.seriesIndex=n.seriesIndex,i.dataIndex=n.dataIndex,i.dataType=n.dataType},rp=function(a,i){A(xk.concat(i.__wrappedMethods||[]),function(n){i.hasOwnProperty(n)&&(a[n]=i[n])}),a.__wrappedMethods=i.__wrappedMethods,A(bk,function(n){a[n]=$(i[n])}),a._calculationInfo=V({},i._calculationInfo)},ep=function(a,i){var n=a._nameList,o=a._idList,s=a._nameDimIdx,l=a._idDimIdx,u=n[i],h=o[i];if(u==null&&s!=null&&(n[i]=u=Ds(a,s,a._nameOrdinalMeta,i)),h==null&&l!=null&&(o[i]=h=Ds(a,l,a._idOrdinalMeta,i)),h==null&&u!=null){var f=a._nameRepeatCount,v=f[u]=(f[u]||0)+1;h=u,v>1&&(h+="__ec__"+v),o[i]=h}}}(),r}();function wk(r,e,t){Du(e)||(e=pc(e)),t=t||{},r=(r||[]).slice();for(var a=(t.dimsDef||[]).slice(),i=Z(),n=Z(),o=[],s=Tk(e,r,a,t.dimCount),l=0;l<s;l++){var u=a[l],h=a[l]=V({},J(u)?u:{name:u}),f=h.name,v=o[l]=new Ts;f!=null&&i.get(f)==null&&(v.name=v.displayName=f,i.set(f,l)),h.type!=null&&(v.type=h.type),h.displayName!=null&&(v.displayName=h.displayName)}var c=t.encodeDef;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,s));var p=Z(c);p.each(function(w,T){var C=Rt(w).slice();if(C.length===1&&!ft(C[0])&&C[0]<0){p.set(T,!1);return}var M=p.set(T,[]);A(C,function(D,L){var I=ft(D)?i.get(D):D;I!=null&&I<s&&(M[L]=I,g(o[I],T,L))})});var d=0;A(r,function(w){var T,C,M,D;if(ft(w))T=w,D={};else{D=w,T=D.name;var L=D.ordinalMeta;D.ordinalMeta=null,D=$(D),D.ordinalMeta=L,C=D.dimsDef,M=D.otherDims,D.name=D.coordDim=D.coordDimIndex=D.dimsDef=D.otherDims=null}var I=p.get(T);if(I!==!1){if(I=Rt(I),!I.length)for(var P=0;P<(C&&C.length||1);P++){for(;d<o.length&&o[d].coordDim!=null;)d++;d<o.length&&I.push(d++)}A(I,function(R,k){var N=o[R];if(g(X(N,D),T,k),N.name==null&&C){var O=C[k];!J(O)&&(O={name:O}),N.name=N.displayName=O.name,N.defaultTooltip=O.defaultTooltip}M&&X(N.otherDims,M)})}});function g(w,T,C){l_.get(T)!=null?w.otherDims[T]=C:(w.coordDim=T,w.coordDimIndex=C,n.set(T,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;for(var S=y||"value",x=0;x<s;x++){var v=o[x]=o[x]||new Ts,b=v.coordDim;b==null&&(v.coordDim=HS(S,n,_),v.coordDimIndex=0,(!y||m<=0)&&(v.isExtraCoord=!0),m--),v.name==null&&(v.name=HS(v.coordDim,i,!1)),v.type==null&&(tP(e,x)===ce.Must||v.isExtraCoord&&(v.otherDims.itemName!=null||v.otherDims.seriesName!=null))&&(v.type="ordinal")}return o}function Tk(r,e,t,a){var i=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,a||0);return A(e,function(n){var o;J(n)&&(o=n.dimsDef)&&(i=Math.max(i,o.length))}),i}function HS(r,e,t){if(t||e.get(r)!=null){for(var a=0;e.get(r+a)!=null;)a++;r+=a}return e.set(r,!0),r}function Ls(r,e){return e=e||{},wk(e.coordDimensions||[],r,{dimsDef:e.dimensionsDefine||r.dimensionsDefine,encodeDef:e.encodeDefine||r.encodeDefine,dimCount:e.dimensionsCount,encodeDefaulter:e.encodeDefaulter,generateCoord:e.generateCoord,generateCoordCount:e.generateCoordCount})}var Ak=function(){function r(e){this.coordSysDims=[],this.axisMap=Z(),this.categoryAxisMap=Z(),this.coordSysName=e}return r}();function Ck(r){var e=r.get("coordinateSystem"),t=new Ak(e),a=Dk[e];if(a)return a(r,t,t.axisMap,t.categoryAxisMap),t}var Dk={cartesian2d:function(r,e,t,a){var i=r.getReferringComponents("xAxis",Wt).models[0],n=r.getReferringComponents("yAxis",Wt).models[0];e.coordSysDims=["x","y"],t.set("x",i),t.set("y",n),Nn(i)&&(a.set("x",i),e.firstCategoryDimIndex=0),Nn(n)&&(a.set("y",n),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,a){var i=r.getReferringComponents("singleAxis",Wt).models[0];e.coordSysDims=["single"],t.set("single",i),Nn(i)&&(a.set("single",i),e.firstCategoryDimIndex=0)},polar:function(r,e,t,a){var i=r.getReferringComponents("polar",Wt).models[0],n=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",n),t.set("angle",o),Nn(n)&&(a.set("radius",n),e.firstCategoryDimIndex=0),Nn(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),h=o[l];t.set(h,u),Nn(u)&&(a.set(h,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Nn(r){return r.get("type")==="category"}function Mk(r,e,t){t=t||{};var a=t.byIndex,i=t.stackedCoordDimension,n=!!(r&&r.get("stack")),o,s,l,u;if(A(e,function(c,p){ft(c)&&(e[p]=c={name:c}),n&&!c.isExtraCoord&&(!a&&!o&&c.ordinalMeta&&(o=c),!s&&c.type!=="ordinal"&&c.type!=="time"&&(!i||i===c.coordDim)&&(s=c))}),s&&!a&&!o&&(a=!0),s){l="__\0ecstackresult",u="__\0ecstackedover",o&&(o.createInvertedIndices=!0);var h=s.coordDim,f=s.type,v=0;A(e,function(c){c.coordDim===h&&v++}),e.push({name:l,coordDim:h,coordDimIndex:v,type:f,isExtraCoord:!0,isCalculationCoord:!0}),v++,e.push({name:u,coordDim:u,coordDimIndex:v,type:f,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:s&&s.name,stackedByDimension:o&&o.name,isStackedByIndex:a,stackedOverDimension:u,stackResultDimension:l}}function Da(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function WS(r,e){return Da(r,e)?r.getCalculationInfo("stackResultDimension"):e}function Jr(r,e,t){t=t||{},Du(r)||(r=pc(r));var a=e.get("coordinateSystem"),i=as.get(a),n=Ck(e),o;n&&n.coordSysDims&&(o=H(n.coordSysDims,function(p){var d={name:p},g=n.axisMap.get(p);if(g){var y=g.get("type");d.type=qu(y)}return d})),o||(o=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]);var s=t.useEncodeDefaulter,l=Ls(r,{coordDimensions:o,generateCoord:t.generateCoord,encodeDefaulter:wt(s)?s:s?j(f_,o,e):null}),u,h;n&&A(l,function(p,d){var g=p.coordDim,y=n.categoryAxisMap.get(g);y&&(u==null&&(u=d),p.ordinalMeta=y.getOrdinalMeta(),t.createInvertedIndices&&(p.createInvertedIndices=!0)),p.otherDims.itemName!=null&&(h=!0)}),!h&&u!=null&&(l[u].otherDims.itemName=0);var f=Mk(e,l),v=new xe(l,e);v.setCalculationInfo(f);var c=u!=null&&Lk(r)?function(p,d,g,y){return y===u?g:this.defaultDimValueGetter(p,d,g,y)}:null;return v.hasItemOption=!1,v.initData(r,null,c),v}function Lk(r){if(r.sourceFormat===Mr){var e=Ik(r.data||[]);return e!=null&&!B(Do(e))}}function Ik(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}var kr=function(){function r(e){this._setting=e||{},this._extent=[Infinity,-Infinity]}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}();kl(kr);var ap=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication}return r.createByAxisModel=function(e){var t=e.option,a=t.data,i=a&&H(a,Pk);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(typeof e!="string"&&!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=Z(this.categories))},r}();function Pk(r){return J(r)&&r.value!=null?r.value:r+""}var US=ae;function Rk(r,e,t,a){var i={},n=r[1]-r[0],o=i.interval=im(n/e,!0);t!=null&&o<t&&(o=i.interval=t),a!=null&&o>a&&(o=i.interval=a);var s=i.intervalPrecision=YS(o),l=i.niceTickExtent=[US(Math.ceil(r[0]/o)*o,s),US(Math.floor(r[1]/o)*o,s)];return Ek(l,r),i}function YS(r){return ai(r)+2}function XS(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function Ek(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),XS(r,0,e),XS(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function ju(r,e){return r>=e[0]&&r<=e[1]}function th(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function eh(r,e){return r*(e[1]-e[0])+e[0]}var rh=function(r){E(e,r);function e(t){var a=r.call(this,t)||this;a.type="ordinal";var i=a.getSetting("ordinalMeta");return i||(i=new ap({})),B(i)&&(i=new ap({categories:H(i,function(n){return J(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 typeof t=="string"?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),ju(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),th(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(eh(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 h=0;o<s;++o){for(;n[h]!=null;)h++;i.push(h),n[h]=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.niceTicks=function(){},e.prototype.niceExtent=function(){},e.type="ordinal",e}(kr);kr.registerClass(rh);var Vi=ae,zi=function(r){E(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 ju(t,this._extent)},e.prototype.normalize=function(t){return th(t,this._extent)},e.prototype.scale=function(t){return eh(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=YS(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:Vi(n[0]-a,o)}):s.push({value:i[0]}));for(var u=n[0];u<=n[1]&&(s.push({value:u}),u=Vi(u+a,o),u!==s[s.length-1].value);)if(s.length>l)return[];var h=s.length?s[s.length-1].value:n[1];return i[1]>h&&(t?s.push({value:Vi(h+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,h=[],f=s.value-l.value,v=f/t;u<t-1;){var c=Vi(l.value+(u+1)*v);c>n[0]&&c<n[1]&&h.push(c),u++}i.push(h)}return i},e.prototype.getLabel=function(t,a){if(t==null)return"";var i=a&&a.precision;i==null?i=ai(t.value)||0:i==="auto"&&(i=this._intervalPrecision);var n=Vi(t.value,i,!0);return e_(n)},e.prototype.niceTicks=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=Rk(n,t,a,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.niceExtent=function(t){var a=this._extent;if(a[0]===a[1])if(a[0]!==0){var i=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.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval;t.fixMin||(a[0]=Vi(Math.floor(a[0]/o)*o)),t.fixMax||(a[1]=Vi(Math.ceil(a[1]/o)*o))},e.type="interval",e}(kr);kr.registerClass(zi);var ip="__ec_stack_",$S=.5,np=typeof Float32Array!="undefined"?Float32Array:Array;function op(r){return r.get("stack")||ip+r.seriesIndex}function sp(r){return r.dim+r.index}function kk(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(X({bandWidth:i,axisKey:a,stackId:ip+n},r));for(var o=qS(e),s=[],n=0;n<r.count;n++){var l=o[a][ip+n];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function ZS(r,e){var t=[];return e.eachSeriesByType(r,function(a){JS(a)&&!jS(a)&&t.push(a)}),t}function Ok(r){var e={};A(r,function(l){var u=l.coordinateSystem,h=u.getBaseAxis();if(!(h.type!=="time"&&h.type!=="value"))for(var f=l.getData(),v=h.dim+"_"+h.index,c=f.mapDimension(h.dim),p=0,d=f.count();p<d;++p){var g=f.get(c,p);e[v]?e[v].push(g):e[v]=[g]}});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 lp(r){var e=Ok(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],h=Math.abs(o[1]-o[0]),f=n.scale.getExtent(),v=Math.abs(f[1]-f[0]);s=u?h/v*u:h}else{var c=a.getData();s=Math.abs(o[1]-o[0])/c.count()}var p=F(a.get("barWidth"),s),d=F(a.get("barMaxWidth"),s),g=F(a.get("barMinWidth")||1,s),y=a.get("barGap"),m=a.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:d,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:sp(n),stackId:op(a)})}),qS(t)}function qS(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 h=a.barWidth;h&&!l[u].width&&(l[u].width=h,h=Math.min(s.remainedWidth,h),s.remainedWidth-=h);var f=a.barMaxWidth;f&&(l[u].maxWidth=f);var v=a.barMinWidth;v&&(l[u].minWidth=v);var c=a.barGap;c!=null&&(s.gap=c);var p=a.barCategoryGap;p!=null&&(s.categoryGap=p)});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=F(s,o),h=F(a.gap,1),f=a.remainedWidth,v=a.autoWidthCount,c=(f-u)/(v+(v-1)*h);c=Math.max(c,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,f-=S+h*S,v--}else{var S=c;m&&m<S&&(S=Math.min(m,f)),_&&_>S&&(S=_),S!==c&&(y.width=S,f-=S+h*S,v--)}}),c=(f-u)/(v+(v-1)*h),c=Math.max(c,0);var p=0,d;A(n,function(y,m){y.width||(y.width=c),d=y,p+=y.width*(1+h)}),d&&(p-=d.width*h);var g=-p/2;A(n,function(y,m){t[i][m]=t[i][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+h)})}),t}function KS(r,e,t){if(r&&e){var a=r[sp(e)];return a!=null&&t!=null?a[op(t)]:a}}function QS(r,e){var t=ZS(r,e),a=lp(t),i={};A(t,function(n){var o=n.getData(),s=n.coordinateSystem,l=s.getBaseAxis(),u=op(n),h=a[sp(l)][u],f=h.offset,v=h.width,c=s.getOtherAxis(l),p=n.get("barMinHeight")||0;i[u]=i[u]||[],o.setLayout({bandWidth:h.bandWidth,offset:f,size:v});for(var d=o.mapDimension(c.dim),g=o.mapDimension(l.dim),y=Da(o,d),m=c.isHorizontal(),_=tx(l,c),S=0,x=o.count();S<x;S++){var b=o.get(d,S),w=o.get(g,S),T=b>=0?"p":"n",C=_;y&&(i[u][w]||(i[u][w]={p:_,n:_}),C=i[u][w][T]);var M=void 0,D=void 0,L=void 0,I=void 0;if(m){var P=s.dataToPoint([b,w]);M=C,D=P[1]+f,L=P[0]-_,I=v,Math.abs(L)<p&&(L=(L<0?-1:1)*p),isNaN(L)||y&&(i[u][w][T]+=L)}else{var P=s.dataToPoint([w,b]);M=P[0]+f,D=C,L=v,I=P[1]-_,Math.abs(I)<p&&(I=(I<=0?-1:1)*p),isNaN(I)||y&&(i[u][w][T]+=I)}o.setItemLayout(S,{x:M,y:D,width:L,height:I})}})}var Nk={seriesType:"bar",plan:Ln(),reset:function(r){if(!(!JS(r)||!jS(r))){var e=r.getData(),t=r.coordinateSystem,a=t.master.getRect(),i=t.getBaseAxis(),n=t.getOtherAxis(i),o=e.mapDimension(n.dim),s=e.mapDimension(i.dim),l=n.isHorizontal(),u=l?0:1,h=KS(lp([r]),i,r).width;return h>$S||(h=$S),{progress:function(f,v){for(var c=f.count,p=new np(c*2),d=new np(c*2),g=new np(c),y,m=[],_=[],S=0,x=0;(y=f.next())!=null;)_[u]=v.get(o,y),_[1-u]=v.get(s,y),m=t.dataToPoint(_,null,m),d[S]=l?a.x+a.width:m[0],p[S++]=m[0],d[S]=l?m[1]:a.y+a.height,p[S++]=m[1],g[x++]=y;v.setLayout({largePoints:p,largeDataIndices:g,largeBackgroundPoints:d,barWidth:h,valueAxisStart:tx(i,n),backgroundStart:l?a.x:a.y,valueAxisHorizontal:l})}}}}};function JS(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function jS(r){return r.pipelineContext&&r.pipelineContext.large}function tx(r,e,t){return e.toGlobalCoord(e.dataToCoord(e.type==="log"?1:0))}var Bk=function(r,e,t,a){for(;t<a;){var i=t+a>>>1;r[i][1]<e?t=i+1:a=i}return t},up=function(r){E(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 gu(t.value,Y0[FI(wn(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 GI(t,a,i,o,n)},e.prototype.getTicks=function(t){var a=this._interval,i=this._extent,n=[];if(!a)return n;n.push({value:i[0],level:0});var o=this.getSetting("useUTC"),s=Uk(this._minLevelUnit,this._approxInterval,o,i);return n=n.concat(s),n.push({value:i[1],level:0}),n},e.prototype.niceExtent=function(t){var a=this._extent;if(a[0]===a[1]&&(a[0]-=Ze,a[1]+=Ze),a[1]===-Infinity&&a[0]===Infinity){var i=new Date;a[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),a[0]=a[1]-Ze}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.niceTicks=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=ah.length,l=Math.min(Bk(ah,this._approxInterval,0,s),s-1);this._interval=ah[l][1],this._minLevelUnit=ah[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return typeof t=="number"?t:+mr(t)},e.prototype.contain=function(t){return ju(this.parse(t),this._extent)},e.prototype.normalize=function(t){return th(this.parse(t),this._extent)},e.prototype.scale=function(t){return eh(t,this._extent)},e.type="time",e}(zi),ah=[["second",Jv],["minute",jv],["hour",Jo],["quarter-day",Jo*6],["half-day",Jo*12],["day",Ze*1.2],["half-week",Ze*3.5],["week",Ze*7],["month",Ze*31],["quarter",Ze*95],["half-year",U0/2],["year",U0]];function Vk(r,e,t,a){var i=mr(e),n=mr(t),o=function(p){return Z0(i,p,a)===Z0(n,p,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},h=function(){return u()&&o("hour")},f=function(){return h()&&o("minute")},v=function(){return f()&&o("second")},c=function(){return v()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return h();case"minute":return f();case"second":return v();case"millisecond":return c()}}function zk(r,e){return r/=Ze,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function Fk(r){var e=30*Ze;return r/=e,r>6?6:r>3?3:r>2?2:1}function Gk(r){return r/=Jo,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function ex(r,e){return r/=e?jv:Jv,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function Hk(r){return im(r,!0)}function Wk(r,e,t){var a=new Date(r);switch(wn(e)){case"year":case"month":a[q0(t)](0);case"day":a[K0(t)](1);case"hour":a[Q0(t)](0);case"minute":a[J0(t)](0);case"second":a[j0(t)](0),a[t_(t)](0)}return a.getTime()}function Uk(r,e,t,a){var i=1e4,n=X0,o=0;function s(M,D,L,I,P,R,k){for(var N=new Date(D),O=D,G=N[I]();O<L&&O<=a[1];)k.push({value:O}),G+=M,N[P](G),O=N.getTime();k.push({value:O,notAdd:!0})}function l(M,D,L){var I=[],P=!D.length;if(!Vk(wn(M),a[0],a[1],t)){P&&(D=[{value:Wk(new Date(a[0]),M,t)},{value:a[1]}]);for(var R=0;R<D.length-1;R++){var k=D[R].value,N=D[R+1].value;if(k!==N){var O=void 0,G=void 0,z=void 0,W=!1;switch(M){case"year":O=Math.max(1,Math.round(e/Ze/365)),G=ec(t),z=HI(t);break;case"half-year":case"quarter":case"month":O=Fk(e),G=Tn(t),z=q0(t);break;case"week":case"half-week":case"day":O=zk(e),G=yu(t),z=K0(t),W=!0;break;case"half-day":case"quarter-day":case"hour":O=Gk(e),G=ts(t),z=Q0(t);break;case"minute":O=ex(e,!0),G=mu(t),z=J0(t);break;case"second":O=ex(e,!1),G=_u(t),z=j0(t);break;case"millisecond":O=Hk(e),G=Su(t),z=t_(t);break}s(O,k,N,G,z,W,I),M==="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=[],h=[],f=0,v=0,c=0;c<n.length&&o++<i;++c){var p=wn(n[c]);if(!!zI(n[c])){l(n[c],u[u.length-1]||[],h);var d=n[c+1]?wn(n[c+1]):null;if(p!==d){if(h.length){v=f,h.sort(function(M,D){return M.value-D.value});for(var g=[],y=0;y<h.length;++y){var m=h[y].value;(y===0||h[y-1].value!==m)&&(g.push(h[y]),m>=a[0]&&m<=a[1]&&f++)}var _=(a[1]-a[0])/e;if(f>_*1.5&&v>_/1.5||(u.push(g),f>_||r===n[c]))break}h=[]}}}for(var S=kt(H(u,function(M){return kt(M,function(D){return D.value>=a[0]&&D.value<=a[1]&&!D.notAdd})}),function(M){return M.length>0}),x=[],b=S.length-1,c=0;c<S.length;++c)for(var w=S[c],T=0;T<w.length;++T)x.push({value:w[T].value,level:b-c});x.sort(function(M,D){return M.value-D.value});for(var C=[],c=0;c<x.length;++c)(c===0||x[c].value!==x[c-1].value)&&C.push(x[c]);return C}kr.registerClass(up);var rx=kr.prototype,Is=zi.prototype,Yk=ai,Xk=ae,$k=Math.floor,Zk=Math.ceil,ih=Math.pow,je=Math.log,hp=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new zi,t._interval=0,t}return e.prototype.getTicks=function(t){var a=this._originalScale,i=this._extent,n=a.getExtent(),o=Is.getTicks.call(this,t);return H(o,function(s){var l=s.value,u=ae(ih(this.base,l));return u=l===i[0]&&this._fixMin?nh(u,n[0]):u,u=l===i[1]&&this._fixMax?nh(u,n[1]):u,{value:u}},this)},e.prototype.setExtent=function(t,a){var i=this.base;t=je(t)/je(i),a=je(a)/je(i),Is.setExtent.call(this,t,a)},e.prototype.getExtent=function(){var t=this.base,a=rx.getExtent.call(this);a[0]=ih(t,a[0]),a[1]=ih(t,a[1]);var i=this._originalScale,n=i.getExtent();return this._fixMin&&(a[0]=nh(a[0],n[0])),this._fixMax&&(a[1]=nh(a[1],n[1])),a},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var a=this.base;t[0]=je(t[0])/je(a),t[1]=je(t[1])/je(a),rx.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,a){this.unionExtent(t.getApproximateExtent(a))},e.prototype.niceTicks=function(t){t=t||10;var a=this._extent,i=a[1]-a[0];if(!(i===Infinity||i<=0)){var n=cL(i),o=t/i*n;for(o<=.5&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0;)n*=10;var s=[ae(Zk(a[0]/n)*n),ae($k(a[1]/n)*n)];this._interval=n,this._niceExtent=s}},e.prototype.niceExtent=function(t){Is.niceExtent.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=je(t)/je(this.base),ju(t,this._extent)},e.prototype.normalize=function(t){return t=je(t)/je(this.base),th(t,this._extent)},e.prototype.scale=function(t){return t=eh(t,this._extent),ih(this.base,t)},e.type="log",e}(kr),ax=hp.prototype;ax.getMinorTicks=Is.getMinorTicks,ax.getLabel=Is.getLabel;function nh(r,e){return Xk(r,Yk(e))}kr.registerClass(hp);var qk=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=t.getNeedCrossZero&&t.getNeedCrossZero();var n=this._modelMinRaw=t.get("min",!0);wt(n)?this._modelMinNum=Bn(e,n({min:a[0],max:a[1]})):n!=="dataMin"&&(this._modelMinNum=Bn(e,n));var o=this._modelMaxRaw=t.get("max",!0);if(wt(o)?this._modelMaxNum=Bn(e,o({min:a[0],max:a[1]})):o!=="dataMax"&&(this._modelMaxNum=Bn(e,o)),i)this._axisDataLen=t.getCategories().length;else{var s=t.get("boundaryGap"),l=B(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[He(l[0],1),He(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,h=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),s>l&&(s=NaN,l=NaN);var f=lo(s)||lo(l)||e&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!h&&(l=0));var v=this._determinedMin,c=this._determinedMax;return v!=null&&(s=v,u=!0),c!=null&&(l=c,h=!0),{min:s,max:l,minFixed:u,maxFixed:h,isBlank:f}},r.prototype.modifyDataMinMax=function(e,t){this[Qk[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var a=Kk[e];this[a]=t},r.prototype.freeze=function(){this.frozen=!0},r}(),Kk={min:"_determinedMin",max:"_determinedMax"},Qk={min:"_dataMin",max:"_dataMax"};function ix(r,e,t){var a=r.rawExtentInfo;return a||(a=new qk(r,e,t),r.rawExtentInfo=a,a)}function Bn(r,e){return e==null?null:lo(e)?NaN:r.parse(e)}function nx(r,e){var t=r.type,a=ix(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=ZS("bar",o),l=!1;if(A(s,function(f){l=l||f.getBaseAxis()===e.axis}),l){var u=lp(s),h=Jk(i,n,e,u);i=h.min,n=h.max}}return{extent:[i,n],fixMin:a.minFixed,fixMax:a.maxFixed}}function Jk(r,e,t,a){var i=t.axis.getExtent(),n=i[1]-i[0],o=KS(a,t.axis);if(o===void 0)return{min:r,max:e};var s=Infinity;A(o,function(c){s=Math.min(c.offset,s)});var l=-Infinity;A(o,function(c){l=Math.max(c.offset+c.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,h=e-r,f=1-(s+l)/n,v=h/f-h;return e+=v*(l/u),r-=v*(s/u),{min:r,max:e}}function Fi(r,e){var t=nx(r,e),a=t.extent,i=e.get("splitNumber");r instanceof hp&&(r.base=e.get("logBase"));var n=r.type;r.setExtent(a[0],a[1]),r.niceExtent({splitNumber:i,fixMin:t.fixMin,fixMax:t.fixMax,minInterval:n==="interval"||n==="time"?e.get("minInterval"):null,maxInterval:n==="interval"||n==="time"?e.get("maxInterval"):null});var o=e.get("interval");o!=null&&r.setInterval&&r.setInterval(o)}function oh(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new rh({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[Infinity,-Infinity]});case"time":return new up({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(kr.getClass(e)||zi)}}function jk(r){var e=r.scale.getExtent(),t=e[0],a=e[1];return!(t>0&&a>0||t<0&&a<0)}function Ps(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):typeof e=="string"?function(a){return function(i){var n=r.scale.getLabel(i),o=a.replace("{value}",n!=null?n:"");return o}}(e):typeof e=="function"?function(a){return function(i,n){return t!=null&&(n=i.value-t),a(fp(r,i),n,i.level!=null?{level:i.level}:null)}}(e):function(a){return r.scale.getLabel(a)}}function fp(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function tO(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var a,i,n=t.getExtent();t instanceof rh?i=t.count():(a=t.getTicks(),i=a.length);var o=r.getLabelModel(),s=Ps(r),l,u=1;i>40&&(u=Math.ceil(i/40));for(var h=0;h<i;h+=u){var f=a?a[h]:{value:n[0]+h},v=s(f,h),c=o.getTextRect(v),p=eO(c,o.get("rotate")||0);l?l.union(p):l=p}return l}}function eO(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 ot(r.x,r.y,n,o);return s}function vp(r){var e=r.get("interval");return e==null?"auto":e}function ox(r){return r.type==="category"&&vp(r.getLabelModel())===0}function sh(r,e){var t={};return A(r.mapDimensionsAll(e),function(a){t[WS(r,a)]=!0}),St(t)}function rO(r,e,t){e&&A(sh(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 Rs=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r}(),Es=At();function aO(r){return r.type==="category"?nO(r):sO(r)}function iO(r,e){return r.type==="category"?oO(r,e):{ticks:H(r.scale.getTicks(),function(t){return t.value})}}function nO(r){var e=r.getLabelModel(),t=sx(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function sx(r,e){var t=lx(r,"labels"),a=vp(e),i=ux(t,a);if(i)return i;var n,o;return wt(a)?n=vx(r,a):(o=a==="auto"?lO(r):a,n=fx(r,o)),hx(t,a,{labels:n,labelCategoryInterval:o})}function oO(r,e){var t=lx(r,"ticks"),a=vp(e),i=ux(t,a);if(i)return i;var n,o;if((!e.get("show")||r.scale.isBlank())&&(n=[]),wt(a))n=vx(r,a,!0);else if(a==="auto"){var s=sx(r,r.getLabelModel());o=s.labelCategoryInterval,n=H(s.labels,function(l){return l.tickValue})}else o=a,n=fx(r,o,!0);return hx(t,a,{ticks:n,tickCategoryInterval:o})}function sO(r){var e=r.scale.getTicks(),t=Ps(r);return{labels:H(e,function(a,i){return{formattedLabel:t(a,i),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function lx(r,e){return Es(r)[e]||(Es(r)[e]=[])}function ux(r,e){for(var t=0;t<r.length;t++)if(r[t].key===e)return r[t].value}function hx(r,e,t){return r.push({key:e,value:t}),t}function lO(r){var e=Es(r).autoInterval;return e!=null?e:Es(r).autoInterval=r.calculateCategoryInterval()}function uO(r){var e=hO(r),t=Ps(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),h=Math.abs(u*Math.cos(a)),f=Math.abs(u*Math.sin(a)),v=0,c=0;l<=n[1];l+=s){var p=0,d=0,g=wo(t({value:l}),e.font,"center","top");p=g.width*1.3,d=g.height*1.3,v=Math.max(v,p,7),c=Math.max(c,d,7)}var y=v/h,m=c/f;isNaN(y)&&(y=Infinity),isNaN(m)&&(m=Infinity);var _=Math.max(0,Math.floor(Math.min(y,m))),S=Es(r.model),x=r.getExtent(),b=S.lastAutoInterval,w=S.lastTickCount;return b!=null&&w!=null&&Math.abs(b-_)<=1&&Math.abs(w-o)<=1&&b>_&&S.axisExtent0===x[0]&&S.axisExtent1===x[1]?_=b:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=x[0],S.axisExtent1=x[1]),_}function hO(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 fx(r,e,t){var a=Ps(r),i=r.scale,n=i.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=n[0],h=i.count();u!==0&&l>1&&h/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=ox(r),v=o.get("showMinLabel")||f,c=o.get("showMaxLabel")||f;v&&u!==n[0]&&d(n[0]);for(var p=u;p<=n[1];p+=l)d(p);c&&p-l!==n[1]&&d(n[1]);function d(g){var y={value:g};s.push(t?g:{formattedLabel:a(y),rawLabel:i.getLabel(y),tickValue:g})}return s}function vx(r,e,t){var a=r.scale,i=Ps(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 cx=[0,1],gr=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 tm(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(),px(a,i.count())),Tt(e,cx,a,t)},r.prototype.coordToData=function(e,t){var a=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(a=a.slice(),px(a,i.count()));var n=Tt(e,a,cx,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=iO(this,t),i=a.ticks,n=H(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return fO(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=H(a,function(n){return H(n,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(){return aO(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 uO(this)},r}();function px(r,e){var t=r[1]-r[0],a=e,i=t/a/2;r[0]+=i,r[1]-=i}function fO(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(c){c.coord-=u/2});var h=r.scale.getExtent();s=1+h[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*s},e.push(o)}var f=n[0]>n[1];v(e[0].coord,n[0])&&(a?e[0].coord=n[0]:e.shift()),a&&v(n[0],e[0].coord)&&e.unshift({coord:n[0]}),v(n[1],o.coord)&&(a?o.coord=n[1]:e.pop()),a&&v(o.coord,n[1])&&e.push({coord:n[1]});function v(c,p){return c=ae(c),p=ae(p),f?c>p:c<p}}function jr(r){return document.createElementNS("http://www.w3.org/2000/svg",r)}function vO(r,e,t){t||(t=function(c,p){return c===p}),r=r.slice(),e=e.slice();var a=e.length,i=r.length,n=1,o=a+i,s=[{newPos:-1,components:[]}],l=dx(s[0],e,r,0,t);if(s[0].newPos+1>=a&&l+1>=i){for(var u=[],h=0;h<e.length;h++)u.push(h);return[{indices:u,count:e.length,added:!1,removed:!1}]}function f(){for(var c=-1*n;c<=n;c+=2){var p,d=s[c-1],g=s[c+1],y=(g?g.newPos:0)-c;d&&(s[c-1]=void 0);var m=d&&d.newPos+1<a,_=g&&0<=y&&y<i;if(!m&&!_){s[c]=void 0;continue}if(!m||_&&d.newPos<g.newPos?(p=pO(g),gx(p.components,!1,!0)):(p=d,p.newPos++,gx(p.components,!0,!1)),y=dx(p,e,r,c,t),p.newPos+1>=a&&y+1>=i)return cO(p.components);s[c]=p}n++}for(;n<=o;){var v=f();if(v)return v}}function dx(r,e,t,a,i){for(var n=e.length,o=t.length,s=r.newPos,l=s-a,u=0;s+1<n&&l+1<o&&i(e[s+1],t[l+1]);)s++,l++,u++;return u&&r.components.push({count:u,added:!1,removed:!1,indices:[]}),r.newPos=s,l}function gx(r,e,t){var a=r[r.length-1];a&&a.added===e&&a.removed===t?r[r.length-1]={count:a.count+1,added:e,removed:t,indices:[]}:r.push({count:1,added:e,removed:t,indices:[]})}function cO(r){for(var e=0,t=r.length,a=0,i=0;e<t;e++){var n=r[e];if(n.removed){for(var s=i;s<i+n.count;s++)n.indices.push(s);i+=n.count}else{for(var o=[],s=a;s<a+n.count;s++)o.push(s);n.indices=o,a+=n.count,n.added||(i+=n.count)}}return r}function pO(r){return{newPos:r.newPos,components:r.components.slice(0)}}function dO(r,e,t){return vO(r,e,t)}var Vn="none",lh=Math.round,yx=Math.sin,mx=Math.cos,_x=Math.PI,Ma=Math.PI*2,Sx=180/_x,xx=1e-4;function uh(r){return lh(r*1e3)/1e3}function ta(r){return lh(r*1e4)/1e4}function bx(r){return r<xx&&r>-xx}function gO(r){var e=r.fill;return e!=null&&e!==Vn}function yO(r){var e=r.stroke;return e!=null&&e!==Vn}function cp(r,e){e&&Bt(r,"transform","matrix("+uh(e[0])+","+uh(e[1])+","+uh(e[2])+","+uh(e[3])+","+ta(e[4])+","+ta(e[5])+")")}function Bt(r,e,t){(!t||t.type!=="linear"&&t.type!=="radial")&&r.setAttribute(e,t)}function mO(r,e,t){r.setAttributeNS("http://www.w3.org/1999/xlink",e,t)}function _O(r,e,t){r.setAttributeNS("http://www.w3.org/XML/1998/namespace",e,t)}function pp(r,e,t){var a=e.opacity==null?1:e.opacity;if(t instanceof Zt){r.style.opacity=a+"";return}if(gO(e)){var i=e.fill;i=i==="transparent"?Vn:i,Bt(r,"fill",i),Bt(r,"fill-opacity",(e.fillOpacity!=null?e.fillOpacity*a:a)+"")}else Bt(r,"fill",Vn);if(yO(e)){var n=e.stroke;n=n==="transparent"?Vn:n,Bt(r,"stroke",n);var o=e.lineWidth,s=e.strokeNoScale?t.getLineScale():1;Bt(r,"stroke-width",(s?o/s:0)+""),Bt(r,"paint-order",e.strokeFirst?"stroke":"fill"),Bt(r,"stroke-opacity",(e.strokeOpacity!=null?e.strokeOpacity*a:a)+"");var l=e.lineDash&&o>0&&Ic(e.lineDash,o);if(l){var u=e.lineDashOffset;s&&s!==1&&(l=H(l,function(h){return h/s}),u&&(u/=s,u=lh(u))),Bt(r,"stroke-dasharray",l.join(",")),Bt(r,"stroke-dashoffset",(u||0)+"")}else Bt(r,"stroke-dasharray","");e.lineCap&&Bt(r,"stroke-linecap",e.lineCap),e.lineJoin&&Bt(r,"stroke-linejoin",e.lineJoin),e.miterLimit&&Bt(r,"stroke-miterlimit",e.miterLimit+"")}else Bt(r,"stroke",Vn)}var SO=function(){function r(){}return r.prototype.reset=function(){this._d=[],this._str=""},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=this._d.length===0,h=s-o,f=!l,v=Math.abs(h),c=bx(v-Ma)||(f?h>=Ma:-h>=Ma),p=h>0?h%Ma:h%Ma+Ma,d=!1;c?d=!0:bx(v)?d=!1:d=p>=_x==!!f;var g=ta(e+a*mx(o)),y=ta(t+i*yx(o));c&&(f?h=Ma-1e-4:h=-Ma+1e-4,d=!0,u&&this._d.push("M",g,y));var m=ta(e+a*mx(o+h)),_=ta(t+i*yx(o+h));if(isNaN(g)||isNaN(y)||isNaN(a)||isNaN(i)||isNaN(n)||isNaN(Sx)||isNaN(m)||isNaN(_))return"";this._d.push("A",ta(a),ta(i),lh(n*Sx),+d,+f,m,_)},r.prototype.rect=function(e,t,a,i){this._add("M",e,t),this._add("L",e+a,t),this._add("L",e+a,t+i),this._add("L",e,t+i),this._add("L",e,t)},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,a,i,n,o,s,l,u){this._d.push(e);for(var h=1;h<arguments.length;h++){var f=arguments[h];if(isNaN(f)){this._invalid=!0;return}this._d.push(ta(f))}},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(" "),this._d=[]},r.prototype.getStr=function(){return this._str},r}(),hh={brush:function(r){var e=r.style,t=r.__svgEl;t||(t=jr("path"),r.__svgEl=t),r.path||r.createPathProxy();var a=r.path;r.shapeChanged()&&(a.beginPath(),r.buildPath(a,r.shape),r.pathUpdated());var i=a.getVersion(),n=r,o=n.__svgPathBuilder;(n.__svgPathVersion!==i||!o||r.style.strokePercent<1)&&(o||(o=n.__svgPathBuilder=new SO),o.reset(),a.rebuildPath(o,r.style.strokePercent),o.generateStr(),n.__svgPathVersion=i),Bt(t,"d",o.getStr()),pp(t,e,r),cp(t,r.transform)}},Tx={brush:function(r){var e=r.style,t=e.image;if(t instanceof HTMLImageElement?t=t.src:t instanceof HTMLCanvasElement&&(t=t.toDataURL()),!!t){var a=e.x||0,i=e.y||0,n=e.width,o=e.height,s=r.__svgEl;s||(s=jr("image"),r.__svgEl=s),t!==r.__imageSrc&&(mO(s,"href",t),r.__imageSrc=t),Bt(s,"width",n+""),Bt(s,"height",o+""),Bt(s,"x",a+""),Bt(s,"y",i+""),pp(s,e,r),cp(s,r.transform)}}},xO={left:"start",right:"end",center:"middle",middle:"middle"};function bO(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}var Ax={brush:function(r){var e=r.style,t=e.text;if(t!=null&&(t+=""),!(!t||isNaN(e.x)||isNaN(e.y))){var a=r.__svgEl;a||(a=jr("text"),_O(a,"xml:space","preserve"),r.__svgEl=a);var i=e.font||ri,n=a.style;n.font=i,a.textContent=t,pp(a,e,r),cp(a,r.transform);var o=e.x||0,s=bO(e.y||0,Il(i),e.textBaseline),l=xO[e.textAlign]||e.textAlign;Bt(a,"dominant-baseline","central"),Bt(a,"text-anchor",l),Bt(a,"x",o+""),Bt(a,"y",s+"")}}},Cx="0",Dx="1",fh=function(){function r(e,t,a,i,n){this.nextId=0,this._domName="_dom",this.createElement=jr,this._zrId=e,this._svgRoot=t,this._tagNames=typeof a=="string"?[a]:a,this._markLabel=i,n&&(this._domName=n)}return r.prototype.getDefs=function(e){var t=this._svgRoot,a=this._svgRoot.getElementsByTagName("defs");if(a.length===0)if(e){var i=t.insertBefore(this.createElement("defs"),t.firstChild);return i.contains||(i.contains=function(n){var o=i.children;if(!o)return!1;for(var s=o.length-1;s>=0;--s)if(o[s]===n)return!0;return!1}),i}else return null;else return a[0]},r.prototype.doUpdate=function(e,t){if(!!e){var a=this.getDefs(!1);if(e[this._domName]&&a.contains(e[this._domName]))typeof t=="function"&&t(e);else{var i=this.add(e);i&&(e[this._domName]=i)}}},r.prototype.add=function(e){return null},r.prototype.addDom=function(e){var t=this.getDefs(!0);e.parentNode!==t&&t.appendChild(e)},r.prototype.removeDom=function(e){var t=this.getDefs(!1);t&&e[this._domName]&&(t.removeChild(e[this._domName]),e[this._domName]=null)},r.prototype.getDoms=function(){var e=this.getDefs(!1);if(!e)return[];var t=[];return A(this._tagNames,function(a){for(var i=e.getElementsByTagName(a),n=0;n<i.length;n++)t.push(i[n])}),t},r.prototype.markAllUnused=function(){var e=this.getDoms(),t=this;A(e,function(a){a[t._markLabel]=Cx})},r.prototype.markDomUsed=function(e){e&&(e[this._markLabel]=Dx)},r.prototype.markDomUnused=function(e){e&&(e[this._markLabel]=Cx)},r.prototype.isDomUnused=function(e){return e&&e[this._markLabel]!==Dx},r.prototype.removeUnused=function(){var e=this,t=this.getDefs(!1);if(!!t){var a=this.getDoms();A(a,function(i){e.isDomUnused(i)&&t.removeChild(i)})}},r.prototype.getSvgProxy=function(e){return e instanceof ct?hh:e instanceof Zt?Tx:e instanceof gi?Ax:hh},r.prototype.getSvgElement=function(e){return e.__svgEl},r}();function Mx(r){return r.type==="linear"}function Lx(r){return r.type==="radial"}function Ix(r){return r&&(r.type==="linear"||r.type==="radial")}var wO=function(r){E(e,r);function e(t,a){return r.call(this,t,a,["linearGradient","radialGradient"],"__gradient_in_use__")||this}return e.prototype.addWithoutUpdate=function(t,a){if(a&&a.style){var i=this;A(["fill","stroke"],function(n){var o=a.style[n];if(Ix(o)){var s=o,l=i.getDefs(!0),u=void 0;s.__dom?(u=s.__dom,l.contains(s.__dom)||i.addDom(u)):u=i.add(s),i.markUsed(a);var h=u.getAttribute("id");t.setAttribute(n,"url(#"+h+")")}})}},e.prototype.add=function(t){var a;if(Mx(t))a=this.createElement("linearGradient");else if(Lx(t))a=this.createElement("radialGradient");else return Fr("Illegal gradient type."),null;return t.id=t.id||this.nextId++,a.setAttribute("id","zr"+this._zrId+"-gradient-"+t.id),this.updateDom(t,a),this.addDom(a),a},e.prototype.update=function(t){if(!!Ix(t)){var a=this;this.doUpdate(t,function(){var i=t.__dom;if(!!i){var n=i.tagName,o=t.type;o==="linear"&&n==="linearGradient"||o==="radial"&&n==="radialGradient"?a.updateDom(t,t.__dom):(a.removeDom(t),a.add(t))}})}},e.prototype.updateDom=function(t,a){if(Mx(t))a.setAttribute("x1",t.x+""),a.setAttribute("y1",t.y+""),a.setAttribute("x2",t.x2+""),a.setAttribute("y2",t.y2+"");else if(Lx(t))a.setAttribute("cx",t.x+""),a.setAttribute("cy",t.y+""),a.setAttribute("r",t.r+"");else{Fr("Illegal gradient type.");return}t.global?a.setAttribute("gradientUnits","userSpaceOnUse"):a.setAttribute("gradientUnits","objectBoundingBox"),a.innerHTML="";for(var i=t.colorStops,n=0,o=i.length;n<o;++n){var s=this.createElement("stop");s.setAttribute("offset",i[n].offset*100+"%");var l=i[n].color;if(l.indexOf("rgba")>-1){var u=Ge(l)[3],h=Iy(l);s.setAttribute("stop-color","#"+h),s.setAttribute("stop-opacity",u+"")}else s.setAttribute("stop-color",i[n].color);a.appendChild(s)}t.__dom=a},e.prototype.markUsed=function(t){if(t.style){var a=t.style.fill;a&&a.__dom&&r.prototype.markDomUsed.call(this,a.__dom),a=t.style.stroke,a&&a.__dom&&r.prototype.markDomUsed.call(this,a.__dom)}},e}(fh);function ks(r){return r&&(!!r.image||!!r.svgElement)}var Os=new P1,TO=function(r){E(e,r);function e(t,a){return r.call(this,t,a,["pattern"],"__pattern_in_use__")||this}return e.prototype.addWithoutUpdate=function(t,a){if(a&&a.style){var i=this;A(["fill","stroke"],function(n){var o=a.style[n];if(ks(o)){var s=i.getDefs(!0),l=Os.get(o);l?s.contains(l)||i.addDom(l):l=i.add(o),i.markUsed(a);var u=l.getAttribute("id");t.setAttribute(n,"url(#"+u+")")}})}},e.prototype.add=function(t){if(!!ks(t)){var a=this.createElement("pattern");return t.id=t.id==null?this.nextId++:t.id,a.setAttribute("id","zr"+this._zrId+"-pattern-"+t.id),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("patternUnits","userSpaceOnUse"),this.updateDom(t,a),this.addDom(a),a}},e.prototype.update=function(t){if(!!ks(t)){var a=this;this.doUpdate(t,function(){var i=Os.get(t);a.updateDom(t,i)})}},e.prototype.updateDom=function(t,a){var i=t.svgElement;if(i instanceof SVGElement)i.parentNode!==a&&(a.innerHTML="",a.appendChild(i),a.setAttribute("width",t.svgWidth+""),a.setAttribute("height",t.svgHeight+""));else{var n=void 0,o=a.getElementsByTagName("image");if(o.length)if(t.image)n=o[0];else{a.removeChild(o[0]);return}else t.image&&(n=this.createElement("image"));if(n){var s=void 0;if(typeof t.image=="string"?s=t.image:t.image instanceof HTMLImageElement?s=t.image.src:t.image instanceof HTMLCanvasElement&&(s=t.image.toDataURL()),s){n.setAttribute("href",s),n.setAttribute("x","0"),n.setAttribute("y","0");var l={dirty:function(){}},u=vv(s,n,l,function(g){a.setAttribute("width",g.width+""),a.setAttribute("height",g.height+"")});u&&u.width&&u.height&&(a.setAttribute("width",u.width+""),a.setAttribute("height",u.height+"")),a.appendChild(n)}}}var h=t.x||0,f=t.y||0,v=(t.rotation||0)/Math.PI*180,c=t.scaleX||1,p=t.scaleY||1,d="translate("+h+", "+f+") rotate("+v+") scale("+c+", "+p+")";a.setAttribute("patternTransform",d),Os.set(t,a)},e.prototype.markUsed=function(t){t.style&&(ks(t.style.fill)&&r.prototype.markDomUsed.call(this,Os.get(t.style.fill)),ks(t.style.stroke)&&r.prototype.markDomUsed.call(this,Os.get(t.style.stroke)))},e}(fh);function AO(r){var e=[];if(r)for(var t=0;t<r.length;t++){var a=r[t];e.push(a.id)}return e.join(",")}function Px(r){var e=r.__clipPaths;return e&&e.length>0}var CO=function(r){E(e,r);function e(t,a){var i=r.call(this,t,a,"clipPath","__clippath_in_use__")||this;return i._refGroups={},i._keyDuplicateCount={},i}return e.prototype.markAllUnused=function(){r.prototype.markAllUnused.call(this);for(var t in this._refGroups)this.markDomUnused(this._refGroups[t]);this._keyDuplicateCount={}},e.prototype._getClipPathGroup=function(t,a){if(!!Px(t)){var i=t.__clipPaths,n=this._keyDuplicateCount,o=AO(i);return R1(i,a&&a.__clipPaths)&&(n[o]=n[o]||0,n[o]&&(o+="-"+n[o]),n[o]++),this._refGroups[o]||(this._refGroups[o]=this.createElement("g"))}},e.prototype.update=function(t,a){var i=this._getClipPathGroup(t,a);return i&&(this.markDomUsed(i),this.updateDom(i,t.__clipPaths)),i},e.prototype.updateDom=function(t,a){if(a&&a.length>0){var i=this.getDefs(!0),n=a[0],o=void 0,s=void 0;n._dom?(s=n._dom.getAttribute("id"),o=n._dom,i.contains(o)||i.appendChild(o)):(s="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,o=this.createElement("clipPath"),o.setAttribute("id",s),i.appendChild(o),n._dom=o);var l=this.getSvgProxy(n);l.brush(n);var u=this.getSvgElement(n);o.innerHTML="",o.appendChild(u),t.setAttribute("clip-path","url(#"+s+")"),a.length>1&&this.updateDom(o,a.slice(1))}else t&&t.setAttribute("clip-path","none")},e.prototype.markUsed=function(t){var a=this;t.__clipPaths&&A(t.__clipPaths,function(i){i._dom&&r.prototype.markDomUsed.call(a,i._dom)})},e.prototype.removeUnused=function(){r.prototype.removeUnused.call(this);var t={};for(var a in this._refGroups){var i=this._refGroups[a];this.isDomUnused(i)?i.parentNode&&i.parentNode.removeChild(i):t[a]=i}this._refGroups=t},e}(fh),DO=function(r){E(e,r);function e(t,a){var i=r.call(this,t,a,["filter"],"__filter_in_use__","_shadowDom")||this;return i._shadowDomMap={},i._shadowDomPool=[],i}return e.prototype._getFromPool=function(){var t=this._shadowDomPool.pop();if(!t){t=this.createElement("filter"),t.setAttribute("id","zr"+this._zrId+"-shadow-"+this.nextId++);var a=this.createElement("feDropShadow");t.appendChild(a),this.addDom(t)}return t},e.prototype.update=function(t,a){var i=a.style;if(MO(i)){var n=LO(a),o=a._shadowDom=this._shadowDomMap[n];o||(o=this._getFromPool(),this._shadowDomMap[n]=o),this.updateDom(t,a,o)}else this.remove(t,a)},e.prototype.remove=function(t,a){a._shadowDom!=null&&(a._shadowDom=null,t.style.filter="")},e.prototype.updateDom=function(t,a,i){var n=i.children[0],o=a.style,s=a.getGlobalScale(),l=s[0],u=s[1];if(!(!l||!u)){var h=o.shadowOffsetX||0,f=o.shadowOffsetY||0,v=o.shadowBlur,c=o.shadowColor;n.setAttribute("dx",h/l+""),n.setAttribute("dy",f/u+""),n.setAttribute("flood-color",c);var p=v/2/l,d=v/2/u,g=p+" "+d;n.setAttribute("stdDeviation",g),i.setAttribute("x","-100%"),i.setAttribute("y","-100%"),i.setAttribute("width","300%"),i.setAttribute("height","300%"),a._shadowDom=i;var y=i.getAttribute("id");t.style.filter="url(#"+y+")"}},e.prototype.removeUnused=function(){var t=this.getDefs(!1);if(!!t){var a=this._shadowDomPool;for(var i in this._shadowDomMap){var n=this._shadowDomMap[i];a.push(n)}this._shadowDomMap={}}},e}(fh);function MO(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function LO(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 vh(r){return parseInt(r,10)}function Rx(r){return r instanceof ct?hh:r instanceof Zt?Tx:r instanceof gi?Ax:hh}function Ex(r,e){return e&&r&&e.parentNode!==r}function kx(r,e,t){if(Ex(r,e)&&t){var a=t.nextSibling;a?r.insertBefore(e,a):r.appendChild(e)}}function Ox(r,e){if(Ex(r,e)){var t=r.firstChild;t?r.insertBefore(e,t):r.appendChild(e)}}function IO(r,e){e&&r&&e.parentNode===r&&r.removeChild(e)}function PO(r){r&&r.parentNode&&r.parentNode.removeChild(r)}function Ns(r){return r.__svgEl}var RO=function(){function r(e,t,a,i){this.type="svg",this.refreshHover=dp("refreshHover"),this.pathToImage=dp("pathToImage"),this.configLayer=dp("configLayer"),this.root=e,this.storage=t,this._opts=a=V({},a||{});var n=jr("svg");n.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),n.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),n.setAttribute("version","1.1"),n.setAttribute("baseProfile","full"),n.style.cssText="user-select:none;position:absolute;left:0;top:0;";var o=jr("g");n.appendChild(o);var s=jr("g");n.appendChild(s),this._gradientManager=new wO(i,s),this._patternManager=new TO(i,s),this._clipPathManager=new CO(i,s),this._shadowManager=new DO(i,s);var l=document.createElement("div");l.style.cssText="overflow:hidden;position:relative",this._svgDom=n,this._svgRoot=s,this._backgroundRoot=o,this._viewport=l,e.appendChild(l),l.appendChild(n),this.resize(a.width,a.height),this._visibleList=[]}return r.prototype.getType=function(){return"svg"},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.getSvgRoot=function(){return this._svgRoot},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.refresh=function(){var e=this.storage.getDisplayList(!0);this._paintList(e)},r.prototype.setBackgroundColor=function(e){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var t=jr("rect");t.setAttribute("width",this.getWidth()),t.setAttribute("height",this.getHeight()),t.setAttribute("x",0),t.setAttribute("y",0),t.setAttribute("id",0),t.style.fill=e,this._backgroundRoot.appendChild(t),this._backgroundNode=t},r.prototype.createSVGElement=function(e){return jr(e)},r.prototype.paintOne=function(e){var t=Rx(e);return t&&t.brush(e),Ns(e)},r.prototype._paintList=function(e){var t=this._gradientManager,a=this._patternManager,i=this._clipPathManager,n=this._shadowManager;t.markAllUnused(),a.markAllUnused(),i.markAllUnused(),n.markAllUnused();for(var o=this._svgRoot,s=this._visibleList,l=e.length,u=[],h=0;h<l;h++){var f=e[h],v=Rx(f),c=Ns(f);f.invisible||((f.__dirty||!c)&&(v&&v.brush(f),c=Ns(f),c&&f.style&&(t.update(f.style.fill),t.update(f.style.stroke),a.update(f.style.fill),a.update(f.style.stroke),n.update(c,f)),f.__dirty=0),c&&u.push(f))}for(var p=dO(s,u),d,g,h=0;h<p.length;h++){var y=p[h];if(y.removed)for(var m=0;m<y.count;m++){var f=s[y.indices[m]],c=Ns(f);Px(f)?PO(c):IO(o,c)}}for(var _,S,h=0;h<p.length;h++){var y=p[h];if(!y.removed)for(var m=0;m<y.count;m++){var f=u[y.indices[m]],x=i.update(f,_);x!==S&&(d=g,x&&(d?kx(o,x,d):Ox(o,x),g=x,d=null),S=x);var c=Ns(f);d?kx(S||o,c,d):Ox(S||o,c),d=c||d,S||(g=d),t.markUsed(f),t.addWithoutUpdate(c,f),a.markUsed(f),a.addWithoutUpdate(c,f),i.markUsed(f),_=f}}t.removeUnused(),a.removeUnused(),i.removeUnused(),n.removeUnused(),this._visibleList=u},r.prototype.resize=function(e,t){var a=this._viewport;a.style.display="none";var i=this._opts;if(e!=null&&(i.width=e),t!=null&&(i.height=t),e=this._getSize(0),t=this._getSize(1),a.style.display="",this._width!==e||this._height!==t){this._width=e,this._height=t;var n=a.style;n.width=e+"px",n.height=t+"px";var o=this._svgDom;o.setAttribute("width",e+""),o.setAttribute("height",t+"")}this._backgroundNode&&(this._backgroundNode.setAttribute("width",e),this._backgroundNode.setAttribute("height",t))},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype._getSize=function(e){var t=this._opts,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=this.root,l=document.defaultView.getComputedStyle(s);return(s[i]||vh(l[a])||vh(s.style[a]))-(vh(l[n])||0)-(vh(l[o])||0)|0},r.prototype.dispose=function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},r.prototype.clear=function(){var e=this._viewport;e&&e.parentNode&&e.parentNode.removeChild(e)},r.prototype.toDataURL=function(){this.refresh();var e=this._svgDom,t=e.outerHTML||(e.parentNode&&e.parentNode).innerHTML,a=encodeURIComponent(t.replace(/></g,`>
\r<`));return"data:image/svg+xml;charset=UTF-8,"+a},r}();function dp(r){return function(){Fr('In SVG mode painter not support method "'+r+'"')}}function EO(r){r.registerPainter("svg",RO)}function kO(){return!1}function Nx(r,e,t){var a=rn(),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 gp=function(r){E(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||Pl,typeof t=="string"?o=Nx(t,a,i):J(t)&&(o=t,t=o.id),n.id=t,n.dom=o;var s=o.style;return s&&(o.onselectstart=kO,s.webkitUserSelect="none",s.userSelect="none",s.webkitTapHighlightColor="rgba(0,0,0,0)",s["-webkit-touch-callout"]="none",s.padding="0",s.margin="0",s.borderWidth="0"),n.domBack=null,n.ctxBack=null,n.painter=a,n.config=null,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=Nx("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 ot(0,0,0,0);function h(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new ot(0,0,0,0);_.copy(m),o.push(_)}else{for(var S=!1,x=Infinity,b=0,w=0;w<o.length;++w){var T=o[w];if(T.intersect(m)){var C=new ot(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 M=m.width*m.height,D=T.width*T.height,L=u.width*u.height,I=L-M-D;I<x&&(x=I,b=w)}}if(l&&(o[b].union(m),S=!0),!S){var _=new ot(0,0,0,0);_.copy(m),o.push(_)}l||(l=o.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var v=t[f];if(v){var c=v.shouldBePainted(i,n,!0,!0),p=v.__isRendered&&(v.__dirty&We.REDARAW_BIT||!c)?v.getPrevPaintRect():null;p&&h(p);var d=c&&(v.__dirty&We.REDARAW_BIT||!v.__isRendered)?v.getPaintRect():null;d&&h(d)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var v=a[f],c=v.shouldBePainted(i,n,!0,!0);if(v&&(!c||!v.__zr)&&v.__isRendered){var p=v.getPrevPaintRect();p&&h(p)}}var g;do{g=!1;for(var f=0;f<o.length;){if(o[f].isZero()){o.splice(f,1);continue}for(var y=f+1;y<o.length;)o[f].intersect(o[y])?(g=!0,o[f].union(o[y]),o.splice(y,1)):y++;f++}}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,h=this.lastFrameAlpha,f=this.dpr,v=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(n,0,0,s/f,l/f));var c=this.domBack;function p(d,g,y,m){if(o.clearRect(d,g,y,m),a&&a!=="transparent"){var _=void 0;oM(a)?(_=a.__canvasGradient||Lc(o,a,{x:0,y:0,width:y,height:m}),a.__canvasGradient=_):sM(a)&&(_=Pc(o,a,{dirty:function(){v.setUnpainted(),v.__painter.refresh()}})),o.save(),o.fillStyle=_||a,o.fillRect(d,g,y,m),o.restore()}u&&(o.save(),o.globalAlpha=h,o.drawImage(c,d,g,y,m),o.restore())}!i||u?p(0,0,s,l):i.length&&A(i,function(d){p(d.x*f,d.y*f,d.width*f,d.height*f)})},e}(or),Bx=1e5,Gi=314159,ch=.01,OO=.001;function ph(r){return parseInt(r,10)}function NO(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function BO(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 VO=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||Pl,this._singleCanvas=n,this.root=e;var o=e.style;o&&(o.webkitTapHighlightColor="transparent",o.webkitUserSelect="none",o.userSelect="none",o["-webkit-touch-callout"]="none",e.innerHTML=""),this.storage=t;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(n){var h=e,f=h.width,v=h.height;a.width!=null&&(f=a.width),a.height!=null&&(v=a.height),this.dpr=a.devicePixelRatio||1,h.width=f*this.dpr,h.height=v*this.dpr,this._width=f,this._height=v;var c=new gp(h,this,this.dpr);c.__builtin__=!0,c.initContext(),l[Gi]=c,c.zlevel=Gi,s.push(Gi),this._domRoot=e}else{this._width=this._getSize(0),this._height=this._getSize(1);var u=this._domRoot=BO(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(Bx)),n||(n=a.ctx,n.save()),xa(n,s,i,o===t-1))}n&&n.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(Bx)},r.prototype.paintOne=function(e,t){U1(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;jf(function(){l._paintList(e,t,a,i)})}}},r.prototype._compositeManually=function(){var e=this.getLayer(Gi).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 h=!0,f=!1,v=function(d){var g=n[d],y=g.ctx,m=o&&g.createRepaintRects(e,t,c._width,c._height);y.save();var _=a?g.__startIndex:g.__drawIndex,S=!a&&g.incremental&&Date.now,x=S&&Date.now(),b=g.zlevel===c._zlevelList[0]?c._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,b,m);else if(_===g.__startIndex){var w=e[_];(!w.incremental||!w.notClear||a)&&g.clear(!1,b,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&&(f=!0),i._doPaintEl(R,g,o,I,P,T===g.__endIndex-1),S){var k=Date.now()-x;if(k>15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var M=c.dpr,D=0;D<m.length;++D){var L=m[D];y.save(),y.beginPath(),y.rect(L.x*M,L.y*M,L.width*M,L.height*M),y.clip(),C(L),y.restore()}else y.save(),C(),y.restore();g.__drawIndex=T,g.__drawIndex<g.__endIndex&&(h=!1)},c=this,p=0;p<n.length;p++)v(p);return et.wxa&&A(this._layers,function(d){d&&d.ctx&&d.ctx.draw&&d.ctx.draw()}),{finished:h,needsRefreshHover:f}},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))&&(xa(s,e,n,o),e.setPrevPaintRect(l))}else xa(s,e,n,o)},r.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Gi);var a=this._layers[e];return a||(a=new gp("zr_"+e,this,this.dpr),a.zlevel=e,a.__builtin__=!0,this._layerConfig[e]?at(a,this._layerConfig[e],!0):this._layerConfig[e-ch]&&at(a,this._layerConfig[e-ch],!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]){Fr("ZLevel "+e+" has been used already");return}if(!NO(t)){Fr("Layer of zlevel "+e+" is not valid");return}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(f,v){f.__dirty=f.__used=!1});function t(f){n&&(n.__endIndex!==f&&(n.__dirty=!0),n.__endIndex=f)}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,h=void 0;s!==u&&(s=u,o=0),i.incremental?(h=this.getLayer(u+OO,this._needsManuallyCompositing),h.incremental=!0,o=1):h=this.getLayer(u+(o>0?ch:0),this._needsManuallyCompositing),h.__builtin__||Fr("ZLevel "+u+" has been used by unkown layer "+h.id),h!==n&&(h.__used=!0,h.__startIndex!==l&&(h.__dirty=!0),h.__startIndex=l,h.incremental?h.__drawIndex=-1:h.__drawIndex=l,t(l),n=h),i.__dirty&We.REDARAW_BIT&&!i.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(f,v){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__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]?at(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+ch){var o=this._layers[n];at(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(lt(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;if(e!=null&&(i.width=e),t!=null&&(i.height=t),e=this._getSize(0),t=this._getSize(1),a.style.display="",this._width!==e||t!==this._height){a.style.width=e+"px",a.style.height=t+"px";for(var n in this._layers)this._layers.hasOwnProperty(n)&&this._layers[n].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(Gi).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[Gi].dom;var t=new gp("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(f){f.__builtin__?a.drawImage(f.dom,0,0,i,n):f.renderToCanvas&&(a.save(),f.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 h=s[l];xa(a,h,o,l===u-1)}return t.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype._getSize=function(e){var t=this._opts,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=this.root,l=document.defaultView.getComputedStyle(s);return(s[i]||ph(l[a])||ph(s.style[a]))-(ph(l[n])||0)-(ph(l[o])||0)|0},r.prototype.pathToImage=function(e,t){t=t||this.dpr;var a=document.createElement("canvas"),i=a.getContext("2d"),n=e.getBoundingRect(),o=e.style,s=o.shadowBlur*t,l=o.shadowOffsetX*t,u=o.shadowOffsetY*t,h=e.hasStroke()?o.lineWidth:0,f=Math.max(h/2,-l+s),v=Math.max(h/2,l+s),c=Math.max(h/2,-u+s),p=Math.max(h/2,u+s),d=n.width+f+v,g=n.height+c+p;a.width=d*t,a.height=g*t,i.scale(t,t),i.clearRect(0,0,d,g),i.dpr=t;var y={x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY,rotation:e.rotation,originX:e.originX,originY:e.originY};e.x=f-n.x,e.y=c-n.y,e.rotation=0,e.scaleX=1,e.scaleY=1,e.updateTransform(),e&&xa(i,e,{inHover:!1,viewWidth:this._width,viewHeight:this._height},!0);var m=new Zt({style:{x:0,y:0,image:a}});return V(e,y),m},r}();function zO(r){r.registerPainter("canvas",VO)}var FO=function(r){E(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 Jr(this.getSource(),this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var a=new q,i=Yt("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=n==="none"?"circle":n,s=t.itemHeight*.8,l=Yt(o,(t.itemWidth-s)/2,(t.itemHeight-s)/2,s,s,t.itemStyle.fill,t.symbolKeepAspect);return a.add(l),l.setStyle(t.itemStyle),o.indexOf("empty")>-1&&(l.style.stroke=l.style.fill,l.style.fill="#fff",l.style.lineWidth=2),a},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={zlevel:0,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,lineStyle:{width:"bolder"}},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:Infinity},e}(It);function zn(r,e){var t=r.mapDimensionsAll("defaultedLabel"),a=t.length;if(a===1){var i=Pi(r,e,t[0]);return i!=null?i+"":null}else if(a){for(var n=[],o=0;o<t.length;o++)n.push(Pi(r,e,t[o]));return n.join(" ")}}function Vx(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!B(e))return e+"";for(var a=[],i=0;i<t.length;i++){var n=r.getDimensionInfo(t[i]);n&&a.push(e[n.index])}return a.join(" ")}var Bs=function(r){E(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=Yt(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),s.drift=GO,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Cr(this.childAt(0))},e.prototype.downplay=function(){Dr(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){var a=this.childAt(0);a.draggable=t,a.cursor=t?"move":a.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,h=n&&n.disableAnimation;if(u){var f=t.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,t,a,l,f)}else{var v=this.childAt(0);v.silent=!1;var c={scaleX:l[0]/2,scaleY:l[1]/2};h?v.attr(c):dt(v,c,s,a)}if(this._updateCommon(t,a,l,i,n),u){var v=this.childAt(0);if(!h){var c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Nt(v,c,s,a)}}h&&this.childAt(0).stopAnimation("remove"),this._seriesModel=s},e.prototype._updateCommon=function(t,a,i,n,o){var s=this.childAt(0),l=t.hostModel,u,h,f,v,c,p,d,g;if(n&&(u=n.emphasisItemStyle,h=n.blurItemStyle,f=n.selectItemStyle,v=n.focus,c=n.blurScope,p=n.labelStatesModels,d=n.hoverScale,g=n.cursorStyle),!n||t.hasItemOption){var y=n&&n.itemModel?n.itemModel:t.getItemModel(a),m=y.getModel("emphasis");u=m.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),h=y.getModel(["blur","itemStyle"]).getItemStyle(),v=m.get("focus"),c=m.get("blurScope"),p=ne(y),d=m.getShallow("scale"),g=y.getShallow("cursor")}var _=t.getItemVisual(a,"symbolRotate");s.attr("rotation",(_||0)*Math.PI/180||0);var S=t.getItemVisual(a,"symbolOffset")||0;S&&(B(S)||(S=[S,S]),s.x=F(S[0],i[0]),s.y=F(vt(S[1],S[0])||0,i[1])),g&&s.attr("cursor",g);var x=t.getItemVisual(a,"style"),b=x.fill;if(s instanceof Zt){var w=s.style;s.useStyle(V({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},x))}else s.__isEmptyBrush?s.useStyle(V({},x)):s.useStyle(x),s.style.decal=null,s.setColor(b,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var T=t.getItemVisual(a,"liftZ"),C=this._z2;T!=null?C==null&&(this._z2=s.z2,s.z2+=T):C!=null&&(s.z2=C,this._z2=null);var M=o&&o.useNameLabel;fe(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:D,inheritColor:b,defaultOpacity:x.opacity});function D(P){return M?t.getName(P):zn(t,P)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var L=s.ensureState("emphasis");if(L.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=h,d){var I=Math.max(1.1,3/this._sizeY);L.scaleX=this._sizeX*I,L.scaleY=this._sizeY*I}this.setSymbolScale(1),Lt(this,v,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,a){var i=this.childAt(0),n=this._seriesModel,o=Q(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&ga(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();ga(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,a){var i=t.getItemVisual(a,"symbolSize");return B(i)?i.slice():[+i,+i]},e}(q);function GO(r,e){this.parent.drift(r,e)}function yp(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 zx(r){return r!=null&&!J(r)&&(r={isIgnore:r}),r||{}}function Fx(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"),hoverScale:t.get("scale"),labelStatesModels:ne(e),cursorStyle:e.get("cursor")}}var Vs=function(){function r(e){this.group=new q,this._SymbolCtor=e||Bs}return r.prototype.updateData=function(e,t){t=zx(t);var a=this.group,i=e.hostModel,n=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=Fx(e),u={disableAnimation:s},h=t.getSymbolPoint||function(f){return e.getItemLayout(f)};n||a.removeAll(),e.diff(n).add(function(f){var v=h(f);if(yp(e,v,f,t)){var c=new o(e,f,l,u);c.setPosition(v),e.setItemGraphicEl(f,c),a.add(c)}}).update(function(f,v){var c=n.getItemGraphicEl(v),p=h(f);if(!yp(e,p,f,t)){a.remove(c);return}if(!c)c=new o(e,f),c.setPosition(p);else{c.updateData(e,f,l,u);var d={x:p[0],y:p[1]};s?c.attr(d):dt(c,d,i)}a.add(c),e.setItemGraphicEl(f,c)}).remove(function(f){var v=n.getItemGraphicEl(f);v&&v.fadeOut(function(){a.remove(v)})}).execute(),this._getSymbolPoint=h,this._data=e},r.prototype.isPersistent=function(){return!0},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=Fx(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){a=zx(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(yp(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)}}},r.prototype.remove=function(e){var t=this.group,a=this._data;a&&e?a.eachItemGraphicEl(function(i){i.fadeOut(function(){t.remove(i)})}):t.removeAll()},r}();function mp(r,e,t){var a=r.getBaseAxis(),i=r.getOtherAxis(a),n=HO(i,t),o=a.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(o),h=s==="x"||s==="radius"?1:0,f=H(r.dimensions,function(p){return e.mapDimension(p)}),v=!1,c=e.getCalculationInfo("stackResultDimension");return Da(e,f[0])&&(v=!0,f[0]=c),Da(e,f[1])&&(v=!0,f[1]=c),{dataDimsForPoint:f,valueStart:n,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:h,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function HO(r,e){var t=0,a=r.scale.getExtent();return e==="start"?t=a[0]:e==="end"?t=a[1]:a[0]>0?t=a[0]:a[1]<0&&(t=a[1]),t}function Gx(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)}var Hx=typeof Float32Array!="undefined",WO=Hx?Float32Array:Array;function Fn(r){return B(r)?Hx?new Float32Array(r):r:new WO(r)}function UO(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 YO(r,e,t,a,i,n,o,s){var l=UO(r,e),u=[],h=[],f=[],v=[],c=[],p=[],d=[],g=mp(i,e,o);mp(n,r,s);for(var y=r.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],x=!0,b=void 0,w=void 0;switch(S.cmd){case"=":b=S.idx*2,w=S.idx1*2;var T=y[b],C=y[b+1],M=m[w],D=m[w+1];(isNaN(T)||isNaN(C))&&(T=M,C=D),u.push(T,C),h.push(M,D),f.push(t[b],t[b+1]),v.push(a[w],a[w+1]),d.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]),h.push(m[w],m[w+1]);var R=Gx(g,i,e,L);f.push(R[0],R[1]),v.push(a[w],a[w+1]),d.push(e.getRawIndex(L));break;case"-":x=!1}x&&(c.push(S),p.push(p.length))}p.sort(function(ut,tt){return d[ut]-d[tt]});for(var k=u.length,N=Fn(k),O=Fn(k),G=Fn(k),z=Fn(k),W=[],_=0;_<p.length;_++){var K=p[_],_t=_*2,mt=K*2;N[_t]=u[mt],N[_t+1]=u[mt+1],O[_t]=h[mt],O[_t+1]=h[mt+1],G[_t]=f[mt],G[_t+1]=f[mt+1],z[_t]=v[mt],z[_t+1]=v[mt+1],W[_]=c[K]}return{current:N,next:O,stackedOnCurrent:G,stackedOnNext:z,status:W}}var La=Math.min,Ia=Math.max;function Hi(r,e){return isNaN(r)||isNaN(e)}function _p(r,e,t,a,i,n,o,s,l){for(var u,h,f,v,c,p,d=t,g=0;g<a;g++){var y=e[d*2],m=e[d*2+1];if(d>=i||d<0)break;if(Hi(y,m)){if(l){d+=n;continue}break}if(d===t)r[n>0?"moveTo":"lineTo"](y,m),f=y,v=m;else{var _=y-u,S=m-h;if(_*_+S*S<.5){d+=n;continue}if(o>0){var x=d+n,b=e[x*2],w=e[x*2+1],T=g+1;if(l)for(;Hi(b,w)&&T<a;)T++,x+=n,b=e[x*2],w=e[x*2+1];var C=.5,M=0,D=0,L=void 0,I=void 0;if(T>=a||Hi(b,w))c=y,p=m;else{M=b-u,D=w-h;var P=y-u,R=b-y,k=m-h,N=w-m,O=void 0,G=void 0;s==="x"?(O=Math.abs(P),G=Math.abs(R),c=y-O*o,p=m,L=y+O*o,I=m):s==="y"?(O=Math.abs(k),G=Math.abs(N),c=y,p=m-O*o,L=y,I=m+O*o):(O=Math.sqrt(P*P+k*k),G=Math.sqrt(R*R+N*N),C=G/(G+O),c=y-M*o*(1-C),p=m-D*o*(1-C),L=y+M*o*C,I=m+D*o*C,L=La(L,Ia(b,y)),I=La(I,Ia(w,m)),L=Ia(L,La(b,y)),I=Ia(I,La(w,m)),M=L-y,D=I-m,c=y-M*O/G,p=m-D*O/G,c=La(c,Ia(u,y)),p=La(p,Ia(h,m)),c=Ia(c,La(u,y)),p=Ia(p,La(h,m)),M=y-c,D=m-p,L=y+M*G/O,I=m+D*G/O)}r.bezierCurveTo(f,v,c,p,y,m),f=L,v=I}else r.lineTo(y,m)}u=y,h=m,d+=n}return g}var Wx=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),XO=function(r){E(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 Wx},e.prototype.buildPath=function(t,a){var i=a.points,n=0,o=i.length/2;if(a.connectNulls){for(;o>0&&Hi(i[o*2-2],i[o*2-1]);o--);for(;n<o&&Hi(i[n*2],i[n*2+1]);n++);}for(;n<o;)n+=_p(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=Ar.CMD,s,l,u=a==="x",h=[],f=0;f<n.length;){var v=n[f++],c=void 0,p=void 0,d=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(v){case o.M:s=n[f++],l=n[f++];break;case o.L:if(c=n[f++],p=n[f++],_=u?(t-s)/(c-s):(t-l)/(p-l),_<=1&&_>=0){var S=u?(p-l)*_+l:(c-s)*_+s;return u?[t,S]:[S,t]}s=c,l=p;break;case o.C:c=n[f++],p=n[f++],d=n[f++],g=n[f++],y=n[f++],m=n[f++];var x=u?_v(s,c,d,y,t,h):_v(l,p,g,m,t,h);if(x>0)for(var b=0;b<x;b++){var w=h[b];if(w<=1&&w>=0){var S=u?Ot(l,p,g,m,w):Ot(s,c,d,y,w);return u?[t,S]:[S,t]}}s=y,l=m;break}}},e}(ct),$O=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(Wx),Ux=function(r){E(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 $O},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&&Hi(i[s*2-2],i[s*2-1]);s--);for(;o<s&&Hi(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=_p(t,i,o,s,s,1,a.smooth,l,a.connectNulls);_p(t,n,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,t.closePath()}},e}(ct);function Yx(r,e,t,a,i){var n=r.getArea(),o=n.x,s=n.y,l=n.width,u=n.height,h=t.get(["lineStyle","width"])||2;o-=h/2,s-=h/2,l+=h,u+=h,o=Math.floor(o),l=Math.round(l);var f=new pt({shape:{x:o,y:s,width:l,height:u}});if(e){var v=r.getBaseAxis(),c=v.isHorizontal(),p=v.inverse;c?(p&&(f.shape.x+=l),f.shape.width=0):(p||(f.shape.y+=u),f.shape.height=0);var d=typeof i=="function"?function(g){i(g,f)}:null;Nt(f,{shape:{width:l,height:u,x:o,y:s}},t,null,a,d)}return f}function Xx(r,e,t){var a=r.getArea(),i=ae(a.r0,1),n=ae(a.r,1),o=new De({shape:{cx:ae(r.cx,1),cy:ae(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,Nt(o,{shape:{endAngle:a.endAngle,r:n}},t)}return o}function dh(r,e,t,a,i){if(r){if(r.type==="polar")return Xx(r,e,t);if(r.type==="cartesian2d")return Yx(r,e,t,a,i)}else return null;return null}function ea(r,e){return r.type===e}function $x(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function Zx(r){for(var e=Infinity,t=Infinity,a=-Infinity,i=-Infinity,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 qx(r,e){var t=Zx(r),a=t[0],i=t[1],n=Zx(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 Kx(r){return typeof r=="number"?r:r?.5:0}function ZO(r,e,t){if(!t.valueDim)return[];for(var a=e.count(),i=Fn(a*2),n=0;n<a;n++){var o=Gx(t,r,e,n);i[n*2]=o[0],i[n*2+1]=o[1]}return i}function Pa(r,e,t){for(var a=e.getBaseAxis(),i=a.dim==="x"||a.dim==="radius"?0:1,n=[],o=0,s=[],l=[],u=[];o<r.length-2;o+=2)switch(u[0]=r[o+2],u[1]=r[o+3],l[0]=r[o],l[1]=r[o+1],n.push(l[0],l[1]),t){case"end":s[i]=u[i],s[1-i]=l[1-i],n.push(s[0],s[1]);break;case"middle":var h=(l[i]+u[i])/2,f=[];s[i]=f[i]=h,s[1-i]=l[1-i],f[1-i]=u[1-i],n.push(s[0],s[1]),n.push(f[0],f[1]);break;default:s[i]=l[i],s[1-i]=u[1-i],n.push(s[0],s[1])}return n.push(r[o++],r[o++]),n}function qO(r,e){var t=r.getVisual("visualMeta");if(!(!t||!t.length||!r.count())&&e.type==="cartesian2d"){for(var a,i,n=t.length-1;n>=0;n--){var o=t[n].dimension,s=r.dimensions[o],l=r.getDimensionInfo(s);if(a=l&&l.coordDim,a==="x"||a==="y"){i=t[n];break}}if(!!i){var u=e.getAxis(a),h=H(i.stops,function(m){return{offset:0,coord:u.toGlobalCoord(u.dataToCoord(m.value)),color:m.color}}),f=h.length,v=i.outerColors.slice();f&&h[0].coord>h[f-1].coord&&(h.reverse(),v.reverse());var c=10,p=h[0].coord-c,d=h[f-1].coord+c,g=d-p;if(g<.001)return"transparent";A(h,function(m){m.offset=(m.coord-p)/g}),h.push({offset:f?h[f-1].offset:.5,color:v[1]||"transparent"}),h.unshift({offset:f?h[0].offset:.5,color:v[0]||"transparent"});var y=new Uo(0,0,0,0,h,!0);return y[a]=p,y[a+"2"]=d,y}}}function KO(r,e,t){var a=r.get("showAllSymbol"),i=a==="auto";if(!(a&&!i)){var n=t.getAxesByScale("ordinal")[0];if(!!n&&!(i&&QO(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 QO(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(Bs.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function JO(r,e){return isNaN(r)||isNaN(e)}function jO(r){for(var e=r.length/2;e>0&&JO(r[e*2-2],r[e*2-1]);e--);return e-1}function Qx(r,e){return[r[e*2],r[e*2+1]]}function tN(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 Jx(r,e,t,a){if(ea(e,"cartesian2d")){var i=a.getModel("endLabel"),n=i.get("show"),o=i.get("valueAnimation"),s=a.getData(),l={lastFrameIndex:0},u=n?function(p,d){r._endLabelOnDuring(p,d,s,l,o,i,e)}:null,h=e.getBaseAxis().isHorizontal(),f=Yx(e,t,a,function(){var p=r._endLabel;p&&t&&l.originalX!=null&&p.attr({x:l.originalX,y:l.originalY})},u);if(!a.get("clip",!0)){var v=f.shape,c=Math.max(v.width,v.height);h?(v.y-=c,v.height+=c*2):(v.x-=c,v.width+=c*2)}return u&&u(1,f),f}else return Xx(e,t,a)}function eN(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 rN=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new q,a=new Vs;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"),h=t.getModel("areaStyle"),f=l.getLayout("points")||[],v=o.type==="polar",c=this._coordSys,p=this._symbolDraw,d=this._polyline,g=this._polygon,y=this._lineGroup,m=t.get("animation"),_=!h.isEmpty(),S=h.get("origin"),x=mp(o,l,S),b=_&&ZO(o,l,x),w=t.get("showSymbol"),T=w&&!v&&KO(t,l,o),C=this._data;C&&C.eachItemGraphicEl(function(K,_t){K.__temp&&(s.remove(K),C.setItemGraphicEl(_t,null))}),w||p.remove(),s.add(y);var M=v?!1:t.get("step"),D;o&&o.getArea&&t.get("clip",!0)&&(D=o.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var L=qO(l,o)||l.getVisual("style")[l.getVisual("drawType")];d&&c.type===o.type&&M===this._step?(_&&!g?g=this._newPolygon(f,b):g&&!_&&(y.remove(g),g=this._polygon=null),v||this._initOrUpdateEndLabel(t,o,Ai(L)),y.setClipPath(Jx(this,o,!1,t)),w&&p.updateData(l,{isIgnore:T,clipShape:D,disableAnimation:!0,getSymbolPoint:function(K){return[f[K*2],f[K*2+1]]}}),(!$x(this._stackedOnPoints,b)||!$x(this._points,f))&&(m?this._doUpdateAnimation(l,b,o,i,M,S):(M&&(f=Pa(f,o,M),b&&(b=Pa(b,o,M))),d.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:b})))):(w&&p.updateData(l,{isIgnore:T,clipShape:D,disableAnimation:!0,getSymbolPoint:function(K){return[f[K*2],f[K*2+1]]}}),m&&this._initSymbolLabelAnimation(l,o,D),M&&(f=Pa(f,o,M),b&&(b=Pa(b,o,M))),d=this._newPolyline(f),_&&(g=this._newPolygon(f,b)),v||this._initOrUpdateEndLabel(t,o,Ai(L)),y.setClipPath(Jx(this,o,!0,t)));var I=t.get(["emphasis","focus"]),P=t.get(["emphasis","blurScope"]);if(d.useStyle(X(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),oe(d,t,"lineStyle"),d.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var R=d.getState("emphasis").style;R.lineWidth=+d.style.lineWidth+1}Q(d).seriesIndex=t.seriesIndex,Lt(d,I,P);var k=Kx(t.get("smooth")),N=t.get("smoothMonotone"),O=t.get("connectNulls");if(d.setShape({smooth:k,smoothMonotone:N,connectNulls:O}),g){var G=l.getCalculationInfo("stackedOnSeries"),z=0;g.useStyle(X(h.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),G&&(z=Kx(G.get("smooth"))),g.setShape({smooth:k,stackedOnSmooth:z,smoothMonotone:N,connectNulls:O}),oe(g,t,"areaStyle"),Q(g).seriesIndex=t.seriesIndex,Lt(g,I,P)}var W=function(K){n._changePolyState(K)};l.eachItemGraphicEl(function(K){K&&(K.onHoverStateChange=W)}),this._polyline.onHoverStateChange=W,this._data=l,this._coordSys=o,this._stackedOnPoints=b,this._points=f,this._step=M,this._valueOrigin=S},e.prototype.dispose=function(){},e.prototype.highlight=function(t,a,i,n){var o=t.getData(),s=ni(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 h=l[s*2],f=l[s*2+1];if(isNaN(h)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(h,f))return;u=new Bs(o,s),u.x=h,u.y=f,u.setZ(t.get("zlevel"),t.get("z"));var v=u.getSymbolPath().getTextContent();v&&(v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Ct.prototype.highlight.call(this,t,a,i,n)},e.prototype.downplay=function(t,a,i,n){var o=t.getData(),s=ni(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 Ct.prototype.downplay.call(this,t,a,i,n)},e.prototype._changePolyState=function(t){var a=this._polygon;Zl(this._polyline,t),a&&Zl(a,t)},e.prototype._newPolyline=function(t){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new XO({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 Ux({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,h=u.get("animationDuration");typeof h=="function"&&(h=h(null));var f=u.get("animationDelay")||0,v=typeof f=="function"?f(null):f;t.eachItemGraphicEl(function(c,p){var d=c;if(d){var g=[c.x,c.y],y=void 0,m=void 0,_=void 0;if(o){var S=i,x=a.pointToCoord(g);n?(y=S.startAngle,m=S.endAngle,_=-x[1]/180*Math.PI):(y=S.r0,m=S.r,_=x[0])}else{var b=i;n?(y=b.x,m=b.x+b.width,_=c.x):(y=b.y+b.height,m=b.y,_=c.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var T=typeof f=="function"?f(p):h*w+v,C=d.getSymbolPath(),M=C.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,a,i){var n=t.getModel("endLabel");if(n.get("show")){var o=t.getData(),s=this._polyline,l=this._endLabel;l||(l=this._endLabel=new gt({z2:200}),l.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var u=jO(o.getLayout("points"));u>=0&&(fe(s,ne(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:u,defaultText:function(h,f,v){return v!=null?Vx(o,v):zn(o,h)},enableTextSetter:!0},eN(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,h=this._polyline;if(u){t<1&&n.originalX==null&&(n.originalX=u.x,n.originalY=u.y);var f=i.getLayout("points"),v=i.hostModel,c=v.get("connectNulls"),p=s.get("precision"),d=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,x=(y?d:0)*(m?-1:1),b=(y?0:-d)*(m?-1:1),w=y?"x":"y",T=tN(f,S,w),C=T.range,M=C[1]-C[0],D=void 0;if(M>=1){if(M>1&&!c){var L=Qx(f,C[0]);u.attr({x:L[0]+x,y:L[1]+b}),o&&(D=v.getRawValue(C[0]))}else{var L=h.getPointOn(S,w);L&&u.attr({x:L[0]+x,y:L[1]+b});var I=v.getRawValue(C[0]),P=v.getRawValue(C[1]);o&&(D=gm(i,p,I,P,T.t))}n.lastFrameIndex=C[0]}else{var R=t===1||n.lastFrameIndex>0?C[0]:0,L=Qx(f,R);o&&(D=v.getRawValue(R)),u.attr({x:L[0]+x,y:L[1]+b})}o&&Ko(u).setLabelText(D)}},e.prototype._doUpdateAnimation=function(t,a,i,n,o,s){var l=this._polyline,u=this._polygon,h=t.hostModel,f=YO(this._data,t,this._stackedOnPoints,a,this._coordSys,i,this._valueOrigin,s),v=f.current,c=f.stackedOnCurrent,p=f.next,d=f.stackedOnNext;if(o&&(v=Pa(f.current,i,o),c=Pa(f.stackedOnCurrent,i,o),p=Pa(f.next,i,o),d=Pa(f.stackedOnNext,i,o)),qx(v,p)>3e3||u&&qx(c,d)>3e3){l.setShape({points:p}),u&&u.setShape({points:p,stackedOnPoints:d});return}l.shape.__points=f.current,l.shape.points=v;var g={shape:{points:p}};f.current!==v&&(g.shape.__points=f.next),l.stopAnimation(),dt(l,g,h),u&&(u.setShape({points:v,stackedOnPoints:c}),u.stopAnimation(),dt(u,{shape:{stackedOnPoints:d}},h),l.shape.points!==u.shape.points&&(u.shape.points=l.shape.points));for(var y=[],m=f.status,_=0;_<m.length;_++){var S=m[_].cmd;if(S==="="){var x=t.getItemGraphicEl(m[_].idx1);x&&y.push({el:x,ptIdx:_})}}l.animators&&l.animators.length&&l.animators[0].during(function(){u&&u.dirtyShape();for(var b=l.shape.__points,w=0;w<y.length;w++){var T=y[w].el,C=y[w].ptIdx*2;T.x=b[C],T.y=b[C+1],T.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}(Ct);function zs(r,e){return{seriesType:r,plan:Ln(),reset:function(t){var a=t.getData(),i=t.coordinateSystem,n=t.pipelineContext,o=e||n.large;if(!!i){var s=H(i.dimensions,function(p){return a.mapDimension(p)}).slice(0,2),l=s.length,u=a.getCalculationInfo("stackResultDimension");Da(a,s[0])&&(s[0]=u),Da(a,s[1])&&(s[1]=u);var h=a.getDimensionInfo(s[0]),f=a.getDimensionInfo(s[1]),v=h&&h.index,c=f&&f.index;return l&&{progress:function(p,d){for(var g=p.end-p.start,y=o&&Fn(g*l),m=[],_=[],S=p.start,x=0;S<p.end;S++){var b=void 0;if(l===1){var w=d.getByDimIdx(v,S);b=i.dataToPoint(w,null,_)}else m[0]=d.getByDimIdx(v,S),m[1]=d.getByDimIdx(c,S),b=i.dataToPoint(m,null,_);o?(y[x++]=b[0],y[x++]=b[1]):d.setItemLayout(S,b.slice())}o&&d.setLayout("points",y)}}}}}}var aN={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=-Infinity,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=Infinity,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},iN=function(r){return Math.round(r.length/2)};function jx(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),h=l.getExtent(),f=a.getDevicePixelRatio(),v=Math.abs(h[1]-h[0])*(f||1),c=Math.round(s/v);if(c>1){n==="lttb"&&e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/c));var p=void 0;typeof n=="string"?p=aN[n]:typeof n=="function"&&(p=n),p&&e.setData(i.downSample(i.mapDimension(u.dim),1/c,p,iN))}}}}}function nN(r){r.registerChartView(rN),r.registerSeriesModel(FO),r.registerLayout(zs("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,jx("line"))}var Fs=function(r){E(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 Jr(this.getSource(),this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t){var a=this.coordinateSystem;if(a){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={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(It);It.registerClass(Fs);var oN=function(r){E(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 Jr(this.getSource(),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=ya(Fs.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}(Fs),sN=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}(),Sp=function(r){E(e,r);function e(t){var a=r.call(this,t)||this;return a.type="sausage",a}return e.prototype.getDefaultShape=function(){return new sN},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,h=a.startAngle,f=a.endAngle,v=a.clockwise,c=Math.cos(h),p=Math.sin(h),d=Math.cos(f),g=Math.sin(f),y=v?f-h<Math.PI*2:h-f<Math.PI*2;y&&(t.moveTo(c*o+i,p*o+n),t.arc(c*u+i,p*u+n,l,-Math.PI+h,h,!v)),t.arc(i,n,s,h,f,!v),t.moveTo(d*s+i,g*s+n),t.arc(d*u+i,g*u+n,l,f-Math.PI*2,f-Math.PI,!v),o!==0&&(t.arc(i,n,o,f,h,v),t.moveTo(c*o+i,g*o+n)),t.closePath()},e}(ct),gh=[0,0],xp=Math.max,bp=Math.min;function lN(r,e){var t=r.getArea&&r.getArea();if(ea(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 uN=function(r){E(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._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._incrementalRenderLarge(t,a)},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,h=u.getBaseAxis(),f;u.type==="cartesian2d"?f=h.isHorizontal():u.type==="polar"&&(f=h.dim==="angle");var v=t.isAnimationEnabled()?t:null,c=hN(t,u);c&&this._enableRealtimeSort(c,s,i);var p=t.get("clip",!0)||c,d=lN(u,s);o.removeClipPath();var g=t.get("roundCap",!0),y=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],x=this._backgroundEls,b=n&&n.isInitSort,w=n&&n.type==="changeAxisOrder";function T(D){var L=yh[u.type](s,D),I=yN(u,f,L);return I.useStyle(m.getItemStyle()),u.type==="cartesian2d"&&I.setShape("r",_),S[D]=I,I}s.diff(l).add(function(D){var L=s.getItemModel(D),I=yh[u.type](s,D,L);if(y&&T(D),!!s.hasValue(D)){var P=!1;p&&(P=tb[u.type](d,I));var R=eb[u.type](t,s,D,I,f,v,h.model,!1,g);ab(R,s,D,L,I,t,f,u.type==="polar"),b?R.attr({shape:I}):c?rb(c,v,R,I,D,f,!1,!1):Nt(R,{shape:I},t,D),s.setItemGraphicEl(D,R),o.add(R),R.ignore=P}}).update(function(D,L){var I=s.getItemModel(D),P=yh[u.type](s,D,I);if(y){var R=void 0;x.length===0?R=T(L):(R=x[L],R.useStyle(m.getItemStyle()),u.type==="cartesian2d"&&R.setShape("r",_),S[D]=R);var k=yh[u.type](s,D),N=sb(f,k,u);dt(R,{shape:N},v,D)}var O=l.getItemGraphicEl(L);if(!s.hasValue(D)){o.remove(O),O=null;return}var G=!1;p&&(G=tb[u.type](d,P),G&&o.remove(O)),O||(O=eb[u.type](t,s,D,P,f,v,h.model,!!O,g)),w||ab(O,s,D,I,P,t,f,u.type==="polar"),b?O.attr({shape:P}):c?rb(c,v,O,P,D,f,!0,w):dt(O,{shape:P},t,D,null),s.setItemGraphicEl(D,O),O.ignore=G,o.add(O)}).remove(function(D){var L=l.getItemGraphicEl(D);L&&Yo(L,t,D)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new q);C.removeAll();for(var M=0;M<S.length;++M)C.add(S[M]);o.add(C),this._backgroundEls=S,this._data=s},e.prototype._renderLarge=function(t,a,i){this._clear(),nb(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,a){this._removeBackground(),nb(a,this.group,!0)},e.prototype._updateLargeClip=function(t){var a=t.get("clip",!0)?dh(t.coordinateSystem,!1,t):null;a?this.group.setClipPath(a):this.group.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);if(u){var h=u.shape;return(o.isHorizontal()?Math.abs(h.height):Math.abs(h.width))||0}else return 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:H(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 h=t.rawIndexOf(o,n.getRawOrdinalNumber(l)),f=h<0?Number.MIN_VALUE:a(t.indexOfRawIndex(h));if(f>s)return!0;s=f}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,animation:{duration:0}})},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){Yo(n,t,Q(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}(Ct),tb={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=xp(e.x,r.x),s=bp(e.x+e.width,i),l=xp(e.y,r.y),u=bp(e.y+e.height,n),h=s<o,f=u<l;return e.x=h&&o>i?s:o,e.y=f&&l>n?u:l,e.width=h?0:s-o,e.height=f?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height),h||f},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=bp(e.r,r.r),n=xp(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}},eb={cartesian2d:function(r,e,t,a,i,n,o,s,l){var u=new pt({shape:V({},a),z2:1});if(u.__dataIndex=t,u.name="item",n){var h=u.shape,f=i?"height":"width";h[f]=0}return u},polar:function(r,e,t,a,i,n,o,s,l){var u=a.startAngle<a.endAngle,h=!i&&l?Sp:De,f=new h({shape:X({clockwise:u},a),z2:1});if(f.name="item",n){var v=f.shape,c=i?"r":"endAngle",p={};v[c]=i?0:a.startAngle,p[c]=a[c],(s?dt:Nt)(f,{shape:p},n)}return f}};function hN(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 rb(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?dt:Nt)(t,{shape:l},e,i,null);var h=e?r.baseAxis.model:null;(o?dt:Nt)(t,{shape:u},h,i)}var yh={cartesian2d:function(r,e,t){var a=r.getItemLayout(e),i=t?vN(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}}};function fN(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function ab(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");if(u&&r.attr("cursor",u),!s){var h=o?i.height>0?"bottom":"top":i.width>0?"left":"right",f=ne(a);fe(r,f,{labelFetcher:n,labelDataIndex:t,defaultText:zn(n.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var v=r.getTextContent();F0(v,f,n.getRawValue(t),function(p){return Vx(e,p)})}var c=a.getModel(["emphasis"]);Lt(r,c.get("focus"),c.get("blurScope")),oe(r,a),fN(i)&&(r.style.fill="none",r.style.stroke="none",A(r.states,function(p){p.style&&(p.style.fill=p.style.stroke="none")}))}function vN(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 cN=function(){function r(){}return r}(),ib=function(r){E(e,r);function e(t){var a=r.call(this,t)||this;return a.type="largeBar",a}return e.prototype.getDefaultShape=function(){return new cN},e.prototype.buildPath=function(t,a){for(var i=a.points,n=this.__startPoint,o=this.__baseDimIdx,s=0;s<i.length;s+=2)n[o]=i[s+o],t.moveTo(n[0],n[1]),t.lineTo(i[s],i[s+1])},e}(ct);function nb(r,e,t){var a=r.getData(),i=[],n=a.getLayout("valueAxisHorizontal")?1:0;i[1-n]=a.getLayout("valueAxisStart");var o=a.getLayout("largeDataIndices"),s=a.getLayout("barWidth"),l=r.getModel("backgroundStyle"),u=r.get("showBackground",!0);if(u){var h=a.getLayout("largeBackgroundPoints"),f=[];f[1-n]=a.getLayout("backgroundStart");var v=new ib({shape:{points:h},incremental:!!t,silent:!0,z2:0});v.__startPoint=f,v.__baseDimIdx=n,v.__largeDataIndices=o,v.__barWidth=s,gN(v,l,a),e.add(v)}var c=new ib({shape:{points:a.getLayout("largePoints")},incremental:!!t});c.__startPoint=i,c.__baseDimIdx=n,c.__largeDataIndices=o,c.__barWidth=s,e.add(c),dN(c,r,a),Q(c).seriesIndex=r.seriesIndex,r.get("silent")||(c.on("mousedown",ob),c.on("mousemove",ob))}var ob=Tc(function(r){var e=this,t=pN(e,r.offsetX,r.offsetY);Q(e).dataIndex=t>=0?t:null},30,!1);function pN(r,e,t){var a=r.__baseDimIdx,i=1-a,n=r.shape.points,o=r.__largeDataIndices,s=Math.abs(r.__barWidth/2),l=r.__startPoint[i];gh[0]=e,gh[1]=t;for(var u=gh[a],h=gh[1-a],f=u-s,v=u+s,c=0,p=n.length/2;c<p;c++){var d=c*2,g=n[d+a],y=n[d+i];if(g>=f&&g<=v&&(l<=y?h>=l&&h<=y:h>=y&&h<=l))return o[c]}return-1}function dN(r,e,t){var a=t.getVisual("style");r.useStyle(V({},a)),r.style.fill=null,r.style.stroke=a.fill,r.style.lineWidth=t.getLayout("barWidth")}function gN(r,e,t){var a=e.get("borderColor")||e.get("color"),i=e.getItemStyle();r.useStyle(i),r.style.fill=null,r.style.stroke=a,r.style.lineWidth=t.getLayout("barWidth")}function sb(r,e,t){if(ea(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 yN(r,e,t){var a=r.type==="polar"?De:pt;return new a({shape:sb(e,t,r),silent:!0,z2:0})}function mN(r){r.registerChartView(uN),r.registerSeriesModel(oN),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,j(QS,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Nk),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,jx("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 mh=Math.PI*2,lb=Math.PI/180;function _N(r,e){return qt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function SN(r,e,t){e.eachSeriesByType(r,function(a){var i=a.getData(),n=i.mapDimension("value"),o=_N(a,t),s=a.get("center"),l=a.get("radius");B(l)||(l=[0,l]),B(s)||(s=[s,s]);var u=F(o.width,t.getWidth()),h=F(o.height,t.getHeight()),f=Math.min(u,h),v=F(s[0],u)+o.x,c=F(s[1],h)+o.y,p=F(l[0],f/2),d=F(l[1],f/2),g=-a.get("startAngle")*lb,y=a.get("minAngle")*lb,m=0;i.each(n,function(P){!isNaN(P)&&m++});var _=i.getSum(n),S=Math.PI/(_||m)*2,x=a.get("clockwise"),b=a.get("roseType"),w=a.get("stillShowZeroSum"),T=i.getDataExtent(n);T[0]=0;var C=mh,M=0,D=g,L=x?1:-1;if(i.setLayout({viewRect:o,r:d}),i.each(n,function(P,R){var k;if(isNaN(P)){i.setItemLayout(R,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:v,cy:c,r0:p,r:b?NaN:d});return}b!=="area"?k=_===0&&w?S:P*S:k=mh/m,k<y?(k=y,C-=y):M+=P;var N=D+L*k;i.setItemLayout(R,{angle:k,startAngle:D,endAngle:N,clockwise:x,cx:v,cy:c,r0:p,r:b?Tt(P,T,[p,d]):d}),D=N}),C<mh&&m)if(C<=.001){var I=mh/m;i.each(n,function(P,R){if(!isNaN(P)){var k=i.getItemLayout(R);k.angle=I,k.startAngle=g+L*R*I,k.endAngle=g+L*(R+1)*I}})}else S=C/M,D=g,i.each(n,function(P,R){if(!isNaN(P)){var k=i.getItemLayout(R),N=k.angle===y?y:P*S;k.startAngle=D,k.endAngle=D+L*N,D+=L*N}})})}function Gs(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 xN=Math.PI/180;function ub(r,e,t,a,i,n,o,s,l,u){if(r.length<2)return;function h(d){for(var g=d.rB,y=g*g,m=0;m<d.list.length;m++){var _=d.list[m],S=Math.abs(_.label.y-t),x=a+_.len,b=x*x,w=Math.sqrt((1-Math.abs(S*S/y))*b);_.label.x=e+(w+_.len2)*i}}function f(d){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<d.length;m++)if(d[m].labelAlignTo==="none"){var _=d[m],S=_.label.y>t?y:g,x=Math.abs(_.label.y-t);if(x>S.maxY){var b=_.label.x-e-_.len2*i,w=a+_.len,T=Math.abs(b)<w?Math.sqrt(x*x/(1-b*b/w/w)):w;S.rB=T,S.maxY=x}S.list.push(_)}h(g),h(y)}for(var v=r.length,c=0;c<v;c++)if(r[c].position==="outer"&&r[c].labelAlignTo==="labelLine"){var p=r[c].label.x-u;r[c].linePoints[1][0]+=p,r[c].label.x=u}M1(r,l,l+o)&&f(r)}function bN(r,e,t,a,i,n,o,s){for(var l=[],u=[],h=Number.MAX_VALUE,f=-Number.MAX_VALUE,v=0;v<r.length;v++){var c=r[v].label;hb(r[v])||(c.x<e?(h=Math.min(h,c.x),l.push(r[v])):(f=Math.max(f,c.x),u.push(r[v])))}ub(u,e,t,a,1,i,n,o,s,f),ub(l,e,t,a,-1,i,n,o,s,h);for(var v=0;v<r.length;v++){var p=r[v],c=p.label;if(!hb(p)){var d=p.linePoints;if(d){var g=p.labelAlignTo==="edge",y=p.rect.width,m=void 0;g?c.x<e?m=d[2][0]-p.labelDistance-o-p.edgeDistance:m=o+i-p.edgeDistance-d[2][0]-p.labelDistance:c.x<e?m=c.x-o-p.bleedMargin:m=o+i-c.x-p.bleedMargin,m<p.rect.width&&(p.label.style.width=m,p.labelAlignTo==="edge"&&(y=m));var _=d[1][0]-d[2][0];g?c.x<e?d[2][0]=o+p.edgeDistance+y+p.labelDistance:d[2][0]=o+i-p.edgeDistance-y-p.labelDistance:(c.x<e?d[2][0]=c.x+p.labelDistance:d[2][0]=c.x-p.labelDistance,d[1][0]=d[2][0]+_),d[1][1]=d[2][1]=c.y}}}}function hb(r){return r.position==="center"}function wN(r){var e=r.getData(),t=[],a,i,n=!1,o=(r.get("minShowLabelAngle")||0)*xN,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,h=s.x,f=s.y,v=s.height;function c(b){b.ignore=!0}function p(b){if(!b.ignore)return!0;for(var w in b.states)if(b.states[w].ignore===!1)return!0;return!1}e.each(function(b){var w=e.getItemGraphicEl(b),T=w.shape,C=w.getTextContent(),M=w.getTextGuideLine(),D=e.getItemModel(b),L=D.getModel("label"),I=L.get("position")||D.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),R=L.get("alignTo"),k=F(L.get("edgeDistance"),u),N=L.get("bleedMargin"),O=D.getModel("labelLine"),G=O.get("length");G=F(G,u);var z=O.get("length2");if(z=F(z,u),Math.abs(T.endAngle-T.startAngle)<o){A(C.states,c),C.ignore=!0;return}if(!!p(C)){var W=(T.startAngle+T.endAngle)/2,K=Math.cos(W),_t=Math.sin(W),mt,ut,tt,bt;a=T.cx,i=T.cy;var it=I==="inside"||I==="inner";if(I==="center")mt=T.cx,ut=T.cy,bt="center";else{var Dt=(it?(T.r+T.r0)/2*K:T.r*K)+a,Vt=(it?(T.r+T.r0)/2*_t:T.r*_t)+i;if(mt=Dt+K*3,ut=Vt+_t*3,!it){var Kt=Dt+K*(G+l-T.r),zt=Vt+_t*(G+l-T.r),le=Kt+(K<0?-1:1)*z,we=zt;R==="edge"?mt=K<0?h+k:h+u-k:mt=le+(K<0?-P:P),ut=we,tt=[[Dt,Vt],[Kt,zt],[le,we]]}bt=it?"center":R==="edge"?K>0?"right":"left":K>0?"left":"right"}var ue,Vr=L.get("rotate");if(typeof Vr=="number"?ue=Vr*(Math.PI/180):ue=Vr?K<0?-W+Math.PI:-W:0,n=!!ue,C.x=mt,C.y=ut,C.rotation=ue,C.setStyle({verticalAlign:"middle"}),it){C.setStyle({align:bt});var sf=C.states.select;sf&&(sf.x+=C.x,sf.y+=C.y)}else{var za=C.getBoundingRect().clone();za.applyTransform(C.getComputedTransform());var ey=(C.style.margin||0)+2.1;za.y-=ey/2,za.height+=ey,t.push({label:C,labelLine:M,position:I,len:G,len2:z,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new nt(K,_t),linePoints:tt,textAlign:bt,labelDistance:P,labelAlignTo:R,edgeDistance:k,bleedMargin:N,rect:za})}w.setTextConfig({inside:it})}}),!n&&r.get("avoidLabelOverlap")&&bN(t,a,i,l,u,v,h,f);for(var d=0;d<t.length;d++){var g=t[d],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(A(y.states,c),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var x=g.linePoints;_||!x?(A(m.states,c),m.ignore=!0):(A1(x,g.minTurnAngle),ER(x,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:x}),y.__hostTarget.textGuideLineConfig={anchor:new nt(x[0][0],x[0][1])})}}}function Gn(r,e){var t=r.get("borderRadius");return t==null?null:(B(t)||(t=[t,t]),{innerCornerRadius:He(t[0],e.r0),cornerRadius:He(t[1],e.r)})}var TN=function(r){E(e,r);function e(t,a,i){var n=r.call(this)||this;n.z2=2;var o=new gt;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"),h=t.getItemLayout(a),f=V(Gn(l.getModel("itemStyle"),h)||{},h);if(isNaN(f.startAngle)){o.setShape(f);return}if(n){o.setShape(f);var v=s.getShallow("animationType");v==="scale"?(o.shape.r=h.r0,Nt(o,{shape:{r:h.r}},s,a)):i!=null?(o.setShape({startAngle:i,endAngle:i}),Nt(o,{shape:{startAngle:h.startAngle,endAngle:h.endAngle}},s,a)):(o.shape.endAngle=h.startAngle,dt(o,{shape:{endAngle:h.endAngle}},s,a))}else dt(o,{shape:f},s,a);o.useStyle(t.getItemVisual(a,"style")),oe(o,l);var c=(h.startAngle+h.endAngle)/2,p=s.get("selectedOffset"),d=Math.cos(c)*p,g=Math.sin(c)*p,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,t,a),o.ensureState("emphasis").shape=ff({r:h.r+(u.get("scale")&&u.get("scaleSize")||0)},Gn(u.getModel("itemStyle"),h)),V(o.ensureState("select"),{x:d,y:g,shape:Gn(l.getModel(["select","itemStyle"]),h)}),V(o.ensureState("blur"),{shape:Gn(l.getModel(["blur","itemStyle"]),h)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&V(m.ensureState("select"),{x:d,y:g}),V(_.ensureState("select"),{x:d,y:g}),Lt(this,u.get("focus"),u.get("blurScope"))},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,h=l&&l.opacity;fe(n,ne(o),{labelFetcher:a.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:h,defaultText:t.getFormattedLabel(i,"normal")||a.getName(i)});var f=n.getTextContent();n.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var v=t.get(["label","position"]);if(v!=="outside"&&v!=="outer")n.removeTextGuideLine();else{var c=this.getTextGuideLine();c||(c=new Me,this.setTextGuideLine(c)),Cc(this,Dc(o),{stroke:u,opacity:Gr(s.get(["lineStyle","opacity"]),h,1)})}},e}(De),AN=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return e.prototype.init=function(){var t=new q;this._sectorGroup=t},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 h=o.getItemLayout(0),f=1;isNaN(h&&h.startAngle)&&f<o.count();++f)h=o.getItemLayout(f);h&&(u=h.startAngle)}o.diff(s).add(function(v){var c=new TN(o,v,u);o.setItemGraphicEl(v,c),l.add(c)}).update(function(v,c){var p=s.getItemGraphicEl(c);p.updateData(o,v,u),p.off("click"),l.add(p),o.setItemGraphicEl(v,p)}).remove(function(v){var c=s.getItemGraphicEl(v);Yo(c,t,v)}).execute(),wN(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}(Ct);function Hn(r,e,t){e=B(e)&&{coordDimensions:e}||V({},e);var a=r.getSource(),i=Ls(a,e),n=new xe(i,r);return n.initData(a,t),n}var Hs=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}(),CN=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.useColorPaletteOnData=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Hs(U(this.getData,this),U(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Hn(this,{coordDimensions:["value"],encodeDefaulter:j(ic,this)})},e.prototype.getDataParams=function(t){var a=this.getData(),i=r.prototype.getDataParams.call(this,t),n=[];return a.each(a.mapDimension("value"),function(o){n.push(o)}),i.percent=fL(n,t,a.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},e.prototype._defaultLabelLine=function(t){ii(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={zlevel:0,z:2,legendHoverLink:!0,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},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(It);function DN(r){r.registerChartView(AN),r.registerSeriesModel(CN),I1("pie",r.registerAction),r.registerLayout(j(SN,"pie")),r.registerProcessor(Gs("pie"))}var MN=function(r){E(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 Jr(this.getSource(),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.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}}},e}(It),fb=4,LN=function(){function r(){}return r}(),wp=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new LN},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]<fb;if(u){this._ctx=l;return}this._ctx=null;for(var h=0;h<i.length;){var f=i[h++],v=i[h++];isNaN(f)||isNaN(v)||this.softClipShape&&!this.softClipShape.contain(f,v)||(s.x=f-n[0]/2,s.y=v-n[1]/2,s.width=n[0],s.height=n[1],o.buildPath(t,s,!0))}},e.prototype.afterBrush=function(){var t=this.shape,a=t.points,i=t.size,n=this._ctx;if(!!n)for(var o=0;o<a.length;){var s=a[o++],l=a[o++];isNaN(s)||isNaN(l)||this.softClipShape&&!this.softClipShape.contain(s,l)||n.fillRect(s-i[0]/2,l-i[1]/2,i[0],i[1])}},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 h=u*2,f=n[h]-s/2,v=n[h+1]-l/2;if(t>=f&&a>=v&&t<=f+s&&a<=v+l)return u}return-1},e}(ct),IN=function(){function r(){this.group=new q}return r.prototype.isPersistent=function(){return!this._incremental},r.prototype.updateData=function(e,t){this.group.removeAll();var a=new wp({rectHover:!0,cursor:"default"});a.setShape({points:e.getLayout("points")}),this._setCommon(a,e,!1,t),this.group.add(a),this._incremental=null},r.prototype.updateLayout=function(e){if(!this._incremental){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)})}},r.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>2e6?(this._incremental||(this._incremental=new nu({silent:!0})),this.group.add(this._incremental)):this._incremental=null},r.prototype.incrementalUpdate=function(e,t,a){var i;this._incremental?(i=new wp,this._incremental.addDisplayable(i,!0)):(i=new wp({rectHover:!0,cursor:"default",startIndex:e.start,endIndex:e.end}),i.incremental=!0,this.group.add(i)),i.setShape({points:t.getLayout("points")}),this._setCommon(i,t,!!this._incremental,a)},r.prototype._setCommon=function(e,t,a,i){var n=t.hostModel;i=i||{};var o=t.getVisual("symbolSize");e.setShape("size",o instanceof Array?o:[o,o]),e.softClipShape=i.clipShape||null,e.symbolProxy=Yt(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var s=e.shape.size[0]<fb;e.useStyle(n.getModel("itemStyle").getItemStyle(s?["color","shadowBlur","shadowColor"]:["color"]));var l=t.getVisual("style"),u=l&&l.fill;if(u&&e.setColor(u),!a){var h=Q(e);h.seriesIndex=n.seriesIndex,e.on("mousemove",function(f){h.dataIndex=null;var v=e.findDataIndex(f.offsetX,f.offsetY);v>=0&&(h.dataIndex=v+(e.startIndex||0))})}},r.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},r.prototype._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()},r}(),PN=function(r){E(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||!this._symbolDraw.isPersistent())return{update:!0};var o=zs("").reset(t,a,i);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(n)},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 IN:new Vs,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}(Ct),RN=function(r){E(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,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(ht),Tp=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Wt).models[0]},e.type="cartesian2dAxis",e}(ht);Ht(Tp,Rs);var vb={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#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)"]}}},EN=at({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},vb),Ap=at({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}}},vb),kN=at({scale:!0,splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Ap),ON=X({scale:!0,logBase:10},Ap),cb={category:EN,value:Ap,time:kN,log:ON},NN={value:1,category:1,time:1,log:1};function Wn(r,e,t,a){A(NN,function(i,n){var o=at(at({},cb[n],!0),a,!0),s=function(l){E(u,l);function u(){for(var h=[],f=0;f<arguments.length;f++)h[f]=arguments[f];var v=l.apply(this,h)||this;return v.type=e+"Axis."+n,v}return u.prototype.mergeDefaultAndTheme=function(h,f){var v=es(this),c=v?Cn(h):{},p=f.getTheme();at(h,p.get(n+"Axis")),at(h,this.getDefaultOption()),h.type=pb(h),v&&ma(h,c,v)},u.prototype.optionUpdated=function(){var h=this.option;h.type==="category"&&(this.__ordinalMeta=ap.createByAxisModel(this))},u.prototype.getCategories=function(h){var f=this.option;if(f.type==="category")return h?f.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",pb)}function pb(r){return r.type||(r.data?"category":"value")}var BN=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 H(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),kt(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}(),Cp=["x","y"];function db(r){return r.type==="interval"||r.type==="time"}var VN=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=Cp,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!db(t)||!db(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 h=(s[0]-o[0])/l,f=(s[1]-o[1])/u,v=o[0]-i[0]*h,c=o[1]-n[0]*f,p=this._transform=[h,0,0,f,v,c];this._invTransform=on([],p)}}},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.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 re(i,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(n)),i[1]=l.toGlobalCoord(l.dataToCoord(o)),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){if(a=a||[],this._invTransform)return re(a,t,this._invTransform);var i=this.getAxis("x"),n=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(t[0])),a[1]=n.coordToData(n.toLocalCoord(t[1])),a},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 ot(i,n,o,s)},e}(BN),zN=function(r){E(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}(gr);function Dp(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,h=a.getRect(),f=[h.x,h.x+h.width,h.y,h.y+h.height],v={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,p=u==="x"?[f[2]-c,f[3]+c]:[f[0]-c,f[1]+c];if(o){var d=o.toGlobalCoord(o.dataToCoord(0));p[v.onZero]=Math.max(Math.min(d,p[1]),p[0])}n.position=[u==="y"?p[v[l]]:f[0],u==="x"?p[v[l]]:f[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?p[v[s]]-p[v.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),ee(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 gb(r){return r.get("coordinateSystem")==="cartesian2d"}function yb(r){var e={xAxisModel:null,yAxisModel:null};return A(e,function(t,a){var i=a.replace(/Model$/,""),n=r.getReferringComponents(i,Wt).models[0];e[a]=n}),e}var FN=function(){function r(e,t,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Cp,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),A(a.x,function(n){Fi(n.scale,n.model)}),A(a.y,function(n){Fi(n.scale,n.model)});var i={};A(a.x,function(n){mb(a,"y",n,i)}),A(a.y,function(n){mb(a,"x",n,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,a){var i=e.getBoxLayoutParams(),n=!a&&e.get("containLabel"),o=qt(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 h=tO(u);if(h){var f=u.isHorizontal()?"height":"width",v=u.model.get(["axisLabel","margin"]);o[f]-=h[f]+v,u.position==="top"?o.y+=h.height+v:u.position==="left"&&(o.x+=h.width+v)}}}),l()),A(this._coordsList,function(u){u.calcAffineTransform()});function l(){A(s,function(u){var h=u.isHorizontal(),f=h?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(f[v],f[1-v]),GN(u,h?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]}J(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",Wt).models[0],i=e.yAxisModel||t&&t.getReferringComponents("yAxis",Wt).models[0],n=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,lt(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(h,f){A(s.y,function(v,c){var p="x"+f+"y"+c,d=new VN(p);d.master=i,d.model=e,i._coordsMap[p]=d,i._coordsList.push(d),d.addAxis(h),d.addAxis(v)})});function u(h){return function(f,v){if(!!Mp(f,e)){var c=f.get("position");h==="x"?c!=="top"&&c!=="bottom"&&(c=o.bottom?"top":"bottom"):c!=="left"&&c!=="right"&&(c=o.left?"right":"left"),o[c]=!0;var p=new zN(h,oh(f),[0,0],f.get("type"),c),d=p.type==="category";p.onBand=d&&f.get("boundaryGap"),p.inverse=f.get("inverse"),f.axis=p,p.model=f,p.grid=n,p.index=v,n._axesList.push(p),s[h][v]=p,l[h]++}}}},r.prototype._updateScale=function(e,t){A(this._axesList,function(i){if(i.scale.setExtent(Infinity,-Infinity),i.type==="category"){var n=i.model.get("categorySortInfo");i.scale.setSortInfo(n)}}),e.eachSeries(function(i){if(gb(i)){var n=yb(i),o=n.xAxisModel,s=n.yAxisModel;if(!Mp(o,t)||!Mp(s,t))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),h=l.getAxis("x"),f=l.getAxis("y");u.type==="list"&&(a(u,h),a(u,f))}},this);function a(i,n){A(sh(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);lt(t,n)<0&&t.push(n),lt(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(!!gb(i)){var n=yb(i),o=n.xAxisModel,s=n.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),a},r.dimensions=Cp,r}();function Mp(r,e){return r.getCoordSysModel()===e}function mb(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)_b(i[l])&&(n=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&_b(i[u])&&!a[h(i[u])]){n=i[u];break}n&&(a[h(n)]=!0);function h(f){return f.dim+"_"+f.index}}function _b(r){return r&&r.type!=="category"&&r.type!=="time"&&jk(r)}function GN(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 Ra=Math.PI,be=function(){function r(e,t){this.group=new q,this.opt=t,this.axisModel=e,X(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var a=new q({x:t.position[0],y:t.position[1],rotation:t.rotation});a.updateTransform(),this._transformGroup=a}return r.prototype.hasBuilder=function(e){return!!Sb[e]},r.prototype.add=function(e){Sb[e](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(e,t,a){var i=rm(t-e),n,o;return El(i)?(o=a>0?"top":"bottom",n="center"):El(i-Ra)?(o=a>0?"bottom":"top",n="center"):(o="middle",i>0&&i<Ra?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}(),Sb={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];o&&(re(s,s,o),re(l,l,o));var u=V({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Qt({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});h.anid="line",t.add(h);var f=e.get(["axisLine","symbol"]),v=e.get(["axisLine","symbolSize"]),c=e.get(["axisLine","symbolOffset"])||0;if(typeof c=="number"&&(c=[c,c]),f!=null){typeof f=="string"&&(f=[f,f]),(typeof v=="string"||typeof v=="number")&&(v=[v,v]);var p=v[0],d=v[1];A([{rotate:r.rotation+Math.PI/2,offset:c[0],r:0},{rotate:r.rotation-Math.PI/2,offset:c[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(g,y){if(f[y]!=="none"&&f[y]!=null){var m=Yt(f[y],-p/2,-d/2,p,d,u.stroke,!0),_=g.r+g.offset;m.attr({rotation:g.rotate,x:s[0]+_*Math.cos(r.rotation),y:s[1]-_*Math.sin(r.rotation),silent:!0,z2:11}),t.add(m)}})}}},axisTickLabel:function(r,e,t,a){var i=UN(t,a,e,r),n=XN(t,a,e,r);WN(e,n,i),YN(t,a,e,r.tickDirection)},axisName:function(r,e,t,a){var i=ee(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(),h=u[0]>u[1]?-1:1,f=[n==="start"?u[0]-h*l:n==="end"?u[1]+h*l:(u[0]+u[1])/2,bb(n)?r.labelOffset+o*l:0],v,c=e.get("nameRotate");c!=null&&(c=c*Ra/180);var p;bb(n)?v=be.innerTextLayout(r.rotation,c!=null?c:r.rotation,o):(v=HN(r.rotation,n,c||0,u),p=r.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(v.rotation)),!isFinite(p)&&(p=null)));var d=s.getFont(),g=e.get("nameTruncate",!0)||{},y=g.ellipsis,m=ee(r.nameTruncateMaxWidth,g.maxWidth,p),_=new gt({x:f[0],y:f[1],rotation:v.rotation,silent:be.isLabelSilent(e),style:Ft(s,{text:i,font:d,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(xn({el:_,componentModel:e,itemName:i}),_.__fullText=i,_.anid="name",e.get("triggerEvent")){var S=be.makeAxisEventDataBase(e);S.targetType="axisName",S.name=i,Q(_).eventData=S}a.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function HN(r,e,t,a){var i=rm(t-r),n,o,s=a[0]>a[1],l=e==="start"&&!s||e!=="start"&&s;return El(i-Ra/2)?(o=l?"bottom":"top",n="center"):El(i-Ra*1.5)?(o=l?"top":"bottom",n="center"):(o="middle",i<Ra*1.5&&i>Ra/2?n=l?"left":"right":n=l?"right":"left"),{rotation:i,textAlign:n,textVerticalAlign:o}}function WN(r,e,t){if(!ox(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],h=t[1],f=t[t.length-1],v=t[t.length-2];a===!1?(tr(n),tr(u)):xb(n,o)&&(a?(tr(o),tr(h)):(tr(n),tr(u))),i===!1?(tr(s),tr(f)):xb(l,s)&&(i?(tr(l),tr(v)):(tr(s),tr(f)))}}function tr(r){r&&(r.ignore=!0)}function xb(r,e){var t=r&&r.getBoundingRect().clone(),a=e&&e.getBoundingRect().clone();if(!(!t||!a)){var i=nn([]);return qa(i,i,-r.rotation),t.applyTransform(Za([],i,r.getLocalTransform())),a.applyTransform(Za([],i,e.getLocalTransform())),t.intersect(a)}}function bb(r){return r==="middle"||r==="center"}function wb(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&&(re(o,o,e),re(s,s,e));var h=new Qt({subPixelOptimize:!0,shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});h.anid=i+"_"+r[l].tickValue,n.push(h)}return n}function UN(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(),h=wb(u,e.transform,l,X(s.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<h.length;f++)r.add(h[f]);return h}}function YN(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=X(s.getLineStyle(),X(t.getModel("axisTick").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})),h=0;h<o.length;h++)for(var f=wb(o[h],e.transform,l,u,"minorticks_"+h),v=0;v<f.length;v++)r.add(f[v])}}function XN(r,e,t,a){var i=t.axis,n=ee(a.axisLabelShow,t.get(["axisLabel","show"]));if(!(!n||i.scale.isBlank())){var o=t.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(ee(a.labelRotate,o.get("rotate"))||0)*Ra/180,h=be.innerTextLayout(a.rotation,u,a.labelDirection),f=t.getCategories&&t.getCategories(!0),v=[],c=be.isLabelSilent(t),p=t.get("triggerEvent");return A(l,function(d,g){var y=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(d.tickValue):d.tickValue,m=d.formattedLabel,_=d.rawLabel,S=o;if(f&&f[y]){var x=f[y];J(x)&&x.textStyle&&(S=new xt(x.textStyle,o,t.ecModel))}var b=S.getTextColor()||t.get(["axisLine","lineStyle","color"]),w=i.dataToCoord(y),T=new gt({x:w,y:a.labelOffset+a.labelDirection*s,rotation:h.rotation,silent:c,z2:10,style:Ft(S,{text:m,align:S.getShallow("align",!0)||h.textAlign,verticalAlign:S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||h.textVerticalAlign,fill:typeof b=="function"?b(i.type==="category"?_:i.type==="value"?y+"":y,g):b})});if(T.anid="label_"+y,p){var C=be.makeAxisEventDataBase(t);C.targetType="axisLabel",C.value=_,Q(T).eventData=C}e.add(T),T.updateTransform(),v.push(T),r.add(T),T.decomposeTransform()}),v}}function $N(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return ZN(t,r,e),t.seriesInvolved&&KN(t,r),t}function ZN(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=Ws(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var h=s.model,f=h.getModel("tooltip",a);if(A(s.getAxes(),j(d,!1,null)),s.getTooltipAxes&&a&&f.get("show")){var v=f.get("trigger")==="axis",c=f.get(["axisPointer","type"])==="cross",p=s.getTooltipAxes(f.get(["axisPointer","axis"]));(v||c)&&A(p.baseAxes,j(d,c?"cross":!0,v)),c&&A(p.otherAxes,j(d,"cross",!1))}function d(g,y,m){var _=m.model.getModel("axisPointer",i),S=_.get("show");if(!(!S||S==="auto"&&!g&&!Pp(_))){y==null&&(y=_.get("triggerTooltip")),_=g?qN(m,f,i,e,g,y):_;var x=_.get("snap"),b=Ws(m.model),w=y||x||m.type==="category",T=r.axesInfo[b]={key:b,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,involveSeries:w,snap:x,useHandle:Pp(_),seriesModels:[],linkGroup:null};u[b]=T,r.seriesInvolved=r.seriesInvolved||w;var C=QN(n,m);if(C!=null){var M=o[C]||(o[C]={axesInfo:{}});M.axesInfo[b]=T,M.mapper=n[C].mapper,T.linkGroup=M}}}})}function qN(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(v){l[v]=$(o.get(v))}),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 h=o.get(["label","show"]);if(u.show=h!=null?h:!0,!n){var f=l.lineStyle=o.get("crossStyle");f&&X(u,f.textStyle)}}return r.model.getModel("axisPointer",new xt(l,t,a))}function KN(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[Ws(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 QN(r,e){for(var t=e.model,a=e.dim,i=0;i<r.length;i++){var n=r[i]||{};if(Lp(n[a+"AxisId"],t.id)||Lp(n[a+"AxisIndex"],t.componentIndex)||Lp(n[a+"AxisName"],t.name))return i}}function Lp(r,e){return r==="all"||B(r)&&lt(r,e)>=0||r===e}function JN(r){var e=Ip(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=Pp(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 Ip(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Ws(r)]}function jN(r){var e=Ip(r);return e&&e.axisPointerModel}function Pp(r){return!!r.get(["handle","show"])}function Ws(r){return r.type+"||"+r.id}var Tb={},Wi=function(r){E(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&&JN(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=jN(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){Tb[t]=a},e.getAxisPointerClass=function(t){return t&&Tb[t]},e.type="axis",e}(Et),Rp=At();function Ab(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 h=s.length,f=Rp(r).splitAreaColors,v=Z(),c=0;if(f)for(var p=0;p<u.length;p++){var d=f.get(u[p].tickValue);if(d!=null){c=(d+(h-1)*p)%h;break}}var g=i.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=B(s)?s:[s];for(var p=1;p<u.length;p++){var m=i.toGlobalCoord(u[p].coord),_=void 0,S=void 0,x=void 0,b=void 0;i.isHorizontal()?(_=g,S=l.y,x=m-_,b=l.height,g=_+x):(_=l.x,S=g,x=l.width,b=m-S,g=S+b);var w=u[p-1].tickValue;w!=null&&v.set(w,c),e.add(new pt({anid:w!=null?"area_"+w:null,shape:{x:_,y:S,width:x,height:b},style:X({fill:s[c]},y),autoBatch:!0,silent:!0})),c=(c+1)%h}Rp(r).splitAreaColors=v}}}function Cb(r){Rp(r).splitAreaColors=null}var tB=["axisLine","axisTickLabel","axisName"],eB=["splitArea","splitLine","minorSplitLine"],Db=function(r){E(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 q,this.group.add(this._axisGroup),!!t.get("show")){var s=t.getCoordSysModel(),l=Dp(s,t),u=new be(t,V({handleAutoShown:function(h){for(var f=s.coordinateSystem.getCartesians(),v=0;v<f.length;v++){var c=f[v].getOtherAxis(t.axis).type;if(c==="value"||c==="log")return!0}return!1}},l));A(tB,u.add,u),this._axisGroup.add(u.getGroup()),A(eB,function(h){t.get([h,"show"])&&rB[h](this,this._axisGroup,t,s)},this),Xo(o,this._axisGroup,t),r.prototype.render.call(this,t,a,i,n)}},e.prototype.remove=function(){Cb(this)},e.type="cartesianAxis",e}(Wi),rB={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=B(s)?s:[s];for(var l=a.coordinateSystem.getRect(),u=i.isHorizontal(),h=0,f=i.getTicksCoords({tickModel:n}),v=[],c=[],p=o.getLineStyle(),d=0;d<f.length;d++){var g=i.toGlobalCoord(f[d].coord);u?(v[0]=g,v[1]=l.y,c[0]=g,c[1]=l.y+l.height):(v[0]=l.x,v[1]=g,c[0]=l.x+l.width,c[1]=g);var y=h++%s.length,m=f[d].tickValue;e.add(new Qt({anid:m!=null?"line_"+f[d].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:c[0],y2:c[1]},style:X({stroke:s[y]},p),silent:!0}))}}},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 h=[],f=[],v=o.getLineStyle(),c=0;c<u.length;c++)for(var p=0;p<u[c].length;p++){var d=i.toGlobalCoord(u[c][p].coord);l?(h[0]=d,h[1]=s.y,f[0]=d,f[1]=s.y+s.height):(h[0]=s.x,h[1]=d,f[0]=s.x+s.width,f[1]=d),e.add(new Qt({anid:"minor_line_"+u[c][p].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:f[0],y2:f[1]},style:v,silent:!0}))}},splitArea:function(r,e,t,a){Ab(r,e,t,a)}},Mb=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e}(Db),aB=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Mb.type,t}return e.type="yAxis",e}(Db),iB=function(r){E(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 pt({shape:t.coordinateSystem.getRect(),style:X({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Et),Lb={offset:0};function Ib(r){r.registerComponentView(iB),r.registerComponentModel(RN),r.registerCoordinateSystem("cartesian2d",FN),Wn(r,"x",Tp,Lb),Wn(r,"y",Tp,Lb),r.registerComponentView(Mb),r.registerComponentView(aB),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function nB(r){st(Ib),r.registerSeriesModel(MN),r.registerChartView(PN),r.registerLayout(zs("scatter"))}function oB(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 h=i.dataToPoint(l,s);a[u][s]=Pb(h)?h:Rb(i)})}),t.each(function(o){var s=iM(a[o],function(l){return Pb(l)})||Rb(i);a[o].push(s.slice()),t.setItemLayout(o,a[o])})}})}function Pb(r){return!isNaN(r[0])&&!isNaN(r[1])}function Rb(r){return[r.cx,r.cy]}function sB(r){var e=r.polar;if(e){B(e)||(e=[e]);var t=[];A(e,function(a,i){a.indicator?(a.type&&!a.shape&&(a.shape=a.type),r.radar=r.radar||[],B(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)})}function lB(r){return B(r)||(r=[+r,+r]),r}var uB=function(r){E(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(v,c){var p=v.getItemVisual(c,"symbol")||"circle";if(p!=="none"){var d=lB(v.getItemVisual(c,"symbolSize")),g=Yt(p,-1,-1,2,2),y=v.getItemVisual(c,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:d[0]/2,scaleY:d[1]/2,rotation:y*Math.PI/180||0}),g}}function h(v,c,p,d,g,y){p.removeAll();for(var m=0;m<c.length-1;m++){var _=u(d,g);_&&(_.__dimIdx=m,v[m]?(_.setPosition(v[m]),qo[y?"initProps":"updateProps"](_,{x:c[m][0],y:c[m][1]},t,g)):_.setPosition(c[m]),p.add(_))}}function f(v){return H(v,function(c){return[n.cx,n.cy]})}s.diff(l).add(function(v){var c=s.getItemLayout(v);if(!!c){var p=new me,d=new Me,g={shape:{points:c}};p.shape.points=f(c),d.shape.points=f(c),Nt(p,g,t,v),Nt(d,g,t,v);var y=new q,m=new q;y.add(d),y.add(p),y.add(m),h(d.shape.points,c,m,s,v,!0),s.setItemGraphicEl(v,y)}}).update(function(v,c){var p=l.getItemGraphicEl(c),d=p.childAt(0),g=p.childAt(1),y=p.childAt(2),m={shape:{points:s.getItemLayout(v)}};!m.shape.points||(h(d.shape.points,m.shape.points,y,s,v,!1),dt(d,m,t),dt(g,m,t),s.setItemGraphicEl(v,p))}).remove(function(v){o.remove(l.getItemGraphicEl(v))}).execute(),s.eachItemGraphicEl(function(v,c){var p=s.getItemModel(c),d=v.childAt(0),g=v.childAt(1),y=v.childAt(2),m=s.getItemVisual(c,"style"),_=m.fill;o.add(v),d.useStyle(X(p.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),oe(d,p,"lineStyle"),oe(g,p,"areaStyle");var S=p.getModel("areaStyle"),x=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=x,A(["emphasis","select","blur"],function(T){var C=p.getModel([T,"areaStyle"]),M=C.isEmpty()&&C.parentModel.isEmpty();g.ensureState(T).ignore=M&&x}),g.useStyle(X(S.getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var b=p.getModel("emphasis"),w=b.getModel("itemStyle").getItemStyle();y.eachChild(function(T){if(T instanceof Zt){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(_);var M=T.ensureState("emphasis");M.style=$(w);var D=s.get(s.dimensions[T.__dimIdx],c);(D==null||isNaN(D))&&(D=""),fe(T,ne(p),{labelFetcher:s.hostModel,labelDataIndex:c,labelDimIndex:T.__dimIdx,defaultText:D,inheritColor:_,defaultOpacity:m.opacity})}),Lt(v,b.get("focus"),b.get("blurScope"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(Ct),hB=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.useColorPaletteOnData=!0,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Hs(U(this.getData,this),U(this.getRawData,this))},e.prototype.getInitialData=function(t,a){return Hn(this,{generateCoord:"indicator_",generateCoordCount:Infinity})},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,h=t1(this,t);return Jt("section",{header:u,sortBlocks:!0,blocks:H(s,function(f){var v=n.get(n.mapDimension(f.dim),t);return Jt("nameValue",{markerType:"subItem",markerColor:h,name:f.name,value:v,sortParam:v})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var a=this.getData(),i=this.coordinateSystem,n=a.getValues(H(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={zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbolSize:8},e}(It),Us=cb.value;function _h(r,e){return X({show:e},r)}var fB=function(r){E(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"]),h=this.get(["axisName","formatter"]),f=this.get("axisNameGap"),v=this.get("triggerEvent"),c=H(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var d=l;p.color!=null&&(d=X({color:p.color},l));var g=at($(p),{boundaryGap:t,splitNumber:a,scale:i,axisLine:n,axisTick:o,axisLabel:s,name:p.text,nameLocation:"end",nameGap:f,nameTextStyle:d,triggerEvent:v},!1);if(u||(g.name=""),typeof h=="string"){var y=g.name;g.name=h.replace("{value}",y!=null?y:"")}else typeof h=="function"&&(g.name=h(g.name,g));var m=new xt(g,null,this.ecModel);return Ht(m,Rs.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=c},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:at({lineStyle:{color:"#bbb"}},Us.axisLine),axisLabel:_h(Us.axisLabel,!1),axisTick:_h(Us.axisTick,!1),splitLine:_h(Us.splitLine,!0),splitArea:_h(Us.splitArea,!0),indicator:[]},e}(ht),vB=["axisLine","axisTickLabel","axisName"],cB=function(r){E(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=H(i,function(o){var s=new be(o.model,{position:[a.cx,a.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return s});A(n,function(o){A(vB,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"),h=o.get("show"),f=s.get("show"),v=l.get("color"),c=u.get("color"),p=B(v)?v:[v],d=B(c)?c:[c],g=[],y=[];function m(R,k,N){var O=N%k.length;return R[O]=R[O]||[],O}if(n==="circle")for(var _=i[0].getTicksCoords(),S=a.cx,x=a.cy,b=0;b<_.length;b++){if(h){var w=m(g,p,b);g[w].push(new lr({shape:{cx:S,cy:x,r:_[b].coord}}))}if(f&&b<_.length-1){var w=m(y,d,b);y[w].push(new Ho({shape:{cx:S,cy:x,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var T,C=H(i,function(R,k){var N=R.getTicksCoords();return T=T==null?N.length-1:Math.min(N.length-1,T),H(N,function(O){return a.coordToPoint(O.coord,k)})}),M=[],b=0;b<=T;b++){for(var D=[],L=0;L<i.length;L++)D.push(C[L][b]);if(D[0]&&D.push(D[0].slice()),h){var w=m(g,p,b);g[w].push(new Me({shape:{points:D}}))}if(f&&M){var w=m(y,d,b-1);y[w].push(new me({shape:{points:D.concat(M)}}))}M=D.slice().reverse()}var I=l.getLineStyle(),P=u.getAreaStyle();A(y,function(R,k){this.group.add($e(R,{style:X({stroke:"none",fill:d[k%d.length]},P),silent:!0}))},this),A(g,function(R,k){this.group.add($e(R,{style:X({fill:"none",stroke:p[k%p.length]},I),silent:!0}))},this)},e.type="radar",e}(Et),pB=function(r){E(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}(gr),dB=function(){function r(e,t,a){this.dimensions=[],this._model=e,this._indicatorAxes=H(e.getIndicatorModels(),function(i,n){var o="indicator_"+n,s=new pB(o,new zi);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=Infinity,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var h=this._indicatorAxes[u],f=Math.abs(n-h.angle);f<o&&(s=h,l=u,o=f)}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=F(a[0],i),this.cy=F(a[1],n),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(typeof s=="string"||typeof s=="number")&&(s=[0,s]),this.r0=F(s[0],o),this.r=F(s[1],o),A(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var h=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;h=Math.atan2(Math.sin(h),Math.cos(h)),l.angle=h},this)},r.prototype.update=function(e,t){var a=this._indicatorAxes,i=this._model;A(a,function(s){s.scale.setExtent(Infinity,-Infinity)}),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(h){h.scale.unionExtentFromData(u,u.mapDimension(h.dim))})}},this);var n=i.get("splitNumber");function o(s){var l=Math.pow(10,Math.floor(Math.log(s)/Math.LN10)),u=s/l;return u===2?u=5:u*=2,u*l}A(a,function(s,l){var u=nx(s.scale,s.model).extent;Fi(s.scale,s.model);var h=s.model,f=s.scale,v=Bn(f,h.get("min",!0)),c=Bn(f,h.get("max",!0)),p=f.getInterval();if(v!=null&&c!=null)f.setExtent(+v,+c),f.setInterval((c-v)/n);else if(v!=null){var d=void 0;do d=v+p*n,f.setExtent(+v,d),f.setInterval(p),p=o(p);while(d<u[1]&&isFinite(d)&&isFinite(u[1]))}else if(c!=null){var g=void 0;do g=c-p*n,f.setExtent(g,+c),f.setInterval(p),p=o(p);while(g>u[0]&&isFinite(g)&&isFinite(u[0]))}else{var y=f.getTicks().length-1;y>n&&(p=o(p));var d=Math.ceil(u[1]/p)*p,g=ae(d-p*n);f.setExtent(g,d),f.setInterval(p)}})},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}();function gB(r){r.registerCoordinateSystem("radar",dB),r.registerComponentModel(fB),r.registerComponentView(cB),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(a){t.setItemVisual(a,"legendSymbol","roundRect")}),t.setVisual("legendSymbol","roundRect")}})}function yB(r){st(gB),r.registerChartView(uB),r.registerSeriesModel(hB),r.registerLayout(oB),r.registerProcessor(Gs("radar")),r.registerPreprocessor(sB)}var Eb="\0_ec_interaction_mutex";function mB(r,e,t){var a=Ep(r);a[e]=t}function _B(r,e,t){var a=Ep(r),i=a[e];i===t&&(a[e]=null)}function kb(r,e){return!!Ep(r)[e]}function Ep(r){return r[Eb]||(r[Eb]={})}Er({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){});var Ys=function(r){E(e,r);function e(t){var a=r.call(this)||this;a._zr=t;var i=U(a._mousedownHandler,a),n=U(a._mousemoveHandler,a),o=U(a._mouseupHandler,a),s=U(a._mousewheelHandler,a),l=U(a._pinchHandler,a);return a.enable=function(u,h){this.disable(),this._opt=X($(h)||{},{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(!(Sy(t)||t.target&&t.target.draggable)){var a=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(!(!this._dragging||!Sh("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||kb(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&&Wr(t.event),Ob(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:n,oldY:o,newX:a,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){Sy(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var a=Sh("zoomOnMouseWheel",t,this._opt),i=Sh("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,h=n>0?u:1/u;kp(this,"zoom","zoomOnMouseWheel",t,{scale:h,originX:s,originY:l,isAvailableBehavior:null})}if(i){var f=Math.abs(n),v=(n>0?1:-1)*(f>3?.4:f>1?.15:.05);kp(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!kb(this._zr,"globalPan")){var a=t.pinchScale>1?1.1:1/1.1;kp(this,"zoom",null,t,{scale:a,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(or);function kp(r,e,t,a,i){r.pointerChecker&&r.pointerChecker(a,i.originX,i.originY)&&(Wr(a.event),Ob(r,e,t,a,i))}function Ob(r,e,t,a,i){i.isAvailableBehavior=U(Sh,null,t,a),r.trigger(e,i)}function Sh(r,e,t){var a=t[r];return!r||a&&(!ft(a)||e.event[a+"Key"])}function Op(r,e,t){var a=r.target;a.x+=e,a.y+=t,a.dirty()}function Np(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||Infinity;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 SB={axisPointer:1,tooltip:1,brush:1};function xh(r,e,t){var a=e.getComponentByElement(r.topTarget),i=a&&a.coordinateSystem;return a&&a!==t&&!SB.hasOwnProperty(a.mainType)&&i&&i.model!==t}var Bp=["rect","circle","line","ellipse","polygon","polyline","path"],xB=Z(Bp),bB=Z(Bp.concat(["g"])),wB=Z(Bp.concat(["g"])),Nb=At();function bh(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}var Bb=function(){function r(e){var t=new q;this.uid=bn("ec_map_draw"),this._controller=new Ys(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new q),t.add(this._svgGroup=new q)}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,h=this.group,f=l.getTransformInfo(),v=f.raw,c=f.roam,p=!u.childAt(0)||n;p?(h.x=c.x,h.y=c.y,h.scaleX=c.scaleX,h.scaleY=c.scaleY,h.dirty()):dt(h,c,e);var d=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:a,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:v};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=Z(),a=this._regionsGroup,i=e.transformInfoRaw,n=e.mapOrGeoModel,o=e.data,s=function(l){return[l[0]*i.scaleX+i.x,l[1]*i.scaleY+i.y]};a.removeAll(),A(e.geo.regions,function(l){var u=l.name,h=n.getRegionModel(u),f=o?o.indexOfName(u):null,v=t.get(u),c=!!v;c||(v=t.set(u,new q),a.add(v));var p=new T0({segmentIgnoreThreshold:1,shape:{paths:[]}});v.add(p),c||(Fb(e,v,u,h,n,f),Gb(e,v,u,h,n),Hb(e,v,u,h,n)),A(l.geometries,function(g){if(g.type==="polygon"){for(var y=[],m=0;m<g.exterior.length;++m)y.push(s(g.exterior[m]));p.shape.paths.push(new me({segmentIgnoreThreshold:1,shape:{points:y}}));for(var m=0;m<(g.interiors?g.interiors.length:0);++m){for(var _=g.interiors[m],S=[],x=0;x<_.length;++x)S.push(s(_[x]));p.shape.paths.push(new me({segmentIgnoreThreshold:1,shape:{points:S}}))}}}),Vb(e,p,f,h),p instanceof Sr&&(p.culling=!0);var d=s(l.getCenter());zb(e,p,u,h,n,f,d)},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=Z(),n=!1;A(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,h=o.svgNodeTagLower,f=o.el,v=u?u.indexOfName(s):null,c=l.getRegionModel(s);if(xB.get(h)!=null&&f instanceof Sr&&Vb(e,f,v,c),f instanceof Sr&&(f.culling=!0),f.z2EmphasisLift=0,!o.namedFrom&&(wB.get(h)!=null&&zb(e,f,s,c,l,v,null),Fb(e,f,s,c,l,v),Gb(e,f,s,c,l),bB.get(h)!=null)){var p=Hb(e,f,s,c,l);p==="self"&&(n=!0);var d=i.get(s)||i.set(s,[]);d.push(f)}},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){_i(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=wa.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=wa.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,Op(o,u.dx,u.dy),a.dispatchAction(V(l(),{dx:u.dx,dy:u.dy}))},this),n.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,Np(o,u.scale,u.originX,u.originY),a.dispatchAction(V(l(),{zoom:u.scale,originX:u.originX,originY:u.originY}))},this),n.setPointerChecker(function(u,h,f){return i.containPoint([h,f])&&!xh(u,a,e)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=Nb(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 Vb(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=bh(i),u=bh(n),h=bh(s),f=bh(o),v=r.data;if(v){var c=v.getItemVisual(t,"style"),p=v.getItemVisual(t,"decal");r.isVisualEncodedByVisualMap&&c.fill&&(l.fill=c.fill),p&&(l.decal=ps(p,r.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=h,e.ensureState("blur").style=f,_i(e)}function zb(r,e,t,a,i,n,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),n)),h=s&&s.getItemLayout(n);if(l||u||h&&h.showLabel){var f=l?t:n,v=void 0;(!s||n>=0)&&(v=i);var c=o?{normal:{align:"center",verticalAlign:"middle"}}:null;fe(e,ne(a),{labelFetcher:v,labelDataIndex:f,defaultText:t},c);var p=e.getTextContent();if(p&&(Nb(p).ignore=p.ignore,e.textConfig&&o)){var d=e.getBoundingRect().clone();e.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}TI(e,n,null),e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Fb(r,e,t,a,i,n){r.data?r.data.setItemGraphicEl(n,e):Q(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:t,region:a&&a.option||{}}}function Gb(r,e,t,a,i){r.data||xn({el:e,componentModel:i,itemName:t,itemTooltipOption:a.get("tooltip")})}function Hb(r,e,t,a,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var n=a.getModel("emphasis"),o=n.get("focus");return Lt(e,o,n.get("blurScope")),r.isGeo&&F2(e,i,t),o}var TB=function(r){E(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 Bb(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 h=u.point,f=u.offset,v=new lr({style:{fill:t.getData().getVisual("style").fill},shape:{cx:h[0]+f*9,cy:h[1],r:3},silent:!0,z2:8+(f?0:dn+1)});if(!f){var c=t.mainSeries.getData(),p=n.getName(l),d=c.indexOfName(p),g=n.getItemModel(l),y=g.getModel("label"),m=c.getItemGraphicEl(d);fe(v,ne(g),{labelFetcher:{getFormattedLabel:function(_,S){return t.getFormattedLabel(d,S)}}}),v.disableLabelAnimation=!0,y.get("position")||v.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(_){Zl(v,_)}}o.add(v)}}})},e.type="map",e}(Ct),AB=function(r){E(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=Hn(this,{coordDimensions:["value"],encodeDefaulter:j(ic,this)}),i=Z(),n=[],o=0,s=a.count();o<s;o++){var l=a.getName(o);i.set(l,!0)}var u=wa.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return A(u.regions,function(h){var f=h.name;i.get(f)||n.push(f)}),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=[],h=0;h<l.length;h++){var f=l[h].originalData.indexOfName(s),v=n.mapDimension("value");isNaN(l[h].originalData.get(v,f))||u.push(l[h].name)}return Jt("section",{header:u.join(", "),noHeader:!u.length,blocks:[Jt("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.symbolType||"roundRect",i=Yt(a,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);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={zlevel:0,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}(It);function CB(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=Infinity,l=-Infinity,u=t[n].length,h=0;h<u;h++)s=Math.min(s,t[n][h]),l=Math.max(l,t[n][h]),o+=t[n][h];var f;return e==="min"?f=s:e==="max"?f=l:e==="average"?f=o/u:f=o,u===0?NaN:f})}function DB(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=CB(H(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 MB(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,h){var f=l.getName(h),v=s.getRegion(f);if(!(!v||isNaN(u))){var c=i[f]||0,p=s.dataToPoint(v.getCenter());i[f]=c+1,l.setItemLayout(h,{point:p,offset:c})}})});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 Wb=re,Un=function(r){E(e,r);function e(t){var a=r.call(this)||this;return a.type="view",a.dimensions=["x","y"],a._roamTransformable=new Ur,a._rawTransformable=new Ur,a.name=t,a}return e.prototype.setBoundingRect=function(t,a,i,n){return this._rect=new ot(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 ot(t,a,i,n)},e.prototype._transformTo=function(t,a,i,n){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new ot(t,a,i,n));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(t){!t||(this._center=t,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=re([],n,t),i=re([],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(),co(this.transform||(this.transform=[]),a.transform||ze()),this._rawTransform=a.getLocalTransform(),this.invTransform=this.invTransform||[],on(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,a=this._roamTransformable,i=new Ur;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?Wb(i,t,n):ge(i,t)},e.prototype.pointToData=function(t){var a=this.invTransform;return a?Wb([],t,a):[t[0],t[1]]},e.prototype.convertToPixel=function(t,a,i){var n=Ub(a);return n===this?n.dataToPoint(i):null},e.prototype.convertFromPixel=function(t,a,i){var n=Ub(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}(Ur);function Ub(r){var e=r.seriesModel;return e?e.coordinateSystem:null}var LB={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},wh=function(r){E(e,r);function e(t,a,i){var n=r.call(this,t)||this;n.dimensions=["lng","lat"],n.type="geo",n._nameCoordMap=Z(),n.map=a;var o=wa.load(a,i.nameMap,i.nameProperty),s=wa.getGeoResource(a);n.resourceType=s?s.type:null;var l=LB[s.type];n._regionsMap=o.regionsMap,n._invertLongitute=l.invertLongitute,n.regions=o.regions,n.aspectScale=vt(i.aspectScale,l.aspectScale);var u=o.boundingRect;return n.setBoundingRect(u.x,u.y,u.width,u.height),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 ot(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(typeof t=="string"&&(t=this.getGeoCoord(t)),t)return Un.prototype.dataToPoint.call(this,t,a,i)},e.prototype.convertToPixel=function(t,a,i){var n=Yb(a);return n===this?n.dataToPoint(i):null},e.prototype.convertFromPixel=function(t,a,i){var n=Yb(a);return n===this?n.pointToData(i):null},e}(Un);Ht(wh,Un);function Yb(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",Wt).models[0]||{}).coordinateSystem:null}function Xb(r,e){var t=r.get("boundingCoords");if(t!=null){var a=t[0],i=t[1];isNaN(a[0])||isNaN(a[1])||isNaN(i[0])||isNaN(i[1])||this.setBoundingRect(a[0],a[1],i[0]-a[0],i[1]-a[1])}var n=this.getBoundingRect(),o=r.get("layoutCenter"),s=r.get("layoutSize"),l=e.getWidth(),u=e.getHeight(),h=n.width/n.height*this.aspectScale,f=!1,v,c;o&&s&&(v=[F(o[0],l),F(o[1],u)],c=F(s,Math.min(l,u)),!isNaN(v[0])&&!isNaN(v[1])&&!isNaN(c)&&(f=!0));var p;if(f)p={},h>1?(p.width=c,p.height=c/h):(p.height=c,p.width=c*h),p.y=v[1]-p.height/2,p.x=v[0]-p.width/2;else{var d=r.getBoxLayoutParams();d.aspect=h,p=qt(d,{width:l,height:u})}this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(r.get("center")),this.setZoom(r.get("zoom"))}function IB(r,e){A(e.get("geoCoord"),function(t,a){r.addGeoCoord(a,t)})}var PB=function(){function r(){this.dimensions=wh.prototype.dimensions}return r.prototype.create=function(e,t){var a=[];e.eachComponent("geo",function(n,o){var s=n.get("map"),l=new wh(s+o,s,{nameMap:n.get("nameMap"),nameProperty:n.get("nameProperty"),aspectScale:n.get("aspectScale")});l.zoomLimit=n.get("scaleLimit"),a.push(l),n.coordinateSystem=l,l.model=n,l.resize=Xb,l.resize(n,t)}),e.eachSeries(function(n){var o=n.get("coordinateSystem");if(o==="geo"){var s=n.get("geoIndex")||0;n.coordinateSystem=a[s]}});var i={};return e.eachSeriesByType("map",function(n){if(!n.getHostGeoModel()){var o=n.getMapType();i[o]=i[o]||[],i[o].push(n)}}),A(i,function(n,o){var s=H(n,function(u){return u.get("nameMap")}),l=new wh(o,o,{nameMap:cf(s),nameProperty:n[0].get("nameProperty"),aspectScale:n[0].get("aspectScale")});l.zoomLimit=ee.apply(null,H(n,function(u){return u.get("scaleLimit")})),a.push(l),l.resize=Xb,l.resize(n[0],t),A(n,function(u){u.coordinateSystem=l,IB(l,u)})}),a},r.prototype.getFilledRegions=function(e,t,a,i){for(var n=(e||[]).slice(),o=Z(),s=0;s<n.length;s++)o.set(n[s].name,n[s]);var l=wa.load(t,a,i);return A(l.regions,function(u){var h=u.name;!o.get(h)&&n.push({name:h})}),n},r}(),$b=new PB,RB=function(r){E(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=wa.getGeoResource(t.map);if(n&&n.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(t,i),ii(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,a=this.option;a.regions=$b.getFilledRegions(a.regions,a.map,a.nameMap,a.nameProperty);var i={};this._optionModelMap=oo(a.regions||[],function(n,o){var s=o.name;return s&&(n.set(s,new xt(o,t,t.ecModel)),o.selected&&(i[s]=!0)),n},Z()),a.selectedMap||(a.selectedMap=i)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new xt(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(typeof n=="function")return o.status=a,n(o);if(typeof n=="string")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={zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},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}(ht);function Vp(r,e,t){var a=r.getZoom(),i=r.getCenter(),n=e.zoom,o=r.dataToPoint(i);if(e.dx!=null&&e.dy!=null&&(o[0]-=e.dx,o[1]-=e.dy,r.setCenter(r.pointToData(o))),n!=null){if(t){var s=t.min||0,l=t.max||Infinity;n=Math.max(Math.min(a*n,l),s)/a}r.scaleX*=n,r.scaleY*=n;var u=(e.originX-r.x)*(n-1),h=(e.originY-r.y)*(n-1);r.x-=u,r.y-=h,r.updateTransform(),r.setCenter(r.pointToData(o)),r.setZoom(n*a)}return{center:r.getCenter(),zoom:r.getZoom()}}var EB=function(r){E(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){var i=new Bb(a);this._mapDraw=i,this.group.add(i.group),this._api=a},e.prototype.render=function(t,a,i,n){var o=this._mapDraw;t.get("show")?o.draw(t,a,i,this,n):this._mapDraw.group.removeAll(),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this._model=t,this.updateSelectStatus(t,a,i)},e.prototype._handleRegionClick=function(t){var a;Pn(t.target,function(i){return(a=Q(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=Q(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}(Et);function Zb(r){r.registerCoordinateSystem("geo",$b),r.registerComponentModel(RB),r.registerComponentView(EB);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(f){o[f.name]=l.isSelected(f.name)||!1});var h=[];A(o,function(f,v){o[v]&&h.push(v)}),s.push({geoIndex:l.componentIndex,name:h})}),{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){var i=t.componentType||"series";a.eachComponent({mainType:i,query:t},function(n){var o=n.coordinateSystem;if(o.type==="geo"){var s=Vp(o,t,n.get("scaleLimit"));n.setCenter&&n.setCenter(s.center),n.setZoom&&n.setZoom(s.zoom),i==="series"&&A(n.seriesGroup,function(l){l.setCenter(s.center),l.setZoom(s.zoom)})}})})}function kB(r){st(Zb),r.registerChartView(TB),r.registerSeriesModel(AB),r.registerLayout(MB),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,DB),I1("map",r.registerAction)}function OB(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 NB(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){zB(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=FB(r,i,r.parentNode.hierNode.defaultAncestor||a[0],e)}function BB(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function qb(r){return arguments.length?r:WB}function Xs(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function VB(r,e){return qt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function zB(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 FB(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,h=o.hierNode.modifier,f=s.hierNode.modifier;s=zp(s),n=Fp(n),s&&n;){i=zp(i),o=Fp(o),i.hierNode.ancestor=r;var v=s.hierNode.prelim+f-n.hierNode.prelim-u+a(s,n);v>0&&(HB(GB(s,r,t),r,v),u+=v,l+=v),f+=s.hierNode.modifier,u+=n.hierNode.modifier,l+=i.hierNode.modifier,h+=o.hierNode.modifier}s&&!zp(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),n&&!Fp(o)&&(o.hierNode.thread=n,o.hierNode.modifier+=u-h,t=r)}return t}function zp(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function Fp(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function GB(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function HB(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 WB(r,e){return r.parentNode===e.parentNode?1:2}var UB=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),YB=function(r){E(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 UB},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,h=u==="TB"||u==="BT"?0:1,f=1-h,v=F(a.forkPosition,1),c=[];c[h]=o[h],c[f]=o[f]+(l[f]-o[f])*v,t.moveTo(o[0],o[1]),t.lineTo(c[0],c[1]),t.moveTo(s[0],s[1]),c[h]=s[h],t.lineTo(c[0],c[1]),c[h]=l[h],t.lineTo(c[0],c[1]),t.lineTo(l[0],l[1]);for(var p=1;p<n-1;p++){var d=i[p];t.moveTo(d[0],d[1]),c[h]=d[h],t.lineTo(c[0],c[1])}},e}(ct),XB=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new q,t}return e.prototype.init=function(t,a){this._controller=new Ys(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),this._updateController(t,a,i);var u=this._data;n.diff(u).add(function(h){Kb(n,h)&&Qb(n,h,null,s,t)}).update(function(h,f){var v=u.getItemGraphicEl(f);if(!Kb(n,h)){v&&Jb(u,f,v,s,t);return}Qb(n,h,v,s,t)}).remove(function(h){var f=u.getItemGraphicEl(h);f&&Jb(u,h,f,s,t)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&n.eachItemGraphicEl(function(h,f){h.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:f})})}),this._data=n},e.prototype._updateViewCoordSys=function(t){var a=t.getData(),i=[];a.each(function(h){var f=a.getItemLayout(h);f&&!isNaN(f.x)&&!isNaN(f.y)&&i.push([+f.x,+f.y])});var n=[],o=[];wv(i,n,o);var s=this._min,l=this._max;o[0]-n[0]==0&&(n[0]=s?s[0]:n[0]-1,o[0]=l?l[0]:o[0]+1),o[1]-n[1]==0&&(n[1]=s?s[1]:n[1]-1,o[1]=l?l[1]:o[1]+1);var u=t.coordinateSystem=new Un;u.zoomLimit=t.get("scaleLimit"),u.setBoundingRect(n[0],n[1],o[0]-n[0],o[1]-n[1]),u.setCenter(t.get("center")),u.setZoom(t.get("zoom")),this.group.attr({x:u.x,y:u.y,scaleX:u.scaleX,scaleY:u.scaleY}),this._min=n,this._max=o},e.prototype._updateController=function(t,a,i){var n=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,h,f){var v=l.getBoundingRect();return v.applyTransform(l.transform),v.contain(h,f)&&!xh(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){Op(s,u.dx,u.dy),i.dispatchAction({seriesId:t.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Np(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}(Ct);function Kb(r,e){var t=r.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function Qb(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",h=r.tree.root,f=o.parentNode===h?o:o.parentNode||o,v=r.getItemGraphicEl(f.dataIndex),c=f.getLayout(),p=v?{x:v.__oldX,y:v.__oldY,rawX:v.__radialOldRawX,rawY:v.__radialOldRawY}:c,d=o.getLayout();n?(t=new Bs(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.x=p.x,t.y=p.y):t.updateData(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=d.rawX,t.__radialRawY=d.rawY,a.add(t),r.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,dt(t,{x:d.x,y:d.y},i);var g=t.getSymbolPath();if(i.get("layout")==="radial"){var y=h.children[0],m=y.getLayout(),_=y.children.length,S=void 0,x=void 0;if(d.x===m.x&&o.isExpand===!0){var b={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(b.y-m.y,b.x-m.x),S<0&&(S=Math.PI*2+S),x=b.x<m.x,x&&(S=S-Math.PI)}else S=Math.atan2(d.y-m.y,d.x-m.x),S<0&&(S=Math.PI*2+S),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(x=d.x<m.x,x&&(S=S-Math.PI)):(x=d.x>m.x,x||(S=S-Math.PI));var w=x?"left":"right",T=s.getModel("label"),C=T.get("rotate"),M=C*(Math.PI/180),D=g.getTextContent();D&&(g.setTextConfig({position:T.get("position")||w,rotation:C==null?-S:M,origin:"center"}),D.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),I=L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;I&&(Q(t).focus=I),$B(i,o,h,t,p,c,d,a),t.__edge&&(t.onHoverStateChange=function(P){if(P!=="blur"){var R=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===No||Zl(t.__edge,P)}})}function $B(r,e,t,a,i,n,o,s){var l=e.getModel(),u=r.get("edgeShape"),h=r.get("layout"),f=r.getOrient(),v=r.get(["lineStyle","curveness"]),c=r.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),d=a.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(d||(d=a.__edge=new Wo({shape:Gp(h,f,v,i,i)})),dt(d,{shape:Gp(h,f,v,n,o)},r));else if(u==="polyline"&&h==="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])}d||(d=a.__edge=new YB({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:c}})),dt(d,{shape:{parentPoint:[o.x,o.y],childPoints:y}},r)}d&&(d.useStyle(X({strokeNoScale:!0,fill:null},p)),oe(d,l,"lineStyle"),_i(d),s.add(d))}function Jb(r,e,t,a,i){for(var n=r.tree.getNodeByDataIndex(e),o=r.tree.root,s=n.parentNode===o?n:n.parentNode||n,l;l=s.getLayout(),l==null;)s=s.parentNode===o?s:s.parentNode||s;var u={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};ga(t,{x:l.x+1,y:l.y+1},i,{cb:function(){a.remove(t),r.setItemGraphicEl(e,null)},removeOpt:u}),t.fadeOut(null,{fadeLabel:!0,animation:u});var h=r.getItemGraphicEl(s.dataIndex),f=h.__edge,v=t.__edge||(s.isExpand===!1||s.children.length===1?f:void 0),c=i.get("edgeShape"),p=i.get("layout"),d=i.get("orient"),g=i.get(["lineStyle","curveness"]);v&&(c==="curve"?ga(v,{shape:Gp(p,d,g,l,l),style:{opacity:0}},i,{cb:function(){a.remove(v)},removeOpt:u}):c==="polyline"&&i.get("layout")==="orthogonal"&&ga(v,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},i,{cb:function(){a.remove(v)},removeOpt:u}))}function Gp(r,e,t,a,i){var n,o,s,l,u,h,f,v;if(r==="radial"){u=a.rawX,f=a.rawY,h=i.rawX,v=i.rawY;var c=Xs(u,f),p=Xs(u,f+(v-f)*t),d=Xs(h,v+(f-v)*t),g=Xs(h,v);return{x1:c.x||0,y1:c.y||0,x2:g.x||0,y2:g.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:d.x||0,cpy2:d.y||0}}else u=a.x,f=a.y,h=i.x,v=i.y,(e==="LR"||e==="RL")&&(n=u+(h-u)*t,o=f,s=h+(u-h)*t,l=v),(e==="TB"||e==="BT")&&(n=u,o=f+(v-f)*t,s=h,l=v+(f-v)*t);return{x1:u,y1:f,x2:h,y2:v,cpx1:n,cpy1:o,cpx2:s,cpy2:l}}var er=At();function jb(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,tw(e,t,r),A(t,function(a){A(e.TRANSFERABLE_METHODS,function(i){a.wrapMethod(i,j(ZB,r))})}),e.wrapMethod("cloneShallow",j(KB,r)),A(e.CHANGABLE_METHODS,function(a){e.wrapMethod(a,j(qB,r))}),de(t[e.dataType]===e)}function ZB(r,e){if(jB(this)){var t=V({},er(this).datas);t[this.dataType]=e,tw(e,t,r)}else Hp(e,this.dataType,er(this).mainData,r);return e}function qB(r,e){return r.struct&&r.struct.update(),e}function KB(r,e){return A(er(e).datas,function(t,a){t!==e&&Hp(t.cloneShallow(),a,e,r)}),e}function QB(r){var e=er(this).mainData;return r==null||e==null?e:er(e).datas[r]}function JB(){var r=er(this).mainData;return r==null?[{data:r}]:H(St(er(r).datas),function(e){return{type:e,data:er(r).datas[e]}})}function jB(r){return er(r).mainData===r}function tw(r,e,t){er(r).datas={},A(e,function(a,i){Hp(a,i,r,t)})}function Hp(r,e,t,a){er(t).datas[e]=r,er(r).mainData=t,r.dataType=e,a.struct&&(r[a.structAttr]=a.struct,a.struct[a.datasAttr[e]]=r),r.getLinkedData=QB,r.getLinkedDataAll=JB}var tV=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){typeof e=="function"&&(a=t,t=e,e=null),e=e||{},ft(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.get(t.getDimension(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.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}(),Wp=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(h,f){var v=h.value;o=Math.max(o,B(v)?v.length:1),n.push(h);var c=new tV($t(h.name,""),i);f?eV(c,f):i.root=c,i._nodes.push(c);var p=h.children;if(p)for(var d=0;d<p.length;d++)s(p[d],c)}i.root.updateDepthAndHeight(0);var l=Ls(n,{coordDimensions:["value"],dimensionsCount:o}),u=new xe(l,t);return u.initData(n),a&&a(u),jb({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},r}();function eV(r,e){var t=e.children;r.parentNode!==e&&(t.push(r),r.parentNode=e)}var rV=function(r){E(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 xt(i,this,this.ecModel),o=Wp.createTree(a,this,s);function s(f){f.wrapMethod("getItemModel",function(v,c){var p=o.getNodeByDataIndex(c);return(!p.children.length||!p.isExpand)&&(v.parentModel=n),v})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=t.expandAndCollapse,h=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var v=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=v&&v.collapsed!=null?!v.collapsed:f.depth<=h}),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 Jt("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.type="series.tree",e.layoutMode="box",e.defaultOption={zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(It);function aV(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 $s(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 iV(r,e){r.eachSeriesByType("tree",function(t){nV(t,e)})}function nV(r,e){var t=VB(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=qb(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(i=t.width,n=t.height,o=qb());var s=r.getData().tree.root,l=s.children[0];if(l){OB(s),aV(l,NB,o),s.hierNode.modifier=-l.hierNode.prelim,$s(l,BB);var u=l,h=l,f=l;$s(l,function(_){var S=_.getLayout().x;S<u.getLayout().x&&(u=_),S>h.getLayout().x&&(h=_),_.depth>f.depth&&(f=_)});var v=u===h?1:o(u,h)/2,c=v-u.getLayout().x,p=0,d=0,g=0,y=0;if(a==="radial")p=i/(h.getLayout().x+v+c),d=n/(f.depth-1||1),$s(l,function(_){g=(_.getLayout().x+c)*p,y=(_.depth-1)*d;var S=Xs(g,y);_.setLayout({x:S.x,y:S.y,rawX:g,rawY:y},!0)});else{var m=r.getOrient();m==="RL"||m==="LR"?(d=n/(h.getLayout().x+v+c),p=i/(f.depth-1||1),$s(l,function(_){y=(_.getLayout().x+c)*d,g=m==="LR"?(_.depth-1)*p:i-(_.depth-1)*p,_.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(p=i/(h.getLayout().x+v+c),d=n/(f.depth-1||1),$s(l,function(_){g=(_.getLayout().x+c)*p,y=m==="TB"?(_.depth-1)*d:n-(_.depth-1)*d,_.setLayout({x:g,y},!0)}))}}}function oV(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 sV(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){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=a.coordinateSystem,n=Vp(i,e);a.setCenter&&a.setCenter(n.center),a.setZoom&&a.setZoom(n.zoom)})})}function lV(r){r.registerChartView(XB),r.registerSeriesModel(rV),r.registerLayout(iV),r.registerVisual(oV),sV(r)}function Zs(r,e,t){if(r&&lt(e,r.type)>=0){var a=t.getData().tree.root,i=r.targetNode;if(typeof i=="string"&&(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 ew(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function Up(r,e){var t=ew(r);return lt(t,e)>=0}function Yp(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 uV=function(){},rw=["treemapZoomToNode","treemapRender","treemapMove"];function hV(r){for(var e=0;e<rw.length;e++)r.registerAction({type:rw[e],update:"updateView"},uV);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=Zs(t,s,n);if(l){var u=n.getViewRoot();u&&(t.direction=Up(u,l.node)?"rollUp":"drillDown"),n.resetViewRoot(l.node)}}})}function aw(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=lc(r.ecModel,n.name||n.dataIndex+"",a);i.setVisual("decal",o)})}var fV=function(r){E(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};iw(i);var n=t.levels||[],o=this.designatedVisualItemStyle={},s=new xt({itemStyle:o},this,a);n=t.levels=vV(n,a);var l=H(n||[],function(f){return new xt(f,s,a)},this),u=Wp.createTree(i,this,h);function h(f){f.wrapMethod("getItemModel",function(v,c){var p=u.getNodeByDataIndex(c),d=l[p.depth];return v.parentModel=d||s,v})}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 Jt("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.treePathInfo=Yp(i,this),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=Z(),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(){aw(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"}}},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%"],ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(It);function iw(r){var e=0;A(r.children,function(a){iw(a);var i=a.value;B(i)&&(i=i[0]),e+=i});var t=r.value;B(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),B(r.value)?r.value[0]=t:r.value=t}function vV(r,e){var t=Rt(e.get("color")),a=Rt(e.get(["aria","decal","decals"]));if(!!t){r=r||[];var i,n;A(r,function(s){var l=new xt(s),u=l.get("color"),h=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||h&&h!=="none")&&(n=!0)});var o=r[0]||(r[0]={});return i||(o.color=t.slice()),!n&&a&&(o.decal=a.slice()),r}}var cV=8,nw=8,Xp=5,pV=function(){function r(e){this.group=new q,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=s.getModel("textStyle"),u={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,u,l),this._renderContent(e,u,s,l,i),Tu(o,u.pos,u.box)}},r.prototype._prepare=function(e,t,a){for(var i=e;i;i=i.parentNode){var n=$t(i.getModel().get("name"),""),o=a.getTextRect(n),s=Math.max(o.width+cV*2,t.emptyItemWidth);t.totalWidth+=s+nw,t.renderList.push({node:i,text:n,width:s})}},r.prototype._renderContent=function(e,t,a,i,n){for(var o=0,s=t.emptyItemWidth,l=e.get(["breadcrumb","height"]),u=$I(t.pos,t.box),h=t.totalWidth,f=t.renderList,v=f.length-1;v>=0;v--){var c=f[v],p=c.node,d=c.width,g=c.text;h>u.width&&(h-=d-s,d=s,g=null);var y=new me({shape:{points:dV(o,0,d,l,v===f.length-1,v===0)},style:X(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new gt({style:{text:g,fill:i.getTextColor(),font:i.getFont()}}),textConfig:{position:"inside"},z2:dn*1e4,onclick:j(n,p)});y.disableLabelAnimation=!0,this.group.add(y),gV(y,e,p),o+=d+nw}},r.prototype.remove=function(){this.group.removeAll()},r}();function dV(r,e,t,a,i,n){var o=[[i?r:r-Xp,e],[r+t,e],[r+t,e+a],[i?r:r-Xp,e+a]];return!n&&o.splice(2,0,[r+t+Xp,e+a/2]),!i&&o.push([r,e+a/2]),o}function gV(r,e,t){Q(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&Yp(t,e)}}var yV=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 mV(){return new yV}var $p=q,ow=pt,sw=3,lw="label",uw="upperLabel",_V=dn*10,SV=dn*2,xV=dn*3,Ui=li([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),hw=function(r){var e=Ui(r);return e.stroke=e.fill=e.lineWidth=null,e},Th=At(),bV=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=qs(),t}return e.prototype.render=function(t,a,i,n){var o=a.findComponents({mainType:"series",subType:"treemap",query:n});if(!(lt(o,t)<0)){this.seriesModel=t,this.api=i,this.ecModel=a;var s=["treemapZoomToNode","treemapRootToNode"],l=Zs(n,s,t),u=n&&n.type,h=t.layoutInfo,f=!this._oldTree,v=this._storage,c=u==="treemapRootToNode"&&l&&v?{rootNodeGroup:v.nodeGroup[l.node.getRawIndex()],direction:n.direction}:null,p=this._giveContainerGroup(h),d=this._doRender(p,t,c);!f&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(p,d,t,c):d.renderFinally(),this._resetController(i),this._renderBreadcrumb(t,i,l)}},e.prototype._giveContainerGroup=function(t){var a=this._containerGroup;return a||(a=this._containerGroup=new $p,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=qs(),l=qs(),u=this._storage,h=[];function f(g,y,m,_){return wV(a,l,u,i,s,h,g,y,m,_)}c(n.root?[n.root]:[],o&&o.root?[o.root]:[],t,n===o||!o,0);var v=p(u);return this._oldTree=n,this._storage=l,{lastsForAnimation:s,willDeleteEls:v,renderFinally:d};function c(g,y,m,_,S){_?(y=g,A(g,function(w,T){!w.isRemoved()&&b(T,T)})):new Ca(y,g,x,x).add(b).update(b).remove(j(b,null)).execute();function x(w){return w.getId()}function b(w,T){var C=w!=null?g[w]:null,M=T!=null?y[T]:null,D=f(C,M,m,S);D&&c(C&&C.viewChildren||[],M&&M.viewChildren||[],D,_,S+1)}}function p(g){var y=qs();return g&&A(g,function(m,_){var S=y[_];A(m,function(x){x&&(S.push(x),Th(x).willDelete=!0)})}),y}function d(){A(v,function(g){A(g,function(y){y.parent&&y.parent.remove(y)})}),A(h,function(g){g.invisible=!0,g.dirty()})}},e.prototype._doAnimation=function(t,a,i,n){if(!!i.get("animation")){var o=i.get("animationDurationUpdate"),s=i.get("animationEasing"),l=(wt(o)?0:o)||0,u=(wt(s)?null:s)||"cubicOut",h=mV();A(a.willDeleteEls,function(f,v){A(f,function(c,p){if(!c.invisible){var d=c.parent,g,y=Th(d);if(n&&n.direction==="drillDown")g=d===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=v==="nodeGroup"?{x:m,y:_,style:{opacity:0}}:{shape:{x:m,y:_,width:0,height:0},style:{opacity:0}}}g&&h.add(c,g,l,0,u)}})}),A(this._storage,function(f,v){A(f,function(c,p){var d=a.lastsForAnimation[v][p],g={};!d||(c instanceof q?d.oldX!=null&&(g.x=c.x,g.y=c.y,c.x=d.oldX,c.y=d.oldY):(d.oldShape&&(g.shape=V({},c.shape),c.setShape(d.oldShape)),d.fadein?(c.setStyle("opacity",0),g.style={opacity:1}):c.style.opacity!==1&&(g.style={opacity:1})),h.add(c,g,l,0,u))})},this),this._state="animating",h.finished(U(function(){this._state="ready",a.renderFinally()},this)).start()}},e.prototype._resetController=function(t){var a=this._controller;a||(a=this._controller=new Ys(t.getZr()),a.enable(this.seriesModel.get("roam")),a.on("pan",U(this._onPan,this)),a.on("zoom",U(this._onZoom,this)));var i=new ot(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)>sw||Math.abs(t.dy)>sw)){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 ot(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;a-=l.x,i-=l.y;var u=ze();yr(u,u,[-a,-i]),If(u,u,[t.scale,t.scale]),yr(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),h=l.get("target",!0)||"blank";u&&bu(u,h)}}}}},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 pV(this.group))).render(t,a,i.node,function(o){n._state!=="animating"&&(Up(t.getViewRoot(),o)?n._rootToNode({node:o}):n._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=qs(),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}(Ct);function qs(){return{nodeGroup:[],background:[],content:[]}}function wV(r,e,t,a,i,n,o,s,l,u){if(!o)return;var h=o.getLayout(),f=r.getData(),v=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!h||!h.isInView)return;var c=h.width,p=h.height,d=h.borderWidth,g=h.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=h.upperHeight,x=_&&_.length,b=v.getModel("itemStyle"),w=v.getModel(["emphasis","itemStyle"]),T=v.getModel(["blur","itemStyle"]),C=v.getModel(["select","itemStyle"]),M=b.get("borderRadius")||0,D=K("nodeGroup",$p);if(!D)return;if(l.add(D),D.x=h.x||0,D.y=h.y||0,D.markRedraw(),Th(D).nodeWidth=c,Th(D).nodeHeight=p,h.isAboveViewRoot)return D;var L=K("background",ow,u,SV);L&&N(D,L,x&&h.upperLabelHeight);var I=v.get(["emphasis","focus"]),P=v.get(["emphasis","blurScope"]),R=I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():I;if(x)ql(D)&&yn(D,!1),L&&(yn(L,!0),f.setItemGraphicEl(o.dataIndex,L),Nv(L,R,P));else{var k=K("content",ow,u,xV);k&&O(D,k),L&&ql(L)&&yn(L,!1),yn(D,!0),f.setItemGraphicEl(o.dataIndex,D),Nv(D,R,P)}return D;function N(ut,tt,bt){var it=Q(tt);if(it.dataIndex=o.dataIndex,it.seriesIndex=r.seriesIndex,tt.setShape({x:0,y:0,width:c,height:p,r:M}),g)G(tt);else{tt.invisible=!1;var Dt=o.getVisual("style"),Vt=Dt.stroke,Kt=hw(b);Kt.fill=Vt;var zt=Ui(w);zt.fill=w.get("borderColor");var le=Ui(T);le.fill=T.get("borderColor");var we=Ui(C);if(we.fill=C.get("borderColor"),bt){var ue=c-2*d;z(tt,Vt,Dt.opacity,{x:d,y:0,width:ue,height:S})}else tt.removeTextContent();tt.setStyle(Kt),tt.ensureState("emphasis").style=zt,tt.ensureState("blur").style=le,tt.ensureState("select").style=we,_i(tt)}ut.add(tt)}function O(ut,tt){var bt=Q(tt);bt.dataIndex=o.dataIndex,bt.seriesIndex=r.seriesIndex;var it=Math.max(c-2*d,0),Dt=Math.max(p-2*d,0);if(tt.culling=!0,tt.setShape({x:d,y:d,width:it,height:Dt,r:M}),g)G(tt);else{tt.invisible=!1;var Vt=o.getVisual("style"),Kt=Vt.fill,zt=hw(b);zt.fill=Kt,zt.decal=Vt.decal;var le=Ui(w),we=Ui(T),ue=Ui(C);z(tt,Kt,Vt.opacity,null),tt.setStyle(zt),tt.ensureState("emphasis").style=le,tt.ensureState("blur").style=we,tt.ensureState("select").style=ue,_i(tt)}ut.add(tt)}function G(ut){!ut.invisible&&n.push(ut)}function z(ut,tt,bt,it){var Dt=v.getModel(it?uw:lw),Vt=$t(v.get("name"),null),Kt=Dt.getShallow("show");fe(ut,ne(v,it?uw:lw),{defaultText:Kt?Vt:null,inheritColor:tt,defaultOpacity:bt,labelFetcher:r,labelDataIndex:o.dataIndex});var zt=ut.getTextContent(),le=zt.style,we=yf(le.padding||0);it&&(ut.setTextConfig({layoutRect:it}),zt.disableLabelLayout=!0),zt.beforeUpdate=function(){var Vr=Math.max((it?it.width:ut.shape.width)-we[1]-we[3],0),za=Math.max((it?it.height:ut.shape.height)-we[0]-we[2],0);(le.width!==Vr||le.height!==za)&&zt.setStyle({width:Vr,height:za})},le.truncateMinChar=2,le.lineOverflow="truncate",W(le,it,h);var ue=zt.getState("emphasis");W(ue?ue.style:null,it,h)}function W(ut,tt,bt){var it=ut?ut.text:null;if(!tt&&bt.isLeafRoot&&it!=null){var Dt=r.get("drillDownIcon",!0);ut.text=Dt?Dt+" "+it:it}}function K(ut,tt,bt,it){var Dt=m!=null&&t[ut][m],Vt=i[ut];return Dt?(t[ut][m]=null,_t(Vt,Dt)):g||(Dt=new tt,Dt instanceof Sr&&(Dt.z2=TV(bt,it)),mt(Vt,Dt)),e[ut][y]=Dt}function _t(ut,tt){var bt=ut[y]={};tt instanceof $p?(bt.oldX=tt.x,bt.oldY=tt.y):bt.oldShape=V({},tt.shape)}function mt(ut,tt){var bt=ut[y]={},it=o.parentNode,Dt=tt instanceof q;if(it&&(!a||a.direction==="drillDown")){var Vt=0,Kt=0,zt=i.background[it.getRawIndex()];!a&&zt&&zt.oldShape&&(Vt=zt.oldShape.width,Kt=zt.oldShape.height),Dt?(bt.oldX=0,bt.oldY=Kt):bt.oldShape={x:Vt,y:Kt,width:0,height:0}}bt.fadein=!Dt}}function TV(r,e){return r*_V+e}var Ks=A,AV=J,Ah=-1,jt=function(){function r(e){var t=e.mappingMethod,a=e.type,i=this.option=$(e);this.type=a,this.mappingMethod=t,this._normalizeData=MV[t];var n=r.visualHandlers[a];this.applyVisual=n.applyVisual,this.getColorMapper=n.getColorMapper,this._normalizedToVisual=n._normalizedToVisual[t],t==="piecewise"?(Zp(i),CV(i)):t==="category"?i.categories?DV(i):Zp(i,!0):(de(t!=="linear"||i.dataExtent),Zp(i))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return U(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){J(e)?A(e,t,a):t.call(a,e)},r.mapVisual=function(e,t,a){var i,n=B(e)?[]:J(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&&Ks(r.visualHandlers,function(i,n){e.hasOwnProperty(n)&&(t[n]=e[n],a=!0)}),a?t:null},r.prepareVisualTypes=function(e){if(B(e))e=e.slice();else if(AV(e)){var t=[];Ks(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=Infinity,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||typeof l=="string"&&l===e+"")return o;a&&v(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],h=u.interval,f=u.close;if(h){if(h[0]===-Infinity){if(Dh(f[1],e,h[1]))return o}else if(h[1]===Infinity){if(Dh(f[0],h[0],e))return o}else if(Dh(f[0],h[0],e)&&Dh(f[1],e,h[1]))return o;a&&v(h[0],o),a&&v(h[1],o)}}if(a)return e===Infinity?t.length-1:e===-Infinity?0:i;function v(c,p){var d=Math.abs(c-e);d<n&&(n=d,i=p)}},r.visualHandlers={color:{applyVisual:Qs("color"),getColorMapper:function(){var e=this.option;return U(e.mappingMethod==="category"?function(t,a){return!a&&(t=this._normalizeData(t)),Js.call(this,t)}:function(t,a,i){var n=!!i;return!a&&(t=this._normalizeData(t)),i=Vf(t,e.parsedVisual,i),n?i:Yr(i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Yr(Vf(e,this.option.parsedVisual),"rgba")},category:Js,piecewise:function(e,t){var a=Kp.call(this,t);return a==null&&(a=Yr(Vf(e,this.option.parsedVisual),"rgba")),a},fixed:Yi}},colorHue:Ch(function(e,t){return go(e,t)}),colorSaturation:Ch(function(e,t){return go(e,null,t)}),colorLightness:Ch(function(e,t){return go(e,null,null,t)}),colorAlpha:Ch(function(e,t){return Tl(e,t)}),decal:{applyVisual:Qs("decal"),_normalizedToVisual:{linear:null,category:Js,piecewise:null,fixed:null}},opacity:{applyVisual:Qs("opacity"),_normalizedToVisual:qp([0,1])},liftZ:{applyVisual:Qs("liftZ"),_normalizedToVisual:{linear:Yi,category:Yi,piecewise:Yi,fixed:Yi}},symbol:{applyVisual:function(e,t,a){var i=this.mapValueToVisual(e);a("symbol",i)},_normalizedToVisual:{linear:fw,category:Js,piecewise:function(e,t){var a=Kp.call(this,t);return a==null&&(a=fw.call(this,e)),a},fixed:Yi}},symbolSize:{applyVisual:Qs("symbolSize"),_normalizedToVisual:qp([0,1])}},r}();function CV(r){var e=r.pieceList;r.hasSpecialVisual=!1,A(e,function(t,a){t.originIndex=a,t.visual!=null&&(r.hasSpecialVisual=!0)})}function DV(r){var e=r.categories,t=r.categoryMap={},a=r.visual;if(Ks(e,function(o,s){t[o]=s}),!B(a)){var i=[];J(a)?Ks(a,function(o,s){var l=t[s];i[l!=null?l:Ah]=o}):i[Ah]=a,a=vw(r,i)}for(var n=e.length-1;n>=0;n--)a[n]==null&&(delete t[e[n]],e.pop())}function Zp(r,e){var t=r.visual,a=[];J(t)?Ks(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]),vw(r,a)}function Ch(r){return{applyVisual:function(e,t,a){var i=this.mapValueToVisual(e);a("color",r(t("color"),i))},_normalizedToVisual:qp([0,1])}}function fw(r){var e=this.option.visual;return e[Math.round(Tt(r,[0,1],[0,e.length-1],!0))]||{}}function Qs(r){return function(e,t,a){a(r,this.mapValueToVisual(e))}}function Js(r){var e=this.option.visual;return e[this.option.loop&&r!==Ah?r%e.length:r]}function Yi(){return this.option.visual[0]}function qp(r){return{linear:function(e){return Tt(e,r,this.option.visual,!0)},category:Js,piecewise:function(e,t){var a=Kp.call(this,t);return a==null&&(a=Tt(e,r,this.option.visual,!0)),a},fixed:Yi}}function Kp(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var a=jt.findPieceIndex(r,t),i=t[a];if(i&&i.visual)return i.visual[this.type]}}function vw(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=H(e,function(t){return Ge(t)})),e}var MV={linear:function(r){return Tt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=jt.findPieceIndex(r,e,!0);if(t!=null)return Tt(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e==null?Ah:e},fixed:nr};function Dh(r,e,t){return r?e<=t:e<t}var LV="itemStyle",cw=At(),IV={seriesType:"treemap",reset:function(r){var e=r.getData().tree,t=e.root;t.isRemoved()||pw(t,{},r.getViewRoot().getAncestors(),r)}};function pw(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(LV),l=PV(s,e,a),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),h=s.get("borderColor"),f=s.get("borderColorSaturation"),v;f!=null&&(v=dw(l),h=RV(f,v)),u.stroke=h;var c=r.viewChildren;if(!c||!c.length)v=dw(l),u.fill=v;else{var p=EV(r,i,n,s,l,c);A(c,function(d,g){if(d.depth>=t.length||d===t[d.depth]){var y=kV(i,l,d,g,p,a);pw(d,y,t,a)}})}}}function PV(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 dw(r){var e=Qp(r,"color");if(e){var t=Qp(r,"colorAlpha"),a=Qp(r,"colorSaturation");return a&&(e=go(e,null,null,a)),t&&(e=Tl(e,t)),e}}function RV(r,e){return e!=null?go(e,null,null,r):null}function Qp(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function EV(r,e,t,a,i,n){if(!(!n||!n.length)){var o=Jp(e,"color")||i.color!=null&&i.color!=="none"&&(Jp(e,"colorAlpha")||Jp(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 h=e.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(h==="index"||h==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var v=new jt(f);return cw(v).drColorMappingBy=h,v}}}function Jp(r,e){var t=r.get(e);return B(t)&&t.length?{name:e,range:t}:null}function kV(r,e,t,a,i,n){var o=V({},e);if(i){var s=i.type,l=s==="color"&&cw(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 js=Math.max,Mh=Math.min,gw=ee,jp=A,yw=["itemStyle","borderWidth"],OV=["itemStyle","gapWidth"],NV=["upperLabel","show"],BV=["upperLabel","height"],VV={seriesType:"treemap",reset:function(r,e,t,a){var i=t.getWidth(),n=t.getHeight(),o=r.option,s=qt(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=F(gw(s.width,l[0]),i),h=F(gw(s.height,l[1]),n),f=a&&a.type,v=["treemapZoomToNode","treemapRootToNode"],c=Zs(a,v,r),p=f==="treemapRender"||f==="treemapMove"?a.rootRect:null,d=r.getViewRoot(),g=ew(d);if(f!=="treemapMove"){var y=f==="treemapZoomToNode"?UV(r,c,d,u,h):p?[p.width,p.height]:[u,h],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var _={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};d.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};d.setLayout(S),mw(d,_,!1,0),S=d.getLayout(),jp(g,function(b,w){var T=(g[w+1]||d).getValue();b.setLayout(V({dataExtent:[T,T],borderWidth:0,upperHeight:0},S))})}var x=r.getData().tree.root;x.setLayout(YV(s,p,c),!0),r.setLayoutInfo(s),Sw(x,new ot(-s.x,-s.y,i,n),g,d,0)}};function mw(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(yw),u=s.get(OV)/2,h=xw(s),f=Math.max(l,h),v=l-u,c=f-u;r.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:h},!0),i=js(i-2*v,0),n=js(n-v-c,0);var p=i*n,d=zV(r,s,p,e,t,a);if(!!d.length){var g={x:v,y:c,width:i,height:n},y=Mh(i,n),m=Infinity,_=[];_.area=0;for(var S=0,x=d.length;S<x;){var b=d[S];_.push(b),_.area+=b.getLayout().area;var w=WV(_,y,e.squareRatio);w<=m?(S++,m=w):(_.area-=_.pop().getLayout().area,_w(_,y,g,u,!1),y=Mh(g.width,g.height),_.length=_.area=0,m=Infinity)}if(_.length&&_w(_,y,g,u,!0),!t){var T=s.get("childrenVisibleMin");T!=null&&p<T&&(t=!0)}for(var S=0,x=d.length;S<x;S++)mw(d[S],e,t,a+1)}}}function zV(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=kt(o,function(c){return!c.isRemoved()}),GV(o,s);var u=HV(e,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=FV(e,t,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var h=0,f=o.length;h<f;h++){var v=o[h].getValue()/u.sum*t;o[h].setLayout({area:v})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function FV(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 GV(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 HV(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=[Infinity,-Infinity],jp(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 WV(r,e,t){for(var a=0,i=Infinity,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?js(u*a/l,l/(u*i)):Infinity}function _w(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]],h=e?r.area/e:0;(i||h>t[l[o]])&&(h=t[l[o]]);for(var f=0,v=r.length;f<v;f++){var c=r[f],p={},d=h?c.getLayout().area/h:0,g=p[l[o]]=js(h-2*a,0),y=t[s[n]]+t[l[n]]-u,m=f===v-1||y<d?y:d,_=p[l[n]]=js(m-2*a,0);p[s[o]]=t[s[o]]+Mh(a,g/2),p[s[n]]=u+Mh(a,_/2),u+=m,c.setLayout(p,!0)}t[s[o]]+=h,t[l[o]]-=h}function UV(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 h=0,f=s.children,v=0,c=f.length;v<c;v++)h+=f[v].getValue();var p=n.getValue();if(p===0)return o;u*=h/p;var d=s.getModel(),g=d.get(yw),y=Math.max(g,xw(d));u+=4*g*g+(3*g+y)*Math.pow(u,.5),u>em&&(u=em),n=s}u<l&&(u=l);var m=Math.pow(u/l,.5);return[a*m,i*m]}function YV(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 Sw(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 ot(e.x-n.x,e.y-n.y,e.width,e.height);jp(r.viewChildren||[],function(u){Sw(u,l,t,a,i+1)})}}function xw(r){return r.get(NV)?r.get(BV):0}function XV(r){r.registerSeriesModel(fV),r.registerChartView(bV),r.registerVisual(IV),r.registerLayout(VV),hV(r)}function $V(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){typeof u=="number"&&(u=o[u]);for(var h=0;h<e.length;h++)if(!e[h].isSelected(u))return!1}return!0})})}function ZV(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 h=["symbol","symbolSize","symbolKeepAspect"],f=0;f<h.length;f++){var v=l.getShallow(h[f],!0);v!=null&&a.setItemVisual(o,h[f],v)}}),a.count()&&i.each(function(o){var s=i.getItemModel(o),l=s.getShallow("category");if(l!=null){typeof l=="string"&&(l=n["ec-"+l]);var u=a.getItemVisual(l,"style"),h=i.ensureUniqueItemVisual(o,"style");V(h,u);for(var f=["symbol","symbolSize","symbolKeepAspect"],v=0;v<f.length;v++)i.setItemVisual(o,f[v],a.getItemVisual(l,f[v]))}})})}function Lh(r){return r instanceof Array||(r=[r,r]),r}function qV(r){r.eachSeriesByType("graph",function(e){var t=e.getGraph(),a=e.getEdgeData(),i=Lh(e.get("edgeSymbol")),n=Lh(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=Lh(s.getShallow("symbol",!0)),h=Lh(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),v=a.ensureUniqueItemVisual(o,"style");switch(V(v,f),v.stroke){case"source":{var c=l.node1.getVisual("style");v.stroke=c&&c.fill;break}case"target":{var c=l.node2.getVisual("style");v.stroke=c&&c.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),h[0]&&l.setVisual("fromSymbolSize",h[0]),h[1]&&l.setVisual("toSymbolSize",h[1])})})}var td="-->",Ih=function(r){return r.get("autoCurveness")||null},bw=function(r,e){var t=Ih(r),a=20,i=[];if(typeof t=="number")a=t;else if(B(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},tl=function(r,e,t){var a=[r.id,r.dataIndex].join("."),i=[e.id,e.dataIndex].join(".");return[t.uid,a,i].join(td)},ww=function(r){var e=r.split(td);return[e[0],e[2],e[1]].join(td)},KV=function(r,e){var t=tl(r.node1,r.node2,e);return e.__edgeMap[t]},QV=function(r,e){var t=ed(tl(r.node1,r.node2,e),e),a=ed(tl(r.node2,r.node1,e),e);return t+a},ed=function(r,e){var t=e.__edgeMap;return t[r]?t[r].length:0};function JV(r){!Ih(r)||(r.__curvenessList=[],r.__edgeMap={},bw(r))}function jV(r,e,t,a){if(!!Ih(t)){var i=tl(r,e,t),n=t.__edgeMap,o=n[ww(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 rd(r,e,t,a){var i=Ih(e),n=B(i);if(!i)return null;var o=KV(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=QV(r,e);bw(e,u),r.lineStyle=r.lineStyle||{};var h=tl(r.node1,r.node2,e),f=e.__curvenessList,v=n||u%2?0:1;if(o.isForward)return f[v+s];var c=ww(h),p=ed(c,e),d=f[s+p+v];return a?n?i&&i[0]===0?(p+v)%2?d:-d:((p%2?0:1)+v)%2?d:-d:(p+v)%2?d:-d:f[s+p+v]}function Tw(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")])}),Aw(t,r)}}function Aw(r,e){r.eachEdge(function(t,a){var i=Gr(t.getModel().get(["lineStyle","curveness"]),-rd(t,e,a,!0),0),n=Hr(t.node1.getLayout()),o=Hr(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 t5(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(v){o=o.concat(n.mapDimensionsAll(v))});for(var s=0;s<n.count();s++){for(var l=[],u=!1,h=0;h<o.length;h++){var f=n.get(o[h],s);isNaN(f)||(u=!0),l.push(f)}u?n.setItemLayout(s,i.dataToPoint(l)):n.setItemLayout(s,[NaN,NaN])}Aw(n.graph,t)}else(!a||a==="none")&&Tw(t)})}function el(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 rl(r){var e=r.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var Cw=Math.PI,ad=[];function Dw(r,e){var t=r.coordinateSystem;if(!(t&&t.type!=="view")){var a=t.getBoundingRect(),i=r.getData(),n=i.graph,o=a.width/2+a.x,s=a.height/2+a.y,l=Math.min(a.width,a.height)/2,u=i.count();i.setLayout({cx:o,cy:s}),!!u&&(e5[e](r,n,i,l,o,s,u),n.eachEdge(function(h,f){var v=Gr(h.getModel().get(["lineStyle","curveness"]),rd(h,r,f),0),c=Hr(h.node1.getLayout()),p=Hr(h.node2.getLayout()),d,g=(c[0]+p[0])/2,y=(c[1]+p[1])/2;+v&&(v*=3,d=[o*v+g*(1-v),s*v+y*(1-v)]),h.setLayout([c,p,d])}))}}var e5={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(h){var f=h.getValue("value"),v=u*(l?f:1)/2;s+=v,h.setLayout([a*Math.cos(s)+i,a*Math.sin(s)+n]),s+=v})},symbolSize:function(r,e,t,a,i,n,o){var s=0;ad.length=o;var l=el(r);e.eachNode(function(f){var v=rl(f);isNaN(v)&&(v=2),v<0&&(v=0),v*=l;var c=Math.asin(v/2/a);isNaN(c)&&(c=Cw/2),ad[f.dataIndex]=c,s+=c*2});var u=(2*Cw-s)/o/2,h=0;e.eachNode(function(f){var v=u+ad[f.dataIndex];h+=v,f.setLayout([a*Math.cos(h)+i,a*Math.sin(h)+n]),h+=v})}};function r5(r){r.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&Dw(e,"symbolSize")})}var Yn=mf;function a5(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,h=0;h<a.length;h++){var f=a[h];f.p||(f.p=Wa(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=Hr(f.p),f.edges=null}var v=t.friction==null?.6:t.friction,c=v,p,d;return{warmUp:function(){c=v*.8},setFixed:function(g){a[g].fixed=!0},setUnfixed:function(g){a[g].fixed=!1},beforeStep:function(g){p=g},afterStep:function(g){d=g},step:function(g){p&&p(a,i);for(var y=[],m=a.length,_=0;_<i.length;_++){var S=i[_];if(!S.ignoreForceLayout){var x=S.n1,b=S.n2;Ua(y,b.p,x.p);var w=_f(y)-S.d,T=b.w/(x.w+b.w);isNaN(T)&&(T=0),fo(y,y),!x.fixed&&Yn(x.p,x.p,y,T*w*c),!b.fixed&&Yn(b.p,b.p,y,-(1-T)*w*c)}}for(var _=0;_<m;_++){var C=a[_];C.fixed||(Ua(y,l,C.p),Yn(C.p,C.p,y,u*c))}for(var _=0;_<m;_++)for(var x=a[_],M=_+1;M<m;M++){var b=a[M];Ua(y,b.p,x.p);var w=_f(y);w===0&&(hM(y,Math.random()-.5,Math.random()-.5),w=1);var D=(x.rep+b.rep)/w/w;!x.fixed&&Yn(x.pp,x.pp,y,D),!b.fixed&&Yn(b.pp,b.pp,y,-D)}for(var L=[],_=0;_<m;_++){var C=a[_];C.fixed||(Ua(L,C.p,C.pp),Yn(C.p,C.p,L,c),ge(C.pp,C.p))}c=c*.992;var I=c<.01;d&&d(a,i,I),g&&g(I)}}}function i5(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"?Tw(e):l==="circular"&&Dw(e,"value");var u=n.getDataExtent("value"),h=o.getDataExtent("value"),f=s.get("repulsion"),v=s.get("edgeLength"),c=B(f)?f:[f,f],p=B(v)?v:[v,v];p=[p[1],p[0]];var d=n.mapArray("value",function(_,S){var x=n.getItemLayout(S),b=Tt(_,u,c);return isNaN(b)&&(b=(c[0]+c[1])/2),{w:b,rep:b,fixed:n.getItemModel(S).get("fixed"),p:!x||isNaN(x[0])||isNaN(x[1])?null:x}}),g=o.mapArray("value",function(_,S){var x=i.getEdgeByIndex(S),b=Tt(_,h,p);isNaN(b)&&(b=(p[0]+p[1])/2);var w=x.getModel(),T=Gr(x.getModel().get(["lineStyle","curveness"]),-rd(x,e,S,!0),0);return{n1:d[x.node1.dataIndex],n2:d[x.node2.dataIndex],d:b,curveness:T,ignoreForceLayout:w.get("ignoreForceLayout")}}),y=t.getBoundingRect(),m=a5(d,g,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(_,S){for(var x=0,b=_.length;x<b;x++)_[x].fixed&&ge(_[x].p,i.getNodeByIndex(x).getLayout())}),m.afterStep(function(_,S,x){for(var b=0,w=_.length;b<w;b++)_[b].fixed||i.getNodeByIndex(b).setLayout(_[b].p),a[n.getId(b)]=_[b].p;for(var b=0,w=S.length;b<w;b++){var T=S[b],C=i.getEdgeByIndex(b),M=T.n1.p,D=T.n2.p,L=C.getLayout();L=L?L.slice():[],L[0]=L[0]||[],L[1]=L[1]||[],ge(L[0],M),ge(L[1],D),+T.curveness&&(L[2]=[(M[0]+D[0])/2-(M[1]-D[1])*T.curveness,(M[1]+D[1])/2-(D[0]-M[0])*T.curveness]),C.setLayout(L)}}),e.forceLayout=m,e.preservedPoints=a,m.step()}else e.forceLayout=null})}function n5(r,e,t){var a=V(r.getBoxLayoutParams(),{aspect:t});return qt(a,{width:e.getWidth(),height:e.getHeight()})}function o5(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=[];wv(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]),h=n5(a,e,u);isNaN(u)&&(s=[h.x,h.y],l=[h.x+h.width,h.y+h.height]);var f=l[0]-s[0],v=l[1]-s[1],c=h.width,p=h.height,d=a.coordinateSystem=new Un;d.zoomLimit=a.get("scaleLimit"),d.setBoundingRect(s[0],s[1],f,v),d.setViewRect(h.x,h.y,c,p),d.setCenter(a.get("center")),d.setZoom(a.get("zoom")),t.push(d)}}),t}var Mw=Qt.prototype,id=Wo.prototype,Lw=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}();(function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(Lw);function nd(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var s5=function(r){E(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 Lw},e.prototype.buildPath=function(t,a){nd(a)?Mw.buildPath.call(this,t,a):id.buildPath.call(this,t,a)},e.prototype.pointAt=function(t){return nd(this.shape)?Mw.pointAt.call(this,t):id.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var a=this.shape,i=nd(a)?[a.x2-a.x1,a.y2-a.y1]:id.tangentAt.call(this,t);return fo(i,i)},e}(ct),od=["fromSymbol","toSymbol"];function Iw(r){return"_"+r+"Type"}function Pw(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")||0,s=e.getItemVisual(t,r+"KeepAspect"),l=B(i)?i:[i,i],u=B(o)?o:[o,o];u[0]=F(u[0],l[0]),u[1]=F(vt(u[1],u[0]),l[1]);var h=Yt(a,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return h.__specifiedRotation=n==null||isNaN(n)?void 0:+n*Math.PI/180||0,h.name=r,h}}function l5(r){var e=new s5({name:"line",subPixelOptimize:!0});return sd(e.shape,r),e}function sd(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 ld=function(r){E(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=l5(o);s.shape.percent=0,Nt(s,{shape:{percent:1}},n,a),this.add(s),A(od,function(l){var u=Pw(l,t,a);this.add(u),this[Iw(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:{}};sd(l.shape,s),dt(o,l,n,a),A(od,function(u){var h=t.getItemVisual(a,u),f=Iw(u);if(this[f]!==h){this.remove(this.childOfName(u));var v=Pw(u,t,a);this.add(v)}this[f]=h},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,h=i&&i.labelStatesModels;if(!i||t.hasItemOption){var f=t.getItemModel(a);s=f.getModel(["emphasis","lineStyle"]).getLineStyle(),l=f.getModel(["blur","lineStyle"]).getLineStyle(),u=f.getModel(["select","lineStyle"]).getLineStyle(),h=ne(f)}var v=t.getItemVisual(a,"style"),c=v.stroke;o.useStyle(v),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,A(od,function(m){var _=this.childOfName(m);if(_){_.setColor(c),_.style.opacity=v.opacity;for(var S=0;S<Ee.length;S++){var x=Ee[S],b=o.getState(x);if(b){var w=b.style||{},T=_.ensureState(x),C=T.style||(T.style={});w.stroke!=null&&(C[_.__isEmptyBrush?"stroke":"fill"]=w.stroke),w.opacity!=null&&(C.opacity=w.opacity)}}_.markRedraw()}},this);var p=n.getRawValue(a);fe(this,h,{labelDataIndex:a,labelFetcher:{getFormattedLabel:function(m,_){return n.getFormattedLabel(m,_,t.dataType)}},inheritColor:c||"#000",defaultOpacity:v.opacity,defaultText:(p==null?t.getName(a):isFinite(p)?ae(p):p)+""});var d=this.getTextContent();if(d){var g=h.normal;d.__align=d.style.align,d.__verticalAlign=d.style.verticalAlign,d.__position=g.get("position")||"middle";var y=g.get("distance");B(y)||(y=[y,y]),d.__labelDistance=y}this.setTextConfig({position:null,local:!0,inside:!1}),Lt(this)},e.prototype.highlight=function(){Cr(this)},e.prototype.downplay=function(){Dr(this)},e.prototype.updateLayout=function(t,a){this.setLinePoints(t.getItemLayout(a))},e.prototype.setLinePoints=function(t){var a=this.childOfName("line");sd(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,h=l.pointAt(0),f=l.pointAt(u),v=Ua([],f,h);fo(v,v);function c(M,D){var L=M.__specifiedRotation;if(L==null){var I=l.tangentAt(D);M.attr("rotation",(D===1?-1:1)*Math.PI/2-Math.atan2(I[1],I[0]))}else M.attr("rotation",L)}if(a&&(a.setPosition(h),c(a,0),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&(i.setPosition(f),c(i,1),i.scaleX=i.scaleY=o*u,i.markRedraw()),n&&!n.ignore){n.x=n.y=0,n.originX=n.originY=0;var p=void 0,d=void 0,g=n.__labelDistance,y=g[0]*o,m=g[1]*o,_=u/2,S=l.tangentAt(_),x=[S[1],-S[0]],b=l.pointAt(_);x[1]>0&&(x[0]=-x[0],x[1]=-x[1]);var w=S[0]<0?-1:1;if(n.__position!=="start"&&n.__position!=="end"){var T=-Math.atan2(S[1],S[0]);f[0]<h[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,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":C=m,d="top";break;default:C=0,d="middle"}switch(n.__position){case"end":n.x=v[0]*y+f[0],n.y=v[1]*m+f[1],p=v[0]>.8?"left":v[0]<-.8?"right":"center",d=v[1]>.8?"top":v[1]<-.8?"bottom":"middle";break;case"start":n.x=-v[0]*y+h[0],n.y=-v[1]*m+h[1],p=v[0]>.8?"right":v[0]<-.8?"left":"center",d=v[1]>.8?"bottom":v[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=y*w+h[0],n.y=h[1]+C,p=S[0]<0?"right":"left",n.originX=-y*w,n.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=b[0],n.y=b[1]+C,p="center",n.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-y*w+f[0],n.y=f[1]+C,p=S[0]>=0?"right":"left",n.originX=y*w,n.originY=-C;break}n.scaleX=n.scaleY=o,n.setStyle({verticalAlign:n.__verticalAlign||d,align:n.__align||p})}},e}(q),ud=function(){function r(e){this.group=new q,this._LineCtor=e||ld}return r.prototype.isPersistent=function(){return!0},r.prototype.updateData=function(e){var t=this,a=this,i=a.group,n=a._lineData;a._lineData=e,n||i.removeAll();var o=Rw(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=Rw(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){function a(s){!s.isGroup&&!u5(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var n=t.getItemLayout(i);if(hd(n)){var o=new this._LineCtor(t,i,this._seriesScope);o.traverse(a),this.group.add(o),t.setItemGraphicEl(i,o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype._doAdd=function(e,t,a){var i=e.getItemLayout(t);if(!!hd(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(!hd(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 u5(r){return r.animators&&r.animators.length>0}function Rw(r){var e=r.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["emphasis","lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),labelStatesModels:ne(e)}}function Ew(r){return isNaN(r[0])||isNaN(r[1])}function hd(r){return!Ew(r[0])&&!Ew(r[1])}var fd=[],vd=[],cd=[],Xn=ie,pd=Ya,kw=Math.abs;function Ow(r,e,t){for(var a=r[0],i=r[1],n=r[2],o=Infinity,s,l=t*t,u=.1,h=.1;h<=.9;h+=.1){fd[0]=Xn(a[0],i[0],n[0],h),fd[1]=Xn(a[1],i[1],n[1],h);var f=kw(pd(fd,e)-l);f<o&&(o=f,s=h)}for(var v=0;v<32;v++){var c=s+u;vd[0]=Xn(a[0],i[0],n[0],s),vd[1]=Xn(a[1],i[1],n[1],s),cd[0]=Xn(a[0],i[0],n[0],c),cd[1]=Xn(a[1],i[1],n[1],c);var f=pd(vd,e)-l;if(kw(f)<.01)break;var p=pd(cd,e)-l;u/=2,f<0?p>=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function dd(r,e){var t=[],a=Po,i=[[],[],[]],n=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),h=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[Hr(u[0]),Hr(u[1])],u[2]&&u.__original.push(Hr(u[2])));var v=u.__original;if(u[2]!=null){if(ge(i[0],v[0]),ge(i[1],v[2]),ge(i[2],v[1]),h&&h!=="none"){var c=rl(s.node1),p=Ow(i,v[0],c*e);a(i[0][0],i[1][0],i[2][0],p,t),i[0][0]=t[3],i[1][0]=t[4],a(i[0][1],i[1][1],i[2][1],p,t),i[0][1]=t[3],i[1][1]=t[4]}if(f&&f!=="none"){var c=rl(s.node2),p=Ow(i,v[1],c*e);a(i[0][0],i[1][0],i[2][0],p,t),i[1][0]=t[1],i[2][0]=t[2],a(i[0][1],i[1][1],i[2][1],p,t),i[1][1]=t[1],i[2][1]=t[2]}ge(u[0],i[0]),ge(u[1],i[2]),ge(u[2],i[1])}else{if(ge(n[0],v[0]),ge(n[1],v[1]),Ua(o,n[1],n[0]),fo(o,o),h&&h!=="none"){var c=rl(s.node1);mf(n[0],n[0],o,c*e)}if(f&&f!=="none"){var c=rl(s.node2);mf(n[1],n[1],o,-c*e)}ge(u[0],n[0]),ge(u[1],n[1])}})}function Nw(r){return r.type==="view"}var h5=function(r){E(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 Vs,n=new ud,o=this.group;this._controller=new Ys(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(Nw(o)){var h={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(h):dt(u,h,t)}dd(t.getGraph(),el(t));var f=t.getData();s.updateData(f);var v=t.getEdgeData();l.updateData(v),this._updateNodeAndLinkScale(),this._updateController(t,a,i),clearTimeout(this._layoutTimeout);var c=t.forceLayout,p=t.get(["force","layoutAnimation"]);c&&this._startForceLayoutIteration(c,p),f.graph.eachNode(function(m){var _=m.dataIndex,S=m.getGraphicEl(),x=m.getModel();S.off("drag").off("dragend");var b=x.get("draggable");b&&S.on("drag",function(){c&&(c.warmUp(),!n._layouting&&n._startForceLayoutIteration(c,p),c.setFixed(_),f.setItemLayout(_,[S.x,S.y]))}).on("dragend",function(){c&&c.setUnfixed(_)}),S.setDraggable(b&&!!c);var w=x.get(["emphasis","focus"]);w==="adjacency"&&(Q(S).focus=m.getAdjacentDataIndices())}),f.graph.eachEdge(function(m){var _=m.getGraphicEl(),S=m.getModel().get(["emphasis","focus"]);S==="adjacency"&&(Q(_).focus={edge:[m.dataIndex],node:[m.node1.dataIndex,m.node2.dataIndex]})});var d=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),g=f.getLayout("cx"),y=f.getLayout("cy");f.eachItemGraphicEl(function(m,_){var S=f.getItemModel(_),x=S.get(["label","rotate"])||0,b=m.getSymbolPath();if(d){var w=f.getItemLayout(_),T=Math.atan2(w[1]-y,w[0]-g);T<0&&(T=Math.PI*2+T);var C=w[0]<g;C&&(T=T-Math.PI);var M=C?"left":"right";b.setTextConfig({rotation:-T,position:M,origin:"center"});var D=b.ensureState("emphasis");V(D.textConfig||(D.textConfig={}),{position:M})}else b.setTextConfig({rotation:x*=Math.PI/180})}),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,h,f){var v=l.getBoundingRect();return v.applyTransform(l.transform),v.contain(h,f)&&!xh(u,i,t)}),!Nw(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){Op(s,u.dx,u.dy),i.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Np(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(),dd(t.getGraph(),el(t)),n._lineDraw.updateLayout(),i.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,a=t.getData(),i=el(t);a.eachItemGraphicEl(function(n,o){n.setSymbolScale(i)})},e.prototype.updateLayout=function(t){dd(t.getGraph(),el(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}(Ct);function $n(r){return"_EC_"+r}var f5=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[$n(e)]){var i=new Xi(e,t);return i.hostGraph=this,this.nodes.push(i),a[$n(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[$n(e)]},r.prototype.addEdge=function(e,t,a){var i=this._nodesMap,n=this._edgesMap;if(typeof e=="number"&&(e=this.nodes[e]),typeof t=="number"&&(t=this.nodes[t]),e instanceof Xi||(e=i[$n(e)]),t instanceof Xi||(t=i[$n(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new Bw(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 Xi&&(e=e.id),t instanceof Xi&&(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 Xi||(t=this._nodesMap[$n(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 h=u[o],f=h.node1===l?h.node2:h.node1;if(!f.__visited){if(e.call(i,f,l))return;s.push(f),f.__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}(),Xi=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}(),Bw=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 Vw(r,e){return{getValue:function(t){var a=this[r][e];return a.get(a.getDimension(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)}}}Ht(Xi,Vw("hostGraph","data")),Ht(Bw,Vw("hostGraph","edgeData"));function zw(r,e,t,a,i){for(var n=new f5(a),o=0;o<r.length;o++)n.addNode(ee(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var h=e[o],f=h.source,v=h.target;n.addEdge(f,v,u)&&(l.push(h),s.push(ee($t(h.id,null),f+" > "+v)),u++)}var c=t.get("coordinateSystem"),p;if(c==="cartesian2d"||c==="polar")p=Jr(r,t);else{var d=as.get(c),g=d?d.dimensions||[]:[];lt(g,"value")<0&&g.concat(["value"]);var y=Ls(r,{coordDimensions:g});p=new xe(y,t),p.initData(r)}var m=new xe(["value"],t);return m.initData(l,s),i&&i(p,m),jb({mainData:p,struct:n,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),n.update(),n}var v5=function(r){E(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 Hs(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),ii(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){JV(this);var s=zw(n,i,this,!0,l);return A(s.edges,function(u){jV(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,h){u.wrapMethod("getItemModel",function(p){var d=o._categoriesModels,g=p.getShallow("category"),y=d[g];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var f=xt.prototype.getModel;function v(p,d){var g=f.call(this,p,d);return g.resolveParentPath=c,g}h.wrapMethod("getItemModel",function(p){return p.resolveParentPath=c,p.getModel=v,p});function c(p){if(p&&(p[0]==="label"||p[1]==="label")){var d=p.slice();return p[0]==="label"?d[0]="edgeLabel":p[1]==="label"&&(d[1]="edgeLabel"),d}return p}}},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),h=[];return l!=null&&h.push(l),u!=null&&h.push(u),Jt("nameValue",{name:h.join(" > "),value:o.value,noValue:o.value==null})}var f=r1({series:this,dataIndex:t,multipleSeries:a});return f},e.prototype._updateCategoriesData=function(){var t=H(this.option.categories||[],function(i){return i.value!=null?i:V({value:0},i)}),a=new xe(["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={zlevel:0,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}(It),c5={type:"graphRoam",event:"graphRoam",update:"none"};function p5(r){r.registerChartView(h5),r.registerSeriesModel(v5),r.registerProcessor($V),r.registerVisual(ZV),r.registerVisual(qV),r.registerLayout(t5),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,r5),r.registerLayout(i5),r.registerCoordinateSystem("graphView",{dimensions:Un.dimensions,create:o5}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},function(){}),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},function(){}),r.registerAction(c5,function(e,t){t.eachComponent({mainType:"series",query:e},function(a){var i=a.coordinateSystem,n=Vp(i,e);a.setCenter&&a.setCenter(n.center),a.setZoom&&a.setZoom(n.zoom)})})}var d5=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),g5=function(r){E(e,r);function e(t){var a=r.call(this,t)||this;return a.type="pointer",a}return e.prototype.getDefaultShape=function(){return new d5},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),h=a.y-n(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,t.moveTo(u,h),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,h)},e}(ct);function y5(r,e){var t=r.get("center"),a=e.getWidth(),i=e.getHeight(),n=Math.min(a,i),o=F(t[0],e.getWidth()),s=F(t[1],e.getHeight()),l=F(r.get("radius"),n/2);return{cx:o,cy:s,r:l}}function Ph(r,e){var t=r==null?"":r+"";return e&&(typeof e=="string"?t=e.replace("{value}",t):typeof e=="function"&&(t=e(r))),t}var gd=Math.PI*2,m5=function(r){E(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=y5(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){for(var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,h=-t.get("endAngle")/180*Math.PI,f=t.getModel("axisLine"),v=f.get("roundCap"),c=v?Sp:De,p=f.get("show"),d=f.getModel("lineStyle"),g=d.get("width"),y=!((h-u)%gd)&&h!==u?gd:(h-u)%gd,m=u,_=0;p&&_<n.length;_++){var S=Math.min(Math.max(n[_][0],0),1);h=u+y*S;var x=new c({shape:{startAngle:m,endAngle:h,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});x.setStyle({fill:n[_][1]}),x.setStyle(d.getLineStyle(["color","width"])),s.add(x),m=h}var b=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]};if(!l){var w=u;u=h,h=w}this._renderTicks(t,a,i,b,o,u,h,l,g),this._renderTitleAndDetail(t,a,i,b,o),this._renderAnchor(t,o),this._renderPointer(t,a,i,b,o,u,h,l,g)},e.prototype._renderTicks=function(t,a,i,n,o,s,l,u,h){for(var f=this.group,v=o.cx,c=o.cy,p=o.r,d=+t.get("min"),g=+t.get("max"),y=t.getModel("splitLine"),m=t.getModel("axisTick"),_=t.getModel("axisLabel"),S=t.get("splitNumber"),x=m.get("splitNumber"),b=F(y.get("length"),p),w=F(m.get("length"),p),T=s,C=(l-s)/S,M=C/x,D=y.getModel("lineStyle").getLineStyle(),L=m.getModel("lineStyle").getLineStyle(),I=y.get("distance"),P,R,k=0;k<=S;k++){if(P=Math.cos(T),R=Math.sin(T),y.get("show")){var N=I?I+h:h,O=new Qt({shape:{x1:P*(p-N)+v,y1:R*(p-N)+c,x2:P*(p-b-N)+v,y2:R*(p-b-N)+c},style:D,silent:!0});D.stroke==="auto"&&O.setStyle({stroke:n(k/S)}),f.add(O)}if(_.get("show")){var N=_.get("distance")+I,G=Ph(ae(k/S*(g-d)+d),_.get("formatter")),z=n(k/S);f.add(new gt({style:Ft(_,{text:G,x:P*(p-b-N)+v,y:R*(p-b-N)+c,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:z}),silent:!0}))}if(m.get("show")&&k!==S){var N=m.get("distance");N=N?N+h:h;for(var W=0;W<=x;W++){P=Math.cos(T),R=Math.sin(T);var K=new Qt({shape:{x1:P*(p-N)+v,y1:R*(p-N)+c,x2:P*(p-w-N)+v,y2:R*(p-w-N)+c},silent:!0,style:L});L.stroke==="auto"&&K.setStyle({stroke:n((k+W/x)/S)}),f.add(K),T+=M}T-=M}else T+=C}},e.prototype._renderPointer=function(t,a,i,n,o,s,l,u,h){var f=this.group,v=this._data,c=this._progressEls,p=[],d=t.get(["pointer","show"]),g=t.getModel("progress"),y=g.get("show"),m=t.getData(),_=m.mapDimension("value"),S=+t.get("min"),x=+t.get("max"),b=[S,x],w=[s,l];function T(M,D){var L=m.getItemModel(M),I=L.getModel("pointer"),P=F(I.get("width"),o.r),R=F(I.get("length"),o.r),k=t.get(["pointer","icon"]),N=I.get("offsetCenter"),O=F(N[0],o.r),G=F(N[1],o.r),z=I.get("keepAspect"),W;return k?W=Yt(k,O-P/2,G-R,P,R,null,z):W=new g5({shape:{angle:-Math.PI/2,width:P,r:R,x:O,y:G}}),W.rotation=-(D+Math.PI/2),W.x=o.cx,W.y=o.cy,W}function C(M,D){var L=g.get("roundCap"),I=L?Sp:De,P=g.get("overlap"),R=P?g.get("width"):h/m.count(),k=P?o.r-R:o.r-(M+1)*R,N=P?o.r:o.r-M*R,O=new I({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:k,r:N}});return P&&(O.z2=x-m.get(_,M)%x),O}(y||d)&&(m.diff(v).add(function(M){if(d){var D=T(M,s);Nt(D,{rotation:-(Tt(m.get(_,M),b,w,!0)+Math.PI/2)},t),f.add(D),m.setItemGraphicEl(M,D)}if(y){var L=C(M,s),I=g.get("clip");Nt(L,{shape:{endAngle:Tt(m.get(_,M),b,w,I)}},t),f.add(L),p[M]=L}}).update(function(M,D){if(d){var L=v.getItemGraphicEl(D),I=L?L.rotation:s,P=T(M,I);P.rotation=I,dt(P,{rotation:-(Tt(m.get(_,M),b,w,!0)+Math.PI/2)},t),f.add(P),m.setItemGraphicEl(M,P)}if(y){var R=c[D],k=R?R.shape.endAngle:s,N=C(M,k),O=g.get("clip");dt(N,{shape:{endAngle:Tt(m.get(_,M),b,w,O)}},t),f.add(N),p[M]=N}}).execute(),m.each(function(M){var D=m.getItemModel(M),L=D.getModel("emphasis");if(d){var I=m.getItemGraphicEl(M),P=m.getItemVisual(M,"style"),R=P.fill;if(I instanceof Zt){var k=I.style;I.useStyle(V({image:k.image,x:k.x,y:k.y,width:k.width,height:k.height},P))}else I.useStyle(P),I.type!=="pointer"&&I.setColor(R);I.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),I.style.fill==="auto"&&I.setStyle("fill",n(Tt(m.get(_,M),b,[0,1],!0))),I.z2EmphasisLift=0,oe(I,D),Lt(I,L.get("focus"),L.get("blurScope"))}if(y){var N=p[M];N.useStyle(m.getItemVisual(M,"style")),N.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),N.z2EmphasisLift=0,oe(N,D),Lt(N,L.get("focus"),L.get("blurScope"))}}),this._progressEls=p)},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"),h=Yt(s,a.cx-o/2+F(l[0],a.r),a.cy-o/2+F(l[1],a.r),o,o,null,u);h.z2=i.get("showAbove")?1:0,h.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(h)}},e.prototype._renderTitleAndDetail=function(t,a,i,n,o){var s=this,l=t.getData(),u=l.mapDimension("value"),h=+t.get("min"),f=+t.get("max"),v=new q,c=[],p=[],d=t.isAnimationEnabled();l.diff(this._data).add(function(g){c[g]=new gt({silent:!0}),p[g]=new gt({silent:!0})}).update(function(g,y){c[g]=s._titleEls[y],p[g]=s._detailEls[y]}).execute(),l.each(function(g){var y=l.getItemModel(g),m=l.get(u,g),_=new q,S=n(Tt(m,[h,f],[0,1],!0)),x=y.getModel("title");if(x.get("show")){var b=x.get("offsetCenter"),w=o.cx+F(b[0],o.r),T=o.cy+F(b[1],o.r),C=c[g];C.attr({style:Ft(x,{x:w,y:T,text:l.getName(g),align:"center",verticalAlign:"middle"},{inheritColor:S})}),_.add(C)}var M=y.getModel("detail");if(M.get("show")){var D=M.get("offsetCenter"),L=o.cx+F(D[0],o.r),I=o.cy+F(D[1],o.r),P=F(M.get("width"),o.r),R=F(M.get("height"),o.r),k=t.get(["progress","show"])?l.getItemVisual(g,"style").fill:S,C=p[g],N=M.get("formatter");C.attr({style:Ft(M,{x:L,y:I,text:Ph(m,N),width:isNaN(P)?null:P,height:isNaN(R)?null:R,align:"center",verticalAlign:"middle"},{inheritColor:k})}),F0(C,{normal:M},m,function(G){return Ph(G,N)}),d&&G0(C,g,l,t,{getFormattedLabel:function(G,z,W,K,_t,mt){return Ph(mt?mt.interpolatedValue:m,N)}}),_.add(C)}v.add(_)}),this.group.add(v),this._titleEls=c,this._detailEls=p},e.type="gauge",e}(Ct),_5=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t.useColorPaletteOnData=!0,t}return e.prototype.getInitialData=function(t,a){return Hn(this,["value"])},e.type="series.gauge",e.defaultOption={zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,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},pointer:{icon:null,offsetCenter:[0,0],show:!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}(It);function S5(r){r.registerChartView(m5),r.registerSeriesModel(_5)}var x5=["itemStyle","opacity"],b5=function(r){E(e,r);function e(t,a){var i=r.call(this)||this,n=i,o=new Me,s=new gt;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"),h=s.get(x5);h=h==null?1:h,n.useStyle(t.getItemVisual(a,"style")),n.style.lineJoin="round",i?(n.setShape({points:l.points}),n.style.opacity=0,Nt(n,{style:{opacity:h}},o,a)):dt(n,{style:{opacity:h},shape:{points:l.points}},o,a),oe(n,s),this._updateLabel(t,a),Lt(this,u.get("focus"),u.get("blurScope"))},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),h=u.label,f=t.getItemVisual(a,"style"),v=f.fill;fe(o,ne(l),{labelFetcher:t.hostModel,labelDataIndex:a,defaultOpacity:f.opacity,defaultText:t.getName(a)},{normal:{align:h.textAlign,verticalAlign:h.verticalAlign}}),i.setTextConfig({local:!0,inside:!!h.inside,insideStroke:v,outsideFill:v});var c=h.linePoints;n.setShape({points:c}),i.textGuideLineConfig={anchor:c?new nt(c[0][0],c[0][1]):null},dt(o,{style:{x:h.x,y:h.y}},s,a),o.attr({rotation:h.rotation,originX:h.x,originY:h.y,z2:10}),Cc(i,Dc(l),{stroke:v})},e}(me),w5=function(r){E(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 b5(n,l);n.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var h=o.getItemGraphicEl(u);h.updateData(n,l),s.add(h),n.setItemGraphicEl(l,h)}).remove(function(l){var u=o.getItemGraphicEl(l);Yo(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}(Ct),T5=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.useColorPaletteOnData=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Hs(U(this.getData,this),U(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,a){return Hn(this,{coordDimensions:["value"],encodeDefaulter:j(ic,this)})},e.prototype._defaultLabelLine=function(t){ii(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={zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(It);function A5(r,e){return qt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function C5(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 typeof e=="function"?i.sort(e):e!=="none"&&i.sort(function(l,u){return n?a[l]-a[u]:a[u]-a[l]}),i}function D5(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,h=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",f,v,c,p;if(h)o==="insideLeft"?(v=(u[0][0]+u[3][0])/2+5,c=(u[0][1]+u[3][1])/2,f="left"):o==="insideRight"?(v=(u[1][0]+u[2][0])/2-5,c=(u[1][1]+u[2][1])/2,f="right"):(v=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,c=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,f="center"),p=[[v,c],[v,c]];else{var d=void 0,g=void 0,y=void 0,m=void 0,_=s.get("length");o==="left"?(d=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=d-_,v=y-5,f="right"):o==="right"?(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=d+_,v=y+5,f="left"):o==="top"?(d=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=g-_,c=m-5,f="center"):o==="bottom"?(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=g+_,c=m+5,f="center"):o==="rightTop"?(d=t==="horizontal"?u[3][0]:u[1][0],g=t==="horizontal"?u[3][1]:u[1][1],t==="horizontal"?(m=g-_,c=m-5,f="center"):(y=d+_,v=y+5,f="top")):o==="rightBottom"?(d=u[2][0],g=u[2][1],t==="horizontal"?(m=g+_,c=m+5,f="center"):(y=d+_,v=y+5,f="bottom")):o==="leftTop"?(d=u[0][0],g=t==="horizontal"?u[0][1]:u[1][1],t==="horizontal"?(m=g-_,c=m-5,f="center"):(y=d-_,v=y-5,f="right")):o==="leftBottom"?(d=t==="horizontal"?u[1][0]:u[3][0],g=t==="horizontal"?u[1][1]:u[2][1],t==="horizontal"?(m=g+_,c=m+5,f="center"):(y=d-_,v=y-5,f="right")):(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,t==="horizontal"?(m=g+_,c=m+5,f="center"):(y=d+_,v=y+5,f="left")),t==="horizontal"?(y=d,v=y):(m=g,c=m),p=[[d,g],[y,m]]}l.label={linePoints:p,x:v,y:c,verticalAlign:"middle",textAlign:f,inside:h}})}function M5(r,e){r.eachSeriesByType("funnel",function(t){var a=t.getData(),i=a.mapDimension("value"),n=t.get("sort"),o=A5(t,e),s=t.get("orient"),l=o.width,u=o.height,h=C5(a,n),f=o.x,v=o.y,c=s==="horizontal"?[F(t.get("minSize"),u),F(t.get("maxSize"),u)]:[F(t.get("minSize"),l),F(t.get("maxSize"),l)],p=a.getDataExtent(i),d=t.get("min"),g=t.get("max");d==null&&(d=Math.min(p[0],0)),g==null&&(g=p[1]);var y=t.get("funnelAlign"),m=t.get("gap"),_=s==="horizontal"?l:u,S=(_-m*(a.count()-1))/a.count(),x=function(P,R){if(s==="horizontal"){var k=a.get(i,P)||0,N=Tt(k,[d,g],c,!0),O=void 0;switch(y){case"top":O=v;break;case"center":O=v+(u-N)/2;break;case"bottom":O=v+(u-N);break}return[[R,O],[R,O+N]]}var G=a.get(i,P)||0,z=Tt(G,[d,g],c,!0),W;switch(y){case"left":W=f;break;case"center":W=f+(l-z)/2;break;case"right":W=f+l-z;break}return[[W,R],[W+z,R]]};n==="ascending"&&(S=-S,m=-m,s==="horizontal"?f+=l:v+=u,h=h.reverse());for(var b=0;b<h.length;b++){var w=h[b],T=h[b+1],C=a.getItemModel(w);if(s==="horizontal"){var M=C.get(["itemStyle","width"]);M==null?M=S:(M=F(M,l),n==="ascending"&&(M=-M));var D=x(w,f),L=x(T,f+M);f+=M+m,a.setItemLayout(w,{points:D.concat(L.slice().reverse())})}else{var I=C.get(["itemStyle","height"]);I==null?I=S:(I=F(I,u),n==="ascending"&&(I=-I));var D=x(w,v),L=x(T,v+I);v+=I+m,a.setItemLayout(w,{points:D.concat(L.slice().reverse())})}}D5(a)})}function L5(r){r.registerChartView(w5),r.registerSeriesModel(T5),r.registerLayout(M5),r.registerProcessor(Gs("funnel"))}var I5=.3,P5=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new q,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,a,i,n){var o=this._dataGroup,s=t.getData(),l=this._data,u=t.coordinateSystem,h=u.dimensions,f=Hw(t);s.diff(l).add(v).update(c).remove(p).execute();function v(g){var y=Gw(s,o,g,h,u);yd(y,s,g,f)}function c(g,y){var m=l.getItemGraphicEl(y),_=Fw(s,g,h,u);s.setItemGraphicEl(g,m),dt(m,{shape:{points:_}},t,g),yd(m,s,g,f)}function p(g){var y=l.getItemGraphicEl(g);o.remove(y)}if(!this._initialized){this._initialized=!0;var d=R5(u,t,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(d)}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=Hw(a),u=t.start;u<t.end;u++){var h=Gw(n,this._dataGroup,u,s,o);h.incremental=!0,yd(h,n,u,l)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(Ct);function R5(r,e,t){var a=r.model,i=r.getRect(),n=new pt({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),Nt(n,{shape:{width:i.width,height:i.height}},e,t),n}function Fw(r,e,t,a){for(var i=[],n=0;n<t.length;n++){var o=t[n],s=r.get(r.mapDimension(o),e);E5(s,a.getAxis(o).type)||i.push(a.dataToPoint(s,o))}return i}function Gw(r,e,t,a,i){var n=Fw(r,t,a,i),o=new Me({shape:{points:n},z2:10});return e.add(o),r.setItemGraphicEl(t,o),o}function Hw(r){var e=r.get("smooth",!0);return e===!0&&(e=I5),e=Xr(e),lo(e)&&(e=0),{smooth:e}}function yd(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");oe(r,i,"lineStyle"),Lt(r,n.get("focus"),n.get("blurScope"))}function E5(r,e){return e==="category"?r==null:r==null||isNaN(r)}var k5=function(r){E(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 Jr(this.getSource(),this,{useEncodeDefaulter:U(O5,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={zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(It);function O5(r){var e=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(!!e){var t={};return A(e.dimensions,function(a){var i=N5(a);t[a]=i}),t}}function N5(r){return+r.replace("dim","")}var B5=["lineStyle","opacity"],V5={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(B5,!0);u!=null&&(l=u)}var h=n.ensureUniqueItemVisual(s,"style");h.opacity=l},i.start,i.end)}}}};function z5(r){F5(r),G5(r)}function F5(r){if(!r.parallel){var e=!1;A(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function G5(r){var e=Rt(r.parallelAxis);A(e,function(t){if(!!J(t)){var a=t.parallelIndex||0,i=Rt(r.parallel)[a];i&&i.parallelAxisDefault&&at(t,i.parallelAxisDefault,!1)}})}var H5=5,W5=function(r){E(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(U5,function(n,o){i.getZr().on(o,this._handlers[o]=U(n,this))},this)),ls(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,a){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}(Et),U5={mousedown:function(r){md(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(md(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>H5)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||!md(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 md(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var Y5=function(r){E(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&&at(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=kt(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={zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(ht),X5=function(r){E(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}(gr);function $i(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=_d(e,a);e[a]+=r;var u=i||0,h=t.slice();l.sign<0?h[0]+=u:h[1]-=u,e[a]=Zn(e[a],h);var f;return f=_d(e,a),i!=null&&(f.sign!==l.sign||f.span<i)&&(e[1-a]=e[a]+l.sign*i),f=_d(e,a),n!=null&&f.span>n&&(e[1-a]=e[a]+f.sign*n),e}function _d(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]:Infinity,Math.max(e[0]!=null?e[0]:-Infinity,r))}var Sd=A,Ww=Math.min,Uw=Math.max,Yw=Math.floor,$5=Math.ceil,Xw=ae,Z5=Math.PI,q5=function(){function r(e,t,a){this.type="parallel",this._axesMap=Z(),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;Sd(i,function(o,s){var l=n[s],u=t.getComponent("parallelAxis",l),h=this._axesMap.set(o,new X5(o,oh(u),[0,0],u.get("type"),l)),f=h.type==="category";h.onBand=f&&u.get("boundaryGap"),h.inverse=u.get("inverse"),u.axis=h,h.model=u,h.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();Sd(this.dimensions,function(n){var o=this._axesMap.get(n);o.scale.unionExtentFromData(i,i.mapDimension(n)),Fi(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=qt(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,h=Rh(e.get("axisExpandWidth"),l),f=Rh(e.get("axisExpandCount")||0,[0,u]),v=e.get("axisExpandable")&&u>3&&u>f&&f>1&&h>0&&s>0,c=e.get("axisExpandWindow"),p;if(c)p=Rh(c[1]-c[0],l),c[1]=c[0]+p;else{p=Rh(h*(f-1),l);var d=e.get("axisExpandCenter")||Yw(u/2);c=[h*d-p/2],c[1]=c[0]+p}var g=(s-p)/(u-f);g<3&&(g=0);var y=[Yw(Xw(c[0]/h,1))+1,$5(Xw(c[1]/h,1))-1],m=g/h*c[0];return{layout:n,pixelDimIndex:o,layoutBase:t[a[o]],layoutLength:s,axisBase:t[a[1-o]],axisLength:t[i[1-o]],axisExpandable:v,axisExpandWidth:h,axisCollapseWidth:g,axisExpandWindow:c,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])}),Sd(a,function(o,s){var l=(i.axisExpandable?Q5:K5)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},h={horizontal:Z5/2,vertical:0},f=[u[n].x+e.x,u[n].y+e.y],v=h[n],c=ze();qa(c,c,v),yr(c,c,f),this._axesLayout[o]={position:f,rotation:v,transform:c,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(),h=a;h<i;h++){var f=void 0;if(!u)f="normal";else{f="active";for(var v=e.getValues(s,h),c=0,p=o.length;c<p;c++){var d=l[c].getActiveState(v[c]);if(d==="inactive"){f="inactive";break}}}t(f,h)}},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 fr([e,0],a.transform)},r.prototype.getAxisLayout=function(e){return $(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",h=t.axisCollapseWidth,f=this._model.get("axisExpandSlideTriggerArea"),v=f[0]!=null;if(h)v&&h&&s<n*f[0]?(u="jump",l=s-n*f[2]):v&&h&&s>n*(1-f[0])?(u="jump",l=s-n*(1-f[2])):(l=s-n*f[1])>=0&&(l=s-n*(1-f[1]))<=0&&(l=0),l*=t.axisExpandWidth/h,l?$i(l,i,o,"all"):u="none";else{var c=i[1]-i[0],p=o[1]*s/c;i=[Uw(0,p-c/2)],i[1]=Ww(o[1],i[0]+c),i[0]=i[1]-c}return{axisExpandWindow:i,behavior:u}},r}();function Rh(r,e){return Ww(Uw(r,e[0]),e[1])}function K5(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function Q5(r,e){var t=e.layoutLength,a=e.axisExpandWidth,i=e.axisCount,n=e.axisCollapseWidth,o=e.winInnerIndices,s,l=n,u=!1,h;return r<o[0]?(s=r*n,h=n):r<=o[1]?(s=e.axisExpandWindow0Pos+r*a-e.axisExpandWindow[0],l=a,u=!0):(s=t-(i-1-r)*n,h=n),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:h}}function J5(r,e){var t=[];return r.eachComponent("parallel",function(a,i){var n=new q5(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",Wt).models[0];a.coordinateSystem=i.coordinateSystem}}),t}var j5={create:J5},xd=function(r){E(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 li([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var a=this.activeIntervals=$(t);if(a)for(var i=a.length-1;i>=0;i--)Ue(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}(ht);Ht(xd,Rs);var Zi=!0,al=Math.min,qn=Math.max,tz=Math.pow,ez=1e4,rz=6,az=6,$w="globalPan",iz={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},nz={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Zw={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},oz=0,bd=function(r){E(e,r);function e(t){var a=r.call(this)||this;return a._track=[],a._covers=[],a._handlers={},a._zr=t,a.group=new q,a._uid="brushController_"+oz++,A(cz,function(i,n){this._handlers[n]=U(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||mB(a,$w,this._uid),A(this._handlers,function(i,n){a.on(n,i)}),this._brushType=t.brushType,this._brushOption=at($(Zw),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;_B(t,$w,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]=$(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=H(t,function(v){return at($(Zw),v,!0)});var a="\0-brush-index-",i=this._covers,n=this._covers=[],o=this,s=this._creatingCover;return new Ca(i,t,u,l).add(h).update(h).remove(f).execute(),this;function l(v,c){return(v.id!=null?v.id:a+c)+"-"+v.brushType}function u(v,c){return l(v.__brushOption,c)}function h(v,c){var p=t[v];if(c!=null&&i[c]===s)n[v]=i[c];else{var d=n[v]=c!=null?(i[c].__brushOption=p,i[c]):Kw(o,qw(o,p));wd(o,d)}}function f(v){i[v]!==s&&o.group.remove(i[v])}},e.prototype.unmount=function(){return this.enableBrush(!1),Cd(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(or);function qw(r,e){var t=Eh[e.brushType].createCover(r,e);return t.__brushOption=e,Jw(t,e),r.group.add(t),t}function Kw(r,e){var t=Td(e);return t.endCreating&&(t.endCreating(r,e),Jw(e,e.__brushOption)),e}function Qw(r,e){var t=e.__brushOption;Td(e).updateCoverShape(r,e,t.range,t)}function Jw(r,e){var t=e.z;t==null&&(t=ez),r.traverse(function(a){a.z=t,a.z2=t})}function wd(r,e){Td(e).updateCommon(r,e),Qw(r,e)}function Td(r){return Eh[r.__brushOption.brushType]}function Ad(r,e,t){var a=r._panels;if(!a)return Zi;var i,n=r._transform;return A(a,function(o){o.isTargetByCursor(e,t,n)&&(i=o)}),i}function jw(r,e){var t=r._panels;if(!t)return Zi;var a=e.__brushOption.panelId;return a!=null?t[a]:Zi}function Cd(r){var e=r._covers,t=e.length;return A(e,function(a){r.group.remove(a)},r),e.length=0,!!t}function qi(r,e){var t=H(r._covers,function(a){var i=a.__brushOption,n=$(i.range);return{brushType:i.brushType,panelId:i.panelId,range:n}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function sz(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=tz(i*i+n*n,.5);return o>rz}function tT(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function eT(r,e,t,a){var i=new q;return i.add(new pt({name:"main",style:Md(t),silent:!0,draggable:!0,cursor:"move",drift:j(iT,r,e,i,["n","s","w","e"]),ondragend:j(qi,e,{isEnd:!0})})),A(a,function(n){i.add(new pt({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:j(iT,r,e,i,n),ondragend:j(qi,e,{isEnd:!0})}))}),i}function rT(r,e,t,a){var i=a.brushStyle.lineWidth||0,n=qn(i,az),o=t[0][0],s=t[1][0],l=o-i/2,u=s-i/2,h=t[0][1],f=t[1][1],v=h-n+i/2,c=f-n+i/2,p=h-o,d=f-s,g=p+i,y=d+i;ra(r,e,"main",o,s,p,d),a.transformable&&(ra(r,e,"w",l,u,n,y),ra(r,e,"e",v,u,n,y),ra(r,e,"n",l,u,g,n),ra(r,e,"s",l,c,g,n),ra(r,e,"nw",l,u,n,n),ra(r,e,"ne",v,u,n,n),ra(r,e,"sw",l,c,n,n),ra(r,e,"se",v,c,n,n))}function Dd(r,e){var t=e.__brushOption,a=t.transformable,i=e.childAt(0);i.useStyle(Md(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?Ld(r,n[0]):uz(r,n);o&&o.attr({silent:!a,invisible:!a,cursor:a?nz[s]+"-resize":null})})}function ra(r,e,t,a,i,n,o){var s=e.childOfName(t);s&&s.setShape(fz(Id(r,e,[[a,i],[a+n,i+o]])))}function Md(r){return X({strokeNoScale:!0},r.brushStyle)}function aT(r,e,t,a){var i=[al(r,t),al(e,a)],n=[qn(r,t),qn(e,a)];return[[i[0],n[0]],[i[1],n[1]]]}function lz(r){return wi(r.group)}function Ld(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},i=hu(t[e],lz(r));return a[i]}function uz(r,e){var t=[Ld(r,e[0]),Ld(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function iT(r,e,t,a,i,n){var o=t.__brushOption,s=r.toRectRange(o.range),l=nT(e,i,n);A(a,function(u){var h=iz[u];s[h[0]][h[1]]+=l[h[0]]}),o.range=r.fromRectRange(aT(s[0][0],s[1][0],s[0][1],s[1][1])),wd(e,t),qi(e,{isEnd:!1})}function hz(r,e,t,a){var i=e.__brushOption.range,n=nT(r,t,a);A(i,function(o){o[0]+=n[0],o[1]+=n[1]}),wd(r,e),qi(r,{isEnd:!1})}function nT(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 Id(r,e,t){var a=jw(r,e);return a&&a!==Zi?a.clipPath(t,r._transform):$(t)}function fz(r){var e=al(r[0][0],r[1][0]),t=al(r[0][1],r[1][1]),a=qn(r[0][0],r[1][0]),i=qn(r[0][1],r[1][1]);return{x:e,y:t,width:a-e,height:i-t}}function vz(r,e,t){if(!(!r._brushType||pz(r,e.offsetX,e.offsetY))){var a=r._zr,i=r._covers,n=Ad(r,e,t);if(!r._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(n&&(n===Zi||s.panelId===n.panelId)&&Eh[s.brushType].contain(i[o],t[0],t[1]))return}n&&a.setCursorStyle("crosshair")}}function Pd(r){var e=r.event;e.preventDefault&&e.preventDefault()}function Rd(r,e,t){return r.childOfName("main").contain(e,t)}function oT(r,e,t,a){var i=r._creatingCover,n=r._creatingPanel,o=r._brushOption,s;if(r._track.push(t.slice()),sz(r)||i){if(n&&!i){o.brushMode==="single"&&Cd(r);var l=$(o);l.brushType=sT(l.brushType,n),l.panelId=n===Zi?null:n.panelId,i=r._creatingCover=qw(r,l),r._covers.push(i)}if(i){var u=Eh[sT(r._brushType,n)],h=i.__brushOption;h.range=u.getCreatingRange(Id(r,i,r._track)),a&&(Kw(r,i),u.updateCommon(r,i)),Qw(r,i),s={isEnd:a}}}else a&&o.brushMode==="single"&&o.removeOnClick&&Ad(r,e,t)&&Cd(r)&&(s={isEnd:a,removeOnClick:!0});return s}function sT(r,e){return r==="auto"?e.defaultBrushType:r}var cz={mousedown:function(r){if(this._dragging)lT(this,r);else if(!r.target||!r.target.draggable){Pd(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=Ad(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(vz(this,r,a),this._dragging){Pd(r);var i=oT(this,r,a,!1);i&&qi(this,i)}},mouseup:function(r){lT(this,r)}};function lT(r,e){if(r._dragging){Pd(e);var t=e.offsetX,a=e.offsetY,i=r.group.transformCoordToLocal(t,a),n=oT(r,e,i,!0);r._dragging=!1,r._track=[],r._creatingCover=null,n&&qi(r,n)}}function pz(r,e,t){var a=r._zr;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var Eh={lineX:uT(0),lineY:uT(1),rect:{createCover:function(r,e){function t(a){return a}return eT({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=tT(r);return aT(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,a){rT(r,e,t,a)},updateCommon:Dd,contain:Rd},polygon:{createCover:function(r,e){var t=new q;return t.add(new Me({name:"main",style:Md(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new me({name:"main",draggable:!0,drift:j(hz,r,e),ondragend:j(qi,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,a){e.childAt(0).setShape({points:Id(r,e,t)})},updateCommon:Dd,contain:Rd}};function uT(r){return{createCover:function(e,t){return eT({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=tT(e),a=al(t[0][r],t[1][r]),i=qn(t[0][r],t[1][r]);return[a,i]},updateCoverShape:function(e,t,a,i){var n,o=jw(e,t);if(o!==Zi&&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(),rT(e,t,l,i)},updateCommon:Dd,contain:Rd}}function hT(r){return r=Ed(r),function(e){return R0(e,r)}}function fT(r,e){return r=Ed(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 vT(r,e,t){var a=Ed(r);return function(i,n){return a.contain(n[0],n[1])&&!xh(i,e,t)}}function Ed(r){return ot.create(r)}var dz=["axisLine","axisTickLabel","axisName"],gz=function(r){E(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 bd(a.getZr())).on("brush",U(this._onBrush,this))},e.prototype.render=function(t,a,i,n){if(!yz(t,a,n)){this.axisModel=t,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new q,this.group.add(this._axisGroup),!!t.get("show")){var s=_z(t,a),l=s.coordinateSystem,u=t.getAreaSelectStyle(),h=u.width,f=t.axis.dim,v=l.getAxisLayout(f),c=V({strokeContainThreshold:h},v),p=new be(t,c);A(dz,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(c,u,t,s,h,i),Xo(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,a,i,n,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],h=Math.min(30,Math.abs(u)*.1),f=ot.create({x:l[0],y:-o/2,width:u,height:o});f.x-=h,f.width+=2*h,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:hT(f),isTargetByCursor:vT(f,s,n),getLinearBrushOtherExtent:fT(f,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(mz(i))},e.prototype._onBrush=function(t){var a=t.areas,i=this.axisModel,n=i.axis,o=H(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}(Et);function yz(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function mz(r){var e=r.axis;return H(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function _z(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var Sz={type:"axisAreaSelect",event:"axisAreaSelected"};function xz(r){r.registerAction(Sz,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 bz={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function cT(r){r.registerComponentView(W5),r.registerComponentModel(Y5),r.registerCoordinateSystem("parallel",j5),r.registerPreprocessor(z5),r.registerComponentModel(xd),r.registerComponentView(gz),Wn(r,"parallel",xd,bz),xz(r)}function wz(r){st(cT),r.registerChartView(P5),r.registerSeriesModel(k5),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,V5)}var Tz=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}(),Az=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Tz},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(){Cr(this)},e.prototype.downplay=function(){Dr(this)},e}(ct),Cz=function(r){E(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,h=l.height,f=t.getData(),v=t.getData("edge"),c=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var d=new Az,g=Q(d);g.dataIndex=p.dataIndex,g.seriesIndex=t.seriesIndex,g.dataType="edge";var y=p.getModel(),m=y.getModel("lineStyle"),_=m.get("curveness"),S=p.node1.getLayout(),x=p.node1.getModel(),b=x.get("localX"),w=x.get("localY"),T=p.node2.getLayout(),C=p.node2.getModel(),M=C.get("localX"),D=C.get("localY"),L=p.getLayout(),I,P,R,k,N,O,G,z;switch(d.shape.extent=Math.max(1,L.dy),d.shape.orient=c,c==="vertical"?(I=(b!=null?b*u:S.x)+L.sy,P=(w!=null?w*h:S.y)+S.dy,R=(M!=null?M*u:T.x)+L.ty,k=D!=null?D*h:T.y,N=I,O=P*(1-_)+k*_,G=R,z=P*_+k*(1-_)):(I=(b!=null?b*u:S.x)+S.dx,P=(w!=null?w*h:S.y)+L.sy,R=M!=null?M*u:T.x,k=(D!=null?D*h:T.y)+L.ty,N=I*(1-_)+R*_,O=P,G=I*_+R*(1-_),z=k),d.setShape({x1:I,y1:P,x2:R,y2:k,cpx1:N,cpy1:O,cpx2:G,cpy2:z}),d.useStyle(m.getItemStyle()),d.style.fill){case"source":d.style.fill=p.node1.getVisual("color"),d.style.decal=p.node1.getVisual("style").decal;break;case"target":d.style.fill=p.node2.getVisual("color"),d.style.decal=p.node2.getVisual("style").decal;break;case"gradient":var W=p.node1.getVisual("color"),K=p.node2.getVisual("color");typeof W=="string"&&typeof K=="string"&&(d.style.fill=new Uo(0,0,1,0,[{color:W,offset:0},{color:K,offset:1}]))}var _t=y.getModel("emphasis");oe(d,y,"lineStyle",function(ut){return ut.getItemStyle()}),s.add(d),v.setItemGraphicEl(p.dataIndex,d);var mt=_t.get("focus");Lt(d,mt==="adjacency"?p.getAdjacentDataIndices():mt,_t.get("blurScope")),Q(d).dataType="edge"}),o.eachNode(function(p){var d=p.getLayout(),g=p.getModel(),y=g.get("localX"),m=g.get("localY"),_=g.getModel("emphasis"),S=new pt({shape:{x:y!=null?y*u:d.x,y:m!=null?m*h:d.y,width:d.dx,height:d.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});fe(S,ne(g),{labelFetcher:t,labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),oe(S,g),s.add(S),f.setItemGraphicEl(p.dataIndex,S),Q(S).dataType="node";var x=_.get("focus");Lt(S,x==="adjacency"?p.getAdjacentDataIndices():x,_.get("blurScope"))}),f.eachItemGraphicEl(function(p,d){var g=f.getItemModel(d);g.get("draggable")&&(p.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:f.getRawIndex(d),localX:this.shape.x/u,localY:this.shape.y/h})},p.ondragend=function(){n._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(Dz(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Ct);function Dz(r,e,t){var a=new pt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Nt(a,{shape:{width:r.width+20}},e,t),a}var Mz=function(r){E(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 xt(o[l],this,a));if(n&&i){var u=zw(n,i,this,!0,h);return u.data}function h(f,v){f.wrapMethod("getItemModel",function(c,p){var d=c.parentModel,g=d.getData().getItemLayout(p);if(g){var y=g.depth,m=d.levelModels[y];m&&(c.parentModel=m)}return c}),v.wrapMethod("getItemModel",function(c,p){var d=c.parentModel,g=d.getGraph().getEdgeByIndex(p),y=g.node1.getLayout();if(y){var m=y.depth,_=d.levelModels[m];_&&(c.parentModel=_)}return c})}},e.prototype.setNodePosition=function(t,a){var i=this.option.data[t];i.localX=a[0],i.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(c){return isNaN(c)||c==null}if(i==="edge"){var o=this.getDataParams(t,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Jt("nameValue",{name:u,value:l,noValue:n(l)})}else{var h=this.getGraph().getNodeByIndex(t),f=h.getLayout().value,v=this.getDataParams(t,i).data.name;return Jt("nameValue",{name:v!=null?v+"":null,value:f,noValue:n(f)})}},e.prototype.optionUpdated=function(){this.option},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={zlevel:0,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}(It);function Lz(r,e){r.eachSeriesByType("sankey",function(t){var a=t.get("nodeWidth"),i=t.get("nodeGap"),n=Iz(t,e);t.layoutInfo=n;var o=n.width,s=n.height,l=t.getGraph(),u=l.nodes,h=l.edges;Rz(u);var f=kt(u,function(d){return d.getLayout().value===0}),v=f.length!==0?0:t.get("layoutIterations"),c=t.get("orient"),p=t.get("nodeAlign");Pz(u,h,a,i,o,s,v,c,p)})}function Iz(r,e){return qt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Pz(r,e,t,a,i,n,o,s,l){Ez(r,e,t,i,n,s,l),Bz(r,e,n,i,a,o,s),Xz(r,s)}function Rz(r){A(r,function(e){var t=ka(e.outEdges,kh),a=ka(e.inEdges,kh),i=e.getValue()||0,n=Math.max(t,a,i);e.setLayout({value:n},!0)})}function Ez(r,e,t,a,i,n,o){for(var s=[],l=[],u=[],h=[],f=0,v=0;v<e.length;v++)s[v]=1;for(var v=0;v<r.length;v++)l[v]=r[v].inEdges.length,l[v]===0&&u.push(r[v]);for(var c=-1;u.length;){for(var p=0;p<u.length;p++){var d=u[p],g=d.hostGraph.data.getRawDataItem(d.dataIndex),y=g.depth!=null&&g.depth>=0;y&&g.depth>c&&(c=g.depth),d.setLayout({depth:y?g.depth:f},!0),n==="vertical"?d.setLayout({dy:t},!0):d.setLayout({dx:t},!0);for(var m=0;m<d.outEdges.length;m++){var _=d.outEdges[m],S=e.indexOf(_);s[S]=0;var x=_.node2,b=r.indexOf(x);--l[b]==0&&h.indexOf(x)<0&&h.push(x)}}++f,u=h,h=[]}for(var v=0;v<s.length;v++)if(s[v]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var w=c>f-1?c:f-1;o&&o!=="left"&&kz(r,o,n,w);var T=n==="vertical"?(i-t)/w:(a-t)/w;Nz(r,T,n)}function pT(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function kz(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 h=l.inEdges[u];i.indexOf(h.node1)<0&&i.push(h.node1)}}n=i,i=[],++o}A(r,function(f){pT(f)||f.setLayout({depth:Math.max(0,a-f.getLayout().skNodeHeight)},!0)})}else e==="justify"&&Oz(r,a)}function Oz(r,e){A(r,function(t){!pT(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function Nz(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 Bz(r,e,t,a,i,n,o){var s=Vz(r,o);zz(s,e,t,a,i,o),kd(s,i,t,a,o);for(var l=1;n>0;n--)l*=.99,Fz(s,l,o),kd(s,i,t,a,o),Yz(s,l,o),kd(s,i,t,a,o)}function Vz(r,e){var t=[],a=e==="vertical"?"y":"x",i=uv(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 zz(r,e,t,a,i,n){var o=Infinity;A(r,function(s){var l=s.length,u=0;A(s,function(f){u+=f.getLayout().value});var h=n==="vertical"?(a-(l-1)*i)/u:(t-(l-1)*i)/u;h<o&&(o=h)}),A(r,function(s){A(s,function(l,u){var h=l.getLayout().value*o;n==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:h},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:h},!0))})}),A(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function kd(r,e,t,a,i){var n=i==="vertical"?"x":"y";A(r,function(o){o.sort(function(d,g){return d.getLayout()[n]-g.getLayout()[n]});for(var s,l,u,h=0,f=o.length,v=i==="vertical"?"dx":"dy",c=0;c<f;c++)l=o[c],u=h-l.getLayout()[n],u>0&&(s=l.getLayout()[n]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),h=l.getLayout()[n]+l.getLayout()[v]+e;var p=i==="vertical"?a:t;if(u=h-e-p,u>0){s=l.getLayout()[n]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),h=s;for(var c=f-2;c>=0;--c)l=o[c],u=l.getLayout()[n]+l.getLayout()[v]+e-h,u>0&&(s=l.getLayout()[n]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),h=l.getLayout()[n]}})}function Fz(r,e,t){A(r.slice().reverse(),function(a){A(a,function(i){if(i.outEdges.length){var n=ka(i.outEdges,Gz,t)/ka(i.outEdges,kh);if(isNaN(n)){var o=i.outEdges.length;n=o?ka(i.outEdges,Hz,t)/o:0}if(t==="vertical"){var s=i.getLayout().x+(n-Ea(i,t))*e;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(n-Ea(i,t))*e;i.setLayout({y:l},!0)}}})})}function Gz(r,e){return Ea(r.node2,e)*r.getValue()}function Hz(r,e){return Ea(r.node2,e)}function Wz(r,e){return Ea(r.node1,e)*r.getValue()}function Uz(r,e){return Ea(r.node1,e)}function Ea(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function kh(r){return r.getValue()}function ka(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 Yz(r,e,t){A(r,function(a){A(a,function(i){if(i.inEdges.length){var n=ka(i.inEdges,Wz,t)/ka(i.inEdges,kh);if(isNaN(n)){var o=i.inEdges.length;n=o?ka(i.inEdges,Uz,t)/o:0}if(t==="vertical"){var s=i.getLayout().x+(n-Ea(i,t))*e;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(n-Ea(i,t))*e;i.setLayout({y:l},!0)}}})})}function Xz(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 $z(r){r.eachSeriesByType("sankey",function(e){var t=e.getGraph(),a=t.nodes;if(a.length){var i=Infinity,n=-Infinity;A(a,function(o){var s=o.getLayout().value;s<i&&(i=s),s>n&&(n=s)}),A(a,function(o){var s=new jt({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 Zz(r){r.registerChartView(Cz),r.registerSeriesModel(Mz),r.registerLayout(Lz),r.registerVisual($z),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 dT=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"],h=e.layout==="horizontal"?0:1,f=this._baseAxisDim=u[h],v=u[1-h],c=[i,n],p=c[h].get("type"),d=c[1-h].get("type"),g=e.data;if(g&&l){var y=[];A(g,function(S,x){var b;B(S)?(b=S.slice(),S.unshift(x)):B(S.value)?(b=S.value.slice(),S.value.unshift(x)):b=S,y.push(b)}),e.data=y}var m=this.defaultValueDimensions,_=[{name:f,type:qu(p),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:v,type:qu(d),dimsDef:m.slice()}];return Hn(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:j(f_,_,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r}(),gT=function(r){E(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={zlevel:0,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}(It);Ht(gT,dT,!0);var qz=function(r){E(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 h=n.getItemLayout(u),f=yT(h,n,u,l,!0);n.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,h){var f=s.getItemGraphicEl(h);if(!n.hasValue(u)){o.remove(f);return}var v=n.getItemLayout(u);f?mT(v,f,n,u):f=yT(v,n,u,l),o.add(f),n.setItemGraphicEl(u,f)}).remove(function(u){var h=s.getItemGraphicEl(u);h&&o.remove(h)}).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}(Ct),Kz=function(){function r(){}return r}(),Qz=function(r){E(e,r);function e(t){var a=r.call(this,t)||this;return a.type="boxplotBoxPath",a}return e.prototype.getDefaultShape=function(){return new Kz},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}(ct);function yT(r,e,t,a,i){var n=r.ends,o=new Qz({shape:{points:i?Jz(n,a,r):n}});return mT(r,o,e,t,i),o}function mT(r,e,t,a,i){var n=t.hostModel,o=qo[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);oe(e,s),Lt(e,s.get(["emphasis","focus"]),s.get(["emphasis","blurScope"]))}function Jz(r,e,t){return H(r,function(a){return a=a.slice(),a[e]=t.initBaseline,a})}function jz(r,e){}var il=A;function tF(r){var e=eF(r);il(e,function(t){var a=t.seriesModels;!a.length||(rF(t),il(a,function(i,n){aF(i,t.boxOffsetList[n],t.boxWidthList[n])}))})}function eF(r){var e=[],t=[];return r.eachSeriesByType("boxplot",function(a){var i=a.getBaseAxis(),n=lt(t,i);n<0&&(n=t.length,t[n]=i,e[n]={axis:i,seriesModels:[]}),e[n].seriesModels.push(a)}),e}function rF(r){var e,t=r.axis,a=r.seriesModels,i=a.length,n=r.boxWidthList=[],o=r.boxOffsetList=[],s=[],l;if(t.type==="category")l=t.getBandWidth();else{var u=0;il(a,function(p){u=Math.max(u,p.getData().count())}),e=t.getExtent(),Math.abs(e[1]-e[0])/u}il(a,function(p){var d=p.get("boxWidth");B(d)||(d=[d,d]),s.push([F(d[0],l)||0,F(d[1],l)||0])});var h=l*.8-2,f=h/i*.3,v=(h-f*(i-1))/i,c=v/2-h/2;il(a,function(p,d){o.push(c),c+=f+v,n.push(Math.min(Math.max(v,s[d][0]),s[d][1]))})}function aF(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]),h=i.mapDimensionsAll(l[s]);if(u==null||h.length<5)return;for(var f=0;f<i.count();f++){var v=i.get(u,f),c=_(v,h[2],f),p=_(v,h[0],f),d=_(v,h[1],f),g=_(v,h[3],f),y=_(v,h[4],f),m=[];S(m,d,!1),S(m,g,!0),m.push(p,d,y,g),x(m,p),x(m,y),x(m,c),i.setItemLayout(f,{initBaseline:c[s],ends:m})}function _(b,w,T){var C=i.get(w,T),M=[];M[o]=b,M[s]=C;var D;return isNaN(b)||isNaN(C)?D=[NaN,NaN]:(D=a.dataToPoint(M),D[o]+=e),D}function S(b,w,T){var C=w.slice(),M=w.slice();C[o]+=n,M[o]-=n,T?b.push(C,M):b.push(M,C)}function x(b,w){var T=w.slice(),C=w.slice();T[o]-=n,C[o]+=n,b.push(T,C)}}function iF(r,e){e=e||{};for(var t=[],a=[],i=e.boundIQR,n=i==="none"||i===0,o=0;o<r.length;o++){var s=Ue(r[o].slice()),l=ov(s,.25),u=ov(s,.5),h=ov(s,.75),f=s[0],v=s[s.length-1],c=(i==null?1.5:i)*(h-l),p=n?f:Math.max(f,l-c),d=n?v:Math.min(v,h+c),g=e.itemNameFormatter,y=wt(g)?g({value:o}):ft(g)?g.replace("{value}",o+""):o+"";t.push([y,p,l,u,h,d]);for(var m=0;m<s.length;m++){var _=s[m];if(_<p||_>d){var S=[y,_];a.push(S)}}}return{boxData:t,outliers:a}}var nF={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==ve){var a="";yt(a)}var i=iF(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function oF(r){r.registerSeriesModel(gT),r.registerChartView(qz),r.registerVisual(jz),r.registerLayout(tF),r.registerTransform(nF)}var sF=["color","borderColor"],lF=function(r){E(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._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._isLargeDraw?this._incrementalRenderLarge(t,a):this._incrementalRenderNormal(t,a)},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(h){if(a.hasValue(h)){var f=a.getItemLayout(h);if(s&&_T(u,f))return;var v=Od(f,h,!0);Nt(v,{shape:{points:f.ends}},t,h),Nd(v,a,h,o),n.add(v),a.setItemGraphicEl(h,v)}}).update(function(h,f){var v=i.getItemGraphicEl(f);if(!a.hasValue(h)){n.remove(v);return}var c=a.getItemLayout(h);if(s&&_T(u,c)){n.remove(v);return}v?dt(v,{shape:{points:c.ends}},t,h):v=Od(c),Nd(v,a,h,o),n.add(v),a.setItemGraphicEl(h,v)}).remove(function(h){var f=i.getItemGraphicEl(h);f&&n.remove(f)}).execute(),this._data=a},e.prototype._renderLarge=function(t){this._clear(),xT(t,this.group);var a=t.get("clip",!0)?dh(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=Od(s);Nd(l,i,o,n),l.incremental=!0,this.group.add(l)}},e.prototype._incrementalRenderLarge=function(t,a){xT(a,this.group,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Ct),uF=function(){function r(){}return r}(),hF=function(r){E(e,r);function e(t){var a=r.call(this,t)||this;return a.type="normalCandlestickBox",a}return e.prototype.getDefaultShape=function(){return new uF},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}(ct);function Od(r,e,t){var a=r.ends;return new hF({shape:{points:t?fF(a,r):a},z2:100})}function _T(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 Nd(r,e,t,a){var i=e.getItemModel(t);r.useStyle(e.getItemVisual(t,"style")),r.style.strokeNoScale=!0,r.__simpleBox=a,oe(r,i)}function fF(r,e){return H(r,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}var vF=function(){function r(){}return r}(),ST=function(r){E(e,r);function e(t){var a=r.call(this,t)||this;return a.type="largeCandlestickBox",a}return e.prototype.getDefaultShape=function(){return new vF},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}(ct);function xT(r,e,t){var a=r.getData(),i=a.getLayout("largePoints"),n=new ST({shape:{points:i},__sign:1});e.add(n);var o=new ST({shape:{points:i},__sign:-1});e.add(o),bT(1,n,r),bT(-1,o,r),t&&(n.incremental=!0,o.incremental=!0)}function bT(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(sF);e.useStyle(n),e.style.fill=null,e.style.stroke=i}var wT=function(r){E(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={zlevel:0,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}(It);Ht(wT,dT,!0);function cF(r){!r||!B(r.series)||A(r.series,function(e){J(e)&&e.type==="k"&&(e.type="candlestick")})}var pF=["itemStyle","borderColor"],dF=["itemStyle","borderColor0"],gF=["itemStyle","color"],yF=["itemStyle","color0"],mF={seriesType:"candlestick",plan:Ln(),performRawSeries:!0,reset:function(r,e){function t(n,o){return o.get(n>0?gF:yF)}function a(n,o){return o.get(n>0?pF:dF)}if(r.getData(),!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,h=l.getItemStyle();h.fill=t(u,l),h.stroke=a(u,l)||h.fill;var f=o.ensureUniqueItemVisual(s,"style");V(f,h)}}}}}},_F=typeof Float32Array!="undefined"?Float32Array:Array,SF={seriesType:"candlestick",plan:Ln(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),a=xF(r,t),i=0,n=1,o=["x","y"],s=t.mapDimension(o[i]),l=t.mapDimensionsAll(o[n]),u=l[0],h=l[1],f=l[2],v=l[3];if(t.setLayout({candleWidth:a,isSimpleBox:a<=1.3}),s==null||l.length<4)return;return{progress:r.pipelineContext.large?p:c};function c(d,g){for(var y;(y=d.next())!=null;){var m=g.get(s,y),_=g.get(u,y),S=g.get(h,y),x=g.get(f,y),b=g.get(v,y),w=Math.min(_,S),T=Math.max(_,S),C=P(w,m),M=P(T,m),D=P(x,m),L=P(b,m),I=[];R(I,M,0),R(I,C,1),I.push(N(L),N(M),N(D),N(C)),g.setItemLayout(y,{sign:TT(g,y,_,S,h),initBaseline:_>S?M[n]:C[n],ends:I,brushRect:k(x,b,m)})}function P(O,G){var z=[];return z[i]=G,z[n]=O,isNaN(G)||isNaN(O)?[NaN,NaN]:e.dataToPoint(z)}function R(O,G,z){var W=G.slice(),K=G.slice();W[i]=uu(W[i]+a/2,1,!1),K[i]=uu(K[i]-a/2,1,!0),z?O.push(W,K):O.push(K,W)}function k(O,G,z){var W=P(O,z),K=P(G,z);return W[i]-=a/2,K[i]-=a/2,{x:W[0],y:W[1],width:a,height:K[1]-W[1]}}function N(O){return O[i]=uu(O[i],1),O}}function p(d,g){for(var y=new _F(d.count*4),m=0,_,S=[],x=[],b;(b=d.next())!=null;){var w=g.get(s,b),T=g.get(u,b),C=g.get(h,b),M=g.get(f,b),D=g.get(v,b);if(isNaN(w)||isNaN(M)||isNaN(D)){y[m++]=NaN,m+=3;continue}y[m++]=TT(g,b,T,C,h),S[i]=w,S[n]=M,_=e.dataToPoint(S,null,x),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[n]=D,_=e.dataToPoint(S,null,x),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function TT(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 xF(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=F(vt(r.get("barMaxWidth"),i),i),o=F(vt(r.get("barMinWidth"),1),i),s=r.get("barWidth");return s!=null?F(s,i):Math.max(Math.min(i/2,n),o)}function bF(r){r.registerChartView(lF),r.registerSeriesModel(wT),r.registerPreprocessor(cF),r.registerVisual(mF),r.registerLayout(SF)}var AT=3;function wF(r){return B(r)||(r=[+r,+r]),r}function CT(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 TF=function(r){E(e,r);function e(t,a){var i=r.call(this)||this,n=new Bs(t,a),o=new q;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=this.childAt(1),o=0;o<AT;o++){var s=Yt(a,-1,-1,2,2,i);s.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var l=-o/AT*t.period+t.effectOffset;s.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(l).start(),s.animateStyle(!0).when(t.period,{opacity:0}).delay(l).start(),n.add(s)}CT(n,t)},e.prototype.updateEffectAnimation=function(t){for(var a=this._effectCfg,i=this.childAt(1),n=["symbolType","period","rippleScale"],o=0;o<n.length;o++){var s=n[o];if(a[s]!==t[s]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}CT(i,t)},e.prototype.highlight=function(){Cr(this)},e.prototype.downplay=function(){Dr(this)},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=wF(t.getItemVisual(a,"symbolSize")),h=t.getItemVisual(a,"style"),f=h&&h.fill;o.setScale(u),o.traverse(function(d){d.setStyle("fill",f)});var v=t.getItemVisual(a,"symbolOffset");v&&(B(v)||(v=[v,v]),o.x=F(v[0],u[0]),o.y=F(vt(v[1],v[0])||0,u[1]));var c=t.getItemVisual(a,"symbolRotate");o.rotation=(c||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=f,p.rippleEffectColor=s.get(["rippleEffect","color"]),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),p.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(d){d==="emphasis"?p.showEffectOn!=="render"&&i.startEffectAnimation(p):d==="normal"&&p.showEffectOn!=="render"&&i.stopEffectAnimation()}),this._effectCfg=p,Lt(this)},e.prototype.fadeOut=function(t){this.off("mouseover").off("mouseout"),t&&t()},e}(q),AF=function(r){E(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 Vs(TF)},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=zs("").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=MM(a.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(Ct),CF=function(r){E(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 Jr(this.getSource(),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",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10},e}(It);function DF(r){r.registerChartView(AF),r.registerSeriesModel(CF),r.registerLayout(zs("effectScatter"))}var DT=function(r){E(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 ld(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");B(o)||(o=[o,o]);var l=t.getItemVisual(a,"style"),u=n.get("color")||l&&l.stroke,h=this.childAt(1);this._symbolType!==s&&(this.remove(h),h=Yt(s,-.5,-.5,1,1,u),h.z2=100,h.culling=!0,this.add(h)),!!h&&(h.setStyle("shadowColor",u),h.setStyle(n.getItemStyle(["color"])),h.scaleX=o[0],h.scaleY=o[1],h.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=this,s=t.getItemLayout(i),l=a.get("period")*1e3,u=a.get("loop"),h=a.get("constantSpeed"),f=ee(a.get("delay"),function(p){return p/t.count()*l/3});if(n.ignore=!0,this._updateAnimationPoints(n,s),h>0&&(l=this._getLineLength(n)/h*1e3),(l!==this._period||u!==this._loop)&&(n.stopAnimation(),l>0)){var v=void 0;typeof f=="function"?v=f(i):v=f,n.__t>0&&(v=-l*n.__t),n.__t=0;var c=n.animate("",u).when(l,{__t:1}).delay(v).during(function(){o._updateSymbolPosition(n)});u||c.done(function(){o.remove(n)}),c.start()}this._period=l,this._loop=u}},e.prototype._getLineLength=function(t){return sa(t.__p1,t.__cp1)+sa(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,s=[t.x,t.y],l=s.slice(),u=ie,h=Sv;s[0]=u(a[0],n[0],i[0],o),s[1]=u(a[1],n[1],i[1],o);var f=h(a[0],n[0],i[0],o),v=h(a[1],n[1],i[1],o);t.rotation=-Math.atan2(v,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT<t.__t?(t.scaleY=sa(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*sa(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}(q),MT=function(r){E(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 Me({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)}};dt(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;(!i||t.hasItemOption)&&(s=o.getModel(["emphasis","lineStyle"]).getLineStyle()),n.useStyle(t.getItemVisual(a,"style")),n.style.fill=null,n.style.strokeNoScale=!0;var l=n.ensureState("emphasis");l.style=s,Lt(this)},e.prototype.updateLayout=function(t,a){var i=this.childAt(0);i.setShape("points",t.getItemLayout(a))},e}(q),MF=function(r){E(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 MT(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+=sa(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,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 h=(a-n[l])/(n[l+1]-n[l]),f=i[l],v=i[l+1];t.x=f[0]*(1-h)+h*v[0],t.y=f[1]*(1-h)+h*v[1];var c=v[0]-f[0],p=v[1]-f[1];t.rotation=-Math.atan2(p,c)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,t.ignore=!1}},e}(DT),LF=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),LT=function(r){E(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 LF},e.prototype.buildPath=function(t,a){var i=a.segs,n=a.curveness;if(a.polyline)for(var o=0;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(var o=0;o<i.length;){var u=i[o++],h=i[o++],f=i[o++],v=i[o++];if(t.moveTo(u,h),n>0){var c=(u+f)/2-(h-v)*n,p=(h+v)/2-(f-u)*n;t.quadraticCurveTo(c,p,f,v)}else t.lineTo(f,v)}},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 h=n[u++];if(h>0)for(var f=n[u++],v=n[u++],c=1;c<h;c++){var p=n[u++],d=n[u++];if(ca(f,v,p,d,s,t,a))return l}l++}else for(var l=0,u=0;u<n.length;){var f=n[u++],v=n[u++],p=n[u++],d=n[u++];if(o>0){var g=(f+p)/2-(v-d)*o,y=(v+d)/2-(p-f)*o;if(Om(f,v,g,y,p,d,s,t,a))return l}else if(ca(f,v,p,d,s,t,a))return l;l++}return-1},e}(ct),IF=function(){function r(){this.group=new q}return r.prototype.isPersistent=function(){return!this._incremental},r.prototype.updateData=function(e){this.group.removeAll();var t=new LT({rectHover:!0,cursor:"default"});t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e),this.group.add(t),this._incremental=null},r.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>5e5?(this._incremental||(this._incremental=new nu({silent:!0})),this.group.add(this._incremental)):this._incremental=null},r.prototype.incrementalUpdate=function(e,t){var a=new LT;a.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(a,t,!!this._incremental),this._incremental?this._incremental.addDisplayable(a,!0):(a.rectHover=!0,a.cursor="default",a.__startIndex=e.start,this.group.add(a))},r.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},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");if(n&&n.stroke&&e.setStyle("stroke",n.stroke),e.setStyle("fill",null),!a){var o=Q(e);o.seriesIndex=i.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.findDataIndex(s.offsetX,s.offsetY);l>0&&(o.dataIndex=l+e.__startIndex)})}},r.prototype._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()},r}(),IT={seriesType:"lines",plan:Ln(),reset:function(r){var e=r.coordinateSystem,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,h=i.start;h<i.end;h++)u+=r.getLineCoordsCount(h);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var f=0,v=[],h=i.start;h<i.end;h++){var c=r.getLineCoords(h,o);t&&(s[f++]=c);for(var p=0;p<c;p++)v=e.dataToPoint(o[p],!1,v),s[f++]=v[0],s[f++]=v[1]}n.setLayout("linesPoints",s)}else for(var h=i.start;h<i.end;h++){var d=n.getItemModel(h),c=r.getLineCoords(h,o),g=[];if(t)for(var y=0;y<c;y++)g.push(e.dataToPoint(o[y]));else{g[0]=e.dataToPoint(o[0]),g[1]=e.dataToPoint(o[1]);var m=d.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(h,g)}}}}},PF=function(r){E(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(),h=u.painter.getType()==="svg";h||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!h&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&l&&(h||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(n);var f=t.get("clip",!0)&&dh(t.coordinateSystem,!1,t);f?this.group.setClipPath(f):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.updateTransform=function(t,a,i){var n=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=IT.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 IF:new ud(o?n?MF:MT:n?DT:ld),this._hasEffet=n,this._isPolyline=o,this._isLargeDraw=l,this.group.removeAll()),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.type="lines",e}(Ct),RF=typeof Uint32Array=="undefined"?Array:Uint32Array,EF=typeof Float64Array=="undefined"?Array:Float64Array;function PT(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(r.data=H(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),cf([i,t[0],t[1]])}))}var kF=function(r){E(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||[],PT(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(PT(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=py(this._flatCoords,a.flatCoords),this._flatCoordsOffset=py(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),typeof t[0]=="number"){for(var i=t.length,n=new RF(i),o=new EF(i),s=0,l=0,u=0,h=0;h<i;){u++;var f=t[h++];n[l++]=s+a,n[l++]=f;for(var v=0;v<f;v++){var c=t[h++],p=t[h++];o[s++]=c,o[s++]=p}}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 xe(["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"),h=[];return l!=null&&h.push(l),u!=null&&h.push(u),Jt("nameValue",{name:h.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.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",zlevel:0,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}(It);function Oh(r){return r instanceof Array||(r=[r,r]),r}var OF={seriesType:"lines",reset:function(r){var e=Oh(r.get("symbol")),t=Oh(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=Oh(s.getShallow("symbol",!0)),u=Oh(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}}};function NF(r){r.registerChartView(PF),r.registerSeriesModel(kF),r.registerLayout(IT),r.registerVisual(OF)}var BF=256,VF=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=rn();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"),h=this.pointSize+this.blurSize,f=this.canvas,v=f.getContext("2d"),c=e.length;f.width=t,f.height=a;for(var p=0;p<c;++p){var d=e[p],g=d[0],y=d[1],m=d[2],_=i(m);v.globalAlpha=_,v.drawImage(s,g-h,y-h)}if(!f.width||!f.height)return f;for(var S=v.getImageData(0,0,f.width,f.height),x=S.data,b=0,w=x.length,T=this.minOpacity,C=this.maxOpacity,M=C-T;b<w;){var _=x[b+3]/256,D=Math.floor(_*(BF-1))*4;if(_>0){var L=o(_)?l:u;_>0&&(_=_*M+T),x[b++]=L[D],x[b++]=L[D+1],x[b++]=L[D+2],x[b++]=L[D+3]*_*256}else b+=4}return v.putImageData(S,0,0),f},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=rn()),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}();function zF(r,e,t){var a=r[1]-r[0];e=H(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 FF(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 RT(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var GF=function(r){E(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.group.removeAll(),this._incrementalDisplayable=null;var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,i,0,t.getData().count()):RT(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&&(RT(o)?this.render(a,i,n):this._renderOnCartesianAndCalendar(a,n,t.start,t.end,!0))},e.prototype._renderOnCartesianAndCalendar=function(t,a,i,n,o){var s=t.coordinateSystem,l,u,h,f;if(ea(s,"cartesian2d")){var v=s.getAxis("x"),c=s.getAxis("y");l=v.getBandWidth(),u=c.getBandWidth(),h=v.scale.getExtent(),f=c.scale.getExtent()}for(var p=this.group,d=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),y=t.getModel(["blur","itemStyle"]).getItemStyle(),m=t.getModel(["select","itemStyle"]).getItemStyle(),_=ne(t),S=t.get(["emphasis","focus"]),x=t.get(["emphasis","blurScope"]),b=ea(s,"cartesian2d")?[d.mapDimension("x"),d.mapDimension("y"),d.mapDimension("value")]:[d.mapDimension("time"),d.mapDimension("value")],w=i;w<n;w++){var T=void 0,C=d.getItemVisual(w,"style");if(ea(s,"cartesian2d")){var M=d.get(b[0],w),D=d.get(b[1],w);if(isNaN(d.get(b[2],w))||M<h[0]||M>h[1]||D<f[0]||D>f[1])continue;var L=s.dataToPoint([M,D]);T=new pt({shape:{x:Math.floor(Math.round(L[0])-l/2),y:Math.floor(Math.round(L[1])-u/2),width:Math.ceil(l),height:Math.ceil(u)},style:C})}else{if(isNaN(d.get(b[1],w)))continue;T=new pt({z2:1,shape:s.dataToRect([d.get(b[0],w)]).contentShape,style:C})}var I=d.getItemModel(w);if(d.hasItemOption){var P=I.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),y=I.getModel(["blur","itemStyle"]).getItemStyle(),m=I.getModel(["select","itemStyle"]).getItemStyle(),S=P.get("focus"),x=P.get("blurScope"),_=ne(I)}var R=t.getRawValue(w),k="-";R&&R[2]!=null&&(k=R[2]+""),fe(T,_,{labelFetcher:t,labelDataIndex:w,defaultOpacity:C.opacity,defaultText:k}),T.ensureState("emphasis").style=g,T.ensureState("blur").style=y,T.ensureState("select").style=m,Lt(T,S,x),T.incremental=o,o&&(T.states.emphasis.hoverLayer=!0),p.add(T),d.setItemGraphicEl(w,T)}},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 VF;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var h=t.getViewRect().clone(),f=t.getRoamTransform();h.applyTransform(f);var v=Math.max(h.x,0),c=Math.max(h.y,0),p=Math.min(h.width+h.x,n.getWidth()),d=Math.min(h.height+h.y,n.getHeight()),g=p-v,y=d-c,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,T,C){var M=t.dataToPoint([w,T]);return M[0]-=v,M[1]-=c,M.push(C),M}),S=i.getExtent(),x=i.type==="visualMap.continuous"?FF(S,i.option.range):zF(S,i.getPieceList(),i.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},x);var b=new Zt({style:{width:g,height:y,x:v,y:c,image:u.canvas},silent:!0});this.group.add(b)},e.type="heatmap",e}(Ct),HF=function(r){E(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 Jr(this.getSource(),this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=as.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",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(It);function WF(r){r.registerChartView(GF),r.registerSeriesModel(HF)}var UF=["itemStyle","borderWidth"],ET=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Bd=new lr,YF=function(r){E(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(),h=u.isHorizontal(),f=l.master.getRect(),v={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:h,valueDim:ET[+h],categoryDim:ET[1-+h]};return o.diff(s).add(function(c){if(!!o.hasValue(c)){var p=FT(o,c),d=kT(o,c,p,v),g=GT(o,v,d);o.setItemGraphicEl(c,g),n.add(g),UT(g,v,d)}}).update(function(c,p){var d=s.getItemGraphicEl(p);if(!o.hasValue(c)){n.remove(d);return}var g=FT(o,c),y=kT(o,c,g,v),m=WT(o,y);d&&m!==d.__pictorialShapeStr&&(n.remove(d),o.setItemGraphicEl(c,null),d=null),d?JF(d,v,y):d=GT(o,v,y,!0),o.setItemGraphicEl(c,d),d.__pictorialSymbolMeta=y,n.add(d),UT(d,v,y)}).remove(function(c){var p=s.getItemGraphicEl(c);p&&HT(s,c,p.__pictorialSymbolMeta.animationModel,p)}).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){HT(n,Q(o).dataIndex,t,o)}):i.removeAll()},e.type="pictorialBar",e}(Ct);function kT(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,h=t.get("symbolPatternSize")||2,f=t.isAnimationEnabled(),v={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:h,rotation:u,animationModel:f?t:null,hoverScale:f&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};XF(t,n,i,a,v),$F(r,e,i,n,o,v.boundingLength,v.pxSign,h,a,v),ZF(t,v.symbolScale,u,a,v);var c=v.symbolSize,p=t.get("symbolOffset");return B(p)&&(p=[F(p[0],c[0]),F(p[1],c[1])]),qF(t,c,i,n,o,p,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,a,v),v}function XF(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),h;if(B(o)){var f=[Vd(s,o[0])-l,Vd(s,o[1])-l];f[1]<f[0]&&f.reverse(),h=f[u]}else o!=null?h=Vd(s,o)-l:e?h=a.coordSysExtent[n.index][u]-l:h=t[n.wh];i.boundingLength=h,e&&(i.repeatCutLength=t[n.wh]),i.pxSign=h>0?1:h<0?-1:0}function Vd(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function $F(r,e,t,a,i,n,o,s,l,u){var h=l.valueDim,f=l.categoryDim,v=Math.abs(t[f.wh]),c=r.getItemVisual(e,"symbolSize"),p;B(c)?p=c.slice():c==null?p=["100%","100%"]:p=[c,c],p[f.index]=F(p[f.index],v),p[h.index]=F(p[h.index],a?v:Math.abs(n)),u.symbolSize=p;var d=u.symbolScale=[p[0]/s,p[1]/s];d[h.index]*=(l.isHorizontal?-1:1)*o}function ZF(r,e,t,a,i){var n=r.get(UF)||0;n&&(Bd.attr({scaleX:e[0],scaleY:e[1],rotation:t}),Bd.updateTransform(),n/=Bd.getLineScale(),n*=e[a.valueDim.index]),i.valueLineWidth=n}function qF(r,e,t,a,i,n,o,s,l,u,h,f){var v=h.categoryDim,c=h.valueDim,p=f.pxSign,d=Math.max(e[c.index]+s,0),g=d;if(a){var y=Math.abs(l),m=ee(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=F(m,e[c.index]),x=Math.max(d+S*2,0),b=_?0:S*2,w=om(a),T=w?a:YT((y+b)/x),C=y-T*d;S=C/2/(_?T:T-1),x=d+S*2,b=_?0:S*2,!w&&a!=="fixed"&&(T=u?YT((Math.abs(u)+b)/x):0),g=T*x-b,f.repeatTimes=T,f.symbolMargin=S}var M=p*(g/2),D=f.pathPosition=[];D[v.index]=t[v.wh]/2,D[c.index]=o==="start"?M:o==="end"?l-M:l/2,n&&(D[0]+=n[0],D[1]+=n[1]);var L=f.bundlePosition=[];L[v.index]=t[v.xy],L[c.index]=t[c.xy];var I=f.barRectShape=V({},t);I[c.wh]=p*Math.max(Math.abs(t[c.wh]),Math.abs(D[c.index]+M)),I[v.wh]=t[v.wh];var P=f.clipShape={};P[v.xy]=-t[v.xy],P[v.wh]=h.ecSize[v.wh],P[c.xy]=0,P[c.wh]=t[c.wh]}function OT(r){var e=r.symbolPatternSize,t=Yt(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function NT(r,e,t,a){var i=r.__pictorialBundle,n=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,h=0,f=n[e.valueDim.index]+o+t.symbolMargin*2;for(zd(r,function(d){d.__pictorialAnimationIndex=h,d.__pictorialRepeatTimes=u,h<u?Kn(d,null,p(h),t,a):Kn(d,null,{scaleX:0,scaleY:0},t,a,function(){i.remove(d)}),h++});h<u;h++){var v=OT(t);v.__pictorialAnimationIndex=h,v.__pictorialRepeatTimes=u,i.add(v);var c=p(h);Kn(v,{x:c.x,y:c.y,scaleX:0,scaleY:0},{scaleX:c.scaleX,scaleY:c.scaleY,rotation:c.rotation},t,a)}function p(d){var g=s.slice(),y=t.pxSign,m=d;return(t.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-d),g[l.index]=f*(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 BT(r,e,t,a){var i=r.__pictorialBundle,n=r.__pictorialMainPath;n?Kn(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=OT(t),i.add(n),Kn(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 VT(r,e,t){var a=V({},e.barRectShape),i=r.__pictorialBarRect;i?Kn(i,null,{shape:a},e,t):(i=r.__pictorialBarRect=new pt({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),r.add(i))}function zT(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)dt(i,{shape:n},s,l);else{n[o.wh]=0,i=new pt({shape:n}),r.__pictorialBundle.setClipPath(i),r.__pictorialClipPath=i;var u={};u[o.wh]=t.clipShape[o.wh],qo[a?"updateProps":"initProps"](i,{shape:u},s,l)}}}function FT(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=KF,t.isAnimationEnabled=QF,t}function KF(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function QF(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function GT(r,e,t,a){var i=new q,n=new q;return i.add(n),i.__pictorialBundle=n,n.x=t.bundlePosition[0],n.y=t.bundlePosition[1],t.symbolRepeat?NT(i,e,t):BT(i,e,t),VT(i,t,a),zT(i,e,t,a),i.__pictorialShapeStr=WT(r,t),i.__pictorialSymbolMeta=t,i}function JF(r,e,t){var a=t.animationModel,i=t.dataIndex,n=r.__pictorialBundle;dt(n,{x:t.bundlePosition[0],y:t.bundlePosition[1]},a,i),t.symbolRepeat?NT(r,e,t,!0):BT(r,e,t,!0),VT(r,t,!0),zT(r,e,t,!0)}function HT(r,e,t,a){var i=a.__pictorialBarRect;i&&i.removeTextContent();var n=[];zd(a,function(o){n.push(o)}),a.__pictorialMainPath&&n.push(a.__pictorialMainPath),a.__pictorialClipPath&&(t=null),A(n,function(o){ga(o,{scaleX:0,scaleY:0},t,e,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(e,null)}function WT(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function zd(r,e,t){A(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&e.call(t,a)})}function Kn(r,e,t,a,i,n){e&&r.attr(e),a.symbolClip&&!i?t&&r.attr(t):t&&qo[i?"updateProps":"initProps"](r,t,a.animationModel,a.dataIndex,n)}function UT(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"),h=n.get("focus"),f=n.get("blurScope"),v=n.get("scale");zd(r,function(d){if(d instanceof Zt){var g=d.style;d.useStyle(V({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else d.useStyle(t.style);var y=d.ensureState("emphasis");y.style=o,v&&(y.scaleX=d.scaleX*1.1,y.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=t.z2});var c=e.valueDim.posDesc[+(t.boundingLength>0)],p=r.__pictorialBarRect;fe(p,ne(i),{labelFetcher:e.seriesModel,labelDataIndex:a,defaultText:zn(e.seriesModel.getData(),a),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:c}),Lt(r,h,f)}function YT(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}var jF=function(r){E(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=ya(Fs.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}(Fs);function tG(r){r.registerChartView(YF),r.registerSeriesModel(jF),r.registerLayout(j(QS,"pictorialBar"))}var eG=function(r){E(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"),h=u.rect,f=u.boundaryGap;s.x=0,s.y=h.y+f[0];function v(g){return g.name}var c=new Ca(this._layersSeries||[],l,v,v),p=[];c.add(U(d,this,"add")).update(U(d,this,"update")).remove(U(d,this,"remove")).execute();function d(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],x=[],b,w=l[y].indices,T=0;T<w.length;T++){var C=n.getItemLayout(w[T]),M=C.x,D=C.y0,L=C.y;S.push(M,D),x.push(M,D+L),b=n.getItemVisual(w[T],"style")}var I,P=n.getItemLayout(w[0]),R=t.getModel("label"),k=R.get("margin"),N=t.getModel("emphasis");if(g==="add"){var O=p[y]=new q;I=new Ux({shape:{points:S,stackedOnPoints:x,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),O.add(I),s.add(O),t.isAnimationEnabled()&&I.setClipPath(rG(I.getBoundingRect(),t,function(){I.removeClipPath()}))}else{var O=_[m];I=O.childAt(0),s.add(O),p[y]=O,dt(I,{shape:{points:S,stackedOnPoints:x}},t)}fe(I,ne(t),{labelDataIndex:w[T-1],defaultText:n.getName(w[T-1]),inheritColor:b.fill},{normal:{verticalAlign:"middle"}}),I.setTextConfig({position:null,local:!0});var G=I.getTextContent();G&&(G.x=P.x-k,G.y=P.y0+P.y/2),I.useStyle(b),n.setItemGraphicEl(y,I),oe(I,t),Lt(I,N.get("focus"),N.get("blurScope"))}this._layersSeries=l,this._layers=p},e.type="themeRiver",e}(Ct);function rG(r,e,t){var a=new pt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Nt(a,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},e,t),a}var Fd=2,aG=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.useColorPaletteOnData=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Hs(U(this.getData,this),U(this.getRawData,this))},e.prototype.fixData=function(t){var a=t.length,i={},n=uv(t,function(v){return i.hasOwnProperty(v[0]+"")||(i[v[0]+""]=-1),v[2]}),o=[];n.buckets.each(function(v,c){o.push({name:c,dataList:v})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,h=0;h<o[l].dataList.length;++h){var f=o[l].dataList[h][0]+"";i[f]=l}for(var f in i)i.hasOwnProperty(f)&&i[f]!==l&&(i[f]=l,t[a]=[f,0,u],a++)}return t},e.prototype.getInitialData=function(t,a){for(var i=this.getReferringComponents("singleAxis",Wt).models[0],n=i.get("type"),o=kt(t.data,function(p){return p[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=Z(),h=0,f=0;f<s.length;++f)l.push(s[f][Fd]),u.get(s[f][Fd])||(u.set(s[f][Fd],h),h++);var v=Ls(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:qu(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),c=new xe(v,this);return c.initData(s),c},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=uv(i,function(u){return t.get("name",u)}),l=[];return s.buckets.each(function(u,h){u.sort(function(f,v){return t.get(o,f)-t.get(o,v)}),l.push({name:h,indices:u})}),l},e.prototype.getAxisTooltipData=function(t,a,i){B(t)||(t=t?[t]:[]);for(var n=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,h=0;h<l;++h){for(var f=Number.MAX_VALUE,v=-1,c=o[h].indices.length,p=0;p<c;++p){var d=n.get(t[0],o[h].indices[p]),g=Math.abs(d-a);g<=f&&(u=d,f=g,v=o[h].indices[p])}s.push(v)}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 Jt("nameValue",{name:o,value:s})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(It);function iG(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]=F(s[0],o.height),s[1]=F(s[1],o.height);var u=o.height-s[0]-s[1];XT(a,t,u)}else{s[0]=F(s[0],o.width),s[1]=F(s[1],o.width);var h=o.width-s[0]-s[1];XT(a,t,h)}a.setLayout("layoutInfo",n)})}function XT(r,e,t){if(!!r.count())for(var a=e.coordinateSystem,i=e.getLayerSeries(),n=r.mapDimension("single"),o=r.mapDimension("value"),s=H(i,function(g){return H(g.indices,function(y){var m=a.dataToPoint(r.get(n,y));return m[1]=r.get(o,y),m})}),l=nG(s),u=l.y0,h=t/l.max,f=i.length,v=i[0].indices.length,c,p=0;p<v;++p){c=u[p]*h,r.setItemLayout(i[0].indices[p],{layerIndex:0,x:s[0][p][0],y0:c,y:s[0][p][1]*h});for(var d=1;d<f;++d)c+=s[d-1][p][1]*h,r.setItemLayout(i[d].indices[p],{layerIndex:d,x:s[d][p][0],y0:c,y:s[d][p][1]*h})}}function nG(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 h=0;h<t;++h){var f=a[h]+i[h];f>n&&(n=f)}return{y0:i,max:n}}function oG(r){r.registerChartView(eG),r.registerSeriesModel(aG),r.registerLayout(iG),r.registerProcessor(Gs("themeRiver"))}var sG=2,lG=4,$T=function(r){E(e,r);function e(t,a,i,n){var o=r.call(this)||this;o.z2=sG,o.textConfig={inside:!0},Q(o).seriesIndex=a.seriesIndex;var s=new gt({z2:lG,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;Q(s).dataIndex=a.dataIndex;var l=a.getModel(),u=l.getModel("emphasis"),h=a.getLayout(),f=V({},h);f.label=null;var v=a.getVisual("style");v.lineJoin="bevel";var c=a.getVisual("decal");c&&(v.decal=ps(c,o));var p=Gn(l.getModel("itemStyle"),f);V(f,p),A(Ee,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var x=Gn(S,f);x&&(_.shape=x)}),t?(s.setShape(f),s.shape.r=h.r0,dt(s,{shape:{r:h.r}},i,a.dataIndex)):dt(s,{shape:f},i),s.useStyle(v),this._updateLabel(i);var d=l.getShallow("cursor");d&&s.attr("cursor",d),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;Lt(this,y,u.get("blurScope"))},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),h=Math.sin(l),f=this,v=f.getTextContent(),c=this.node.dataIndex,p=n.get("minAngle")/180*Math.PI,d=n.get("show")&&!(p!=null&&Math.abs(s)<p);v.ignore=!d,A(Bo,function(y){var m=y==="normal"?i.getModel("label"):i.getModel([y,"label"]),_=y==="normal",S=_?v:v.ensureState(y),x=t.getFormattedLabel(c,y);_&&(x=x||a.node.name),S.style=Ft(m,{},null,y!=="normal",!0),x&&(S.style.text=x);var b=m.get("show");b!=null&&!_&&(S.ignore=!b);var w=g(m,"position"),T=_?f:f.states[y],C=T.style.fill;T.textConfig={outsideFill:m.get("color")==="inherit"?C:null,inside:w!=="outside"};var M,D=g(m,"distance")||0,L=g(m,"align");w==="outside"?(M=o.r+D,L=l>Math.PI/2?"right":"left"):!L||L==="center"?(M=(o.r+o.r0)/2,L="center"):L==="left"?(M=o.r0+D,l>Math.PI/2&&(L="right")):L==="right"&&(M=o.r-D,l>Math.PI/2&&(L="left")),S.style.align=L,S.style.verticalAlign=g(m,"verticalAlign")||"middle",S.x=M*u+o.cx,S.y=M*h+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)):typeof I=="number"&&(P=I*Math.PI/180),S.rotation=P});function g(y,m){var _=y.get(m);return _==null?n.get(m):_}v.dirtyStyle()},e}(De),Gd="sunburstRootToNode",ZT="sunburstHighlight",uG="sunburstUnhighlight";function hG(r){r.registerAction({type:Gd,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i,n){var o=Zs(e,[Gd],i);if(o){var s=i.getViewRoot();s&&(e.direction=Up(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),r.registerAction({type:ZT,update:"none"},function(e,t,a){e=V({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},i);function i(n){var o=Zs(e,[ZT],n);o&&(e.dataIndex=o.node.dataIndex)}a.dispatchAction(V(e,{type:"highlight"}))}),r.registerAction({type:uG,update:"updateView"},function(e,t,a){e=V({},e),a.dispatchAction(V(e,{type:"downplay"}))})}var fG=function(r){E(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(),h=this.group,f=t.get("renderLabelForZeroData"),v=[];u.eachNode(function(m){v.push(m)});var c=this._oldChildren||[];p(v,c),y(l,u),this._initEvents(),this._oldChildren=v;function p(m,_){if(m.length===0&&_.length===0)return;new Ca(_,m,S,S).add(x).update(x).remove(j(x,null)).execute();function S(b){return b.getId()}function x(b,w){var T=b==null?null:m[b],C=w==null?null:_[w];d(T,C)}}function d(m,_){if(!f&&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 $T(m,t,a,i);h.add(S),s.setItemGraphicEl(m.dataIndex,S)}}}function g(m){!m||m.piece&&(h.remove(m.piece),m.piece=null)}function y(m,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,t,a,i):(o.virtualPiece=new $T(m,t,a,i),h.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(h.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 h=l.get("target",!0)||"_blank";bu(u,h)}}i=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Gd,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}(Ct),vG=function(r){E(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};qT(i);var n=H(t.levels||[],function(l){return new xt(l,this,a)},this),o=Wp.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,h){var f=o.getNodeByDataIndex(h),v=n[f.depth];return v&&(u.parentModel=v),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=Yp(i,this),a},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(){aw(this)},e.type="series.sunburst",e.defaultOption={zlevel:0,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:[],levels:[],sort:"desc"},e}(It);function qT(r){var e=0;A(r.children,function(a){qT(a);var i=a.value;B(i)&&(i=i[0]),e+=i});var t=r.value;B(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),B(r.value)?r.value[0]=t:r.value=t}var KT=Math.PI/180;function cG(r,e,t){e.eachSeriesByType(r,function(a){var i=a.get("center"),n=a.get("radius");B(n)||(n=[0,n]),B(i)||(i=[i,i]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=F(i[0],o),h=F(i[1],s),f=F(n[0],l/2),v=F(n[1],l/2),c=-a.get("startAngle")*KT,p=a.get("minAngle")*KT,d=a.getData().tree.root,g=a.getViewRoot(),y=g.depth,m=a.get("sort");m!=null&&QT(g,m);var _=0;A(g.children,function(k){!isNaN(k.getValue())&&_++});var S=g.getValue(),x=Math.PI/(S||_)*2,b=g.depth>0,w=g.height-(b?-1:1),T=(v-f)/(w||1),C=a.get("clockwise"),M=a.get("stillShowZeroSum"),D=C?1:-1,L=function(k,N){if(!!k){var O=N;if(k!==d){var G=k.getValue(),z=S===0&&M?x:G*x;z<p&&(z=p),O=N+D*z;var W=k.depth-y-(b?-1:1),K=f+T*W,_t=f+T*(W+1),mt=k.getModel();mt.get("r0")!=null&&(K=F(mt.get("r0"),l/2)),mt.get("r")!=null&&(_t=F(mt.get("r"),l/2)),k.setLayout({angle:z,startAngle:N,endAngle:O,clockwise:C,cx:u,cy:h,r0:K,r:_t})}if(k.children&&k.children.length){var ut=0;A(k.children,function(tt){ut+=L(tt,N+ut)})}return O-N}};if(b){var I=f,P=f+T,R=Math.PI*2;d.setLayout({angle:R,startAngle:c,endAngle:c+R,clockwise:C,cx:u,cy:h,r0:I,r:P})}L(g,c)})}function QT(r,e){var t=r.children||[];r.children=pG(t,e),t.length&&A(r.children,function(a){QT(a,e)})}function pG(r,e){if(typeof e=="function"){var t=H(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)}),H(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 dG(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&&typeof s=="string"&&(s=Ly(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 gG(r){r.registerChartView(fG),r.registerSeriesModel(vG),r.registerLayout(j(cG,"sunburst")),r.registerProcessor(j(Gs,"sunburst")),r.registerVisual(dG),hG(r)}function yG(r,e){return e=e||[0,0],H(["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 mG(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:U(yG,r)}}}function _G(r,e){return e=e||[0,0],H([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 SG(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:U(_G,r)}}}function xG(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 bG(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:U(xG,r)}}}function wG(r,e){return e=e||[0,0],H(["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 TG(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:U(wG,r)}}}function AG(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 JT(r,e,t,a){return r&&(r.legacy||r.legacy!==!1&&!t&&!a&&e!=="tspan"&&(e==="text"||Y(r,"text")))}function jT(r,e,t){var a=r,i,n,o;if(e==="text")o=a;else{o={},Y(a,"text")&&(o.text=a.text),Y(a,"rich")&&(o.rich=a.rich),Y(a,"textFill")&&(o.fill=a.textFill),Y(a,"textStroke")&&(o.stroke=a.textStroke),n={type:"text",style:o,silent:!0},i={};var s=Y(a,"textPosition");t?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),Y(a,"textPosition")&&(i.position=a.textPosition),Y(a,"textOffset")&&(i.offset=a.textOffset),Y(a,"textRotation")&&(i.rotation=a.textRotation),Y(a,"textDistance")&&(i.distance=a.textDistance)}return tA(o,r),A(o.rich,function(l){tA(l,l)}),{textConfig:i,textContent:n}}function tA(r,e){!e||(e.font=e.textFont||e.font,Y(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),Y(e,"textAlign")&&(r.align=e.textAlign),Y(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),Y(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),Y(e,"textWidth")&&(r.width=e.textWidth),Y(e,"textHeight")&&(r.height=e.textHeight),Y(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),Y(e,"textPadding")&&(r.padding=e.textPadding),Y(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),Y(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),Y(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),Y(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),Y(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),Y(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),Y(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function eA(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";rA(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){rA(s,s)}),a}function rA(r,e){!e||(Y(e,"fill")&&(r.textFill=e.fill),Y(e,"stroke")&&(r.textStroke=e.fill),Y(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),Y(e,"font")&&(r.font=e.font),Y(e,"fontStyle")&&(r.fontStyle=e.fontStyle),Y(e,"fontWeight")&&(r.fontWeight=e.fontWeight),Y(e,"fontSize")&&(r.fontSize=e.fontSize),Y(e,"fontFamily")&&(r.fontFamily=e.fontFamily),Y(e,"align")&&(r.textAlign=e.align),Y(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),Y(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),Y(e,"width")&&(r.textWidth=e.width),Y(e,"height")&&(r.textHeight=e.height),Y(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),Y(e,"padding")&&(r.textPadding=e.padding),Y(e,"borderColor")&&(r.textBorderColor=e.borderColor),Y(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),Y(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),Y(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),Y(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),Y(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),Y(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),Y(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),Y(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),Y(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),Y(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var Or=Ar.CMD,aA=Math.PI*2,CG=["x","y"],DG=["width","height"],Nr=[];function iA(r,e){return Math.abs(r-e)<1e-5}function nA(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 h(I,P,R,k){iA(I,R)&&iA(P,k)||i.push(I,P,R,k,R,k)}function f(I,P,R,k,N,O){var G=Math.abs(P-I),z=Math.tan(G/4)*4/3,W=P<I?-1:1,K=Math.cos(I),_t=Math.sin(I),mt=Math.cos(P),ut=Math.sin(P),tt=K*N+R,bt=_t*O+k,it=mt*N+R,Dt=ut*O+k,Vt=N*z*W,Kt=O*z*W;i.push(tt-Vt*_t,bt+Kt*K,it+Vt*ut,Dt-Kt*mt,it,Dt)}for(var v,c,p,d,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:v=e[g++],c=e[g++],h(n,o,v,c),n=v,o=c;break;case Or.C:i.push(e[g++],e[g++],e[g++],e[g++],n=e[g++],o=e[g++]);break;case Or.Q:v=e[g++],c=e[g++],p=e[g++],d=e[g++],i.push(n+2/3*(v-n),o+2/3*(c-o),p+2/3*(v-p),d+2/3*(c-d),p,d),n=p,o=d;break;case Or.A:var _=e[g++],S=e[g++],x=e[g++],b=e[g++],w=e[g++],T=e[g++]+w;g+=1;var C=!e[g++];v=Math.cos(w)*x+_,c=Math.sin(w)*b+S,m?(s=v,l=c,u(s,l)):h(n,o,v,c),n=Math.cos(T)*x+_,o=Math.sin(T)*b+S;for(var M=(C?-1:1)*Math.PI/2,D=w;C?D>T:D<T;D+=M){var L=C?Math.max(D+M,T):Math.min(D+M,T);f(D,L,_,S,x,b)}break;case Or.R:s=n=e[g++],l=o=e[g++],v=s+e[g++],c=l+e[g++],u(v,l),h(v,l,v,c),h(v,c,s,c),h(s,c,s,l),h(s,l,v,l);break;case Or.Z:i&&h(n,o,s,l),n=s,o=l;break}}return i&&i.length>2&&a.push(i),a}function MG(r,e){var t=r.length,a=e.length;if(t===a)return[r,e];for(var i=t<a?r:e,n=Math.min(t,a),o=Math.abs(a-t)/6,s=(n-2)/6,l=Math.ceil(o/s)+1,u=[i[0],i[1]],h=o,f=[],v=[],c=2;c<n;){var p=i[c-2],d=i[c-1],g=i[c++],y=i[c++],m=i[c++],_=i[c++],S=i[c++],x=i[c++];if(h<=0){u.push(g,y,m,_,S,x);continue}for(var b=Math.min(h,l-1)+1,w=1;w<=b;w++){var T=w/b;cn(p,g,m,S,T,f),cn(d,y,_,x,T,v),p=f[3],d=v[3],u.push(f[1],v[1],f[2],v[2],p,d),g=f[5],y=v[5],m=f[6],_=v[6]}h-=b-1}return i===r?[u,e]:[r,u]}function oA(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 LG(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],h=void 0,f=void 0;l?u?(t=MG(l,u),h=t[0],f=t[1],a=h,i=f):(f=oA(i||l,l),h=l):(h=oA(a||u,u),f=u),n.push(h),o.push(f)}return[n,o]}function sA(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],h=r[n+1],f=s*h-u*l;e+=f,t+=(s+u)*f,a+=(l+h)*f}return e===0?[r[0]||0,r[1]||0]:[t/e/3,a/e/3,e]}function IG(r,e,t,a){for(var i=(r.length-2)/6,n=Infinity,o=0,s=r.length,l=s-2,u=0;u<i;u++){for(var h=u*6,f=0,v=0;v<s;v+=2){var c=v===0?h:(h+v-2)%l+2,p=r[c]-t[0],d=r[c+1]-t[1],g=e[v]-a[0],y=e[v+1]-a[1],m=g-p,_=y-d;f+=m*m+_*_}f<n&&(n=f,o=u)}return o}function PG(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 RG(r,e,t,a){for(var i=[],n,o=0;o<r.length;o++){var s=r[o],l=e[o],u=sA(s),h=sA(l);n==null&&(n=u[2]<0!=h[2]<0);var f=[],v=[],c=0,p=Infinity,d=[],g=s.length;n&&(s=PG(s));for(var y=IG(s,l,u,h)*6,m=g-2,_=0;_<m;_+=2){var S=(y+_)%m+2;f[_+2]=s[S]-u[0],f[_+3]=s[S+1]-u[1]}if(f[0]=s[y]-u[0],f[1]=s[y+1]-u[1],t>0)for(var x=a/t,b=-a/2;b<=a/2;b+=x){for(var w=Math.sin(b),T=Math.cos(b),C=0,_=0;_<s.length;_+=2){var M=f[_],D=f[_+1],L=l[_]-h[0],I=l[_+1]-h[1],P=L*T-I*w,R=L*w+I*T;d[_]=P,d[_+1]=R;var k=P-M,N=R-D;C+=k*k+N*N}if(C<p){p=C,c=b;for(var O=0;O<d.length;O++)v[O]=d[O]}}else for(var G=0;G<g;G+=2)v[G]=l[G]-h[0],v[G+1]=l[G+1]-h[1];i.push({from:f,to:v,fromCp:u,toCp:h,rotation:-c})}return i}function Hd(r,e,t){var a,i;if(!r||!e)return e;!r.path&&r.createPathProxy(),a=r.path,a.beginPath(),r.buildPath(a,r.shape),!e.path&&e.createPathProxy(),i=e.path,i===a&&(i=new Ar(!1)),i.beginPath(),Nh(e)?e.__oldBuildPath(i,e.shape):e.buildPath(i,e.shape);var n=LG(nA(a),nA(i)),o=n[0],s=n[1],l=RG(o,s,10,Math.PI);kG(e,l,0);var u=t&&t.done,h=t&&t.aborted,f=t&&t.during;return e.animateTo({__morphT:1},X({during:function(v){e.dirtyShape(),f&&f(v)},done:function(){OG(e),e.createPathProxy(),e.dirtyShape(),u&&u()},aborted:function(){h&&h()}},t)),e}function EG(r){for(var e=this.__morphingData,t=this.__morphT,a=1-t,i=[],n=0;n<e.length;n++){var o=e[n],s=o.from,l=o.to,u=o.rotation*t,h=o.fromCp,f=o.toCp,v=Math.sin(u),c=Math.cos(u);_l(i,h,f,t);for(var p=0;p<s.length;p+=2){var d=s[p],g=s[p+1],y=l[p],m=l[p+1],_=d*a+y*t,S=g*a+m*t;Nr[p]=_*c-S*v+i[0],Nr[p+1]=_*v+S*c+i[1]}for(var p=0;p<s.length;)p===0&&r.moveTo(Nr[p++],Nr[p++]),r.bezierCurveTo(Nr[p++],Nr[p++],Nr[p++],Nr[p++],Nr[p++],Nr[p++])}}function kG(r,e,t){if(Nh(r)){lA(r,e,t);return}var a=r;a.__oldBuildPath=a.buildPath,a.buildPath=EG,lA(a,e,t)}function lA(r,e,t){r.__morphingData=e,r.__morphT=t}function OG(r){Nh(r)&&(r.buildPath=r.__oldBuildPath,r.__oldBuildPath=r.__morphingData=null)}function Nh(r){return r.__oldBuildPath!=null}function Qn(r){return!!r.__combiningSubList}function NG(r){return Nh(r)||Qn(r)}function uA(r,e,t,a){for(var i=[],n=0,o=0;o<r.length;o++){var s=r[o];if(Qn(s)){for(var l=s.__combiningSubList,u=0;u<l.length;u++)i.push(l[u]);n+=l.length}else i.push(s),n++}if(!!n){var h=t?t.dividingMethod:null,f=Yd(e,n,h);de(f.length===n);for(var v=t&&t.done,c=t&&t.aborted,p=t&&t.during,d=0,g=!1,y=X({during:function(S){p&&p(S)},done:function(){d++,d===f.length&&(VG(e),v&&v())},aborted:function(){g||(g=!0,c&&c())}},t),o=0;o<n;o++){var m=i[o],_=f[o];a&&a(e,_,!0),Hd(m,_,y)}return BG(e,f),{fromIndividuals:i,toIndividuals:f,count:n}}}function BG(r,e){if(Qn(r)){Wd(r,e);return}var t=r;Wd(t,e),t.__oldAddSelfToZr=r.addSelfToZr,t.__oldRemoveSelfFromZr=r.removeSelfFromZr,t.addSelfToZr=zG,t.removeSelfFromZr=FG,t.__oldBuildPath=t.buildPath,t.buildPath=nr,t.childrenRef=GG}function VG(r){if(!!Qn(r)){var e=r;Wd(e,null),e.addSelfToZr=e.__oldAddSelfToZr,e.removeSelfFromZr=e.__oldRemoveSelfFromZr,e.buildPath=e.__oldBuildPath,e.childrenRef=e.__combiningSubList=e.__oldAddSelfToZr=e.__oldRemoveSelfFromZr=e.__oldBuildPath=null}}function Wd(r,e){if(r.__combiningSubList!==e){if(Ud(r,"removeSelfFromZr"),r.__combiningSubList=e,e)for(var t=0;t<e.length;t++)e[t].parent=r;Ud(r,"addSelfToZr")}}function zG(r){this.__oldAddSelfToZr(r),Ud(this,"addSelfToZr")}function Ud(r,e){var t=r.__combiningSubList,a=r.__zr;if(t&&a)for(var i=0;i<t.length;i++){var n=t[i];n[e](a)}}function FG(r){this.__oldRemoveSelfFromZr(r);for(var e=this.__combiningSubList,t=0;t<e.length;t++){var a=e[t];a.removeSelfFromZr(r)}}function GG(){return this.__combiningSubList}function HG(r,e,t,a){var i=e.length,n,o=t?t.dividingMethod:null,s=!1;if(Qn(r)){var l=r.__combiningSubList;l.length===i?n=l:(n=Yd(r,i,o),s=!0)}else n=Yd(r,i,o),s=!0;de(n.length===i);for(var u=0;u<i;u++)s&&a&&a(r,n[u],!1),Hd(n[u],e[u],t);return{fromIndividuals:n,toIndividuals:e,count:i}}function Yd(r,e,t){return t==="duplicate"?Xd(r,e):WG(r,e)}function WG(r,e){var t=[];if(e<=0)return t;if(e===1)return Xd(r,e);if(r instanceof pt)for(var a=r.shape,i=a.height>a.width?1:0,n=DG[i],o=CG[i],s=a[n]/e,l=a[o],u=0;u<e;u++,l+=s){var h={x:a.x,y:a.y,width:a.width,height:a.height};h[o]=l,h[n]=u<e-1?s:a[o]+a[n]-l;var f=new pt({shape:h});t.push(f)}else if(r instanceof De)for(var a=r.shape,v=a.clockwise,c=a.startAngle,p=a.endAngle,d=UG(c,a.endAngle,v),g=(d-c)/e,y=c,u=0;u<e;u++,y+=g){var f=new De({shape:{cx:a.cx,cy:a.cy,r:a.r,r0:a.r0,clockwise:v,startAngle:y,endAngle:u===e-1?p:y+g}});t.push(f)}else return Xd(r,e);return t}function Xd(r,e){var t=[];if(e<=0)return t;for(var a=r.constructor,i=0;i<e;i++){var n=new a({shape:$(r.shape)});t.push(n)}return t}function UG(r,e,t){return e+aA*Math[t?"ceil":"floor"]((r-e)/aA)}var rr=At(),YG={x:1,y:1,scaleX:1,scaleY:1,originX:1,originY:1,rotation:1};St(YG).join(", ");var hA={color:"fill",borderColor:"stroke"},XG={symbol:1,symbolSize:1,symbolKeepAspect:1,legendSymbol:1,visualMeta:1,liftZ:1,decal:1},aa="emphasis",Oa="normal",$d="blur",Zd="select",Na=[Oa,aa,$d,Zd],qd={normal:["itemStyle"],emphasis:[aa,"itemStyle"],blur:[$d,"itemStyle"],select:[Zd,"itemStyle"]},Kd={normal:["label"],emphasis:[aa,"label"],blur:[$d,"label"],select:[Zd,"label"]},$G="e\0\0",ar={normal:{},emphasis:{},blur:{},select:{}},ZG={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Ki=new Ur,qG={cartesian2d:mG,geo:SG,singleAxis:bG,polar:TG,calendar:AG},KG=function(r){E(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 Jr(this.getSource(),this)},e.prototype.getDataParams=function(t,a,i){var n=r.prototype.getDataParams.call(this,t,a);return i&&(n.info=rr(i).info),n},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,clip:!1},e}(It),QG=function(r){E(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._data,s=t.getData(),l=this.group,u=pA(t,s,a,i),h=t.__transientTransitionOpt;if(h&&(h.from==null||h.to==null))o&&o.each(function(p){zh(o.getItemGraphicEl(p),t,l)}),s.each(function(p){Jn(i,null,p,u(p,n),t,l,s,null)});else{var f=new v3(t,h),v=h?"multiple":"oneToOne";new Ca(o?o.getIndices():[],s.getIndices(),fA(o,v,h&&h.from),fA(s,v,h&&h.to),null,v).add(function(p){Jn(i,null,p,u(p,n),t,l,s,null)}).remove(function(p){zh(o.getItemGraphicEl(p),t,l)}).update(function(p,d){f.reset("oneToOne");var g=o.getItemGraphicEl(d);f.findAndAddFrom(g),f.hasFrom()&&(Fh(g,l),g=null),Jn(i,g,p,u(p,n),t,l,s,f),f.applyMorphing()}).updateManyToOne(function(p,d){f.reset("manyToOne");for(var g=0;g<d.length;g++){var y=o.getItemGraphicEl(d[g]);f.findAndAddFrom(y),Fh(y,l)}Jn(i,null,p,u(p,n),t,l,s,f),f.applyMorphing()}).updateOneToMany(function(p,d){f.reset("oneToMany");var g=p.length,y=o.getItemGraphicEl(d);f.findAndAddFrom(y),Fh(y,l);for(var m=0;m<g;m++)Jn(i,null,p[m],u(p[m],n),t,l,s,f);f.applyMorphing()}).execute()}var c=t.get("clip",!0)?dh(t.coordinateSystem,!1,t):null;c?l.setClipPath(c):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=pA(a,s,i,n);function u(v){v.isGroup||(v.incremental=!0,v.ensureState("emphasis").hoverLayer=!0)}for(var h=t.start;h<t.end;h++){var f=Jn(null,null,h,l(h,o),a,this.group,s,null);f.traverse(u)}},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}(Ct);function fA(r,e,t){if(!!r){if(e==="oneToOne")return function(s,l){return r.getId(l)};var a=r.getDimension(t),i=r.getDimensionInfo(a);if(!i){var n="";yt(n)}var o=i.ordinalMeta;return function(s,l){var u=r.get(a,l);return o&&(u=o.categories[u]),u==null||lo(u)?s+"":"_ec_"+u}}}function Qd(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=_A(a);t=lu(n,null,i,a.layout||"center"),rr(t).customPathData=n}else if(e==="image")t=new Zt({}),rr(t).customImagePath=r.style.image;else if(e==="text")t=new gt({});else if(e==="group")t=new q;else{if(e==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=Wv(e);if(!o){var s="";yt(s)}t=new o}return rr(t).customGraphicType=e,t.name=r.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function Jd(r,e,t,a,i,n,o,s,l,u){var h={},f={},v=e.isGroup?null:e;!t&&Bh("shape",e,null,i,h,l),vA("shape",i,f),!t&&Bh("extra",e,null,i,h,l),vA("extra",i,f),!t&&tg(e,null,i,h,l),JG(i,f);var c=o&&o.normal.cfg;if(c&&e.setTextConfig(c),e.type==="text"&&n){var p=n;Y(p,"textFill")&&(p.fill=p.textFill),Y(p,"textStroke")&&(p.stroke=p.textStroke)}if(n){var d=void 0,g=SA(e)?n.decal:null;r&&g&&(g.dirty=!0,d=ps(g,r)),n.__decalPattern=d}return!t&&eg(e,null,i,n,h,l),v&&Y(i,"invisible")&&(v.invisible=i.invisible),t||(nl(e,f,n),jd(e,a,i,s,h,l)),Y(i,"silent")&&(e.silent=i.silent),Y(i,"ignore")&&(e.ignore=i.ignore),u||Y(i,"info")&&(rr(e).info=i.info),n?e.dirty():e.markRedraw(),t?f:null}function nl(r,e,t){var a=r.isGroup?null:r;if(a&&t){var i=t.__decalPattern,n=void 0;i&&(n=t.decal,t.decal=i),a.useStyle(t),i&&(t.decal=n);for(var o=a.animators,s=0;s<o.length;s++){var l=o[s];l.targetName==="style"&&l.changeTarget(a.style)}}e&&r.attr(e)}function jd(r,e,t,a,i,n){if(i){var o=t.during;rr(r).userDuring=o;var s=o?U(r3,{el:r,userDuring:o}):null,l={dataIndex:e,isFrom:!0,during:s};n?Nt(r,i,a,l):dt(r,i,a,l)}}function Bh(r,e,t,a,i,n){var o=a[r];if(!!o){var s=e[r],l,u=o.enterFrom;if(n&&u){!l&&(l=i[r]={});for(var h=St(u),f=0;f<h.length;f++){var v=h[f];l[v]=u[v]}}if(!n&&s&&!(t!=null&&r==="shape")){if(o.transition){!l&&(l=i[r]={});for(var c=Rt(o.transition),f=0;f<c.length;f++){var v=c[f],p=s[v];l[v]=p}}else if(lt(a.transition,r)>=0){!l&&(l=i[r]={});for(var d=St(s),f=0;f<d.length;f++){var v=d[f],p=s[v];t3(o[v],p)&&(l[v]=p)}}}var g=o.leaveTo;if(g)for(var y=rg(e),m=y[r]||(y[r]={}),_=St(g),f=0;f<_.length;f++){var v=_[f];m[v]=g[v]}}}function vA(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]=mo(a[s])}}function tg(r,e,t,a,i){var n=t.enterFrom;if(i&&n)for(var o=St(n),s=0;s<o.length;s++){var l=o[s];a[l]=n[l]}if(!i)if(e){var u=jG(e,r);ia(a,"x",u),ia(a,"y",u),ia(a,"scaleX",u),ia(a,"scaleY",u),ia(a,"originX",u),ia(a,"originY",u),ia(a,"rotation",u)}else if(t.transition)for(var h=Rt(t.transition),s=0;s<h.length;s++){var l=h[s];if(!(l==="style"||l==="shape"||l==="extra")){var f=r[l];a[l]=f}}else ia(a,"x",r),ia(a,"y",r);var v=t.leaveTo;if(v)for(var c=rg(r),p=St(v),s=0;s<p.length;s++){var l=p[s];c[l]=v[l]}}function JG(r,e){ag(r,e,"position"),ag(r,e,"scale"),ag(r,e,"origin"),Qi(r,e,"x"),Qi(r,e,"y"),Qi(r,e,"scaleX"),Qi(r,e,"scaleY"),Qi(r,e,"originX"),Qi(r,e,"originY"),Qi(r,e,"rotation")}function eg(r,e,t,a,i,n){if(!!a){var o=e||r,s=o.style,l,u=a.enterFrom;if(n&&u){var h=St(u);!l&&(l=i.style={});for(var f=0;f<h.length;f++){var v=h[f];l[v]=u[v]}}if(!n&&s){if(a.transition){var c=Rt(a.transition);!l&&(l=i.style={});for(var f=0;f<c.length;f++){var v=c[f],p=s[v];l[v]=p}}else if(r.getAnimationStyleProps&&lt(t.transition,"style")>=0){var d=r.getAnimationStyleProps(),g=d?d.style:null;if(g){!l&&(l=i.style={});for(var y=St(a),f=0;f<y.length;f++){var v=y[f];if(g[v]){var p=s[v];l[v]=p}}}}}var m=a.leaveTo;if(m)for(var _=St(m),S=rg(r),x=S.style||(S.style={}),f=0;f<_.length;f++){var v=_[f];x[v]=m[v]}}}function jG(r,e){if(!r||r===e||r.parent===e.parent)return r;var t=Ki.transform||(Ki.transform=nn([])),a=r.getComputedTransform();a?co(t,a):nn(t);var i=e.parent;return i&&i.getComputedTransform(),Ki.originX=r.originX,Ki.originY=r.originY,Ki.parent=i,Ki.decomposeTransform(),Ki}function t3(r,e){return Te(r)?r!==e:r!=null&&isFinite(r)}function rg(r){var e=rr(r);return e.leaveToProps||(e.leaveToProps={})}var se={},e3={setTransform:function(r,e){return se.el[r]=e,this},getTransform:function(r){return se.el[r]},setShape:function(r,e){var t=se.el.shape||(se.el.shape={});return t[r]=e,se.isShapeDirty=!0,this},getShape:function(r){var e=se.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=se.el.style;return t&&(t[r]=e,se.isStyleDirty=!0),this},getStyle:function(r){var e=se.el.style;if(e)return e[r]},setExtra:function(r,e){var t=se.el.extra||(se.el.extra={});return t[r]=e,this},getExtra:function(r){var e=se.el.extra;if(e)return e[r]}};function r3(){var r=this,e=r.el;if(!!e){var t=rr(e).userDuring,a=r.userDuring;if(t!==a){r.el=r.userDuring=null;return}se.el=e,se.isShapeDirty=!1,se.isStyleDirty=!1,a(e3),se.isShapeDirty&&e.dirtyShape&&e.dirtyShape(),se.isStyleDirty&&e.dirtyStyle&&e.dirtyStyle()}}function cA(r,e,t,a,i,n,o){var s=e.isGroup?null:e,l=i&&i[r].cfg;if(s){var u=s.ensureState(r);if(a===!1){var h=s.getState(r);h&&(h.style=null)}else u.style=a||null;l&&(u.textConfig=l),_i(s)}}function a3(r,e,t,a){if(!r.isGroup){var i=r,n=t.currentZ,o=t.currentZLevel;i.z=n,i.zlevel=o;var s=e.z2;s!=null&&(i.z2=s||0);for(var l=0;l<Na.length;l++)i3(i,e,Na[l])}}function i3(r,e,t){var a=t===Oa,i=a?e:Vh(e,t),n=i?i.z2:null,o;n!=null&&(o=a?r:r.ensureState(t),o.z2=n||0)}function ag(r,e,t,a){var i=r[t],n=ZG[t];i&&(a?(e[n[0]]=a[n[0]],e[n[1]]=a[n[1]]):(e[n[0]]=i[0],e[n[1]]=i[1]))}function Qi(r,e,t,a){r[t]!=null&&(e[t]=a?a[t]:r[t])}function ia(r,e,t){t&&(r[e]=t[e])}function pA(r,e,t,a){var i=r.get("renderItem"),n=r.coordinateSystem,o={};n&&(o=n.prepareCustoms?n.prepareCustoms(n):qG[n.type](n));for(var s=X({getWidth:a.getWidth,getHeight:a.getHeight,getZr:a.getZr,getDevicePixelRatio:a.getDevicePixelRatio,value:S,style:b,ordinalRawValue:x,styleEmphasis:w,visual:M,barLayout:D,currentSeriesIndices:L,font:I},o.api||{}),l={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:o.coordSys,dataInsideLength:e.count(),encode:n3(r.getData())},u,h,f={},v={},c={},p={},d=0;d<Na.length;d++){var g=Na[d];c[g]=r.getModel(qd[g]),p[g]=r.getModel(Kd[g])}function y(P){return P===u?h||(h=e.getItemModel(P)):e.getItemModel(P)}function m(P,R){return e.hasItemOption?P===u?f[R]||(f[R]=y(P).getModel(qd[R])):y(P).getModel(qd[R]):c[R]}function _(P,R){return e.hasItemOption?P===u?v[R]||(v[R]=y(P).getModel(Kd[R])):y(P).getModel(Kd[R]):p[R]}return function(P,R){return u=P,h=null,f={},v={},i&&i(X({dataIndexInside:P,dataIndex:e.getRawIndex(P),actionType:R?R.type:null},l),s)};function S(P,R){return R==null&&(R=u),e.get(e.getDimension(P||0),R)}function x(P,R){R==null&&(R=u);var k=e.getDimensionInfo(P||0);if(!!k){var N=e.get(k.name,R),O=k&&k.ordinalMeta;return O?O.categories[N]:N}}function b(P,R){R==null&&(R=u);var k=e.getItemVisual(R,"style"),N=k&&k.fill,O=k&&k.opacity,G=m(R,Oa).getItemStyle();N!=null&&(G.fill=N),O!=null&&(G.opacity=O);var z={inheritColor:ft(N)?N:"#000"},W=_(R,Oa),K=Ft(W,null,z,!1,!0);K.text=W.getShallow("show")?vt(r.getFormattedLabel(R,Oa),zn(e,R)):null;var _t=vu(W,z,!1);return C(P,G),G=eA(G,K,_t),P&&T(G,P),G.legacy=!0,G}function w(P,R){R==null&&(R=u);var k=m(R,aa).getItemStyle(),N=_(R,aa),O=Ft(N,null,null,!0,!0);O.text=N.getShallow("show")?Gr(r.getFormattedLabel(R,aa),r.getFormattedLabel(R,Oa),zn(e,R)):null;var G=vu(N,null,!0);return C(P,k),k=eA(k,O,G),P&&T(k,P),k.legacy=!0,k}function T(P,R){for(var k in R)Y(R,k)&&(P[k]=R[k])}function C(P,R){P&&(P.textFill&&(R.textFill=P.textFill),P.textPosition&&(R.textPosition=P.textPosition))}function M(P,R){if(R==null&&(R=u),Y(hA,P)){var k=e.getItemVisual(R,"style");return k?k[hA[P]]:null}if(Y(XG,P))return e.getItemVisual(R,P)}function D(P){if(n.type==="cartesian2d"){var R=n.getBaseAxis();return kk(X({axis:R},P))}}function L(){return t.getCurrentSeriesIndices()}function I(P){return z0(P,t)}}function n3(r){var e={};return A(r.dimensions,function(t,a){var i=r.getDimensionInfo(t);if(!i.isExtraCoord){var n=i.coordDim,o=e[n]=e[n]||[];o[i.coordDimIndex]=a}}),e}function Jn(r,e,t,a,i,n,o,s){if(!a){Fh(e,n);return}return e=ig(r,e,t,a,i,n,!0,s),e&&o.setItemGraphicEl(t,e),Lt(e,a.focus,a.blurScope),e}function ig(r,e,t,a,i,n,o,s){var l=-1;e&&dA(e,a)&&(l=n.childrenRef().indexOf(e),e=null);var u=!e;e?e.clearStates():e=Qd(a);var h=rr(e).canMorph=a.morph&&SA(e),f=h&&s&&s.hasFrom(),v=u&&!f;ar.normal.cfg=ar.normal.conOpt=ar.emphasis.cfg=ar.emphasis.conOpt=ar.blur.cfg=ar.blur.conOpt=ar.select.cfg=ar.select.conOpt=null,ar.isLegacy=!1,s3(e,t,a,i,v,ar),o3(e,t,a,i,v);var c=Jd(r,e,f,t,a,a.style,ar,i,v,!1);f&&s.addTo(e,a,t,c);for(var p=0;p<Na.length;p++){var d=Na[p];if(d!==Oa){var g=Vh(a,d),y=ng(a,g,d);cA(d,e,g,y,ar)}}return a3(e,a,i),a.type==="group"&&l3(r,e,t,a,i,s),l>=0?n.replaceAt(e,l):n.add(e),e}function dA(r,e){var t=rr(r),a=e.type,i=e.shape,n=e.style;return a!=null&&a!==t.customGraphicType||a==="path"&&f3(i)&&_A(i)!==t.customPathData||a==="image"&&Y(n,"image")&&n.image!==t.customImagePath}function o3(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&&dA(o,n)&&(o=null),o||(o=Qd(n),r.setClipPath(o)),Jd(null,o,null,e,n,null,null,a,i,!1)}}function s3(r,e,t,a,i,n){if(!r.isGroup){gA(t,null,n),gA(t,aa,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 h=r.getTextContent();if(o===!1)h&&r.removeTextContent();else{o=n.normal.conOpt=o||{type:"text"},h?h.clearStates():(h=Qd(o),r.setTextContent(h));var f=o&&o.style;Jd(null,h,null,e,o,f,null,a,i,!0);for(var v=0;v<Na.length;v++){var c=Na[v];if(c!==Oa){var p=n[c].conOpt;cA(c,h,p,ng(o,p,c),null)}}f?h.dirty():h.markRedraw()}}}}function gA(r,e,t){var a=e?Vh(r,e):r,i=e?ng(r,a,aa):r.style,n=r.type,o=a?a.textConfig:null,s=r.textContent,l=s?e?Vh(s,e):s:null;if(i&&(t.isLegacy||JT(i,n,!!o,!!l))){t.isLegacy=!0;var u=jT(i,n,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var h=l;!h.type&&(h.type="text")}var f=e?t[e]:t.normal;f.cfg=o,f.conOpt=l}function Vh(r,e){return e?r?r[e]:null:r}function ng(r,e,t){var a=e&&e.style;return a==null&&t===aa&&r&&(a=r.styleEmphasis),a}function l3(r,e,t,a,i,n){var o=a.children,s=o?o.length:0,l=a.$mergeChildren,u=l==="byName"||a.diffChildrenByName,h=l===!1;if(!(!s&&!u&&!h)){if(u){u3({api:r,oldChildren:e.children()||[],newChildren:o||[],dataIndex:t,seriesModel:i,group:e,morphPreparation:n});return}h&&e.removeAll();for(var f=0;f<s;f++)o[f]&&ig(r,e.childAt(f),t,o[f],i,e,!1,n);for(var v=e.childCount()-1;v>=f;v--)zh(e.childAt(v),i,e)}}function u3(r){new Ca(r.oldChildren,r.newChildren,yA,yA,r).add(mA).update(mA).remove(h3).execute()}function yA(r,e){var t=r&&r.name;return t!=null?t:$G+e}function mA(r,e){var t=this.context,a=r!=null?t.newChildren[r]:null,i=e!=null?t.oldChildren[e]:null;ig(t.api,i,t.dataIndex,a,t.seriesModel,t.group,!1,t.morphPreparation)}function h3(r){var e=this.context,t=e.oldChildren[r];zh(t,e.seriesModel,e.group)}function zh(r,e,t){if(r){var a=rr(r).leaveToProps;a?dt(r,a,e,{cb:function(){t.remove(r)}}):t.remove(r)}}function _A(r){return r&&(r.pathData||r.d)}function f3(r){return r&&(Y(r,"pathData")||Y(r,"d"))}function SA(r){return r&&r instanceof ct}function Fh(r,e){r&&e.remove(r)}var v3=function(){function r(e,t){this._fromList=[],this._toList=[],this._toElOptionList=[],this._allPropsFinalList=[],this._toDataIndices=[],this._morphConfigList=[],this._seriesModel=e,this._transOpt=t}return r.prototype.hasFrom=function(){return!!this._fromList.length},r.prototype.findAndAddFrom=function(e){if(!!e&&(rr(e).canMorph&&this._fromList.push(e),e.isGroup))for(var t=e.childrenRef(),a=0;a<t.length;a++)this.findAndAddFrom(t[a])},r.prototype.addTo=function(e,t,a,i){e&&(this._toList.push(e),this._toElOptionList.push(t),this._toDataIndices.push(a),this._allPropsFinalList.push(i))},r.prototype.applyMorphing=function(){var e=this._type,t=this._fromList,a=this._toList,i=a.length,n=t.length;if(!(!n||!i)){if(e==="oneToOne")for(var o=0;o<i;o++)this._oneToOneForSingleTo(o,o);else if(e==="manyToOne")for(var s=Math.max(1,Math.floor(n/i)),o=0,l=0;o<i;o++,l+=s){var u=o+1>=i?n-l:s;this._manyToOneForSingleTo(o,l>=n?null:l,u)}else if(e==="oneToMany")for(var h=Math.max(1,Math.floor(i/n)),f=0,v=0;f<i;f+=h,v++){var c=f+h>=i?i-f:h;this._oneToManyForSingleFrom(f,c,v>=n?null:v)}}},r.prototype._oneToOneForSingleTo=function(e,t){var a=this._toList[e],i=this._toElOptionList[e],n=this._toDataIndices[e],o=this._allPropsFinalList[e],s=this._fromList[t],l=this._getOrCreateMorphConfig(n),u=l.duration;if(s&&Qn(s)){if(nl(a,o,i.style),u){var h=uA([s],a,l,og);this._processResultIndividuals(h,e,null)}}else{var f=u&&s&&(s!==a||NG(s))?s:null,v={};Bh("shape",a,f,i,v,!1),Bh("extra",a,f,i,v,!1),tg(a,f,i,v,!1),eg(a,f,i,i.style,v,!1),nl(a,o,i.style),f&&Hd(f,a,l),jd(a,n,i,this._seriesModel,v,!1)}},r.prototype._manyToOneForSingleTo=function(e,t,a){var i=this._toList[e],n=this._toElOptionList[e],o=this._allPropsFinalList[e];nl(i,o,n.style);var s=this._getOrCreateMorphConfig(this._toDataIndices[e]);if(s.duration&&t!=null){for(var l=[],u=t;u<a;u++)l.push(this._fromList[u]);var h=uA(l,i,s,og);this._processResultIndividuals(h,e,null)}},r.prototype._oneToManyForSingleFrom=function(e,t,a){for(var i=a==null?null:this._fromList[a],n=this._toList,o=[],s=e;s<t;s++){var l=n[s];nl(l,this._allPropsFinalList[s],this._toElOptionList[s].style),o.push(l)}var u=this._getOrCreateMorphConfig(this._toDataIndices[e]);if(u.duration&&i){var h=HG(i,o,u,og);this._processResultIndividuals(h,e,t)}},r.prototype._processResultIndividuals=function(e,t,a){for(var i=a!=null,n=0;n<e.count;n++){var o=e.fromIndividuals[n],s=e.toIndividuals[n],l=t+(i?n:0),u=this._toElOptionList[l],h=this._toDataIndices[l],f={};tg(s,o,u,f,!1),eg(s,o,u,u.style,f,!1),jd(s,h,u,this._seriesModel,f,!1)}},r.prototype._getOrCreateMorphConfig=function(e){var t=this._morphConfigList,a=t[e];if(a)return a;var i,n,o,s=this._seriesModel,l=this._transOpt;if(s.isAnimationEnabled()){var u=void 0;if(s&&s.ecModel){var h=s.ecModel.getUpdatePayload();u=h&&h.animation}if(u)i=u.duration||0,n=u.easing||"cubicOut",o=u.delay||0;else{n=s.get("animationEasingUpdate");var f=s.get("animationDelayUpdate");o=wt(f)?f(e):f;var v=s.get("animationDurationUpdate");i=wt(v)?v(e):v}}return a={duration:i||0,delay:o,easing:n,dividingMethod:l?l.dividingMethod:null},t[e]=a,a},r.prototype.reset=function(e){this._type=e,this._fromList.length=this._toList.length=this._toElOptionList.length=this._allPropsFinalList.length=this._toDataIndices.length=0},r}();function og(r,e,t){e.style=t?$(r.style):r.style,e.zlevel=r.zlevel,e.z=r.z,e.z2=r.z2}function c3(r){r.registerChartView(QG),r.registerSeriesModel(KG)}var Ji=At(),xA=$,sg=U,lg=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 h=u.graphicKey;h!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=h;var f=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new q,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),a.getZr().add(s);else{var v=j(bA,t,f);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,t)}AA(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=Ip(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=Ji(e).pointerEl=new qo[n.type](xA(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,a,i){if(t.label){var n=Ji(e).labelEl=new gt(xA(t.label));e.add(n),TA(n,i)}},r.prototype.updatePointerEl=function(e,t,a){var i=Ji(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=Ji(e).labelEl;n&&(n.setStyle(t.label.style),a(n,{x:t.label.x,y:t.label.y}),TA(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=$o(n.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Wr(u.event)},onmousedown:sg(this._onHandleDragMove,this,0,0),drift:sg(this._onHandleDragMove,this),ondragend:sg(this._onHandleDragEnd,this)}),a.add(i)),AA(i,t,!1),i.setStyle(n.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=n.get("size");B(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,ls(this,"_doDispatchAxisPointer",n.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){bA(this._axisPointerModel,!t&&this._moveAnimation,this._handle,ug(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(ug(a),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,a.stopAnimation(),a.attr(ug(i)),Ji(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)},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 bA(r,e,t,a){wA(Ji(t).lastProp,a)||(Ji(t).lastProp=a,e?dt(t,a,r):(t.stopAnimation(),t.attr(a)))}function wA(r,e){if(J(r)&&J(e)){var t=!0;return A(e,function(a,i){t=t&&wA(r[i],a)}),!!t}else return r===e}function TA(r,e){r[e.get(["label","show"])?"show":"hide"]()}function ug(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function AA(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)})}function hg(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 CA(r,e,t,a,i){var n=t.get("value"),o=DA(n,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=An(s.get("padding")||0),u=s.getFont(),h=wo(o,u),f=i.position,v=h.width+l[1]+l[3],c=h.height+l[0]+l[2],p=i.align;p==="right"&&(f[0]-=v),p==="center"&&(f[0]-=v/2);var d=i.verticalAlign;d==="bottom"&&(f[1]-=c),d==="middle"&&(f[1]-=c/2),p3(f,v,c,a);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),r.label={x:f[0],y:f[1],style:Ft(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function p3(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 DA(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:fp(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};A(a,function(l){var u=t.getSeriesByIndex(l.seriesIndex),h=l.dataIndexInside,f=u&&u.getDataParams(h);f&&s.seriesData.push(f)}),ft(o)?n=o.replace("{value}",n):wt(o)&&(n=o(s))}return n}function fg(r,e,t){var a=ze();return qa(a,a,t.rotation),yr(a,a,t.position),fr([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],a)}function MA(r,e,t,a,i,n){var o=be.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=i.get(["label","margin"]),CA(e,a,i,n,{position:fg(a.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function vg(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function LA(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function IA(r,e,t,a,i,n){return{cx:r,cy:e,r0:t,r:a,startAngle:i,endAngle:n,clockwise:!0}}var d3=function(r){E(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"),h=PA(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var v=hg(n),c=g3[u](s,f,h);c.style=v,t.graphicKey=c.type,t.pointer=c}var p=Dp(l.model,i);MA(a,t,p,i,n,o)},e.prototype.getHandleTransform=function(t,a,i){var n=Dp(a.axis.grid.model,a,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var o=fg(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=PA(s,o).getOtherAxis(o).getGlobalExtent(),h=o.dim==="x"?0:1,f=[t.x,t.y];f[h]+=a[h],f[h]=Math.min(l[1],f[h]),f[h]=Math.max(l[0],f[h]);var v=(u[1]+u[0])/2,c=[v,v];c[h]=f[h];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:c,tooltipOption:p[h]}},e}(lg);function PA(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var g3={line:function(r,e,t){var a=vg([e,t[0]],[e,t[1]],RA(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:LA([e-a/2,t[0]],[a,i],RA(r))}}};function RA(r){return r.dim==="x"?0:1}var y3=function(r){E(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",zlevel:0,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}(ht),na=At(),m3=A;function EA(r,e,t){if(!et.node){var a=e.getZr();na(a).records||(na(a).records={}),_3(a,e);var i=na(a).records[r]||(na(a).records[r]={});i.handler=t}}function _3(r,e){if(na(r).initialized)return;na(r).initialized=!0,t("click",j(kA,"click")),t("mousemove",j(kA,"mousemove")),t("globalout",x3);function t(a,i){r.on(a,function(n){var o=b3(e);m3(na(r).records,function(s){s&&i(s,n,o.dispatchAction)}),S3(o.pendings,e)})}}function S3(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 x3(r,e,t){r.handler("leave",null,t)}function kA(r,e,t,a){e.handler(r,t,a)}function b3(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 cg(r,e){if(!et.node){var t=e.getZr(),a=(na(t).records||{})[r];a&&(na(t).records[r]=null)}}var w3=function(r){E(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";EA("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){cg("axisPointer",a)},e.prototype.dispose=function(t,a){cg("axisPointer",a)},e.type="axisPointer",e}(Et);function OA(r,e){var t=[],a=r.seriesIndex,i;if(a==null||!(i=e.getSeriesByIndex(a)))return{point:[]};var n=i.getData(),o=ni(n,r);if(o==null||o<0||B(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(),h=l.getOtherAxis(u),f=h.dim,v=u.dim,c=f==="x"||f==="radius"?1:0,p=n.mapDimension(v),d=[];d[c]=n.get(p,o),d[1-c]=n.get(n.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(d)||[]}else t=l.dataToPoint(n.getValues(H(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 NA=At();function T3(r,e,t){var a=r.currTrigger,i=[r.x,r.y],n=r,o=r.dispatchAction||U(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(!!s){Gh(i)&&(i=OA({seriesIndex:n.seriesIndex,dataIndex:n.dataIndex},e).point);var l=Gh(i),u=n.axesInfo,h=s.axesInfo,f=a==="leave"||Gh(i),v={},c={},p={list:[],map:{}},d={showPointer:j(C3,c),showTooltip:j(D3,p)};A(s.coordSysMap,function(y,m){var _=l||y.containPoint(i);A(s.coordSysAxesInfo[m],function(S,x){var b=S.axis,w=P3(u,S);if(!f&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=b.pointToData(i)),T!=null&&BA(S,T,d,!1,v)}})});var g={};return A(h,function(y,m){var _=y.linkGroup;_&&!c[m]&&A(_.axesInfo,function(S,x){var b=c[x];if(S!==y&&b){var w=b.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,VA(S),VA(y)))),g[y.key]=w}})}),A(g,function(y,m){BA(h[m],y,d,!0,v)}),M3(c,h,v),L3(p,i,r,o),I3(h,o,t),v}}function BA(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=A3(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 A3(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 h=l.getData().mapDimensionsAll(a),f,v;if(l.getAxisTooltipData){var c=l.getAxisTooltipData(h,r,t);v=c.dataIndices,f=c.nestestValue}else{if(v=l.getData().indicesOfNearest(h[0],r,t.type==="category"?.5:null),!v.length)return;f=l.getData().get(h[0],v[0])}if(!(f==null||!isFinite(f))){var p=r-f,d=Math.abs(p);d<=o&&((d<o||p>=0&&s<0)&&(o=d,s=p,i=f,n.length=0),A(v,function(g){n.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:n,snapToValue:i}}function C3(r,e,t,a){r[e.key]={value:t,payloadBatch:a}}function D3(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=Ws(l),h=r.map[u];h||(h=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(h)),h.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 M3(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 L3(r,e,t,a){if(Gh(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 I3(r,e,t){var a=t.getZr(),i="axisPointerLastHighlights",n=NA(a)[i]||{},o=NA(a)[i]={};A(r,function(u,h){var f=u.axisPointerModel.option;f.status==="show"&&A(f.seriesDataIndices,function(v){var c=v.seriesIndex+" | "+v.dataIndex;o[c]=v})});var s=[],l=[];A(n,function(u,h){!o[h]&&l.push(u)}),A(o,function(u,h){!n[h]&&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 P3(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 VA(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 Gh(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function ol(r){Wi.registerAxisPointerClass("CartesianAxisPointer",d3),r.registerComponentModel(y3),r.registerComponentView(w3),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!B(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=$N(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},T3)}function R3(r){st(Ib),st(ol)}var E3=function(r){E(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),h=u.getExtent(),f=s.dataToCoord(a),v=n.get("type");if(v&&v!=="none"){var c=hg(n),p=O3[v](s,l,f,h);p.style=c,t.graphicKey=p.type,t.pointer=p}var d=n.get(["label","margin"]),g=k3(a,i,n,l,d);CA(t,i,n,o,g)},e}(lg);function k3(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,h,f;if(n.dim==="radius"){var v=ze();qa(v,v,s),yr(v,v,[a.cx,a.cy]),u=fr([o,-i],v);var c=e.getModel("axisLabel").get("rotate")||0,p=be.innerTextLayout(s,c*Math.PI/180,-1);h=p.textAlign,f=p.textVerticalAlign}else{var d=l[1];u=a.coordToPoint([d+i,o]);var g=a.cx,y=a.cy;h=Math.abs(u[0]-g)/d<.3?"center":u[0]>g?"left":"right",f=Math.abs(u[1]-y)/d<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:h,verticalAlign:f}}var O3={line:function(r,e,t,a){return r.dim==="angle"?{type:"Line",shape:vg(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:IA(e.cx,e.cy,a[0],a[1],(-t-i/2)*n,(-t+i/2)*n)}:{type:"Sector",shape:IA(e.cx,e.cy,t-i/2,t+i/2,0,Math.PI*2)}}},N3=function(r){E(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={zlevel:0,z:0,center:["50%","50%"],radius:"80%"},e}(ht),pg=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Wt).models[0]},e.type="polarAxis",e}(ht);Ht(pg,Rs);var B3=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(pg),V3=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(pg),dg=function(r){E(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}(gr);dg.prototype.dataToRadius=gr.prototype.dataToCoord,dg.prototype.radiusToData=gr.prototype.coordToData;var z3=At(),gg=function(r){E(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),h=wo(s==null?"":s+"",a.getFont(),"center","top"),f=Math.max(h.height,7),v=f/u;isNaN(v)&&(v=Infinity);var c=Math.max(0,Math.floor(v)),p=z3(t.model),d=p.lastAutoInterval,g=p.lastTickCount;return d!=null&&g!=null&&Math.abs(d-c)<=1&&Math.abs(g-o)<=1&&d>c?c=d:(p.lastTickCount=o,p.lastAutoInterval=c),c},e}(gr);gg.prototype.dataToAngle=gr.prototype.dataToCoord,gg.prototype.angleToData=gr.prototype.coordToData;var zA=function(){function r(e){this.dimensions=["radius","angle"],this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new dg,this._angleAxis=new gg,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,h=u<o?1:-1;u<o||u>s;)u+=h*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,h=l*l+u*u,f=this.r,v=this.r0;return h<=f*f&&h>=v*v}}},r.prototype.convertToPixel=function(e,t,a){var i=FA(t);return i===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var i=FA(t);return i===this?this.pointToData(a):null},r}();function FA(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function F3(r,e,t){var a=e.get("center"),i=t.getWidth(),n=t.getHeight();r.cx=F(a[0],i),r.cy=F(a[1],n);var o=r.getRadiusAxis(),s=Math.min(i,n)/2,l=e.get("radius");l==null?l=[0,"100%"]:B(l)||(l=[0,l]);var u=[F(l[0],s),F(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function G3(r,e){var t=this,a=t.getAngleAxis(),i=t.getRadiusAxis();if(a.scale.setExtent(Infinity,-Infinity),i.scale.setExtent(Infinity,-Infinity),r.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();A(sh(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),A(sh(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),Fi(a.scale,a.model),Fi(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 H3(r){return r.mainType==="angleAxis"}function GA(r,e){if(r.type=e.get("type"),r.scale=oh(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),H3(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 W3={dimensions:zA.prototype.dimensions,create:function(r,e){var t=[];return r.eachComponent("polar",function(a,i){var n=new zA(i+"");n.update=G3;var o=n.getRadiusAxis(),s=n.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");GA(o,l),GA(s,u),F3(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",Wt).models[0];a.coordinateSystem=i.coordinateSystem}}),t}},U3=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Hh(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 Wh(r){var e=r.getRadiusAxis();return e.inverse?0:1}function HA(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 Y3=function(r){E(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=H(i.getViewLabels(),function(h){h=$(h);var f=i.scale,v=f.type==="ordinal"?f.getRawOrdinalNumber(h.tickValue):h.tickValue;return h.coord=i.dataToCoord(v),h});HA(u),HA(s),A(U3,function(h){t.get([h,"show"])&&(!i.scale.isBlank()||h==="axisLine")&&X3[h](this.group,t,n,s,l,o,u)},this)}},e.type="angleAxis",e}(Wi),X3={axisLine:function(r,e,t,a,i,n){var o=e.getModel(["axisLine","lineStyle"]),s=Wh(t),l=s?0:1,u;n[l]===0?u=new lr({shape:{cx:t.cx,cy:t.cy,r:n[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new Ho({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[Wh(t)],u=H(a,function(h){return new Qt({shape:Hh(t,[l,l+s],h.coord)})});r.add($e(u,{style:X(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[Wh(t)],h=[],f=0;f<i.length;f++)for(var v=0;v<i[f].length;v++)h.push(new Qt({shape:Hh(t,[u,u+l],i[f][v].coord)}));r.add($e(h,{style:X(s.getModel("lineStyle").getLineStyle(),X(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"),h=e.get("triggerEvent");A(o,function(f,v){var c=l,p=f.tickValue,d=n[Wh(t)],g=t.coordToPoint([d+u,f.coord]),y=t.cx,m=t.cy,_=Math.abs(g[0]-y)/d<.3?"center":g[0]>y?"left":"right",S=Math.abs(g[1]-m)/d<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[p]){var x=s[p];J(x)&&x.textStyle&&(c=new xt(x.textStyle,l,l.ecModel))}var b=new gt({silent:be.isLabelSilent(e),style:Ft(c,{x:g[0],y:g[1],fill:c.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:_,verticalAlign:S})});if(r.add(b),h){var w=be.makeAxisEventDataBase(e);w.targetType="axisLabel",w.value=f.rawLabel,Q(b).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 h=[],f=0;f<a.length;f++){var v=u++%l.length;h[v]=h[v]||[],h[v].push(new Qt({shape:Hh(t,n,a[f].coord)}))}for(var f=0;f<h.length;f++)r.add($e(h[f],{style:X({stroke:l[f%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 h=0;h<i[u].length;h++)l.push(new Qt({shape:Hh(t,n,i[u][h].coord)}));r.add($e(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 h=[],f=Math.PI/180,v=-a[0].coord*f,c=Math.min(n[0],n[1]),p=Math.max(n[0],n[1]),d=e.get("clockwise"),g=1,y=a.length;g<=y;g++){var m=g===y?a[0].coord:a[g].coord,_=u++%l.length;h[_]=h[_]||[],h[_].push(new De({shape:{cx:t.cx,cy:t.cy,r0:c,r:p,startAngle:v,endAngle:-m*f,clockwise:d},silent:!0})),v=-m*f}for(var g=0;g<h.length;g++)r.add($e(h[g],{style:X({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}},$3=["axisLine","axisTickLabel","axisName"],Z3=["splitLine","splitArea","minorSplitLine"],q3=function(r){E(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 q;this.group.add(n);var o=t.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),h=o.getMinorTicksCoords(),f=l.getExtent()[0],v=o.getExtent(),c=Q3(s,t,f),p=new be(t,c);A($3,p.add,p),n.add(p.getGroup()),Xo(i,n,t),A(Z3,function(d){t.get([d,"show"])&&!o.scale.isBlank()&&K3[d](this.group,t,s,f,v,u,h)},this)}},e.type="radiusAxis",e}(Wi),K3={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 h=[],f=0;f<n.length;f++){var v=u++%l.length;h[v]=h[v]||[],h[v].push(new lr({shape:{cx:t.cx,cy:t.cy,r:n[f].coord}}))}for(var f=0;f<h.length;f++)r.add($e(h[f],{style:X({stroke:l[f%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=[],h=0;h<o.length;h++)for(var f=0;f<o[h].length;f++)u.push(new lr({shape:{cx:t.cx,cy:t.cy,r:o[h][f].coord}}));r.add($e(u,{style:X({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 h=[],f=n[0].coord,v=1;v<n.length;v++){var c=u++%l.length;h[c]=h[c]||[],h[c].push(new De({shape:{cx:t.cx,cy:t.cy,r0:f,r:n[v].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=n[v].coord}for(var v=0;v<h.length;v++)r.add($e(h[v],{style:X({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}};function Q3(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}}function WA(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function UA(r,e){return e.dim+r.model.componentIndex}function J3(r,e,t){var a={},i=j3(kt(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=UA(s,l),h=WA(n),f=i[u][h],v=f.offset,c=f.width,p=s.getOtherAxis(l),d=n.coordinateSystem.cx,g=n.coordinateSystem.cy,y=n.get("barMinHeight")||0,m=n.get("barMinAngle")||0;a[h]=a[h]||[];for(var _=o.mapDimension(p.dim),S=o.mapDimension(l.dim),x=Da(o,_),b=l.dim!=="radius"||!n.get("roundCap",!0),w=p.dataToCoord(0),T=0,C=o.count();T<C;T++){var M=o.get(_,T),D=o.get(S,T),L=M>=0?"p":"n",I=w;x&&(a[h][D]||(a[h][D]={p:w,n:w}),I=a[h][D][L]);var P=void 0,R=void 0,k=void 0,N=void 0;if(p.dim==="radius"){var O=p.dataToCoord(M)-w,G=l.dataToCoord(D);Math.abs(O)<y&&(O=(O<0?-1:1)*y),P=I,R=I+O,k=G-v,N=k-c,x&&(a[h][D][L]=R)}else{var z=p.dataToCoord(M,b)-w,W=l.dataToCoord(D);Math.abs(z)<m&&(z=(z<0?-1:1)*m),P=W+v,R=P+c,k=I,N=I+z,x&&(a[h][D][L]=N)}o.setItemLayout(T,{cx:d,cy:g,r0:P,r:R,startAngle:-k*Math.PI/180,endAngle:-N*Math.PI/180})}}})}function j3(r){var e={};A(r,function(a,i){var n=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=UA(o,s),u=s.getExtent(),h=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/n.count(),f=e[l]||{bandWidth:h,remainedWidth:h,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},v=f.stacks;e[l]=f;var c=WA(a);v[c]||f.autoWidthCount++,v[c]=v[c]||{width:0,maxWidth:0};var p=F(a.get("barWidth"),h),d=F(a.get("barMaxWidth"),h),g=a.get("barGap"),y=a.get("barCategoryGap");p&&!v[c].width&&(p=Math.min(f.remainedWidth,p),v[c].width=p,f.remainedWidth-=p),d&&(v[c].maxWidth=d),g!=null&&(f.gap=g),y!=null&&(f.categoryGap=y)});var t={};return A(e,function(a,i){t[i]={};var n=a.stacks,o=a.bandWidth,s=F(a.categoryGap,o),l=F(a.gap,1),u=a.remainedWidth,h=a.autoWidthCount,f=(u-s)/(h+(h-1)*l);f=Math.max(f,0),A(n,function(d,g){var y=d.maxWidth;y&&y<f&&(y=Math.min(y,u),d.width&&(y=Math.min(y,d.width)),u-=y,d.width=y,h--)}),f=(u-s)/(h+(h-1)*l),f=Math.max(f,0);var v=0,c;A(n,function(d,g){d.width||(d.width=f),c=d,v+=d.width*(1+l)}),c&&(v-=c.width*l);var p=-v/2;A(n,function(d,g){t[i][g]=t[i][g]||{offset:p,width:d.width},p+=d.width*(1+l)})}),t}var tH={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},eH={splitNumber:5},rH=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e}(Et);function aH(r){st(ol),Wi.registerAxisPointerClass("PolarAxisPointer",E3),r.registerCoordinateSystem("polar",W3),r.registerComponentModel(N3),r.registerComponentView(rH),Wn(r,"angle",B3,tH),Wn(r,"radius",V3,eH),r.registerComponentView(Y3),r.registerComponentView(q3),r.registerLayout(j(J3,"bar"))}function yg(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 h={horizontal:0,vertical:1};i.rotation=Math.PI/2*h[o];var f={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=f[n],r.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),ee(e.labelInside,r.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var v=e.rotate;return v==null&&(v=r.get(["axisLabel","rotate"])),i.labelRotation=n==="top"?-v:v,i.z2=1,i}var iH=["axisLine","axisTickLabel","axisName"],nH=["splitArea","splitLine"],oH=function(r){E(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 q;var l=yg(t),u=new be(t,l);A(iH,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),A(nH,function(h){t.get([h,"show"])&&sH[h](this,this.group,this._axisGroup,t)},this),Xo(s,this._axisGroup,t),r.prototype.render.call(this,t,a,i,n)},e.prototype.remove=function(){Cb(this)},e.type="singleAxis",e}(Wi),sH={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=a.coordinateSystem.getRect(),u=i.isHorizontal(),h=[],f=0,v=i.getTicksCoords({tickModel:n}),c=[],p=[],d=0;d<v.length;++d){var g=i.toGlobalCoord(v[d].coord);u?(c[0]=g,c[1]=l.y,p[0]=g,p[1]=l.y+l.height):(c[0]=l.x,c[1]=g,p[0]=l.x+l.width,p[1]=g);var y=f++%s.length;h[y]=h[y]||[],h[y].push(new Qt({subPixelOptimize:!0,shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]},silent:!0}))}for(var m=o.getLineStyle(["color"]),d=0;d<h.length;++d)e.add($e(h[d],{style:X({stroke:s[d%s.length]},m),silent:!0}))}},splitArea:function(r,e,t,a){Ab(r,t,a,a)}},Uh=function(r){E(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}(ht);Ht(Uh,Rs.prototype);var lH=function(r){E(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}(gr),YA=function(){function r(e,t,a){this.type="single",this.dimension="single",this.dimensions=["single"],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 lH(i,oh(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),Fi(this._axis.scale,this._axis.model)}},this)},r.prototype.resize=function(e,t){this._rect=qt({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.reverse?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=XA(t);return i===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var i=XA(t);return i===this?this.pointToData(a):null},r}();function XA(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function uH(r,e){var t=[];return r.eachComponent("singleAxis",function(a,i){var n=new YA(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",Wt).models[0];a.coordinateSystem=i&&i.coordinateSystem}}),t}var hH={create:uH,dimensions:YA.prototype.dimensions},$A=["x","y"],fH=["width","height"],vH=function(r){E(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=mg(l,1-Yh(s)),h=l.dataToPoint(a)[0],f=n.get("type");if(f&&f!=="none"){var v=hg(n),c=cH[f](s,h,u);c.style=v,t.graphicKey=c.type,t.pointer=c}var p=yg(i);MA(a,t,p,i,n,o)},e.prototype.getHandleTransform=function(t,a,i){var n=yg(a,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var o=fg(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=Yh(o),u=mg(s,l),h=[t.x,t.y];h[l]+=a[l],h[l]=Math.min(u[1],h[l]),h[l]=Math.max(u[0],h[l]);var f=mg(s,1-l),v=(f[1]+f[0])/2,c=[v,v];return c[l]=h[l],{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}},e}(lg),cH={line:function(r,e,t){var a=vg([e,t[0]],[e,t[1]],Yh(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:LA([e-a/2,t[0]],[a,i],Yh(r))}}};function Yh(r){return r.isHorizontal()?0:1}function mg(r,e){var t=r.getRect();return[t[$A[e]],t[$A[e]]+t[fH[e]]]}var pH=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(Et);function dH(r){st(ol),Wi.registerAxisPointerClass("SingleAxisPointer",vH),r.registerComponentView(pH),r.registerComponentView(oH),r.registerComponentModel(Uh),Wn(r,"single",Uh,Uh.defaultOption),r.registerCoordinateSystem("single",hH)}var gH=function(r){E(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=Cn(t);r.prototype.init.apply(this,arguments),ZA(t,n)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),ZA(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(ht);function ZA(r,e){var t=r.cellSize,a;B(t)?a=t:a=r.cellSize=[t,t],a.length===1&&(a[1]=a[0]);var i=H([0,1],function(n){return ZI(e,n)&&(a[n]="auto"),a[n]!=null&&a[n]!=="auto"});ma(r,e,{type:"box",ignoreSize:i})}var yH={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["\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"]},mH={EN:["S","M","T","W","T","F","S"],CN:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},_H=function(r){E(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();this._renderDayRect(t,s,n),this._renderLines(t,s,l,n),this._renderYearText(t,s,l,n),this._renderMonthText(t,l,n),this._renderWeekText(t,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 h=n.dataToRect([u],!1).tl,f=new pt({shape:{x:h[0],y:h[1],width:s,height:l},cursor:"default",style:o});i.add(f)}},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"]),h=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=a.start,v=0;f.time<=a.end.time;v++){p(f.formatedDate),v===0&&(f=s.getDateInfo(a.start.y+"-"+a.start.m));var c=f.date;c.setMonth(c.getMonth()+1),f=s.getDateInfo(c)}p(s.getNextNDay(a.end.time,1).formatedDate);function p(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToRect([d],!1).tl);var g=o._getLinePointsOfOneWeek(t,d,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,h,i),l,n),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,h,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 Me({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),h=n.dataToRect([u.time],!1);s[2*u.day]=h.tl,s[2*u.day+1]=h[i==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,a){return typeof t=="string"&&t?YI(t,a):typeof t=="function"?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 h=0;return(n==="left"||n==="right")&&(h=Math.PI/2),{rotation:h,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]],h=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,v=i==="horizontal"?0:1,c={top:[h,u[v][1]],bottom:[h,u[1-v][1]],left:[u[1-v][0],f],right:[u[v][0],f]},p=a.start.y;+a.end.y>+a.start.y&&(p=p+"-"+a.end.y);var d=o.get("formatter"),g={start:a.start.y,end:a.end.y,nameMap:p},y=this._formatterLabel(d,g),m=new gt({z2:30,style:Ft(o,{text:y})});m.attr(this._yearTextPositionControl(m,c[l],i,l,s)),n.add(m)}},e.prototype._monthTextPositionControl=function(t,a,i,n,o){var s="left",l="top",u=t[0],h=t[1];return i==="horizontal"?(h=h+o,a&&(s="center"),n==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),n==="start"&&(s="right")),{x:u,y:h,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,a,i){var n=t.getModel("monthLabel");if(!!n.get("show")){var o=n.get("nameMap"),s=n.get("margin"),l=n.get("position"),u=n.get("align"),h=[this._tlpoints,this._blpoints];ft(o)&&(o=yH[o.toUpperCase()]||[]);var f=l==="start"?0:1,v=a==="horizontal"?0:1;s=l==="start"?-s:s;for(var c=u==="center",p=0;p<h[f].length-1;p++){var d=h[f][p].slice(),g=this._firstDayOfMonth[p];if(c){var y=this._firstDayPoints[p];d[v]=(y[v]+h[0][p+1][v])/2}var m=n.get("formatter"),_=o[+g.m-1],S={yyyy:g.y,yy:(g.y+"").slice(2),MM:g.m,M:+g.m,nameMap:_},x=this._formatterLabel(m,S),b=new gt({z2:30,style:V(Ft(n,{text:x}),this._monthTextPositionControl(d,c,a,l,s))});i.add(b)}}},e.prototype._weekTextPositionControl=function(t,a,i,n,o){var s="center",l="middle",u=t[0],h=t[1],f=i==="start";return a==="horizontal"?(u=u+n+(f?1:-1)*o[0]/2,s=f?"right":"left"):(h=h+n+(f?1:-1)*o[1]/2,l=f?"bottom":"top"),{x:u,y:h,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,a,i,n){var o=t.getModel("dayLabel");if(!!o.get("show")){var s=t.coordinateSystem,l=o.get("position"),u=o.get("nameMap"),h=o.get("margin"),f=s.getFirstDayOfWeek();ft(u)&&(u=mH[u.toUpperCase()]||[]);var v=s.getNextNDay(a.end.time,7-a.lweek).time,c=[s.getCellWidth(),s.getCellHeight()];h=F(h,Math.min(c[1],c[0])),l==="start"&&(v=s.getNextNDay(a.start.time,-(7+a.fweek)).time,h=-h);for(var p=0;p<7;p++){var d=s.getNextNDay(v,p),g=s.dataToRect([d.time],!1).center,y=p;y=Math.abs((p+f)%7);var m=new gt({z2:30,style:V(Ft(o,{text:u[y]}),this._weekTextPositionControl(g,i,l,h,c))});n.add(m)}}},e.type="calendar",e}(Et),_g=864e5,SH=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=mr(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(f){h(n,f)&&(o[i[f]]=n[f]*s[f])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=qt(o,l);A([0,1],function(f){h(n,f)||(n[f]=u[i[f]]/s[f])});function h(f,v){return f[v]!=null&&f[v]!=="auto"}this._sw=n[0],this._sh=n[1]},r.prototype.dataToPoint=function(e,t){B(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+_g))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=qA(t);return i===this?i.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var i=qA(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(B(e)&&e.length===1&&(e=e[0]),B(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/_g)-Math.floor(t[0].time/_g)+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 h=Math.floor((i+t[0].day+6)/7),f=a?-h+1:h-1;return a&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:i,weeks:h,nthWeek:f,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,e,t);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 qA(r){var e=r.calendarModel,t=r.seriesModel,a=e?e.coordinateSystem:t?t.coordinateSystem:null;return a}function xH(r){r.registerComponentModel(gH),r.registerComponentView(_H),r.registerCoordinateSystem("calendar",SH)}var jn=At(),KA={path:null,compoundPath:null,group:q,image:Zt,text:gt},bH=function(r){var e=r.graphic;B(e)?!e[0]||!e[0].elements?r.graphic=[{elements:e}]:r.graphic=[r.graphic[0]]:e&&!e.elements&&(r.graphic=[{elements:[e]}])},wH=function(r){E(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=cm(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];A(l,function(f,v){var c=f.newOption;!c||(u.push(c),CH(f,c),DH(o,v,c),MH(o[v],c))},this);for(var h=o.length-1;h>=0;h--)o[h]==null?o.splice(h,1):delete o[h].$action},e.prototype._flatten=function(t,a,i){A(t,function(n){if(!!n){i&&(n.parentOption=i),a.push(n);var o=n.children;n.type==="group"&&o&&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}(ht),TH=function(r){E(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=Z()},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;A(a,function(o){var s=$t(o.id,null),l=s!=null?i.get(s):null,u=$t(o.parentId,null),h=u!=null?i.get(u):n,f=o.type,v=o.style;f==="text"&&v&&o.hv&&o.hv[1]&&(v.textVerticalAlign=v.textBaseline=v.verticalAlign=v.align=null);var c=o.textContent,p=o.textConfig;if(v&&JT(v,f,!!p,!!c)){var d=jT(v,f,!0);!p&&d.textConfig&&(p=o.textConfig=d.textConfig),!c&&d.textContent&&(c=d.textContent)}var g=AH(o),y=o.$action||"merge";y==="merge"?l?l.attr(g):QA(s,h,g,i):y==="replace"?(Xh(l,i),QA(s,h,g,i)):y==="remove"&&Xh(l,i);var m=i.get(s);if(m&&c)if(y==="merge"){var _=m.getTextContent();_?_.attr(c):m.setTextContent(new gt(c))}else y==="replace"&&m.setTextContent(new gt(c));if(m){var S=jn(m);S.__ecGraphicWidthOption=o.width,S.__ecGraphicHeightOption=o.height,LH(m,t,o),xn({el:m,componentModel:t,itemName:m.name,itemTooltipOption:o.tooltip})}})}},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=0;u<i.length;u++){var h=i[u],f=$t(h.id,null),v=f!=null?o.get(f):null;if(!(!v||!v.isGroup)){var c=v.parent,p=c===n,d=jn(v),g=jn(c);d.__ecGraphicWidth=F(d.__ecGraphicWidthOption,p?s:g.__ecGraphicWidth)||0,d.__ecGraphicHeight=F(d.__ecGraphicHeightOption,p?l:g.__ecGraphicHeight)||0}}for(var u=i.length-1;u>=0;u--){var h=i[u],f=$t(h.id,null),v=f!=null?o.get(f):null;if(!!v){var c=v.parent,g=jn(c),y=c===n?{width:s,height:l}:{width:g.__ecGraphicWidth,height:g.__ecGraphicHeight};Tu(v,h,y,null,{hv:h.hv,boundingMode:h.bounding})}}},e.prototype._clear=function(){var t=this._elMap;t.each(function(a){Xh(a,t)}),this._elMap=Z()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Et);function QA(r,e,t,a){var i=t.type,n=Y(KA,i)?KA[i]:Wv(i),o=new n(t);e.add(o),a.set(r,o),jn(o).__ecGraphicId=r}function Xh(r,e){var t=r&&r.parent;t&&(r.type==="group"&&r.traverse(function(a){Xh(a,e)}),e.removeKey(jn(r).__ecGraphicId),t.remove(r))}function AH(r){return r=V({},r),A(["id","parentId","$action","hv","bounding","textContent"].concat(n_),function(e){delete r[e]}),r}function JA(r,e){var t;return A(e,function(a){r[a]!=null&&r[a]!=="auto"&&(t=!0)}),t}function CH(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 DH(r,e,t){var a=V({},t),i=r[e],n=t.$action||"merge";n==="merge"?i?(at(i,a,!0),ma(i,a,{ignoreSize:!0}),o_(t,i)):r[e]=a:n==="replace"?r[e]=a:n==="remove"&&i&&(r[e]=null)}function MH(r,e){if(!!r&&(r.hv=e.hv=[JA(e,["left","right"]),JA(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)}}function LH(r,e,t){var a=Q(r).eventData;!r.silent&&!r.ignore&&!a&&(a=Q(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),a&&(a.info=t.info)}function IH(r){r.registerComponentModel(wH),r.registerComponentView(TH),r.registerPreprocessor(bH)}var jA=["x","y","radius","angle","single"],PH=["cartesian2d","polar","singleAxis"];function RH(r){var e=r.get("coordinateSystem");return lt(PH,e)>=0}function Ba(r){return r+"Axis"}function EH(r,e){var t=Z(),a=[],i=Z();r.eachComponent({mainType:"dataZoom",query:e},function(h){i.get(h.uid)||s(h)});var n;do n=!1,r.eachComponent("dataZoom",o);while(n);function o(h){!i.get(h.uid)&&l(h)&&(s(h),n=!0)}function s(h){i.set(h.uid,!0),a.push(h),u(h)}function l(h){var f=!1;return h.eachTargetAxis(function(v,c){var p=t.get(v);p&&p[c]&&(f=!0)}),f}function u(h){h.eachTargetAxis(function(f,v){(t.get(f)||t.set(f,[]))[v]=!0})}return a}function tC(r){var e=r.ecModel,t={infoList:[],infoMap:Z()};return r.eachTargetAxis(function(a,i){var n=e.getComponent(Ba(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 Sg=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}(),sl=function(r){E(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=eC(t);this.settledOption=n,this.mergeDefaultAndTheme(t,i),this._doInit(n)},e.prototype.mergeOption=function(t){var a=eC(t);at(this.option,t,!0),at(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=Z(),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(jA,function(i){var n=this.getReferringComponents(Ba(i),CL);if(!!n.specified){a=!0;var o=new Sg;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(h){return h.get("orient",!0)===a}});l(s,"single")}function l(u,h){var f=u[0];if(!!f){var v=new Sg;if(v.add(f.componentIndex),t.set(h,v),n=!1,h==="x"||h==="y"){var c=f.getReferringComponents("grid",Wt).models[0];c&&A(u,function(p){f.componentIndex!==p.componentIndex&&c===p.getReferringComponents("grid",Wt).models[0]&&v.add(p.componentIndex)})}}}n&&A(jA,function(u){if(!!n){var h=i.findComponents({mainType:Ba(u),filter:function(v){return v.get("type",!0)==="category"}});if(h[0]){var f=new Sg;f.add(h[0].componentIndex),t.set(u,f),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(Ba(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(Ba(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={zlevel:0,z:4,filterMode:"filter",start:0,end:100},e}(ht);function eC(r){var e={};return A(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}var kH=function(r){E(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),xg=function(r){E(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}(Et),OH=function(r){E(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}(xg),to=A,rC=Ue,NH=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(RH(t)){var a=Ba(this._dimName),i=t.getReferringComponents(a,Wt).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 $(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;to(["start","end"],function(v,c){var p=e[v],d=e[v+"Value"];n[c]==="percent"?(p==null&&(p=o[c]),d=i.parse(Tt(p,o,t))):(u=!0,d=d==null?t[c]:i.parse(d),p=Tt(d,t,o)),l[c]=d,s[c]=p}),rC(l),rC(s);var h=this._minMaxSpan;u?f(l,s,t,o,!1):f(s,l,o,t,!0);function f(v,c,p,d,g){var y=g?"Span":"ValueSpan";$i(0,v,p,"all",h["min"+y],h["max"+y]);for(var m=0;m<2;m++)c[m]=Tt(v[m],p,d,!0),g&&(c[m]=i.parse(c[m]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=BH(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;to(i,function(l){var u=l.getData(),h=u.mapDimensionsAll(a);!h.length||(n==="weakFilter"?u.filterSelf(function(f){for(var v,c,p,d=0;d<h.length;d++){var g=u.get(h[d],f),y=!isNaN(g),m=g<o[0],_=g>o[1];if(y&&!m&&!_)return!0;y&&(p=!0),m&&(v=!0),_&&(c=!0)}return p&&v&&c}):to(h,function(f){if(n==="empty")l.setData(u=u.map(f,function(c){return s(c)?c:NaN}));else{var v={};v[f]=o,u.selectRange(v)}}),to(h,function(f){u.setApproximateExtent(o,f)}))});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,a=this._dataExtent;to(["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=Tt(a[0]+o,a,[0,100],!0):n!=null&&(o=Tt(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=tm(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 BH(r,e,t){var a=[Infinity,-Infinity];to(t,function(o){rO(a,o.getData(),e)});var i=r.getAxisModel(),n=ix(i.axis.scale,i,a).calculate();return[n.min,n.max]}var VH={getTargetSeries:function(r){function e(i){r.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(o,s){var l=r.getComponent(Ba(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 NH(i,n,s,r),t.push(o.__dzAxisProxy))});var a=Z();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]})}})}};function zH(r){r.registerAction("dataZoom",function(e,t){var a=EH(t,e);A(a,function(i){i.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var aC=!1;function bg(r){aC||(aC=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,VH),zH(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function FH(r){r.registerComponentModel(kH),r.registerComponentView(OH),bg(r)}var ir=function(){function r(){}return r}(),iC={};function eo(r,e){iC[r]=e}function nC(r){return iC[r]}var GH=function(r){E(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=nC(i);n&&(n.getDefaultOption&&(n.defaultOption=n.getDefaultOption(t)),at(a,n.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(ht);function HH(r,e,t){var a=e.getBoxLayoutParams(),i=e.get("padding"),n={width:t.getWidth(),height:t.getHeight()},o=qt(a,n,i);Di(e.get("orient"),r,e.get("itemGap"),o.width,o.height),Tu(r,a,n,i)}function oC(r,e){var t=An(e.get("padding")),a=e.getItemStyle(["color","opacity"]);return a.fill=e.get("backgroundColor"),r=new pt({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 WH=function(r){E(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("feature")||{},u=this._features||(this._features={}),h=[];A(l,function(c,p){h.push(p)}),new Ca(this._featureNames||[],h).add(f).update(f).remove(j(f,null)).execute(),this._featureNames=h;function f(c,p){var d=h[c],g=h[p],y=l[d],m=new xt(y,t,t.ecModel),_;if(n&&n.newTitle!=null&&n.featureName===d&&(y.title=n.newTitle),d&&!g){if(UH(d))_={onclick:m.option.onclick,featureName:d};else{var S=nC(d);if(!S)return;_=new S}u[d]=_}else if(_=u[g],!_)return;if(_.uid=bn("toolbox-feature"),_.model=m,_.ecModel=a,_.api=i,_ instanceof ir){if(!d&&g){_.dispose&&_.dispose(a,i);return}if(!m.get("show")||_.unusable){_.remove&&_.remove(a,i);return}}v(m,_,d),m.setIconStatus=function(x,b){var w=this.option,T=this.iconPaths;w.iconStatus=w.iconStatus||{},w.iconStatus[x]=b,T[x]&&(b==="emphasis"?Cr:Dr)(T[x])},_ instanceof ir&&_.render&&_.render(m,a,i,n)}function v(c,p,d){var g=c.getModel("iconStyle"),y=c.getModel(["emphasis","iconStyle"]),m=p instanceof ir&&p.getIcons?p.getIcons():c.get("icon"),_=c.get("title")||{},S,x;typeof m=="string"?(S={},S[d]=m):S=m,typeof _=="string"?(x={},x[d]=_):x=_;var b=c.iconPaths={};A(S,function(w,T){var C=$o(w,{},{x:-s/2,y:-s/2,width:s,height:s});C.setStyle(g.getItemStyle());var M=C.ensureState("emphasis");M.style=y.getItemStyle();var D=new gt({style:{text:x[T],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null},ignore:!0});C.setTextContent(D),xn({el:C,componentModel:t,itemName:T,formatterParamsExtra:{title:x[T]}}),C.__title=x[T],C.on("mouseover",function(){var L=y.getItemStyle(),I=t.get("orient")==="vertical"?t.get("right")==null?"right":"left":t.get("bottom")==null?"bottom":"top";D.setStyle({fill:y.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),C.setTextConfig({position:y.get("textPosition")||I}),D.ignore=!t.get("showTitle"),Cr(this)}).on("mouseout",function(){c.get(["iconStatus",T])!=="emphasis"&&Dr(this),D.hide()}),(c.get(["iconStatus",T])==="emphasis"?Cr:Dr)(C),o.add(C),C.on("click",U(p.onclick,p,a,i,T)),b[T]=C})}HH(o,t,i),o.add(oC(o.getBoundingRect(),t)),o.eachChild(function(c){var p=c.__title,d=c.ensureState("emphasis"),g=d.textConfig||(d.textConfig={}),y=c.getTextContent(),m=y&&y.states.emphasis;if(m&&!wt(m)&&p){var _=m.style||(m.style={}),S=wo(p,gt.makeFont(_)),x=c.x+o.x,b=c.y+o.y+s,w=!1;b+S.height>i.getHeight()&&(g.position="top",w=!0);var T=w?-5-S.height:s+8;x+S.width/2>i.getWidth()?(g.position=["100%",T],_.align="right"):x-S.width/2<0&&(g.position=[0,T],_.align="left")}})},e.prototype.updateView=function(t,a,i,n){A(this._features,function(o){o instanceof ir&&o.updateView&&o.updateView(o.model,a,i,n)})},e.prototype.remove=function(t,a){A(this._features,function(i){i instanceof ir&&i.remove&&i.remove(t,a)}),this.group.removeAll()},e.prototype.dispose=function(t,a){A(this._features,function(i){i instanceof ir&&i.dispose&&i.dispose(t,a)})},e.type="toolbox",e}(Et);function UH(r){return r.indexOf("my")===0}var sC=function(r){E(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")});if(typeof MouseEvent=="function"&&(et.browser.newEdge||!et.browser.ie&&!et.browser.edge)){var u=document.createElement("a");u.download=n+"."+s,u.target="_blank",u.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});u.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var f=l.split(","),v=f[0].indexOf("base64")>-1,c=o?decodeURIComponent(f[1]):f[1];v&&(c=atob(c));var p=n+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var d=c.length,g=new Uint8Array(d);d--;)g[d]=c.charCodeAt(d);var y=new Blob([g]);window.navigator.msSaveOrOpenBlob(y,p)}else{var m=document.createElement("iframe");document.body.appendChild(m);var _=m.contentWindow,S=_.document;S.open("image/svg+xml","replace"),S.write(c),S.close(),_.focus(),S.execCommand("SaveAs",!0,p),document.body.removeChild(m)}}else{var x=i.get("lang"),b='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',w=window.open();w.document.write(b),w.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.getLocale(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocale(["toolbox","saveAsImage","lang"])};return a},e}(ir);sC.prototype.unusable=!et.canvasSupported;var lC="__ec_magicType_stack__",YH=[["line","bar"],["stack"]],XH=function(r){E(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.getLocale(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return a},e.prototype.onclick=function(t,a,i){var n=this.model,o=n.get(["seriesIndex",i]);if(!!uC[i]){var s={series:[]},l=function(h){var f=h.subType,v=h.id,c=uC[i](f,v,h,n);c&&(X(c,h.option),s.series.push(c));var p=h.coordinateSystem;if(p&&p.type==="cartesian2d"&&(i==="line"||i==="bar")){var d=p.getAxesByScale("ordinal")[0];if(d){var g=d.dim,y=g+"Axis",m=h.getReferringComponents(y,Wt).models[0],_=m.componentIndex;s[y]=s[y]||[];for(var S=0;S<=_;S++)s[y][_]=s[y][_]||{};s[y][_].boundaryGap=i==="bar"}}};A(YH,function(h){lt(h,i)>=0&&A(h,function(f){n.setIconStatus(f,"normal")})}),n.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u;i==="stack"&&(u=at({stack:n.option.title.tiled,tiled:n.option.title.stack},n.option.title)),a.dispatchAction({type:"changeMagicType",currentType:i,newOption:s,newTitle:u,featureName:"magicType"})}},e}(ir),uC={line:function(r,e,t,a){if(r==="bar")return at({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 at({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")===lC;if(r==="line"||r==="bar")return a.setIconStatus("stack",i?"normal":"emphasis"),at({id:e,stack:i?"":lC},a.get(["option","stack"])||{},!0)}};Er({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var $h=new Array(60).join("-"),ro="	";function $H(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 ZH(r){var e=[];return A(r,function(t,a){var i=t.categoryAxis,n=t.valueAxis,o=n.dim,s=[" "].concat(H(t.series,function(c){return c.name})),l=[i.model.getCategories()];A(t.series,function(c){var p=c.getRawData();l.push(c.getRawData().mapArray(p.mapDimension(o),function(d){return d}))});for(var u=[s.join(ro)],h=0;h<l[0].length;h++){for(var f=[],v=0;v<l.length;v++)f.push(l[v][h]);u.push(f.join(ro))}e.push(u.join(`
`))}),e.join(`

`+$h+`

`)}function qH(r){return H(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+ro:"")+i.join(ro))}),a.join(`
`)}).join(`

`+$h+`

`)}function KH(r){var e=$H(r);return{value:kt([ZH(e.seriesGroupByCategoryAxis),qH(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`

`+$h+`

`),meta:e.meta}}function Zh(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function QH(r){var e=r.slice(0,r.indexOf(`
`));if(e.indexOf(ro)>=0)return!0}var wg=new RegExp("["+ro+"]+","g");function JH(r){for(var e=r.split(/\n+/g),t=Zh(e.shift()).split(wg),a=[],i=H(t,function(l){return{name:l,data:[]}}),n=0;n<e.length;n++){var o=Zh(e[n]).split(wg);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 jH(r){for(var e=r.split(/\n+/g),t=Zh(e.shift()),a=[],i=0;i<e.length;i++){var n=Zh(e[i]);if(!!n){var o=n.split(wg),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 h=0;h<o.length;h++)l.push(+o[h]);l.length===1&&(u?a[i].value=l[0]:a[i]=l[0])}}return{name:t,data:a}}function t4(r,e){var t=r.split(new RegExp(`
*`+$h+`
*`,"g")),a={series:[]};return A(t,function(i,n){if(QH(i)){var o=JH(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=jH(i);a.series.push(o)}}),a}var e4=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){var i=a.getDom(),n=this.model;this._dom&&i.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right: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"),h=document.createElement("textarea");u.style.cssText="display:block;width:100%;overflow:auto;";var f=n.get("optionToContent"),v=n.get("contentToOption"),c=KH(t);if(typeof f=="function"){var p=f(a.getOption());typeof p=="string"?u.innerHTML=p:so(p)&&u.appendChild(p)}else u.appendChild(h),h.readOnly=n.get("readOnly"),h.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",h.style.color=n.get("textColor"),h.style.borderColor=n.get("textareaBorderColor"),h.style.backgroundColor=n.get("textareaColor"),h.value=c.value;var d=c.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:0;left:0;right:0;";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",m=document.createElement("div"),_=document.createElement("div");y+=";background-color:"+n.get("buttonColor"),y+=";color:"+n.get("buttonTextColor");var S=this;function x(){i.removeChild(o),S._dom=null}Mf(m,"click",x),Mf(_,"click",function(){if(v==null&&f!=null||v!=null&&f==null){x();return}var b;try{typeof v=="function"?b=v(u,a.getOption()):b=t4(h.value,d)}catch(w){throw x(),new Error("Data view format error "+w)}b&&a.dispatchAction({type:"changeDataView",newOption:b}),x()}),m.innerHTML=l[1],_.innerHTML=l[2],_.style.cssText=y,m.style.cssText=y,!n.get("readOnly")&&g.appendChild(_),g.appendChild(m),o.appendChild(s),o.appendChild(u),o.appendChild(g),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.getLocale(["toolbox","dataView","title"]),lang:t.getLocale(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return a},e}(ir);function r4(r,e){return H(r,function(t,a){var i=e&&e[a];if(J(i)&&!B(i)){var n=J(t)&&!B(t);n||(t={value:t});var o=i.name!=null&&t.name==null;return t=X(t,i),o&&delete t.name,t}else return t})}Er({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:r4(a.data,n)})}}),e.mergeOption(X({series:t},r.newOption))});var hC=A,fC=At();function a4(r,e){var t=Tg(r);hC(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 i4(r){var e=Tg(r),t=e[e.length-1];e.length>1&&e.pop();var a={};return hC(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 n4(r){fC(r).snapshots=null}function o4(r){return Tg(r).length}function Tg(r){var e=fC(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var s4=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){n4(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.getLocale(["toolbox","restore","title"])};return a},e}(ir);Er({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var Ag=["dataToPoint","pointToData"],l4=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Cg=function(){function r(e,t,a){var i=this;this._targetInfoList=[];var n=vC(t,e);A(u4,function(o,s){(!a||!a.include||lt(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=Mg[a.brushType](0,n,i);a.__rangeOffset={offset:gC[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=Mg[i.brushType](1,o,i.range);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=Mg[a.brushType](0,i.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?gC[a.brushType](n.values,o.offset,h4(n.xyMinMax,o.xyMinMax)):n.values}},this)},r.prototype.makePanelOpts=function(e,t){return H(this._targetInfoList,function(a){var i=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:t?t(a):null,clipPath:hT(i),isTargetByCursor:vT(i,e,a.coordSysModel),getLinearBrushOtherExtent:fT(i)}})},r.prototype.controlSeries=function(e,t,a){var i=this.findTargetInfo(e,a);return i===!0||i&&lt(i.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var a=this._targetInfoList,i=vC(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<cC.length;l++)if(cC[l](i,o))return o}return!0},r}();function Dg(r){return r[0]>r[1]&&r.reverse(),r}function vC(r,e){return oi(r,e,{includeMainTypes:l4})}var u4={grid:function(r,e){var t=r.xAxisModels,a=r.yAxisModels,i=r.gridModels,n=Z(),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,h=[];A(u.getCartesians(),function(f,v){(lt(t,f.getAxis("x").model)>=0||lt(a,f.getAxis("y").model)>=0)&&h.push(f)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:h[0],coordSyses:h,getPanelRect:pC.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:pC.geo})})}},cC=[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}],pC={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(wi(r)),e}},Mg={lineX:j(dC,0),lineY:j(dC,1),rect:function(r,e,t){var a=e[Ag[r]]([t[0][0],t[1][0]]),i=e[Ag[r]]([t[0][1],t[1][1]]),n=[Dg([a[0],i[0]]),Dg([a[1],i[1]])];return{values:n,xyMinMax:n}},polygon:function(r,e,t){var a=[[Infinity,-Infinity],[Infinity,-Infinity]],i=H(t,function(n){var o=e[Ag[r]](n);return a[0][0]=Math.min(a[0][0],o[0]),a[1][0]=Math.min(a[1][0],o[1]),a[0][1]=Math.max(a[0][1],o[0]),a[1][1]=Math.max(a[1][1],o[1]),o});return{values:i,xyMinMax:a}}};function dC(r,e,t,a){var i=t.getAxis(["x","y"][r]),n=Dg(H([0,1],function(s){return e?i.coordToData(i.toLocalCoord(a[s])):i.toGlobalCoord(i.dataToCoord(a[s]))})),o=[];return o[r]=n,o[1-r]=[NaN,NaN],{values:n,xyMinMax:o}}var gC={lineX:j(yC,0),lineY:j(yC,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 H(r,function(a,i){return[a[0]-t[0]*e[i][0],a[1]-t[1]*e[i][1]]})}};function yC(r,e,t,a){return[e[0]-a[r]*t[0],e[1]-a[r]*t[1]]}function h4(r,e){var t=mC(r),a=mC(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 mC(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var Lg=A,f4=xL("toolbox-dataZoom_"),v4=function(r){E(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 bd(i.getZr()),this._brushController.on("brush",U(this._onBrush,this)).mount()),d4(t,a,this,n,i),p4(t,a)},e.prototype.onclick=function(t,a,i){c4[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 Cg(Ig(this.model),n,{include:["grid"]});o.matchOutputRanges(a,n,function(u,h,f){if(f.type==="cartesian2d"){var v=u.brushType;v==="rect"?(s("x",f,h[0]),s("y",f,h[1])):s({lineX:"x",lineY:"y"}[v],f,h)}}),a4(n,i),this._dispatchZoomAction(i);function s(u,h,f){var v=h.getAxis(u),c=v.model,p=l(u,c,n),d=p.findRepresentativeAxisProxy(c).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(f=$i(0,f.slice(),v.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),p&&(i[p.id]={dataZoomId:p.id,startValue:f[0],endValue:f[1]})}function l(u,h,f){var v;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(c){var p=c.getAxisModel(u,h.componentIndex);p&&(v=c)}),v}},e.prototype._dispatchZoomAction=function(t){var a=[];Lg(t,function(i,n){a.push($(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.getLocale(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return a},e}(ir),c4={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(i4(this.ecModel))}};function Ig(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 p4(r,e){r.setIconStatus("back",o4(e)>1?"emphasis":"normal")}function d4(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 Cg(Ig(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)}eP("dataZoom",function(r){var e=r.getComponent("toolbox",0);if(!e)return;var t=e.getModel(["feature","dataZoom"]),a=[],i=Ig(t),n=oi(r,i);Lg(n.xAxisModels,function(s){return o(s,"xAxis","xAxisIndex")}),Lg(n.yAxisModels,function(s){return o(s,"yAxis","yAxisIndex")});function o(s,l,u){var h=s.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:t.get("filterMode",!0)||"filter",id:f4+l+h};f[u]=h,a.push(f)}return a});function g4(r){r.registerComponentModel(GH),r.registerComponentView(WH),eo("saveAsImage",sC),eo("magicType",XH),eo("dataView",e4),eo("dataZoom",v4),eo("restore",s4),st(FH)}var y4=function(r){E(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={zlevel:0,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}(ht);function _C(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function SC(r){if(!!et.domSupported){for(var e=document.documentElement.style,t=0,a=r.length;t<a;t++)if(r[t]in e)return r[t]}}var Pg=SC(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),m4=SC(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function xC(r,e){if(!r)return e;e=r_(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function bC(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?e?t[e]:t:null}var _4=xC(m4,"transition"),wC=xC(Pg,"transform"),S4="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(et.transform3dSupported?"will-change:transform;":"");function x4(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function b4(r,e,t){if(!ft(t)||t==="inside")return"";e=Ai(e);var a=x4(t),i=a+":-6px;",n=wC+":";lt(["left","right"],a)>-1?(i+="top:50%",n+="translateY(-50%) rotate("+(a==="left"?-225:-45)+"deg)"):(i+="left:50%",n+="translateX(-50%) rotate("+(a==="top"?225:45)+"deg)");var o=e+" solid 1px;",s=["position:absolute;width:10px;height:10px;",i+";"+n+";","border-bottom:"+o,"border-right:"+o,"background-color:"+r+";","box-shadow:8px 8px 16px -3px #000;"];return'<div style="'+s.join("")+'"></div>'}function w4(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+=et.transformSupported?","+Pg+a:",left"+a+",top"+a),_4+":"+i}function TC(r,e,t){var a=r.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!et.transformSupported)return t?"top:"+i+";left:"+a+";":[["top",i],["left",a]];var n=et.transform3dSupported,o="translate"+(n?"3d":"")+"("+a+","+i+(n?",0":"")+")";return t?"top:0;left:0;"+wC+":"+o+";":[["top",0],["left",0],[Pg,o]]}function T4(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 A4(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"),h=r.getModel("textStyle"),f=e1(r,"html"),v=l+"px "+u+"px "+o+"px "+s;return a.push("box-shadow:"+v),e&&i&&a.push(w4(i,t)),n&&(et.canvasSupported?a.push("background-color:"+n):(a.push("background-color:#"+Iy(n)),a.push("filter:alpha(opacity=70)"))),A(["width","color","radius"],function(c){var p="border-"+c,d=r_(p),g=r.get(d);g!=null&&a.push(p+":"+g+(c==="color"?"":"px"))}),a.push(T4(h)),f!=null&&a.push("padding:"+An(f).join("px ")+"px"),a.join(";")+";"}function AC(r,e,t,a,i){var n=e&&e.painter;if(t){var o=n&&n.getViewportRoot();o&&dM(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 C4=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,et.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;AC(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,h=n.painter.getViewportRoot();Ve(h,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=bC(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=S4+A4(e,!this._firstShow,this._longHide)+TC(n[0],n[1],!0)+("border-color:"+Ai(t)+";")+(e.get("extraCssText")||"")+(";pointer-event:"+(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){if(e!=null){var o=this.el;if(ft(n)&&a.get("trigger")==="item"&&!_C(a)&&(e+=b4(a.get("backgroundColor"),i,n)),ft(e))o.innerHTML=e;else if(e){o.innerHTML="",B(e)||(e=[e]);for(var s=0;s<e.length;s++)so(e[s])&&e[s].parentNode!==o&&o.appendChild(e[s])}}},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return[e.clientWidth,e.clientHeight]},r.prototype.moveTo=function(e,t){var a=this._styleCoord;if(AC(a,this._zr,this._appendToBody,e,t),a[0]!=null&&a[1]!=null){var i=this.el.style,n=TC(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",et.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(U(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},r.prototype.getOuterSize=function(){var e=this.el.clientWidth,t=this.el.clientHeight,a=bC(this.el);return a&&(e+=parseInt(a.borderLeftWidth,10)+parseInt(a.borderRightWidth,10),t+=parseInt(a.borderTopWidth,10)+parseInt(a.borderBottomWidth,10)),{width:e,height:t}},r}(),D4=function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=e.getZr(),DC(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){J(e)&&yt(""),this.el&&this._zr.remove(this.el);var o=a.getModel("textStyle");this.el=new gt({style:{rich:t.richTextStyles,text:e,lineHeight:22,backgroundColor:a.get("backgroundColor"),borderRadius:a.get("borderRadius"),borderWidth:1,borderColor:i,shadowColor:a.get("shadowColor"),shadowBlur:a.get("shadowBlur"),shadowOffsetX:a.get("shadowOffsetX"),shadowOffsetY:a.get("shadowOffsetY"),textShadowColor:o.get("textShadowColor"),textShadowBlur:o.get("textShadowBlur")||0,textShadowOffsetX:o.get("textShadowOffsetX")||0,textShadowOffsetY:o.get("textShadowOffsetY")||0,fill:a.get(["textStyle","color"]),padding:e1(a,"richText"),verticalAlign:"top",align:"left"},z:a.get("z")}),this._zr.add(this.el);var s=this;this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),a=CC(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;DC(i,this._zr,e,t),e=i[0],t=i[1];var n=a.style,o=Va(n.borderWidth||0),s=CC(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(U(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.getOuterSize=function(){var e=this.getSize();return{width:e[0],height:e[1]}},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function Va(r){return Math.max(0,r)}function CC(r){var e=Va(r.shadowBlur||0),t=Va(r.shadowOffsetX||0),a=Va(r.shadowOffsetY||0);return{left:Va(e-t),right:Va(e+t),top:Va(e-a),bottom:Va(e+a)}}function DC(r,e,t,a){r[0]=t,r[1]=a,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var MC=U,ll=A,LC=F,M4=new pt({shape:{x:-1,y:-1,width:2,height:2}}),L4=function(r){E(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(!et.node){var i=t.getComponent("tooltip"),n=i.get("renderMode");this._renderMode=ML(n),this._tooltipContent=this._renderMode==="richText"?new D4(a):new C4(a.getDom(),a,{appendToBody:i.get("appendToBody",!0)})}},e.prototype.render=function(t,a,i){if(!et.node){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()}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,a=t.get("triggerOn");EA("itemTooltip",this._api,MC(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;if(this._lastX!=null&&this._lastY!=null&&t.get("triggerOn")!=="none"){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&n.manuallyShowTip(t,a,i,{x:n._lastX,y:n._lastY,dataByCoordSys:n._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,a,i,n){if(!(n.from===this.uid||et.node)){var o=IC(n,i);this._ticket="";var s=n.dataByCoordSys,l=E4(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 h=M4;h.x=n.x,h.y=n.y,h.update(),Q(h).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:h},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 f=OA(n,a),v=f.point[0],c=f.point[1];v!=null&&c!=null&&this._tryShow({offsetX:v,offsetY:c,target:f.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(IC(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 h=u.getData(),f=qh([h.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.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;Pn(i,function(u){if(Q(u).dataIndex!=null)return s=u,!0;if(Q(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=U(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=qh([a.tooltipOption],n),l=this._renderMode,u=[],h=Jt("section",{blocks:[],noHeader:!0}),f=[],v=new bc;ll(t,function(m){ll(m.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!S||x==null)){var b=DA(x,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),w=Jt("section",{header:b,noHeader:!Ha(b),sortBlocks:!0,blocks:[]});h.blocks.push(w),A(_.seriesDataIndices,function(T){var C=i.getSeriesByIndex(T.seriesIndex),M=T.dataIndexInside,D=C.getDataParams(M);D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=fp(S.axis,{value:x}),D.axisValueLabel=b,D.marker=v.makeTooltipMarker("item",Ai(D.color),l);var L=z_(C.formatTooltip(M,!0,null));L.markupFragment&&w.blocks.push(L.markupFragment),L.markupText&&f.push(L.markupText),u.push(D)})}})}),h.blocks.reverse(),f.reverse();var c=a.position,p=s.get("order"),d=Q_(h,v,l,p,i.get("useUTC"),s.get("textStyle"));d&&f.unshift(d);var g=l==="richText"?`

`:"<br/>",y=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],c,null,v)})},e.prototype._showSeriesItemTooltip=function(t,a,i){var n=this._ecModel,o=Q(a),s=o.seriesIndex,l=n.getSeriesByIndex(s),u=o.dataModel||l,h=o.dataIndex,f=o.dataType,v=u.getData(f),c=this._renderMode,p=t.positionDefault,d=qh([v.getItemModel(h),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(h,f),m=new bc;y.marker=m.makeTooltipMarker("item",Ai(y.color),c);var _=z_(u.formatTooltip(h,!1,f)),S=d.get("order"),x=_.markupFragment?Q_(_.markupFragment,m,c,S,n.get("useUTC"),d.get("textStyle")):_.markupText,b="item_"+u.name+"_"+h;this._showOrMove(d,function(){this._showTooltipContent(d,x,y,b,t.offsetX,t.offsetY,t.position,t.target,m)}),i({type:"showTip",dataIndexInside:h,dataIndex:v.getRawIndex(h),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,a,i){var n=Q(a),o=n.tooltipConfig,s=o.option;if(ft(s)){var l=s;s={content:l,formatter:l}}var u=[s],h=this._ecModel.getComponent(n.componentMainType,n.componentIndex);h&&u.push(h);var f=t.positionDefault,v=qh(u,this._tooltipModel,f?{position:f}:null),c=v.get("content"),p=Math.random()+"",d=new bc;this._showOrMove(v,function(){var g=$(v.get("formatterParams")||{});this._showTooltipContent(v,c,g,p,t.offsetX,t.offsetY,t.position,a,d)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,a,i,n,o,s,l,u,h){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var f=this._tooltipContent,v=t.get("formatter");l=l||t.get("position");var c=a,p=this._getNearestPoint([o,s],i,t.get("trigger"),t.get("borderColor")),d=p.color;if(v&&ft(v)){var g=t.ecModel.get("useUTC"),y=B(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;c=v,m&&(c=gu(y.axisValue,c,g)),c=i_(c,i,!0)}else if(wt(v)){var _=MC(function(S,x){S===this._ticket&&(f.setContent(x,h,t,d,l),this._updatePosition(t,l,o,s,f,i,u))},this);this._ticket=n,c=v(i,n,_)}f.setContent(c,h,t,d,l),f.show(t,d),this._updatePosition(t,l,o,s,f,i,u)}},e.prototype._getNearestPoint=function(t,a,i,n){if(i==="axis"||B(a))return{color:n||(this._renderMode==="html"?"#fff":"none")};if(!B(a))return{color:n||a.color||a.borderColor}},e.prototype._updatePosition=function(t,a,i,n,o,s,l){var u=this._api.getWidth(),h=this._api.getHeight();a=a||t.get("position");var f=o.getSize(),v=t.get("align"),c=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),wt(a)&&(a=a([i,n],s,o.el,p,{viewSize:[u,h],contentSize:f.slice()})),B(a))i=LC(a[0],u),n=LC(a[1],h);else if(J(a)){var d=a;d.width=f[0],d.height=f[1];var g=qt(d,{width:u,height:h});i=g.x,n=g.y,v=null,c=null}else if(ft(a)&&l){var y=R4(a,p,f);i=y[0],n=y[1]}else{var y=I4(i,n,o,u,h,v?null:20,c?null:20);i=y[0],n=y[1]}if(v&&(i-=PC(v)?f[0]/2:v==="right"?f[0]:0),c&&(n-=PC(c)?f[1]/2:c==="bottom"?f[1]:0),_C(t)){var y=P4(i,n,o,u,h);i=y[0],n=y[1]}o.moveTo(i,n)},e.prototype._updateContentNotChangedOnAxis=function(t){var a=this._lastDataByCoordSys,i=!!a&&a.length===t.length;return i&&ll(a,function(n,o){var s=n.dataByAxis||[],l=t[o]||{},u=l.dataByAxis||[];i=i&&s.length===u.length,i&&ll(s,function(h,f){var v=u[f]||{},c=h.seriesDataIndices||[],p=v.seriesDataIndices||[];i=i&&h.value===v.value&&h.axisType===v.axisType&&h.axisId===v.axisId&&c.length===p.length,i&&ll(c,function(d,g){var y=p[g];i=i&&d.seriesIndex===y.seriesIndex&&d.dataIndex===y.dataIndex})})}),this._lastDataByCoordSys=t,!!i},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,a){et.node||(this._tooltipContent.dispose(),cg("itemTooltip",a))},e.type="tooltip",e}(Et);function qh(r,e,t){var a=e.ecModel,i;t?(i=new xt(t,a,a),i=new xt(e.option,i,a)):i=e;for(var n=r.length-1;n>=0;n--){var o=r[n];o&&(o instanceof xt&&(o=o.get("tooltip",!0)),ft(o)&&(o={formatter:o}),o&&(i=new xt(o,i,a)))}return i}function IC(r,e){return r.dispatchAction||U(e.dispatchAction,e)}function I4(r,e,t,a,i,n,o){var s=t.getOuterSize(),l=s.width,u=s.height;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 P4(r,e,t,a,i){var n=t.getOuterSize(),o=n.width,s=n.height;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 R4(r,e,t){var a=t[0],i=t[1],n=10,o=5,s=0,l=0,u=e.width,h=e.height;switch(r){case"inside":s=e.x+u/2-a/2,l=e.y+h/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-n;break;case"bottom":s=e.x+u/2-a/2,l=e.y+h+n;break;case"left":s=e.x-a-n-o,l=e.y+h/2-i/2;break;case"right":s=e.x+u+n+o,l=e.y+h/2-i/2}return[s,l]}function PC(r){return r==="center"||r==="middle"}function E4(r,e,t){var a=lv(r).queryOptionMap,i=a.keys()[0];if(!(!i||i==="series")){var n=Io(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 h=Q(u).tooltipConfig;if(h&&h.name===r.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function k4(r){st(ol),r.registerComponentModel(y4),r.registerComponentView(L4),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})}var O4=["rect","polygon","keep","clear"];function N4(r,e){var t=Rt(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;B(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),B4(s),e&&!s.length&&s.push.apply(s,O4)}}function B4(r){var e={};A(r,function(t){e[t]=1}),r.length=0,A(e,function(t,a){r.push(a)})}var RC=A;function EC(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function Rg(r,e,t){var a={};return RC(e,function(n){var o=a[n]=i();RC(r[n],function(s,l){if(!!jt.isValidType(l)){var u={type:l,visual:s};t&&t(u,n),o[l]=new jt(u),l==="opacity"&&(u=$(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new jt(u))}})}),a;function i(){var n=function(){};n.prototype.__hidden=n.prototype;var o=new n;return o}}function kC(r,e,t){var a;A(t,function(i){e.hasOwnProperty(i)&&EC(e[i])&&(a=!0)}),a&&A(t,function(i){e.hasOwnProperty(i)&&EC(e[i])?r[i]=$(e[i]):delete r[i]})}function V4(r,e,t,a,i,n){var o={};A(r,function(f){var v=jt.prepareVisualTypes(e[f]);o[f]=v});var s;function l(f){return Ac(t,s,f)}function u(f,v){b1(t,s,f,v)}n==null?t.each(h):t.each([n],h);function h(f,v){s=n==null?f:v;var c=t.getRawDataItem(s);if(!(c&&c.visualMap===!1))for(var p=a.call(i,f),d=e[p],g=o[p],y=0,m=g.length;y<m;y++){var _=g[y];d[_]&&d[_].applyVisual(f,l,u)}}}function z4(r,e,t,a){var i={};return A(r,function(n){var o=jt.prepareVisualTypes(e[n]);i[n]=o}),{progress:function(o,s){var l;a!=null&&(l=s.getDimension(a));function u(S){return Ac(s,f,S)}function h(S,x){b1(s,f,S,x)}for(var f;(f=o.next())!=null;){var v=s.getRawDataItem(f);if(!(v&&v.visualMap===!1))for(var c=a!=null?s.get(l,f):f,p=t(c),d=e[p],g=i[p],y=0,m=g.length;y<m;y++){var _=g[y];d[_]&&d[_].applyVisual(c,u,h)}}}}}function F4(r){var e=r.brushType,t={point:function(a){return OC[e].point(a,t,r)},rect:function(a){return OC[e].rect(a,t,r)}};return t}var OC={lineX:NC(0),lineY:NC(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])&&Ei(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(Ei(a,i,n)||Ei(a,i+o,n)||Ei(a,i,n+s)||Ei(a,i+o,n+s)||ot.create(r).contain(l[0],l[1])||Zo(i,n,i+o,n,a)||Zo(i,n,i,n+s,a)||Zo(i+o,n,i+o,n+s,a)||Zo(i,n+s,i+o,n+s,a))return!0}}};function NC(r){var e=["x","y"],t=["width","height"];return{point:function(a,i,n){if(a){var o=n.range,s=a[r];return ul(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(),ul(s[0],o)||ul(s[1],o)||ul(o[0],s)||ul(o[1],s)}}}}function ul(r,e){return e[0]<=r&&r<=e[1]}var BC=["inBrush","outOfBrush"],Eg="__ecBrushSelect",kg="__ecInBrushSelectEvent";function VC(r){r.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new Cg(e.option,r);t.setInputRanges(e.areas,r)})}function G4(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})}),VC(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:$(o.areas),selected:[]};a.push(l);var u=o.option,h=u.brushLink,f=[],v=[],c=[],p=!1;s||(i=u.throttleType,n=u.throttleDelay);var d=H(o.areas,function(x){var b=Y4[x.brushType],w=X({boundingRect:b?b(x):void 0},x);return w.selectors=F4(w),w}),g=Rg(o.option,BC,function(x){x.mappingMethod="fixed"});B(h)&&A(h,function(x){f[x]=1});function y(x){return h==="all"||!!f[x]}function m(x){return!!x.length}r.eachSeries(function(x,b){var w=c[b]=[];x.subType==="parallel"?_(x,b):S(x,b,w)});function _(x,b){var w=x.coordinateSystem;p=p||w.hasAxisBrushed(),y(b)&&w.eachActiveState(x.getData(),function(T,C){T==="active"&&(v[C]=1)})}function S(x,b,w){if(!(!x.brushSelector||U4(o,b))&&(A(d,function(C){o.brushTargetManager.controlSeries(C,x,r)&&w.push(C),p=p||m(w)}),y(b)&&m(w))){var T=x.getData();T.each(function(C){zC(x,w,T,C)&&(v[C]=1)})}}r.eachSeries(function(x,b){var w={seriesId:x.id,seriesIndex:b,seriesName:x.name,dataIndex:[]};l.selected.push(w);var T=c[b],C=x.getData(),M=y(b)?function(D){return v[D]?(w.dataIndex.push(C.getRawIndex(D)),"inBrush"):"outOfBrush"}:function(D){return zC(x,T,C,D)?(w.dataIndex.push(C.getRawIndex(D)),"inBrush"):"outOfBrush"};(y(b)?p:m(T))&&V4(BC,g,C,M)})}),H4(e,i,n,a,t)}function H4(r,e,t,a,i){if(!!i){var n=r.getZr();if(!n[kg]){n[Eg]||(n[Eg]=W4);var o=ls(n,Eg,t,e);o(r,a)}}}function W4(r,e){if(!r.isDisposed()){var t=r.getZr();t[kg]=!0,r.dispatchAction({type:"brushSelect",batch:e}),t[kg]=!1}}function zC(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 U4(r,e){var t=r.option.seriesIndex;return t!=null&&t!=="all"&&(B(t)?lt(t,e)<0:e!==t)}var Y4={rect:function(r){return FC(r.range)},polygon:function(r){for(var e,t=r.range,a=0,i=t.length;a<i;a++){e=e||[[Infinity,-Infinity],[Infinity,-Infinity]];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&&FC(e)}};function FC(r){return new ot(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var X4=function(r){E(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 bd(a.getZr())).on("brush",U(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){VC(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:$(i),$from:a}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:$(i),$from:a})},e.type="brush",e}(Et),$4="#ddd",Z4=function(r){E(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&&kC(i,t,["inBrush","outOfBrush"]);var n=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:$4},n.hasOwnProperty("liftZ")||(n.liftZ=5)},e.prototype.setAreas=function(t){!t||(this.areas=H(t,function(a){return GC(this.option,a)},this))},e.prototype.setBrushOption=function(t){this.brushOption=GC(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}(ht);function GC(r,e){return at({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new xt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var q4=["rect","polygon","lineX","lineY","keep","clear"],K4=function(r){E(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:q4.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.getLocale(["toolbox","brush","title"])};return a},e}(ir);function Q4(r){r.registerComponentView(X4),r.registerComponentModel(Z4),r.registerPreprocessor(N4),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,G4),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"},function(){}),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},function(){}),eo("brush",K4)}var J4=function(r){E(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={zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(ht),j4=function(r){E(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=vt(t.get("textBaseline"),t.get("textVerticalAlign")),h=new gt({style:Ft(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=h.getBoundingRect(),v=t.get("subtext"),c=new gt({style:Ft(s,{text:v,fill:s.getTextColor(),y:f.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),g=t.get("triggerEvent",!0);h.silent=!p&&!g,c.silent=!d&&!g,p&&h.on("click",function(){bu(p,"_"+t.get("target"))}),d&&c.on("click",function(){bu(d,"_"+t.get("subtarget"))}),Q(h).eventData=Q(c).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,n.add(h),v&&n.add(c);var y=n.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=qt(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};h.setStyle(S),c.setStyle(S),y=n.getBoundingRect();var x=_.margin,b=t.getItemStyle(["color","opacity"]);b.fill=t.get("backgroundColor");var w=new pt({shape:{x:y.x-x[3],y:y.y-x[0],width:y.width+x[1]+x[3],height:y.height+x[0]+x[2],r:t.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});n.add(w)}},e.type="title",e}(Et);function tW(r){r.registerComponentModel(J4),r.registerComponentView(j4)}var HC=function(r){E(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,h){var f=$t(Do(u),""),v;J(u)?(v=$(u),v.value=h):v=h,o.push(v),n.push(f)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new xe([{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={zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(ht),WC=function(r){E(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=ya(HC.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}(HC);Ht(WC,yc.prototype);var eW=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(Et),rW=function(r){E(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}(gr),Og=Math.PI,UC=At(),aW=function(r){E(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 h=l.scale.getLabel({value:u});return Jt("nameValue",{noName:!0,value:h})},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=nW(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?"+":"-":ft(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"},h={horizontal:0,vertical:Og/2},f=n==="vertical"?o.height:o.width,v=t.getModel("controlStyle"),c=v.get("show",!0),p=c?v.get("itemSize"):0,d=c?v.get("itemGap"):0,g=p+d,y=t.get(["label","rotate"])||0;y=y*Og/180;var m,_,S,x=v.get("position",!0),b=c&&v.get("showPlayBtn",!0),w=c&&v.get("showPrevBtn",!0),T=c&&v.get("showNextBtn",!0),C=0,M=f;x==="left"||x==="bottom"?(b&&(m=[0,0],C+=g),w&&(_=[C,0],C+=g),T&&(S=[M-p,0],M-=g)):(b&&(m=[M-p,0],M-=g),w&&(_=[0,0],C+=g),T&&(S=[M-p,0],M-=g));var D=[C,M];return t.get("inverse")&&D.reverse(),{viewRect:o,mainLength:f,orient:n,rotation:h[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:D,controlSize:p,controlGap:d}},e.prototype._position=function(t,a){var i=this._mainGroup,n=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=ze(),l=o.x,u=o.y+o.height;yr(s,s,[-l,-u]),qa(s,s,-Og/2),yr(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var h=m(o),f=m(i.getBoundingRect()),v=m(n.getBoundingRect()),c=[i.x,i.y],p=[n.x,n.y];p[0]=c[0]=h[0][0];var d=t.labelPosOpt;if(d==null||ft(d)){var g=d==="+"?0:1;_(c,f,h,1,g),_(p,v,h,1,1-g)}else{var g=d>=0?0:1;_(c,f,h,1,g),p[1]=c[1]+d}i.setPosition(c),n.setPosition(p),i.rotation=n.rotation=t.rotation,y(i),y(n);function y(S){S.originX=h[0][0]-S.x,S.originY=h[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,x,b,w,T){S[w]+=b[w][T]-x[w][T]}},e.prototype._createAxis=function(t,a){var i=a.getData(),n=a.get("axisType"),o=iW(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.niceTicks();var l=new rW("value",o,t.axisExtent,n);return l.model=a,l},e.prototype._createGroup=function(t){var a=this[t]=new q;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 Qt({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 Qt({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:X({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 h=i.dataToCoord(u.value),f=s.getItemModel(u.value),v=f.getModel("itemStyle"),c=f.getModel(["emphasis","itemStyle"]),p=f.getModel(["progress","itemStyle"]),d={x:h,y:0,onclick:U(o._changeTimeline,o,u.value)},g=YC(f,v,a,d);g.ensureState("emphasis").style=c.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),Lt(g);var y=Q(g);f.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(h){var f=h.tickValue,v=l.getItemModel(f),c=v.getModel("label"),p=v.getModel(["emphasis","label"]),d=v.getModel(["progress","label"]),g=i.dataToCoord(h.tickValue),y=new gt({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:U(o._changeTimeline,o,f),silent:!1,style:Ft(c,{text:h.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Ft(p),y.ensureState("progress").style=Ft(d),a.add(y),Lt(y),UC(y).dataIndex=f,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(),h=n.getPlayState(),f=n.get("inverse",!0);v(t.nextBtnPosition,"next",U(this._changeTimeline,this,f?"-":"+")),v(t.prevBtnPosition,"prev",U(this._changeTimeline,this,f?"+":"-")),v(t.playPosition,h?"stop":"play",U(this._handlePlayClick,this,!h),!0);function v(c,p,d,g){if(!!c){var y=He(vt(n.get(["controlStyle",p+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=oW(n,p+"Icon",m,{x:c[0],y:c[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:d});_.ensureState("emphasis").style=u,a.add(_),Lt(_)}}},e.prototype._renderCurrentPointer=function(t,a,i,n){var o=n.getData(),s=n.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,h={onCreate:function(f){f.draggable=!0,f.drift=U(u._handlePointerDrag,u),f.ondragend=U(u._handlePointerDragend,u),XC(f,u._progressLine,s,i,n,!0)},onUpdate:function(f){XC(f,u._progressLine,s,i,n)}};this._currentPointer=YC(l,l,this._mainGroup,{},this._currentPointer,h)},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=Ue(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 fr(t,a,!0)},e.prototype._findNearestTick=function(t){var a=this.model.getData(),i=Infinity,n,o=this._axis;return a.each(["value"],function(s,l){var u=o.dataToCoord(s),h=Math.abs(u-t);h<i&&(i=h,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",UC(i[n]).dataIndex<=t)},e.type="timeline.slider",e}(eW);function iW(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new rh({ordinalMeta:r.getCategories(),extent:[Infinity,-Infinity]});case"time":return new up({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new zi}}function nW(r,e){return qt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},r.get("padding"))}function oW(r,e,t,a){var i=a.style,n=$o(r.get(["controlStyle",e]),a||{},new ot(t[0],t[1],t[2],t[3]));return i&&n.setStyle(i),n}function YC(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=Yt(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=at({rectHover:!0,z2:100},a,!0);var u=r.get("symbolSize");u=u instanceof Array?u.slice():[+u,+u],a.scaleX=u[0]/2,a.scaleY=u[1]/2;var h=r.get("symbolOffset");h&&(a.x=a.x||0,a.y=a.y||0,a.x+=F(h[0],u[0]),a.y+=F(h[1],u[1]));var f=r.get("symbolRotate");return a.rotation=(f||0)*Math.PI/180||0,i.attr(a),i.updateTransform(),i}function XC(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)}}}function sW(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t){var a=t.getComponent("timeline");return a&&e.currentIndex!=null&&(a.setCurrentIndex(e.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.setPlayState(!1)),t.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),X({currentIndex:a.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 lW(r){var e=r&&r.timeline;B(e)||(e=e?[e]:[]),A(e,function(t){!t||uW(t)})}function uW(r){var e=r.type,t={number:"value",time:"time"};if(t[e]&&(r.axisType=t[e],delete r.type),$C(r),ji(r,"controlPosition")){var a=r.controlStyle||(r.controlStyle={});ji(a,"position")||(a.position=r.controlPosition),a.position==="none"&&!ji(a,"show")&&(a.show=!1,delete a.position),delete r.controlPosition}A(r.data||[],function(i){J(i)&&!B(i)&&(!ji(i,"value")&&ji(i,"name")&&(i.value=i.name),$C(i))})}function $C(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]&&!ji(i,s)&&(i[s]=o)}),t.label&&!ji(a,"emphasis")&&(a.emphasis=t.label,delete t.label)}function ji(r,e){return r.hasOwnProperty(e)}function hW(r){r.registerComponentModel(WC),r.registerComponentView(aW),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),sW(r),r.registerPreprocessor(lW)}function Ng(r,e){if(!r)return!1;for(var t=B(r)?r:[r],a=0;a<t.length;a++)if(t[a]&&t[a][e])return!0;return!1}function Kh(r){ii(r,"label",["show"])}var Qh=At(),oa=function(r){E(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(et.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=Qh(s)[o];if(!l||!l.data){Qh(s)[o]=null;return}u?u._mergeOption(l,a,!0):(n&&Kh(l),A(l.data,function(h){h instanceof Array?(Kh(h[0]),Kh(h[1])):Kh(h)}),u=this.createMarkerModelFromSeries(l,this,a),V(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Qh(s)[o]=u},this)},e.prototype.formatTooltip=function(t,a,i){var n=this.getData(),o=this.getRawValue(t),s=n.getName(t);return Jt("section",{header:this.name,blocks:[Jt("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 Qh(t)[a]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(ht);Ht(oa,yc.prototype);var fW=function(r){E(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={zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(oa);function vW(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function cW(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function Jh(r,e,t,a,i,n){var o=[],s=Da(e,a),l=s?e.getCalculationInfo("stackResultDimension"):a,u=Vg(e,l,r),h=e.indicesOfNearest(l,u)[0];o[i]=e.get(t,h),o[n]=e.get(l,h);var f=e.get(a,h),v=hL(e.get(a,h));return v=Math.min(v,20),v>=0&&(o[n]=+o[n].toFixed(v)),[o,f]}var Bg={min:j(Jh,"min"),max:j(Jh,"max"),average:j(Jh,"average"),median:j(Jh,"median")};function hl(r,e){var t=r.getData(),a=r.coordinateSystem;if(e&&!cW(e)&&!B(e.coord)&&a){var i=a.dimensions,n=ZC(e,t,a,r);if(e=$(e),e.type&&Bg[e.type]&&n.baseAxis&&n.valueAxis){var o=lt(i,n.baseAxis.dim),s=lt(i,n.valueAxis.dim),l=Bg[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],h=0;h<2;h++)Bg[u[h]]&&(u[h]=Vg(t,t.mapDimension(i[h]),u[h]));e.coord=u}}return e}function ZC(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(pW(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 pW(r,e){var t=r.getData(),a=t.dimensions;e=t.getDimension(e);for(var i=0;i<a.length;i++){var n=t.getDimensionInfo(a[i]);if(n.name===e)return n.coordDim}}function fl(r,e){return r&&r.containData&&e.coord&&!vW(e)?r.containData(e.coord):!0}function qC(r,e,t,a){return a<2?r.coord&&r.coord[a]:r.value}function Vg(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 zg=At(),Fg=function(r){E(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=Z()},e.prototype.render=function(t,a,i){var n=this,o=this.markerGroupMap;o.each(function(s){zg(s).keep=!1}),a.eachSeries(function(s){var l=oa.getMarkerModelFromSeries(s,n.type);l&&n.renderSeries(s,l,a,i)}),o.each(function(s){!zg(s).keep&&n.group.remove(s.group)})},e.prototype.markKeep=function(t){zg(t).keep=!0},e.prototype.blurSeries=function(t){var a=this;A(t,function(i){var n=oa.getMarkerModelFromSeries(i,a.type);if(n){var o=n.getData();o.eachItemGraphicEl(function(s){s&&a0(s)})}})},e.type="marker",e}(Et);function KC(r,e,t){var a=e.coordinateSystem;r.each(function(i){var n=r.getItemModel(i),o,s=F(n.get("x"),t.getWidth()),l=F(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),h=r.get(a.dimensions[1],i);o=a.dataToPoint([u,h])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(i,o)})}var dW=function(r){E(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=oa.getMarkerModelFromSeries(n,"markPoint");o&&(KC(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,h=u.get(s)||u.set(s,new Vs),f=gW(o,t,a);a.setData(f),KC(a.getData(),t,n),f.each(function(v){var c=f.getItemModel(v),p=c.getShallow("symbol"),d=c.getShallow("symbolSize"),g=c.getShallow("symbolRotate");if(wt(p)||wt(d)||wt(g)){var y=a.getRawValue(v),m=a.getDataParams(v);wt(p)&&(p=p(y,m)),wt(d)&&(d=d(y,m)),wt(g)&&(g=g(y,m))}var _=c.getModel("itemStyle").getItemStyle(),S=fs(l,"color");_.fill||(_.fill=S),f.setItemVisual(v,{symbol:p,symbolSize:d,symbolRotate:g,style:_})}),h.updateData(f),this.group.add(h.group),f.eachItemGraphicEl(function(v){v.traverse(function(c){Q(c).dataModel=a})}),this.markKeep(h),h.group.silent=a.get("silent")||t.get("silent")},e.type="markPoint",e}(Fg);function gW(r,e,t){var a;r?a=H(r&&r.dimensions,function(o){var s=e.getData().getDimensionInfo(e.getData().mapDimension(o))||{};return X({name:o},s)}):a=[{name:"value",type:"float"}];var i=new xe(a,t),n=H(t.get("data"),j(hl,e));return r&&(n=kt(n,j(fl,r))),i.initData(n,null,r?qC:function(o){return o.value}),i}function yW(r){r.registerComponentModel(fW),r.registerComponentView(dW),r.registerPreprocessor(function(e){Ng(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var mW=function(r){E(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={zlevel:0,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}(oa),jh=At(),_W=function(r,e,t,a){var i=r.getData(),n;if(B(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=ee(a.yAxis,a.xAxis);else{var u=ZC(a,i,e,r);s=u.valueAxis;var h=WS(i,u.valueDataDim);l=Vg(i,h,o)}var f=s.dim==="x"?0:1,v=1-f,c=$(a),p={coord:[]};c.type=null,c.coord=[],c.coord[v]=-Infinity,p.coord[v]=Infinity;var d=t.get("precision");d>=0&&typeof l=="number"&&(l=+l.toFixed(Math.min(d,20))),c.coord[f]=p.coord[f]=l,n=[c,p,{type:o,valueIndex:a.valueIndex,value:l}]}else n=[]}var g=[hl(r,n[0]),hl(r,n[1]),V({},n[2])];return g[2].type=g[2].type||null,at(g[2],g[0]),at(g[2],g[1]),g};function tf(r){return!isNaN(r)&&!isFinite(r)}function QC(r,e,t,a){var i=1-r,n=a.dimensions[r];return tf(e[i])&&tf(t[i])&&e[r]===t[r]&&a.getAxis(n).containData(e[r])}function SW(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,a=e[1].coord;if(t&&a&&(QC(1,t,a,r)||QC(0,t,a,r)))return!0}return fl(r,e[0])&&fl(r,e[1])}function Gg(r,e,t,a,i){var n=a.coordinateSystem,o=r.getItemModel(e),s,l=F(o.get("x"),i.getWidth()),u=F(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 h=n.dimensions,f=r.get(h[0],e),v=r.get(h[1],e);s=n.dataToPoint([f,v])}if(ea(n,"cartesian2d")){var c=n.getAxis("x"),p=n.getAxis("y"),h=n.dimensions;tf(r.get(h[0],e))?s[0]=c.toGlobalCoord(c.getExtent()[t?0:1]):tf(r.get(h[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var xW=function(r){E(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=oa.getMarkerModelFromSeries(n,"markLine");if(o){var s=o.getData(),l=jh(o).from,u=jh(o).to;l.each(function(h){Gg(l,h,!0,n,i),Gg(u,h,!1,n,i)}),s.each(function(h){s.setItemLayout(h,[l.getItemLayout(h),u.getItemLayout(h)])}),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,h=u.get(s)||u.set(s,new ud);this.group.add(h.group);var f=bW(o,t,a),v=f.from,c=f.to,p=f.line;jh(a).from=v,jh(a).to=c,a.setData(p);var d=a.get("symbol"),g=a.get("symbolSize"),y=a.get("symbolRotate"),m=a.get("symbolOffset");B(d)||(d=[d,d]),B(g)||(g=[g,g]),B(y)||(y=[y,y]),B(m)||(m=[m,m]),f.from.each(function(S){_(v,S,!0),_(c,S,!1)}),p.each(function(S){var x=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[v.getItemLayout(S),c.getItemLayout(S)]),x.stroke==null&&(x.stroke=v.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:v.getItemVisual(S,"symbolOffset"),fromSymbolRotate:v.getItemVisual(S,"symbolRotate"),fromSymbolSize:v.getItemVisual(S,"symbolSize"),fromSymbol:v.getItemVisual(S,"symbol"),toSymbolKeepAspect:c.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:c.getItemVisual(S,"symbolOffset"),toSymbolRotate:c.getItemVisual(S,"symbolRotate"),toSymbolSize:c.getItemVisual(S,"symbolSize"),toSymbol:c.getItemVisual(S,"symbol"),style:x})}),h.updateData(p),f.line.eachItemGraphicEl(function(S,x){S.traverse(function(b){Q(b).dataModel=a})});function _(S,x,b){var w=S.getItemModel(x);Gg(S,x,b,t,n);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=fs(l,"color")),S.setItemVisual(x,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:vt(w.get("symbolOffset"),m[b?0:1]),symbolRotate:vt(w.get("symbolRotate",!0),y[b?0:1]),symbolSize:vt(w.get("symbolSize"),g[b?0:1]),symbol:vt(w.get("symbol",!0),d[b?0:1]),style:T})}this.markKeep(h),h.group.silent=a.get("silent")||t.get("silent")},e.type="markLine",e}(Fg);function bW(r,e,t){var a;r?a=H(r&&r.dimensions,function(u){var h=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return X({name:u},h)}):a=[{name:"value",type:"float"}];var i=new xe(a,t),n=new xe(a,t),o=new xe([],t),s=H(t.get("data"),j(_W,e,r,t));r&&(s=kt(s,j(SW,r)));var l=r?qC:function(u){return u.value};return i.initData(H(s,function(u){return u[0]}),null,l),n.initData(H(s,function(u){return u[1]}),null,l),o.initData(H(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:n,line:o}}function wW(r){r.registerComponentModel(mW),r.registerComponentView(xW),r.registerPreprocessor(function(e){Ng(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var TW=function(r){E(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={zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(oa),ef=At(),AW=function(r,e,t,a){var i=hl(r,a[0]),n=hl(r,a[1]),o=i.coord,s=n.coord;o[0]=ee(o[0],-Infinity),o[1]=ee(o[1],-Infinity),s[0]=ee(s[0],Infinity),s[1]=ee(s[1],Infinity);var l=cf([{},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 rf(r){return!isNaN(r)&&!isFinite(r)}function JC(r,e,t,a){var i=1-r;return rf(e[i])&&rf(t[i])}function CW(r,e){var t=e.coord[0],a=e.coord[1];return ea(r,"cartesian2d")&&t&&a&&(JC(1,t,a)||JC(0,t,a))?!0:fl(r,{coord:t,x:e.x0,y:e.y0})||fl(r,{coord:a,x:e.x1,y:e.y1})}function jC(r,e,t,a,i){var n=a.coordinateSystem,o=r.getItemModel(e),s,l=F(o.get(t[0]),i.getWidth()),u=F(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 h=r.get(t[0],e),f=r.get(t[1],e),v=[h,f];n.clampData&&n.clampData(v,v),s=n.dataToPoint(v,!0)}if(ea(n,"cartesian2d")){var c=n.getAxis("x"),p=n.getAxis("y"),h=r.get(t[0],e),f=r.get(t[1],e);rf(h)?s[0]=c.toGlobalCoord(c.getExtent()[t[0]==="x0"?0:1]):rf(f)&&(s[1]=p.toGlobalCoord(p.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var tD=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],DW=function(r){E(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=oa.getMarkerModelFromSeries(n,"markArea");if(o){var s=o.getData();s.each(function(l){var u=H(tD,function(f){return jC(s,l,f,n,i)});s.setItemLayout(l,u);var h=s.getItemGraphicEl(l);h.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,h=u.get(s)||u.set(s,{group:new q});this.group.add(h.group),this.markKeep(h);var f=MW(o,t,a);a.setData(f),f.each(function(v){var c=H(tD,function(T){return jC(f,v,T,t,n)}),p=o.getAxis("x").scale,d=o.getAxis("y").scale,g=p.getExtent(),y=d.getExtent(),m=[p.parse(f.get("x0",v)),p.parse(f.get("x1",v))],_=[d.parse(f.get("y0",v)),d.parse(f.get("y1",v))];Ue(m),Ue(_);var S=!(g[0]>m[1]||g[1]<m[0]||y[0]>_[1]||y[1]<_[0]),x=!S;f.setItemLayout(v,{points:c,allClipped:x});var b=f.getItemModel(v).getModel("itemStyle").getItemStyle(),w=fs(l,"color");b.fill||(b.fill=w,typeof b.fill=="string"&&(b.fill=Tl(b.fill,.4))),b.stroke||(b.stroke=w),f.setItemVisual(v,"style",b)}),f.diff(ef(h).data).add(function(v){var c=f.getItemLayout(v);if(!c.allClipped){var p=new me({shape:{points:c.points}});f.setItemGraphicEl(v,p),h.group.add(p)}}).update(function(v,c){var p=ef(h).data.getItemGraphicEl(c),d=f.getItemLayout(v);d.allClipped?p&&h.group.remove(p):(p?dt(p,{shape:{points:d.points}},a,v):p=new me({shape:{points:d.points}}),f.setItemGraphicEl(v,p),h.group.add(p))}).remove(function(v){var c=ef(h).data.getItemGraphicEl(v);h.group.remove(c)}).execute(),f.eachItemGraphicEl(function(v,c){var p=f.getItemModel(c),d=f.getItemVisual(c,"style");v.useStyle(f.getItemVisual(c,"style")),fe(v,ne(p),{labelFetcher:a,labelDataIndex:c,defaultText:f.getName(c)||"",inheritColor:typeof d.fill=="string"?Tl(d.fill,1):"#000"}),oe(v,p),Lt(v),Q(v).dataModel=a}),ef(h).data=f,h.group.silent=a.get("silent")||t.get("silent")},e.type="markArea",e}(Fg);function MW(r,e,t){var a,i,n=["x0","y0","x1","y1"];r?(a=H(r&&r.dimensions,function(l){var u=e.getData(),h=u.getDimensionInfo(u.mapDimension(l))||{};return X({name:l},h)}),i=new xe(H(n,function(l,u){return{name:l,type:a[u%2].type}}),t)):(a=[{name:"value",type:"float"}],i=new xe(a,t));var o=H(t.get("data"),j(AW,e,r,t));r&&(o=kt(o,j(CW,r)));var s=r?function(l,u,h,f){return l.coord[Math.floor(f/2)][f%2]}:function(l){return l.value};return i.initData(o,null,s),i.hasItemOption=!0,i}function LW(r){r.registerComponentModel(TW),r.registerComponentView(DW),r.registerPreprocessor(function(e){Ng(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var IW=function(r,e){if(e==="all")return{type:"all",title:r.getLocale(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocale(["legend","selector","inverse"])}},Hg=function(r){E(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"]),B(a)&&A(a,function(n,o){ft(n)&&(n={type:n}),a[o]=at(n,IW(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 h=s.legendVisualProvider,f=h.getAllNames();t.isSeriesFiltered(s)||(i=i.concat(f)),f.length?a=a.concat(f):u=!0}else u=!0;u&&sv(s)&&a.push(s.name)}),this._availableNames=i;var n=this.get("data")||a,o=H(n,function(s){return(typeof s=="string"||typeof s=="number")&&(s={name:s}),new xt(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])&&lt(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={zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolSize:"auto",inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",decal:"inherit",shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,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",shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(ht),ao=j,eD=A,af=q,rD=function(r){E(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 af),this.group.add(this._selectorGroup=new af),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 h=t.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},v=t.get("padding"),c=qt(h,f,v),p=this.layoutInner(t,o,c,n,l,u),d=qt(X({width:p.width,height:p.height},h),f,v);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=oC(p,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(),h=Z(),f=a.get("selectedMode"),v=[];i.eachRawSeries(function(c){!c.get("legendHoverLink")&&v.push(c.id)}),eD(a.getData(),function(c,p){var d=c.get("name");if(!this.newlineDisabled&&(d===""||d===`
`)){var g=new af;g.newline=!0,u.add(g);return}var y=i.getSeriesByName(d)[0];if(!h.get(d))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendSymbol"),x=m.getVisual("style");m.getVisual("symbolSize");var b=this._createItem(y,d,p,c,a,t,_,x,S,f);b.on("click",ao(aD,d,null,n,v)).on("mouseover",ao(Wg,y.name,null,n,v)).on("mouseout",ao(Ug,y.name,null,n,v)),h.set(d,!0)}else i.eachRawSeries(function(w){if(!h.get(d)&&w.legendVisualProvider){var T=w.legendVisualProvider;if(!T.containName(d))return;var C=T.indexOfName(d),M=T.getItemVisual(C,"style"),D=T.getItemVisual(C,"legendSymbol"),L=Ge(M.fill);L&&L[3]===0&&(L[3]=.2,M.fill=Yr(L,"rgba"));var I=this._createItem(w,d,p,c,a,t,{},M,D,f);I.on("click",ao(aD,null,d,n,v)).on("mouseover",ao(Wg,null,d,n,v)).on("mouseout",ao(Ug,null,d,n,v)),h.set(d,!0)}},this)},this),o&&this._createSelector(o,a,n,s,l)},e.prototype._createSelector=function(t,a,i,n,o){var s=this.getSelectorGroup();eD(t,function(u){var h=u.type,f=new gt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:h==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var v=a.getModel("selectorLabel"),c=a.getModel(["emphasis","selectorLabel"]);fe(f,{normal:v,emphasis:c},{defaultText:u.title}),Lt(f)})},e.prototype._createItem=function(t,a,i,n,o,s,l,u,h,f){var v=t.visualDrawType,c=o.get("itemWidth"),p=o.get("itemHeight"),d=o.isSelected(a),g=n.get("symbolKeepAspect"),y=n.get("icon");h=y||h||"roundRect";var m=o.getModel("lineStyle"),_=PW(h,n,m,l,u,v,d),S=new af,x=n.getModel("textStyle");typeof t.getLegendIcon=="function"&&!y?S.add(t.getLegendIcon({itemWidth:c,itemHeight:p,symbolType:h,symbolKeepAspect:g,itemStyle:_.itemStyle,lineStyle:_.lineStyle})):S.add(RW({itemWidth:c,itemHeight:p,symbolType:h,symbolKeepAspect:g,itemStyle:_.itemStyle,lineStyle:_.lineStyle}));var b=s==="left"?c+5:-5,w=s,T=o.get("formatter"),C=a;typeof T=="string"&&T?C=T.replace("{name}",a!=null?a:""):typeof T=="function"&&(C=T(a));var M=n.get("inactiveColor");S.add(new gt({style:Ft(x,{text:C,x:b,y:p/2,fill:d?x.getTextColor():M,align:w,verticalAlign:"middle"})}));var D=new pt({shape:S.getBoundingRect(),invisible:!0}),L=n.getModel("tooltip");return L.get("show")&&xn({el:D,componentModel:o,itemName:a,itemTooltipOption:L.option}),S.add(D),S.eachChild(function(I){I.silent=!0}),D.silent=!f,this.getContentGroup().add(S),Lt(S),S.__legendDataIndex=i,S},e.prototype.layoutInner=function(t,a,i,n,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Di(t.get("orient"),l,t.get("itemGap"),i.width,i.height);var h=l.getBoundingRect(),f=[-h.x,-h.y];if(u.markRedraw(),l.markRedraw(),o){Di("horizontal",u,t.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,g=d===0?"width":"height",y=d===0?"height":"width",m=d===0?"y":"x";s==="end"?c[d]+=h[g]+p:f[d]+=v[g]+p,c[1-d]+=h[y]/2-v[y]/2,u.x=c[0],u.y=c[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[g]=h[g]+p+v[g],_[y]=Math.max(h[y],v[y]),_[m]=Math.min(0,v[m]+c[1-d]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Et);function PW(r,e,t,a,i,n,o){for(var s=e.getModel("itemStyle"),l=qv.concat([["decal"]]),u={},h=0;h<l.length;++h){var f=l[h][l[h].length-1],v=l[h][0],c=s.getShallow(f);if(c==="inherit")switch(v){case"fill":u.fill=i[n];break;case"stroke":u.stroke=i[r.startsWith("empty")?"fill":"stroke"];break;case"opacity":u.opacity=(n==="fill"?i:a).opacity;break;default:u[v]=i[v]}else c==="auto"&&v==="lineWidth"?u.lineWidth=i.lineWidth>0?2:0:u[v]=c}for(var p=e.getModel("lineStyle"),d=Zv.concat([["inactiveColor"],["inactiveWidth"]]),g={},h=0;h<d.length;++h){var f=d[h][1],v=d[h][0],c=p.getShallow(f);c==="inherit"?g[v]=a[v]:c==="auto"&&v==="lineWidth"?g.lineWidth=a.lineWidth>0?2:0:g[v]=c}if(u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),g.stroke==="auto"&&(g.stroke=i.fill),!o){var y=e.get("inactiveBorderWidth"),m=u[r.indexOf("empty")>-1?"fill":"stroke"];u.lineWidth=y==="auto"?i.lineWidth>0&&m?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),g.stroke=t.get("inactiveColor"),g.lineWidth=t.get("inactiveWidth")}return{itemStyle:u,lineStyle:g}}function RW(r){var e=r.symbolType||"roundRect",t=Yt(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function aD(r,e,t,a){Ug(r,e,t,a),t.dispatchAction({type:"legendToggleSelect",name:r!=null?r:e}),Wg(r,e,t,a)}function iD(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 Wg(r,e,t,a){iD(t)||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:a})}function Ug(r,e,t,a){iD(t)||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:a})}function EW(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 vl(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 h=o.isSelected(u);a.hasOwnProperty(u)?a[u]=a[u]&&h:a[u]=h}})}),r==="allSelect"||r==="inverseSelect"?{selected:a}:{name:e.name,selected:a}}function kW(r){r.registerAction("legendToggleSelect","legendselectchanged",j(vl,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",j(vl,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",j(vl,"inverseSelect")),r.registerAction("legendSelect","legendselected",j(vl,"select")),r.registerAction("legendUnSelect","legendunselected",j(vl,"unSelect"))}function nD(r){r.registerComponentModel(Hg),r.registerComponentView(rD),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,EW),r.registerSubTypeDefaulter("legend",function(){return"plain"}),kW(r)}var OW=function(r){E(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=Cn(t);r.prototype.init.call(this,t,a,i),oD(this,t,n)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),oD(this,this.option,t)},e.type="legend.scroll",e.defaultOption=ya(Hg.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}(Hg);function oD(r,e,t){var a=r.getOrient(),i=[1,1];i[a.index]=0,ma(e,t,{type:"box",ignoreSize:!!i})}var sD=q,Yg=["width","height"],Xg=["x","y"],NW=function(r){E(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 sD),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new sD)},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 h=this._controllerGroup,f=a.get("pageIconSize",!0),v=B(f)?f:[f,f];p("pagePrev",0);var c=a.getModel("pageTextStyle");h.add(new gt({name:"pageText",style:{text:"xx/xx",fill:c.getTextColor(),font:c.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(d,g){var y=d+"DataIndex",m=$o(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:U(u._pageGo,u,y,a,n)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});m.name=d,h.add(m)}},e.prototype.layoutInner=function(t,a,i,n,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,h=Yg[u],f=Xg[u],v=Yg[1-u],c=Xg[1-u];o&&Di("horizontal",l,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),d=l.getBoundingRect(),g=[-d.x,-d.y],y=$(i);o&&(y[h]=i[h]-d[h]-p);var m=this._layoutContentAndController(t,n,y,u,h,v,c,f);if(o){if(s==="end")g[u]+=m[h]+p;else{var _=d[h]+p;g[u]-=_,m[f]-=_}m[h]+=d[h]+p,g[1-u]+=m[c]+m[v]/2-d[v]/2,m[v]=Math.max(m[v],d[v]),m[c]=Math.min(m[c],d[c]+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 h=this.getContentGroup(),f=this._containerGroup,v=this._controllerGroup;Di(t.get("orient"),h,t.get("itemGap"),n?i.width:null,n?null:i.height),Di("horizontal",v,t.get("pageButtonItemGap",!0));var c=h.getBoundingRect(),p=v.getBoundingRect(),d=this._showController=c[o]>i[o],g=[-c.x,-c.y];a||(g[n]=h[u]);var y=[0,0],m=[-p.x,-p.y],_=vt(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var S=t.get("pageButtonPosition",!0);S==="end"?m[n]+=i[o]-p[o]:y[n]+=p[o]+_}m[1-n]+=c[s]/2-p[s]/2,h.setPosition(g),f.setPosition(y),v.setPosition(m);var x={x:0,y:0};if(x[o]=d?i[o]:c[o],x[s]=Math.max(c[s],p[s]),x[l]=Math.min(0,p[l]+m[1-n]),f.__rectSize=i[o],d){var b={x:0,y:0};b[o]=Math.max(i[o]-p[o]-_,0),b[s]=x[s],f.setClipPath(new pt({shape:b})),f.__rectSize=b[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return w.pageIndex!=null&&dt(h,{x:w.contentPosition[0],y:w.contentPosition[1]},d?t:null),this._updatePageInfoView(t,w),x},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(h){var f=h+"DataIndex",v=a[f]!=null,c=i.childOfName(h);c&&(c.setStyle("fill",v?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),c.cursor=v?"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",ft(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=Yg[o],l=Xg[o],u=this._findTargetItemIndex(a),h=i.children(),f=h[u],v=h.length,c=v?1:0,p={contentPosition:[i.x,i.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return p;var d=S(f);p.contentPosition[o]=-d.s;for(var g=u+1,y=d,m=d,_=null;g<=v;++g)_=S(h[g]),(!_&&m.e>y.s+n||_&&!x(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),m=_;for(var g=u-1,y=d,m=d,_=null;g>=-1;--g)_=S(h[g]),(!_||!x(m,_.s))&&y.i<m.i&&(m=y,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=y.i),++p.pageCount,++p.pageIndex),y=_;return p;function S(b){if(b){var w=b.getBoundingRect(),T=w[l]+b[l];return{s:T,e:T+w[s],i:b.__legendDataIndex}}}function x(b,w){return b.e>=w&&b.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}(rD);function BW(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 VW(r){st(nD),r.registerComponentModel(OW),r.registerComponentView(NW),BW(r)}function zW(r){st(nD),st(VW)}var FW=function(r){E(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=ya(sl.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(sl),$g=At();function GW(r,e,t){$g(r).coordSysRecordMap.each(function(a){var i=a.dataZoomInfoMap.get(e.uid);i&&(i.getRange=t)})}function HW(r,e){for(var t=$g(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||lD(t,o))}}}function lD(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function WW(r,e){var t={model:e,containsPoint:j(YW,e),dispatchAction:j(UW,r),dataZoomInfoMap:null,controller:null},a=t.controller=new Ys(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 UW(r,e){r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function YW(r,e,t,a){return r.coordinateSystem.containPoint([t,a])}function XW(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 $W(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var a=$g(t),i=a.coordSysRecordMap||(a.coordSysRecordMap=Z());i.each(function(n){n.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(n){var o=tC(n);A(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,WW(t,s.model)),h=u.dataZoomInfoMap||(u.dataZoomInfoMap=Z());h.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){lD(i,n);return}var h=XW(l);o.enable(h.controlType,h.opt),o.setPointerChecker(n.containsPoint),ls(n,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var ZW=function(r){E(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(),GW(i,t,{pan:U(Zg.pan,this),zoom:U(Zg.zoom,this),scrollMove:U(Zg.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){HW(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(xg),Zg={zoom:function(r,e,t,a){var i=this.range,n=i.slice(),o=r.axisModels[0];if(!!o){var s=qg[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 h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if($i(0,n,[0,100],0,h.minSpan,h.maxSpan),this.range=n,i[0]!==n[0]||i[1]!==n[1])return n}},pan:uD(function(r,e,t,a,i,n){var o=qg[a]([n.oldX,n.oldY],[n.newX,n.newY],e,i,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:uD(function(r,e,t,a,i,n){var o=qg[a]([0,0],[n.scrollDelta,n.scrollDelta],e,i,t);return o.signal*(r[1]-r[0])*n.scrollDelta})};function uD(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($i(l,o,[0,100],"all"),this.range=o,n[0]!==o[0]||n[1]!==o[1])return o}}}var qg={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}};function hD(r){bg(r),r.registerComponentModel(FW),r.registerComponentView(ZW),$W(r)}var qW=function(r){E(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=ya(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),cl=pt,fD=7,KW=1,Kg=30,QW=7,pl="horizontal",vD="vertical",JW=5,jW=["line","bar","candlestick","scatter"],t6={easing:"cubicOut",duration:100},e6=function(r){E(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=U(this._onBrush,this),this._onBrushEnd=U(this._onBrushEnd,this)},e.prototype.render=function(t,a,i,n){if(r.prototype.render.apply(this,arguments),ls(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(){uR(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 q;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?QW:0,o=this._findCoordRect(),s={width:a.getWidth(),height:a.getHeight()},l=this._orient===pl?{right:s.width-o.x-o.width,top:s.height-Kg-fD-n,width:o.width,height:Kg}:{right:fD,top:o.y,width:Kg,height:o.height},u=Cn(t.option);A(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var h=qt(u,s);this._location={x:h.x,y:h.y},this._size=[h.width,h.height],this._orient===vD&&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===pl&&!o?{scaleY:l?1:-1,scaleX:1}:i===pl&&o?{scaleY:l?1:-1,scaleX:-1}:i===vD&&!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 cl({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new cl({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:U(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=t.series,n=i.getRawData(),o=i.getShadowDim?i.getShadowDim():t.otherDim;if(o==null)return;var s=n.getDataExtent(o),l=(s[1]-s[0])*.3;s=[s[0]-l,s[1]+l];var u=[0,a[1]],h=[0,a[0]],f=[[a[0],0],[0,0]],v=[],c=h[1]/(n.count()-1),p=0,d=Math.round(n.count()/a[0]),g;n.each([o],function(x,b){if(d>0&&b%d){p+=c;return}var w=x==null||isNaN(x)||x==="",T=w?0:Tt(x,s,u,!0);w&&!g&&b?(f.push([f[f.length-1][0],0]),v.push([v[v.length-1][0],0])):!w&&g&&(f.push([p,0]),v.push([p,0])),f.push([p,T]),v.push([p,T]),p+=c,g=w});var y=this.dataZoomModel;function m(x){var b=y.getModel(x?"selectedDataBackground":"dataBackground"),w=new q,T=new me({shape:{points:f},segmentIgnoreThreshold:1,style:b.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),C=new Me({shape:{points:v},segmentIgnoreThreshold:1,style:b.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return w.add(T),w.add(C),w}for(var _=0;_<3;_++){var S=m(_===1);this._displayables.sliderGroup.add(S),this._displayables.dataShadowSegs.push(S)}},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&&lt(jW,u.get("type"))<0)){var h=n.getComponent(Ba(o),s).axis,f=r6(o),v,c=u.coordinateSystem;f!=null&&c.getOtherAxis&&(v=c.getOtherAxis(h).inverse),f=u.getData().mapDimension(f),i={thisAxis:h,series:u,thisDim:o,otherDim:f,otherAxisInverse:v}}},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,h=l.get("borderRadius")||0,f=l.get("brushSelect"),v=a.filler=new cl({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new cl({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:h},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:KW,fill:"rgba(0,0,0,0)"}})),A([0,1],function(_){var S=l.get("handleIcon");!Vu[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var x=Yt(S,-1,0,2,2,null,!0);x.attr({cursor:cD(this._orient),draggable:!0,drift:U(this._onDragMove,this,_),ondragend:U(this._onDragEnd,this),onmouseover:U(this._showDataInfo,this,!0),onmouseout:U(this._showDataInfo,this,!1),z2:5});var b=x.getBoundingRect(),w=l.get("handleSize");this._handleHeight=F(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Lt(x);var T=l.get("handleColor");T!=null&&(x.style.fill=T),o.add(i[_]=x);var C=l.getModel("textStyle");t.add(n[_]=new gt({silent:!0,invisible:!0,style:Ft(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var c=v;if(f){var p=F(l.get("moveHandleSize"),s[1]),d=a.moveHandle=new pt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=a.moveHandleIcon=Yt(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(p,10));c=a.moveZone=new pt({invisible:!0,shape:{y:s[1]-m,height:p+m}}),c.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(y),o.add(c)}c.attr({draggable:!0,cursor:cD(this._orient),drift:U(this._onDragMove,this,"all"),ondragstart:U(this._showDataInfo,this,!0),ondragend:U(this._onDragEnd,this),onmouseover:U(this._showDataInfo,this,!0),onmouseout:U(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[Tt(t[0],[0,100],a,!0),Tt(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];$i(a,n,o,i.get("zoomLock")?"all":t,s.minSpan!=null?Tt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Tt(s.maxSpan,l,o,!0):null);var u=this._range,h=this._range=Ue([Tt(n[0],o,l,!0),Tt(n[1],o,l,!0)]);return!u||u[0]!==h[0]||u[1]!==h[1]},e.prototype._updateView=function(t){var a=this._displayables,i=this._handleEnds,n=Ue(i.slice()),o=this._size;A([0,1],function(c){var p=a.handles[c],d=this._handleHeight;p.attr({scaleX:d/2,scaleY:d/2,x:i[c]+(c?-1:1),y:o[1]/2-d/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]],h=0;h<l.length;h++){var f=l[h],v=f.getClipPath();v||(v=new pt,f.setClipPath(v)),v.setShape({x:u[h],y:0,width:u[h+1]-u[h],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,h=this._range,f=t?l.calculateDataWindow({start:h[0],end:h[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var v=Ue(this._handleEnds.slice());c.call(this,0),c.call(this,1);function c(p){var d=wi(i.handles[p].parent,this.group),g=hu(p===0?"right":"left",d),y=this._handleWidth/2+JW,m=fr([v[p]+(p===0?-y:y),this._size[1]/2],d);n[p].setStyle({x:m[0],y:m[1],verticalAlign:o===pl?"middle":g,align:o===pl?g:"center",text:s[p]})}},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 wt(n)?n(t,s):ft(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,Wr(n.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=fr([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 nt(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=Ue([Tt(i.x,o,s,!0),Tt(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&&(Wr(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 cl({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),h=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:h[0],y:0,width:u[0]-h[0],height:f[1]})},e.prototype._dispatchZoomAction=function(t){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?t6:null,start:a[0],end:a[1]})},e.prototype._findCoordRect=function(){var t,a=tC(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}(xg);function r6(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function cD(r){return r==="vertical"?"ns-resize":"ew-resize"}function pD(r){r.registerComponentModel(qW),r.registerComponentView(e6),bg(r)}function a6(r){st(hD),st(pD)}var dD={get:function(r,e,t){var a=$((i6[r]||{})[e]);return t&&B(a)?a[a.length-1]:a}},i6={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]}},gD=jt.mapVisual,n6=jt.eachVisual,o6=B,yD=A,s6=Ue,l6=Tt,nf=function(r){E(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=[-Infinity,Infinity],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;et.canvasSupported||(i.realtime=!1),!a&&kC(i,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var a=this.stateList;t=U(t,this),this.controllerVisuals=Rg(this.option.controller,a,t),this.targetVisuals=Rg(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=Rt(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||["<",">"],B(t)&&(t=t.slice(),u=!0);var h=a?t:u?[f(t[0]),f(t[1])]:f(t);if(ft(l))return l.replace("{value}",u?h[0]:h).replace("{value2}",u?h[1]:h);if(wt(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?i[0]+" "+h[1]:t[1]===s[1]?i[1]+" "+h[0]:h[0]+" - "+h[1];return h;function f(v){return v===s[0]?"min":v===s[1]?"max":(+v).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,a=s6([t.min,t.max]);this._dataExtent=a},e.prototype.getDataDimension=function(t){var a=this.option.dimension,i=t.dimensions;if(!(a==null&&!i.length)){if(a!=null)return t.getDimension(a);for(var n=t.dimensions,o=n.length-1;o>=0;o--){var s=n[o],l=t.getDimensionInfo(s);if(!l.isCalculationCoord)return s}}},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={});at(n,i),at(o,i);var s=this.isCategory();l.call(this,n),l.call(this,o),u.call(this,n,"inRange","outOfRange"),h.call(this,o);function l(f){o6(a.color)&&!f.inRange&&(f.inRange={color:a.color.slice().reverse()}),f.inRange=f.inRange||{color:t.get("gradientColor")}}function u(f,v,c){var p=f[v],d=f[c];p&&!d&&(d=f[c]={},yD(p,function(g,y){if(!!jt.isValidType(y)){var m=dD.get(y,"inactive",s);m!=null&&(d[y]=m,y==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function h(f){var v=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,c=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),d=this.getItemSymbol(),g=d||"roundRect";yD(this.stateList,function(y){var m=this.itemSize,_=f[y];_||(_=f[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=v&&$(v)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=c&&$(c)||(s?m[0]:[m[0],m[0]])),_.symbol=gD(_.symbol,function(b){return b==="none"?g:b});var S=_.symbolSize;if(S!=null){var x=-Infinity;n6(S,function(b){b>x&&(x=b)}),_.symbolSize=gD(S,function(b){return l6(b,[0,x],[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,zlevel: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}(ht),mD=[20,140],u6=function(r){E(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]=mD[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=mD[1])},e.prototype._resetRange=function(){var t=this.getExtent(),a=this.option.range;!a||a.auto?(t.auto=1,this.option.range=t):B(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=Ue((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.getDataDimension(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=_D(this,"outOfRange",this.getExtent()),i=_D(this,"inRange",this.option.range.slice()),n=[];function o(c,p){n.push({value:c,color:t(c,p)})}for(var s=0,l=0,u=i.length,h=a.length;l<h&&(!i.length||a[l]<=i[0]);l++)a[l]<i[s]&&o(a[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&n.length&&o(i[s],"outOfRange"),o(i[s],"inRange");for(var f=1;l<h;l++)(!i.length||i[i.length-1]<a[l])&&(f&&(n.length&&o(n[n.length-1].value,"outOfRange"),f=0),o(a[l],"outOfRange"));var v=n.length;return{stops:n,outerColors:[v?n[0].color:"transparent",v?n[v-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=ya(nf.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}(nf);function _D(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 SD=function(r){E(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=An(a.get("padding")||0),n=t.getBoundingRect();t.add(new pt({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(c){return s[c]}function h(c,p){s[c]=p}var f=o.controllerVisuals[n||o.getValueState(t)],v=jt.prepareVisualTypes(f);return A(v,function(c){var p=f[c];i.convertOpacityToAlpha&&c==="opacity"&&(c="colorAlpha",p=f.__alphaForOpacity),jt.dependsOn(c,a)&&p&&p.applyVisual(t,u,h)}),s[a]},e.prototype.positionGroup=function(t){var a=this.visualMapModel,i=this.api;Tu(t,a.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},e.prototype.doRender=function(t,a,i,n){},e.type="visualMap",e}(Et),xD=[["left","right","width"],["top","bottom","height"]];function bD(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=xD[o],l=[0,null,10],u={},h=0;h<3;h++)u[xD[1-o][h]]=l[h],u[s[h]]=h===2?t[0]:a[s[h]];var f=[["x","width",3],["y","height",0]][o],v=qt(u,n,a.padding);return s[(v.margin[f[2]]||0)+v[f[0]]+v[f[1]]*.5<n[f[1]]*.5?0:1]}function of(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=Tt,h6=A,wD=Math.min,Qg=Math.max,f6=12,v6=6,c6=function(r){E(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,h=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],u),f=this._applyTransform(i===0?"bottom":"top",u),v=this._orient,c=this.visualMapModel.textStyleModel;this.group.add(new gt({style:{x:h[0],y:h[1],verticalAlign:v==="horizontal"?"middle":f,align:v==="horizontal"?f:"center",text:n,font:c.getFont(),fill:c.getTextColor()}}))}},e.prototype._renderBar=function(t){var a=this.visualMapModel,i=this._shapes,n=a.itemSize,o=this._orient,s=this._useHandle,l=bD(a,this.api,n),u=i.mainGroup=this._createBarGroup(l),h=new q;u.add(h),h.add(i.outOfRange=TD()),h.add(i.inRange=TD(null,s?CD(this._orient):null,U(this._dragHandle,this,"all",!1),U(this._dragHandle,this,"all",!0))),h.setClipPath(new pt({shape:{x:0,y:0,width:n[0],height:n[1],r:3}}));var f=a.textStyleModel.getTextRect("\u56FD"),v=Qg(f.width,f.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(a,u,0,n,v,o),this._createHandle(a,u,1,n,v,o)),this._createIndicator(a,u,n,v,o),t.add(u)},e.prototype._createHandle=function(t,a,i,n,o,s){var l=U(this._dragHandle,this,i,!1),u=U(this._dragHandle,this,i,!0),h=He(t.get("handleSize"),n[0]),f=Yt(t.get("handleIcon"),-h/2,-h/2,h,h,null,!0),v=CD(this._orient);f.attr({cursor:v,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){Wr(y.event)}}),f.x=n[0]/2,f.useStyle(t.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),yn(f,!0),a.add(f);var c=this.visualMapModel.textStyleModel,p=new gt({cursor:v,draggable:!0,drift:l,onmousemove:function(y){Wr(y.event)},ondragend:u,style:{x:0,y:0,text:"",font:c.getFont(),fill:c.getTextColor()}});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var d=[h,0],g=this._shapes;g.handleThumbs[i]=f,g.handleLabelPoints[i]=d,g.handleLabels[i]=p},e.prototype._createIndicator=function(t,a,i,n,o){var s=He(t.get("indicatorSize"),i[0]),l=Yt(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 Zt){var h=l.style;l.useStyle(V({image:h.image,x:h.x,y:h.y,width:h.width,height:h.height},u))}else l.useStyle(u);a.add(l);var f=this.visualMapModel.textStyleModel,v=new gt({silent:!0,invisible:!0,style:{x:0,y:0,text:"",font:f.getFont(),fill:f.getTextColor()}});this.group.add(v);var c=[(o==="horizontal"?n/2:v6)+i[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=v,p.indicatorLabelPoint=c,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():AD(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]];$i(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 Uo(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 q(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();h6([0,1],function(h){var f=o[h];f.setStyle("fill",a.handlesColor[h]),f.y=t[h];var v=Br(t[h],[0,l[1]],u,!0),c=this.getControllerVisual(v,"symbolSize");f.scaleX=f.scaleY=c/l[0],f.x=l[0]-c/2;var p=fr(i.handleLabelPoints[h],wi(f,this.group));s[h].setStyle({x:p[0],y:p[1],text:n.formatValueText(this._dataInterval[h]),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]],h=this._shapes,f=h.indicator;if(!!f){f.attr("invisible",!1);var v={convertOpacityToAlpha:!0},c=this.getControllerVisual(t,"color",v),p=this.getControllerVisual(t,"symbolSize"),d=Br(t,s,u,!0),g=l[0]-p/2,y={x:f.x,y:f.y};f.y=d,f.x=g;var m=fr(h.indicatorLabelPoint,wi(f,this.group)),_=h.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",h.mainGroup),x=this._orient,b=x==="horizontal";_.setStyle({text:(i||"")+o.formatValueText(a),verticalAlign:b?S:"middle",align:b?"center":S});var w={x:g,y:d,style:{fill:c}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};f.x=y.x,f.y=y.y,f.animateTo(w,C),_.animateTo(T,C)}else f.attr(w),_.attr(T);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var D=0;D<M.length;D++)this._api.enterBlur(M[D])}},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]=wD(Qg(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=wD(Qg(o[0],t),o[1]);var l=p6(i,s,o),u=[t-l,t+l],h=Br(t,o,s,!0),f=[Br(u[0],o,s,!0),Br(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-Infinity),u[1]>o[1]&&(f[1]=Infinity),a&&(f[0]===-Infinity?this._showIndicator(h,f[1],"< ",l):f[1]===Infinity?this._showIndicator(h,f[0],"> ",l):this._showIndicator(h,h,"\u2248 ",l));var v=this._hoverLinkDataIndices,c=[];(a||AD(i))&&(c=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var p=TL(v,c);this._dispatchHighDown("downplay",of(p[0],i)),this._dispatchHighDown("highlight",of(p[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var a=t.target,i=this.visualMapModel;if(!(!a||Q(a).dataIndex==null)){var n=Q(a),o=this.ecModel.getSeriesByIndex(n.seriesIndex);if(!!i.isTargetSeries(o)){var s=o.getData(n.dataType),l=s.get(i.getDataDimension(s),n.dataIndex);isNaN(l)||this._showIndicator(l,l)}}},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",of(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=wi(a,n?null:this.group);return B(t)?fr(t,o,i):hu(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}(SD);function TD(r,e,t,a){return new me({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(i){Wr(i.event)},ondragend:a})}function p6(r,e,t){var a=f6/2,i=r.get("hoverLinkDataSize");return i&&(a=Br(i,e,t,!0)/2),a}function AD(r){var e=r.get("hoverLinkOnHandle");return!!(e==null?r.get("realtime"):e)}function CD(r){return r==="vertical"?"ns-resize":"ew-resize"}var d6={type:"selectDataRange",event:"dataRangeSelected",update:"update"},g6=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},y6=[{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(z4(a.stateList,a.targetVisuals,U(a.getValueState,a),a.getDataDimension(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(U(m6,null,r,i))||{stops:[],outerColors:[]},o=i.getDataDimension(t),s=t.getDimensionInfo(o);s!=null&&(n.dimension=s.index,a.push(n))}}),r.getData().setVisual("visualMeta",a)}}];function m6(r,e,t,a){for(var i=e.targetVisuals[a],n=jt.prepareVisualTypes(i),o={color:fs(r.getData(),"color")},s=0,l=n.length;s<l;s++){var u=n[s],h=i[u==="opacity"?"__alphaForOpacity":u];h&&h.applyVisual(t,f,v)}return o.color;function f(c){return o[c]}function v(c,p){o[c]=p}}var DD=A;function _6(r){var e=r&&r.visualMap;B(e)||(e=e?[e]:[]),DD(e,function(t){if(!!t){io(t,"splitList")&&!io(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var a=t.pieces;a&&B(a)&&DD(a,function(i){J(i)&&(io(i,"start")&&!io(i,"min")&&(i.min=i.start),io(i,"end")&&!io(i,"max")&&(i.max=i.end))})}})}function io(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var MD=!1;function LD(r){MD||(MD=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(d6,g6),A(y6,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(_6))}function ID(r){r.registerComponentModel(u6),r.registerComponentView(c6),LD(r)}var S6=function(r){E(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=[],x6[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=$(n)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=H(this._pieceList,function(l){return l=$(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,a={},i=jt.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(h){u=u||o(t,h,l)||o(t.target,h,l)},this),!u&&A(this.stateList,function(h){(t[h]||(t[h]={}))[l]=dD.get(l,h==="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 h=this.getSelectedMapKey(l);o.hasOwnProperty(h)||(o[h]=!0)},this),i.selectedMode==="single"){var s=!1;A(n,function(l,u){var h=this.getSelectedMapKey(l);o[h]&&(s?o[h]=!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=$(t)},e.prototype.getValueState=function(t){var a=jt.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.getDataDimension(s),function(l,u){var h=jt.findPieceIndex(l,i);h===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]===-Infinity&&i[1]===Infinity?0:(i[0]+i[1])/2}return a},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var a=[],i=["",""],n=this;function o(h,f){var v=n.getRepresentValue({interval:h});f||(f=n.getValueState(v));var c=t(v,f);h[0]===-Infinity?i[0]=c:h[1]===Infinity?i[1]=c:a.push({value:h[0],color:c},{value:h[1],color:c})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-Infinity,Infinity]});else{var l=s[0].interval[0];l!==-Infinity&&s.unshift({interval:[-Infinity,l]}),l=s[s.length-1].interval[1],l!==Infinity&&s.push({interval:[l,Infinity]})}var u=-Infinity;return A(s,function(h){var f=h.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:a,outerColors:i}},e.type="visualMap.piecewise",e.defaultOption=ya(nf.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}(nf),x6={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:[-Infinity,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],Infinity],close:[0,0]}),nm(r),A(r,function(u,h){u.index=h,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),PD(e,r)},pieces:function(r){var e=this.option;A(e.pieces,function(t,a){J(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=[-Infinity,Infinity],h=[],f=0;f<2;f++){for(var v=[["gte","gt","min"],["lte","lt","max"]][f],c=0;c<3&&o[f]==null;c++)o[f]=t[v[c]],s[f]=l[c],h[f]=c===2;o[f]==null&&(o[f]=u[f])}h[0]&&o[1]===Infinity&&(s[0]=0),h[1]&&o[0]===-Infinity&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(i.value=o[0])}i.visual=jt.retrieveVisuals(t),r.push(i)},this),PD(e,r),nm(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 PD(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var b6=function(r){E(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,h=this._getViewData(),f=h.endsText,v=ee(a.get("showLabel",!0),!f);f&&this._renderEndsText(t,f[0],u,v,l),A(h.viewPieceList,function(c){var p=c.piece,d=new q;d.onclick=U(this._onItemClick,this,p),this._enableHoverLink(d,c.indexInModelPieceList);var g=a.getRepresentValue(p);if(this._createItemSymbol(d,g,[0,0,u[0],u[1]]),v){var y=this.visualMapModel.getValueState(g);d.add(new gt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(d)},this),f&&this._renderEndsText(t,f[1],u,v,l),Di(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:of(s.findTargetDataIndices(a),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,a=t.option;if(a.orient==="vertical")return bD(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 q,l=this.visualMapModel.textStyleModel;s.add(new gt({style:{x:n?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:n?o:"center",text:a,font:l.getFont(),fill:l.getTextColor()}})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,a=H(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(Yt(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.selected),o=a.getSelectedMapKey(t);i.selectedMode==="single"?(n[o]=!0,A(n,function(s,l){n[l]=l===o})):n[o]=!n[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:n})},e.type="visualMap.piecewise",e}(SD);function RD(r){r.registerComponentModel(S6),r.registerComponentView(b6),LD(r)}function w6(r){st(ID),st(RD)}var T6={label:{enabled:!0},decal:{show:!1}},ED=At(),A6={};function C6(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var a=$(T6);at(a.label,r.getLocaleModel().get("aria"),!1),at(t.option,a,!1),i(),n();function i(){var u=t.getModel("decal"),h=u.get("show");if(h){var f=Z();r.eachSeries(function(v){if(!!v.useColorPaletteOnData){var c=f.get(v.type);c||(c={},f.set(v.type,c)),ED(v).scope=c}}),r.eachRawSeries(function(v){if(r.isSeriesFiltered(v))return;if(typeof v.enableAriaDecal=="function"){v.enableAriaDecal();return}var c=v.getData();if(v.useColorPaletteOnData){var p=v.getRawData(),d={},g=ED(v).scope;c.each(function(x){var b=c.getRawIndex(x);d[b]=x});var y=p.count();p.each(function(x){var b=d[x],w=p.getName(x)||x+"",T=lc(v.ecModel,w,g,y),C=c.getItemVisual(b,"decal");c.setItemVisual(b,"decal",S(C,T))})}else{var m=lc(v.ecModel,v.name,A6,r.getSeriesCount()),_=c.getVisual("decal");c.setVisual("decal",S(_,m))}function S(x,b){var w=x?V(V({},b),x):b;return w.dirty=!0,w}})}}function n(){var u=r.getLocaleModel().get("aria"),h=t.getModel("label");if(h.option=X(h.option,u),!!h.get("enabled")){var f=e.getZr().dom;if(h.get("description")){f.setAttribute("aria-label",h.get("description"));return}var v=r.getSeriesCount(),c=h.get(["data","maxCount"])||10,p=h.get(["series","maxCount"])||10,d=Math.min(v,p),g;if(!(v<1)){var y=s();if(y){var m=h.get(["general","withTitle"]);g=o(m,{title:y})}else g=h.get(["general","withoutTitle"]);var _=[],S=v>1?h.get(["series","multiple","prefix"]):h.get(["series","single","prefix"]);g+=o(S,{seriesCount:v}),r.eachSeries(function(T,C){if(C<d){var M=void 0,D=T.get("name"),L=D?"withName":"withoutName";M=v>1?h.get(["series","multiple",L]):h.get(["series","single",L]),M=o(M,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var I=T.getData();if(I.count()>c){var P=h.get(["data","partialData"]);M+=o(P,{displayCnt:c})}else M+=h.get(["data","allData"]);for(var R=[],k=0;k<I.count();k++)if(k<c){var N=I.getName(k),O=Pi(I,k),G=h.get(["data",N?"withName":"withoutName"]);R.push(o(G,{name:N,value:O}))}var z=h.get(["data","separator","middle"]),W=h.get(["data","separator","end"]);M+=R.join(z)+W,_.push(M)}});var x=h.getModel(["series","multiple","separator"]),b=x.get("middle"),w=x.get("end");g+=_.join(b)+w,f.setAttribute("aria-label",g)}}}function o(u,h){if(typeof u!="string")return u;var f=u;return A(h,function(v,c){f=f.replace(new RegExp("\\{\\s*"+c+"\\s*\\}","g"),v)}),f}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 D6(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 M6(r){r.registerPreprocessor(D6),r.registerVisual(r.PRIORITY.VISUAL.ARIA,C6)}var kD={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},L6=function(){function r(e){var t=this._condVal=ft(e)?new RegExp(e):lM(e)?e:null;if(t==null){var a="";yt(a)}}return r.prototype.evaluate=function(e){var t=typeof e;return t==="string"?this._condVal.test(e):t==="number"?this._condVal.test(e+""):!1},r}(),I6=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),P6=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}(),R6=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}(),E6=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),k6=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 Jg(r,e){if(r===!0||r===!1){var t=new I6;return t.value=r,t}var a="";return ND(r)||yt(a),r.and?OD("and",r,e):r.or?OD("or",r,e):r.not?O6(r,e):N6(r,e)}function OD(r,e,t){var a=e[r],i="";B(a)||yt(i),a.length||yt(i);var n=r==="and"?new P6:new R6;return n.children=H(a,function(o){return Jg(o,t)}),n.children.length||yt(i),n}function O6(r,e){var t=r.not,a="";ND(t)||yt(a);var i=new E6;return i.child=Jg(t,e),i.child||yt(a),i}function N6(r,e){for(var t="",a=e.prepareGetValue(r),i=[],n=St(r),o=r.parser,s=o?G_(o):null,l=0;l<n.length;l++){var u=n[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var h=Y(kD,u)?kD[u]:u,f=r[u],v=s?s(f):f,c=BP(h,v)||h==="reg"&&new L6(v);c||yt(t),i.push(c)}}i.length||yt(t);var p=new k6;return p.valueGetterParam=a,p.valueParser=s,p.getValue=e.getValue,p.subCondList=i,p}function ND(r){return J(r)&&!Te(r)}var B6=function(){function r(e,t){this._cond=Jg(e,t)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}();function V6(r,e){return new B6(r,e)}var z6={type:"echarts:filter",transform:function(r){for(var e=r.upstream,t,a=V6(r.config,{valueGetterAttrMap:Z({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;Y(s,"dimension")||yt(l);var h=e.getDimensionInfo(u);return h||yt(l),{dimIdx:h.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}}},F6={type:"echarts:sort",transform:function(r){var e=r.upstream,t=r.config,a="",i=Rt(t);i.length||yt(a);var n=[];A(i,function(h){var f=h.dimension,v=h.order,c=h.parser,p=h.incomparable;if(f==null&&yt(a),v!=="asc"&&v!=="desc"&&yt(a),p&&p!=="min"&&p!=="max"){var d="";yt(d)}if(v!=="asc"&&v!=="desc"){var g="";yt(g)}var y=e.getDimensionInfo(f);y||yt(a);var m=c?G_(c):null;c&&!m&&yt(a),n.push({dimIdx:y.index,parser:m,comparator:new W_(v,p)})});var o=e.sourceFormat;o!==ve&&o!==vr&&yt(a);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(h,f){for(var v=0;v<n.length;v++){var c=n[v],p=e.retrieveValueFromItem(h,c.dimIdx),d=e.retrieveValueFromItem(f,c.dimIdx);c.parser&&(p=c.parser(p),d=c.parser(d));var g=c.comparator.evaluate(p,d);if(g!==0)return g}return 0}),{data:s}}};function G6(r){r.registerTransform(z6),r.registerTransform(F6)}var H6=function(r){E(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 Y_(this),X_(this)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),X_(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Lr},e}(ht),W6=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e}(Et);function U6(r){r.registerComponentModel(H6),r.registerComponentView(W6)}st([zO]),st([EO]),st([nN,mN,DN,nB,yB,kB,lV,XV,p5,S5,L5,wz,Zz,oF,bF,DF,NF,WF,tG,oG,gG,c3]),st(R3),st(aH),st(Zb),st(dH),st(cT),st(xH),st(IH),st(g4),st(k4),st(ol),st(Q4),st(tW),st(hW),st(yW),st(wW),st(LW),st(zW),st(a6),st(hD),st(pD),st(w6),st(ID),st(RD),st(M6),st(G6),st(U6);var jg=function(){return(jg=Object.assign||function(r){for(var e,t=1,a=arguments.length;t<a;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r}).apply(this,arguments)},no=function(){function r(e,t,a){var i=this;this.target=e,this.endVal=t,this.options=a,this.version="2.0.7",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:""},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.count=function(n){i.startTime||(i.startTime=n);var o=n-i.startTime;i.remaining=i.duration-o,i.useEasing?i.countDown?i.frameVal=i.startVal-i.easingFn(o,0,i.startVal-i.endVal,i.duration):i.frameVal=i.easingFn(o,i.startVal,i.endVal-i.startVal,i.duration):i.countDown?i.frameVal=i.startVal-(i.startVal-i.endVal)*(o/i.duration):i.frameVal=i.startVal+(i.endVal-i.startVal)*(o/i.duration),i.countDown?i.frameVal=i.frameVal<i.endVal?i.endVal:i.frameVal:i.frameVal=i.frameVal>i.endVal?i.endVal:i.frameVal,i.frameVal=Number(i.frameVal.toFixed(i.options.decimalPlaces)),i.printValue(i.frameVal),o<i.duration?i.rAF=requestAnimationFrame(i.count):i.finalEndVal!==null?i.update(i.finalEndVal):i.callback&&i.callback()},this.formatNumber=function(n){var o,s,l,u,h,f=n<0?"-":"";if(o=Math.abs(n).toFixed(i.options.decimalPlaces),l=(s=(o+="").split("."))[0],u=s.length>1?i.options.decimal+s[1]:"",i.options.useGrouping){h="";for(var v=0,c=l.length;v<c;++v)v!==0&&v%3==0&&(h=i.options.separator+h),h=l[c-v-1]+h;l=h}return i.options.numerals&&i.options.numerals.length&&(l=l.replace(/[0-9]/g,function(p){return i.options.numerals[+p]}),u=u.replace(/[0-9]/g,function(p){return i.options.numerals[+p]})),f+i.options.prefix+l+u+i.options.suffix},this.easeOutExpo=function(n,o,s,l){return s*(1-Math.pow(2,-10*n/l))*1024/1023+o},this.options=jg(jg({},this.defaults),a),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(t),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,this.options.separator===""&&(this.options.useGrouping=!1),this.el=typeof e=="string"?document.getElementById(e):e,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined"}return r.prototype.determineDirectionAndSmartEasing=function(){var e=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>e;var t=e-this.startVal;if(Math.abs(t)>this.options.smartEasingThreshold){this.finalEndVal=e;var a=this.countDown?1:-1;this.endVal=e+a*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=e,this.finalEndVal=null;this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},r.prototype.start=function(e){this.error||(this.callback=e,this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},r.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},r.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},r.prototype.update=function(e){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(e),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal||this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},r.prototype.printValue=function(e){var t=this.formattingFn(e);this.el.tagName==="INPUT"?this.el.value=t:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=t:this.el.innerHTML=t},r.prototype.ensureNumber=function(e){return typeof e=="number"&&!isNaN(e)},r.prototype.validateValue=function(e){var t=Number(e);return this.ensureNumber(t)?t:(this.error="[CountUp] invalid start or end value: "+e,null)},r.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},r}();const Y6=[{title:"\u4ECA\u65E5\u8BBF\u95EE\u4EBA\u6570",titleNum:"123",tip:"\u5728\u573A\u4EBA\u6570",tipNum:"911",color:"#F95959",iconColor:"#F86C6B",icon:"iconfont icon-jinridaiban"},{title:"\u5B9E\u9A8C\u5BA4\u603B\u6570",titleNum:"123",tip:"\u4F7F\u7528\u4E2D",tipNum:"611",color:"#8595F4",iconColor:"#92A1F4",icon:"iconfont icon-AIshiyanshi"},{title:"\u7533\u8BF7\u4EBA\u6570\uFF08\u6708\uFF09",titleNum:"123",tip:"\u901A\u8FC7\u4EBA\u6570",tipNum:"911",color:"#FEBB50",iconColor:"#FDC566",icon:"iconfont icon-shenqingkaiban"}],X6=[{icon:"iconfont icon-yangan",label:"\u70DF\u611F",value:"2.1%OBS/M",iconColor:"#F72B3F"},{icon:"iconfont icon-wendu",label:"\u6E29\u5EA6",value:"30\u2103",iconColor:"#91BFF8"},{icon:"iconfont icon-shidu",label:"\u6E7F\u5EA6",value:"57%RH",iconColor:"#88D565"},{icon:"iconfont icon-zaosheng",label:"\u566A\u58F0",value:"57DB",iconColor:"#FBD4A0"}],$6=[{time1:"\u4ECA\u5929",time2:"12:20:30",title:"\u66F4\u540D",label:"\u6B63\u5F0F\u66F4\u540D\u4E3A vue-next-admin"},{time1:"02-17",time2:"12:20:30",title:"\u9875\u9762",label:"\u5B8C\u6210\u5BF9\u9996\u9875\u7684\u5F00\u53D1"},{time1:"02-14",time2:"12:20:30",title:"\u9875\u9762",label:"\u65B0\u589E\u4E2A\u4EBA\u4E2D\u5FC3"}];var ty={name:"Home",setup(){const{proxy:r}=XD(),e=FD(),t=HD({topCardItemList:Y6,environmentList:X6,activitiesList:$6,tableData:{data:[{date:"2016-05-02",name:"1\u53F7\u5B9E\u9A8C\u5BA4",address:"\u70DF\u611F2.1%OBS/M"},{date:"2016-05-04",name:"2\u53F7\u5B9E\u9A8C\u5BA4",address:"\u6E29\u5EA630\u2103"},{date:"2016-05-01",name:"3\u53F7\u5B9E\u9A8C\u5BA4",address:"\u6E7F\u5EA657%RH"}]}}),a=ny(()=>GD(new Date)),i=()=>{YD(()=>{new no("titleNum1",Math.random()*1e4).start(),new no("titleNum2",Math.random()*1e4).start(),new no("titleNum3",Math.random()*1e4).start(),new no("tipNum1",Math.random()*1e3).start(),new no("tipNum2",Math.random()*1e3).start(),new no("tipNum3",Math.random()*1e3).start()})},n=()=>{const l=PS(r.$refs.homeLaboratoryRef),u={grid:{top:50,right:20,bottom:30,left:30},tooltip:{trigger:"axis"},legend:{data:["\u9884\u8D2D\u961F\u5217","\u6700\u65B0\u6210\u4EA4\u4EF7"],right:13},xAxis:{data:["\u886C\u886B","\u7F8A\u6BDB\u886B","\u96EA\u7EBA\u886B","\u88E4\u5B50","\u9AD8\u8DDF\u978B","\u889C\u5B50"]},yAxis:[{type:"value",name:"\u4EF7\u683C"}],series:[{name:"\u9884\u8D2D\u961F\u5217",type:"bar",data:[5,20,36,10,10,20]},{name:"\u6700\u65B0\u6210\u4EA4\u4EF7",type:"line",data:[15,20,16,20,30,8]}]};l.setOption(u),window.addEventListener("resize",()=>{l.resize()})},o=()=>{const l=PS(r.$refs.homeOvertimeRef),u={grid:{top:50,right:20,bottom:30,left:30},tooltip:{trigger:"axis"},legend:{data:["\u8BA2\u5355\u6570\u91CF","\u8D85\u65F6\u6570\u91CF","\u5728\u7EBF\u6570\u91CF","\u9884\u8B66\u6570\u91CF"],right:13},xAxis:{data:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"]},yAxis:[{type:"value",name:"\u6570\u91CF"}],series:[{name:"\u8BA2\u5355\u6570\u91CF",type:"bar",data:[5,20,36,10,10,20,11,13,10,9,17,19]},{name:"\u8D85\u65F6\u6570\u91CF",type:"bar",data:[15,12,26,15,11,16,31,13,5,16,13,15]},{name:"\u5728\u7EBF\u6570\u91CF",type:"line",data:[15,20,16,20,30,8,16,19,12,18,19,14]},{name:"\u9884\u8B66\u6570\u91CF",type:"line",data:[10,10,13,12,15,18,19,10,12,15,11,17]}]};l.setOption(u),window.addEventListener("resize",()=>{l.resize()})};WD(()=>{i(),n(),o()});const s=ny(()=>e.state.userInfos.userInfos);return iy({getUserInfos:s,currentTime:a},UD(t))}},T8=`.home-container[data-v-470181a0] {
  overflow-x: hidden;
}
.home-container .home-card-item[data-v-470181a0] {
  width: 100%;
  height: 103px;
  background: gray;
  border-radius: 4px;
  transition: all ease 0.3s;
}
.home-container .home-card-item[data-v-470181a0]:hover {
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  transition: all ease 0.3s;
}
.home-container .home-card-item-box[data-v-470181a0] {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.home-container .home-card-item-box:hover i[data-v-470181a0] {
  right: 0px !important;
  bottom: 0px !important;
  transition: all ease 0.3s;
}
.home-container .home-card-item-box i[data-v-470181a0] {
  position: absolute;
  right: -10px;
  bottom: -10px;
  font-size: 70px;
  transform: rotate(-30deg);
  transition: all ease 0.3s;
}
.home-container .home-card-item-box .home-card-item-flex[data-v-470181a0] {
  padding: 0 20px;
  color: white;
}
.home-container .home-card-item-box .home-card-item-flex .home-card-item-title[data-v-470181a0],
.home-container .home-card-item-box .home-card-item-flex .home-card-item-tip[data-v-470181a0] {
  font-size: 13px;
}
.home-container .home-card-item-box .home-card-item-flex .home-card-item-title-num[data-v-470181a0] {
  font-size: 18px;
}
.home-container .home-card-item-box .home-card-item-flex .home-card-item-tip-num[data-v-470181a0] {
  font-size: 13px;
}
.home-container .home-card-first[data-v-470181a0] {
  background: white;
  border: 1px solid #ebeef5;
  display: flex;
  align-items: center;
}
.home-container .home-card-first img[data-v-470181a0] {
  width: 60px;
  height: 60px;
  border-radius: 100%;
  border: 2px solid var(--color-primary-light-5);
}
.home-container .home-card-first .home-card-first-right[data-v-470181a0] {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.home-container .home-card-first .home-card-first-right .home-card-first-right-msg[data-v-470181a0] {
  font-size: 13px;
  color: gray;
}
.home-container .home-monitor[data-v-470181a0] {
  height: 200px;
}
.home-container .home-monitor .flex-warp-item[data-v-470181a0] {
  width: 50%;
  height: 100px;
  display: flex;
}
.home-container .home-monitor .flex-warp-item .flex-warp-item-box[data-v-470181a0] {
  margin: auto;
  height: auto;
  text-align: center;
}
.home-container .home-warning-card[data-v-470181a0] {
  height: 292px;
}
.home-container .home-warning-card[data-v-470181a0] .el-card {
  height: 100%;
}
.home-container .home-dynamic[data-v-470181a0] {
  height: 200px;
}
.home-container .home-dynamic .home-dynamic-item[data-v-470181a0] {
  display: flex;
  width: 100%;
  height: 60px;
  overflow: hidden;
}
.home-container .home-dynamic .home-dynamic-item:first-of-type .home-dynamic-item-line i[data-v-470181a0] {
  color: orange !important;
}
.home-container .home-dynamic .home-dynamic-item .home-dynamic-item-left[data-v-470181a0] {
  text-align: right;
}
.home-container .home-dynamic .home-dynamic-item .home-dynamic-item-left .home-dynamic-item-left-time2[data-v-470181a0] {
  font-size: 13px;
  color: gray;
}
.home-container .home-dynamic .home-dynamic-item .home-dynamic-item-line[data-v-470181a0] {
  height: 60px;
  border-right: 2px dashed #dfdfdf;
  margin: 0 20px;
  position: relative;
}
.home-container .home-dynamic .home-dynamic-item .home-dynamic-item-line i[data-v-470181a0] {
  color: var(--color-primary);
  font-size: 12px;
  position: absolute;
  top: 1px;
  left: -6px;
  transform: rotate(46deg);
  background: white;
}
.home-container .home-dynamic .home-dynamic-item .home-dynamic-item-right[data-v-470181a0] {
  flex: 1;
}
.home-container .home-dynamic .home-dynamic-item .home-dynamic-item-right .home-dynamic-item-right-title i[data-v-470181a0] {
  margin-right: 5px;
  border: 1px solid #dfdfdf;
  width: 20px;
  height: 20px;
  border-radius: 100%;
  padding: 3px 2px 2px;
  text-align: center;
  color: var(--color-primary);
}
.home-container .home-dynamic .home-dynamic-item .home-dynamic-item-right .home-dynamic-item-right-label[data-v-470181a0] {
  font-size: 13px;
  color: gray;
}`;const te=qD();$D("data-v-470181a0");const Z6={class:"home-container"},q6={class:"home-card-item home-card-first"},K6={class:"flex-margin flex"},Q6={class:"home-card-first-right ml15"},J6={class:"flex-margin"},j6={class:"home-card-first-right-title"},t8=rt("div",{class:"home-card-first-right-msg mt5"},"\u8D85\u7EA7\u7BA1\u7406",-1),e8={class:"home-card-item-flex"},r8={class:"home-card-item-title pb3"},a8={class:"home-card-item-tip pb3"},i8={style:{height:"200px"},ref:"homeLaboratoryRef"},n8={class:"home-monitor"},o8={class:"flex-warp"},s8={class:"flex-warp-item-box"},l8={class:"pl5"},u8={class:"mt10"},h8={class:"home-dynamic"},f8={class:"home-dynamic-item-left"},v8={class:"home-dynamic-item-left-time1 mb5"},c8={class:"home-dynamic-item-left-time2"},p8=rt("div",{class:"home-dynamic-item-line"},[rt("i",{class:"iconfont icon-fangkuang"})],-1),d8={class:"home-dynamic-item-right"},g8={class:"home-dynamic-item-right-title mb5"},y8=rt("i",{class:"el-icon-s-comment"},null,-1),m8={class:"home-dynamic-item-right-label"},_8={style:{height:"200px"},ref:"homeOvertimeRef"};ZD();const S8=te((r,e,t,a,i,n)=>{const o=tn("el-col"),s=tn("el-row"),l=tn("el-card"),u=tn("el-table-column"),h=tn("el-table"),f=tn("el-scrollbar");return Fa(),Ga("div",Z6,[rt(s,{gutter:15},{default:te(()=>[rt(o,{sm:6,class:"mb15"},{default:te(()=>[rt("div",q6,[rt("div",K6,[rt("img",{src:a.getUserInfos.photo},null,8,["src"]),rt("div",Q6,[rt("div",J6,[rt("div",j6,zr(a.currentTime)+"\uFF0Cadmin\uFF01",1),t8])])])])]),_:1}),(Fa(!0),Ga(lf,null,uf(r.topCardItemList,(v,c)=>(Fa(),Ga(o,{sm:6,class:"mb15",key:c},{default:te(()=>[rt("div",{class:"home-card-item home-card-item-box",style:{background:v.color}},[rt("div",e8,[rt("div",r8,zr(v.title),1),rt("div",{class:"home-card-item-title-num pb6",id:`titleNum${c+1}`},null,8,["id"]),rt("div",a8,zr(v.tip),1),rt("div",{class:"home-card-item-tip-num",id:`tipNum${c+1}`},null,8,["id"])]),rt("i",{class:v.icon,style:{color:v.iconColor}},null,6)],4)]),_:2},1024))),128))]),_:1}),rt(s,{gutter:15},{default:te(()=>[rt(o,{xs:24,sm:14,md:14,lg:16,xl:16,class:"mb15"},{default:te(()=>[rt(l,{shadow:"hover",header:"\u5546\u54C1\u9500\u552E\u60C5\u51B5"},{default:te(()=>[rt("div",i8,null,512)]),_:1})]),_:1}),rt(o,{xs:24,sm:10,md:10,lg:8,xl:8},{default:te(()=>[rt(l,{shadow:"hover",header:"\u73AF\u5883\u76D1\u6D4B"},{default:te(()=>[rt("div",n8,[rt("div",o8,[(Fa(!0),Ga(lf,null,uf(r.environmentList,(v,c)=>(Fa(),Ga("div",{class:"flex-warp-item",key:c},[rt("div",s8,[rt("i",{class:v.icon,style:{color:v.iconColor}},null,6),rt("span",l8,zr(v.label),1),rt("div",u8,zr(v.value),1)])]))),128))])])]),_:1})]),_:1})]),_:1}),rt(s,{gutter:15},{default:te(()=>[rt(o,{xs:24,sm:14,md:14,lg:16,xl:16,class:"home-warning-media"},{default:te(()=>[rt(l,{shadow:"hover",header:"\u5E03\u5C40\u914D\u7F6E",class:"home-warning-card"},{default:te(()=>[rt(h,{data:r.tableData.data,style:{width:"100%"},stripe:""},{default:te(()=>[rt(u,{prop:"date",label:"\u65F6\u95F4"}),rt(u,{prop:"name",label:"\u5B9E\u9A8C\u5BA4\u540D\u79F0"}),rt(u,{prop:"address",label:"\u62A5\u8B66\u5185\u5BB9"})]),_:1},8,["data"])]),_:1})]),_:1}),rt(o,{xs:24,sm:10,md:10,lg:8,xl:8,class:"home-dynamic-media"},{default:te(()=>[rt(l,{shadow:"hover",header:"\u52A8\u6001\u4FE1\u606F"},{default:te(()=>[rt("div",h8,[rt(f,null,{default:te(()=>[(Fa(!0),Ga(lf,null,uf(r.activitiesList,(v,c)=>(Fa(),Ga("div",{class:"home-dynamic-item",key:c},[rt("div",f8,[rt("div",v8,zr(v.time1),1),rt("div",c8,zr(v.time2),1)]),p8,rt("div",d8,[rt("div",g8,[y8,rt("span",null,zr(v.title),1)]),rt("div",m8,zr(v.label),1)])]))),128))]),_:1})])]),_:1})]),_:1})]),_:1}),rt(s,null,{default:te(()=>[rt(o,{xs:24,sm:24,md:24,lg:24,xl:24,class:"mt15"},{default:te(()=>[rt(l,{shadow:"hover",header:"\u5C65\u7EA6\u8D85\u65F6\u9884\u8B66"},{default:te(()=>[rt("div",_8,null,512)]),_:1})]),_:1})]),_:1})])});ty.render=S8,ty.__scopeId="data-v-470181a0";export default ty;
